@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.
Files changed (304) hide show
  1. package/cli/bin/uds-darwin-arm64-baseline +0 -0
  2. package/cli/bin/uds-darwin-x64 +0 -0
  3. package/cli/bin/uds-linux-arm64 +0 -0
  4. package/cli/bin/uds-linux-x64-baseline +0 -0
  5. package/dist/components/Box.d.ts +2 -2
  6. package/dist/components/Box.d.ts.map +1 -1
  7. package/dist/components/Divider/Divider.d.cts +2 -2
  8. package/dist/components/Divider/Divider.d.ts +2 -2
  9. package/dist/components/Divider/DividerCore.d.cts +2 -2
  10. package/dist/components/Divider/DividerCore.d.ts +2 -2
  11. package/dist/components/Divider/DividerInternal.d.cts +2 -2
  12. package/dist/components/Divider/DividerInternal.d.ts +2 -2
  13. package/dist/components/FormLabel.d.ts +2 -2
  14. package/dist/components/HStack.d.ts +2 -2
  15. package/dist/components/Icon.d.ts +2 -2
  16. package/dist/components/Link.d.ts +2 -2
  17. package/dist/components/Text.d.cts +5 -5
  18. package/dist/components/Text.d.cts.map +1 -1
  19. package/dist/components/Text.d.ts +8 -8
  20. package/dist/components/Text.d.ts.map +1 -1
  21. package/dist/components/VStack.d.ts +2 -2
  22. package/dist/components/VStack.d.ts.map +1 -1
  23. package/dist/components/client/AnimateHeightChange.d.cts +2 -2
  24. package/dist/components/client/AnimateHeightChange.d.ts +2 -2
  25. package/dist/components/client/Avatar/Avatar.d.cts +2 -2
  26. package/dist/components/client/Avatar/Avatar.d.cts.map +1 -1
  27. package/dist/components/client/Avatar/Avatar.d.ts +2 -2
  28. package/dist/components/client/Avatar/AvatarIcon.d.cts +2 -2
  29. package/dist/components/client/Avatar/AvatarIcon.d.cts.map +1 -1
  30. package/dist/components/client/Avatar/AvatarIcon.d.ts +2 -2
  31. package/dist/components/client/Avatar/AvatarImage.d.cts +2 -2
  32. package/dist/components/client/Avatar/AvatarImage.d.ts +2 -2
  33. package/dist/components/client/Avatar/AvatarText.d.cts +2 -2
  34. package/dist/components/client/Avatar/AvatarText.d.ts +2 -2
  35. package/dist/components/client/IconButton.d.cts +2 -2
  36. package/dist/components/client/IconButton.d.ts +2 -2
  37. package/dist/components/client/IconButton.d.ts.map +1 -1
  38. package/dist/components/client/Input/Input.d.cts +2 -2
  39. package/dist/components/client/Input/Input.d.ts +2 -2
  40. package/dist/components/client/Input/InputHelpText.d.cts +2 -2
  41. package/dist/components/client/Input/InputHelpText.d.cts.map +1 -1
  42. package/dist/components/client/Input/InputHelpText.d.ts +2 -2
  43. package/dist/components/client/Input/InputHelpTextInternal.d.cts +4 -4
  44. package/dist/components/client/Input/InputHelpTextInternal.d.cts.map +1 -1
  45. package/dist/components/client/Input/InputHelpTextInternal.d.ts +4 -4
  46. package/dist/components/client/Menu/Menu.Content.d.cts +2 -2
  47. package/dist/components/client/Menu/Menu.Content.d.ts +2 -2
  48. package/dist/components/client/Menu/Menu.Divider.d.cts +2 -2
  49. package/dist/components/client/Menu/Menu.Divider.d.ts +2 -2
  50. package/dist/components/client/Menu/Menu.Item.d.cts +2 -2
  51. package/dist/components/client/Menu/Menu.ItemBase.d.cts +2 -2
  52. package/dist/components/client/Menu/Menu.ItemBase.d.ts +2 -2
  53. package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +2 -2
  54. package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +2 -2
  55. package/dist/components/client/Menu/Menu.Provider.d.cts +2 -2
  56. package/dist/components/client/Menu/Menu.Provider.d.ts +2 -2
  57. package/dist/components/client/Menu/Menu.Trigger.d.cts +2 -2
  58. package/dist/components/client/Menu/Menu.Trigger.d.ts +2 -2
  59. package/dist/components/client/Pressable.d.cts +2 -2
  60. package/dist/components/client/Pressable.d.ts +2 -2
  61. package/dist/components/client/Pressable.d.ts.map +1 -1
  62. package/dist/components/client/Radio/RadioGroupStore.d.ts +2 -2
  63. package/dist/components/client/SpringMotionConfig.d.cts +3 -3
  64. package/dist/components/client/SpringMotionConfig.d.ts +3 -3
  65. package/dist/components/client/SpringMotionConfig.d.ts.map +1 -1
  66. package/dist/components/experimental/Spinner.d.cts +2 -2
  67. package/dist/components/experimental/Spinner.d.cts.map +1 -1
  68. package/dist/components/experimental/Spinner.d.ts +2 -2
  69. package/dist/components/experimental/Table.d.cts +2 -2
  70. package/dist/components/experimental/Table.d.ts +2 -2
  71. package/dist/components/experimental/client/Accordion.d.cts +2 -2
  72. package/dist/components/experimental/client/Accordion.d.cts.map +1 -1
  73. package/dist/components/experimental/client/Accordion.d.ts +2 -2
  74. package/dist/components/experimental/client/AvoidMotionLibraryProvider.d.cts +2 -2
  75. package/dist/components/experimental/client/AvoidMotionLibraryProvider.d.ts +2 -2
  76. package/dist/components/experimental/client/Modal.d.cts +3 -3
  77. package/dist/components/experimental/client/Modal.d.cts.map +1 -1
  78. package/dist/components/experimental/client/Modal.d.ts +3 -3
  79. package/dist/components/experimental/client/Popover.d.cts +3 -3
  80. package/dist/components/experimental/client/Popover.d.cts.map +1 -1
  81. package/dist/components/experimental/client/Popover.d.ts +3 -3
  82. package/dist/components/experimental/client/Tabs.d.cts +3 -3
  83. package/dist/components/experimental/client/Tabs.d.ts +6 -6
  84. package/dist/components/experimental/client/Toast.d.cts +2 -2
  85. package/dist/components/experimental/client/Toast.d.ts +2 -2
  86. package/dist/providers/ColorModeProvider.d.cts +4 -4
  87. package/dist/providers/ColorModeProvider.d.cts.map +1 -1
  88. package/dist/providers/ColorModeProvider.d.ts +4 -4
  89. package/dist/providers/ColorModeProvider.d.ts.map +1 -1
  90. package/dist/providers/ScaleModeProvider.d.cts +4 -4
  91. package/dist/providers/ScaleModeProvider.d.cts.map +1 -1
  92. package/dist/providers/ScaleModeProvider.d.ts +4 -4
  93. package/dist/providers/ScaleModeProvider.d.ts.map +1 -1
  94. package/dist/providers/ThemeProvider.d.cts +2 -2
  95. package/dist/providers/ThemeProvider.d.cts.map +1 -1
  96. package/dist/providers/ThemeProvider.d.ts +2 -2
  97. package/dist/styles/styler.d.cts +33 -33
  98. package/dist/styles/styler.d.ts +33 -33
  99. package/dist/styles/stylerTypes.d.ts.map +1 -1
  100. package/dist/tailwind/tailwind.config.d.ts +3 -3
  101. package/dist/tailwind/tailwindPlugin.d.ts +3 -3
  102. package/dist/tailwind/utils/getMotionStyles.d.cts +1 -1
  103. package/dist/tailwind/utils/getMotionStyles.d.ts +1 -1
  104. package/dist/tokens/automation/utils/getConfigVariantProperties.d.cts +2 -2
  105. package/dist/tokens/automation/utils/getConfigVariantProperties.d.cts.map +1 -1
  106. package/dist/tokens/automation/utils/getConfigVariantProperties.d.ts +2 -2
  107. package/dist/tokens/automation/utils/getConfigVariantProperties.d.ts.map +1 -1
  108. package/dist/tokens/types.d.cts.map +1 -1
  109. package/dist/tokens/types.d.ts.map +1 -1
  110. package/dist/utils/intersperse.d.cts +2 -2
  111. package/dist/utils/intersperse.d.ts +2 -2
  112. package/package.json +1 -3
  113. package/cli/FlattenButtonVariant.mock.tsx +0 -17
  114. package/src/components/Box.tsx +0 -181
  115. package/src/components/Divider/Divider.tsx +0 -44
  116. package/src/components/Divider/DividerCore.tsx +0 -101
  117. package/src/components/Divider/DividerInternal.tsx +0 -56
  118. package/src/components/Divider/index.ts +0 -1
  119. package/src/components/FormLabel.tsx +0 -66
  120. package/src/components/HStack.tsx +0 -53
  121. package/src/components/Icon.tsx +0 -82
  122. package/src/components/IconSlot.tsx +0 -82
  123. package/src/components/Image.tsx +0 -162
  124. package/src/components/Link.tsx +0 -134
  125. package/src/components/Text.tsx +0 -272
  126. package/src/components/VStack.tsx +0 -53
  127. package/src/components/client/AnimateHeightChange.tsx +0 -50
  128. package/src/components/client/Avatar/Avatar.tsx +0 -31
  129. package/src/components/client/Avatar/AvatarIcon.tsx +0 -103
  130. package/src/components/client/Avatar/AvatarImage.tsx +0 -147
  131. package/src/components/client/Avatar/AvatarText.tsx +0 -88
  132. package/src/components/client/Avatar/index.ts +0 -4
  133. package/src/components/client/Avatar/utils.ts +0 -105
  134. package/src/components/client/Badge.tsx +0 -133
  135. package/src/components/client/Button.tsx +0 -312
  136. package/src/components/client/Checkbox.tsx +0 -377
  137. package/src/components/client/Chip/Chip.tsx +0 -81
  138. package/src/components/client/Chip/ChipBase.tsx +0 -151
  139. package/src/components/client/Chip/ChipButton.tsx +0 -54
  140. package/src/components/client/Chip/ChipDismissible.tsx +0 -90
  141. package/src/components/client/Chip/ChipLink.tsx +0 -60
  142. package/src/components/client/Chip/ChipToggle.tsx +0 -79
  143. package/src/components/client/Chip/index.ts +0 -5
  144. package/src/components/client/IconButton.tsx +0 -198
  145. package/src/components/client/Input/Input.tsx +0 -323
  146. package/src/components/client/Input/InputHelpText.tsx +0 -52
  147. package/src/components/client/Input/InputHelpTextInternal.tsx +0 -81
  148. package/src/components/client/Input/index.ts +0 -2
  149. package/src/components/client/Menu/Menu.Content.tsx +0 -391
  150. package/src/components/client/Menu/Menu.Divider.tsx +0 -102
  151. package/src/components/client/Menu/Menu.Item.tsx +0 -114
  152. package/src/components/client/Menu/Menu.ItemBase.tsx +0 -265
  153. package/src/components/client/Menu/Menu.ItemCheckbox.tsx +0 -197
  154. package/src/components/client/Menu/Menu.Provider.tsx +0 -154
  155. package/src/components/client/Menu/Menu.Trigger.tsx +0 -119
  156. package/src/components/client/Menu/Menu.index.tsx +0 -9
  157. package/src/components/client/Menu/Menu.tsx +0 -2
  158. package/src/components/client/Menu/index.ts +0 -7
  159. package/src/components/client/Menu/utils/transformAriakitPlacement.ts +0 -66
  160. package/src/components/client/Pressable.tsx +0 -194
  161. package/src/components/client/Radio/Radio.tsx +0 -351
  162. package/src/components/client/Radio/RadioGroupProvider.tsx +0 -122
  163. package/src/components/client/Radio/RadioGroupStore.tsx +0 -56
  164. package/src/components/client/Radio/index.ts +0 -2
  165. package/src/components/client/Radio/useRadioGroup.ts +0 -149
  166. package/src/components/client/SpringMotionConfig.tsx +0 -151
  167. package/src/components/client/Switch.tsx +0 -377
  168. package/src/components/client/index.ts +0 -30
  169. package/src/components/client/motionFeatures/domAnimation.ts +0 -2
  170. package/src/components/client/motionFeatures/domMax.ts +0 -2
  171. package/src/components/experimental/Spinner.tsx +0 -30
  172. package/src/components/experimental/Table.mocks.tsx +0 -38
  173. package/src/components/experimental/Table.tsx +0 -239
  174. package/src/components/experimental/client/Accordion.tsx +0 -77
  175. package/src/components/experimental/client/AvoidMotionLibraryProvider.tsx +0 -10
  176. package/src/components/experimental/client/Modal.tsx +0 -68
  177. package/src/components/experimental/client/Popover.tsx +0 -63
  178. package/src/components/experimental/client/SwitchV2.tsx +0 -343
  179. package/src/components/experimental/client/Tabs.tsx +0 -106
  180. package/src/components/experimental/client/Toast.tsx +0 -186
  181. package/src/components/experimental/client/index.ts +0 -15
  182. package/src/components/experimental/index.ts +0 -48
  183. package/src/components/index.ts +0 -41
  184. package/src/defaultTokensConfig.ts +0 -31
  185. package/src/fixtures/index.ts +0 -638
  186. package/src/fixtures/macros/typesToConstants.ts +0 -42
  187. package/src/fixtures/utils/getScaleModeRamp.ts +0 -48
  188. package/src/fixtures/utils/getTailwindAsUdsColors.ts +0 -115
  189. package/src/flags.ts +0 -45
  190. package/src/hooks/useForkRef.ts +0 -34
  191. package/src/hooks/useNestedBorderRadius.ts +0 -138
  192. package/src/hooks/useRtl.ts +0 -64
  193. package/src/index.ts +0 -4
  194. package/src/providers/ColorModeProvider.tsx +0 -21
  195. package/src/providers/ScaleModeProvider.tsx +0 -29
  196. package/src/providers/ThemeProvider.tsx +0 -26
  197. package/src/styles/styler.ts +0 -194
  198. package/src/styles/stylerTypes.ts +0 -81
  199. package/src/styles/toast.css +0 -0
  200. package/src/styles/variants.ts +0 -1351
  201. package/src/tailwind/base/addColorModeVars.ts +0 -23
  202. package/src/tailwind/base/addColorModeVarsV2.ts +0 -57
  203. package/src/tailwind/base/addFontFaceDeclarations.ts +0 -13
  204. package/src/tailwind/base/addFontVars.ts +0 -9
  205. package/src/tailwind/base/addMotionVars.ts +0 -9
  206. package/src/tailwind/base/addScaleModeVars.ts +0 -33
  207. package/src/tailwind/base/types.ts +0 -8
  208. package/src/tailwind/components/getButtonStyles.ts +0 -240
  209. package/src/tailwind/components/getFocusRingStyles.ts +0 -32
  210. package/src/tailwind/components/getGroupedTextStyles.ts +0 -29
  211. package/src/tailwind/components/getHitTargetStyles.ts +0 -23
  212. package/src/tailwind/components/getIconButtonStyles.ts +0 -49
  213. package/src/tailwind/components/getIconStyles.ts +0 -13
  214. package/src/tailwind/components/getInputStyles.ts +0 -20
  215. package/src/tailwind/components/getResponsiveTextStyles.ts +0 -161
  216. package/src/tailwind/components/types.ts +0 -14
  217. package/src/tailwind/components/utils.ts +0 -73
  218. package/src/tailwind/defaultTailwindThemeAsUdsConfig.ts +0 -78
  219. package/src/tailwind/postcss.config.ts +0 -6
  220. package/src/tailwind/purger/index.ts +0 -1
  221. package/src/tailwind/tailwind.config.ts +0 -50
  222. package/src/tailwind/tailwind.d.ts +0 -5
  223. package/src/tailwind/tailwindPlugin.ts +0 -724
  224. package/src/tailwind/theme/getFontFamilyTheme.ts +0 -28
  225. package/src/tailwind/tsMorph.ts +0 -1
  226. package/src/tailwind/uds.css +0 -3
  227. package/src/tailwind/utils/addFontsPlugin.ts +0 -17
  228. package/src/tailwind/utils/getColorModeStyles.ts +0 -21
  229. package/src/tailwind/utils/getFontFaceDeclarations.ts +0 -12
  230. package/src/tailwind/utils/getFontStyles.ts +0 -38
  231. package/src/tailwind/utils/getMotionStyles.ts +0 -35
  232. package/src/tailwind/utils/getScaleModeStyles.ts +0 -23
  233. package/src/tailwind/utils/getShadowPresetValues.ts +0 -133
  234. package/src/tailwind/utils/getShadowStyles.ts +0 -26
  235. package/src/tailwind/utils/getShadowVars.ts +0 -40
  236. package/src/tailwind/utils/index.ts +0 -9
  237. package/src/tokens/automation/configs/avatar.ts +0 -297
  238. package/src/tokens/automation/configs/badge.ts +0 -306
  239. package/src/tokens/automation/configs/checkbox.ts +0 -226
  240. package/src/tokens/automation/configs/chip.ts +0 -521
  241. package/src/tokens/automation/configs/divider.ts +0 -112
  242. package/src/tokens/automation/configs/index.ts +0 -10
  243. package/src/tokens/automation/configs/input.ts +0 -496
  244. package/src/tokens/automation/configs/link.ts +0 -183
  245. package/src/tokens/automation/configs/menu.ts +0 -344
  246. package/src/tokens/automation/configs/radio.ts +0 -225
  247. package/src/tokens/automation/configs/switch.ts +0 -323
  248. package/src/tokens/automation/index.ts +0 -5
  249. package/src/tokens/automation/mapTextVariantFixtureToValue.ts +0 -8
  250. package/src/tokens/automation/properties.ts +0 -433
  251. package/src/tokens/automation/types/ComponentConfig.ts +0 -116
  252. package/src/tokens/automation/types/ComponentDB.ts +0 -1
  253. package/src/tokens/automation/types/ComponentStyles.ts +0 -47
  254. package/src/tokens/automation/types/index.ts +0 -2
  255. package/src/tokens/automation/utils/cartesianProduct.ts +0 -13
  256. package/src/tokens/automation/utils/coalesceConfigVariant.ts +0 -49
  257. package/src/tokens/automation/utils/defaults.ts +0 -29
  258. package/src/tokens/automation/utils/generateKeyFromFlatConfigPath.ts +0 -15
  259. package/src/tokens/automation/utils/generateSchemaKey.ts +0 -29
  260. package/src/tokens/automation/utils/getConfigComponentVariant.ts +0 -28
  261. package/src/tokens/automation/utils/getConfigVariantComponentStatesMatrix.ts +0 -40
  262. package/src/tokens/automation/utils/getConfigVariantProperties.ts +0 -32
  263. package/src/tokens/automation/utils/getConfigVariantPseudoStates.ts +0 -70
  264. package/src/tokens/automation/utils/getConfigVariants.ts +0 -73
  265. package/src/tokens/automation/utils/index.ts +0 -939
  266. package/src/tokens/automation/utils/mapColorFixtureToValue.ts +0 -34
  267. package/src/tokens/automation/utils/subcomponents.ts +0 -13
  268. package/src/tokens/automation/utils/variableData.ts +0 -79
  269. package/src/tokens/automation/utils/variantConfigGuards.ts +0 -17
  270. package/src/tokens/configs/borderRadius.ts +0 -23
  271. package/src/tokens/configs/borderWidth.ts +0 -17
  272. package/src/tokens/configs/button.ts +0 -888
  273. package/src/tokens/configs/colorMode.ts +0 -14
  274. package/src/tokens/configs/font.ts +0 -9
  275. package/src/tokens/configs/iconButton.ts +0 -28
  276. package/src/tokens/configs/motion.ts +0 -135
  277. package/src/tokens/configs/palette.ts +0 -124
  278. package/src/tokens/configs/scaleMode.ts +0 -28
  279. package/src/tokens/configs/shadow.ts +0 -286
  280. package/src/tokens/configs/sizes.ts +0 -23
  281. package/src/tokens/configs/spectrum.ts +0 -729
  282. package/src/tokens/configs/typography.ts +0 -417
  283. package/src/tokens/configs/yosConfig.ts +0 -7651
  284. package/src/tokens/consts/buttonMotionTokens.ts +0 -99
  285. package/src/tokens/consts/cssTokens.ts +0 -110
  286. package/src/tokens/consts/defaultModes.ts +0 -15
  287. package/src/tokens/consts/fontDeclarationsMap.ts +0 -509
  288. package/src/tokens/index.ts +0 -15
  289. package/src/tokens/parseButtonVariants.ts +0 -59
  290. package/src/tokens/parseTokens.ts +0 -122
  291. package/src/tokens/types.ts +0 -1882
  292. package/src/tokens/utils/entries.ts +0 -14
  293. package/src/tokens/utils/fromEntries.ts +0 -11
  294. package/src/tokens/utils/mapValues.ts +0 -15
  295. package/src/types.ts +0 -2
  296. package/src/utils/assertUnreachable.ts +0 -6
  297. package/src/utils/composeRefs.ts +0 -23
  298. package/src/utils/createSlot.tsx +0 -131
  299. package/src/utils/entries.ts +0 -6
  300. package/src/utils/falsyToString.ts +0 -3
  301. package/src/utils/getMotionVar.ts +0 -18
  302. package/src/utils/intersperse.ts +0 -45
  303. package/src/utils/mapValues.ts +0 -15
  304. package/src/utils/mergeSlotProps.ts +0 -70
