@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,852 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-TX3FPB7D.mjs";
|
|
4
|
+
import {
|
|
5
|
+
dataFocusVisibleClasses,
|
|
6
|
+
groupDataFocusVisibleClasses
|
|
7
|
+
} from "./chunk-JGY6VQQQ.mjs";
|
|
8
|
+
|
|
9
|
+
// src/components/number-input.ts
|
|
10
|
+
var numberInput = tv({
|
|
11
|
+
slots: {
|
|
12
|
+
base: "group flex flex-col data-[hidden=true]:hidden",
|
|
13
|
+
label: [
|
|
14
|
+
"absolute",
|
|
15
|
+
"z-10",
|
|
16
|
+
"pointer-events-none",
|
|
17
|
+
"origin-top-left",
|
|
18
|
+
"flex-shrink-0",
|
|
19
|
+
// Using RTL here as Tailwind CSS doesn't support `start` and `end` logical properties for transforms yet.
|
|
20
|
+
"rtl:origin-top-right",
|
|
21
|
+
"subpixel-antialiased",
|
|
22
|
+
"block",
|
|
23
|
+
"text-small",
|
|
24
|
+
"text-foreground-500"
|
|
25
|
+
],
|
|
26
|
+
mainWrapper: "h-full",
|
|
27
|
+
inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
|
|
28
|
+
innerWrapper: "inline-flex w-full items-center h-full box-border",
|
|
29
|
+
input: [
|
|
30
|
+
"w-full font-normal bg-transparent !outline-solid outline-transparent placeholder:text-foreground-500 focus-visible:outline-solid outline-transparent",
|
|
31
|
+
"data-[has-start-content=true]:ps-1.5",
|
|
32
|
+
"data-[has-end-content=true]:pe-1.5",
|
|
33
|
+
"autofill:bg-transparent bg-clip-text"
|
|
34
|
+
],
|
|
35
|
+
clearButton: [
|
|
36
|
+
"p-2",
|
|
37
|
+
"-m-2",
|
|
38
|
+
"z-10",
|
|
39
|
+
"end-3",
|
|
40
|
+
"start-auto",
|
|
41
|
+
"pointer-events-none",
|
|
42
|
+
"appearance-none",
|
|
43
|
+
"outline-solid outline-transparent",
|
|
44
|
+
"select-none",
|
|
45
|
+
"opacity-0",
|
|
46
|
+
"hover:!opacity-100",
|
|
47
|
+
"cursor-pointer",
|
|
48
|
+
"active:!opacity-70",
|
|
49
|
+
"rounded-full",
|
|
50
|
+
// focus ring
|
|
51
|
+
...dataFocusVisibleClasses
|
|
52
|
+
],
|
|
53
|
+
stepperButton: [
|
|
54
|
+
"bg-transparent",
|
|
55
|
+
"flex",
|
|
56
|
+
"justify-center",
|
|
57
|
+
"items-center",
|
|
58
|
+
"before:absolute",
|
|
59
|
+
"before:w-8",
|
|
60
|
+
// the max width that won't block clear button
|
|
61
|
+
"before:h-8",
|
|
62
|
+
"before:rounded-full",
|
|
63
|
+
"after:shadow-small",
|
|
64
|
+
"after:bg-background",
|
|
65
|
+
"data-[focused=true]:z-10",
|
|
66
|
+
"min-w-5",
|
|
67
|
+
"w-5",
|
|
68
|
+
"h-5",
|
|
69
|
+
"overflow-visible",
|
|
70
|
+
"transition-opacity",
|
|
71
|
+
"data-[hover=true]:opacity-70",
|
|
72
|
+
"data-[pressed=true]:opacity-disabled"
|
|
73
|
+
],
|
|
74
|
+
stepperWrapper: ["flex", "flex-col", "ps-1", "h-full", "justify-center"],
|
|
75
|
+
helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
|
|
76
|
+
description: "text-tiny text-foreground-400",
|
|
77
|
+
errorMessage: "text-tiny text-danger"
|
|
78
|
+
},
|
|
79
|
+
variants: {
|
|
80
|
+
variant: {
|
|
81
|
+
flat: {
|
|
82
|
+
inputWrapper: [
|
|
83
|
+
"bg-default-100",
|
|
84
|
+
"data-[hover=true]:bg-default-200",
|
|
85
|
+
"group-data-[focus=true]:bg-default-100"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
faded: {
|
|
89
|
+
inputWrapper: [
|
|
90
|
+
"bg-default-100",
|
|
91
|
+
"border-medium",
|
|
92
|
+
"border-default-200",
|
|
93
|
+
"data-[hover=true]:border-default-400 focus-within:border-default-400"
|
|
94
|
+
],
|
|
95
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
96
|
+
},
|
|
97
|
+
bordered: {
|
|
98
|
+
inputWrapper: [
|
|
99
|
+
"border-medium",
|
|
100
|
+
"border-default-200",
|
|
101
|
+
"data-[hover=true]:border-default-400",
|
|
102
|
+
"group-data-[focus=true]:border-default-foreground"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
underlined: {
|
|
106
|
+
inputWrapper: [
|
|
107
|
+
"!px-1",
|
|
108
|
+
"!pb-0",
|
|
109
|
+
"!gap-0",
|
|
110
|
+
"relative",
|
|
111
|
+
"box-border",
|
|
112
|
+
"border-b-medium",
|
|
113
|
+
"shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
|
|
114
|
+
"border-default-200",
|
|
115
|
+
"!rounded-none",
|
|
116
|
+
"hover:border-default-300",
|
|
117
|
+
"after:content-['']",
|
|
118
|
+
"after:w-0",
|
|
119
|
+
"after:origin-center",
|
|
120
|
+
"after:bg-default-foreground",
|
|
121
|
+
"after:absolute",
|
|
122
|
+
"after:left-1/2",
|
|
123
|
+
"after:-translate-x-1/2",
|
|
124
|
+
"after:-bottom-[2px]",
|
|
125
|
+
"after:h-[2px]",
|
|
126
|
+
"group-data-[focus=true]:after:w-full"
|
|
127
|
+
],
|
|
128
|
+
innerWrapper: "pb-1",
|
|
129
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
color: {
|
|
133
|
+
default: {},
|
|
134
|
+
primary: {
|
|
135
|
+
stepperButton: "text-primary"
|
|
136
|
+
},
|
|
137
|
+
secondary: {
|
|
138
|
+
stepperButton: "text-secondary"
|
|
139
|
+
},
|
|
140
|
+
success: {
|
|
141
|
+
stepperButton: "text-success"
|
|
142
|
+
},
|
|
143
|
+
warning: {
|
|
144
|
+
stepperButton: "text-warning"
|
|
145
|
+
},
|
|
146
|
+
danger: {
|
|
147
|
+
stepperButton: "text-danger"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
size: {
|
|
151
|
+
sm: {
|
|
152
|
+
label: "text-tiny",
|
|
153
|
+
inputWrapper: "h-8 min-h-8 px-2 rounded-small",
|
|
154
|
+
input: "text-small",
|
|
155
|
+
clearButton: "text-medium"
|
|
156
|
+
},
|
|
157
|
+
md: {
|
|
158
|
+
inputWrapper: "h-10 min-h-10 rounded-medium",
|
|
159
|
+
input: "text-small",
|
|
160
|
+
clearButton: "text-large"
|
|
161
|
+
},
|
|
162
|
+
lg: {
|
|
163
|
+
label: "text-medium",
|
|
164
|
+
inputWrapper: "h-12 min-h-12 rounded-large",
|
|
165
|
+
input: "text-medium",
|
|
166
|
+
clearButton: "text-large"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
radius: {
|
|
170
|
+
none: {
|
|
171
|
+
inputWrapper: "rounded-none"
|
|
172
|
+
},
|
|
173
|
+
sm: {
|
|
174
|
+
inputWrapper: "rounded-small"
|
|
175
|
+
},
|
|
176
|
+
md: {
|
|
177
|
+
inputWrapper: "rounded-medium"
|
|
178
|
+
},
|
|
179
|
+
lg: {
|
|
180
|
+
inputWrapper: "rounded-large"
|
|
181
|
+
},
|
|
182
|
+
full: {
|
|
183
|
+
inputWrapper: "rounded-full"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
labelPlacement: {
|
|
187
|
+
outside: {
|
|
188
|
+
mainWrapper: "flex flex-col",
|
|
189
|
+
stepperButton: "min-w-3 w-3 h-3"
|
|
190
|
+
},
|
|
191
|
+
"outside-left": {
|
|
192
|
+
base: "flex-row items-center flex-nowrap data-[has-helper=true]:items-start",
|
|
193
|
+
inputWrapper: "flex-1",
|
|
194
|
+
mainWrapper: "flex flex-col",
|
|
195
|
+
label: "relative text-foreground pe-2 ps-2 pointer-events-auto",
|
|
196
|
+
stepperButton: "min-w-3 w-3 h-3"
|
|
197
|
+
},
|
|
198
|
+
inside: {
|
|
199
|
+
label: "cursor-text",
|
|
200
|
+
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
201
|
+
innerWrapper: "group-data-[has-label=true]:items-end"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
fullWidth: {
|
|
205
|
+
true: {
|
|
206
|
+
base: "w-full"
|
|
207
|
+
},
|
|
208
|
+
false: {}
|
|
209
|
+
},
|
|
210
|
+
isClearable: {
|
|
211
|
+
true: {
|
|
212
|
+
input: "peer pe-6 input-search-cancel-button-none",
|
|
213
|
+
clearButton: [
|
|
214
|
+
"peer-data-[filled=true]:pointer-events-auto",
|
|
215
|
+
"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",
|
|
216
|
+
"peer-data-[filled=true]:scale-100"
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
isDisabled: {
|
|
221
|
+
true: {
|
|
222
|
+
base: "opacity-disabled pointer-events-none",
|
|
223
|
+
inputWrapper: "pointer-events-none",
|
|
224
|
+
label: "pointer-events-none"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
isInvalid: {
|
|
228
|
+
true: {
|
|
229
|
+
label: "!text-danger",
|
|
230
|
+
input: "!placeholder:text-danger !text-danger"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
isRequired: {
|
|
234
|
+
true: {
|
|
235
|
+
label: "after:content-['*'] after:text-danger after:ms-0.5"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
disableAnimation: {
|
|
239
|
+
true: {
|
|
240
|
+
input: "transition-none",
|
|
241
|
+
inputWrapper: "transition-none",
|
|
242
|
+
label: "transition-none"
|
|
243
|
+
},
|
|
244
|
+
false: {
|
|
245
|
+
inputWrapper: "transition-background motion-reduce:transition-none !duration-150",
|
|
246
|
+
label: [
|
|
247
|
+
"will-change-auto",
|
|
248
|
+
"!duration-200",
|
|
249
|
+
"!ease-out",
|
|
250
|
+
"motion-reduce:transition-none",
|
|
251
|
+
"transition-[transform,color,left,opacity,translate,scale]"
|
|
252
|
+
],
|
|
253
|
+
clearButton: [
|
|
254
|
+
"scale-90",
|
|
255
|
+
"ease-out",
|
|
256
|
+
"duration-150",
|
|
257
|
+
"transition-[opacity,transform]",
|
|
258
|
+
"motion-reduce:transition-none",
|
|
259
|
+
"motion-reduce:scale-100"
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
defaultVariants: {
|
|
265
|
+
variant: "flat",
|
|
266
|
+
color: "default",
|
|
267
|
+
size: "md",
|
|
268
|
+
fullWidth: true,
|
|
269
|
+
labelPlacement: "inside",
|
|
270
|
+
isDisabled: false
|
|
271
|
+
},
|
|
272
|
+
compoundVariants: [
|
|
273
|
+
// flat & color
|
|
274
|
+
{
|
|
275
|
+
variant: "flat",
|
|
276
|
+
color: "default",
|
|
277
|
+
class: {
|
|
278
|
+
input: "group-data-[has-value=true]:text-default-foreground"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
variant: "flat",
|
|
283
|
+
color: "primary",
|
|
284
|
+
class: {
|
|
285
|
+
inputWrapper: [
|
|
286
|
+
"bg-primary-100",
|
|
287
|
+
"data-[hover=true]:bg-primary-50",
|
|
288
|
+
"text-primary",
|
|
289
|
+
"group-data-[focus=true]:bg-primary-50",
|
|
290
|
+
"placeholder:text-primary"
|
|
291
|
+
],
|
|
292
|
+
input: "placeholder:text-primary",
|
|
293
|
+
label: "text-primary"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
variant: "flat",
|
|
298
|
+
color: "secondary",
|
|
299
|
+
class: {
|
|
300
|
+
inputWrapper: [
|
|
301
|
+
"bg-secondary-100",
|
|
302
|
+
"text-secondary",
|
|
303
|
+
"data-[hover=true]:bg-secondary-50",
|
|
304
|
+
"group-data-[focus=true]:bg-secondary-50",
|
|
305
|
+
"placeholder:text-secondary"
|
|
306
|
+
],
|
|
307
|
+
input: "placeholder:text-secondary",
|
|
308
|
+
label: "text-secondary"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
variant: "flat",
|
|
313
|
+
color: "success",
|
|
314
|
+
class: {
|
|
315
|
+
inputWrapper: [
|
|
316
|
+
"bg-success-100",
|
|
317
|
+
"text-success-600",
|
|
318
|
+
"dark:text-success",
|
|
319
|
+
"placeholder:text-success-600",
|
|
320
|
+
"dark:placeholder:text-success",
|
|
321
|
+
"data-[hover=true]:bg-success-50",
|
|
322
|
+
"group-data-[focus=true]:bg-success-50"
|
|
323
|
+
],
|
|
324
|
+
input: "placeholder:text-success-600 dark:placeholder:text-success",
|
|
325
|
+
label: "text-success-600 dark:text-success"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
variant: "flat",
|
|
330
|
+
color: "warning",
|
|
331
|
+
class: {
|
|
332
|
+
inputWrapper: [
|
|
333
|
+
"bg-warning-100",
|
|
334
|
+
"text-warning-600",
|
|
335
|
+
"dark:text-warning",
|
|
336
|
+
"placeholder:text-warning-600",
|
|
337
|
+
"dark:placeholder:text-warning",
|
|
338
|
+
"data-[hover=true]:bg-warning-50",
|
|
339
|
+
"group-data-[focus=true]:bg-warning-50"
|
|
340
|
+
],
|
|
341
|
+
input: "placeholder:text-warning-600 dark:placeholder:text-warning",
|
|
342
|
+
label: "text-warning-600 dark:text-warning"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
variant: "flat",
|
|
347
|
+
color: "danger",
|
|
348
|
+
class: {
|
|
349
|
+
inputWrapper: [
|
|
350
|
+
"bg-danger-100",
|
|
351
|
+
"text-danger",
|
|
352
|
+
"dark:text-danger-500",
|
|
353
|
+
"placeholder:text-danger",
|
|
354
|
+
"dark:placeholder:text-danger-500",
|
|
355
|
+
"data-[hover=true]:bg-danger-50",
|
|
356
|
+
"group-data-[focus=true]:bg-danger-50"
|
|
357
|
+
],
|
|
358
|
+
input: "placeholder:text-danger dark:placeholder:text-danger-500",
|
|
359
|
+
label: "text-danger dark:text-danger-500"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
// faded & color
|
|
363
|
+
{
|
|
364
|
+
variant: "faded",
|
|
365
|
+
color: "primary",
|
|
366
|
+
class: {
|
|
367
|
+
label: "text-primary",
|
|
368
|
+
inputWrapper: "data-[hover=true]:border-primary focus-within:border-primary"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
variant: "faded",
|
|
373
|
+
color: "secondary",
|
|
374
|
+
class: {
|
|
375
|
+
label: "text-secondary",
|
|
376
|
+
inputWrapper: "data-[hover=true]:border-secondary focus-within:border-secondary"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
variant: "faded",
|
|
381
|
+
color: "success",
|
|
382
|
+
class: {
|
|
383
|
+
label: "text-success",
|
|
384
|
+
inputWrapper: "data-[hover=true]:border-success focus-within:border-success"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
variant: "faded",
|
|
389
|
+
color: "warning",
|
|
390
|
+
class: {
|
|
391
|
+
label: "text-warning",
|
|
392
|
+
inputWrapper: "data-[hover=true]:border-warning focus-within:border-warning"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
variant: "faded",
|
|
397
|
+
color: "danger",
|
|
398
|
+
class: {
|
|
399
|
+
label: "text-danger",
|
|
400
|
+
inputWrapper: "data-[hover=true]:border-danger focus-within:border-danger"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
// underlined & color
|
|
404
|
+
{
|
|
405
|
+
variant: "underlined",
|
|
406
|
+
color: "default",
|
|
407
|
+
class: {
|
|
408
|
+
input: "group-data-[has-value=true]:text-foreground"
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
variant: "underlined",
|
|
413
|
+
color: "primary",
|
|
414
|
+
class: {
|
|
415
|
+
inputWrapper: "after:bg-primary",
|
|
416
|
+
label: "text-primary"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
variant: "underlined",
|
|
421
|
+
color: "secondary",
|
|
422
|
+
class: {
|
|
423
|
+
inputWrapper: "after:bg-secondary",
|
|
424
|
+
label: "text-secondary"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
variant: "underlined",
|
|
429
|
+
color: "success",
|
|
430
|
+
class: {
|
|
431
|
+
inputWrapper: "after:bg-success",
|
|
432
|
+
label: "text-success"
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
variant: "underlined",
|
|
437
|
+
color: "warning",
|
|
438
|
+
class: {
|
|
439
|
+
inputWrapper: "after:bg-warning",
|
|
440
|
+
label: "text-warning"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
variant: "underlined",
|
|
445
|
+
color: "danger",
|
|
446
|
+
class: {
|
|
447
|
+
inputWrapper: "after:bg-danger",
|
|
448
|
+
label: "text-danger"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
// bordered & color
|
|
452
|
+
{
|
|
453
|
+
variant: "bordered",
|
|
454
|
+
color: "primary",
|
|
455
|
+
class: {
|
|
456
|
+
inputWrapper: "group-data-[focus=true]:border-primary",
|
|
457
|
+
label: "text-primary"
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
variant: "bordered",
|
|
462
|
+
color: "secondary",
|
|
463
|
+
class: {
|
|
464
|
+
inputWrapper: "group-data-[focus=true]:border-secondary",
|
|
465
|
+
label: "text-secondary"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
variant: "bordered",
|
|
470
|
+
color: "success",
|
|
471
|
+
class: {
|
|
472
|
+
inputWrapper: "group-data-[focus=true]:border-success",
|
|
473
|
+
label: "text-success"
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
variant: "bordered",
|
|
478
|
+
color: "warning",
|
|
479
|
+
class: {
|
|
480
|
+
inputWrapper: "group-data-[focus=true]:border-warning",
|
|
481
|
+
label: "text-warning"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
variant: "bordered",
|
|
486
|
+
color: "danger",
|
|
487
|
+
class: {
|
|
488
|
+
inputWrapper: "group-data-[focus=true]:border-danger",
|
|
489
|
+
label: "text-danger"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
// labelPlacement=inside & default
|
|
493
|
+
{
|
|
494
|
+
labelPlacement: "inside",
|
|
495
|
+
color: "default",
|
|
496
|
+
class: {
|
|
497
|
+
label: "group-data-[filled-within=true]:text-default-600"
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
// labelPlacement=outside & default
|
|
501
|
+
{
|
|
502
|
+
labelPlacement: "outside",
|
|
503
|
+
color: "default",
|
|
504
|
+
class: {
|
|
505
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
// radius-full & size
|
|
509
|
+
{
|
|
510
|
+
radius: "full",
|
|
511
|
+
size: ["sm"],
|
|
512
|
+
class: {
|
|
513
|
+
inputWrapper: "px-3"
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
radius: "full",
|
|
518
|
+
size: "md",
|
|
519
|
+
class: {
|
|
520
|
+
inputWrapper: "px-4"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
radius: "full",
|
|
525
|
+
size: "lg",
|
|
526
|
+
class: {
|
|
527
|
+
inputWrapper: "px-5"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
// !disableAnimation & variant
|
|
531
|
+
{
|
|
532
|
+
disableAnimation: false,
|
|
533
|
+
variant: ["faded", "bordered"],
|
|
534
|
+
class: {
|
|
535
|
+
inputWrapper: "transition-colors motion-reduce:transition-none"
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
disableAnimation: false,
|
|
540
|
+
variant: "underlined",
|
|
541
|
+
class: {
|
|
542
|
+
inputWrapper: "after:transition-width motion-reduce:after:transition-none"
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
// flat & faded
|
|
546
|
+
{
|
|
547
|
+
variant: ["flat", "faded"],
|
|
548
|
+
class: {
|
|
549
|
+
inputWrapper: [
|
|
550
|
+
// focus ring
|
|
551
|
+
...groupDataFocusVisibleClasses
|
|
552
|
+
]
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
// isInvalid & variant
|
|
556
|
+
{
|
|
557
|
+
isInvalid: true,
|
|
558
|
+
variant: "flat",
|
|
559
|
+
class: {
|
|
560
|
+
inputWrapper: [
|
|
561
|
+
"!bg-danger-50",
|
|
562
|
+
"data-[hover=true]:!bg-danger-100",
|
|
563
|
+
"group-data-[focus=true]:!bg-danger-50"
|
|
564
|
+
]
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
isInvalid: true,
|
|
569
|
+
variant: "bordered",
|
|
570
|
+
class: {
|
|
571
|
+
inputWrapper: "!border-danger group-data-[focus=true]:!border-danger"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
isInvalid: true,
|
|
576
|
+
variant: "underlined",
|
|
577
|
+
class: {
|
|
578
|
+
inputWrapper: "after:!bg-danger"
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
// size & labelPlacement
|
|
582
|
+
{
|
|
583
|
+
labelPlacement: "inside",
|
|
584
|
+
size: "sm",
|
|
585
|
+
class: {
|
|
586
|
+
inputWrapper: "h-12 py-1.5 px-3"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
labelPlacement: "inside",
|
|
591
|
+
size: "md",
|
|
592
|
+
class: {
|
|
593
|
+
inputWrapper: "h-14 py-2"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
labelPlacement: "inside",
|
|
598
|
+
size: "lg",
|
|
599
|
+
class: {
|
|
600
|
+
inputWrapper: "h-16 py-2.5 gap-0"
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
// size & labelPlacement & variant=[faded, bordered]
|
|
604
|
+
{
|
|
605
|
+
labelPlacement: "inside",
|
|
606
|
+
size: "sm",
|
|
607
|
+
variant: ["bordered", "faded"],
|
|
608
|
+
class: {
|
|
609
|
+
inputWrapper: "py-1"
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
// labelPlacement=[inside,outside]
|
|
613
|
+
{
|
|
614
|
+
labelPlacement: ["inside", "outside"],
|
|
615
|
+
class: {
|
|
616
|
+
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
// labelPlacement=[outside]
|
|
620
|
+
{
|
|
621
|
+
labelPlacement: "outside",
|
|
622
|
+
class: {
|
|
623
|
+
base: "relative justify-end",
|
|
624
|
+
label: [
|
|
625
|
+
"pb-0",
|
|
626
|
+
"z-20",
|
|
627
|
+
"top-1/2",
|
|
628
|
+
"-translate-y-1/2",
|
|
629
|
+
"group-data-[filled-within=true]:start-0"
|
|
630
|
+
]
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
// labelPlacement=[inside]
|
|
634
|
+
{
|
|
635
|
+
labelPlacement: ["inside"],
|
|
636
|
+
class: {
|
|
637
|
+
label: ["group-data-[filled-within=true]:scale-85"]
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
labelPlacement: "inside",
|
|
642
|
+
size: "sm",
|
|
643
|
+
class: {
|
|
644
|
+
label: [
|
|
645
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"
|
|
646
|
+
]
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
labelPlacement: "inside",
|
|
651
|
+
size: "md",
|
|
652
|
+
class: {
|
|
653
|
+
label: [
|
|
654
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"
|
|
655
|
+
]
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
labelPlacement: "inside",
|
|
660
|
+
size: "lg",
|
|
661
|
+
class: {
|
|
662
|
+
label: [
|
|
663
|
+
"text-medium",
|
|
664
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"
|
|
665
|
+
]
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
// labelPlacement=[inside] & variant=flat
|
|
669
|
+
{
|
|
670
|
+
labelPlacement: ["inside"],
|
|
671
|
+
variant: "flat",
|
|
672
|
+
class: {
|
|
673
|
+
innerWrapper: "pb-0.5"
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
// variant=underlined & size
|
|
677
|
+
{
|
|
678
|
+
variant: "underlined",
|
|
679
|
+
size: "sm",
|
|
680
|
+
class: {
|
|
681
|
+
innerWrapper: "pb-1"
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
variant: "underlined",
|
|
686
|
+
size: ["md", "lg"],
|
|
687
|
+
class: {
|
|
688
|
+
innerWrapper: "pb-1.5"
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
// inside & size
|
|
692
|
+
{
|
|
693
|
+
labelPlacement: "inside",
|
|
694
|
+
size: ["sm", "md"],
|
|
695
|
+
class: {
|
|
696
|
+
label: "text-small",
|
|
697
|
+
stepperButton: "before:h-6"
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
// inside & size & [faded, bordered]
|
|
701
|
+
{
|
|
702
|
+
labelPlacement: "inside",
|
|
703
|
+
variant: ["faded", "bordered"],
|
|
704
|
+
size: "sm",
|
|
705
|
+
class: {
|
|
706
|
+
label: [
|
|
707
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"
|
|
708
|
+
]
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
labelPlacement: "inside",
|
|
713
|
+
variant: ["faded", "bordered"],
|
|
714
|
+
isMultiline: false,
|
|
715
|
+
size: "md",
|
|
716
|
+
class: {
|
|
717
|
+
label: [
|
|
718
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"
|
|
719
|
+
]
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
labelPlacement: "inside",
|
|
724
|
+
variant: ["faded", "bordered"],
|
|
725
|
+
size: "lg",
|
|
726
|
+
class: {
|
|
727
|
+
label: [
|
|
728
|
+
"text-medium",
|
|
729
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"
|
|
730
|
+
]
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
// inside & size & underlined
|
|
734
|
+
{
|
|
735
|
+
labelPlacement: "inside",
|
|
736
|
+
variant: "underlined",
|
|
737
|
+
size: "sm",
|
|
738
|
+
class: {
|
|
739
|
+
label: [
|
|
740
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"
|
|
741
|
+
]
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
labelPlacement: "inside",
|
|
746
|
+
variant: "underlined",
|
|
747
|
+
size: "md",
|
|
748
|
+
class: {
|
|
749
|
+
label: [
|
|
750
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"
|
|
751
|
+
]
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
labelPlacement: "inside",
|
|
756
|
+
variant: "underlined",
|
|
757
|
+
size: "lg",
|
|
758
|
+
class: {
|
|
759
|
+
label: [
|
|
760
|
+
"text-medium",
|
|
761
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"
|
|
762
|
+
]
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
// outside & size
|
|
766
|
+
{
|
|
767
|
+
labelPlacement: "outside",
|
|
768
|
+
size: "sm",
|
|
769
|
+
class: {
|
|
770
|
+
label: [
|
|
771
|
+
"start-2",
|
|
772
|
+
"text-tiny",
|
|
773
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-tiny)/2_+_16px)]"
|
|
774
|
+
],
|
|
775
|
+
base: "data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]",
|
|
776
|
+
stepperButton: "before:h-4"
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
labelPlacement: "outside",
|
|
781
|
+
size: "md",
|
|
782
|
+
class: {
|
|
783
|
+
label: [
|
|
784
|
+
"start-3",
|
|
785
|
+
"end-auto",
|
|
786
|
+
"text-small",
|
|
787
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]"
|
|
788
|
+
],
|
|
789
|
+
base: "data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]",
|
|
790
|
+
stepperButton: "before:h-4"
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
labelPlacement: "outside",
|
|
795
|
+
size: "lg",
|
|
796
|
+
class: {
|
|
797
|
+
label: [
|
|
798
|
+
"start-3",
|
|
799
|
+
"end-auto",
|
|
800
|
+
"text-medium",
|
|
801
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]"
|
|
802
|
+
],
|
|
803
|
+
base: "data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]",
|
|
804
|
+
stepperButton: "min-4 w-4 h-4 before:h-6"
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
// outside-left & size & hasHelper
|
|
808
|
+
{
|
|
809
|
+
labelPlacement: "outside-left",
|
|
810
|
+
size: "sm",
|
|
811
|
+
class: {
|
|
812
|
+
label: "group-data-[has-helper=true]:pt-2",
|
|
813
|
+
stepperButton: "before:h-4"
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
labelPlacement: "outside-left",
|
|
818
|
+
size: "md",
|
|
819
|
+
class: {
|
|
820
|
+
label: "group-data-[has-helper=true]:pt-3",
|
|
821
|
+
stepperButton: "before:h-4"
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
labelPlacement: "outside-left",
|
|
826
|
+
size: "lg",
|
|
827
|
+
class: {
|
|
828
|
+
label: "group-data-[has-helper=true]:pt-4",
|
|
829
|
+
stepperButton: "min-4 w-4 h-4 before:h-6"
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
// text truncate labelPlacement=[inside,outside]
|
|
833
|
+
{
|
|
834
|
+
labelPlacement: ["inside", "outside"],
|
|
835
|
+
class: {
|
|
836
|
+
label: ["pe-2", "max-w-full", "text-ellipsis", "overflow-hidden"]
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
// isClearable & isDisabled
|
|
840
|
+
{
|
|
841
|
+
isClearable: true,
|
|
842
|
+
isDisabled: true,
|
|
843
|
+
class: {
|
|
844
|
+
clearButton: "peer-data-[filled=true]:pointer-events-none"
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
]
|
|
848
|
+
});
|
|
849
|
+
|
|
850
|
+
export {
|
|
851
|
+
numberInput
|
|
852
|
+
};
|