welcome-ui 0.0.0-dev.1759222868187 → 0.0.0-dev.1759252708223
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/4CMBR7SL-DXQR7a9T.js +308 -0
- package/dist/{ASMQKSDT-CyLroRiC.js → ASMQKSDT-GE79MhKX.js} +12 -12
- package/dist/{AXB53BZF-DBGkYxAF.js → AXB53BZF-ClCOTGI-.js} +3 -3
- package/dist/Accordion.js +3 -3
- package/dist/{BYC7LY2E-sahp7oqU.js → BYC7LY2E-DeD1QoQl.js} +108 -108
- package/dist/Button.js +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/Drawer.js +4 -4
- package/dist/DropdownMenu.js +140 -139
- package/dist/FieldGroup.css +1 -0
- package/dist/FieldGroup.js +17 -0
- package/dist/ITI7HKP4-MlgGFEDr.js +187 -0
- package/dist/InputText.css +1 -1
- package/dist/InputText.js +34 -34
- package/dist/{JC64G2H7-oyI4lllS.js → JC64G2H7-jNBZrGfv.js} +126 -126
- package/dist/{KUU7WJ55-iyg84yrl.js → KUU7WJ55-CRa_letc.js} +1 -1
- package/dist/{LVA2YJMS-BmLXjKP9.js → LVA2YJMS-C6Bdr5Em.js} +35 -35
- package/dist/Label.js +13 -13
- package/dist/{MTZPJQMC-CEQxLFTu.js → MTZPJQMC-DgscjgO6.js} +2 -2
- package/dist/Modal.js +3 -3
- package/dist/{NLEBE274-BPGIVzin.js → NLEBE274-BlP1TDp5.js} +16 -16
- package/dist/{P2CTZE2T-CHi91Yb8.js → P2CTZE2T-DqsBJuIy.js} +32 -32
- package/dist/{P4IRICAX-CIAVAXlF.js → P4IRICAX-CvgWqpy0.js} +3 -3
- package/dist/Popover.js +3 -3
- package/dist/{QYJ6MIDR-DRpzeJNT.js → QYJ6MIDR-BWg_HLyh.js} +3 -3
- package/dist/Radio.css +1 -1
- package/dist/Radio.js +39 -38
- package/dist/RadioGroup.css +1 -0
- package/dist/RadioGroup.js +72 -0
- package/dist/RadioTab.js +1 -1
- package/dist/{SYRFVSLH-vrz7_KNH.js → SYRFVSLH-D5X1Ofws.js} +3 -3
- package/dist/Slider.css +1 -0
- package/dist/Slider.js +423 -0
- package/dist/Tabs.js +79 -78
- package/dist/Toggle.js +1 -1
- package/dist/Tooltip.js +31 -31
- package/dist/{VGCJ63VH-CV_AMRHp.js → VGCJ63VH-Bdd6jzVW.js} +31 -31
- package/dist/{X5NMLKT6-DqDJBMYO.js → X5NMLKT6-C7-nsL44.js} +2 -2
- package/dist/{YV4JVR4I-CvfP1OCB.js → YV4JVR4I-BN6SUVuh.js} +54 -54
- package/dist/types/components/FieldGroup/index.d.ts +1 -0
- package/dist/types/components/FieldGroup/types.d.ts +8 -0
- package/dist/types/components/Label/index.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +2 -0
- package/dist/types/components/RadioGroup/types.d.ts +17 -0
- package/dist/types/components/Slider/Range.d.ts +6 -0
- package/dist/types/components/Slider/index.d.ts +10 -0
- package/dist/types/components/Slider/types.d.ts +28 -0
- package/package.json +1 -1
- package/dist/ITI7HKP4-BwM8j6XI.js +0 -488
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as F, _ as p, l as m, m as I, h as O, u as _, b as x, j, d as T, n as Y, o as w, p as H, q as L, r as V, s as z, f as G, a as J } from "./LVA2YJMS-
|
|
2
|
+
import { c as F, _ as p, l as m, m as I, h as O, u as _, b as x, j, d as T, n as Y, o as w, p as H, q as L, r as V, s as z, f as G, a as J } from "./LVA2YJMS-C6Bdr5Em.js";
|
|
3
3
|
import { useRef as C, useState as D, useEffect as Q } from "react";
|
|
4
4
|
var W = "button";
|
|
5
5
|
function M(s) {
|
|
@@ -787,39 +787,39 @@ me(function(e) {
|
|
|
787
787
|
return ge(Oe, r);
|
|
788
788
|
});
|
|
789
789
|
export {
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
T,
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
790
|
+
Ue as $,
|
|
791
|
+
dt as A,
|
|
792
|
+
T as B,
|
|
793
|
+
cr as C,
|
|
794
|
+
hr as D,
|
|
795
|
+
pr as E,
|
|
796
|
+
vr as F,
|
|
797
|
+
Jt as G,
|
|
798
|
+
Be as H,
|
|
799
|
+
Ht as I,
|
|
800
|
+
ze as J,
|
|
801
|
+
j as K,
|
|
802
|
+
br as L,
|
|
803
|
+
$e as M,
|
|
804
|
+
rr as N,
|
|
805
|
+
O,
|
|
806
|
+
Xe as P,
|
|
807
|
+
le as Q,
|
|
808
|
+
Qe as R,
|
|
809
|
+
fe as S,
|
|
810
|
+
tr as T,
|
|
811
|
+
Ze as U,
|
|
812
|
+
ie as V,
|
|
813
|
+
Ge as W,
|
|
814
|
+
_ as X,
|
|
815
|
+
$ as Y,
|
|
816
|
+
qe as Z,
|
|
817
817
|
Et as _,
|
|
818
818
|
ge as a,
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
819
|
+
Ye as a0,
|
|
820
|
+
je as a1,
|
|
821
|
+
ke as a2,
|
|
822
|
+
lr as a3,
|
|
823
823
|
yr as a4,
|
|
824
824
|
Je as a5,
|
|
825
825
|
wr as a6,
|
|
@@ -866,8 +866,8 @@ export {
|
|
|
866
866
|
xr as t,
|
|
867
867
|
y as u,
|
|
868
868
|
gr as v,
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
869
|
+
dr as w,
|
|
870
|
+
_r as x,
|
|
871
|
+
M as y,
|
|
872
|
+
ar as z
|
|
873
873
|
};
|
package/dist/Label.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as a } from "react";
|
|
4
3
|
import "./Icon-CvQNL_iy.js";
|
|
5
|
-
import { L as
|
|
6
|
-
import { VariantIcon as
|
|
7
|
-
import { c as
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import { L as a } from "./index-BHLsdi2d.js";
|
|
5
|
+
import { VariantIcon as p } from "./VariantIcon.js";
|
|
6
|
+
import { c as u } from "./classNames-qiokGROM.js";
|
|
7
|
+
import { f } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
8
|
+
const d = "_root_pgmty_2", _ = "_required_pgmty_14", q = {
|
|
9
|
+
root: d,
|
|
10
10
|
required: _
|
|
11
|
-
},
|
|
12
|
-
({ children:
|
|
13
|
-
o ? /* @__PURE__ */ r(
|
|
14
|
-
l ? /* @__PURE__ */ r(
|
|
15
|
-
|
|
16
|
-
m ? /* @__PURE__ */ r("span", { className:
|
|
11
|
+
}, s = u(q), g = f(
|
|
12
|
+
({ children: e, className: t, disabled: l, required: m, variant: o, ...c }, i) => /* @__PURE__ */ n("label", { className: s("root", t), ref: i, ...c, children: [
|
|
13
|
+
o ? /* @__PURE__ */ r(p, { size: "sm", variant: o }) : null,
|
|
14
|
+
l ? /* @__PURE__ */ r(a, { size: "sm" }) : null,
|
|
15
|
+
e,
|
|
16
|
+
m ? /* @__PURE__ */ r("span", { className: s("required"), children: "*" }) : null
|
|
17
17
|
] })
|
|
18
18
|
);
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
g as Label
|
|
21
21
|
};
|
package/dist/Modal.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s, jsxs as p } from "react/jsx-runtime";
|
|
3
|
-
import { D as A, d as M } from "./JC64G2H7-
|
|
3
|
+
import { D as A, d as M } from "./JC64G2H7-jNBZrGfv.js";
|
|
4
4
|
import { c as a } from "./classNames-qiokGROM.js";
|
|
5
5
|
import { f as $ } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
6
|
-
import { D as w } from "./SYRFVSLH-
|
|
6
|
+
import { D as w } from "./SYRFVSLH-D5X1Ofws.js";
|
|
7
7
|
import j, { forwardRef as d, isValidElement as R, cloneElement as C, useState as W, useMemo as V, Children as O, useEffect as q } from "react";
|
|
8
8
|
import "./Icon-CvQNL_iy.js";
|
|
9
9
|
import { C as G } from "./index-u9K1RU_H.js";
|
|
10
10
|
import { Button as J } from "./Button.js";
|
|
11
11
|
import { Text as _ } from "./Text.js";
|
|
12
12
|
import { CloseButton as K } from "./CloseButton.js";
|
|
13
|
-
import { D as L } from "./AXB53BZF-
|
|
13
|
+
import { D as L } from "./AXB53BZF-ClCOTGI-.js";
|
|
14
14
|
const P = "_root_1vbnu_3", Q = "_hideOnInteractOutside_1vbnu_19", U = "_dialog_1vbnu_117", u = {
|
|
15
15
|
root: P,
|
|
16
16
|
"asset-backdrop": "_asset-backdrop_1vbnu_8",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as
|
|
3
|
-
import { t as T,
|
|
4
|
-
import { u as K } from "./YV4JVR4I-
|
|
2
|
+
import { C as U, a as y, c as A } from "./P2CTZE2T-DqsBJuIy.js";
|
|
3
|
+
import { t as T, D as j, f as D, c as w, a as G, _ as H, E as M, k as O, m as $, F as q, u as v, b as z, j as B, d as p, G as J } from "./LVA2YJMS-C6Bdr5Em.js";
|
|
4
|
+
import { u as K } from "./YV4JVR4I-BN6SUVuh.js";
|
|
5
5
|
import { useRef as L, useEffect as h } from "react";
|
|
6
6
|
var Q = T(
|
|
7
|
-
[
|
|
8
|
-
[
|
|
7
|
+
[y],
|
|
8
|
+
[U]
|
|
9
9
|
), V = Q.useContext, P = "input";
|
|
10
10
|
function W(u, r) {
|
|
11
11
|
if (r !== void 0)
|
|
@@ -14,7 +14,7 @@ function W(u, r) {
|
|
|
14
14
|
function X(u, r) {
|
|
15
15
|
return u === "input" && (!r || r === "radio");
|
|
16
16
|
}
|
|
17
|
-
var Y =
|
|
17
|
+
var Y = w(function(r) {
|
|
18
18
|
var d = r, {
|
|
19
19
|
store: t,
|
|
20
20
|
name: c,
|
|
@@ -46,23 +46,23 @@ var Y = z(function(r) {
|
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
48
|
(t == null ? void 0 : t.getState().value) !== i && (n || (e.currentTarget.checked = !0, S()), C == null || C(e), !e.defaultPrevented && (t == null || t.setValue(i)));
|
|
49
|
-
}), k = o.onClick,
|
|
49
|
+
}), k = o.onClick, F = v((e) => {
|
|
50
50
|
k == null || k(e), !e.defaultPrevented && (n || f(e));
|
|
51
|
-
}), g = o.onFocus,
|
|
51
|
+
}), g = o.onFocus, b = v((e) => {
|
|
52
52
|
if (g == null || g(e), e.defaultPrevented || !n || !t) return;
|
|
53
|
-
const { moves:
|
|
54
|
-
|
|
53
|
+
const { moves: E, activeId: N } = t.getState();
|
|
54
|
+
E && (a && N !== a || f(e));
|
|
55
55
|
});
|
|
56
|
-
return o =
|
|
56
|
+
return o = z(p({
|
|
57
57
|
id: a,
|
|
58
58
|
role: n ? void 0 : "radio",
|
|
59
59
|
type: n ? "radio" : void 0,
|
|
60
60
|
"aria-checked": s
|
|
61
61
|
}, o), {
|
|
62
|
-
ref:
|
|
62
|
+
ref: B(l, o.ref),
|
|
63
63
|
onChange: f,
|
|
64
|
-
onClick:
|
|
65
|
-
onFocus:
|
|
64
|
+
onClick: F,
|
|
65
|
+
onFocus: b
|
|
66
66
|
}), o = A(p({
|
|
67
67
|
store: t,
|
|
68
68
|
clickOnEnter: !n
|
|
@@ -72,9 +72,9 @@ var Y = z(function(r) {
|
|
|
72
72
|
checked: s
|
|
73
73
|
}, o));
|
|
74
74
|
}), re = j(
|
|
75
|
-
|
|
75
|
+
D(function(r) {
|
|
76
76
|
const d = Y(r);
|
|
77
|
-
return
|
|
77
|
+
return G(P, d);
|
|
78
78
|
})
|
|
79
79
|
);
|
|
80
80
|
export {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as W, q as Y,
|
|
3
|
-
import { createContext as te, useRef as _, useEffect as
|
|
4
|
-
import { u as ke } from "./KUU7WJ55-
|
|
5
|
-
import {
|
|
2
|
+
import { t as W, q as Y, O as Ce, c as $, P as xe, _ as q, E as Q, b as S, j as J, d as P, G as X, f as Z, a as ee, m as Se, u as R, Q as Pe, R as O, p as F, S as we, e as j, T as he, U as Ee, v as ye, l as Te, V as De, D as Re } from "./LVA2YJMS-C6Bdr5Em.js";
|
|
3
|
+
import { createContext as te, useRef as _, useEffect as Oe, useContext as Fe, useCallback as _e, useMemo as Ae } from "react";
|
|
4
|
+
import { u as ke } from "./KUU7WJ55-CRa_letc.js";
|
|
5
|
+
import { g as ze } from "./YV4JVR4I-BN6SUVuh.js";
|
|
6
6
|
import { jsx as Ke } from "react/jsx-runtime";
|
|
7
7
|
var w = W(), Le = w.useContext;
|
|
8
8
|
w.useScopedContext;
|
|
9
9
|
w.useProviderContext;
|
|
10
|
-
var Ne = w.ContextProvider,
|
|
10
|
+
var Ne = w.ContextProvider, Be = w.ScopedContextProvider, h = W(
|
|
11
11
|
[Ne],
|
|
12
|
-
[
|
|
13
|
-
),
|
|
12
|
+
[Be]
|
|
13
|
+
), Me = h.useContext;
|
|
14
14
|
h.useScopedContext;
|
|
15
15
|
var ut = h.useProviderContext, at = h.ContextProvider, lt = h.ScopedContextProvider, He = te(
|
|
16
16
|
void 0
|
|
@@ -80,14 +80,14 @@ var Ye = "div", ne = $(
|
|
|
80
80
|
]);
|
|
81
81
|
const c = Le();
|
|
82
82
|
t = t || c;
|
|
83
|
-
const m =
|
|
84
|
-
return
|
|
83
|
+
const m = Q(v.id), p = _(g);
|
|
84
|
+
return Oe(() => {
|
|
85
85
|
const i = p.current;
|
|
86
86
|
if (!m || !i || !a) return;
|
|
87
87
|
const b = d({ id: m, element: i });
|
|
88
88
|
return t == null ? void 0 : t.renderItem(b);
|
|
89
89
|
}, [m, a, d, t]), v = S(P({}, v), {
|
|
90
|
-
ref:
|
|
90
|
+
ref: J(p, v.ref)
|
|
91
91
|
}), X(v);
|
|
92
92
|
}
|
|
93
93
|
);
|
|
@@ -97,13 +97,13 @@ Z(function(n) {
|
|
|
97
97
|
});
|
|
98
98
|
var $e = "button";
|
|
99
99
|
function qe(r) {
|
|
100
|
-
return
|
|
100
|
+
return O(r) ? !0 : r.tagName === "INPUT" && !Te(r);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Qe(r, n = !1) {
|
|
103
103
|
const o = r.clientHeight, { top: t } = r.getBoundingClientRect(), a = Math.max(o * 0.875, o - 40) * 1.5, d = n ? o - a + t : a + t;
|
|
104
104
|
return r.tagName === "HTML" ? d + r.scrollTop : d;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Je(r, n = !1) {
|
|
107
107
|
const { top: o } = r.getBoundingClientRect();
|
|
108
108
|
return n ? o + r.clientHeight : o;
|
|
109
109
|
}
|
|
@@ -112,7 +112,7 @@ function G(r, n, o, t = !1) {
|
|
|
112
112
|
if (!n || !o) return;
|
|
113
113
|
const { renderedItems: d } = n.getState(), g = De(r);
|
|
114
114
|
if (!g) return;
|
|
115
|
-
const v =
|
|
115
|
+
const v = Qe(g, t);
|
|
116
116
|
let c, m;
|
|
117
117
|
for (let p = 0; p < d.length; p += 1) {
|
|
118
118
|
const i = c;
|
|
@@ -120,7 +120,7 @@ function G(r, n, o, t = !1) {
|
|
|
120
120
|
if (c === i) continue;
|
|
121
121
|
const b = (a = je(n, c)) == null ? void 0 : a.element;
|
|
122
122
|
if (!b) continue;
|
|
123
|
-
const C =
|
|
123
|
+
const C = Je(b, t) - v, l = Math.abs(C);
|
|
124
124
|
if (t && C <= 0 || !t && C >= 0) {
|
|
125
125
|
m !== void 0 && m < l && (c = i);
|
|
126
126
|
break;
|
|
@@ -130,7 +130,7 @@ function G(r, n, o, t = !1) {
|
|
|
130
130
|
return c;
|
|
131
131
|
}
|
|
132
132
|
function Xe(r, n) {
|
|
133
|
-
return
|
|
133
|
+
return F(r) ? !1 : re(n, r.target);
|
|
134
134
|
}
|
|
135
135
|
var Ze = $(
|
|
136
136
|
function(n) {
|
|
@@ -153,9 +153,9 @@ var Ze = $(
|
|
|
153
153
|
"aria-setsize",
|
|
154
154
|
"aria-posinset"
|
|
155
155
|
]);
|
|
156
|
-
const b =
|
|
156
|
+
const b = Me();
|
|
157
157
|
t = t || b;
|
|
158
|
-
const f =
|
|
158
|
+
const f = Q(i.id), C = _(null), l = Fe(Ue), k = Se(i) && !i.accessibleWhenDisabled, {
|
|
159
159
|
rowId: y,
|
|
160
160
|
baseElement: z,
|
|
161
161
|
isActiveItem: oe,
|
|
@@ -210,7 +210,7 @@ var Ze = $(
|
|
|
210
210
|
), K = i.onFocus, T = _(!1), le = R((e) => {
|
|
211
211
|
if (K == null || K(e), e.defaultPrevented || Pe(e) || !f || !t || Xe(e, t)) return;
|
|
212
212
|
const { virtualFocus: s, baseElement: u } = t.getState();
|
|
213
|
-
if (t.setActiveId(f),
|
|
213
|
+
if (t.setActiveId(f), O(e.currentTarget) && Ge(e.currentTarget), !s || !F(e) || qe(e.currentTarget) || !(u != null && u.isConnected)) return;
|
|
214
214
|
we() && e.currentTarget.hasAttribute("data-autofocus") && e.currentTarget.scrollIntoView({
|
|
215
215
|
block: "nearest",
|
|
216
216
|
inline: "nearest"
|
|
@@ -220,25 +220,25 @@ var Ze = $(
|
|
|
220
220
|
const s = t == null ? void 0 : t.getState();
|
|
221
221
|
s != null && s.virtualFocus && T.current && (T.current = !1, e.preventDefault(), e.stopPropagation());
|
|
222
222
|
}), N = i.onKeyDown, fe = j(d), de = j(g), me = R((e) => {
|
|
223
|
-
if (N == null || N(e), e.defaultPrevented || !
|
|
224
|
-
const { currentTarget: s } = e, u = t.getState(), D = t.item(f), I = !!(D != null && D.rowId), E = u.orientation !== "horizontal", x = u.orientation !== "vertical",
|
|
223
|
+
if (N == null || N(e), e.defaultPrevented || !F(e) || !t) return;
|
|
224
|
+
const { currentTarget: s } = e, u = t.getState(), D = t.item(f), I = !!(D != null && D.rowId), E = u.orientation !== "horizontal", x = u.orientation !== "vertical", M = () => !!(I || x || !u.baseElement || !Y(u.baseElement)), H = {
|
|
225
225
|
ArrowUp: (I || E) && t.up,
|
|
226
226
|
ArrowRight: (I || x) && t.next,
|
|
227
227
|
ArrowDown: (I || E) && t.down,
|
|
228
228
|
ArrowLeft: (I || x) && t.previous,
|
|
229
229
|
Home: () => {
|
|
230
|
-
if (
|
|
230
|
+
if (M())
|
|
231
231
|
return !I || e.ctrlKey ? t == null ? void 0 : t.first() : t == null ? void 0 : t.previous(-1);
|
|
232
232
|
},
|
|
233
233
|
End: () => {
|
|
234
|
-
if (
|
|
234
|
+
if (M())
|
|
235
235
|
return !I || e.ctrlKey ? t == null ? void 0 : t.last() : t == null ? void 0 : t.next(-1);
|
|
236
236
|
},
|
|
237
237
|
PageUp: () => G(s, t, t == null ? void 0 : t.up, !0),
|
|
238
238
|
PageDown: () => G(s, t, t == null ? void 0 : t.down)
|
|
239
239
|
}[e.key];
|
|
240
240
|
if (H) {
|
|
241
|
-
if (
|
|
241
|
+
if (O(s)) {
|
|
242
242
|
const V = he(s), ve = x && e.key === "ArrowLeft", pe = x && e.key === "ArrowRight", Ie = E && e.key === "ArrowUp", ge = E && e.key === "ArrowDown";
|
|
243
243
|
if (pe || ge) {
|
|
244
244
|
const { length: be } = Ee(s);
|
|
@@ -251,19 +251,19 @@ var Ze = $(
|
|
|
251
251
|
e.preventDefault(), t.move(U);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
}),
|
|
254
|
+
}), B = Ae(
|
|
255
255
|
() => ({ id: f, baseElement: z }),
|
|
256
256
|
[f, z]
|
|
257
257
|
);
|
|
258
258
|
return i = ye(
|
|
259
259
|
i,
|
|
260
|
-
(e) => /* @__PURE__ */ Ke(He.Provider, { value:
|
|
261
|
-
[
|
|
260
|
+
(e) => /* @__PURE__ */ Ke(He.Provider, { value: B, children: e }),
|
|
261
|
+
[B]
|
|
262
262
|
), i = S(P({
|
|
263
263
|
id: f,
|
|
264
264
|
"data-active-item": oe || void 0
|
|
265
265
|
}, i), {
|
|
266
|
-
ref:
|
|
266
|
+
ref: J(C, i.ref),
|
|
267
267
|
tabIndex: ue ? i.tabIndex : -1,
|
|
268
268
|
onFocus: le,
|
|
269
269
|
onBlurCapture: ce,
|
|
@@ -287,15 +287,15 @@ var Ze = $(
|
|
|
287
287
|
export {
|
|
288
288
|
lt as C,
|
|
289
289
|
at as a,
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
dt as b,
|
|
291
|
+
Ze as c,
|
|
292
292
|
vt as d,
|
|
293
293
|
ne as e,
|
|
294
294
|
ft as f,
|
|
295
295
|
je as g,
|
|
296
|
-
|
|
296
|
+
Me as h,
|
|
297
297
|
re as i,
|
|
298
298
|
ct as j,
|
|
299
299
|
mt as s,
|
|
300
|
-
|
|
300
|
+
ut as u
|
|
301
301
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { u as P } from "./X5NMLKT6-
|
|
3
|
-
import { b as _ } from "./VGCJ63VH-
|
|
4
|
-
import { f as b, c as k, _ as x, i as S, e as O, h as R, u as N, b as h, j, d as c, a as w } from "./LVA2YJMS-
|
|
2
|
+
import { u as P } from "./X5NMLKT6-C7-nsL44.js";
|
|
3
|
+
import { b as _ } from "./VGCJ63VH-Bdd6jzVW.js";
|
|
4
|
+
import { f as b, c as k, _ as x, i as S, e as O, h as R, u as N, b as h, j, d as c, a as w } from "./LVA2YJMS-C6Bdr5Em.js";
|
|
5
5
|
import { useRef as y, useState as B, useEffect as M } from "react";
|
|
6
6
|
var T = "button", V = Symbol("disclosure"), H = k(
|
|
7
7
|
function(n) {
|
package/dist/Popover.js
CHANGED
|
@@ -5,10 +5,10 @@ import { c as l } from "./classNames-qiokGROM.js";
|
|
|
5
5
|
import { Button as w } from "./Button.js";
|
|
6
6
|
import "./Icon-CvQNL_iy.js";
|
|
7
7
|
import { C as f } from "./index-u9K1RU_H.js";
|
|
8
|
-
import { u as P } from "./YV4JVR4I-
|
|
9
|
-
import { P as g, f as C, g as b, h as x, i as H, j as N } from "./BYC7LY2E-
|
|
8
|
+
import { u as P } from "./YV4JVR4I-BN6SUVuh.js";
|
|
9
|
+
import { P as g, f as C, g as b, h as x, i as H, j as N } from "./BYC7LY2E-DeD1QoQl.js";
|
|
10
10
|
import { f as p } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
11
|
-
import { P as $ } from "./QYJ6MIDR-
|
|
11
|
+
import { P as $ } from "./QYJ6MIDR-BWg_HLyh.js";
|
|
12
12
|
const j = "_root_1ldto_2", S = "_title_1ldto_15", T = "_content_1ldto_27", B = "_arrow_1ldto_41", a = {
|
|
13
13
|
root: j,
|
|
14
14
|
title: S,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { u as _ } from "./AXB53BZF-
|
|
3
|
-
import { u as p, P as h } from "./MTZPJQMC-
|
|
4
|
-
import { c as i, _ as v, b as l, j as D, d as n, f as P, a as m, i as E, u as b, v as x } from "./LVA2YJMS-
|
|
2
|
+
import { u as _ } from "./AXB53BZF-ClCOTGI-.js";
|
|
3
|
+
import { u as p, P as h } from "./MTZPJQMC-DgscjgO6.js";
|
|
4
|
+
import { c as i, _ as v, b as l, j as D, d as n, f as P, a as m, i as E, u as b, v as x } from "./LVA2YJMS-C6Bdr5Em.js";
|
|
5
5
|
import { jsx as g } from "react/jsx-runtime";
|
|
6
6
|
var A = "div", d = i(
|
|
7
7
|
function(s) {
|
package/dist/Radio.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.
|
|
1
|
+
@layer components{._root_1r128_2{display:flex;align-items:flex-start;gap:var(--spacing-sm);flex-direction:row}._input-wrapper_1r128_8{flex-shrink:0;position:relative;align-items:center;display:flex;align-self:flex-start}._input_1r128_8{border-radius:var(--radius-circle);order:-1;position:relative;outline:none;padding:0;transition:var(--duration-medium) var(--timing-primary);border-style:solid;border-width:var(--border-width-sm);border-color:var(--borderColor, var(--color-neutral-30));color:var(--color-neutral-10);height:var(--height-16);width:var(--height-16);margin-top:var(--spacing-xs);cursor:var(--inputCursor, pointer)}._input_1r128_8:hover{--borderColor: var(--color-neutral-40)}._input_1r128_8._disabled_1r128_34{background-color:var(--color-beige-40);--inputCursor: not-allowed}._input_1r128_8._variant-danger_1r128_38{--borderColor: var(--color-red-70)}._input_1r128_8._variant-warning_1r128_41{--borderColor: var(--color-orange-60)}._input_1r128_8:after{content:"";position:absolute;width:var(--height-8);height:var(--height-8);border-radius:var(--radius-circle);top:var(--spacing-3);left:var(--spacing-3);transition:medium;background-color:var(--backgroundColor, var(--color-transparent))}._input_1r128_8[aria-checked=true]:not([disabled]){--borderColor: var(--color-brand-40);color:var(--color-neutral-90)}._input_1r128_8[aria-checked=true][disabled]:after{--backgroundColor: var(--color-brand-30)}._input_1r128_8[aria-checked=true]:after{--backgroundColor: var(--color-brand-40)}._label-with-hint_1r128_65{display:flex;flex-direction:column}._hint_1r128_69{margin-top:0}}
|
package/dist/Radio.js
CHANGED
|
@@ -1,62 +1,63 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { R as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { Hint as
|
|
2
|
+
import { jsxs as d, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { R as u } from "./NLEBE274-BlP1TDp5.js";
|
|
4
|
+
import { forwardRef as w } from "react";
|
|
5
|
+
import { Hint as b } from "./Hint.js";
|
|
6
6
|
import { Label as v } from "./Label.js";
|
|
7
7
|
import { c as N } from "./classNames-qiokGROM.js";
|
|
8
|
-
const R = "
|
|
8
|
+
const R = "_root_1r128_2", g = "_input_1r128_8", x = "_disabled_1r128_34", $ = "_hint_1r128_69", j = {
|
|
9
9
|
root: R,
|
|
10
|
-
"input-wrapper": "_input-
|
|
10
|
+
"input-wrapper": "_input-wrapper_1r128_8",
|
|
11
11
|
input: g,
|
|
12
|
-
|
|
13
|
-
"variant-
|
|
14
|
-
"
|
|
15
|
-
hint:
|
|
16
|
-
|
|
12
|
+
disabled: x,
|
|
13
|
+
"variant-danger": "_variant-danger_1r128_38",
|
|
14
|
+
"variant-warning": "_variant-warning_1r128_41",
|
|
15
|
+
"label-with-hint": "_label-with-hint_1r128_65",
|
|
16
|
+
hint: $
|
|
17
|
+
}, r = N(j), y = w(
|
|
17
18
|
({
|
|
18
|
-
className:
|
|
19
|
+
className: _,
|
|
19
20
|
dataTestId: i,
|
|
20
|
-
disabled:
|
|
21
|
-
hint:
|
|
22
|
-
label:
|
|
23
|
-
onChange:
|
|
24
|
-
onClick:
|
|
25
|
-
value:
|
|
26
|
-
variant:
|
|
21
|
+
disabled: n,
|
|
22
|
+
hint: o,
|
|
23
|
+
label: s,
|
|
24
|
+
onChange: l,
|
|
25
|
+
onClick: e,
|
|
26
|
+
value: c,
|
|
27
|
+
variant: p = "default",
|
|
27
28
|
...m
|
|
28
|
-
},
|
|
29
|
-
const
|
|
30
|
-
|
|
29
|
+
}, h) => {
|
|
30
|
+
const f = (t) => {
|
|
31
|
+
t.stopPropagation(), e && e(t), l && l(t);
|
|
31
32
|
};
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
|
|
33
|
+
return /* @__PURE__ */ d(v, { className: r("root", _), onClick: f, children: [
|
|
34
|
+
/* @__PURE__ */ a("div", { className: r("input-wrapper"), children: /* @__PURE__ */ a(
|
|
35
|
+
u,
|
|
35
36
|
{
|
|
36
|
-
"aria-label":
|
|
37
|
-
className:
|
|
37
|
+
"aria-label": s,
|
|
38
|
+
className: r("input", `variant-${p}`, n && "disabled"),
|
|
38
39
|
"data-testid": i,
|
|
39
|
-
disabled:
|
|
40
|
-
ref:
|
|
41
|
-
value:
|
|
40
|
+
disabled: n,
|
|
41
|
+
ref: h,
|
|
42
|
+
value: c,
|
|
42
43
|
...m
|
|
43
44
|
}
|
|
44
45
|
) }),
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
/* @__PURE__ */ d("div", { className: r("label-with-hint"), children: [
|
|
47
|
+
/* @__PURE__ */ a("div", { "data-testid": i ? `${i}-label` : void 0, children: s }),
|
|
48
|
+
o ? /* @__PURE__ */ a(
|
|
49
|
+
b,
|
|
49
50
|
{
|
|
50
|
-
className:
|
|
51
|
+
className: r("hint"),
|
|
51
52
|
"data-testid": i ? `${i}-hint` : void 0,
|
|
52
|
-
children:
|
|
53
|
+
children: o
|
|
53
54
|
}
|
|
54
55
|
) : null
|
|
55
56
|
] })
|
|
56
57
|
] });
|
|
57
58
|
}
|
|
58
59
|
);
|
|
59
|
-
|
|
60
|
+
y.displayName = "Radio";
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
y as Radio
|
|
62
63
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer components{._root_v6e2n_2{display:flex;flex-wrap:wrap;gap:var(--spacing-md)}}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { c as P, u as $ } from "./4CMBR7SL-DXQR7a9T.js";
|
|
4
|
+
import { c as b, a as x, b as G, u as L } from "./YV4JVR4I-BN6SUVuh.js";
|
|
5
|
+
import { H as j, I as d, J as m, K as c } from "./LVA2YJMS-C6Bdr5Em.js";
|
|
6
|
+
import { FieldGroup as y } from "./FieldGroup.js";
|
|
7
|
+
import { Radio as N } from "./Radio.js";
|
|
8
|
+
import { c as k } from "./classNames-qiokGROM.js";
|
|
9
|
+
import "react";
|
|
10
|
+
function F(t = {}) {
|
|
11
|
+
var e = j(t, []), a;
|
|
12
|
+
const r = (a = e.store) == null ? void 0 : a.getState(), s = P(d(c({}, e), {
|
|
13
|
+
focusLoop: m(e.focusLoop, r == null ? void 0 : r.focusLoop, !0)
|
|
14
|
+
})), i = d(c({}, s.getState()), {
|
|
15
|
+
value: m(
|
|
16
|
+
e.value,
|
|
17
|
+
r == null ? void 0 : r.value,
|
|
18
|
+
e.defaultValue,
|
|
19
|
+
null
|
|
20
|
+
)
|
|
21
|
+
}), u = b(i, s, e.store);
|
|
22
|
+
return d(c(c({}, s), u), {
|
|
23
|
+
setValue: (l) => u.setState("value", l)
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function H(t, e, a) {
|
|
27
|
+
return t = $(t, e, a), G(t, a, "value", "setValue"), t;
|
|
28
|
+
}
|
|
29
|
+
function J(t = {}) {
|
|
30
|
+
const [e, a] = x(F, t);
|
|
31
|
+
return H(e, a, t);
|
|
32
|
+
}
|
|
33
|
+
const K = "_root_v6e2n_2", O = {
|
|
34
|
+
root: K
|
|
35
|
+
}, g = k(O), I = ({
|
|
36
|
+
className: t,
|
|
37
|
+
dataTestId: e,
|
|
38
|
+
disabled: a,
|
|
39
|
+
hideLabel: r,
|
|
40
|
+
id: s,
|
|
41
|
+
label: i,
|
|
42
|
+
name: u,
|
|
43
|
+
onChange: l,
|
|
44
|
+
options: p = [],
|
|
45
|
+
renderOption: f = N,
|
|
46
|
+
required: S,
|
|
47
|
+
value: _,
|
|
48
|
+
...V
|
|
49
|
+
}) => {
|
|
50
|
+
const v = J({ defaultValue: _ }), R = L(v, "value"), h = (o) => {
|
|
51
|
+
a || (v.setValue(o), l == null || l(o));
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ n(y, { "data-testid": e, hideLabel: r, label: i, required: S, children: /* @__PURE__ */ n("div", { className: g("root", t), children: p.map((o) => /* @__PURE__ */ n(
|
|
54
|
+
f,
|
|
55
|
+
{
|
|
56
|
+
checked: o.value === R,
|
|
57
|
+
dataTestId: e ? `${e}-${o.value}` : void 0,
|
|
58
|
+
disabled: a,
|
|
59
|
+
hint: o.hint,
|
|
60
|
+
id: `${s || u}.${o.value}`,
|
|
61
|
+
label: o.label,
|
|
62
|
+
name: u,
|
|
63
|
+
onChange: () => h(o.value),
|
|
64
|
+
value: o.value,
|
|
65
|
+
...V
|
|
66
|
+
},
|
|
67
|
+
o.value
|
|
68
|
+
)) }) });
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
I as RadioGroup
|
|
72
|
+
};
|
package/dist/RadioTab.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as _, jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import { R as u } from "./NLEBE274-
|
|
3
|
+
import { R as u } from "./NLEBE274-BlP1TDp5.js";
|
|
4
4
|
import { forwardRef as d } from "react";
|
|
5
5
|
import { Button as w } from "./Button.js";
|
|
6
6
|
import { c as f } from "./classNames-qiokGROM.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { u as c } from "./X5NMLKT6-
|
|
3
|
-
import { u as d } from "./VGCJ63VH-
|
|
4
|
-
import { f as p, c as f, a as D, _ as x, u as g, b as k, d as v } from "./LVA2YJMS-
|
|
2
|
+
import { u as c } from "./X5NMLKT6-C7-nsL44.js";
|
|
3
|
+
import { u as d } from "./VGCJ63VH-Bdd6jzVW.js";
|
|
4
|
+
import { f as p, c as f, a as D, _ as x, u as g, b as k, d as v } from "./LVA2YJMS-C6Bdr5Em.js";
|
|
5
5
|
import { useMemo as h } from "react";
|
|
6
6
|
import { jsxs as _, jsx as a } from "react/jsx-runtime";
|
|
7
7
|
var b = "button", y = f(
|