@locus-ui/components 0.0.16 → 0.1.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/accordion-context.d.mts +15 -0
- package/dist/components/accordion/accordion-context.d.ts +15 -0
- package/dist/components/accordion/accordion-context.js +52 -0
- package/dist/components/accordion/accordion-context.js.map +1 -0
- package/dist/components/accordion/accordion-context.mjs +17 -0
- package/dist/components/accordion/accordion-context.mjs.map +1 -0
- package/dist/components/accordion/accordion.d.mts +22 -0
- package/dist/components/accordion/accordion.d.ts +22 -0
- package/dist/components/accordion/accordion.js +38 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/accordion/accordion.mjs +14 -0
- package/dist/components/accordion/accordion.mjs.map +1 -0
- package/dist/components/accordion/accordion.props.d.mts +40 -0
- package/dist/components/accordion/accordion.props.d.ts +40 -0
- package/dist/components/accordion/accordion.props.js +65 -0
- package/dist/components/accordion/accordion.props.js.map +1 -0
- package/dist/components/accordion/accordion.props.mjs +40 -0
- package/dist/components/accordion/accordion.props.mjs.map +1 -0
- package/dist/components/accordion/content/accordion-content.d.mts +14 -0
- package/dist/components/accordion/content/accordion-content.d.ts +14 -0
- package/dist/components/accordion/content/accordion-content.js +61 -0
- package/dist/components/accordion/content/accordion-content.js.map +1 -0
- package/dist/components/accordion/content/accordion-content.mjs +29 -0
- package/dist/components/accordion/content/accordion-content.mjs.map +1 -0
- package/dist/components/accordion/content/accordion-content.props.d.mts +6 -0
- package/dist/components/accordion/content/accordion-content.props.d.ts +6 -0
- package/dist/components/accordion/content/accordion-content.props.js +31 -0
- package/dist/components/accordion/content/accordion-content.props.js.map +1 -0
- package/dist/components/accordion/content/accordion-content.props.mjs +7 -0
- package/dist/components/accordion/content/accordion-content.props.mjs.map +1 -0
- package/dist/components/accordion/header/accordion-header.d.mts +14 -0
- package/dist/components/accordion/header/accordion-header.d.ts +14 -0
- package/dist/components/accordion/header/accordion-header.js +86 -0
- package/dist/components/accordion/header/accordion-header.js.map +1 -0
- package/dist/components/accordion/header/accordion-header.mjs +54 -0
- package/dist/components/accordion/header/accordion-header.mjs.map +1 -0
- package/dist/components/accordion/header/accordion-header.props.d.mts +11 -0
- package/dist/components/accordion/header/accordion-header.props.d.ts +11 -0
- package/dist/components/accordion/header/accordion-header.props.js +34 -0
- package/dist/components/accordion/header/accordion-header.props.js.map +1 -0
- package/dist/components/accordion/header/accordion-header.props.mjs +10 -0
- package/dist/components/accordion/header/accordion-header.props.mjs.map +1 -0
- package/dist/components/accordion/index.d.mts +14 -0
- package/dist/components/accordion/index.d.ts +14 -0
- package/dist/components/accordion/index.js +29 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/accordion/index.mjs +5 -0
- package/dist/components/accordion/index.mjs.map +1 -0
- package/dist/components/accordion/item/accordion-item.d.mts +15 -0
- package/dist/components/accordion/item/accordion-item.d.ts +15 -0
- package/dist/components/accordion/item/accordion-item.js +97 -0
- package/dist/components/accordion/item/accordion-item.js.map +1 -0
- package/dist/components/accordion/item/accordion-item.mjs +68 -0
- package/dist/components/accordion/item/accordion-item.mjs.map +1 -0
- package/dist/components/accordion/item/accordion-item.props.d.mts +19 -0
- package/dist/components/accordion/item/accordion-item.props.d.ts +19 -0
- package/dist/components/accordion/item/accordion-item.props.js +42 -0
- package/dist/components/accordion/item/accordion-item.props.js.map +1 -0
- package/dist/components/accordion/item/accordion-item.props.mjs +18 -0
- package/dist/components/accordion/item/accordion-item.props.mjs.map +1 -0
- package/dist/components/accordion/root/accordion-root.d.mts +17 -0
- package/dist/components/accordion/root/accordion-root.d.ts +17 -0
- package/dist/components/accordion/root/accordion-root.js +102 -0
- package/dist/components/accordion/root/accordion-root.js.map +1 -0
- package/dist/components/accordion/root/accordion-root.mjs +72 -0
- package/dist/components/accordion/root/accordion-root.mjs.map +1 -0
- package/dist/components/accordion/root/accordion-root.props.d.mts +30 -0
- package/dist/components/accordion/root/accordion-root.props.d.ts +30 -0
- package/dist/components/accordion/root/accordion-root.props.js +59 -0
- package/dist/components/accordion/root/accordion-root.props.js.map +1 -0
- package/dist/components/accordion/root/accordion-root.props.mjs +34 -0
- package/dist/components/accordion/root/accordion-root.props.mjs.map +1 -0
- package/dist/components/badge/badge.d.mts +15 -0
- package/dist/components/badge/badge.d.ts +15 -0
- package/dist/components/badge/badge.js +64 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/badge/badge.mjs +35 -0
- package/dist/components/badge/badge.mjs.map +1 -0
- package/dist/components/badge/badge.props.d.mts +16 -0
- package/dist/components/badge/badge.props.d.ts +16 -0
- package/dist/components/badge/badge.props.js +41 -0
- package/dist/components/badge/badge.props.js.map +1 -0
- package/dist/components/badge/badge.props.mjs +16 -0
- package/dist/components/badge/badge.props.mjs.map +1 -0
- package/dist/components/badge/index.d.mts +9 -0
- package/dist/components/badge/index.d.ts +9 -0
- package/dist/components/badge/index.js +29 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/badge/index.mjs +5 -0
- package/dist/components/badge/index.mjs.map +1 -0
- package/dist/components/box/box.d.mts +16 -0
- package/dist/components/box/box.d.ts +16 -0
- package/dist/components/box/box.js +66 -0
- package/dist/components/box/box.js.map +1 -0
- package/dist/components/box/box.mjs +38 -0
- package/dist/components/box/box.mjs.map +1 -0
- package/dist/components/box/box.props.d.mts +6 -0
- package/dist/components/box/box.props.d.ts +6 -0
- package/dist/components/box/box.props.js +43 -0
- package/dist/components/box/box.props.js.map +1 -0
- package/dist/components/box/box.props.mjs +19 -0
- package/dist/components/box/box.props.mjs.map +1 -0
- package/dist/components/box/index.d.mts +8 -0
- package/dist/components/box/index.d.ts +8 -0
- package/dist/components/box/index.js +29 -0
- package/dist/components/box/index.js.map +1 -0
- package/dist/components/box/index.mjs +5 -0
- package/dist/components/box/index.mjs.map +1 -0
- package/dist/components/button/button.d.mts +16 -0
- package/dist/components/button/button.d.ts +16 -0
- package/dist/components/button/button.js +85 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/button.mjs +57 -0
- package/dist/components/button/button.mjs.map +1 -0
- package/dist/components/button/button.props.d.mts +40 -0
- package/dist/components/button/button.props.d.ts +40 -0
- package/dist/components/button/button.props.js +65 -0
- package/dist/components/button/button.props.js.map +1 -0
- package/dist/components/button/button.props.mjs +40 -0
- package/dist/components/button/button.props.mjs.map +1 -0
- package/dist/components/button/index.d.mts +10 -0
- package/dist/components/button/index.d.ts +10 -0
- package/dist/components/button/index.js +29 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button/index.mjs +5 -0
- package/dist/components/button/index.mjs.map +1 -0
- package/dist/components/checkbox/checkbox-context.d.mts +26 -0
- package/dist/components/checkbox/checkbox-context.d.ts +26 -0
- package/dist/components/checkbox/checkbox-context.js +52 -0
- package/dist/components/checkbox/checkbox-context.js.map +1 -0
- package/dist/components/checkbox/checkbox-context.mjs +17 -0
- package/dist/components/checkbox/checkbox-context.mjs.map +1 -0
- package/dist/components/checkbox/checkbox.d.mts +24 -0
- package/dist/components/checkbox/checkbox.d.ts +24 -0
- package/dist/components/checkbox/checkbox.js +36 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/checkbox.mjs +12 -0
- package/dist/components/checkbox/checkbox.mjs.map +1 -0
- package/dist/components/checkbox/index.d.mts +15 -0
- package/dist/components/checkbox/index.d.ts +15 -0
- package/dist/components/checkbox/index.js +29 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/checkbox/index.mjs +5 -0
- package/dist/components/checkbox/index.mjs.map +1 -0
- package/dist/components/checkbox/indicator/checkbox-indicator.d.mts +15 -0
- package/dist/components/checkbox/indicator/checkbox-indicator.d.ts +15 -0
- package/dist/components/checkbox/indicator/checkbox-indicator.js +114 -0
- package/dist/components/checkbox/indicator/checkbox-indicator.js.map +1 -0
- package/dist/components/checkbox/indicator/checkbox-indicator.mjs +82 -0
- package/dist/components/checkbox/indicator/checkbox-indicator.mjs.map +1 -0
- package/dist/components/checkbox/indicator/checkbox-indicator.props.d.mts +15 -0
- package/dist/components/checkbox/indicator/checkbox-indicator.props.d.ts +15 -0
- package/dist/components/checkbox/indicator/checkbox-indicator.props.js +39 -0
- package/dist/components/checkbox/indicator/checkbox-indicator.props.js.map +1 -0
- package/dist/components/checkbox/indicator/checkbox-indicator.props.mjs +15 -0
- package/dist/components/checkbox/indicator/checkbox-indicator.props.mjs.map +1 -0
- package/dist/components/checkbox/label/checkbox-label.d.mts +15 -0
- package/dist/components/checkbox/label/checkbox-label.d.ts +15 -0
- package/dist/components/checkbox/label/checkbox-label.js +69 -0
- package/dist/components/checkbox/label/checkbox-label.js.map +1 -0
- package/dist/components/checkbox/label/checkbox-label.mjs +37 -0
- package/dist/components/checkbox/label/checkbox-label.mjs.map +1 -0
- package/dist/components/checkbox/label/checkbox-label.props.d.mts +20 -0
- package/dist/components/checkbox/label/checkbox-label.props.d.ts +20 -0
- package/dist/components/checkbox/label/checkbox-label.props.js +44 -0
- package/dist/components/checkbox/label/checkbox-label.props.js.map +1 -0
- package/dist/components/checkbox/label/checkbox-label.props.mjs +19 -0
- package/dist/components/checkbox/label/checkbox-label.props.mjs.map +1 -0
- package/dist/components/checkbox/root/checkbox-root.d.mts +23 -0
- package/dist/components/checkbox/root/checkbox-root.d.ts +23 -0
- package/dist/components/checkbox/root/checkbox-root.js +160 -0
- package/dist/components/checkbox/root/checkbox-root.js.map +1 -0
- package/dist/components/checkbox/root/checkbox-root.mjs +142 -0
- package/dist/components/checkbox/root/checkbox-root.mjs.map +1 -0
- package/dist/components/checkbox/root/checkbox-root.props.d.mts +92 -0
- package/dist/components/checkbox/root/checkbox-root.props.d.ts +92 -0
- package/dist/components/checkbox/root/checkbox-root.props.js +119 -0
- package/dist/components/checkbox/root/checkbox-root.props.js.map +1 -0
- package/dist/components/checkbox/root/checkbox-root.props.mjs +94 -0
- package/dist/components/checkbox/root/checkbox-root.props.mjs.map +1 -0
- package/dist/components/container/container.d.mts +11 -0
- package/dist/components/container/container.d.ts +11 -0
- package/dist/components/container/container.js +55 -0
- package/dist/components/container/container.js.map +1 -0
- package/dist/components/container/container.mjs +21 -0
- package/dist/components/container/container.mjs.map +1 -0
- package/dist/components/container/container.props.d.mts +10 -0
- package/dist/components/container/container.props.d.ts +10 -0
- package/dist/components/container/container.props.js +32 -0
- package/dist/components/container/container.props.js.map +1 -0
- package/dist/components/container/container.props.mjs +8 -0
- package/dist/components/container/container.props.mjs.map +1 -0
- package/dist/components/container/index.d.mts +5 -0
- package/dist/components/container/index.d.ts +5 -0
- package/dist/components/container/index.js +29 -0
- package/dist/components/container/index.js.map +1 -0
- package/dist/components/container/index.mjs +5 -0
- package/dist/components/container/index.mjs.map +1 -0
- package/dist/components/flex/flex.d.mts +45 -0
- package/dist/components/flex/flex.d.ts +45 -0
- package/dist/components/flex/flex.js +55 -0
- package/dist/components/flex/flex.js.map +1 -0
- package/dist/components/flex/flex.mjs +25 -0
- package/dist/components/flex/flex.mjs.map +1 -0
- package/dist/components/flex/flex.props.d.mts +52 -0
- package/dist/components/flex/flex.props.d.ts +52 -0
- package/dist/components/flex/flex.props.js +98 -0
- package/dist/components/flex/flex.props.js.map +1 -0
- package/dist/components/flex/flex.props.mjs +74 -0
- package/dist/components/flex/flex.props.mjs.map +1 -0
- package/dist/components/flex/index.d.mts +6 -0
- package/dist/components/flex/index.d.ts +6 -0
- package/dist/components/flex/index.js +29 -0
- package/dist/components/flex/index.js.map +1 -0
- package/dist/components/flex/index.mjs +5 -0
- package/dist/components/flex/index.mjs.map +1 -0
- package/dist/components/index.d.mts +81 -0
- package/dist/components/index.d.ts +81 -0
- package/dist/components/index.js +75 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +35 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/components/panel/index.d.mts +10 -0
- package/dist/components/panel/index.d.ts +10 -0
- package/dist/components/panel/index.js +29 -0
- package/dist/components/panel/index.js.map +1 -0
- package/dist/components/panel/index.mjs +5 -0
- package/dist/components/panel/index.mjs.map +1 -0
- package/dist/components/panel/panel.d.mts +29 -0
- package/dist/components/panel/panel.d.ts +29 -0
- package/dist/components/panel/panel.js +67 -0
- package/dist/components/panel/panel.js.map +1 -0
- package/dist/components/panel/panel.mjs +40 -0
- package/dist/components/panel/panel.mjs.map +1 -0
- package/dist/components/panel/panel.props.d.mts +27 -0
- package/dist/components/panel/panel.props.d.ts +27 -0
- package/dist/components/panel/panel.props.js +52 -0
- package/dist/components/panel/panel.props.js.map +1 -0
- package/dist/components/panel/panel.props.mjs +27 -0
- package/dist/components/panel/panel.props.mjs.map +1 -0
- package/dist/components/portal/backdrop/portal-backdrop.d.mts +10 -0
- package/dist/components/portal/backdrop/portal-backdrop.d.ts +10 -0
- package/dist/components/portal/backdrop/portal-backdrop.js +71 -0
- package/dist/components/portal/backdrop/portal-backdrop.js.map +1 -0
- package/dist/components/portal/backdrop/portal-backdrop.mjs +39 -0
- package/dist/components/portal/backdrop/portal-backdrop.mjs.map +1 -0
- package/dist/components/portal/backdrop/portal-backdrop.props.d.mts +62 -0
- package/dist/components/portal/backdrop/portal-backdrop.props.d.ts +62 -0
- package/dist/components/portal/backdrop/portal-backdrop.props.js +65 -0
- package/dist/components/portal/backdrop/portal-backdrop.props.js.map +1 -0
- package/dist/components/portal/backdrop/portal-backdrop.props.mjs +41 -0
- package/dist/components/portal/backdrop/portal-backdrop.props.mjs.map +1 -0
- package/dist/components/portal/content/portal-content.d.mts +12 -0
- package/dist/components/portal/content/portal-content.d.ts +12 -0
- package/dist/components/portal/content/portal-content.js +163 -0
- package/dist/components/portal/content/portal-content.js.map +1 -0
- package/dist/components/portal/content/portal-content.mjs +133 -0
- package/dist/components/portal/content/portal-content.mjs.map +1 -0
- package/dist/components/portal/content/portal-content.props.d.mts +45 -0
- package/dist/components/portal/content/portal-content.props.d.ts +45 -0
- package/dist/components/portal/content/portal-content.props.js +80 -0
- package/dist/components/portal/content/portal-content.props.js.map +1 -0
- package/dist/components/portal/content/portal-content.props.mjs +56 -0
- package/dist/components/portal/content/portal-content.props.mjs.map +1 -0
- package/dist/components/portal/index.d.mts +14 -0
- package/dist/components/portal/index.d.ts +14 -0
- package/dist/components/portal/index.js +47 -0
- package/dist/components/portal/index.js.map +1 -0
- package/dist/components/portal/index.mjs +25 -0
- package/dist/components/portal/index.mjs.map +1 -0
- package/dist/components/portal/portal-context.d.mts +16 -0
- package/dist/components/portal/portal-context.d.ts +16 -0
- package/dist/components/portal/portal-context.js +52 -0
- package/dist/components/portal/portal-context.js.map +1 -0
- package/dist/components/portal/portal-context.mjs +17 -0
- package/dist/components/portal/portal-context.mjs.map +1 -0
- package/dist/components/portal/portal.d.mts +24 -0
- package/dist/components/portal/portal.d.ts +24 -0
- package/dist/components/portal/portal.js +42 -0
- package/dist/components/portal/portal.js.map +1 -0
- package/dist/components/portal/portal.mjs +18 -0
- package/dist/components/portal/portal.mjs.map +1 -0
- package/dist/components/portal/root/portal-root.d.mts +18 -0
- package/dist/components/portal/root/portal-root.d.ts +18 -0
- package/dist/components/portal/root/portal-root.js +74 -0
- package/dist/components/portal/root/portal-root.js.map +1 -0
- package/dist/components/portal/root/portal-root.mjs +56 -0
- package/dist/components/portal/root/portal-root.mjs.map +1 -0
- package/dist/components/portal/root/portal-root.props.d.mts +23 -0
- package/dist/components/portal/root/portal-root.props.d.ts +23 -0
- package/dist/components/portal/root/portal-root.props.js +48 -0
- package/dist/components/portal/root/portal-root.props.js.map +1 -0
- package/dist/components/portal/root/portal-root.props.mjs +24 -0
- package/dist/components/portal/root/portal-root.props.mjs.map +1 -0
- package/dist/components/portal/trigger/portal-trigger.d.mts +9 -0
- package/dist/components/portal/trigger/portal-trigger.d.ts +9 -0
- package/dist/components/portal/trigger/portal-trigger.js +89 -0
- package/dist/components/portal/trigger/portal-trigger.js.map +1 -0
- package/dist/components/portal/trigger/portal-trigger.mjs +55 -0
- package/dist/components/portal/trigger/portal-trigger.mjs.map +1 -0
- package/dist/components/portal/utils/use-anchor-position.d.mts +31 -0
- package/dist/components/portal/utils/use-anchor-position.d.ts +31 -0
- package/dist/components/portal/utils/use-anchor-position.js +137 -0
- package/dist/components/portal/utils/use-anchor-position.js.map +1 -0
- package/dist/components/portal/utils/use-anchor-position.mjs +103 -0
- package/dist/components/portal/utils/use-anchor-position.mjs.map +1 -0
- package/dist/components/progress-bar/fill/progress-bar-fill.d.mts +17 -0
- package/dist/components/progress-bar/fill/progress-bar-fill.d.ts +17 -0
- package/dist/components/progress-bar/fill/progress-bar-fill.js +61 -0
- package/dist/components/progress-bar/fill/progress-bar-fill.js.map +1 -0
- package/dist/components/progress-bar/fill/progress-bar-fill.mjs +29 -0
- package/dist/components/progress-bar/fill/progress-bar-fill.mjs.map +1 -0
- package/dist/components/progress-bar/fill/progress-bar-fill.props.d.mts +14 -0
- package/dist/components/progress-bar/fill/progress-bar-fill.props.d.ts +14 -0
- package/dist/components/progress-bar/fill/progress-bar-fill.props.js +37 -0
- package/dist/components/progress-bar/fill/progress-bar-fill.props.js.map +1 -0
- package/dist/components/progress-bar/fill/progress-bar-fill.props.mjs +13 -0
- package/dist/components/progress-bar/fill/progress-bar-fill.props.mjs.map +1 -0
- package/dist/components/progress-bar/index.d.mts +12 -0
- package/dist/components/progress-bar/index.d.ts +12 -0
- package/dist/components/progress-bar/index.js +29 -0
- package/dist/components/progress-bar/index.js.map +1 -0
- package/dist/components/progress-bar/index.mjs +5 -0
- package/dist/components/progress-bar/index.mjs.map +1 -0
- package/dist/components/progress-bar/progress-bar-context.d.mts +11 -0
- package/dist/components/progress-bar/progress-bar-context.d.ts +11 -0
- package/dist/components/progress-bar/progress-bar-context.js +52 -0
- package/dist/components/progress-bar/progress-bar-context.js.map +1 -0
- package/dist/components/progress-bar/progress-bar-context.mjs +17 -0
- package/dist/components/progress-bar/progress-bar-context.mjs.map +1 -0
- package/dist/components/progress-bar/progress-bar.d.mts +27 -0
- package/dist/components/progress-bar/progress-bar.d.ts +27 -0
- package/dist/components/progress-bar/progress-bar.js +40 -0
- package/dist/components/progress-bar/progress-bar.js.map +1 -0
- package/dist/components/progress-bar/progress-bar.mjs +16 -0
- package/dist/components/progress-bar/progress-bar.mjs.map +1 -0
- package/dist/components/progress-bar/root/progress-bar-root.d.mts +17 -0
- package/dist/components/progress-bar/root/progress-bar-root.d.ts +17 -0
- package/dist/components/progress-bar/root/progress-bar-root.js +93 -0
- package/dist/components/progress-bar/root/progress-bar-root.js.map +1 -0
- package/dist/components/progress-bar/root/progress-bar-root.mjs +69 -0
- package/dist/components/progress-bar/root/progress-bar-root.mjs.map +1 -0
- package/dist/components/progress-bar/root/progress-bar-root.props.d.mts +23 -0
- package/dist/components/progress-bar/root/progress-bar-root.props.d.ts +23 -0
- package/dist/components/progress-bar/root/progress-bar-root.props.js +48 -0
- package/dist/components/progress-bar/root/progress-bar-root.props.js.map +1 -0
- package/dist/components/progress-bar/root/progress-bar-root.props.mjs +23 -0
- package/dist/components/progress-bar/root/progress-bar-root.props.mjs.map +1 -0
- package/dist/components/select/content/select-content.d.mts +16 -0
- package/dist/components/select/content/select-content.d.ts +16 -0
- package/dist/components/select/content/select-content.js +163 -0
- package/dist/components/select/content/select-content.js.map +1 -0
- package/dist/components/select/content/select-content.mjs +129 -0
- package/dist/components/select/content/select-content.mjs.map +1 -0
- package/dist/components/select/content/select-content.props.d.mts +28 -0
- package/dist/components/select/content/select-content.props.d.ts +28 -0
- package/dist/components/select/content/select-content.props.js +54 -0
- package/dist/components/select/content/select-content.props.js.map +1 -0
- package/dist/components/select/content/select-content.props.mjs +30 -0
- package/dist/components/select/content/select-content.props.mjs.map +1 -0
- package/dist/components/select/group/select-group.d.mts +10 -0
- package/dist/components/select/group/select-group.d.ts +10 -0
- package/dist/components/select/group/select-group.js +67 -0
- package/dist/components/select/group/select-group.js.map +1 -0
- package/dist/components/select/group/select-group.mjs +35 -0
- package/dist/components/select/group/select-group.mjs.map +1 -0
- package/dist/components/select/group/select-group.props.d.mts +10 -0
- package/dist/components/select/group/select-group.props.d.ts +10 -0
- package/dist/components/select/group/select-group.props.js +33 -0
- package/dist/components/select/group/select-group.props.js.map +1 -0
- package/dist/components/select/group/select-group.props.mjs +9 -0
- package/dist/components/select/group/select-group.props.mjs.map +1 -0
- package/dist/components/select/index.d.mts +22 -0
- package/dist/components/select/index.d.ts +22 -0
- package/dist/components/select/index.js +29 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/index.mjs +5 -0
- package/dist/components/select/index.mjs.map +1 -0
- package/dist/components/select/item/select-item-indicator.d.mts +5 -0
- package/dist/components/select/item/select-item-indicator.d.ts +5 -0
- package/dist/components/select/item/select-item-indicator.js +50 -0
- package/dist/components/select/item/select-item-indicator.js.map +1 -0
- package/dist/components/select/item/select-item-indicator.mjs +26 -0
- package/dist/components/select/item/select-item-indicator.mjs.map +1 -0
- package/dist/components/select/item/select-item.d.mts +14 -0
- package/dist/components/select/item/select-item.d.ts +14 -0
- package/dist/components/select/item/select-item.js +120 -0
- package/dist/components/select/item/select-item.js.map +1 -0
- package/dist/components/select/item/select-item.mjs +88 -0
- package/dist/components/select/item/select-item.mjs.map +1 -0
- package/dist/components/select/item/select-item.props.d.mts +14 -0
- package/dist/components/select/item/select-item.props.d.ts +14 -0
- package/dist/components/select/item/select-item.props.js +37 -0
- package/dist/components/select/item/select-item.props.js.map +1 -0
- package/dist/components/select/item/select-item.props.mjs +13 -0
- package/dist/components/select/item/select-item.props.mjs.map +1 -0
- package/dist/components/select/label/select-label.d.mts +15 -0
- package/dist/components/select/label/select-label.d.ts +15 -0
- package/dist/components/select/label/select-label.js +69 -0
- package/dist/components/select/label/select-label.js.map +1 -0
- package/dist/components/select/label/select-label.mjs +37 -0
- package/dist/components/select/label/select-label.mjs.map +1 -0
- package/dist/components/select/label/select-label.props.d.mts +15 -0
- package/dist/components/select/label/select-label.props.d.ts +15 -0
- package/dist/components/select/label/select-label.props.js +39 -0
- package/dist/components/select/label/select-label.props.js.map +1 -0
- package/dist/components/select/label/select-label.props.mjs +14 -0
- package/dist/components/select/label/select-label.props.mjs.map +1 -0
- package/dist/components/select/root/select-root.d.mts +21 -0
- package/dist/components/select/root/select-root.d.ts +21 -0
- package/dist/components/select/root/select-root.js +195 -0
- package/dist/components/select/root/select-root.js.map +1 -0
- package/dist/components/select/root/select-root.mjs +175 -0
- package/dist/components/select/root/select-root.mjs.map +1 -0
- package/dist/components/select/root/select-root.props.d.mts +33 -0
- package/dist/components/select/root/select-root.props.d.ts +33 -0
- package/dist/components/select/root/select-root.props.js +57 -0
- package/dist/components/select/root/select-root.props.js.map +1 -0
- package/dist/components/select/root/select-root.props.mjs +33 -0
- package/dist/components/select/root/select-root.props.mjs.map +1 -0
- package/dist/components/select/select-context.d.mts +33 -0
- package/dist/components/select/select-context.d.ts +33 -0
- package/dist/components/select/select-context.js +52 -0
- package/dist/components/select/select-context.js.map +1 -0
- package/dist/components/select/select-context.mjs +17 -0
- package/dist/components/select/select-context.mjs.map +1 -0
- package/dist/components/select/select.d.mts +43 -0
- package/dist/components/select/select.d.ts +43 -0
- package/dist/components/select/select.js +46 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/select/select.mjs +22 -0
- package/dist/components/select/select.mjs.map +1 -0
- package/dist/components/select/separator/select-separator.d.mts +7 -0
- package/dist/components/select/separator/select-separator.d.ts +7 -0
- package/dist/components/select/separator/select-separator.js +55 -0
- package/dist/components/select/separator/select-separator.js.map +1 -0
- package/dist/components/select/separator/select-separator.mjs +21 -0
- package/dist/components/select/separator/select-separator.mjs.map +1 -0
- package/dist/components/select/trigger/select-trigger-icon.d.mts +5 -0
- package/dist/components/select/trigger/select-trigger-icon.d.ts +5 -0
- package/dist/components/select/trigger/select-trigger-icon.js +64 -0
- package/dist/components/select/trigger/select-trigger-icon.js.map +1 -0
- package/dist/components/select/trigger/select-trigger-icon.mjs +30 -0
- package/dist/components/select/trigger/select-trigger-icon.mjs.map +1 -0
- package/dist/components/select/trigger/select-trigger.d.mts +18 -0
- package/dist/components/select/trigger/select-trigger.d.ts +18 -0
- package/dist/components/select/trigger/select-trigger.js +119 -0
- package/dist/components/select/trigger/select-trigger.js.map +1 -0
- package/dist/components/select/trigger/select-trigger.mjs +87 -0
- package/dist/components/select/trigger/select-trigger.mjs.map +1 -0
- package/dist/components/select/trigger/select-trigger.props.d.mts +7 -0
- package/dist/components/select/trigger/select-trigger.props.d.ts +7 -0
- package/dist/components/select/trigger/select-trigger.props.js +29 -0
- package/dist/components/select/trigger/select-trigger.props.js.map +1 -0
- package/dist/components/select/trigger/select-trigger.props.mjs +5 -0
- package/dist/components/select/trigger/select-trigger.props.mjs.map +1 -0
- package/dist/components/select/utils/user-composed-refs.d.mts +5 -0
- package/dist/components/select/utils/user-composed-refs.d.ts +5 -0
- package/dist/components/select/utils/user-composed-refs.js +53 -0
- package/dist/components/select/utils/user-composed-refs.js.map +1 -0
- package/dist/components/select/utils/user-composed-refs.mjs +19 -0
- package/dist/components/select/utils/user-composed-refs.mjs.map +1 -0
- package/dist/components/select/value/select-value.d.mts +8 -0
- package/dist/components/select/value/select-value.d.ts +8 -0
- package/dist/components/select/value/select-value.js +61 -0
- package/dist/components/select/value/select-value.js.map +1 -0
- package/dist/components/select/value/select-value.mjs +27 -0
- package/dist/components/select/value/select-value.mjs.map +1 -0
- package/dist/components/select/viewport/select-viewport.d.mts +7 -0
- package/dist/components/select/viewport/select-viewport.d.ts +7 -0
- package/dist/components/select/viewport/select-viewport.js +49 -0
- package/dist/components/select/viewport/select-viewport.js.map +1 -0
- package/dist/components/select/viewport/select-viewport.mjs +15 -0
- package/dist/components/select/viewport/select-viewport.mjs.map +1 -0
- package/dist/components/separator/index.d.mts +6 -0
- package/dist/components/separator/index.d.ts +6 -0
- package/dist/components/separator/index.js +29 -0
- package/dist/components/separator/index.js.map +1 -0
- package/dist/components/separator/index.mjs +5 -0
- package/dist/components/separator/index.mjs.map +1 -0
- package/dist/components/separator/separator.d.mts +15 -0
- package/dist/components/separator/separator.d.ts +15 -0
- package/dist/components/separator/separator.js +57 -0
- package/dist/components/separator/separator.js.map +1 -0
- package/dist/components/separator/separator.mjs +23 -0
- package/dist/components/separator/separator.mjs.map +1 -0
- package/dist/components/separator/separator.props.d.mts +29 -0
- package/dist/components/separator/separator.props.d.ts +29 -0
- package/dist/components/separator/separator.props.js +54 -0
- package/dist/components/separator/separator.props.js.map +1 -0
- package/dist/components/separator/separator.props.mjs +30 -0
- package/dist/components/separator/separator.props.mjs.map +1 -0
- package/dist/components/switch/index.d.mts +15 -0
- package/dist/components/switch/index.d.ts +15 -0
- package/dist/components/switch/index.js +29 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/switch/index.mjs +5 -0
- package/dist/components/switch/index.mjs.map +1 -0
- package/dist/components/switch/indicator/switch-indicator.d.mts +15 -0
- package/dist/components/switch/indicator/switch-indicator.d.ts +15 -0
- package/dist/components/switch/indicator/switch-indicator.js +97 -0
- package/dist/components/switch/indicator/switch-indicator.js.map +1 -0
- package/dist/components/switch/indicator/switch-indicator.mjs +65 -0
- package/dist/components/switch/indicator/switch-indicator.mjs.map +1 -0
- package/dist/components/switch/indicator/switch-indicator.props.d.mts +15 -0
- package/dist/components/switch/indicator/switch-indicator.props.d.ts +15 -0
- package/dist/components/switch/indicator/switch-indicator.props.js +39 -0
- package/dist/components/switch/indicator/switch-indicator.props.js.map +1 -0
- package/dist/components/switch/indicator/switch-indicator.props.mjs +15 -0
- package/dist/components/switch/indicator/switch-indicator.props.mjs.map +1 -0
- package/dist/components/switch/label/switch-label.d.mts +15 -0
- package/dist/components/switch/label/switch-label.d.ts +15 -0
- package/dist/components/switch/label/switch-label.js +69 -0
- package/dist/components/switch/label/switch-label.js.map +1 -0
- package/dist/components/switch/label/switch-label.mjs +37 -0
- package/dist/components/switch/label/switch-label.mjs.map +1 -0
- package/dist/components/switch/label/switch-label.props.d.mts +20 -0
- package/dist/components/switch/label/switch-label.props.d.ts +20 -0
- package/dist/components/switch/label/switch-label.props.js +44 -0
- package/dist/components/switch/label/switch-label.props.js.map +1 -0
- package/dist/components/switch/label/switch-label.props.mjs +19 -0
- package/dist/components/switch/label/switch-label.props.mjs.map +1 -0
- package/dist/components/switch/root/switch-root.d.mts +23 -0
- package/dist/components/switch/root/switch-root.d.ts +23 -0
- package/dist/components/switch/root/switch-root.js +180 -0
- package/dist/components/switch/root/switch-root.js.map +1 -0
- package/dist/components/switch/root/switch-root.mjs +163 -0
- package/dist/components/switch/root/switch-root.mjs.map +1 -0
- package/dist/components/switch/root/switch-root.props.d.mts +76 -0
- package/dist/components/switch/root/switch-root.props.d.ts +76 -0
- package/dist/components/switch/root/switch-root.props.js +103 -0
- package/dist/components/switch/root/switch-root.props.js.map +1 -0
- package/dist/components/switch/root/switch-root.props.mjs +78 -0
- package/dist/components/switch/root/switch-root.props.mjs.map +1 -0
- package/dist/components/switch/switch-context.d.mts +26 -0
- package/dist/components/switch/switch-context.d.ts +26 -0
- package/dist/components/switch/switch-context.js +52 -0
- package/dist/components/switch/switch-context.js.map +1 -0
- package/dist/components/switch/switch-context.mjs +17 -0
- package/dist/components/switch/switch-context.mjs.map +1 -0
- package/dist/components/switch/switch.d.mts +24 -0
- package/dist/components/switch/switch.d.ts +24 -0
- package/dist/components/switch/switch.js +36 -0
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/switch/switch.mjs +12 -0
- package/dist/components/switch/switch.mjs.map +1 -0
- package/dist/components/text/index.d.mts +7 -0
- package/dist/components/text/index.d.ts +7 -0
- package/dist/components/text/index.js +29 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/components/text/index.mjs +5 -0
- package/dist/components/text/index.mjs.map +1 -0
- package/dist/components/text/text.d.mts +25 -0
- package/dist/components/text/text.d.ts +25 -0
- package/dist/components/text/text.js +66 -0
- package/dist/components/text/text.js.map +1 -0
- package/dist/components/text/text.mjs +36 -0
- package/dist/components/text/text.mjs.map +1 -0
- package/dist/components/text/text.props.d.mts +24 -0
- package/dist/components/text/text.props.d.ts +24 -0
- package/dist/components/text/text.props.js +48 -0
- package/dist/components/text/text.props.js.map +1 -0
- package/dist/components/text/text.props.mjs +24 -0
- package/dist/components/text/text.props.mjs.map +1 -0
- package/dist/components/theme/index.d.mts +8 -0
- package/dist/components/theme/index.d.ts +8 -0
- package/dist/components/theme/index.js +35 -0
- package/dist/components/theme/index.js.map +1 -0
- package/dist/components/theme/index.mjs +9 -0
- package/dist/components/theme/index.mjs.map +1 -0
- package/dist/components/theme/theme-context.d.mts +25 -0
- package/dist/components/theme/theme-context.d.ts +25 -0
- package/dist/components/theme/theme-context.js +52 -0
- package/dist/components/theme/theme-context.js.map +1 -0
- package/dist/components/theme/theme-context.mjs +17 -0
- package/dist/components/theme/theme-context.mjs.map +1 -0
- package/dist/components/theme/theme-control.d.mts +9 -0
- package/dist/components/theme/theme-control.d.ts +9 -0
- package/dist/components/theme/theme-control.js +156 -0
- package/dist/components/theme/theme-control.js.map +1 -0
- package/dist/components/theme/theme-control.mjs +132 -0
- package/dist/components/theme/theme-control.mjs.map +1 -0
- package/dist/components/theme/theme.d.mts +14 -0
- package/dist/components/theme/theme.d.ts +14 -0
- package/dist/components/theme/theme.js +132 -0
- package/dist/components/theme/theme.js.map +1 -0
- package/dist/components/theme/theme.mjs +100 -0
- package/dist/components/theme/theme.mjs.map +1 -0
- package/dist/components/theme/theme.props.d.mts +24 -0
- package/dist/components/theme/theme.props.d.ts +24 -0
- package/dist/components/theme/theme.props.js +54 -0
- package/dist/components/theme/theme.props.js.map +1 -0
- package/dist/components/theme/theme.props.mjs +30 -0
- package/dist/components/theme/theme.props.mjs.map +1 -0
- package/dist/icons/check-mark.icon.d.mts +6 -0
- package/dist/icons/check-mark.icon.d.ts +6 -0
- package/dist/icons/check-mark.icon.js +51 -0
- package/dist/icons/check-mark.icon.js.map +1 -0
- package/dist/icons/check-mark.icon.mjs +27 -0
- package/dist/icons/check-mark.icon.mjs.map +1 -0
- package/dist/icons/chevron-down.icon.d.mts +6 -0
- package/dist/icons/chevron-down.icon.d.ts +6 -0
- package/dist/icons/chevron-down.icon.js +53 -0
- package/dist/icons/chevron-down.icon.js.map +1 -0
- package/dist/icons/chevron-down.icon.mjs +29 -0
- package/dist/icons/chevron-down.icon.mjs.map +1 -0
- package/dist/icons/chevron-left.icon.d.mts +6 -0
- package/dist/icons/chevron-left.icon.d.ts +6 -0
- package/dist/icons/chevron-left.icon.js +53 -0
- package/dist/icons/chevron-left.icon.js.map +1 -0
- package/dist/icons/chevron-left.icon.mjs +29 -0
- package/dist/icons/chevron-left.icon.mjs.map +1 -0
- package/dist/icons/chevron-right.icon.d.mts +6 -0
- package/dist/icons/chevron-right.icon.d.ts +6 -0
- package/dist/icons/chevron-right.icon.js +53 -0
- package/dist/icons/chevron-right.icon.js.map +1 -0
- package/dist/icons/chevron-right.icon.mjs +29 -0
- package/dist/icons/chevron-right.icon.mjs.map +1 -0
- package/dist/icons/chevron-up.icon.d.mts +6 -0
- package/dist/icons/chevron-up.icon.d.ts +6 -0
- package/dist/icons/chevron-up.icon.js +51 -0
- package/dist/icons/chevron-up.icon.js.map +1 -0
- package/dist/icons/chevron-up.icon.mjs +27 -0
- package/dist/icons/chevron-up.icon.mjs.map +1 -0
- package/dist/icons/icon-colors.d.mts +7 -0
- package/dist/icons/icon-colors.d.ts +7 -0
- package/dist/icons/icon-colors.js +34 -0
- package/dist/icons/icon-colors.js.map +1 -0
- package/dist/icons/icon-colors.mjs +10 -0
- package/dist/icons/icon-colors.mjs.map +1 -0
- package/dist/icons/index.d.mts +4 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +32 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/icons/index.mjs +7 -0
- package/dist/icons/index.mjs.map +1 -0
- package/dist/icons/minus.icon.d.mts +6 -0
- package/dist/icons/minus.icon.d.ts +6 -0
- package/dist/icons/minus.icon.js +51 -0
- package/dist/icons/minus.icon.js.map +1 -0
- package/dist/icons/minus.icon.mjs +27 -0
- package/dist/icons/minus.icon.mjs.map +1 -0
- package/dist/index.css +79 -67
- package/dist/index.d.mts +81 -1524
- package/dist/index.d.ts +81 -1524
- package/dist/index.js +59 -3757
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -3738
- package/dist/index.mjs.map +1 -1
- package/dist/props/align.prop.d.mts +16 -0
- package/dist/props/align.prop.d.ts +16 -0
- package/dist/props/align.prop.js +41 -0
- package/dist/props/align.prop.js.map +1 -0
- package/dist/props/align.prop.mjs +16 -0
- package/dist/props/align.prop.mjs.map +1 -0
- package/dist/props/color.prop.d.mts +26 -0
- package/dist/props/color.prop.d.ts +26 -0
- package/dist/props/color.prop.js +60 -0
- package/dist/props/color.prop.js.map +1 -0
- package/dist/props/color.prop.mjs +35 -0
- package/dist/props/color.prop.mjs.map +1 -0
- package/dist/props/direction.prop.d.mts +11 -0
- package/dist/props/direction.prop.d.ts +11 -0
- package/dist/props/direction.prop.js +39 -0
- package/dist/props/direction.prop.js.map +1 -0
- package/dist/props/direction.prop.mjs +14 -0
- package/dist/props/direction.prop.mjs.map +1 -0
- package/dist/props/index.d.mts +11 -0
- package/dist/props/index.d.ts +11 -0
- package/dist/props/index.js +82 -0
- package/dist/props/index.js.map +1 -0
- package/dist/props/index.mjs +43 -0
- package/dist/props/index.mjs.map +1 -0
- package/dist/props/margin.prop.d.mts +135 -0
- package/dist/props/margin.prop.d.ts +135 -0
- package/dist/props/margin.prop.js +177 -0
- package/dist/props/margin.prop.js.map +1 -0
- package/dist/props/margin.prop.mjs +153 -0
- package/dist/props/margin.prop.mjs.map +1 -0
- package/dist/props/padding.prop.d.mts +135 -0
- package/dist/props/padding.prop.d.ts +135 -0
- package/dist/props/padding.prop.js +169 -0
- package/dist/props/padding.prop.js.map +1 -0
- package/dist/props/padding.prop.mjs +145 -0
- package/dist/props/padding.prop.mjs.map +1 -0
- package/dist/props/prop-def.d.mts +66 -0
- package/dist/props/prop-def.d.ts +66 -0
- package/dist/props/prop-def.js +18 -0
- package/dist/props/prop-def.js.map +1 -0
- package/dist/props/prop-def.mjs +2 -0
- package/dist/props/prop-def.mjs.map +1 -0
- package/dist/props/radius.prop.d.mts +177 -0
- package/dist/props/radius.prop.d.ts +177 -0
- package/dist/props/radius.prop.js +211 -0
- package/dist/props/radius.prop.js.map +1 -0
- package/dist/props/radius.prop.mjs +186 -0
- package/dist/props/radius.prop.mjs.map +1 -0
- package/dist/props/roundness.prop.d.mts +23 -0
- package/dist/props/roundness.prop.d.ts +23 -0
- package/dist/props/roundness.prop.js +48 -0
- package/dist/props/roundness.prop.js.map +1 -0
- package/dist/props/roundness.prop.mjs +23 -0
- package/dist/props/roundness.prop.mjs.map +1 -0
- package/dist/props/size.prop.d.mts +19 -0
- package/dist/props/size.prop.d.ts +19 -0
- package/dist/props/size.prop.js +44 -0
- package/dist/props/size.prop.js.map +1 -0
- package/dist/props/size.prop.mjs +19 -0
- package/dist/props/size.prop.mjs.map +1 -0
- package/dist/props/spacing.prop.d.mts +24 -0
- package/dist/props/spacing.prop.d.ts +24 -0
- package/dist/props/spacing.prop.js +49 -0
- package/dist/props/spacing.prop.js.map +1 -0
- package/dist/props/spacing.prop.mjs +24 -0
- package/dist/props/spacing.prop.mjs.map +1 -0
- package/dist/utils/filter-children.d.mts +50 -0
- package/dist/utils/filter-children.d.ts +50 -0
- package/dist/utils/filter-children.js +121 -0
- package/dist/utils/filter-children.js.map +1 -0
- package/dist/utils/filter-children.mjs +86 -0
- package/dist/utils/filter-children.mjs.map +1 -0
- package/dist/utils/get-component-props.d.mts +14 -0
- package/dist/utils/get-component-props.d.ts +14 -0
- package/dist/utils/get-component-props.js +126 -0
- package/dist/utils/get-component-props.js.map +1 -0
- package/dist/utils/get-component-props.mjs +92 -0
- package/dist/utils/get-component-props.mjs.map +1 -0
- package/dist/utils/get-props.d.mts +29 -0
- package/dist/utils/get-props.d.ts +29 -0
- package/dist/utils/get-props.js +17 -0
- package/dist/utils/get-props.js.map +1 -0
- package/dist/utils/get-props.mjs +1 -0
- package/dist/utils/get-props.mjs.map +1 -0
- package/dist/utils/parse-color.d.mts +14 -0
- package/dist/utils/parse-color.d.ts +14 -0
- package/dist/utils/parse-color.js +49 -0
- package/dist/utils/parse-color.js.map +1 -0
- package/dist/utils/parse-color.mjs +25 -0
- package/dist/utils/parse-color.mjs.map +1 -0
- package/dist/utils/use-controllable-state.d.mts +7 -0
- package/dist/utils/use-controllable-state.d.ts +7 -0
- package/dist/utils/use-controllable-state.js +58 -0
- package/dist/utils/use-controllable-state.js.map +1 -0
- package/dist/utils/use-controllable-state.mjs +24 -0
- package/dist/utils/use-controllable-state.mjs.map +1 -0
- package/package.json +2 -1
- package/dist/index.css.map +0 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var separator_exports = {};
|
|
30
|
+
__export(separator_exports, {
|
|
31
|
+
Separator: () => Separator
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(separator_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var import_clsx = __toESM(require("clsx"));
|
|
36
|
+
var import_get_component_props = require("../../utils/get-component-props");
|
|
37
|
+
var import_separator = require("./separator.props");
|
|
38
|
+
const Separator = (props) => {
|
|
39
|
+
const { className, dataAttrs, style } = (0, import_get_component_props.getComponentProps)(
|
|
40
|
+
props,
|
|
41
|
+
import_separator.SeparatorPropsDefs
|
|
42
|
+
);
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
className: (0, import_clsx.default)("separator", className),
|
|
47
|
+
style,
|
|
48
|
+
...dataAttrs
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
Separator.displayName = "Separator";
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
Separator
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=separator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/separator/separator.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport React, { FC } from \"react\";\nimport { MarginProps, PaddingProps } from \"../../props\";\nimport { getComponentProps } from \"../../utils/get-component-props\";\nimport { SeparatorInternalProps, SeparatorPropsDefs } from \"./separator.props\";\n\ninterface AllSeparatorProps\n extends SeparatorInternalProps,\n MarginProps,\n PaddingProps {}\n\ntype SeparatorProps = AllSeparatorProps & React.HTMLAttributes<HTMLDivElement>;\n\n/**\n * A component for visually separating content with a line\n */\nconst Separator: FC<SeparatorProps> = (props) => {\n const { className, dataAttrs, style } = getComponentProps(\n props,\n SeparatorPropsDefs\n );\n\n return (\n <div\n className={clsx(\"separator\", className)}\n style={style}\n {...dataAttrs}\n />\n );\n};\nSeparator.displayName = \"Separator\";\n\nexport { AllSeparatorProps, Separator, SeparatorProps };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBI;AAvBJ,kBAAiB;AAGjB,iCAAkC;AAClC,uBAA2D;AAY3D,MAAM,YAAgC,CAAC,UAAU;AAC/C,QAAM,EAAE,WAAW,WAAW,MAAM,QAAI;AAAA,IACtC;AAAA,IACA;AAAA,EACF;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW,YAAAA,SAAK,aAAa,SAAS;AAAA,MACtC;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;AACA,UAAU,cAAc;","names":["clsx"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { getComponentProps } from "../../utils/get-component-props";
|
|
4
|
+
import { SeparatorPropsDefs } from "./separator.props";
|
|
5
|
+
const Separator = (props) => {
|
|
6
|
+
const { className, dataAttrs, style } = getComponentProps(
|
|
7
|
+
props,
|
|
8
|
+
SeparatorPropsDefs
|
|
9
|
+
);
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
className: clsx("separator", className),
|
|
14
|
+
style,
|
|
15
|
+
...dataAttrs
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
Separator.displayName = "Separator";
|
|
20
|
+
export {
|
|
21
|
+
Separator
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=separator.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/separator/separator.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport React, { FC } from \"react\";\nimport { MarginProps, PaddingProps } from \"../../props\";\nimport { getComponentProps } from \"../../utils/get-component-props\";\nimport { SeparatorInternalProps, SeparatorPropsDefs } from \"./separator.props\";\n\ninterface AllSeparatorProps\n extends SeparatorInternalProps,\n MarginProps,\n PaddingProps {}\n\ntype SeparatorProps = AllSeparatorProps & React.HTMLAttributes<HTMLDivElement>;\n\n/**\n * A component for visually separating content with a line\n */\nconst Separator: FC<SeparatorProps> = (props) => {\n const { className, dataAttrs, style } = getComponentProps(\n props,\n SeparatorPropsDefs\n );\n\n return (\n <div\n className={clsx(\"separator\", className)}\n style={style}\n {...dataAttrs}\n />\n );\n};\nSeparator.displayName = \"Separator\";\n\nexport { AllSeparatorProps, Separator, SeparatorProps };\n"],"mappings":"AAuBI;AAvBJ,OAAO,UAAU;AAGjB,SAAS,yBAAyB;AAClC,SAAiC,0BAA0B;AAY3D,MAAM,YAAgC,CAAC,UAAU;AAC/C,QAAM,EAAE,WAAW,WAAW,MAAM,IAAI;AAAA,IACtC;AAAA,IACA;AAAA,EACF;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,KAAK,aAAa,SAAS;AAAA,MACtC;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;AACA,UAAU,cAAc;","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { GetPropDefTypes } from '../../props/prop-def.mjs';
|
|
2
|
+
|
|
3
|
+
declare const SeparatorPropsDefs: {
|
|
4
|
+
/**
|
|
5
|
+
* The direction of the separator.
|
|
6
|
+
*
|
|
7
|
+
* @example direction="vertical" // positions the separator vertically
|
|
8
|
+
*/
|
|
9
|
+
direction: {
|
|
10
|
+
type: "enum";
|
|
11
|
+
values: readonly ["horizontal", "vertical"];
|
|
12
|
+
default: "horizontal";
|
|
13
|
+
dataAttr: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The variant of the separator.
|
|
17
|
+
*
|
|
18
|
+
* @example variant="dashed" // makes the separator dashed
|
|
19
|
+
*/
|
|
20
|
+
variant: {
|
|
21
|
+
type: "enum";
|
|
22
|
+
values: readonly ["solid", "dashed", "dotted"];
|
|
23
|
+
default: "solid";
|
|
24
|
+
dataAttr: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type SeparatorInternalProps = GetPropDefTypes<typeof SeparatorPropsDefs>;
|
|
28
|
+
|
|
29
|
+
export { type SeparatorInternalProps, SeparatorPropsDefs };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { GetPropDefTypes } from '../../props/prop-def.js';
|
|
2
|
+
|
|
3
|
+
declare const SeparatorPropsDefs: {
|
|
4
|
+
/**
|
|
5
|
+
* The direction of the separator.
|
|
6
|
+
*
|
|
7
|
+
* @example direction="vertical" // positions the separator vertically
|
|
8
|
+
*/
|
|
9
|
+
direction: {
|
|
10
|
+
type: "enum";
|
|
11
|
+
values: readonly ["horizontal", "vertical"];
|
|
12
|
+
default: "horizontal";
|
|
13
|
+
dataAttr: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The variant of the separator.
|
|
17
|
+
*
|
|
18
|
+
* @example variant="dashed" // makes the separator dashed
|
|
19
|
+
*/
|
|
20
|
+
variant: {
|
|
21
|
+
type: "enum";
|
|
22
|
+
values: readonly ["solid", "dashed", "dotted"];
|
|
23
|
+
default: "solid";
|
|
24
|
+
dataAttr: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type SeparatorInternalProps = GetPropDefTypes<typeof SeparatorPropsDefs>;
|
|
28
|
+
|
|
29
|
+
export { type SeparatorInternalProps, SeparatorPropsDefs };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var separator_props_exports = {};
|
|
20
|
+
__export(separator_props_exports, {
|
|
21
|
+
SeparatorPropsDefs: () => SeparatorPropsDefs
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(separator_props_exports);
|
|
24
|
+
const directions = ["horizontal", "vertical"];
|
|
25
|
+
const variants = ["solid", "dashed", "dotted"];
|
|
26
|
+
const SeparatorPropsDefs = {
|
|
27
|
+
/**
|
|
28
|
+
* The direction of the separator.
|
|
29
|
+
*
|
|
30
|
+
* @example direction="vertical" // positions the separator vertically
|
|
31
|
+
*/
|
|
32
|
+
direction: {
|
|
33
|
+
type: "enum",
|
|
34
|
+
values: directions,
|
|
35
|
+
default: "horizontal",
|
|
36
|
+
dataAttr: "direction"
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* The variant of the separator.
|
|
40
|
+
*
|
|
41
|
+
* @example variant="dashed" // makes the separator dashed
|
|
42
|
+
*/
|
|
43
|
+
variant: {
|
|
44
|
+
type: "enum",
|
|
45
|
+
values: variants,
|
|
46
|
+
default: "solid",
|
|
47
|
+
dataAttr: "variant"
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
SeparatorPropsDefs
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=separator.props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/separator/separator.props.ts"],"sourcesContent":["import { GetPropDefTypes, PropDef } from \"../../props/prop-def\";\n\nconst directions = [\"horizontal\", \"vertical\"] as const;\nconst variants = [\"solid\", \"dashed\", \"dotted\"] as const;\n\nconst SeparatorPropsDefs = {\n /**\n * The direction of the separator.\n *\n * @example direction=\"vertical\" // positions the separator vertically\n */\n direction: {\n type: \"enum\",\n values: directions,\n default: \"horizontal\",\n dataAttr: \"direction\",\n } satisfies PropDef<(typeof directions)[number]>,\n\n /**\n * The variant of the separator.\n *\n * @example variant=\"dashed\" // makes the separator dashed\n */\n variant: {\n type: \"enum\",\n values: variants,\n default: \"solid\",\n dataAttr: \"variant\",\n } satisfies PropDef<(typeof variants)[number]>,\n};\n\ntype SeparatorInternalProps = GetPropDefTypes<typeof SeparatorPropsDefs>;\n\nexport { SeparatorInternalProps, SeparatorPropsDefs };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,MAAM,aAAa,CAAC,cAAc,UAAU;AAC5C,MAAM,WAAW,CAAC,SAAS,UAAU,QAAQ;AAE7C,MAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMzB,WAAW;AAAA,IACT,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AACF;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const directions = ["horizontal", "vertical"];
|
|
2
|
+
const variants = ["solid", "dashed", "dotted"];
|
|
3
|
+
const SeparatorPropsDefs = {
|
|
4
|
+
/**
|
|
5
|
+
* The direction of the separator.
|
|
6
|
+
*
|
|
7
|
+
* @example direction="vertical" // positions the separator vertically
|
|
8
|
+
*/
|
|
9
|
+
direction: {
|
|
10
|
+
type: "enum",
|
|
11
|
+
values: directions,
|
|
12
|
+
default: "horizontal",
|
|
13
|
+
dataAttr: "direction"
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* The variant of the separator.
|
|
17
|
+
*
|
|
18
|
+
* @example variant="dashed" // makes the separator dashed
|
|
19
|
+
*/
|
|
20
|
+
variant: {
|
|
21
|
+
type: "enum",
|
|
22
|
+
values: variants,
|
|
23
|
+
default: "solid",
|
|
24
|
+
dataAttr: "variant"
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
SeparatorPropsDefs
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=separator.props.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/separator/separator.props.ts"],"sourcesContent":["import { GetPropDefTypes, PropDef } from \"../../props/prop-def\";\n\nconst directions = [\"horizontal\", \"vertical\"] as const;\nconst variants = [\"solid\", \"dashed\", \"dotted\"] as const;\n\nconst SeparatorPropsDefs = {\n /**\n * The direction of the separator.\n *\n * @example direction=\"vertical\" // positions the separator vertically\n */\n direction: {\n type: \"enum\",\n values: directions,\n default: \"horizontal\",\n dataAttr: \"direction\",\n } satisfies PropDef<(typeof directions)[number]>,\n\n /**\n * The variant of the separator.\n *\n * @example variant=\"dashed\" // makes the separator dashed\n */\n variant: {\n type: \"enum\",\n values: variants,\n default: \"solid\",\n dataAttr: \"variant\",\n } satisfies PropDef<(typeof variants)[number]>,\n};\n\ntype SeparatorInternalProps = GetPropDefTypes<typeof SeparatorPropsDefs>;\n\nexport { SeparatorInternalProps, SeparatorPropsDefs };\n"],"mappings":"AAEA,MAAM,aAAa,CAAC,cAAc,UAAU;AAC5C,MAAM,WAAW,CAAC,SAAS,UAAU,QAAQ;AAE7C,MAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMzB,WAAW;AAAA,IACT,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AACF;","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { Switch } from './switch.mjs';
|
|
2
|
+
import './indicator/switch-indicator.mjs';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../../props/size.prop.mjs';
|
|
5
|
+
import '../../props/prop-def.mjs';
|
|
6
|
+
import './indicator/switch-indicator.props.mjs';
|
|
7
|
+
import './label/switch-label.mjs';
|
|
8
|
+
import './label/switch-label.props.mjs';
|
|
9
|
+
import './root/switch-root.mjs';
|
|
10
|
+
import '../../props/align.prop.mjs';
|
|
11
|
+
import '../../props/color.prop.mjs';
|
|
12
|
+
import '../../utils/parse-color.mjs';
|
|
13
|
+
import '../../props/margin.prop.mjs';
|
|
14
|
+
import '../../utils/filter-children.mjs';
|
|
15
|
+
import './root/switch-root.props.mjs';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { Switch } from './switch.js';
|
|
2
|
+
import './indicator/switch-indicator.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../../props/size.prop.js';
|
|
5
|
+
import '../../props/prop-def.js';
|
|
6
|
+
import './indicator/switch-indicator.props.js';
|
|
7
|
+
import './label/switch-label.js';
|
|
8
|
+
import './label/switch-label.props.js';
|
|
9
|
+
import './root/switch-root.js';
|
|
10
|
+
import '../../props/align.prop.js';
|
|
11
|
+
import '../../props/color.prop.js';
|
|
12
|
+
import '../../utils/parse-color.js';
|
|
13
|
+
import '../../props/margin.prop.js';
|
|
14
|
+
import '../../utils/filter-children.js';
|
|
15
|
+
import './root/switch-root.props.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var switch_exports = {};
|
|
20
|
+
__export(switch_exports, {
|
|
21
|
+
Switch: () => import_switch.Switch
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(switch_exports);
|
|
24
|
+
var import_switch = require("./switch");
|
|
25
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
+
0 && (module.exports = {
|
|
27
|
+
Switch
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/switch/index.ts"],"sourcesContent":["export { Switch } from \"./switch\";\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAuB;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/switch/index.ts"],"sourcesContent":["export { Switch } from \"./switch\";\n"],"mappings":"AAAA,SAAS,cAAc;","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { SizeProp } from '../../../props/size.prop.mjs';
|
|
3
|
+
import { SwitchIndicatorInternalProps } from './switch-indicator.props.mjs';
|
|
4
|
+
import '../../../props/prop-def.mjs';
|
|
5
|
+
|
|
6
|
+
interface AllSwitchIndicatorProps extends SwitchIndicatorInternalProps, SizeProp {
|
|
7
|
+
}
|
|
8
|
+
type SwitchIndicatorProps = AllSwitchIndicatorProps & Omit<React__default.HTMLAttributes<HTMLSpanElement>, "children">;
|
|
9
|
+
/**
|
|
10
|
+
* Indicator for a switch component.
|
|
11
|
+
* Supports checked, indeterminate, disabled, readonly, and high contrast states.
|
|
12
|
+
*/
|
|
13
|
+
declare const SwitchIndicator: React__default.FC<SwitchIndicatorProps>;
|
|
14
|
+
|
|
15
|
+
export { type AllSwitchIndicatorProps, SwitchIndicator, type SwitchIndicatorProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { SizeProp } from '../../../props/size.prop.js';
|
|
3
|
+
import { SwitchIndicatorInternalProps } from './switch-indicator.props.js';
|
|
4
|
+
import '../../../props/prop-def.js';
|
|
5
|
+
|
|
6
|
+
interface AllSwitchIndicatorProps extends SwitchIndicatorInternalProps, SizeProp {
|
|
7
|
+
}
|
|
8
|
+
type SwitchIndicatorProps = AllSwitchIndicatorProps & Omit<React__default.HTMLAttributes<HTMLSpanElement>, "children">;
|
|
9
|
+
/**
|
|
10
|
+
* Indicator for a switch component.
|
|
11
|
+
* Supports checked, indeterminate, disabled, readonly, and high contrast states.
|
|
12
|
+
*/
|
|
13
|
+
declare const SwitchIndicator: React__default.FC<SwitchIndicatorProps>;
|
|
14
|
+
|
|
15
|
+
export { type AllSwitchIndicatorProps, SwitchIndicator, type SwitchIndicatorProps };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var switch_indicator_exports = {};
|
|
31
|
+
__export(switch_indicator_exports, {
|
|
32
|
+
SwitchIndicator: () => SwitchIndicator
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(switch_indicator_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var import_clsx = __toESM(require("clsx"));
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
38
|
+
var import_props = require("../../../props");
|
|
39
|
+
var import_get_component_props = require("../../../utils/get-component-props");
|
|
40
|
+
var import_switch_context = require("../switch-context");
|
|
41
|
+
var import_switch_indicator = require("./switch-indicator.props");
|
|
42
|
+
const SwitchIndicator = import_react.default.forwardRef((props, ref) => {
|
|
43
|
+
const {
|
|
44
|
+
value,
|
|
45
|
+
setValue,
|
|
46
|
+
hovered,
|
|
47
|
+
color,
|
|
48
|
+
disabled,
|
|
49
|
+
readonly,
|
|
50
|
+
focused,
|
|
51
|
+
variant: contextVariant
|
|
52
|
+
} = (0, import_switch_context.useSwitchContext)();
|
|
53
|
+
const { size, variant, className, style, dataAttrs } = (0, import_get_component_props.getComponentProps)(
|
|
54
|
+
props,
|
|
55
|
+
import_switch_indicator.SwitchIndicatorPropDefs,
|
|
56
|
+
import_props.SizePropDef
|
|
57
|
+
);
|
|
58
|
+
const indicatorVariant = variant || contextVariant;
|
|
59
|
+
const handleKeyDown = (event) => {
|
|
60
|
+
if (disabled || readonly) return;
|
|
61
|
+
if (event.key === " " || event.key === "Enter") {
|
|
62
|
+
event.preventDefault();
|
|
63
|
+
setValue(!value);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const indicatorProps = {
|
|
67
|
+
...value && { "data-checked": true },
|
|
68
|
+
...disabled && { "data-disabled": true },
|
|
69
|
+
...readonly && { "data-readonly": true },
|
|
70
|
+
...(variant || contextVariant) && { "data-variant": indicatorVariant }
|
|
71
|
+
};
|
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
ref,
|
|
76
|
+
style,
|
|
77
|
+
role: "switch",
|
|
78
|
+
"data-size": size,
|
|
79
|
+
"data-color": color,
|
|
80
|
+
"data-hovered": hovered,
|
|
81
|
+
"aria-disabled": disabled,
|
|
82
|
+
"data-focused": focused,
|
|
83
|
+
"aria-readonly": readonly,
|
|
84
|
+
onKeyDown: handleKeyDown,
|
|
85
|
+
tabIndex: disabled || readonly ? -1 : 0,
|
|
86
|
+
className: (0, import_clsx.default)("switch-indicator", className),
|
|
87
|
+
...indicatorProps,
|
|
88
|
+
...dataAttrs
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
});
|
|
92
|
+
SwitchIndicator.displayName = "Switch.Indicator";
|
|
93
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
94
|
+
0 && (module.exports = {
|
|
95
|
+
SwitchIndicator
|
|
96
|
+
});
|
|
97
|
+
//# sourceMappingURL=switch-indicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/switch/indicator/switch-indicator.tsx"],"sourcesContent":["\"use client\";\n\nimport clsx from \"clsx\";\nimport React from \"react\";\nimport { SizeProp, SizePropDef } from \"../../../props\";\nimport { getComponentProps } from \"../../../utils/get-component-props\";\nimport { useSwitchContext } from \"../switch-context\";\nimport {\n SwitchIndicatorInternalProps,\n SwitchIndicatorPropDefs,\n} from \"./switch-indicator.props\";\n\ninterface AllSwitchIndicatorProps\n extends SwitchIndicatorInternalProps, SizeProp {}\n\ntype SwitchIndicatorProps = AllSwitchIndicatorProps &\n Omit<React.HTMLAttributes<HTMLSpanElement>, \"children\">;\n\n/**\n * Indicator for a switch component.\n * Supports checked, indeterminate, disabled, readonly, and high contrast states.\n */\nconst SwitchIndicator: React.FC<SwitchIndicatorProps> = React.forwardRef<\n HTMLDivElement,\n SwitchIndicatorProps\n>((props, ref) => {\n const {\n value,\n setValue,\n hovered,\n color,\n disabled,\n readonly,\n focused,\n variant: contextVariant,\n } = useSwitchContext();\n const { size, variant, className, style, dataAttrs } = getComponentProps(\n props,\n SwitchIndicatorPropDefs,\n SizePropDef,\n );\n\n const indicatorVariant = variant || contextVariant;\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLSpanElement>) => {\n if (disabled || readonly) return;\n\n if (event.key === \" \" || event.key === \"Enter\") {\n event.preventDefault();\n setValue(!value);\n }\n };\n\n const indicatorProps = {\n ...(value && { \"data-checked\": true }),\n ...(disabled && { \"data-disabled\": true }),\n ...(readonly && { \"data-readonly\": true }),\n ...((variant || contextVariant) && { \"data-variant\": indicatorVariant }),\n };\n\n return (\n <div\n ref={ref}\n style={style}\n role=\"switch\"\n data-size={size}\n data-color={color}\n data-hovered={hovered}\n aria-disabled={disabled}\n data-focused={focused}\n aria-readonly={readonly}\n onKeyDown={handleKeyDown}\n tabIndex={disabled || readonly ? -1 : 0}\n className={clsx(\"switch-indicator\", className)}\n {...indicatorProps}\n {...dataAttrs}\n />\n );\n});\nSwitchIndicator.displayName = \"Switch.Indicator\";\n\nexport { AllSwitchIndicatorProps, SwitchIndicator, SwitchIndicatorProps };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA6DI;AA3DJ,kBAAiB;AACjB,mBAAkB;AAClB,mBAAsC;AACtC,iCAAkC;AAClC,4BAAiC;AACjC,8BAGO;AAYP,MAAM,kBAAkD,aAAAA,QAAM,WAG5D,CAAC,OAAO,QAAQ;AAChB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,EACX,QAAI,wCAAiB;AACrB,QAAM,EAAE,MAAM,SAAS,WAAW,OAAO,UAAU,QAAI;AAAA,IACrD;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,QAAM,mBAAmB,WAAW;AAEpC,QAAM,gBAAgB,CAAC,UAAgD;AACrE,QAAI,YAAY,SAAU;AAE1B,QAAI,MAAM,QAAQ,OAAO,MAAM,QAAQ,SAAS;AAC9C,YAAM,eAAe;AACrB,eAAS,CAAC,KAAK;AAAA,IACjB;AAAA,EACF;AAEA,QAAM,iBAAiB;AAAA,IACrB,GAAI,SAAS,EAAE,gBAAgB,KAAK;AAAA,IACpC,GAAI,YAAY,EAAE,iBAAiB,KAAK;AAAA,IACxC,GAAI,YAAY,EAAE,iBAAiB,KAAK;AAAA,IACxC,IAAK,WAAW,mBAAmB,EAAE,gBAAgB,iBAAiB;AAAA,EACxE;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,MAAK;AAAA,MACL,aAAW;AAAA,MACX,cAAY;AAAA,MACZ,gBAAc;AAAA,MACd,iBAAe;AAAA,MACf,gBAAc;AAAA,MACd,iBAAe;AAAA,MACf,WAAW;AAAA,MACX,UAAU,YAAY,WAAW,KAAK;AAAA,MACtC,eAAW,YAAAC,SAAK,oBAAoB,SAAS;AAAA,MAC5C,GAAG;AAAA,MACH,GAAG;AAAA;AAAA,EACN;AAEJ,CAAC;AACD,gBAAgB,cAAc;","names":["React","clsx"]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { SizePropDef } from "../../../props";
|
|
6
|
+
import { getComponentProps } from "../../../utils/get-component-props";
|
|
7
|
+
import { useSwitchContext } from "../switch-context";
|
|
8
|
+
import {
|
|
9
|
+
SwitchIndicatorPropDefs
|
|
10
|
+
} from "./switch-indicator.props";
|
|
11
|
+
const SwitchIndicator = React.forwardRef((props, ref) => {
|
|
12
|
+
const {
|
|
13
|
+
value,
|
|
14
|
+
setValue,
|
|
15
|
+
hovered,
|
|
16
|
+
color,
|
|
17
|
+
disabled,
|
|
18
|
+
readonly,
|
|
19
|
+
focused,
|
|
20
|
+
variant: contextVariant
|
|
21
|
+
} = useSwitchContext();
|
|
22
|
+
const { size, variant, className, style, dataAttrs } = getComponentProps(
|
|
23
|
+
props,
|
|
24
|
+
SwitchIndicatorPropDefs,
|
|
25
|
+
SizePropDef
|
|
26
|
+
);
|
|
27
|
+
const indicatorVariant = variant || contextVariant;
|
|
28
|
+
const handleKeyDown = (event) => {
|
|
29
|
+
if (disabled || readonly) return;
|
|
30
|
+
if (event.key === " " || event.key === "Enter") {
|
|
31
|
+
event.preventDefault();
|
|
32
|
+
setValue(!value);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const indicatorProps = {
|
|
36
|
+
...value && { "data-checked": true },
|
|
37
|
+
...disabled && { "data-disabled": true },
|
|
38
|
+
...readonly && { "data-readonly": true },
|
|
39
|
+
...(variant || contextVariant) && { "data-variant": indicatorVariant }
|
|
40
|
+
};
|
|
41
|
+
return /* @__PURE__ */ jsx(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
ref,
|
|
45
|
+
style,
|
|
46
|
+
role: "switch",
|
|
47
|
+
"data-size": size,
|
|
48
|
+
"data-color": color,
|
|
49
|
+
"data-hovered": hovered,
|
|
50
|
+
"aria-disabled": disabled,
|
|
51
|
+
"data-focused": focused,
|
|
52
|
+
"aria-readonly": readonly,
|
|
53
|
+
onKeyDown: handleKeyDown,
|
|
54
|
+
tabIndex: disabled || readonly ? -1 : 0,
|
|
55
|
+
className: clsx("switch-indicator", className),
|
|
56
|
+
...indicatorProps,
|
|
57
|
+
...dataAttrs
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
});
|
|
61
|
+
SwitchIndicator.displayName = "Switch.Indicator";
|
|
62
|
+
export {
|
|
63
|
+
SwitchIndicator
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=switch-indicator.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/switch/indicator/switch-indicator.tsx"],"sourcesContent":["\"use client\";\n\nimport clsx from \"clsx\";\nimport React from \"react\";\nimport { SizeProp, SizePropDef } from \"../../../props\";\nimport { getComponentProps } from \"../../../utils/get-component-props\";\nimport { useSwitchContext } from \"../switch-context\";\nimport {\n SwitchIndicatorInternalProps,\n SwitchIndicatorPropDefs,\n} from \"./switch-indicator.props\";\n\ninterface AllSwitchIndicatorProps\n extends SwitchIndicatorInternalProps, SizeProp {}\n\ntype SwitchIndicatorProps = AllSwitchIndicatorProps &\n Omit<React.HTMLAttributes<HTMLSpanElement>, \"children\">;\n\n/**\n * Indicator for a switch component.\n * Supports checked, indeterminate, disabled, readonly, and high contrast states.\n */\nconst SwitchIndicator: React.FC<SwitchIndicatorProps> = React.forwardRef<\n HTMLDivElement,\n SwitchIndicatorProps\n>((props, ref) => {\n const {\n value,\n setValue,\n hovered,\n color,\n disabled,\n readonly,\n focused,\n variant: contextVariant,\n } = useSwitchContext();\n const { size, variant, className, style, dataAttrs } = getComponentProps(\n props,\n SwitchIndicatorPropDefs,\n SizePropDef,\n );\n\n const indicatorVariant = variant || contextVariant;\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLSpanElement>) => {\n if (disabled || readonly) return;\n\n if (event.key === \" \" || event.key === \"Enter\") {\n event.preventDefault();\n setValue(!value);\n }\n };\n\n const indicatorProps = {\n ...(value && { \"data-checked\": true }),\n ...(disabled && { \"data-disabled\": true }),\n ...(readonly && { \"data-readonly\": true }),\n ...((variant || contextVariant) && { \"data-variant\": indicatorVariant }),\n };\n\n return (\n <div\n ref={ref}\n style={style}\n role=\"switch\"\n data-size={size}\n data-color={color}\n data-hovered={hovered}\n aria-disabled={disabled}\n data-focused={focused}\n aria-readonly={readonly}\n onKeyDown={handleKeyDown}\n tabIndex={disabled || readonly ? -1 : 0}\n className={clsx(\"switch-indicator\", className)}\n {...indicatorProps}\n {...dataAttrs}\n />\n );\n});\nSwitchIndicator.displayName = \"Switch.Indicator\";\n\nexport { AllSwitchIndicatorProps, SwitchIndicator, SwitchIndicatorProps };\n"],"mappings":";AA6DI;AA3DJ,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,SAAmB,mBAAmB;AACtC,SAAS,yBAAyB;AAClC,SAAS,wBAAwB;AACjC;AAAA,EAEE;AAAA,OACK;AAYP,MAAM,kBAAkD,MAAM,WAG5D,CAAC,OAAO,QAAQ;AAChB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,EACX,IAAI,iBAAiB;AACrB,QAAM,EAAE,MAAM,SAAS,WAAW,OAAO,UAAU,IAAI;AAAA,IACrD;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,QAAM,mBAAmB,WAAW;AAEpC,QAAM,gBAAgB,CAAC,UAAgD;AACrE,QAAI,YAAY,SAAU;AAE1B,QAAI,MAAM,QAAQ,OAAO,MAAM,QAAQ,SAAS;AAC9C,YAAM,eAAe;AACrB,eAAS,CAAC,KAAK;AAAA,IACjB;AAAA,EACF;AAEA,QAAM,iBAAiB;AAAA,IACrB,GAAI,SAAS,EAAE,gBAAgB,KAAK;AAAA,IACpC,GAAI,YAAY,EAAE,iBAAiB,KAAK;AAAA,IACxC,GAAI,YAAY,EAAE,iBAAiB,KAAK;AAAA,IACxC,IAAK,WAAW,mBAAmB,EAAE,gBAAgB,iBAAiB;AAAA,EACxE;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,MAAK;AAAA,MACL,aAAW;AAAA,MACX,cAAY;AAAA,MACZ,gBAAc;AAAA,MACd,iBAAe;AAAA,MACf,gBAAc;AAAA,MACd,iBAAe;AAAA,MACf,WAAW;AAAA,MACX,UAAU,YAAY,WAAW,KAAK;AAAA,MACtC,WAAW,KAAK,oBAAoB,SAAS;AAAA,MAC5C,GAAG;AAAA,MACH,GAAG;AAAA;AAAA,EACN;AAEJ,CAAC;AACD,gBAAgB,cAAc;","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GetPropDefTypes } from '../../../props/prop-def.mjs';
|
|
2
|
+
|
|
3
|
+
declare const SwitchIndicatorPropDefs: {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the variant style of the switch ("solid" or "outlined").
|
|
6
|
+
*/
|
|
7
|
+
readonly variant: {
|
|
8
|
+
type: "enum";
|
|
9
|
+
values: readonly ["solid", "outlined", "muted"];
|
|
10
|
+
dataAttr: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type SwitchIndicatorInternalProps = GetPropDefTypes<typeof SwitchIndicatorPropDefs>;
|
|
14
|
+
|
|
15
|
+
export { type SwitchIndicatorInternalProps, SwitchIndicatorPropDefs };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GetPropDefTypes } from '../../../props/prop-def.js';
|
|
2
|
+
|
|
3
|
+
declare const SwitchIndicatorPropDefs: {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the variant style of the switch ("solid" or "outlined").
|
|
6
|
+
*/
|
|
7
|
+
readonly variant: {
|
|
8
|
+
type: "enum";
|
|
9
|
+
values: readonly ["solid", "outlined", "muted"];
|
|
10
|
+
dataAttr: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type SwitchIndicatorInternalProps = GetPropDefTypes<typeof SwitchIndicatorPropDefs>;
|
|
14
|
+
|
|
15
|
+
export { type SwitchIndicatorInternalProps, SwitchIndicatorPropDefs };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var switch_indicator_props_exports = {};
|
|
20
|
+
__export(switch_indicator_props_exports, {
|
|
21
|
+
SwitchIndicatorPropDefs: () => SwitchIndicatorPropDefs
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(switch_indicator_props_exports);
|
|
24
|
+
var import_switch_root = require("../root/switch-root.props");
|
|
25
|
+
const SwitchIndicatorPropDefs = {
|
|
26
|
+
/**
|
|
27
|
+
* Sets the variant style of the switch ("solid" or "outlined").
|
|
28
|
+
*/
|
|
29
|
+
variant: {
|
|
30
|
+
type: "enum",
|
|
31
|
+
values: import_switch_root.SwitchVariants,
|
|
32
|
+
dataAttr: "variant"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
SwitchIndicatorPropDefs
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=switch-indicator.props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/switch/indicator/switch-indicator.props.ts"],"sourcesContent":["import { GetPropDefTypes, PropDef } from \"../../../props\";\nimport { SwitchVariants } from \"../root/switch-root.props\";\n\nconst SwitchIndicatorPropDefs = {\n /**\n * Sets the variant style of the switch (\"solid\" or \"outlined\").\n */\n variant: {\n type: \"enum\",\n values: SwitchVariants,\n dataAttr: \"variant\",\n } satisfies PropDef<(typeof SwitchVariants)[number]>,\n} as const;\n\ntype SwitchIndicatorInternalProps = GetPropDefTypes<\n typeof SwitchIndicatorPropDefs\n>;\n\nexport { SwitchIndicatorInternalProps, SwitchIndicatorPropDefs };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,yBAA+B;AAE/B,MAAM,0BAA0B;AAAA;AAAA;AAAA;AAAA,EAI9B,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF;","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SwitchVariants } from "../root/switch-root.props";
|
|
2
|
+
const SwitchIndicatorPropDefs = {
|
|
3
|
+
/**
|
|
4
|
+
* Sets the variant style of the switch ("solid" or "outlined").
|
|
5
|
+
*/
|
|
6
|
+
variant: {
|
|
7
|
+
type: "enum",
|
|
8
|
+
values: SwitchVariants,
|
|
9
|
+
dataAttr: "variant"
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
SwitchIndicatorPropDefs
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=switch-indicator.props.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/switch/indicator/switch-indicator.props.ts"],"sourcesContent":["import { GetPropDefTypes, PropDef } from \"../../../props\";\nimport { SwitchVariants } from \"../root/switch-root.props\";\n\nconst SwitchIndicatorPropDefs = {\n /**\n * Sets the variant style of the switch (\"solid\" or \"outlined\").\n */\n variant: {\n type: \"enum\",\n values: SwitchVariants,\n dataAttr: \"variant\",\n } satisfies PropDef<(typeof SwitchVariants)[number]>,\n} as const;\n\ntype SwitchIndicatorInternalProps = GetPropDefTypes<\n typeof SwitchIndicatorPropDefs\n>;\n\nexport { SwitchIndicatorInternalProps, SwitchIndicatorPropDefs };\n"],"mappings":"AACA,SAAS,sBAAsB;AAE/B,MAAM,0BAA0B;AAAA;AAAA;AAAA;AAAA,EAI9B,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF;","names":[]}
|