@yahoo/uds-v5-wip 0.0.1
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/dist/components/accordion.config.d.ts +2 -0
- package/dist/components/accordion.config.js +2 -0
- package/dist/components/accordion.d.ts +2 -0
- package/dist/components/accordion.js +2 -0
- package/dist/components/alert.config.d.ts +2 -0
- package/dist/components/alert.config.js +2 -0
- package/dist/components/alert.d.ts +2 -0
- package/dist/components/alert.js +2 -0
- package/dist/components/anchor.config.d.ts +2 -0
- package/dist/components/anchor.config.js +2 -0
- package/dist/components/anchor.d.ts +2 -0
- package/dist/components/anchor.js +2 -0
- package/dist/components/article.d.ts +2 -0
- package/dist/components/article.js +2 -0
- package/dist/components/aside.d.ts +2 -0
- package/dist/components/aside.js +2 -0
- package/dist/components/avatar-group.config.d.ts +2 -0
- package/dist/components/avatar-group.config.js +2 -0
- package/dist/components/avatar-group.d.ts +2 -0
- package/dist/components/avatar-group.js +2 -0
- package/dist/components/avatar.config.d.ts +2 -0
- package/dist/components/avatar.config.js +2 -0
- package/dist/components/avatar.d.ts +2 -0
- package/dist/components/avatar.js +2 -0
- package/dist/components/badge.config.d.ts +2 -0
- package/dist/components/badge.config.js +2 -0
- package/dist/components/badge.d.ts +2 -0
- package/dist/components/badge.js +2 -0
- package/dist/components/box.d.ts +2 -0
- package/dist/components/box.js +2 -0
- package/dist/components/breadcrumb.config.d.ts +2 -0
- package/dist/components/breadcrumb.config.js +2 -0
- package/dist/components/breadcrumb.d.ts +2 -0
- package/dist/components/breadcrumb.js +2 -0
- package/dist/components/button.config.d.ts +2 -0
- package/dist/components/button.config.js +2 -0
- package/dist/components/button.d.ts +2 -0
- package/dist/components/button.js +2 -0
- package/dist/components/card.config.d.ts +2 -0
- package/dist/components/card.config.js +2 -0
- package/dist/components/card.d.ts +2 -0
- package/dist/components/card.js +2 -0
- package/dist/components/collapsible.config.d.ts +2 -0
- package/dist/components/collapsible.config.js +2 -0
- package/dist/components/collapsible.d.ts +2 -0
- package/dist/components/collapsible.js +2 -0
- package/dist/components/command.config.d.ts +2 -0
- package/dist/components/command.config.js +2 -0
- package/dist/components/command.d.ts +2 -0
- package/dist/components/command.js +2 -0
- package/dist/components/control-color.config.d.ts +2 -0
- package/dist/components/control-color.config.js +2 -0
- package/dist/components/control-color.d.ts +2 -0
- package/dist/components/control-color.js +2 -0
- package/dist/components/control-curve.config.d.ts +2 -0
- package/dist/components/control-curve.config.js +2 -0
- package/dist/components/control-curve.d.ts +2 -0
- package/dist/components/control-curve.js +2 -0
- package/dist/components/control-folder.config.d.ts +2 -0
- package/dist/components/control-folder.config.js +2 -0
- package/dist/components/control-folder.d.ts +2 -0
- package/dist/components/control-folder.js +2 -0
- package/dist/components/control-group.config.d.ts +2 -0
- package/dist/components/control-group.config.js +2 -0
- package/dist/components/control-group.d.ts +2 -0
- package/dist/components/control-group.js +2 -0
- package/dist/components/control-knob.config.d.ts +2 -0
- package/dist/components/control-knob.config.js +2 -0
- package/dist/components/control-knob.d.ts +2 -0
- package/dist/components/control-knob.js +2 -0
- package/dist/components/control-panel.config.d.ts +2 -0
- package/dist/components/control-panel.config.js +2 -0
- package/dist/components/control-panel.d.ts +2 -0
- package/dist/components/control-panel.js +2 -0
- package/dist/components/control-select.config.d.ts +2 -0
- package/dist/components/control-select.config.js +2 -0
- package/dist/components/control-select.d.ts +2 -0
- package/dist/components/control-select.js +2 -0
- package/dist/components/control-slider.config.d.ts +2 -0
- package/dist/components/control-slider.config.js +2 -0
- package/dist/components/control-slider.d.ts +2 -0
- package/dist/components/control-slider.js +2 -0
- package/dist/components/control-spring.config.d.ts +2 -0
- package/dist/components/control-spring.config.js +2 -0
- package/dist/components/control-spring.d.ts +2 -0
- package/dist/components/control-spring.js +2 -0
- package/dist/components/control-stepper.config.d.ts +2 -0
- package/dist/components/control-stepper.config.js +2 -0
- package/dist/components/control-stepper.d.ts +2 -0
- package/dist/components/control-stepper.js +2 -0
- package/dist/components/control-toggle.config.d.ts +2 -0
- package/dist/components/control-toggle.config.js +2 -0
- package/dist/components/control-toggle.d.ts +2 -0
- package/dist/components/control-toggle.js +2 -0
- package/dist/components/dist/_slots.js +8 -0
- package/dist/components/dist/accordion.config.d.ts +432 -0
- package/dist/components/dist/accordion.config.js +81 -0
- package/dist/components/dist/accordion.d.ts +454 -0
- package/dist/components/dist/accordion.js +60 -0
- package/dist/components/dist/alert.config.d.ts +220 -0
- package/dist/components/dist/alert.config.js +54 -0
- package/dist/components/dist/alert.d.ts +231 -0
- package/dist/components/dist/alert.js +16 -0
- package/dist/components/dist/anchor.config.d.ts +251 -0
- package/dist/components/dist/anchor.config.js +22 -0
- package/dist/components/dist/anchor.d.ts +262 -0
- package/dist/components/dist/anchor.js +9 -0
- package/dist/components/dist/article.d.ts +12 -0
- package/dist/components/dist/article.js +9 -0
- package/dist/components/dist/aside.d.ts +12 -0
- package/dist/components/dist/aside.js +9 -0
- package/dist/components/dist/avatar-group.config.d.ts +316 -0
- package/dist/components/dist/avatar-group.config.js +33 -0
- package/dist/components/dist/avatar-group.d.ts +330 -0
- package/dist/components/dist/avatar-group.js +39 -0
- package/dist/components/dist/avatar.config.d.ts +198 -0
- package/dist/components/dist/avatar.config.js +49 -0
- package/dist/components/dist/avatar.d.ts +212 -0
- package/dist/components/dist/avatar.js +20 -0
- package/dist/components/dist/badge.config.d.ts +478 -0
- package/dist/components/dist/badge.config.js +99 -0
- package/dist/components/dist/badge.d.ts +490 -0
- package/dist/components/dist/badge.js +16 -0
- package/dist/components/dist/box.d.ts +15 -0
- package/dist/components/dist/box.js +9 -0
- package/dist/components/dist/breadcrumb.config.d.ts +391 -0
- package/dist/components/dist/breadcrumb.config.js +43 -0
- package/dist/components/dist/breadcrumb.d.ts +421 -0
- package/dist/components/dist/breadcrumb.js +119 -0
- package/dist/components/dist/button.config.d.ts +382 -0
- package/dist/components/dist/button.config.js +91 -0
- package/dist/components/dist/button.d.ts +404 -0
- package/dist/components/dist/button.js +35 -0
- package/dist/components/dist/card.config.d.ts +337 -0
- package/dist/components/dist/card.config.js +33 -0
- package/dist/components/dist/card.d.ts +353 -0
- package/dist/components/dist/card.js +27 -0
- package/dist/components/dist/collapsible.config.d.ts +46 -0
- package/dist/components/dist/collapsible.config.js +46 -0
- package/dist/components/dist/collapsible.d.ts +62 -0
- package/dist/components/dist/collapsible.js +38 -0
- package/dist/components/dist/command.config.d.ts +1614 -0
- package/dist/components/dist/command.config.js +170 -0
- package/dist/components/dist/command.d.ts +1723 -0
- package/dist/components/dist/command.js +341 -0
- package/dist/components/dist/control-color.config.d.ts +980 -0
- package/dist/components/dist/control-color.config.js +81 -0
- package/dist/components/dist/control-color.d.ts +996 -0
- package/dist/components/dist/control-color.js +64 -0
- package/dist/components/dist/control-curve.config.d.ts +19 -0
- package/dist/components/dist/control-curve.config.js +14 -0
- package/dist/components/dist/control-curve.d.ts +36 -0
- package/dist/components/dist/control-curve.js +81 -0
- package/dist/components/dist/control-folder.config.d.ts +178 -0
- package/dist/components/dist/control-folder.config.js +47 -0
- package/dist/components/dist/control-folder.d.ts +195 -0
- package/dist/components/dist/control-folder.js +41 -0
- package/dist/components/dist/control-group.config.d.ts +860 -0
- package/dist/components/dist/control-group.config.js +80 -0
- package/dist/components/dist/control-group.d.ts +882 -0
- package/dist/components/dist/control-group.js +89 -0
- package/dist/components/dist/control-knob.config.d.ts +793 -0
- package/dist/components/dist/control-knob.config.js +67 -0
- package/dist/components/dist/control-knob.d.ts +820 -0
- package/dist/components/dist/control-knob.js +148 -0
- package/dist/components/dist/control-panel.config.d.ts +403 -0
- package/dist/components/dist/control-panel.config.js +38 -0
- package/dist/components/dist/control-panel.d.ts +416 -0
- package/dist/components/dist/control-panel.js +22 -0
- package/dist/components/dist/control-select.config.d.ts +1177 -0
- package/dist/components/dist/control-select.config.js +102 -0
- package/dist/components/dist/control-select.d.ts +1201 -0
- package/dist/components/dist/control-select.js +63 -0
- package/dist/components/dist/control-slider.config.d.ts +105 -0
- package/dist/components/dist/control-slider.config.js +98 -0
- package/dist/components/dist/control-slider.d.ts +128 -0
- package/dist/components/dist/control-slider.js +87 -0
- package/dist/components/dist/control-spring.config.d.ts +418 -0
- package/dist/components/dist/control-spring.config.js +36 -0
- package/dist/components/dist/control-spring.d.ts +440 -0
- package/dist/components/dist/control-spring.js +136 -0
- package/dist/components/dist/control-stepper.config.d.ts +1085 -0
- package/dist/components/dist/control-stepper.config.js +108 -0
- package/dist/components/dist/control-stepper.d.ts +1105 -0
- package/dist/components/dist/control-stepper.js +109 -0
- package/dist/components/dist/control-toggle.config.d.ts +408 -0
- package/dist/components/dist/control-toggle.config.js +26 -0
- package/dist/components/dist/control-toggle.d.ts +421 -0
- package/dist/components/dist/control-toggle.js +36 -0
- package/dist/components/dist/createSlot.d.ts +9 -0
- package/dist/components/dist/createSlot.js +89 -0
- package/dist/components/dist/dropdown.config.d.ts +921 -0
- package/dist/components/dist/dropdown.config.js +107 -0
- package/dist/components/dist/dropdown.d.ts +951 -0
- package/dist/components/dist/dropdown.js +92 -0
- package/dist/components/dist/empty-state.config.d.ts +397 -0
- package/dist/components/dist/empty-state.config.js +53 -0
- package/dist/components/dist/empty-state.d.ts +417 -0
- package/dist/components/dist/empty-state.js +33 -0
- package/dist/components/dist/footer.d.ts +12 -0
- package/dist/components/dist/footer.js +9 -0
- package/dist/components/dist/grid.d.ts +42 -0
- package/dist/components/dist/grid.js +34 -0
- package/dist/components/dist/header.d.ts +12 -0
- package/dist/components/dist/header.js +9 -0
- package/dist/components/dist/hstack.d.ts +16 -0
- package/dist/components/dist/hstack.js +21 -0
- package/dist/components/dist/image.d.ts +20 -0
- package/dist/components/dist/image.js +9 -0
- package/dist/components/dist/input.config.d.ts +59 -0
- package/dist/components/dist/input.config.js +42 -0
- package/dist/components/dist/input.d.ts +68 -0
- package/dist/components/dist/input.js +14 -0
- package/dist/components/dist/item.config.d.ts +352 -0
- package/dist/components/dist/item.config.js +83 -0
- package/dist/components/dist/item.d.ts +375 -0
- package/dist/components/dist/item.js +51 -0
- package/dist/components/dist/list.d.ts +20 -0
- package/dist/components/dist/list.js +21 -0
- package/dist/components/dist/main.d.ts +12 -0
- package/dist/components/dist/main.js +9 -0
- package/dist/components/dist/modal.config.d.ts +398 -0
- package/dist/components/dist/modal.config.js +92 -0
- package/dist/components/dist/modal.d.ts +434 -0
- package/dist/components/dist/modal.js +125 -0
- package/dist/components/dist/nav-header.config.d.ts +159 -0
- package/dist/components/dist/nav-header.config.js +26 -0
- package/dist/components/dist/nav-header.d.ts +174 -0
- package/dist/components/dist/nav-header.js +23 -0
- package/dist/components/dist/nav.d.ts +12 -0
- package/dist/components/dist/nav.js +9 -0
- package/dist/components/dist/preset-bar.config.d.ts +193 -0
- package/dist/components/dist/preset-bar.config.js +39 -0
- package/dist/components/dist/preset-bar.d.ts +216 -0
- package/dist/components/dist/preset-bar.js +71 -0
- package/dist/components/dist/presets/index.d.ts +17675 -0
- package/dist/components/dist/presets/index.js +97 -0
- package/dist/components/dist/pressable.d.ts +12 -0
- package/dist/components/dist/pressable.js +9 -0
- package/dist/components/dist/progress.config.d.ts +297 -0
- package/dist/components/dist/progress.config.js +35 -0
- package/dist/components/dist/progress.d.ts +312 -0
- package/dist/components/dist/progress.js +43 -0
- package/dist/components/dist/section.d.ts +12 -0
- package/dist/components/dist/section.js +9 -0
- package/dist/components/dist/select.config.d.ts +32 -0
- package/dist/components/dist/select.config.js +25 -0
- package/dist/components/dist/select.d.ts +46 -0
- package/dist/components/dist/select.js +13 -0
- package/dist/components/dist/sheet.config.d.ts +246 -0
- package/dist/components/dist/sheet.config.js +99 -0
- package/dist/components/dist/sheet.d.ts +268 -0
- package/dist/components/dist/sheet.js +53 -0
- package/dist/components/dist/sidebar.config.d.ts +1652 -0
- package/dist/components/dist/sidebar.config.js +217 -0
- package/dist/components/dist/sidebar.d.ts +1826 -0
- package/dist/components/dist/sidebar.js +496 -0
- package/dist/components/dist/skeleton.config.d.ts +17 -0
- package/dist/components/dist/skeleton.config.js +10 -0
- package/dist/components/dist/skeleton.d.ts +28 -0
- package/dist/components/dist/skeleton.js +16 -0
- package/dist/components/dist/slider.config.d.ts +45 -0
- package/dist/components/dist/slider.config.js +40 -0
- package/dist/components/dist/slider.d.ts +71 -0
- package/dist/components/dist/slider.js +247 -0
- package/dist/components/dist/spinner.config.d.ts +35 -0
- package/dist/components/dist/spinner.config.js +24 -0
- package/dist/components/dist/spinner.d.ts +43 -0
- package/dist/components/dist/spinner.js +29 -0
- package/dist/components/dist/svg.d.ts +22 -0
- package/dist/components/dist/svg.js +17 -0
- package/dist/components/dist/switch.config.d.ts +354 -0
- package/dist/components/dist/switch.config.js +47 -0
- package/dist/components/dist/switch.d.ts +371 -0
- package/dist/components/dist/switch.js +32 -0
- package/dist/components/dist/table.d.ts +37 -0
- package/dist/components/dist/table.js +29 -0
- package/dist/components/dist/tabs.config.d.ts +612 -0
- package/dist/components/dist/tabs.config.js +56 -0
- package/dist/components/dist/tabs.d.ts +633 -0
- package/dist/components/dist/tabs.js +77 -0
- package/dist/components/dist/text.config.d.ts +307 -0
- package/dist/components/dist/text.config.js +149 -0
- package/dist/components/dist/text.d.ts +206 -0
- package/dist/components/dist/text.js +12 -0
- package/dist/components/dist/textarea.config.d.ts +353 -0
- package/dist/components/dist/textarea.config.js +57 -0
- package/dist/components/dist/textarea.d.ts +363 -0
- package/dist/components/dist/textarea.js +9 -0
- package/dist/components/dist/toast.config.d.ts +336 -0
- package/dist/components/dist/toast.config.js +145 -0
- package/dist/components/dist/toast.d.ts +427 -0
- package/dist/components/dist/toast.js +159 -0
- package/dist/components/dist/tooltip.config.d.ts +194 -0
- package/dist/components/dist/tooltip.config.js +40 -0
- package/dist/components/dist/tooltip.d.ts +207 -0
- package/dist/components/dist/tooltip.js +28 -0
- package/dist/components/dist/vstack.d.ts +16 -0
- package/dist/components/dist/vstack.js +20 -0
- package/dist/components/dropdown.config.d.ts +2 -0
- package/dist/components/dropdown.config.js +2 -0
- package/dist/components/dropdown.d.ts +2 -0
- package/dist/components/dropdown.js +2 -0
- package/dist/components/empty-state.config.d.ts +2 -0
- package/dist/components/empty-state.config.js +2 -0
- package/dist/components/empty-state.d.ts +2 -0
- package/dist/components/empty-state.js +2 -0
- package/dist/components/footer.d.ts +2 -0
- package/dist/components/footer.js +2 -0
- package/dist/components/grid.d.ts +2 -0
- package/dist/components/grid.js +2 -0
- package/dist/components/header.d.ts +2 -0
- package/dist/components/header.js +2 -0
- package/dist/components/hstack.d.ts +2 -0
- package/dist/components/hstack.js +2 -0
- package/dist/components/image.d.ts +2 -0
- package/dist/components/image.js +2 -0
- package/dist/components/input.config.d.ts +2 -0
- package/dist/components/input.config.js +2 -0
- package/dist/components/input.d.ts +2 -0
- package/dist/components/input.js +2 -0
- package/dist/components/item.config.d.ts +2 -0
- package/dist/components/item.config.js +2 -0
- package/dist/components/item.d.ts +2 -0
- package/dist/components/item.js +2 -0
- package/dist/components/list.d.ts +2 -0
- package/dist/components/list.js +2 -0
- package/dist/components/main.d.ts +2 -0
- package/dist/components/main.js +2 -0
- package/dist/components/modal.config.d.ts +2 -0
- package/dist/components/modal.config.js +2 -0
- package/dist/components/modal.d.ts +2 -0
- package/dist/components/modal.js +2 -0
- package/dist/components/nav-header.config.d.ts +2 -0
- package/dist/components/nav-header.config.js +2 -0
- package/dist/components/nav-header.d.ts +2 -0
- package/dist/components/nav-header.js +2 -0
- package/dist/components/nav.d.ts +2 -0
- package/dist/components/nav.js +2 -0
- package/dist/components/preset-bar.config.d.ts +2 -0
- package/dist/components/preset-bar.config.js +2 -0
- package/dist/components/preset-bar.d.ts +2 -0
- package/dist/components/preset-bar.js +2 -0
- package/dist/components/presets/index.d.ts +44 -0
- package/dist/components/presets/index.js +44 -0
- package/dist/components/pressable.d.ts +2 -0
- package/dist/components/pressable.js +2 -0
- package/dist/components/progress.config.d.ts +2 -0
- package/dist/components/progress.config.js +2 -0
- package/dist/components/progress.d.ts +2 -0
- package/dist/components/progress.js +2 -0
- package/dist/components/section.d.ts +2 -0
- package/dist/components/section.js +2 -0
- package/dist/components/select.config.d.ts +2 -0
- package/dist/components/select.config.js +2 -0
- package/dist/components/select.d.ts +2 -0
- package/dist/components/select.js +2 -0
- package/dist/components/sheet.config.d.ts +2 -0
- package/dist/components/sheet.config.js +2 -0
- package/dist/components/sheet.d.ts +2 -0
- package/dist/components/sheet.js +2 -0
- package/dist/components/sidebar.config.d.ts +2 -0
- package/dist/components/sidebar.config.js +2 -0
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +2 -0
- package/dist/components/skeleton.config.d.ts +2 -0
- package/dist/components/skeleton.config.js +2 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/skeleton.js +2 -0
- package/dist/components/slider.config.d.ts +2 -0
- package/dist/components/slider.config.js +2 -0
- package/dist/components/slider.d.ts +2 -0
- package/dist/components/slider.js +2 -0
- package/dist/components/spinner.config.d.ts +2 -0
- package/dist/components/spinner.config.js +2 -0
- package/dist/components/spinner.d.ts +2 -0
- package/dist/components/spinner.js +2 -0
- package/dist/components/svg.d.ts +2 -0
- package/dist/components/svg.js +2 -0
- package/dist/components/switch.config.d.ts +2 -0
- package/dist/components/switch.config.js +2 -0
- package/dist/components/switch.d.ts +2 -0
- package/dist/components/switch.js +2 -0
- package/dist/components/table.d.ts +2 -0
- package/dist/components/table.js +2 -0
- package/dist/components/tabs.config.d.ts +2 -0
- package/dist/components/tabs.config.js +2 -0
- package/dist/components/tabs.d.ts +2 -0
- package/dist/components/tabs.js +2 -0
- package/dist/components/text.config.d.ts +2 -0
- package/dist/components/text.config.js +2 -0
- package/dist/components/text.d.ts +2 -0
- package/dist/components/text.js +2 -0
- package/dist/components/textarea.config.d.ts +2 -0
- package/dist/components/textarea.config.js +2 -0
- package/dist/components/textarea.d.ts +2 -0
- package/dist/components/textarea.js +2 -0
- package/dist/components/toast.config.d.ts +2 -0
- package/dist/components/toast.config.js +2 -0
- package/dist/components/toast.d.ts +2 -0
- package/dist/components/toast.js +2 -0
- package/dist/components/tooltip.config.d.ts +2 -0
- package/dist/components/tooltip.config.js +2 -0
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.js +2 -0
- package/dist/components/vstack.d.ts +2 -0
- package/dist/components/vstack.js +2 -0
- package/dist/config/dist/component-resolution.d.ts +1 -0
- package/dist/config/dist/component-resolution.js +78 -0
- package/dist/config/dist/consts/defaultColors.d.ts +253 -0
- package/dist/config/dist/consts/defaultColors.js +252 -0
- package/dist/config/dist/createConfig.d.ts +214 -0
- package/dist/config/dist/createConfig.js +454 -0
- package/dist/config/dist/index.d.ts +5 -0
- package/dist/config/dist/index.js +4 -0
- package/dist/config/dist/preset-merge.js +165 -0
- package/dist/config/dist/serialize.d.ts +57 -0
- package/dist/config/dist/serialize.js +153 -0
- package/dist/config-utils/dist/componentConfig.d.ts +10 -0
- package/dist/config-utils/dist/componentConfig.js +11 -0
- package/dist/config-utils.d.ts +2 -0
- package/dist/config-utils.js +2 -0
- package/dist/config.d.ts +3512 -0
- package/dist/config.js +22 -0
- package/dist/core/dist/createComponent.boundaries.js +192 -0
- package/dist/core/dist/createComponent.d.ts +57 -0
- package/dist/core/dist/createComponent.js +67 -0
- package/dist/core/dist/createComponentExample.d.ts +42 -0
- package/dist/core/dist/createComponentExample.js +27 -0
- package/dist/core/dist/createProvider.d.ts +13 -0
- package/dist/core/dist/createProvider.js +24 -0
- package/dist/core/dist/generated/stylePropsTwMap.d.ts +1701 -0
- package/dist/core/dist/generated/stylePropsTwMap.js +570 -0
- package/dist/core/dist/getComponentStyles.d.ts +50 -0
- package/dist/core/dist/getComponentStyles.js +85 -0
- package/dist/core/dist/getStyles.d.ts +43 -0
- package/dist/core/dist/getStyles.js +305 -0
- package/dist/core/dist/index.d.ts +11 -0
- package/dist/core/dist/index.js +11 -0
- package/dist/core/dist/macros.d.ts +22 -0
- package/dist/core/dist/macros.js +49 -0
- package/dist/core/dist/propMappings.d.ts +77 -0
- package/dist/core/dist/propMappings.js +1404 -0
- package/dist/core/dist/resolveMotionState.d.ts +5 -0
- package/dist/core/dist/resolveMotionState.js +17 -0
- package/dist/core/dist/resolveProps.boundaries.js +130 -0
- package/dist/core/dist/transformPreset.d.ts +18 -0
- package/dist/core/dist/transformPreset.js +28 -0
- package/dist/core/dist/withDefaultStyleProps.d.ts +44 -0
- package/dist/core/dist/withDefaultStyleProps.js +18 -0
- package/dist/core.d.ts +12 -0
- package/dist/core.js +13 -0
- package/dist/createSlot.d.ts +2 -0
- package/dist/createSlot.js +2 -0
- package/dist/devtools.d.ts +2 -0
- package/dist/devtools.js +3 -0
- package/dist/fixtures.d.ts +2 -0
- package/dist/fixtures.js +3 -0
- package/dist/foundational-presets/dist/boldVibrant.d.ts +3575 -0
- package/dist/foundational-presets/dist/boldVibrant.js +326 -0
- package/dist/foundational-presets/dist/brutalist.d.ts +3575 -0
- package/dist/foundational-presets/dist/brutalist.js +326 -0
- package/dist/foundational-presets/dist/candy.d.ts +3575 -0
- package/dist/foundational-presets/dist/candy.js +326 -0
- package/dist/foundational-presets/dist/cleanMinimalist.d.ts +3575 -0
- package/dist/foundational-presets/dist/cleanMinimalist.js +326 -0
- package/dist/foundational-presets/dist/corporate.d.ts +3575 -0
- package/dist/foundational-presets/dist/corporate.js +326 -0
- package/dist/foundational-presets/dist/darkMoody.d.ts +3575 -0
- package/dist/foundational-presets/dist/darkMoody.js +326 -0
- package/dist/foundational-presets/dist/defaultPreset.d.ts +3509 -0
- package/dist/foundational-presets/dist/defaultPreset.js +1784 -0
- package/dist/foundational-presets/dist/forest.d.ts +3575 -0
- package/dist/foundational-presets/dist/forest.js +326 -0
- package/dist/foundational-presets/dist/highContrast.d.ts +3575 -0
- package/dist/foundational-presets/dist/highContrast.js +326 -0
- package/dist/foundational-presets/dist/index.d.ts +19 -0
- package/dist/foundational-presets/dist/index.js +19 -0
- package/dist/foundational-presets/dist/lavender.d.ts +3575 -0
- package/dist/foundational-presets/dist/lavender.js +326 -0
- package/dist/foundational-presets/dist/luxury.d.ts +3575 -0
- package/dist/foundational-presets/dist/luxury.js +326 -0
- package/dist/foundational-presets/dist/monochrome.d.ts +3575 -0
- package/dist/foundational-presets/dist/monochrome.js +326 -0
- package/dist/foundational-presets/dist/motion.d.ts +13 -0
- package/dist/foundational-presets/dist/motion.js +10 -0
- package/dist/foundational-presets/dist/neonCyber.d.ts +3575 -0
- package/dist/foundational-presets/dist/neonCyber.js +326 -0
- package/dist/foundational-presets/dist/newspaper.d.ts +3575 -0
- package/dist/foundational-presets/dist/newspaper.js +326 -0
- package/dist/foundational-presets/dist/ocean.d.ts +3575 -0
- package/dist/foundational-presets/dist/ocean.js +326 -0
- package/dist/foundational-presets/dist/slate.d.ts +3575 -0
- package/dist/foundational-presets/dist/slate.js +326 -0
- package/dist/foundational-presets/dist/sunset.d.ts +3575 -0
- package/dist/foundational-presets/dist/sunset.js +326 -0
- package/dist/foundational-presets/dist/terminal.d.ts +3575 -0
- package/dist/foundational-presets/dist/terminal.js +326 -0
- package/dist/foundational-presets/dist/warmOrganic.d.ts +3575 -0
- package/dist/foundational-presets/dist/warmOrganic.js +326 -0
- package/dist/loader/dist/_virtual/_rolldown/runtime.js +6 -0
- package/dist/loader/dist/loader/artifacts.js +43 -0
- package/dist/loader/dist/loader/babel-utils.js +29 -0
- package/dist/loader/dist/loader/create-component-data.js +33 -0
- package/dist/loader/dist/loader/create-component-lowering.js +454 -0
- package/dist/loader/dist/loader/data-attr-transform.js +191 -0
- package/dist/loader/dist/loader/dynamic-style-codegen.js +96 -0
- package/dist/loader/dist/loader/internal-meta.js +22 -0
- package/dist/loader/dist/loader/motion-transform.js +717 -0
- package/dist/loader/dist/loader/style-transform.js +670 -0
- package/dist/loader/dist/loader.d.ts +8 -0
- package/dist/loader/dist/loader.js +357 -0
- package/dist/loader/dist/next.d.ts +17 -0
- package/dist/loader/dist/next.js +77 -0
- package/dist/loader/dist/node_modules/react/cjs/react-jsx-runtime.development.js +203 -0
- package/dist/loader/dist/node_modules/react/cjs/react-jsx-runtime.production.js +25 -0
- package/dist/loader/dist/node_modules/react/cjs/react.development.js +762 -0
- package/dist/loader/dist/node_modules/react/cjs/react.production.js +351 -0
- package/dist/loader/dist/node_modules/react/index.js +10 -0
- package/dist/loader/dist/node_modules/react/jsx-runtime.js +10 -0
- package/dist/loader/dist/packages/core/dist/createComponent.js +6 -0
- package/dist/loader/dist/packages/core/dist/createProvider.js +7 -0
- package/dist/loader/dist/packages/core/dist/generated/stylePropsTwMap.js +570 -0
- package/dist/loader/dist/packages/core/dist/getComponentStyles.js +2 -0
- package/dist/loader/dist/packages/core/dist/getStyles.js +58 -0
- package/dist/loader/dist/packages/core/dist/index.js +6 -0
- package/dist/loader/dist/packages/core/dist/macros.js +41 -0
- package/dist/loader/dist/packages/core/dist/propMappings.js +1347 -0
- package/dist/loader/dist/packages/core/dist/withDefaultStyleProps.js +1 -0
- package/dist/loader.d.ts +2 -0
- package/dist/loader.js +2 -0
- package/dist/next.d.ts +2 -0
- package/dist/next.js +2 -0
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.js +2 -0
- package/dist/presets/dist/boldVibrant.d.ts +6 -0
- package/dist/presets/dist/boldVibrant.js +7 -0
- package/dist/presets/dist/brutalist.d.ts +6 -0
- package/dist/presets/dist/brutalist.js +7 -0
- package/dist/presets/dist/candy.d.ts +6 -0
- package/dist/presets/dist/candy.js +7 -0
- package/dist/presets/dist/cleanMinimalist.d.ts +6 -0
- package/dist/presets/dist/cleanMinimalist.js +7 -0
- package/dist/presets/dist/corporate.d.ts +6 -0
- package/dist/presets/dist/corporate.js +7 -0
- package/dist/presets/dist/darkMoody.d.ts +6 -0
- package/dist/presets/dist/darkMoody.js +7 -0
- package/dist/presets/dist/defaultPreset.d.ts +6 -0
- package/dist/presets/dist/defaultPreset.js +68 -0
- package/dist/presets/dist/forest.d.ts +6 -0
- package/dist/presets/dist/forest.js +7 -0
- package/dist/presets/dist/highContrast.d.ts +6 -0
- package/dist/presets/dist/highContrast.js +7 -0
- package/dist/presets/dist/index.d.ts +19 -0
- package/dist/presets/dist/index.js +19 -0
- package/dist/presets/dist/lavender.d.ts +6 -0
- package/dist/presets/dist/lavender.js +7 -0
- package/dist/presets/dist/luxury.d.ts +6 -0
- package/dist/presets/dist/luxury.js +7 -0
- package/dist/presets/dist/monochrome.d.ts +6 -0
- package/dist/presets/dist/monochrome.js +7 -0
- package/dist/presets/dist/neonCyber.d.ts +6 -0
- package/dist/presets/dist/neonCyber.js +7 -0
- package/dist/presets/dist/newspaper.d.ts +6 -0
- package/dist/presets/dist/newspaper.js +7 -0
- package/dist/presets/dist/ocean.d.ts +6 -0
- package/dist/presets/dist/ocean.js +7 -0
- package/dist/presets/dist/slate.d.ts +6 -0
- package/dist/presets/dist/slate.js +7 -0
- package/dist/presets/dist/sunset.d.ts +6 -0
- package/dist/presets/dist/sunset.js +7 -0
- package/dist/presets/dist/terminal.d.ts +6 -0
- package/dist/presets/dist/terminal.js +7 -0
- package/dist/presets/dist/warmOrganic.d.ts +6 -0
- package/dist/presets/dist/warmOrganic.js +7 -0
- package/dist/presets/motion.d.ts +2 -0
- package/dist/presets/motion.js +2 -0
- package/dist/presets.d.ts +20 -0
- package/dist/presets.js +21 -0
- package/dist/remotion/dist/components/image-slide.config.js +43 -0
- package/dist/remotion/dist/components/image-slide.d.ts +20 -0
- package/dist/remotion/dist/components/image-slide.js +24 -0
- package/dist/remotion/dist/components/index.js +16 -0
- package/dist/remotion/dist/components/lower-third.config.js +54 -0
- package/dist/remotion/dist/components/lower-third.d.ts +21 -0
- package/dist/remotion/dist/components/lower-third.js +26 -0
- package/dist/remotion/dist/components/quote-card.config.js +85 -0
- package/dist/remotion/dist/components/quote-card.d.ts +21 -0
- package/dist/remotion/dist/components/quote-card.js +27 -0
- package/dist/remotion/dist/components/split-screen.config.js +90 -0
- package/dist/remotion/dist/components/split-screen.d.ts +25 -0
- package/dist/remotion/dist/components/split-screen.js +35 -0
- package/dist/remotion/dist/components/stat-card.config.js +55 -0
- package/dist/remotion/dist/components/stat-card.d.ts +19 -0
- package/dist/remotion/dist/components/stat-card.js +23 -0
- package/dist/remotion/dist/components/text-overlay.config.js +46 -0
- package/dist/remotion/dist/components/text-overlay.d.ts +17 -0
- package/dist/remotion/dist/components/text-overlay.js +16 -0
- package/dist/remotion/dist/components/title-card.config.js +56 -0
- package/dist/remotion/dist/components/title-card.d.ts +19 -0
- package/dist/remotion/dist/components/title-card.js +23 -0
- package/dist/remotion/dist/components/typing-text.config.js +57 -0
- package/dist/remotion/dist/components/typing-text.d.ts +21 -0
- package/dist/remotion/dist/components/typing-text.js +23 -0
- package/dist/remotion/dist/index.d.ts +8 -0
- package/dist/remotion/dist/index.js +8 -0
- package/dist/remotion/dist/transitions/fade.js +19 -0
- package/dist/remotion/dist/transitions/index.js +7 -0
- package/dist/remotion/dist/transitions/slide-down.js +21 -0
- package/dist/remotion/dist/transitions/slide-left.js +21 -0
- package/dist/remotion/dist/transitions/slide-right.js +21 -0
- package/dist/remotion/dist/transitions/slide-up.js +21 -0
- package/dist/remotion/dist/transitions/wipe.js +21 -0
- package/dist/remotion/dist/transitions/zoom.js +19 -0
- package/dist/remotion.d.ts +9 -0
- package/dist/remotion.js +10 -0
- package/dist/styles.d.ts +4 -0
- package/dist/styles.js +5 -0
- package/dist/transformPreset.d.ts +2 -0
- package/dist/transformPreset.js +3 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/dist/utils/dist/array-utils/closestItem.d.ts +5 -0
- package/dist/utils/dist/array-utils/closestItem.js +9 -0
- package/dist/utils/dist/array-utils/removeItem.d.ts +5 -0
- package/dist/utils/dist/array-utils/removeItem.js +8 -0
- package/dist/utils/dist/component-style-defaults.d.ts +6 -0
- package/dist/utils/dist/component-style-defaults.js +68 -0
- package/dist/utils/dist/index.js +23 -0
- package/dist/utils/dist/math-utils/clamp.d.ts +13 -0
- package/dist/utils/dist/math-utils/clamp.js +14 -0
- package/dist/utils/dist/motion-utils/interpolate.d.ts +11 -0
- package/dist/utils/dist/motion-utils/interpolate.js +25 -0
- package/dist/utils/dist/object-utils/entries.d.ts +5 -0
- package/dist/utils/dist/object-utils/entries.js +6 -0
- package/dist/utils/dist/object-utils/flattenObj.d.ts +13 -0
- package/dist/utils/dist/object-utils/flattenObj.js +21 -0
- package/dist/utils/dist/object-utils/fromEntries.d.ts +5 -0
- package/dist/utils/dist/object-utils/fromEntries.js +6 -0
- package/dist/utils/dist/object-utils/keys.d.ts +5 -0
- package/dist/utils/dist/object-utils/keys.js +6 -0
- package/dist/utils/dist/object-utils/mapKeys.d.ts +6 -0
- package/dist/utils/dist/object-utils/mapKeys.js +10 -0
- package/dist/utils/dist/object-utils/mapValues.d.ts +6 -0
- package/dist/utils/dist/object-utils/mapValues.js +9 -0
- package/dist/utils/dist/string-utils/arrayToUnion.d.ts +5 -0
- package/dist/utils/dist/string-utils/arrayToUnion.js +6 -0
- package/dist/utils/dist/string-utils/capitalize.d.ts +5 -0
- package/dist/utils/dist/string-utils/capitalize.js +6 -0
- package/dist/utils/dist/string-utils/componentClassName.d.ts +26 -0
- package/dist/utils/dist/string-utils/componentClassName.js +33 -0
- package/dist/utils/dist/string-utils/createTemplate.d.ts +17 -0
- package/dist/utils/dist/string-utils/createTemplate.js +142 -0
- package/dist/utils/dist/string-utils/cssVar.d.ts +54 -0
- package/dist/utils/dist/string-utils/cssVar.js +61 -0
- package/dist/utils/dist/string-utils/cssVars.d.ts +82 -0
- package/dist/utils/dist/string-utils/cssVars.js +108 -0
- package/dist/utils/dist/string-utils/dedent.d.ts +48 -0
- package/dist/utils/dist/string-utils/dedent.js +68 -0
- package/dist/utils/dist/string-utils/indent.d.ts +5 -0
- package/dist/utils/dist/string-utils/indent.js +6 -0
- package/dist/utils/dist/string-utils/join.d.ts +6 -0
- package/dist/utils/dist/string-utils/join.js +6 -0
- package/dist/utils/dist/string-utils/kebabCase.d.ts +14 -0
- package/dist/utils/dist/string-utils/kebabCase.js +14 -0
- package/dist/utils/dist/string-utils/objectToInterface.js +6 -0
- package/dist/utils/dist/string-utils/split.d.ts +11 -0
- package/dist/utils/dist/string-utils/split.js +12 -0
- package/dist/utils/dist/string-utils/tsProperties.d.ts +30 -0
- package/dist/utils/dist/string-utils/tsProperties.js +60 -0
- package/dist/utils.d.ts +24 -0
- package/dist/utils.js +25 -0
- package/package.json +185 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createComponent } from "../../core/dist/createComponent.js";
|
|
3
|
+
import "../../core/dist/index.js";
|
|
4
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region ../components/dist/control-select.js
|
|
7
|
+
/**
|
|
8
|
+
* @description A labeled dropdown select with click-outside-to-close
|
|
9
|
+
*/
|
|
10
|
+
const ControlSelect = createComponent(({ props, label, value, options, onChange }) => {
|
|
11
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
12
|
+
const containerRef = useRef(null);
|
|
13
|
+
const toggleOpen = useCallback(() => {
|
|
14
|
+
setIsOpen((prev) => !prev);
|
|
15
|
+
}, []);
|
|
16
|
+
const handleSelect = useCallback((id) => {
|
|
17
|
+
onChange(id);
|
|
18
|
+
setIsOpen(false);
|
|
19
|
+
}, [onChange]);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
if (!isOpen) return;
|
|
22
|
+
function handleClickOutside(e) {
|
|
23
|
+
if (containerRef.current && !containerRef.current.contains(e.target)) setIsOpen(false);
|
|
24
|
+
}
|
|
25
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
26
|
+
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
27
|
+
}, [isOpen]);
|
|
28
|
+
const activeLabel = options.find((o) => o.id === value)?.label ?? value;
|
|
29
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
30
|
+
ref: containerRef,
|
|
31
|
+
...props.root,
|
|
32
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
33
|
+
...props.header,
|
|
34
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
35
|
+
...props.label,
|
|
36
|
+
children: label
|
|
37
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
onClick: toggleOpen,
|
|
40
|
+
"aria-expanded": isOpen,
|
|
41
|
+
...props.trigger,
|
|
42
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
43
|
+
...props.triggerLabel,
|
|
44
|
+
children: activeLabel
|
|
45
|
+
})
|
|
46
|
+
})]
|
|
47
|
+
}), isOpen && /* @__PURE__ */ jsx("div", {
|
|
48
|
+
...props.dropdown,
|
|
49
|
+
children: options.map((option) => /* @__PURE__ */ jsx("button", {
|
|
50
|
+
type: "button",
|
|
51
|
+
onClick: () => handleSelect(option.id),
|
|
52
|
+
style: { backgroundColor: option.id === value ? "var(--uds-bg-tertiary)" : void 0 },
|
|
53
|
+
...props.option,
|
|
54
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
55
|
+
...props.optionLabel,
|
|
56
|
+
children: option.label
|
|
57
|
+
})
|
|
58
|
+
}, option.id))
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
//#endregion
|
|
63
|
+
export { ControlSelect };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
|
+
//#region ../components/dist/control-slider.config.d.ts
|
|
3
|
+
//#region src/control-slider.config.d.ts
|
|
4
|
+
declare const controlSliderConfig: ComponentConfig<{
|
|
5
|
+
ControlSlider: {
|
|
6
|
+
readonly base: {
|
|
7
|
+
readonly root: {
|
|
8
|
+
readonly position: "relative";
|
|
9
|
+
readonly display: "flex";
|
|
10
|
+
readonly alignItems: "center";
|
|
11
|
+
readonly height: string;
|
|
12
|
+
readonly borderRadius: string;
|
|
13
|
+
readonly backgroundColor: string;
|
|
14
|
+
readonly cursor: "ew-resize";
|
|
15
|
+
readonly userSelect: "none";
|
|
16
|
+
readonly touchAction: "none";
|
|
17
|
+
readonly overflow: "hidden";
|
|
18
|
+
readonly transition: "background-color 0.2s";
|
|
19
|
+
readonly _hover: {
|
|
20
|
+
readonly backgroundColor: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly lane: {
|
|
24
|
+
readonly position: "absolute";
|
|
25
|
+
readonly left: string;
|
|
26
|
+
readonly right: string;
|
|
27
|
+
readonly top: string;
|
|
28
|
+
readonly bottom: string;
|
|
29
|
+
readonly borderRadius: string;
|
|
30
|
+
readonly cursor: "ew-resize";
|
|
31
|
+
};
|
|
32
|
+
readonly markers: {
|
|
33
|
+
readonly position: "absolute";
|
|
34
|
+
readonly left: "25%";
|
|
35
|
+
readonly right: "25%";
|
|
36
|
+
readonly top: "50%";
|
|
37
|
+
readonly height: string;
|
|
38
|
+
readonly transform: "translateY(-50%)";
|
|
39
|
+
readonly display: "flex";
|
|
40
|
+
readonly alignItems: "center";
|
|
41
|
+
readonly justifyContent: "space-between";
|
|
42
|
+
readonly pointerEvents: "none";
|
|
43
|
+
readonly opacity: "0.2";
|
|
44
|
+
};
|
|
45
|
+
readonly marker: {
|
|
46
|
+
readonly width: string;
|
|
47
|
+
readonly height: string;
|
|
48
|
+
readonly borderRadius: string;
|
|
49
|
+
readonly backgroundColor: string;
|
|
50
|
+
};
|
|
51
|
+
readonly fill: {
|
|
52
|
+
readonly position: "absolute";
|
|
53
|
+
readonly left: string;
|
|
54
|
+
readonly top: string;
|
|
55
|
+
readonly bottom: string;
|
|
56
|
+
readonly width: string;
|
|
57
|
+
readonly borderRadius: string;
|
|
58
|
+
readonly backgroundColor: string;
|
|
59
|
+
readonly opacity: "0.05";
|
|
60
|
+
readonly transition: "width 0.1s linear";
|
|
61
|
+
readonly pointerEvents: "none";
|
|
62
|
+
};
|
|
63
|
+
readonly thumb: {
|
|
64
|
+
readonly position: "absolute";
|
|
65
|
+
readonly top: "50%";
|
|
66
|
+
readonly left: string;
|
|
67
|
+
readonly transform: "translate(-50%, -50%)";
|
|
68
|
+
readonly width: string;
|
|
69
|
+
readonly height: string;
|
|
70
|
+
readonly borderRadius: string;
|
|
71
|
+
readonly backgroundColor: string;
|
|
72
|
+
readonly opacity: "0.5";
|
|
73
|
+
readonly transition: "left 0.1s linear";
|
|
74
|
+
readonly pointerEvents: "auto";
|
|
75
|
+
readonly cursor: "ew-resize";
|
|
76
|
+
};
|
|
77
|
+
readonly label: {
|
|
78
|
+
readonly position: "relative";
|
|
79
|
+
readonly zIndex: "2";
|
|
80
|
+
readonly paddingLeft: string;
|
|
81
|
+
readonly fontSize: "0.8125rem";
|
|
82
|
+
readonly fontWeight: string;
|
|
83
|
+
readonly color: string;
|
|
84
|
+
readonly pointerEvents: "none";
|
|
85
|
+
};
|
|
86
|
+
readonly value: {
|
|
87
|
+
readonly position: "absolute";
|
|
88
|
+
readonly right: string;
|
|
89
|
+
readonly top: "0";
|
|
90
|
+
readonly bottom: "0";
|
|
91
|
+
readonly display: "flex";
|
|
92
|
+
readonly alignItems: "center";
|
|
93
|
+
readonly justifyContent: "flex-end";
|
|
94
|
+
readonly fontSize: "0.8125rem";
|
|
95
|
+
readonly fontWeight: string;
|
|
96
|
+
readonly fontVariantNumeric: "tabular-nums";
|
|
97
|
+
readonly color: string;
|
|
98
|
+
readonly pointerEvents: "none";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}, {}>;
|
|
103
|
+
type ControlSliderConfig = typeof controlSliderConfig; //#endregion
|
|
104
|
+
//#endregion
|
|
105
|
+
export { ControlSliderConfig, controlSliderConfig };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defaultFoundationPreset } from "../../foundational-presets/dist/defaultPreset.js";
|
|
2
|
+
import "../../foundational-presets/dist/index.js";
|
|
3
|
+
//#region ../components/dist/control-slider.config.js
|
|
4
|
+
const controlSliderConfig = defaultFoundationPreset.defineComponent("ControlSlider", ({ tokens }) => ({ base: {
|
|
5
|
+
root: {
|
|
6
|
+
position: "relative",
|
|
7
|
+
display: "flex",
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
height: tokens.spacing["8"],
|
|
10
|
+
borderRadius: tokens.borderRadius.md,
|
|
11
|
+
backgroundColor: tokens.bg.secondary,
|
|
12
|
+
cursor: "ew-resize",
|
|
13
|
+
userSelect: "none",
|
|
14
|
+
touchAction: "none",
|
|
15
|
+
overflow: "hidden",
|
|
16
|
+
transition: "background-color 0.2s",
|
|
17
|
+
_hover: { backgroundColor: tokens.bg.tertiary }
|
|
18
|
+
},
|
|
19
|
+
lane: {
|
|
20
|
+
position: "absolute",
|
|
21
|
+
left: tokens.spacing["0"],
|
|
22
|
+
right: tokens.spacing["0"],
|
|
23
|
+
top: tokens.spacing["0"],
|
|
24
|
+
bottom: tokens.spacing["0"],
|
|
25
|
+
borderRadius: tokens.borderRadius.md,
|
|
26
|
+
cursor: "ew-resize"
|
|
27
|
+
},
|
|
28
|
+
markers: {
|
|
29
|
+
position: "absolute",
|
|
30
|
+
left: "25%",
|
|
31
|
+
right: "25%",
|
|
32
|
+
top: "50%",
|
|
33
|
+
height: tokens.spacing["1"],
|
|
34
|
+
transform: "translateY(-50%)",
|
|
35
|
+
display: "flex",
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
justifyContent: "space-between",
|
|
38
|
+
pointerEvents: "none",
|
|
39
|
+
opacity: "0.2"
|
|
40
|
+
},
|
|
41
|
+
marker: {
|
|
42
|
+
width: tokens.spacing["0.5"],
|
|
43
|
+
height: tokens.spacing["0.5"],
|
|
44
|
+
borderRadius: tokens.borderRadius.full,
|
|
45
|
+
backgroundColor: tokens.color["on-secondary"]
|
|
46
|
+
},
|
|
47
|
+
fill: {
|
|
48
|
+
position: "absolute",
|
|
49
|
+
left: tokens.spacing["0"],
|
|
50
|
+
top: tokens.spacing["0"],
|
|
51
|
+
bottom: tokens.spacing["0"],
|
|
52
|
+
width: tokens.spacing["0"],
|
|
53
|
+
borderRadius: tokens.borderRadius.md,
|
|
54
|
+
backgroundColor: tokens.color["always/black"],
|
|
55
|
+
opacity: "0.05",
|
|
56
|
+
transition: "width 0.1s linear",
|
|
57
|
+
pointerEvents: "none"
|
|
58
|
+
},
|
|
59
|
+
thumb: {
|
|
60
|
+
position: "absolute",
|
|
61
|
+
top: "50%",
|
|
62
|
+
left: tokens.spacing["0"],
|
|
63
|
+
transform: "translate(-50%, -50%)",
|
|
64
|
+
width: tokens.spacing["1"],
|
|
65
|
+
height: tokens.spacing["3"],
|
|
66
|
+
borderRadius: tokens.borderRadius.full,
|
|
67
|
+
backgroundColor: tokens.color["on-secondary"],
|
|
68
|
+
opacity: "0.5",
|
|
69
|
+
transition: "left 0.1s linear",
|
|
70
|
+
pointerEvents: "auto",
|
|
71
|
+
cursor: "ew-resize"
|
|
72
|
+
},
|
|
73
|
+
label: {
|
|
74
|
+
position: "relative",
|
|
75
|
+
zIndex: "2",
|
|
76
|
+
paddingLeft: tokens.spacing["3"],
|
|
77
|
+
fontSize: "0.8125rem",
|
|
78
|
+
fontWeight: tokens.fontWeight.medium,
|
|
79
|
+
color: tokens.color["on-secondary"],
|
|
80
|
+
pointerEvents: "none"
|
|
81
|
+
},
|
|
82
|
+
value: {
|
|
83
|
+
position: "absolute",
|
|
84
|
+
right: tokens.spacing["3"],
|
|
85
|
+
top: "0",
|
|
86
|
+
bottom: "0",
|
|
87
|
+
display: "flex",
|
|
88
|
+
alignItems: "center",
|
|
89
|
+
justifyContent: "flex-end",
|
|
90
|
+
fontSize: "0.8125rem",
|
|
91
|
+
fontWeight: tokens.fontWeight.normal,
|
|
92
|
+
fontVariantNumeric: "tabular-nums",
|
|
93
|
+
color: tokens.color["on-secondary"],
|
|
94
|
+
pointerEvents: "none"
|
|
95
|
+
}
|
|
96
|
+
} }));
|
|
97
|
+
//#endregion
|
|
98
|
+
export { controlSliderConfig };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
|
+
import * as _$react from "react";
|
|
3
|
+
import * as _$_uds_types0 from "@uds/types";
|
|
4
|
+
|
|
5
|
+
//#region ../components/dist/control-slider.d.ts
|
|
6
|
+
//#region src/control-slider.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* @description A scrub-style slider for precise numeric value selection
|
|
9
|
+
*/
|
|
10
|
+
declare const ControlSlider: _$react.FC<_$_uds_types0.CreateComponentProps<ComponentConfig<{
|
|
11
|
+
ControlSlider: {
|
|
12
|
+
readonly base: {
|
|
13
|
+
readonly root: {
|
|
14
|
+
readonly position: "relative";
|
|
15
|
+
readonly display: "flex";
|
|
16
|
+
readonly alignItems: "center";
|
|
17
|
+
readonly height: string;
|
|
18
|
+
readonly borderRadius: string;
|
|
19
|
+
readonly backgroundColor: string;
|
|
20
|
+
readonly cursor: "ew-resize";
|
|
21
|
+
readonly userSelect: "none";
|
|
22
|
+
readonly touchAction: "none";
|
|
23
|
+
readonly overflow: "hidden";
|
|
24
|
+
readonly transition: "background-color 0.2s";
|
|
25
|
+
readonly _hover: {
|
|
26
|
+
readonly backgroundColor: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly lane: {
|
|
30
|
+
readonly position: "absolute";
|
|
31
|
+
readonly left: string;
|
|
32
|
+
readonly right: string;
|
|
33
|
+
readonly top: string;
|
|
34
|
+
readonly bottom: string;
|
|
35
|
+
readonly borderRadius: string;
|
|
36
|
+
readonly cursor: "ew-resize";
|
|
37
|
+
};
|
|
38
|
+
readonly markers: {
|
|
39
|
+
readonly position: "absolute";
|
|
40
|
+
readonly left: "25%";
|
|
41
|
+
readonly right: "25%";
|
|
42
|
+
readonly top: "50%";
|
|
43
|
+
readonly height: string;
|
|
44
|
+
readonly transform: "translateY(-50%)";
|
|
45
|
+
readonly display: "flex";
|
|
46
|
+
readonly alignItems: "center";
|
|
47
|
+
readonly justifyContent: "space-between";
|
|
48
|
+
readonly pointerEvents: "none";
|
|
49
|
+
readonly opacity: "0.2";
|
|
50
|
+
};
|
|
51
|
+
readonly marker: {
|
|
52
|
+
readonly width: string;
|
|
53
|
+
readonly height: string;
|
|
54
|
+
readonly borderRadius: string;
|
|
55
|
+
readonly backgroundColor: string;
|
|
56
|
+
};
|
|
57
|
+
readonly fill: {
|
|
58
|
+
readonly position: "absolute";
|
|
59
|
+
readonly left: string;
|
|
60
|
+
readonly top: string;
|
|
61
|
+
readonly bottom: string;
|
|
62
|
+
readonly width: string;
|
|
63
|
+
readonly borderRadius: string;
|
|
64
|
+
readonly backgroundColor: string;
|
|
65
|
+
readonly opacity: "0.05";
|
|
66
|
+
readonly transition: "width 0.1s linear";
|
|
67
|
+
readonly pointerEvents: "none";
|
|
68
|
+
};
|
|
69
|
+
readonly thumb: {
|
|
70
|
+
readonly position: "absolute";
|
|
71
|
+
readonly top: "50%";
|
|
72
|
+
readonly left: string;
|
|
73
|
+
readonly transform: "translate(-50%, -50%)";
|
|
74
|
+
readonly width: string;
|
|
75
|
+
readonly height: string;
|
|
76
|
+
readonly borderRadius: string;
|
|
77
|
+
readonly backgroundColor: string;
|
|
78
|
+
readonly opacity: "0.5";
|
|
79
|
+
readonly transition: "left 0.1s linear";
|
|
80
|
+
readonly pointerEvents: "auto";
|
|
81
|
+
readonly cursor: "ew-resize";
|
|
82
|
+
};
|
|
83
|
+
readonly label: {
|
|
84
|
+
readonly position: "relative";
|
|
85
|
+
readonly zIndex: "2";
|
|
86
|
+
readonly paddingLeft: string;
|
|
87
|
+
readonly fontSize: "0.8125rem";
|
|
88
|
+
readonly fontWeight: string;
|
|
89
|
+
readonly color: string;
|
|
90
|
+
readonly pointerEvents: "none";
|
|
91
|
+
};
|
|
92
|
+
readonly value: {
|
|
93
|
+
readonly position: "absolute";
|
|
94
|
+
readonly right: string;
|
|
95
|
+
readonly top: "0";
|
|
96
|
+
readonly bottom: "0";
|
|
97
|
+
readonly display: "flex";
|
|
98
|
+
readonly alignItems: "center";
|
|
99
|
+
readonly justifyContent: "flex-end";
|
|
100
|
+
readonly fontSize: "0.8125rem";
|
|
101
|
+
readonly fontWeight: string;
|
|
102
|
+
readonly fontVariantNumeric: "tabular-nums";
|
|
103
|
+
readonly color: string;
|
|
104
|
+
readonly pointerEvents: "none";
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}, {}>, {
|
|
109
|
+
label: string;
|
|
110
|
+
value: number;
|
|
111
|
+
min: number;
|
|
112
|
+
max: number;
|
|
113
|
+
step: number;
|
|
114
|
+
onChange: (v: number) => void;
|
|
115
|
+
unit?: string;
|
|
116
|
+
}, {
|
|
117
|
+
root: "div";
|
|
118
|
+
lane: "div";
|
|
119
|
+
markers: "div";
|
|
120
|
+
marker: "span";
|
|
121
|
+
fill: "div";
|
|
122
|
+
thumb: "div";
|
|
123
|
+
label: "span";
|
|
124
|
+
value: "span";
|
|
125
|
+
}>>;
|
|
126
|
+
type ControlSliderProps = React.ComponentProps<typeof ControlSlider>; //#endregion
|
|
127
|
+
//#endregion
|
|
128
|
+
export { ControlSlider, ControlSliderProps };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createComponent } from "../../core/dist/createComponent.js";
|
|
3
|
+
import "../../core/dist/index.js";
|
|
4
|
+
import { useCallback, useRef } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region ../components/dist/control-slider.js
|
|
7
|
+
function clamp(v, lo, hi) {
|
|
8
|
+
return Math.min(hi, Math.max(lo, v));
|
|
9
|
+
}
|
|
10
|
+
function quantize(v, step) {
|
|
11
|
+
return Math.round(v / step) * step;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @description A scrub-style slider for precise numeric value selection
|
|
15
|
+
*/
|
|
16
|
+
const ControlSlider = createComponent(({ props, label, value, min, max, step, onChange, unit = "" }) => {
|
|
17
|
+
const trackRef = useRef(null);
|
|
18
|
+
const dragging = useRef(false);
|
|
19
|
+
const pct = (value - min) / (max - min) * 100;
|
|
20
|
+
const rawSegments = (max - min) / step;
|
|
21
|
+
const isDiscrete = Number.isFinite(step) && step > 0 && Number.isFinite(rawSegments) && rawSegments > 1 && rawSegments <= 200 && Math.abs(rawSegments - Math.round(rawSegments)) < 1e-6;
|
|
22
|
+
const interiorSnapCount = isDiscrete ? Math.max(Math.round(rawSegments) - 1, 0) : 0;
|
|
23
|
+
const dotCount = isDiscrete ? Math.min(interiorSnapCount, 5) : 0;
|
|
24
|
+
const resolve = useCallback((clientX) => {
|
|
25
|
+
const el = trackRef.current;
|
|
26
|
+
if (!el) return;
|
|
27
|
+
const rect = el.getBoundingClientRect();
|
|
28
|
+
const interactiveWidth = Math.max(rect.width, 1);
|
|
29
|
+
const clamped = clamp(quantize(min + clamp((clientX - rect.left) / interactiveWidth, 0, 1) * (max - min), step), min, max);
|
|
30
|
+
const decimals = step < 1 ? String(step).split(".")[1]?.length ?? 0 : 0;
|
|
31
|
+
onChange(Number(clamped.toFixed(decimals)));
|
|
32
|
+
}, [
|
|
33
|
+
min,
|
|
34
|
+
max,
|
|
35
|
+
step,
|
|
36
|
+
onChange
|
|
37
|
+
]);
|
|
38
|
+
const onPointerDown = useCallback((e) => {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
41
|
+
dragging.current = true;
|
|
42
|
+
resolve(e.clientX);
|
|
43
|
+
}, [resolve]);
|
|
44
|
+
const onPointerMove = useCallback((e) => {
|
|
45
|
+
if (!dragging.current) return;
|
|
46
|
+
resolve(e.clientX);
|
|
47
|
+
}, [resolve]);
|
|
48
|
+
const onPointerUp = useCallback(() => {
|
|
49
|
+
dragging.current = false;
|
|
50
|
+
}, []);
|
|
51
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
52
|
+
...props.root,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ jsxs("div", {
|
|
55
|
+
...props.lane,
|
|
56
|
+
ref: trackRef,
|
|
57
|
+
onPointerDown,
|
|
58
|
+
onPointerMove,
|
|
59
|
+
onPointerUp,
|
|
60
|
+
children: [
|
|
61
|
+
dotCount > 0 && /* @__PURE__ */ jsx("div", {
|
|
62
|
+
...props.markers,
|
|
63
|
+
children: Array.from({ length: dotCount }, (_, i) => i + 1).map((n) => /* @__PURE__ */ jsx("span", { ...props.marker }, n))
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ jsx("div", {
|
|
66
|
+
...props.fill,
|
|
67
|
+
style: { width: `${pct}%` }
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ jsx("div", {
|
|
70
|
+
...props.thumb,
|
|
71
|
+
style: { left: `${pct}%` }
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ jsx("span", {
|
|
76
|
+
...props.label,
|
|
77
|
+
children: label
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ jsxs("span", {
|
|
80
|
+
...props.value,
|
|
81
|
+
children: [value, unit]
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
//#endregion
|
|
87
|
+
export { ControlSlider };
|