@bevelo/vue 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/dist/accordion.cjs +89 -0
- package/dist/accordion.d.cts +145 -0
- package/dist/accordion.d.ts +145 -0
- package/dist/accordion.js +88 -0
- package/dist/agent.cjs +74 -0
- package/dist/agent.d.cts +2 -0
- package/dist/agent.d.ts +2 -0
- package/dist/agent.js +1 -0
- package/dist/alert-dialog.cjs +48 -0
- package/dist/alert-dialog.d.cts +142 -0
- package/dist/alert-dialog.d.ts +142 -0
- package/dist/alert-dialog.js +47 -0
- package/dist/alert.cjs +77 -0
- package/dist/alert.d.cts +64 -0
- package/dist/alert.d.ts +64 -0
- package/dist/alert.js +76 -0
- package/dist/aspect-ratio.cjs +21 -0
- package/dist/aspect-ratio.d.cts +13 -0
- package/dist/aspect-ratio.d.ts +13 -0
- package/dist/aspect-ratio.js +21 -0
- package/dist/async-options.cjs +76 -0
- package/dist/async-options.d.cts +49 -0
- package/dist/async-options.d.ts +49 -0
- package/dist/async-options.js +75 -0
- package/dist/autocomplete.cjs +274 -0
- package/dist/autocomplete.d.cts +309 -0
- package/dist/autocomplete.d.ts +309 -0
- package/dist/autocomplete.js +273 -0
- package/dist/avatar.cjs +51 -0
- package/dist/avatar.d.cts +69 -0
- package/dist/avatar.d.ts +69 -0
- package/dist/avatar.js +50 -0
- package/dist/badge.cjs +41 -0
- package/dist/badge.d.cts +39 -0
- package/dist/badge.d.ts +39 -0
- package/dist/badge.js +40 -0
- package/dist/breadcrumb.cjs +59 -0
- package/dist/breadcrumb.d.cts +40 -0
- package/dist/breadcrumb.d.ts +40 -0
- package/dist/breadcrumb.js +58 -0
- package/dist/button.cjs +56 -0
- package/dist/button.d.cts +79 -0
- package/dist/button.d.ts +79 -0
- package/dist/button.js +55 -0
- package/dist/calendar-Bcc6HKc9.js +643 -0
- package/dist/calendar-vHGhj3RI.cjs +720 -0
- package/dist/calendar.cjs +4 -0
- package/dist/calendar.d.cts +316 -0
- package/dist/calendar.d.ts +316 -0
- package/dist/calendar.js +1 -0
- package/dist/card-B_ZoLCvt.d.cts +61 -0
- package/dist/card-B_ZoLCvt.d.ts +61 -0
- package/dist/card-CZHRix0r.js +99 -0
- package/dist/card-CvGfpsiU.cjs +140 -0
- package/dist/card.cjs +9 -0
- package/dist/card.d.cts +2 -0
- package/dist/card.d.ts +2 -0
- package/dist/card.js +1 -0
- package/dist/carousel.cjs +225 -0
- package/dist/carousel.d.cts +214 -0
- package/dist/carousel.d.ts +214 -0
- package/dist/carousel.js +224 -0
- package/dist/checkbox-group.cjs +93 -0
- package/dist/checkbox-group.d.cts +108 -0
- package/dist/checkbox-group.d.ts +108 -0
- package/dist/checkbox-group.js +91 -0
- package/dist/checkbox.cjs +117 -0
- package/dist/checkbox.d.cts +153 -0
- package/dist/checkbox.d.ts +153 -0
- package/dist/checkbox.js +116 -0
- package/dist/collapsible.cjs +70 -0
- package/dist/collapsible.d.cts +141 -0
- package/dist/collapsible.d.ts +141 -0
- package/dist/collapsible.js +69 -0
- package/dist/color-picker.cjs +225 -0
- package/dist/color-picker.d.cts +180 -0
- package/dist/color-picker.d.ts +180 -0
- package/dist/color-picker.js +212 -0
- package/dist/combobox-CDHIXr6J.d.ts +735 -0
- package/dist/combobox-D39Waj6L.d.cts +735 -0
- package/dist/combobox-DlCU0vS1.cjs +945 -0
- package/dist/combobox-wLdV6VA_.js +802 -0
- package/dist/combobox.cjs +26 -0
- package/dist/combobox.d.cts +3 -0
- package/dist/combobox.d.ts +3 -0
- package/dist/combobox.js +1 -0
- package/dist/command-CEJACYpR.d.ts +404 -0
- package/dist/command-CqHZVivR.js +693 -0
- package/dist/command-D54bj6RJ.cjs +836 -0
- package/dist/command-rAVp-wbf.d.cts +404 -0
- package/dist/command.cjs +15 -0
- package/dist/command.d.cts +2 -0
- package/dist/command.d.ts +2 -0
- package/dist/command.js +1 -0
- package/dist/context-menu-BPsgeLQm.cjs +170 -0
- package/dist/context-menu-ByhKzWTm.d.ts +129 -0
- package/dist/context-menu-Co3ABcdp.js +153 -0
- package/dist/context-menu-USbhMQuc.d.cts +129 -0
- package/dist/context-menu.cjs +6 -0
- package/dist/context-menu.d.cts +2 -0
- package/dist/context-menu.d.ts +2 -0
- package/dist/context-menu.js +2 -0
- package/dist/date-input.cjs +374 -0
- package/dist/date-input.d.cts +234 -0
- package/dist/date-input.d.ts +234 -0
- package/dist/date-input.js +371 -0
- package/dist/date-picker-D1mygz_Y.js +891 -0
- package/dist/date-picker-D_hqHHAV.cjs +938 -0
- package/dist/date-picker.cjs +4 -0
- package/dist/date-picker.d.cts +447 -0
- package/dist/date-picker.d.ts +447 -0
- package/dist/date-picker.js +1 -0
- package/dist/describe-BlNg9SbK.js +25 -0
- package/dist/describe-D_dLtwde.cjs +42 -0
- package/dist/dialog-view-CKtpbGq_.js +26 -0
- package/dist/dialog-view-swgEQvlZ.cjs +31 -0
- package/dist/dialog.cjs +66 -0
- package/dist/dialog.d.cts +158 -0
- package/dist/dialog.d.ts +158 -0
- package/dist/dialog.js +63 -0
- package/dist/direction.cjs +21 -0
- package/dist/direction.d.cts +13 -0
- package/dist/direction.d.ts +13 -0
- package/dist/direction.js +21 -0
- package/dist/dnd.cjs +103 -0
- package/dist/dnd.d.cts +54 -0
- package/dist/dnd.d.ts +54 -0
- package/dist/dnd.js +98 -0
- package/dist/drawer.cjs +137 -0
- package/dist/drawer.d.cts +190 -0
- package/dist/drawer.d.ts +190 -0
- package/dist/drawer.js +134 -0
- package/dist/empty-state.cjs +75 -0
- package/dist/empty-state.d.cts +46 -0
- package/dist/empty-state.d.ts +46 -0
- package/dist/empty-state.js +74 -0
- package/dist/engine-refs-8O6mHfYd.d.cts +4 -0
- package/dist/engine-refs-8O6mHfYd.d.ts +4 -0
- package/dist/engine-refs-CPWFFTfA.cjs +32 -0
- package/dist/engine-refs-sojZQs1R.js +21 -0
- package/dist/error-state.cjs +86 -0
- package/dist/error-state.d.cts +54 -0
- package/dist/error-state.d.ts +54 -0
- package/dist/error-state.js +85 -0
- package/dist/field.cjs +123 -0
- package/dist/field.d.cts +100 -0
- package/dist/field.d.ts +100 -0
- package/dist/field.js +122 -0
- package/dist/file-input.cjs +117 -0
- package/dist/file-input.d.cts +168 -0
- package/dist/file-input.d.ts +168 -0
- package/dist/file-input.js +116 -0
- package/dist/form-CKus_NQE.cjs +23 -0
- package/dist/form-y7b0fcqL.js +18 -0
- package/dist/gauge-parts-BVmw61GR.js +64 -0
- package/dist/gauge-parts-DjqBK9pL.d.cts +15 -0
- package/dist/gauge-parts-V31Fma77.cjs +75 -0
- package/dist/gauge-parts-mAgseDD4.d.ts +15 -0
- package/dist/headless-B3zQWaJm.js +225 -0
- package/dist/headless-BQe1X1Vf.d.ts +2 -0
- package/dist/headless-CbQgxdK1.d.cts +2 -0
- package/dist/headless-D88yFw8W.cjs +248 -0
- package/dist/hover-card.cjs +139 -0
- package/dist/hover-card.d.cts +200 -0
- package/dist/hover-card.d.ts +200 -0
- package/dist/hover-card.js +137 -0
- package/dist/icon-button.cjs +75 -0
- package/dist/icon-button.d.cts +104 -0
- package/dist/icon-button.d.ts +104 -0
- package/dist/icon-button.js +74 -0
- package/dist/image-cropper.cjs +106 -0
- package/dist/image-cropper.d.cts +7 -0
- package/dist/image-cropper.d.ts +7 -0
- package/dist/image-cropper.js +105 -0
- package/dist/image.cjs +87 -0
- package/dist/image.d.cts +92 -0
- package/dist/image.d.ts +92 -0
- package/dist/image.js +86 -0
- package/dist/index.cjs +1685 -0
- package/dist/index.d.cts +1195 -0
- package/dist/index.d.ts +1195 -0
- package/dist/index.js +1042 -0
- package/dist/input-group.cjs +91 -0
- package/dist/input-group.d.cts +84 -0
- package/dist/input-group.d.ts +84 -0
- package/dist/input-group.js +90 -0
- package/dist/input.cjs +114 -0
- package/dist/input.d.cts +186 -0
- package/dist/input.d.ts +186 -0
- package/dist/input.js +113 -0
- package/dist/item-B-QdNtAl.cjs +264 -0
- package/dist/item-D6GSb0WD.d.ts +144 -0
- package/dist/item-DPJnk7ED.js +199 -0
- package/dist/item-DyrvCrsL.d.cts +144 -0
- package/dist/item.cjs +10 -0
- package/dist/item.d.cts +2 -0
- package/dist/item.d.ts +2 -0
- package/dist/item.js +1 -0
- package/dist/kbd.cjs +55 -0
- package/dist/kbd.d.cts +38 -0
- package/dist/kbd.d.ts +38 -0
- package/dist/kbd.js +54 -0
- package/dist/label.cjs +41 -0
- package/dist/label.d.cts +40 -0
- package/dist/label.d.ts +40 -0
- package/dist/label.js +40 -0
- package/dist/listbox.cjs +85 -0
- package/dist/listbox.d.cts +200 -0
- package/dist/listbox.d.ts +200 -0
- package/dist/listbox.js +84 -0
- package/dist/loader.cjs +66 -0
- package/dist/loader.d.cts +68 -0
- package/dist/loader.d.ts +68 -0
- package/dist/loader.js +65 -0
- package/dist/mention-menu.cjs +126 -0
- package/dist/mention-menu.d.cts +144 -0
- package/dist/mention-menu.d.ts +144 -0
- package/dist/mention-menu.js +125 -0
- package/dist/menu.cjs +182 -0
- package/dist/menu.d.cts +240 -0
- package/dist/menu.d.ts +240 -0
- package/dist/menu.js +181 -0
- package/dist/menubar.cjs +38 -0
- package/dist/menubar.d.cts +43 -0
- package/dist/menubar.d.ts +43 -0
- package/dist/menubar.js +37 -0
- package/dist/meter.cjs +113 -0
- package/dist/meter.d.cts +124 -0
- package/dist/meter.d.ts +124 -0
- package/dist/meter.js +108 -0
- package/dist/native-select-52jYpA3c.d.cts +136 -0
- package/dist/native-select-BdJojSQt.d.ts +136 -0
- package/dist/native-select-BwptULNE.js +129 -0
- package/dist/native-select-DjBGWFoh.cjs +146 -0
- package/dist/native-select.cjs +5 -0
- package/dist/native-select.d.cts +2 -0
- package/dist/native-select.d.ts +2 -0
- package/dist/native-select.js +1 -0
- package/dist/navigation-menu.cjs +108 -0
- package/dist/navigation-menu.d.cts +245 -0
- package/dist/navigation-menu.d.ts +245 -0
- package/dist/navigation-menu.js +107 -0
- package/dist/number-input.cjs +189 -0
- package/dist/number-input.d.cts +232 -0
- package/dist/number-input.d.ts +232 -0
- package/dist/number-input.js +187 -0
- package/dist/option-row-DFCj-NoL.js +64 -0
- package/dist/option-row-Dlc6brXH.d.cts +30 -0
- package/dist/option-row-hLg6Ye86.cjs +105 -0
- package/dist/option-row-yJqjEx0G.d.ts +30 -0
- package/dist/options-BDn36q6n.cjs +111 -0
- package/dist/options-BlkyK-uO.js +106 -0
- package/dist/options-CGl5jBEY.d.ts +19 -0
- package/dist/options-DUGLoksA.d.cts +19 -0
- package/dist/otp-input.cjs +85 -0
- package/dist/otp-input.d.cts +113 -0
- package/dist/otp-input.d.ts +113 -0
- package/dist/otp-input.js +84 -0
- package/dist/overlay-controller-78GSJGbM.js +76 -0
- package/dist/overlay-controller-BDeITPoR.d.cts +16 -0
- package/dist/overlay-controller-DmaZ8FLl.cjs +93 -0
- package/dist/overlay-controller-HrMdTomI.d.ts +16 -0
- package/dist/pagination.cjs +87 -0
- package/dist/pagination.d.cts +112 -0
- package/dist/pagination.d.ts +112 -0
- package/dist/pagination.js +86 -0
- package/dist/parts-9zrUGbuI.js +84 -0
- package/dist/parts-DcYZV8ug.cjs +95 -0
- package/dist/password-input.cjs +144 -0
- package/dist/password-input.d.cts +151 -0
- package/dist/password-input.d.ts +151 -0
- package/dist/password-input.js +143 -0
- package/dist/placement-C_WRqvZk.js +49 -0
- package/dist/placement-ChEh6uxa.cjs +60 -0
- package/dist/popover.cjs +159 -0
- package/dist/popover.d.cts +185 -0
- package/dist/popover.d.ts +185 -0
- package/dist/popover.js +157 -0
- package/dist/preferences.cjs +96 -0
- package/dist/preferences.d.cts +36 -0
- package/dist/preferences.d.ts +36 -0
- package/dist/preferences.js +94 -0
- package/dist/presence.cjs +85 -0
- package/dist/presence.d.cts +25 -0
- package/dist/presence.d.ts +25 -0
- package/dist/presence.js +83 -0
- package/dist/progress.cjs +111 -0
- package/dist/progress.d.cts +109 -0
- package/dist/progress.d.ts +109 -0
- package/dist/progress.js +106 -0
- package/dist/query.cjs +152 -0
- package/dist/query.d.cts +68 -0
- package/dist/query.d.ts +68 -0
- package/dist/query.js +142 -0
- package/dist/radio.cjs +102 -0
- package/dist/radio.d.cts +136 -0
- package/dist/radio.d.ts +136 -0
- package/dist/radio.js +101 -0
- package/dist/rating.cjs +88 -0
- package/dist/rating.d.cts +100 -0
- package/dist/rating.d.ts +100 -0
- package/dist/rating.js +87 -0
- package/dist/resizable.cjs +57 -0
- package/dist/resizable.d.cts +119 -0
- package/dist/resizable.d.ts +119 -0
- package/dist/resizable.js +56 -0
- package/dist/scroll-area.cjs +59 -0
- package/dist/scroll-area.d.cts +72 -0
- package/dist/scroll-area.d.ts +72 -0
- package/dist/scroll-area.js +58 -0
- package/dist/segmented-control.cjs +88 -0
- package/dist/segmented-control.d.cts +121 -0
- package/dist/segmented-control.d.ts +121 -0
- package/dist/segmented-control.js +86 -0
- package/dist/select.cjs +160 -0
- package/dist/select.d.cts +385 -0
- package/dist/select.d.ts +385 -0
- package/dist/select.js +159 -0
- package/dist/separator.cjs +32 -0
- package/dist/separator.d.cts +31 -0
- package/dist/separator.d.ts +31 -0
- package/dist/separator.js +31 -0
- package/dist/sheet.cjs +294 -0
- package/dist/sheet.d.cts +456 -0
- package/dist/sheet.d.ts +456 -0
- package/dist/sheet.js +292 -0
- package/dist/sidebar-C-OdvGzD.d.cts +96 -0
- package/dist/sidebar-CZ1-p0-V.d.ts +96 -0
- package/dist/sidebar-DC-mpzMR.js +87 -0
- package/dist/sidebar-gSAgHdkn.cjs +110 -0
- package/dist/sidebar.cjs +6 -0
- package/dist/sidebar.d.cts +2 -0
- package/dist/sidebar.d.ts +2 -0
- package/dist/sidebar.js +1 -0
- package/dist/skeleton.cjs +46 -0
- package/dist/skeleton.d.cts +47 -0
- package/dist/skeleton.d.ts +47 -0
- package/dist/skeleton.js +45 -0
- package/dist/slider.cjs +118 -0
- package/dist/slider.d.cts +181 -0
- package/dist/slider.d.ts +181 -0
- package/dist/slider.js +117 -0
- package/dist/sortable-board-strict.cjs +149 -0
- package/dist/sortable-board-strict.d.cts +181 -0
- package/dist/sortable-board-strict.d.ts +181 -0
- package/dist/sortable-board-strict.js +148 -0
- package/dist/sortable-engine.cjs +136 -0
- package/dist/sortable-engine.d.cts +237 -0
- package/dist/sortable-engine.d.ts +237 -0
- package/dist/sortable-engine.js +135 -0
- package/dist/sortable.cjs +67 -0
- package/dist/sortable.d.cts +217 -0
- package/dist/sortable.d.ts +217 -0
- package/dist/sortable.js +66 -0
- package/dist/spinner.cjs +32 -0
- package/dist/spinner.d.cts +31 -0
- package/dist/spinner.d.ts +31 -0
- package/dist/spinner.js +31 -0
- package/dist/steps-C9Jmrt8G.cjs +122 -0
- package/dist/steps-Cs8AfxV7.js +81 -0
- package/dist/steps-DW5NkzVj.d.ts +71 -0
- package/dist/steps-ymRMdju5.d.cts +71 -0
- package/dist/steps.cjs +8 -0
- package/dist/steps.d.cts +2 -0
- package/dist/steps.d.ts +2 -0
- package/dist/steps.js +1 -0
- package/dist/switch.cjs +100 -0
- package/dist/switch.d.cts +144 -0
- package/dist/switch.d.ts +144 -0
- package/dist/switch.js +99 -0
- package/dist/table.cjs +124 -0
- package/dist/table.d.cts +124 -0
- package/dist/table.d.ts +124 -0
- package/dist/table.js +123 -0
- package/dist/tabs.cjs +89 -0
- package/dist/tabs.d.cts +160 -0
- package/dist/tabs.d.ts +160 -0
- package/dist/tabs.js +88 -0
- package/dist/textarea.cjs +140 -0
- package/dist/textarea.d.cts +231 -0
- package/dist/textarea.d.ts +231 -0
- package/dist/textarea.js +139 -0
- package/dist/time-input.cjs +117 -0
- package/dist/time-input.d.cts +140 -0
- package/dist/time-input.d.ts +140 -0
- package/dist/time-input.js +116 -0
- package/dist/timeline.cjs +82 -0
- package/dist/timeline.d.cts +62 -0
- package/dist/timeline.d.ts +62 -0
- package/dist/timeline.js +81 -0
- package/dist/toast-CfkRzdNd.js +354 -0
- package/dist/toast-DyezF7lm.cjs +401 -0
- package/dist/toast.cjs +16 -0
- package/dist/toast.d.cts +275 -0
- package/dist/toast.d.ts +275 -0
- package/dist/toast.js +1 -0
- package/dist/toggle-group.cjs +65 -0
- package/dist/toggle-group.d.cts +128 -0
- package/dist/toggle-group.d.ts +128 -0
- package/dist/toggle-group.js +64 -0
- package/dist/toggle.cjs +64 -0
- package/dist/toggle.d.cts +97 -0
- package/dist/toggle.d.ts +97 -0
- package/dist/toggle.js +63 -0
- package/dist/token-input-BIC9VLMG.d.cts +170 -0
- package/dist/token-input-BTReOHIv.cjs +336 -0
- package/dist/token-input-CQnZ6-pO.d.ts +170 -0
- package/dist/token-input-DtcCZrcC.js +295 -0
- package/dist/token-input.cjs +9 -0
- package/dist/token-input.d.cts +2 -0
- package/dist/token-input.d.ts +2 -0
- package/dist/token-input.js +1 -0
- package/dist/toolbar.cjs +62 -0
- package/dist/toolbar.d.cts +58 -0
- package/dist/toolbar.d.ts +58 -0
- package/dist/toolbar.js +61 -0
- package/dist/tooltip.cjs +149 -0
- package/dist/tooltip.d.cts +208 -0
- package/dist/tooltip.d.ts +208 -0
- package/dist/tooltip.js +147 -0
- package/dist/tree-grid.cjs +127 -0
- package/dist/tree-grid.d.cts +130 -0
- package/dist/tree-grid.d.ts +130 -0
- package/dist/tree-grid.js +126 -0
- package/dist/tree.cjs +227 -0
- package/dist/tree.d.cts +223 -0
- package/dist/tree.d.ts +223 -0
- package/dist/tree.js +226 -0
- package/dist/trigger-menu-8FAwypbs.d.cts +347 -0
- package/dist/trigger-menu-B898rWkz.cjs +502 -0
- package/dist/trigger-menu-C2YHe7es.d.ts +347 -0
- package/dist/trigger-menu-CxzocSWO.js +431 -0
- package/dist/trigger-menu.cjs +22 -0
- package/dist/trigger-menu.d.cts +2 -0
- package/dist/trigger-menu.d.ts +2 -0
- package/dist/trigger-menu.js +2 -0
- package/dist/virtual-list-strict.cjs +126 -0
- package/dist/virtual-list-strict.d.cts +69 -0
- package/dist/virtual-list-strict.d.ts +69 -0
- package/dist/virtual-list-strict.js +125 -0
- package/dist/virtual-list.cjs +65 -0
- package/dist/virtual-list.d.cts +82 -0
- package/dist/virtual-list.d.ts +82 -0
- package/dist/virtual-list.js +64 -0
- package/dist/virtual.cjs +27 -0
- package/dist/virtual.d.cts +30 -0
- package/dist/virtual.d.ts +30 -0
- package/dist/virtual.js +26 -0
- package/dist/vue-helpers-Bh_YF48i.cjs +102 -0
- package/dist/vue-helpers-Z3oOAHYB.js +55 -0
- package/dist/waterfall-chart.cjs +114 -0
- package/dist/waterfall-chart.d.cts +117 -0
- package/dist/waterfall-chart.d.ts +117 -0
- package/dist/waterfall-chart.js +113 -0
- package/dist/waterfall.cjs +296 -0
- package/dist/waterfall.d.cts +219 -0
- package/dist/waterfall.d.ts +219 -0
- package/dist/waterfall.js +284 -0
- package/package.json +518 -3
- package/README.md +0 -3
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_headless = require("./headless-D88yFw8W.cjs");
|
|
3
|
+
const require_options = require("./options-BDn36q6n.cjs");
|
|
4
|
+
const require_vue_helpers = require("./vue-helpers-Bh_YF48i.cjs");
|
|
5
|
+
let _bevelo_core = require("@bevelo/core");
|
|
6
|
+
let vue = require("vue");
|
|
7
|
+
// src/color-picker.ts
|
|
8
|
+
const schema = require_options.vueOptions(_bevelo_core.colorPickerPrimitive, {
|
|
9
|
+
modelValue: ["value", "onChange"],
|
|
10
|
+
value: ["value", "onChange"]
|
|
11
|
+
});
|
|
12
|
+
const BASE_STYLE = {
|
|
13
|
+
position: "fixed",
|
|
14
|
+
left: "0",
|
|
15
|
+
top: "0"
|
|
16
|
+
};
|
|
17
|
+
/** What `focus()` lands on, in document order inside the picker's root. */
|
|
18
|
+
const FOCUSABLE = "[data-part=\"trigger\"], [tabindex=\"0\"], input:not([disabled]), button:not([disabled])";
|
|
19
|
+
const SCOPE = Symbol("color-picker-composition");
|
|
20
|
+
const ColorPicker = (0, vue.defineComponent)({
|
|
21
|
+
name: "ColorPicker",
|
|
22
|
+
inheritAttrs: false,
|
|
23
|
+
props: {
|
|
24
|
+
...schema.props,
|
|
25
|
+
value: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: false
|
|
28
|
+
},
|
|
29
|
+
defaultValue: {
|
|
30
|
+
type: String,
|
|
31
|
+
required: false
|
|
32
|
+
},
|
|
33
|
+
format: {
|
|
34
|
+
type: String,
|
|
35
|
+
required: false
|
|
36
|
+
},
|
|
37
|
+
disabled: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false
|
|
40
|
+
},
|
|
41
|
+
label: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: ""
|
|
44
|
+
},
|
|
45
|
+
presets: {
|
|
46
|
+
type: Array,
|
|
47
|
+
required: false
|
|
48
|
+
},
|
|
49
|
+
id: {
|
|
50
|
+
type: String,
|
|
51
|
+
required: false
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
emits: schema.emits,
|
|
55
|
+
setup(props, { attrs, slots, expose }) {
|
|
56
|
+
const handle = require_headless.usePrimitive(_bevelo_core.colorPickerPrimitive, schema.bind(props));
|
|
57
|
+
const colorsOf = () => props.presets ?? [];
|
|
58
|
+
let rootElement = null;
|
|
59
|
+
const rootRef = (node) => {
|
|
60
|
+
rootElement = node instanceof HTMLElement ? node : null;
|
|
61
|
+
};
|
|
62
|
+
expose({ api: {
|
|
63
|
+
...handle.api,
|
|
64
|
+
setValue: (next) => {
|
|
65
|
+
const parsed = (0, _bevelo_core.parseColor)(next);
|
|
66
|
+
if (parsed !== void 0) handle.api.commit((0, _bevelo_core.rgbToHsv)((0, _bevelo_core.hexToRgb)(parsed)));
|
|
67
|
+
},
|
|
68
|
+
focus: () => {
|
|
69
|
+
rootElement?.querySelector(FOCUSABLE)?.focus();
|
|
70
|
+
}
|
|
71
|
+
} });
|
|
72
|
+
(0, vue.provide)(SCOPE, {
|
|
73
|
+
handle,
|
|
74
|
+
presets: colorsOf
|
|
75
|
+
});
|
|
76
|
+
return () => {
|
|
77
|
+
handle.revision.value;
|
|
78
|
+
if (props.parts === true) return require_headless.renderPart(handle, "root", {
|
|
79
|
+
...attrs,
|
|
80
|
+
ref: rootRef
|
|
81
|
+
}, slots.default?.());
|
|
82
|
+
const open = handle.state.open === true;
|
|
83
|
+
const colors = colorsOf();
|
|
84
|
+
const triggerSwatch = require_headless.renderPart(handle, "trigger-swatch", { key: "trigger-swatch" });
|
|
85
|
+
const partState = handle.part("value")?.state;
|
|
86
|
+
const valueNode = require_headless.renderPart(handle, "value", { key: "value" }, partState?.text ?? "");
|
|
87
|
+
const trigger = require_headless.renderPart(handle, "trigger", { key: "trigger" }, [triggerSwatch]);
|
|
88
|
+
const areaThumb = require_headless.renderPart(handle, "area-thumb", { key: "area-thumb" });
|
|
89
|
+
const area = require_headless.renderPart(handle, "area", { key: "area" }, [areaThumb]);
|
|
90
|
+
const sliderThumb = require_headless.renderPart(handle, "slider-thumb", { key: "slider-thumb" });
|
|
91
|
+
const slider = require_headless.renderPart(handle, "slider", { key: "slider" }, [sliderThumb]);
|
|
92
|
+
const input = require_headless.renderPart(handle, "input", { key: "input" });
|
|
93
|
+
const preview = require_headless.renderPart(handle, "preview", { key: "preview" });
|
|
94
|
+
const slotContent = slots.default?.();
|
|
95
|
+
const panelContent = require_headless.renderPart(handle, "panel-content", { key: "panel-content" }, slotContent);
|
|
96
|
+
const swatchItems = colors.map((preset, index) => require_headless.renderPart(handle, "swatch-item", { key: preset + ":" + String(index) }, void 0, { index }));
|
|
97
|
+
const swatches = require_headless.renderPart(handle, "swatches", { key: "swatches" }, swatchItems);
|
|
98
|
+
const body = open ? (0, vue.h)("div", { key: "body" }, [
|
|
99
|
+
area,
|
|
100
|
+
slider,
|
|
101
|
+
input,
|
|
102
|
+
swatches,
|
|
103
|
+
preview
|
|
104
|
+
]) : null;
|
|
105
|
+
const panel = require_headless.renderPart(handle, "panel", {
|
|
106
|
+
key: "panel",
|
|
107
|
+
style: { ...BASE_STYLE }
|
|
108
|
+
}, [(0, vue.h)(vue.Fragment, null, [body, panelContent])], { portal: true });
|
|
109
|
+
const row = require_headless.renderPart(handle, "row", { key: "row" }, [(0, vue.h)(vue.Fragment, null, [trigger, valueNode])]);
|
|
110
|
+
return require_headless.renderPart(handle, "root", {
|
|
111
|
+
...attrs,
|
|
112
|
+
ref: rootRef
|
|
113
|
+
}, [(0, vue.h)(vue.Fragment, null, [row, panel])]);
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
function useScope(component) {
|
|
118
|
+
return require_vue_helpers.requireScope(SCOPE, component, "ColorPicker parts", " (the composition root that creates the instance).");
|
|
119
|
+
}
|
|
120
|
+
/** A part with no address: the element is the primitive's, attrs and slot are the host's. */
|
|
121
|
+
function plainPart(name, component) {
|
|
122
|
+
return (0, vue.defineComponent)({
|
|
123
|
+
name: component,
|
|
124
|
+
inheritAttrs: false,
|
|
125
|
+
setup(_props, { attrs, slots }) {
|
|
126
|
+
const scope = useScope(component);
|
|
127
|
+
return () => {
|
|
128
|
+
scope.handle.revision.value;
|
|
129
|
+
return require_headless.renderPart(scope.handle, name, attrs, slots.default?.());
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/** The saturation/brightness surface: the element a press and the arrow keys act on. */
|
|
135
|
+
const ColorPickerArea = plainPart("area", "ColorPickerArea");
|
|
136
|
+
/** The mark on the surface, showing which saturation and brightness are picked. */
|
|
137
|
+
const ColorPickerAreaThumb = plainPart("area-thumb", "ColorPickerAreaThumb");
|
|
138
|
+
/** The canvas under the surface, for a host that paints a gamut. */
|
|
139
|
+
const ColorPickerAreaCanvas = plainPart("area-canvas", "ColorPickerAreaCanvas");
|
|
140
|
+
/** The mark on the hue track. */
|
|
141
|
+
const ColorPickerSliderThumb = plainPart("slider-thumb", "ColorPickerSliderThumb");
|
|
142
|
+
/** The mark on the alpha track. */
|
|
143
|
+
const ColorPickerAlphaThumb = plainPart("alpha-slider-thumb", "ColorPickerAlphaThumb");
|
|
144
|
+
/** The eyedropper button; disabled where the browser has no `EyeDropper`. */
|
|
145
|
+
const ColorPickerEyeDropper = plainPart("eye-dropper", "ColorPickerEyeDropper");
|
|
146
|
+
/** The field that accepts a colour typed as hex, rgb() or hsl(). */
|
|
147
|
+
const ColorPickerInput = plainPart("input", "ColorPickerInput");
|
|
148
|
+
/** The colour itself, as a swatch a host can place. */
|
|
149
|
+
const ColorPickerSwatch = plainPart("swatch", "ColorPickerSwatch");
|
|
150
|
+
/** The list that holds the preset colours. */
|
|
151
|
+
const ColorPickerSwatches = plainPart("swatches", "ColorPickerSwatches");
|
|
152
|
+
/** A track for one colour channel: the hue strip (the default) or the alpha ramp. */
|
|
153
|
+
const ColorPickerSlider = (0, vue.defineComponent)({
|
|
154
|
+
name: "ColorPickerSlider",
|
|
155
|
+
inheritAttrs: false,
|
|
156
|
+
props: { channel: {
|
|
157
|
+
type: String,
|
|
158
|
+
required: false,
|
|
159
|
+
default: void 0
|
|
160
|
+
} },
|
|
161
|
+
setup(props, { attrs, slots }) {
|
|
162
|
+
const scope = useScope("ColorPickerSlider");
|
|
163
|
+
return () => {
|
|
164
|
+
scope.handle.revision.value;
|
|
165
|
+
return require_headless.renderPart(scope.handle, props.channel === "alpha" ? "alpha-slider" : "slider", attrs, slots.default?.());
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
/** One preset colour: the kit's button for a colour listed in the picker's `presets`. */
|
|
170
|
+
const ColorPickerSwatchItem = (0, vue.defineComponent)({
|
|
171
|
+
name: "ColorPickerSwatchItem",
|
|
172
|
+
inheritAttrs: false,
|
|
173
|
+
props: { value: {
|
|
174
|
+
type: String,
|
|
175
|
+
required: false,
|
|
176
|
+
default: void 0
|
|
177
|
+
} },
|
|
178
|
+
setup(props, { attrs, slots }) {
|
|
179
|
+
const scope = useScope("ColorPickerSwatchItem");
|
|
180
|
+
return () => {
|
|
181
|
+
scope.handle.revision.value;
|
|
182
|
+
const presets = scope.presets();
|
|
183
|
+
const index = props.value === void 0 ? -1 : presets.indexOf(props.value);
|
|
184
|
+
if (index === -1) throw new Error("<ColorPickerSwatchItem" + (props.value === void 0 ? "" : " value=\"" + props.value + "\"") + "> needs the value of a preset this picker renders. The presets are: " + (presets.join(", ") || "none") + ". Pass the colour as value, and list it in the picker's presets prop.");
|
|
185
|
+
return require_headless.renderPart(scope.handle, "swatch-item", attrs, slots.default?.(), { index });
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
/** The order the rgb channel inputs are rendered in, which names each part. */
|
|
190
|
+
const CHANNEL_INDEX = {
|
|
191
|
+
red: 0,
|
|
192
|
+
green: 1,
|
|
193
|
+
blue: 2
|
|
194
|
+
};
|
|
195
|
+
/** A number input for one rgb channel, in the units people read it in: 0 to 255. */
|
|
196
|
+
const ColorPickerChannelInput = (0, vue.defineComponent)({
|
|
197
|
+
name: "ColorPickerChannelInput",
|
|
198
|
+
inheritAttrs: false,
|
|
199
|
+
props: { channel: {
|
|
200
|
+
type: String,
|
|
201
|
+
required: true
|
|
202
|
+
} },
|
|
203
|
+
setup(props, { attrs, slots }) {
|
|
204
|
+
const scope = useScope("ColorPickerChannelInput");
|
|
205
|
+
return () => {
|
|
206
|
+
scope.handle.revision.value;
|
|
207
|
+
const index = CHANNEL_INDEX[props.channel];
|
|
208
|
+
if (index === void 0) throw new Error("<ColorPickerChannelInput channel=\"" + String(props.channel) + "\">: the channel must be \"red\", \"green\" or \"blue\", the three the rgb model has.");
|
|
209
|
+
return require_headless.renderPart(scope.handle, "channel-input", attrs, slots.default?.(), { index });
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
exports.ColorPicker = ColorPicker;
|
|
214
|
+
exports.ColorPickerAlphaThumb = ColorPickerAlphaThumb;
|
|
215
|
+
exports.ColorPickerArea = ColorPickerArea;
|
|
216
|
+
exports.ColorPickerAreaCanvas = ColorPickerAreaCanvas;
|
|
217
|
+
exports.ColorPickerAreaThumb = ColorPickerAreaThumb;
|
|
218
|
+
exports.ColorPickerChannelInput = ColorPickerChannelInput;
|
|
219
|
+
exports.ColorPickerEyeDropper = ColorPickerEyeDropper;
|
|
220
|
+
exports.ColorPickerInput = ColorPickerInput;
|
|
221
|
+
exports.ColorPickerSlider = ColorPickerSlider;
|
|
222
|
+
exports.ColorPickerSliderThumb = ColorPickerSliderThumb;
|
|
223
|
+
exports.ColorPickerSwatch = ColorPickerSwatch;
|
|
224
|
+
exports.ColorPickerSwatchItem = ColorPickerSwatchItem;
|
|
225
|
+
exports.ColorPickerSwatches = ColorPickerSwatches;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { n as OptionEmits, t as ModelEmits } from "./options-DUGLoksA.cjs";
|
|
2
|
+
import { PropType, VNodeChild } from "vue";
|
|
3
|
+
import { PrimitiveColorPickerApi, PrimitiveColorPickerOptions } from "@bevelo/core";
|
|
4
|
+
/** The picker's imperative api: the primitive's, plus a colour by text and focus. */
|
|
5
|
+
export type ColorPickerApi = PrimitiveColorPickerApi & {
|
|
6
|
+
/** Commits a colour written in any format `parseColor` reads; an unreadable one is ignored. */
|
|
7
|
+
setValue(value: string): void;
|
|
8
|
+
/** Moves focus into the picker: the trigger, or the first focusable part when composed. */
|
|
9
|
+
focus(): void;
|
|
10
|
+
};
|
|
11
|
+
export declare const ColorPicker: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
+
value: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
16
|
+
defaultValue: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
};
|
|
20
|
+
format: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
required: false;
|
|
23
|
+
};
|
|
24
|
+
disabled: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
label: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
presets: {
|
|
33
|
+
type: ArrayConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
id: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
name: {
|
|
41
|
+
type: PropType<string>;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
parts: {
|
|
45
|
+
type: PropType<boolean>;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
startPadSession: {
|
|
49
|
+
type: PropType<(input: unknown, padSelector: string, emit: (point: import("@bevelo/core").PrimitiveColorPickerPadPoint, phase: import("@bevelo/core").PrimitiveColorPickerPadPhase) => void) => void>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
modelValue: {
|
|
53
|
+
type: PropType<string>;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, OptionEmits<PrimitiveColorPickerOptions> & ModelEmits<PrimitiveColorPickerOptions, {
|
|
57
|
+
readonly modelValue: readonly ["value", "onChange"];
|
|
58
|
+
readonly value: readonly ["value", "onChange"];
|
|
59
|
+
}>, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
value: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
required: false;
|
|
63
|
+
};
|
|
64
|
+
defaultValue: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: false;
|
|
67
|
+
};
|
|
68
|
+
format: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
required: false;
|
|
71
|
+
};
|
|
72
|
+
disabled: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
label: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
presets: {
|
|
81
|
+
type: ArrayConstructor;
|
|
82
|
+
required: false;
|
|
83
|
+
};
|
|
84
|
+
id: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
required: false;
|
|
87
|
+
};
|
|
88
|
+
name: {
|
|
89
|
+
type: PropType<string>;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
92
|
+
parts: {
|
|
93
|
+
type: PropType<boolean>;
|
|
94
|
+
default: undefined;
|
|
95
|
+
};
|
|
96
|
+
startPadSession: {
|
|
97
|
+
type: PropType<(input: unknown, padSelector: string, emit: (point: import("@bevelo/core").PrimitiveColorPickerPadPoint, phase: import("@bevelo/core").PrimitiveColorPickerPadPhase) => void) => void>;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
100
|
+
modelValue: {
|
|
101
|
+
type: PropType<string>;
|
|
102
|
+
default: undefined;
|
|
103
|
+
};
|
|
104
|
+
}>> & Readonly<{
|
|
105
|
+
onChange?: (value: string, details: import("@bevelo/core").PrimitiveColorPickerChangeDetails) => any;
|
|
106
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
107
|
+
"onUpdate:value"?: (value: string) => any;
|
|
108
|
+
onCommit?: (value: string, details: import("@bevelo/core").PrimitiveColorPickerChangeDetails) => any;
|
|
109
|
+
}>, {
|
|
110
|
+
label: string;
|
|
111
|
+
modelValue: string;
|
|
112
|
+
name: string;
|
|
113
|
+
parts: boolean;
|
|
114
|
+
disabled: boolean;
|
|
115
|
+
startPadSession: (input: unknown, padSelector: string, emit: (point: import("@bevelo/core").PrimitiveColorPickerPadPoint, phase: import("@bevelo/core").PrimitiveColorPickerPadPhase) => void) => void;
|
|
116
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
117
|
+
/** Props for `ColorPicker`. */
|
|
118
|
+
export type ColorPickerProps = InstanceType<typeof ColorPicker>["$props"];
|
|
119
|
+
/** The saturation/brightness surface: the element a press and the arrow keys act on. */
|
|
120
|
+
export declare const ColorPickerArea: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
121
|
+
/** The mark on the surface, showing which saturation and brightness are picked. */
|
|
122
|
+
export declare const ColorPickerAreaThumb: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
123
|
+
/** The canvas under the surface, for a host that paints a gamut. */
|
|
124
|
+
export declare const ColorPickerAreaCanvas: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
125
|
+
/** The mark on the hue track. */
|
|
126
|
+
export declare const ColorPickerSliderThumb: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
127
|
+
/** The mark on the alpha track. */
|
|
128
|
+
export declare const ColorPickerAlphaThumb: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
129
|
+
/** The eyedropper button; disabled where the browser has no `EyeDropper`. */
|
|
130
|
+
export declare const ColorPickerEyeDropper: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
131
|
+
/** The field that accepts a colour typed as hex, rgb() or hsl(). */
|
|
132
|
+
export declare const ColorPickerInput: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
133
|
+
/** The colour itself, as a swatch a host can place. */
|
|
134
|
+
export declare const ColorPickerSwatch: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
135
|
+
/** The list that holds the preset colours. */
|
|
136
|
+
export declare const ColorPickerSwatches: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
137
|
+
/** A track for one colour channel: the hue strip (the default) or the alpha ramp. */
|
|
138
|
+
export declare const ColorPickerSlider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
139
|
+
channel: {
|
|
140
|
+
type: PropType<"hue" | "alpha">;
|
|
141
|
+
required: false;
|
|
142
|
+
default: undefined;
|
|
143
|
+
};
|
|
144
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
145
|
+
channel: {
|
|
146
|
+
type: PropType<"hue" | "alpha">;
|
|
147
|
+
required: false;
|
|
148
|
+
default: undefined;
|
|
149
|
+
};
|
|
150
|
+
}>> & Readonly<{}>, {
|
|
151
|
+
channel: "hue" | "alpha";
|
|
152
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
153
|
+
/** One preset colour: the kit's button for a colour listed in the picker's `presets`. */
|
|
154
|
+
export declare const ColorPickerSwatchItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
155
|
+
value: {
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
required: false;
|
|
158
|
+
default: undefined;
|
|
159
|
+
};
|
|
160
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
161
|
+
value: {
|
|
162
|
+
type: StringConstructor;
|
|
163
|
+
required: false;
|
|
164
|
+
default: undefined;
|
|
165
|
+
};
|
|
166
|
+
}>> & Readonly<{}>, {
|
|
167
|
+
value: string;
|
|
168
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
169
|
+
/** A number input for one rgb channel, in the units people read it in: 0 to 255. */
|
|
170
|
+
export declare const ColorPickerChannelInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
171
|
+
channel: {
|
|
172
|
+
type: PropType<"red" | "green" | "blue">;
|
|
173
|
+
required: true;
|
|
174
|
+
};
|
|
175
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
176
|
+
channel: {
|
|
177
|
+
type: PropType<"red" | "green" | "blue">;
|
|
178
|
+
required: true;
|
|
179
|
+
};
|
|
180
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { n as OptionEmits, t as ModelEmits } from "./options-CGl5jBEY.js";
|
|
2
|
+
import { PrimitiveColorPickerApi, PrimitiveColorPickerOptions } from "@bevelo/core";
|
|
3
|
+
import { PropType, VNodeChild } from "vue";
|
|
4
|
+
/** The picker's imperative api: the primitive's, plus a colour by text and focus. */
|
|
5
|
+
export type ColorPickerApi = PrimitiveColorPickerApi & {
|
|
6
|
+
/** Commits a colour written in any format `parseColor` reads; an unreadable one is ignored. */
|
|
7
|
+
setValue(value: string): void;
|
|
8
|
+
/** Moves focus into the picker: the trigger, or the first focusable part when composed. */
|
|
9
|
+
focus(): void;
|
|
10
|
+
};
|
|
11
|
+
export declare const ColorPicker: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
+
value: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
16
|
+
defaultValue: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
};
|
|
20
|
+
format: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
required: false;
|
|
23
|
+
};
|
|
24
|
+
disabled: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
label: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
presets: {
|
|
33
|
+
type: ArrayConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
id: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
name: {
|
|
41
|
+
type: PropType<string>;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
parts: {
|
|
45
|
+
type: PropType<boolean>;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
startPadSession: {
|
|
49
|
+
type: PropType<(input: unknown, padSelector: string, emit: (point: import("@bevelo/core").PrimitiveColorPickerPadPoint, phase: import("@bevelo/core").PrimitiveColorPickerPadPhase) => void) => void>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
modelValue: {
|
|
53
|
+
type: PropType<string>;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, OptionEmits<PrimitiveColorPickerOptions> & ModelEmits<PrimitiveColorPickerOptions, {
|
|
57
|
+
readonly modelValue: readonly ["value", "onChange"];
|
|
58
|
+
readonly value: readonly ["value", "onChange"];
|
|
59
|
+
}>, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
value: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
required: false;
|
|
63
|
+
};
|
|
64
|
+
defaultValue: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: false;
|
|
67
|
+
};
|
|
68
|
+
format: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
required: false;
|
|
71
|
+
};
|
|
72
|
+
disabled: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
label: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
presets: {
|
|
81
|
+
type: ArrayConstructor;
|
|
82
|
+
required: false;
|
|
83
|
+
};
|
|
84
|
+
id: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
required: false;
|
|
87
|
+
};
|
|
88
|
+
name: {
|
|
89
|
+
type: PropType<string>;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
92
|
+
parts: {
|
|
93
|
+
type: PropType<boolean>;
|
|
94
|
+
default: undefined;
|
|
95
|
+
};
|
|
96
|
+
startPadSession: {
|
|
97
|
+
type: PropType<(input: unknown, padSelector: string, emit: (point: import("@bevelo/core").PrimitiveColorPickerPadPoint, phase: import("@bevelo/core").PrimitiveColorPickerPadPhase) => void) => void>;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
100
|
+
modelValue: {
|
|
101
|
+
type: PropType<string>;
|
|
102
|
+
default: undefined;
|
|
103
|
+
};
|
|
104
|
+
}>> & Readonly<{
|
|
105
|
+
onChange?: (value: string, details: import("@bevelo/core").PrimitiveColorPickerChangeDetails) => any;
|
|
106
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
107
|
+
"onUpdate:value"?: (value: string) => any;
|
|
108
|
+
onCommit?: (value: string, details: import("@bevelo/core").PrimitiveColorPickerChangeDetails) => any;
|
|
109
|
+
}>, {
|
|
110
|
+
label: string;
|
|
111
|
+
modelValue: string;
|
|
112
|
+
name: string;
|
|
113
|
+
parts: boolean;
|
|
114
|
+
disabled: boolean;
|
|
115
|
+
startPadSession: (input: unknown, padSelector: string, emit: (point: import("@bevelo/core").PrimitiveColorPickerPadPoint, phase: import("@bevelo/core").PrimitiveColorPickerPadPhase) => void) => void;
|
|
116
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
117
|
+
/** Props for `ColorPicker`. */
|
|
118
|
+
export type ColorPickerProps = InstanceType<typeof ColorPicker>["$props"];
|
|
119
|
+
/** The saturation/brightness surface: the element a press and the arrow keys act on. */
|
|
120
|
+
export declare const ColorPickerArea: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
121
|
+
/** The mark on the surface, showing which saturation and brightness are picked. */
|
|
122
|
+
export declare const ColorPickerAreaThumb: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
123
|
+
/** The canvas under the surface, for a host that paints a gamut. */
|
|
124
|
+
export declare const ColorPickerAreaCanvas: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
125
|
+
/** The mark on the hue track. */
|
|
126
|
+
export declare const ColorPickerSliderThumb: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
127
|
+
/** The mark on the alpha track. */
|
|
128
|
+
export declare const ColorPickerAlphaThumb: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
129
|
+
/** The eyedropper button; disabled where the browser has no `EyeDropper`. */
|
|
130
|
+
export declare const ColorPickerEyeDropper: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
131
|
+
/** The field that accepts a colour typed as hex, rgb() or hsl(). */
|
|
132
|
+
export declare const ColorPickerInput: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
133
|
+
/** The colour itself, as a swatch a host can place. */
|
|
134
|
+
export declare const ColorPickerSwatch: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
135
|
+
/** The list that holds the preset colours. */
|
|
136
|
+
export declare const ColorPickerSwatches: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
137
|
+
/** A track for one colour channel: the hue strip (the default) or the alpha ramp. */
|
|
138
|
+
export declare const ColorPickerSlider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
139
|
+
channel: {
|
|
140
|
+
type: PropType<"hue" | "alpha">;
|
|
141
|
+
required: false;
|
|
142
|
+
default: undefined;
|
|
143
|
+
};
|
|
144
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
145
|
+
channel: {
|
|
146
|
+
type: PropType<"hue" | "alpha">;
|
|
147
|
+
required: false;
|
|
148
|
+
default: undefined;
|
|
149
|
+
};
|
|
150
|
+
}>> & Readonly<{}>, {
|
|
151
|
+
channel: "hue" | "alpha";
|
|
152
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
153
|
+
/** One preset colour: the kit's button for a colour listed in the picker's `presets`. */
|
|
154
|
+
export declare const ColorPickerSwatchItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
155
|
+
value: {
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
required: false;
|
|
158
|
+
default: undefined;
|
|
159
|
+
};
|
|
160
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
161
|
+
value: {
|
|
162
|
+
type: StringConstructor;
|
|
163
|
+
required: false;
|
|
164
|
+
default: undefined;
|
|
165
|
+
};
|
|
166
|
+
}>> & Readonly<{}>, {
|
|
167
|
+
value: string;
|
|
168
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
169
|
+
/** A number input for one rgb channel, in the units people read it in: 0 to 255. */
|
|
170
|
+
export declare const ColorPickerChannelInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
171
|
+
channel: {
|
|
172
|
+
type: PropType<"red" | "green" | "blue">;
|
|
173
|
+
required: true;
|
|
174
|
+
};
|
|
175
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
176
|
+
channel: {
|
|
177
|
+
type: PropType<"red" | "green" | "blue">;
|
|
178
|
+
required: true;
|
|
179
|
+
};
|
|
180
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|