@yahoo/uds-mobile 1.0.1 → 1.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +1 -1
- package/dist/bin/{uds/dist/fixtures.mjs → fixtures/dist/index.mjs} +8 -16
- package/dist/bin/{uds/dist/tokens/consts/fontDeclarationsMap.mjs → fonts/dist/index.mjs} +2 -2
- package/dist/bin/generateTheme.mjs +10 -8
- package/dist/bin/modes/dist/index.mjs +6 -0
- package/dist/bin/{uds/dist/tokens/configs/palette/alwaysPalette.mjs → palette/dist/index.mjs} +1 -1
- package/dist/components/Avatar.d.mts +2 -2
- package/dist/components/Badge.d.cts +3 -3
- package/dist/components/Badge.d.mts +3 -3
- package/dist/components/Badge.d.mts.map +1 -1
- package/dist/components/Badge.mjs.map +1 -1
- package/dist/components/Box.cjs +1 -1
- package/dist/components/Box.d.cts +1 -1
- package/dist/components/Box.d.mts +3 -3
- package/dist/components/Box.mjs +1 -1
- package/dist/components/Box.mjs.map +1 -1
- package/dist/components/Button.cjs +6 -6
- package/dist/components/Button.d.cts +3 -4
- package/dist/components/Button.d.cts.map +1 -1
- package/dist/components/Button.d.mts +3 -4
- package/dist/components/Button.d.mts.map +1 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.mjs.map +1 -1
- package/dist/components/Checkbox.cjs +4 -4
- package/dist/components/Checkbox.d.cts +3 -3
- package/dist/components/Checkbox.d.mts +3 -3
- package/dist/components/Checkbox.d.mts.map +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/Checkbox.mjs.map +1 -1
- package/dist/components/Chip.d.cts +3 -3
- package/dist/components/Chip.d.mts +3 -3
- package/dist/components/Chip.d.mts.map +1 -1
- package/dist/components/Chip.mjs.map +1 -1
- package/dist/components/HStack.d.mts +2 -2
- package/dist/components/Icon.d.cts +1 -2
- package/dist/components/Icon.d.cts.map +1 -1
- package/dist/components/Icon.d.mts +3 -4
- package/dist/components/Icon.d.mts.map +1 -1
- package/dist/components/Icon.mjs.map +1 -1
- package/dist/components/IconButton.cjs +5 -5
- package/dist/components/IconButton.d.cts +1 -2
- package/dist/components/IconButton.d.cts.map +1 -1
- package/dist/components/IconButton.d.mts +3 -4
- package/dist/components/IconButton.d.mts.map +1 -1
- package/dist/components/IconButton.mjs +1 -1
- package/dist/components/IconButton.mjs.map +1 -1
- package/dist/components/IconSlot.d.mts +2 -2
- package/dist/components/Image.d.cts +1 -1
- package/dist/components/Image.d.mts +3 -3
- package/dist/components/Image.mjs.map +1 -1
- package/dist/components/Input.d.cts +1 -1
- package/dist/components/Input.d.mts +3 -3
- package/dist/components/Input.mjs.map +1 -1
- package/dist/components/Link.d.cts +3 -4
- package/dist/components/Link.d.cts.map +1 -1
- package/dist/components/Link.d.mts +3 -4
- package/dist/components/Link.d.mts.map +1 -1
- package/dist/components/Link.mjs.map +1 -1
- package/dist/components/Pressable.d.cts +3 -3
- package/dist/components/Pressable.d.mts +3 -3
- package/dist/components/Pressable.d.mts.map +1 -1
- package/dist/components/Radio.cjs +4 -4
- package/dist/components/Radio.d.cts +3 -3
- package/dist/components/Radio.d.mts +3 -3
- package/dist/components/Radio.d.mts.map +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/Radio.mjs.map +1 -1
- package/dist/components/Screen.d.cts +2 -2
- package/dist/components/Screen.d.mts +2 -2
- package/dist/components/Switch.d.cts +3 -3
- package/dist/components/Switch.d.mts +3 -3
- package/dist/components/Switch.mjs.map +1 -1
- package/dist/components/Text.d.cts +2 -2
- package/dist/components/Text.d.mts +2 -2
- package/dist/components/VStack.d.cts +2 -2
- package/dist/components/VStack.d.mts +2 -2
- package/dist/icons/dist/glyphMap.d.cts.map +1 -1
- package/dist/icons/dist/glyphMap.d.mts.map +1 -1
- package/dist/icons/dist/glyphMap.mjs.map +1 -1
- package/dist/icons/dist/svgMap.d.cts.map +1 -1
- package/dist/icons/dist/svgMap.d.mts.map +1 -1
- package/dist/icons/dist/svgMap.mjs.map +1 -1
- package/dist/icons/dist/tokens.mjs.map +1 -1
- package/dist/{uds/dist/tokens/configs/motion.cjs → motion-tokens/dist/index.cjs} +2 -2
- package/dist/{uds/dist/tokens/configs/motion.d.mts → motion-tokens/dist/index.d.cts} +4 -4
- package/dist/motion-tokens/dist/index.d.cts.map +1 -0
- package/dist/{uds/dist/tokens/configs/motion.d.cts → motion-tokens/dist/index.d.mts} +4 -4
- package/dist/motion-tokens/dist/index.d.mts.map +1 -0
- package/dist/{uds/dist/tokens/configs/motion.mjs → motion-tokens/dist/index.mjs} +3 -3
- package/dist/motion-tokens/dist/index.mjs.map +1 -0
- package/dist/motion.cjs +12 -12
- package/dist/motion.d.cts +2 -3
- package/dist/motion.d.cts.map +1 -1
- package/dist/motion.d.mts +2 -3
- package/dist/motion.d.mts.map +1 -1
- package/dist/motion.mjs +1 -1
- package/dist/motion.mjs.map +1 -1
- package/dist/types/dist/index.d.cts +247 -0
- package/dist/types/dist/index.d.cts.map +1 -0
- package/dist/types/dist/index.d.mts +247 -0
- package/dist/types/dist/index.d.mts.map +1 -0
- package/package.json +1 -1
- package/dist/bin/uds/dist/tokens/consts/defaultModes.mjs +0 -6
- package/dist/icons/dist/types.d.cts +0 -24
- package/dist/icons/dist/types.d.cts.map +0 -1
- package/dist/icons/dist/types.d.mts +0 -24
- package/dist/icons/dist/types.d.mts.map +0 -1
- package/dist/uds/dist/components/Box.d.cts +0 -3
- package/dist/uds/dist/components/Box.d.mts +0 -3
- package/dist/uds/dist/components/Divider/Divider.d.cts +0 -3
- package/dist/uds/dist/components/Divider/Divider.d.mts +0 -3
- package/dist/uds/dist/components/Divider/DividerCore.d.cts +0 -4
- package/dist/uds/dist/components/Divider/DividerCore.d.mts +0 -4
- package/dist/uds/dist/components/Divider/DividerInternal.d.cts +0 -4
- package/dist/uds/dist/components/Divider/DividerInternal.d.mts +0 -4
- package/dist/uds/dist/components/Divider/index.d.cts +0 -2
- package/dist/uds/dist/components/Divider/index.d.mts +0 -2
- package/dist/uds/dist/components/FormLabel.d.cts +0 -3
- package/dist/uds/dist/components/FormLabel.d.mts +0 -4
- package/dist/uds/dist/components/HStack.d.cts +0 -4
- package/dist/uds/dist/components/HStack.d.mts +0 -4
- package/dist/uds/dist/components/Icon.d.cts +0 -3
- package/dist/uds/dist/components/Icon.d.mts +0 -3
- package/dist/uds/dist/components/Image.d.cts +0 -2
- package/dist/uds/dist/components/Image.d.mts +0 -3
- package/dist/uds/dist/components/Link.d.cts +0 -3
- package/dist/uds/dist/components/Link.d.mts +0 -3
- package/dist/uds/dist/components/Text.d.cts +0 -3
- package/dist/uds/dist/components/Text.d.mts +0 -3
- package/dist/uds/dist/components/VStack.d.cts +0 -4
- package/dist/uds/dist/components/VStack.d.mts +0 -4
- package/dist/uds/dist/components/client/Avatar/Avatar.d.cts +0 -2
- package/dist/uds/dist/components/client/Avatar/Avatar.d.mts +0 -3
- package/dist/uds/dist/components/client/Avatar/AvatarIcon.d.cts +0 -2
- package/dist/uds/dist/components/client/Avatar/AvatarIcon.d.mts +0 -3
- package/dist/uds/dist/components/client/Avatar/AvatarImage.d.cts +0 -4
- package/dist/uds/dist/components/client/Avatar/AvatarImage.d.mts +0 -5
- package/dist/uds/dist/components/client/Avatar/AvatarText.d.cts +0 -3
- package/dist/uds/dist/components/client/Avatar/AvatarText.d.mts +0 -4
- package/dist/uds/dist/components/client/Avatar/index.d.cts +0 -5
- package/dist/uds/dist/components/client/Avatar/index.d.mts +0 -5
- package/dist/uds/dist/components/client/Badge.d.cts +0 -3
- package/dist/uds/dist/components/client/Badge.d.mts +0 -3
- package/dist/uds/dist/components/client/Button.d.cts +0 -3
- package/dist/uds/dist/components/client/Button.d.mts +0 -3
- package/dist/uds/dist/components/client/Checkbox.d.cts +0 -3
- package/dist/uds/dist/components/client/Checkbox.d.mts +0 -3
- package/dist/uds/dist/components/client/Chip/Chip.d.cts +0 -4
- package/dist/uds/dist/components/client/Chip/Chip.d.mts +0 -4
- package/dist/uds/dist/components/client/Chip/ChipBase.d.cts +0 -4
- package/dist/uds/dist/components/client/Chip/ChipBase.d.mts +0 -4
- package/dist/uds/dist/components/client/Chip/ChipButton.d.cts +0 -4
- package/dist/uds/dist/components/client/Chip/ChipButton.d.mts +0 -4
- package/dist/uds/dist/components/client/Chip/ChipDismissible.d.cts +0 -4
- package/dist/uds/dist/components/client/Chip/ChipDismissible.d.mts +0 -4
- package/dist/uds/dist/components/client/Chip/ChipLink.d.cts +0 -4
- package/dist/uds/dist/components/client/Chip/ChipLink.d.mts +0 -4
- package/dist/uds/dist/components/client/Chip/ChipToggle.d.cts +0 -4
- package/dist/uds/dist/components/client/Chip/ChipToggle.d.mts +0 -4
- package/dist/uds/dist/components/client/Chip/index.d.cts +0 -6
- package/dist/uds/dist/components/client/Chip/index.d.mts +0 -6
- package/dist/uds/dist/components/client/IconButton.d.cts +0 -3
- package/dist/uds/dist/components/client/IconButton.d.mts +0 -3
- package/dist/uds/dist/components/client/Input/Input.d.cts +0 -4
- package/dist/uds/dist/components/client/Input/Input.d.mts +0 -4
- package/dist/uds/dist/components/client/Input/InputHelpText.d.cts +0 -2
- package/dist/uds/dist/components/client/Input/InputHelpText.d.mts +0 -3
- package/dist/uds/dist/components/client/Input/InputHelpTextInternal.d.cts +0 -5
- package/dist/uds/dist/components/client/Input/InputHelpTextInternal.d.mts +0 -6
- package/dist/uds/dist/components/client/Input/index.d.cts +0 -3
- package/dist/uds/dist/components/client/Input/index.d.mts +0 -3
- package/dist/uds/dist/components/client/Menu/Menu.Content.d.cts +0 -4
- package/dist/uds/dist/components/client/Menu/Menu.Content.d.mts +0 -4
- package/dist/uds/dist/components/client/Menu/Menu.Divider.d.cts +0 -3
- package/dist/uds/dist/components/client/Menu/Menu.Divider.d.mts +0 -3
- package/dist/uds/dist/components/client/Menu/Menu.Item.d.cts +0 -4
- package/dist/uds/dist/components/client/Menu/Menu.Item.d.mts +0 -4
- package/dist/uds/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +0 -4
- package/dist/uds/dist/components/client/Menu/Menu.ItemCheckbox.d.mts +0 -4
- package/dist/uds/dist/components/client/Menu/Menu.Provider.d.cts +0 -2
- package/dist/uds/dist/components/client/Menu/Menu.Provider.d.mts +0 -3
- package/dist/uds/dist/components/client/Menu/Menu.Trigger.d.cts +0 -4
- package/dist/uds/dist/components/client/Menu/Menu.Trigger.d.mts +0 -4
- package/dist/uds/dist/components/client/Menu/Menu.d.cts +0 -2
- package/dist/uds/dist/components/client/Menu/Menu.d.mts +0 -2
- package/dist/uds/dist/components/client/Menu/Menu.index.d.cts +0 -7
- package/dist/uds/dist/components/client/Menu/Menu.index.d.mts +0 -7
- package/dist/uds/dist/components/client/Menu/index.d.cts +0 -9
- package/dist/uds/dist/components/client/Menu/index.d.mts +0 -9
- package/dist/uds/dist/components/client/Pressable.d.cts +0 -3
- package/dist/uds/dist/components/client/Pressable.d.mts +0 -3
- package/dist/uds/dist/components/client/Radio/Radio.d.cts +0 -3
- package/dist/uds/dist/components/client/Radio/Radio.d.mts +0 -3
- package/dist/uds/dist/components/client/Radio/RadioGroupProvider.d.cts +0 -3
- package/dist/uds/dist/components/client/Radio/RadioGroupProvider.d.mts +0 -3
- package/dist/uds/dist/components/client/Radio/index.d.cts +0 -3
- package/dist/uds/dist/components/client/Radio/index.d.mts +0 -3
- package/dist/uds/dist/components/client/SpringMotionConfig.d.cts +0 -3
- package/dist/uds/dist/components/client/SpringMotionConfig.d.mts +0 -3
- package/dist/uds/dist/components/client/Switch.d.cts +0 -3
- package/dist/uds/dist/components/client/Switch.d.mts +0 -3
- package/dist/uds/dist/components/client/index.d.cts +0 -33
- package/dist/uds/dist/components/client/index.d.mts +0 -33
- package/dist/uds/dist/components/index.d.cts +0 -40
- package/dist/uds/dist/components/index.d.mts +0 -40
- package/dist/uds/dist/index.d.cts +0 -46
- package/dist/uds/dist/index.d.mts +0 -46
- package/dist/uds/dist/styles/styler.d.cts +0 -2
- package/dist/uds/dist/styles/styler.d.mts +0 -2
- package/dist/uds/dist/styles/stylerTypes.d.cts +0 -2
- package/dist/uds/dist/styles/stylerTypes.d.mts +0 -2
- package/dist/uds/dist/tokens/automation/configs/avatar.d.cts +0 -2
- package/dist/uds/dist/tokens/automation/configs/avatar.d.mts +0 -2
- package/dist/uds/dist/tokens/automation/properties.d.cts +0 -3
- package/dist/uds/dist/tokens/automation/properties.d.mts +0 -3
- package/dist/uds/dist/tokens/automation/types/ComponentConfig.d.cts +0 -3
- package/dist/uds/dist/tokens/automation/types/ComponentConfig.d.mts +0 -3
- package/dist/uds/dist/tokens/configs/motion.d.cts.map +0 -1
- package/dist/uds/dist/tokens/configs/motion.d.mts.map +0 -1
- package/dist/uds/dist/tokens/configs/motion.mjs.map +0 -1
- package/dist/uds/dist/tokens/configs/palette/alwaysPalette.d.cts +0 -32
- package/dist/uds/dist/tokens/configs/palette/alwaysPalette.d.cts.map +0 -1
- package/dist/uds/dist/tokens/configs/palette/alwaysPalette.d.mts +0 -32
- package/dist/uds/dist/tokens/configs/palette/alwaysPalette.d.mts.map +0 -1
- package/dist/uds/dist/tokens/types.d.cts +0 -426
- package/dist/uds/dist/tokens/types.d.cts.map +0 -1
- package/dist/uds/dist/tokens/types.d.mts +0 -426
- package/dist/uds/dist/tokens/types.d.mts.map +0 -1
- package/dist/uds/dist/types.d.cts +0 -2
- package/dist/uds/dist/types.d.mts +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"motion.d.cts","names":["MotionConfig","SCALE_EFFECTS","animation","transitionDelay","transitionDuration","transitionTiming","motion"],"sources":["../../../../../../uds/dist/tokens/configs/motion.d.ts"],"sourcesContent":["\nimport { MotionConfig } from \"../types.js\";\nimport \"../index.js\";\n\n//#region src/tokens/configs/motion.d.ts\n\n/**\n * Scale effect values for button press/hover animations.\n * Used by both web (CSS transforms) and mobile (Reanimated).\n */\ndeclare const SCALE_EFFECTS: {\n readonly up: 1.03;\n readonly down: 0.97;\n readonly none: 1;\n};\ndeclare const animation: {\n none: string;\n spin: string;\n ping: string;\n pulse: string;\n bounce: string;\n};\ndeclare const transitionDelay: {\n '0': string;\n '75': string;\n '100': string;\n '150': string;\n '200': string;\n '300': string;\n '500': string;\n '700': string;\n '1000': string;\n};\ndeclare const transitionDuration: {\n '0': string;\n '75': string;\n '100': string;\n '150': string;\n '200': string;\n '300': string;\n '500': string;\n '700': string;\n '1000': string;\n};\ndeclare const transitionTiming: {\n linear: string;\n in: string;\n out: string;\n 'in-out': string;\n};\ndeclare const motion: MotionConfig;\n//#endregion\nexport { SCALE_EFFECTS, animation, motion, transitionDelay, transitionDuration, transitionTiming };"],"mappings":";;;;;AAiDC;;;;;cAvCaC;;;;;cAwCAK,QAAQN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"motion.d.mts","names":["MotionConfig","SCALE_EFFECTS","animation","transitionDelay","transitionDuration","transitionTiming","motion"],"sources":["../../../../../../uds/dist/tokens/configs/motion.d.ts"],"sourcesContent":["\nimport { MotionConfig } from \"../types.js\";\nimport \"../index.js\";\n\n//#region src/tokens/configs/motion.d.ts\n\n/**\n * Scale effect values for button press/hover animations.\n * Used by both web (CSS transforms) and mobile (Reanimated).\n */\ndeclare const SCALE_EFFECTS: {\n readonly up: 1.03;\n readonly down: 0.97;\n readonly none: 1;\n};\ndeclare const animation: {\n none: string;\n spin: string;\n ping: string;\n pulse: string;\n bounce: string;\n};\ndeclare const transitionDelay: {\n '0': string;\n '75': string;\n '100': string;\n '150': string;\n '200': string;\n '300': string;\n '500': string;\n '700': string;\n '1000': string;\n};\ndeclare const transitionDuration: {\n '0': string;\n '75': string;\n '100': string;\n '150': string;\n '200': string;\n '300': string;\n '500': string;\n '700': string;\n '1000': string;\n};\ndeclare const transitionTiming: {\n linear: string;\n in: string;\n out: string;\n 'in-out': string;\n};\ndeclare const motion: MotionConfig;\n//#endregion\nexport { SCALE_EFFECTS, animation, motion, transitionDelay, transitionDuration, transitionTiming };"],"mappings":";;;;;AAiDC;;;;;cAvCaC;;;;;cAwCAK,QAAQN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"motion.mjs","names":[],"sources":["../../../../../../uds/dist/tokens/configs/motion.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */\n//#region src/tokens/configs/motion.ts\n/**\n* Scale effect values for button press/hover animations.\n* Used by both web (CSS transforms) and mobile (Reanimated).\n*/\nconst SCALE_EFFECTS = {\n\tup: 1.03,\n\tdown: .97,\n\tnone: 1\n};\nconst animation = {\n\tnone: \"none\",\n\tspin: \"spin 1s linear infinite\",\n\tping: \"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite\",\n\tpulse: \"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite\",\n\tbounce: \"bounce 1s infinite\"\n};\nconst transitionDelay = {\n\t\"0\": \"0s\",\n\t\"75\": \"75ms\",\n\t\"100\": \"100ms\",\n\t\"150\": \"150ms\",\n\t\"200\": \"200ms\",\n\t\"300\": \"300ms\",\n\t\"500\": \"500ms\",\n\t\"700\": \"700ms\",\n\t\"1000\": \"1000ms\"\n};\nconst transitionDuration = {\n\t\"0\": \"0s\",\n\t\"75\": \"75ms\",\n\t\"100\": \"100ms\",\n\t\"150\": \"150ms\",\n\t\"200\": \"200ms\",\n\t\"300\": \"300ms\",\n\t\"500\": \"500ms\",\n\t\"700\": \"700ms\",\n\t\"1000\": \"1000ms\"\n};\nconst transitionTiming = {\n\tlinear: \"linear\",\n\tin: \"cubic-bezier(0.4, 0, 1, 1)\",\n\tout: \"cubic-bezier(0, 0, 0.2, 1)\",\n\t\"in-out\": \"cubic-bezier(0.4, 0, 0.2, 1)\"\n};\nconst motion = {\n\tdamped: {\n\t\t\"1\": {\n\t\t\tdamping: 20.585796264350424,\n\t\t\tstiffness: 62.37968115365702\n\t\t},\n\t\t\"2\": {\n\t\t\tdamping: 29.312551281312288,\n\t\t\tstiffness: 126.47801753759964\n\t\t},\n\t\t\"3\": {\n\t\t\tdamping: 48.92799401356162,\n\t\t\tstiffness: 352.3892336537332\n\t\t},\n\t\t\"4\": {\n\t\t\tdamping: 123.42690994256348,\n\t\t\tstiffness: 2242.474548821137\n\t\t}\n\t},\n\tsmooth: {\n\t\t\"1\": {\n\t\t\tdamping: 16.46863701148034,\n\t\t\tstiffness: 67.80400125397502\n\t\t},\n\t\t\"2\": {\n\t\t\tdamping: 23.45004102504983,\n\t\t\tstiffness: 137.47610601913004\n\t\t},\n\t\t\"3\": {\n\t\t\tdamping: 39.1423952108493,\n\t\t\tstiffness: 383.03177571057955\n\t\t},\n\t\t\"4\": {\n\t\t\tdamping: 98.7415279540508,\n\t\t\tstiffness: 2437.4723356751488\n\t\t}\n\t},\n\tsubtle: {\n\t\t\"1\": {\n\t\t\tdamping: 13.04316051309243,\n\t\t\tstiffness: 67.80400125397502\n\t\t},\n\t\t\"2\": {\n\t\t\tdamping: 18.572432491839468,\n\t\t\tstiffness: 137.47610601913004\n\t\t},\n\t\t\"3\": {\n\t\t\tdamping: 31.000777006992646,\n\t\t\tstiffness: 383.03177571057955\n\t\t},\n\t\t\"4\": {\n\t\t\tdamping: 78.20329013960823,\n\t\t\tstiffness: 2437.4723356751488\n\t\t}\n\t},\n\tbouncy: {\n\t\t\"1\": {\n\t\t\tdamping: 9.229712940600143,\n\t\t\tstiffness: 48.880672622541795\n\t\t},\n\t\t\"2\": {\n\t\t\tdamping: 12.634144343496553,\n\t\t\tstiffness: 91.59092691366399\n\t\t},\n\t\t\"3\": {\n\t\t\tdamping: 19.40217701790486,\n\t\t\tstiffness: 216.00395877230474\n\t\t},\n\t\t\"4\": {\n\t\t\tdamping: 37.541723184430275,\n\t\t\tstiffness: 808.7032559422912\n\t\t}\n\t},\n\tveryBouncy: {\n\t\t\"1\": {\n\t\t\tdamping: 6.902290754946187,\n\t\t\tstiffness: 38.92152745126911\n\t\t},\n\t\t\"2\": {\n\t\t\tdamping: 9.155550514215523,\n\t\t\tstiffness: 68.48134828711234\n\t\t},\n\t\t\"3\": {\n\t\t\tdamping: 13.244464908166709,\n\t\t\tstiffness: 143.30858570843873\n\t\t},\n\t\t\"4\": {\n\t\t\tdamping: 22.17862652876726,\n\t\t\tstiffness: 401.85804919502965\n\t\t}\n\t}\n};\n\n//#endregion\nexport { SCALE_EFFECTS, animation, motion, transitionDelay, transitionDuration, transitionTiming };"],"mappings":";;;;;;;AAMA,MAAM,gBAAgB;CACrB,IAAI;CACJ,MAAM;CACN,MAAM;CACN;AAoCD,MAAM,SAAS;CACd,QAAQ;EACP,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD;CACD,QAAQ;EACP,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD;CACD,QAAQ;EACP,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD;CACD,QAAQ;EACP,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD;CACD,YAAY;EACX,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD,KAAK;GACJ,SAAS;GACT,WAAW;GACX;EACD;CACD"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../uds/dist/tokens/configs/palette/alwaysPalette.d.ts
|
|
3
|
-
|
|
4
|
-
declare const deprecatedAlwaysPalette: {
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Use 'always/white' instead
|
|
7
|
-
*/
|
|
8
|
-
readonly white: "#ffffff";
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use 'always/black' instead
|
|
11
|
-
*/
|
|
12
|
-
readonly black: "#000000";
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use 'always/transparent' instead
|
|
15
|
-
*/
|
|
16
|
-
readonly transparent: "transparent";
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use 'always/current' instead
|
|
19
|
-
*/
|
|
20
|
-
readonly current: "currentColor";
|
|
21
|
-
};
|
|
22
|
-
declare const newAlwaysPalette: {
|
|
23
|
-
readonly 'always/white': "#ffffff";
|
|
24
|
-
readonly 'always/black': "#000000";
|
|
25
|
-
readonly 'always/transparent': "transparent";
|
|
26
|
-
readonly 'always/current': "currentColor";
|
|
27
|
-
readonly 'always/brand': "#7d2eff";
|
|
28
|
-
readonly 'always/accent': "#f8fb4c";
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
export { deprecatedAlwaysPalette, newAlwaysPalette };
|
|
32
|
-
//# sourceMappingURL=alwaysPalette.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alwaysPalette.d.cts","names":["ALWAYS_PREFIX","deprecatedAlwaysPalette","newAlwaysPalette","alwaysPalette"],"sources":["../../../../../../../uds/dist/tokens/configs/palette/alwaysPalette.d.ts"],"sourcesContent":["\n//#region src/tokens/configs/palette/alwaysPalette.d.ts\ndeclare const ALWAYS_PREFIX = \"always/\";\ndeclare const deprecatedAlwaysPalette: {\n /**\n * @deprecated Use 'always/white' instead\n */\n readonly white: \"#ffffff\";\n /**\n * @deprecated Use 'always/black' instead\n */\n readonly black: \"#000000\";\n /**\n * @deprecated Use 'always/transparent' instead\n */\n readonly transparent: \"transparent\";\n /**\n * @deprecated Use 'always/current' instead\n */\n readonly current: \"currentColor\";\n};\ndeclare const newAlwaysPalette: {\n readonly 'always/white': \"#ffffff\";\n readonly 'always/black': \"#000000\";\n readonly 'always/transparent': \"transparent\";\n readonly 'always/current': \"currentColor\";\n readonly 'always/brand': \"#7d2eff\";\n readonly 'always/accent': \"#f8fb4c\";\n};\ndeclare const alwaysPalette: {\n readonly 'always/white': \"#ffffff\";\n readonly 'always/black': \"#000000\";\n readonly 'always/transparent': \"transparent\";\n readonly 'always/current': \"currentColor\";\n readonly 'always/brand': \"#7d2eff\";\n readonly 'always/accent': \"#f8fb4c\";\n /**\n * @deprecated Use 'always/white' instead\n */\n readonly white: \"#ffffff\";\n /**\n * @deprecated Use 'always/black' instead\n */\n readonly black: \"#000000\";\n /**\n * @deprecated Use 'always/transparent' instead\n */\n readonly transparent: \"transparent\";\n /**\n * @deprecated Use 'always/current' instead\n */\n readonly current: \"currentColor\";\n};\n//#endregion\nexport { ALWAYS_PREFIX, alwaysPalette, deprecatedAlwaysPalette, newAlwaysPalette };"],"mappings":";;;cAGcC;;;;;;;;;;;;;;;;;;cAkBAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../uds/dist/tokens/configs/palette/alwaysPalette.d.ts
|
|
3
|
-
|
|
4
|
-
declare const deprecatedAlwaysPalette: {
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Use 'always/white' instead
|
|
7
|
-
*/
|
|
8
|
-
readonly white: "#ffffff";
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use 'always/black' instead
|
|
11
|
-
*/
|
|
12
|
-
readonly black: "#000000";
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use 'always/transparent' instead
|
|
15
|
-
*/
|
|
16
|
-
readonly transparent: "transparent";
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use 'always/current' instead
|
|
19
|
-
*/
|
|
20
|
-
readonly current: "currentColor";
|
|
21
|
-
};
|
|
22
|
-
declare const newAlwaysPalette: {
|
|
23
|
-
readonly 'always/white': "#ffffff";
|
|
24
|
-
readonly 'always/black': "#000000";
|
|
25
|
-
readonly 'always/transparent': "transparent";
|
|
26
|
-
readonly 'always/current': "currentColor";
|
|
27
|
-
readonly 'always/brand': "#7d2eff";
|
|
28
|
-
readonly 'always/accent': "#f8fb4c";
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
export { deprecatedAlwaysPalette, newAlwaysPalette };
|
|
32
|
-
//# sourceMappingURL=alwaysPalette.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alwaysPalette.d.mts","names":["ALWAYS_PREFIX","deprecatedAlwaysPalette","newAlwaysPalette","alwaysPalette"],"sources":["../../../../../../../uds/dist/tokens/configs/palette/alwaysPalette.d.ts"],"sourcesContent":["\n//#region src/tokens/configs/palette/alwaysPalette.d.ts\ndeclare const ALWAYS_PREFIX = \"always/\";\ndeclare const deprecatedAlwaysPalette: {\n /**\n * @deprecated Use 'always/white' instead\n */\n readonly white: \"#ffffff\";\n /**\n * @deprecated Use 'always/black' instead\n */\n readonly black: \"#000000\";\n /**\n * @deprecated Use 'always/transparent' instead\n */\n readonly transparent: \"transparent\";\n /**\n * @deprecated Use 'always/current' instead\n */\n readonly current: \"currentColor\";\n};\ndeclare const newAlwaysPalette: {\n readonly 'always/white': \"#ffffff\";\n readonly 'always/black': \"#000000\";\n readonly 'always/transparent': \"transparent\";\n readonly 'always/current': \"currentColor\";\n readonly 'always/brand': \"#7d2eff\";\n readonly 'always/accent': \"#f8fb4c\";\n};\ndeclare const alwaysPalette: {\n readonly 'always/white': \"#ffffff\";\n readonly 'always/black': \"#000000\";\n readonly 'always/transparent': \"transparent\";\n readonly 'always/current': \"currentColor\";\n readonly 'always/brand': \"#7d2eff\";\n readonly 'always/accent': \"#f8fb4c\";\n /**\n * @deprecated Use 'always/white' instead\n */\n readonly white: \"#ffffff\";\n /**\n * @deprecated Use 'always/black' instead\n */\n readonly black: \"#000000\";\n /**\n * @deprecated Use 'always/transparent' instead\n */\n readonly transparent: \"transparent\";\n /**\n * @deprecated Use 'always/current' instead\n */\n readonly current: \"currentColor\";\n};\n//#endregion\nexport { ALWAYS_PREFIX, alwaysPalette, deprecatedAlwaysPalette, newAlwaysPalette };"],"mappings":";;;cAGcC;;;;;;;;;;;;;;;;;;cAkBAC"}
|
|
@@ -1,426 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { deprecatedAlwaysPalette, newAlwaysPalette } from "./configs/palette/alwaysPalette.cjs";
|
|
3
|
-
import { IconSize, IconVariant, SvgIcon } from "../../../icons/dist/types.cjs";
|
|
4
|
-
import { ElementType, PropsWithChildren, ReactElement, ReactNode, Ref } from "react";
|
|
5
|
-
import { Spring } from "motion/react";
|
|
6
|
-
|
|
7
|
-
//#region ../uds/dist/tokens/types.d.ts
|
|
8
|
-
|
|
9
|
-
type SharedPrimaryPaletteAlias = 'brand' | 'alert' | 'positive' | 'warning' | 'info';
|
|
10
|
-
type SharedSecondaryPaletteAlias = `${SharedPrimaryPaletteAlias}-secondary`;
|
|
11
|
-
type SharedPaletteAlias = SharedPrimaryPaletteAlias | SharedSecondaryPaletteAlias;
|
|
12
|
-
type DeprecatedAccentAlias = 'accent';
|
|
13
|
-
type BackgroundPaletteAlias = 'primary' | 'secondary' | DeprecatedAccentAlias | SharedPaletteAlias;
|
|
14
|
-
type ForegroundPaletteAlias = 'primary' | 'secondary' | 'tertiary' | 'muted' | 'on-color' | DeprecatedAccentAlias | SharedPaletteAlias;
|
|
15
|
-
type LinePaletteAlias = 'primary' | 'secondary' | 'tertiary' | 'muted' | DeprecatedAccentAlias | SharedPaletteAlias;
|
|
16
|
-
type AlwaysPaletteAliasWithPrefix = keyof typeof newAlwaysPalette;
|
|
17
|
-
type AlwaysPaletteAlias = keyof typeof deprecatedAlwaysPalette | AlwaysPaletteAliasWithPrefix;
|
|
18
|
-
type ForegroundColor = ForegroundPaletteAlias | AlwaysPaletteAlias;
|
|
19
|
-
type LineColor = LinePaletteAlias | AlwaysPaletteAlias | ElevationAlias;
|
|
20
|
-
type BackgroundColor = BackgroundPaletteAlias | AlwaysPaletteAlias | ElevationAlias;
|
|
21
|
-
type ShadowVariant = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
22
|
-
type ShadowVariantWithElevation = ShadowVariant | ElevationAlias;
|
|
23
|
-
type ShadowVariantInvert = `${Exclude<ShadowVariant, 'none'>}-invert`;
|
|
24
|
-
type TextVariantTypography = 'display1' | 'display2' | 'display3' | 'title1' | 'title2' | 'title3' | 'title4' | 'headline1' | 'body1' | 'label1' | 'label2' | 'label3' | 'label4' | 'caption1' | 'caption2' | 'legal1';
|
|
25
|
-
type TextVariantUi = 'ui1' | 'ui2' | 'ui3' | 'ui4' | 'ui5' | 'ui6';
|
|
26
|
-
type TextVariantWithoutEmphasized = TextVariantTypography | TextVariantUi;
|
|
27
|
-
type TShirtSize = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
28
|
-
type TShirtSizeCommon = Extract<TShirtSize, 'sm' | 'md' | 'lg'>;
|
|
29
|
-
type SpacingAlias = '0' | 'px' | '0.5' | '1' | '1.5' | '2' | '2.5' | '3' | '3.5' | '4' | '4.5' | '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';
|
|
30
|
-
type ElevationLevel = '0' | '1' | '2' | '3' | '4' | '5';
|
|
31
|
-
type ElevationAlias = `elevation-${ElevationLevel}`;
|
|
32
|
-
type BorderRadius = TShirtSize;
|
|
33
|
-
type BorderWidth = 'none' | 'thin' | 'medium' | 'thick';
|
|
34
|
-
type BorderWidthWithElevation = BorderWidth | ElevationAlias;
|
|
35
|
-
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
36
|
-
type ButtonPalette = 'brand' | 'accent' | 'alert' | 'positive' | 'warning' | 'info';
|
|
37
|
-
type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
38
|
-
type ButtonVariantFlat = ButtonVariant | `${Exclude<ButtonPalette, 'accent'>}` | `${Exclude<ButtonPalette, 'accent'>}-${Exclude<ButtonVariant, 'primary'>}`;
|
|
39
|
-
type IconButtonSize = Extract<TShirtSize, 'xs' | TShirtSizeCommon | 'xl'>;
|
|
40
|
-
type InputSize = Extract<TShirtSizeCommon, 'md' | 'lg'>;
|
|
41
|
-
type MotionVariant = 'damped' | 'smooth' | 'subtle' | 'bouncy' | 'veryBouncy';
|
|
42
|
-
type MotionVariantSpeed = '1' | '2' | '3' | '4';
|
|
43
|
-
type MotionSpringConfigOptions = 'damping' | 'stiffness';
|
|
44
|
-
type MotionSpringConfig = Required<Pick<Spring, MotionSpringConfigOptions>>;
|
|
45
|
-
type MotionVariantValues = { [key in MotionVariantSpeed]: MotionSpringConfig };
|
|
46
|
-
type MotionConfig = Record<MotionVariant, MotionVariantValues>;
|
|
47
|
-
type Flex = '1' | 'auto' | 'initial' | 'none';
|
|
48
|
-
type FlexGrow = '0' | '1' | '2' | '3';
|
|
49
|
-
type FlexShrink = '0' | '1';
|
|
50
|
-
type FlexAlignContent = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around';
|
|
51
|
-
type FlexAlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
52
|
-
type FlexAlignSelf = 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
53
|
-
type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
54
|
-
type FlexWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
55
|
-
type FlexJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
56
|
-
type FlexBasis = 'min-content';
|
|
57
|
-
type Display = 'block' | 'inline-block' | 'inline' | 'flex' | 'inline-flex' | 'table' | 'inline-table' | 'table-caption' | 'table-cell' | 'table-column' | 'table-column-group' | 'table-footer-group' | 'table-header-group' | 'table-row-group' | 'table-row' | 'flow-root' | 'grid' | 'contents' | 'none';
|
|
58
|
-
type Overflow = 'auto' | 'hidden' | 'clip' | 'visible' | 'scroll';
|
|
59
|
-
type Position = 'static' | 'fixed' | 'absolute' | 'relative' | 'sticky';
|
|
60
|
-
type ImageStyleProps = {
|
|
61
|
-
/**
|
|
62
|
-
* Determines how the image should be resized to fit its container.
|
|
63
|
-
*/
|
|
64
|
-
contentFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
65
|
-
};
|
|
66
|
-
interface BorderStyleProps {
|
|
67
|
-
/** Add a border radius to all corners of the box. */
|
|
68
|
-
borderRadius?: BorderRadius;
|
|
69
|
-
/** Add a border radius to top left corner of the box. */
|
|
70
|
-
borderTopStartRadius?: BorderRadius;
|
|
71
|
-
/** Add a border radius to top right corner of the box. */
|
|
72
|
-
borderTopEndRadius?: BorderRadius;
|
|
73
|
-
/** Add a border radius to bottom left corner of the box. */
|
|
74
|
-
borderBottomStartRadius?: BorderRadius;
|
|
75
|
-
/** Add a border radius to bottom right corner of the box. */
|
|
76
|
-
borderBottomEndRadius?: BorderRadius;
|
|
77
|
-
/** Adds a custom border color from the palette */
|
|
78
|
-
borderColor?: LineColor;
|
|
79
|
-
/** Start border color */
|
|
80
|
-
borderStartColor?: LineColor;
|
|
81
|
-
/** End border color */
|
|
82
|
-
borderEndColor?: LineColor;
|
|
83
|
-
/** Top border color */
|
|
84
|
-
borderTopColor?: LineColor;
|
|
85
|
-
/** Bottom border color */
|
|
86
|
-
borderBottomColor?: LineColor;
|
|
87
|
-
/** Shorthand property to the width of an element's border. */
|
|
88
|
-
borderWidth?: BorderWidthWithElevation;
|
|
89
|
-
/** Sets the width of the top and bottom border of an element. */
|
|
90
|
-
borderVerticalWidth?: BorderWidthWithElevation;
|
|
91
|
-
/** Sets the width of the start (left) and end (right) border of an element. */
|
|
92
|
-
borderHorizontalWidth?: BorderWidthWithElevation;
|
|
93
|
-
/** Sets the width of the start (left) border of an element. */
|
|
94
|
-
borderStartWidth?: BorderWidthWithElevation;
|
|
95
|
-
/** Sets the width of the end (right) border of an element. */
|
|
96
|
-
borderEndWidth?: BorderWidthWithElevation;
|
|
97
|
-
/** Sets the width of the top border of an element. */
|
|
98
|
-
borderTopWidth?: BorderWidthWithElevation;
|
|
99
|
-
/** Sets the width of the bottom border of an element. */
|
|
100
|
-
borderBottomWidth?: BorderWidthWithElevation;
|
|
101
|
-
}
|
|
102
|
-
interface NestedBorderRadiusStyleProps {
|
|
103
|
-
/**
|
|
104
|
-
* Apply nested border radius calculation to first/last children.
|
|
105
|
-
* Uses CSS custom properties to calculate appropriate nested radius based on borderRadius and spacing.
|
|
106
|
-
* @link https://cloudfour.com/thinks/the-math-behind-nesting-rounded-corners
|
|
107
|
-
*/
|
|
108
|
-
nestedBorderRadius?: boolean | 'first' | 'last';
|
|
109
|
-
/**
|
|
110
|
-
* Sets the --uds-nested-border-radius-size CSS variable used in nested border radius calculations.
|
|
111
|
-
* @default borderRadius prop, otherwise can be customized
|
|
112
|
-
*/
|
|
113
|
-
nestedBorderRadiusSize?: BorderRadius;
|
|
114
|
-
/**
|
|
115
|
-
* Sets the --uds-nested-border-radius-spacing CSS variable used in nested border radius calculations.
|
|
116
|
-
* @default spacing prop, otherwise can be customized
|
|
117
|
-
*/
|
|
118
|
-
nestedBorderRadiusSpacing?: SpacingAlias;
|
|
119
|
-
/**
|
|
120
|
-
* Sets the --uds-nested-border-radius-width CSS variable used in nested border radius calculations.
|
|
121
|
-
* @default borderWidth prop, otherwise can be customized
|
|
122
|
-
*/
|
|
123
|
-
nestedBorderRadiusWidth?: BorderWidthWithElevation;
|
|
124
|
-
}
|
|
125
|
-
interface ShadowStyleProps {
|
|
126
|
-
/** Sets the variant of the shadow. */
|
|
127
|
-
dropShadow?: ShadowVariantWithElevation;
|
|
128
|
-
/** Sets the variant of the inset shadow. */
|
|
129
|
-
insetShadow?: Exclude<ShadowVariant, ElevationAlias> | ShadowVariantInvert;
|
|
130
|
-
}
|
|
131
|
-
interface LayoutStyleProps {
|
|
132
|
-
/** Sets whether an element is treated as a block or inline box and the layout used for its children, such as flow layout, grid or flex. */
|
|
133
|
-
display?: Display;
|
|
134
|
-
/** Shorthand property which sets the desired behavior when content does not fit in the parent element box (overflows) in the horizontal and/or vertical direction. */
|
|
135
|
-
overflow?: Overflow;
|
|
136
|
-
/** Sets what shows when content overflows a block-level element's left and right edges. This may be nothing, a scroll bar, or the overflow content. This property may also be set by using the overflow shorthand property. */
|
|
137
|
-
overflowX?: Overflow;
|
|
138
|
-
/** sets what shows when content overflows a block-level element's top and bottom edges. This may be nothing, a scroll bar, or the overflow content. This property may also be set by using the overflow shorthand property. */
|
|
139
|
-
overflowY?: Overflow;
|
|
140
|
-
/** Sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements. */
|
|
141
|
-
position?: Position;
|
|
142
|
-
}
|
|
143
|
-
interface SpacingStyleProps {
|
|
144
|
-
/** Apply inner spacing on all sides. */
|
|
145
|
-
spacing?: SpacingAlias;
|
|
146
|
-
/** Apply inner spacing on the leading and trailing sides. */
|
|
147
|
-
spacingHorizontal?: SpacingAlias;
|
|
148
|
-
/** Apply inner spacing on the top and bottom sides. */
|
|
149
|
-
spacingVertical?: SpacingAlias;
|
|
150
|
-
/** Apply inner spacing on the bottom side. */
|
|
151
|
-
spacingBottom?: SpacingAlias;
|
|
152
|
-
/** Apply inner spacing on the trailing side. */
|
|
153
|
-
spacingEnd?: SpacingAlias;
|
|
154
|
-
/** Apply inner spacing on the leading side. */
|
|
155
|
-
spacingStart?: SpacingAlias;
|
|
156
|
-
/** Apply inner spacing on the top side. */
|
|
157
|
-
spacingTop?: SpacingAlias;
|
|
158
|
-
/** Apply negative outer spacing on all sides. */
|
|
159
|
-
offset?: SpacingAlias;
|
|
160
|
-
/** Apply negative outer spacing on the top and bottom sides. */
|
|
161
|
-
offsetVertical?: SpacingAlias;
|
|
162
|
-
/** Apply negative outer spacing on the leading and trailing sides. */
|
|
163
|
-
offsetHorizontal?: SpacingAlias;
|
|
164
|
-
/** Apply negative outer spacing on the bottom side. */
|
|
165
|
-
offsetBottom?: SpacingAlias;
|
|
166
|
-
/** Apply negative outer spacing on the trailing side. */
|
|
167
|
-
offsetEnd?: SpacingAlias;
|
|
168
|
-
/** Apply negative outer spacing on the leading side. */
|
|
169
|
-
offsetStart?: SpacingAlias;
|
|
170
|
-
/** Apply negative outer spacing on the top side. */
|
|
171
|
-
offsetTop?: SpacingAlias;
|
|
172
|
-
/** Control the horizontal gutters between grid and flexbox items. */
|
|
173
|
-
columnGap?: SpacingAlias;
|
|
174
|
-
/** Control the vertical gutters between grid and flexbox items. */
|
|
175
|
-
rowGap?: SpacingAlias;
|
|
176
|
-
}
|
|
177
|
-
interface FlexStyleProps {
|
|
178
|
-
/** Sets the distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis. */
|
|
179
|
-
alignContent?: FlexAlignContent;
|
|
180
|
-
/** Sets the align-self value on all direct children as a group. In Flexbox, it controls the alignment of items on the Cross Axis. In Grid Layout, it controls the alignment of items on the Block Axis within their grid area. */
|
|
181
|
-
alignItems?: FlexAlignItems;
|
|
182
|
-
/** Overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area. In Flexbox, it aligns the item on the cross axis. */
|
|
183
|
-
alignSelf?: FlexAlignSelf;
|
|
184
|
-
/** Sets how a flex item will grow or shrink to fit the space available in its flex container. */
|
|
185
|
-
flex?: Flex;
|
|
186
|
-
/** Sets how flex items are placed in the flex container defining the main axis and the direction (normal or reversed). */
|
|
187
|
-
flexDirection?: FlexDirection;
|
|
188
|
-
/** Sets the flex grow factor, which specifies how much of the flex container's remaining space should be assigned to the flex item's main size. */
|
|
189
|
-
flexGrow?: FlexGrow;
|
|
190
|
-
/** Sets the flex shrink factor of a flex item. If the size of all flex items is larger than the flex container, items shrink to fit according to flex-shrink. */
|
|
191
|
-
flexShrink?: FlexShrink;
|
|
192
|
-
/** Sets whether flex items are forced onto one line or can wrap onto multiple lines. If wrapping is allowed, it sets the direction that lines are stacked. */
|
|
193
|
-
flexWrap?: FlexWrap;
|
|
194
|
-
/** Defines how the browser distributes space between and around content items along the main-axis of a flex container, and the inline axis of a grid container. */
|
|
195
|
-
justifyContent?: FlexJustifyContent;
|
|
196
|
-
/** Sets the initial main size of a flex item. It sets the size of the content box unless otherwise set with box-sizing. https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis */
|
|
197
|
-
flexBasis?: FlexBasis;
|
|
198
|
-
}
|
|
199
|
-
interface BackgroundStyleProps {
|
|
200
|
-
/** Sets the background color. */
|
|
201
|
-
backgroundColor?: BackgroundColor;
|
|
202
|
-
}
|
|
203
|
-
interface SizeStyleProps {
|
|
204
|
-
/** Sets the width of an element. */
|
|
205
|
-
width?: 'full' | 'fit' | 'screen';
|
|
206
|
-
/** Sets the height of an element. */
|
|
207
|
-
height?: 'full' | 'fit' | 'screen';
|
|
208
|
-
}
|
|
209
|
-
interface UniversalBoxProps extends PropsWithChildren, BackgroundStyleProps, BorderStyleProps, FlexStyleProps, LayoutStyleProps, SpacingStyleProps, SizeStyleProps, ShadowStyleProps, NestedBorderRadiusStyleProps {
|
|
210
|
-
/**
|
|
211
|
-
* When asChild is set to true, the component's child will be cloned and passed
|
|
212
|
-
* the props and behavior required to make it functional.
|
|
213
|
-
*/
|
|
214
|
-
asChild?: boolean;
|
|
215
|
-
/**
|
|
216
|
-
* Customize tag name.
|
|
217
|
-
*/
|
|
218
|
-
as?: ElementType;
|
|
219
|
-
}
|
|
220
|
-
interface UniversalIconProps<Name = SvgIcon> {
|
|
221
|
-
/** Icon to render from the icons package. */
|
|
222
|
-
name: Name;
|
|
223
|
-
/** Size of the icon. */
|
|
224
|
-
size?: IconSize;
|
|
225
|
-
/** Variant for icon. Either fill or outline. */
|
|
226
|
-
variant?: IconVariant;
|
|
227
|
-
/** Color of the icon. */
|
|
228
|
-
color?: ForegroundColor;
|
|
229
|
-
}
|
|
230
|
-
type SVGElementProps = Omit<React.HTMLAttributes<SVGSVGElement>, 'color'>;
|
|
231
|
-
interface IconPropsWithSVGProps extends UniversalIconProps, SVGElementProps {}
|
|
232
|
-
type IconSlotRenderProps = Omit<IconPropsWithSVGProps, 'name'>;
|
|
233
|
-
/**
|
|
234
|
-
* We are changing the slot prop from ReactNode to ReactElement to avoid
|
|
235
|
-
* confusing and useless options like number and string, however,
|
|
236
|
-
* there are cases where folks are using null/undefined to dynamically opt-out
|
|
237
|
-
* of rendering the icon. We want to still allow that.
|
|
238
|
-
*/
|
|
239
|
-
type BackwardsCompatibleReactElement = null | undefined | ReactElement;
|
|
240
|
-
/**
|
|
241
|
-
* Used anywhere we offer an icon which can be customized.
|
|
242
|
-
*
|
|
243
|
-
* Passing an SvgIcon is the happy path.
|
|
244
|
-
*
|
|
245
|
-
* @example
|
|
246
|
-
* import { Calendar } from "@yahoo/uds-icons"
|
|
247
|
-
* <IconSlot icon={Calendar} />
|
|
248
|
-
*/
|
|
249
|
-
type UniversalIconSlot = SvgIcon | BackwardsCompatibleReactElement | ((iconProps: IconSlotRenderProps) => BackwardsCompatibleReactElement);
|
|
250
|
-
interface UniversalImageProps extends Omit<UniversalBoxProps, 'width' | 'height'>, ImageStyleProps {
|
|
251
|
-
/** The source URL of the image. */
|
|
252
|
-
src: string;
|
|
253
|
-
/** Provides fallback (alternate) text to display when the image specified by the Image element is not loaded. */
|
|
254
|
-
alt?: string;
|
|
255
|
-
/** Width of the image in px. */
|
|
256
|
-
width?: number;
|
|
257
|
-
/** Height of the image in pixel. */
|
|
258
|
-
height?: number;
|
|
259
|
-
}
|
|
260
|
-
interface UniversalInputProps<IconSlotType = UniversalIconSlot> {
|
|
261
|
-
/** Label text to associate with the input. */
|
|
262
|
-
label?: string | ReactNode | (() => ReactNode);
|
|
263
|
-
/** If true, the input is disabled and non-interactive. */
|
|
264
|
-
disabled?: boolean;
|
|
265
|
-
/** If true, the `label` is displayed as required and the input element is required. */
|
|
266
|
-
required?: boolean;
|
|
267
|
-
/** Description or error message */
|
|
268
|
-
helpText?: string | ReactNode | (() => ReactNode);
|
|
269
|
-
/** Helper text icon */
|
|
270
|
-
helperTextIcon?: IconSlotType;
|
|
271
|
-
/** If true, the input displays its error state styling, which includes styling the startIcon. */
|
|
272
|
-
hasError?: boolean;
|
|
273
|
-
/**
|
|
274
|
-
* The size of the input.
|
|
275
|
-
* @default 'md'
|
|
276
|
-
*/
|
|
277
|
-
size?: InputSize;
|
|
278
|
-
/** An icon to be displayed at the start of the input. */
|
|
279
|
-
startIcon?: IconSlotType;
|
|
280
|
-
/** An icon to be displayed at the end of the input. */
|
|
281
|
-
endIcon?: IconSlotType;
|
|
282
|
-
/** If true, forces reduced motion. Otherwise, respects the user's setting. */
|
|
283
|
-
reduceMotion?: boolean;
|
|
284
|
-
/** If true, the input is read-only. */
|
|
285
|
-
readOnly?: boolean;
|
|
286
|
-
/** The width the input should take up in its container. */
|
|
287
|
-
width?: UniversalBoxProps['width'];
|
|
288
|
-
}
|
|
289
|
-
type LinkVariant = 'primary' | 'secondary' | 'tertiary' | 'on-color';
|
|
290
|
-
type LinkTextVariant = TextVariantWithoutEmphasized;
|
|
291
|
-
interface UniversalLinkProps<IconSlotType = UniversalIconSlot> {
|
|
292
|
-
/** Text style */
|
|
293
|
-
textVariant?: LinkTextVariant;
|
|
294
|
-
/** The color style of the link. */
|
|
295
|
-
variant?: LinkVariant;
|
|
296
|
-
/** An icon to be displayed at the start of the component. */
|
|
297
|
-
startIcon?: IconSlotType;
|
|
298
|
-
/** An icon to be displayed at the end of the component. */
|
|
299
|
-
endIcon?: IconSlotType;
|
|
300
|
-
/** If true, forces an underline to always be shown for a11y purposes.
|
|
301
|
-
* @default false
|
|
302
|
-
*/
|
|
303
|
-
alwaysUnderline?: boolean;
|
|
304
|
-
}
|
|
305
|
-
type CheckboxValue = boolean | 'indeterminate';
|
|
306
|
-
type CheckboxVariant = 'primary' | 'secondary';
|
|
307
|
-
type CheckboxSize = 'sm' | 'md';
|
|
308
|
-
interface UniversalCheckboxProps {
|
|
309
|
-
/**
|
|
310
|
-
* Variant of the checkbox.
|
|
311
|
-
* @default 'primary'
|
|
312
|
-
*/
|
|
313
|
-
variant?: CheckboxVariant;
|
|
314
|
-
/**
|
|
315
|
-
* Size of the checkbox.
|
|
316
|
-
* @default 'md'
|
|
317
|
-
*/
|
|
318
|
-
size?: CheckboxSize;
|
|
319
|
-
/**
|
|
320
|
-
* The label of the checkbox. Can be a ReactNode for rich html labels.
|
|
321
|
-
* Will not be labelled if omitted. User MUST then use `aria-label` attribute,
|
|
322
|
-
* wrap in a `<label>` tag or `htmlFor` to add an external label for a11y.
|
|
323
|
-
*/
|
|
324
|
-
label?: string | ReactNode | (() => ReactNode);
|
|
325
|
-
/**
|
|
326
|
-
* Controlled value of the checkbox. Will be an uncontrolled input if not present.
|
|
327
|
-
*/
|
|
328
|
-
checked?: CheckboxValue;
|
|
329
|
-
/**
|
|
330
|
-
* If true, the checkbox displays its error state.
|
|
331
|
-
*/
|
|
332
|
-
hasError?: boolean;
|
|
333
|
-
/**
|
|
334
|
-
* Disables animations when true.
|
|
335
|
-
*/
|
|
336
|
-
reduceMotion?: boolean;
|
|
337
|
-
/**
|
|
338
|
-
* On which side of the input is the label displayed.
|
|
339
|
-
* @default 'start'
|
|
340
|
-
*/
|
|
341
|
-
labelPosition?: 'start' | 'end';
|
|
342
|
-
}
|
|
343
|
-
type RadioVariant = 'primary' | 'secondary';
|
|
344
|
-
type RadioSize = 'sm' | 'md';
|
|
345
|
-
interface UniversalRadioProps {
|
|
346
|
-
/**
|
|
347
|
-
* Variant of the radio.
|
|
348
|
-
* @default 'primary'
|
|
349
|
-
*/
|
|
350
|
-
variant?: RadioVariant;
|
|
351
|
-
/**
|
|
352
|
-
* Size of the radio.
|
|
353
|
-
* @default 'md'
|
|
354
|
-
*/
|
|
355
|
-
size?: RadioSize;
|
|
356
|
-
/**
|
|
357
|
-
* The label of the radio. Can be a ReactNode for rich html labels.
|
|
358
|
-
* Will not be labelled if omitted. User MUST then use `aria-label` attribute,
|
|
359
|
-
* wrap in a `<label>` tag or `htmlFor` to add an external label for a11y.
|
|
360
|
-
*/
|
|
361
|
-
label?: string | ReactNode | (() => ReactNode);
|
|
362
|
-
/**
|
|
363
|
-
* The value of the radio.
|
|
364
|
-
* @default ''
|
|
365
|
-
*/
|
|
366
|
-
value?: string;
|
|
367
|
-
/**
|
|
368
|
-
* Whether the radio is checked.
|
|
369
|
-
*/
|
|
370
|
-
checked?: boolean;
|
|
371
|
-
/**
|
|
372
|
-
* If true, the radio displays its error state.
|
|
373
|
-
*/
|
|
374
|
-
hasError?: boolean;
|
|
375
|
-
/**
|
|
376
|
-
* Disables animations when true.
|
|
377
|
-
*/
|
|
378
|
-
reduceMotion?: boolean;
|
|
379
|
-
/**
|
|
380
|
-
* On which side of the input is the label displayed.
|
|
381
|
-
* @default 'start'
|
|
382
|
-
*/
|
|
383
|
-
labelPosition?: 'start' | 'end';
|
|
384
|
-
}
|
|
385
|
-
type SwitchSize = 'sm' | 'md';
|
|
386
|
-
interface UniversalSwitchProps<IconSlotType = UniversalIconSlot> {
|
|
387
|
-
/**
|
|
388
|
-
* Size of the switch.
|
|
389
|
-
* @default 'md'
|
|
390
|
-
*/
|
|
391
|
-
size?: SwitchSize;
|
|
392
|
-
/**
|
|
393
|
-
* The label of the switch. Can be a ReactNode for rich html labels.
|
|
394
|
-
* Will not be labelled if omitted. User MUST then use `aria-label` attribute,
|
|
395
|
-
* wrap in a `<label>` tag or `htmlFor` to add an external label for a11y.
|
|
396
|
-
*/
|
|
397
|
-
label?: string | ReactNode | (() => ReactNode);
|
|
398
|
-
/**
|
|
399
|
-
* Controlled value of the switch. Will be an uncontrolled input if not present.
|
|
400
|
-
*/
|
|
401
|
-
isOn?: boolean;
|
|
402
|
-
/**
|
|
403
|
-
* Set the initial value to default when uncontrolled.
|
|
404
|
-
*/
|
|
405
|
-
defaultIsOn?: boolean;
|
|
406
|
-
/** An icon to be displayed on the on state of the input. */
|
|
407
|
-
onIcon?: IconSlotType;
|
|
408
|
-
/** An icon to be displayed on the off state of the input. */
|
|
409
|
-
offIcon?: IconSlotType;
|
|
410
|
-
/**
|
|
411
|
-
* Disables animations when true.
|
|
412
|
-
*/
|
|
413
|
-
reduceMotion?: boolean;
|
|
414
|
-
/**
|
|
415
|
-
* On which side of the input is the label displayed.
|
|
416
|
-
* @default 'start'
|
|
417
|
-
*/
|
|
418
|
-
labelPosition?: 'start' | 'end';
|
|
419
|
-
}
|
|
420
|
-
type ChipVariant = 'primary' | 'secondary' | 'brand' | 'brand-secondary';
|
|
421
|
-
type ChipSize = 'sm' | 'md';
|
|
422
|
-
type BadgeVariant = 'primary' | 'secondary' | 'brand' | 'brand-secondary' | 'alert' | 'alert-secondary' | 'positive' | 'positive-secondary' | 'warning' | 'warning-secondary' | 'info' | 'info-secondary';
|
|
423
|
-
type BadgeSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
424
|
-
//#endregion
|
|
425
|
-
export { type AlwaysPaletteAlias, type AlwaysPaletteAliasWithPrefix, type BackgroundColor, type BackgroundPaletteAlias, type BackgroundStyleProps, type BadgeSize, type BadgeVariant, type BorderRadius, type BorderStyleProps, type BorderWidth, type BorderWidthWithElevation, type ButtonPalette, type ButtonSize, type ButtonVariant, type ButtonVariantFlat, type CheckboxSize, type CheckboxValue, type CheckboxVariant, type ChipSize, type ChipVariant, type Display, type ElevationAlias, type ElevationLevel, type Flex, type FlexAlignContent, type FlexAlignItems, type FlexAlignSelf, type FlexBasis, type FlexDirection, type FlexGrow, type FlexJustifyContent, type FlexShrink, type FlexStyleProps, type FlexWrap, type ForegroundColor, type ForegroundPaletteAlias, type IconButtonSize, type IconPropsWithSVGProps, type IconSlotRenderProps, type ImageStyleProps, type InputSize, type LayoutStyleProps, type LineColor, type LinePaletteAlias, type LinkTextVariant, type LinkVariant, type MotionConfig, type MotionSpringConfig, type MotionSpringConfigOptions, type MotionVariant, type MotionVariantSpeed, type MotionVariantValues, type Overflow, type Position, type RadioSize, type RadioVariant, type ShadowStyleProps, type ShadowVariant, type ShadowVariantInvert, type ShadowVariantWithElevation, type SharedPaletteAlias, type SpacingAlias, type SpacingStyleProps, type SwitchSize, type TShirtSize, type TShirtSizeCommon, type TextVariantTypography, type TextVariantUi, type TextVariantWithoutEmphasized, type UniversalBoxProps, type UniversalCheckboxProps, type UniversalIconProps, type UniversalIconSlot, type UniversalImageProps, type UniversalInputProps, type UniversalLinkProps, type UniversalRadioProps, type UniversalSwitchProps };
|
|
426
|
-
//# sourceMappingURL=types.d.cts.map
|