@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
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
+
const require_tuning = require('./tuning-BRPG7U1U.cjs');
|
|
4
|
+
const require_theme = require('./theme.cjs');
|
|
5
|
+
|
|
6
|
+
//#region src/theme-tuning.ts
|
|
7
|
+
function round3(n) {
|
|
8
|
+
return Math.round(n * 1e3) / 1e3;
|
|
9
|
+
}
|
|
10
|
+
const OKLCH_RE = /oklch\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)/;
|
|
11
|
+
const HSL_RE = /hsla?\(\s*(-?[\d.]+)(?:deg)?[\s,]+([\d.]+)%[\s,]+([\d.]+)%/;
|
|
12
|
+
const HEX_RE = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
13
|
+
const RGB_RE = /rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/;
|
|
14
|
+
/** hsl (deg / % / %) → sRGB channels in [0, 1]. Alpha is ignored. */
|
|
15
|
+
function hslToSrgb(hDeg, sPct, lPct) {
|
|
16
|
+
const h = (hDeg % 360 + 360) % 360 / 360;
|
|
17
|
+
const s = sPct / 100;
|
|
18
|
+
const l = lPct / 100;
|
|
19
|
+
const a = s * Math.min(l, 1 - l);
|
|
20
|
+
const f = (n) => {
|
|
21
|
+
const k = (n + h * 12) % 12;
|
|
22
|
+
return l - a * Math.max(-1, Math.min(k - 3, 9 - k, 1));
|
|
23
|
+
};
|
|
24
|
+
return [
|
|
25
|
+
f(0),
|
|
26
|
+
f(8),
|
|
27
|
+
f(4)
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
/** sRGB channels [0, 1] → linear → OKLab → OKLCH (standard matrices). */
|
|
31
|
+
function srgbToOklch(r, g, b) {
|
|
32
|
+
const lin = (c) => c <= .04045 ? c / 12.92 : ((c + .055) / 1.055) ** 2.4;
|
|
33
|
+
const [lr, lg, lb] = [
|
|
34
|
+
lin(r),
|
|
35
|
+
lin(g),
|
|
36
|
+
lin(b)
|
|
37
|
+
];
|
|
38
|
+
const l = .4122214708 * lr + .5363325363 * lg + .0514459929 * lb;
|
|
39
|
+
const m = .2119034982 * lr + .6806995451 * lg + .1073969566 * lb;
|
|
40
|
+
const s = .0883024619 * lr + .2817188376 * lg + .6299787005 * lb;
|
|
41
|
+
const l_ = Math.cbrt(l);
|
|
42
|
+
const m_ = Math.cbrt(m);
|
|
43
|
+
const s_ = Math.cbrt(s);
|
|
44
|
+
const L = .2104542553 * l_ + .793617785 * m_ - .0040720468 * s_;
|
|
45
|
+
const a = 1.9779984951 * l_ - 2.428592205 * m_ + .4505937099 * s_;
|
|
46
|
+
const b2 = .0259040371 * l_ + .7827717662 * m_ - .808675766 * s_;
|
|
47
|
+
const c = Math.hypot(a, b2);
|
|
48
|
+
if (c < 1e-4) return {
|
|
49
|
+
l: L,
|
|
50
|
+
c: 0,
|
|
51
|
+
h: 0
|
|
52
|
+
};
|
|
53
|
+
return {
|
|
54
|
+
l: L,
|
|
55
|
+
c,
|
|
56
|
+
h: (Math.atan2(b2, a) * 180 / Math.PI + 360) % 360
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Parse `oklch(L C H)`, `hsl(H S% L%)` (space or comma syntax, alpha ignored),
|
|
61
|
+
* `#rgb`/`#rrggbb`, or `rgb(r g b)` into OKLCH parts. Anything unparseable
|
|
62
|
+
* falls back to zeros.
|
|
63
|
+
*/
|
|
64
|
+
function parseColor(css) {
|
|
65
|
+
const input = (css ?? "").trim();
|
|
66
|
+
const oklch = OKLCH_RE.exec(input);
|
|
67
|
+
if (oklch) return {
|
|
68
|
+
l: Number(oklch[1]),
|
|
69
|
+
c: Number(oklch[2]),
|
|
70
|
+
h: Number(oklch[3])
|
|
71
|
+
};
|
|
72
|
+
const hsl = HSL_RE.exec(input);
|
|
73
|
+
if (hsl) return srgbToOklch(...hslToSrgb(Number(hsl[1]), Number(hsl[2]), Number(hsl[3])));
|
|
74
|
+
const hex = HEX_RE.exec(input);
|
|
75
|
+
if (hex) {
|
|
76
|
+
const raw = hex[1].length === 3 ? hex[1].split("").map((ch) => ch + ch).join("") : hex[1];
|
|
77
|
+
return srgbToOklch(parseInt(raw.slice(0, 2), 16) / 255, parseInt(raw.slice(2, 4), 16) / 255, parseInt(raw.slice(4, 6), 16) / 255);
|
|
78
|
+
}
|
|
79
|
+
const rgb = RGB_RE.exec(input);
|
|
80
|
+
if (rgb) return srgbToOklch(Number(rgb[1]) / 255, Number(rgb[2]) / 255, Number(rgb[3]) / 255);
|
|
81
|
+
return {
|
|
82
|
+
l: 0,
|
|
83
|
+
c: 0,
|
|
84
|
+
h: 0
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/** Alias kept for existing imports — identical to `parseColor`. */
|
|
88
|
+
function parseOklch(css) {
|
|
89
|
+
return parseColor(css);
|
|
90
|
+
}
|
|
91
|
+
/** OKLCH → linear sRGB channels clamped to [0, 1] (standard OKLab matrices). */
|
|
92
|
+
function oklchToLinearSrgb(l, c, h) {
|
|
93
|
+
const hr = h * Math.PI / 180;
|
|
94
|
+
const a = c * Math.cos(hr);
|
|
95
|
+
const b = c * Math.sin(hr);
|
|
96
|
+
const l_ = l + .3963377774 * a + .2158037573 * b;
|
|
97
|
+
const m_ = l - .1055613458 * a - .0638541728 * b;
|
|
98
|
+
const s_ = l - .0894841775 * a - 1.291485548 * b;
|
|
99
|
+
const l3 = l_ ** 3;
|
|
100
|
+
const m3 = m_ ** 3;
|
|
101
|
+
const s3 = s_ ** 3;
|
|
102
|
+
const clamp = (v) => Math.min(1, Math.max(0, v));
|
|
103
|
+
return [
|
|
104
|
+
clamp(4.0767416621 * l3 - 3.3077115913 * m3 + .2309699292 * s3),
|
|
105
|
+
clamp(-1.2684380046 * l3 + 2.6097574011 * m3 - .3413193965 * s3),
|
|
106
|
+
clamp(-.0041960863 * l3 - .7034186147 * m3 + 1.707614701 * s3)
|
|
107
|
+
];
|
|
108
|
+
}
|
|
109
|
+
/** WCAG relative luminance of linear sRGB channels. */
|
|
110
|
+
function relativeLuminance(rgb) {
|
|
111
|
+
return .2126 * rgb[0] + .7152 * rgb[1] + .0722 * rgb[2];
|
|
112
|
+
}
|
|
113
|
+
/** WCAG contrast ratio between two OKLCH colors (1–21). */
|
|
114
|
+
function contrastRatio(a, b) {
|
|
115
|
+
const la = relativeLuminance(oklchToLinearSrgb(a.l, a.c, a.h));
|
|
116
|
+
const lb = relativeLuminance(oklchToLinearSrgb(b.l, b.c, b.h));
|
|
117
|
+
const [lighter, darker] = la >= lb ? [la, lb] : [lb, la];
|
|
118
|
+
return (lighter + .05) / (darker + .05);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* The accent as *text* on a surface: the accent itself when it already clears
|
|
122
|
+
* 4.5:1 against `background`, otherwise its lightness stepped (darker on light
|
|
123
|
+
* surfaces, lighter on dark ones) until the emitted 3-dp value does. Solid
|
|
124
|
+
* fills keep the vivid accent; links and labels use this.
|
|
125
|
+
*/
|
|
126
|
+
function linkColorFor(accent, background) {
|
|
127
|
+
const emitted = (c) => parseColor(formatOklch(c.l, c.c, c.h));
|
|
128
|
+
const step = background.l > .5 ? -.01 : .01;
|
|
129
|
+
let current = accent;
|
|
130
|
+
for (let i = 0; i < 60 && contrastRatio(emitted(current), emitted(background)) < 4.5; i++) current = {
|
|
131
|
+
l: Math.min(1, Math.max(0, current.l + step)),
|
|
132
|
+
c: current.c,
|
|
133
|
+
h: current.h
|
|
134
|
+
};
|
|
135
|
+
return current;
|
|
136
|
+
}
|
|
137
|
+
/** Format with 3-decimal rounding: `oklch(0.565 0.215 259)`. */
|
|
138
|
+
function formatOklch(l, c, h) {
|
|
139
|
+
return `oklch(${round3(l)} ${round3(c)} ${round3(h)})`;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Chroma each neutral token carried in the previous cool ramp — the reference
|
|
143
|
+
* `neutralChroma` multiplies. The shipped ramp is pure-neutral hsl (chroma 0),
|
|
144
|
+
* so tinting needs a remembered reference rather than the shipped chroma.
|
|
145
|
+
*/
|
|
146
|
+
const NEUTRAL_CHROMA_WEIGHTS = {
|
|
147
|
+
background: .003,
|
|
148
|
+
card: 0,
|
|
149
|
+
popover: 0,
|
|
150
|
+
secondary: .006,
|
|
151
|
+
muted: .006,
|
|
152
|
+
accent: .006,
|
|
153
|
+
border: .008,
|
|
154
|
+
input: .008,
|
|
155
|
+
sidebar: .004,
|
|
156
|
+
"sidebar-accent": .006,
|
|
157
|
+
"sidebar-border": .008,
|
|
158
|
+
foreground: .02,
|
|
159
|
+
"card-foreground": .02,
|
|
160
|
+
"popover-foreground": .02,
|
|
161
|
+
"secondary-foreground": .02,
|
|
162
|
+
"accent-foreground": .02,
|
|
163
|
+
"sidebar-foreground": .02,
|
|
164
|
+
"sidebar-accent-foreground": .02,
|
|
165
|
+
"muted-foreground": .025,
|
|
166
|
+
"subtle-foreground": .022
|
|
167
|
+
};
|
|
168
|
+
/** Hue used when the shipped ramp carries no chroma to read one from. */
|
|
169
|
+
const NEUTRAL_REFERENCE_HUE = 250;
|
|
170
|
+
/** Tuning defaults read straight out of a shipped theme token map. */
|
|
171
|
+
function modeTuningDefaults(base) {
|
|
172
|
+
const L = (key) => parseColor(base[key]).l;
|
|
173
|
+
const accent = parseColor(base.primary);
|
|
174
|
+
const border = parseColor(base.border);
|
|
175
|
+
return {
|
|
176
|
+
neutralHue: border.c > .001 ? border.h : 250,
|
|
177
|
+
neutralChroma: border.c / (NEUTRAL_CHROMA_WEIGHTS.border ?? 1),
|
|
178
|
+
backgroundL: L("background"),
|
|
179
|
+
cardL: L("card"),
|
|
180
|
+
popoverL: L("popover"),
|
|
181
|
+
mutedL: L("muted"),
|
|
182
|
+
borderL: L("border"),
|
|
183
|
+
inputL: L("input"),
|
|
184
|
+
ringL: L("ring"),
|
|
185
|
+
foregroundL: L("foreground"),
|
|
186
|
+
mutedForegroundL: L("muted-foreground"),
|
|
187
|
+
subtleForegroundL: L("subtle-foreground"),
|
|
188
|
+
sidebarL: L("sidebar"),
|
|
189
|
+
accentL: accent.l,
|
|
190
|
+
accentC: accent.c,
|
|
191
|
+
accentH: accent.h,
|
|
192
|
+
accentForegroundL: L("primary-foreground")
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Derive the neutral + accent token set for one mode.
|
|
197
|
+
*
|
|
198
|
+
* Neutral chroma comes from `NEUTRAL_CHROMA_WEIGHTS[key] * neutralChroma` —
|
|
199
|
+
* the Phase 1 cool ramp as reference — with one shared `neutralHue`, so
|
|
200
|
+
* tinting still works now that the shipped ramp is pure-neutral hsl.
|
|
201
|
+
* `refL` is the tuning input for the token's family; each token keeps its
|
|
202
|
+
* shipped lightness offset inside that family (e.g. sidebar-foreground sits
|
|
203
|
+
* above foreground) so defaults reproduce the shipped map. The ring IS the
|
|
204
|
+
* accent in this theme — only its lightness is tuned separately.
|
|
205
|
+
*/
|
|
206
|
+
function deriveModeTokens(tuning, base) {
|
|
207
|
+
const n = (key, refKey, refL) => {
|
|
208
|
+
const shipped = parseColor(base[key]);
|
|
209
|
+
const ref = parseColor(base[refKey]);
|
|
210
|
+
return formatOklch(refL + (shipped.l - ref.l), (NEUTRAL_CHROMA_WEIGHTS[key] ?? 0) * tuning.neutralChroma, tuning.neutralHue);
|
|
211
|
+
};
|
|
212
|
+
const primary = formatOklch(tuning.accentL, tuning.accentC, tuning.accentH);
|
|
213
|
+
const ring = formatOklch(tuning.ringL, tuning.accentC, tuning.accentH);
|
|
214
|
+
const background = n("background", "background", tuning.backgroundL);
|
|
215
|
+
const linkParts = linkColorFor({
|
|
216
|
+
l: tuning.accentL,
|
|
217
|
+
c: tuning.accentC,
|
|
218
|
+
h: tuning.accentH
|
|
219
|
+
}, parseColor(background));
|
|
220
|
+
const link = formatOklch(linkParts.l, linkParts.c, linkParts.h);
|
|
221
|
+
const accentForeground = formatOklch(tuning.accentForegroundL, parseColor(base["primary-foreground"]).c, parseColor(base["primary-foreground"]).h);
|
|
222
|
+
return {
|
|
223
|
+
background,
|
|
224
|
+
foreground: n("foreground", "foreground", tuning.foregroundL),
|
|
225
|
+
card: n("card", "card", tuning.cardL),
|
|
226
|
+
"card-foreground": n("card-foreground", "foreground", tuning.foregroundL),
|
|
227
|
+
popover: n("popover", "popover", tuning.popoverL),
|
|
228
|
+
"popover-foreground": n("popover-foreground", "foreground", tuning.foregroundL),
|
|
229
|
+
primary,
|
|
230
|
+
"primary-foreground": accentForeground,
|
|
231
|
+
secondary: n("secondary", "muted", tuning.mutedL),
|
|
232
|
+
"secondary-foreground": n("secondary-foreground", "foreground", tuning.foregroundL),
|
|
233
|
+
muted: n("muted", "muted", tuning.mutedL),
|
|
234
|
+
"muted-foreground": n("muted-foreground", "muted-foreground", tuning.mutedForegroundL),
|
|
235
|
+
"subtle-foreground": n("subtle-foreground", "subtle-foreground", tuning.subtleForegroundL),
|
|
236
|
+
accent: n("accent", "muted", tuning.mutedL),
|
|
237
|
+
"accent-foreground": n("accent-foreground", "foreground", tuning.foregroundL),
|
|
238
|
+
border: n("border", "border", tuning.borderL),
|
|
239
|
+
input: n("input", "input", tuning.inputL),
|
|
240
|
+
ring,
|
|
241
|
+
link,
|
|
242
|
+
sidebar: n("sidebar", "sidebar", tuning.sidebarL),
|
|
243
|
+
"sidebar-foreground": n("sidebar-foreground", "foreground", tuning.foregroundL),
|
|
244
|
+
"sidebar-primary": primary,
|
|
245
|
+
"sidebar-primary-foreground": accentForeground,
|
|
246
|
+
"sidebar-accent": n("sidebar-accent", "muted", tuning.mutedL),
|
|
247
|
+
"sidebar-accent-foreground": n("sidebar-accent-foreground", "foreground", tuning.foregroundL),
|
|
248
|
+
"sidebar-border": n("sidebar-border", "border", tuning.borderL),
|
|
249
|
+
"sidebar-ring": ring
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Hairline + stacked-drop recipe matching theme.ts so default tuning
|
|
254
|
+
* reproduces shipped `--shadow-border` tokens exactly.
|
|
255
|
+
*
|
|
256
|
+
* Shipped hairline alphas differ per mode (light 0.08 / dark 0.10) — the
|
|
257
|
+
* input tunes the light value and dark keeps the shipped 0.10/0.08 ratio.
|
|
258
|
+
* Drops are the first three elevation-ladder layers scaled by `elevation`
|
|
259
|
+
* on a neutral black umbra (light alpha 0.06, dark 0.22); dark prepends the
|
|
260
|
+
* lit top edge. The hairline is inset in both modes, so an overflow boundary
|
|
261
|
+
* can clip the soft drops but never the edge.
|
|
262
|
+
*/
|
|
263
|
+
function shadowBorderRecipe(hairlineAlpha, elevation, dark) {
|
|
264
|
+
const ringAlpha = dark ? Math.min(1, hairlineAlpha * (.1 / .08)) : hairlineAlpha;
|
|
265
|
+
const ringColor = dark ? `oklch(1 0 0 / ${round3(ringAlpha)})` : `oklch(0 0 0 / ${round3(ringAlpha)})`;
|
|
266
|
+
const shade = "0 0 0";
|
|
267
|
+
const alpha = round3((dark ? .22 : .06) * elevation);
|
|
268
|
+
const scale = (v) => round3(v * elevation);
|
|
269
|
+
const layers = [
|
|
270
|
+
`0 ${scale(1)}px ${scale(1)}px -0.5px rgb(${shade} / ${alpha})`,
|
|
271
|
+
`0 ${scale(3)}px ${scale(3)}px -1.5px rgb(${shade} / ${alpha})`,
|
|
272
|
+
`0 ${scale(6)}px ${scale(6)}px -3px rgb(${shade} / ${alpha})`
|
|
273
|
+
];
|
|
274
|
+
return [
|
|
275
|
+
...dark ? [`inset 0 1px 0 0 rgb(255 255 255 / ${round3(.04 * elevation)})`] : [],
|
|
276
|
+
`inset 0 0 0 1px ${ringColor}`,
|
|
277
|
+
...layers
|
|
278
|
+
].join(", ");
|
|
279
|
+
}
|
|
280
|
+
/** Tuning state that reproduces the shipped theme exactly. */
|
|
281
|
+
function defaultThemeTuning() {
|
|
282
|
+
return {
|
|
283
|
+
light: modeTuningDefaults(require_theme.constructiveTheme.light),
|
|
284
|
+
dark: modeTuningDefaults(require_theme.constructiveTheme.dark),
|
|
285
|
+
radius: parseFloat(require_theme.constructiveTheme.light.radius) || .625,
|
|
286
|
+
hairline: .08,
|
|
287
|
+
elevation: 1,
|
|
288
|
+
fontSans: require_theme.constructiveTheme.fonts["--font-sans"],
|
|
289
|
+
tiers: {
|
|
290
|
+
fast: { ...require_tuning.DEFAULT_SPRING_TIERS.fast },
|
|
291
|
+
moderate: { ...require_tuning.DEFAULT_SPRING_TIERS.moderate },
|
|
292
|
+
slow: { ...require_tuning.DEFAULT_SPRING_TIERS.slow }
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
/** Resolve a full tuning state to `:root`/`.dark`/shared token overrides. */
|
|
297
|
+
function resolveThemeTuning(t) {
|
|
298
|
+
const light = deriveModeTokens(t.light, require_theme.constructiveTheme.light);
|
|
299
|
+
const dark = deriveModeTokens(t.dark, require_theme.constructiveTheme.dark);
|
|
300
|
+
light["shadow-border"] = shadowBorderRecipe(t.hairline, t.elevation, false);
|
|
301
|
+
dark["shadow-border"] = shadowBorderRecipe(t.hairline, t.elevation, true);
|
|
302
|
+
return {
|
|
303
|
+
light,
|
|
304
|
+
dark,
|
|
305
|
+
shared: {
|
|
306
|
+
radius: `${round3(t.radius)}rem`,
|
|
307
|
+
"font-sans": t.fontSans,
|
|
308
|
+
"duration-fast": `${Math.round(t.tiers.fast.duration * 1e3)}ms`,
|
|
309
|
+
"duration-moderate": `${Math.round(t.tiers.moderate.duration * 1e3)}ms`,
|
|
310
|
+
"duration-slow": `${Math.round(t.tiers.slow.duration * 1e3)}ms`,
|
|
311
|
+
"duration-fast-exit": `${Math.round(t.tiers.fast.exitDuration * 1e3)}ms`,
|
|
312
|
+
"duration-moderate-exit": `${Math.round(t.tiers.moderate.exitDuration * 1e3)}ms`,
|
|
313
|
+
"duration-slow-exit": `${Math.round(t.tiers.slow.exitDuration * 1e3)}ms`
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
/** ` --k: v;` lines. */
|
|
318
|
+
function toCssDeclarations(map, indent = " ") {
|
|
319
|
+
return Object.entries(map).map(([key, value]) => `${indent}--${key}: ${value};`).join("\n");
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* `:root {…}\n.dark {…}` override sheet. Shared tokens live on `:root` only —
|
|
323
|
+
* custom properties inherit, so `.dark` picks them up automatically.
|
|
324
|
+
*/
|
|
325
|
+
function themeOverrideStyleSheet(overrides) {
|
|
326
|
+
return `:root {\n${toCssDeclarations({
|
|
327
|
+
...overrides.light,
|
|
328
|
+
...overrides.shared
|
|
329
|
+
})}\n}\n.dark {\n${toCssDeclarations(overrides.dark)}\n}\n`;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
//#endregion
|
|
333
|
+
exports.NEUTRAL_CHROMA_WEIGHTS = NEUTRAL_CHROMA_WEIGHTS;
|
|
334
|
+
exports.NEUTRAL_REFERENCE_HUE = NEUTRAL_REFERENCE_HUE;
|
|
335
|
+
exports.contrastRatio = contrastRatio;
|
|
336
|
+
exports.defaultThemeTuning = defaultThemeTuning;
|
|
337
|
+
exports.deriveModeTokens = deriveModeTokens;
|
|
338
|
+
exports.formatOklch = formatOklch;
|
|
339
|
+
exports.linkColorFor = linkColorFor;
|
|
340
|
+
exports.modeTuningDefaults = modeTuningDefaults;
|
|
341
|
+
exports.oklchToLinearSrgb = oklchToLinearSrgb;
|
|
342
|
+
exports.parseColor = parseColor;
|
|
343
|
+
exports.parseOklch = parseOklch;
|
|
344
|
+
exports.relativeLuminance = relativeLuminance;
|
|
345
|
+
exports.resolveThemeTuning = resolveThemeTuning;
|
|
346
|
+
exports.shadowBorderRecipe = shadowBorderRecipe;
|
|
347
|
+
exports.themeOverrideStyleSheet = themeOverrideStyleSheet;
|
|
348
|
+
exports.toCssDeclarations = toCssDeclarations;
|
|
349
|
+
//# sourceMappingURL=theme-tuning.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-tuning.cjs","names":["constructiveTheme","DEFAULT_SPRING_TIERS"],"sources":["../src/theme-tuning.ts"],"sourcesContent":["import { DEFAULT_SPRING_TIERS, type SpringTiers } from './lib/motion/tuning';\nimport { constructiveTheme, type ThemeTokenMap } from './theme';\n\n/**\n * Shared theme-derivation math.\n *\n * Pure functions (no React) that derive a tuned token set from the shipped\n * `constructiveTheme` maps. The Storybook DialKit panel (stories/theme-dials)\n * and the docs theme playground both build on these, so a theme change only\n * needs to land in theme.ts — defaults and exports stay in sync.\n */\n\nexport interface OklchParts {\n\tl: number;\n\tc: number;\n\th: number;\n}\n\nfunction round3(n: number) {\n\treturn Math.round(n * 1000) / 1000;\n}\n\nconst OKLCH_RE = /oklch\\(\\s*([\\d.]+)\\s+([\\d.]+)\\s+([\\d.]+)/;\nconst HSL_RE = /hsla?\\(\\s*(-?[\\d.]+)(?:deg)?[\\s,]+([\\d.]+)%[\\s,]+([\\d.]+)%/;\nconst HEX_RE = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i;\nconst RGB_RE = /rgba?\\(\\s*([\\d.]+)[\\s,]+([\\d.]+)[\\s,]+([\\d.]+)/;\n\n/** hsl (deg / % / %) → sRGB channels in [0, 1]. Alpha is ignored. */\nfunction hslToSrgb(hDeg: number, sPct: number, lPct: number): [number, number, number] {\n\tconst h = (((hDeg % 360) + 360) % 360) / 360;\n\tconst s = sPct / 100;\n\tconst l = lPct / 100;\n\tconst a = s * Math.min(l, 1 - l);\n\tconst f = (n: number) => {\n\t\tconst k = (n + h * 12) % 12;\n\t\treturn l - a * Math.max(-1, Math.min(k - 3, 9 - k, 1));\n\t};\n\treturn [f(0), f(8), f(4)];\n}\n\n/** sRGB channels [0, 1] → linear → OKLab → OKLCH (standard matrices). */\nfunction srgbToOklch(r: number, g: number, b: number): OklchParts {\n\tconst lin = (c: number) => (c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4);\n\tconst [lr, lg, lb] = [lin(r), lin(g), lin(b)];\n\tconst l = 0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb;\n\tconst m = 0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb;\n\tconst s = 0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb;\n\tconst l_ = Math.cbrt(l);\n\tconst m_ = Math.cbrt(m);\n\tconst s_ = Math.cbrt(s);\n\tconst L = 0.2104542553 * l_ + 0.793617785 * m_ - 0.0040720468 * s_;\n\tconst a = 1.9779984951 * l_ - 2.428592205 * m_ + 0.4505937099 * s_;\n\tconst b2 = 0.0259040371 * l_ + 0.7827717662 * m_ - 0.808675766 * s_;\n\tconst c = Math.hypot(a, b2);\n\tif (c < 1e-4) return { l: L, c: 0, h: 0 };\n\treturn { l: L, c, h: ((Math.atan2(b2, a) * 180) / Math.PI + 360) % 360 };\n}\n\n/**\n * Parse `oklch(L C H)`, `hsl(H S% L%)` (space or comma syntax, alpha ignored),\n * `#rgb`/`#rrggbb`, or `rgb(r g b)` into OKLCH parts. Anything unparseable\n * falls back to zeros.\n */\nexport function parseColor(css: string | undefined): OklchParts {\n\tconst input = (css ?? '').trim();\n\tconst oklch = OKLCH_RE.exec(input);\n\tif (oklch) return { l: Number(oklch[1]), c: Number(oklch[2]), h: Number(oklch[3]) };\n\tconst hsl = HSL_RE.exec(input);\n\tif (hsl) return srgbToOklch(...hslToSrgb(Number(hsl[1]), Number(hsl[2]), Number(hsl[3])));\n\tconst hex = HEX_RE.exec(input);\n\tif (hex) {\n\t\tconst raw =\n\t\t\thex[1].length === 3\n\t\t\t\t? hex[1].split('').map((ch) => ch + ch).join('')\n\t\t\t\t: hex[1];\n\t\treturn srgbToOklch(\n\t\t\tparseInt(raw.slice(0, 2), 16) / 255,\n\t\t\tparseInt(raw.slice(2, 4), 16) / 255,\n\t\t\tparseInt(raw.slice(4, 6), 16) / 255,\n\t\t);\n\t}\n\tconst rgb = RGB_RE.exec(input);\n\tif (rgb) return srgbToOklch(Number(rgb[1]) / 255, Number(rgb[2]) / 255, Number(rgb[3]) / 255);\n\treturn { l: 0, c: 0, h: 0 };\n}\n\n/** Alias kept for existing imports — identical to `parseColor`. */\nexport function parseOklch(css: string | undefined): OklchParts {\n\treturn parseColor(css);\n}\n\n/** OKLCH → linear sRGB channels clamped to [0, 1] (standard OKLab matrices). */\nexport function oklchToLinearSrgb(l: number, c: number, h: number): [number, number, number] {\n\tconst hr = (h * Math.PI) / 180;\n\tconst a = c * Math.cos(hr);\n\tconst b = c * Math.sin(hr);\n\tconst l_ = l + 0.3963377774 * a + 0.2158037573 * b;\n\tconst m_ = l - 0.1055613458 * a - 0.0638541728 * b;\n\tconst s_ = l - 0.0894841775 * a - 1.291485548 * b;\n\tconst l3 = l_ ** 3;\n\tconst m3 = m_ ** 3;\n\tconst s3 = s_ ** 3;\n\tconst clamp = (v: number) => Math.min(1, Math.max(0, v));\n\treturn [\n\t\tclamp(4.0767416621 * l3 - 3.3077115913 * m3 + 0.2309699292 * s3),\n\t\tclamp(-1.2684380046 * l3 + 2.6097574011 * m3 - 0.3413193965 * s3),\n\t\tclamp(-0.0041960863 * l3 - 0.7034186147 * m3 + 1.707614701 * s3),\n\t];\n}\n\n/** WCAG relative luminance of linear sRGB channels. */\nexport function relativeLuminance(rgb: [number, number, number]): number {\n\treturn 0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2];\n}\n\n/** WCAG contrast ratio between two OKLCH colors (1–21). */\nexport function contrastRatio(a: OklchParts, b: OklchParts): number {\n\tconst la = relativeLuminance(oklchToLinearSrgb(a.l, a.c, a.h));\n\tconst lb = relativeLuminance(oklchToLinearSrgb(b.l, b.c, b.h));\n\tconst [lighter, darker] = la >= lb ? [la, lb] : [lb, la];\n\treturn (lighter + 0.05) / (darker + 0.05);\n}\n\n/**\n * The accent as *text* on a surface: the accent itself when it already clears\n * 4.5:1 against `background`, otherwise its lightness stepped (darker on light\n * surfaces, lighter on dark ones) until the emitted 3-dp value does. Solid\n * fills keep the vivid accent; links and labels use this.\n */\nexport function linkColorFor(accent: OklchParts, background: OklchParts): OklchParts {\n\tconst emitted = (c: OklchParts) => parseColor(formatOklch(c.l, c.c, c.h));\n\tconst step = background.l > 0.5 ? -0.01 : 0.01;\n\tlet current = accent;\n\tfor (let i = 0; i < 60 && contrastRatio(emitted(current), emitted(background)) < 4.5; i++) {\n\t\tcurrent = { l: Math.min(1, Math.max(0, current.l + step)), c: current.c, h: current.h };\n\t}\n\treturn current;\n}\n\n/** Format with 3-decimal rounding: `oklch(0.565 0.215 259)`. */\nexport function formatOklch(l: number, c: number, h: number) {\n\treturn `oklch(${round3(l)} ${round3(c)} ${round3(h)})`;\n}\n\n/**\n * Chroma each neutral token carried in the previous cool ramp — the reference\n * `neutralChroma` multiplies. The shipped ramp is pure-neutral hsl (chroma 0),\n * so tinting needs a remembered reference rather than the shipped chroma.\n */\nexport const NEUTRAL_CHROMA_WEIGHTS: Record<string, number> = {\n\tbackground: 0.003,\n\tcard: 0,\n\tpopover: 0,\n\tsecondary: 0.006,\n\tmuted: 0.006,\n\taccent: 0.006,\n\tborder: 0.008,\n\tinput: 0.008,\n\tsidebar: 0.004,\n\t'sidebar-accent': 0.006,\n\t'sidebar-border': 0.008,\n\tforeground: 0.02,\n\t'card-foreground': 0.02,\n\t'popover-foreground': 0.02,\n\t'secondary-foreground': 0.02,\n\t'accent-foreground': 0.02,\n\t'sidebar-foreground': 0.02,\n\t'sidebar-accent-foreground': 0.02,\n\t'muted-foreground': 0.025,\n\t'subtle-foreground': 0.022,\n};\n\n/** Hue used when the shipped ramp carries no chroma to read one from. */\nexport const NEUTRAL_REFERENCE_HUE = 250;\n\n/** Per-mode tuning inputs; lightness keys default from the shipped map. */\nexport interface ModeTuning {\n\t/** Shared hue for every neutral token. */\n\tneutralHue: number;\n\t/** Multiplier on each token's `NEUTRAL_CHROMA_WEIGHTS` reference (1 = cool ramp). */\n\tneutralChroma: number;\n\tbackgroundL: number;\n\tcardL: number;\n\tpopoverL: number;\n\tmutedL: number;\n\tborderL: number;\n\tinputL: number;\n\tringL: number;\n\tforegroundL: number;\n\tmutedForegroundL: number;\n\tsubtleForegroundL: number;\n\tsidebarL: number;\n\taccentL: number;\n\taccentC: number;\n\taccentH: number;\n\taccentForegroundL: number;\n}\n\n/** Tuning defaults read straight out of a shipped theme token map. */\nexport function modeTuningDefaults(base: ThemeTokenMap): ModeTuning {\n\tconst L = (key: string) => parseColor(base[key]).l;\n\tconst accent = parseColor(base.primary);\n\tconst border = parseColor(base.border);\n\treturn {\n\t\t// A chroma-0 ramp carries no hue to read — fall back to the reference.\n\t\tneutralHue: border.c > 1e-3 ? border.h : NEUTRAL_REFERENCE_HUE,\n\t\tneutralChroma: border.c / (NEUTRAL_CHROMA_WEIGHTS.border ?? 1),\n\t\tbackgroundL: L('background'),\n\t\tcardL: L('card'),\n\t\tpopoverL: L('popover'),\n\t\tmutedL: L('muted'),\n\t\tborderL: L('border'),\n\t\tinputL: L('input'),\n\t\tringL: L('ring'),\n\t\tforegroundL: L('foreground'),\n\t\tmutedForegroundL: L('muted-foreground'),\n\t\tsubtleForegroundL: L('subtle-foreground'),\n\t\tsidebarL: L('sidebar'),\n\t\taccentL: accent.l,\n\t\taccentC: accent.c,\n\t\taccentH: accent.h,\n\t\taccentForegroundL: L('primary-foreground'),\n\t};\n}\n\n/**\n * Derive the neutral + accent token set for one mode.\n *\n * Neutral chroma comes from `NEUTRAL_CHROMA_WEIGHTS[key] * neutralChroma` —\n * the Phase 1 cool ramp as reference — with one shared `neutralHue`, so\n * tinting still works now that the shipped ramp is pure-neutral hsl.\n * `refL` is the tuning input for the token's family; each token keeps its\n * shipped lightness offset inside that family (e.g. sidebar-foreground sits\n * above foreground) so defaults reproduce the shipped map. The ring IS the\n * accent in this theme — only its lightness is tuned separately.\n */\nexport function deriveModeTokens(tuning: ModeTuning, base: ThemeTokenMap): Record<string, string> {\n\tconst n = (key: string, refKey: string, refL: number) => {\n\t\tconst shipped = parseColor(base[key]);\n\t\tconst ref = parseColor(base[refKey]);\n\t\treturn formatOklch(\n\t\t\trefL + (shipped.l - ref.l),\n\t\t\t(NEUTRAL_CHROMA_WEIGHTS[key] ?? 0) * tuning.neutralChroma,\n\t\t\ttuning.neutralHue,\n\t\t);\n\t};\n\tconst primary = formatOklch(tuning.accentL, tuning.accentC, tuning.accentH);\n\tconst ring = formatOklch(tuning.ringL, tuning.accentC, tuning.accentH);\n\tconst background = n('background', 'background', tuning.backgroundL);\n\tconst linkParts = linkColorFor(\n\t\t{ l: tuning.accentL, c: tuning.accentC, h: tuning.accentH },\n\t\tparseColor(background),\n\t);\n\tconst link = formatOklch(linkParts.l, linkParts.c, linkParts.h);\n\tconst accentForeground = formatOklch(\n\t\ttuning.accentForegroundL,\n\t\tparseColor(base['primary-foreground']).c,\n\t\tparseColor(base['primary-foreground']).h,\n\t);\n\treturn {\n\t\tbackground,\n\t\tforeground: n('foreground', 'foreground', tuning.foregroundL),\n\t\tcard: n('card', 'card', tuning.cardL),\n\t\t'card-foreground': n('card-foreground', 'foreground', tuning.foregroundL),\n\t\tpopover: n('popover', 'popover', tuning.popoverL),\n\t\t'popover-foreground': n('popover-foreground', 'foreground', tuning.foregroundL),\n\t\tprimary,\n\t\t'primary-foreground': accentForeground,\n\t\tsecondary: n('secondary', 'muted', tuning.mutedL),\n\t\t'secondary-foreground': n('secondary-foreground', 'foreground', tuning.foregroundL),\n\t\tmuted: n('muted', 'muted', tuning.mutedL),\n\t\t'muted-foreground': n('muted-foreground', 'muted-foreground', tuning.mutedForegroundL),\n\t\t'subtle-foreground': n('subtle-foreground', 'subtle-foreground', tuning.subtleForegroundL),\n\t\taccent: n('accent', 'muted', tuning.mutedL),\n\t\t'accent-foreground': n('accent-foreground', 'foreground', tuning.foregroundL),\n\t\tborder: n('border', 'border', tuning.borderL),\n\t\tinput: n('input', 'input', tuning.inputL),\n\t\tring,\n\t\tlink,\n\t\tsidebar: n('sidebar', 'sidebar', tuning.sidebarL),\n\t\t'sidebar-foreground': n('sidebar-foreground', 'foreground', tuning.foregroundL),\n\t\t'sidebar-primary': primary,\n\t\t'sidebar-primary-foreground': accentForeground,\n\t\t'sidebar-accent': n('sidebar-accent', 'muted', tuning.mutedL),\n\t\t'sidebar-accent-foreground': n('sidebar-accent-foreground', 'foreground', tuning.foregroundL),\n\t\t'sidebar-border': n('sidebar-border', 'border', tuning.borderL),\n\t\t'sidebar-ring': ring,\n\t};\n}\n\n/**\n * Hairline + stacked-drop recipe matching theme.ts so default tuning\n * reproduces shipped `--shadow-border` tokens exactly.\n *\n * Shipped hairline alphas differ per mode (light 0.08 / dark 0.10) — the\n * input tunes the light value and dark keeps the shipped 0.10/0.08 ratio.\n * Drops are the first three elevation-ladder layers scaled by `elevation`\n * on a neutral black umbra (light alpha 0.06, dark 0.22); dark prepends the\n * lit top edge. The hairline is inset in both modes, so an overflow boundary\n * can clip the soft drops but never the edge.\n */\nexport function shadowBorderRecipe(hairlineAlpha: number, elevation: number, dark: boolean): string {\n\tconst ringAlpha = dark ? Math.min(1, hairlineAlpha * (0.1 / 0.08)) : hairlineAlpha;\n\tconst ringColor = dark ? `oklch(1 0 0 / ${round3(ringAlpha)})` : `oklch(0 0 0 / ${round3(ringAlpha)})`;\n\tconst shade = '0 0 0';\n\tconst alpha = round3((dark ? 0.22 : 0.06) * elevation);\n\tconst scale = (v: number) => round3(v * elevation);\n\tconst layers = [\n\t\t`0 ${scale(1)}px ${scale(1)}px -0.5px rgb(${shade} / ${alpha})`,\n\t\t`0 ${scale(3)}px ${scale(3)}px -1.5px rgb(${shade} / ${alpha})`,\n\t\t`0 ${scale(6)}px ${scale(6)}px -3px rgb(${shade} / ${alpha})`,\n\t];\n\treturn [\n\t\t...(dark ? [`inset 0 1px 0 0 rgb(255 255 255 / ${round3(0.04 * elevation)})`] : []),\n\t\t`inset 0 0 0 1px ${ringColor}`,\n\t\t...layers,\n\t].join(', ');\n}\n\n/** Whole-theme tuning state — per-mode token tuning plus the shared knobs. */\nexport interface ThemeTuning {\n\tlight: ModeTuning;\n\tdark: ModeTuning;\n\t/** --radius in rem. */\n\tradius: number;\n\t/** Light hairline alpha (dark keeps the shipped 0.10/0.08 ratio). */\n\thairline: number;\n\t/** Umbra multiplier on the card drop layers. */\n\televation: number;\n\t/** CSS stack written to --font-sans. */\n\tfontSans: string;\n\ttiers: SpringTiers;\n}\n\n/** Tuning state that reproduces the shipped theme exactly. */\nexport function defaultThemeTuning(): ThemeTuning {\n\treturn {\n\t\tlight: modeTuningDefaults(constructiveTheme.light),\n\t\tdark: modeTuningDefaults(constructiveTheme.dark),\n\t\tradius: parseFloat(constructiveTheme.light.radius) || 0.625,\n\t\thairline: 0.08,\n\t\televation: 1,\n\t\tfontSans: constructiveTheme.fonts['--font-sans'],\n\t\ttiers: {\n\t\t\tfast: { ...DEFAULT_SPRING_TIERS.fast },\n\t\t\tmoderate: { ...DEFAULT_SPRING_TIERS.moderate },\n\t\t\tslow: { ...DEFAULT_SPRING_TIERS.slow },\n\t\t},\n\t};\n}\n\n/** Resolve a full tuning state to `:root`/`.dark`/shared token overrides. */\nexport function resolveThemeTuning(t: ThemeTuning): {\n\tlight: Record<string, string>;\n\tdark: Record<string, string>;\n\tshared: Record<string, string>;\n} {\n\tconst light = deriveModeTokens(t.light, constructiveTheme.light);\n\tconst dark = deriveModeTokens(t.dark, constructiveTheme.dark);\n\tlight['shadow-border'] = shadowBorderRecipe(t.hairline, t.elevation, false);\n\tdark['shadow-border'] = shadowBorderRecipe(t.hairline, t.elevation, true);\n\tconst shared: Record<string, string> = {\n\t\tradius: `${round3(t.radius)}rem`,\n\t\t'font-sans': t.fontSans,\n\t\t'duration-fast': `${Math.round(t.tiers.fast.duration * 1000)}ms`,\n\t\t'duration-moderate': `${Math.round(t.tiers.moderate.duration * 1000)}ms`,\n\t\t'duration-slow': `${Math.round(t.tiers.slow.duration * 1000)}ms`,\n\t\t'duration-fast-exit': `${Math.round(t.tiers.fast.exitDuration * 1000)}ms`,\n\t\t'duration-moderate-exit': `${Math.round(t.tiers.moderate.exitDuration * 1000)}ms`,\n\t\t'duration-slow-exit': `${Math.round(t.tiers.slow.exitDuration * 1000)}ms`,\n\t};\n\treturn { light, dark, shared };\n}\n\n/** ` --k: v;` lines. */\nexport function toCssDeclarations(map: Record<string, string>, indent = ' ') {\n\treturn Object.entries(map)\n\t\t.map(([key, value]) => `${indent}--${key}: ${value};`)\n\t\t.join('\\n');\n}\n\n/**\n * `:root {…}\\n.dark {…}` override sheet. Shared tokens live on `:root` only —\n * custom properties inherit, so `.dark` picks them up automatically.\n */\nexport function themeOverrideStyleSheet(overrides: {\n\tlight: Record<string, string>;\n\tdark: Record<string, string>;\n\tshared: Record<string, string>;\n}) {\n\treturn `:root {\\n${toCssDeclarations({ ...overrides.light, ...overrides.shared })}\\n}\\n.dark {\\n${toCssDeclarations(overrides.dark)}\\n}\\n`;\n}\n"],"mappings":";;;;;;AAkBA,SAAS,OAAO,GAAW;CAC1B,OAAO,KAAK,MAAM,IAAI,GAAI,IAAI;AAC/B;AAEA,MAAM,WAAW;AACjB,MAAM,SAAS;AACf,MAAM,SAAS;AACf,MAAM,SAAS;;AAGf,SAAS,UAAU,MAAc,MAAc,MAAwC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gBAAgB,kBAAkB,UAAU,IAAI,EAAE;AACrI"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { _ as shadowBorderRecipe, a as ThemeTuning, c as deriveModeTokens, d as modeTuningDefaults, f as oklchToLinearSrgb, g as resolveThemeTuning, h as relativeLuminance, i as OklchParts, l as formatOklch, m as parseOklch, n as NEUTRAL_CHROMA_WEIGHTS, o as contrastRatio, p as parseColor, r as NEUTRAL_REFERENCE_HUE, s as defaultThemeTuning, t as ModeTuning, u as linkColorFor, v as themeOverrideStyleSheet, y as toCssDeclarations } from "./theme-tuning-TJ76tnxZ.cjs";
|
|
2
|
+
export { ModeTuning, NEUTRAL_CHROMA_WEIGHTS, NEUTRAL_REFERENCE_HUE, OklchParts, ThemeTuning, contrastRatio, defaultThemeTuning, deriveModeTokens, formatOklch, linkColorFor, modeTuningDefaults, oklchToLinearSrgb, parseColor, parseOklch, relativeLuminance, resolveThemeTuning, shadowBorderRecipe, themeOverrideStyleSheet, toCssDeclarations };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { _ as shadowBorderRecipe, a as ThemeTuning, c as deriveModeTokens, d as modeTuningDefaults, f as oklchToLinearSrgb, g as resolveThemeTuning, h as relativeLuminance, i as OklchParts, l as formatOklch, m as parseOklch, n as NEUTRAL_CHROMA_WEIGHTS, o as contrastRatio, p as parseColor, r as NEUTRAL_REFERENCE_HUE, s as defaultThemeTuning, t as ModeTuning, u as linkColorFor, v as themeOverrideStyleSheet, y as toCssDeclarations } from "./theme-tuning-DjgDvV8V.js";
|
|
2
|
+
export { ModeTuning, NEUTRAL_CHROMA_WEIGHTS, NEUTRAL_REFERENCE_HUE, OklchParts, ThemeTuning, contrastRatio, defaultThemeTuning, deriveModeTokens, formatOklch, linkColorFor, modeTuningDefaults, oklchToLinearSrgb, parseColor, parseOklch, relativeLuminance, resolveThemeTuning, shadowBorderRecipe, themeOverrideStyleSheet, toCssDeclarations };
|