@anoki/fse-ui 1.0.352 → 1.0.353
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/navigations/Footer/Footer.css +1 -1
- 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.cjs143.js +2 -0
- package/dist/index.cjs143.js.map +1 -0
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs157.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.cjs18.js.map +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.cjs239.js +2 -0
- package/dist/index.cjs239.js.map +1 -0
- 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 +1 -1
- package/dist/index.cjs244.js.map +1 -1
- package/dist/index.cjs248.js +2 -0
- package/dist/index.cjs248.js.map +1 -0
- package/dist/index.cjs249.js +2 -0
- package/dist/index.cjs249.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.cjs266.js → index.cjs280.js} +2 -2
- package/dist/{index.cjs266.js.map → index.cjs280.js.map} +1 -1
- package/dist/index.cjs281.js +1 -1
- package/dist/index.cjs281.js.map +1 -1
- package/dist/index.cjs282.js +1 -1
- package/dist/index.cjs282.js.map +1 -1
- package/dist/index.cjs283.js +1 -1
- package/dist/index.cjs283.js.map +1 -1
- package/dist/index.cjs284.js +1 -4
- 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.cjs289.js +2 -0
- package/dist/index.cjs289.js.map +1 -0
- package/dist/index.cjs290.js +5 -0
- package/dist/index.cjs290.js.map +1 -0
- package/dist/index.cjs291.js +2 -0
- package/dist/index.cjs291.js.map +1 -0
- package/dist/index.cjs292.js +2 -0
- package/dist/index.cjs292.js.map +1 -0
- package/dist/index.cjs293.js +2 -0
- package/dist/index.cjs293.js.map +1 -0
- package/dist/index.cjs294.js +2 -0
- package/dist/index.cjs294.js.map +1 -0
- package/dist/index.cjs295.js +1 -38
- package/dist/index.cjs295.js.map +1 -1
- package/dist/index.cjs296.js +38 -1
- package/dist/index.cjs296.js.map +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs297.js.map +1 -1
- package/dist/index.cjs298.js +1 -1
- package/dist/index.cjs298.js.map +1 -1
- package/dist/index.cjs299.js +1 -1
- package/dist/index.cjs299.js.map +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.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 +27 -2
- package/dist/index.es141.js.map +1 -1
- package/dist/index.es143.js +5 -0
- package/dist/index.es143.js.map +1 -0
- package/dist/index.es151.js +1 -1
- package/dist/index.es157.js +7 -7
- package/dist/index.es16.js +8 -1
- 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.es18.js +3 -1
- package/dist/index.es18.js.map +1 -1
- 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 +7 -2
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es238.js +27 -2
- package/dist/index.es238.js.map +1 -1
- package/dist/index.es239.js +71 -0
- package/dist/index.es239.js.map +1 -0
- package/dist/index.es240.js +29 -6
- package/dist/index.es240.js.map +1 -1
- package/dist/index.es241.js +32 -26
- package/dist/index.es241.js.map +1 -1
- package/dist/index.es242.js +617 -63
- package/dist/index.es242.js.map +1 -1
- package/dist/index.es243.js +10 -29
- package/dist/index.es243.js.map +1 -1
- package/dist/index.es244.js +15 -33
- package/dist/index.es244.js.map +1 -1
- package/dist/index.es248.js +9 -0
- package/dist/index.es248.js.map +1 -0
- package/dist/index.es249.js +28 -0
- package/dist/index.es249.js.map +1 -0
- package/dist/index.es25.js +1 -1
- package/dist/index.es250.js +68 -10
- package/dist/index.es250.js.map +1 -1
- package/dist/index.es251.js +2 -42
- package/dist/index.es251.js.map +1 -1
- package/dist/index.es252.js +2 -46
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es253.js +10 -7
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es254.js +37 -120
- package/dist/index.es254.js.map +1 -1
- package/dist/index.es255.js +45 -14
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +7 -134
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +113 -206
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +14 -13
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +126 -60
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es260.js +203 -163
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es261.js +14 -50
- package/dist/index.es261.js.map +1 -1
- package/dist/index.es262.js +178 -9
- package/dist/index.es262.js.map +1 -1
- package/dist/index.es263.js +49 -3
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +9 -6
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es265.js +4 -25
- package/dist/index.es265.js.map +1 -1
- package/dist/{index.es266.js → index.es280.js} +2 -2
- package/dist/{index.es266.js.map → index.es280.js.map} +1 -1
- package/dist/index.es281.js +205 -5
- package/dist/index.es281.js.map +1 -1
- package/dist/index.es282.js +22 -3
- package/dist/index.es282.js.map +1 -1
- package/dist/index.es283.js +389 -20
- package/dist/index.es283.js.map +1 -1
- package/dist/index.es284.js +22 -107
- package/dist/index.es284.js.map +1 -1
- package/dist/index.es285.js +28 -15
- package/dist/index.es285.js.map +1 -1
- package/dist/index.es286.js +5 -523
- package/dist/index.es286.js.map +1 -1
- package/dist/index.es287.js +5 -127
- package/dist/index.es287.js.map +1 -1
- package/dist/index.es288.js +3 -129
- package/dist/index.es288.js.map +1 -1
- package/dist/index.es289.js +27 -0
- package/dist/index.es289.js.map +1 -0
- package/dist/index.es290.js +113 -0
- package/dist/index.es290.js.map +1 -0
- package/dist/index.es291.js +19 -0
- package/dist/index.es291.js.map +1 -0
- package/dist/index.es292.js +526 -0
- package/dist/index.es292.js.map +1 -0
- package/dist/index.es293.js +130 -0
- package/dist/index.es293.js.map +1 -0
- package/dist/index.es294.js +132 -0
- package/dist/index.es294.js.map +1 -0
- package/dist/index.es295.js +65 -69
- package/dist/index.es295.js.map +1 -1
- package/dist/index.es296.js +68 -8
- package/dist/index.es296.js.map +1 -1
- package/dist/index.es297.js +9 -14
- package/dist/index.es297.js.map +1 -1
- package/dist/index.es298.js +14 -62
- package/dist/index.es298.js.map +1 -1
- package/dist/index.es299.js +61 -64
- package/dist/index.es299.js.map +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.cjs142.js +0 -2
- package/dist/index.cjs142.js.map +0 -1
- package/dist/index.cjs245.js +0 -2
- package/dist/index.cjs245.js.map +0 -1
- package/dist/index.cjs246.js +0 -2
- package/dist/index.cjs246.js.map +0 -1
- package/dist/index.cjs247.js +0 -2
- package/dist/index.cjs247.js.map +0 -1
- package/dist/index.cjs267.js +0 -2
- package/dist/index.cjs267.js.map +0 -1
- package/dist/index.cjs268.js +0 -2
- package/dist/index.cjs268.js.map +0 -1
- package/dist/index.cjs269.js +0 -2
- package/dist/index.cjs269.js.map +0 -1
- package/dist/index.cjs276.js +0 -2
- package/dist/index.cjs276.js.map +0 -1
- package/dist/index.cjs277.js +0 -2
- package/dist/index.cjs277.js.map +0 -1
- package/dist/index.cjs278.js +0 -2
- package/dist/index.cjs278.js.map +0 -1
- package/dist/index.es142.js +0 -30
- package/dist/index.es142.js.map +0 -1
- package/dist/index.es245.js +0 -625
- package/dist/index.es245.js.map +0 -1
- package/dist/index.es246.js +0 -14
- package/dist/index.es246.js.map +0 -1
- package/dist/index.es247.js +0 -18
- package/dist/index.es247.js.map +0 -1
- package/dist/index.es267.js +0 -208
- package/dist/index.es267.js.map +0 -1
- package/dist/index.es268.js +0 -25
- package/dist/index.es268.js.map +0 -1
- package/dist/index.es269.js +0 -396
- package/dist/index.es269.js.map +0 -1
- package/dist/index.es276.js +0 -28
- package/dist/index.es276.js.map +0 -1
- package/dist/index.es277.js +0 -32
- package/dist/index.es277.js.map +0 -1
- package/dist/index.es278.js +0 -8
- package/dist/index.es278.js.map +0 -1
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
package/dist/index.es141.js
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
const
|
|
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);
|
|
2
27
|
export {
|
|
3
|
-
|
|
28
|
+
a as createSpacingClasses
|
|
4
29
|
};
|
|
5
30
|
//# 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/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;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es143.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;"}
|
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.es143.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.es237.js";
|
|
3
|
+
import { composeRefs as E } from "./index.es238.js";
|
|
4
|
+
import { createContextScope as S } from "./index.es239.js";
|
|
5
|
+
import { useControllableState as P } from "./index.es240.js";
|
|
6
|
+
import { Primitive as y } from "./index.es241.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.es242.js";
|
|
8
|
+
import { useId as g } from "./index.es243.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
|
@@ -25,7 +25,14 @@ const E = ({
|
|
|
25
25
|
return /* @__PURE__ */ e.jsx("footer", { className: f("bg-slate-20", l), children: /* @__PURE__ */ e.jsxs(c, { children: [
|
|
26
26
|
/* @__PURE__ */ e.jsxs("section", { className: "ui-footer-institution-logos", children: [
|
|
27
27
|
n.map((r, s) => /* @__PURE__ */ e.jsx(r, { className: "ui-footer-logo" }, s)),
|
|
28
|
-
a && /* @__PURE__ */ e.jsx(
|
|
28
|
+
a && /* @__PURE__ */ e.jsx(
|
|
29
|
+
"img",
|
|
30
|
+
{
|
|
31
|
+
src: a,
|
|
32
|
+
alt: "Additional Logo",
|
|
33
|
+
className: "ui-footer-logo"
|
|
34
|
+
}
|
|
35
|
+
)
|
|
29
36
|
] }),
|
|
30
37
|
/* @__PURE__ */ e.jsx(x, {}),
|
|
31
38
|
/* @__PURE__ */ e.jsxs("section", { className: "ui-footer-links-container", children: [
|
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 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
|
|
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\n src={additionalLogo}\n alt=\"Additional Logo\"\n className=\"ui-footer-logo\"\n />\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,CAAS;AAEnD,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,KACCO,gBAAAA,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,KAAKP;AAAA,UACL,KAAI;AAAA,UACJ,WAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IACZ,GAEJ;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.es244.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.es238.js";
|
|
3
|
+
import { createContextScope as M } from "./index.es239.js";
|
|
4
|
+
import { composeEventHandlers as S } from "./index.es237.js";
|
|
5
|
+
import { useControllableState as O } from "./index.es240.js";
|
|
6
|
+
import { usePrevious as A } from "./index.es248.js";
|
|
7
|
+
import { useSize as B } from "./index.es249.js";
|
|
8
|
+
import { Presence as H } from "./index.es250.js";
|
|
9
|
+
import { Primitive as j } from "./index.es241.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.es237.js";
|
|
3
|
+
import { useComposedRefs as C } from "./index.es238.js";
|
|
4
|
+
import { createContextScope as L, createContext as $ } from "./index.es239.js";
|
|
5
|
+
import { useId as x } from "./index.es243.js";
|
|
6
|
+
import { useControllableState as B } from "./index.es240.js";
|
|
7
|
+
import { DismissableLayer as H } from "./index.es257.js";
|
|
8
|
+
import { FocusScope as V } from "./index.es259.js";
|
|
9
|
+
import { Portal as q } from "./index.es261.js";
|
|
10
|
+
import { Presence as R } from "./index.es250.js";
|
|
11
|
+
import { Primitive as m } from "./index.es241.js";
|
|
12
|
+
import { useFocusGuards as K } from "./index.es258.js";
|
|
13
|
+
import U from "./index.es264.js";
|
|
14
|
+
import { hideOthers as Y } from "./index.es263.js";
|
|
15
|
+
import { Slot as Z } from "./index.es254.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.es18.js
CHANGED
package/dist/index.es18.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es18.js","sources":["../src/components/navigations/HeaderPostLogin/index.tsx"],"sourcesContent":["import { LOGOS, Region } from \"../Header\";\nimport clsx from \"clsx\";\nimport { Divider } from \"@/components/ui/Divider\";\nimport \"./HeaderPostLogin.scss\";\nimport { ComponentType, ReactNode } from \"react\";\nimport { Col, Row } from \"@/components\";\n\ntype NavigationItem = {\n label: string;\n href: string;\n icon?: ComponentType<any>;\n active?: boolean;\n isNewTab?: boolean;\n};\n\nexport type HeaderPostLoginProps = {\n shortTitle: ReactNode;\n region: Region;\n navigationItems: NavigationItem[];\n loginLink?: string;\n asLink?: \"a\" | ComponentType<any>;\n generalClassName?: string;\n navItemsClassName?: string;\n};\n\nexport const HeaderPostLogin = ({\n shortTitle,\n region,\n asLink = \"a\",\n navigationItems,\n generalClassName,\n navItemsClassName,\n}: HeaderPostLoginProps) => {\n const LinkComponent = asLink;\n const NationalIcon = LOGOS[\"nazionale\"];\n const RegionIcon = LOGOS[region];\n\n return (\n <nav
|
|
1
|
+
{"version":3,"file":"index.es18.js","sources":["../src/components/navigations/HeaderPostLogin/index.tsx"],"sourcesContent":["import { LOGOS, Region } from \"../Header\";\nimport clsx from \"clsx\";\nimport { Divider } from \"@/components/ui/Divider\";\nimport \"./HeaderPostLogin.scss\";\nimport { ComponentType, ReactNode } from \"react\";\nimport { Col, Row } from \"@/components\";\n\ntype NavigationItem = {\n label: string;\n href: string;\n icon?: ComponentType<any>;\n active?: boolean;\n isNewTab?: boolean;\n};\n\nexport type HeaderPostLoginProps = {\n shortTitle: ReactNode;\n region: Region;\n navigationItems: NavigationItem[];\n loginLink?: string;\n asLink?: \"a\" | ComponentType<any>;\n generalClassName?: string;\n navItemsClassName?: string;\n};\n\nexport const HeaderPostLogin = ({\n shortTitle,\n region,\n asLink = \"a\",\n navigationItems,\n generalClassName,\n navItemsClassName,\n}: HeaderPostLoginProps) => {\n const LinkComponent = asLink;\n const NationalIcon = LOGOS[\"nazionale\"];\n const RegionIcon = LOGOS[region];\n\n return (\n <nav\n aria-label=\"Menu di navigazione\"\n className={clsx(\"ui-hpl-menu\", generalClassName)}\n style={\n {\n \"--navbar-elements\": navigationItems.length ?? 0,\n } as React.CSSProperties\n }\n >\n <Col\n pt={\"x80\"}\n px={\"x40\"}\n gap={\"x16\"}\n justifyContent={\"center\"}\n className=\"position-relative\"\n >\n <Row gap={\"x24\"} alignItems={\"center\"} justifyContent={\"center\"}>\n <NationalIcon width={27} height={44} />\n <Divider bg=\"border-divider\" direction=\"vertical\" />\n <RegionIcon width={44} height={44} />\n </Row>\n <h3 className=\"fs-custom fw-normal text-slate-20 text-align-center\">\n {shortTitle}\n </h3>\n </Col>\n <div className=\"p-x40\">\n <Divider bg=\"border-divider\" />\n </div>\n <Col\n as={\"ul\"}\n gap={\"x12\"}\n className={clsx(\"list-style-none ui-hpl-list\", navItemsClassName)}\n role=\"list\"\n >\n {navigationItems.map((item, index) => {\n const IconComponent = item?.icon;\n return (\n <li\n key={index}\n className={clsx(\"ui-hpl-list-item\", item.active && \"active\")}\n >\n <LinkComponent\n href={item.href}\n aria-label={`Vai alla pagina ${item.label}`}\n className={clsx(\n \"text-decoration-none text-primary fs-custom base-row gap-x16 align-items-center pr-x8\",\n item.active ? \"fw-bold\" : \"fw-normal\",\n )}\n target={item.isNewTab ? \"_blank\" : undefined}\n rel={item.isNewTab ? \"noopener noreferrer\" : undefined}\n >\n {IconComponent && (\n <IconComponent color=\"primary\" filled={item.active} />\n )}\n <span className=\"ui-hpl-text\">{item.label}</span>\n {item.active && <span className=\"visually-hidden\">Attivo</span>}\n </LinkComponent>\n </li>\n );\n })}\n </Col>\n </nav>\n );\n};\n"],"names":["HeaderPostLogin","shortTitle","region","asLink","navigationItems","generalClassName","navItemsClassName","LinkComponent","NationalIcon","LOGOS","RegionIcon","jsxs","clsx","Col","Row","jsx","Divider","item","index","IconComponent"],"mappings":";;;;;;;AAyBO,MAAMA,IAAkB,CAAC;AAAA,EAC9B,YAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,iBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,mBAAAC;AACF,MAA4B;AAC1B,QAAMC,IAAgBJ,GAChBK,IAAeC,EAAM,WACrBC,IAAaD,EAAMP,CAAM;AAG7B,SAAAS,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,cAAW;AAAA,MACX,WAAWC,EAAK,eAAeP,CAAgB;AAAA,MAC/C,OACE;AAAA,QACE,qBAAqBD,EAAgB,UAAU;AAAA,MACjD;AAAA,MAGF,UAAA;AAAA,QAAAO,gBAAAA,EAAA;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,IAAI;AAAA,YACJ,IAAI;AAAA,YACJ,KAAK;AAAA,YACL,gBAAgB;AAAA,YAChB,WAAU;AAAA,YAEV,UAAA;AAAA,cAAAF,gBAAAA,OAACG,KAAI,KAAK,OAAO,YAAY,UAAU,gBAAgB,UACrD,UAAA;AAAA,gBAAAC,gBAAAA,EAAA,IAACP,GAAa,EAAA,OAAO,IAAI,QAAQ,IAAI;AAAA,gBACpCO,gBAAAA,EAAA,IAAAC,GAAA,EAAQ,IAAG,kBAAiB,WAAU,YAAW;AAAA,gBACjDD,gBAAAA,EAAA,IAAAL,GAAA,EAAW,OAAO,IAAI,QAAQ,GAAI,CAAA;AAAA,cAAA,GACrC;AAAA,cACCK,gBAAAA,EAAA,IAAA,MAAA,EAAG,WAAU,uDACX,UACHd,EAAA,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,QACAc,gBAAAA,EAAAA,IAAC,SAAI,WAAU,SACb,gCAACC,GAAQ,EAAA,IAAG,kBAAiB,EAC/B,CAAA;AAAA,QACAD,gBAAAA,EAAA;AAAA,UAACF;AAAA,UAAA;AAAA,YACC,IAAI;AAAA,YACJ,KAAK;AAAA,YACL,WAAWD,EAAK,+BAA+BN,CAAiB;AAAA,YAChE,MAAK;AAAA,YAEJ,UAAgBF,EAAA,IAAI,CAACa,GAAMC,MAAU;AACpC,oBAAMC,IAAgBF,KAAA,gBAAAA,EAAM;AAE1B,qBAAAF,gBAAAA,EAAA;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBAEC,WAAWH,EAAK,oBAAoBK,EAAK,UAAU,QAAQ;AAAA,kBAE3D,UAAAN,gBAAAA,EAAA;AAAA,oBAACJ;AAAA,oBAAA;AAAA,sBACC,MAAMU,EAAK;AAAA,sBACX,cAAY,mBAAmBA,EAAK,KAAK;AAAA,sBACzC,WAAWL;AAAA,wBACT;AAAA,wBACAK,EAAK,SAAS,YAAY;AAAA,sBAC5B;AAAA,sBACA,QAAQA,EAAK,WAAW,WAAW;AAAA,sBACnC,KAAKA,EAAK,WAAW,wBAAwB;AAAA,sBAE5C,UAAA;AAAA,wBAAAE,2BACEA,GAAc,EAAA,OAAM,WAAU,QAAQF,EAAK,QAAQ;AAAA,wBAErDF,gBAAAA,EAAA,IAAA,QAAA,EAAK,WAAU,eAAe,YAAK,OAAM;AAAA,wBACzCE,EAAK,UAAUF,gBAAAA,EAAAA,IAAC,QAAK,EAAA,WAAU,mBAAkB,UAAM,SAAA,CAAA;AAAA,sBAAA;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBAC1D;AAAA,gBAlBKG;AAAA,cAmBP;AAAA,YAEH,CAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EACF;AAEJ;"}
|
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/DoctorModal/DoctorModalFooter/DoctorModalFooter.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/DoctorModal/DoctorModalFooter/DoctorModalFooter.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/DoctorModal/DoctorModalFooter/DoctorModalFooter.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.es237.js";
|
|
3
|
+
import { useComposedRefs as _ } from "./index.es238.js";
|
|
4
|
+
import { createContextScope as H } from "./index.es239.js";
|
|
5
|
+
import { useControllableState as I } from "./index.es240.js";
|
|
6
|
+
import { usePrevious as M } from "./index.es248.js";
|
|
7
|
+
import { useSize as N } from "./index.es249.js";
|
|
8
|
+
import { Primitive as w } from "./index.es241.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.es143.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,5 +1,10 @@
|
|
|
1
|
-
|
|
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
|
+
};
|
|
6
|
+
}
|
|
2
7
|
export {
|
|
3
|
-
|
|
8
|
+
h as composeEventHandlers
|
|
4
9
|
};
|
|
5
10
|
//# sourceMappingURL=index.es237.js.map
|
package/dist/index.es237.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es237.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index.es237.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.es238.js
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
|
|
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);
|
|
25
|
+
}
|
|
2
26
|
export {
|
|
3
|
-
|
|
27
|
+
i as composeRefs,
|
|
28
|
+
s as useComposedRefs
|
|
4
29
|
};
|
|
5
30
|
//# sourceMappingURL=index.es238.js.map
|
package/dist/index.es238.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es238.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index.es238.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]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { j as h } from "./index.es139.js";
|
|
3
|
+
function j(e, c) {
|
|
4
|
+
const o = u.createContext(c), a = (r) => {
|
|
5
|
+
const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
|
|
6
|
+
return /* @__PURE__ */ h.jsx(o.Provider, { value: s, children: t });
|
|
7
|
+
};
|
|
8
|
+
a.displayName = e + "Provider";
|
|
9
|
+
function i(r) {
|
|
10
|
+
const t = u.useContext(o);
|
|
11
|
+
if (t) return t;
|
|
12
|
+
if (c !== void 0) return c;
|
|
13
|
+
throw new Error(`\`${r}\` must be used within \`${e}\``);
|
|
14
|
+
}
|
|
15
|
+
return [a, i];
|
|
16
|
+
}
|
|
17
|
+
function w(e, c = []) {
|
|
18
|
+
let o = [];
|
|
19
|
+
function a(r, t) {
|
|
20
|
+
const n = u.createContext(t), s = o.length;
|
|
21
|
+
o = [...o, t];
|
|
22
|
+
const d = (m) => {
|
|
23
|
+
var S;
|
|
24
|
+
const { scope: x, children: C, ...p } = m, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => p, Object.values(p));
|
|
25
|
+
return /* @__PURE__ */ h.jsx(v.Provider, { value: P, children: C });
|
|
26
|
+
};
|
|
27
|
+
d.displayName = r + "Provider";
|
|
28
|
+
function f(m, x) {
|
|
29
|
+
var v;
|
|
30
|
+
const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, p = u.useContext(C);
|
|
31
|
+
if (p) return p;
|
|
32
|
+
if (t !== void 0) return t;
|
|
33
|
+
throw new Error(`\`${m}\` must be used within \`${r}\``);
|
|
34
|
+
}
|
|
35
|
+
return [d, f];
|
|
36
|
+
}
|
|
37
|
+
const i = () => {
|
|
38
|
+
const r = o.map((t) => u.createContext(t));
|
|
39
|
+
return function(n) {
|
|
40
|
+
const s = (n == null ? void 0 : n[e]) || r;
|
|
41
|
+
return u.useMemo(
|
|
42
|
+
() => ({ [`__scope${e}`]: { ...n, [e]: s } }),
|
|
43
|
+
[n, s]
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
return i.scopeName = e, [a, l(i, ...c)];
|
|
48
|
+
}
|
|
49
|
+
function l(...e) {
|
|
50
|
+
const c = e[0];
|
|
51
|
+
if (e.length === 1) return c;
|
|
52
|
+
const o = () => {
|
|
53
|
+
const a = e.map((i) => ({
|
|
54
|
+
useScope: i(),
|
|
55
|
+
scopeName: i.scopeName
|
|
56
|
+
}));
|
|
57
|
+
return function(r) {
|
|
58
|
+
const t = a.reduce((n, { useScope: s, scopeName: d }) => {
|
|
59
|
+
const m = s(r)[`__scope${d}`];
|
|
60
|
+
return { ...n, ...m };
|
|
61
|
+
}, {});
|
|
62
|
+
return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
return o.scopeName = c.scopeName, o;
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
j as createContext,
|
|
69
|
+
w as createContextScope
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=index.es239.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es239.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/createContext.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":";;AAGA,SAASA,EAAeC,GAAmBC,GAAgB;AACzD,QAAMC,IAAUC,EAAM,cAAcF,CAAc,GAC5CG,IAAW,CAACC,MAAU;AAC1B,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAO,IAAKF,GAC3BG,IAAQL,EAAM,QAAQ,MAAMI,GAAS,OAAO,OAAOA,CAAO,CAAC;AACjE,WAAuBE,gBAAAA,EAAAA,IAAIP,EAAQ,UAAU,EAAE,OAAAM,GAAO,UAAAF,EAAQ,CAAE;AAAA,EACjE;AACD,EAAAF,EAAS,cAAcJ,IAAoB;AAC3C,WAASU,EAAYC,GAAc;AACjC,UAAMJ,IAAUJ,EAAM,WAAWD,CAAO;AACxC,QAAIK,EAAS,QAAOA;AACpB,QAAIN,MAAmB,OAAQ,QAAOA;AACtC,UAAM,IAAI,MAAM,KAAKU,CAAY,4BAA4BX,CAAiB,IAAI;AAAA,EACtF;AACE,SAAO,CAACI,GAAUM,CAAW;AAC/B;AACA,SAASE,EAAmBC,GAAWC,IAAyB,IAAI;AAClE,MAAIC,IAAkB,CAAE;AACxB,WAASC,EAAehB,GAAmBC,GAAgB;AACzD,UAAMgB,IAAcd,EAAM,cAAcF,CAAc,GAChDiB,IAAQH,EAAgB;AAC9B,IAAAA,IAAkB,CAAC,GAAGA,GAAiBd,CAAc;AACrD,UAAMG,IAAW,CAACC,MAAU;;AAC1B,YAAM,EAAE,OAAAc,GAAO,UAAAb,GAAU,GAAGC,EAAS,IAAGF,GAClCH,MAAUkB,IAAAD,KAAA,gBAAAA,EAAQN,OAAR,gBAAAO,EAAqBF,OAAUD,GACzCT,IAAQL,EAAM,QAAQ,MAAMI,GAAS,OAAO,OAAOA,CAAO,CAAC;AACjE,aAAuBE,gBAAAA,EAAAA,IAAIP,EAAQ,UAAU,EAAE,OAAAM,GAAO,UAAAF,EAAQ,CAAE;AAAA,IACjE;AACD,IAAAF,EAAS,cAAcJ,IAAoB;AAC3C,aAASU,EAAYC,GAAcQ,GAAO;;AACxC,YAAMjB,MAAUkB,IAAAD,KAAA,gBAAAA,EAAQN,OAAR,gBAAAO,EAAqBF,OAAUD,GACzCV,IAAUJ,EAAM,WAAWD,CAAO;AACxC,UAAIK,EAAS,QAAOA;AACpB,UAAIN,MAAmB,OAAQ,QAAOA;AACtC,YAAM,IAAI,MAAM,KAAKU,CAAY,4BAA4BX,CAAiB,IAAI;AAAA,IACxF;AACI,WAAO,CAACI,GAAUM,CAAW;AAAA,EACjC;AACE,QAAMW,IAAc,MAAM;AACxB,UAAMC,IAAgBP,EAAgB,IAAI,CAACd,MAClCE,EAAM,cAAcF,CAAc,CAC1C;AACD,WAAO,SAAkBkB,GAAO;AAC9B,YAAMI,KAAWJ,KAAA,gBAAAA,EAAQN,OAAcS;AACvC,aAAOnB,EAAM;AAAA,QACX,OAAO,EAAE,CAAC,UAAUU,CAAS,EAAE,GAAG,EAAE,GAAGM,GAAO,CAACN,CAAS,GAAGU,EAAQ;QACnE,CAACJ,GAAOI,CAAQ;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AACD,SAAAF,EAAY,YAAYR,GACjB,CAACG,GAAgBQ,EAAqBH,GAAa,GAAGP,CAAsB,CAAC;AACtF;AACA,SAASU,KAAwBC,GAAQ;AACvC,QAAMC,IAAYD,EAAO,CAAC;AAC1B,MAAIA,EAAO,WAAW,EAAG,QAAOC;AAChC,QAAML,IAAc,MAAM;AACxB,UAAMM,IAAaF,EAAO,IAAI,CAACG,OAAkB;AAAA,MAC/C,UAAUA,EAAc;AAAA,MACxB,WAAWA,EAAa;AAAA,IAC9B,EAAM;AACF,WAAO,SAA2BC,GAAgB;AAChD,YAAMC,IAAaH,EAAW,OAAO,CAACI,GAAa,EAAE,UAAAC,GAAU,WAAAnB,QAAgB;AAE7E,cAAMoB,IADaD,EAASH,CAAc,EACV,UAAUhB,CAAS,EAAE;AACrD,eAAO,EAAE,GAAGkB,GAAa,GAAGE,EAAc;AAAA,MAC3C,GAAE,EAAE;AACL,aAAO9B,EAAM,QAAQ,OAAO,EAAE,CAAC,UAAUuB,EAAU,SAAS,EAAE,GAAGI,EAAU,IAAK,CAACA,CAAU,CAAC;AAAA,IAC7F;AAAA,EACF;AACD,SAAAT,EAAY,YAAYK,EAAU,WAC3BL;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es240.js
CHANGED
|
@@ -1,10 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { useCallbackRef as f } from "./index.es253.js";
|
|
3
|
+
function R({
|
|
4
|
+
prop: t,
|
|
5
|
+
defaultProp: r,
|
|
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;
|
|
6
29
|
}
|
|
7
30
|
export {
|
|
8
|
-
|
|
31
|
+
R as useControllableState
|
|
9
32
|
};
|
|
10
33
|
//# 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/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// packages/react/use-controllable-state/src/useControllableState.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n }\n}) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({ defaultProp, onChange });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const setter = nextValue;\n const value2 = typeof nextValue === \"function\" ? setter(prop) : nextValue;\n if (value2 !== prop) handleChange(value2);\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, handleChange]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const uncontrolledState = React.useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = React.useRef(value);\n const handleChange = useCallbackRef(onChange);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef, handleChange]);\n return uncontrolledState;\n}\nexport {\n useControllableState\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useControllableState","prop","defaultProp","onChange","uncontrolledProp","setUncontrolledProp","useUncontrolledState","isControlled","value","handleChange","useCallbackRef","setValue","React","nextValue","value2","uncontrolledState","prevValueRef"],"mappings":";;AAGA,SAASA,EAAqB;AAAA,EAC5B,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC,IAAW,MAAM;AAAA,EACnB;AACA,GAAG;AACD,QAAM,CAACC,GAAkBC,CAAmB,IAAIC,EAAqB,EAAE,aAAAJ,GAAa,UAAAC,GAAU,GACxFI,IAAeN,MAAS,QACxBO,IAAQD,IAAeN,IAAOG,GAC9BK,IAAeC,EAAeP,CAAQ,GACtCQ,IAAWC,EAAM;AAAA,IACrB,CAACC,MAAc;AACb,UAAIN,GAAc;AAEhB,cAAMO,IAAS,OAAOD,KAAc,aADrBA,EACyCZ,CAAI,IAAIY;AAChE,QAAIC,MAAWb,KAAMQ,EAAaK,CAAM;AAAA,MAChD;AACQ,QAAAT,EAAoBQ,CAAS;AAAA,IAEhC;AAAA,IACD,CAACN,GAAcN,GAAMI,GAAqBI,CAAY;AAAA,EACvD;AACD,SAAO,CAACD,GAAOG,CAAQ;AACzB;AACA,SAASL,EAAqB;AAAA,EAC5B,aAAAJ;AAAA,EACA,UAAAC;AACF,GAAG;AACD,QAAMY,IAAoBH,EAAM,SAASV,CAAW,GAC9C,CAACM,CAAK,IAAIO,GACVC,IAAeJ,EAAM,OAAOJ,CAAK,GACjCC,IAAeC,EAAeP,CAAQ;AAC5C,SAAAS,EAAM,UAAU,MAAM;AACpB,IAAII,EAAa,YAAYR,MAC3BC,EAAaD,CAAK,GAClBQ,EAAa,UAAUR;AAAA,EAE1B,GAAE,CAACA,GAAOQ,GAAcP,CAAY,CAAC,GAC/BM;AACT;","x_google_ignoreList":[0]}
|