@bevelo/solid 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-7jt3BPeM.js +101 -0
- package/dist/accordion-BZw6wfXC.cjs +142 -0
- package/dist/accordion-CbEiLZg1.d.ts +65 -0
- package/dist/accordion-D96X2Dfn.d.cts +65 -0
- package/dist/accordion.cjs +9 -0
- package/dist/accordion.d.cts +2 -0
- package/dist/accordion.d.ts +2 -0
- package/dist/accordion.js +1 -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-5MyAE281.d.cts +41 -0
- package/dist/alert-dialog-BJ83l4Yr.d.ts +41 -0
- package/dist/alert-dialog-__fU1AaI.cjs +150 -0
- package/dist/alert-dialog-dDX-88oC.js +121 -0
- package/dist/alert-dialog.cjs +7 -0
- package/dist/alert-dialog.d.cts +2 -0
- package/dist/alert-dialog.d.ts +2 -0
- package/dist/alert-dialog.js +1 -0
- package/dist/alert.cjs +73 -0
- package/dist/alert.d.cts +19 -0
- package/dist/alert.d.ts +19 -0
- package/dist/alert.js +72 -0
- package/dist/aspect-ratio.cjs +25 -0
- package/dist/aspect-ratio.d.cts +13 -0
- package/dist/aspect-ratio.d.ts +13 -0
- package/dist/aspect-ratio.js +24 -0
- package/dist/async-options.cjs +93 -0
- package/dist/async-options.d.cts +50 -0
- package/dist/async-options.d.ts +50 -0
- package/dist/async-options.js +92 -0
- package/dist/autocomplete.cjs +320 -0
- package/dist/autocomplete.d.cts +135 -0
- package/dist/autocomplete.d.ts +135 -0
- package/dist/autocomplete.js +318 -0
- package/dist/avatar.cjs +113 -0
- package/dist/avatar.d.cts +46 -0
- package/dist/avatar.d.ts +46 -0
- package/dist/avatar.js +110 -0
- package/dist/badge.cjs +50 -0
- package/dist/badge.d.cts +21 -0
- package/dist/badge.d.ts +21 -0
- package/dist/badge.js +49 -0
- package/dist/breadcrumb.cjs +62 -0
- package/dist/breadcrumb.d.cts +22 -0
- package/dist/breadcrumb.d.ts +22 -0
- package/dist/breadcrumb.js +61 -0
- package/dist/button.cjs +44 -0
- package/dist/button.d.cts +35 -0
- package/dist/button.d.ts +35 -0
- package/dist/button.js +43 -0
- package/dist/calendar-DHg328Wh.cjs +915 -0
- package/dist/calendar-DeAf96cJ.js +838 -0
- package/dist/calendar.cjs +4 -0
- package/dist/calendar.d.cts +88 -0
- package/dist/calendar.d.ts +88 -0
- package/dist/calendar.js +1 -0
- package/dist/card-BTasFPAi.cjs +128 -0
- package/dist/card-Bl_qvP9O.d.ts +42 -0
- package/dist/card-GTyhk9cq.js +87 -0
- package/dist/card-s7z9AgPW.d.cts +42 -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 +220 -0
- package/dist/carousel.d.cts +68 -0
- package/dist/carousel.d.ts +68 -0
- package/dist/carousel.js +218 -0
- package/dist/checkbox-group.cjs +81 -0
- package/dist/checkbox-group.d.cts +44 -0
- package/dist/checkbox-group.d.ts +44 -0
- package/dist/checkbox-group.js +79 -0
- package/dist/checkbox.cjs +104 -0
- package/dist/checkbox.d.cts +50 -0
- package/dist/checkbox.d.ts +50 -0
- package/dist/checkbox.js +103 -0
- package/dist/collapsible-BnSkwTni.cjs +106 -0
- package/dist/collapsible-CpDUzooq.d.ts +57 -0
- package/dist/collapsible-DyHC_FGP.js +71 -0
- package/dist/collapsible-O9hUWgJA.d.cts +57 -0
- package/dist/collapsible.cjs +8 -0
- package/dist/collapsible.d.cts +2 -0
- package/dist/collapsible.d.ts +2 -0
- package/dist/collapsible.js +1 -0
- package/dist/color-picker.cjs +300 -0
- package/dist/color-picker.d.cts +151 -0
- package/dist/color-picker.d.ts +151 -0
- package/dist/color-picker.js +286 -0
- package/dist/combobox-BE_Ofnla.d.cts +263 -0
- package/dist/combobox-DLlN9OA1.js +922 -0
- package/dist/combobox-EPlhNIDM.d.ts +263 -0
- package/dist/combobox-s2YZXpzm.cjs +1119 -0
- package/dist/combobox.cjs +35 -0
- package/dist/combobox.d.cts +2 -0
- package/dist/combobox.d.ts +2 -0
- package/dist/combobox.js +1 -0
- package/dist/command-CL-Yr9xn.cjs +856 -0
- package/dist/command-D1obN_-I.js +707 -0
- package/dist/command-Dl9njwVq.d.cts +198 -0
- package/dist/command-M3-krsPS.d.ts +198 -0
- package/dist/command.cjs +16 -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-BlBg_gSG.js +166 -0
- package/dist/context-menu-CJ9UfOP7.d.cts +47 -0
- package/dist/context-menu-CYJ3zH5X.cjs +189 -0
- package/dist/context-menu-KR3kfesV.d.ts +47 -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 +1 -0
- package/dist/controller-BqMwv5AS.cjs +64 -0
- package/dist/controller-C8Z-wsos.d.cts +5 -0
- package/dist/controller-C8Z-wsos.d.ts +5 -0
- package/dist/controller-D9qJwhBF.js +53 -0
- package/dist/date-input.cjs +274 -0
- package/dist/date-input.d.cts +83 -0
- package/dist/date-input.d.ts +83 -0
- package/dist/date-input.js +271 -0
- package/dist/date-picker-B5FO4aeT.d.cts +153 -0
- package/dist/date-picker-Ba4QQARc.cjs +888 -0
- package/dist/date-picker-CALdRWyJ.js +841 -0
- package/dist/date-picker-D1WyqdXf.d.ts +153 -0
- package/dist/date-picker.cjs +4 -0
- package/dist/date-picker.d.cts +2 -0
- package/dist/date-picker.d.ts +2 -0
- package/dist/date-picker.js +1 -0
- package/dist/description-content-BLuIA4Pb.cjs +91 -0
- package/dist/description-content-BWxZuDXC.js +56 -0
- package/dist/dialog-BeQDFmmz.cjs +165 -0
- package/dist/dialog-DjzR1RON.d.ts +56 -0
- package/dist/dialog-LT5bRUot.js +135 -0
- package/dist/dialog-qAhmbIqQ.d.cts +56 -0
- package/dist/dialog-view-DbygGXef.js +118 -0
- package/dist/dialog-view-DfsNxRN7.cjs +147 -0
- package/dist/dialog.cjs +7 -0
- package/dist/dialog.d.cts +2 -0
- package/dist/dialog.d.ts +2 -0
- package/dist/dialog.js +1 -0
- package/dist/direction.cjs +25 -0
- package/dist/direction.d.cts +14 -0
- package/dist/direction.d.ts +14 -0
- package/dist/direction.js +24 -0
- package/dist/dnd.cjs +124 -0
- package/dist/dnd.d.cts +64 -0
- package/dist/dnd.d.ts +64 -0
- package/dist/dnd.js +119 -0
- package/dist/drawer.cjs +114 -0
- package/dist/drawer.d.cts +65 -0
- package/dist/drawer.d.ts +65 -0
- package/dist/drawer.js +111 -0
- package/dist/empty-state.cjs +70 -0
- package/dist/empty-state.d.cts +20 -0
- package/dist/empty-state.d.ts +20 -0
- package/dist/empty-state.js +69 -0
- package/dist/engine-signal-1bLbbRhE.js +9 -0
- package/dist/engine-signal-6pShphhv.cjs +14 -0
- package/dist/error-state.cjs +81 -0
- package/dist/error-state.d.cts +23 -0
- package/dist/error-state.d.ts +23 -0
- package/dist/error-state.js +80 -0
- package/dist/field-api-BW0JlKyA.cjs +18 -0
- package/dist/field-api-D5RjQPB3.js +13 -0
- package/dist/field.cjs +238 -0
- package/dist/field.d.cts +61 -0
- package/dist/field.d.ts +61 -0
- package/dist/field.js +232 -0
- package/dist/file-input.cjs +103 -0
- package/dist/file-input.d.cts +69 -0
- package/dist/file-input.d.ts +69 -0
- package/dist/file-input.js +101 -0
- package/dist/gauge-parts-B3P8g6bU.d.cts +29 -0
- package/dist/gauge-parts-Ca1FaLmF.js +84 -0
- package/dist/gauge-parts-Da9Dvvym.d.ts +29 -0
- package/dist/gauge-parts-DybADezg.cjs +95 -0
- package/dist/headless-BQH7sRXk.cjs +646 -0
- package/dist/headless-CoFdY0wl.d.cts +143 -0
- package/dist/headless-DYGhuD8h.js +623 -0
- package/dist/headless-kqnA1wix.d.ts +143 -0
- package/dist/headless-props-BE1RQfyU.d.cts +4 -0
- package/dist/headless-props-CBYucfR5.js +66 -0
- package/dist/headless-props-Cf7LwO5W.cjs +107 -0
- package/dist/headless-props-bnSQ57kj.d.ts +4 -0
- package/dist/headless.cjs +5 -0
- package/dist/headless.d.cts +2 -0
- package/dist/headless.d.ts +2 -0
- package/dist/headless.js +1 -0
- package/dist/hover-card.cjs +77 -0
- package/dist/hover-card.d.cts +49 -0
- package/dist/hover-card.d.ts +49 -0
- package/dist/hover-card.js +75 -0
- package/dist/icon-button.cjs +45 -0
- package/dist/icon-button.d.cts +21 -0
- package/dist/icon-button.d.ts +21 -0
- package/dist/icon-button.js +43 -0
- package/dist/image-cropper-BTboNMMN.d.ts +43 -0
- package/dist/image-cropper-ChThsl2E.cjs +113 -0
- package/dist/image-cropper-Q749T_mI.js +84 -0
- package/dist/image-cropper-Sw4GRMtW.d.cts +43 -0
- package/dist/image-cropper.cjs +6 -0
- package/dist/image-cropper.d.cts +2 -0
- package/dist/image-cropper.d.ts +2 -0
- package/dist/image-cropper.js +1 -0
- package/dist/image.cjs +44 -0
- package/dist/image.d.cts +29 -0
- package/dist/image.d.ts +29 -0
- package/dist/image.js +43 -0
- package/dist/index.cjs +1581 -0
- package/dist/index.d.cts +566 -0
- package/dist/index.d.ts +566 -0
- package/dist/index.js +867 -0
- package/dist/input-group.cjs +49 -0
- package/dist/input-group.d.cts +20 -0
- package/dist/input-group.d.ts +20 -0
- package/dist/input-group.js +48 -0
- package/dist/input.cjs +74 -0
- package/dist/input.d.cts +52 -0
- package/dist/input.d.ts +52 -0
- package/dist/input.js +72 -0
- package/dist/item-BMra-oi7.js +194 -0
- package/dist/item-C_ZhJGza.d.cts +71 -0
- package/dist/item-Dujbi4dB.cjs +265 -0
- package/dist/item-Uxz8gAzc.d.ts +71 -0
- package/dist/item.cjs +11 -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 +75 -0
- package/dist/kbd.d.cts +17 -0
- package/dist/kbd.d.ts +17 -0
- package/dist/kbd.js +74 -0
- package/dist/label.cjs +27 -0
- package/dist/label.d.cts +15 -0
- package/dist/label.d.ts +15 -0
- package/dist/label.js +26 -0
- package/dist/list-data-D0kJD8WS.js +40 -0
- package/dist/list-data-DKH9VSgs.cjs +69 -0
- package/dist/listbox-CuISC5VB.js +188 -0
- package/dist/listbox-DLpIDe7l.cjs +217 -0
- package/dist/listbox-DzRlXOH7.d.cts +96 -0
- package/dist/listbox-Gsy3yFFS.d.ts +96 -0
- package/dist/listbox.cjs +6 -0
- package/dist/listbox.d.cts +2 -0
- package/dist/listbox.d.ts +2 -0
- package/dist/listbox.js +1 -0
- package/dist/loader.cjs +37 -0
- package/dist/loader.d.cts +27 -0
- package/dist/loader.d.ts +27 -0
- package/dist/loader.js +36 -0
- package/dist/mention-menu.cjs +159 -0
- package/dist/mention-menu.d.cts +68 -0
- package/dist/mention-menu.d.ts +68 -0
- package/dist/mention-menu.js +157 -0
- package/dist/menu-BptiQtff.js +347 -0
- package/dist/menu-DCdNGoQP.d.cts +57 -0
- package/dist/menu-DeSo-q8T.d.ts +57 -0
- package/dist/menu-qGui6tgy.cjs +394 -0
- package/dist/menu.cjs +10 -0
- package/dist/menu.d.cts +2 -0
- package/dist/menu.d.ts +2 -0
- package/dist/menu.js +1 -0
- package/dist/menubar.cjs +53 -0
- package/dist/menubar.d.cts +33 -0
- package/dist/menubar.d.ts +33 -0
- package/dist/menubar.js +51 -0
- package/dist/meter.cjs +85 -0
- package/dist/meter.d.cts +42 -0
- package/dist/meter.d.ts +42 -0
- package/dist/meter.js +80 -0
- package/dist/native-select-Ca8YL0F5.js +104 -0
- package/dist/native-select-D5oPMNzp.cjs +121 -0
- package/dist/native-select-DqUdVxFD.d.ts +46 -0
- package/dist/native-select-IFCcJ7sM.d.cts +46 -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 +164 -0
- package/dist/navigation-menu.d.cts +68 -0
- package/dist/navigation-menu.d.ts +68 -0
- package/dist/navigation-menu.js +162 -0
- package/dist/number-input.cjs +181 -0
- package/dist/number-input.d.cts +87 -0
- package/dist/number-input.d.ts +87 -0
- package/dist/number-input.js +173 -0
- package/dist/otp-input.cjs +111 -0
- package/dist/otp-input.d.cts +49 -0
- package/dist/otp-input.d.ts +49 -0
- package/dist/otp-input.js +110 -0
- package/dist/overlay-controller-BNGpdfOi.cjs +64 -0
- package/dist/overlay-controller-BwJtB1tP.js +47 -0
- package/dist/overlay-controller-Cchdw1aT.d.cts +21 -0
- package/dist/overlay-controller-lT7Gkj00.d.ts +21 -0
- package/dist/pagination.cjs +153 -0
- package/dist/pagination.d.cts +55 -0
- package/dist/pagination.d.ts +55 -0
- package/dist/pagination.js +151 -0
- package/dist/password-input.cjs +110 -0
- package/dist/password-input.d.cts +71 -0
- package/dist/password-input.d.ts +71 -0
- package/dist/password-input.js +108 -0
- package/dist/popover.cjs +106 -0
- package/dist/popover.d.cts +66 -0
- package/dist/popover.d.ts +66 -0
- package/dist/popover.js +103 -0
- package/dist/preferences.cjs +82 -0
- package/dist/preferences.d.cts +26 -0
- package/dist/preferences.d.ts +26 -0
- package/dist/preferences.js +80 -0
- package/dist/presence.cjs +71 -0
- package/dist/presence.d.cts +31 -0
- package/dist/presence.d.ts +31 -0
- package/dist/presence.js +69 -0
- package/dist/progress.cjs +88 -0
- package/dist/progress.d.cts +40 -0
- package/dist/progress.d.ts +40 -0
- package/dist/progress.js +83 -0
- package/dist/query.cjs +235 -0
- package/dist/query.d.cts +72 -0
- package/dist/query.d.ts +72 -0
- package/dist/query.js +220 -0
- package/dist/radio.cjs +129 -0
- package/dist/radio.d.cts +57 -0
- package/dist/radio.d.ts +57 -0
- package/dist/radio.js +127 -0
- package/dist/rating.cjs +95 -0
- package/dist/rating.d.cts +53 -0
- package/dist/rating.d.ts +53 -0
- package/dist/rating.js +93 -0
- package/dist/resizable-BK4Fz6B5.d.ts +49 -0
- package/dist/resizable-CTAsuFPX.d.cts +49 -0
- package/dist/resizable-CwkUH-MF.js +108 -0
- package/dist/resizable-Ddlx8mi3.cjs +143 -0
- package/dist/resizable.cjs +8 -0
- package/dist/resizable.d.cts +2 -0
- package/dist/resizable.d.ts +2 -0
- package/dist/resizable.js +1 -0
- package/dist/scroll-area.cjs +48 -0
- package/dist/scroll-area.d.cts +32 -0
- package/dist/scroll-area.d.ts +32 -0
- package/dist/scroll-area.js +46 -0
- package/dist/segmented-control.cjs +97 -0
- package/dist/segmented-control.d.cts +54 -0
- package/dist/segmented-control.d.ts +54 -0
- package/dist/segmented-control.js +94 -0
- package/dist/select-BFfmeGUv.d.ts +153 -0
- package/dist/select-BQh8JVx5.cjs +493 -0
- package/dist/select-COgnUXgF.d.cts +153 -0
- package/dist/select-SutRVX6v.js +398 -0
- package/dist/select.cjs +18 -0
- package/dist/select.d.cts +2 -0
- package/dist/select.d.ts +2 -0
- package/dist/select.js +1 -0
- package/dist/separator.cjs +19 -0
- package/dist/separator.d.cts +13 -0
- package/dist/separator.d.ts +13 -0
- package/dist/separator.js +18 -0
- package/dist/sheet.cjs +131 -0
- package/dist/sheet.d.cts +84 -0
- package/dist/sheet.d.ts +84 -0
- package/dist/sheet.js +128 -0
- package/dist/sidebar-CIG1qDhQ.cjs +93 -0
- package/dist/sidebar-Dbx8GT2H.d.ts +43 -0
- package/dist/sidebar-fT_qQ-T0.js +64 -0
- package/dist/sidebar-l-Aq9IOz.d.cts +43 -0
- package/dist/sidebar.cjs +7 -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 +62 -0
- package/dist/skeleton.d.cts +17 -0
- package/dist/skeleton.d.ts +17 -0
- package/dist/skeleton.js +61 -0
- package/dist/slider.cjs +146 -0
- package/dist/slider.d.cts +63 -0
- package/dist/slider.d.ts +63 -0
- package/dist/slider.js +137 -0
- package/dist/sortable-board-strict.cjs +121 -0
- package/dist/sortable-board-strict.d.cts +65 -0
- package/dist/sortable-board-strict.d.ts +65 -0
- package/dist/sortable-board-strict.js +114 -0
- package/dist/sortable-engine.cjs +150 -0
- package/dist/sortable-engine.d.cts +58 -0
- package/dist/sortable-engine.d.ts +58 -0
- package/dist/sortable-engine.js +148 -0
- package/dist/sortable-strict.cjs +108 -0
- package/dist/sortable-strict.d.cts +41 -0
- package/dist/sortable-strict.d.ts +41 -0
- package/dist/sortable-strict.js +102 -0
- package/dist/sortable.cjs +91 -0
- package/dist/sortable.d.cts +59 -0
- package/dist/sortable.d.ts +59 -0
- package/dist/sortable.js +90 -0
- package/dist/spinner-0flshyQD.d.cts +28 -0
- package/dist/spinner-CwRqmRiC.cjs +53 -0
- package/dist/spinner-DAy7BD58.js +36 -0
- package/dist/spinner-gyZlsbee.d.ts +28 -0
- package/dist/spinner.cjs +5 -0
- package/dist/spinner.d.cts +2 -0
- package/dist/spinner.d.ts +2 -0
- package/dist/spinner.js +1 -0
- package/dist/steps-BS3VTdAj.d.ts +42 -0
- package/dist/steps-C_q2sTwv.cjs +125 -0
- package/dist/steps-Cxo076uS.js +84 -0
- package/dist/steps-DNS1V6At.d.cts +42 -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 +90 -0
- package/dist/switch.d.cts +55 -0
- package/dist/switch.d.ts +55 -0
- package/dist/switch.js +88 -0
- package/dist/table.cjs +147 -0
- package/dist/table.d.cts +52 -0
- package/dist/table.d.ts +52 -0
- package/dist/table.js +146 -0
- package/dist/tabs.cjs +250 -0
- package/dist/tabs.d.cts +108 -0
- package/dist/tabs.d.ts +108 -0
- package/dist/tabs.js +243 -0
- package/dist/textarea.cjs +94 -0
- package/dist/textarea.d.cts +58 -0
- package/dist/textarea.d.ts +58 -0
- package/dist/textarea.js +92 -0
- package/dist/time-input.cjs +101 -0
- package/dist/time-input.d.cts +49 -0
- package/dist/time-input.d.ts +49 -0
- package/dist/time-input.js +100 -0
- package/dist/timeline-B-HlcIe2.d.cts +54 -0
- package/dist/timeline-B-nmr0Hb.js +113 -0
- package/dist/timeline-B9yOdmyL.cjs +178 -0
- package/dist/timeline-lJ2Eidq_.d.ts +54 -0
- package/dist/timeline.cjs +11 -0
- package/dist/timeline.d.cts +2 -0
- package/dist/timeline.d.ts +2 -0
- package/dist/timeline.js +1 -0
- package/dist/toast.cjs +320 -0
- package/dist/toast.d.cts +95 -0
- package/dist/toast.d.ts +95 -0
- package/dist/toast.js +307 -0
- package/dist/toggle-Bv70V6KS.d.cts +46 -0
- package/dist/toggle-Dpt_Qvx2.d.ts +46 -0
- package/dist/toggle-JXH5NEkQ.cjs +127 -0
- package/dist/toggle-group.cjs +63 -0
- package/dist/toggle-group.d.cts +35 -0
- package/dist/toggle-group.d.ts +35 -0
- package/dist/toggle-group.js +62 -0
- package/dist/toggle-nt4rA46s.js +104 -0
- package/dist/toggle.cjs +6 -0
- package/dist/toggle.d.cts +2 -0
- package/dist/toggle.d.ts +2 -0
- package/dist/toggle.js +1 -0
- package/dist/token-input-B0CXtxy3.d.cts +139 -0
- package/dist/token-input-BMkRWbm-.d.ts +139 -0
- package/dist/token-input-Cnw66beG.js +365 -0
- package/dist/token-input-NxrlP4Gz.cjs +418 -0
- package/dist/token-input.cjs +11 -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 +97 -0
- package/dist/toolbar.d.cts +35 -0
- package/dist/toolbar.d.ts +35 -0
- package/dist/toolbar.js +95 -0
- package/dist/tooltip.cjs +90 -0
- package/dist/tooltip.d.cts +53 -0
- package/dist/tooltip.d.ts +53 -0
- package/dist/tooltip.js +88 -0
- package/dist/tree-B9ONanD2.d.cts +106 -0
- package/dist/tree-C1q2lYJs.js +238 -0
- package/dist/tree-CNWDUX_r.cjs +267 -0
- package/dist/tree-CtVvz_b4.d.ts +106 -0
- package/dist/tree-grid-BWZHm05V.d.cts +62 -0
- package/dist/tree-grid-C7SXcLbA.js +164 -0
- package/dist/tree-grid-CNajLoL-.cjs +193 -0
- package/dist/tree-grid-CmzYkxyz.d.ts +62 -0
- package/dist/tree-grid.cjs +7 -0
- package/dist/tree-grid.d.cts +2 -0
- package/dist/tree-grid.d.ts +2 -0
- package/dist/tree-grid.js +1 -0
- package/dist/tree.cjs +6 -0
- package/dist/tree.d.cts +2 -0
- package/dist/tree.d.ts +2 -0
- package/dist/tree.js +1 -0
- package/dist/trigger-menu-D6VAW4RC.d.ts +142 -0
- package/dist/trigger-menu-DbAaDRBP.d.cts +142 -0
- package/dist/trigger-menu-DrgodhOD.js +465 -0
- package/dist/trigger-menu-kLYrZ8M7.cjs +542 -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 +1 -0
- package/dist/virtual-list-BCbpPSc2.d.cts +63 -0
- package/dist/virtual-list-BwS-lXzi.d.ts +63 -0
- package/dist/virtual-list-Df4oyIaV.cjs +155 -0
- package/dist/virtual-list-eCLq_nPF.js +126 -0
- package/dist/virtual-list.cjs +7 -0
- package/dist/virtual-list.d.cts +2 -0
- package/dist/virtual-list.d.ts +2 -0
- package/dist/virtual-list.js +1 -0
- package/dist/virtual.cjs +59 -0
- package/dist/virtual.d.cts +45 -0
- package/dist/virtual.d.ts +45 -0
- package/dist/virtual.js +58 -0
- package/dist/waterfall-chart.cjs +115 -0
- package/dist/waterfall-chart.d.cts +42 -0
- package/dist/waterfall-chart.d.ts +42 -0
- package/dist/waterfall-chart.js +113 -0
- package/dist/waterfall.cjs +346 -0
- package/dist/waterfall.d.cts +91 -0
- package/dist/waterfall.d.ts +91 -0
- package/dist/waterfall.js +333 -0
- package/package.json +521 -3
- package/README.md +0 -3
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { t as Controller } from "./controller-C8Z-wsos.cjs";
|
|
2
|
+
import { a as HeadlessPartProps, d as HeadlessRootProps, o as HeadlessPartRender } from "./headless-CoFdY0wl.cjs";
|
|
3
|
+
import { JSX } from "solid-js";
|
|
4
|
+
import { Child } from "@bevelo/core";
|
|
5
|
+
import { PrimitiveSidebarApi } from "@bevelo/core/primitives/sidebar";
|
|
6
|
+
/**
|
|
7
|
+
* The composition root: it creates the instance and renders the element the
|
|
8
|
+
* primitive describes as its root, with the host's children inside it.
|
|
9
|
+
*/
|
|
10
|
+
declare const SidebarRootPart: (props: HeadlessRootProps<import("@bevelo/core").PrimitiveSidebarOptions>) => import("solid-js").JSX.Element;
|
|
11
|
+
/** The `sidebar` part: the shell's own surface element. */
|
|
12
|
+
declare const SidebarSurfacePart: (props: HeadlessPartProps) => import("solid-js").JSX.Element;
|
|
13
|
+
/** The `nav` part: the labelled navigation landmark. */
|
|
14
|
+
declare const SidebarNavPart: (props: HeadlessPartProps) => import("solid-js").JSX.Element;
|
|
15
|
+
/** The props `Sidebar` takes. */
|
|
16
|
+
interface SidebarProps {
|
|
17
|
+
/** The host's value. A present value makes the shell controlled. */
|
|
18
|
+
open?: boolean;
|
|
19
|
+
/** The uncontrolled starting state. Open by default. */
|
|
20
|
+
defaultOpen?: boolean;
|
|
21
|
+
/** Reports a committed open/close; the host owns what follows while controlled. */
|
|
22
|
+
onOpenChange?: (open: boolean) => void;
|
|
23
|
+
/** The nav landmark's name. Empty leaves the landmark unnamed. */
|
|
24
|
+
label?: string;
|
|
25
|
+
side?: "left" | "right";
|
|
26
|
+
/** What collapsing means: gone off canvas, or narrowed to icons. */
|
|
27
|
+
collapsible?: "offcanvas" | "icon";
|
|
28
|
+
/** The navigation: Solid nodes, or the description list a data host produces. */
|
|
29
|
+
children?: JSX.Element | readonly Child[];
|
|
30
|
+
class?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
style?: string | JSX.CSSProperties;
|
|
33
|
+
/** Replace the root's element. It receives the part's props and state. */
|
|
34
|
+
render?: HeadlessPartRender<Record<string, unknown>>;
|
|
35
|
+
/** Receives the component's api (`open`, `close`, `toggle`, `isOpen`) while mounted. */
|
|
36
|
+
controller?: Controller<PrimitiveSidebarApi>;
|
|
37
|
+
readonly [key: `data-${string}`]: string | number | boolean | undefined;
|
|
38
|
+
}
|
|
39
|
+
/** A collapsible navigation shell. */
|
|
40
|
+
declare function Sidebar(props: SidebarProps): JSX.Element;
|
|
41
|
+
/** A controller for a `Sidebar`: its api, once the shell is mounted. */
|
|
42
|
+
declare function createSidebarController(): Controller<PrimitiveSidebarApi>;
|
|
43
|
+
export { SidebarRootPart as a, SidebarNavPart as i, SidebarProps as n, SidebarSurfacePart as o, createSidebarController as r, Sidebar as t };
|
package/dist/sidebar.cjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_sidebar = require("./sidebar-CIG1qDhQ.cjs");
|
|
3
|
+
exports.Sidebar = require_sidebar.Sidebar;
|
|
4
|
+
exports.SidebarNavPart = require_sidebar.SidebarNavPart;
|
|
5
|
+
exports.SidebarRootPart = require_sidebar.SidebarRootPart;
|
|
6
|
+
exports.SidebarSurfacePart = require_sidebar.SidebarSurfacePart;
|
|
7
|
+
exports.createSidebarController = require_sidebar.createSidebarController;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as SidebarRootPart, i as SidebarNavPart, n as SidebarProps, o as SidebarSurfacePart, r as createSidebarController, t as Sidebar } from "./sidebar-l-Aq9IOz.cjs";
|
|
2
|
+
export { Sidebar, SidebarNavPart, SidebarProps, SidebarRootPart, SidebarSurfacePart, createSidebarController };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as SidebarRootPart, i as SidebarNavPart, n as SidebarProps, o as SidebarSurfacePart, r as createSidebarController, t as Sidebar } from "./sidebar-Dbx8GT2H.js";
|
|
2
|
+
export { Sidebar, SidebarNavPart, SidebarProps, SidebarRootPart, SidebarSurfacePart, createSidebarController };
|
package/dist/sidebar.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as Sidebar, r as SidebarNavPart, i as SidebarRootPart, a as SidebarSurfacePart, n as createSidebarController } from "./sidebar-fT_qQ-T0.js";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_headless = require("./headless-BQH7sRXk.cjs");
|
|
3
|
+
let solid_js_web = require("solid-js/web");
|
|
4
|
+
let _bevelo_core = require("@bevelo/core");
|
|
5
|
+
let solid_js = require("solid-js");
|
|
6
|
+
// src/skeleton.tsx
|
|
7
|
+
/** One line of a multi-line text skeleton, addressed by its position. */
|
|
8
|
+
function SkeletonLinePart(props) {
|
|
9
|
+
return require_headless.usePart(props.handle, "line", {}, void 0, { index: props.index });
|
|
10
|
+
}
|
|
11
|
+
function Skeleton(props) {
|
|
12
|
+
const [options, element] = (0, solid_js.splitProps)(props, [
|
|
13
|
+
"shape",
|
|
14
|
+
"lines",
|
|
15
|
+
"width",
|
|
16
|
+
"height",
|
|
17
|
+
"animated",
|
|
18
|
+
"style"
|
|
19
|
+
]);
|
|
20
|
+
const handle = require_headless.usePrimitive(_bevelo_core.skeletonPrimitive, () => ({
|
|
21
|
+
...options.shape === void 0 ? {} : { shape: options.shape },
|
|
22
|
+
...options.lines === void 0 ? {} : { lines: options.lines },
|
|
23
|
+
...options.width === void 0 ? {} : { width: options.width },
|
|
24
|
+
...options.height === void 0 ? {} : { height: options.height },
|
|
25
|
+
...options.animated === void 0 ? {} : { animated: options.animated }
|
|
26
|
+
}));
|
|
27
|
+
const state = () => handle.state();
|
|
28
|
+
const count = () => state().shape === "text" ? state().lines ?? 1 : 1;
|
|
29
|
+
const style = () => {
|
|
30
|
+
const given = options.style;
|
|
31
|
+
if (given === void 0 || typeof given === "string") return given;
|
|
32
|
+
const current = state();
|
|
33
|
+
const declared = {};
|
|
34
|
+
if (current.width !== void 0 && current.width !== "") declared.width = current.width;
|
|
35
|
+
if (current.height !== void 0 && current.height !== "") declared.height = current.height;
|
|
36
|
+
return {
|
|
37
|
+
...declared,
|
|
38
|
+
...given
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
return require_headless.usePart(handle, "root", () => ({
|
|
42
|
+
...element,
|
|
43
|
+
style: style(),
|
|
44
|
+
children: (0, solid_js_web.createComponent)(solid_js.Show, {
|
|
45
|
+
get when() {
|
|
46
|
+
return count() > 1;
|
|
47
|
+
},
|
|
48
|
+
get children() {
|
|
49
|
+
return (0, solid_js_web.createComponent)(solid_js.Index, {
|
|
50
|
+
get each() {
|
|
51
|
+
return Array.from({ length: count() });
|
|
52
|
+
},
|
|
53
|
+
children: (_unused, index) => (0, solid_js_web.createComponent)(SkeletonLinePart, {
|
|
54
|
+
handle,
|
|
55
|
+
index
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
}));
|
|
61
|
+
}
|
|
62
|
+
exports.Skeleton = Skeleton;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSX } from "solid-js";
|
|
2
|
+
export type SkeletonProps = {
|
|
3
|
+
shape?: "text" | "rectangular" | "circular";
|
|
4
|
+
/** Lines for a text skeleton; every other shape renders one box. */
|
|
5
|
+
lines?: number;
|
|
6
|
+
/** A CSS length; an invalid value is dropped rather than written. */
|
|
7
|
+
width?: string;
|
|
8
|
+
/** A CSS length; an invalid value is dropped rather than written. */
|
|
9
|
+
height?: string;
|
|
10
|
+
/** A still placeholder: the stylesheet's shimmer rule is off. */
|
|
11
|
+
animated?: boolean;
|
|
12
|
+
class?: string;
|
|
13
|
+
style?: JSX.CSSProperties | string;
|
|
14
|
+
id?: string;
|
|
15
|
+
ref?: unknown;
|
|
16
|
+
} & Record<`data-${string}`, string | number | boolean | undefined>;
|
|
17
|
+
export declare function Skeleton(props: SkeletonProps): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSX } from "solid-js";
|
|
2
|
+
export type SkeletonProps = {
|
|
3
|
+
shape?: "text" | "rectangular" | "circular";
|
|
4
|
+
/** Lines for a text skeleton; every other shape renders one box. */
|
|
5
|
+
lines?: number;
|
|
6
|
+
/** A CSS length; an invalid value is dropped rather than written. */
|
|
7
|
+
width?: string;
|
|
8
|
+
/** A CSS length; an invalid value is dropped rather than written. */
|
|
9
|
+
height?: string;
|
|
10
|
+
/** A still placeholder: the stylesheet's shimmer rule is off. */
|
|
11
|
+
animated?: boolean;
|
|
12
|
+
class?: string;
|
|
13
|
+
style?: JSX.CSSProperties | string;
|
|
14
|
+
id?: string;
|
|
15
|
+
ref?: unknown;
|
|
16
|
+
} & Record<`data-${string}`, string | number | boolean | undefined>;
|
|
17
|
+
export declare function Skeleton(props: SkeletonProps): JSX.Element;
|
package/dist/skeleton.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { n as usePart, r as usePrimitive } from "./headless-DYGhuD8h.js";
|
|
2
|
+
import { createComponent } from "solid-js/web";
|
|
3
|
+
import { skeletonPrimitive } from "@bevelo/core";
|
|
4
|
+
import { Index, Show, splitProps } from "solid-js";
|
|
5
|
+
// src/skeleton.tsx
|
|
6
|
+
/** One line of a multi-line text skeleton, addressed by its position. */
|
|
7
|
+
function SkeletonLinePart(props) {
|
|
8
|
+
return usePart(props.handle, "line", {}, void 0, { index: props.index });
|
|
9
|
+
}
|
|
10
|
+
function Skeleton(props) {
|
|
11
|
+
const [options, element] = splitProps(props, [
|
|
12
|
+
"shape",
|
|
13
|
+
"lines",
|
|
14
|
+
"width",
|
|
15
|
+
"height",
|
|
16
|
+
"animated",
|
|
17
|
+
"style"
|
|
18
|
+
]);
|
|
19
|
+
const handle = usePrimitive(skeletonPrimitive, () => ({
|
|
20
|
+
...options.shape === void 0 ? {} : { shape: options.shape },
|
|
21
|
+
...options.lines === void 0 ? {} : { lines: options.lines },
|
|
22
|
+
...options.width === void 0 ? {} : { width: options.width },
|
|
23
|
+
...options.height === void 0 ? {} : { height: options.height },
|
|
24
|
+
...options.animated === void 0 ? {} : { animated: options.animated }
|
|
25
|
+
}));
|
|
26
|
+
const state = () => handle.state();
|
|
27
|
+
const count = () => state().shape === "text" ? state().lines ?? 1 : 1;
|
|
28
|
+
const style = () => {
|
|
29
|
+
const given = options.style;
|
|
30
|
+
if (given === void 0 || typeof given === "string") return given;
|
|
31
|
+
const current = state();
|
|
32
|
+
const declared = {};
|
|
33
|
+
if (current.width !== void 0 && current.width !== "") declared.width = current.width;
|
|
34
|
+
if (current.height !== void 0 && current.height !== "") declared.height = current.height;
|
|
35
|
+
return {
|
|
36
|
+
...declared,
|
|
37
|
+
...given
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
return usePart(handle, "root", () => ({
|
|
41
|
+
...element,
|
|
42
|
+
style: style(),
|
|
43
|
+
children: createComponent(Show, {
|
|
44
|
+
get when() {
|
|
45
|
+
return count() > 1;
|
|
46
|
+
},
|
|
47
|
+
get children() {
|
|
48
|
+
return createComponent(Index, {
|
|
49
|
+
get each() {
|
|
50
|
+
return Array.from({ length: count() });
|
|
51
|
+
},
|
|
52
|
+
children: (_unused, index) => createComponent(SkeletonLinePart, {
|
|
53
|
+
handle,
|
|
54
|
+
index
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
61
|
+
export { Skeleton };
|
package/dist/slider.cjs
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_controller = require("./controller-BqMwv5AS.cjs");
|
|
3
|
+
const require_headless = require("./headless-BQH7sRXk.cjs");
|
|
4
|
+
const require_headless_props = require("./headless-props-Cf7LwO5W.cjs");
|
|
5
|
+
let solid_js_web = require("solid-js/web");
|
|
6
|
+
let solid_js = require("solid-js");
|
|
7
|
+
let _bevelo_core_primitives_slider = require("@bevelo/core/primitives/slider");
|
|
8
|
+
// src/slider.tsx
|
|
9
|
+
/** A controller for a `Slider`: its api, once the slider is mounted. */
|
|
10
|
+
function createSliderController() {
|
|
11
|
+
return require_controller.createController();
|
|
12
|
+
}
|
|
13
|
+
const OPTION_KEYS = [
|
|
14
|
+
"min",
|
|
15
|
+
"max",
|
|
16
|
+
"step",
|
|
17
|
+
"largeStep",
|
|
18
|
+
"minStepsBetweenThumbs",
|
|
19
|
+
"value",
|
|
20
|
+
"defaultValue",
|
|
21
|
+
"disabled",
|
|
22
|
+
"readOnly",
|
|
23
|
+
"invalid",
|
|
24
|
+
"required",
|
|
25
|
+
"orientation",
|
|
26
|
+
"label",
|
|
27
|
+
"labelledBy",
|
|
28
|
+
"name",
|
|
29
|
+
"form",
|
|
30
|
+
"format",
|
|
31
|
+
"locale",
|
|
32
|
+
"onChange",
|
|
33
|
+
"onCommit"
|
|
34
|
+
];
|
|
35
|
+
const SliderContext = (0, solid_js.createContext)(void 0);
|
|
36
|
+
function useSliderHandle(part) {
|
|
37
|
+
return require_headless_props.requireScope(SliderContext, part, "Slider");
|
|
38
|
+
}
|
|
39
|
+
function partOptions(props, extra) {
|
|
40
|
+
const tag = typeof props.tag === "string" ? props.tag : void 0;
|
|
41
|
+
if (tag === void 0) return extra;
|
|
42
|
+
return {
|
|
43
|
+
...extra,
|
|
44
|
+
tag
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function thumbInputId(handle, thumb) {
|
|
48
|
+
const inputId = handle.instance.options().inputId;
|
|
49
|
+
return thumb === 0 && inputId !== void 0 && inputId !== "" ? inputId : `${handle.instance.get().baseId}-thumb-${String(thumb)}`;
|
|
50
|
+
}
|
|
51
|
+
/** The parts a slider without children renders. */
|
|
52
|
+
function DefaultParts(props) {
|
|
53
|
+
const thumbs = Array.from({ length: props.thumbs }, (_, index) => (0, solid_js_web.createComponent)(SliderThumb, { index }));
|
|
54
|
+
return (0, solid_js_web.createComponent)(SliderControl, { get children() {
|
|
55
|
+
return (0, solid_js_web.createComponent)(SliderTrack, { get children() {
|
|
56
|
+
return [(0, solid_js_web.createComponent)(SliderIndicator, {}), thumbs];
|
|
57
|
+
} });
|
|
58
|
+
} });
|
|
59
|
+
}
|
|
60
|
+
/** A slider: a group around one thumb, or several for a range. */
|
|
61
|
+
function Slider(props) {
|
|
62
|
+
const [local, element] = (0, solid_js.splitProps)(props, OPTION_KEYS);
|
|
63
|
+
const [own, rest] = (0, solid_js.splitProps)(element, [
|
|
64
|
+
"controller",
|
|
65
|
+
"children",
|
|
66
|
+
"render"
|
|
67
|
+
]);
|
|
68
|
+
const field = (0, solid_js.useContext)(require_headless.FieldContext);
|
|
69
|
+
const handle = require_headless.usePrimitive(_bevelo_core_primitives_slider.sliderPrimitive, () => ({
|
|
70
|
+
...local,
|
|
71
|
+
...local.disabled === void 0 && (field?.instance.get())?.disabled === true ? { disabled: true } : {},
|
|
72
|
+
inputId: field === void 0 ? void 0 : field.api.controlId()
|
|
73
|
+
}));
|
|
74
|
+
require_controller.useControllerAttach(own.controller, Object.assign(Object.create(handle.api), { focus: (thumb = 0) => {
|
|
75
|
+
if (typeof document !== "undefined") document.getElementById(thumbInputId(handle, thumb))?.focus();
|
|
76
|
+
} }));
|
|
77
|
+
const hidden = require_headless.usePart(handle, "input");
|
|
78
|
+
const thumbs = () => {
|
|
79
|
+
const value = local.value ?? local.defaultValue;
|
|
80
|
+
return Array.isArray(value) ? Math.max(1, value.length) : 1;
|
|
81
|
+
};
|
|
82
|
+
return (0, solid_js_web.createComponent)(SliderContext.Provider, {
|
|
83
|
+
value: handle,
|
|
84
|
+
get children() {
|
|
85
|
+
return require_headless.usePart(handle, "root", () => ({
|
|
86
|
+
...rest,
|
|
87
|
+
get children() {
|
|
88
|
+
return [own.children ?? (0, solid_js_web.createComponent)(DefaultParts, { get thumbs() {
|
|
89
|
+
return thumbs();
|
|
90
|
+
} }), hidden];
|
|
91
|
+
}
|
|
92
|
+
}), own.render);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/** The same component under the name the other Solid parts surfaces use. */
|
|
97
|
+
const SliderRoot = Slider;
|
|
98
|
+
/** Where presses land. A press on the track moves the nearest thumb there. */
|
|
99
|
+
function SliderControl(props) {
|
|
100
|
+
return require_headless.usePart(useSliderHandle("SliderControl"), "control", (() => props), props.render, partOptions(props));
|
|
101
|
+
}
|
|
102
|
+
/** The rail the thumbs move along. */
|
|
103
|
+
function SliderTrack(props) {
|
|
104
|
+
return require_headless.usePart(useSliderHandle("SliderTrack"), "track", (() => props), props.render, partOptions(props));
|
|
105
|
+
}
|
|
106
|
+
/** The filled part of the track: up to a single thumb, or between a range's thumbs. */
|
|
107
|
+
function SliderIndicator(props) {
|
|
108
|
+
return require_headless.usePart(useSliderHandle("SliderIndicator"), "fill", (() => props), props.render, partOptions(props));
|
|
109
|
+
}
|
|
110
|
+
/** The kit's own name for the filled part; see {@link SliderIndicator}. */
|
|
111
|
+
const SliderFill = SliderIndicator;
|
|
112
|
+
/**
|
|
113
|
+
* A thumb, with the native range input that takes focus inside it. Its
|
|
114
|
+
* `aria-label`, `aria-labelledby` and `aria-describedby` go to that input.
|
|
115
|
+
*/
|
|
116
|
+
function SliderThumb(props) {
|
|
117
|
+
const handle = useSliderHandle("SliderThumb");
|
|
118
|
+
const [named, local, rest] = (0, solid_js.splitProps)(props, [
|
|
119
|
+
"aria-label",
|
|
120
|
+
"aria-labelledby",
|
|
121
|
+
"aria-describedby"
|
|
122
|
+
], ["index", "children"]);
|
|
123
|
+
const index = () => local.index ?? 0;
|
|
124
|
+
const input = require_headless.usePart(handle, "thumb-input", () => ({ ...named }), void 0, { index: index() });
|
|
125
|
+
return require_headless.usePart(handle, "thumb", () => ({
|
|
126
|
+
...rest,
|
|
127
|
+
children: (state) => [typeof local.children === "function" ? local.children(state) : local.children, input]
|
|
128
|
+
}), props.render, partOptions(props, { index: index() }));
|
|
129
|
+
}
|
|
130
|
+
/** The formatted value, a range joined with an en dash. Children replace it. */
|
|
131
|
+
function SliderValue(props) {
|
|
132
|
+
const [local, rest] = (0, solid_js.splitProps)(props, ["children"]);
|
|
133
|
+
return require_headless.usePart(useSliderHandle("SliderValue"), "value", () => ({
|
|
134
|
+
...rest,
|
|
135
|
+
children: (state) => local.children === void 0 ? state["text"] : typeof local.children === "function" ? local.children(state) : local.children
|
|
136
|
+
}), props.render, partOptions(props));
|
|
137
|
+
}
|
|
138
|
+
exports.Slider = Slider;
|
|
139
|
+
exports.SliderControl = SliderControl;
|
|
140
|
+
exports.SliderFill = SliderFill;
|
|
141
|
+
exports.SliderIndicator = SliderIndicator;
|
|
142
|
+
exports.SliderRoot = SliderRoot;
|
|
143
|
+
exports.SliderThumb = SliderThumb;
|
|
144
|
+
exports.SliderTrack = SliderTrack;
|
|
145
|
+
exports.SliderValue = SliderValue;
|
|
146
|
+
exports.createSliderController = createSliderController;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { t as Controller } from "./controller-C8Z-wsos.cjs";
|
|
2
|
+
import { o as HeadlessPartRender } from "./headless-CoFdY0wl.cjs";
|
|
3
|
+
import { JSX } from "solid-js";
|
|
4
|
+
import { PrimitiveSliderApi, PrimitiveSliderOptions, SliderChangeDetails, SliderCommitDetails, SliderSetOptions } from "@bevelo/core/primitives/slider";
|
|
5
|
+
/** Moves and inspects a slider from outside it. */
|
|
6
|
+
export type SliderApi = Omit<PrimitiveSliderApi, "setValue"> & {
|
|
7
|
+
setValue(value: number | number[], options?: SliderSetOptions): boolean;
|
|
8
|
+
/** Moves focus to a thumb, the first by default. */
|
|
9
|
+
focus(thumb?: number): void;
|
|
10
|
+
};
|
|
11
|
+
/** A controller for a `Slider`: its api, once the slider is mounted. */
|
|
12
|
+
export declare function createSliderController(): Controller<SliderApi>;
|
|
13
|
+
/** The props `Slider` takes: the options, the controller and the root element's props. */
|
|
14
|
+
export type SliderProps = Omit<PrimitiveSliderOptions, "onChange" | "onCommit" | "idSeed" | "inputId"> & {
|
|
15
|
+
onChange?: ((value: number | number[], details: SliderChangeDetails) => void) | undefined;
|
|
16
|
+
onCommit?: ((value: number | number[], details: SliderCommitDetails) => void) | undefined;
|
|
17
|
+
/** Receives the slider's api while mounted. */
|
|
18
|
+
controller?: Controller<SliderApi> | undefined;
|
|
19
|
+
/** The parts, placed by the host. Without them the slider renders its own. */
|
|
20
|
+
children?: JSX.Element | ((state: Record<string, unknown>) => JSX.Element);
|
|
21
|
+
/** Replace the root's element. It receives the part's props and state. */
|
|
22
|
+
render?: HeadlessPartRender<Record<string, unknown>>;
|
|
23
|
+
ref?: unknown;
|
|
24
|
+
id?: string;
|
|
25
|
+
class?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: JSX.CSSProperties | string;
|
|
28
|
+
readonly [key: `data-${string}`]: string | number | boolean | undefined;
|
|
29
|
+
readonly [key: `aria-${string}`]: string | number | boolean | undefined;
|
|
30
|
+
};
|
|
31
|
+
/** The props one slider part accepts. */
|
|
32
|
+
export type SliderPartProps = {
|
|
33
|
+
children?: JSX.Element | ((state: Record<string, unknown>) => JSX.Element);
|
|
34
|
+
render?: HeadlessPartRender<Record<string, unknown>>;
|
|
35
|
+
/** Render the part as this tag instead of the primitive's. */
|
|
36
|
+
tag?: string;
|
|
37
|
+
class?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
style?: JSX.CSSProperties | string;
|
|
40
|
+
ref?: unknown;
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
/** A slider: a group around one thumb, or several for a range. */
|
|
44
|
+
export declare function Slider(props: SliderProps): JSX.Element;
|
|
45
|
+
/** The same component under the name the other Solid parts surfaces use. */
|
|
46
|
+
export declare const SliderRoot: typeof Slider;
|
|
47
|
+
/** Where presses land. A press on the track moves the nearest thumb there. */
|
|
48
|
+
export declare function SliderControl(props: SliderPartProps): JSX.Element;
|
|
49
|
+
/** The rail the thumbs move along. */
|
|
50
|
+
export declare function SliderTrack(props: SliderPartProps): JSX.Element;
|
|
51
|
+
/** The filled part of the track: up to a single thumb, or between a range's thumbs. */
|
|
52
|
+
export declare function SliderIndicator(props: SliderPartProps): JSX.Element;
|
|
53
|
+
/** The kit's own name for the filled part; see {@link SliderIndicator}. */
|
|
54
|
+
export declare const SliderFill: typeof SliderIndicator;
|
|
55
|
+
/**
|
|
56
|
+
* A thumb, with the native range input that takes focus inside it. Its
|
|
57
|
+
* `aria-label`, `aria-labelledby` and `aria-describedby` go to that input.
|
|
58
|
+
*/
|
|
59
|
+
export declare function SliderThumb(props: SliderPartProps & {
|
|
60
|
+
readonly index?: number;
|
|
61
|
+
}): JSX.Element;
|
|
62
|
+
/** The formatted value, a range joined with an en dash. Children replace it. */
|
|
63
|
+
export declare function SliderValue(props: SliderPartProps): JSX.Element;
|
package/dist/slider.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { t as Controller } from "./controller-C8Z-wsos.js";
|
|
2
|
+
import { o as HeadlessPartRender } from "./headless-kqnA1wix.js";
|
|
3
|
+
import { JSX } from "solid-js";
|
|
4
|
+
import { PrimitiveSliderApi, PrimitiveSliderOptions, SliderChangeDetails, SliderCommitDetails, SliderSetOptions } from "@bevelo/core/primitives/slider";
|
|
5
|
+
/** Moves and inspects a slider from outside it. */
|
|
6
|
+
export type SliderApi = Omit<PrimitiveSliderApi, "setValue"> & {
|
|
7
|
+
setValue(value: number | number[], options?: SliderSetOptions): boolean;
|
|
8
|
+
/** Moves focus to a thumb, the first by default. */
|
|
9
|
+
focus(thumb?: number): void;
|
|
10
|
+
};
|
|
11
|
+
/** A controller for a `Slider`: its api, once the slider is mounted. */
|
|
12
|
+
export declare function createSliderController(): Controller<SliderApi>;
|
|
13
|
+
/** The props `Slider` takes: the options, the controller and the root element's props. */
|
|
14
|
+
export type SliderProps = Omit<PrimitiveSliderOptions, "onChange" | "onCommit" | "idSeed" | "inputId"> & {
|
|
15
|
+
onChange?: ((value: number | number[], details: SliderChangeDetails) => void) | undefined;
|
|
16
|
+
onCommit?: ((value: number | number[], details: SliderCommitDetails) => void) | undefined;
|
|
17
|
+
/** Receives the slider's api while mounted. */
|
|
18
|
+
controller?: Controller<SliderApi> | undefined;
|
|
19
|
+
/** The parts, placed by the host. Without them the slider renders its own. */
|
|
20
|
+
children?: JSX.Element | ((state: Record<string, unknown>) => JSX.Element);
|
|
21
|
+
/** Replace the root's element. It receives the part's props and state. */
|
|
22
|
+
render?: HeadlessPartRender<Record<string, unknown>>;
|
|
23
|
+
ref?: unknown;
|
|
24
|
+
id?: string;
|
|
25
|
+
class?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: JSX.CSSProperties | string;
|
|
28
|
+
readonly [key: `data-${string}`]: string | number | boolean | undefined;
|
|
29
|
+
readonly [key: `aria-${string}`]: string | number | boolean | undefined;
|
|
30
|
+
};
|
|
31
|
+
/** The props one slider part accepts. */
|
|
32
|
+
export type SliderPartProps = {
|
|
33
|
+
children?: JSX.Element | ((state: Record<string, unknown>) => JSX.Element);
|
|
34
|
+
render?: HeadlessPartRender<Record<string, unknown>>;
|
|
35
|
+
/** Render the part as this tag instead of the primitive's. */
|
|
36
|
+
tag?: string;
|
|
37
|
+
class?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
style?: JSX.CSSProperties | string;
|
|
40
|
+
ref?: unknown;
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
/** A slider: a group around one thumb, or several for a range. */
|
|
44
|
+
export declare function Slider(props: SliderProps): JSX.Element;
|
|
45
|
+
/** The same component under the name the other Solid parts surfaces use. */
|
|
46
|
+
export declare const SliderRoot: typeof Slider;
|
|
47
|
+
/** Where presses land. A press on the track moves the nearest thumb there. */
|
|
48
|
+
export declare function SliderControl(props: SliderPartProps): JSX.Element;
|
|
49
|
+
/** The rail the thumbs move along. */
|
|
50
|
+
export declare function SliderTrack(props: SliderPartProps): JSX.Element;
|
|
51
|
+
/** The filled part of the track: up to a single thumb, or between a range's thumbs. */
|
|
52
|
+
export declare function SliderIndicator(props: SliderPartProps): JSX.Element;
|
|
53
|
+
/** The kit's own name for the filled part; see {@link SliderIndicator}. */
|
|
54
|
+
export declare const SliderFill: typeof SliderIndicator;
|
|
55
|
+
/**
|
|
56
|
+
* A thumb, with the native range input that takes focus inside it. Its
|
|
57
|
+
* `aria-label`, `aria-labelledby` and `aria-describedby` go to that input.
|
|
58
|
+
*/
|
|
59
|
+
export declare function SliderThumb(props: SliderPartProps & {
|
|
60
|
+
readonly index?: number;
|
|
61
|
+
}): JSX.Element;
|
|
62
|
+
/** The formatted value, a range joined with an en dash. Children replace it. */
|
|
63
|
+
export declare function SliderValue(props: SliderPartProps): JSX.Element;
|
package/dist/slider.js
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { n as useControllerAttach, t as createController } from "./controller-D9qJwhBF.js";
|
|
2
|
+
import { i as FieldContext, n as usePart, r as usePrimitive } from "./headless-DYGhuD8h.js";
|
|
3
|
+
import { o as requireScope } from "./headless-props-CBYucfR5.js";
|
|
4
|
+
import { createComponent } from "solid-js/web";
|
|
5
|
+
import { createContext, splitProps, useContext } from "solid-js";
|
|
6
|
+
import { sliderPrimitive } from "@bevelo/core/primitives/slider";
|
|
7
|
+
// src/slider.tsx
|
|
8
|
+
/** A controller for a `Slider`: its api, once the slider is mounted. */
|
|
9
|
+
function createSliderController() {
|
|
10
|
+
return createController();
|
|
11
|
+
}
|
|
12
|
+
const OPTION_KEYS = [
|
|
13
|
+
"min",
|
|
14
|
+
"max",
|
|
15
|
+
"step",
|
|
16
|
+
"largeStep",
|
|
17
|
+
"minStepsBetweenThumbs",
|
|
18
|
+
"value",
|
|
19
|
+
"defaultValue",
|
|
20
|
+
"disabled",
|
|
21
|
+
"readOnly",
|
|
22
|
+
"invalid",
|
|
23
|
+
"required",
|
|
24
|
+
"orientation",
|
|
25
|
+
"label",
|
|
26
|
+
"labelledBy",
|
|
27
|
+
"name",
|
|
28
|
+
"form",
|
|
29
|
+
"format",
|
|
30
|
+
"locale",
|
|
31
|
+
"onChange",
|
|
32
|
+
"onCommit"
|
|
33
|
+
];
|
|
34
|
+
const SliderContext = createContext(void 0);
|
|
35
|
+
function useSliderHandle(part) {
|
|
36
|
+
return requireScope(SliderContext, part, "Slider");
|
|
37
|
+
}
|
|
38
|
+
function partOptions(props, extra) {
|
|
39
|
+
const tag = typeof props.tag === "string" ? props.tag : void 0;
|
|
40
|
+
if (tag === void 0) return extra;
|
|
41
|
+
return {
|
|
42
|
+
...extra,
|
|
43
|
+
tag
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function thumbInputId(handle, thumb) {
|
|
47
|
+
const inputId = handle.instance.options().inputId;
|
|
48
|
+
return thumb === 0 && inputId !== void 0 && inputId !== "" ? inputId : `${handle.instance.get().baseId}-thumb-${String(thumb)}`;
|
|
49
|
+
}
|
|
50
|
+
/** The parts a slider without children renders. */
|
|
51
|
+
function DefaultParts(props) {
|
|
52
|
+
const thumbs = Array.from({ length: props.thumbs }, (_, index) => createComponent(SliderThumb, { index }));
|
|
53
|
+
return createComponent(SliderControl, { get children() {
|
|
54
|
+
return createComponent(SliderTrack, { get children() {
|
|
55
|
+
return [createComponent(SliderIndicator, {}), thumbs];
|
|
56
|
+
} });
|
|
57
|
+
} });
|
|
58
|
+
}
|
|
59
|
+
/** A slider: a group around one thumb, or several for a range. */
|
|
60
|
+
function Slider(props) {
|
|
61
|
+
const [local, element] = splitProps(props, OPTION_KEYS);
|
|
62
|
+
const [own, rest] = splitProps(element, [
|
|
63
|
+
"controller",
|
|
64
|
+
"children",
|
|
65
|
+
"render"
|
|
66
|
+
]);
|
|
67
|
+
const field = useContext(FieldContext);
|
|
68
|
+
const handle = usePrimitive(sliderPrimitive, () => ({
|
|
69
|
+
...local,
|
|
70
|
+
...local.disabled === void 0 && (field?.instance.get())?.disabled === true ? { disabled: true } : {},
|
|
71
|
+
inputId: field === void 0 ? void 0 : field.api.controlId()
|
|
72
|
+
}));
|
|
73
|
+
useControllerAttach(own.controller, Object.assign(Object.create(handle.api), { focus: (thumb = 0) => {
|
|
74
|
+
if (typeof document !== "undefined") document.getElementById(thumbInputId(handle, thumb))?.focus();
|
|
75
|
+
} }));
|
|
76
|
+
const hidden = usePart(handle, "input");
|
|
77
|
+
const thumbs = () => {
|
|
78
|
+
const value = local.value ?? local.defaultValue;
|
|
79
|
+
return Array.isArray(value) ? Math.max(1, value.length) : 1;
|
|
80
|
+
};
|
|
81
|
+
return createComponent(SliderContext.Provider, {
|
|
82
|
+
value: handle,
|
|
83
|
+
get children() {
|
|
84
|
+
return usePart(handle, "root", () => ({
|
|
85
|
+
...rest,
|
|
86
|
+
get children() {
|
|
87
|
+
return [own.children ?? createComponent(DefaultParts, { get thumbs() {
|
|
88
|
+
return thumbs();
|
|
89
|
+
} }), hidden];
|
|
90
|
+
}
|
|
91
|
+
}), own.render);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/** The same component under the name the other Solid parts surfaces use. */
|
|
96
|
+
const SliderRoot = Slider;
|
|
97
|
+
/** Where presses land. A press on the track moves the nearest thumb there. */
|
|
98
|
+
function SliderControl(props) {
|
|
99
|
+
return usePart(useSliderHandle("SliderControl"), "control", (() => props), props.render, partOptions(props));
|
|
100
|
+
}
|
|
101
|
+
/** The rail the thumbs move along. */
|
|
102
|
+
function SliderTrack(props) {
|
|
103
|
+
return usePart(useSliderHandle("SliderTrack"), "track", (() => props), props.render, partOptions(props));
|
|
104
|
+
}
|
|
105
|
+
/** The filled part of the track: up to a single thumb, or between a range's thumbs. */
|
|
106
|
+
function SliderIndicator(props) {
|
|
107
|
+
return usePart(useSliderHandle("SliderIndicator"), "fill", (() => props), props.render, partOptions(props));
|
|
108
|
+
}
|
|
109
|
+
/** The kit's own name for the filled part; see {@link SliderIndicator}. */
|
|
110
|
+
const SliderFill = SliderIndicator;
|
|
111
|
+
/**
|
|
112
|
+
* A thumb, with the native range input that takes focus inside it. Its
|
|
113
|
+
* `aria-label`, `aria-labelledby` and `aria-describedby` go to that input.
|
|
114
|
+
*/
|
|
115
|
+
function SliderThumb(props) {
|
|
116
|
+
const handle = useSliderHandle("SliderThumb");
|
|
117
|
+
const [named, local, rest] = splitProps(props, [
|
|
118
|
+
"aria-label",
|
|
119
|
+
"aria-labelledby",
|
|
120
|
+
"aria-describedby"
|
|
121
|
+
], ["index", "children"]);
|
|
122
|
+
const index = () => local.index ?? 0;
|
|
123
|
+
const input = usePart(handle, "thumb-input", () => ({ ...named }), void 0, { index: index() });
|
|
124
|
+
return usePart(handle, "thumb", () => ({
|
|
125
|
+
...rest,
|
|
126
|
+
children: (state) => [typeof local.children === "function" ? local.children(state) : local.children, input]
|
|
127
|
+
}), props.render, partOptions(props, { index: index() }));
|
|
128
|
+
}
|
|
129
|
+
/** The formatted value, a range joined with an en dash. Children replace it. */
|
|
130
|
+
function SliderValue(props) {
|
|
131
|
+
const [local, rest] = splitProps(props, ["children"]);
|
|
132
|
+
return usePart(useSliderHandle("SliderValue"), "value", () => ({
|
|
133
|
+
...rest,
|
|
134
|
+
children: (state) => local.children === void 0 ? state["text"] : typeof local.children === "function" ? local.children(state) : local.children
|
|
135
|
+
}), props.render, partOptions(props));
|
|
136
|
+
}
|
|
137
|
+
export { Slider, SliderControl, SliderFill, SliderIndicator, SliderRoot, SliderThumb, SliderTrack, SliderValue, createSliderController };
|