@constructive-io/ui 0.11.0 → 0.13.0
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 +1 -1
- package/dist/{ai-CiaH2sfF.js → ai-B7XNnqYL.js} +1674 -228
- package/dist/ai-B7XNnqYL.js.map +1 -0
- package/dist/{ai-lAkichk8.cjs → ai-DJ-YPj8c.cjs} +1768 -226
- package/dist/ai-DJ-YPj8c.cjs.map +1 -0
- package/dist/{alert-BXuP0ayz.d.ts → alert-CJ4Qyk6W.d.cts} +4 -2
- package/dist/{alert-BXuP0ayz.d.cts → alert-CJ4Qyk6W.d.ts} +4 -2
- package/dist/components/accordion.cjs +60 -0
- package/dist/components/accordion.cjs.map +1 -0
- package/dist/components/accordion.d.cts +14 -0
- package/dist/components/accordion.d.ts +14 -0
- package/dist/components/accordion.js +54 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/ai/index.cjs +17 -1
- package/dist/components/ai/index.d.cts +2 -2
- package/dist/components/ai/index.d.ts +2 -2
- package/dist/components/ai/index.js +2 -2
- package/dist/components/alert-dialog.cjs +17 -8
- package/dist/components/alert-dialog.cjs.map +1 -1
- package/dist/components/alert-dialog.d.cts +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +17 -8
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.cjs +18 -8
- package/dist/components/alert.cjs.map +1 -1
- package/dist/components/alert.d.cts +2 -2
- package/dist/components/alert.d.ts +2 -2
- package/dist/components/alert.js +18 -9
- package/dist/components/alert.js.map +1 -1
- package/dist/components/autocomplete.cjs +9 -5
- package/dist/components/autocomplete.cjs.map +1 -1
- package/dist/components/autocomplete.js +9 -5
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/avatar.cjs +9 -3
- package/dist/components/avatar.cjs.map +1 -1
- package/dist/components/avatar.d.cts +6 -0
- package/dist/components/avatar.d.ts +6 -0
- package/dist/components/avatar.js +9 -3
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.cjs +25 -18
- package/dist/components/badge.cjs.map +1 -1
- package/dist/components/badge.js +25 -18
- package/dist/components/badge.js.map +1 -1
- package/dist/components/breadcrumb.cjs +9 -6
- package/dist/components/breadcrumb.cjs.map +1 -1
- package/dist/components/breadcrumb.js +9 -6
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button-group.cjs +57 -0
- package/dist/components/button-group.cjs.map +1 -0
- package/dist/components/button-group.d.cts +16 -0
- package/dist/components/button-group.d.ts +16 -0
- package/dist/components/button-group.js +51 -0
- package/dist/components/button-group.js.map +1 -0
- package/dist/components/button.cjs +59 -15
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.cts +32 -2
- package/dist/components/button.d.ts +32 -2
- package/dist/components/button.js +59 -15
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar-rac.cjs +14 -8
- package/dist/components/calendar-rac.cjs.map +1 -1
- package/dist/components/calendar-rac.js +14 -8
- package/dist/components/calendar-rac.js.map +1 -1
- package/dist/components/card.cjs +35 -23
- package/dist/components/card.cjs.map +1 -1
- package/dist/components/card.d.cts +3 -2
- package/dist/components/card.d.ts +3 -2
- package/dist/components/card.js +35 -23
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox.cjs +5 -5
- package/dist/components/checkbox.cjs.map +1 -1
- package/dist/components/checkbox.js +5 -5
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.cjs +3 -3
- package/dist/components/collapsible.cjs.map +1 -1
- package/dist/components/collapsible.js +3 -3
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/combobox.cjs +24 -12
- package/dist/components/combobox.cjs.map +1 -1
- package/dist/components/combobox.d.cts +2 -1
- package/dist/components/combobox.d.ts +2 -1
- package/dist/components/combobox.js +24 -12
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.cjs +25 -14
- package/dist/components/command.cjs.map +1 -1
- package/dist/components/command.d.cts +6 -2
- package/dist/components/command.d.ts +6 -2
- package/dist/components/command.js +25 -14
- package/dist/components/command.js.map +1 -1
- package/dist/components/dialog.cjs +22 -12
- package/dist/components/dialog.cjs.map +1 -1
- package/dist/components/dialog.d.cts +5 -2
- package/dist/components/dialog.d.ts +5 -2
- package/dist/components/dialog.js +22 -12
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dock.cjs +50 -27
- package/dist/components/dock.cjs.map +1 -1
- package/dist/components/dock.d.cts +1 -1
- package/dist/components/dock.d.ts +1 -1
- package/dist/components/dock.js +51 -28
- package/dist/components/dock.js.map +1 -1
- package/dist/components/drawer.cjs +22 -14
- package/dist/components/drawer.cjs.map +1 -1
- package/dist/components/drawer.js +22 -14
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.cjs +34 -28
- package/dist/components/dropdown-menu.cjs.map +1 -1
- package/dist/components/dropdown-menu.d.cts +2 -2
- package/dist/components/dropdown-menu.d.ts +2 -2
- package/dist/components/dropdown-menu.js +52 -46
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/empty.cjs +4 -4
- package/dist/components/empty.cjs.map +1 -1
- package/dist/components/empty.js +4 -4
- package/dist/components/empty.js.map +1 -1
- package/dist/components/field.cjs +33 -33
- package/dist/components/field.cjs.map +1 -1
- package/dist/components/field.d.cts +1 -1
- package/dist/components/field.d.ts +1 -1
- package/dist/components/field.js +34 -34
- package/dist/components/field.js.map +1 -1
- package/dist/components/flickering-grid.cjs +1 -1
- package/dist/components/flickering-grid.cjs.map +1 -1
- package/dist/components/flickering-grid.js +1 -1
- package/dist/components/flickering-grid.js.map +1 -1
- package/dist/components/flow-zoom-panel.cjs +10 -5
- package/dist/components/flow-zoom-panel.cjs.map +1 -1
- package/dist/components/flow-zoom-panel.d.cts +8 -1
- package/dist/components/flow-zoom-panel.d.ts +8 -1
- package/dist/components/flow-zoom-panel.js +10 -5
- package/dist/components/flow-zoom-panel.js.map +1 -1
- package/dist/components/form-control.cjs +12 -8
- package/dist/components/form-control.cjs.map +1 -1
- package/dist/components/form-control.js +12 -8
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.cjs +5 -5
- package/dist/components/form.cjs.map +1 -1
- package/dist/components/form.js +5 -5
- package/dist/components/form.js.map +1 -1
- package/dist/components/input-group.cjs +13 -7
- package/dist/components/input-group.cjs.map +1 -1
- package/dist/components/input-group.d.cts +2 -2
- package/dist/components/input-group.d.ts +2 -2
- package/dist/components/input-group.js +11 -7
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input-otp.cjs +252 -0
- package/dist/components/input-otp.cjs.map +1 -0
- package/dist/components/input-otp.d.cts +44 -0
- package/dist/components/input-otp.d.ts +44 -0
- package/dist/components/input-otp.js +251 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.cjs +10 -4
- package/dist/components/input.cjs.map +1 -1
- package/dist/components/input.d.cts +11 -2
- package/dist/components/input.d.ts +11 -2
- package/dist/components/input.js +10 -4
- package/dist/components/input.js.map +1 -1
- package/dist/components/item.cjs +151 -0
- package/dist/components/item.cjs.map +1 -0
- package/dist/components/item.d.cts +37 -0
- package/dist/components/item.d.ts +37 -0
- package/dist/components/item.js +137 -0
- package/dist/components/item.js.map +1 -0
- package/dist/components/json-input.cjs +4 -143
- package/dist/components/json-input.d.cts +6 -4
- package/dist/components/json-input.d.ts +6 -4
- package/dist/components/json-input.js +2 -140
- package/dist/components/kbd.cjs +35 -0
- package/dist/components/kbd.cjs.map +1 -0
- package/dist/components/kbd.d.cts +16 -0
- package/dist/components/kbd.d.ts +16 -0
- package/dist/components/kbd.js +31 -0
- package/dist/components/kbd.js.map +1 -0
- package/dist/components/label.cjs +3 -3
- package/dist/components/label.cjs.map +1 -1
- package/dist/components/label.js +3 -3
- package/dist/components/label.js.map +1 -1
- package/dist/components/motion-grid.cjs +20 -8
- package/dist/components/motion-grid.cjs.map +1 -1
- package/dist/components/motion-grid.js +20 -8
- package/dist/components/motion-grid.js.map +1 -1
- package/dist/components/multi-select.cjs +77 -67
- package/dist/components/multi-select.cjs.map +1 -1
- package/dist/components/multi-select.js +77 -67
- package/dist/components/multi-select.js.map +1 -1
- package/dist/components/page-header.cjs +12 -9
- package/dist/components/page-header.cjs.map +1 -1
- package/dist/components/page-header.js +12 -9
- package/dist/components/page-header.js.map +1 -1
- package/dist/components/pagination.cjs +10 -4
- package/dist/components/pagination.cjs.map +1 -1
- package/dist/components/pagination.d.cts +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +10 -4
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/phone-input.cjs +228 -0
- package/dist/components/phone-input.cjs.map +1 -0
- package/dist/components/phone-input.d.cts +42 -0
- package/dist/components/phone-input.d.ts +42 -0
- package/dist/components/phone-input.js +220 -0
- package/dist/components/phone-input.js.map +1 -0
- package/dist/components/popover.cjs +5 -4
- package/dist/components/popover.cjs.map +1 -1
- package/dist/components/popover.js +5 -4
- package/dist/components/popover.js.map +1 -1
- package/dist/components/progress.cjs +20 -3
- package/dist/components/progress.cjs.map +1 -1
- package/dist/components/progress.d.cts +1 -1
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +20 -3
- package/dist/components/progress.js.map +1 -1
- package/dist/components/progressive-blur-scroll-container.cjs +2 -2
- package/dist/components/progressive-blur-scroll-container.cjs.map +1 -1
- package/dist/components/progressive-blur-scroll-container.d.cts +1 -1
- package/dist/components/progressive-blur-scroll-container.d.ts +1 -1
- package/dist/components/progressive-blur-scroll-container.js +2 -2
- package/dist/components/progressive-blur-scroll-container.js.map +1 -1
- package/dist/components/progressive-blur.cjs +3 -2
- package/dist/components/progressive-blur.cjs.map +1 -1
- package/dist/components/progressive-blur.js +3 -2
- package/dist/components/progressive-blur.js.map +1 -1
- package/dist/components/radio-group.cjs +2 -2
- package/dist/components/radio-group.cjs.map +1 -1
- package/dist/components/radio-group.js +2 -2
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/record-picker.cjs +1 -1
- package/dist/components/record-picker.js +1 -1
- package/dist/components/resizable.cjs +2 -2
- package/dist/components/resizable.cjs.map +1 -1
- package/dist/components/resizable.js +2 -2
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/responsive-diagram.cjs +43 -21
- package/dist/components/responsive-diagram.cjs.map +1 -1
- package/dist/components/responsive-diagram.d.cts +7 -1
- package/dist/components/responsive-diagram.d.ts +7 -1
- package/dist/components/responsive-diagram.js +43 -21
- package/dist/components/responsive-diagram.js.map +1 -1
- package/dist/components/scroll-area.cjs +2 -2
- package/dist/components/scroll-area.cjs.map +1 -1
- package/dist/components/scroll-area.js +2 -2
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.cjs +84 -20
- package/dist/components/select.cjs.map +1 -1
- package/dist/components/select.d.cts +12 -7
- package/dist/components/select.d.ts +12 -7
- package/dist/components/select.js +84 -20
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.cjs.map +1 -1
- package/dist/components/separator.d.cts +11 -2
- package/dist/components/separator.d.ts +11 -2
- package/dist/components/separator.js +1 -1
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.d.cts +11 -5
- package/dist/components/sheet.d.ts +12 -6
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.cjs +2 -1
- package/dist/components/sidebar.d.cts +7 -6
- package/dist/components/sidebar.d.ts +7 -6
- package/dist/components/sidebar.js +2 -1
- package/dist/components/slider.cjs +47 -0
- package/dist/components/slider.cjs.map +1 -0
- package/dist/components/slider.d.cts +8 -0
- package/dist/components/slider.d.ts +8 -0
- package/dist/components/slider.js +44 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/sonner.cjs +15 -4
- package/dist/components/sonner.cjs.map +1 -1
- package/dist/components/sonner.d.cts +10 -1
- package/dist/components/sonner.d.ts +10 -1
- package/dist/components/sonner.js +16 -5
- package/dist/components/sonner.js.map +1 -1
- package/dist/components/spinner.cjs +25 -0
- package/dist/components/spinner.cjs.map +1 -0
- package/dist/components/spinner.d.cts +16 -0
- package/dist/components/spinner.d.ts +16 -0
- package/dist/components/spinner.js +22 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/components/stack/index.cjs +1 -1
- package/dist/components/stack/index.js +1 -1
- package/dist/components/stepper.cjs +23 -17
- package/dist/components/stepper.cjs.map +1 -1
- package/dist/components/stepper.d.cts +2 -2
- package/dist/components/stepper.d.ts +2 -2
- package/dist/components/stepper.js +23 -17
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/switch.cjs +5 -5
- package/dist/components/switch.cjs.map +1 -1
- package/dist/components/switch.js +5 -5
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.cjs +26 -7
- package/dist/components/table.cjs.map +1 -1
- package/dist/components/table.d.cts +20 -2
- package/dist/components/table.d.ts +20 -2
- package/dist/components/table.js +26 -8
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.cjs +61 -8
- package/dist/components/tabs.cjs.map +1 -1
- package/dist/components/tabs.d.cts +13 -2
- package/dist/components/tabs.d.ts +13 -2
- package/dist/components/tabs.js +63 -11
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tags.cjs +10 -5
- package/dist/components/tags.cjs.map +1 -1
- package/dist/components/tags.d.cts +1 -1
- package/dist/components/tags.d.ts +1 -1
- package/dist/components/tags.js +10 -5
- package/dist/components/tags.js.map +1 -1
- package/dist/components/textarea.cjs +5 -4
- package/dist/components/textarea.cjs.map +1 -1
- package/dist/components/textarea.js +5 -4
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/toast/index.cjs +1 -1
- package/dist/components/toast/index.d.cts +2 -2
- package/dist/components/toast/index.d.ts +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toggle-group.cjs +69 -0
- package/dist/components/toggle-group.cjs.map +1 -0
- package/dist/components/toggle-group.d.cts +27 -0
- package/dist/components/toggle-group.d.ts +27 -0
- package/dist/components/toggle-group.js +65 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.cjs +54 -0
- package/dist/components/toggle.cjs.map +1 -0
- package/dist/components/toggle.d.cts +13 -0
- package/dist/components/toggle.d.ts +13 -0
- package/dist/components/toggle.js +50 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tooltip.cjs +18 -6
- package/dist/components/tooltip.cjs.map +1 -1
- package/dist/components/tooltip.d.cts +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +18 -6
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/unlink-button.cjs +2 -2
- package/dist/components/unlink-button.cjs.map +1 -1
- package/dist/components/unlink-button.d.cts +1 -0
- package/dist/components/unlink-button.d.ts +1 -0
- package/dist/components/unlink-button.js +2 -2
- package/dist/components/unlink-button.js.map +1 -1
- package/dist/components/workspace-kit/index.cjs +1477 -0
- package/dist/components/workspace-kit/index.cjs.map +1 -0
- package/dist/components/workspace-kit/index.d.cts +716 -0
- package/dist/components/workspace-kit/index.d.ts +716 -0
- package/dist/components/workspace-kit/index.js +1410 -0
- package/dist/components/workspace-kit/index.js.map +1 -0
- package/dist/compose-refs-Mbma1O3M.js +47 -0
- package/dist/compose-refs-Mbma1O3M.js.map +1 -0
- package/dist/compose-refs-uPrvNoiU.cjs +52 -0
- package/dist/compose-refs-uPrvNoiU.cjs.map +1 -0
- package/dist/fluid-highlight-AW-OITqJ.cjs +124 -0
- package/dist/fluid-highlight-AW-OITqJ.cjs.map +1 -0
- package/dist/fluid-highlight-DxWeZ7iu.js +119 -0
- package/dist/fluid-highlight-DxWeZ7iu.js.map +1 -0
- package/dist/{index-UnM04j0t.d.ts → index-BQZxmMpw.d.cts} +11 -31
- package/dist/{index-UnM04j0t.d.cts → index-BQZxmMpw.d.ts} +11 -31
- package/dist/{index-CyaFaZe2.d.cts → index-CiO-3M_X.d.cts} +334 -18
- package/dist/{index-B0wXxIAb.d.ts → index-z3LqQ5L5.d.ts} +334 -18
- package/dist/index.cjs +107 -17
- package/dist/index.d.cts +63 -13
- package/dist/index.d.ts +63 -13
- package/dist/index.js +27 -14
- package/dist/initial-focus-B8RLtyOZ.cjs +67 -0
- package/dist/initial-focus-B8RLtyOZ.cjs.map +1 -0
- package/dist/initial-focus-j2E0EnIx.js +61 -0
- package/dist/initial-focus-j2E0EnIx.js.map +1 -0
- package/dist/initials-DSkWTOb0.cjs +127 -0
- package/dist/initials-DSkWTOb0.cjs.map +1 -0
- package/dist/initials-kCcHgrSy.js +97 -0
- package/dist/initials-kCcHgrSy.js.map +1 -0
- package/dist/json-input-CH5aEmoA.js +293 -0
- package/dist/json-input-CH5aEmoA.js.map +1 -0
- package/dist/json-input-D8yM578l.cjs +311 -0
- package/dist/json-input-D8yM578l.cjs.map +1 -0
- package/dist/{motion-config-COCFHq1L.cjs → motion-config-DZ7w5Uhq.cjs} +32 -2
- package/dist/motion-config-DZ7w5Uhq.cjs.map +1 -0
- package/dist/{motion-config-COsZ6azM.js → motion-config-DoFp4I8f.js} +21 -3
- package/dist/motion-config-DoFp4I8f.js.map +1 -0
- package/dist/{record-picker-Bz4FApxD.cjs → record-picker-BQ1-Vx0g.cjs} +23 -8
- package/dist/record-picker-BQ1-Vx0g.cjs.map +1 -0
- package/dist/{record-picker-BbxngCeV.js → record-picker-DSRo4RXV.js} +23 -8
- package/dist/record-picker-DSRo4RXV.js.map +1 -0
- package/dist/{sheet-BdA0rfIz.cjs → sheet-OxWlnT_G.cjs} +25 -32
- package/dist/sheet-OxWlnT_G.cjs.map +1 -0
- package/dist/{sheet-BLHnhLRH.js → sheet-wPF_l9Cn.js} +25 -32
- package/dist/sheet-wPF_l9Cn.js.map +1 -0
- package/dist/{sidebar-BavjjJp0.cjs → sidebar-BEEWmJwC.cjs} +74 -57
- package/dist/sidebar-BEEWmJwC.cjs.map +1 -0
- package/dist/{sidebar-DeoL2ttp.js → sidebar-DWl1Azyv.js} +74 -57
- package/dist/sidebar-DWl1Azyv.js.map +1 -0
- package/dist/{stack-ci2lkfkr.cjs → stack-CEvmUSwF.cjs} +12 -10
- package/dist/stack-CEvmUSwF.cjs.map +1 -0
- package/dist/{stack-C9GROTGA.js → stack-Kqu7YaR0.js} +12 -10
- package/dist/stack-Kqu7YaR0.js.map +1 -0
- package/dist/text-runs-CdmlS5C7.cjs +52 -0
- package/dist/text-runs-CdmlS5C7.cjs.map +1 -0
- package/dist/text-runs-DqcEO8L_.js +45 -0
- package/dist/text-runs-DqcEO8L_.js.map +1 -0
- package/dist/theme-DTTTlylA.d.cts +520 -0
- package/dist/theme-DTTTlylA.d.ts +520 -0
- package/dist/theme-dials-config.cjs +273 -0
- package/dist/theme-dials-config.cjs.map +1 -0
- package/dist/theme-dials-config.d.cts +95 -0
- package/dist/theme-dials-config.d.ts +95 -0
- package/dist/theme-dials-config.js +269 -0
- package/dist/theme-dials-config.js.map +1 -0
- package/dist/theme-presets.cjs +922 -0
- package/dist/theme-presets.cjs.map +1 -0
- package/dist/theme-presets.d.cts +89 -0
- package/dist/theme-presets.d.ts +89 -0
- package/dist/theme-presets.js +912 -0
- package/dist/theme-presets.js.map +1 -0
- package/dist/theme-tuning-DjgDvV8V.d.ts +158 -0
- package/dist/theme-tuning-TJ76tnxZ.d.cts +158 -0
- package/dist/theme-tuning.cjs +349 -0
- package/dist/theme-tuning.cjs.map +1 -0
- package/dist/theme-tuning.d.cts +2 -0
- package/dist/theme-tuning.d.ts +2 -0
- package/dist/theme-tuning.js +333 -0
- package/dist/theme-tuning.js.map +1 -0
- package/dist/theme.cjs +432 -0
- package/dist/theme.cjs.map +1 -0
- package/dist/theme.d.cts +2 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +430 -0
- package/dist/theme.js.map +1 -0
- package/dist/toast-08jF1DBQ.cjs +193 -0
- package/dist/toast-08jF1DBQ.cjs.map +1 -0
- package/dist/toast-CVW5XY4u.js +164 -0
- package/dist/toast-CVW5XY4u.js.map +1 -0
- package/dist/toast-details-BdxxSLlN.cjs +209 -0
- package/dist/toast-details-BdxxSLlN.cjs.map +1 -0
- package/dist/toast-details-CfsB1Vxb.js +198 -0
- package/dist/toast-details-CfsB1Vxb.js.map +1 -0
- package/dist/{tooltip-CTRQoN1A.d.ts → tooltip-Fqb4JK-g.d.cts} +2 -2
- package/dist/{tooltip-CTRQoN1A.d.cts → tooltip-Fqb4JK-g.d.ts} +2 -2
- package/dist/tuning-BKVFsxLr.js +48 -0
- package/dist/tuning-BKVFsxLr.js.map +1 -0
- package/dist/tuning-BRPG7U1U.cjs +71 -0
- package/dist/tuning-BRPG7U1U.cjs.map +1 -0
- package/dist/use-document-theme-BSEuNsEE.cjs +43 -0
- package/dist/use-document-theme-BSEuNsEE.cjs.map +1 -0
- package/dist/use-document-theme-Ch_PqxZz.js +38 -0
- package/dist/use-document-theme-Ch_PqxZz.js.map +1 -0
- package/dist/use-scroll-fade-CaHp52u4.cjs +79 -0
- package/dist/use-scroll-fade-CaHp52u4.cjs.map +1 -0
- package/dist/use-scroll-fade-ilq-o00-.js +72 -0
- package/dist/use-scroll-fade-ilq-o00-.js.map +1 -0
- package/package.json +163 -27
- package/src/styles/globals.css +176 -97
- package/dist/ai-CiaH2sfF.js.map +0 -1
- package/dist/ai-lAkichk8.cjs.map +0 -1
- package/dist/button-DBRYW_AI.d.cts +0 -20
- package/dist/button-DBRYW_AI.d.ts +0 -20
- package/dist/components/app-bar.cjs +0 -81
- package/dist/components/app-bar.cjs.map +0 -1
- package/dist/components/app-bar.d.cts +0 -27
- package/dist/components/app-bar.d.ts +0 -27
- package/dist/components/app-bar.js +0 -77
- package/dist/components/app-bar.js.map +0 -1
- package/dist/components/app-shell.cjs +0 -267
- package/dist/components/app-shell.cjs.map +0 -1
- package/dist/components/app-shell.d.cts +0 -98
- package/dist/components/app-shell.d.ts +0 -98
- package/dist/components/app-shell.js +0 -264
- package/dist/components/app-shell.js.map +0 -1
- package/dist/components/json-input.cjs.map +0 -1
- package/dist/components/json-input.js.map +0 -1
- package/dist/input-CBrCuMH8.d.cts +0 -11
- package/dist/input-CBrCuMH8.d.ts +0 -11
- package/dist/motion-config-COCFHq1L.cjs.map +0 -1
- package/dist/motion-config-COsZ6azM.js.map +0 -1
- package/dist/record-picker-BbxngCeV.js.map +0 -1
- package/dist/record-picker-Bz4FApxD.cjs.map +0 -1
- package/dist/separator-BQEsr0Rc.d.cts +0 -11
- package/dist/separator-BQEsr0Rc.d.ts +0 -11
- package/dist/sheet-BLHnhLRH.js.map +0 -1
- package/dist/sheet-BdA0rfIz.cjs.map +0 -1
- package/dist/sidebar-BavjjJp0.cjs.map +0 -1
- package/dist/sidebar-DeoL2ttp.js.map +0 -1
- package/dist/stack-C9GROTGA.js.map +0 -1
- package/dist/stack-ci2lkfkr.cjs.map +0 -1
- package/dist/toast-D6MqijT2.cjs +0 -316
- package/dist/toast-D6MqijT2.cjs.map +0 -1
- package/dist/toast-D_BOLzm3.js +0 -287
- package/dist/toast-D_BOLzm3.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.cjs","names":["React","cn","
|
|
1
|
+
{"version":3,"file":"button.cjs","names":["React","cn","BaseButton","Slot"],"sources":["../../src/components/button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button as BaseButton } from '@base-ui/react/button';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { Slot } from '../lib/slot';\nimport { cn } from '../lib/utils';\n\nconst buttonVariants = cva(\n\t\"[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md border font-medium text-sm outline-none transition-[box-shadow,scale] duration-(--duration-moderate) ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-64 data-disabled:cursor-not-allowed data-disabled:opacity-64 motion-reduce:transition-shadow [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tsize: 'default',\n\t\t\tstatic: false,\n\t\t\tvariant: 'default',\n\t\t\twrap: false,\n\t\t},\n\t\tvariants: {\n\t\t\tstatic: {\n\t\t\t\tfalse: 'motion-safe:active:not-disabled:not-data-disabled:scale-[0.96]',\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-10 min-w-10 px-[calc(--spacing(3)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11',\n\t\t\t\ticon: 'size-10 pointer-coarse:size-11',\n\t\t\t\t'icon-lg': 'size-11',\n\t\t\t\t'icon-sm': 'size-8 pointer-coarse:size-11',\n\t\t\t\t'icon-xl': 'size-11 [&_svg:not([class*=\"size-\"])]:size-5',\n\t\t\t\t'icon-xs':\n\t\t\t\t\t'size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:size-11 not-in-data-[slot=input-group]:[&_svg:not([class*=\"size-\"])]:size-4',\n\t\t\t\tlg: 'h-11 min-w-11 px-[calc(--spacing(3.5)-1px)]',\n\t\t\t\tsm:\n\t\t\t\t\t'h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11',\n\t\t\t\txl: 'h-12 min-w-12 px-[calc(--spacing(4)-1px)] text-lg [&_svg:not([class*=\"size-\"])]:size-5',\n\t\t\t\txs:\n\t\t\t\t\t'h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-xs before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11 [&_svg:not([class*=\"size-\"])]:size-3.5',\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t'not-disabled:not-data-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs hover:bg-primary/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none data-disabled:hover:bg-primary data-disabled:active:inset-shadow-none',\n\t\t\t\tdestructive:\n\t\t\t\t\t'not-disabled:not-data-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs hover:bg-destructive/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none data-disabled:hover:bg-destructive data-disabled:active:inset-shadow-none',\n\t\t\t\t'destructive-outline':\n\t\t\t\t\t'border-destructive/40 bg-transparent bg-clip-padding text-destructive shadow-xs not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:not-data-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/60 [:hover,[data-pressed]]:bg-destructive/8 data-disabled:[:hover]:border-destructive/40 data-disabled:[:hover]:bg-transparent dark:data-disabled:[:hover]:bg-input/32',\n\t\t\t\tghost: 'border-transparent hover:bg-accent data-pressed:bg-accent data-disabled:hover:bg-transparent',\n\t\t\t\tlink: 'border-transparent underline-offset-4 hover:underline data-disabled:hover:no-underline',\n\t\t\t\toutline:\n\t\t\t\t\t'border-border bg-background bg-clip-padding shadow-xs not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:not-data-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-accent/50 dark:[:hover,[data-pressed]]:bg-input/64 data-disabled:[:hover]:bg-background dark:data-disabled:[:hover]:bg-input/32',\n\t\t\t\tsecondary:\n\t\t\t\t\t'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90 [:active,[data-pressed]]:bg-secondary/80 data-disabled:hover:bg-secondary data-disabled:active:bg-secondary',\n\t\t\t},\n\t\t\t// Opt-in: long or translated labels wrap onto more lines instead of\n\t\t\t// overflowing. The height becomes a minimum and the button may shrink\n\t\t\t// inside a flex row. Icon sizes ignore it (they have no label).\n\t\t\twrap: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'max-w-full min-w-0 shrink whitespace-normal text-center [overflow-wrap:anywhere]',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{ wrap: true, size: 'default', className: 'h-auto min-h-10 py-[calc(--spacing(2)-1px)]' },\n\t\t\t{ wrap: true, size: 'sm', className: 'h-auto min-h-8 py-[calc(--spacing(1.5)-1px)]' },\n\t\t\t{ wrap: true, size: 'xs', className: 'h-auto min-h-7 py-[calc(--spacing(1)-1px)]' },\n\t\t\t{ wrap: true, size: 'lg', className: 'h-auto min-h-11 py-[calc(--spacing(2.5)-1px)]' },\n\t\t\t{ wrap: true, size: 'xl', className: 'h-auto min-h-12 py-[calc(--spacing(3)-1px)]' },\n\t\t],\n\t},\n);\n\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n\tvariant?: VariantProps<typeof buttonVariants>['variant'];\n\tsize?: VariantProps<typeof buttonVariants>['size'];\n\t/** Disables tactile press scaling when motion would distract from the interaction. */\n\tstatic?: boolean;\n\t/**\n\t * Lets the label wrap onto several lines (long or translated copy) instead of\n\t * staying on one line and overflowing. The height becomes a minimum and the\n\t * button can shrink inside a flex row. Off by default.\n\t */\n\twrap?: boolean;\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n\t/**\n\t * Keeps the button focusable and hoverable while disabled, disabled with `aria-disabled` instead, so a tooltip\n\t * explaining why it is disabled can still open. `TooltipTrigger` sets it on a `Button` child.\n\t */\n\tfocusableWhenDisabled?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n\t({ className, variant, size, static: isStatic, wrap, asChild, focusableWhenDisabled, children, type = 'button', ...props }, ref) => {\n\t\tconst buttonClasses = cn(buttonVariants({ className, size, static: isStatic, variant, wrap }));\n\n\t\t// Base UI keeps a disabled button focusable, marks it `aria-disabled` and swallows the events a native disabled\n\t\t// button never receives, so a composed menu or dialog trigger cannot open and a consumer handler cannot run. It\n\t\t// renders the same element enabled or disabled, so toggling keeps focus and what the element holds.\n\t\tif (focusableWhenDisabled) {\n\t\t\treturn (\n\t\t\t\t<BaseButton\n\t\t\t\t\tref={ref}\n\t\t\t\t\tfocusableWhenDisabled\n\t\t\t\t\tnativeButton={!asChild}\n\t\t\t\t\trender={asChild && React.isValidElement(children) ? children : undefined}\n\t\t\t\t\ttype={asChild ? undefined : type}\n\t\t\t\t\tclassName={buttonClasses}\n\t\t\t\t\tdata-slot=\"button\"\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{asChild ? undefined : children}\n\t\t\t\t</BaseButton>\n\t\t\t);\n\t\t}\n\n\t\tif (asChild) {\n\t\t\treturn (\n\t\t\t\t<Slot ref={ref as React.Ref<HTMLElement>} className={buttonClasses} data-slot=\"button\" {...props}>\n\t\t\t\t\t{children}\n\t\t\t\t</Slot>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<button ref={ref} type={type} className={buttonClasses} data-slot=\"button\" {...props}>\n\t\t\t\t{children}\n\t\t\t</button>\n\t\t);\n\t},\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\nexport type { ButtonProps };\n"],"mappings":";;;;;;;;;;;;AAOA,MAAM,mDACL,gpBACA;CACC,iBAAiB;EAChB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,MAAM;CACP;CACA,UAAU;EACT,QAAQ;GACP,OAAO;GACP,MAAM;EACP;EACA,MAAM;GACL,SAAS;GACT,MAAM;GACN,WAAW;GACX,WAAW;GACX,WAAW;GACX,WACC;GACD,IAAI;GACJ,IACC;GACD,IAAI;GACJ,IACC;EACF;EACA,SAAS;GACR,SACC;GACD,aACC;GACD,uBACC;GACD,OAAO;GACP,MAAM;GACN,SACC;GACD,WACC;EACF;EAIA,MAAM;GACL,OAAO;GACP,MAAM;EACP;CACD;CACA,kBAAkB;EACjB;GAAE,MAAM;GAAM,MAAM;GAAW,WAAW;EAA8C;EACxF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAA+C;EACpF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAA6C;EAClF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAAgD;EACrF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAA8C;CACpF;AACD,CACD;AAsBA,MAAM,SAASA,MAAM,YACnB,EAAE,WAAW,SAAS,MAAM,QAAQ,UAAU,MAAM,SAAS,uBAAuB,UAAU,OAAO,UAAU,GAAG,SAAS,QAAQ;CACnI,MAAM,gBAAgBC,iBAAG,eAAe;EAAE;EAAW;EAAM,QAAQ;EAAU;EAAS;CAAK,CAAC,CAAC;CAK7F,IAAI,uBACH,OACC,2CAACC,8BAAD;EACM;EACL;EACA,cAAc,CAAC;EACf,QAAQ,WAAWF,MAAM,eAAe,QAAQ,IAAI,WAAW;EAC/D,MAAM,UAAU,SAAY;EAC5B,WAAW;EACX,aAAU;EACV,GAAI;YAEH,UAAU,SAAY;CACZ;CAId,IAAI,SACH,OACC,2CAACG,mBAAD;EAAW;EAA+B,WAAW;EAAe,aAAU;EAAS,GAAI;EACzF;CACI;CAIR,OACC,2CAAC,UAAD;EAAa;EAAW;EAAM,WAAW;EAAe,aAAU;EAAS,GAAI;EAC7E;CACM;AAEV,CACD;AACA,OAAO,cAAc"}
|
|
@@ -1,2 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
//#region src/components/button.d.ts
|
|
4
|
+
declare const buttonVariants: (props?: ({
|
|
5
|
+
static?: boolean | null | undefined;
|
|
6
|
+
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "sm" | "xl" | "xs" | null | undefined;
|
|
7
|
+
variant?: "default" | "destructive" | "destructive-outline" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
|
|
8
|
+
wrap?: boolean | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
11
|
+
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
12
|
+
size?: VariantProps<typeof buttonVariants>['size'];
|
|
13
|
+
/** Disables tactile press scaling when motion would distract from the interaction. */
|
|
14
|
+
static?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Lets the label wrap onto several lines (long or translated copy) instead of
|
|
17
|
+
* staying on one line and overflowing. The height becomes a minimum and the
|
|
18
|
+
* button can shrink inside a flex row. Off by default.
|
|
19
|
+
*/
|
|
20
|
+
wrap?: boolean;
|
|
21
|
+
/** When true, merges props onto the child element instead of rendering a button */
|
|
22
|
+
asChild?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Keeps the button focusable and hoverable while disabled, disabled with `aria-disabled` instead, so a tooltip
|
|
25
|
+
* explaining why it is disabled can still open. `TooltipTrigger` sets it on a `Button` child.
|
|
26
|
+
*/
|
|
27
|
+
focusableWhenDisabled?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Button, type ButtonProps, buttonVariants };
|
|
32
|
+
//# sourceMappingURL=button.d.cts.map
|
|
@@ -1,2 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
//#region src/components/button.d.ts
|
|
4
|
+
declare const buttonVariants: (props?: ({
|
|
5
|
+
static?: boolean | null | undefined;
|
|
6
|
+
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "sm" | "xl" | "xs" | null | undefined;
|
|
7
|
+
variant?: "default" | "destructive" | "destructive-outline" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
|
|
8
|
+
wrap?: boolean | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
11
|
+
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
12
|
+
size?: VariantProps<typeof buttonVariants>['size'];
|
|
13
|
+
/** Disables tactile press scaling when motion would distract from the interaction. */
|
|
14
|
+
static?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Lets the label wrap onto several lines (long or translated copy) instead of
|
|
17
|
+
* staying on one line and overflowing. The height becomes a minimum and the
|
|
18
|
+
* button can shrink inside a flex row. Off by default.
|
|
19
|
+
*/
|
|
20
|
+
wrap?: boolean;
|
|
21
|
+
/** When true, merges props onto the child element instead of rendering a button */
|
|
22
|
+
asChild?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Keeps the button focusable and hoverable while disabled, disabled with `aria-disabled` instead, so a tooltip
|
|
25
|
+
* explaining why it is disabled can still open. `TooltipTrigger` sets it on a `Button` child.
|
|
26
|
+
*/
|
|
27
|
+
focusableWhenDisabled?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Button, type ButtonProps, buttonVariants };
|
|
32
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -3,18 +3,20 @@ import { t as cn } from "../utils-BkMLyah9.js";
|
|
|
3
3
|
import { t as Slot } from "../slot-EL8zfLG0.js";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Button as Button$1 } from "@base-ui/react/button";
|
|
6
7
|
import { cva } from "class-variance-authority";
|
|
7
8
|
|
|
8
9
|
//#region src/components/button.tsx
|
|
9
|
-
const buttonVariants = cva("[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-
|
|
10
|
+
const buttonVariants = cva("[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md border font-medium text-sm outline-none transition-[box-shadow,scale] duration-(--duration-moderate) ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-64 data-disabled:cursor-not-allowed data-disabled:opacity-64 motion-reduce:transition-shadow [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
10
11
|
defaultVariants: {
|
|
11
12
|
size: "default",
|
|
12
13
|
static: false,
|
|
13
|
-
variant: "default"
|
|
14
|
+
variant: "default",
|
|
15
|
+
wrap: false
|
|
14
16
|
},
|
|
15
17
|
variants: {
|
|
16
18
|
static: {
|
|
17
|
-
false: "motion-safe:active:not-disabled:scale-[0.96]",
|
|
19
|
+
false: "motion-safe:active:not-disabled:not-data-disabled:scale-[0.96]",
|
|
18
20
|
true: null
|
|
19
21
|
},
|
|
20
22
|
size: {
|
|
@@ -30,25 +32,67 @@ const buttonVariants = cva("[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor
|
|
|
30
32
|
xs: "h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-xs before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11 [&_svg:not([class*=\"size-\"])]:size-3.5"
|
|
31
33
|
},
|
|
32
34
|
variant: {
|
|
33
|
-
default: "not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs hover:bg-primary/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none",
|
|
34
|
-
destructive: "not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs hover:bg-destructive/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none",
|
|
35
|
-
"destructive-outline": "border-destructive/40 bg-transparent bg-clip-padding text-destructive shadow-xs not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/60 [:hover,[data-pressed]]:bg-destructive/8",
|
|
36
|
-
ghost: "border-transparent hover:bg-accent data-pressed:bg-accent",
|
|
37
|
-
link: "border-transparent underline-offset-4 hover:underline",
|
|
38
|
-
outline: "border-border bg-background bg-clip-padding shadow-xs not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-accent/50 dark:[:hover,[data-pressed]]:bg-input/64",
|
|
39
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90 [:active,[data-pressed]]:bg-secondary/80"
|
|
35
|
+
default: "not-disabled:not-data-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs hover:bg-primary/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none data-disabled:hover:bg-primary data-disabled:active:inset-shadow-none",
|
|
36
|
+
destructive: "not-disabled:not-data-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs hover:bg-destructive/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none data-disabled:hover:bg-destructive data-disabled:active:inset-shadow-none",
|
|
37
|
+
"destructive-outline": "border-destructive/40 bg-transparent bg-clip-padding text-destructive shadow-xs not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:not-data-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/60 [:hover,[data-pressed]]:bg-destructive/8 data-disabled:[:hover]:border-destructive/40 data-disabled:[:hover]:bg-transparent dark:data-disabled:[:hover]:bg-input/32",
|
|
38
|
+
ghost: "border-transparent hover:bg-accent data-pressed:bg-accent data-disabled:hover:bg-transparent",
|
|
39
|
+
link: "border-transparent underline-offset-4 hover:underline data-disabled:hover:no-underline",
|
|
40
|
+
outline: "border-border bg-background bg-clip-padding shadow-xs not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:not-data-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-accent/50 dark:[:hover,[data-pressed]]:bg-input/64 data-disabled:[:hover]:bg-background dark:data-disabled:[:hover]:bg-input/32",
|
|
41
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90 [:active,[data-pressed]]:bg-secondary/80 data-disabled:hover:bg-secondary data-disabled:active:bg-secondary"
|
|
42
|
+
},
|
|
43
|
+
wrap: {
|
|
44
|
+
false: null,
|
|
45
|
+
true: "max-w-full min-w-0 shrink whitespace-normal text-center [overflow-wrap:anywhere]"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
compoundVariants: [
|
|
49
|
+
{
|
|
50
|
+
wrap: true,
|
|
51
|
+
size: "default",
|
|
52
|
+
className: "h-auto min-h-10 py-[calc(--spacing(2)-1px)]"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
wrap: true,
|
|
56
|
+
size: "sm",
|
|
57
|
+
className: "h-auto min-h-8 py-[calc(--spacing(1.5)-1px)]"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
wrap: true,
|
|
61
|
+
size: "xs",
|
|
62
|
+
className: "h-auto min-h-7 py-[calc(--spacing(1)-1px)]"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
wrap: true,
|
|
66
|
+
size: "lg",
|
|
67
|
+
className: "h-auto min-h-11 py-[calc(--spacing(2.5)-1px)]"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
wrap: true,
|
|
71
|
+
size: "xl",
|
|
72
|
+
className: "h-auto min-h-12 py-[calc(--spacing(3)-1px)]"
|
|
40
73
|
}
|
|
41
|
-
|
|
74
|
+
]
|
|
42
75
|
});
|
|
43
|
-
const Button = React$1.forwardRef(({ className, variant, size, static: isStatic, asChild, children, type = "button", ...props }, ref) => {
|
|
76
|
+
const Button = React$1.forwardRef(({ className, variant, size, static: isStatic, wrap, asChild, focusableWhenDisabled, children, type = "button", ...props }, ref) => {
|
|
44
77
|
const buttonClasses = cn(buttonVariants({
|
|
45
78
|
className,
|
|
46
79
|
size,
|
|
47
80
|
static: isStatic,
|
|
48
|
-
variant
|
|
81
|
+
variant,
|
|
82
|
+
wrap
|
|
49
83
|
}));
|
|
50
|
-
|
|
51
|
-
|
|
84
|
+
if (focusableWhenDisabled) return /* @__PURE__ */ jsx(Button$1, {
|
|
85
|
+
ref,
|
|
86
|
+
focusableWhenDisabled: true,
|
|
87
|
+
nativeButton: !asChild,
|
|
88
|
+
render: asChild && React$1.isValidElement(children) ? children : void 0,
|
|
89
|
+
type: asChild ? void 0 : type,
|
|
90
|
+
className: buttonClasses,
|
|
91
|
+
"data-slot": "button",
|
|
92
|
+
...props,
|
|
93
|
+
children: asChild ? void 0 : children
|
|
94
|
+
});
|
|
95
|
+
if (asChild) return /* @__PURE__ */ jsx(Slot, {
|
|
52
96
|
ref,
|
|
53
97
|
className: buttonClasses,
|
|
54
98
|
"data-slot": "button",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","names":["React","
|
|
1
|
+
{"version":3,"file":"button.js","names":["React","BaseButton"],"sources":["../../src/components/button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button as BaseButton } from '@base-ui/react/button';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { Slot } from '../lib/slot';\nimport { cn } from '../lib/utils';\n\nconst buttonVariants = cva(\n\t\"[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md border font-medium text-sm outline-none transition-[box-shadow,scale] duration-(--duration-moderate) ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-64 data-disabled:cursor-not-allowed data-disabled:opacity-64 motion-reduce:transition-shadow [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tsize: 'default',\n\t\t\tstatic: false,\n\t\t\tvariant: 'default',\n\t\t\twrap: false,\n\t\t},\n\t\tvariants: {\n\t\t\tstatic: {\n\t\t\t\tfalse: 'motion-safe:active:not-disabled:not-data-disabled:scale-[0.96]',\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-10 min-w-10 px-[calc(--spacing(3)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11',\n\t\t\t\ticon: 'size-10 pointer-coarse:size-11',\n\t\t\t\t'icon-lg': 'size-11',\n\t\t\t\t'icon-sm': 'size-8 pointer-coarse:size-11',\n\t\t\t\t'icon-xl': 'size-11 [&_svg:not([class*=\"size-\"])]:size-5',\n\t\t\t\t'icon-xs':\n\t\t\t\t\t'size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:size-11 not-in-data-[slot=input-group]:[&_svg:not([class*=\"size-\"])]:size-4',\n\t\t\t\tlg: 'h-11 min-w-11 px-[calc(--spacing(3.5)-1px)]',\n\t\t\t\tsm:\n\t\t\t\t\t'h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11',\n\t\t\t\txl: 'h-12 min-w-12 px-[calc(--spacing(4)-1px)] text-lg [&_svg:not([class*=\"size-\"])]:size-5',\n\t\t\t\txs:\n\t\t\t\t\t'h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-xs before:rounded-[calc(var(--radius-md)-1px)] pointer-coarse:min-h-11 pointer-coarse:min-w-11 [&_svg:not([class*=\"size-\"])]:size-3.5',\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t'not-disabled:not-data-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs hover:bg-primary/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none data-disabled:hover:bg-primary data-disabled:active:inset-shadow-none',\n\t\t\t\tdestructive:\n\t\t\t\t\t'not-disabled:not-data-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs hover:bg-destructive/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none data-disabled:hover:bg-destructive data-disabled:active:inset-shadow-none',\n\t\t\t\t'destructive-outline':\n\t\t\t\t\t'border-destructive/40 bg-transparent bg-clip-padding text-destructive shadow-xs not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:not-data-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/60 [:hover,[data-pressed]]:bg-destructive/8 data-disabled:[:hover]:border-destructive/40 data-disabled:[:hover]:bg-transparent dark:data-disabled:[:hover]:bg-input/32',\n\t\t\t\tghost: 'border-transparent hover:bg-accent data-pressed:bg-accent data-disabled:hover:bg-transparent',\n\t\t\t\tlink: 'border-transparent underline-offset-4 hover:underline data-disabled:hover:no-underline',\n\t\t\t\toutline:\n\t\t\t\t\t'border-border bg-background bg-clip-padding shadow-xs not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:not-data-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-data-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,[data-disabled],:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-accent/50 dark:[:hover,[data-pressed]]:bg-input/64 data-disabled:[:hover]:bg-background dark:data-disabled:[:hover]:bg-input/32',\n\t\t\t\tsecondary:\n\t\t\t\t\t'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90 [:active,[data-pressed]]:bg-secondary/80 data-disabled:hover:bg-secondary data-disabled:active:bg-secondary',\n\t\t\t},\n\t\t\t// Opt-in: long or translated labels wrap onto more lines instead of\n\t\t\t// overflowing. The height becomes a minimum and the button may shrink\n\t\t\t// inside a flex row. Icon sizes ignore it (they have no label).\n\t\t\twrap: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'max-w-full min-w-0 shrink whitespace-normal text-center [overflow-wrap:anywhere]',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{ wrap: true, size: 'default', className: 'h-auto min-h-10 py-[calc(--spacing(2)-1px)]' },\n\t\t\t{ wrap: true, size: 'sm', className: 'h-auto min-h-8 py-[calc(--spacing(1.5)-1px)]' },\n\t\t\t{ wrap: true, size: 'xs', className: 'h-auto min-h-7 py-[calc(--spacing(1)-1px)]' },\n\t\t\t{ wrap: true, size: 'lg', className: 'h-auto min-h-11 py-[calc(--spacing(2.5)-1px)]' },\n\t\t\t{ wrap: true, size: 'xl', className: 'h-auto min-h-12 py-[calc(--spacing(3)-1px)]' },\n\t\t],\n\t},\n);\n\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n\tvariant?: VariantProps<typeof buttonVariants>['variant'];\n\tsize?: VariantProps<typeof buttonVariants>['size'];\n\t/** Disables tactile press scaling when motion would distract from the interaction. */\n\tstatic?: boolean;\n\t/**\n\t * Lets the label wrap onto several lines (long or translated copy) instead of\n\t * staying on one line and overflowing. The height becomes a minimum and the\n\t * button can shrink inside a flex row. Off by default.\n\t */\n\twrap?: boolean;\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n\t/**\n\t * Keeps the button focusable and hoverable while disabled, disabled with `aria-disabled` instead, so a tooltip\n\t * explaining why it is disabled can still open. `TooltipTrigger` sets it on a `Button` child.\n\t */\n\tfocusableWhenDisabled?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n\t({ className, variant, size, static: isStatic, wrap, asChild, focusableWhenDisabled, children, type = 'button', ...props }, ref) => {\n\t\tconst buttonClasses = cn(buttonVariants({ className, size, static: isStatic, variant, wrap }));\n\n\t\t// Base UI keeps a disabled button focusable, marks it `aria-disabled` and swallows the events a native disabled\n\t\t// button never receives, so a composed menu or dialog trigger cannot open and a consumer handler cannot run. It\n\t\t// renders the same element enabled or disabled, so toggling keeps focus and what the element holds.\n\t\tif (focusableWhenDisabled) {\n\t\t\treturn (\n\t\t\t\t<BaseButton\n\t\t\t\t\tref={ref}\n\t\t\t\t\tfocusableWhenDisabled\n\t\t\t\t\tnativeButton={!asChild}\n\t\t\t\t\trender={asChild && React.isValidElement(children) ? children : undefined}\n\t\t\t\t\ttype={asChild ? undefined : type}\n\t\t\t\t\tclassName={buttonClasses}\n\t\t\t\t\tdata-slot=\"button\"\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{asChild ? undefined : children}\n\t\t\t\t</BaseButton>\n\t\t\t);\n\t\t}\n\n\t\tif (asChild) {\n\t\t\treturn (\n\t\t\t\t<Slot ref={ref as React.Ref<HTMLElement>} className={buttonClasses} data-slot=\"button\" {...props}>\n\t\t\t\t\t{children}\n\t\t\t\t</Slot>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<button ref={ref} type={type} className={buttonClasses} data-slot=\"button\" {...props}>\n\t\t\t\t{children}\n\t\t\t</button>\n\t\t);\n\t},\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\nexport type { ButtonProps };\n"],"mappings":";;;;;;;;;AAOA,MAAM,iBAAiB,IACtB,gpBACA;CACC,iBAAiB;EAChB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,MAAM;CACP;CACA,UAAU;EACT,QAAQ;GACP,OAAO;GACP,MAAM;EACP;EACA,MAAM;GACL,SAAS;GACT,MAAM;GACN,WAAW;GACX,WAAW;GACX,WAAW;GACX,WACC;GACD,IAAI;GACJ,IACC;GACD,IAAI;GACJ,IACC;EACF;EACA,SAAS;GACR,SACC;GACD,aACC;GACD,uBACC;GACD,OAAO;GACP,MAAM;GACN,SACC;GACD,WACC;EACF;EAIA,MAAM;GACL,OAAO;GACP,MAAM;EACP;CACD;CACA,kBAAkB;EACjB;GAAE,MAAM;GAAM,MAAM;GAAW,WAAW;EAA8C;EACxF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAA+C;EACpF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAA6C;EAClF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAAgD;EACrF;GAAE,MAAM;GAAM,MAAM;GAAM,WAAW;EAA8C;CACpF;AACD,CACD;AAsBA,MAAM,SAASA,QAAM,YACnB,EAAE,WAAW,SAAS,MAAM,QAAQ,UAAU,MAAM,SAAS,uBAAuB,UAAU,OAAO,UAAU,GAAG,SAAS,QAAQ;CACnI,MAAM,gBAAgB,GAAG,eAAe;EAAE;EAAW;EAAM,QAAQ;EAAU;EAAS;CAAK,CAAC,CAAC;CAK7F,IAAI,uBACH,OACC,oBAACC,UAAD;EACM;EACL;EACA,cAAc,CAAC;EACf,QAAQ,WAAWD,QAAM,eAAe,QAAQ,IAAI,WAAW;EAC/D,MAAM,UAAU,SAAY;EAC5B,WAAW;EACX,aAAU;EACV,GAAI;YAEH,UAAU,SAAY;CACZ;CAId,IAAI,SACH,OACC,oBAAC,MAAD;EAAW;EAA+B,WAAW;EAAe,aAAU;EAAS,GAAI;EACzF;CACI;CAIR,OACC,oBAAC,UAAD;EAAa;EAAW;EAAM,WAAW;EAAe,aAAU;EAAS,GAAI;EAC7E;CACM;AAEV,CACD;AACA,OAAO,cAAc"}
|
|
@@ -14,14 +14,20 @@ function CalendarHeader() {
|
|
|
14
14
|
children: [
|
|
15
15
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
|
|
16
16
|
slot: "previous",
|
|
17
|
-
className: "text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n items-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]",
|
|
18
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronLeftIcon, {
|
|
17
|
+
className: "text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n items-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]\n data-disabled:pointer-events-none data-disabled:opacity-30",
|
|
18
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronLeftIcon, {
|
|
19
|
+
size: 16,
|
|
20
|
+
className: "rtl:rotate-180"
|
|
21
|
+
})
|
|
19
22
|
}),
|
|
20
23
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Heading, { className: "grow text-center text-sm font-medium" }),
|
|
21
24
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
|
|
22
25
|
slot: "next",
|
|
23
|
-
className: "text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n items-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]",
|
|
24
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronRightIcon, {
|
|
26
|
+
className: "text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n items-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]\n data-disabled:pointer-events-none data-disabled:opacity-30",
|
|
27
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronRightIcon, {
|
|
28
|
+
size: 16,
|
|
29
|
+
className: "rtl:rotate-180"
|
|
30
|
+
})
|
|
25
31
|
})
|
|
26
32
|
]
|
|
27
33
|
});
|
|
@@ -29,7 +35,7 @@ function CalendarHeader() {
|
|
|
29
35
|
function CalendarGridComponent({ isRange = false }) {
|
|
30
36
|
const now = (0, _internationalized_date.today)((0, _internationalized_date.getLocalTimeZone)());
|
|
31
37
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.CalendarGrid, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.CalendarGridHeader, { children: (day) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.CalendarHeaderCell, {
|
|
32
|
-
className: "text-muted-foreground/80 size-9 rounded-md p-0 text-xs font-medium",
|
|
38
|
+
className: "text-muted-foreground/80 size-9 rounded-md p-0 text-xs font-medium tabular-nums",
|
|
33
39
|
children: day
|
|
34
40
|
}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.CalendarGridBody, {
|
|
35
41
|
className: "[&_td]:px-0 [&_td]:py-px",
|
|
@@ -37,8 +43,8 @@ function CalendarGridComponent({ isRange = false }) {
|
|
|
37
43
|
date,
|
|
38
44
|
className: require_utils.cn(`text-foreground data-hovered:bg-accent data-selected:bg-primary data-hovered:text-foreground
|
|
39
45
|
data-selected:text-primary-foreground data-focus-visible:ring-ring/50 relative flex size-9 items-center
|
|
40
|
-
justify-center rounded-md p-0 text-sm font-normal whitespace-nowrap
|
|
41
|
-
[transition-property:color,background-color,border-radius,box-shadow] duration-
|
|
46
|
+
justify-center rounded-md p-0 text-sm font-normal whitespace-nowrap tabular-nums
|
|
47
|
+
[transition-property:color,background-color,border-radius,box-shadow] duration-(--duration-moderate) outline-none
|
|
42
48
|
data-disabled:pointer-events-none data-disabled:opacity-30 data-focus-visible:z-10
|
|
43
49
|
data-focus-visible:ring-[3px] data-unavailable:pointer-events-none data-unavailable:line-through
|
|
44
50
|
data-unavailable:opacity-30`, isRange && `data-selected:bg-accent data-selected:text-foreground data-invalid:data-selection-end:bg-destructive
|
|
@@ -46,7 +52,7 @@ function CalendarGridComponent({ isRange = false }) {
|
|
|
46
52
|
data-selection-start:bg-primary data-selection-end:text-primary-foreground
|
|
47
53
|
data-selection-start:text-primary-foreground data-invalid:bg-red-100 data-selected:rounded-none
|
|
48
54
|
data-selection-end:rounded-e-md data-invalid:data-selection-end:text-white
|
|
49
|
-
data-selection-start:rounded-s-md data-invalid:data-selection-start:text-white`, date.compare(now) === 0 && require_utils.cn(`after:bg-primary after:pointer-events-none after:absolute after:
|
|
55
|
+
data-selection-start:rounded-s-md data-invalid:data-selection-start:text-white`, date.compare(now) === 0 && require_utils.cn(`after:bg-primary after:pointer-events-none after:absolute after:left-1/2 after:bottom-1 after:z-10
|
|
50
56
|
after:size-[3px] after:-translate-x-1/2 after:rounded-full`, isRange ? "data-selection-end:after:bg-background data-selection-start:after:bg-background" : "data-selected:after:bg-background"))
|
|
51
57
|
})
|
|
52
58
|
})] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-rac.cjs","names":["Button","ChevronLeftIcon","HeadingRac","ChevronRightIcon","CalendarGridRac","CalendarGridHeaderRac","CalendarHeaderCellRac","CalendarGridBodyRac","CalendarCellRac","cn","CalendarRac","RangeCalendarRac"],"sources":["../../src/components/calendar-rac.tsx"],"sourcesContent":["'use client';\n\nimport { ComponentProps } from 'react';\nimport { getLocalTimeZone, today } from '@internationalized/date';\nimport { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';\nimport {\n\tButton,\n\tCalendarCell as CalendarCellRac,\n\tCalendarGridBody as CalendarGridBodyRac,\n\tCalendarGridHeader as CalendarGridHeaderRac,\n\tCalendarGrid as CalendarGridRac,\n\tCalendarHeaderCell as CalendarHeaderCellRac,\n\tCalendar as CalendarRac,\n\tcomposeRenderProps,\n\tHeading as HeadingRac,\n\tRangeCalendar as RangeCalendarRac,\n} from 'react-aria-components';\n\nimport { cn } from '../lib/utils';\n\ninterface BaseCalendarProps {\n\tclassName?: string;\n}\n\ntype CalendarProps = ComponentProps<typeof CalendarRac> & BaseCalendarProps;\ntype RangeCalendarProps = ComponentProps<typeof RangeCalendarRac> & BaseCalendarProps;\n\nfunction CalendarHeader() {\n\treturn (\n\t\t<header className='flex w-full items-center gap-1 pb-1'>\n\t\t\t<Button\n\t\t\t\tslot='previous'\n\t\t\t\tclassName='text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n\t\t\t\t\titems-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]'\n\t\t\t>\n\t\t\t\t<ChevronLeftIcon size={16} />\n\t\t\t</Button>\n\t\t\t<HeadingRac className='grow text-center text-sm font-medium' />\n\t\t\t<Button\n\t\t\t\tslot='next'\n\t\t\t\tclassName='text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n\t\t\t\t\titems-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]'\n\t\t\t>\n\t\t\t\t<ChevronRightIcon size={16} />\n\t\t\t</Button>\n\t\t</header>\n\t);\n}\n\nfunction CalendarGridComponent({ isRange = false }: { isRange?: boolean }) {\n\tconst now = today(getLocalTimeZone());\n\n\treturn (\n\t\t<CalendarGridRac>\n\t\t\t<CalendarGridHeaderRac>\n\t\t\t\t{(day) => (\n\t\t\t\t\t<CalendarHeaderCellRac className='text-muted-foreground/80 size-9 rounded-md p-0 text-xs font-medium'>\n\t\t\t\t\t\t{day}\n\t\t\t\t\t</CalendarHeaderCellRac>\n\t\t\t\t)}\n\t\t\t</CalendarGridHeaderRac>\n\t\t\t<CalendarGridBodyRac className='[&_td]:px-0 [&_td]:py-px'>\n\t\t\t\t{(date) => (\n\t\t\t\t\t<CalendarCellRac\n\t\t\t\t\t\tdate={date}\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t`text-foreground data-hovered:bg-accent data-selected:bg-primary data-hovered:text-foreground\n\t\t\t\t\t\t\tdata-selected:text-primary-foreground data-focus-visible:ring-ring/50 relative flex size-9 items-center\n\t\t\t\t\t\t\tjustify-center rounded-md p-0 text-sm font-normal whitespace-nowrap\n\t\t\t\t\t\t\t[transition-property:color,background-color,border-radius,box-shadow] duration-
|
|
1
|
+
{"version":3,"file":"calendar-rac.cjs","names":["Button","ChevronLeftIcon","HeadingRac","ChevronRightIcon","CalendarGridRac","CalendarGridHeaderRac","CalendarHeaderCellRac","CalendarGridBodyRac","CalendarCellRac","cn","CalendarRac","RangeCalendarRac"],"sources":["../../src/components/calendar-rac.tsx"],"sourcesContent":["'use client';\n\nimport { ComponentProps } from 'react';\nimport { getLocalTimeZone, today } from '@internationalized/date';\nimport { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';\nimport {\n\tButton,\n\tCalendarCell as CalendarCellRac,\n\tCalendarGridBody as CalendarGridBodyRac,\n\tCalendarGridHeader as CalendarGridHeaderRac,\n\tCalendarGrid as CalendarGridRac,\n\tCalendarHeaderCell as CalendarHeaderCellRac,\n\tCalendar as CalendarRac,\n\tcomposeRenderProps,\n\tHeading as HeadingRac,\n\tRangeCalendar as RangeCalendarRac,\n} from 'react-aria-components';\n\nimport { cn } from '../lib/utils';\n\ninterface BaseCalendarProps {\n\tclassName?: string;\n}\n\ntype CalendarProps = ComponentProps<typeof CalendarRac> & BaseCalendarProps;\ntype RangeCalendarProps = ComponentProps<typeof RangeCalendarRac> & BaseCalendarProps;\n\nfunction CalendarHeader() {\n\treturn (\n\t\t<header className='flex w-full items-center gap-1 pb-1'>\n\t\t\t<Button\n\t\t\t\tslot='previous'\n\t\t\t\tclassName='text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n\t\t\t\t\titems-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]\n\t\t\t\t\tdata-disabled:pointer-events-none data-disabled:opacity-30'\n\t\t\t>\n\t\t\t\t<ChevronLeftIcon size={16} className='rtl:rotate-180' />\n\t\t\t</Button>\n\t\t\t<HeadingRac className='grow text-center text-sm font-medium' />\n\t\t\t<Button\n\t\t\t\tslot='next'\n\t\t\t\tclassName='text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n\t\t\t\t\titems-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]\n\t\t\t\t\tdata-disabled:pointer-events-none data-disabled:opacity-30'\n\t\t\t>\n\t\t\t\t<ChevronRightIcon size={16} className='rtl:rotate-180' />\n\t\t\t</Button>\n\t\t</header>\n\t);\n}\n\nfunction CalendarGridComponent({ isRange = false }: { isRange?: boolean }) {\n\tconst now = today(getLocalTimeZone());\n\n\treturn (\n\t\t<CalendarGridRac>\n\t\t\t<CalendarGridHeaderRac>\n\t\t\t\t{(day) => (\n\t\t\t\t\t<CalendarHeaderCellRac className='text-muted-foreground/80 size-9 rounded-md p-0 text-xs font-medium tabular-nums'>\n\t\t\t\t\t\t{day}\n\t\t\t\t\t</CalendarHeaderCellRac>\n\t\t\t\t)}\n\t\t\t</CalendarGridHeaderRac>\n\t\t\t<CalendarGridBodyRac className='[&_td]:px-0 [&_td]:py-px'>\n\t\t\t\t{(date) => (\n\t\t\t\t\t<CalendarCellRac\n\t\t\t\t\t\tdate={date}\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t`text-foreground data-hovered:bg-accent data-selected:bg-primary data-hovered:text-foreground\n\t\t\t\t\t\t\tdata-selected:text-primary-foreground data-focus-visible:ring-ring/50 relative flex size-9 items-center\n\t\t\t\t\t\t\tjustify-center rounded-md p-0 text-sm font-normal whitespace-nowrap tabular-nums\n\t\t\t\t\t\t\t[transition-property:color,background-color,border-radius,box-shadow] duration-(--duration-moderate) outline-none\n\t\t\t\t\t\t\tdata-disabled:pointer-events-none data-disabled:opacity-30 data-focus-visible:z-10\n\t\t\t\t\t\t\tdata-focus-visible:ring-[3px] data-unavailable:pointer-events-none data-unavailable:line-through\n\t\t\t\t\t\t\tdata-unavailable:opacity-30`,\n\t\t\t\t\t\t\t// Range-specific styles\n\t\t\t\t\t\t\tisRange &&\n\t\t\t\t\t\t\t\t`data-selected:bg-accent data-selected:text-foreground data-invalid:data-selection-end:bg-destructive\n\t\t\t\t\t\t\t\tdata-invalid:data-selection-start:bg-destructive data-selection-end:bg-primary\n\t\t\t\t\t\t\t\tdata-selection-start:bg-primary data-selection-end:text-primary-foreground\n\t\t\t\t\t\t\t\tdata-selection-start:text-primary-foreground data-invalid:bg-red-100 data-selected:rounded-none\n\t\t\t\t\t\t\t\tdata-selection-end:rounded-e-md data-invalid:data-selection-end:text-white\n\t\t\t\t\t\t\t\tdata-selection-start:rounded-s-md data-invalid:data-selection-start:text-white`,\n\t\t\t\t\t\t\t// Today indicator styles\n\t\t\t\t\t\t\tdate.compare(now) === 0 &&\n\t\t\t\t\t\t\t\tcn(\n\t\t\t\t\t\t\t\t\t`after:bg-primary after:pointer-events-none after:absolute after:left-1/2 after:bottom-1 after:z-10\n\t\t\t\t\t\t\t\t\tafter:size-[3px] after:-translate-x-1/2 after:rounded-full`,\n\t\t\t\t\t\t\t\t\tisRange\n\t\t\t\t\t\t\t\t\t\t? 'data-selection-end:after:bg-background data-selection-start:after:bg-background'\n\t\t\t\t\t\t\t\t\t\t: 'data-selected:after:bg-background',\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</CalendarGridBodyRac>\n\t\t</CalendarGridRac>\n\t);\n}\n\nfunction Calendar({ className, ...props }: CalendarProps) {\n\treturn (\n\t\t<CalendarRac {...props} className={composeRenderProps(className, (className) => cn('w-fit', className))}>\n\t\t\t<CalendarHeader />\n\t\t\t<CalendarGridComponent />\n\t\t</CalendarRac>\n\t);\n}\n\nfunction RangeCalendar({ className, ...props }: RangeCalendarProps) {\n\treturn (\n\t\t<RangeCalendarRac {...props} className={composeRenderProps(className, (className) => cn('w-fit', className))}>\n\t\t\t<CalendarHeader />\n\t\t\t<CalendarGridComponent isRange />\n\t\t</RangeCalendarRac>\n\t);\n}\n\nexport { Calendar, RangeCalendar };\n"],"mappings":";;;;;;;;;;AA2BA,SAAS,iBAAiB;CACzB,OACC,4CAAC,UAAD;EAAQ,WAAU;YAAlB;GACC,2CAACA,8BAAD;IACC,MAAK;IACL,WAAU;cAIV,2CAACC,8BAAD;KAAiB,MAAM;KAAI,WAAU;IAAkB;GAChD;GACR,2CAACC,+BAAD,EAAY,WAAU,uCAAwC;GAC9D,2CAACF,8BAAD;IACC,MAAK;IACL,WAAU;cAIV,2CAACG,+BAAD;KAAkB,MAAM;KAAI,WAAU;IAAkB;GACjD;EACD;;AAEV;AAEA,SAAS,sBAAsB,EAAE,UAAU,SAAgC;CAC1E,MAAM,uFAA6B,CAAC;CAEpC,OACC,4CAACC,oCAAD,aACC,2CAACC,0CAAD,aACG,QACD,2CAACC,0CAAD;EAAuB,WAAU;YAC/B;CACqB,GAEF,IACvB,2CAACC,wCAAD;EAAqB,WAAU;aAC5B,SACD,2CAACC,oCAAD;GACO;GACN,WAAWC,iBACV;;;;;;qCAQA,WACC;;;;;yFAOD,KAAK,QAAQ,GAAG,MAAM,KACrBA,iBACC;sEAEA,UACG,oFACA,mCACJ,CACF;EACA;CAEkB,EACL;AAEnB;AAEA,SAAS,SAAS,EAAE,WAAW,GAAG,SAAwB;CACzD,OACC,4CAACC,gCAAD;EAAa,GAAI;EAAO,yDAA8B,YAAY,cAAcD,iBAAG,SAAS,SAAS,CAAC;YAAtG,CACC,2CAAC,gBAAD,CAAiB,IACjB,2CAAC,uBAAD,CAAwB,EACZ;;AAEf;AAEA,SAAS,cAAc,EAAE,WAAW,GAAG,SAA6B;CACnE,OACC,4CAACE,qCAAD;EAAkB,GAAI;EAAO,yDAA8B,YAAY,cAAcF,iBAAG,SAAS,SAAS,CAAC;YAA3G,CACC,2CAAC,gBAAD,CAAiB,IACjB,2CAAC,uBAAD,EAAuB,cAAS,EACf;;AAEpB"}
|
|
@@ -13,14 +13,20 @@ function CalendarHeader() {
|
|
|
13
13
|
children: [
|
|
14
14
|
/* @__PURE__ */ jsx(Button, {
|
|
15
15
|
slot: "previous",
|
|
16
|
-
className: "text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n items-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]",
|
|
17
|
-
children: /* @__PURE__ */ jsx(ChevronLeftIcon, {
|
|
16
|
+
className: "text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n items-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]\n data-disabled:pointer-events-none data-disabled:opacity-30",
|
|
17
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon, {
|
|
18
|
+
size: 16,
|
|
19
|
+
className: "rtl:rotate-180"
|
|
20
|
+
})
|
|
18
21
|
}),
|
|
19
22
|
/* @__PURE__ */ jsx(Heading, { className: "grow text-center text-sm font-medium" }),
|
|
20
23
|
/* @__PURE__ */ jsx(Button, {
|
|
21
24
|
slot: "next",
|
|
22
|
-
className: "text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n items-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]",
|
|
23
|
-
children: /* @__PURE__ */ jsx(ChevronRightIcon, {
|
|
25
|
+
className: "text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n items-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]\n data-disabled:pointer-events-none data-disabled:opacity-30",
|
|
26
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, {
|
|
27
|
+
size: 16,
|
|
28
|
+
className: "rtl:rotate-180"
|
|
29
|
+
})
|
|
24
30
|
})
|
|
25
31
|
]
|
|
26
32
|
});
|
|
@@ -28,7 +34,7 @@ function CalendarHeader() {
|
|
|
28
34
|
function CalendarGridComponent({ isRange = false }) {
|
|
29
35
|
const now = today(getLocalTimeZone());
|
|
30
36
|
return /* @__PURE__ */ jsxs(CalendarGrid, { children: [/* @__PURE__ */ jsx(CalendarGridHeader, { children: (day) => /* @__PURE__ */ jsx(CalendarHeaderCell, {
|
|
31
|
-
className: "text-muted-foreground/80 size-9 rounded-md p-0 text-xs font-medium",
|
|
37
|
+
className: "text-muted-foreground/80 size-9 rounded-md p-0 text-xs font-medium tabular-nums",
|
|
32
38
|
children: day
|
|
33
39
|
}) }), /* @__PURE__ */ jsx(CalendarGridBody, {
|
|
34
40
|
className: "[&_td]:px-0 [&_td]:py-px",
|
|
@@ -36,8 +42,8 @@ function CalendarGridComponent({ isRange = false }) {
|
|
|
36
42
|
date,
|
|
37
43
|
className: cn(`text-foreground data-hovered:bg-accent data-selected:bg-primary data-hovered:text-foreground
|
|
38
44
|
data-selected:text-primary-foreground data-focus-visible:ring-ring/50 relative flex size-9 items-center
|
|
39
|
-
justify-center rounded-md p-0 text-sm font-normal whitespace-nowrap
|
|
40
|
-
[transition-property:color,background-color,border-radius,box-shadow] duration-
|
|
45
|
+
justify-center rounded-md p-0 text-sm font-normal whitespace-nowrap tabular-nums
|
|
46
|
+
[transition-property:color,background-color,border-radius,box-shadow] duration-(--duration-moderate) outline-none
|
|
41
47
|
data-disabled:pointer-events-none data-disabled:opacity-30 data-focus-visible:z-10
|
|
42
48
|
data-focus-visible:ring-[3px] data-unavailable:pointer-events-none data-unavailable:line-through
|
|
43
49
|
data-unavailable:opacity-30`, isRange && `data-selected:bg-accent data-selected:text-foreground data-invalid:data-selection-end:bg-destructive
|
|
@@ -45,7 +51,7 @@ function CalendarGridComponent({ isRange = false }) {
|
|
|
45
51
|
data-selection-start:bg-primary data-selection-end:text-primary-foreground
|
|
46
52
|
data-selection-start:text-primary-foreground data-invalid:bg-red-100 data-selected:rounded-none
|
|
47
53
|
data-selection-end:rounded-e-md data-invalid:data-selection-end:text-white
|
|
48
|
-
data-selection-start:rounded-s-md data-invalid:data-selection-start:text-white`, date.compare(now) === 0 && cn(`after:bg-primary after:pointer-events-none after:absolute after:
|
|
54
|
+
data-selection-start:rounded-s-md data-invalid:data-selection-start:text-white`, date.compare(now) === 0 && cn(`after:bg-primary after:pointer-events-none after:absolute after:left-1/2 after:bottom-1 after:z-10
|
|
49
55
|
after:size-[3px] after:-translate-x-1/2 after:rounded-full`, isRange ? "data-selection-end:after:bg-background data-selection-start:after:bg-background" : "data-selected:after:bg-background"))
|
|
50
56
|
})
|
|
51
57
|
})] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-rac.js","names":["HeadingRac","CalendarGridRac","CalendarGridHeaderRac","CalendarHeaderCellRac","CalendarGridBodyRac","CalendarCellRac","CalendarRac","RangeCalendarRac"],"sources":["../../src/components/calendar-rac.tsx"],"sourcesContent":["'use client';\n\nimport { ComponentProps } from 'react';\nimport { getLocalTimeZone, today } from '@internationalized/date';\nimport { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';\nimport {\n\tButton,\n\tCalendarCell as CalendarCellRac,\n\tCalendarGridBody as CalendarGridBodyRac,\n\tCalendarGridHeader as CalendarGridHeaderRac,\n\tCalendarGrid as CalendarGridRac,\n\tCalendarHeaderCell as CalendarHeaderCellRac,\n\tCalendar as CalendarRac,\n\tcomposeRenderProps,\n\tHeading as HeadingRac,\n\tRangeCalendar as RangeCalendarRac,\n} from 'react-aria-components';\n\nimport { cn } from '../lib/utils';\n\ninterface BaseCalendarProps {\n\tclassName?: string;\n}\n\ntype CalendarProps = ComponentProps<typeof CalendarRac> & BaseCalendarProps;\ntype RangeCalendarProps = ComponentProps<typeof RangeCalendarRac> & BaseCalendarProps;\n\nfunction CalendarHeader() {\n\treturn (\n\t\t<header className='flex w-full items-center gap-1 pb-1'>\n\t\t\t<Button\n\t\t\t\tslot='previous'\n\t\t\t\tclassName='text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n\t\t\t\t\titems-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]'\n\t\t\t>\n\t\t\t\t<ChevronLeftIcon size={16} />\n\t\t\t</Button>\n\t\t\t<HeadingRac className='grow text-center text-sm font-medium' />\n\t\t\t<Button\n\t\t\t\tslot='next'\n\t\t\t\tclassName='text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n\t\t\t\t\titems-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]'\n\t\t\t>\n\t\t\t\t<ChevronRightIcon size={16} />\n\t\t\t</Button>\n\t\t</header>\n\t);\n}\n\nfunction CalendarGridComponent({ isRange = false }: { isRange?: boolean }) {\n\tconst now = today(getLocalTimeZone());\n\n\treturn (\n\t\t<CalendarGridRac>\n\t\t\t<CalendarGridHeaderRac>\n\t\t\t\t{(day) => (\n\t\t\t\t\t<CalendarHeaderCellRac className='text-muted-foreground/80 size-9 rounded-md p-0 text-xs font-medium'>\n\t\t\t\t\t\t{day}\n\t\t\t\t\t</CalendarHeaderCellRac>\n\t\t\t\t)}\n\t\t\t</CalendarGridHeaderRac>\n\t\t\t<CalendarGridBodyRac className='[&_td]:px-0 [&_td]:py-px'>\n\t\t\t\t{(date) => (\n\t\t\t\t\t<CalendarCellRac\n\t\t\t\t\t\tdate={date}\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t`text-foreground data-hovered:bg-accent data-selected:bg-primary data-hovered:text-foreground\n\t\t\t\t\t\t\tdata-selected:text-primary-foreground data-focus-visible:ring-ring/50 relative flex size-9 items-center\n\t\t\t\t\t\t\tjustify-center rounded-md p-0 text-sm font-normal whitespace-nowrap\n\t\t\t\t\t\t\t[transition-property:color,background-color,border-radius,box-shadow] duration-
|
|
1
|
+
{"version":3,"file":"calendar-rac.js","names":["HeadingRac","CalendarGridRac","CalendarGridHeaderRac","CalendarHeaderCellRac","CalendarGridBodyRac","CalendarCellRac","CalendarRac","RangeCalendarRac"],"sources":["../../src/components/calendar-rac.tsx"],"sourcesContent":["'use client';\n\nimport { ComponentProps } from 'react';\nimport { getLocalTimeZone, today } from '@internationalized/date';\nimport { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';\nimport {\n\tButton,\n\tCalendarCell as CalendarCellRac,\n\tCalendarGridBody as CalendarGridBodyRac,\n\tCalendarGridHeader as CalendarGridHeaderRac,\n\tCalendarGrid as CalendarGridRac,\n\tCalendarHeaderCell as CalendarHeaderCellRac,\n\tCalendar as CalendarRac,\n\tcomposeRenderProps,\n\tHeading as HeadingRac,\n\tRangeCalendar as RangeCalendarRac,\n} from 'react-aria-components';\n\nimport { cn } from '../lib/utils';\n\ninterface BaseCalendarProps {\n\tclassName?: string;\n}\n\ntype CalendarProps = ComponentProps<typeof CalendarRac> & BaseCalendarProps;\ntype RangeCalendarProps = ComponentProps<typeof RangeCalendarRac> & BaseCalendarProps;\n\nfunction CalendarHeader() {\n\treturn (\n\t\t<header className='flex w-full items-center gap-1 pb-1'>\n\t\t\t<Button\n\t\t\t\tslot='previous'\n\t\t\t\tclassName='text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n\t\t\t\t\titems-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]\n\t\t\t\t\tdata-disabled:pointer-events-none data-disabled:opacity-30'\n\t\t\t>\n\t\t\t\t<ChevronLeftIcon size={16} className='rtl:rotate-180' />\n\t\t\t</Button>\n\t\t\t<HeadingRac className='grow text-center text-sm font-medium' />\n\t\t\t<Button\n\t\t\t\tslot='next'\n\t\t\t\tclassName='text-muted-foreground/80 hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 flex size-9\n\t\t\t\t\titems-center justify-center rounded-md transition-[color,box-shadow] outline-none focus-visible:ring-[3px]\n\t\t\t\t\tdata-disabled:pointer-events-none data-disabled:opacity-30'\n\t\t\t>\n\t\t\t\t<ChevronRightIcon size={16} className='rtl:rotate-180' />\n\t\t\t</Button>\n\t\t</header>\n\t);\n}\n\nfunction CalendarGridComponent({ isRange = false }: { isRange?: boolean }) {\n\tconst now = today(getLocalTimeZone());\n\n\treturn (\n\t\t<CalendarGridRac>\n\t\t\t<CalendarGridHeaderRac>\n\t\t\t\t{(day) => (\n\t\t\t\t\t<CalendarHeaderCellRac className='text-muted-foreground/80 size-9 rounded-md p-0 text-xs font-medium tabular-nums'>\n\t\t\t\t\t\t{day}\n\t\t\t\t\t</CalendarHeaderCellRac>\n\t\t\t\t)}\n\t\t\t</CalendarGridHeaderRac>\n\t\t\t<CalendarGridBodyRac className='[&_td]:px-0 [&_td]:py-px'>\n\t\t\t\t{(date) => (\n\t\t\t\t\t<CalendarCellRac\n\t\t\t\t\t\tdate={date}\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t`text-foreground data-hovered:bg-accent data-selected:bg-primary data-hovered:text-foreground\n\t\t\t\t\t\t\tdata-selected:text-primary-foreground data-focus-visible:ring-ring/50 relative flex size-9 items-center\n\t\t\t\t\t\t\tjustify-center rounded-md p-0 text-sm font-normal whitespace-nowrap tabular-nums\n\t\t\t\t\t\t\t[transition-property:color,background-color,border-radius,box-shadow] duration-(--duration-moderate) outline-none\n\t\t\t\t\t\t\tdata-disabled:pointer-events-none data-disabled:opacity-30 data-focus-visible:z-10\n\t\t\t\t\t\t\tdata-focus-visible:ring-[3px] data-unavailable:pointer-events-none data-unavailable:line-through\n\t\t\t\t\t\t\tdata-unavailable:opacity-30`,\n\t\t\t\t\t\t\t// Range-specific styles\n\t\t\t\t\t\t\tisRange &&\n\t\t\t\t\t\t\t\t`data-selected:bg-accent data-selected:text-foreground data-invalid:data-selection-end:bg-destructive\n\t\t\t\t\t\t\t\tdata-invalid:data-selection-start:bg-destructive data-selection-end:bg-primary\n\t\t\t\t\t\t\t\tdata-selection-start:bg-primary data-selection-end:text-primary-foreground\n\t\t\t\t\t\t\t\tdata-selection-start:text-primary-foreground data-invalid:bg-red-100 data-selected:rounded-none\n\t\t\t\t\t\t\t\tdata-selection-end:rounded-e-md data-invalid:data-selection-end:text-white\n\t\t\t\t\t\t\t\tdata-selection-start:rounded-s-md data-invalid:data-selection-start:text-white`,\n\t\t\t\t\t\t\t// Today indicator styles\n\t\t\t\t\t\t\tdate.compare(now) === 0 &&\n\t\t\t\t\t\t\t\tcn(\n\t\t\t\t\t\t\t\t\t`after:bg-primary after:pointer-events-none after:absolute after:left-1/2 after:bottom-1 after:z-10\n\t\t\t\t\t\t\t\t\tafter:size-[3px] after:-translate-x-1/2 after:rounded-full`,\n\t\t\t\t\t\t\t\t\tisRange\n\t\t\t\t\t\t\t\t\t\t? 'data-selection-end:after:bg-background data-selection-start:after:bg-background'\n\t\t\t\t\t\t\t\t\t\t: 'data-selected:after:bg-background',\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</CalendarGridBodyRac>\n\t\t</CalendarGridRac>\n\t);\n}\n\nfunction Calendar({ className, ...props }: CalendarProps) {\n\treturn (\n\t\t<CalendarRac {...props} className={composeRenderProps(className, (className) => cn('w-fit', className))}>\n\t\t\t<CalendarHeader />\n\t\t\t<CalendarGridComponent />\n\t\t</CalendarRac>\n\t);\n}\n\nfunction RangeCalendar({ className, ...props }: RangeCalendarProps) {\n\treturn (\n\t\t<RangeCalendarRac {...props} className={composeRenderProps(className, (className) => cn('w-fit', className))}>\n\t\t\t<CalendarHeader />\n\t\t\t<CalendarGridComponent isRange />\n\t\t</RangeCalendarRac>\n\t);\n}\n\nexport { Calendar, RangeCalendar };\n"],"mappings":";;;;;;;;;AA2BA,SAAS,iBAAiB;CACzB,OACC,qBAAC,UAAD;EAAQ,WAAU;YAAlB;GACC,oBAAC,QAAD;IACC,MAAK;IACL,WAAU;cAIV,oBAAC,iBAAD;KAAiB,MAAM;KAAI,WAAU;IAAkB;GAChD;GACR,oBAACA,SAAD,EAAY,WAAU,uCAAwC;GAC9D,oBAAC,QAAD;IACC,MAAK;IACL,WAAU;cAIV,oBAAC,kBAAD;KAAkB,MAAM;KAAI,WAAU;IAAkB;GACjD;EACD;;AAEV;AAEA,SAAS,sBAAsB,EAAE,UAAU,SAAgC;CAC1E,MAAM,MAAM,MAAM,iBAAiB,CAAC;CAEpC,OACC,qBAACC,cAAD,aACC,oBAACC,oBAAD,aACG,QACD,oBAACC,oBAAD;EAAuB,WAAU;YAC/B;CACqB,GAEF,IACvB,oBAACC,kBAAD;EAAqB,WAAU;aAC5B,SACD,oBAACC,cAAD;GACO;GACN,WAAW,GACV;;;;;;qCAQA,WACC;;;;;yFAOD,KAAK,QAAQ,GAAG,MAAM,KACrB,GACC;sEAEA,UACG,oFACA,mCACJ,CACF;EACA;CAEkB,EACL;AAEnB;AAEA,SAAS,SAAS,EAAE,WAAW,GAAG,SAAwB;CACzD,OACC,qBAACC,YAAD;EAAa,GAAI;EAAO,WAAW,mBAAmB,YAAY,cAAc,GAAG,SAAS,SAAS,CAAC;YAAtG,CACC,oBAAC,gBAAD,CAAiB,IACjB,oBAAC,uBAAD,CAAwB,EACZ;;AAEf;AAEA,SAAS,cAAc,EAAE,WAAW,GAAG,SAA6B;CACnE,OACC,qBAACC,iBAAD;EAAkB,GAAI;EAAO,WAAW,mBAAmB,YAAY,cAAc,GAAG,SAAS,SAAS,CAAC;YAA3G,CACC,oBAAC,gBAAD,CAAiB,IACjB,oBAAC,uBAAD,EAAuB,cAAS,EACf;;AAEpB"}
|
package/dist/components/card.cjs
CHANGED
|
@@ -8,68 +8,80 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
8
8
|
let class_variance_authority = require("class-variance-authority");
|
|
9
9
|
|
|
10
10
|
//#region src/components/card.tsx
|
|
11
|
-
const cardVariants = (0, class_variance_authority.cva)("bg-card text-card-foreground flex flex-col gap-
|
|
12
|
-
variants: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
const cardVariants = (0, class_variance_authority.cva)("bg-card text-card-foreground flex flex-col gap-(--card-pad) rounded-lg py-(--card-pad)", {
|
|
12
|
+
variants: {
|
|
13
|
+
variant: {
|
|
14
|
+
default: "shadow-card",
|
|
15
|
+
elevated: "shadow-card-lg",
|
|
16
|
+
flat: "border border-border shadow-none",
|
|
17
|
+
ghost: "bg-transparent shadow-none",
|
|
18
|
+
interactive: [
|
|
19
|
+
"shadow-card",
|
|
20
|
+
"hover:shadow-card-lg motion-safe:hover:-translate-y-0.5",
|
|
21
|
+
"transition-[box-shadow,translate] duration-(--duration-slow) motion-reduce:transition-shadow",
|
|
22
|
+
"cursor-pointer"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
default: "[--card-pad:1.5rem]",
|
|
27
|
+
sm: "[--card-pad:1rem]"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
variant: "default",
|
|
32
|
+
size: "default"
|
|
33
|
+
}
|
|
25
34
|
});
|
|
26
|
-
function Card({ className, variant, ...props }) {
|
|
35
|
+
function Card({ className, variant, size, ...props }) {
|
|
27
36
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
28
37
|
"data-slot": "card",
|
|
29
|
-
className: require_utils.cn(cardVariants({
|
|
38
|
+
className: require_utils.cn(cardVariants({
|
|
39
|
+
variant,
|
|
40
|
+
size
|
|
41
|
+
}), className),
|
|
30
42
|
...props
|
|
31
43
|
});
|
|
32
44
|
}
|
|
33
45
|
function CardHeader({ className, ...props }) {
|
|
34
46
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
35
47
|
"data-slot": "card-header",
|
|
36
|
-
className: require_utils.cn(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-
|
|
37
|
-
has-data-[slot=card-action]:grid-cols-[
|
|
48
|
+
className: require_utils.cn(`@container/card-header grid auto-rows-min grid-cols-[minmax(0,1fr)] grid-rows-[auto_auto] items-start gap-1.5 px-(--card-pad)
|
|
49
|
+
has-data-[slot=card-action]:grid-cols-[minmax(0,1fr)_auto] [.border-b]:pb-(--card-pad)`, className),
|
|
38
50
|
...props
|
|
39
51
|
});
|
|
40
52
|
}
|
|
41
53
|
function CardTitle({ className, ...props }) {
|
|
42
54
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
43
55
|
"data-slot": "card-title",
|
|
44
|
-
className: require_utils.cn("text-balance leading-
|
|
56
|
+
className: require_utils.cn("-my-0.5 min-w-0 text-balance leading-tight font-semibold tracking-tight [overflow-wrap:anywhere]", className),
|
|
45
57
|
...props
|
|
46
58
|
});
|
|
47
59
|
}
|
|
48
60
|
function CardDescription({ className, ...props }) {
|
|
49
61
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
50
62
|
"data-slot": "card-description",
|
|
51
|
-
className: require_utils.cn("text-muted-foreground text-pretty text-sm", className),
|
|
63
|
+
className: require_utils.cn("text-muted-foreground min-w-0 text-pretty text-sm [overflow-wrap:anywhere]", className),
|
|
52
64
|
...props
|
|
53
65
|
});
|
|
54
66
|
}
|
|
55
67
|
function CardAction({ className, ...props }) {
|
|
56
68
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
57
69
|
"data-slot": "card-action",
|
|
58
|
-
className: require_utils.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
70
|
+
className: require_utils.cn("col-start-2 row-span-2 row-start-1 min-w-0 max-w-full self-start justify-self-end", className),
|
|
59
71
|
...props
|
|
60
72
|
});
|
|
61
73
|
}
|
|
62
74
|
function CardContent({ className, ...props }) {
|
|
63
75
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
64
76
|
"data-slot": "card-content",
|
|
65
|
-
className: require_utils.cn("px-
|
|
77
|
+
className: require_utils.cn("px-(--card-pad)", className),
|
|
66
78
|
...props
|
|
67
79
|
});
|
|
68
80
|
}
|
|
69
81
|
function CardFooter({ className, ...props }) {
|
|
70
82
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
71
83
|
"data-slot": "card-footer",
|
|
72
|
-
className: require_utils.cn("flex items-center px-
|
|
84
|
+
className: require_utils.cn("flex flex-wrap items-center gap-2 px-(--card-pad) [.border-t]:pt-(--card-pad)", className),
|
|
73
85
|
...props
|
|
74
86
|
});
|
|
75
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.cjs","names":["cn"],"sources":["../../src/components/card.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '../lib/utils';\n\nconst cardVariants = cva(\n\t// Base styles\n\t\t'bg-card text-card-foreground flex flex-col gap-
|
|
1
|
+
{"version":3,"file":"card.cjs","names":["cn"],"sources":["../../src/components/card.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '../lib/utils';\n\nconst cardVariants = cva(\n\t// Base styles\n\t\t'bg-card text-card-foreground flex flex-col gap-(--card-pad) rounded-lg py-(--card-pad)',\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: 'shadow-card',\n\t\t\t\televated: 'shadow-card-lg',\n\t\t\t\tflat: 'border border-border shadow-none',\n\t\t\t\tghost: 'bg-transparent shadow-none',\n\t\t\t\tinteractive: [\n\t\t\t\t\t'shadow-card',\n\t\t\t\t\t'hover:shadow-card-lg motion-safe:hover:-translate-y-0.5',\n\t\t\t\t\t'transition-[box-shadow,translate] duration-(--duration-slow) motion-reduce:transition-shadow',\n\t\t\t\t\t'cursor-pointer',\n\t\t\t\t],\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: '[--card-pad:1.5rem]',\n\t\t\t\tsm: '[--card-pad:1rem]',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: 'default',\n\t\t\tsize: 'default',\n\t\t},\n\t},\n);\n\ninterface CardProps extends React.ComponentProps<'div'>, VariantProps<typeof cardVariants> {}\n\nfunction Card({ className, variant, size, ...props }: CardProps) {\n\treturn (\n\t\t<div data-slot=\"card\" className={cn(cardVariants({ variant, size }), className)} {...props} />\n\t);\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"card-header\"\n\t\t\tclassName={cn(\n\t\t\t\t// `minmax(0, 1fr)`: an unbroken title wraps instead of widening the column\n\t\t\t\t// and pushing the action out of the card.\n\t\t\t\t`@container/card-header grid auto-rows-min grid-cols-[minmax(0,1fr)] grid-rows-[auto_auto] items-start gap-1.5 px-(--card-pad)\n\t\t\t\thas-data-[slot=card-action]:grid-cols-[minmax(0,1fr)_auto] [.border-b]:pb-(--card-pad)`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"card-title\"\n\t\t\t// `leading-tight` keeps wrapped titles legible (stacked diacritics collide at\n\t\t\t// `leading-none`); the negative margin keeps a single line exactly 1em tall.\n\t\t\tclassName={cn(\n\t\t\t\t'-my-0.5 min-w-0 text-balance leading-tight font-semibold tracking-tight [overflow-wrap:anywhere]',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"card-description\"\n\t\t\tclassName={cn('text-muted-foreground min-w-0 text-pretty text-sm [overflow-wrap:anywhere]', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"card-action\"\n\t\t\tclassName={cn('col-start-2 row-span-2 row-start-1 min-w-0 max-w-full self-start justify-self-end', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn <div data-slot=\"card-content\" className={cn('px-(--card-pad)', className)} {...props} />;\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"card-footer\"\n\t\t\tclassName={cn('flex flex-wrap items-center gap-2 px-(--card-pad) [.border-t]:pt-(--card-pad)', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, cardVariants };\nexport type { CardProps };\n"],"mappings":";;;;;;;;;;AAKA,MAAM,iDAEJ,0FACD;CACC,UAAU;EACT,SAAS;GACR,SAAS;GACT,UAAU;GACV,MAAM;GACN,OAAO;GACP,aAAa;IACZ;IACA;IACA;IACA;GACD;EACD;EACA,MAAM;GACL,SAAS;GACT,IAAI;EACL;CACD;CACA,iBAAiB;EAChB,SAAS;EACT,MAAM;CACP;AACD,CACD;AAIA,SAAS,KAAK,EAAE,WAAW,SAAS,MAAM,GAAG,SAAoB;CAChE,OACC,2CAAC,OAAD;EAAK,aAAU;EAAO,WAAWA,iBAAG,aAAa;GAAE;GAAS;EAAK,CAAC,GAAG,SAAS;EAAG,GAAI;CAAQ;AAE/F;AAEA,SAAS,WAAW,EAAE,WAAW,GAAG,SAAsC;CACzE,OACC,2CAAC,OAAD;EACC,aAAU;EACV,WAAWA,iBAGV;6FAEA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,UAAU,EAAE,WAAW,GAAG,SAAsC;CACxE,OACC,2CAAC,OAAD;EACC,aAAU;EAGV,WAAWA,iBACV,oGACA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,gBAAgB,EAAE,WAAW,GAAG,SAAsC;CAC9E,OACC,2CAAC,OAAD;EACC,aAAU;EACV,WAAWA,iBAAG,8EAA8E,SAAS;EACrG,GAAI;CACJ;AAEH;AAEA,SAAS,WAAW,EAAE,WAAW,GAAG,SAAsC;CACzE,OACC,2CAAC,OAAD;EACC,aAAU;EACV,WAAWA,iBAAG,qFAAqF,SAAS;EAC5G,GAAI;CACJ;AAEH;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAAsC;CAC1E,OAAO,2CAAC,OAAD;EAAK,aAAU;EAAe,WAAWA,iBAAG,mBAAmB,SAAS;EAAG,GAAI;CAAQ;AAC/F;AAEA,SAAS,WAAW,EAAE,WAAW,GAAG,SAAsC;CACzE,OACC,2CAAC,OAAD;EACC,aAAU;EACV,WAAWA,iBAAG,iFAAiF,SAAS;EACxG,GAAI;CACJ;AAEH"}
|
|
@@ -2,10 +2,11 @@ import * as React$1 from "react";
|
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
//#region src/components/card.d.ts
|
|
4
4
|
declare const cardVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "
|
|
5
|
+
variant?: "default" | "ghost" | "elevated" | "flat" | "interactive" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | null | undefined;
|
|
6
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
8
|
interface CardProps extends React$1.ComponentProps<'div'>, VariantProps<typeof cardVariants> {}
|
|
8
|
-
declare function Card({ className, variant, ...props }: CardProps): React$1.JSX.Element;
|
|
9
|
+
declare function Card({ className, variant, size, ...props }: CardProps): React$1.JSX.Element;
|
|
9
10
|
declare function CardHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
10
11
|
declare function CardTitle({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
11
12
|
declare function CardDescription({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|