@anoki/fse-ui 2.1.0-SNAPSHOT1.1 → 2.1.0-SNAPSHOT1.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/dist/components/ui/InfoPopup/InfoPopup.css +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs165.js +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs169.js +1 -1
- package/dist/index.cjs170.js +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs173.js +1 -1
- package/dist/index.cjs174.js +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs178.js +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs185.js +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs192.js +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs214.js +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs216.js +1 -1
- package/dist/index.cjs217.js +1 -1
- package/dist/index.cjs223.js +1 -1
- package/dist/index.cjs225.js +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs227.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs272.js +1 -1
- package/dist/index.cjs272.js.map +1 -1
- package/dist/index.cjs279.js +1 -1
- package/dist/index.cjs279.js.map +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs281.js +2 -0
- package/dist/index.cjs281.js.map +1 -0
- package/dist/index.cjs300.js +1 -1
- package/dist/index.cjs302.js +1 -1
- package/dist/index.cjs310.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs326.js +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs335.js +1 -1
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs351.js +1 -1
- package/dist/index.cjs357.js +1 -1
- package/dist/index.cjs358.js +1 -1
- package/dist/index.cjs359.js +1 -1
- package/dist/index.cjs400.js +1 -1
- package/dist/index.cjs432.js +1 -1
- package/dist/index.cjs432.js.map +1 -1
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs449.js +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs461.js +1 -1
- package/dist/index.cjs462.js +27 -1
- package/dist/index.cjs462.js.map +1 -1
- package/dist/index.cjs463.js +1 -2
- package/dist/index.cjs463.js.map +1 -1
- package/dist/index.cjs464.js +1 -27
- package/dist/index.cjs464.js.map +1 -1
- package/dist/index.cjs465.js +1 -1
- package/dist/index.cjs465.js.map +1 -1
- package/dist/index.cjs466.js +2 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs474.js +1 -1
- package/dist/index.cjs475.js +1 -1
- package/dist/index.cjs477.js +1 -1
- package/dist/index.cjs477.js.map +1 -1
- package/dist/{index.cjs481.js → index.cjs478.js} +1 -1
- package/dist/{index.cjs481.js.map → index.cjs478.js.map} +1 -1
- package/dist/{index.cjs482.js → index.cjs479.js} +1 -1
- package/dist/{index.cjs482.js.map → index.cjs479.js.map} +1 -1
- package/dist/index.cjs480.js +1 -1
- package/dist/index.cjs480.js.map +1 -1
- package/dist/index.cjs483.js +2 -0
- package/dist/index.cjs483.js.map +1 -0
- package/dist/index.cjs486.js +2 -0
- package/dist/index.cjs486.js.map +1 -0
- package/dist/index.cjs487.js +2 -0
- package/dist/index.cjs487.js.map +1 -0
- package/dist/index.cjs488.js +1 -1
- package/dist/index.cjs488.js.map +1 -1
- package/dist/index.cjs489.js +1 -1
- package/dist/index.cjs489.js.map +1 -1
- package/dist/index.cjs490.js +1 -1
- package/dist/index.cjs490.js.map +1 -1
- package/dist/index.cjs491.js +1 -1
- package/dist/index.cjs491.js.map +1 -1
- package/dist/index.cjs492.js +1 -1
- package/dist/index.cjs492.js.map +1 -1
- package/dist/index.cjs514.js +1 -1
- package/dist/index.cjs524.js +2 -0
- package/dist/index.cjs524.js.map +1 -0
- package/dist/{index.cjs522.js → index.cjs525.js} +1 -1
- package/dist/index.cjs525.js.map +1 -0
- package/dist/index.cjs526.js +1 -1
- package/dist/index.cjs526.js.map +1 -1
- package/dist/index.cjs532.js +1 -1
- package/dist/index.cjs534.js +1 -1
- package/dist/index.cjs537.js +1 -1
- package/dist/index.cjs537.js.map +1 -1
- package/dist/index.cjs538.js +1 -1
- package/dist/index.cjs538.js.map +1 -1
- package/dist/index.cjs578.js +1 -1
- package/dist/index.cjs582.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs618.js +1 -1
- package/dist/index.cjs619.js +1 -1
- package/dist/index.cjs624.js +1 -1
- package/dist/index.cjs628.js +1 -1
- package/dist/index.cjs629.js +1 -1
- package/dist/index.cjs636.js +1 -1
- package/dist/index.cjs641.js +1 -1
- package/dist/index.cjs645.js +1 -1
- package/dist/index.cjs647.js +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs662.js +1 -1
- package/dist/index.cjs662.js.map +1 -1
- package/dist/index.cjs663.js +38 -1
- package/dist/index.cjs663.js.map +1 -1
- package/dist/index.cjs664.js +1 -1
- package/dist/index.cjs664.js.map +1 -1
- package/dist/index.cjs665.js +1 -1
- package/dist/index.cjs665.js.map +1 -1
- package/dist/index.cjs666.js +1 -38
- package/dist/index.cjs666.js.map +1 -1
- package/dist/index.cjs667.js +1 -1
- package/dist/index.cjs667.js.map +1 -1
- package/dist/index.cjs668.js +1 -1
- package/dist/index.cjs668.js.map +1 -1
- package/dist/index.cjs669.js +1 -1
- package/dist/index.cjs669.js.map +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs7.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs80.js.map +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.es10.js +2 -2
- package/dist/index.es138.js +1 -1
- package/dist/index.es159.js +1 -1
- package/dist/index.es160.js +1 -1
- package/dist/index.es161.js +1 -1
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +1 -1
- package/dist/index.es164.js +1 -1
- package/dist/index.es165.js +1 -1
- package/dist/index.es166.js +1 -1
- package/dist/index.es167.js +1 -1
- package/dist/index.es168.js +1 -1
- package/dist/index.es169.js +1 -1
- package/dist/index.es170.js +1 -1
- package/dist/index.es171.js +1 -1
- package/dist/index.es172.js +1 -1
- package/dist/index.es173.js +1 -1
- package/dist/index.es174.js +1 -1
- package/dist/index.es175.js +1 -1
- package/dist/index.es176.js +1 -1
- package/dist/index.es177.js +1 -1
- package/dist/index.es178.js +1 -1
- package/dist/index.es179.js +1 -1
- package/dist/index.es180.js +1 -1
- package/dist/index.es181.js +1 -1
- package/dist/index.es185.js +1 -1
- package/dist/index.es186.js +1 -1
- package/dist/index.es187.js +1 -1
- package/dist/index.es189.js +1 -1
- package/dist/index.es190.js +1 -1
- package/dist/index.es191.js +1 -1
- package/dist/index.es192.js +1 -1
- package/dist/index.es193.js +1 -1
- package/dist/index.es194.js +1 -1
- package/dist/index.es195.js +1 -1
- package/dist/index.es196.js +1 -1
- package/dist/index.es197.js +1 -1
- package/dist/index.es199.js +1 -1
- package/dist/index.es200.js +1 -1
- package/dist/index.es201.js +1 -1
- package/dist/index.es202.js +1 -1
- package/dist/index.es203.js +1 -1
- package/dist/index.es204.js +1 -1
- package/dist/index.es205.js +1 -1
- package/dist/index.es208.js +1 -1
- package/dist/index.es209.js +1 -1
- package/dist/index.es210.js +1 -1
- package/dist/index.es211.js +1 -1
- package/dist/index.es212.js +1 -1
- package/dist/index.es213.js +1 -1
- package/dist/index.es214.js +1 -1
- package/dist/index.es215.js +1 -1
- package/dist/index.es216.js +1 -1
- package/dist/index.es217.js +1 -1
- package/dist/index.es223.js +1 -1
- package/dist/index.es225.js +1 -1
- package/dist/index.es226.js +1 -1
- package/dist/index.es227.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es251.js +1 -1
- package/dist/index.es258.js +2 -2
- package/dist/index.es272.js +15 -5
- package/dist/index.es272.js.map +1 -1
- package/dist/index.es279.js +27 -2
- package/dist/index.es279.js.map +1 -1
- package/dist/index.es28.js +1 -1
- package/dist/index.es281.js +5 -0
- package/dist/index.es281.js.map +1 -0
- package/dist/index.es300.js +1 -1
- package/dist/index.es302.js +1 -1
- package/dist/index.es310.js +3 -3
- package/dist/index.es32.js +1 -1
- package/dist/index.es321.js +1 -1
- package/dist/index.es326.js +1 -1
- package/dist/index.es328.js +8 -8
- package/dist/index.es33.js +1 -1
- package/dist/index.es335.js +1 -1
- package/dist/index.es340.js +1 -1
- package/dist/index.es351.js +1 -1
- package/dist/index.es357.js +1 -1
- package/dist/index.es358.js +1 -1
- package/dist/index.es359.js +2 -2
- package/dist/index.es400.js +1 -1
- package/dist/index.es432.js +14 -3
- package/dist/index.es432.js.map +1 -1
- package/dist/index.es441.js +1 -1
- package/dist/index.es449.js +1 -1
- package/dist/index.es460.js +1 -1
- package/dist/index.es461.js +1 -1
- package/dist/index.es462.js +3674 -5
- package/dist/index.es462.js.map +1 -1
- package/dist/index.es463.js +5 -520
- package/dist/index.es463.js.map +1 -1
- package/dist/index.es464.js +2 -3675
- package/dist/index.es464.js.map +1 -1
- package/dist/index.es465.js +5 -5
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +521 -2
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es474.js +1 -1
- package/dist/index.es475.js +8 -8
- package/dist/index.es477.js +6 -15
- package/dist/index.es477.js.map +1 -1
- package/dist/{index.es481.js → index.es478.js} +1 -1
- package/dist/{index.es481.js.map → index.es478.js.map} +1 -1
- package/dist/{index.es482.js → index.es479.js} +1 -1
- package/dist/{index.es482.js.map → index.es479.js.map} +1 -1
- package/dist/index.es480.js +15 -6
- package/dist/index.es480.js.map +1 -1
- package/dist/index.es483.js +18 -0
- package/dist/index.es483.js.map +1 -0
- package/dist/index.es486.js +128 -0
- package/dist/index.es486.js.map +1 -0
- package/dist/index.es487.js +138 -0
- package/dist/index.es487.js.map +1 -0
- package/dist/index.es488.js +14 -15
- package/dist/index.es488.js.map +1 -1
- package/dist/index.es489.js +12 -122
- package/dist/index.es489.js.map +1 -1
- package/dist/index.es490.js +8 -134
- package/dist/index.es490.js.map +1 -1
- package/dist/index.es491.js +50 -14
- package/dist/index.es491.js.map +1 -1
- package/dist/index.es492.js +54 -13
- package/dist/index.es492.js.map +1 -1
- package/dist/index.es514.js +1 -1
- package/dist/index.es524.js +8 -0
- package/dist/index.es524.js.map +1 -0
- package/dist/{index.es522.js → index.es525.js} +1 -1
- package/dist/index.es525.js.map +1 -0
- package/dist/index.es526.js +2 -5
- package/dist/index.es526.js.map +1 -1
- package/dist/index.es532.js +1 -1
- package/dist/index.es534.js +1 -1
- package/dist/index.es537.js +2 -14
- package/dist/index.es537.js.map +1 -1
- package/dist/index.es538.js +14 -2
- package/dist/index.es538.js.map +1 -1
- package/dist/index.es578.js +3 -3
- package/dist/index.es582.js +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es618.js +1 -1
- package/dist/index.es619.js +1 -1
- package/dist/index.es624.js +1 -1
- package/dist/index.es628.js +1 -1
- package/dist/index.es629.js +8 -8
- package/dist/index.es636.js +1 -1
- package/dist/index.es641.js +3 -3
- package/dist/index.es645.js +1 -1
- package/dist/index.es647.js +4 -4
- package/dist/index.es65.js +1 -1
- package/dist/index.es662.js +54 -512
- package/dist/index.es662.js.map +1 -1
- package/dist/index.es663.js +68 -126
- package/dist/index.es663.js.map +1 -1
- package/dist/index.es664.js +8 -128
- package/dist/index.es664.js.map +1 -1
- package/dist/index.es665.js +13 -64
- package/dist/index.es665.js.map +1 -1
- package/dist/index.es666.js +61 -68
- package/dist/index.es666.js.map +1 -1
- package/dist/index.es667.js +521 -7
- package/dist/index.es667.js.map +1 -1
- package/dist/index.es668.js +126 -13
- package/dist/index.es668.js.map +1 -1
- package/dist/index.es669.js +127 -60
- package/dist/index.es669.js.map +1 -1
- package/dist/index.es68.js +44 -42
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es7.js.map +1 -1
- package/dist/index.es76.js +51 -42
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es80.js +21 -19
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es9.js +2 -2
- package/package.json +1 -1
- package/dist/index.cjs280.js +0 -2
- package/dist/index.cjs280.js.map +0 -1
- package/dist/index.cjs493.js +0 -2
- package/dist/index.cjs493.js.map +0 -1
- package/dist/index.cjs494.js +0 -2
- package/dist/index.cjs494.js.map +0 -1
- package/dist/index.cjs495.js +0 -2
- package/dist/index.cjs495.js.map +0 -1
- package/dist/index.cjs522.js.map +0 -1
- package/dist/index.cjs523.js +0 -2
- package/dist/index.cjs523.js.map +0 -1
- package/dist/index.es280.js +0 -30
- package/dist/index.es280.js.map +0 -1
- package/dist/index.es493.js +0 -12
- package/dist/index.es493.js.map +0 -1
- package/dist/index.es494.js +0 -53
- package/dist/index.es494.js.map +0 -1
- package/dist/index.es495.js +0 -59
- package/dist/index.es495.js.map +0 -1
- package/dist/index.es522.js.map +0 -1
- package/dist/index.es523.js +0 -5
- package/dist/index.es523.js.map +0 -1
- /package/dist/components/ui/{CardMapDoctorV2/CardMapDoctorV2.css → CardMapDoctor/CardMapDoctor.css} +0 -0
- /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
package/dist/index.es76.js
CHANGED
@@ -1,74 +1,83 @@
|
|
1
1
|
import { j as a } from "./index.es247.js";
|
2
2
|
import './components/ui/InfoPopup/InfoPopup.css';/* empty css */
|
3
|
-
import { clsx as
|
4
|
-
import { Root as
|
5
|
-
import { Button as
|
6
|
-
import { Info as
|
7
|
-
import { Close as
|
8
|
-
const
|
3
|
+
import { clsx as p } from "./index.es249.js";
|
4
|
+
import { Root as c, Trigger as t, Content as g, Close as f } from "./index.es377.js";
|
5
|
+
import { Button as j } from "./index.es378.js";
|
6
|
+
import { Info as d } from "./index.es202.js";
|
7
|
+
import { Close as u } from "./index.es163.js";
|
8
|
+
const R = ({
|
9
9
|
title: o = "Info",
|
10
|
-
description:
|
11
|
-
width: s =
|
12
|
-
className:
|
13
|
-
positionPopUp:
|
10
|
+
description: r,
|
11
|
+
width: s = "15.5rem",
|
12
|
+
className: m = "",
|
13
|
+
positionPopUp: i = "right",
|
14
14
|
onClickCloseBtn: e,
|
15
|
-
isOpen:
|
15
|
+
isOpen: n,
|
16
|
+
ariaLabel: l
|
16
17
|
}) => /* @__PURE__ */ a.jsxs(
|
17
|
-
|
18
|
+
c,
|
18
19
|
{
|
19
20
|
defaultOpen: !1,
|
20
|
-
open:
|
21
|
+
open: n,
|
21
22
|
onOpenChange: e,
|
22
23
|
modal: !1,
|
23
24
|
children: [
|
24
|
-
/* @__PURE__ */ a.jsx(t, { className: "position-relative", children: /* @__PURE__ */ a.jsx(
|
25
|
+
/* @__PURE__ */ a.jsx(t, { className: "position-relative", children: /* @__PURE__ */ a.jsx(
|
26
|
+
j,
|
27
|
+
{
|
28
|
+
className: "ui-popup-trigger-button",
|
29
|
+
"aria-label": l || o,
|
30
|
+
title: l || o,
|
31
|
+
children: /* @__PURE__ */ a.jsx(d, { color: "primary" })
|
32
|
+
}
|
33
|
+
) }),
|
25
34
|
/* @__PURE__ */ a.jsxs(
|
26
|
-
|
35
|
+
g,
|
27
36
|
{
|
28
|
-
className: m
|
29
|
-
side:
|
37
|
+
className: p(m, "dialog"),
|
38
|
+
side: i,
|
30
39
|
tabIndex: -1,
|
31
40
|
width: {
|
32
|
-
initial:
|
33
|
-
sm:
|
34
|
-
xs:
|
35
|
-
lg:
|
36
|
-
md:
|
37
|
-
xl:
|
41
|
+
initial: s,
|
42
|
+
sm: s,
|
43
|
+
xs: s,
|
44
|
+
lg: s,
|
45
|
+
md: s,
|
46
|
+
xl: s
|
38
47
|
},
|
39
48
|
maxWidth: {
|
40
|
-
initial:
|
41
|
-
sm:
|
42
|
-
xs:
|
43
|
-
lg:
|
44
|
-
md:
|
45
|
-
xl:
|
49
|
+
initial: s,
|
50
|
+
sm: s,
|
51
|
+
xs: s,
|
52
|
+
lg: s,
|
53
|
+
md: s,
|
54
|
+
xl: s
|
46
55
|
},
|
47
56
|
minWidth: {
|
48
|
-
initial:
|
49
|
-
sm:
|
50
|
-
xs:
|
51
|
-
lg:
|
52
|
-
md:
|
53
|
-
xl:
|
57
|
+
initial: s,
|
58
|
+
sm: s,
|
59
|
+
xs: s,
|
60
|
+
lg: s,
|
61
|
+
md: s,
|
62
|
+
xl: s
|
54
63
|
},
|
55
|
-
style: { width:
|
64
|
+
style: { width: s },
|
56
65
|
children: [
|
57
66
|
/* @__PURE__ */ a.jsxs("div", { className: "header", children: [
|
58
67
|
/* @__PURE__ */ a.jsx("h1", { id: "dialog-title", className: "title", children: o }),
|
59
68
|
/* @__PURE__ */ a.jsx(
|
60
|
-
|
69
|
+
f,
|
61
70
|
{
|
62
71
|
className: "closeButton",
|
63
72
|
"aria-label": "Close dialog",
|
64
|
-
onClick: (
|
65
|
-
|
73
|
+
onClick: (x) => {
|
74
|
+
x.stopPropagation(), e == null || e();
|
66
75
|
},
|
67
|
-
children: /* @__PURE__ */ a.jsx(
|
76
|
+
children: /* @__PURE__ */ a.jsx(u, { className: "closeIcon", width: 34, height: 34 })
|
68
77
|
}
|
69
78
|
)
|
70
79
|
] }),
|
71
|
-
|
80
|
+
r && /* @__PURE__ */ a.jsx("div", { id: "dialog-description", className: "content", children: r })
|
72
81
|
]
|
73
82
|
}
|
74
83
|
)
|
@@ -76,6 +85,6 @@ const y = ({
|
|
76
85
|
}
|
77
86
|
);
|
78
87
|
export {
|
79
|
-
|
88
|
+
R as InfoPopup
|
80
89
|
};
|
81
90
|
//# sourceMappingURL=index.es76.js.map
|
package/dist/index.es76.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es76.js","sources":["../src/components/ui/InfoPopup/index.tsx"],"sourcesContent":["import { PropsWithChildren } from \"react\";\r\nimport \"./InfoPopup.scss\";\r\nimport { Close, Info } from \"@/icons\";\r\nimport { Button, Popover } from \"@radix-ui/themes\";\r\nimport clsx from \"clsx\";\r\nimport React from \"react\";\r\n\r\nexport type InfoPopupProps = PropsWithChildren<{\r\n title: string;\r\n description: string | React.ReactNode;\r\n isOpen?: boolean;\r\n onClickCloseBtn?: () => void;\r\n className?: string;\r\n positionPopUp?: \"right\" | \"top\" | \"bottom\" | \"left\" | undefined;\r\n width?: string
|
1
|
+
{"version":3,"file":"index.es76.js","sources":["../src/components/ui/InfoPopup/index.tsx"],"sourcesContent":["import { PropsWithChildren } from \"react\";\r\nimport \"./InfoPopup.scss\";\r\nimport { Close, Info } from \"@/icons\";\r\nimport { Button, Popover } from \"@radix-ui/themes\";\r\nimport clsx from \"clsx\";\r\nimport React from \"react\";\r\n\r\nexport type InfoPopupProps = PropsWithChildren<{\r\n title: string;\r\n description: string | React.ReactNode;\r\n isOpen?: boolean;\r\n onClickCloseBtn?: () => void;\r\n className?: string;\r\n positionPopUp?: \"right\" | \"top\" | \"bottom\" | \"left\" | undefined;\r\n width?: string;\r\n ariaLabel?: string;\r\n}>;\r\n\r\nexport const InfoPopup = ({\r\n title = \"Info\",\r\n description,\r\n width = \"15.5rem\",\r\n className = \"\",\r\n positionPopUp = \"right\",\r\n onClickCloseBtn,\r\n isOpen,\r\n ariaLabel,\r\n}: InfoPopupProps) => {\r\n return (\r\n <Popover.Root\r\n defaultOpen={false}\r\n open={isOpen}\r\n onOpenChange={onClickCloseBtn}\r\n modal={false}\r\n >\r\n <Popover.Trigger className=\"position-relative\">\r\n <Button\r\n className=\"ui-popup-trigger-button\"\r\n aria-label={ariaLabel || title}\r\n title={ariaLabel || title}\r\n >\r\n <Info color=\"primary\" />\r\n </Button>\r\n </Popover.Trigger>\r\n <Popover.Content\r\n className={clsx(className, \"dialog\")}\r\n side={positionPopUp}\r\n tabIndex={-1}\r\n width={{\r\n initial: width,\r\n sm: width,\r\n xs: width,\r\n lg: width,\r\n md: width,\r\n xl: width,\r\n }}\r\n maxWidth={{\r\n initial: width,\r\n sm: width,\r\n xs: width,\r\n lg: width,\r\n md: width,\r\n xl: width,\r\n }}\r\n minWidth={{\r\n initial: width,\r\n sm: width,\r\n xs: width,\r\n lg: width,\r\n md: width,\r\n xl: width,\r\n }}\r\n style={{ width: width }}\r\n >\r\n <div className=\"header\">\r\n <h1 id=\"dialog-title\" className=\"title\">\r\n {title}\r\n </h1>\r\n\r\n <Popover.Close\r\n className=\"closeButton\"\r\n aria-label=\"Close dialog\"\r\n onClick={(e) => {\r\n e.stopPropagation();\r\n onClickCloseBtn?.();\r\n }}\r\n >\r\n <Close className=\"closeIcon\" width={34} height={34} />\r\n </Popover.Close>\r\n </div>\r\n {description && (\r\n <div id=\"dialog-description\" className=\"content\">\r\n {description}\r\n </div>\r\n )}\r\n </Popover.Content>\r\n </Popover.Root>\r\n );\r\n};\r\n"],"names":["InfoPopup","title","description","width","className","positionPopUp","onClickCloseBtn","isOpen","ariaLabel","jsxs","Popover.Root","jsx","Popover.Trigger","Button","Info","Popover.Content","clsx","Popover.Close","e","Close"],"mappings":";;;;;;;AAkBO,MAAMA,IAAY,CAAC;AAAA,EACxB,OAAAC,IAAQ;AAAA,EACR,aAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,WAAAC,IAAY;AAAA,EACZ,eAAAC,IAAgB;AAAA,EAChB,iBAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AACF,MAEIC,gBAAAA,EAAA;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,aAAa;AAAA,IACb,MAAMH;AAAA,IACN,cAAcD;AAAA,IACd,OAAO;AAAA,IAEP,UAAA;AAAA,MAAAK,gBAAAA,EAAAA,IAACC,GAAA,EAAgB,WAAU,qBACzB,UAAAD,gBAAAA,EAAA;AAAA,QAACE;AAAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,cAAYL,KAAaP;AAAA,UACzB,OAAOO,KAAaP;AAAA,UAEpB,UAAAU,gBAAAA,EAAAA,IAACG,GAAK,EAAA,OAAM,UAAU,CAAA;AAAA,QAAA;AAAA,MAAA,GAE1B;AAAA,MACAL,gBAAAA,EAAA;AAAA,QAACM;AAAAA,QAAA;AAAA,UACC,WAAWC,EAAKZ,GAAW,Q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
|
import { clsx as x } from "./index.es249.js";
|
4
|
-
import { createSpacingClasses as f } from "./index.
|
4
|
+
import { createSpacingClasses as f } from "./index.es279.js";
|
5
5
|
const v = ({
|
6
6
|
as: e,
|
7
7
|
className: i,
|
package/dist/index.es80.js
CHANGED
@@ -3,13 +3,13 @@ import { clsx as o } from "./index.es249.js";
|
|
3
3
|
import { ActionIconText as f } from "./index.es68.js";
|
4
4
|
import './components/ui/NotificationsSettingsHeader/NotificationsSettingsHeader.css';/* empty css */
|
5
5
|
import { Info as x } from "./index.es202.js";
|
6
|
-
const n = (
|
7
|
-
className:
|
6
|
+
const n = (t) => `notifications-settings-header-${t}`, I = ({
|
7
|
+
className: t,
|
8
8
|
showEmail: r = !1,
|
9
9
|
showSms: d = !1,
|
10
10
|
...c
|
11
11
|
}) => {
|
12
|
-
const
|
12
|
+
const s = [
|
13
13
|
{
|
14
14
|
label: "Categoria notifica",
|
15
15
|
noIcon: !0,
|
@@ -27,7 +27,8 @@ const n = (s) => `notifications-settings-header-${s}`, y = ({
|
|
27
27
|
description: "SMS come metodo di notifica",
|
28
28
|
isOpen: !1,
|
29
29
|
onClickCloseBtn: () => {
|
30
|
-
}
|
30
|
+
},
|
31
|
+
ariaLabel: "Informazioni SMS"
|
31
32
|
}
|
32
33
|
},
|
33
34
|
{
|
@@ -40,22 +41,23 @@ const n = (s) => `notifications-settings-header-${s}`, y = ({
|
|
40
41
|
description: "Email come metodo di notifica",
|
41
42
|
isOpen: !1,
|
42
43
|
onClickCloseBtn: () => {
|
43
|
-
}
|
44
|
+
},
|
45
|
+
ariaLabel: "Informazioni Email"
|
44
46
|
}
|
45
47
|
}
|
46
48
|
].filter(
|
47
49
|
(i) => i.alwaysVisible || i.visible
|
48
50
|
);
|
49
51
|
return /* @__PURE__ */ e.jsxs("div", { children: [
|
50
|
-
/* @__PURE__ */ e.jsx("div", { className: o(
|
51
|
-
/* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsx("tr", { className: "w-full flex", children:
|
52
|
-
const
|
52
|
+
/* @__PURE__ */ e.jsx("div", { className: o(t), ...c, children: /* @__PURE__ */ e.jsxs("table", { className: "w-full flex", role: "table", children: [
|
53
|
+
/* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsx("tr", { className: "w-full flex", children: s.map((i, a) => {
|
54
|
+
const l = n(i.key);
|
53
55
|
return /* @__PURE__ */ e.jsx(
|
54
56
|
"th",
|
55
57
|
{
|
56
|
-
id:
|
58
|
+
id: l,
|
57
59
|
scope: "col",
|
58
|
-
"aria-colindex":
|
60
|
+
"aria-colindex": a + 1,
|
59
61
|
"data-column-key": i.key,
|
60
62
|
className: o(
|
61
63
|
"table-header-divider-cell w-full",
|
@@ -77,24 +79,24 @@ const n = (s) => `notifications-settings-header-${s}`, y = ({
|
|
77
79
|
textLabel: i.label,
|
78
80
|
iconPosition: "right",
|
79
81
|
popupInfo: i.popupInfo,
|
80
|
-
positionPopUp:
|
82
|
+
positionPopUp: s.length === a + 1 ? "left" : "right"
|
81
83
|
}
|
82
84
|
) })
|
83
85
|
}
|
84
86
|
)
|
85
87
|
},
|
86
|
-
|
88
|
+
l
|
87
89
|
);
|
88
90
|
}) }) }),
|
89
|
-
/* @__PURE__ */ e.jsx("tbody", { children: /* @__PURE__ */ e.jsx("tr", { className: "sr-only", children:
|
90
|
-
const
|
91
|
+
/* @__PURE__ */ e.jsx("tbody", { children: /* @__PURE__ */ e.jsx("tr", { className: "sr-only", children: s.map((i, a) => {
|
92
|
+
const l = n(i.key);
|
91
93
|
return /* @__PURE__ */ e.jsx(
|
92
94
|
"td",
|
93
95
|
{
|
94
|
-
headers:
|
95
|
-
"aria-colindex":
|
96
|
+
headers: l,
|
97
|
+
"aria-colindex": a + 1
|
96
98
|
},
|
97
|
-
`${
|
99
|
+
`${l}-data`
|
98
100
|
);
|
99
101
|
}) }) })
|
100
102
|
] }) }),
|
@@ -102,8 +104,8 @@ const n = (s) => `notifications-settings-header-${s}`, y = ({
|
|
102
104
|
] });
|
103
105
|
};
|
104
106
|
export {
|
105
|
-
|
106
|
-
|
107
|
+
I as NotificationsSettingsHeader,
|
108
|
+
I as default,
|
107
109
|
n as notificationsSettingsHeaderId
|
108
110
|
};
|
109
111
|
//# sourceMappingURL=index.es80.js.map
|
package/dist/index.es80.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es80.js","sources":["../src/components/ui/NotificationsSettingsHeader/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport { Info } from \"@/icons\";\r\nimport { ActionIconText } from \"../ActionIconText\";\r\nimport \"./NotificationsSettingsHeader.scss\";\r\n\r\ntype TableHeaderProps = {\r\n className?: string;\r\n showEmail?: boolean;\r\n showSms?: boolean;\r\n};\r\n\r\nexport const notificationsSettingsHeaderId = (columnKey: string) =>\r\n `notifications-settings-header-${columnKey}`;\r\n\r\nexport const NotificationsSettingsHeader = ({\r\n className,\r\n showEmail = false,\r\n showSms = false,\r\n ...props\r\n}: TableHeaderProps) => {\r\n const allColumns = [\r\n {\r\n label: \"Categoria notifica\",\r\n noIcon: true,\r\n isFlex: true,\r\n key: \"category\",\r\n alwaysVisible: true,\r\n },\r\n {\r\n label: \"SMS\",\r\n fixedWidth: true,\r\n key: \"sms\",\r\n visible: showSms,\r\n popupInfo: {\r\n title: \"SMS\",\r\n description: \"SMS come metodo di notifica\",\r\n isOpen: false,\r\n onClickCloseBtn: () => {},\r\n },\r\n },\r\n {\r\n label: \"Email\",\r\n fixedWidth: true,\r\n key: \"email\",\r\n visible: showEmail,\r\n popupInfo: {\r\n title: \"Email\",\r\n description: \"Email come metodo di notifica\",\r\n isOpen: false,\r\n onClickCloseBtn: () => {},\r\n },\r\n },\r\n ];\r\n\r\n const visibleColumns = allColumns.filter(\r\n (column) => column.alwaysVisible || column.visible,\r\n );\r\n\r\n return (\r\n <div>\r\n <div className={clsx(className)} {...props}>\r\n <table className=\"w-full flex\" role=\"table\">\r\n <thead>\r\n <tr className=\"w-full flex\">\r\n {visibleColumns.map((column, index) => {\r\n const headerId = notificationsSettingsHeaderId(column.key);\r\n return (\r\n <th\r\n key={headerId}\r\n id={headerId}\r\n scope=\"col\"\r\n aria-colindex={index + 1}\r\n data-column-key={column.key}\r\n className={clsx(\r\n \"table-header-divider-cell w-full\",\r\n column.isFlex ? \"flex-1\" : \"flex-none\",\r\n )}\r\n >\r\n <div\r\n className={clsx(\r\n \"table__cell--header--content\",\r\n column.fixedWidth ? \"table-header-fixed-width \" : \"\",\r\n )}\r\n >\r\n <div>\r\n <ActionIconText\r\n classNameText={\"text-grey-black\"}\r\n noIcon={column.noIcon}\r\n icon={<Info />}\r\n textLabel={column.label}\r\n iconPosition={\"right\"}\r\n popupInfo={column.popupInfo}\r\n positionPopUp={\r\n visibleColumns.length === index + 1\r\n ? \"left\"\r\n : \"right\"\r\n }\r\n />\r\n </div>\r\n </div>\r\n </th>\r\n );\r\n })}\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr className=\"sr-only\">\r\n {visibleColumns.map((column, index) => {\r\n const headerId = notificationsSettingsHeaderId(column.key);\r\n return (\r\n <td\r\n key={`${headerId}-data`}\r\n headers={headerId}\r\n aria-colindex={index + 1}\r\n >\r\n {/* Empty data cell for accessibility */}\r\n </td>\r\n );\r\n })}\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n <div className={\"table-header-divider\"} />\r\n </div>\r\n );\r\n};\r\n\r\nexport default NotificationsSettingsHeader;\r\n\r\n\r\n\r\n"],"names":["notificationsSettingsHeaderId","columnKey","NotificationsSettingsHeader","className","showEmail","showSms","props","visibleColumns","column","jsx","clsx","jsxs","index","headerId","ActionIconText","Info"],"mappings":";;;;;AAWO,MAAMA,IAAgC,CAACC,MAC5C,iCAAiCA,CAAS,IAE/BC,IAA8B,CAAC;AAAA,EAC1C,WAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,SAAAC,IAAU;AAAA,EACV,GAAGC;AACL,MAAwB;
|
1
|
+
{"version":3,"file":"index.es80.js","sources":["../src/components/ui/NotificationsSettingsHeader/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport { Info } from \"@/icons\";\r\nimport { ActionIconText } from \"../ActionIconText\";\r\nimport \"./NotificationsSettingsHeader.scss\";\r\n\r\ntype TableHeaderProps = {\r\n className?: string;\r\n showEmail?: boolean;\r\n showSms?: boolean;\r\n};\r\n\r\nexport const notificationsSettingsHeaderId = (columnKey: string) =>\r\n `notifications-settings-header-${columnKey}`;\r\n\r\nexport const NotificationsSettingsHeader = ({\r\n className,\r\n showEmail = false,\r\n showSms = false,\r\n ...props\r\n}: TableHeaderProps) => {\r\n const allColumns = [\r\n {\r\n label: \"Categoria notifica\",\r\n noIcon: true,\r\n isFlex: true,\r\n key: \"category\",\r\n alwaysVisible: true,\r\n },\r\n {\r\n label: \"SMS\",\r\n fixedWidth: true,\r\n key: \"sms\",\r\n visible: showSms,\r\n popupInfo: {\r\n title: \"SMS\",\r\n description: \"SMS come metodo di notifica\",\r\n isOpen: false,\r\n onClickCloseBtn: () => {},\r\n ariaLabel: \"Informazioni SMS\",\r\n },\r\n },\r\n {\r\n label: \"Email\",\r\n fixedWidth: true,\r\n key: \"email\",\r\n visible: showEmail,\r\n popupInfo: {\r\n title: \"Email\",\r\n description: \"Email come metodo di notifica\",\r\n isOpen: false,\r\n onClickCloseBtn: () => {},\r\n ariaLabel: \"Informazioni Email\",\r\n },\r\n },\r\n ];\r\n\r\n const visibleColumns = allColumns.filter(\r\n (column) => column.alwaysVisible || column.visible,\r\n );\r\n\r\n return (\r\n <div>\r\n <div className={clsx(className)} {...props}>\r\n <table className=\"w-full flex\" role=\"table\">\r\n <thead>\r\n <tr className=\"w-full flex\">\r\n {visibleColumns.map((column, index) => {\r\n const headerId = notificationsSettingsHeaderId(column.key);\r\n return (\r\n <th\r\n key={headerId}\r\n id={headerId}\r\n scope=\"col\"\r\n aria-colindex={index + 1}\r\n data-column-key={column.key}\r\n className={clsx(\r\n \"table-header-divider-cell w-full\",\r\n column.isFlex ? \"flex-1\" : \"flex-none\",\r\n )}\r\n >\r\n <div\r\n className={clsx(\r\n \"table__cell--header--content\",\r\n column.fixedWidth ? \"table-header-fixed-width \" : \"\",\r\n )}\r\n >\r\n <div>\r\n <ActionIconText\r\n classNameText={\"text-grey-black\"}\r\n noIcon={column.noIcon}\r\n icon={<Info />}\r\n textLabel={column.label}\r\n iconPosition={\"right\"}\r\n popupInfo={column.popupInfo}\r\n positionPopUp={\r\n visibleColumns.length === index + 1\r\n ? \"left\"\r\n : \"right\"\r\n }\r\n />\r\n </div>\r\n </div>\r\n </th>\r\n );\r\n })}\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr className=\"sr-only\">\r\n {visibleColumns.map((column, index) => {\r\n const headerId = notificationsSettingsHeaderId(column.key);\r\n return (\r\n <td\r\n key={`${headerId}-data`}\r\n headers={headerId}\r\n aria-colindex={index + 1}\r\n >\r\n {/* Empty data cell for accessibility */}\r\n </td>\r\n );\r\n })}\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n <div className={\"table-header-divider\"} />\r\n </div>\r\n );\r\n};\r\n\r\nexport default NotificationsSettingsHeader;\r\n\r\n\r\n\r\n"],"names":["notificationsSettingsHeaderId","columnKey","NotificationsSettingsHeader","className","showEmail","showSms","props","visibleColumns","column","jsx","clsx","jsxs","index","headerId","ActionIconText","Info"],"mappings":";;;;;AAWO,MAAMA,IAAgC,CAACC,MAC5C,iCAAiCA,CAAS,IAE/BC,IAA8B,CAAC;AAAA,EAC1C,WAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,SAAAC,IAAU;AAAA,EACV,GAAGC;AACL,MAAwB;AAqCtB,QAAMC,IApCa;AAAA,IACjB;AAAA,MACE,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,KAAK;AAAA,MACL,eAAe;AAAA,IACjB;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,KAAK;AA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AA,kBAAA;AAAA,oBACC,eAAe;AAAA,oBACf,QAAQN,EAAO;AAAA,oBACf,4BAAOO,GAAK,EAAA;AAAA,oBACZ,WAAWP,EAAO;AAAA,oBAClB,cAAc;AAAA,oBACd,WAAWA,EAAO;AAAA,oBAClB,eACED,EAAe,WAAWK,IAAQ,IAC9B,SACA;AAAA,kBAAA;AAAA,gBAAA,EAGV,CAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UACF;AAAA,UA/BKC;AAAA,QAgCP;AAAA,MAAA,CAEH,GACH,EACF,CAAA;AAAA,MACAJ,gBAAAA,EAAAA,IAAC,SACC,EAAA,UAAAA,gBAAAA,EAAA,IAAC,MAAG,EAAA,WAAU,WACX,UAAeF,EAAA,IAAI,CAACC,GAAQI,MAAU;AAC/B,cAAAC,IAAWb,EAA8BQ,EAAO,GAAG;AAEvD,eAAAC,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YAEC,SAASI;AAAA,YACT,iBAAeD,IAAQ;AAAA,UAAA;AAAA,UAFlB,GAAGC,CAAQ;AAAA,QAKlB;AAAA,MAEH,CAAA,EACH,CAAA,EACF,CAAA;AAAA,IAAA,EAAA,CACF,EACF,CAAA;AAAA,IACAJ,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAW,uBAAwB,CAAA;AAAA,EAAA,GAC1C;AAEJ;"}
|
package/dist/index.es9.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { j as x } from "./index.es247.js";
|
2
2
|
import { useMemo as y } from "react";
|
3
3
|
import { clsx as g } from "./index.es249.js";
|
4
|
-
import { createSpacingClasses as j } from "./index.
|
5
|
-
import { createColorClasses as u } from "./index.
|
4
|
+
import { createSpacingClasses as j } from "./index.es279.js";
|
5
|
+
import { createColorClasses as u } from "./index.es281.js";
|
6
6
|
import { createTypographyClasses as h } from "./index.es282.js";
|
7
7
|
const E = ({
|
8
8
|
as: o,
|
package/package.json
CHANGED
package/dist/index.cjs280.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=["gap","m","mx","my","mt","mr","mb","ml","p","px","py","pt","pr","pb","pl","br","br-t","br-r","br-b","br-l","min-h","min-w","max-h","max-w"],a=e=>t.map(r=>e[r]?`${r}-${e[r]}`:"").filter(Boolean);exports.createSpacingClasses=a;
|
2
|
-
//# sourceMappingURL=index.cjs280.js.map
|
package/dist/index.cjs280.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs280.js","sources":["../src/theme/spacing.ts"],"sourcesContent":["export type SpacingKey =\r\n | \"x4\"\r\n | \"x8\"\r\n | \"x12\"\r\n | \"x16\"\r\n | \"x20\"\r\n | \"x24\"\r\n | \"x28\"\r\n | \"x32\"\r\n | \"x36\"\r\n | \"x40\"\r\n | \"x44\"\r\n | \"x48\"\r\n | \"x52\"\r\n | \"x56\"\r\n | \"x60\"\r\n | \"x64\"\r\n | \"x68\"\r\n | \"x72\"\r\n | \"x76\"\r\n | \"x80\"\r\n | \"x84\"\r\n | \"x88\"\r\n | \"x92\"\r\n | \"x96\"\r\n | \"x100\"\r\n | \"x104\";\r\n\r\nexport type SpacingProps = {\r\n gap?: SpacingKey;\r\n m?: SpacingKey; // margin\r\n mx?: SpacingKey; // margin x\r\n my?: SpacingKey; // margin y\r\n mt?: SpacingKey; // margin top\r\n mr?: SpacingKey; // margin bottom\r\n mb?: SpacingKey; // margin right\r\n ml?: SpacingKey; // margin left\r\n p?: SpacingKey; // padding\r\n px?: SpacingKey; // padding x\r\n py?: SpacingKey; // padding y\r\n pt?: SpacingKey; // padding top\r\n pr?: SpacingKey; // padding bottom\r\n pb?: SpacingKey; // padding right\r\n pl?: SpacingKey; // padding left\r\n br?: SpacingKey; // border-radius\r\n \"br-t\"?: SpacingKey; // border-radius top\r\n \"br-r\"?: SpacingKey; // border-radius right\r\n \"br-b\"?: SpacingKey; // border-radius bottom\r\n \"br-l\"?: SpacingKey; // border-radius left\r\n \"min-h\"?: SpacingKey; // min-height\r\n \"min-w\"?: SpacingKey; // min-width\r\n \"max-h\"?: SpacingKey; // max-height\r\n \"max-w\"?: SpacingKey; // max-width\r\n};\r\n\r\nexport type SpacingPropsKeys = keyof SpacingProps;\r\nconst spacingPropsKeys: SpacingPropsKeys[] = [\r\n \"gap\",\r\n \"m\",\r\n \"mx\",\r\n \"my\",\r\n \"mt\",\r\n \"mr\",\r\n \"mb\",\r\n \"ml\",\r\n \"p\",\r\n \"px\",\r\n \"py\",\r\n \"pt\",\r\n \"pr\",\r\n \"pb\",\r\n \"pl\",\r\n \"br\",\r\n \"br-t\",\r\n \"br-r\",\r\n \"br-b\",\r\n \"br-l\",\r\n \"min-h\",\r\n \"min-w\",\r\n \"max-h\",\r\n \"max-w\",\r\n];\r\n\r\nexport const createSpacingClasses = <TProps extends SpacingProps>(\r\n props: TProps,\r\n) => {\r\n return spacingPropsKeys\r\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\r\n .filter(Boolean);\r\n};\r\n"],"names":["spacingPropsKeys","createSpacingClasses","props","key"],"mappings":"gFAwDA,MAAMA,EAAuC,CAC3C,MACA,IACA,KACA,KACA,KACA,KACA,KACA,KACA,IACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,OACA,OACA,OACA,QACA,QACA,QACA,OACF,EAEaC,EACXC,GAEOF,EACJ,IAAKG,GAASD,EAAMC,CAAG,EAAI,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAAK,EAAG,EACvD,OAAO,OAAO"}
|
package/dist/index.cjs493.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";const a=require("./index.cjs579.js"),l=require("react"),s=require("./index.cjs580.js"),i=require("./index.cjs581.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=u(l);var n=o.forwardRef(function(e,t){return o.createElement(s.RemoveScroll,a.__assign({},e,{ref:t,sideCar:i}))});n.classNames=s.RemoveScroll.classNames;module.exports=n;
|
2
|
-
//# sourceMappingURL=index.cjs493.js.map
|
package/dist/index.cjs493.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs493.js","sources":["../node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["ReactRemoveScroll","React","props","ref","RemoveScroll","__assign","SideCar"],"mappings":"6ZAIG,IAACA,EAAoBC,EAAM,WAAW,SAAUC,EAAOC,EAAK,CAAE,OAAQF,EAAM,cAAcG,EAAAA,aAAcC,EAAAA,SAAS,CAAE,EAAEH,EAAO,CAAE,IAAKC,EAAK,QAASG,EAAS,CAAC,CAAK,CAAA,EACnKN,EAAkB,WAAaI,EAAAA,aAAa","x_google_ignoreList":[0]}
|
package/dist/index.cjs494.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var k=function(r){if(typeof document>"u")return null;var u=Array.isArray(r)?r[0]:r;return u.ownerDocument.body},f=new WeakMap,v=new WeakMap,p={},h=0,b=function(r){return r&&(r.host||b(r.parentNode))},O=function(r,u){return u.map(function(t){if(r.contains(t))return t;var n=b(t);return n&&r.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",r,". Doing nothing"),null)}).filter(function(t){return!!t})},D=function(r,u,t,n){var i=O(u,Array.isArray(r)?r:[r]);p[t]||(p[t]=new WeakMap);var o=p[t],l=[],s=new Set,S=new Set(i),y=function(e){!e||s.has(e)||(s.add(e),y(e.parentNode))};i.forEach(y);var A=function(e){!e||S.has(e)||Array.prototype.forEach.call(e.children,function(a){if(s.has(a))A(a);else try{var c=a.getAttribute(n),d=c!==null&&c!=="false",w=(f.get(a)||0)+1,M=(o.get(a)||0)+1;f.set(a,w),o.set(a,M),l.push(a),w===1&&d&&v.set(a,!0),M===1&&a.setAttribute(t,"true"),d||a.setAttribute(n,"true")}catch(W){console.error("aria-hidden: cannot operate on ",a,W)}})};return A(u),s.clear(),h++,function(){l.forEach(function(e){var a=f.get(e)-1,c=o.get(e)-1;f.set(e,a),o.set(e,c),a||(v.has(e)||e.removeAttribute(n),v.delete(e)),c||e.removeAttribute(t)}),h--,h||(f=new WeakMap,f=new WeakMap,v=new WeakMap,p={})}},E=function(r,u,t){t===void 0&&(t="data-aria-hidden");var n=Array.from(Array.isArray(r)?r:[r]),i=k(r);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),D(n,i,t,"aria-hidden")):function(){return null}};exports.hideOthers=E;
|
2
|
-
//# sourceMappingURL=index.cjs494.js.map
|
package/dist/index.cjs494.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs494.js","sources":["../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"gFAAA,IAAIA,EAAmB,SAAUC,EAAgB,CAC7C,GAAI,OAAO,SAAa,IACpB,OAAO,KAEX,IAAIC,EAAe,MAAM,QAAQD,CAAc,EAAIA,EAAe,CAAC,EAAIA,EACvE,OAAOC,EAAa,cAAc,IACtC,EACIC,EAAa,IAAI,QACjBC,EAAoB,IAAI,QACxBC,EAAY,CAAE,EACdC,EAAY,EACZC,EAAa,SAAUC,EAAM,CAC7B,OAAOA,IAASA,EAAK,MAAQD,EAAWC,EAAK,UAAU,EAC3D,EACIC,EAAiB,SAAUC,EAAQC,EAAS,CAC5C,OAAOA,EACF,IAAI,SAAUC,EAAQ,CACvB,GAAIF,EAAO,SAASE,CAAM,EACtB,OAAOA,EAEX,IAAIC,EAAkBN,EAAWK,CAAM,EACvC,OAAIC,GAAmBH,EAAO,SAASG,CAAe,EAC3CA,GAEX,QAAQ,MAAM,cAAeD,EAAQ,0BAA2BF,EAAQ,iBAAiB,EAClF,KACV,CAAA,EACI,OAAO,SAAUI,EAAG,CAAE,MAAO,EAAQA,EAAK,CACnD,EASIC,EAAyB,SAAUd,EAAgBe,EAAYC,EAAYC,EAAkB,CAC7F,IAAIP,EAAUF,EAAeO,EAAY,MAAM,QAAQf,CAAc,EAAIA,EAAiB,CAACA,CAAc,CAAC,EACrGI,EAAUY,CAAU,IACrBZ,EAAUY,CAAU,EAAI,IAAI,SAEhC,IAA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AkB,IAAII,CAAI,GAC3BA,EAAK,gBAAgBU,CAAgB,EAEzCd,EAAkB,OAAOI,CAAI,GAE5BqB,GACDrB,EAAK,gBAAgBS,CAAU,CAE/C,CAAS,EACDX,IACKA,IAEDH,EAAa,IAAI,QACjBA,EAAa,IAAI,QACjBC,EAAoB,IAAI,QACxBC,EAAY,CAAE,EAErB,CACL,EAQW0B,EAAa,SAAU9B,EAAgBe,EAAYC,EAAY,CAClEA,IAAe,SAAUA,EAAa,oBAC1C,IAAIN,EAAU,MAAM,KAAK,MAAM,QAAQV,CAAc,EAAIA,EAAiB,CAACA,CAAc,CAAC,EACtF+B,EAAiChC,EAAiBC,CAAc,EACpE,OAAK+B,GAILrB,EAAQ,KAAK,MAAMA,EAAS,MAAM,KAAKqB,EAAiB,iBAAiB,aAAa,CAAC,CAAC,EACjFjB,EAAuBJ,EAASqB,EAAkBf,EAAY,aAAa,GAJvE,UAAY,CAAE,OAAO,IAAO,CAK3C","x_google_ignoreList":[0]}
|
package/dist/index.cjs495.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),b=require("./index.cjs471.js"),u=require("./index.cjs247.js");function x(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=x(g);function d(e){const t=j(e),r=l.forwardRef((n,o)=>{const{children:i,...c}=n,s=l.Children.toArray(i),f=s.find(E);if(f){const a=f.props.children,S=s.map(p=>p===f?l.Children.count(a)>1?l.Children.only(null):l.isValidElement(a)?a.props.children:null:p);return u.jsxRuntimeExports.jsx(t,{...c,ref:o,children:l.isValidElement(a)?l.cloneElement(a,void 0,S):null})}return u.jsxRuntimeExports.jsx(t,{...c,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var m=d("Slot");function j(e){const t=l.forwardRef((r,n)=>{const{children:o,...i}=r;if(l.isValidElement(o)){const c=C(o),s=O(i,o.props);return o.type!==l.Fragment&&(s.ref=n?b.composeRefs(n,c):c),l.cloneElement(o,s)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var y=Symbol("radix.slottable");function R(e){const t=({children:r})=>u.jsxRuntimeExports.jsx(u.jsxRuntimeExports.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=y,t}function E(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===y}function O(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{i(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function C(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}exports.Root=m;exports.Slot=m;exports.createSlot=d;exports.createSlottable=R;
|
2
|
-
//# sourceMappingURL=index.cjs495.js.map
|
package/dist/index.cjs495.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs495.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","Slot","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":"icAKA,SAASA,EAAWC,EAAW,CAC7B,MAAMC,EAA4BC,EAAgBF,CAAS,EACrDG,EAAQC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACtD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAgBL,EAAM,SAAS,QAAQG,CAAQ,EAC/CG,EAAYD,EAAc,KAAKE,CAAW,EAChD,GAAID,EAAW,CACb,MAAME,EAAaF,EAAU,MAAM,SAC7BG,EAAcJ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],"names":[],"mappings":""}
|
package/dist/index.cjs523.js
DELETED
package/dist/index.cjs523.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs523.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.es280.js
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
const p = [
|
2
|
-
"gap",
|
3
|
-
"m",
|
4
|
-
"mx",
|
5
|
-
"my",
|
6
|
-
"mt",
|
7
|
-
"mr",
|
8
|
-
"mb",
|
9
|
-
"ml",
|
10
|
-
"p",
|
11
|
-
"px",
|
12
|
-
"py",
|
13
|
-
"pt",
|
14
|
-
"pr",
|
15
|
-
"pb",
|
16
|
-
"pl",
|
17
|
-
"br",
|
18
|
-
"br-t",
|
19
|
-
"br-r",
|
20
|
-
"br-b",
|
21
|
-
"br-l",
|
22
|
-
"min-h",
|
23
|
-
"min-w",
|
24
|
-
"max-h",
|
25
|
-
"max-w"
|
26
|
-
], a = (m) => p.map((r) => m[r] ? `${r}-${m[r]}` : "").filter(Boolean);
|
27
|
-
export {
|
28
|
-
a as createSpacingClasses
|
29
|
-
};
|
30
|
-
//# sourceMappingURL=index.es280.js.map
|
package/dist/index.es280.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es280.js","sources":["../src/theme/spacing.ts"],"sourcesContent":["export type SpacingKey =\r\n | \"x4\"\r\n | \"x8\"\r\n | \"x12\"\r\n | \"x16\"\r\n | \"x20\"\r\n | \"x24\"\r\n | \"x28\"\r\n | \"x32\"\r\n | \"x36\"\r\n | \"x40\"\r\n | \"x44\"\r\n | \"x48\"\r\n | \"x52\"\r\n | \"x56\"\r\n | \"x60\"\r\n | \"x64\"\r\n | \"x68\"\r\n | \"x72\"\r\n | \"x76\"\r\n | \"x80\"\r\n | \"x84\"\r\n | \"x88\"\r\n | \"x92\"\r\n | \"x96\"\r\n | \"x100\"\r\n | \"x104\";\r\n\r\nexport type SpacingProps = {\r\n gap?: SpacingKey;\r\n m?: SpacingKey; // margin\r\n mx?: SpacingKey; // margin x\r\n my?: SpacingKey; // margin y\r\n mt?: SpacingKey; // margin top\r\n mr?: SpacingKey; // margin bottom\r\n mb?: SpacingKey; // margin right\r\n ml?: SpacingKey; // margin left\r\n p?: SpacingKey; // padding\r\n px?: SpacingKey; // padding x\r\n py?: SpacingKey; // padding y\r\n pt?: SpacingKey; // padding top\r\n pr?: SpacingKey; // padding bottom\r\n pb?: SpacingKey; // padding right\r\n pl?: SpacingKey; // padding left\r\n br?: SpacingKey; // border-radius\r\n \"br-t\"?: SpacingKey; // border-radius top\r\n \"br-r\"?: SpacingKey; // border-radius right\r\n \"br-b\"?: SpacingKey; // border-radius bottom\r\n \"br-l\"?: SpacingKey; // border-radius left\r\n \"min-h\"?: SpacingKey; // min-height\r\n \"min-w\"?: SpacingKey; // min-width\r\n \"max-h\"?: SpacingKey; // max-height\r\n \"max-w\"?: SpacingKey; // max-width\r\n};\r\n\r\nexport type SpacingPropsKeys = keyof SpacingProps;\r\nconst spacingPropsKeys: SpacingPropsKeys[] = [\r\n \"gap\",\r\n \"m\",\r\n \"mx\",\r\n \"my\",\r\n \"mt\",\r\n \"mr\",\r\n \"mb\",\r\n \"ml\",\r\n \"p\",\r\n \"px\",\r\n \"py\",\r\n \"pt\",\r\n \"pr\",\r\n \"pb\",\r\n \"pl\",\r\n \"br\",\r\n \"br-t\",\r\n \"br-r\",\r\n \"br-b\",\r\n \"br-l\",\r\n \"min-h\",\r\n \"min-w\",\r\n \"max-h\",\r\n \"max-w\",\r\n];\r\n\r\nexport const createSpacingClasses = <TProps extends SpacingProps>(\r\n props: TProps,\r\n) => {\r\n return spacingPropsKeys\r\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\r\n .filter(Boolean);\r\n};\r\n"],"names":["spacingPropsKeys","createSpacingClasses","props","key"],"mappings":"AAwDA,MAAMA,IAAuC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAuB,CAClCC,MAEOF,EACJ,IAAI,CAACG,MAASD,EAAMC,CAAG,IAAI,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,KAAK,EAAG,EACvD,OAAO,OAAO;"}
|
package/dist/index.es493.js
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import { __assign as m } from "./index.es579.js";
|
2
|
-
import * as r from "react";
|
3
|
-
import { RemoveScroll as e } from "./index.es580.js";
|
4
|
-
import t from "./index.es581.js";
|
5
|
-
var s = r.forwardRef(function(a, o) {
|
6
|
-
return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
|
7
|
-
});
|
8
|
-
s.classNames = e.classNames;
|
9
|
-
export {
|
10
|
-
s as default
|
11
|
-
};
|
12
|
-
//# sourceMappingURL=index.es493.js.map
|
package/dist/index.es493.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es493.js","sources":["../node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["ReactRemoveScroll","React","props","ref","RemoveScroll","__assign","SideCar"],"mappings":";;;;AAIG,IAACA,IAAoBC,EAAM,WAAW,SAAUC,GAAOC,GAAK;AAAE,SAAQF,EAAM,cAAcG,GAAcC,EAAS,CAAE,GAAEH,GAAO,EAAE,KAAKC,GAAK,SAASG,GAAS,CAAC;AAAK,CAAA;AACnKN,EAAkB,aAAaI,EAAa;","x_google_ignoreList":[0]}
|
package/dist/index.es494.js
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
var S = function(r) {
|
2
|
-
if (typeof document > "u")
|
3
|
-
return null;
|
4
|
-
var u = Array.isArray(r) ? r[0] : r;
|
5
|
-
return u.ownerDocument.body;
|
6
|
-
}, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
|
7
|
-
return r && (r.host || W(r.parentNode));
|
8
|
-
}, D = function(r, u) {
|
9
|
-
return u.map(function(e) {
|
10
|
-
if (r.contains(e))
|
11
|
-
return e;
|
12
|
-
var n = W(e);
|
13
|
-
return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
|
14
|
-
}).filter(function(e) {
|
15
|
-
return !!e;
|
16
|
-
});
|
17
|
-
}, E = function(r, u, e, n) {
|
18
|
-
var i = D(u, Array.isArray(r) ? r : [r]);
|
19
|
-
p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
|
20
|
-
var o = p[e], l = [], s = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
|
21
|
-
!t || s.has(t) || (s.add(t), y(t.parentNode));
|
22
|
-
};
|
23
|
-
i.forEach(y);
|
24
|
-
var A = function(t) {
|
25
|
-
!t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
|
26
|
-
if (s.has(a))
|
27
|
-
A(a);
|
28
|
-
else
|
29
|
-
try {
|
30
|
-
var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (o.get(a) || 0) + 1;
|
31
|
-
f.set(a, d), o.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
|
32
|
-
} catch (k) {
|
33
|
-
console.error("aria-hidden: cannot operate on ", a, k);
|
34
|
-
}
|
35
|
-
});
|
36
|
-
};
|
37
|
-
return A(u), s.clear(), h++, function() {
|
38
|
-
l.forEach(function(t) {
|
39
|
-
var a = f.get(t) - 1, c = o.get(t) - 1;
|
40
|
-
f.set(t, a), o.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
|
41
|
-
}), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
|
42
|
-
};
|
43
|
-
}, C = function(r, u, e) {
|
44
|
-
e === void 0 && (e = "data-aria-hidden");
|
45
|
-
var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
|
46
|
-
return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live]"))), E(n, i, e, "aria-hidden")) : function() {
|
47
|
-
return null;
|
48
|
-
};
|
49
|
-
};
|
50
|
-
export {
|
51
|
-
C as hideOthers
|
52
|
-
};
|
53
|
-
//# sourceMappingURL=index.es494.js.map
|
package/dist/index.es494.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es494.js","sources":["../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"AAAA,IAAIA,IAAmB,SAAUC,GAAgB;AAC7C,MAAI,OAAO,WAAa;AACpB,WAAO;AAEX,MAAIC,IAAe,MAAM,QAAQD,CAAc,IAAIA,EAAe,CAAC,IAAIA;AACvE,SAAOC,EAAa,cAAc;AACtC,GACIC,IAAa,oBAAI,QAAS,GAC1BC,IAAoB,oBAAI,QAAS,GACjCC,IAAY,CAAE,GACdC,IAAY,GACZC,IAAa,SAAUC,GAAM;AAC7B,SAAOA,MAASA,EAAK,QAAQD,EAAWC,EAAK,UAAU;AAC3D,GACIC,IAAiB,SAAUC,GAAQC,GAAS;AAC5C,SAAOA,EACF,IAAI,SAAUC,GAAQ;AACvB,QAAIF,EAAO,SAASE,CAAM;AACtB,aAAOA;AAEX,QAAIC,IAAkBN,EAAWK,CAAM;AACvC,WAAIC,KAAmBH,EAAO,SAASG,CAAe,IAC3CA,KAEX,QAAQ,MAAM,eAAeD,GAAQ,2BAA2BF,GAAQ,iBAAiB,GAClF;AAAA,EACV,CAAA,EACI,OAAO,SAAUI,GAAG;AAAE,WAAO,EAAQA;AAAA,GAAK;AACnD,GASIC,IAAyB,SAAUd,GAAgBe,GAAYC,GAAYC,GAAkB;AAC7F,MAAIP,IAAUF,EAAeO,GAAY,MAAM,QAAQf,CAAc,IAAIA,IAAiB,CAACA,CAAc,CAAC;AAC1G,EAAKI,EAAUY,CAAU,MACrBZ,EAAUY,CAAU,IAAI,oBAAI,QAAS;AAEzC,MAAIE,IAAgBd,EAAUY,CAAU,GACpCG,IAAc,CAAE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