@yahoo/uds 3.135.0-beta.1 → 3.136.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/properties.d.cts +1 -1
- package/dist/automated-config/dist/properties.d.ts +1 -1
- package/dist/automated-config/dist/utils/buildConfigSchema.d.cts +1 -1
- package/dist/automated-config/dist/utils/buildConfigSchema.d.ts +1 -1
- package/dist/cli/runner.cjs +0 -40
- package/dist/cli/runner.js +0 -40
- package/dist/components/Banner/Banner.cjs +2 -2
- package/dist/components/Banner/Banner.d.cts +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.js +2 -2
- package/dist/components/Banner/utils.d.cts +1 -1
- package/dist/components/Banner/utils.d.ts +1 -1
- package/dist/components/Box.d.cts +1 -1
- package/dist/components/Box.d.ts +1 -1
- package/dist/components/Divider/DividerCore.cjs +1 -1
- package/dist/components/Divider/DividerCore.d.cts +2 -2
- package/dist/components/Divider/DividerCore.d.ts +2 -2
- package/dist/components/Divider/DividerCore.js +1 -1
- package/dist/components/Divider/DividerInternal.d.cts +1 -1
- package/dist/components/Divider/DividerInternal.d.ts +1 -1
- package/dist/components/FormLabel.d.cts +1 -1
- package/dist/components/FormLabel.d.ts +1 -1
- package/dist/components/HStack.d.cts +1 -1
- package/dist/components/HStack.d.ts +1 -1
- package/dist/components/Icon.cjs +6 -15
- package/dist/components/Icon.d.cts +1 -0
- package/dist/components/Icon.d.ts +1 -0
- package/dist/components/Icon.js +7 -16
- package/dist/components/IconSlot.cjs +6 -25
- package/dist/components/IconSlot.d.cts +2 -3
- package/dist/components/IconSlot.d.ts +2 -3
- package/dist/components/IconSlot.js +6 -26
- package/dist/components/Image.d.cts +1 -1
- package/dist/components/Image.d.ts +1 -1
- package/dist/components/Link.d.cts +1 -1
- package/dist/components/Link.d.ts +1 -1
- package/dist/components/Text.d.cts +1 -1
- package/dist/components/Text.d.ts +1 -1
- package/dist/components/VStack.d.cts +1 -1
- package/dist/components/VStack.d.ts +1 -1
- package/dist/components/{Avatar → client/Avatar}/Avatar.cjs +6 -21
- package/dist/components/{Avatar → client/Avatar}/Avatar.d.cts +3 -3
- package/dist/components/{Avatar → client/Avatar}/Avatar.d.ts +4 -3
- package/dist/components/{Avatar → client/Avatar}/Avatar.js +5 -20
- package/dist/components/{Avatar → client/Avatar}/AvatarIcon.cjs +12 -11
- package/dist/components/{Avatar → client/Avatar}/AvatarIcon.d.cts +3 -4
- package/dist/components/{Avatar → client/Avatar}/AvatarIcon.d.ts +4 -4
- package/dist/components/{Avatar → client/Avatar}/AvatarIcon.js +7 -6
- package/dist/components/client/Avatar/AvatarImage.cjs +58 -37
- package/dist/components/client/Avatar/AvatarImage.d.cts +15 -2
- package/dist/components/client/Avatar/AvatarImage.d.ts +15 -2
- package/dist/components/client/Avatar/AvatarImage.js +57 -36
- package/dist/components/{Avatar → client/Avatar}/AvatarText.cjs +11 -11
- package/dist/components/{Avatar → client/Avatar}/AvatarText.d.cts +3 -4
- package/dist/components/{Avatar → client/Avatar}/AvatarText.d.ts +4 -4
- package/dist/components/{Avatar → client/Avatar}/AvatarText.js +5 -5
- package/dist/components/client/Avatar/index.cjs +6 -0
- package/dist/components/client/Avatar/index.d.cts +5 -3
- package/dist/components/client/Avatar/index.d.ts +5 -3
- package/dist/components/client/Avatar/index.js +4 -1
- package/dist/components/{Avatar → client/Avatar}/utils.cjs +4 -3
- package/dist/components/{Avatar → client/Avatar}/utils.d.cts +3 -3
- package/dist/components/{Avatar → client/Avatar}/utils.d.ts +4 -3
- package/dist/components/{Avatar → client/Avatar}/utils.js +3 -2
- package/dist/components/client/Badge.d.cts +1 -1
- package/dist/components/client/Badge.d.ts +1 -1
- package/dist/components/client/BottomSheet/BottomSheet.d.cts +1 -1
- package/dist/components/client/BottomSheet/BottomSheet.d.ts +1 -1
- package/dist/components/client/BottomSheet/BottomSheetContent.d.cts +1 -1
- package/dist/components/client/BottomSheet/BottomSheetContent.d.ts +1 -1
- package/dist/components/client/BottomSheet/BottomSheetHandle.d.cts +1 -1
- package/dist/components/client/BottomSheet/BottomSheetHandle.d.ts +1 -1
- package/dist/components/client/BottomSheet/BottomSheetHeader.cjs +1 -1
- package/dist/components/client/BottomSheet/BottomSheetHeader.d.cts +1 -1
- package/dist/components/client/BottomSheet/BottomSheetHeader.d.ts +1 -1
- package/dist/components/client/BottomSheet/BottomSheetHeader.js +1 -1
- package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.cts +1 -1
- package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.ts +1 -1
- package/dist/components/client/BottomSheet/utils.d.cts +1 -1
- package/dist/components/client/BottomSheet/utils.d.ts +1 -1
- package/dist/components/client/Button.cjs +1 -1
- package/dist/components/client/Button.d.cts +1 -1
- package/dist/components/client/Button.d.ts +1 -1
- package/dist/components/client/Button.js +1 -1
- package/dist/components/client/Checkbox.cjs +2 -2
- package/dist/components/client/Checkbox.d.cts +1 -1
- package/dist/components/client/Checkbox.d.ts +1 -1
- package/dist/components/client/Checkbox.js +2 -2
- package/dist/components/client/Chip/ChipBase.d.cts +1 -1
- package/dist/components/client/Chip/ChipBase.d.ts +1 -1
- package/dist/components/client/Chip/ChipButton.d.cts +1 -1
- package/dist/components/client/Chip/ChipButton.d.ts +1 -1
- package/dist/components/client/Chip/ChipDismissible.cjs +2 -2
- package/dist/components/client/Chip/ChipDismissible.d.cts +1 -1
- package/dist/components/client/Chip/ChipDismissible.d.ts +1 -1
- package/dist/components/client/Chip/ChipDismissible.js +2 -2
- package/dist/components/client/Chip/ChipLink.d.cts +1 -1
- package/dist/components/client/Chip/ChipLink.d.ts +1 -1
- package/dist/components/client/Chip/ChipToggle.d.cts +1 -1
- package/dist/components/client/Chip/ChipToggle.d.ts +1 -1
- package/dist/components/client/IconButton.cjs +2 -7
- package/dist/components/client/IconButton.js +2 -7
- package/dist/components/client/Input/Input.cjs +1 -1
- package/dist/components/client/Input/Input.d.cts +1 -1
- package/dist/components/client/Input/Input.d.ts +1 -1
- package/dist/components/client/Input/Input.js +1 -1
- package/dist/components/client/Input/InputHelpTextInternal.d.cts +1 -1
- package/dist/components/client/Input/InputHelpTextInternal.d.ts +1 -1
- package/dist/components/client/Menu/Menu.Content.d.cts +1 -1
- package/dist/components/client/Menu/Menu.Content.d.ts +1 -1
- package/dist/components/client/Menu/Menu.Item.d.cts +1 -1
- package/dist/components/client/Menu/Menu.Item.d.ts +1 -1
- package/dist/components/client/Menu/Menu.ItemBase.cjs +1 -1
- package/dist/components/client/Menu/Menu.ItemBase.d.cts +1 -1
- package/dist/components/client/Menu/Menu.ItemBase.d.ts +1 -1
- package/dist/components/client/Menu/Menu.ItemBase.js +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.cjs +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +2 -2
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +2 -2
- package/dist/components/client/Menu/Menu.ItemCheckbox.js +1 -1
- package/dist/components/client/Modal/Modal.cjs +3 -3
- package/dist/components/client/Modal/Modal.d.cts +1 -1
- package/dist/components/client/Modal/Modal.d.ts +1 -1
- package/dist/components/client/Modal/Modal.js +3 -3
- package/dist/components/client/Modal/ModalActions.d.cts +1 -1
- package/dist/components/client/Modal/ModalActions.d.ts +1 -1
- package/dist/components/client/Modal/ModalContent.d.cts +1 -1
- package/dist/components/client/Modal/ModalContent.d.ts +1 -1
- package/dist/components/client/Modal/ModalContext.d.cts +1 -1
- package/dist/components/client/Modal/ModalContext.d.ts +1 -1
- package/dist/components/client/Modal/ModalDescription.d.cts +1 -1
- package/dist/components/client/Modal/ModalDescription.d.ts +1 -1
- package/dist/components/client/Modal/ModalTitle.d.cts +1 -1
- package/dist/components/client/Modal/ModalTitle.d.ts +1 -1
- package/dist/components/client/Modal/UDSModalConfigProvider.d.cts +1 -1
- package/dist/components/client/Modal/UDSModalConfigProvider.d.ts +1 -1
- package/dist/components/client/Popover/Popover.d.cts +1 -1
- package/dist/components/client/Popover/Popover.d.ts +1 -1
- package/dist/components/client/Popover/PopoverContent.cjs +3 -3
- package/dist/components/client/Popover/PopoverContent.d.cts +1 -1
- package/dist/components/client/Popover/PopoverContent.d.ts +1 -1
- package/dist/components/client/Popover/PopoverContent.js +3 -3
- package/dist/components/client/Popover/PopoverTrigger.d.cts +1 -1
- package/dist/components/client/Popover/PopoverTrigger.d.ts +1 -1
- package/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +2 -2
- package/dist/components/client/Popover/UDSPopoverConfigProvider.d.ts +2 -2
- package/dist/components/client/Popover/index.d.cts +1 -1
- package/dist/components/client/Popover/index.d.ts +1 -1
- package/dist/components/client/Pressable.d.cts +1 -1
- package/dist/components/client/Pressable.d.ts +1 -1
- package/dist/components/client/Radio/Radio.d.cts +1 -1
- package/dist/components/client/Radio/Radio.d.ts +1 -1
- package/dist/components/client/Radio/RadioGroupProvider.d.cts +1 -1
- package/dist/components/client/Radio/RadioGroupProvider.d.ts +1 -1
- package/dist/components/client/SpringMotionConfig.d.cts +1 -1
- package/dist/components/client/SpringMotionConfig.d.ts +1 -1
- package/dist/components/client/Switch.cjs +1 -1
- package/dist/components/client/Switch.d.cts +1 -1
- package/dist/components/client/Switch.d.ts +1 -1
- package/dist/components/client/Switch.js +1 -1
- package/dist/components/client/Tabs/Tab.d.cts +1 -1
- package/dist/components/client/Tabs/Tab.d.ts +1 -1
- package/dist/components/client/Tabs/TabList.d.cts +1 -1
- package/dist/components/client/Tabs/TabList.d.ts +1 -1
- package/dist/components/client/Tabs/TabPanel.d.cts +1 -1
- package/dist/components/client/Tabs/TabPanel.d.ts +1 -1
- package/dist/components/client/Tabs/Tabs.d.cts +1 -1
- package/dist/components/client/Tabs/Tabs.d.ts +1 -1
- package/dist/components/client/Tabs/tabsContext.d.cts +1 -1
- package/dist/components/client/Tabs/tabsContext.d.ts +1 -1
- package/dist/components/client/Toast/Toast.cjs +1 -1
- package/dist/components/client/Toast/Toast.d.cts +1 -1
- package/dist/components/client/Toast/Toast.d.ts +1 -1
- package/dist/components/client/Toast/Toast.js +1 -1
- package/dist/components/client/Toast/ToastContainer.d.cts +1 -1
- package/dist/components/client/Toast/ToastContainer.d.ts +1 -1
- package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +2 -2
- package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +2 -2
- package/dist/components/client/Toast/createToast.d.cts +1 -1
- package/dist/components/client/Toast/createToast.d.ts +1 -1
- package/dist/components/client/Tooltip/Tooltip.d.cts +1 -1
- package/dist/components/client/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/client/Tooltip/TooltipContent.cjs +1 -1
- package/dist/components/client/Tooltip/TooltipContent.d.cts +2 -2
- package/dist/components/client/Tooltip/TooltipContent.d.ts +2 -2
- package/dist/components/client/Tooltip/TooltipContent.js +1 -1
- package/dist/components/client/Tooltip/TooltipTrigger.d.cts +1 -1
- package/dist/components/client/Tooltip/TooltipTrigger.d.ts +1 -1
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.cts +1 -1
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.ts +1 -1
- package/dist/components/client/Tooltip/index.d.cts +1 -1
- package/dist/components/client/Tooltip/index.d.ts +1 -1
- package/dist/components/client/buttonConstants.d.cts +1 -1
- package/dist/components/client/buttonConstants.d.ts +1 -1
- package/dist/components/client/index.cjs +7 -1
- package/dist/components/client/index.d.cts +6 -4
- package/dist/components/client/index.d.ts +6 -4
- package/dist/components/client/index.js +5 -2
- package/dist/components/client/providers/UDSBreakpointsConfigProvider.d.cts +1 -1
- package/dist/components/client/providers/UDSBreakpointsConfigProvider.d.ts +1 -1
- package/dist/components/experimental/Table.cjs +1 -1
- package/dist/components/experimental/Table.d.cts +2 -2
- package/dist/components/experimental/Table.d.ts +2 -2
- package/dist/components/experimental/Table.js +1 -1
- package/dist/components/experimental/client/Accordion.cjs +1 -1
- package/dist/components/experimental/client/Accordion.js +1 -1
- package/dist/components/experimental/client/SegmentedControl.cjs +1 -1
- package/dist/components/experimental/client/SegmentedControl.js +1 -1
- package/dist/components/experimental/client/SwitchV2.cjs +1 -1
- package/dist/components/experimental/client/SwitchV2.d.cts +1 -1
- package/dist/components/experimental/client/SwitchV2.d.ts +1 -1
- package/dist/components/experimental/client/SwitchV2.js +1 -1
- package/dist/components/index.cjs +13 -16
- package/dist/components/index.d.cts +7 -9
- package/dist/components/index.d.ts +7 -9
- package/dist/components/index.js +8 -10
- package/dist/config/dist/index.d.cts +1 -1
- package/dist/config/dist/index.d.ts +1 -1
- package/dist/css-tokens/dist/index.d.cts +1 -1
- package/dist/css-tokens/dist/index.d.ts +1 -1
- package/dist/fixtures/dist/index.d.cts +1 -1
- package/dist/fixtures/dist/index.d.ts +1 -1
- package/dist/fixtures/index.d.cts +1 -1
- package/dist/fixtures/index.d.ts +1 -1
- package/dist/fonts/dist/index.d.cts +1 -1
- package/dist/fonts/dist/index.d.ts +1 -1
- package/dist/icons/dist/types.d.cts +30 -0
- package/dist/icons/dist/types.d.ts +30 -0
- package/dist/index.cjs +10 -12
- package/dist/index.d.cts +9 -11
- package/dist/index.d.ts +9 -11
- package/dist/index.js +8 -9
- package/dist/modes/dist/index.d.cts +1 -1
- package/dist/modes/dist/index.d.ts +1 -1
- package/dist/motion-tokens/dist/index.d.cts +1 -1
- package/dist/motion-tokens/dist/index.d.ts +1 -1
- package/dist/providers/ColorModeProvider.d.cts +1 -1
- package/dist/providers/ColorModeProvider.d.ts +1 -1
- package/dist/providers/ScaleModeProvider.d.cts +1 -1
- package/dist/providers/ScaleModeProvider.d.ts +1 -1
- package/dist/providers/ThemeProvider.d.cts +1 -1
- package/dist/providers/ThemeProvider.d.ts +1 -1
- package/dist/runtime/bottomSheetConfig.d.cts +1 -1
- package/dist/runtime/bottomSheetConfig.d.ts +1 -1
- package/dist/runtime/breakpointsConfig.d.cts +1 -1
- package/dist/runtime/breakpointsConfig.d.ts +1 -1
- package/dist/runtime/modalConfig.d.cts +1 -1
- package/dist/runtime/modalConfig.d.ts +1 -1
- package/dist/runtime/popoverConfig.d.cts +1 -1
- package/dist/runtime/popoverConfig.d.ts +1 -1
- package/dist/runtime/toastConfig.d.cts +1 -1
- package/dist/runtime/toastConfig.d.ts +1 -1
- package/dist/runtime/tooltipConfig.d.cts +1 -1
- package/dist/runtime/tooltipConfig.d.ts +1 -1
- package/dist/styles/styler.d.cts +5 -5
- package/dist/styles/styler.d.ts +5 -5
- package/dist/styles/stylerTypes.d.cts +1 -1
- package/dist/styles/stylerTypes.d.ts +1 -1
- package/dist/tailwind/dist/commands/generatePurgeCSSData.cjs +2 -6
- package/dist/tailwind/dist/commands/generatePurgeCSSData.d.cts.map +1 -1
- package/dist/tailwind/dist/commands/generatePurgeCSSData.d.ts.map +1 -1
- package/dist/tailwind/dist/commands/generatePurgeCSSData.js +2 -5
- package/dist/tailwind/dist/commands/generatePurgeCSSData.js.map +1 -1
- package/dist/tailwind/dist/css/theme.d.cts +1 -1
- package/dist/tailwind/dist/css/theme.d.ts +1 -1
- package/dist/tailwind/dist/index.d.cts +2 -2
- package/dist/tailwind/dist/index.d.ts +2 -2
- package/dist/tailwind/dist/tailwind/utils/getShadowStyles.d.cts +4 -4
- package/dist/tailwind/dist/tailwind/utils/getShadowStyles.d.ts +4 -4
- 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/configs/borderRadius.d.cts +1 -1
- package/dist/tokens/configs/borderRadius.d.ts +1 -1
- package/dist/tokens/configs/borderWidth.d.cts +1 -1
- package/dist/tokens/configs/borderWidth.d.ts +1 -1
- package/dist/tokens/configs/font.d.cts +1 -1
- package/dist/tokens/configs/font.d.ts +1 -1
- package/dist/tokens/configs/scaleMode.d.cts +1 -1
- package/dist/tokens/configs/scaleMode.d.ts +1 -1
- package/dist/tokens/configs/shadow.d.cts +1 -1
- package/dist/tokens/configs/shadow.d.ts +1 -1
- package/dist/tokens/configs/sizes.d.cts +1 -1
- package/dist/tokens/configs/sizes.d.ts +1 -1
- package/dist/tokens/configs/typography.d.cts +1 -1
- package/dist/tokens/configs/typography.d.ts +1 -1
- package/dist/tokens/index.d.cts +2 -2
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens/parseButtonVariants.d.cts +1 -1
- package/dist/tokens/parseButtonVariants.d.ts +1 -1
- package/dist/tokens/types.d.cts +7 -7
- package/dist/tokens/types.d.ts +7 -7
- package/dist/tokens/utils/spectrum.d.cts +1 -1
- package/dist/tokens/utils/spectrum.d.ts +1 -1
- package/dist/types/{src → dist}/index.d.cts +23 -35
- package/dist/types/{src → dist}/index.d.ts +23 -35
- package/dist/uds/generated/componentData.cjs +1641 -1661
- package/dist/uds/generated/componentData.js +1687 -1701
- package/dist/uds/generated/tailwindPurge.cjs +104 -128
- package/dist/uds/generated/tailwindPurge.js +104 -128
- package/dist/utils/isElevationAlias.d.cts +1 -1
- package/dist/utils/isElevationAlias.d.ts +1 -1
- package/generated/componentData.json +2136 -2144
- package/generated/tailwindPurge.ts +3 -3
- package/package.json +1 -1
- package/dist/components/Avatar/AvatarImage.types.cjs +0 -1
- package/dist/components/Avatar/AvatarImage.types.d.cts +0 -18
- package/dist/components/Avatar/AvatarImage.types.d.ts +0 -18
- package/dist/components/Avatar/AvatarImage.types.js +0 -1
- package/dist/components/Avatar/AvatarImageNoFallback.cjs +0 -51
- package/dist/components/Avatar/AvatarImageNoFallback.d.cts +0 -18
- package/dist/components/Avatar/AvatarImageNoFallback.d.ts +0 -18
- package/dist/components/Avatar/AvatarImageNoFallback.js +0 -49
- package/dist/components/Avatar/index.cjs +0 -10
- package/dist/components/Avatar/index.d.cts +0 -6
- package/dist/components/Avatar/index.d.ts +0 -6
- package/dist/components/Avatar/index.js +0 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
import { UniversalAvatarTextProps } from "
|
|
3
|
-
import { TextProps } from "
|
|
2
|
+
import { UniversalAvatarTextProps } from "../../../types/dist/index.cjs";
|
|
3
|
+
import { TextProps } from "../../Text.cjs";
|
|
4
4
|
import * as _$react from "react";
|
|
5
5
|
|
|
6
|
-
//#region src/components/Avatar/AvatarText.d.ts
|
|
6
|
+
//#region src/components/client/Avatar/AvatarText.d.ts
|
|
7
7
|
type DataAttributes = {
|
|
8
8
|
[name: `data-${string}`]: string;
|
|
9
9
|
};
|
|
@@ -20,7 +20,6 @@ interface AvatarTextProps extends UniversalAvatarTextProps {
|
|
|
20
20
|
*
|
|
21
21
|
* @param props - Props for text variant.
|
|
22
22
|
* @returns The AvatarText element.
|
|
23
|
-
* @componentType Server component
|
|
24
23
|
*/
|
|
25
24
|
declare const AvatarText: _$react.ForwardRefExoticComponent<AvatarTextProps & _$react.RefAttributes<HTMLDivElement>>;
|
|
26
25
|
//#endregion
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
import {
|
|
2
|
+
"use client";
|
|
3
|
+
import { UniversalAvatarTextProps } from "../../../types/dist/index.js";
|
|
4
|
+
import { TextProps } from "../../Text.js";
|
|
4
5
|
import * as _$react from "react";
|
|
5
6
|
|
|
6
|
-
//#region src/components/Avatar/AvatarText.d.ts
|
|
7
|
+
//#region src/components/client/Avatar/AvatarText.d.ts
|
|
7
8
|
type DataAttributes = {
|
|
8
9
|
[name: `data-${string}`]: string;
|
|
9
10
|
};
|
|
@@ -20,7 +21,6 @@ interface AvatarTextProps extends UniversalAvatarTextProps {
|
|
|
20
21
|
*
|
|
21
22
|
* @param props - Props for text variant.
|
|
22
23
|
* @returns The AvatarText element.
|
|
23
|
-
* @componentType Server component
|
|
24
24
|
*/
|
|
25
25
|
declare const AvatarText: _$react.ForwardRefExoticComponent<AvatarTextProps & _$react.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
//#endregion
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
|
|
3
|
-
import {
|
|
2
|
+
"use client";
|
|
3
|
+
import { cx } from "../../../styles/styler.js";
|
|
4
|
+
import { Text } from "../../Text.js";
|
|
5
|
+
import { Box } from "../../Box.js";
|
|
4
6
|
import { DEFAULT_AVATAR_VARIANT, buildAvatarRootClasses, buildInlineSizeStyles, generateAvatarAbbreviation } from "./utils.js";
|
|
5
|
-
import { Text } from "../Text.js";
|
|
6
7
|
import { forwardRef, useMemo } from "react";
|
|
7
8
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
//#region src/components/Avatar/AvatarText.tsx
|
|
9
|
+
//#region src/components/client/Avatar/AvatarText.tsx
|
|
9
10
|
/**
|
|
10
11
|
* **AvatarText Component**
|
|
11
12
|
*
|
|
@@ -13,7 +14,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
13
14
|
*
|
|
14
15
|
* @param props - Props for text variant.
|
|
15
16
|
* @returns The AvatarText element.
|
|
16
|
-
* @componentType Server component
|
|
17
17
|
*/
|
|
18
18
|
const AvatarText = forwardRef(({ size = "md", variant = DEFAULT_AVATAR_VARIANT, name, initials, customSize, abbreviationStrategy, className, slotProps, ...props }, ref) => {
|
|
19
19
|
const classNames = useMemo(() => ({
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
"use client";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const require_components_client_Avatar_AvatarIcon = require("./AvatarIcon.cjs");
|
|
5
|
+
const require_components_client_Avatar_AvatarText = require("./AvatarText.cjs");
|
|
4
6
|
const require_components_client_Avatar_AvatarImage = require("./AvatarImage.cjs");
|
|
7
|
+
const require_components_client_Avatar_Avatar = require("./Avatar.cjs");
|
|
8
|
+
exports.Avatar = require_components_client_Avatar_Avatar.Avatar;
|
|
9
|
+
exports.AvatarIcon = require_components_client_Avatar_AvatarIcon.AvatarIcon;
|
|
5
10
|
exports.AvatarImage = require_components_client_Avatar_AvatarImage.AvatarImage;
|
|
11
|
+
exports.AvatarText = require_components_client_Avatar_AvatarText.AvatarText;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { AvatarIcon, AvatarIconProps } from "./AvatarIcon.cjs";
|
|
3
|
+
import { AvatarText, AvatarTextProps } from "./AvatarText.cjs";
|
|
4
|
+
import { AvatarImage, AvatarImageProps } from "./AvatarImage.cjs";
|
|
5
|
+
import { Avatar, AvatarProps } from "./Avatar.cjs";
|
|
6
|
+
export { Avatar, AvatarIcon, type AvatarIconProps, AvatarImage, type AvatarImageProps, type AvatarProps, AvatarText, type AvatarTextProps };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { AvatarIcon, AvatarIconProps } from "./AvatarIcon.js";
|
|
4
|
+
import { AvatarText, AvatarTextProps } from "./AvatarText.js";
|
|
5
|
+
import { AvatarImage, AvatarImageProps } from "./AvatarImage.js";
|
|
6
|
+
import { Avatar, AvatarProps } from "./Avatar.js";
|
|
7
|
+
export { Avatar, AvatarIcon, type AvatarIconProps, AvatarImage, type AvatarImageProps, type AvatarProps, AvatarText, type AvatarTextProps };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
"use client";
|
|
3
|
+
import { AvatarIcon } from "./AvatarIcon.js";
|
|
4
|
+
import { AvatarText } from "./AvatarText.js";
|
|
3
5
|
import { AvatarImage } from "./AvatarImage.js";
|
|
4
|
-
|
|
6
|
+
import { Avatar } from "./Avatar.js";
|
|
7
|
+
export { Avatar, AvatarIcon, AvatarImage, AvatarText };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
+
"use client";
|
|
2
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_runtime = require("
|
|
4
|
-
const require_styles_styler = require("
|
|
4
|
+
const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
|
|
5
|
+
const require_styles_styler = require("../../../styles/styler.cjs");
|
|
5
6
|
let lodash_isFunction_js = require("lodash/isFunction.js");
|
|
6
7
|
lodash_isFunction_js = require_runtime.__toESM(lodash_isFunction_js, 1);
|
|
7
|
-
//#region src/components/Avatar/utils.ts
|
|
8
|
+
//#region src/components/client/Avatar/utils.ts
|
|
8
9
|
/** Strategies for generating text abbreviation */
|
|
9
10
|
const abbrevStrategies = {
|
|
10
11
|
first: (initials) => initials[0] ?? "",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { AvatarAbbreviationStrategy, AvatarSize, AvatarVariant, UniversalAvatarProps } from "
|
|
3
|
-
import { getStyles } from "
|
|
2
|
+
import { AvatarAbbreviationStrategy, AvatarSize, AvatarVariant, UniversalAvatarProps } from "../../../types/dist/index.cjs";
|
|
3
|
+
import { getStyles } from "../../../styles/styler.cjs";
|
|
4
4
|
|
|
5
|
-
//#region src/components/Avatar/utils.d.ts
|
|
5
|
+
//#region src/components/client/Avatar/utils.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Generates an abbreviation from a name using a specified strategy.
|
|
8
8
|
*
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
import {
|
|
2
|
+
"use client";
|
|
3
|
+
import { AvatarAbbreviationStrategy, AvatarSize, AvatarVariant, UniversalAvatarProps } from "../../../types/dist/index.js";
|
|
4
|
+
import { getStyles } from "../../../styles/styler.js";
|
|
4
5
|
|
|
5
|
-
//#region src/components/Avatar/utils.d.ts
|
|
6
|
+
//#region src/components/client/Avatar/utils.d.ts
|
|
6
7
|
/**
|
|
7
8
|
* Generates an abbreviation from a name using a specified strategy.
|
|
8
9
|
*
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
|
|
2
|
+
"use client";
|
|
3
|
+
import { cx, getStyles } from "../../../styles/styler.js";
|
|
3
4
|
import { isFunction } from "lodash-es";
|
|
4
|
-
//#region src/components/Avatar/utils.ts
|
|
5
|
+
//#region src/components/client/Avatar/utils.ts
|
|
5
6
|
/** Strategies for generating text abbreviation */
|
|
6
7
|
const abbrevStrategies = {
|
|
7
8
|
first: (initials) => initials[0] ?? "",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { UniversalBottomSheetProps } from "../../../types/
|
|
2
|
+
import { UniversalBottomSheetProps } from "../../../types/dist/index.cjs";
|
|
3
3
|
import { BottomSheetController } from "./useBottomSheetStore.cjs";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { UniversalBottomSheetProps } from "../../../types/
|
|
3
|
+
import { UniversalBottomSheetProps } from "../../../types/dist/index.js";
|
|
4
4
|
import { BottomSheetController } from "./useBottomSheetStore.js";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { UniversalBottomSheetContentProps } from "../../../types/
|
|
2
|
+
import { UniversalBottomSheetContentProps } from "../../../types/dist/index.cjs";
|
|
3
3
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/client/BottomSheet/BottomSheetContent.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { UniversalBottomSheetContentProps } from "../../../types/
|
|
3
|
+
import { UniversalBottomSheetContentProps } from "../../../types/dist/index.js";
|
|
4
4
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/client/BottomSheet/BottomSheetContent.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { BottomSheetVariant } from "../../../types/
|
|
2
|
+
import { BottomSheetVariant } from "../../../types/dist/index.cjs";
|
|
3
3
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/client/BottomSheet/BottomSheetHandle.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { BottomSheetVariant } from "../../../types/
|
|
3
|
+
import { BottomSheetVariant } from "../../../types/dist/index.js";
|
|
4
4
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/client/BottomSheet/BottomSheetHandle.d.ts
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
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
|
//#region src/components/client/BottomSheet/BottomSheetHeader.tsx
|
|
10
10
|
function BottomSheetHeader({ children, start, end, variant = "default", className }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { UniversalBottomSheetHeaderProps } from "../../../types/
|
|
2
|
+
import { UniversalBottomSheetHeaderProps } from "../../../types/dist/index.cjs";
|
|
3
3
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/client/BottomSheet/BottomSheetHeader.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { UniversalBottomSheetHeaderProps } from "../../../types/
|
|
3
|
+
import { UniversalBottomSheetHeaderProps } from "../../../types/dist/index.js";
|
|
4
4
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/client/BottomSheet/BottomSheetHeader.d.ts
|
|
@@ -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
|
//#region src/components/client/BottomSheet/BottomSheetHeader.tsx
|
|
8
8
|
function BottomSheetHeader({ children, start, end, variant = "default", className }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { BottomSheetHeight } from "../../../types/
|
|
3
|
+
import { BottomSheetHeight } from "../../../types/dist/index.js";
|
|
4
4
|
import { MutableRefObject } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/client/BottomSheet/useBottomSheetSnapModel.d.ts
|
|
@@ -10,9 +10,9 @@ const require_components_IconSlot = require("../IconSlot.cjs");
|
|
|
10
10
|
const require_generateDefaultClassName = require("../../automated-config/dist/utils/generateDefaultClassName.cjs");
|
|
11
11
|
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
|
-
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
16
16
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
17
17
|
let motion_react = require("motion/react");
|
|
18
18
|
//#region src/components/client/Button.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { UniversalButtonProps } from "../../types/
|
|
2
|
+
import { UniversalButtonProps } from "../../types/dist/index.cjs";
|
|
3
3
|
import { IconPropsWithSVGProps } from "../../tokens/types.cjs";
|
|
4
4
|
import React, { ForwardRefExoticComponent } from "react";
|
|
5
5
|
import { HTMLMotionProps } from "motion/react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { UniversalButtonProps } from "../../types/
|
|
3
|
+
import { UniversalButtonProps } from "../../types/dist/index.js";
|
|
4
4
|
import { IconPropsWithSVGProps } from "../../tokens/types.js";
|
|
5
5
|
import React, { ForwardRefExoticComponent } from "react";
|
|
6
6
|
import { HTMLMotionProps } from "motion/react";
|
|
@@ -8,8 +8,8 @@ import { IconSlot } from "../IconSlot.js";
|
|
|
8
8
|
import { generateDefaultClassName } from "../../automated-config/dist/utils/generateDefaultClassName.js";
|
|
9
9
|
import "./buttonConstants.js";
|
|
10
10
|
import { SpringMotionConfig } from "./SpringMotionConfig.js";
|
|
11
|
-
import { cloneElement, forwardRef, isValidElement, useImperativeHandle, useMemo, useRef } from "react";
|
|
12
11
|
import { Progress } from "@yahoo/uds-icons";
|
|
12
|
+
import { cloneElement, forwardRef, isValidElement, useImperativeHandle, useMemo, useRef } from "react";
|
|
13
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { AnimatePresence, m, useReducedMotion } from "motion/react";
|
|
15
15
|
//#region src/components/client/Button.tsx
|
|
@@ -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_Box = require("../Box.cjs");
|
|
7
6
|
const require_components_Icon = require("../Icon.cjs");
|
|
7
|
+
const require_components_Box = require("../Box.cjs");
|
|
8
8
|
const require_components_FormLabel = require("../FormLabel.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
|
-
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
13
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
14
|
let motion_react = require("motion/react");
|
|
15
15
|
//#region src/components/client/Checkbox.tsx
|
|
@@ -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 { Icon } from "../Icon.js";
|
|
5
|
+
import { Box } from "../Box.js";
|
|
6
6
|
import { FormLabel } from "../FormLabel.js";
|
|
7
7
|
import { SpringMotionConfig } from "./SpringMotionConfig.js";
|
|
8
|
-
import { forwardRef, useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
9
8
|
import { Check, Minus } from "@yahoo/uds-icons";
|
|
9
|
+
import { forwardRef, useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { m, useReducedMotion } from "motion/react";
|
|
12
12
|
//#region src/components/client/Checkbox.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { ChipVariant, UniversalChipBaseProps } from "../../../types/
|
|
2
|
+
import { ChipVariant, UniversalChipBaseProps } from "../../../types/dist/index.cjs";
|
|
3
3
|
import { IconPropsWithSVGProps } from "../../../tokens/types.cjs";
|
|
4
4
|
import { TextProps } from "../../Text.cjs";
|
|
5
5
|
import React from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { ChipVariant, UniversalChipBaseProps } from "../../../types/
|
|
3
|
+
import { ChipVariant, UniversalChipBaseProps } from "../../../types/dist/index.js";
|
|
4
4
|
import { IconPropsWithSVGProps } from "../../../tokens/types.js";
|
|
5
5
|
import { TextProps } from "../../Text.js";
|
|
6
6
|
import React from "react";
|
|
@@ -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_IconSlot = require("../../IconSlot.cjs");
|
|
7
6
|
const require_components_client_Pressable = require("../Pressable.cjs");
|
|
7
|
+
const require_components_IconSlot = require("../../IconSlot.cjs");
|
|
8
8
|
const require_utils_mergeSlotProps = require("../../../utils/mergeSlotProps.cjs");
|
|
9
9
|
const require_components_client_Chip_ChipBase = require("./ChipBase.cjs");
|
|
10
|
+
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
10
11
|
let react = require("react");
|
|
11
12
|
react = require_runtime.__toESM(react);
|
|
12
|
-
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
13
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
14
|
//#region src/components/client/Chip/ChipDismissible.tsx
|
|
15
15
|
const ChipDismissible = (0, react.forwardRef)(function ChipDismissible({ dismissButtonAriaLabel, onDismiss, dismissIcon, variant = require_components_client_Chip_ChipBase.VARIANT_DEFAULT, disabled, slotProps, className, ...rest }, ref) {
|
|
@@ -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 { IconSlot } from "../../IconSlot.js";
|
|
5
4
|
import { Pressable } from "../Pressable.js";
|
|
5
|
+
import { IconSlot } from "../../IconSlot.js";
|
|
6
6
|
import { mergeSlotProps } from "../../../utils/mergeSlotProps.js";
|
|
7
7
|
import { ChipBase, VARIANT_DEFAULT } from "./ChipBase.js";
|
|
8
|
-
import { forwardRef, useCallback, useMemo } from "react";
|
|
9
8
|
import { Cross } from "@yahoo/uds-icons";
|
|
9
|
+
import { forwardRef, useCallback, useMemo } from "react";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/client/Chip/ChipDismissible.tsx
|
|
12
12
|
const ChipDismissible = forwardRef(function ChipDismissible({ dismissButtonAriaLabel, onDismiss, dismissIcon, variant = VARIANT_DEFAULT, disabled, slotProps, className, ...rest }, ref) {
|
|
@@ -9,20 +9,15 @@ const require_generateDefaultClassName = require("../../automated-config/dist/ut
|
|
|
9
9
|
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 react = require("react");
|
|
13
12
|
let _yahoo_uds_icons = require("@yahoo/uds-icons");
|
|
13
|
+
let react = require("react");
|
|
14
14
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
15
|
-
let _yahoo_uds_icons_utils = require("@yahoo/uds-icons/utils");
|
|
16
15
|
let motion_react = require("motion/react");
|
|
17
16
|
//#region src/components/client/IconButton.tsx
|
|
18
17
|
const defaultSizeRootClass = require_generateDefaultClassName.generateDefaultClassName("iconbutton", "size", "root");
|
|
19
18
|
const defaultSizeIconClass = require_generateDefaultClassName.generateDefaultClassName("iconbutton", "size", "icon");
|
|
20
19
|
const defaultVariantRootClass = require_generateDefaultClassName.generateDefaultClassName("button", "variant", "root");
|
|
21
20
|
const defaultVariantIconClass = require_generateDefaultClassName.generateDefaultClassName("button", "variant", "icon");
|
|
22
|
-
function getIconMotionKey(icon) {
|
|
23
|
-
if ((0, _yahoo_uds_icons_utils.isIconDefinition)(icon)) return (0, _yahoo_uds_icons_utils.getIconName)(icon);
|
|
24
|
-
return "icon";
|
|
25
|
-
}
|
|
26
21
|
/**
|
|
27
22
|
* **⚙️️ An icon button element that can be used to trigger an action**
|
|
28
23
|
*
|
|
@@ -125,7 +120,7 @@ const IconButton = (0, react.forwardRef)(function IconButton({ variant, size, ic
|
|
|
125
120
|
className: require_styles_styler.cx(styles.icon, iconSlotClassName),
|
|
126
121
|
...iconSlotProps
|
|
127
122
|
})
|
|
128
|
-
},
|
|
123
|
+
}, name.name)]
|
|
129
124
|
})
|
|
130
125
|
})
|
|
131
126
|
});
|
|
@@ -7,20 +7,15 @@ import { generateDefaultClassName } from "../../automated-config/dist/utils/gene
|
|
|
7
7
|
import "./buttonConstants.js";
|
|
8
8
|
import { SpringMotionConfig } from "./SpringMotionConfig.js";
|
|
9
9
|
import { iconMotionVariants, loadingMotionVariants } from "./Button.js";
|
|
10
|
-
import { forwardRef, useImperativeHandle, useMemo, useRef } from "react";
|
|
11
10
|
import { Progress } from "@yahoo/uds-icons";
|
|
11
|
+
import { forwardRef, useImperativeHandle, useMemo, useRef } from "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { getIconName, isIconDefinition } from "@yahoo/uds-icons/utils";
|
|
14
13
|
import { AnimatePresence, m, useReducedMotion } from "motion/react";
|
|
15
14
|
//#region src/components/client/IconButton.tsx
|
|
16
15
|
const defaultSizeRootClass = generateDefaultClassName("iconbutton", "size", "root");
|
|
17
16
|
const defaultSizeIconClass = generateDefaultClassName("iconbutton", "size", "icon");
|
|
18
17
|
const defaultVariantRootClass = generateDefaultClassName("button", "variant", "root");
|
|
19
18
|
const defaultVariantIconClass = generateDefaultClassName("button", "variant", "icon");
|
|
20
|
-
function getIconMotionKey(icon) {
|
|
21
|
-
if (isIconDefinition(icon)) return getIconName(icon);
|
|
22
|
-
return "icon";
|
|
23
|
-
}
|
|
24
19
|
/**
|
|
25
20
|
* **⚙️️ An icon button element that can be used to trigger an action**
|
|
26
21
|
*
|
|
@@ -123,7 +118,7 @@ const IconButton = forwardRef(function IconButton({ variant, size, iconVariant,
|
|
|
123
118
|
className: cx(styles.icon, iconSlotClassName),
|
|
124
119
|
...iconSlotProps
|
|
125
120
|
})
|
|
126
|
-
},
|
|
121
|
+
}, name.name)]
|
|
127
122
|
})
|
|
128
123
|
})
|
|
129
124
|
});
|
|
@@ -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_IconSlot = require("../../IconSlot.cjs");
|
|
7
|
+
const require_components_Box = require("../../Box.cjs");
|
|
8
8
|
const require_components_HStack = require("../../HStack.cjs");
|
|
9
9
|
const require_components_VStack = require("../../VStack.cjs");
|
|
10
10
|
const require_components_client_AnimateHeightChange = require("../AnimateHeightChange.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { UniversalInputProps } from "../../../types/
|
|
2
|
+
import { UniversalInputProps } from "../../../types/dist/index.cjs";
|
|
3
3
|
import { IconPropsWithSVGProps } from "../../../tokens/types.cjs";
|
|
4
4
|
import { BoxProps } from "../../Box.cjs";
|
|
5
5
|
import * as _$react from "react";
|