@kuzenbo/core 0.0.4 → 0.0.6
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 +2 -0
- package/dist/action-icon-UjYZjXrB.d.ts +59 -0
- package/dist/action-icon-UjYZjXrB.d.ts.map +1 -0
- package/dist/{avatar-image-Ce26D2fb.d.ts → avatar-4S7I72CH.d.ts} +35 -2
- package/dist/avatar-4S7I72CH.d.ts.map +1 -0
- package/dist/avatar-C3vF6E7s.js +65 -0
- package/dist/avatar-C3vF6E7s.js.map +1 -0
- package/dist/badge-DB40swlt.js +58 -0
- package/dist/badge-DB40swlt.js.map +1 -0
- package/dist/button-CPPkhcmB.d.ts +59 -0
- package/dist/button-CPPkhcmB.d.ts.map +1 -0
- package/dist/button-shared-variants-J4RVI3K7.js +19 -0
- package/dist/button-shared-variants-J4RVI3K7.js.map +1 -0
- package/dist/{dialog-viewport-Ce1huyAI.d.ts → dialog-D3dAMsO_.d.ts} +64 -2
- package/dist/dialog-D3dAMsO_.d.ts.map +1 -0
- package/dist/{dialog-trigger-BUF3elAP.js → dialog-Dzvma_bu.js} +36 -12
- package/dist/dialog-Dzvma_bu.js.map +1 -0
- package/dist/{dropdown-menu-trigger-BpgtLUvf.d.ts → dropdown-menu-BG03sLbC.d.ts} +259 -123
- package/dist/dropdown-menu-BG03sLbC.d.ts.map +1 -0
- package/dist/{dropdown-menu-trigger-COnFGfDa.js → dropdown-menu-DOVY76ue.js} +137 -101
- package/dist/dropdown-menu-DOVY76ue.js.map +1 -0
- package/dist/input-BeE717GK.d.ts +46 -0
- package/dist/input-BeE717GK.d.ts.map +1 -0
- package/dist/input-cICL6sH_.js +38 -0
- package/dist/input-cICL6sH_.js.map +1 -0
- package/dist/{input-group-textarea-B-rP98r5.js → input-group-7kPror1q.js} +62 -33
- package/dist/input-group-7kPror1q.js.map +1 -0
- package/dist/provider.d.ts +3 -3
- package/dist/provider.js +2 -2
- package/dist/{scroll-bar-C4qEUKlT.js → scroll-bar-BKRy5Me9.js} +1 -1
- package/dist/{scroll-bar-C4qEUKlT.js.map → scroll-bar-BKRy5Me9.js.map} +1 -1
- package/dist/separator-CgOz2m5i.d.ts +13 -0
- package/dist/separator-CgOz2m5i.d.ts.map +1 -0
- package/dist/{sheet-trigger-D7neoTF5.js → sheet-FVsgl5Wk.js} +32 -13
- package/dist/sheet-FVsgl5Wk.js.map +1 -0
- package/dist/{size-context-BjRwqlSg.js → size-context-CvLl3pMC.js} +3 -3
- package/dist/size-context-CvLl3pMC.js.map +1 -0
- package/dist/{size-context-DXfCAlWF.d.ts → size-context-DWvVJytl.d.ts} +2 -2
- package/dist/size-context-DWvVJytl.d.ts.map +1 -0
- package/dist/size-provider-18EvJgDT.js.map +1 -1
- package/dist/{size-provider-Bd2C6gKd.d.ts → size-provider-PHAZhU6k.d.ts} +2 -2
- package/dist/{size-provider-Bd2C6gKd.d.ts.map → size-provider-PHAZhU6k.d.ts.map} +1 -1
- package/dist/{size-system-wzOLSuax.d.ts → size-system-BAI1CnwU.d.ts} +1 -1
- package/dist/size-system-BAI1CnwU.d.ts.map +1 -0
- package/dist/size-system-BTsMqZRQ.js +99 -0
- package/dist/size-system-BTsMqZRQ.js.map +1 -0
- package/dist/size.d.ts +3 -3
- package/dist/size.js +2 -2
- package/dist/{slider-root-presentation-ChJHPMIV.js → slider-root-presentation-G0ByTcvd.js} +19 -19
- package/dist/slider-root-presentation-G0ByTcvd.js.map +1 -0
- package/dist/{slider-value-Db8SCu0c.d.ts → slider-style-tokens-DNzHvGii.d.ts} +55 -55
- package/dist/slider-style-tokens-DNzHvGii.d.ts.map +1 -0
- package/dist/textarea-rmoEkvdu.d.ts +37 -0
- package/dist/textarea-rmoEkvdu.d.ts.map +1 -0
- package/dist/textarea-vNt8edEA.js +39 -0
- package/dist/textarea-vNt8edEA.js.map +1 -0
- package/dist/toggle-D8kPPZH9.d.ts +53 -0
- package/dist/toggle-D8kPPZH9.d.ts.map +1 -0
- package/dist/{tooltip-trigger-qXw-_nbh.js → tooltip-BUo_HPnp.js} +38 -13
- package/dist/tooltip-BUo_HPnp.js.map +1 -0
- package/dist/{tooltip-viewport-csA6luqI.d.ts → tooltip-DatN3AoZ.d.ts} +62 -14
- package/dist/tooltip-DatN3AoZ.d.ts.map +1 -0
- package/dist/ui/accordion.d.ts +5 -5
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +53 -52
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/action-icon.d.ts +2 -0
- package/dist/ui/action-icon.js +74 -0
- package/dist/ui/action-icon.js.map +1 -0
- package/dist/ui/affix.d.ts +3 -2
- package/dist/ui/affix.d.ts.map +1 -1
- package/dist/ui/affix.js +8 -7
- package/dist/ui/affix.js.map +1 -1
- package/dist/ui/alert-dialog.d.ts +4 -2
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +10 -9
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts +33 -33
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +86 -86
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/announcement.d.ts.map +1 -1
- package/dist/ui/announcement.js +5 -3
- package/dist/ui/announcement.js.map +1 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js.map +1 -1
- package/dist/ui/autocomplete.d.ts +74 -74
- package/dist/ui/autocomplete.d.ts.map +1 -1
- package/dist/ui/autocomplete.js +55 -53
- package/dist/ui/autocomplete.js.map +1 -1
- package/dist/ui/avatar.d.ts +2 -39
- package/dist/ui/avatar.js +2 -24
- package/dist/ui/badge.d.ts +28 -28
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +2 -54
- package/dist/ui/breadcrumb.d.ts +65 -65
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +47 -45
- package/dist/ui/breadcrumb.js.map +1 -1
- package/dist/ui/button-group.d.ts +35 -35
- package/dist/ui/button-group.d.ts.map +1 -1
- package/dist/ui/button-group.js +29 -28
- package/dist/ui/button-group.js.map +1 -1
- package/dist/ui/button.d.ts +2 -78
- package/dist/ui/button.js +33 -55
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.d.ts +1 -1
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +6 -6
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/carousel.d.ts +3 -3
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +41 -22
- package/dist/ui/carousel.js.map +1 -1
- package/dist/ui/checkbox-group.d.ts.map +1 -1
- package/dist/ui/checkbox-group.js.map +1 -1
- package/dist/ui/checkbox.d.ts +21 -21
- package/dist/ui/checkbox.js +13 -13
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/code.d.ts.map +1 -1
- package/dist/ui/code.js +5 -5
- package/dist/ui/code.js.map +1 -1
- package/dist/ui/collapsible.js +1 -1
- package/dist/ui/collapsible.js.map +1 -1
- package/dist/ui/combobox.d.ts +107 -107
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +94 -93
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/command.d.ts +57 -58
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/command.js +54 -64
- package/dist/ui/command.js.map +1 -1
- package/dist/ui/container.d.ts.map +1 -1
- package/dist/ui/container.js.map +1 -1
- package/dist/ui/context-menu.d.ts +132 -132
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +100 -98
- package/dist/ui/context-menu.js.map +1 -1
- package/dist/ui/copy-button.d.ts +1 -3
- package/dist/ui/copy-button.d.ts.map +1 -1
- package/dist/ui/copy-button.js +40 -20
- package/dist/ui/copy-button.js.map +1 -1
- package/dist/ui/dialog.d.ts +2 -66
- package/dist/ui/dialog.js +2 -24
- package/dist/ui/drawer.d.ts +93 -93
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +68 -66
- package/dist/ui/drawer.js.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +3 -144
- package/dist/ui/dropdown-menu.js +2 -39
- package/dist/ui/dropzone.d.ts +55 -55
- package/dist/ui/dropzone.d.ts.map +1 -1
- package/dist/ui/dropzone.js +77 -72
- package/dist/ui/dropzone.js.map +1 -1
- package/dist/ui/emoji-picker.d.ts +81 -81
- package/dist/ui/emoji-picker.d.ts.map +1 -1
- package/dist/ui/emoji-picker.js +92 -87
- package/dist/ui/emoji-picker.js.map +1 -1
- package/dist/ui/empty.d.ts +62 -60
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +47 -44
- package/dist/ui/empty.js.map +1 -1
- package/dist/ui/field.d.ts +12 -12
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +9 -7
- package/dist/ui/field.js.map +1 -1
- package/dist/ui/fieldset.d.ts.map +1 -1
- package/dist/ui/fieldset.js.map +1 -1
- package/dist/ui/form.d.ts +8 -8
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/input-group.d.ts +35 -35
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +2 -28
- package/dist/ui/input-otp.d.ts +36 -36
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +29 -28
- package/dist/ui/input-otp.js.map +1 -1
- package/dist/ui/input.d.ts +2 -46
- package/dist/ui/input.js +2 -34
- package/dist/ui/item.d.ts +20 -20
- package/dist/ui/item.d.ts.map +1 -1
- package/dist/ui/item.js +22 -22
- package/dist/ui/item.js.map +1 -1
- package/dist/ui/kbd.d.ts +1 -1
- package/dist/ui/kbd.d.ts.map +1 -1
- package/dist/ui/kbd.js +8 -8
- package/dist/ui/kbd.js.map +1 -1
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js.map +1 -1
- package/dist/ui/marquee.d.ts.map +1 -1
- package/dist/ui/marquee.js +1 -1
- package/dist/ui/marquee.js.map +1 -1
- package/dist/ui/menubar.d.ts +133 -134
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +82 -81
- package/dist/ui/menubar.js.map +1 -1
- package/dist/ui/meter.d.ts.map +1 -1
- package/dist/ui/meter.js.map +1 -1
- package/dist/ui/navigation-list.d.ts +227 -227
- package/dist/ui/navigation-list.d.ts.map +1 -1
- package/dist/ui/navigation-list.js +240 -235
- package/dist/ui/navigation-list.js.map +1 -1
- package/dist/ui/navigation-menu.d.ts +82 -82
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +70 -67
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/number-field.d.ts +34 -34
- package/dist/ui/number-field.d.ts.map +1 -1
- package/dist/ui/number-field.js +24 -23
- package/dist/ui/number-field.js.map +1 -1
- package/dist/ui/pagination.d.ts +43 -43
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +57 -47
- package/dist/ui/pagination.js.map +1 -1
- package/dist/ui/pill.d.ts +3 -4
- package/dist/ui/pill.d.ts.map +1 -1
- package/dist/ui/pill.js +37 -26
- package/dist/ui/pill.js.map +1 -1
- package/dist/ui/popover.d.ts +15 -13
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +17 -14
- package/dist/ui/popover.js.map +1 -1
- package/dist/ui/portal.d.ts.map +1 -1
- package/dist/ui/portal.js +52 -11
- package/dist/ui/portal.js.map +1 -1
- package/dist/ui/preview-card.js +5 -5
- package/dist/ui/preview-card.js.map +1 -1
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/qr-code.d.ts.map +1 -1
- package/dist/ui/qr-code.js +7 -7
- package/dist/ui/qr-code.js.map +1 -1
- package/dist/ui/radio-group.d.ts +23 -23
- package/dist/ui/radio-group.js +15 -15
- package/dist/ui/radio-group.js.map +1 -1
- package/dist/ui/range-slider.d.ts +1 -1
- package/dist/ui/range-slider.d.ts.map +1 -1
- package/dist/ui/range-slider.js +4 -7
- package/dist/ui/range-slider.js.map +1 -1
- package/dist/ui/rating.d.ts +35 -35
- package/dist/ui/rating.d.ts.map +1 -1
- package/dist/ui/rating.js +55 -46
- package/dist/ui/rating.js.map +1 -1
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +2 -2
- package/dist/ui/resizable.js.map +1 -1
- package/dist/ui/scroll-area.js +1 -1
- package/dist/ui/scroll-area.js.map +1 -1
- package/dist/ui/select.d.ts +87 -87
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +85 -84
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/separator.d.ts +2 -13
- package/dist/ui/separator.js.map +1 -1
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +2 -24
- package/dist/ui/sidebar.d.ts +75 -76
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +88 -87
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/skeleton.js.map +1 -1
- package/dist/ui/slider.d.ts +1 -1
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +3 -1
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/spacer.d.ts.map +1 -1
- package/dist/ui/spacer.js +2 -2
- package/dist/ui/spacer.js.map +1 -1
- package/dist/ui/spinner.d.ts +1 -1
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/spinner.js +2 -2
- package/dist/ui/spinner.js.map +1 -1
- package/dist/ui/switch.d.ts +12 -12
- package/dist/ui/switch.js +7 -7
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.d.ts +62 -62
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +53 -47
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts +25 -25
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +75 -68
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/textarea.d.ts +2 -37
- package/dist/ui/textarea.js +2 -35
- package/dist/ui/theme-icon.d.ts +30 -30
- package/dist/ui/theme-icon.d.ts.map +1 -1
- package/dist/ui/theme-icon.js +22 -22
- package/dist/ui/theme-icon.js.map +1 -1
- package/dist/ui/timeline.d.ts +6 -6
- package/dist/ui/timeline.d.ts.map +1 -1
- package/dist/ui/timeline.js +163 -163
- package/dist/ui/timeline.js.map +1 -1
- package/dist/ui/toggle-group.d.ts +33 -33
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +22 -16
- package/dist/ui/toggle-group.js.map +1 -1
- package/dist/ui/toggle.d.ts +2 -53
- package/dist/ui/toggle.js +15 -15
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/toolbar.d.ts +56 -56
- package/dist/ui/toolbar.d.ts.map +1 -1
- package/dist/ui/toolbar.js +43 -40
- package/dist/ui/toolbar.js.map +1 -1
- package/dist/ui/tooltip.d.ts +3 -55
- package/dist/ui/tooltip.js +2 -28
- package/dist/ui/typography.d.ts +50 -36
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/typography.js +28 -17
- package/dist/ui/typography.js.map +1 -1
- package/package.json +17 -15
- package/dist/avatar-image-BQ_NEKH4.js +0 -47
- package/dist/avatar-image-BQ_NEKH4.js.map +0 -1
- package/dist/avatar-image-Ce26D2fb.d.ts.map +0 -1
- package/dist/dialog-trigger-BUF3elAP.js.map +0 -1
- package/dist/dialog-viewport-Ce1huyAI.d.ts.map +0 -1
- package/dist/dropdown-menu-trigger-BpgtLUvf.d.ts.map +0 -1
- package/dist/dropdown-menu-trigger-COnFGfDa.js.map +0 -1
- package/dist/input-group-textarea-B-rP98r5.js.map +0 -1
- package/dist/sheet-trigger-D7neoTF5.js.map +0 -1
- package/dist/size-context-BjRwqlSg.js.map +0 -1
- package/dist/size-context-DXfCAlWF.d.ts.map +0 -1
- package/dist/size-system-DTXmtQXw.js +0 -47
- package/dist/size-system-DTXmtQXw.js.map +0 -1
- package/dist/size-system-wzOLSuax.d.ts.map +0 -1
- package/dist/slider-root-presentation-ChJHPMIV.js.map +0 -1
- package/dist/slider-value-Db8SCu0c.d.ts.map +0 -1
- package/dist/tooltip-trigger-qXw-_nbh.js.map +0 -1
- package/dist/tooltip-viewport-csA6luqI.d.ts.map +0 -1
- package/dist/ui/avatar.d.ts.map +0 -1
- package/dist/ui/avatar.js.map +0 -1
- package/dist/ui/badge.js.map +0 -1
- package/dist/ui/button.d.ts.map +0 -1
- package/dist/ui/dialog.d.ts.map +0 -1
- package/dist/ui/dialog.js.map +0 -1
- package/dist/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/ui/dropdown-menu.js.map +0 -1
- package/dist/ui/input-group.js.map +0 -1
- package/dist/ui/input.d.ts.map +0 -1
- package/dist/ui/input.js.map +0 -1
- package/dist/ui/separator.d.ts.map +0 -1
- package/dist/ui/sheet.js.map +0 -1
- package/dist/ui/textarea.d.ts.map +0 -1
- package/dist/ui/textarea.js.map +0 -1
- package/dist/ui/toggle.d.ts.map +0 -1
- package/dist/ui/tooltip.d.ts.map +0 -1
- package/dist/ui/tooltip.js.map +0 -1
- package/dist/use-badge-default-props-8d9wPL0k.js +0 -8
- package/dist/use-badge-default-props-8d9wPL0k.js.map +0 -1
- package/dist/use-input-default-props-B6VgKXGM.js +0 -8
- package/dist/use-input-default-props-B6VgKXGM.js.map +0 -1
- package/dist/use-textarea-default-props-7MlOxkDO.js +0 -8
- package/dist/use-textarea-default-props-7MlOxkDO.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.d.ts","names":[],"sources":["../../src/ui/input-otp/input-otp-group.tsx","../../src/ui/input-otp/input-otp-separator.tsx","../../src/ui/input-otp/input-otp-slot.tsx","../../src/ui/input-otp/input-otp.tsx"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"input-otp.d.ts","names":[],"sources":["../../src/ui/input-otp/input-otp-group.tsx","../../src/ui/input-otp/input-otp-separator.tsx","../../src/ui/input-otp/input-otp-slot.tsx","../../src/ui/input-otp/input-otp.tsx"],"mappings":";;;;;;;;cAQM,qBAAA,EAcJ,kBAAA,CAdyB,YAAA;;;;;;;;;;;;;;;;cAczB,kBAAA,CAAA,YAAA;;;;;;;;;KAEG,yBAAA,GAA4B,YAAA,QAAoB,qBAAA;AAAA,KAEzC,kBAAA,GAAqB,cAAA,UAC/B,yBAAA;EACE,IAAA,GAAO,SAAA;AAAA;AAAA,cAGL,aAAA;EAAiB,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAA+B,kBAAA,KAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cCrBlE,yBAAA,EAcJ,kBAAA,CAd6B,YAAA;;;;;;;;;;;;;;;;cAc7B,kBAAA,CAAA,YAAA;;;;;;;;;KAEG,6BAAA,GAAgC,YAAA,QAC5B,yBAAA;AAAA,KAGG,sBAAA,GAAyB,cAAA,UACnC,6BAAA;EACE,IAAA,GAAO,SAAA;AAAA;AAAA,cAGL,iBAAA;EAAqB,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAIxB,sBAAA,KAAsB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cC9BnB,oBAAA,EAgCJ,kBAAA,CAhCwB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCxB,kBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEG,wBAAA,GAA2B,YAAA,QAAoB,oBAAA;AAAA,KACxC,iBAAA,GAAoB,cAAA;EAC9B,KAAA;AAAA,IACE,wBAAA;EACA,IAAA,GAAO,SAAA;AAAA;AAAA,cAGL,YAAA;EAAgB,KAAA;EAAA,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAKnB,iBAAA,KAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCzCf,mBAAA,GAAsB,cAAA,QAAsB,QAAA;AAAA,KAC5C,gBAAA,cAA8B,WAAA,IAAe,CAAA,mBAC9C,IAAA,CAAK,CAAA,EAAG,CAAA;AAAA,KAGA,aAAA,GAAgB,gBAAA,CAAiB,mBAAA;EAC3C,kBAAA;EACA,IAAA,GAAO,SAAA;AAAA;AAAA,cAGH,QAAA;EAAA;;;;;KAKH,aAAA,GAAa,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/ui/input-otp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { a as useComponentSize } from "../size-provider-18EvJgDT.js";
|
|
4
|
-
import { createContext, useContext } from "react";
|
|
4
|
+
import { createContext, useContext, useMemo } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { cn, tv } from "tailwind-variants";
|
|
7
7
|
import { MinusSignIcon } from "@hugeicons/core-free-icons";
|
|
@@ -14,15 +14,15 @@ const InputOTPContext = createContext({ size: "md" });
|
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/ui/input-otp/input-otp-group.tsx
|
|
16
16
|
const inputOTPGroupVariants = tv({
|
|
17
|
-
base: "
|
|
17
|
+
base: "has-aria-invalid:border-danger has-aria-invalid:ring-danger/20 dark:has-aria-invalid:ring-danger/40 flex items-center has-aria-invalid:ring-[3px]",
|
|
18
|
+
defaultVariants: { size: "md" },
|
|
18
19
|
variants: { size: {
|
|
19
|
-
xs: "rounded-[min(var(--radius-md),8px)]",
|
|
20
|
-
sm: "rounded-[min(var(--radius-md),10px)]",
|
|
21
|
-
md: "rounded-md",
|
|
22
20
|
lg: "rounded-md",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
md: "rounded-md",
|
|
22
|
+
sm: "rounded-[min(var(--radius-md),10px)]",
|
|
23
|
+
xl: "rounded-md",
|
|
24
|
+
xs: "rounded-[min(var(--radius-md),8px)]"
|
|
25
|
+
} }
|
|
26
26
|
});
|
|
27
27
|
const InputOTPGroup = ({ className, size, ...props }) => {
|
|
28
28
|
const { size: rootSize } = useContext(InputOTPContext);
|
|
@@ -39,14 +39,14 @@ const InputOTPGroup = ({ className, size, ...props }) => {
|
|
|
39
39
|
//#region src/ui/input-otp/input-otp-separator.tsx
|
|
40
40
|
const inputOTPSeparatorVariants = tv({
|
|
41
41
|
base: "flex items-center justify-center",
|
|
42
|
+
defaultVariants: { size: "md" },
|
|
42
43
|
variants: { size: {
|
|
43
|
-
xs: "[&_svg:not([class*='size-'])]:size-3",
|
|
44
|
-
sm: "[&_svg:not([class*='size-'])]:size-3.5",
|
|
45
|
-
md: "[&_svg:not([class*='size-'])]:size-4",
|
|
46
44
|
lg: "[&_svg:not([class*='size-'])]:size-4",
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
md: "[&_svg:not([class*='size-'])]:size-4",
|
|
46
|
+
sm: "[&_svg:not([class*='size-'])]:size-3.5",
|
|
47
|
+
xl: "[&_svg:not([class*='size-'])]:size-5",
|
|
48
|
+
xs: "[&_svg:not([class*='size-'])]:size-3"
|
|
49
|
+
} }
|
|
50
50
|
});
|
|
51
51
|
const InputOTPSeparator = ({ className, size, ...props }) => {
|
|
52
52
|
const { size: rootSize } = useContext(InputOTPContext);
|
|
@@ -67,33 +67,33 @@ const InputOTPSeparator = ({ className, size, ...props }) => {
|
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region src/ui/input-otp/input-otp-slot.tsx
|
|
69
69
|
const inputOTPSlotVariants = tv({
|
|
70
|
+
defaultVariants: { size: "md" },
|
|
70
71
|
slots: {
|
|
71
72
|
caret: "animate-caret-blink bg-foreground duration-1000",
|
|
72
|
-
root: "
|
|
73
|
+
root: "border-input aria-invalid:border-danger data-[active=true]:z-raised data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-danger data-[active=true]:aria-invalid:ring-danger/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-danger/40 relative flex items-center justify-center border-y border-r shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:ring-[3px]"
|
|
73
74
|
},
|
|
74
75
|
variants: { size: {
|
|
75
|
-
|
|
76
|
-
caret: "h-
|
|
77
|
-
root: "size-
|
|
78
|
-
},
|
|
79
|
-
sm: {
|
|
80
|
-
caret: "h-3.5 w-px",
|
|
81
|
-
root: "size-8 text-sm first:rounded-l-[min(var(--radius-md),10px)] last:rounded-r-[min(var(--radius-md),10px)]"
|
|
76
|
+
lg: {
|
|
77
|
+
caret: "h-4 w-px",
|
|
78
|
+
root: "size-10 text-base first:rounded-l-md last:rounded-r-md md:text-sm"
|
|
82
79
|
},
|
|
83
80
|
md: {
|
|
84
81
|
caret: "h-4 w-px",
|
|
85
82
|
root: "size-9 text-base first:rounded-l-md last:rounded-r-md md:text-sm"
|
|
86
83
|
},
|
|
87
|
-
|
|
88
|
-
caret: "h-
|
|
89
|
-
root: "size-
|
|
84
|
+
sm: {
|
|
85
|
+
caret: "h-3.5 w-px",
|
|
86
|
+
root: "size-8 text-sm first:rounded-l-[min(var(--radius-md),10px)] last:rounded-r-[min(var(--radius-md),10px)]"
|
|
90
87
|
},
|
|
91
88
|
xl: {
|
|
92
89
|
caret: "h-5 w-px",
|
|
93
90
|
root: "size-11 text-base first:rounded-l-md last:rounded-r-md"
|
|
91
|
+
},
|
|
92
|
+
xs: {
|
|
93
|
+
caret: "h-3 w-px",
|
|
94
|
+
root: "size-6 text-xs first:rounded-l-[min(var(--radius-md),8px)] last:rounded-r-[min(var(--radius-md),8px)]"
|
|
94
95
|
}
|
|
95
|
-
} }
|
|
96
|
-
defaultVariants: { size: "md" }
|
|
96
|
+
} }
|
|
97
97
|
});
|
|
98
98
|
const InputOTPSlot = ({ index, className, size, ...props }) => {
|
|
99
99
|
const inputOTPContext = useContext(OTPInputContext);
|
|
@@ -118,8 +118,9 @@ const InputOTPSlot = ({ index, className, size, ...props }) => {
|
|
|
118
118
|
//#region src/ui/input-otp/input-otp.tsx
|
|
119
119
|
const InputOTP = ({ className, containerClassName, size: providedSize, ...props }) => {
|
|
120
120
|
const size = useComponentSize(providedSize);
|
|
121
|
+
const contextValue = useMemo(() => ({ size }), [size]);
|
|
121
122
|
return /* @__PURE__ */ jsx(InputOTPContext.Provider, {
|
|
122
|
-
value:
|
|
123
|
+
value: contextValue,
|
|
123
124
|
children: /* @__PURE__ */ jsx(OTPInput, {
|
|
124
125
|
className: cn("disabled:cursor-not-allowed", className),
|
|
125
126
|
containerClassName: cn("cn-input-otp flex items-center has-disabled:opacity-50", containerClassName),
|
package/dist/ui/input-otp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.js","names":[],"sources":["../../src/ui/input-otp/input-otp-context.tsx","../../src/ui/input-otp/input-otp-group.tsx","../../src/ui/input-otp/input-otp-separator.tsx","../../src/ui/input-otp/input-otp-slot.tsx","../../src/ui/input-otp/input-otp.tsx"],"sourcesContent":["\"use client\";\n\nimport { createContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\ninterface InputOTPContextValue {\n size: InputSize;\n}\n\nconst InputOTPContext = createContext<InputOTPContextValue>({\n size: \"md\",\n});\n\nexport { InputOTPContext };\n","import type { ComponentProps } from \"react\";\n\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { InputOTPContext } from \"./input-otp-context\";\n\nconst inputOTPGroupVariants = tv({\n base: \"flex items-center has-aria-invalid:border-danger has-aria-invalid:ring-[3px] has-aria-invalid:ring-danger/20 dark:has-aria-invalid:ring-danger/40\",\n variants: {\n size: {\n xs: \"rounded-[min(var(--radius-md),8px)]\",\n sm: \"rounded-[min(var(--radius-md),10px)]\",\n md: \"rounded-md\",\n lg: \"rounded-md\",\n xl: \"rounded-md\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\ntype InputOTPGroupVariantProps = VariantProps<typeof inputOTPGroupVariants>;\n\nexport type InputOTPGroupProps = ComponentProps<\"div\"> &\n InputOTPGroupVariantProps & {\n size?: InputSize;\n };\n\nconst InputOTPGroup = ({ className, size, ...props }: InputOTPGroupProps) => {\n const { size: rootSize } = useContext(InputOTPContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <div\n className={cn(inputOTPGroupVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"input-otp-group\"\n {...props}\n />\n );\n};\n\nexport { InputOTPGroup };\n","import type { ComponentProps } from \"react\";\n\nimport { MinusSignIcon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { InputOTPContext } from \"./input-otp-context\";\n\nconst inputOTPSeparatorVariants = tv({\n base: \"flex items-center justify-center\",\n variants: {\n size: {\n xs: \"[&_svg:not([class*='size-'])]:size-3\",\n sm: \"[&_svg:not([class*='size-'])]:size-3.5\",\n md: \"[&_svg:not([class*='size-'])]:size-4\",\n lg: \"[&_svg:not([class*='size-'])]:size-4\",\n xl: \"[&_svg:not([class*='size-'])]:size-5\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\ntype InputOTPSeparatorVariantProps = VariantProps<\n typeof inputOTPSeparatorVariants\n>;\n\nexport type InputOTPSeparatorProps = ComponentProps<\"div\"> &\n InputOTPSeparatorVariantProps & {\n size?: InputSize;\n };\n\nconst InputOTPSeparator = ({\n className,\n size,\n ...props\n}: InputOTPSeparatorProps) => {\n const { size: rootSize } = useContext(InputOTPContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <div\n className={cn(\n inputOTPSeparatorVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"input-otp-separator\"\n role=\"separator\"\n {...props}\n >\n <HugeiconsIcon icon={MinusSignIcon} strokeWidth={2} />\n </div>\n );\n};\n\nexport { InputOTPSeparator };\n","import { OTPInputContext } from \"input-otp\";\nimport { type ComponentProps, useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { InputOTPContext } from \"./input-otp-context\";\n\nconst inputOTPSlotVariants = tv({\n slots: {\n caret: \"animate-caret-blink bg-foreground duration-1000\",\n root: \"relative flex items-center justify-center border-y border-r border-input shadow-xs transition-all outline-none first:border-l aria-invalid:border-danger first:rounded-l-md last:rounded-r-md data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-[3px] data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-danger data-[active=true]:aria-invalid:ring-danger/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-danger/40\",\n },\n variants: {\n size: {\n xs: {\n caret: \"h-3 w-px\",\n root: \"size-6 text-xs first:rounded-l-[min(var(--radius-md),8px)] last:rounded-r-[min(var(--radius-md),8px)]\",\n },\n sm: {\n caret: \"h-3.5 w-px\",\n root: \"size-8 text-sm first:rounded-l-[min(var(--radius-md),10px)] last:rounded-r-[min(var(--radius-md),10px)]\",\n },\n md: {\n caret: \"h-4 w-px\",\n root: \"size-9 text-base first:rounded-l-md last:rounded-r-md md:text-sm\",\n },\n lg: {\n caret: \"h-4 w-px\",\n root: \"size-10 text-base first:rounded-l-md last:rounded-r-md md:text-sm\",\n },\n xl: {\n caret: \"h-5 w-px\",\n root: \"size-11 text-base first:rounded-l-md last:rounded-r-md\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\ntype InputOTPSlotVariantProps = VariantProps<typeof inputOTPSlotVariants>;\nexport type InputOTPSlotProps = ComponentProps<\"div\"> & {\n index: number;\n} & InputOTPSlotVariantProps & {\n size?: InputSize;\n };\n\nconst InputOTPSlot = ({\n index,\n className,\n size,\n ...props\n}: InputOTPSlotProps) => {\n const inputOTPContext = useContext(OTPInputContext);\n const { size: rootSize } = useContext(InputOTPContext);\n const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n const { caret, root } = inputOTPSlotVariants({ size: resolvedSize });\n\n return (\n <div\n className={cn(root(), className)}\n data-active={isActive}\n data-size={resolvedSize}\n data-slot=\"input-otp-slot\"\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className={caret()} />\n </div>\n )}\n </div>\n );\n};\n\nexport { InputOTPSlot };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { OTPInput } from \"input-otp\";\nimport { cn } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { InputOTPContext } from \"./input-otp-context\";\nimport { InputOTPGroup } from \"./input-otp-group\";\nimport { InputOTPSeparator } from \"./input-otp-separator\";\nimport { InputOTPSlot } from \"./input-otp-slot\";\n\ntype NativeInputOTPProps = ComponentProps<typeof OTPInput>;\ntype DistributiveOmit<T, K extends PropertyKey> = T extends unknown\n ? Omit<T, K>\n : never;\n\nexport type InputOTPProps = DistributiveOmit<NativeInputOTPProps, \"size\"> & {\n containerClassName?: string;\n size?: InputSize;\n};\n\nconst InputOTP = ({\n className,\n containerClassName,\n size: providedSize,\n ...props\n}: InputOTPProps) => {\n const size = useComponentSize(providedSize);\n\n return (\n <InputOTPContext.Provider value={{ size }}>\n <OTPInput\n className={cn(\"disabled:cursor-not-allowed\", className)}\n containerClassName={cn(\n \"cn-input-otp flex items-center has-disabled:opacity-50\",\n containerClassName\n )}\n data-size={size}\n data-slot=\"input-otp\"\n spellCheck={false}\n {...props}\n />\n </InputOTPContext.Provider>\n );\n};\n\nInputOTP.Group = InputOTPGroup;\nInputOTP.Separator = InputOTPSeparator;\nInputOTP.Slot = InputOTPSlot;\n\nexport { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };\n\nexport type { InputOTPGroupProps } from \"./input-otp-group\";\nexport type { InputOTPSeparatorProps } from \"./input-otp-separator\";\nexport type { InputOTPSlotProps } from \"./input-otp-slot\";\n"],"mappings":";;;;;;;;;;;AAUA,MAAM,kBAAkB,cAAoC,EAC1D,MAAM,MACP,CAAC;;;;ACHF,MAAM,wBAAwB,GAAG;CAC/B,MAAM;CACN,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC;AASF,MAAM,iBAAiB,EAAE,WAAW,MAAM,GAAG,YAAgC;CAC3E,MAAM,EAAE,MAAM,aAAa,WAAW,gBAAgB;CACtD,MAAM,eAA0B,QAAQ,YAAY;AAEpD,QACE,oBAAC;EACC,WAAW,GAAG,sBAAsB,EAAE,MAAM,cAAc,CAAC,EAAE,UAAU;EACvE,aAAW;EACX,aAAU;EACV,GAAI;GACJ;;;;;AC/BN,MAAM,4BAA4B,GAAG;CACnC,MAAM;CACN,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC;AAWF,MAAM,qBAAqB,EACzB,WACA,MACA,GAAG,YACyB;CAC5B,MAAM,EAAE,MAAM,aAAa,WAAW,gBAAgB;CACtD,MAAM,eAA0B,QAAQ,YAAY;AAEpD,QACE,oBAAC;EACC,WAAW,GACT,0BAA0B,EAAE,MAAM,cAAc,CAAC,EACjD,UACD;EACD,aAAW;EACX,aAAU;EACV,MAAK;EACL,GAAI;YAEJ,oBAAC;GAAc,MAAM;GAAe,aAAa;IAAK;GAClD;;;;;AChDV,MAAM,uBAAuB,GAAG;CAC9B,OAAO;EACL,OAAO;EACP,MAAM;EACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;GACF,OAAO;GACP,MAAM;GACP;EACD,IAAI;GACF,OAAO;GACP,MAAM;GACP;EACD,IAAI;GACF,OAAO;GACP,MAAM;GACP;EACD,IAAI;GACF,OAAO;GACP,MAAM;GACP;EACD,IAAI;GACF,OAAO;GACP,MAAM;GACP;EACF,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC;AASF,MAAM,gBAAgB,EACpB,OACA,WACA,MACA,GAAG,YACoB;CACvB,MAAM,kBAAkB,WAAW,gBAAgB;CACnD,MAAM,EAAE,MAAM,aAAa,WAAW,gBAAgB;CACtD,MAAM,EAAE,MAAM,cAAc,aAAa,iBAAiB,MAAM,UAAU,EAAE;CAC5E,MAAM,eAA0B,QAAQ,YAAY;CACpD,MAAM,EAAE,OAAO,SAAS,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAEpE,QACE,qBAAC;EACC,WAAW,GAAG,MAAM,EAAE,UAAU;EAChC,eAAa;EACb,aAAW;EACX,aAAU;EACV,GAAI;aAEH,MACA,gBACC,oBAAC;GAAI,WAAU;aACb,oBAAC,SAAI,WAAW,OAAO,GAAI;IACvB;GAEJ;;;;;AClDV,MAAM,YAAY,EAChB,WACA,oBACA,MAAM,cACN,GAAG,YACgB;CACnB,MAAM,OAAO,iBAAiB,aAAa;AAE3C,QACE,oBAAC,gBAAgB;EAAS,OAAO,EAAE,MAAM;YACvC,oBAAC;GACC,WAAW,GAAG,+BAA+B,UAAU;GACvD,oBAAoB,GAClB,0DACA,mBACD;GACD,aAAW;GACX,aAAU;GACV,YAAY;GACZ,GAAI;IACJ;GACuB;;AAI/B,SAAS,QAAQ;AACjB,SAAS,YAAY;AACrB,SAAS,OAAO"}
|
|
1
|
+
{"version":3,"file":"input-otp.js","names":[],"sources":["../../src/ui/input-otp/input-otp-context.tsx","../../src/ui/input-otp/input-otp-group.tsx","../../src/ui/input-otp/input-otp-separator.tsx","../../src/ui/input-otp/input-otp-slot.tsx","../../src/ui/input-otp/input-otp.tsx"],"sourcesContent":["\"use client\";\n\nimport { createContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\ninterface InputOTPContextValue {\n size: InputSize;\n}\n\nconst InputOTPContext = createContext<InputOTPContextValue>({\n size: \"md\",\n});\n\nexport { InputOTPContext };\n","import type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { InputOTPContext } from \"./input-otp-context\";\n\nconst inputOTPGroupVariants = tv({\n base: \"has-aria-invalid:border-danger has-aria-invalid:ring-danger/20 dark:has-aria-invalid:ring-danger/40 flex items-center has-aria-invalid:ring-[3px]\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"rounded-md\",\n md: \"rounded-md\",\n sm: \"rounded-[min(var(--radius-md),10px)]\",\n xl: \"rounded-md\",\n xs: \"rounded-[min(var(--radius-md),8px)]\",\n },\n },\n});\n\ntype InputOTPGroupVariantProps = VariantProps<typeof inputOTPGroupVariants>;\n\nexport type InputOTPGroupProps = ComponentProps<\"div\"> &\n InputOTPGroupVariantProps & {\n size?: InputSize;\n };\n\nconst InputOTPGroup = ({ className, size, ...props }: InputOTPGroupProps) => {\n const { size: rootSize } = useContext(InputOTPContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <div\n className={cn(inputOTPGroupVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"input-otp-group\"\n {...props}\n />\n );\n};\n\nexport { InputOTPGroup };\n","import { MinusSignIcon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { InputOTPContext } from \"./input-otp-context\";\n\nconst inputOTPSeparatorVariants = tv({\n base: \"flex items-center justify-center\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"[&_svg:not([class*='size-'])]:size-4\",\n md: \"[&_svg:not([class*='size-'])]:size-4\",\n sm: \"[&_svg:not([class*='size-'])]:size-3.5\",\n xl: \"[&_svg:not([class*='size-'])]:size-5\",\n xs: \"[&_svg:not([class*='size-'])]:size-3\",\n },\n },\n});\n\ntype InputOTPSeparatorVariantProps = VariantProps<\n typeof inputOTPSeparatorVariants\n>;\n\nexport type InputOTPSeparatorProps = ComponentProps<\"div\"> &\n InputOTPSeparatorVariantProps & {\n size?: InputSize;\n };\n\nconst InputOTPSeparator = ({\n className,\n size,\n ...props\n}: InputOTPSeparatorProps) => {\n const { size: rootSize } = useContext(InputOTPContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <div\n className={cn(\n inputOTPSeparatorVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"input-otp-separator\"\n role=\"separator\"\n {...props}\n >\n <HugeiconsIcon icon={MinusSignIcon} strokeWidth={2} />\n </div>\n );\n};\n\nexport { InputOTPSeparator };\n","import { OTPInputContext } from \"input-otp\";\nimport { useContext } from \"react\";\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { InputOTPContext } from \"./input-otp-context\";\n\nconst inputOTPSlotVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n slots: {\n caret: \"animate-caret-blink bg-foreground duration-1000\",\n root: \"border-input aria-invalid:border-danger data-[active=true]:z-raised data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-danger data-[active=true]:aria-invalid:ring-danger/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-danger/40 relative flex items-center justify-center border-y border-r shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:ring-[3px]\",\n },\n variants: {\n size: {\n lg: {\n caret: \"h-4 w-px\",\n root: \"size-10 text-base first:rounded-l-md last:rounded-r-md md:text-sm\",\n },\n md: {\n caret: \"h-4 w-px\",\n root: \"size-9 text-base first:rounded-l-md last:rounded-r-md md:text-sm\",\n },\n sm: {\n caret: \"h-3.5 w-px\",\n root: \"size-8 text-sm first:rounded-l-[min(var(--radius-md),10px)] last:rounded-r-[min(var(--radius-md),10px)]\",\n },\n xl: {\n caret: \"h-5 w-px\",\n root: \"size-11 text-base first:rounded-l-md last:rounded-r-md\",\n },\n xs: {\n caret: \"h-3 w-px\",\n root: \"size-6 text-xs first:rounded-l-[min(var(--radius-md),8px)] last:rounded-r-[min(var(--radius-md),8px)]\",\n },\n },\n },\n});\n\ntype InputOTPSlotVariantProps = VariantProps<typeof inputOTPSlotVariants>;\nexport type InputOTPSlotProps = ComponentProps<\"div\"> & {\n index: number;\n} & InputOTPSlotVariantProps & {\n size?: InputSize;\n };\n\nconst InputOTPSlot = ({\n index,\n className,\n size,\n ...props\n}: InputOTPSlotProps) => {\n const inputOTPContext = useContext(OTPInputContext);\n const { size: rootSize } = useContext(InputOTPContext);\n const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n const { caret, root } = inputOTPSlotVariants({ size: resolvedSize });\n\n return (\n <div\n className={cn(root(), className)}\n data-active={isActive}\n data-size={resolvedSize}\n data-slot=\"input-otp-slot\"\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className={caret()} />\n </div>\n )}\n </div>\n );\n};\n\nexport { InputOTPSlot };\n","\"use client\";\n\nimport { OTPInput } from \"input-otp\";\nimport type { ComponentProps } from \"react\";\nimport { useMemo } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { InputOTPContext } from \"./input-otp-context\";\nimport { InputOTPGroup } from \"./input-otp-group\";\nimport { InputOTPSeparator } from \"./input-otp-separator\";\nimport { InputOTPSlot } from \"./input-otp-slot\";\n\ntype NativeInputOTPProps = ComponentProps<typeof OTPInput>;\ntype DistributiveOmit<T, K extends PropertyKey> = T extends unknown\n ? Omit<T, K>\n : never;\n\nexport type InputOTPProps = DistributiveOmit<NativeInputOTPProps, \"size\"> & {\n containerClassName?: string;\n size?: InputSize;\n};\n\nconst InputOTP = ({\n className,\n containerClassName,\n size: providedSize,\n ...props\n}: InputOTPProps) => {\n const size = useComponentSize(providedSize);\n const contextValue = useMemo(() => ({ size }), [size]);\n\n return (\n <InputOTPContext.Provider value={contextValue}>\n <OTPInput\n className={cn(\"disabled:cursor-not-allowed\", className)}\n containerClassName={cn(\n \"cn-input-otp flex items-center has-disabled:opacity-50\",\n containerClassName\n )}\n data-size={size}\n data-slot=\"input-otp\"\n spellCheck={false}\n {...props}\n />\n </InputOTPContext.Provider>\n );\n};\n\nInputOTP.Group = InputOTPGroup;\nInputOTP.Separator = InputOTPSeparator;\nInputOTP.Slot = InputOTPSlot;\n\nexport { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };\n\nexport type { InputOTPGroupProps } from \"./input-otp-group\";\nexport type { InputOTPSeparatorProps } from \"./input-otp-separator\";\nexport type { InputOTPSlotProps } from \"./input-otp-slot\";\n"],"mappings":";;;;;;;;;;;AAUA,MAAM,kBAAkB,cAAoC,EAC1D,MAAM,MACP,CAAC;;;;ACJF,MAAM,wBAAwB,GAAG;CAC/B,MAAM;CACN,iBAAiB,EACf,MAAM,MACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACF,CAAC;AASF,MAAM,iBAAiB,EAAE,WAAW,MAAM,GAAG,YAAgC;CAC3E,MAAM,EAAE,MAAM,aAAa,WAAW,gBAAgB;CACtD,MAAM,eAA0B,QAAQ,YAAY;AAEpD,QACE,oBAAC,OAAD;EACE,WAAW,GAAG,sBAAsB,EAAE,MAAM,cAAc,CAAC,EAAE,UAAU;EACvE,aAAW;EACX,aAAU;EACV,GAAI;EACJ;;;;;AC/BN,MAAM,4BAA4B,GAAG;CACnC,MAAM;CACN,iBAAiB,EACf,MAAM,MACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACF,CAAC;AAWF,MAAM,qBAAqB,EACzB,WACA,MACA,GAAG,YACyB;CAC5B,MAAM,EAAE,MAAM,aAAa,WAAW,gBAAgB;CACtD,MAAM,eAA0B,QAAQ,YAAY;AAEpD,QACE,oBAAC,OAAD;EACE,WAAW,GACT,0BAA0B,EAAE,MAAM,cAAc,CAAC,EACjD,UACD;EACD,aAAW;EACX,aAAU;EACV,MAAK;EACL,GAAI;YAEJ,oBAAC,eAAD;GAAe,MAAM;GAAe,aAAa;GAAK;EAClD;;;;;AC9CV,MAAM,uBAAuB,GAAG;CAC9B,iBAAiB,EACf,MAAM,MACP;CACD,OAAO;EACL,OAAO;EACP,MAAM;EACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;GACF,OAAO;GACP,MAAM;GACP;EACD,IAAI;GACF,OAAO;GACP,MAAM;GACP;EACD,IAAI;GACF,OAAO;GACP,MAAM;GACP;EACD,IAAI;GACF,OAAO;GACP,MAAM;GACP;EACD,IAAI;GACF,OAAO;GACP,MAAM;GACP;EACF,EACF;CACF,CAAC;AASF,MAAM,gBAAgB,EACpB,OACA,WACA,MACA,GAAG,YACoB;CACvB,MAAM,kBAAkB,WAAW,gBAAgB;CACnD,MAAM,EAAE,MAAM,aAAa,WAAW,gBAAgB;CACtD,MAAM,EAAE,MAAM,cAAc,aAAa,iBAAiB,MAAM,UAAU,EAAE;CAC5E,MAAM,eAA0B,QAAQ,YAAY;CACpD,MAAM,EAAE,OAAO,SAAS,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAEpE,QACE,qBAAC,OAAD;EACE,WAAW,GAAG,MAAM,EAAE,UAAU;EAChC,eAAa;EACb,aAAW;EACX,aAAU;EACV,GAAI;YALN,CAOG,MACA,gBACC,oBAAC,OAAD;GAAK,WAAU;aACb,oBAAC,OAAD,EAAK,WAAW,OAAO,EAAI;GACvB,EAEJ;;;;;;ACpDV,MAAM,YAAY,EAChB,WACA,oBACA,MAAM,cACN,GAAG,YACgB;CACnB,MAAM,OAAO,iBAAiB,aAAa;CAC3C,MAAM,eAAe,eAAe,EAAE,MAAM,GAAG,CAAC,KAAK,CAAC;AAEtD,QACE,oBAAC,gBAAgB,UAAjB;EAA0B,OAAO;YAC/B,oBAAC,UAAD;GACE,WAAW,GAAG,+BAA+B,UAAU;GACvD,oBAAoB,GAClB,0DACA,mBACD;GACD,aAAW;GACX,aAAU;GACV,YAAY;GACZ,GAAI;GACJ;EACuB;;AAI/B,SAAS,QAAQ;AACjB,SAAS,YAAY;AACrB,SAAS,OAAO"}
|
package/dist/ui/input.d.ts
CHANGED
|
@@ -1,46 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
import * as tailwind_variants0 from "tailwind-variants";
|
|
5
|
-
import { VariantProps } from "tailwind-variants";
|
|
6
|
-
import { Input as Input$1 } from "@base-ui/react/input";
|
|
7
|
-
|
|
8
|
-
//#region src/ui/input/input.d.ts
|
|
9
|
-
declare const inputVariants: tailwind_variants0.TVReturnType<{
|
|
10
|
-
size: {
|
|
11
|
-
xs: string;
|
|
12
|
-
sm: string;
|
|
13
|
-
md: string;
|
|
14
|
-
lg: string;
|
|
15
|
-
xl: string;
|
|
16
|
-
};
|
|
17
|
-
}, undefined, "w-full min-w-0 border border-input bg-transparent transition-colors outline-none file:inline-flex file:border-0 file:bg-transparent file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-[3px] aria-invalid:ring-danger/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-danger/50 dark:aria-invalid:ring-danger/40", {
|
|
18
|
-
size: {
|
|
19
|
-
xs: string;
|
|
20
|
-
sm: string;
|
|
21
|
-
md: string;
|
|
22
|
-
lg: string;
|
|
23
|
-
xl: string;
|
|
24
|
-
};
|
|
25
|
-
}, undefined, tailwind_variants0.TVReturnType<{
|
|
26
|
-
size: {
|
|
27
|
-
xs: string;
|
|
28
|
-
sm: string;
|
|
29
|
-
md: string;
|
|
30
|
-
lg: string;
|
|
31
|
-
xl: string;
|
|
32
|
-
};
|
|
33
|
-
}, undefined, "w-full min-w-0 border border-input bg-transparent transition-colors outline-none file:inline-flex file:border-0 file:bg-transparent file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-[3px] aria-invalid:ring-danger/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-danger/50 dark:aria-invalid:ring-danger/40", unknown, unknown, undefined>>;
|
|
34
|
-
type InputVariantProps = Omit<VariantProps<typeof inputVariants>, "size"> & {
|
|
35
|
-
size?: UISize;
|
|
36
|
-
};
|
|
37
|
-
type NativeInputProps = ComponentProps<typeof Input$1>;
|
|
38
|
-
type NativeInputSize = NativeInputProps["size"];
|
|
39
|
-
type InputSize = UISize;
|
|
40
|
-
type InputProps = Omit<NativeInputProps, "size"> & InputVariantProps & {
|
|
41
|
-
htmlSize?: NativeInputSize;
|
|
42
|
-
};
|
|
43
|
-
declare const Input: (incomingProps: InputProps) => react_jsx_runtime0.JSX.Element;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { Input, InputProps, InputSize };
|
|
46
|
-
//# sourceMappingURL=input.d.ts.map
|
|
1
|
+
import { n as InputProps, r as InputSize, t as Input } from "../input-BeE717GK.js";
|
|
2
|
+
export { Input, InputProps, InputSize };
|
package/dist/ui/input.js
CHANGED
|
@@ -1,37 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { t as mergeBaseUIClassName } from "../merge-base-ui-class-name-HKsgjcXj.js";
|
|
5
|
-
import { t as useInputDefaultProps } from "../use-input-default-props-B6VgKXGM.js";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import { tv } from "tailwind-variants";
|
|
8
|
-
import { Input as Input$1 } from "@base-ui/react/input";
|
|
3
|
+
import { t as Input } from "../input-cICL6sH_.js";
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
const inputVariants = tv({
|
|
12
|
-
base: "w-full min-w-0 border border-input bg-transparent transition-colors outline-none file:inline-flex file:border-0 file:bg-transparent file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-[3px] aria-invalid:ring-danger/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-danger/50 dark:aria-invalid:ring-danger/40",
|
|
13
|
-
variants: { size: {
|
|
14
|
-
xs: "h-6 rounded-[min(var(--radius-md),8px)] px-2 py-0.5 text-xs file:h-5 file:text-xs",
|
|
15
|
-
sm: "h-8 rounded-[min(var(--radius-md),10px)] px-2.5 py-1 text-sm file:h-6 file:text-xs",
|
|
16
|
-
md: "h-9 rounded-md px-2.5 py-1 text-base file:h-7 file:text-sm md:text-sm",
|
|
17
|
-
lg: "h-10 rounded-md px-3 py-1.5 text-base file:h-8 file:text-sm md:text-sm",
|
|
18
|
-
xl: "h-11 rounded-md px-4 py-1.5 text-base file:h-8 file:text-base"
|
|
19
|
-
} },
|
|
20
|
-
defaultVariants: { size: "md" }
|
|
21
|
-
});
|
|
22
|
-
const Input = (incomingProps) => {
|
|
23
|
-
const { className, htmlSize, size: providedSize, type, ...props } = useInputDefaultProps(incomingProps);
|
|
24
|
-
const size = useComponentSize(providedSize);
|
|
25
|
-
return /* @__PURE__ */ jsx(Input$1, {
|
|
26
|
-
className: mergeBaseUIClassName(inputVariants({ size }), className),
|
|
27
|
-
"data-size": size,
|
|
28
|
-
"data-slot": "input",
|
|
29
|
-
size: htmlSize,
|
|
30
|
-
type,
|
|
31
|
-
...props
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
export { Input };
|
|
37
|
-
//# sourceMappingURL=input.js.map
|
|
5
|
+
export { Input };
|
package/dist/ui/item.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Separator } from "
|
|
1
|
+
import { t as Separator } from "../separator-CgOz2m5i.js";
|
|
2
2
|
import * as react from "react";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -92,45 +92,45 @@ declare const ItemTitle: ({
|
|
|
92
92
|
//#region src/ui/item/item.d.ts
|
|
93
93
|
type ItemProps = useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>;
|
|
94
94
|
declare const itemVariants: tailwind_variants0.TVReturnType<{
|
|
95
|
-
variant: {
|
|
96
|
-
default: string;
|
|
97
|
-
outline: string;
|
|
98
|
-
muted: string;
|
|
99
|
-
};
|
|
100
95
|
size: {
|
|
101
|
-
xs: string;
|
|
102
|
-
sm: string;
|
|
103
|
-
md: string;
|
|
104
96
|
lg: string;
|
|
97
|
+
md: string;
|
|
98
|
+
sm: string;
|
|
105
99
|
xl: string;
|
|
100
|
+
xs: string;
|
|
106
101
|
};
|
|
107
|
-
}, undefined, "group/item flex w-full flex-wrap items-center rounded-md border border-border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted", {
|
|
108
102
|
variant: {
|
|
109
103
|
default: string;
|
|
110
|
-
outline: string;
|
|
111
104
|
muted: string;
|
|
105
|
+
outline: string;
|
|
112
106
|
};
|
|
107
|
+
}, undefined, "group/item border-border focus-visible:border-ring focus-visible:ring-ring/50 [a]:hover:bg-muted flex w-full flex-wrap items-center rounded-md border text-sm transition-colors duration-100 outline-none focus-visible:ring-[3px] [a]:transition-colors", {
|
|
113
108
|
size: {
|
|
114
|
-
xs: string;
|
|
115
|
-
sm: string;
|
|
116
|
-
md: string;
|
|
117
109
|
lg: string;
|
|
110
|
+
md: string;
|
|
111
|
+
sm: string;
|
|
118
112
|
xl: string;
|
|
113
|
+
xs: string;
|
|
119
114
|
};
|
|
120
|
-
}, undefined, tailwind_variants0.TVReturnType<{
|
|
121
115
|
variant: {
|
|
122
116
|
default: string;
|
|
123
|
-
outline: string;
|
|
124
117
|
muted: string;
|
|
118
|
+
outline: string;
|
|
125
119
|
};
|
|
120
|
+
}, undefined, tailwind_variants0.TVReturnType<{
|
|
126
121
|
size: {
|
|
127
|
-
xs: string;
|
|
128
|
-
sm: string;
|
|
129
|
-
md: string;
|
|
130
122
|
lg: string;
|
|
123
|
+
md: string;
|
|
124
|
+
sm: string;
|
|
131
125
|
xl: string;
|
|
126
|
+
xs: string;
|
|
127
|
+
};
|
|
128
|
+
variant: {
|
|
129
|
+
default: string;
|
|
130
|
+
muted: string;
|
|
131
|
+
outline: string;
|
|
132
132
|
};
|
|
133
|
-
}, undefined, "group/item flex w-full flex-wrap items-center rounded-md border
|
|
133
|
+
}, undefined, "group/item border-border focus-visible:border-ring focus-visible:ring-ring/50 [a]:hover:bg-muted flex w-full flex-wrap items-center rounded-md border text-sm transition-colors duration-100 outline-none focus-visible:ring-[3px] [a]:transition-colors", unknown, unknown, undefined>>;
|
|
134
134
|
declare const Item: {
|
|
135
135
|
({
|
|
136
136
|
className,
|
package/dist/ui/item.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","names":[],"sources":["../../src/ui/item/item-actions.tsx","../../src/ui/item/item-content.tsx","../../src/ui/item/item-description.tsx","../../src/ui/item/item-footer.tsx","../../src/ui/item/item-group.tsx","../../src/ui/item/item-header.tsx","../../src/ui/item/item-media.tsx","../../src/ui/item/item-separator.tsx","../../src/ui/item/item-title.tsx","../../src/ui/item/item.tsx"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"item.d.ts","names":[],"sources":["../../src/ui/item/item-actions.tsx","../../src/ui/item/item-content.tsx","../../src/ui/item/item-description.tsx","../../src/ui/item/item-footer.tsx","../../src/ui/item/item-group.tsx","../../src/ui/item/item-header.tsx","../../src/ui/item/item-media.tsx","../../src/ui/item/item-separator.tsx","../../src/ui/item/item-title.tsx","../../src/ui/item/item.tsx"],"mappings":";;;;;;;;;KAEY,gBAAA,GAAmB,cAAA;AAAA,cAEzB,WAAA;EAAe,SAAA;EAAA,GAAA;AAAA,GAAyB,gBAAA,KAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCFlD,gBAAA,GAAmB,cAAA;AAAA,cAEzB,WAAA;EAAe,SAAA;EAAA,GAAA;AAAA,GAAyB,gBAAA,KAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCFlD,oBAAA,GAAuB,cAAA;AAAA,cAE7B,eAAA;EAAmB,SAAA;EAAA,GAAA;AAAA,GAAyB,oBAAA,KAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCF1D,eAAA,GAAkB,cAAA;AAAA,cAExB,UAAA;EAAc,SAAA;EAAA,GAAA;AAAA,GAAyB,eAAA,KAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCFhD,cAAA,GAAiB,cAAA;AAAA,cAEvB,SAAA;EAAa,SAAA;EAAA,GAAA;AAAA,GAAyB,cAAA,KAAc,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCF9C,eAAA,GAAkB,cAAA;AAAA,cAExB,UAAA;EAAc,SAAA;EAAA,GAAA;AAAA,GAAyB,eAAA,KAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCDhD,cAAA,GAAiB,cAAA,UAC3B,YAAA,QAAoB,iBAAA;AAAA,cAEhB,iBAAA,EAaJ,kBAAA,CAbqB,YAAA;;;;;;;;;;;;cAarB,kBAAA,CAAA,YAAA;;;;;;;cAEI,SAAA;EAAa,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAIhB,cAAA,KAAc,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCrBL,kBAAA,GAAqB,cAAA,QAAsB,SAAA;AAAA,cAEjD,aAAA;EAAiB,SAAA;EAAA,GAAA;AAAA,GAAyB,kBAAA,KAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCJtD,cAAA,GAAiB,cAAA;AAAA,cAEvB,SAAA;EAAa,SAAA;EAAA,GAAA;AAAA,GAAyB,cAAA,KAAc,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCa9C,SAAA,GAAY,SAAA,CAAU,cAAA,UAChC,YAAA,QAAoB,YAAA;AAAA,cAEhB,YAAA,EAoBJ,kBAAA,CApBgB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBhB,kBAAA,CAAA,YAAA;;;;;;;;;;;;;;cAEI,IAAA;EAAA;;;;;;KAMH,SAAA,GAAS,KAAA,CAAA,YAAA,mBAAA,KAAA,CAAA,qBAAA"}
|
package/dist/ui/item.js
CHANGED
|
@@ -25,7 +25,7 @@ const ItemContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/ui/item/item-description.tsx
|
|
27
27
|
const ItemDescription = ({ className, ...props }) => /* @__PURE__ */ jsx("p", {
|
|
28
|
-
className: cn("line-clamp-2 text-left text-sm leading-normal font-normal
|
|
28
|
+
className: cn("text-muted-foreground [&>a:hover]:text-primary-foreground line-clamp-2 text-left text-sm leading-normal font-normal group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4", className),
|
|
29
29
|
"data-slot": "item-description",
|
|
30
30
|
...props
|
|
31
31
|
});
|
|
@@ -59,12 +59,12 @@ const ItemHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
|
59
59
|
//#region src/ui/item/item-media.tsx
|
|
60
60
|
const itemMediaVariants = tv({
|
|
61
61
|
base: "flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",
|
|
62
|
+
defaultVariants: { variant: "default" },
|
|
62
63
|
variants: { variant: {
|
|
63
64
|
default: "bg-transparent",
|
|
64
65
|
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
65
|
-
image: "overflow-hidden rounded-sm group-data-[size=
|
|
66
|
-
} }
|
|
67
|
-
defaultVariants: { variant: "default" }
|
|
66
|
+
image: "overflow-hidden rounded-sm group-data-[size=lg]/item:size-12 group-data-[size=md]/item:size-10 group-data-[size=sm]/item:size-8 group-data-[size=xl]/item:size-14 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"
|
|
67
|
+
} }
|
|
68
68
|
});
|
|
69
69
|
const ItemMedia = ({ className, variant = "default", ...props }) => /* @__PURE__ */ jsx("div", {
|
|
70
70
|
className: cn(itemMediaVariants({ variant }), className),
|
|
@@ -93,24 +93,24 @@ const ItemTitle = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region src/ui/item/item.tsx
|
|
95
95
|
const itemVariants = tv({
|
|
96
|
-
base: "group/item flex w-full flex-wrap items-center rounded-md border
|
|
96
|
+
base: "group/item border-border focus-visible:border-ring focus-visible:ring-ring/50 [a]:hover:bg-muted flex w-full flex-wrap items-center rounded-md border text-sm transition-colors duration-100 outline-none focus-visible:ring-[3px] [a]:transition-colors",
|
|
97
|
+
defaultVariants: {
|
|
98
|
+
size: "md",
|
|
99
|
+
variant: "default"
|
|
100
|
+
},
|
|
97
101
|
variants: {
|
|
98
|
-
variant: {
|
|
99
|
-
default: "border-transparent",
|
|
100
|
-
outline: "border-border",
|
|
101
|
-
muted: "border-transparent bg-muted/50"
|
|
102
|
-
},
|
|
103
102
|
size: {
|
|
104
|
-
xs: "gap-2 px-2.5 py-2 [[data-slot=dropdown-menu-content]_&]:p-0",
|
|
105
|
-
sm: "gap-2.5 px-3 py-2.5",
|
|
106
|
-
md: "gap-3.5 px-4 py-3.5",
|
|
107
103
|
lg: "gap-4 px-4 py-4",
|
|
108
|
-
|
|
104
|
+
md: "gap-3.5 px-4 py-3.5",
|
|
105
|
+
sm: "gap-2.5 px-3 py-2.5",
|
|
106
|
+
xl: "gap-4 px-5 py-4.5 text-base",
|
|
107
|
+
xs: "gap-2 px-2.5 py-2 [[data-slot=dropdown-menu-content]_&]:p-0"
|
|
108
|
+
},
|
|
109
|
+
variant: {
|
|
110
|
+
default: "border-transparent",
|
|
111
|
+
muted: "bg-muted/50 border-transparent",
|
|
112
|
+
outline: "border-border"
|
|
109
113
|
}
|
|
110
|
-
},
|
|
111
|
-
defaultVariants: {
|
|
112
|
-
variant: "default",
|
|
113
|
-
size: "md"
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
const Item = ({ className, variant = "default", size: providedSize, render, ...props }) => {
|
|
@@ -118,14 +118,14 @@ const Item = ({ className, variant = "default", size: providedSize, render, ...p
|
|
|
118
118
|
return useRender({
|
|
119
119
|
defaultTagName: "div",
|
|
120
120
|
props: mergeProps({ className: cn(itemVariants({
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
size,
|
|
122
|
+
variant
|
|
123
123
|
}), className) }, props),
|
|
124
124
|
render,
|
|
125
125
|
state: {
|
|
126
|
+
size,
|
|
126
127
|
slot: "item",
|
|
127
|
-
variant
|
|
128
|
-
size
|
|
128
|
+
variant
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
};
|
package/dist/ui/item.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","names":[],"sources":["../../src/ui/item/item-actions.tsx","../../src/ui/item/item-content.tsx","../../src/ui/item/item-description.tsx","../../src/ui/item/item-footer.tsx","../../src/ui/item/item-group.tsx","../../src/ui/item/item-header.tsx","../../src/ui/item/item-media.tsx","../../src/ui/item/item-separator.tsx","../../src/ui/item/item-title.tsx","../../src/ui/item/item.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type ItemActionsProps = ComponentProps<\"div\">;\n\nconst ItemActions = ({ className, ...props }: ItemActionsProps) => (\n <div\n className={cn(\"flex items-center gap-2\", className)}\n data-slot=\"item-actions\"\n {...props}\n />\n);\n\nexport { ItemActions };\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type ItemContentProps = ComponentProps<\"div\">;\n\nconst ItemContent = ({ className, ...props }: ItemContentProps) => (\n <div\n className={cn(\n \"flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none\",\n className\n )}\n data-slot=\"item-content\"\n {...props}\n />\n);\n\nexport { ItemContent };\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type ItemDescriptionProps = ComponentProps<\"p\">;\n\nconst ItemDescription = ({ className, ...props }: ItemDescriptionProps) => (\n <p\n className={cn(\n \"line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary-foreground\",\n className\n )}\n data-slot=\"item-description\"\n {...props}\n />\n);\n\nexport { ItemDescription };\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type ItemFooterProps = ComponentProps<\"div\">;\n\nconst ItemFooter = ({ className, ...props }: ItemFooterProps) => (\n <div\n className={cn(\n \"flex basis-full items-center justify-between gap-2\",\n className\n )}\n data-slot=\"item-footer\"\n {...props}\n />\n);\n\nexport { ItemFooter };\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type ItemGroupProps = ComponentProps<\"div\">;\n\nconst ItemGroup = ({ className, ...props }: ItemGroupProps) => (\n <div\n className={cn(\n \"group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2\",\n className\n )}\n data-slot=\"item-group\"\n role=\"list\"\n {...props}\n />\n);\n\nexport { ItemGroup };\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type ItemHeaderProps = ComponentProps<\"div\">;\n\nconst ItemHeader = ({ className, ...props }: ItemHeaderProps) => (\n <div\n className={cn(\n \"flex basis-full items-center justify-between gap-2\",\n className\n )}\n data-slot=\"item-header\"\n {...props}\n />\n);\n\nexport { ItemHeader };\n","import type { ComponentProps } from \"react\";\n\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\nexport type ItemMediaProps = ComponentProps<\"div\"> &\n VariantProps<typeof itemMediaVariants>;\n\nconst itemMediaVariants = tv({\n base: \"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none\",\n variants: {\n variant: {\n default: \"bg-transparent\",\n icon: \"[&_svg:not([class*='size-'])]:size-4\",\n image:\n \"overflow-hidden rounded-sm group-data-[size=xs]/item:size-6 group-data-[size=sm]/item:size-8 group-data-[size=md]/item:size-10 group-data-[size=lg]/item:size-12 group-data-[size=xl]/item:size-14 [&_img]:size-full [&_img]:object-cover\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\nconst ItemMedia = ({\n className,\n variant = \"default\",\n ...props\n}: ItemMediaProps) => (\n <div\n className={cn(itemMediaVariants({ variant }), className)}\n data-slot=\"item-media\"\n data-variant={variant}\n {...props}\n />\n);\n\nexport { ItemMedia };\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\n\nimport { Separator } from \"../separator/separator\";\nexport type ItemSeparatorProps = ComponentProps<typeof Separator>;\n\nconst ItemSeparator = ({ className, ...props }: ItemSeparatorProps) => (\n <Separator\n className={cn(\"my-2\", className)}\n data-slot=\"item-separator\"\n orientation=\"horizontal\"\n {...props}\n />\n);\n\nexport { ItemSeparator };\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type ItemTitleProps = ComponentProps<\"div\">;\n\nconst ItemTitle = ({ className, ...props }: ItemTitleProps) => (\n <div\n className={cn(\n \"line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4\",\n className\n )}\n data-slot=\"item-title\"\n {...props}\n />\n);\n\nexport { ItemTitle };\n","\"use client\";\n\nimport { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { ItemActions } from \"./item-actions\";\nimport { ItemContent } from \"./item-content\";\nimport { ItemDescription } from \"./item-description\";\nimport { ItemFooter } from \"./item-footer\";\nimport { ItemGroup } from \"./item-group\";\nimport { ItemHeader } from \"./item-header\";\nimport { ItemMedia } from \"./item-media\";\nimport { ItemSeparator } from \"./item-separator\";\nimport { ItemTitle } from \"./item-title\";\nexport type ItemProps = useRender.ComponentProps<\"div\"> &\n VariantProps<typeof itemVariants>;\n\nconst itemVariants = tv({\n base: \"group/item flex w-full flex-wrap items-center rounded-md border border-border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted\",\n variants: {\n variant: {\n default: \"border-transparent\",\n outline: \"border-border\",\n muted: \"border-transparent bg-muted/50\",\n },\n size: {\n xs: \"gap-2 px-2.5 py-2 [[data-slot=dropdown-menu-content]_&]:p-0\",\n sm: \"gap-2.5 px-3 py-2.5\",\n md: \"gap-3.5 px-4 py-3.5\",\n lg: \"gap-4 px-4 py-4\",\n xl: \"gap-4 px-5 py-4.5 text-base\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"md\",\n },\n});\n\nconst Item = ({\n className,\n variant = \"default\",\n size: providedSize,\n render,\n ...props\n}: ItemProps) => {\n const size = useComponentSize(providedSize);\n\n return useRender({\n defaultTagName: \"div\",\n props: mergeProps<\"div\">(\n {\n className: cn(itemVariants({ variant, size }), className),\n },\n props\n ),\n render,\n state: {\n slot: \"item\",\n variant,\n size,\n },\n });\n};\n\nItem.Actions = ItemActions;\nItem.Content = ItemContent;\nItem.Description = ItemDescription;\nItem.Footer = ItemFooter;\nItem.Group = ItemGroup;\nItem.Header = ItemHeader;\nItem.Media = ItemMedia;\nItem.Separator = ItemSeparator;\nItem.Title = ItemTitle;\n\nexport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n itemVariants,\n};\n\nexport type { ItemActionsProps } from \"./item-actions\";\nexport type { ItemContentProps } from \"./item-content\";\nexport type { ItemDescriptionProps } from \"./item-description\";\nexport type { ItemFooterProps } from \"./item-footer\";\nexport type { ItemGroupProps } from \"./item-group\";\nexport type { ItemHeaderProps } from \"./item-header\";\nexport type { ItemMediaProps } from \"./item-media\";\nexport type { ItemSeparatorProps } from \"./item-separator\";\nexport type { ItemTitleProps } from \"./item-title\";\n"],"mappings":";;;;;;;;;;AAKA,MAAM,eAAe,EAAE,WAAW,GAAG,YACnC,oBAAC;CACC,WAAW,GAAG,2BAA2B,UAAU;CACnD,aAAU;CACV,GAAI;EACJ;;;;ACLJ,MAAM,eAAe,EAAE,WAAW,GAAG,YACnC,oBAAC;CACC,WAAW,GACT,qGACA,UACD;CACD,aAAU;CACV,GAAI;EACJ;;;;ACRJ,MAAM,mBAAmB,EAAE,WAAW,GAAG,YACvC,oBAAC;CACC,WAAW,GACT,kMACA,UACD;CACD,aAAU;CACV,GAAI;EACJ;;;;ACRJ,MAAM,cAAc,EAAE,WAAW,GAAG,YAClC,oBAAC;CACC,WAAW,GACT,sDACA,UACD;CACD,aAAU;CACV,GAAI;EACJ;;;;ACRJ,MAAM,aAAa,EAAE,WAAW,GAAG,YACjC,oBAAC;CACC,WAAW,GACT,mGACA,UACD;CACD,aAAU;CACV,MAAK;CACL,GAAI;EACJ;;;;ACTJ,MAAM,cAAc,EAAE,WAAW,GAAG,YAClC,oBAAC;CACC,WAAW,GACT,sDACA,UACD;CACD,aAAU;CACV,GAAI;EACJ;;;;ACPJ,MAAM,oBAAoB,GAAG;CAC3B,MAAM;CACN,UAAU,EACR,SAAS;EACP,SAAS;EACT,MAAM;EACN,OACE;EACH,EACF;CACD,iBAAiB,EACf,SAAS,WACV;CACF,CAAC;AAEF,MAAM,aAAa,EACjB,WACA,UAAU,WACV,GAAG,YAEH,oBAAC;CACC,WAAW,GAAG,kBAAkB,EAAE,SAAS,CAAC,EAAE,UAAU;CACxD,aAAU;CACV,gBAAc;CACd,GAAI;EACJ;;;;ACxBJ,MAAM,iBAAiB,EAAE,WAAW,GAAG,YACrC,oBAAC;CACC,WAAW,GAAG,QAAQ,UAAU;CAChC,aAAU;CACV,aAAY;CACZ,GAAI;EACJ;;;;ACRJ,MAAM,aAAa,EAAE,WAAW,GAAG,YACjC,oBAAC;CACC,WAAW,GACT,kGACA,UACD;CACD,aAAU;CACV,GAAI;EACJ;;;;ACMJ,MAAM,eAAe,GAAG;CACtB,MAAM;CACN,UAAU;EACR,SAAS;GACP,SAAS;GACT,SAAS;GACT,OAAO;GACR;EACD,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CAAC;AAEF,MAAM,QAAQ,EACZ,WACA,UAAU,WACV,MAAM,cACN,QACA,GAAG,YACY;CACf,MAAM,OAAO,iBAAiB,aAAa;AAE3C,QAAO,UAAU;EACf,gBAAgB;EAChB,OAAO,WACL,EACE,WAAW,GAAG,aAAa;GAAE;GAAS;GAAM,CAAC,EAAE,UAAU,EAC1D,EACD,MACD;EACD;EACA,OAAO;GACL,MAAM;GACN;GACA;GACD;EACF,CAAC;;AAGJ,KAAK,UAAU;AACf,KAAK,UAAU;AACf,KAAK,cAAc;AACnB,KAAK,SAAS;AACd,KAAK,QAAQ;AACb,KAAK,SAAS;AACd,KAAK,QAAQ;AACb,KAAK,YAAY;AACjB,KAAK,QAAQ"}
|
|
1
|
+
{"version":3,"file":"item.js","names":[],"sources":["../../src/ui/item/item-actions.tsx","../../src/ui/item/item-content.tsx","../../src/ui/item/item-description.tsx","../../src/ui/item/item-footer.tsx","../../src/ui/item/item-group.tsx","../../src/ui/item/item-header.tsx","../../src/ui/item/item-media.tsx","../../src/ui/item/item-separator.tsx","../../src/ui/item/item-title.tsx","../../src/ui/item/item.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\nexport type ItemActionsProps = ComponentProps<\"div\">;\n\nconst ItemActions = ({ className, ...props }: ItemActionsProps) => (\n <div\n className={cn(\"flex items-center gap-2\", className)}\n data-slot=\"item-actions\"\n {...props}\n />\n);\n\nexport { ItemActions };\n","import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\nexport type ItemContentProps = ComponentProps<\"div\">;\n\nconst ItemContent = ({ className, ...props }: ItemContentProps) => (\n <div\n className={cn(\n \"flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none\",\n className\n )}\n data-slot=\"item-content\"\n {...props}\n />\n);\n\nexport { ItemContent };\n","import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\nexport type ItemDescriptionProps = ComponentProps<\"p\">;\n\nconst ItemDescription = ({ className, ...props }: ItemDescriptionProps) => (\n <p\n className={cn(\n \"text-muted-foreground [&>a:hover]:text-primary-foreground line-clamp-2 text-left text-sm leading-normal font-normal group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4\",\n className\n )}\n data-slot=\"item-description\"\n {...props}\n />\n);\n\nexport { ItemDescription };\n","import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\nexport type ItemFooterProps = ComponentProps<\"div\">;\n\nconst ItemFooter = ({ className, ...props }: ItemFooterProps) => (\n <div\n className={cn(\n \"flex basis-full items-center justify-between gap-2\",\n className\n )}\n data-slot=\"item-footer\"\n {...props}\n />\n);\n\nexport { ItemFooter };\n","import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\nexport type ItemGroupProps = ComponentProps<\"div\">;\n\nconst ItemGroup = ({ className, ...props }: ItemGroupProps) => (\n <div\n className={cn(\n \"group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2\",\n className\n )}\n data-slot=\"item-group\"\n role=\"list\"\n {...props}\n />\n);\n\nexport { ItemGroup };\n","import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\nexport type ItemHeaderProps = ComponentProps<\"div\">;\n\nconst ItemHeader = ({ className, ...props }: ItemHeaderProps) => (\n <div\n className={cn(\n \"flex basis-full items-center justify-between gap-2\",\n className\n )}\n data-slot=\"item-header\"\n {...props}\n />\n);\n\nexport { ItemHeader };\n","import type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\nexport type ItemMediaProps = ComponentProps<\"div\"> &\n VariantProps<typeof itemMediaVariants>;\n\nconst itemMediaVariants = tv({\n base: \"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none\",\n defaultVariants: {\n variant: \"default\",\n },\n variants: {\n variant: {\n default: \"bg-transparent\",\n icon: \"[&_svg:not([class*='size-'])]:size-4\",\n image:\n \"overflow-hidden rounded-sm group-data-[size=lg]/item:size-12 group-data-[size=md]/item:size-10 group-data-[size=sm]/item:size-8 group-data-[size=xl]/item:size-14 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover\",\n },\n },\n});\n\nconst ItemMedia = ({\n className,\n variant = \"default\",\n ...props\n}: ItemMediaProps) => (\n <div\n className={cn(itemMediaVariants({ variant }), className)}\n data-slot=\"item-media\"\n data-variant={variant}\n {...props}\n />\n);\n\nexport { ItemMedia };\n","import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport { Separator } from \"../separator/separator\";\nexport type ItemSeparatorProps = ComponentProps<typeof Separator>;\n\nconst ItemSeparator = ({ className, ...props }: ItemSeparatorProps) => (\n <Separator\n className={cn(\"my-2\", className)}\n data-slot=\"item-separator\"\n orientation=\"horizontal\"\n {...props}\n />\n);\n\nexport { ItemSeparator };\n","import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\nexport type ItemTitleProps = ComponentProps<\"div\">;\n\nconst ItemTitle = ({ className, ...props }: ItemTitleProps) => (\n <div\n className={cn(\n \"line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4\",\n className\n )}\n data-slot=\"item-title\"\n {...props}\n />\n);\n\nexport { ItemTitle };\n","\"use client\";\n\nimport { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { ItemActions } from \"./item-actions\";\nimport { ItemContent } from \"./item-content\";\nimport { ItemDescription } from \"./item-description\";\nimport { ItemFooter } from \"./item-footer\";\nimport { ItemGroup } from \"./item-group\";\nimport { ItemHeader } from \"./item-header\";\nimport { ItemMedia } from \"./item-media\";\nimport { ItemSeparator } from \"./item-separator\";\nimport { ItemTitle } from \"./item-title\";\nexport type ItemProps = useRender.ComponentProps<\"div\"> &\n VariantProps<typeof itemVariants>;\n\nconst itemVariants = tv({\n base: \"group/item border-border focus-visible:border-ring focus-visible:ring-ring/50 [a]:hover:bg-muted flex w-full flex-wrap items-center rounded-md border text-sm transition-colors duration-100 outline-none focus-visible:ring-[3px] [a]:transition-colors\",\n defaultVariants: {\n size: \"md\",\n variant: \"default\",\n },\n variants: {\n size: {\n lg: \"gap-4 px-4 py-4\",\n md: \"gap-3.5 px-4 py-3.5\",\n sm: \"gap-2.5 px-3 py-2.5\",\n xl: \"gap-4 px-5 py-4.5 text-base\",\n xs: \"gap-2 px-2.5 py-2 [[data-slot=dropdown-menu-content]_&]:p-0\",\n },\n variant: {\n default: \"border-transparent\",\n muted: \"bg-muted/50 border-transparent\",\n outline: \"border-border\",\n },\n },\n});\n\nconst Item = ({\n className,\n variant = \"default\",\n size: providedSize,\n render,\n ...props\n}: ItemProps) => {\n const size = useComponentSize(providedSize);\n\n return useRender({\n defaultTagName: \"div\",\n props: mergeProps<\"div\">(\n {\n className: cn(itemVariants({ size, variant }), className),\n },\n props\n ),\n render,\n state: {\n size,\n slot: \"item\",\n variant,\n },\n });\n};\n\nItem.Actions = ItemActions;\nItem.Content = ItemContent;\nItem.Description = ItemDescription;\nItem.Footer = ItemFooter;\nItem.Group = ItemGroup;\nItem.Header = ItemHeader;\nItem.Media = ItemMedia;\nItem.Separator = ItemSeparator;\nItem.Title = ItemTitle;\n\nexport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n itemVariants,\n};\n\nexport type { ItemActionsProps } from \"./item-actions\";\nexport type { ItemContentProps } from \"./item-content\";\nexport type { ItemDescriptionProps } from \"./item-description\";\nexport type { ItemFooterProps } from \"./item-footer\";\nexport type { ItemGroupProps } from \"./item-group\";\nexport type { ItemHeaderProps } from \"./item-header\";\nexport type { ItemMediaProps } from \"./item-media\";\nexport type { ItemSeparatorProps } from \"./item-separator\";\nexport type { ItemTitleProps } from \"./item-title\";\n"],"mappings":";;;;;;;;;;AAIA,MAAM,eAAe,EAAE,WAAW,GAAG,YACnC,oBAAC,OAAD;CACE,WAAW,GAAG,2BAA2B,UAAU;CACnD,aAAU;CACV,GAAI;CACJ;;;;ACLJ,MAAM,eAAe,EAAE,WAAW,GAAG,YACnC,oBAAC,OAAD;CACE,WAAW,GACT,qGACA,UACD;CACD,aAAU;CACV,GAAI;CACJ;;;;ACRJ,MAAM,mBAAmB,EAAE,WAAW,GAAG,YACvC,oBAAC,KAAD;CACE,WAAW,GACT,kMACA,UACD;CACD,aAAU;CACV,GAAI;CACJ;;;;ACRJ,MAAM,cAAc,EAAE,WAAW,GAAG,YAClC,oBAAC,OAAD;CACE,WAAW,GACT,sDACA,UACD;CACD,aAAU;CACV,GAAI;CACJ;;;;ACRJ,MAAM,aAAa,EAAE,WAAW,GAAG,YACjC,oBAAC,OAAD;CACE,WAAW,GACT,mGACA,UACD;CACD,aAAU;CACV,MAAK;CACL,GAAI;CACJ;;;;ACTJ,MAAM,cAAc,EAAE,WAAW,GAAG,YAClC,oBAAC,OAAD;CACE,WAAW,GACT,sDACA,UACD;CACD,aAAU;CACV,GAAI;CACJ;;;;ACNJ,MAAM,oBAAoB,GAAG;CAC3B,MAAM;CACN,iBAAiB,EACf,SAAS,WACV;CACD,UAAU,EACR,SAAS;EACP,SAAS;EACT,MAAM;EACN,OACE;EACH,EACF;CACF,CAAC;AAEF,MAAM,aAAa,EACjB,WACA,UAAU,WACV,GAAG,YAEH,oBAAC,OAAD;CACE,WAAW,GAAG,kBAAkB,EAAE,SAAS,CAAC,EAAE,UAAU;CACxD,aAAU;CACV,gBAAc;CACd,GAAI;CACJ;;;;ACzBJ,MAAM,iBAAiB,EAAE,WAAW,GAAG,YACrC,oBAAC,WAAD;CACE,WAAW,GAAG,QAAQ,UAAU;CAChC,aAAU;CACV,aAAY;CACZ,GAAI;CACJ;;;;ACRJ,MAAM,aAAa,EAAE,WAAW,GAAG,YACjC,oBAAC,OAAD;CACE,WAAW,GACT,kGACA,UACD;CACD,aAAU;CACV,GAAI;CACJ;;;;ACQJ,MAAM,eAAe,GAAG;CACtB,MAAM;CACN,iBAAiB;EACf,MAAM;EACN,SAAS;EACV;CACD,UAAU;EACR,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACD,SAAS;GACP,SAAS;GACT,OAAO;GACP,SAAS;GACV;EACF;CACF,CAAC;AAEF,MAAM,QAAQ,EACZ,WACA,UAAU,WACV,MAAM,cACN,QACA,GAAG,YACY;CACf,MAAM,OAAO,iBAAiB,aAAa;AAE3C,QAAO,UAAU;EACf,gBAAgB;EAChB,OAAO,WACL,EACE,WAAW,GAAG,aAAa;GAAE;GAAM;GAAS,CAAC,EAAE,UAAU,EAC1D,EACD,MACD;EACD;EACA,OAAO;GACL;GACA,MAAM;GACN;GACD;EACF,CAAC;;AAGJ,KAAK,UAAU;AACf,KAAK,UAAU;AACf,KAAK,cAAc;AACnB,KAAK,SAAS;AACd,KAAK,QAAQ;AACb,KAAK,SAAS;AACd,KAAK,QAAQ;AACb,KAAK,YAAY;AACjB,KAAK,QAAQ"}
|
package/dist/ui/kbd.d.ts
CHANGED
package/dist/ui/kbd.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kbd.d.ts","names":[],"sources":["../../src/ui/kbd/kbd-size-context.ts","../../src/ui/kbd/kbd-group.tsx","../../src/ui/kbd/kbd.tsx"],"mappings":";;;;;KAMY,OAAA,GAAU,MAAA;;;
|
|
1
|
+
{"version":3,"file":"kbd.d.ts","names":[],"sources":["../../src/ui/kbd/kbd-size-context.ts","../../src/ui/kbd/kbd-group.tsx","../../src/ui/kbd/kbd.tsx"],"mappings":";;;;;KAMY,OAAA,GAAU,MAAA;;;KCAV,aAAA,GAAgB,cAAA;EAC1B,IAAA,GAAO,OAAA;AAAA;AAAA,cAGH,QAAA;EAAY,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAA+B,aAAA,KAAa,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCelD,QAAA,GAAW,cAAA;EACrB,IAAA,GAAO,OAAA;AAAA;AAAA,cAGH,GAAA;EAAA;;;;KAAsC,QAAA,GAAQ,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/ui/kbd.js
CHANGED
|
@@ -19,7 +19,7 @@ const KbdGroup = ({ className, size, ...props }) => {
|
|
|
19
19
|
return /* @__PURE__ */ jsx(KbdSizeContext.Provider, {
|
|
20
20
|
value: resolvedSize,
|
|
21
21
|
children: /* @__PURE__ */ jsx("kbd", {
|
|
22
|
-
className: cn("group/kbd-group inline-flex items-center data-[size=
|
|
22
|
+
className: cn("group/kbd-group inline-flex items-center data-[size=lg]:gap-1 data-[size=md]:gap-1 data-[size=sm]:gap-0.5 data-[size=xl]:gap-1.5 data-[size=xs]:gap-0.5", className),
|
|
23
23
|
"data-size": resolvedSize,
|
|
24
24
|
"data-slot": "kbd-group",
|
|
25
25
|
...props
|
|
@@ -30,15 +30,15 @@ const KbdGroup = ({ className, size, ...props }) => {
|
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/ui/kbd/kbd.tsx
|
|
32
32
|
const kbdVariants = tv({
|
|
33
|
-
base: "
|
|
33
|
+
base: "bg-muted text-muted-foreground [[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10 pointer-events-none inline-flex w-fit items-center justify-center rounded-sm font-sans font-medium select-none",
|
|
34
|
+
defaultVariants: { size: "md" },
|
|
34
35
|
variants: { size: {
|
|
35
|
-
xs: "h-4 min-w-4 gap-0.5 px-1 text-[10px] [&_svg:not([class*='size-'])]:size-2.5",
|
|
36
|
-
sm: "h-5 min-w-5 gap-0.5 px-1 text-[11px] [&_svg:not([class*='size-'])]:size-3",
|
|
37
|
-
md: "h-5 min-w-5 gap-1 px-1 text-xs [&_svg:not([class*='size-'])]:size-3",
|
|
38
36
|
lg: "h-6 min-w-6 gap-1 px-1.5 text-sm [&_svg:not([class*='size-'])]:size-3.5",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
md: "h-5 min-w-5 gap-1 px-1 text-xs [&_svg:not([class*='size-'])]:size-3",
|
|
38
|
+
sm: "h-5 min-w-5 gap-0.5 px-1 text-[11px] [&_svg:not([class*='size-'])]:size-3",
|
|
39
|
+
xl: "h-7 min-w-7 gap-1.5 px-2 text-sm [&_svg:not([class*='size-'])]:size-4",
|
|
40
|
+
xs: "h-4 min-w-4 gap-0.5 px-1 text-[10px] [&_svg:not([class*='size-'])]:size-2.5"
|
|
41
|
+
} }
|
|
42
42
|
});
|
|
43
43
|
const Kbd = ({ className, size, ...props }) => {
|
|
44
44
|
const resolvedSize = useKbdResolvedSize(size);
|
package/dist/ui/kbd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kbd.js","names":[],"sources":["../../src/ui/kbd/kbd-size-context.ts","../../src/ui/kbd/kbd-group.tsx","../../src/ui/kbd/kbd.tsx"],"sourcesContent":["\"use client\";\n\nimport { createContext, useContext } from \"react\";\n\nimport type { UISize } from \"../shared/size/size-system\";\n\nexport type KbdSize = UISize;\n\nconst DEFAULT_KBD_SIZE: KbdSize = \"md\";\n\nconst KbdSizeContext = createContext<KbdSize>(DEFAULT_KBD_SIZE);\n\nconst useKbdResolvedSize = (size?: KbdSize): KbdSize => {\n const contextSize = useContext(KbdSizeContext);\n\n return size ?? contextSize ?? DEFAULT_KBD_SIZE;\n};\n\nexport { KbdSizeContext, useKbdResolvedSize };\n","import type { ComponentProps } from \"react\";\
|
|
1
|
+
{"version":3,"file":"kbd.js","names":[],"sources":["../../src/ui/kbd/kbd-size-context.ts","../../src/ui/kbd/kbd-group.tsx","../../src/ui/kbd/kbd.tsx"],"sourcesContent":["\"use client\";\n\nimport { createContext, useContext } from \"react\";\n\nimport type { UISize } from \"../shared/size/size-system\";\n\nexport type KbdSize = UISize;\n\nconst DEFAULT_KBD_SIZE: KbdSize = \"md\";\n\nconst KbdSizeContext = createContext<KbdSize>(DEFAULT_KBD_SIZE);\n\nconst useKbdResolvedSize = (size?: KbdSize): KbdSize => {\n const contextSize = useContext(KbdSizeContext);\n\n return size ?? contextSize ?? DEFAULT_KBD_SIZE;\n};\n\nexport { KbdSizeContext, useKbdResolvedSize };\n","import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport type { KbdSize } from \"./kbd-size-context\";\nimport { KbdSizeContext, useKbdResolvedSize } from \"./kbd-size-context\";\n\nexport type KbdGroupProps = ComponentProps<\"kbd\"> & {\n size?: KbdSize;\n};\n\nconst KbdGroup = ({ className, size, ...props }: KbdGroupProps) => {\n const resolvedSize = useKbdResolvedSize(size);\n\n return (\n <KbdSizeContext.Provider value={resolvedSize}>\n <kbd\n className={cn(\n \"group/kbd-group inline-flex items-center data-[size=lg]:gap-1 data-[size=md]:gap-1 data-[size=sm]:gap-0.5 data-[size=xl]:gap-1.5 data-[size=xs]:gap-0.5\",\n className\n )}\n data-size={resolvedSize}\n data-slot=\"kbd-group\"\n {...props}\n />\n </KbdSizeContext.Provider>\n );\n};\n\nexport { KbdGroup };\nexport type { KbdSize as KbdGroupSize };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\n\nimport { KbdGroup } from \"./kbd-group\";\nimport { useKbdResolvedSize } from \"./kbd-size-context\";\nimport type { KbdSize } from \"./kbd-size-context\";\n\nconst kbdVariants = tv({\n base: \"bg-muted text-muted-foreground [[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10 pointer-events-none inline-flex w-fit items-center justify-center rounded-sm font-sans font-medium select-none\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"h-6 min-w-6 gap-1 px-1.5 text-sm [&_svg:not([class*='size-'])]:size-3.5\",\n md: \"h-5 min-w-5 gap-1 px-1 text-xs [&_svg:not([class*='size-'])]:size-3\",\n sm: \"h-5 min-w-5 gap-0.5 px-1 text-[11px] [&_svg:not([class*='size-'])]:size-3\",\n xl: \"h-7 min-w-7 gap-1.5 px-2 text-sm [&_svg:not([class*='size-'])]:size-4\",\n xs: \"h-4 min-w-4 gap-0.5 px-1 text-[10px] [&_svg:not([class*='size-'])]:size-2.5\",\n },\n },\n});\n\nexport type KbdProps = ComponentProps<\"kbd\"> & {\n size?: KbdSize;\n};\n\nconst Kbd = ({ className, size, ...props }: KbdProps) => {\n const resolvedSize = useKbdResolvedSize(size);\n\n return (\n <kbd\n className={cn(kbdVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"kbd\"\n {...props}\n />\n );\n};\n\nKbd.Group = KbdGroup;\n\nexport { Kbd, KbdGroup };\n\nexport type { KbdGroupProps, KbdGroupSize } from \"./kbd-group\";\nexport type { KbdSize } from \"./kbd-size-context\";\n"],"mappings":";;;;;;;AAQA,MAAM,mBAA4B;AAElC,MAAM,iBAAiB,cAAuB,iBAAiB;AAE/D,MAAM,sBAAsB,SAA4B;CACtD,MAAM,cAAc,WAAW,eAAe;AAE9C,QAAO,QAAQ,eAAe;;;;;ACLhC,MAAM,YAAY,EAAE,WAAW,MAAM,GAAG,YAA2B;CACjE,MAAM,eAAe,mBAAmB,KAAK;AAE7C,QACE,oBAAC,eAAe,UAAhB;EAAyB,OAAO;YAC9B,oBAAC,OAAD;GACE,WAAW,GACT,2JACA,UACD;GACD,aAAW;GACX,aAAU;GACV,GAAI;GACJ;EACsB;;;;;ACf9B,MAAM,cAAc,GAAG;CACrB,MAAM;CACN,iBAAiB,EACf,MAAM,MACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACF,CAAC;AAMF,MAAM,OAAO,EAAE,WAAW,MAAM,GAAG,YAAsB;CACvD,MAAM,eAAe,mBAAmB,KAAK;AAE7C,QACE,oBAAC,OAAD;EACE,WAAW,GAAG,YAAY,EAAE,MAAM,cAAc,CAAC,EAAE,UAAU;EAC7D,aAAW;EACX,aAAU;EACV,GAAI;EACJ;;AAIN,IAAI,QAAQ"}
|
package/dist/ui/label.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","names":[],"sources":["../../src/ui/label/label.tsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"label.d.ts","names":[],"sources":["../../src/ui/label/label.tsx"],"mappings":";;;;KAKY,UAAA,GAAa,cAAA;AAAA,cAEnB,KAAA;EAAS,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAAkC,UAAA,KAAU,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/ui/label.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","names":[],"sources":["../../src/ui/label/label.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ComponentProps } from \"react\";\
|
|
1
|
+
{"version":3,"file":"label.js","names":[],"sources":["../../src/ui/label/label.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nexport type LabelProps = ComponentProps<\"label\">;\n\nconst Label = ({ className, htmlFor, ...props }: LabelProps) => (\n <label\n className={cn(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n className\n )}\n data-slot=\"label\"\n htmlFor={htmlFor}\n {...props}\n />\n);\n\nexport { Label };\n"],"mappings":";;;;;;AAOA,MAAM,SAAS,EAAE,WAAW,SAAS,GAAG,YACtC,oBAAC,SAAD;CACE,WAAW,GACT,uNACA,UACD;CACD,aAAU;CACD;CACT,GAAI;CACJ"}
|
package/dist/ui/marquee.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marquee.d.ts","names":[],"sources":["../../src/ui/marquee/marquee-content.tsx","../../src/ui/marquee/marquee-fade.tsx","../../src/ui/marquee/marquee-item.tsx","../../src/ui/marquee/marquee.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"marquee.d.ts","names":[],"sources":["../../src/ui/marquee/marquee-content.tsx","../../src/ui/marquee/marquee-fade.tsx","../../src/ui/marquee/marquee-item.tsx","../../src/ui/marquee/marquee.tsx"],"mappings":";;;;;KAMY,mBAAA,GAAsB,cAAA;AAAA,cAErB,cAAA;EAAkB,IAAA;EAAA,QAAA;EAAA,YAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAM5B,mBAAA,KAAmB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCTV,gBAAA,GAAmB,cAAA;EAC7B,IAAA;AAAA;AAAA,cAGW,WAAA;EAAe,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAIzB,gBAAA,KAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCRP,gBAAA,GAAmB,cAAA;AAAA,cAElB,WAAA;EAAe,SAAA;EAAA,GAAA;AAAA,GAAyB,gBAAA,KAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCEzD,YAAA,GAAe,cAAA;AAAA,cAErB,OAAA;EAAA;;;KAAoC,YAAA,GAAY,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/ui/marquee.js
CHANGED
|
@@ -16,7 +16,7 @@ const MarqueeContent = ({ loop = 0, autoFill = true, pauseOnHover = true, classN
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/ui/marquee/marquee-fade.tsx
|
|
18
18
|
const MarqueeFade = ({ className, side, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
19
|
-
className: cn("absolute top-0 bottom-0
|
|
19
|
+
className: cn("z-raised from-background absolute top-0 bottom-0 h-full w-24 to-transparent", side === "left" ? "left-0 bg-linear-to-r" : "right-0 bg-linear-to-l", className),
|
|
20
20
|
...props
|
|
21
21
|
});
|
|
22
22
|
|
package/dist/ui/marquee.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marquee.js","names":[],"sources":["../../src/ui/marquee/marquee-content.tsx","../../src/ui/marquee/marquee-fade.tsx","../../src/ui/marquee/marquee-item.tsx","../../src/ui/marquee/marquee.tsx"],"sourcesContent":["\"use client\";\n\nimport type { MarqueeProps as FastMarqueeProps } from \"react-fast-marquee\";\
|
|
1
|
+
{"version":3,"file":"marquee.js","names":[],"sources":["../../src/ui/marquee/marquee-content.tsx","../../src/ui/marquee/marquee-fade.tsx","../../src/ui/marquee/marquee-item.tsx","../../src/ui/marquee/marquee.tsx"],"sourcesContent":["\"use client\";\n\nimport type { MarqueeProps as FastMarqueeProps } from \"react-fast-marquee\";\nimport FastMarquee from \"react-fast-marquee\";\nimport { cn } from \"tailwind-variants\";\n\nexport type MarqueeContentProps = FastMarqueeProps;\n\nexport const MarqueeContent = ({\n loop = 0,\n autoFill = true,\n pauseOnHover = true,\n className,\n ...props\n}: MarqueeContentProps) => (\n <FastMarquee\n autoFill={autoFill}\n className={cn(\"py-0.5\", className)}\n loop={loop}\n pauseOnHover={pauseOnHover}\n {...props}\n />\n);\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nexport type MarqueeFadeProps = ComponentProps<\"div\"> & {\n side: \"left\" | \"right\";\n};\n\nexport const MarqueeFade = ({\n className,\n side,\n ...props\n}: MarqueeFadeProps) => (\n <div\n className={cn(\n \"z-raised from-background absolute top-0 bottom-0 h-full w-24 to-transparent\",\n side === \"left\" ? \"left-0 bg-linear-to-r\" : \"right-0 bg-linear-to-l\",\n className\n )}\n {...props}\n />\n);\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nexport type MarqueeItemProps = ComponentProps<\"div\">;\n\nexport const MarqueeItem = ({ className, ...props }: MarqueeItemProps) => (\n <div className={cn(\"mx-2 shrink-0 object-contain\", className)} {...props} />\n);\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport { MarqueeContent } from \"./marquee-content\";\nimport { MarqueeFade } from \"./marquee-fade\";\nimport { MarqueeItem } from \"./marquee-item\";\n\nexport type MarqueeProps = ComponentProps<\"div\">;\n\nconst Marquee = ({ className, ...props }: MarqueeProps) => (\n <div\n className={cn(\"relative w-full overflow-hidden\", className)}\n {...props}\n />\n);\n\nMarquee.Content = MarqueeContent;\nMarquee.Fade = MarqueeFade;\nMarquee.Item = MarqueeItem;\n\nexport type { MarqueeContentProps } from \"./marquee-content\";\nexport type { MarqueeFadeProps } from \"./marquee-fade\";\nexport type { MarqueeItemProps } from \"./marquee-item\";\n\nexport { Marquee, MarqueeContent, MarqueeFade, MarqueeItem };\n"],"mappings":";;;;;;;AAQA,MAAa,kBAAkB,EAC7B,OAAO,GACP,WAAW,MACX,eAAe,MACf,WACA,GAAG,YAEH,oBAAC,aAAD;CACY;CACV,WAAW,GAAG,UAAU,UAAU;CAC5B;CACQ;CACd,GAAI;CACJ;;;;ACZJ,MAAa,eAAe,EAC1B,WACA,MACA,GAAG,YAEH,oBAAC,OAAD;CACE,WAAW,GACT,+EACA,SAAS,SAAS,0BAA0B,0BAC5C,UACD;CACD,GAAI;CACJ;;;;ACdJ,MAAa,eAAe,EAAE,WAAW,GAAG,YAC1C,oBAAC,OAAD;CAAK,WAAW,GAAG,gCAAgC,UAAU;CAAE,GAAI;CAAS;;;;ACG9E,MAAM,WAAW,EAAE,WAAW,GAAG,YAC/B,oBAAC,OAAD;CACE,WAAW,GAAG,mCAAmC,UAAU;CAC3D,GAAI;CACJ;AAGJ,QAAQ,UAAU;AAClB,QAAQ,OAAO;AACf,QAAQ,OAAO"}
|