@tomo-inc/tomo-ui 0.0.11 → 0.0.13
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/README.md +217 -0
- package/dist/index.cjs +1069 -0
- package/dist/index.js +976 -0
- package/dist/tailwind/plugin.cjs +67 -0
- package/dist/tailwind/plugin.js +42 -0
- package/dist/theme/animations/index.d.mts +105 -0
- package/dist/theme/animations/index.d.ts +105 -0
- package/dist/theme/animations/index.js +133 -0
- package/dist/theme/animations/index.mjs +6 -0
- package/dist/theme/chunk-3HDE5SVQ.mjs +241 -0
- package/dist/theme/chunk-3K3T5W6T.mjs +210 -0
- package/dist/theme/chunk-3LKKH4AR.mjs +17 -0
- package/dist/theme/chunk-5UIRR2JQ.mjs +31 -0
- package/dist/theme/chunk-63DOJZ5V.mjs +108 -0
- package/dist/theme/chunk-6JJPIEK7.mjs +28 -0
- package/dist/theme/chunk-6N2H53XF.mjs +42 -0
- package/dist/theme/chunk-6PXDSEN7.mjs +418 -0
- package/dist/theme/chunk-7ZMFUXZH.mjs +229 -0
- package/dist/theme/chunk-A2K7D7MR.mjs +446 -0
- package/dist/theme/chunk-BSQAJJ3Q.mjs +164 -0
- package/dist/theme/chunk-CAM646RT.mjs +491 -0
- package/dist/theme/chunk-CR75Q2EZ.mjs +218 -0
- package/dist/theme/chunk-CT4RPJWF.mjs +17 -0
- package/dist/theme/chunk-CWYZ2GEH.mjs +0 -0
- package/dist/theme/chunk-D2DWF4OD.mjs +195 -0
- package/dist/theme/chunk-D2FF7S3A.mjs +188 -0
- package/dist/theme/chunk-D2XMP2NC.mjs +6 -0
- package/dist/theme/chunk-DCEG5LGX.mjs +17 -0
- package/dist/theme/chunk-DJLZADVO.mjs +33 -0
- package/dist/theme/chunk-DOGZ47O4.mjs +15 -0
- package/dist/theme/chunk-DWPAOIB3.mjs +341 -0
- package/dist/theme/chunk-FCBE5KQW.mjs +388 -0
- package/dist/theme/chunk-FNXKWQV3.mjs +247 -0
- package/dist/theme/chunk-G4RCK475.mjs +155 -0
- package/dist/theme/chunk-GCJZQJCJ.mjs +426 -0
- package/dist/theme/chunk-GHZ36ATJ.mjs +17 -0
- package/dist/theme/chunk-GQT3YUX3.mjs +77 -0
- package/dist/theme/chunk-GSRZWDGA.mjs +62 -0
- package/dist/theme/chunk-HN25UZIQ.mjs +372 -0
- package/dist/theme/chunk-HSSYMEQU.mjs +178 -0
- package/dist/theme/chunk-HUBDRSA4.mjs +49 -0
- package/dist/theme/chunk-IAS3SFA4.mjs +42 -0
- package/dist/theme/chunk-JGY6VQQQ.mjs +87 -0
- package/dist/theme/chunk-JUEOCLA3.mjs +17 -0
- package/dist/theme/chunk-KGFOLKLU.mjs +157 -0
- package/dist/theme/chunk-KUNVFLXJ.mjs +41 -0
- package/dist/theme/chunk-KUROSFJE.mjs +12 -0
- package/dist/theme/chunk-KXPLHLA6.mjs +109 -0
- package/dist/theme/chunk-L2OL7R23.mjs +17 -0
- package/dist/theme/chunk-M63AFAHO.mjs +0 -0
- package/dist/theme/chunk-MPVWW3DX.mjs +30 -0
- package/dist/theme/chunk-NY7ORCUI.mjs +36 -0
- package/dist/theme/chunk-O5X46N53.mjs +21 -0
- package/dist/theme/chunk-OA5N2ZUW.mjs +385 -0
- package/dist/theme/chunk-OR5PUD24.mjs +17 -0
- package/dist/theme/chunk-OZTMQS2F.mjs +496 -0
- package/dist/theme/chunk-PI7LN7ID.mjs +449 -0
- package/dist/theme/chunk-PLHTHAXH.mjs +63 -0
- package/dist/theme/chunk-POSTVCTR.mjs +18 -0
- package/dist/theme/chunk-QPMYACSN.mjs +140 -0
- package/dist/theme/chunk-QZTWGJ72.mjs +16 -0
- package/dist/theme/chunk-R2M62V4J.mjs +417 -0
- package/dist/theme/chunk-RUIUXVZ4.mjs +26 -0
- package/dist/theme/chunk-S4SSZHUU.mjs +60 -0
- package/dist/theme/chunk-SBOMX3YT.mjs +21 -0
- package/dist/theme/chunk-SCJBZBCG.mjs +308 -0
- package/dist/theme/chunk-SJ6TR3DD.mjs +0 -0
- package/dist/theme/chunk-SJT6KBYE.mjs +62 -0
- package/dist/theme/chunk-SZIFQ3NN.mjs +288 -0
- package/dist/theme/chunk-T3GWIVAM.mjs +17 -0
- package/dist/theme/chunk-TFDLNKJZ.mjs +891 -0
- package/dist/theme/chunk-TX3FPB7D.mjs +28 -0
- package/dist/theme/chunk-UFVD3L5A.mjs +33 -0
- package/dist/theme/chunk-UQQ5KWB7.mjs +844 -0
- package/dist/theme/chunk-US4SNHVL.mjs +12 -0
- package/dist/theme/chunk-USYXK6WO.mjs +852 -0
- package/dist/theme/chunk-WBQAMGXK.mjs +0 -0
- package/dist/theme/chunk-WH6SPIFG.mjs +30 -0
- package/dist/theme/chunk-WQEDQHKX.mjs +0 -0
- package/dist/theme/chunk-WY2VNUPE.mjs +98 -0
- package/dist/theme/chunk-XRG7KRVS.mjs +310 -0
- package/dist/theme/chunk-YJLQTC7L.mjs +0 -0
- package/dist/theme/chunk-YOGOMZU6.mjs +465 -0
- package/dist/theme/chunk-YZFP7WEH.mjs +193 -0
- package/dist/theme/chunk-YZXRWBZX.mjs +24 -0
- package/dist/theme/chunk-YZYGFPNK.mjs +17 -0
- package/dist/theme/chunk-ZQGNWTBN.mjs +450 -0
- package/dist/theme/colors/blue.d.mts +14 -0
- package/dist/theme/colors/blue.d.ts +14 -0
- package/dist/theme/colors/blue.js +41 -0
- package/dist/theme/colors/blue.mjs +6 -0
- package/dist/theme/colors/common.d.mts +103 -0
- package/dist/theme/colors/common.d.ts +103 -0
- package/dist/theme/colors/common.js +155 -0
- package/dist/theme/colors/common.mjs +14 -0
- package/dist/theme/colors/cyan.d.mts +14 -0
- package/dist/theme/colors/cyan.d.ts +14 -0
- package/dist/theme/colors/cyan.js +41 -0
- package/dist/theme/colors/cyan.mjs +6 -0
- package/dist/theme/colors/green.d.mts +14 -0
- package/dist/theme/colors/green.d.ts +14 -0
- package/dist/theme/colors/green.js +41 -0
- package/dist/theme/colors/green.mjs +6 -0
- package/dist/theme/colors/index.d.mts +109 -0
- package/dist/theme/colors/index.d.ts +109 -0
- package/dist/theme/colors/index.js +339 -0
- package/dist/theme/colors/index.mjs +24 -0
- package/dist/theme/colors/pink.d.mts +14 -0
- package/dist/theme/colors/pink.d.ts +14 -0
- package/dist/theme/colors/pink.js +41 -0
- package/dist/theme/colors/pink.mjs +6 -0
- package/dist/theme/colors/purple.d.mts +14 -0
- package/dist/theme/colors/purple.d.ts +14 -0
- package/dist/theme/colors/purple.js +41 -0
- package/dist/theme/colors/purple.mjs +6 -0
- package/dist/theme/colors/red.d.mts +14 -0
- package/dist/theme/colors/red.d.ts +14 -0
- package/dist/theme/colors/red.js +41 -0
- package/dist/theme/colors/red.mjs +6 -0
- package/dist/theme/colors/semantic.d.mts +10 -0
- package/dist/theme/colors/semantic.d.ts +10 -0
- package/dist/theme/colors/semantic.js +331 -0
- package/dist/theme/colors/semantic.mjs +20 -0
- package/dist/theme/colors/types.d.mts +39 -0
- package/dist/theme/colors/types.d.ts +39 -0
- package/dist/theme/colors/types.js +18 -0
- package/dist/theme/colors/types.mjs +1 -0
- package/dist/theme/colors/yellow.d.mts +14 -0
- package/dist/theme/colors/yellow.d.ts +14 -0
- package/dist/theme/colors/yellow.js +41 -0
- package/dist/theme/colors/yellow.mjs +6 -0
- package/dist/theme/colors/zinc.d.mts +14 -0
- package/dist/theme/colors/zinc.d.ts +14 -0
- package/dist/theme/colors/zinc.js +41 -0
- package/dist/theme/colors/zinc.mjs +6 -0
- package/dist/theme/colors.d.mts +4 -0
- package/dist/theme/colors.d.ts +4 -0
- package/dist/theme/colors.js +339 -0
- package/dist/theme/colors.mjs +25 -0
- package/dist/theme/components/accordion.d.mts +228 -0
- package/dist/theme/components/accordion.d.ts +228 -0
- package/dist/theme/components/accordion.js +334 -0
- package/dist/theme/components/accordion.mjs +21 -0
- package/dist/theme/components/alert.d.mts +211 -0
- package/dist/theme/components/alert.d.ts +211 -0
- package/dist/theme/components/alert.js +641 -0
- package/dist/theme/components/alert.mjs +19 -0
- package/dist/theme/components/autocomplete.d.mts +95 -0
- package/dist/theme/components/autocomplete.d.ts +95 -0
- package/dist/theme/components/autocomplete.js +292 -0
- package/dist/theme/components/autocomplete.mjs +14 -0
- package/dist/theme/components/avatar.d.mts +300 -0
- package/dist/theme/components/avatar.d.ts +300 -0
- package/dist/theme/components/avatar.js +508 -0
- package/dist/theme/components/avatar.mjs +21 -0
- package/dist/theme/components/badge.d.mts +223 -0
- package/dist/theme/components/badge.d.ts +223 -0
- package/dist/theme/components/badge.js +688 -0
- package/dist/theme/components/badge.mjs +19 -0
- package/dist/theme/components/breadcrumbs.d.mts +379 -0
- package/dist/theme/components/breadcrumbs.d.ts +379 -0
- package/dist/theme/components/breadcrumbs.js +481 -0
- package/dist/theme/components/breadcrumbs.mjs +21 -0
- package/dist/theme/components/button.d.mts +188 -0
- package/dist/theme/components/button.d.ts +188 -0
- package/dist/theme/components/button.js +766 -0
- package/dist/theme/components/button.mjs +21 -0
- package/dist/theme/components/calendar.d.mts +279 -0
- package/dist/theme/components/calendar.d.ts +279 -0
- package/dist/theme/components/calendar.js +679 -0
- package/dist/theme/components/calendar.mjs +19 -0
- package/dist/theme/components/card.d.mts +257 -0
- package/dist/theme/components/card.d.ts +257 -0
- package/dist/theme/components/card.js +392 -0
- package/dist/theme/components/card.mjs +19 -0
- package/dist/theme/components/checkbox.d.mts +375 -0
- package/dist/theme/components/checkbox.d.ts +375 -0
- package/dist/theme/components/checkbox.js +478 -0
- package/dist/theme/components/checkbox.mjs +21 -0
- package/dist/theme/components/chip.d.mts +340 -0
- package/dist/theme/components/chip.d.ts +340 -0
- package/dist/theme/components/chip.js +802 -0
- package/dist/theme/components/chip.mjs +19 -0
- package/dist/theme/components/code.d.mts +80 -0
- package/dist/theme/components/code.d.ts +80 -0
- package/dist/theme/components/code.js +342 -0
- package/dist/theme/components/code.mjs +19 -0
- package/dist/theme/components/date-input.d.mts +377 -0
- package/dist/theme/components/date-input.d.ts +377 -0
- package/dist/theme/components/date-input.js +694 -0
- package/dist/theme/components/date-input.mjs +14 -0
- package/dist/theme/components/date-picker.d.mts +220 -0
- package/dist/theme/components/date-picker.d.ts +220 -0
- package/dist/theme/components/date-picker.js +261 -0
- package/dist/theme/components/date-picker.mjs +16 -0
- package/dist/theme/components/divider.d.mts +31 -0
- package/dist/theme/components/divider.d.ts +31 -0
- package/dist/theme/components/divider.js +250 -0
- package/dist/theme/components/divider.mjs +14 -0
- package/dist/theme/components/drawer.d.mts +169 -0
- package/dist/theme/components/drawer.d.ts +169 -0
- package/dist/theme/components/drawer.js +291 -0
- package/dist/theme/components/drawer.mjs +14 -0
- package/dist/theme/components/drip.d.mts +13 -0
- package/dist/theme/components/drip.d.ts +13 -0
- package/dist/theme/components/drip.js +241 -0
- package/dist/theme/components/drip.mjs +14 -0
- package/dist/theme/components/dropdown.d.mts +247 -0
- package/dist/theme/components/dropdown.d.ts +247 -0
- package/dist/theme/components/dropdown.js +610 -0
- package/dist/theme/components/dropdown.mjs +25 -0
- package/dist/theme/components/form.d.mts +19 -0
- package/dist/theme/components/form.d.ts +19 -0
- package/dist/theme/components/form.js +241 -0
- package/dist/theme/components/form.mjs +14 -0
- package/dist/theme/components/image.d.mts +174 -0
- package/dist/theme/components/image.d.ts +174 -0
- package/dist/theme/components/image.js +369 -0
- package/dist/theme/components/image.mjs +14 -0
- package/dist/theme/components/index.d.mts +46 -0
- package/dist/theme/components/index.d.ts +46 -0
- package/dist/theme/components/index.js +11850 -0
- package/dist/theme/components/index.mjs +226 -0
- package/dist/theme/components/input-otp.d.mts +282 -0
- package/dist/theme/components/input-otp.d.ts +282 -0
- package/dist/theme/components/input-otp.js +684 -0
- package/dist/theme/components/input-otp.mjs +19 -0
- package/dist/theme/components/input.d.mts +458 -0
- package/dist/theme/components/input.d.ts +458 -0
- package/dist/theme/components/input.js +1133 -0
- package/dist/theme/components/input.mjs +19 -0
- package/dist/theme/components/kbd.d.mts +50 -0
- package/dist/theme/components/kbd.d.ts +50 -0
- package/dist/theme/components/kbd.js +262 -0
- package/dist/theme/components/kbd.mjs +14 -0
- package/dist/theme/components/link.d.mts +107 -0
- package/dist/theme/components/link.d.ts +107 -0
- package/dist/theme/components/link.js +344 -0
- package/dist/theme/components/link.mjs +21 -0
- package/dist/theme/components/listbox.d.mts +3 -0
- package/dist/theme/components/listbox.d.ts +3 -0
- package/dist/theme/components/listbox.js +728 -0
- package/dist/theme/components/listbox.mjs +24 -0
- package/dist/theme/components/menu.d.mts +324 -0
- package/dist/theme/components/menu.d.ts +324 -0
- package/dist/theme/components/menu.js +728 -0
- package/dist/theme/components/menu.mjs +23 -0
- package/dist/theme/components/modal.d.mts +380 -0
- package/dist/theme/components/modal.d.ts +380 -0
- package/dist/theme/components/modal.js +428 -0
- package/dist/theme/components/modal.mjs +19 -0
- package/dist/theme/components/navbar.d.mts +246 -0
- package/dist/theme/components/navbar.d.ts +246 -0
- package/dist/theme/components/navbar.js +445 -0
- package/dist/theme/components/navbar.mjs +19 -0
- package/dist/theme/components/number-input.d.mts +461 -0
- package/dist/theme/components/number-input.d.ts +461 -0
- package/dist/theme/components/number-input.js +1094 -0
- package/dist/theme/components/number-input.mjs +19 -0
- package/dist/theme/components/pagination.d.mts +282 -0
- package/dist/theme/components/pagination.d.ts +282 -0
- package/dist/theme/components/pagination.js +732 -0
- package/dist/theme/components/pagination.mjs +19 -0
- package/dist/theme/components/popover.d.mts +339 -0
- package/dist/theme/components/popover.d.ts +339 -0
- package/dist/theme/components/popover.js +494 -0
- package/dist/theme/components/popover.mjs +19 -0
- package/dist/theme/components/progress.d.mts +498 -0
- package/dist/theme/components/progress.d.ts +498 -0
- package/dist/theme/components/progress.js +471 -0
- package/dist/theme/components/progress.mjs +16 -0
- package/dist/theme/components/radio.d.mts +354 -0
- package/dist/theme/components/radio.d.ts +354 -0
- package/dist/theme/components/radio.js +424 -0
- package/dist/theme/components/radio.mjs +21 -0
- package/dist/theme/components/scroll-shadow.d.mts +45 -0
- package/dist/theme/components/scroll-shadow.d.ts +45 -0
- package/dist/theme/components/scroll-shadow.js +265 -0
- package/dist/theme/components/scroll-shadow.mjs +14 -0
- package/dist/theme/components/select.d.mts +515 -0
- package/dist/theme/components/select.d.ts +515 -0
- package/dist/theme/components/select.js +1077 -0
- package/dist/theme/components/select.mjs +19 -0
- package/dist/theme/components/skeleton.d.mts +60 -0
- package/dist/theme/components/skeleton.d.ts +60 -0
- package/dist/theme/components/skeleton.js +289 -0
- package/dist/theme/components/skeleton.mjs +14 -0
- package/dist/theme/components/slider.d.mts +482 -0
- package/dist/theme/components/slider.d.ts +482 -0
- package/dist/theme/components/slider.js +618 -0
- package/dist/theme/components/slider.mjs +19 -0
- package/dist/theme/components/snippet.d.mts +206 -0
- package/dist/theme/components/snippet.d.ts +206 -0
- package/dist/theme/components/snippet.js +610 -0
- package/dist/theme/components/snippet.mjs +19 -0
- package/dist/theme/components/spacer.d.mts +31 -0
- package/dist/theme/components/spacer.d.ts +31 -0
- package/dist/theme/components/spacer.js +250 -0
- package/dist/theme/components/spacer.mjs +14 -0
- package/dist/theme/components/spinner.d.mts +398 -0
- package/dist/theme/components/spinner.d.ts +398 -0
- package/dist/theme/components/spinner.js +537 -0
- package/dist/theme/components/spinner.mjs +14 -0
- package/dist/theme/components/table.d.mts +428 -0
- package/dist/theme/components/table.d.ts +428 -0
- package/dist/theme/components/table.js +521 -0
- package/dist/theme/components/table.mjs +19 -0
- package/dist/theme/components/tabs.d.mts +359 -0
- package/dist/theme/components/tabs.d.ts +359 -0
- package/dist/theme/components/tabs.js +724 -0
- package/dist/theme/components/tabs.mjs +19 -0
- package/dist/theme/components/toast.d.mts +329 -0
- package/dist/theme/components/toast.d.ts +329 -0
- package/dist/theme/components/toast.js +718 -0
- package/dist/theme/components/toast.mjs +21 -0
- package/dist/theme/components/toggle.d.mts +243 -0
- package/dist/theme/components/toggle.d.ts +243 -0
- package/dist/theme/components/toggle.js +437 -0
- package/dist/theme/components/toggle.mjs +19 -0
- package/dist/theme/components/user.d.mts +63 -0
- package/dist/theme/components/user.d.ts +63 -0
- package/dist/theme/components/user.js +259 -0
- package/dist/theme/components/user.mjs +19 -0
- package/dist/theme/default-layout.d.mts +8 -0
- package/dist/theme/default-layout.d.ts +8 -0
- package/dist/theme/default-layout.js +75 -0
- package/dist/theme/default-layout.mjs +10 -0
- package/dist/theme/index.d.mts +62 -0
- package/dist/theme/index.d.ts +62 -0
- package/dist/theme/index.js +12601 -0
- package/dist/theme/index.mjs +300 -0
- package/dist/theme/plugin.d.mts +12 -0
- package/dist/theme/plugin.d.ts +12 -0
- package/dist/theme/plugin.js +866 -0
- package/dist/theme/plugin.mjs +30 -0
- package/dist/theme/types.d.mts +138 -0
- package/dist/theme/types.d.ts +138 -0
- package/dist/theme/types.js +18 -0
- package/dist/theme/types.mjs +1 -0
- package/dist/theme/utilities/animation.d.mts +15 -0
- package/dist/theme/utilities/animation.d.ts +15 -0
- package/dist/theme/utilities/animation.js +38 -0
- package/dist/theme/utilities/animation.mjs +6 -0
- package/dist/theme/utilities/custom.d.mts +27 -0
- package/dist/theme/utilities/custom.d.ts +27 -0
- package/dist/theme/utilities/custom.js +50 -0
- package/dist/theme/utilities/custom.mjs +6 -0
- package/dist/theme/utilities/index.d.mts +114 -0
- package/dist/theme/utilities/index.d.ts +114 -0
- package/dist/theme/utilities/index.js +188 -0
- package/dist/theme/utilities/index.mjs +11 -0
- package/dist/theme/utilities/scrollbar-hide.d.mts +24 -0
- package/dist/theme/utilities/scrollbar-hide.d.ts +24 -0
- package/dist/theme/utilities/scrollbar-hide.js +50 -0
- package/dist/theme/utilities/scrollbar-hide.mjs +6 -0
- package/dist/theme/utilities/text.d.mts +23 -0
- package/dist/theme/utilities/text.d.ts +23 -0
- package/dist/theme/utilities/text.js +46 -0
- package/dist/theme/utilities/text.mjs +6 -0
- package/dist/theme/utilities/transition.d.mts +58 -0
- package/dist/theme/utilities/transition.d.ts +58 -0
- package/dist/theme/utilities/transition.js +86 -0
- package/dist/theme/utilities/transition.mjs +8 -0
- package/dist/theme/utils/classes.d.mts +35 -0
- package/dist/theme/utils/classes.d.ts +35 -0
- package/dist/theme/utils/classes.js +119 -0
- package/dist/theme/utils/classes.mjs +22 -0
- package/dist/theme/utils/cn.d.mts +5 -0
- package/dist/theme/utils/cn.d.ts +5 -0
- package/dist/theme/utils/cn.js +231 -0
- package/dist/theme/utils/cn.mjs +13 -0
- package/dist/theme/utils/index.d.mts +8 -0
- package/dist/theme/utils/index.d.ts +8 -0
- package/dist/theme/utils/index.js +421 -0
- package/dist/theme/utils/index.mjs +47 -0
- package/dist/theme/utils/merge-classes.d.mts +12 -0
- package/dist/theme/utils/merge-classes.d.ts +12 -0
- package/dist/theme/utils/merge-classes.js +41 -0
- package/dist/theme/utils/merge-classes.mjs +6 -0
- package/dist/theme/utils/object.d.mts +12 -0
- package/dist/theme/utils/object.d.ts +12 -0
- package/dist/theme/utils/object.js +77 -0
- package/dist/theme/utils/object.mjs +10 -0
- package/dist/theme/utils/theme.d.mts +9 -0
- package/dist/theme/utils/theme.d.ts +9 -0
- package/dist/theme/utils/theme.js +30 -0
- package/dist/theme/utils/theme.mjs +6 -0
- package/dist/theme/utils/tv.d.mts +5 -0
- package/dist/theme/utils/tv.d.ts +5 -0
- package/dist/theme/utils/tv.js +234 -0
- package/dist/theme/utils/tv.mjs +13 -0
- package/dist/theme/utils/tw-merge-config.d.mts +25 -0
- package/dist/theme/utils/tw-merge-config.d.ts +25 -0
- package/dist/theme/utils/tw-merge-config.js +215 -0
- package/dist/theme/utils/tw-merge-config.mjs +14 -0
- package/dist/theme/utils/types.d.mts +10 -0
- package/dist/theme/utils/types.d.ts +10 -0
- package/dist/theme/utils/types.js +18 -0
- package/dist/theme/utils/types.mjs +0 -0
- package/dist/theme/utils/variants.d.mts +67 -0
- package/dist/theme/utils/variants.d.ts +67 -0
- package/dist/theme/utils/variants.js +101 -0
- package/dist/theme/utils/variants.mjs +6 -0
- package/package.json +22 -8
- package/project.json +15 -8
- package/scripts/copy-heroui-theme.mjs +26 -0
- package/src/components/formatted-number/type.ts +7 -5
- package/src/components/mfaTypeChoose/index.tsx +2 -1
- package/src/index.ts +3 -1
- package/src/tailwind/plugin.ts +2 -188
- package/src/theme-context.tsx +6 -1
- package/src/theme-provider.tsx +1 -1
- package/src/types.ts +1 -0
- package/tsup.config.ts +16 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colorVariants
|
|
3
|
+
} from "./chunk-GQT3YUX3.mjs";
|
|
4
|
+
import {
|
|
5
|
+
tv
|
|
6
|
+
} from "./chunk-TX3FPB7D.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/alert.ts
|
|
9
|
+
var alert = tv({
|
|
10
|
+
slots: {
|
|
11
|
+
base: "flex flex-grow flex-row w-full items-center py-3 px-4 gap-x-1",
|
|
12
|
+
mainWrapper: "h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit justify-center",
|
|
13
|
+
title: "text-small w-full font-medium block text-inherit leading-5",
|
|
14
|
+
description: "pl-[1px] text-small font-normal text-inherit",
|
|
15
|
+
closeButton: "relative text-inherit translate-x-1 -translate-y-1",
|
|
16
|
+
iconWrapper: "flex-none relative w-9 h-9 rounded-full grid place-items-center",
|
|
17
|
+
alertIcon: "fill-current w-6 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"
|
|
18
|
+
},
|
|
19
|
+
variants: {
|
|
20
|
+
color: {
|
|
21
|
+
default: {},
|
|
22
|
+
primary: {},
|
|
23
|
+
secondary: {},
|
|
24
|
+
success: {},
|
|
25
|
+
warning: {},
|
|
26
|
+
danger: {}
|
|
27
|
+
},
|
|
28
|
+
variant: {
|
|
29
|
+
solid: {},
|
|
30
|
+
flat: {},
|
|
31
|
+
faded: {
|
|
32
|
+
base: "border-small"
|
|
33
|
+
},
|
|
34
|
+
bordered: {
|
|
35
|
+
base: "border-small bg-transparent"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
radius: {
|
|
39
|
+
none: {
|
|
40
|
+
base: "rounded-none"
|
|
41
|
+
},
|
|
42
|
+
sm: {
|
|
43
|
+
base: "rounded-small"
|
|
44
|
+
},
|
|
45
|
+
md: {
|
|
46
|
+
base: "rounded-medium"
|
|
47
|
+
},
|
|
48
|
+
lg: {
|
|
49
|
+
base: "rounded-large"
|
|
50
|
+
},
|
|
51
|
+
full: {
|
|
52
|
+
base: "rounded-full"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
hideIcon: {
|
|
56
|
+
true: {
|
|
57
|
+
iconWrapper: "hidden"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
hideIconWrapper: {
|
|
61
|
+
true: {
|
|
62
|
+
base: "gap-x-0",
|
|
63
|
+
iconWrapper: "!bg-transparent !shadow-none !border-none"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
hasContent: {
|
|
67
|
+
false: {
|
|
68
|
+
base: "items-center",
|
|
69
|
+
mainWrapper: "justify-center items-center"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
defaultVariants: {
|
|
74
|
+
color: "default",
|
|
75
|
+
variant: "flat",
|
|
76
|
+
radius: "md",
|
|
77
|
+
hideIcon: false,
|
|
78
|
+
hideIconWrapper: false
|
|
79
|
+
},
|
|
80
|
+
compoundVariants: [
|
|
81
|
+
// solid / color
|
|
82
|
+
{
|
|
83
|
+
variant: "solid",
|
|
84
|
+
color: "default",
|
|
85
|
+
class: {
|
|
86
|
+
base: colorVariants.solid.default,
|
|
87
|
+
closeButton: "data-[hover]:bg-default-100",
|
|
88
|
+
alertIcon: "text-default-foreground"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
variant: "solid",
|
|
93
|
+
color: "primary",
|
|
94
|
+
class: {
|
|
95
|
+
base: colorVariants.solid.primary
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
variant: "solid",
|
|
100
|
+
color: "secondary",
|
|
101
|
+
class: {
|
|
102
|
+
base: colorVariants.solid.secondary
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
variant: "solid",
|
|
107
|
+
color: "success",
|
|
108
|
+
class: {
|
|
109
|
+
base: colorVariants.solid.success
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
variant: "solid",
|
|
114
|
+
color: "warning",
|
|
115
|
+
class: {
|
|
116
|
+
base: colorVariants.solid.warning
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
variant: "solid",
|
|
121
|
+
color: "danger",
|
|
122
|
+
class: {
|
|
123
|
+
base: colorVariants.solid.danger
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
// flat & faded / color
|
|
127
|
+
{
|
|
128
|
+
variant: ["flat", "faded"],
|
|
129
|
+
color: "default",
|
|
130
|
+
class: {
|
|
131
|
+
base: [
|
|
132
|
+
colorVariants.flat.default,
|
|
133
|
+
"bg-default-100 dark:bg-default-50/50",
|
|
134
|
+
"text-default-foreground"
|
|
135
|
+
],
|
|
136
|
+
description: "text-default-600",
|
|
137
|
+
closeButton: "text-default-400",
|
|
138
|
+
iconWrapper: "bg-default-50 dark:bg-default-100 border-default-200"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
variant: ["flat", "faded"],
|
|
143
|
+
color: "primary",
|
|
144
|
+
class: {
|
|
145
|
+
base: [colorVariants.flat.primary, "bg-primary-50 dark:bg-primary-50/50"],
|
|
146
|
+
closeButton: "text-primary-500 data-[hover]:bg-primary-200",
|
|
147
|
+
iconWrapper: "bg-primary-50 dark:bg-primary-100 border-primary-100"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
variant: ["flat", "faded"],
|
|
152
|
+
color: "secondary",
|
|
153
|
+
class: {
|
|
154
|
+
base: [colorVariants.flat.secondary, "bg-secondary-50 dark:bg-secondary-50/50"],
|
|
155
|
+
closeButton: "text-secondary-500 data-[hover]:bg-secondary-200",
|
|
156
|
+
iconWrapper: "bg-secondary-50 dark:bg-secondary-100 border-secondary-100"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
variant: ["flat", "faded"],
|
|
161
|
+
color: "success",
|
|
162
|
+
class: {
|
|
163
|
+
base: [colorVariants.flat.success, "bg-success-50 dark:bg-success-50/50"],
|
|
164
|
+
closeButton: "text-success-500 data-[hover]:bg-success-200",
|
|
165
|
+
iconWrapper: "bg-success-50 dark:bg-success-100 border-success-100"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
variant: ["flat", "faded"],
|
|
170
|
+
color: "warning",
|
|
171
|
+
class: {
|
|
172
|
+
base: [colorVariants.flat.warning, "bg-warning-50 dark:bg-warning-50/50"],
|
|
173
|
+
closeButton: "text-warning-500 data-[hover]:bg-warning-200",
|
|
174
|
+
iconWrapper: "bg-warning-50 dark:bg-warning-100 border-warning-100"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
variant: ["flat", "faded"],
|
|
179
|
+
color: "danger",
|
|
180
|
+
class: {
|
|
181
|
+
base: [colorVariants.flat.danger, "bg-danger-50 dark:bg-danger-50/50"],
|
|
182
|
+
closeButton: "text-danger-500 data-[hover]:bg-danger-200",
|
|
183
|
+
iconWrapper: "bg-danger-50 dark:bg-danger-100 border-danger-100"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
// faded / color
|
|
187
|
+
{
|
|
188
|
+
variant: "faded",
|
|
189
|
+
color: "default",
|
|
190
|
+
class: {
|
|
191
|
+
base: "border-default-300 dark:border-default-200"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
variant: "faded",
|
|
196
|
+
color: "primary",
|
|
197
|
+
class: {
|
|
198
|
+
base: "border-primary-200 dark:border-primary-100"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
variant: "faded",
|
|
203
|
+
color: "secondary",
|
|
204
|
+
class: {
|
|
205
|
+
base: "border-secondary-200"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
variant: "faded",
|
|
210
|
+
color: "success",
|
|
211
|
+
class: {
|
|
212
|
+
base: "border-success-300 dark:border-success-100"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
variant: "faded",
|
|
217
|
+
color: "warning",
|
|
218
|
+
class: {
|
|
219
|
+
base: "border-warning-300 dark:border-warning-100"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
variant: "faded",
|
|
224
|
+
color: "danger",
|
|
225
|
+
class: {
|
|
226
|
+
base: "border-danger-200 dark:border-danger-100"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
// bordered / color
|
|
230
|
+
{
|
|
231
|
+
variant: "bordered",
|
|
232
|
+
color: "default",
|
|
233
|
+
class: {
|
|
234
|
+
base: [colorVariants.bordered.default],
|
|
235
|
+
description: "text-default-600",
|
|
236
|
+
closeButton: "text-default-400"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
variant: "bordered",
|
|
241
|
+
color: "primary",
|
|
242
|
+
class: {
|
|
243
|
+
base: [colorVariants.bordered.primary],
|
|
244
|
+
closeButton: "data-[hover]:bg-primary-50"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
variant: "bordered",
|
|
249
|
+
color: "secondary",
|
|
250
|
+
class: {
|
|
251
|
+
base: [colorVariants.bordered.secondary],
|
|
252
|
+
closeButton: "data-[hover]:bg-secondary-50"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
variant: "bordered",
|
|
257
|
+
color: "success",
|
|
258
|
+
class: {
|
|
259
|
+
base: [colorVariants.bordered.success],
|
|
260
|
+
closeButton: "data-[hover]:bg-success-50"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
variant: "bordered",
|
|
265
|
+
color: "warning",
|
|
266
|
+
class: {
|
|
267
|
+
base: [colorVariants.bordered.warning],
|
|
268
|
+
closeButton: "data-[hover]:bg-warning-100"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
variant: "bordered",
|
|
273
|
+
color: "danger",
|
|
274
|
+
class: {
|
|
275
|
+
base: [colorVariants.bordered.danger],
|
|
276
|
+
closeButton: "data-[hover]:bg-danger-50"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
// flat & bordered & faded
|
|
280
|
+
{
|
|
281
|
+
variant: ["flat", "bordered", "faded"],
|
|
282
|
+
class: {
|
|
283
|
+
iconWrapper: "shadow-small"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
// flat & faded
|
|
287
|
+
{
|
|
288
|
+
variant: ["flat", "faded"],
|
|
289
|
+
class: {
|
|
290
|
+
iconWrapper: "shadow-small border-1"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
// bordered & color
|
|
294
|
+
{
|
|
295
|
+
variant: "bordered",
|
|
296
|
+
color: "default",
|
|
297
|
+
class: {
|
|
298
|
+
iconWrapper: "bg-default-200 dark:bg-default-100"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
variant: "bordered",
|
|
303
|
+
color: "primary",
|
|
304
|
+
class: {
|
|
305
|
+
iconWrapper: "bg-primary-100 dark:bg-primary-50"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
variant: "bordered",
|
|
310
|
+
color: "secondary",
|
|
311
|
+
class: {
|
|
312
|
+
iconWrapper: "bg-secondary-100 dark:bg-secondary-50"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
variant: "bordered",
|
|
317
|
+
color: "success",
|
|
318
|
+
class: {
|
|
319
|
+
iconWrapper: "bg-success-100 dark:bg-success-50"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
variant: "bordered",
|
|
324
|
+
color: "warning",
|
|
325
|
+
class: {
|
|
326
|
+
iconWrapper: "bg-warning-100 dark:bg-warning-50"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
variant: "bordered",
|
|
331
|
+
color: "danger",
|
|
332
|
+
class: {
|
|
333
|
+
iconWrapper: "bg-danger-100 dark:bg-danger-50"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
export {
|
|
340
|
+
alert
|
|
341
|
+
};
|
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colorVariants
|
|
3
|
+
} from "./chunk-GQT3YUX3.mjs";
|
|
4
|
+
import {
|
|
5
|
+
tv
|
|
6
|
+
} from "./chunk-TX3FPB7D.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/badge.ts
|
|
9
|
+
var badge = tv({
|
|
10
|
+
slots: {
|
|
11
|
+
base: ["relative", "inline-flex", "shrink-0"],
|
|
12
|
+
badge: [
|
|
13
|
+
"flex",
|
|
14
|
+
"z-10",
|
|
15
|
+
"flex-wrap",
|
|
16
|
+
"absolute",
|
|
17
|
+
"box-border",
|
|
18
|
+
"rounded-full",
|
|
19
|
+
"whitespace-nowrap",
|
|
20
|
+
"place-content-center",
|
|
21
|
+
"origin-center",
|
|
22
|
+
"items-center",
|
|
23
|
+
"text-inherit",
|
|
24
|
+
"select-none",
|
|
25
|
+
"font-regular",
|
|
26
|
+
"scale-100",
|
|
27
|
+
"opacity-100",
|
|
28
|
+
"subpixel-antialiased",
|
|
29
|
+
"data-[invisible=true]:scale-0",
|
|
30
|
+
"data-[invisible=true]:opacity-0"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
variants: {
|
|
34
|
+
variant: {
|
|
35
|
+
solid: {},
|
|
36
|
+
flat: {},
|
|
37
|
+
faded: {
|
|
38
|
+
badge: "border-medium"
|
|
39
|
+
},
|
|
40
|
+
shadow: {}
|
|
41
|
+
},
|
|
42
|
+
color: {
|
|
43
|
+
default: {},
|
|
44
|
+
primary: {},
|
|
45
|
+
secondary: {},
|
|
46
|
+
success: {},
|
|
47
|
+
warning: {},
|
|
48
|
+
danger: {}
|
|
49
|
+
},
|
|
50
|
+
size: {
|
|
51
|
+
sm: {
|
|
52
|
+
badge: "px-1 text-tiny"
|
|
53
|
+
},
|
|
54
|
+
md: {
|
|
55
|
+
badge: "px-1 text-small"
|
|
56
|
+
},
|
|
57
|
+
lg: {
|
|
58
|
+
badge: "px-1 text-small"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
placement: {
|
|
62
|
+
"top-right": {},
|
|
63
|
+
"top-left": {},
|
|
64
|
+
"bottom-right": {},
|
|
65
|
+
"bottom-left": {}
|
|
66
|
+
},
|
|
67
|
+
shape: {
|
|
68
|
+
circle: {},
|
|
69
|
+
rectangle: {}
|
|
70
|
+
},
|
|
71
|
+
isInvisible: {
|
|
72
|
+
true: {}
|
|
73
|
+
},
|
|
74
|
+
isOneChar: {
|
|
75
|
+
true: {
|
|
76
|
+
badge: "px-0"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
isDot: {
|
|
80
|
+
true: {}
|
|
81
|
+
},
|
|
82
|
+
disableAnimation: {
|
|
83
|
+
true: {
|
|
84
|
+
badge: "transition-none"
|
|
85
|
+
},
|
|
86
|
+
false: {
|
|
87
|
+
badge: "transition-transform-opacity !ease-soft-spring !duration-300"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
showOutline: {
|
|
91
|
+
true: {
|
|
92
|
+
badge: "border-2 border-background"
|
|
93
|
+
},
|
|
94
|
+
false: {
|
|
95
|
+
badge: "border-transparent border-0"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
defaultVariants: {
|
|
100
|
+
variant: "solid",
|
|
101
|
+
color: "default",
|
|
102
|
+
size: "md",
|
|
103
|
+
shape: "rectangle",
|
|
104
|
+
placement: "top-right",
|
|
105
|
+
showOutline: true,
|
|
106
|
+
isInvisible: false
|
|
107
|
+
},
|
|
108
|
+
compoundVariants: [
|
|
109
|
+
// solid / color
|
|
110
|
+
{
|
|
111
|
+
variant: "solid",
|
|
112
|
+
color: "default",
|
|
113
|
+
class: {
|
|
114
|
+
badge: colorVariants.solid.default
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
variant: "solid",
|
|
119
|
+
color: "primary",
|
|
120
|
+
class: {
|
|
121
|
+
badge: colorVariants.solid.primary
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
variant: "solid",
|
|
126
|
+
color: "secondary",
|
|
127
|
+
class: {
|
|
128
|
+
badge: colorVariants.solid.secondary
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
variant: "solid",
|
|
133
|
+
color: "success",
|
|
134
|
+
class: {
|
|
135
|
+
badge: colorVariants.solid.success
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
variant: "solid",
|
|
140
|
+
color: "warning",
|
|
141
|
+
class: {
|
|
142
|
+
badge: colorVariants.solid.warning
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
variant: "solid",
|
|
147
|
+
color: "danger",
|
|
148
|
+
class: {
|
|
149
|
+
badge: colorVariants.solid.danger
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
// shadow / color
|
|
153
|
+
{
|
|
154
|
+
variant: "shadow",
|
|
155
|
+
color: "default",
|
|
156
|
+
class: {
|
|
157
|
+
badge: colorVariants.shadow.default
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
variant: "shadow",
|
|
162
|
+
color: "primary",
|
|
163
|
+
class: {
|
|
164
|
+
badge: colorVariants.shadow.primary
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
variant: "shadow",
|
|
169
|
+
color: "secondary",
|
|
170
|
+
class: {
|
|
171
|
+
badge: colorVariants.shadow.secondary
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
variant: "shadow",
|
|
176
|
+
color: "success",
|
|
177
|
+
class: {
|
|
178
|
+
badge: colorVariants.shadow.success
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
variant: "shadow",
|
|
183
|
+
color: "warning",
|
|
184
|
+
class: {
|
|
185
|
+
badge: colorVariants.shadow.warning
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
variant: "shadow",
|
|
190
|
+
color: "danger",
|
|
191
|
+
class: {
|
|
192
|
+
badge: colorVariants.shadow.danger
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
// flat / color
|
|
196
|
+
{
|
|
197
|
+
variant: "flat",
|
|
198
|
+
color: "default",
|
|
199
|
+
class: {
|
|
200
|
+
badge: colorVariants.flat.default
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
variant: "flat",
|
|
205
|
+
color: "primary",
|
|
206
|
+
class: {
|
|
207
|
+
badge: colorVariants.flat.primary
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
variant: "flat",
|
|
212
|
+
color: "secondary",
|
|
213
|
+
class: {
|
|
214
|
+
badge: colorVariants.flat.secondary
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
variant: "flat",
|
|
219
|
+
color: "success",
|
|
220
|
+
class: {
|
|
221
|
+
badge: colorVariants.flat.success
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
variant: "flat",
|
|
226
|
+
color: "warning",
|
|
227
|
+
class: {
|
|
228
|
+
badge: colorVariants.flat.warning
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
variant: "flat",
|
|
233
|
+
color: "danger",
|
|
234
|
+
class: {
|
|
235
|
+
badge: colorVariants.flat.danger
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
// faded / color
|
|
239
|
+
{
|
|
240
|
+
variant: "faded",
|
|
241
|
+
color: "default",
|
|
242
|
+
class: {
|
|
243
|
+
badge: colorVariants.faded.default
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
variant: "faded",
|
|
248
|
+
color: "primary",
|
|
249
|
+
class: {
|
|
250
|
+
badge: colorVariants.faded.primary
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
variant: "faded",
|
|
255
|
+
color: "secondary",
|
|
256
|
+
class: {
|
|
257
|
+
badge: colorVariants.faded.secondary
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
variant: "faded",
|
|
262
|
+
color: "success",
|
|
263
|
+
class: {
|
|
264
|
+
badge: colorVariants.faded.success
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
variant: "faded",
|
|
269
|
+
color: "warning",
|
|
270
|
+
class: {
|
|
271
|
+
badge: colorVariants.faded.warning
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
variant: "faded",
|
|
276
|
+
color: "danger",
|
|
277
|
+
class: {
|
|
278
|
+
badge: colorVariants.faded.danger
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
// isOneChar / size
|
|
282
|
+
{
|
|
283
|
+
isOneChar: true,
|
|
284
|
+
size: "sm",
|
|
285
|
+
class: {
|
|
286
|
+
badge: "w-4 h-4 min-w-4 min-h-4"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
isOneChar: true,
|
|
291
|
+
size: "md",
|
|
292
|
+
class: {
|
|
293
|
+
badge: "w-5 h-5 min-w-5 min-h-5"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
isOneChar: true,
|
|
298
|
+
size: "lg",
|
|
299
|
+
class: {
|
|
300
|
+
badge: "w-6 h-6 min-w-6 min-h-6"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
// isDot / size
|
|
304
|
+
{
|
|
305
|
+
isDot: true,
|
|
306
|
+
size: "sm",
|
|
307
|
+
class: {
|
|
308
|
+
badge: "w-3 h-3 min-w-3 min-h-3"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
isDot: true,
|
|
313
|
+
size: "md",
|
|
314
|
+
class: {
|
|
315
|
+
badge: "w-3.5 h-3.5 min-w-3.5 min-h-3.5"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
isDot: true,
|
|
320
|
+
size: "lg",
|
|
321
|
+
class: {
|
|
322
|
+
badge: "w-4 h-4 min-w-4 min-h-4"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
// placement / rectangle
|
|
326
|
+
{
|
|
327
|
+
placement: "top-right",
|
|
328
|
+
shape: "rectangle",
|
|
329
|
+
class: {
|
|
330
|
+
badge: "top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
placement: "top-left",
|
|
335
|
+
shape: "rectangle",
|
|
336
|
+
class: {
|
|
337
|
+
badge: "top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
placement: "bottom-right",
|
|
342
|
+
shape: "rectangle",
|
|
343
|
+
class: {
|
|
344
|
+
badge: "bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
placement: "bottom-left",
|
|
349
|
+
shape: "rectangle",
|
|
350
|
+
class: {
|
|
351
|
+
badge: "bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
// placement / circle
|
|
355
|
+
{
|
|
356
|
+
placement: "top-right",
|
|
357
|
+
shape: "circle",
|
|
358
|
+
class: {
|
|
359
|
+
badge: "top-[10%] right-[10%] translate-x-1/2 -translate-y-1/2"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
placement: "top-left",
|
|
364
|
+
shape: "circle",
|
|
365
|
+
class: {
|
|
366
|
+
badge: "top-[10%] left-[10%] -translate-x-1/2 -translate-y-1/2"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
placement: "bottom-right",
|
|
371
|
+
shape: "circle",
|
|
372
|
+
class: {
|
|
373
|
+
badge: "bottom-[10%] right-[10%] translate-x-1/2 translate-y-1/2"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
placement: "bottom-left",
|
|
378
|
+
shape: "circle",
|
|
379
|
+
class: {
|
|
380
|
+
badge: "bottom-[10%] left-[10%] -translate-x-1/2 translate-y-1/2"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
});
|
|
385
|
+
|
|
386
|
+
export {
|
|
387
|
+
badge
|
|
388
|
+
};
|