@anoki/fse-ui 1.0.525 → 1.0.527
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/components/ui/TabsGlossary/TabsGlossary.css +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs161.js.map +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs162.js.map +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs166.js.map +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs175.js.map +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs179.js.map +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs219.js +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs259.js +2 -2
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs309.js +1 -1
- package/dist/index.cjs316.js +2 -2
- package/dist/index.cjs317.js +12 -3
- package/dist/index.cjs317.js.map +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs326.js +1 -1
- package/dist/index.cjs327.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs33.js.map +1 -1
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs330.js.map +1 -1
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs344.js +1 -1
- package/dist/index.cjs345.js +1 -1
- package/dist/index.cjs346.js +1 -1
- package/dist/index.cjs349.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs351.js +1 -1
- package/dist/index.cjs353.js +1 -1
- package/dist/{index.cjs354.js → index.cjs365.js} +1 -1
- package/dist/{index.cjs354.js.map → index.cjs365.js.map} +1 -1
- package/dist/index.cjs366.js +2 -0
- package/dist/{index.cjs355.js.map → index.cjs366.js.map} +1 -1
- package/dist/index.cjs367.js +2 -0
- package/dist/{index.cjs356.js.map → index.cjs367.js.map} +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs372.js +1 -1
- package/dist/index.cjs372.js.map +1 -1
- package/dist/index.cjs373.js +1 -1
- package/dist/index.cjs373.js.map +1 -1
- package/dist/index.cjs374.js +1 -4
- package/dist/index.cjs374.js.map +1 -1
- package/dist/index.cjs375.js +4 -1
- package/dist/index.cjs375.js.map +1 -1
- package/dist/index.cjs376.js +1 -1
- package/dist/index.cjs376.js.map +1 -1
- package/dist/index.cjs377.js +1 -1
- package/dist/index.cjs377.js.map +1 -1
- package/dist/index.cjs378.js +1 -1
- package/dist/index.cjs378.js.map +1 -1
- package/dist/index.cjs379.js +2 -0
- package/dist/index.cjs379.js.map +1 -0
- package/dist/index.cjs380.js +3 -3
- package/dist/index.cjs384.js +1 -1
- package/dist/index.cjs390.js +1 -1
- package/dist/index.cjs394.js +1 -1
- package/dist/index.cjs394.js.map +1 -1
- package/dist/index.cjs397.js +1 -1
- package/dist/index.cjs397.js.map +1 -1
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs403.js +1 -1
- package/dist/index.cjs403.js.map +1 -1
- package/dist/index.cjs405.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.es106.js +17 -17
- package/dist/index.es16.js +18 -18
- package/dist/index.es161.js +71 -76
- package/dist/index.es161.js.map +1 -1
- package/dist/index.es162.js +1 -11
- package/dist/index.es162.js.map +1 -1
- package/dist/index.es163.js +2 -2
- package/dist/index.es164.js +24 -24
- package/dist/index.es166.js +58 -63
- package/dist/index.es166.js.map +1 -1
- package/dist/index.es171.js +1 -1
- package/dist/index.es175.js +26 -29
- package/dist/index.es175.js.map +1 -1
- package/dist/index.es179.js +15 -18
- package/dist/index.es179.js.map +1 -1
- package/dist/index.es18.js +22 -22
- package/dist/index.es208.js +16 -16
- package/dist/index.es212.js +24 -24
- package/dist/index.es213.js +10 -10
- package/dist/index.es237.js +1 -1
- package/dist/index.es238.js +1 -1
- package/dist/index.es24.js +4 -4
- package/dist/index.es242.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es249.js +1 -1
- package/dist/index.es25.js +38 -38
- package/dist/index.es257.js +25 -25
- package/dist/index.es259.js +22 -22
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es26.js +21 -21
- package/dist/index.es27.js +2 -2
- package/dist/index.es296.js +9 -9
- package/dist/index.es30.js +6 -6
- package/dist/index.es309.js +3 -3
- package/dist/index.es316.js +20 -20
- package/dist/index.es317.js +298 -137
- package/dist/index.es317.js.map +1 -1
- package/dist/index.es32.js +4 -4
- package/dist/index.es325.js +14 -14
- package/dist/index.es326.js +40 -40
- package/dist/index.es327.js +10 -10
- package/dist/index.es329.js +75 -75
- package/dist/index.es329.js.map +1 -1
- package/dist/index.es33.js +40 -32
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es330.js +7 -7
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es337.js +4 -4
- package/dist/index.es338.js +7 -7
- package/dist/index.es341.js +9 -9
- package/dist/index.es345.js +23 -23
- package/dist/index.es346.js +3 -3
- package/dist/index.es349.js +9 -9
- package/dist/index.es35.js +14 -14
- package/dist/index.es351.js +8 -8
- package/dist/index.es353.js +126 -126
- package/dist/{index.es354.js → index.es365.js} +1 -1
- package/dist/{index.es354.js.map → index.es365.js.map} +1 -1
- package/dist/{index.es355.js → index.es366.js} +14 -14
- package/dist/{index.es355.js.map → index.es366.js.map} +1 -1
- package/dist/index.es367.js +8 -0
- package/dist/{index.es356.js.map → index.es367.js.map} +1 -1
- package/dist/index.es37.js +6 -6
- package/dist/index.es372.js +5 -3
- package/dist/index.es372.js.map +1 -1
- package/dist/index.es373.js +3 -24
- package/dist/index.es373.js.map +1 -1
- package/dist/index.es374.js +22 -108
- package/dist/index.es374.js.map +1 -1
- package/dist/index.es375.js +108 -14
- package/dist/index.es375.js.map +1 -1
- package/dist/index.es376.js +14 -521
- package/dist/index.es376.js.map +1 -1
- package/dist/index.es377.js +509 -113
- package/dist/index.es377.js.map +1 -1
- package/dist/index.es378.js +121 -123
- package/dist/index.es378.js.map +1 -1
- package/dist/index.es379.js +132 -0
- package/dist/index.es379.js.map +1 -0
- package/dist/index.es380.js +16 -16
- package/dist/index.es384.js +1 -1
- package/dist/index.es394.js +2 -2
- package/dist/index.es394.js.map +1 -1
- package/dist/index.es397.js +34 -34
- package/dist/index.es397.js.map +1 -1
- package/dist/index.es399.js +2 -2
- package/dist/index.es399.js.map +1 -1
- package/dist/index.es403.js +2 -2
- package/dist/index.es403.js.map +1 -1
- package/dist/index.es47.js +2 -2
- package/dist/index.es5.js +4 -4
- package/dist/index.es65.js +44 -44
- package/dist/index.es68.js +25 -25
- package/dist/index.es69.js +23 -23
- package/dist/index.es98.js +12 -12
- package/package.json +1 -1
- package/dist/index.cjs355.js +0 -2
- package/dist/index.cjs356.js +0 -2
- package/dist/index.cjs371.js +0 -2
- package/dist/index.cjs371.js.map +0 -1
- package/dist/index.es356.js +0 -8
- package/dist/index.es371.js +0 -8
- package/dist/index.es371.js.map +0 -1
- /package/dist/components/ui/{ConsentModal/ConsentModalContent/ConsentModalContent.css → DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css} +0 -0
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
package/dist/index.es380.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import * as
|
2
|
-
import { styleSingleton as
|
3
|
-
import { noScrollbarsClassName as p, zeroRightClassName as
|
4
|
-
import { getGapWidth as
|
5
|
-
var b =
|
6
|
-
var r = n.left, i = n.top,
|
1
|
+
import * as l from "react";
|
2
|
+
import { styleSingleton as s } from "./index.es381.js";
|
3
|
+
import { noScrollbarsClassName as p, zeroRightClassName as d, fullWidthClassName as g, removedBarSizeVariable as m } from "./index.es372.js";
|
4
|
+
import { getGapWidth as v } from "./index.es390.js";
|
5
|
+
var b = s(), e = "data-scroll-locked", h = function(n, a, o, t) {
|
6
|
+
var r = n.left, i = n.top, f = n.right, c = n.gap;
|
7
7
|
return o === void 0 && (o = "margin"), `
|
8
8
|
.`.concat(p, ` {
|
9
9
|
overflow: hidden `).concat(t, `;
|
@@ -17,7 +17,7 @@ var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
|
|
17
17
|
o === "margin" && `
|
18
18
|
padding-left: `.concat(r, `px;
|
19
19
|
padding-top: `).concat(i, `px;
|
20
|
-
padding-right: `).concat(
|
20
|
+
padding-right: `).concat(f, `px;
|
21
21
|
margin-left:0;
|
22
22
|
margin-top:0;
|
23
23
|
margin-right: `).concat(c, "px ").concat(t, `;
|
@@ -26,31 +26,31 @@ var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
|
|
26
26
|
].filter(Boolean).join(""), `
|
27
27
|
}
|
28
28
|
|
29
|
-
.`).concat(
|
29
|
+
.`).concat(d, ` {
|
30
30
|
right: `).concat(c, "px ").concat(t, `;
|
31
31
|
}
|
32
32
|
|
33
|
-
.`).concat(
|
33
|
+
.`).concat(g, ` {
|
34
34
|
margin-right: `).concat(c, "px ").concat(t, `;
|
35
35
|
}
|
36
36
|
|
37
|
-
.`).concat(
|
37
|
+
.`).concat(d, " .").concat(d, ` {
|
38
38
|
right: 0 `).concat(t, `;
|
39
39
|
}
|
40
40
|
|
41
|
-
.`).concat(
|
41
|
+
.`).concat(g, " .").concat(g, ` {
|
42
42
|
margin-right: 0 `).concat(t, `;
|
43
43
|
}
|
44
44
|
|
45
45
|
body[`).concat(e, `] {
|
46
|
-
`).concat(
|
46
|
+
`).concat(m, ": ").concat(c, `px;
|
47
47
|
}
|
48
48
|
`);
|
49
49
|
}, u = function() {
|
50
50
|
var n = parseInt(document.body.getAttribute(e) || "0", 10);
|
51
51
|
return isFinite(n) ? n : 0;
|
52
52
|
}, x = function() {
|
53
|
-
|
53
|
+
l.useEffect(function() {
|
54
54
|
return document.body.setAttribute(e, (u() + 1).toString()), function() {
|
55
55
|
var n = u() - 1;
|
56
56
|
n <= 0 ? document.body.removeAttribute(e) : document.body.setAttribute(e, n.toString());
|
@@ -59,10 +59,10 @@ var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
|
|
59
59
|
}, C = function(n) {
|
60
60
|
var a = n.noRelative, o = n.noImportant, t = n.gapMode, r = t === void 0 ? "margin" : t;
|
61
61
|
x();
|
62
|
-
var i =
|
63
|
-
return
|
62
|
+
var i = l.useMemo(function() {
|
63
|
+
return v(r);
|
64
64
|
}, [r]);
|
65
|
-
return
|
65
|
+
return l.createElement(b, { styles: h(i, !a, r, o ? "" : "!important") });
|
66
66
|
};
|
67
67
|
export {
|
68
68
|
C as RemoveScrollBar,
|
package/dist/index.es384.js
CHANGED
package/dist/index.es394.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { asChildPropDef as r } from "./index.es404.js";
|
2
|
-
import { radiusPropDef as
|
3
|
-
const
|
2
|
+
import { radiusPropDef as e } from "./index.es405.js";
|
3
|
+
const o = ["1", "2", "3"], s = ["vertical", "horizontal", "both"], l = { ...r, size: { type: "enum", className: "rt-r-size", values: o, default: "1", responsive: !0 }, ...e, scrollbars: { type: "enum", values: s, default: "both" } };
|
4
4
|
export {
|
5
5
|
l as scrollAreaPropDefs
|
6
6
|
};
|
package/dist/index.es394.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es394.js","sources":["../node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.js"],"sourcesContent":["import{asChildPropDef as s}from\"../props/as-child.prop.js\";import{radiusPropDef as e}from\"../props/radius.prop.js\";const r=[\"1\",\"2\",\"3\"],o=[\"vertical\",\"horizontal\",\"both\"],t={...s,size:{type:\"enum\",className:\"rt-r-size\",values:r,default:\"1\",responsive:!0},...e,scrollbars:{type:\"enum\",values:o,default:\"both\"}};export{t as scrollAreaPropDefs};\n//# sourceMappingURL=scroll-area.props.js.map\n"],"names":["r","t","s","e"],"mappings":";;AAAwH,MAACA,IAAE,CAAC,KAAI,KAAI,GAAG,
|
1
|
+
{"version":3,"file":"index.es394.js","sources":["../node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.js"],"sourcesContent":["import{asChildPropDef as s}from\"../props/as-child.prop.js\";import{radiusPropDef as e}from\"../props/radius.prop.js\";const r=[\"1\",\"2\",\"3\"],o=[\"vertical\",\"horizontal\",\"both\"],t={...s,size:{type:\"enum\",className:\"rt-r-size\",values:r,default:\"1\",responsive:!0},...e,scrollbars:{type:\"enum\",values:o,default:\"both\"}};export{t as scrollAreaPropDefs};\n//# sourceMappingURL=scroll-area.props.js.map\n"],"names":["r","o","t","s","e"],"mappings":";;AAAwH,MAACA,IAAE,CAAC,KAAI,KAAI,GAAG,GAAEC,IAAE,CAAC,YAAW,cAAa,MAAM,GAAEC,IAAE,EAAC,GAAGC,GAAE,MAAK,EAAC,MAAK,QAAO,WAAU,aAAY,QAAOH,GAAE,SAAQ,KAAI,YAAW,GAAE,GAAE,GAAGI,GAAE,YAAW,EAAC,MAAK,QAAO,QAAOH,GAAE,SAAQ,OAAM,EAAC;","x_google_ignoreList":[0]}
|
package/dist/index.es397.js
CHANGED
@@ -1,59 +1,59 @@
|
|
1
1
|
import { breakpoints as l } from "./index.es406.js";
|
2
2
|
import { hasOwnProperty as p } from "./index.es407.js";
|
3
3
|
import { isResponsiveObject as m } from "./index.es408.js";
|
4
|
-
function V({ className:
|
5
|
-
const u =
|
4
|
+
function V({ className: r, customProperties: e, ...t }) {
|
5
|
+
const u = d({ allowArbitraryValues: !0, className: r, ...t }), s = g({ customProperties: e, ...t });
|
6
6
|
return [u, s];
|
7
7
|
}
|
8
|
-
function
|
9
|
-
const
|
10
|
-
if (
|
11
|
-
if (typeof
|
12
|
-
if (m(
|
13
|
-
const o =
|
14
|
-
for (const
|
15
|
-
if (!p(o,
|
16
|
-
const a = o[
|
8
|
+
function d({ allowArbitraryValues: r, value: e, className: t, propValues: u, parseValue: s = (i) => i }) {
|
9
|
+
const i = [];
|
10
|
+
if (e) {
|
11
|
+
if (typeof e == "string" && u.includes(e)) return f(t, e, s);
|
12
|
+
if (m(e)) {
|
13
|
+
const o = e;
|
14
|
+
for (const n in o) {
|
15
|
+
if (!p(o, n) || !l.includes(n)) continue;
|
16
|
+
const a = o[n];
|
17
17
|
if (a !== void 0) {
|
18
18
|
if (u.includes(a)) {
|
19
|
-
const c = f(t, a, s), $ =
|
20
|
-
|
21
|
-
} else if (
|
22
|
-
const c =
|
23
|
-
|
19
|
+
const c = f(t, a, s), $ = n === "initial" ? c : `${n}:${c}`;
|
20
|
+
i.push($);
|
21
|
+
} else if (r) {
|
22
|
+
const c = n === "initial" ? t : `${n}:${t}`;
|
23
|
+
i.push(c);
|
24
24
|
}
|
25
25
|
}
|
26
26
|
}
|
27
|
-
return
|
27
|
+
return i.join(" ");
|
28
28
|
}
|
29
|
-
if (
|
29
|
+
if (r) return t;
|
30
30
|
}
|
31
31
|
}
|
32
|
-
function f(
|
33
|
-
const u =
|
34
|
-
return `${o}${
|
32
|
+
function f(r, e, t) {
|
33
|
+
const u = r ? "-" : "", s = t(e), i = s == null ? void 0 : s.startsWith("-"), o = i ? "-" : "", n = i ? s == null ? void 0 : s.substring(1) : s;
|
34
|
+
return `${o}${r}${u}${n}`;
|
35
35
|
}
|
36
|
-
function
|
36
|
+
function g({ customProperties: r, value: e, propValues: t, parseValue: u = (s) => s }) {
|
37
37
|
let s = {};
|
38
|
-
if (!(!
|
39
|
-
if (typeof
|
40
|
-
const
|
41
|
-
for (const o in
|
42
|
-
if (!p(
|
43
|
-
const
|
44
|
-
if (!t.includes(
|
38
|
+
if (!(!e || typeof e == "string" && t.includes(e))) {
|
39
|
+
if (typeof e == "string" && (s = Object.fromEntries(r.map((i) => [i, e]))), m(e)) {
|
40
|
+
const i = e;
|
41
|
+
for (const o in i) {
|
42
|
+
if (!p(i, o) || !l.includes(o)) continue;
|
43
|
+
const n = i[o];
|
44
|
+
if (!t.includes(n)) for (const a of r) s = { [o === "initial" ? a : `${a}-${o}`]: n, ...s };
|
45
45
|
}
|
46
46
|
}
|
47
|
-
for (const
|
48
|
-
const o = s[
|
49
|
-
o !== void 0 && (s[
|
47
|
+
for (const i in s) {
|
48
|
+
const o = s[i];
|
49
|
+
o !== void 0 && (s[i] = u(o));
|
50
50
|
}
|
51
51
|
return s;
|
52
52
|
}
|
53
53
|
}
|
54
54
|
export {
|
55
|
-
|
56
|
-
|
55
|
+
d as getResponsiveClassNames,
|
56
|
+
g as getResponsiveCustomProperties,
|
57
57
|
V as getResponsiveStyles
|
58
58
|
};
|
59
59
|
//# sourceMappingURL=index.es397.js.map
|
package/dist/index.es397.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es397.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js"],"sourcesContent":["import{breakpoints as c}from\"../props/prop-def.js\";import{hasOwnProperty as a}from\"./has-own-property.js\";import{isResponsiveObject as d}from\"./is-responsive-object.js\";function R({className:r,customProperties:n,...t}){const p=g({allowArbitraryValues:!0,className:r,...t}),e=m({customProperties:n,...t});return[p,e]}function g({allowArbitraryValues:r,value:n,className:t,propValues:p,parseValue:e=s=>s}){const s=[];if(n){if(typeof n==\"string\"&&p.includes(n))return l(t,n,e);if(d(n)){const i=n;for(const o in i){if(!a(i,o)||!c.includes(o))continue;const u=i[o];if(u!==void 0){if(p.includes(u)){const f=l(t,u,e),v=o===\"initial\"?f:`${o}:${f}`;s.push(v)}else if(r){const f=o===\"initial\"?t:`${o}:${t}`;s.push(f)}}}return s.join(\" \")}if(r)return t}}function l(r,n,t){const p=r?\"-\":\"\",e=t(n),s=e?.startsWith(\"-\"),i=s?\"-\":\"\",o=s?e?.substring(1):e;return`${i}${r}${p}${o}`}function m({customProperties:r,value:n,propValues:t,parseValue:p=e=>e}){let e={};if(!(!n||typeof n==\"string\"&&t.includes(n))){if(typeof n==\"string\"&&(e=Object.fromEntries(r.map(s=>[s,n]))),d(n)){const s=n;for(const i in s){if(!a(s,i)||!c.includes(i))continue;const o=s[i];if(!t.includes(o))for(const u of r)e={[i===\"initial\"?u:`${u}-${i}`]:o,...e}}}for(const s in e){const i=e[s];i!==void 0&&(e[s]=p(i))}return e}}export{g as getResponsiveClassNames,m as getResponsiveCustomProperties,R as getResponsiveStyles};\n//# sourceMappingURL=get-responsive-styles.js.map\n"],"names":["R","
|
1
|
+
{"version":3,"file":"index.es397.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js"],"sourcesContent":["import{breakpoints as c}from\"../props/prop-def.js\";import{hasOwnProperty as a}from\"./has-own-property.js\";import{isResponsiveObject as d}from\"./is-responsive-object.js\";function R({className:r,customProperties:n,...t}){const p=g({allowArbitraryValues:!0,className:r,...t}),e=m({customProperties:n,...t});return[p,e]}function g({allowArbitraryValues:r,value:n,className:t,propValues:p,parseValue:e=s=>s}){const s=[];if(n){if(typeof n==\"string\"&&p.includes(n))return l(t,n,e);if(d(n)){const i=n;for(const o in i){if(!a(i,o)||!c.includes(o))continue;const u=i[o];if(u!==void 0){if(p.includes(u)){const f=l(t,u,e),v=o===\"initial\"?f:`${o}:${f}`;s.push(v)}else if(r){const f=o===\"initial\"?t:`${o}:${t}`;s.push(f)}}}return s.join(\" \")}if(r)return t}}function l(r,n,t){const p=r?\"-\":\"\",e=t(n),s=e?.startsWith(\"-\"),i=s?\"-\":\"\",o=s?e?.substring(1):e;return`${i}${r}${p}${o}`}function m({customProperties:r,value:n,propValues:t,parseValue:p=e=>e}){let e={};if(!(!n||typeof n==\"string\"&&t.includes(n))){if(typeof n==\"string\"&&(e=Object.fromEntries(r.map(s=>[s,n]))),d(n)){const s=n;for(const i in s){if(!a(s,i)||!c.includes(i))continue;const o=s[i];if(!t.includes(o))for(const u of r)e={[i===\"initial\"?u:`${u}-${i}`]:o,...e}}}for(const s in e){const i=e[s];i!==void 0&&(e[s]=p(i))}return e}}export{g as getResponsiveClassNames,m as getResponsiveCustomProperties,R as getResponsiveStyles};\n//# sourceMappingURL=get-responsive-styles.js.map\n"],"names":["R","n","p","g","e","m","s","l","d","i","o","a","c","u","f","v"],"mappings":";;;AAAyK,SAASA,EAAE,EAAC,WAAU,GAAE,kBAAiBC,GAAE,GAAG,EAAC,GAAE;AAAC,QAAMC,IAAEC,EAAE,EAAC,sBAAqB,IAAG,WAAU,GAAE,GAAG,EAAC,CAAC,GAAEC,IAAEC,EAAE,EAAC,kBAAiBJ,GAAE,GAAG,EAAC,CAAC;AAAE,SAAM,CAACC,GAAEE,CAAC;AAAC;AAAC,SAASD,EAAE,EAAC,sBAAqB,GAAE,OAAMF,GAAE,WAAU,GAAE,YAAWC,GAAE,YAAWE,IAAE,CAAAE,MAAGA,EAAC,GAAE;AAAC,QAAMA,IAAE,CAAA;AAAG,MAAGL,GAAE;AAAC,QAAG,OAAOA,KAAG,YAAUC,EAAE,SAASD,CAAC,EAAE,QAAOM,EAAE,GAAEN,GAAEG,CAAC;AAAE,QAAGI,EAAEP,CAAC,GAAE;AAAC,YAAMQ,IAAER;AAAE,iBAAUS,KAAKD,GAAE;AAAC,YAAG,CAACE,EAAEF,GAAEC,CAAC,KAAG,CAACE,EAAE,SAASF,CAAC,EAAE;AAAS,cAAMG,IAAEJ,EAAEC,CAAC;AAAE,YAAGG,MAAI;AAAQ,cAAGX,EAAE,SAASW,CAAC,GAAE;AAAC,kBAAMC,IAAEP,EAAE,GAAEM,GAAET,CAAC,GAAEW,IAAEL,MAAI,YAAUI,IAAE,GAAGJ,CAAC,IAAII,CAAC;AAAG,YAAAR,EAAE,KAAKS,CAAC;AAAA,UAAC,WAAS,GAAE;AAAC,kBAAMD,IAAEJ,MAAI,YAAU,IAAE,GAAGA,CAAC,IAAI,CAAC;AAAG,YAAAJ,EAAE,KAAKQ,CAAC;AAAA,UAAC;AAAA;AAAA,MAAE;AAAC,aAAOR,EAAE,KAAK,GAAG;AAAA,IAAC;AAAC,QAAG,EAAE,QAAO;AAAA,EAAC;AAAC;AAAC,SAASC,EAAE,GAAEN,GAAE,GAAE;AAAC,QAAMC,IAAE,IAAE,MAAI,IAAGE,IAAE,EAAEH,CAAC,GAAEK,IAAEF,KAAA,gBAAAA,EAAG,WAAW,MAAKK,IAAEH,IAAE,MAAI,IAAGI,IAAEJ,IAAEF,KAAA,gBAAAA,EAAG,UAAU,KAAGA;AAAE,SAAM,GAAGK,CAAC,GAAG,CAAC,GAAGP,CAAC,GAAGQ,CAAC;AAAE;AAAC,SAASL,EAAE,EAAC,kBAAiB,GAAE,OAAMJ,GAAE,YAAW,GAAE,YAAWC,IAAE,CAAAE,MAAGA,EAAC,GAAE;AAAC,MAAIA,IAAE,CAAE;AAAC,MAAG,EAAE,CAACH,KAAG,OAAOA,KAAG,YAAU,EAAE,SAASA,CAAC,IAAG;AAAC,QAAG,OAAOA,KAAG,aAAWG,IAAE,OAAO,YAAY,EAAE,IAAI,CAAAE,MAAG,CAACA,GAAEL,CAAC,CAAC,CAAC,IAAGO,EAAEP,CAAC,GAAE;AAAC,YAAMK,IAAEL;AAAE,iBAAUQ,KAAKH,GAAE;AAAC,YAAG,CAACK,EAAEL,GAAEG,CAAC,KAAG,CAACG,EAAE,SAASH,CAAC,EAAE;AAAS,cAAMC,IAAEJ,EAAEG,CAAC;AAAE,YAAG,CAAC,EAAE,SAASC,CAAC,EAAE,YAAUG,KAAK,EAAET,CAAAA,IAAE,EAAC,CAACK,MAAI,YAAUI,IAAE,GAAGA,CAAC,IAAIJ,CAAC,EAAE,GAAEC,GAAE,GAAGN,EAAC;AAAA,MAAC;AAAA,IAAC;AAAC,eAAUE,KAAKF,GAAE;AAAC,YAAMK,IAAEL,EAAEE,CAAC;AAAE,MAAAG,MAAI,WAASL,EAAEE,CAAC,IAAEJ,EAAEO,CAAC;AAAA,IAAE;AAAC,WAAOL;AAAAA,EAAC;AAAC;","x_google_ignoreList":[0]}
|
package/dist/index.es399.js
CHANGED
package/dist/index.es399.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es399.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.js"],"sourcesContent":["function l(...t){let e={};for(const n of t)n&&(e={...e,...n});return Object.keys(e).length?e:void 0}export{l as mergeStyles};\n//# sourceMappingURL=merge-styles.js.map\n"],"names":["l"
|
1
|
+
{"version":3,"file":"index.es399.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.js"],"sourcesContent":["function l(...t){let e={};for(const n of t)n&&(e={...e,...n});return Object.keys(e).length?e:void 0}export{l as mergeStyles};\n//# sourceMappingURL=merge-styles.js.map\n"],"names":["l"],"mappings":"AAAA,SAASA,KAAK,GAAE;AAAC,MAAI,IAAE;AAAG,aAAU,KAAK,EAAE,OAAI,IAAE,EAAC,GAAG,GAAE,GAAG,EAAC;AAAG,SAAO,OAAO,KAAK,CAAC,EAAE,SAAO,IAAE;AAAM;","x_google_ignoreList":[0]}
|
package/dist/index.es403.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
const e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"],
|
1
|
+
const e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], s = { m: { type: "enum | string", values: e, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: e, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: e, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: e, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: e, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: e, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: e, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } };
|
2
2
|
export {
|
3
|
-
|
3
|
+
s as marginPropDefs
|
4
4
|
};
|
5
5
|
//# sourceMappingURL=index.es403.js.map
|
package/dist/index.es403.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es403.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/margin.props.js"],"sourcesContent":["const e=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"-1\",\"-2\",\"-3\",\"-4\",\"-5\",\"-6\",\"-7\",\"-8\",\"-9\"],r={m:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-m\",customProperties:[\"--m\"]},mx:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-mx\",customProperties:[\"--ml\",\"--mr\"]},my:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-my\",customProperties:[\"--mt\",\"--mb\"]},mt:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-mt\",customProperties:[\"--mt\"]},mr:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-mr\",customProperties:[\"--mr\"]},mb:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-mb\",customProperties:[\"--mb\"]},ml:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-ml\",customProperties:[\"--ml\"]}};export{r as marginPropDefs};\n//# sourceMappingURL=margin.props.js.map\n"],"names":[],"mappings":"AAAK,MAAC,IAAE,CAAC,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,MAAK,MAAK,MAAK,MAAK,MAAK,MAAK,MAAK,MAAK,IAAI,
|
1
|
+
{"version":3,"file":"index.es403.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/margin.props.js"],"sourcesContent":["const e=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"-1\",\"-2\",\"-3\",\"-4\",\"-5\",\"-6\",\"-7\",\"-8\",\"-9\"],r={m:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-m\",customProperties:[\"--m\"]},mx:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-mx\",customProperties:[\"--ml\",\"--mr\"]},my:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-my\",customProperties:[\"--mt\",\"--mb\"]},mt:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-mt\",customProperties:[\"--mt\"]},mr:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-mr\",customProperties:[\"--mr\"]},mb:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-mb\",customProperties:[\"--mb\"]},ml:{type:\"enum | string\",values:e,responsive:!0,className:\"rt-r-ml\",customProperties:[\"--ml\"]}};export{r as marginPropDefs};\n//# sourceMappingURL=margin.props.js.map\n"],"names":["r"],"mappings":"AAAK,MAAC,IAAE,CAAC,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,MAAK,MAAK,MAAK,MAAK,MAAK,MAAK,MAAK,MAAK,IAAI,GAAEA,IAAE,EAAC,GAAE,EAAC,MAAK,iBAAgB,QAAO,GAAE,YAAW,IAAG,WAAU,UAAS,kBAAiB,CAAC,KAAK,EAAC,GAAE,IAAG,EAAC,MAAK,iBAAgB,QAAO,GAAE,YAAW,IAAG,WAAU,WAAU,kBAAiB,CAAC,QAAO,MAAM,EAAC,GAAE,IAAG,EAAC,MAAK,iBAAgB,QAAO,GAAE,YAAW,IAAG,WAAU,WAAU,kBAAiB,CAAC,QAAO,MAAM,EAAC,GAAE,IAAG,EAAC,MAAK,iBAAgB,QAAO,GAAE,YAAW,IAAG,WAAU,WAAU,kBAAiB,CAAC,MAAM,EAAC,GAAE,IAAG,EAAC,MAAK,iBAAgB,QAAO,GAAE,YAAW,IAAG,WAAU,WAAU,kBAAiB,CAAC,MAAM,EAAC,GAAE,IAAG,EAAC,MAAK,iBAAgB,QAAO,GAAE,YAAW,IAAG,WAAU,WAAU,kBAAiB,CAAC,MAAM,EAAC,GAAE,IAAG,EAAC,MAAK,iBAAgB,QAAO,GAAE,YAAW,IAAG,WAAU,WAAU,kBAAiB,CAAC,MAAM,EAAC,EAAC;","x_google_ignoreList":[0]}
|
package/dist/index.es47.js
CHANGED
@@ -2,7 +2,7 @@ import { j as e } from "./index.es180.js";
|
|
2
2
|
import { Root as l, Thumb as c } from "./index.es257.js";
|
3
3
|
import { Row as x } from "./index.es9.js";
|
4
4
|
import './components/ui/Switch/Switch.css';/* empty css */
|
5
|
-
const
|
5
|
+
const g = ({
|
6
6
|
id: t = void 0,
|
7
7
|
label: s = "",
|
8
8
|
checked: o = !1,
|
@@ -70,6 +70,6 @@ const p = ({
|
|
70
70
|
] });
|
71
71
|
};
|
72
72
|
export {
|
73
|
-
|
73
|
+
g as Switch
|
74
74
|
};
|
75
75
|
//# sourceMappingURL=index.es47.js.map
|
package/dist/index.es5.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { signedOffset as E,
|
2
|
-
import {
|
1
|
+
import { signedOffset as E, parseFloating as l, parseMillis as F, untruncateYear as w, parseInteger as f, isUndefined as Y } from "./index.es167.js";
|
2
|
+
import { monthsShort as v, weekdaysLong as z, weekdaysShort as P } from "./index.es313.js";
|
3
3
|
import y from "./index.es165.js";
|
4
4
|
import q from "./index.es175.js";
|
5
5
|
const W = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
|
@@ -95,12 +95,12 @@ const te = {
|
|
95
95
|
function D(e, t, n, r, o, i, d) {
|
96
96
|
const s = {
|
97
97
|
year: t.length === 2 ? w(f(t)) : f(t),
|
98
|
-
month:
|
98
|
+
month: v.indexOf(n) + 1,
|
99
99
|
day: f(r),
|
100
100
|
hour: f(o),
|
101
101
|
minute: f(i)
|
102
102
|
};
|
103
|
-
return d && (s.second = f(d)), e && (s.weekday = e.length > 3 ?
|
103
|
+
return d && (s.second = f(d)), e && (s.weekday = e.length > 3 ? z.indexOf(e) + 1 : P.indexOf(e) + 1), s;
|
104
104
|
}
|
105
105
|
const ne = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
|
106
106
|
function re(e) {
|
package/dist/index.es65.js
CHANGED
@@ -13,35 +13,35 @@ const X = _.forwardRef(
|
|
13
13
|
columns: t,
|
14
14
|
data: s,
|
15
15
|
pagination: i,
|
16
|
-
initialCurrentPage:
|
16
|
+
initialCurrentPage: j = 1,
|
17
17
|
resultsPerPage: m = 10,
|
18
|
-
defaultSortDirection:
|
18
|
+
defaultSortDirection: l = "desc",
|
19
19
|
...p
|
20
20
|
}, g) => {
|
21
|
-
const [d,
|
21
|
+
const [d, h] = _.useState({
|
22
22
|
key: t[0].key || t[0].label,
|
23
|
-
direction:
|
24
|
-
}), [k, $] = _.useState(
|
25
|
-
const r = o[d.key],
|
26
|
-
(
|
23
|
+
direction: l
|
24
|
+
}), [k, $] = _.useState(j), N = _.useMemo(() => [...s].sort((o, x) => {
|
25
|
+
const r = o[d.key], n = x[d.key], b = t.find(
|
26
|
+
(f) => (f.key || f.label) === d.key
|
27
27
|
);
|
28
|
-
if (typeof r == "string" && typeof
|
28
|
+
if (typeof r == "string" && typeof n == "string") {
|
29
29
|
if ((b == null ? void 0 : b.type) === "date") {
|
30
|
-
const
|
30
|
+
const f = (M) => {
|
31
31
|
const [F, H] = M.split(" - "), [V, z, E] = F.split("/").map(Number), [O, U] = H.split(":").map(Number);
|
32
32
|
return new Date(E, z - 1, V, O, U);
|
33
|
-
},
|
34
|
-
return d.direction === "asc" ?
|
33
|
+
}, u = f(r), C = f(n);
|
34
|
+
return d.direction === "asc" ? u.getTime() - C.getTime() : C.getTime() - u.getTime();
|
35
35
|
}
|
36
36
|
if ((b == null ? void 0 : b.type) === "number") {
|
37
|
-
const
|
38
|
-
return d.direction === "asc" ?
|
37
|
+
const f = parseFloat(r), u = parseFloat(n);
|
38
|
+
return d.direction === "asc" ? f - u : u - f;
|
39
39
|
}
|
40
|
-
return d.direction === "asc" ? r.localeCompare(
|
40
|
+
return d.direction === "asc" ? r.localeCompare(n) : n.localeCompare(r);
|
41
41
|
}
|
42
|
-
return y(r) && y(
|
42
|
+
return y(r) && y(n) ? d.direction === "asc" ? r.firstLine.localeCompare(n.firstLine) : n.firstLine.localeCompare(r.firstLine) : 0;
|
43
43
|
}), [s, d, t]), S = (o) => {
|
44
|
-
|
44
|
+
h((x) => ({
|
45
45
|
key: o,
|
46
46
|
direction: x.key === o && x.direction === "asc" ? "desc" : "asc"
|
47
47
|
}));
|
@@ -55,7 +55,7 @@ const X = _.forwardRef(
|
|
55
55
|
role: "table",
|
56
56
|
...p,
|
57
57
|
children: [
|
58
|
-
/* @__PURE__ */ a.jsx(
|
58
|
+
/* @__PURE__ */ a.jsx(v, { className: "table__header", children: /* @__PURE__ */ a.jsx(w, { children: t.map((o, x) => /* @__PURE__ */ a.jsx(
|
59
59
|
R,
|
60
60
|
{
|
61
61
|
config: o,
|
@@ -64,21 +64,21 @@ const X = _.forwardRef(
|
|
64
64
|
},
|
65
65
|
`${o.label}-${x}`
|
66
66
|
)) }) }),
|
67
|
-
/* @__PURE__ */ a.jsx(D, { className: "table__body", children: I.map((o, x) => /* @__PURE__ */ a.jsx(w, { className: "table__row", children: Object.entries(o).map(([r,
|
67
|
+
/* @__PURE__ */ a.jsx(D, { className: "table__body", children: I.map((o, x) => /* @__PURE__ */ a.jsx(w, { className: "table__row", children: Object.entries(o).map(([r, n], b) => n ? r === "actionData" && A(n) ? /* @__PURE__ */ a.jsx(
|
68
68
|
T,
|
69
69
|
{
|
70
|
-
content:
|
70
|
+
content: n,
|
71
71
|
type: "action"
|
72
72
|
},
|
73
73
|
`${r}-${b}`
|
74
|
-
) : y(
|
74
|
+
) : y(n) ? /* @__PURE__ */ a.jsx(
|
75
75
|
T,
|
76
76
|
{
|
77
|
-
content:
|
77
|
+
content: n,
|
78
78
|
type: "double-line"
|
79
79
|
},
|
80
80
|
`${r}-${b}`
|
81
|
-
) : typeof
|
81
|
+
) : typeof n == "string" ? /* @__PURE__ */ a.jsx(T, { content: n }, `${r}-${b}`) : null : null) }, x)) })
|
82
82
|
]
|
83
83
|
}
|
84
84
|
),
|
@@ -95,7 +95,7 @@ const X = _.forwardRef(
|
|
95
95
|
}
|
96
96
|
);
|
97
97
|
X.displayName = "Table";
|
98
|
-
const
|
98
|
+
const v = _.forwardRef(
|
99
99
|
({ className: e, children: t, ...s }, i) => /* @__PURE__ */ a.jsx(
|
100
100
|
"thead",
|
101
101
|
{
|
@@ -106,7 +106,7 @@ const C = _.forwardRef(
|
|
106
106
|
}
|
107
107
|
)
|
108
108
|
);
|
109
|
-
|
109
|
+
v.displayName = "TableHeader";
|
110
110
|
const D = _.forwardRef(
|
111
111
|
({ className: e, children: t, ...s }, i) => /* @__PURE__ */ a.jsx(
|
112
112
|
"tbody",
|
@@ -134,15 +134,15 @@ const w = _.forwardRef(
|
|
134
134
|
)
|
135
135
|
);
|
136
136
|
w.displayName = "TableRow";
|
137
|
-
const R = _.forwardRef(({ className: e, config: t, sortConfig: s, onSort: i, ...
|
138
|
-
const
|
139
|
-
switch (
|
137
|
+
const R = _.forwardRef(({ className: e, config: t, sortConfig: s, onSort: i, ...j }, m) => {
|
138
|
+
const l = s.key === (t.key || t.label), p = l ? s.direction : null, g = () => p === "asc" ? "ascending" : "descending", d = (h) => {
|
139
|
+
switch (h) {
|
140
140
|
case "info":
|
141
141
|
return /* @__PURE__ */ a.jsx(Q, {});
|
142
142
|
case "download":
|
143
143
|
return /* @__PURE__ */ a.jsx(W, {});
|
144
144
|
default:
|
145
|
-
return
|
145
|
+
return h;
|
146
146
|
}
|
147
147
|
};
|
148
148
|
return /* @__PURE__ */ a.jsx(
|
@@ -159,8 +159,8 @@ const R = _.forwardRef(({ className: e, config: t, sortConfig: s, onSort: i, ...
|
|
159
159
|
),
|
160
160
|
onClick: t.sortable ? i : t.action,
|
161
161
|
"aria-label": t.ariaLabel,
|
162
|
-
"aria-sort":
|
163
|
-
...
|
162
|
+
"aria-sort": l ? g() : void 0,
|
163
|
+
...j,
|
164
164
|
children: /* @__PURE__ */ a.jsxs("div", { className: "table__cell--header--content", children: [
|
165
165
|
/* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(
|
166
166
|
q,
|
@@ -178,18 +178,18 @@ const R = _.forwardRef(({ className: e, config: t, sortConfig: s, onSort: i, ...
|
|
178
178
|
/* @__PURE__ */ a.jsx(
|
179
179
|
G,
|
180
180
|
{
|
181
|
-
filled:
|
181
|
+
filled: l && p === "desc",
|
182
182
|
className: c("sort-indicator__triangle", {
|
183
|
-
active:
|
183
|
+
active: l && p === "desc"
|
184
184
|
})
|
185
185
|
}
|
186
186
|
),
|
187
187
|
/* @__PURE__ */ a.jsx(
|
188
188
|
J,
|
189
189
|
{
|
190
|
-
filled:
|
190
|
+
filled: l && p === "asc",
|
191
191
|
className: c("sort-indicator__triangle", {
|
192
|
-
active:
|
192
|
+
active: l && p === "asc"
|
193
193
|
})
|
194
194
|
}
|
195
195
|
)
|
@@ -205,10 +205,10 @@ const Y = ({ data: e }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
205
205
|
] }), Z = ({ data: e }) => e.type === "link" && e.link ? /* @__PURE__ */ a.jsx("a", { href: e.link, "aria-label": e.ariaLabel, children: e.label }) : /* @__PURE__ */ a.jsx("button", { onClick: e.action, "aria-label": e.ariaLabel, children: e.label }), y = (e) => typeof e == "object" && e !== null && "firstLine" in e && "secondLine" in e, A = (e) => typeof e == "object" && e !== null && "label" in e && "type" in e, K = ({
|
206
206
|
content: e
|
207
207
|
}) => typeof e == "string" ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e }) : y(e) ? /* @__PURE__ */ a.jsx(Y, { data: e }) : A(e) ? /* @__PURE__ */ a.jsx(Z, { data: e }) : null, T = _.forwardRef(
|
208
|
-
({ className: e, content: t, type: s, ...i },
|
208
|
+
({ className: e, content: t, type: s, ...i }, j) => /* @__PURE__ */ a.jsx(
|
209
209
|
"td",
|
210
210
|
{
|
211
|
-
ref:
|
211
|
+
ref: j,
|
212
212
|
className: c(
|
213
213
|
"table__cell",
|
214
214
|
{
|
@@ -228,10 +228,10 @@ const P = ({
|
|
228
228
|
totalResults: t,
|
229
229
|
resultsPerPage: s,
|
230
230
|
setCurrentPage: i,
|
231
|
-
className:
|
231
|
+
className: j
|
232
232
|
}) => {
|
233
233
|
const m = Math.ceil(t / s);
|
234
|
-
return /* @__PURE__ */ a.jsxs("div", { className: c("pagination",
|
234
|
+
return /* @__PURE__ */ a.jsxs("div", { className: c("pagination", j), children: [
|
235
235
|
/* @__PURE__ */ a.jsxs("div", { className: "pagination__info", children: [
|
236
236
|
"Stai visualizzando",
|
237
237
|
" ",
|
@@ -255,17 +255,17 @@ const P = ({
|
|
255
255
|
children: /* @__PURE__ */ a.jsx("svg", { className: "pagination__button-arrow", viewBox: "0 0 24 24", children: /* @__PURE__ */ a.jsx("path", { d: "M15 18l-6-6 6-6" }) })
|
256
256
|
}
|
257
257
|
),
|
258
|
-
Array.from({ length: m }, (
|
258
|
+
Array.from({ length: m }, (l, p) => p + 1).map((l) => /* @__PURE__ */ a.jsx(
|
259
259
|
"button",
|
260
260
|
{
|
261
261
|
className: c(
|
262
262
|
"pagination__button",
|
263
|
-
e ===
|
263
|
+
e === l && "pagination__button--active"
|
264
264
|
),
|
265
|
-
onClick: () => i(
|
266
|
-
children:
|
265
|
+
onClick: () => i(l),
|
266
|
+
children: l
|
267
267
|
},
|
268
|
-
|
268
|
+
l
|
269
269
|
)),
|
270
270
|
/* @__PURE__ */ a.jsx(
|
271
271
|
"button",
|
@@ -289,7 +289,7 @@ export {
|
|
289
289
|
D as TableBody,
|
290
290
|
T as TableCell,
|
291
291
|
R as TableHead,
|
292
|
-
|
292
|
+
v as TableHeader,
|
293
293
|
w as TableRow
|
294
294
|
};
|
295
295
|
//# sourceMappingURL=index.es65.js.map
|
package/dist/index.es68.js
CHANGED
@@ -1,33 +1,33 @@
|
|
1
1
|
import { j as i } from "./index.es180.js";
|
2
|
-
import
|
2
|
+
import o from "./index.es161.js";
|
3
3
|
import "./index.es3.js";
|
4
4
|
import './components/ui/DatePicker/DatePicker.css';/* empty css */
|
5
|
-
import { clsx as
|
6
|
-
import { useRef as
|
5
|
+
import { clsx as h } from "./index.es182.js";
|
6
|
+
import { useRef as v, useEffect as j } from "react";
|
7
7
|
const F = ({
|
8
|
-
label:
|
8
|
+
label: d,
|
9
9
|
value: m,
|
10
10
|
maxValue: c,
|
11
11
|
minValue: l,
|
12
|
-
className:
|
13
|
-
disabled:
|
12
|
+
className: p,
|
13
|
+
disabled: s,
|
14
14
|
onClick: a,
|
15
15
|
onChange: y,
|
16
16
|
error: r,
|
17
|
-
required:
|
17
|
+
required: u = !1,
|
18
18
|
id: b
|
19
19
|
}) => {
|
20
|
-
const t =
|
20
|
+
const t = v(null), e = b || `datepicker-${d.toLowerCase().replace(/\s+/g, "-")}`;
|
21
21
|
j(() => {
|
22
22
|
r && t.current ? (t.current.setAttribute("aria-invalid", "true"), t.current.setAttribute("aria-describedby", `${e}-error`)) : t.current && (t.current.setAttribute("aria-invalid", "false"), t.current.removeAttribute("aria-describedby"));
|
23
23
|
}, [r, e]);
|
24
|
-
const
|
25
|
-
|
26
|
-
},
|
24
|
+
const x = (n) => {
|
25
|
+
n.key === "Enter" && !s && (a == null || a());
|
26
|
+
}, D = m ? o.fromJSDate(m).toFormat("yyyy-MM-dd") : "";
|
27
27
|
return /* @__PURE__ */ i.jsxs(
|
28
28
|
"div",
|
29
29
|
{
|
30
|
-
className:
|
30
|
+
className: h("datepicker-container", p),
|
31
31
|
role: "group",
|
32
32
|
"aria-labelledby": `${e}-label`,
|
33
33
|
"aria-describedby": r ? `${e}-error` : void 0,
|
@@ -39,8 +39,8 @@ const F = ({
|
|
39
39
|
htmlFor: e,
|
40
40
|
className: "datepicker-label fs-7",
|
41
41
|
children: [
|
42
|
-
|
43
|
-
|
42
|
+
d,
|
43
|
+
u && /* @__PURE__ */ i.jsx("span", { className: "text-error ml-1", "aria-hidden": "true", children: "*" })
|
44
44
|
]
|
45
45
|
}
|
46
46
|
),
|
@@ -51,19 +51,19 @@ const F = ({
|
|
51
51
|
id: e,
|
52
52
|
type: "date",
|
53
53
|
className: "datepicker-input fs-6",
|
54
|
-
disabled:
|
55
|
-
value:
|
56
|
-
max: c ?
|
57
|
-
min: l ?
|
54
|
+
disabled: s,
|
55
|
+
value: D,
|
56
|
+
max: c ? o.fromJSDate(c).toFormat("yyyy-MM-dd") : void 0,
|
57
|
+
min: l ? o.fromJSDate(l).toFormat("yyyy-MM-dd") : void 0,
|
58
58
|
onClick: () => a == null ? void 0 : a(),
|
59
|
-
onChange: (
|
60
|
-
const
|
61
|
-
isNaN(
|
59
|
+
onChange: (n) => {
|
60
|
+
const f = new Date(n.target.value);
|
61
|
+
isNaN(f.getTime()) || y(f);
|
62
62
|
},
|
63
|
-
onKeyDown:
|
64
|
-
"aria-required":
|
65
|
-
"aria-disabled":
|
66
|
-
"aria-label":
|
63
|
+
onKeyDown: x,
|
64
|
+
"aria-required": u,
|
65
|
+
"aria-disabled": s,
|
66
|
+
"aria-label": d,
|
67
67
|
"aria-invalid": !!r,
|
68
68
|
"aria-describedby": r ? `${e}-error` : void 0
|
69
69
|
}
|