@yahoo/uds 3.140.0 → 3.142.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.
Files changed (68) hide show
  1. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
  2. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
  3. package/dist/automated-config/dist/utils/index.cjs +1 -1
  4. package/dist/automated-config/dist/utils/index.js +1 -1
  5. package/dist/components/Divider/Divider.cjs +86 -5
  6. package/dist/components/Divider/Divider.d.cts +15 -4
  7. package/dist/components/Divider/Divider.d.ts +15 -4
  8. package/dist/components/Divider/Divider.js +88 -7
  9. package/dist/components/Divider/DividerLabel.cjs +30 -0
  10. package/dist/components/Divider/DividerLabel.d.cts +18 -0
  11. package/dist/components/Divider/DividerLabel.d.ts +18 -0
  12. package/dist/components/Divider/DividerLabel.js +28 -0
  13. package/dist/components/Divider/DividerLine.cjs +41 -0
  14. package/dist/components/Divider/DividerLine.d.cts +19 -0
  15. package/dist/components/Divider/DividerLine.d.ts +19 -0
  16. package/dist/components/Divider/DividerLine.js +39 -0
  17. package/dist/components/Divider/index.cjs +4 -0
  18. package/dist/components/Divider/index.d.cts +4 -1
  19. package/dist/components/Divider/index.d.ts +4 -1
  20. package/dist/components/Divider/index.js +3 -1
  21. package/dist/components/Divider/types.cjs +1 -0
  22. package/dist/components/Divider/types.d.cts +38 -0
  23. package/dist/components/Divider/types.d.ts +38 -0
  24. package/dist/components/Divider/types.js +1 -0
  25. package/dist/components/Divider/utils.cjs +33 -0
  26. package/dist/components/Divider/utils.d.cts +11 -0
  27. package/dist/components/Divider/utils.d.ts +11 -0
  28. package/dist/components/Divider/utils.js +29 -0
  29. package/dist/components/client/Menu/Menu.Divider.cjs +2 -2
  30. package/dist/components/client/Menu/Menu.Divider.js +2 -2
  31. package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
  32. package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
  33. package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +1 -1
  34. package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +1 -1
  35. package/dist/components/index.cjs +6 -0
  36. package/dist/components/index.d.cts +3 -1
  37. package/dist/components/index.d.ts +3 -1
  38. package/dist/components/index.js +5 -1
  39. package/dist/index.cjs +5 -1
  40. package/dist/index.d.cts +3 -1
  41. package/dist/index.d.ts +3 -1
  42. package/dist/index.js +4 -2
  43. package/dist/styles/styler.d.cts +37 -37
  44. package/dist/styles/styler.d.ts +37 -37
  45. package/dist/tailwind/dist/automated-config/dist/utils/index.cjs +1 -1
  46. package/dist/tailwind/dist/automated-config/dist/utils/index.js +1 -1
  47. package/dist/tailwind/dist/automated-config/dist/utils/index.js.map +1 -1
  48. package/dist/tokens/automation/index.cjs +1 -1
  49. package/dist/tokens/automation/index.js +1 -1
  50. package/dist/tokens/index.cjs +1 -1
  51. package/dist/tokens/index.js +1 -1
  52. package/dist/uds/generated/componentData.cjs +582 -580
  53. package/dist/uds/generated/componentData.js +579 -577
  54. package/dist/uds/generated/tailwindPurge.cjs +1688 -50
  55. package/dist/uds/generated/tailwindPurge.js +1688 -50
  56. package/dist/uds/package.cjs +1 -2
  57. package/dist/uds/package.js +1 -2
  58. package/generated/componentData.json +887 -874
  59. package/generated/tailwindPurge.ts +3 -3
  60. package/package.json +2 -3
  61. package/dist/components/Divider/DividerCore.cjs +0 -83
  62. package/dist/components/Divider/DividerCore.d.cts +0 -22
  63. package/dist/components/Divider/DividerCore.d.ts +0 -22
  64. package/dist/components/Divider/DividerCore.js +0 -81
  65. package/dist/components/Divider/DividerInternal.cjs +0 -31
  66. package/dist/components/Divider/DividerInternal.d.cts +0 -13
  67. package/dist/components/Divider/DividerInternal.d.ts +0 -13
  68. package/dist/components/Divider/DividerInternal.js +0 -29
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yahoo/uds",
3
3
  "description": "Yahoo Universal System",
4
- "version": "3.140.0",
4
+ "version": "3.142.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -239,8 +239,7 @@
239
239
  "simple-update-notifier": "^2.0.0",
