Skip to content

Commit 169b5dd

Browse files
New engine (#1498)
* feat(tailwind): improve support for Tailwind CSS v4 * fix - tests * feat(tailwind): refactor to support dynamic Tailwind version detection; deprecate `separator` * chore(package): update turbo to version 2.3.4 * chore(deps): up packages * refactor: convert all *.spec.* files to *.test.* * refactor: update tsconfig to exclude *.test.* files instead of *.spec.* * chore(deps): up packages * refactor: improve code readability with consistent brace usage * feat: add new CLI and refactor Tailwind plugin configuration (WIP) * chore(deps): update turbo to version 2.4.0 * feat: cater for automatic class detection when doing `import * from`; add warning for automatic class list detection * chore(deps): update bun to 1.2.2 * fix(applyPrefix): cacheKey * fix: add watcher for config file too and generate fresh class list on changes * feat: add support for package.json setup with postinstall script * chore: update apps/{storybook, web} to use the new `flowbite-react` engine * fix(cli): register command - ensure `outputDir` * chore: bun.lockb -> bun.lock * fix(apps): remove `postinstall` and update build scripts to include `flowbite-react build` * build `packages/ui` after `bun i` * fix(cli): build command - ensure `outputDir` * fix CI (trial) * fix(apps): run `flowbite-react register` for `dev` scripts * fix CI (trial 2) * revert * chmod +x * fix CI (trial 3) * fix CI (trial 4) * fix CI (trial 5) * fix CI (trial 5) - wrong path * fix CI (trial 6...) * chore(web): update editor setup * fix(cli): handle potential undefined argv[0] in main function * stricter import * feat: auto class list detection for all components and sub-components * fix(cli): ensure proper formatting when updating .gitignore * feat(cli): export everything * feat(metadata): add detailed documentation for class list and dependency list generation functions * feat(tests): add unit tests for extractClassList and extractDependencyList functions * chore: formatting for readability * chore: add JSON schema for config file * feat(cli): add $schema property to Config interface and defaultConfig * feat(cli): put everything under `.flowbite-react` directory and simplify paths * use paths from consts * chore(cli): remove unused imports from utils.ts * refactor(apps): use new config * fix(tailwind): rename flowbite variable to flowbiteReact for consistency * plugin system for all bundlers (WIP) * chore(ci): remove redundant setup step from CI workflow (now that we have the plugin system) * fix: astro integration * fix(plugin): farm * fix(plugin): rollup, esbuild * fix(plugin): rolldown * fix(plugin): remove redundant async * fix(plugin): esbuild plugin [with comment] * fix(plugin): only run `dev` when `minify = false`; only register `dev` once * fix: warning * feat(plugin): nextjs integration * feat(plugin): rsbuild * simplify check * type return * refactor(ui): switch bundler from `rollup` to `rslib` * refactor(ui): generate source maps * chore(ui~cli): move hardcoded import name to consts * refactor(ui ~ cli): add `setupPlugin` script (WIP) * refactor(ui ~ cli): create helper `addPluginToConfig` and add more `setupPlugin<Name>` * refactor(ui ~ cli): add `setupPluginNextjs` * fix build * refine `addImport` and `wrapDefaultExport` + add tests * refactor(ui ~ cli): create parcel plugin and add `setupPluginParcel` * fix(setupPluginParcel): wrong key * fix(setupTailwindV3): plugin name * fix parcel plugin reporter * fix `setupPluginParcel` since plugin registering is very strict (naming convention) * chore(ui): conditional `tailwind-merge` for tailwind v3 and v4 * refactor(ui~cli): safer tailwind version check after `ensureTailwind()` * feat(ui): generate `schema.json` on auto-pilot * fix: prettier `importOrder` rules + format files * refactor: `rimraf` -> `git clean` * fix(ui~cli): install packages more safely + properly detect package manager * fix confusing import resolution due to monorepo * add TODO's * refactor(ui ~ cli): create modern.js plugin and add `setupPluginModernjs` * fix: rspack version match * up turbo * fix: findFiles exclude check false positive * simplify exclude * fix(plugin ~ modernjs): patch `tsconfig.json` due to `moduleResolution: "node"` which does not work with our `package.json` entries config * fix tailwind plugin return value * refactor(ui): switch bundler back to `rollup` (rslib interop driving me crazy) - switch package.json type `commonjs` -> `module` * exact imports, easier tree-shaking * refactor(ui): output `.mjs` -> `.js` since "type": "module" * feat(ui ~ cli): handle `jsonc` * fix(ui): `generateDts` * refactor(ui ~ cli): do not fail the `installFlowbiteReact` when no package manager was detected, use default `npm` * refactor(ui~cli): simplify `setupTailwind` * refactor(ui~cli): remove relative path from `setupTailwindV3` * expose more commands * up packages + run format * remove CRA * refactor(ui~cli): update Next.js plugin to use CLI build and dev functions * refactor(ui~cli): modularize CLI utility functions and add TanStack Start support * feat(ui): add advanced config modification utility for plugins and config generation (using `recast`) * fix(ui): prevent duplicate values in config array modification * fix(deps): add `acorn` as dep instead of devDep * fix(cli): replace acorn with @typescript-eslint/typescript-estree for AST parsing to support Typescript syntax * fix(ui): update withFlowbiteReact to use async/await for build and dev functions * fix(ui): enhance addToConfig to support config objects referenced by identifiers * fix(ui): support adding values to filtered config arrays * fix(ui): remove async/await from withFlowbiteReact plugin * docs(theme): comprehensive rewrite of theme customization documentation * docs(theme): add documentation for ThemeProvider props and prop inheritance * test(ui): add comprehensive test cases for resolveTheme function * feat(docs): expand integration guides * docs(ui): update README with comprehensive CLI and framework integration guide * docs(customize): update prefix configuration guide with detailed Tailwind CSS and Flowbite React setup * docs(server-components): enhance documentation with comprehensive RSC guide and best practices * docs(sidebar): update documentation sidebar with section tags and reorder items * docs(introduction): revamp introduction & quickstart * docs(colors): add comprehensive color customization guide for Flowbite React * docs: update component documentation titles to remove "React" prefix * docs(cli): comprehensive rewrite of CLI documentation with detailed setup, commands, and workflow * docs(typography): remove "React" prefix from typography documentation titles * docs(theme): add missing createTheme import * feat(ui): add types export path to package.json * docs(customize): add config documentation * docs(dark-mode): update dark mode guide * docs(config): improve markdown formatting and headings * feat(mdx): enhance markdown list rendering with Flowbite React components * docs(editor-setup): comprehensive VS Code configuration guide for Flowbite React * style(docs): refactor and improve documentation CSS styles * style(ui): improve link and list item styling * feat(logos): add new logos for integration guides * feat(integration-guides): add Bun and ESBuild to quickstart guides * docs(cli): add detailed CLI command documentation for Flowbite React * feat(bun): add Bun plugin and configuration support * feat(bun): add build config update utility for Bun plugin * up packages * chore(templates): update CLI template list with new frameworks and repositories * feat(integration-guides): add Vike to quickstart guides and templates * refactor(navbar): replace anchor tag with Next.js Link component for Quickstart * feat(cli): add Vike template to CLI repository list * docs(ui): improve schema descriptions with documentation links * refacotr(docs): rename `-js` suffix to `js` (files/content) * fix(mdx): support hash links in markdown anchor component * docs(adonisjs): comprehensive guide for Flowbite React integration * docs(astro): comprehensive guide for Flowbite React integration * docs(integration-guides): cleanup AdonisJS and Astro setup instructions * docs(bun): add comprehensive integration guide for Flowbite React * docs(farm): add comprehensive integration guide for Flowbite React * docs(laravel): revamp integration guide with comprehensive setup options * docs(modernjs): add comprehensive integration guide for Flowbite React * docs(nextjs): revamp integration guide with comprehensive setup methods * docs(react-router): add comprehensive integration guide for Flowbite React * docs(rsbuild): add comprehensive integration guide for Flowbite React * docs(guides): update CLI command and package installation instructions * docs(vite): comprehensive guide with multiple setup methods for Flowbite React * docs(customize): add comprehensive guide for creating custom components * docs(customize): enhance custom component documentation with TypeScript type inference * refactor(types): optimize imports and restructure theme and props interfaces * docs(tanstack-router): add comprehensive integration guide for Flowbite React * docs(tanstack-start): add comprehensive integration guide for TanStack Start * docs(vike): add comprehensive integration guide for Flowbite React * docs(react-server): add comprehensive integration guide for Flowbite React * refactor(ui): replace fast-deep-equal with custom isEqual implementation - Remove dependency on fast-deep-equal package - Create custom isEqual helper function with comprehensive deep comparison - Add extensive test suite for isEqual function - Update import and usage across project files * docs(waku): add comprehensive integration guide for Waku framework * docs(rspack): add comprehensive integration guide for Flowbite React * docs(remix): update integration guide with comprehensive setup instructions * docs(blitzjs): add comprehensive integration guide for Blitz.js framework - Create Blitz.js integration guide with three setup methods - Add Blitz.js logo to project - Update CLI and documentation references - Include quick start, existing project, and manual setup instructions * docs(redwoodjs): add comprehensive integration guide for Flowbite React - Create RedwoodJS integration guide with three setup methods - Add detailed CLI and manual installation instructions - Include quick start, existing project, and manual setup steps - Provide example component usage * refactor(ui): improve Tailwind V4 CSS configuration update logic - Enhance CSS file processing for Tailwind V4 configuration (support single and double quotes) - Improve path resolution and quote type detection - Prevent duplicate plugin and source imports * style(docs): prevent styling conflicts in code preview and syntax wrapper * style(docs): fix inline code styling selector * feat(ui): add copy-to-clipboard functionality for code blocks - Implement PreWithCopy component for code block copy feature - Update CodeHighlight to support optional copy button - Add copy button to MDX code blocks by default * rename file * feat(docs): enhance table of contents with active section tracking - Extract ToC component from docs page - Add dynamic active section highlighting - Implement scroll-based section tracking - Improve table of contents interaction and styling * style(docs): refactor MDX and documentation styling * feat(cli): add new configuration options for component generation - Introduce new config options in `.flowbite-react/config.json`: - `path`: Specify component creation directory - `rsc`: Control React Server Component directive - `tsx`: Choose between TypeScript and JavaScript - Update schema and CLI to support new configuration settings - Enhance component creation process with flexible generation options - Add documentation for new configuration parameters * docs(cli): cleanup and explain the `create` command better * refactor(docs): simplify ToC link active state handling * docs(cli): update `create` command documentation * docs: Update component documentation titles (SEO) * refactor(cli): simplify component creation path handling * docs: Add Meteor.js integration guide and template support * docs(cli): improve `build` and `create` command documentation * docs(cli): formatting * feat(docs): add dark mode configuration support - Introduced `dark` option in `.flowbite-react/config.json` to enable dark mode styles. - Implemented functionality to strip dark mode classes from generated styles. * fix(strip-dark): check for existance of `dark:` instead of `startsWith` to cater for cases like `sm:dark:` (and the list goes on) * fix(build-class-list): ensure unique class names by using Set when stripping dark mode classes * docs(cli): remove redundant examples in `create` command * fix(docs): add missing `dark` in config.mdx * docs(cli): add missing Bun support to CLI bundler detection * docs(guides): update section title for clarity in Astro integration guide * docs(prefix): add the full config example + highlight * docs(dark-mode): add instructions for completely disabling dark mode in Flowbite React * docs(gatsby): rework integration using the new format * docs(gatsby): emphasize Tailwind CSS version compatibility note * docs(parcel): rework integration guide for Parcel * docs(compatibility): add new section on compatibility with Tailwind CSS v3 and v4 * fix(pre-with-copy): add max height * docs(editor-setup): update ESLint configuration instructions to include flat config format * feat(cli): split CLI into multiple files and refactor: - lazy load modules - add `patch` command (WIP, apps fail) * refactor(cli): reorganize file names * refactor(cli): expose all CLI endpoints in package.json * chore(cli): simplify success message in initialization log * refactor(cli): update version file generation and improve Tailwind setup logic * docs(cli): enhance CLI documentation with new commands and Tailwind CSS patching details * fix(tailwind): update import path for Tailwind CSS version to include .js extension * refactor(cli): fix `buildClassList` empty string generation * fix(cli): update example name for `create` prompt * feat(cli): add setup for class list configuration during initialization * feat(web): generate `llms.txt` * feat(cli): add Esbuild template to CLI documentation * feat(web): enhance `generate-llms` script to process `IntegrationGuides` component * feat(web): `generate-llms` - parse frontmatter and add it as markdown # (title) and > (description) * feat(web): update `generate-llms` script to generate `llms-full.txt` * feat(web): refactor `generate-llms` script, bring back the public/docs files generation * refactor(web): optimize `convertMdxContentToMd` function by removing unnecessary async/await * feat(ui): separate Tailwind CSS plugin default export vs module exports (leading to often failures when mixin exports) * feat(ui): up rs* related packages and fix `rspack` build output with `rslib` inside rollup build process * fix lock file * feat(docs): add comprehensive guide for integrating Flowbite React with ESBuild * feat(docs): add guide for integrating Flowbite React with Webpack * feat(ui): enhance withFlowbiteReact to support config as function (or async) and `optimizePackageImports` * chore(docs): update command examples to use 'npx' instead of 'npm' for project creation; remove deprecated image asset * fix(docs): update CLI command examples to use `@latest` * fix(docs): update CLI command examples to consistently use `npx create-flowbite-react@latest` * fix(docs): standardize naming for RSBuild and RSPack to Rsbuild and Rspack across documentation and components * add `create-flowbite-react` changeset * fix(docs): update template URLs in CLI README to use markdown link format for better readability * add `flowbite-react` changeset * update `flowbite-react` changeset with more doc links * fix(docs): update AdonisJS guide to clarify Tailwind CSS installation steps and configuration * fix(docs): remove redundant inline comments * fix(docs): add TypeScript type annotation for PostCSS configuration in webpack guide * fix(docs): add ProvidePlugin configuration to webpack guide for React * refactor(cli): allow multiple template variant/version * fix(docs): update CLI template usage to use shorthand flag for all guides * feat(docs): integrate remark-gfm for enhanced markdown support and add table components in MDX * fix(docs): rework CLI documentation by using table data * fix(docs): remove font medium class from TableCell component in MDX * fix(docs): correct code block line highlights in AdonisJS, React Router, and Remix guides * fix(theme): update Checkbox theme styles for dark mode support * refactor(theme): enhance theme mode handling with new initialization and script generation functions * fix(theme): improve theme mode resolution logic for better handling of undefined values * fix(theme): refine theme mode resolution to validate stored values and ensure fallback logic * fix(theme): update theme mode handling to default to 'auto' and validate storage values * fix(theme): enhance theme mode handling by validating storage values and ensuring proper fallback to default mode * fix(theme): add client check in theme mode computation to ensure default mode is returned when not in client environment
1 parent bed3c41 commit 169b5dd

File tree

889 files changed

+31493
-19245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

889 files changed

+31493
-19245
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": ["storybook", "web"]
10+
"ignore": ["@/storybook", "@/web"]
1111
}

