@anoki/fse-ui 1.0.488 → 1.0.489
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/ActionBanner/ActionBanner.css +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.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.cjs120.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs127.js +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs131.js +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs139.js +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs189.js.map +1 -1
- package/dist/index.cjs190.js +2 -0
- package/dist/index.cjs190.js.map +1 -0
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs217.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs294.js +1 -1
- package/dist/index.cjs312.js +1 -1
- package/dist/index.cjs313.js +1 -1
- package/dist/index.cjs317.js +1 -1
- package/dist/index.cjs317.js.map +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs318.js.map +1 -1
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs320.js.map +1 -1
- package/dist/index.cjs323.js +1 -1
- package/dist/index.cjs323.js.map +1 -1
- package/dist/index.cjs324.js +2 -0
- package/dist/index.cjs324.js.map +1 -0
- package/dist/index.cjs325.js +1 -1
- package/dist/index.cjs325.js.map +1 -1
- package/dist/index.cjs326.js +2 -0
- package/dist/index.cjs326.js.map +1 -0
- package/dist/{index.cjs321.js → index.cjs327.js} +2 -2
- package/dist/{index.cjs321.js.map → index.cjs327.js.map} +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs328.js.map +1 -1
- package/dist/index.cjs329.js +1 -1
- package/dist/index.cjs329.js.map +1 -1
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs330.js.map +1 -1
- package/dist/index.cjs331.js +2 -0
- package/dist/index.cjs331.js.map +1 -0
- package/dist/index.cjs332.js +2 -0
- package/dist/index.cjs332.js.map +1 -0
- package/dist/index.cjs333.js +2 -0
- package/dist/index.cjs333.js.map +1 -0
- package/dist/index.cjs334.js +1 -1
- package/dist/index.cjs335.js +1 -1
- package/dist/index.cjs335.js.map +1 -1
- package/dist/index.cjs336.js +1 -1
- package/dist/index.cjs336.js.map +1 -1
- package/dist/index.cjs337.js +1 -1
- package/dist/index.cjs337.js.map +1 -1
- package/dist/index.cjs338.js +1 -1
- package/dist/index.cjs338.js.map +1 -1
- package/dist/index.cjs339.js +1 -1
- package/dist/index.cjs339.js.map +1 -1
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs340.js.map +1 -1
- package/dist/index.cjs341.js +2 -0
- package/dist/index.cjs341.js.map +1 -0
- package/dist/index.cjs342.js +2 -0
- package/dist/index.cjs342.js.map +1 -0
- package/dist/{index.cjs360.js → index.cjs343.js} +1 -1
- package/dist/{index.cjs360.js.map → index.cjs343.js.map} +1 -1
- package/dist/{index.cjs361.js → index.cjs344.js} +2 -2
- package/dist/{index.cjs361.js.map → index.cjs344.js.map} +1 -1
- package/dist/{index.cjs362.js → index.cjs345.js} +2 -2
- package/dist/{index.cjs362.js.map → index.cjs345.js.map} +1 -1
- package/dist/index.cjs346.js +2 -0
- package/dist/index.cjs346.js.map +1 -0
- package/dist/index.cjs347.js +2 -0
- package/dist/index.cjs347.js.map +1 -0
- package/dist/index.cjs348.js +2 -0
- package/dist/index.cjs348.js.map +1 -0
- package/dist/index.cjs349.js +1 -1
- package/dist/index.cjs349.js.map +1 -1
- package/dist/index.cjs350.js +1 -1
- package/dist/index.cjs350.js.map +1 -1
- package/dist/{index.cjs366.js → index.cjs351.js} +2 -2
- package/dist/{index.cjs366.js.map → index.cjs351.js.map} +1 -1
- package/dist/index.cjs352.js +2 -0
- package/dist/{index.cjs367.js.map → index.cjs352.js.map} +1 -1
- package/dist/{index.cjs368.js → index.cjs353.js} +1 -1
- package/dist/{index.cjs368.js.map → index.cjs353.js.map} +1 -1
- package/dist/{index.cjs369.js → index.cjs354.js} +1 -1
- package/dist/{index.cjs369.js.map → index.cjs354.js.map} +1 -1
- package/dist/index.cjs355.js +1 -1
- package/dist/index.cjs355.js.map +1 -1
- package/dist/index.cjs356.js +4 -1
- package/dist/index.cjs356.js.map +1 -1
- package/dist/index.cjs357.js +1 -1
- package/dist/index.cjs357.js.map +1 -1
- package/dist/index.cjs363.js +1 -1
- package/dist/index.cjs363.js.map +1 -1
- package/dist/index.cjs364.js +1 -1
- package/dist/index.cjs364.js.map +1 -1
- package/dist/index.cjs365.js +1 -1
- package/dist/index.cjs365.js.map +1 -1
- package/dist/index.cjs376.js +1 -1
- package/dist/index.cjs377.js +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs383.js +2 -0
- package/dist/index.cjs383.js.map +1 -0
- package/dist/index.cjs384.js +2 -0
- package/dist/index.cjs384.js.map +1 -0
- package/dist/index.cjs385.js +1 -1
- package/dist/index.cjs385.js.map +1 -1
- package/dist/index.cjs386.js +1 -1
- package/dist/index.cjs386.js.map +1 -1
- package/dist/index.cjs396.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.cjs8.js +1 -1
- package/dist/index.cjs87.js.map +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/index.es10.js +2 -2
- package/dist/index.es110.js +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es112.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.es120.js +1 -1
- package/dist/index.es121.js +1 -1
- package/dist/index.es122.js +1 -1
- package/dist/index.es123.js +1 -1
- package/dist/index.es124.js +1 -1
- package/dist/index.es125.js +1 -1
- package/dist/index.es126.js +1 -1
- package/dist/index.es127.js +1 -1
- package/dist/index.es128.js +1 -1
- package/dist/index.es129.js +1 -1
- package/dist/index.es130.js +1 -1
- package/dist/index.es131.js +1 -1
- package/dist/index.es134.js +1 -1
- package/dist/index.es135.js +1 -1
- package/dist/index.es136.js +1 -1
- package/dist/index.es138.js +1 -1
- package/dist/index.es139.js +1 -1
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +1 -1
- package/dist/index.es142.js +1 -1
- package/dist/index.es143.js +1 -1
- package/dist/index.es144.js +1 -1
- package/dist/index.es145.js +1 -1
- package/dist/index.es146.js +1 -1
- package/dist/index.es148.js +1 -1
- package/dist/index.es149.js +1 -1
- package/dist/index.es150.js +1 -1
- package/dist/index.es151.js +1 -1
- package/dist/index.es152.js +1 -1
- package/dist/index.es153.js +1 -1
- package/dist/index.es154.js +1 -1
- package/dist/index.es156.js +1 -1
- package/dist/index.es157.js +1 -1
- package/dist/index.es158.js +1 -1
- package/dist/index.es189.js +2 -27
- package/dist/index.es189.js.map +1 -1
- package/dist/index.es190.js +30 -0
- package/dist/index.es190.js.map +1 -0
- package/dist/index.es200.js +1 -1
- package/dist/index.es206.js +7 -7
- package/dist/index.es209.js +1 -1
- package/dist/index.es210.js +1 -1
- package/dist/index.es217.js +8 -8
- package/dist/index.es22.js +1 -1
- package/dist/index.es226.js +1 -1
- package/dist/index.es228.js +13 -13
- package/dist/index.es235.js +1 -1
- package/dist/index.es240.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es253.js +1 -1
- package/dist/index.es254.js +1 -1
- package/dist/index.es255.js +7 -7
- package/dist/index.es294.js +4 -4
- package/dist/index.es312.js +1 -1
- package/dist/index.es313.js +1 -1
- package/dist/index.es317.js +2 -7
- package/dist/index.es317.js.map +1 -1
- package/dist/index.es318.js +2 -27
- package/dist/index.es318.js.map +1 -1
- package/dist/index.es320.js +15 -30
- package/dist/index.es320.js.map +1 -1
- package/dist/index.es323.js +6 -10
- package/dist/index.es323.js.map +1 -1
- package/dist/index.es324.js +30 -0
- package/dist/index.es324.js.map +1 -0
- package/dist/index.es325.js +67 -14
- package/dist/index.es325.js.map +1 -1
- package/dist/index.es326.js +33 -0
- package/dist/index.es326.js.map +1 -0
- package/dist/{index.es321.js → index.es327.js} +2 -2
- package/dist/{index.es321.js.map → index.es327.js.map} +1 -1
- package/dist/index.es328.js +621 -5
- package/dist/index.es328.js.map +1 -1
- package/dist/index.es329.js +10 -24
- package/dist/index.es329.js.map +1 -1
- package/dist/index.es330.js +10 -68
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es331.js +56 -0
- package/dist/index.es331.js.map +1 -0
- package/dist/index.es332.js +49 -0
- package/dist/index.es332.js.map +1 -0
- package/dist/index.es333.js +11 -0
- package/dist/index.es333.js.map +1 -0
- package/dist/index.es334.js +5 -5
- package/dist/index.es335.js +14 -134
- package/dist/index.es335.js.map +1 -1
- package/dist/index.es336.js +134 -13
- package/dist/index.es336.js.map +1 -1
- package/dist/index.es337.js +216 -13
- package/dist/index.es337.js.map +1 -1
- package/dist/index.es338.js +12 -7
- package/dist/index.es338.js.map +1 -1
- package/dist/index.es339.js +66 -47
- package/dist/index.es339.js.map +1 -1
- package/dist/index.es340.js +173 -48
- package/dist/index.es340.js.map +1 -1
- package/dist/index.es341.js +53 -0
- package/dist/index.es341.js.map +1 -0
- package/dist/index.es342.js +12 -0
- package/dist/index.es342.js.map +1 -0
- package/dist/{index.es360.js → index.es343.js} +1 -1
- package/dist/{index.es360.js.map → index.es343.js.map} +1 -1
- package/dist/{index.es361.js → index.es344.js} +2 -2
- package/dist/{index.es361.js.map → index.es344.js.map} +1 -1
- package/dist/{index.es362.js → index.es345.js} +3 -3
- package/dist/{index.es362.js.map → index.es345.js.map} +1 -1
- package/dist/index.es346.js +25 -0
- package/dist/index.es346.js.map +1 -0
- package/dist/index.es347.js +28 -0
- package/dist/index.es347.js.map +1 -0
- package/dist/index.es348.js +396 -0
- package/dist/index.es348.js.map +1 -0
- package/dist/index.es349.js +6 -2
- package/dist/index.es349.js.map +1 -1
- package/dist/index.es350.js +25 -2
- package/dist/index.es350.js.map +1 -1
- package/dist/{index.es366.js → index.es351.js} +5 -5
- package/dist/{index.es366.js.map → index.es351.js.map} +1 -1
- package/dist/index.es352.js +8 -0
- package/dist/{index.es367.js.map → index.es352.js.map} +1 -1
- package/dist/{index.es368.js → index.es353.js} +1 -1
- package/dist/{index.es368.js.map → index.es353.js.map} +1 -1
- package/dist/{index.es369.js → index.es354.js} +1 -1
- package/dist/{index.es369.js.map → index.es354.js.map} +1 -1
- package/dist/index.es355.js +23 -10
- package/dist/index.es355.js.map +1 -1
- package/dist/index.es356.js +106 -42
- package/dist/index.es356.js.map +1 -1
- package/dist/index.es357.js +15 -7
- package/dist/index.es357.js.map +1 -1
- package/dist/index.es363.js +522 -21
- package/dist/index.es363.js.map +1 -1
- package/dist/index.es364.js +113 -379
- package/dist/index.es364.js.map +1 -1
- package/dist/index.es365.js +127 -23
- package/dist/index.es365.js.map +1 -1
- package/dist/index.es376.js +2 -2
- package/dist/index.es377.js +1 -1
- package/dist/index.es380.js +1 -1
- package/dist/index.es383.js +26 -0
- package/dist/index.es383.js.map +1 -0
- package/dist/index.es384.js +16 -0
- package/dist/index.es384.js.map +1 -0
- package/dist/index.es385.js +25 -20
- package/dist/index.es385.js.map +1 -1
- package/dist/index.es386.js +4 -12
- package/dist/index.es386.js.map +1 -1
- package/dist/index.es396.js +8 -8
- package/dist/index.es56.js +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es87.js.map +1 -1
- package/dist/index.es9.js +2 -2
- package/package.json +1 -1
- package/dist/index.cjs191.js +0 -2
- package/dist/index.cjs191.js.map +0 -1
- package/dist/index.cjs319.js +0 -2
- package/dist/index.cjs319.js.map +0 -1
- package/dist/index.cjs322.js +0 -2
- package/dist/index.cjs322.js.map +0 -1
- package/dist/index.cjs358.js +0 -2
- package/dist/index.cjs358.js.map +0 -1
- package/dist/index.cjs359.js +0 -2
- package/dist/index.cjs359.js.map +0 -1
- package/dist/index.cjs367.js +0 -2
- package/dist/index.cjs370.js +0 -2
- package/dist/index.cjs370.js.map +0 -1
- package/dist/index.cjs371.js +0 -5
- package/dist/index.cjs371.js.map +0 -1
- package/dist/index.cjs372.js +0 -2
- package/dist/index.cjs372.js.map +0 -1
- package/dist/index.cjs373.js +0 -2
- package/dist/index.cjs373.js.map +0 -1
- package/dist/index.cjs374.js +0 -2
- package/dist/index.cjs374.js.map +0 -1
- package/dist/index.cjs375.js +0 -2
- package/dist/index.cjs375.js.map +0 -1
- package/dist/index.cjs387.js +0 -2
- package/dist/index.cjs387.js.map +0 -1
- package/dist/index.cjs388.js +0 -2
- package/dist/index.cjs388.js.map +0 -1
- package/dist/index.es191.js +0 -5
- package/dist/index.es191.js.map +0 -1
- package/dist/index.es319.js +0 -71
- package/dist/index.es319.js.map +0 -1
- package/dist/index.es322.js +0 -625
- package/dist/index.es322.js.map +0 -1
- package/dist/index.es358.js +0 -221
- package/dist/index.es358.js.map +0 -1
- package/dist/index.es359.js +0 -181
- package/dist/index.es359.js.map +0 -1
- package/dist/index.es367.js +0 -8
- package/dist/index.es370.js +0 -27
- package/dist/index.es370.js.map +0 -1
- package/dist/index.es371.js +0 -113
- package/dist/index.es371.js.map +0 -1
- package/dist/index.es372.js +0 -19
- package/dist/index.es372.js.map +0 -1
- package/dist/index.es373.js +0 -526
- package/dist/index.es373.js.map +0 -1
- package/dist/index.es374.js +0 -130
- package/dist/index.es374.js.map +0 -1
- package/dist/index.es375.js +0 -132
- package/dist/index.es375.js.map +0 -1
- package/dist/index.es387.js +0 -31
- package/dist/index.es387.js.map +0 -1
- package/dist/index.es388.js +0 -8
- package/dist/index.es388.js.map +0 -1
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
package/dist/index.es189.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es189.js","sources":["../src/theme/
|
|
1
|
+
{"version":3,"file":"index.es189.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-14\"\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":"AA4BA,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.es190.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es190.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.es200.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as s } from "./index.es178.js";
|
|
2
2
|
import { clsx as a } from "./index.es180.js";
|
|
3
|
-
import { createColorClasses as e } from "./index.
|
|
3
|
+
import { createColorClasses as e } from "./index.es189.js";
|
|
4
4
|
import './components/ui/Divider/Divider.css';/* empty css */
|
|
5
5
|
const p = ({
|
|
6
6
|
direction: o = "horizontal",
|
package/dist/index.es206.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.es323.js";
|
|
3
|
+
import { composeRefs as E } from "./index.es324.js";
|
|
4
|
+
import { createContextScope as S } from "./index.es325.js";
|
|
5
|
+
import { useControllableState as P } from "./index.es326.js";
|
|
6
|
+
import { Primitive as y } from "./index.es327.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.es328.js";
|
|
8
|
+
import { useId as g } from "./index.es329.js";
|
|
9
9
|
import { j as a } from "./index.es178.js";
|
|
10
10
|
var M = "DropdownMenu", [z, bo] = S(
|
|
11
11
|
M,
|
package/dist/index.es209.js
CHANGED
package/dist/index.es210.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.es180.js";
|
|
6
|
-
import { useFocusTrap as N } from "./index.
|
|
6
|
+
import { useFocusTrap as N } from "./index.es320.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.es217.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.es324.js";
|
|
3
|
+
import { createContextScope as M } from "./index.es325.js";
|
|
4
|
+
import { composeEventHandlers as S } from "./index.es323.js";
|
|
5
|
+
import { useControllableState as O } from "./index.es326.js";
|
|
6
|
+
import { usePrevious as A } from "./index.es349.js";
|
|
7
|
+
import { useSize as B } from "./index.es347.js";
|
|
8
|
+
import { Presence as H } from "./index.es339.js";
|
|
9
|
+
import { Primitive as j } from "./index.es327.js";
|
|
10
10
|
import { j as f } from "./index.es178.js";
|
|
11
11
|
var R = "Checkbox", [K, Y] = M(R), [L, q] = K(R), I = n.forwardRef(
|
|
12
12
|
(e, l) => {
|
package/dist/index.es22.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./index.es178.js";
|
|
2
2
|
import { Root as i, Trigger as c, Portal as m, Content as d, Group as u, Item as x } from "./index.es206.js";
|
|
3
3
|
import { clsx as o } from "./index.es180.js";
|
|
4
|
-
import { createColorClasses as h } from "./index.
|
|
4
|
+
import { createColorClasses as h } from "./index.es189.js";
|
|
5
5
|
import './components/ui/Dropdown/Dropdown.css';/* empty css */
|
|
6
6
|
import { ArrowDown as p } from "./index.es111.js";
|
|
7
7
|
import { Row as w } from "./index.es9.js";
|
package/dist/index.es226.js
CHANGED
package/dist/index.es228.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { composeEventHandlers as p } from "./index.
|
|
3
|
-
import { useComposedRefs as C } from "./index.
|
|
4
|
-
import { createContextScope as B, createContext as H } from "./index.
|
|
5
|
-
import { useId as x } from "./index.
|
|
6
|
-
import { useControllableState as V } from "./index.
|
|
2
|
+
import { composeEventHandlers as p } from "./index.es323.js";
|
|
3
|
+
import { useComposedRefs as C } from "./index.es324.js";
|
|
4
|
+
import { createContextScope as B, createContext as H } from "./index.es325.js";
|
|
5
|
+
import { useId as x } from "./index.es329.js";
|
|
6
|
+
import { useControllableState as V } from "./index.es326.js";
|
|
7
7
|
import { DismissableLayer as q } from "./index.es334.js";
|
|
8
|
-
import { FocusScope as K } from "./index.
|
|
9
|
-
import { Portal as U } from "./index.
|
|
10
|
-
import { Presence as R } from "./index.
|
|
11
|
-
import { Primitive as m } from "./index.
|
|
12
|
-
import { useFocusGuards as Y } from "./index.
|
|
13
|
-
import Z from "./index.
|
|
14
|
-
import { hideOthers as z } from "./index.
|
|
15
|
-
import { createSlot as J } from "./index.
|
|
8
|
+
import { FocusScope as K } from "./index.es336.js";
|
|
9
|
+
import { Portal as U } from "./index.es338.js";
|
|
10
|
+
import { Presence as R } from "./index.es339.js";
|
|
11
|
+
import { Primitive as m } from "./index.es327.js";
|
|
12
|
+
import { useFocusGuards as Y } from "./index.es335.js";
|
|
13
|
+
import Z from "./index.es342.js";
|
|
14
|
+
import { hideOthers as z } from "./index.es341.js";
|
|
15
|
+
import { createSlot as J } from "./index.es331.js";
|
|
16
16
|
import { j as i } from "./index.es178.js";
|
|
17
17
|
var _ = "Dialog", [N, he] = B(_), [Q, u] = N(_), P = (e) => {
|
|
18
18
|
const {
|
package/dist/index.es235.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as t } from "./index.es178.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.es240.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as t } from "./index.es178.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.es247.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as t } from "./index.es178.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.es25.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as s } from "./index.es178.js";
|
|
2
|
-
import { createColorClasses as d } from "./index.
|
|
2
|
+
import { createColorClasses as d } from "./index.es189.js";
|
|
3
3
|
import { clsx as w } from "./index.es180.js";
|
|
4
4
|
import './components/ui/Button/Button.css';/* empty css */
|
|
5
5
|
import { Spinner as B } from "./index.es147.js";
|
package/dist/index.es253.js
CHANGED
package/dist/index.es254.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as a } from "./index.es178.js";
|
|
2
2
|
import './components/ui/Section/Description/description.css';/* empty css */
|
|
3
|
-
import { createColorClasses as n } from "./index.
|
|
3
|
+
import { createColorClasses as n } from "./index.es189.js";
|
|
4
4
|
import { clsx as m } from "./index.es180.js";
|
|
5
5
|
const u = ({
|
|
6
6
|
fs: t = "6",
|
package/dist/index.es255.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.es323.js";
|
|
3
|
+
import { useComposedRefs as _ } from "./index.es324.js";
|
|
4
|
+
import { createContextScope as H } from "./index.es325.js";
|
|
5
|
+
import { useControllableState as I } from "./index.es326.js";
|
|
6
|
+
import { usePrevious as M } from "./index.es349.js";
|
|
7
|
+
import { useSize as N } from "./index.es347.js";
|
|
8
|
+
import { Primitive as w } from "./index.es327.js";
|
|
9
9
|
import { j as p } from "./index.es178.js";
|
|
10
10
|
var S = "Switch", [B, J] = H(S), [q, z] = B(S), C = s.forwardRef(
|
|
11
11
|
(e, n) => {
|
package/dist/index.es294.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import { createContextScope as T } from "./index.
|
|
3
|
-
import { useComposedRefs as A } from "./index.
|
|
2
|
+
import { createContextScope as T } from "./index.es325.js";
|
|
3
|
+
import { useComposedRefs as A } from "./index.es324.js";
|
|
4
4
|
import { createDialogScope as v, Root as O, Portal as j, Overlay as b, WarningProvider as w, Content as M, Title as I, Description as L, Close as f, Trigger as $ } from "./index.es228.js";
|
|
5
|
-
import { composeEventHandlers as F } from "./index.
|
|
6
|
-
import { createSlottable as G } from "./index.
|
|
5
|
+
import { composeEventHandlers as F } from "./index.es323.js";
|
|
6
|
+
import { createSlottable as G } from "./index.es331.js";
|
|
7
7
|
import { j as i } from "./index.es178.js";
|
|
8
8
|
var D = "AlertDialog", [W, te] = T(D, [
|
|
9
9
|
v
|
package/dist/index.es312.js
CHANGED
package/dist/index.es313.js
CHANGED
package/dist/index.es317.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.es317.js.map
|
package/dist/index.es317.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es317.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.es317.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.es318.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.es318.js.map
|
package/dist/index.es318.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es318.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.es318.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.es320.js
CHANGED
|
@@ -1,33 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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;
|
|
29
|
-
}
|
|
1
|
+
import { useEffect as l } from "react";
|
|
2
|
+
const f = (t, n) => {
|
|
3
|
+
l(() => {
|
|
4
|
+
if (!n || !t.current) return;
|
|
5
|
+
const o = t.current.querySelectorAll(
|
|
6
|
+
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
7
|
+
), c = o[0], r = o[o.length - 1], s = (e) => {
|
|
8
|
+
e.key === "Tab" && (e.shiftKey ? document.activeElement === c && (r.focus(), e.preventDefault()) : document.activeElement === r && (c.focus(), e.preventDefault()));
|
|
9
|
+
}, u = document.activeElement;
|
|
10
|
+
return c.focus(), document.addEventListener("keydown", s), () => {
|
|
11
|
+
document.removeEventListener("keydown", s), n && (u == null || u.focus());
|
|
12
|
+
};
|
|
13
|
+
}, [n, t]);
|
|
14
|
+
};
|
|
30
15
|
export {
|
|
31
|
-
|
|
16
|
+
f as useFocusTrap
|
|
32
17
|
};
|
|
33
18
|
//# sourceMappingURL=index.es320.js.map
|
package/dist/index.es320.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es320.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index.es320.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\n\nexport const useFocusTrap = (\n ref: React.RefObject<HTMLElement | null>,\n isActive: boolean,\n) => {\n useEffect(() => {\n if (!isActive || !ref.current) return;\n\n const focusableElements = ref.current.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n );\n const firstFocusableElement = focusableElements[0] as HTMLElement;\n const lastFocusableElement = focusableElements[\n focusableElements.length - 1\n ] as HTMLElement;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.key !== \"Tab\") return;\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n };\n\n const previousActiveElement = document.activeElement as HTMLElement;\n\n firstFocusableElement.focus();\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n\n if (isActive) {\n previousActiveElement?.focus();\n }\n };\n }, [isActive, ref]);\n};\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":";AAEa,MAAAA,IAAe,CAC1BC,GACAC,MACG;AACH,EAAAC,EAAU,MAAM;AACd,QAAI,CAACD,KAAY,CAACD,EAAI,QAAS;AAEzB,UAAAG,IAAoBH,EAAI,QAAQ;AAAA,MACpC;AAAA,IACF,GACMI,IAAwBD,EAAkB,CAAC,GAC3CE,IAAuBF,EAC3BA,EAAkB,SAAS,CAC7B,GAEMG,IAAgB,CAAC,MAAqB;AACtC,MAAA,EAAE,QAAQ,UAEV,EAAE,WACA,SAAS,kBAAkBF,MAC7BC,EAAqB,MAAM,GAC3B,EAAE,eAAe,KAGf,SAAS,kBAAkBA,MAC7BD,EAAsB,MAAM,GAC5B,EAAE,eAAe;AAAA,IAGvB,GAEMG,IAAwB,SAAS;AAEvC,WAAAH,EAAsB,MAAM,GAEnB,SAAA,iBAAiB,WAAWE,CAAa,GAE3C,MAAM;AACF,eAAA,oBAAoB,WAAWA,CAAa,GAEjDL,MACFM,KAAA,QAAAA,EAAuB;AAAA,IAE3B;AAAA,EAAA,GACC,CAACN,GAAUD,CAAG,CAAC;AACpB;"}
|
package/dist/index.es323.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const [e, r] = o.useState(s());
|
|
7
|
-
return a(() => {
|
|
8
|
-
r((u) => u ?? String(f++));
|
|
9
|
-
}, [t]), t || (e ? `radix-${e}` : "");
|
|
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
|
+
};
|
|
10
6
|
}
|
|
11
7
|
export {
|
|
12
|
-
|
|
8
|
+
h as composeEventHandlers
|
|
13
9
|
};
|
|
14
10
|
//# sourceMappingURL=index.es323.js.map
|
package/dist/index.es323.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es323.js","sources":["../node_modules/@radix-ui/
|
|
1
|
+
{"version":3,"file":"index.es323.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]}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
i as composeRefs,
|
|
28
|
+
s as useComposedRefs
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=index.es324.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es324.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACb,CAAK;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAS,IAETR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAEhC;AAAA,MACO;AAAA,EAEJ;AACH;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
|
package/dist/index.es325.js
CHANGED
|
@@ -1,18 +1,71 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { j as h } from "./index.es178.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 });
|
|
12
26
|
};
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
}
|
|
15
67
|
export {
|
|
16
|
-
|
|
68
|
+
j as createContext,
|
|
69
|
+
w as createContextScope
|
|
17
70
|
};
|
|
18
71
|
//# sourceMappingURL=index.es325.js.map
|
package/dist/index.es325.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es325.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index.es325.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.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]}
|