@yahoo/uds-mobile 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +1174 -0
- package/README.md +614 -0
- package/cli/uds-mobile.js +10 -0
- package/dist/_virtual/rolldown_runtime.cjs +30 -0
- package/dist/bin/generateTheme.mjs +390 -0
- package/dist/bin/mobile/scripts/utils/configToRNMappings.mjs +74 -0
- package/dist/bin/uds/dist/fixtures.mjs +404 -0
- package/dist/bin/uds/dist/tokens/configs/palette/alwaysPalette.mjs +23 -0
- package/dist/bin/uds/dist/tokens/consts/defaultModes.mjs +6 -0
- package/dist/bin/uds/dist/tokens/consts/fontDeclarationsMap.mjs +652 -0
- package/dist/bin/uds-mobile.mjs +256 -0
- package/dist/components/Avatar.cjs +109 -0
- package/dist/components/Avatar.d.cts +60 -0
- package/dist/components/Avatar.d.cts.map +1 -0
- package/dist/components/Avatar.d.mts +60 -0
- package/dist/components/Avatar.d.mts.map +1 -0
- package/dist/components/Avatar.mjs +109 -0
- package/dist/components/Avatar.mjs.map +1 -0
- package/dist/components/Badge.cjs +68 -0
- package/dist/components/Badge.d.cts +43 -0
- package/dist/components/Badge.d.cts.map +1 -0
- package/dist/components/Badge.d.mts +43 -0
- package/dist/components/Badge.d.mts.map +1 -0
- package/dist/components/Badge.mjs +68 -0
- package/dist/components/Badge.mjs.map +1 -0
- package/dist/components/Box.cjs +114 -0
- package/dist/components/Box.d.cts +87 -0
- package/dist/components/Box.d.cts.map +1 -0
- package/dist/components/Box.d.mts +87 -0
- package/dist/components/Box.d.mts.map +1 -0
- package/dist/components/Box.mjs +114 -0
- package/dist/components/Box.mjs.map +1 -0
- package/dist/components/Button.cjs +187 -0
- package/dist/components/Button.d.cts +56 -0
- package/dist/components/Button.d.cts.map +1 -0
- package/dist/components/Button.d.mts +56 -0
- package/dist/components/Button.d.mts.map +1 -0
- package/dist/components/Button.mjs +186 -0
- package/dist/components/Button.mjs.map +1 -0
- package/dist/components/Checkbox.cjs +156 -0
- package/dist/components/Checkbox.d.cts +48 -0
- package/dist/components/Checkbox.d.cts.map +1 -0
- package/dist/components/Checkbox.d.mts +48 -0
- package/dist/components/Checkbox.d.mts.map +1 -0
- package/dist/components/Checkbox.mjs +155 -0
- package/dist/components/Checkbox.mjs.map +1 -0
- package/dist/components/Chip.cjs +124 -0
- package/dist/components/Chip.d.cts +60 -0
- package/dist/components/Chip.d.cts.map +1 -0
- package/dist/components/Chip.d.mts +60 -0
- package/dist/components/Chip.d.mts.map +1 -0
- package/dist/components/Chip.mjs +124 -0
- package/dist/components/Chip.mjs.map +1 -0
- package/dist/components/HStack.cjs +46 -0
- package/dist/components/HStack.d.cts +41 -0
- package/dist/components/HStack.d.cts.map +1 -0
- package/dist/components/HStack.d.mts +41 -0
- package/dist/components/HStack.d.mts.map +1 -0
- package/dist/components/HStack.mjs +46 -0
- package/dist/components/HStack.mjs.map +1 -0
- package/dist/components/Icon.cjs +150 -0
- package/dist/components/Icon.d.cts +90 -0
- package/dist/components/Icon.d.cts.map +1 -0
- package/dist/components/Icon.d.mts +90 -0
- package/dist/components/Icon.d.mts.map +1 -0
- package/dist/components/Icon.mjs +148 -0
- package/dist/components/Icon.mjs.map +1 -0
- package/dist/components/IconButton.cjs +127 -0
- package/dist/components/IconButton.d.cts +46 -0
- package/dist/components/IconButton.d.cts.map +1 -0
- package/dist/components/IconButton.d.mts +46 -0
- package/dist/components/IconButton.d.mts.map +1 -0
- package/dist/components/IconButton.mjs +127 -0
- package/dist/components/IconButton.mjs.map +1 -0
- package/dist/components/IconSlot.cjs +55 -0
- package/dist/components/IconSlot.d.cts +45 -0
- package/dist/components/IconSlot.d.cts.map +1 -0
- package/dist/components/IconSlot.d.mts +45 -0
- package/dist/components/IconSlot.d.mts.map +1 -0
- package/dist/components/IconSlot.mjs +55 -0
- package/dist/components/IconSlot.mjs.map +1 -0
- package/dist/components/Image.cjs +104 -0
- package/dist/components/Image.d.cts +85 -0
- package/dist/components/Image.d.cts.map +1 -0
- package/dist/components/Image.d.mts +85 -0
- package/dist/components/Image.d.mts.map +1 -0
- package/dist/components/Image.mjs +104 -0
- package/dist/components/Image.mjs.map +1 -0
- package/dist/components/Input.cjs +174 -0
- package/dist/components/Input.d.cts +39 -0
- package/dist/components/Input.d.cts.map +1 -0
- package/dist/components/Input.d.mts +39 -0
- package/dist/components/Input.d.mts.map +1 -0
- package/dist/components/Input.mjs +174 -0
- package/dist/components/Input.mjs.map +1 -0
- package/dist/components/Link.cjs +139 -0
- package/dist/components/Link.d.cts +45 -0
- package/dist/components/Link.d.cts.map +1 -0
- package/dist/components/Link.d.mts +45 -0
- package/dist/components/Link.d.mts.map +1 -0
- package/dist/components/Link.mjs +138 -0
- package/dist/components/Link.mjs.map +1 -0
- package/dist/components/Pressable.cjs +120 -0
- package/dist/components/Pressable.d.cts +90 -0
- package/dist/components/Pressable.d.cts.map +1 -0
- package/dist/components/Pressable.d.mts +90 -0
- package/dist/components/Pressable.d.mts.map +1 -0
- package/dist/components/Pressable.mjs +118 -0
- package/dist/components/Pressable.mjs.map +1 -0
- package/dist/components/Radio.cjs +153 -0
- package/dist/components/Radio.d.cts +46 -0
- package/dist/components/Radio.d.cts.map +1 -0
- package/dist/components/Radio.d.mts +46 -0
- package/dist/components/Radio.d.mts.map +1 -0
- package/dist/components/Radio.mjs +152 -0
- package/dist/components/Radio.mjs.map +1 -0
- package/dist/components/Screen.cjs +89 -0
- package/dist/components/Screen.d.cts +53 -0
- package/dist/components/Screen.d.cts.map +1 -0
- package/dist/components/Screen.d.mts +53 -0
- package/dist/components/Screen.d.mts.map +1 -0
- package/dist/components/Screen.mjs +89 -0
- package/dist/components/Screen.mjs.map +1 -0
- package/dist/components/Switch.cjs +172 -0
- package/dist/components/Switch.d.cts +42 -0
- package/dist/components/Switch.d.cts.map +1 -0
- package/dist/components/Switch.d.mts +42 -0
- package/dist/components/Switch.d.mts.map +1 -0
- package/dist/components/Switch.mjs +171 -0
- package/dist/components/Switch.mjs.map +1 -0
- package/dist/components/Text.cjs +107 -0
- package/dist/components/Text.d.cts +96 -0
- package/dist/components/Text.d.cts.map +1 -0
- package/dist/components/Text.d.mts +96 -0
- package/dist/components/Text.d.mts.map +1 -0
- package/dist/components/Text.mjs +107 -0
- package/dist/components/Text.mjs.map +1 -0
- package/dist/components/VStack.cjs +46 -0
- package/dist/components/VStack.d.cts +41 -0
- package/dist/components/VStack.d.cts.map +1 -0
- package/dist/components/VStack.d.mts +41 -0
- package/dist/components/VStack.d.mts.map +1 -0
- package/dist/components/VStack.mjs +46 -0
- package/dist/components/VStack.mjs.map +1 -0
- package/dist/icons/dist/glyphMap.cjs +5475 -0
- package/dist/icons/dist/glyphMap.d.cts +10 -0
- package/dist/icons/dist/glyphMap.d.cts.map +1 -0
- package/dist/icons/dist/glyphMap.d.mts +10 -0
- package/dist/icons/dist/glyphMap.d.mts.map +1 -0
- package/dist/icons/dist/glyphMap.mjs +5474 -0
- package/dist/icons/dist/glyphMap.mjs.map +1 -0
- package/dist/icons/dist/svgMap.cjs +525 -0
- package/dist/icons/dist/svgMap.d.cts +10 -0
- package/dist/icons/dist/svgMap.d.cts.map +1 -0
- package/dist/icons/dist/svgMap.d.mts +10 -0
- package/dist/icons/dist/svgMap.d.mts.map +1 -0
- package/dist/icons/dist/svgMap.mjs +524 -0
- package/dist/icons/dist/svgMap.mjs.map +1 -0
- package/dist/icons/dist/tokens.cjs +13 -0
- package/dist/icons/dist/tokens.mjs +13 -0
- package/dist/icons/dist/tokens.mjs.map +1 -0
- package/dist/icons/dist/types.d.cts +24 -0
- package/dist/icons/dist/types.d.cts.map +1 -0
- package/dist/icons/dist/types.d.mts +24 -0
- package/dist/icons/dist/types.d.mts.map +1 -0
- package/dist/motion.cjs +56 -0
- package/dist/motion.d.cts +46 -0
- package/dist/motion.d.cts.map +1 -0
- package/dist/motion.d.mts +46 -0
- package/dist/motion.d.mts.map +1 -0
- package/dist/motion.mjs +52 -0
- package/dist/motion.mjs.map +1 -0
- package/dist/types.cjs +1 -0
- package/dist/types.d.cts +13 -0
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.mts +13 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/types.mjs +2 -0
- package/dist/uds/dist/components/Box.d.cts +3 -0
- package/dist/uds/dist/components/Box.d.mts +3 -0
- package/dist/uds/dist/components/Divider/Divider.d.cts +3 -0
- package/dist/uds/dist/components/Divider/Divider.d.mts +3 -0
- package/dist/uds/dist/components/Divider/DividerCore.d.cts +4 -0
- package/dist/uds/dist/components/Divider/DividerCore.d.mts +4 -0
- package/dist/uds/dist/components/Divider/DividerInternal.d.cts +4 -0
- package/dist/uds/dist/components/Divider/DividerInternal.d.mts +4 -0
- package/dist/uds/dist/components/Divider/index.d.cts +2 -0
- package/dist/uds/dist/components/Divider/index.d.mts +2 -0
- package/dist/uds/dist/components/FormLabel.d.cts +3 -0
- package/dist/uds/dist/components/FormLabel.d.mts +4 -0
- package/dist/uds/dist/components/HStack.d.cts +4 -0
- package/dist/uds/dist/components/HStack.d.mts +4 -0
- package/dist/uds/dist/components/Icon.d.cts +3 -0
- package/dist/uds/dist/components/Icon.d.mts +3 -0
- package/dist/uds/dist/components/Image.d.cts +2 -0
- package/dist/uds/dist/components/Image.d.mts +3 -0
- package/dist/uds/dist/components/Link.d.cts +3 -0
- package/dist/uds/dist/components/Link.d.mts +3 -0
- package/dist/uds/dist/components/Text.d.cts +3 -0
- package/dist/uds/dist/components/Text.d.mts +3 -0
- package/dist/uds/dist/components/VStack.d.cts +4 -0
- package/dist/uds/dist/components/VStack.d.mts +4 -0
- package/dist/uds/dist/components/client/Avatar/Avatar.d.cts +2 -0
- package/dist/uds/dist/components/client/Avatar/Avatar.d.mts +3 -0
- package/dist/uds/dist/components/client/Avatar/AvatarIcon.d.cts +2 -0
- package/dist/uds/dist/components/client/Avatar/AvatarIcon.d.mts +3 -0
- package/dist/uds/dist/components/client/Avatar/AvatarImage.d.cts +4 -0
- package/dist/uds/dist/components/client/Avatar/AvatarImage.d.mts +5 -0
- package/dist/uds/dist/components/client/Avatar/AvatarText.d.cts +3 -0
- package/dist/uds/dist/components/client/Avatar/AvatarText.d.mts +4 -0
- package/dist/uds/dist/components/client/Avatar/index.d.cts +5 -0
- package/dist/uds/dist/components/client/Avatar/index.d.mts +5 -0
- package/dist/uds/dist/components/client/Badge.d.cts +3 -0
- package/dist/uds/dist/components/client/Badge.d.mts +3 -0
- package/dist/uds/dist/components/client/Button.d.cts +3 -0
- package/dist/uds/dist/components/client/Button.d.mts +3 -0
- package/dist/uds/dist/components/client/Checkbox.d.cts +3 -0
- package/dist/uds/dist/components/client/Checkbox.d.mts +3 -0
- package/dist/uds/dist/components/client/Chip/Chip.d.cts +4 -0
- package/dist/uds/dist/components/client/Chip/Chip.d.mts +4 -0
- package/dist/uds/dist/components/client/Chip/ChipBase.d.cts +4 -0
- package/dist/uds/dist/components/client/Chip/ChipBase.d.mts +4 -0
- package/dist/uds/dist/components/client/Chip/ChipButton.d.cts +4 -0
- package/dist/uds/dist/components/client/Chip/ChipButton.d.mts +4 -0
- package/dist/uds/dist/components/client/Chip/ChipDismissible.d.cts +4 -0
- package/dist/uds/dist/components/client/Chip/ChipDismissible.d.mts +4 -0
- package/dist/uds/dist/components/client/Chip/ChipLink.d.cts +4 -0
- package/dist/uds/dist/components/client/Chip/ChipLink.d.mts +4 -0
- package/dist/uds/dist/components/client/Chip/ChipToggle.d.cts +4 -0
- package/dist/uds/dist/components/client/Chip/ChipToggle.d.mts +4 -0
- package/dist/uds/dist/components/client/Chip/index.d.cts +6 -0
- package/dist/uds/dist/components/client/Chip/index.d.mts +6 -0
- package/dist/uds/dist/components/client/IconButton.d.cts +3 -0
- package/dist/uds/dist/components/client/IconButton.d.mts +3 -0
- package/dist/uds/dist/components/client/Input/Input.d.cts +4 -0
- package/dist/uds/dist/components/client/Input/Input.d.mts +4 -0
- package/dist/uds/dist/components/client/Input/InputHelpText.d.cts +2 -0
- package/dist/uds/dist/components/client/Input/InputHelpText.d.mts +3 -0
- package/dist/uds/dist/components/client/Input/InputHelpTextInternal.d.cts +5 -0
- package/dist/uds/dist/components/client/Input/InputHelpTextInternal.d.mts +6 -0
- package/dist/uds/dist/components/client/Input/index.d.cts +3 -0
- package/dist/uds/dist/components/client/Input/index.d.mts +3 -0
- package/dist/uds/dist/components/client/Menu/Menu.Content.d.cts +4 -0
- package/dist/uds/dist/components/client/Menu/Menu.Content.d.mts +4 -0
- package/dist/uds/dist/components/client/Menu/Menu.Divider.d.cts +3 -0
- package/dist/uds/dist/components/client/Menu/Menu.Divider.d.mts +3 -0
- package/dist/uds/dist/components/client/Menu/Menu.Item.d.cts +4 -0
- package/dist/uds/dist/components/client/Menu/Menu.Item.d.mts +4 -0
- package/dist/uds/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +4 -0
- package/dist/uds/dist/components/client/Menu/Menu.ItemCheckbox.d.mts +4 -0
- package/dist/uds/dist/components/client/Menu/Menu.Provider.d.cts +2 -0
- package/dist/uds/dist/components/client/Menu/Menu.Provider.d.mts +3 -0
- package/dist/uds/dist/components/client/Menu/Menu.Trigger.d.cts +4 -0
- package/dist/uds/dist/components/client/Menu/Menu.Trigger.d.mts +4 -0
- package/dist/uds/dist/components/client/Menu/Menu.d.cts +2 -0
- package/dist/uds/dist/components/client/Menu/Menu.d.mts +2 -0
- package/dist/uds/dist/components/client/Menu/Menu.index.d.cts +7 -0
- package/dist/uds/dist/components/client/Menu/Menu.index.d.mts +7 -0
- package/dist/uds/dist/components/client/Menu/index.d.cts +9 -0
- package/dist/uds/dist/components/client/Menu/index.d.mts +9 -0
- package/dist/uds/dist/components/client/Pressable.d.cts +3 -0
- package/dist/uds/dist/components/client/Pressable.d.mts +3 -0
- package/dist/uds/dist/components/client/Radio/Radio.d.cts +3 -0
- package/dist/uds/dist/components/client/Radio/Radio.d.mts +3 -0
- package/dist/uds/dist/components/client/Radio/RadioGroupProvider.d.cts +3 -0
- package/dist/uds/dist/components/client/Radio/RadioGroupProvider.d.mts +3 -0
- package/dist/uds/dist/components/client/Radio/index.d.cts +3 -0
- package/dist/uds/dist/components/client/Radio/index.d.mts +3 -0
- package/dist/uds/dist/components/client/SpringMotionConfig.d.cts +3 -0
- package/dist/uds/dist/components/client/SpringMotionConfig.d.mts +3 -0
- package/dist/uds/dist/components/client/Switch.d.cts +3 -0
- package/dist/uds/dist/components/client/Switch.d.mts +3 -0
- package/dist/uds/dist/components/client/index.d.cts +33 -0
- package/dist/uds/dist/components/client/index.d.mts +33 -0
- package/dist/uds/dist/components/index.d.cts +40 -0
- package/dist/uds/dist/components/index.d.mts +40 -0
- package/dist/uds/dist/index.d.cts +46 -0
- package/dist/uds/dist/index.d.mts +46 -0
- package/dist/uds/dist/styles/styler.d.cts +2 -0
- package/dist/uds/dist/styles/styler.d.mts +2 -0
- package/dist/uds/dist/styles/stylerTypes.d.cts +2 -0
- package/dist/uds/dist/styles/stylerTypes.d.mts +2 -0
- package/dist/uds/dist/tokens/automation/configs/avatar.d.cts +2 -0
- package/dist/uds/dist/tokens/automation/configs/avatar.d.mts +2 -0
- package/dist/uds/dist/tokens/automation/properties.d.cts +3 -0
- package/dist/uds/dist/tokens/automation/properties.d.mts +3 -0
- package/dist/uds/dist/tokens/automation/types/ComponentConfig.d.cts +3 -0
- package/dist/uds/dist/tokens/automation/types/ComponentConfig.d.mts +3 -0
- package/dist/uds/dist/tokens/configs/motion.cjs +109 -0
- package/dist/uds/dist/tokens/configs/motion.d.cts +20 -0
- package/dist/uds/dist/tokens/configs/motion.d.cts.map +1 -0
- package/dist/uds/dist/tokens/configs/motion.d.mts +20 -0
- package/dist/uds/dist/tokens/configs/motion.d.mts.map +1 -0
- package/dist/uds/dist/tokens/configs/motion.mjs +108 -0
- package/dist/uds/dist/tokens/configs/motion.mjs.map +1 -0
- package/dist/uds/dist/tokens/configs/palette/alwaysPalette.d.cts +32 -0
- package/dist/uds/dist/tokens/configs/palette/alwaysPalette.d.cts.map +1 -0
- package/dist/uds/dist/tokens/configs/palette/alwaysPalette.d.mts +32 -0
- package/dist/uds/dist/tokens/configs/palette/alwaysPalette.d.mts.map +1 -0
- package/dist/uds/dist/tokens/types.d.cts +426 -0
- package/dist/uds/dist/tokens/types.d.cts.map +1 -0
- package/dist/uds/dist/tokens/types.d.mts +426 -0
- package/dist/uds/dist/tokens/types.d.mts.map +1 -0
- package/dist/uds/dist/types.d.cts +2 -0
- package/dist/uds/dist/types.d.mts +2 -0
- package/fonts/centra-no2-black-italic.otf +0 -0
- package/fonts/centra-no2-black.otf +0 -0
- package/fonts/centra-no2-bold-italic.otf +0 -0
- package/fonts/centra-no2-bold.otf +0 -0
- package/fonts/centra-no2-book-italic.otf +0 -0
- package/fonts/centra-no2-book.otf +0 -0
- package/fonts/centra-no2-extrabold-italic.otf +0 -0
- package/fonts/centra-no2-extrabold.otf +0 -0
- package/fonts/centra-no2-hairline-italic.otf +0 -0
- package/fonts/centra-no2-hairline.otf +0 -0
- package/fonts/centra-no2-light-italic.otf +0 -0
- package/fonts/centra-no2-light.otf +0 -0
- package/fonts/centra-no2-medium-italic.otf +0 -0
- package/fonts/centra-no2-medium.otf +0 -0
- package/fonts/centra-no2-thin-italic.otf +0 -0
- package/fonts/centra-no2-thin.otf +0 -0
- package/fonts/gelica-black-italic.otf +0 -0
- package/fonts/gelica-black.otf +0 -0
- package/fonts/gelica-bold-italic.otf +0 -0
- package/fonts/gelica-bold.otf +0 -0
- package/fonts/gelica-extra-light-italic.otf +0 -0
- package/fonts/gelica-extra-light.otf +0 -0
- package/fonts/gelica-light-italic.otf +0 -0
- package/fonts/gelica-light.otf +0 -0
- package/fonts/gelica-medium-italic.otf +0 -0
- package/fonts/gelica-medium.otf +0 -0
- package/fonts/gelica-regular-italic.otf +0 -0
- package/fonts/gelica-regular.otf +0 -0
- package/fonts/gelica-semi-bold-italic.otf +0 -0
- package/fonts/gelica-semi-bold.otf +0 -0
- package/fonts/index.cjs +270 -0
- package/fonts/index.d.ts +10 -0
- package/fonts/index.mjs +272 -0
- package/fonts/inter-black.ttf +0 -0
- package/fonts/inter-bold.ttf +0 -0
- package/fonts/inter-extra-bold.ttf +0 -0
- package/fonts/inter-extra-light.ttf +0 -0
- package/fonts/inter-light.ttf +0 -0
- package/fonts/inter-medium.ttf +0 -0
- package/fonts/inter-regular.ttf +0 -0
- package/fonts/inter-semi-bold.ttf +0 -0
- package/fonts/inter-thin.ttf +0 -0
- package/fonts/roboto-mono-bold-italic.ttf +0 -0
- package/fonts/roboto-mono-bold.ttf +0 -0
- package/fonts/roboto-mono-light-italic.ttf +0 -0
- package/fonts/roboto-mono-light.ttf +0 -0
- package/fonts/roboto-mono-medium-italic.ttf +0 -0
- package/fonts/roboto-mono-medium.ttf +0 -0
- package/fonts/roboto-mono-regular-italic.ttf +0 -0
- package/fonts/roboto-mono-regular.ttf +0 -0
- package/fonts/roboto-mono-thin-italic.ttf +0 -0
- package/fonts/roboto-mono-thin.ttf +0 -0
- package/fonts/uds-icons.ttf +0 -0
- package/fonts/yahoo-product-sans-bold.otf +0 -0
- package/fonts/yahoo-product-sans-extended-black-italic.ttf +0 -0
- package/fonts/yahoo-product-sans-extended-black.ttf +0 -0
- package/fonts/yahoo-product-sans-extended-bold-italic.ttf +0 -0
- package/fonts/yahoo-product-sans-extended-bold.ttf +0 -0
- package/fonts/yahoo-product-sans-extended-light-italic.ttf +0 -0
- package/fonts/yahoo-product-sans-extended-light.ttf +0 -0
- package/fonts/yahoo-product-sans-extended-medium-italic.ttf +0 -0
- package/fonts/yahoo-product-sans-extended-medium.ttf +0 -0
- package/fonts/yahoo-product-sans-extended-regular-italic.ttf +0 -0
- package/fonts/yahoo-product-sans-extended-regular.ttf +0 -0
- package/fonts/yahoo-product-sans-extended-semibold-italic.ttf +0 -0
- package/fonts/yahoo-product-sans-extended-semibold.ttf +0 -0
- package/fonts/yahoo-product-sans-medium.otf +0 -0
- package/fonts/yahoo-product-sans-regular.otf +0 -0
- package/fonts/yahoo-sans-beta-bold.otf +0 -0
- package/fonts/yahoo-sans-beta-medium.otf +0 -0
- package/fonts/yahoo-sans-beta-regular.otf +0 -0
- package/fonts/yahoo-sans-black.otf +0 -0
- package/fonts/yahoo-sans-bold.otf +0 -0
- package/fonts/yahoo-sans-condensed-black.otf +0 -0
- package/fonts/yahoo-sans-condensed-bold.otf +0 -0
- package/fonts/yahoo-sans-condensed-light.otf +0 -0
- package/fonts/yahoo-sans-condensed-medium.otf +0 -0
- package/fonts/yahoo-sans-condensed-regular.otf +0 -0
- package/fonts/yahoo-sans-condensed-xbold.ttf +0 -0
- package/fonts/yahoo-sans-cr4-bold.ttf +0 -0
- package/fonts/yahoo-sans-cr4-medium.ttf +0 -0
- package/fonts/yahoo-sans-cr4-regular.ttf +0 -0
- package/fonts/yahoo-sans-extrabold.otf +0 -0
- package/fonts/yahoo-sans-extralight.otf +0 -0
- package/fonts/yahoo-sans-italic.otf +0 -0
- package/fonts/yahoo-sans-light.otf +0 -0
- package/fonts/yahoo-sans-medium.otf +0 -0
- package/fonts/yahoo-sans-regular-italic.otf +0 -0
- package/fonts/yahoo-sans-regular.otf +0 -0
- package/fonts/yahoo-sans-semibold.otf +0 -0
- package/fonts/yahoo-serif-display-black.otf +0 -0
- package/fonts/yahoo-serif-display-bold.otf +0 -0
- package/fonts/yahoo-serif-display-extrabold.otf +0 -0
- package/fonts/yahoo-serif-display-light.otf +0 -0
- package/fonts/yahoo-serif-display-regular.otf +0 -0
- package/fonts/yahoo-serif-text-bold-italic.ttf +0 -0
- package/fonts/yahoo-serif-text-bold.otf +0 -0
- package/fonts/yahoo-serif-text-italic.otf +0 -0
- package/fonts/yahoo-serif-text-regular.otf +0 -0
- package/fonts/yas-black-italic.otf +0 -0
- package/fonts/yas-black.otf +0 -0
- package/fonts/yas-bold-italic.otf +0 -0
- package/fonts/yas-bold.otf +0 -0
- package/fonts/yas-condensed-black-italic.otf +0 -0
- package/fonts/yas-condensed-black.otf +0 -0
- package/fonts/yas-condensed-bold-italic.otf +0 -0
- package/fonts/yas-condensed-bold.otf +0 -0
- package/fonts/yas-condensed-light-italic.otf +0 -0
- package/fonts/yas-condensed-light.otf +0 -0
- package/fonts/yas-condensed-medium-italic.otf +0 -0
- package/fonts/yas-condensed-medium.otf +0 -0
- package/fonts/yas-condensed-regular-italic.otf +0 -0
- package/fonts/yas-condensed-regular.otf +0 -0
- package/fonts/yas-condensed-semibold-italic.otf +0 -0
- package/fonts/yas-condensed-semibold.otf +0 -0
- package/fonts/yas-extended-black-italic.otf +0 -0
- package/fonts/yas-extended-black.otf +0 -0
- package/fonts/yas-extended-bold-italic.otf +0 -0
- package/fonts/yas-extended-bold.otf +0 -0
- package/fonts/yas-extended-light-italic.otf +0 -0
- package/fonts/yas-extended-light.otf +0 -0
- package/fonts/yas-extended-medium-italic.otf +0 -0
- package/fonts/yas-extended-medium.otf +0 -0
- package/fonts/yas-extended-regular-italic.otf +0 -0
- package/fonts/yas-extended-regular.otf +0 -0
- package/fonts/yas-extended-semibold-italic.otf +0 -0
- package/fonts/yas-extended-semibold.otf +0 -0
- package/fonts/yas-light-italic.otf +0 -0
- package/fonts/yas-light.otf +0 -0
- package/fonts/yas-medium-italic.otf +0 -0
- package/fonts/yas-medium.otf +0 -0
- package/fonts/yas-regular-italic.otf +0 -0
- package/fonts/yas-regular.otf +0 -0
- package/fonts/yas-semibold-italic.otf +0 -0
- package/fonts/yas-semibold.otf +0 -0
- package/generated/styles.cjs +4510 -0
- package/generated/styles.d.cts +1 -0
- package/generated/styles.d.mts +1 -0
- package/generated/styles.d.ts +2965 -0
- package/generated/styles.mjs +4510 -0
- package/generated/unistyles.d.ts +4320 -0
- package/package.json +308 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
|
|
3
|
+
//#region ../icons/dist/tokens.js
|
|
4
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
5
|
+
const ICON_SIZE_MAP = {
|
|
6
|
+
xs: 12,
|
|
7
|
+
sm: 16,
|
|
8
|
+
md: 24,
|
|
9
|
+
lg: 32
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.ICON_SIZE_MAP = ICON_SIZE_MAP;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
//#region ../icons/dist/tokens.js
|
|
3
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
4
|
+
const ICON_SIZE_MAP = {
|
|
5
|
+
xs: 12,
|
|
6
|
+
sm: 16,
|
|
7
|
+
md: 24,
|
|
8
|
+
lg: 32
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ICON_SIZE_MAP };
|
|
13
|
+
//# sourceMappingURL=tokens.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.mjs","names":[],"sources":["../../../../icons/dist/tokens.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */\n//#region src/tokens.ts\nconst ICON_SIZE_MAP = {\n\txs: 12,\n\tsm: 16,\n\tmd: 24,\n\tlg: 32\n};\n\n//#endregion\nexport { ICON_SIZE_MAP };"],"mappings":";;;AAEA,MAAM,gBAAgB;CACrB,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../icons/dist/types.d.ts
|
|
3
|
+
|
|
4
|
+
type IconSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
5
|
+
type IconVariant = 'fill' | 'outline' | 'multicolor';
|
|
6
|
+
interface SvgIconProps {
|
|
7
|
+
size?: IconSize;
|
|
8
|
+
variant?: IconVariant;
|
|
9
|
+
}
|
|
10
|
+
interface SvgIconWithStaticProps<SvgIconProps$1> extends React.FunctionComponent<SvgIconProps$1> {
|
|
11
|
+
metadata: {
|
|
12
|
+
/** Icon name */
|
|
13
|
+
name: string;
|
|
14
|
+
/** Whether this is an SVG icon */
|
|
15
|
+
isSvgIcon: boolean;
|
|
16
|
+
/** List of available variants for this icon */
|
|
17
|
+
variants: IconVariant[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
type SvgIcon = SvgIconWithStaticProps<SvgIconProps>;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#endregion
|
|
23
|
+
export { type IconSize, type IconVariant, type SvgIcon };
|
|
24
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":["IconPixelSize","IconSize","IconVariant","SvgIconProps","SvgIconWithStaticProps","SvgIconProps$1","React","FunctionComponent","SvgIcon"],"sources":["../../../../icons/dist/types.d.ts"],"sourcesContent":["\n//#region src/types.d.ts\ntype IconPixelSize = 12 | 16 | 24 | 32;\ntype IconSize = 'xs' | 'sm' | 'md' | 'lg';\ntype IconVariant = 'fill' | 'outline' | 'multicolor';\ninterface SvgIconProps {\n size?: IconSize;\n variant?: IconVariant;\n}\ninterface SvgIconWithStaticProps<SvgIconProps$1> extends React.FunctionComponent<SvgIconProps$1> {\n metadata: {\n /** Icon name */\n name: string;\n /** Whether this is an SVG icon */\n isSvgIcon: boolean;\n /** List of available variants for this icon */\n variants: IconVariant[];\n };\n}\ntype SvgIcon = SvgIconWithStaticProps<SvgIconProps>;\n//#endregion\nexport { type IconPixelSize, type IconSize, type IconVariant, type SvgIcon, type SvgIconProps, type SvgIconWithStaticProps };"],"mappings":";;;AAIgB,KADXC,QAAAA,GAEKE,IAAY,GAAA,IAAA,GAAA,IACbF,GAAAA,IAAAA;AACc,KAHlBC,WAAAA,GAKKE,MAAAA,GAAAA,SAAsBC,GAAAA,YAAAA;UAJtBF,YAAAA,CAIuEE;EAOnEH,IAAAA,CAAAA,EAVLD,QAUKC;EAP2CI,OAAMC,CAAAA,EAFnDL,WAEmDK;;AAAiB,UAAtEH,sBAU4BD,CAAAA,cAAvBC,CAAAA,SAV0CE,KAAAA,CAAMC,iBAU1B,CAV4CF,cAU5C,CAAA,CAAA;;;;;;;cAHvBH;;;KAGTM,OAAAA,GAAUJ,uBAAuBD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../icons/dist/types.d.ts
|
|
3
|
+
|
|
4
|
+
type IconSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
5
|
+
type IconVariant = 'fill' | 'outline' | 'multicolor';
|
|
6
|
+
interface SvgIconProps {
|
|
7
|
+
size?: IconSize;
|
|
8
|
+
variant?: IconVariant;
|
|
9
|
+
}
|
|
10
|
+
interface SvgIconWithStaticProps<SvgIconProps$1> extends React.FunctionComponent<SvgIconProps$1> {
|
|
11
|
+
metadata: {
|
|
12
|
+
/** Icon name */
|
|
13
|
+
name: string;
|
|
14
|
+
/** Whether this is an SVG icon */
|
|
15
|
+
isSvgIcon: boolean;
|
|
16
|
+
/** List of available variants for this icon */
|
|
17
|
+
variants: IconVariant[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
type SvgIcon = SvgIconWithStaticProps<SvgIconProps>;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#endregion
|
|
23
|
+
export { type IconSize, type IconVariant, type SvgIcon };
|
|
24
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":["IconPixelSize","IconSize","IconVariant","SvgIconProps","SvgIconWithStaticProps","SvgIconProps$1","React","FunctionComponent","SvgIcon"],"sources":["../../../../icons/dist/types.d.ts"],"sourcesContent":["\n//#region src/types.d.ts\ntype IconPixelSize = 12 | 16 | 24 | 32;\ntype IconSize = 'xs' | 'sm' | 'md' | 'lg';\ntype IconVariant = 'fill' | 'outline' | 'multicolor';\ninterface SvgIconProps {\n size?: IconSize;\n variant?: IconVariant;\n}\ninterface SvgIconWithStaticProps<SvgIconProps$1> extends React.FunctionComponent<SvgIconProps$1> {\n metadata: {\n /** Icon name */\n name: string;\n /** Whether this is an SVG icon */\n isSvgIcon: boolean;\n /** List of available variants for this icon */\n variants: IconVariant[];\n };\n}\ntype SvgIcon = SvgIconWithStaticProps<SvgIconProps>;\n//#endregion\nexport { type IconPixelSize, type IconSize, type IconVariant, type SvgIcon, type SvgIconProps, type SvgIconWithStaticProps };"],"mappings":";;;AAIgB,KADXC,QAAAA,GAEKE,IAAY,GAAA,IAAA,GAAA,IACbF,GAAAA,IAAAA;AACc,KAHlBC,WAAAA,GAKKE,MAAAA,GAAAA,SAAsBC,GAAAA,YAAAA;UAJtBF,YAAAA,CAIuEE;EAOnEH,IAAAA,CAAAA,EAVLD,QAUKC;EAP2CI,OAAMC,CAAAA,EAFnDL,WAEmDK;;AAAiB,UAAtEH,sBAU4BD,CAAAA,cAAvBC,CAAAA,SAV0CE,KAAAA,CAAMC,iBAU1B,CAV4CF,cAU5C,CAAA,CAAA;;;;;;;cAHvBH;;;KAGTM,OAAAA,GAAUJ,uBAAuBD"}
|
package/dist/motion.cjs
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
const require_motion = require('./uds/dist/tokens/configs/motion.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/motion.ts
|
|
5
|
+
/**
|
|
6
|
+
* Motion configuration for UDS Mobile
|
|
7
|
+
*
|
|
8
|
+
* Imports motion configs from web UDS tokens and provides
|
|
9
|
+
* React Native Reanimated compatible helpers.
|
|
10
|
+
*
|
|
11
|
+
* @see packages/uds/src/tokens/configs/motion.ts
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Convenience accessors for commonly used motion configs.
|
|
15
|
+
* Button uses 'subtle.3' for layout animations and 'smooth.3' for color.
|
|
16
|
+
*/
|
|
17
|
+
const MOTION_CONFIG = {
|
|
18
|
+
subtle: require_motion.motion.subtle,
|
|
19
|
+
smooth: require_motion.motion.smooth,
|
|
20
|
+
bouncy: require_motion.motion.bouncy,
|
|
21
|
+
damped: require_motion.motion.damped,
|
|
22
|
+
veryBouncy: require_motion.motion.veryBouncy
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Default spring config for button press animations.
|
|
26
|
+
* Uses subtle.3 to match web Button behavior.
|
|
27
|
+
*/
|
|
28
|
+
const BUTTON_SPRING_CONFIG = {
|
|
29
|
+
damping: require_motion.motion.subtle["3"].damping,
|
|
30
|
+
stiffness: require_motion.motion.subtle["3"].stiffness,
|
|
31
|
+
mass: 1
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Spring config for icon enter/exit animations.
|
|
35
|
+
*/
|
|
36
|
+
const ICON_SPRING_CONFIG = {
|
|
37
|
+
damping: require_motion.motion.smooth["3"].damping,
|
|
38
|
+
stiffness: require_motion.motion.smooth["3"].stiffness,
|
|
39
|
+
mass: .5
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Duration constants for non-spring animations (in milliseconds).
|
|
43
|
+
*/
|
|
44
|
+
const ANIMATION_DURATION = {
|
|
45
|
+
fast: 150,
|
|
46
|
+
normal: 200,
|
|
47
|
+
slow: 300
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
exports.ANIMATION_DURATION = ANIMATION_DURATION;
|
|
52
|
+
exports.BUTTON_SPRING_CONFIG = BUTTON_SPRING_CONFIG;
|
|
53
|
+
exports.ICON_SPRING_CONFIG = ICON_SPRING_CONFIG;
|
|
54
|
+
exports.MOTION_CONFIG = MOTION_CONFIG;
|
|
55
|
+
exports.SCALE_EFFECTS = require_motion.SCALE_EFFECTS;
|
|
56
|
+
exports.motion = require_motion.motion;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
import { MotionVariantValues } from "./uds/dist/tokens/types.cjs";
|
|
3
|
+
import "./uds/dist/index.cjs";
|
|
4
|
+
import { SCALE_EFFECTS, motion } from "./uds/dist/tokens/configs/motion.cjs";
|
|
5
|
+
|
|
6
|
+
//#region src/motion.d.ts
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Convenience accessors for commonly used motion configs.
|
|
10
|
+
* Button uses 'subtle.3' for layout animations and 'smooth.3' for color.
|
|
11
|
+
*/
|
|
12
|
+
declare const MOTION_CONFIG: {
|
|
13
|
+
readonly subtle: MotionVariantValues;
|
|
14
|
+
readonly smooth: MotionVariantValues;
|
|
15
|
+
readonly bouncy: MotionVariantValues;
|
|
16
|
+
readonly damped: MotionVariantValues;
|
|
17
|
+
readonly veryBouncy: MotionVariantValues;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Default spring config for button press animations.
|
|
21
|
+
* Uses subtle.3 to match web Button behavior.
|
|
22
|
+
*/
|
|
23
|
+
declare const BUTTON_SPRING_CONFIG: {
|
|
24
|
+
readonly damping: number;
|
|
25
|
+
readonly stiffness: number;
|
|
26
|
+
readonly mass: 1;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Spring config for icon enter/exit animations.
|
|
30
|
+
*/
|
|
31
|
+
declare const ICON_SPRING_CONFIG: {
|
|
32
|
+
readonly damping: number;
|
|
33
|
+
readonly stiffness: number;
|
|
34
|
+
readonly mass: 0.5;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Duration constants for non-spring animations (in milliseconds).
|
|
38
|
+
*/
|
|
39
|
+
declare const ANIMATION_DURATION: {
|
|
40
|
+
readonly fast: 150;
|
|
41
|
+
readonly normal: 200;
|
|
42
|
+
readonly slow: 300;
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { ANIMATION_DURATION, BUTTON_SPRING_CONFIG, ICON_SPRING_CONFIG, MOTION_CONFIG, SCALE_EFFECTS, motion };
|
|
46
|
+
//# sourceMappingURL=motion.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.d.cts","names":[],"sources":["../src/motion.ts"],"sourcesContent":[],"mappings":";;;;;;;AA2DA;;;;cAlCa;mBAMH;;;;;;;;;;cAUG;;;;;;;;cASA;;;;;;;;cASA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
import { MotionVariantValues } from "./uds/dist/tokens/types.mjs";
|
|
3
|
+
import "./uds/dist/index.mjs";
|
|
4
|
+
import { SCALE_EFFECTS, motion } from "./uds/dist/tokens/configs/motion.mjs";
|
|
5
|
+
|
|
6
|
+
//#region src/motion.d.ts
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Convenience accessors for commonly used motion configs.
|
|
10
|
+
* Button uses 'subtle.3' for layout animations and 'smooth.3' for color.
|
|
11
|
+
*/
|
|
12
|
+
declare const MOTION_CONFIG: {
|
|
13
|
+
readonly subtle: MotionVariantValues;
|
|
14
|
+
readonly smooth: MotionVariantValues;
|
|
15
|
+
readonly bouncy: MotionVariantValues;
|
|
16
|
+
readonly damped: MotionVariantValues;
|
|
17
|
+
readonly veryBouncy: MotionVariantValues;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Default spring config for button press animations.
|
|
21
|
+
* Uses subtle.3 to match web Button behavior.
|
|
22
|
+
*/
|
|
23
|
+
declare const BUTTON_SPRING_CONFIG: {
|
|
24
|
+
readonly damping: number;
|
|
25
|
+
readonly stiffness: number;
|
|
26
|
+
readonly mass: 1;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Spring config for icon enter/exit animations.
|
|
30
|
+
*/
|
|
31
|
+
declare const ICON_SPRING_CONFIG: {
|
|
32
|
+
readonly damping: number;
|
|
33
|
+
readonly stiffness: number;
|
|
34
|
+
readonly mass: 0.5;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Duration constants for non-spring animations (in milliseconds).
|
|
38
|
+
*/
|
|
39
|
+
declare const ANIMATION_DURATION: {
|
|
40
|
+
readonly fast: 150;
|
|
41
|
+
readonly normal: 200;
|
|
42
|
+
readonly slow: 300;
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { ANIMATION_DURATION, BUTTON_SPRING_CONFIG, ICON_SPRING_CONFIG, MOTION_CONFIG, SCALE_EFFECTS, motion };
|
|
46
|
+
//# sourceMappingURL=motion.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.d.mts","names":[],"sources":["../src/motion.ts"],"sourcesContent":[],"mappings":";;;;;;;AA2DA;;;;cAlCa;mBAMH;;;;;;;;;;cAUG;;;;;;;;cASA;;;;;;;;cASA"}
|
package/dist/motion.mjs
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
import { SCALE_EFFECTS, motion } from "./uds/dist/tokens/configs/motion.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/motion.ts
|
|
5
|
+
/**
|
|
6
|
+
* Motion configuration for UDS Mobile
|
|
7
|
+
*
|
|
8
|
+
* Imports motion configs from web UDS tokens and provides
|
|
9
|
+
* React Native Reanimated compatible helpers.
|
|
10
|
+
*
|
|
11
|
+
* @see packages/uds/src/tokens/configs/motion.ts
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Convenience accessors for commonly used motion configs.
|
|
15
|
+
* Button uses 'subtle.3' for layout animations and 'smooth.3' for color.
|
|
16
|
+
*/
|
|
17
|
+
const MOTION_CONFIG = {
|
|
18
|
+
subtle: motion.subtle,
|
|
19
|
+
smooth: motion.smooth,
|
|
20
|
+
bouncy: motion.bouncy,
|
|
21
|
+
damped: motion.damped,
|
|
22
|
+
veryBouncy: motion.veryBouncy
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Default spring config for button press animations.
|
|
26
|
+
* Uses subtle.3 to match web Button behavior.
|
|
27
|
+
*/
|
|
28
|
+
const BUTTON_SPRING_CONFIG = {
|
|
29
|
+
damping: motion.subtle["3"].damping,
|
|
30
|
+
stiffness: motion.subtle["3"].stiffness,
|
|
31
|
+
mass: 1
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Spring config for icon enter/exit animations.
|
|
35
|
+
*/
|
|
36
|
+
const ICON_SPRING_CONFIG = {
|
|
37
|
+
damping: motion.smooth["3"].damping,
|
|
38
|
+
stiffness: motion.smooth["3"].stiffness,
|
|
39
|
+
mass: .5
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Duration constants for non-spring animations (in milliseconds).
|
|
43
|
+
*/
|
|
44
|
+
const ANIMATION_DURATION = {
|
|
45
|
+
fast: 150,
|
|
46
|
+
normal: 200,
|
|
47
|
+
slow: 300
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { ANIMATION_DURATION, BUTTON_SPRING_CONFIG, ICON_SPRING_CONFIG, MOTION_CONFIG, SCALE_EFFECTS, motion };
|
|
52
|
+
//# sourceMappingURL=motion.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.mjs","names":[],"sources":["../src/motion.ts"],"sourcesContent":["/**\n * Motion configuration for UDS Mobile\n *\n * Imports motion configs from web UDS tokens and provides\n * React Native Reanimated compatible helpers.\n *\n * @see packages/uds/src/tokens/configs/motion.ts\n */\n\nimport { motion } from '@yahoo/uds/__private/motion';\n\n/* -------------------------------------------------------------------------- */\n/* Spring Motion Configs */\n/* -------------------------------------------------------------------------- */\n\n/**\n * Re-export motion config from web UDS tokens.\n * Contains spring configurations for different animation styles.\n */\nexport { motion };\n\n/**\n * Convenience accessors for commonly used motion configs.\n * Button uses 'subtle.3' for layout animations and 'smooth.3' for color.\n */\nexport const MOTION_CONFIG = {\n subtle: motion.subtle,\n smooth: motion.smooth,\n bouncy: motion.bouncy,\n damped: motion.damped,\n veryBouncy: motion.veryBouncy,\n} as const;\n\n/* -------------------------------------------------------------------------- */\n/* React Native Reanimated Helpers */\n/* -------------------------------------------------------------------------- */\n\n/**\n * Default spring config for button press animations.\n * Uses subtle.3 to match web Button behavior.\n */\nexport const BUTTON_SPRING_CONFIG = {\n damping: motion.subtle['3'].damping,\n stiffness: motion.subtle['3'].stiffness,\n mass: 1,\n} as const;\n\n/**\n * Spring config for icon enter/exit animations.\n */\nexport const ICON_SPRING_CONFIG = {\n damping: motion.smooth['3'].damping,\n stiffness: motion.smooth['3'].stiffness,\n mass: 0.5,\n} as const;\n\n/**\n * Duration constants for non-spring animations (in milliseconds).\n */\nexport const ANIMATION_DURATION = {\n fast: 150,\n normal: 200,\n slow: 300,\n} as const;\n\nexport { SCALE_EFFECTS } from '@yahoo/uds/__private/motion';\n"],"mappings":";;;;;;;;;;;;;;;;AAyBA,MAAa,gBAAgB;CAC3B,QAAQ,OAAO;CACf,QAAQ,OAAO;CACf,QAAQ,OAAO;CACf,QAAQ,OAAO;CACf,YAAY,OAAO;CACpB;;;;;AAUD,MAAa,uBAAuB;CAClC,SAAS,OAAO,OAAO,KAAK;CAC5B,WAAW,OAAO,OAAO,KAAK;CAC9B,MAAM;CACP;;;;AAKD,MAAa,qBAAqB;CAChC,SAAS,OAAO,OAAO,KAAK;CAC5B,WAAW,OAAO,OAAO,KAAK;CAC9B,MAAM;CACP;;;;AAKD,MAAa,qBAAqB;CAChC,MAAM;CACN,QAAQ;CACR,MAAM;CACP"}
|
package/dist/types.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/types.d.ts
|
|
3
|
+
interface SizeProps {
|
|
4
|
+
width?: number | `${number}%`;
|
|
5
|
+
height?: number | `${number}%`;
|
|
6
|
+
minWidth?: number | `${number}%`;
|
|
7
|
+
maxWidth?: number | `${number}%`;
|
|
8
|
+
minHeight?: number | `${number}%`;
|
|
9
|
+
maxHeight?: number | `${number}%`;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { SizeProps };
|
|
13
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;UAAiB,SAAA;EAAA,KAAA,CAAA,EAAA,MAAS,GAAA,GAAA,MAAA,GAAA"}
|
package/dist/types.d.mts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/types.d.ts
|
|
3
|
+
interface SizeProps {
|
|
4
|
+
width?: number | `${number}%`;
|
|
5
|
+
height?: number | `${number}%`;
|
|
6
|
+
minWidth?: number | `${number}%`;
|
|
7
|
+
maxWidth?: number | `${number}%`;
|
|
8
|
+
minHeight?: number | `${number}%`;
|
|
9
|
+
maxHeight?: number | `${number}%`;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { SizeProps };
|
|
13
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;UAAiB,SAAA;EAAA,KAAA,CAAA,EAAA,MAAS,GAAA,GAAA,MAAA,GAAA"}
|
package/dist/types.mjs
ADDED