@arcadeai/design-system 3.39.4 → 3.41.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/assets/icons/forkable.js +10 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/variables.css +1 -1
- package/dist/components/index.js +470 -465
- package/dist/components/ui/atoms/badge.js +5 -5
- package/dist/components/ui/atoms/button.js +1 -1
- package/dist/components/ui/atoms/icons/forkable.d.ts +4 -0
- package/dist/components/ui/atoms/icons/forkable.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/forkable.js +31 -0
- package/dist/components/ui/atoms/icons/index.d.ts +1 -0
- package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/index.js +220 -218
- package/dist/components/ui/atoms/index.js +369 -367
- package/dist/components/ui/atoms/switch.js +19 -19
- package/dist/components/ui/index.js +470 -465
- package/dist/components/ui/molecules/date-time-picker.js +1 -1
- package/dist/components/ui/molecules/index.d.ts +2 -0
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +30 -27
- package/dist/components/ui/molecules/steps-progress.d.ts +3 -1
- package/dist/components/ui/molecules/steps-progress.d.ts.map +1 -1
- package/dist/components/ui/molecules/steps-progress.js +153 -112
- package/dist/components/ui/molecules/tags-input.d.ts +44 -0
- package/dist/components/ui/molecules/tags-input.d.ts.map +1 -0
- package/dist/components/ui/molecules/tags-input.js +139 -0
- package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/tool-card.js +19 -22
- package/dist/components/ui/pages/login-page.js +13 -13
- package/dist/main.js +487 -482
- package/dist/metadata/toolkit-icons.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.js +158 -156
- package/dist/metadata/toolkits.d.ts.map +1 -1
- package/dist/metadata/toolkits.js +13 -0
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as T, jsx as f } from "react/jsx-runtime";
|
|
3
3
|
import { cn as E } from "../../../lib/utils.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as i from "react";
|
|
5
5
|
import { u as ce } from "../../../useControlled-Sx-_x7Sz.js";
|
|
6
6
|
import { u as le } from "../../../useStableCallback-CudqoENs.js";
|
|
7
7
|
import { f as ue, c as fe, m as pe, E as me, u as _ } from "../../../useRenderElement-DNB2vtF1.js";
|
|
@@ -14,10 +14,10 @@ import { u as Ee } from "../../../useLabelableId-DF_d91GP.js";
|
|
|
14
14
|
import { c as Ne, n as ze } from "../../../createBaseUIEventDetails-CqidROtw.js";
|
|
15
15
|
import { u as Pe } from "../../../useValueChanged-Bissqjjn.js";
|
|
16
16
|
import { a as Re } from "../../../useButton-JYPKQKj4.js";
|
|
17
|
-
const N = /* @__PURE__ */
|
|
17
|
+
const N = /* @__PURE__ */ i.createContext(void 0);
|
|
18
18
|
process.env.NODE_ENV !== "production" && (N.displayName = "SwitchRootContext");
|
|
19
19
|
function Ie() {
|
|
20
|
-
const e =
|
|
20
|
+
const e = i.useContext(N);
|
|
21
21
|
if (e === void 0)
|
|
22
22
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>." : ue(63));
|
|
23
23
|
return e;
|
|
@@ -34,7 +34,7 @@ const j = {
|
|
|
34
34
|
[L.unchecked]: ""
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
}, H = /* @__PURE__ */
|
|
37
|
+
}, H = /* @__PURE__ */ i.forwardRef(function(s, n) {
|
|
38
38
|
const {
|
|
39
39
|
checked: p,
|
|
40
40
|
className: k,
|
|
@@ -68,7 +68,7 @@ const j = {
|
|
|
68
68
|
validation: r
|
|
69
69
|
} = q(), {
|
|
70
70
|
labelId: te
|
|
71
|
-
} = xe(),
|
|
71
|
+
} = xe(), d = ee || D, o = ae ?? J, I = le(Y), c = i.useRef(null), B = fe(c, y, r.inputRef), b = i.useRef(null), V = ge(), S = Ee({
|
|
72
72
|
id: v,
|
|
73
73
|
implicit: !1,
|
|
74
74
|
controlRef: b
|
|
@@ -94,24 +94,24 @@ const j = {
|
|
|
94
94
|
getButtonProps: ne,
|
|
95
95
|
buttonRef: re
|
|
96
96
|
} = Re({
|
|
97
|
-
disabled:
|
|
97
|
+
disabled: d,
|
|
98
98
|
native: m
|
|
99
|
-
}),
|
|
99
|
+
}), de = we(g, te, c, !m, w), ie = {
|
|
100
100
|
id: m ? S : V,
|
|
101
101
|
role: "switch",
|
|
102
102
|
"aria-checked": a,
|
|
103
103
|
"aria-readonly": h || void 0,
|
|
104
104
|
"aria-required": u || void 0,
|
|
105
|
-
"aria-labelledby":
|
|
105
|
+
"aria-labelledby": de,
|
|
106
106
|
onFocus() {
|
|
107
|
-
|
|
107
|
+
d || R(!0);
|
|
108
108
|
},
|
|
109
109
|
onBlur() {
|
|
110
110
|
const t = c.current;
|
|
111
|
-
!t ||
|
|
111
|
+
!t || d || (W(!0), R(!1), A === "onBlur" && r.commit(t.checked));
|
|
112
112
|
},
|
|
113
113
|
onClick(t) {
|
|
114
|
-
h ||
|
|
114
|
+
h || d || (t.preventDefault(), c.current?.dispatchEvent(new PointerEvent("click", {
|
|
115
115
|
bubbles: !0,
|
|
116
116
|
shiftKey: t.shiftKey,
|
|
117
117
|
ctrlKey: t.ctrlKey,
|
|
@@ -119,10 +119,10 @@ const j = {
|
|
|
119
119
|
metaKey: t.metaKey
|
|
120
120
|
})));
|
|
121
121
|
}
|
|
122
|
-
}, se =
|
|
122
|
+
}, se = i.useMemo(() => pe(
|
|
123
123
|
{
|
|
124
124
|
checked: a,
|
|
125
|
-
disabled:
|
|
125
|
+
disabled: d,
|
|
126
126
|
id: w,
|
|
127
127
|
name: o,
|
|
128
128
|
required: u,
|
|
@@ -147,16 +147,16 @@ const j = {
|
|
|
147
147
|
x !== void 0 ? {
|
|
148
148
|
value: x
|
|
149
149
|
} : me
|
|
150
|
-
), [a,
|
|
150
|
+
), [a, d, B, w, o, I, u, K, r, x]), M = i.useMemo(() => ({
|
|
151
151
|
...P,
|
|
152
152
|
checked: a,
|
|
153
|
-
disabled:
|
|
153
|
+
disabled: d,
|
|
154
154
|
readOnly: h,
|
|
155
155
|
required: u
|
|
156
|
-
}), [P, a,
|
|
156
|
+
}), [P, a, d, h, u]), oe = _("span", s, {
|
|
157
157
|
state: M,
|
|
158
158
|
ref: [n, b, re],
|
|
159
|
-
props: [
|
|
159
|
+
props: [ie, r.getValidationProps, G, ne],
|
|
160
160
|
stateAttributesMapping: j
|
|
161
161
|
});
|
|
162
162
|
return /* @__PURE__ */ T(N.Provider, {
|
|
@@ -171,7 +171,7 @@ const j = {
|
|
|
171
171
|
});
|
|
172
172
|
});
|
|
173
173
|
process.env.NODE_ENV !== "production" && (H.displayName = "SwitchRoot");
|
|
174
|
-
const U = /* @__PURE__ */
|
|
174
|
+
const U = /* @__PURE__ */ i.forwardRef(function(s, n) {
|
|
175
175
|
const {
|
|
176
176
|
render: p,
|
|
177
177
|
className: k,
|
|
@@ -203,7 +203,7 @@ function Ye({
|
|
|
203
203
|
{
|
|
204
204
|
"aria-busy": n || void 0,
|
|
205
205
|
className: E(
|
|
206
|
-
"peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-
|
|
206
|
+
"peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-foreground/10 outline-none transition-all after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=sm]:h-[14px] data-[size=default]:w-[32px] data-[size=sm]:w-[24px] data-disabled:cursor-not-allowed data-checked:bg-primary data-unchecked:bg-input data-disabled:opacity-50 dark:border-transparent dark:data-unchecked:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
207
207
|
e
|
|
208
208
|
),
|
|
209
209
|
"data-loading": n || void 0,
|