@bloomneo/uikit 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +222 -0
- package/LICENSE +21 -0
- package/README.md +513 -0
- package/bin/commands/build.js +232 -0
- package/bin/commands/bundle.js +587 -0
- package/bin/commands/create.js +768 -0
- package/bin/commands/deploy.js +533 -0
- package/bin/commands/generate.js +673 -0
- package/bin/commands/optimize.js +198 -0
- package/bin/commands/prerender.js +306 -0
- package/bin/commands/serve.js +216 -0
- package/bin/templates/fbca/README.md.template +130 -0
- package/bin/templates/fbca/docs/QUICKSTART_FBCA.md +368 -0
- package/bin/templates/fbca/docs/UIKIT_CLI_GUIDE.md +574 -0
- package/bin/templates/fbca/docs/UIKIT_COMPOSITE_UI_SYSTEM.md +649 -0
- package/bin/templates/fbca/docs/UIKIT_LLM_GUIDE.md +2055 -0
- package/bin/templates/fbca/docs/UIKIT_THEME_GUIDE.md +359 -0
- package/bin/templates/fbca/package.json.template +41 -0
- package/bin/templates/fbca/public/favicon.svg +10 -0
- package/bin/templates/fbca/public/hero_fbca.svg +1 -0
- package/bin/templates/fbca/src/utils/asset.ts +6 -0
- package/bin/templates/fbca/src/web/App.tsx.template +20 -0
- package/bin/templates/fbca/src/web/features/auth/pages/index.tsx.template +157 -0
- package/bin/templates/fbca/src/web/features/docs/pages/[...slug].tsx.template +83 -0
- package/bin/templates/fbca/src/web/features/gallery/hooks/useGallery.ts.template +74 -0
- package/bin/templates/fbca/src/web/features/gallery/pages/index.tsx.template +136 -0
- package/bin/templates/fbca/src/web/features/main/components/CTASection.tsx.template +43 -0
- package/bin/templates/fbca/src/web/features/main/pages/About.tsx.template +374 -0
- package/bin/templates/fbca/src/web/features/main/pages/index.tsx.template +214 -0
- package/bin/templates/fbca/src/web/index.html.template +15 -0
- package/bin/templates/fbca/src/web/lib/page-router.tsx.template +134 -0
- package/bin/templates/fbca/src/web/main.tsx.template +14 -0
- package/bin/templates/fbca/src/web/shared/components/Footer.tsx.template +57 -0
- package/bin/templates/fbca/src/web/shared/components/Header.tsx.template +91 -0
- package/bin/templates/fbca/src/web/shared/components/SEO.tsx.template +24 -0
- package/bin/templates/fbca/src/web/shared/components/index.ts.template +3 -0
- package/bin/templates/fbca/src/web/shared/hooks/useSEO.ts.template +85 -0
- package/bin/templates/fbca/src/web/shared/utils/asset.ts +6 -0
- package/bin/templates/fbca/src/web/styles/index.css.template +8 -0
- package/bin/templates/fbca/src/web/utils/asset.ts +6 -0
- package/bin/templates/fbca/tsconfig.json.template +32 -0
- package/bin/templates/fbca/tsconfig.node.json.template +10 -0
- package/bin/templates/fbca/vite.config.ts.template +38 -0
- package/bin/templates/generate/component/component.tsx.template +79 -0
- package/bin/templates/generate/component/index.ts.template +2 -0
- package/bin/templates/generate/component/types.ts.template +58 -0
- package/bin/templates/generate/feature/index.ts.template +14 -0
- package/bin/templates/generate/feature/list-page.tsx.template +34 -0
- package/bin/templates/generate/feature/main-component.tsx.template +37 -0
- package/bin/templates/generate/feature/main-page.tsx.template +30 -0
- package/bin/templates/generate/feature/types.ts.template +34 -0
- package/bin/templates/generate/hook/hook.ts.template +35 -0
- package/bin/templates/generate/index.css.template +10 -0
- package/bin/templates/generate/main.tsx.template +10 -0
- package/bin/templates/generate/page/index.ts.template +2 -0
- package/bin/templates/generate/page/page.tsx.template +86 -0
- package/bin/templates/generate/theme/README.md +31 -0
- package/bin/templates/generate/theme/theme.js.template +155 -0
- package/bin/templates/multi/README.md.template +120 -0
- package/bin/templates/multi/docs/QUICKSTART_MULTI.md +334 -0
- package/bin/templates/multi/docs/UIKIT_CLI_GUIDE.md +574 -0
- package/bin/templates/multi/docs/UIKIT_COMPOSITE_UI_SYSTEM.md +649 -0
- package/bin/templates/multi/docs/UIKIT_LLM_GUIDE.md +2055 -0
- package/bin/templates/multi/docs/UIKIT_THEME_GUIDE.md +359 -0
- package/bin/templates/multi/index.html.template +58 -0
- package/bin/templates/multi/package.json.template +35 -0
- package/bin/templates/multi/public/favicon.svg +10 -0
- package/bin/templates/multi/public/hero_multi.svg +1 -0
- package/bin/templates/multi/src/App.tsx.template +92 -0
- package/bin/templates/multi/src/components/Footer.tsx.template +58 -0
- package/bin/templates/multi/src/components/Header.tsx.template +103 -0
- package/bin/templates/multi/src/components/SEO.tsx.template +19 -0
- package/bin/templates/multi/src/components/index.ts.template +3 -0
- package/bin/templates/multi/src/hooks/useSEO.ts.template +38 -0
- package/bin/templates/multi/src/index.css.template +7 -0
- package/bin/templates/multi/src/main.tsx.template +14 -0
- package/bin/templates/multi/src/pages/About.tsx.template +276 -0
- package/bin/templates/multi/src/pages/Components.tsx.template +288 -0
- package/bin/templates/multi/src/pages/Contact.tsx.template +348 -0
- package/bin/templates/multi/src/pages/Dashboard.tsx.template +306 -0
- package/bin/templates/multi/src/pages/ErrorPage.tsx.template +37 -0
- package/bin/templates/multi/src/pages/Home.tsx.template +201 -0
- package/bin/templates/multi/src/pages/Login.tsx.template +148 -0
- package/bin/templates/multi/src/pages/Themes.tsx.template +207 -0
- package/bin/templates/multi/src/router.tsx.template +34 -0
- package/bin/templates/multi/src/utils/asset.ts +6 -0
- package/bin/templates/multi/tsconfig.json.template +30 -0
- package/bin/templates/multi/tsconfig.node.json +22 -0
- package/bin/templates/multi/vite.config.ts.template +36 -0
- package/bin/templates/single/README.md.template +131 -0
- package/bin/templates/single/docs/QUICKSTART_SINGLE.md +259 -0
- package/bin/templates/single/docs/UIKIT_CLI_GUIDE.md +574 -0
- package/bin/templates/single/docs/UIKIT_COMPOSITE_UI_SYSTEM.md +649 -0
- package/bin/templates/single/docs/UIKIT_LLM_GUIDE.md +2055 -0
- package/bin/templates/single/docs/UIKIT_THEME_GUIDE.md +359 -0
- package/bin/templates/single/index.html.template +37 -0
- package/bin/templates/single/package.json.template +34 -0
- package/bin/templates/single/public/favicon.svg +10 -0
- package/bin/templates/single/public/hero.svg +1 -0
- package/bin/templates/single/src/App.tsx.template +233 -0
- package/bin/templates/single/src/index.css.template +7 -0
- package/bin/templates/single/src/main.tsx.template +14 -0
- package/bin/templates/single/src/styles/fonts.css +99 -0
- package/bin/templates/single/src/utils/asset.ts +6 -0
- package/bin/templates/single/tsconfig.json +31 -0
- package/bin/templates/single/tsconfig.node.json +22 -0
- package/bin/templates/single/vite.config.ts.template +36 -0
- package/bin/templates/spa/README.md.template +105 -0
- package/bin/templates/spa/components/SEO.tsx.template +19 -0
- package/bin/templates/spa/docs/QUICKSTART_SPA.md +300 -0
- package/bin/templates/spa/docs/UIKIT_CLI_GUIDE.md +574 -0
- package/bin/templates/spa/docs/UIKIT_COMPOSITE_UI_SYSTEM.md +649 -0
- package/bin/templates/spa/docs/UIKIT_LLM_GUIDE.md +2055 -0
- package/bin/templates/spa/docs/UIKIT_THEME_GUIDE.md +359 -0
- package/bin/templates/spa/hooks/useSEO.ts.template +38 -0
- package/bin/templates/spa/index.html.template +58 -0
- package/bin/templates/spa/package.json.template +35 -0
- package/bin/templates/spa/public/favicon.svg +15 -0
- package/bin/templates/spa/public/hero_spa.svg +1 -0
- package/bin/templates/spa/src/App.tsx.template +659 -0
- package/bin/templates/spa/src/index.css.template +7 -0
- package/bin/templates/spa/src/main.tsx.template +14 -0
- package/bin/templates/spa/src/utils/asset.ts +6 -0
- package/bin/templates/spa/tsconfig.json.template +30 -0
- package/bin/templates/spa/tsconfig.node.json +22 -0
- package/bin/templates/spa/vite.config.ts.template +36 -0
- package/bin/uikit.js +133 -0
- package/cookbook/README.md +20 -0
- package/cookbook/crud-page.tsx +99 -0
- package/cookbook/dashboard.tsx +89 -0
- package/cookbook/delete-flow.tsx +59 -0
- package/cookbook/login.tsx +85 -0
- package/cookbook/settings.tsx +113 -0
- package/dist/Combination-C0DFrmJW.js +674 -0
- package/dist/Combination-C0DFrmJW.js.map +1 -0
- package/dist/accordion.js +284 -0
- package/dist/accordion.js.map +1 -0
- package/dist/admin.js +429 -0
- package/dist/admin.js.map +1 -0
- package/dist/alert.js +67 -0
- package/dist/alert.js.map +1 -0
- package/dist/auth.js +178 -0
- package/dist/auth.js.map +1 -0
- package/dist/avatar.js +249 -0
- package/dist/avatar.js.map +1 -0
- package/dist/badge.js +40 -0
- package/dist/badge.js.map +1 -0
- package/dist/blank.js +80 -0
- package/dist/blank.js.map +1 -0
- package/dist/breadcrumb.js +104 -0
- package/dist/breadcrumb.js.map +1 -0
- package/dist/button.js +50 -0
- package/dist/button.js.map +1 -0
- package/dist/calendar.js +2785 -0
- package/dist/calendar.js.map +1 -0
- package/dist/card.js +91 -0
- package/dist/card.js.map +1 -0
- package/dist/check-DXouwtzp.js +12 -0
- package/dist/check-DXouwtzp.js.map +1 -0
- package/dist/checkbox.js +268 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/chevron-down-BORJtX8F.js +14 -0
- package/dist/chevron-down-BORJtX8F.js.map +1 -0
- package/dist/chevron-left-C1pkx4AF.js +14 -0
- package/dist/chevron-left-C1pkx4AF.js.map +1 -0
- package/dist/chevron-right-pz9eCjj-.js +14 -0
- package/dist/chevron-right-pz9eCjj-.js.map +1 -0
- package/dist/circle-DHOdTDQh.js +14 -0
- package/dist/circle-DHOdTDQh.js.map +1 -0
- package/dist/collapsible.js +35 -0
- package/dist/collapsible.js.map +1 -0
- package/dist/command.js +481 -0
- package/dist/command.js.map +1 -0
- package/dist/confirm-dialog.js +129 -0
- package/dist/confirm-dialog.js.map +1 -0
- package/dist/container.js +334 -0
- package/dist/container.js.map +1 -0
- package/dist/createLucideIcon-B45kRl5r.js +80 -0
- package/dist/createLucideIcon-B45kRl5r.js.map +1 -0
- package/dist/data-table.js +574 -0
- package/dist/data-table.js.map +1 -0
- package/dist/detail-page.js +454 -0
- package/dist/detail-page.js.map +1 -0
- package/dist/dialog.js +137 -0
- package/dist/dialog.js.map +1 -0
- package/dist/dropdown-menu.js +424 -0
- package/dist/dropdown-menu.js.map +1 -0
- package/dist/ellipsis-BhAoKPVk.js +16 -0
- package/dist/ellipsis-BhAoKPVk.js.map +1 -0
- package/dist/empty-state.js +54 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/errors.js +36 -0
- package/dist/errors.js.map +1 -0
- package/dist/eye-DDKoW0KS.js +46 -0
- package/dist/eye-DDKoW0KS.js.map +1 -0
- package/dist/fonts/caveat-cyrillic-400-normal.woff +0 -0
- package/dist/fonts/caveat-cyrillic-400-normal.woff2 +0 -0
- package/dist/fonts/caveat-cyrillic-700-normal.woff +0 -0
- package/dist/fonts/caveat-cyrillic-700-normal.woff2 +0 -0
- package/dist/fonts/caveat-cyrillic-ext-400-normal.woff +0 -0
- package/dist/fonts/caveat-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/fonts/caveat-cyrillic-ext-700-normal.woff +0 -0
- package/dist/fonts/caveat-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/fonts/caveat-latin-400-normal.woff +0 -0
- package/dist/fonts/caveat-latin-400-normal.woff2 +0 -0
- package/dist/fonts/caveat-latin-700-normal.woff +0 -0
- package/dist/fonts/caveat-latin-700-normal.woff2 +0 -0
- package/dist/fonts/caveat-latin-ext-400-normal.woff +0 -0
- package/dist/fonts/caveat-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/caveat-latin-ext-700-normal.woff +0 -0
- package/dist/fonts/caveat-latin-ext-700-normal.woff2 +0 -0
- package/dist/fonts/crimson-text-latin-400-normal.woff +0 -0
- package/dist/fonts/crimson-text-latin-400-normal.woff2 +0 -0
- package/dist/fonts/crimson-text-latin-600-normal.woff +0 -0
- package/dist/fonts/crimson-text-latin-600-normal.woff2 +0 -0
- package/dist/fonts/crimson-text-latin-700-normal.woff +0 -0
- package/dist/fonts/crimson-text-latin-700-normal.woff2 +0 -0
- package/dist/fonts/crimson-text-latin-ext-400-normal.woff +0 -0
- package/dist/fonts/crimson-text-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/crimson-text-latin-ext-600-normal.woff +0 -0
- package/dist/fonts/crimson-text-latin-ext-600-normal.woff2 +0 -0
- package/dist/fonts/crimson-text-latin-ext-700-normal.woff +0 -0
- package/dist/fonts/crimson-text-latin-ext-700-normal.woff2 +0 -0
- package/dist/fonts/crimson-text-vietnamese-400-normal.woff +0 -0
- package/dist/fonts/crimson-text-vietnamese-400-normal.woff2 +0 -0
- package/dist/fonts/crimson-text-vietnamese-600-normal.woff +0 -0
- package/dist/fonts/crimson-text-vietnamese-600-normal.woff2 +0 -0
- package/dist/fonts/crimson-text-vietnamese-700-normal.woff +0 -0
- package/dist/fonts/crimson-text-vietnamese-700-normal.woff2 +0 -0
- package/dist/fonts/dm-serif-display-latin-400-normal.woff +0 -0
- package/dist/fonts/dm-serif-display-latin-400-normal.woff2 +0 -0
- package/dist/fonts/dm-serif-display-latin-ext-400-normal.woff +0 -0
- package/dist/fonts/dm-serif-display-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/libre-baskerville-latin-400-normal.woff +0 -0
- package/dist/fonts/libre-baskerville-latin-400-normal.woff2 +0 -0
- package/dist/fonts/libre-baskerville-latin-700-normal.woff +0 -0
- package/dist/fonts/libre-baskerville-latin-700-normal.woff2 +0 -0
- package/dist/fonts/libre-baskerville-latin-ext-400-normal.woff +0 -0
- package/dist/fonts/libre-baskerville-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/libre-baskerville-latin-ext-700-normal.woff +0 -0
- package/dist/fonts/libre-baskerville-latin-ext-700-normal.woff2 +0 -0
- package/dist/fonts/montserrat-cyrillic-400-normal.woff +0 -0
- package/dist/fonts/montserrat-cyrillic-400-normal.woff2 +0 -0
- package/dist/fonts/montserrat-cyrillic-500-normal.woff +0 -0
- package/dist/fonts/montserrat-cyrillic-500-normal.woff2 +0 -0
- package/dist/fonts/montserrat-cyrillic-600-normal.woff +0 -0
- package/dist/fonts/montserrat-cyrillic-600-normal.woff2 +0 -0
- package/dist/fonts/montserrat-cyrillic-ext-400-normal.woff +0 -0
- package/dist/fonts/montserrat-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/fonts/montserrat-cyrillic-ext-500-normal.woff +0 -0
- package/dist/fonts/montserrat-cyrillic-ext-500-normal.woff2 +0 -0
- package/dist/fonts/montserrat-cyrillic-ext-600-normal.woff +0 -0
- package/dist/fonts/montserrat-cyrillic-ext-600-normal.woff2 +0 -0
- package/dist/fonts/montserrat-latin-400-normal.woff +0 -0
- package/dist/fonts/montserrat-latin-400-normal.woff2 +0 -0
- package/dist/fonts/montserrat-latin-500-normal.woff +0 -0
- package/dist/fonts/montserrat-latin-500-normal.woff2 +0 -0
- package/dist/fonts/montserrat-latin-600-normal.woff +0 -0
- package/dist/fonts/montserrat-latin-600-normal.woff2 +0 -0
- package/dist/fonts/montserrat-latin-ext-400-normal.woff +0 -0
- package/dist/fonts/montserrat-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/montserrat-latin-ext-500-normal.woff +0 -0
- package/dist/fonts/montserrat-latin-ext-500-normal.woff2 +0 -0
- package/dist/fonts/montserrat-latin-ext-600-normal.woff +0 -0
- package/dist/fonts/montserrat-latin-ext-600-normal.woff2 +0 -0
- package/dist/fonts/montserrat-vietnamese-400-normal.woff +0 -0
- package/dist/fonts/montserrat-vietnamese-400-normal.woff2 +0 -0
- package/dist/fonts/montserrat-vietnamese-500-normal.woff +0 -0
- package/dist/fonts/montserrat-vietnamese-500-normal.woff2 +0 -0
- package/dist/fonts/montserrat-vietnamese-600-normal.woff +0 -0
- package/dist/fonts/montserrat-vietnamese-600-normal.woff2 +0 -0
- package/dist/fonts/playfair-display-cyrillic-400-normal.woff +0 -0
- package/dist/fonts/playfair-display-cyrillic-400-normal.woff2 +0 -0
- package/dist/fonts/playfair-display-cyrillic-500-normal.woff +0 -0
- package/dist/fonts/playfair-display-cyrillic-500-normal.woff2 +0 -0
- package/dist/fonts/playfair-display-latin-400-normal.woff +0 -0
- package/dist/fonts/playfair-display-latin-400-normal.woff2 +0 -0
- package/dist/fonts/playfair-display-latin-500-normal.woff +0 -0
- package/dist/fonts/playfair-display-latin-500-normal.woff2 +0 -0
- package/dist/fonts/playfair-display-latin-ext-400-normal.woff +0 -0
- package/dist/fonts/playfair-display-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/playfair-display-latin-ext-500-normal.woff +0 -0
- package/dist/fonts/playfair-display-latin-ext-500-normal.woff2 +0 -0
- package/dist/fonts/playfair-display-vietnamese-400-normal.woff +0 -0
- package/dist/fonts/playfair-display-vietnamese-400-normal.woff2 +0 -0
- package/dist/fonts/playfair-display-vietnamese-500-normal.woff +0 -0
- package/dist/fonts/playfair-display-vietnamese-500-normal.woff2 +0 -0
- package/dist/fonts/poppins-devanagari-400-normal.woff +0 -0
- package/dist/fonts/poppins-devanagari-400-normal.woff2 +0 -0
- package/dist/fonts/poppins-devanagari-500-normal.woff +0 -0
- package/dist/fonts/poppins-devanagari-500-normal.woff2 +0 -0
- package/dist/fonts/poppins-devanagari-600-normal.woff +0 -0
- package/dist/fonts/poppins-devanagari-600-normal.woff2 +0 -0
- package/dist/fonts/poppins-latin-400-normal.woff +0 -0
- package/dist/fonts/poppins-latin-400-normal.woff2 +0 -0
- package/dist/fonts/poppins-latin-500-normal.woff +0 -0
- package/dist/fonts/poppins-latin-500-normal.woff2 +0 -0
- package/dist/fonts/poppins-latin-600-normal.woff +0 -0
- package/dist/fonts/poppins-latin-600-normal.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-400-normal.woff +0 -0
- package/dist/fonts/poppins-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-500-normal.woff +0 -0
- package/dist/fonts/poppins-latin-ext-500-normal.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-600-normal.woff +0 -0
- package/dist/fonts/poppins-latin-ext-600-normal.woff2 +0 -0
- package/dist/fonts/rubik-arabic-400-normal.woff +0 -0
- package/dist/fonts/rubik-arabic-400-normal.woff2 +0 -0
- package/dist/fonts/rubik-arabic-500-normal.woff +0 -0
- package/dist/fonts/rubik-arabic-500-normal.woff2 +0 -0
- package/dist/fonts/rubik-cyrillic-400-normal.woff +0 -0
- package/dist/fonts/rubik-cyrillic-400-normal.woff2 +0 -0
- package/dist/fonts/rubik-cyrillic-500-normal.woff +0 -0
- package/dist/fonts/rubik-cyrillic-500-normal.woff2 +0 -0
- package/dist/fonts/rubik-cyrillic-ext-400-normal.woff +0 -0
- package/dist/fonts/rubik-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/fonts/rubik-cyrillic-ext-500-normal.woff +0 -0
- package/dist/fonts/rubik-cyrillic-ext-500-normal.woff2 +0 -0
- package/dist/fonts/rubik-hebrew-400-normal.woff +0 -0
- package/dist/fonts/rubik-hebrew-400-normal.woff2 +0 -0
- package/dist/fonts/rubik-hebrew-500-normal.woff +0 -0
- package/dist/fonts/rubik-hebrew-500-normal.woff2 +0 -0
- package/dist/fonts/rubik-latin-400-normal.woff +0 -0
- package/dist/fonts/rubik-latin-400-normal.woff2 +0 -0
- package/dist/fonts/rubik-latin-500-normal.woff +0 -0
- package/dist/fonts/rubik-latin-500-normal.woff2 +0 -0
- package/dist/fonts/rubik-latin-ext-400-normal.woff +0 -0
- package/dist/fonts/rubik-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/rubik-latin-ext-500-normal.woff +0 -0
- package/dist/fonts/rubik-latin-ext-500-normal.woff2 +0 -0
- package/dist/fonts/source-serif-pro-cyrillic-400-normal.woff +0 -0
- package/dist/fonts/source-serif-pro-cyrillic-400-normal.woff2 +0 -0
- package/dist/fonts/source-serif-pro-cyrillic-ext-400-normal.woff +0 -0
- package/dist/fonts/source-serif-pro-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/fonts/source-serif-pro-greek-400-normal.woff +0 -0
- package/dist/fonts/source-serif-pro-greek-400-normal.woff2 +0 -0
- package/dist/fonts/source-serif-pro-latin-400-normal.woff +0 -0
- package/dist/fonts/source-serif-pro-latin-400-normal.woff2 +0 -0
- package/dist/fonts/source-serif-pro-latin-ext-400-normal.woff +0 -0
- package/dist/fonts/source-serif-pro-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/source-serif-pro-vietnamese-400-normal.woff +0 -0
- package/dist/fonts/source-serif-pro-vietnamese-400-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-latin-400-normal.woff +0 -0
- package/dist/fonts/space-grotesk-latin-400-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-latin-600-normal.woff +0 -0
- package/dist/fonts/space-grotesk-latin-600-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-latin-700-normal.woff +0 -0
- package/dist/fonts/space-grotesk-latin-700-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-latin-ext-400-normal.woff +0 -0
- package/dist/fonts/space-grotesk-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-latin-ext-600-normal.woff +0 -0
- package/dist/fonts/space-grotesk-latin-ext-600-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-latin-ext-700-normal.woff +0 -0
- package/dist/fonts/space-grotesk-latin-ext-700-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-vietnamese-400-normal.woff +0 -0
- package/dist/fonts/space-grotesk-vietnamese-400-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-vietnamese-600-normal.woff +0 -0
- package/dist/fonts/space-grotesk-vietnamese-600-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-vietnamese-700-normal.woff +0 -0
- package/dist/fonts/space-grotesk-vietnamese-700-normal.woff2 +0 -0
- package/dist/fonts/work-sans-latin-400-normal.woff +0 -0
- package/dist/fonts/work-sans-latin-400-normal.woff2 +0 -0
- package/dist/fonts/work-sans-latin-500-normal.woff +0 -0
- package/dist/fonts/work-sans-latin-500-normal.woff2 +0 -0
- package/dist/fonts/work-sans-latin-ext-400-normal.woff +0 -0
- package/dist/fonts/work-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/work-sans-latin-ext-500-normal.woff +0 -0
- package/dist/fonts/work-sans-latin-ext-500-normal.woff2 +0 -0
- package/dist/fonts/work-sans-vietnamese-400-normal.woff +0 -0
- package/dist/fonts/work-sans-vietnamese-400-normal.woff2 +0 -0
- package/dist/fonts/work-sans-vietnamese-500-normal.woff +0 -0
- package/dist/fonts/work-sans-vietnamese-500-normal.woff2 +0 -0
- package/dist/footer.js +308 -0
- package/dist/footer.js.map +1 -0
- package/dist/form-field.js +69 -0
- package/dist/form-field.js.map +1 -0
- package/dist/form.js +732 -0
- package/dist/form.js.map +1 -0
- package/dist/format.js +112 -0
- package/dist/format.js.map +1 -0
- package/dist/fouc.js +28 -0
- package/dist/fouc.js.map +1 -0
- package/dist/header.js +289 -0
- package/dist/header.js.map +1 -0
- package/dist/hooks.js +13 -0
- package/dist/hooks.js.map +1 -0
- package/dist/hover-card.js +210 -0
- package/dist/hover-card.js.map +1 -0
- package/dist/index-0ioNhtNM.js +11 -0
- package/dist/index-0ioNhtNM.js.map +1 -0
- package/dist/index-1QHKgw6D.js +55 -0
- package/dist/index-1QHKgw6D.js.map +1 -0
- package/dist/index-B6sSWi7l.js +747 -0
- package/dist/index-B6sSWi7l.js.map +1 -0
- package/dist/index-BCjJQGh8.js +71 -0
- package/dist/index-BCjJQGh8.js.map +1 -0
- package/dist/index-BGQepRFJ.js +28 -0
- package/dist/index-BGQepRFJ.js.map +1 -0
- package/dist/index-BVRIAMfe.js +37 -0
- package/dist/index-BVRIAMfe.js.map +1 -0
- package/dist/index-BY7PeRJA.js +145 -0
- package/dist/index-BY7PeRJA.js.map +1 -0
- package/dist/index-BZPx6jYI.js +9 -0
- package/dist/index-BZPx6jYI.js.map +1 -0
- package/dist/index-Ba4eHUBD.js +243 -0
- package/dist/index-Ba4eHUBD.js.map +1 -0
- package/dist/index-Bke1qZdk.js +35 -0
- package/dist/index-Bke1qZdk.js.map +1 -0
- package/dist/index-C0UREtMP.js +60 -0
- package/dist/index-C0UREtMP.js.map +1 -0
- package/dist/index-CCKe-Mpx.js +7 -0
- package/dist/index-CCKe-Mpx.js.map +1 -0
- package/dist/index-DFZozV_h.js +69 -0
- package/dist/index-DFZozV_h.js.map +1 -0
- package/dist/index-DFi6WydO.js +180 -0
- package/dist/index-DFi6WydO.js.map +1 -0
- package/dist/index-DQH6odE9.js +83 -0
- package/dist/index-DQH6odE9.js.map +1 -0
- package/dist/index-EO5flKM3.js +119 -0
- package/dist/index-EO5flKM3.js.map +1 -0
- package/dist/index-Lf7yDOXW.js +615 -0
- package/dist/index-Lf7yDOXW.js.map +1 -0
- package/dist/index-dhIqEbxW.js +1541 -0
- package/dist/index-dhIqEbxW.js.map +1 -0
- package/dist/index-pWhlqjff.js +32 -0
- package/dist/index-pWhlqjff.js.map +1 -0
- package/dist/index-rKs9bXHr.js +7 -0
- package/dist/index-rKs9bXHr.js.map +1 -0
- package/dist/index-xqkGMOJ8.js +14 -0
- package/dist/index-xqkGMOJ8.js.map +1 -0
- package/dist/index.js +247 -0
- package/dist/index.js.map +1 -0
- package/dist/input.js +22 -0
- package/dist/input.js.map +1 -0
- package/dist/label.js +36 -0
- package/dist/label.js.map +1 -0
- package/dist/layout-wrapper.js +208 -0
- package/dist/layout-wrapper.js.map +1 -0
- package/dist/llms.txt +1140 -0
- package/dist/menu-DBhEanGo.js +16 -0
- package/dist/menu-DBhEanGo.js.map +1 -0
- package/dist/menubar.js +565 -0
- package/dist/menubar.js.map +1 -0
- package/dist/mobile.js +183 -0
- package/dist/mobile.js.map +1 -0
- package/dist/motion.js +119 -0
- package/dist/motion.js.map +1 -0
- package/dist/page-header.js +47 -0
- package/dist/page-header.js.map +1 -0
- package/dist/page.js +214 -0
- package/dist/page.js.map +1 -0
- package/dist/pagination.js +121 -0
- package/dist/pagination.js.map +1 -0
- package/dist/platform.js +194 -0
- package/dist/platform.js.map +1 -0
- package/dist/popover.js +263 -0
- package/dist/popover.js.map +1 -0
- package/dist/popup.js +335 -0
- package/dist/popup.js.map +1 -0
- package/dist/progress.js +108 -0
- package/dist/progress.js.map +1 -0
- package/dist/radio-group.js +272 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/safe-area.js +42 -0
- package/dist/safe-area.js.map +1 -0
- package/dist/search-CpUwRnG-.js +15 -0
- package/dist/search-CpUwRnG-.js.map +1 -0
- package/dist/select.js +985 -0
- package/dist/select.js.map +1 -0
- package/dist/separator.js +45 -0
- package/dist/separator.js.map +1 -0
- package/dist/sheet.js +127 -0
- package/dist/sheet.js.map +1 -0
- package/dist/skeleton.js +16 -0
- package/dist/skeleton.js.map +1 -0
- package/dist/slider.js +485 -0
- package/dist/slider.js.map +1 -0
- package/dist/sonner.js +52 -0
- package/dist/sonner.js.map +1 -0
- package/dist/styles/fonts.css +253 -0
- package/dist/styles.css +2 -0
- package/dist/switch.js +155 -0
- package/dist/switch.js.map +1 -0
- package/dist/tab-bar.js +110 -0
- package/dist/tab-bar.js.map +1 -0
- package/dist/table.js +115 -0
- package/dist/table.js.map +1 -0
- package/dist/tabs.js +218 -0
- package/dist/tabs.js.map +1 -0
- package/dist/textarea.js +19 -0
- package/dist/textarea.js.map +1 -0
- package/dist/theme-provider.js +154 -0
- package/dist/theme-provider.js.map +1 -0
- package/dist/themes.js +873 -0
- package/dist/themes.js.map +1 -0
- package/dist/toast.js +63 -0
- package/dist/toast.js.map +1 -0
- package/dist/toggle.js +70 -0
- package/dist/toggle.js.map +1 -0
- package/dist/tooltip.js +375 -0
- package/dist/tooltip.js.map +1 -0
- package/dist/types/App.d.ts +3 -0
- package/dist/types/App.d.ts.map +1 -0
- package/dist/types/components/layouts/admin.d.ts +117 -0
- package/dist/types/components/layouts/admin.d.ts.map +1 -0
- package/dist/types/components/layouts/auth.d.ts +17 -0
- package/dist/types/components/layouts/auth.d.ts.map +1 -0
- package/dist/types/components/layouts/blank.d.ts +63 -0
- package/dist/types/components/layouts/blank.d.ts.map +1 -0
- package/dist/types/components/layouts/layout-wrapper.d.ts +130 -0
- package/dist/types/components/layouts/layout-wrapper.d.ts.map +1 -0
- package/dist/types/components/layouts/mobile.d.ts +91 -0
- package/dist/types/components/layouts/mobile.d.ts.map +1 -0
- package/dist/types/components/layouts/page.d.ts +181 -0
- package/dist/types/components/layouts/page.d.ts.map +1 -0
- package/dist/types/components/layouts/popup.d.ts +100 -0
- package/dist/types/components/layouts/popup.d.ts.map +1 -0
- package/dist/types/components/sections/container.d.ts +79 -0
- package/dist/types/components/sections/container.d.ts.map +1 -0
- package/dist/types/components/sections/footer.d.ts +128 -0
- package/dist/types/components/sections/footer.d.ts.map +1 -0
- package/dist/types/components/sections/header.d.ts +72 -0
- package/dist/types/components/sections/header.d.ts.map +1 -0
- package/dist/types/components/sections/safe-area.d.ts +46 -0
- package/dist/types/components/sections/safe-area.d.ts.map +1 -0
- package/dist/types/components/sections/tab-bar.d.ts +61 -0
- package/dist/types/components/sections/tab-bar.d.ts.map +1 -0
- package/dist/types/components/ui/accordion.d.ts +8 -0
- package/dist/types/components/ui/accordion.d.ts.map +1 -0
- package/dist/types/components/ui/alert.d.ts +10 -0
- package/dist/types/components/ui/alert.d.ts.map +1 -0
- package/dist/types/components/ui/avatar.d.ts +7 -0
- package/dist/types/components/ui/avatar.d.ts.map +1 -0
- package/dist/types/components/ui/badge.d.ts +10 -0
- package/dist/types/components/ui/badge.d.ts.map +1 -0
- package/dist/types/components/ui/breadcrumb.d.ts +12 -0
- package/dist/types/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/types/components/ui/button.d.ts +11 -0
- package/dist/types/components/ui/button.d.ts.map +1 -0
- package/dist/types/components/ui/calendar.d.ts +9 -0
- package/dist/types/components/ui/calendar.d.ts.map +1 -0
- package/dist/types/components/ui/card.d.ts +10 -0
- package/dist/types/components/ui/card.d.ts.map +1 -0
- package/dist/types/components/ui/checkbox.d.ts +5 -0
- package/dist/types/components/ui/checkbox.d.ts.map +1 -0
- package/dist/types/components/ui/collapsible.d.ts +6 -0
- package/dist/types/components/ui/collapsible.d.ts.map +1 -0
- package/dist/types/components/ui/command.d.ts +19 -0
- package/dist/types/components/ui/command.d.ts.map +1 -0
- package/dist/types/components/ui/confirm-dialog.d.ts +72 -0
- package/dist/types/components/ui/confirm-dialog.d.ts.map +1 -0
- package/dist/types/components/ui/data-table.d.ts +211 -0
- package/dist/types/components/ui/data-table.d.ts.map +1 -0
- package/dist/types/components/ui/detail-page.d.ts +119 -0
- package/dist/types/components/ui/detail-page.d.ts.map +1 -0
- package/dist/types/components/ui/dialog.d.ts +16 -0
- package/dist/types/components/ui/dialog.d.ts.map +1 -0
- package/dist/types/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/types/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/types/components/ui/empty-state.d.ts +30 -0
- package/dist/types/components/ui/empty-state.d.ts.map +1 -0
- package/dist/types/components/ui/form-field.d.ts +57 -0
- package/dist/types/components/ui/form-field.d.ts.map +1 -0
- package/dist/types/components/ui/form.d.ts +185 -0
- package/dist/types/components/ui/form.d.ts.map +1 -0
- package/dist/types/components/ui/hover-card.d.ts +7 -0
- package/dist/types/components/ui/hover-card.d.ts.map +1 -0
- package/dist/types/components/ui/input.d.ts +4 -0
- package/dist/types/components/ui/input.d.ts.map +1 -0
- package/dist/types/components/ui/label.d.ts +5 -0
- package/dist/types/components/ui/label.d.ts.map +1 -0
- package/dist/types/components/ui/menubar.d.ts +27 -0
- package/dist/types/components/ui/menubar.d.ts.map +1 -0
- package/dist/types/components/ui/motion.d.ts +130 -0
- package/dist/types/components/ui/motion.d.ts.map +1 -0
- package/dist/types/components/ui/page-header.d.ts +45 -0
- package/dist/types/components/ui/page-header.d.ts.map +1 -0
- package/dist/types/components/ui/pagination.d.ts +14 -0
- package/dist/types/components/ui/pagination.d.ts.map +1 -0
- package/dist/types/components/ui/popover.d.ts +8 -0
- package/dist/types/components/ui/popover.d.ts.map +1 -0
- package/dist/types/components/ui/progress.d.ts +5 -0
- package/dist/types/components/ui/progress.d.ts.map +1 -0
- package/dist/types/components/ui/radio-group.d.ts +6 -0
- package/dist/types/components/ui/radio-group.d.ts.map +1 -0
- package/dist/types/components/ui/select.d.ts +16 -0
- package/dist/types/components/ui/select.d.ts.map +1 -0
- package/dist/types/components/ui/separator.d.ts +5 -0
- package/dist/types/components/ui/separator.d.ts.map +1 -0
- package/dist/types/components/ui/sheet.d.ts +14 -0
- package/dist/types/components/ui/sheet.d.ts.map +1 -0
- package/dist/types/components/ui/skeleton.d.ts +3 -0
- package/dist/types/components/ui/skeleton.d.ts.map +1 -0
- package/dist/types/components/ui/slider.d.ts +5 -0
- package/dist/types/components/ui/slider.d.ts.map +1 -0
- package/dist/types/components/ui/sonner.d.ts +4 -0
- package/dist/types/components/ui/sonner.d.ts.map +1 -0
- package/dist/types/components/ui/switch.d.ts +5 -0
- package/dist/types/components/ui/switch.d.ts.map +1 -0
- package/dist/types/components/ui/table.d.ts +11 -0
- package/dist/types/components/ui/table.d.ts.map +1 -0
- package/dist/types/components/ui/tabs.d.ts +8 -0
- package/dist/types/components/ui/tabs.d.ts.map +1 -0
- package/dist/types/components/ui/textarea.d.ts +4 -0
- package/dist/types/components/ui/textarea.d.ts.map +1 -0
- package/dist/types/components/ui/toast.d.ts +70 -0
- package/dist/types/components/ui/toast.d.ts.map +1 -0
- package/dist/types/components/ui/toggle.d.ts +10 -0
- package/dist/types/components/ui/toggle.d.ts.map +1 -0
- package/dist/types/components/ui/tooltip.d.ts +8 -0
- package/dist/types/components/ui/tooltip.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +14 -0
- package/dist/types/hooks/index.d.ts.map +1 -0
- package/dist/types/hooks/useApi.d.ts +38 -0
- package/dist/types/hooks/useApi.d.ts.map +1 -0
- package/dist/types/hooks/useBreakpoint.d.ts +35 -0
- package/dist/types/hooks/useBreakpoint.d.ts.map +1 -0
- package/dist/types/hooks/useDataTable.d.ts +59 -0
- package/dist/types/hooks/useDataTable.d.ts.map +1 -0
- package/dist/types/hooks/useMediaQuery.d.ts +12 -0
- package/dist/types/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/types/hooks/useStorage.d.ts +35 -0
- package/dist/types/hooks/useStorage.d.ts.map +1 -0
- package/dist/types/index.d.ts +75 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/errors.d.ts +37 -0
- package/dist/types/lib/errors.d.ts.map +1 -0
- package/dist/types/lib/format.d.ts +80 -0
- package/dist/types/lib/format.d.ts.map +1 -0
- package/dist/types/lib/fouc.d.ts +64 -0
- package/dist/types/lib/fouc.d.ts.map +1 -0
- package/dist/types/lib/platform.d.ts +156 -0
- package/dist/types/lib/platform.d.ts.map +1 -0
- package/dist/types/lib/utils.d.ts +14 -0
- package/dist/types/lib/utils.d.ts.map +1 -0
- package/dist/types/main.d.ts +2 -0
- package/dist/types/main.d.ts.map +1 -0
- package/dist/types/themes/index.d.ts +499 -0
- package/dist/types/themes/index.d.ts.map +1 -0
- package/dist/types/themes/presets/base.d.ts +108 -0
- package/dist/types/themes/presets/base.d.ts.map +1 -0
- package/dist/types/themes/presets/elegant.d.ts +108 -0
- package/dist/types/themes/presets/elegant.d.ts.map +1 -0
- package/dist/types/themes/presets/metro.d.ts +114 -0
- package/dist/types/themes/presets/metro.d.ts.map +1 -0
- package/dist/types/themes/presets/studio.d.ts +115 -0
- package/dist/types/themes/presets/studio.d.ts.map +1 -0
- package/dist/types/themes/presets/vivid.d.ts +115 -0
- package/dist/types/themes/presets/vivid.d.ts.map +1 -0
- package/dist/types/themes/theme-provider.d.ts +122 -0
- package/dist/types/themes/theme-provider.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +813 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/uikit.css +1 -0
- package/dist/useDataTable-CPiBpEg-.js +254 -0
- package/dist/useDataTable-CPiBpEg-.js.map +1 -0
- package/dist/utils-CwJPJKOE.js +2278 -0
- package/dist/utils-CwJPJKOE.js.map +1 -0
- package/dist/utils.js +5 -0
- package/dist/utils.js.map +1 -0
- package/dist/wrapper.js +13 -0
- package/dist/wrapper.js.map +1 -0
- package/dist/x-BxwubQiM.js +15 -0
- package/dist/x-BxwubQiM.js.map +1 -0
- package/examples/README.md +18 -0
- package/examples/button.tsx +16 -0
- package/examples/confirm-dialog.tsx +44 -0
- package/examples/data-table.tsx +35 -0
- package/examples/dialog.tsx +34 -0
- package/examples/empty-state.tsx +13 -0
- package/examples/form-field.tsx +22 -0
- package/examples/format.tsx +19 -0
- package/examples/page-header.tsx +17 -0
- package/examples/skeleton.tsx +12 -0
- package/examples/theme-provider.tsx +33 -0
- package/examples/toast.tsx +32 -0
- package/examples/use-breakpoint.tsx +17 -0
- package/llms.txt +1140 -0
- package/package.json +430 -0
|
@@ -0,0 +1,587 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview UIKit Bundle Command - Direct theme bundling functionality
|
|
3
|
+
* @description Core theme bundling with watch mode and verbose logging
|
|
4
|
+
* @package @bloomneo/uikit
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import fs from 'fs';
|
|
8
|
+
import path from 'path';
|
|
9
|
+
import { fileURLToPath } from 'url';
|
|
10
|
+
import { createRequire } from 'module';
|
|
11
|
+
|
|
12
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
13
|
+
const __dirname = path.dirname(__filename);
|
|
14
|
+
|
|
15
|
+
// Create require function for loading CommonJS modules
|
|
16
|
+
const require = createRequire(import.meta.url);
|
|
17
|
+
|
|
18
|
+
// Consumer project theme directories to search
|
|
19
|
+
const webAssetsPath = path.resolve(process.cwd(), 'src/web/assets');
|
|
20
|
+
const webThemesPath = path.resolve(process.cwd(), 'src/web/themes');
|
|
21
|
+
const useWebAssets = fs.existsSync(webAssetsPath);
|
|
22
|
+
const useWebThemes = fs.existsSync(webThemesPath);
|
|
23
|
+
|
|
24
|
+
const THEME_SEARCH_PATHS = useWebAssets
|
|
25
|
+
? [
|
|
26
|
+
'src/web/assets/themes/presets',
|
|
27
|
+
'src/web/assets/themes',
|
|
28
|
+
'themes/presets',
|
|
29
|
+
'themes',
|
|
30
|
+
]
|
|
31
|
+
: useWebThemes
|
|
32
|
+
? [
|
|
33
|
+
'src/web/themes/presets',
|
|
34
|
+
'src/web/themes',
|
|
35
|
+
'src/web/styles/themes',
|
|
36
|
+
'themes/presets',
|
|
37
|
+
'themes',
|
|
38
|
+
]
|
|
39
|
+
: [
|
|
40
|
+
'src/themes/presets',
|
|
41
|
+
'src/themes',
|
|
42
|
+
'themes/presets',
|
|
43
|
+
'themes',
|
|
44
|
+
'src/styles/themes',
|
|
45
|
+
'styles/themes',
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Log with optional verbose mode
|
|
50
|
+
*/
|
|
51
|
+
function log(message, isVerbose = false, verbose = false) {
|
|
52
|
+
if (!isVerbose || verbose) {
|
|
53
|
+
console.log(message);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Generate unified @theme directive for all themes
|
|
59
|
+
*/
|
|
60
|
+
function generateUnifiedThemeCSS(themes) {
|
|
61
|
+
if (!themes || themes.length === 0) {
|
|
62
|
+
return '';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Collect all design tokens from all themes
|
|
66
|
+
const allDesignTokens = new Set();
|
|
67
|
+
const allColorVars = new Set();
|
|
68
|
+
|
|
69
|
+
themes.forEach(theme => {
|
|
70
|
+
if (theme.design) {
|
|
71
|
+
Object.entries(theme.design).forEach(([key, value]) => {
|
|
72
|
+
const cssKey = `--voila-${key.replace(/([A-Z])/g, '-$1').toLowerCase()}`;
|
|
73
|
+
allDesignTokens.add(` ${cssKey}: ${value};`);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Collect all unique color variable names
|
|
78
|
+
Object.keys(theme.light || {}).forEach(key => {
|
|
79
|
+
const cssKey = `--color-${key.replace(/([A-Z])/g, '-$1').toLowerCase()}`;
|
|
80
|
+
allColorVars.add(cssKey);
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
// Use the first theme as the base for light mode colors
|
|
85
|
+
const baseTheme = themes[0];
|
|
86
|
+
const lightVariables = Object.entries(baseTheme.light)
|
|
87
|
+
.map(([key, value]) => {
|
|
88
|
+
const cssKey = `--color-${key.replace(/([A-Z])/g, '-$1').toLowerCase()}`;
|
|
89
|
+
return ` ${cssKey}: ${value};`;
|
|
90
|
+
})
|
|
91
|
+
.join('\n');
|
|
92
|
+
|
|
93
|
+
// Generate enhanced design tokens section
|
|
94
|
+
let enhancedTokens = '';
|
|
95
|
+
if (allDesignTokens.size > 0) {
|
|
96
|
+
enhancedTokens = `\n /* š Enhanced Design Tokens from all themes */\n${Array.from(allDesignTokens).join('\n')}\n`;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return `/* Define all theme colors in @theme - this creates the Tailwind utilities */
|
|
100
|
+
@theme {
|
|
101
|
+
--color-radius: 0.75rem;${enhancedTokens}
|
|
102
|
+
|
|
103
|
+
/* Base Colors (using ${baseTheme.name} as default) */
|
|
104
|
+
${lightVariables}
|
|
105
|
+
}`;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Generate theme-specific light mode color overrides
|
|
110
|
+
*/
|
|
111
|
+
function generateThemeLightModes(themes) {
|
|
112
|
+
return themes.map(theme => {
|
|
113
|
+
// Skip base theme since its colors are already in @theme
|
|
114
|
+
if (theme.id === 'base') return '';
|
|
115
|
+
|
|
116
|
+
const lightVariables = Object.entries(theme.light)
|
|
117
|
+
.map(([key, value]) => {
|
|
118
|
+
const cssKey = `--color-${key.replace(/([A-Z])/g, '-$1').toLowerCase()}`;
|
|
119
|
+
return ` ${cssKey}: ${value};`;
|
|
120
|
+
})
|
|
121
|
+
.join('\n');
|
|
122
|
+
|
|
123
|
+
return `/* Light mode colors for ${theme.name} theme */
|
|
124
|
+
.theme-${theme.id} {
|
|
125
|
+
${lightVariables}
|
|
126
|
+
}`;
|
|
127
|
+
}).filter(Boolean).join('\n\n');
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Generate theme-specific dark mode overrides
|
|
132
|
+
*/
|
|
133
|
+
function generateThemeDarkModes(themes) {
|
|
134
|
+
return themes.map(theme => {
|
|
135
|
+
const darkVariables = Object.entries(theme.dark)
|
|
136
|
+
.map(([key, value]) => {
|
|
137
|
+
const cssKey = `--color-${key.replace(/([A-Z])/g, '-$1').toLowerCase()}`;
|
|
138
|
+
return ` ${cssKey}: ${value};`;
|
|
139
|
+
})
|
|
140
|
+
.join('\n');
|
|
141
|
+
|
|
142
|
+
let customStyles = '';
|
|
143
|
+
if (theme.customStyles) {
|
|
144
|
+
const stylesWithoutImports = removeFontImports(theme.customStyles);
|
|
145
|
+
if (stylesWithoutImports) {
|
|
146
|
+
customStyles = `\n${stylesWithoutImports}`;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return `/* Dark mode overrides for ${theme.name} theme */
|
|
151
|
+
.theme-${theme.id}.dark {
|
|
152
|
+
${darkVariables}
|
|
153
|
+
}${customStyles}`;
|
|
154
|
+
}).join('\n\n');
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Remove font imports from customStyles to avoid duplication
|
|
159
|
+
*/
|
|
160
|
+
function removeFontImports(customStyles) {
|
|
161
|
+
if (!customStyles) return '';
|
|
162
|
+
return customStyles.replace(/@import\s+url\([^)]+\);\s*/g, '').trim();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Load a single theme file with both ESM and CommonJS support
|
|
167
|
+
*/
|
|
168
|
+
async function loadThemeFile(themePath, fileName) {
|
|
169
|
+
try {
|
|
170
|
+
// Clear any cached version first
|
|
171
|
+
delete require.cache[themePath];
|
|
172
|
+
|
|
173
|
+
let theme = null;
|
|
174
|
+
|
|
175
|
+
// Try ES modules first
|
|
176
|
+
try {
|
|
177
|
+
const themeUrl = `file://${themePath.replace(
|
|
178
|
+
/\\/g,
|
|
179
|
+
'/'
|
|
180
|
+
)}?timestamp=${Date.now()}`;
|
|
181
|
+
const themeModule = await import(themeUrl);
|
|
182
|
+
theme = themeModule.default || themeModule;
|
|
183
|
+
|
|
184
|
+
// Handle named exports (studioTheme, auroraTheme, etc.)
|
|
185
|
+
if (!theme && themeModule) {
|
|
186
|
+
const namedExports = Object.keys(themeModule).filter(
|
|
187
|
+
(key) =>
|
|
188
|
+
key !== 'default' &&
|
|
189
|
+
typeof themeModule[key] === 'object' &&
|
|
190
|
+
themeModule[key].id &&
|
|
191
|
+
themeModule[key].name
|
|
192
|
+
);
|
|
193
|
+
if (namedExports.length > 0) {
|
|
194
|
+
theme = themeModule[namedExports[0]];
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
} catch (esmError) {
|
|
198
|
+
// Fall back to CommonJS
|
|
199
|
+
try {
|
|
200
|
+
theme = require(themePath);
|
|
201
|
+
// Handle both module.exports = theme and module.exports.default = theme
|
|
202
|
+
if (theme.default) {
|
|
203
|
+
theme = theme.default;
|
|
204
|
+
}
|
|
205
|
+
} catch (cjsError) {
|
|
206
|
+
throw new Error(
|
|
207
|
+
`Both ESM and CJS import failed. ESM: ${esmError.message}, CJS: ${cjsError.message}`
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return theme;
|
|
213
|
+
} catch (err) {
|
|
214
|
+
throw new Error(`Failed to load ${fileName}: ${err.message}`);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Find and load themes from consumer project
|
|
220
|
+
*/
|
|
221
|
+
async function loadThemes(verbose = false) {
|
|
222
|
+
const themes = [];
|
|
223
|
+
const cwd = process.cwd();
|
|
224
|
+
const foundFiles = [];
|
|
225
|
+
|
|
226
|
+
log('š Searching for theme files...', true, verbose);
|
|
227
|
+
|
|
228
|
+
for (const themesDir of THEME_SEARCH_PATHS) {
|
|
229
|
+
try {
|
|
230
|
+
const fullPath = path.resolve(cwd, themesDir);
|
|
231
|
+
|
|
232
|
+
if (!fs.existsSync(fullPath)) {
|
|
233
|
+
log(` ā ${themesDir}/ - not found`, true, verbose);
|
|
234
|
+
continue;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
const files = fs.readdirSync(fullPath).filter(
|
|
238
|
+
(file) =>
|
|
239
|
+
(file.endsWith('.js') || file.endsWith('.ts')) &&
|
|
240
|
+
!file.startsWith('index.') &&
|
|
241
|
+
!file.includes('theme-bundler') && // Skip build scripts
|
|
242
|
+
!file.includes('.d.ts') && // Skip TypeScript declarations
|
|
243
|
+
!file.includes('.test.') && // Skip test files
|
|
244
|
+
!file.includes('.spec.') // Skip spec files
|
|
245
|
+
);
|
|
246
|
+
|
|
247
|
+
if (files.length === 0) {
|
|
248
|
+
log(` š ${themesDir}/ - no theme files`, true, verbose);
|
|
249
|
+
continue;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
log(
|
|
253
|
+
` š ${themesDir}/ - found ${files.length} files: ${files.join(
|
|
254
|
+
', '
|
|
255
|
+
)}`,
|
|
256
|
+
true,
|
|
257
|
+
verbose
|
|
258
|
+
);
|
|
259
|
+
|
|
260
|
+
for (const file of files) {
|
|
261
|
+
try {
|
|
262
|
+
const themePath = path.resolve(fullPath, file);
|
|
263
|
+
log(` š Loading ${file}...`, true, verbose);
|
|
264
|
+
|
|
265
|
+
const theme = await loadThemeFile(themePath, file);
|
|
266
|
+
|
|
267
|
+
if (theme && theme.id && theme.name && theme.light && theme.dark) {
|
|
268
|
+
themes.push(theme);
|
|
269
|
+
foundFiles.push(`${themesDir}/${file}`);
|
|
270
|
+
log(` ā
${theme.name} (${theme.id})`, true, verbose);
|
|
271
|
+
} else {
|
|
272
|
+
console.warn(` ā ļø ${file} - invalid theme structure`);
|
|
273
|
+
log(` Expected: { id, name, light: {}, dark: {} }`, true, verbose);
|
|
274
|
+
}
|
|
275
|
+
} catch (err) {
|
|
276
|
+
console.warn(` ā ${file} - ${err.message}`);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
} catch (err) {
|
|
280
|
+
log(` ā ${themesDir}/ - error: ${err.message}`, true, verbose);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
return { themes, foundFiles };
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Read existing globals.css and preserve non-theme content
|
|
289
|
+
*/
|
|
290
|
+
function readExistingGlobals(outputPath, verbose = false) {
|
|
291
|
+
if (!fs.existsSync(outputPath)) {
|
|
292
|
+
log(`š Creating new globals.css file`, true, verbose);
|
|
293
|
+
return { beforeThemes: '', afterThemes: '' };
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
const content = fs.readFileSync(outputPath, 'utf8');
|
|
297
|
+
|
|
298
|
+
// Look for theme markers - support both old and new formats
|
|
299
|
+
const oldStartMarker = '/* THEME_DECLARATIONS_PLACEHOLDER */';
|
|
300
|
+
const actualStartMarker = '/* šØ Bundled Themes for @bloomneo/uikit';
|
|
301
|
+
const endMarker = '/* END_THEME_DECLARATIONS */';
|
|
302
|
+
|
|
303
|
+
// Check for actual theme bundle start marker first
|
|
304
|
+
let startIndex = content.indexOf(actualStartMarker);
|
|
305
|
+
|
|
306
|
+
if (startIndex === -1) {
|
|
307
|
+
// Fall back to old placeholder marker
|
|
308
|
+
startIndex = content.indexOf(oldStartMarker);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (startIndex === -1) {
|
|
312
|
+
// No existing themes - check if this looks like first-time usage
|
|
313
|
+
const hasThemeWillBundled = content.includes('/* Themes will be bundled here */');
|
|
314
|
+
if (hasThemeWillBundled) {
|
|
315
|
+
log(`š Found placeholder comment, replacing with themes`, true, verbose);
|
|
316
|
+
return {
|
|
317
|
+
beforeThemes: '',
|
|
318
|
+
afterThemes: '',
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// No theme markers found - append to end
|
|
323
|
+
log(`š No theme marker found, will append themes to end`, true, verbose);
|
|
324
|
+
return {
|
|
325
|
+
beforeThemes: content.trim() + '\n\n',
|
|
326
|
+
afterThemes: '',
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
// Find the LAST end marker to handle multiple theme sections
|
|
331
|
+
let endIndex = -1;
|
|
332
|
+
let searchFrom = 0;
|
|
333
|
+
while (true) {
|
|
334
|
+
const nextIndex = content.indexOf(endMarker, searchFrom);
|
|
335
|
+
if (nextIndex === -1) break;
|
|
336
|
+
endIndex = nextIndex;
|
|
337
|
+
searchFrom = nextIndex + 1;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
if (endIndex === -1) {
|
|
341
|
+
// No end marker found - replace from start marker to end of file
|
|
342
|
+
log(`š Found start marker but no end marker, replacing to end of file`, true, verbose);
|
|
343
|
+
return {
|
|
344
|
+
beforeThemes: content.substring(0, startIndex).trim() + '\n\n',
|
|
345
|
+
afterThemes: '',
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
// Both markers found - replace ALL theme sections between first start and last end
|
|
350
|
+
const actualEndIndex = endIndex + endMarker.length;
|
|
351
|
+
log(`š Found theme sections, replacing from first start to last end marker`, true, verbose);
|
|
352
|
+
|
|
353
|
+
return {
|
|
354
|
+
beforeThemes: content.substring(0, startIndex).trim() + '\n\n',
|
|
355
|
+
afterThemes: content.substring(actualEndIndex),
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Core bundle themes functionality
|
|
361
|
+
*/
|
|
362
|
+
async function bundleThemesCore(options = {}) {
|
|
363
|
+
const startTime = Date.now();
|
|
364
|
+
const { output, verbose = false } = options;
|
|
365
|
+
|
|
366
|
+
try {
|
|
367
|
+
const { themes } = await loadThemes(verbose);
|
|
368
|
+
|
|
369
|
+
if (themes.length === 0) {
|
|
370
|
+
console.log('ā No valid themes found!');
|
|
371
|
+
console.log(
|
|
372
|
+
'\nš Make sure your theme files are in one of these directories:'
|
|
373
|
+
);
|
|
374
|
+
THEME_SEARCH_PATHS.forEach((dir) => console.log(` - ${dir}/`));
|
|
375
|
+
console.log('\nš§ Run with --verbose to see detailed loading attempts');
|
|
376
|
+
return false;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// Generate unified @theme directive
|
|
380
|
+
const unifiedThemeCSS = generateUnifiedThemeCSS(themes);
|
|
381
|
+
|
|
382
|
+
// Generate theme-specific light mode color overrides
|
|
383
|
+
const lightModeCSS = generateThemeLightModes(themes);
|
|
384
|
+
|
|
385
|
+
// Generate theme-specific dark mode overrides
|
|
386
|
+
const darkModeCSS = generateThemeDarkModes(themes);
|
|
387
|
+
|
|
388
|
+
if (!unifiedThemeCSS) {
|
|
389
|
+
console.log('ā No valid CSS generated from themes');
|
|
390
|
+
return false;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
// Determine output path
|
|
394
|
+
const webAssetsPath = path.resolve(process.cwd(), 'src/web/assets');
|
|
395
|
+
const webPath = path.resolve(process.cwd(), 'src/web');
|
|
396
|
+
const useWebAssets = fs.existsSync(webAssetsPath);
|
|
397
|
+
const useWebStructure = fs.existsSync(webPath);
|
|
398
|
+
|
|
399
|
+
let defaultOutput;
|
|
400
|
+
if (useWebAssets) {
|
|
401
|
+
defaultOutput = 'src/web/assets/styles/globals.css';
|
|
402
|
+
} else if (useWebStructure) {
|
|
403
|
+
defaultOutput = 'src/web/styles/globals.css';
|
|
404
|
+
} else {
|
|
405
|
+
defaultOutput = 'src/styles/globals.css';
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
const outputFile = output || defaultOutput;
|
|
409
|
+
const outputPath = path.resolve(process.cwd(), outputFile);
|
|
410
|
+
const outputDir = path.dirname(outputPath);
|
|
411
|
+
|
|
412
|
+
// Ensure output directory exists
|
|
413
|
+
if (!fs.existsSync(outputDir)) {
|
|
414
|
+
fs.mkdirSync(outputDir, { recursive: true });
|
|
415
|
+
log(`š Created directory: ${outputDir}`, true, verbose);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
let finalContent;
|
|
419
|
+
|
|
420
|
+
if (outputPath.includes('globals.css')) {
|
|
421
|
+
// Preserve existing globals.css content
|
|
422
|
+
const { beforeThemes, afterThemes } = readExistingGlobals(outputPath, verbose);
|
|
423
|
+
|
|
424
|
+
finalContent = `${beforeThemes}
|
|
425
|
+
|
|
426
|
+
/* šØ Bundled Themes for @bloomneo/uikit - Generated by voila-bundle */
|
|
427
|
+
/* Generated: ${new Date().toISOString()} */
|
|
428
|
+
/* Themes: ${themes.map((t) => t.name).join(', ')} */
|
|
429
|
+
/* DO NOT EDIT THIS SECTION MANUALLY - Run "npx uikit bundle" to regenerate */
|
|
430
|
+
|
|
431
|
+
${unifiedThemeCSS}
|
|
432
|
+
|
|
433
|
+
${lightModeCSS}
|
|
434
|
+
|
|
435
|
+
${darkModeCSS}
|
|
436
|
+
|
|
437
|
+
/* END_THEME_DECLARATIONS */
|
|
438
|
+
${afterThemes}`;
|
|
439
|
+
} else {
|
|
440
|
+
// Create standalone theme file
|
|
441
|
+
finalContent = `/*
|
|
442
|
+
* šØ Bundled Themes for @bloomneo/uikit
|
|
443
|
+
*
|
|
444
|
+
* Auto-generated by uikit bundle
|
|
445
|
+
* Generated: ${new Date().toISOString()}
|
|
446
|
+
* Themes: ${themes.length}
|
|
447
|
+
*
|
|
448
|
+
* DO NOT EDIT THIS FILE DIRECTLY
|
|
449
|
+
* Edit your theme source files and run "npx uikit bundle" to regenerate
|
|
450
|
+
*/
|
|
451
|
+
|
|
452
|
+
@import "tailwindcss";
|
|
453
|
+
@import "./fonts.css";
|
|
454
|
+
|
|
455
|
+
/* Modern @theme directive for Tailwind CSS v4+ */
|
|
456
|
+
${unifiedThemeCSS}
|
|
457
|
+
|
|
458
|
+
${lightModeCSS}
|
|
459
|
+
|
|
460
|
+
${darkModeCSS}
|
|
461
|
+
|
|
462
|
+
`;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
// Write the file
|
|
466
|
+
fs.writeFileSync(outputPath, finalContent);
|
|
467
|
+
|
|
468
|
+
const duration = Date.now() - startTime;
|
|
469
|
+
|
|
470
|
+
console.log(
|
|
471
|
+
`\nā
Successfully bundled ${themes.length} themes in ${duration}ms`
|
|
472
|
+
);
|
|
473
|
+
themes.forEach((theme) => console.log(` šØ ${theme.name} (${theme.id})`));
|
|
474
|
+
console.log(`\nš¦ Output: ${outputPath}`);
|
|
475
|
+
console.log(`š Size: ${(finalContent.length / 1024).toFixed(1)}kb`);
|
|
476
|
+
|
|
477
|
+
if (outputPath.includes('globals.css')) {
|
|
478
|
+
console.log('\nš” Themes added to globals.css - import in your app');
|
|
479
|
+
} else {
|
|
480
|
+
console.log('\nš” Import in your app: import "./themes.css"');
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
return true;
|
|
484
|
+
} catch (err) {
|
|
485
|
+
console.error('ā Bundle failed:', err.message);
|
|
486
|
+
if (verbose) {
|
|
487
|
+
console.error(err.stack);
|
|
488
|
+
}
|
|
489
|
+
return false;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Watch mode - rebuild on file changes
|
|
495
|
+
*/
|
|
496
|
+
async function watchMode(options) {
|
|
497
|
+
console.log('š Watch mode enabled - monitoring theme files...\n');
|
|
498
|
+
|
|
499
|
+
let timeout;
|
|
500
|
+
const debounceMs = 300;
|
|
501
|
+
|
|
502
|
+
const rebuild = () => {
|
|
503
|
+
clearTimeout(timeout);
|
|
504
|
+
timeout = setTimeout(async () => {
|
|
505
|
+
console.log('\nš Change detected, rebuilding...');
|
|
506
|
+
await bundleThemesCore(options);
|
|
507
|
+
console.log('š Watching for changes...\n');
|
|
508
|
+
}, debounceMs);
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
// Initial build
|
|
512
|
+
const success = await bundleThemesCore(options);
|
|
513
|
+
if (!success) return;
|
|
514
|
+
|
|
515
|
+
// Watch all theme directories
|
|
516
|
+
const cwd = process.cwd();
|
|
517
|
+
const watchers = [];
|
|
518
|
+
|
|
519
|
+
for (const themesDir of THEME_SEARCH_PATHS) {
|
|
520
|
+
const fullPath = path.resolve(cwd, themesDir);
|
|
521
|
+
if (fs.existsSync(fullPath)) {
|
|
522
|
+
try {
|
|
523
|
+
const watcher = fs.watch(
|
|
524
|
+
fullPath,
|
|
525
|
+
{ recursive: true },
|
|
526
|
+
(eventType, filename) => {
|
|
527
|
+
if (
|
|
528
|
+
filename &&
|
|
529
|
+
(filename.endsWith('.js') || filename.endsWith('.ts')) &&
|
|
530
|
+
!filename.includes('theme-bundler') &&
|
|
531
|
+
!filename.includes('.d.ts')
|
|
532
|
+
) {
|
|
533
|
+
log(`š ${eventType}: ${themesDir}/${filename}`, true, options.verbose);
|
|
534
|
+
rebuild();
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
);
|
|
538
|
+
watchers.push(watcher);
|
|
539
|
+
log(`š Watching: ${themesDir}/`, true, options.verbose);
|
|
540
|
+
} catch (err) {
|
|
541
|
+
console.warn(`ā ļø Could not watch ${themesDir}/: ${err.message}`);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
if (watchers.length === 0) {
|
|
547
|
+
console.log('ā No directories to watch');
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
console.log('š Watching for changes... (Press Ctrl+C to stop)\n');
|
|
552
|
+
|
|
553
|
+
// Handle graceful shutdown
|
|
554
|
+
process.on('SIGINT', () => {
|
|
555
|
+
console.log('\nš Stopping watch mode...');
|
|
556
|
+
watchers.forEach((watcher) => watcher.close());
|
|
557
|
+
process.exit(0);
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Main bundle themes function - CLI entry point
|
|
563
|
+
*/
|
|
564
|
+
export async function bundleThemes(options) {
|
|
565
|
+
console.log('šØ UIKit Theme Bundler\n');
|
|
566
|
+
|
|
567
|
+
try {
|
|
568
|
+
if (options.watch) {
|
|
569
|
+
await watchMode(options);
|
|
570
|
+
} else {
|
|
571
|
+
const success = await bundleThemesCore(options);
|
|
572
|
+
if (!success) {
|
|
573
|
+
process.exit(1);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
if (!options.watch) {
|
|
577
|
+
console.log('\nš” Next steps:');
|
|
578
|
+
console.log(' - Themes are now bundled in your globals.css');
|
|
579
|
+
console.log(' - Use theme classes like .theme-base, .theme-elegant');
|
|
580
|
+
console.log(' - Run "npx uikit serve" to start development server');
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
} catch (error) {
|
|
584
|
+
console.error('ā Bundle command failed:', error.message);
|
|
585
|
+
process.exit(1);
|
|
586
|
+
}
|
|
587
|
+
}
|