@alfadocs/ui-kit 0.24.0 → 0.25.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/_chunks/{card-CWzuTLYE.js → card-C353dU-H.js} +21 -13
- package/dist/_chunks/carousel.agent-DnPiqijR.js +1733 -0
- package/dist/_chunks/{contact-card-DTQUMetD.js → contact-card-CjG7c-1q.js} +2 -2
- package/dist/_chunks/description-list-Bsga4IW8.js +309 -0
- package/dist/_chunks/{locale-picker-CYBhgSHR.js → locale-picker-BxEUUPW7.js} +212 -149
- package/dist/_chunks/{timeline-Czeqr3HF.js → timeline-jmd7lfDf.js} +19 -12
- package/dist/_chunks/{workflow-map-712GL-8u.js → workflow-map-BR6txfFX.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/carousel.d.ts +21 -0
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/description-list/description-list.d.ts +40 -0
- package/dist/components/description-list/index.d.ts +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/header-settings/index.js +123 -96
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/index.js +6 -6
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/carousel.agent-CQPFfppK.js +0 -1696
- package/dist/_chunks/description-list-y7Hk51KI.js +0 -191
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as t, useId as B, useState as k, useCallback as v, useContext as I, createContext as _ } from "react";
|
|
3
3
|
import { Slot as F } from "@radix-ui/react-slot";
|
|
4
4
|
import { c as M } from "./index-D2ZczOXr.js";
|
|
5
|
-
const u =
|
|
5
|
+
const u = _({
|
|
6
6
|
headerId: "",
|
|
7
7
|
interactive: !1,
|
|
8
8
|
registerHeader: () => {
|
|
@@ -45,7 +45,7 @@ const u = I({
|
|
|
45
45
|
stretch: !1
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
), m =
|
|
48
|
+
), m = t(
|
|
49
49
|
({
|
|
50
50
|
variant: r = "default",
|
|
51
51
|
interactive: e = !1,
|
|
@@ -57,10 +57,10 @@ const u = I({
|
|
|
57
57
|
onKeyDown: c,
|
|
58
58
|
...C
|
|
59
59
|
}, x) => {
|
|
60
|
-
const f = B(), [w, y] =
|
|
60
|
+
const f = B(), [w, y] = k(!1), N = v(() => y(!0), []), j = e ? {
|
|
61
61
|
...i ? {} : { role: "button", tabIndex: 0 },
|
|
62
|
-
onKeyDown: (
|
|
63
|
-
e && (
|
|
62
|
+
onKeyDown: (o) => {
|
|
63
|
+
e && (o.key === "Enter" || o.key === " ") && (o.preventDefault(), o.currentTarget.click()), c == null || c(o);
|
|
64
64
|
},
|
|
65
65
|
onClick: s
|
|
66
66
|
} : { onClick: s }, H = i ? F : e ? "div" : "article";
|
|
@@ -90,9 +90,9 @@ const u = I({
|
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
m.displayName = "Card";
|
|
93
|
-
const p =
|
|
93
|
+
const p = t(
|
|
94
94
|
({ className: r, ...e }, a) => {
|
|
95
|
-
const { headerId: i, registerHeader: l } =
|
|
95
|
+
const { headerId: i, registerHeader: l } = I(u), n = v(
|
|
96
96
|
(s) => {
|
|
97
97
|
s && l(), typeof a == "function" ? a(s) : a && (a.current = s);
|
|
98
98
|
},
|
|
@@ -105,7 +105,15 @@ const p = o(
|
|
|
105
105
|
id: i,
|
|
106
106
|
className: [
|
|
107
107
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:p-[var(--spacing-md)] ds:pb-0",
|
|
108
|
-
|
|
108
|
+
// Wrap policy for header text content. Scoped to DIRECT children
|
|
109
|
+
// (h1–h6 / p / div) and using `break-word` instead of `anywhere`
|
|
110
|
+
// so natural-language titles wrap at word boundaries first; only
|
|
111
|
+
// genuinely unbreakable strings (URLs, hashes) break mid-word
|
|
112
|
+
// when they'd otherwise overflow. The previous `[&_*]:` cascade
|
|
113
|
+
// applied `overflow-wrap: anywhere` to every descendant, which
|
|
114
|
+
// chopped natural-language labels mid-character inside narrow
|
|
115
|
+
// contexts (DescriptionList rows in a Carousel slide).
|
|
116
|
+
"ds:[&>*]:break-normal ds:[&>*]:[overflow-wrap:break-word]",
|
|
109
117
|
r
|
|
110
118
|
].filter(Boolean).join(" "),
|
|
111
119
|
...e
|
|
@@ -114,7 +122,7 @@ const p = o(
|
|
|
114
122
|
}
|
|
115
123
|
);
|
|
116
124
|
p.displayName = "Card.Header";
|
|
117
|
-
const g =
|
|
125
|
+
const g = t(
|
|
118
126
|
({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
119
127
|
"div",
|
|
120
128
|
{
|
|
@@ -128,7 +136,7 @@ const g = o(
|
|
|
128
136
|
)
|
|
129
137
|
);
|
|
130
138
|
g.displayName = "Card.Media";
|
|
131
|
-
const h =
|
|
139
|
+
const h = t(
|
|
132
140
|
({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
133
141
|
"div",
|
|
134
142
|
{
|
|
@@ -139,7 +147,7 @@ const h = o(
|
|
|
139
147
|
)
|
|
140
148
|
);
|
|
141
149
|
h.displayName = "Card.Body";
|
|
142
|
-
const b =
|
|
150
|
+
const b = t(
|
|
143
151
|
({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
144
152
|
"div",
|
|
145
153
|
{
|
|
@@ -162,4 +170,4 @@ const O = Object.assign(m, {
|
|
|
162
170
|
export {
|
|
163
171
|
O as C
|
|
164
172
|
};
|
|
165
|
-
//# sourceMappingURL=card-
|
|
173
|
+
//# sourceMappingURL=card-C353dU-H.js.map
|