@yahoo/uds 3.108.2 → 3.110.0
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/cli/commands/sync.cjs +4 -0
- package/dist/cli/commands/sync.js +5 -1
- package/dist/cli/dist/commands/editor-rules.cjs +19 -16
- package/dist/cli/dist/commands/editor-rules.js +20 -17
- package/dist/cli/dist/lib/box.cjs +44 -0
- package/dist/cli/dist/lib/box.js +44 -0
- package/dist/cli/dist/lib/colors.cjs +2 -0
- package/dist/cli/dist/lib/colors.js +2 -1
- package/dist/cli/dist/utils/rules/config.cjs +136 -52
- package/dist/cli/dist/utils/rules/config.js +137 -54
- package/dist/cli/rules/claude/uds/components.md +50 -0
- package/dist/cli/rules/claude/uds/elevation.md +33 -0
- package/dist/cli/rules/claude/uds/icons.md +4 -0
- package/dist/cli/rules/claude/uds/styling.md +18 -0
- package/dist/cli/rules/claude/uds/tailwind.md +5 -0
- package/dist/components/client/Avatar/AvatarImage.cjs +1 -0
- package/dist/components/client/Avatar/AvatarImage.js +1 -0
- package/dist/components/client/Toast/ToastContainer.cjs +5 -1
- package/dist/components/client/Toast/ToastContainer.js +5 -1
- package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +7 -0
- package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +7 -0
- package/dist/components/experimental/Table.cjs +2 -2
- package/dist/components/experimental/Table.js +2 -2
- package/dist/config/dist/index.cjs +22687 -19487
- package/dist/config/dist/index.js +22687 -19487
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/dist/runtime/toastConfig.cjs +2 -1
- package/dist/runtime/toastConfig.d.cts +3 -0
- package/dist/runtime/toastConfig.d.ts +3 -0
- package/dist/runtime/toastConfig.js +2 -1
- package/dist/styles/styler.d.cts +10 -10
- package/dist/styles/styler.d.ts +10 -10
- package/dist/tailwind/dist/tailwind/plugins/getTailwindAsUdsColors.cjs +16 -11
- package/dist/tailwind/dist/tailwind/plugins/getTailwindAsUdsColors.js +16 -11
- package/dist/tailwind/dist/utils/parseTokens.cjs +6 -1
- package/dist/tailwind/dist/utils/parseTokens.js +6 -1
- package/dist/tokens/index.cjs +4 -0
- package/dist/tokens/index.d.cts +3 -2
- package/dist/tokens/index.d.ts +3 -2
- package/dist/tokens/index.js +2 -1
- package/dist/tokens/types.d.cts +2 -2
- package/dist/tokens/types.d.ts +2 -2
- package/dist/tokens/utils/spectrum.cjs +72 -0
- package/dist/tokens/utils/spectrum.d.cts +37 -0
- package/dist/tokens/utils/spectrum.d.ts +37 -0
- package/dist/tokens/utils/spectrum.js +68 -0
- package/dist/types/dist/index.d.cts +11 -2
- package/dist/types/dist/index.d.ts +11 -2
- package/dist/uds/generated/componentData.cjs +1172 -1174
- package/dist/uds/generated/componentData.js +1172 -1174
- package/dist/uds/generated/tailwindPurge.cjs +31 -1
- package/dist/uds/generated/tailwindPurge.js +31 -1
- package/dist/uds/package.cjs +1 -1
- package/dist/uds/package.js +1 -1
- package/dist/utils/isElevationAlias.cjs +12 -0
- package/dist/utils/isElevationAlias.d.cts +7 -0
- package/dist/utils/isElevationAlias.d.ts +7 -0
- package/dist/utils/isElevationAlias.js +11 -0
- package/package.json +2 -2
- package/dist/tailwind/dist/tailwind/utils/flattenColorPalette.cjs +0 -8
- package/dist/tailwind/dist/tailwind/utils/flattenColorPalette.js +0 -7
- package/dist/tokens/configs/spectrum.cjs +0 -732
- package/dist/tokens/configs/spectrum.d.cts +0 -9
- package/dist/tokens/configs/spectrum.d.ts +0 -9
- package/dist/tokens/configs/spectrum.js +0 -729
package/dist/index.cjs
CHANGED
|
@@ -65,6 +65,7 @@ const require_tokens_parseButtonVariants = require('./tokens/parseButtonVariants
|
|
|
65
65
|
const require_tokens_utils_entries = require('./tokens/utils/entries.cjs');
|
|
66
66
|
const require_tokens_utils_getFontUrls = require('./tokens/utils/getFontUrls.cjs');
|
|
67
67
|
const require_tokens_utils_mapValues = require('./tokens/utils/mapValues.cjs');
|
|
68
|
+
const require_tokens_utils_spectrum = require('./tokens/utils/spectrum.cjs');
|
|
68
69
|
const require_components_client_Tooltip_TooltipContent = require('./components/client/Tooltip/TooltipContent.cjs');
|
|
69
70
|
const require_components_client_Tooltip_TooltipTrigger = require('./components/client/Tooltip/TooltipTrigger.cjs');
|
|
70
71
|
const require_runtime_breakpointsConfig = require('./runtime/breakpointsConfig.cjs');
|
|
@@ -230,8 +231,11 @@ exports.mapValues = require_tokens_utils_mapValues.mapValues;
|
|
|
230
231
|
exports.newAlwaysPalette = require_index.newAlwaysPalette;
|
|
231
232
|
exports.parseButtonVariantFlat = require_tokens_parseButtonVariants.parseButtonVariantFlat;
|
|
232
233
|
exports.shadow = require_tokens_configs_shadow.shadow;
|
|
234
|
+
exports.spectrumRgbToString = require_tokens_utils_spectrum.spectrumRgbToString;
|
|
233
235
|
exports.statePseudoMapDocsMode = require_index$2.statePseudoMapDocsMode;
|
|
234
236
|
exports.textVariantsSafe = require_index$1.textVariantsSafe;
|
|
237
|
+
exports.toRgbChannel = require_tokens_utils_spectrum.toRgbChannel;
|
|
238
|
+
exports.toSpectrumValueEntry = require_tokens_utils_spectrum.toSpectrumValueEntry;
|
|
235
239
|
exports.useBreakpointsConfig = require_components_client_providers_UDSBreakpointsConfigProvider.useBreakpointsConfig;
|
|
236
240
|
exports.useToastConfig = require_components_client_Toast_UDSToastConfigProvider.useToastConfig;
|
|
237
241
|
exports.variants = require_styles_variants.variants;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { variants } from "./styles/variants.cjs";
|
|
3
3
|
import { AvatarConfig, BadgeConfig, ButtonConfig, CheckboxConfig, ChipConfig, DividerConfig, IconButtonConfig, InputConfig, LinkConfig, MenuContentConfig, MenuItemConfig, RadioConfig, SwitchConfig, ToastConfig, TooltipConfig } from "./automated-config/dist/generated/generatedConfigs.cjs";
|
|
4
|
-
import { AlwaysPaletteAlias, AlwaysPaletteAliasWithPrefix, AlwaysPaletteColor, Animation, AriaAttribute, AvatarAbbreviationStrategy, AvatarShape, AvatarSize, AvatarSizeConfig, AvatarVariant, BackgroundColor, BackgroundPalette, BackgroundPaletteAlias, BackgroundStyleProps, BackwardsCompatibleReactElement, BadgeSize, BadgeVariant, BorderRadius, BorderRadiusConfig, BorderStyleProps, BorderWidth, BorderWidthConfig, BorderWidthWithElevation, Breakpoint, BreakpointValue, BreakpointWithBase, BreakpointsConfig, ButtonPalette, ButtonPaletteColor, ButtonSize, ButtonSpectrumColor, ButtonVariant, ButtonVariantFlat, CheckboxSize, CheckboxValue, CheckboxVariant, ChipSize, ChipVariant, ColorMode, ColorModeConfig, ColorModeForApp, ColorsConfig, CustomSizingStyleProps, DataAttribute, DeprecatedAlwaysPaletteAlias, Display, DividerVariant, ElevationAlias, ElevationBackgroundFillColor, ElevationBorderColor, ElevationConfig, ElevationCustomShadows, ElevationGlobalRampConfig, ElevationGlobalRampSettings, ElevationLevel, ElevationPreset, ElevationSurfaceColor, ExtractUrlFromFontFaceRule, Flex, FlexAlignContent, FlexAlignItems, FlexAlignSelf, FlexBasis, FlexDirection, FlexGrow, FlexJustifyContent, FlexShrink, FlexStyleProps, FlexWrap, FontAlias, FontConfig, FontCssVar, FontFamilyConfig, FontSize, FontSizeConfig, FontSlantConfig, FontType, FontWeightConfig, FontWeightDescriptive, FontWeightNumeric, FontWidthConfig, ForegroundColor, ForegroundPalette, ForegroundPaletteAlias, GenericIconComponent, GlobalDefaultsConfig, HighContrastMode, Hue, HueStep, IconButtonSize, IconPixelSize, IconSize, IconSizeConfig, IconSlotRenderProps, IconVariant, ImagePropsWithImgProps, ImageStyleProps, ImgElementProps, InputSize, LayoutStyleProps, LineClampAlias, LineColor, LineHeight, LineHeightConfig, LinePalette, LinePaletteAlias, LinkTextVariant, LinkVariant, LinkableValue, MaxLengthArray, Modes, MotionConfig, MotionCssVar, MotionSpringConfig, MotionSpringConfigOptions, MotionVariant, MotionVariantSpeed, MotionVariantValues, NestedBorderRadiusStyleProps, OpacityStep, Overflow, Palette, PaletteConfig, PaletteType, PaletteValue, Percentage, PercentageUnit, PixelsUnit, PlatformMode, Position, PropertyToPaletteAliasMap, RGBAUnit, RGBColorValue, RGBUnit, RadioSize, RadioValue, RadioVariant, RegionMode, RemsUnit, SVGElementProps, ScaleConfig, ScaleEffect, ScaleMode, ScaleModeConfig, ScaleModeForApp, ShadowAlwaysColor, ShadowColor, ShadowColorConfig, ShadowConfig, ShadowOffset, ShadowOpacity, ShadowPalette, ShadowPaletteAlias, ShadowPaletteColor, ShadowPreset, ShadowSpectrumColor, ShadowSpreadRadius, ShadowStyleProps, ShadowType, ShadowTypeConfig, ShadowVariant, ShadowVariantConfig, ShadowVariantInvert, ShadowVariantWithElevation, ShadowVariantWithInvert, SharedPaletteAlias, SizeStyleProps, SpacingAlias, SpacingConfig, SpacingStyleProps, SpectrumColor, SpectrumConfig, SpectrumValue, StateStyleProps, StyleProps, SwitchSize, TShirtSize, TShirtSizeCommon, TextDecorationLine, TextProperty, TextStyleProps, TextTransform, TextTransformConfig, TextVariant, TextVariantTypography, TextVariantUi, TextVariantWithoutEmphasized, ToastPosition, ToastSize, ToastVariant, TooltipPlacement, TooltipSize, TooltipVariant, TransitionDelay, TransitionDuration, TransitionTiming, TypographyConfig, TypographyResponsiveProperty, TypographyStyle, TypographyStyleProperty, TypographyUnitValue, UdsCssVar, UnitlessUnit, UniversalAvatarBaseProps, UniversalAvatarIconProps, UniversalAvatarProps, UniversalAvatarTextProps, UniversalBadgeProps, UniversalBoxProps, UniversalButtonProps, UniversalCheckboxProps, UniversalChipBaseProps, UniversalChipButtonProps, UniversalChipDismissibleProps, UniversalChipLinkProps, UniversalChipToggleProps, UniversalDividerProps, UniversalFormLabelProps, UniversalIconProps, UniversalIconSlot, UniversalImageProps, UniversalInputProps, UniversalLinkProps, UniversalMenuItemProps, UniversalPressableProps, UniversalRadioGroupProps, UniversalRadioProps, UniversalStackProps, UniversalSwitchProps, UniversalTextProps, UniversalToastProps, UniversalTokensConfigAutoBase, UniversalTokensConfigBase, UniversalTokensConfigGeneric, UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "./types/dist/index.cjs";
|
|
4
|
+
import { AlwaysPaletteAlias, AlwaysPaletteAliasWithPrefix, AlwaysPaletteColor, Animation, AriaAttribute, AvatarAbbreviationStrategy, AvatarShape, AvatarSize, AvatarSizeConfig, AvatarVariant, BackgroundColor, BackgroundPalette, BackgroundPaletteAlias, BackgroundStyleProps, BackwardsCompatibleReactElement, BadgeSize, BadgeVariant, BorderRadius, BorderRadiusConfig, BorderStyleProps, BorderWidth, BorderWidthConfig, BorderWidthWithElevation, Breakpoint, BreakpointValue, BreakpointWithBase, BreakpointsConfig, ButtonPalette, ButtonPaletteColor, ButtonSize, ButtonSpectrumColor, ButtonVariant, ButtonVariantFlat, CheckboxSize, CheckboxValue, CheckboxVariant, ChipSize, ChipVariant, ColorMode, ColorModeConfig, ColorModeForApp, ColorsConfig, CustomSizingStyleProps, DataAttribute, DeprecatedAlwaysPaletteAlias, Display, DividerVariant, ElevationAlias, ElevationBackgroundFillColor, ElevationBorderColor, ElevationConfig, ElevationCustomShadows, ElevationGlobalRampConfig, ElevationGlobalRampSettings, ElevationLevel, ElevationPreset, ElevationSurfaceColor, ExtractUrlFromFontFaceRule, Flex, FlexAlignContent, FlexAlignItems, FlexAlignSelf, FlexBasis, FlexDirection, FlexGrow, FlexJustifyContent, FlexShrink, FlexStyleProps, FlexWrap, FontAlias, FontConfig, FontCssVar, FontFamilyConfig, FontSize, FontSizeConfig, FontSlantConfig, FontType, FontWeightConfig, FontWeightDescriptive, FontWeightNumeric, FontWidthConfig, ForegroundColor, ForegroundPalette, ForegroundPaletteAlias, GenericIconComponent, GlobalDefaultsConfig, HighContrastMode, Hue, HueStep, IconButtonSize, IconPixelSize, IconSize, IconSizeConfig, IconSlotRenderProps, IconVariant, ImagePropsWithImgProps, ImageStyleProps, ImgElementProps, InputSize, LayoutStyleProps, LineClampAlias, LineColor, LineHeight, LineHeightConfig, LinePalette, LinePaletteAlias, LinkTextVariant, LinkVariant, LinkableValue, MaxLengthArray, Modes, MotionConfig, MotionCssVar, MotionSpringConfig, MotionSpringConfigOptions, MotionVariant, MotionVariantSpeed, MotionVariantValues, NestedBorderRadiusStyleProps, OpacityStep, Overflow, Palette, PaletteConfig, PaletteType, PaletteValue, Percentage, PercentageUnit, PixelsUnit, PlatformMode, Position, PropertyToPaletteAliasMap, RGBAUnit, RGBColorValue, RGBUnit, RadioSize, RadioValue, RadioVariant, RegionMode, RemsUnit, SVGElementProps, ScaleConfig, ScaleEffect, ScaleMode, ScaleModeConfig, ScaleModeForApp, ShadowAlwaysColor, ShadowColor, ShadowColorConfig, ShadowConfig, ShadowOffset, ShadowOpacity, ShadowPalette, ShadowPaletteAlias, ShadowPaletteColor, ShadowPreset, ShadowSpectrumColor, ShadowSpreadRadius, ShadowStyleProps, ShadowType, ShadowTypeConfig, ShadowVariant, ShadowVariantConfig, ShadowVariantInvert, ShadowVariantWithElevation, ShadowVariantWithInvert, SharedPaletteAlias, SizeStyleProps, SpacingAlias, SpacingConfig, SpacingStyleProps, SpectrumColor, SpectrumConfig, SpectrumRGB, SpectrumValue, SpectrumValueEntry, StateStyleProps, StyleProps, SwitchSize, TShirtSize, TShirtSizeCommon, TextDecorationLine, TextProperty, TextStyleProps, TextTransform, TextTransformConfig, TextVariant, TextVariantTypography, TextVariantUi, TextVariantWithoutEmphasized, ToastPosition, ToastSize, ToastVariant, TooltipPlacement, TooltipSize, TooltipVariant, TransitionDelay, TransitionDuration, TransitionTiming, TypographyConfig, TypographyResponsiveProperty, TypographyStyle, TypographyStyleProperty, TypographyUnitValue, UdsCssVar, UnitlessUnit, UniversalAvatarBaseProps, UniversalAvatarIconProps, UniversalAvatarProps, UniversalAvatarTextProps, UniversalBadgeProps, UniversalBoxProps, UniversalButtonProps, UniversalCheckboxProps, UniversalChipBaseProps, UniversalChipButtonProps, UniversalChipDismissibleProps, UniversalChipLinkProps, UniversalChipToggleProps, UniversalDividerProps, UniversalFormLabelProps, UniversalIconProps, UniversalIconSlot, UniversalImageProps, UniversalInputProps, UniversalLinkProps, UniversalMenuItemProps, UniversalPressableProps, UniversalRadioGroupProps, UniversalRadioProps, UniversalStackProps, UniversalSwitchProps, UniversalTextProps, UniversalToastProps, UniversalTokensConfigAutoBase, UniversalTokensConfigBase, UniversalTokensConfigGeneric, UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "./types/dist/index.cjs";
|
|
5
5
|
import { AllPossibleProperties, ComponentConfig, ComponentStateConfig, LayerConfig, PossibleStates, PossibleStatesWithRest, SubComponentConfig, VariantConfig, VariantConfigWithComponentStates, VariantConfigWithProperties } from "./automated-config/dist/types/ComponentConfig.cjs";
|
|
6
6
|
import { ConfigurablePropertiesName, SelectedConfigurableProperty } from "./automated-config/dist/properties.cjs";
|
|
7
7
|
import { ComponentSchema, buildConfigSchema, findFixtureType } from "./automated-config/dist/utils/buildConfigSchema.cjs";
|
|
@@ -31,6 +31,7 @@ import { entries } from "./tokens/utils/entries.cjs";
|
|
|
31
31
|
import { fromEntries } from "./tokens/utils/fromEntries.cjs";
|
|
32
32
|
import { FontUrlConfig, FontUrlMap, fontUrls, getFontUrls, getFontUrlsByIds } from "./tokens/utils/getFontUrls.cjs";
|
|
33
33
|
import { mapValues } from "./tokens/utils/mapValues.cjs";
|
|
34
|
+
import { spectrumRgbToString, toRgbChannel, toSpectrumValueEntry } from "./tokens/utils/spectrum.cjs";
|
|
34
35
|
import "./tokens/index.cjs";
|
|
35
36
|
import { Box, BoxProps } from "./components/Box.cjs";
|
|
36
37
|
import { Divider, DividerProps } from "./components/Divider/Divider.cjs";
|
|
@@ -87,4 +88,4 @@ import { UDSConfigProvider, UDSConfigProviderProps } from "./components/client/p
|
|
|
87
88
|
import "./components/index.cjs";
|
|
88
89
|
import "./runtime/index.cjs";
|
|
89
90
|
import { SetState } from "./types.cjs";
|
|
90
|
-
export { ALWAYS_PREFIX, AVATAR_SIZE_PREFIX, AllPossibleProperties, AllSelectors, AllVariantKeys, AlwaysPaletteAlias, AlwaysPaletteAliasWithPrefix, AlwaysPaletteColor, Animation, AriaAttribute, AutoComponentName, Avatar, AvatarAbbreviationStrategy, AvatarConfig, AvatarIcon, AvatarIconProps, AvatarImage, AvatarImageProps, AvatarProps, AvatarShape, AvatarSize, AvatarSizeConfig, AvatarText, AvatarTextProps, AvatarVariant, BACKGROUND_BLUR_COLOR_PREFIX, BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX, BACKGROUND_BLUR_RADIUS_PREFIX, BACKGROUND_COLOR_PREFIX, BORDER_RADIUS_PREFIX, BORDER_WIDTH_PREFIX, BUTTON_GAP_VAR, BUTTON_SCALE_EFFECT, BUTTON_SCALE_EFFECT_HOVER, BUTTON_SCALE_EFFECT_PRESSED, BUTTON_SCALE_EFFECT_REST, BackgroundColor, BackgroundPalette, BackgroundPaletteAlias, BackgroundStyleProps, BackwardsCompatibleReactElement, Badge, BadgeConfig, BadgeProps, BadgeSize, BadgeVariant, BaseSelector, BorderRadius, BorderRadiusConfig, BorderStyleProps, BorderWidth, BorderWidthConfig, BorderWidthWithElevation, Box, BoxProps, Breakpoint, BreakpointValue, BreakpointWithBase, BreakpointsConfig, Button, ButtonConfig, ButtonPalette, ButtonPaletteColor, ButtonProps, ButtonSize, ButtonSpectrumColor, ButtonVariant, ButtonVariantFlat, Checkbox, CheckboxConfig, CheckboxProps, CheckboxSize, CheckboxValue, CheckboxVariant, Chip, ChipButton, ChipButtonProps, ChipConfig, ChipDismissible, ChipDismissibleProps, ChipLink, ChipLinkProps, ChipProps, ChipSize, ChipToggle, ChipToggleProps, ChipVariant, ColorMode, ColorModeConfig, ColorModeForApp, ColorsConfig, ComponentConfig, ComponentSchema, ComponentStateConfig, ConfigurableComponentName, ConfigurablePropertiesName, CssStyleObject, CustomSizingStyleProps, DARK_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE, DEFAULT_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE_FOR_APP, DEFAULT_HIGH_CONTRAST_MODE, DEFAULT_REGION_MODE, DEFAULT_SCALE_MODE, DEFAULT_SCALE_MODE_CLASSNAME, DEFAULT_SCALE_MODE_FOR_APP, DROP_SHADOW_PREFIX, DataAttribute, DeprecatedAlwaysPaletteAlias, Display, Divider, DividerConfig, DividerProps, DividerVariant, ElevationAlias, ElevationBackgroundFillColor, ElevationBorderColor, ElevationConfig, ElevationCustomShadows, ElevationGlobalRampConfig, ElevationGlobalRampSettings, ElevationLevel, ElevationPreset, ElevationSurfaceColor, ExtractUrlFromFontFaceRule, FONT_DECLARATIONS_MAP, FONT_FAMILY_PREFIX, FONT_SIZE_PREFIX, FONT_SLANT_PREFIX, FONT_WEIGHT_PREFIX, FONT_WIDTH_PREFIX, Flex, FlexAlignContent, FlexAlignItems, FlexAlignSelf, FlexBasis, FlexDirection, FlexGrow, FlexJustifyContent, FlexShrink, FlexStyleProps, FlexWrap, FontAlias, FontAxisConfig, FontConfig, FontCssVar, FontDeclarationConfig, FontDeclarationItemConfig, FontDeclarationMap, FontFamilyCDNUrl, FontFamilyConfig, FontID, FontSize, FontSizeConfig, FontSlantConfig, FontType, FontUrlConfig, FontUrlMap, FontWeightConfig, FontWeightDescriptive, FontWeightForFont, FontWeightNumeric, FontWidthConfig, ForegroundColor, ForegroundPalette, ForegroundPaletteAlias, FormLabel, FormLabelProps, GenericIconComponent, GetMotionVarParams, GlobalDefaultsConfig, HStack, HStackProps, HighContrastMode, Hue, HueStep, ICON_SIZE_PREFIX, INVERT_COLOR_MODE_CLASSNAME, Icon, IconButton, IconButtonConfig, IconButtonProps, IconButtonSize, IconPixelSize, IconProps, IconPropsWithSVGProps, IconSize, IconSizeConfig, IconSlotRenderProps, IconVariant, Image, ImageProps, ImagePropsWithImgProps, ImageStyleProps, ImgElementProps, Input, InputConfig, InputHelpText, InputHelpTextProps, InputProps, InputSize, LARGE_SCALE_MODE_CLASSNAME, LETTER_SPACING_PREFIX, LIGHT_COLOR_MODE_CLASSNAME, LINE_COLOR_PREFIX, LINE_HEIGHT_PREFIX, LayerConfig, LayoutStyleProps, LineClampAlias, LineColor, LineHeight, LineHeightConfig, LinePalette, LinePaletteAlias, Link, LinkConfig, LinkProps, LinkTextVariant, LinkVariant, LinkableValue, MEDIUM_SCALE_MODE_CLASSNAME, MOTION_PREFIX, MaxLengthArray, Menu_index_d_exports as Menu, MenuContentConfig, MenuContentProps, MenuDividerProps, MenuItemCheckboxProps, MenuItemConfig, MenuItemProps, MenuPlacement, MenuProviderProps, MenuTriggerProps, Modes, MotionConfig, MotionCssVar, MotionSpringConfig, MotionSpringConfigOptions, MotionVariant, MotionVariantSpeed, MotionVariantValues, NestedBorderRadiusStyleProps, OpacityStep, Overflow, PSEUDO_STYLE_SELECTOR_MAP, Palette, PaletteConfig, PaletteType, PaletteValue, ParentVariantSelector, Percentage, PercentageUnit, PixelsUnit, PlatformMode, Position, PossibleStates, PossibleStatesWithRest, Pressable, PressableProps, PropertyToPaletteAliasMap, RGBAUnit, RGBColorValue, RGBUnit, Radio, RadioConfig, RadioGroupProvider, RadioGroupProviderProps, RadioProps, RadioSize, RadioValue, RadioVariant, RegionMode, RemsUnit, ResolvedTokensConfig, SMALL_SCALE_MODE_CLASSNAME, SPECTRUM_COLOR_PREFIX, SVGElementProps, SYSTEM_COLOR_MODE_CLASSNAME, ScaleConfig, ScaleEffect, ScaleMode, ScaleModeConfig, ScaleModeForApp, SelectedConfigurableProperty, SetState, ShadowAlwaysColor, ShadowColor, ShadowColorConfig, ShadowConfig, ShadowOffset, ShadowOpacity, ShadowPalette, ShadowPaletteAlias, ShadowPaletteColor, ShadowPreset, ShadowSpectrumColor, ShadowSpreadRadius, ShadowStyleProps, ShadowType, ShadowTypeConfig, ShadowVariant, ShadowVariantConfig, ShadowVariantInvert, ShadowVariantWithElevation, ShadowVariantWithInvert, SharedPaletteAlias, SizeStyleProps, SpacingAlias, SpacingConfig, SpacingStyleProps, SpectrumColor, SpectrumConfig, SpectrumValue, SpringMotionConfig, SpringMotionConfigProps, StateStyleProps, StyleProps, SubComponentConfig, Switch, SwitchConfig, SwitchProps, SwitchSize, TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES, TEXT_RESPONSIVE_CLASSNAME, TEXT_TRANSFORM_PREFIX, TShirtSize, TShirtSizeCommon, Text, TextDecorationLine, TextProperty, TextProps, TextStyleProps, TextTransform, TextTransformConfig, TextVariant, TextVariantTypography, TextVariantUi, TextVariantWithoutEmphasized, Toast, ToastConfig, ToastContainer, ToastContainerProps, ToastLoadingPromise, ToastPortal, ToastPortalProps, ToastPosition, ToastProps, ToastSize, ToastVariant, Tooltip, TooltipConfig, TooltipContent, UniversalTooltipContentProps as TooltipContentProps, TooltipPlacement, UniversalTooltipProps as TooltipProps, TooltipSize, TooltipTrigger, UniversalTooltipTriggerProps as TooltipTriggerProps, TooltipVariant, TransitionDelay, TransitionDuration, TransitionTiming, TypographyConfig, TypographyResponsiveProperty, TypographyStyle, TypographyStyleProperty, TypographyUnitValue, UDSBreakpointsConfigContextType, UDSBreakpointsConfigProvider, UDSBreakpointsConfigProviderProps, UDSConfigContextType, UDSConfigProvider, UDSConfigProviderProps, UDSToastConfigContextType, UDSToastConfigProvider, UDSToastConfigProviderProps, UDSTooltipConfigContextType, UDSTooltipConfigProvider, UDSTooltipConfigProviderProps, UDS_PREFIX, UdsCssVar, UnitlessUnit, UniversalAvatarBaseProps, UniversalAvatarIconProps, UniversalAvatarImageProps, UniversalAvatarProps, UniversalAvatarTextProps, UniversalBadgeProps, UniversalBoxProps, UniversalButtonProps, UniversalCheckboxProps, UniversalChipBaseProps, UniversalChipButtonProps, UniversalChipDismissibleProps, UniversalChipLinkProps, UniversalChipProps, UniversalChipToggleProps, UniversalDividerProps, UniversalFormLabelProps, UniversalIconButtonProps, UniversalIconProps, UniversalIconSlot, UniversalImageProps, UniversalInputProps, UniversalLinkProps, UniversalMenuItemProps, UniversalPressableProps, UniversalRadioGroupProps, UniversalRadioProps, UniversalStackProps, UniversalSwitchProps, UniversalTextProps, UniversalToastProps, UniversalTokensConfig, UniversalTokensConfigAuto, UniversalTokensConfigAutoBase, UniversalTokensConfigBase, UniversalTokensConfigGeneric, UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps, VStack, VStackProps, VariantConfig, VariantConfigWithComponentStates, VariantConfigWithProperties, XLARGE_SCALE_MODE_CLASSNAME, XSMALL_SCALE_MODE_CLASSNAME, XXLARGE_SCALE_MODE_CLASSNAME, XXXLARGE_SCALE_MODE_CLASSNAME, alwaysPalette, buildConfigSchema, cartesianProduct, coalesceConfigVariant, configToBreakpointsConfigContext, configToToastConfigContext, configToTooltipConfigContext, configToUDSConfigContext, createComponentStates, createConfigurableProperty, createLayerConfig, createSubComponentConfig, createToast, createVariantConfig, createVariantConfigWithComponentStates, createVariantConfigWithProperties, cva, cx, deprecatedAlwaysPalette, entries, findFixtureType, fontUrls, fromEntries, generateClassName, generateConfigStyles, generateDeclaration, generateDefaultClassName, generateKeyFromFlatConfigPath, generateSchemaKey, generateStyles, getConfigDefaultValue, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, getFontUrls, getFontUrlsByIds, getMotionVar, getShadowLayerValue, getStyles, getStylesCacheKeySymbol, isConfigDefaultValue, mapValues, newAlwaysPalette, parseButtonVariantFlat, shadow, statePseudoMapDocsMode, textVariantsSafe, useBreakpointsConfig, useToastConfig, variants };
|
|
91
|
+
export { ALWAYS_PREFIX, AVATAR_SIZE_PREFIX, AllPossibleProperties, AllSelectors, AllVariantKeys, AlwaysPaletteAlias, AlwaysPaletteAliasWithPrefix, AlwaysPaletteColor, Animation, AriaAttribute, AutoComponentName, Avatar, AvatarAbbreviationStrategy, AvatarConfig, AvatarIcon, AvatarIconProps, AvatarImage, AvatarImageProps, AvatarProps, AvatarShape, AvatarSize, AvatarSizeConfig, AvatarText, AvatarTextProps, AvatarVariant, BACKGROUND_BLUR_COLOR_PREFIX, BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX, BACKGROUND_BLUR_RADIUS_PREFIX, BACKGROUND_COLOR_PREFIX, BORDER_RADIUS_PREFIX, BORDER_WIDTH_PREFIX, BUTTON_GAP_VAR, BUTTON_SCALE_EFFECT, BUTTON_SCALE_EFFECT_HOVER, BUTTON_SCALE_EFFECT_PRESSED, BUTTON_SCALE_EFFECT_REST, BackgroundColor, BackgroundPalette, BackgroundPaletteAlias, BackgroundStyleProps, BackwardsCompatibleReactElement, Badge, BadgeConfig, BadgeProps, BadgeSize, BadgeVariant, BaseSelector, BorderRadius, BorderRadiusConfig, BorderStyleProps, BorderWidth, BorderWidthConfig, BorderWidthWithElevation, Box, BoxProps, Breakpoint, BreakpointValue, BreakpointWithBase, BreakpointsConfig, Button, ButtonConfig, ButtonPalette, ButtonPaletteColor, ButtonProps, ButtonSize, ButtonSpectrumColor, ButtonVariant, ButtonVariantFlat, Checkbox, CheckboxConfig, CheckboxProps, CheckboxSize, CheckboxValue, CheckboxVariant, Chip, ChipButton, ChipButtonProps, ChipConfig, ChipDismissible, ChipDismissibleProps, ChipLink, ChipLinkProps, ChipProps, ChipSize, ChipToggle, ChipToggleProps, ChipVariant, ColorMode, ColorModeConfig, ColorModeForApp, ColorsConfig, ComponentConfig, ComponentSchema, ComponentStateConfig, ConfigurableComponentName, ConfigurablePropertiesName, CssStyleObject, CustomSizingStyleProps, DARK_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE, DEFAULT_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE_FOR_APP, DEFAULT_HIGH_CONTRAST_MODE, DEFAULT_REGION_MODE, DEFAULT_SCALE_MODE, DEFAULT_SCALE_MODE_CLASSNAME, DEFAULT_SCALE_MODE_FOR_APP, DROP_SHADOW_PREFIX, DataAttribute, DeprecatedAlwaysPaletteAlias, Display, Divider, DividerConfig, DividerProps, DividerVariant, ElevationAlias, ElevationBackgroundFillColor, ElevationBorderColor, ElevationConfig, ElevationCustomShadows, ElevationGlobalRampConfig, ElevationGlobalRampSettings, ElevationLevel, ElevationPreset, ElevationSurfaceColor, ExtractUrlFromFontFaceRule, FONT_DECLARATIONS_MAP, FONT_FAMILY_PREFIX, FONT_SIZE_PREFIX, FONT_SLANT_PREFIX, FONT_WEIGHT_PREFIX, FONT_WIDTH_PREFIX, Flex, FlexAlignContent, FlexAlignItems, FlexAlignSelf, FlexBasis, FlexDirection, FlexGrow, FlexJustifyContent, FlexShrink, FlexStyleProps, FlexWrap, FontAlias, FontAxisConfig, FontConfig, FontCssVar, FontDeclarationConfig, FontDeclarationItemConfig, FontDeclarationMap, FontFamilyCDNUrl, FontFamilyConfig, FontID, FontSize, FontSizeConfig, FontSlantConfig, FontType, FontUrlConfig, FontUrlMap, FontWeightConfig, FontWeightDescriptive, FontWeightForFont, FontWeightNumeric, FontWidthConfig, ForegroundColor, ForegroundPalette, ForegroundPaletteAlias, FormLabel, FormLabelProps, GenericIconComponent, GetMotionVarParams, GlobalDefaultsConfig, HStack, HStackProps, HighContrastMode, Hue, HueStep, ICON_SIZE_PREFIX, INVERT_COLOR_MODE_CLASSNAME, Icon, IconButton, IconButtonConfig, IconButtonProps, IconButtonSize, IconPixelSize, IconProps, IconPropsWithSVGProps, IconSize, IconSizeConfig, IconSlotRenderProps, IconVariant, Image, ImageProps, ImagePropsWithImgProps, ImageStyleProps, ImgElementProps, Input, InputConfig, InputHelpText, InputHelpTextProps, InputProps, InputSize, LARGE_SCALE_MODE_CLASSNAME, LETTER_SPACING_PREFIX, LIGHT_COLOR_MODE_CLASSNAME, LINE_COLOR_PREFIX, LINE_HEIGHT_PREFIX, LayerConfig, LayoutStyleProps, LineClampAlias, LineColor, LineHeight, LineHeightConfig, LinePalette, LinePaletteAlias, Link, LinkConfig, LinkProps, LinkTextVariant, LinkVariant, LinkableValue, MEDIUM_SCALE_MODE_CLASSNAME, MOTION_PREFIX, MaxLengthArray, Menu_index_d_exports as Menu, MenuContentConfig, MenuContentProps, MenuDividerProps, MenuItemCheckboxProps, MenuItemConfig, MenuItemProps, MenuPlacement, MenuProviderProps, MenuTriggerProps, Modes, MotionConfig, MotionCssVar, MotionSpringConfig, MotionSpringConfigOptions, MotionVariant, MotionVariantSpeed, MotionVariantValues, NestedBorderRadiusStyleProps, OpacityStep, Overflow, PSEUDO_STYLE_SELECTOR_MAP, Palette, PaletteConfig, PaletteType, PaletteValue, ParentVariantSelector, Percentage, PercentageUnit, PixelsUnit, PlatformMode, Position, PossibleStates, PossibleStatesWithRest, Pressable, PressableProps, PropertyToPaletteAliasMap, RGBAUnit, RGBColorValue, RGBUnit, Radio, RadioConfig, RadioGroupProvider, RadioGroupProviderProps, RadioProps, RadioSize, RadioValue, RadioVariant, RegionMode, RemsUnit, ResolvedTokensConfig, SMALL_SCALE_MODE_CLASSNAME, SPECTRUM_COLOR_PREFIX, SVGElementProps, SYSTEM_COLOR_MODE_CLASSNAME, ScaleConfig, ScaleEffect, ScaleMode, ScaleModeConfig, ScaleModeForApp, SelectedConfigurableProperty, SetState, ShadowAlwaysColor, ShadowColor, ShadowColorConfig, ShadowConfig, ShadowOffset, ShadowOpacity, ShadowPalette, ShadowPaletteAlias, ShadowPaletteColor, ShadowPreset, ShadowSpectrumColor, ShadowSpreadRadius, ShadowStyleProps, ShadowType, ShadowTypeConfig, ShadowVariant, ShadowVariantConfig, ShadowVariantInvert, ShadowVariantWithElevation, ShadowVariantWithInvert, SharedPaletteAlias, SizeStyleProps, SpacingAlias, SpacingConfig, SpacingStyleProps, SpectrumColor, SpectrumConfig, SpectrumRGB, SpectrumValue, SpectrumValueEntry, SpringMotionConfig, SpringMotionConfigProps, StateStyleProps, StyleProps, SubComponentConfig, Switch, SwitchConfig, SwitchProps, SwitchSize, TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES, TEXT_RESPONSIVE_CLASSNAME, TEXT_TRANSFORM_PREFIX, TShirtSize, TShirtSizeCommon, Text, TextDecorationLine, TextProperty, TextProps, TextStyleProps, TextTransform, TextTransformConfig, TextVariant, TextVariantTypography, TextVariantUi, TextVariantWithoutEmphasized, Toast, ToastConfig, ToastContainer, ToastContainerProps, ToastLoadingPromise, ToastPortal, ToastPortalProps, ToastPosition, ToastProps, ToastSize, ToastVariant, Tooltip, TooltipConfig, TooltipContent, UniversalTooltipContentProps as TooltipContentProps, TooltipPlacement, UniversalTooltipProps as TooltipProps, TooltipSize, TooltipTrigger, UniversalTooltipTriggerProps as TooltipTriggerProps, TooltipVariant, TransitionDelay, TransitionDuration, TransitionTiming, TypographyConfig, TypographyResponsiveProperty, TypographyStyle, TypographyStyleProperty, TypographyUnitValue, UDSBreakpointsConfigContextType, UDSBreakpointsConfigProvider, UDSBreakpointsConfigProviderProps, UDSConfigContextType, UDSConfigProvider, UDSConfigProviderProps, UDSToastConfigContextType, UDSToastConfigProvider, UDSToastConfigProviderProps, UDSTooltipConfigContextType, UDSTooltipConfigProvider, UDSTooltipConfigProviderProps, UDS_PREFIX, UdsCssVar, UnitlessUnit, UniversalAvatarBaseProps, UniversalAvatarIconProps, UniversalAvatarImageProps, UniversalAvatarProps, UniversalAvatarTextProps, UniversalBadgeProps, UniversalBoxProps, UniversalButtonProps, UniversalCheckboxProps, UniversalChipBaseProps, UniversalChipButtonProps, UniversalChipDismissibleProps, UniversalChipLinkProps, UniversalChipProps, UniversalChipToggleProps, UniversalDividerProps, UniversalFormLabelProps, UniversalIconButtonProps, UniversalIconProps, UniversalIconSlot, UniversalImageProps, UniversalInputProps, UniversalLinkProps, UniversalMenuItemProps, UniversalPressableProps, UniversalRadioGroupProps, UniversalRadioProps, UniversalStackProps, UniversalSwitchProps, UniversalTextProps, UniversalToastProps, UniversalTokensConfig, UniversalTokensConfigAuto, UniversalTokensConfigAutoBase, UniversalTokensConfigBase, UniversalTokensConfigGeneric, UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps, VStack, VStackProps, VariantConfig, VariantConfigWithComponentStates, VariantConfigWithProperties, XLARGE_SCALE_MODE_CLASSNAME, XSMALL_SCALE_MODE_CLASSNAME, XXLARGE_SCALE_MODE_CLASSNAME, XXXLARGE_SCALE_MODE_CLASSNAME, alwaysPalette, buildConfigSchema, cartesianProduct, coalesceConfigVariant, configToBreakpointsConfigContext, configToToastConfigContext, configToTooltipConfigContext, configToUDSConfigContext, createComponentStates, createConfigurableProperty, createLayerConfig, createSubComponentConfig, createToast, createVariantConfig, createVariantConfigWithComponentStates, createVariantConfigWithProperties, cva, cx, deprecatedAlwaysPalette, entries, findFixtureType, fontUrls, fromEntries, generateClassName, generateConfigStyles, generateDeclaration, generateDefaultClassName, generateKeyFromFlatConfigPath, generateSchemaKey, generateStyles, getConfigDefaultValue, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, getFontUrls, getFontUrlsByIds, getMotionVar, getShadowLayerValue, getStyles, getStylesCacheKeySymbol, isConfigDefaultValue, mapValues, newAlwaysPalette, parseButtonVariantFlat, shadow, spectrumRgbToString, statePseudoMapDocsMode, textVariantsSafe, toRgbChannel, toSpectrumValueEntry, useBreakpointsConfig, useToastConfig, variants };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { variants } from "./styles/variants.js";
|
|
3
3
|
import { AvatarConfig, BadgeConfig, ButtonConfig, CheckboxConfig, ChipConfig, DividerConfig, IconButtonConfig, InputConfig, LinkConfig, MenuContentConfig, MenuItemConfig, RadioConfig, SwitchConfig, ToastConfig, TooltipConfig } from "./automated-config/dist/generated/generatedConfigs.js";
|
|
4
|
-
import { AlwaysPaletteAlias, AlwaysPaletteAliasWithPrefix, AlwaysPaletteColor, Animation, AriaAttribute, AvatarAbbreviationStrategy, AvatarShape, AvatarSize, AvatarSizeConfig, AvatarVariant, BackgroundColor, BackgroundPalette, BackgroundPaletteAlias, BackgroundStyleProps, BackwardsCompatibleReactElement, BadgeSize, BadgeVariant, BorderRadius, BorderRadiusConfig, BorderStyleProps, BorderWidth, BorderWidthConfig, BorderWidthWithElevation, Breakpoint, BreakpointValue, BreakpointWithBase, BreakpointsConfig, ButtonPalette, ButtonPaletteColor, ButtonSize, ButtonSpectrumColor, ButtonVariant, ButtonVariantFlat, CheckboxSize, CheckboxValue, CheckboxVariant, ChipSize, ChipVariant, ColorMode, ColorModeConfig, ColorModeForApp, ColorsConfig, CustomSizingStyleProps, DataAttribute, DeprecatedAlwaysPaletteAlias, Display, DividerVariant, ElevationAlias, ElevationBackgroundFillColor, ElevationBorderColor, ElevationConfig, ElevationCustomShadows, ElevationGlobalRampConfig, ElevationGlobalRampSettings, ElevationLevel, ElevationPreset, ElevationSurfaceColor, ExtractUrlFromFontFaceRule, Flex, FlexAlignContent, FlexAlignItems, FlexAlignSelf, FlexBasis, FlexDirection, FlexGrow, FlexJustifyContent, FlexShrink, FlexStyleProps, FlexWrap, FontAlias, FontConfig, FontCssVar, FontFamilyConfig, FontSize, FontSizeConfig, FontSlantConfig, FontType, FontWeightConfig, FontWeightDescriptive, FontWeightNumeric, FontWidthConfig, ForegroundColor, ForegroundPalette, ForegroundPaletteAlias, GenericIconComponent, GlobalDefaultsConfig, HighContrastMode, Hue, HueStep, IconButtonSize, IconPixelSize, IconSize, IconSizeConfig, IconSlotRenderProps, IconVariant, ImagePropsWithImgProps, ImageStyleProps, ImgElementProps, InputSize, LayoutStyleProps, LineClampAlias, LineColor, LineHeight, LineHeightConfig, LinePalette, LinePaletteAlias, LinkTextVariant, LinkVariant, LinkableValue, MaxLengthArray, Modes, MotionConfig, MotionCssVar, MotionSpringConfig, MotionSpringConfigOptions, MotionVariant, MotionVariantSpeed, MotionVariantValues, NestedBorderRadiusStyleProps, OpacityStep, Overflow, Palette, PaletteConfig, PaletteType, PaletteValue, Percentage, PercentageUnit, PixelsUnit, PlatformMode, Position, PropertyToPaletteAliasMap, RGBAUnit, RGBColorValue, RGBUnit, RadioSize, RadioValue, RadioVariant, RegionMode, RemsUnit, SVGElementProps, ScaleConfig, ScaleEffect, ScaleMode, ScaleModeConfig, ScaleModeForApp, ShadowAlwaysColor, ShadowColor, ShadowColorConfig, ShadowConfig, ShadowOffset, ShadowOpacity, ShadowPalette, ShadowPaletteAlias, ShadowPaletteColor, ShadowPreset, ShadowSpectrumColor, ShadowSpreadRadius, ShadowStyleProps, ShadowType, ShadowTypeConfig, ShadowVariant, ShadowVariantConfig, ShadowVariantInvert, ShadowVariantWithElevation, ShadowVariantWithInvert, SharedPaletteAlias, SizeStyleProps, SpacingAlias, SpacingConfig, SpacingStyleProps, SpectrumColor, SpectrumConfig, SpectrumValue, StateStyleProps, StyleProps, SwitchSize, TShirtSize, TShirtSizeCommon, TextDecorationLine, TextProperty, TextStyleProps, TextTransform, TextTransformConfig, TextVariant, TextVariantTypography, TextVariantUi, TextVariantWithoutEmphasized, ToastPosition, ToastSize, ToastVariant, TooltipPlacement, TooltipSize, TooltipVariant, TransitionDelay, TransitionDuration, TransitionTiming, TypographyConfig, TypographyResponsiveProperty, TypographyStyle, TypographyStyleProperty, TypographyUnitValue, UdsCssVar, UnitlessUnit, UniversalAvatarBaseProps, UniversalAvatarIconProps, UniversalAvatarProps, UniversalAvatarTextProps, UniversalBadgeProps, UniversalBoxProps, UniversalButtonProps, UniversalCheckboxProps, UniversalChipBaseProps, UniversalChipButtonProps, UniversalChipDismissibleProps, UniversalChipLinkProps, UniversalChipToggleProps, UniversalDividerProps, UniversalFormLabelProps, UniversalIconProps, UniversalIconSlot, UniversalImageProps, UniversalInputProps, UniversalLinkProps, UniversalMenuItemProps, UniversalPressableProps, UniversalRadioGroupProps, UniversalRadioProps, UniversalStackProps, UniversalSwitchProps, UniversalTextProps, UniversalToastProps, UniversalTokensConfigAutoBase, UniversalTokensConfigBase, UniversalTokensConfigGeneric, UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "./types/dist/index.js";
|
|
4
|
+
import { AlwaysPaletteAlias, AlwaysPaletteAliasWithPrefix, AlwaysPaletteColor, Animation, AriaAttribute, AvatarAbbreviationStrategy, AvatarShape, AvatarSize, AvatarSizeConfig, AvatarVariant, BackgroundColor, BackgroundPalette, BackgroundPaletteAlias, BackgroundStyleProps, BackwardsCompatibleReactElement, BadgeSize, BadgeVariant, BorderRadius, BorderRadiusConfig, BorderStyleProps, BorderWidth, BorderWidthConfig, BorderWidthWithElevation, Breakpoint, BreakpointValue, BreakpointWithBase, BreakpointsConfig, ButtonPalette, ButtonPaletteColor, ButtonSize, ButtonSpectrumColor, ButtonVariant, ButtonVariantFlat, CheckboxSize, CheckboxValue, CheckboxVariant, ChipSize, ChipVariant, ColorMode, ColorModeConfig, ColorModeForApp, ColorsConfig, CustomSizingStyleProps, DataAttribute, DeprecatedAlwaysPaletteAlias, Display, DividerVariant, ElevationAlias, ElevationBackgroundFillColor, ElevationBorderColor, ElevationConfig, ElevationCustomShadows, ElevationGlobalRampConfig, ElevationGlobalRampSettings, ElevationLevel, ElevationPreset, ElevationSurfaceColor, ExtractUrlFromFontFaceRule, Flex, FlexAlignContent, FlexAlignItems, FlexAlignSelf, FlexBasis, FlexDirection, FlexGrow, FlexJustifyContent, FlexShrink, FlexStyleProps, FlexWrap, FontAlias, FontConfig, FontCssVar, FontFamilyConfig, FontSize, FontSizeConfig, FontSlantConfig, FontType, FontWeightConfig, FontWeightDescriptive, FontWeightNumeric, FontWidthConfig, ForegroundColor, ForegroundPalette, ForegroundPaletteAlias, GenericIconComponent, GlobalDefaultsConfig, HighContrastMode, Hue, HueStep, IconButtonSize, IconPixelSize, IconSize, IconSizeConfig, IconSlotRenderProps, IconVariant, ImagePropsWithImgProps, ImageStyleProps, ImgElementProps, InputSize, LayoutStyleProps, LineClampAlias, LineColor, LineHeight, LineHeightConfig, LinePalette, LinePaletteAlias, LinkTextVariant, LinkVariant, LinkableValue, MaxLengthArray, Modes, MotionConfig, MotionCssVar, MotionSpringConfig, MotionSpringConfigOptions, MotionVariant, MotionVariantSpeed, MotionVariantValues, NestedBorderRadiusStyleProps, OpacityStep, Overflow, Palette, PaletteConfig, PaletteType, PaletteValue, Percentage, PercentageUnit, PixelsUnit, PlatformMode, Position, PropertyToPaletteAliasMap, RGBAUnit, RGBColorValue, RGBUnit, RadioSize, RadioValue, RadioVariant, RegionMode, RemsUnit, SVGElementProps, ScaleConfig, ScaleEffect, ScaleMode, ScaleModeConfig, ScaleModeForApp, ShadowAlwaysColor, ShadowColor, ShadowColorConfig, ShadowConfig, ShadowOffset, ShadowOpacity, ShadowPalette, ShadowPaletteAlias, ShadowPaletteColor, ShadowPreset, ShadowSpectrumColor, ShadowSpreadRadius, ShadowStyleProps, ShadowType, ShadowTypeConfig, ShadowVariant, ShadowVariantConfig, ShadowVariantInvert, ShadowVariantWithElevation, ShadowVariantWithInvert, SharedPaletteAlias, SizeStyleProps, SpacingAlias, SpacingConfig, SpacingStyleProps, SpectrumColor, SpectrumConfig, SpectrumRGB, SpectrumValue, SpectrumValueEntry, StateStyleProps, StyleProps, SwitchSize, TShirtSize, TShirtSizeCommon, TextDecorationLine, TextProperty, TextStyleProps, TextTransform, TextTransformConfig, TextVariant, TextVariantTypography, TextVariantUi, TextVariantWithoutEmphasized, ToastPosition, ToastSize, ToastVariant, TooltipPlacement, TooltipSize, TooltipVariant, TransitionDelay, TransitionDuration, TransitionTiming, TypographyConfig, TypographyResponsiveProperty, TypographyStyle, TypographyStyleProperty, TypographyUnitValue, UdsCssVar, UnitlessUnit, UniversalAvatarBaseProps, UniversalAvatarIconProps, UniversalAvatarProps, UniversalAvatarTextProps, UniversalBadgeProps, UniversalBoxProps, UniversalButtonProps, UniversalCheckboxProps, UniversalChipBaseProps, UniversalChipButtonProps, UniversalChipDismissibleProps, UniversalChipLinkProps, UniversalChipToggleProps, UniversalDividerProps, UniversalFormLabelProps, UniversalIconProps, UniversalIconSlot, UniversalImageProps, UniversalInputProps, UniversalLinkProps, UniversalMenuItemProps, UniversalPressableProps, UniversalRadioGroupProps, UniversalRadioProps, UniversalStackProps, UniversalSwitchProps, UniversalTextProps, UniversalToastProps, UniversalTokensConfigAutoBase, UniversalTokensConfigBase, UniversalTokensConfigGeneric, UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "./types/dist/index.js";
|
|
5
5
|
import { AllPossibleProperties, ComponentConfig, ComponentStateConfig, LayerConfig, PossibleStates, PossibleStatesWithRest, SubComponentConfig, VariantConfig, VariantConfigWithComponentStates, VariantConfigWithProperties } from "./automated-config/dist/types/ComponentConfig.js";
|
|
6
6
|
import { ConfigurablePropertiesName, SelectedConfigurableProperty } from "./automated-config/dist/properties.js";
|
|
7
7
|
import { ComponentSchema, buildConfigSchema, findFixtureType } from "./automated-config/dist/utils/buildConfigSchema.js";
|
|
@@ -31,6 +31,7 @@ import { entries } from "./tokens/utils/entries.js";
|
|
|
31
31
|
import { fromEntries } from "./tokens/utils/fromEntries.js";
|
|
32
32
|
import { FontUrlConfig, FontUrlMap, fontUrls, getFontUrls, getFontUrlsByIds } from "./tokens/utils/getFontUrls.js";
|
|
33
33
|
import { mapValues } from "./tokens/utils/mapValues.js";
|
|
34
|
+
import { spectrumRgbToString, toRgbChannel, toSpectrumValueEntry } from "./tokens/utils/spectrum.js";
|
|
34
35
|
import "./tokens/index.js";
|
|
35
36
|
import { Box, BoxProps } from "./components/Box.js";
|
|
36
37
|
import { Divider, DividerProps } from "./components/Divider/Divider.js";
|
|
@@ -87,4 +88,4 @@ import { UDSConfigProvider, UDSConfigProviderProps } from "./components/client/p
|
|
|
87
88
|
import "./components/index.js";
|
|
88
89
|
import "./runtime/index.js";
|
|
89
90
|
import { SetState } from "./types.js";
|
|
90
|
-
export { ALWAYS_PREFIX, AVATAR_SIZE_PREFIX, AllPossibleProperties, AllSelectors, AllVariantKeys, AlwaysPaletteAlias, AlwaysPaletteAliasWithPrefix, AlwaysPaletteColor, Animation, AriaAttribute, AutoComponentName, Avatar, AvatarAbbreviationStrategy, AvatarConfig, AvatarIcon, AvatarIconProps, AvatarImage, AvatarImageProps, AvatarProps, AvatarShape, AvatarSize, AvatarSizeConfig, AvatarText, AvatarTextProps, AvatarVariant, BACKGROUND_BLUR_COLOR_PREFIX, BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX, BACKGROUND_BLUR_RADIUS_PREFIX, BACKGROUND_COLOR_PREFIX, BORDER_RADIUS_PREFIX, BORDER_WIDTH_PREFIX, BUTTON_GAP_VAR, BUTTON_SCALE_EFFECT, BUTTON_SCALE_EFFECT_HOVER, BUTTON_SCALE_EFFECT_PRESSED, BUTTON_SCALE_EFFECT_REST, BackgroundColor, BackgroundPalette, BackgroundPaletteAlias, BackgroundStyleProps, BackwardsCompatibleReactElement, Badge, BadgeConfig, BadgeProps, BadgeSize, BadgeVariant, BaseSelector, BorderRadius, BorderRadiusConfig, BorderStyleProps, BorderWidth, BorderWidthConfig, BorderWidthWithElevation, Box, BoxProps, Breakpoint, BreakpointValue, BreakpointWithBase, BreakpointsConfig, Button, ButtonConfig, ButtonPalette, ButtonPaletteColor, ButtonProps, ButtonSize, ButtonSpectrumColor, ButtonVariant, ButtonVariantFlat, Checkbox, CheckboxConfig, CheckboxProps, CheckboxSize, CheckboxValue, CheckboxVariant, Chip, ChipButton, ChipButtonProps, ChipConfig, ChipDismissible, ChipDismissibleProps, ChipLink, ChipLinkProps, ChipProps, ChipSize, ChipToggle, ChipToggleProps, ChipVariant, ColorMode, ColorModeConfig, ColorModeForApp, ColorsConfig, ComponentConfig, ComponentSchema, ComponentStateConfig, ConfigurableComponentName, ConfigurablePropertiesName, CssStyleObject, CustomSizingStyleProps, DARK_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE, DEFAULT_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE_FOR_APP, DEFAULT_HIGH_CONTRAST_MODE, DEFAULT_REGION_MODE, DEFAULT_SCALE_MODE, DEFAULT_SCALE_MODE_CLASSNAME, DEFAULT_SCALE_MODE_FOR_APP, DROP_SHADOW_PREFIX, DataAttribute, DeprecatedAlwaysPaletteAlias, Display, Divider, DividerConfig, DividerProps, DividerVariant, ElevationAlias, ElevationBackgroundFillColor, ElevationBorderColor, ElevationConfig, ElevationCustomShadows, ElevationGlobalRampConfig, ElevationGlobalRampSettings, ElevationLevel, ElevationPreset, ElevationSurfaceColor, ExtractUrlFromFontFaceRule, FONT_DECLARATIONS_MAP, FONT_FAMILY_PREFIX, FONT_SIZE_PREFIX, FONT_SLANT_PREFIX, FONT_WEIGHT_PREFIX, FONT_WIDTH_PREFIX, Flex, FlexAlignContent, FlexAlignItems, FlexAlignSelf, FlexBasis, FlexDirection, FlexGrow, FlexJustifyContent, FlexShrink, FlexStyleProps, FlexWrap, FontAlias, FontAxisConfig, FontConfig, FontCssVar, FontDeclarationConfig, FontDeclarationItemConfig, FontDeclarationMap, FontFamilyCDNUrl, FontFamilyConfig, FontID, FontSize, FontSizeConfig, FontSlantConfig, FontType, FontUrlConfig, FontUrlMap, FontWeightConfig, FontWeightDescriptive, FontWeightForFont, FontWeightNumeric, FontWidthConfig, ForegroundColor, ForegroundPalette, ForegroundPaletteAlias, FormLabel, FormLabelProps, GenericIconComponent, GetMotionVarParams, GlobalDefaultsConfig, HStack, HStackProps, HighContrastMode, Hue, HueStep, ICON_SIZE_PREFIX, INVERT_COLOR_MODE_CLASSNAME, Icon, IconButton, IconButtonConfig, IconButtonProps, IconButtonSize, IconPixelSize, IconProps, IconPropsWithSVGProps, IconSize, IconSizeConfig, IconSlotRenderProps, IconVariant, Image, ImageProps, ImagePropsWithImgProps, ImageStyleProps, ImgElementProps, Input, InputConfig, InputHelpText, InputHelpTextProps, InputProps, InputSize, LARGE_SCALE_MODE_CLASSNAME, LETTER_SPACING_PREFIX, LIGHT_COLOR_MODE_CLASSNAME, LINE_COLOR_PREFIX, LINE_HEIGHT_PREFIX, LayerConfig, LayoutStyleProps, LineClampAlias, LineColor, LineHeight, LineHeightConfig, LinePalette, LinePaletteAlias, Link, LinkConfig, LinkProps, LinkTextVariant, LinkVariant, LinkableValue, MEDIUM_SCALE_MODE_CLASSNAME, MOTION_PREFIX, MaxLengthArray, Menu_index_d_exports as Menu, MenuContentConfig, MenuContentProps, MenuDividerProps, MenuItemCheckboxProps, MenuItemConfig, MenuItemProps, MenuPlacement, MenuProviderProps, MenuTriggerProps, Modes, MotionConfig, MotionCssVar, MotionSpringConfig, MotionSpringConfigOptions, MotionVariant, MotionVariantSpeed, MotionVariantValues, NestedBorderRadiusStyleProps, OpacityStep, Overflow, PSEUDO_STYLE_SELECTOR_MAP, Palette, PaletteConfig, PaletteType, PaletteValue, ParentVariantSelector, Percentage, PercentageUnit, PixelsUnit, PlatformMode, Position, PossibleStates, PossibleStatesWithRest, Pressable, PressableProps, PropertyToPaletteAliasMap, RGBAUnit, RGBColorValue, RGBUnit, Radio, RadioConfig, RadioGroupProvider, RadioGroupProviderProps, RadioProps, RadioSize, RadioValue, RadioVariant, RegionMode, RemsUnit, ResolvedTokensConfig, SMALL_SCALE_MODE_CLASSNAME, SPECTRUM_COLOR_PREFIX, SVGElementProps, SYSTEM_COLOR_MODE_CLASSNAME, ScaleConfig, ScaleEffect, ScaleMode, ScaleModeConfig, ScaleModeForApp, SelectedConfigurableProperty, SetState, ShadowAlwaysColor, ShadowColor, ShadowColorConfig, ShadowConfig, ShadowOffset, ShadowOpacity, ShadowPalette, ShadowPaletteAlias, ShadowPaletteColor, ShadowPreset, ShadowSpectrumColor, ShadowSpreadRadius, ShadowStyleProps, ShadowType, ShadowTypeConfig, ShadowVariant, ShadowVariantConfig, ShadowVariantInvert, ShadowVariantWithElevation, ShadowVariantWithInvert, SharedPaletteAlias, SizeStyleProps, SpacingAlias, SpacingConfig, SpacingStyleProps, SpectrumColor, SpectrumConfig, SpectrumValue, SpringMotionConfig, SpringMotionConfigProps, StateStyleProps, StyleProps, SubComponentConfig, Switch, SwitchConfig, SwitchProps, SwitchSize, TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES, TEXT_RESPONSIVE_CLASSNAME, TEXT_TRANSFORM_PREFIX, TShirtSize, TShirtSizeCommon, Text, TextDecorationLine, TextProperty, TextProps, TextStyleProps, TextTransform, TextTransformConfig, TextVariant, TextVariantTypography, TextVariantUi, TextVariantWithoutEmphasized, Toast, ToastConfig, ToastContainer, ToastContainerProps, ToastLoadingPromise, ToastPortal, ToastPortalProps, ToastPosition, ToastProps, ToastSize, ToastVariant, Tooltip, TooltipConfig, TooltipContent, UniversalTooltipContentProps as TooltipContentProps, TooltipPlacement, UniversalTooltipProps as TooltipProps, TooltipSize, TooltipTrigger, UniversalTooltipTriggerProps as TooltipTriggerProps, TooltipVariant, TransitionDelay, TransitionDuration, TransitionTiming, TypographyConfig, TypographyResponsiveProperty, TypographyStyle, TypographyStyleProperty, TypographyUnitValue, UDSBreakpointsConfigContextType, UDSBreakpointsConfigProvider, UDSBreakpointsConfigProviderProps, UDSConfigContextType, UDSConfigProvider, UDSConfigProviderProps, UDSToastConfigContextType, UDSToastConfigProvider, UDSToastConfigProviderProps, UDSTooltipConfigContextType, UDSTooltipConfigProvider, UDSTooltipConfigProviderProps, UDS_PREFIX, UdsCssVar, UnitlessUnit, UniversalAvatarBaseProps, UniversalAvatarIconProps, UniversalAvatarImageProps, UniversalAvatarProps, UniversalAvatarTextProps, UniversalBadgeProps, UniversalBoxProps, UniversalButtonProps, UniversalCheckboxProps, UniversalChipBaseProps, UniversalChipButtonProps, UniversalChipDismissibleProps, UniversalChipLinkProps, UniversalChipProps, UniversalChipToggleProps, UniversalDividerProps, UniversalFormLabelProps, UniversalIconButtonProps, UniversalIconProps, UniversalIconSlot, UniversalImageProps, UniversalInputProps, UniversalLinkProps, UniversalMenuItemProps, UniversalPressableProps, UniversalRadioGroupProps, UniversalRadioProps, UniversalStackProps, UniversalSwitchProps, UniversalTextProps, UniversalToastProps, UniversalTokensConfig, UniversalTokensConfigAuto, UniversalTokensConfigAutoBase, UniversalTokensConfigBase, UniversalTokensConfigGeneric, UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps, VStack, VStackProps, VariantConfig, VariantConfigWithComponentStates, VariantConfigWithProperties, XLARGE_SCALE_MODE_CLASSNAME, XSMALL_SCALE_MODE_CLASSNAME, XXLARGE_SCALE_MODE_CLASSNAME, XXXLARGE_SCALE_MODE_CLASSNAME, alwaysPalette, buildConfigSchema, cartesianProduct, coalesceConfigVariant, configToBreakpointsConfigContext, configToToastConfigContext, configToTooltipConfigContext, configToUDSConfigContext, createComponentStates, createConfigurableProperty, createLayerConfig, createSubComponentConfig, createToast, createVariantConfig, createVariantConfigWithComponentStates, createVariantConfigWithProperties, cva, cx, deprecatedAlwaysPalette, entries, findFixtureType, fontUrls, fromEntries, generateClassName, generateConfigStyles, generateDeclaration, generateDefaultClassName, generateKeyFromFlatConfigPath, generateSchemaKey, generateStyles, getConfigDefaultValue, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, getFontUrls, getFontUrlsByIds, getMotionVar, getShadowLayerValue, getStyles, getStylesCacheKeySymbol, isConfigDefaultValue, mapValues, newAlwaysPalette, parseButtonVariantFlat, shadow, statePseudoMapDocsMode, textVariantsSafe, useBreakpointsConfig, useToastConfig, variants };
|
|
91
|
+
export { ALWAYS_PREFIX, AVATAR_SIZE_PREFIX, AllPossibleProperties, AllSelectors, AllVariantKeys, AlwaysPaletteAlias, AlwaysPaletteAliasWithPrefix, AlwaysPaletteColor, Animation, AriaAttribute, AutoComponentName, Avatar, AvatarAbbreviationStrategy, AvatarConfig, AvatarIcon, AvatarIconProps, AvatarImage, AvatarImageProps, AvatarProps, AvatarShape, AvatarSize, AvatarSizeConfig, AvatarText, AvatarTextProps, AvatarVariant, BACKGROUND_BLUR_COLOR_PREFIX, BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX, BACKGROUND_BLUR_RADIUS_PREFIX, BACKGROUND_COLOR_PREFIX, BORDER_RADIUS_PREFIX, BORDER_WIDTH_PREFIX, BUTTON_GAP_VAR, BUTTON_SCALE_EFFECT, BUTTON_SCALE_EFFECT_HOVER, BUTTON_SCALE_EFFECT_PRESSED, BUTTON_SCALE_EFFECT_REST, BackgroundColor, BackgroundPalette, BackgroundPaletteAlias, BackgroundStyleProps, BackwardsCompatibleReactElement, Badge, BadgeConfig, BadgeProps, BadgeSize, BadgeVariant, BaseSelector, BorderRadius, BorderRadiusConfig, BorderStyleProps, BorderWidth, BorderWidthConfig, BorderWidthWithElevation, Box, BoxProps, Breakpoint, BreakpointValue, BreakpointWithBase, BreakpointsConfig, Button, ButtonConfig, ButtonPalette, ButtonPaletteColor, ButtonProps, ButtonSize, ButtonSpectrumColor, ButtonVariant, ButtonVariantFlat, Checkbox, CheckboxConfig, CheckboxProps, CheckboxSize, CheckboxValue, CheckboxVariant, Chip, ChipButton, ChipButtonProps, ChipConfig, ChipDismissible, ChipDismissibleProps, ChipLink, ChipLinkProps, ChipProps, ChipSize, ChipToggle, ChipToggleProps, ChipVariant, ColorMode, ColorModeConfig, ColorModeForApp, ColorsConfig, ComponentConfig, ComponentSchema, ComponentStateConfig, ConfigurableComponentName, ConfigurablePropertiesName, CssStyleObject, CustomSizingStyleProps, DARK_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE, DEFAULT_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE_FOR_APP, DEFAULT_HIGH_CONTRAST_MODE, DEFAULT_REGION_MODE, DEFAULT_SCALE_MODE, DEFAULT_SCALE_MODE_CLASSNAME, DEFAULT_SCALE_MODE_FOR_APP, DROP_SHADOW_PREFIX, DataAttribute, DeprecatedAlwaysPaletteAlias, Display, Divider, DividerConfig, DividerProps, DividerVariant, ElevationAlias, ElevationBackgroundFillColor, ElevationBorderColor, ElevationConfig, ElevationCustomShadows, ElevationGlobalRampConfig, ElevationGlobalRampSettings, ElevationLevel, ElevationPreset, ElevationSurfaceColor, ExtractUrlFromFontFaceRule, FONT_DECLARATIONS_MAP, FONT_FAMILY_PREFIX, FONT_SIZE_PREFIX, FONT_SLANT_PREFIX, FONT_WEIGHT_PREFIX, FONT_WIDTH_PREFIX, Flex, FlexAlignContent, FlexAlignItems, FlexAlignSelf, FlexBasis, FlexDirection, FlexGrow, FlexJustifyContent, FlexShrink, FlexStyleProps, FlexWrap, FontAlias, FontAxisConfig, FontConfig, FontCssVar, FontDeclarationConfig, FontDeclarationItemConfig, FontDeclarationMap, FontFamilyCDNUrl, FontFamilyConfig, FontID, FontSize, FontSizeConfig, FontSlantConfig, FontType, FontUrlConfig, FontUrlMap, FontWeightConfig, FontWeightDescriptive, FontWeightForFont, FontWeightNumeric, FontWidthConfig, ForegroundColor, ForegroundPalette, ForegroundPaletteAlias, FormLabel, FormLabelProps, GenericIconComponent, GetMotionVarParams, GlobalDefaultsConfig, HStack, HStackProps, HighContrastMode, Hue, HueStep, ICON_SIZE_PREFIX, INVERT_COLOR_MODE_CLASSNAME, Icon, IconButton, IconButtonConfig, IconButtonProps, IconButtonSize, IconPixelSize, IconProps, IconPropsWithSVGProps, IconSize, IconSizeConfig, IconSlotRenderProps, IconVariant, Image, ImageProps, ImagePropsWithImgProps, ImageStyleProps, ImgElementProps, Input, InputConfig, InputHelpText, InputHelpTextProps, InputProps, InputSize, LARGE_SCALE_MODE_CLASSNAME, LETTER_SPACING_PREFIX, LIGHT_COLOR_MODE_CLASSNAME, LINE_COLOR_PREFIX, LINE_HEIGHT_PREFIX, LayerConfig, LayoutStyleProps, LineClampAlias, LineColor, LineHeight, LineHeightConfig, LinePalette, LinePaletteAlias, Link, LinkConfig, LinkProps, LinkTextVariant, LinkVariant, LinkableValue, MEDIUM_SCALE_MODE_CLASSNAME, MOTION_PREFIX, MaxLengthArray, Menu_index_d_exports as Menu, MenuContentConfig, MenuContentProps, MenuDividerProps, MenuItemCheckboxProps, MenuItemConfig, MenuItemProps, MenuPlacement, MenuProviderProps, MenuTriggerProps, Modes, MotionConfig, MotionCssVar, MotionSpringConfig, MotionSpringConfigOptions, MotionVariant, MotionVariantSpeed, MotionVariantValues, NestedBorderRadiusStyleProps, OpacityStep, Overflow, PSEUDO_STYLE_SELECTOR_MAP, Palette, PaletteConfig, PaletteType, PaletteValue, ParentVariantSelector, Percentage, PercentageUnit, PixelsUnit, PlatformMode, Position, PossibleStates, PossibleStatesWithRest, Pressable, PressableProps, PropertyToPaletteAliasMap, RGBAUnit, RGBColorValue, RGBUnit, Radio, RadioConfig, RadioGroupProvider, RadioGroupProviderProps, RadioProps, RadioSize, RadioValue, RadioVariant, RegionMode, RemsUnit, ResolvedTokensConfig, SMALL_SCALE_MODE_CLASSNAME, SPECTRUM_COLOR_PREFIX, SVGElementProps, SYSTEM_COLOR_MODE_CLASSNAME, ScaleConfig, ScaleEffect, ScaleMode, ScaleModeConfig, ScaleModeForApp, SelectedConfigurableProperty, SetState, ShadowAlwaysColor, ShadowColor, ShadowColorConfig, ShadowConfig, ShadowOffset, ShadowOpacity, ShadowPalette, ShadowPaletteAlias, ShadowPaletteColor, ShadowPreset, ShadowSpectrumColor, ShadowSpreadRadius, ShadowStyleProps, ShadowType, ShadowTypeConfig, ShadowVariant, ShadowVariantConfig, ShadowVariantInvert, ShadowVariantWithElevation, ShadowVariantWithInvert, SharedPaletteAlias, SizeStyleProps, SpacingAlias, SpacingConfig, SpacingStyleProps, SpectrumColor, SpectrumConfig, SpectrumRGB, SpectrumValue, SpectrumValueEntry, SpringMotionConfig, SpringMotionConfigProps, StateStyleProps, StyleProps, SubComponentConfig, Switch, SwitchConfig, SwitchProps, SwitchSize, TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES, TEXT_RESPONSIVE_CLASSNAME, TEXT_TRANSFORM_PREFIX, TShirtSize, TShirtSizeCommon, Text, TextDecorationLine, TextProperty, TextProps, TextStyleProps, TextTransform, TextTransformConfig, TextVariant, TextVariantTypography, TextVariantUi, TextVariantWithoutEmphasized, Toast, ToastConfig, ToastContainer, ToastContainerProps, ToastLoadingPromise, ToastPortal, ToastPortalProps, ToastPosition, ToastProps, ToastSize, ToastVariant, Tooltip, TooltipConfig, TooltipContent, UniversalTooltipContentProps as TooltipContentProps, TooltipPlacement, UniversalTooltipProps as TooltipProps, TooltipSize, TooltipTrigger, UniversalTooltipTriggerProps as TooltipTriggerProps, TooltipVariant, TransitionDelay, TransitionDuration, TransitionTiming, TypographyConfig, TypographyResponsiveProperty, TypographyStyle, TypographyStyleProperty, TypographyUnitValue, UDSBreakpointsConfigContextType, UDSBreakpointsConfigProvider, UDSBreakpointsConfigProviderProps, UDSConfigContextType, UDSConfigProvider, UDSConfigProviderProps, UDSToastConfigContextType, UDSToastConfigProvider, UDSToastConfigProviderProps, UDSTooltipConfigContextType, UDSTooltipConfigProvider, UDSTooltipConfigProviderProps, UDS_PREFIX, UdsCssVar, UnitlessUnit, UniversalAvatarBaseProps, UniversalAvatarIconProps, UniversalAvatarImageProps, UniversalAvatarProps, UniversalAvatarTextProps, UniversalBadgeProps, UniversalBoxProps, UniversalButtonProps, UniversalCheckboxProps, UniversalChipBaseProps, UniversalChipButtonProps, UniversalChipDismissibleProps, UniversalChipLinkProps, UniversalChipProps, UniversalChipToggleProps, UniversalDividerProps, UniversalFormLabelProps, UniversalIconButtonProps, UniversalIconProps, UniversalIconSlot, UniversalImageProps, UniversalInputProps, UniversalLinkProps, UniversalMenuItemProps, UniversalPressableProps, UniversalRadioGroupProps, UniversalRadioProps, UniversalStackProps, UniversalSwitchProps, UniversalTextProps, UniversalToastProps, UniversalTokensConfig, UniversalTokensConfigAuto, UniversalTokensConfigAutoBase, UniversalTokensConfigBase, UniversalTokensConfigGeneric, UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps, VStack, VStackProps, VariantConfig, VariantConfigWithComponentStates, VariantConfigWithProperties, XLARGE_SCALE_MODE_CLASSNAME, XSMALL_SCALE_MODE_CLASSNAME, XXLARGE_SCALE_MODE_CLASSNAME, XXXLARGE_SCALE_MODE_CLASSNAME, alwaysPalette, buildConfigSchema, cartesianProduct, coalesceConfigVariant, configToBreakpointsConfigContext, configToToastConfigContext, configToTooltipConfigContext, configToUDSConfigContext, createComponentStates, createConfigurableProperty, createLayerConfig, createSubComponentConfig, createToast, createVariantConfig, createVariantConfigWithComponentStates, createVariantConfigWithProperties, cva, cx, deprecatedAlwaysPalette, entries, findFixtureType, fontUrls, fromEntries, generateClassName, generateConfigStyles, generateDeclaration, generateDefaultClassName, generateKeyFromFlatConfigPath, generateSchemaKey, generateStyles, getConfigDefaultValue, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, getFontUrls, getFontUrlsByIds, getMotionVar, getShadowLayerValue, getStyles, getStylesCacheKeySymbol, isConfigDefaultValue, mapValues, newAlwaysPalette, parseButtonVariantFlat, shadow, spectrumRgbToString, statePseudoMapDocsMode, textVariantsSafe, toRgbChannel, toSpectrumValueEntry, useBreakpointsConfig, useToastConfig, variants };
|
package/dist/index.js
CHANGED
|
@@ -64,6 +64,7 @@ import { parseButtonVariantFlat } from "./tokens/parseButtonVariants.js";
|
|
|
64
64
|
import { entries } from "./tokens/utils/entries.js";
|
|
65
65
|
import { fontUrls, getFontUrls, getFontUrlsByIds } from "./tokens/utils/getFontUrls.js";
|
|
66
66
|
import { mapValues } from "./tokens/utils/mapValues.js";
|
|
67
|
+
import { spectrumRgbToString, toRgbChannel, toSpectrumValueEntry } from "./tokens/utils/spectrum.js";
|
|
67
68
|
import { TooltipContent } from "./components/client/Tooltip/TooltipContent.js";
|
|
68
69
|
import { TooltipTrigger } from "./components/client/Tooltip/TooltipTrigger.js";
|
|
69
70
|
import { configToBreakpointsConfigContext } from "./runtime/breakpointsConfig.js";
|
|
@@ -71,4 +72,4 @@ import { configToToastConfigContext } from "./runtime/toastConfig.js";
|
|
|
71
72
|
import { configToTooltipConfigContext } from "./runtime/tooltipConfig.js";
|
|
72
73
|
import { configToUDSConfigContext } from "./runtime/udsConfig.js";
|
|
73
74
|
|
|
74
|
-
export { ALWAYS_PREFIX, AVATAR_SIZE_PREFIX, Avatar, AvatarConfig, AvatarIcon, AvatarImage, AvatarText, BACKGROUND_BLUR_COLOR_PREFIX, BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX, BACKGROUND_BLUR_RADIUS_PREFIX, BACKGROUND_COLOR_PREFIX, BORDER_RADIUS_PREFIX, BORDER_WIDTH_PREFIX, BUTTON_GAP_VAR, BUTTON_SCALE_EFFECT, BUTTON_SCALE_EFFECT_HOVER, BUTTON_SCALE_EFFECT_PRESSED, BUTTON_SCALE_EFFECT_REST, Badge, BadgeConfig, Box, Button, ButtonConfig, Checkbox, CheckboxConfig, Chip, ChipButton, ChipConfig, ChipDismissible, ChipLink, ChipToggle, DARK_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE, DEFAULT_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE_FOR_APP, DEFAULT_HIGH_CONTRAST_MODE, DEFAULT_REGION_MODE, DEFAULT_SCALE_MODE, DEFAULT_SCALE_MODE_CLASSNAME, DEFAULT_SCALE_MODE_FOR_APP, DROP_SHADOW_PREFIX, Divider, DividerConfig, FONT_DECLARATIONS_MAP, FONT_FAMILY_PREFIX, FONT_SIZE_PREFIX, FONT_SLANT_PREFIX, FONT_WEIGHT_PREFIX, FONT_WIDTH_PREFIX, FormLabel, HStack, ICON_SIZE_PREFIX, INVERT_COLOR_MODE_CLASSNAME, Icon, IconButton, IconButtonConfig, Image, Input, InputConfig, InputHelpText, LARGE_SCALE_MODE_CLASSNAME, LETTER_SPACING_PREFIX, LIGHT_COLOR_MODE_CLASSNAME, LINE_COLOR_PREFIX, LINE_HEIGHT_PREFIX, Link, LinkConfig, MEDIUM_SCALE_MODE_CLASSNAME, MOTION_PREFIX, Menu_index_exports as Menu, MenuContentConfig, MenuItemConfig, PSEUDO_STYLE_SELECTOR_MAP, Pressable, Radio, RadioConfig, RadioGroupProvider, SMALL_SCALE_MODE_CLASSNAME, SPECTRUM_COLOR_PREFIX, SYSTEM_COLOR_MODE_CLASSNAME, SpringMotionConfig, Switch, SwitchConfig, TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES, TEXT_RESPONSIVE_CLASSNAME, TEXT_TRANSFORM_PREFIX, Text, Toast, ToastConfig, ToastContainer, ToastPortal, Tooltip, TooltipConfig, TooltipContent, TooltipTrigger, UDSBreakpointsConfigProvider, UDSConfigProvider, UDSToastConfigProvider, UDSTooltipConfigProvider, UDS_PREFIX, VStack, XLARGE_SCALE_MODE_CLASSNAME, XSMALL_SCALE_MODE_CLASSNAME, XXLARGE_SCALE_MODE_CLASSNAME, XXXLARGE_SCALE_MODE_CLASSNAME, alwaysPalette, buildConfigSchema, cartesianProduct, coalesceConfigVariant, configToBreakpointsConfigContext, configToToastConfigContext, configToTooltipConfigContext, configToUDSConfigContext, createComponentStates, createConfigurableProperty, createLayerConfig, createSubComponentConfig, createToast, createVariantConfig, createVariantConfigWithComponentStates, createVariantConfigWithProperties, cva, cx, deprecatedAlwaysPalette, entries, findFixtureType, fontUrls, fromEntries, generateClassName, generateConfigStyles, generateDeclaration, generateDefaultClassName, generateKeyFromFlatConfigPath, generateSchemaKey, generateStyles, getConfigDefaultValue, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, getFontUrls, getFontUrlsByIds, getMotionVar, getShadowLayerValue, getStyles, getStylesCacheKeySymbol, isConfigDefaultValue, mapValues, newAlwaysPalette, parseButtonVariantFlat, shadow, statePseudoMapDocsMode, textVariantsSafe, useBreakpointsConfig, useToastConfig, variants };
|
|
75
|
+
export { ALWAYS_PREFIX, AVATAR_SIZE_PREFIX, Avatar, AvatarConfig, AvatarIcon, AvatarImage, AvatarText, BACKGROUND_BLUR_COLOR_PREFIX, BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX, BACKGROUND_BLUR_RADIUS_PREFIX, BACKGROUND_COLOR_PREFIX, BORDER_RADIUS_PREFIX, BORDER_WIDTH_PREFIX, BUTTON_GAP_VAR, BUTTON_SCALE_EFFECT, BUTTON_SCALE_EFFECT_HOVER, BUTTON_SCALE_EFFECT_PRESSED, BUTTON_SCALE_EFFECT_REST, Badge, BadgeConfig, Box, Button, ButtonConfig, Checkbox, CheckboxConfig, Chip, ChipButton, ChipConfig, ChipDismissible, ChipLink, ChipToggle, DARK_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE, DEFAULT_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE_FOR_APP, DEFAULT_HIGH_CONTRAST_MODE, DEFAULT_REGION_MODE, DEFAULT_SCALE_MODE, DEFAULT_SCALE_MODE_CLASSNAME, DEFAULT_SCALE_MODE_FOR_APP, DROP_SHADOW_PREFIX, Divider, DividerConfig, FONT_DECLARATIONS_MAP, FONT_FAMILY_PREFIX, FONT_SIZE_PREFIX, FONT_SLANT_PREFIX, FONT_WEIGHT_PREFIX, FONT_WIDTH_PREFIX, FormLabel, HStack, ICON_SIZE_PREFIX, INVERT_COLOR_MODE_CLASSNAME, Icon, IconButton, IconButtonConfig, Image, Input, InputConfig, InputHelpText, LARGE_SCALE_MODE_CLASSNAME, LETTER_SPACING_PREFIX, LIGHT_COLOR_MODE_CLASSNAME, LINE_COLOR_PREFIX, LINE_HEIGHT_PREFIX, Link, LinkConfig, MEDIUM_SCALE_MODE_CLASSNAME, MOTION_PREFIX, Menu_index_exports as Menu, MenuContentConfig, MenuItemConfig, PSEUDO_STYLE_SELECTOR_MAP, Pressable, Radio, RadioConfig, RadioGroupProvider, SMALL_SCALE_MODE_CLASSNAME, SPECTRUM_COLOR_PREFIX, SYSTEM_COLOR_MODE_CLASSNAME, SpringMotionConfig, Switch, SwitchConfig, TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES, TEXT_RESPONSIVE_CLASSNAME, TEXT_TRANSFORM_PREFIX, Text, Toast, ToastConfig, ToastContainer, ToastPortal, Tooltip, TooltipConfig, TooltipContent, TooltipTrigger, UDSBreakpointsConfigProvider, UDSConfigProvider, UDSToastConfigProvider, UDSTooltipConfigProvider, UDS_PREFIX, VStack, XLARGE_SCALE_MODE_CLASSNAME, XSMALL_SCALE_MODE_CLASSNAME, XXLARGE_SCALE_MODE_CLASSNAME, XXXLARGE_SCALE_MODE_CLASSNAME, alwaysPalette, buildConfigSchema, cartesianProduct, coalesceConfigVariant, configToBreakpointsConfigContext, configToToastConfigContext, configToTooltipConfigContext, configToUDSConfigContext, createComponentStates, createConfigurableProperty, createLayerConfig, createSubComponentConfig, createToast, createVariantConfig, createVariantConfigWithComponentStates, createVariantConfigWithProperties, cva, cx, deprecatedAlwaysPalette, entries, findFixtureType, fontUrls, fromEntries, generateClassName, generateConfigStyles, generateDeclaration, generateDefaultClassName, generateKeyFromFlatConfigPath, generateSchemaKey, generateStyles, getConfigDefaultValue, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, getFontUrls, getFontUrlsByIds, getMotionVar, getShadowLayerValue, getStyles, getStylesCacheKeySymbol, isConfigDefaultValue, mapValues, newAlwaysPalette, parseButtonVariantFlat, shadow, spectrumRgbToString, statePseudoMapDocsMode, textVariantsSafe, toRgbChannel, toSpectrumValueEntry, useBreakpointsConfig, useToastConfig, variants };
|
|
@@ -21,7 +21,8 @@ const configToToastConfigContext = ({ toast }) => {
|
|
|
21
21
|
iconSize: Object.fromEntries(toastSizes.map((s) => [s, toast.variables[`size/${s}/icon`].size.rest.value])),
|
|
22
22
|
buttonSize: Object.fromEntries(toastSizes.map((s) => [s, toast.variables[`size/${s}/actionButton`].buttonSize.rest.value])),
|
|
23
23
|
buttonVariant: Object.fromEntries(toastVariants.map((v) => [v, toast.variables[`variant/${v}/actionButton`].buttonVariant.rest.value])),
|
|
24
|
-
iconVariant: Object.fromEntries(toastVariants.map((v) => [v, toast.variables[`variant/${v}/icon`].iconVariant.rest.value]))
|
|
24
|
+
iconVariant: Object.fromEntries(toastVariants.map((v) => [v, toast.variables[`variant/${v}/icon`].iconVariant.rest.value])),
|
|
25
|
+
backgroundColor: Object.fromEntries(toastVariants.map((v) => [v, toast.variables[`variant/${v}/root`].backgroundColor.rest.value]))
|
|
25
26
|
};
|
|
26
27
|
};
|
|
27
28
|
|
|
@@ -4,6 +4,8 @@ import { UniversalTokensConfig } from "../config/dist/index.cjs";
|
|
|
4
4
|
import "../tokens/index.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/runtime/toastConfig.d.ts
|
|
7
|
+
type ToastVariantRoot = UniversalTokensConfig['toast']['variables'][`variant/${ToastVariant}/root`];
|
|
8
|
+
type ToastBackgroundRuntimeConfig = Record<ToastVariant, ToastVariantRoot['backgroundColor']['rest']['value']>;
|
|
7
9
|
interface UDSToastConfigContextType {
|
|
8
10
|
autoClose: number | false;
|
|
9
11
|
position: ToastPosition;
|
|
@@ -15,6 +17,7 @@ interface UDSToastConfigContextType {
|
|
|
15
17
|
textColor: Record<ToastVariant, UniversalTextProps['color']>;
|
|
16
18
|
iconSize: Record<ToastSize, IconSize>;
|
|
17
19
|
iconVariant: Record<ToastVariant, IconVariant>;
|
|
20
|
+
backgroundColor: ToastBackgroundRuntimeConfig;
|
|
18
21
|
}
|
|
19
22
|
declare const configToToastConfigContext: ({
|
|
20
23
|
toast
|
|
@@ -4,6 +4,8 @@ import { UniversalTokensConfig } from "../config/dist/index.js";
|
|
|
4
4
|
import "../tokens/index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/runtime/toastConfig.d.ts
|
|
7
|
+
type ToastVariantRoot = UniversalTokensConfig['toast']['variables'][`variant/${ToastVariant}/root`];
|
|
8
|
+
type ToastBackgroundRuntimeConfig = Record<ToastVariant, ToastVariantRoot['backgroundColor']['rest']['value']>;
|
|
7
9
|
interface UDSToastConfigContextType {
|
|
8
10
|
autoClose: number | false;
|
|
9
11
|
position: ToastPosition;
|
|
@@ -15,6 +17,7 @@ interface UDSToastConfigContextType {
|
|
|
15
17
|
textColor: Record<ToastVariant, UniversalTextProps['color']>;
|
|
16
18
|
iconSize: Record<ToastSize, IconSize>;
|
|
17
19
|
iconVariant: Record<ToastVariant, IconVariant>;
|
|
20
|
+
backgroundColor: ToastBackgroundRuntimeConfig;
|
|
18
21
|
}
|
|
19
22
|
declare const configToToastConfigContext: ({
|
|
20
23
|
toast
|
|
@@ -19,7 +19,8 @@ const configToToastConfigContext = ({ toast }) => {
|
|
|
19
19
|
iconSize: Object.fromEntries(toastSizes.map((s) => [s, toast.variables[`size/${s}/icon`].size.rest.value])),
|
|
20
20
|
buttonSize: Object.fromEntries(toastSizes.map((s) => [s, toast.variables[`size/${s}/actionButton`].buttonSize.rest.value])),
|
|
21
21
|
buttonVariant: Object.fromEntries(toastVariants.map((v) => [v, toast.variables[`variant/${v}/actionButton`].buttonVariant.rest.value])),
|
|
22
|
-
iconVariant: Object.fromEntries(toastVariants.map((v) => [v, toast.variables[`variant/${v}/icon`].iconVariant.rest.value]))
|
|
22
|
+
iconVariant: Object.fromEntries(toastVariants.map((v) => [v, toast.variables[`variant/${v}/icon`].iconVariant.rest.value])),
|
|
23
|
+
backgroundColor: Object.fromEntries(toastVariants.map((v) => [v, toast.variables[`variant/${v}/root`].backgroundColor.rest.value]))
|
|
23
24
|
};
|
|
24
25
|
};
|
|
25
26
|
|
package/dist/styles/styler.d.cts
CHANGED
|
@@ -140,15 +140,15 @@ declare const getStylesInternal: (props?: ({
|
|
|
140
140
|
tooltipVariantIcon?: "default" | undefined;
|
|
141
141
|
tooltipVariantRoot?: "default" | undefined;
|
|
142
142
|
tooltipVariantSvg?: "default" | undefined;
|
|
143
|
-
color?: "primary" | "secondary" | "tertiary" | "
|
|
144
|
-
placeholderColor?: "primary" | "secondary" | "tertiary" | "
|
|
143
|
+
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;
|
|
144
|
+
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;
|
|
145
145
|
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;
|
|
146
146
|
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;
|
|
147
|
-
fontWeight?: "
|
|
147
|
+
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;
|
|
148
148
|
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;
|
|
149
149
|
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;
|
|
150
|
-
textAlign?: "
|
|
151
|
-
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" | "
|
|
150
|
+
textAlign?: "start" | "end" | "center" | "justify" | undefined;
|
|
151
|
+
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;
|
|
152
152
|
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;
|
|
153
153
|
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;
|
|
154
154
|
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;
|
|
@@ -166,11 +166,11 @@ declare const getStylesInternal: (props?: ({
|
|
|
166
166
|
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;
|
|
167
167
|
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;
|
|
168
168
|
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;
|
|
169
|
-
borderColor?: "primary" | "secondary" | "tertiary" | "
|
|
170
|
-
borderStartColor?: "primary" | "secondary" | "tertiary" | "
|
|
171
|
-
borderEndColor?: "primary" | "secondary" | "tertiary" | "
|
|
172
|
-
borderBottomColor?: "primary" | "secondary" | "tertiary" | "
|
|
173
|
-
borderTopColor?: "primary" | "secondary" | "tertiary" | "
|
|
169
|
+
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;
|
|
170
|
+
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;
|
|
171
|
+
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;
|
|
172
|
+
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;
|
|
173
|
+
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;
|
|
174
174
|
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
175
175
|
borderTopStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
176
176
|
borderTopEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
package/dist/styles/styler.d.ts
CHANGED
|
@@ -140,15 +140,15 @@ declare const getStylesInternal: (props?: ({
|
|
|
140
140
|
tooltipVariantIcon?: "default" | undefined;
|
|
141
141
|
tooltipVariantRoot?: "default" | undefined;
|
|
142
142
|
tooltipVariantSvg?: "default" | undefined;
|
|
143
|
-
color?: "primary" | "secondary" | "tertiary" | "
|
|
144
|
-
placeholderColor?: "primary" | "secondary" | "tertiary" | "
|
|
143
|
+
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;
|
|
144
|
+
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;
|
|
145
145
|
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;
|
|
146
146
|
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;
|
|
147
|
-
fontWeight?: "
|
|
147
|
+
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;
|
|
148
148
|
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;
|
|
149
149
|
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;
|
|
150
|
-
textAlign?: "
|
|
151
|
-
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" | "
|
|
150
|
+
textAlign?: "start" | "end" | "center" | "justify" | undefined;
|
|
151
|
+
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;
|
|
152
152
|
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;
|
|
153
153
|
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;
|
|
154
154
|
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;
|
|
@@ -166,11 +166,11 @@ declare const getStylesInternal: (props?: ({
|
|
|
166
166
|
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;
|
|
167
167
|
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;
|
|
168
168
|
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;
|
|
169
|
-
borderColor?: "primary" | "secondary" | "tertiary" | "
|
|
170
|
-
borderStartColor?: "primary" | "secondary" | "tertiary" | "
|
|
171
|
-
borderEndColor?: "primary" | "secondary" | "tertiary" | "
|
|
172
|
-
borderBottomColor?: "primary" | "secondary" | "tertiary" | "
|
|
173
|
-
borderTopColor?: "primary" | "secondary" | "tertiary" | "
|
|
169
|
+
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;
|
|
170
|
+
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;
|
|
171
|
+
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;
|
|
172
|
+
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;
|
|
173
|
+
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;
|
|
174
174
|
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
175
175
|
borderTopStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
176
176
|
borderTopEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
const require_runtime = require('../../../../_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_index = require('../../../../config/dist/index.cjs');
|
|
4
4
|
const require_entries = require('../../utils/entries.cjs');
|
|
5
|
-
const require_mapValues = require('../../utils/mapValues.cjs');
|
|
6
|
-
const require_flattenColorPalette = require('../utils/flattenColorPalette.cjs');
|
|
7
5
|
let node_module = require("node:module");
|
|
8
6
|
|
|
9
7
|
//#region ../tailwind/dist/tailwind/plugins/getTailwindAsUdsColors.js
|
|
@@ -11,16 +9,23 @@ let node_module = require("node:module");
|
|
|
11
9
|
const SPECTRUM_COLOR_PREFIX = "uds-spectrum-color";
|
|
12
10
|
const lightSpectrum = require_index.defaultTokensConfig.colorMode.light.spectrum;
|
|
13
11
|
const tailwindColorsConfig = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href)("tailwindcss/colors.js");
|
|
14
|
-
const udsLightColors =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
const udsLightColors = flattenSpectrumToRgbRecord(lightSpectrum);
|
|
13
|
+
/**
|
|
14
|
+
* Iterates the two-level spectrum structure directly instead of using
|
|
15
|
+
* utils/flattenColorPalette, which would flatten SpectrumValueEntry objects
|
|
16
|
+
* into individual primitives (r, g, b, type) and lose the RGB grouping.
|
|
17
|
+
*/
|
|
18
|
+
function flattenSpectrumToRgbRecord(spectrum) {
|
|
19
|
+
const result = {};
|
|
20
|
+
for (const [hue, steps] of require_entries.entries(spectrum)) for (const [step, entry] of require_entries.entries(steps)) {
|
|
21
|
+
const { rgb } = entry;
|
|
22
|
+
result[`${hue}-${step}`] = {
|
|
23
|
+
r: rgb.r,
|
|
24
|
+
g: rgb.g,
|
|
25
|
+
b: rgb.b
|
|
22
26
|
};
|
|
23
|
-
}
|
|
27
|
+
}
|
|
28
|
+
return result;
|
|
24
29
|
}
|
|
25
30
|
function hexToRgb(hex) {
|
|
26
31
|
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
import { defaultTokensConfig } from "../../../../config/dist/index.js";
|
|
3
3
|
import { entries } from "../../utils/entries.js";
|
|
4
|
-
import { mapValues } from "../../utils/mapValues.js";
|
|
5
|
-
import { flattenColorPalette } from "../utils/flattenColorPalette.js";
|
|
6
4
|
import { createRequire } from "node:module";
|
|
7
5
|
|
|
8
6
|
//#region ../tailwind/dist/tailwind/plugins/getTailwindAsUdsColors.js
|
|
@@ -10,16 +8,23 @@ import { createRequire } from "node:module";
|
|
|
10
8
|
const SPECTRUM_COLOR_PREFIX = "uds-spectrum-color";
|
|
11
9
|
const lightSpectrum = defaultTokensConfig.colorMode.light.spectrum;
|
|
12
10
|
const tailwindColorsConfig = createRequire(import.meta.url)("tailwindcss/colors.js");
|
|
13
|
-
const udsLightColors =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
const udsLightColors = flattenSpectrumToRgbRecord(lightSpectrum);
|
|
12
|
+
/**
|
|
13
|
+
* Iterates the two-level spectrum structure directly instead of using
|
|
14
|
+
* utils/flattenColorPalette, which would flatten SpectrumValueEntry objects
|
|
15
|
+
* into individual primitives (r, g, b, type) and lose the RGB grouping.
|
|
16
|
+
*/
|
|
17
|
+
function flattenSpectrumToRgbRecord(spectrum) {
|
|
18
|
+
const result = {};
|
|
19
|
+
for (const [hue, steps] of entries(spectrum)) for (const [step, entry] of entries(steps)) {
|
|
20
|
+
const { rgb } = entry;
|
|
21
|
+
result[`${hue}-${step}`] = {
|
|
22
|
+
r: rgb.r,
|
|
23
|
+
g: rgb.g,
|
|
24
|
+
b: rgb.b
|
|
21
25
|
};
|
|
22
|
-
}
|
|
26
|
+
}
|
|
27
|
+
return result;
|
|
23
28
|
}
|
|
24
29
|
function hexToRgb(hex) {
|
|
25
30
|
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
@@ -7,6 +7,11 @@ const require_opacity = require('./opacity.cjs');
|
|
|
7
7
|
|
|
8
8
|
//#region ../tailwind/dist/utils/parseTokens.js
|
|
9
9
|
/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
|
|
10
|
+
/** Converts a SpectrumValueEntry to a space-separated RGB string for CSS variables. */
|
|
11
|
+
function spectrumValueToRgbString(value) {
|
|
12
|
+
const { r, g, b } = value.rgb;
|
|
13
|
+
return `${r} ${g} ${b}`;
|
|
14
|
+
}
|
|
10
15
|
function shouldIncludeOpacity(opacity) {
|
|
11
16
|
if (!opacity) return false;
|
|
12
17
|
const parsedOpacity = parseInt(opacity, 10);
|
|
@@ -23,7 +28,7 @@ function transformColors(colors, elevationPresets) {
|
|
|
23
28
|
const varKey = `--${require_index$1.SPECTRUM_COLOR_PREFIX}-${`${hue}-${hueStep}`}`;
|
|
24
29
|
if (!tailwindConfig.spectrum[hue]) tailwindConfig.spectrum[hue] = {};
|
|
25
30
|
tailwindConfig.spectrum[hue][hueStep] = `rgb(var(${varKey}))`;
|
|
26
|
-
rootVars[varKey] = value;
|
|
31
|
+
rootVars[varKey] = spectrumValueToRgbString(value);
|
|
27
32
|
}
|
|
28
33
|
require_entries.entries(palette).forEach(([paletteType, paletteConfig]) => {
|
|
29
34
|
for (const [paletteKey, { hue, step, opacity }] of Object.entries(paletteConfig)) {
|
|
@@ -7,6 +7,11 @@ import { parseOpacityStep } from "./opacity.js";
|
|
|
7
7
|
|
|
8
8
|
//#region ../tailwind/dist/utils/parseTokens.js
|
|
9
9
|
/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
|
|
10
|
+
/** Converts a SpectrumValueEntry to a space-separated RGB string for CSS variables. */
|
|
11
|
+
function spectrumValueToRgbString(value) {
|
|
12
|
+
const { r, g, b } = value.rgb;
|
|
13
|
+
return `${r} ${g} ${b}`;
|
|
14
|
+
}
|
|
10
15
|
function shouldIncludeOpacity(opacity) {
|
|
11
16
|
if (!opacity) return false;
|
|
12
17
|
const parsedOpacity = parseInt(opacity, 10);
|
|
@@ -23,7 +28,7 @@ function transformColors(colors, elevationPresets) {
|
|
|
23
28
|
const varKey = `--${SPECTRUM_COLOR_PREFIX}-${`${hue}-${hueStep}`}`;
|
|
24
29
|
if (!tailwindConfig.spectrum[hue]) tailwindConfig.spectrum[hue] = {};
|
|
25
30
|
tailwindConfig.spectrum[hue][hueStep] = `rgb(var(${varKey}))`;
|
|
26
|
-
rootVars[varKey] = value;
|
|
31
|
+
rootVars[varKey] = spectrumValueToRgbString(value);
|
|
27
32
|
}
|
|
28
33
|
entries(palette).forEach(([paletteType, paletteConfig]) => {
|
|
29
34
|
for (const [paletteKey, { hue, step, opacity }] of Object.entries(paletteConfig)) {
|