@kuzenbo/core 0.0.1 → 0.0.3
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 +4 -3
- package/dist/avatar-image-BQ_NEKH4.js +47 -0
- package/dist/avatar-image-BQ_NEKH4.js.map +1 -0
- package/dist/avatar-image-Ce26D2fb.d.ts +41 -0
- package/dist/avatar-image-Ce26D2fb.d.ts.map +1 -0
- package/dist/button-group-size-context-DW7Gn-3k.js +8 -0
- package/dist/button-group-size-context-DW7Gn-3k.js.map +1 -0
- package/dist/dialog-trigger-BUF3elAP.js +122 -0
- package/dist/dialog-trigger-BUF3elAP.js.map +1 -0
- package/dist/dialog-viewport-Ce1huyAI.d.ts +96 -0
- package/dist/dialog-viewport-Ce1huyAI.d.ts.map +1 -0
- package/dist/dropdown-menu-trigger-BpgtLUvf.d.ts +646 -0
- package/dist/dropdown-menu-trigger-BpgtLUvf.d.ts.map +1 -0
- package/dist/dropdown-menu-trigger-COnFGfDa.js +488 -0
- package/dist/dropdown-menu-trigger-COnFGfDa.js.map +1 -0
- package/dist/input-group-textarea-B-rP98r5.js +120 -0
- package/dist/input-group-textarea-B-rP98r5.js.map +1 -0
- package/dist/merge-base-ui-class-name-HKsgjcXj.js +11 -0
- package/dist/merge-base-ui-class-name-HKsgjcXj.js.map +1 -0
- package/dist/provider.d.ts +4 -0
- package/dist/provider.js +5 -0
- package/dist/scroll-bar-C4qEUKlT.js +26 -0
- package/dist/scroll-bar-C4qEUKlT.js.map +1 -0
- package/dist/sheet-trigger-D7neoTF5.js +121 -0
- package/dist/sheet-trigger-D7neoTF5.js.map +1 -0
- package/dist/size-context-BjRwqlSg.js +25 -0
- package/dist/size-context-BjRwqlSg.js.map +1 -0
- package/dist/size-context-DXfCAlWF.d.ts +16 -0
- package/dist/size-context-DXfCAlWF.d.ts.map +1 -0
- package/dist/size-provider-18EvJgDT.js +128 -0
- package/dist/size-provider-18EvJgDT.js.map +1 -0
- package/dist/size-provider-Bd2C6gKd.d.ts +53 -0
- package/dist/size-provider-Bd2C6gKd.d.ts.map +1 -0
- package/dist/size-system-DTXmtQXw.js +47 -0
- package/dist/size-system-DTXmtQXw.js.map +1 -0
- package/dist/size-system-wzOLSuax.d.ts +6 -0
- package/dist/size-system-wzOLSuax.d.ts.map +1 -0
- package/dist/size.d.ts +4 -0
- package/dist/size.js +5 -0
- package/dist/slider-root-presentation-ChJHPMIV.js +336 -0
- package/dist/slider-root-presentation-ChJHPMIV.js.map +1 -0
- package/dist/slider-value-Db8SCu0c.d.ts +146 -0
- package/dist/slider-value-Db8SCu0c.d.ts.map +1 -0
- package/dist/tooltip-trigger-qXw-_nbh.js +101 -0
- package/dist/tooltip-trigger-qXw-_nbh.js.map +1 -0
- package/dist/tooltip-viewport-csA6luqI.d.ts +103 -0
- package/dist/tooltip-viewport-csA6luqI.d.ts.map +1 -0
- package/dist/ui/accordion.d.ts +83 -0
- package/dist/ui/accordion.d.ts.map +1 -0
- package/dist/ui/accordion.js +311 -0
- package/dist/ui/accordion.js.map +1 -0
- package/dist/ui/affix.d.ts +50 -0
- package/dist/ui/affix.d.ts.map +1 -0
- package/dist/ui/affix.js +69 -0
- package/dist/ui/affix.js.map +1 -0
- package/dist/ui/alert-dialog.d.ts +190 -0
- package/dist/ui/alert-dialog.d.ts.map +1 -0
- package/dist/ui/alert-dialog.js +164 -0
- package/dist/ui/alert-dialog.js.map +1 -0
- package/dist/ui/alert.d.ts +126 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/alert.js +238 -0
- package/dist/ui/alert.js.map +1 -0
- package/dist/ui/announcement.d.ts +41 -0
- package/dist/ui/announcement.d.ts.map +1 -0
- package/dist/ui/announcement.js +30 -0
- package/dist/ui/announcement.js.map +1 -0
- package/dist/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/ui/aspect-ratio.js +14 -0
- package/dist/ui/aspect-ratio.js.map +1 -0
- package/dist/ui/autocomplete.d.ts +401 -0
- package/dist/ui/autocomplete.d.ts.map +1 -0
- package/dist/ui/autocomplete.js +332 -0
- package/dist/ui/autocomplete.js.map +1 -0
- package/dist/ui/avatar.d.ts +39 -0
- package/dist/ui/avatar.d.ts.map +1 -0
- package/dist/ui/avatar.js +27 -0
- package/dist/ui/avatar.js.map +1 -0
- package/dist/ui/badge.d.ts +69 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/badge.js +55 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/breadcrumb.d.ts +272 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -0
- package/dist/ui/breadcrumb.js +195 -0
- package/dist/ui/breadcrumb.js.map +1 -0
- package/dist/ui/button-group.d.ts +147 -0
- package/dist/ui/button-group.d.ts.map +1 -0
- package/dist/ui/button-group.js +105 -0
- package/dist/ui/button-group.js.map +1 -0
- package/dist/ui/button.d.ts +78 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.js +110 -0
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/card.d.ts +80 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/card.js +77 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/carousel.d.ts +93 -0
- package/dist/ui/carousel.d.ts.map +1 -0
- package/dist/ui/carousel.js +162 -0
- package/dist/ui/carousel.js.map +1 -0
- package/dist/ui/checkbox-group.d.ts.map +1 -0
- package/dist/ui/checkbox-group.js +14 -0
- package/dist/ui/checkbox-group.js.map +1 -0
- package/dist/ui/checkbox.d.ts +89 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/checkbox.js +68 -0
- package/dist/ui/checkbox.js.map +1 -0
- package/dist/ui/code.d.ts.map +1 -0
- package/dist/ui/code.js +22 -0
- package/dist/ui/code.js.map +1 -0
- package/dist/ui/collapsible.d.ts +36 -0
- package/dist/ui/collapsible.d.ts.map +1 -0
- package/dist/ui/collapsible.js +34 -0
- package/dist/ui/collapsible.js.map +1 -0
- package/dist/ui/combobox.d.ts +683 -0
- package/dist/ui/combobox.d.ts.map +1 -0
- package/dist/ui/combobox.js +569 -0
- package/dist/ui/combobox.js.map +1 -0
- package/dist/ui/command.d.ts +325 -0
- package/dist/ui/command.d.ts.map +1 -0
- package/dist/ui/command.js +252 -0
- package/dist/ui/command.js.map +1 -0
- package/dist/ui/container.d.ts.map +1 -0
- package/dist/ui/container.js +13 -0
- package/dist/ui/container.js.map +1 -0
- package/dist/ui/context-menu.d.ts +764 -0
- package/dist/ui/context-menu.d.ts.map +1 -0
- package/dist/ui/context-menu.js +505 -0
- package/dist/ui/context-menu.js.map +1 -0
- package/dist/ui/copy-button.d.ts +40 -0
- package/dist/ui/copy-button.d.ts.map +1 -0
- package/dist/ui/copy-button.js +130 -0
- package/dist/ui/copy-button.js.map +1 -0
- package/dist/ui/dialog.d.ts +66 -0
- package/dist/ui/dialog.d.ts.map +1 -0
- package/dist/ui/dialog.js +27 -0
- package/dist/ui/dialog.js.map +1 -0
- package/dist/ui/drawer.d.ts +535 -0
- package/dist/ui/drawer.d.ts.map +1 -0
- package/dist/ui/drawer.js +293 -0
- package/dist/ui/drawer.js.map +1 -0
- package/dist/ui/dropdown-menu.d.ts +144 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/dropdown-menu.js +40 -0
- package/dist/ui/dropdown-menu.js.map +1 -0
- package/dist/ui/dropzone.d.ts +274 -0
- package/dist/ui/dropzone.d.ts.map +1 -0
- package/dist/ui/dropzone.js +208 -0
- package/dist/ui/dropzone.js.map +1 -0
- package/dist/ui/emoji-picker.d.ts +397 -0
- package/dist/ui/emoji-picker.d.ts.map +1 -0
- package/dist/ui/emoji-picker.js +346 -0
- package/dist/ui/emoji-picker.js.map +1 -0
- package/dist/ui/empty.d.ts +279 -0
- package/dist/ui/empty.d.ts.map +1 -0
- package/dist/ui/empty.js +211 -0
- package/dist/ui/empty.js.map +1 -0
- package/dist/ui/field.d.ts +120 -0
- package/dist/ui/field.d.ts.map +1 -0
- package/dist/ui/field.js +86 -0
- package/dist/ui/field.js.map +1 -0
- package/dist/ui/fieldset.d.ts +36 -0
- package/dist/ui/fieldset.d.ts.map +1 -0
- package/dist/ui/fieldset.js +28 -0
- package/dist/ui/fieldset.js.map +1 -0
- package/dist/ui/form.d.ts +28 -0
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/form.js +15 -0
- package/dist/ui/form.js.map +1 -0
- package/dist/ui/input-group.d.ts +160 -0
- package/dist/ui/input-group.d.ts.map +1 -0
- package/dist/ui/input-group.js +31 -0
- package/dist/ui/input-group.js.map +1 -0
- package/dist/ui/input-otp.d.ts +206 -0
- package/dist/ui/input-otp.d.ts.map +1 -0
- package/dist/ui/input-otp.js +139 -0
- package/dist/ui/input-otp.js.map +1 -0
- package/dist/ui/input.d.ts +46 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/input.js +37 -0
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/item.d.ts +182 -0
- package/dist/ui/item.d.ts.map +1 -0
- package/dist/ui/item.js +142 -0
- package/dist/ui/item.js.map +1 -0
- package/dist/ui/kbd.d.ts +36 -0
- package/dist/ui/kbd.d.ts.map +1 -0
- package/dist/ui/kbd.js +54 -0
- package/dist/ui/kbd.js.map +1 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/label.js +16 -0
- package/dist/ui/label.js.map +1 -0
- package/dist/ui/marquee.d.ts +58 -0
- package/dist/ui/marquee.d.ts.map +1 -0
- package/dist/ui/marquee.js +42 -0
- package/dist/ui/marquee.js.map +1 -0
- package/dist/ui/menubar.d.ts +769 -0
- package/dist/ui/menubar.d.ts.map +1 -0
- package/dist/ui/menubar.js +475 -0
- package/dist/ui/menubar.js.map +1 -0
- package/dist/ui/meter.d.ts +60 -0
- package/dist/ui/meter.d.ts.map +1 -0
- package/dist/ui/meter.js +51 -0
- package/dist/ui/meter.js.map +1 -0
- package/dist/ui/navigation-list.d.ts +972 -0
- package/dist/ui/navigation-list.d.ts.map +1 -0
- package/dist/ui/navigation-list.js +914 -0
- package/dist/ui/navigation-list.js.map +1 -0
- package/dist/ui/navigation-menu.d.ts +473 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -0
- package/dist/ui/navigation-menu.js +319 -0
- package/dist/ui/navigation-menu.js.map +1 -0
- package/dist/ui/number-field.d.ts +183 -0
- package/dist/ui/number-field.d.ts.map +1 -0
- package/dist/ui/number-field.js +159 -0
- package/dist/ui/number-field.js.map +1 -0
- package/dist/ui/pagination.d.ts +268 -0
- package/dist/ui/pagination.d.ts.map +1 -0
- package/dist/ui/pagination.js +217 -0
- package/dist/ui/pagination.js.map +1 -0
- package/dist/ui/pill.d.ts +122 -0
- package/dist/ui/pill.d.ts.map +1 -0
- package/dist/ui/pill.js +91 -0
- package/dist/ui/pill.js.map +1 -0
- package/dist/ui/popover.d.ts +194 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/popover.js +160 -0
- package/dist/ui/popover.js.map +1 -0
- package/dist/ui/portal.d.ts.map +1 -0
- package/dist/ui/portal.js +53 -0
- package/dist/ui/portal.js.map +1 -0
- package/dist/ui/preview-card.d.ts +113 -0
- package/dist/ui/preview-card.d.ts.map +1 -0
- package/dist/ui/preview-card.js +94 -0
- package/dist/ui/preview-card.js.map +1 -0
- package/dist/ui/progress.d.ts +60 -0
- package/dist/ui/progress.d.ts.map +1 -0
- package/dist/ui/progress.js +54 -0
- package/dist/ui/progress.js.map +1 -0
- package/dist/ui/qr-code.d.ts.map +1 -0
- package/dist/ui/qr-code.js +79 -0
- package/dist/ui/qr-code.js.map +1 -0
- package/dist/ui/radio-group.d.ts +102 -0
- package/dist/ui/radio-group.d.ts.map +1 -0
- package/dist/ui/radio-group.js +76 -0
- package/dist/ui/radio-group.js.map +1 -0
- package/dist/ui/range-slider/range-slider-types.d.ts +5 -0
- package/dist/ui/range-slider/range-slider-types.d.ts.map +1 -0
- package/dist/ui/range-slider/range-slider-types.js +0 -0
- package/dist/ui/range-slider.d.ts +57 -0
- package/dist/ui/range-slider.d.ts.map +1 -0
- package/dist/ui/range-slider.js +338 -0
- package/dist/ui/range-slider.js.map +1 -0
- package/dist/ui/rating.d.ts +149 -0
- package/dist/ui/rating.d.ts.map +1 -0
- package/dist/ui/rating.js +173 -0
- package/dist/ui/rating.js.map +1 -0
- package/dist/ui/resizable.d.ts +39 -0
- package/dist/ui/resizable.d.ts.map +1 -0
- package/dist/ui/resizable.js +34 -0
- package/dist/ui/resizable.js.map +1 -0
- package/dist/ui/scroll-area.d.ts +80 -0
- package/dist/ui/scroll-area.d.ts.map +1 -0
- package/dist/ui/scroll-area.js +54 -0
- package/dist/ui/scroll-area.js.map +1 -0
- package/dist/ui/select.d.ts +545 -0
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/select.js +425 -0
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/separator.d.ts.map +1 -0
- package/dist/ui/separator.js +15 -0
- package/dist/ui/separator.js.map +1 -0
- package/dist/ui/sheet.d.ts +158 -0
- package/dist/ui/sheet.d.ts.map +1 -0
- package/dist/ui/sheet.js +27 -0
- package/dist/ui/sheet.js.map +1 -0
- package/dist/ui/sidebar.d.ts +521 -0
- package/dist/ui/sidebar.d.ts.map +1 -0
- package/dist/ui/sidebar.js +538 -0
- package/dist/ui/sidebar.js.map +1 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/skeleton.js +13 -0
- package/dist/ui/skeleton.js.map +1 -0
- package/dist/ui/slider.d.ts +52 -0
- package/dist/ui/slider.d.ts.map +1 -0
- package/dist/ui/slider.js +215 -0
- package/dist/ui/slider.js.map +1 -0
- package/dist/ui/spacer.d.ts.map +1 -0
- package/dist/ui/spacer.js +26 -0
- package/dist/ui/spacer.js.map +1 -0
- package/dist/ui/spinner.d.ts +17 -0
- package/dist/ui/spinner.d.ts.map +1 -0
- package/dist/ui/spinner.js +23 -0
- package/dist/ui/spinner.js.map +1 -0
- package/dist/ui/switch.d.ts +58 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/switch.js +43 -0
- package/dist/ui/switch.js.map +1 -0
- package/dist/ui/table.d.ts +279 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +210 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/tabs.d.ts +120 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/tabs.js +170 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/textarea.d.ts +37 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/textarea.js +36 -0
- package/dist/ui/textarea.js.map +1 -0
- package/dist/ui/theme-icon.d.ts +78 -0
- package/dist/ui/theme-icon.d.ts.map +1 -0
- package/dist/ui/theme-icon.js +58 -0
- package/dist/ui/theme-icon.js.map +1 -0
- package/dist/ui/timeline.d.ts +171 -0
- package/dist/ui/timeline.d.ts.map +1 -0
- package/dist/ui/timeline.js +472 -0
- package/dist/ui/timeline.js.map +1 -0
- package/dist/ui/toggle-group.d.ts +138 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle-group.js +76 -0
- package/dist/ui/toggle-group.js.map +1 -0
- package/dist/ui/toggle.d.ts +53 -0
- package/dist/ui/toggle.d.ts.map +1 -0
- package/dist/ui/toggle.js +41 -0
- package/dist/ui/toggle.js.map +1 -0
- package/dist/ui/toolbar.d.ts +234 -0
- package/dist/ui/toolbar.d.ts.map +1 -0
- package/dist/ui/toolbar.js +156 -0
- package/dist/ui/toolbar.js.map +1 -0
- package/dist/ui/tooltip.d.ts +55 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.js +31 -0
- package/dist/ui/tooltip.js.map +1 -0
- package/dist/ui/typography.d.ts +411 -0
- package/dist/ui/typography.d.ts.map +1 -0
- package/dist/ui/typography.js +290 -0
- package/dist/ui/typography.js.map +1 -0
- package/dist/use-badge-default-props-8d9wPL0k.js +8 -0
- package/dist/use-badge-default-props-8d9wPL0k.js.map +1 -0
- package/dist/use-input-default-props-B6VgKXGM.js +8 -0
- package/dist/use-input-default-props-B6VgKXGM.js.map +1 -0
- package/dist/use-textarea-default-props-7MlOxkDO.js +8 -0
- package/dist/use-textarea-default-props-7MlOxkDO.js.map +1 -0
- package/package.json +165 -745
- package/dist/accordion-trigger-P3yAXC9X.d.ts +0 -35
- package/dist/accordion-trigger-P3yAXC9X.d.ts.map +0 -1
- package/dist/accordion.d.ts +0 -59
- package/dist/accordion.d.ts.map +0 -1
- package/dist/accordion.js +0 -45
- package/dist/accordion.js.map +0 -1
- package/dist/affix.d.ts +0 -50
- package/dist/affix.d.ts.map +0 -1
- package/dist/affix.js +0 -58
- package/dist/affix.js.map +0 -1
- package/dist/alert-dialog-trigger-Bh4pSvCf.js +0 -142
- package/dist/alert-dialog-trigger-Bh4pSvCf.js.map +0 -1
- package/dist/alert-dialog-viewport-CIjRyI-y.d.ts +0 -120
- package/dist/alert-dialog-viewport-CIjRyI-y.d.ts.map +0 -1
- package/dist/alert-dialog.d.ts +0 -76
- package/dist/alert-dialog.d.ts.map +0 -1
- package/dist/alert-dialog.js +0 -28
- package/dist/alert-dialog.js.map +0 -1
- package/dist/alert-title-B1q_D7US.js +0 -29
- package/dist/alert-title-B1q_D7US.js.map +0 -1
- package/dist/alert-title-BzrwvCBs.d.ts +0 -26
- package/dist/alert-title-BzrwvCBs.d.ts.map +0 -1
- package/dist/alert.d.ts +0 -106
- package/dist/alert.d.ts.map +0 -1
- package/dist/alert.js +0 -215
- package/dist/alert.js.map +0 -1
- package/dist/announcement-title-CZ-xxuBs.js +0 -19
- package/dist/announcement-title-CZ-xxuBs.js.map +0 -1
- package/dist/announcement-title-DQAqY8lM.d.ts +0 -19
- package/dist/announcement-title-DQAqY8lM.d.ts.map +0 -1
- package/dist/announcement.d.ts +0 -28
- package/dist/announcement.d.ts.map +0 -1
- package/dist/announcement.js +0 -17
- package/dist/announcement.js.map +0 -1
- package/dist/aspect-ratio.d.ts.map +0 -1
- package/dist/aspect-ratio.js +0 -14
- package/dist/aspect-ratio.js.map +0 -1
- package/dist/autocomplete-value-CE4htlBI.js +0 -296
- package/dist/autocomplete-value-CE4htlBI.js.map +0 -1
- package/dist/autocomplete-value-DZvfXD_j.d.ts +0 -320
- package/dist/autocomplete-value-DZvfXD_j.d.ts.map +0 -1
- package/dist/autocomplete.d.ts +0 -89
- package/dist/autocomplete.d.ts.map +0 -1
- package/dist/autocomplete.js +0 -42
- package/dist/autocomplete.js.map +0 -1
- package/dist/avatar-image-BpYCNLxP.d.ts +0 -41
- package/dist/avatar-image-BpYCNLxP.d.ts.map +0 -1
- package/dist/avatar-image-QGDvWzq_.js +0 -47
- package/dist/avatar-image-QGDvWzq_.js.map +0 -1
- package/dist/avatar.d.ts +0 -39
- package/dist/avatar.d.ts.map +0 -1
- package/dist/avatar.js +0 -27
- package/dist/avatar.js.map +0 -1
- package/dist/badge.d.ts +0 -69
- package/dist/badge.d.ts.map +0 -1
- package/dist/badge.js +0 -55
- package/dist/badge.js.map +0 -1
- package/dist/breadcrumb-separator-BxPVg1Je.js +0 -172
- package/dist/breadcrumb-separator-BxPVg1Je.js.map +0 -1
- package/dist/breadcrumb-separator-Cn5BAhvD.d.ts +0 -228
- package/dist/breadcrumb-separator-Cn5BAhvD.d.ts.map +0 -1
- package/dist/breadcrumb.d.ts +0 -52
- package/dist/breadcrumb.d.ts.map +0 -1
- package/dist/breadcrumb.js +0 -29
- package/dist/breadcrumb.js.map +0 -1
- package/dist/button-group-size-context-BAqIdusJ.js +0 -8
- package/dist/button-group-size-context-BAqIdusJ.js.map +0 -1
- package/dist/button-group-text-B2_MmlIc.d.ts +0 -85
- package/dist/button-group-text-B2_MmlIc.d.ts.map +0 -1
- package/dist/button-group-text-JA0xMSnb.js +0 -62
- package/dist/button-group-text-JA0xMSnb.js.map +0 -1
- package/dist/button-group.d.ts +0 -72
- package/dist/button-group.d.ts.map +0 -1
- package/dist/button-group.js +0 -50
- package/dist/button-group.js.map +0 -1
- package/dist/button.d.ts +0 -78
- package/dist/button.d.ts.map +0 -1
- package/dist/button.js +0 -110
- package/dist/button.js.map +0 -1
- package/dist/card-title-BaHIF8-E.d.ts +0 -47
- package/dist/card-title-BaHIF8-E.d.ts.map +0 -1
- package/dist/card.d.ts +0 -39
- package/dist/card.d.ts.map +0 -1
- package/dist/card.js +0 -26
- package/dist/card.js.map +0 -1
- package/dist/carousel-previous-OcdvvI1k.js +0 -90
- package/dist/carousel-previous-OcdvvI1k.js.map +0 -1
- package/dist/carousel.d.ts +0 -39
- package/dist/carousel.d.ts.map +0 -1
- package/dist/carousel.js +0 -79
- package/dist/carousel.js.map +0 -1
- package/dist/checkbox-group.d.ts.map +0 -1
- package/dist/checkbox-group.js +0 -14
- package/dist/checkbox-group.js.map +0 -1
- package/dist/checkbox-indicator-D9X12aCq.d.ts +0 -44
- package/dist/checkbox-indicator-D9X12aCq.d.ts.map +0 -1
- package/dist/checkbox-indicator-DMjot9eq.js +0 -31
- package/dist/checkbox-indicator-DMjot9eq.js.map +0 -1
- package/dist/checkbox.d.ts +0 -54
- package/dist/checkbox.d.ts.map +0 -1
- package/dist/checkbox.js +0 -46
- package/dist/checkbox.js.map +0 -1
- package/dist/code.d.ts.map +0 -1
- package/dist/code.js +0 -22
- package/dist/code.js.map +0 -1
- package/dist/collapsible-trigger-CvIq1bXq.d.ts +0 -19
- package/dist/collapsible-trigger-CvIq1bXq.d.ts.map +0 -1
- package/dist/collapsible-trigger-DCw3swj8.js +0 -22
- package/dist/collapsible-trigger-DCw3swj8.js.map +0 -1
- package/dist/collapsible.d.ts +0 -27
- package/dist/collapsible.d.ts.map +0 -1
- package/dist/collapsible.js +0 -20
- package/dist/collapsible.js.map +0 -1
- package/dist/combobox.d.ts +0 -149
- package/dist/combobox.d.ts.map +0 -1
- package/dist/combobox.js +0 -50
- package/dist/combobox.js.map +0 -1
- package/dist/command-shortcut-B42eSLXJ.d.ts +0 -268
- package/dist/command-shortcut-B42eSLXJ.d.ts.map +0 -1
- package/dist/command-shortcut-fALFGGNB.js +0 -226
- package/dist/command-shortcut-fALFGGNB.js.map +0 -1
- package/dist/command.d.ts +0 -65
- package/dist/command.d.ts.map +0 -1
- package/dist/command.js +0 -33
- package/dist/command.js.map +0 -1
- package/dist/container.d.ts.map +0 -1
- package/dist/container.js +0 -13
- package/dist/container.js.map +0 -1
- package/dist/context-menu-trigger-D1yfnhtH.d.ts +0 -632
- package/dist/context-menu-trigger-D1yfnhtH.d.ts.map +0 -1
- package/dist/context-menu-trigger-Db8Hnkac.js +0 -471
- package/dist/context-menu-trigger-Db8Hnkac.js.map +0 -1
- package/dist/context-menu.d.ts +0 -140
- package/dist/context-menu.d.ts.map +0 -1
- package/dist/context-menu.js +0 -40
- package/dist/context-menu.js.map +0 -1
- package/dist/dialog-trigger-Qa2UBwDK.js +0 -122
- package/dist/dialog-trigger-Qa2UBwDK.js.map +0 -1
- package/dist/dialog-viewport-_iN9a_OF.d.ts +0 -96
- package/dist/dialog-viewport-_iN9a_OF.d.ts.map +0 -1
- package/dist/dialog.d.ts +0 -66
- package/dist/dialog.d.ts.map +0 -1
- package/dist/dialog.js +0 -27
- package/dist/dialog.js.map +0 -1
- package/dist/drawer-size-context-TrNk8sne.d.ts +0 -377
- package/dist/drawer-size-context-TrNk8sne.d.ts.map +0 -1
- package/dist/drawer-viewport-CXCkzSjL.js +0 -261
- package/dist/drawer-viewport-CXCkzSjL.js.map +0 -1
- package/dist/drawer.d.ts +0 -164
- package/dist/drawer.d.ts.map +0 -1
- package/dist/drawer.js +0 -38
- package/dist/drawer.js.map +0 -1
- package/dist/dropdown-menu-trigger-BzJ8E29P.d.ts +0 -646
- package/dist/dropdown-menu-trigger-BzJ8E29P.d.ts.map +0 -1
- package/dist/dropdown-menu-trigger-PvBaqoOj.js +0 -488
- package/dist/dropdown-menu-trigger-PvBaqoOj.js.map +0 -1
- package/dist/dropdown-menu.d.ts +0 -144
- package/dist/dropdown-menu.d.ts.map +0 -1
- package/dist/dropdown-menu.js +0 -40
- package/dist/dropdown-menu.js.map +0 -1
- package/dist/dropzone-context-PCTXy62j.d.ts +0 -46
- package/dist/dropzone-context-PCTXy62j.d.ts.map +0 -1
- package/dist/dropzone-status-BziqO77U.js +0 -34
- package/dist/dropzone-status-BziqO77U.js.map +0 -1
- package/dist/dropzone.d.ts +0 -234
- package/dist/dropzone.d.ts.map +0 -1
- package/dist/dropzone.js +0 -181
- package/dist/dropzone.js.map +0 -1
- package/dist/emoji-picker-size-context-gu6mLjuf.d.ts +0 -315
- package/dist/emoji-picker-size-context-gu6mLjuf.d.ts.map +0 -1
- package/dist/emoji-picker-skin-tone-selector-DAJcO_Ue.js +0 -308
- package/dist/emoji-picker-skin-tone-selector-DAJcO_Ue.js.map +0 -1
- package/dist/emoji-picker.d.ts +0 -92
- package/dist/emoji-picker.d.ts.map +0 -1
- package/dist/emoji-picker.js +0 -45
- package/dist/emoji-picker.js.map +0 -1
- package/dist/empty-title-C9hHuBz8.d.ts +0 -211
- package/dist/empty-title-C9hHuBz8.d.ts.map +0 -1
- package/dist/empty-title-DjJj4k34.js +0 -178
- package/dist/empty-title-DjJj4k34.js.map +0 -1
- package/dist/empty.d.ts +0 -77
- package/dist/empty.d.ts.map +0 -1
- package/dist/empty.js +0 -39
- package/dist/empty.js.map +0 -1
- package/dist/fieldset-BvbNkZWm.d.ts +0 -151
- package/dist/fieldset-BvbNkZWm.d.ts.map +0 -1
- package/dist/fieldset-fXftcr4b.js +0 -109
- package/dist/fieldset-fXftcr4b.js.map +0 -1
- package/dist/form-field.d.ts +0 -155
- package/dist/form-field.d.ts.map +0 -1
- package/dist/form-field.js +0 -136
- package/dist/form-field.js.map +0 -1
- package/dist/index.d.ts +0 -1247
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1495
- package/dist/index.js.map +0 -1
- package/dist/input-group-textarea-C6-pPujg.d.ts +0 -121
- package/dist/input-group-textarea-C6-pPujg.d.ts.map +0 -1
- package/dist/input-group-textarea-C6ixncHC.js +0 -120
- package/dist/input-group-textarea-C6ixncHC.js.map +0 -1
- package/dist/input-group.d.ts +0 -46
- package/dist/input-group.d.ts.map +0 -1
- package/dist/input-group.js +0 -31
- package/dist/input-group.js.map +0 -1
- package/dist/input-otp-slot-BA8DE3oz.js +0 -116
- package/dist/input-otp-slot-BA8DE3oz.js.map +0 -1
- package/dist/input-otp-slot-BxEhjqR5.d.ts +0 -173
- package/dist/input-otp-slot-BxEhjqR5.d.ts.map +0 -1
- package/dist/input-otp.d.ts +0 -40
- package/dist/input-otp.d.ts.map +0 -1
- package/dist/input-otp.js +0 -30
- package/dist/input-otp.js.map +0 -1
- package/dist/input.d.ts +0 -46
- package/dist/input.d.ts.map +0 -1
- package/dist/input.js +0 -37
- package/dist/input.js.map +0 -1
- package/dist/item-title-BEt0xgK_.d.ts +0 -91
- package/dist/item-title-BEt0xgK_.d.ts.map +0 -1
- package/dist/item-title-DL4BlZUJ.js +0 -90
- package/dist/item-title-DL4BlZUJ.js.map +0 -1
- package/dist/item.d.ts +0 -98
- package/dist/item.d.ts.map +0 -1
- package/dist/item.js +0 -57
- package/dist/item.js.map +0 -1
- package/dist/kbd-group-3GbsGHQf.d.ts +0 -19
- package/dist/kbd-group-3GbsGHQf.d.ts.map +0 -1
- package/dist/kbd-group-BmHYZhQr.js +0 -30
- package/dist/kbd-group-BmHYZhQr.js.map +0 -1
- package/dist/kbd.d.ts +0 -23
- package/dist/kbd.d.ts.map +0 -1
- package/dist/kbd.js +0 -30
- package/dist/kbd.js.map +0 -1
- package/dist/label.d.ts.map +0 -1
- package/dist/label.js +0 -16
- package/dist/label.js.map +0 -1
- package/dist/marquee-item-B0TLvHgC.js +0 -30
- package/dist/marquee-item-B0TLvHgC.js.map +0 -1
- package/dist/marquee-item-CF7L5m2C.d.ts +0 -33
- package/dist/marquee-item-CF7L5m2C.d.ts.map +0 -1
- package/dist/marquee.d.ts +0 -31
- package/dist/marquee.d.ts.map +0 -1
- package/dist/marquee.js +0 -18
- package/dist/marquee.js.map +0 -1
- package/dist/menubar-trigger-BSEAK4Hv.js +0 -427
- package/dist/menubar-trigger-BSEAK4Hv.js.map +0 -1
- package/dist/menubar-trigger-Cg8h_R-F.d.ts +0 -633
- package/dist/menubar-trigger-Cg8h_R-F.d.ts.map +0 -1
- package/dist/menubar.d.ts +0 -145
- package/dist/menubar.d.ts.map +0 -1
- package/dist/menubar.js +0 -54
- package/dist/menubar.js.map +0 -1
- package/dist/merge-base-ui-class-name-u6eS5MaQ.js +0 -11
- package/dist/merge-base-ui-class-name-u6eS5MaQ.js.map +0 -1
- package/dist/meter-value-BBRupvEw.d.ts +0 -34
- package/dist/meter-value-BBRupvEw.d.ts.map +0 -1
- package/dist/meter-value-DTvav35V.js +0 -38
- package/dist/meter-value-DTvav35V.js.map +0 -1
- package/dist/meter.d.ts +0 -33
- package/dist/meter.d.ts.map +0 -1
- package/dist/meter.js +0 -20
- package/dist/meter.js.map +0 -1
- package/dist/navigation-menu-viewport-B1zGz9H_.d.ts +0 -401
- package/dist/navigation-menu-viewport-B1zGz9H_.d.ts.map +0 -1
- package/dist/navigation-menu-viewport-MCTpmOhX.js +0 -284
- package/dist/navigation-menu-viewport-MCTpmOhX.js.map +0 -1
- package/dist/navigation-menu.d.ts +0 -79
- package/dist/navigation-menu.d.ts.map +0 -1
- package/dist/navigation-menu.js +0 -42
- package/dist/navigation-menu.js.map +0 -1
- package/dist/number-field-scrub-area-cursor-DJPffFNk.d.ts +0 -137
- package/dist/number-field-scrub-area-cursor-DJPffFNk.d.ts.map +0 -1
- package/dist/number-field-scrub-area-cursor-h-iB-JHz.js +0 -136
- package/dist/number-field-scrub-area-cursor-h-iB-JHz.js.map +0 -1
- package/dist/number-field.d.ts +0 -53
- package/dist/number-field.d.ts.map +0 -1
- package/dist/number-field.js +0 -30
- package/dist/number-field.js.map +0 -1
- package/dist/optional-portal-BnKabTYx.js +0 -16
- package/dist/optional-portal-BnKabTYx.js.map +0 -1
- package/dist/pagination-previous-B-zSBsti.d.ts +0 -226
- package/dist/pagination-previous-B-zSBsti.d.ts.map +0 -1
- package/dist/pagination-previous-g-wCDo--.js +0 -194
- package/dist/pagination-previous-g-wCDo--.js.map +0 -1
- package/dist/pagination.d.ts +0 -49
- package/dist/pagination.d.ts.map +0 -1
- package/dist/pagination.js +0 -29
- package/dist/pagination.js.map +0 -1
- package/dist/pill-status-B0H8oDjy.d.ts +0 -78
- package/dist/pill-status-B0H8oDjy.d.ts.map +0 -1
- package/dist/pill-status-CZugGAo0.js +0 -75
- package/dist/pill-status-CZugGAo0.js.map +0 -1
- package/dist/pill.d.ts +0 -50
- package/dist/pill.d.ts.map +0 -1
- package/dist/pill.js +0 -22
- package/dist/pill.js.map +0 -1
- package/dist/popover-trigger-YoOfFIQY.js +0 -131
- package/dist/popover-trigger-YoOfFIQY.js.map +0 -1
- package/dist/popover-viewport-D0OLhge2.d.ts +0 -130
- package/dist/popover-viewport-D0OLhge2.d.ts.map +0 -1
- package/dist/popover.d.ts +0 -70
- package/dist/popover.d.ts.map +0 -1
- package/dist/popover.js +0 -35
- package/dist/popover.js.map +0 -1
- package/dist/portal.d.ts.map +0 -1
- package/dist/portal.js +0 -53
- package/dist/portal.js.map +0 -1
- package/dist/preview-card-trigger-CbF-WF9d.js +0 -75
- package/dist/preview-card-trigger-CbF-WF9d.js.map +0 -1
- package/dist/preview-card-viewport-DyigXVot.d.ts +0 -67
- package/dist/preview-card-viewport-DyigXVot.d.ts.map +0 -1
- package/dist/preview-card.d.ts +0 -52
- package/dist/preview-card.d.ts.map +0 -1
- package/dist/preview-card.js +0 -25
- package/dist/preview-card.js.map +0 -1
- package/dist/progress-value-C2beGR4l.js +0 -38
- package/dist/progress-value-C2beGR4l.js.map +0 -1
- package/dist/progress-value-DdW3JCEx.d.ts +0 -33
- package/dist/progress-value-DdW3JCEx.d.ts.map +0 -1
- package/dist/progress.d.ts +0 -33
- package/dist/progress.d.ts.map +0 -1
- package/dist/progress.js +0 -23
- package/dist/progress.js.map +0 -1
- package/dist/qr-code.d.ts.map +0 -1
- package/dist/qr-code.js +0 -79
- package/dist/qr-code.js.map +0 -1
- package/dist/radio-group-item-By6KUGFQ.js +0 -65
- package/dist/radio-group-item-By6KUGFQ.js.map +0 -1
- package/dist/radio-group-item-DvfY629D.d.ts +0 -81
- package/dist/radio-group-item-DvfY629D.d.ts.map +0 -1
- package/dist/radio-group.d.ts +0 -26
- package/dist/radio-group.d.ts.map +0 -1
- package/dist/radio-group.js +0 -17
- package/dist/radio-group.js.map +0 -1
- package/dist/rating-star-Bg5AgFfI.d.ts +0 -64
- package/dist/rating-star-Bg5AgFfI.d.ts.map +0 -1
- package/dist/rating-star-CT7E88Vb.js +0 -115
- package/dist/rating-star-CT7E88Vb.js.map +0 -1
- package/dist/rating.d.ts +0 -93
- package/dist/rating.d.ts.map +0 -1
- package/dist/rating.js +0 -64
- package/dist/rating.js.map +0 -1
- package/dist/resizable-panel-BSRzFmQT.d.ts +0 -22
- package/dist/resizable-panel-BSRzFmQT.d.ts.map +0 -1
- package/dist/resizable-panel-Qs_va758.js +0 -22
- package/dist/resizable-panel-Qs_va758.js.map +0 -1
- package/dist/resizable.d.ts +0 -24
- package/dist/resizable.d.ts.map +0 -1
- package/dist/resizable.js +0 -19
- package/dist/resizable.js.map +0 -1
- package/dist/scroll-area.d.ts +0 -44
- package/dist/scroll-area.d.ts.map +0 -1
- package/dist/scroll-area.js +0 -31
- package/dist/scroll-area.js.map +0 -1
- package/dist/scroll-bar-Ms5-vqAH.js +0 -26
- package/dist/scroll-bar-Ms5-vqAH.js.map +0 -1
- package/dist/scroll-viewport-02SiMbYg.d.ts +0 -42
- package/dist/scroll-viewport-02SiMbYg.d.ts.map +0 -1
- package/dist/scroll-viewport-Bv90eZWC.js +0 -30
- package/dist/scroll-viewport-Bv90eZWC.js.map +0 -1
- package/dist/select-value-DCLmCbND.d.ts +0 -413
- package/dist/select-value-DCLmCbND.d.ts.map +0 -1
- package/dist/select.d.ts +0 -140
- package/dist/select.d.ts.map +0 -1
- package/dist/select.js +0 -48
- package/dist/select.js.map +0 -1
- package/dist/separator.d.ts.map +0 -1
- package/dist/separator.js +0 -15
- package/dist/separator.js.map +0 -1
- package/dist/sheet-trigger-CBnNmAyv.js +0 -121
- package/dist/sheet-trigger-CBnNmAyv.js.map +0 -1
- package/dist/sheet-viewport-PgLs2Dbp.d.ts +0 -99
- package/dist/sheet-viewport-PgLs2Dbp.d.ts.map +0 -1
- package/dist/sheet.d.ts +0 -65
- package/dist/sheet.d.ts.map +0 -1
- package/dist/sheet.js +0 -27
- package/dist/sheet.js.map +0 -1
- package/dist/sidebar-trigger-DpUDeyoo.js +0 -460
- package/dist/sidebar-trigger-DpUDeyoo.js.map +0 -1
- package/dist/sidebar.d.ts +0 -139
- package/dist/sidebar.d.ts.map +0 -1
- package/dist/sidebar.js +0 -84
- package/dist/sidebar.js.map +0 -1
- package/dist/size-context-CPoCTRTV.d.ts +0 -16
- package/dist/size-context-CPoCTRTV.d.ts.map +0 -1
- package/dist/size-context-rJNE33WZ.js +0 -25
- package/dist/size-context-rJNE33WZ.js.map +0 -1
- package/dist/size-provider-D2Fy00Ky.js +0 -128
- package/dist/size-provider-D2Fy00Ky.js.map +0 -1
- package/dist/size-system-BNfPN2hb.js +0 -47
- package/dist/size-system-BNfPN2hb.js.map +0 -1
- package/dist/size-system-CMU68sQY.d.ts +0 -6
- package/dist/size-system-CMU68sQY.d.ts.map +0 -1
- package/dist/skeleton.d.ts.map +0 -1
- package/dist/skeleton.js +0 -13
- package/dist/skeleton.js.map +0 -1
- package/dist/slider-CqapJ6Pa.js +0 -544
- package/dist/slider-CqapJ6Pa.js.map +0 -1
- package/dist/slider-types-BejlapyA.d.ts +0 -192
- package/dist/slider-types-BejlapyA.d.ts.map +0 -1
- package/dist/slider.d.ts +0 -2
- package/dist/slider.js +0 -3
- package/dist/spacer.d.ts.map +0 -1
- package/dist/spacer.js +0 -26
- package/dist/spacer.js.map +0 -1
- package/dist/spinner.d.ts +0 -17
- package/dist/spinner.d.ts.map +0 -1
- package/dist/spinner.js +0 -23
- package/dist/spinner.js.map +0 -1
- package/dist/switch-thumb-B1oq_Il-.d.ts +0 -12
- package/dist/switch-thumb-B1oq_Il-.d.ts.map +0 -1
- package/dist/switch-thumb-BcrfgKM7.js +0 -14
- package/dist/switch-thumb-BcrfgKM7.js.map +0 -1
- package/dist/switch.d.ts +0 -52
- package/dist/switch.d.ts.map +0 -1
- package/dist/switch.js +0 -36
- package/dist/switch.js.map +0 -1
- package/dist/table-row-oLfiQvkD.js +0 -161
- package/dist/table-row-oLfiQvkD.js.map +0 -1
- package/dist/table-size-context-CIwmKalf.d.ts +0 -206
- package/dist/table-size-context-CIwmKalf.d.ts.map +0 -1
- package/dist/table.d.ts +0 -82
- package/dist/table.d.ts.map +0 -1
- package/dist/table.js +0 -55
- package/dist/table.js.map +0 -1
- package/dist/tabs-trigger-CzOTnpSV.js +0 -155
- package/dist/tabs-trigger-CzOTnpSV.js.map +0 -1
- package/dist/tabs-trigger-DIAd8cRQ.d.ts +0 -91
- package/dist/tabs-trigger-DIAd8cRQ.d.ts.map +0 -1
- package/dist/tabs.d.ts +0 -43
- package/dist/tabs.d.ts.map +0 -1
- package/dist/tabs.js +0 -24
- package/dist/tabs.js.map +0 -1
- package/dist/textarea.d.ts +0 -37
- package/dist/textarea.d.ts.map +0 -1
- package/dist/textarea.js +0 -36
- package/dist/textarea.js.map +0 -1
- package/dist/theme-icon.d.ts +0 -78
- package/dist/theme-icon.d.ts.map +0 -1
- package/dist/theme-icon.js +0 -58
- package/dist/theme-icon.js.map +0 -1
- package/dist/timeline-title-DPQkU32C.js +0 -390
- package/dist/timeline-title-DPQkU32C.js.map +0 -1
- package/dist/timeline.d.ts +0 -97
- package/dist/timeline.d.ts.map +0 -1
- package/dist/timeline.js +0 -89
- package/dist/timeline.js.map +0 -1
- package/dist/toggle-group-item-BNfDa9G7.js +0 -46
- package/dist/toggle-group-item-BNfDa9G7.js.map +0 -1
- package/dist/toggle-group-item-GtR1C20m.d.ts +0 -111
- package/dist/toggle-group-item-GtR1C20m.d.ts.map +0 -1
- package/dist/toggle-group.d.ts +0 -32
- package/dist/toggle-group.d.ts.map +0 -1
- package/dist/toggle-group.js +0 -37
- package/dist/toggle-group.js.map +0 -1
- package/dist/toggle.d.ts +0 -53
- package/dist/toggle.d.ts.map +0 -1
- package/dist/toggle.js +0 -41
- package/dist/toggle.js.map +0 -1
- package/dist/toolbar-separator-B2h6uLOE.d.ts +0 -169
- package/dist/toolbar-separator-B2h6uLOE.d.ts.map +0 -1
- package/dist/toolbar-separator-DenKrCUv.js +0 -124
- package/dist/toolbar-separator-DenKrCUv.js.map +0 -1
- package/dist/toolbar.d.ts +0 -73
- package/dist/toolbar.d.ts.map +0 -1
- package/dist/toolbar.js +0 -40
- package/dist/toolbar.js.map +0 -1
- package/dist/tooltip-trigger-Bh-4uwB1.js +0 -101
- package/dist/tooltip-trigger-Bh-4uwB1.js.map +0 -1
- package/dist/tooltip-viewport-bfS0ERim.d.ts +0 -103
- package/dist/tooltip-viewport-bfS0ERim.d.ts.map +0 -1
- package/dist/tooltip.d.ts +0 -55
- package/dist/tooltip.d.ts.map +0 -1
- package/dist/tooltip.js +0 -31
- package/dist/tooltip.js.map +0 -1
- package/dist/typography-ul-CQPMwh0l.js +0 -262
- package/dist/typography-ul-CQPMwh0l.js.map +0 -1
- package/dist/typography-ul-DdbLy4uP.d.ts +0 -299
- package/dist/typography-ul-DdbLy4uP.d.ts.map +0 -1
- package/dist/typography.d.ts +0 -118
- package/dist/typography.d.ts.map +0 -1
- package/dist/typography.js +0 -32
- package/dist/typography.js.map +0 -1
- package/dist/use-accordion-default-props-C4qiSPdy.js +0 -276
- package/dist/use-accordion-default-props-C4qiSPdy.js.map +0 -1
- package/dist/use-badge-default-props-aiDsN2ec.js +0 -8
- package/dist/use-badge-default-props-aiDsN2ec.js.map +0 -1
- package/dist/use-card-default-props-D7h5DKMA.js +0 -58
- package/dist/use-card-default-props-D7h5DKMA.js.map +0 -1
- package/dist/use-carousel-BP1JcA8B.d.ts +0 -60
- package/dist/use-carousel-BP1JcA8B.d.ts.map +0 -1
- package/dist/use-combobox-anchor-CR11U_ns.js +0 -524
- package/dist/use-combobox-anchor-CR11U_ns.js.map +0 -1
- package/dist/use-combobox-anchor-_uR3C1ZZ.d.ts +0 -541
- package/dist/use-combobox-anchor-_uR3C1ZZ.d.ts.map +0 -1
- package/dist/use-input-default-props-DSeo88je.js +0 -8
- package/dist/use-input-default-props-DSeo88je.js.map +0 -1
- package/dist/use-select-default-props-xp2KqlMr.js +0 -384
- package/dist/use-select-default-props-xp2KqlMr.js.map +0 -1
- package/dist/use-sidebar-C9Nj2_Hm.d.ts +0 -389
- package/dist/use-sidebar-C9Nj2_Hm.d.ts.map +0 -1
- package/dist/use-textarea-default-props-DEDcVuHi.js +0 -8
- package/dist/use-textarea-default-props-DEDcVuHi.js.map +0 -1
- package/dist/use-timeline-C1sQqHU_.d.ts +0 -82
- package/dist/use-timeline-C1sQqHU_.d.ts.map +0 -1
- /package/dist/{aspect-ratio.d.ts → ui/aspect-ratio.d.ts} +0 -0
- /package/dist/{checkbox-group.d.ts → ui/checkbox-group.d.ts} +0 -0
- /package/dist/{code.d.ts → ui/code.d.ts} +0 -0
- /package/dist/{container.d.ts → ui/container.d.ts} +0 -0
- /package/dist/{label.d.ts → ui/label.d.ts} +0 -0
- /package/dist/{portal.d.ts → ui/portal.d.ts} +0 -0
- /package/dist/{qr-code.d.ts → ui/qr-code.d.ts} +0 -0
- /package/dist/{separator.d.ts → ui/separator.d.ts} +0 -0
- /package/dist/{skeleton.d.ts → ui/skeleton.d.ts} +0 -0
- /package/dist/{spacer.d.ts → ui/spacer.d.ts} +0 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { a as useComponentSize } from "../size-provider-18EvJgDT.js";
|
|
2
|
+
import { t as ButtonGroupSizeContext } from "../button-group-size-context-DW7Gn-3k.js";
|
|
3
|
+
import { Separator } from "./separator.js";
|
|
4
|
+
import { useContext } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { cn, tv } from "tailwind-variants";
|
|
7
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
8
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
9
|
+
|
|
10
|
+
//#region src/ui/button-group/button-group-separator.tsx
|
|
11
|
+
const buttonGroupSeparatorVariants = tv({
|
|
12
|
+
base: "relative self-stretch bg-input data-[orientation=horizontal]:w-auto data-[orientation=vertical]:h-auto",
|
|
13
|
+
variants: { size: {
|
|
14
|
+
xs: "data-[orientation=horizontal]:mx-px data-[orientation=vertical]:my-px",
|
|
15
|
+
sm: "data-[orientation=horizontal]:mx-px data-[orientation=vertical]:my-px",
|
|
16
|
+
md: "data-[orientation=horizontal]:mx-px data-[orientation=vertical]:my-px",
|
|
17
|
+
lg: "data-[orientation=horizontal]:mx-0.5 data-[orientation=vertical]:my-0.5",
|
|
18
|
+
xl: "data-[orientation=horizontal]:mx-0.5 data-[orientation=vertical]:my-0.5"
|
|
19
|
+
} },
|
|
20
|
+
defaultVariants: { size: "md" }
|
|
21
|
+
});
|
|
22
|
+
const ButtonGroupSeparator = ({ className, orientation = "vertical", size, ...props }) => {
|
|
23
|
+
const { size: groupSize } = useContext(ButtonGroupSizeContext);
|
|
24
|
+
const resolvedSize = size ?? groupSize ?? "md";
|
|
25
|
+
return /* @__PURE__ */ jsx(Separator, {
|
|
26
|
+
className: cn(buttonGroupSeparatorVariants({ size: resolvedSize }), className),
|
|
27
|
+
"data-size": resolvedSize,
|
|
28
|
+
"data-slot": "button-group-separator",
|
|
29
|
+
orientation,
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/ui/button-group/button-group-text.tsx
|
|
36
|
+
const buttonGroupTextVariants = tv({
|
|
37
|
+
base: "flex items-center border border-border bg-muted font-medium [&_svg]:pointer-events-none",
|
|
38
|
+
variants: { size: {
|
|
39
|
+
xs: "gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs [&_svg:not([class*='size-'])]:size-3",
|
|
40
|
+
sm: "gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 text-sm [&_svg:not([class*='size-'])]:size-3.5",
|
|
41
|
+
md: "gap-2 rounded-md px-2.5 text-sm [&_svg:not([class*='size-'])]:size-4",
|
|
42
|
+
lg: "gap-2 rounded-md px-3 text-sm [&_svg:not([class*='size-'])]:size-4",
|
|
43
|
+
xl: "gap-2.5 rounded-md px-4 text-base [&_svg:not([class*='size-'])]:size-5"
|
|
44
|
+
} },
|
|
45
|
+
defaultVariants: { size: "md" }
|
|
46
|
+
});
|
|
47
|
+
const ButtonGroupText = ({ className, render, size, ...props }) => {
|
|
48
|
+
const { size: groupSize } = useContext(ButtonGroupSizeContext);
|
|
49
|
+
const resolvedSize = size ?? groupSize ?? "md";
|
|
50
|
+
return useRender({
|
|
51
|
+
defaultTagName: "div",
|
|
52
|
+
props: mergeProps({ className: cn(buttonGroupTextVariants({ size: resolvedSize }), className) }, props),
|
|
53
|
+
render,
|
|
54
|
+
state: {
|
|
55
|
+
slot: "button-group-text",
|
|
56
|
+
size: resolvedSize
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/ui/button-group/button-group.tsx
|
|
63
|
+
const buttonGroupVariants = tv({
|
|
64
|
+
base: "group/button-group flex w-fit items-stretch overflow-hidden *:focus-visible:relative *:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-[inherit] [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
|
|
65
|
+
variants: {
|
|
66
|
+
orientation: {
|
|
67
|
+
horizontal: "*:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-[inherit]! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0",
|
|
68
|
+
vertical: "flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-[inherit]! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0"
|
|
69
|
+
},
|
|
70
|
+
size: {
|
|
71
|
+
xs: "has-[>[data-slot=button-group]]:gap-1 rounded-[min(var(--radius-md),8px)]",
|
|
72
|
+
sm: "has-[>[data-slot=button-group]]:gap-1 rounded-[min(var(--radius-md),10px)]",
|
|
73
|
+
md: "has-[>[data-slot=button-group]]:gap-2 rounded-md",
|
|
74
|
+
lg: "has-[>[data-slot=button-group]]:gap-2 rounded-md",
|
|
75
|
+
xl: "has-[>[data-slot=button-group]]:gap-2.5 rounded-md"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
defaultVariants: {
|
|
79
|
+
orientation: "horizontal",
|
|
80
|
+
size: "md"
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
const ButtonGroup = ({ className, orientation, size: providedSize, ...props }) => {
|
|
84
|
+
const resolvedOrientation = orientation ?? "horizontal";
|
|
85
|
+
const size = useComponentSize(providedSize);
|
|
86
|
+
return /* @__PURE__ */ jsx(ButtonGroupSizeContext.Provider, {
|
|
87
|
+
value: { size },
|
|
88
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
89
|
+
className: cn(buttonGroupVariants({
|
|
90
|
+
orientation: resolvedOrientation,
|
|
91
|
+
size
|
|
92
|
+
}), className),
|
|
93
|
+
"data-orientation": resolvedOrientation,
|
|
94
|
+
"data-size": size,
|
|
95
|
+
"data-slot": "button-group",
|
|
96
|
+
...props
|
|
97
|
+
})
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
ButtonGroup.Separator = ButtonGroupSeparator;
|
|
101
|
+
ButtonGroup.Text = ButtonGroupText;
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
104
|
+
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
|
|
105
|
+
//# sourceMappingURL=button-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-group.js","names":[],"sources":["../../src/ui/button-group/button-group-separator.tsx","../../src/ui/button-group/button-group-text.tsx","../../src/ui/button-group/button-group.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\n\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\n\nimport { Separator } from \"../separator/separator\";\nimport { ButtonGroupSizeContext } from \"./button-group-size-context\";\n\nconst buttonGroupSeparatorVariants = tv({\n base: \"relative self-stretch bg-input data-[orientation=horizontal]:w-auto data-[orientation=vertical]:h-auto\",\n variants: {\n size: {\n xs: \"data-[orientation=horizontal]:mx-px data-[orientation=vertical]:my-px\",\n sm: \"data-[orientation=horizontal]:mx-px data-[orientation=vertical]:my-px\",\n md: \"data-[orientation=horizontal]:mx-px data-[orientation=vertical]:my-px\",\n lg: \"data-[orientation=horizontal]:mx-0.5 data-[orientation=vertical]:my-0.5\",\n xl: \"data-[orientation=horizontal]:mx-0.5 data-[orientation=vertical]:my-0.5\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\ntype ButtonGroupSeparatorVariantProps = Omit<\n VariantProps<typeof buttonGroupSeparatorVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type ButtonGroupSeparatorProps = ComponentProps<typeof Separator> &\n ButtonGroupSeparatorVariantProps;\n\nconst ButtonGroupSeparator = ({\n className,\n orientation = \"vertical\",\n size,\n ...props\n}: ButtonGroupSeparatorProps) => {\n const { size: groupSize } = useContext(ButtonGroupSizeContext);\n const resolvedSize = size ?? groupSize ?? \"md\";\n\n return (\n <Separator\n className={cn(\n buttonGroupSeparatorVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"button-group-separator\"\n orientation={orientation}\n {...props}\n />\n );\n};\n\nexport { ButtonGroupSeparator };\n","import { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\n\nimport { ButtonGroupSizeContext } from \"./button-group-size-context\";\n\nconst buttonGroupTextVariants = tv({\n base: \"flex items-center border border-border bg-muted font-medium [&_svg]:pointer-events-none\",\n variants: {\n size: {\n xs: \"gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs [&_svg:not([class*='size-'])]:size-3\",\n sm: \"gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 text-sm [&_svg:not([class*='size-'])]:size-3.5\",\n md: \"gap-2 rounded-md px-2.5 text-sm [&_svg:not([class*='size-'])]:size-4\",\n lg: \"gap-2 rounded-md px-3 text-sm [&_svg:not([class*='size-'])]:size-4\",\n xl: \"gap-2.5 rounded-md px-4 text-base [&_svg:not([class*='size-'])]:size-5\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\ntype ButtonGroupTextVariantProps = Omit<\n VariantProps<typeof buttonGroupTextVariants>,\n \"size\"\n> & {\n size?: UISize;\n};\n\nexport type ButtonGroupTextProps = useRender.ComponentProps<\"div\"> &\n ButtonGroupTextVariantProps;\n\nconst ButtonGroupText = ({\n className,\n render,\n size,\n ...props\n}: ButtonGroupTextProps) => {\n const { size: groupSize } = useContext(ButtonGroupSizeContext);\n const resolvedSize = size ?? groupSize ?? \"md\";\n\n return useRender({\n defaultTagName: \"div\",\n props: mergeProps<\"div\">(\n {\n className: cn(\n buttonGroupTextVariants({ size: resolvedSize }),\n className\n ),\n },\n props\n ),\n render,\n state: {\n slot: \"button-group-text\",\n size: resolvedSize,\n },\n });\n};\n\nexport { ButtonGroupText };\n","import type { ComponentProps } from \"react\";\n\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { ButtonGroupSeparator } from \"./button-group-separator\";\nimport { ButtonGroupSizeContext } from \"./button-group-size-context\";\nimport { ButtonGroupText } from \"./button-group-text\";\nexport type ButtonGroupProps = ComponentProps<\"div\"> &\n VariantProps<typeof buttonGroupVariants> & {\n size?: UISize;\n };\n\nconst buttonGroupVariants = tv({\n base: \"group/button-group flex w-fit items-stretch overflow-hidden *:focus-visible:relative *:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-[inherit] [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\n variants: {\n orientation: {\n horizontal:\n \"*:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-[inherit]! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0\",\n vertical:\n \"flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-[inherit]! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0\",\n },\n size: {\n xs: \"has-[>[data-slot=button-group]]:gap-1 rounded-[min(var(--radius-md),8px)]\",\n sm: \"has-[>[data-slot=button-group]]:gap-1 rounded-[min(var(--radius-md),10px)]\",\n md: \"has-[>[data-slot=button-group]]:gap-2 rounded-md\",\n lg: \"has-[>[data-slot=button-group]]:gap-2 rounded-md\",\n xl: \"has-[>[data-slot=button-group]]:gap-2.5 rounded-md\",\n },\n },\n defaultVariants: {\n orientation: \"horizontal\",\n size: \"md\",\n },\n});\n\nconst ButtonGroup = ({\n className,\n orientation,\n size: providedSize,\n ...props\n}: ButtonGroupProps) => {\n const resolvedOrientation = orientation ?? \"horizontal\";\n const size = useComponentSize(providedSize);\n\n return (\n <ButtonGroupSizeContext.Provider value={{ size }}>\n <div\n className={cn(\n buttonGroupVariants({ orientation: resolvedOrientation, size }),\n className\n )}\n data-orientation={resolvedOrientation}\n data-size={size}\n data-slot=\"button-group\"\n {...props}\n />\n </ButtonGroupSizeContext.Provider>\n );\n};\n\nButtonGroup.Separator = ButtonGroupSeparator;\nButtonGroup.Text = ButtonGroupText;\n\nexport {\n ButtonGroup,\n buttonGroupVariants,\n ButtonGroupSeparator,\n ButtonGroupText,\n};\n\nexport type { ButtonGroupSeparatorProps } from \"./button-group-separator\";\nexport type { ButtonGroupTextProps } from \"./button-group-text\";\n"],"mappings":";;;;;;;;;;AAUA,MAAM,+BAA+B,GAAG;CACtC,MAAM;CACN,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC;AAYF,MAAM,wBAAwB,EAC5B,WACA,cAAc,YACd,MACA,GAAG,YAC4B;CAC/B,MAAM,EAAE,MAAM,cAAc,WAAW,uBAAuB;CAC9D,MAAM,eAAe,QAAQ,aAAa;AAE1C,QACE,oBAAC;EACC,WAAW,GACT,6BAA6B,EAAE,MAAM,cAAc,CAAC,EACpD,UACD;EACD,aAAW;EACX,aAAU;EACG;EACb,GAAI;GACJ;;;;;AC9CN,MAAM,0BAA0B,GAAG;CACjC,MAAM;CACN,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC;AAYF,MAAM,mBAAmB,EACvB,WACA,QACA,MACA,GAAG,YACuB;CAC1B,MAAM,EAAE,MAAM,cAAc,WAAW,uBAAuB;CAC9D,MAAM,eAAe,QAAQ,aAAa;AAE1C,QAAO,UAAU;EACf,gBAAgB;EAChB,OAAO,WACL,EACE,WAAW,GACT,wBAAwB,EAAE,MAAM,cAAc,CAAC,EAC/C,UACD,EACF,EACD,MACD;EACD;EACA,OAAO;GACL,MAAM;GACN,MAAM;GACP;EACF,CAAC;;;;;AC7CJ,MAAM,sBAAsB,GAAG;CAC7B,MAAM;CACN,UAAU;EACR,aAAa;GACX,YACE;GACF,UACE;GACH;EACD,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,aAAa;EACb,MAAM;EACP;CACF,CAAC;AAEF,MAAM,eAAe,EACnB,WACA,aACA,MAAM,cACN,GAAG,YACmB;CACtB,MAAM,sBAAsB,eAAe;CAC3C,MAAM,OAAO,iBAAiB,aAAa;AAE3C,QACE,oBAAC,uBAAuB;EAAS,OAAO,EAAE,MAAM;YAC9C,oBAAC;GACC,WAAW,GACT,oBAAoB;IAAE,aAAa;IAAqB;IAAM,CAAC,EAC/D,UACD;GACD,oBAAkB;GAClB,aAAW;GACX,aAAU;GACV,GAAI;IACJ;GAC8B;;AAItC,YAAY,YAAY;AACxB,YAAY,OAAO"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as tailwind_variants0 from "tailwind-variants";
|
|
4
|
+
import { VariantProps } from "tailwind-variants";
|
|
5
|
+
import { Button as Button$1 } from "@base-ui/react/button";
|
|
6
|
+
|
|
7
|
+
//#region src/ui/button/button.d.ts
|
|
8
|
+
declare const buttonVariants: tailwind_variants0.TVReturnType<{
|
|
9
|
+
variant: {
|
|
10
|
+
default: string;
|
|
11
|
+
outline: string;
|
|
12
|
+
secondary: string;
|
|
13
|
+
ghost: string;
|
|
14
|
+
danger: string;
|
|
15
|
+
link: string;
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
md: string;
|
|
19
|
+
xs: string[];
|
|
20
|
+
sm: string[];
|
|
21
|
+
lg: string;
|
|
22
|
+
xl: string[];
|
|
23
|
+
icon: string;
|
|
24
|
+
"icon-xs": string;
|
|
25
|
+
"icon-sm": string;
|
|
26
|
+
"icon-lg": string;
|
|
27
|
+
"icon-xl": string;
|
|
28
|
+
};
|
|
29
|
+
}, undefined, "group/button inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-[transform,color,background-color,border-color,box-shadow] duration-100 ease-out outline-none select-none active:scale-[0.98] motion-reduce:active:scale-100 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-[3px] aria-invalid:ring-danger/20 dark:aria-invalid:border-danger/50 dark:aria-invalid:ring-danger/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
30
|
+
variant: {
|
|
31
|
+
default: string;
|
|
32
|
+
outline: string;
|
|
33
|
+
secondary: string;
|
|
34
|
+
ghost: string;
|
|
35
|
+
danger: string;
|
|
36
|
+
link: string;
|
|
37
|
+
};
|
|
38
|
+
size: {
|
|
39
|
+
md: string;
|
|
40
|
+
xs: string[];
|
|
41
|
+
sm: string[];
|
|
42
|
+
lg: string;
|
|
43
|
+
xl: string[];
|
|
44
|
+
icon: string;
|
|
45
|
+
"icon-xs": string;
|
|
46
|
+
"icon-sm": string;
|
|
47
|
+
"icon-lg": string;
|
|
48
|
+
"icon-xl": string;
|
|
49
|
+
};
|
|
50
|
+
}, undefined, tailwind_variants0.TVReturnType<{
|
|
51
|
+
variant: {
|
|
52
|
+
default: string;
|
|
53
|
+
outline: string;
|
|
54
|
+
secondary: string;
|
|
55
|
+
ghost: string;
|
|
56
|
+
danger: string;
|
|
57
|
+
link: string;
|
|
58
|
+
};
|
|
59
|
+
size: {
|
|
60
|
+
md: string;
|
|
61
|
+
xs: string[];
|
|
62
|
+
sm: string[];
|
|
63
|
+
lg: string;
|
|
64
|
+
xl: string[];
|
|
65
|
+
icon: string;
|
|
66
|
+
"icon-xs": string;
|
|
67
|
+
"icon-sm": string;
|
|
68
|
+
"icon-lg": string;
|
|
69
|
+
"icon-xl": string;
|
|
70
|
+
};
|
|
71
|
+
}, undefined, "group/button inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-[transform,color,background-color,border-color,box-shadow] duration-100 ease-out outline-none select-none active:scale-[0.98] motion-reduce:active:scale-100 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-[3px] aria-invalid:ring-danger/20 dark:aria-invalid:border-danger/50 dark:aria-invalid:ring-danger/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", unknown, unknown, undefined>>;
|
|
72
|
+
type ButtonProps = ComponentProps<typeof Button$1> & VariantProps<typeof buttonVariants> & {
|
|
73
|
+
isLoading?: boolean;
|
|
74
|
+
};
|
|
75
|
+
declare const Button: (incomingProps: ButtonProps) => react_jsx_runtime0.JSX.Element;
|
|
76
|
+
//#endregion
|
|
77
|
+
export { Button, ButtonProps, buttonVariants };
|
|
78
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","names":[],"sources":["../../src/ui/button/button.tsx"],"mappings":";;;;;;;cAwBM,cAAA,EAgDJ,kBAAA,CAhDkB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgDlB,kBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEU,WAAA,GAAc,cAAA,QAAsB,QAAA,IAC9C,YAAA,QAAoB,cAAA;EAClB,SAAA;AAAA;AAAA,cAsDE,MAAA,GAAU,aAAA,EAAe,WAAA,KAAW,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { o as useGlobalUISize, r as filterUndefinedProps, s as useKuzenboComponentDefaults } from "../size-provider-18EvJgDT.js";
|
|
4
|
+
import { a as FIELD_TEXT_CLASS_BY_SIZE, i as FIELD_HEIGHT_CLASS_BY_SIZE, r as DEFAULT_NESTED_ICON_CLASS_BY_SIZE } from "../size-system-DTXmtQXw.js";
|
|
5
|
+
import { t as mergeBaseUIClassName } from "../merge-base-ui-class-name-HKsgjcXj.js";
|
|
6
|
+
import { t as ButtonGroupSizeContext } from "../button-group-size-context-DW7Gn-3k.js";
|
|
7
|
+
import { Spinner } from "./spinner.js";
|
|
8
|
+
import { useContext } from "react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { cn, tv } from "tailwind-variants";
|
|
11
|
+
import { Button as Button$1 } from "@base-ui/react/button";
|
|
12
|
+
|
|
13
|
+
//#region src/ui/button/button.tsx
|
|
14
|
+
const buttonVariants = tv({
|
|
15
|
+
base: "group/button inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-[transform,color,background-color,border-color,box-shadow] duration-100 ease-out outline-none select-none active:scale-[0.98] motion-reduce:active:scale-100 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-[3px] aria-invalid:ring-danger/20 dark:aria-invalid:border-danger/50 dark:aria-invalid:ring-danger/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90 [a]:hover:bg-primary/80",
|
|
19
|
+
outline: "border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-card dark:hover:bg-muted",
|
|
20
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
|
21
|
+
ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
|
|
22
|
+
danger: "bg-danger text-danger-foreground hover:bg-danger/90 focus-visible:border-danger-foreground/40 focus-visible:ring-danger-foreground/30 dark:bg-danger dark:text-danger-foreground dark:hover:bg-danger/80 dark:focus-visible:ring-danger-foreground/40",
|
|
23
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
md: `${FIELD_HEIGHT_CLASS_BY_SIZE.md} gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,
|
|
27
|
+
xs: [
|
|
28
|
+
FIELD_HEIGHT_CLASS_BY_SIZE.xs,
|
|
29
|
+
FIELD_TEXT_CLASS_BY_SIZE.xs,
|
|
30
|
+
DEFAULT_NESTED_ICON_CLASS_BY_SIZE.xs,
|
|
31
|
+
"gap-1 rounded-[min(var(--radius-md),8px)] px-2 in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5"
|
|
32
|
+
],
|
|
33
|
+
sm: [
|
|
34
|
+
FIELD_HEIGHT_CLASS_BY_SIZE.sm,
|
|
35
|
+
DEFAULT_NESTED_ICON_CLASS_BY_SIZE.sm,
|
|
36
|
+
"gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5"
|
|
37
|
+
],
|
|
38
|
+
lg: `${FIELD_HEIGHT_CLASS_BY_SIZE.lg} gap-1.5 px-3 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3`,
|
|
39
|
+
xl: [
|
|
40
|
+
FIELD_HEIGHT_CLASS_BY_SIZE.xl,
|
|
41
|
+
FIELD_TEXT_CLASS_BY_SIZE.xl,
|
|
42
|
+
DEFAULT_NESTED_ICON_CLASS_BY_SIZE.xl,
|
|
43
|
+
"gap-2 px-4 has-data-[icon=inline-end]:pr-3.5 has-data-[icon=inline-start]:pl-3.5"
|
|
44
|
+
],
|
|
45
|
+
icon: "size-9",
|
|
46
|
+
"icon-xs": `size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg ${DEFAULT_NESTED_ICON_CLASS_BY_SIZE.xs}`,
|
|
47
|
+
"icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg",
|
|
48
|
+
"icon-lg": "size-10",
|
|
49
|
+
"icon-xl": `size-11 ${DEFAULT_NESTED_ICON_CLASS_BY_SIZE.xl}`
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
defaultVariants: {
|
|
53
|
+
variant: "default",
|
|
54
|
+
size: "md"
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const BUTTON_SPINNER_SIZE_BY_BUTTON_SIZE = {
|
|
58
|
+
xs: "xs",
|
|
59
|
+
sm: "sm",
|
|
60
|
+
md: "md",
|
|
61
|
+
lg: "lg",
|
|
62
|
+
xl: "xl",
|
|
63
|
+
icon: "md",
|
|
64
|
+
"icon-xs": "xs",
|
|
65
|
+
"icon-sm": "sm",
|
|
66
|
+
"icon-lg": "lg",
|
|
67
|
+
"icon-xl": "xl"
|
|
68
|
+
};
|
|
69
|
+
const isButtonSize = (value) => typeof value === "string" && value in BUTTON_SPINNER_SIZE_BY_BUTTON_SIZE;
|
|
70
|
+
const ButtonContent = ({ children, isLoading, size }) => /* @__PURE__ */ jsxs("span", {
|
|
71
|
+
className: "relative inline-flex items-center justify-center",
|
|
72
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
73
|
+
className: cn("inline-flex items-center justify-center gap-2 transition-all duration-200", isLoading ? "pointer-events-none -translate-y-full opacity-0" : "translate-y-0 opacity-100"),
|
|
74
|
+
children
|
|
75
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
76
|
+
className: cn("absolute inset-0 inline-flex items-center justify-center transition-all duration-200", isLoading ? "translate-y-0 opacity-100" : "pointer-events-none -translate-y-full opacity-0"),
|
|
77
|
+
children: /* @__PURE__ */ jsx(Spinner, { size: BUTTON_SPINNER_SIZE_BY_BUTTON_SIZE[size] })
|
|
78
|
+
})]
|
|
79
|
+
});
|
|
80
|
+
const Button = (incomingProps) => {
|
|
81
|
+
const { size: componentDefaultSize, ...componentDefaultsWithoutSize } = useKuzenboComponentDefaults("Button");
|
|
82
|
+
const { className, variant = "default", size, isLoading, children, disabled, ...props } = {
|
|
83
|
+
...filterUndefinedProps(componentDefaultsWithoutSize),
|
|
84
|
+
...filterUndefinedProps(incomingProps)
|
|
85
|
+
};
|
|
86
|
+
const { size: buttonGroupSize } = useContext(ButtonGroupSizeContext);
|
|
87
|
+
const globalSize = useGlobalUISize();
|
|
88
|
+
const resolvedSize = isButtonSize(size) ? size : buttonGroupSize ?? (isButtonSize(componentDefaultSize) ? componentDefaultSize : globalSize ?? "md");
|
|
89
|
+
return /* @__PURE__ */ jsx(Button$1, {
|
|
90
|
+
className: mergeBaseUIClassName(cn(buttonVariants({
|
|
91
|
+
variant,
|
|
92
|
+
size: resolvedSize
|
|
93
|
+
})), className),
|
|
94
|
+
focusableWhenDisabled: Boolean(isLoading),
|
|
95
|
+
"data-loading": isLoading,
|
|
96
|
+
"data-size": resolvedSize,
|
|
97
|
+
"data-slot": "button",
|
|
98
|
+
disabled: disabled || isLoading,
|
|
99
|
+
...props,
|
|
100
|
+
children: /* @__PURE__ */ jsx(ButtonContent, {
|
|
101
|
+
isLoading,
|
|
102
|
+
size: resolvedSize,
|
|
103
|
+
children
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
//#endregion
|
|
109
|
+
export { Button, buttonVariants };
|
|
110
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","names":["ButtonPrimitive"],"sources":["../../src/ui/button/button.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ComponentProps, ReactNode } from \"react\";\n\nimport { Button as ButtonPrimitive } from \"@base-ui/react/button\";\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport { ButtonGroupSizeContext } from \"../button-group/button-group-size-context\";\nimport {\n filterUndefinedProps,\n useGlobalUISize,\n useKuzenboComponentDefaults,\n} from \"../shared/size/size-provider\";\nimport {\n DEFAULT_NESTED_ICON_CLASS_BY_SIZE,\n FIELD_HEIGHT_CLASS_BY_SIZE,\n FIELD_TEXT_CLASS_BY_SIZE,\n} from \"../shared/size/size-system\";\nimport { Spinner } from \"../spinner/spinner\";\n\nconst buttonVariants = tv({\n base: \"group/button inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-[transform,color,background-color,border-color,box-shadow] duration-100 ease-out outline-none select-none active:scale-[0.98] motion-reduce:active:scale-100 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-[3px] aria-invalid:ring-danger/20 dark:aria-invalid:border-danger/50 dark:aria-invalid:ring-danger/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n variants: {\n variant: {\n default:\n \"bg-primary text-primary-foreground hover:bg-primary/90 [a]:hover:bg-primary/80\",\n outline:\n \"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-card dark:hover:bg-muted\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n ghost:\n \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n danger:\n \"bg-danger text-danger-foreground hover:bg-danger/90 focus-visible:border-danger-foreground/40 focus-visible:ring-danger-foreground/30 dark:bg-danger dark:text-danger-foreground dark:hover:bg-danger/80 dark:focus-visible:ring-danger-foreground/40\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n md: `${FIELD_HEIGHT_CLASS_BY_SIZE.md} gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,\n xs: [\n FIELD_HEIGHT_CLASS_BY_SIZE.xs,\n FIELD_TEXT_CLASS_BY_SIZE.xs,\n DEFAULT_NESTED_ICON_CLASS_BY_SIZE.xs,\n \"gap-1 rounded-[min(var(--radius-md),8px)] px-2 in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n ],\n sm: [\n FIELD_HEIGHT_CLASS_BY_SIZE.sm,\n DEFAULT_NESTED_ICON_CLASS_BY_SIZE.sm,\n \"gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n ],\n lg: `${FIELD_HEIGHT_CLASS_BY_SIZE.lg} gap-1.5 px-3 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3`,\n xl: [\n FIELD_HEIGHT_CLASS_BY_SIZE.xl,\n FIELD_TEXT_CLASS_BY_SIZE.xl,\n DEFAULT_NESTED_ICON_CLASS_BY_SIZE.xl,\n \"gap-2 px-4 has-data-[icon=inline-end]:pr-3.5 has-data-[icon=inline-start]:pl-3.5\",\n ],\n icon: \"size-9\",\n \"icon-xs\": `size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg ${DEFAULT_NESTED_ICON_CLASS_BY_SIZE.xs}`,\n \"icon-sm\":\n \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg\",\n \"icon-lg\": \"size-10\",\n \"icon-xl\": `size-11 ${DEFAULT_NESTED_ICON_CLASS_BY_SIZE.xl}`,\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"md\",\n },\n});\n\nexport type ButtonProps = ComponentProps<typeof ButtonPrimitive> &\n VariantProps<typeof buttonVariants> & {\n isLoading?: boolean;\n };\n\ntype ButtonSize = NonNullable<VariantProps<typeof buttonVariants>[\"size\"]>;\n\nconst BUTTON_SPINNER_SIZE_BY_BUTTON_SIZE: Record<ButtonSize, UISize> = {\n xs: \"xs\",\n sm: \"sm\",\n md: \"md\",\n lg: \"lg\",\n xl: \"xl\",\n icon: \"md\",\n \"icon-xs\": \"xs\",\n \"icon-sm\": \"sm\",\n \"icon-lg\": \"lg\",\n \"icon-xl\": \"xl\",\n};\n\nconst isButtonSize = (value: unknown): value is ButtonSize =>\n typeof value === \"string\" && value in BUTTON_SPINNER_SIZE_BY_BUTTON_SIZE;\n\nconst ButtonContent = ({\n children,\n isLoading,\n size,\n}: {\n children: ReactNode;\n isLoading?: boolean;\n size: ButtonSize;\n}) => (\n <span className=\"relative inline-flex items-center justify-center\">\n <span\n className={cn(\n \"inline-flex items-center justify-center gap-2 transition-all duration-200\",\n isLoading\n ? \"pointer-events-none -translate-y-full opacity-0\"\n : \"translate-y-0 opacity-100\"\n )}\n >\n {children}\n </span>\n <span\n className={cn(\n \"absolute inset-0 inline-flex items-center justify-center transition-all duration-200\",\n isLoading\n ? \"translate-y-0 opacity-100\"\n : \"pointer-events-none -translate-y-full opacity-0\"\n )}\n >\n <Spinner size={BUTTON_SPINNER_SIZE_BY_BUTTON_SIZE[size]} />\n </span>\n </span>\n);\n\nconst Button = (incomingProps: ButtonProps) => {\n const componentDefaults = useKuzenboComponentDefaults<ButtonProps>(\"Button\");\n const { size: componentDefaultSize, ...componentDefaultsWithoutSize } =\n componentDefaults;\n const {\n className,\n variant = \"default\",\n size,\n isLoading,\n children,\n disabled,\n ...props\n } = {\n ...filterUndefinedProps(componentDefaultsWithoutSize),\n ...filterUndefinedProps(incomingProps),\n } as ButtonProps;\n\n const { size: buttonGroupSize } = useContext(ButtonGroupSizeContext);\n const globalSize = useGlobalUISize();\n\n const resolvedSize: ButtonSize = isButtonSize(size)\n ? size\n : (buttonGroupSize ??\n (isButtonSize(componentDefaultSize)\n ? componentDefaultSize\n : (globalSize ?? \"md\")));\n\n return (\n <ButtonPrimitive\n className={mergeBaseUIClassName<ButtonPrimitive.State>(\n cn(buttonVariants({ variant, size: resolvedSize })),\n className\n )}\n focusableWhenDisabled={Boolean(isLoading)}\n data-loading={isLoading}\n data-size={resolvedSize}\n data-slot=\"button\"\n disabled={disabled || isLoading}\n {...props}\n >\n <ButtonContent isLoading={isLoading} size={resolvedSize}>\n {children}\n </ButtonContent>\n </ButtonPrimitive>\n );\n};\n\nexport { Button, buttonVariants };\n"],"mappings":";;;;;;;;;;;;;AAwBA,MAAM,iBAAiB,GAAG;CACxB,MAAM;CACN,UAAU;EACR,SAAS;GACP,SACE;GACF,SACE;GACF,WACE;GACF,OACE;GACF,QACE;GACF,MAAM;GACP;EACD,MAAM;GACJ,IAAI,GAAG,2BAA2B,GAAG;GACrC,IAAI;IACF,2BAA2B;IAC3B,yBAAyB;IACzB,kCAAkC;IAClC;IACD;GACD,IAAI;IACF,2BAA2B;IAC3B,kCAAkC;IAClC;IACD;GACD,IAAI,GAAG,2BAA2B,GAAG;GACrC,IAAI;IACF,2BAA2B;IAC3B,yBAAyB;IACzB,kCAAkC;IAClC;IACD;GACD,MAAM;GACN,WAAW,sFAAsF,kCAAkC;GACnI,WACE;GACF,WAAW;GACX,WAAW,WAAW,kCAAkC;GACzD;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CAAC;AASF,MAAM,qCAAiE;CACrE,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,MAAM;CACN,WAAW;CACX,WAAW;CACX,WAAW;CACX,WAAW;CACZ;AAED,MAAM,gBAAgB,UACpB,OAAO,UAAU,YAAY,SAAS;AAExC,MAAM,iBAAiB,EACrB,UACA,WACA,WAMA,qBAAC;CAAK,WAAU;YACd,oBAAC;EACC,WAAW,GACT,6EACA,YACI,oDACA,4BACL;EAEA;GACI,EACP,oBAAC;EACC,WAAW,GACT,wFACA,YACI,8BACA,kDACL;YAED,oBAAC,WAAQ,MAAM,mCAAmC,QAAS;GACtD;EACF;AAGT,MAAM,UAAU,kBAA+B;CAE7C,MAAM,EAAE,MAAM,sBAAsB,GAAG,iCADb,4BAAyC,SAAS;CAG5E,MAAM,EACJ,WACA,UAAU,WACV,MACA,WACA,UACA,UACA,GAAG,UACD;EACF,GAAG,qBAAqB,6BAA6B;EACrD,GAAG,qBAAqB,cAAc;EACvC;CAED,MAAM,EAAE,MAAM,oBAAoB,WAAW,uBAAuB;CACpE,MAAM,aAAa,iBAAiB;CAEpC,MAAM,eAA2B,aAAa,KAAK,GAC/C,OACC,oBACA,aAAa,qBAAqB,GAC/B,uBACC,cAAc;AAEvB,QACE,oBAACA;EACC,WAAW,qBACT,GAAG,eAAe;GAAE;GAAS,MAAM;GAAc,CAAC,CAAC,EACnD,UACD;EACD,uBAAuB,QAAQ,UAAU;EACzC,gBAAc;EACd,aAAW;EACX,aAAU;EACV,UAAU,YAAY;EACtB,GAAI;YAEJ,oBAAC;GAAyB;GAAW,MAAM;GACxC;IACa;GACA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { t as UISize } from "../size-system-wzOLSuax.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/ui/card/card-action.d.ts
|
|
6
|
+
type CardActionProps = ComponentProps<"div">;
|
|
7
|
+
declare const CardAction: ({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: CardActionProps) => react_jsx_runtime0.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/ui/card/card-content.d.ts
|
|
13
|
+
type CardContentProps = ComponentProps<"div">;
|
|
14
|
+
declare const CardContent: ({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}: CardContentProps) => react_jsx_runtime0.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/ui/card/card-description.d.ts
|
|
20
|
+
type CardDescriptionProps = ComponentProps<"div">;
|
|
21
|
+
declare const CardDescription: ({
|
|
22
|
+
className,
|
|
23
|
+
...props
|
|
24
|
+
}: CardDescriptionProps) => react_jsx_runtime0.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/ui/card/card-footer.d.ts
|
|
27
|
+
type CardFooterProps = ComponentProps<"div">;
|
|
28
|
+
declare const CardFooter: ({
|
|
29
|
+
className,
|
|
30
|
+
...props
|
|
31
|
+
}: CardFooterProps) => react_jsx_runtime0.JSX.Element;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/ui/card/card-header.d.ts
|
|
34
|
+
type CardHeaderProps = ComponentProps<"div">;
|
|
35
|
+
declare const CardHeader: ({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: CardHeaderProps) => react_jsx_runtime0.JSX.Element;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/ui/card/card-title.d.ts
|
|
41
|
+
type CardTitleProps = ComponentProps<"div">;
|
|
42
|
+
declare const CardTitle: ({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}: CardTitleProps) => react_jsx_runtime0.JSX.Element;
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/ui/card/card.d.ts
|
|
48
|
+
type CardProps = ComponentProps<"div"> & {
|
|
49
|
+
size?: UISize;
|
|
50
|
+
};
|
|
51
|
+
declare const Card: {
|
|
52
|
+
(incomingProps: CardProps): react_jsx_runtime0.JSX.Element;
|
|
53
|
+
Action: ({
|
|
54
|
+
className,
|
|
55
|
+
...props
|
|
56
|
+
}: CardActionProps) => react_jsx_runtime0.JSX.Element;
|
|
57
|
+
Content: ({
|
|
58
|
+
className,
|
|
59
|
+
...props
|
|
60
|
+
}: CardContentProps) => react_jsx_runtime0.JSX.Element;
|
|
61
|
+
Description: ({
|
|
62
|
+
className,
|
|
63
|
+
...props
|
|
64
|
+
}: CardDescriptionProps) => react_jsx_runtime0.JSX.Element;
|
|
65
|
+
Footer: ({
|
|
66
|
+
className,
|
|
67
|
+
...props
|
|
68
|
+
}: CardFooterProps) => react_jsx_runtime0.JSX.Element;
|
|
69
|
+
Header: ({
|
|
70
|
+
className,
|
|
71
|
+
...props
|
|
72
|
+
}: CardHeaderProps) => react_jsx_runtime0.JSX.Element;
|
|
73
|
+
Title: ({
|
|
74
|
+
className,
|
|
75
|
+
...props
|
|
76
|
+
}: CardTitleProps) => react_jsx_runtime0.JSX.Element;
|
|
77
|
+
};
|
|
78
|
+
//#endregion
|
|
79
|
+
export { Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardProps, CardTitle, type CardTitleProps };
|
|
80
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","names":[],"sources":["../../src/ui/card/card-action.tsx","../../src/ui/card/card-content.tsx","../../src/ui/card/card-description.tsx","../../src/ui/card/card-footer.tsx","../../src/ui/card/card-header.tsx","../../src/ui/card/card-title.tsx","../../src/ui/card/card.tsx"],"mappings":";;;;;KAGY,eAAA,GAAkB,cAAA;AAAA,cAExB,UAAA;EAAc,SAAA;EAAA,GAAA;AAAA,GAAyB,eAAA,KAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCFhD,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,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;;;KCS9C,SAAA,GAAY,cAAA;EAA0B,IAAA,GAAO,MAAA;AAAA;AAAA,cAEnD,IAAA;EAAA,gBAAuB,SAAA,GAAS,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/ui/card.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { a as useComponentSize, i as useComponentDefaultProps } from "../size-provider-18EvJgDT.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
//#region src/ui/card/card-action.tsx
|
|
6
|
+
const CardAction = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
7
|
+
className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
8
|
+
"data-slot": "card-action",
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/ui/card/card-content.tsx
|
|
14
|
+
const CardContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
15
|
+
className: cn("group-data-[size=xs]/card:px-2.5 group-data-[size=sm]/card:px-3 group-data-[size=md]/card:px-5 group-data-[size=lg]/card:px-6 group-data-[size=xl]/card:px-7", className),
|
|
16
|
+
"data-slot": "card-content",
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/ui/card/card-description.tsx
|
|
22
|
+
const CardDescription = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
23
|
+
className: cn("text-muted-foreground group-data-[size=xs]/card:text-xs group-data-[size=sm]/card:text-sm group-data-[size=md]/card:text-sm group-data-[size=lg]/card:text-sm group-data-[size=xl]/card:text-base", className),
|
|
24
|
+
"data-slot": "card-description",
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/ui/card/card-footer.tsx
|
|
30
|
+
const CardFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
31
|
+
className: cn("flex items-center rounded-b-xl group-data-[size=xs]/card:px-2.5 group-data-[size=sm]/card:px-3 group-data-[size=md]/card:px-5 group-data-[size=lg]/card:px-6 group-data-[size=xl]/card:px-7 group-data-[size=xs]/card:pb-2.5 group-data-[size=sm]/card:pb-3 group-data-[size=md]/card:pb-5 group-data-[size=lg]/card:pb-6 group-data-[size=xl]/card:pb-7 group-data-[size=xs]/card:[.border-t]:pt-2.5 group-data-[size=sm]/card:[.border-t]:pt-3 group-data-[size=md]/card:[.border-t]:pt-5 group-data-[size=lg]/card:[.border-t]:pt-6 group-data-[size=xl]/card:[.border-t]:pt-7", className),
|
|
32
|
+
"data-slot": "card-footer",
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/ui/card/card-header.tsx
|
|
38
|
+
const CardHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
39
|
+
className: cn("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl group-data-[size=xs]/card:px-2.5 group-data-[size=sm]/card:px-3 group-data-[size=md]/card:px-5 group-data-[size=lg]/card:px-6 group-data-[size=xl]/card:px-7 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] group-data-[size=xs]/card:[.border-b]:pb-2.5 group-data-[size=sm]/card:[.border-b]:pb-3 group-data-[size=md]/card:[.border-b]:pb-5 group-data-[size=lg]/card:[.border-b]:pb-6 group-data-[size=xl]/card:[.border-b]:pb-7", className),
|
|
40
|
+
"data-slot": "card-header",
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/ui/card/card-title.tsx
|
|
46
|
+
const CardTitle = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
47
|
+
className: cn("leading-snug font-medium group-data-[size=xs]/card:text-sm group-data-[size=sm]/card:text-sm group-data-[size=md]/card:text-base group-data-[size=lg]/card:text-base group-data-[size=xl]/card:text-lg", className),
|
|
48
|
+
"data-slot": "card-title",
|
|
49
|
+
...props
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/ui/card/use-card-default-props.ts
|
|
54
|
+
const useCardDefaultProps = (incomingProps) => useComponentDefaultProps("Card", {}, incomingProps);
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/ui/card/card.tsx
|
|
58
|
+
const Card = (incomingProps) => {
|
|
59
|
+
const { className, size: providedSize, ...props } = useCardDefaultProps(incomingProps);
|
|
60
|
+
const size = useComponentSize(providedSize);
|
|
61
|
+
return /* @__PURE__ */ jsx("div", {
|
|
62
|
+
className: cn("group/card flex flex-col overflow-hidden rounded-xl border border-border bg-card text-card-foreground shadow-xs has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=xs]:gap-2.5 data-[size=xs]:py-2.5 data-[size=xs]:text-xs data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:text-sm data-[size=md]:gap-5 data-[size=md]:py-5 data-[size=md]:text-sm data-[size=lg]:gap-6 data-[size=lg]:py-6 data-[size=lg]:text-sm data-[size=xl]:gap-7 data-[size=xl]:py-6 data-[size=xl]:text-base *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", className),
|
|
63
|
+
"data-size": size,
|
|
64
|
+
"data-slot": "card",
|
|
65
|
+
...props
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
Card.Action = CardAction;
|
|
69
|
+
Card.Content = CardContent;
|
|
70
|
+
Card.Description = CardDescription;
|
|
71
|
+
Card.Footer = CardFooter;
|
|
72
|
+
Card.Header = CardHeader;
|
|
73
|
+
Card.Title = CardTitle;
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
77
|
+
//# sourceMappingURL=card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.js","names":[],"sources":["../../src/ui/card/card-action.tsx","../../src/ui/card/card-content.tsx","../../src/ui/card/card-description.tsx","../../src/ui/card/card-footer.tsx","../../src/ui/card/card-header.tsx","../../src/ui/card/card-title.tsx","../../src/ui/card/use-card-default-props.ts","../../src/ui/card/card.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type CardActionProps = ComponentProps<\"div\">;\n\nconst CardAction = ({ className, ...props }: CardActionProps) => (\n <div\n className={cn(\n \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n className\n )}\n data-slot=\"card-action\"\n {...props}\n />\n);\n\nexport { CardAction };\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type CardContentProps = ComponentProps<\"div\">;\n\nconst CardContent = ({ className, ...props }: CardContentProps) => (\n <div\n className={cn(\n \"group-data-[size=xs]/card:px-2.5 group-data-[size=sm]/card:px-3 group-data-[size=md]/card:px-5 group-data-[size=lg]/card:px-6 group-data-[size=xl]/card:px-7\",\n className\n )}\n data-slot=\"card-content\"\n {...props}\n />\n);\n\nexport { CardContent };\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type CardDescriptionProps = ComponentProps<\"div\">;\n\nconst CardDescription = ({ className, ...props }: CardDescriptionProps) => (\n <div\n className={cn(\n \"text-muted-foreground group-data-[size=xs]/card:text-xs group-data-[size=sm]/card:text-sm group-data-[size=md]/card:text-sm group-data-[size=lg]/card:text-sm group-data-[size=xl]/card:text-base\",\n className\n )}\n data-slot=\"card-description\"\n {...props}\n />\n);\n\nexport { CardDescription };\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type CardFooterProps = ComponentProps<\"div\">;\n\nconst CardFooter = ({ className, ...props }: CardFooterProps) => (\n <div\n className={cn(\n \"flex items-center rounded-b-xl group-data-[size=xs]/card:px-2.5 group-data-[size=sm]/card:px-3 group-data-[size=md]/card:px-5 group-data-[size=lg]/card:px-6 group-data-[size=xl]/card:px-7 group-data-[size=xs]/card:pb-2.5 group-data-[size=sm]/card:pb-3 group-data-[size=md]/card:pb-5 group-data-[size=lg]/card:pb-6 group-data-[size=xl]/card:pb-7 group-data-[size=xs]/card:[.border-t]:pt-2.5 group-data-[size=sm]/card:[.border-t]:pt-3 group-data-[size=md]/card:[.border-t]:pt-5 group-data-[size=lg]/card:[.border-t]:pt-6 group-data-[size=xl]/card:[.border-t]:pt-7\",\n className\n )}\n data-slot=\"card-footer\"\n {...props}\n />\n);\n\nexport { CardFooter };\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type CardHeaderProps = ComponentProps<\"div\">;\n\nconst CardHeader = ({ className, ...props }: CardHeaderProps) => (\n <div\n className={cn(\n \"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl group-data-[size=xs]/card:px-2.5 group-data-[size=sm]/card:px-3 group-data-[size=md]/card:px-5 group-data-[size=lg]/card:px-6 group-data-[size=xl]/card:px-7 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] group-data-[size=xs]/card:[.border-b]:pb-2.5 group-data-[size=sm]/card:[.border-b]:pb-3 group-data-[size=md]/card:[.border-b]:pb-5 group-data-[size=lg]/card:[.border-b]:pb-6 group-data-[size=xl]/card:[.border-b]:pb-7\",\n className\n )}\n data-slot=\"card-header\"\n {...props}\n />\n);\n\nexport { CardHeader };\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\nexport type CardTitleProps = ComponentProps<\"div\">;\n\nconst CardTitle = ({ className, ...props }: CardTitleProps) => (\n <div\n className={cn(\n \"leading-snug font-medium group-data-[size=xs]/card:text-sm group-data-[size=sm]/card:text-sm group-data-[size=md]/card:text-base group-data-[size=lg]/card:text-base group-data-[size=xl]/card:text-lg\",\n className\n )}\n data-slot=\"card-title\"\n {...props}\n />\n);\n\nexport { CardTitle };\n","import type { CardProps } from \"./card\";\n\nimport { useComponentDefaultProps } from \"../shared/size/size-provider\";\n\nexport const useCardDefaultProps = (incomingProps: CardProps): CardProps =>\n useComponentDefaultProps<CardProps>(\"Card\", {}, incomingProps);\n","import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\n\nimport type { UISize } from \"../shared/size/size-system\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { CardAction } from \"./card-action\";\nimport { CardContent } from \"./card-content\";\nimport { CardDescription } from \"./card-description\";\nimport { CardFooter } from \"./card-footer\";\nimport { CardHeader } from \"./card-header\";\nimport { CardTitle } from \"./card-title\";\nimport { useCardDefaultProps } from \"./use-card-default-props\";\nexport type CardProps = ComponentProps<\"div\"> & { size?: UISize };\n\nconst Card = (incomingProps: CardProps) => {\n const {\n className,\n size: providedSize,\n ...props\n } = useCardDefaultProps(incomingProps);\n const size = useComponentSize(providedSize);\n\n return (\n <div\n className={cn(\n \"group/card flex flex-col overflow-hidden rounded-xl border border-border bg-card text-card-foreground shadow-xs has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=xs]:gap-2.5 data-[size=xs]:py-2.5 data-[size=xs]:text-xs data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:text-sm data-[size=md]:gap-5 data-[size=md]:py-5 data-[size=md]:text-sm data-[size=lg]:gap-6 data-[size=lg]:py-6 data-[size=lg]:text-sm data-[size=xl]:gap-7 data-[size=xl]:py-6 data-[size=xl]:text-base *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl\",\n className\n )}\n data-size={size}\n data-slot=\"card\"\n {...props}\n />\n );\n};\n\nCard.Action = CardAction;\nCard.Content = CardContent;\nCard.Description = CardDescription;\nCard.Footer = CardFooter;\nCard.Header = CardHeader;\nCard.Title = CardTitle;\n\nexport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n};\n\nexport type { CardActionProps } from \"./card-action\";\nexport type { CardContentProps } from \"./card-content\";\nexport type { CardDescriptionProps } from \"./card-description\";\nexport type { CardFooterProps } from \"./card-footer\";\nexport type { CardHeaderProps } from \"./card-header\";\nexport type { CardTitleProps } from \"./card-title\";\n"],"mappings":";;;;;AAKA,MAAM,cAAc,EAAE,WAAW,GAAG,YAClC,oBAAC;CACC,WAAW,GACT,kEACA,UACD;CACD,aAAU;CACV,GAAI;EACJ;;;;ACRJ,MAAM,eAAe,EAAE,WAAW,GAAG,YACnC,oBAAC;CACC,WAAW,GACT,gKACA,UACD;CACD,aAAU;CACV,GAAI;EACJ;;;;ACRJ,MAAM,mBAAmB,EAAE,WAAW,GAAG,YACvC,oBAAC;CACC,WAAW,GACT,qMACA,UACD;CACD,aAAU;CACV,GAAI;EACJ;;;;ACRJ,MAAM,cAAc,EAAE,WAAW,GAAG,YAClC,oBAAC;CACC,WAAW,GACT,qjBACA,UACD;CACD,aAAU;CACV,GAAI;EACJ;;;;ACRJ,MAAM,cAAc,EAAE,WAAW,GAAG,YAClC,oBAAC;CACC,WAAW,GACT,4jBACA,UACD;CACD,aAAU;CACV,GAAI;EACJ;;;;ACRJ,MAAM,aAAa,EAAE,WAAW,GAAG,YACjC,oBAAC;CACC,WAAW,GACT,0MACA,UACD;CACD,aAAU;CACV,GAAI;EACJ;;;;ACTJ,MAAa,uBAAuB,kBAClC,yBAAoC,QAAQ,EAAE,EAAE,cAAc;;;;ACWhE,MAAM,QAAQ,kBAA6B;CACzC,MAAM,EACJ,WACA,MAAM,cACN,GAAG,UACD,oBAAoB,cAAc;CACtC,MAAM,OAAO,iBAAiB,aAAa;AAE3C,QACE,oBAAC;EACC,WAAW,GACT,ujBACA,UACD;EACD,aAAW;EACX,aAAU;EACV,GAAI;GACJ;;AAIN,KAAK,SAAS;AACd,KAAK,UAAU;AACf,KAAK,cAAc;AACnB,KAAK,SAAS;AACd,KAAK,SAAS;AACd,KAAK,QAAQ"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Button } from "./button.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
5
|
+
|
|
6
|
+
//#region src/ui/carousel/carousel-content.d.ts
|
|
7
|
+
type CarouselContentProps = ComponentProps<"div">;
|
|
8
|
+
declare const CarouselContent: ({
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}: CarouselContentProps) => react_jsx_runtime0.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/ui/carousel/carousel-item.d.ts
|
|
14
|
+
type CarouselItemProps = ComponentProps<"div">;
|
|
15
|
+
declare const CarouselItem: ({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}: CarouselItemProps) => react_jsx_runtime0.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/ui/carousel/carousel-next.d.ts
|
|
21
|
+
type CarouselNextProps = ComponentProps<typeof Button>;
|
|
22
|
+
declare const CarouselNext: ({
|
|
23
|
+
className,
|
|
24
|
+
variant,
|
|
25
|
+
size,
|
|
26
|
+
...props
|
|
27
|
+
}: CarouselNextProps) => react_jsx_runtime0.JSX.Element;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/ui/carousel/carousel-previous.d.ts
|
|
30
|
+
type CarouselPreviousProps = ComponentProps<typeof Button>;
|
|
31
|
+
declare const CarouselPrevious: ({
|
|
32
|
+
className,
|
|
33
|
+
variant,
|
|
34
|
+
size,
|
|
35
|
+
...props
|
|
36
|
+
}: CarouselPreviousProps) => react_jsx_runtime0.JSX.Element;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/ui/carousel/use-carousel.d.ts
|
|
39
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
40
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
41
|
+
type CarouselOptions = UseCarouselParameters[0];
|
|
42
|
+
type CarouselPlugin = UseCarouselParameters[1];
|
|
43
|
+
interface CarouselProps {
|
|
44
|
+
opts?: CarouselOptions;
|
|
45
|
+
plugins?: CarouselPlugin;
|
|
46
|
+
orientation?: "horizontal" | "vertical";
|
|
47
|
+
setApi?: (api: CarouselApi) => void;
|
|
48
|
+
}
|
|
49
|
+
type CarouselContextProps = {
|
|
50
|
+
carouselRef: ReturnType<typeof useEmblaCarousel>[0];
|
|
51
|
+
api: ReturnType<typeof useEmblaCarousel>[1];
|
|
52
|
+
scrollPrev: () => void;
|
|
53
|
+
scrollNext: () => void;
|
|
54
|
+
canScrollPrev: boolean;
|
|
55
|
+
canScrollNext: boolean;
|
|
56
|
+
} & CarouselProps;
|
|
57
|
+
declare const useCarousel: () => CarouselContextProps;
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/ui/carousel/carousel.d.ts
|
|
60
|
+
declare const Carousel: {
|
|
61
|
+
({
|
|
62
|
+
orientation,
|
|
63
|
+
opts,
|
|
64
|
+
setApi,
|
|
65
|
+
plugins,
|
|
66
|
+
className,
|
|
67
|
+
children,
|
|
68
|
+
...props
|
|
69
|
+
}: ComponentProps<"div"> & CarouselProps): react_jsx_runtime0.JSX.Element;
|
|
70
|
+
Content: ({
|
|
71
|
+
className,
|
|
72
|
+
...props
|
|
73
|
+
}: CarouselContentProps) => react_jsx_runtime0.JSX.Element;
|
|
74
|
+
Item: ({
|
|
75
|
+
className,
|
|
76
|
+
...props
|
|
77
|
+
}: CarouselItemProps) => react_jsx_runtime0.JSX.Element;
|
|
78
|
+
Next: ({
|
|
79
|
+
className,
|
|
80
|
+
variant,
|
|
81
|
+
size,
|
|
82
|
+
...props
|
|
83
|
+
}: CarouselNextProps) => react_jsx_runtime0.JSX.Element;
|
|
84
|
+
Previous: ({
|
|
85
|
+
className,
|
|
86
|
+
variant,
|
|
87
|
+
size,
|
|
88
|
+
...props
|
|
89
|
+
}: CarouselPreviousProps) => react_jsx_runtime0.JSX.Element;
|
|
90
|
+
};
|
|
91
|
+
//#endregion
|
|
92
|
+
export { Carousel, type CarouselApi, CarouselContent, type CarouselContentProps, CarouselItem, type CarouselItemProps, CarouselNext, type CarouselNextProps, CarouselPrevious, type CarouselPreviousProps, type CarouselProps, useCarousel };
|
|
93
|
+
//# sourceMappingURL=carousel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel.d.ts","names":[],"sources":["../../src/ui/carousel/carousel-content.tsx","../../src/ui/carousel/carousel-item.tsx","../../src/ui/carousel/carousel-next.tsx","../../src/ui/carousel/carousel-previous.tsx","../../src/ui/carousel/use-carousel.tsx","../../src/ui/carousel/carousel.tsx"],"mappings":";;;;;;KAKY,oBAAA,GAAuB,cAAA;AAAA,cAE7B,eAAA;EAAmB,SAAA;EAAA,GAAA;AAAA,GAAyB,oBAAA,KAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCF1D,iBAAA,GAAoB,cAAA;AAAA,cAE1B,YAAA;EAAgB,SAAA;EAAA,GAAA;AAAA,GAAyB,iBAAA,KAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCCpD,iBAAA,GAAoB,cAAA,QAAsB,MAAA;AAAA,cAEhD,YAAA;EAAgB,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAKnB,iBAAA,KAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCPR,qBAAA,GAAwB,cAAA,QAAsB,MAAA;AAAA,cAEpD,gBAAA;EAAoB,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAKvB,qBAAA,KAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCRnB,WAAA,GAAc,oBAAA;AAAA,KACd,qBAAA,GAAwB,UAAA,QAAkB,gBAAA;AAAA,KAC1C,eAAA,GAAkB,qBAAA;AAAA,KAClB,cAAA,GAAiB,qBAAA;AAAA,UAEZ,aAAA;EACR,IAAA,GAAO,eAAA;EACP,OAAA,GAAU,cAAA;EACV,WAAA;EACA,MAAA,IAAU,GAAA,EAAK,WAAA;AAAA;AAAA,KAGZ,oBAAA;EACH,WAAA,EAAa,UAAA,QAAkB,gBAAA;EAC/B,GAAA,EAAK,UAAA,QAAkB,gBAAA;EACvB,UAAA;EACA,UAAA;EACA,aAAA;EACA,aAAA;AAAA,IACE,aAAA;AAAA,cAIE,WAAA,QAAW,oBAAA;;;cCPX,QAAA;EAAA;;;;;;;;KAQH,cAAA,UAAwB,aAAA,GAAa,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|