Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Semantic-Org/Semantic-UI-React
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.81.3
Choose a base ref
...
head repository: Semantic-Org/Semantic-UI-React
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.82.0
Choose a head ref
  • 10 commits
  • 45 files changed
  • 5 contributors

Commits on Jun 27, 2018

  1. Copy the full SHA
    6484449 View commit details

Commits on Jun 29, 2018

  1. BREAKING(package): update to React 16 (#2880)

    * breaking(Portal): use createPortal() API (#2755)
    
    * breaking(Portal): use createPortal() API
    
    * test(Portal): rewrite tests
    
    * test(Portal): rewrite tests
    
    * fix(Portal): mixed fixes in tests
    
    * fix(Portal): fix path of typings
    
    * feat(Flag|Icon): use PureComponent instead of shallowEqual() (#2842)
    
    * fix(IconSearch): remove prop
    
    * fix(PortalInner): remove meta
    
    * fix(Portal): fix broken test
    
    * fix(Modal): go away from rootNode
    
    * fix(Flag|Icon): remove unused import
    
    * feat(Portal): add `triggerRef` prop (#2902)
    
    * feat(Portal): add `triggerRef` prop
    
    * test(Portal): add test for `triggerRef` prop
    
    * fix(Popup): fix test
    
    * BREAKING(Accordion): refactor shorthand API to use AccordionPanel (#2904)
    
    * refactor(Accordion): simplify render with AccordionPanel
    
    * style(Accordion): add description
    
    * fix(tests): reenable throw on console.log()
    
    * style(mixed): lint issues in typings
    
    * fix yarn.lock
    
    * fix(ComponentDocLinks): add rel="noopener noreferrer"
    
    * revert styling changes
    
    * restore yarn.lock from master
    
    * style(Portal): remove render method
    layershifter authored Jun 29, 2018
    Copy the full SHA
    1d795bc View commit details

Commits on Jul 3, 2018

  1. fix(Dropdown): allow defaultValue to be a boolean (#2972)

    fix(Dropdown): allow `defaultValue` to be a boolean
    Leonard O' Sullivan authored and layershifter committed Jul 3, 2018
    Copy the full SHA
    33a49da View commit details

Commits on Jul 4, 2018

  1. Copy the full SHA
    61abfa5 View commit details
  2. Copy the full SHA
    e30a7fd View commit details

Commits on Jul 6, 2018

  1. Copy the full SHA
    d6b94dc View commit details
  2. Copy the full SHA
    e71c570 View commit details
  3. Copy the full SHA
    a9de819 View commit details
  4. feat(Input): expose select() method from ref (#2928)

    feat(Input): expose select() method from ref
    kierenj authored and levithomason committed Jul 6, 2018
    Copy the full SHA
    a27a917 View commit details
  5. 0.82.0

    levithomason committed Jul 6, 2018
    Copy the full SHA
    f3a8ea5 View commit details
Showing with 932 additions and 665 deletions.
  1. +2 −5 .circleci/config.yml
  2. +1 −0 .eslintrc
  3. +34 −35 CHANGELOG.md
  4. +2 −2 docs/src/components/ComponentDoc/ComponentDocLinks.js
  5. +0 −1 docs/src/components/IconSearch/IconSearch.js
  6. +1 −1 docs/src/examples/modules/Accordion/Advanced/AccordionExampleForm.js
  7. +6 −6 docs/src/examples/modules/Accordion/Advanced/AccordionExampleNested.js
  8. +1 −2 docs/src/examples/modules/Accordion/Advanced/AccordionExampleShorthand.js
  9. +3 −1 docs/src/examples/modules/Accordion/Types/AccordionExampleStandardShorthand.js
  10. +2 −1 docs/src/examples/modules/Accordion/Usage/AccordionExampleActiveIndex.js
  11. +2 −1 docs/src/examples/modules/Accordion/Usage/AccordionExampleExclusive.js
  12. +5 −4 docs/src/examples/modules/Modal/Variations/ModalExampleCloseConfig.js
  13. +3 −3 docs/src/views/Usage.js
  14. +0 −22 gulp/tasks/docs.js
  15. +8 −1 index.d.ts
  16. +6 −4 package.json
  17. +11 −15 src/addons/Portal/Portal.d.ts
  18. +54 −140 src/addons/Portal/Portal.js
  19. +31 −0 src/addons/Portal/PortalInner.d.ts
  20. +54 −0 src/addons/Portal/PortalInner.js
  21. +1 −1 src/elements/Flag/Flag.d.ts
  22. +2 −7 src/elements/Flag/Flag.js
  23. +1 −1 src/elements/Icon/Icon.d.ts
  24. +2 −7 src/elements/Icon/Icon.js
  25. +2 −0 src/elements/Input/Input.js
  26. +2 −0 src/index.js
  27. +2 −0 src/modules/Accordion/Accordion.js
  28. +1 −6 src/modules/Accordion/AccordionAccordion.d.ts
  29. +21 −35 src/modules/Accordion/AccordionAccordion.js
  30. +33 −0 src/modules/Accordion/AccordionPanel.d.ts
  31. +61 −0 src/modules/Accordion/AccordionPanel.js
  32. +1 −1 src/modules/Dropdown/Dropdown.d.ts
  33. +2 −1 src/modules/Dropdown/Dropdown.js
  34. +21 −20 src/modules/Modal/Modal.js
  35. +13 −16 src/modules/Popup/Popup.js
  36. +1 −1 src/modules/Search/Search.d.ts
  37. +296 −194 test/specs/addons/Portal/Portal-test.js
  38. +39 −0 test/specs/addons/Portal/PortalInner-test.js
  39. +37 −16 test/specs/elements/Input/Input-test.js
  40. +7 −1 test/specs/modules/Accordion/Accordion-test.js
  41. +68 −108 test/specs/modules/Accordion/AccordionAccordion-test.js
  42. +68 −0 test/specs/modules/Accordion/AccordionPanel-test.js
  43. +10 −0 test/specs/modules/Dimmer/DimmerInner-test.js
  44. +6 −6 test/specs/modules/Popup/Popup-test.js
  45. +9 −0 test/specs/modules/Sidebar/Sidebar-test.js
7 changes: 2 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -26,17 +26,14 @@ jobs:
command: echo 'export PATH="${PATH}:$(npm bin)"' >> $BASH_ENV
- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
- v1-dependencies
- v2-dependencies-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn
- save_cache:
key: v1-dependencies-{{ checksum "yarn.lock" }}
key: v2-dependencies-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- .yarn-cache
- node_modules
- run:
name: Lint TypeScript
command: yarn tsd:lint
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@
"semi": [2, "never"],
"jsx-a11y/alt-text": 1,
"jsx-a11y/label-has-for": 1,
"jsx-a11y/no-static-element-interactions": 1,
"jsx-a11y/role-has-required-aria-props": 1,
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": 0,
69 changes: 34 additions & 35 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# Change Log

## [v0.81.3](https://github.com/Semantic-Org/Semantic-UI-React/tree/v0.81.3) (2018-06-27)
[Full Changelog](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.81.2...v0.81.3)

**Merged pull requests:**

- fix\(Dropdown\): fix double onClose\(\) after blur [\#2959](https://github.com/Semantic-Org/Semantic-UI-React/pull/2959) ([layershifter](https://github.com/layershifter))
- fix\(Portal\): remove non-working `style` prop [\#2958](https://github.com/Semantic-Org/Semantic-UI-React/pull/2958) ([mgandley](https://github.com/mgandley))
- feat\(Flag\): export names in typings [\#2957](https://github.com/Semantic-Org/Semantic-UI-React/pull/2957) ([layershifter](https://github.com/layershifter))

## [v0.81.2](https://github.com/Semantic-Org/Semantic-UI-React/tree/v0.81.2) (2018-06-26)
[Full Changelog](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.81.1...v0.81.2)

**Merged pull requests:**

- docs\(Search\): update layout for search example to accommodate code [\#2948](https://github.com/Semantic-Org/Semantic-UI-React/pull/2948) ([crashuniverse](https://github.com/crashuniverse))
- fix\(Icon\): fix handling of aria-label [\#2947](https://github.com/Semantic-Org/Semantic-UI-React/pull/2947) ([layershifter](https://github.com/layershifter))
- chore\(typings\): update TypeScript and use tslint-config-airbnb [\#2942](https://github.com/Semantic-Org/Semantic-UI-React/pull/2942) ([layershifter](https://github.com/layershifter))
- chore\(package\): add `sideEffects: false` for Webpack 4 [\#2941](https://github.com/Semantic-Org/Semantic-UI-React/pull/2941) ([layershifter](https://github.com/layershifter))
- chore\(package\): use shallowequal instead of fbjs and use alias in docs [\#2940](https://github.com/Semantic-Org/Semantic-UI-React/pull/2940) ([layershifter](https://github.com/layershifter))
- docs\(assets\): move images to /public [\#2935](https://github.com/Semantic-Org/Semantic-UI-React/pull/2935) ([layershifter](https://github.com/layershifter))
- feat\(Popup\): add context prop [\#2934](https://github.com/Semantic-Org/Semantic-UI-React/pull/2934) ([kohlikohl](https://github.com/kohlikohl))
- fix\(examples\): webpack 3 App direct import description [\#2929](https://github.com/Semantic-Org/Semantic-UI-React/pull/2929) ([bmbarker90](https://github.com/bmbarker90))
- chore\(package\): update lint-stagged [\#2914](https://github.com/Semantic-Org/Semantic-UI-React/pull/2914) ([layershifter](https://github.com/layershifter))
- fix\(Search\): wrap categorized search results with "results" [\#2909](https://github.com/Semantic-Org/Semantic-UI-React/pull/2909) ([DennisKo](https://github.com/DennisKo))
- feat\(Sticky\): use SUI CSS classes [\#2890](https://github.com/Semantic-Org/Semantic-UI-React/pull/2890) ([pferreir](https://github.com/pferreir))
- fix\(Dropdown\): automatic upward logic in IE11 [\#2885](https://github.com/Semantic-Org/Semantic-UI-React/pull/2885) ([mihai-dinculescu](https://github.com/mihai-dinculescu))
- fix\(Docs\): Add babel-polyfill so that the Docs work in IE11 [\#2884](https://github.com/Semantic-Org/Semantic-UI-React/pull/2884) ([mihai-dinculescu](https://github.com/mihai-dinculescu))
- chore\(getComponentInfo\): handle HOC default exports [\#2883](https://github.com/Semantic-Org/Semantic-UI-React/pull/2883) ([levithomason](https://github.com/levithomason))
- fix\(Modal\): remove dimmer={false} [\#2882](https://github.com/Semantic-Org/Semantic-UI-React/pull/2882) ([mihai-dinculescu](https://github.com/mihai-dinculescu))
- fix\(Icon\): remove unexisting aliases [\#2879](https://github.com/Semantic-Org/Semantic-UI-React/pull/2879) ([layershifter](https://github.com/layershifter))
- feat\(Sidebar\): add lifecycle handlers [\#2845](https://github.com/Semantic-Org/Semantic-UI-React/pull/2845) ([layershifter](https://github.com/layershifter))
- fix\(Input\): fix icon order to ensure rounded border is kept [\#2507](https://github.com/Semantic-Org/Semantic-UI-React/pull/2507) ([Intregrisist](https://github.com/Intregrisist))
- feat\(Dropdown\): lazyLoad prop for menu items [\#1918](https://github.com/Semantic-Org/Semantic-UI-React/pull/1918) ([dsirnk](https://github.com/dsirnk))

## [v0.81.1](https://github.com/Semantic-Org/Semantic-UI-React/tree/v0.81.1) (2018-06-04)
[Full Changelog](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.81.0...v0.81.1)

@@ -319,41 +353,6 @@
- fix\(Sticky\): `scrollContext` is used from actual props, rename doc examples [\#2118](https://github.com/Semantic-Org/Semantic-UI-React/pull/2118) ([layershifter](https://github.com/layershifter))
- fix\(eventStack\): correct handling of removed targets [\#2117](https://github.com/Semantic-Org/Semantic-UI-React/pull/2117) ([layershifter](https://github.com/layershifter))

## [v0.74.1](https://github.com/Semantic-Org/Semantic-UI-React/tree/v0.74.1) (2017-09-24)
[Full Changelog](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.74.0...v0.74.1)

## [v0.74.0](https://github.com/Semantic-Org/Semantic-UI-React/tree/v0.74.0) (2017-09-24)
[Full Changelog](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.73.1...v0.74.0)

**Merged pull requests:**

- fix\(Dropdown\): fix call order of `onAddItem` and `onChange` handlers [\#2113](https://github.com/Semantic-Org/Semantic-UI-React/pull/2113) ([layershifter](https://github.com/layershifter))
- breaking\(Dropdown\): clean searchQuery after selection in multiple search Dropdown [\#2112](https://github.com/Semantic-Org/Semantic-UI-React/pull/2112) ([layershifter](https://github.com/layershifter))
- docs\(Dropdown\): fix searchQuery example [\#2110](https://github.com/Semantic-Org/Semantic-UI-React/pull/2110) ([layershifter](https://github.com/layershifter))
- feat\(Dropdown\): add `searchQuery` prop [\#2109](https://github.com/Semantic-Org/Semantic-UI-React/pull/2109) ([layershifter](https://github.com/layershifter))
- fix\(Button\): Add bool to propTypes of attached [\#2105](https://github.com/Semantic-Org/Semantic-UI-React/pull/2105) ([kasbah](https://github.com/kasbah))
- breaking\(Dropdown\): correct onSearchChange signature [\#2102](https://github.com/Semantic-Org/Semantic-UI-React/pull/2102) ([layershifter](https://github.com/layershifter))
- fix\(Dropdown\): fix tabIndex behaviour [\#2101](https://github.com/Semantic-Org/Semantic-UI-React/pull/2101) ([layershifter](https://github.com/layershifter))
- fix\(Modal|Popup|Portal\): fix usage of eventStack sub/unsub [\#2099](https://github.com/Semantic-Org/Semantic-UI-React/pull/2099) ([austinfox](https://github.com/austinfox))
- fix\(Icon\): fix typings of Icon.Group [\#2095](https://github.com/Semantic-Org/Semantic-UI-React/pull/2095) ([mihai-dinculescu](https://github.com/mihai-dinculescu))
- feat\(eventStack\): support for different targets [\#2094](https://github.com/Semantic-Org/Semantic-UI-React/pull/2094) ([layershifter](https://github.com/layershifter))
- feat\(Sticky|Visibility\): listen for `resize` events [\#2091](https://github.com/Semantic-Org/Semantic-UI-React/pull/2091) ([layershifter](https://github.com/layershifter))
- feat\(Visibility\): add `direction` for calculations [\#2090](https://github.com/Semantic-Org/Semantic-UI-React/pull/2090) ([layershifter](https://github.com/layershifter))
- fix\(Visibility\): fix behaviour of reverse calls [\#2088](https://github.com/Semantic-Org/Semantic-UI-React/pull/2088) ([layershifter](https://github.com/layershifter))
- docs\(parser\): parse custom values and mixed enums [\#2086](https://github.com/Semantic-Org/Semantic-UI-React/pull/2086) ([layershifter](https://github.com/layershifter))
- fix\(Sticky\): disable styles when `active` is false [\#2083](https://github.com/Semantic-Org/Semantic-UI-React/pull/2083) ([layershifter](https://github.com/layershifter))
- chore\(package\): replace npm with yarn [\#2081](https://github.com/Semantic-Org/Semantic-UI-React/pull/2081) ([levithomason](https://github.com/levithomason))
- feat\(Dropdown\): implement `selectOnNavigation` prop [\#2009](https://github.com/Semantic-Org/Semantic-UI-React/pull/2009) ([rijk](https://github.com/rijk))
- breaking\(Accordion\): Refactor component [\#1375](https://github.com/Semantic-Org/Semantic-UI-React/pull/1375) ([layershifter](https://github.com/layershifter))

## [v0.73.1](https://github.com/Semantic-Org/Semantic-UI-React/tree/v0.73.1) (2017-09-18)
[Full Changelog](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.73.0...v0.73.1)

**Merged pull requests:**

- fix\(Popup\): Remove hideOnScroll from window scroll [\#2063](https://github.com/Semantic-Org/Semantic-UI-React/pull/2063) ([mkarajohn](https://github.com/mkarajohn))
- feat\(Sticky\): add `active` prop [\#2053](https://github.com/Semantic-Org/Semantic-UI-React/pull/2053) ([layershifter](https://github.com/layershifter))



\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
4 changes: 2 additions & 2 deletions docs/src/components/ComponentDoc/ComponentDocLinks.js
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ export default class ComponentDocLinks extends PureComponent {
<List.Item
content={
<code>
<a href={ghLink} target='_blank'>
<a href={ghLink} target='_blank' rel='noopener noreferrer'>
{repoPath}
</a>
</code>
@@ -43,7 +43,7 @@ export default class ComponentDocLinks extends PureComponent {
{suiLink && (
<List.Item
content={
<a href={suiLink} target='_blank'>
<a href={suiLink} target='_blank' rel='noopener noreferrer'>
Semantic UI {displayName} Docs
</a>
}
1 change: 0 additions & 1 deletion docs/src/components/IconSearch/IconSearch.js
Original file line number Diff line number Diff line change
@@ -115,7 +115,6 @@ export default class IconSearch extends Component {
mouseEnterDelay={1000}
inverted
closeOnTriggerClick={false}
closeOnRootNodeClick={false}
closeOnDocumentClick={false}
style={{ width: '8em', textAlign: 'center' }}
size='mini'
Original file line number Diff line number Diff line change
@@ -3,10 +3,10 @@ import { Accordion, Button, Form, Segment } from 'semantic-ui-react'

const panels = [
{
key: 'details',
title: 'Optional Details',
content: {
as: Form.Input,
key: 'content',
label: 'Maiden Name',
placeholder: 'Maiden Name',
},
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@ import React from 'react'
import { Accordion } from 'semantic-ui-react'

const level1Panels = [
{ title: 'Level 1A', content: 'Level 1A Contents' },
{ title: 'Level 1B', content: 'Level 1B Contents' },
{ key: 'panel-1a', title: 'Level 1A', content: 'Level 1A Contents' },
{ key: 'panel-ba', title: 'Level 1B', content: 'Level 1B Contents' },
]

const Level1Content = (
@@ -14,8 +14,8 @@ const Level1Content = (
)

const level2Panels = [
{ title: 'Level 2A', content: 'Level 2A Contents' },
{ title: 'Level 2B', content: 'Level 2B Contents' },
{ key: 'panel-2a', title: 'Level 2A', content: 'Level 2A Contents' },
{ key: 'panel-2b', title: 'Level 2B', content: 'Level 2B Contents' },
]

const Level2Content = (
@@ -26,8 +26,8 @@ const Level2Content = (
)

const rootPanels = [
{ title: 'Level 1', content: { content: Level1Content, key: 'content-1' } },
{ title: 'Level 2', content: { content: Level2Content, key: 'content-2' } },
{ key: 'panel-1', title: 'Level 1', content: { content: Level1Content } },
{ key: 'panel-2', title: 'Level 2', content: { content: Level2Content } },
]

const AccordionExampleNested = () => <Accordion defaultActiveIndex={0} panels={rootPanels} styled />
Original file line number Diff line number Diff line change
@@ -4,13 +4,12 @@ import React from 'react'
import { Accordion, Label, Message } from 'semantic-ui-react'

const panels = _.times(3, i => ({
key: `panel-${i}`,
title: {
content: <Label color='blue' content={faker.lorem.sentence()} />,
key: `title-${i}`,
},
content: {
content: <Message info header={faker.lorem.sentence()} content={faker.lorem.paragraph()} />,
key: `content-${i}`,
},
}))

Original file line number Diff line number Diff line change
@@ -3,20 +3,23 @@ import { Accordion } from 'semantic-ui-react'

const panels = [
{
key: 'what-is-dog',
title: 'What is a dog?',
content: [
'A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome',
'guest in many households across the world.',
].join(' '),
},
{
key: 'kinds-of-dogs',
title: 'What kinds of dogs are there?',
content: [
'There are many breeds of dogs. Each breed varies in size and temperament. Owners often select a breed of dog',
'that they find to be compatible with their own lifestyle and desires from a companion.',
].join(' '),
},
{
key: 'acquire-dog',
title: 'How do you acquire a dog?',
content: {
content: (
@@ -33,7 +36,6 @@ const panels = [
</p>
</div>
),
key: 'content-dog',
},
},
]
Original file line number Diff line number Diff line change
@@ -3,7 +3,8 @@ import _ from 'lodash'
import React, { Component } from 'react'
import { Accordion, Segment } from 'semantic-ui-react'

const panels = _.times(3, () => ({
const panels = _.times(3, i => ({
key: `panel-${i}`,
title: faker.lorem.sentence(),
content: faker.lorem.paragraphs(),
}))
Original file line number Diff line number Diff line change
@@ -3,7 +3,8 @@ import _ from 'lodash'
import React from 'react'
import { Accordion } from 'semantic-ui-react'

const panels = _.times(3, () => ({
const panels = _.times(3, i => ({
key: `panel-${i}`,
title: faker.lorem.sentence(),
content: faker.lorem.paragraphs(),
}))
Original file line number Diff line number Diff line change
@@ -4,14 +4,14 @@ import { Button, Modal } from 'semantic-ui-react'
class ModalExampleCloseConfig extends Component {
state = { open: false }

closeConfigShow = (closeOnEscape, closeOnRootNodeClick) => () => {
this.setState({ closeOnEscape, closeOnRootNodeClick, open: true })
closeConfigShow = (closeOnEscape, closeOnDimmerClick) => () => {
this.setState({ closeOnEscape, closeOnDimmerClick, open: true })
}

close = () => this.setState({ open: false })

render() {
const { open, closeOnEscape, closeOnRootNodeClick } = this.state
const { open, closeOnEscape, closeOnDimmerClick } = this.state

return (
<div>
@@ -21,7 +21,8 @@ class ModalExampleCloseConfig extends Component {
<Modal
open={open}
closeOnEscape={closeOnEscape}
closeOnRootNodeClick={closeOnRootNodeClick}
closeOnDimmerClick={closeOnDimmerClick}
onClose={this.close}
>
<Modal.Header>Delete Your Account</Modal.Header>
<Modal.Content>
6 changes: 3 additions & 3 deletions docs/src/views/Usage.js
Original file line number Diff line number Diff line change
@@ -68,8 +68,8 @@ const Usage = () => (
should use corresponding version of Semantic UI React:
</p>
<Message.List>
<Message.Item>for SUI 2.2 use 0.79.1 and below</Message.Item>
<Message.Item>for SUI 2.3 use 0.80.0 and higher</Message.Item>
<Message.Item>for SUI 2.2 use 0.80.2 and below</Message.Item>
<Message.Item>for SUI 2.3 use 0.81.0 and higher</Message.Item>
</Message.List>
</Message>

@@ -247,7 +247,7 @@ const Usage = () => (
</p>

<p>
Please ensure that you're using <code>semantic-ui-react@0.82.0</code> or higher because we
Please ensure that you're using <code>semantic-ui-react@0.81.2</code> or higher because we
added the{' '}
<a
href='https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free'
22 changes: 0 additions & 22 deletions gulp/tasks/docs.js
Original file line number Diff line number Diff line change
@@ -70,18 +70,6 @@ task('build:docs:cname', (cb) => {
sh(`echo react.semantic-ui.com > ${paths.docsDist('CNAME')}`, cb)
})

task('build:changelog', (cb) => {
const cmd = [
'github_changelog_generator',
'--no-issues',
'--no-unreleased',
'--release-branch master',
'--since-tag $(git describe --abbrev=0 --tags $(git rev-parse HEAD~300))',
].join(' ')

sh(cmd, cb)
})

task('build:docs:docgen', () =>
src(componentsSrc, { since: lastRun('build:docs:docgen') })
.pipe(gulpReactDocgen())
@@ -155,16 +143,6 @@ task(
// Deploy
// ----------------------------------------

task('deploy:changelog', (cb) => {
const cmd = [
'git add CHANGELOG.md',
"git commit -m 'docs(changelog): update changelog [ci skip]'",
'git push',
].join(' && ')

sh(cmd, cb)
})

task('deploy:docs', (cb) => {
const relativePath = path.relative(process.cwd(), paths.docsDist())
sh(`gh-pages -d ${relativePath} -m "deploy docs [ci skip]"`, cb)
9 changes: 8 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -8,6 +8,10 @@ export {
PaginationItemProps,
} from './dist/commonjs/addons/Pagination/PaginationItem'
export { default as Portal, PortalProps } from './dist/commonjs/addons/Portal'
export {
default as PortalInner,
PortalInnerProps,
} from './dist/commonjs/addons/Portal/PortalInner'
export { default as Radio, RadioProps } from './dist/commonjs/addons/Radio'
export { default as Ref, RefProps } from './dist/commonjs/addons/Ref'
export {
@@ -212,12 +216,15 @@ export { default as Accordion, AccordionProps } from './dist/commonjs/modules/Ac
export {
default as AccordionAccordion,
AccordionAccordionProps,
AccordionPanelProps,
} from './dist/commonjs/modules/Accordion/AccordionAccordion'
export {
default as AccordionContent,
AccordionContentProps,
} from './dist/commonjs/modules/Accordion/AccordionContent'
export {
default as AccordionPanel,
AccordionPanelProps,
} from './dist/commonjs/modules/Accordion/AccordionPanel'
export {
default as AccordionTitle,
AccordionTitleProps,
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "semantic-ui-react",
"version": "0.81.3",
"version": "0.82.0",
"description": "The official Semantic-UI-React integration.",
"jsnext:main": "dist/es/index.js",
"main": "dist/commonjs/index.js",
@@ -14,12 +14,14 @@
"sideEffects": false,
"scripts": {
"build": "gulp build",
"build:changelog": "github_changelog_generator --no-issues --no-unreleased --release-branch master --since-tag $(git describe --abbrev=0 --tags $(git rev-parse HEAD~300))",
"build:docs": "gulp --series dll build:docs",
"build:dist": "gulp --series dll build:dist",
"ci": "yarn tsd:lint && yarn tsd:test && yarn lint && yarn test",
"predeploy:docs": "cross-env NODE_ENV=production yarn build:docs && gulp build:docs:cname",
"deploy:changelog": "git add CHANGELOG.md && git commit -m \"docs(changelog): update changelog [ci skip]\" && git push",
"deploy:docs": "gulp deploy:docs",
"postdeploy:docs": "gulp --series build:changelog deploy:changelog",
"postdeploy:docs": "yarn build:changelog && gulp deploy:changelog",
"lint": "cross-env NODE_ENV=production eslint .",
"lint:fix": "yarn lint --fix",
"prettier": "prettier --list-different \"**/*.{js,jsx,ts,tsx}\"",
@@ -160,7 +162,7 @@
"webpack-hot-middleware": "^2.18.2"
},
"peerDependencies": {
"react": ">=0.14.0 <= 16",
"react-dom": ">=0.14.0 <= 16"
"react": "^16.0.0",
"react-dom": "^16.0.0"
}
}
Loading