@yahoo/uds 3.122.1 → 3.123.0-beta.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/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
- package/dist/components/experimental/client/SegmentedControl.d.cts +2 -1
- package/dist/styles/styler.d.cts +42 -42
- package/dist/styles/styler.d.ts +42 -42
- package/dist/tailwind/dist/commands/css.cjs +17 -3
- package/dist/tailwind/dist/commands/css.d.cts.map +1 -1
- package/dist/tailwind/dist/commands/css.d.ts.map +1 -1
- package/dist/tailwind/dist/commands/css.helpers.cjs +2 -1
- package/dist/tailwind/dist/commands/css.helpers.js +2 -1
- package/dist/tailwind/dist/commands/css.helpers.js.map +1 -1
- package/dist/tailwind/dist/commands/css.js +17 -3
- package/dist/tailwind/dist/commands/css.js.map +1 -1
- package/dist/tailwind/dist/css/generate.cjs +3 -0
- package/dist/tailwind/dist/css/generate.helpers.cjs +14 -6
- package/dist/tailwind/dist/css/generate.helpers.js +15 -7
- package/dist/tailwind/dist/css/generate.helpers.js.map +1 -1
- package/dist/tailwind/dist/css/generate.js +3 -0
- package/dist/tailwind/dist/css/generate.js.map +1 -1
- package/dist/tailwind/dist/css/nodeUtils.cjs +91 -20
- package/dist/tailwind/dist/css/nodeUtils.js +90 -21
- package/dist/tailwind/dist/css/nodeUtils.js.map +1 -1
- package/dist/tailwind/dist/css/postcss.cjs +22 -1
- package/dist/tailwind/dist/css/postcss.helpers.cjs +12 -1
- package/dist/tailwind/dist/css/postcss.helpers.js +11 -1
- package/dist/tailwind/dist/css/postcss.helpers.js.map +1 -1
- package/dist/tailwind/dist/css/postcss.js +22 -2
- package/dist/tailwind/dist/css/postcss.js.map +1 -1
- package/dist/tailwind/dist/css/runner.cjs +171 -20
- package/dist/tailwind/dist/css/runner.helpers.cjs +58 -6
- package/dist/tailwind/dist/css/runner.helpers.js +54 -7
- package/dist/tailwind/dist/css/runner.helpers.js.map +1 -1
- package/dist/tailwind/dist/css/runner.js +172 -20
- package/dist/tailwind/dist/css/runner.js.map +1 -1
- package/dist/tailwind/dist/css/theme.d.cts +11 -0
- package/dist/tailwind/dist/css/theme.d.cts.map +1 -1
- package/dist/tailwind/dist/css/theme.d.ts +11 -0
- package/dist/tailwind/dist/css/theme.d.ts.map +1 -1
- package/dist/tailwind/dist/css/theme.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/ast/expressions.cjs +26 -3
- package/dist/tailwind/dist/purger/optimized/ast/expressions.js +26 -3
- package/dist/tailwind/dist/purger/optimized/ast/expressions.js.map +1 -1
- package/dist/uds/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +2 -0
- package/dist/uds/dist/automated-config/dist/properties.d.cts +5 -0
- package/dist/uds/dist/automated-config/dist/types/ComponentConfig.d.cts +3 -0
- package/dist/uds/dist/automated-config/dist/types/ComponentStyles.d.cts +2 -0
- package/dist/uds/dist/automated-config/dist/types/ConfigSchema.d.cts +2 -0
- package/dist/uds/dist/automated-config/dist/utils/buildConfigSchema.d.cts +7 -0
- package/dist/uds/dist/automated-config/dist/utils/coalesceConfigVariant.d.cts +2 -0
- package/dist/uds/dist/automated-config/dist/utils/defaults.d.cts +2 -0
- package/dist/uds/dist/automated-config/dist/utils/getConfigVariantComponentStatesMatrix.d.cts +2 -0
- package/dist/uds/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +3 -0
- package/dist/uds/dist/automated-config/dist/utils/getConfigVariantPseudoStates.d.cts +3 -0
- package/dist/uds/dist/automated-config/dist/utils/getConfigVariants.d.cts +2 -0
- package/dist/uds/dist/automated-config/dist/utils/index.d.cts +12 -0
- package/dist/uds/dist/automated-config/dist/utils/subcomponents.d.cts +2 -0
- package/dist/uds/dist/components/Box.d.cts +4 -0
- package/dist/uds/dist/components/Divider/Divider.d.cts +3 -0
- package/dist/uds/dist/components/Divider/DividerCore.d.cts +5 -0
- package/dist/uds/dist/components/Divider/DividerInternal.d.cts +5 -0
- package/dist/uds/dist/components/Divider/index.d.cts +2 -0
- package/dist/uds/dist/components/FormLabel.d.cts +4 -0
- package/dist/uds/dist/components/HStack.d.cts +5 -0
- package/dist/uds/dist/components/Icon.d.cts +4 -0
- package/dist/uds/dist/components/Image.d.cts +3 -0
- package/dist/uds/dist/components/Link.d.cts +4 -0
- package/dist/uds/dist/components/Scrim.d.cts +3 -0
- package/dist/uds/dist/components/Text.d.cts +4 -0
- package/dist/uds/dist/components/VStack.d.cts +5 -0
- package/dist/uds/dist/components/client/Avatar/Avatar.d.cts +2 -0
- package/dist/uds/dist/components/client/Avatar/AvatarIcon.d.cts +4 -0
- package/dist/uds/dist/components/client/Avatar/AvatarImage.d.cts +6 -0
- package/dist/uds/dist/components/client/Avatar/AvatarText.d.cts +4 -0
- package/dist/uds/dist/components/client/Avatar/index.d.cts +5 -0
- package/dist/uds/dist/components/client/Badge.d.cts +4 -0
- package/dist/uds/dist/components/client/BottomSheet/BottomSheet.d.cts +5 -0
- package/dist/uds/dist/components/client/BottomSheet/BottomSheetContent.d.cts +2 -0
- package/dist/uds/dist/components/client/BottomSheet/BottomSheetHeader.d.cts +2 -0
- package/dist/uds/dist/components/client/BottomSheet/BottomSheetProvider.d.cts +3 -0
- package/dist/uds/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.cts +3 -0
- package/dist/uds/dist/components/client/BottomSheet/index.d.cts +7 -0
- package/dist/uds/dist/components/client/BottomSheet/useBottomSheetStore.d.cts +2 -0
- package/dist/uds/dist/components/client/Button.d.cts +5 -0
- package/dist/uds/dist/components/client/Checkbox.d.cts +4 -0
- package/dist/uds/dist/components/client/Chip/Chip.d.cts +5 -0
- package/dist/uds/dist/components/client/Chip/ChipBase.d.cts +6 -0
- package/dist/uds/dist/components/client/Chip/ChipButton.d.cts +5 -0
- package/dist/uds/dist/components/client/Chip/ChipDismissible.d.cts +5 -0
- package/dist/uds/dist/components/client/Chip/ChipLink.d.cts +5 -0
- package/dist/uds/dist/components/client/Chip/ChipToggle.d.cts +5 -0
- package/dist/uds/dist/components/client/Chip/index.d.cts +6 -0
- package/dist/uds/dist/components/client/IconButton.d.cts +5 -0
- package/dist/uds/dist/components/client/Input/Input.d.cts +7 -0
- package/dist/uds/dist/components/client/Input/InputHelpText.d.cts +2 -0
- package/dist/uds/dist/components/client/Input/InputHelpTextInternal.d.cts +6 -0
- package/dist/uds/dist/components/client/Input/index.d.cts +3 -0
- package/dist/uds/dist/components/client/Menu/Menu.Content.d.cts +6 -0
- package/dist/uds/dist/components/client/Menu/Menu.Divider.d.cts +3 -0
- package/dist/uds/dist/components/client/Menu/Menu.Item.d.cts +6 -0
- package/dist/uds/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +6 -0
- package/dist/uds/dist/components/client/Menu/Menu.Provider.d.cts +3 -0
- package/dist/uds/dist/components/client/Menu/Menu.Trigger.d.cts +5 -0
- package/dist/uds/dist/components/client/Menu/Menu.d.cts +2 -0
- package/dist/uds/dist/components/client/Menu/Menu.index.d.cts +9 -0
- package/dist/uds/dist/components/client/Menu/index.d.cts +9 -0
- package/dist/uds/dist/components/client/Popover/Popover.d.cts +2 -0
- package/dist/uds/dist/components/client/Popover/PopoverContent.d.cts +5 -0
- package/dist/uds/dist/components/client/Popover/PopoverTrigger.d.cts +2 -0
- package/dist/uds/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +4 -0
- package/dist/uds/dist/components/client/Popover/index.d.cts +6 -0
- package/dist/uds/dist/components/client/Pressable.d.cts +4 -0
- package/dist/uds/dist/components/client/Radio/Radio.d.cts +4 -0
- package/dist/uds/dist/components/client/Radio/RadioGroupProvider.d.cts +4 -0
- package/dist/uds/dist/components/client/Radio/index.d.cts +3 -0
- package/dist/uds/dist/components/client/SpringMotionConfig.d.cts +5 -0
- package/dist/uds/dist/components/client/Switch.d.cts +4 -0
- package/dist/uds/dist/components/client/Toast/Toast.d.cts +8 -0
- package/dist/uds/dist/components/client/Toast/ToastContainer.d.cts +6 -0
- package/dist/uds/dist/components/client/Toast/ToastPortal.d.cts +3 -0
- package/dist/uds/dist/components/client/Toast/UDSToastConfigProvider.d.cts +5 -0
- package/dist/uds/dist/components/client/Toast/createToast.d.cts +6 -0
- package/dist/uds/dist/components/client/Toast/index.d.cts +6 -0
- package/dist/uds/dist/components/client/Tooltip/Tooltip.d.cts +2 -0
- package/dist/uds/dist/components/client/Tooltip/TooltipContent.d.cts +3 -0
- package/dist/uds/dist/components/client/Tooltip/TooltipTrigger.d.cts +2 -0
- package/dist/uds/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.cts +5 -0
- package/dist/uds/dist/components/client/Tooltip/index.d.cts +6 -0
- package/dist/uds/dist/components/client/index.d.cts +59 -0
- package/dist/uds/dist/components/client/providers/UDSBreakpointsConfigProvider.d.cts +4 -0
- package/dist/uds/dist/components/client/providers/UDSConfigProvider.d.cts +3 -0
- package/dist/uds/dist/components/index.d.cts +61 -0
- package/dist/uds/dist/config/dist/index.d.cts +4 -0
- package/dist/uds/dist/css-tokens/dist/index.d.cts +2 -0
- package/dist/uds/dist/fixtures/dist/index.d.cts +2 -0
- package/dist/uds/dist/fonts/dist/index.d.cts +2 -0
- package/dist/uds/dist/index.d.cts +93 -0
- package/dist/uds/dist/modes/dist/index.d.cts +2 -0
- package/dist/uds/dist/runtime/bottomSheetConfig.d.cts +3 -0
- package/dist/uds/dist/runtime/breakpointsConfig.d.cts +4 -0
- package/dist/uds/dist/runtime/index.d.cts +7 -0
- package/dist/uds/dist/runtime/popoverConfig.d.cts +5 -0
- package/dist/uds/dist/runtime/toastConfig.d.cts +4 -0
- package/dist/uds/dist/runtime/tooltipConfig.d.cts +5 -0
- package/dist/uds/dist/runtime/udsConfig.d.cts +8 -0
- package/dist/uds/dist/styles/styler.d.cts +2 -0
- package/dist/uds/dist/styles/stylerTypes.d.cts +3 -0
- package/dist/uds/dist/tailwind/dist/config/dist/index.d.cts +2 -0
- package/dist/uds/dist/tailwind/dist/index.d.cts +3 -0
- package/dist/uds/dist/tailwind/dist/tailwind/components/getResponsiveTextStyles.d.cts +2 -0
- package/dist/uds/dist/tailwind/dist/utils/parseTokens.d.cts +2 -0
- package/dist/uds/dist/tokens/automation/index.d.cts +10 -0
- package/dist/uds/dist/tokens/configs/shadow.d.cts +3 -0
- package/dist/uds/dist/tokens/consts/cssTokens.d.cts +2 -0
- package/dist/uds/dist/tokens/consts/defaultModes.d.cts +2 -0
- package/dist/uds/dist/tokens/consts/fontDeclarationsMap.d.cts +2 -0
- package/dist/uds/dist/tokens/index.d.cts +28 -0
- package/dist/uds/dist/tokens/parseButtonVariants.d.cts +3 -0
- package/dist/uds/dist/tokens/types.d.cts +9 -0
- package/dist/uds/dist/tokens/utils/getFontUrls.d.cts +4 -0
- package/dist/uds/dist/tokens/utils/spectrum.d.cts +3 -0
- package/dist/uds/dist/types/dist/index.d.cts +11 -0
- package/dist/uds/dist/types.d.cts +2 -0
- package/dist/uds/generated/componentData.cjs +1427 -1427
- package/dist/uds/generated/componentData.js +1427 -1427
- package/generated/componentData.json +1601 -1601
- package/package.json +1 -1
|
@@ -88,6 +88,6 @@ interface MenuItemCheckboxProps extends Omit<PressableProps, 'asChild'>, HtmlBut
|
|
|
88
88
|
*
|
|
89
89
|
* @related [Menu](https://uds.build/docs/components/menu), [Menu.Item](https://uds.build/docs/components/menu-item)
|
|
90
90
|
**/
|
|
91
|
-
declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "active" | "
|
|
91
|
+
declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "active" | "rootProps" | "hideEndIcon"> & react.RefAttributes<HTMLDivElement>>;
|
|
92
92
|
//#endregion
|
|
93
93
|
export { MenuItemCheckbox, type MenuItemCheckboxProps };
|
|
@@ -88,6 +88,6 @@ interface MenuItemCheckboxProps extends Omit<PressableProps, 'asChild'>, HtmlBut
|
|
|
88
88
|
*
|
|
89
89
|
* @related [Menu](https://uds.build/docs/components/menu), [Menu.Item](https://uds.build/docs/components/menu-item)
|
|
90
90
|
**/
|
|
91
|
-
declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "active" | "
|
|
91
|
+
declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "active" | "rootProps" | "hideEndIcon"> & react.RefAttributes<HTMLDivElement>>;
|
|
92
92
|
//#endregion
|
|
93
93
|
export { MenuItemCheckbox, type MenuItemCheckboxProps };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import { IconProps } from "../../Icon.cjs";
|
|
3
3
|
import "../../index.cjs";
|
|
4
|
+
import { TextVariant } from "../../../uds/dist/types/dist/index.cjs";
|
|
5
|
+
import "../../../uds/dist/index.cjs";
|
|
4
6
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
-
import { TextVariant } from "@yahoo/uds";
|
|
6
7
|
|
|
7
8
|
//#region src/components/experimental/client/SegmentedControl.d.ts
|
|
8
9
|
interface SegmentedControlOption<T extends string> {
|
package/dist/styles/styler.d.cts
CHANGED
|
@@ -155,76 +155,76 @@ declare const getStylesInternal: (props?: ({
|
|
|
155
155
|
tooltipVariantIcon?: "default" | undefined;
|
|
156
156
|
tooltipVariantRoot?: "default" | undefined;
|
|
157
157
|
tooltipVariantSvg?: "default" | undefined;
|
|
158
|
-
color?: "primary" | "secondary" | "tertiary" | "
|
|
159
|
-
placeholderColor?: "primary" | "secondary" | "tertiary" | "
|
|
158
|
+
color?: "primary" | "secondary" | "tertiary" | "on-color" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "muted" | undefined;
|
|
159
|
+
placeholderColor?: "primary" | "secondary" | "tertiary" | "on-color" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "muted" | undefined;
|
|
160
160
|
fontFamily?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "sans" | "sans-alt" | "serif" | "serif-alt" | "mono" | undefined;
|
|
161
161
|
fontSize?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
162
|
-
fontWeight?: "
|
|
162
|
+
fontWeight?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "black" | "thin" | "medium" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "bold" | "extralight" | "light" | "regular" | "semibold" | "extrabold" | undefined;
|
|
163
163
|
lineHeight?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
164
164
|
letterSpacing?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
165
165
|
textAlign?: "center" | "justify" | "start" | "end" | undefined;
|
|
166
|
-
textTransform?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "
|
|
167
|
-
spacing?: "0" | "
|
|
168
|
-
spacingHorizontal?: "0" | "
|
|
169
|
-
spacingVertical?: "0" | "
|
|
170
|
-
spacingBottom?: "0" | "
|
|
171
|
-
spacingEnd?: "0" | "
|
|
172
|
-
spacingStart?: "0" | "
|
|
173
|
-
spacingTop?: "0" | "
|
|
174
|
-
offset?: "0" | "
|
|
175
|
-
offsetVertical?: "0" | "
|
|
176
|
-
offsetHorizontal?: "0" | "
|
|
177
|
-
offsetBottom?: "0" | "
|
|
178
|
-
offsetEnd?: "0" | "
|
|
179
|
-
offsetStart?: "0" | "
|
|
180
|
-
offsetTop?: "0" | "
|
|
181
|
-
columnGap?: "0" | "
|
|
182
|
-
rowGap?: "0" | "
|
|
166
|
+
textTransform?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "none" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "uppercase" | "lowercase" | "capitalize" | undefined;
|
|
167
|
+
spacing?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
168
|
+
spacingHorizontal?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
169
|
+
spacingVertical?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
170
|
+
spacingBottom?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
171
|
+
spacingEnd?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
172
|
+
spacingStart?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
173
|
+
spacingTop?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
174
|
+
offset?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
175
|
+
offsetVertical?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
176
|
+
offsetHorizontal?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
177
|
+
offsetBottom?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
178
|
+
offsetEnd?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
179
|
+
offsetStart?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
180
|
+
offsetTop?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
181
|
+
columnGap?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
182
|
+
rowGap?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
183
183
|
backgroundColor?: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | undefined;
|
|
184
|
-
borderColor?: "primary" | "secondary" | "tertiary" | "
|
|
185
|
-
borderStartColor?: "primary" | "secondary" | "tertiary" | "
|
|
186
|
-
borderEndColor?: "primary" | "secondary" | "tertiary" | "
|
|
187
|
-
borderBottomColor?: "primary" | "secondary" | "tertiary" | "
|
|
188
|
-
borderTopColor?: "primary" | "secondary" | "tertiary" | "
|
|
184
|
+
borderColor?: "primary" | "secondary" | "tertiary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "muted" | undefined;
|
|
185
|
+
borderStartColor?: "primary" | "secondary" | "tertiary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "muted" | undefined;
|
|
186
|
+
borderEndColor?: "primary" | "secondary" | "tertiary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "muted" | undefined;
|
|
187
|
+
borderBottomColor?: "primary" | "secondary" | "tertiary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "muted" | undefined;
|
|
188
|
+
borderTopColor?: "primary" | "secondary" | "tertiary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "muted" | undefined;
|
|
189
189
|
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
190
190
|
borderTopStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
191
191
|
borderTopEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
192
192
|
borderBottomStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
193
193
|
borderBottomEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
194
|
-
borderWidth?: "
|
|
195
|
-
borderVerticalWidth?: "
|
|
196
|
-
borderHorizontalWidth?: "
|
|
197
|
-
borderStartWidth?: "
|
|
198
|
-
borderEndWidth?: "
|
|
199
|
-
borderTopWidth?: "
|
|
200
|
-
borderBottomWidth?: "
|
|
194
|
+
borderWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
195
|
+
borderVerticalWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
196
|
+
borderHorizontalWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
197
|
+
borderStartWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
198
|
+
borderEndWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
199
|
+
borderTopWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
200
|
+
borderBottomWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
201
201
|
avatarSize?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
202
202
|
iconSize?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
203
203
|
alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
|
|
204
204
|
alignItems?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined;
|
|
205
205
|
alignSelf?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | "auto" | undefined;
|
|
206
|
-
flex?: "
|
|
206
|
+
flex?: "1" | "none" | "auto" | "initial" | undefined;
|
|
207
207
|
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
208
208
|
flexGrow?: "0" | "1" | "2" | "3" | undefined;
|
|
209
209
|
flexShrink?: "0" | "1" | undefined;
|
|
210
210
|
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
211
211
|
justifyContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
212
212
|
flexBasis?: "min-content" | undefined;
|
|
213
|
-
display?: "flex" | "none" | "block" | "inline-block" | "inline" | "inline-flex" | "
|
|
214
|
-
overflow?: "
|
|
215
|
-
overflowX?: "
|
|
216
|
-
overflowY?: "
|
|
213
|
+
display?: "flex" | "table" | "none" | "block" | "inline-block" | "inline" | "inline-flex" | "inline-table" | "table-caption" | "table-cell" | "table-column" | "table-column-group" | "table-footer-group" | "table-header-group" | "table-row-group" | "table-row" | "flow-root" | "grid" | "contents" | undefined;
|
|
214
|
+
overflow?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
215
|
+
overflowX?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
216
|
+
overflowY?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
217
217
|
position?: "static" | "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
218
|
-
contentFit?: "none" | "
|
|
218
|
+
contentFit?: "none" | "fill" | "cover" | "contain" | "scale-down" | undefined;
|
|
219
219
|
colorMode?: "light" | "dark" | undefined;
|
|
220
|
-
scaleMode?: "
|
|
220
|
+
scaleMode?: "small" | "medium" | "xSmall" | "large" | "xLarge" | "xxLarge" | "xxxLarge" | undefined;
|
|
221
221
|
width?: "full" | "fit" | "screen" | undefined;
|
|
222
222
|
height?: "full" | "fit" | "screen" | undefined;
|
|
223
|
-
dropShadow?: "
|
|
223
|
+
dropShadow?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
224
224
|
insetShadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert" | undefined;
|
|
225
225
|
nestedBorderRadiusSize?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
226
|
-
nestedBorderRadiusWidth?: "
|
|
227
|
-
nestedBorderRadiusSpacing?: "0" | "
|
|
226
|
+
nestedBorderRadiusWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
227
|
+
nestedBorderRadiusSpacing?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
228
228
|
nestedBorderRadius?: boolean | "first" | "last" | undefined;
|
|
229
229
|
} & {
|
|
230
230
|
className?: string | undefined;
|
package/dist/styles/styler.d.ts
CHANGED
|
@@ -155,76 +155,76 @@ declare const getStylesInternal: (props?: ({
|
|
|
155
155
|
tooltipVariantIcon?: "default" | undefined;
|
|
156
156
|
tooltipVariantRoot?: "default" | undefined;
|
|
157
157
|
tooltipVariantSvg?: "default" | undefined;
|
|
158
|
-
color?: "primary" | "secondary" | "tertiary" | "
|
|
159
|
-
placeholderColor?: "primary" | "secondary" | "tertiary" | "
|
|
158
|
+
color?: "primary" | "secondary" | "tertiary" | "on-color" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "muted" | undefined;
|
|
159
|
+
placeholderColor?: "primary" | "secondary" | "tertiary" | "on-color" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "muted" | undefined;
|
|
160
160
|
fontFamily?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "sans" | "sans-alt" | "serif" | "serif-alt" | "mono" | undefined;
|
|
161
161
|
fontSize?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
162
|
-
fontWeight?: "
|
|
162
|
+
fontWeight?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "black" | "thin" | "medium" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "bold" | "extralight" | "light" | "regular" | "semibold" | "extrabold" | undefined;
|
|
163
163
|
lineHeight?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
164
164
|
letterSpacing?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
165
165
|
textAlign?: "center" | "justify" | "start" | "end" | undefined;
|
|
166
|
-
textTransform?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "
|
|
167
|
-
spacing?: "0" | "
|
|
168
|
-
spacingHorizontal?: "0" | "
|
|
169
|
-
spacingVertical?: "0" | "
|
|
170
|
-
spacingBottom?: "0" | "
|
|
171
|
-
spacingEnd?: "0" | "
|
|
172
|
-
spacingStart?: "0" | "
|
|
173
|
-
spacingTop?: "0" | "
|
|
174
|
-
offset?: "0" | "
|
|
175
|
-
offsetVertical?: "0" | "
|
|
176
|
-
offsetHorizontal?: "0" | "
|
|
177
|
-
offsetBottom?: "0" | "
|
|
178
|
-
offsetEnd?: "0" | "
|
|
179
|
-
offsetStart?: "0" | "
|
|
180
|
-
offsetTop?: "0" | "
|
|
181
|
-
columnGap?: "0" | "
|
|
182
|
-
rowGap?: "0" | "
|
|
166
|
+
textTransform?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "none" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "uppercase" | "lowercase" | "capitalize" | undefined;
|
|
167
|
+
spacing?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
168
|
+
spacingHorizontal?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
169
|
+
spacingVertical?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
170
|
+
spacingBottom?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
171
|
+
spacingEnd?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
172
|
+
spacingStart?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
173
|
+
spacingTop?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
174
|
+
offset?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
175
|
+
offsetVertical?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
176
|
+
offsetHorizontal?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
177
|
+
offsetBottom?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
178
|
+
offsetEnd?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
179
|
+
offsetStart?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
180
|
+
offsetTop?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
181
|
+
columnGap?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
182
|
+
rowGap?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
183
183
|
backgroundColor?: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | undefined;
|
|
184
|
-
borderColor?: "primary" | "secondary" | "tertiary" | "
|
|
185
|
-
borderStartColor?: "primary" | "secondary" | "tertiary" | "
|
|
186
|
-
borderEndColor?: "primary" | "secondary" | "tertiary" | "
|
|
187
|
-
borderBottomColor?: "primary" | "secondary" | "tertiary" | "
|
|
188
|
-
borderTopColor?: "primary" | "secondary" | "tertiary" | "
|
|
184
|
+
borderColor?: "primary" | "secondary" | "tertiary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "muted" | undefined;
|
|
185
|
+
borderStartColor?: "primary" | "secondary" | "tertiary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "muted" | undefined;
|
|
186
|
+
borderEndColor?: "primary" | "secondary" | "tertiary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "muted" | undefined;
|
|
187
|
+
borderBottomColor?: "primary" | "secondary" | "tertiary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "muted" | undefined;
|
|
188
|
+
borderTopColor?: "primary" | "secondary" | "tertiary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "muted" | undefined;
|
|
189
189
|
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
190
190
|
borderTopStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
191
191
|
borderTopEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
192
192
|
borderBottomStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
193
193
|
borderBottomEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
194
|
-
borderWidth?: "
|
|
195
|
-
borderVerticalWidth?: "
|
|
196
|
-
borderHorizontalWidth?: "
|
|
197
|
-
borderStartWidth?: "
|
|
198
|
-
borderEndWidth?: "
|
|
199
|
-
borderTopWidth?: "
|
|
200
|
-
borderBottomWidth?: "
|
|
194
|
+
borderWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
195
|
+
borderVerticalWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
196
|
+
borderHorizontalWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
197
|
+
borderStartWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
198
|
+
borderEndWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
199
|
+
borderTopWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
200
|
+
borderBottomWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
201
201
|
avatarSize?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
202
202
|
iconSize?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
203
203
|
alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
|
|
204
204
|
alignItems?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined;
|
|
205
205
|
alignSelf?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | "auto" | undefined;
|
|
206
|
-
flex?: "
|
|
206
|
+
flex?: "1" | "none" | "auto" | "initial" | undefined;
|
|
207
207
|
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
208
208
|
flexGrow?: "0" | "1" | "2" | "3" | undefined;
|
|
209
209
|
flexShrink?: "0" | "1" | undefined;
|
|
210
210
|
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
211
211
|
justifyContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
212
212
|
flexBasis?: "min-content" | undefined;
|
|
213
|
-
display?: "flex" | "none" | "block" | "inline-block" | "inline" | "inline-flex" | "
|
|
214
|
-
overflow?: "
|
|
215
|
-
overflowX?: "
|
|
216
|
-
overflowY?: "
|
|
213
|
+
display?: "flex" | "table" | "none" | "block" | "inline-block" | "inline" | "inline-flex" | "inline-table" | "table-caption" | "table-cell" | "table-column" | "table-column-group" | "table-footer-group" | "table-header-group" | "table-row-group" | "table-row" | "flow-root" | "grid" | "contents" | undefined;
|
|
214
|
+
overflow?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
215
|
+
overflowX?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
216
|
+
overflowY?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
217
217
|
position?: "static" | "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
218
|
-
contentFit?: "none" | "
|
|
218
|
+
contentFit?: "none" | "fill" | "cover" | "contain" | "scale-down" | undefined;
|
|
219
219
|
colorMode?: "light" | "dark" | undefined;
|
|
220
|
-
scaleMode?: "
|
|
220
|
+
scaleMode?: "small" | "medium" | "xSmall" | "large" | "xLarge" | "xxLarge" | "xxxLarge" | undefined;
|
|
221
221
|
width?: "full" | "fit" | "screen" | undefined;
|
|
222
222
|
height?: "full" | "fit" | "screen" | undefined;
|
|
223
|
-
dropShadow?: "
|
|
223
|
+
dropShadow?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
224
224
|
insetShadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert" | undefined;
|
|
225
225
|
nestedBorderRadiusSize?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
226
|
-
nestedBorderRadiusWidth?: "
|
|
227
|
-
nestedBorderRadiusSpacing?: "0" | "
|
|
226
|
+
nestedBorderRadiusWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
227
|
+
nestedBorderRadiusSpacing?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
228
228
|
nestedBorderRadius?: boolean | "first" | "last" | undefined;
|
|
229
229
|
} & {
|
|
230
230
|
className?: string | undefined;
|
|
@@ -24,6 +24,7 @@ const showHelp = () => {
|
|
|
24
24
|
require_print.print(` ${require_colors.cyan("--theme <path>")} Path to uds.theme.ts (default: uds.theme.ts)`);
|
|
25
25
|
require_print.print(` ${require_colors.cyan("--watch, -w")} Watch for file changes and regenerate`);
|
|
26
26
|
require_print.print(` ${require_colors.cyan("--silent, -s")} Suppress output logging`);
|
|
27
|
+
require_print.print(` ${require_colors.cyan("--verbose, -v")} List every scanned file used for purging`);
|
|
27
28
|
require_print.print(` ${require_colors.cyan("--force")} Overwrite existing uds.theme.ts (for init)`);
|
|
28
29
|
require_print.print(` ${require_colors.cyan("--help, -h")} Show this help message`);
|
|
29
30
|
require_print.print("");
|
|
@@ -42,14 +43,27 @@ const showHelp = () => {
|
|
|
42
43
|
export default defineTheme({
|
|
43
44
|
config: './uds.config.ts',
|
|
44
45
|
entry: './src',
|
|
46
|
+
scoped: {
|
|
47
|
+
'@your-org/shared-ui': './packages/shared-ui/uds.config.ts'
|
|
48
|
+
},
|
|
45
49
|
colorModes: ['dark'],
|
|
46
50
|
css: {
|
|
47
51
|
preflight: true,
|
|
48
52
|
fontFaceDeclarations: true,
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
optimization: {
|
|
54
|
+
deduplicateScopedCss: true
|
|
55
|
+
}
|
|
51
56
|
}
|
|
52
|
-
})
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// Expanded form when you need a custom output path:
|
|
60
|
+
// scoped: {
|
|
61
|
+
// '@your-org/shared-ui': {
|
|
62
|
+
// config: './packages/shared-ui/uds.config.ts',
|
|
63
|
+
// entry: './stories',
|
|
64
|
+
// outFile: 'dist/shared-ui.css'
|
|
65
|
+
// }
|
|
66
|
+
// }`));
|
|
53
67
|
require_print.print("");
|
|
54
68
|
};
|
|
55
69
|
const makeCSSCommand = (getContext) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.cts","names":[],"sources":["../../src/commands/css.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"css.d.cts","names":[],"sources":["../../src/commands/css.ts"],"mappings":";;;;;KAuEK,OAAA;EACH,QAAA,EAAU,MAAA,SAAe,MAAA;EACzB,YAAA,EAAc,MAAA,SAAe,MAAA;EAC7B,aAAA,EAAe,MAAA,SAAe,uBAAA;AAAA;AAAA,cAG1B,cAAA,GAAkB,UAAA,QAAkB,OAAA,CAAQ,OAAA,MAAW,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","names":[],"sources":["../../src/commands/css.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"css.d.ts","names":[],"sources":["../../src/commands/css.ts"],"mappings":";;;;;KAuEK,OAAA;EACH,QAAA,EAAU,MAAA,SAAe,MAAA;EACzB,YAAA,EAAc,MAAA,SAAe,MAAA;EAC7B,aAAA,EAAe,MAAA,SAAe,uBAAA;AAAA;AAAA,cAG1B,cAAA,GAAkB,UAAA,QAAkB,OAAA,CAAQ,OAAA,MAAW,OAAA"}
|
|
@@ -24,7 +24,8 @@ const getCssRunOptions = (workspaceDir, options) => {
|
|
|
24
24
|
entryOption: entryOption(options.entry),
|
|
25
25
|
configOption: stringOption(options.config),
|
|
26
26
|
watch: isTruthyFlag(options.watch) || isTruthyFlag(options.w),
|
|
27
|
-
silent: isTruthyFlag(options.silent) || isTruthyFlag(options.s)
|
|
27
|
+
silent: isTruthyFlag(options.silent) || isTruthyFlag(options.s),
|
|
28
|
+
verbose: isTruthyFlag(options.verbose) || isTruthyFlag(options.v)
|
|
28
29
|
};
|
|
29
30
|
};
|
|
30
31
|
|
|
@@ -23,7 +23,8 @@ const getCssRunOptions = (workspaceDir, options) => {
|
|
|
23
23
|
entryOption: entryOption(options.entry),
|
|
24
24
|
configOption: stringOption(options.config),
|
|
25
25
|
watch: isTruthyFlag(options.watch) || isTruthyFlag(options.w),
|
|
26
|
-
silent: isTruthyFlag(options.silent) || isTruthyFlag(options.s)
|
|
26
|
+
silent: isTruthyFlag(options.silent) || isTruthyFlag(options.s),
|
|
27
|
+
verbose: isTruthyFlag(options.verbose) || isTruthyFlag(options.v)
|
|
27
28
|
};
|
|
28
29
|
};
|
|
29
30
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.helpers.js","names":[],"sources":["../../src/commands/css.helpers.ts"],"sourcesContent":["import type { EntryValue } from '../utils/entryPoints';\n\ntype CssOptions = Record<string, unknown>;\n\ntype CssInitOptions = {\n force: boolean;\n configPath?: string;\n entry?: EntryValue;\n outputPath?: string;\n};\n\ntype CssRunOptions = {\n workspaceDir: string;\n outFile: string;\n themeConfigPath: string;\n scope?: string;\n entryOption?: EntryValue;\n configOption?: string;\n watch: boolean;\n silent: boolean;\n};\n\nconst isTruthyFlag = (value: unknown): boolean => value === true || value === 'true';\n\nconst stringOption = (value: unknown): string | undefined =>\n typeof value === 'string' ? value : undefined;\n\nconst entryOption = (value: unknown): EntryValue | undefined => {\n if (typeof value === 'string') {\n return value;\n }\n\n if (Array.isArray(value) && value.every((item) => typeof item === 'string')) {\n return value;\n }\n\n return undefined;\n};\n\nconst shouldShowHelp = (options: CssOptions): boolean =>\n isTruthyFlag(options.help) || isTruthyFlag(options.h);\n\nconst isInitCommand = (firstArg: string | undefined): boolean => firstArg === 'init';\n\nconst getCssInitOptions = (options: CssOptions): CssInitOptions => ({\n force: isTruthyFlag(options.force),\n configPath: stringOption(options.config),\n entry: entryOption(options.entry),\n outputPath: stringOption(options.outFile),\n});\n\nconst getCssRunOptions = (workspaceDir: string, options: CssOptions): CssRunOptions => {\n const outFile = stringOption(options.outFile) ?? 'dist/uds.css';\n const themeConfigPath = stringOption(options.theme) ?? 'uds.theme.ts';\n\n return {\n workspaceDir,\n outFile,\n themeConfigPath,\n scope: stringOption(options.scope),\n entryOption: entryOption(options.entry),\n configOption: stringOption(options.config),\n watch: isTruthyFlag(options.watch) || isTruthyFlag(options.w),\n silent: isTruthyFlag(options.silent) || isTruthyFlag(options.s),\n };\n};\n\nexport { getCssInitOptions, getCssRunOptions, isInitCommand, shouldShowHelp };\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"css.helpers.js","names":[],"sources":["../../src/commands/css.helpers.ts"],"sourcesContent":["import type { EntryValue } from '../utils/entryPoints';\n\ntype CssOptions = Record<string, unknown>;\n\ntype CssInitOptions = {\n force: boolean;\n configPath?: string;\n entry?: EntryValue;\n outputPath?: string;\n};\n\ntype CssRunOptions = {\n workspaceDir: string;\n outFile: string;\n themeConfigPath: string;\n scope?: string;\n entryOption?: EntryValue;\n configOption?: string;\n watch: boolean;\n silent: boolean;\n verbose: boolean;\n};\n\nconst isTruthyFlag = (value: unknown): boolean => value === true || value === 'true';\n\nconst stringOption = (value: unknown): string | undefined =>\n typeof value === 'string' ? value : undefined;\n\nconst entryOption = (value: unknown): EntryValue | undefined => {\n if (typeof value === 'string') {\n return value;\n }\n\n if (Array.isArray(value) && value.every((item) => typeof item === 'string')) {\n return value;\n }\n\n return undefined;\n};\n\nconst shouldShowHelp = (options: CssOptions): boolean =>\n isTruthyFlag(options.help) || isTruthyFlag(options.h);\n\nconst isInitCommand = (firstArg: string | undefined): boolean => firstArg === 'init';\n\nconst getCssInitOptions = (options: CssOptions): CssInitOptions => ({\n force: isTruthyFlag(options.force),\n configPath: stringOption(options.config),\n entry: entryOption(options.entry),\n outputPath: stringOption(options.outFile),\n});\n\nconst getCssRunOptions = (workspaceDir: string, options: CssOptions): CssRunOptions => {\n const outFile = stringOption(options.outFile) ?? 'dist/uds.css';\n const themeConfigPath = stringOption(options.theme) ?? 'uds.theme.ts';\n\n return {\n workspaceDir,\n outFile,\n themeConfigPath,\n scope: stringOption(options.scope),\n entryOption: entryOption(options.entry),\n configOption: stringOption(options.config),\n watch: isTruthyFlag(options.watch) || isTruthyFlag(options.w),\n silent: isTruthyFlag(options.silent) || isTruthyFlag(options.s),\n verbose: isTruthyFlag(options.verbose) || isTruthyFlag(options.v),\n };\n};\n\nexport { getCssInitOptions, getCssRunOptions, isInitCommand, shouldShowHelp };\n"],"mappings":";;AAuBA,MAAM,gBAAgB,UAA4B,UAAU,QAAQ,UAAU;AAE9E,MAAM,gBAAgB,UACpB,OAAO,UAAU,WAAW,QAAQ;AAEtC,MAAM,eAAe,UAA2C;AAC9D,KAAI,OAAO,UAAU,SACnB,QAAO;AAGT,KAAI,MAAM,QAAQ,MAAM,IAAI,MAAM,OAAO,SAAS,OAAO,SAAS,SAAS,CACzE,QAAO;;AAMX,MAAM,kBAAkB,YACtB,aAAa,QAAQ,KAAK,IAAI,aAAa,QAAQ,EAAE;AAEvD,MAAM,iBAAiB,aAA0C,aAAa;AAE9E,MAAM,qBAAqB,aAAyC;CAClE,OAAO,aAAa,QAAQ,MAAM;CAClC,YAAY,aAAa,QAAQ,OAAO;CACxC,OAAO,YAAY,QAAQ,MAAM;CACjC,YAAY,aAAa,QAAQ,QAAQ;CAC1C;AAED,MAAM,oBAAoB,cAAsB,YAAuC;AAIrF,QAAO;EACL;EACA,SALc,aAAa,QAAQ,QAAQ,IAAI;EAM/C,iBALsB,aAAa,QAAQ,MAAM,IAAI;EAMrD,OAAO,aAAa,QAAQ,MAAM;EAClC,aAAa,YAAY,QAAQ,MAAM;EACvC,cAAc,aAAa,QAAQ,OAAO;EAC1C,OAAO,aAAa,QAAQ,MAAM,IAAI,aAAa,QAAQ,EAAE;EAC7D,QAAQ,aAAa,QAAQ,OAAO,IAAI,aAAa,QAAQ,EAAE;EAC/D,SAAS,aAAa,QAAQ,QAAQ,IAAI,aAAa,QAAQ,EAAE;EAClE"}
|