react-asc 26.2.0 → 26.3.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/components/LoadingIndicator/LoadingIndicatorContainer.d.ts +1 -1
- package/index.es.js +244 -53
- package/package.json +1 -1
- package/readme.md +44 -44
|
@@ -3,4 +3,4 @@ export interface ILoadingIndicatorContainerProps {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
isFixed?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const LoadingIndicatorContainer: ({ children, isFixed }: ILoadingIndicatorContainerProps) => React.JSX.Element;
|
|
6
|
+
export declare const LoadingIndicatorContainer: ({ children, isFixed, }: ILoadingIndicatorContainerProps) => React.JSX.Element;
|
package/index.es.js
CHANGED
|
@@ -225,16 +225,27 @@ const Yc = () => /* @__PURE__ */ o(
|
|
|
225
225
|
}
|
|
226
226
|
)
|
|
227
227
|
}
|
|
228
|
-
), pt = () => /* @__PURE__ */ o("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: /* @__PURE__ */ o("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" }) }), qc = () => /* @__PURE__ */ o(
|
|
229
|
-
"
|
|
228
|
+
), pt = () => /* @__PURE__ */ o("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: /* @__PURE__ */ o("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" }) }), qc = () => /* @__PURE__ */ o(
|
|
229
|
+
"svg",
|
|
230
230
|
{
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
"aria-hidden": "true",
|
|
232
|
+
focusable: "false",
|
|
233
|
+
"data-prefix": "fas",
|
|
234
|
+
"data-icon": "home",
|
|
235
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
236
|
+
viewBox: "0 0 576 512",
|
|
237
|
+
children: /* @__PURE__ */ o(
|
|
238
|
+
"path",
|
|
239
|
+
{
|
|
240
|
+
fill: "currentColor",
|
|
241
|
+
d: `M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16
|
|
233
242
|
16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12
|
|
234
243
|
12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12
|
|
235
244
|
12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z`
|
|
245
|
+
}
|
|
246
|
+
)
|
|
236
247
|
}
|
|
237
|
-
)
|
|
248
|
+
), Ct = () => /* @__PURE__ */ o("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: /* @__PURE__ */ o(
|
|
238
249
|
"path",
|
|
239
250
|
{
|
|
240
251
|
fill: "currentColor",
|
|
@@ -333,7 +344,10 @@ const Yc = () => /* @__PURE__ */ o(
|
|
|
333
344
|
}, es = ({ ...n }) => /* @__PURE__ */ o("div", { className: (() => {
|
|
334
345
|
const s = [];
|
|
335
346
|
return s.push(Ge.loadingIndicator), s.filter((t) => t).join(" ");
|
|
336
|
-
})(), ...n, children: /* @__PURE__ */ o(_t, {}) }), ss = ({
|
|
347
|
+
})(), ...n, children: /* @__PURE__ */ o(_t, {}) }), ss = ({
|
|
348
|
+
children: n,
|
|
349
|
+
isFixed: e
|
|
350
|
+
}) => /* @__PURE__ */ o("div", { className: (() => {
|
|
337
351
|
const t = [];
|
|
338
352
|
return t.push(Ge.loadingIndicatorContainer), e && t.push(Ge.isFixed), t.filter((r) => r).join(" ");
|
|
339
353
|
})(), children: n });
|
|
@@ -426,7 +440,11 @@ const Gc = new Dt(), Mt = "_iconButton_1m2ki_1", jt = "_shadow_1m2ki_24", Lt = "
|
|
|
426
440
|
xxl: on
|
|
427
441
|
};
|
|
428
442
|
var an = /* @__PURE__ */ ((n) => (n.sm = "sm", n.md = "md", n.lg = "lg", n.xl = "xl", n.xxl = "xxl", n))(an || {});
|
|
429
|
-
const Uc = ({
|
|
443
|
+
const Uc = ({
|
|
444
|
+
avatar: n,
|
|
445
|
+
avatarSize: e = "sm",
|
|
446
|
+
...s
|
|
447
|
+
}) => /* @__PURE__ */ o("div", { className: (() => {
|
|
430
448
|
const r = [];
|
|
431
449
|
return r.push(ds.avatar), r.push(ds[e]), r.filter((a) => a).join(" ");
|
|
432
450
|
})(), ...s, children: n }), rn = "_icon_1dwao_1", cn = {
|
|
@@ -706,7 +724,15 @@ const Uc = ({ avatar: n, avatarSize: e = "sm", ...s }) => /* @__PURE__ */ o("div
|
|
|
706
724
|
!l && !h && (C(!m), f?.current?.click());
|
|
707
725
|
};
|
|
708
726
|
return /* @__PURE__ */ S("div", { className: Ve.checkboxContainer, children: [
|
|
709
|
-
/* @__PURE__ */ o(
|
|
727
|
+
/* @__PURE__ */ o(
|
|
728
|
+
ae,
|
|
729
|
+
{
|
|
730
|
+
className: u(),
|
|
731
|
+
onClick: v,
|
|
732
|
+
icon: y(),
|
|
733
|
+
disabled: l || h
|
|
734
|
+
}
|
|
735
|
+
),
|
|
710
736
|
/* @__PURE__ */ o("label", { onClick: v, className: p(), children: r }),
|
|
711
737
|
/* @__PURE__ */ o(
|
|
712
738
|
"input",
|
|
@@ -1249,7 +1275,18 @@ const ll = (n) => {
|
|
|
1249
1275
|
chipContainer: Jo,
|
|
1250
1276
|
selectMenu: Zo
|
|
1251
1277
|
}, se = (n) => {
|
|
1252
|
-
const {
|
|
1278
|
+
const {
|
|
1279
|
+
id: e,
|
|
1280
|
+
className: s,
|
|
1281
|
+
options: t = [],
|
|
1282
|
+
value: r,
|
|
1283
|
+
multiple: a,
|
|
1284
|
+
multipleMaxCountItems: c = 5,
|
|
1285
|
+
disabled: l,
|
|
1286
|
+
readOnly: h,
|
|
1287
|
+
onChange: d,
|
|
1288
|
+
onKeyDown: m
|
|
1289
|
+
} = n, [C, f] = $(""), [i, u] = $(null), [p, y] = $(!1), [v, k] = $([]), D = P(null), I = P(null), B = () => {
|
|
1253
1290
|
const _ = [];
|
|
1254
1291
|
return s && _.push(s), l && _.push(pe.disabled), h && _.push(pe.readOnly), _.push(pe.select), _.filter((w) => w).join(" ");
|
|
1255
1292
|
};
|
|
@@ -1265,7 +1302,9 @@ const ll = (n) => {
|
|
|
1265
1302
|
}, 100);
|
|
1266
1303
|
}, [i, p]);
|
|
1267
1304
|
const N = (_) => {
|
|
1268
|
-
const w = I.current?.children[0]?.querySelector(
|
|
1305
|
+
const w = I.current?.children[0]?.querySelector(
|
|
1306
|
+
`#list-item-${_}`
|
|
1307
|
+
);
|
|
1269
1308
|
w && w?.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
1270
1309
|
}, A = (_) => f(_);
|
|
1271
1310
|
O(() => {
|
|
@@ -1287,7 +1326,16 @@ const ll = (n) => {
|
|
|
1287
1326
|
return v.length > 0 && (_ = /* @__PURE__ */ o("span", { children: v[0].label })), _;
|
|
1288
1327
|
}, re = () => {
|
|
1289
1328
|
let _ = null;
|
|
1290
|
-
return v.length <= c && v.length > 0 ? _ = v.map((w) => /* @__PURE__ */ o(
|
|
1329
|
+
return v.length <= c && v.length > 0 ? _ = v.map((w) => /* @__PURE__ */ o(
|
|
1330
|
+
Bs,
|
|
1331
|
+
{
|
|
1332
|
+
color: z.primary,
|
|
1333
|
+
isDeletable: !0,
|
|
1334
|
+
onDelete: (x) => g(x, w),
|
|
1335
|
+
children: w.label
|
|
1336
|
+
},
|
|
1337
|
+
w.value
|
|
1338
|
+
)) : _ = /* @__PURE__ */ S("span", { children: [
|
|
1291
1339
|
v.length,
|
|
1292
1340
|
" Items selected"
|
|
1293
1341
|
] }), _;
|
|
@@ -1314,11 +1362,21 @@ const ll = (n) => {
|
|
|
1314
1362
|
}
|
|
1315
1363
|
};
|
|
1316
1364
|
return /* @__PURE__ */ S("div", { ref: D, className: pe.selectContainer, children: [
|
|
1317
|
-
/* @__PURE__ */ o(
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1365
|
+
/* @__PURE__ */ o(
|
|
1366
|
+
"div",
|
|
1367
|
+
{
|
|
1368
|
+
id: e,
|
|
1369
|
+
className: B(),
|
|
1370
|
+
onClick: () => E(),
|
|
1371
|
+
tabIndex: 0,
|
|
1372
|
+
onKeyDown: (_) => b(_),
|
|
1373
|
+
children: /* @__PURE__ */ S(q, { children: [
|
|
1374
|
+
!a && J(),
|
|
1375
|
+
a && /* @__PURE__ */ o("div", { className: pe.chipContainer, children: re() }),
|
|
1376
|
+
/* @__PURE__ */ o(ee, { className: "ml-auto", children: /* @__PURE__ */ o(Te, {}) })
|
|
1377
|
+
] })
|
|
1378
|
+
}
|
|
1379
|
+
),
|
|
1322
1380
|
p && /* @__PURE__ */ S(xe, { className: "backdrop-root", children: [
|
|
1323
1381
|
/* @__PURE__ */ o(
|
|
1324
1382
|
"div",
|
|
@@ -1337,7 +1395,13 @@ const ll = (n) => {
|
|
|
1337
1395
|
onClick: () => V(_),
|
|
1338
1396
|
active: j(_),
|
|
1339
1397
|
children: [
|
|
1340
|
-
a && /* @__PURE__ */ o(
|
|
1398
|
+
a && /* @__PURE__ */ o(
|
|
1399
|
+
as,
|
|
1400
|
+
{
|
|
1401
|
+
checked: j(_),
|
|
1402
|
+
onChange: () => V(_)
|
|
1403
|
+
}
|
|
1404
|
+
),
|
|
1341
1405
|
/* @__PURE__ */ o(ts, { primary: _.label ? _.label : _.value })
|
|
1342
1406
|
]
|
|
1343
1407
|
},
|
|
@@ -1496,7 +1560,12 @@ const ll = (n) => {
|
|
|
1496
1560
|
] });
|
|
1497
1561
|
}, na = "_formLabel_1kzj0_1", oa = {
|
|
1498
1562
|
formLabel: na
|
|
1499
|
-
}, oe = ({
|
|
1563
|
+
}, oe = ({
|
|
1564
|
+
children: n,
|
|
1565
|
+
className: e,
|
|
1566
|
+
htmlFor: s,
|
|
1567
|
+
...t
|
|
1568
|
+
}) => /* @__PURE__ */ o("label", { htmlFor: s, className: (() => {
|
|
1500
1569
|
const a = [];
|
|
1501
1570
|
return a.push(oa.formLabel), e && a.push(e), a.filter((c) => c).join(" ");
|
|
1502
1571
|
})(), ...t, children: n }), Ts = (n) => n?.toString().trim() === "" || n === null || n === void 0, aa = (n) => {
|
|
@@ -1547,10 +1616,16 @@ class ia extends Es {
|
|
|
1547
1616
|
aa(e) && t.push({ validator: c, message: "Email format is wrong" });
|
|
1548
1617
|
break;
|
|
1549
1618
|
case "min":
|
|
1550
|
-
la(e, parseInt(l)) || t.push({
|
|
1619
|
+
la(e, parseInt(l)) || t.push({
|
|
1620
|
+
validator: c,
|
|
1621
|
+
message: `Minimum number of ${l} characters not met`
|
|
1622
|
+
});
|
|
1551
1623
|
break;
|
|
1552
1624
|
case "max":
|
|
1553
|
-
ca(e, parseInt(l)) || t.push({
|
|
1625
|
+
ca(e, parseInt(l)) || t.push({
|
|
1626
|
+
validator: c,
|
|
1627
|
+
message: `Maximum number of ${l} characters exceeded`
|
|
1628
|
+
});
|
|
1554
1629
|
break;
|
|
1555
1630
|
case "match":
|
|
1556
1631
|
if (l) {
|
|
@@ -1844,11 +1919,18 @@ const dl = (n) => {
|
|
|
1844
1919
|
] }),
|
|
1845
1920
|
/* @__PURE__ */ S(ue, { children: [
|
|
1846
1921
|
/* @__PURE__ */ o(oe, { children: "Month" }),
|
|
1847
|
-
/* @__PURE__ */ o(
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1922
|
+
/* @__PURE__ */ o(
|
|
1923
|
+
Ca,
|
|
1924
|
+
{
|
|
1925
|
+
value: l.getMonth(),
|
|
1926
|
+
disabled: t,
|
|
1927
|
+
onChange: (m) => d(
|
|
1928
|
+
m,
|
|
1929
|
+
1
|
|
1930
|
+
/* MONTH */
|
|
1931
|
+
)
|
|
1932
|
+
}
|
|
1933
|
+
)
|
|
1852
1934
|
] }),
|
|
1853
1935
|
/* @__PURE__ */ S(ue, { children: [
|
|
1854
1936
|
/* @__PURE__ */ o(oe, { children: "Day" }),
|
|
@@ -1944,7 +2026,17 @@ const dl = (n) => {
|
|
|
1944
2026
|
rightTop: Aa,
|
|
1945
2027
|
rightBottom: Va
|
|
1946
2028
|
}, Ha = (n) => {
|
|
1947
|
-
const {
|
|
2029
|
+
const {
|
|
2030
|
+
className: e,
|
|
2031
|
+
icon: s,
|
|
2032
|
+
color: t = z.primary,
|
|
2033
|
+
fixed: r,
|
|
2034
|
+
position: a = "rightBottom",
|
|
2035
|
+
size: c = Fe.lg,
|
|
2036
|
+
isActive: l,
|
|
2037
|
+
disabled: h,
|
|
2038
|
+
onClick: d
|
|
2039
|
+
} = n, m = () => {
|
|
1948
2040
|
const f = [];
|
|
1949
2041
|
return f.push(Ee.fab), r && f.push(Ee.fixed), a && r && f.push(Ee[a]), e && f.push(e), f.filter((i) => i).join(" ");
|
|
1950
2042
|
}, C = (f) => {
|
|
@@ -1967,11 +2059,22 @@ const dl = (n) => {
|
|
|
1967
2059
|
link: Ea
|
|
1968
2060
|
}, ml = (n) => {
|
|
1969
2061
|
const { href: e = "#", className: s, target: t, children: r, ...a } = n, [c, l] = $(Me.NORMAL), [h] = Xe([Ra.link, s, c]);
|
|
1970
|
-
return /* @__PURE__ */ o(
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
2062
|
+
return /* @__PURE__ */ o(
|
|
2063
|
+
"a",
|
|
2064
|
+
{
|
|
2065
|
+
className: h,
|
|
2066
|
+
href: e,
|
|
2067
|
+
target: t,
|
|
2068
|
+
onMouseEnter: () => {
|
|
2069
|
+
l(Me.HOVERED);
|
|
2070
|
+
},
|
|
2071
|
+
onMouseLeave: () => {
|
|
2072
|
+
l(Me.NORMAL);
|
|
2073
|
+
},
|
|
2074
|
+
...a,
|
|
2075
|
+
children: r
|
|
2076
|
+
}
|
|
2077
|
+
);
|
|
1975
2078
|
}, Pa = "_menuBody_1931d_1", Wa = "_shadow_1931d_18", vs = {
|
|
1976
2079
|
menuBody: Pa,
|
|
1977
2080
|
shadow: Wa
|
|
@@ -2016,7 +2119,15 @@ const dl = (n) => {
|
|
|
2016
2119
|
};
|
|
2017
2120
|
return /* @__PURE__ */ S("div", { ref: h, className: m(), ...l, children: [
|
|
2018
2121
|
/* @__PURE__ */ o("div", { className: "d-inline", ref: d, children: e }),
|
|
2019
|
-
r && /* @__PURE__ */ o(
|
|
2122
|
+
r && /* @__PURE__ */ o(
|
|
2123
|
+
Ya,
|
|
2124
|
+
{
|
|
2125
|
+
parentRef: d,
|
|
2126
|
+
menuPosition: a,
|
|
2127
|
+
onClickBackdrop: C,
|
|
2128
|
+
children: s
|
|
2129
|
+
}
|
|
2130
|
+
)
|
|
2020
2131
|
] });
|
|
2021
2132
|
}, Cl = (n) => {
|
|
2022
2133
|
const { children: e, onClick: s, ...t } = n, r = () => [].filter((l) => l).join(" "), a = (c) => {
|
|
@@ -2085,7 +2196,14 @@ const dl = (n) => {
|
|
|
2085
2196
|
};
|
|
2086
2197
|
return /* @__PURE__ */ S(q, { children: [
|
|
2087
2198
|
/* @__PURE__ */ o(xe, { className: "modal-root", target: e, children: /* @__PURE__ */ o("div", { className: Ce.modal, children: /* @__PURE__ */ o("div", { className: C(), children: /* @__PURE__ */ S("div", { className: Ce.modalContent, children: [
|
|
2088
|
-
c && /* @__PURE__ */ o(
|
|
2199
|
+
c && /* @__PURE__ */ o(
|
|
2200
|
+
ur,
|
|
2201
|
+
{
|
|
2202
|
+
isDismissable: m,
|
|
2203
|
+
onClose: () => h && h(),
|
|
2204
|
+
children: c
|
|
2205
|
+
}
|
|
2206
|
+
),
|
|
2089
2207
|
/* @__PURE__ */ o(or, { children: a }),
|
|
2090
2208
|
l && /* @__PURE__ */ o(cr, { children: l })
|
|
2091
2209
|
] }) }) }) }),
|
|
@@ -2156,7 +2274,16 @@ const ws = ({
|
|
|
2156
2274
|
)) }),
|
|
2157
2275
|
children: [
|
|
2158
2276
|
e && /* @__PURE__ */ o("div", { children: e }),
|
|
2159
|
-
i === be.FORM && /* @__PURE__ */ o(q, { children: /* @__PURE__ */ o(
|
|
2277
|
+
i === be.FORM && /* @__PURE__ */ o(q, { children: /* @__PURE__ */ o(
|
|
2278
|
+
ia,
|
|
2279
|
+
{
|
|
2280
|
+
ref: u,
|
|
2281
|
+
controls: C,
|
|
2282
|
+
validateOnBlur: !0,
|
|
2283
|
+
onSubmit: v,
|
|
2284
|
+
onChange: r
|
|
2285
|
+
}
|
|
2286
|
+
) })
|
|
2160
2287
|
]
|
|
2161
2288
|
}
|
|
2162
2289
|
);
|
|
@@ -2263,7 +2390,14 @@ const pr = "_tooltipContainer_1wz21_1", Cr = "_tooltip_1wz21_1", _r = "_arrow_1w
|
|
|
2263
2390
|
"placement-left": "_placement-left_1wz21_33",
|
|
2264
2391
|
"placement-right": "_placement-right_1wz21_36"
|
|
2265
2392
|
}, fr = (n) => {
|
|
2266
|
-
const {
|
|
2393
|
+
const {
|
|
2394
|
+
children: e,
|
|
2395
|
+
text: s,
|
|
2396
|
+
placement: t = As.bottom,
|
|
2397
|
+
isOpen: r = !1,
|
|
2398
|
+
isShowClose: a = !1,
|
|
2399
|
+
delay: c = 0
|
|
2400
|
+
} = n, [l, h] = $(), [d, m] = $(c), [C, f] = $(r), [i, u] = $(r), [p, y] = $(a), v = P(null), k = P(null);
|
|
2267
2401
|
Is(
|
|
2268
2402
|
() => {
|
|
2269
2403
|
f(i);
|
|
@@ -2280,15 +2414,19 @@ const pr = "_tooltipContainer_1wz21_1", Cr = "_tooltip_1wz21_1", _r = "_arrow_1w
|
|
|
2280
2414
|
C === !0 && v && v.current && k && k.current ? D() : I();
|
|
2281
2415
|
}, [C]);
|
|
2282
2416
|
const D = () => {
|
|
2283
|
-
const j = Ss(
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2417
|
+
const j = Ss(
|
|
2418
|
+
v.current,
|
|
2419
|
+
k.current,
|
|
2420
|
+
{
|
|
2421
|
+
placement: t,
|
|
2422
|
+
modifiers: [
|
|
2423
|
+
{
|
|
2424
|
+
name: "offset",
|
|
2425
|
+
options: { offset: [0, 8] }
|
|
2426
|
+
}
|
|
2427
|
+
]
|
|
2428
|
+
}
|
|
2429
|
+
);
|
|
2292
2430
|
h(j);
|
|
2293
2431
|
}, I = () => {
|
|
2294
2432
|
l?.destroy();
|
|
@@ -2492,7 +2630,12 @@ class Ar {
|
|
|
2492
2630
|
handler;
|
|
2493
2631
|
root;
|
|
2494
2632
|
show(e, s) {
|
|
2495
|
-
const t = {
|
|
2633
|
+
const t = {
|
|
2634
|
+
timeout: 3e3,
|
|
2635
|
+
actionText: "ok",
|
|
2636
|
+
color: z.dark,
|
|
2637
|
+
target: document.body
|
|
2638
|
+
}, r = Object.assign(t, s);
|
|
2496
2639
|
return new Promise((a) => {
|
|
2497
2640
|
this.container && this.hide(), this.container = document.createElement("div"), this.container.classList.add("snackbar-container"), r.target.appendChild(this.container), r.timeout && r.timeout > 0 && (this.handler = setTimeout(() => {
|
|
2498
2641
|
this.hide();
|
|
@@ -2534,10 +2677,20 @@ const Nl = new Ar(), Vr = "_speedDial_1jw7t_1", Hr = {
|
|
|
2534
2677
|
speedDialAction: Wr
|
|
2535
2678
|
}, Il = (n) => {
|
|
2536
2679
|
const { icon: e, color: s = z.light, onClick: t, className: r } = n;
|
|
2537
|
-
return /* @__PURE__ */ o(
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2680
|
+
return /* @__PURE__ */ o(
|
|
2681
|
+
ae,
|
|
2682
|
+
{
|
|
2683
|
+
className: (() => {
|
|
2684
|
+
const c = [];
|
|
2685
|
+
return c.push(Yr.speedDialAction), r && c.push(r), c.filter((l) => l).join(" ");
|
|
2686
|
+
})(),
|
|
2687
|
+
icon: e,
|
|
2688
|
+
color: s,
|
|
2689
|
+
variant: Y.contained,
|
|
2690
|
+
shadow: !0,
|
|
2691
|
+
onClick: t
|
|
2692
|
+
}
|
|
2693
|
+
);
|
|
2541
2694
|
}, Ol = (n) => {
|
|
2542
2695
|
const { children: e, className: s, ...t } = n;
|
|
2543
2696
|
return /* @__PURE__ */ o(ee, { className: (() => {
|
|
@@ -2576,7 +2729,18 @@ const Nl = new Ar(), Vr = "_speedDial_1jw7t_1", Hr = {
|
|
|
2576
2729
|
}, nc = "_stepperActions_1ii7p_1", oc = {
|
|
2577
2730
|
stepperActions: nc
|
|
2578
2731
|
}, ac = (n) => {
|
|
2579
|
-
const {
|
|
2732
|
+
const {
|
|
2733
|
+
className: e,
|
|
2734
|
+
showDoneButton: s,
|
|
2735
|
+
showResetButton: t,
|
|
2736
|
+
isCompleted: r,
|
|
2737
|
+
isFirstStep: a,
|
|
2738
|
+
isStepOptional: c,
|
|
2739
|
+
onBack: l,
|
|
2740
|
+
onSkip: h,
|
|
2741
|
+
onNext: d,
|
|
2742
|
+
onReset: m
|
|
2743
|
+
} = n;
|
|
2580
2744
|
return /* @__PURE__ */ S("div", { className: (() => {
|
|
2581
2745
|
const f = [];
|
|
2582
2746
|
return f.push(oc.stepperActions), e && f.push(e), f.filter((i) => i).join(" ");
|
|
@@ -2799,10 +2963,29 @@ const Nl = new Ar(), Vr = "_speedDial_1jw7t_1", Hr = {
|
|
|
2799
2963
|
}, d = (m) => {
|
|
2800
2964
|
a && a({ event: m, value: r }), l && l(r);
|
|
2801
2965
|
};
|
|
2802
|
-
return /* @__PURE__ */ o(
|
|
2966
|
+
return /* @__PURE__ */ o(
|
|
2967
|
+
ne,
|
|
2968
|
+
{
|
|
2969
|
+
className: h(),
|
|
2970
|
+
onClick: d,
|
|
2971
|
+
isActive: c === r,
|
|
2972
|
+
disabled: t,
|
|
2973
|
+
children: e
|
|
2974
|
+
}
|
|
2975
|
+
);
|
|
2803
2976
|
}, Bl = (n) => {
|
|
2804
2977
|
const { children: e, value: s, index: t, ...r } = n;
|
|
2805
|
-
return /* @__PURE__ */ o(
|
|
2978
|
+
return /* @__PURE__ */ o(
|
|
2979
|
+
"div",
|
|
2980
|
+
{
|
|
2981
|
+
role: "tabpanel",
|
|
2982
|
+
hidden: s !== t,
|
|
2983
|
+
id: `tabpanel-${t}`,
|
|
2984
|
+
"aria-labelledby": `wrapped-tab-${t}`,
|
|
2985
|
+
...r,
|
|
2986
|
+
children: s === t && e
|
|
2987
|
+
}
|
|
2988
|
+
);
|
|
2806
2989
|
}, xc = (n) => {
|
|
2807
2990
|
const { className: e, value: s = 0, id: t, name: r, disabled: a, onChange: c } = n, [l, h] = $(s), [d, m] = $();
|
|
2808
2991
|
O(() => {
|
|
@@ -2923,7 +3106,15 @@ const Fl = (n) => {
|
|
|
2923
3106
|
const i = [];
|
|
2924
3107
|
return i.push("row"), e && i.push(e), i.filter((u) => u).join(" ");
|
|
2925
3108
|
}, f = (i, u) => {
|
|
2926
|
-
const p = d.getFullYear(), y = d.getMonth(), v = d.getDate(), k = u === 0 ? i : d.getHours(), D = u === 1 ? i : d.getMinutes(), I = u === 2 ? i : d.getSeconds(), B = u === 3 ? i : d.getMilliseconds(), N = new Date(
|
|
3109
|
+
const p = d.getFullYear(), y = d.getMonth(), v = d.getDate(), k = u === 0 ? i : d.getHours(), D = u === 1 ? i : d.getMinutes(), I = u === 2 ? i : d.getSeconds(), B = u === 3 ? i : d.getMilliseconds(), N = new Date(
|
|
3110
|
+
p,
|
|
3111
|
+
y,
|
|
3112
|
+
v,
|
|
3113
|
+
k,
|
|
3114
|
+
D,
|
|
3115
|
+
I,
|
|
3116
|
+
B
|
|
3117
|
+
);
|
|
2927
3118
|
m(N), h && h(N);
|
|
2928
3119
|
};
|
|
2929
3120
|
return /* @__PURE__ */ S(zs, { className: C(), children: [
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -8,8 +8,8 @@ react-asc interactive showcase with code snippets [link](https://react-asc.oardi
|
|
|
8
8
|
|
|
9
9
|
## Stackblitz Examples
|
|
10
10
|
|
|
11
|
-
-
|
|
12
|
-
-
|
|
11
|
+
- react-asc and jsx [link](https://stackblitz.com/edit/react-asc-example-js)
|
|
12
|
+
- react-asc and tsx [link](https://stackblitz.com/edit/react-asc-example-ts)
|
|
13
13
|
|
|
14
14
|
## usage
|
|
15
15
|
|
|
@@ -46,48 +46,48 @@ react-asc provides built-in ts definition
|
|
|
46
46
|
|
|
47
47
|
## Included Components
|
|
48
48
|
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
49
|
+
- Alert (beta)
|
|
50
|
+
- AppBar
|
|
51
|
+
- AutoComplete (beta)
|
|
52
|
+
- Backdrop
|
|
53
|
+
- Badge
|
|
54
|
+
- Breadcrumb
|
|
55
|
+
- Button
|
|
56
|
+
- ButtonGroup
|
|
57
|
+
- Card
|
|
58
|
+
- Checkbox
|
|
59
|
+
- Chip
|
|
60
|
+
- CssTransition
|
|
61
|
+
- ConditionalWrapper
|
|
62
|
+
- DateSelect
|
|
63
|
+
- Drawer
|
|
64
|
+
- ExpansionPanel
|
|
65
|
+
- FileInput
|
|
66
|
+
- FloatingActionButton
|
|
67
|
+
- Form (beta)
|
|
68
|
+
- Grid
|
|
69
|
+
- Icon
|
|
70
|
+
- IconButton
|
|
71
|
+
- Link
|
|
72
|
+
- List
|
|
73
|
+
- LoadingIndicator
|
|
74
|
+
- Menu
|
|
75
|
+
- Modal + ModalService
|
|
76
|
+
- NumberSelect
|
|
77
|
+
Portal
|
|
78
|
+
- Select
|
|
79
|
+
- Sidebar
|
|
80
|
+
- Skeleton (Avatar, Image, Text, SkeletonFooter)
|
|
81
|
+
- Snackbar + SnackbarService
|
|
82
|
+
- SpeedDial
|
|
83
|
+
- Stepper (beta)
|
|
84
|
+
- Table (beta)
|
|
85
|
+
- Tabs
|
|
86
|
+
- Textarea
|
|
87
|
+
- TimeSelect
|
|
88
|
+
- Tooltip
|
|
89
|
+
- TreeView (beta)
|
|
90
|
+
- Typography
|
|
91
91
|
|
|
92
92
|
## Credit
|
|
93
93
|
|