@alfadocs/ui-kit 0.24.0 → 0.25.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.
- 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 +140 -102
- 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,191 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as n, useContext as V, useState as u, useCallback as k, createContext as R } from "react";
|
|
3
|
-
import { c as d } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as _ } from "react-i18next";
|
|
5
|
-
import { I as T } from "./icon-button-C4CGcYuz.js";
|
|
6
|
-
import { C as P } from "./check-DPdL_Sm7.js";
|
|
7
|
-
import { C as j } from "./copy-B00HK7tj.js";
|
|
8
|
-
const f = R({
|
|
9
|
-
layout: "inline",
|
|
10
|
-
density: "default",
|
|
11
|
-
divider: "none"
|
|
12
|
-
}), A = d("ds:flex ds:flex-col", {
|
|
13
|
-
variants: {
|
|
14
|
-
layout: {
|
|
15
|
-
inline: "",
|
|
16
|
-
stacked: "",
|
|
17
|
-
responsive: ""
|
|
18
|
-
},
|
|
19
|
-
density: {
|
|
20
|
-
default: "ds:gap-[var(--spacing-md)]",
|
|
21
|
-
compact: "ds:gap-[var(--spacing-sm)]"
|
|
22
|
-
},
|
|
23
|
-
divider: {
|
|
24
|
-
none: "",
|
|
25
|
-
between: "",
|
|
26
|
-
bordered: ""
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
layout: "inline",
|
|
31
|
-
density: "default",
|
|
32
|
-
divider: "none"
|
|
33
|
-
}
|
|
34
|
-
}), I = d("", {
|
|
35
|
-
variants: {
|
|
36
|
-
layout: {
|
|
37
|
-
inline: "ds:grid ds:gap-[var(--spacing-md)]",
|
|
38
|
-
stacked: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
39
|
-
responsive: "ds:grid ds:gap-[var(--spacing-md)] ds:max-sm:flex ds:max-sm:flex-col ds:max-sm:gap-[var(--spacing-xs)]"
|
|
40
|
-
},
|
|
41
|
-
divider: {
|
|
42
|
-
none: "",
|
|
43
|
-
between: "ds:[&:not(:last-child)]:border-b ds:[&:not(:last-child)]:border-[color:var(--border)] ds:[&:not(:last-child)]:pb-[var(--spacing-md)]",
|
|
44
|
-
bordered: "ds:border ds:border-[color:var(--border)] ds:rounded-[var(--radius-sm)] ds:p-[var(--spacing-sm)]"
|
|
45
|
-
},
|
|
46
|
-
copyable: {
|
|
47
|
-
true: "",
|
|
48
|
-
false: ""
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
compoundVariants: [
|
|
52
|
-
{
|
|
53
|
-
layout: "inline",
|
|
54
|
-
copyable: !1,
|
|
55
|
-
className: "ds:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
layout: "inline",
|
|
59
|
-
copyable: !0,
|
|
60
|
-
className: "ds:grid-cols-[minmax(0,1fr)_minmax(0,2fr)_auto]"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
layout: "responsive",
|
|
64
|
-
copyable: !1,
|
|
65
|
-
className: "ds:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
layout: "responsive",
|
|
69
|
-
copyable: !0,
|
|
70
|
-
className: "ds:grid-cols-[minmax(0,1fr)_minmax(0,2fr)_auto]"
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
defaultVariants: {
|
|
74
|
-
layout: "inline",
|
|
75
|
-
divider: "none",
|
|
76
|
-
copyable: !1
|
|
77
|
-
}
|
|
78
|
-
}), v = n(
|
|
79
|
-
({
|
|
80
|
-
layout: e = "inline",
|
|
81
|
-
density: s = "default",
|
|
82
|
-
divider: a = "none",
|
|
83
|
-
className: i,
|
|
84
|
-
children: l,
|
|
85
|
-
...c
|
|
86
|
-
}, m) => /* @__PURE__ */ t(f.Provider, { value: { layout: e, density: s, divider: a }, children: /* @__PURE__ */ t(
|
|
87
|
-
"dl",
|
|
88
|
-
{
|
|
89
|
-
ref: m,
|
|
90
|
-
className: A({
|
|
91
|
-
layout: e,
|
|
92
|
-
density: s,
|
|
93
|
-
divider: a,
|
|
94
|
-
className: i
|
|
95
|
-
}),
|
|
96
|
-
"data-component": "description-list",
|
|
97
|
-
...c,
|
|
98
|
-
children: l
|
|
99
|
-
}
|
|
100
|
-
) })
|
|
101
|
-
);
|
|
102
|
-
v.displayName = "DescriptionList";
|
|
103
|
-
const y = n(
|
|
104
|
-
({ copyable: e = !1, copyText: s, copyLabel: a, className: i, children: l, ...c }, m) => {
|
|
105
|
-
const { layout: g, divider: w } = V(f), { t: r } = _(), [D, p] = u(!1), [L, o] = u(""), N = k(async () => {
|
|
106
|
-
if (s)
|
|
107
|
-
try {
|
|
108
|
-
await navigator.clipboard.writeText(s), p(!0), o(r("keyValuePair.copied")), setTimeout(() => {
|
|
109
|
-
p(!1), o("");
|
|
110
|
-
}, 2e3);
|
|
111
|
-
} catch {
|
|
112
|
-
o(r("keyValuePair.notAvailable")), setTimeout(() => o(""), 3e3);
|
|
113
|
-
}
|
|
114
|
-
}, [s, r]), h = r("keyValuePair.copy", {
|
|
115
|
-
label: a ?? s ?? ""
|
|
116
|
-
});
|
|
117
|
-
return /* @__PURE__ */ C(
|
|
118
|
-
"div",
|
|
119
|
-
{
|
|
120
|
-
ref: m,
|
|
121
|
-
className: I({
|
|
122
|
-
layout: g,
|
|
123
|
-
divider: w,
|
|
124
|
-
copyable: e,
|
|
125
|
-
className: i
|
|
126
|
-
}),
|
|
127
|
-
...c,
|
|
128
|
-
children: [
|
|
129
|
-
l,
|
|
130
|
-
e && /* @__PURE__ */ t(
|
|
131
|
-
T,
|
|
132
|
-
{
|
|
133
|
-
icon: D ? /* @__PURE__ */ t(P, {}) : /* @__PURE__ */ t(j, {}),
|
|
134
|
-
size: "sm",
|
|
135
|
-
"aria-label": h,
|
|
136
|
-
onClick: N,
|
|
137
|
-
intent: "ghost",
|
|
138
|
-
className: "ds:self-start"
|
|
139
|
-
}
|
|
140
|
-
),
|
|
141
|
-
e && /* @__PURE__ */ t("span", { role: "status", className: "ds:sr-only", children: L })
|
|
142
|
-
]
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
);
|
|
147
|
-
y.displayName = "DescriptionList.Row";
|
|
148
|
-
const z = d(
|
|
149
|
-
"type-label ds:text-[color:var(--muted-foreground)] ds:text-start ds:[overflow-wrap:anywhere] ds:[word-break:normal]"
|
|
150
|
-
), B = d(
|
|
151
|
-
"type-body ds:text-[color:var(--foreground)] ds:m-0 ds:[overflow-wrap:anywhere] ds:[word-break:normal]",
|
|
152
|
-
{
|
|
153
|
-
variants: {
|
|
154
|
-
numeric: {
|
|
155
|
-
true: "ds:text-end",
|
|
156
|
-
false: "ds:text-start"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
defaultVariants: {
|
|
160
|
-
numeric: !1
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
), x = n(
|
|
164
|
-
({ className: e, ...s }, a) => /* @__PURE__ */ t(
|
|
165
|
-
"dt",
|
|
166
|
-
{
|
|
167
|
-
ref: a,
|
|
168
|
-
className: z({ className: e }),
|
|
169
|
-
...s
|
|
170
|
-
}
|
|
171
|
-
)
|
|
172
|
-
);
|
|
173
|
-
x.displayName = "DescriptionList.Term";
|
|
174
|
-
const b = n(({ numeric: e = !1, className: s, ...a }, i) => /* @__PURE__ */ t(
|
|
175
|
-
"dd",
|
|
176
|
-
{
|
|
177
|
-
ref: i,
|
|
178
|
-
className: B({ numeric: e, className: s }),
|
|
179
|
-
...a
|
|
180
|
-
}
|
|
181
|
-
));
|
|
182
|
-
b.displayName = "DescriptionList.Detail";
|
|
183
|
-
const J = Object.assign(v, {
|
|
184
|
-
Row: y,
|
|
185
|
-
Term: x,
|
|
186
|
-
Detail: b
|
|
187
|
-
});
|
|
188
|
-
export {
|
|
189
|
-
J as D
|
|
190
|
-
};
|
|
191
|
-
//# sourceMappingURL=description-list-y7Hk51KI.js.map
|