@sunwu51/camel-ui 0.0.2 → 0.0.4
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/README.md +30 -30
- package/dist/camel.es.js +47 -47
- package/dist/camel.umd.js +4 -4
- package/dist/index.css +1 -1
- package/package.json +63 -63
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# camel-ui
|
|
2
|
-
<img src="logo.png" alt="Description" width="80" height="80">
|
|
3
|
-
|
|
4
|
-
# 样式预览
|
|
5
|
-

|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# 使用方法
|
|
9
|
-
安装
|
|
10
|
-
```bash
|
|
11
|
-
$ npm i @sunwu51/camel-ui
|
|
12
|
-
```
|
|
13
|
-
参考`App.tsx`中每个组件的使用方法,基本都非常简单,每个组件1-3行代码。
|
|
14
|
-
# 组件列表
|
|
15
|
-
- badge
|
|
16
|
-
- button
|
|
17
|
-
- card
|
|
18
|
-
- checkbox
|
|
19
|
-
- combobox
|
|
20
|
-
- details
|
|
21
|
-
- dialog
|
|
22
|
-
- input
|
|
23
|
-
- input file
|
|
24
|
-
- radio
|
|
25
|
-
- select
|
|
26
|
-
- switch
|
|
27
|
-
- table
|
|
28
|
-
- tabs
|
|
29
|
-
- textarea
|
|
30
|
-
- tooltip
|
|
1
|
+
# camel-ui
|
|
2
|
+
<img src="logo.png" alt="Description" width="80" height="80">
|
|
3
|
+
|
|
4
|
+
# 样式预览
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# 使用方法
|
|
9
|
+
安装
|
|
10
|
+
```bash
|
|
11
|
+
$ npm i @sunwu51/camel-ui
|
|
12
|
+
```
|
|
13
|
+
参考`App.tsx`中每个组件的使用方法,基本都非常简单,每个组件1-3行代码。
|
|
14
|
+
# 组件列表
|
|
15
|
+
- badge
|
|
16
|
+
- button
|
|
17
|
+
- card
|
|
18
|
+
- checkbox
|
|
19
|
+
- combobox
|
|
20
|
+
- details
|
|
21
|
+
- dialog
|
|
22
|
+
- input
|
|
23
|
+
- input file
|
|
24
|
+
- radio
|
|
25
|
+
- select
|
|
26
|
+
- switch
|
|
27
|
+
- table
|
|
28
|
+
- tabs
|
|
29
|
+
- textarea
|
|
30
|
+
- tooltip
|
package/dist/camel.es.js
CHANGED
|
@@ -348,9 +348,9 @@ function Ua() {
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
var
|
|
351
|
+
var Me = Array.isArray;
|
|
352
352
|
function ke(f) {
|
|
353
|
-
return
|
|
353
|
+
return Me(f);
|
|
354
354
|
}
|
|
355
355
|
function lt(f) {
|
|
356
356
|
{
|
|
@@ -2977,11 +2977,11 @@ function _s() {
|
|
|
2977
2977
|
};
|
|
2978
2978
|
}
|
|
2979
2979
|
const ws = /* @__PURE__ */ os(_s);
|
|
2980
|
-
function
|
|
2980
|
+
function De(...e) {
|
|
2981
2981
|
return ws(Ho(e));
|
|
2982
2982
|
}
|
|
2983
2983
|
function lc(e) {
|
|
2984
|
-
return /* @__PURE__ */ V.jsx(V.Fragment, { children: /* @__PURE__ */ V.jsx("span", { className:
|
|
2984
|
+
return /* @__PURE__ */ V.jsx(V.Fragment, { children: /* @__PURE__ */ V.jsx("span", { className: De("badge-container", e.className), style: { ...e.style }, children: e.children }) });
|
|
2985
2985
|
}
|
|
2986
2986
|
const Se = typeof document < "u" ? ae.useLayoutEffect : () => {
|
|
2987
2987
|
};
|
|
@@ -4140,9 +4140,9 @@ function bl(e) {
|
|
|
4140
4140
|
]), xl(s, o, n), _l(s, n), Pl(s, o, n), wl(s, i), le(() => {
|
|
4141
4141
|
const E = Ie(s.current ? s.current[0] : void 0).activeElement;
|
|
4142
4142
|
let b = null;
|
|
4143
|
-
if (
|
|
4143
|
+
if (Re(E, s.current)) {
|
|
4144
4144
|
for (let $ of Pe.traverse())
|
|
4145
|
-
$.scopeRef &&
|
|
4145
|
+
$.scopeRef && Re(E, $.scopeRef.current) && (b = $);
|
|
4146
4146
|
b === Pe.getTreeNode(s) && (Ee = b.scopeRef);
|
|
4147
4147
|
}
|
|
4148
4148
|
}, [
|
|
@@ -4180,7 +4180,7 @@ function yl(e) {
|
|
|
4180
4180
|
tabbable: i,
|
|
4181
4181
|
accept: a
|
|
4182
4182
|
}, n);
|
|
4183
|
-
c.currentNode =
|
|
4183
|
+
c.currentNode = Re(s, n) ? s : l;
|
|
4184
4184
|
let g = c.nextNode();
|
|
4185
4185
|
return !g && r && (c.currentNode = l, g = c.nextNode()), g && et(g, !0), g;
|
|
4186
4186
|
},
|
|
@@ -4189,7 +4189,7 @@ function yl(e) {
|
|
|
4189
4189
|
tabbable: i,
|
|
4190
4190
|
accept: a
|
|
4191
4191
|
}, n);
|
|
4192
|
-
c.currentNode =
|
|
4192
|
+
c.currentNode = Re(s, n) ? s : l;
|
|
4193
4193
|
let g = c.previousNode();
|
|
4194
4194
|
return !g && r && (c.currentNode = l, g = c.previousNode()), g && et(g, !0), g;
|
|
4195
4195
|
},
|
|
@@ -4255,7 +4255,7 @@ function _l(e, t) {
|
|
|
4255
4255
|
if (u.key !== "Tab" || u.altKey || u.ctrlKey || u.metaKey || !Nt(e) || u.isComposing)
|
|
4256
4256
|
return;
|
|
4257
4257
|
let c = r.activeElement, g = e.current;
|
|
4258
|
-
if (!g || !
|
|
4258
|
+
if (!g || !Re(c, g))
|
|
4259
4259
|
return;
|
|
4260
4260
|
let E = vt(g), b = tt(E, {
|
|
4261
4261
|
tabbable: !0
|
|
@@ -4266,7 +4266,7 @@ function _l(e, t) {
|
|
|
4266
4266
|
let $ = u.shiftKey ? b.previousNode() : b.nextNode();
|
|
4267
4267
|
$ || (b.currentNode = u.shiftKey ? g[g.length - 1].nextElementSibling : g[0].previousElementSibling, $ = u.shiftKey ? b.previousNode() : b.nextNode()), u.preventDefault(), $ && et($, !0);
|
|
4268
4268
|
}, s = (u) => {
|
|
4269
|
-
(!Ee || cn(Ee, e)) &&
|
|
4269
|
+
(!Ee || cn(Ee, e)) && Re(u.target, e.current) ? (Ee = e, n.current = u.target) : Nt(e) && !Jn(u.target, e) ? n.current ? n.current.focus() : Ee && Ee.current && dn(Ee.current) : Nt(e) && (n.current = u.target);
|
|
4270
4270
|
}, l = (u) => {
|
|
4271
4271
|
o.current && cancelAnimationFrame(o.current), o.current = requestAnimationFrame(() => {
|
|
4272
4272
|
if (r.activeElement && Nt(e) && !Jn(r.activeElement, e))
|
|
@@ -4292,14 +4292,14 @@ function _l(e, t) {
|
|
|
4292
4292
|
function vi(e) {
|
|
4293
4293
|
return Jn(e);
|
|
4294
4294
|
}
|
|
4295
|
-
function
|
|
4295
|
+
function Re(e, t) {
|
|
4296
4296
|
return !e || !t ? !1 : t.some((n) => n.contains(e));
|
|
4297
4297
|
}
|
|
4298
4298
|
function Jn(e, t = null) {
|
|
4299
4299
|
if (e instanceof Element && e.closest("[data-react-aria-top-layer]"))
|
|
4300
4300
|
return !0;
|
|
4301
4301
|
for (let { scopeRef: n } of Pe.traverse(Pe.getTreeNode(t)))
|
|
4302
|
-
if (n &&
|
|
4302
|
+
if (n && Re(e, n.current))
|
|
4303
4303
|
return !0;
|
|
4304
4304
|
return !1;
|
|
4305
4305
|
}
|
|
@@ -4341,7 +4341,7 @@ function wl(e, t) {
|
|
|
4341
4341
|
if (n.current) {
|
|
4342
4342
|
Ee = e;
|
|
4343
4343
|
const o = Ie(e.current ? e.current[0] : void 0);
|
|
4344
|
-
!
|
|
4344
|
+
!Re(o.activeElement, Ee.current) && e.current && dn(e.current);
|
|
4345
4345
|
}
|
|
4346
4346
|
n.current = !1;
|
|
4347
4347
|
}, [
|
|
@@ -4356,7 +4356,7 @@ function xl(e, t, n) {
|
|
|
4356
4356
|
const i = Ie(o ? o[0] : void 0);
|
|
4357
4357
|
let r = (a) => {
|
|
4358
4358
|
let s = a.target;
|
|
4359
|
-
|
|
4359
|
+
Re(s, e.current) ? Ee = e : vi(s) || (Ee = null);
|
|
4360
4360
|
};
|
|
4361
4361
|
return i.addEventListener("focusin", r, !1), o == null || o.forEach((a) => a.addEventListener("focusin", r, !1)), () => {
|
|
4362
4362
|
i.removeEventListener("focusin", r, !1), o == null || o.forEach((a) => a.removeEventListener("focusin", r, !1));
|
|
@@ -4384,7 +4384,7 @@ function Pl(e, t, n) {
|
|
|
4384
4384
|
if (!t || n)
|
|
4385
4385
|
return;
|
|
4386
4386
|
let a = () => {
|
|
4387
|
-
(!Ee || cn(Ee, e)) &&
|
|
4387
|
+
(!Ee || cn(Ee, e)) && Re(r.activeElement, e.current) && (Ee = e);
|
|
4388
4388
|
};
|
|
4389
4389
|
return r.addEventListener("focusin", a, !1), i == null || i.forEach((s) => s.addEventListener("focusin", a, !1)), () => {
|
|
4390
4390
|
r.removeEventListener("focusin", a, !1), i == null || i.forEach((s) => s.removeEventListener("focusin", a, !1));
|
|
@@ -4400,7 +4400,7 @@ function Pl(e, t, n) {
|
|
|
4400
4400
|
if (a.key !== "Tab" || a.altKey || a.ctrlKey || a.metaKey || !Nt(e) || a.isComposing)
|
|
4401
4401
|
return;
|
|
4402
4402
|
let s = i.activeElement;
|
|
4403
|
-
if (!
|
|
4403
|
+
if (!Re(s, e.current))
|
|
4404
4404
|
return;
|
|
4405
4405
|
let l = Pe.getTreeNode(e);
|
|
4406
4406
|
if (!l)
|
|
@@ -4410,11 +4410,11 @@ function Pl(e, t, n) {
|
|
|
4410
4410
|
});
|
|
4411
4411
|
c.currentNode = s;
|
|
4412
4412
|
let g = a.shiftKey ? c.previousNode() : c.nextNode();
|
|
4413
|
-
if ((!u || !i.body.contains(u) || u === i.body) && (u = void 0, l.nodeToRestore = void 0), (!g || !
|
|
4413
|
+
if ((!u || !i.body.contains(u) || u === i.body) && (u = void 0, l.nodeToRestore = void 0), (!g || !Re(g, e.current)) && u) {
|
|
4414
4414
|
c.currentNode = u;
|
|
4415
4415
|
do
|
|
4416
4416
|
g = a.shiftKey ? c.previousNode() : c.nextNode();
|
|
4417
|
-
while (
|
|
4417
|
+
while (Re(g, e.current));
|
|
4418
4418
|
a.preventDefault(), a.stopPropagation(), g ? et(g, !0) : vi(u) ? et(u, !0) : s.blur();
|
|
4419
4419
|
}
|
|
4420
4420
|
};
|
|
@@ -4438,7 +4438,7 @@ function Pl(e, t, n) {
|
|
|
4438
4438
|
return;
|
|
4439
4439
|
let l = s.nodeToRestore;
|
|
4440
4440
|
if (t && l && // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4441
|
-
(
|
|
4441
|
+
(Re(i.activeElement, e.current) || i.activeElement === i.body && $l(e))) {
|
|
4442
4442
|
let u = Pe.clone();
|
|
4443
4443
|
requestAnimationFrame(() => {
|
|
4444
4444
|
if (i.activeElement === i.body) {
|
|
@@ -4471,7 +4471,7 @@ function tt(e, t, n) {
|
|
|
4471
4471
|
let o = t != null && t.tabbable ? Il : El, i = Ie(e).createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
4472
4472
|
acceptNode(r) {
|
|
4473
4473
|
var a;
|
|
4474
|
-
return !(t == null || (a = t.from) === null || a === void 0) && a.contains(r) ? NodeFilter.FILTER_REJECT : r.matches(o) && pi(r) && (!n ||
|
|
4474
|
+
return !(t == null || (a = t.from) === null || a === void 0) && a.contains(r) ? NodeFilter.FILTER_REJECT : r.matches(o) && pi(r) && (!n || Re(r, n)) && (!(t != null && t.accept) || t.accept(r)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
4475
4475
|
}
|
|
4476
4476
|
});
|
|
4477
4477
|
return t != null && t.from && (i.currentNode = t.from), i;
|
|
@@ -4503,7 +4503,7 @@ class pr {
|
|
|
4503
4503
|
return;
|
|
4504
4504
|
let o = n.parent;
|
|
4505
4505
|
for (let r of this.traverse())
|
|
4506
|
-
r !== n && n.nodeToRestore && r.nodeToRestore && n.scopeRef && n.scopeRef.current &&
|
|
4506
|
+
r !== n && n.nodeToRestore && r.nodeToRestore && n.scopeRef && n.scopeRef.current && Re(r.nodeToRestore, n.scopeRef.current) && (r.nodeToRestore = n.nodeToRestore);
|
|
4507
4507
|
let i = n.children;
|
|
4508
4508
|
o && (o.removeChild(n), i.size > 0 && i.forEach((r) => o && o.addChild(r))), this.fastMap.delete(n.scopeRef);
|
|
4509
4509
|
}
|
|
@@ -4662,7 +4662,7 @@ function uc({ className: e = "", style: t, ...n }) {
|
|
|
4662
4662
|
"button",
|
|
4663
4663
|
{
|
|
4664
4664
|
ref: o,
|
|
4665
|
-
className:
|
|
4665
|
+
className: De("button", e),
|
|
4666
4666
|
style: { ...t },
|
|
4667
4667
|
...i,
|
|
4668
4668
|
children: n.children
|
|
@@ -4670,7 +4670,7 @@ function uc({ className: e = "", style: t, ...n }) {
|
|
|
4670
4670
|
);
|
|
4671
4671
|
}
|
|
4672
4672
|
function cc(e) {
|
|
4673
|
-
return /* @__PURE__ */ V.jsx("div", { className:
|
|
4673
|
+
return /* @__PURE__ */ V.jsx("div", { className: De("card-container ", e.className), style: { ...e.style }, children: e.children });
|
|
4674
4674
|
}
|
|
4675
4675
|
function gr(e, t, n) {
|
|
4676
4676
|
let { validationBehavior: o, focus: i } = e;
|
|
@@ -7340,10 +7340,10 @@ function Nr(e) {
|
|
|
7340
7340
|
});
|
|
7341
7341
|
}, st = function(lt) {
|
|
7342
7342
|
return lt.preventDefault();
|
|
7343
|
-
},
|
|
7343
|
+
}, Me = te((G = {}, G[q] = nt(Y, function(ke) {
|
|
7344
7344
|
ke && ($.current[h.getItemId(ce)] = ke);
|
|
7345
7345
|
}), G["aria-disabled"] = Te, G["aria-selected"] = "" + (_e === S.selectedItem), G.id = h.getItemId(ce), G.role = "option", G), U);
|
|
7346
|
-
return Te || (
|
|
7346
|
+
return Te || (Me.onClick = be(T, Oe)), Me.onMouseMove = be(D, Ce), Me.onMouseDown = be(F, st), Me;
|
|
7347
7347
|
}, [M, h, m, y, s]);
|
|
7348
7348
|
return {
|
|
7349
7349
|
// prop getters.
|
|
@@ -7634,23 +7634,23 @@ function Gr(e) {
|
|
|
7634
7634
|
F.onPress;
|
|
7635
7635
|
var j = F.disabled, _e = Ke(F, ku);
|
|
7636
7636
|
j !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
|
|
7637
|
-
var ce = m.current, Te = ce.props, Ce = ce.state, Oe = Bi(W, q, Te.items, "Pass either item or index to getItemProps!"), st = Oe[0],
|
|
7638
|
-
B.isTouchEnd ||
|
|
7637
|
+
var ce = m.current, Te = ce.props, Ce = ce.state, Oe = Bi(W, q, Te.items, "Pass either item or index to getItemProps!"), st = Oe[0], Me = Oe[1], ke = Te.isItemDisabled(st, Me), lt = "onClick", Et = he, Ye = function() {
|
|
7638
|
+
B.isTouchEnd || Me === Ce.highlightedIndex || (N.current = !1, l({
|
|
7639
7639
|
type: la,
|
|
7640
|
-
index:
|
|
7640
|
+
index: Me,
|
|
7641
7641
|
disabled: ke
|
|
7642
7642
|
}));
|
|
7643
7643
|
}, Xe = function() {
|
|
7644
7644
|
l({
|
|
7645
7645
|
type: zr,
|
|
7646
|
-
index:
|
|
7646
|
+
index: Me
|
|
7647
7647
|
});
|
|
7648
7648
|
}, Ve = function(Wt) {
|
|
7649
7649
|
return Wt.preventDefault();
|
|
7650
7650
|
};
|
|
7651
7651
|
return te((D = {}, D[Y] = nt(U, function(je) {
|
|
7652
|
-
je && ($.current[p.getItemId(
|
|
7653
|
-
}), D["aria-disabled"] = ke, D["aria-selected"] = "" + (
|
|
7652
|
+
je && ($.current[p.getItemId(Me)] = je);
|
|
7653
|
+
}), D["aria-disabled"] = ke, D["aria-selected"] = "" + (Me === Ce.highlightedIndex), D.id = p.getItemId(Me), D.role = "option", D), !ke && (T = {}, T[lt] = be(Et, Xe), T), {
|
|
7654
7654
|
onMouseMove: be(ie, Ye),
|
|
7655
7655
|
onMouseDown: be(S, Ve)
|
|
7656
7656
|
}, _e);
|
|
@@ -7680,7 +7680,7 @@ function Gr(e) {
|
|
|
7680
7680
|
type: Wr,
|
|
7681
7681
|
inputValue: Ve.target.value
|
|
7682
7682
|
});
|
|
7683
|
-
},
|
|
7683
|
+
}, Me = function(Ve) {
|
|
7684
7684
|
if (i != null && i.document && Ce.isOpen && !B.isMouseDown) {
|
|
7685
7685
|
var je = Ve.relatedTarget === null && i.document.activeElement !== i.document.body;
|
|
7686
7686
|
l({
|
|
@@ -7695,7 +7695,7 @@ function Gr(e) {
|
|
|
7695
7695
|
}, lt = "onChange", Et = {};
|
|
7696
7696
|
if (!j.disabled) {
|
|
7697
7697
|
var Ye;
|
|
7698
|
-
Et = (Ye = {}, Ye[lt] = be(q, z, st), Ye.onKeyDown = be(W, Oe), Ye.onBlur = be(Y,
|
|
7698
|
+
Et = (Ye = {}, Ye[lt] = be(q, z, st), Ye.onKeyDown = be(W, Oe), Ye.onBlur = be(Y, Me), Ye.onClick = be(U, ke), Ye);
|
|
7699
7699
|
}
|
|
7700
7700
|
return te((T = {}, T[S] = nt(he, function(Xe) {
|
|
7701
7701
|
w.current = Xe;
|
|
@@ -7789,7 +7789,7 @@ function fc(e) {
|
|
|
7789
7789
|
return h ? typeof h == "string" ? h : h.itemToString() : "";
|
|
7790
7790
|
}
|
|
7791
7791
|
}), [$, w] = ae.useState(b);
|
|
7792
|
-
return $ != b && (w(b), e.onChange && e.onChange(b)), /* @__PURE__ */ V.jsxs("div", { className:
|
|
7792
|
+
return $ != b && (w(b), e.onChange && e.onChange(b)), /* @__PURE__ */ V.jsxs("div", { className: De("combobox-container", e.className), style: { ...e.style }, children: [
|
|
7793
7793
|
/* @__PURE__ */ V.jsxs("div", { children: [
|
|
7794
7794
|
t && /* @__PURE__ */ V.jsx("label", { className: "w-fit", ...l(), children: t }),
|
|
7795
7795
|
/* @__PURE__ */ V.jsxs("div", { className: "combobox-input", children: [
|
|
@@ -7822,15 +7822,15 @@ function fc(e) {
|
|
|
7822
7822
|
}
|
|
7823
7823
|
function pc(e) {
|
|
7824
7824
|
const t = Z(null), n = mr(e), { isSelected: o } = n, { buttonProps: i } = Ol(e, n, t);
|
|
7825
|
-
return /* @__PURE__ */ V.jsxs("div", { className:
|
|
7825
|
+
return /* @__PURE__ */ V.jsxs("div", { className: De("details-container", e.className), style: { ...e.style }, children: [
|
|
7826
7826
|
/* @__PURE__ */ V.jsxs("button", { ...i, className: "details-title", children: [
|
|
7827
|
-
/* @__PURE__ */ V.jsx("div", { className:
|
|
7827
|
+
/* @__PURE__ */ V.jsx("div", { className: De(e.titleClassName), children: e.title }),
|
|
7828
7828
|
/* @__PURE__ */ V.jsxs("svg", { width: "25px", style: { transform: o ? "rotate(0deg)" : "rotate(-90deg)", transition: "0.4s" }, viewBox: "0 0 512 512", className: "arrow", children: [
|
|
7829
7829
|
/* @__PURE__ */ V.jsx("circle", { stroke: "black", cx: 256, cy: 256, r: 240 }),
|
|
7830
7830
|
/* @__PURE__ */ V.jsx("path", { strokeWidth: 2, fill: "var(--w-blue)", d: "M464 256c0-114.87-93.13-208-208-208S48 141.13 48 256s93.13 208 208 208 208-93.13 208-208zm-99.73-44L256 342.09 147.73 212z" })
|
|
7831
7831
|
] })
|
|
7832
7832
|
] }),
|
|
7833
|
-
|
|
7833
|
+
/* @__PURE__ */ V.jsx("div", { className: De("details-content", n.isSelected ? "" : "hidden"), children: e.children })
|
|
7834
7834
|
] });
|
|
7835
7835
|
}
|
|
7836
7836
|
const Au = /* @__PURE__ */ new Set([
|
|
@@ -7962,7 +7962,7 @@ const vc = (e) => {
|
|
|
7962
7962
|
}, u = (c) => {
|
|
7963
7963
|
c.stopPropagation();
|
|
7964
7964
|
};
|
|
7965
|
-
return /* @__PURE__ */ V.jsxs("div", { className:
|
|
7965
|
+
return /* @__PURE__ */ V.jsxs("div", { className: De("dialog-container", e.className), children: [
|
|
7966
7966
|
/* @__PURE__ */ V.jsx("span", { ref: n, ...r, style: { cursor: "pointer" }, children: typeof e.trigger == "string" ? e.trigger : ae.cloneElement(e.trigger, { onClick: () => s(!0), onPress: () => s(!0) }) }),
|
|
7967
7967
|
a && /* @__PURE__ */ V.jsx("div", { className: "dialog-backdrop", onClick: l, children: /* @__PURE__ */ V.jsxs(bl, { contain: !0, restoreFocus: !0, autoFocus: !0, children: [
|
|
7968
7968
|
/* @__PURE__ */ V.jsxs(
|
|
@@ -8242,7 +8242,7 @@ function gc(e) {
|
|
|
8242
8242
|
isInvalid: l,
|
|
8243
8243
|
validationErrors: u
|
|
8244
8244
|
} = qu(e, n), c = e.direction ?? "column", g = c === "column" ? "end" : "center";
|
|
8245
|
-
return /* @__PURE__ */ V.jsxs("div", { className:
|
|
8245
|
+
return /* @__PURE__ */ V.jsxs("div", { className: De("input-container", e.className), style: { flexDirection: c, ...e.style }, children: [
|
|
8246
8246
|
t && /* @__PURE__ */ V.jsx(
|
|
8247
8247
|
"label",
|
|
8248
8248
|
{
|
|
@@ -8253,7 +8253,7 @@ function gc(e) {
|
|
|
8253
8253
|
children: t
|
|
8254
8254
|
}
|
|
8255
8255
|
),
|
|
8256
|
-
/* @__PURE__ */ V.jsx("input", { ...r, ref: n, className:
|
|
8256
|
+
/* @__PURE__ */ V.jsx("input", { ...r, ref: n, className: De("flex-1", e.inputClassName), id: o }),
|
|
8257
8257
|
e.description && /* @__PURE__ */ V.jsx("div", { ...a, style: { fontSize: "0.75rem" }, children: e.description }),
|
|
8258
8258
|
(l || e.errorMessage) && /* @__PURE__ */ V.jsxs("div", { ...s, style: { color: "red", fontSize: "0.75rem", alignContent: g }, children: [
|
|
8259
8259
|
u.join(" "),
|
|
@@ -8302,7 +8302,7 @@ function ec(e) {
|
|
|
8302
8302
|
const Ea = ae.createContext(null);
|
|
8303
8303
|
function mc(e) {
|
|
8304
8304
|
const { children: t, label: n, description: o, errorMessage: i } = e, r = ec(e), { radioGroupProps: a, labelProps: s, descriptionProps: l, errorMessageProps: u } = Gu(e, r);
|
|
8305
|
-
return /* @__PURE__ */ V.jsxs("div", { ...a, className:
|
|
8305
|
+
return /* @__PURE__ */ V.jsxs("div", { ...a, className: De("radio-group-container", e.className), style: { ...e.style }, children: [
|
|
8306
8306
|
/* @__PURE__ */ V.jsx("span", { ...s, children: n }),
|
|
8307
8307
|
/* @__PURE__ */ V.jsx(Ea.Provider, { value: r, children: t }),
|
|
8308
8308
|
o && /* @__PURE__ */ V.jsx("div", { ...l, style: { fontSize: 12 }, children: o }),
|
|
@@ -8334,7 +8334,7 @@ function yc(e) {
|
|
|
8334
8334
|
defaultSelectedItem: e.defaultIndex !== void 0 ? e.items[e.defaultIndex] : void 0,
|
|
8335
8335
|
onSelectedItemChange: e.onSelectedItemChange
|
|
8336
8336
|
});
|
|
8337
|
-
return /* @__PURE__ */ V.jsxs("div", { className:
|
|
8337
|
+
return /* @__PURE__ */ V.jsxs("div", { className: De("select-container", e.className), style: { ...e.style }, children: [
|
|
8338
8338
|
/* @__PURE__ */ V.jsx("label", { className: "select-label", ...i(), children: e.label }),
|
|
8339
8339
|
/* @__PURE__ */ V.jsxs(
|
|
8340
8340
|
"button",
|
|
@@ -8371,7 +8371,7 @@ function yc(e) {
|
|
|
8371
8371
|
}
|
|
8372
8372
|
function Ec(e) {
|
|
8373
8373
|
const t = mr(e), n = Z(null), { inputProps: o } = mi(e, t, n), { focusProps: i } = Tl();
|
|
8374
|
-
return /* @__PURE__ */ V.jsx(V.Fragment, { children: /* @__PURE__ */ V.jsx("div", { className:
|
|
8374
|
+
return /* @__PURE__ */ V.jsx(V.Fragment, { children: /* @__PURE__ */ V.jsx("div", { className: De("switch-container", e.className), style: { ...e.style }, children: /* @__PURE__ */ V.jsxs("label", { className: "switch-label", style: {
|
|
8375
8375
|
opacity: e.isDisabled ? 0.4 : 1,
|
|
8376
8376
|
...e.style
|
|
8377
8377
|
}, children: [
|
|
@@ -8386,11 +8386,11 @@ function Ic({ children: e, className: t, style: n }) {
|
|
|
8386
8386
|
function _c({ children: e, defaultIndex: t = 0, fixedIndex: n, handleChange: o, ...i }) {
|
|
8387
8387
|
Array.isArray(e) || (e = [e]);
|
|
8388
8388
|
const [r, a] = ae.useState(t === void 0 ? -1 : t);
|
|
8389
|
-
return /* @__PURE__ */ V.jsxs("div", { className:
|
|
8389
|
+
return /* @__PURE__ */ V.jsxs("div", { className: De("tabs-container", i.className), children: [
|
|
8390
8390
|
/* @__PURE__ */ V.jsx("div", { className: "tabs-button-container", children: e.map((s, l) => /* @__PURE__ */ V.jsx(
|
|
8391
8391
|
"button",
|
|
8392
8392
|
{
|
|
8393
|
-
className:
|
|
8393
|
+
className: De(l == r ? "tabs-button-selected" : "tabs-button", i.tabBtnClassName),
|
|
8394
8394
|
onClick: () => {
|
|
8395
8395
|
n === void 0 ? a(l) : o && o(l);
|
|
8396
8396
|
},
|
|
@@ -8398,14 +8398,14 @@ function _c({ children: e, defaultIndex: t = 0, fixedIndex: n, handleChange: o,
|
|
|
8398
8398
|
},
|
|
8399
8399
|
l
|
|
8400
8400
|
)) }),
|
|
8401
|
-
e.map((s, l) => /* @__PURE__ */ V.jsx("div", { className:
|
|
8401
|
+
e.map((s, l) => /* @__PURE__ */ V.jsx("div", { className: De(l == r ? "tabs-panel-selected" : "tabs-panel", i.tabPanelClassName), children: s }, l))
|
|
8402
8402
|
] });
|
|
8403
8403
|
}
|
|
8404
8404
|
function wc(e) {
|
|
8405
8405
|
return /* @__PURE__ */ V.jsx(
|
|
8406
8406
|
"textarea",
|
|
8407
8407
|
{
|
|
8408
|
-
className:
|
|
8408
|
+
className: De("textarea-container", e.className),
|
|
8409
8409
|
style: e.style,
|
|
8410
8410
|
defaultValue: e.children
|
|
8411
8411
|
}
|