@arcadeai/design-system 2.3.0 → 3.0.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/{arcade-DzMbb7xi.js → arcade-CHE48l2C.js} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/ui/atoms/accordion.js +16 -16
- package/dist/components/ui/atoms/alert-dialog.js +25 -25
- package/dist/components/ui/atoms/avatar.js +7 -7
- package/dist/components/ui/atoms/checkbox.js +34 -34
- package/dist/components/ui/atoms/dropdown-menu.js +31 -31
- package/dist/components/ui/atoms/hover-card.js +19 -19
- package/dist/components/ui/atoms/popover.js +9 -9
- package/dist/components/ui/atoms/progress.js +11 -11
- package/dist/components/ui/atoms/radio-group.js +29 -29
- package/dist/components/ui/atoms/resizable.js +1 -1
- package/dist/components/ui/atoms/scroll-area.js +40 -40
- package/dist/components/ui/atoms/select.js +17 -17
- package/dist/components/ui/atoms/sidebar.js +4 -1
- package/dist/components/ui/atoms/slider.js +35 -35
- package/dist/components/ui/atoms/switch.js +15 -15
- package/dist/components/ui/atoms/tabs.js +13 -13
- package/dist/components/ui/atoms/tooltip.js +22 -22
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +6 -5
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/toolkit-picker-trigger.js +20 -23
- package/dist/components/ui/molecules/toolkit-selection-summary.js +16 -19
- package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.js +6 -6
- package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.js +9 -12
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +12 -11
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +5 -4
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +4 -7
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.js +5 -4
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.js +21 -21
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +19 -23
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +1773 -1729
- package/dist/components/ui/utils/memo.test.js +1 -1
- package/dist/lib/arcade/arcade.js +1 -1
- package/dist/lib/arcade/arcade.test.js +2 -2
- package/dist/lib/utils.test.js +1 -1
- package/dist/main.js +195 -188
- package/dist/metadata/index.d.ts +1 -0
- package/dist/metadata/index.js +23 -16
- package/dist/metadata/toolkit-icons.d.ts +27 -0
- package/dist/metadata/toolkit-icons.js +227 -0
- package/dist/metadata/toolkits.js +341 -643
- package/dist/metadata/types.d.ts +1 -3
- package/dist/metadata/utils.d.ts +15 -0
- package/dist/metadata/utils.js +15 -8
- package/dist/{react-resizable-panels.browser-DggUboAp.js → react-resizable-panels.browser-31wAXhAV.js} +2 -1
- package/dist/{react.esm-DUaR5u-J.js → react.esm-I5_wjDW6.js} +17509 -15389
- package/dist/{toolkit-card-BWuG_NJi.js → toolkit-card-nuE_5OvN.js} +4 -3
- package/dist/{vi.bdSIJ99Y-Bs-viS39.js → vi.bdSIJ99Y-DBnM2VfT.js} +1296 -1315
- package/package.json +34 -34
- package/dist/components/ui/atoms/icons/utils.d.ts +0 -43
- package/dist/components/ui/atoms/icons/utils.js +0 -33
package/dist/components/index.js
CHANGED
|
@@ -148,7 +148,7 @@ import { Textarea as Qm } from "./ui/atoms/textarea.js";
|
|
|
148
148
|
import { Toggle as Ym, toggleVariants as jm } from "./ui/atoms/toggle.js";
|
|
149
149
|
import { Tooltip as _m, TooltipContent as $m, TooltipProvider as oi, TooltipTrigger as ri } from "./ui/atoms/tooltip.js";
|
|
150
150
|
import { EmptyState as ti } from "./ui/molecules/empty-state.js";
|
|
151
|
-
import { R as ai, T as mi } from "../toolkit-card-
|
|
151
|
+
import { R as ai, T as mi } from "../toolkit-card-nuE_5OvN.js";
|
|
152
152
|
import { ToolCard as li } from "./ui/molecules/tool-card.js";
|
|
153
153
|
import { ToolkitPickerTrigger as xi } from "./ui/molecules/toolkit-picker-trigger.js";
|
|
154
154
|
import { ToolkitSelectionSummary as di } from "./ui/molecules/toolkit-selection-summary.js";
|
|
@@ -10,14 +10,14 @@ import { c as V, R as oe, T as re, b as te } from "../../../index-BDIfjxqB.js";
|
|
|
10
10
|
import { u as ne } from "../../../index-Cv867SGx.js";
|
|
11
11
|
import { u as ce } from "../../../index-ByaXH_ih.js";
|
|
12
12
|
import { ChevronDownIcon as ae } from "lucide-react";
|
|
13
|
-
import { c as
|
|
14
|
-
var d = "Accordion", ie = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [
|
|
13
|
+
import { c as E } from "../../../utils-Db4QWi-E.js";
|
|
14
|
+
var d = "Accordion", ie = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [S, se, le] = X(d), [b] = W(d, [
|
|
15
15
|
le,
|
|
16
16
|
V
|
|
17
17
|
]), k = V(), H = l.forwardRef(
|
|
18
18
|
(e, n) => {
|
|
19
19
|
const { type: o, ...c } = e, a = c, r = c;
|
|
20
|
-
return /* @__PURE__ */ t(
|
|
20
|
+
return /* @__PURE__ */ t(S.Provider, { scope: e.__scopeAccordion, children: o === "multiple" ? /* @__PURE__ */ t(fe, { ...r, ref: n }) : /* @__PURE__ */ t(ue, { ...a, ref: n }) });
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
H.displayName = d;
|
|
@@ -122,7 +122,7 @@ var [K, de] = b(d), [$, pe] = b(
|
|
|
122
122
|
disabled: c,
|
|
123
123
|
direction: a,
|
|
124
124
|
orientation: r,
|
|
125
|
-
children: /* @__PURE__ */ t(
|
|
125
|
+
children: /* @__PURE__ */ t(S.Slot, { scope: o, children: /* @__PURE__ */ t(
|
|
126
126
|
M.div,
|
|
127
127
|
{
|
|
128
128
|
...s,
|
|
@@ -183,7 +183,7 @@ G.displayName = L;
|
|
|
183
183
|
var y = "AccordionTrigger", U = l.forwardRef(
|
|
184
184
|
(e, n) => {
|
|
185
185
|
const { __scopeAccordion: o, ...c } = e, a = h(d, o), r = D(y, o), s = pe(y, o), i = k(o);
|
|
186
|
-
return /* @__PURE__ */ t(
|
|
186
|
+
return /* @__PURE__ */ t(S.ItemSlot, { scope: o, children: /* @__PURE__ */ t(
|
|
187
187
|
re,
|
|
188
188
|
{
|
|
189
189
|
"aria-disabled": r.open && !s.collapsible || void 0,
|
|
@@ -223,25 +223,25 @@ function B(e) {
|
|
|
223
223
|
return e ? "open" : "closed";
|
|
224
224
|
}
|
|
225
225
|
var Ae = H, ge = z, Ce = G, be = U, he = q;
|
|
226
|
-
function
|
|
226
|
+
function Oe({
|
|
227
227
|
...e
|
|
228
228
|
}) {
|
|
229
229
|
return /* @__PURE__ */ t(Ae, { "data-slot": "accordion", ...e });
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Me({
|
|
232
232
|
className: e,
|
|
233
233
|
...n
|
|
234
234
|
}) {
|
|
235
235
|
return /* @__PURE__ */ t(
|
|
236
236
|
ge,
|
|
237
237
|
{
|
|
238
|
-
className:
|
|
238
|
+
className: E("border-b last:border-b-0", e),
|
|
239
239
|
"data-slot": "accordion-item",
|
|
240
240
|
...n
|
|
241
241
|
}
|
|
242
242
|
);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Ve({
|
|
245
245
|
className: e,
|
|
246
246
|
children: n,
|
|
247
247
|
...o
|
|
@@ -249,7 +249,7 @@ function He({
|
|
|
249
249
|
return /* @__PURE__ */ t(Ce, { className: "flex", children: /* @__PURE__ */ Q(
|
|
250
250
|
be,
|
|
251
251
|
{
|
|
252
|
-
className:
|
|
252
|
+
className: E(
|
|
253
253
|
"flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left font-medium text-sm outline-none transition-all hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
254
254
|
e
|
|
255
255
|
),
|
|
@@ -262,7 +262,7 @@ function He({
|
|
|
262
262
|
}
|
|
263
263
|
) });
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function He({
|
|
266
266
|
className: e,
|
|
267
267
|
children: n,
|
|
268
268
|
...o
|
|
@@ -273,13 +273,13 @@ function Ke({
|
|
|
273
273
|
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
274
274
|
"data-slot": "accordion-content",
|
|
275
275
|
...o,
|
|
276
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
276
|
+
children: /* @__PURE__ */ t("div", { className: E("pt-0 pb-4", e), children: n })
|
|
277
277
|
}
|
|
278
278
|
);
|
|
279
279
|
}
|
|
280
280
|
export {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
281
|
+
Oe as Accordion,
|
|
282
|
+
He as AccordionContent,
|
|
283
|
+
Me as AccordionItem,
|
|
284
|
+
Ve as AccordionTrigger
|
|
285
285
|
};
|
|
@@ -6,7 +6,7 @@ import { c as A, R as I, P as z, O as F, T as L, W as j, C as G, b as W, D as k,
|
|
|
6
6
|
import { c as H } from "../../../index-B695uy69.js";
|
|
7
7
|
import { buttonVariants as v } from "./button.js";
|
|
8
8
|
import { c as s } from "../../../utils-Db4QWi-E.js";
|
|
9
|
-
var N = "AlertDialog", [V
|
|
9
|
+
var N = "AlertDialog", [V] = $(N, [
|
|
10
10
|
A
|
|
11
11
|
]), n = A(), y = (e) => {
|
|
12
12
|
const { __scopeAlertDialog: t, ...o } = e, r = n(t);
|
|
@@ -76,20 +76,20 @@ var E = "AlertDialogDescription", P = i.forwardRef((e, t) => {
|
|
|
76
76
|
return /* @__PURE__ */ a(k, { ...l, ...r, ref: t });
|
|
77
77
|
});
|
|
78
78
|
P.displayName = E;
|
|
79
|
-
var U = "AlertDialogAction",
|
|
79
|
+
var U = "AlertDialogAction", T = i.forwardRef(
|
|
80
80
|
(e, t) => {
|
|
81
81
|
const { __scopeAlertDialog: o, ...r } = e, l = n(o);
|
|
82
82
|
return /* @__PURE__ */ a(D, { ...l, ...r, ref: t });
|
|
83
83
|
}
|
|
84
84
|
);
|
|
85
|
-
|
|
86
|
-
var
|
|
85
|
+
T.displayName = U;
|
|
86
|
+
var S = "AlertDialogCancel", w = i.forwardRef(
|
|
87
87
|
(e, t) => {
|
|
88
|
-
const { __scopeAlertDialog: o, ...r } = e, { cancelRef: l } = K(
|
|
88
|
+
const { __scopeAlertDialog: o, ...r } = e, { cancelRef: l } = K(S, o), p = n(o), g = m(t, l);
|
|
89
89
|
return /* @__PURE__ */ a(D, { ...p, ...r, ref: g });
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
|
-
w.displayName =
|
|
92
|
+
w.displayName = S;
|
|
93
93
|
var X = ({ contentRef: e }) => {
|
|
94
94
|
const t = `\`${c}\` requires a description for the component to be accessible for screen reader users.
|
|
95
95
|
|
|
@@ -103,13 +103,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
103
103
|
e.current?.getAttribute("aria-describedby")
|
|
104
104
|
) || console.warn(t);
|
|
105
105
|
}, [t, e]), null;
|
|
106
|
-
}, Z = y, ee = _, te = x, ae = h, oe = C, re =
|
|
107
|
-
function
|
|
106
|
+
}, Z = y, ee = _, te = x, ae = h, oe = C, re = T, le = w, ie = b, ne = P;
|
|
107
|
+
function De({
|
|
108
108
|
...e
|
|
109
109
|
}) {
|
|
110
110
|
return /* @__PURE__ */ a(Z, { "data-slot": "alert-dialog", ...e });
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function ve({
|
|
113
113
|
...e
|
|
114
114
|
}) {
|
|
115
115
|
return /* @__PURE__ */ a(ee, { "data-slot": "alert-dialog-trigger", ...e });
|
|
@@ -135,7 +135,7 @@ function ce({
|
|
|
135
135
|
}
|
|
136
136
|
);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Ne({
|
|
139
139
|
className: e,
|
|
140
140
|
...t
|
|
141
141
|
}) {
|
|
@@ -154,7 +154,7 @@ function ye({
|
|
|
154
154
|
)
|
|
155
155
|
] });
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function ye({
|
|
158
158
|
className: e,
|
|
159
159
|
...t
|
|
160
160
|
}) {
|
|
@@ -167,7 +167,7 @@ function _e({
|
|
|
167
167
|
}
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function _e({
|
|
171
171
|
className: e,
|
|
172
172
|
...t
|
|
173
173
|
}) {
|
|
@@ -183,7 +183,7 @@ function xe({
|
|
|
183
183
|
}
|
|
184
184
|
);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function xe({
|
|
187
187
|
className: e,
|
|
188
188
|
...t
|
|
189
189
|
}) {
|
|
@@ -196,7 +196,7 @@ function he({
|
|
|
196
196
|
}
|
|
197
197
|
);
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function he({
|
|
200
200
|
className: e,
|
|
201
201
|
...t
|
|
202
202
|
}) {
|
|
@@ -209,7 +209,7 @@ function Ce({
|
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Ce({
|
|
213
213
|
className: e,
|
|
214
214
|
...t
|
|
215
215
|
}) {
|
|
@@ -221,7 +221,7 @@ function Re({
|
|
|
221
221
|
}
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Re({
|
|
225
225
|
className: e,
|
|
226
226
|
...t
|
|
227
227
|
}) {
|
|
@@ -234,15 +234,15 @@ function be({
|
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
236
|
export {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
237
|
+
De as AlertDialog,
|
|
238
|
+
Ce as AlertDialogAction,
|
|
239
|
+
Re as AlertDialogCancel,
|
|
240
|
+
Ne as AlertDialogContent,
|
|
241
|
+
he as AlertDialogDescription,
|
|
242
|
+
_e as AlertDialogFooter,
|
|
243
|
+
ye as AlertDialogHeader,
|
|
244
244
|
ce as AlertDialogOverlay,
|
|
245
245
|
se as AlertDialogPortal,
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
xe as AlertDialogTitle,
|
|
247
|
+
ve as AlertDialogTrigger
|
|
248
248
|
};
|
|
@@ -136,7 +136,7 @@ function P() {
|
|
|
136
136
|
return () => {
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
-
var R = "Avatar", [z
|
|
139
|
+
var R = "Avatar", [z] = H(R), [W, D] = z(R), k = _.forwardRef(
|
|
140
140
|
(e, t) => {
|
|
141
141
|
const { __scopeAvatar: i, ...c } = e, [o, r] = _.useState("idle");
|
|
142
142
|
return /* @__PURE__ */ g(
|
|
@@ -196,7 +196,7 @@ function Y(e, { referrerPolicy: t, crossOrigin: i }) {
|
|
|
196
196
|
}, [r, i, t]), S;
|
|
197
197
|
}
|
|
198
198
|
var J = k, Q = V, X = j;
|
|
199
|
-
function
|
|
199
|
+
function ue({
|
|
200
200
|
className: e,
|
|
201
201
|
...t
|
|
202
202
|
}) {
|
|
@@ -212,7 +212,7 @@ function se({
|
|
|
212
212
|
}
|
|
213
213
|
);
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function se({
|
|
216
216
|
className: e,
|
|
217
217
|
...t
|
|
218
218
|
}) {
|
|
@@ -225,7 +225,7 @@ function ie({
|
|
|
225
225
|
}
|
|
226
226
|
);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function ie({
|
|
229
229
|
className: e,
|
|
230
230
|
...t
|
|
231
231
|
}) {
|
|
@@ -242,7 +242,7 @@ function ce({
|
|
|
242
242
|
);
|
|
243
243
|
}
|
|
244
244
|
export {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
ue as Avatar,
|
|
246
|
+
ie as AvatarFallback,
|
|
247
|
+
se as AvatarImage
|
|
248
248
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s, jsxs as L, Fragment as O } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { u as
|
|
3
|
+
import { u as w } from "../../../index-5Bhkapwi.js";
|
|
4
4
|
import { c as H } from "../../../index-DFZozV_h.js";
|
|
5
5
|
import { c as N } from "../../../index-B695uy69.js";
|
|
6
6
|
import { u as G } from "../../../index-437EL2iq.js";
|
|
@@ -10,11 +10,11 @@ import { P as X } from "../../../index-BGfrl8IX.js";
|
|
|
10
10
|
import { P as _ } from "../../../index-CpDnqHCm.js";
|
|
11
11
|
import { CheckIcon as $ } from "lucide-react";
|
|
12
12
|
import { c as J } from "../../../utils-Db4QWi-E.js";
|
|
13
|
-
var y = "Checkbox", [Q
|
|
13
|
+
var y = "Checkbox", [Q] = H(y), [V, E] = Q(y);
|
|
14
14
|
function W(t) {
|
|
15
15
|
const {
|
|
16
16
|
__scopeCheckbox: o,
|
|
17
|
-
checked:
|
|
17
|
+
checked: c,
|
|
18
18
|
children: l,
|
|
19
19
|
defaultChecked: n,
|
|
20
20
|
disabled: e,
|
|
@@ -25,24 +25,24 @@ function W(t) {
|
|
|
25
25
|
value: k = "on",
|
|
26
26
|
// @ts-expect-error
|
|
27
27
|
internal_do_not_use_render: u
|
|
28
|
-
} = t, [p,
|
|
29
|
-
prop:
|
|
28
|
+
} = t, [p, x] = G({
|
|
29
|
+
prop: c,
|
|
30
30
|
defaultProp: n ?? !1,
|
|
31
31
|
onChange: d,
|
|
32
32
|
caller: y
|
|
33
|
-
}), [C,
|
|
33
|
+
}), [C, v] = i.useState(null), [g, r] = i.useState(null), a = i.useRef(!1), P = C ? !!f || !!C.closest("form") : (
|
|
34
34
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
35
35
|
!0
|
|
36
36
|
), R = {
|
|
37
37
|
checked: p,
|
|
38
38
|
disabled: e,
|
|
39
|
-
setChecked:
|
|
39
|
+
setChecked: x,
|
|
40
40
|
control: C,
|
|
41
|
-
setControl:
|
|
41
|
+
setControl: v,
|
|
42
42
|
name: b,
|
|
43
43
|
form: f,
|
|
44
44
|
value: k,
|
|
45
|
-
hasConsumerStoppedPropagationRef:
|
|
45
|
+
hasConsumerStoppedPropagationRef: a,
|
|
46
46
|
required: m,
|
|
47
47
|
defaultChecked: h(n) ? !1 : n,
|
|
48
48
|
isFormControl: P,
|
|
@@ -58,8 +58,8 @@ function W(t) {
|
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
var
|
|
62
|
-
({ __scopeCheckbox: t, onKeyDown: o, onClick:
|
|
61
|
+
var S = "CheckboxTrigger", B = i.forwardRef(
|
|
62
|
+
({ __scopeCheckbox: t, onKeyDown: o, onClick: c, ...l }, n) => {
|
|
63
63
|
const {
|
|
64
64
|
control: e,
|
|
65
65
|
value: f,
|
|
@@ -69,14 +69,14 @@ var w = "CheckboxTrigger", B = i.forwardRef(
|
|
|
69
69
|
setControl: k,
|
|
70
70
|
setChecked: u,
|
|
71
71
|
hasConsumerStoppedPropagationRef: p,
|
|
72
|
-
isFormControl:
|
|
72
|
+
isFormControl: x,
|
|
73
73
|
bubbleInput: C
|
|
74
|
-
} = E(
|
|
74
|
+
} = E(S, t), v = w(n, k), g = i.useRef(d);
|
|
75
75
|
return i.useEffect(() => {
|
|
76
76
|
const r = e?.form;
|
|
77
77
|
if (r) {
|
|
78
|
-
const
|
|
79
|
-
return r.addEventListener("reset",
|
|
78
|
+
const a = () => u(g.current);
|
|
79
|
+
return r.addEventListener("reset", a), () => r.removeEventListener("reset", a);
|
|
80
80
|
}
|
|
81
81
|
}, [e, u]), /* @__PURE__ */ s(
|
|
82
82
|
_.button,
|
|
@@ -90,22 +90,22 @@ var w = "CheckboxTrigger", B = i.forwardRef(
|
|
|
90
90
|
disabled: b,
|
|
91
91
|
value: f,
|
|
92
92
|
...l,
|
|
93
|
-
ref:
|
|
93
|
+
ref: v,
|
|
94
94
|
onKeyDown: N(o, (r) => {
|
|
95
95
|
r.key === "Enter" && r.preventDefault();
|
|
96
96
|
}),
|
|
97
|
-
onClick: N(
|
|
98
|
-
u((
|
|
97
|
+
onClick: N(c, (r) => {
|
|
98
|
+
u((a) => h(a) ? !0 : !a), C && x && (p.current = r.isPropagationStopped(), p.current || r.stopPropagation());
|
|
99
99
|
})
|
|
100
100
|
}
|
|
101
101
|
);
|
|
102
102
|
}
|
|
103
103
|
);
|
|
104
|
-
B.displayName =
|
|
104
|
+
B.displayName = S;
|
|
105
105
|
var M = i.forwardRef(
|
|
106
106
|
(t, o) => {
|
|
107
107
|
const {
|
|
108
|
-
__scopeCheckbox:
|
|
108
|
+
__scopeCheckbox: c,
|
|
109
109
|
name: l,
|
|
110
110
|
checked: n,
|
|
111
111
|
defaultChecked: e,
|
|
@@ -119,7 +119,7 @@ var M = i.forwardRef(
|
|
|
119
119
|
return /* @__PURE__ */ s(
|
|
120
120
|
W,
|
|
121
121
|
{
|
|
122
|
-
__scopeCheckbox:
|
|
122
|
+
__scopeCheckbox: c,
|
|
123
123
|
checked: n,
|
|
124
124
|
defaultChecked: e,
|
|
125
125
|
disabled: b,
|
|
@@ -134,13 +134,13 @@ var M = i.forwardRef(
|
|
|
134
134
|
{
|
|
135
135
|
...u,
|
|
136
136
|
ref: o,
|
|
137
|
-
__scopeCheckbox:
|
|
137
|
+
__scopeCheckbox: c
|
|
138
138
|
}
|
|
139
139
|
),
|
|
140
140
|
p && /* @__PURE__ */ s(
|
|
141
141
|
j,
|
|
142
142
|
{
|
|
143
|
-
__scopeCheckbox:
|
|
143
|
+
__scopeCheckbox: c
|
|
144
144
|
}
|
|
145
145
|
)
|
|
146
146
|
] })
|
|
@@ -151,7 +151,7 @@ var M = i.forwardRef(
|
|
|
151
151
|
M.displayName = y;
|
|
152
152
|
var T = "CheckboxIndicator", q = i.forwardRef(
|
|
153
153
|
(t, o) => {
|
|
154
|
-
const { __scopeCheckbox:
|
|
154
|
+
const { __scopeCheckbox: c, forceMount: l, ...n } = t, e = E(T, c);
|
|
155
155
|
return /* @__PURE__ */ s(
|
|
156
156
|
X,
|
|
157
157
|
{
|
|
@@ -172,7 +172,7 @@ var T = "CheckboxIndicator", q = i.forwardRef(
|
|
|
172
172
|
);
|
|
173
173
|
q.displayName = T;
|
|
174
174
|
var A = "CheckboxBubbleInput", j = i.forwardRef(
|
|
175
|
-
({ __scopeCheckbox: t, ...o },
|
|
175
|
+
({ __scopeCheckbox: t, ...o }, c) => {
|
|
176
176
|
const {
|
|
177
177
|
control: l,
|
|
178
178
|
hasConsumerStoppedPropagationRef: n,
|
|
@@ -184,20 +184,20 @@ var A = "CheckboxBubbleInput", j = i.forwardRef(
|
|
|
184
184
|
value: k,
|
|
185
185
|
form: u,
|
|
186
186
|
bubbleInput: p,
|
|
187
|
-
setBubbleInput:
|
|
188
|
-
} = E(A, t), C =
|
|
187
|
+
setBubbleInput: x
|
|
188
|
+
} = E(A, t), C = w(c, x), v = K(e), g = U(l);
|
|
189
189
|
i.useEffect(() => {
|
|
190
|
-
const
|
|
191
|
-
if (!
|
|
190
|
+
const a = p;
|
|
191
|
+
if (!a) return;
|
|
192
192
|
const P = window.HTMLInputElement.prototype, I = Object.getOwnPropertyDescriptor(
|
|
193
193
|
P,
|
|
194
194
|
"checked"
|
|
195
195
|
).set, D = !n.current;
|
|
196
|
-
if (
|
|
196
|
+
if (v !== e && I) {
|
|
197
197
|
const F = new Event("click", { bubbles: D });
|
|
198
|
-
|
|
198
|
+
a.indeterminate = h(e), I.call(a, h(e) ? !1 : e), a.dispatchEvent(F);
|
|
199
199
|
}
|
|
200
|
-
}, [p,
|
|
200
|
+
}, [p, v, e, n]);
|
|
201
201
|
const r = i.useRef(h(e) ? !1 : e);
|
|
202
202
|
return /* @__PURE__ */ s(
|
|
203
203
|
_.input,
|
|
@@ -239,7 +239,7 @@ function h(t) {
|
|
|
239
239
|
function z(t) {
|
|
240
240
|
return h(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function ue({
|
|
243
243
|
className: t,
|
|
244
244
|
...o
|
|
245
245
|
}) {
|
|
@@ -264,5 +264,5 @@ function le({
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
export {
|
|
267
|
-
|
|
267
|
+
ue as Checkbox
|
|
268
268
|
};
|
|
@@ -596,7 +596,7 @@ function pt(e, t) {
|
|
|
596
596
|
function L(e) {
|
|
597
597
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
598
598
|
}
|
|
599
|
-
var ft = Ie, mt = oe, vt = Ee, gt = ye, Mt = ce, ht = Ne, wt = H, Ct = Ae, _t = ke, Rt = Ge, bt = Ke, xt = $e, Dt = Ue, St = Be, It = Ve, Pt = Xe, W = "DropdownMenu", [Et
|
|
599
|
+
var ft = Ie, mt = oe, vt = Ee, gt = ye, Mt = ce, ht = Ne, wt = H, Ct = Ae, _t = ke, Rt = Ge, bt = Ke, xt = $e, Dt = Ue, St = Be, It = Ve, Pt = Xe, W = "DropdownMenu", [Et] = he(
|
|
600
600
|
W,
|
|
601
601
|
[xe]
|
|
602
602
|
), h = xe(), [yt, He] = Et(W), We = (e) => {
|
|
@@ -780,17 +780,17 @@ var Vt = "DropdownMenuSubContent", ln = s.forwardRef((e, t) => {
|
|
|
780
780
|
});
|
|
781
781
|
ln.displayName = Vt;
|
|
782
782
|
var jt = We, Xt = qe, pn = Je, Yt = en, Ht = nn, Wt = tn, Zt = on, qt = rn, Jt = an, Qt = sn, fn = cn, eo = un, no = zt, to = dn, oo = ln;
|
|
783
|
-
function
|
|
783
|
+
function Ro({
|
|
784
784
|
...e
|
|
785
785
|
}) {
|
|
786
786
|
return /* @__PURE__ */ r(jt, { "data-slot": "dropdown-menu", ...e });
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function bo({
|
|
789
789
|
...e
|
|
790
790
|
}) {
|
|
791
791
|
return /* @__PURE__ */ r(pn, { "data-slot": "dropdown-menu-portal", ...e });
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function xo({
|
|
794
794
|
...e
|
|
795
795
|
}) {
|
|
796
796
|
return /* @__PURE__ */ r(
|
|
@@ -801,7 +801,7 @@ function Do({
|
|
|
801
801
|
}
|
|
802
802
|
);
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function Do({
|
|
805
805
|
className: e,
|
|
806
806
|
sideOffset: t = 4,
|
|
807
807
|
...n
|
|
@@ -819,12 +819,12 @@ function So({
|
|
|
819
819
|
}
|
|
820
820
|
) });
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function So({
|
|
823
823
|
...e
|
|
824
824
|
}) {
|
|
825
825
|
return /* @__PURE__ */ r(Ht, { "data-slot": "dropdown-menu-group", ...e });
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function Io({
|
|
828
828
|
className: e,
|
|
829
829
|
inset: t,
|
|
830
830
|
variant: n = "default",
|
|
@@ -844,7 +844,7 @@ function Po({
|
|
|
844
844
|
}
|
|
845
845
|
);
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function Po({
|
|
848
848
|
className: e,
|
|
849
849
|
children: t,
|
|
850
850
|
checked: n,
|
|
@@ -867,7 +867,7 @@ function Eo({
|
|
|
867
867
|
}
|
|
868
868
|
);
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function Eo({
|
|
871
871
|
...e
|
|
872
872
|
}) {
|
|
873
873
|
return /* @__PURE__ */ r(
|
|
@@ -878,7 +878,7 @@ function yo({
|
|
|
878
878
|
}
|
|
879
879
|
);
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function yo({
|
|
882
882
|
className: e,
|
|
883
883
|
children: t,
|
|
884
884
|
...n
|
|
@@ -899,7 +899,7 @@ function No({
|
|
|
899
899
|
}
|
|
900
900
|
);
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function No({
|
|
903
903
|
className: e,
|
|
904
904
|
inset: t,
|
|
905
905
|
...n
|
|
@@ -917,7 +917,7 @@ function To({
|
|
|
917
917
|
}
|
|
918
918
|
);
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function To({
|
|
921
921
|
className: e,
|
|
922
922
|
...t
|
|
923
923
|
}) {
|
|
@@ -930,7 +930,7 @@ function Ao({
|
|
|
930
930
|
}
|
|
931
931
|
);
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function Ao({
|
|
934
934
|
className: e,
|
|
935
935
|
...t
|
|
936
936
|
}) {
|
|
@@ -946,12 +946,12 @@ function Oo({
|
|
|
946
946
|
}
|
|
947
947
|
);
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function Oo({
|
|
950
950
|
...e
|
|
951
951
|
}) {
|
|
952
952
|
return /* @__PURE__ */ r(no, { "data-slot": "dropdown-menu-sub", ...e });
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function ko({
|
|
955
955
|
className: e,
|
|
956
956
|
inset: t,
|
|
957
957
|
children: n,
|
|
@@ -974,7 +974,7 @@ function Lo({
|
|
|
974
974
|
}
|
|
975
975
|
);
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function Lo({
|
|
978
978
|
className: e,
|
|
979
979
|
...t
|
|
980
980
|
}) {
|
|
@@ -991,19 +991,19 @@ function Go({
|
|
|
991
991
|
);
|
|
992
992
|
}
|
|
993
993
|
export {
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
994
|
+
Ro as DropdownMenu,
|
|
995
|
+
Po as DropdownMenuCheckboxItem,
|
|
996
|
+
Do as DropdownMenuContent,
|
|
997
|
+
So as DropdownMenuGroup,
|
|
998
|
+
Io as DropdownMenuItem,
|
|
999
|
+
No as DropdownMenuLabel,
|
|
1000
|
+
bo as DropdownMenuPortal,
|
|
1001
|
+
Eo as DropdownMenuRadioGroup,
|
|
1002
|
+
yo as DropdownMenuRadioItem,
|
|
1003
|
+
To as DropdownMenuSeparator,
|
|
1004
|
+
Ao as DropdownMenuShortcut,
|
|
1005
|
+
Oo as DropdownMenuSub,
|
|
1006
|
+
Lo as DropdownMenuSubContent,
|
|
1007
|
+
ko as DropdownMenuSubTrigger,
|
|
1008
|
+
xo as DropdownMenuTrigger
|
|
1009
1009
|
};
|