@yahoo/uds 3.141.0 → 3.143.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/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 +1 -1
- package/dist/automated-config/dist/utils/index.js +1 -1
- package/dist/components/Divider/Divider.cjs +86 -5
- package/dist/components/Divider/Divider.d.cts +15 -4
- package/dist/components/Divider/Divider.d.ts +15 -4
- package/dist/components/Divider/Divider.js +88 -7
- package/dist/components/Divider/DividerLabel.cjs +30 -0
- package/dist/components/Divider/DividerLabel.d.cts +18 -0
- package/dist/components/Divider/DividerLabel.d.ts +18 -0
- package/dist/components/Divider/DividerLabel.js +28 -0
- package/dist/components/Divider/DividerLine.cjs +41 -0
- package/dist/components/Divider/DividerLine.d.cts +19 -0
- package/dist/components/Divider/DividerLine.d.ts +19 -0
- package/dist/components/Divider/DividerLine.js +39 -0
- package/dist/components/Divider/index.cjs +4 -0
- package/dist/components/Divider/index.d.cts +4 -1
- package/dist/components/Divider/index.d.ts +4 -1
- package/dist/components/Divider/index.js +3 -1
- package/dist/components/Divider/types.cjs +1 -0
- package/dist/components/Divider/types.d.cts +38 -0
- package/dist/components/Divider/types.d.ts +38 -0
- package/dist/components/Divider/types.js +1 -0
- package/dist/components/Divider/utils.cjs +33 -0
- package/dist/components/Divider/utils.d.cts +11 -0
- package/dist/components/Divider/utils.d.ts +11 -0
- package/dist/components/Divider/utils.js +29 -0
- package/dist/components/client/Menu/Menu.Divider.cjs +2 -2
- package/dist/components/client/Menu/Menu.Divider.js +2 -2
- package/dist/components/index.cjs +6 -0
- package/dist/components/index.d.cts +3 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +5 -1
- package/dist/index.cjs +5 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -2
- package/dist/tailwind/dist/automated-config/dist/mapTextVariantFixtureToValue.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/properties.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/assertUnreachable.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/generateDefaultClassName.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/generateSchemaKey.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/index.cjs +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/index.js +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/index.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/mapColorFixtureToValue.js.map +1 -1
- package/dist/tailwind/dist/cli/dist/lib/logger.js.map +1 -1
- package/dist/tailwind/dist/cli/dist/lib/print.js.map +1 -1
- package/dist/tailwind/dist/cli/dist/lib/spinner.js.map +1 -1
- package/dist/tailwind/dist/commands/css.helpers.js.map +1 -1
- package/dist/tailwind/dist/commands/css.js.map +1 -1
- package/dist/tailwind/dist/commands/generateComponentData.js.map +1 -1
- package/dist/tailwind/dist/commands/generatePurgeCSSData.js.map +1 -1
- package/dist/tailwind/dist/commands/purge.js.map +1 -1
- package/dist/tailwind/dist/css/generate.helpers.js.map +1 -1
- package/dist/tailwind/dist/css/generate.js.map +1 -1
- package/dist/tailwind/dist/css/nodeUtils.js.map +1 -1
- package/dist/tailwind/dist/css/perf.js.map +1 -1
- package/dist/tailwind/dist/css/postcss.helpers.js.map +1 -1
- package/dist/tailwind/dist/css/postcss.js.map +1 -1
- package/dist/tailwind/dist/css/purgeWorker.js.map +1 -1
- package/dist/tailwind/dist/css/runner.helpers.js.map +1 -1
- package/dist/tailwind/dist/css/runner.js.map +1 -1
- package/dist/tailwind/dist/css/utils.js.map +1 -1
- package/dist/tailwind/dist/css/workerPool.js.map +1 -1
- package/dist/tailwind/dist/css-tokens/dist/index.js.map +1 -1
- package/dist/tailwind/dist/fixtures/dist/index.cjs +0 -10
- package/dist/tailwind/dist/fixtures/dist/index.js +0 -10
- package/dist/tailwind/dist/fixtures/dist/index.js.map +1 -1
- package/dist/tailwind/dist/modes/dist/index.cjs +1 -0
- package/dist/tailwind/dist/modes/dist/index.js +1 -0
- package/dist/tailwind/dist/modes/dist/index.js.map +1 -1
- package/dist/tailwind/dist/plugin.js.map +1 -1
- package/dist/tailwind/dist/purger/legacy/purgeCSS.js.map +1 -1
- package/dist/tailwind/dist/purger/legacy/purgeFromCode.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/ast/expressions.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/purge.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/purgeFromCode.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/utils/files.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/utils/safelist.js.map +1 -1
- package/dist/tailwind/dist/runtimeConfig/hookMetadata.js.map +1 -1
- package/dist/tailwind/dist/tailwind/base/addColorModeVars.js.map +1 -1
- package/dist/tailwind/dist/tailwind/base/addColorModeVarsV2.js.map +1 -1
- package/dist/tailwind/dist/tailwind/base/addFontFaceDeclarations.js.map +1 -1
- package/dist/tailwind/dist/tailwind/base/addFontVars.js.map +1 -1
- package/dist/tailwind/dist/tailwind/base/addMotionVars.js.map +1 -1
- package/dist/tailwind/dist/tailwind/base/addScaleModeVars.js.map +1 -1
- package/dist/tailwind/dist/tailwind/components/getFocusRingStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/components/getHitTargetStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/components/getIconStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/components/getInputStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/components/getResponsiveTextStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/a11y.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/blurBgFallback.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/borderRadius.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/borderWidth.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/breakpoints.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/colors.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/components.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/elevation.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/getTailwindAsUdsColors.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/icons.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/input.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/motion.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/nestedBorderRadius.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/scaleMode.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/shadows.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/sizing.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/typography.js.map +1 -1
- package/dist/tailwind/dist/tailwind/theme/getFontFamilyTheme.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/addFontsPlugin.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/composeTailwindPlugins.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getColorModeStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getElevationStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getFontFaceDeclarations.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getFontStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getMotionStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getNestedBorderRadiusUtilities.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getScaleModeStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getShadowPresetValues.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getShadowStyles.js.map +1 -1
- package/dist/tailwind/dist/utils/assertUnreachable.js.map +1 -1
- package/dist/tailwind/dist/utils/entries.js.map +1 -1
- package/dist/tailwind/dist/utils/entryPoints.js.map +1 -1
- package/dist/tailwind/dist/utils/fromEntries.js.map +1 -1
- package/dist/tailwind/dist/utils/generatePurgeCSSData.js.map +1 -1
- package/dist/tailwind/dist/utils/mapValues.js.map +1 -1
- package/dist/tailwind/dist/utils/opacity.js.map +1 -1
- package/dist/tailwind/dist/utils/optimizeCSS.js.map +1 -1
- package/dist/tailwind/dist/utils/parseTokens.js.map +1 -1
- package/dist/tailwind/dist/utils/postcssPreserveVars.js.map +1 -1
- package/dist/tailwind/dist/utils/tsMorph.js.map +1 -1
- package/dist/tokens/automation/index.cjs +1 -1
- package/dist/tokens/automation/index.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.js +1 -1
- package/dist/uds/generated/componentData.cjs +333 -331
- package/dist/uds/generated/componentData.js +330 -328
- package/dist/uds/generated/tailwindPurge.cjs +1691 -50
- package/dist/uds/generated/tailwindPurge.js +1691 -50
- package/dist/uds/package.cjs +2 -2
- package/dist/uds/package.js +2 -2
- package/generated/componentData.json +599 -586
- package/generated/tailwindPurge.ts +3 -3
- package/package.json +3 -3
- package/dist/components/Divider/DividerCore.cjs +0 -83
- package/dist/components/Divider/DividerCore.d.cts +0 -22
- package/dist/components/Divider/DividerCore.d.ts +0 -22
- package/dist/components/Divider/DividerCore.js +0 -81
- package/dist/components/Divider/DividerInternal.cjs +0 -31
- package/dist/components/Divider/DividerInternal.d.cts +0 -13
- package/dist/components/Divider/DividerInternal.d.ts +0 -13
- 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.
|
|
4
|
+
"version": "3.143.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -266,10 +266,10 @@
|
|
|
266
266
|
"chalk": "^5.6.2",
|
|
267
267
|
"concurrently": "^9.2.1",
|
|
268
268
|
"eslint-config-custom": "workspace:*",
|
|
269
|
-
"rolldown": "^1.0.0
|
|
269
|
+
"rolldown": "^1.0.0",
|
|
270
270
|
"tailwindcss": "^3.4.19",
|
|
271
271
|
"tsconfig": "workspace:*",
|
|
272
|
-
"tsdown": "^0.
|
|
272
|
+
"tsdown": "^0.22.0",
|
|
273
273
|
"typescript": "^5.9.3"
|
|
274
274
|
},
|
|
275
275
|
"peerDependencies": {
|
|
@@ -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 };
|