@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,60 @@
|
|
|
1
|
+
|
|
2
|
+
import { ChipSize, ChipVariant } from "../uds/dist/tokens/types.mjs";
|
|
3
|
+
import { IconSlotType } from "./IconSlot.mjs";
|
|
4
|
+
import * as react3 from "react";
|
|
5
|
+
import { Ref } from "react";
|
|
6
|
+
import { View, ViewProps } from "react-native";
|
|
7
|
+
|
|
8
|
+
//#region src/components/Chip.d.ts
|
|
9
|
+
interface ChipProps extends Omit<ViewProps, 'children'> {
|
|
10
|
+
ref?: Ref<View>;
|
|
11
|
+
/** @default 'primary' */
|
|
12
|
+
variant?: ChipVariant;
|
|
13
|
+
/** @default 'md' */
|
|
14
|
+
size?: ChipSize;
|
|
15
|
+
minWidth?: number;
|
|
16
|
+
/** @default 200 */
|
|
17
|
+
maxWidth?: number;
|
|
18
|
+
startIcon?: IconSlotType;
|
|
19
|
+
endIcon?: IconSlotType;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Called when the chip is pressed. Makes the chip interactive. */
|
|
22
|
+
onPress?: () => void;
|
|
23
|
+
/** Whether the chip is toggled/selected. */
|
|
24
|
+
isToggled?: boolean;
|
|
25
|
+
/** Called when the chip toggle state changes. */
|
|
26
|
+
onToggle?: (toggled: boolean) => void;
|
|
27
|
+
/** Called when the dismiss button is pressed. Shows a dismiss icon. */
|
|
28
|
+
onDismiss?: () => void;
|
|
29
|
+
/** Accessibility label for the dismiss button. */
|
|
30
|
+
dismissButtonAriaLabel?: string;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* **A chip component for selections, filters, or actions**
|
|
35
|
+
*
|
|
36
|
+
* @description
|
|
37
|
+
* Chips help people make selections, filter content, or trigger actions.
|
|
38
|
+
* They can be toggleable, dismissible, or simple pressable elements.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* import { Chip } from '~/components/ui/Chip';
|
|
43
|
+
*
|
|
44
|
+
* // Basic chip
|
|
45
|
+
* <Chip>Label</Chip>
|
|
46
|
+
*
|
|
47
|
+
* // Toggle chip
|
|
48
|
+
* <Chip isToggled={selected} onToggle={setSelected}>Filter</Chip>
|
|
49
|
+
*
|
|
50
|
+
* // Dismissible chip
|
|
51
|
+
* <Chip onDismiss={() => removeChip()}>Tag</Chip>
|
|
52
|
+
*
|
|
53
|
+
* // With icons
|
|
54
|
+
* <Chip startIcon="Star" variant="brand">Favorite</Chip>
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
declare const Chip: react3.NamedExoticComponent<ChipProps>;
|
|
58
|
+
//#endregion
|
|
59
|
+
export { Chip, type ChipProps };
|
|
60
|
+
//# sourceMappingURL=Chip.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.d.mts","names":[],"sources":["../../src/components/Chip.tsx"],"sourcesContent":[],"mappings":";;;;;;;;UAYU,SAAA,SAAkB,KAAK;QACzB,IAAI;;EADF,OAAA,CAAA,EAGE,WAHQ;EAAa;EACrB,IAAA,CAAA,EAIH,QAJG;EAAJ,QAAA,CAAA,EAAA,MAAA;EAEI;EAEH,QAAA,CAAA,EAAA,MAAA;EAIK,SAAA,CAAA,EAAA,YAAA;EACF,OAAA,CAAA,EAAA,YAAA;EAYC,QAAM,CAAA,EAAA,OAAA;EAtBS;EAAI,OAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EAiD1B;;;;;;;;aA3BO,KAAA,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;cA2Bb,MAAI,MAAA,CAAA,qBAAA"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
import { IconSlot } from "./IconSlot.mjs";
|
|
3
|
+
import { Text } from "./Text.mjs";
|
|
4
|
+
import { HStack } from "./HStack.mjs";
|
|
5
|
+
import { Pressable } from "./Pressable.mjs";
|
|
6
|
+
import { memo, useCallback, useMemo } from "react";
|
|
7
|
+
import { chipStyles } from "../../generated/styles";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/components/Chip.tsx
|
|
11
|
+
/**
|
|
12
|
+
* **A chip component for selections, filters, or actions**
|
|
13
|
+
*
|
|
14
|
+
* @description
|
|
15
|
+
* Chips help people make selections, filter content, or trigger actions.
|
|
16
|
+
* They can be toggleable, dismissible, or simple pressable elements.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* import { Chip } from '~/components/ui/Chip';
|
|
21
|
+
*
|
|
22
|
+
* // Basic chip
|
|
23
|
+
* <Chip>Label</Chip>
|
|
24
|
+
*
|
|
25
|
+
* // Toggle chip
|
|
26
|
+
* <Chip isToggled={selected} onToggle={setSelected}>Filter</Chip>
|
|
27
|
+
*
|
|
28
|
+
* // Dismissible chip
|
|
29
|
+
* <Chip onDismiss={() => removeChip()}>Tag</Chip>
|
|
30
|
+
*
|
|
31
|
+
* // With icons
|
|
32
|
+
* <Chip startIcon="Star" variant="brand">Favorite</Chip>
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
const Chip = memo(function Chip$1({ variant = "primary", size = "md", minWidth, maxWidth = 200, startIcon, endIcon, disabled = false, isToggled = false, onPress, onToggle, onDismiss, dismissButtonAriaLabel = "Dismiss", children, style, ref, ...rest }) {
|
|
36
|
+
const isInteractive = Boolean(onPress || onToggle);
|
|
37
|
+
const isDismissible = Boolean(onDismiss);
|
|
38
|
+
const isDisabled = disabled;
|
|
39
|
+
const toggleState = isToggled ? "on" : "off";
|
|
40
|
+
chipStyles.useVariants({
|
|
41
|
+
size,
|
|
42
|
+
link: variant,
|
|
43
|
+
dismissible: variant,
|
|
44
|
+
toggle: toggleState
|
|
45
|
+
});
|
|
46
|
+
const handlePress = useCallback(() => {
|
|
47
|
+
if (isDisabled) return;
|
|
48
|
+
if (onToggle) onToggle(!isToggled);
|
|
49
|
+
else if (onPress) onPress();
|
|
50
|
+
}, [
|
|
51
|
+
isDisabled,
|
|
52
|
+
onToggle,
|
|
53
|
+
isToggled,
|
|
54
|
+
onPress
|
|
55
|
+
]);
|
|
56
|
+
const handleDismiss = useCallback(() => {
|
|
57
|
+
if (isDisabled) return;
|
|
58
|
+
onDismiss?.();
|
|
59
|
+
}, [isDisabled, onDismiss]);
|
|
60
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
61
|
+
startIcon && /* @__PURE__ */ jsx(IconSlot, {
|
|
62
|
+
icon: startIcon,
|
|
63
|
+
variant: "fill",
|
|
64
|
+
style: chipStyles.icon
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ jsx(Text, {
|
|
67
|
+
numberOfLines: 1,
|
|
68
|
+
textAlign: "center",
|
|
69
|
+
flexShrink: "1",
|
|
70
|
+
style: chipStyles.text,
|
|
71
|
+
children
|
|
72
|
+
}),
|
|
73
|
+
isDismissible ? /* @__PURE__ */ jsx(Pressable, {
|
|
74
|
+
onPress: isDisabled ? void 0 : handleDismiss,
|
|
75
|
+
disabled: isDisabled,
|
|
76
|
+
accessibilityLabel: dismissButtonAriaLabel,
|
|
77
|
+
accessibilityRole: "button",
|
|
78
|
+
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
79
|
+
icon: endIcon ?? "Cross",
|
|
80
|
+
variant: "fill",
|
|
81
|
+
style: chipStyles.icon
|
|
82
|
+
})
|
|
83
|
+
}) : endIcon && /* @__PURE__ */ jsx(IconSlot, {
|
|
84
|
+
icon: endIcon,
|
|
85
|
+
variant: "fill",
|
|
86
|
+
style: chipStyles.icon
|
|
87
|
+
})
|
|
88
|
+
] });
|
|
89
|
+
const a11yState = {
|
|
90
|
+
disabled: isDisabled,
|
|
91
|
+
checked: onToggle ? isToggled : void 0
|
|
92
|
+
};
|
|
93
|
+
const sharedProps = {
|
|
94
|
+
ref,
|
|
95
|
+
style: useMemo(() => [chipStyles.root, style], [chipStyles.root, style]),
|
|
96
|
+
flexDirection: "row",
|
|
97
|
+
alignItems: "center",
|
|
98
|
+
overflow: "hidden",
|
|
99
|
+
alignSelf: "flex-start",
|
|
100
|
+
maxWidth,
|
|
101
|
+
minWidth,
|
|
102
|
+
disabled: isDisabled,
|
|
103
|
+
opacity: isDisabled ? .5 : void 0,
|
|
104
|
+
accessibilityState: a11yState,
|
|
105
|
+
...rest
|
|
106
|
+
};
|
|
107
|
+
if (isInteractive) return /* @__PURE__ */ jsx(Pressable, {
|
|
108
|
+
onPress: handlePress,
|
|
109
|
+
accessibilityRole: onToggle ? "checkbox" : "button",
|
|
110
|
+
...sharedProps,
|
|
111
|
+
children: content
|
|
112
|
+
});
|
|
113
|
+
return /* @__PURE__ */ jsx(HStack, {
|
|
114
|
+
accessibilityRole: isDismissible ? "button" : void 0,
|
|
115
|
+
...sharedProps,
|
|
116
|
+
...rest,
|
|
117
|
+
children: content
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
Chip.displayName = "Chip";
|
|
121
|
+
|
|
122
|
+
//#endregion
|
|
123
|
+
export { Chip };
|
|
124
|
+
//# sourceMappingURL=Chip.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.mjs","names":["Chip"],"sources":["../../src/components/Chip.tsx"],"sourcesContent":["import type { ChipSize, ChipVariant } from '@yahoo/uds/tokens';\nimport type { Ref } from 'react';\nimport { memo, useCallback, useMemo } from 'react';\nimport type { View, ViewProps } from 'react-native';\n\nimport { chipStyles } from '../../generated/styles';\nimport { HStack } from './HStack';\nimport type { IconSlotType } from './IconSlot';\nimport { IconSlot } from './IconSlot';\nimport { Pressable } from './Pressable';\nimport { Text } from './Text';\n\ninterface ChipProps extends Omit<ViewProps, 'children'> {\n ref?: Ref<View>;\n /** @default 'primary' */\n variant?: ChipVariant;\n /** @default 'md' */\n size?: ChipSize;\n minWidth?: number;\n /** @default 200 */\n maxWidth?: number;\n startIcon?: IconSlotType;\n endIcon?: IconSlotType;\n disabled?: boolean;\n /** Called when the chip is pressed. Makes the chip interactive. */\n onPress?: () => void;\n /** Whether the chip is toggled/selected. */\n isToggled?: boolean;\n /** Called when the chip toggle state changes. */\n onToggle?: (toggled: boolean) => void;\n /** Called when the dismiss button is pressed. Shows a dismiss icon. */\n onDismiss?: () => void;\n /** Accessibility label for the dismiss button. */\n dismissButtonAriaLabel?: string;\n children?: React.ReactNode;\n}\n\n/**\n * **A chip component for selections, filters, or actions**\n *\n * @description\n * Chips help people make selections, filter content, or trigger actions.\n * They can be toggleable, dismissible, or simple pressable elements.\n *\n * @example\n * ```tsx\n * import { Chip } from '~/components/ui/Chip';\n *\n * // Basic chip\n * <Chip>Label</Chip>\n *\n * // Toggle chip\n * <Chip isToggled={selected} onToggle={setSelected}>Filter</Chip>\n *\n * // Dismissible chip\n * <Chip onDismiss={() => removeChip()}>Tag</Chip>\n *\n * // With icons\n * <Chip startIcon=\"Star\" variant=\"brand\">Favorite</Chip>\n * ```\n */\nconst Chip = memo(function Chip({\n variant = 'primary',\n size = 'md',\n minWidth,\n maxWidth = 200,\n startIcon,\n endIcon,\n disabled = false,\n isToggled = false,\n onPress,\n onToggle,\n onDismiss,\n dismissButtonAriaLabel = 'Dismiss',\n children,\n style,\n ref,\n ...rest\n}: ChipProps) {\n const isInteractive = Boolean(onPress || onToggle);\n const isDismissible = Boolean(onDismiss);\n const isDisabled = disabled;\n // Determine which variant type to use for styling\n const toggleState = isToggled ? 'on' : 'off';\n\n // Apply layer-based styles\n // Note: Chip doesn't have disabled variants in theme - handled via opacity\n // Note: pressed state is applied dynamically via Pressable's style callback\n chipStyles.useVariants({\n size,\n link: variant,\n dismissible: variant,\n toggle: toggleState,\n });\n\n const handlePress = useCallback(() => {\n if (isDisabled) {\n return;\n }\n\n if (onToggle) {\n onToggle(!isToggled);\n } else if (onPress) {\n onPress();\n }\n }, [isDisabled, onToggle, isToggled, onPress]);\n\n const handleDismiss = useCallback(() => {\n if (isDisabled) {\n return;\n }\n onDismiss?.();\n }, [isDisabled, onDismiss]);\n\n const content = (\n <>\n {startIcon && <IconSlot icon={startIcon} variant=\"fill\" style={chipStyles.icon} />}\n <Text numberOfLines={1} textAlign=\"center\" flexShrink=\"1\" style={chipStyles.text}>\n {children}\n </Text>\n {isDismissible ? (\n <Pressable\n onPress={isDisabled ? undefined : handleDismiss}\n disabled={isDisabled}\n accessibilityLabel={dismissButtonAriaLabel}\n accessibilityRole=\"button\"\n >\n <IconSlot icon={endIcon ?? 'Cross'} variant=\"fill\" style={chipStyles.icon} />\n </Pressable>\n ) : (\n endIcon && <IconSlot icon={endIcon} variant=\"fill\" style={chipStyles.icon} />\n )}\n </>\n );\n\n const a11yState = {\n disabled: isDisabled,\n checked: onToggle ? isToggled : undefined,\n };\n\n const rootStyles = useMemo(() => [chipStyles.root, style], [chipStyles.root, style]);\n const sharedProps = {\n ref,\n style: rootStyles,\n flexDirection: 'row',\n alignItems: 'center',\n overflow: 'hidden',\n alignSelf: 'flex-start',\n maxWidth,\n minWidth,\n disabled: isDisabled,\n opacity: isDisabled ? 0.5 : undefined,\n accessibilityState: a11yState,\n ...rest,\n } as const;\n\n // Interactive chip (toggle or button)\n if (isInteractive) {\n return (\n <Pressable\n onPress={handlePress}\n accessibilityRole={onToggle ? 'checkbox' : 'button'}\n {...sharedProps}\n >\n {content}\n </Pressable>\n );\n }\n\n // Non-interactive chip (display only or dismissible)\n return (\n <HStack accessibilityRole={isDismissible ? 'button' : undefined} {...sharedProps} {...rest}>\n {content}\n </HStack>\n );\n});\n\nChip.displayName = 'Chip';\n\nexport { Chip, type ChipProps };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DA,MAAM,OAAO,KAAK,SAASA,OAAK,EAC9B,UAAU,WACV,OAAO,MACP,UACA,WAAW,KACX,WACA,SACA,WAAW,OACX,YAAY,OACZ,SACA,UACA,WACA,yBAAyB,WACzB,UACA,OACA,KACA,GAAG,QACS;CACZ,MAAM,gBAAgB,QAAQ,WAAW,SAAS;CAClD,MAAM,gBAAgB,QAAQ,UAAU;CACxC,MAAM,aAAa;CAEnB,MAAM,cAAc,YAAY,OAAO;AAKvC,YAAW,YAAY;EACrB;EACA,MAAM;EACN,aAAa;EACb,QAAQ;EACT,CAAC;CAEF,MAAM,cAAc,kBAAkB;AACpC,MAAI,WACF;AAGF,MAAI,SACF,UAAS,CAAC,UAAU;WACX,QACT,UAAS;IAEV;EAAC;EAAY;EAAU;EAAW;EAAQ,CAAC;CAE9C,MAAM,gBAAgB,kBAAkB;AACtC,MAAI,WACF;AAEF,eAAa;IACZ,CAAC,YAAY,UAAU,CAAC;CAE3B,MAAM,UACJ;EACG,aAAa,oBAAC;GAAS,MAAM;GAAW,SAAQ;GAAO,OAAO,WAAW;IAAQ;EAClF,oBAAC;GAAK,eAAe;GAAG,WAAU;GAAS,YAAW;GAAI,OAAO,WAAW;GACzE;IACI;EACN,gBACC,oBAAC;GACC,SAAS,aAAa,SAAY;GAClC,UAAU;GACV,oBAAoB;GACpB,mBAAkB;aAElB,oBAAC;IAAS,MAAM,WAAW;IAAS,SAAQ;IAAO,OAAO,WAAW;KAAQ;IACnE,GAEZ,WAAW,oBAAC;GAAS,MAAM;GAAS,SAAQ;GAAO,OAAO,WAAW;IAAQ;KAE9E;CAGL,MAAM,YAAY;EAChB,UAAU;EACV,SAAS,WAAW,YAAY;EACjC;CAGD,MAAM,cAAc;EAClB;EACA,OAHiB,cAAc,CAAC,WAAW,MAAM,MAAM,EAAE,CAAC,WAAW,MAAM,MAAM,CAAC;EAIlF,eAAe;EACf,YAAY;EACZ,UAAU;EACV,WAAW;EACX;EACA;EACA,UAAU;EACV,SAAS,aAAa,KAAM;EAC5B,oBAAoB;EACpB,GAAG;EACJ;AAGD,KAAI,cACF,QACE,oBAAC;EACC,SAAS;EACT,mBAAmB,WAAW,aAAa;EAC3C,GAAI;YAEH;GACS;AAKhB,QACE,oBAAC;EAAO,mBAAmB,gBAAgB,WAAW;EAAW,GAAI;EAAa,GAAI;YACnF;GACM;EAEX;AAEF,KAAK,cAAc"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
3
|
+
const require_components_Box = require('./Box.cjs');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
|
|
7
|
+
//#region src/components/HStack.tsx
|
|
8
|
+
/**
|
|
9
|
+
* **📦 A horizontal stack layout component**
|
|
10
|
+
*
|
|
11
|
+
* @description
|
|
12
|
+
* A convenience component for creating horizontal layouts. It's a Box with
|
|
13
|
+
* `flexDirection="row"` preset.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import { HStack } from '@yahoo/uds-mobile';
|
|
18
|
+
*
|
|
19
|
+
* <HStack gap="4" alignItems="center">
|
|
20
|
+
* <Text>Item 1</Text>
|
|
21
|
+
* <Text>Item 2</Text>
|
|
22
|
+
* </HStack>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @usage
|
|
26
|
+
* - Use for horizontal arrangements of elements
|
|
27
|
+
* - Use gap prop for consistent spacing between children
|
|
28
|
+
*
|
|
29
|
+
* @see The {@link https://uds.build/docs/components/h-stack HStack Docs} for more info
|
|
30
|
+
*
|
|
31
|
+
* @related [VStack](https://uds.build/docs/components/v-stack), [Box](https://uds.build/docs/components/box)
|
|
32
|
+
*/
|
|
33
|
+
const HStack = (0, react.memo)(function HStack$1({ gap, children, ref, ...props }) {
|
|
34
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
|
|
35
|
+
ref,
|
|
36
|
+
flexDirection: "row",
|
|
37
|
+
rowGap: gap,
|
|
38
|
+
columnGap: gap,
|
|
39
|
+
...props,
|
|
40
|
+
children
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
HStack.displayName = "HStack";
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
exports.HStack = HStack;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
import { BoxProps } from "./Box.cjs";
|
|
3
|
+
import * as react9 from "react";
|
|
4
|
+
import { Ref } from "react";
|
|
5
|
+
import { View } from "react-native";
|
|
6
|
+
import { StyleProps } from "../../generated/styles";
|
|
7
|
+
|
|
8
|
+
//#region src/components/HStack.d.ts
|
|
9
|
+
interface HStackProps extends Omit<BoxProps, 'ref'> {
|
|
10
|
+
gap?: StyleProps['columnGap'];
|
|
11
|
+
ref?: Ref<View>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* **📦 A horizontal stack layout component**
|
|
15
|
+
*
|
|
16
|
+
* @description
|
|
17
|
+
* A convenience component for creating horizontal layouts. It's a Box with
|
|
18
|
+
* `flexDirection="row"` preset.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* import { HStack } from '@yahoo/uds-mobile';
|
|
23
|
+
*
|
|
24
|
+
* <HStack gap="4" alignItems="center">
|
|
25
|
+
* <Text>Item 1</Text>
|
|
26
|
+
* <Text>Item 2</Text>
|
|
27
|
+
* </HStack>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @usage
|
|
31
|
+
* - Use for horizontal arrangements of elements
|
|
32
|
+
* - Use gap prop for consistent spacing between children
|
|
33
|
+
*
|
|
34
|
+
* @see The {@link https://uds.build/docs/components/h-stack HStack Docs} for more info
|
|
35
|
+
*
|
|
36
|
+
* @related [VStack](https://uds.build/docs/components/v-stack), [Box](https://uds.build/docs/components/box)
|
|
37
|
+
*/
|
|
38
|
+
declare const HStack: react9.NamedExoticComponent<HStackProps>;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { HStack, type HStackProps };
|
|
41
|
+
//# sourceMappingURL=HStack.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HStack.d.cts","names":[],"sources":["../../src/components/HStack.tsx"],"sourcesContent":[],"mappings":";;;;;;;;UAQU,WAAA,SAAoB,KAAK;QAC3B;QACA,IAAI;AAL0B;;;;;;;AAGJ;;;;;;;;;;;;;;;;;;;cA8B5B,QAAM,MAAA,CAAA,qBAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
import { BoxProps } from "./Box.mjs";
|
|
3
|
+
import * as react4 from "react";
|
|
4
|
+
import { Ref } from "react";
|
|
5
|
+
import { View } from "react-native";
|
|
6
|
+
import { StyleProps } from "../../generated/styles";
|
|
7
|
+
|
|
8
|
+
//#region src/components/HStack.d.ts
|
|
9
|
+
interface HStackProps extends Omit<BoxProps, 'ref'> {
|
|
10
|
+
gap?: StyleProps['columnGap'];
|
|
11
|
+
ref?: Ref<View>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* **📦 A horizontal stack layout component**
|
|
15
|
+
*
|
|
16
|
+
* @description
|
|
17
|
+
* A convenience component for creating horizontal layouts. It's a Box with
|
|
18
|
+
* `flexDirection="row"` preset.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* import { HStack } from '@yahoo/uds-mobile';
|
|
23
|
+
*
|
|
24
|
+
* <HStack gap="4" alignItems="center">
|
|
25
|
+
* <Text>Item 1</Text>
|
|
26
|
+
* <Text>Item 2</Text>
|
|
27
|
+
* </HStack>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @usage
|
|
31
|
+
* - Use for horizontal arrangements of elements
|
|
32
|
+
* - Use gap prop for consistent spacing between children
|
|
33
|
+
*
|
|
34
|
+
* @see The {@link https://uds.build/docs/components/h-stack HStack Docs} for more info
|
|
35
|
+
*
|
|
36
|
+
* @related [VStack](https://uds.build/docs/components/v-stack), [Box](https://uds.build/docs/components/box)
|
|
37
|
+
*/
|
|
38
|
+
declare const HStack: react4.NamedExoticComponent<HStackProps>;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { HStack, type HStackProps };
|
|
41
|
+
//# sourceMappingURL=HStack.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HStack.d.mts","names":[],"sources":["../../src/components/HStack.tsx"],"sourcesContent":[],"mappings":";;;;;;;;UAQU,WAAA,SAAoB,KAAK;QAC3B;QACA,IAAI;AAL0B;;;;;;;AAGJ;;;;;;;;;;;;;;;;;;;cA8B5B,QAAM,MAAA,CAAA,qBAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
import { Box } from "./Box.mjs";
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/HStack.tsx
|
|
7
|
+
/**
|
|
8
|
+
* **📦 A horizontal stack layout component**
|
|
9
|
+
*
|
|
10
|
+
* @description
|
|
11
|
+
* A convenience component for creating horizontal layouts. It's a Box with
|
|
12
|
+
* `flexDirection="row"` preset.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* import { HStack } from '@yahoo/uds-mobile';
|
|
17
|
+
*
|
|
18
|
+
* <HStack gap="4" alignItems="center">
|
|
19
|
+
* <Text>Item 1</Text>
|
|
20
|
+
* <Text>Item 2</Text>
|
|
21
|
+
* </HStack>
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @usage
|
|
25
|
+
* - Use for horizontal arrangements of elements
|
|
26
|
+
* - Use gap prop for consistent spacing between children
|
|
27
|
+
*
|
|
28
|
+
* @see The {@link https://uds.build/docs/components/h-stack HStack Docs} for more info
|
|
29
|
+
*
|
|
30
|
+
* @related [VStack](https://uds.build/docs/components/v-stack), [Box](https://uds.build/docs/components/box)
|
|
31
|
+
*/
|
|
32
|
+
const HStack = memo(function HStack$1({ gap, children, ref, ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
34
|
+
ref,
|
|
35
|
+
flexDirection: "row",
|
|
36
|
+
rowGap: gap,
|
|
37
|
+
columnGap: gap,
|
|
38
|
+
...props,
|
|
39
|
+
children
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
HStack.displayName = "HStack";
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { HStack };
|
|
46
|
+
//# sourceMappingURL=HStack.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HStack.mjs","names":["HStack"],"sources":["../../src/components/HStack.tsx"],"sourcesContent":["import type { Ref } from 'react';\nimport { memo } from 'react';\nimport type { View } from 'react-native';\n\nimport type { StyleProps } from '../../generated/styles';\nimport type { BoxProps } from './Box';\nimport { Box } from './Box';\n\ninterface HStackProps extends Omit<BoxProps, 'ref'> {\n gap?: StyleProps['columnGap'];\n ref?: Ref<View>;\n}\n\n/**\n * **📦 A horizontal stack layout component**\n *\n * @description\n * A convenience component for creating horizontal layouts. It's a Box with\n * `flexDirection=\"row\"` preset.\n *\n * @example\n * ```tsx\n * import { HStack } from '@yahoo/uds-mobile';\n *\n * <HStack gap=\"4\" alignItems=\"center\">\n * <Text>Item 1</Text>\n * <Text>Item 2</Text>\n * </HStack>\n * ```\n *\n * @usage\n * - Use for horizontal arrangements of elements\n * - Use gap prop for consistent spacing between children\n *\n * @see The {@link https://uds.build/docs/components/h-stack HStack Docs} for more info\n *\n * @related [VStack](https://uds.build/docs/components/v-stack), [Box](https://uds.build/docs/components/box)\n */\nconst HStack = memo(function HStack({ gap, children, ref, ...props }: HStackProps) {\n return (\n <Box ref={ref} flexDirection=\"row\" rowGap={gap} columnGap={gap} {...props}>\n {children}\n </Box>\n );\n});\n\nHStack.displayName = 'HStack';\n\nexport { HStack, type HStackProps };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,MAAM,SAAS,KAAK,SAASA,SAAO,EAAE,KAAK,UAAU,KAAK,GAAG,SAAsB;AACjF,QACE,oBAAC;EAAS;EAAK,eAAc;EAAM,QAAQ;EAAK,WAAW;EAAK,GAAI;EACjE;GACG;EAER;AAEF,OAAO,cAAc"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
3
|
+
const require_glyphMap = require('../icons/dist/glyphMap.cjs');
|
|
4
|
+
const require_svgMap = require('../icons/dist/svgMap.cjs');
|
|
5
|
+
const require_tokens = require('../icons/dist/tokens.cjs');
|
|
6
|
+
let react = require("react");
|
|
7
|
+
let react_native = require("react-native");
|
|
8
|
+
let generated_styles = require("../../generated/styles");
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
let react_native_svg = require("react-native-svg");
|
|
11
|
+
let react_native_unistyles = require("react-native-unistyles");
|
|
12
|
+
|
|
13
|
+
//#region src/components/Icon.tsx
|
|
14
|
+
const DEFAULT_PROPS = {
|
|
15
|
+
size: "md",
|
|
16
|
+
color: "primary",
|
|
17
|
+
variant: "outline",
|
|
18
|
+
flexShrink: "0"
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Separate component for multicolor SVG icons.
|
|
22
|
+
* Uses useUnistyles() for reactive theme access - isolated here so
|
|
23
|
+
* glyph-based icons don't pay the hook overhead.
|
|
24
|
+
*/
|
|
25
|
+
const MulticolorIcon = (0, react.memo)(function MulticolorIcon$1({ name, size = DEFAULT_PROPS.size, flexShrink = DEFAULT_PROPS.flexShrink, backgroundColor, dangerouslySetSize }) {
|
|
26
|
+
const { rt } = (0, react_native_unistyles.useUnistyles)();
|
|
27
|
+
const colorScheme = rt.themeName === "dark" ? "dark" : "light";
|
|
28
|
+
const pixelSize = require_tokens.ICON_SIZE_MAP[size];
|
|
29
|
+
const svgKey = `${name}-${colorScheme}-${pixelSize}`;
|
|
30
|
+
const svgContent = require_svgMap.svgMap[svgKey];
|
|
31
|
+
if (!svgContent) {
|
|
32
|
+
console.warn(`Multicolor icon "${svgKey}" not found`);
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
generated_styles.styles.useVariants({
|
|
36
|
+
flexShrink,
|
|
37
|
+
backgroundColor
|
|
38
|
+
});
|
|
39
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native.View, {
|
|
40
|
+
style: generated_styles.styles.foundation,
|
|
41
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native_svg.SvgXml, {
|
|
42
|
+
xml: svgContent,
|
|
43
|
+
width: dangerouslySetSize ?? pixelSize,
|
|
44
|
+
height: dangerouslySetSize ?? pixelSize
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
const OutlineOrFillIcon = (0, react.memo)(function OutlineOrFillIcon$1({ name, size = DEFAULT_PROPS.size, color = DEFAULT_PROPS.color, variant = DEFAULT_PROPS.variant, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, flexShrink = "0", spacingStart, spacingEnd, spacingTop, spacingBottom, spacingHorizontal, spacingVertical, spacing, offsetStart, offsetEnd, offsetTop, offsetBottom, offsetHorizontal, offsetVertical, offset, dangerouslySetColor, dangerouslySetSize, style, ref, ...props }) {
|
|
49
|
+
const pixelSize = require_tokens.ICON_SIZE_MAP[size];
|
|
50
|
+
generated_styles.styles.useVariants({
|
|
51
|
+
color,
|
|
52
|
+
backgroundColor,
|
|
53
|
+
borderRadius,
|
|
54
|
+
borderTopStartRadius,
|
|
55
|
+
borderTopEndRadius,
|
|
56
|
+
borderBottomStartRadius,
|
|
57
|
+
borderBottomEndRadius,
|
|
58
|
+
borderColor,
|
|
59
|
+
borderStartColor,
|
|
60
|
+
borderEndColor,
|
|
61
|
+
borderTopColor,
|
|
62
|
+
borderBottomColor,
|
|
63
|
+
borderWidth,
|
|
64
|
+
borderVerticalWidth,
|
|
65
|
+
borderHorizontalWidth,
|
|
66
|
+
borderStartWidth,
|
|
67
|
+
borderEndWidth,
|
|
68
|
+
borderTopWidth,
|
|
69
|
+
borderBottomWidth,
|
|
70
|
+
flexShrink,
|
|
71
|
+
spacingStart,
|
|
72
|
+
spacingEnd,
|
|
73
|
+
spacingTop,
|
|
74
|
+
spacingBottom,
|
|
75
|
+
spacingHorizontal,
|
|
76
|
+
spacingVertical,
|
|
77
|
+
spacing,
|
|
78
|
+
offsetStart,
|
|
79
|
+
offsetEnd,
|
|
80
|
+
offsetTop,
|
|
81
|
+
offsetBottom,
|
|
82
|
+
offsetHorizontal,
|
|
83
|
+
offsetVertical,
|
|
84
|
+
offset
|
|
85
|
+
});
|
|
86
|
+
const glyph = require_glyphMap.glyphMap[`${name}-${variant}-${pixelSize}`];
|
|
87
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native.Text, {
|
|
88
|
+
ref,
|
|
89
|
+
accessibilityRole: "image",
|
|
90
|
+
accessibilityLabel: name,
|
|
91
|
+
style: (0, react.useMemo)(() => [
|
|
92
|
+
{
|
|
93
|
+
fontFamily: "uds-icons",
|
|
94
|
+
textAlign: "center",
|
|
95
|
+
textAlignVertical: "center"
|
|
96
|
+
},
|
|
97
|
+
generated_styles.styles.foundation,
|
|
98
|
+
dangerouslySetColor ? { color: dangerouslySetColor } : void 0,
|
|
99
|
+
dangerouslySetSize ? {
|
|
100
|
+
fontSize: dangerouslySetSize,
|
|
101
|
+
lineHeight: dangerouslySetSize
|
|
102
|
+
} : void 0,
|
|
103
|
+
style
|
|
104
|
+
], [
|
|
105
|
+
dangerouslySetColor,
|
|
106
|
+
dangerouslySetSize,
|
|
107
|
+
style,
|
|
108
|
+
generated_styles.styles.foundation
|
|
109
|
+
]),
|
|
110
|
+
...props,
|
|
111
|
+
children: glyph
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
/**
|
|
115
|
+
* **🎨 An icon component using UDS icon fonts**
|
|
116
|
+
*
|
|
117
|
+
* @description
|
|
118
|
+
* Renders icons from the UDS icon library. Supports multiple variants
|
|
119
|
+
* (outline, fill, multicolor) and sizes.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```tsx
|
|
123
|
+
* import { Icon } from '@yahoo/uds-mobile';
|
|
124
|
+
*
|
|
125
|
+
* <Icon name="ChevronRight" size="md" color="primary" />
|
|
126
|
+
* <Icon name="Star" variant="fill" color="accent" />
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* @usage
|
|
130
|
+
* - Use name prop to specify the icon
|
|
131
|
+
* - Use variant prop for outline/fill/multicolor
|
|
132
|
+
* - Use size prop for icon size (xs, sm, md, lg, xl)
|
|
133
|
+
*
|
|
134
|
+
* @see The {@link https://uds.build/docs/components/icon Icon Docs} for more info
|
|
135
|
+
*/
|
|
136
|
+
const Icon = (0, react.memo)(function Icon$1({ variant, ...props }) {
|
|
137
|
+
if (variant === "multicolor") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MulticolorIcon, { ...props });
|
|
138
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OutlineOrFillIcon, {
|
|
139
|
+
variant,
|
|
140
|
+
...props
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
Icon.displayName = "Icon";
|
|
144
|
+
const iconNames = require_glyphMap.glyphNames;
|
|
145
|
+
const multicolorIconNames = require_svgMap.svgGlyphNames;
|
|
146
|
+
|
|
147
|
+
//#endregion
|
|
148
|
+
exports.Icon = Icon;
|
|
149
|
+
exports.iconNames = iconNames;
|
|
150
|
+
exports.multicolorIconNames = multicolorIconNames;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
|
|
2
|
+
import { IconSize, IconVariant } from "../icons/dist/types.cjs";
|
|
3
|
+
import "../uds/dist/index.cjs";
|
|
4
|
+
import { GlyphName } from "../icons/dist/glyphMap.cjs";
|
|
5
|
+
import { SvgGlyphName } from "../icons/dist/svgMap.cjs";
|
|
6
|
+
import * as react19 from "react";
|
|
7
|
+
import { Ref } from "react";
|
|
8
|
+
import { StyleProp, Text, TextProps, TextStyle } from "react-native";
|
|
9
|
+
import { StyleProps } from "../../generated/styles";
|
|
10
|
+
|
|
11
|
+
//#region src/components/Icon.d.ts
|
|
12
|
+
type IconName = GlyphName | SvgGlyphName;
|
|
13
|
+
interface IconProps extends Omit<TextProps, 'style'> {
|
|
14
|
+
ref?: Ref<Text>;
|
|
15
|
+
/** The icon name */
|
|
16
|
+
name: IconName;
|
|
17
|
+
/** Icon size */
|
|
18
|
+
size?: IconSize;
|
|
19
|
+
/** Icon color */
|
|
20
|
+
color?: StyleProps['color'];
|
|
21
|
+
/** Icon variant (outline, fill, multicolor) */
|
|
22
|
+
variant?: IconVariant;
|
|
23
|
+
backgroundColor?: StyleProps['backgroundColor'];
|
|
24
|
+
borderRadius?: StyleProps['borderRadius'];
|
|
25
|
+
borderTopStartRadius?: StyleProps['borderTopStartRadius'];
|
|
26
|
+
borderTopEndRadius?: StyleProps['borderTopEndRadius'];
|
|
27
|
+
borderBottomStartRadius?: StyleProps['borderBottomStartRadius'];
|
|
28
|
+
borderBottomEndRadius?: StyleProps['borderBottomEndRadius'];
|
|
29
|
+
borderColor?: StyleProps['borderColor'];
|
|
30
|
+
borderStartColor?: StyleProps['borderStartColor'];
|
|
31
|
+
borderEndColor?: StyleProps['borderEndColor'];
|
|
32
|
+
borderTopColor?: StyleProps['borderTopColor'];
|
|
33
|
+
borderBottomColor?: StyleProps['borderBottomColor'];
|
|
34
|
+
borderWidth?: StyleProps['borderWidth'];
|
|
35
|
+
borderVerticalWidth?: StyleProps['borderVerticalWidth'];
|
|
36
|
+
borderHorizontalWidth?: StyleProps['borderHorizontalWidth'];
|
|
37
|
+
borderStartWidth?: StyleProps['borderStartWidth'];
|
|
38
|
+
borderEndWidth?: StyleProps['borderEndWidth'];
|
|
39
|
+
borderTopWidth?: StyleProps['borderTopWidth'];
|
|
40
|
+
borderBottomWidth?: StyleProps['borderBottomWidth'];
|
|
41
|
+
flexShrink?: StyleProps['flexShrink'];
|
|
42
|
+
spacingStart?: StyleProps['spacingStart'];
|
|
43
|
+
spacingEnd?: StyleProps['spacingEnd'];
|
|
44
|
+
spacingTop?: StyleProps['spacingTop'];
|
|
45
|
+
spacingBottom?: StyleProps['spacingBottom'];
|
|
46
|
+
spacingHorizontal?: StyleProps['spacingHorizontal'];
|
|
47
|
+
spacingVertical?: StyleProps['spacingVertical'];
|
|
48
|
+
spacing?: StyleProps['spacing'];
|
|
49
|
+
offsetStart?: StyleProps['offsetStart'];
|
|
50
|
+
offsetEnd?: StyleProps['offsetEnd'];
|
|
51
|
+
offsetTop?: StyleProps['offsetTop'];
|
|
52
|
+
offsetBottom?: StyleProps['offsetBottom'];
|
|
53
|
+
offsetHorizontal?: StyleProps['offsetHorizontal'];
|
|
54
|
+
offsetVertical?: StyleProps['offsetVertical'];
|
|
55
|
+
offset?: StyleProps['offset'];
|
|
56
|
+
/** Icon color override */
|
|
57
|
+
dangerouslySetColor?: string;
|
|
58
|
+
/** Icon font size override */
|
|
59
|
+
dangerouslySetSize?: number;
|
|
60
|
+
/** Optional style override */
|
|
61
|
+
style?: StyleProp<TextStyle>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* **🎨 An icon component using UDS icon fonts**
|
|
65
|
+
*
|
|
66
|
+
* @description
|
|
67
|
+
* Renders icons from the UDS icon library. Supports multiple variants
|
|
68
|
+
* (outline, fill, multicolor) and sizes.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```tsx
|
|
72
|
+
* import { Icon } from '@yahoo/uds-mobile';
|
|
73
|
+
*
|
|
74
|
+
* <Icon name="ChevronRight" size="md" color="primary" />
|
|
75
|
+
* <Icon name="Star" variant="fill" color="accent" />
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* @usage
|
|
79
|
+
* - Use name prop to specify the icon
|
|
80
|
+
* - Use variant prop for outline/fill/multicolor
|
|
81
|
+
* - Use size prop for icon size (xs, sm, md, lg, xl)
|
|
82
|
+
*
|
|
83
|
+
* @see The {@link https://uds.build/docs/components/icon Icon Docs} for more info
|
|
84
|
+
*/
|
|
85
|
+
declare const Icon: react19.NamedExoticComponent<IconProps>;
|
|
86
|
+
declare const iconNames: readonly ["A11Y", "Accessible", "AccountRecover", "AccountRefresh", "AccountSwitchAlt", "AccountSwitcher", "AcousticGuitar", "Add", "AddBell", "AddCalendar", "AddCheckCircle", "AddCircle", "AddContactCard", "AddDocument", "AddFace", "AddFolder", "AddPaperPlane", "AddPeople", "AddQuestion", "AddSearch", "AddSquare", "AffiliateLink", "AirQuality", "Airplane", "AirplaneLanding", "AirplaneTakeOff", "AngledSquareOnSquare", "AnyFile", "AppSwitcher", "AquariusAstrology", "Archive", "AriesAstrology", "ArrowDown", "ArrowDownCircle", "ArrowLeft", "ArrowLineDown", "ArrowLineUp", "ArrowRight", "ArrowUp", "Article", "ArtisticGymnastics", "Ascender", "AudioFile", "Authenticator", "AutoDownload", "AutoSaveOffline", "AutoSaveSync", "AutoSaveUpload", "AutoSaveUploadFail", "AutoSaved", "BabyBottle", "BackTimeTen", "Badge", "Balance", "BallInWater", "Barometer", "BaseBallBat", "Baseball", "Basketball", "BasketballHoop", "BeachUmbrella", "Bed", "Bell", "Below", "BigDownArrow", "BigLeftArrow", "BigRightArrow", "BigRightStraightArrow", "BigUpArrow", "Bike", "Bingo", "Binoculars", "BlackJack", "Bold", "Bolt", "Bookmark", "BottomLine", "BowAndArrow", "BoxCircle", "BoxFront", "BoxOnBox", "BoxingGlove", "Browser", "BubbleZone", "Building", "BulletPointContainer", "BulletPoints", "Bullseye", "BusFront", "BusinessBag", "Cake", "Calendar", "CalendarClock", "CalendarConfirm", "CalendarFile", "CalendarICSFile", "CalendarRightArrow", "Camera", "CancerAstrology", "Canoe", "CapriconAstrology", "Car", "CardsCheck", "Cash", "CelebrityStar", "CenterAlignment", "ChatAi", "Check", "CheckBookmark", "CheckBox", "CheckCircle", "CheckDocuments", "CheckEnvelope", "CheckPeople", "CheckSpeechBubble", "CheckVoteBallot", "Checklist", "ChevronDown", "ChevronLeft", "ChevronLeftPeople", "ChevronRight", "ChevronRightPeople", "ChevronUp", "Circle", "ClearText", "Clipboard", "Clock", "Clone", "ClosedCaption", "Cloud", "CloudDay", "CloudNight", "Cocktails", "Coffee", "CoffeeTakeout", "Cog", "Coin", "CollapseColumn", "Command", "Compass", "ComputerChip", "Connection", "ConnectionScreen", "ContactBook", "ContactCard", "Convert", "ConvertAlt", "ConvertLeft", "ConvertRight", "Cookies", "Coupon", "CreditCard", "CreditCardPayment", "CrescentMoon", "Cricket", "Cross", "CrossCircle", "CrossEnvelope", "CrossPeople", "CrossShield", "Crossword", "Cycling", "DOCFile", "DailyFantasy", "DaisyFlower", "Dandelion", "DataBook", "DataCloud", "DataSilo", "DataStorage", "Debug", "DeleteTab", "DeliveryPackage", "Dense", "DenyCircle", "Descender", "Desktop", "DiagonalKey", "DiagonalLeftDown", "DiagonalLeftUp", "DiagonalRightDown", "DiagonalRightUp", "Diamond", "Dice", "Dining", "Direction", "DiscoBall", "Document", "DocumentImageRectangle", "DocumentImageSquare", "DocumentRectangle", "DollarCircleArrows", "DotEnvelope", "DotTwoRings", "DoubleBigLeftArrow", "DoubleChevronLeft", "DoubleChevronRight", "DownCurveArrow", "Download", "DownloadCircle", "DownloadComplete", "DownloadInProgressCircle", "DraftDocument", "DragVertical", "Dusk", "Easel", "Eclipse", "Edit", "EmailVerification", "Emails", "Embed", "EntertainmentTv", "Envelope", "Error", "ExpandArrowLeft", "ExpandArrowRight", "ExpandColumn", "Eye", "EyeSearch", "EyeShut", "FaceID", "FallLeaf", "Family", "FastForward", "FencingEpee", "FilmReel", "FilmRoll", "FingerPointLeftArrow", "FingerPointRightArrow", "FingerPrint", "Fire", "FirstAidKit", "FirstQuarter", "FiveCircles", "Flag", "FlameTorch", "Fog", "FogDay", "Folder", "Font", "Football", "FootballHelmet", "ForestTree", "FourBoxes", "FourCorners", "FourCornersMusicNote", "FourLinesSpread", "FourThreeRatio", "FullMoon", "GIF", "GeminiAstrology", "GiftBox", "GolfTee", "GraduationHat", "Graph", "Gymnastics", "HalfStar", "HalfSun", "HappyFace", "HazeDay", "HazeNight", "Heading2", "Heading3", "Headline1", "HeadlineDocumentSquare", "Headphone", "HeadphonesMic", "Heart", "HeartArrow", "HeartPulse", "HeavyRain", "HeavyRainDay", "HeavyRainLightning", "HeavyRainLightningDay", "HeavyRainLightningNight", "HeavyRainNight", "Help", "Highlighter", "History", "HockeyWithPuck", "Home", "HorseHeadBridle", "HotTub", "Hurricane", "Ice", "Id", "Image", "ImageFile", "ImageGallery", "Inbox", "InboxDownArrow", "InboxUpArrow", "IndentRight", "Infinity", "Info", "InstitutionalWesternBank", "Italics", "JoyfulFace", "JudoUniform", "Keyboard", "KeylineShapes", "Kick", "KnightChessPiece", "Laptop", "LaptopWithPhone", "LayoutBottom", "LayoutDefault", "LayoutFourColumn", "LayoutGrid", "LayoutPerfectGrid", "LayoutRight", "LayoutThreeColumn", "LayoutThreeRows", "LayoutTwoColumn", "LeftAlign", "LeftCurveArrow", "LeftPageArrow", "LeoAstrology", "Letter", "LetterColor", "LetterSize", "LibraAstrology", "LifeRing", "Lightbulb", "Lightning", "LightningDay", "LightningNight", "Link", "LiquidDrop", "Live", "Livestream", "Location", "LocationCircle", "LocationMap", "Lock", "LogIn", "LogOut", "Lollipop", "LoveEnvelope", "LoyaltyCard", "MagicWand", "MagnifyingGlass", "Mahjong", "MakeupBeauty", "Mannequin", "Medal", "MedicineBottle", "MedicinePill", "Megaphone", "Microphone", "Microscope", "Minus", "MinusBox", "MinusCircle", "MinusPeople", "MinusSearch", "MmaGlove", "MmaRing", "MobileNumber", "MobilePhone", "More", "MoreVertical", "NeutralFace", "NewMoon", "Newsletter", "Night", "NineSixteenRatio", "NoBell", "NoConnectionScreen", "NoEye", "NoHeart", "NoImage", "NoPeople", "NoShield", "NoSmoking", "NoSquare", "NoStar", "NoVideoCamera", "NoWifi", "NotificationBell", "Null", "NumberedList", "OnTop", "OneOneRatio", "OpenBook", "OpenEnvelope", "OrderedList", "OutdentLeft", "PDF", "PPT", "PaperPlane", "PaperPlaneDiagonal", "Paperclip", "Paragraph", "ParagraphLeftIdent", "ParagraphRightIdent", "Parking", "ParkingSquare", "PassKey", "Password", "Pause", "Payments", "Payphone", "PayphoneFace", "Pencil", "PencilLines", "People", "Person", "PersonClimbing", "PersonShield", "Pets", "Phone", "PieChart", "Pin", "PingPong", "PiscesAstrology", "PlainText", "Play", "PlayCircle", "Pool", "PowerSwitch", "Preferences", "PreferencesAlt", "Printer", "Priority", "Profile", "Progress", "ProgressWithCheck", "Pulse", "PuzzlePiece", "QrCode", "QuestionBubble", "QuoteCircle", "QuoteSquare", "RAW", "RTF", "RTFOff", "RacingFlag", "Radar", "RadioCircle", "RainDay", "RainNight", "Receipt", "Receipts", "RedoPencil", "Refresh", "Restaurant", "RetailTag", "RightAlign", "RightCurveArrow", "RightPageArrow", "RobotHead", "Running", "SadFace", "SadderFace", "SagittariusAstrology", "SailBoat", "Satellite", "ScaleDown", "ScanQrCode", "Scissors", "ScorpioAstrology", "SearchConfirm", "SearchEnvelope", "SearchWorldWithLines", "SecurityKey", "SendToSelf", "Server", "SettingsAlt", "SettingsCogPeople", "Shapes", "Share", "Shield", "ShieldCheck", "ShieldSlash", "ShockedFace", "ShoppingBag", "ShoppingBasket", "ShoppingCart", "Shuttlecock", "SixteenNineRatio", "Skateboard", "SkipTimeTen", "Skull", "Slideshow", "SmallSquareInsideBigSquare", "SmartWatch", "SmileFace", "SmileFaceLife", "Sms", "SmsVerificationCode", "Sneaker", "SneakerAlt", "Snippet", "Snow", "SnowDay", "SnowNight", "Snowflake", "Soccer", "Solitaire", "SoundLow", "SoundOff", "SoundOn", "Spa", "Sparkle", "SparkleFootballBall", "SparkleTennisBall", "SpecialCharacter", "SpeechBubble", "SpeechBubbleStar", "SportsBook", "SportsSparkle", "SprinkleDay", "SprinkleNight", "Square", "Stadium", "Star", "StarArticle", "StarMedal", "StarTrophy", "StatePrivacyControls", "StockTrends", "Stopwatch", "Store", "Strikethrough", "Sun", "Sunrise", "Sunset", "SurfboardOnSand", "Swimming", "Sync", "Tab", "Tablet", "TaurusAstrology", "TechnicalRoute", "Television", "TennisBall", "TennisRacketBall", "ThirdQuarter", "ThreeCircles", "ThreeFourRatio", "ThreeLines", "ThreeLinesSpread", "ThumbsDown", "ThumbsUp", "Thumbtack", "ThumbtackDiagonal", "TimePaperPlane", "Tornado", "Trading", "TrafficSignRightTurn", "Trampoline", "Transactions", "Trash", "Trending", "TrendingCircle", "Trophy", "TruckRight", "Tshirt", "Tsunami", "Tub", "TwoArrowsDiagonalInwards", "TwoArrowsDiagonalOutwards", "TwoCorners", "TwoHorizontalRectangles", "TwoLinesContainer", "TwoMasks", "TwoRectangles", "TwoSparkles", "TwoSquares", "TwoThirdsColumn", "Underline", "Unlock", "UnorderedList", "UpCurveArrow", "UpDownChevron", "UpDownShortArrows", "UpFolder", "Upload", "Verification", "VideoCamera", "VideoFile", "VirgoAstrology", "Virus", "Volleyball", "Walking", "Wallet", "WaningCrescent", "WaningGibbous", "Warning", "WaxingCrescent", "WaxingGibbous", "Web", "Weights", "Wifi", "Wind", "WindCloud", "WindCloudDay", "WindCloudNight", "Wine", "WorldWithLines", "Wrench", "WrestlingHeadGear", "WritingAi", "XLSFile", "YEP", "ZIP"];
|
|
87
|
+
declare const multicolorIconNames: readonly ["Cloud", "CloudDay", "CloudNight", "Cold", "Dreary", "Dusk", "Eclipse", "FirstQuarter", "Fog", "FogDay", "FogNight", "FullMoon", "HalfSun", "HazeDay", "HazeNight", "HeavyRain", "HeavyRainDay", "HeavyRainLightning", "HeavyRainLightningDay", "HeavyRainLightningNight", "HeavyRainNight", "Hot", "Hurricane", "Ice", "IntermittentCloudsNight", "IntermittentCloudsSunny", "Lightning", "LightningDay", "LightningNight", "MostlyNightFlurries", "Night", "PartlyCloudyNight", "PartlyFlurries", "PartlyNightFlurries", "PartlySunny", "Rain", "RainDay", "RainNight", "Sleet", "Snow", "SnowDay", "Snowflake", "SprinkleDay", "SprinkleNight", "Sun", "Sunrise", "Sunset", "ThirdQuarter", "Tornado", "WaningCrescent", "WaningGibbous", "WaxingCrescent", "WaxingGibbous", "Wind", "WindCloud", "WindCloudDay", "WindCloudNight"];
|
|
88
|
+
//#endregion
|
|
89
|
+
export { Icon, type IconName, type IconProps, iconNames, multicolorIconNames };
|
|
90
|
+
//# sourceMappingURL=Icon.d.cts.map
|