240
240
  "tailwind-merge": "^2.6.0",
241
241
  "ts-morph": "^26.0.0",
242
- "type-fest": "^5.5.0",
243
- "uuid": "^14.0.0"
242
+ "type-fest": "^5.5.0"
244
243
  },
245
244
  "devDependencies": {
246
245
  "@next/env": "^16.2.4",
@@ -1,83 +0,0 @@
1
- /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- require("../../_virtual/_rolldown/runtime.cjs");
4
- const require_styles_styler = require("../../styles/styler.cjs");
5
- const require_components_Text = require("../Text.cjs");
6
- const require_components_Box = require("../Box.cjs");
7
- const require_components_HStack = require("../HStack.cjs");
8
- const require_components_VStack = require("../VStack.cjs");
9
- let react = require("react");
10
- let react_jsx_runtime = require("react/jsx-runtime");
11
- //#region src/components/Divider/DividerCore.tsx
12
- const ORIENTATION_WIDTH_MAP = {
13
- horizontal: "w-full",
14
- vertical: ""
15
- };
16
- const DividerCore = (0, react.forwardRef)(function Divider({ vertical = false, contentPosition = "center", className, slotProps, children, ...boxProps }, ref) {
17
- const direction = vertical ? "vertical" : "horizontal";
18
- const InternalComponent = vertical ? require_components_VStack.VStack : require_components_HStack.HStack;
19
- const { className: rootClassName, ...rootSlotProps } = slotProps?.root ?? {};
20
- const { className: labelClassName, ...labelSlotProps } = slotProps?.label ?? {};
21
- const { className: lineClassName, ...lineSlotProps } = slotProps?.line ?? {};
22
- const classNames = (0, react.useMemo)(() => ({
23
- root: require_styles_styler.cx(ORIENTATION_WIDTH_MAP[direction], className, rootClassName),
24
- label: labelClassName,
25
- line: lineClassName
26
- }), [
27
- className,
28
- direction,
29
- rootClassName,
30
- labelClassName,
31
- lineClassName
32
- ]);
33
- const lineStyle = (0, react.useMemo)(() => direction === "vertical" ? {
34
- borderTopWidth: 0,
35
- borderRightWidth: 0,
36
- borderBottomWidth: 0
37
- } : {
38
- borderLeftWidth: 0,
39
- borderRightWidth: 0,
40
- borderBottomWidth: 0
41
- }, [direction]);
42
- const Line = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
43
- flex: "1",
44
- className: require_styles_styler.cx(classNames.line, lineClassName),
45
- style: lineStyle,
46
- ...lineSlotProps
47
- });
48
- if (children) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(InternalComponent, {
49
- flex: "1",
50
- alignItems: "center",
51
- className: classNames.root,
52
- ref,
53
- ...boxProps,
54
- ...rootSlotProps,
55
- children: [
56
- contentPosition !== "start" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Line, {}),
57
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
58
- flex: "none",
59
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Text.Text, {
60
- as: "span",
61
- color: "inherit",
62
- variant: "inherit",
63
- className: require_styles_styler.cx(classNames.label, labelClassName),
64
- ...labelSlotProps,
65
- children
66
- })
67
- }),
68
- contentPosition !== "end" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Line, {})
69
- ]
70
- });
71
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
72
- display: "flex",
73
- flex: "none",
74
- className: classNames.root,
75
- ref,
76
- ...boxProps,
77
- ...rootSlotProps,
78
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Line, {})
79
- });
80
- });
81
- DividerCore.displayName = "DividerCore";
82
- //#endregion
83
- exports.DividerCore = DividerCore;
@@ -1,22 +0,0 @@
1
-
2
- import { UniversalDividerProps, UniversalStackProps } from "../../types/dist/index.cjs";
3
- import { BoxProps } from "../Box.cjs";
4
- import { Text } from "../Text.cjs";
5
- import * as _$react from "react";
6
- import { ComponentProps, HTMLAttributes } from "react";
7
-
8
- //#region src/components/Divider/DividerCore.d.ts
9
- type DataAttributes = {
10
- [name: `data-${string}`]: string;
11
- };
12
- interface DividerCoreProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
13
- /** Props to be passed into various slots within the component. */
14
- slotProps?: {
15
- root?: Partial<HTMLAttributes<HTMLDivElement> & DataAttributes>;
16
- label?: Partial<ComponentProps<typeof Text> & DataAttributes>;
17
- line?: Partial<HTMLAttributes<HTMLDivElement> & DataAttributes>;
18
- };
19
- }
20
- declare const DividerCore: _$react.ForwardRefExoticComponent<DividerCoreProps & _$react.RefAttributes<HTMLDivElement>>;
21
- //#endregion
22
- export { DividerCore, type DividerCoreProps };
@@ -1,22 +0,0 @@
1
-
2
- import { UniversalDividerProps, UniversalStackProps } from "../../types/dist/index.js";
3
- import { BoxProps } from "../Box.js";
4
- import { Text } from "../Text.js";
5
- import * as _$react from "react";
6
- import { ComponentProps, HTMLAttributes } from "react";
7
-
8
- //#region src/components/Divider/DividerCore.d.ts
9
- type DataAttributes = {
10
- [name: `data-${string}`]: string;
11
- };
12
- interface DividerCoreProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
13
- /** Props to be passed into various slots within the component. */
14
- slotProps?: {
15
- root?: Partial<HTMLAttributes<HTMLDivElement> & DataAttributes>;
16
- label?: Partial<ComponentProps<typeof Text> & DataAttributes>;
17
- line?: Partial<HTMLAttributes<HTMLDivElement> & DataAttributes>;
18
- };
19
- }
20
- declare const DividerCore: _$react.ForwardRefExoticComponent<DividerCoreProps & _$react.RefAttributes<HTMLDivElement>>;
21
- //#endregion
22
- export { DividerCore, type DividerCoreProps };
@@ -1,81 +0,0 @@
1
- /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
- import { cx } from "../../styles/styler.js";
3
- import { Text } from "../Text.js";
4
- import { Box } from "../Box.js";
5
- import { HStack } from "../HStack.js";
6
- import { VStack } from "../VStack.js";
7
- import { forwardRef, useMemo } from "react";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
- //#region src/components/Divider/DividerCore.tsx
10
- const ORIENTATION_WIDTH_MAP = {
11
- horizontal: "w-full",
12
- vertical: ""
13
- };
14
- const DividerCore = forwardRef(function Divider({ vertical = false, contentPosition = "center", className, slotProps, children, ...boxProps }, ref) {
15
- const direction = vertical ? "vertical" : "horizontal";
16
- const InternalComponent = vertical ? VStack : HStack;
17
- const { className: rootClassName, ...rootSlotProps } = slotProps?.root ?? {};
18
- const { className: labelClassName, ...labelSlotProps } = slotProps?.label ?? {};
19
- const { className: lineClassName, ...lineSlotProps } = slotProps?.line ?? {};
20
- const classNames = useMemo(() => ({
21
- root: cx(ORIENTATION_WIDTH_MAP[direction], className, rootClassName),
22
- label: labelClassName,
23
- line: lineClassName
24
- }), [
25
- className,
26
- direction,
27
- rootClassName,
28
- labelClassName,
29
- lineClassName
30
- ]);
31
- const lineStyle = useMemo(() => direction === "vertical" ? {
32
- borderTopWidth: 0,
33
- borderRightWidth: 0,
34
- borderBottomWidth: 0
35
- } : {
36
- borderLeftWidth: 0,
37
- borderRightWidth: 0,
38
- borderBottomWidth: 0
39
- }, [direction]);
40
- const Line = () => /* @__PURE__ */ jsx(Box, {
41
- flex: "1",
42
- className: cx(classNames.line, lineClassName),
43
- style: lineStyle,
44
- ...lineSlotProps
45
- });
46
- if (children) return /* @__PURE__ */ jsxs(InternalComponent, {
47
- flex: "1",
48
- alignItems: "center",
49
- className: classNames.root,
50
- ref,
51
- ...boxProps,
52
- ...rootSlotProps,
53
- children: [
54
- contentPosition !== "start" && /* @__PURE__ */ jsx(Line, {}),
55
- /* @__PURE__ */ jsx(Box, {
56
- flex: "none",
57
- children: /* @__PURE__ */ jsx(Text, {
58
- as: "span",
59
- color: "inherit",
60
- variant: "inherit",
61
- className: cx(classNames.label, labelClassName),
62
- ...labelSlotProps,
63
- children
64
- })
65
- }),
66
- contentPosition !== "end" && /* @__PURE__ */ jsx(Line, {})
67
- ]
68
- });
69
- return /* @__PURE__ */ jsx(Box, {
70
- display: "flex",
71
- flex: "none",
72
- className: classNames.root,
73
- ref,
74
- ...boxProps,
75
- ...rootSlotProps,
76
- children: /* @__PURE__ */ jsx(Line, {})
77
- });
78
- });
79
- DividerCore.displayName = "DividerCore";
80
- //#endregion
81
- export { DividerCore };
@@ -1,31 +0,0 @@
1
- /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- require("../../_virtual/_rolldown/runtime.cjs");
4
- const require_styles_styler = require("../../styles/styler.cjs");
5
- const require_components_Divider_DividerCore = require("./DividerCore.cjs");
6
- let react = require("react");
7
- let react_jsx_runtime = require("react/jsx-runtime");
8
- //#region src/components/Divider/DividerInternal.tsx
9
- const DividerInternal = (0, react.forwardRef)(function Divider({ variant = "primary", slotProps, ...props }, ref) {
10
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Divider_DividerCore.DividerCore, {
11
- ref,
12
- slotProps: (0, react.useMemo)(() => ({
13
- root: {
14
- ...slotProps?.root,
15
- className: require_styles_styler.cx(variant !== "inherit" && require_styles_styler.getStyles({ dividerVariantRoot: variant }), slotProps?.root?.className)
16
- },
17
- label: {
18
- ...slotProps?.label,
19
- className: require_styles_styler.cx(variant !== "inherit" ? require_styles_styler.getStyles({ dividerVariantLabel: variant }) : void 0, slotProps?.label?.className)
20
- },
21
- line: {
22
- ...slotProps?.line,
23
- className: require_styles_styler.cx(variant !== "inherit" && require_styles_styler.getStyles({ dividerVariantLine: variant }), slotProps?.line?.className)
24
- }
25
- }), [slotProps, variant]),
26
- ...props
27
- });
28
- });
29
- DividerInternal.displayName = "DividerInternal";
30
- //#endregion
31
- exports.DividerInternal = DividerInternal;
@@ -1,13 +0,0 @@
1
-
2
- import { UniversalDividerProps } from "../../types/dist/index.cjs";
3
- import { DividerCoreProps } from "./DividerCore.cjs";
4
- import * as _$react from "react";
5
-
6
- //#region src/components/Divider/DividerInternal.d.ts
7
- type VariantWithInherit = Exclude<UniversalDividerProps['variant'], undefined> | 'inherit';
8
- interface DividerInternalProps extends DividerCoreProps {
9
- variant?: VariantWithInherit;
10
- }
11
- declare const DividerInternal: _$react.ForwardRefExoticComponent<DividerInternalProps & _$react.RefAttributes<HTMLDivElement>>;
12
- //#endregion
13
- export { DividerInternal, type DividerInternalProps };
@@ -1,13 +0,0 @@
1
-
2
- import { UniversalDividerProps } from "../../types/dist/index.js";
3
- import { DividerCoreProps } from "./DividerCore.js";
4
- import * as _$react from "react";
5
-
6
- //#region src/components/Divider/DividerInternal.d.ts
7
- type VariantWithInherit = Exclude<UniversalDividerProps['variant'], undefined> | 'inherit';
8
- interface DividerInternalProps extends DividerCoreProps {
9
- variant?: VariantWithInherit;
10
- }
11
- declare const DividerInternal: _$react.ForwardRefExoticComponent<DividerInternalProps & _$react.RefAttributes<HTMLDivElement>>;
12
- //#endregion
13
- export { DividerInternal, type DividerInternalProps };
@@ -1,29 +0,0 @@
1
- /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
- import { cx, getStyles } from "../../styles/styler.js";
3
- import { DividerCore } from "./DividerCore.js";
4
- import { forwardRef, useMemo } from "react";
5
- import { jsx } from "react/jsx-runtime";
6
- //#region src/components/Divider/DividerInternal.tsx
7
- const DividerInternal = forwardRef(function Divider({ variant = "primary", slotProps, ...props }, ref) {
8
- return /* @__PURE__ */ jsx(DividerCore, {
9
- ref,
10
- slotProps: useMemo(() => ({
11
- root: {
12
- ...slotProps?.root,
13
- className: cx(variant !== "inherit" && getStyles({ dividerVariantRoot: variant }), slotProps?.root?.className)
14
- },
15
- label: {
16
- ...slotProps?.label,
17
- className: cx(variant !== "inherit" ? getStyles({ dividerVariantLabel: variant }) : void 0, slotProps?.label?.className)
18
- },
19
- line: {
20
- ...slotProps?.line,
21
- className: cx(variant !== "inherit" && getStyles({ dividerVariantLine: variant }), slotProps?.line?.className)
22
- }
23
- }), [slotProps, variant]),
24
- ...props
25
- });
26
- });
27
- DividerInternal.displayName = "DividerInternal";
28
- //#endregion
29
- export { DividerInternal };