@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,186 @@
|
|
|
1
|
+
const radii = [
|
|
2
|
+
"none",
|
|
3
|
+
"xs",
|
|
4
|
+
"sm",
|
|
5
|
+
"md",
|
|
6
|
+
"lg",
|
|
7
|
+
"xl",
|
|
8
|
+
"full",
|
|
9
|
+
"inherit"
|
|
10
|
+
];
|
|
11
|
+
const RadiusPropDefs = {
|
|
12
|
+
/**
|
|
13
|
+
* Sets the border-radius of the element.
|
|
14
|
+
* Supports scaled, inherit, custom, and responsive values.
|
|
15
|
+
*
|
|
16
|
+
* @example radius="md" // medium border-radius
|
|
17
|
+
* @example radius="26px" // 26px border-radius custom value
|
|
18
|
+
* @example radius={{ initial: "none", lg: "full" }} // responsive border-radius
|
|
19
|
+
*
|
|
20
|
+
* @default "theme" // uses the theme's default border-radius value or none if not set
|
|
21
|
+
*
|
|
22
|
+
* @link
|
|
23
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
|
|
24
|
+
*/
|
|
25
|
+
radius: {
|
|
26
|
+
type: "enum | string",
|
|
27
|
+
values: radii,
|
|
28
|
+
default: "theme",
|
|
29
|
+
dataAttr: "radius",
|
|
30
|
+
className: "lcs-radius",
|
|
31
|
+
responsive: true
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* Sets the top border-radius of the element.
|
|
35
|
+
* Supports scaled, inherit, custom, and responsive values.
|
|
36
|
+
*
|
|
37
|
+
* @example radius-t="md" // medium border-radius
|
|
38
|
+
* @example radius-t="26px" // 26px border-radius custom value
|
|
39
|
+
* @example radius-t={{ initial: "none", lg: "full" }} // responsive border-radius
|
|
40
|
+
*
|
|
41
|
+
* @link
|
|
42
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius
|
|
43
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius
|
|
44
|
+
*/
|
|
45
|
+
"radius-t": {
|
|
46
|
+
type: "enum | string",
|
|
47
|
+
values: radii,
|
|
48
|
+
dataAttr: "radius-t",
|
|
49
|
+
className: "lcs-radius-t",
|
|
50
|
+
responsive: true
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* Sets the right border-radius of the element.
|
|
54
|
+
* Supports scaled, inherit, custom, and responsive values.
|
|
55
|
+
*
|
|
56
|
+
* @example radius-r="md" // medium border-radius
|
|
57
|
+
* @example radius-r="26px" // 26px border-radius custom value
|
|
58
|
+
* @example radius-r={{ initial: "none", lg: "full" }} // responsive border-radius
|
|
59
|
+
*
|
|
60
|
+
* @link
|
|
61
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius
|
|
62
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius
|
|
63
|
+
*/
|
|
64
|
+
"radius-r": {
|
|
65
|
+
type: "enum | string",
|
|
66
|
+
values: radii,
|
|
67
|
+
dataAttr: "radius-r",
|
|
68
|
+
className: "lcs-radius-r",
|
|
69
|
+
responsive: true
|
|
70
|
+
},
|
|
71
|
+
/**
|
|
72
|
+
* Sets the bottom border-radius of the element.
|
|
73
|
+
* Supports scaled, inherit, custom, and responsive values.
|
|
74
|
+
*
|
|
75
|
+
* @example radius-b="md" // medium border-radius
|
|
76
|
+
* @example radius-b="26px" // 26px border-radius custom value
|
|
77
|
+
* @example radius-b={{ initial: "none", lg: "full" }} // responsive border-radius
|
|
78
|
+
*
|
|
79
|
+
* @link
|
|
80
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius
|
|
81
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius
|
|
82
|
+
*/
|
|
83
|
+
"radius-b": {
|
|
84
|
+
type: "enum | string",
|
|
85
|
+
values: radii,
|
|
86
|
+
dataAttr: "radius-b",
|
|
87
|
+
className: "lcs-radius-b",
|
|
88
|
+
responsive: true
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* Sets the left border-radius of the element.
|
|
92
|
+
* Supports scaled, inherit, custom, and responsive values.
|
|
93
|
+
*
|
|
94
|
+
* @example radius-l="md" // medium border-radius
|
|
95
|
+
* @example radius-l="26px" // 26px border-radius custom value
|
|
96
|
+
* @example radius-l={{ initial: "none", lg: "full" }} // responsive border-radius
|
|
97
|
+
*
|
|
98
|
+
* @link
|
|
99
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-top-radius
|
|
100
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-bottom-radius
|
|
101
|
+
*/
|
|
102
|
+
"radius-l": {
|
|
103
|
+
type: "enum | string",
|
|
104
|
+
values: radii,
|
|
105
|
+
dataAttr: "radius-l",
|
|
106
|
+
className: "lcs-radius-l",
|
|
107
|
+
responsive: true
|
|
108
|
+
},
|
|
109
|
+
/**
|
|
110
|
+
* Sets the top-left border-radius of the element.
|
|
111
|
+
* Supports scaled, inherit, custom, and responsive values.
|
|
112
|
+
*
|
|
113
|
+
* @example radius-tl="md" // medium border-radius
|
|
114
|
+
* @example radius-tl="26px" // 26px border-radius custom value
|
|
115
|
+
* @example radius-tl={{ initial: "none", lg: "full" }} // responsive border-radius
|
|
116
|
+
*
|
|
117
|
+
* @link
|
|
118
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius
|
|
119
|
+
*/
|
|
120
|
+
"radius-tl": {
|
|
121
|
+
type: "enum | string",
|
|
122
|
+
values: radii,
|
|
123
|
+
dataAttr: "radius-tl",
|
|
124
|
+
className: "lcs-radius-tl",
|
|
125
|
+
responsive: true
|
|
126
|
+
},
|
|
127
|
+
/**
|
|
128
|
+
* Sets the top-right border-radius of the element.
|
|
129
|
+
* Supports scaled, inherit, custom, and responsive values.
|
|
130
|
+
*
|
|
131
|
+
* @example "radius-tr"="md" // medium border-radius
|
|
132
|
+
* @example "radius-tr"="26px" // 26px border-radius custom value
|
|
133
|
+
* @example "radius-tr"={{ initial: "none", lg: "full" }} // responsive border-radius
|
|
134
|
+
*
|
|
135
|
+
* @link
|
|
136
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius
|
|
137
|
+
*/
|
|
138
|
+
"radius-tr": {
|
|
139
|
+
type: "enum | string",
|
|
140
|
+
values: radii,
|
|
141
|
+
dataAttr: "radius-tr",
|
|
142
|
+
className: "lcs-radius-tr",
|
|
143
|
+
responsive: true
|
|
144
|
+
},
|
|
145
|
+
/**
|
|
146
|
+
* Sets the bottom-right border-radius of the element.
|
|
147
|
+
* Supports scaled, inherit, custom, and responsive values.
|
|
148
|
+
*
|
|
149
|
+
* @example "radius-br"="md" // medium border-radius
|
|
150
|
+
* @example "radius-br"="26px" // 26px border-radius custom value
|
|
151
|
+
* @example "radius-br"={{ initial: "none", lg: "full" }} // responsive border-radius
|
|
152
|
+
*
|
|
153
|
+
* @link
|
|
154
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius
|
|
155
|
+
*/
|
|
156
|
+
"radius-br": {
|
|
157
|
+
type: "enum | string",
|
|
158
|
+
values: radii,
|
|
159
|
+
dataAttr: "radius-br",
|
|
160
|
+
className: "lcs-radius-br",
|
|
161
|
+
responsive: true
|
|
162
|
+
},
|
|
163
|
+
/**
|
|
164
|
+
* Sets the bottom-left border-radius of the element.
|
|
165
|
+
* Supports scaled, inherit, custom, and responsive values.
|
|
166
|
+
*
|
|
167
|
+
* @example "radius-bl"="md" // medium border-radius
|
|
168
|
+
* @example "radius-bl"="26px" // 26px border-radius custom value
|
|
169
|
+
* @example "radius-bl"={{ initial: "none", lg: "full" }} // responsive border-radius
|
|
170
|
+
*
|
|
171
|
+
* @link
|
|
172
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius
|
|
173
|
+
*/
|
|
174
|
+
"radius-bl": {
|
|
175
|
+
type: "enum | string",
|
|
176
|
+
values: radii,
|
|
177
|
+
dataAttr: "radius-bl",
|
|
178
|
+
className: "lcs-radius-bl",
|
|
179
|
+
responsive: true
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
export {
|
|
183
|
+
RadiusPropDefs,
|
|
184
|
+
radii
|
|
185
|
+
};
|
|
186
|
+
//# sourceMappingURL=radius.prop.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/props/radius.prop.ts"],"sourcesContent":["import { GetPropDefTypes, PropDef } from \"./prop-def\";\n\nconst radii = [\n \"none\",\n \"xs\",\n \"sm\",\n \"md\",\n \"lg\",\n \"xl\",\n \"full\",\n \"inherit\",\n] as const;\n\nconst RadiusPropDefs = {\n /**\n * Sets the border-radius of the element.\n * Supports scaled, inherit, custom, and responsive values.\n *\n * @example radius=\"md\" // medium border-radius\n * @example radius=\"26px\" // 26px border-radius custom value\n * @example radius={{ initial: \"none\", lg: \"full\" }} // responsive border-radius\n *\n * @default \"theme\" // uses the theme's default border-radius value or none if not set\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius\n */\n radius: {\n type: \"enum | string\",\n values: radii,\n default: \"theme\",\n dataAttr: \"radius\",\n className: \"lcs-radius\",\n responsive: true,\n } satisfies PropDef<(typeof radii)[number]>,\n\n /**\n * Sets the top border-radius of the element.\n * Supports scaled, inherit, custom, and responsive values.\n *\n * @example radius-t=\"md\" // medium border-radius\n * @example radius-t=\"26px\" // 26px border-radius custom value\n * @example radius-t={{ initial: \"none\", lg: \"full\" }} // responsive border-radius\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius\n */\n \"radius-t\": {\n type: \"enum | string\",\n values: radii,\n dataAttr: \"radius-t\",\n className: \"lcs-radius-t\",\n responsive: true,\n } satisfies PropDef<(typeof radii)[number]>,\n\n /**\n * Sets the right border-radius of the element.\n * Supports scaled, inherit, custom, and responsive values.\n *\n * @example radius-r=\"md\" // medium border-radius\n * @example radius-r=\"26px\" // 26px border-radius custom value\n * @example radius-r={{ initial: \"none\", lg: \"full\" }} // responsive border-radius\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius\n */\n \"radius-r\": {\n type: \"enum | string\",\n values: radii,\n dataAttr: \"radius-r\",\n className: \"lcs-radius-r\",\n responsive: true,\n } satisfies PropDef<(typeof radii)[number]>,\n\n /**\n * Sets the bottom border-radius of the element.\n * Supports scaled, inherit, custom, and responsive values.\n *\n * @example radius-b=\"md\" // medium border-radius\n * @example radius-b=\"26px\" // 26px border-radius custom value\n * @example radius-b={{ initial: \"none\", lg: \"full\" }} // responsive border-radius\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius\n */\n \"radius-b\": {\n type: \"enum | string\",\n values: radii,\n dataAttr: \"radius-b\",\n className: \"lcs-radius-b\",\n responsive: true,\n } satisfies PropDef<(typeof radii)[number]>,\n\n /**\n * Sets the left border-radius of the element.\n * Supports scaled, inherit, custom, and responsive values.\n *\n * @example radius-l=\"md\" // medium border-radius\n * @example radius-l=\"26px\" // 26px border-radius custom value\n * @example radius-l={{ initial: \"none\", lg: \"full\" }} // responsive border-radius\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-top-radius\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-bottom-radius\n */\n \"radius-l\": {\n type: \"enum | string\",\n values: radii,\n dataAttr: \"radius-l\",\n className: \"lcs-radius-l\",\n responsive: true,\n } satisfies PropDef<(typeof radii)[number]>,\n\n /**\n * Sets the top-left border-radius of the element.\n * Supports scaled, inherit, custom, and responsive values.\n *\n * @example radius-tl=\"md\" // medium border-radius\n * @example radius-tl=\"26px\" // 26px border-radius custom value\n * @example radius-tl={{ initial: \"none\", lg: \"full\" }} // responsive border-radius\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius\n */\n \"radius-tl\": {\n type: \"enum | string\",\n values: radii,\n dataAttr: \"radius-tl\",\n className: \"lcs-radius-tl\",\n responsive: true,\n } satisfies PropDef<(typeof radii)[number]>,\n\n /**\n * Sets the top-right border-radius of the element.\n * Supports scaled, inherit, custom, and responsive values.\n *\n * @example \"radius-tr\"=\"md\" // medium border-radius\n * @example \"radius-tr\"=\"26px\" // 26px border-radius custom value\n * @example \"radius-tr\"={{ initial: \"none\", lg: \"full\" }} // responsive border-radius\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius\n */\n \"radius-tr\": {\n type: \"enum | string\",\n values: radii,\n dataAttr: \"radius-tr\",\n className: \"lcs-radius-tr\",\n responsive: true,\n } satisfies PropDef<(typeof radii)[number]>,\n\n /**\n * Sets the bottom-right border-radius of the element.\n * Supports scaled, inherit, custom, and responsive values.\n *\n * @example \"radius-br\"=\"md\" // medium border-radius\n * @example \"radius-br\"=\"26px\" // 26px border-radius custom value\n * @example \"radius-br\"={{ initial: \"none\", lg: \"full\" }} // responsive border-radius\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius\n */\n \"radius-br\": {\n type: \"enum | string\",\n values: radii,\n dataAttr: \"radius-br\",\n className: \"lcs-radius-br\",\n responsive: true,\n } satisfies PropDef<(typeof radii)[number]>,\n\n /**\n * Sets the bottom-left border-radius of the element.\n * Supports scaled, inherit, custom, and responsive values.\n *\n * @example \"radius-bl\"=\"md\" // medium border-radius\n * @example \"radius-bl\"=\"26px\" // 26px border-radius custom value\n * @example \"radius-bl\"={{ initial: \"none\", lg: \"full\" }} // responsive border-radius\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius\n */\n \"radius-bl\": {\n type: \"enum | string\",\n values: radii,\n dataAttr: \"radius-bl\",\n className: \"lcs-radius-bl\",\n responsive: true,\n } satisfies PropDef<(typeof radii)[number]>,\n};\n\ntype RadiusProps = GetPropDefTypes<typeof RadiusPropDefs>;\n\nexport { radii, RadiusPropDefs, RadiusProps };\n"],"mappings":"AAEA,MAAM,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcrB,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,IACV,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AACF;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GetPropDefTypes } from './prop-def.mjs';
|
|
2
|
+
|
|
3
|
+
declare const roundness: readonly ["1", "2", "3", "4", "5", "6", "inherit"];
|
|
4
|
+
declare const RoundnessPropDef: {
|
|
5
|
+
/**
|
|
6
|
+
* Sets the roundness multiplier for the element's radius.
|
|
7
|
+
* Supports scaled and inherit values.
|
|
8
|
+
*
|
|
9
|
+
* @example roundness="4" // 8px base roundness
|
|
10
|
+
* @example roundness="inherit" // inherits roundness from parent
|
|
11
|
+
*
|
|
12
|
+
* @default "theme" // uses the theme's default roundness value or none if not set
|
|
13
|
+
*/
|
|
14
|
+
roundness: {
|
|
15
|
+
type: "enum";
|
|
16
|
+
values: readonly ["1", "2", "3", "4", "5", "6", "inherit"];
|
|
17
|
+
default: "theme";
|
|
18
|
+
dataAttr: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
type RoundnessProp = GetPropDefTypes<typeof RoundnessPropDef>;
|
|
22
|
+
|
|
23
|
+
export { type RoundnessProp, RoundnessPropDef, roundness };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GetPropDefTypes } from './prop-def.js';
|
|
2
|
+
|
|
3
|
+
declare const roundness: readonly ["1", "2", "3", "4", "5", "6", "inherit"];
|
|
4
|
+
declare const RoundnessPropDef: {
|
|
5
|
+
/**
|
|
6
|
+
* Sets the roundness multiplier for the element's radius.
|
|
7
|
+
* Supports scaled and inherit values.
|
|
8
|
+
*
|
|
9
|
+
* @example roundness="4" // 8px base roundness
|
|
10
|
+
* @example roundness="inherit" // inherits roundness from parent
|
|
11
|
+
*
|
|
12
|
+
* @default "theme" // uses the theme's default roundness value or none if not set
|
|
13
|
+
*/
|
|
14
|
+
roundness: {
|
|
15
|
+
type: "enum";
|
|
16
|
+
values: readonly ["1", "2", "3", "4", "5", "6", "inherit"];
|
|
17
|
+
default: "theme";
|
|
18
|
+
dataAttr: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
type RoundnessProp = GetPropDefTypes<typeof RoundnessPropDef>;
|
|
22
|
+
|
|
23
|
+
export { type RoundnessProp, RoundnessPropDef, roundness };
|
|
@@ -0,0 +1,48 @@
|
|
|
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 roundness_prop_exports = {};
|
|
20
|
+
__export(roundness_prop_exports, {
|
|
21
|
+
RoundnessPropDef: () => RoundnessPropDef,
|
|
22
|
+
roundness: () => roundness
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(roundness_prop_exports);
|
|
25
|
+
const roundness = ["1", "2", "3", "4", "5", "6", "inherit"];
|
|
26
|
+
const RoundnessPropDef = {
|
|
27
|
+
/**
|
|
28
|
+
* Sets the roundness multiplier for the element's radius.
|
|
29
|
+
* Supports scaled and inherit values.
|
|
30
|
+
*
|
|
31
|
+
* @example roundness="4" // 8px base roundness
|
|
32
|
+
* @example roundness="inherit" // inherits roundness from parent
|
|
33
|
+
*
|
|
34
|
+
* @default "theme" // uses the theme's default roundness value or none if not set
|
|
35
|
+
*/
|
|
36
|
+
roundness: {
|
|
37
|
+
type: "enum",
|
|
38
|
+
values: roundness,
|
|
39
|
+
default: "theme",
|
|
40
|
+
dataAttr: "roundness"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
RoundnessPropDef,
|
|
46
|
+
roundness
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=roundness.prop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/props/roundness.prop.ts"],"sourcesContent":["import { GetPropDefTypes, PropDef } from \"./prop-def\";\n\nconst roundness = [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"inherit\"] as const;\n\nconst RoundnessPropDef = {\n /**\n * Sets the roundness multiplier for the element's radius.\n * Supports scaled and inherit values.\n *\n * @example roundness=\"4\" // 8px base roundness\n * @example roundness=\"inherit\" // inherits roundness from parent\n *\n * @default \"theme\" // uses the theme's default roundness value or none if not set\n */\n roundness: {\n type: \"enum\",\n values: roundness,\n default: \"theme\",\n dataAttr: \"roundness\",\n } satisfies PropDef<(typeof roundness)[number]>,\n};\n\ntype RoundnessProp = GetPropDefTypes<typeof RoundnessPropDef>;\n\nexport { roundness, RoundnessProp, RoundnessPropDef };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,MAAM,YAAY,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,SAAS;AAE1D,MAAM,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUvB,WAAW;AAAA,IACT,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AACF;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const roundness = ["1", "2", "3", "4", "5", "6", "inherit"];
|
|
2
|
+
const RoundnessPropDef = {
|
|
3
|
+
/**
|
|
4
|
+
* Sets the roundness multiplier for the element's radius.
|
|
5
|
+
* Supports scaled and inherit values.
|
|
6
|
+
*
|
|
7
|
+
* @example roundness="4" // 8px base roundness
|
|
8
|
+
* @example roundness="inherit" // inherits roundness from parent
|
|
9
|
+
*
|
|
10
|
+
* @default "theme" // uses the theme's default roundness value or none if not set
|
|
11
|
+
*/
|
|
12
|
+
roundness: {
|
|
13
|
+
type: "enum",
|
|
14
|
+
values: roundness,
|
|
15
|
+
default: "theme",
|
|
16
|
+
dataAttr: "roundness"
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
RoundnessPropDef,
|
|
21
|
+
roundness
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=roundness.prop.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/props/roundness.prop.ts"],"sourcesContent":["import { GetPropDefTypes, PropDef } from \"./prop-def\";\n\nconst roundness = [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"inherit\"] as const;\n\nconst RoundnessPropDef = {\n /**\n * Sets the roundness multiplier for the element's radius.\n * Supports scaled and inherit values.\n *\n * @example roundness=\"4\" // 8px base roundness\n * @example roundness=\"inherit\" // inherits roundness from parent\n *\n * @default \"theme\" // uses the theme's default roundness value or none if not set\n */\n roundness: {\n type: \"enum\",\n values: roundness,\n default: \"theme\",\n dataAttr: \"roundness\",\n } satisfies PropDef<(typeof roundness)[number]>,\n};\n\ntype RoundnessProp = GetPropDefTypes<typeof RoundnessPropDef>;\n\nexport { roundness, RoundnessProp, RoundnessPropDef };\n"],"mappings":"AAEA,MAAM,YAAY,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,SAAS;AAE1D,MAAM,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUvB,WAAW;AAAA,IACT,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AACF;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GetPropDefTypes } from './prop-def.mjs';
|
|
2
|
+
|
|
3
|
+
declare const Sizes: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
4
|
+
declare const SizePropDef: {
|
|
5
|
+
/**
|
|
6
|
+
* Sets the size of the component.
|
|
7
|
+
*
|
|
8
|
+
* @example size="md" // medium sized component
|
|
9
|
+
*/
|
|
10
|
+
size: {
|
|
11
|
+
type: "enum | string";
|
|
12
|
+
values: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
13
|
+
dataAttr: string;
|
|
14
|
+
className: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
type SizeProp = GetPropDefTypes<typeof SizePropDef>;
|
|
18
|
+
|
|
19
|
+
export { type SizeProp, SizePropDef, Sizes };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GetPropDefTypes } from './prop-def.js';
|
|
2
|
+
|
|
3
|
+
declare const Sizes: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
4
|
+
declare const SizePropDef: {
|
|
5
|
+
/**
|
|
6
|
+
* Sets the size of the component.
|
|
7
|
+
*
|
|
8
|
+
* @example size="md" // medium sized component
|
|
9
|
+
*/
|
|
10
|
+
size: {
|
|
11
|
+
type: "enum | string";
|
|
12
|
+
values: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
13
|
+
dataAttr: string;
|
|
14
|
+
className: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
type SizeProp = GetPropDefTypes<typeof SizePropDef>;
|
|
18
|
+
|
|
19
|
+
export { type SizeProp, SizePropDef, Sizes };
|
|
@@ -0,0 +1,44 @@
|
|
|
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 size_prop_exports = {};
|
|
20
|
+
__export(size_prop_exports, {
|
|
21
|
+
SizePropDef: () => SizePropDef,
|
|
22
|
+
Sizes: () => Sizes
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(size_prop_exports);
|
|
25
|
+
const Sizes = ["xs", "sm", "md", "lg", "xl"];
|
|
26
|
+
const SizePropDef = {
|
|
27
|
+
/**
|
|
28
|
+
* Sets the size of the component.
|
|
29
|
+
*
|
|
30
|
+
* @example size="md" // medium sized component
|
|
31
|
+
*/
|
|
32
|
+
size: {
|
|
33
|
+
type: "enum | string",
|
|
34
|
+
values: Sizes,
|
|
35
|
+
dataAttr: "size",
|
|
36
|
+
className: "size"
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
SizePropDef,
|
|
42
|
+
Sizes
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=size.prop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/props/size.prop.ts"],"sourcesContent":["import { GetPropDefTypes, PropDef } from \"./prop-def\";\n\nconst Sizes = [\"xs\", \"sm\", \"md\", \"lg\", \"xl\"] as const;\n\nconst SizePropDef = {\n /**\n * Sets the size of the component.\n *\n * @example size=\"md\" // medium sized component\n */\n size: {\n type: \"enum | string\",\n values: Sizes,\n dataAttr: \"size\",\n className: \"size\",\n } satisfies PropDef<(typeof Sizes)[number]>,\n};\n\ntype SizeProp = GetPropDefTypes<typeof SizePropDef>;\n\nexport { SizeProp, SizePropDef, Sizes };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,MAAM,QAAQ,CAAC,MAAM,MAAM,MAAM,MAAM,IAAI;AAE3C,MAAM,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMlB,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AACF;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const Sizes = ["xs", "sm", "md", "lg", "xl"];
|
|
2
|
+
const SizePropDef = {
|
|
3
|
+
/**
|
|
4
|
+
* Sets the size of the component.
|
|
5
|
+
*
|
|
6
|
+
* @example size="md" // medium sized component
|
|
7
|
+
*/
|
|
8
|
+
size: {
|
|
9
|
+
type: "enum | string",
|
|
10
|
+
values: Sizes,
|
|
11
|
+
dataAttr: "size",
|
|
12
|
+
className: "size"
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
SizePropDef,
|
|
17
|
+
Sizes
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=size.prop.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/props/size.prop.ts"],"sourcesContent":["import { GetPropDefTypes, PropDef } from \"./prop-def\";\n\nconst Sizes = [\"xs\", \"sm\", \"md\", \"lg\", \"xl\"] as const;\n\nconst SizePropDef = {\n /**\n * Sets the size of the component.\n *\n * @example size=\"md\" // medium sized component\n */\n size: {\n type: \"enum | string\",\n values: Sizes,\n dataAttr: \"size\",\n className: \"size\",\n } satisfies PropDef<(typeof Sizes)[number]>,\n};\n\ntype SizeProp = GetPropDefTypes<typeof SizePropDef>;\n\nexport { SizeProp, SizePropDef, Sizes };\n"],"mappings":"AAEA,MAAM,QAAQ,CAAC,MAAM,MAAM,MAAM,MAAM,IAAI;AAE3C,MAAM,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMlB,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AACF;","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { GetPropDefTypes } from './prop-def.mjs';
|
|
2
|
+
|
|
3
|
+
declare const spacingValues: readonly ["xs", "sm", "md", "lg", "xl", "inherit"];
|
|
4
|
+
declare const SpacingPropDef: {
|
|
5
|
+
/**
|
|
6
|
+
* Sets the spacing scale for the component.
|
|
7
|
+
* This multiplier affects various layout properties such as margin, padding, and gap values.
|
|
8
|
+
*
|
|
9
|
+
* @example spacing="md" // medium spacing scale (1)
|
|
10
|
+
* @example spacing={{ initial: "sm", lg: "xl" }} // responsive spacing
|
|
11
|
+
*
|
|
12
|
+
* @default "theme" // uses the theme's default spacing value or none if not set
|
|
13
|
+
*/
|
|
14
|
+
spacing: {
|
|
15
|
+
type: "enum";
|
|
16
|
+
values: readonly ["xs", "sm", "md", "lg", "xl", "inherit"];
|
|
17
|
+
dataAttr: string;
|
|
18
|
+
default: "theme";
|
|
19
|
+
responsive: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type SpacingProp = GetPropDefTypes<typeof SpacingPropDef>;
|
|
23
|
+
|
|
24
|
+
export { type SpacingProp, SpacingPropDef, spacingValues };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { GetPropDefTypes } from './prop-def.js';
|
|
2
|
+
|
|
3
|
+
declare const spacingValues: readonly ["xs", "sm", "md", "lg", "xl", "inherit"];
|
|
4
|
+
declare const SpacingPropDef: {
|
|
5
|
+
/**
|
|
6
|
+
* Sets the spacing scale for the component.
|
|
7
|
+
* This multiplier affects various layout properties such as margin, padding, and gap values.
|
|
8
|
+
*
|
|
9
|
+
* @example spacing="md" // medium spacing scale (1)
|
|
10
|
+
* @example spacing={{ initial: "sm", lg: "xl" }} // responsive spacing
|
|
11
|
+
*
|
|
12
|
+
* @default "theme" // uses the theme's default spacing value or none if not set
|
|
13
|
+
*/
|
|
14
|
+
spacing: {
|
|
15
|
+
type: "enum";
|
|
16
|
+
values: readonly ["xs", "sm", "md", "lg", "xl", "inherit"];
|
|
17
|
+
dataAttr: string;
|
|
18
|
+
default: "theme";
|
|
19
|
+
responsive: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type SpacingProp = GetPropDefTypes<typeof SpacingPropDef>;
|
|
23
|
+
|
|
24
|
+
export { type SpacingProp, SpacingPropDef, spacingValues };
|
|
@@ -0,0 +1,49 @@
|
|
|
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 spacing_prop_exports = {};
|
|
20
|
+
__export(spacing_prop_exports, {
|
|
21
|
+
SpacingPropDef: () => SpacingPropDef,
|
|
22
|
+
spacingValues: () => spacingValues
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(spacing_prop_exports);
|
|
25
|
+
const spacingValues = ["xs", "sm", "md", "lg", "xl", "inherit"];
|
|
26
|
+
const SpacingPropDef = {
|
|
27
|
+
/**
|
|
28
|
+
* Sets the spacing scale for the component.
|
|
29
|
+
* This multiplier affects various layout properties such as margin, padding, and gap values.
|
|
30
|
+
*
|
|
31
|
+
* @example spacing="md" // medium spacing scale (1)
|
|
32
|
+
* @example spacing={{ initial: "sm", lg: "xl" }} // responsive spacing
|
|
33
|
+
*
|
|
34
|
+
* @default "theme" // uses the theme's default spacing value or none if not set
|
|
35
|
+
*/
|
|
36
|
+
spacing: {
|
|
37
|
+
type: "enum",
|
|
38
|
+
values: spacingValues,
|
|
39
|
+
dataAttr: "spacing",
|
|
40
|
+
default: "theme",
|
|
41
|
+
responsive: true
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
SpacingPropDef,
|
|
47
|
+
spacingValues
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=spacing.prop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/props/spacing.prop.ts"],"sourcesContent":["import { GetPropDefTypes, PropDef } from \"./prop-def\";\n\nconst spacingValues = [\"xs\", \"sm\", \"md\", \"lg\", \"xl\", \"inherit\"] as const;\n\nconst SpacingPropDef = {\n /**\n * Sets the spacing scale for the component.\n * This multiplier affects various layout properties such as margin, padding, and gap values.\n *\n * @example spacing=\"md\" // medium spacing scale (1)\n * @example spacing={{ initial: \"sm\", lg: \"xl\" }} // responsive spacing\n *\n * @default \"theme\" // uses the theme's default spacing value or none if not set\n */\n spacing: {\n type: \"enum\",\n values: spacingValues,\n dataAttr: \"spacing\",\n default: \"theme\",\n responsive: true,\n } satisfies PropDef<(typeof spacingValues)[number]>,\n};\n\ntype SpacingProp = GetPropDefTypes<typeof SpacingPropDef>;\n\nexport { SpacingProp, SpacingPropDef, spacingValues };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,MAAM,gBAAgB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,SAAS;AAE9D,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUrB,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,SAAS;AAAA,IACT,YAAY;AAAA,EACd;AACF;","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const spacingValues = ["xs", "sm", "md", "lg", "xl", "inherit"];
|
|
2
|
+
const SpacingPropDef = {
|
|
3
|
+
/**
|
|
4
|
+
* Sets the spacing scale for the component.
|
|
5
|
+
* This multiplier affects various layout properties such as margin, padding, and gap values.
|
|
6
|
+
*
|
|
7
|
+
* @example spacing="md" // medium spacing scale (1)
|
|
8
|
+
* @example spacing={{ initial: "sm", lg: "xl" }} // responsive spacing
|
|
9
|
+
*
|
|
10
|
+
* @default "theme" // uses the theme's default spacing value or none if not set
|
|
11
|
+
*/
|
|
12
|
+
spacing: {
|
|
13
|
+
type: "enum",
|
|
14
|
+
values: spacingValues,
|
|
15
|
+
dataAttr: "spacing",
|
|
16
|
+
default: "theme",
|
|
17
|
+
responsive: true
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
SpacingPropDef,
|
|
22
|
+
spacingValues
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=spacing.prop.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/props/spacing.prop.ts"],"sourcesContent":["import { GetPropDefTypes, PropDef } from \"./prop-def\";\n\nconst spacingValues = [\"xs\", \"sm\", \"md\", \"lg\", \"xl\", \"inherit\"] as const;\n\nconst SpacingPropDef = {\n /**\n * Sets the spacing scale for the component.\n * This multiplier affects various layout properties such as margin, padding, and gap values.\n *\n * @example spacing=\"md\" // medium spacing scale (1)\n * @example spacing={{ initial: \"sm\", lg: \"xl\" }} // responsive spacing\n *\n * @default \"theme\" // uses the theme's default spacing value or none if not set\n */\n spacing: {\n type: \"enum\",\n values: spacingValues,\n dataAttr: \"spacing\",\n default: \"theme\",\n responsive: true,\n } satisfies PropDef<(typeof spacingValues)[number]>,\n};\n\ntype SpacingProp = GetPropDefTypes<typeof SpacingPropDef>;\n\nexport { SpacingProp, SpacingPropDef, spacingValues };\n"],"mappings":"AAEA,MAAM,gBAAgB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,SAAS;AAE9D,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUrB,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,SAAS;AAAA,IACT,YAAY;AAAA,EACd;AACF;","names":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Type utility to restrict children to specific React element types.
|
|
5
|
+
* Use with Omit<Props, 'children'> & StrictChildren<AllowedProps>
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* type MyComponentProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>
|
|
9
|
+
* & StrictChildren<ChildAProps | ChildBProps>;
|
|
10
|
+
*/
|
|
11
|
+
type StrictChildren<AllowedChildProps> = {
|
|
12
|
+
children: React.ReactElement<AllowedChildProps> | React.ReactElement<AllowedChildProps>[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Type utility to replace the children prop with strictly typed children.
|
|
16
|
+
* Combines Omit and StrictChildren in one step.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* type MyComponentProps = WithStrictChildren<
|
|
20
|
+
* React.HTMLAttributes<HTMLDivElement>,
|
|
21
|
+
* ChildAProps | ChildBProps
|
|
22
|
+
* >;
|
|
23
|
+
*/
|
|
24
|
+
type WithStrictChildren<Props extends {
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
}, AllowedChildProps> = Omit<Props, "children"> & StrictChildren<AllowedChildProps>;
|
|
27
|
+
/**
|
|
28
|
+
* Like WithStrictChildren, but children are optional.
|
|
29
|
+
* When provided, children are still restricted to the allowed types.
|
|
30
|
+
*/
|
|
31
|
+
type WithOptionalStrictChildren<Props extends {
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
}, AllowedChildProps> = Omit<Props, "children"> & Partial<StrictChildren<AllowedChildProps>>;
|
|
34
|
+
interface FilterChildrenOptions {
|
|
35
|
+
/** The parent component's displayName (for error/warning messages) */
|
|
36
|
+
parentDisplayName?: string;
|
|
37
|
+
/** If true, throws an error for invalid children instead of warning */
|
|
38
|
+
strict?: boolean;
|
|
39
|
+
/** Component references to match against (for RSC-serialized children whose displayName may not be accessible) */
|
|
40
|
+
allowedTypes?: React.ComponentType[];
|
|
41
|
+
}
|
|
42
|
+
declare function filterChildren(children: React.ReactNode, allowedDisplayNames: string[], options?: FilterChildrenOptions): React.ReactNode[];
|
|
43
|
+
/**
|
|
44
|
+
* Checks if a child element's type matches a given component, handling
|
|
45
|
+
* RSC-serialized lazy module references where displayName and direct
|
|
46
|
+
* reference comparison may not work.
|
|
47
|
+
*/
|
|
48
|
+
declare function matchesComponent(childType: unknown, component: React.ComponentType): boolean;
|
|
49
|
+
|
|
50
|
+
export { type FilterChildrenOptions, type StrictChildren, type WithOptionalStrictChildren, type WithStrictChildren, filterChildren, matchesComponent };
|