.changeset/huge-parrots-fail.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
"create-flowbite-react": minor
3+
---
4+
5+
- Added new project templates:
6+
7+
- `blitzjs` - Blitz.js
8+
- `bun` - Bun
9+
- `esbuild` - ESBuild
10+
- `farm` - Farm
11+
- `meteorjs` - Meteor.js
12+
- `modernjs` - Modern.js
13+
- `react-router` - React Router
14+
- `react-server` - React Server
15+
- `rsbuild` - Rsbuild
16+
- `rspack` - Rspack
17+
- `tanstack-router` - TanStack Router
18+
- `tanstack-start` - TanStack Start
19+
- `vike` - Vike
20+
- `waku` - Waku
21+
- `webpack` - Webpack

.changeset/sad-papers-crash.md

Lines changed: 346 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,346 @@
1+
---
2+
"flowbite-react": minor
3+
---
4+
5+
## Summary
6+
7+
This release brings massive improvements to Flowbite React's capabilities, introducing the first automatic Tailwind CSS class generation system and native support for both Tailwind CSS v3 and v4. Key highlights include:
8+
9+
- **Automatic Class Generation**: First UI library to automatically detect and generate Tailwind CSS classes
10+
- **Tailwind CSS v4 Support**: Native compatibility with both Tailwind CSS v3 and v4
11+
- **Comprehensive Prefix Support**: Complete system for customizing class prefixes
12+
- **Enhanced CLI Tools**: New project initialization and component creation commands
13+
- **Expanded Framework Support**: 15 new framework integration guides and templates
14+
15+
## New Engine
16+
17+
### Automatic Class Generation
18+
19+
- First UI library to implement automatic Tailwind CSS class detection
20+
- Only includes styles for components you actually import and use
21+
- Works like tree-shaking but for Tailwind CSS classes
22+
- Real-time class list updates during development
23+
- Optimized production builds with minimal CSS output
24+
25+
Learn more about class generation in our [CLI documentation](https://flowbite-react.com/docs/getting-started/cli#cli-commands).
26+
27+
### One-Command Setup
28+
29+
```bash
30+
npx flowbite-react@latest init
31+
```
32+
33+
This single command:
34+
35+
- Detects your project's environment
36+
- Installs necessary dependencies
37+
- Configures Tailwind CSS
38+
- Sets up the appropriate bundler plugin
39+
- Creates optimal VSCode configuration
40+
- Initializes the `.flowbite-react` directory
41+
42+
See our [quickstart guide](https://flowbite-react.com/docs/getting-started/quickstart) for detailed setup instructions.
43+
44+
### Smart Version Handling
45+
46+
- Automatic detection of Tailwind CSS version (v3 or v4)
47+
- No manual configuration needed
48+
- Adapts class generation to version-specific syntax
49+
- Ensures compatibility with both versions simultaneously
50+
51+
Read more about version compatibility in our [compatibility guide](https://flowbite-react.com/docs/getting-started/compatibility).
52+
53+
## Major Features
54+
55+
### 1. Enhanced Integration Support
56+
57+
- Added new framework integration guides and templates:
58+
- Blitz.js
59+
- Bun
60+
- ESBuild
61+
- Farm
62+
- Meteor.js
63+
- Modern.js
64+
- React Router
65+
- React Server
66+
- Rsbuild
67+
- Rspack
68+
- TanStack Router
69+
- TanStack Start
70+
- Vike
71+
- Waku
72+
- Webpack
73+
74+
Explore all integration guides in our [framework guides section](https://flowbite-react.com/docs/guides).
75+
76+
### 2. Prefix Support System
77+
78+
- Added support for customizing Tailwind CSS class prefixes
79+
- Different configuration options for Tailwind CSS v3 and v4:
80+
81+
```js
82+
// Tailwind CSS v3
83+
/** @type {import('tailwindcss').Config} */
84+
export default {
85+
prefix: "tw-",
86+
// ... rest of your config
87+
};
88+
89+
// Tailwind CSS v4
90+
@import "tailwindcss" prefix(tw);
91+
```
92+
93+
- Prefix configuration in `.flowbite-react/config.json`:
94+
95+
```json
96+
{
97+
"$schema": "https://unpkg.com/flowbite-react/schema.json",
98+
"prefix": "tw"
99+
}
100+
```
101+
102+
- ThemeConfig component support for prefix configuration:
103+
104+
```tsx
105+
import { ThemeConfig } from "flowbite-react";
106+
107+
export default function App() {
108+
return (
109+
<>
110+
<ThemeConfig prefix="tw" />
111+
{/* ... */}
112+
</>
113+
);
114+
}
115+
```
116+
117+
Learn more about prefix configuration in our [prefix documentation](https://flowbite-react.com/docs/customize/prefix).
118+
119+
### 3. CLI Enhancements
120+
121+
- New project initialization command:
122+
123+
```bash
124+
npx flowbite-react@latest init
125+
```
126+
127+
Learn more about CLI features in our [CLI documentation](https://flowbite-react.com/docs/getting-started/cli).
128+
129+
### 4. Tailwind CSS Version Compatibility
130+
131+
- Automatic version detection between Tailwind CSS v3 and v4
132+
- Seamless support for both versions without manual configuration
133+
- Improved class merging and prefix handling for each version
134+
135+
### 5. Configuration System
136+
137+
- New `.flowbite-react/config.json` for centralized configuration (automatically generated):
138+
139+
```json
140+
{
141+
"$schema": "https://unpkg.com/flowbite-react/schema.json",
142+
"components": [],
143+
"dark": true,
144+
"path": "src/components",
145+
"prefix": "",
146+
"rsc": true,
147+
"tsx": true
148+
}
149+
```
150+
151+
Learn more about configuration options in our [config documentation](https://flowbite-react.com/docs/customize/config).
152+
153+
### 6. Custom Components
154+
155+
#### Component Creation
156+
157+
- Added CLI command for component generation:
158+
159+
```bash
160+
npx flowbite-react@latest create my-component
161+
```
162+
163+
- Automatic setup based on `.flowbite-react/config.json` configuration:
164+
- Component path location
165+
- React Server Components support
166+
- TypeScript/JavaScript selection
167+
168+
#### Theme System Integration
169+
170+
- Full theming system support for custom components:
171+
- Global theme inheritance
172+
- Component-level overrides
173+
- Provider-level props
174+
- Theme clearing and applying
175+
- Type safety with TypeScript
176+
177+
## Technical Improvements
178+
179+
### Build System
180+
181+
- Improved bundler compatibility and performance
182+
- Added support for tree-shaking
183+
- Enhanced TypeScript configuration
184+
- Optimized production builds
185+
186+
### Component Updates
187+
188+
- Improved component primitives
189+
- Enhanced type safety across components
190+
- Added extensive test coverage
191+
192+
### Developer Experience
193+
194+
- Added comprehensive TypeScript types
195+
- Improved VSCode integration
196+
- Enhanced debugging capabilities
197+
198+
### Exports and Package Structure
199+
200+
- All components, hooks, and utilities are now exported from the root package
201+
- Every internal part and primitive is exposed for advanced customization
202+
- Improved module resolution with better tree-shaking support
203+
- Direct access to component parts without compound components
204+
- TypeScript types for all exports are available
205+
206+
## Breaking Changes
207+
208+
### Component Changes
209+
210+
- Deprecated compound components in favor of simpler component primitives:
211+
212+
```tsx
213+
// Before - Compound components
214+
<Accordion>
215+
<Accordion.Panel>
216+
<Accordion.Title>Title 1</Accordion.Title>
217+
<Accordion.Content>Content 1</Accordion.Content>
218+
</Accordion.Panel>
219+
</Accordion>
220+
221+
// After - Simple primitives
222+
<AccordionRoot>
223+
<AccordionItem>
224+
<AccordionTitle>Title 1</AccordionTitle>
225+
<AccordionContent>Content 1</AccordionContent>
226+
</AccordionItem>
227+
</AccordionRoot>
228+
```
229+
230+
- Removed `helperText` prop from all form components in favor of using the `HelperText` component directly
231+
- Deprecated `href` prop in `Badge` component
232+
- Updated `Button` component to use new color system:
233+
- Added `default` and `alternative` colors
234+
- Changed default color from `blue` to `default`
235+
- Modified hover states to use primary colors
236+
- Moved theme size styles from inner span to root button element
237+
238+
### Theme System
239+
240+
- Changed theme application behavior:
241+
- Enhanced `ThemeProvider` with deep merging of themes
242+
- Added support for granular theme resets using `clearTheme`
243+
- Improved theme resolution with better performance
244+
- Updated color schemes to use primary colors consistently
245+
- Modified component color schemes:
246+
- Updated default colors to use `primary` instead of specific colors (e.g., `cyan`)
247+
- Standardized color naming across components
248+
- Enhanced color inheritance and theme customization
249+
250+
Learn more about theming in our [theme documentation](https://flowbite-react.com/docs/customize/theme).
251+
252+
### Package and Build System
253+
254+
- Switched package type to `module`
255+
- Added new entry points for better module resolution
256+
- Removed `react-icons` dependency in favor of custom icon components
257+
- Added support for [Yarn Plug'n'Play (PnP)](https://yarnpkg.com/features/pnp):
258+
259+
### API Changes
260+
261+
- Deprecated `<Flowbite>` component in favor of `ThemeProvider`
262+
- Removed `getStore()` export and limited to finite actions and getters
263+
- Added `forwardRef` to almost all components
264+
- Removed redundant `Flowbite` prefix from type names
265+
266+
## Migration Guide
267+
268+
1. Update to the latest version:
269+
270+
```bash
271+
npm install flowbite-react@latest
272+
```
273+
274+
2. Initialize the new engine:
275+
276+
```bash
277+
npx flowbite-react@latest init
278+
```
279+
280+
This will:
281+
282+
- Set up the `.flowbite-react` directory
283+
- Configure your bundler
284+
- Update VSCode settings
285+
- Create necessary configuration files
286+
287+
3. Clean up your Tailwind configuration:
288+
289+
```diff
290+
- import flowbite from 'flowbite-react/tailwind';
291+
292+
/** @type {import('tailwindcss').Config} */
293+
export default {
294+
content: [
295+
- flowbite.content(),
296+
+ // The init command will add the correct content paths
297+
],
298+
plugins: [
299+
- flowbite.plugin(),
300+
+ // The init command will add the correct plugins
301+
],
302+
}
303+
```
304+
305+
## Fixed Issues and Pull Requests
306+
307+
### Resolved Issues
308+
309+
- [#339](https://github.com/themesberg/flowbite-react/issues/339)
310+
- [#1197](https://github.com/themesberg/flowbite-react/issues/1197)
311+
- [#1286](https://github.com/themesberg/flowbite-react/issues/1286)
312+
- [#1389](https://github.com/themesberg/flowbite-react/issues/1389)
313+
- [#1447](https://github.com/themesberg/flowbite-react/issues/1447)
314+
- [#1454](https://github.com/themesberg/flowbite-react/issues/1454)
315+
- [#1473](https://github.com/themesberg/flowbite-react/issues/1473)
316+
- [#1489](https://github.com/themesberg/flowbite-react/issues/1489)
317+
- [#1508](https://github.com/themesberg/flowbite-react/issues/1508)
318+
- [#1523](https://github.com/themesberg/flowbite-react/issues/1523)
319+
320+
### Resolved Pull Requests
321+
322+
- [#1155](https://github.com/themesberg/flowbite-react/pull/1155)
323+
324+
## Technical Requirements
325+
326+
- Node.js 16+
327+
- Tailwind CSS v3 or v4
328+
- React 18+
329+
330+
For detailed documentation on all new features and integrations, visit:
331+
332+
## Core Documentation
333+
334+
- [Quickstart (Updated)](https://flowbite-react.com/docs/getting-started/quickstart)
335+
- [CLI (Updated)](https://flowbite-react.com/docs/getting-started/cli)
336+
- [Compatibility (New)](https://flowbite-react.com/docs/getting-started/compatibility)
337+
- [Editor Setup (Updated)](https://flowbite-react.com/docs/getting-started/editor-setup)
338+
- [Server Components (Updated)](https://flowbite-react.com/docs/getting-started/server-components)
339+
340+
## Customization
341+
342+
- [Theme (Updated)](https://flowbite-react.com/docs/customize/theme)
343+
- [Config (New)](https://flowbite-react.com/docs/customize/config)
344+
- [Prefix (New)](https://flowbite-react.com/docs/customize/prefix)
345+
- [Colors (New)](https://flowbite-react.com/docs/customize/colors)
346+
- [Custom Components (New)](https://flowbite-react.com/docs/customize/custom-components)

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ runs:
55
using: composite
66
steps:
77
- name: Setup Bun
8-
uses: oven-sh/setup-bun@v1
8+
uses: oven-sh/setup-bun@v2
99
with:
10-
bun-version: 1.1.21
10+
bun-version: 1.2.2
1111

1212
- name: Setup Node
1313
uses: actions/setup-node@v4
-26.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)