diff --git a/.babel-preset.js b/.babel-preset.js index ec786a0795..8dd10d83b4 100644 --- a/.babel-preset.js +++ b/.babel-preset.js @@ -24,6 +24,9 @@ const plugins = [ '@babel/plugin-transform-runtime', { regenerator: isDocsBuild, + useESModules: isESBuild, + // https://github.com/babel/babel/issues/10261 + version: require('@babel/runtime/package.json').version, }, ], // Plugins that allow to reduce the target bundle size @@ -36,13 +39,6 @@ const plugins = [ removeImport: isUMDBuild, }, ], - // A plugin for react-static - isDocsBuild && [ - 'universal-import', - { - disableWarnings: true, - }, - ], // A plugin for removal of debug in production builds isLibBuild && [ 'filter-imports', @@ -76,4 +72,15 @@ module.exports = () => ({ plugins: [['istanbul', { include: ['src'] }]], }, }, + overrides: [ + // A workaround to avoid collisions between "babel-plugin-dynamic-import-node" & "universal-import" + { + test: /react-static-routes.js/, + plugins: [ + ['universal-import', { disableWarnings: true }], + '@babel/plugin-transform-modules-commonjs', + ], + presets: [['@babel/env', { modules: false }]], + }, + ], }) diff --git a/.circleci/config.yml b/.circleci/config.yml index 08958dffb9..302f79bb34 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,54 +1,87 @@ -version: 2 +version: 2.1 + general: branches: ignore: - gh-pages + +docker_defaults: &docker_defaults + docker: + - image: circleci/node:12-browsers + working_directory: ~/project/semantic-ui-react + +restore_node_modules: &restore_node_modules + restore_cache: + name: Restore node_modules cache + keys: + - v3-node-{{ .Branch }}-{{ checksum "yarn.lock" }} + - v3-node-{{ .Branch }}- + - v3-node- + jobs: - build: - docker: - - image: circleci/node:8-browsers - environment: - TZ: "/usr/share/zoneinfo/America/Los_Angeles" + bootstrap: + <<: *docker_defaults steps: - - run: - name: Update yarn - command: | - # remove default yarn - sudo rm -rf $(dirname $(which yarn))/yarn* - # download latest - rm -rf ~/.yarn - curl -o- -L https://yarnpkg.com/install.sh | bash - echo 'export PATH="${PATH}:${HOME}/.yarn/bin"' >> $BASH_ENV - checkout - # because we don't invoke npm (we use yarn) we need to add npm bin to PATH manually - - run: - name: Add npm bin to PATH - command: echo 'export PATH="${PATH}:$(npm bin)"' >> $BASH_ENV - - restore_cache: - keys: - - v2-dependencies-{{ checksum "yarn.lock" }} + - *restore_node_modules - run: name: Install Dependencies - command: yarn + command: yarn install --frozen-lockfile - save_cache: - key: v2-dependencies-{{ checksum "yarn.lock" }} + name: Save yarn cache + key: v3-yarn-{{ .Branch }}-{{ checksum "yarn.lock" }} paths: - - ~/.cache/yarn - - run: - name: Lint TypeScript - command: yarn tsd:lint - - run: - name: Test TypeScript - command: yarn tsd:test + - .cache/yarn + - save_cache: + name: Save node_modules cache + key: v3-node-{{ .Branch }}-{{ checksum "yarn.lock" }} + paths: + - node_modules/ - run: - name: Lint JavaScript - command: yarn lint + name: Remove node_modules to cleanup workspace + command: rm -r node_modules/ + - persist_to_workspace: + root: ~/project + paths: + - semantic-ui-react + + test: + <<: *docker_defaults + steps: + - attach_workspace: + at: ~/project + - *restore_node_modules - run: name: Test JavaScript command: yarn test + - run: + name: Report coverage + command: bash <(curl -s https://codecov.io/bash) + - run: + name: Test TypeScript + command: yarn tsd:test - run: name: Test UMD bundle command: yarn test:umd + + lint: + <<: *docker_defaults + steps: + - attach_workspace: + at: ~/project + - *restore_node_modules - run: - name: Report coverage - command: bash <(curl -s https://codecov.io/bash) + name: Lint + command: yarn lint + +workflows: + version: 2 + main: + jobs: + - bootstrap + - test: + requires: + - bootstrap + - lint: + requires: + - bootstrap diff --git a/.eslintignore b/.eslintignore index b501af3790..5053239b57 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ +bundle-size/dist/* coverage/* dist/* docs/dist/* diff --git a/.eslintrc b/.eslintrc index f83bbc8246..14d66ad96c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,4 +1,5 @@ { + "root": true, "parser": "babel-eslint", "extends": ["airbnb", "prettier"], "env": { @@ -15,11 +16,14 @@ "no-multi-spaces": ["error", { "ignoreEOLComments": true }], "no-return-assign": ["error", "except-parens"], "no-underscore-dangle": "off", - "padded-blocks": ["error", { - "blocks": "never", - "switches": "never", - "classes": "never" - }], + "padded-blocks": [ + "error", + { + "blocks": "never", + "switches": "never", + "classes": "never" + } + ], "prefer-destructuring": "off", "jsx-a11y/alt-text": "warn", "jsx-a11y/anchor-is-valid": "off", @@ -28,6 +32,8 @@ "jsx-a11y/label-has-associated-control": "warn", "jsx-a11y/no-static-element-interactions": "warn", "jsx-a11y/role-has-required-aria-props": "warn", + "import/named": "off", + "import/no-cycle": "off", "import/no-dynamic-require": "off", "import/no-extraneous-dependencies": "off", "import/no-unresolved": "off", @@ -36,11 +42,32 @@ "react/button-has-type": "off", "react/destructuring-assignment": "off", "react/forbid-prop-types": "off", - "react/jsx-one-expression-per-line": "off", - "react/jsx-filename-extension": [2, { "extensions": [".js"] }], + "react/jsx-curly-newline": "off", + "react/jsx-one-expression-per-line": "off", + "react/jsx-filename-extension": ["error", { "extensions": [".js", ".tsx"] }], + "react/jsx-props-no-spreading": "off", "react/jsx-wrap-multilines": "off", + "react/prefer-stateless-function": "off", "react/no-unused-prop-types": "off", "react/sort-comp": "off", - "react/require-default-props":"off" - } + "react/state-in-constructor": "off", + "react/require-default-props": "off" + }, + "overrides": [ + { + "files": ["**/*.ts", "**/*.tsx"], + "parser": "@typescript-eslint/parser", + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended" + ], + "plugins": ["@typescript-eslint"], + "rules": { + "@typescript-eslint/explicit-module-boundary-types": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-empty-interface": "off" + } + } + ] } diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 148685fcc0..71487771cf 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -60,7 +60,7 @@ cd Semantic-UI-React yarn ``` ->Note, we use `yarn` because `npm` has unfortunately become unreliable. Get it [here][16]. +>Note: we use `yarn` and advise you do too while contributing. Get it [here](https://yarnpkg.com/). You can use `npm install / npm ci` but we don't include a `package-lock.json` in the repository, so you may end up with slightly out of sync dependencies. Add our repo as a git remote so you can pull/rebase your fork with our latest updates: @@ -516,7 +516,7 @@ Label.propTypes = { ### Examples ->This section is lacking in instruction as the the docs are set to be overhauled (PRs welcome!). +>This section is lacking in instruction as the docs are set to be overhauled (PRs welcome!). Usage examples for a component live in `docs/src/examples`. The examples follow the SUI doc site examples. diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 1dfebfc380..0000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,33 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 180 - -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 180 - -# Issues with these labels will never be considered stale -exemptLabels: - - pinned - - security - -# Label to use when marking an issue as stale -staleLabel: stale - -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - There has been no activity in this thread for 180 days. While we care about - every issue and we’d love to see this fixed, the core team’s time is - limited so we have to focus our attention on the issues that are most - pressing. Therefore, we will likely not be able to get to this one. - - - However, PRs for this issue will of course be accepted and welcome! - - - If there is no more activity in the next 180 days, this issue will be closed - automatically for housekeeping. To prevent this, simply leave a reply here. - Thanks! - -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: > - This issue will be closed due to lack of activity for 12 months. If you’d - like this to be reopened, just leave a comment; we do monitor them! diff --git a/.github/workflows/pr-health.yml b/.github/workflows/pr-health.yml new file mode 100644 index 0000000000..ff78e0d197 --- /dev/null +++ b/.github/workflows/pr-health.yml @@ -0,0 +1,14 @@ +name: PR Health +on: + pull_request: + types: [opened, labeled, unlabeled, synchronize] + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: mheap/github-action-required-labels@v1 + with: + mode: exactly + count: 1 + labels: "PR: Breaking Change :boom:, PR: New Feature :rocket:, PR: Bug Fix :bug:, PR: Docs :memo:, PR: Internal :house:" diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml new file mode 100644 index 0000000000..1897cbd5da --- /dev/null +++ b/.github/workflows/size-limit.yml @@ -0,0 +1,35 @@ +name: Bundle Size +on: + pull_request: + branches: + - master + +jobs: + size: + runs-on: ubuntu-latest + env: + CI_JOB_NUMBER: 1 + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v1 + with: + node-version: 12.x + + - name: Cache node_modules + uses: actions/cache@v1 + id: yarn-cache-node-modules + with: + path: node_modules + key: ${{ runner.os }}-yarn-cache-node-modules-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn-cache-node-modules- + + - name: Yarn install + if: steps.yarn-cache-node-modules.outputs.cache-hit != 'true' + run: yarn install --frozen-lockfile + + - uses: andresz1/size-limit-action@v1.4.0 + with: + build_script: build:size + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.prettierrc.json b/.prettierrc.json index 14bedecbad..75c5a1bfc7 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -14,12 +14,6 @@ "parser": "json" } }, - { - "files": "*.{ts,tsx}", - "options": { - "semi": true - } - }, { "files": "docs/src/examples/**/*.js", "options": { diff --git a/.size-limit.js b/.size-limit.js new file mode 100644 index 0000000000..0ed05cb77e --- /dev/null +++ b/.size-limit.js @@ -0,0 +1,5 @@ +module.exports = require('glob') + .sync('bundle-size/dist/*.size.js', { + cwd: __dirname, + }) + .map((file) => ({ path: file, gzip: false })) diff --git a/CHANGELOG.md b/CHANGELOG.md index 580a10ff0c..12659382b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,44 @@ # Change Log +## [v1.0.0](https://github.com/Semantic-Org/Semantic-UI-React/tree/v1.0.0) (2020-07-21) + +[Full Changelog](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.88.2...v1.0.0) + +**Merged pull requests:** + +- docs: remove knobs usage [\#3988](https://github.com/Semantic-Org/Semantic-UI-React/pull/3988) ([layershifter](https://github.com/layershifter)) +- chore\(Dropdown\): remove deprecated lifecycle methods [\#3986](https://github.com/Semantic-Org/Semantic-UI-React/pull/3986) ([layershifter](https://github.com/layershifter)) +- chore: use `react-intersection-observer` in docs to improve perf [\#3985](https://github.com/Semantic-Org/Semantic-UI-React/pull/3985) ([reefman001](https://github.com/reefman001)) +- chore\(Transition\): remove deprecated lifecycle methods [\#3982](https://github.com/Semantic-Org/Semantic-UI-React/pull/3982) ([layershifter](https://github.com/layershifter)) +- chore\(Sticky\): remove usage of deprecated lifecycle methods [\#3974](https://github.com/Semantic-Org/Semantic-UI-React/pull/3974) ([layershifter](https://github.com/layershifter)) +- chore\(Visibility\): remove usage of deprecated lifecycle methods [\#3973](https://github.com/Semantic-Org/Semantic-UI-React/pull/3973) ([layershifter](https://github.com/layershifter)) +- chore\(TransitionGroup\): remove deprecated lifecycle methods [\#3970](https://github.com/Semantic-Org/Semantic-UI-React/pull/3970) ([layershifter](https://github.com/layershifter)) +- chore\(Search\): replace deprecated lifecycle methods [\#3968](https://github.com/Semantic-Org/Semantic-UI-React/pull/3968) ([layershifter](https://github.com/layershifter)) +- chore: use ModernAutoControlled component [\#3967](https://github.com/Semantic-Org/Semantic-UI-React/pull/3967) ([layershifter](https://github.com/layershifter)) +- chore\(TransitionablePortal\): remove usage of UNSAFE\_\* methods [\#3966](https://github.com/Semantic-Org/Semantic-UI-React/pull/3966) ([layershifter](https://github.com/layershifter)) +- fix\(customProptypes\): add a check for Element existance [\#3965](https://github.com/Semantic-Org/Semantic-UI-React/pull/3965) ([layershifter](https://github.com/layershifter)) +- docs\(README.md\): fix formatting [\#3958](https://github.com/Semantic-Org/Semantic-UI-React/pull/3958) ([klunico](https://github.com/klunico)) +- docs\(VisibilityExampleUpdateOn\): Correcting Typo [\#3952](https://github.com/Semantic-Org/Semantic-UI-React/pull/3952) ([mattorton](https://github.com/mattorton)) +- fix\(Input\): add 'inputMode' attribute to input [\#3916](https://github.com/Semantic-Org/Semantic-UI-React/pull/3916) ([RoyalHunt](https://github.com/RoyalHunt)) + +## [v0.88.2](https://github.com/Semantic-Org/Semantic-UI-React/tree/v0.88.2) (2019-12-08) +[Full Changelog](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.88.1...v0.88.2) + +**Merged pull requests:** + +- chore: update husky hooks [\#3859](https://github.com/Semantic-Org/Semantic-UI-React/pull/3859) ([levithomason](https://github.com/levithomason)) +- chore: remove stale bot [\#3858](https://github.com/Semantic-Org/Semantic-UI-React/pull/3858) ([levithomason](https://github.com/levithomason)) +- fix\(Search\): use result.id for SearchResult key [\#3848](https://github.com/Semantic-Org/Semantic-UI-React/pull/3848) ([unbug](https://github.com/unbug)) +- docs\(misc\): fix typos [\#3837](https://github.com/Semantic-Org/Semantic-UI-React/pull/3837) ([yuuyu00](https://github.com/yuuyu00)) +- fix\(FeedSummary\): add missing space around content [\#3836](https://github.com/Semantic-Org/Semantic-UI-React/pull/3836) ([ridvankaradag](https://github.com/ridvankaradag)) +- feat\(FormField\): make form field error accessible [\#3822](https://github.com/Semantic-Org/Semantic-UI-React/pull/3822) ([aoelen](https://github.com/aoelen)) +- docs: fix minor grammar and punctuation errors [\#3818](https://github.com/Semantic-Org/Semantic-UI-React/pull/3818) ([anupamasok](https://github.com/anupamasok)) +- docs: update warning about using yarn [\#3816](https://github.com/Semantic-Org/Semantic-UI-React/pull/3816) ([chrisbrainerd](https://github.com/chrisbrainerd)) +- docs: update grammar/wording for tab pane shorthand [\#3801](https://github.com/Semantic-Org/Semantic-UI-React/pull/3801) ([spencerbyw](https://github.com/spencerbyw)) +- docs\(MenuExampleHeaderVertical\): fix onClick handler [\#3799](https://github.com/Semantic-Org/Semantic-UI-React/pull/3799) ([Suzi004](https://github.com/Suzi004)) +- chore\(lib\): add ModernAutoControlledComponent [\#3776](https://github.com/Semantic-Org/Semantic-UI-React/pull/3776) ([layershifter](https://github.com/layershifter)) +- feat\(Search\): custom category layout renderer [\#3672](https://github.com/Semantic-Org/Semantic-UI-React/pull/3672) ([PrincessMadMath](https://github.com/PrincessMadMath)) + ## [v0.88.1](https://github.com/Semantic-Org/Semantic-UI-React/tree/v0.88.1) (2019-09-09) [Full Changelog](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.88.0...v0.88.1) @@ -16,6 +55,7 @@ **Merged pull requests:** +- feat\(TextArea\): export StrictTextAreaProps typing [\#3846](https://github.com/Semantic-Org/Semantic-UI-React/pull/3846) ([chrisbull](https://github.com/chrisbull)) - docs\(CodeSandbox\): fix paths for images in exported examples [\#3758](https://github.com/Semantic-Org/Semantic-UI-React/pull/3758) ([layershifter](https://github.com/layershifter)) - fix\(typings\): add missing `StrictMenuProps` type export [\#3755](https://github.com/Semantic-Org/Semantic-UI-React/pull/3755) ([b-smets](https://github.com/b-smets)) - docs\(Popup\): add example for `delay` prop in Popup [\#3754](https://github.com/Semantic-Org/Semantic-UI-React/pull/3754) ([SandipNirmal](https://github.com/SandipNirmal)) @@ -149,7 +189,7 @@ - fix\(Dropdown\): retain focus on the input if the Dropdown receives a click [\#3422](https://github.com/Semantic-Org/Semantic-UI-React/pull/3422) ([jongsue](https://github.com/jongsue)) - docs\(Portal\): fix controlled Portal usage [\#3420](https://github.com/Semantic-Org/Semantic-UI-React/pull/3420) ([Fabianopb](https://github.com/Fabianopb)) - feat\(Accordion\): add `icon` shorthand for AccordionTitle [\#3417](https://github.com/Semantic-Org/Semantic-UI-React/pull/3417) ([sako9](https://github.com/sako9)) -- fix\(Icon\): update typings for `corner` prop [\#3393](https://github.com/Semantic-Org/Semantic-UI-React/pull/3393) ([areading314](https://github.com/areading314)) +- feat\(Flag\): export names in typings [\#2957](https://github.com/Semantic-Org/Semantic-UI-React/pull/2957) ([layershifter](https://github.com/layershifter)) - docs\(Sticky\): add warning about erratic behavior inside `Sidebar.Pushable` [\#2936](https://github.com/Semantic-Org/Semantic-UI-React/pull/2936) ([brambow](https://github.com/brambow)) ## [v0.85.0](https://github.com/Semantic-Org/Semantic-UI-React/tree/v0.85.0) (2019-02-04) @@ -162,6 +202,7 @@ - docs\(ComponentExample\): allow to disable HTML preview [\#3404](https://github.com/Semantic-Org/Semantic-UI-React/pull/3404) ([layershifter](https://github.com/layershifter)) - docs\(Examples\): add ability to export examples to CodeSandbox [\#3399](https://github.com/Semantic-Org/Semantic-UI-React/pull/3399) ([layershifter](https://github.com/layershifter)) - fix\(docs\): fix a polyfill loading for IE11 [\#3395](https://github.com/Semantic-Org/Semantic-UI-React/pull/3395) ([oolleegg55](https://github.com/oolleegg55)) +- fix\(Icon\): update typings for `corner` prop [\#3393](https://github.com/Semantic-Org/Semantic-UI-React/pull/3393) ([areading314](https://github.com/areading314)) - fix\(Dropdown\): prevent calling onChange unless value changed [\#3391](https://github.com/Semantic-Org/Semantic-UI-React/pull/3391) ([zarend](https://github.com/zarend)) - chore\(package\): upgrade keyboard-key [\#3390](https://github.com/Semantic-Org/Semantic-UI-React/pull/3390) ([levithomason](https://github.com/levithomason)) - chore\(package\): update karma and webpack [\#3383](https://github.com/Semantic-Org/Semantic-UI-React/pull/3383) ([layershifter](https://github.com/layershifter)) @@ -276,21 +317,6 @@ - fix\(Dropdown\): fix deepEqual bug [\#3104](https://github.com/Semantic-Org/Semantic-UI-React/pull/3104) ([pedromtorres](https://github.com/pedromtorres)) - fix\(docs\): fix issues with local builds [\#3098](https://github.com/Semantic-Org/Semantic-UI-React/pull/3098) ([layershifter](https://github.com/layershifter)) -## [v0.82.3](https://github.com/Semantic-Org/Semantic-UI-React/tree/v0.82.3) (2018-08-22) -[Full Changelog](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.82.2...v0.82.3) - -**Merged pull requests:** - -- fix\(Icon\): update icon names [\#3092](https://github.com/Semantic-Org/Semantic-UI-React/pull/3092) ([levithomason](https://github.com/levithomason)) -- chore\(package\): update Babel to RC1 [\#3086](https://github.com/Semantic-Org/Semantic-UI-React/pull/3086) ([layershifter](https://github.com/layershifter)) -- chore\(build\): fixes for UMD build [\#3085](https://github.com/Semantic-Org/Semantic-UI-React/pull/3085) ([layershifter](https://github.com/layershifter)) -- chore\(package\): bump react-sandbox-render [\#3084](https://github.com/Semantic-Org/Semantic-UI-React/pull/3084) ([layershifter](https://github.com/layershifter)) -- fix\(Message\): export size prop in typings [\#3083](https://github.com/Semantic-Org/Semantic-UI-React/pull/3083) ([layershifter](https://github.com/layershifter)) -- docs\(Item\): cleanup examples [\#3082](https://github.com/Semantic-Org/Semantic-UI-React/pull/3082) ([ChenjieZhou](https://github.com/ChenjieZhou)) -- chore\(config\): remove unused options [\#3080](https://github.com/Semantic-Org/Semantic-UI-React/pull/3080) ([layershifter](https://github.com/layershifter)) -- docs\(build\): fix reloading of examples sources [\#3075](https://github.com/Semantic-Org/Semantic-UI-React/pull/3075) ([layershifter](https://github.com/layershifter)) -- docs\(ComponentExample\): fix display of children [\#3070](https://github.com/Semantic-Org/Semantic-UI-React/pull/3070) ([layershifter](https://github.com/layershifter)) - -\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* \ No newline at end of file +\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* diff --git a/README.md b/README.md index 00e5c51fc3..0fb8875407 100644 --- a/README.md +++ b/README.md @@ -29,76 +29,30 @@
->Hey, we're in development. Prior to reaching [v1.0.0][6]: -> ->1. **MINOR** versions represent **breaking changes** ->1. **PATCH** versions represent **fixes _and_ features** ->1. There are **no deprecation warnings** between releases ->1. You should consult the [**CHANGELOG**][18] and related issues/PRs for more information - ## Installation & Usage See the [**Documentation**][2] for an introduction, usage information, and examples. ## Built With - - - - - - ++ + + +
- Amazon Publishing — the full-service publisher of Amazon — [APub.com](https://amazonpublishing.amazon.com) - Netflix's Edge Developer Experience team's numerous [internal apps](https://github.com/Semantic-Org/Semantic-UI-React/issues/1604) - Netflix's [flamescope][31] - Microsoft's [Teams](https://products.office.com/en-US/microsoft-teams/group-chat-software) prototyping -<Icon className='my-icon' />
instead of `<Icon name='my-icon' />`. See https://github.com/Semantic-Org/Semantic-UI-React/issues/931#issuecomment-263643210 for detailed info and examples.
+ Yes. Just use <Icon className='my-icon' />
instead of <Icon name='my-icon' />
. See https://github.com/Semantic-Org/Semantic-UI-React/issues/931#issuecomment-263643210 for detailed info and examples.
+
+ {code}
+
+
+ {value}
}
}
+
+ComponentPropDefaultValue.propTypes = {
+ value: PropTypes.node,
+}
diff --git a/docs/src/components/ComponentDoc/ComponentProp/ComponentPropDescription.js b/docs/src/components/ComponentDoc/ComponentProp/ComponentPropDescription.js
index 3c62eab401..8a6eea1306 100644
--- a/docs/src/components/ComponentDoc/ComponentProp/ComponentPropDescription.js
+++ b/docs/src/components/ComponentDoc/ComponentProp/ComponentPropDescription.js
@@ -3,12 +3,12 @@ import PropTypes from 'prop-types'
import React, { PureComponent } from 'react'
export default class ComponentPropDescription extends PureComponent {
- static propTypes = {
- description: PropTypes.arrayOf(PropTypes.string),
- }
-
render() {
const { description } = this.props
return {_.map(description, (line) => [line,
])}