@kuzenbo/core 0.0.1-alpha.4 → 0.0.1
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 +77 -27
- package/dist/accordion-trigger-P3yAXC9X.d.ts +35 -0
- package/dist/accordion-trigger-P3yAXC9X.d.ts.map +1 -0
- package/dist/accordion.d.ts +19 -11
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.js +25 -13
- package/dist/accordion.js.map +1 -1
- package/dist/affix.js +1 -1
- package/dist/alert-dialog-trigger-Bh4pSvCf.js +142 -0
- package/dist/alert-dialog-trigger-Bh4pSvCf.js.map +1 -0
- package/dist/alert-dialog-viewport-CIjRyI-y.d.ts +120 -0
- package/dist/alert-dialog-viewport-CIjRyI-y.d.ts.map +1 -0
- package/dist/alert-dialog.d.ts +30 -75
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.js +6 -2
- package/dist/alert-dialog.js.map +1 -1
- package/dist/{alert-title-sXI11YPI.js → alert-title-B1q_D7US.js} +3 -3
- package/dist/alert-title-B1q_D7US.js.map +1 -0
- package/dist/alert-title-BzrwvCBs.d.ts +26 -0
- package/dist/alert-title-BzrwvCBs.d.ts.map +1 -0
- package/dist/alert.d.ts +71 -21
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +198 -38
- package/dist/alert.js.map +1 -1
- package/dist/{announcement-title-ByuSJud1.js → announcement-title-CZ-xxuBs.js} +1 -1
- package/dist/{announcement-title-ByuSJud1.js.map → announcement-title-CZ-xxuBs.js.map} +1 -1
- package/dist/{announcement-title-3cikJ44S.d.ts → announcement-title-DQAqY8lM.d.ts} +1 -1
- package/dist/{announcement-title-3cikJ44S.d.ts.map → announcement-title-DQAqY8lM.d.ts.map} +1 -1
- package/dist/announcement.d.ts +1 -1
- package/dist/announcement.js +1 -1
- package/dist/aspect-ratio.d.ts +5 -4
- package/dist/aspect-ratio.d.ts.map +1 -1
- package/dist/aspect-ratio.js.map +1 -1
- package/dist/autocomplete-value-CE4htlBI.js +296 -0
- package/dist/autocomplete-value-CE4htlBI.js.map +1 -0
- package/dist/autocomplete-value-DZvfXD_j.d.ts +320 -0
- package/dist/autocomplete-value-DZvfXD_j.d.ts.map +1 -0
- package/dist/autocomplete.d.ts +26 -5
- package/dist/autocomplete.d.ts.map +1 -1
- package/dist/autocomplete.js +18 -7
- package/dist/autocomplete.js.map +1 -1
- package/dist/avatar-image-BpYCNLxP.d.ts +41 -0
- package/dist/avatar-image-BpYCNLxP.d.ts.map +1 -0
- package/dist/{avatar-image-BAVOtujm.js → avatar-image-QGDvWzq_.js} +6 -5
- package/dist/avatar-image-QGDvWzq_.js.map +1 -0
- package/dist/avatar.d.ts +13 -12
- package/dist/avatar.d.ts.map +1 -1
- package/dist/avatar.js +12 -8
- package/dist/avatar.js.map +1 -1
- package/dist/badge.d.ts +26 -9
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.js +43 -21
- package/dist/badge.js.map +1 -1
- package/dist/breadcrumb-separator-BxPVg1Je.js +172 -0
- package/dist/breadcrumb-separator-BxPVg1Je.js.map +1 -0
- package/dist/breadcrumb-separator-Cn5BAhvD.d.ts +228 -0
- package/dist/breadcrumb-separator-Cn5BAhvD.d.ts.map +1 -0
- package/dist/breadcrumb.d.ts +20 -10
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.js +15 -7
- package/dist/breadcrumb.js.map +1 -1
- package/dist/button-group-size-context-BAqIdusJ.js +8 -0
- package/dist/button-group-size-context-BAqIdusJ.js.map +1 -0
- package/dist/button-group-text-B2_MmlIc.d.ts +85 -0
- package/dist/button-group-text-B2_MmlIc.d.ts.map +1 -0
- package/dist/button-group-text-JA0xMSnb.js +62 -0
- package/dist/button-group-text-JA0xMSnb.js.map +1 -0
- package/dist/button-group.d.ts +35 -55
- package/dist/button-group.d.ts.map +1 -1
- package/dist/button-group.js +38 -13
- package/dist/button-group.js.map +1 -1
- package/dist/button.d.ts +15 -29
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +74 -29
- package/dist/button.js.map +1 -1
- package/dist/card-title-BaHIF8-E.d.ts +47 -0
- package/dist/card-title-BaHIF8-E.d.ts.map +1 -0
- package/dist/card.d.ts +13 -15
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +12 -7
- package/dist/card.js.map +1 -1
- package/dist/{carousel-previous-BE0u96g1.js → carousel-previous-OcdvvI1k.js} +1 -1
- package/dist/carousel-previous-OcdvvI1k.js.map +1 -0
- package/dist/carousel.d.ts +6 -65
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.js +1 -1
- package/dist/carousel.js.map +1 -1
- package/dist/checkbox-group.d.ts.map +1 -1
- package/dist/checkbox-group.js +2 -2
- package/dist/checkbox-group.js.map +1 -1
- package/dist/checkbox-indicator-D9X12aCq.d.ts +44 -0
- package/dist/checkbox-indicator-D9X12aCq.d.ts.map +1 -0
- package/dist/checkbox-indicator-DMjot9eq.js +31 -0
- package/dist/checkbox-indicator-DMjot9eq.js.map +1 -0
- package/dist/checkbox.d.ts +48 -7
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.js +36 -18
- package/dist/checkbox.js.map +1 -1
- package/dist/code.d.ts +15 -0
- package/dist/code.d.ts.map +1 -0
- package/dist/code.js +22 -0
- package/dist/code.js.map +1 -0
- package/dist/collapsible-trigger-CvIq1bXq.d.ts +19 -0
- package/dist/collapsible-trigger-CvIq1bXq.d.ts.map +1 -0
- package/dist/{collapsible-trigger-COktdQ2E.js → collapsible-trigger-DCw3swj8.js} +4 -4
- package/dist/collapsible-trigger-DCw3swj8.js.map +1 -0
- package/dist/collapsible.d.ts +10 -5
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.js +4 -3
- package/dist/collapsible.js.map +1 -1
- package/dist/combobox.d.ts +79 -26
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +25 -7
- package/dist/combobox.js.map +1 -1
- package/dist/command-shortcut-B42eSLXJ.d.ts +268 -0
- package/dist/command-shortcut-B42eSLXJ.d.ts.map +1 -0
- package/dist/command-shortcut-fALFGGNB.js +226 -0
- package/dist/command-shortcut-fALFGGNB.js.map +1 -0
- package/dist/command.d.ts +24 -103
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +14 -6
- package/dist/command.js.map +1 -1
- package/dist/container.js +1 -1
- package/dist/container.js.map +1 -1
- package/dist/context-menu-trigger-D1yfnhtH.d.ts +632 -0
- package/dist/context-menu-trigger-D1yfnhtH.d.ts.map +1 -0
- package/dist/context-menu-trigger-Db8Hnkac.js +471 -0
- package/dist/context-menu-trigger-Db8Hnkac.js.map +1 -0
- package/dist/context-menu.d.ts +81 -25
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.js +19 -6
- package/dist/context-menu.js.map +1 -1
- package/dist/{dialog-trigger-ptlomR_n.js → dialog-trigger-Qa2UBwDK.js} +33 -9
- package/dist/dialog-trigger-Qa2UBwDK.js.map +1 -0
- package/dist/{dialog-trigger-B5HeOikl.d.ts → dialog-viewport-_iN9a_OF.d.ts} +25 -4
- package/dist/dialog-viewport-_iN9a_OF.d.ts.map +1 -0
- package/dist/dialog.d.ts +14 -2
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.js +5 -2
- package/dist/dialog.js.map +1 -1
- package/dist/drawer-size-context-TrNk8sne.d.ts +377 -0
- package/dist/drawer-size-context-TrNk8sne.d.ts.map +1 -0
- package/dist/drawer-viewport-CXCkzSjL.js +261 -0
- package/dist/drawer-viewport-CXCkzSjL.js.map +1 -0
- package/dist/drawer.d.ts +26 -3
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.js +9 -2
- package/dist/drawer.js.map +1 -1
- package/dist/dropdown-menu-trigger-BzJ8E29P.d.ts +646 -0
- package/dist/dropdown-menu-trigger-BzJ8E29P.d.ts.map +1 -0
- package/dist/dropdown-menu-trigger-PvBaqoOj.js +488 -0
- package/dist/dropdown-menu-trigger-PvBaqoOj.js.map +1 -0
- package/dist/dropdown-menu.d.ts +80 -25
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +19 -6
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/{dropzone-context-DNiJThhB.d.ts → dropzone-context-PCTXy62j.d.ts} +1 -1
- package/dist/{dropzone-context-DNiJThhB.d.ts.map → dropzone-context-PCTXy62j.d.ts.map} +1 -1
- package/dist/{dropzone-status-B9Axvf9M.js → dropzone-status-BziqO77U.js} +1 -1
- package/dist/{dropzone-status-B9Axvf9M.js.map → dropzone-status-BziqO77U.js.map} +1 -1
- package/dist/dropzone.d.ts +1 -1
- package/dist/dropzone.js +5 -5
- package/dist/dropzone.js.map +1 -1
- package/dist/emoji-picker-size-context-gu6mLjuf.d.ts +315 -0
- package/dist/emoji-picker-size-context-gu6mLjuf.d.ts.map +1 -0
- package/dist/emoji-picker-skin-tone-selector-DAJcO_Ue.js +308 -0
- package/dist/emoji-picker-skin-tone-selector-DAJcO_Ue.js.map +1 -0
- package/dist/emoji-picker.d.ts +49 -4
- package/dist/emoji-picker.d.ts.map +1 -1
- package/dist/emoji-picker.js +25 -6
- package/dist/emoji-picker.js.map +1 -1
- package/dist/empty-title-C9hHuBz8.d.ts +211 -0
- package/dist/empty-title-C9hHuBz8.d.ts.map +1 -0
- package/dist/empty-title-DjJj4k34.js +178 -0
- package/dist/empty-title-DjJj4k34.js.map +1 -0
- package/dist/empty.d.ts +49 -23
- package/dist/empty.d.ts.map +1 -1
- package/dist/empty.js +27 -7
- package/dist/empty.js.map +1 -1
- package/dist/fieldset-BvbNkZWm.d.ts +151 -0
- package/dist/fieldset-BvbNkZWm.d.ts.map +1 -0
- package/dist/fieldset-fXftcr4b.js +109 -0
- package/dist/fieldset-fXftcr4b.js.map +1 -0
- package/dist/form-field.d.ts +94 -71
- package/dist/form-field.d.ts.map +1 -1
- package/dist/form-field.js +110 -8
- package/dist/form-field.js.map +1 -1
- package/dist/index.d.ts +1217 -82
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1433 -58
- package/dist/index.js.map +1 -0
- package/dist/input-group-textarea-C6-pPujg.d.ts +121 -0
- package/dist/input-group-textarea-C6-pPujg.d.ts.map +1 -0
- package/dist/input-group-textarea-C6ixncHC.js +120 -0
- package/dist/input-group-textarea-C6ixncHC.js.map +1 -0
- package/dist/input-group.d.ts +16 -109
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.js +16 -7
- package/dist/input-group.js.map +1 -1
- package/dist/input-otp-slot-BA8DE3oz.js +116 -0
- package/dist/input-otp-slot-BA8DE3oz.js.map +1 -0
- package/dist/input-otp-slot-BxEhjqR5.d.ts +173 -0
- package/dist/input-otp-slot-BxEhjqR5.d.ts.map +1 -0
- package/dist/input-otp.d.ts +18 -10
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/input-otp.js +16 -8
- package/dist/input-otp.js.map +1 -1
- package/dist/input.d.ts +40 -7
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +28 -6
- package/dist/input.js.map +1 -1
- package/dist/item-title-BEt0xgK_.d.ts +91 -0
- package/dist/item-title-BEt0xgK_.d.ts.map +1 -0
- package/dist/{item-title-BQFoYDpd.js → item-title-DL4BlZUJ.js} +3 -3
- package/dist/item-title-DL4BlZUJ.js.map +1 -0
- package/dist/item.d.ts +26 -84
- package/dist/item.d.ts.map +1 -1
- package/dist/item.js +23 -17
- package/dist/item.js.map +1 -1
- package/dist/kbd-group-3GbsGHQf.d.ts +19 -0
- package/dist/kbd-group-3GbsGHQf.d.ts.map +1 -0
- package/dist/kbd-group-BmHYZhQr.js +30 -0
- package/dist/kbd-group-BmHYZhQr.js.map +1 -0
- package/dist/kbd.d.ts +8 -4
- package/dist/kbd.d.ts.map +1 -1
- package/dist/kbd.js +21 -6
- package/dist/kbd.js.map +1 -1
- package/dist/{marquee-item-B_yei6_k.js → marquee-item-B0TLvHgC.js} +1 -1
- package/dist/{marquee-item-B_yei6_k.js.map → marquee-item-B0TLvHgC.js.map} +1 -1
- package/dist/{marquee-item-BCswidMf.d.ts → marquee-item-CF7L5m2C.d.ts} +1 -1
- package/dist/{marquee-item-BCswidMf.d.ts.map → marquee-item-CF7L5m2C.d.ts.map} +1 -1
- package/dist/marquee.d.ts +1 -1
- package/dist/marquee.js +1 -1
- package/dist/menubar-trigger-BSEAK4Hv.js +427 -0
- package/dist/menubar-trigger-BSEAK4Hv.js.map +1 -0
- package/dist/menubar-trigger-Cg8h_R-F.d.ts +633 -0
- package/dist/menubar-trigger-Cg8h_R-F.d.ts.map +1 -0
- package/dist/menubar.d.ts +79 -163
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +31 -7
- package/dist/menubar.js.map +1 -1
- package/dist/merge-base-ui-class-name-u6eS5MaQ.js +11 -0
- package/dist/merge-base-ui-class-name-u6eS5MaQ.js.map +1 -0
- package/dist/{meter-value-FRDEI8VE.d.ts → meter-value-BBRupvEw.d.ts} +5 -2
- package/dist/meter-value-BBRupvEw.d.ts.map +1 -0
- package/dist/{meter-value-CJjAfKID.js → meter-value-DTvav35V.js} +7 -7
- package/dist/meter-value-DTvav35V.js.map +1 -0
- package/dist/meter.d.ts +5 -2
- package/dist/meter.d.ts.map +1 -1
- package/dist/meter.js +3 -3
- package/dist/meter.js.map +1 -1
- package/dist/navigation-menu-viewport-B1zGz9H_.d.ts +401 -0
- package/dist/navigation-menu-viewport-B1zGz9H_.d.ts.map +1 -0
- package/dist/navigation-menu-viewport-MCTpmOhX.js +284 -0
- package/dist/navigation-menu-viewport-MCTpmOhX.js.map +1 -0
- package/dist/navigation-menu.d.ts +73 -7
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.js +34 -8
- package/dist/navigation-menu.js.map +1 -1
- package/dist/number-field-scrub-area-cursor-DJPffFNk.d.ts +137 -0
- package/dist/number-field-scrub-area-cursor-DJPffFNk.d.ts.map +1 -0
- package/dist/number-field-scrub-area-cursor-h-iB-JHz.js +136 -0
- package/dist/number-field-scrub-area-cursor-h-iB-JHz.js.map +1 -0
- package/dist/number-field.d.ts +10 -2
- package/dist/number-field.d.ts.map +1 -1
- package/dist/number-field.js +16 -8
- package/dist/number-field.js.map +1 -1
- package/dist/{optional-portal-BAOgHNvi.js → optional-portal-BnKabTYx.js} +1 -1
- package/dist/optional-portal-BnKabTYx.js.map +1 -0
- package/dist/pagination-previous-B-zSBsti.d.ts +226 -0
- package/dist/pagination-previous-B-zSBsti.d.ts.map +1 -0
- package/dist/pagination-previous-g-wCDo--.js +194 -0
- package/dist/pagination-previous-g-wCDo--.js.map +1 -0
- package/dist/pagination.d.ts +18 -8
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +15 -7
- package/dist/pagination.js.map +1 -1
- package/dist/{pill-status-BS75xd9Z.d.ts → pill-status-B0H8oDjy.d.ts} +2 -2
- package/dist/{pill-status-BS75xd9Z.d.ts.map → pill-status-B0H8oDjy.d.ts.map} +1 -1
- package/dist/pill-status-CZugGAo0.js +75 -0
- package/dist/pill-status-CZugGAo0.js.map +1 -0
- package/dist/pill.d.ts +2 -2
- package/dist/pill.js +2 -2
- package/dist/pill.js.map +1 -1
- package/dist/popover-trigger-YoOfFIQY.js +131 -0
- package/dist/popover-trigger-YoOfFIQY.js.map +1 -0
- package/dist/popover-viewport-D0OLhge2.d.ts +130 -0
- package/dist/popover-viewport-D0OLhge2.d.ts.map +1 -0
- package/dist/popover.d.ts +41 -9
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.js +21 -6
- package/dist/popover.js.map +1 -1
- package/dist/portal.d.ts +2 -2
- package/dist/portal.d.ts.map +1 -1
- package/dist/portal.js.map +1 -1
- package/dist/preview-card-trigger-CbF-WF9d.js +75 -0
- package/dist/preview-card-trigger-CbF-WF9d.js.map +1 -0
- package/dist/preview-card-viewport-DyigXVot.d.ts +67 -0
- package/dist/preview-card-viewport-DyigXVot.d.ts.map +1 -0
- package/dist/preview-card.d.ts +52 -0
- package/dist/preview-card.d.ts.map +1 -0
- package/dist/preview-card.js +25 -0
- package/dist/preview-card.js.map +1 -0
- package/dist/{progress-value-gJOcGICf.js → progress-value-C2beGR4l.js} +6 -6
- package/dist/progress-value-C2beGR4l.js.map +1 -0
- package/dist/progress-value-DdW3JCEx.d.ts +33 -0
- package/dist/progress-value-DdW3JCEx.d.ts.map +1 -0
- package/dist/progress.d.ts +8 -7
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +3 -3
- package/dist/progress.js.map +1 -1
- package/dist/radio-group-item-By6KUGFQ.js +65 -0
- package/dist/radio-group-item-By6KUGFQ.js.map +1 -0
- package/dist/radio-group-item-DvfY629D.d.ts +81 -0
- package/dist/radio-group-item-DvfY629D.d.ts.map +1 -0
- package/dist/radio-group.d.ts +12 -5
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/radio-group.js +5 -4
- package/dist/radio-group.js.map +1 -1
- package/dist/{rating-star-CxVJUZmc.d.ts → rating-star-Bg5AgFfI.d.ts} +7 -1
- package/dist/rating-star-Bg5AgFfI.d.ts.map +1 -0
- package/dist/{rating-star-BZCtD00E.js → rating-star-CT7E88Vb.js} +10 -6
- package/dist/rating-star-CT7E88Vb.js.map +1 -0
- package/dist/rating.d.ts +14 -2
- package/dist/rating.d.ts.map +1 -1
- package/dist/rating.js +7 -3
- package/dist/rating.js.map +1 -1
- package/dist/{resizable-panel-D4Brid-G.d.ts → resizable-panel-BSRzFmQT.d.ts} +8 -6
- package/dist/resizable-panel-BSRzFmQT.d.ts.map +1 -0
- package/dist/{resizable-panel-DbWIMjJZ.js → resizable-panel-Qs_va758.js} +1 -1
- package/dist/resizable-panel-Qs_va758.js.map +1 -0
- package/dist/resizable.d.ts +6 -8
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.js +1 -1
- package/dist/resizable.js.map +1 -1
- package/dist/scroll-area.d.ts +28 -4
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.js +20 -14
- package/dist/scroll-area.js.map +1 -1
- package/dist/scroll-bar-Ms5-vqAH.js +26 -0
- package/dist/scroll-bar-Ms5-vqAH.js.map +1 -0
- package/dist/scroll-viewport-02SiMbYg.d.ts +42 -0
- package/dist/scroll-viewport-02SiMbYg.d.ts.map +1 -0
- package/dist/scroll-viewport-Bv90eZWC.js +30 -0
- package/dist/scroll-viewport-Bv90eZWC.js.map +1 -0
- package/dist/select-value-DCLmCbND.d.ts +413 -0
- package/dist/select-value-DCLmCbND.d.ts.map +1 -0
- package/dist/select.d.ts +90 -16
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +30 -6
- package/dist/select.js.map +1 -1
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.js +2 -2
- package/dist/separator.js.map +1 -1
- package/dist/{sheet-trigger-CkQbW5Y7.js → sheet-trigger-CBnNmAyv.js} +35 -10
- package/dist/sheet-trigger-CBnNmAyv.js.map +1 -0
- package/dist/sheet-viewport-PgLs2Dbp.d.ts +99 -0
- package/dist/sheet-viewport-PgLs2Dbp.d.ts.map +1 -0
- package/dist/sheet.d.ts +26 -16
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +5 -2
- package/dist/sheet.js.map +1 -1
- package/dist/{sidebar-trigger-C_fOu1p2.js → sidebar-trigger-DpUDeyoo.js} +157 -61
- package/dist/sidebar-trigger-DpUDeyoo.js.map +1 -0
- package/dist/sidebar.d.ts +38 -144
- package/dist/sidebar.d.ts.map +1 -1
- package/dist/sidebar.js +2 -2
- package/dist/sidebar.js.map +1 -1
- package/dist/size-context-CPoCTRTV.d.ts +16 -0
- package/dist/size-context-CPoCTRTV.d.ts.map +1 -0
- package/dist/size-context-rJNE33WZ.js +25 -0
- package/dist/size-context-rJNE33WZ.js.map +1 -0
- package/dist/size-provider-D2Fy00Ky.js +128 -0
- package/dist/size-provider-D2Fy00Ky.js.map +1 -0
- package/dist/size-system-BNfPN2hb.js +47 -0
- package/dist/size-system-BNfPN2hb.js.map +1 -0
- package/dist/size-system-CMU68sQY.d.ts +6 -0
- package/dist/size-system-CMU68sQY.d.ts.map +1 -0
- package/dist/slider-CqapJ6Pa.js +544 -0
- package/dist/slider-CqapJ6Pa.js.map +1 -0
- package/dist/slider-types-BejlapyA.d.ts +192 -0
- package/dist/slider-types-BejlapyA.d.ts.map +1 -0
- package/dist/slider.d.ts +2 -16
- package/dist/slider.js +2 -47
- package/dist/spinner.d.ts +5 -1
- package/dist/spinner.d.ts.map +1 -1
- package/dist/spinner.js +13 -8
- package/dist/spinner.js.map +1 -1
- package/dist/switch-thumb-B1oq_Il-.d.ts +12 -0
- package/dist/switch-thumb-B1oq_Il-.d.ts.map +1 -0
- package/dist/switch-thumb-BcrfgKM7.js +14 -0
- package/dist/switch-thumb-BcrfgKM7.js.map +1 -0
- package/dist/switch.d.ts +45 -8
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.js +26 -11
- package/dist/switch.js.map +1 -1
- package/dist/table-row-oLfiQvkD.js +161 -0
- package/dist/table-row-oLfiQvkD.js.map +1 -0
- package/dist/table-size-context-CIwmKalf.d.ts +206 -0
- package/dist/table-size-context-CIwmKalf.d.ts.map +1 -0
- package/dist/table.d.ts +50 -10
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +39 -19
- package/dist/table.js.map +1 -1
- package/dist/tabs-trigger-CzOTnpSV.js +155 -0
- package/dist/tabs-trigger-CzOTnpSV.js.map +1 -0
- package/dist/tabs-trigger-DIAd8cRQ.d.ts +91 -0
- package/dist/tabs-trigger-DIAd8cRQ.d.ts.map +1 -0
- package/dist/tabs.d.ts +18 -23
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.js +5 -3
- package/dist/tabs.js.map +1 -1
- package/dist/textarea.d.ts +29 -6
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.js +27 -6
- package/dist/textarea.js.map +1 -1
- package/dist/theme-icon.d.ts +6 -3
- package/dist/theme-icon.d.ts.map +1 -1
- package/dist/theme-icon.js +7 -5
- package/dist/theme-icon.js.map +1 -1
- package/dist/{timeline-title-BvyeNanK.js → timeline-title-DPQkU32C.js} +1 -1
- package/dist/{timeline-title-BvyeNanK.js.map → timeline-title-DPQkU32C.js.map} +1 -1
- package/dist/timeline.d.ts +2 -2
- package/dist/timeline.js +1 -1
- package/dist/timeline.js.map +1 -1
- package/dist/toggle-group-item-BNfDa9G7.js +46 -0
- package/dist/toggle-group-item-BNfDa9G7.js.map +1 -0
- package/dist/toggle-group-item-GtR1C20m.d.ts +111 -0
- package/dist/toggle-group-item-GtR1C20m.d.ts.map +1 -0
- package/dist/toggle-group.d.ts +11 -11
- package/dist/toggle-group.d.ts.map +1 -1
- package/dist/toggle-group.js +25 -20
- package/dist/toggle-group.js.map +1 -1
- package/dist/toggle.d.ts +12 -6
- package/dist/toggle.d.ts.map +1 -1
- package/dist/toggle.js +19 -13
- package/dist/toggle.js.map +1 -1
- package/dist/toolbar-separator-B2h6uLOE.d.ts +169 -0
- package/dist/toolbar-separator-B2h6uLOE.d.ts.map +1 -0
- package/dist/toolbar-separator-DenKrCUv.js +124 -0
- package/dist/toolbar-separator-DenKrCUv.js.map +1 -0
- package/dist/toolbar.d.ts +43 -4
- package/dist/toolbar.d.ts.map +1 -1
- package/dist/toolbar.js +26 -6
- package/dist/toolbar.js.map +1 -1
- package/dist/tooltip-trigger-Bh-4uwB1.js +101 -0
- package/dist/tooltip-trigger-Bh-4uwB1.js.map +1 -0
- package/dist/tooltip-viewport-bfS0ERim.d.ts +103 -0
- package/dist/tooltip-viewport-bfS0ERim.d.ts.map +1 -0
- package/dist/tooltip.d.ts +31 -6
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.js +19 -6
- package/dist/tooltip.js.map +1 -1
- package/dist/{typography-ul-D1HgC8fT.js → typography-ul-CQPMwh0l.js} +2 -11
- package/dist/typography-ul-CQPMwh0l.js.map +1 -0
- package/dist/{typography-ul-Dy8wQB_p.d.ts → typography-ul-DdbLy4uP.d.ts} +118 -110
- package/dist/typography-ul-DdbLy4uP.d.ts.map +1 -0
- package/dist/typography.d.ts +19 -23
- package/dist/typography.d.ts.map +1 -1
- package/dist/typography.js +2 -3
- package/dist/typography.js.map +1 -1
- package/dist/use-accordion-default-props-C4qiSPdy.js +276 -0
- package/dist/use-accordion-default-props-C4qiSPdy.js.map +1 -0
- package/dist/use-badge-default-props-aiDsN2ec.js +8 -0
- package/dist/use-badge-default-props-aiDsN2ec.js.map +1 -0
- package/dist/use-card-default-props-D7h5DKMA.js +58 -0
- package/dist/use-card-default-props-D7h5DKMA.js.map +1 -0
- package/dist/use-carousel-BP1JcA8B.d.ts +60 -0
- package/dist/use-carousel-BP1JcA8B.d.ts.map +1 -0
- package/dist/use-combobox-anchor-CR11U_ns.js +524 -0
- package/dist/use-combobox-anchor-CR11U_ns.js.map +1 -0
- package/dist/use-combobox-anchor-_uR3C1ZZ.d.ts +541 -0
- package/dist/use-combobox-anchor-_uR3C1ZZ.d.ts.map +1 -0
- package/dist/use-input-default-props-DSeo88je.js +8 -0
- package/dist/use-input-default-props-DSeo88je.js.map +1 -0
- package/dist/use-select-default-props-xp2KqlMr.js +384 -0
- package/dist/use-select-default-props-xp2KqlMr.js.map +1 -0
- package/dist/use-sidebar-C9Nj2_Hm.d.ts +389 -0
- package/dist/use-sidebar-C9Nj2_Hm.d.ts.map +1 -0
- package/dist/use-textarea-default-props-DEDcVuHi.js +8 -0
- package/dist/use-textarea-default-props-DEDcVuHi.js.map +1 -0
- package/dist/{use-timeline-Dcj9DR0I.d.ts → use-timeline-C1sQqHU_.d.ts} +1 -1
- package/dist/{use-timeline-Dcj9DR0I.d.ts.map → use-timeline-C1sQqHU_.d.ts.map} +1 -1
- package/package.json +433 -56
- package/dist/accordion-trigger-B51W3Rdg.d.ts +0 -25
- package/dist/accordion-trigger-B51W3Rdg.d.ts.map +0 -1
- package/dist/accordion-trigger-DxGzqkOC.js +0 -72
- package/dist/accordion-trigger-DxGzqkOC.js.map +0 -1
- package/dist/alert-dialog-trigger-CIUFlkzO.js +0 -99
- package/dist/alert-dialog-trigger-CIUFlkzO.js.map +0 -1
- package/dist/alert-title-W1oau4D6.d.ts +0 -23
- package/dist/alert-title-W1oau4D6.d.ts.map +0 -1
- package/dist/alert-title-sXI11YPI.js.map +0 -1
- package/dist/autocomplete-value-DUN1Jprs.d.ts +0 -112
- package/dist/autocomplete-value-DUN1Jprs.d.ts.map +0 -1
- package/dist/autocomplete-value-DZnj2U0-.js +0 -142
- package/dist/autocomplete-value-DZnj2U0-.js.map +0 -1
- package/dist/avatar-image-BAVOtujm.js.map +0 -1
- package/dist/avatar-image-DPunh5Hd.d.ts +0 -36
- package/dist/avatar-image-DPunh5Hd.d.ts.map +0 -1
- package/dist/breadcrumb-separator-Bp5VXfQ8.js +0 -75
- package/dist/breadcrumb-separator-Bp5VXfQ8.js.map +0 -1
- package/dist/breadcrumb-separator-C6zfQJ5p.d.ts +0 -45
- package/dist/breadcrumb-separator-C6zfQJ5p.d.ts.map +0 -1
- package/dist/button-group-text-bzlQC1Fa.js +0 -26
- package/dist/button-group-text-bzlQC1Fa.js.map +0 -1
- package/dist/card-title-BBu0T37s.js +0 -53
- package/dist/card-title-BBu0T37s.js.map +0 -1
- package/dist/card-title-Dk0akcFR.d.ts +0 -41
- package/dist/card-title-Dk0akcFR.d.ts.map +0 -1
- package/dist/carousel-previous-BE0u96g1.js.map +0 -1
- package/dist/collapsible-trigger-COktdQ2E.js.map +0 -1
- package/dist/collapsible-trigger-DjL8pGgf.d.ts +0 -17
- package/dist/collapsible-trigger-DjL8pGgf.d.ts.map +0 -1
- package/dist/command-shortcut-Dpx3liOF.js +0 -98
- package/dist/command-shortcut-Dpx3liOF.js.map +0 -1
- package/dist/context-menu-trigger-C5Li6wJg.js +0 -148
- package/dist/context-menu-trigger-C5Li6wJg.js.map +0 -1
- package/dist/context-menu-trigger-DHPhlnvV.d.ts +0 -104
- package/dist/context-menu-trigger-DHPhlnvV.d.ts.map +0 -1
- package/dist/dialog-trigger-B5HeOikl.d.ts.map +0 -1
- package/dist/dialog-trigger-ptlomR_n.js.map +0 -1
- package/dist/drawer-viewport-DYTvcTF3.js +0 -122
- package/dist/drawer-viewport-DYTvcTF3.js.map +0 -1
- package/dist/drawer-viewport-DejmWgmc.d.ts +0 -109
- package/dist/drawer-viewport-DejmWgmc.d.ts.map +0 -1
- package/dist/dropdown-menu-trigger-Buq3CW_D.js +0 -153
- package/dist/dropdown-menu-trigger-Buq3CW_D.js.map +0 -1
- package/dist/dropdown-menu-trigger-DEdnOFwc.d.ts +0 -109
- package/dist/dropdown-menu-trigger-DEdnOFwc.d.ts.map +0 -1
- package/dist/emoji-picker-skin-tone-selector-amzh0Wk6.d.ts +0 -68
- package/dist/emoji-picker-skin-tone-selector-amzh0Wk6.d.ts.map +0 -1
- package/dist/emoji-picker-skin-tone-selector-ioOHy5cv.js +0 -118
- package/dist/emoji-picker-skin-tone-selector-ioOHy5cv.js.map +0 -1
- package/dist/empty-title-CGGk8sMF.js +0 -54
- package/dist/empty-title-CGGk8sMF.js.map +0 -1
- package/dist/empty-title-CcQlXOlP.d.ts +0 -54
- package/dist/empty-title-CcQlXOlP.d.ts.map +0 -1
- package/dist/form-field-title-KqTd5is7.js +0 -102
- package/dist/form-field-title-KqTd5is7.js.map +0 -1
- package/dist/hover-card-trigger-BJyHUOUc.js +0 -32
- package/dist/hover-card-trigger-BJyHUOUc.js.map +0 -1
- package/dist/hover-card-trigger-CRzFaoL4.d.ts +0 -21
- package/dist/hover-card-trigger-CRzFaoL4.d.ts.map +0 -1
- package/dist/hover-card.d.ts +0 -25
- package/dist/hover-card.d.ts.map +0 -1
- package/dist/hover-card.js +0 -17
- package/dist/hover-card.js.map +0 -1
- package/dist/input-group-textarea-ntvRL1EK.js +0 -80
- package/dist/input-group-textarea-ntvRL1EK.js.map +0 -1
- package/dist/input-otp-slot-B19cyjk_.d.ts +0 -25
- package/dist/input-otp-slot-B19cyjk_.d.ts.map +0 -1
- package/dist/input-otp-slot-BPkvsGjg.js +0 -46
- package/dist/input-otp-slot-BPkvsGjg.js.map +0 -1
- package/dist/item-title-BQFoYDpd.js.map +0 -1
- package/dist/kbd-group-BcPiHwLr.js +0 -13
- package/dist/kbd-group-BcPiHwLr.js.map +0 -1
- package/dist/kbd-group-PUw0yaIv.d.ts +0 -11
- package/dist/kbd-group-PUw0yaIv.d.ts.map +0 -1
- package/dist/menubar-trigger-BCZfHmqs.js +0 -147
- package/dist/menubar-trigger-BCZfHmqs.js.map +0 -1
- package/dist/menubar-trigger-Gx-lmpr9.d.ts +0 -105
- package/dist/menubar-trigger-Gx-lmpr9.d.ts.map +0 -1
- package/dist/meter-value-CJjAfKID.js.map +0 -1
- package/dist/meter-value-FRDEI8VE.d.ts.map +0 -1
- package/dist/navigation-menu-trigger-DG0JCv-9.js +0 -83
- package/dist/navigation-menu-trigger-DG0JCv-9.js.map +0 -1
- package/dist/navigation-menu-trigger-ryYftbUl.d.ts +0 -54
- package/dist/navigation-menu-trigger-ryYftbUl.d.ts.map +0 -1
- package/dist/number-field-scrub-area-cursor-6AFnR-wB.js +0 -69
- package/dist/number-field-scrub-area-cursor-6AFnR-wB.js.map +0 -1
- package/dist/number-field-scrub-area-cursor-BIS4ObSL.d.ts +0 -52
- package/dist/number-field-scrub-area-cursor-BIS4ObSL.d.ts.map +0 -1
- package/dist/optional-portal-BAOgHNvi.js.map +0 -1
- package/dist/pagination-previous-DPVkNRn0.js +0 -89
- package/dist/pagination-previous-DPVkNRn0.js.map +0 -1
- package/dist/pagination-previous-NpFopV3e.d.ts +0 -46
- package/dist/pagination-previous-NpFopV3e.d.ts.map +0 -1
- package/dist/pill-status-BIPaa4o3.js +0 -75
- package/dist/pill-status-BIPaa4o3.js.map +0 -1
- package/dist/popover-trigger-C8pR26Xp.d.ts +0 -40
- package/dist/popover-trigger-C8pR26Xp.d.ts.map +0 -1
- package/dist/popover-trigger-ChgU6NfZ.js +0 -53
- package/dist/popover-trigger-ChgU6NfZ.js.map +0 -1
- package/dist/progress-value-BGhNh_xb.d.ts +0 -29
- package/dist/progress-value-BGhNh_xb.d.ts.map +0 -1
- package/dist/progress-value-gJOcGICf.js.map +0 -1
- package/dist/radio-group-item-DCXseC2o.d.ts +0 -11
- package/dist/radio-group-item-DCXseC2o.d.ts.map +0 -1
- package/dist/radio-group-item-kWYh-tp8.js +0 -25
- package/dist/radio-group-item-kWYh-tp8.js.map +0 -1
- package/dist/rating-star-BZCtD00E.js.map +0 -1
- package/dist/rating-star-CxVJUZmc.d.ts.map +0 -1
- package/dist/resizable-panel-D4Brid-G.d.ts.map +0 -1
- package/dist/resizable-panel-DbWIMjJZ.js.map +0 -1
- package/dist/scroll-bar-KWm27Sfb.js +0 -20
- package/dist/scroll-bar-KWm27Sfb.js.map +0 -1
- package/dist/scroll-bar-L-sXig2v.d.ts +0 -12
- package/dist/scroll-bar-L-sXig2v.d.ts.map +0 -1
- package/dist/select-value-D8pFrPKG.d.ts +0 -71
- package/dist/select-value-D8pFrPKG.d.ts.map +0 -1
- package/dist/select-value-Dudr8w5H.js +0 -118
- package/dist/select-value-Dudr8w5H.js.map +0 -1
- package/dist/sheet-trigger-B_N_tXmj.d.ts +0 -65
- package/dist/sheet-trigger-B_N_tXmj.d.ts.map +0 -1
- package/dist/sheet-trigger-CkQbW5Y7.js.map +0 -1
- package/dist/sidebar-trigger-C_fOu1p2.js.map +0 -1
- package/dist/slider.d.ts.map +0 -1
- package/dist/slider.js.map +0 -1
- package/dist/table-row-BRPt8Kcx.js +0 -61
- package/dist/table-row-BRPt8Kcx.js.map +0 -1
- package/dist/table-row-BSEIkZEJ.d.ts +0 -47
- package/dist/table-row-BSEIkZEJ.d.ts.map +0 -1
- package/dist/tabs-trigger-ChutNdGI.d.ts +0 -48
- package/dist/tabs-trigger-ChutNdGI.d.ts.map +0 -1
- package/dist/tabs-trigger-eCZA0-cA.js +0 -58
- package/dist/tabs-trigger-eCZA0-cA.js.map +0 -1
- package/dist/toggle-group-item-CrPxpOF5.d.ts +0 -54
- package/dist/toggle-group-item-CrPxpOF5.d.ts.map +0 -1
- package/dist/toggle-group-item-D2z6INUa.js +0 -35
- package/dist/toggle-group-item-D2z6INUa.js.map +0 -1
- package/dist/toolbar-separator-D5v-xesm.js +0 -42
- package/dist/toolbar-separator-D5v-xesm.js.map +0 -1
- package/dist/toolbar-separator-DbkRIfIA.d.ts +0 -41
- package/dist/toolbar-separator-DbkRIfIA.d.ts.map +0 -1
- package/dist/tooltip-trigger-B43yfWhK.d.ts +0 -28
- package/dist/tooltip-trigger-B43yfWhK.d.ts.map +0 -1
- package/dist/tooltip-trigger-iOUSgHR_.js +0 -38
- package/dist/tooltip-trigger-iOUSgHR_.js.map +0 -1
- package/dist/typography-ul-D1HgC8fT.js.map +0 -1
- package/dist/typography-ul-Dy8wQB_p.d.ts.map +0 -1
- package/dist/use-combobox-anchor-DEMIerKX.js +0 -199
- package/dist/use-combobox-anchor-DEMIerKX.js.map +0 -1
- package/dist/use-combobox-anchor-DKwvfnFx.d.ts +0 -121
- package/dist/use-combobox-anchor-DKwvfnFx.d.ts.map +0 -1
- package/dist/use-sidebar-CYBPR0ue.d.ts +0 -639
- package/dist/use-sidebar-CYBPR0ue.d.ts.map +0 -1
package/dist/input-group.d.ts
CHANGED
|
@@ -1,139 +1,46 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import { ButtonProps } from "./button.js";
|
|
4
|
-
import { F as InputGroupInput, I as InputGroupButton, L as InputGroupAddon, N as InputGroupTextarea, P as InputGroupText } from "./use-sidebar-CYBPR0ue.js";
|
|
5
|
-
import "./announcement-title-3cikJ44S.js";
|
|
6
|
-
import "./autocomplete-value-DUN1Jprs.js";
|
|
7
|
-
import "./avatar-image-DPunh5Hd.js";
|
|
8
|
-
import "./breadcrumb-separator-C6zfQJ5p.js";
|
|
9
|
-
import "./card-title-Dk0akcFR.js";
|
|
10
|
-
import "./collapsible-trigger-DjL8pGgf.js";
|
|
11
|
-
import "./use-combobox-anchor-DKwvfnFx.js";
|
|
12
|
-
import "./dialog-trigger-B5HeOikl.js";
|
|
13
|
-
import "./context-menu-trigger-DHPhlnvV.js";
|
|
14
|
-
import "./drawer-viewport-DejmWgmc.js";
|
|
15
|
-
import "./dropdown-menu-trigger-DEdnOFwc.js";
|
|
16
|
-
import "./dropzone-context-DNiJThhB.js";
|
|
17
|
-
import "./emoji-picker-skin-tone-selector-amzh0Wk6.js";
|
|
18
|
-
import "./empty-title-CcQlXOlP.js";
|
|
19
|
-
import "./hover-card-trigger-CRzFaoL4.js";
|
|
20
|
-
import { TextareaProps } from "./textarea.js";
|
|
21
|
-
import "./input-otp-slot-B19cyjk_.js";
|
|
22
|
-
import "./kbd-group-PUw0yaIv.js";
|
|
23
|
-
import "./marquee-item-BCswidMf.js";
|
|
24
|
-
import "./menubar-trigger-Gx-lmpr9.js";
|
|
25
|
-
import "./meter-value-FRDEI8VE.js";
|
|
26
|
-
import "./navigation-menu-trigger-ryYftbUl.js";
|
|
27
|
-
import "./number-field-scrub-area-cursor-BIS4ObSL.js";
|
|
28
|
-
import "./pagination-previous-NpFopV3e.js";
|
|
29
|
-
import "./pill-status-BS75xd9Z.js";
|
|
30
|
-
import "./popover-trigger-C8pR26Xp.js";
|
|
31
|
-
import "./progress-value-BGhNh_xb.js";
|
|
32
|
-
import "./radio-group-item-DCXseC2o.js";
|
|
33
|
-
import "./rating-star-CxVJUZmc.js";
|
|
34
|
-
import "./resizable-panel-D4Brid-G.js";
|
|
35
|
-
import "./scroll-bar-L-sXig2v.js";
|
|
36
|
-
import "./select-value-D8pFrPKG.js";
|
|
37
|
-
import "./sheet-trigger-B_N_tXmj.js";
|
|
38
|
-
import "./tooltip-trigger-B43yfWhK.js";
|
|
39
|
-
import "./table-row-BSEIkZEJ.js";
|
|
40
|
-
import "./tabs-trigger-ChutNdGI.js";
|
|
41
|
-
import "./use-timeline-Dcj9DR0I.js";
|
|
42
|
-
import "./toggle-group-item-CrPxpOF5.js";
|
|
43
|
-
import "./toolbar-separator-DbkRIfIA.js";
|
|
44
|
-
import "./typography-ul-Dy8wQB_p.js";
|
|
45
|
-
import "./index.js";
|
|
46
|
-
import * as tailwind_variants0 from "tailwind-variants";
|
|
1
|
+
import { InputSize } from "./input.js";
|
|
2
|
+
import { a as InputGroupInput, c as InputGroupButtonProps, i as InputGroupTextProps, l as InputGroupAddon, n as InputGroupTextareaProps, o as InputGroupInputProps, r as InputGroupText, s as InputGroupButton, t as InputGroupTextarea, u as InputGroupAddonProps } from "./input-group-textarea-C6-pPujg.js";
|
|
47
3
|
import { ComponentProps } from "react";
|
|
48
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
49
5
|
|
|
50
6
|
//#region src/ui/input-group/input-group.d.ts
|
|
7
|
+
type InputGroupProps = ComponentProps<"div"> & {
|
|
8
|
+
size?: InputSize;
|
|
9
|
+
};
|
|
51
10
|
declare const InputGroup: {
|
|
52
11
|
({
|
|
53
12
|
className,
|
|
13
|
+
children,
|
|
14
|
+
size: providedSize,
|
|
54
15
|
...props
|
|
55
|
-
}:
|
|
16
|
+
}: InputGroupProps): react_jsx_runtime0.JSX.Element;
|
|
56
17
|
Addon: ({
|
|
57
18
|
className,
|
|
58
19
|
align,
|
|
20
|
+
size,
|
|
59
21
|
...props
|
|
60
|
-
}:
|
|
61
|
-
align: {
|
|
62
|
-
"inline-start": string;
|
|
63
|
-
"inline-end": string;
|
|
64
|
-
"block-start": string;
|
|
65
|
-
"block-end": string;
|
|
66
|
-
};
|
|
67
|
-
}, undefined, "flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--kb-radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
|
|
68
|
-
align: {
|
|
69
|
-
"inline-start": string;
|
|
70
|
-
"inline-end": string;
|
|
71
|
-
"block-start": string;
|
|
72
|
-
"block-end": string;
|
|
73
|
-
};
|
|
74
|
-
}, undefined, tailwind_variants0.TVReturnType<{
|
|
75
|
-
align: {
|
|
76
|
-
"inline-start": string;
|
|
77
|
-
"inline-end": string;
|
|
78
|
-
"block-start": string;
|
|
79
|
-
"block-end": string;
|
|
80
|
-
};
|
|
81
|
-
}, undefined, "flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--kb-radius)-5px)] [&>svg:not([class*='size-'])]:size-4", unknown, unknown, undefined>>>) => react_jsx_runtime0.JSX.Element;
|
|
22
|
+
}: InputGroupAddonProps) => react_jsx_runtime0.JSX.Element;
|
|
82
23
|
Button: ({
|
|
83
24
|
className,
|
|
84
25
|
type,
|
|
85
26
|
variant,
|
|
86
27
|
size,
|
|
87
28
|
...props
|
|
88
|
-
}:
|
|
89
|
-
className,
|
|
90
|
-
variant,
|
|
91
|
-
size,
|
|
92
|
-
isLoading,
|
|
93
|
-
children,
|
|
94
|
-
disabled,
|
|
95
|
-
...props
|
|
96
|
-
}: ButtonProps) => react_jsx_runtime0.JSX.Element>, "size" | "type"> & tailwind_variants0.VariantProps<tailwind_variants0.TVReturnType<{
|
|
97
|
-
size: {
|
|
98
|
-
xs: string;
|
|
99
|
-
sm: string;
|
|
100
|
-
"icon-xs": string;
|
|
101
|
-
"icon-sm": string;
|
|
102
|
-
};
|
|
103
|
-
}, undefined, "flex items-center gap-2 text-sm shadow-none", {
|
|
104
|
-
size: {
|
|
105
|
-
xs: string;
|
|
106
|
-
sm: string;
|
|
107
|
-
"icon-xs": string;
|
|
108
|
-
"icon-sm": string;
|
|
109
|
-
};
|
|
110
|
-
}, undefined, tailwind_variants0.TVReturnType<{
|
|
111
|
-
size: {
|
|
112
|
-
xs: string;
|
|
113
|
-
sm: string;
|
|
114
|
-
"icon-xs": string;
|
|
115
|
-
"icon-sm": string;
|
|
116
|
-
};
|
|
117
|
-
}, undefined, "flex items-center gap-2 text-sm shadow-none", unknown, unknown, undefined>>> & {
|
|
118
|
-
type?: "button" | "submit" | "reset";
|
|
119
|
-
}) => react_jsx_runtime0.JSX.Element;
|
|
29
|
+
}: InputGroupButtonProps) => react_jsx_runtime0.JSX.Element;
|
|
120
30
|
Input: ({
|
|
121
31
|
className,
|
|
32
|
+
size,
|
|
122
33
|
...props
|
|
123
|
-
}:
|
|
34
|
+
}: InputGroupInputProps) => react_jsx_runtime0.JSX.Element;
|
|
124
35
|
Text: ({
|
|
125
36
|
className,
|
|
126
37
|
...props
|
|
127
|
-
}:
|
|
38
|
+
}: InputGroupTextProps) => react_jsx_runtime0.JSX.Element;
|
|
128
39
|
Textarea: ({
|
|
129
40
|
className,
|
|
130
41
|
...props
|
|
131
|
-
}:
|
|
132
|
-
className,
|
|
133
|
-
rows,
|
|
134
|
-
...props
|
|
135
|
-
}: TextareaProps) => react_jsx_runtime0.JSX.Element>) => react_jsx_runtime0.JSX.Element;
|
|
42
|
+
}: InputGroupTextareaProps) => react_jsx_runtime0.JSX.Element;
|
|
136
43
|
};
|
|
137
44
|
//#endregion
|
|
138
|
-
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
45
|
+
export { InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, InputGroupInput, type InputGroupInputProps, InputGroupProps, InputGroupText, type InputGroupTextProps, InputGroupTextarea, type InputGroupTextareaProps };
|
|
139
46
|
//# sourceMappingURL=input-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group.d.ts","names":[],"sources":["../src/ui/input-group/input-group.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-group.d.ts","names":[],"sources":["../src/ui/input-group/input-group.tsx"],"mappings":";;;;;;KAeY,eAAA,GAAkB,cAAA;EAC5B,IAAA,GAAO,SAAA;AAAA;AAAA,cAGH,UAAA;EAAA;;;;;KAKH,eAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/input-group.js
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { a as
|
|
3
|
+
import { a as useComponentSize } from "./size-provider-D2Fy00Ky.js";
|
|
4
|
+
import { a as InputGroupAddon, i as InputGroupButton, n as InputGroupText, o as InputGroupContext, r as InputGroupInput, t as InputGroupTextarea } from "./input-group-textarea-C6ixncHC.js";
|
|
4
5
|
import { cn } from "tailwind-variants";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
|
|
7
8
|
//#region src/ui/input-group/input-group.tsx
|
|
8
|
-
const InputGroup = ({ className, ...props }) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
const InputGroup = ({ className, children, size: providedSize, ...props }) => {
|
|
10
|
+
const size = useComponentSize(providedSize);
|
|
11
|
+
return /* @__PURE__ */ jsx("div", {
|
|
12
|
+
className: cn("group/input-group relative flex w-full min-w-0 items-center border border-input transition-colors outline-none data-[size=xs]:h-6 data-[size=xs]:rounded-[min(var(--radius-md),8px)] data-[size=sm]:h-8 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=md]:h-9 data-[size=md]:rounded-md data-[size=lg]:h-10 data-[size=lg]:rounded-md data-[size=xl]:h-11 data-[size=xl]:rounded-md in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-danger has-[[data-slot][aria-invalid=true]]:ring-[3px] has-[[data-slot][aria-invalid=true]]:ring-danger/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-danger/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
|
|
13
|
+
"data-size": size,
|
|
14
|
+
"data-slot": "input-group",
|
|
15
|
+
role: "group",
|
|
16
|
+
...props,
|
|
17
|
+
children: /* @__PURE__ */ jsx(InputGroupContext.Provider, {
|
|
18
|
+
value: { size },
|
|
19
|
+
children
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
};
|
|
14
23
|
InputGroup.Addon = InputGroupAddon;
|
|
15
24
|
InputGroup.Button = InputGroupButton;
|
|
16
25
|
InputGroup.Input = InputGroupInput;
|
package/dist/input-group.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group.js","names":[],"sources":["../src/ui/input-group/input-group.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\n\nimport { InputGroupAddon } from \"./input-group-addon\";\nimport { InputGroupButton } from \"./input-group-button\";\nimport { InputGroupInput } from \"./input-group-input\";\nimport { InputGroupText } from \"./input-group-text\";\nimport { InputGroupTextarea } from \"./input-group-textarea\";\n\nconst InputGroup = ({
|
|
1
|
+
{"version":3,"file":"input-group.js","names":[],"sources":["../src/ui/input-group/input-group.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { InputGroupAddon } from \"./input-group-addon\";\nimport { InputGroupButton } from \"./input-group-button\";\nimport { InputGroupContext } from \"./input-group-context\";\nimport { InputGroupInput } from \"./input-group-input\";\nimport { InputGroupText } from \"./input-group-text\";\nimport { InputGroupTextarea } from \"./input-group-textarea\";\nexport type InputGroupProps = ComponentProps<\"div\"> & {\n size?: InputSize;\n};\n\nconst InputGroup = ({\n className,\n children,\n size: providedSize,\n ...props\n}: InputGroupProps) => {\n const size = useComponentSize(providedSize);\n\n return (\n <div\n className={cn(\n \"group/input-group relative flex w-full min-w-0 items-center border border-input transition-colors outline-none data-[size=xs]:h-6 data-[size=xs]:rounded-[min(var(--radius-md),8px)] data-[size=sm]:h-8 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=md]:h-9 data-[size=md]:rounded-md data-[size=lg]:h-10 data-[size=lg]:rounded-md data-[size=xl]:h-11 data-[size=xl]:rounded-md in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-danger has-[[data-slot][aria-invalid=true]]:ring-[3px] has-[[data-slot][aria-invalid=true]]:ring-danger/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-danger/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5\",\n className\n )}\n data-size={size}\n data-slot=\"input-group\"\n role=\"group\"\n {...props}\n >\n <InputGroupContext.Provider value={{ size }}>\n {children}\n </InputGroupContext.Provider>\n </div>\n );\n};\n\nInputGroup.Addon = InputGroupAddon;\nInputGroup.Button = InputGroupButton;\nInputGroup.Input = InputGroupInput;\nInputGroup.Text = InputGroupText;\nInputGroup.Textarea = InputGroupTextarea;\n\nexport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n};\n\nexport type { InputGroupAddonProps } from \"./input-group-addon\";\nexport type { InputGroupButtonProps } from \"./input-group-button\";\nexport type { InputGroupInputProps } from \"./input-group-input\";\nexport type { InputGroupTextProps } from \"./input-group-text\";\nexport type { InputGroupTextareaProps } from \"./input-group-textarea\";\n"],"mappings":";;;;;;;;AAmBA,MAAM,cAAc,EAClB,WACA,UACA,MAAM,cACN,GAAG,YACkB;CACrB,MAAM,OAAO,iBAAiB,aAAa;AAE3C,QACE,oBAAC;EACC,WAAW,GACT,y1CACA,UACD;EACD,aAAW;EACX,aAAU;EACV,MAAK;EACL,GAAI;YAEJ,oBAAC,kBAAkB;GAAS,OAAO,EAAE,MAAM;GACxC;IAC0B;GACzB;;AAIV,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB,WAAW,WAAW"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { cn, tv } from "tailwind-variants";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { MinusSignIcon } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon } from "@hugeicons/react";
|
|
6
|
+
import { OTPInputContext } from "input-otp";
|
|
7
|
+
|
|
8
|
+
//#region src/ui/input-otp/input-otp-context.tsx
|
|
9
|
+
const InputOTPContext = createContext({ size: "md" });
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/ui/input-otp/input-otp-group.tsx
|
|
13
|
+
const inputOTPGroupVariants = tv({
|
|
14
|
+
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",
|
|
15
|
+
variants: { size: {
|
|
16
|
+
xs: "rounded-[min(var(--radius-md),8px)]",
|
|
17
|
+
sm: "rounded-[min(var(--radius-md),10px)]",
|
|
18
|
+
md: "rounded-md",
|
|
19
|
+
lg: "rounded-md",
|
|
20
|
+
xl: "rounded-md"
|
|
21
|
+
} },
|
|
22
|
+
defaultVariants: { size: "md" }
|
|
23
|
+
});
|
|
24
|
+
const InputOTPGroup = ({ className, size, ...props }) => {
|
|
25
|
+
const { size: rootSize } = useContext(InputOTPContext);
|
|
26
|
+
const resolvedSize = size ?? rootSize ?? "md";
|
|
27
|
+
return /* @__PURE__ */ jsx("div", {
|
|
28
|
+
className: cn(inputOTPGroupVariants({ size: resolvedSize }), className),
|
|
29
|
+
"data-size": resolvedSize,
|
|
30
|
+
"data-slot": "input-otp-group",
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/ui/input-otp/input-otp-separator.tsx
|
|
37
|
+
const inputOTPSeparatorVariants = tv({
|
|
38
|
+
base: "flex items-center justify-center",
|
|
39
|
+
variants: { size: {
|
|
40
|
+
xs: "[&_svg:not([class*='size-'])]:size-3",
|
|
41
|
+
sm: "[&_svg:not([class*='size-'])]:size-3.5",
|
|
42
|
+
md: "[&_svg:not([class*='size-'])]:size-4",
|
|
43
|
+
lg: "[&_svg:not([class*='size-'])]:size-4",
|
|
44
|
+
xl: "[&_svg:not([class*='size-'])]:size-5"
|
|
45
|
+
} },
|
|
46
|
+
defaultVariants: { size: "md" }
|
|
47
|
+
});
|
|
48
|
+
const InputOTPSeparator = ({ className, size, ...props }) => {
|
|
49
|
+
const { size: rootSize } = useContext(InputOTPContext);
|
|
50
|
+
const resolvedSize = size ?? rootSize ?? "md";
|
|
51
|
+
return /* @__PURE__ */ jsx("div", {
|
|
52
|
+
className: cn(inputOTPSeparatorVariants({ size: resolvedSize }), className),
|
|
53
|
+
"data-size": resolvedSize,
|
|
54
|
+
"data-slot": "input-otp-separator",
|
|
55
|
+
role: "separator",
|
|
56
|
+
...props,
|
|
57
|
+
children: /* @__PURE__ */ jsx(HugeiconsIcon, {
|
|
58
|
+
icon: MinusSignIcon,
|
|
59
|
+
strokeWidth: 2
|
|
60
|
+
})
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/ui/input-otp/input-otp-slot.tsx
|
|
66
|
+
const inputOTPSlotVariants = tv({
|
|
67
|
+
slots: {
|
|
68
|
+
caret: "animate-caret-blink bg-foreground duration-1000",
|
|
69
|
+
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"
|
|
70
|
+
},
|
|
71
|
+
variants: { size: {
|
|
72
|
+
xs: {
|
|
73
|
+
caret: "h-3 w-px",
|
|
74
|
+
root: "size-6 text-xs first:rounded-l-[min(var(--radius-md),8px)] last:rounded-r-[min(var(--radius-md),8px)]"
|
|
75
|
+
},
|
|
76
|
+
sm: {
|
|
77
|
+
caret: "h-3.5 w-px",
|
|
78
|
+
root: "size-8 text-sm first:rounded-l-[min(var(--radius-md),10px)] last:rounded-r-[min(var(--radius-md),10px)]"
|
|
79
|
+
},
|
|
80
|
+
md: {
|
|
81
|
+
caret: "h-4 w-px",
|
|
82
|
+
root: "size-9 text-base first:rounded-l-md last:rounded-r-md md:text-sm"
|
|
83
|
+
},
|
|
84
|
+
lg: {
|
|
85
|
+
caret: "h-4 w-px",
|
|
86
|
+
root: "size-10 text-base first:rounded-l-md last:rounded-r-md md:text-sm"
|
|
87
|
+
},
|
|
88
|
+
xl: {
|
|
89
|
+
caret: "h-5 w-px",
|
|
90
|
+
root: "size-11 text-base first:rounded-l-md last:rounded-r-md"
|
|
91
|
+
}
|
|
92
|
+
} },
|
|
93
|
+
defaultVariants: { size: "md" }
|
|
94
|
+
});
|
|
95
|
+
const InputOTPSlot = ({ index, className, size, ...props }) => {
|
|
96
|
+
const inputOTPContext = useContext(OTPInputContext);
|
|
97
|
+
const { size: rootSize } = useContext(InputOTPContext);
|
|
98
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
99
|
+
const resolvedSize = size ?? rootSize ?? "md";
|
|
100
|
+
const { caret, root } = inputOTPSlotVariants({ size: resolvedSize });
|
|
101
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
102
|
+
className: cn(root(), className),
|
|
103
|
+
"data-active": isActive,
|
|
104
|
+
"data-size": resolvedSize,
|
|
105
|
+
"data-slot": "input-otp-slot",
|
|
106
|
+
...props,
|
|
107
|
+
children: [char, hasFakeCaret && /* @__PURE__ */ jsx("div", {
|
|
108
|
+
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
109
|
+
children: /* @__PURE__ */ jsx("div", { className: caret() })
|
|
110
|
+
})]
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
//#endregion
|
|
115
|
+
export { InputOTPContext as i, InputOTPSeparator as n, InputOTPGroup as r, InputOTPSlot as t };
|
|
116
|
+
//# sourceMappingURL=input-otp-slot-BA8DE3oz.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-otp-slot-BA8DE3oz.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"],"sourcesContent":["import { 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"],"mappings":";;;;;;;;AAQA,MAAM,kBAAkB,cAAoC,EAC1D,MAAM,MACP,CAAC;;;;ACDF,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"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { InputSize } from "./input.js";
|
|
2
|
+
import * as tailwind_variants0 from "tailwind-variants";
|
|
3
|
+
import { VariantProps } from "tailwind-variants";
|
|
4
|
+
import { ComponentProps } from "react";
|
|
5
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/ui/input-otp/input-otp-group.d.ts
|
|
8
|
+
declare const inputOTPGroupVariants: tailwind_variants0.TVReturnType<{
|
|
9
|
+
size: {
|
|
10
|
+
xs: string;
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
xl: string;
|
|
15
|
+
};
|
|
16
|
+
}, undefined, "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", {
|
|
17
|
+
size: {
|
|
18
|
+
xs: string;
|
|
19
|
+
sm: string;
|
|
20
|
+
md: string;
|
|
21
|
+
lg: string;
|
|
22
|
+
xl: string;
|
|
23
|
+
};
|
|
24
|
+
}, undefined, tailwind_variants0.TVReturnType<{
|
|
25
|
+
size: {
|
|
26
|
+
xs: string;
|
|
27
|
+
sm: string;
|
|
28
|
+
md: string;
|
|
29
|
+
lg: string;
|
|
30
|
+
xl: string;
|
|
31
|
+
};
|
|
32
|
+
}, undefined, "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", unknown, unknown, undefined>>;
|
|
33
|
+
type InputOTPGroupVariantProps = VariantProps<typeof inputOTPGroupVariants>;
|
|
34
|
+
type InputOTPGroupProps = ComponentProps<"div"> & InputOTPGroupVariantProps & {
|
|
35
|
+
size?: InputSize;
|
|
36
|
+
};
|
|
37
|
+
declare const InputOTPGroup: ({
|
|
38
|
+
className,
|
|
39
|
+
size,
|
|
40
|
+
...props
|
|
41
|
+
}: InputOTPGroupProps) => react_jsx_runtime0.JSX.Element;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/ui/input-otp/input-otp-separator.d.ts
|
|
44
|
+
declare const inputOTPSeparatorVariants: tailwind_variants0.TVReturnType<{
|
|
45
|
+
size: {
|
|
46
|
+
xs: string;
|
|
47
|
+
sm: string;
|
|
48
|
+
md: string;
|
|
49
|
+
lg: string;
|
|
50
|
+
xl: string;
|
|
51
|
+
};
|
|
52
|
+
}, undefined, "flex items-center justify-center", {
|
|
53
|
+
size: {
|
|
54
|
+
xs: string;
|
|
55
|
+
sm: string;
|
|
56
|
+
md: string;
|
|
57
|
+
lg: string;
|
|
58
|
+
xl: string;
|
|
59
|
+
};
|
|
60
|
+
}, undefined, tailwind_variants0.TVReturnType<{
|
|
61
|
+
size: {
|
|
62
|
+
xs: string;
|
|
63
|
+
sm: string;
|
|
64
|
+
md: string;
|
|
65
|
+
lg: string;
|
|
66
|
+
xl: string;
|
|
67
|
+
};
|
|
68
|
+
}, undefined, "flex items-center justify-center", unknown, unknown, undefined>>;
|
|
69
|
+
type InputOTPSeparatorVariantProps = VariantProps<typeof inputOTPSeparatorVariants>;
|
|
70
|
+
type InputOTPSeparatorProps = ComponentProps<"div"> & InputOTPSeparatorVariantProps & {
|
|
71
|
+
size?: InputSize;
|
|
72
|
+
};
|
|
73
|
+
declare const InputOTPSeparator: ({
|
|
74
|
+
className,
|
|
75
|
+
size,
|
|
76
|
+
...props
|
|
77
|
+
}: InputOTPSeparatorProps) => react_jsx_runtime0.JSX.Element;
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/ui/input-otp/input-otp-slot.d.ts
|
|
80
|
+
declare const inputOTPSlotVariants: tailwind_variants0.TVReturnType<{
|
|
81
|
+
size: {
|
|
82
|
+
xs: {
|
|
83
|
+
caret: string;
|
|
84
|
+
root: string;
|
|
85
|
+
};
|
|
86
|
+
sm: {
|
|
87
|
+
caret: string;
|
|
88
|
+
root: string;
|
|
89
|
+
};
|
|
90
|
+
md: {
|
|
91
|
+
caret: string;
|
|
92
|
+
root: string;
|
|
93
|
+
};
|
|
94
|
+
lg: {
|
|
95
|
+
caret: string;
|
|
96
|
+
root: string;
|
|
97
|
+
};
|
|
98
|
+
xl: {
|
|
99
|
+
caret: string;
|
|
100
|
+
root: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}, {
|
|
104
|
+
caret: string;
|
|
105
|
+
root: string;
|
|
106
|
+
}, undefined, {
|
|
107
|
+
size: {
|
|
108
|
+
xs: {
|
|
109
|
+
caret: string;
|
|
110
|
+
root: string;
|
|
111
|
+
};
|
|
112
|
+
sm: {
|
|
113
|
+
caret: string;
|
|
114
|
+
root: string;
|
|
115
|
+
};
|
|
116
|
+
md: {
|
|
117
|
+
caret: string;
|
|
118
|
+
root: string;
|
|
119
|
+
};
|
|
120
|
+
lg: {
|
|
121
|
+
caret: string;
|
|
122
|
+
root: string;
|
|
123
|
+
};
|
|
124
|
+
xl: {
|
|
125
|
+
caret: string;
|
|
126
|
+
root: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
caret: string;
|
|
131
|
+
root: string;
|
|
132
|
+
}, tailwind_variants0.TVReturnType<{
|
|
133
|
+
size: {
|
|
134
|
+
xs: {
|
|
135
|
+
caret: string;
|
|
136
|
+
root: string;
|
|
137
|
+
};
|
|
138
|
+
sm: {
|
|
139
|
+
caret: string;
|
|
140
|
+
root: string;
|
|
141
|
+
};
|
|
142
|
+
md: {
|
|
143
|
+
caret: string;
|
|
144
|
+
root: string;
|
|
145
|
+
};
|
|
146
|
+
lg: {
|
|
147
|
+
caret: string;
|
|
148
|
+
root: string;
|
|
149
|
+
};
|
|
150
|
+
xl: {
|
|
151
|
+
caret: string;
|
|
152
|
+
root: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
}, {
|
|
156
|
+
caret: string;
|
|
157
|
+
root: string;
|
|
158
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
159
|
+
type InputOTPSlotVariantProps = VariantProps<typeof inputOTPSlotVariants>;
|
|
160
|
+
type InputOTPSlotProps = ComponentProps<"div"> & {
|
|
161
|
+
index: number;
|
|
162
|
+
} & InputOTPSlotVariantProps & {
|
|
163
|
+
size?: InputSize;
|
|
164
|
+
};
|
|
165
|
+
declare const InputOTPSlot: ({
|
|
166
|
+
index,
|
|
167
|
+
className,
|
|
168
|
+
size,
|
|
169
|
+
...props
|
|
170
|
+
}: InputOTPSlotProps) => react_jsx_runtime0.JSX.Element;
|
|
171
|
+
//#endregion
|
|
172
|
+
export { InputOTPGroup as a, InputOTPSeparatorProps as i, InputOTPSlotProps as n, InputOTPGroupProps as o, InputOTPSeparator as r, InputOTPSlot as t };
|
|
173
|
+
//# sourceMappingURL=input-otp-slot-BxEhjqR5.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-otp-slot-BxEhjqR5.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"],"mappings":";;;;;;;cASM,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;;;cChCnB,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"}
|
package/dist/input-otp.d.ts
CHANGED
|
@@ -1,32 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputSize } from "./input.js";
|
|
2
|
+
import { a as InputOTPGroup, i as InputOTPSeparatorProps, n as InputOTPSlotProps, o as InputOTPGroupProps, r as InputOTPSeparator, t as InputOTPSlot } from "./input-otp-slot-BxEhjqR5.js";
|
|
2
3
|
import { ComponentProps } from "react";
|
|
3
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
5
|
import { OTPInput } from "input-otp";
|
|
5
6
|
|
|
6
7
|
//#region src/ui/input-otp/input-otp.d.ts
|
|
8
|
+
type NativeInputOTPProps = ComponentProps<typeof OTPInput>;
|
|
9
|
+
type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
|
|
10
|
+
type InputOTPProps = DistributiveOmit<NativeInputOTPProps, "size"> & {
|
|
11
|
+
containerClassName?: string;
|
|
12
|
+
size?: InputSize;
|
|
13
|
+
};
|
|
7
14
|
declare const InputOTP: {
|
|
8
15
|
({
|
|
9
16
|
className,
|
|
10
17
|
containerClassName,
|
|
18
|
+
size: providedSize,
|
|
11
19
|
...props
|
|
12
|
-
}:
|
|
13
|
-
containerClassName?: string;
|
|
14
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
20
|
+
}: InputOTPProps): react_jsx_runtime0.JSX.Element;
|
|
15
21
|
Group: ({
|
|
16
22
|
className,
|
|
23
|
+
size,
|
|
17
24
|
...props
|
|
18
|
-
}:
|
|
25
|
+
}: InputOTPGroupProps) => react_jsx_runtime0.JSX.Element;
|
|
19
26
|
Separator: ({
|
|
27
|
+
className,
|
|
28
|
+
size,
|
|
20
29
|
...props
|
|
21
|
-
}:
|
|
30
|
+
}: InputOTPSeparatorProps) => react_jsx_runtime0.JSX.Element;
|
|
22
31
|
Slot: ({
|
|
23
32
|
index,
|
|
24
33
|
className,
|
|
34
|
+
size,
|
|
25
35
|
...props
|
|
26
|
-
}:
|
|
27
|
-
index: number;
|
|
28
|
-
}) => react_jsx_runtime0.JSX.Element;
|
|
36
|
+
}: InputOTPSlotProps) => react_jsx_runtime0.JSX.Element;
|
|
29
37
|
};
|
|
30
38
|
//#endregion
|
|
31
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
39
|
+
export { InputOTP, InputOTPGroup, type InputOTPGroupProps, InputOTPProps, InputOTPSeparator, type InputOTPSeparatorProps, InputOTPSlot, type InputOTPSlotProps };
|
|
32
40
|
//# sourceMappingURL=input-otp.d.ts.map
|
package/dist/input-otp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.d.ts","names":[],"sources":["../src/ui/input-otp/input-otp.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-otp.d.ts","names":[],"sources":["../src/ui/input-otp/input-otp.tsx"],"mappings":";;;;;;;KAeK,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/input-otp.js
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { a as useComponentSize } from "./size-provider-D2Fy00Ky.js";
|
|
4
|
+
import { i as InputOTPContext, n as InputOTPSeparator, r as InputOTPGroup, t as InputOTPSlot } from "./input-otp-slot-BA8DE3oz.js";
|
|
4
5
|
import { cn } from "tailwind-variants";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
import { OTPInput } from "input-otp";
|
|
7
8
|
|
|
8
9
|
//#region src/ui/input-otp/input-otp.tsx
|
|
9
|
-
const InputOTP = ({ className, containerClassName, ...props }) =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const InputOTP = ({ className, containerClassName, size: providedSize, ...props }) => {
|
|
11
|
+
const size = useComponentSize(providedSize);
|
|
12
|
+
return /* @__PURE__ */ jsx(InputOTPContext.Provider, {
|
|
13
|
+
value: { size },
|
|
14
|
+
children: /* @__PURE__ */ jsx(OTPInput, {
|
|
15
|
+
className: cn("disabled:cursor-not-allowed", className),
|
|
16
|
+
containerClassName: cn("cn-input-otp flex items-center has-disabled:opacity-50", containerClassName),
|
|
17
|
+
"data-size": size,
|
|
18
|
+
"data-slot": "input-otp",
|
|
19
|
+
spellCheck: false,
|
|
20
|
+
...props
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
16
24
|
InputOTP.Group = InputOTPGroup;
|
|
17
25
|
InputOTP.Separator = InputOTPSeparator;
|
|
18
26
|
InputOTP.Slot = InputOTPSlot;
|
package/dist/input-otp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.js","names":[],"sources":["../src/ui/input-otp/input-otp.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { OTPInput } from \"input-otp\";\nimport { cn } from \"tailwind-variants\";\n\nimport { InputOTPGroup } from \"./input-otp-group\";\nimport { InputOTPSeparator } from \"./input-otp-separator\";\nimport { InputOTPSlot } from \"./input-otp-slot\";\n\nconst InputOTP = ({\n className,\n containerClassName,\n ...props\n}:
|
|
1
|
+
{"version":3,"file":"input-otp.js","names":[],"sources":["../src/ui/input-otp/input-otp.tsx"],"sourcesContent":["\"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":";;;;;;;;;AAyBA,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"}
|