@vaneui/ui 1.4.4 → 1.4.5-alpha.20261029101344.297c4e3
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/CHANGELOG.md +49 -0
- package/README.md +115 -75
- package/dist/cjs/components/defaultTheme.cjs +6 -0
- package/dist/cjs/components/defaultTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/button/defaultButtonSpinnerTheme.cjs +0 -1
- package/dist/cjs/components/ui/button/defaultButtonSpinnerTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/card/CardCategories.cjs +3 -0
- package/dist/cjs/components/ui/card/CardCategories.cjs.map +1 -1
- package/dist/cjs/components/ui/checkbox/defaultCheckboxCheckTheme.cjs +0 -1
- package/dist/cjs/components/ui/checkbox/defaultCheckboxCheckTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/checkbox/defaultCheckboxIndeterminateTheme.cjs +0 -1
- package/dist/cjs/components/ui/checkbox/defaultCheckboxIndeterminateTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/checkbox/defaultCheckboxTheme.cjs +0 -1
- package/dist/cjs/components/ui/checkbox/defaultCheckboxTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/checkbox/defaultCheckboxWrapperTheme.cjs +0 -1
- package/dist/cjs/components/ui/checkbox/defaultCheckboxWrapperTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/col/ColCategories.cjs +3 -0
- package/dist/cjs/components/ui/col/ColCategories.cjs.map +1 -1
- package/dist/cjs/components/ui/divider/defaultDividerTheme.cjs +0 -1
- package/dist/cjs/components/ui/divider/defaultDividerTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/grid/gridSubThemes.cjs +10 -2
- package/dist/cjs/components/ui/grid/gridSubThemes.cjs.map +1 -1
- package/dist/cjs/components/ui/img/ImgCategories.cjs +1 -1
- package/dist/cjs/components/ui/img/ImgCategories.cjs.map +1 -1
- package/dist/cjs/components/ui/img/defaultImgTheme.cjs +3 -1
- package/dist/cjs/components/ui/img/defaultImgTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/input/defaultInputErrorIconTheme.cjs +0 -1
- package/dist/cjs/components/ui/input/defaultInputErrorIconTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/input/defaultInputTheme.cjs +0 -1
- package/dist/cjs/components/ui/input/defaultInputTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/label/defaultLabelTheme.cjs +0 -1
- package/dist/cjs/components/ui/label/defaultLabelTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/navLink/NavLinkCategories.cjs +1 -1
- package/dist/cjs/components/ui/navLink/NavLinkCategories.cjs.map +1 -1
- package/dist/cjs/components/ui/navLink/defaultNavLinkTheme.cjs +5 -0
- package/dist/cjs/components/ui/navLink/defaultNavLinkTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/progress/Progress.cjs +48 -0
- package/dist/cjs/components/ui/progress/Progress.cjs.map +1 -0
- package/dist/cjs/components/ui/progress/ProgressCategories.cjs +6 -0
- package/dist/cjs/components/ui/progress/ProgressCategories.cjs.map +1 -0
- package/dist/cjs/components/ui/progress/ProgressFillCategories.cjs +6 -0
- package/dist/cjs/components/ui/progress/ProgressFillCategories.cjs.map +1 -0
- package/dist/cjs/components/ui/progress/defaultProgressFillTheme.cjs +40 -0
- package/dist/cjs/components/ui/progress/defaultProgressFillTheme.cjs.map +1 -0
- package/dist/cjs/components/ui/progress/defaultProgressTheme.cjs +45 -0
- package/dist/cjs/components/ui/progress/defaultProgressTheme.cjs.map +1 -0
- package/dist/cjs/components/ui/progress/index.cjs +20 -0
- package/dist/cjs/components/ui/progress/index.cjs.map +1 -0
- package/dist/cjs/components/ui/progress/progressDefaults.cjs +15 -0
- package/dist/cjs/components/ui/progress/progressDefaults.cjs.map +1 -0
- package/dist/cjs/components/ui/progress/progressFillDefaults.cjs +13 -0
- package/dist/cjs/components/ui/progress/progressFillDefaults.cjs.map +1 -0
- package/dist/cjs/components/ui/props/categoryBuilders.cjs +18 -3
- package/dist/cjs/components/ui/props/categoryBuilders.cjs.map +1 -1
- package/dist/cjs/components/ui/props/index.cjs +5 -0
- package/dist/cjs/components/ui/props/index.cjs.map +1 -1
- package/dist/cjs/components/ui/props/keys.cjs +20 -4
- package/dist/cjs/components/ui/props/keys.cjs.map +1 -1
- package/dist/cjs/components/ui/props/propDescriptions.cjs +46 -1
- package/dist/cjs/components/ui/props/propDescriptions.cjs.map +1 -1
- package/dist/cjs/components/ui/radio/defaultRadioDotTheme.cjs +0 -1
- package/dist/cjs/components/ui/radio/defaultRadioDotTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/radio/defaultRadioTheme.cjs +0 -1
- package/dist/cjs/components/ui/radio/defaultRadioTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/radio/defaultRadioWrapperTheme.cjs +0 -1
- package/dist/cjs/components/ui/radio/defaultRadioWrapperTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/section/SectionCategories.cjs +1 -1
- package/dist/cjs/components/ui/section/SectionCategories.cjs.map +1 -1
- package/dist/cjs/components/ui/select/defaultSelectChevronTheme.cjs +0 -1
- package/dist/cjs/components/ui/select/defaultSelectChevronTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/select/defaultSelectTheme.cjs +0 -1
- package/dist/cjs/components/ui/select/defaultSelectTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/select/defaultSelectWrapperTheme.cjs +0 -1
- package/dist/cjs/components/ui/select/defaultSelectWrapperTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/spinner/defaultSpinnerTheme.cjs +0 -1
- package/dist/cjs/components/ui/spinner/defaultSpinnerTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/switch/defaultSwitchTheme.cjs +0 -1
- package/dist/cjs/components/ui/switch/defaultSwitchTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/switch/defaultSwitchThumbTheme.cjs +0 -1
- package/dist/cjs/components/ui/switch/defaultSwitchThumbTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/switch/defaultSwitchWrapperTheme.cjs +0 -1
- package/dist/cjs/components/ui/switch/defaultSwitchWrapperTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/textarea/defaultTextareaTheme.cjs +0 -1
- package/dist/cjs/components/ui/textarea/defaultTextareaTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/theme/appearance/shadowAppearanceClassMapper.cjs +13 -7
- package/dist/cjs/components/ui/theme/appearance/shadowAppearanceClassMapper.cjs.map +1 -1
- package/dist/cjs/components/ui/theme/appearance/strongBorderClassMapper.cjs +16 -0
- package/dist/cjs/components/ui/theme/appearance/strongBorderClassMapper.cjs.map +1 -0
- package/dist/cjs/components/ui/theme/common/layoutClassMappers.cjs +7 -1
- package/dist/cjs/components/ui/theme/common/layoutClassMappers.cjs.map +1 -1
- package/dist/cjs/components/ui/theme/defaults.cjs +27 -5
- package/dist/cjs/components/ui/theme/defaults.cjs.map +1 -1
- package/dist/cjs/components/ui/theme/index.cjs +2 -2
- package/dist/cjs/components/ui/theme/layout/dividedClassMapper.cjs +16 -0
- package/dist/cjs/components/ui/theme/layout/dividedClassMapper.cjs.map +1 -0
- package/dist/cjs/components/ui/theme/layout/indicatorClassMapper.cjs +17 -0
- package/dist/cjs/components/ui/theme/layout/indicatorClassMapper.cjs.map +1 -0
- package/dist/cjs/components/ui/theme/size/gapClassMapper.cjs +1 -1
- package/dist/cjs/components/ui/theme/size/gapClassMapper.cjs.map +1 -1
- package/dist/cjs/components/ui/typography/index.cjs +1 -0
- package/dist/cjs/components/ui/typography/index.cjs.map +1 -1
- package/dist/cjs/index.cjs +31 -20
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/components/defaultTheme.mjs +6 -0
- package/dist/esm/components/defaultTheme.mjs.map +1 -1
- package/dist/esm/components/ui/button/defaultButtonSpinnerTheme.mjs +0 -1
- package/dist/esm/components/ui/button/defaultButtonSpinnerTheme.mjs.map +1 -1
- package/dist/esm/components/ui/card/CardCategories.mjs +4 -1
- package/dist/esm/components/ui/card/CardCategories.mjs.map +1 -1
- package/dist/esm/components/ui/checkbox/defaultCheckboxCheckTheme.mjs +0 -1
- package/dist/esm/components/ui/checkbox/defaultCheckboxCheckTheme.mjs.map +1 -1
- package/dist/esm/components/ui/checkbox/defaultCheckboxIndeterminateTheme.mjs +0 -1
- package/dist/esm/components/ui/checkbox/defaultCheckboxIndeterminateTheme.mjs.map +1 -1
- package/dist/esm/components/ui/checkbox/defaultCheckboxTheme.mjs +0 -1
- package/dist/esm/components/ui/checkbox/defaultCheckboxTheme.mjs.map +1 -1
- package/dist/esm/components/ui/checkbox/defaultCheckboxWrapperTheme.mjs +0 -1
- package/dist/esm/components/ui/checkbox/defaultCheckboxWrapperTheme.mjs.map +1 -1
- package/dist/esm/components/ui/col/ColCategories.mjs +4 -1
- package/dist/esm/components/ui/col/ColCategories.mjs.map +1 -1
- package/dist/esm/components/ui/divider/defaultDividerTheme.mjs +0 -1
- package/dist/esm/components/ui/divider/defaultDividerTheme.mjs.map +1 -1
- package/dist/esm/components/ui/grid/gridSubThemes.mjs +10 -2
- package/dist/esm/components/ui/grid/gridSubThemes.mjs.map +1 -1
- package/dist/esm/components/ui/img/ImgCategories.mjs +1 -1
- package/dist/esm/components/ui/img/ImgCategories.mjs.map +1 -1
- package/dist/esm/components/ui/img/defaultImgTheme.mjs +3 -1
- package/dist/esm/components/ui/img/defaultImgTheme.mjs.map +1 -1
- package/dist/esm/components/ui/input/defaultInputErrorIconTheme.mjs +0 -1
- package/dist/esm/components/ui/input/defaultInputErrorIconTheme.mjs.map +1 -1
- package/dist/esm/components/ui/input/defaultInputTheme.mjs +0 -1
- package/dist/esm/components/ui/input/defaultInputTheme.mjs.map +1 -1
- package/dist/esm/components/ui/label/defaultLabelTheme.mjs +0 -1
- package/dist/esm/components/ui/label/defaultLabelTheme.mjs.map +1 -1
- package/dist/esm/components/ui/navLink/NavLinkCategories.mjs +2 -2
- package/dist/esm/components/ui/navLink/NavLinkCategories.mjs.map +1 -1
- package/dist/esm/components/ui/navLink/defaultNavLinkTheme.mjs +5 -0
- package/dist/esm/components/ui/navLink/defaultNavLinkTheme.mjs.map +1 -1
- package/dist/esm/components/ui/progress/Progress.mjs +46 -0
- package/dist/esm/components/ui/progress/Progress.mjs.map +1 -0
- package/dist/esm/components/ui/progress/ProgressCategories.mjs +4 -0
- package/dist/esm/components/ui/progress/ProgressCategories.mjs.map +1 -0
- package/dist/esm/components/ui/progress/ProgressFillCategories.mjs +4 -0
- package/dist/esm/components/ui/progress/ProgressFillCategories.mjs.map +1 -0
- package/dist/esm/components/ui/progress/defaultProgressFillTheme.mjs +38 -0
- package/dist/esm/components/ui/progress/defaultProgressFillTheme.mjs.map +1 -0
- package/dist/esm/components/ui/progress/defaultProgressTheme.mjs +43 -0
- package/dist/esm/components/ui/progress/defaultProgressTheme.mjs.map +1 -0
- package/dist/esm/components/ui/progress/index.mjs +8 -0
- package/dist/esm/components/ui/progress/index.mjs.map +1 -0
- package/dist/esm/components/ui/progress/progressDefaults.mjs +13 -0
- package/dist/esm/components/ui/progress/progressDefaults.mjs.map +1 -0
- package/dist/esm/components/ui/progress/progressFillDefaults.mjs +11 -0
- package/dist/esm/components/ui/progress/progressFillDefaults.mjs.map +1 -0
- package/dist/esm/components/ui/props/categoryBuilders.mjs +15 -4
- package/dist/esm/components/ui/props/categoryBuilders.mjs.map +1 -1
- package/dist/esm/components/ui/props/index.mjs +2 -1
- package/dist/esm/components/ui/props/index.mjs.map +1 -1
- package/dist/esm/components/ui/props/keys.mjs +18 -6
- package/dist/esm/components/ui/props/keys.mjs.map +1 -1
- package/dist/esm/components/ui/props/propDescriptions.mjs +46 -1
- package/dist/esm/components/ui/props/propDescriptions.mjs.map +1 -1
- package/dist/esm/components/ui/radio/defaultRadioDotTheme.mjs +0 -1
- package/dist/esm/components/ui/radio/defaultRadioDotTheme.mjs.map +1 -1
- package/dist/esm/components/ui/radio/defaultRadioTheme.mjs +0 -1
- package/dist/esm/components/ui/radio/defaultRadioTheme.mjs.map +1 -1
- package/dist/esm/components/ui/radio/defaultRadioWrapperTheme.mjs +0 -1
- package/dist/esm/components/ui/radio/defaultRadioWrapperTheme.mjs.map +1 -1
- package/dist/esm/components/ui/section/SectionCategories.mjs +2 -2
- package/dist/esm/components/ui/section/SectionCategories.mjs.map +1 -1
- package/dist/esm/components/ui/select/defaultSelectChevronTheme.mjs +0 -1
- package/dist/esm/components/ui/select/defaultSelectChevronTheme.mjs.map +1 -1
- package/dist/esm/components/ui/select/defaultSelectTheme.mjs +0 -1
- package/dist/esm/components/ui/select/defaultSelectTheme.mjs.map +1 -1
- package/dist/esm/components/ui/select/defaultSelectWrapperTheme.mjs +0 -1
- package/dist/esm/components/ui/select/defaultSelectWrapperTheme.mjs.map +1 -1
- package/dist/esm/components/ui/spinner/defaultSpinnerTheme.mjs +0 -1
- package/dist/esm/components/ui/spinner/defaultSpinnerTheme.mjs.map +1 -1
- package/dist/esm/components/ui/switch/defaultSwitchTheme.mjs +0 -1
- package/dist/esm/components/ui/switch/defaultSwitchTheme.mjs.map +1 -1
- package/dist/esm/components/ui/switch/defaultSwitchThumbTheme.mjs +0 -1
- package/dist/esm/components/ui/switch/defaultSwitchThumbTheme.mjs.map +1 -1
- package/dist/esm/components/ui/switch/defaultSwitchWrapperTheme.mjs +0 -1
- package/dist/esm/components/ui/switch/defaultSwitchWrapperTheme.mjs.map +1 -1
- package/dist/esm/components/ui/textarea/defaultTextareaTheme.mjs +0 -1
- package/dist/esm/components/ui/textarea/defaultTextareaTheme.mjs.map +1 -1
- package/dist/esm/components/ui/theme/appearance/shadowAppearanceClassMapper.mjs +13 -7
- package/dist/esm/components/ui/theme/appearance/shadowAppearanceClassMapper.mjs.map +1 -1
- package/dist/esm/components/ui/theme/appearance/strongBorderClassMapper.mjs +14 -0
- package/dist/esm/components/ui/theme/appearance/strongBorderClassMapper.mjs.map +1 -0
- package/dist/esm/components/ui/theme/common/layoutClassMappers.mjs +7 -1
- package/dist/esm/components/ui/theme/common/layoutClassMappers.mjs.map +1 -1
- package/dist/esm/components/ui/theme/defaults.mjs +27 -5
- package/dist/esm/components/ui/theme/defaults.mjs.map +1 -1
- package/dist/esm/components/ui/theme/index.mjs +1 -1
- package/dist/esm/components/ui/theme/layout/dividedClassMapper.mjs +14 -0
- package/dist/esm/components/ui/theme/layout/dividedClassMapper.mjs.map +1 -0
- package/dist/esm/components/ui/theme/layout/indicatorClassMapper.mjs +15 -0
- package/dist/esm/components/ui/theme/layout/indicatorClassMapper.mjs.map +1 -0
- package/dist/esm/components/ui/theme/size/gapClassMapper.mjs +1 -1
- package/dist/esm/components/ui/theme/size/gapClassMapper.mjs.map +1 -1
- package/dist/esm/components/ui/typography/index.mjs +1 -0
- package/dist/esm/components/ui/typography/index.mjs.map +1 -1
- package/dist/esm/index.mjs +20 -10
- package/dist/esm/index.mjs.map +1 -1
- package/dist/tokens.css +112 -96
- package/dist/types/components/themeTypes.d.cts +8 -0
- package/dist/types/components/themeTypes.d.mts +8 -0
- package/dist/types/components/themeTypes.d.ts +8 -0
- package/dist/types/components/ui/card/Card.d.cts +1 -1
- package/dist/types/components/ui/card/Card.d.mts +1 -1
- package/dist/types/components/ui/card/Card.d.ts +1 -1
- package/dist/types/components/ui/card/CardCategories.d.cts +1 -1
- package/dist/types/components/ui/card/CardCategories.d.mts +1 -1
- package/dist/types/components/ui/card/CardCategories.d.ts +1 -1
- package/dist/types/components/ui/card/CardProps.d.cts +2 -2
- package/dist/types/components/ui/card/CardProps.d.mts +2 -2
- package/dist/types/components/ui/card/CardProps.d.ts +2 -2
- package/dist/types/components/ui/col/Col.d.cts +1 -1
- package/dist/types/components/ui/col/Col.d.mts +1 -1
- package/dist/types/components/ui/col/Col.d.ts +1 -1
- package/dist/types/components/ui/col/ColCategories.d.cts +1 -1
- package/dist/types/components/ui/col/ColCategories.d.mts +1 -1
- package/dist/types/components/ui/col/ColCategories.d.ts +1 -1
- package/dist/types/components/ui/col/ColProps.d.cts +2 -2
- package/dist/types/components/ui/col/ColProps.d.mts +2 -2
- package/dist/types/components/ui/col/ColProps.d.ts +2 -2
- package/dist/types/components/ui/container/Container.d.cts +1 -1
- package/dist/types/components/ui/container/Container.d.mts +1 -1
- package/dist/types/components/ui/container/Container.d.ts +1 -1
- package/dist/types/components/ui/container/ContainerProps.d.cts +2 -2
- package/dist/types/components/ui/container/ContainerProps.d.mts +2 -2
- package/dist/types/components/ui/container/ContainerProps.d.ts +2 -2
- package/dist/types/components/ui/field/Field.d.cts +14 -0
- package/dist/types/components/ui/field/Field.d.mts +14 -0
- package/dist/types/components/ui/field/Field.d.ts +14 -0
- package/dist/types/components/ui/grid/Grid2.d.cts +1 -1
- package/dist/types/components/ui/grid/Grid2.d.mts +1 -1
- package/dist/types/components/ui/grid/Grid2.d.ts +1 -1
- package/dist/types/components/ui/grid/Grid3.d.cts +1 -1
- package/dist/types/components/ui/grid/Grid3.d.mts +1 -1
- package/dist/types/components/ui/grid/Grid3.d.ts +1 -1
- package/dist/types/components/ui/grid/Grid4.d.cts +1 -1
- package/dist/types/components/ui/grid/Grid4.d.mts +1 -1
- package/dist/types/components/ui/grid/Grid4.d.ts +1 -1
- package/dist/types/components/ui/grid/Grid5.d.cts +1 -1
- package/dist/types/components/ui/grid/Grid5.d.mts +1 -1
- package/dist/types/components/ui/grid/Grid5.d.ts +1 -1
- package/dist/types/components/ui/grid/Grid6.d.cts +1 -1
- package/dist/types/components/ui/grid/Grid6.d.mts +1 -1
- package/dist/types/components/ui/grid/Grid6.d.ts +1 -1
- package/dist/types/components/ui/grid/GridProps.d.cts +2 -2
- package/dist/types/components/ui/grid/GridProps.d.mts +2 -2
- package/dist/types/components/ui/grid/GridProps.d.ts +2 -2
- package/dist/types/components/ui/grid/GridTheme.d.cts +6 -2
- package/dist/types/components/ui/grid/GridTheme.d.mts +6 -2
- package/dist/types/components/ui/grid/GridTheme.d.ts +6 -2
- package/dist/types/components/ui/img/Img.d.cts +1 -1
- package/dist/types/components/ui/img/Img.d.mts +1 -1
- package/dist/types/components/ui/img/Img.d.ts +1 -1
- package/dist/types/components/ui/img/ImgCategories.d.cts +1 -1
- package/dist/types/components/ui/img/ImgCategories.d.mts +1 -1
- package/dist/types/components/ui/img/ImgCategories.d.ts +1 -1
- package/dist/types/components/ui/img/ImgProps.d.cts +2 -2
- package/dist/types/components/ui/img/ImgProps.d.mts +2 -2
- package/dist/types/components/ui/img/ImgProps.d.ts +2 -2
- package/dist/types/components/ui/img/ImgTheme.d.cts +2 -1
- package/dist/types/components/ui/img/ImgTheme.d.mts +2 -1
- package/dist/types/components/ui/img/ImgTheme.d.ts +2 -1
- package/dist/types/components/ui/navLink/NavLink.d.cts +1 -1
- package/dist/types/components/ui/navLink/NavLink.d.mts +1 -1
- package/dist/types/components/ui/navLink/NavLink.d.ts +1 -1
- package/dist/types/components/ui/navLink/NavLinkCategories.d.cts +1 -1
- package/dist/types/components/ui/navLink/NavLinkCategories.d.mts +1 -1
- package/dist/types/components/ui/navLink/NavLinkCategories.d.ts +1 -1
- package/dist/types/components/ui/navLink/NavLinkProps.d.cts +2 -2
- package/dist/types/components/ui/navLink/NavLinkProps.d.mts +2 -2
- package/dist/types/components/ui/navLink/NavLinkProps.d.ts +2 -2
- package/dist/types/components/ui/navLink/NavLinkTheme.d.cts +7 -2
- package/dist/types/components/ui/navLink/NavLinkTheme.d.mts +7 -2
- package/dist/types/components/ui/navLink/NavLinkTheme.d.ts +7 -2
- package/dist/types/components/ui/navLink/defaultNavLinkTheme.d.cts +2 -1
- package/dist/types/components/ui/navLink/defaultNavLinkTheme.d.mts +2 -1
- package/dist/types/components/ui/navLink/defaultNavLinkTheme.d.ts +2 -1
- package/dist/types/components/ui/progress/Progress.d.cts +5 -0
- package/dist/types/components/ui/progress/Progress.d.mts +5 -0
- package/dist/types/components/ui/progress/Progress.d.ts +5 -0
- package/dist/types/components/ui/progress/ProgressCategories.d.cts +1 -0
- package/dist/types/components/ui/progress/ProgressCategories.d.mts +1 -0
- package/dist/types/components/ui/progress/ProgressCategories.d.ts +1 -0
- package/dist/types/components/ui/progress/ProgressFillCategories.d.cts +2 -0
- package/dist/types/components/ui/progress/ProgressFillCategories.d.mts +2 -0
- package/dist/types/components/ui/progress/ProgressFillCategories.d.ts +2 -0
- package/dist/types/components/ui/progress/ProgressFillProps.d.cts +7 -0
- package/dist/types/components/ui/progress/ProgressFillProps.d.mts +7 -0
- package/dist/types/components/ui/progress/ProgressFillProps.d.ts +7 -0
- package/dist/types/components/ui/progress/ProgressFillTheme.d.cts +15 -0
- package/dist/types/components/ui/progress/ProgressFillTheme.d.mts +15 -0
- package/dist/types/components/ui/progress/ProgressFillTheme.d.ts +15 -0
- package/dist/types/components/ui/progress/ProgressProps.d.cts +11 -0
- package/dist/types/components/ui/progress/ProgressProps.d.mts +11 -0
- package/dist/types/components/ui/progress/ProgressProps.d.ts +11 -0
- package/dist/types/components/ui/progress/ProgressTheme.d.cts +20 -0
- package/dist/types/components/ui/progress/ProgressTheme.d.mts +20 -0
- package/dist/types/components/ui/progress/ProgressTheme.d.ts +20 -0
- package/dist/types/components/ui/progress/defaultProgressFillTheme.d.cts +4 -0
- package/dist/types/components/ui/progress/defaultProgressFillTheme.d.mts +4 -0
- package/dist/types/components/ui/progress/defaultProgressFillTheme.d.ts +4 -0
- package/dist/types/components/ui/progress/defaultProgressTheme.d.cts +4 -0
- package/dist/types/components/ui/progress/defaultProgressTheme.d.mts +4 -0
- package/dist/types/components/ui/progress/defaultProgressTheme.d.ts +4 -0
- package/dist/types/components/ui/progress/index.d.cts +11 -0
- package/dist/types/components/ui/progress/index.d.mts +11 -0
- package/dist/types/components/ui/progress/index.d.ts +11 -0
- package/dist/types/components/ui/progress/progressDefaults.d.cts +3 -0
- package/dist/types/components/ui/progress/progressDefaults.d.mts +3 -0
- package/dist/types/components/ui/progress/progressDefaults.d.ts +3 -0
- package/dist/types/components/ui/progress/progressFillDefaults.d.cts +3 -0
- package/dist/types/components/ui/progress/progressFillDefaults.d.mts +3 -0
- package/dist/types/components/ui/progress/progressFillDefaults.d.ts +3 -0
- package/dist/types/components/ui/props/categoryBuilders.d.cts +11 -7
- package/dist/types/components/ui/props/categoryBuilders.d.mts +11 -7
- package/dist/types/components/ui/props/categoryBuilders.d.ts +11 -7
- package/dist/types/components/ui/props/dividedProps.d.cts +7 -0
- package/dist/types/components/ui/props/dividedProps.d.mts +7 -0
- package/dist/types/components/ui/props/dividedProps.d.ts +7 -0
- package/dist/types/components/ui/props/indicatorProps.d.cts +9 -0
- package/dist/types/components/ui/props/indicatorProps.d.mts +9 -0
- package/dist/types/components/ui/props/indicatorProps.d.ts +9 -0
- package/dist/types/components/ui/props/keys.d.cts +22 -6
- package/dist/types/components/ui/props/keys.d.mts +22 -6
- package/dist/types/components/ui/props/keys.d.ts +22 -6
- package/dist/types/components/ui/props/props.d.cts +3 -0
- package/dist/types/components/ui/props/props.d.mts +3 -0
- package/dist/types/components/ui/props/props.d.ts +3 -0
- package/dist/types/components/ui/props/shadowProps.d.cts +11 -1
- package/dist/types/components/ui/props/shadowProps.d.mts +11 -1
- package/dist/types/components/ui/props/shadowProps.d.ts +11 -1
- package/dist/types/components/ui/props/strongBorderProps.d.cts +7 -0
- package/dist/types/components/ui/props/strongBorderProps.d.mts +7 -0
- package/dist/types/components/ui/props/strongBorderProps.d.ts +7 -0
- package/dist/types/components/ui/radio/RadioCategories.d.cts +1 -1
- package/dist/types/components/ui/radio/RadioCategories.d.mts +1 -1
- package/dist/types/components/ui/radio/RadioCategories.d.ts +1 -1
- package/dist/types/components/ui/row/Row.d.cts +1 -1
- package/dist/types/components/ui/row/Row.d.mts +1 -1
- package/dist/types/components/ui/row/Row.d.ts +1 -1
- package/dist/types/components/ui/row/RowProps.d.cts +2 -2
- package/dist/types/components/ui/row/RowProps.d.mts +2 -2
- package/dist/types/components/ui/row/RowProps.d.ts +2 -2
- package/dist/types/components/ui/section/Section.d.cts +1 -1
- package/dist/types/components/ui/section/Section.d.mts +1 -1
- package/dist/types/components/ui/section/Section.d.ts +1 -1
- package/dist/types/components/ui/section/SectionCategories.d.cts +1 -1
- package/dist/types/components/ui/section/SectionCategories.d.mts +1 -1
- package/dist/types/components/ui/section/SectionCategories.d.ts +1 -1
- package/dist/types/components/ui/section/SectionProps.d.cts +2 -2
- package/dist/types/components/ui/section/SectionProps.d.mts +2 -2
- package/dist/types/components/ui/section/SectionProps.d.ts +2 -2
- package/dist/types/components/ui/stack/Stack.d.cts +1 -1
- package/dist/types/components/ui/stack/Stack.d.mts +1 -1
- package/dist/types/components/ui/stack/Stack.d.ts +1 -1
- package/dist/types/components/ui/stack/StackProps.d.cts +2 -2
- package/dist/types/components/ui/stack/StackProps.d.mts +2 -2
- package/dist/types/components/ui/stack/StackProps.d.ts +2 -2
- package/dist/types/components/ui/theme/appearance/index.d.cts +1 -0
- package/dist/types/components/ui/theme/appearance/index.d.mts +1 -0
- package/dist/types/components/ui/theme/appearance/index.d.ts +1 -0
- package/dist/types/components/ui/theme/appearance/shadowAppearanceClassMapper.d.cts +8 -3
- package/dist/types/components/ui/theme/appearance/shadowAppearanceClassMapper.d.mts +8 -3
- package/dist/types/components/ui/theme/appearance/shadowAppearanceClassMapper.d.ts +8 -3
- package/dist/types/components/ui/theme/appearance/strongBorderClassMapper.d.cts +7 -0
- package/dist/types/components/ui/theme/appearance/strongBorderClassMapper.d.mts +7 -0
- package/dist/types/components/ui/theme/appearance/strongBorderClassMapper.d.ts +7 -0
- package/dist/types/components/ui/theme/common/layoutClassMappers.d.cts +6 -0
- package/dist/types/components/ui/theme/common/layoutClassMappers.d.mts +6 -0
- package/dist/types/components/ui/theme/common/layoutClassMappers.d.ts +6 -0
- package/dist/types/components/ui/theme/common/sharedThemeTypes.d.cts +5 -0
- package/dist/types/components/ui/theme/common/sharedThemeTypes.d.mts +5 -0
- package/dist/types/components/ui/theme/common/sharedThemeTypes.d.ts +5 -0
- package/dist/types/components/ui/theme/layout/dividedClassMapper.d.cts +7 -0
- package/dist/types/components/ui/theme/layout/dividedClassMapper.d.mts +7 -0
- package/dist/types/components/ui/theme/layout/dividedClassMapper.d.ts +7 -0
- package/dist/types/components/ui/theme/layout/index.d.cts +2 -0
- package/dist/types/components/ui/theme/layout/index.d.mts +2 -0
- package/dist/types/components/ui/theme/layout/index.d.ts +2 -0
- package/dist/types/components/ui/theme/layout/indicatorClassMapper.d.cts +8 -0
- package/dist/types/components/ui/theme/layout/indicatorClassMapper.d.mts +8 -0
- package/dist/types/components/ui/theme/layout/indicatorClassMapper.d.ts +8 -0
- package/dist/types/index.d.cts +1 -0
- package/dist/types/index.d.mts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/ui.css +1 -1
- package/dist/vars.css +1 -1
- package/package.json +10 -3
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { ThemedComponent } from '../../themedComponent.mjs';
|
|
5
|
+
import { useTheme } from '../../themeContext.mjs';
|
|
6
|
+
import { pickFirstTruthyKeyByCategory } from '../../utils/componentUtils.mjs';
|
|
7
|
+
import { defaultProgressTheme } from './defaultProgressTheme.mjs';
|
|
8
|
+
import { defaultProgressFillTheme } from './defaultProgressFillTheme.mjs';
|
|
9
|
+
import { progressDefaults } from './progressDefaults.mjs';
|
|
10
|
+
|
|
11
|
+
const FILL_CATEGORIES = ["appearance", "shape", "transition"];
|
|
12
|
+
const Progress = forwardRef(
|
|
13
|
+
function Progress2({ value, max = 100, style, ...props }, ref) {
|
|
14
|
+
const theme = useTheme();
|
|
15
|
+
const trackTheme = theme?.progress.main ?? defaultProgressTheme;
|
|
16
|
+
const fillTheme = theme?.progress.fill ?? defaultProgressFillTheme;
|
|
17
|
+
const range = Number.isFinite(max) && max > 0 ? max : 0;
|
|
18
|
+
const current = Math.min(Math.max(Number.isFinite(value) ? value : 0, 0), range);
|
|
19
|
+
const ratio = range > 0 ? current / range : 0;
|
|
20
|
+
const raw = props;
|
|
21
|
+
const fillProps = {};
|
|
22
|
+
for (const category of FILL_CATEGORIES) {
|
|
23
|
+
const key = pickFirstTruthyKeyByCategory(raw, trackTheme.defaults, category);
|
|
24
|
+
const explicit = pickFirstTruthyKeyByCategory(raw, {}, category);
|
|
25
|
+
const libraryKey = pickFirstTruthyKeyByCategory({}, progressDefaults, category);
|
|
26
|
+
if (key && (explicit || key !== libraryKey)) fillProps[key] = true;
|
|
27
|
+
}
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
ThemedComponent,
|
|
30
|
+
{
|
|
31
|
+
ref,
|
|
32
|
+
theme: trackTheme,
|
|
33
|
+
role: "progressbar",
|
|
34
|
+
"aria-valuemin": 0,
|
|
35
|
+
"aria-valuemax": range,
|
|
36
|
+
"aria-valuenow": current,
|
|
37
|
+
...{ ...props, style: { ...style, "--progress": ratio } },
|
|
38
|
+
children: /* @__PURE__ */ jsx(ThemedComponent, { theme: fillTheme, "aria-hidden": "true", ...fillProps })
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
Progress.displayName = "Progress";
|
|
44
|
+
|
|
45
|
+
export { Progress };
|
|
46
|
+
//# sourceMappingURL=Progress.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.mjs","sources":["../../../../../src/components/ui/progress/Progress.tsx"],"sourcesContent":["import { forwardRef, type CSSProperties } from 'react';\nimport type { ProgressProps } from \"./ProgressProps\";\nimport { ThemedComponent } from \"../../themedComponent\";\nimport { useTheme } from \"../../themeContext\";\nimport { pickFirstTruthyKeyByCategory } from \"../../utils/componentUtils\";\nimport { defaultProgressTheme } from \"./defaultProgressTheme\";\nimport { defaultProgressFillTheme } from \"./defaultProgressFillTheme\";\nimport { progressDefaults } from \"./progressDefaults\";\n\n// the fill follows the track's appearance, shape and transition; it is passed only what differs from the library default,\n// so a progress.fill theme default still applies\nconst FILL_CATEGORIES = ['appearance', 'shape', 'transition'] as const;\n\nexport const Progress = forwardRef<HTMLDivElement, ProgressProps>(\n function Progress({ value, max = 100, style, ...props }, ref) {\n const theme = useTheme();\n const trackTheme = theme?.progress.main ?? defaultProgressTheme;\n const fillTheme = theme?.progress.fill ?? defaultProgressFillTheme;\n\n const range = Number.isFinite(max) && max > 0 ? max : 0;\n const current = Math.min(Math.max(Number.isFinite(value) ? value : 0, 0), range);\n const ratio = range > 0 ? current / range : 0;\n\n const raw = props as unknown as Record<string, unknown>;\n const fillProps: Record<string, boolean> = {};\n for (const category of FILL_CATEGORIES) {\n const key = pickFirstTruthyKeyByCategory(raw, trackTheme.defaults as unknown as Record<string, unknown>, category);\n const explicit = pickFirstTruthyKeyByCategory(raw, {}, category);\n const libraryKey = pickFirstTruthyKeyByCategory({}, progressDefaults as unknown as Record<string, unknown>, category);\n if (key && (explicit || key !== libraryKey)) fillProps[key] = true;\n }\n\n return (\n <ThemedComponent\n ref={ref}\n theme={trackTheme}\n role=\"progressbar\"\n aria-valuemin={0}\n aria-valuemax={range}\n aria-valuenow={current}\n {...{ ...props, style: { ...style, '--progress': ratio } as CSSProperties }}\n >\n <ThemedComponent theme={fillTheme} aria-hidden=\"true\" {...fillProps} />\n </ThemedComponent>\n );\n }\n);\n\nProgress.displayName = 'Progress';\n"],"names":["Progress"],"mappings":";;;;;;;;;;AAWA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAkB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,YAAY,CAAA;AAErD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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CAAA,GAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,MAAA,CAAA,CAAQ,CAAA,CAAA,CAAG,SAAA,CAAA,CAAW;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CACvE;AAAA,CAAA,CAEJ;AACF,CAAA;AAEA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressCategories.mjs","sources":["../../../../../src/components/ui/progress/ProgressCategories.ts"],"sourcesContent":["export const PROGRESS_CATEGORIES = ['size', 'appearance', 'shape', 'transition', 'overflow', 'width', 'flex', 'hide', 'margin'] as const;\n"],"names":[],"mappings":"AAAO,MAAM,mBAAA,GAAsB,CAAC,MAAA,EAAQ,YAAA,EAAc,OAAA,EAAS,cAAc,UAAA,EAAY,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,QAAQ;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressFillCategories.mjs","sources":["../../../../../src/components/ui/progress/ProgressFillCategories.ts"],"sourcesContent":["/** Categories for the Progress fill sub-theme: the bar that grows with the value */\nexport const PROGRESS_FILL_CATEGORIES = ['appearance', 'variant', 'shape', 'transition', 'width', 'height'] as const;\n"],"names":[],"mappings":"AACO,MAAM,2BAA2B,CAAC,YAAA,EAAc,WAAW,OAAA,EAAS,YAAA,EAAc,SAAS,QAAQ;;;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComponentTheme, defaultLayoutClassMappers } from '../theme/common/ComponentTheme.mjs';
|
|
2
|
+
import '../theme/common/interactiveClassMappers.mjs';
|
|
3
|
+
import '../theme/common/layoutClassMappers.mjs';
|
|
4
|
+
import '../theme/common/typographyClassMappers.mjs';
|
|
5
|
+
import '../theme/common/appearanceClassMappers.mjs';
|
|
6
|
+
import { SimpleConsumerClassMapper } from '../theme/appearance/simpleConsumerClassMapper.mjs';
|
|
7
|
+
import { HeightClassMapper } from '../theme/layout/heightClassMapper.mjs';
|
|
8
|
+
import { RadiusClassMapper } from '../theme/layout/radiusClassMapper.mjs';
|
|
9
|
+
import { TransitionClassMapper } from '../theme/layout/transitionClassMapper.mjs';
|
|
10
|
+
import { WidthClassMapper } from '../theme/layout/widthClassMapper.mjs';
|
|
11
|
+
import { bgConsumerClasses } from '../classes/appearanceClasses.mjs';
|
|
12
|
+
import { PROGRESS_FILL_CATEGORIES } from './ProgressFillCategories.mjs';
|
|
13
|
+
import { progressFillDefaults } from './progressFillDefaults.mjs';
|
|
14
|
+
|
|
15
|
+
const slideClasses = "-translate-x-[calc(100%_-_var(--progress,0)_*_100%)] rtl:translate-x-[calc(100%_-_var(--progress,0)_*_100%)]";
|
|
16
|
+
const defaultProgressFillTheme = new ComponentTheme(
|
|
17
|
+
"div",
|
|
18
|
+
`vane-progress-fill ${slideClasses}`,
|
|
19
|
+
{
|
|
20
|
+
appearance: {
|
|
21
|
+
background: new SimpleConsumerClassMapper({ base: bgConsumerClasses.base, alwaysOutput: true }, "bg")
|
|
22
|
+
},
|
|
23
|
+
layout: {
|
|
24
|
+
...defaultLayoutClassMappers,
|
|
25
|
+
width: new WidthClassMapper(),
|
|
26
|
+
height: new HeightClassMapper(),
|
|
27
|
+
radius: new RadiusClassMapper(),
|
|
28
|
+
transition: new TransitionClassMapper()
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
progressFillDefaults,
|
|
32
|
+
PROGRESS_FILL_CATEGORIES,
|
|
33
|
+
void 0,
|
|
34
|
+
"ui"
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
export { defaultProgressFillTheme };
|
|
38
|
+
//# sourceMappingURL=defaultProgressFillTheme.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultProgressFillTheme.mjs","sources":["../../../../../src/components/ui/progress/defaultProgressFillTheme.ts"],"sourcesContent":["import { ComponentTheme, defaultLayoutClassMappers } from \"../theme/common\";\nimport type { ProgressFillProps } from \"./ProgressFillProps\";\nimport type { ProgressFillTheme } from \"./ProgressFillTheme\";\nimport { SimpleConsumerClassMapper } from \"../theme/appearance\";\nimport { HeightClassMapper, RadiusClassMapper, TransitionClassMapper, WidthClassMapper } from \"../theme/layout\";\nimport { bgConsumerClasses } from \"../classes/appearanceClasses\";\nimport { PROGRESS_FILL_CATEGORIES } from \"./ProgressFillCategories\";\nimport { progressFillDefaults } from \"./progressFillDefaults\";\n\n// a full-width bar slid back by the unfilled share (--progress is the 0..1 ratio set on the track), from the end in RTL\nconst slideClasses = \"-translate-x-[calc(100%_-_var(--progress,0)_*_100%)] rtl:translate-x-[calc(100%_-_var(--progress,0)_*_100%)]\";\n\nexport const defaultProgressFillTheme = new ComponentTheme<ProgressFillProps, ProgressFillTheme>(\n \"div\",\n `vane-progress-fill ${slideClasses}`,\n {\n appearance: {\n background: new SimpleConsumerClassMapper({ base: bgConsumerClasses.base, alwaysOutput: true }, 'bg'),\n },\n layout: {\n ...defaultLayoutClassMappers,\n width: new WidthClassMapper(),\n height: new HeightClassMapper(),\n radius: new RadiusClassMapper(),\n transition: new TransitionClassMapper(),\n },\n },\n progressFillDefaults,\n PROGRESS_FILL_CATEGORIES,\n undefined,\n 'ui'\n);\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,YAAA,GAAe,8GAAA;AAEd,MAAM,2BAA2B,IAAI,cAAA;AAAA,EAC1C,KAAA;AAAA,EACA,sBAAsB,YAAY,CAAA,CAAA;AAAA,EAClC;AAAA,IACE,UAAA,EAAY;AAAA,MACV,UAAA,EAAY,IAAI,yBAAA,CAA0B,EAAE,IAAA,EAAM,kBAAkB,IAAA,EAAM,YAAA,EAAc,IAAA,EAAK,EAAG,IAAI;AAAA,KACtG;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,GAAG,yBAAA;AAAA,MACH,KAAA,EAAO,IAAI,gBAAA,EAAiB;AAAA,MAC5B,MAAA,EAAQ,IAAI,iBAAA,EAAkB;AAAA,MAC9B,MAAA,EAAQ,IAAI,iBAAA,EAAkB;AAAA,MAC9B,UAAA,EAAY,IAAI,qBAAA;AAAsB;AACxC,GACF;AAAA,EACA,oBAAA;AAAA,EACA,wBAAA;AAAA,EACA,MAAA;AAAA,EACA;AACF;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ComponentTheme, defaultLayoutClassMappers } from '../theme/common/ComponentTheme.mjs';
|
|
2
|
+
import '../theme/common/interactiveClassMappers.mjs';
|
|
3
|
+
import '../theme/common/layoutClassMappers.mjs';
|
|
4
|
+
import '../theme/common/typographyClassMappers.mjs';
|
|
5
|
+
import '../theme/common/appearanceClassMappers.mjs';
|
|
6
|
+
import { SimpleConsumerClassMapper } from '../theme/appearance/simpleConsumerClassMapper.mjs';
|
|
7
|
+
import { OverflowClassMapper } from '../theme/layout/overflowClassMapper.mjs';
|
|
8
|
+
import { RadiusClassMapper } from '../theme/layout/radiusClassMapper.mjs';
|
|
9
|
+
import { TransitionClassMapper } from '../theme/layout/transitionClassMapper.mjs';
|
|
10
|
+
import { WidthClassMapper } from '../theme/layout/widthClassMapper.mjs';
|
|
11
|
+
import { FlexClassMapper } from '../theme/layout/flexClassMapper.mjs';
|
|
12
|
+
import { MarginClassMapper } from '../theme/size/marginClassMapper.mjs';
|
|
13
|
+
import { PROGRESS_CATEGORIES } from './ProgressCategories.mjs';
|
|
14
|
+
import { progressDefaults } from './progressDefaults.mjs';
|
|
15
|
+
|
|
16
|
+
const defaultProgressTheme = new ComponentTheme(
|
|
17
|
+
"div",
|
|
18
|
+
"vane-progress h-(--size)",
|
|
19
|
+
{
|
|
20
|
+
size: {
|
|
21
|
+
margin: new MarginClassMapper()
|
|
22
|
+
},
|
|
23
|
+
appearance: {
|
|
24
|
+
// a neutral track whatever the appearance; the fill carries the color
|
|
25
|
+
background: new SimpleConsumerClassMapper({ base: "bg-(--color-border-primary)", alwaysOutput: true }, "bg")
|
|
26
|
+
},
|
|
27
|
+
layout: {
|
|
28
|
+
...defaultLayoutClassMappers,
|
|
29
|
+
width: new WidthClassMapper(),
|
|
30
|
+
flex: new FlexClassMapper(),
|
|
31
|
+
radius: new RadiusClassMapper(),
|
|
32
|
+
overflow: new OverflowClassMapper(),
|
|
33
|
+
transition: new TransitionClassMapper()
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
progressDefaults,
|
|
37
|
+
PROGRESS_CATEGORIES,
|
|
38
|
+
void 0,
|
|
39
|
+
"ui"
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
export { defaultProgressTheme };
|
|
43
|
+
//# sourceMappingURL=defaultProgressTheme.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultProgressTheme.mjs","sources":["../../../../../src/components/ui/progress/defaultProgressTheme.ts"],"sourcesContent":["import { ComponentTheme, defaultLayoutClassMappers } from \"../theme/common\";\nimport type { ProgressProps } from \"./ProgressProps\";\nimport type { ProgressTheme } from \"./ProgressTheme\";\nimport { SimpleConsumerClassMapper } from \"../theme/appearance\";\nimport { FlexClassMapper, OverflowClassMapper, RadiusClassMapper, TransitionClassMapper, WidthClassMapper } from \"../theme/layout\";\nimport { MarginClassMapper } from \"../theme/size\";\nimport { PROGRESS_CATEGORIES } from \"./ProgressCategories\";\nimport { progressDefaults } from \"./progressDefaults\";\n\nexport const defaultProgressTheme = new ComponentTheme<ProgressProps, ProgressTheme>(\n \"div\",\n \"vane-progress h-(--size)\",\n {\n size: {\n margin: new MarginClassMapper(),\n },\n appearance: {\n // a neutral track whatever the appearance; the fill carries the color\n background: new SimpleConsumerClassMapper({ base: 'bg-(--color-border-primary)', alwaysOutput: true }, 'bg'),\n },\n layout: {\n ...defaultLayoutClassMappers,\n width: new WidthClassMapper(),\n flex: new FlexClassMapper(),\n radius: new RadiusClassMapper(),\n overflow: new OverflowClassMapper(),\n transition: new TransitionClassMapper(),\n },\n },\n progressDefaults,\n PROGRESS_CATEGORIES,\n undefined,\n 'ui'\n);\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AASO,MAAM,uBAAuB,IAAI,cAAA;AAAA,EACtC,KAAA;AAAA,EACA,0BAAA;AAAA,EACA;AAAA,IACE,IAAA,EAAM;AAAA,MACJ,MAAA,EAAQ,IAAI,iBAAA;AAAkB,KAChC;AAAA,IACA,UAAA,EAAY;AAAA;AAAA,MAEV,UAAA,EAAY,IAAI,yBAAA,CAA0B,EAAE,MAAM,6BAAA,EAA+B,YAAA,EAAc,IAAA,EAAK,EAAG,IAAI;AAAA,KAC7G;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,GAAG,yBAAA;AAAA,MACH,KAAA,EAAO,IAAI,gBAAA,EAAiB;AAAA,MAC5B,IAAA,EAAM,IAAI,eAAA,EAAgB;AAAA,MAC1B,MAAA,EAAQ,IAAI,iBAAA,EAAkB;AAAA,MAC9B,QAAA,EAAU,IAAI,mBAAA,EAAoB;AAAA,MAClC,UAAA,EAAY,IAAI,qBAAA;AAAsB;AACxC,GACF;AAAA,EACA,gBAAA;AAAA,EACA,mBAAA;AAAA,EACA,MAAA;AAAA,EACA;AACF;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Progress } from './Progress.mjs';
|
|
2
|
+
export { PROGRESS_CATEGORIES } from './ProgressCategories.mjs';
|
|
3
|
+
export { PROGRESS_FILL_CATEGORIES } from './ProgressFillCategories.mjs';
|
|
4
|
+
export { progressDefaults } from './progressDefaults.mjs';
|
|
5
|
+
export { progressFillDefaults } from './progressFillDefaults.mjs';
|
|
6
|
+
export { defaultProgressTheme } from './defaultProgressTheme.mjs';
|
|
7
|
+
export { defaultProgressFillTheme } from './defaultProgressFillTheme.mjs';
|
|
8
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const progressDefaults = {
|
|
2
|
+
md: true,
|
|
3
|
+
primary: true,
|
|
4
|
+
pill: true,
|
|
5
|
+
transition: true,
|
|
6
|
+
// the track clips the fill, which slides in from outside it
|
|
7
|
+
overflowHidden: true,
|
|
8
|
+
wFull: true,
|
|
9
|
+
noMargin: true
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { progressDefaults };
|
|
13
|
+
//# sourceMappingURL=progressDefaults.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progressDefaults.mjs","sources":["../../../../../src/components/ui/progress/progressDefaults.ts"],"sourcesContent":["import type { ProgressProps } from \"./ProgressProps\";\n\n/** Default props for Progress component (the track; the fill has its own defaults) */\nexport const progressDefaults: Partial<ProgressProps> = {\n md: true,\n primary: true,\n pill: true,\n transition: true,\n // the track clips the fill, which slides in from outside it\n overflowHidden: true,\n wFull: true,\n noMargin: true,\n};\n"],"names":[],"mappings":"AAGO,MAAM,gBAAA,GAA2C;AAAA,EACtD,EAAA,EAAI,IAAA;AAAA,EACJ,OAAA,EAAS,IAAA;AAAA,EACT,IAAA,EAAM,IAAA;AAAA,EACN,UAAA,EAAY,IAAA;AAAA;AAAA,EAEZ,cAAA,EAAgB,IAAA;AAAA,EAChB,KAAA,EAAO,IAAA;AAAA,EACP,QAAA,EAAU;AACZ;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progressFillDefaults.mjs","sources":["../../../../../src/components/ui/progress/progressFillDefaults.ts"],"sourcesContent":["import type { ProgressFillProps } from \"./ProgressFillProps\";\n\n/** Default props for the Progress fill: a solid bar the size of the track, slid in by the value */\nexport const progressFillDefaults: Partial<ProgressFillProps> = {\n primary: true,\n filled: true,\n pill: true,\n transition: true,\n wFull: true,\n hFull: true,\n};\n"],"names":[],"mappings":"AAGO,MAAM,oBAAA,GAAmD;AAAA,EAC9D,OAAA,EAAS,IAAA;AAAA,EACT,MAAA,EAAQ,IAAA;AAAA,EACR,IAAA,EAAM,IAAA;AAAA,EACN,UAAA,EAAY,IAAA;AAAA,EACZ,KAAA,EAAO,IAAA;AAAA,EACP,KAAA,EAAO;AACT;;;;"}
|
|
@@ -40,6 +40,10 @@ const INHERIT_COLOR = ["inheritColor"];
|
|
|
40
40
|
const INHERIT_BG = ["inheritBg"];
|
|
41
41
|
const INHERIT_BORDER = ["inheritBorder"];
|
|
42
42
|
const CONTROL = ["control"];
|
|
43
|
+
const POINTER_EVENTS = ["pointerEvents"];
|
|
44
|
+
const DIVIDED = ["divided"];
|
|
45
|
+
const STRONG_BORDER = ["strongBorder"];
|
|
46
|
+
const INDICATOR = ["indicator"];
|
|
43
47
|
const LAYOUT_FULL = [...LAYOUT_CORE, ...LAYOUT_FLEX];
|
|
44
48
|
const VISUAL_FULL = [...VISUAL_CORE, ...BORDER, ...VISUAL_DECORATION, ...SHAPE];
|
|
45
49
|
const VISUAL_LAYOUT = [...VISUAL_CORE, ...BORDER, ...VISUAL_DECORATION_LAYOUT, ...SHAPE];
|
|
@@ -85,20 +89,24 @@ const ICON_CATEGORIES = [
|
|
|
85
89
|
"transition",
|
|
86
90
|
"transparent"
|
|
87
91
|
];
|
|
88
|
-
const
|
|
92
|
+
const LAYOUT_BOX_CATEGORIES = [
|
|
89
93
|
...LAYOUT_FULL,
|
|
90
94
|
...PADDING,
|
|
91
95
|
...MARGIN,
|
|
92
96
|
...VISUAL_CORE,
|
|
93
97
|
...BORDER,
|
|
98
|
+
...STRONG_BORDER,
|
|
94
99
|
...SHAPE,
|
|
95
100
|
...VARIANT,
|
|
96
101
|
...WIDTH,
|
|
97
102
|
...HEIGHT,
|
|
98
|
-
...COMMON_MODIFIERS
|
|
103
|
+
...COMMON_MODIFIERS,
|
|
104
|
+
...POINTER_EVENTS,
|
|
105
|
+
...WHITESPACE
|
|
99
106
|
];
|
|
107
|
+
const GRID_CATEGORIES = [...LAYOUT_BOX_CATEGORIES, ...DIVIDED];
|
|
100
108
|
const CONTAINER_CATEGORIES = [
|
|
101
|
-
...
|
|
109
|
+
...LAYOUT_BOX_CATEGORIES,
|
|
102
110
|
...BREAKPOINT,
|
|
103
111
|
...VISUAL_DECORATION_LAYOUT,
|
|
104
112
|
...TEXT_ALIGN
|
|
@@ -109,15 +117,18 @@ const RESPONSIVE_LAYOUT_CATEGORIES = [
|
|
|
109
117
|
...PADDING,
|
|
110
118
|
...MARGIN,
|
|
111
119
|
...VISUAL_LAYOUT,
|
|
120
|
+
...STRONG_BORDER,
|
|
112
121
|
...VARIANT,
|
|
113
122
|
...WIDTH,
|
|
114
123
|
...HEIGHT,
|
|
115
124
|
...COMMON_MODIFIERS,
|
|
116
125
|
...TEXT_ALIGN,
|
|
126
|
+
...POINTER_EVENTS,
|
|
127
|
+
...WHITESPACE,
|
|
117
128
|
"focusVisible"
|
|
118
129
|
];
|
|
119
130
|
const STACK_CATEGORIES = RESPONSIVE_LAYOUT_CATEGORIES;
|
|
120
131
|
const ROW_CATEGORIES = RESPONSIVE_LAYOUT_CATEGORIES;
|
|
121
132
|
|
|
122
|
-
export { ALIGN_SELF, BADGE_CATEGORIES, BORDER, BREAKPOINT, BUTTON_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, COMMON_MODIFIERS, CONTAINER_CATEGORIES, CONTROL, CURSOR, DISABLED, FONT_FAMILY, GAP, GRID_CATEGORIES, HEIGHT, ICON_CATEGORIES, INHERIT_BG, INHERIT_BORDER, INHERIT_COLOR, INHERIT_SIZE, JUSTIFY_SELF, LAYOUT_CORE, LAYOUT_FLEX, LAYOUT_FULL, LIST_POSITION, LIST_STYLE, MARGIN, MAX_HEIGHT, MIN_WIDTH, ORIENTATION, PADDING, PLACEMENT, READONLY, RESPONSIVE, RESPONSIVE_LAYOUT_CATEGORIES, ROW_CATEGORIES, SHAPE, STACK_CATEGORIES, STATUS, TEXT_ALIGN, TRANSITION, TRANSPARENT, TRUNCATE, TYPOGRAPHY_FULL, TYPOGRAPHY_STYLE, TYPOGRAPHY_STYLE_CORE, UI_ELEMENT_CATEGORIES, VARIANT, VISUAL_CORE, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, VISUAL_FULL, VISUAL_LAYOUT, WHITESPACE, WIDTH, WORD_BREAK };
|
|
133
|
+
export { ALIGN_SELF, BADGE_CATEGORIES, BORDER, BREAKPOINT, BUTTON_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, COMMON_MODIFIERS, CONTAINER_CATEGORIES, CONTROL, CURSOR, DISABLED, DIVIDED, FONT_FAMILY, GAP, GRID_CATEGORIES, HEIGHT, ICON_CATEGORIES, INDICATOR, INHERIT_BG, INHERIT_BORDER, INHERIT_COLOR, INHERIT_SIZE, JUSTIFY_SELF, LAYOUT_CORE, LAYOUT_FLEX, LAYOUT_FULL, LIST_POSITION, LIST_STYLE, MARGIN, MAX_HEIGHT, MIN_WIDTH, ORIENTATION, PADDING, PLACEMENT, POINTER_EVENTS, READONLY, RESPONSIVE, RESPONSIVE_LAYOUT_CATEGORIES, ROW_CATEGORIES, SHAPE, STACK_CATEGORIES, STATUS, STRONG_BORDER, TEXT_ALIGN, TRANSITION, TRANSPARENT, TRUNCATE, TYPOGRAPHY_FULL, TYPOGRAPHY_STYLE, TYPOGRAPHY_STYLE_CORE, UI_ELEMENT_CATEGORIES, VARIANT, VISUAL_CORE, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, VISUAL_FULL, VISUAL_LAYOUT, WHITESPACE, WIDTH, WORD_BREAK };
|
|
123
134
|
//# sourceMappingURL=categoryBuilders.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categoryBuilders.mjs","sources":["../../../../../src/components/ui/props/categoryBuilders.ts"],"sourcesContent":["// Category building blocks shared by keys.ts and component-specific category files.\n\nexport const LAYOUT_CORE = ['size', 'hide', 'items', 'justify', 'position', 'display', 'overflow'] as const;\nexport const LAYOUT_FLEX = ['wrap', 'gap', 'flexDirection', 'flex', 'shrink'] as const;\n// Per-item cross-axis alignment (align-self). Opt-in per component (not part of\n// LAYOUT_CORE) so a child can override its parent's align-items.\nexport const ALIGN_SELF = ['alignSelf'] as const;\n// Per-item inline-axis alignment within a grid area (justify-self). Opt-in.\nexport const JUSTIFY_SELF = ['justifySelf'] as const;\nexport const PADDING = ['padding'] as const;\nexport const MARGIN = ['margin'] as const;\nexport const BREAKPOINT = ['breakpoint'] as const;\nexport const VISUAL_CORE = ['appearance'] as const;\nexport const BORDER = ['border'] as const;\nexport const VISUAL_DECORATION = ['shadow', 'ring', 'focusVisible'] as const;\n// Excludes focusVisible (not relevant for non-interactive layout elements)\nexport const VISUAL_DECORATION_LAYOUT = ['shadow', 'ring'] as const;\nexport const SHAPE = ['shape'] as const;\nexport const TEXT_ALIGN = ['textAlign'] as const;\nexport const FONT_FAMILY = ['fontFamily'] as const;\nexport const TRUNCATE = ['truncate'] as const;\nexport const TYPOGRAPHY_STYLE_CORE = ['fontWeight', 'fontStyle', 'textDecoration', 'textTransform', 'fontFamily'] as const;\nexport const TYPOGRAPHY_STYLE = [...TYPOGRAPHY_STYLE_CORE, ...TEXT_ALIGN, ...TRUNCATE] as const;\nexport const LIST_STYLE = ['listStyle'] as const;\nexport const LIST_POSITION = ['listPosition'] as const;\nexport const GAP = ['gap'] as const;\nexport const VARIANT = ['variant'] as const;\nexport const TRANSPARENT = ['transparent'] as const;\nexport const RESPONSIVE = ['responsiveSizing'] as const;\nexport const WIDTH = ['width'] as const;\nexport const COMMON_MODIFIERS = [...TRANSPARENT, ...RESPONSIVE] as const;\n\nexport const CURSOR = ['cursor'] as const;\nexport const TRANSITION = ['transition'] as const;\nexport const WHITESPACE = ['whitespace'] as const;\nexport const WORD_BREAK = ['wordBreak'] as const;\nexport const HEIGHT = ['height'] as const;\nexport const STATUS = ['validity'] as const;\nexport const DISABLED = ['disabled'] as const;\nexport const READONLY = ['readOnly'] as const;\nexport const ORIENTATION = ['orientation'] as const;\nexport const PLACEMENT = ['placement'] as const;\nexport const MIN_WIDTH = ['constrainWidth'] as const;\nexport const MAX_HEIGHT = ['clampHeight'] as const;\nexport const INHERIT_SIZE = ['inheritSize'] as const;\nexport const INHERIT_COLOR = ['inheritColor'] as const;\nexport const INHERIT_BG = ['inheritBg'] as const;\nexport const INHERIT_BORDER = ['inheritBorder'] as const;\nexport const CONTROL = ['control'] as const;\n\nexport const LAYOUT_FULL = [...LAYOUT_CORE, ...LAYOUT_FLEX] as const;\nexport const VISUAL_FULL = [...VISUAL_CORE, ...BORDER, ...VISUAL_DECORATION, ...SHAPE] as const;\nexport const VISUAL_LAYOUT = [...VISUAL_CORE, ...BORDER, ...VISUAL_DECORATION_LAYOUT, ...SHAPE] as const;\nexport const TYPOGRAPHY_FULL = [...TYPOGRAPHY_STYLE] as const;\n\n// UI Element Categories (Code, Badge, Chip, Button)\n\nexport const UI_ELEMENT_CATEGORIES = [\n ...LAYOUT_FULL,\n ...VISUAL_FULL,\n ...TYPOGRAPHY_STYLE_CORE,\n ...TEXT_ALIGN,\n ...PADDING,\n ...VARIANT,\n ...CURSOR,\n ...TRANSITION,\n ...WHITESPACE,\n ...WORD_BREAK,\n ...WIDTH,\n ...HEIGHT,\n ...COMMON_MODIFIERS,\n ...DISABLED,\n ...INHERIT_SIZE,\n] as const;\n\nexport const BADGE_CATEGORIES = UI_ELEMENT_CATEGORIES;\nexport const CHIP_CATEGORIES = UI_ELEMENT_CATEGORIES;\nexport const CODE_CATEGORIES = UI_ELEMENT_CATEGORIES;\nexport const BUTTON_CATEGORIES = UI_ELEMENT_CATEGORIES;\n\nexport const ICON_CATEGORIES = [\n 'size', 'appearance', 'variant', 'display', 'hide', 'items', 'justify',\n 'position', 'shape', 'padding', 'border', 'ring', 'shadow',\n 'width', 'height', 'shrink', 'transition', 'transparent',\n] as const;\n\n// Grid excludes breakpoint/shadow/ring/textAlign — no corresponding mappers on a grid container.\n// Wrap in a Card/Section if needed.\
|
|
1
|
+
{"version":3,"file":"categoryBuilders.mjs","sources":["../../../../../src/components/ui/props/categoryBuilders.ts"],"sourcesContent":["// Category building blocks shared by keys.ts and component-specific category files.\n\nexport const LAYOUT_CORE = ['size', 'hide', 'items', 'justify', 'position', 'display', 'overflow'] as const;\nexport const LAYOUT_FLEX = ['wrap', 'gap', 'flexDirection', 'flex', 'shrink'] as const;\n// Per-item cross-axis alignment (align-self). Opt-in per component (not part of\n// LAYOUT_CORE) so a child can override its parent's align-items.\nexport const ALIGN_SELF = ['alignSelf'] as const;\n// Per-item inline-axis alignment within a grid area (justify-self). Opt-in.\nexport const JUSTIFY_SELF = ['justifySelf'] as const;\nexport const PADDING = ['padding'] as const;\nexport const MARGIN = ['margin'] as const;\nexport const BREAKPOINT = ['breakpoint'] as const;\nexport const VISUAL_CORE = ['appearance'] as const;\nexport const BORDER = ['border'] as const;\nexport const VISUAL_DECORATION = ['shadow', 'ring', 'focusVisible'] as const;\n// Excludes focusVisible (not relevant for non-interactive layout elements)\nexport const VISUAL_DECORATION_LAYOUT = ['shadow', 'ring'] as const;\nexport const SHAPE = ['shape'] as const;\nexport const TEXT_ALIGN = ['textAlign'] as const;\nexport const FONT_FAMILY = ['fontFamily'] as const;\nexport const TRUNCATE = ['truncate'] as const;\nexport const TYPOGRAPHY_STYLE_CORE = ['fontWeight', 'fontStyle', 'textDecoration', 'textTransform', 'fontFamily'] as const;\nexport const TYPOGRAPHY_STYLE = [...TYPOGRAPHY_STYLE_CORE, ...TEXT_ALIGN, ...TRUNCATE] as const;\nexport const LIST_STYLE = ['listStyle'] as const;\nexport const LIST_POSITION = ['listPosition'] as const;\nexport const GAP = ['gap'] as const;\nexport const VARIANT = ['variant'] as const;\nexport const TRANSPARENT = ['transparent'] as const;\nexport const RESPONSIVE = ['responsiveSizing'] as const;\nexport const WIDTH = ['width'] as const;\nexport const COMMON_MODIFIERS = [...TRANSPARENT, ...RESPONSIVE] as const;\n\nexport const CURSOR = ['cursor'] as const;\nexport const TRANSITION = ['transition'] as const;\nexport const WHITESPACE = ['whitespace'] as const;\nexport const WORD_BREAK = ['wordBreak'] as const;\nexport const HEIGHT = ['height'] as const;\nexport const STATUS = ['validity'] as const;\nexport const DISABLED = ['disabled'] as const;\nexport const READONLY = ['readOnly'] as const;\nexport const ORIENTATION = ['orientation'] as const;\nexport const PLACEMENT = ['placement'] as const;\nexport const MIN_WIDTH = ['constrainWidth'] as const;\nexport const MAX_HEIGHT = ['clampHeight'] as const;\nexport const INHERIT_SIZE = ['inheritSize'] as const;\nexport const INHERIT_COLOR = ['inheritColor'] as const;\nexport const INHERIT_BG = ['inheritBg'] as const;\nexport const INHERIT_BORDER = ['inheritBorder'] as const;\nexport const CONTROL = ['control'] as const;\nexport const POINTER_EVENTS = ['pointerEvents'] as const;\nexport const DIVIDED = ['divided'] as const;\nexport const STRONG_BORDER = ['strongBorder'] as const;\nexport const INDICATOR = ['indicator'] as const;\n\nexport const LAYOUT_FULL = [...LAYOUT_CORE, ...LAYOUT_FLEX] as const;\nexport const VISUAL_FULL = [...VISUAL_CORE, ...BORDER, ...VISUAL_DECORATION, ...SHAPE] as const;\nexport const VISUAL_LAYOUT = [...VISUAL_CORE, ...BORDER, ...VISUAL_DECORATION_LAYOUT, ...SHAPE] as const;\nexport const TYPOGRAPHY_FULL = [...TYPOGRAPHY_STYLE] as const;\n\n// UI Element Categories (Code, Badge, Chip, Button)\n\nexport const UI_ELEMENT_CATEGORIES = [\n ...LAYOUT_FULL,\n ...VISUAL_FULL,\n ...TYPOGRAPHY_STYLE_CORE,\n ...TEXT_ALIGN,\n ...PADDING,\n ...VARIANT,\n ...CURSOR,\n ...TRANSITION,\n ...WHITESPACE,\n ...WORD_BREAK,\n ...WIDTH,\n ...HEIGHT,\n ...COMMON_MODIFIERS,\n ...DISABLED,\n ...INHERIT_SIZE,\n] as const;\n\nexport const BADGE_CATEGORIES = UI_ELEMENT_CATEGORIES;\nexport const CHIP_CATEGORIES = UI_ELEMENT_CATEGORIES;\nexport const CODE_CATEGORIES = UI_ELEMENT_CATEGORIES;\nexport const BUTTON_CATEGORIES = UI_ELEMENT_CATEGORIES;\n\nexport const ICON_CATEGORIES = [\n 'size', 'appearance', 'variant', 'display', 'hide', 'items', 'justify',\n 'position', 'shape', 'padding', 'border', 'ring', 'shadow',\n 'width', 'height', 'shrink', 'transition', 'transparent',\n] as const;\n\n// Grid excludes breakpoint/shadow/ring/textAlign — no corresponding mappers on a grid container.\n// Wrap in a Card/Section if needed.\nconst LAYOUT_BOX_CATEGORIES = [\n ...LAYOUT_FULL,\n ...PADDING,\n ...MARGIN,\n ...VISUAL_CORE,\n ...BORDER,\n ...STRONG_BORDER,\n ...SHAPE,\n ...VARIANT,\n ...WIDTH,\n ...HEIGHT,\n ...COMMON_MODIFIERS,\n ...POINTER_EVENTS,\n ...WHITESPACE,\n] as const;\n\nexport const GRID_CATEGORIES = [...LAYOUT_BOX_CATEGORIES, ...DIVIDED] as const;\n\n// Container is a flex column wrapper — supports breakpoint/shadow/ring/textAlign (unlike Grid).\nexport const CONTAINER_CATEGORIES = [\n ...LAYOUT_BOX_CATEGORIES,\n ...BREAKPOINT,\n ...VISUAL_DECORATION_LAYOUT,\n ...TEXT_ALIGN,\n] as const;\n\n// Adds `focusVisible` (excluded from VISUAL_DECORATION_LAYOUT by default) so\n// Row/Stack can render a keyboard focus ring when href turns the tag into <a>.\n// Col mirrors this in its own COL_CATEGORIES.\nexport const RESPONSIVE_LAYOUT_CATEGORIES = [\n ...LAYOUT_FULL,\n ...BREAKPOINT,\n ...PADDING,\n ...MARGIN,\n ...VISUAL_LAYOUT,\n ...STRONG_BORDER,\n ...VARIANT,\n ...WIDTH,\n ...HEIGHT,\n ...COMMON_MODIFIERS,\n ...TEXT_ALIGN,\n ...POINTER_EVENTS,\n ...WHITESPACE,\n 'focusVisible',\n] as const;\n\nexport const STACK_CATEGORIES = RESPONSIVE_LAYOUT_CATEGORIES;\nexport const ROW_CATEGORIES = RESPONSIVE_LAYOUT_CATEGORIES;\n\n/** @deprecated Use UI_ELEMENT_CATEGORIES */\nexport const INTERACTIVE_CATEGORIES = UI_ELEMENT_CATEGORIES;\n/** @deprecated Use CONTAINER_CATEGORIES */\nexport const BASIC_LAYOUT_CATEGORIES = CONTAINER_CATEGORIES;\n/** @deprecated Use RESPONSIVE_LAYOUT_CATEGORIES */\nexport const FLEX_LAYOUT_CATEGORIES = RESPONSIVE_LAYOUT_CATEGORIES;\n"],"names":[],"mappings":"AAEO,MAAM,WAAA,GAAc,CAAC,MAAA,EAAQ,MAAA,EAAQ,SAAS,SAAA,EAAW,UAAA,EAAY,WAAW,UAAU;AAC1F,MAAM,cAAc,CAAC,MAAA,EAAQ,KAAA,EAAO,eAAA,EAAiB,QAAQ,QAAQ;AAGrE,MAAM,UAAA,GAAa,CAAC,WAAW;AAE/B,MAAM,YAAA,GAAe,CAAC,aAAa;AACnC,MAAM,OAAA,GAAU,CAAC,SAAS;AAC1B,MAAM,MAAA,GAAS,CAAC,QAAQ;AACxB,MAAM,UAAA,GAAa,CAAC,YAAY;AAChC,MAAM,WAAA,GAAc,CAAC,YAAY;AACjC,MAAM,MAAA,GAAS,CAAC,QAAQ;AACxB,MAAM,iBAAA,GAAoB,CAAC,QAAA,EAAU,MAAA,EAAQ,cAAc;AAE3D,MAAM,wBAAA,GAA2B,CAAC,QAAA,EAAU,MAAM;AAClD,MAAM,KAAA,GAAQ,CAAC,OAAO;AACtB,MAAM,UAAA,GAAa,CAAC,WAAW;AAC/B,MAAM,WAAA,GAAc,CAAC,YAAY;AACjC,MAAM,QAAA,GAAW,CAAC,UAAU;AAC5B,MAAM,wBAAwB,CAAC,YAAA,EAAc,WAAA,EAAa,gBAAA,EAAkB,iBAAiB,YAAY;AACzG,MAAM,mBAAm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A;AAAA,EACH,GAAG,KAAA;AAAA,EACH,GAAG,OAAA;AAAA,EACH,GAAG,KAAA;AAAA,EACH,GAAG,MAAA;AAAA,EACH,GAAG,gBAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG;AACL,CAAA;AAEO,MAAM,eAAA,GAAkB,CAAC,GAAG,qBAAA,EAAuB,GAAG,OAAO;AAG7D,MAAM,oBAAA,GAAuB;AAAA,EAClC,GAAG,qBAAA;AAAA,EACH,GAAG,UAAA;AAAA,EACH,GAAG,wBAAA;AAAA,EACH,GAAG;AACL;AAKO,MAAM,4BAAA,GAA+B;AAAA,EAC1C,GAAG,WAAA;AAAA,EACH,GAAG,UAAA;AAAA,EACH,GAAG,OAAA;AAAA,EACH,GAAG,MAAA;AAAA,EACH,GAAG,aAAA;AAAA,EACH,GAAG,aAAA;AAAA,EACH,GAAG,OAAA;AAAA,EACH,GAAG,KAAA;AAAA,EACH,GAAG,MAAA;AAAA,EACH,GAAG,gBAAA;AAAA,EACH,GAAG,UAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG,UAAA;AAAA,EACH;AACF;AAEO,MAAM,gBAAA,GAAmB;AACzB,MAAM,cAAA,GAAiB;;;;"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export { ACTIVE, APPEARANCE_CATEGORY, BASE, BLUR, BORDER_KEYS, COMPONENT, COMPONENT_PROPS_CATEGORY, CURSOR, ComponentCategories, ComponentKeys, FOCUS, FOCUS_VISIBLE, HEIGHT, HOVER, INTERACTIVE_CATEGORIES, LETTER_SPACING, MODE_VALUES, ModeKeys, OBJECT_FIT, ORIENTATION, POINTER_EVENTS, RESPONSIVE_BREAKPOINT_KEYS, STATUS, TRANSITION, WHITESPACE, WORD_BREAK } from './keys.mjs';
|
|
2
2
|
export { PropDescriptions, getCategoryDescription, getCategoryName, getPropDescription } from './propDescriptions.mjs';
|
|
3
|
-
export { BADGE_CATEGORIES, BORDER, BREAKPOINT, BUTTON_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, COMMON_MODIFIERS, CONTAINER_CATEGORIES, CONTROL, DISABLED, GRID_CATEGORIES, ICON_CATEGORIES, INHERIT_BG, INHERIT_BORDER, INHERIT_COLOR, INHERIT_SIZE, LAYOUT_CORE, LAYOUT_FLEX, LAYOUT_FULL, LIST_POSITION, LIST_STYLE, MARGIN, MAX_HEIGHT, MIN_WIDTH, PADDING, PLACEMENT, READONLY, RESPONSIVE, ROW_CATEGORIES, SHAPE, STACK_CATEGORIES, TEXT_ALIGN, TRANSPARENT, TRUNCATE, TYPOGRAPHY_FULL, TYPOGRAPHY_STYLE, TYPOGRAPHY_STYLE_CORE, VARIANT, VISUAL_CORE, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, VISUAL_FULL, VISUAL_LAYOUT, WIDTH } from './categoryBuilders.mjs';
|
|
3
|
+
export { BADGE_CATEGORIES, BORDER, BREAKPOINT, BUTTON_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, COMMON_MODIFIERS, CONTAINER_CATEGORIES, CONTROL, DISABLED, DIVIDED, GRID_CATEGORIES, ICON_CATEGORIES, INDICATOR, INHERIT_BG, INHERIT_BORDER, INHERIT_COLOR, INHERIT_SIZE, LAYOUT_CORE, LAYOUT_FLEX, LAYOUT_FULL, LIST_POSITION, LIST_STYLE, MARGIN, MAX_HEIGHT, MIN_WIDTH, PADDING, PLACEMENT, READONLY, RESPONSIVE, ROW_CATEGORIES, SHAPE, STACK_CATEGORIES, STRONG_BORDER, TEXT_ALIGN, TRANSPARENT, TRUNCATE, TYPOGRAPHY_FULL, TYPOGRAPHY_STYLE, TYPOGRAPHY_STYLE_CORE, VARIANT, VISUAL_CORE, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, VISUAL_FULL, VISUAL_LAYOUT, WIDTH } from './categoryBuilders.mjs';
|
|
4
4
|
export { CARD_CATEGORIES } from '../card/CardCategories.mjs';
|
|
5
5
|
export { COL_CATEGORIES } from '../col/ColCategories.mjs';
|
|
6
6
|
export { FIELD_CATEGORIES } from '../field/FieldCategories.mjs';
|
|
7
7
|
export { ALERT_CATEGORIES } from '../alert/AlertCategories.mjs';
|
|
8
8
|
export { SPINNER_CATEGORIES } from '../spinner/SpinnerCategories.mjs';
|
|
9
|
+
export { PROGRESS_CATEGORIES } from '../progress/ProgressCategories.mjs';
|
|
9
10
|
export { DIVIDER_CATEGORIES } from '../divider/DividerCategories.mjs';
|
|
10
11
|
export { IMG_CATEGORIES } from '../img/ImgCategories.mjs';
|
|
11
12
|
export { SECTION_CATEGORIES } from '../section/SectionCategories.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { STACK_CATEGORIES, ROW_CATEGORIES, GRID_CATEGORIES, CONTAINER_CATEGORIES, ICON_CATEGORIES, CODE_CATEGORIES, CHIP_CATEGORIES, BUTTON_CATEGORIES, BADGE_CATEGORIES, VISUAL_CORE, LAYOUT_FLEX, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, LAYOUT_CORE, ALIGN_SELF, JUSTIFY_SELF, BREAKPOINT, PADDING, MARGIN, BORDER, VISUAL_DECORATION, SHAPE, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, TRUNCATE, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER, CONTROL, LAYOUT_FULL, VISUAL_FULL, COMMON_MODIFIERS } from './categoryBuilders.mjs';
|
|
1
|
+
import { STACK_CATEGORIES, ROW_CATEGORIES, GRID_CATEGORIES, CONTAINER_CATEGORIES, ICON_CATEGORIES, CODE_CATEGORIES, CHIP_CATEGORIES, BUTTON_CATEGORIES, BADGE_CATEGORIES, VISUAL_CORE, LAYOUT_FLEX, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, LAYOUT_CORE, ALIGN_SELF, JUSTIFY_SELF, BREAKPOINT, PADDING, MARGIN, BORDER, VISUAL_DECORATION, SHAPE, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, TRUNCATE, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER, CONTROL, DIVIDED, STRONG_BORDER, INDICATOR, LAYOUT_FULL, VISUAL_FULL, COMMON_MODIFIERS } from './categoryBuilders.mjs';
|
|
2
2
|
export { TEXT_ALIGN, TYPOGRAPHY_FULL, TYPOGRAPHY_STYLE_CORE, VISUAL_DECORATION_LAYOUT, VISUAL_LAYOUT } from './categoryBuilders.mjs';
|
|
3
3
|
import { CARD_CATEGORIES } from '../card/CardCategories.mjs';
|
|
4
4
|
import { COL_CATEGORIES } from '../col/ColCategories.mjs';
|
|
5
5
|
import { FIELD_CATEGORIES } from '../field/FieldCategories.mjs';
|
|
6
6
|
import { ALERT_CATEGORIES } from '../alert/AlertCategories.mjs';
|
|
7
7
|
import { SPINNER_CATEGORIES } from '../spinner/SpinnerCategories.mjs';
|
|
8
|
+
import { PROGRESS_CATEGORIES } from '../progress/ProgressCategories.mjs';
|
|
8
9
|
import { DIVIDER_CATEGORIES } from '../divider/DividerCategories.mjs';
|
|
9
10
|
import { IMG_CATEGORIES } from '../img/ImgCategories.mjs';
|
|
10
11
|
import { SECTION_CATEGORIES } from '../section/SectionCategories.mjs';
|
|
@@ -78,7 +79,10 @@ const COMPONENT_PROPS_CATEGORY = [
|
|
|
78
79
|
...INHERIT_COLOR,
|
|
79
80
|
...INHERIT_BG,
|
|
80
81
|
...INHERIT_BORDER,
|
|
81
|
-
...CONTROL
|
|
82
|
+
...CONTROL,
|
|
83
|
+
...DIVIDED,
|
|
84
|
+
...STRONG_BORDER,
|
|
85
|
+
...INDICATOR
|
|
82
86
|
];
|
|
83
87
|
const APPEARANCE_CATEGORY = ["text", "border", "ring", "shadow", "bg", "accent", "focusVisible"];
|
|
84
88
|
const ComponentKeys = {
|
|
@@ -143,8 +147,8 @@ const ComponentKeys = {
|
|
|
143
147
|
position: ["relative", "absolute", "fixed", "sticky", "static"],
|
|
144
148
|
/** Inset ring visibility: insetRing (show) or noInsetRing (hide) — emits ring-inset */
|
|
145
149
|
ring: ["insetRing", "noInsetRing"],
|
|
146
|
-
/** Drop shadow
|
|
147
|
-
shadow: ["shadow", "noShadow"],
|
|
150
|
+
/** Drop shadow: shadow (follows the component size), a fixed size shadowXs-shadowXl, or noShadow */
|
|
151
|
+
shadow: ["shadow", "shadowXs", "shadowSm", "shadowMd", "shadowLg", "shadowXl", "noShadow"],
|
|
148
152
|
/** Focus-visible outline visibility: focusVisible (show) or noFocusVisible (hide) */
|
|
149
153
|
focusVisible: ["focusVisible", "noFocusVisible"],
|
|
150
154
|
/** Border radius shape: pill (fully rounded), sharp (no radius), rounded (medium radius) */
|
|
@@ -212,7 +216,13 @@ const ComponentKeys = {
|
|
|
212
216
|
/** Inherit background color from parent via CSS variable cascade */
|
|
213
217
|
inheritBg: ["inheritBg", "noInheritBg"],
|
|
214
218
|
/** Inherit border color from parent via CSS variable cascade */
|
|
215
|
-
inheritBorder: ["inheritBorder", "noInheritBorder"]
|
|
219
|
+
inheritBorder: ["inheritBorder", "noInheritBorder"],
|
|
220
|
+
/** Grid cells split by 1px lines in the divider color */
|
|
221
|
+
divided: ["divided"],
|
|
222
|
+
/** Border in the appearance's strong color (its focus color) instead of its border tint */
|
|
223
|
+
strongBorder: ["strongBorder"],
|
|
224
|
+
/** NavLink indicator: a start-edge rail or a bottom bar, in the accent color on the active item */
|
|
225
|
+
indicator: ["indicatorStart", "indicatorBottom"]
|
|
216
226
|
};
|
|
217
227
|
const BORDER_KEYS = ["border", "borderT", "borderB", "borderL", "borderR", "borderX", "borderY", "borderStart", "borderEnd"];
|
|
218
228
|
const BASE = "base";
|
|
@@ -240,6 +250,7 @@ const COMPONENT = [
|
|
|
240
250
|
"field",
|
|
241
251
|
"alert",
|
|
242
252
|
"spinner",
|
|
253
|
+
"progress",
|
|
243
254
|
"divider",
|
|
244
255
|
"container",
|
|
245
256
|
"row",
|
|
@@ -315,6 +326,7 @@ const ComponentCategories = {
|
|
|
315
326
|
field: FIELD_CATEGORIES,
|
|
316
327
|
alert: ALERT_CATEGORIES,
|
|
317
328
|
spinner: SPINNER_CATEGORIES,
|
|
329
|
+
progress: PROGRESS_CATEGORIES,
|
|
318
330
|
link: LINK_CATEGORIES,
|
|
319
331
|
list: LIST_CATEGORIES,
|
|
320
332
|
listItem: LIST_ITEM_CATEGORIES,
|
|
@@ -336,5 +348,5 @@ const ComponentCategories = {
|
|
|
336
348
|
table: TABLE_CATEGORIES
|
|
337
349
|
};
|
|
338
350
|
|
|
339
|
-
export { ACTIVE, ALERT_CATEGORIES, APPEARANCE_CATEGORY, BADGE_CATEGORIES, BASE, BLUR, BORDER, BORDER_KEYS, BREAKPOINT, BUTTON_CATEGORIES, CARD_CATEGORIES, CHECKBOX_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, COL_CATEGORIES, COMMON_MODIFIERS, COMPONENT, COMPONENT_PROPS_CATEGORY, CONTAINER_CATEGORIES, CONTROL, CURSOR, ComponentCategories, ComponentKeys, DISABLED, DIVIDER_CATEGORIES, FIELD_CATEGORIES, FOCUS, FOCUS_VISIBLE, GRID_CATEGORIES, HEIGHT, HOVER, ICON_CATEGORIES, IMG_CATEGORIES, INHERIT_BG, INHERIT_BORDER, INHERIT_COLOR, INHERIT_SIZE, INPUT_CATEGORIES, INPUT_ERROR_ICON_CATEGORIES, INPUT_WRAPPER_CATEGORIES, INTERACTIVE_CATEGORIES, LABEL_CATEGORIES, LAYOUT_CORE, LAYOUT_FLEX, LAYOUT_FULL, LETTER_SPACING, LIST_CATEGORIES, LIST_POSITION, LIST_STYLE, MARGIN, MAX_HEIGHT, MENU_ITEM_CATEGORIES, MIN_WIDTH, MODAL_CATEGORIES, MODE_VALUES, ModeKeys, NAV_LINK_CATEGORIES, OBJECT_FIT, ORIENTATION, OVERLAY_CATEGORIES, PADDING, PLACEMENT, POINTER_EVENTS, POPUP_CATEGORIES, RADIO_CATEGORIES, RADIO_GROUP_CATEGORIES, READONLY, RESPONSIVE, RESPONSIVE_BREAKPOINT_KEYS, ROW_CATEGORIES, SECTION_CATEGORIES, SELECT_CHEVRON_CATEGORIES, SELECT_WRAPPER_CATEGORIES, SHAPE, SPINNER_CATEGORIES, STACK_CATEGORIES, STATUS, SWITCH_CATEGORIES, TABLE_CATEGORIES, TRANSITION, TRANSPARENT, TRUNCATE, TYPOGRAPHY_CATEGORIES, TYPOGRAPHY_STYLE, VARIANT, VISUAL_CORE, VISUAL_DECORATION, VISUAL_FULL, WHITESPACE, WIDTH, WORD_BREAK };
|
|
351
|
+
export { ACTIVE, ALERT_CATEGORIES, APPEARANCE_CATEGORY, BADGE_CATEGORIES, BASE, BLUR, BORDER, BORDER_KEYS, BREAKPOINT, BUTTON_CATEGORIES, CARD_CATEGORIES, CHECKBOX_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, COL_CATEGORIES, COMMON_MODIFIERS, COMPONENT, COMPONENT_PROPS_CATEGORY, CONTAINER_CATEGORIES, CONTROL, CURSOR, ComponentCategories, ComponentKeys, DISABLED, DIVIDED, DIVIDER_CATEGORIES, FIELD_CATEGORIES, FOCUS, FOCUS_VISIBLE, GRID_CATEGORIES, HEIGHT, HOVER, ICON_CATEGORIES, IMG_CATEGORIES, INDICATOR, INHERIT_BG, INHERIT_BORDER, INHERIT_COLOR, INHERIT_SIZE, INPUT_CATEGORIES, INPUT_ERROR_ICON_CATEGORIES, INPUT_WRAPPER_CATEGORIES, INTERACTIVE_CATEGORIES, LABEL_CATEGORIES, LAYOUT_CORE, LAYOUT_FLEX, LAYOUT_FULL, LETTER_SPACING, LIST_CATEGORIES, LIST_POSITION, LIST_STYLE, MARGIN, MAX_HEIGHT, MENU_ITEM_CATEGORIES, MIN_WIDTH, MODAL_CATEGORIES, MODE_VALUES, ModeKeys, NAV_LINK_CATEGORIES, OBJECT_FIT, ORIENTATION, OVERLAY_CATEGORIES, PADDING, PLACEMENT, POINTER_EVENTS, POPUP_CATEGORIES, PROGRESS_CATEGORIES, RADIO_CATEGORIES, RADIO_GROUP_CATEGORIES, READONLY, RESPONSIVE, RESPONSIVE_BREAKPOINT_KEYS, ROW_CATEGORIES, SECTION_CATEGORIES, SELECT_CHEVRON_CATEGORIES, SELECT_WRAPPER_CATEGORIES, SHAPE, SPINNER_CATEGORIES, STACK_CATEGORIES, STATUS, STRONG_BORDER, SWITCH_CATEGORIES, TABLE_CATEGORIES, TRANSITION, TRANSPARENT, TRUNCATE, TYPOGRAPHY_CATEGORIES, TYPOGRAPHY_STYLE, VARIANT, VISUAL_CORE, VISUAL_DECORATION, VISUAL_FULL, WHITESPACE, WIDTH, WORD_BREAK };
|
|
340
352
|
//# sourceMappingURL=keys.mjs.map
|