Commit 7b79b18
authored
1559: Can't resolve 'tailwindcss/version.js' (#1566)
* refactor: remove `patch` command from CLI and related setup processes
- Add `version` field to configuration schema and documentation, specifying the Tailwind CSS version to use (default: 4)
* chore: update Flowbite React config to include Tailwind CSS version
- more robust .json import
* chore: improve JSDoc
* chore: fix tests
- add `ThemeConfig` in apps/[storybook, web]
- enforce schema `version` to [3,4]
* feat(cli): add syncTailwindVersion utility and integrate into build and dev commands
* feat(docs): add dark mode option to configuration examples in customization documentation
* fix(Datepicker): switch hardcoded color `cyan` -> `primary`
* fix(modal): update button color from `failure` to `red`
* regen lock file
* up bun version
* regen lock file
* feat(install): enhance package installation logic to upgrade to latest version if below 0.11.x
* refactor(cli): replace getPackageJson with getModulePackageJson
* chore(install): remove redundant comment
* chore: improve DX and cleanup:
- repair `.flowbite-react/config.json` config file on save/read
- check if `flowbite-react` is installed when `npx flowbite-react@latest init`
- bump the version to latest if below `0.11.x`
- remove redundant `{ flag: "w" }` in `fs.writeFile`
* refactor(cli): auto generate the `ThemeInit` component in `.flwobite-react/init.tsx`
- improve `flowbite-react dev` performance by running once then listening for changes
- check and regen `.gitignore` file if content integrity is not according to latest changes
- expose `flowbite-react/store` import paths
* fix: typecheck
* fix: typecheck $2
- do not ignore `.flowbite-react/init.tsx` file
* format code
* refactor(cli): update `setup-init` parsing:
- remove typescript related content and make it portable (jsx/tsx)
- adjust init file path handling to support both .tsx and .jsx extensions
- compare AST nodes for content changes
* fix lint
* feat(cli): add warning for custom config values in setupConfig function
- notify users to include <ThemeInit /> at the root level if custom dark, prefix, or version values are detected in the configuration file
* add changeset
* update dark mode and prefix documentation:
- replace ThemeConfig with ThemeInit component for syncing runtime with custom configuration
- clarify steps for disabling dark mode and using custom prefixes
* update changelog
* feat(theme): add Tailwind CSS version support in theme mode handling and fix dark theme toggle class in Tailwind CSS v4
- Introduced `version` parameter to `buildClassList` and `ThemeModeScript` for Tailwind CSS versioning.
- Updated dark mode class handling based on the specified version in `setModeInDOM` and related functions.
- Adjusted tests to verify prefix behavior according to the Tailwind CSS version.
* fix(config): update schema path and export config in `.flowbite-react/init.(jsx|tsx)`
* update changelog
* fix(getThemeModeScript): wrap classsName in proper string tags
* test(theme): add tests for `getThemeModeScript` function
* expose all `/store` import paths1 parent 134b3eb commit 7b79b18
File tree
55 files changed
+832
-490
lines changed- .changeset
- .github/actions/setup
- apps
- storybook
- .flowbite-react
- .storybook
- web
- .flowbite-react
- app
- content/docs
- customize
- getting-started
- packages/ui
- scripts
- src
- cli
- commands
- utils
- helpers
- hooks
- store
- theme
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
55 files changed
+832
-490
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
21 | 29 | | |
22 | 30 | | |
23 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
54 | 61 | | |
55 | 62 | | |
56 | | - | |
| 63 | + | |
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
| |||
101 | 108 | | |
102 | 109 | | |
103 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
104 | 118 | | |
105 | 119 | | |
106 | 120 | | |
| |||
120 | 134 | | |
121 | 135 | | |
122 | 136 | | |
| 137 | + | |
123 | 138 | | |
124 | 139 | | |
125 | 140 | | |
126 | | - | |
| 141 | + | |
| 142 | + | |
127 | 143 | | |
128 | 144 | | |
129 | 145 | | |
| |||
142 | 158 | | |
143 | 159 | | |
144 | 160 | | |
| 161 | + | |
145 | 162 | | |
146 | 163 | | |
147 | 164 | | |
148 | | - | |
| 165 | + | |
| 166 | + | |
149 | 167 | | |
150 | 168 | | |
151 | 169 | | |
| |||
0 commit comments