@anoki/fse-ui 1.0.0-beta1.48.46 → 1.0.0-beta1.48.47
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/TableOfContents/TableOfContents.css +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs110.js.map +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs158.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.cjs183.js +1 -1
- package/dist/index.cjs184.js +1 -1
- package/dist/index.cjs185.js +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs188.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.cjs197.js +1 -1
- package/dist/index.cjs198.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.cjs206.js +1 -1
- package/dist/index.cjs207.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.cjs221.js +1 -1
- package/dist/index.cjs223.js +1 -1
- package/dist/index.cjs224.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs274.js +1 -1
- package/dist/index.cjs274.js.map +1 -1
- package/dist/index.cjs275.js +2 -0
- package/dist/index.cjs275.js.map +1 -0
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs292.js +1 -1
- package/dist/index.cjs295.js +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs305.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs323.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs352.js +1 -1
- package/dist/index.cjs353.js +1 -1
- package/dist/index.cjs354.js +1 -1
- package/dist/index.cjs395.js +1 -1
- package/dist/index.cjs401.js +1 -1
- package/dist/index.cjs443.js +1 -1
- package/dist/index.cjs454.js +1 -1
- package/dist/index.cjs455.js +1 -1
- package/dist/index.cjs461.js +1 -1
- package/dist/index.cjs464.js +1 -1
- package/dist/index.cjs464.js.map +1 -1
- package/dist/index.cjs467.js +1 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/index.cjs468.js +1 -1
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs469.js +1 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs470.js +1 -1
- package/dist/index.cjs470.js.map +1 -1
- package/dist/index.cjs471.js +1 -1
- package/dist/index.cjs471.js.map +1 -1
- package/dist/index.cjs472.js +2 -0
- package/dist/index.cjs472.js.map +1 -0
- package/dist/index.cjs473.js +2 -0
- package/dist/index.cjs473.js.map +1 -0
- package/dist/index.cjs476.js +1 -1
- package/dist/index.cjs477.js +1 -1
- package/dist/index.cjs480.js +2 -0
- package/dist/index.cjs480.js.map +1 -0
- package/dist/index.cjs481.js +2 -0
- package/dist/index.cjs481.js.map +1 -0
- package/dist/index.cjs482.js +2 -0
- package/dist/index.cjs482.js.map +1 -0
- package/dist/{index.cjs487.js → index.cjs483.js} +1 -1
- package/dist/{index.cjs487.js.map → index.cjs483.js.map} +1 -1
- package/dist/index.cjs484.js +1 -1
- package/dist/index.cjs484.js.map +1 -1
- package/dist/index.cjs485.js +1 -1
- package/dist/index.cjs485.js.map +1 -1
- package/dist/index.cjs486.js +1 -1
- package/dist/index.cjs486.js.map +1 -1
- package/dist/{index.cjs504.js → index.cjs508.js} +2 -2
- package/dist/{index.cjs504.js.map → index.cjs508.js.map} +1 -1
- package/dist/{index.cjs505.js → index.cjs509.js} +1 -1
- package/dist/index.cjs509.js.map +1 -0
- package/dist/index.cjs512.js +2 -0
- package/dist/index.cjs512.js.map +1 -0
- package/dist/{index.cjs515.js → index.cjs513.js} +1 -1
- package/dist/index.cjs513.js.map +1 -0
- package/dist/index.cjs514.js +1 -1
- package/dist/index.cjs514.js.map +1 -1
- package/dist/index.cjs517.js +1 -1
- package/dist/index.cjs517.js.map +1 -1
- package/dist/index.cjs518.js +1 -1
- package/dist/index.cjs519.js +1 -1
- package/dist/index.cjs519.js.map +1 -1
- package/dist/index.cjs520.js +1 -1
- package/dist/index.cjs520.js.map +1 -1
- package/dist/index.cjs522.js +1 -1
- package/dist/index.cjs524.js +1 -1
- package/dist/index.cjs525.js +1 -1
- package/dist/index.cjs527.js +1 -1
- package/dist/index.cjs527.js.map +1 -1
- package/dist/index.cjs528.js +1 -1
- package/dist/index.cjs528.js.map +1 -1
- package/dist/index.cjs530.js +1 -1
- package/dist/index.cjs531.js +1 -1
- package/dist/index.cjs537.js +1 -1
- package/dist/index.cjs542.js +1 -1
- package/dist/index.cjs546.js +1 -1
- package/dist/index.cjs547.js +1 -1
- package/dist/index.cjs554.js +1 -1
- package/dist/index.cjs559.js +1 -1
- package/dist/index.cjs561.js +1 -1
- package/dist/index.cjs563.js +1 -1
- package/dist/index.cjs565.js +1 -1
- package/dist/index.cjs580.js +38 -1
- package/dist/index.cjs580.js.map +1 -1
- package/dist/index.cjs581.js +1 -1
- package/dist/index.cjs581.js.map +1 -1
- package/dist/index.cjs582.js +1 -1
- package/dist/index.cjs582.js.map +1 -1
- package/dist/index.cjs583.js +1 -1
- package/dist/index.cjs583.js.map +1 -1
- package/dist/index.cjs584.js +1 -38
- package/dist/index.cjs584.js.map +1 -1
- package/dist/index.cjs585.js +1 -1
- package/dist/index.cjs585.js.map +1 -1
- package/dist/index.cjs586.js +1 -1
- package/dist/index.cjs586.js.map +1 -1
- package/dist/index.cjs587.js +1 -1
- package/dist/index.cjs587.js.map +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es10.js +2 -2
- package/dist/index.es110.js +31 -54
- package/dist/index.es110.js.map +1 -1
- package/dist/index.es137.js +1 -1
- package/dist/index.es157.js +1 -1
- package/dist/index.es158.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.es183.js +1 -1
- package/dist/index.es184.js +1 -1
- package/dist/index.es185.js +1 -1
- package/dist/index.es187.js +1 -1
- package/dist/index.es188.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.es197.js +1 -1
- package/dist/index.es198.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.es206.js +1 -1
- package/dist/index.es207.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.es221.js +1 -1
- package/dist/index.es223.js +1 -1
- package/dist/index.es224.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es262.js +1 -1
- package/dist/index.es263.js +2 -2
- package/dist/index.es264.js +2 -2
- package/dist/index.es274.js +2 -27
- package/dist/index.es274.js.map +1 -1
- package/dist/index.es275.js +30 -0
- package/dist/index.es275.js.map +1 -0
- package/dist/index.es28.js +1 -1
- package/dist/index.es292.js +7 -7
- package/dist/index.es295.js +1 -1
- package/dist/index.es297.js +1 -1
- package/dist/index.es305.js +5 -5
- package/dist/index.es32.js +1 -1
- package/dist/index.es321.js +1 -1
- package/dist/index.es323.js +13 -13
- package/dist/index.es33.js +1 -1
- package/dist/index.es352.js +1 -1
- package/dist/index.es353.js +1 -1
- package/dist/index.es354.js +5 -5
- package/dist/index.es395.js +4 -4
- package/dist/index.es401.js +1 -1
- package/dist/index.es443.js +1 -1
- package/dist/index.es454.js +1 -1
- package/dist/index.es455.js +1 -1
- package/dist/index.es461.js +1 -1
- package/dist/index.es464.js +15 -7
- package/dist/index.es464.js.map +1 -1
- package/dist/index.es467.js +6 -29
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +26 -32
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +63 -617
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es470.js +29 -10
- package/dist/index.es470.js.map +1 -1
- package/dist/index.es471.js +33 -15
- package/dist/index.es471.js.map +1 -1
- package/dist/index.es472.js +625 -0
- package/dist/index.es472.js.map +1 -0
- package/dist/index.es473.js +14 -0
- package/dist/index.es473.js.map +1 -0
- package/dist/index.es476.js +1 -1
- package/dist/index.es477.js +1 -1
- package/dist/index.es480.js +128 -0
- package/dist/index.es480.js.map +1 -0
- package/dist/index.es481.js +138 -0
- package/dist/index.es481.js.map +1 -0
- package/dist/index.es482.js +17 -0
- package/dist/index.es482.js.map +1 -0
- package/dist/{index.es487.js → index.es483.js} +1 -1
- package/dist/{index.es487.js.map → index.es483.js.map} +1 -1
- package/dist/index.es484.js +8 -124
- package/dist/index.es484.js.map +1 -1
- package/dist/index.es485.js +48 -133
- package/dist/index.es485.js.map +1 -1
- package/dist/index.es486.js +56 -14
- package/dist/index.es486.js.map +1 -1
- package/dist/{index.es504.js → index.es508.js} +2 -2
- package/dist/{index.es504.js.map → index.es508.js.map} +1 -1
- package/dist/{index.es505.js → index.es509.js} +1 -1
- package/dist/index.es509.js.map +1 -0
- package/dist/index.es512.js +8 -0
- package/dist/index.es512.js.map +1 -0
- package/dist/{index.es515.js → index.es513.js} +1 -1
- package/dist/index.es513.js.map +1 -0
- package/dist/index.es514.js +2 -5
- package/dist/index.es514.js.map +1 -1
- package/dist/index.es517.js +8 -131
- package/dist/index.es517.js.map +1 -1
- package/dist/index.es518.js +1 -1
- package/dist/index.es519.js +3 -9
- package/dist/index.es519.js.map +1 -1
- package/dist/index.es520.js +131 -2
- package/dist/index.es520.js.map +1 -1
- package/dist/index.es522.js +3 -3
- package/dist/index.es524.js +3 -3
- package/dist/index.es525.js +6 -6
- package/dist/index.es527.js +14 -2
- package/dist/index.es527.js.map +1 -1
- package/dist/index.es528.js +2 -14
- package/dist/index.es528.js.map +1 -1
- package/dist/index.es530.js +1 -1
- package/dist/index.es531.js +3 -3
- package/dist/index.es537.js +1 -1
- package/dist/index.es542.js +1 -1
- package/dist/index.es546.js +1 -1
- package/dist/index.es547.js +13 -13
- package/dist/index.es554.js +4 -4
- package/dist/index.es559.js +6 -6
- package/dist/index.es561.js +1 -1
- package/dist/index.es563.js +1 -1
- package/dist/index.es565.js +4 -4
- package/dist/index.es580.js +69 -65
- package/dist/index.es580.js.map +1 -1
- package/dist/index.es581.js +7 -521
- package/dist/index.es581.js.map +1 -1
- package/dist/index.es582.js +13 -126
- package/dist/index.es582.js.map +1 -1
- package/dist/index.es583.js +60 -127
- package/dist/index.es583.js.map +1 -1
- package/dist/index.es584.js +65 -69
- package/dist/index.es584.js.map +1 -1
- package/dist/index.es585.js +521 -7
- package/dist/index.es585.js.map +1 -1
- package/dist/index.es586.js +126 -13
- package/dist/index.es586.js.map +1 -1
- package/dist/index.es587.js +127 -60
- package/dist/index.es587.js.map +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es64.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es9.js +2 -2
- package/package.json +1 -1
- package/dist/index.cjs276.js +0 -2
- package/dist/index.cjs276.js.map +0 -1
- package/dist/index.cjs465.js +0 -2
- package/dist/index.cjs465.js.map +0 -1
- package/dist/index.cjs466.js +0 -2
- package/dist/index.cjs466.js.map +0 -1
- package/dist/index.cjs488.js +0 -2
- package/dist/index.cjs488.js.map +0 -1
- package/dist/index.cjs489.js +0 -2
- package/dist/index.cjs489.js.map +0 -1
- package/dist/index.cjs490.js +0 -2
- package/dist/index.cjs490.js.map +0 -1
- package/dist/index.cjs505.js.map +0 -1
- package/dist/index.cjs515.js.map +0 -1
- package/dist/index.cjs516.js +0 -2
- package/dist/index.cjs516.js.map +0 -1
- package/dist/index.es276.js +0 -5
- package/dist/index.es276.js.map +0 -1
- package/dist/index.es465.js +0 -30
- package/dist/index.es465.js.map +0 -1
- package/dist/index.es466.js +0 -71
- package/dist/index.es466.js.map +0 -1
- package/dist/index.es488.js +0 -12
- package/dist/index.es488.js.map +0 -1
- package/dist/index.es489.js +0 -53
- package/dist/index.es489.js.map +0 -1
- package/dist/index.es490.js +0 -59
- package/dist/index.es490.js.map +0 -1
- package/dist/index.es505.js.map +0 -1
- package/dist/index.es515.js.map +0 -1
- package/dist/index.es516.js +0 -5
- package/dist/index.es516.js.map +0 -1
- /package/dist/components/ui/{CardMapDoctor/CardMapDoctor.css → CardMapDoctorV2/CardMapDoctorV2.css} +0 -0
package/dist/index.es211.js
CHANGED
package/dist/index.es212.js
CHANGED
package/dist/index.es213.js
CHANGED
package/dist/index.es214.js
CHANGED
package/dist/index.es215.js
CHANGED
package/dist/index.es221.js
CHANGED
package/dist/index.es223.js
CHANGED
package/dist/index.es224.js
CHANGED
package/dist/index.es24.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as e } from "./index.es244.js";
|
2
2
|
import { Root as i, Trigger as c, Portal as m, Content as d, Group as x, Item as u } from "./index.es292.js";
|
3
3
|
import { clsx as o } from "./index.es246.js";
|
4
|
-
import { createColorClasses as h } from "./index.
|
4
|
+
import { createColorClasses as h } from "./index.es274.js";
|
5
5
|
import './components/ui/Dropdown/Dropdown.css';/* empty css */
|
6
6
|
import { ArrowDown as w } from "./index.es158.js";
|
7
7
|
import { Row as p } from "./index.es9.js";
|
package/dist/index.es262.js
CHANGED
package/dist/index.es263.js
CHANGED
package/dist/index.es264.js
CHANGED
package/dist/index.es274.js
CHANGED
@@ -1,30 +1,5 @@
|
|
1
|
-
const
|
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);
|
1
|
+
const t = ["bg", "text", "color", "border"], e = (o) => t.map((r) => o[r] ? r === "color" ? `text-${o[r]}` : `${r}-${o[r]}` : "").filter(Boolean);
|
27
2
|
export {
|
28
|
-
|
3
|
+
e as createColorClasses
|
29
4
|
};
|
30
5
|
//# sourceMappingURL=index.es274.js.map
|
package/dist/index.es274.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es274.js","sources":["../src/theme/
|
1
|
+
{"version":3,"file":"index.es274.js","sources":["../src/theme/colors.ts"],"sourcesContent":["export type ColorKeys =\r\n | \"primary\"\r\n | \"white\"\r\n | \"status-success\"\r\n | \"warning\"\r\n | \"error\"\r\n | \"muted\"\r\n | \"emphasis\"\r\n | \"slate-20\"\r\n | \"slate-14\"\r\n | \"slate-28\"\r\n | \"border-divider\"\r\n | \"transparent\"\r\n | \"blue-30\"\r\n | \"blue-15\"\r\n | \"disabled\"\r\n | \"lightblue-a01\"\r\n | \"lightblue-a02\"\r\n | \"lightblue-a03\"\r\n | \"secondary\"\r\n | \"blue-48\";\r\n\r\nexport type ColorProps = {\r\n bg?: ColorKeys;\r\n text?: ColorKeys;\r\n color?: ColorKeys;\r\n border?: ColorKeys;\r\n};\r\n\r\nexport type ColorPropsKeys = keyof ColorProps;\r\nconst colorPropsKeys: ColorPropsKeys[] = [\"bg\", \"text\", \"color\", \"border\"];\r\n\r\nexport const createColorClasses = <TProps extends ColorProps>(\r\n props: TProps,\r\n) => {\r\n return colorPropsKeys\r\n .map((key) => {\r\n if (!props[key]) return \"\";\r\n\r\n if (key === \"color\") return `text-${props[key]}`;\r\n return `${key}-${props[key]}`;\r\n })\r\n .filter(Boolean);\r\n};\r\n"],"names":["colorPropsKeys","createColorClasses","props","key"],"mappings":"AA8BA,MAAMA,IAAmC,CAAC,MAAM,QAAQ,SAAS,QAAQ,GAE5DC,IAAqB,CAChCC,MAEOF,EACJ,IAAI,CAACG,MACCD,EAAMC,CAAG,IAEVA,MAAQ,UAAgB,QAAQD,EAAMC,CAAG,CAAC,KACvC,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,KAHH,EAIzB,EACA,OAAO,OAAO;"}
|
@@ -0,0 +1,30 @@
|
|
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.es275.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es275.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.es28.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es244.js";
|
2
|
-
import { createColorClasses as g } from "./index.
|
2
|
+
import { createColorClasses as g } from "./index.es274.js";
|
3
3
|
import { clsx as E } from "./index.es246.js";
|
4
4
|
import './components/ui/Button/Button.css';/* empty css */
|
5
5
|
import { Spinner as p } from "./index.es196.js";
|
package/dist/index.es292.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as p from "react";
|
2
|
-
import { composeEventHandlers as m } from "./index.
|
3
|
-
import { composeRefs as E } from "./index.
|
4
|
-
import { createContextScope as S } from "./index.
|
5
|
-
import { useControllableState as P } from "./index.
|
6
|
-
import { Primitive as y } from "./index.
|
7
|
-
import { createMenuScope as D, Root as O, Anchor as T, Portal as j, Content as G, Group as k, Item as L, Label as K, CheckboxItem as U, RadioGroup as B, RadioItem as F, ItemIndicator as H, Separator as W, Arrow as $, SubTrigger as X, SubContent as q } from "./index.
|
8
|
-
import { useId as g } from "./index.
|
2
|
+
import { composeEventHandlers as m } from "./index.es467.js";
|
3
|
+
import { composeRefs as E } from "./index.es468.js";
|
4
|
+
import { createContextScope as S } from "./index.es469.js";
|
5
|
+
import { useControllableState as P } from "./index.es470.js";
|
6
|
+
import { Primitive as y } from "./index.es471.js";
|
7
|
+
import { createMenuScope as D, Root as O, Anchor as T, Portal as j, Content as G, Group as k, Item as L, Label as K, CheckboxItem as U, RadioGroup as B, RadioItem as F, ItemIndicator as H, Separator as W, Arrow as $, SubTrigger as X, SubContent as q } from "./index.es472.js";
|
8
|
+
import { useId as g } from "./index.es473.js";
|
9
9
|
import { j as a } from "./index.es244.js";
|
10
10
|
var M = "DropdownMenu", [z, bo] = S(
|
11
11
|
M,
|
package/dist/index.es295.js
CHANGED
package/dist/index.es297.js
CHANGED
@@ -3,7 +3,7 @@ import { Button as m } from "./index.es28.js";
|
|
3
3
|
import { HeaderTopBanner as y } from "./index.es21.js";
|
4
4
|
import { useState as g, useRef as w, useCallback as C, useEffect as u } from "react";
|
5
5
|
import { clsx as r } from "./index.es246.js";
|
6
|
-
import { useFocusTrap as N } from "./index.
|
6
|
+
import { useFocusTrap as N } from "./index.es464.js";
|
7
7
|
import { Container as k } from "./index.es6.js";
|
8
8
|
import './components/navigations/HeaderMobile/HeaderMobile.css';/* empty css */
|
9
9
|
import { Col as L } from "./index.es10.js";
|
package/dist/index.es305.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import * as n from "react";
|
2
|
-
import { useComposedRefs as N } from "./index.
|
3
|
-
import { createContextScope as M } from "./index.
|
4
|
-
import { composeEventHandlers as S } from "./index.
|
5
|
-
import { useControllableState as O } from "./index.
|
2
|
+
import { useComposedRefs as N } from "./index.es468.js";
|
3
|
+
import { createContextScope as M } from "./index.es469.js";
|
4
|
+
import { composeEventHandlers as S } from "./index.es467.js";
|
5
|
+
import { useControllableState as O } from "./index.es470.js";
|
6
6
|
import { usePrevious as A } from "./index.es474.js";
|
7
7
|
import { useSize as B } from "./index.es475.js";
|
8
8
|
import { Presence as H } from "./index.es476.js";
|
9
|
-
import { Primitive as j } from "./index.
|
9
|
+
import { Primitive as j } from "./index.es471.js";
|
10
10
|
import { j as f } from "./index.es244.js";
|
11
11
|
var R = "Checkbox", [K, Y] = M(R), [L, q] = K(R), I = n.forwardRef(
|
12
12
|
(e, l) => {
|
package/dist/index.es32.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as s } from "./index.es244.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/CardMapDoctorV2/CardMapDoctorV2.css';/* empty css */
|
3
3
|
import { useState as o, useRef as b } from "react";
|
4
4
|
import { Root as N, Indicator as d } from "./index.es305.js";
|
5
5
|
import { useClickOutside as C } from "./index.es306.js";
|
package/dist/index.es321.js
CHANGED
package/dist/index.es323.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
import * as s from "react";
|
2
|
-
import { composeEventHandlers as p } from "./index.
|
3
|
-
import { useComposedRefs as C } from "./index.
|
4
|
-
import { createContextScope as B, createContext as H } from "./index.
|
5
|
-
import { useId as x } from "./index.
|
6
|
-
import { useControllableState as V } from "./index.
|
7
|
-
import { DismissableLayer as q } from "./index.
|
8
|
-
import { FocusScope as K } from "./index.
|
9
|
-
import { Portal as U } from "./index.
|
2
|
+
import { composeEventHandlers as p } from "./index.es467.js";
|
3
|
+
import { useComposedRefs as C } from "./index.es468.js";
|
4
|
+
import { createContextScope as B, createContext as H } from "./index.es469.js";
|
5
|
+
import { useId as x } from "./index.es473.js";
|
6
|
+
import { useControllableState as V } from "./index.es470.js";
|
7
|
+
import { DismissableLayer as q } from "./index.es480.js";
|
8
|
+
import { FocusScope as K } from "./index.es481.js";
|
9
|
+
import { Portal as U } from "./index.es482.js";
|
10
10
|
import { Presence as R } from "./index.es476.js";
|
11
|
-
import { Primitive as m } from "./index.
|
12
|
-
import { useFocusGuards as Y } from "./index.
|
13
|
-
import Z from "./index.
|
14
|
-
import { hideOthers as z } from "./index.
|
15
|
-
import { createSlot as J } from "./index.
|
11
|
+
import { Primitive as m } from "./index.es471.js";
|
12
|
+
import { useFocusGuards as Y } from "./index.es483.js";
|
13
|
+
import Z from "./index.es484.js";
|
14
|
+
import { hideOthers as z } from "./index.es485.js";
|
15
|
+
import { createSlot as J } from "./index.es486.js";
|
16
16
|
import { j as i } from "./index.es244.js";
|
17
17
|
var _ = "Dialog", [N, he] = B(_), [Q, u] = N(_), P = (e) => {
|
18
18
|
const {
|
package/dist/index.es33.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as s } from "./index.es244.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/CardMapDoctorV2/CardMapDoctorV2.css';/* empty css */
|
3
3
|
import { useRef as j } from "react";
|
4
4
|
import { Root as w, Indicator as b } from "./index.es305.js";
|
5
5
|
import { useClickOutside as N } from "./index.es306.js";
|
package/dist/index.es352.js
CHANGED
package/dist/index.es353.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { j as a } from "./index.es244.js";
|
2
2
|
import './components/ui/Section/Description/description.css';/* empty css */
|
3
|
-
import { createColorClasses as n } from "./index.
|
3
|
+
import { createColorClasses as n } from "./index.es274.js";
|
4
4
|
import { clsx as m } from "./index.es246.js";
|
5
5
|
const u = ({
|
6
6
|
fs: t = "6",
|
package/dist/index.es354.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as s from "react";
|
2
|
-
import { composeEventHandlers as T } from "./index.
|
3
|
-
import { useComposedRefs as _ } from "./index.
|
4
|
-
import { createContextScope as H } from "./index.
|
5
|
-
import { useControllableState as I } from "./index.
|
2
|
+
import { composeEventHandlers as T } from "./index.es467.js";
|
3
|
+
import { useComposedRefs as _ } from "./index.es468.js";
|
4
|
+
import { createContextScope as H } from "./index.es469.js";
|
5
|
+
import { useControllableState as I } from "./index.es470.js";
|
6
6
|
import { usePrevious as M } from "./index.es474.js";
|
7
7
|
import { useSize as N } from "./index.es475.js";
|
8
|
-
import { Primitive as w } from "./index.
|
8
|
+
import { Primitive as w } from "./index.es471.js";
|
9
9
|
import { j as p } from "./index.es244.js";
|
10
10
|
var S = "Switch", [B, J] = H(S), [q, z] = B(S), C = s.forwardRef(
|
11
11
|
(e, n) => {
|
package/dist/index.es395.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as l from "react";
|
2
|
-
import { createContextScope as T } from "./index.
|
3
|
-
import { useComposedRefs as A } from "./index.
|
2
|
+
import { createContextScope as T } from "./index.es469.js";
|
3
|
+
import { useComposedRefs as A } from "./index.es468.js";
|
4
4
|
import { createDialogScope as v, Root as O, Portal as j, Overlay as b, WarningProvider as w, Content as M, Title as I, Description as L, Close as f, Trigger as $ } from "./index.es323.js";
|
5
|
-
import { composeEventHandlers as F } from "./index.
|
6
|
-
import { createSlottable as G } from "./index.
|
5
|
+
import { composeEventHandlers as F } from "./index.es467.js";
|
6
|
+
import { createSlottable as G } from "./index.es486.js";
|
7
7
|
import { j as i } from "./index.es244.js";
|
8
8
|
var D = "AlertDialog", [W, te] = T(D, [
|
9
9
|
v
|
package/dist/index.es401.js
CHANGED
package/dist/index.es443.js
CHANGED
package/dist/index.es454.js
CHANGED
package/dist/index.es455.js
CHANGED
package/dist/index.es461.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as R, a as _ } from "./index.
|
1
|
+
import { g as R, a as _ } from "./index.es520.js";
|
2
2
|
import { w as k, e as D, h as se, c as Z, p as N, x as we, u as W, n as ee, t as ce, j as Se, q as Te, r as xe, s as $, f as re, v as be, d as Y, a as ye } from "./index.es518.js";
|
3
3
|
let X;
|
4
4
|
function Ee() {
|
package/dist/index.es464.js
CHANGED
@@ -1,10 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import { useEffect as l } from "react";
|
2
|
+
const f = (t, n) => {
|
3
|
+
l(() => {
|
4
|
+
if (!n || !t.current) return;
|
5
|
+
const o = t.current.querySelectorAll(
|
6
|
+
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
7
|
+
), c = o[0], r = o[o.length - 1], s = (e) => {
|
8
|
+
e.key === "Tab" && (e.shiftKey ? document.activeElement === c && (r.focus(), e.preventDefault()) : document.activeElement === r && (c.focus(), e.preventDefault()));
|
9
|
+
}, u = document.activeElement;
|
10
|
+
return c.focus(), document.addEventListener("keydown", s), () => {
|
11
|
+
document.removeEventListener("keydown", s), n && (u == null || u.focus());
|
12
|
+
};
|
13
|
+
}, [n, t]);
|
14
|
+
};
|
7
15
|
export {
|
8
|
-
|
16
|
+
f as useFocusTrap
|
9
17
|
};
|
10
18
|
//# sourceMappingURL=index.es464.js.map
|
package/dist/index.es464.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es464.js","sources":["../
|
1
|
+
{"version":3,"file":"index.es464.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\r\n\r\nexport const useFocusTrap = (\r\n ref: React.RefObject<HTMLElement | null>,\r\n isActive: boolean,\r\n) => {\r\n useEffect(() => {\r\n if (!isActive || !ref.current) return;\r\n\r\n const focusableElements = ref.current.querySelectorAll(\r\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\r\n );\r\n const firstFocusableElement = focusableElements[0] as HTMLElement;\r\n const lastFocusableElement = focusableElements[\r\n focusableElements.length - 1\r\n ] as HTMLElement;\r\n\r\n const handleKeyDown = (e: KeyboardEvent) => {\r\n if (e.key !== \"Tab\") return;\r\n\r\n if (e.shiftKey) {\r\n if (document.activeElement === firstFocusableElement) {\r\n lastFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n } else {\r\n if (document.activeElement === lastFocusableElement) {\r\n firstFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n const previousActiveElement = document.activeElement as HTMLElement;\r\n\r\n firstFocusableElement.focus();\r\n\r\n document.addEventListener(\"keydown\", handleKeyDown);\r\n\r\n return () => {\r\n document.removeEventListener(\"keydown\", handleKeyDown);\r\n\r\n if (isActive) {\r\n previousActiveElement?.focus();\r\n }\r\n };\r\n }, [isActive, ref]);\r\n};\r\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":";AAEa,MAAAA,IAAe,CAC1BC,GACAC,MACG;AACH,EAAAC,EAAU,MAAM;AACd,QAAI,CAACD,KAAY,CAACD,EAAI,QAAS;AAEzB,UAAAG,IAAoBH,EAAI,QAAQ;AAAA,MACpC;AAAA,IACF,GACMI,IAAwBD,EAAkB,CAAC,GAC3CE,IAAuBF,EAC3BA,EAAkB,SAAS,CAC7B,GAEMG,IAAgB,CAAC,MAAqB;AACtC,MAAA,EAAE,QAAQ,UAEV,EAAE,WACA,SAAS,kBAAkBF,MAC7BC,EAAqB,MAAM,GAC3B,EAAE,eAAe,KAGf,SAAS,kBAAkBA,MAC7BD,EAAsB,MAAM,GAC5B,EAAE,eAAe;AAAA,IAGvB,GAEMG,IAAwB,SAAS;AAEvC,WAAAH,EAAsB,MAAM,GAEnB,SAAA,iBAAiB,WAAWE,CAAa,GAE3C,MAAM;AACF,eAAA,oBAAoB,WAAWA,CAAa,GAEjDL,MACFM,KAAA,QAAAA,EAAuB;AAAA,IAE3B;AAAA,EAAA,GACC,CAACN,GAAUD,CAAG,CAAC;AACpB;"}
|
package/dist/index.es467.js
CHANGED
@@ -1,33 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
onChange: s = () => {
|
7
|
-
}
|
8
|
-
}) {
|
9
|
-
const [e, n] = v({ defaultProp: r, onChange: s }), o = t !== void 0, i = o ? t : e, u = f(s), d = l.useCallback(
|
10
|
-
(c) => {
|
11
|
-
if (o) {
|
12
|
-
const a = typeof c == "function" ? c(t) : c;
|
13
|
-
a !== t && u(a);
|
14
|
-
} else
|
15
|
-
n(c);
|
16
|
-
},
|
17
|
-
[o, t, n, u]
|
18
|
-
);
|
19
|
-
return [i, d];
|
20
|
-
}
|
21
|
-
function v({
|
22
|
-
defaultProp: t,
|
23
|
-
onChange: r
|
24
|
-
}) {
|
25
|
-
const s = l.useState(t), [e] = s, n = l.useRef(e), o = f(r);
|
26
|
-
return l.useEffect(() => {
|
27
|
-
n.current !== e && (o(e), n.current = e);
|
28
|
-
}, [e, n, o]), s;
|
1
|
+
function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
|
2
|
+
return function(s) {
|
3
|
+
if (f == null || f(s), p === !1 || !s.defaultPrevented)
|
4
|
+
return c == null ? void 0 : c(s);
|
5
|
+
};
|
29
6
|
}
|
30
7
|
export {
|
31
|
-
|
8
|
+
h as composeEventHandlers
|
32
9
|
};
|
33
10
|
//# sourceMappingURL=index.es467.js.map
|
package/dist/index.es467.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es467.js","sources":["../node_modules/@radix-ui/
|
1
|
+
{"version":3,"file":"index.es467.js","sources":["../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AACA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAM,IAAG,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,KAAA,QAAAA,EAAuBG,IACnBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,KAAA,gBAAAA,EAAkBE;AAAA,EAE5B;AACH;","x_google_ignoreList":[0]}
|
package/dist/index.es468.js
CHANGED
@@ -1,36 +1,30 @@
|
|
1
|
-
import * as
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(n, { ...a, ref: s });
|
26
|
-
});
|
27
|
-
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
28
|
-
}, {});
|
29
|
-
function w(t, i) {
|
30
|
-
t && f.flushSync(() => t.dispatchEvent(i));
|
1
|
+
import * as f from "react";
|
2
|
+
function l(n, o) {
|
3
|
+
if (typeof n == "function")
|
4
|
+
return n(o);
|
5
|
+
n != null && (n.current = o);
|
6
|
+
}
|
7
|
+
function i(...n) {
|
8
|
+
return (o) => {
|
9
|
+
let u = !1;
|
10
|
+
const c = n.map((t) => {
|
11
|
+
const e = l(t, o);
|
12
|
+
return !u && typeof e == "function" && (u = !0), e;
|
13
|
+
});
|
14
|
+
if (u)
|
15
|
+
return () => {
|
16
|
+
for (let t = 0; t < c.length; t++) {
|
17
|
+
const e = c[t];
|
18
|
+
typeof e == "function" ? e() : l(n[t], null);
|
19
|
+
}
|
20
|
+
};
|
21
|
+
};
|
22
|
+
}
|
23
|
+
function s(...n) {
|
24
|
+
return f.useCallback(i(...n), n);
|
31
25
|
}
|
32
26
|
export {
|
33
|
-
|
34
|
-
|
27
|
+
i as composeRefs,
|
28
|
+
s as useComposedRefs
|
35
29
|
};
|
36
30
|
//# sourceMappingURL=index.es468.js.map
|
package/dist/index.es468.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es468.js","sources":["../node_modules/@radix-ui/react-
|
1
|
+
{"version":3,"file":"index.es468.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACb,CAAK;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAS,IAETR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAEhC;AAAA,MACO;AAAA,EAEJ;AACH;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
|