@@ -1,14 +0,0 @@
1
- import type { ColorModeConfig } from '../types';
2
- import { darkPalette, lightPalette } from './palette';
3
- import { darkSpectrum, lightSpectrum } from './spectrum';
4
-
5
- export const colorMode: ColorModeConfig = {
6
- light: {
7
- palette: lightPalette,
8
- spectrum: lightSpectrum,
9
- },
10
- dark: {
11
- palette: darkPalette,
12
- spectrum: darkSpectrum,
13
- },
14
- };
@@ -1,9 +0,0 @@
1
- import type { FontConfig } from '../types';
2
-
3
- export const font: FontConfig = {
4
- sans: 'yahoo-product-sans',
5
- 'sans-alt': 'yahoo-sans-condensed',
6
- serif: 'yahoo-serif-display',
7
- 'serif-alt': 'yahoo-serif-text',
8
- mono: 'roboto-mono',
9
- };
@@ -1,28 +0,0 @@
1
- import type { IconButtonConfig } from '../types';
2
- import { button } from './button';
3
-
4
- export const iconButton: IconButtonConfig = {
5
- defaults: button.defaults,
6
- size: {
7
- xs: {
8
- spacing: '1',
9
- iconSize: 'sm',
10
- },
11
- sm: {
12
- spacing: button.size.sm.spacingVertical,
13
- iconSize: button.size.sm.iconSize,
14
- },
15
- md: {
16
- spacing: button.size.md.spacingVertical,
17
- iconSize: button.size.md.iconSize,
18
- },
19
- lg: {
20
- spacing: button.size.lg.spacingVertical,
21
- iconSize: button.size.lg.iconSize,
22
- },
23
- xl: {
24
- spacing: '4',
25
- iconSize: 'lg',
26
- },
27
- },
28
- };
@@ -1,135 +0,0 @@
1
- import type { MotionConfig } from '@yahoo/uds/tokens';
2
-
3
- const animation = {
4
- none: 'none',
5
- spin: 'spin 1s linear infinite',
6
- ping: 'ping 1s cubic-bezier(0, 0, 0.2, 1) infinite',
7
- pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
8
- bounce: 'bounce 1s infinite',
9
- };
10
-
11
- const transitionDelay = {
12
- '0': '0s',
13
- '75': '75ms',
14
- '100': '100ms',
15
- '150': '150ms',
16
- '200': '200ms',
17
- '300': '300ms',
18
- '500': '500ms',
19
- '700': '700ms',
20
- '1000': '1000ms',
21
- };
22
-
23
- const transitionDuration = {
24
- '0': '0s',
25
- '75': '75ms',
26
- '100': '100ms',
27
- '150': '150ms',
28
- '200': '200ms',
29
- '300': '300ms',
30
- '500': '500ms',
31
- '700': '700ms',
32
- '1000': '1000ms',
33
- };
34
-
35
- const transitionTiming = {
36
- linear: 'linear',
37
- in: 'cubic-bezier(0.4, 0, 1, 1)',
38
- out: 'cubic-bezier(0, 0, 0.2, 1)',
39
- 'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
40
- };
41
-
42
- const motion: MotionConfig = {
43
- damped: {
44
- '1': {
45
- damping: 20.585796264350424,
46
- stiffness: 62.379681153657017,
47
- },
48
- '2': {
49
- damping: 29.312551281312288,
50
- stiffness: 126.47801753759964,
51
- },
52
- '3': {
53
- damping: 48.927994013561623,
54
- stiffness: 352.38923365373319,
55
- },
56
- '4': {
57
- damping: 123.42690994256348,
58
- stiffness: 2242.474548821137,
59
- },
60
- },
61
- smooth: {
62
- '1': {
63
- damping: 16.46863701148034,
64
- stiffness: 67.804001253975017,
65
- },
66
- '2': {
67
- damping: 23.450041025049831,
68
- stiffness: 137.47610601913004,
69
- },
70
- '3': {
71
- damping: 39.142395210849301,
72
- stiffness: 383.03177571057955,
73
- },
74
- '4': {
75
- damping: 98.741527954050795,
76
- stiffness: 2437.4723356751488,
77
- },
78
- },
79
- subtle: {
80
- '1': {
81
- damping: 13.043160513092429,
82
- stiffness: 67.804001253975017,
83
- },
84
- '2': {
85
- damping: 18.572432491839468,
86
- stiffness: 137.47610601913004,
87
- },
88
- '3': {
89
- damping: 31.000777006992646,
90
- stiffness: 383.03177571057955,
91
- },
92
- '4': {
93
- damping: 78.203290139608228,
94
- stiffness: 2437.4723356751488,
95
- },
96
- },
97
- bouncy: {
98
- '1': {
99
- damping: 9.2297129406001428,
100
- stiffness: 48.880672622541795,
101
- },
102
- '2': {
103
- damping: 12.634144343496553,
104
- stiffness: 91.590926913663992,
105
- },
106
- '3': {
107
- damping: 19.402177017904862,
108
- stiffness: 216.00395877230474,
109
- },
110
- '4': {
111
- damping: 37.541723184430275,
112
- stiffness: 808.70325594229121,
113
- },
114
- },
115
- veryBouncy: {
116
- '1': {
117
- damping: 6.9022907549461872,
118
- stiffness: 38.921527451269107,
119
- },
120
- '2': {
121
- damping: 9.1555505142155234,
122
- stiffness: 68.48134828711234,
123
- },
124
- '3': {
125
- damping: 13.244464908166709,
126
- stiffness: 143.30858570843873,
127
- },
128
- '4': {
129
- damping: 22.178626528767261,
130
- stiffness: 401.85804919502965,
131
- },
132
- },
133
- };
134
-
135
- export { animation, motion, transitionDelay, transitionDuration, transitionTiming };
@@ -1,124 +0,0 @@
1
- import type { PaletteConfig } from '../types';
2
-
3
- const lightPalette: PaletteConfig = {
4
- background: {
5
- primary: { hue: 'gray', step: '0' },
6
- secondary: { hue: 'carbon', step: '2' },
7
- accent: { hue: 'carbon', step: '2' },
8
- brand: { hue: 'purple', step: '9' },
9
- 'brand-secondary': { hue: 'purple', step: '1' },
10
- info: { hue: 'blue', step: '5' },
11
- 'info-secondary': { hue: 'blue', step: '1' },
12
- alert: { hue: 'red', step: '9' },
13
- 'alert-secondary': { hue: 'red', step: '2' },
14
- positive: { hue: 'green', step: '5' },
15
- 'positive-secondary': { hue: 'green', step: '2' },
16
- warning: { hue: 'orange', step: '5' },
17
- 'warning-secondary': { hue: 'orange', step: '2' },
18
- },
19
- foreground: {
20
- primary: { hue: 'carbon', step: '13' },
21
- secondary: { hue: 'carbon', step: '10' },
22
- tertiary: { hue: 'gray', step: '9' },
23
- muted: { hue: 'gray', step: '8' },
24
- 'on-color': { hue: 'gray', step: '0' },
25
- accent: { hue: 'carbon', step: '7' },
26
- brand: { hue: 'purple', step: '9' },
27
- 'brand-secondary': { hue: 'purple', step: '11' },
28
- info: { hue: 'blue', step: '8' },
29
- 'info-secondary': { hue: 'blue', step: '12' },
30
- alert: { hue: 'red', step: '9' },
31
- 'alert-secondary': { hue: 'red', step: '12' },
32
- positive: { hue: 'green', step: '7' },
33
- 'positive-secondary': { hue: 'green', step: '12' },
34
- warning: { hue: 'orange', step: '8' },
35
- 'warning-secondary': { hue: 'orange', step: '12' },
36
- },
37
- line: {
38
- primary: { hue: 'gray', step: '12' },
39
- secondary: { hue: 'gray', step: '9' },
40
- tertiary: { hue: 'gray', step: '7' },
41
- muted: { hue: 'gray', step: '3' },
42
- accent: { hue: 'carbon', step: '2' },
43
- brand: { hue: 'purple', step: '9' },
44
- 'brand-secondary': { hue: 'purple', step: '6' },
45
- info: { hue: 'blue', step: '9' },
46
- 'info-secondary': { hue: 'blue', step: '5' },
47
- alert: { hue: 'red', step: '9' },
48
- 'alert-secondary': { hue: 'red', step: '5' },
49
- positive: { hue: 'green', step: '9' },
50
- 'positive-secondary': { hue: 'green', step: '5' },
51
- warning: { hue: 'orange', step: '9' },
52
- 'warning-secondary': { hue: 'orange', step: '7' },
53
- },
54
- shadow: {
55
- primary: { hue: 'carbon', step: '12' },
56
- secondary: { hue: 'purple', step: '9' },
57
- },
58
- };
59
-
60
- const darkPalette: PaletteConfig = {
61
- background: {
62
- primary: { hue: 'gray', step: '1' },
63
- secondary: { hue: 'carbon', step: '2' },
64
- accent: { hue: 'carbon', step: '14' },
65
- brand: { hue: 'purple', step: '9' },
66
- 'brand-secondary': { hue: 'purple', step: '1' },
67
- info: { hue: 'blue', step: '5' },
68
- 'info-secondary': { hue: 'blue', step: '3' },
69
- alert: { hue: 'red', step: '9' },
70
- 'alert-secondary': { hue: 'red', step: '3' },
71
- positive: { hue: 'green', step: '5' },
72
- 'positive-secondary': { hue: 'green', step: '3' },
73
- warning: { hue: 'orange', step: '7' },
74
- 'warning-secondary': { hue: 'orange', step: '3' },
75
- },
76
- foreground: {
77
- primary: { hue: 'carbon', step: '13' },
78
- secondary: { hue: 'carbon', step: '10' },
79
- tertiary: { hue: 'gray', step: '9' },
80
- muted: { hue: 'gray', step: '8' },
81
- 'on-color': { hue: 'gray', step: '0' },
82
- accent: { hue: 'carbon', step: '7' },
83
- brand: { hue: 'purple', step: '9' },
84
- 'brand-secondary': { hue: 'purple', step: '12' },
85
- info: { hue: 'blue', step: '8' },
86
- 'info-secondary': { hue: 'blue', step: '12' },
87
- alert: { hue: 'red', step: '9' },
88
- 'alert-secondary': { hue: 'red', step: '12' },
89
- positive: { hue: 'green', step: '7' },
90
- 'positive-secondary': { hue: 'green', step: '12' },
91
- warning: { hue: 'orange', step: '7' },
92
- 'warning-secondary': { hue: 'orange', step: '12' },
93
- },
94
- line: {
95
- primary: { hue: 'gray', step: '12' },
96
- secondary: { hue: 'gray', step: '9' },
97
- tertiary: { hue: 'gray', step: '7' },
98
- muted: { hue: 'gray', step: '3' },
99
- accent: { hue: 'carbon', step: '1' },
100
- brand: { hue: 'purple', step: '9' },
101
- 'brand-secondary': { hue: 'purple', step: '5' },
102
- info: { hue: 'blue', step: '9' },
103
- 'info-secondary': { hue: 'blue', step: '5' },
104
- alert: { hue: 'red', step: '9' },
105
- 'alert-secondary': { hue: 'red', step: '5' },
106
- positive: { hue: 'green', step: '9' },
107
- 'positive-secondary': { hue: 'green', step: '5' },
108
- warning: { hue: 'orange', step: '9' },
109
- 'warning-secondary': { hue: 'orange', step: '7' },
110
- },
111
- shadow: {
112
- primary: { hue: 'carbon', step: '0' },
113
- secondary: { hue: 'purple', step: '9' },
114
- },
115
- };
116
-
117
- const alwaysPalette = {
118
- white: '#ffffff',
119
- black: '#000000',
120
- transparent: 'transparent',
121
- current: 'currentColor',
122
- };
123
-
124
- export { alwaysPalette, darkPalette, lightPalette };
@@ -1,28 +0,0 @@
1
- import type { ScaleModeConfig } from '../types';
2
- import { compactBorderRadius, normalBorderRadius } from './borderRadius';
3
- import { compactBorderWidths, normalBorderWidths } from './borderWidth';
4
- import { compactAvatarSizes, compactIconSizes, normalAvatarSizes, normalIconSizes } from './sizes';
5
-
6
- const compactTokens = {
7
- avatarSizes: compactAvatarSizes,
8
- iconSizes: compactIconSizes,
9
- borderRadius: compactBorderRadius,
10
- borderWidth: compactBorderWidths,
11
- };
12
-
13
- const normalTokens = {
14
- avatarSizes: normalAvatarSizes,
15
- iconSizes: normalIconSizes,
16
- borderRadius: normalBorderRadius,
17
- borderWidth: normalBorderWidths,
18
- };
19
-
20
- export const scaleMode: ScaleModeConfig = {
21
- xSmall: compactTokens,
22
- small: compactTokens,
23
- medium: compactTokens,
24
- large: normalTokens,
25
- xLarge: normalTokens,
26
- xxLarge: normalTokens,
27
- xxxLarge: normalTokens,
28
- };
@@ -1,286 +0,0 @@
1
- import type { ShadowConfig } from '../types';
2
-
3
- export const shadow: ShadowConfig = {
4
- drop: {
5
- none: [],
6
- xs: [
7
- {
8
- offsetX: '0',
9
- offsetY: 'px',
10
- blur: '0.5',
11
- spread: '0',
12
- opacity: '5',
13
- color: { type: 'palette', value: 'primary' },
14
- },
15
- ],
16
- sm: [
17
- {
18
- offsetX: '0',
19
- offsetY: 'px',
20
- blur: '0.5',
21
- spread: '0',
22
- opacity: '10',
23
- color: { type: 'palette', value: 'primary' },
24
- },
25
- {
26
- offsetX: '0',
27
- offsetY: 'px',
28
- blur: '1',
29
- spread: '0',
30
- opacity: '10',
31
- color: { type: 'palette', value: 'primary' },
32
- },
33
- ],
34
- md: [
35
- {
36
- offsetX: '0',
37
- offsetY: '1',
38
- blur: '1.5',
39
- spread: '-px',
40
- opacity: '10',
41
- color: { type: 'palette', value: 'primary' },
42
- },
43
- {
44
- offsetX: '0',
45
- offsetY: '0.5',
46
- blur: '1',
47
- spread: '-0.5',
48
- opacity: '10',
49
- color: { type: 'palette', value: 'primary' },
50
- },
51
- ],
52
- lg: [
53
- {
54
- offsetX: '0',
55
- offsetY: '1',
56
- blur: '1.5',
57
- spread: '-1',
58
- opacity: '10',
59
- color: { type: 'palette', value: 'primary' },
60
- },
61
- {
62
- offsetX: '0',
63
- offsetY: '2.5',
64
- blur: '3.5',
65
- spread: '-0.5',
66
- opacity: '10',
67
- color: { type: 'palette', value: 'primary' },
68
- },
69
- ],
70
- xl: [
71
- {
72
- offsetX: '0',
73
- offsetY: '2',
74
- blur: '2.5',
75
- spread: '-1.5',
76
- opacity: '10',
77
- color: { type: 'palette', value: 'primary' },
78
- },
79
- {
80
- offsetX: '0',
81
- offsetY: '5',
82
- blur: '6',
83
- spread: '-1',
84
- opacity: '10',
85
- color: { type: 'palette', value: 'primary' },
86
- },
87
- ],
88
- '2xl': [
89
- {
90
- offsetX: '0',
91
- offsetY: '6',
92
- blur: '12',
93
- spread: '-3',
94
- opacity: '25',
95
- color: { type: 'palette', value: 'primary' },
96
- },
97
- ],
98
- },
99
- inset: {
100
- none: [],
101
- xs: [
102
- {
103
- offsetX: '0',
104
- offsetY: 'px',
105
- blur: '0.5',
106
- spread: '0',
107
- opacity: '5',
108
- color: { type: 'palette', value: 'primary' },
109
- },
110
- ],
111
- sm: [
112
- {
113
- offsetX: '0',
114
- offsetY: 'px',
115
- blur: '0.5',
116
- spread: '0',
117
- opacity: '10',
118
- color: { type: 'palette', value: 'primary' },
119
- },
120
- {
121
- offsetX: '0',
122
- offsetY: 'px',
123
- blur: '1',
124
- spread: '0',
125
- opacity: '10',
126
- color: { type: 'palette', value: 'primary' },
127
- },
128
- ],
129
- md: [
130
- {
131
- offsetX: '0',
132
- offsetY: '1',
133
- blur: '1.5',
134
- spread: '-px',
135
- opacity: '10',
136
- color: { type: 'palette', value: 'primary' },
137
- },
138
- {
139
- offsetX: '0',
140
- offsetY: '0.5',
141
- blur: '1',
142
- spread: '-0.5',
143
- opacity: '10',
144
- color: { type: 'palette', value: 'primary' },
145
- },
146
- ],
147
- lg: [
148
- {
149
- offsetX: '0',
150
- offsetY: '1',
151
- blur: '1.5',
152
- spread: '-1',
153
- opacity: '10',
154
- color: { type: 'palette', value: 'primary' },
155
- },
156
- {
157
- offsetX: '0',
158
- offsetY: '2.5',
159
- blur: '3.5',
160
- spread: '-0.5',
161
- opacity: '10',
162
- color: { type: 'palette', value: 'primary' },
163
- },
164
- ],
165
- xl: [
166
- {
167
- offsetX: '0',
168
- offsetY: '2',
169
- blur: '2.5',
170
- spread: '-1.5',
171
- opacity: '10',
172
- color: { type: 'palette', value: 'primary' },
173
- },
174
- {
175
- offsetX: '0',
176
- offsetY: '5',
177
- blur: '6',
178
- spread: '-1',
179
- opacity: '10',
180
- color: { type: 'palette', value: 'primary' },
181
- },
182
- ],
183
- '2xl': [
184
- {
185
- offsetX: '0',
186
- offsetY: '6',
187
- blur: '12',
188
- spread: '-3',
189
- opacity: '25',
190
- color: { type: 'palette', value: 'primary' },
191
- },
192
- ],
193
- 'xs-invert': [
194
- {
195
- offsetX: '0',
196
- offsetY: 'px',
197
- blur: '0.5',
198
- spread: '0',
199
- opacity: '5',
200
- color: { type: 'always', value: 'white' },
201
- },
202
- ],
203
- 'sm-invert': [
204
- {
205
- offsetX: '0',
206
- offsetY: 'px',
207
- blur: '0.5',
208
- spread: '0',
209
- opacity: '10',
210
- color: { type: 'always', value: 'white' },
211
- },
212
- {
213
- offsetX: '0',
214
- offsetY: 'px',
215
- blur: '1',
216
- spread: '0',
217
- opacity: '10',
218
- color: { type: 'always', value: 'white' },
219
- },
220
- ],
221
- 'md-invert': [
222
- {
223
- offsetX: '0',
224
- offsetY: '1',
225
- blur: '1.5',
226
- spread: '-px',
227
- opacity: '10',
228
- color: { type: 'always', value: 'white' },
229
- },
230
- {
231
- offsetX: '0',
232
- offsetY: '0.5',
233
- blur: '1',
234
- spread: '-0.5',
235
- opacity: '10',
236
- color: { type: 'always', value: 'white' },
237
- },
238
- ],
239
- 'lg-invert': [
240
- {
241
- offsetX: '0',
242
- offsetY: '1',
243
- blur: '1.5',
244
- spread: '-1',
245
- opacity: '10',
246
- color: { type: 'always', value: 'white' },
247
- },
248
- {
249
- offsetX: '0',
250
- offsetY: '2.5',
251
- blur: '3.5',
252
- spread: '-0.5',
253
- opacity: '10',
254
- color: { type: 'always', value: 'white' },
255
- },
256
- ],
257
- 'xl-invert': [
258
- {
259
- offsetX: '0',
260
- offsetY: '2',
261
- blur: '2.5',
262
- spread: '-1.5',
263
- opacity: '10',
264
- color: { type: 'always', value: 'white' },
265
- },
266
- {
267
- offsetX: '0',
268
- offsetY: '5',
269
- blur: '6',
270
- spread: '-1',
271
- opacity: '10',
272
- color: { type: 'always', value: 'white' },
273
- },
274
- ],
275
- '2xl-invert': [
276
- {
277
- offsetX: '0',
278
- offsetY: '6',
279
- blur: '12',
280
- spread: '-3',
281
- opacity: '25',
282
- color: { type: 'always', value: 'white' },
283
- },
284
- ],
285
- },
286
- };
@@ -1,23 +0,0 @@
1
- import { ICON_SIZE_MAP } from '@yahoo/uds-icons/tokens';
2
-
3
- import type { AvatarSizeConfig, IconSizeConfig, InputSize } from '../types';
4
-
5
- const compactAvatarSizes: AvatarSizeConfig = {
6
- xs: 24,
7
- sm: 28,
8
- md: 40,
9
- lg: 52,
10
- xl: 64,
11
- };
12
-
13
- const normalAvatarSizes: AvatarSizeConfig = compactAvatarSizes;
14
-
15
- const compactIconSizes: IconSizeConfig = ICON_SIZE_MAP;
16
- const normalIconSizes: IconSizeConfig = ICON_SIZE_MAP;
17
-
18
- const inputSizes: Record<InputSize, number> = {
19
- md: 40,
20
- lg: 52,
21
- };
22
-
23
- export { compactAvatarSizes, compactIconSizes, inputSizes, normalAvatarSizes, normalIconSizes };