@yahoo/uds 3.125.0 → 3.126.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/dist/automated-config/dist/generated/autoVariants.cjs +35 -0
- package/dist/automated-config/dist/generated/autoVariants.d.cts +7 -0
- package/dist/automated-config/dist/generated/autoVariants.d.ts +7 -0
- package/dist/automated-config/dist/generated/autoVariants.js +35 -0
- package/dist/automated-config/dist/generated/generatedConfigs.cjs +1493 -0
- package/dist/automated-config/dist/generated/generatedConfigs.d.cts +222 -1
- package/dist/automated-config/dist/generated/generatedConfigs.d.ts +222 -1
- package/dist/automated-config/dist/generated/generatedConfigs.js +1493 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +314 -0
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +2 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.ts +2 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +314 -0
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
- package/dist/components/Banner/Banner.cjs +167 -0
- package/dist/components/Banner/Banner.d.cts +56 -0
- package/dist/components/Banner/Banner.d.ts +56 -0
- package/dist/components/Banner/Banner.js +165 -0
- package/dist/components/Banner/BannerContent.cjs +20 -0
- package/dist/components/Banner/BannerContent.d.cts +13 -0
- package/dist/components/Banner/BannerContent.d.ts +13 -0
- package/dist/components/Banner/BannerContent.js +18 -0
- package/dist/components/Banner/BannerDescription.cjs +47 -0
- package/dist/components/Banner/BannerDescription.d.cts +36 -0
- package/dist/components/Banner/BannerDescription.d.ts +36 -0
- package/dist/components/Banner/BannerDescription.js +45 -0
- package/dist/components/Banner/BannerTitle.cjs +42 -0
- package/dist/components/Banner/BannerTitle.d.cts +34 -0
- package/dist/components/Banner/BannerTitle.d.ts +34 -0
- package/dist/components/Banner/BannerTitle.js +40 -0
- package/dist/components/Banner/index.cjs +11 -0
- package/dist/components/Banner/index.d.cts +6 -0
- package/dist/components/Banner/index.d.ts +6 -0
- package/dist/components/Banner/index.js +7 -0
- package/dist/components/Banner/utils.cjs +56 -0
- package/dist/components/Banner/utils.d.cts +26 -0
- package/dist/components/Banner/utils.d.ts +26 -0
- package/dist/components/Banner/utils.js +52 -0
- package/dist/components/Divider/DividerCore.cjs +1 -1
- package/dist/components/Divider/DividerCore.js +1 -1
- package/dist/components/FormLabel.cjs +4 -2
- package/dist/components/FormLabel.d.cts +2 -17
- package/dist/components/FormLabel.d.ts +2 -17
- package/dist/components/FormLabel.js +4 -2
- package/dist/components/Image.cjs +4 -2
- package/dist/components/Image.d.cts +2 -61
- package/dist/components/Image.d.ts +2 -61
- package/dist/components/Image.js +4 -2
- package/dist/components/client/Avatar/AvatarIcon.cjs +2 -2
- package/dist/components/client/Avatar/AvatarIcon.js +2 -2
- package/dist/components/client/Avatar/AvatarImage.cjs +1 -0
- package/dist/components/client/Avatar/AvatarImage.js +1 -0
- package/dist/components/client/Avatar/AvatarText.cjs +1 -1
- package/dist/components/client/Avatar/AvatarText.js +1 -1
- package/dist/components/client/Badge.cjs +1 -1
- package/dist/components/client/Badge.js +1 -1
- package/dist/components/client/BottomSheet/BottomSheetHeader.cjs +1 -1
- package/dist/components/client/BottomSheet/BottomSheetHeader.js +1 -1
- package/dist/components/client/Button.cjs +1 -1
- package/dist/components/client/Button.js +1 -1
- package/dist/components/client/Checkbox.cjs +4 -3
- package/dist/components/client/Checkbox.js +4 -3
- package/dist/components/client/Chip/ChipBase.cjs +2 -2
- package/dist/components/client/Chip/ChipBase.js +2 -2
- package/dist/components/client/Chip/ChipDismissible.cjs +2 -2
- package/dist/components/client/Chip/ChipDismissible.js +2 -2
- package/dist/components/client/IconButton.cjs +1 -1
- package/dist/components/client/IconButton.js +1 -1
- package/dist/components/client/Input/Input.cjs +3 -2
- package/dist/components/client/Input/Input.js +3 -2
- package/dist/components/client/Input/InputHelpTextInternal.cjs +4 -3
- package/dist/components/client/Input/InputHelpTextInternal.d.cts +1 -14
- package/dist/components/client/Input/InputHelpTextInternal.d.ts +1 -14
- package/dist/components/client/Input/InputHelpTextInternal.js +5 -4
- package/dist/components/client/Menu/Menu.ItemBase.cjs +2 -2
- package/dist/components/client/Menu/Menu.ItemBase.js +2 -2
- package/dist/components/client/Menu/Menu.ItemCheckbox.cjs +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.js +1 -1
- package/dist/components/client/Popover/PopoverContent.cjs +3 -3
- package/dist/components/client/Popover/PopoverContent.js +3 -3
- package/dist/components/client/Radio/Radio.cjs +2 -1
- package/dist/components/client/Radio/Radio.js +2 -1
- package/dist/components/client/Switch.cjs +4 -4
- package/dist/components/client/Switch.js +4 -4
- package/dist/components/client/Toast/Toast.cjs +3 -3
- package/dist/components/client/Toast/Toast.js +3 -3
- package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +5 -5
- package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +5 -5
- package/dist/components/client/Tooltip/TooltipContent.cjs +2 -2
- package/dist/components/client/Tooltip/TooltipContent.js +2 -2
- package/dist/components/client/index.cjs +1 -1
- package/dist/components/client/index.js +1 -1
- package/dist/components/experimental/Spinner.cjs +1 -1
- package/dist/components/experimental/Spinner.js +1 -1
- package/dist/components/experimental/Table.cjs +1 -1
- package/dist/components/experimental/Table.js +1 -1
- package/dist/components/experimental/client/Accordion.cjs +4 -4
- package/dist/components/experimental/client/Accordion.js +4 -4
- package/dist/components/experimental/client/Modal.cjs +2 -2
- package/dist/components/experimental/client/Modal.js +2 -2
- package/dist/components/experimental/client/SegmentedControl.cjs +3 -3
- package/dist/components/experimental/client/SegmentedControl.d.cts +1 -2
- package/dist/components/experimental/client/SegmentedControl.js +3 -3
- package/dist/components/experimental/client/SwitchV2.cjs +1 -1
- package/dist/components/experimental/client/SwitchV2.js +1 -1
- package/dist/components/experimental/client/Tabs.cjs +2 -2
- package/dist/components/experimental/client/Tabs.js +2 -2
- package/dist/components/index.cjs +15 -3
- package/dist/components/index.d.cts +6 -1
- package/dist/components/index.d.ts +6 -1
- package/dist/components/index.js +12 -4
- package/dist/config/dist/index.cjs +381 -46
- package/dist/config/dist/index.js +381 -46
- package/dist/index.cjs +12 -3
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +9 -5
- package/dist/styles/styler.d.cts +100 -93
- package/dist/styles/styler.d.ts +100 -93
- package/dist/styles/variants.d.cts +45 -0
- package/dist/styles/variants.d.ts +45 -0
- package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.cjs +35 -0
- package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.js +35 -0
- package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.cjs +1493 -0
- package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.js +1493 -1
- package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.js.map +1 -1
- package/dist/tailwind/dist/config/dist/index.cjs +381 -46
- package/dist/tailwind/dist/config/dist/index.js +381 -46
- package/dist/tailwind/dist/config/dist/index.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/components.cjs +1 -0
- package/dist/tailwind/dist/tailwind/plugins/components.js +2 -1
- package/dist/tailwind/dist/tailwind/plugins/components.js.map +1 -1
- package/dist/tailwind/dist/types/dist/index.d.cts.map +1 -1
- package/dist/tailwind/dist/types/dist/index.d.ts.map +1 -1
- package/dist/tokens/automation/configs/index.cjs +1 -0
- package/dist/tokens/automation/configs/index.d.cts +2 -2
- package/dist/tokens/automation/configs/index.d.ts +2 -2
- package/dist/tokens/automation/configs/index.js +2 -2
- package/dist/tokens/automation/index.cjs +1 -0
- package/dist/tokens/automation/index.d.cts +2 -2
- package/dist/tokens/automation/index.d.ts +2 -2
- package/dist/tokens/automation/index.js +2 -2
- package/dist/tokens/index.cjs +1 -0
- package/dist/tokens/index.d.cts +3 -3
- package/dist/tokens/index.d.ts +3 -3
- package/dist/tokens/index.js +2 -2
- package/dist/tokens/types.d.cts +2 -2
- package/dist/tokens/types.d.ts +2 -2
- package/dist/types/dist/index.d.cts +19 -1
- package/dist/types/dist/index.d.ts +19 -1
- package/dist/uds/generated/componentData.cjs +1486 -1338
- package/dist/uds/generated/componentData.js +1465 -1341
- package/dist/uds/generated/tailwindPurge.cjs +28 -1
- package/dist/uds/generated/tailwindPurge.js +28 -1
- package/generated/componentData.json +1916 -1765
- package/generated/tailwindPurge.ts +4 -4
- package/package.json +1 -1
- package/dist/uds/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +0 -2
- package/dist/uds/dist/automated-config/dist/properties.d.cts +0 -5
- package/dist/uds/dist/automated-config/dist/types/ComponentConfig.d.cts +0 -3
- package/dist/uds/dist/automated-config/dist/types/ComponentStyles.d.cts +0 -2
- package/dist/uds/dist/automated-config/dist/types/ConfigSchema.d.cts +0 -2
- package/dist/uds/dist/automated-config/dist/utils/buildConfigSchema.d.cts +0 -7
- package/dist/uds/dist/automated-config/dist/utils/coalesceConfigVariant.d.cts +0 -2
- package/dist/uds/dist/automated-config/dist/utils/defaults.d.cts +0 -2
- package/dist/uds/dist/automated-config/dist/utils/getConfigVariantComponentStatesMatrix.d.cts +0 -2
- package/dist/uds/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +0 -3
- package/dist/uds/dist/automated-config/dist/utils/getConfigVariantPseudoStates.d.cts +0 -3
- package/dist/uds/dist/automated-config/dist/utils/getConfigVariants.d.cts +0 -2
- package/dist/uds/dist/automated-config/dist/utils/index.d.cts +0 -12
- package/dist/uds/dist/automated-config/dist/utils/subcomponents.d.cts +0 -2
- package/dist/uds/dist/components/Box.d.cts +0 -4
- package/dist/uds/dist/components/Divider/Divider.d.cts +0 -3
- package/dist/uds/dist/components/Divider/DividerCore.d.cts +0 -5
- package/dist/uds/dist/components/Divider/DividerInternal.d.cts +0 -5
- package/dist/uds/dist/components/Divider/index.d.cts +0 -2
- package/dist/uds/dist/components/FormLabel.d.cts +0 -4
- package/dist/uds/dist/components/HStack.d.cts +0 -5
- package/dist/uds/dist/components/Icon.d.cts +0 -4
- package/dist/uds/dist/components/Image.d.cts +0 -3
- package/dist/uds/dist/components/Link.d.cts +0 -4
- package/dist/uds/dist/components/Scrim.d.cts +0 -3
- package/dist/uds/dist/components/Text.d.cts +0 -4
- package/dist/uds/dist/components/VStack.d.cts +0 -5
- package/dist/uds/dist/components/client/Avatar/Avatar.d.cts +0 -5
- package/dist/uds/dist/components/client/Avatar/AvatarIcon.d.cts +0 -7
- package/dist/uds/dist/components/client/Avatar/AvatarImage.d.cts +0 -9
- package/dist/uds/dist/components/client/Avatar/AvatarText.d.cts +0 -7
- package/dist/uds/dist/components/client/Avatar/index.d.cts +0 -7
- package/dist/uds/dist/components/client/Badge.d.cts +0 -6
- package/dist/uds/dist/components/client/BottomSheet/BottomSheet.d.cts +0 -7
- package/dist/uds/dist/components/client/BottomSheet/BottomSheetContent.d.cts +0 -4
- package/dist/uds/dist/components/client/BottomSheet/BottomSheetHeader.d.cts +0 -4
- package/dist/uds/dist/components/client/BottomSheet/BottomSheetProvider.d.cts +0 -5
- package/dist/uds/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.cts +0 -5
- package/dist/uds/dist/components/client/BottomSheet/index.d.cts +0 -9
- package/dist/uds/dist/components/client/BottomSheet/useBottomSheetStore.d.cts +0 -4
- package/dist/uds/dist/components/client/Button.d.cts +0 -7
- package/dist/uds/dist/components/client/Checkbox.d.cts +0 -6
- package/dist/uds/dist/components/client/Chip/Chip.d.cts +0 -7
- package/dist/uds/dist/components/client/Chip/ChipBase.d.cts +0 -8
- package/dist/uds/dist/components/client/Chip/ChipButton.d.cts +0 -7
- package/dist/uds/dist/components/client/Chip/ChipDismissible.d.cts +0 -7
- package/dist/uds/dist/components/client/Chip/ChipLink.d.cts +0 -7
- package/dist/uds/dist/components/client/Chip/ChipToggle.d.cts +0 -7
- package/dist/uds/dist/components/client/Chip/index.d.cts +0 -8
- package/dist/uds/dist/components/client/IconButton.d.cts +0 -7
- package/dist/uds/dist/components/client/Input/Input.d.cts +0 -9
- package/dist/uds/dist/components/client/Input/InputHelpText.d.cts +0 -4
- package/dist/uds/dist/components/client/Input/InputHelpTextInternal.d.cts +0 -8
- package/dist/uds/dist/components/client/Input/index.d.cts +0 -5
- package/dist/uds/dist/components/client/Menu/Menu.Content.d.cts +0 -8
- package/dist/uds/dist/components/client/Menu/Menu.Divider.d.cts +0 -5
- package/dist/uds/dist/components/client/Menu/Menu.Item.d.cts +0 -8
- package/dist/uds/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +0 -8
- package/dist/uds/dist/components/client/Menu/Menu.Provider.d.cts +0 -5
- package/dist/uds/dist/components/client/Menu/Menu.Trigger.d.cts +0 -7
- package/dist/uds/dist/components/client/Menu/Menu.d.cts +0 -4
- package/dist/uds/dist/components/client/Menu/Menu.index.d.cts +0 -11
- package/dist/uds/dist/components/client/Menu/index.d.cts +0 -11
- package/dist/uds/dist/components/client/Popover/Popover.d.cts +0 -4
- package/dist/uds/dist/components/client/Popover/PopoverContent.d.cts +0 -7
- package/dist/uds/dist/components/client/Popover/PopoverTrigger.d.cts +0 -4
- package/dist/uds/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +0 -6
- package/dist/uds/dist/components/client/Popover/index.d.cts +0 -8
- package/dist/uds/dist/components/client/Pressable.d.cts +0 -6
- package/dist/uds/dist/components/client/Radio/Radio.d.cts +0 -6
- package/dist/uds/dist/components/client/Radio/RadioGroupProvider.d.cts +0 -6
- package/dist/uds/dist/components/client/Radio/index.d.cts +0 -5
- package/dist/uds/dist/components/client/SpringMotionConfig.d.cts +0 -7
- package/dist/uds/dist/components/client/Switch.d.cts +0 -6
- package/dist/uds/dist/components/client/Toast/Toast.d.cts +0 -10
- package/dist/uds/dist/components/client/Toast/ToastContainer.d.cts +0 -8
- package/dist/uds/dist/components/client/Toast/ToastPortal.d.cts +0 -5
- package/dist/uds/dist/components/client/Toast/UDSToastConfigProvider.d.cts +0 -7
- package/dist/uds/dist/components/client/Toast/createToast.d.cts +0 -8
- package/dist/uds/dist/components/client/Toast/index.d.cts +0 -8
- package/dist/uds/dist/components/client/Tooltip/Tooltip.d.cts +0 -4
- package/dist/uds/dist/components/client/Tooltip/TooltipContent.d.cts +0 -5
- package/dist/uds/dist/components/client/Tooltip/TooltipTrigger.d.cts +0 -4
- package/dist/uds/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.cts +0 -7
- package/dist/uds/dist/components/client/Tooltip/index.d.cts +0 -8
- package/dist/uds/dist/components/client/index.d.cts +0 -61
- package/dist/uds/dist/components/client/providers/UDSBreakpointsConfigProvider.d.cts +0 -6
- package/dist/uds/dist/components/client/providers/UDSConfigProvider.d.cts +0 -5
- package/dist/uds/dist/components/index.d.cts +0 -61
- package/dist/uds/dist/config/dist/index.d.cts +0 -4
- package/dist/uds/dist/css-tokens/dist/index.d.cts +0 -2
- package/dist/uds/dist/fixtures/dist/index.d.cts +0 -2
- package/dist/uds/dist/fonts/dist/index.d.cts +0 -2
- package/dist/uds/dist/index.d.cts +0 -93
- package/dist/uds/dist/modes/dist/index.d.cts +0 -2
- package/dist/uds/dist/runtime/bottomSheetConfig.d.cts +0 -3
- package/dist/uds/dist/runtime/breakpointsConfig.d.cts +0 -4
- package/dist/uds/dist/runtime/index.d.cts +0 -7
- package/dist/uds/dist/runtime/popoverConfig.d.cts +0 -5
- package/dist/uds/dist/runtime/toastConfig.d.cts +0 -4
- package/dist/uds/dist/runtime/tooltipConfig.d.cts +0 -5
- package/dist/uds/dist/runtime/udsConfig.d.cts +0 -8
- package/dist/uds/dist/styles/styler.d.cts +0 -2
- package/dist/uds/dist/styles/stylerTypes.d.cts +0 -3
- package/dist/uds/dist/tailwind/dist/config/dist/index.d.cts +0 -2
- package/dist/uds/dist/tailwind/dist/index.d.cts +0 -3
- package/dist/uds/dist/tailwind/dist/tailwind/components/getResponsiveTextStyles.d.cts +0 -2
- package/dist/uds/dist/tailwind/dist/utils/parseTokens.d.cts +0 -2
- package/dist/uds/dist/tokens/automation/index.d.cts +0 -10
- package/dist/uds/dist/tokens/configs/shadow.d.cts +0 -3
- package/dist/uds/dist/tokens/consts/cssTokens.d.cts +0 -2
- package/dist/uds/dist/tokens/consts/defaultModes.d.cts +0 -2
- package/dist/uds/dist/tokens/consts/fontDeclarationsMap.d.cts +0 -2
- package/dist/uds/dist/tokens/index.d.cts +0 -28
- package/dist/uds/dist/tokens/parseButtonVariants.d.cts +0 -3
- package/dist/uds/dist/tokens/types.d.cts +0 -9
- package/dist/uds/dist/tokens/utils/getFontUrls.d.cts +0 -4
- package/dist/uds/dist/tokens/utils/spectrum.d.cts +0 -3
- package/dist/uds/dist/types/dist/index.d.cts +0 -11
- package/dist/uds/dist/types.d.cts +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { ImagePropsWithImgProps } from "../types/dist/index.cjs";
|
|
3
3
|
import "../tokens/index.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/Image.d.ts
|
|
7
7
|
/**
|
|
@@ -32,65 +32,6 @@ type ImageProps = ImagePropsWithImgProps;
|
|
|
32
32
|
*
|
|
33
33
|
* @related [Box](https://uds.build/docs/components/box)
|
|
34
34
|
*/
|
|
35
|
-
declare
|
|
36
|
-
width: imageWidth,
|
|
37
|
-
height: imageHeight,
|
|
38
|
-
src,
|
|
39
|
-
alt,
|
|
40
|
-
contentFit,
|
|
41
|
-
backgroundColor,
|
|
42
|
-
borderRadius,
|
|
43
|
-
borderTopStartRadius,
|
|
44
|
-
borderTopEndRadius,
|
|
45
|
-
borderBottomStartRadius,
|
|
46
|
-
borderBottomEndRadius,
|
|
47
|
-
borderColor,
|
|
48
|
-
borderStartColor,
|
|
49
|
-
borderEndColor,
|
|
50
|
-
borderTopColor,
|
|
51
|
-
borderBottomColor,
|
|
52
|
-
borderWidth,
|
|
53
|
-
borderVerticalWidth,
|
|
54
|
-
borderHorizontalWidth,
|
|
55
|
-
borderStartWidth,
|
|
56
|
-
borderEndWidth,
|
|
57
|
-
borderTopWidth,
|
|
58
|
-
borderBottomWidth,
|
|
59
|
-
alignContent,
|
|
60
|
-
alignItems,
|
|
61
|
-
alignSelf,
|
|
62
|
-
flex,
|
|
63
|
-
flexDirection,
|
|
64
|
-
flexGrow,
|
|
65
|
-
flexShrink,
|
|
66
|
-
flexWrap,
|
|
67
|
-
justifyContent,
|
|
68
|
-
flexBasis,
|
|
69
|
-
display,
|
|
70
|
-
overflow,
|
|
71
|
-
overflowX,
|
|
72
|
-
overflowY,
|
|
73
|
-
position,
|
|
74
|
-
spacing,
|
|
75
|
-
spacingHorizontal,
|
|
76
|
-
spacingVertical,
|
|
77
|
-
spacingBottom,
|
|
78
|
-
spacingEnd,
|
|
79
|
-
spacingStart,
|
|
80
|
-
spacingTop,
|
|
81
|
-
offset,
|
|
82
|
-
offsetVertical,
|
|
83
|
-
offsetHorizontal,
|
|
84
|
-
offsetBottom,
|
|
85
|
-
offsetEnd,
|
|
86
|
-
offsetStart,
|
|
87
|
-
offsetTop,
|
|
88
|
-
columnGap,
|
|
89
|
-
rowGap,
|
|
90
|
-
...props
|
|
91
|
-
}: ImageProps): react_jsx_runtime0.JSX.Element;
|
|
92
|
-
declare namespace Image {
|
|
93
|
-
var displayName: string;
|
|
94
|
-
}
|
|
35
|
+
declare const Image: react.ForwardRefExoticComponent<ImagePropsWithImgProps & react.RefAttributes<HTMLImageElement>>;
|
|
95
36
|
//#endregion
|
|
96
37
|
export { Image, type ImageProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { ImagePropsWithImgProps } from "../types/dist/index.js";
|
|
3
3
|
import "../tokens/index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/Image.d.ts
|
|
7
7
|
/**
|
|
@@ -32,65 +32,6 @@ type ImageProps = ImagePropsWithImgProps;
|
|
|
32
32
|
*
|
|
33
33
|
* @related [Box](https://uds.build/docs/components/box)
|
|
34
34
|
*/
|
|
35
|
-
declare
|
|
36
|
-
width: imageWidth,
|
|
37
|
-
height: imageHeight,
|
|
38
|
-
src,
|
|
39
|
-
alt,
|
|
40
|
-
contentFit,
|
|
41
|
-
backgroundColor,
|
|
42
|
-
borderRadius,
|
|
43
|
-
borderTopStartRadius,
|
|
44
|
-
borderTopEndRadius,
|
|
45
|
-
borderBottomStartRadius,
|
|
46
|
-
borderBottomEndRadius,
|
|
47
|
-
borderColor,
|
|
48
|
-
borderStartColor,
|
|
49
|
-
borderEndColor,
|
|
50
|
-
borderTopColor,
|
|
51
|
-
borderBottomColor,
|
|
52
|
-
borderWidth,
|
|
53
|
-
borderVerticalWidth,
|
|
54
|
-
borderHorizontalWidth,
|
|
55
|
-
borderStartWidth,
|
|
56
|
-
borderEndWidth,
|
|
57
|
-
borderTopWidth,
|
|
58
|
-
borderBottomWidth,
|
|
59
|
-
alignContent,
|
|
60
|
-
alignItems,
|
|
61
|
-
alignSelf,
|
|
62
|
-
flex,
|
|
63
|
-
flexDirection,
|
|
64
|
-
flexGrow,
|
|
65
|
-
flexShrink,
|
|
66
|
-
flexWrap,
|
|
67
|
-
justifyContent,
|
|
68
|
-
flexBasis,
|
|
69
|
-
display,
|
|
70
|
-
overflow,
|
|
71
|
-
overflowX,
|
|
72
|
-
overflowY,
|
|
73
|
-
position,
|
|
74
|
-
spacing,
|
|
75
|
-
spacingHorizontal,
|
|
76
|
-
spacingVertical,
|
|
77
|
-
spacingBottom,
|
|
78
|
-
spacingEnd,
|
|
79
|
-
spacingStart,
|
|
80
|
-
spacingTop,
|
|
81
|
-
offset,
|
|
82
|
-
offsetVertical,
|
|
83
|
-
offsetHorizontal,
|
|
84
|
-
offsetBottom,
|
|
85
|
-
offsetEnd,
|
|
86
|
-
offsetStart,
|
|
87
|
-
offsetTop,
|
|
88
|
-
columnGap,
|
|
89
|
-
rowGap,
|
|
90
|
-
...props
|
|
91
|
-
}: ImageProps): react_jsx_runtime0.JSX.Element;
|
|
92
|
-
declare namespace Image {
|
|
93
|
-
var displayName: string;
|
|
94
|
-
}
|
|
35
|
+
declare const Image: react.ForwardRefExoticComponent<ImagePropsWithImgProps & react.RefAttributes<HTMLImageElement>>;
|
|
95
36
|
//#endregion
|
|
96
37
|
export { Image, type ImageProps };
|
package/dist/components/Image.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
import { getStyles } from "../styles/styler.js";
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
|
|
5
6
|
//#region src/components/Image.tsx
|
|
@@ -26,8 +27,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
26
27
|
*
|
|
27
28
|
* @related [Box](https://uds.build/docs/components/box)
|
|
28
29
|
*/
|
|
29
|
-
function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display, overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, ...props }) {
|
|
30
|
+
const Image = forwardRef(function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display, overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, ...props }, ref) {
|
|
30
31
|
return /* @__PURE__ */ jsx("img", {
|
|
32
|
+
ref,
|
|
31
33
|
src,
|
|
32
34
|
alt,
|
|
33
35
|
className: getStyles({
|
|
@@ -88,7 +90,7 @@ function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, b
|
|
|
88
90
|
},
|
|
89
91
|
...props
|
|
90
92
|
});
|
|
91
|
-
}
|
|
93
|
+
});
|
|
92
94
|
Image.displayName = "Image";
|
|
93
95
|
|
|
94
96
|
//#endregion
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
5
|
const require_styles_styler = require('../../../styles/styler.cjs');
|
|
6
|
-
const require_components_Box = require('../../Box.cjs');
|
|
7
6
|
const require_components_IconSlot = require('../../IconSlot.cjs');
|
|
7
|
+
const require_components_Box = require('../../Box.cjs');
|
|
8
8
|
const require_components_client_Avatar_utils = require('./utils.cjs');
|
|
9
|
+
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
9
10
|
let react = require("react");
|
|
10
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
-
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
12
12
|
|
|
13
13
|
//#region src/components/client/Avatar/AvatarIcon.tsx
|
|
14
14
|
/** Maps avatar variant to icon */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
"use client";
|
|
3
3
|
import { cx, getStyles } from "../../../styles/styler.js";
|
|
4
|
-
import { Box } from "../../Box.js";
|
|
5
4
|
import { IconSlot } from "../../IconSlot.js";
|
|
5
|
+
import { Box } from "../../Box.js";
|
|
6
6
|
import { DEFAULT_AVATAR_SIZE, DEFAULT_AVATAR_VARIANT, buildAvatarRootClasses, buildInlineSizeStyles } from "./utils.js";
|
|
7
|
+
import { Building, Person } from "@yahoo/uds-icons";
|
|
7
8
|
import { forwardRef, useMemo } from "react";
|
|
8
9
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
import { Building, Person } from "@yahoo/uds-icons";
|
|
10
10
|
|
|
11
11
|
//#region src/components/client/Avatar/AvatarIcon.tsx
|
|
12
12
|
/** Maps avatar variant to icon */
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
5
|
const require_styles_styler = require('../../../styles/styler.cjs');
|
|
6
|
-
const require_components_Box = require('../../Box.cjs');
|
|
7
6
|
const require_components_Text = require('../../Text.cjs');
|
|
7
|
+
const require_components_Box = require('../../Box.cjs');
|
|
8
8
|
const require_components_client_Avatar_utils = require('./utils.cjs');
|
|
9
9
|
let react = require("react");
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
"use client";
|
|
3
3
|
import { cx } from "../../../styles/styler.js";
|
|
4
|
-
import { Box } from "../../Box.js";
|
|
5
4
|
import { Text } from "../../Text.js";
|
|
5
|
+
import { Box } from "../../Box.js";
|
|
6
6
|
import { DEFAULT_AVATAR_SIZE, DEFAULT_AVATAR_VARIANT, buildAvatarRootClasses, buildInlineSizeStyles, generateAvatarAbbreviation } from "./utils.js";
|
|
7
7
|
import { forwardRef, useMemo } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
5
5
|
const require_styles_styler = require('../../styles/styler.cjs');
|
|
6
|
-
const require_components_HStack = require('../HStack.cjs');
|
|
7
6
|
const require_components_IconSlot = require('../IconSlot.cjs');
|
|
7
|
+
const require_components_HStack = require('../HStack.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
9
|
react = require_runtime.__toESM(react);
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
"use client";
|
|
3
3
|
import { cx, getStyles } from "../../styles/styler.js";
|
|
4
|
-
import { HStack } from "../HStack.js";
|
|
5
4
|
import { IconSlot } from "../IconSlot.js";
|
|
5
|
+
import { HStack } from "../HStack.js";
|
|
6
6
|
import React, { forwardRef, useMemo } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
5
|
const require_styles_styler = require('../../../styles/styler.cjs');
|
|
6
|
-
const require_components_Box = require('../../Box.cjs');
|
|
7
6
|
const require_components_Text = require('../../Text.cjs');
|
|
7
|
+
const require_components_Box = require('../../Box.cjs');
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
|
|
10
10
|
//#region src/components/client/BottomSheet/BottomSheetHeader.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
"use client";
|
|
3
3
|
import { cx, getStyles } from "../../../styles/styler.js";
|
|
4
|
-
import { Box } from "../../Box.js";
|
|
5
4
|
import { Text } from "../../Text.js";
|
|
5
|
+
import { Box } from "../../Box.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/client/BottomSheet/BottomSheetHeader.tsx
|
|
@@ -10,10 +10,10 @@ const require_components_IconSlot = require('../IconSlot.cjs');
|
|
|
10
10
|
const require_generateDefaultClassName = require('../../automated-config/dist/utils/generateDefaultClassName.cjs');
|
|
11
11
|
const require_components_client_buttonConstants = require('./buttonConstants.cjs');
|
|
12
12
|
const require_components_client_SpringMotionConfig = require('./SpringMotionConfig.cjs');
|
|
13
|
+
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
13
14
|
let react = require("react");
|
|
14
15
|
react = require_runtime.__toESM(react);
|
|
15
16
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
|
-
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
17
17
|
let motion_react = require("motion/react");
|
|
18
18
|
|
|
19
19
|
//#region src/components/client/Button.tsx
|
|
@@ -8,9 +8,9 @@ import { IconSlot } from "../IconSlot.js";
|
|
|
8
8
|
import { generateDefaultClassName } from "../../automated-config/dist/utils/generateDefaultClassName.js";
|
|
9
9
|
import { buttonIconSvgSize } from "./buttonConstants.js";
|
|
10
10
|
import { SpringMotionConfig } from "./SpringMotionConfig.js";
|
|
11
|
+
import { Progress } from "@yahoo/uds-icons";
|
|
11
12
|
import React, { cloneElement, forwardRef, isValidElement, useImperativeHandle, useMemo, useRef } from "react";
|
|
12
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Progress } from "@yahoo/uds-icons";
|
|
14
14
|
import { AnimatePresence, m, useReducedMotion } from "motion/react";
|
|
15
15
|
|
|
16
16
|
//#region src/components/client/Button.tsx
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
5
5
|
const require_styles_styler = require('../../styles/styler.cjs');
|
|
6
|
+
const require_components_Icon = require('../Icon.cjs');
|
|
6
7
|
const require_components_Box = require('../Box.cjs');
|
|
7
8
|
const require_components_FormLabel = require('../FormLabel.cjs');
|
|
8
|
-
const require_components_Icon = require('../Icon.cjs');
|
|
9
9
|
const require_components_client_SpringMotionConfig = require('./SpringMotionConfig.cjs');
|
|
10
|
+
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
10
11
|
let react = require("react");
|
|
11
12
|
react = require_runtime.__toESM(react);
|
|
12
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
|
-
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
14
14
|
let motion_react = require("motion/react");
|
|
15
15
|
|
|
16
16
|
//#region src/components/client/Checkbox.tsx
|
|
@@ -58,7 +58,7 @@ const pressTransition = {
|
|
|
58
58
|
*
|
|
59
59
|
* @related [Radio](https://uds.build/docs/components/radio), [Switch](https://uds.build/docs/components/switch), [Input](https://uds.build/docs/components/input).
|
|
60
60
|
**/
|
|
61
|
-
const Checkbox = (0, react.forwardRef)(function Checkbox({ id, checked: checkedProp, defaultChecked, onChange, label, labelPosition = "start", variant: variantProp = "primary", size = "md", reduceMotion: forceReduceMotion, disabled, required, hasError, className, layerClassNames, ...checkboxProps }, parentRef) {
|
|
61
|
+
const Checkbox = (0, react.forwardRef)(function Checkbox({ id, checked: checkedProp, defaultChecked, onChange, label, labelPosition = "start", variant: variantProp = "primary", size = "md", reduceMotion: forceReduceMotion, disabled, required, hasError, className, style, layerClassNames, ...checkboxProps }, parentRef) {
|
|
62
62
|
const generatedId = (0, react.useId)();
|
|
63
63
|
const uid = id ?? `uds-input-${generatedId}`;
|
|
64
64
|
const innerRef = (0, react.useRef)(null);
|
|
@@ -161,6 +161,7 @@ const Checkbox = (0, react.forwardRef)(function Checkbox({ id, checked: checkedP
|
|
|
161
161
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(RootElement, {
|
|
162
162
|
className: classNames.root,
|
|
163
163
|
"data-testid": "container",
|
|
164
|
+
style,
|
|
164
165
|
onHoverStart: handleHoverStart,
|
|
165
166
|
onHoverEnd: handleHoverEnd,
|
|
166
167
|
onTapStart: handleTapStart,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
"use client";
|
|
3
3
|
import { cx, getStyles } from "../../styles/styler.js";
|
|
4
|
+
import { Icon } from "../Icon.js";
|
|
4
5
|
import { Box } from "../Box.js";
|
|
5
6
|
import { FormLabel } from "../FormLabel.js";
|
|
6
|
-
import { Icon } from "../Icon.js";
|
|
7
7
|
import { SpringMotionConfig } from "./SpringMotionConfig.js";
|
|
8
|
+
import { Check, Minus } from "@yahoo/uds-icons";
|
|
8
9
|
import React, { forwardRef, useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { Check, Minus } from "@yahoo/uds-icons";
|
|
11
11
|
import { m, useReducedMotion } from "motion/react";
|
|
12
12
|
|
|
13
13
|
//#region src/components/client/Checkbox.tsx
|
|
@@ -55,7 +55,7 @@ const pressTransition = {
|
|
|
55
55
|
*
|
|
56
56
|
* @related [Radio](https://uds.build/docs/components/radio), [Switch](https://uds.build/docs/components/switch), [Input](https://uds.build/docs/components/input).
|
|
57
57
|
**/
|
|
58
|
-
const Checkbox = forwardRef(function Checkbox({ id, checked: checkedProp, defaultChecked, onChange, label, labelPosition = "start", variant: variantProp = "primary", size = "md", reduceMotion: forceReduceMotion, disabled, required, hasError, className, layerClassNames, ...checkboxProps }, parentRef) {
|
|
58
|
+
const Checkbox = forwardRef(function Checkbox({ id, checked: checkedProp, defaultChecked, onChange, label, labelPosition = "start", variant: variantProp = "primary", size = "md", reduceMotion: forceReduceMotion, disabled, required, hasError, className, style, layerClassNames, ...checkboxProps }, parentRef) {
|
|
59
59
|
const generatedId = useId();
|
|
60
60
|
const uid = id ?? `uds-input-${generatedId}`;
|
|
61
61
|
const innerRef = useRef(null);
|
|
@@ -158,6 +158,7 @@ const Checkbox = forwardRef(function Checkbox({ id, checked: checkedProp, defaul
|
|
|
158
158
|
children: /* @__PURE__ */ jsxs(RootElement, {
|
|
159
159
|
className: classNames.root,
|
|
160
160
|
"data-testid": "container",
|
|
161
|
+
style,
|
|
161
162
|
onHoverStart: handleHoverStart,
|
|
162
163
|
onHoverEnd: handleHoverEnd,
|
|
163
164
|
onTapStart: handleTapStart,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
5
|
const require_styles_styler = require('../../../styles/styler.cjs');
|
|
6
|
-
const require_components_HStack = require('../../HStack.cjs');
|
|
7
|
-
const require_components_Text = require('../../Text.cjs');
|
|
8
6
|
const require_components_IconSlot = require('../../IconSlot.cjs');
|
|
7
|
+
const require_components_Text = require('../../Text.cjs');
|
|
8
|
+
const require_components_HStack = require('../../HStack.cjs');
|
|
9
9
|
let react = require("react");
|
|
10
10
|
react = require_runtime.__toESM(react);
|
|
11
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
"use client";
|
|
3
3
|
import { cx, getStyles } from "../../../styles/styler.js";
|
|
4
|
-
import { HStack } from "../../HStack.js";
|
|
5
|
-
import { Text } from "../../Text.js";
|
|
6
4
|
import { IconSlot } from "../../IconSlot.js";
|
|
5
|
+
import { Text } from "../../Text.js";
|
|
6
|
+
import { HStack } from "../../HStack.js";
|
|
7
7
|
import React, { forwardRef, useMemo } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { useReducedMotion } from "motion/react";
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
5
|
const require_styles_styler = require('../../../styles/styler.cjs');
|
|
6
|
+
const require_components_client_Pressable = require('../Pressable.cjs');
|
|
6
7
|
const require_components_IconSlot = require('../../IconSlot.cjs');
|
|
7
8
|
const require_utils_mergeSlotProps = require('../../../utils/mergeSlotProps.cjs');
|
|
8
9
|
const require_components_client_Chip_ChipBase = require('./ChipBase.cjs');
|
|
9
|
-
|
|
10
|
+
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
10
11
|
let react = require("react");
|
|
11
12
|
react = require_runtime.__toESM(react);
|
|
12
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
|
-
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
14
14
|
|
|
15
15
|
//#region src/components/client/Chip/ChipDismissible.tsx
|
|
16
16
|
const ChipDismissible = (0, react.forwardRef)(function ChipDismissible({ dismissButtonAriaLabel, onDismiss, dismissIcon, variant = require_components_client_Chip_ChipBase.VARIANT_DEFAULT, disabled, slotProps, className, ...rest }, ref) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
"use client";
|
|
3
3
|
import { cx, getStyles } from "../../../styles/styler.js";
|
|
4
|
+
import { Pressable } from "../Pressable.js";
|
|
4
5
|
import { IconSlot } from "../../IconSlot.js";
|
|
5
6
|
import { mergeSlotProps } from "../../../utils/mergeSlotProps.js";
|
|
6
7
|
import { ChipBase, VARIANT_DEFAULT } from "./ChipBase.js";
|
|
7
|
-
import {
|
|
8
|
+
import { Cross } from "@yahoo/uds-icons";
|
|
8
9
|
import React, { forwardRef, useCallback, useMemo } from "react";
|
|
9
10
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
import { Cross } from "@yahoo/uds-icons";
|
|
11
11
|
|
|
12
12
|
//#region src/components/client/Chip/ChipDismissible.tsx
|
|
13
13
|
const ChipDismissible = forwardRef(function ChipDismissible({ dismissButtonAriaLabel, onDismiss, dismissIcon, variant = VARIANT_DEFAULT, disabled, slotProps, className, ...rest }, ref) {
|
|
@@ -9,9 +9,9 @@ const require_generateDefaultClassName = require('../../automated-config/dist/ut
|
|
|
9
9
|
const require_components_client_buttonConstants = require('./buttonConstants.cjs');
|
|
10
10
|
const require_components_client_SpringMotionConfig = require('./SpringMotionConfig.cjs');
|
|
11
11
|
const require_components_client_Button = require('./Button.cjs');
|
|
12
|
+
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
12
13
|
let react = require("react");
|
|
13
14
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
|
-
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
15
15
|
let motion_react = require("motion/react");
|
|
16
16
|
|
|
17
17
|
//#region src/components/client/IconButton.tsx
|
|
@@ -7,9 +7,9 @@ import { generateDefaultClassName } from "../../automated-config/dist/utils/gene
|
|
|
7
7
|
import { buttonIconSvgSize } from "./buttonConstants.js";
|
|
8
8
|
import { SpringMotionConfig } from "./SpringMotionConfig.js";
|
|
9
9
|
import { iconMotionVariants, loadingMotionVariants } from "./Button.js";
|
|
10
|
+
import { Progress } from "@yahoo/uds-icons";
|
|
10
11
|
import { forwardRef, useImperativeHandle, useMemo, useRef } from "react";
|
|
11
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
import { Progress } from "@yahoo/uds-icons";
|
|
13
13
|
import { AnimatePresence, m, useReducedMotion } from "motion/react";
|
|
14
14
|
|
|
15
15
|
//#region src/components/client/IconButton.tsx
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
5
|
const require_styles_styler = require('../../../styles/styler.cjs');
|
|
6
|
+
const require_components_IconSlot = require('../../IconSlot.cjs');
|
|
6
7
|
const require_components_Box = require('../../Box.cjs');
|
|
7
8
|
const require_components_HStack = require('../../HStack.cjs');
|
|
8
9
|
const require_components_VStack = require('../../VStack.cjs');
|
|
9
|
-
const require_components_IconSlot = require('../../IconSlot.cjs');
|
|
10
10
|
const require_components_client_AnimateHeightChange = require('../AnimateHeightChange.cjs');
|
|
11
11
|
const require_components_client_Input_InputHelpTextInternal = require('./InputHelpTextInternal.cjs');
|
|
12
12
|
let react = require("react");
|
|
@@ -79,7 +79,7 @@ const EndIcon = (0, react.memo)(function EndIcon({ icon, className, iconProps })
|
|
|
79
79
|
*
|
|
80
80
|
* @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
|
|
81
81
|
**/
|
|
82
|
-
const Input = (0, react.forwardRef)(function Input({ id, label, type = "text", size = "md", startIcon, endIcon, helpText, helperTextIcon, hasError, width: containerWidth = "full", defaultValue, required, readOnly, disabled, reduceMotion: forceReduceMotion, onChange, slotProps, className, ...otherProps }, forwardedRef) {
|
|
82
|
+
const Input = (0, react.forwardRef)(function Input({ id, label, type = "text", size = "md", startIcon, endIcon, helpText, helperTextIcon, hasError, width: containerWidth = "full", defaultValue, required, readOnly, disabled, reduceMotion: forceReduceMotion, onChange, slotProps, style, className, ...otherProps }, forwardedRef) {
|
|
83
83
|
const generatedId = (0, react.useId)();
|
|
84
84
|
const uid = id ?? `uds-input-${generatedId}`;
|
|
85
85
|
const helpTextId = `uds-input-${uid}-help-text`;
|
|
@@ -138,6 +138,7 @@ const Input = (0, react.forwardRef)(function Input({ id, label, type = "text", s
|
|
|
138
138
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_VStack.VStack, {
|
|
139
139
|
width: containerWidth,
|
|
140
140
|
className: classNames.root,
|
|
141
|
+
style,
|
|
141
142
|
children: [
|
|
142
143
|
label && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_Box.Box, {
|
|
143
144
|
spacingBottom: "2",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
"use client";
|
|
3
3
|
import { cx, getStyles } from "../../../styles/styler.js";
|
|
4
|
+
import { IconSlot } from "../../IconSlot.js";
|
|
4
5
|
import { Box } from "../../Box.js";
|
|
5
6
|
import { HStack } from "../../HStack.js";
|
|
6
7
|
import { VStack } from "../../VStack.js";
|
|
7
|
-
import { IconSlot } from "../../IconSlot.js";
|
|
8
8
|
import { AnimateHeightChange } from "../AnimateHeightChange.js";
|
|
9
9
|
import { InputHelpTextInternal as InputHelpTextInternalMemo } from "./InputHelpTextInternal.js";
|
|
10
10
|
import { forwardRef, memo, useCallback, useId, useImperativeHandle, useRef, useState } from "react";
|
|
@@ -76,7 +76,7 @@ const EndIcon = memo(function EndIcon({ icon, className, iconProps }) {
|
|
|
76
76
|
*
|
|
77
77
|
* @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
|
|
78
78
|
**/
|
|
79
|
-
const Input = forwardRef(function Input({ id, label, type = "text", size = "md", startIcon, endIcon, helpText, helperTextIcon, hasError, width: containerWidth = "full", defaultValue, required, readOnly, disabled, reduceMotion: forceReduceMotion, onChange, slotProps, className, ...otherProps }, forwardedRef) {
|
|
79
|
+
const Input = forwardRef(function Input({ id, label, type = "text", size = "md", startIcon, endIcon, helpText, helperTextIcon, hasError, width: containerWidth = "full", defaultValue, required, readOnly, disabled, reduceMotion: forceReduceMotion, onChange, slotProps, style, className, ...otherProps }, forwardedRef) {
|
|
80
80
|
const generatedId = useId();
|
|
81
81
|
const uid = id ?? `uds-input-${generatedId}`;
|
|
82
82
|
const helpTextId = `uds-input-${uid}-help-text`;
|
|
@@ -135,6 +135,7 @@ const Input = forwardRef(function Input({ id, label, type = "text", size = "md",
|
|
|
135
135
|
return /* @__PURE__ */ jsxs(VStack, {
|
|
136
136
|
width: containerWidth,
|
|
137
137
|
className: classNames.root,
|
|
138
|
+
style,
|
|
138
139
|
children: [
|
|
139
140
|
label && /* @__PURE__ */ jsxs(Box, {
|
|
140
141
|
spacingBottom: "2",
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
5
|
const require_styles_styler = require('../../../styles/styler.cjs');
|
|
6
|
-
const require_components_HStack = require('../../HStack.cjs');
|
|
7
6
|
const require_components_IconSlot = require('../../IconSlot.cjs');
|
|
7
|
+
const require_components_HStack = require('../../HStack.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
|
|
11
11
|
//#region src/components/client/Input/InputHelpTextInternal.tsx
|
|
12
|
-
function InputHelpTextInternal({ startIcon, endIcon, iconProps, children, size, isFilled, ...rest }) {
|
|
12
|
+
const InputHelpTextInternal = (0, react.forwardRef)(function InputHelpTextInternal({ startIcon, endIcon, iconProps, children, size, isFilled, ...rest }, ref) {
|
|
13
13
|
const defaultIconProps = { variant: "outline" };
|
|
14
14
|
const classNames = {
|
|
15
15
|
helperText: require_styles_styler.cx(require_styles_styler.getStyles({
|
|
@@ -30,6 +30,7 @@ function InputHelpTextInternal({ startIcon, endIcon, iconProps, children, size,
|
|
|
30
30
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_HStack.HStack, {
|
|
31
31
|
gap: "1",
|
|
32
32
|
alignItems: "center",
|
|
33
|
+
ref,
|
|
33
34
|
...rest,
|
|
34
35
|
children: [
|
|
35
36
|
startIcon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_IconSlot.IconSlot, {
|
|
@@ -50,7 +51,7 @@ function InputHelpTextInternal({ startIcon, endIcon, iconProps, children, size,
|
|
|
50
51
|
})
|
|
51
52
|
]
|
|
52
53
|
});
|
|
53
|
-
}
|
|
54
|
+
});
|
|
54
55
|
InputHelpTextInternal.displayName = "InputHelpTextInternal";
|
|
55
56
|
const InputHelpTextInternalMemo = (0, react.memo)(InputHelpTextInternal);
|
|
56
57
|
|
|
@@ -5,7 +5,6 @@ import { IconProps } from "../../Icon.cjs";
|
|
|
5
5
|
import { InputProps } from "./Input.cjs";
|
|
6
6
|
import * as react from "react";
|
|
7
7
|
import { PropsWithChildren } from "react";
|
|
8
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
9
8
|
|
|
10
9
|
//#region src/components/client/Input/InputHelpTextInternal.d.ts
|
|
11
10
|
interface InputHelpTextInternalProps extends PropsWithChildren {
|
|
@@ -21,18 +20,6 @@ interface InputHelpTextInternalProps extends PropsWithChildren {
|
|
|
21
20
|
size?: InputProps['size'];
|
|
22
21
|
isFilled?: boolean;
|
|
23
22
|
}
|
|
24
|
-
declare
|
|
25
|
-
startIcon,
|
|
26
|
-
endIcon,
|
|
27
|
-
iconProps,
|
|
28
|
-
children,
|
|
29
|
-
size,
|
|
30
|
-
isFilled,
|
|
31
|
-
...rest
|
|
32
|
-
}: InputHelpTextInternalProps): react_jsx_runtime0.JSX.Element;
|
|
33
|
-
declare namespace InputHelpTextInternal {
|
|
34
|
-
var displayName: string;
|
|
35
|
-
}
|
|
36
|
-
declare const InputHelpTextInternalMemo: react.MemoExoticComponent<typeof InputHelpTextInternal>;
|
|
23
|
+
declare const InputHelpTextInternalMemo: react.NamedExoticComponent<InputHelpTextInternalProps & react.RefAttributes<HTMLDivElement>>;
|
|
37
24
|
//#endregion
|
|
38
25
|
export { InputHelpTextInternalMemo as InputHelpTextInternal, type InputHelpTextInternalProps };
|
|
@@ -6,7 +6,6 @@ import { IconProps } from "../../Icon.js";
|
|
|
6
6
|
import { InputProps } from "./Input.js";
|
|
7
7
|
import * as react from "react";
|
|
8
8
|
import { PropsWithChildren } from "react";
|
|
9
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
10
9
|
|
|
11
10
|
//#region src/components/client/Input/InputHelpTextInternal.d.ts
|
|
12
11
|
interface InputHelpTextInternalProps extends PropsWithChildren {
|
|
@@ -22,18 +21,6 @@ interface InputHelpTextInternalProps extends PropsWithChildren {
|
|
|
22
21
|
size?: InputProps['size'];
|
|
23
22
|
isFilled?: boolean;
|
|
24
23
|
}
|
|
25
|
-
declare
|
|
26
|
-
startIcon,
|
|
27
|
-
endIcon,
|
|
28
|
-
iconProps,
|
|
29
|
-
children,
|
|
30
|
-
size,
|
|
31
|
-
isFilled,
|
|
32
|
-
...rest
|
|
33
|
-
}: InputHelpTextInternalProps): react_jsx_runtime0.JSX.Element;
|
|
34
|
-
declare namespace InputHelpTextInternal {
|
|
35
|
-
var displayName: string;
|
|
36
|
-
}
|
|
37
|
-
declare const InputHelpTextInternalMemo: react.MemoExoticComponent<typeof InputHelpTextInternal>;
|
|
24
|
+
declare const InputHelpTextInternalMemo: react.NamedExoticComponent<InputHelpTextInternalProps & react.RefAttributes<HTMLDivElement>>;
|
|
38
25
|
//#endregion
|
|
39
26
|
export { InputHelpTextInternalMemo as InputHelpTextInternal, type InputHelpTextInternalProps };
|