@yahoo/uds 3.128.1 → 3.129.0-beta.2
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/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
- package/dist/components/Icon.cjs +16 -6
- package/dist/components/Icon.d.cts +0 -1
- package/dist/components/Icon.d.ts +0 -1
- package/dist/components/Icon.js +17 -7
- package/dist/components/IconSlot.cjs +19 -6
- package/dist/components/IconSlot.js +19 -5
- package/dist/components/client/IconButton.cjs +5 -1
- package/dist/components/client/IconButton.js +6 -2
- 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/client/Toast/UDSToastConfigProvider.d.cts +5 -5
- package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +5 -5
- package/dist/components/experimental/client/SegmentedControl.d.cts +2 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/styles/styler.d.cts +65 -65
- package/dist/styles/styler.d.ts +65 -65
- package/dist/tailwind/dist/types/dist/index.d.cts.map +1 -1
- package/dist/tailwind/dist/types/dist/index.d.ts.map +1 -1
- package/dist/tokens/index.d.cts +2 -2
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens/types.d.cts +7 -7
- package/dist/tokens/types.d.ts +7 -7
- package/dist/types/dist/index.d.cts +12 -10
- package/dist/types/dist/index.d.ts +12 -10
- 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/Banner/Banner.d.cts +4 -0
- package/dist/uds/dist/components/Banner/BannerContent.d.cts +2 -0
- package/dist/uds/dist/components/Banner/BannerDescription.d.cts +2 -0
- package/dist/uds/dist/components/Banner/BannerTitle.d.cts +2 -0
- package/dist/uds/dist/components/Banner/index.d.cts +5 -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 +4 -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 +5 -0
- package/dist/uds/dist/components/client/Avatar/AvatarIcon.d.cts +7 -0
- package/dist/uds/dist/components/client/Avatar/AvatarImage.d.cts +9 -0
- package/dist/uds/dist/components/client/Avatar/AvatarText.d.cts +7 -0
- package/dist/uds/dist/components/client/Avatar/index.d.cts +7 -0
- package/dist/uds/dist/components/client/Badge.d.cts +6 -0
- package/dist/uds/dist/components/client/BottomSheet/BottomSheet.d.cts +7 -0
- package/dist/uds/dist/components/client/BottomSheet/BottomSheetContent.d.cts +4 -0
- package/dist/uds/dist/components/client/BottomSheet/BottomSheetHeader.d.cts +4 -0
- package/dist/uds/dist/components/client/BottomSheet/BottomSheetProvider.d.cts +5 -0
- package/dist/uds/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.cts +5 -0
- package/dist/uds/dist/components/client/BottomSheet/index.d.cts +9 -0
- package/dist/uds/dist/components/client/BottomSheet/useBottomSheetStore.d.cts +4 -0
- package/dist/uds/dist/components/client/Button.d.cts +7 -0
- package/dist/uds/dist/components/client/Checkbox.d.cts +6 -0
- package/dist/uds/dist/components/client/Chip/Chip.d.cts +7 -0
- package/dist/uds/dist/components/client/Chip/ChipBase.d.cts +8 -0
- package/dist/uds/dist/components/client/Chip/ChipButton.d.cts +7 -0
- package/dist/uds/dist/components/client/Chip/ChipDismissible.d.cts +7 -0
- package/dist/uds/dist/components/client/Chip/ChipLink.d.cts +7 -0
- package/dist/uds/dist/components/client/Chip/ChipToggle.d.cts +7 -0
- package/dist/uds/dist/components/client/Chip/index.d.cts +8 -0
- package/dist/uds/dist/components/client/IconButton.d.cts +7 -0
- package/dist/uds/dist/components/client/Input/Input.d.cts +9 -0
- package/dist/uds/dist/components/client/Input/InputHelpText.d.cts +4 -0
- package/dist/uds/dist/components/client/Input/InputHelpTextInternal.d.cts +8 -0
- package/dist/uds/dist/components/client/Input/index.d.cts +5 -0
- package/dist/uds/dist/components/client/Menu/Menu.Content.d.cts +8 -0
- package/dist/uds/dist/components/client/Menu/Menu.Divider.d.cts +5 -0
- package/dist/uds/dist/components/client/Menu/Menu.Item.d.cts +8 -0
- package/dist/uds/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +8 -0
- package/dist/uds/dist/components/client/Menu/Menu.Provider.d.cts +5 -0
- package/dist/uds/dist/components/client/Menu/Menu.Trigger.d.cts +7 -0
- package/dist/uds/dist/components/client/Menu/Menu.d.cts +4 -0
- package/dist/uds/dist/components/client/Menu/Menu.index.d.cts +11 -0
- package/dist/uds/dist/components/client/Menu/index.d.cts +11 -0
- package/dist/uds/dist/components/client/Popover/Popover.d.cts +4 -0
- package/dist/uds/dist/components/client/Popover/PopoverContent.d.cts +7 -0
- package/dist/uds/dist/components/client/Popover/PopoverTrigger.d.cts +4 -0
- package/dist/uds/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +6 -0
- package/dist/uds/dist/components/client/Popover/index.d.cts +8 -0
- package/dist/uds/dist/components/client/Pressable.d.cts +6 -0
- package/dist/uds/dist/components/client/Radio/Radio.d.cts +6 -0
- package/dist/uds/dist/components/client/Radio/RadioGroupProvider.d.cts +6 -0
- package/dist/uds/dist/components/client/Radio/index.d.cts +5 -0
- package/dist/uds/dist/components/client/SpringMotionConfig.d.cts +7 -0
- package/dist/uds/dist/components/client/Switch.d.cts +6 -0
- package/dist/uds/dist/components/client/Tabs/Tab.d.cts +4 -0
- package/dist/uds/dist/components/client/Tabs/TabList.d.cts +5 -0
- package/dist/uds/dist/components/client/Tabs/TabPanel.d.cts +5 -0
- package/dist/uds/dist/components/client/Tabs/Tabs.d.cts +4 -0
- package/dist/uds/dist/components/client/Tabs/index.d.cts +8 -0
- package/dist/uds/dist/components/client/Tabs/tabsContext.d.cts +5 -0
- package/dist/uds/dist/components/client/Toast/Toast.d.cts +10 -0
- package/dist/uds/dist/components/client/Toast/ToastContainer.d.cts +8 -0
- package/dist/uds/dist/components/client/Toast/ToastPortal.d.cts +5 -0
- package/dist/uds/dist/components/client/Toast/UDSToastConfigProvider.d.cts +7 -0
- package/dist/uds/dist/components/client/Toast/createToast.d.cts +8 -0
- package/dist/uds/dist/components/client/Toast/index.d.cts +8 -0
- package/dist/uds/dist/components/client/Tooltip/Tooltip.d.cts +4 -0
- package/dist/uds/dist/components/client/Tooltip/TooltipContent.d.cts +5 -0
- package/dist/uds/dist/components/client/Tooltip/TooltipTrigger.d.cts +4 -0
- package/dist/uds/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.cts +7 -0
- package/dist/uds/dist/components/client/Tooltip/index.d.cts +8 -0
- package/dist/uds/dist/components/client/index.d.cts +67 -0
- package/dist/uds/dist/components/client/providers/UDSBreakpointsConfigProvider.d.cts +6 -0
- package/dist/uds/dist/components/client/providers/UDSConfigProvider.d.cts +5 -0
- package/dist/uds/dist/components/index.d.cts +71 -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 +102 -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 +10 -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 +1371 -1371
- package/dist/uds/generated/componentData.js +1371 -1371
- package/generated/componentData.json +1701 -1703
- package/package.json +1 -1
- package/dist/icons/dist/types.d.cts +0 -18
- package/dist/icons/dist/types.d.ts +0 -18
|
@@ -11,8 +11,8 @@ import { SelectedConfigurableProperty } from "../properties.cjs";
|
|
|
11
11
|
* @returns A Record of layer names to their properties, or null if no properties are found
|
|
12
12
|
*/
|
|
13
13
|
declare function getConfigVariantProperties(variant?: VariantConfig): {
|
|
14
|
-
[x: string]: Readonly<Record<string, SelectedConfigurableProperty<"
|
|
15
|
-
root: Readonly<Record<string, SelectedConfigurableProperty<"
|
|
14
|
+
[x: string]: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
|
|
15
|
+
root: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
|
|
16
16
|
} | null; //#endregion
|
|
17
17
|
//#endregion
|
|
18
18
|
export { getConfigVariantProperties };
|
|
@@ -11,8 +11,8 @@ import { SelectedConfigurableProperty } from "../properties.js";
|
|
|
11
11
|
* @returns A Record of layer names to their properties, or null if no properties are found
|
|
12
12
|
*/
|
|
13
13
|
declare function getConfigVariantProperties(variant?: VariantConfig): {
|
|
14
|
-
[x: string]: Readonly<Record<string, SelectedConfigurableProperty<"
|
|
15
|
-
root: Readonly<Record<string, SelectedConfigurableProperty<"
|
|
14
|
+
[x: string]: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
|
|
15
|
+
root: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
|
|
16
16
|
} | null; //#endregion
|
|
17
17
|
//#endregion
|
|
18
18
|
export { getConfigVariantProperties };
|
package/dist/components/Icon.cjs
CHANGED
|
@@ -5,6 +5,7 @@ const require_styles_styler = require('../styles/styler.cjs');
|
|
|
5
5
|
const require_tokens_configs_sizes = require('../tokens/configs/sizes.cjs');
|
|
6
6
|
let react = require("react");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let _yahoo_uds_icons_utils = require("@yahoo/uds-icons/utils");
|
|
8
9
|
|
|
9
10
|
//#region src/components/Icon.tsx
|
|
10
11
|
/**
|
|
@@ -36,8 +37,13 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
36
37
|
*
|
|
37
38
|
* @related [IconButton](https://uds.build/docs/components/icon-button)
|
|
38
39
|
*/
|
|
39
|
-
const Icon = (0, react.forwardRef)(function BaseIcon({ name:
|
|
40
|
-
const
|
|
40
|
+
const Icon = (0, react.forwardRef)(function BaseIcon({ name: iconName, size = "md", variant = "outline", color = "primary", className, ...props }, ref) {
|
|
41
|
+
const iconElement = (0, react.isValidElement)(iconName) ? (() => {
|
|
42
|
+
(0, _yahoo_uds_icons_utils.assertIsIconElement)(iconName);
|
|
43
|
+
return iconName;
|
|
44
|
+
})() : void 0;
|
|
45
|
+
const iconComponent = !iconElement ? iconName : void 0;
|
|
46
|
+
const availableVariants = iconElement ? (0, _yahoo_uds_icons_utils.getIconVariants)(iconElement) : [];
|
|
41
47
|
const effectiveVariant = availableVariants.includes(variant) ? variant : availableVariants[0] ?? "fill";
|
|
42
48
|
const isMulticolor = effectiveVariant === "multicolor";
|
|
43
49
|
const styles = require_styles_styler.getStyles({
|
|
@@ -46,6 +52,13 @@ const Icon = (0, react.forwardRef)(function BaseIcon({ name: SVGIcon, size = "md
|
|
|
46
52
|
className: require_styles_styler.cx(className, !isMulticolor && "[&_path]:fill-current")
|
|
47
53
|
});
|
|
48
54
|
const sizePx = require_tokens_configs_sizes.normalIconSizes[size];
|
|
55
|
+
const renderedIcon = iconElement ? (0, react.cloneElement)(iconName, {
|
|
56
|
+
size,
|
|
57
|
+
variant: effectiveVariant
|
|
58
|
+
}) : iconComponent ? iconComponent({
|
|
59
|
+
size,
|
|
60
|
+
variant: effectiveVariant
|
|
61
|
+
}) : null;
|
|
49
62
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
50
63
|
ref,
|
|
51
64
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -56,10 +69,7 @@ const Icon = (0, react.forwardRef)(function BaseIcon({ name: SVGIcon, size = "md
|
|
|
56
69
|
focusable: "false",
|
|
57
70
|
className: styles,
|
|
58
71
|
...props,
|
|
59
|
-
children:
|
|
60
|
-
size,
|
|
61
|
-
variant: effectiveVariant
|
|
62
|
-
})
|
|
72
|
+
children: renderedIcon
|
|
63
73
|
});
|
|
64
74
|
});
|
|
65
75
|
Icon.displayName = "Icon";
|
package/dist/components/Icon.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
import { cx, getStyles } from "../styles/styler.js";
|
|
3
3
|
import { normalIconSizes } from "../tokens/configs/sizes.js";
|
|
4
|
-
import { forwardRef } from "react";
|
|
4
|
+
import { cloneElement, forwardRef, isValidElement } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { assertIsIconElement, getIconVariants } from "@yahoo/uds-icons/utils";
|
|
6
7
|
|
|
7
8
|
//#region src/components/Icon.tsx
|
|
8
9
|
/**
|
|
@@ -34,8 +35,13 @@ import { jsx } from "react/jsx-runtime";
|
|
|
34
35
|
*
|
|
35
36
|
* @related [IconButton](https://uds.build/docs/components/icon-button)
|
|
36
37
|
*/
|
|
37
|
-
const Icon = forwardRef(function BaseIcon({ name:
|
|
38
|
-
const
|
|
38
|
+
const Icon = forwardRef(function BaseIcon({ name: iconName, size = "md", variant = "outline", color = "primary", className, ...props }, ref) {
|
|
39
|
+
const iconElement = isValidElement(iconName) ? (() => {
|
|
40
|
+
assertIsIconElement(iconName);
|
|
41
|
+
return iconName;
|
|
42
|
+
})() : void 0;
|
|
43
|
+
const iconComponent = !iconElement ? iconName : void 0;
|
|
44
|
+
const availableVariants = iconElement ? getIconVariants(iconElement) : [];
|
|
39
45
|
const effectiveVariant = availableVariants.includes(variant) ? variant : availableVariants[0] ?? "fill";
|
|
40
46
|
const isMulticolor = effectiveVariant === "multicolor";
|
|
41
47
|
const styles = getStyles({
|
|
@@ -44,6 +50,13 @@ const Icon = forwardRef(function BaseIcon({ name: SVGIcon, size = "md", variant
|
|
|
44
50
|
className: cx(className, !isMulticolor && "[&_path]:fill-current")
|
|
45
51
|
});
|
|
46
52
|
const sizePx = normalIconSizes[size];
|
|
53
|
+
const renderedIcon = iconElement ? cloneElement(iconName, {
|
|
54
|
+
size,
|
|
55
|
+
variant: effectiveVariant
|
|
56
|
+
}) : iconComponent ? iconComponent({
|
|
57
|
+
size,
|
|
58
|
+
variant: effectiveVariant
|
|
59
|
+
}) : null;
|
|
47
60
|
return /* @__PURE__ */ jsx("svg", {
|
|
48
61
|
ref,
|
|
49
62
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -54,10 +67,7 @@ const Icon = forwardRef(function BaseIcon({ name: SVGIcon, size = "md", variant
|
|
|
54
67
|
focusable: "false",
|
|
55
68
|
className: styles,
|
|
56
69
|
...props,
|
|
57
|
-
children:
|
|
58
|
-
size,
|
|
59
|
-
variant: effectiveVariant
|
|
60
|
-
})
|
|
70
|
+
children: renderedIcon
|
|
61
71
|
});
|
|
62
72
|
});
|
|
63
73
|
Icon.displayName = "Icon";
|
|
@@ -6,10 +6,12 @@ const require_components_Icon = require('./Icon.cjs');
|
|
|
6
6
|
let react = require("react");
|
|
7
7
|
react = require_runtime.__toESM(react);
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
let
|
|
10
|
-
lodash_isFunction_js = require_runtime.__toESM(lodash_isFunction_js);
|
|
9
|
+
let _yahoo_uds_icons_utils = require("@yahoo/uds-icons/utils");
|
|
11
10
|
|
|
12
11
|
//#region src/components/IconSlot.tsx
|
|
12
|
+
function isIconRenderOutput(icon) {
|
|
13
|
+
return (0, react.isValidElement)(icon) && (icon.type === react.default.Fragment || typeof icon.type === "string");
|
|
14
|
+
}
|
|
13
15
|
/**
|
|
14
16
|
* A helper container to render a SvgIcon, Icon component, or ReactNode.
|
|
15
17
|
*
|
|
@@ -30,15 +32,26 @@ const IconSlot = (0, react.memo)(function IconSlot({ icon, iconProps, className:
|
|
|
30
32
|
if (!icon) return null;
|
|
31
33
|
const { className: iconPropsClassName, ...props } = iconProps || {};
|
|
32
34
|
const mergedClassName = require_styles_styler.cx(slotClassName, iconPropsClassName);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
name: svgIcon,
|
|
35
|
+
if ((0, _yahoo_uds_icons_utils.isIconElement)(icon)) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Icon.Icon, {
|
|
36
|
+
name: icon,
|
|
36
37
|
...props,
|
|
37
38
|
...rest,
|
|
38
39
|
className: mergedClassName
|
|
39
40
|
});
|
|
40
|
-
if (
|
|
41
|
+
if (typeof icon === "function") {
|
|
41
42
|
const iconEl = icon(iconProps || {});
|
|
43
|
+
if ((0, _yahoo_uds_icons_utils.isIconElement)(iconEl)) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Icon.Icon, {
|
|
44
|
+
name: iconEl,
|
|
45
|
+
...props,
|
|
46
|
+
...rest,
|
|
47
|
+
className: mergedClassName
|
|
48
|
+
});
|
|
49
|
+
if (isIconRenderOutput(iconEl)) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Icon.Icon, {
|
|
50
|
+
name: icon,
|
|
51
|
+
...props,
|
|
52
|
+
...rest,
|
|
53
|
+
className: mergedClassName
|
|
54
|
+
});
|
|
42
55
|
const elProps = iconEl?.props;
|
|
43
56
|
return (0, react.isValidElement)(iconEl) && (0, react.cloneElement)(iconEl, {
|
|
44
57
|
...rest,
|
|
@@ -3,9 +3,12 @@ import { cx } from "../styles/styler.js";
|
|
|
3
3
|
import { Icon } from "./Icon.js";
|
|
4
4
|
import React, { cloneElement, isValidElement, memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
6
|
+
import { isIconElement } from "@yahoo/uds-icons/utils";
|
|
7
7
|
|
|
8
8
|
//#region src/components/IconSlot.tsx
|
|
9
|
+
function isIconRenderOutput(icon) {
|
|
10
|
+
return isValidElement(icon) && (icon.type === React.Fragment || typeof icon.type === "string");
|
|
11
|
+
}
|
|
9
12
|
/**
|
|
10
13
|
* A helper container to render a SvgIcon, Icon component, or ReactNode.
|
|
11
14
|
*
|
|
@@ -26,15 +29,26 @@ const IconSlot = memo(function IconSlot({ icon, iconProps, className: slotClassN
|
|
|
26
29
|
if (!icon) return null;
|
|
27
30
|
const { className: iconPropsClassName, ...props } = iconProps || {};
|
|
28
31
|
const mergedClassName = cx(slotClassName, iconPropsClassName);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
name: svgIcon,
|
|
32
|
+
if (isIconElement(icon)) return /* @__PURE__ */ jsx(Icon, {
|
|
33
|
+
name: icon,
|
|
32
34
|
...props,
|
|
33
35
|
...rest,
|
|
34
36
|
className: mergedClassName
|
|
35
37
|
});
|
|
36
|
-
if (
|
|
38
|
+
if (typeof icon === "function") {
|
|
37
39
|
const iconEl = icon(iconProps || {});
|
|
40
|
+
if (isIconElement(iconEl)) return /* @__PURE__ */ jsx(Icon, {
|
|
41
|
+
name: iconEl,
|
|
42
|
+
...props,
|
|
43
|
+
...rest,
|
|
44
|
+
className: mergedClassName
|
|
45
|
+
});
|
|
46
|
+
if (isIconRenderOutput(iconEl)) return /* @__PURE__ */ jsx(Icon, {
|
|
47
|
+
name: icon,
|
|
48
|
+
...props,
|
|
49
|
+
...rest,
|
|
50
|
+
className: mergedClassName
|
|
51
|
+
});
|
|
38
52
|
const elProps = iconEl?.props;
|
|
39
53
|
return isValidElement(iconEl) && cloneElement(iconEl, {
|
|
40
54
|
...rest,
|
|
@@ -19,6 +19,10 @@ const defaultSizeRootClass = require_generateDefaultClassName.generateDefaultCla
|
|
|
19
19
|
const defaultSizeIconClass = require_generateDefaultClassName.generateDefaultClassName("iconbutton", "size", "icon");
|
|
20
20
|
const defaultVariantRootClass = require_generateDefaultClassName.generateDefaultClassName("button", "variant", "root");
|
|
21
21
|
const defaultVariantIconClass = require_generateDefaultClassName.generateDefaultClassName("button", "variant", "icon");
|
|
22
|
+
function getIconMotionKey(icon) {
|
|
23
|
+
if ((0, react.isValidElement)(icon)) return icon.props?.__iconMetadata?.name ?? icon.type?.toString?.() ?? "icon";
|
|
24
|
+
return icon?.displayName ?? icon?.name ?? "icon";
|
|
25
|
+
}
|
|
22
26
|
/**
|
|
23
27
|
* **⚙️️ An icon button element that can be used to trigger an action**
|
|
24
28
|
*
|
|
@@ -119,7 +123,7 @@ const IconButton = (0, react.forwardRef)(function IconButton({ variant, size, ic
|
|
|
119
123
|
color: "current",
|
|
120
124
|
className: styles.icon
|
|
121
125
|
})
|
|
122
|
-
}, name
|
|
126
|
+
}, getIconMotionKey(name))]
|
|
123
127
|
})
|
|
124
128
|
})
|
|
125
129
|
});
|
|
@@ -8,7 +8,7 @@ import { buttonIconSvgSize } from "./buttonConstants.js";
|
|
|
8
8
|
import { SpringMotionConfig } from "./SpringMotionConfig.js";
|
|
9
9
|
import { iconMotionVariants, loadingMotionVariants } from "./Button.js";
|
|
10
10
|
import { Progress } from "@yahoo/uds-icons";
|
|
11
|
-
import { forwardRef, useImperativeHandle, useMemo, useRef } from "react";
|
|
11
|
+
import { forwardRef, isValidElement, useImperativeHandle, useMemo, useRef } from "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { AnimatePresence, m, useReducedMotion } from "motion/react";
|
|
14
14
|
|
|
@@ -17,6 +17,10 @@ const defaultSizeRootClass = generateDefaultClassName("iconbutton", "size", "roo
|
|
|
17
17
|
const defaultSizeIconClass = generateDefaultClassName("iconbutton", "size", "icon");
|
|
18
18
|
const defaultVariantRootClass = generateDefaultClassName("button", "variant", "root");
|
|
19
19
|
const defaultVariantIconClass = generateDefaultClassName("button", "variant", "icon");
|
|
20
|
+
function getIconMotionKey(icon) {
|
|
21
|
+
if (isValidElement(icon)) return icon.props?.__iconMetadata?.name ?? icon.type?.toString?.() ?? "icon";
|
|
22
|
+
return icon?.displayName ?? icon?.name ?? "icon";
|
|
23
|
+
}
|
|
20
24
|
/**
|
|
21
25
|
* **⚙️️ An icon button element that can be used to trigger an action**
|
|
22
26
|
*
|
|
@@ -117,7 +121,7 @@ const IconButton = forwardRef(function IconButton({ variant, size, iconVariant,
|
|
|
117
121
|
color: "current",
|
|
118
122
|
className: styles.icon
|
|
119
123
|
})
|
|
120
|
-
}, name
|
|
124
|
+
}, getIconMotionKey(name))]
|
|
121
125
|
})
|
|
122
126
|
})
|
|
123
127
|
});
|
|
@@ -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" | "hideEndIcon" | "rootProps"> & react.RefAttributes<HTMLDivElement>>;
|
|
92
92
|
//#endregion
|
|
93
93
|
export { MenuItemCheckbox, type MenuItemCheckboxProps };
|
|
@@ -89,6 +89,6 @@ interface MenuItemCheckboxProps extends Omit<PressableProps, 'asChild'>, HtmlBut
|
|
|
89
89
|
*
|
|
90
90
|
* @related [Menu](https://uds.build/docs/components/menu), [Menu.Item](https://uds.build/docs/components/menu-item)
|
|
91
91
|
**/
|
|
92
|
-
declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "active" | "
|
|
92
|
+
declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "active" | "hideEndIcon" | "rootProps"> & react.RefAttributes<HTMLDivElement>>;
|
|
93
93
|
//#endregion
|
|
94
94
|
export { MenuItemCheckbox, type MenuItemCheckboxProps };
|
|
@@ -31,11 +31,11 @@ declare const useToastConfig: (sizeProp?: ToastSize | undefined, variantProp?: T
|
|
|
31
31
|
autoClose: number | false;
|
|
32
32
|
position: ToastPosition;
|
|
33
33
|
backgroundColor: {
|
|
34
|
-
warning: "
|
|
35
|
-
info: "
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
error: "
|
|
34
|
+
warning: "alert" | "primary" | "secondary" | "accent" | "brand" | "positive" | "warning" | "info" | "alert-secondary" | "brand-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "gray-0" | "gray-1" | "gray-2" | "gray-3" | "gray-4" | "gray-5" | "gray-6" | "gray-7" | "gray-8" | "gray-9" | "gray-10" | "gray-11" | "gray-12" | "gray-13" | "gray-14" | "gray-15" | "purple-0" | "purple-1" | "purple-2" | "purple-3" | "purple-4" | "purple-5" | "purple-6" | "purple-7" | "purple-8" | "purple-9" | "purple-10" | "purple-11" | "purple-12" | "purple-13" | "purple-14" | "purple-15" | "indigo-0" | "indigo-1" | "indigo-2" | "indigo-3" | "indigo-4" | "indigo-5" | "indigo-6" | "indigo-7" | "indigo-8" | "indigo-9" | "indigo-10" | "indigo-11" | "indigo-12" | "indigo-13" | "indigo-14" | "indigo-15" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "blue-10" | "blue-11" | "blue-12" | "blue-13" | "blue-14" | "blue-15" | "cyan-0" | "cyan-1" | "cyan-2" | "cyan-3" | "cyan-4" | "cyan-5" | "cyan-6" | "cyan-7" | "cyan-8" | "cyan-9" | "cyan-10" | "cyan-11" | "cyan-12" | "cyan-13" | "cyan-14" | "cyan-15" | "teal-0" | "teal-1" | "teal-2" | "teal-3" | "teal-4" | "teal-5" | "teal-6" | "teal-7" | "teal-8" | "teal-9" | "teal-10" | "teal-11" | "teal-12" | "teal-13" | "teal-14" | "teal-15" | "mint-0" | "mint-1" | "mint-2" | "mint-3" | "mint-4" | "mint-5" | "mint-6" | "mint-7" | "mint-8" | "mint-9" | "mint-10" | "mint-11" | "mint-12" | "mint-13" | "mint-14" | "mint-15" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "green-10" | "green-11" | "green-12" | "green-13" | "green-14" | "green-15" | "lime-0" | "lime-1" | "lime-2" | "lime-3" | "lime-4" | "lime-5" | "lime-6" | "lime-7" | "lime-8" | "lime-9" | "lime-10" | "lime-11" | "lime-12" | "lime-13" | "lime-14" | "lime-15" | "citron-0" | "citron-1" | "citron-2" | "citron-3" | "citron-4" | "citron-5" | "citron-6" | "citron-7" | "citron-8" | "citron-9" | "citron-10" | "citron-11" | "citron-12" | "citron-13" | "citron-14" | "citron-15" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "yellow-10" | "yellow-11" | "yellow-12" | "yellow-13" | "yellow-14" | "yellow-15" | "brown-0" | "brown-1" | "brown-2" | "brown-3" | "brown-4" | "brown-5" | "brown-6" | "brown-7" | "brown-8" | "brown-9" | "brown-10" | "brown-11" | "brown-12" | "brown-13" | "brown-14" | "brown-15" | "nude-0" | "nude-1" | "nude-2" | "nude-3" | "nude-4" | "nude-5" | "nude-6" | "nude-7" | "nude-8" | "nude-9" | "nude-10" | "nude-11" | "nude-12" | "nude-13" | "nude-14" | "nude-15" | "orange-0" | "orange-1" | "orange-2" | "orange-3" | "orange-4" | "orange-5" | "orange-6" | "orange-7" | "orange-8" | "orange-9" | "orange-10" | "orange-11" | "orange-12" | "orange-13" | "orange-14" | "orange-15" | "sunset-0" | "sunset-1" | "sunset-2" | "sunset-3" | "sunset-4" | "sunset-5" | "sunset-6" | "sunset-7" | "sunset-8" | "sunset-9" | "sunset-10" | "sunset-11" | "sunset-12" | "sunset-13" | "sunset-14" | "sunset-15" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "red-10" | "red-11" | "red-12" | "red-13" | "red-14" | "red-15" | "rose-0" | "rose-1" | "rose-2" | "rose-3" | "rose-4" | "rose-5" | "rose-6" | "rose-7" | "rose-8" | "rose-9" | "rose-10" | "rose-11" | "rose-12" | "rose-13" | "rose-14" | "rose-15" | "pink-0" | "pink-1" | "pink-2" | "pink-3" | "pink-4" | "pink-5" | "pink-6" | "pink-7" | "pink-8" | "pink-9" | "pink-10" | "pink-11" | "pink-12" | "pink-13" | "pink-14" | "pink-15" | "magenta-0" | "magenta-1" | "magenta-2" | "magenta-3" | "magenta-4" | "magenta-5" | "magenta-6" | "magenta-7" | "magenta-8" | "magenta-9" | "magenta-10" | "magenta-11" | "magenta-12" | "magenta-13" | "magenta-14" | "magenta-15" | "carbon-0" | "carbon-1" | "carbon-2" | "carbon-3" | "carbon-4" | "carbon-5" | "carbon-6" | "carbon-7" | "carbon-8" | "carbon-9" | "carbon-10" | "carbon-11" | "carbon-12" | "carbon-13" | "carbon-14" | "carbon-15";
|
|
35
|
+
info: "alert" | "primary" | "secondary" | "accent" | "brand" | "positive" | "warning" | "info" | "alert-secondary" | "brand-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "gray-0" | "gray-1" | "gray-2" | "gray-3" | "gray-4" | "gray-5" | "gray-6" | "gray-7" | "gray-8" | "gray-9" | "gray-10" | "gray-11" | "gray-12" | "gray-13" | "gray-14" | "gray-15" | "purple-0" | "purple-1" | "purple-2" | "purple-3" | "purple-4" | "purple-5" | "purple-6" | "purple-7" | "purple-8" | "purple-9" | "purple-10" | "purple-11" | "purple-12" | "purple-13" | "purple-14" | "purple-15" | "indigo-0" | "indigo-1" | "indigo-2" | "indigo-3" | "indigo-4" | "indigo-5" | "indigo-6" | "indigo-7" | "indigo-8" | "indigo-9" | "indigo-10" | "indigo-11" | "indigo-12" | "indigo-13" | "indigo-14" | "indigo-15" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "blue-10" | "blue-11" | "blue-12" | "blue-13" | "blue-14" | "blue-15" | "cyan-0" | "cyan-1" | "cyan-2" | "cyan-3" | "cyan-4" | "cyan-5" | "cyan-6" | "cyan-7" | "cyan-8" | "cyan-9" | "cyan-10" | "cyan-11" | "cyan-12" | "cyan-13" | "cyan-14" | "cyan-15" | "teal-0" | "teal-1" | "teal-2" | "teal-3" | "teal-4" | "teal-5" | "teal-6" | "teal-7" | "teal-8" | "teal-9" | "teal-10" | "teal-11" | "teal-12" | "teal-13" | "teal-14" | "teal-15" | "mint-0" | "mint-1" | "mint-2" | "mint-3" | "mint-4" | "mint-5" | "mint-6" | "mint-7" | "mint-8" | "mint-9" | "mint-10" | "mint-11" | "mint-12" | "mint-13" | "mint-14" | "mint-15" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "green-10" | "green-11" | "green-12" | "green-13" | "green-14" | "green-15" | "lime-0" | "lime-1" | "lime-2" | "lime-3" | "lime-4" | "lime-5" | "lime-6" | "lime-7" | "lime-8" | "lime-9" | "lime-10" | "lime-11" | "lime-12" | "lime-13" | "lime-14" | "lime-15" | "citron-0" | "citron-1" | "citron-2" | "citron-3" | "citron-4" | "citron-5" | "citron-6" | "citron-7" | "citron-8" | "citron-9" | "citron-10" | "citron-11" | "citron-12" | "citron-13" | "citron-14" | "citron-15" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "yellow-10" | "yellow-11" | "yellow-12" | "yellow-13" | "yellow-14" | "yellow-15" | "brown-0" | "brown-1" | "brown-2" | "brown-3" | "brown-4" | "brown-5" | "brown-6" | "brown-7" | "brown-8" | "brown-9" | "brown-10" | "brown-11" | "brown-12" | "brown-13" | "brown-14" | "brown-15" | "nude-0" | "nude-1" | "nude-2" | "nude-3" | "nude-4" | "nude-5" | "nude-6" | "nude-7" | "nude-8" | "nude-9" | "nude-10" | "nude-11" | "nude-12" | "nude-13" | "nude-14" | "nude-15" | "orange-0" | "orange-1" | "orange-2" | "orange-3" | "orange-4" | "orange-5" | "orange-6" | "orange-7" | "orange-8" | "orange-9" | "orange-10" | "orange-11" | "orange-12" | "orange-13" | "orange-14" | "orange-15" | "sunset-0" | "sunset-1" | "sunset-2" | "sunset-3" | "sunset-4" | "sunset-5" | "sunset-6" | "sunset-7" | "sunset-8" | "sunset-9" | "sunset-10" | "sunset-11" | "sunset-12" | "sunset-13" | "sunset-14" | "sunset-15" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "red-10" | "red-11" | "red-12" | "red-13" | "red-14" | "red-15" | "rose-0" | "rose-1" | "rose-2" | "rose-3" | "rose-4" | "rose-5" | "rose-6" | "rose-7" | "rose-8" | "rose-9" | "rose-10" | "rose-11" | "rose-12" | "rose-13" | "rose-14" | "rose-15" | "pink-0" | "pink-1" | "pink-2" | "pink-3" | "pink-4" | "pink-5" | "pink-6" | "pink-7" | "pink-8" | "pink-9" | "pink-10" | "pink-11" | "pink-12" | "pink-13" | "pink-14" | "pink-15" | "magenta-0" | "magenta-1" | "magenta-2" | "magenta-3" | "magenta-4" | "magenta-5" | "magenta-6" | "magenta-7" | "magenta-8" | "magenta-9" | "magenta-10" | "magenta-11" | "magenta-12" | "magenta-13" | "magenta-14" | "magenta-15" | "carbon-0" | "carbon-1" | "carbon-2" | "carbon-3" | "carbon-4" | "carbon-5" | "carbon-6" | "carbon-7" | "carbon-8" | "carbon-9" | "carbon-10" | "carbon-11" | "carbon-12" | "carbon-13" | "carbon-14" | "carbon-15";
|
|
36
|
+
success: "alert" | "primary" | "secondary" | "accent" | "brand" | "positive" | "warning" | "info" | "alert-secondary" | "brand-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "gray-0" | "gray-1" | "gray-2" | "gray-3" | "gray-4" | "gray-5" | "gray-6" | "gray-7" | "gray-8" | "gray-9" | "gray-10" | "gray-11" | "gray-12" | "gray-13" | "gray-14" | "gray-15" | "purple-0" | "purple-1" | "purple-2" | "purple-3" | "purple-4" | "purple-5" | "purple-6" | "purple-7" | "purple-8" | "purple-9" | "purple-10" | "purple-11" | "purple-12" | "purple-13" | "purple-14" | "purple-15" | "indigo-0" | "indigo-1" | "indigo-2" | "indigo-3" | "indigo-4" | "indigo-5" | "indigo-6" | "indigo-7" | "indigo-8" | "indigo-9" | "indigo-10" | "indigo-11" | "indigo-12" | "indigo-13" | "indigo-14" | "indigo-15" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "blue-10" | "blue-11" | "blue-12" | "blue-13" | "blue-14" | "blue-15" | "cyan-0" | "cyan-1" | "cyan-2" | "cyan-3" | "cyan-4" | "cyan-5" | "cyan-6" | "cyan-7" | "cyan-8" | "cyan-9" | "cyan-10" | "cyan-11" | "cyan-12" | "cyan-13" | "cyan-14" | "cyan-15" | "teal-0" | "teal-1" | "teal-2" | "teal-3" | "teal-4" | "teal-5" | "teal-6" | "teal-7" | "teal-8" | "teal-9" | "teal-10" | "teal-11" | "teal-12" | "teal-13" | "teal-14" | "teal-15" | "mint-0" | "mint-1" | "mint-2" | "mint-3" | "mint-4" | "mint-5" | "mint-6" | "mint-7" | "mint-8" | "mint-9" | "mint-10" | "mint-11" | "mint-12" | "mint-13" | "mint-14" | "mint-15" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "green-10" | "green-11" | "green-12" | "green-13" | "green-14" | "green-15" | "lime-0" | "lime-1" | "lime-2" | "lime-3" | "lime-4" | "lime-5" | "lime-6" | "lime-7" | "lime-8" | "lime-9" | "lime-10" | "lime-11" | "lime-12" | "lime-13" | "lime-14" | "lime-15" | "citron-0" | "citron-1" | "citron-2" | "citron-3" | "citron-4" | "citron-5" | "citron-6" | "citron-7" | "citron-8" | "citron-9" | "citron-10" | "citron-11" | "citron-12" | "citron-13" | "citron-14" | "citron-15" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "yellow-10" | "yellow-11" | "yellow-12" | "yellow-13" | "yellow-14" | "yellow-15" | "brown-0" | "brown-1" | "brown-2" | "brown-3" | "brown-4" | "brown-5" | "brown-6" | "brown-7" | "brown-8" | "brown-9" | "brown-10" | "brown-11" | "brown-12" | "brown-13" | "brown-14" | "brown-15" | "nude-0" | "nude-1" | "nude-2" | "nude-3" | "nude-4" | "nude-5" | "nude-6" | "nude-7" | "nude-8" | "nude-9" | "nude-10" | "nude-11" | "nude-12" | "nude-13" | "nude-14" | "nude-15" | "orange-0" | "orange-1" | "orange-2" | "orange-3" | "orange-4" | "orange-5" | "orange-6" | "orange-7" | "orange-8" | "orange-9" | "orange-10" | "orange-11" | "orange-12" | "orange-13" | "orange-14" | "orange-15" | "sunset-0" | "sunset-1" | "sunset-2" | "sunset-3" | "sunset-4" | "sunset-5" | "sunset-6" | "sunset-7" | "sunset-8" | "sunset-9" | "sunset-10" | "sunset-11" | "sunset-12" | "sunset-13" | "sunset-14" | "sunset-15" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "red-10" | "red-11" | "red-12" | "red-13" | "red-14" | "red-15" | "rose-0" | "rose-1" | "rose-2" | "rose-3" | "rose-4" | "rose-5" | "rose-6" | "rose-7" | "rose-8" | "rose-9" | "rose-10" | "rose-11" | "rose-12" | "rose-13" | "rose-14" | "rose-15" | "pink-0" | "pink-1" | "pink-2" | "pink-3" | "pink-4" | "pink-5" | "pink-6" | "pink-7" | "pink-8" | "pink-9" | "pink-10" | "pink-11" | "pink-12" | "pink-13" | "pink-14" | "pink-15" | "magenta-0" | "magenta-1" | "magenta-2" | "magenta-3" | "magenta-4" | "magenta-5" | "magenta-6" | "magenta-7" | "magenta-8" | "magenta-9" | "magenta-10" | "magenta-11" | "magenta-12" | "magenta-13" | "magenta-14" | "magenta-15" | "carbon-0" | "carbon-1" | "carbon-2" | "carbon-3" | "carbon-4" | "carbon-5" | "carbon-6" | "carbon-7" | "carbon-8" | "carbon-9" | "carbon-10" | "carbon-11" | "carbon-12" | "carbon-13" | "carbon-14" | "carbon-15";
|
|
37
|
+
loading: "alert" | "primary" | "secondary" | "accent" | "brand" | "positive" | "warning" | "info" | "alert-secondary" | "brand-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "gray-0" | "gray-1" | "gray-2" | "gray-3" | "gray-4" | "gray-5" | "gray-6" | "gray-7" | "gray-8" | "gray-9" | "gray-10" | "gray-11" | "gray-12" | "gray-13" | "gray-14" | "gray-15" | "purple-0" | "purple-1" | "purple-2" | "purple-3" | "purple-4" | "purple-5" | "purple-6" | "purple-7" | "purple-8" | "purple-9" | "purple-10" | "purple-11" | "purple-12" | "purple-13" | "purple-14" | "purple-15" | "indigo-0" | "indigo-1" | "indigo-2" | "indigo-3" | "indigo-4" | "indigo-5" | "indigo-6" | "indigo-7" | "indigo-8" | "indigo-9" | "indigo-10" | "indigo-11" | "indigo-12" | "indigo-13" | "indigo-14" | "indigo-15" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "blue-10" | "blue-11" | "blue-12" | "blue-13" | "blue-14" | "blue-15" | "cyan-0" | "cyan-1" | "cyan-2" | "cyan-3" | "cyan-4" | "cyan-5" | "cyan-6" | "cyan-7" | "cyan-8" | "cyan-9" | "cyan-10" | "cyan-11" | "cyan-12" | "cyan-13" | "cyan-14" | "cyan-15" | "teal-0" | "teal-1" | "teal-2" | "teal-3" | "teal-4" | "teal-5" | "teal-6" | "teal-7" | "teal-8" | "teal-9" | "teal-10" | "teal-11" | "teal-12" | "teal-13" | "teal-14" | "teal-15" | "mint-0" | "mint-1" | "mint-2" | "mint-3" | "mint-4" | "mint-5" | "mint-6" | "mint-7" | "mint-8" | "mint-9" | "mint-10" | "mint-11" | "mint-12" | "mint-13" | "mint-14" | "mint-15" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "green-10" | "green-11" | "green-12" | "green-13" | "green-14" | "green-15" | "lime-0" | "lime-1" | "lime-2" | "lime-3" | "lime-4" | "lime-5" | "lime-6" | "lime-7" | "lime-8" | "lime-9" | "lime-10" | "lime-11" | "lime-12" | "lime-13" | "lime-14" | "lime-15" | "citron-0" | "citron-1" | "citron-2" | "citron-3" | "citron-4" | "citron-5" | "citron-6" | "citron-7" | "citron-8" | "citron-9" | "citron-10" | "citron-11" | "citron-12" | "citron-13" | "citron-14" | "citron-15" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "yellow-10" | "yellow-11" | "yellow-12" | "yellow-13" | "yellow-14" | "yellow-15" | "brown-0" | "brown-1" | "brown-2" | "brown-3" | "brown-4" | "brown-5" | "brown-6" | "brown-7" | "brown-8" | "brown-9" | "brown-10" | "brown-11" | "brown-12" | "brown-13" | "brown-14" | "brown-15" | "nude-0" | "nude-1" | "nude-2" | "nude-3" | "nude-4" | "nude-5" | "nude-6" | "nude-7" | "nude-8" | "nude-9" | "nude-10" | "nude-11" | "nude-12" | "nude-13" | "nude-14" | "nude-15" | "orange-0" | "orange-1" | "orange-2" | "orange-3" | "orange-4" | "orange-5" | "orange-6" | "orange-7" | "orange-8" | "orange-9" | "orange-10" | "orange-11" | "orange-12" | "orange-13" | "orange-14" | "orange-15" | "sunset-0" | "sunset-1" | "sunset-2" | "sunset-3" | "sunset-4" | "sunset-5" | "sunset-6" | "sunset-7" | "sunset-8" | "sunset-9" | "sunset-10" | "sunset-11" | "sunset-12" | "sunset-13" | "sunset-14" | "sunset-15" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "red-10" | "red-11" | "red-12" | "red-13" | "red-14" | "red-15" | "rose-0" | "rose-1" | "rose-2" | "rose-3" | "rose-4" | "rose-5" | "rose-6" | "rose-7" | "rose-8" | "rose-9" | "rose-10" | "rose-11" | "rose-12" | "rose-13" | "rose-14" | "rose-15" | "pink-0" | "pink-1" | "pink-2" | "pink-3" | "pink-4" | "pink-5" | "pink-6" | "pink-7" | "pink-8" | "pink-9" | "pink-10" | "pink-11" | "pink-12" | "pink-13" | "pink-14" | "pink-15" | "magenta-0" | "magenta-1" | "magenta-2" | "magenta-3" | "magenta-4" | "magenta-5" | "magenta-6" | "magenta-7" | "magenta-8" | "magenta-9" | "magenta-10" | "magenta-11" | "magenta-12" | "magenta-13" | "magenta-14" | "magenta-15" | "carbon-0" | "carbon-1" | "carbon-2" | "carbon-3" | "carbon-4" | "carbon-5" | "carbon-6" | "carbon-7" | "carbon-8" | "carbon-9" | "carbon-10" | "carbon-11" | "carbon-12" | "carbon-13" | "carbon-14" | "carbon-15";
|
|
38
|
+
error: "alert" | "primary" | "secondary" | "accent" | "brand" | "positive" | "warning" | "info" | "alert-secondary" | "brand-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "gray-0" | "gray-1" | "gray-2" | "gray-3" | "gray-4" | "gray-5" | "gray-6" | "gray-7" | "gray-8" | "gray-9" | "gray-10" | "gray-11" | "gray-12" | "gray-13" | "gray-14" | "gray-15" | "purple-0" | "purple-1" | "purple-2" | "purple-3" | "purple-4" | "purple-5" | "purple-6" | "purple-7" | "purple-8" | "purple-9" | "purple-10" | "purple-11" | "purple-12" | "purple-13" | "purple-14" | "purple-15" | "indigo-0" | "indigo-1" | "indigo-2" | "indigo-3" | "indigo-4" | "indigo-5" | "indigo-6" | "indigo-7" | "indigo-8" | "indigo-9" | "indigo-10" | "indigo-11" | "indigo-12" | "indigo-13" | "indigo-14" | "indigo-15" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "blue-10" | "blue-11" | "blue-12" | "blue-13" | "blue-14" | "blue-15" | "cyan-0" | "cyan-1" | "cyan-2" | "cyan-3" | "cyan-4" | "cyan-5" | "cyan-6" | "cyan-7" | "cyan-8" | "cyan-9" | "cyan-10" | "cyan-11" | "cyan-12" | "cyan-13" | "cyan-14" | "cyan-15" | "teal-0" | "teal-1" | "teal-2" | "teal-3" | "teal-4" | "teal-5" | "teal-6" | "teal-7" | "teal-8" | "teal-9" | "teal-10" | "teal-11" | "teal-12" | "teal-13" | "teal-14" | "teal-15" | "mint-0" | "mint-1" | "mint-2" | "mint-3" | "mint-4" | "mint-5" | "mint-6" | "mint-7" | "mint-8" | "mint-9" | "mint-10" | "mint-11" | "mint-12" | "mint-13" | "mint-14" | "mint-15" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "green-10" | "green-11" | "green-12" | "green-13" | "green-14" | "green-15" | "lime-0" | "lime-1" | "lime-2" | "lime-3" | "lime-4" | "lime-5" | "lime-6" | "lime-7" | "lime-8" | "lime-9" | "lime-10" | "lime-11" | "lime-12" | "lime-13" | "lime-14" | "lime-15" | "citron-0" | "citron-1" | "citron-2" | "citron-3" | "citron-4" | "citron-5" | "citron-6" | "citron-7" | "citron-8" | "citron-9" | "citron-10" | "citron-11" | "citron-12" | "citron-13" | "citron-14" | "citron-15" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "yellow-10" | "yellow-11" | "yellow-12" | "yellow-13" | "yellow-14" | "yellow-15" | "brown-0" | "brown-1" | "brown-2" | "brown-3" | "brown-4" | "brown-5" | "brown-6" | "brown-7" | "brown-8" | "brown-9" | "brown-10" | "brown-11" | "brown-12" | "brown-13" | "brown-14" | "brown-15" | "nude-0" | "nude-1" | "nude-2" | "nude-3" | "nude-4" | "nude-5" | "nude-6" | "nude-7" | "nude-8" | "nude-9" | "nude-10" | "nude-11" | "nude-12" | "nude-13" | "nude-14" | "nude-15" | "orange-0" | "orange-1" | "orange-2" | "orange-3" | "orange-4" | "orange-5" | "orange-6" | "orange-7" | "orange-8" | "orange-9" | "orange-10" | "orange-11" | "orange-12" | "orange-13" | "orange-14" | "orange-15" | "sunset-0" | "sunset-1" | "sunset-2" | "sunset-3" | "sunset-4" | "sunset-5" | "sunset-6" | "sunset-7" | "sunset-8" | "sunset-9" | "sunset-10" | "sunset-11" | "sunset-12" | "sunset-13" | "sunset-14" | "sunset-15" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "red-10" | "red-11" | "red-12" | "red-13" | "red-14" | "red-15" | "rose-0" | "rose-1" | "rose-2" | "rose-3" | "rose-4" | "rose-5" | "rose-6" | "rose-7" | "rose-8" | "rose-9" | "rose-10" | "rose-11" | "rose-12" | "rose-13" | "rose-14" | "rose-15" | "pink-0" | "pink-1" | "pink-2" | "pink-3" | "pink-4" | "pink-5" | "pink-6" | "pink-7" | "pink-8" | "pink-9" | "pink-10" | "pink-11" | "pink-12" | "pink-13" | "pink-14" | "pink-15" | "magenta-0" | "magenta-1" | "magenta-2" | "magenta-3" | "magenta-4" | "magenta-5" | "magenta-6" | "magenta-7" | "magenta-8" | "magenta-9" | "magenta-10" | "magenta-11" | "magenta-12" | "magenta-13" | "magenta-14" | "magenta-15" | "carbon-0" | "carbon-1" | "carbon-2" | "carbon-3" | "carbon-4" | "carbon-5" | "carbon-6" | "carbon-7" | "carbon-8" | "carbon-9" | "carbon-10" | "carbon-11" | "carbon-12" | "carbon-13" | "carbon-14" | "carbon-15";
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
//#endregion
|