@yahoo/uds 3.126.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automated-config/dist/generated/autoVariants.cjs +25 -0
- package/dist/automated-config/dist/generated/autoVariants.d.cts +7 -0
- package/dist/automated-config/dist/generated/autoVariants.d.ts +7 -0
- package/dist/automated-config/dist/generated/autoVariants.js +25 -0
- package/dist/automated-config/dist/generated/generatedConfigs.cjs +3181 -0
- package/dist/automated-config/dist/generated/generatedConfigs.d.cts +305 -1
- package/dist/automated-config/dist/generated/generatedConfigs.d.ts +305 -1
- package/dist/automated-config/dist/generated/generatedConfigs.js +3180 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +754 -0
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +3 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.ts +3 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +754 -0
- package/dist/automated-config/dist/properties.cjs +12 -0
- package/dist/automated-config/dist/properties.d.cts +4 -0
- package/dist/automated-config/dist/properties.d.ts +4 -0
- package/dist/automated-config/dist/properties.js +12 -0
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
- package/dist/automated-config/dist/utils/index.cjs +103 -6
- package/dist/automated-config/dist/utils/index.js +103 -6
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
- package/dist/components/client/Tabs/Tab.cjs +80 -0
- package/dist/components/client/Tabs/Tab.d.cts +20 -0
- package/dist/components/client/Tabs/Tab.d.ts +21 -0
- package/dist/components/client/Tabs/Tab.js +78 -0
- package/dist/components/client/Tabs/TabList.cjs +132 -0
- package/dist/components/client/Tabs/TabList.d.cts +9 -0
- package/dist/components/client/Tabs/TabList.d.ts +10 -0
- package/dist/components/client/Tabs/TabList.js +130 -0
- package/dist/components/client/Tabs/TabPanel.cjs +22 -0
- package/dist/components/client/Tabs/TabPanel.d.cts +9 -0
- package/dist/components/client/Tabs/TabPanel.d.ts +10 -0
- package/dist/components/client/Tabs/TabPanel.js +20 -0
- package/dist/components/client/Tabs/Tabs.cjs +53 -0
- package/dist/components/client/Tabs/Tabs.d.cts +45 -0
- package/dist/components/client/Tabs/Tabs.d.ts +46 -0
- package/dist/components/client/Tabs/Tabs.js +51 -0
- package/dist/components/client/Tabs/index.cjs +12 -0
- package/dist/components/client/Tabs/index.d.cts +7 -0
- package/dist/components/client/Tabs/index.d.ts +8 -0
- package/dist/components/client/Tabs/index.js +8 -0
- package/dist/components/client/Tabs/tabsContext.cjs +18 -0
- package/dist/components/client/Tabs/tabsContext.d.cts +15 -0
- package/dist/components/client/Tabs/tabsContext.d.ts +16 -0
- package/dist/components/client/Tabs/tabsContext.js +15 -0
- package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +5 -5
- package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +5 -5
- package/dist/components/client/index.cjs +8 -0
- package/dist/components/client/index.d.cts +7 -1
- package/dist/components/client/index.d.ts +7 -1
- package/dist/components/client/index.js +5 -1
- package/dist/components/experimental/client/index.cjs +0 -5
- package/dist/components/experimental/client/index.d.cts +1 -2
- package/dist/components/experimental/client/index.d.ts +1 -2
- package/dist/components/experimental/client/index.js +1 -2
- package/dist/components/experimental/index.cjs +0 -9
- package/dist/components/experimental/index.d.cts +1 -2
- package/dist/components/experimental/index.d.ts +1 -2
- package/dist/components/experimental/index.js +1 -6
- package/dist/components/index.cjs +12 -0
- package/dist/components/index.d.cts +6 -1
- package/dist/components/index.d.ts +6 -1
- package/dist/components/index.js +9 -1
- package/dist/config/dist/index.cjs +824 -2
- package/dist/config/dist/index.js +824 -2
- package/dist/index.cjs +10 -0
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +6 -2
- package/dist/styles/styler.d.cts +59 -52
- package/dist/styles/styler.d.ts +59 -52
- package/dist/styles/variants.d.cts +29 -0
- package/dist/styles/variants.d.ts +29 -0
- package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.cjs +25 -0
- package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.js +25 -0
- package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.cjs +3181 -0
- package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.js +3180 -1
- package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/properties.cjs +12 -0
- package/dist/tailwind/dist/automated-config/dist/properties.js +12 -0
- package/dist/tailwind/dist/automated-config/dist/properties.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/index.cjs +103 -6
- package/dist/tailwind/dist/automated-config/dist/utils/index.js +103 -6
- package/dist/tailwind/dist/automated-config/dist/utils/index.js.map +1 -1
- package/dist/tailwind/dist/config/dist/index.cjs +824 -2
- package/dist/tailwind/dist/config/dist/index.js +824 -2
- package/dist/tailwind/dist/config/dist/index.js.map +1 -1
- package/dist/tailwind/dist/css/utils.cjs +3 -1
- package/dist/tailwind/dist/css/utils.js +3 -1
- package/dist/tailwind/dist/css/utils.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.cjs +36 -2
- package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.js +36 -2
- package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/components.cjs +2 -0
- package/dist/tailwind/dist/tailwind/plugins/components.js +3 -1
- package/dist/tailwind/dist/tailwind/plugins/components.js.map +1 -1
- 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/automation/configs/index.cjs +2 -0
- package/dist/tokens/automation/configs/index.d.cts +2 -2
- package/dist/tokens/automation/configs/index.d.ts +2 -2
- package/dist/tokens/automation/configs/index.js +2 -2
- package/dist/tokens/automation/index.cjs +2 -0
- package/dist/tokens/automation/index.d.cts +2 -2
- package/dist/tokens/automation/index.d.ts +2 -2
- package/dist/tokens/automation/index.js +2 -2
- package/dist/tokens/index.cjs +2 -0
- package/dist/tokens/index.d.cts +3 -3
- package/dist/tokens/index.d.ts +3 -3
- package/dist/tokens/index.js +2 -2
- package/dist/tokens/types.d.cts +2 -2
- package/dist/tokens/types.d.ts +2 -2
- package/dist/types/dist/index.d.cts +52 -1
- package/dist/types/dist/index.d.ts +52 -1
- package/dist/uds/generated/componentData.cjs +1197 -1089
- package/dist/uds/generated/componentData.js +1180 -1090
- package/dist/uds/generated/tailwindPurge.cjs +22 -43
- package/dist/uds/generated/tailwindPurge.js +22 -43
- package/generated/componentData.json +1759 -1649
- package/generated/tailwindPurge.ts +4 -4
- package/package.json +1 -1
- package/dist/components/experimental/client/Tabs.cjs +0 -76
- package/dist/components/experimental/client/Tabs.d.cts +0 -31
- package/dist/components/experimental/client/Tabs.d.ts +0 -32
- package/dist/components/experimental/client/Tabs.js +0 -71
package/package.json
CHANGED
|
@@ -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 };
|