@yahoo/uds 3.59.0-beta.1 → 3.59.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-darwin-x64 +0 -0
- package/cli/bin/uds-linux-arm64 +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/dist/components/Box.d.ts +2 -2
- package/dist/components/Box.d.ts.map +1 -1
- package/dist/components/Divider/Divider.d.cts +2 -2
- package/dist/components/Divider/Divider.d.ts +2 -2
- package/dist/components/Divider/DividerCore.d.cts +2 -2
- package/dist/components/Divider/DividerCore.d.ts +2 -2
- package/dist/components/Divider/DividerInternal.d.cts +2 -2
- package/dist/components/Divider/DividerInternal.d.ts +2 -2
- package/dist/components/FormLabel.d.ts +2 -2
- package/dist/components/HStack.d.ts +2 -2
- package/dist/components/Icon.d.ts +2 -2
- package/dist/components/Link.d.ts +2 -2
- package/dist/components/Text.d.cts +5 -5
- package/dist/components/Text.d.cts.map +1 -1
- package/dist/components/Text.d.ts +8 -8
- package/dist/components/Text.d.ts.map +1 -1
- package/dist/components/VStack.d.ts +2 -2
- package/dist/components/VStack.d.ts.map +1 -1
- package/dist/components/client/AnimateHeightChange.d.cts +2 -2
- package/dist/components/client/AnimateHeightChange.d.ts +2 -2
- package/dist/components/client/Avatar/Avatar.d.cts +2 -2
- package/dist/components/client/Avatar/Avatar.d.cts.map +1 -1
- package/dist/components/client/Avatar/Avatar.d.ts +2 -2
- package/dist/components/client/Avatar/AvatarIcon.d.cts +2 -2
- package/dist/components/client/Avatar/AvatarIcon.d.cts.map +1 -1
- package/dist/components/client/Avatar/AvatarIcon.d.ts +2 -2
- package/dist/components/client/Avatar/AvatarImage.d.cts +2 -2
- package/dist/components/client/Avatar/AvatarImage.d.ts +2 -2
- package/dist/components/client/Avatar/AvatarText.d.cts +2 -2
- package/dist/components/client/Avatar/AvatarText.d.ts +2 -2
- package/dist/components/client/IconButton.d.cts +2 -2
- package/dist/components/client/IconButton.d.ts +2 -2
- package/dist/components/client/IconButton.d.ts.map +1 -1
- package/dist/components/client/Input/Input.d.cts +2 -2
- package/dist/components/client/Input/Input.d.ts +2 -2
- package/dist/components/client/Input/InputHelpText.d.cts +2 -2
- package/dist/components/client/Input/InputHelpText.d.cts.map +1 -1
- package/dist/components/client/Input/InputHelpText.d.ts +2 -2
- package/dist/components/client/Input/InputHelpTextInternal.d.cts +4 -4
- package/dist/components/client/Input/InputHelpTextInternal.d.cts.map +1 -1
- package/dist/components/client/Input/InputHelpTextInternal.d.ts +4 -4
- package/dist/components/client/Menu/Menu.Content.d.cts +2 -2
- package/dist/components/client/Menu/Menu.Content.d.ts +2 -2
- package/dist/components/client/Menu/Menu.Divider.d.cts +2 -2
- package/dist/components/client/Menu/Menu.Divider.d.ts +2 -2
- package/dist/components/client/Menu/Menu.Item.d.cts +2 -2
- package/dist/components/client/Menu/Menu.ItemBase.d.cts +2 -2
- package/dist/components/client/Menu/Menu.ItemBase.d.ts +2 -2
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +2 -2
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +2 -2
- package/dist/components/client/Menu/Menu.Provider.d.cts +2 -2
- package/dist/components/client/Menu/Menu.Provider.d.ts +2 -2
- package/dist/components/client/Menu/Menu.Trigger.d.cts +2 -2
- package/dist/components/client/Menu/Menu.Trigger.d.ts +2 -2
- package/dist/components/client/Pressable.d.cts +2 -2
- package/dist/components/client/Pressable.d.ts +2 -2
- package/dist/components/client/Pressable.d.ts.map +1 -1
- package/dist/components/client/Radio/RadioGroupStore.d.ts +2 -2
- package/dist/components/client/SpringMotionConfig.d.cts +3 -3
- package/dist/components/client/SpringMotionConfig.d.ts +3 -3
- package/dist/components/client/SpringMotionConfig.d.ts.map +1 -1
- package/dist/components/experimental/Spinner.d.cts +2 -2
- package/dist/components/experimental/Spinner.d.cts.map +1 -1
- package/dist/components/experimental/Spinner.d.ts +2 -2
- package/dist/components/experimental/Table.d.cts +2 -2
- package/dist/components/experimental/Table.d.ts +2 -2
- package/dist/components/experimental/client/Accordion.d.cts +2 -2
- package/dist/components/experimental/client/Accordion.d.cts.map +1 -1
- package/dist/components/experimental/client/Accordion.d.ts +2 -2
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.d.cts +2 -2
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.d.ts +2 -2
- package/dist/components/experimental/client/Modal.d.cts +3 -3
- package/dist/components/experimental/client/Modal.d.cts.map +1 -1
- package/dist/components/experimental/client/Modal.d.ts +3 -3
- package/dist/components/experimental/client/Popover.d.cts +3 -3
- package/dist/components/experimental/client/Popover.d.cts.map +1 -1
- package/dist/components/experimental/client/Popover.d.ts +3 -3
- package/dist/components/experimental/client/Tabs.d.cts +3 -3
- package/dist/components/experimental/client/Tabs.d.ts +6 -6
- package/dist/components/experimental/client/Toast.d.cts +2 -2
- package/dist/components/experimental/client/Toast.d.ts +2 -2
- package/dist/providers/ColorModeProvider.d.cts +4 -4
- package/dist/providers/ColorModeProvider.d.cts.map +1 -1
- package/dist/providers/ColorModeProvider.d.ts +4 -4
- package/dist/providers/ColorModeProvider.d.ts.map +1 -1
- package/dist/providers/ScaleModeProvider.d.cts +4 -4
- package/dist/providers/ScaleModeProvider.d.cts.map +1 -1
- package/dist/providers/ScaleModeProvider.d.ts +4 -4
- package/dist/providers/ScaleModeProvider.d.ts.map +1 -1
- package/dist/providers/ThemeProvider.d.cts +2 -2
- package/dist/providers/ThemeProvider.d.cts.map +1 -1
- package/dist/providers/ThemeProvider.d.ts +2 -2
- package/dist/styles/styler.d.cts +33 -33
- package/dist/styles/styler.d.ts +33 -33
- package/dist/styles/stylerTypes.d.ts.map +1 -1
- package/dist/tailwind/tailwind.config.d.ts +3 -3
- package/dist/tailwind/tailwindPlugin.d.ts +3 -3
- package/dist/tailwind/utils/getMotionStyles.d.cts +1 -1
- package/dist/tailwind/utils/getMotionStyles.d.ts +1 -1
- package/dist/tokens/automation/utils/getConfigVariantProperties.d.cts +2 -2
- package/dist/tokens/automation/utils/getConfigVariantProperties.d.cts.map +1 -1
- package/dist/tokens/automation/utils/getConfigVariantProperties.d.ts +2 -2
- package/dist/tokens/automation/utils/getConfigVariantProperties.d.ts.map +1 -1
- package/dist/tokens/types.d.cts.map +1 -1
- package/dist/tokens/types.d.ts.map +1 -1
- package/dist/utils/intersperse.d.cts +2 -2
- package/dist/utils/intersperse.d.ts +2 -2
- package/package.json +1 -3
- package/cli/FlattenButtonVariant.mock.tsx +0 -17
- package/src/components/Box.tsx +0 -181
- package/src/components/Divider/Divider.tsx +0 -44
- package/src/components/Divider/DividerCore.tsx +0 -101
- package/src/components/Divider/DividerInternal.tsx +0 -56
- package/src/components/Divider/index.ts +0 -1
- package/src/components/FormLabel.tsx +0 -66
- package/src/components/HStack.tsx +0 -53
- package/src/components/Icon.tsx +0 -82
- package/src/components/IconSlot.tsx +0 -82
- package/src/components/Image.tsx +0 -162
- package/src/components/Link.tsx +0 -134
- package/src/components/Text.tsx +0 -272
- package/src/components/VStack.tsx +0 -53
- package/src/components/client/AnimateHeightChange.tsx +0 -50
- package/src/components/client/Avatar/Avatar.tsx +0 -31
- package/src/components/client/Avatar/AvatarIcon.tsx +0 -103
- package/src/components/client/Avatar/AvatarImage.tsx +0 -147
- package/src/components/client/Avatar/AvatarText.tsx +0 -88
- package/src/components/client/Avatar/index.ts +0 -4
- package/src/components/client/Avatar/utils.ts +0 -105
- package/src/components/client/Badge.tsx +0 -133
- package/src/components/client/Button.tsx +0 -312
- package/src/components/client/Checkbox.tsx +0 -377
- package/src/components/client/Chip/Chip.tsx +0 -81
- package/src/components/client/Chip/ChipBase.tsx +0 -151
- package/src/components/client/Chip/ChipButton.tsx +0 -54
- package/src/components/client/Chip/ChipDismissible.tsx +0 -90
- package/src/components/client/Chip/ChipLink.tsx +0 -60
- package/src/components/client/Chip/ChipToggle.tsx +0 -79
- package/src/components/client/Chip/index.ts +0 -5
- package/src/components/client/IconButton.tsx +0 -198
- package/src/components/client/Input/Input.tsx +0 -323
- package/src/components/client/Input/InputHelpText.tsx +0 -52
- package/src/components/client/Input/InputHelpTextInternal.tsx +0 -81
- package/src/components/client/Input/index.ts +0 -2
- package/src/components/client/Menu/Menu.Content.tsx +0 -391
- package/src/components/client/Menu/Menu.Divider.tsx +0 -102
- package/src/components/client/Menu/Menu.Item.tsx +0 -114
- package/src/components/client/Menu/Menu.ItemBase.tsx +0 -265
- package/src/components/client/Menu/Menu.ItemCheckbox.tsx +0 -197
- package/src/components/client/Menu/Menu.Provider.tsx +0 -154
- package/src/components/client/Menu/Menu.Trigger.tsx +0 -119
- package/src/components/client/Menu/Menu.index.tsx +0 -9
- package/src/components/client/Menu/Menu.tsx +0 -2
- package/src/components/client/Menu/index.ts +0 -7
- package/src/components/client/Menu/utils/transformAriakitPlacement.ts +0 -66
- package/src/components/client/Pressable.tsx +0 -194
- package/src/components/client/Radio/Radio.tsx +0 -351
- package/src/components/client/Radio/RadioGroupProvider.tsx +0 -122
- package/src/components/client/Radio/RadioGroupStore.tsx +0 -56
- package/src/components/client/Radio/index.ts +0 -2
- package/src/components/client/Radio/useRadioGroup.ts +0 -149
- package/src/components/client/SpringMotionConfig.tsx +0 -151
- package/src/components/client/Switch.tsx +0 -377
- package/src/components/client/index.ts +0 -30
- package/src/components/client/motionFeatures/domAnimation.ts +0 -2
- package/src/components/client/motionFeatures/domMax.ts +0 -2
- package/src/components/experimental/Spinner.tsx +0 -30
- package/src/components/experimental/Table.mocks.tsx +0 -38
- package/src/components/experimental/Table.tsx +0 -239
- package/src/components/experimental/client/Accordion.tsx +0 -77
- package/src/components/experimental/client/AvoidMotionLibraryProvider.tsx +0 -10
- package/src/components/experimental/client/Modal.tsx +0 -68
- package/src/components/experimental/client/Popover.tsx +0 -63
- package/src/components/experimental/client/SwitchV2.tsx +0 -343
- package/src/components/experimental/client/Tabs.tsx +0 -106
- package/src/components/experimental/client/Toast.tsx +0 -186
- package/src/components/experimental/client/index.ts +0 -15
- package/src/components/experimental/index.ts +0 -48
- package/src/components/index.ts +0 -41
- package/src/defaultTokensConfig.ts +0 -31
- package/src/fixtures/index.ts +0 -638
- package/src/fixtures/macros/typesToConstants.ts +0 -42
- package/src/fixtures/utils/getScaleModeRamp.ts +0 -48
- package/src/fixtures/utils/getTailwindAsUdsColors.ts +0 -115
- package/src/flags.ts +0 -45
- package/src/hooks/useForkRef.ts +0 -34
- package/src/hooks/useNestedBorderRadius.ts +0 -138
- package/src/hooks/useRtl.ts +0 -64
- package/src/index.ts +0 -4
- package/src/providers/ColorModeProvider.tsx +0 -21
- package/src/providers/ScaleModeProvider.tsx +0 -29
- package/src/providers/ThemeProvider.tsx +0 -26
- package/src/styles/styler.ts +0 -194
- package/src/styles/stylerTypes.ts +0 -81
- package/src/styles/toast.css +0 -0
- package/src/styles/variants.ts +0 -1351
- package/src/tailwind/base/addColorModeVars.ts +0 -23
- package/src/tailwind/base/addColorModeVarsV2.ts +0 -57
- package/src/tailwind/base/addFontFaceDeclarations.ts +0 -13
- package/src/tailwind/base/addFontVars.ts +0 -9
- package/src/tailwind/base/addMotionVars.ts +0 -9
- package/src/tailwind/base/addScaleModeVars.ts +0 -33
- package/src/tailwind/base/types.ts +0 -8
- package/src/tailwind/components/getButtonStyles.ts +0 -240
- package/src/tailwind/components/getFocusRingStyles.ts +0 -32
- package/src/tailwind/components/getGroupedTextStyles.ts +0 -29
- package/src/tailwind/components/getHitTargetStyles.ts +0 -23
- package/src/tailwind/components/getIconButtonStyles.ts +0 -49
- package/src/tailwind/components/getIconStyles.ts +0 -13
- package/src/tailwind/components/getInputStyles.ts +0 -20
- package/src/tailwind/components/getResponsiveTextStyles.ts +0 -161
- package/src/tailwind/components/types.ts +0 -14
- package/src/tailwind/components/utils.ts +0 -73
- package/src/tailwind/defaultTailwindThemeAsUdsConfig.ts +0 -78
- package/src/tailwind/postcss.config.ts +0 -6
- package/src/tailwind/purger/index.ts +0 -1
- package/src/tailwind/tailwind.config.ts +0 -50
- package/src/tailwind/tailwind.d.ts +0 -5
- package/src/tailwind/tailwindPlugin.ts +0 -724
- package/src/tailwind/theme/getFontFamilyTheme.ts +0 -28
- package/src/tailwind/tsMorph.ts +0 -1
- package/src/tailwind/uds.css +0 -3
- package/src/tailwind/utils/addFontsPlugin.ts +0 -17
- package/src/tailwind/utils/getColorModeStyles.ts +0 -21
- package/src/tailwind/utils/getFontFaceDeclarations.ts +0 -12
- package/src/tailwind/utils/getFontStyles.ts +0 -38
- package/src/tailwind/utils/getMotionStyles.ts +0 -35
- package/src/tailwind/utils/getScaleModeStyles.ts +0 -23
- package/src/tailwind/utils/getShadowPresetValues.ts +0 -133
- package/src/tailwind/utils/getShadowStyles.ts +0 -26
- package/src/tailwind/utils/getShadowVars.ts +0 -40
- package/src/tailwind/utils/index.ts +0 -9
- package/src/tokens/automation/configs/avatar.ts +0 -297
- package/src/tokens/automation/configs/badge.ts +0 -306
- package/src/tokens/automation/configs/checkbox.ts +0 -226
- package/src/tokens/automation/configs/chip.ts +0 -521
- package/src/tokens/automation/configs/divider.ts +0 -112
- package/src/tokens/automation/configs/index.ts +0 -10
- package/src/tokens/automation/configs/input.ts +0 -496
- package/src/tokens/automation/configs/link.ts +0 -183
- package/src/tokens/automation/configs/menu.ts +0 -344
- package/src/tokens/automation/configs/radio.ts +0 -225
- package/src/tokens/automation/configs/switch.ts +0 -323
- package/src/tokens/automation/index.ts +0 -5
- package/src/tokens/automation/mapTextVariantFixtureToValue.ts +0 -8
- package/src/tokens/automation/properties.ts +0 -433
- package/src/tokens/automation/types/ComponentConfig.ts +0 -116
- package/src/tokens/automation/types/ComponentDB.ts +0 -1
- package/src/tokens/automation/types/ComponentStyles.ts +0 -47
- package/src/tokens/automation/types/index.ts +0 -2
- package/src/tokens/automation/utils/cartesianProduct.ts +0 -13
- package/src/tokens/automation/utils/coalesceConfigVariant.ts +0 -49
- package/src/tokens/automation/utils/defaults.ts +0 -29
- package/src/tokens/automation/utils/generateKeyFromFlatConfigPath.ts +0 -15
- package/src/tokens/automation/utils/generateSchemaKey.ts +0 -29
- package/src/tokens/automation/utils/getConfigComponentVariant.ts +0 -28
- package/src/tokens/automation/utils/getConfigVariantComponentStatesMatrix.ts +0 -40
- package/src/tokens/automation/utils/getConfigVariantProperties.ts +0 -32
- package/src/tokens/automation/utils/getConfigVariantPseudoStates.ts +0 -70
- package/src/tokens/automation/utils/getConfigVariants.ts +0 -73
- package/src/tokens/automation/utils/index.ts +0 -939
- package/src/tokens/automation/utils/mapColorFixtureToValue.ts +0 -34
- package/src/tokens/automation/utils/subcomponents.ts +0 -13
- package/src/tokens/automation/utils/variableData.ts +0 -79
- package/src/tokens/automation/utils/variantConfigGuards.ts +0 -17
- package/src/tokens/configs/borderRadius.ts +0 -23
- package/src/tokens/configs/borderWidth.ts +0 -17
- package/src/tokens/configs/button.ts +0 -888
- package/src/tokens/configs/colorMode.ts +0 -14
- package/src/tokens/configs/font.ts +0 -9
- package/src/tokens/configs/iconButton.ts +0 -28
- package/src/tokens/configs/motion.ts +0 -135
- package/src/tokens/configs/palette.ts +0 -124
- package/src/tokens/configs/scaleMode.ts +0 -28
- package/src/tokens/configs/shadow.ts +0 -286
- package/src/tokens/configs/sizes.ts +0 -23
- package/src/tokens/configs/spectrum.ts +0 -729
- package/src/tokens/configs/typography.ts +0 -417
- package/src/tokens/configs/yosConfig.ts +0 -7651
- package/src/tokens/consts/buttonMotionTokens.ts +0 -99
- package/src/tokens/consts/cssTokens.ts +0 -110
- package/src/tokens/consts/defaultModes.ts +0 -15
- package/src/tokens/consts/fontDeclarationsMap.ts +0 -509
- package/src/tokens/index.ts +0 -15
- package/src/tokens/parseButtonVariants.ts +0 -59
- package/src/tokens/parseTokens.ts +0 -122
- package/src/tokens/types.ts +0 -1882
- package/src/tokens/utils/entries.ts +0 -14
- package/src/tokens/utils/fromEntries.ts +0 -11
- package/src/tokens/utils/mapValues.ts +0 -15
- package/src/types.ts +0 -2
- package/src/utils/assertUnreachable.ts +0 -6
- package/src/utils/composeRefs.ts +0 -23
- package/src/utils/createSlot.tsx +0 -131
- package/src/utils/entries.ts +0 -6
- package/src/utils/falsyToString.ts +0 -3
- package/src/utils/getMotionVar.ts +0 -18
- package/src/utils/intersperse.ts +0 -45
- package/src/utils/mapValues.ts +0 -15
- package/src/utils/mergeSlotProps.ts +0 -70
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
alwaysPaletteAliases,
|
|
3
|
-
backgroundPaletteColors,
|
|
4
|
-
borderWidths,
|
|
5
|
-
foregroundPaletteColors,
|
|
6
|
-
iconSizes,
|
|
7
|
-
linePaletteColors,
|
|
8
|
-
shadowVariants,
|
|
9
|
-
shadowVariantsWithInvert,
|
|
10
|
-
spacingAliases,
|
|
11
|
-
spectrumColors,
|
|
12
|
-
textVariants,
|
|
13
|
-
} from '@yahoo/uds/fixtures';
|
|
14
|
-
import {
|
|
15
|
-
createComponentStates,
|
|
16
|
-
createConfigurableProperty,
|
|
17
|
-
createLayerConfig,
|
|
18
|
-
createVariantConfigWithComponentStates,
|
|
19
|
-
createVariantConfigWithProperties,
|
|
20
|
-
} from '@yahoo/uds/tokens';
|
|
21
|
-
|
|
22
|
-
import type { ComponentConfig } from '../types';
|
|
23
|
-
|
|
24
|
-
function defineComponentConfig<T extends ComponentConfig>(config: T): T {
|
|
25
|
-
// TODO: validation
|
|
26
|
-
// All subcomponents should have the same variants
|
|
27
|
-
// The default variant needs to be consistent between sub variants
|
|
28
|
-
return config;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// TODO: finish the implementation
|
|
32
|
-
export const SwitchConfig = defineComponentConfig({
|
|
33
|
-
label: 'Switch',
|
|
34
|
-
description:
|
|
35
|
-
'A switch is a toggle control that lets users turn a setting on or off. It’s commonly used for binary actions like enabling or disabling a feature.',
|
|
36
|
-
variants: {
|
|
37
|
-
variant: createVariantConfigWithComponentStates({
|
|
38
|
-
label: 'Variant',
|
|
39
|
-
description:
|
|
40
|
-
'A switch is a toggle control that lets users turn a setting on or off. It’s commonly used for binary actions like enabling or disabling a feature.',
|
|
41
|
-
default: 'default',
|
|
42
|
-
options: ['default'],
|
|
43
|
-
isConfigurable: true,
|
|
44
|
-
componentStates: {
|
|
45
|
-
active: createComponentStates({
|
|
46
|
-
label: 'active',
|
|
47
|
-
options: ['on', 'off'],
|
|
48
|
-
layers: {
|
|
49
|
-
root: createLayerConfig({
|
|
50
|
-
label: 'root',
|
|
51
|
-
properties: {
|
|
52
|
-
labelColor: createConfigurableProperty({
|
|
53
|
-
name: 'color',
|
|
54
|
-
label: 'Label color',
|
|
55
|
-
pseudoStates: ['hover'],
|
|
56
|
-
typeOfFixture: [
|
|
57
|
-
'spectrumColors',
|
|
58
|
-
'foregroundPaletteColors',
|
|
59
|
-
'alwaysPaletteAliases',
|
|
60
|
-
],
|
|
61
|
-
values: [spectrumColors, foregroundPaletteColors, alwaysPaletteAliases],
|
|
62
|
-
defaults: {
|
|
63
|
-
default: 'secondary',
|
|
64
|
-
},
|
|
65
|
-
}),
|
|
66
|
-
},
|
|
67
|
-
}),
|
|
68
|
-
switch: createLayerConfig({
|
|
69
|
-
label: 'switch',
|
|
70
|
-
properties: {
|
|
71
|
-
backgroundColor: createConfigurableProperty({
|
|
72
|
-
name: 'backgroundColor',
|
|
73
|
-
label: 'Track background color',
|
|
74
|
-
pseudoStates: ['hover'],
|
|
75
|
-
typeOfFixture: [
|
|
76
|
-
'spectrumColors',
|
|
77
|
-
'backgroundPaletteColors',
|
|
78
|
-
'alwaysPaletteAliases',
|
|
79
|
-
],
|
|
80
|
-
values: [spectrumColors, backgroundPaletteColors, alwaysPaletteAliases],
|
|
81
|
-
defaults: {
|
|
82
|
-
default: 'brand',
|
|
83
|
-
},
|
|
84
|
-
}),
|
|
85
|
-
borderColor: createConfigurableProperty({
|
|
86
|
-
name: 'borderColor',
|
|
87
|
-
label: 'Track border color',
|
|
88
|
-
pseudoStates: ['hover'],
|
|
89
|
-
typeOfFixture: ['spectrumColors', 'linePaletteColors', 'alwaysPaletteAliases'],
|
|
90
|
-
values: [spectrumColors, linePaletteColors, alwaysPaletteAliases],
|
|
91
|
-
defaults: {
|
|
92
|
-
default: 'brand',
|
|
93
|
-
},
|
|
94
|
-
}),
|
|
95
|
-
shadow: createConfigurableProperty({
|
|
96
|
-
name: 'shadow',
|
|
97
|
-
label: 'Drop shadow',
|
|
98
|
-
typeOfFixture: ['shadowVariants'],
|
|
99
|
-
supportsCustom: true,
|
|
100
|
-
values: [shadowVariants],
|
|
101
|
-
pseudoStates: ['hover'],
|
|
102
|
-
defaults: {
|
|
103
|
-
default: 'xl',
|
|
104
|
-
},
|
|
105
|
-
}),
|
|
106
|
-
insetShadow: createConfigurableProperty({
|
|
107
|
-
name: 'insetShadow',
|
|
108
|
-
label: 'Inset shadow',
|
|
109
|
-
typeOfFixture: ['shadowVariantsWithInvert'],
|
|
110
|
-
supportsCustom: true,
|
|
111
|
-
values: [shadowVariantsWithInvert],
|
|
112
|
-
pseudoStates: ['hover'],
|
|
113
|
-
defaults: {
|
|
114
|
-
default: '2xl-invert',
|
|
115
|
-
},
|
|
116
|
-
}),
|
|
117
|
-
},
|
|
118
|
-
}),
|
|
119
|
-
handle: createLayerConfig({
|
|
120
|
-
label: 'handle',
|
|
121
|
-
properties: {
|
|
122
|
-
backgroundColor: createConfigurableProperty({
|
|
123
|
-
name: 'backgroundColor',
|
|
124
|
-
label: 'Handle color',
|
|
125
|
-
pseudoStates: ['hover'],
|
|
126
|
-
typeOfFixture: [
|
|
127
|
-
'spectrumColors',
|
|
128
|
-
'backgroundPaletteColors',
|
|
129
|
-
'alwaysPaletteAliases',
|
|
130
|
-
],
|
|
131
|
-
values: [spectrumColors, backgroundPaletteColors, alwaysPaletteAliases],
|
|
132
|
-
defaults: {
|
|
133
|
-
default: 'primary',
|
|
134
|
-
},
|
|
135
|
-
}),
|
|
136
|
-
shadow: createConfigurableProperty({
|
|
137
|
-
name: 'shadow',
|
|
138
|
-
label: 'Drop shadow',
|
|
139
|
-
typeOfFixture: ['shadowVariants'],
|
|
140
|
-
supportsCustom: true,
|
|
141
|
-
values: [shadowVariants],
|
|
142
|
-
pseudoStates: ['hover'],
|
|
143
|
-
defaults: {
|
|
144
|
-
default: 'xl',
|
|
145
|
-
},
|
|
146
|
-
}),
|
|
147
|
-
insetShadow: createConfigurableProperty({
|
|
148
|
-
name: 'insetShadow',
|
|
149
|
-
label: 'Inset shadow',
|
|
150
|
-
typeOfFixture: ['shadowVariantsWithInvert'],
|
|
151
|
-
supportsCustom: true,
|
|
152
|
-
values: [shadowVariantsWithInvert],
|
|
153
|
-
pseudoStates: ['hover'],
|
|
154
|
-
defaults: {
|
|
155
|
-
default: '2xl-invert',
|
|
156
|
-
},
|
|
157
|
-
}),
|
|
158
|
-
},
|
|
159
|
-
}),
|
|
160
|
-
handleIcon: createLayerConfig({
|
|
161
|
-
label: 'handleIcon',
|
|
162
|
-
properties: {
|
|
163
|
-
color: createConfigurableProperty({
|
|
164
|
-
name: 'color',
|
|
165
|
-
label: 'Icon color',
|
|
166
|
-
pseudoStates: ['hover'],
|
|
167
|
-
typeOfFixture: [
|
|
168
|
-
'spectrumColors',
|
|
169
|
-
'foregroundPaletteColors',
|
|
170
|
-
'alwaysPaletteAliases',
|
|
171
|
-
],
|
|
172
|
-
values: [spectrumColors, foregroundPaletteColors],
|
|
173
|
-
defaults: {
|
|
174
|
-
default: 'brand',
|
|
175
|
-
},
|
|
176
|
-
}),
|
|
177
|
-
},
|
|
178
|
-
}),
|
|
179
|
-
},
|
|
180
|
-
}),
|
|
181
|
-
},
|
|
182
|
-
}),
|
|
183
|
-
size: createVariantConfigWithProperties({
|
|
184
|
-
label: 'Size',
|
|
185
|
-
description: 'These sizes will apply across all variants',
|
|
186
|
-
isConfigurable: true,
|
|
187
|
-
default: 'md',
|
|
188
|
-
options: ['sm', 'md'],
|
|
189
|
-
layers: {
|
|
190
|
-
root: createLayerConfig({
|
|
191
|
-
label: 'root',
|
|
192
|
-
properties: {
|
|
193
|
-
spacingHorizontal: createConfigurableProperty({
|
|
194
|
-
name: 'spacingHorizontal',
|
|
195
|
-
label: 'Spacing horizontal',
|
|
196
|
-
typeOfFixture: ['spacingAliases'],
|
|
197
|
-
values: [spacingAliases],
|
|
198
|
-
defaults: {
|
|
199
|
-
sm: '0',
|
|
200
|
-
md: '0',
|
|
201
|
-
},
|
|
202
|
-
}),
|
|
203
|
-
spacingVertical: createConfigurableProperty({
|
|
204
|
-
name: 'spacingVertical',
|
|
205
|
-
label: 'Spacing vertical',
|
|
206
|
-
typeOfFixture: ['spacingAliases'],
|
|
207
|
-
values: [spacingAliases],
|
|
208
|
-
defaults: {
|
|
209
|
-
sm: '1',
|
|
210
|
-
md: '1.5',
|
|
211
|
-
},
|
|
212
|
-
}),
|
|
213
|
-
gap: createConfigurableProperty({
|
|
214
|
-
name: 'gap',
|
|
215
|
-
label: 'Gap',
|
|
216
|
-
typeOfFixture: ['spacingAliases'],
|
|
217
|
-
values: [spacingAliases],
|
|
218
|
-
defaults: {
|
|
219
|
-
sm: '2',
|
|
220
|
-
md: '2',
|
|
221
|
-
},
|
|
222
|
-
}),
|
|
223
|
-
textVariant: createConfigurableProperty({
|
|
224
|
-
name: 'textVariant',
|
|
225
|
-
label: 'Text variant',
|
|
226
|
-
typeOfFixture: ['textVariants'],
|
|
227
|
-
values: [textVariants],
|
|
228
|
-
defaults: {
|
|
229
|
-
sm: 'label4',
|
|
230
|
-
md: 'label2',
|
|
231
|
-
},
|
|
232
|
-
}),
|
|
233
|
-
},
|
|
234
|
-
}),
|
|
235
|
-
switch: createLayerConfig({
|
|
236
|
-
label: 'switch',
|
|
237
|
-
properties: {
|
|
238
|
-
height: createConfigurableProperty({
|
|
239
|
-
name: 'height',
|
|
240
|
-
label: 'Track height',
|
|
241
|
-
typeOfFixture: ['spacingAliases'],
|
|
242
|
-
values: [spacingAliases],
|
|
243
|
-
defaults: {
|
|
244
|
-
sm: '5',
|
|
245
|
-
md: '7',
|
|
246
|
-
},
|
|
247
|
-
}),
|
|
248
|
-
width: createConfigurableProperty({
|
|
249
|
-
name: 'width',
|
|
250
|
-
label: 'Track width',
|
|
251
|
-
typeOfFixture: ['spacingAliases'],
|
|
252
|
-
values: [spacingAliases],
|
|
253
|
-
defaults: {
|
|
254
|
-
sm: '8',
|
|
255
|
-
md: '12',
|
|
256
|
-
},
|
|
257
|
-
}),
|
|
258
|
-
borderWidth: createConfigurableProperty({
|
|
259
|
-
name: 'borderWidth',
|
|
260
|
-
label: 'Track border width',
|
|
261
|
-
typeOfFixture: ['borderWidths'],
|
|
262
|
-
values: [borderWidths],
|
|
263
|
-
defaults: {
|
|
264
|
-
sm: 'none',
|
|
265
|
-
md: 'none',
|
|
266
|
-
},
|
|
267
|
-
}),
|
|
268
|
-
padding: createConfigurableProperty({
|
|
269
|
-
name: 'padding',
|
|
270
|
-
label: 'Track padding',
|
|
271
|
-
typeOfFixture: ['spacingAliases'],
|
|
272
|
-
values: [spacingAliases],
|
|
273
|
-
defaults: {
|
|
274
|
-
sm: '0.5',
|
|
275
|
-
md: '0.5',
|
|
276
|
-
},
|
|
277
|
-
}),
|
|
278
|
-
},
|
|
279
|
-
}),
|
|
280
|
-
handle: createLayerConfig({
|
|
281
|
-
label: 'Handle',
|
|
282
|
-
properties: {
|
|
283
|
-
height: createConfigurableProperty({
|
|
284
|
-
name: 'height',
|
|
285
|
-
label: 'Track height',
|
|
286
|
-
typeOfFixture: ['spacingAliases'],
|
|
287
|
-
values: [spacingAliases],
|
|
288
|
-
defaults: {
|
|
289
|
-
sm: '4',
|
|
290
|
-
md: '6',
|
|
291
|
-
},
|
|
292
|
-
}),
|
|
293
|
-
width: createConfigurableProperty({
|
|
294
|
-
name: 'width',
|
|
295
|
-
label: 'Track width',
|
|
296
|
-
typeOfFixture: ['spacingAliases'],
|
|
297
|
-
values: [spacingAliases],
|
|
298
|
-
defaults: {
|
|
299
|
-
sm: '4',
|
|
300
|
-
md: '6',
|
|
301
|
-
},
|
|
302
|
-
}),
|
|
303
|
-
},
|
|
304
|
-
}),
|
|
305
|
-
handleIcon: createLayerConfig({
|
|
306
|
-
label: 'Icon',
|
|
307
|
-
properties: {
|
|
308
|
-
size: createConfigurableProperty({
|
|
309
|
-
name: 'iconSize',
|
|
310
|
-
label: 'Icon size',
|
|
311
|
-
typeOfFixture: ['iconSizes'],
|
|
312
|
-
values: [iconSizes],
|
|
313
|
-
defaults: {
|
|
314
|
-
sm: 'sm',
|
|
315
|
-
md: 'sm',
|
|
316
|
-
},
|
|
317
|
-
}),
|
|
318
|
-
},
|
|
319
|
-
}),
|
|
320
|
-
},
|
|
321
|
-
}),
|
|
322
|
-
},
|
|
323
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { textVariantsSafe } from '../../tailwind/components/getResponsiveTextStyles';
|
|
2
|
-
|
|
3
|
-
const mapTextVariantFixtureToValue =
|
|
4
|
-
(key: 'textTransform' | 'fontSize' | 'fontWeight' | 'lineHeight' | 'fontFamily') =>
|
|
5
|
-
(selected: 'textVariants', value: string) =>
|
|
6
|
-
`typography.${key}.${textVariantsSafe(value)}`;
|
|
7
|
-
|
|
8
|
-
export { mapTextVariantFixtureToValue };
|