@yahoo/uds 3.126.0 → 3.127.1

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 (131) hide show
  1. package/dist/automated-config/dist/generated/autoVariants.cjs +25 -0
  2. package/dist/automated-config/dist/generated/autoVariants.d.cts +7 -0
  3. package/dist/automated-config/dist/generated/autoVariants.d.ts +7 -0
  4. package/dist/automated-config/dist/generated/autoVariants.js +25 -0
  5. package/dist/automated-config/dist/generated/generatedConfigs.cjs +3181 -0
  6. package/dist/automated-config/dist/generated/generatedConfigs.d.cts +305 -1
  7. package/dist/automated-config/dist/generated/generatedConfigs.d.ts +305 -1
  8. package/dist/automated-config/dist/generated/generatedConfigs.js +3180 -1
  9. package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +754 -0
  10. package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +3 -1
  11. package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.ts +3 -1
  12. package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +754 -0
  13. package/dist/automated-config/dist/properties.cjs +12 -0
  14. package/dist/automated-config/dist/properties.d.cts +4 -0
  15. package/dist/automated-config/dist/properties.d.ts +4 -0
  16. package/dist/automated-config/dist/properties.js +12 -0
  17. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
  18. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
  19. package/dist/automated-config/dist/utils/index.cjs +103 -6
  20. package/dist/automated-config/dist/utils/index.js +103 -6
  21. package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
  22. package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
  23. package/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +1 -1
  24. package/dist/components/client/Popover/UDSPopoverConfigProvider.d.ts +1 -1
  25. package/dist/components/client/Tabs/Tab.cjs +80 -0
  26. package/dist/components/client/Tabs/Tab.d.cts +20 -0
  27. package/dist/components/client/Tabs/Tab.d.ts +21 -0
  28. package/dist/components/client/Tabs/Tab.js +78 -0
  29. package/dist/components/client/Tabs/TabList.cjs +132 -0
  30. package/dist/components/client/Tabs/TabList.d.cts +9 -0
  31. package/dist/components/client/Tabs/TabList.d.ts +10 -0
  32. package/dist/components/client/Tabs/TabList.js +130 -0
  33. package/dist/components/client/Tabs/TabPanel.cjs +22 -0
  34. package/dist/components/client/Tabs/TabPanel.d.cts +9 -0
  35. package/dist/components/client/Tabs/TabPanel.d.ts +10 -0
  36. package/dist/components/client/Tabs/TabPanel.js +20 -0
  37. package/dist/components/client/Tabs/Tabs.cjs +53 -0
  38. package/dist/components/client/Tabs/Tabs.d.cts +45 -0
  39. package/dist/components/client/Tabs/Tabs.d.ts +46 -0
  40. package/dist/components/client/Tabs/Tabs.js +51 -0
  41. package/dist/components/client/Tabs/index.cjs +12 -0
  42. package/dist/components/client/Tabs/index.d.cts +7 -0
  43. package/dist/components/client/Tabs/index.d.ts +8 -0
  44. package/dist/components/client/Tabs/index.js +8 -0
  45. package/dist/components/client/Tabs/tabsContext.cjs +18 -0
  46. package/dist/components/client/Tabs/tabsContext.d.cts +15 -0
  47. package/dist/components/client/Tabs/tabsContext.d.ts +16 -0
  48. package/dist/components/client/Tabs/tabsContext.js +15 -0
  49. package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +5 -5
  50. package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +5 -5
  51. package/dist/components/client/index.cjs +8 -0
  52. package/dist/components/client/index.d.cts +7 -1
  53. package/dist/components/client/index.d.ts +7 -1
  54. package/dist/components/client/index.js +5 -1
  55. package/dist/components/experimental/client/index.cjs +0 -5
  56. package/dist/components/experimental/client/index.d.cts +1 -2
  57. package/dist/components/experimental/client/index.d.ts +1 -2
  58. package/dist/components/experimental/client/index.js +1 -2
  59. package/dist/components/experimental/index.cjs +0 -9
  60. package/dist/components/experimental/index.d.cts +1 -2
  61. package/dist/components/experimental/index.d.ts +1 -2
  62. package/dist/components/experimental/index.js +1 -6
  63. package/dist/components/index.cjs +12 -0
  64. package/dist/components/index.d.cts +6 -1
  65. package/dist/components/index.d.ts +6 -1
  66. package/dist/components/index.js +9 -1
  67. package/dist/config/dist/index.cjs +824 -2
  68. package/dist/config/dist/index.js +824 -2
  69. package/dist/index.cjs +10 -0
  70. package/dist/index.d.cts +8 -3
  71. package/dist/index.d.ts +8 -3
  72. package/dist/index.js +6 -2
  73. package/dist/styles/styler.d.cts +97 -90
  74. package/dist/styles/styler.d.ts +97 -90
  75. package/dist/styles/variants.d.cts +29 -0
  76. package/dist/styles/variants.d.ts +29 -0
  77. package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.cjs +25 -0
  78. package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.js +25 -0
  79. package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.js.map +1 -1
  80. package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.cjs +3181 -0
  81. package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.js +3180 -1
  82. package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.js.map +1 -1
  83. package/dist/tailwind/dist/automated-config/dist/properties.cjs +12 -0
  84. package/dist/tailwind/dist/automated-config/dist/properties.js +12 -0
  85. package/dist/tailwind/dist/automated-config/dist/properties.js.map +1 -1
  86. package/dist/tailwind/dist/automated-config/dist/utils/index.cjs +103 -6
  87. package/dist/tailwind/dist/automated-config/dist/utils/index.js +103 -6
  88. package/dist/tailwind/dist/automated-config/dist/utils/index.js.map +1 -1
  89. package/dist/tailwind/dist/config/dist/index.cjs +824 -2
  90. package/dist/tailwind/dist/config/dist/index.js +824 -2
  91. package/dist/tailwind/dist/config/dist/index.js.map +1 -1
  92. package/dist/tailwind/dist/css/utils.cjs +3 -1
  93. package/dist/tailwind/dist/css/utils.js +3 -1
  94. package/dist/tailwind/dist/css/utils.js.map +1 -1
  95. package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.cjs +36 -2
  96. package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.js +36 -2
  97. package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.js.map +1 -1
  98. package/dist/tailwind/dist/tailwind/plugins/components.cjs +2 -0
  99. package/dist/tailwind/dist/tailwind/plugins/components.js +3 -1
  100. package/dist/tailwind/dist/tailwind/plugins/components.js.map +1 -1
  101. package/dist/tailwind/dist/types/dist/index.d.cts.map +1 -1
  102. package/dist/tailwind/dist/types/dist/index.d.ts.map +1 -1
  103. package/dist/tokens/automation/configs/index.cjs +2 -0
  104. package/dist/tokens/automation/configs/index.d.cts +2 -2
  105. package/dist/tokens/automation/configs/index.d.ts +2 -2
  106. package/dist/tokens/automation/configs/index.js +2 -2
  107. package/dist/tokens/automation/index.cjs +2 -0
  108. package/dist/tokens/automation/index.d.cts +2 -2
  109. package/dist/tokens/automation/index.d.ts +2 -2
  110. package/dist/tokens/automation/index.js +2 -2
  111. package/dist/tokens/index.cjs +2 -0
  112. package/dist/tokens/index.d.cts +3 -3
  113. package/dist/tokens/index.d.ts +3 -3
  114. package/dist/tokens/index.js +2 -2
  115. package/dist/tokens/types.d.cts +2 -2
  116. package/dist/tokens/types.d.ts +2 -2
  117. package/dist/types/dist/index.d.cts +52 -1
  118. package/dist/types/dist/index.d.ts +52 -1
  119. package/dist/uds/generated/componentData.cjs +1457 -1349
  120. package/dist/uds/generated/componentData.js +1448 -1358
  121. package/dist/uds/generated/tailwindPurge.cjs +22 -43
  122. package/dist/uds/generated/tailwindPurge.js +22 -43
  123. package/dist/uds/package.cjs +2 -2
  124. package/dist/uds/package.js +2 -2
  125. package/generated/componentData.json +1808 -1698
  126. package/generated/tailwindPurge.ts +4 -4
  127. package/package.json +3 -3
  128. package/dist/components/experimental/client/Tabs.cjs +0 -76
  129. package/dist/components/experimental/client/Tabs.d.cts +0 -31
  130. package/dist/components/experimental/client/Tabs.d.ts +0 -32
  131. package/dist/components/experimental/client/Tabs.js +0 -71
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yahoo/uds",
3
3
  "description": "Yahoo Universal System",
