@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,574 @@
|
|
|
1
|
+
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import * as Ae from "react";
|
|
3
|
+
import { forwardRef as Ve, useState as j, useMemo as R, useCallback as T } from "react";
|
|
4
|
+
import { c as ee } from "./index-Bke1qZdk.js";
|
|
5
|
+
import { c as o } from "./utils-CwJPJKOE.js";
|
|
6
|
+
import { Button as b } from "./button.js";
|
|
7
|
+
import { Input as Ee } from "./input.js";
|
|
8
|
+
import { Badge as Fe } from "./badge.js";
|
|
9
|
+
import { Checkbox as G } from "./checkbox.js";
|
|
10
|
+
import { Select as Ke, SelectTrigger as Re, SelectValue as qe, SelectContent as Ie, SelectItem as A } from "./select.js";
|
|
11
|
+
import { DropdownMenu as J, DropdownMenuTrigger as Q, DropdownMenuContent as X, DropdownMenuItem as Y } from "./dropdown-menu.js";
|
|
12
|
+
import { requireArrayProp as Z, warnInDev as Pe } from "./errors.js";
|
|
13
|
+
import { S as Ue } from "./search-CpUwRnG-.js";
|
|
14
|
+
import { c as C } from "./createLucideIcon-B45kRl5r.js";
|
|
15
|
+
import { E as He } from "./ellipsis-BhAoKPVk.js";
|
|
16
|
+
/**
|
|
17
|
+
* @license lucide-react v0.468.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
const Be = C("ArrowDownWideNarrow", [
|
|
23
|
+
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
24
|
+
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
25
|
+
["path", { d: "M11 4h10", key: "1w87gc" }],
|
|
26
|
+
["path", { d: "M11 8h7", key: "djye34" }],
|
|
27
|
+
["path", { d: "M11 12h4", key: "q8tih4" }]
|
|
28
|
+
]);
|
|
29
|
+
/**
|
|
30
|
+
* @license lucide-react v0.468.0 - ISC
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the ISC license.
|
|
33
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/
|
|
35
|
+
const Oe = C("ArrowUpDown", [
|
|
36
|
+
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
37
|
+
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
38
|
+
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
39
|
+
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
40
|
+
]);
|
|
41
|
+
/**
|
|
42
|
+
* @license lucide-react v0.468.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/
|
|
47
|
+
const _e = C("ArrowUpNarrowWide", [
|
|
48
|
+
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
49
|
+
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
50
|
+
["path", { d: "M11 12h4", key: "q8tih4" }],
|
|
51
|
+
["path", { d: "M11 16h7", key: "uosisv" }],
|
|
52
|
+
["path", { d: "M11 20h10", key: "jvxblo" }]
|
|
53
|
+
]);
|
|
54
|
+
/**
|
|
55
|
+
* @license lucide-react v0.468.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/
|
|
60
|
+
const Ge = C("Download", [
|
|
61
|
+
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
62
|
+
["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
|
|
63
|
+
["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
|
|
64
|
+
]);
|
|
65
|
+
/**
|
|
66
|
+
* @license lucide-react v0.468.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/
|
|
71
|
+
const Je = C("Filter", [
|
|
72
|
+
["polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3", key: "1yg77f" }]
|
|
73
|
+
]);
|
|
74
|
+
/**
|
|
75
|
+
* @license lucide-react v0.468.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/
|
|
80
|
+
const $ = C("RefreshCw", [
|
|
81
|
+
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
82
|
+
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
83
|
+
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
84
|
+
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
85
|
+
]), Qe = ee(
|
|
86
|
+
"w-full border-collapse",
|
|
87
|
+
{
|
|
88
|
+
variants: {
|
|
89
|
+
size: {
|
|
90
|
+
sm: "text-xs",
|
|
91
|
+
md: "text-sm",
|
|
92
|
+
lg: "text-base"
|
|
93
|
+
},
|
|
94
|
+
bordered: {
|
|
95
|
+
true: "border border-border",
|
|
96
|
+
false: ""
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
defaultVariants: {
|
|
100
|
+
size: "md",
|
|
101
|
+
bordered: !0
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
), x = ee(
|
|
105
|
+
"text-left border-b border-border transition-colors",
|
|
106
|
+
{
|
|
107
|
+
variants: {
|
|
108
|
+
density: {
|
|
109
|
+
compact: "px-2 py-1",
|
|
110
|
+
normal: "px-3 py-2",
|
|
111
|
+
comfortable: "px-4 py-3"
|
|
112
|
+
},
|
|
113
|
+
pinned: {
|
|
114
|
+
left: "sticky left-0 z-10 bg-background",
|
|
115
|
+
right: "sticky right-0 z-10 bg-background",
|
|
116
|
+
none: ""
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
defaultVariants: {
|
|
120
|
+
density: "normal",
|
|
121
|
+
pinned: "none"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
), Xe = Ve((S, te) => {
|
|
125
|
+
Z(
|
|
126
|
+
"DataTable",
|
|
127
|
+
"data",
|
|
128
|
+
S.data,
|
|
129
|
+
"Pass an array (use [] while loading instead of undefined)."
|
|
130
|
+
), Z(
|
|
131
|
+
"DataTable",
|
|
132
|
+
"columns",
|
|
133
|
+
S.columns,
|
|
134
|
+
"Pass an array of DataTableColumn definitions."
|
|
135
|
+
), S.columns && S.columns.some((e) => !e.id) && Pe(
|
|
136
|
+
"DataTable",
|
|
137
|
+
"Every column needs a unique `id` (used for sort/filter/render keys)."
|
|
138
|
+
);
|
|
139
|
+
const {
|
|
140
|
+
data: u = [],
|
|
141
|
+
columns: h = [],
|
|
142
|
+
virtualized: Ye = !1,
|
|
143
|
+
rowHeight: Ze = 40,
|
|
144
|
+
height: ae,
|
|
145
|
+
selectable: d = !1,
|
|
146
|
+
selectionMode: V = "multiple",
|
|
147
|
+
selectedRows: re = [],
|
|
148
|
+
onSelectionChange: M,
|
|
149
|
+
getRowId: D = (e, n) => n.toString(),
|
|
150
|
+
sortable: q = !0,
|
|
151
|
+
sortConfig: ne = [],
|
|
152
|
+
onSortChange: I,
|
|
153
|
+
filterable: $e = !0,
|
|
154
|
+
filterConfig: se = {},
|
|
155
|
+
onFilterChange: P,
|
|
156
|
+
searchable: ie = !0,
|
|
157
|
+
searchPlaceholder: le = "Search...",
|
|
158
|
+
searchValue: ce = "",
|
|
159
|
+
onSearchChange: oe,
|
|
160
|
+
pagination: E = !0,
|
|
161
|
+
currentPage: c = 0,
|
|
162
|
+
pageSize: y = 10,
|
|
163
|
+
totalRows: F,
|
|
164
|
+
onPageChange: K,
|
|
165
|
+
onPageSizeChange: de,
|
|
166
|
+
actions: v = [],
|
|
167
|
+
bulkActions: U = [],
|
|
168
|
+
expandable: he = !1,
|
|
169
|
+
expandedRows: me = [],
|
|
170
|
+
onExpandChange: et,
|
|
171
|
+
renderExpanded: H,
|
|
172
|
+
loading: ue = !1,
|
|
173
|
+
emptyState: pe,
|
|
174
|
+
error: B,
|
|
175
|
+
exportable: ge = !1,
|
|
176
|
+
exportFormats: fe = ["csv", "json"],
|
|
177
|
+
onExport: be,
|
|
178
|
+
size: ye = "md",
|
|
179
|
+
density: N = "normal",
|
|
180
|
+
striped: ve = !1,
|
|
181
|
+
bordered: we = !0,
|
|
182
|
+
hoverable: Ne = !0,
|
|
183
|
+
className: ke,
|
|
184
|
+
style: xe
|
|
185
|
+
} = S, [k, Ce] = j(ne), [z, Se] = j(se), [W, Me] = j(ce), [m, O] = j(re), p = R(
|
|
186
|
+
() => h.filter((e) => !e.hidden),
|
|
187
|
+
[h]
|
|
188
|
+
), De = T((e) => {
|
|
189
|
+
if (!q || !h.find((i) => i.id === e)?.sortable) return;
|
|
190
|
+
const t = [...k], s = t.findIndex((i) => i.key === e);
|
|
191
|
+
s >= 0 ? t[s].direction === "asc" ? t[s].direction = "desc" : t.splice(s, 1) : t.push({ key: e, direction: "asc" }), Ce(t), I?.(t);
|
|
192
|
+
}, [q, h, k, I]);
|
|
193
|
+
T((e, n, t = "contains") => {
|
|
194
|
+
const s = { ...z };
|
|
195
|
+
if (n === "" || n == null)
|
|
196
|
+
delete s[e];
|
|
197
|
+
else {
|
|
198
|
+
const i = h.find((r) => r.id === e);
|
|
199
|
+
s[e] = {
|
|
200
|
+
type: i?.filterType || "text",
|
|
201
|
+
value: n,
|
|
202
|
+
operator: t
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
Se(s), P?.(s);
|
|
206
|
+
}, [h, z, P]);
|
|
207
|
+
const ze = T((e) => {
|
|
208
|
+
if (!d) return;
|
|
209
|
+
const n = e ? u.map((t, s) => D(t, s)) : [];
|
|
210
|
+
O(n), M?.(n);
|
|
211
|
+
}, [d, u, D, M]), We = T((e, n) => {
|
|
212
|
+
if (!d) return;
|
|
213
|
+
let t = [...m];
|
|
214
|
+
V === "single" ? t = n ? [e] : [] : n ? t.push(e) : t = t.filter((s) => s !== e), O(t), M?.(t);
|
|
215
|
+
}, [d, V, m, M]), w = R(() => {
|
|
216
|
+
let e = [...u];
|
|
217
|
+
return W && (e = e.filter((n) => p.some((t) => {
|
|
218
|
+
const s = t.accessor ? t.accessor(n) : t.accessorKey ? n[t.accessorKey] : "";
|
|
219
|
+
return String(s).toLowerCase().includes(W.toLowerCase());
|
|
220
|
+
}))), Object.entries(z).forEach(([n, t]) => {
|
|
221
|
+
const s = h.find((i) => i.id === n);
|
|
222
|
+
s && (e = e.filter((i) => {
|
|
223
|
+
const r = s.accessor ? s.accessor(i) : s.accessorKey ? i[s.accessorKey] : "";
|
|
224
|
+
switch (t.operator) {
|
|
225
|
+
case "equals":
|
|
226
|
+
return r === t.value;
|
|
227
|
+
case "contains":
|
|
228
|
+
return String(r).toLowerCase().includes(String(t.value).toLowerCase());
|
|
229
|
+
case "startsWith":
|
|
230
|
+
return String(r).toLowerCase().startsWith(String(t.value).toLowerCase());
|
|
231
|
+
case "endsWith":
|
|
232
|
+
return String(r).toLowerCase().endsWith(String(t.value).toLowerCase());
|
|
233
|
+
case "gt":
|
|
234
|
+
return Number(r) > Number(t.value);
|
|
235
|
+
case "lt":
|
|
236
|
+
return Number(r) < Number(t.value);
|
|
237
|
+
case "gte":
|
|
238
|
+
return Number(r) >= Number(t.value);
|
|
239
|
+
case "lte":
|
|
240
|
+
return Number(r) <= Number(t.value);
|
|
241
|
+
default:
|
|
242
|
+
return String(r).toLowerCase().includes(String(t.value).toLowerCase());
|
|
243
|
+
}
|
|
244
|
+
}));
|
|
245
|
+
}), k.length > 0 && e.sort((n, t) => {
|
|
246
|
+
for (const s of k) {
|
|
247
|
+
const i = h.find((Te) => Te.id === s.key);
|
|
248
|
+
if (!i) continue;
|
|
249
|
+
const r = i.accessor ? i.accessor(n) : i.accessorKey ? n[i.accessorKey] : "", g = i.accessor ? i.accessor(t) : i.accessorKey ? t[i.accessorKey] : "";
|
|
250
|
+
let f = 0;
|
|
251
|
+
if (i.sortFn)
|
|
252
|
+
f = i.sortFn(r, g);
|
|
253
|
+
else
|
|
254
|
+
switch (i.dataType) {
|
|
255
|
+
case "number":
|
|
256
|
+
f = Number(r) - Number(g);
|
|
257
|
+
break;
|
|
258
|
+
case "date":
|
|
259
|
+
f = new Date(r).getTime() - new Date(g).getTime();
|
|
260
|
+
break;
|
|
261
|
+
case "boolean":
|
|
262
|
+
f = (r ? 1 : 0) - (g ? 1 : 0);
|
|
263
|
+
break;
|
|
264
|
+
default:
|
|
265
|
+
f = String(r).localeCompare(String(g));
|
|
266
|
+
}
|
|
267
|
+
if (f !== 0)
|
|
268
|
+
return s.direction === "asc" ? f : -f;
|
|
269
|
+
}
|
|
270
|
+
return 0;
|
|
271
|
+
}), e;
|
|
272
|
+
}, [u, W, z, k, h, p]), _ = R(() => {
|
|
273
|
+
if (!E) return w;
|
|
274
|
+
const e = c * y, n = e + y;
|
|
275
|
+
return w.slice(e, n);
|
|
276
|
+
}, [w, E, c, y]), L = Math.ceil((F || w.length) / y), Le = (e) => {
|
|
277
|
+
const n = k.find((i) => i.key === e.id), t = !!n, s = n?.direction;
|
|
278
|
+
return /* @__PURE__ */ a(
|
|
279
|
+
"th",
|
|
280
|
+
{
|
|
281
|
+
className: o(
|
|
282
|
+
x({
|
|
283
|
+
density: N,
|
|
284
|
+
pinned: e.pinned || "none"
|
|
285
|
+
}),
|
|
286
|
+
"bg-muted/50 font-medium text-muted-foreground",
|
|
287
|
+
e.sortable && "cursor-pointer hover:bg-muted",
|
|
288
|
+
e.className
|
|
289
|
+
),
|
|
290
|
+
style: {
|
|
291
|
+
width: e.width,
|
|
292
|
+
minWidth: e.minWidth,
|
|
293
|
+
maxWidth: e.maxWidth
|
|
294
|
+
},
|
|
295
|
+
onClick: () => e.sortable && De(e.id),
|
|
296
|
+
children: /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
297
|
+
/* @__PURE__ */ a("span", { children: e.header }),
|
|
298
|
+
e.sortable && /* @__PURE__ */ l("div", { className: "flex flex-col", children: [
|
|
299
|
+
!t && /* @__PURE__ */ a(Oe, { className: "h-3 w-3" }),
|
|
300
|
+
t && s === "asc" && /* @__PURE__ */ a(_e, { className: "h-3 w-3" }),
|
|
301
|
+
t && s === "desc" && /* @__PURE__ */ a(Be, { className: "h-3 w-3" })
|
|
302
|
+
] }),
|
|
303
|
+
e.filterable && /* @__PURE__ */ a(
|
|
304
|
+
b,
|
|
305
|
+
{
|
|
306
|
+
variant: "ghost",
|
|
307
|
+
size: "sm",
|
|
308
|
+
className: "h-6 w-6 p-0",
|
|
309
|
+
onClick: (i) => {
|
|
310
|
+
i.stopPropagation();
|
|
311
|
+
},
|
|
312
|
+
children: /* @__PURE__ */ a(Je, { className: "h-3 w-3" })
|
|
313
|
+
}
|
|
314
|
+
)
|
|
315
|
+
] })
|
|
316
|
+
},
|
|
317
|
+
e.id
|
|
318
|
+
);
|
|
319
|
+
}, je = (e, n) => {
|
|
320
|
+
const t = D(e, n), s = m.includes(t), i = me.includes(t);
|
|
321
|
+
return /* @__PURE__ */ l(Ae.Fragment, { children: [
|
|
322
|
+
/* @__PURE__ */ l(
|
|
323
|
+
"tr",
|
|
324
|
+
{
|
|
325
|
+
className: o(
|
|
326
|
+
"transition-colors",
|
|
327
|
+
Ne && "hover:bg-muted/50",
|
|
328
|
+
ve && n % 2 === 0 && "bg-muted/20",
|
|
329
|
+
s && "bg-primary/10"
|
|
330
|
+
),
|
|
331
|
+
children: [
|
|
332
|
+
d && /* @__PURE__ */ a("td", { className: o(x({ density: N })), children: /* @__PURE__ */ a(
|
|
333
|
+
G,
|
|
334
|
+
{
|
|
335
|
+
checked: s,
|
|
336
|
+
onCheckedChange: (r) => We(t, r)
|
|
337
|
+
}
|
|
338
|
+
) }),
|
|
339
|
+
p.map((r) => {
|
|
340
|
+
const g = r.accessor ? r.accessor(e) : r.accessorKey ? e[r.accessorKey] : "";
|
|
341
|
+
return /* @__PURE__ */ a(
|
|
342
|
+
"td",
|
|
343
|
+
{
|
|
344
|
+
className: o(
|
|
345
|
+
x({
|
|
346
|
+
density: N,
|
|
347
|
+
pinned: r.pinned || "none"
|
|
348
|
+
}),
|
|
349
|
+
r.className
|
|
350
|
+
),
|
|
351
|
+
style: {
|
|
352
|
+
width: r.width,
|
|
353
|
+
minWidth: r.minWidth,
|
|
354
|
+
maxWidth: r.maxWidth
|
|
355
|
+
},
|
|
356
|
+
children: r.cell ? r.cell(g, e, n) : String(g)
|
|
357
|
+
},
|
|
358
|
+
r.id
|
|
359
|
+
);
|
|
360
|
+
}),
|
|
361
|
+
v.length > 0 && /* @__PURE__ */ a("td", { className: o(x({ density: N })), children: /* @__PURE__ */ l(J, { children: [
|
|
362
|
+
/* @__PURE__ */ a(Q, { asChild: !0, children: /* @__PURE__ */ a(b, { variant: "ghost", size: "sm", children: /* @__PURE__ */ a(He, { className: "h-4 w-4" }) }) }),
|
|
363
|
+
/* @__PURE__ */ a(X, { align: "end", children: v.filter((r) => !r.visible || r.visible(e, n)).map((r) => /* @__PURE__ */ l(
|
|
364
|
+
Y,
|
|
365
|
+
{
|
|
366
|
+
onClick: () => r.onClick(e, n),
|
|
367
|
+
className: o(
|
|
368
|
+
r.variant === "destructive" && "text-destructive"
|
|
369
|
+
),
|
|
370
|
+
children: [
|
|
371
|
+
r.icon && /* @__PURE__ */ a(r.icon, { className: "h-4 w-4 mr-2" }),
|
|
372
|
+
r.label
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
r.id
|
|
376
|
+
)) })
|
|
377
|
+
] }) })
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
),
|
|
381
|
+
he && i && H && /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: p.length + (d ? 1 : 0) + (v.length > 0 ? 1 : 0), children: H(e, n) }) })
|
|
382
|
+
] }, t);
|
|
383
|
+
};
|
|
384
|
+
return /* @__PURE__ */ l("div", { className: o("space-y-4", ke), style: xe, children: [
|
|
385
|
+
/* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-4", children: [
|
|
386
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
387
|
+
ie && /* @__PURE__ */ l("div", { className: "relative", children: [
|
|
388
|
+
/* @__PURE__ */ a(Ue, { className: "absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" }),
|
|
389
|
+
/* @__PURE__ */ a(
|
|
390
|
+
Ee,
|
|
391
|
+
{
|
|
392
|
+
placeholder: le,
|
|
393
|
+
value: W,
|
|
394
|
+
onChange: (e) => {
|
|
395
|
+
Me(e.target.value), oe?.(e.target.value);
|
|
396
|
+
},
|
|
397
|
+
className: "pl-8 w-64"
|
|
398
|
+
}
|
|
399
|
+
)
|
|
400
|
+
] }),
|
|
401
|
+
U.length > 0 && m.length > 0 && /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
402
|
+
/* @__PURE__ */ l(Fe, { variant: "secondary", children: [
|
|
403
|
+
m.length,
|
|
404
|
+
" selected"
|
|
405
|
+
] }),
|
|
406
|
+
U.map((e) => /* @__PURE__ */ l(
|
|
407
|
+
b,
|
|
408
|
+
{
|
|
409
|
+
variant: e.variant || "default",
|
|
410
|
+
size: "sm",
|
|
411
|
+
onClick: () => {
|
|
412
|
+
const n = u.filter(
|
|
413
|
+
(t, s) => m.includes(D(t, s))
|
|
414
|
+
);
|
|
415
|
+
e.onClick(n);
|
|
416
|
+
},
|
|
417
|
+
children: [
|
|
418
|
+
e.icon && /* @__PURE__ */ a(e.icon, { className: "h-4 w-4 mr-2" }),
|
|
419
|
+
e.label
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
e.id
|
|
423
|
+
))
|
|
424
|
+
] })
|
|
425
|
+
] }),
|
|
426
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
427
|
+
ge && /* @__PURE__ */ l(J, { children: [
|
|
428
|
+
/* @__PURE__ */ a(Q, { asChild: !0, children: /* @__PURE__ */ l(b, { variant: "outline", size: "sm", children: [
|
|
429
|
+
/* @__PURE__ */ a(Ge, { className: "h-4 w-4 mr-2" }),
|
|
430
|
+
"Export"
|
|
431
|
+
] }) }),
|
|
432
|
+
/* @__PURE__ */ a(X, { children: fe.map((e) => /* @__PURE__ */ l(
|
|
433
|
+
Y,
|
|
434
|
+
{
|
|
435
|
+
onClick: () => be?.(e, w),
|
|
436
|
+
children: [
|
|
437
|
+
"Export as ",
|
|
438
|
+
e.toUpperCase()
|
|
439
|
+
]
|
|
440
|
+
},
|
|
441
|
+
e
|
|
442
|
+
)) })
|
|
443
|
+
] }),
|
|
444
|
+
/* @__PURE__ */ a(b, { variant: "outline", size: "sm", onClick: () => window.location.reload(), children: /* @__PURE__ */ a($, { className: "h-4 w-4" }) })
|
|
445
|
+
] })
|
|
446
|
+
] }),
|
|
447
|
+
/* @__PURE__ */ a(
|
|
448
|
+
"div",
|
|
449
|
+
{
|
|
450
|
+
className: "border border-border rounded-lg overflow-auto",
|
|
451
|
+
style: { height: ae },
|
|
452
|
+
children: /* @__PURE__ */ l(
|
|
453
|
+
"table",
|
|
454
|
+
{
|
|
455
|
+
ref: te,
|
|
456
|
+
className: o(Qe({ size: ye, bordered: we })),
|
|
457
|
+
children: [
|
|
458
|
+
/* @__PURE__ */ a("thead", { children: /* @__PURE__ */ l("tr", { children: [
|
|
459
|
+
d && /* @__PURE__ */ a("th", { className: o(x({ density: N }), "bg-muted/50"), children: V === "multiple" && /* @__PURE__ */ a(
|
|
460
|
+
G,
|
|
461
|
+
{
|
|
462
|
+
checked: m.length === u.length && u.length > 0,
|
|
463
|
+
className: o(
|
|
464
|
+
m.length > 0 && m.length < u.length && "data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground [&>svg]:opacity-50"
|
|
465
|
+
),
|
|
466
|
+
onCheckedChange: ze
|
|
467
|
+
}
|
|
468
|
+
) }),
|
|
469
|
+
p.map(Le),
|
|
470
|
+
v.length > 0 && /* @__PURE__ */ a("th", { className: o(x({ density: N }), "bg-muted/50 w-16"), children: "Actions" })
|
|
471
|
+
] }) }),
|
|
472
|
+
/* @__PURE__ */ a("tbody", { children: ue ? /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
|
|
473
|
+
"td",
|
|
474
|
+
{
|
|
475
|
+
colSpan: p.length + (d ? 1 : 0) + (v.length > 0 ? 1 : 0),
|
|
476
|
+
className: "text-center py-8",
|
|
477
|
+
children: /* @__PURE__ */ l("div", { className: "flex items-center justify-center gap-2", children: [
|
|
478
|
+
/* @__PURE__ */ a($, { className: "h-4 w-4 animate-spin" }),
|
|
479
|
+
"Loading..."
|
|
480
|
+
] })
|
|
481
|
+
}
|
|
482
|
+
) }) : B ? /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
|
|
483
|
+
"td",
|
|
484
|
+
{
|
|
485
|
+
colSpan: p.length + (d ? 1 : 0) + (v.length > 0 ? 1 : 0),
|
|
486
|
+
className: "text-center py-8 text-destructive",
|
|
487
|
+
children: B
|
|
488
|
+
}
|
|
489
|
+
) }) : _.length === 0 ? /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
|
|
490
|
+
"td",
|
|
491
|
+
{
|
|
492
|
+
colSpan: p.length + (d ? 1 : 0) + (v.length > 0 ? 1 : 0),
|
|
493
|
+
className: "text-center py-8",
|
|
494
|
+
children: pe || /* @__PURE__ */ a("div", { className: "text-muted-foreground", children: "No data available" })
|
|
495
|
+
}
|
|
496
|
+
) }) : _.map(je) })
|
|
497
|
+
]
|
|
498
|
+
}
|
|
499
|
+
)
|
|
500
|
+
}
|
|
501
|
+
),
|
|
502
|
+
E && L > 1 && /* @__PURE__ */ l("div", { className: "flex items-center justify-between", children: [
|
|
503
|
+
/* @__PURE__ */ l("div", { className: "text-sm text-muted-foreground", children: [
|
|
504
|
+
"Showing ",
|
|
505
|
+
c * y + 1,
|
|
506
|
+
" to",
|
|
507
|
+
" ",
|
|
508
|
+
Math.min((c + 1) * y, F || w.length),
|
|
509
|
+
" of",
|
|
510
|
+
" ",
|
|
511
|
+
F || w.length,
|
|
512
|
+
" results"
|
|
513
|
+
] }),
|
|
514
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
515
|
+
/* @__PURE__ */ l(
|
|
516
|
+
Ke,
|
|
517
|
+
{
|
|
518
|
+
value: y.toString(),
|
|
519
|
+
onValueChange: (e) => de?.(Number(e)),
|
|
520
|
+
children: [
|
|
521
|
+
/* @__PURE__ */ a(Re, { className: "w-20", children: /* @__PURE__ */ a(qe, {}) }),
|
|
522
|
+
/* @__PURE__ */ l(Ie, { children: [
|
|
523
|
+
/* @__PURE__ */ a(A, { value: "10", children: "10" }),
|
|
524
|
+
/* @__PURE__ */ a(A, { value: "25", children: "25" }),
|
|
525
|
+
/* @__PURE__ */ a(A, { value: "50", children: "50" }),
|
|
526
|
+
/* @__PURE__ */ a(A, { value: "100", children: "100" })
|
|
527
|
+
] })
|
|
528
|
+
]
|
|
529
|
+
}
|
|
530
|
+
),
|
|
531
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-1", children: [
|
|
532
|
+
/* @__PURE__ */ a(
|
|
533
|
+
b,
|
|
534
|
+
{
|
|
535
|
+
variant: "outline",
|
|
536
|
+
size: "sm",
|
|
537
|
+
disabled: c === 0,
|
|
538
|
+
onClick: () => K?.(c - 1),
|
|
539
|
+
children: "Previous"
|
|
540
|
+
}
|
|
541
|
+
),
|
|
542
|
+
Array.from({ length: Math.min(5, L) }, (e, n) => {
|
|
543
|
+
const t = c < 3 ? n : c - 2 + n;
|
|
544
|
+
return t >= L ? null : /* @__PURE__ */ a(
|
|
545
|
+
b,
|
|
546
|
+
{
|
|
547
|
+
variant: t === c ? "default" : "outline",
|
|
548
|
+
size: "sm",
|
|
549
|
+
onClick: () => K?.(t),
|
|
550
|
+
children: t + 1
|
|
551
|
+
},
|
|
552
|
+
t
|
|
553
|
+
);
|
|
554
|
+
}),
|
|
555
|
+
/* @__PURE__ */ a(
|
|
556
|
+
b,
|
|
557
|
+
{
|
|
558
|
+
variant: "outline",
|
|
559
|
+
size: "sm",
|
|
560
|
+
disabled: c === L - 1,
|
|
561
|
+
onClick: () => K?.(c + 1),
|
|
562
|
+
children: "Next"
|
|
563
|
+
}
|
|
564
|
+
)
|
|
565
|
+
] })
|
|
566
|
+
] })
|
|
567
|
+
] })
|
|
568
|
+
] });
|
|
569
|
+
});
|
|
570
|
+
Xe.displayName = "DataTable";
|
|
571
|
+
export {
|
|
572
|
+
Xe as DataTable
|
|
573
|
+
};
|
|
574
|
+
//# sourceMappingURL=data-table.js.map
|