From 8bf92eca4e0443f180df5ae2d7a1a2aff897544a Mon Sep 17 00:00:00 2001 From: tulup-conner Date: Fri, 10 Jun 2022 01:24:02 -0700 Subject: [PATCH] refactor: Add `prettier-plugin-organize-imports` (#204) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): Add `prettier-plugin-organize-imports` * refactor: Organize imports * chore(config): Setup `eslint-plugin-tailwindcss` We also add a rule to organize class names by the recommended order. * chore(config): Run more thorough checks pre-commit More closely emulate CI in the git pre-commit hook. * refactor: Resolve linter warnings * chore(ci): adjust codecov threshold Co-authored-by: Ricardo LΓΌders --- .eslintrc.js | 9 +- .github/ISSUE_TEMPLATE/bug_report.md | 18 +- .github/ISSUE_TEMPLATE/feature_request.md | 1 - .github/workflows/build.yaml | 6 +- .github/workflows/ci.yaml | 6 +- .husky/pre-commit | 3 +- CHANGELOG.md | 211 ++++++++---------- CODE_OF_CONDUCT.md | 20 +- CONTRIBUTING.md | 2 +- codecov.yml | 6 + package.json | 7 +- public/404.html | 71 +++--- public/index.html | 16 +- src/docs/Root.tsx | 1 - src/docs/pages/AccordionPage.tsx | 1 - src/docs/pages/AlertsPage.tsx | 1 - src/docs/pages/AvatarPage.tsx | 1 - src/docs/pages/BadgesPage.tsx | 1 - src/docs/pages/BreadcrumbPage.tsx | 1 - src/docs/pages/ButtonGroupPage.tsx | 3 +- src/docs/pages/ButtonsPage.tsx | 1 - src/docs/pages/CardPage.tsx | 25 +-- src/docs/pages/CarouselPage.tsx | 3 +- src/docs/pages/DashboardPage.tsx | 5 +- src/docs/pages/DemoPage.tsx | 3 +- src/docs/pages/DropdownPage.tsx | 3 +- src/docs/pages/FooterPage.tsx | 4 +- src/docs/pages/FormsPage.tsx | 3 +- src/docs/pages/ListGroupPage.tsx | 1 - src/docs/pages/ModalPage.tsx | 2 +- src/docs/pages/NavbarPage.tsx | 2 +- src/docs/pages/PaginationPage.tsx | 1 - src/docs/pages/ProgressPage.tsx | 1 - src/docs/pages/SidebarPage.tsx | 2 +- src/docs/pages/SpinnersPage.tsx | 1 - src/docs/pages/TablePage.tsx | 3 +- src/docs/pages/TabsPage.tsx | 3 +- src/docs/pages/TimelinePage.tsx | 4 +- src/docs/pages/ToastPage.tsx | 15 +- src/docs/pages/TooltipsPage.tsx | 1 - src/docs/routes.tsx | 18 +- src/index.tsx | 5 +- .../components/Accordion/Accordion.spec.tsx | 13 +- .../Accordion/Accordion.stories.tsx | 4 +- .../components/Accordion/AccordionContent.tsx | 1 - .../components/Accordion/AccordionTitle.tsx | 6 +- src/lib/components/Accordion/index.tsx | 10 +- src/lib/components/Alert/Alert.spec.tsx | 1 - src/lib/components/Alert/Alert.stories.tsx | 1 - src/lib/components/Alert/index.tsx | 4 +- src/lib/components/Avatar/Avatar.spec.tsx | 5 +- src/lib/components/Avatar/Avatar.stories.tsx | 1 - src/lib/components/Badge/Badge.spec.tsx | 5 +- src/lib/components/Badge/Badge.stories.tsx | 1 - src/lib/components/Badge/index.tsx | 6 +- .../components/Breadcrumb/Breadcrumb.spec.tsx | 5 +- .../Breadcrumb/Breadcrumb.stories.tsx | 1 - .../components/Breadcrumb/BreadcrumbItem.tsx | 2 +- src/lib/components/Button/Button.spec.tsx | 1 - src/lib/components/Button/Button.stories.tsx | 1 - .../components/Button/ButtonGroup.spec.tsx | 2 +- .../components/Button/ButtonGroup.stories.tsx | 1 - src/lib/components/Button/ButtonGroup.tsx | 1 - src/lib/components/Button/index.tsx | 8 +- src/lib/components/Card/Card.spec.tsx | 1 - src/lib/components/Card/Card.stories.tsx | 1 - src/lib/components/Card/index.tsx | 4 +- .../components/Carousel/Carousel.stories.tsx | 1 - src/lib/components/Carousel/index.tsx | 4 +- .../DarkThemeToggle/DarkThemeToggle.spec.tsx | 1 - .../DarkThemeToggle.stories.tsx | 1 - src/lib/components/Dropdown/Dropdown.spec.tsx | 1 - .../components/Dropdown/Dropdown.stories.tsx | 3 +- src/lib/components/Dropdown/index.tsx | 4 +- src/lib/components/Flowbite/FlowbiteTheme.ts | 15 +- src/lib/components/Flowbite/ThemeContext.tsx | 2 +- src/lib/components/Flowbite/index.tsx | 6 +- src/lib/components/Footer/Footer.spec.tsx | 1 - src/lib/components/Footer/Footer.stories.tsx | 2 +- src/lib/components/Footer/FooterIcon.tsx | 2 +- src/lib/components/Footer/index.tsx | 2 +- .../components/FormControls/Checkbox.spec.tsx | 1 - .../FormControls/Checkbox.stories.tsx | 1 - src/lib/components/FormControls/Checkbox.tsx | 2 +- .../FormControls/FileInput.spec.tsx | 1 - .../FormControls/FileInput.stories.tsx | 1 - src/lib/components/FormControls/FileInput.tsx | 3 +- .../components/FormControls/Label.stories.tsx | 1 - .../components/FormControls/Radio.spec.tsx | 1 - .../components/FormControls/Radio.stories.tsx | 1 - src/lib/components/FormControls/Radio.tsx | 2 +- .../components/FormControls/Select.spec.tsx | 1 - .../FormControls/Select.stories.tsx | 1 - src/lib/components/FormControls/Select.tsx | 2 +- .../FormControls/TextInput.spec.tsx | 1 - .../FormControls/TextInput.stories.tsx | 1 - src/lib/components/FormControls/TextInput.tsx | 2 +- .../components/FormControls/Textarea.spec.tsx | 1 - .../FormControls/Textarea.stories.tsx | 1 - src/lib/components/FormControls/Textarea.tsx | 2 +- .../FormControls/ToggleSwitch.spec.tsx | 1 - .../FormControls/ToggleSwitch.stories.tsx | 1 - .../components/FormControls/ToggleSwitch.tsx | 2 +- src/lib/components/FormControls/index.ts | 6 +- .../components/ListGroup/ListGroup.spec.tsx | 1 - .../ListGroup/ListGroup.stories.tsx | 3 +- .../components/ListGroup/ListGroupItem.tsx | 1 - src/lib/components/ListGroup/index.tsx | 3 +- src/lib/components/Modal/Modal.spec.tsx | 1 - src/lib/components/Modal/Modal.stories.tsx | 7 +- src/lib/components/Modal/ModalBody.tsx | 4 +- src/lib/components/Modal/ModalFooter.tsx | 7 +- src/lib/components/Modal/ModalHeader.tsx | 4 +- src/lib/components/Modal/index.tsx | 14 +- src/lib/components/Navbar/Navbar.spec.tsx | 1 - src/lib/components/Navbar/Navbar.stories.tsx | 1 - src/lib/components/Navbar/NavbarCollapse.tsx | 4 +- src/lib/components/Navbar/NavbarLink.tsx | 2 +- src/lib/components/Navbar/NavbarToggle.tsx | 2 +- src/lib/components/Navbar/index.tsx | 2 +- .../components/Pagination/Pagination.spec.tsx | 3 +- src/lib/components/Progress/Progress.spec.tsx | 1 - .../components/Progress/Progress.stories.tsx | 1 - src/lib/components/Rating/Rating.spec.tsx | 1 - src/lib/components/Rating/Rating.stories.tsx | 1 - src/lib/components/Rating/RatingStar.tsx | 4 +- src/lib/components/Rating/index.tsx | 6 +- src/lib/components/Sidebar/Sidebar.spec.tsx | 1 - .../components/Sidebar/Sidebar.stories.tsx | 4 +- src/lib/components/Sidebar/SidebarCTA.tsx | 2 +- src/lib/components/Sidebar/SidebarItems.tsx | 2 +- src/lib/components/Sidebar/SidebarLogo.tsx | 2 +- src/lib/components/Sidebar/index.tsx | 10 +- src/lib/components/Spinner/Spinner.spec.tsx | 1 - .../components/Spinner/Spinner.stories.tsx | 1 - src/lib/components/Spinner/index.tsx | 4 +- src/lib/components/Tab/Tabs.spec.tsx | 3 +- src/lib/components/Tab/Tabs.stories.tsx | 1 - src/lib/components/Tab/index.tsx | 6 +- src/lib/components/Table/Table.spec.tsx | 1 - src/lib/components/Table/Table.stories.tsx | 1 - src/lib/components/Table/TableCell.tsx | 2 +- src/lib/components/Table/TableHead.tsx | 2 +- src/lib/components/Table/TableHeadCell.tsx | 2 +- src/lib/components/Table/TableRow.tsx | 1 - src/lib/components/Table/index.tsx | 9 +- src/lib/components/Timeline/Timeline.spec.tsx | 1 - src/lib/components/Timeline/TimelineBody.tsx | 2 +- .../components/Timeline/TimelineContent.tsx | 2 +- src/lib/components/Timeline/TimelineItem.tsx | 2 +- src/lib/components/Timeline/TimelinePoint.tsx | 2 +- src/lib/components/Timeline/TimelineTime.tsx | 2 +- src/lib/components/Timeline/TimelineTitle.tsx | 2 +- src/lib/components/Timeline/index.tsx | 8 +- src/lib/components/Toast/Toast.spec.tsx | 3 +- src/lib/components/Toast/Toast.stories.tsx | 3 +- src/lib/components/Toast/ToastToggle.tsx | 2 +- src/lib/components/Toast/index.tsx | 8 +- src/lib/components/Tooltip/Tooltip.spec.tsx | 3 +- .../components/Tooltip/Tooltip.stories.tsx | 1 - src/lib/components/Tooltip/index.tsx | 8 +- src/lib/components/index.ts | 8 +- src/setup-tests.ts | 2 +- yarn.lock | 21 +- 164 files changed, 390 insertions(+), 477 deletions(-) create mode 100644 codecov.yml diff --git a/.eslintrc.js b/.eslintrc.js index ed13419ab..76b45389d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,6 +5,7 @@ module.exports = { 'plugin:prettier/recommended', 'plugin:react-hooks/recommended', 'plugin:storybook/recommended', + 'plugin:tailwindcss/recommended', ], ignorePatterns: ['.eslintrc.js', 'config-overrides.js', 'lint-staged.js', 'postcss.config.js', 'tailwind.config.js'], parser: '@typescript-eslint/parser', @@ -14,9 +15,15 @@ module.exports = { }, project: ['tsconfig.json', 'tsconfig.lib.json', 'cypress/tsconfig.json'], }, - plugins: ['@typescript-eslint', 'prettier', 'react-hooks', 'storybook'], + plugins: ['@typescript-eslint', 'prettier', 'react-hooks', 'storybook', 'tailwindcss'], root: true, rules: { '@typescript-eslint/consistent-type-imports': 'warn', + 'tailwindcss/classnames-order': [ + 'warn', + { + officialSorting: true, + }, + ], }, }; diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index dd84ea782..b5c68e55b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,7 +4,6 @@ about: Create a report to help us improve title: '' labels: '' assignees: '' - --- **Describe the bug** @@ -12,6 +11,7 @@ A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: + 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] + +- OS: [e.g. iOS] +- Browser [e.g. chrome, safari] +- Version [e.g. 22] **Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] + +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Browser [e.g. stock browser, safari] +- Version [e.g. 22] **Additional context** Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index bbcbbe7d6..2f28cead0 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -4,7 +4,6 @@ about: Suggest an idea for this project title: '' labels: '' assignees: '' - --- **Is your feature request related to a problem? Please describe.** diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 83eaffd5b..ba3174870 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -21,7 +21,7 @@ jobs: with: node-version: 16 - - name: ⏳ Setup Cache + - name: ⏳ Setup Cache uses: actions/cache@v3 with: path: '**/node_modules' @@ -44,7 +44,7 @@ jobs: - name: 🧰 Build code run: yarn build - - name: πŸ“Š Upload coverage to Codecov + - name: πŸ“Š Upload coverage to Codecov uses: codecov/codecov-action@v2 with: fail_ci_if_error: false @@ -52,7 +52,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} verbose: false - - name: πŸ“– Build Storybook + - name: πŸ“– Build Storybook run: yarn build:storybook - name: πŸš€ Deploy the website diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index be0b506fb..cfb77c87d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,7 +21,7 @@ jobs: with: node-version: 16 - - name: ⏳ Setup Cache + - name: ⏳ Setup Cache uses: actions/cache@v3 with: path: '**/node_modules' @@ -41,7 +41,7 @@ jobs: - name: πŸ”¬ Run unit tests run: yarn test:coverage - - name: πŸ“Š Upload coverage to Codecov + - name: πŸ“Š Upload coverage to Codecov uses: codecov/codecov-action@v2 with: fail_ci_if_error: true @@ -52,5 +52,5 @@ jobs: - name: 🧰 Build code run: yarn build - - name: πŸ“– Build Storybook + - name: πŸ“– Build Storybook run: yarn build:storybook diff --git a/.husky/pre-commit b/.husky/pre-commit index 479660289..be2d45990 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -CI=true yarn test -yarn run lint:staged \ No newline at end of file +yarn prettier && yarn lint && yarn test run && yarn build diff --git a/CHANGELOG.md b/CHANGELOG.md index 61f0e5066..7a60b3f89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,9 @@ All notable changes to this project will be documented in this file. See [standa ### [0.0.25](https://github.com/themesberg/flowbite-react/compare/v0.0.24...v0.0.25) (2022-05-20) - ### Bug Fixes -* **component:** Check for `window` in components ([#124](https://github.com/themesberg/flowbite-react/issues/124)) ([4b3b8c5](https://github.com/themesberg/flowbite-react/commit/4b3b8c5f0419e0d3aa80d751ef71a01e8a075e93)), closes [#123](https://github.com/themesberg/flowbite-react/issues/123) +- **component:** Check for `window` in components ([#124](https://github.com/themesberg/flowbite-react/issues/124)) ([4b3b8c5](https://github.com/themesberg/flowbite-react/commit/4b3b8c5f0419e0d3aa80d751ef71a01e8a075e93)), closes [#123](https://github.com/themesberg/flowbite-react/issues/123) ### [0.0.24](https://github.com/themesberg/flowbite-react/compare/v0.0.23...v0.0.24) (2022-05-15) @@ -15,245 +14,217 @@ All notable changes to this project will be documented in this file. See [standa ### [0.0.22](https://github.com/themesberg/flowbite-react/compare/v0.0.21...v0.0.22) (2022-05-10) - ### Bug Fixes -* refactor sidebar item to accept a component as wrapper ([#96](https://github.com/themesberg/flowbite-react/issues/96)) ([c934624](https://github.com/themesberg/flowbite-react/commit/c9346248641253f16fa0b5424a6a25b2cb31b875)) +- refactor sidebar item to accept a component as wrapper ([#96](https://github.com/themesberg/flowbite-react/issues/96)) ([c934624](https://github.com/themesberg/flowbite-react/commit/c9346248641253f16fa0b5424a6a25b2cb31b875)) ### [0.0.21](https://github.com/themesberg/flowbite-react/compare/v0.0.19...v0.0.21) (2022-05-10) - ### Features -* add tab component ([#87](https://github.com/themesberg/flowbite-react/issues/87)) ([e94cceb](https://github.com/themesberg/flowbite-react/commit/e94cceb0f88302a9681a2cc9555bff5d2a532df9)) -* adds footer component ([#59](https://github.com/themesberg/flowbite-react/issues/59)) ([7799f15](https://github.com/themesberg/flowbite-react/commit/7799f15d4adf89e8cc21fef3b2553120c9a261db)) -* **build:** Add `cypress` for end-to-end (integration) testing ([#85](https://github.com/themesberg/flowbite-react/issues/85)) ([4df13e6](https://github.com/themesberg/flowbite-react/commit/4df13e6dff826ae9af2859e4ba3b92abb5e4bb06)) -* flowbite theme context provider ([#61](https://github.com/themesberg/flowbite-react/issues/61)) ([7274f5e](https://github.com/themesberg/flowbite-react/commit/7274f5e20a5111f1c7c43c63fd497c8a34a0950f)) -* **route:** Add `Sidebar` examples page & stories, resolving [#53](https://github.com/themesberg/flowbite-react/issues/53) [#56](https://github.com/themesberg/flowbite-react/issues/56) ([#69](https://github.com/themesberg/flowbite-react/issues/69)) ([38b86bd](https://github.com/themesberg/flowbite-react/commit/38b86bd8b10fb4d5c310f0cf214c5e935021f3cd)) - +- add tab component ([#87](https://github.com/themesberg/flowbite-react/issues/87)) ([e94cceb](https://github.com/themesberg/flowbite-react/commit/e94cceb0f88302a9681a2cc9555bff5d2a532df9)) +- adds footer component ([#59](https://github.com/themesberg/flowbite-react/issues/59)) ([7799f15](https://github.com/themesberg/flowbite-react/commit/7799f15d4adf89e8cc21fef3b2553120c9a261db)) +- **build:** Add `cypress` for end-to-end (integration) testing ([#85](https://github.com/themesberg/flowbite-react/issues/85)) ([4df13e6](https://github.com/themesberg/flowbite-react/commit/4df13e6dff826ae9af2859e4ba3b92abb5e4bb06)) +- flowbite theme context provider ([#61](https://github.com/themesberg/flowbite-react/issues/61)) ([7274f5e](https://github.com/themesberg/flowbite-react/commit/7274f5e20a5111f1c7c43c63fd497c8a34a0950f)) +- **route:** Add `Sidebar` examples page & stories, resolving [#53](https://github.com/themesberg/flowbite-react/issues/53) [#56](https://github.com/themesberg/flowbite-react/issues/56) ([#69](https://github.com/themesberg/flowbite-react/issues/69)) ([38b86bd](https://github.com/themesberg/flowbite-react/commit/38b86bd8b10fb4d5c310f0cf214c5e935021f3cd)) ### Bug Fixes -* **docs:** Update `README` Components links to new URL pattern ([#84](https://github.com/themesberg/flowbite-react/issues/84)) ([39c2d91](https://github.com/themesberg/flowbite-react/commit/39c2d91c02528b56231e374de0b34d8593344d97)) -* fix Carousel styles ([78060ea](https://github.com/themesberg/flowbite-react/commit/78060ea820f4b52c3b4e27acddd6d656ff91e5c7)) -* improving flow handling ([#86](https://github.com/themesberg/flowbite-react/issues/86)) ([dc8af66](https://github.com/themesberg/flowbite-react/commit/dc8af66f24fa218f4152fff29c87d4620ada4bb3)) -* refactor sidebar item to accept a component as wrapper ([1c964eb](https://github.com/themesberg/flowbite-react/commit/1c964eb1cbfa458d3595e2e0d367e6479dd65992)) +- **docs:** Update `README` Components links to new URL pattern ([#84](https://github.com/themesberg/flowbite-react/issues/84)) ([39c2d91](https://github.com/themesberg/flowbite-react/commit/39c2d91c02528b56231e374de0b34d8593344d97)) +- fix Carousel styles ([78060ea](https://github.com/themesberg/flowbite-react/commit/78060ea820f4b52c3b4e27acddd6d656ff91e5c7)) +- improving flow handling ([#86](https://github.com/themesberg/flowbite-react/issues/86)) ([dc8af66](https://github.com/themesberg/flowbite-react/commit/dc8af66f24fa218f4152fff29c87d4620ada4bb3)) +- refactor sidebar item to accept a component as wrapper ([1c964eb](https://github.com/themesberg/flowbite-react/commit/1c964eb1cbfa458d3595e2e0d367e6479dd65992)) ### [0.0.20](https://github.com/themesberg/flowbite-react/compare/v0.0.19...v0.0.20) (2022-05-02) ### [0.0.19](https://github.com/themesberg/flowbite-react/compare/v0.0.18...v0.0.19) (2022-05-02) - ### Features -* adds more alert stories ([a99abc9](https://github.com/themesberg/flowbite-react/commit/a99abc9dd192e860949797721b9a56b7aba32ff1)) -* adds the addicional ([bcd268e](https://github.com/themesberg/flowbite-react/commit/bcd268e50efbee744f4167bf9c4b4a6f1c9582a0)) -* **build:** Upgrade `@popperjs/*` to `@floating-ui/react-*` ([#67](https://github.com/themesberg/flowbite-react/issues/67)) ([9ba11ef](https://github.com/themesberg/flowbite-react/commit/9ba11ef1830b42c9c3279797c3166c78a2ec325d)), closes [#57](https://github.com/themesberg/flowbite-react/issues/57) [#69](https://github.com/themesberg/flowbite-react/issues/69) -* **component:** Add `alt` attribute to `Avatar`s ([d803781](https://github.com/themesberg/flowbite-react/commit/d80378129414957bf8b0126e63c825361aaf0adf)) -* **content:** Add example `Avatar` with `alt` ([b619076](https://github.com/themesberg/flowbite-react/commit/b619076ce94d14117b23460c8a6072bcf956e8db)) -* **content:** Add example `Card` with image with `alt` text ([7410610](https://github.com/themesberg/flowbite-react/commit/74106100888339d4febdb6a32bcaed57a5dae90e)) - +- adds more alert stories ([a99abc9](https://github.com/themesberg/flowbite-react/commit/a99abc9dd192e860949797721b9a56b7aba32ff1)) +- adds the addicional ([bcd268e](https://github.com/themesberg/flowbite-react/commit/bcd268e50efbee744f4167bf9c4b4a6f1c9582a0)) +- **build:** Upgrade `@popperjs/*` to `@floating-ui/react-*` ([#67](https://github.com/themesberg/flowbite-react/issues/67)) ([9ba11ef](https://github.com/themesberg/flowbite-react/commit/9ba11ef1830b42c9c3279797c3166c78a2ec325d)), closes [#57](https://github.com/themesberg/flowbite-react/issues/57) [#69](https://github.com/themesberg/flowbite-react/issues/69) +- **component:** Add `alt` attribute to `Avatar`s ([d803781](https://github.com/themesberg/flowbite-react/commit/d80378129414957bf8b0126e63c825361aaf0adf)) +- **content:** Add example `Avatar` with `alt` ([b619076](https://github.com/themesberg/flowbite-react/commit/b619076ce94d14117b23460c8a6072bcf956e8db)) +- **content:** Add example `Card` with image with `alt` text ([7410610](https://github.com/themesberg/flowbite-react/commit/74106100888339d4febdb6a32bcaed57a5dae90e)) ### Bug Fixes -* cleaning ([a7e1382](https://github.com/themesberg/flowbite-react/commit/a7e138286b1f9f6bda8e05d01ecf6cd698f2371e)) -* **component:** Add `displayName`s for syntax highlighter, resolving [#70](https://github.com/themesberg/flowbite-react/issues/70) ([#73](https://github.com/themesberg/flowbite-react/issues/73)) ([6741a83](https://github.com/themesberg/flowbite-react/commit/6741a837a2a739b3f208594b0b1d24f39035c5a7)) -* imports for alert component ([f7d6ce0](https://github.com/themesberg/flowbite-react/commit/f7d6ce03652a3d86a5a7f58fd686ba278b9315a1)) -* the badge size ([14b25da](https://github.com/themesberg/flowbite-react/commit/14b25da43674dde62282b547a063624ccee201ee)) -* use createPortal to render modals ([#77](https://github.com/themesberg/flowbite-react/issues/77)) ([e5e5e2e](https://github.com/themesberg/flowbite-react/commit/e5e5e2ea13285906caa4c5db9d4fc521a66fc2a7)) +- cleaning ([a7e1382](https://github.com/themesberg/flowbite-react/commit/a7e138286b1f9f6bda8e05d01ecf6cd698f2371e)) +- **component:** Add `displayName`s for syntax highlighter, resolving [#70](https://github.com/themesberg/flowbite-react/issues/70) ([#73](https://github.com/themesberg/flowbite-react/issues/73)) ([6741a83](https://github.com/themesberg/flowbite-react/commit/6741a837a2a739b3f208594b0b1d24f39035c5a7)) +- imports for alert component ([f7d6ce0](https://github.com/themesberg/flowbite-react/commit/f7d6ce03652a3d86a5a7f58fd686ba278b9315a1)) +- the badge size ([14b25da](https://github.com/themesberg/flowbite-react/commit/14b25da43674dde62282b547a063624ccee201ee)) +- use createPortal to render modals ([#77](https://github.com/themesberg/flowbite-react/issues/77)) ([e5e5e2e](https://github.com/themesberg/flowbite-react/commit/e5e5e2ea13285906caa4c5db9d4fc521a66fc2a7)) ### [0.0.18](https://github.com/themesberg/flowbite-react/compare/v0.0.17...v0.0.18) (2022-04-20) - ### Features -* add ability to drag to scroll for the Carousel component ([eb91078](https://github.com/themesberg/flowbite-react/commit/eb91078cd0a40e9411535af9a0cf3399c2cf7c0d)) -* adds avatar group ([c1c3d48](https://github.com/themesberg/flowbite-react/commit/c1c3d483c33a931df74f5c55c0e11e8100b97738)) -* adds the avatar component to the storybook ([e2f3a22](https://github.com/themesberg/flowbite-react/commit/e2f3a22ba76c832d65ddd667d2eb76fd314b3dee)) - +- add ability to drag to scroll for the Carousel component ([eb91078](https://github.com/themesberg/flowbite-react/commit/eb91078cd0a40e9411535af9a0cf3399c2cf7c0d)) +- adds avatar group ([c1c3d48](https://github.com/themesberg/flowbite-react/commit/c1c3d483c33a931df74f5c55c0e11e8100b97738)) +- adds the avatar component to the storybook ([e2f3a22](https://github.com/themesberg/flowbite-react/commit/e2f3a22ba76c832d65ddd667d2eb76fd314b3dee)) ### Bug Fixes -* fix Carousel controls clicking behavior ([3fa9180](https://github.com/themesberg/flowbite-react/commit/3fa9180ff636038d75d499f6b9812dfa543d5d86)) -* improvement the dropdown stories ([1ab98cc](https://github.com/themesberg/flowbite-react/commit/1ab98cc56120234442e46c1fd585e61c8598714c)) -* remove unused import from Avatar.tsx ([ebe43ff](https://github.com/themesberg/flowbite-react/commit/ebe43ffcd54af8dacffae7a68b3e78c6d91ab534)) +- fix Carousel controls clicking behavior ([3fa9180](https://github.com/themesberg/flowbite-react/commit/3fa9180ff636038d75d499f6b9812dfa543d5d86)) +- improvement the dropdown stories ([1ab98cc](https://github.com/themesberg/flowbite-react/commit/1ab98cc56120234442e46c1fd585e61c8598714c)) +- remove unused import from Avatar.tsx ([ebe43ff](https://github.com/themesberg/flowbite-react/commit/ebe43ffcd54af8dacffae7a68b3e78c6d91ab534)) ### [0.0.17](https://github.com/themesberg/flowbite-react/compare/v0.0.16...v0.0.17) (2022-04-14) - ### Features -* add Table component ([7568ccc](https://github.com/themesberg/flowbite-react/commit/7568ccc3f299501e6042f2c93a44599677735d1c)) - +- add Table component ([7568ccc](https://github.com/themesberg/flowbite-react/commit/7568ccc3f299501e6042f2c93a44599677735d1c)) ### Bug Fixes -* add missing dark class names of the progress component ([09cfef4](https://github.com/themesberg/flowbite-react/commit/09cfef49d6a52a01cca814e22ca35eef4ba65992)) -* add missing label prop usage in the Button component ([5e8c291](https://github.com/themesberg/flowbite-react/commit/5e8c291351fec7c3ff327eea0b9635996bde534a)) -* added 700 duration to Duration type ([efd4611](https://github.com/themesberg/flowbite-react/commit/efd461171eaff21c37be189acb6d0c66fce791c7)) -* added PropsWithChildren ([3090117](https://github.com/themesberg/flowbite-react/commit/3090117cb0f177031da33e2db41287339663b847)) -* added testid, merged imports, added duration record ([c5c9cd5](https://github.com/themesberg/flowbite-react/commit/c5c9cd538d76a7a19840ea18e9b6e48ae0a594f2)) -* avatar bordered ([432d9f5](https://github.com/themesberg/flowbite-react/commit/432d9f594f8f5eba3e65a7c464ea49516c4c88bc)) -* correctly renamed toast to Toast ([fd5d162](https://github.com/themesberg/flowbite-react/commit/fd5d162b5134cc0bda73a673ebc353514ebe9467)) -* correctly renamed Toast.tsx to index.tsx ([53881df](https://github.com/themesberg/flowbite-react/commit/53881dfccd17f12af9c151c00792c4b0fd646f8a)) -* exclude storybook stories while building the library ([648b110](https://github.com/themesberg/flowbite-react/commit/648b1107052ffe8ebe2c041dba427f62013e0185)) -* export Size type and merged imports ([55c9cdf](https://github.com/themesberg/flowbite-react/commit/55c9cdf3835b93793b1a2696a4ac0cefcda4e0a9)) -* fix Button component styling ([c0683cf](https://github.com/themesberg/flowbite-react/commit/c0683cf8365235b436331710bd2a84c61a9cdd3e)) -* imported Size type from RatingContext ([bd8ebbb](https://github.com/themesberg/flowbite-react/commit/bd8ebbbd330de3afc2b64095ce875aa2822880ca)) -* make arrow prop of Dropdown component much understandable ([cc1beff](https://github.com/themesberg/flowbite-react/commit/cc1beffb41a6146d1a38417cb3fbde3de787f938)) -* make label prop of Button component as ReactNode ([59cee65](https://github.com/themesberg/flowbite-react/commit/59cee65a58623d138098fb3cfcc3c67d2a7e8d19)) -* removed svg component props ([195b67e](https://github.com/themesberg/flowbite-react/commit/195b67eae27fe48a5c923a1b6cf789b7f9ff0482)) -* removed Toast.tsx from src/ ([0f0c362](https://github.com/themesberg/flowbite-react/commit/0f0c36219b626b10da252dd58e3fb353f79cdbb7)) -* removed unneeded imports ([249e40e](https://github.com/themesberg/flowbite-react/commit/249e40e7209ee614f71cee240f69397364151501)) -* removed unneeded imports from stories ([a731a2c](https://github.com/themesberg/flowbite-react/commit/a731a2c4500a9ccc74a1491bf43cdb25cbc8ea7c)) -* replaced star svg with HiStar icon ([259f345](https://github.com/themesberg/flowbite-react/commit/259f3457a9f7797cd0d6af4114b58282a14138a1)) -* set tooltipArrow prop as false by default for the Dropdown component ([35ad443](https://github.com/themesberg/flowbite-react/commit/35ad443ab4bbc77cb1a2ab72e3ffd00805bcf073)) -* simplify routes array ([52cb973](https://github.com/themesberg/flowbite-react/commit/52cb973c080f8ce6b5001ce3e33cea5c3f51d46a)) +- add missing dark class names of the progress component ([09cfef4](https://github.com/themesberg/flowbite-react/commit/09cfef49d6a52a01cca814e22ca35eef4ba65992)) +- add missing label prop usage in the Button component ([5e8c291](https://github.com/themesberg/flowbite-react/commit/5e8c291351fec7c3ff327eea0b9635996bde534a)) +- added 700 duration to Duration type ([efd4611](https://github.com/themesberg/flowbite-react/commit/efd461171eaff21c37be189acb6d0c66fce791c7)) +- added PropsWithChildren ([3090117](https://github.com/themesberg/flowbite-react/commit/3090117cb0f177031da33e2db41287339663b847)) +- added testid, merged imports, added duration record ([c5c9cd5](https://github.com/themesberg/flowbite-react/commit/c5c9cd538d76a7a19840ea18e9b6e48ae0a594f2)) +- avatar bordered ([432d9f5](https://github.com/themesberg/flowbite-react/commit/432d9f594f8f5eba3e65a7c464ea49516c4c88bc)) +- correctly renamed toast to Toast ([fd5d162](https://github.com/themesberg/flowbite-react/commit/fd5d162b5134cc0bda73a673ebc353514ebe9467)) +- correctly renamed Toast.tsx to index.tsx ([53881df](https://github.com/themesberg/flowbite-react/commit/53881dfccd17f12af9c151c00792c4b0fd646f8a)) +- exclude storybook stories while building the library ([648b110](https://github.com/themesberg/flowbite-react/commit/648b1107052ffe8ebe2c041dba427f62013e0185)) +- export Size type and merged imports ([55c9cdf](https://github.com/themesberg/flowbite-react/commit/55c9cdf3835b93793b1a2696a4ac0cefcda4e0a9)) +- fix Button component styling ([c0683cf](https://github.com/themesberg/flowbite-react/commit/c0683cf8365235b436331710bd2a84c61a9cdd3e)) +- imported Size type from RatingContext ([bd8ebbb](https://github.com/themesberg/flowbite-react/commit/bd8ebbbd330de3afc2b64095ce875aa2822880ca)) +- make arrow prop of Dropdown component much understandable ([cc1beff](https://github.com/themesberg/flowbite-react/commit/cc1beffb41a6146d1a38417cb3fbde3de787f938)) +- make label prop of Button component as ReactNode ([59cee65](https://github.com/themesberg/flowbite-react/commit/59cee65a58623d138098fb3cfcc3c67d2a7e8d19)) +- removed svg component props ([195b67e](https://github.com/themesberg/flowbite-react/commit/195b67eae27fe48a5c923a1b6cf789b7f9ff0482)) +- removed Toast.tsx from src/ ([0f0c362](https://github.com/themesberg/flowbite-react/commit/0f0c36219b626b10da252dd58e3fb353f79cdbb7)) +- removed unneeded imports ([249e40e](https://github.com/themesberg/flowbite-react/commit/249e40e7209ee614f71cee240f69397364151501)) +- removed unneeded imports from stories ([a731a2c](https://github.com/themesberg/flowbite-react/commit/a731a2c4500a9ccc74a1491bf43cdb25cbc8ea7c)) +- replaced star svg with HiStar icon ([259f345](https://github.com/themesberg/flowbite-react/commit/259f3457a9f7797cd0d6af4114b58282a14138a1)) +- set tooltipArrow prop as false by default for the Dropdown component ([35ad443](https://github.com/themesberg/flowbite-react/commit/35ad443ab4bbc77cb1a2ab72e3ffd00805bcf073)) +- simplify routes array ([52cb973](https://github.com/themesberg/flowbite-react/commit/52cb973c080f8ce6b5001ce3e33cea5c3f51d46a)) ### [0.0.16](https://github.com/themesberg/flowbite-react/compare/v0.0.15...v0.0.16) (2022-04-08) - ### Features -* add Modal components ([df5713c](https://github.com/themesberg/flowbite-react/commit/df5713ca60a8edcfc49337d8c5ac9db1ff03c42c)) -* add React 18 support ([10ddd73](https://github.com/themesberg/flowbite-react/commit/10ddd73fe3c90efd98da61e362cd301353549fc5)) -* Create Navbar ([253944a](https://github.com/themesberg/flowbite-react/commit/253944abb494e345c6a6693f18b4a42541a53165)) -* Create Navbar example page ([670da6b](https://github.com/themesberg/flowbite-react/commit/670da6bc9fb644b6026c0f5cdc18a66449090db6)) - +- add Modal components ([df5713c](https://github.com/themesberg/flowbite-react/commit/df5713ca60a8edcfc49337d8c5ac9db1ff03c42c)) +- add React 18 support ([10ddd73](https://github.com/themesberg/flowbite-react/commit/10ddd73fe3c90efd98da61e362cd301353549fc5)) +- Create Navbar ([253944a](https://github.com/themesberg/flowbite-react/commit/253944abb494e345c6a6693f18b4a42541a53165)) +- Create Navbar example page ([670da6b](https://github.com/themesberg/flowbite-react/commit/670da6bc9fb644b6026c0f5cdc18a66449090db6)) ### Bug Fixes -* added border for dark mode ([cfdf462](https://github.com/themesberg/flowbite-react/commit/cfdf462970ea31007725c9ab3ddf18dacbe935a0)) -* changed navbar logo display name ([a0caa49](https://github.com/themesberg/flowbite-react/commit/a0caa493b29bd1bae903a1c4a0c95bfea1704eca)) -* changed Navbar.Logo to Navbar.Brand ([5ecee8b](https://github.com/themesberg/flowbite-react/commit/5ecee8b0a069b8c5ed9da5b134a768e38a5d9464)) -* misspelled NavbarComponent ([ad183a8](https://github.com/themesberg/flowbite-react/commit/ad183a88f0e4a41af85b8534183b19c670ec7a6e)) -* removed commit for Tab component ([629d86c](https://github.com/themesberg/flowbite-react/commit/629d86c3938dea59ed219186014b0cac35644b7f)) -* removed linter ignore ([950921a](https://github.com/themesberg/flowbite-react/commit/950921a3b8bdb79cdc849403b11f466773059321)) -* removed linter ignore for hidden className ([7fe9e3e](https://github.com/themesberg/flowbite-react/commit/7fe9e3e8041f30a411626b87868eea30be4f663f)) -* removed test link ([129c9e2](https://github.com/themesberg/flowbite-react/commit/129c9e29855463bdfe5105ad0e74b7d1c6f2228d)) -* removed typo around a className ([d3fcd0f](https://github.com/themesberg/flowbite-react/commit/d3fcd0f5ca7e52a5ecf187120fde54175332013c)) +- added border for dark mode ([cfdf462](https://github.com/themesberg/flowbite-react/commit/cfdf462970ea31007725c9ab3ddf18dacbe935a0)) +- changed navbar logo display name ([a0caa49](https://github.com/themesberg/flowbite-react/commit/a0caa493b29bd1bae903a1c4a0c95bfea1704eca)) +- changed Navbar.Logo to Navbar.Brand ([5ecee8b](https://github.com/themesberg/flowbite-react/commit/5ecee8b0a069b8c5ed9da5b134a768e38a5d9464)) +- misspelled NavbarComponent ([ad183a8](https://github.com/themesberg/flowbite-react/commit/ad183a88f0e4a41af85b8534183b19c670ec7a6e)) +- removed commit for Tab component ([629d86c](https://github.com/themesberg/flowbite-react/commit/629d86c3938dea59ed219186014b0cac35644b7f)) +- removed linter ignore ([950921a](https://github.com/themesberg/flowbite-react/commit/950921a3b8bdb79cdc849403b11f466773059321)) +- removed linter ignore for hidden className ([7fe9e3e](https://github.com/themesberg/flowbite-react/commit/7fe9e3e8041f30a411626b87868eea30be4f663f)) +- removed test link ([129c9e2](https://github.com/themesberg/flowbite-react/commit/129c9e29855463bdfe5105ad0e74b7d1c6f2228d)) +- removed typo around a className ([d3fcd0f](https://github.com/themesberg/flowbite-react/commit/d3fcd0f5ca7e52a5ecf187120fde54175332013c)) ### [0.0.15](https://github.com/themesberg/flowbite-react/compare/v0.0.14...v0.0.15) (2022-03-21) ### [0.0.14](https://github.com/themesberg/flowbite-react/compare/v0.0.13...v0.0.14) (2022-03-21) - ### Features -* refactor ListGroup component ([0f18211](https://github.com/themesberg/flowbite-react/commit/0f182113f982cfbc8b5664f7946b8bcf6312cb8e)) - +- refactor ListGroup component ([0f18211](https://github.com/themesberg/flowbite-react/commit/0f182113f982cfbc8b5664f7946b8bcf6312cb8e)) ### Bug Fixes -* fix ListGroup component ([5eda5ed](https://github.com/themesberg/flowbite-react/commit/5eda5ed993f4f7938ce332599166c2fbd2f837ee)) +- fix ListGroup component ([5eda5ed](https://github.com/themesberg/flowbite-react/commit/5eda5ed993f4f7938ce332599166c2fbd2f837ee)) ### [0.0.13](https://github.com/themesberg/flowbite-react/compare/v0.0.12...v0.0.13) (2022-03-17) - ### Features -* add Dropdown component ([169b46e](https://github.com/themesberg/flowbite-react/commit/169b46e3bc59629a25f6badc1e6e8df0786b7ede)) -* add Forms components ([51c2486](https://github.com/themesberg/flowbite-react/commit/51c248631ae4f844bc21cc54456b5ef202d7015e)) -* refactor Accordion component ([16482e3](https://github.com/themesberg/flowbite-react/commit/16482e382a213af74797161ab1e75f5405a2312f)) - +- add Dropdown component ([169b46e](https://github.com/themesberg/flowbite-react/commit/169b46e3bc59629a25f6badc1e6e8df0786b7ede)) +- add Forms components ([51c2486](https://github.com/themesberg/flowbite-react/commit/51c248631ae4f844bc21cc54456b5ef202d7015e)) +- refactor Accordion component ([16482e3](https://github.com/themesberg/flowbite-react/commit/16482e382a213af74797161ab1e75f5405a2312f)) ### Bug Fixes -* fix Button styling ([c4aad36](https://github.com/themesberg/flowbite-react/commit/c4aad365d68ab3ea17e805c0fa0bc438a1d83924)) -* fix onclick func and button focus in dark mode ([a8b6c92](https://github.com/themesberg/flowbite-react/commit/a8b6c92184115a6d2f967bf1bdaa2ca0a00d52b8)) -* refactor Accordion component ([96dc14c](https://github.com/themesberg/flowbite-react/commit/96dc14c41530bd57db18b394fdf3a018c5463275)) +- fix Button styling ([c4aad36](https://github.com/themesberg/flowbite-react/commit/c4aad365d68ab3ea17e805c0fa0bc438a1d83924)) +- fix onclick func and button focus in dark mode ([a8b6c92](https://github.com/themesberg/flowbite-react/commit/a8b6c92184115a6d2f967bf1bdaa2ca0a00d52b8)) +- refactor Accordion component ([96dc14c](https://github.com/themesberg/flowbite-react/commit/96dc14c41530bd57db18b394fdf3a018c5463275)) ### [0.0.12](https://github.com/themesberg/flowbite-react/compare/v0.0.11...v0.0.12) (2022-03-13) - ### Features -* add Button group component ([1f8b8fd](https://github.com/themesberg/flowbite-react/commit/1f8b8fd6026d6cadc87263406c98c9202e5874ba)) +- add Button group component ([1f8b8fd](https://github.com/themesberg/flowbite-react/commit/1f8b8fd6026d6cadc87263406c98c9202e5874ba)) ### [0.0.11](https://github.com/themesberg/flowbite-react/compare/v0.0.10...v0.0.11) (2022-03-13) - ### Features -* add light prop to Spinner component ([0590d66](https://github.com/themesberg/flowbite-react/commit/0590d66f6bd5046be13fa450bc6f5c575810cc08)) - +- add light prop to Spinner component ([0590d66](https://github.com/themesberg/flowbite-react/commit/0590d66f6bd5046be13fa450bc6f5c575810cc08)) ### Bug Fixes -* Remove extra icon content from Button component ([2762b55](https://github.com/themesberg/flowbite-react/commit/2762b5559d6404d1a50976643742891ee851cb9a)) +- Remove extra icon content from Button component ([2762b55](https://github.com/themesberg/flowbite-react/commit/2762b5559d6404d1a50976643742891ee851cb9a)) ### [0.0.10](https://github.com/themesberg/flowbite-react/compare/v0.0.9...v0.0.10) (2022-03-13) - ### Features -* add Carousel component ([36014bc](https://github.com/themesberg/flowbite-react/commit/36014bc30d45033228150b9d78899b3be15bf181)) - +- add Carousel component ([36014bc](https://github.com/themesberg/flowbite-react/commit/36014bc30d45033228150b9d78899b3be15bf181)) ### Bug Fixes -* resolve issues ([118d301](https://github.com/themesberg/flowbite-react/commit/118d301e4a6e026eafdac4ef3dca9dda5aabf55d)) -* resolve issues ([3294f5b](https://github.com/themesberg/flowbite-react/commit/3294f5bf024b207f829806abcf27e84df3f46199)) -* resolve issues, change spinner sizes ([1b4668a](https://github.com/themesberg/flowbite-react/commit/1b4668a5adc7be8f2bb91b91c24d0e8c70709137)) +- resolve issues ([118d301](https://github.com/themesberg/flowbite-react/commit/118d301e4a6e026eafdac4ef3dca9dda5aabf55d)) +- resolve issues ([3294f5b](https://github.com/themesberg/flowbite-react/commit/3294f5bf024b207f829806abcf27e84df3f46199)) +- resolve issues, change spinner sizes ([1b4668a](https://github.com/themesberg/flowbite-react/commit/1b4668a5adc7be8f2bb91b91c24d0e8c70709137)) ### [0.0.9](https://github.com/themesberg/flowbite-react/compare/v0.0.6...v0.0.9) (2022-03-12) - ### Features -* add Card component ([6c3d067](https://github.com/themesberg/flowbite-react/commit/6c3d067eb01022d5e444c38362b917aaa4c0f9d7)) -* add spinner component ([61c417d](https://github.com/themesberg/flowbite-react/commit/61c417dcc73df86339d5e6499b79873db2fb8a30)) -* use react-icons icons library ([236ba62](https://github.com/themesberg/flowbite-react/commit/236ba627fe2da61938cce05b16fc865c76a83e8a)) -* use tooltips when sidebar is collapsed ([17ecd1a](https://github.com/themesberg/flowbite-react/commit/17ecd1a45a6dc6ad504e33dd4b1af968e7f97314)) +- add Card component ([6c3d067](https://github.com/themesberg/flowbite-react/commit/6c3d067eb01022d5e444c38362b917aaa4c0f9d7)) +- add spinner component ([61c417d](https://github.com/themesberg/flowbite-react/commit/61c417dcc73df86339d5e6499b79873db2fb8a30)) +- use react-icons icons library ([236ba62](https://github.com/themesberg/flowbite-react/commit/236ba627fe2da61938cce05b16fc865c76a83e8a)) +- use tooltips when sidebar is collapsed ([17ecd1a](https://github.com/themesberg/flowbite-react/commit/17ecd1a45a6dc6ad504e33dd4b1af968e7f97314)) ### [0.0.8](https://github.com/themesberg/flowbite-react/compare/v0.0.6...v0.0.8) (2022-03-12) - ### Features -* add spinner component ([f712228](https://github.com/themesberg/flowbite-react/commit/f7122285695db48eb6b2402f3f568a0d18cc95fd)) -* use react-icons icons library ([236ba62](https://github.com/themesberg/flowbite-react/commit/236ba627fe2da61938cce05b16fc865c76a83e8a)) +- add spinner component ([f712228](https://github.com/themesberg/flowbite-react/commit/f7122285695db48eb6b2402f3f568a0d18cc95fd)) +- use react-icons icons library ([236ba62](https://github.com/themesberg/flowbite-react/commit/236ba627fe2da61938cce05b16fc865c76a83e8a)) ### [0.0.7](https://github.com/themesberg/flowbite-react/compare/v0.0.6...v0.0.7) (2022-03-12) - ### Features -* use react-icons icons library ([236ba62](https://github.com/themesberg/flowbite-react/commit/236ba627fe2da61938cce05b16fc865c76a83e8a)) +- use react-icons icons library ([236ba62](https://github.com/themesberg/flowbite-react/commit/236ba627fe2da61938cce05b16fc865c76a83e8a)) ### [0.0.6](https://github.com/themesberg/flowbite-react/compare/v0.0.5...v0.0.6) (2022-03-12) - ### Features -* add tooltip component ([d2edbb7](https://github.com/themesberg/flowbite-react/commit/d2edbb78f91d632a832c0ee5b993080f07de46c9)) - +- add tooltip component ([d2edbb7](https://github.com/themesberg/flowbite-react/commit/d2edbb78f91d632a832c0ee5b993080f07de46c9)) ### Bug Fixes -* Edit Accordion.tsx ([1110731](https://github.com/themesberg/flowbite-react/commit/1110731209c4976f1539cf4fca777b8587783bc0)) -* use React state instead of data-* attributes in Sidebar.tsx ([3942ddd](https://github.com/themesberg/flowbite-react/commit/3942ddd65111d67f465c421720ab9a4c24af5e4d)) +- Edit Accordion.tsx ([1110731](https://github.com/themesberg/flowbite-react/commit/1110731209c4976f1539cf4fca777b8587783bc0)) +- use React state instead of data-\* attributes in Sidebar.tsx ([3942ddd](https://github.com/themesberg/flowbite-react/commit/3942ddd65111d67f465c421720ab9a4c24af5e4d)) ### [0.0.5](https://github.com/themesberg/flowbite-react/compare/v0.0.4...v0.0.5) (2022-03-05) - ### Features -* Add Badges and Breadcrumb ([7b7b288](https://github.com/themesberg/flowbite-react/commit/7b7b288763aee5d2baebc8052f370f60e8d9df3a)) +- Add Badges and Breadcrumb ([7b7b288](https://github.com/themesberg/flowbite-react/commit/7b7b288763aee5d2baebc8052f370f60e8d9df3a)) ### [0.0.4](https://github.com/themesberg/flowbite-react/compare/v0.0.3...v0.0.4) (2022-03-02) - ### Bug Fixes -* fix Sidebar links ([c157d32](https://github.com/themesberg/flowbite-react/commit/c157d3224aa88a18b29090ecd03d71450a022fdd)) +- fix Sidebar links ([c157d32](https://github.com/themesberg/flowbite-react/commit/c157d3224aa88a18b29090ecd03d71450a022fdd)) ### [0.0.3](https://github.com/themesberg/flowbite-react/compare/v0.0.2...v0.0.3) (2022-03-02) - ### Features -* add Alert component ([d3cb7b7](https://github.com/themesberg/flowbite-react/commit/d3cb7b7effd52d2180666bd5ed564ace6e8474af)) +- add Alert component ([d3cb7b7](https://github.com/themesberg/flowbite-react/commit/d3cb7b7effd52d2180666bd5ed564ace6e8474af)) ### [0.0.2](https://github.com/themesberg/flowbite-react/compare/v0.0.1...v0.0.2) (2022-02-28) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 21e5ef925..3abb837be 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -14,21 +14,21 @@ religion, or sexual identity and orientation. Examples of behavior that contributes to creating a positive environment include: -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members +- Using welcoming and inclusive language +- Being respectful of differing viewpoints and experiences +- Gracefully accepting constructive criticism +- Focusing on what is best for the community +- Showing empathy towards other community members Examples of unacceptable behavior by participants include: -* The use of sexualized language or imagery and unwelcome sexual attention or +- The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic +- Trolling, insulting/derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a +- Other conduct which could reasonably be considered inappropriate in a professional setting ## Our Responsibilities diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 30084a133..89623b610 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -39,4 +39,4 @@ Our Code of Conduct means that you are responsible for treating everyone on the ## Code of conduct -For more information [check this file](CODE_OF_CONDUCT.md). \ No newline at end of file +For more information [check this file](CODE_OF_CONDUCT.md). diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..f0878195b --- /dev/null +++ b/codecov.yml @@ -0,0 +1,6 @@ +coverage: + status: + project: + default: + target: auto + threshold: 0.5% diff --git a/package.json b/package.json index 7c2b4548f..bb240480a 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "eject": "react-app-rewired eject", "lint": "eslint --color --ignore-path .gitignore .", "lint:staged": "lint-staged --config lint-staged.js", - "prettier": "prettier --check {src,test,.storybook}/**/*.{js,jsx,ts,tsx,json,css,scss}", - "prettier:fix": "prettier --write {src,test,.storybook}/**/*.{js,jsx,ts,tsx,json,css,scss}", + "prettier": "prettier --check --ignore-path .gitignore .", + "prettier:fix": "prettier --write --ignore-path .gitignore .", "prepare": "husky install", "prepublishOnly": "yarn build:lib", "release": "standard-version -a", @@ -95,13 +95,14 @@ "eslint-plugin-react": "^7.30.0", "eslint-plugin-react-hooks": "^4.5.0", "eslint-plugin-storybook": "^0.5.12", + "eslint-plugin-tailwindcss": "^3.5.0", "flowbite": "^1.4.2", "husky": "^7.0.4", "jsdom": "^19.0.0", "lint-staged": "^12.3.8", "postcss": "^8.4.12", "prettier": "^2.6.2", - "prettier-plugin-tailwindcss": "^0.1.8", + "prettier-plugin-organize-imports": "^2.3.4", "react": "^18.0.0", "react-app-rewired": "^2.2.1", "react-dom": "^18.0.0", diff --git a/public/404.html b/public/404.html index a92b55c0e..1b6fba18c 100644 --- a/public/404.html +++ b/public/404.html @@ -1,40 +1,45 @@ - - + + Flowbite React Components - - - - \ No newline at end of file + + + diff --git a/public/index.html b/public/index.html index 4d08dc479..056d17e5a 100644 --- a/public/index.html +++ b/public/index.html @@ -47,14 +47,18 @@ // When the single page app is loaded further down in this file, // the correct url will be waiting in the browser's history for // the single page app to route accordingly. - (function(l) { - if (l.search[1] === '/' ) { - var decoded = l.search.slice(1).split('&').map(function(s) { - return s.replace(/~and~/g, '&') - }).join('?'); + (function (l) { + if (l.search[1] === '/') { + var decoded = l.search + .slice(1) + .split('&') + .map(function (s) { + return s.replace(/~and~/g, '&'); + }) + .join('?'); window.history.replaceState(null, null, l.pathname.slice(0, -1) + decoded + l.hash); } - }(window.location)) + })(window.location); diff --git a/src/docs/Root.tsx b/src/docs/Root.tsx index aa0c869bf..9b21e183f 100644 --- a/src/docs/Root.tsx +++ b/src/docs/Root.tsx @@ -4,7 +4,6 @@ import { BsGithub } from 'react-icons/bs'; import { HiMenuAlt1 } from 'react-icons/hi'; import { SiStorybook } from 'react-icons/si'; import { Link, Route, Routes, useLocation } from 'react-router-dom'; - import { DarkThemeToggle, Navbar, Sidebar, Spinner } from '../lib'; import { routes } from './routes'; diff --git a/src/docs/pages/AccordionPage.tsx b/src/docs/pages/AccordionPage.tsx index 4aff808e0..3f6e97b16 100644 --- a/src/docs/pages/AccordionPage.tsx +++ b/src/docs/pages/AccordionPage.tsx @@ -1,6 +1,5 @@ import type { FC } from 'react'; import { HiOutlineArrowCircleDown } from 'react-icons/hi'; - import { Accordion } from '../../lib'; import type { CodeExample } from './DemoPage'; import { DemoPage } from './DemoPage'; diff --git a/src/docs/pages/AlertsPage.tsx b/src/docs/pages/AlertsPage.tsx index 32b724586..7cf3768c9 100644 --- a/src/docs/pages/AlertsPage.tsx +++ b/src/docs/pages/AlertsPage.tsx @@ -1,6 +1,5 @@ import type { FC } from 'react'; import { HiEye, HiInformationCircle } from 'react-icons/hi'; - import { Alert } from '../../lib'; import type { CodeExample } from './DemoPage'; import { DemoPage } from './DemoPage'; diff --git a/src/docs/pages/AvatarPage.tsx b/src/docs/pages/AvatarPage.tsx index 1059597e6..076a0e952 100644 --- a/src/docs/pages/AvatarPage.tsx +++ b/src/docs/pages/AvatarPage.tsx @@ -1,5 +1,4 @@ import type { FC } from 'react'; - import { Avatar, Dropdown } from '../../lib'; import type { CodeExample } from './DemoPage'; import { DemoPage } from './DemoPage'; diff --git a/src/docs/pages/BadgesPage.tsx b/src/docs/pages/BadgesPage.tsx index 1e2099ca7..301b37575 100644 --- a/src/docs/pages/BadgesPage.tsx +++ b/src/docs/pages/BadgesPage.tsx @@ -1,6 +1,5 @@ import type { FC } from 'react'; import { HiCheck, HiClock } from 'react-icons/hi'; - import { Badge } from '../../lib'; import type { CodeExample } from './DemoPage'; import { DemoPage } from './DemoPage'; diff --git a/src/docs/pages/BreadcrumbPage.tsx b/src/docs/pages/BreadcrumbPage.tsx index 4640af2ae..4ef3091a1 100644 --- a/src/docs/pages/BreadcrumbPage.tsx +++ b/src/docs/pages/BreadcrumbPage.tsx @@ -1,7 +1,6 @@ import type { FC } from 'react'; import { HiHome } from 'react-icons/hi'; import { Breadcrumb } from '../../lib'; - import type { CodeExample } from './DemoPage'; import { DemoPage } from './DemoPage'; diff --git a/src/docs/pages/ButtonGroupPage.tsx b/src/docs/pages/ButtonGroupPage.tsx index 34277d72e..a3cd733a1 100644 --- a/src/docs/pages/ButtonGroupPage.tsx +++ b/src/docs/pages/ButtonGroupPage.tsx @@ -1,9 +1,8 @@ import type { FC } from 'react'; import { HiAdjustments, HiCloudDownload, HiUserCircle } from 'react-icons/hi'; - +import { Button } from '../../lib'; import type { CodeExample } from './DemoPage'; import { DemoPage } from './DemoPage'; -import { Button } from '../../lib'; const ButtonGroupPage: FC = () => { const examples: CodeExample[] = [ diff --git a/src/docs/pages/ButtonsPage.tsx b/src/docs/pages/ButtonsPage.tsx index 38eb23621..80e8c46ec 100644 --- a/src/docs/pages/ButtonsPage.tsx +++ b/src/docs/pages/ButtonsPage.tsx @@ -1,6 +1,5 @@ import type { FC } from 'react'; import { HiOutlineArrowRight, HiShoppingCart } from 'react-icons/hi'; - import { Button, Spinner } from '../../lib'; import type { CodeExample } from './DemoPage'; import { DemoPage } from './DemoPage'; diff --git a/src/docs/pages/CardPage.tsx b/src/docs/pages/CardPage.tsx index ea41e394d..974501c3f 100644 --- a/src/docs/pages/CardPage.tsx +++ b/src/docs/pages/CardPage.tsx @@ -1,5 +1,4 @@ import type { FC } from 'react'; - import { Button, Card, Checkbox, Dropdown, Label, TextInput } from '../../lib'; import type { CodeExample } from './DemoPage'; import { DemoPage } from './DemoPage'; @@ -339,7 +338,7 @@ const CardPage: FC = () => {