@yahoo/uds 3.131.0-beta.2 → 3.132.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/components/Banner/Banner.cjs +5 -2
- package/dist/components/Banner/Banner.d.cts +10 -1
- package/dist/components/Banner/Banner.d.ts +10 -1
- package/dist/components/Banner/Banner.js +5 -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/Divider.d.cts +2 -2
- package/dist/components/Divider/Divider.d.ts +2 -2
- package/dist/components/Divider/DividerCore.cjs +17 -10
- package/dist/components/Divider/DividerCore.d.cts +11 -5
- package/dist/components/Divider/DividerCore.d.ts +11 -5
- package/dist/components/Divider/DividerCore.js +17 -10
- package/dist/components/Divider/DividerInternal.cjs +15 -11
- package/dist/components/Divider/DividerInternal.d.cts +1 -1
- package/dist/components/Divider/DividerInternal.d.ts +1 -1
- package/dist/components/Divider/DividerInternal.js +15 -11
- 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 +5 -25
- package/dist/components/Image.d.cts +1 -1
- package/dist/components/Image.d.ts +1 -1
- package/dist/components/Link.cjs +13 -6
- package/dist/components/Link.d.cts +11 -1
- package/dist/components/Link.d.ts +11 -1
- package/dist/components/Link.js +13 -6
- 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/client/Avatar/AvatarIcon.d.cts +1 -1
- package/dist/components/client/Avatar/AvatarIcon.d.ts +1 -1
- package/dist/components/client/Avatar/AvatarImage.d.cts +1 -1
- package/dist/components/client/Avatar/AvatarImage.d.ts +1 -1
- package/dist/components/client/Avatar/AvatarText.d.cts +1 -1
- package/dist/components/client/Avatar/AvatarText.d.ts +1 -1
- package/dist/components/client/Avatar/utils.d.cts +1 -1
- package/dist/components/client/Avatar/utils.d.ts +1 -1
- package/dist/components/client/Badge.cjs +10 -4
- package/dist/components/client/Badge.d.cts +13 -2
- package/dist/components/client/Badge.d.ts +13 -2
- package/dist/components/client/Badge.js +10 -4
- 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.d.cts +1 -1
- package/dist/components/client/BottomSheet/BottomSheetHeader.d.ts +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 +20 -9
- package/dist/components/client/Button.d.cts +13 -2
- package/dist/components/client/Button.d.ts +13 -2
- package/dist/components/client/Button.js +20 -9
- package/dist/components/client/Checkbox.cjs +14 -6
- package/dist/components/client/Checkbox.d.cts +10 -5
- package/dist/components/client/Checkbox.d.ts +10 -5
- package/dist/components/client/Checkbox.js +14 -6
- package/dist/components/client/Chip/Chip.d.cts +1 -1
- package/dist/components/client/Chip/Chip.d.ts +1 -1
- 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.d.cts +1 -1
- package/dist/components/client/Chip/ChipDismissible.d.ts +1 -1
- 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 +5 -8
- package/dist/components/client/IconButton.d.cts +10 -2
- package/dist/components/client/IconButton.d.ts +10 -2
- package/dist/components/client/IconButton.js +5 -8
- package/dist/components/client/Input/Input.cjs +8 -2
- package/dist/components/client/Input/Input.d.cts +4 -1
- package/dist/components/client/Input/Input.d.ts +4 -1
- package/dist/components/client/Input/Input.js +8 -2
- package/dist/components/client/Input/InputHelpTextInternal.cjs +16 -6
- package/dist/components/client/Input/InputHelpTextInternal.d.cts +11 -1
- package/dist/components/client/Input/InputHelpTextInternal.d.ts +11 -1
- package/dist/components/client/Input/InputHelpTextInternal.js +16 -6
- package/dist/components/client/Menu/Menu.Content.cjs +2 -1
- package/dist/components/client/Menu/Menu.Content.d.cts +8 -1
- package/dist/components/client/Menu/Menu.Content.d.ts +8 -1
- package/dist/components/client/Menu/Menu.Content.js +2 -1
- package/dist/components/client/Menu/Menu.Divider.cjs +8 -10
- package/dist/components/client/Menu/Menu.Divider.js +8 -10
- package/dist/components/client/Menu/Menu.Item.cjs +23 -14
- package/dist/components/client/Menu/Menu.Item.d.cts +12 -1
- package/dist/components/client/Menu/Menu.Item.d.ts +12 -1
- package/dist/components/client/Menu/Menu.Item.js +24 -15
- package/dist/components/client/Menu/Menu.ItemBase.cjs +17 -9
- package/dist/components/client/Menu/Menu.ItemBase.d.cts +10 -6
- package/dist/components/client/Menu/Menu.ItemBase.d.ts +10 -6
- package/dist/components/client/Menu/Menu.ItemBase.js +17 -9
- package/dist/components/client/Menu/Menu.ItemCheckbox.cjs +10 -10
- 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 +10 -10
- 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 +4 -1
- package/dist/components/client/Popover/PopoverContent.d.cts +4 -1
- package/dist/components/client/Popover/PopoverContent.d.ts +4 -1
- package/dist/components/client/Popover/PopoverContent.js +4 -1
- 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.cjs +18 -15
- package/dist/components/client/Radio/Radio.d.cts +10 -5
- package/dist/components/client/Radio/Radio.d.ts +10 -5
- package/dist/components/client/Radio/Radio.js +18 -15
- 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 +14 -6
- package/dist/components/client/Switch.d.cts +10 -6
- package/dist/components/client/Switch.d.ts +10 -6
- package/dist/components/client/Switch.js +14 -6
- package/dist/components/client/Tabs/Tab.cjs +11 -5
- package/dist/components/client/Tabs/Tab.d.cts +14 -3
- package/dist/components/client/Tabs/Tab.d.ts +14 -3
- package/dist/components/client/Tabs/Tab.js +11 -5
- 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.d.cts +1 -1
- package/dist/components/client/Toast/Toast.d.ts +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 +1 -1
- package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +1 -1
- 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 +9 -3
- package/dist/components/client/Tooltip/TooltipContent.d.cts +14 -3
- package/dist/components/client/Tooltip/TooltipContent.d.ts +14 -3
- package/dist/components/client/Tooltip/TooltipContent.js +9 -3
- 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.d.cts +1 -1
- package/dist/components/client/index.d.ts +1 -1
- 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.d.cts +1 -1
- package/dist/components/experimental/Table.d.ts +1 -1
- package/dist/components/experimental/client/SwitchV2.cjs +14 -6
- package/dist/components/experimental/client/SwitchV2.d.cts +10 -6
- package/dist/components/experimental/client/SwitchV2.d.ts +10 -6
- package/dist/components/experimental/client/SwitchV2.js +14 -6
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- 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.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- 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/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 +76 -76
- package/dist/styles/styler.d.ts +76 -76
- package/dist/styles/stylerTypes.d.cts +1 -1
- package/dist/styles/stylerTypes.d.ts +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/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 +26 -38
- package/dist/types/{src → dist}/index.d.ts +26 -38
- package/dist/uds/generated/componentData.cjs +109 -106
- package/dist/uds/generated/componentData.js +109 -106
- package/dist/uds/generated/tailwindPurge.cjs +73 -73
- package/dist/uds/generated/tailwindPurge.js +73 -73
- package/dist/uds/package.cjs +1 -1
- package/dist/uds/package.js +1 -1
- package/dist/utils/isElevationAlias.d.cts +1 -1
- package/dist/utils/isElevationAlias.d.ts +1 -1
- package/generated/componentData.json +135 -124
- package/generated/tailwindPurge.ts +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { UniversalToastProps } from "../../../types/
|
|
2
|
+
import { UniversalToastProps } from "../../../types/dist/index.cjs";
|
|
3
3
|
import { IconPropsWithSVGProps } from "../../../tokens/types.cjs";
|
|
4
4
|
import "../../../tokens/index.cjs";
|
|
5
5
|
import { TextProps } from "../../Text.cjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { UniversalToastProps } from "../../../types/
|
|
3
|
+
import { UniversalToastProps } from "../../../types/dist/index.js";
|
|
4
4
|
import { IconPropsWithSVGProps } from "../../../tokens/types.js";
|
|
5
5
|
import "../../../tokens/index.js";
|
|
6
6
|
import { TextProps } from "../../Text.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { ToastSize, ToastVariant } from "../../../types/
|
|
2
|
+
import { ToastSize, ToastVariant } from "../../../types/dist/index.cjs";
|
|
3
3
|
import "../../../tokens/index.cjs";
|
|
4
4
|
import { HStackProps } from "../../HStack.cjs";
|
|
5
5
|
import { ReactNode } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { ToastSize, ToastVariant } from "../../../types/
|
|
3
|
+
import { ToastSize, ToastVariant } from "../../../types/dist/index.js";
|
|
4
4
|
import "../../../tokens/index.js";
|
|
5
5
|
import { HStackProps } from "../../HStack.js";
|
|
6
6
|
import { ReactNode } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { ButtonSize, ButtonVariant, ForegroundColor, IconSize, IconVariant, TextVariant, ToastPosition, ToastSize, ToastVariant } from "../../../types/
|
|
2
|
+
import { ButtonSize, ButtonVariant, ForegroundColor, IconSize, IconVariant, TextVariant, ToastPosition, ToastSize, ToastVariant } from "../../../types/dist/index.cjs";
|
|
3
3
|
import "../../../tokens/types.cjs";
|
|
4
4
|
import { UDSToastConfigContextType } from "../../../runtime/toastConfig.cjs";
|
|
5
5
|
import { PropsWithChildren } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { ButtonSize, ButtonVariant, ForegroundColor, IconSize, IconVariant, TextVariant, ToastPosition, ToastSize, ToastVariant } from "../../../types/
|
|
3
|
+
import { ButtonSize, ButtonVariant, ForegroundColor, IconSize, IconVariant, TextVariant, ToastPosition, ToastSize, ToastVariant } from "../../../types/dist/index.js";
|
|
4
4
|
import "../../../tokens/types.js";
|
|
5
5
|
import { UDSToastConfigContextType } from "../../../runtime/toastConfig.js";
|
|
6
6
|
import { PropsWithChildren } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { ToastPosition, ToastVariant } from "../../../types/
|
|
2
|
+
import { ToastPosition, ToastVariant } from "../../../types/dist/index.cjs";
|
|
3
3
|
import "../../../tokens/index.cjs";
|
|
4
4
|
import { ToastProps } from "./Toast.cjs";
|
|
5
5
|
import { ReactNode } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { ToastPosition, ToastVariant } from "../../../types/
|
|
3
|
+
import { ToastPosition, ToastVariant } from "../../../types/dist/index.js";
|
|
4
4
|
import "../../../tokens/index.js";
|
|
5
5
|
import { ToastProps } from "./Toast.js";
|
|
6
6
|
import { ReactNode } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { UniversalTooltipProps } from "../../../types/
|
|
3
|
+
import { UniversalTooltipProps } from "../../../types/dist/index.js";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/client/Tooltip/Tooltip.d.ts
|
|
@@ -21,7 +21,7 @@ let _ariakit_react = require("@ariakit/react");
|
|
|
21
21
|
const ARROW_HEIGHT = 8;
|
|
22
22
|
const ARROW_WIDTH = 12;
|
|
23
23
|
const ARROW_TIP_RADIUS_FRACTION = .5;
|
|
24
|
-
const TooltipContent = (0, react.forwardRef)(function TooltipContent({ children, maxWidth, startTitleIcon, title, endContent, className, id }, ref) {
|
|
24
|
+
const TooltipContent = (0, react.forwardRef)(function TooltipContent({ children, maxWidth, startTitleIcon, title, endContent, className, id, slotProps }, ref) {
|
|
25
25
|
const store = (0, _ariakit_react.useTooltipContext)();
|
|
26
26
|
const open = (0, _ariakit_react.useStoreState)(store, "open");
|
|
27
27
|
const internalContext = (0, react.useContext)(require_components_client_Tooltip_tooltipContext.TooltipInternalContext);
|
|
@@ -71,6 +71,7 @@ const TooltipContent = (0, react.forwardRef)(function TooltipContent({ children,
|
|
|
71
71
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_ariakit_react.Tooltip, {
|
|
72
72
|
ref: mergedRef,
|
|
73
73
|
className: classNames.root,
|
|
74
|
+
...slotProps?.root,
|
|
74
75
|
hideOnHoverOutside: internalContext?.isControlled ? false : void 0,
|
|
75
76
|
hideOnInteractOutside: internalContext?.isControlled ? false : void 0,
|
|
76
77
|
portal: internalContext ? internalContext.portal : true,
|
|
@@ -96,10 +97,12 @@ const TooltipContent = (0, react.forwardRef)(function TooltipContent({ children,
|
|
|
96
97
|
children: [startTitleIcon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_IconSlot.IconSlot, {
|
|
97
98
|
iconProps: { variant: "fill" },
|
|
98
99
|
icon: startTitleIcon,
|
|
99
|
-
className: classNames.icon
|
|
100
|
+
className: classNames.icon,
|
|
101
|
+
...slotProps?.icon
|
|
100
102
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Text.Text, {
|
|
101
103
|
className: classNames.title,
|
|
102
104
|
color: "inherit",
|
|
105
|
+
...slotProps?.title,
|
|
103
106
|
children: title
|
|
104
107
|
})]
|
|
105
108
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_Box.Box, {
|
|
@@ -108,17 +111,20 @@ const TooltipContent = (0, react.forwardRef)(function TooltipContent({ children,
|
|
|
108
111
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Text.Text, {
|
|
109
112
|
className: classNames.body,
|
|
110
113
|
color: "inherit",
|
|
114
|
+
...slotProps?.body,
|
|
111
115
|
children
|
|
112
116
|
}), endContent && !(0, react.isValidElement)(endContent) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Text.Text, {
|
|
113
117
|
className: classNames.endContent,
|
|
114
118
|
color: "inherit",
|
|
119
|
+
...slotProps?.endContent,
|
|
115
120
|
children: endContent
|
|
116
121
|
}) : endContent]
|
|
117
122
|
})]
|
|
118
123
|
})
|
|
119
124
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react.TooltipArrow, {
|
|
120
125
|
ref: arrowRef,
|
|
121
|
-
style: { opacity: 0 }
|
|
126
|
+
style: { opacity: 0 },
|
|
127
|
+
...slotProps?.arrow
|
|
122
128
|
})]
|
|
123
129
|
});
|
|
124
130
|
});
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
import { UniversalTooltipContentProps } from "../../../types/
|
|
2
|
+
import { IconPropsWithSVGProps, UniversalTooltipContentProps } from "../../../types/dist/index.cjs";
|
|
3
3
|
import * as react from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/client/Tooltip/TooltipContent.d.ts
|
|
6
|
-
type
|
|
7
|
-
|
|
6
|
+
type DataAttributes = {
|
|
7
|
+
[name: `data-${string}`]: string;
|
|
8
|
+
};
|
|
9
|
+
declare const TooltipContent: react.ForwardRefExoticComponent<UniversalTooltipContentProps & {
|
|
10
|
+
slotProps?: {
|
|
11
|
+
root?: Partial<React.HTMLAttributes<HTMLDivElement> & DataAttributes>;
|
|
12
|
+
title?: Partial<Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> & DataAttributes>;
|
|
13
|
+
body?: Partial<Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> & DataAttributes>;
|
|
14
|
+
endContent?: Partial<Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> & DataAttributes>;
|
|
15
|
+
icon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
|
16
|
+
arrow?: Partial<React.HTMLAttributes<HTMLDivElement> & DataAttributes>;
|
|
17
|
+
};
|
|
18
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
8
19
|
//#endregion
|
|
9
20
|
export { TooltipContent };
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { UniversalTooltipContentProps } from "../../../types/
|
|
3
|
+
import { IconPropsWithSVGProps, UniversalTooltipContentProps } from "../../../types/dist/index.js";
|
|
4
4
|
import * as react from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/client/Tooltip/TooltipContent.d.ts
|
|
7
|
-
type
|
|
8
|
-
|
|
7
|
+
type DataAttributes = {
|
|
8
|
+
[name: `data-${string}`]: string;
|
|
9
|
+
};
|
|
10
|
+
declare const TooltipContent: react.ForwardRefExoticComponent<UniversalTooltipContentProps & {
|
|
11
|
+
slotProps?: {
|
|
12
|
+
root?: Partial<React.HTMLAttributes<HTMLDivElement> & DataAttributes>;
|
|
13
|
+
title?: Partial<Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> & DataAttributes>;
|
|
14
|
+
body?: Partial<Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> & DataAttributes>;
|
|
15
|
+
endContent?: Partial<Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> & DataAttributes>;
|
|
16
|
+
icon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
|
17
|
+
arrow?: Partial<React.HTMLAttributes<HTMLDivElement> & DataAttributes>;
|
|
18
|
+
};
|
|
19
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
9
20
|
//#endregion
|
|
10
21
|
export { TooltipContent };
|
|
@@ -19,7 +19,7 @@ import { Tooltip, TooltipArrow, useStoreState, useTooltipContext } from "@ariaki
|
|
|
19
19
|
const ARROW_HEIGHT = 8;
|
|
20
20
|
const ARROW_WIDTH = 12;
|
|
21
21
|
const ARROW_TIP_RADIUS_FRACTION = .5;
|
|
22
|
-
const TooltipContent = forwardRef(function TooltipContent({ children, maxWidth, startTitleIcon, title, endContent, className, id }, ref) {
|
|
22
|
+
const TooltipContent = forwardRef(function TooltipContent({ children, maxWidth, startTitleIcon, title, endContent, className, id, slotProps }, ref) {
|
|
23
23
|
const store = useTooltipContext();
|
|
24
24
|
const open = useStoreState(store, "open");
|
|
25
25
|
const internalContext = useContext(TooltipInternalContext);
|
|
@@ -69,6 +69,7 @@ const TooltipContent = forwardRef(function TooltipContent({ children, maxWidth,
|
|
|
69
69
|
return /* @__PURE__ */ jsxs(Tooltip, {
|
|
70
70
|
ref: mergedRef,
|
|
71
71
|
className: classNames.root,
|
|
72
|
+
...slotProps?.root,
|
|
72
73
|
hideOnHoverOutside: internalContext?.isControlled ? false : void 0,
|
|
73
74
|
hideOnInteractOutside: internalContext?.isControlled ? false : void 0,
|
|
74
75
|
portal: internalContext ? internalContext.portal : true,
|
|
@@ -94,10 +95,12 @@ const TooltipContent = forwardRef(function TooltipContent({ children, maxWidth,
|
|
|
94
95
|
children: [startTitleIcon && /* @__PURE__ */ jsx(IconSlot, {
|
|
95
96
|
iconProps: { variant: "fill" },
|
|
96
97
|
icon: startTitleIcon,
|
|
97
|
-
className: classNames.icon
|
|
98
|
+
className: classNames.icon,
|
|
99
|
+
...slotProps?.icon
|
|
98
100
|
}), /* @__PURE__ */ jsx(Text, {
|
|
99
101
|
className: classNames.title,
|
|
100
102
|
color: "inherit",
|
|
103
|
+
...slotProps?.title,
|
|
101
104
|
children: title
|
|
102
105
|
})]
|
|
103
106
|
}), /* @__PURE__ */ jsxs(Box, {
|
|
@@ -106,17 +109,20 @@ const TooltipContent = forwardRef(function TooltipContent({ children, maxWidth,
|
|
|
106
109
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
107
110
|
className: classNames.body,
|
|
108
111
|
color: "inherit",
|
|
112
|
+
...slotProps?.body,
|
|
109
113
|
children
|
|
110
114
|
}), endContent && !isValidElement(endContent) ? /* @__PURE__ */ jsx(Text, {
|
|
111
115
|
className: classNames.endContent,
|
|
112
116
|
color: "inherit",
|
|
117
|
+
...slotProps?.endContent,
|
|
113
118
|
children: endContent
|
|
114
119
|
}) : endContent]
|
|
115
120
|
})]
|
|
116
121
|
})
|
|
117
122
|
}), /* @__PURE__ */ jsx(TooltipArrow, {
|
|
118
123
|
ref: arrowRef,
|
|
119
|
-
style: { opacity: 0 }
|
|
124
|
+
style: { opacity: 0 },
|
|
125
|
+
...slotProps?.arrow
|
|
120
126
|
})]
|
|
121
127
|
});
|
|
122
128
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { UniversalTooltipTriggerProps } from "../../../types/
|
|
2
|
+
import { UniversalTooltipTriggerProps } from "../../../types/dist/index.cjs";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/client/Tooltip/TooltipTrigger.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { UniversalTooltipTriggerProps } from "../../../types/
|
|
3
|
+
import { UniversalTooltipTriggerProps } from "../../../types/dist/index.js";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/client/Tooltip/TooltipTrigger.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { TooltipPlacement } from "../../../types/
|
|
2
|
+
import { TooltipPlacement } from "../../../types/dist/index.cjs";
|
|
3
3
|
import { UDSTooltipConfigContextType } from "../../../runtime/tooltipConfig.cjs";
|
|
4
4
|
import { PropsWithChildren } 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 { TooltipPlacement } from "../../../types/
|
|
3
|
+
import { TooltipPlacement } from "../../../types/dist/index.js";
|
|
4
4
|
import { UDSTooltipConfigContextType } from "../../../runtime/tooltipConfig.js";
|
|
5
5
|
import { PropsWithChildren } from "react";
|
|
6
6
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "../../../types/
|
|
2
|
+
import { UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "../../../types/dist/index.cjs";
|
|
3
3
|
import { Tooltip } from "./Tooltip.cjs";
|
|
4
4
|
import { TooltipContent } from "./TooltipContent.cjs";
|
|
5
5
|
import { TooltipTrigger } from "./TooltipTrigger.cjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "../../../types/
|
|
3
|
+
import { UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "../../../types/dist/index.js";
|
|
4
4
|
import { Tooltip } from "./Tooltip.js";
|
|
5
5
|
import { TooltipContent } from "./TooltipContent.js";
|
|
6
6
|
import { TooltipTrigger } from "./TooltipTrigger.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { UniversalPopoverContentProps, UniversalPopoverProps, UniversalPopoverTriggerProps, UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "../../types/
|
|
2
|
+
import { UniversalPopoverContentProps, UniversalPopoverProps, UniversalPopoverTriggerProps, UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "../../types/dist/index.cjs";
|
|
3
3
|
import { SpringMotionConfig, SpringMotionConfigProps } from "./SpringMotionConfig.cjs";
|
|
4
4
|
import { AvatarIcon, AvatarIconProps } from "./Avatar/AvatarIcon.cjs";
|
|
5
5
|
import { AvatarText, AvatarTextProps } from "./Avatar/AvatarText.cjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { UniversalPopoverContentProps, UniversalPopoverProps, UniversalPopoverTriggerProps, UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "../../types/
|
|
3
|
+
import { UniversalPopoverContentProps, UniversalPopoverProps, UniversalPopoverTriggerProps, UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "../../types/dist/index.js";
|
|
4
4
|
import { SpringMotionConfig, SpringMotionConfigProps } from "./SpringMotionConfig.js";
|
|
5
5
|
import { AvatarIcon, AvatarIconProps } from "./Avatar/AvatarIcon.js";
|
|
6
6
|
import { AvatarText, AvatarTextProps } from "./Avatar/AvatarText.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { BreakpointsConfig } from "../../../types/
|
|
2
|
+
import { BreakpointsConfig } from "../../../types/dist/index.cjs";
|
|
3
3
|
import { UDSBreakpointsConfigContextType } from "../../../runtime/breakpointsConfig.cjs";
|
|
4
4
|
import { PropsWithChildren } 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 { BreakpointsConfig } from "../../../types/
|
|
3
|
+
import { BreakpointsConfig } from "../../../types/dist/index.js";
|
|
4
4
|
import { UDSBreakpointsConfigContextType } from "../../../runtime/breakpointsConfig.js";
|
|
5
5
|
import { PropsWithChildren } from "react";
|
|
6
6
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -41,9 +41,13 @@ const MotionBox = motion_react_m.create(require_components_Box.Box);
|
|
|
41
41
|
*
|
|
42
42
|
* @related [Checkbox](https://uds.build/docs/components/checkbox).
|
|
43
43
|
**/
|
|
44
|
-
const SwitchV2 = (0, react.forwardRef)(function Switch({ id, isOn: isOnProp, defaultIsOn, onChange, label, labelPosition = "start", size = "md", onIcon, offIcon, reduceMotion: forceReduceMotion, disabled, required, onFocus, onBlur, className,
|
|
44
|
+
const SwitchV2 = (0, react.forwardRef)(function Switch({ id, isOn: isOnProp, defaultIsOn, onChange, label, labelPosition = "start", size = "md", onIcon, offIcon, reduceMotion: forceReduceMotion, disabled, required, onFocus, onBlur, className, slotProps, ...switchProps }, parentRef) {
|
|
45
45
|
const generatedId = (0, react.useId)();
|
|
46
46
|
const uid = id ?? `uds-input-${generatedId}`;
|
|
47
|
+
const rootSlotProps = slotProps?.root ?? {};
|
|
48
|
+
const switchSlotProps = slotProps?.switch ?? {};
|
|
49
|
+
const handleSlotProps = slotProps?.handle ?? {};
|
|
50
|
+
const labelSlotProps = slotProps?.label ?? {};
|
|
47
51
|
const innerRef = (0, react.useRef)(null);
|
|
48
52
|
/**
|
|
49
53
|
* State
|
|
@@ -76,18 +80,18 @@ const SwitchV2 = (0, react.forwardRef)(function Switch({ id, isOn: isOnProp, def
|
|
|
76
80
|
switchSizeRoot: size,
|
|
77
81
|
switchVariantRoot: "default",
|
|
78
82
|
switchVariantActiveRoot: isOn ? "on" : "off",
|
|
79
|
-
className: require_styles_styler.cx("group", "flex", "items-center", labelPosition === "start" ? "flex-row" : "flex-row-reverse", ...disabled ? ["cursor-default", "opacity-50"] : ["cursor-pointer"],
|
|
83
|
+
className: require_styles_styler.cx("group", "flex", "items-center", labelPosition === "start" ? "flex-row" : "flex-row-reverse", ...disabled ? ["cursor-default", "opacity-50"] : ["cursor-pointer"], className)
|
|
80
84
|
}),
|
|
81
85
|
switch: require_styles_styler.getStyles({
|
|
82
86
|
switchVariantSwitch: "default",
|
|
83
87
|
switchSizeSwitch: size,
|
|
84
88
|
switchVariantActiveSwitch: isOn ? "on" : "off",
|
|
85
|
-
className: require_styles_styler.cx("uds-ring", "uds-ring-within", "relative", "uds-border-radius-full", "items-center", cssAnimationDuration, "transition-[background-color,box-shadow]"
|
|
89
|
+
className: require_styles_styler.cx("uds-ring", "uds-ring-within", "relative", "uds-border-radius-full", "items-center", cssAnimationDuration, "transition-[background-color,box-shadow]")
|
|
86
90
|
}),
|
|
87
91
|
handleContainer: require_styles_styler.cx("pointer-events-none", "relative", "w-full", "h-full"),
|
|
88
92
|
handle: require_styles_styler.getStyles({
|
|
89
93
|
switchSizeHandle: size,
|
|
90
|
-
className: require_styles_styler.cx("absolute", "top-0", "bottom-0", isOn ? "right-0" : "left-0"
|
|
94
|
+
className: require_styles_styler.cx("absolute", "top-0", "bottom-0", isOn ? "right-0" : "left-0")
|
|
91
95
|
}),
|
|
92
96
|
handleContents: require_styles_styler.cx("relative", "w-full", "h-full", "uds-border-radius-full", "overflow-hidden", !disabled && "group-hover:scale-105", "opacity-95", !disabled && "group-hover:opacity-100", cssAnimationDuration, "transition-[transform,opacity]"),
|
|
93
97
|
handleCircle: require_styles_styler.getStyles({
|
|
@@ -102,7 +106,7 @@ const SwitchV2 = (0, react.forwardRef)(function Switch({ id, isOn: isOnProp, def
|
|
|
102
106
|
className: require_styles_styler.cx("absolute", "opacity-0", "top-1/2", "left-1/2", "transform", "translate-x-[-50%]", "translate-y-[-50%]", cssAnimationDuration, "transition-opacity")
|
|
103
107
|
}),
|
|
104
108
|
htmlCheckbox: require_styles_styler.cx("cursor-[inherit]", "absolute", "opacity-0", "top-1/2", "left-1/2", "w-[calc(100%+2px)]", "h-[calc(100%+2px)]", "transform", "translate-x-[-50%]", "translate-y-[-50%]"),
|
|
105
|
-
label: require_styles_styler.cx(labelPosition === "start" ? "text-start" : "text-end"
|
|
109
|
+
label: require_styles_styler.cx(labelPosition === "start" ? "text-start" : "text-end")
|
|
106
110
|
};
|
|
107
111
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_SpringMotionConfig.SpringMotionConfig, {
|
|
108
112
|
reducedMotion: reduceMotion,
|
|
@@ -113,8 +117,10 @@ const SwitchV2 = (0, react.forwardRef)(function Switch({ id, isOn: isOnProp, def
|
|
|
113
117
|
className: classNames.root,
|
|
114
118
|
"data-testid": "switch-root",
|
|
115
119
|
tabIndex: -1,
|
|
120
|
+
...rootSlotProps,
|
|
116
121
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_Box.Box, {
|
|
117
122
|
className: classNames.switch,
|
|
123
|
+
...switchSlotProps,
|
|
118
124
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
119
125
|
type: "checkbox",
|
|
120
126
|
...switchProps,
|
|
@@ -139,6 +145,7 @@ const SwitchV2 = (0, react.forwardRef)(function Switch({ id, isOn: isOnProp, def
|
|
|
139
145
|
className: classNames.handle,
|
|
140
146
|
layout: "position",
|
|
141
147
|
layoutDependency: isOn,
|
|
148
|
+
...handleSlotProps,
|
|
142
149
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_Box.Box, {
|
|
143
150
|
className: classNames.handleContents,
|
|
144
151
|
children: [
|
|
@@ -171,7 +178,8 @@ const SwitchV2 = (0, react.forwardRef)(function Switch({ id, isOn: isOnProp, def
|
|
|
171
178
|
color: "inherit",
|
|
172
179
|
required,
|
|
173
180
|
label,
|
|
174
|
-
className: classNames.label
|
|
181
|
+
className: classNames.label,
|
|
182
|
+
...labelSlotProps
|
|
175
183
|
})]
|
|
176
184
|
})
|
|
177
185
|
});
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
import { UniversalSwitchProps } from "../../../types/
|
|
2
|
+
import { UniversalSwitchProps } from "../../../types/dist/index.cjs";
|
|
3
3
|
import "../../../tokens/index.cjs";
|
|
4
4
|
import React from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/experimental/client/SwitchV2.d.ts
|
|
7
7
|
type NativeInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'size' | 'height' | 'width' | 'color' | 'defaultChecked' | 'children'>;
|
|
8
|
+
type DataAttributes = {
|
|
9
|
+
[name: `data-${string}`]: string;
|
|
10
|
+
};
|
|
8
11
|
interface SwitchV2Props extends NativeInputProps, UniversalSwitchProps {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/** Props to be passed into various slots within the component. */
|
|
13
|
+
slotProps?: {
|
|
14
|
+
root?: DataAttributes;
|
|
15
|
+
switch?: DataAttributes;
|
|
16
|
+
handle?: DataAttributes;
|
|
17
|
+
label?: DataAttributes;
|
|
14
18
|
};
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
|
|
2
2
|
"use client";
|
|
3
|
-
import { UniversalSwitchProps } from "../../../types/
|
|
3
|
+
import { UniversalSwitchProps } from "../../../types/dist/index.js";
|
|
4
4
|
import "../../../tokens/index.js";
|
|
5
5
|
import React from "react";
|
|
6
6
|
|
|
7
7
|
//#region src/components/experimental/client/SwitchV2.d.ts
|
|
8
8
|
type NativeInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'size' | 'height' | 'width' | 'color' | 'defaultChecked' | 'children'>;
|
|
9
|
+
type DataAttributes = {
|
|
10
|
+
[name: `data-${string}`]: string;
|
|
11
|
+
};
|
|
9
12
|
interface SwitchV2Props extends NativeInputProps, UniversalSwitchProps {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
/** Props to be passed into various slots within the component. */
|
|
14
|
+
slotProps?: {
|
|
15
|
+
root?: DataAttributes;
|
|
16
|
+
switch?: DataAttributes;
|
|
17
|
+
handle?: DataAttributes;
|
|
18
|
+
label?: DataAttributes;
|
|
15
19
|
};
|
|
16
20
|
}
|
|
17
21
|
/**
|