@anoki/fse-ui 1.0.351 → 1.0.352
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs119.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs141.js.map +1 -1
- package/dist/index.cjs142.js +2 -0
- package/dist/index.cjs142.js.map +1 -0
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs16.js.map +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs237.js.map +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs238.js.map +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs240.js.map +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs241.js.map +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs242.js.map +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs243.js.map +1 -1
- package/dist/index.cjs244.js +2 -0
- package/dist/index.cjs244.js.map +1 -0
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs245.js.map +1 -1
- package/dist/index.cjs246.js +2 -0
- package/dist/index.cjs246.js.map +1 -0
- package/dist/index.cjs247.js +2 -0
- package/dist/index.cjs247.js.map +1 -0
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs250.js.map +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs251.js.map +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs252.js.map +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs253.js.map +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs254.js.map +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs255.js.map +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs256.js.map +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs260.js.map +1 -1
- package/dist/index.cjs261.js +1 -1
- package/dist/index.cjs261.js.map +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs262.js.map +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs263.js.map +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs264.js.map +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs265.js.map +1 -1
- package/dist/{index.cjs274.js → index.cjs266.js} +2 -2
- package/dist/{index.cjs274.js.map → index.cjs266.js.map} +1 -1
- package/dist/{index.cjs275.js → index.cjs267.js} +2 -2
- package/dist/{index.cjs275.js.map → index.cjs267.js.map} +1 -1
- package/dist/index.cjs268.js +2 -0
- package/dist/index.cjs268.js.map +1 -0
- package/dist/index.cjs269.js +2 -0
- package/dist/index.cjs269.js.map +1 -0
- package/dist/index.cjs276.js +1 -1
- package/dist/index.cjs276.js.map +1 -1
- package/dist/index.cjs277.js +1 -1
- package/dist/index.cjs277.js.map +1 -1
- package/dist/index.cjs278.js +2 -0
- package/dist/index.cjs278.js.map +1 -0
- package/dist/index.cjs281.js +2 -0
- package/dist/index.cjs281.js.map +1 -0
- package/dist/index.cjs282.js +2 -0
- package/dist/index.cjs282.js.map +1 -0
- package/dist/{index.cjs289.js → index.cjs283.js} +1 -1
- package/dist/{index.cjs289.js.map → index.cjs283.js.map} +1 -1
- package/dist/index.cjs284.js +4 -1
- package/dist/index.cjs284.js.map +1 -1
- package/dist/index.cjs285.js +1 -1
- package/dist/index.cjs285.js.map +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs286.js.map +1 -1
- package/dist/index.cjs287.js +1 -1
- package/dist/index.cjs287.js.map +1 -1
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs288.js.map +1 -1
- package/dist/index.cjs295.js +1 -1
- package/dist/index.cjs299.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs84.js +1 -1
- package/dist/index.cjs85.js +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es10.js +2 -2
- package/dist/index.es100.js +1 -1
- package/dist/index.es101.js +1 -1
- package/dist/index.es102.js +1 -1
- package/dist/index.es103.js +1 -1
- package/dist/index.es104.js +1 -1
- package/dist/index.es105.js +1 -1
- package/dist/index.es106.js +1 -1
- package/dist/index.es107.js +1 -1
- package/dist/index.es108.js +1 -1
- package/dist/index.es109.js +1 -1
- package/dist/index.es110.js +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es113.js +1 -1
- package/dist/index.es114.js +1 -1
- package/dist/index.es115.js +1 -1
- package/dist/index.es116.js +1 -1
- package/dist/index.es117.js +1 -1
- package/dist/index.es118.js +1 -1
- package/dist/index.es119.js +1 -1
- package/dist/index.es141.js +2 -27
- package/dist/index.es141.js.map +1 -1
- package/dist/index.es142.js +30 -0
- package/dist/index.es142.js.map +1 -0
- package/dist/index.es151.js +1 -1
- package/dist/index.es157.js +7 -7
- package/dist/index.es16.js +29 -23
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es160.js +1 -1
- package/dist/index.es161.js +1 -1
- package/dist/index.es168.js +8 -8
- package/dist/index.es177.js +1 -1
- package/dist/index.es179.js +14 -14
- package/dist/index.es186.js +1 -1
- package/dist/index.es191.js +1 -1
- package/dist/index.es198.js +1 -1
- package/dist/index.es204.js +1 -1
- package/dist/index.es205.js +1 -1
- package/dist/index.es206.js +7 -7
- package/dist/index.es22.js +1 -1
- package/dist/index.es235.js +1 -1
- package/dist/index.es236.js +1 -1
- package/dist/index.es237.js +2 -7
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es238.js +2 -27
- package/dist/index.es238.js.map +1 -1
- package/dist/index.es240.js +6 -29
- package/dist/index.es240.js.map +1 -1
- package/dist/index.es241.js +26 -32
- package/dist/index.es241.js.map +1 -1
- package/dist/index.es242.js +63 -617
- package/dist/index.es242.js.map +1 -1
- package/dist/index.es243.js +29 -10
- package/dist/index.es243.js.map +1 -1
- package/dist/index.es244.js +36 -0
- package/dist/index.es244.js.map +1 -0
- package/dist/index.es245.js +620 -13
- package/dist/index.es245.js.map +1 -1
- package/dist/index.es246.js +14 -0
- package/dist/index.es246.js.map +1 -0
- package/dist/index.es247.js +18 -0
- package/dist/index.es247.js.map +1 -0
- package/dist/index.es25.js +1 -1
- package/dist/index.es250.js +10 -68
- package/dist/index.es250.js.map +1 -1
- package/dist/index.es251.js +42 -2
- package/dist/index.es251.js.map +1 -1
- package/dist/index.es252.js +46 -2
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es253.js +7 -10
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es254.js +120 -37
- package/dist/index.es254.js.map +1 -1
- package/dist/index.es255.js +14 -45
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +134 -7
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +206 -113
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +13 -14
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +60 -126
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es260.js +163 -203
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es261.js +50 -14
- package/dist/index.es261.js.map +1 -1
- package/dist/index.es262.js +9 -178
- package/dist/index.es262.js.map +1 -1
- package/dist/index.es263.js +3 -49
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +6 -9
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es265.js +25 -4
- package/dist/index.es265.js.map +1 -1
- package/dist/{index.es274.js → index.es266.js} +2 -2
- package/dist/{index.es274.js.map → index.es266.js.map} +1 -1
- package/dist/{index.es275.js → index.es267.js} +3 -3
- package/dist/{index.es275.js.map → index.es267.js.map} +1 -1
- package/dist/index.es268.js +25 -0
- package/dist/index.es268.js.map +1 -0
- package/dist/index.es269.js +396 -0
- package/dist/index.es269.js.map +1 -0
- package/dist/index.es276.js +24 -21
- package/dist/index.es276.js.map +1 -1
- package/dist/index.es277.js +27 -391
- package/dist/index.es277.js.map +1 -1
- package/dist/index.es278.js +8 -0
- package/dist/index.es278.js.map +1 -0
- package/dist/index.es281.js +8 -0
- package/dist/index.es281.js.map +1 -0
- package/dist/index.es282.js +6 -0
- package/dist/index.es282.js.map +1 -0
- package/dist/{index.es289.js → index.es283.js} +1 -1
- package/dist/{index.es289.js.map → index.es283.js.map} +1 -1
- package/dist/index.es284.js +107 -22
- package/dist/index.es284.js.map +1 -1
- package/dist/index.es285.js +15 -28
- package/dist/index.es285.js.map +1 -1
- package/dist/index.es286.js +523 -5
- package/dist/index.es286.js.map +1 -1
- package/dist/index.es287.js +127 -5
- package/dist/index.es287.js.map +1 -1
- package/dist/index.es288.js +129 -3
- package/dist/index.es288.js.map +1 -1
- package/dist/index.es295.js +1 -1
- package/dist/index.es299.js +1 -1
- package/dist/index.es56.js +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es76.js +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es78.js +1 -1
- package/dist/index.es79.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es80.js +1 -1
- package/dist/index.es81.js +1 -1
- package/dist/index.es82.js +1 -1
- package/dist/index.es83.js +1 -1
- package/dist/index.es84.js +1 -1
- package/dist/index.es85.js +1 -1
- package/dist/index.es86.js +1 -1
- package/dist/index.es87.js +1 -1
- package/dist/index.es88.js +1 -1
- package/dist/index.es89.js +1 -1
- package/dist/index.es9.js +2 -2
- package/dist/index.es90.js +1 -1
- package/dist/index.es91.js +1 -1
- package/dist/index.es92.js +1 -1
- package/dist/index.es93.js +1 -1
- package/dist/index.es94.js +1 -1
- package/dist/index.es95.js +1 -1
- package/dist/index.es96.js +1 -1
- package/dist/index.es97.js +1 -1
- package/package.json +1 -1
- package/dist/index.cjs143.js +0 -2
- package/dist/index.cjs143.js.map +0 -1
- package/dist/index.cjs239.js +0 -2
- package/dist/index.cjs239.js.map +0 -1
- package/dist/index.cjs248.js +0 -2
- package/dist/index.cjs248.js.map +0 -1
- package/dist/index.cjs249.js +0 -2
- package/dist/index.cjs249.js.map +0 -1
- package/dist/index.cjs290.js +0 -5
- package/dist/index.cjs290.js.map +0 -1
- package/dist/index.cjs291.js +0 -2
- package/dist/index.cjs291.js.map +0 -1
- package/dist/index.cjs292.js +0 -2
- package/dist/index.cjs292.js.map +0 -1
- package/dist/index.cjs293.js +0 -2
- package/dist/index.cjs293.js.map +0 -1
- package/dist/index.cjs294.js +0 -2
- package/dist/index.cjs294.js.map +0 -1
- package/dist/index.es143.js +0 -5
- package/dist/index.es143.js.map +0 -1
- package/dist/index.es239.js +0 -71
- package/dist/index.es239.js.map +0 -1
- package/dist/index.es248.js +0 -9
- package/dist/index.es248.js.map +0 -1
- package/dist/index.es249.js +0 -28
- package/dist/index.es249.js.map +0 -1
- package/dist/index.es290.js +0 -113
- package/dist/index.es290.js.map +0 -1
- package/dist/index.es291.js +0 -19
- package/dist/index.es291.js.map +0 -1
- package/dist/index.es292.js +0 -526
- package/dist/index.es292.js.map +0 -1
- package/dist/index.es293.js +0 -130
- package/dist/index.es293.js.map +0 -1
- package/dist/index.es294.js +0 -132
- package/dist/index.es294.js.map +0 -1
- /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
package/dist/index.es141.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.es141.js.map
|
package/dist/index.es141.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es141.js","sources":["../src/theme/
|
1
|
+
{"version":3,"file":"index.es141.js","sources":["../src/theme/colors.ts"],"sourcesContent":["export type ColorKeys =\n | \"primary\"\n | \"white\"\n | \"status-success\"\n | \"warning\"\n | \"error\"\n | \"muted\"\n | \"emphasis\"\n | \"slate-20\"\n | \"slate-28\"\n | \"border-divider\"\n | \"transparent\"\n | \"blue-30\"\n | \"disabled\"\n | \"lightblue-a01\"\n | \"lightblue-a02\"\n | \"lightblue-a03\"\n | \"secondary\";\n\nexport type ColorProps = {\n bg?: ColorKeys;\n text?: ColorKeys;\n color?: ColorKeys;\n border?: ColorKeys;\n};\n\nexport type ColorPropsKeys = keyof ColorProps;\nconst colorPropsKeys: ColorPropsKeys[] = [\"bg\", \"text\", \"color\", \"border\"];\n\nexport const createColorClasses = <TProps extends ColorProps>(\n props: TProps,\n) => {\n return colorPropsKeys\n .map((key) => {\n if (!props[key]) return \"\";\n\n if (key === \"color\") return `text-${props[key]}`;\n return `${key}-${props[key]}`;\n })\n .filter(Boolean);\n};\n"],"names":["colorPropsKeys","createColorClasses","props","key"],"mappings":"AA2BA,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.es142.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es142.js","sources":["../src/theme/spacing.ts"],"sourcesContent":["export type SpacingKey =\n | \"x4\"\n | \"x8\"\n | \"x12\"\n | \"x16\"\n | \"x20\"\n | \"x24\"\n | \"x28\"\n | \"x32\"\n | \"x36\"\n | \"x40\"\n | \"x44\"\n | \"x48\"\n | \"x52\"\n | \"x56\"\n | \"x60\"\n | \"x64\"\n | \"x68\"\n | \"x72\"\n | \"x76\"\n | \"x80\"\n | \"x84\"\n | \"x88\"\n | \"x92\"\n | \"x96\"\n | \"x100\"\n | \"x104\";\n\nexport type SpacingProps = {\n gap?: SpacingKey;\n m?: SpacingKey; // margin\n mx?: SpacingKey; // margin x\n my?: SpacingKey; // margin y\n mt?: SpacingKey; // margin top\n mr?: SpacingKey; // margin bottom\n mb?: SpacingKey; // margin right\n ml?: SpacingKey; // margin left\n p?: SpacingKey; // padding\n px?: SpacingKey; // padding x\n py?: SpacingKey; // padding y\n pt?: SpacingKey; // padding top\n pr?: SpacingKey; // padding bottom\n pb?: SpacingKey; // padding right\n pl?: SpacingKey; // padding left\n br?: SpacingKey; // border-radius\n \"br-t\"?: SpacingKey; // border-radius top\n \"br-r\"?: SpacingKey; // border-radius right\n \"br-b\"?: SpacingKey; // border-radius bottom\n \"br-l\"?: SpacingKey; // border-radius left\n \"min-h\"?: SpacingKey; // min-height\n \"min-w\"?: SpacingKey; // min-width\n \"max-h\"?: SpacingKey; // max-height\n \"max-w\"?: SpacingKey; // max-width\n};\n\nexport type SpacingPropsKeys = keyof SpacingProps;\nconst spacingPropsKeys: SpacingPropsKeys[] = [\n \"gap\",\n \"m\",\n \"mx\",\n \"my\",\n \"mt\",\n \"mr\",\n \"mb\",\n \"ml\",\n \"p\",\n \"px\",\n \"py\",\n \"pt\",\n \"pr\",\n \"pb\",\n \"pl\",\n \"br\",\n \"br-t\",\n \"br-r\",\n \"br-b\",\n \"br-l\",\n \"min-h\",\n \"min-w\",\n \"max-h\",\n \"max-w\",\n];\n\nexport const createSpacingClasses = <TProps extends SpacingProps>(\n props: TProps,\n) => {\n return spacingPropsKeys\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\n .filter(Boolean);\n};\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.es151.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { j as s } from "./index.es139.js";
|
2
2
|
import { clsx as a } from "./index.es140.js";
|
3
|
-
import { createColorClasses as e } from "./index.
|
3
|
+
import { createColorClasses as e } from "./index.es141.js";
|
4
4
|
import './components/ui/Divider/Divider.css';/* empty css */
|
5
5
|
const p = ({
|
6
6
|
direction: o = "horizontal",
|
package/dist/index.es157.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.es240.js";
|
3
|
+
import { composeRefs as E } from "./index.es241.js";
|
4
|
+
import { createContextScope as S } from "./index.es242.js";
|
5
|
+
import { useControllableState as P } from "./index.es243.js";
|
6
|
+
import { Primitive as y } from "./index.es244.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.es245.js";
|
8
|
+
import { useId as g } from "./index.es246.js";
|
9
9
|
import { j as a } from "./index.es139.js";
|
10
10
|
var M = "DropdownMenu", [z, bo] = S(
|
11
11
|
M,
|
package/dist/index.es16.js
CHANGED
@@ -1,31 +1,37 @@
|
|
1
1
|
import { j as e } from "./index.es139.js";
|
2
|
-
import { Container as
|
3
|
-
import { Divider as
|
2
|
+
import { Container as c } from "./index.es6.js";
|
3
|
+
import { Divider as x } from "./index.es151.js";
|
4
4
|
import './components/navigations/Footer/Footer.css';/* empty css */
|
5
|
-
import { clsx as
|
6
|
-
import { FseMS as
|
7
|
-
import { FseMEF as
|
8
|
-
import { FseUE as
|
9
|
-
import { FseDGT as
|
10
|
-
const
|
11
|
-
footerLinks:
|
12
|
-
version:
|
13
|
-
asLink:
|
14
|
-
className:
|
5
|
+
import { clsx as f } from "./index.es140.js";
|
6
|
+
import { FseMS as p } from "./index.es87.js";
|
7
|
+
import { FseMEF as d } from "./index.es85.js";
|
8
|
+
import { FseUE as h } from "./index.es88.js";
|
9
|
+
import { FseDGT as j } from "./index.es84.js";
|
10
|
+
const E = ({
|
11
|
+
footerLinks: o,
|
12
|
+
version: t,
|
13
|
+
asLink: i = "a",
|
14
|
+
className: l,
|
15
|
+
additionalLogo: a
|
15
16
|
}) => {
|
16
|
-
const
|
17
|
-
|
17
|
+
const m = i;
|
18
|
+
console.log(o, t, i, l);
|
19
|
+
const n = [
|
18
20
|
p,
|
19
21
|
d,
|
20
|
-
h
|
22
|
+
h,
|
23
|
+
j
|
21
24
|
];
|
22
|
-
return /* @__PURE__ */ e.jsx("footer", { className:
|
23
|
-
/* @__PURE__ */ e.
|
24
|
-
|
25
|
+
return /* @__PURE__ */ e.jsx("footer", { className: f("bg-slate-20", l), children: /* @__PURE__ */ e.jsxs(c, { children: [
|
26
|
+
/* @__PURE__ */ e.jsxs("section", { className: "ui-footer-institution-logos", children: [
|
27
|
+
n.map((r, s) => /* @__PURE__ */ e.jsx(r, { className: "ui-footer-logo" }, s)),
|
28
|
+
a && /* @__PURE__ */ e.jsx("img", { src: a, alt: "Additional Logo", className: "ui-footer-logo" })
|
29
|
+
] }),
|
30
|
+
/* @__PURE__ */ e.jsx(x, {}),
|
25
31
|
/* @__PURE__ */ e.jsxs("section", { className: "ui-footer-links-container", children: [
|
26
32
|
/* @__PURE__ */ e.jsx("h3", { className: "visually-hidden", children: "Sezione Link Utili" }),
|
27
|
-
/* @__PURE__ */ e.jsx("ul", { className: "ui-footer-links-list", role: "list", children:
|
28
|
-
|
33
|
+
/* @__PURE__ */ e.jsx("ul", { className: "ui-footer-links-list", role: "list", children: o == null ? void 0 : o.map((r, s) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx(
|
34
|
+
m,
|
29
35
|
{
|
30
36
|
href: r.href,
|
31
37
|
target: r.target ?? "_self",
|
@@ -34,12 +40,12 @@ const T = ({
|
|
34
40
|
rel: r.target === "_blank" ? "noopener noreferrer" : void 0,
|
35
41
|
children: r.label
|
36
42
|
}
|
37
|
-
) },
|
38
|
-
/* @__PURE__ */ e.jsx("span", { className: "text-white fw-normal ui-footer-version", children:
|
43
|
+
) }, s)) }),
|
44
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-white fw-normal ui-footer-version", children: t })
|
39
45
|
] })
|
40
46
|
] }) });
|
41
47
|
};
|
42
48
|
export {
|
43
|
-
|
49
|
+
E as Footer
|
44
50
|
};
|
45
51
|
//# sourceMappingURL=index.es16.js.map
|
package/dist/index.es16.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es16.js","sources":["../src/components/navigations/Footer/index.tsx"],"sourcesContent":["import { FseMS, FseMEF, FseUE, FseDGT } from \"@/icons\";\n\nimport { Container } from \"@/components/ui/Container\";\nimport { Divider } from \"@/components/ui/Divider\";\nimport { IconProps } from \"@/types/icons\";\nimport \"./Footer.scss\";\nimport clsx from \"clsx\";\n\ntype FooterLink = {\n label: string;\n href: string;\n target?: \"_blank\" | \"_self\";\n};\n\ntype FooterProps = {\n footerLinks?: FooterLink[];\n version?: string;\n asLink?: \"a\" | React.ComponentType<any>;\n className?: string;\n};\n\nexport const Footer = ({\n footerLinks,\n version,\n asLink = \"a\",\n className,\n}: FooterProps) => {\n const LinkComponent = asLink;\n\n const INSTITUTION_LOGOS: React.ComponentType<IconProps>[] = [\n FseMS,\n FseMEF,\n FseUE,\n FseDGT,\n ];\n\n return (\n <footer className={clsx(\"bg-slate-20\", className)}>\n <Container>\n <section className=\"ui-footer-institution-logos\">\n {INSTITUTION_LOGOS.map((Logo, i) => (\n <Logo key={i} className=\"ui-footer-logo\" />\n ))}\n </section>\n <Divider />\n <section className=\"ui-footer-links-container\">\n <h3 className=\"visually-hidden\">Sezione Link Utili</h3>\n <ul className=\"ui-footer-links-list\" role=\"list\">\n {footerLinks?.map((link, i) => {\n return (\n <li key={i}>\n <LinkComponent\n href={link.href}\n target={link.target ?? \"_self\"}\n className=\"text-white fs-6 fw-semibold text-decoration-underline\"\n aria-label={`Vai alla pagina: ${link.label}`}\n rel={\n link.target === \"_blank\"\n ? \"noopener noreferrer\"\n : undefined\n }\n >\n {link.label}\n </LinkComponent>\n </li>\n );\n })}\n </ul>\n <span className={`text-white fw-normal ui-footer-version`}>\n {version}\n </span>\n </section>\n </Container>\n </footer>\n );\n};\n"],"names":["Footer","footerLinks","version","asLink","className","LinkComponent","INSTITUTION_LOGOS","FseMS","FseMEF","FseUE","FseDGT","jsx","clsx","Container","Logo","i","Divider","
|
1
|
+
{"version":3,"file":"index.es16.js","sources":["../src/components/navigations/Footer/index.tsx"],"sourcesContent":["import { FseMS, FseMEF, FseUE, FseDGT } from \"@/icons\";\n\nimport { Container } from \"@/components/ui/Container\";\nimport { Divider } from \"@/components/ui/Divider\";\nimport { IconProps } from \"@/types/icons\";\nimport \"./Footer.scss\";\nimport clsx from \"clsx\";\n\ntype FooterLink = {\n label: string;\n href: string;\n target?: \"_blank\" | \"_self\";\n};\n\ntype FooterProps = {\n footerLinks?: FooterLink[];\n version?: string;\n asLink?: \"a\" | React.ComponentType<any>;\n className?: string;\n additionalLogo?: string;\n};\n\nexport const Footer = ({\n footerLinks,\n version,\n asLink = \"a\",\n className,\n additionalLogo,\n}: FooterProps) => {\n const LinkComponent = asLink;\n console.log(footerLinks, version, asLink, className );\n\n const INSTITUTION_LOGOS: React.ComponentType<IconProps>[] = [\n FseMS,\n FseMEF,\n FseUE,\n FseDGT,\n ];\n\n return (\n <footer className={clsx(\"bg-slate-20\", className)}>\n <Container>\n <section className=\"ui-footer-institution-logos\">\n {INSTITUTION_LOGOS.map((Logo, i) => (\n <Logo key={i} className=\"ui-footer-logo\" />\n ))}\n {additionalLogo && (\n <img src={additionalLogo} alt=\"Additional Logo\" className=\"ui-footer-logo\" />\n )}\n </section>\n <Divider />\n <section className=\"ui-footer-links-container\">\n <h3 className=\"visually-hidden\">Sezione Link Utili</h3>\n <ul className=\"ui-footer-links-list\" role=\"list\">\n {footerLinks?.map((link, i) => {\n return (\n <li key={i}>\n <LinkComponent\n href={link.href}\n target={link.target ?? \"_self\"}\n className=\"text-white fs-6 fw-semibold text-decoration-underline\"\n aria-label={`Vai alla pagina: ${link.label}`}\n rel={\n link.target === \"_blank\"\n ? \"noopener noreferrer\"\n : undefined\n }\n >\n {link.label}\n </LinkComponent>\n </li>\n );\n })}\n </ul>\n <span className={`text-white fw-normal ui-footer-version`}>\n {version}\n </span>\n </section>\n </Container>\n </footer>\n );\n};\n"],"names":["Footer","footerLinks","version","asLink","className","additionalLogo","LinkComponent","INSTITUTION_LOGOS","FseMS","FseMEF","FseUE","FseDGT","jsx","clsx","Container","jsxs","Logo","i","Divider","link"],"mappings":";;;;;;;;;AAsBO,MAAMA,IAAS,CAAC;AAAA,EACrB,aAAAC;AAAA,EACA,SAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,WAAAC;AAAA,EACA,gBAAAC;AACF,MAAmB;AACjB,QAAMC,IAAgBH;AACtB,UAAQ,IAAIF,GAAaC,GAASC,GAAQC,CAAU;AAEpD,QAAMG,IAAsD;AAAA,IAC1DC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,EACF;AAGE,SAAAC,gBAAAA,MAAC,YAAO,WAAWC,EAAK,eAAeT,CAAS,GAC9C,iCAACU,GACC,EAAA,UAAA;AAAA,IAACC,gBAAAA,EAAAA,KAAA,WAAA,EAAQ,WAAU,+BAChB,UAAA;AAAA,MAAkBR,EAAA,IAAI,CAACS,GAAMC,4BAC3BD,GAAa,EAAA,WAAU,iBAAb,GAAAC,CAA8B,CAC1C;AAAA,MACAZ,2BACE,OAAI,EAAA,KAAKA,GAAgB,KAAI,mBAAkB,WAAU,iBAAiB,CAAA;AAAA,IAAA,GAE/E;AAAA,0BACCa,GAAQ,EAAA;AAAA,IACTH,gBAAAA,EAAAA,KAAC,WAAQ,EAAA,WAAU,6BACjB,UAAA;AAAA,MAACH,gBAAAA,EAAA,IAAA,MAAA,EAAG,WAAU,mBAAkB,UAAkB,sBAAA;AAAA,MAClDA,gBAAAA,EAAAA,IAAC,MAAG,EAAA,WAAU,wBAAuB,MAAK,QACvC,UAAaX,KAAA,gBAAAA,EAAA,IAAI,CAACkB,GAAMF,4BAEpB,MACC,EAAA,UAAAL,gBAAAA,EAAA;AAAA,QAACN;AAAA,QAAA;AAAA,UACC,MAAMa,EAAK;AAAA,UACX,QAAQA,EAAK,UAAU;AAAA,UACvB,WAAU;AAAA,UACV,cAAY,oBAAoBA,EAAK,KAAK;AAAA,UAC1C,KACEA,EAAK,WAAW,WACZ,wBACA;AAAA,UAGL,UAAKA,EAAA;AAAA,QAAA;AAAA,WAZDF,CAcT,IAGN;AAAA,MACCL,gBAAAA,EAAA,IAAA,QAAA,EAAK,WAAW,0CACd,UACHV,EAAA,CAAA;AAAA,IAAA,EACF,CAAA;AAAA,EAAA,EAAA,CACF,EACF,CAAA;AAEJ;"}
|
package/dist/index.es160.js
CHANGED
package/dist/index.es161.js
CHANGED
@@ -3,7 +3,7 @@ import { Button as m } from "./index.es25.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.es140.js";
|
6
|
-
import { useFocusTrap as N } from "./index.
|
6
|
+
import { useFocusTrap as N } from "./index.es247.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.es168.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.
|
6
|
-
import { usePrevious as A } from "./index.
|
7
|
-
import { useSize as B } from "./index.
|
8
|
-
import { Presence as H } from "./index.
|
9
|
-
import { Primitive as j } from "./index.
|
2
|
+
import { useComposedRefs as N } from "./index.es241.js";
|
3
|
+
import { createContextScope as M } from "./index.es242.js";
|
4
|
+
import { composeEventHandlers as S } from "./index.es240.js";
|
5
|
+
import { useControllableState as O } from "./index.es243.js";
|
6
|
+
import { usePrevious as A } from "./index.es264.js";
|
7
|
+
import { useSize as B } from "./index.es265.js";
|
8
|
+
import { Presence as H } from "./index.es259.js";
|
9
|
+
import { Primitive as j } from "./index.es244.js";
|
10
10
|
import { j as f } from "./index.es139.js";
|
11
11
|
var R = "Checkbox", [K, Y] = M(R), [L, q] = K(R), I = n.forwardRef(
|
12
12
|
(e, l) => {
|
package/dist/index.es177.js
CHANGED
package/dist/index.es179.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 L, createContext as $ } from "./index.
|
5
|
-
import { useId as x } from "./index.
|
6
|
-
import { useControllableState as B } from "./index.
|
7
|
-
import { DismissableLayer as H } from "./index.
|
8
|
-
import { FocusScope as V } from "./index.
|
9
|
-
import { Portal as q } from "./index.
|
10
|
-
import { Presence as R } from "./index.
|
11
|
-
import { Primitive as m } from "./index.
|
12
|
-
import { useFocusGuards as K } from "./index.
|
13
|
-
import U from "./index.
|
14
|
-
import { hideOthers as Y } from "./index.
|
15
|
-
import { Slot as Z } from "./index.
|
2
|
+
import { composeEventHandlers as p } from "./index.es240.js";
|
3
|
+
import { useComposedRefs as C } from "./index.es241.js";
|
4
|
+
import { createContextScope as L, createContext as $ } from "./index.es242.js";
|
5
|
+
import { useId as x } from "./index.es246.js";
|
6
|
+
import { useControllableState as B } from "./index.es243.js";
|
7
|
+
import { DismissableLayer as H } from "./index.es254.js";
|
8
|
+
import { FocusScope as V } from "./index.es256.js";
|
9
|
+
import { Portal as q } from "./index.es258.js";
|
10
|
+
import { Presence as R } from "./index.es259.js";
|
11
|
+
import { Primitive as m } from "./index.es244.js";
|
12
|
+
import { useFocusGuards as K } from "./index.es255.js";
|
13
|
+
import U from "./index.es262.js";
|
14
|
+
import { hideOthers as Y } from "./index.es261.js";
|
15
|
+
import { Slot as Z } from "./index.es251.js";
|
16
16
|
import { j as i } from "./index.es139.js";
|
17
17
|
var _ = "Dialog", [P, _e] = L(_), [z, u] = P(_), y = (e) => {
|
18
18
|
const {
|
package/dist/index.es186.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es139.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
|
3
3
|
const s = ({ children: o }) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
|
4
4
|
export {
|
5
5
|
s as ConsentModalFooter
|
package/dist/index.es191.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es139.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
|
3
3
|
const s = ({ children: o }) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
|
4
4
|
export {
|
5
5
|
s as DoctorModalFooter
|
package/dist/index.es198.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es139.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
|
3
3
|
const s = ({
|
4
4
|
children: o
|
5
5
|
}) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
|
package/dist/index.es204.js
CHANGED
package/dist/index.es205.js
CHANGED
package/dist/index.es206.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.
|
6
|
-
import { usePrevious as M } from "./index.
|
7
|
-
import { useSize as N } from "./index.
|
8
|
-
import { Primitive as w } from "./index.
|
2
|
+
import { composeEventHandlers as T } from "./index.es240.js";
|
3
|
+
import { useComposedRefs as _ } from "./index.es241.js";
|
4
|
+
import { createContextScope as H } from "./index.es242.js";
|
5
|
+
import { useControllableState as I } from "./index.es243.js";
|
6
|
+
import { usePrevious as M } from "./index.es264.js";
|
7
|
+
import { useSize as N } from "./index.es265.js";
|
8
|
+
import { Primitive as w } from "./index.es244.js";
|
9
9
|
import { j as p } from "./index.es139.js";
|
10
10
|
var S = "Switch", [B, J] = H(S), [q, z] = B(S), C = s.forwardRef(
|
11
11
|
(e, n) => {
|
package/dist/index.es22.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as e } from "./index.es139.js";
|
2
2
|
import { Root as i, Trigger as c, Portal as m, Content as d, Group as u, Item as x } from "./index.es157.js";
|
3
3
|
import { clsx as o } from "./index.es140.js";
|
4
|
-
import { createColorClasses as h } from "./index.
|
4
|
+
import { createColorClasses as h } from "./index.es141.js";
|
5
5
|
import './components/ui/Dropdown/Dropdown.css';/* empty css */
|
6
6
|
import { ArrowDown as p } from "./index.es77.js";
|
7
7
|
import { Row as w } from "./index.es9.js";
|
package/dist/index.es235.js
CHANGED
package/dist/index.es236.js
CHANGED
package/dist/index.es237.js
CHANGED
@@ -1,10 +1,5 @@
|
|
1
|
-
|
2
|
-
return function(s) {
|
3
|
-
if (f == null || f(s), p === !1 || !s.defaultPrevented)
|
4
|
-
return c == null ? void 0 : c(s);
|
5
|
-
};
|
6
|
-
}
|
1
|
+
var r = {};
|
7
2
|
export {
|
8
|
-
|
3
|
+
r as __exports
|
9
4
|
};
|
10
5
|
//# sourceMappingURL=index.es237.js.map
|
package/dist/index.es237.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es237.js","sources":[
|
1
|
+
{"version":3,"file":"index.es237.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.es238.js
CHANGED
@@ -1,30 +1,5 @@
|
|
1
|
-
|
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);
|
25
|
-
}
|
1
|
+
var e = {};
|
26
2
|
export {
|
27
|
-
|
28
|
-
s as useComposedRefs
|
3
|
+
e as __exports
|
29
4
|
};
|
30
5
|
//# sourceMappingURL=index.es238.js.map
|
package/dist/index.es238.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es238.js","sources":[
|
1
|
+
{"version":3,"file":"index.es238.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.es240.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.es240.js.map
|
package/dist/index.es240.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es240.js","sources":["../node_modules/@radix-ui/
|
1
|
+
{"version":3,"file":"index.es240.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.es241.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(a, { ...m, ref: e });
|
26
|
-
});
|
27
|
-
return t.displayName = `Primitive.${i}`, { ...r, [i]: t };
|
28
|
-
}, {});
|
29
|
-
function h(r, i) {
|
30
|
-
r && p.flushSync(() => r.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.es241.js.map
|
package/dist/index.es241.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es241.js","sources":["../node_modules/@radix-ui/react-
|
1
|
+
{"version":3,"file":"index.es241.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/composeRefs.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]}
|