@oliasoft-open-source/react-ui-library 6.12.0-beta-5 → 6.12.0-beta-7
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/index.js
CHANGED
|
@@ -6484,56 +6484,55 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6484
6484
|
title: n == null ? void 0 : n.toString(),
|
|
6485
6485
|
children: e
|
|
6486
6486
|
}) : /* @__PURE__ */ y(v, { children: e }), vd = {
|
|
6487
|
-
tabs: "
|
|
6488
|
-
padding: "
|
|
6489
|
-
margin: "
|
|
6490
|
-
contentPadding: "
|
|
6491
|
-
item: "
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
selectionIndicator: "_selectionIndicator_1mioi_70"
|
|
6487
|
+
tabs: "_tabs_1rtn8_1",
|
|
6488
|
+
padding: "_padding_1rtn8_7",
|
|
6489
|
+
margin: "_margin_1rtn8_11",
|
|
6490
|
+
contentPadding: "_contentPadding_1rtn8_14",
|
|
6491
|
+
item: "_item_1rtn8_17",
|
|
6492
|
+
left: "_left_1rtn8_64",
|
|
6493
|
+
right: "_right_1rtn8_64",
|
|
6494
|
+
selectionIndicator: "_selectionIndicator_1rtn8_67"
|
|
6496
6495
|
}, yd = ({ name: e = void 0, options: t = null, value: n = void 0, onChange: r = mn, padding: i = !1, margin: a = !0, testId: o, linkComponent: s }) => {
|
|
6497
6496
|
let l = c(U), { simpleInputs: u, options: d, selectedOptions: f } = mc(t, n), p = f == null ? void 0 : u ? f : f.value, m = (e) => {
|
|
6498
6497
|
var t;
|
|
6499
6498
|
return (t = e.component) == null ? s : t;
|
|
6500
|
-
}, h = (e) => !!(e.to && m(e))
|
|
6499
|
+
}, h = (e) => !!(e.to && m(e)), g = (t) => {
|
|
6500
|
+
var n;
|
|
6501
|
+
let i = (n = d == null ? void 0 : d.findIndex((e) => e.value === t)) == null ? -1 : n;
|
|
6502
|
+
if (i === -1) return;
|
|
6503
|
+
let a = d[i];
|
|
6504
|
+
a.disabled || l || r({ target: {
|
|
6505
|
+
name: e,
|
|
6506
|
+
value: a.value,
|
|
6507
|
+
label: a.label
|
|
6508
|
+
} });
|
|
6509
|
+
}, v = d.filter((e) => !e.hidden || e.value === p);
|
|
6501
6510
|
return d ? /* @__PURE__ */ y(Br, {
|
|
6502
6511
|
selectedKey: p,
|
|
6503
|
-
onSelectionChange:
|
|
6504
|
-
var n;
|
|
6505
|
-
let i = (n = d == null ? void 0 : d.findIndex((e) => e.value === t)) == null ? -1 : n;
|
|
6506
|
-
if (i === -1) return;
|
|
6507
|
-
let a = d[i];
|
|
6508
|
-
a.disabled || l || r({ target: {
|
|
6509
|
-
name: e,
|
|
6510
|
-
value: a.value,
|
|
6511
|
-
label: a.label
|
|
6512
|
-
} });
|
|
6513
|
-
},
|
|
6512
|
+
onSelectionChange: g,
|
|
6514
6513
|
"data-testid": o,
|
|
6515
6514
|
children: /* @__PURE__ */ y(zr, {
|
|
6516
6515
|
"aria-label": e == null ? "Tabs" : e,
|
|
6517
6516
|
className: _(vd.tabs, i ? vd.padding : "", a ? vd.margin : ""),
|
|
6518
|
-
children:
|
|
6519
|
-
let { label: t, url: n, to: r,
|
|
6517
|
+
children: v.map((e) => {
|
|
6518
|
+
let { label: t, url: n, to: r, disabled: i, value: a, right: o, invalid: s, badge: c, testId: u } = e, d = h(e), f = m(e);
|
|
6520
6519
|
return /* @__PURE__ */ b(Rr, {
|
|
6521
|
-
id:
|
|
6522
|
-
...!
|
|
6523
|
-
isDisabled:
|
|
6524
|
-
className:
|
|
6525
|
-
"data-testid":
|
|
6526
|
-
render:
|
|
6520
|
+
id: a,
|
|
6521
|
+
...!d && n ? { href: n } : {},
|
|
6522
|
+
isDisabled: i || l,
|
|
6523
|
+
className: _(vd.item, o ? vd.right : vd.left),
|
|
6524
|
+
"data-testid": u,
|
|
6525
|
+
render: d && f ? (e) => /* @__PURE__ */ y(f, {
|
|
6527
6526
|
...e,
|
|
6528
6527
|
href: r,
|
|
6529
6528
|
to: r
|
|
6530
6529
|
}) : void 0,
|
|
6531
6530
|
children: [/* @__PURE__ */ y(_d, {
|
|
6532
6531
|
label: t,
|
|
6533
|
-
invalid:
|
|
6534
|
-
badge:
|
|
6532
|
+
invalid: s,
|
|
6533
|
+
badge: c
|
|
6535
6534
|
}), /* @__PURE__ */ y(Lr, { className: vd.selectionIndicator })]
|
|
6536
|
-
},
|
|
6535
|
+
}, a);
|
|
6537
6536
|
})
|
|
6538
6537
|
})
|
|
6539
6538
|
}) : null;
|
package/package.json
CHANGED