@alixpartners/ui-components 2.6.0 → 2.6.2
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/{RichTextEditor-JH6YBGiw.js → RichTextEditor-xCakhho7.js} +1 -1
- package/dist/{ToastProvider-DVycF0zU.js → ToastProvider-D5LImZ-Q.js} +26 -26
- package/dist/assets/Dialog.css +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.test.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.test.js +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/Checkbox/Checkbox.test.js +1 -1
- package/dist/components/CorusHeader/CorusHeader.d.ts +1 -1
- package/dist/components/CorusHeader/CorusHeader.js +1 -1
- package/dist/components/CorusHeader/DropdownItemContent.d.ts +1 -1
- package/dist/components/CorusHeader/DropdownItemContent.js +5 -5
- package/dist/components/CorusHeader/DropdownMenu.d.ts +1 -1
- package/dist/components/CorusHeader/DropdownMenu.js +1 -1
- package/dist/components/CorusHeader/MegaMenuContent.d.ts +1 -1
- package/dist/components/CorusHeader/MegaMenuContent.js +14 -14
- package/dist/components/CorusHeader/UserProfileIcon.d.ts +1 -1
- package/dist/components/Creatable/Creatable.d.ts +1 -1
- package/dist/components/Creatable/Creatable.js +1 -1
- package/dist/components/Datepicker/Datepicker.d.ts +1 -1
- package/dist/components/Datepicker/Datepicker.js +1 -1
- package/dist/components/Datepicker/Datepicker.test.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +8 -2
- package/dist/components/Dialog/Dialog.js +227 -195
- package/dist/components/Dialog/Dialog.test.js +227 -202
- package/dist/components/DragAndDrop/DragAndDrop.d.ts +1 -1
- package/dist/components/DragAndDrop/DragAndDrop.test.js +2 -2
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/FilePicker/FilePicker.d.ts +9 -9
- package/dist/components/FilePicker/FilePicker.test.js +2 -2
- package/dist/components/Ghost/Ghost.d.ts +1 -1
- package/dist/components/Ghost/Ghost.test.js +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icons/IconsGallery.d.ts +1 -1
- package/dist/components/Illustration/Illustration.d.ts +1 -1
- package/dist/components/Illustration/Illustration.test.js +1 -1
- package/dist/components/Input/Input.test.js +1 -1
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Logos/LogosGallery.d.ts +1 -1
- package/dist/components/NavBar/NavBar.d.ts +1 -1
- package/dist/components/NavBar/NavBar.js +1 -1
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/Radio.js +9 -9
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +11 -11
- package/dist/components/RadioGroup/RadioGroup.test.js +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.js +2 -2
- package/dist/components/RichTextEditor/RichTextEditor.test.js +2 -2
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.test.js +1 -1
- package/dist/components/Spinner/Spinner.d.ts +1 -1
- package/dist/components/SplitButton/SplitButton.d.ts +1 -1
- package/dist/components/SplitButton/SplitButton.js +3 -3
- package/dist/components/SplitButton/SplitButton.test.js +1 -1
- package/dist/components/Tab/Tab.d.ts +1 -1
- package/dist/components/TabNavigation/TabNavigation.d.ts +1 -1
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.test.js +1 -1
- package/dist/components/TagsFields/TagsFields.d.ts +1 -1
- package/dist/components/TagsFields/TagsFields.js +1 -1
- package/dist/components/Textarea/Textarea.d.ts +1 -1
- package/dist/components/Textarea/Textarea.test.js +1 -1
- package/dist/components/Toast/Toast.test.js +1 -1
- package/dist/components/ToastProvider/ToastProvider.d.ts +1 -2
- package/dist/components/ToastProvider/ToastProvider.js +1 -1
- package/dist/components/ToastProvider/ToastProvider.test.js +4 -4
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Toggle/Toggle.js +126 -211
- package/dist/components/Toggle/Toggle.test.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +61 -60
- package/dist/{index-6DGSlWJb.js → index-C2s_VtSb.js} +3 -3
- package/dist/index-C8H9A55g.js +222 -0
- package/dist/{index-CcsZYEYy.js → index-CCFDXH-J.js} +28 -29
- package/dist/index-CCnm5-ML.js +230 -0
- package/dist/{index-BVZdJVFB.js → index-CFqDEbIR.js} +191 -192
- package/dist/index-CfIcUHKK.js +70 -0
- package/dist/index-ChQc_Cm6.js +1544 -0
- package/dist/index-CmGGeUr0.js +142 -0
- package/dist/{index-IR8HlW5P.js → index-D_L0ncPJ.js} +4 -4
- package/dist/{index-banDzeKa.js → index-DkTDHhag.js} +1 -1
- package/dist/index-Ii4UOx3H.js +599 -0
- package/dist/{index-6j3vTf--.js → index-Nyh2Wa71.js} +5 -5
- package/dist/index-z_kiwVc3.js +237 -0
- package/dist/main.js +3 -3
- package/dist/storybook-docs-page.d.ts +1 -1
- package/dist/{useToast-CpwrYPvx.js → useToast-Cz5MGKnw.js} +1 -1
- package/dist/{vi.bdSIJ99Y-DWCVXj6K.js → vi.bdSIJ99Y-017e_Pkz.js} +3 -3
- package/package.json +1 -1
- package/dist/index-B4szHVNJ.js +0 -248
- package/dist/index-Bq1FiX6B.js +0 -93
- package/dist/index-CE9NpYQR.js +0 -604
- package/dist/index-CHy8gqvu.js +0 -353
- package/dist/index-CarlZuEo.js +0 -1610
- package/dist/index-DH9SO8qV.js +0 -221
- package/dist/index-kgC_DL6e.js +0 -216
package/dist/index-CHy8gqvu.js
DELETED
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
import * as c from "react";
|
|
2
|
-
import { u as X, P as I, a as G, c as C, b as S } from "./index-B4szHVNJ.js";
|
|
3
|
-
import { u as Y, R as J, I as Q, c as A } from "./index-DH9SO8qV.js";
|
|
4
|
-
import { u as Z } from "./index-6j3vTf--.js";
|
|
5
|
-
import { u as $ } from "./index-BZPx6jYI.js";
|
|
6
|
-
import { P as ee } from "./index-Bq1FiX6B.js";
|
|
7
|
-
import { jsx as d, jsxs as M, Fragment as T } from "react/jsx-runtime";
|
|
8
|
-
var k = "Radio", [oe, D] = S(k), [re, E] = oe(k);
|
|
9
|
-
function x(r) {
|
|
10
|
-
const {
|
|
11
|
-
__scopeRadio: t,
|
|
12
|
-
checked: e = !1,
|
|
13
|
-
children: a,
|
|
14
|
-
disabled: o,
|
|
15
|
-
form: n,
|
|
16
|
-
name: s,
|
|
17
|
-
onCheck: u,
|
|
18
|
-
required: p,
|
|
19
|
-
value: f = "on",
|
|
20
|
-
// @ts-expect-error
|
|
21
|
-
internal_do_not_use_render: l
|
|
22
|
-
} = r, [i, R] = c.useState(null), [m, v] = c.useState(null), b = c.useRef(!1), h = i ? !!n || !!i.closest("form") : (
|
|
23
|
-
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
24
|
-
!0
|
|
25
|
-
), _ = {
|
|
26
|
-
checked: e,
|
|
27
|
-
disabled: o,
|
|
28
|
-
required: p,
|
|
29
|
-
name: s,
|
|
30
|
-
form: n,
|
|
31
|
-
value: f,
|
|
32
|
-
control: i,
|
|
33
|
-
setControl: R,
|
|
34
|
-
hasConsumerStoppedPropagationRef: b,
|
|
35
|
-
isFormControl: h,
|
|
36
|
-
bubbleInput: m,
|
|
37
|
-
setBubbleInput: v,
|
|
38
|
-
onCheck: () => u == null ? void 0 : u()
|
|
39
|
-
};
|
|
40
|
-
return /* @__PURE__ */ d(re, { scope: t, ..._, children: ae(l) ? l(_) : a });
|
|
41
|
-
}
|
|
42
|
-
var B = "RadioTrigger", y = c.forwardRef(
|
|
43
|
-
({ __scopeRadio: r, onClick: t, ...e }, a) => {
|
|
44
|
-
const {
|
|
45
|
-
checked: o,
|
|
46
|
-
disabled: n,
|
|
47
|
-
value: s,
|
|
48
|
-
setControl: u,
|
|
49
|
-
onCheck: p,
|
|
50
|
-
hasConsumerStoppedPropagationRef: f,
|
|
51
|
-
isFormControl: l,
|
|
52
|
-
bubbleInput: i
|
|
53
|
-
} = E(B, r), R = G(a, u);
|
|
54
|
-
return /* @__PURE__ */ d(
|
|
55
|
-
I.button,
|
|
56
|
-
{
|
|
57
|
-
type: "button",
|
|
58
|
-
role: "radio",
|
|
59
|
-
"aria-checked": o,
|
|
60
|
-
"data-state": q(o),
|
|
61
|
-
"data-disabled": n ? "" : void 0,
|
|
62
|
-
disabled: n,
|
|
63
|
-
value: s,
|
|
64
|
-
...e,
|
|
65
|
-
ref: R,
|
|
66
|
-
onClick: C(t, (m) => {
|
|
67
|
-
o || p(), i && l && (f.current = m.isPropagationStopped(), f.current || m.stopPropagation());
|
|
68
|
-
})
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
);
|
|
73
|
-
y.displayName = B;
|
|
74
|
-
var te = c.forwardRef(
|
|
75
|
-
(r, t) => {
|
|
76
|
-
const { __scopeRadio: e, name: a, checked: o, required: n, disabled: s, value: u, onCheck: p, form: f, ...l } = r;
|
|
77
|
-
return /* @__PURE__ */ d(
|
|
78
|
-
x,
|
|
79
|
-
{
|
|
80
|
-
__scopeRadio: e,
|
|
81
|
-
checked: o,
|
|
82
|
-
disabled: s,
|
|
83
|
-
required: n,
|
|
84
|
-
onCheck: p,
|
|
85
|
-
name: a,
|
|
86
|
-
form: f,
|
|
87
|
-
value: u,
|
|
88
|
-
internal_do_not_use_render: ({ isFormControl: i }) => /* @__PURE__ */ M(T, { children: [
|
|
89
|
-
/* @__PURE__ */ d(
|
|
90
|
-
y,
|
|
91
|
-
{
|
|
92
|
-
...l,
|
|
93
|
-
ref: t,
|
|
94
|
-
__scopeRadio: e
|
|
95
|
-
}
|
|
96
|
-
),
|
|
97
|
-
i && /* @__PURE__ */ d(
|
|
98
|
-
w,
|
|
99
|
-
{
|
|
100
|
-
__scopeRadio: e
|
|
101
|
-
}
|
|
102
|
-
)
|
|
103
|
-
] })
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
);
|
|
108
|
-
te.displayName = k;
|
|
109
|
-
var F = "RadioIndicator", O = c.forwardRef(
|
|
110
|
-
(r, t) => {
|
|
111
|
-
const { __scopeRadio: e, forceMount: a, ...o } = r, n = E(F, e);
|
|
112
|
-
return /* @__PURE__ */ d(ee, { present: a || n.checked, children: /* @__PURE__ */ d(
|
|
113
|
-
I.span,
|
|
114
|
-
{
|
|
115
|
-
"data-state": q(n.checked),
|
|
116
|
-
"data-disabled": n.disabled ? "" : void 0,
|
|
117
|
-
...o,
|
|
118
|
-
ref: t
|
|
119
|
-
}
|
|
120
|
-
) });
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
O.displayName = F;
|
|
124
|
-
var L = "RadioBubbleInput", w = c.forwardRef(
|
|
125
|
-
({ __scopeRadio: r, ...t }, e) => {
|
|
126
|
-
const {
|
|
127
|
-
control: a,
|
|
128
|
-
checked: o,
|
|
129
|
-
required: n,
|
|
130
|
-
disabled: s,
|
|
131
|
-
name: u,
|
|
132
|
-
value: p,
|
|
133
|
-
form: f,
|
|
134
|
-
bubbleInput: l,
|
|
135
|
-
setBubbleInput: i,
|
|
136
|
-
hasConsumerStoppedPropagationRef: R
|
|
137
|
-
} = E(L, r), m = G(e, i), v = $(o), b = Z(a);
|
|
138
|
-
c.useEffect(() => {
|
|
139
|
-
const _ = l;
|
|
140
|
-
if (!_) return;
|
|
141
|
-
const z = window.HTMLInputElement.prototype, N = Object.getOwnPropertyDescriptor(
|
|
142
|
-
z,
|
|
143
|
-
"checked"
|
|
144
|
-
).set, H = !R.current;
|
|
145
|
-
if (v !== o && N) {
|
|
146
|
-
const W = new Event("click", { bubbles: H });
|
|
147
|
-
N.call(_, o), _.dispatchEvent(W);
|
|
148
|
-
}
|
|
149
|
-
}, [l, v, o, R]);
|
|
150
|
-
const h = c.useRef(o);
|
|
151
|
-
return /* @__PURE__ */ d(
|
|
152
|
-
I.input,
|
|
153
|
-
{
|
|
154
|
-
type: "radio",
|
|
155
|
-
"aria-hidden": !0,
|
|
156
|
-
defaultChecked: h.current,
|
|
157
|
-
required: n,
|
|
158
|
-
disabled: s,
|
|
159
|
-
name: u,
|
|
160
|
-
value: p,
|
|
161
|
-
form: f,
|
|
162
|
-
...t,
|
|
163
|
-
tabIndex: -1,
|
|
164
|
-
ref: m,
|
|
165
|
-
style: {
|
|
166
|
-
...t.style,
|
|
167
|
-
...b,
|
|
168
|
-
position: "absolute",
|
|
169
|
-
pointerEvents: "none",
|
|
170
|
-
opacity: 0,
|
|
171
|
-
margin: 0,
|
|
172
|
-
// We transform because the input is absolutely positioned but we have
|
|
173
|
-
// rendered it **after** the button. This pulls it back to sit on top
|
|
174
|
-
// of the button.
|
|
175
|
-
transform: "translateX(-100%)"
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
);
|
|
181
|
-
w.displayName = L;
|
|
182
|
-
function ae(r) {
|
|
183
|
-
return typeof r == "function";
|
|
184
|
-
}
|
|
185
|
-
function q(r) {
|
|
186
|
-
return r ? "checked" : "unchecked";
|
|
187
|
-
}
|
|
188
|
-
var ne = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], P = "RadioGroup", [se] = S(P, [
|
|
189
|
-
A,
|
|
190
|
-
D
|
|
191
|
-
]), U = A(), g = D(), [ie, de] = se(P), ce = c.forwardRef(
|
|
192
|
-
(r, t) => {
|
|
193
|
-
const {
|
|
194
|
-
__scopeRadioGroup: e,
|
|
195
|
-
name: a,
|
|
196
|
-
defaultValue: o,
|
|
197
|
-
value: n,
|
|
198
|
-
required: s = !1,
|
|
199
|
-
disabled: u = !1,
|
|
200
|
-
orientation: p,
|
|
201
|
-
dir: f,
|
|
202
|
-
loop: l = !0,
|
|
203
|
-
onValueChange: i,
|
|
204
|
-
...R
|
|
205
|
-
} = r, m = U(e), v = Y(f), [b, h] = X({
|
|
206
|
-
prop: n,
|
|
207
|
-
defaultProp: o ?? null,
|
|
208
|
-
onChange: i,
|
|
209
|
-
caller: P
|
|
210
|
-
});
|
|
211
|
-
return /* @__PURE__ */ d(
|
|
212
|
-
ie,
|
|
213
|
-
{
|
|
214
|
-
scope: e,
|
|
215
|
-
name: a,
|
|
216
|
-
required: s,
|
|
217
|
-
disabled: u,
|
|
218
|
-
value: b,
|
|
219
|
-
onValueChange: h,
|
|
220
|
-
children: /* @__PURE__ */ d(
|
|
221
|
-
J,
|
|
222
|
-
{
|
|
223
|
-
asChild: !0,
|
|
224
|
-
...m,
|
|
225
|
-
orientation: p,
|
|
226
|
-
dir: v,
|
|
227
|
-
loop: l,
|
|
228
|
-
children: /* @__PURE__ */ d(
|
|
229
|
-
I.div,
|
|
230
|
-
{
|
|
231
|
-
role: "radiogroup",
|
|
232
|
-
"aria-required": s,
|
|
233
|
-
"aria-orientation": p,
|
|
234
|
-
"data-disabled": u ? "" : void 0,
|
|
235
|
-
dir: v,
|
|
236
|
-
...R,
|
|
237
|
-
ref: t
|
|
238
|
-
}
|
|
239
|
-
)
|
|
240
|
-
}
|
|
241
|
-
)
|
|
242
|
-
}
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
);
|
|
246
|
-
ce.displayName = P;
|
|
247
|
-
var ue = "RadioGroupItem", pe = "RadioGroupItemProvider", K = "RadioGroupItemTrigger", le = "RadioGroupItemBubbleInput";
|
|
248
|
-
function fe(r) {
|
|
249
|
-
const {
|
|
250
|
-
__scopeRadioGroup: t,
|
|
251
|
-
value: e,
|
|
252
|
-
disabled: a,
|
|
253
|
-
children: o,
|
|
254
|
-
// @ts-expect-error
|
|
255
|
-
internal_do_not_use_render: n
|
|
256
|
-
} = r, s = de(pe, t), u = g(t), p = s.disabled || a;
|
|
257
|
-
return /* @__PURE__ */ d(
|
|
258
|
-
x,
|
|
259
|
-
{
|
|
260
|
-
...u,
|
|
261
|
-
checked: s.value === e,
|
|
262
|
-
disabled: p,
|
|
263
|
-
required: s.required,
|
|
264
|
-
name: s.name,
|
|
265
|
-
value: e,
|
|
266
|
-
onCheck: () => s.onValueChange(e),
|
|
267
|
-
internal_do_not_use_render: n,
|
|
268
|
-
children: o
|
|
269
|
-
}
|
|
270
|
-
);
|
|
271
|
-
}
|
|
272
|
-
var V = c.forwardRef((r, t) => {
|
|
273
|
-
const { __scopeRadioGroup: e, ...a } = r, o = U(e), n = g(e), { checked: s, disabled: u } = E(K, n.__scopeRadio), p = c.useRef(null), f = G(t, p), l = c.useRef(!1);
|
|
274
|
-
return c.useEffect(() => {
|
|
275
|
-
const i = (m) => {
|
|
276
|
-
ne.includes(m.key) && (l.current = !0);
|
|
277
|
-
}, R = () => l.current = !1;
|
|
278
|
-
return document.addEventListener("keydown", i), document.addEventListener("keyup", R), () => {
|
|
279
|
-
document.removeEventListener("keydown", i), document.removeEventListener("keyup", R);
|
|
280
|
-
};
|
|
281
|
-
}, []), /* @__PURE__ */ d(
|
|
282
|
-
Q,
|
|
283
|
-
{
|
|
284
|
-
asChild: !0,
|
|
285
|
-
...o,
|
|
286
|
-
focusable: !u,
|
|
287
|
-
active: s,
|
|
288
|
-
children: /* @__PURE__ */ d(
|
|
289
|
-
y,
|
|
290
|
-
{
|
|
291
|
-
...n,
|
|
292
|
-
...a,
|
|
293
|
-
ref: f,
|
|
294
|
-
onKeyDown: C(a.onKeyDown, (i) => {
|
|
295
|
-
i.key === "Enter" && i.preventDefault();
|
|
296
|
-
}),
|
|
297
|
-
onFocus: C(a.onFocus, () => {
|
|
298
|
-
var i;
|
|
299
|
-
l.current && ((i = p.current) == null || i.click());
|
|
300
|
-
})
|
|
301
|
-
}
|
|
302
|
-
)
|
|
303
|
-
}
|
|
304
|
-
);
|
|
305
|
-
});
|
|
306
|
-
V.displayName = K;
|
|
307
|
-
var Re = c.forwardRef(
|
|
308
|
-
(r, t) => {
|
|
309
|
-
const { __scopeRadioGroup: e, value: a, disabled: o, ...n } = r;
|
|
310
|
-
return /* @__PURE__ */ d(
|
|
311
|
-
fe,
|
|
312
|
-
{
|
|
313
|
-
__scopeRadioGroup: e,
|
|
314
|
-
value: a,
|
|
315
|
-
disabled: o,
|
|
316
|
-
internal_do_not_use_render: ({ isFormControl: s }) => /* @__PURE__ */ M(T, { children: [
|
|
317
|
-
/* @__PURE__ */ d(
|
|
318
|
-
V,
|
|
319
|
-
{
|
|
320
|
-
...n,
|
|
321
|
-
ref: t,
|
|
322
|
-
__scopeRadioGroup: e
|
|
323
|
-
}
|
|
324
|
-
),
|
|
325
|
-
s && /* @__PURE__ */ d(
|
|
326
|
-
j,
|
|
327
|
-
{
|
|
328
|
-
__scopeRadioGroup: e
|
|
329
|
-
}
|
|
330
|
-
)
|
|
331
|
-
] })
|
|
332
|
-
}
|
|
333
|
-
);
|
|
334
|
-
}
|
|
335
|
-
);
|
|
336
|
-
Re.displayName = ue;
|
|
337
|
-
var j = c.forwardRef((r, t) => {
|
|
338
|
-
const { __scopeRadioGroup: e, ...a } = r, o = g(e);
|
|
339
|
-
return /* @__PURE__ */ d(w, { ...o, ...a, ref: t });
|
|
340
|
-
});
|
|
341
|
-
j.displayName = le;
|
|
342
|
-
var me = "RadioGroupIndicator", ve = c.forwardRef(
|
|
343
|
-
(r, t) => {
|
|
344
|
-
const { __scopeRadioGroup: e, ...a } = r, o = g(e);
|
|
345
|
-
return /* @__PURE__ */ d(O, { ...o, ...a, ref: t });
|
|
346
|
-
}
|
|
347
|
-
);
|
|
348
|
-
ve.displayName = me;
|
|
349
|
-
export {
|
|
350
|
-
Re as R,
|
|
351
|
-
ve as a,
|
|
352
|
-
ce as b
|
|
353
|
-
};
|