4
- "version": "3.126.0",
4
+ "version": "3.127.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -223,7 +223,7 @@
223
223
  "typecheck:uds": "tsc -p . --noEmit"
224
224
  },
225
225
  "dependencies": {
226
- "@ariakit/react": "^0.4.20",
226
+ "@ariakit/react": "^0.4.25",
227
227
  "autoprefixer": "^10.4.27",
228
228
  "clsx": "^2.1.1",
229
229
  "fast-glob": "^3.3.3",
@@ -243,7 +243,7 @@
243
243
  "uuid": "^13.0.0"
244
244
  },
245
245
  "devDependencies": {
246
- "@next/env": "^16.2.1",
246
+ "@next/env": "^16.2.3",
247
247
  "@optimize-lodash/transform": "^3.0.6",
248
248
  "@types/bun": "1.3.11",
249
249
  "@types/lodash": "^4.17.24",
@@ -1,76 +0,0 @@
1
- /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
- "use client";
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
- const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
5
- const require_styles_styler = require('../../../styles/styler.cjs');
6
- const require_utils_createSlot = require('../../../utils/createSlot.cjs');
7
- const require_components_client_Pressable = require('../../client/Pressable.cjs');
8
- const require_components_Icon = require('../../Icon.cjs');
9
- const require_components_Text = require('../../Text.cjs');
10
- let react = require("react");
11
- let react_jsx_runtime = require("react/jsx-runtime");
12
- let _ariakit_react = require("@ariakit/react");
13
-
14
- //#region src/components/experimental/client/Tabs.tsx
15
- const Slot = require_utils_createSlot.createSlot();
16
- function Tabs(props) {
17
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react.TabProvider, { ...props });
18
- }
19
- Tabs.displayName = "Tabs";
20
- const TabList = (0, react.forwardRef)(function TabList({ className, ...props }, ref) {
21
- const styles = require_styles_styler.getStyles({
22
- display: "flex",
23
- flexDirection: "row",
24
- columnGap: "6",
25
- className
26
- });
27
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react.TabList, {
28
- ref,
29
- ...props,
30
- className: styles
31
- });
32
- });
33
- TabList.displayName = "TabList";
34
- const Tab = function Tab({ asChild, label, value, startIcon }) {
35
- const Comp = asChild ? Slot : "button";
36
- const styles = require_styles_styler.getStyles({});
37
- if (!(0, _ariakit_react.useTabContext)()) throw new Error("Tab must be wrapped in a Tabs component");
38
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react.Tab, {
39
- id: value,
40
- className: styles,
41
- render: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_Pressable.Pressable, {
42
- borderBottomWidth: "medium",
43
- spacingBottom: "1",
44
- spacingTop: "4",
45
- className: require_styles_styler.cx("text-tertiary", "border-b-transparent", "aria-selected:border-b-brand", "aria-selected:text-secondary"),
46
- asChild: true,
47
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Comp, { children: [startIcon ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Icon.Icon, {
48
- name: startIcon,
49
- className: "text-current",
50
- size: "md"
51
- }) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Text.Text, {
52
- className: "text-current",
53
- variant: "headline1",
54
- as: "span",
55
- children: label
56
- })] })
57
- })
58
- });
59
- };
60
- Tab.displayName = "Tab";
61
- const TabPanel = (0, react.forwardRef)(function TabPanel(props, ref) {
62
- const store = (0, _ariakit_react.useTabContext)();
63
- if (!store) throw new Error("TabPanel must be wrapped in a Tabs component");
64
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react.TabPanel, {
65
- ref,
66
- tabId: store.useState("selectedId"),
67
- ...props
68
- });
69
- });
70
- TabPanel.displayName = "TabPanel";
71
-
72
- //#endregion
73
- exports.Tab = Tab;
74
- exports.TabList = TabList;
75
- exports.TabPanel = TabPanel;
76
- exports.Tabs = Tabs;
@@ -1,31 +0,0 @@
1
-
2
- import { IconProps } from "../../Icon.cjs";
3
- import "../../index.cjs";
4
- import * as react from "react";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
6
- import { TabListProps, TabPanelProps, TabProviderProps as TabsProps } from "@ariakit/react";
7
-
8
- //#region src/components/experimental/client/Tabs.d.ts
9
- interface TabProps extends React.PropsWithChildren {
10
- asChild?: boolean;
11
- value: string;
12
- label: string;
13
- startIcon?: IconProps['name'];
14
- }
15
- declare function Tabs(props: TabsProps): react_jsx_runtime0.JSX.Element;
16
- declare namespace Tabs {
17
- var displayName: string;
18
- }
19
- declare const TabList: react.ForwardRefExoticComponent<Omit<TabListProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
20
- declare const Tab: {
21
- ({
22
- asChild,
23
- label,
24
- value,
25
- startIcon
26
- }: TabProps): react_jsx_runtime0.JSX.Element;
27
- displayName: string;
28
- };
29
- declare const TabPanel: react.ForwardRefExoticComponent<Omit<TabPanelProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
30
- //#endregion
31
- export { Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps };
@@ -1,32 +0,0 @@
1
-
2
- "use client";
3
- import { IconProps } from "../../Icon.js";
4
- import "../../index.js";
5
- import * as react from "react";
6
- import * as react_jsx_runtime0 from "react/jsx-runtime";
7
- import { TabListProps, TabPanelProps, TabProviderProps as TabsProps } from "@ariakit/react";
8
-
9
- //#region src/components/experimental/client/Tabs.d.ts
10
- interface TabProps extends React.PropsWithChildren {
11
- asChild?: boolean;
12
- value: string;
13
- label: string;
14
- startIcon?: IconProps['name'];
15
- }
16
- declare function Tabs(props: TabsProps): react_jsx_runtime0.JSX.Element;
17
- declare namespace Tabs {
18
- var displayName: string;
19
- }
20
- declare const TabList: react.ForwardRefExoticComponent<Omit<TabListProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
21
- declare const Tab: {
22
- ({
23
- asChild,
24
- label,
25
- value,
26
- startIcon
27
- }: TabProps): react_jsx_runtime0.JSX.Element;
28
- displayName: string;
29
- };
30
- declare const TabPanel: react.ForwardRefExoticComponent<Omit<TabPanelProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
31
- //#endregion
32
- export { Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps };
@@ -1,71 +0,0 @@
1
- /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
- "use client";
3
- import { cx, getStyles } from "../../../styles/styler.js";
4
- import { createSlot } from "../../../utils/createSlot.js";
5
- import { Pressable } from "../../client/Pressable.js";
6
- import { Icon } from "../../Icon.js";
7
- import { Text } from "../../Text.js";
8
- import { forwardRef } from "react";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
- import { Tab as Tab$1, TabList as TabList$1, TabPanel as TabPanel$1, TabProvider, useTabContext } from "@ariakit/react";
11
-
12
- //#region src/components/experimental/client/Tabs.tsx
13
- const Slot = createSlot();
14
- function Tabs(props) {
15
- return /* @__PURE__ */ jsx(TabProvider, { ...props });
16
- }
17
- Tabs.displayName = "Tabs";
18
- const TabList = forwardRef(function TabList({ className, ...props }, ref) {
19
- const styles = getStyles({
20
- display: "flex",
21
- flexDirection: "row",
22
- columnGap: "6",
23
- className
24
- });
25
- return /* @__PURE__ */ jsx(TabList$1, {
26
- ref,
27
- ...props,
28
- className: styles
29
- });
30
- });
31
- TabList.displayName = "TabList";
32
- const Tab = function Tab({ asChild, label, value, startIcon }) {
33
- const Comp = asChild ? Slot : "button";
34
- const styles = getStyles({});
35
- if (!useTabContext()) throw new Error("Tab must be wrapped in a Tabs component");
36
- return /* @__PURE__ */ jsx(Tab$1, {
37
- id: value,
38
- className: styles,
39
- render: /* @__PURE__ */ jsx(Pressable, {
40
- borderBottomWidth: "medium",
41
- spacingBottom: "1",
42
- spacingTop: "4",
43
- className: cx("text-tertiary", "border-b-transparent", "aria-selected:border-b-brand", "aria-selected:text-secondary"),
44
- asChild: true,
45
- children: /* @__PURE__ */ jsxs(Comp, { children: [startIcon ? /* @__PURE__ */ jsx(Icon, {
46
- name: startIcon,
47
- className: "text-current",
48
- size: "md"
49
- }) : null, /* @__PURE__ */ jsx(Text, {
50
- className: "text-current",
51
- variant: "headline1",
52
- as: "span",
53
- children: label
54
- })] })
55
- })
56
- });
57
- };
58
- Tab.displayName = "Tab";
59
- const TabPanel = forwardRef(function TabPanel(props, ref) {
60
- const store = useTabContext();
61
- if (!store) throw new Error("TabPanel must be wrapped in a Tabs component");
62
- return /* @__PURE__ */ jsx(TabPanel$1, {
63
- ref,
64
- tabId: store.useState("selectedId"),
65
- ...props
66
- });
67
- });
68
- TabPanel.displayName = "TabPanel";
69
-
70
- //#endregion
71
- export { Tab, TabList, TabPanel, Tabs };