Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New engine #1498

Draft
wants to merge 364 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
364 commits
Select commit Hold shift + click to select a range
3f32f87
refactor(FileInput): drop `helperText` prop and inline it in docs
SutuSebastian Jan 11, 2025
24b5bbf
refactor(Checkbox): fix theme styles and add indeterminate state support
SutuSebastian Jan 12, 2025
5b7d5af
fix: typecheck
SutuSebastian Jan 12, 2025
6de15ca
refactor(Radio): fix theme styles and add color support
SutuSebastian Jan 12, 2025
44b957c
refactor(ToggleSwitch): fix theme styles
SutuSebastian Jan 13, 2025
fed0c53
fix test
SutuSebastian Jan 13, 2025
870ea3e
refactor(Select): fix theme styles
SutuSebastian Jan 13, 2025
b7dc8b1
refactor(RangeSlider): simplify JSX structure
SutuSebastian Jan 13, 2025
90605e0
refactor(Button): add colors `default`, `alternative`
SutuSebastian Jan 13, 2025
ead62c5
refactor(Button): update title for clarity
SutuSebastian Jan 13, 2025
afe3016
refactor(Navbar): update link active styles to use primary instead of…
SutuSebastian Jan 13, 2025
aee2985
refactor(Progress): update default color to primary and remove color …
SutuSebastian Jan 13, 2025
23138b3
refactor(Spinner): update default color to 'default', adjust size to …
SutuSebastian Jan 13, 2025
a1c1d8a
refactor(Tabs): update tab item colors to use primary instead of cyan
SutuSebastian Jan 13, 2025
ab95546
refactor(Timeline): update icon colors to use primary instead of cyan
SutuSebastian Jan 13, 2025
abedd68
apps(web): use primary instead of cyan
SutuSebastian Jan 13, 2025
be318b3
refactor(Button): update alternative button hover color to use primar…
SutuSebastian Jan 13, 2025
d0e49b9
refactor(Button): move `theme.size` from inner span to root button
SutuSebastian Jan 14, 2025
bc2354a
refactor(List): remove unused ListColors interface
SutuSebastian Jan 14, 2025
8532392
refactor(MainFooter): update link colors to use primary-700 for bette…
SutuSebastian Jan 14, 2025
c9adcb9
refactor(Button): rework theme and cleanup button logic to act more l…
SutuSebastian Jan 14, 2025
a476894
refactor(ToggleSwitch): fix theme
SutuSebastian Jan 15, 2025
42e6638
refactor(package.json): add icons entry for module resolution
SutuSebastian Jan 15, 2025
685f868
chore(ui): export all contexts
SutuSebastian Jan 15, 2025
ab2276e
refactor(docs.css): adjust margin for first child in main content
SutuSebastian Jan 17, 2025
2ccea8d
refactor(tailwind.config): remove unused fade-in keyframes and animation
SutuSebastian Jan 17, 2025
3892245
refactor(FloatingLabel): update focus border colors to use primary theme
SutuSebastian Jan 17, 2025
4a74eb8
refactor(docs): replace isNew flag with tag for sidebar items; deprec…
SutuSebastian Jan 17, 2025
781336d
refactor(ui): add `forwardRef` to almost all components
SutuSebastian Jan 17, 2025
62297ed
refactor(Badge): deprecate `href`
SutuSebastian Jan 17, 2025
8636c2d
refactor(FloatingLabel.stories): remove unused HelperText story
SutuSebastian Jan 17, 2025
919c675
refactor(Badge.spec): fix tests
SutuSebastian Jan 17, 2025
696ea93
fix: naming convention
SutuSebastian Jan 18, 2025
0e3379a
refactor(docs.css): enhance code styling with border adjustments
SutuSebastian Jan 18, 2025
167b371
refactor(vscode): update tailwindCSS classRegex for theme initialization
SutuSebastian Jan 18, 2025
5bbb2c1
refactor: update theme creation to use generic types for better type …
SutuSebastian Jan 18, 2025
3941193
refactor(vscode): simplify tailwindCSS classRegex for theme functions
SutuSebastian Jan 18, 2025
edd4514
refactor: set default generic type for createTheme function
SutuSebastian Jan 18, 2025
d70c2a0
refactor(ui): split icons into separate files to allow tree-shaking
SutuSebastian Jan 18, 2025
ab7d0b0
refactor(tests): remove redundant import of act from react-dom/test-u…
SutuSebastian Jan 18, 2025
8911d53
refactor(rollup): remove react-icons from external dependencies
SutuSebastian Jan 20, 2025
30e53e7
refactor(helpers): remove redundant folder
SutuSebastian Jan 20, 2025
9e59863
refactor(rollup): include icons directory in entry points
SutuSebastian Jan 20, 2025
a334c71
refactor(tests): update ButtonGroup tests to use buttonTheme for grou…
SutuSebastian Jan 21, 2025
e978585
refactor(components): update imports in Avatar, BannerCollapseButton,…
SutuSebastian Jan 21, 2025
04db682
refactor(theme): remove `theme` export since its now redundant
SutuSebastian Jan 21, 2025
bb0c71e
refactor(tests): update Popover and Tooltip imports to use specific f…
SutuSebastian Jan 21, 2025
b1af707
refactor(stories): update imports to use specific theme files for Ale…
SutuSebastian Jan 21, 2025
dbfcd87
refactor(theme): update to-be-deprecated tailwindCSS classes
SutuSebastian Jan 21, 2025
388f5f5
refactor(package): add icon paths to package.json and include theme e…
SutuSebastian Jan 21, 2025
065672d
refactor(package): add theme entry points for ESM and CJS in package.…
SutuSebastian Jan 21, 2025
58f1730
refactor(components): update imports to use centralized types from ..…
SutuSebastian Jan 21, 2025
d158b9b
refactor(ThemeProvider): implement default `props` blueprints
SutuSebastian Jan 21, 2025
30bbc93
refactor(theming): add withoutThemingProps utility and update Flowbit…
SutuSebastian Jan 21, 2025
dab8c0f
refactor(helpers): add tests and improve documentation for utility fu…
SutuSebastian Jan 21, 2025
34765ea
refactor(components): integrate resolveProps (partial, not for all)
SutuSebastian Jan 21, 2025
b704e37
refactor(stories): update Label component usage in Modal stories
SutuSebastian Jan 21, 2025
9909591
refactor(forms): update Label component usage to remove deprecated va…
SutuSebastian Jan 21, 2025
a34b648
refactor(components): integrate resolveProps (partial, not for all);
SutuSebastian Jan 22, 2025
e0fa397
refactor(components): integrate resolveProps - FINAL
SutuSebastian Jan 22, 2025
0801591
refactor(helpers): remove omit function and its tests
SutuSebastian Jan 22, 2025
a63321c
fix(Card): fix img tag render
SutuSebastian Jan 22, 2025
33598ad
test(Table): remove redundant row count expectation
SutuSebastian Jan 22, 2025
a295b9d
feat(theme): replace structuredClone with klona for performance impro…
SutuSebastian Jan 22, 2025
80e6565
feat(theme): more performance improvements
SutuSebastian Jan 22, 2025
ec5d379
fix(theme): add optional chaining for custom theme checks
SutuSebastian Jan 22, 2025
67305c0
feat(theme): more performance improvements
SutuSebastian Jan 22, 2025
9ff3682
feat(applyPrefix): performance improvements
SutuSebastian Jan 23, 2025
e8db4c1
feat(rollup): add klona/json to external dependencies
SutuSebastian Jan 23, 2025
8d64cbf
feat(turbo): add lint and lint:fix tasks with build dependencies
SutuSebastian Jan 23, 2025
d8fd114
fix(package): update tailwindcss peer dependency to support version 4
SutuSebastian Jan 23, 2025
f4078fc
feat(applyPrefix): implement cache
SutuSebastian Jan 23, 2025
0bf4df7
feat(tailwind): add support for Tailwind CSS v4
SutuSebastian Jan 23, 2025
68444e0
feat(tailwind): improve support for Tailwind CSS v4
SutuSebastian Jan 24, 2025
1385340
fix - tests
SutuSebastian Jan 26, 2025
1310dc5
feat(tailwind): refactor to support dynamic Tailwind version detectio…
SutuSebastian Jan 27, 2025
adb0e6e
chore(package): update turbo to version 2.3.4
SutuSebastian Jan 27, 2025
0aaaba9
chore(deps): up packages
SutuSebastian Jan 28, 2025
074ce25
refactor: convert all *.spec.* files to *.test.*
SutuSebastian Jan 29, 2025
b880309
refactor: update tsconfig to exclude *.test.* files instead of *.spec.*
SutuSebastian Jan 29, 2025
54f49f1
chore(deps): up packages
SutuSebastian Jan 30, 2025
2a0802a
refactor: improve code readability with consistent brace usage
SutuSebastian Jan 31, 2025
cdd77ec
feat: add new CLI and refactor Tailwind plugin configuration (WIP)
SutuSebastian Feb 3, 2025
d614c9c
chore(deps): update turbo to version 2.4.0
SutuSebastian Feb 3, 2025
c8ffd50
feat: cater for automatic class detection when doing `import * from`;…
SutuSebastian Feb 4, 2025
d059408
chore(deps): update bun to 1.2.2
SutuSebastian Feb 4, 2025
c702792
fix(applyPrefix): cacheKey
SutuSebastian Feb 4, 2025
c7c7d85
fix: add watcher for config file too and generate fresh class list on…
SutuSebastian Feb 4, 2025
17b848c
feat: add support for package.json setup with postinstall script
SutuSebastian Feb 4, 2025
19f42fb
chore: update apps/{storybook, web} to use the new `flowbite-react` e…
SutuSebastian Feb 4, 2025
7be786f
fix(cli): register command - ensure `outputDir`
SutuSebastian Feb 4, 2025
371c99e
chore: bun.lockb -> bun.lock
SutuSebastian Feb 4, 2025
2e9f3e7
fix(apps): remove `postinstall` and update build scripts to include `…
SutuSebastian Feb 4, 2025
9ad4738
build `packages/ui` after `bun i`
SutuSebastian Feb 4, 2025
4fd618c
fix(cli): build command - ensure `outputDir`
SutuSebastian Feb 4, 2025
1e3d143
fix CI (trial)
SutuSebastian Feb 4, 2025
6530d56
fix(apps): run `flowbite-react register` for `dev` scripts
SutuSebastian Feb 4, 2025
cc9181a
fix CI (trial 2)
SutuSebastian Feb 4, 2025
be09f68
revert
SutuSebastian Feb 4, 2025
279291a
chmod +x
SutuSebastian Feb 4, 2025
f3546c6
fix CI (trial 3)
SutuSebastian Feb 4, 2025
fe21445
fix CI (trial 4)
SutuSebastian Feb 4, 2025
f26a846
fix CI (trial 5)
SutuSebastian Feb 4, 2025
e5d0663
fix CI (trial 5) - wrong path
SutuSebastian Feb 4, 2025
3127f09
fix CI (trial 6...)
SutuSebastian Feb 4, 2025
cb755d5
chore(web): update editor setup
SutuSebastian Feb 4, 2025
f85ae0c
fix(cli): handle potential undefined argv[0] in main function
SutuSebastian Feb 4, 2025
f6e4338
stricter import
SutuSebastian Feb 5, 2025
34cd4f4
feat: auto class list detection for all components and sub-components
SutuSebastian Feb 5, 2025
9e314d7
fix(cli): ensure proper formatting when updating .gitignore
SutuSebastian Feb 5, 2025
ed17bb4
feat(cli): export everything
SutuSebastian Feb 5, 2025
54d76fa
feat(metadata): add detailed documentation for class list and depende…
SutuSebastian Feb 5, 2025
19f93d3
feat(tests): add unit tests for extractClassList and extractDependenc…
SutuSebastian Feb 5, 2025
cc6f2b6
chore: formatting for readability
SutuSebastian Feb 6, 2025
95273d5
chore: add JSON schema for config file
SutuSebastian Feb 6, 2025
82406d7
feat(cli): add $schema property to Config interface and defaultConfig
SutuSebastian Feb 6, 2025
20eceab
feat(cli): put everything under `.flowbite-react` directory and simpl…
SutuSebastian Feb 6, 2025
c36d332
use paths from consts
SutuSebastian Feb 6, 2025
e2e070c
chore(cli): remove unused imports from utils.ts
SutuSebastian Feb 6, 2025
db3b383
refactor(apps): use new config
SutuSebastian Feb 6, 2025
fcf22ce
fix(tailwind): rename flowbite variable to flowbiteReact for consistency
SutuSebastian Feb 6, 2025
f6357c3
plugin system for all bundlers (WIP)
SutuSebastian Feb 6, 2025
e4670ca
chore(ci): remove redundant setup step from CI workflow (now that we …
SutuSebastian Feb 6, 2025
e11197d
fix: astro integration
SutuSebastian Feb 6, 2025
ca47cd6
fix(plugin): farm
SutuSebastian Feb 7, 2025
934b4ef
fix(plugin): rollup, esbuild
SutuSebastian Feb 7, 2025
1cc9e3b
fix(plugin): rolldown
SutuSebastian Feb 7, 2025
2d00576
fix(plugin): remove redundant async
SutuSebastian Feb 7, 2025
075e400
fix(plugin): esbuild plugin [with comment]
SutuSebastian Feb 7, 2025
c914ac2
fix(plugin): only run `dev` when `minify = false`; only register `dev…
SutuSebastian Feb 7, 2025
9317b81
fix: warning
SutuSebastian Feb 7, 2025
4a4c39a
feat(plugin): nextjs integration
SutuSebastian Feb 7, 2025
5f432f1
feat(plugin): rsbuild
SutuSebastian Feb 7, 2025
6931fb9
simplify check
SutuSebastian Feb 8, 2025
64cef5a
type return
SutuSebastian Feb 9, 2025
e68b02f
refactor(ui): switch bundler from `rollup` to `rslib`
SutuSebastian Feb 10, 2025
7c03cba
refactor(ui): generate source maps
SutuSebastian Feb 10, 2025
80564e3
chore(ui~cli): move hardcoded import name to consts
SutuSebastian Feb 10, 2025
c6c9629
refactor(ui ~ cli): add `setupPlugin` script (WIP)
SutuSebastian Feb 10, 2025
6db2658
refactor(ui ~ cli): create helper `addPluginToConfig` and add more `s…
SutuSebastian Feb 10, 2025
0eaba18
refactor(ui ~ cli): add `setupPluginNextjs`
SutuSebastian Feb 10, 2025
9ea8b2e
fix build
SutuSebastian Feb 10, 2025
8c0bfef
refine `addImport` and `wrapDefaultExport` + add tests
SutuSebastian Feb 11, 2025
cac5bfc
refactor(ui ~ cli): create parcel plugin and add `setupPluginParcel`
SutuSebastian Feb 11, 2025
831e601
fix(setupPluginParcel): wrong key
SutuSebastian Feb 11, 2025
1587bdf
fix(setupTailwindV3): plugin name
SutuSebastian Feb 11, 2025
4ce178d
fix parcel plugin reporter
SutuSebastian Feb 12, 2025
ed2b196
fix `setupPluginParcel` since plugin registering is very strict (nami…
SutuSebastian Feb 12, 2025
b4c17f5
chore(ui): conditional `tailwind-merge` for tailwind v3 and v4
SutuSebastian Feb 12, 2025
0d9b811
refactor(ui~cli): safer tailwind version check after `ensureTailwind()`
SutuSebastian Feb 12, 2025
5d7e57e
feat(ui): generate `schema.json` on auto-pilot
SutuSebastian Feb 12, 2025
cad4a2f
fix: prettier `importOrder` rules + format files
SutuSebastian Feb 13, 2025
d0c00f9
refactor: `rimraf` -> `git clean`
SutuSebastian Feb 14, 2025
9951057
fix(ui~cli): install packages more safely + properly detect package m…
SutuSebastian Feb 14, 2025
d46b030
fix confusing import resolution due to monorepo
SutuSebastian Feb 14, 2025
a30afbb
add TODO's
SutuSebastian Feb 14, 2025
40eabe3
refactor(ui ~ cli): create modern.js plugin and add `setupPluginModer…
SutuSebastian Feb 14, 2025
3e8ccac
fix: rspack version match
SutuSebastian Feb 14, 2025
5525e02
up turbo
SutuSebastian Feb 14, 2025
b349410
fix: findFiles exclude check false positive
SutuSebastian Feb 14, 2025
7e40e27
simplify exclude
SutuSebastian Feb 16, 2025
ee3cc2f
fix(plugin ~ modernjs): patch `tsconfig.json` due to `moduleResolutio…
SutuSebastian Feb 16, 2025
25a3f7e
fix tailwind plugin return value
SutuSebastian Feb 16, 2025
dc2da10
refactor(ui): switch bundler back to `rollup` (rslib interop driving …
SutuSebastian Feb 17, 2025
9ea4aca
exact imports, easier tree-shaking
SutuSebastian Feb 18, 2025
2cac724
refactor(ui): output `.mjs` -> `.js` since "type": "module"
SutuSebastian Feb 18, 2025
916f685
feat(ui ~ cli): handle `jsonc`
SutuSebastian Feb 18, 2025
26347a1
fix(ui): `generateDts`
SutuSebastian Feb 18, 2025
26864ff
refactor(ui ~ cli): do not fail the `installFlowbiteReact` when no pa…
SutuSebastian Feb 18, 2025
9a8c1cd
refactor(ui~cli): simplify `setupTailwind`
SutuSebastian Feb 18, 2025
66be9ec
refactor(ui~cli): remove relative path from `setupTailwindV3`
SutuSebastian Feb 18, 2025
1582d24
expose more commands
SutuSebastian Feb 18, 2025
cd2cd37
up packages + run format
SutuSebastian Feb 19, 2025
da0f28e
remove CRA
SutuSebastian Mar 1, 2025
4cd7c3b
refactor(ui~cli): update Next.js plugin to use CLI build and dev func…
SutuSebastian Mar 1, 2025
06206fe
refactor(ui~cli): modularize CLI utility functions and add TanStack S…
SutuSebastian Mar 3, 2025
4da3682
feat(ui): add advanced config modification utility for plugins and co…
SutuSebastian Mar 3, 2025
3b7bd17
fix(ui): prevent duplicate values in config array modification
SutuSebastian Mar 3, 2025
16a5872
fix(deps): add `acorn` as dep instead of devDep
SutuSebastian Mar 4, 2025
d95340c
fix(cli): replace acorn with @typescript-eslint/typescript-estree for…
SutuSebastian Mar 4, 2025
5e7b169
fix(ui): update withFlowbiteReact to use async/await for build and de…
SutuSebastian Mar 4, 2025
7839b17
fix(ui): enhance addToConfig to support config objects referenced by …
SutuSebastian Mar 4, 2025
1137f16
fix(ui): support adding values to filtered config arrays
SutuSebastian Mar 4, 2025
5cfa70e
fix(ui): remove async/await from withFlowbiteReact plugin
SutuSebastian Mar 4, 2025
4c238e6
docs(theme): comprehensive rewrite of theme customization documentation
SutuSebastian Mar 5, 2025
590a347
docs(theme): add documentation for ThemeProvider props and prop inher…
SutuSebastian Mar 5, 2025
f0b7b9b
test(ui): add comprehensive test cases for resolveTheme function
SutuSebastian Mar 5, 2025
effe13a
feat(docs): expand integration guides
SutuSebastian Mar 5, 2025
4c332f8
docs(ui): update README with comprehensive CLI and framework integrat…
SutuSebastian Mar 5, 2025
5a6cb06
docs(customize): update prefix configuration guide with detailed Tail…
SutuSebastian Mar 5, 2025
dfa84e3
docs(server-components): enhance documentation with comprehensive RSC…
SutuSebastian Mar 5, 2025
6cae0ac
docs(sidebar): update documentation sidebar with section tags and reo…
SutuSebastian Mar 5, 2025
c466af7
docs(introduction): revamp introduction & quickstart
SutuSebastian Mar 6, 2025
8b3bc14
docs(colors): add comprehensive color customization guide for Flowbit…
SutuSebastian Mar 6, 2025
e3b284c
docs: update component documentation titles to remove "React" prefix
SutuSebastian Mar 6, 2025
0e088d8
docs(cli): comprehensive rewrite of CLI documentation with detailed s…
SutuSebastian Mar 6, 2025
408df08
docs(typography): remove "React" prefix from typography documentation…
SutuSebastian Mar 6, 2025
be00314
docs(theme): add missing createTheme import
SutuSebastian Mar 6, 2025
f23cbd1
feat(ui): add types export path to package.json
SutuSebastian Mar 6, 2025
6685cea
docs(customize): add config documentation
SutuSebastian Mar 6, 2025
7a6ee2e
docs(dark-mode): update dark mode guide
SutuSebastian Mar 6, 2025
dd54d52
docs(config): improve markdown formatting and headings
SutuSebastian Mar 6, 2025
aa3deec
feat(mdx): enhance markdown list rendering with Flowbite React compon…
SutuSebastian Mar 6, 2025
3cc41d3
docs(editor-setup): comprehensive VS Code configuration guide for Flo…
SutuSebastian Mar 6, 2025
0dfb620
style(docs): refactor and improve documentation CSS styles
SutuSebastian Mar 6, 2025
889084a
style(ui): improve link and list item styling
SutuSebastian Mar 6, 2025
7726c51
feat(logos): add new logos for integration guides
SutuSebastian Mar 6, 2025
6088384
feat(integration-guides): add Bun and ESBuild to quickstart guides
SutuSebastian Mar 6, 2025
39aa2f0
docs(cli): add detailed CLI command documentation for Flowbite React
SutuSebastian Mar 6, 2025
5e5ecb2
feat(bun): add Bun plugin and configuration support
SutuSebastian Mar 6, 2025
9653dab
feat(bun): add build config update utility for Bun plugin
SutuSebastian Mar 6, 2025
0f506a9
up packages
SutuSebastian Mar 7, 2025
a407a9c
chore(templates): update CLI template list with new frameworks and re…
SutuSebastian Mar 7, 2025
3eb1273
feat(integration-guides): add Vike to quickstart guides and templates
SutuSebastian Mar 7, 2025
e302d7c
refactor(navbar): replace anchor tag with Next.js Link component for …
SutuSebastian Mar 7, 2025
1128b17
feat(cli): add Vike template to CLI repository list
SutuSebastian Mar 7, 2025
c28f89d
docs(ui): improve schema descriptions with documentation links
SutuSebastian Mar 7, 2025
0af1c5b
refacotr(docs): rename `-js` suffix to `js` (files/content)
SutuSebastian Mar 7, 2025
d494b62
fix(mdx): support hash links in markdown anchor component
SutuSebastian Mar 7, 2025
f8aafab
docs(adonisjs): comprehensive guide for Flowbite React integration
SutuSebastian Mar 7, 2025
c2674b8
docs(astro): comprehensive guide for Flowbite React integration
SutuSebastian Mar 7, 2025
4987a0d
docs(integration-guides): cleanup AdonisJS and Astro setup instructions
SutuSebastian Mar 7, 2025
abcfa71
docs(bun): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 7, 2025
478f64a
docs(farm): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 7, 2025
15adc14
docs(laravel): revamp integration guide with comprehensive setup options
SutuSebastian Mar 7, 2025
32787f2
docs(modernjs): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 8, 2025
9568a6c
docs(nextjs): revamp integration guide with comprehensive setup methods
SutuSebastian Mar 8, 2025
67a8bda
docs(react-router): add comprehensive integration guide for Flowbite …
SutuSebastian Mar 8, 2025
b59bf73
docs(rsbuild): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 8, 2025
dfef9e8
docs(guides): update CLI command and package installation instructions
SutuSebastian Mar 8, 2025
0ea07ef
docs(vite): comprehensive guide with multiple setup methods for Flowb…
SutuSebastian Mar 8, 2025
1dacb93
docs(customize): add comprehensive guide for creating custom components
SutuSebastian Mar 9, 2025
5fecc20
docs(customize): enhance custom component documentation with TypeScri…
SutuSebastian Mar 9, 2025
9e0ca20
refactor(types): optimize imports and restructure theme and props int…
SutuSebastian Mar 9, 2025
9f6c198
docs(tanstack-router): add comprehensive integration guide for Flowbi…
SutuSebastian Mar 9, 2025
18845d6
docs(tanstack-start): add comprehensive integration guide for TanStac…
SutuSebastian Mar 9, 2025
50aa69b
docs(vike): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 10, 2025
fb7e918
docs(react-server): add comprehensive integration guide for Flowbite …
SutuSebastian Mar 10, 2025
9c15313
refactor(ui): replace fast-deep-equal with custom isEqual implementation
SutuSebastian Mar 10, 2025
5df4256
docs(waku): add comprehensive integration guide for Waku framework
SutuSebastian Mar 10, 2025
f5b783f
docs(rspack): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 10, 2025
00e1dd5
docs(remix): update integration guide with comprehensive setup instru…
SutuSebastian Mar 10, 2025
2bac3f0
docs(blitzjs): add comprehensive integration guide for Blitz.js frame…
SutuSebastian Mar 10, 2025
027ca82
docs(redwoodjs): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 10, 2025
4845e0d
refactor(ui): improve Tailwind V4 CSS configuration update logic
SutuSebastian Mar 10, 2025
5f5acb4
style(docs): prevent styling conflicts in code preview and syntax wra…
SutuSebastian Mar 10, 2025
868001a
style(docs): fix inline code styling selector
SutuSebastian Mar 10, 2025
d1cc11d
feat(ui): add copy-to-clipboard functionality for code blocks
SutuSebastian Mar 10, 2025
53a0d76
rename file
SutuSebastian Mar 10, 2025
071a8bf
feat(docs): enhance table of contents with active section tracking
SutuSebastian Mar 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["storybook", "web"]
"ignore": ["@/storybook", "@/web"]
}
4 changes: 2 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ runs:
using: composite
steps:
- name: Setup Bun
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.21
bun-version: 1.2.2

- name: Setup Node
uses: actions/setup-node@v4
Expand Down
10 changes: 5 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"recommendations": [
"oven.bun-vscode",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"yoavbls.pretty-ts-errors",
"bradlc.vscode-tailwindcss",
"DavidAnson.vscode-markdownlint",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"oven.bun-vscode",
"unifiedjs.vscode-mdx",
"DavidAnson.vscode-markdownlint"
"yoavbls.pretty-ts-errors"
]
}
12 changes: 10 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,23 @@
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.workingDirectories": ["apps/web", "packages/ui"],
"editor.quickSuggestions": {
"strings": "on"
},
"eslint.workingDirectories": [{ "mode": "auto" }],
"files.associations": {
"*.css": "tailwindcss"
},
"tailwindCSS.classAttributes": ["class", "className", "theme"],
"tailwindCSS.experimental.classRegex": [
["twMerge\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
["createTheme\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
["createTheme(?:<\\w+>)?\\s*\\(([^)]*)\\)", "{?\\s?[\\w].*:\\s*?[\"'`]([^\"'`]*).*?,?\\s?}?"]
],
"tailwindCSS.experimental.configFile": {
"apps/storybook/tailwind.config.cjs": "apps/storybook/**",
"apps/web/tailwind.config.cjs": "apps/web/**",
"packages/ui/tailwind.config.cjs": "packages/ui/**"
},
"typescript.preferences.preferTypeOnlyAutoImports": true,
"typescript.tsdk": "node_modules/typescript/lib"
}
44 changes: 44 additions & 0 deletions apps/storybook/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
env: {
browser: true,
commonjs: true,
es2021: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:tailwindcss/recommended",
"prettier",
],
overrides: [
{
files: ["**/*.{ts,tsx}"],
plugins: ["@typescript-eslint"],
parser: "@typescript-eslint/parser",
extends: ["plugin:@typescript-eslint/recommended"],
},
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react-refresh"],
settings: {
react: {
version: "detect",
},
tailwindcss: {
callees: ["twMerge", "createTheme"],
classRegex: "^(class(Name)|theme)?$",
},
},
ignorePatterns: ["storybook-static"],
rules: {
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
},
};
2 changes: 2 additions & 0 deletions apps/storybook/.flowbite-react/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class-list.json
pid
5 changes: 5 additions & 0 deletions apps/storybook/.flowbite-react/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "../../../node_modules/flowbite-react/schema.json",
"components": [],
"prefix": ""
}
2 changes: 1 addition & 1 deletion apps/storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, "package.json")));
}
const config: StorybookConfig = {
stories: ["../../../packages/ui/**/*.stories.@(ts|tsx)"],
stories: ["../src/**/*.stories.{ts,tsx}"],
addons: [
getAbsolutePath("@storybook/addon-links"),
getAbsolutePath("@storybook/addon-essentials"),
Expand Down
26 changes: 18 additions & 8 deletions apps/storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
{
"name": "storybook",
"name": "@/storybook",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "storybook build",
"clean": "rimraf .turbo node_modules storybook-static",
"clean": "git clean -xdf",
"dev": "storybook dev -p 6006",
"format": "prettier . --write",
"format:check": "prettier . --check",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"flowbite-react": "workspace:*",
"react": "18.3.1",
"react-dom": "18.3.1"
"react-dom": "18.3.1",
"react-icons": "5.2.1"
},
"devDependencies": {
"@storybook/addon-essentials": "8.1.10",
Expand All @@ -25,12 +29,18 @@
"@storybook/test": "8.1.10",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react": "4.3.1",
"@typescript-eslint/eslint-plugin": "8.19.1",
"@typescript-eslint/parser": "8.19.1",
"@vitejs/plugin-react": "4.3.4",
"autoprefixer": "10.4.20",
"postcss": "8.4.41",
"eslint-plugin-react": "7.37.3",
"eslint-plugin-react-refresh": "0.4.16",
"eslint-plugin-storybook": "0.11.1",
"eslint-plugin-vitest": "0.5.4",
"postcss": "8.4.49",
"storybook": "8.1.10",
"tailwindcss": "3.4.7",
"typescript": "5.5.4",
"vite": "5.3.5"
"tailwindcss": "3.4.17",
"typescript": "5.6.3",
"vite": "6.0.7"
}
}
1 change: 1 addition & 0 deletions apps/storybook/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import('postcss-load-config').Config} */
module.exports = {
plugins: {
tailwindcss: {},
Expand Down
10 changes: 10 additions & 0 deletions apps/storybook/prettier.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const rootPrettier = require("../../prettier.config.cjs");

/** @type {import('prettier').Config} */
module.exports = {
...rootPrettier,
plugins: [...rootPrettier.plugins, "prettier-plugin-tailwindcss"],
// tailwindcss
tailwindAttributes: ["theme"],
tailwindFunctions: ["twMerge", "createTheme"],
};
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type { Meta, StoryFn } from "@storybook/react";
import type { ComponentProps, FC } from "react";
import { Accordion, AccordionContent, AccordionPanel, AccordionTitle, type AccordionProps } from "flowbite-react";
import { HiChevronDown, HiOutlineArrowCircleDown } from "react-icons/hi";
import type { AccordionProps } from "./Accordion";
import { Accordion } from "./Accordion";

export default {
title: "Components/Accordion",
Expand All @@ -13,13 +11,11 @@ export default {
},
} as Meta;

const icon: FC<ComponentProps<"svg">> = HiChevronDown;

const Template: StoryFn<AccordionProps> = (args) => (
<Accordion arrowIcon={icon} {...args}>
<Accordion.Panel>
<Accordion.Title>What is Flowbite?</Accordion.Title>
<Accordion.Content>
<Accordion arrowIcon={HiChevronDown} {...args}>
<AccordionPanel>
<AccordionTitle>What is Flowbite?</AccordionTitle>
<AccordionContent>
<p className="mb-2 text-gray-500 dark:text-gray-400">
Flowbite is an open-source library of interactive components built on top of Tailwind CSS including buttons,
dropdowns, modals, navbars, and more.
Expand All @@ -34,11 +30,11 @@ const Template: StoryFn<AccordionProps> = (args) => (
</a>
&nbsp;and start developing websites even faster with components on top of Tailwind CSS.
</p>
</Accordion.Content>
</Accordion.Panel>
<Accordion.Panel>
<Accordion.Title>Is there a Figma file available?</Accordion.Title>
<Accordion.Content>
</AccordionContent>
</AccordionPanel>
<AccordionPanel>
<AccordionTitle>Is there a Figma file available?</AccordionTitle>
<AccordionContent>
<p className="mb-2 text-gray-500 dark:text-gray-400">
Flowbite is first conceptualized and designed using the Figma software so everything you see in the library
has a design equivalent in our Figma file.
Expand All @@ -50,11 +46,11 @@ const Template: StoryFn<AccordionProps> = (args) => (
</a>
&nbsp;based on the utility classes from Tailwind CSS and components from Flowbite.
</p>
</Accordion.Content>
</Accordion.Panel>
<Accordion.Panel>
<Accordion.Title>What are the differences between Flowbite and Tailwind UI?</Accordion.Title>
<Accordion.Content>
</AccordionContent>
</AccordionPanel>
<AccordionPanel>
<AccordionTitle>What are the differences between Flowbite and Tailwind UI?</AccordionTitle>
<AccordionContent>
<p className="mb-2 text-gray-500 dark:text-gray-400">
The main difference is that the core components from Flowbite are open source under the MIT license, whereas
Tailwind UI is a paid product. Another difference is that Flowbite relies on smaller and standalone
Expand All @@ -81,8 +77,8 @@ const Template: StoryFn<AccordionProps> = (args) => (
</a>
</li>
</ul>
</Accordion.Content>
</Accordion.Panel>
</AccordionContent>
</AccordionPanel>
</Accordion>
);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import type { Meta, StoryFn } from "@storybook/react";
import type { AlertProps } from "flowbite-react";
import { Alert, alertTheme } from "flowbite-react";
import { HiEye, HiInformationCircle } from "react-icons/hi";
import { theme } from "../../theme";
import type { AlertProps } from "./Alert";
import { Alert } from "./Alert";

export default {
title: "Components/Alert",
component: Alert,
argTypes: {
color: {
options: Object.keys(theme.alert.color),
options: Object.keys(alertTheme.color),
control: { type: "inline-radio" },
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryFn } from "@storybook/react";
import type { AvatarProps } from "./Avatar";
import { Avatar } from "./Avatar";
import type { AvatarProps } from "flowbite-react";
import { Avatar } from "flowbite-react";

export default {
title: "Components/Avatar",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import type { Meta, StoryFn } from "@storybook/react";
import { Avatar } from "./Avatar";
import type { AvatarGroupProps } from "./AvatarGroup";
import type { AvatarGroupProps } from "flowbite-react";
import { Avatar, AvatarGroup, AvatarGroupCounter } from "flowbite-react";

export default {
title: "Components/Avatar",
component: Avatar.Group,
component: AvatarGroup,
} as Meta;

const Template: StoryFn<AvatarGroupProps> = (args) => (
<Avatar.Group {...args}>
<AvatarGroup {...args}>
<Avatar img="https://flowbite.com/docs/images/people/profile-picture-1.jpg" rounded stacked />
<Avatar img="https://flowbite.com/docs/images/people/profile-picture-2.jpg" rounded stacked />
<Avatar img="https://flowbite.com/docs/images/people/profile-picture-3.jpg" rounded stacked />
<Avatar img="https://flowbite.com/docs/images/people/profile-picture-4.jpg" rounded stacked />
<Avatar.Counter total={99} href="#" />
</Avatar.Group>
<AvatarGroupCounter total={99} href="#" />
</AvatarGroup>
);

export const DefaultAvatarGroup = Template.bind({});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import type { Meta, StoryFn } from "@storybook/react";
import type { BadgeProps } from "flowbite-react";
import { Badge, badgeTheme } from "flowbite-react";
import { HiCheck } from "react-icons/hi";
import { theme } from "../../theme";
import type { BadgeProps } from "./Badge";
import { Badge } from "./Badge";

export default {
title: "Components/Badge",
component: Badge,
argTypes: {
color: {
options: Object.keys(theme.badge.root.color),
options: Object.keys(badgeTheme.root.color),
control: { type: "inline-radio" },
},
size: {
options: Object.keys(theme.badge.root.size),
options: Object.keys(badgeTheme.root.size),
control: { type: "inline-radio" },
},
},
Expand Down Expand Up @@ -45,10 +44,3 @@ BadgeOnlyIcon.args = {
color: "green",
icon: HiCheck,
};

export const BadgeAsLink = Template.bind({});
BadgeAsLink.storyName = "As link";
BadgeAsLink.args = {
href: "/badges",
children: "Read more →",
};
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import type { Meta, StoryFn } from "@storybook/react";
import type { BannerProps } from "flowbite-react";
import { Banner, BannerCollapseButton } from "flowbite-react";
import { HiX } from "react-icons/hi";
import { MdAnnouncement } from "react-icons/md";
import type { BannerComponentProps } from "./Banner";
import { Banner } from "./Banner";

export default {
title: "Components/Banner",
component: Banner,
} as Meta;

const Template: StoryFn<BannerComponentProps> = (args) => <Banner {...args} />;
const Template: StoryFn<BannerProps> = (args) => <Banner {...args} />;

export const DefaultBanner = Template.bind({});
DefaultBanner.storyName = "Default";
Expand All @@ -30,9 +30,9 @@ DefaultBanner.args = {
</span>
</p>
</div>
<Banner.CollapseButton color="gray" className="border-0 bg-transparent px-0">
<BannerCollapseButton color="gray" className="border-0 bg-transparent px-0">
<HiX className="size-4" />
</Banner.CollapseButton>
</BannerCollapseButton>
</div>
),
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryFn } from "@storybook/react";
import type { BlockquoteProps } from "./Blockquote";
import { Blockquote } from "./Blockquote";
import type { BlockquoteProps } from "flowbite-react";
import { Blockquote } from "flowbite-react";

export default {
title: "Components/Blockquote",
Expand Down
Loading