@anoki/fse-ui 1.0.0-beta1.48.32 → 1.0.0-beta1.48.34

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.
Files changed (154) hide show
  1. package/dist/components/ui/TableOfContents/TableOfContents.css +1 -1
  2. package/dist/index.cjs110.js +1 -1
  3. package/dist/index.cjs110.js.map +1 -1
  4. package/dist/index.cjs288.js +1 -1
  5. package/dist/index.cjs295.js +1 -1
  6. package/dist/index.cjs368.js +1 -1
  7. package/dist/index.cjs374.js +1 -1
  8. package/dist/index.cjs439.js +1 -1
  9. package/dist/index.cjs460.js +1 -1
  10. package/dist/index.cjs461.js +1 -1
  11. package/dist/index.cjs469.js +2 -0
  12. package/dist/index.cjs469.js.map +1 -0
  13. package/dist/index.cjs470.js +2 -0
  14. package/dist/index.cjs470.js.map +1 -0
  15. package/dist/index.cjs471.js +2 -0
  16. package/dist/index.cjs471.js.map +1 -0
  17. package/dist/index.cjs472.js +1 -1
  18. package/dist/index.cjs472.js.map +1 -1
  19. package/dist/index.cjs473.js +1 -1
  20. package/dist/index.cjs473.js.map +1 -1
  21. package/dist/index.cjs474.js +1 -1
  22. package/dist/index.cjs474.js.map +1 -1
  23. package/dist/index.cjs475.js +1 -1
  24. package/dist/index.cjs475.js.map +1 -1
  25. package/dist/{index.cjs484.js → index.cjs482.js} +1 -1
  26. package/dist/{index.cjs484.js.map → index.cjs482.js.map} +1 -1
  27. package/dist/{index.cjs496.js → index.cjs499.js} +2 -2
  28. package/dist/{index.cjs496.js.map → index.cjs499.js.map} +1 -1
  29. package/dist/{index.cjs497.js → index.cjs500.js} +1 -1
  30. package/dist/index.cjs500.js.map +1 -0
  31. package/dist/{index.cjs498.js → index.cjs501.js} +1 -1
  32. package/dist/index.cjs501.js.map +1 -0
  33. package/dist/index.cjs513.js +1 -1
  34. package/dist/index.cjs518.js +1 -1
  35. package/dist/index.cjs520.js +1 -1
  36. package/dist/index.cjs529.js +1 -1
  37. package/dist/index.cjs529.js.map +1 -1
  38. package/dist/index.cjs530.js +1 -1
  39. package/dist/index.cjs530.js.map +1 -1
  40. package/dist/index.cjs531.js +1 -1
  41. package/dist/index.cjs531.js.map +1 -1
  42. package/dist/index.cjs532.js +1 -1
  43. package/dist/index.cjs532.js.map +1 -1
  44. package/dist/index.cjs533.js +1 -1
  45. package/dist/index.cjs533.js.map +1 -1
  46. package/dist/index.cjs534.js +1 -1
  47. package/dist/index.cjs534.js.map +1 -1
  48. package/dist/index.cjs535.js +1 -1
  49. package/dist/index.cjs536.js +1 -1
  50. package/dist/index.cjs537.js +1 -1
  51. package/dist/index.cjs540.js +1 -1
  52. package/dist/index.cjs542.js +1 -1
  53. package/dist/index.cjs545.js +1 -1
  54. package/dist/index.cjs546.js +1 -1
  55. package/dist/index.cjs547.js +1 -1
  56. package/dist/index.cjs559.js +1 -1
  57. package/dist/index.cjs565.js +1 -1
  58. package/dist/index.cjs566.js +1 -1
  59. package/dist/index.cjs570.js +1 -1
  60. package/dist/index.cjs570.js.map +1 -1
  61. package/dist/index.cjs571.js +1 -1
  62. package/dist/index.cjs571.js.map +1 -1
  63. package/dist/index.cjs572.js +1 -1
  64. package/dist/index.cjs572.js.map +1 -1
  65. package/dist/index.cjs573.js +1 -1
  66. package/dist/index.cjs573.js.map +1 -1
  67. package/dist/index.cjs574.js +1 -1
  68. package/dist/index.cjs574.js.map +1 -1
  69. package/dist/index.cjs584.js +1 -1
  70. package/dist/index.es110.js +65 -55
  71. package/dist/index.es110.js.map +1 -1
  72. package/dist/index.es288.js +1 -1
  73. package/dist/index.es295.js +7 -7
  74. package/dist/index.es368.js +1 -1
  75. package/dist/index.es374.js +1 -1
  76. package/dist/index.es439.js +1 -1
  77. package/dist/index.es460.js +1 -1
  78. package/dist/index.es461.js +7 -7
  79. package/dist/index.es469.js +128 -0
  80. package/dist/index.es469.js.map +1 -0
  81. package/dist/index.es470.js +138 -0
  82. package/dist/index.es470.js.map +1 -0
  83. package/dist/index.es471.js +17 -0
  84. package/dist/index.es471.js.map +1 -0
  85. package/dist/index.es472.js +12 -122
  86. package/dist/index.es472.js.map +1 -1
  87. package/dist/index.es473.js +8 -134
  88. package/dist/index.es473.js.map +1 -1
  89. package/dist/index.es474.js +50 -14
  90. package/dist/index.es474.js.map +1 -1
  91. package/dist/index.es475.js +54 -13
  92. package/dist/index.es475.js.map +1 -1
  93. package/dist/{index.es484.js → index.es482.js} +1 -1
  94. package/dist/{index.es484.js.map → index.es482.js.map} +1 -1
  95. package/dist/{index.es496.js → index.es499.js} +3 -3
  96. package/dist/{index.es496.js.map → index.es499.js.map} +1 -1
  97. package/dist/{index.es497.js → index.es500.js} +1 -1
  98. package/dist/index.es500.js.map +1 -0
  99. package/dist/{index.es498.js → index.es501.js} +1 -1
  100. package/dist/index.es501.js.map +1 -0
  101. package/dist/index.es513.js +1 -1
  102. package/dist/index.es518.js +1 -1
  103. package/dist/index.es520.js +3 -3
  104. package/dist/index.es529.js +22 -202
  105. package/dist/index.es529.js.map +1 -1
  106. package/dist/index.es530.js +27 -20
  107. package/dist/index.es530.js.map +1 -1
  108. package/dist/index.es531.js +5 -393
  109. package/dist/index.es531.js.map +1 -1
  110. package/dist/index.es532.js +202 -22
  111. package/dist/index.es532.js.map +1 -1
  112. package/dist/index.es533.js +20 -27
  113. package/dist/index.es533.js.map +1 -1
  114. package/dist/index.es534.js +393 -5
  115. package/dist/index.es534.js.map +1 -1
  116. package/dist/index.es535.js +1 -1
  117. package/dist/index.es536.js +1 -1
  118. package/dist/index.es537.js +3 -3
  119. package/dist/index.es540.js +3 -3
  120. package/dist/index.es542.js +1 -1
  121. package/dist/index.es545.js +2 -2
  122. package/dist/index.es546.js +1 -1
  123. package/dist/index.es547.js +7 -7
  124. package/dist/index.es559.js +2 -2
  125. package/dist/index.es565.js +1 -1
  126. package/dist/index.es566.js +1 -1
  127. package/dist/index.es570.js +6 -2
  128. package/dist/index.es570.js.map +1 -1
  129. package/dist/index.es571.js +16 -2
  130. package/dist/index.es571.js.map +1 -1
  131. package/dist/index.es572.js +2 -2
  132. package/dist/index.es572.js.map +1 -1
  133. package/dist/index.es573.js +2 -6
  134. package/dist/index.es573.js.map +1 -1
  135. package/dist/index.es574.js +2 -16
  136. package/dist/index.es574.js.map +1 -1
  137. package/dist/index.es584.js +1 -1
  138. package/package.json +1 -1
  139. package/dist/index.cjs476.js +0 -2
  140. package/dist/index.cjs476.js.map +0 -1
  141. package/dist/index.cjs477.js +0 -2
  142. package/dist/index.cjs477.js.map +0 -1
  143. package/dist/index.cjs478.js +0 -2
  144. package/dist/index.cjs478.js.map +0 -1
  145. package/dist/index.cjs497.js.map +0 -1
  146. package/dist/index.cjs498.js.map +0 -1
  147. package/dist/index.es476.js +0 -12
  148. package/dist/index.es476.js.map +0 -1
  149. package/dist/index.es477.js +0 -53
  150. package/dist/index.es477.js.map +0 -1
  151. package/dist/index.es478.js +0 -59
  152. package/dist/index.es478.js.map +0 -1
  153. package/dist/index.es497.js.map +0 -1
  154. package/dist/index.es498.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.es570.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/padding.props.js"],"sourcesContent":["const e=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\"],p={p:{type:\"enum | string\",className:\"rt-r-p\",customProperties:[\"--p\"],values:e,responsive:!0},px:{type:\"enum | string\",className:\"rt-r-px\",customProperties:[\"--pl\",\"--pr\"],values:e,responsive:!0},py:{type:\"enum | string\",className:\"rt-r-py\",customProperties:[\"--pt\",\"--pb\"],values:e,responsive:!0},pt:{type:\"enum | string\",className:\"rt-r-pt\",customProperties:[\"--pt\"],values:e,responsive:!0},pr:{type:\"enum | string\",className:\"rt-r-pr\",customProperties:[\"--pr\"],values:e,responsive:!0},pb:{type:\"enum | string\",className:\"rt-r-pb\",customProperties:[\"--pb\"],values:e,responsive:!0},pl:{type:\"enum | string\",className:\"rt-r-pl\",customProperties:[\"--pl\"],values:e,responsive:!0}};export{p as paddingPropDefs};\n//# sourceMappingURL=padding.props.js.map\n"],"names":["p"],"mappings":"AAAK,MAAC,IAAE,CAAC,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,GAAG,GAAEA,IAAE,EAAC,GAAE,EAAC,MAAK,iBAAgB,WAAU,UAAS,kBAAiB,CAAC,KAAK,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,IAAG,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,QAAO,MAAM,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,IAAG,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,QAAO,MAAM,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,IAAG,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,MAAM,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,IAAG,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,MAAM,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,IAAG,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,MAAM,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,IAAG,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,MAAM,GAAE,QAAO,GAAE,YAAW,GAAE,EAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es570.js","sources":["../node_modules/@radix-ui/themes/dist/esm/components/_internal/base-button.props.js"],"sourcesContent":["import{asChildPropDef as o}from\"../../props/as-child.prop.js\";import{accentColorPropDef as e}from\"../../props/color.prop.js\";import{highContrastPropDef as s}from\"../../props/high-contrast.prop.js\";import{radiusPropDef as r}from\"../../props/radius.prop.js\";const t=[\"1\",\"2\",\"3\",\"4\"],a=[\"classic\",\"solid\",\"soft\",\"surface\",\"outline\",\"ghost\"],i={...o,size:{type:\"enum\",className:\"rt-r-size\",values:t,default:\"2\",responsive:!0},variant:{type:\"enum\",className:\"rt-variant\",values:a,default:\"solid\"},...e,...s,...r,loading:{type:\"boolean\",className:\"rt-loading\",default:!1}};export{i as baseButtonPropDefs};\n//# sourceMappingURL=base-button.props.js.map\n"],"names":["t","a","i","o","e","s","r"],"mappings":";;;;AAAqQ,MAACA,IAAE,CAAC,KAAI,KAAI,KAAI,GAAG,GAAEC,IAAE,CAAC,WAAU,SAAQ,QAAO,WAAU,WAAU,OAAO,GAAEC,IAAE,EAAC,GAAGC,GAAE,MAAK,EAAC,MAAK,QAAO,WAAU,aAAY,QAAOH,GAAE,SAAQ,KAAI,YAAW,GAAE,GAAE,SAAQ,EAAC,MAAK,QAAO,WAAU,cAAa,QAAOC,GAAE,SAAQ,QAAO,GAAE,GAAGG,GAAE,GAAGC,GAAE,GAAGC,GAAE,SAAQ,EAAC,MAAK,WAAU,WAAU,cAAa,SAAQ,GAAE,EAAC;","x_google_ignoreList":[0]}
@@ -1,5 +1,19 @@
1
- const e = { height: { type: "string", className: "rt-r-h", customProperties: ["--height"], responsive: !0 }, minHeight: { type: "string", className: "rt-r-min-h", customProperties: ["--min-height"], responsive: !0 }, maxHeight: { type: "string", className: "rt-r-max-h", customProperties: ["--max-height"], responsive: !0 } };
1
+ function s(e, r) {
2
+ if (e !== void 0) return typeof e == "string" ? r(e) : Object.fromEntries(Object.entries(e).map(([n, t]) => [n, r(t)]));
3
+ }
4
+ function i(e) {
5
+ switch (e) {
6
+ case "1":
7
+ return "1";
8
+ case "2":
9
+ case "3":
10
+ return "2";
11
+ case "4":
12
+ return "3";
13
+ }
14
+ }
2
15
  export {
3
- e as heightPropDefs
16
+ i as mapButtonSizeToSpinnerSize,
17
+ s as mapResponsiveProp
4
18
  };
5
19
  //# sourceMappingURL=index.es571.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es571.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/height.props.js"],"sourcesContent":["const e={height:{type:\"string\",className:\"rt-r-h\",customProperties:[\"--height\"],responsive:!0},minHeight:{type:\"string\",className:\"rt-r-min-h\",customProperties:[\"--min-height\"],responsive:!0},maxHeight:{type:\"string\",className:\"rt-r-max-h\",customProperties:[\"--max-height\"],responsive:!0}};export{e as heightPropDefs};\n//# sourceMappingURL=height.props.js.map\n"],"names":[],"mappings":"AAAK,MAAC,IAAE,EAAC,QAAO,EAAC,MAAK,UAAS,WAAU,UAAS,kBAAiB,CAAC,UAAU,GAAE,YAAW,GAAE,GAAE,WAAU,EAAC,MAAK,UAAS,WAAU,cAAa,kBAAiB,CAAC,cAAc,GAAE,YAAW,GAAE,GAAE,WAAU,EAAC,MAAK,UAAS,WAAU,cAAa,kBAAiB,CAAC,cAAc,GAAE,YAAW,GAAE,EAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es571.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.js"],"sourcesContent":["function s(e,t){if(e!==void 0)return typeof e==\"string\"?t(e):Object.fromEntries(Object.entries(e).map(([n,o])=>[n,t(o)]))}function p(e){return e===\"3\"?\"3\":\"2\"}function r(e){switch(e){case\"1\":return\"1\";case\"2\":case\"3\":return\"2\";case\"4\":return\"3\"}}export{r as mapButtonSizeToSpinnerSize,p as mapCalloutSizeToTextSize,s as mapResponsiveProp};\n//# sourceMappingURL=map-prop-values.js.map\n"],"names":["t","o","r"],"mappings":"AAAA,SAAS,EAAE,GAAEA,GAAE;AAAC,MAAG,MAAI,OAAO,QAAO,OAAO,KAAG,WAASA,EAAE,CAAC,IAAE,OAAO,YAAY,OAAO,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC,GAAEC,CAAC,MAAI,CAAC,GAAED,EAAEC,CAAC,CAAC,CAAC,CAAC;AAAC;AAAsC,SAASC,EAAE,GAAE;AAAC,UAAO,GAAC;AAAA,IAAE,KAAI;AAAI,aAAM;AAAA,IAAI,KAAI;AAAA,IAAI,KAAI;AAAI,aAAM;AAAA,IAAI,KAAI;AAAI,aAAM;AAAA,EAAG;AAAC;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
- const t = { width: { type: "string", className: "rt-r-w", customProperties: ["--width"], responsive: !0 }, minWidth: { type: "string", className: "rt-r-min-w", customProperties: ["--min-width"], responsive: !0 }, maxWidth: { type: "string", className: "rt-r-max-w", customProperties: ["--max-width"], responsive: !0 } };
1
+ const e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], s = { p: { type: "enum | string", className: "rt-r-p", customProperties: ["--p"], values: e, responsive: !0 }, px: { type: "enum | string", className: "rt-r-px", customProperties: ["--pl", "--pr"], values: e, responsive: !0 }, py: { type: "enum | string", className: "rt-r-py", customProperties: ["--pt", "--pb"], values: e, responsive: !0 }, pt: { type: "enum | string", className: "rt-r-pt", customProperties: ["--pt"], values: e, responsive: !0 }, pr: { type: "enum | string", className: "rt-r-pr", customProperties: ["--pr"], values: e, responsive: !0 }, pb: { type: "enum | string", className: "rt-r-pb", customProperties: ["--pb"], values: e, responsive: !0 }, pl: { type: "enum | string", className: "rt-r-pl", customProperties: ["--pl"], values: e, responsive: !0 } };
2
2
  export {
3
- t as widthPropDefs
3
+ s as paddingPropDefs
4
4
  };
5
5
  //# sourceMappingURL=index.es572.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es572.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/width.props.js"],"sourcesContent":["const t={width:{type:\"string\",className:\"rt-r-w\",customProperties:[\"--width\"],responsive:!0},minWidth:{type:\"string\",className:\"rt-r-min-w\",customProperties:[\"--min-width\"],responsive:!0},maxWidth:{type:\"string\",className:\"rt-r-max-w\",customProperties:[\"--max-width\"],responsive:!0}};export{t as widthPropDefs};\n//# sourceMappingURL=width.props.js.map\n"],"names":[],"mappings":"AAAK,MAAC,IAAE,EAAC,OAAM,EAAC,MAAK,UAAS,WAAU,UAAS,kBAAiB,CAAC,SAAS,GAAE,YAAW,GAAE,GAAE,UAAS,EAAC,MAAK,UAAS,WAAU,cAAa,kBAAiB,CAAC,aAAa,GAAE,YAAW,GAAE,GAAE,UAAS,EAAC,MAAK,UAAS,WAAU,cAAa,kBAAiB,CAAC,aAAa,GAAE,YAAW,GAAE,EAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es572.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/padding.props.js"],"sourcesContent":["const e=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\"],p={p:{type:\"enum | string\",className:\"rt-r-p\",customProperties:[\"--p\"],values:e,responsive:!0},px:{type:\"enum | string\",className:\"rt-r-px\",customProperties:[\"--pl\",\"--pr\"],values:e,responsive:!0},py:{type:\"enum | string\",className:\"rt-r-py\",customProperties:[\"--pt\",\"--pb\"],values:e,responsive:!0},pt:{type:\"enum | string\",className:\"rt-r-pt\",customProperties:[\"--pt\"],values:e,responsive:!0},pr:{type:\"enum | string\",className:\"rt-r-pr\",customProperties:[\"--pr\"],values:e,responsive:!0},pb:{type:\"enum | string\",className:\"rt-r-pb\",customProperties:[\"--pb\"],values:e,responsive:!0},pl:{type:\"enum | string\",className:\"rt-r-pl\",customProperties:[\"--pl\"],values:e,responsive:!0}};export{p as paddingPropDefs};\n//# sourceMappingURL=padding.props.js.map\n"],"names":["p"],"mappings":"AAAK,MAAC,IAAE,CAAC,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,GAAG,GAAEA,IAAE,EAAC,GAAE,EAAC,MAAK,iBAAgB,WAAU,UAAS,kBAAiB,CAAC,KAAK,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,IAAG,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,QAAO,MAAM,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,IAAG,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,QAAO,MAAM,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,IAAG,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,MAAM,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,IAAG,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,MAAM,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,IAAG,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,MAAM,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,IAAG,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,MAAM,GAAE,QAAO,GAAE,YAAW,GAAE,EAAC;","x_google_ignoreList":[0]}
@@ -1,9 +1,5 @@
1
- import { asChildPropDef as a } from "./index.es575.js";
2
- import { accentColorPropDef as s } from "./index.es589.js";
3
- import { highContrastPropDef as o } from "./index.es590.js";
4
- import { radiusPropDef as e } from "./index.es577.js";
5
- const r = ["1", "2", "3", "4"], t = ["classic", "solid", "soft", "surface", "outline", "ghost"], m = { ...a, size: { type: "enum", className: "rt-r-size", values: r, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: t, default: "solid" }, ...s, ...o, ...e, loading: { type: "boolean", className: "rt-loading", default: !1 } };
1
+ const e = { height: { type: "string", className: "rt-r-h", customProperties: ["--height"], responsive: !0 }, minHeight: { type: "string", className: "rt-r-min-h", customProperties: ["--min-height"], responsive: !0 }, maxHeight: { type: "string", className: "rt-r-max-h", customProperties: ["--max-height"], responsive: !0 } };
6
2
  export {
7
- m as baseButtonPropDefs
3
+ e as heightPropDefs
8
4
  };
9
5
  //# sourceMappingURL=index.es573.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es573.js","sources":["../node_modules/@radix-ui/themes/dist/esm/components/_internal/base-button.props.js"],"sourcesContent":["import{asChildPropDef as o}from\"../../props/as-child.prop.js\";import{accentColorPropDef as e}from\"../../props/color.prop.js\";import{highContrastPropDef as s}from\"../../props/high-contrast.prop.js\";import{radiusPropDef as r}from\"../../props/radius.prop.js\";const t=[\"1\",\"2\",\"3\",\"4\"],a=[\"classic\",\"solid\",\"soft\",\"surface\",\"outline\",\"ghost\"],i={...o,size:{type:\"enum\",className:\"rt-r-size\",values:t,default:\"2\",responsive:!0},variant:{type:\"enum\",className:\"rt-variant\",values:a,default:\"solid\"},...e,...s,...r,loading:{type:\"boolean\",className:\"rt-loading\",default:!1}};export{i as baseButtonPropDefs};\n//# sourceMappingURL=base-button.props.js.map\n"],"names":["t","a","i","o","e","s","r"],"mappings":";;;;AAAqQ,MAACA,IAAE,CAAC,KAAI,KAAI,KAAI,GAAG,GAAEC,IAAE,CAAC,WAAU,SAAQ,QAAO,WAAU,WAAU,OAAO,GAAEC,IAAE,EAAC,GAAGC,GAAE,MAAK,EAAC,MAAK,QAAO,WAAU,aAAY,QAAOH,GAAE,SAAQ,KAAI,YAAW,GAAE,GAAE,SAAQ,EAAC,MAAK,QAAO,WAAU,cAAa,QAAOC,GAAE,SAAQ,QAAO,GAAE,GAAGG,GAAE,GAAGC,GAAE,GAAGC,GAAE,SAAQ,EAAC,MAAK,WAAU,WAAU,cAAa,SAAQ,GAAE,EAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es573.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/height.props.js"],"sourcesContent":["const e={height:{type:\"string\",className:\"rt-r-h\",customProperties:[\"--height\"],responsive:!0},minHeight:{type:\"string\",className:\"rt-r-min-h\",customProperties:[\"--min-height\"],responsive:!0},maxHeight:{type:\"string\",className:\"rt-r-max-h\",customProperties:[\"--max-height\"],responsive:!0}};export{e as heightPropDefs};\n//# sourceMappingURL=height.props.js.map\n"],"names":[],"mappings":"AAAK,MAAC,IAAE,EAAC,QAAO,EAAC,MAAK,UAAS,WAAU,UAAS,kBAAiB,CAAC,UAAU,GAAE,YAAW,GAAE,GAAE,WAAU,EAAC,MAAK,UAAS,WAAU,cAAa,kBAAiB,CAAC,cAAc,GAAE,YAAW,GAAE,GAAE,WAAU,EAAC,MAAK,UAAS,WAAU,cAAa,kBAAiB,CAAC,cAAc,GAAE,YAAW,GAAE,EAAC;","x_google_ignoreList":[0]}
@@ -1,19 +1,5 @@
1
- function s(e, r) {
2
- if (e !== void 0) return typeof e == "string" ? r(e) : Object.fromEntries(Object.entries(e).map(([n, t]) => [n, r(t)]));
3
- }
4
- function i(e) {
5
- switch (e) {
6
- case "1":
7
- return "1";
8
- case "2":
9
- case "3":
10
- return "2";
11
- case "4":
12
- return "3";
13
- }
14
- }
1
+ const t = { width: { type: "string", className: "rt-r-w", customProperties: ["--width"], responsive: !0 }, minWidth: { type: "string", className: "rt-r-min-w", customProperties: ["--min-width"], responsive: !0 }, maxWidth: { type: "string", className: "rt-r-max-w", customProperties: ["--max-width"], responsive: !0 } };
15
2
  export {
16
- i as mapButtonSizeToSpinnerSize,
17
- s as mapResponsiveProp
3
+ t as widthPropDefs
18
4
  };
19
5
  //# sourceMappingURL=index.es574.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es574.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.js"],"sourcesContent":["function s(e,t){if(e!==void 0)return typeof e==\"string\"?t(e):Object.fromEntries(Object.entries(e).map(([n,o])=>[n,t(o)]))}function p(e){return e===\"3\"?\"3\":\"2\"}function r(e){switch(e){case\"1\":return\"1\";case\"2\":case\"3\":return\"2\";case\"4\":return\"3\"}}export{r as mapButtonSizeToSpinnerSize,p as mapCalloutSizeToTextSize,s as mapResponsiveProp};\n//# sourceMappingURL=map-prop-values.js.map\n"],"names":["t","o","r"],"mappings":"AAAA,SAAS,EAAE,GAAEA,GAAE;AAAC,MAAG,MAAI,OAAO,QAAO,OAAO,KAAG,WAASA,EAAE,CAAC,IAAE,OAAO,YAAY,OAAO,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC,GAAEC,CAAC,MAAI,CAAC,GAAED,EAAEC,CAAC,CAAC,CAAC,CAAC;AAAC;AAAsC,SAASC,EAAE,GAAE;AAAC,UAAO,GAAC;AAAA,IAAE,KAAI;AAAI,aAAM;AAAA,IAAI,KAAI;AAAA,IAAI,KAAI;AAAI,aAAM;AAAA,IAAI,KAAI;AAAI,aAAM;AAAA,EAAG;AAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es574.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/width.props.js"],"sourcesContent":["const t={width:{type:\"string\",className:\"rt-r-w\",customProperties:[\"--width\"],responsive:!0},minWidth:{type:\"string\",className:\"rt-r-min-w\",customProperties:[\"--min-width\"],responsive:!0},maxWidth:{type:\"string\",className:\"rt-r-max-w\",customProperties:[\"--max-width\"],responsive:!0}};export{t as widthPropDefs};\n//# sourceMappingURL=width.props.js.map\n"],"names":[],"mappings":"AAAK,MAAC,IAAE,EAAC,OAAM,EAAC,MAAK,UAAS,WAAU,UAAS,kBAAiB,CAAC,SAAS,GAAE,YAAW,GAAE,GAAE,UAAS,EAAC,MAAK,UAAS,WAAU,cAAa,kBAAiB,CAAC,aAAa,GAAE,YAAW,GAAE,GAAE,UAAS,EAAC,MAAK,UAAS,WAAU,cAAa,kBAAiB,CAAC,aAAa,GAAE,YAAW,GAAE,EAAC;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { __assign as d } from "./index.es532.js";
1
+ import { __assign as d } from "./index.es529.js";
2
2
  function l(r) {
3
3
  return r;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anoki/fse-ui",
3
- "version": "1.0.0-beta1.48.32",
3
+ "version": "1.0.0-beta1.48.34",
4
4
  "description": "FSE UI components library",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -1,2 +0,0 @@
1
- "use strict";const a=require("./index.cjs532.js"),l=require("react"),s=require("./index.cjs533.js"),i=require("./index.cjs534.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=u(l);var n=o.forwardRef(function(e,t){return o.createElement(s.RemoveScroll,a.__assign({},e,{ref:t,sideCar:i}))});n.classNames=s.RemoveScroll.classNames;module.exports=n;
2
- //# sourceMappingURL=index.cjs476.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs476.js","sources":["../node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["ReactRemoveScroll","React","props","ref","RemoveScroll","__assign","SideCar"],"mappings":"6ZAIG,IAACA,EAAoBC,EAAM,WAAW,SAAUC,EAAOC,EAAK,CAAE,OAAQF,EAAM,cAAcG,EAAAA,aAAcC,EAAAA,SAAS,CAAE,EAAEH,EAAO,CAAE,IAAKC,EAAK,QAASG,EAAS,CAAC,CAAK,CAAA,EACnKN,EAAkB,WAAaI,EAAAA,aAAa","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var k=function(r){if(typeof document>"u")return null;var u=Array.isArray(r)?r[0]:r;return u.ownerDocument.body},f=new WeakMap,v=new WeakMap,p={},h=0,b=function(r){return r&&(r.host||b(r.parentNode))},O=function(r,u){return u.map(function(t){if(r.contains(t))return t;var n=b(t);return n&&r.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",r,". Doing nothing"),null)}).filter(function(t){return!!t})},D=function(r,u,t,n){var i=O(u,Array.isArray(r)?r:[r]);p[t]||(p[t]=new WeakMap);var o=p[t],l=[],s=new Set,S=new Set(i),y=function(e){!e||s.has(e)||(s.add(e),y(e.parentNode))};i.forEach(y);var A=function(e){!e||S.has(e)||Array.prototype.forEach.call(e.children,function(a){if(s.has(a))A(a);else try{var c=a.getAttribute(n),d=c!==null&&c!=="false",w=(f.get(a)||0)+1,M=(o.get(a)||0)+1;f.set(a,w),o.set(a,M),l.push(a),w===1&&d&&v.set(a,!0),M===1&&a.setAttribute(t,"true"),d||a.setAttribute(n,"true")}catch(W){console.error("aria-hidden: cannot operate on ",a,W)}})};return A(u),s.clear(),h++,function(){l.forEach(function(e){var a=f.get(e)-1,c=o.get(e)-1;f.set(e,a),o.set(e,c),a||(v.has(e)||e.removeAttribute(n),v.delete(e)),c||e.removeAttribute(t)}),h--,h||(f=new WeakMap,f=new WeakMap,v=new WeakMap,p={})}},E=function(r,u,t){t===void 0&&(t="data-aria-hidden");var n=Array.from(Array.isArray(r)?r:[r]),i=k(r);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),D(n,i,t,"aria-hidden")):function(){return null}};exports.hideOthers=E;
2
- //# sourceMappingURL=index.cjs477.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs477.js","sources":["../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"gFAAA,IAAIA,EAAmB,SAAUC,EAAgB,CAC7C,GAAI,OAAO,SAAa,IACpB,OAAO,KAEX,IAAIC,EAAe,MAAM,QAAQD,CAAc,EAAIA,EAAe,CAAC,EAAIA,EACvE,OAAOC,EAAa,cAAc,IACtC,EACIC,EAAa,IAAI,QACjBC,EAAoB,IAAI,QACxBC,EAAY,CAAE,EACdC,EAAY,EACZC,EAAa,SAAUC,EAAM,CAC7B,OAAOA,IAASA,EAAK,MAAQD,EAAWC,EAAK,UAAU,EAC3D,EACIC,EAAiB,SAAUC,EAAQC,EAAS,CAC5C,OAAOA,EACF,IAAI,SAAUC,EAAQ,CACvB,GAAIF,EAAO,SAASE,CAAM,EACtB,OAAOA,EAEX,IAAIC,EAAkBN,EAAWK,CAAM,EACvC,OAAIC,GAAmBH,EAAO,SAASG,CAAe,EAC3CA,GAEX,QAAQ,MAAM,cAAeD,EAAQ,0BAA2BF,EAAQ,iBAAiB,EAClF,KACV,CAAA,EACI,OAAO,SAAUI,EAAG,CAAE,MAAO,EAAQA,EAAK,CACnD,EASIC,EAAyB,SAAUd,EAAgBe,EAAYC,EAAYC,EAAkB,CAC7F,IAAIP,EAAUF,EAAeO,EAAY,MAAM,QAAQf,CAAc,EAAIA,EAAiB,CAACA,CAAc,CAAC,EACrGI,EAAUY,CAAU,IACrBZ,EAAUY,CAAU,EAAI,IAAI,SAEhC,IAAIE,EAAgBd,EAAUY,CAAU,EACpCG,EAAc,CAAE,EAChBC,EAAiB,IAAI,IACrBC,EAAiB,IAAI,IAAIX,CAAO,EAChCY,EAAO,SAAUC,EAAI,CACjB,CAACA,GAAMH,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DH,EAAa,IAAI,QACjBA,EAAa,IAAI,QACjBC,EAAoB,IAAI,QACxBC,EAAY,CAAE,EAErB,CACL,EAQW0B,EAAa,SAAU9B,EAAgBe,EAAYC,EAAY,CAClEA,IAAe,SAAUA,EAAa,oBAC1C,IAAIN,EAAU,MAAM,KAAK,MAAM,QAAQV,CAAc,EAAIA,EAAiB,CAACA,CAAc,CAAC,EACtF+B,EAAiChC,EAAiBC,CAAc,EACpE,OAAK+B,GAILrB,EAAQ,KAAK,MAAMA,EAAS,MAAM,KAAKqB,EAAiB,iBAAiB,aAAa,CAAC,CAAC,EACjFjB,EAAuBJ,EAASqB,EAAkBf,EAAY,aAAa,GAJvE,UAAY,CAAE,OAAO,IAAO,CAK3C","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),b=require("./index.cjs457.js"),u=require("./index.cjs244.js");function x(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=x(g);function d(e){const t=j(e),r=l.forwardRef((n,o)=>{const{children:i,...c}=n,s=l.Children.toArray(i),f=s.find(E);if(f){const a=f.props.children,S=s.map(p=>p===f?l.Children.count(a)>1?l.Children.only(null):l.isValidElement(a)?a.props.children:null:p);return u.jsxRuntimeExports.jsx(t,{...c,ref:o,children:l.isValidElement(a)?l.cloneElement(a,void 0,S):null})}return u.jsxRuntimeExports.jsx(t,{...c,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var m=d("Slot");function j(e){const t=l.forwardRef((r,n)=>{const{children:o,...i}=r;if(l.isValidElement(o)){const c=C(o),s=O(i,o.props);return o.type!==l.Fragment&&(s.ref=n?b.composeRefs(n,c):c),l.cloneElement(o,s)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var y=Symbol("radix.slottable");function R(e){const t=({children:r})=>u.jsxRuntimeExports.jsx(u.jsxRuntimeExports.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=y,t}function E(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===y}function O(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{i(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function C(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}exports.Root=m;exports.Slot=m;exports.createSlot=d;exports.createSlottable=R;
2
- //# sourceMappingURL=index.cjs478.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs478.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","Slot","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":"icAKA,SAASA,EAAWC,EAAW,CAC7B,MAAMC,EAA4BC,EAAgBF,CAAS,EACrDG,EAAQC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACtD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAgBL,EAAM,SAAS,QAAQG,CAAQ,EAC/CG,EAAYD,EAAc,KAAKE,CAAW,EAChD,GAAID,EAAW,CACb,MAAME,EAAaF,EAAU,MAAM,SAC7BG,EAAcJ,EAAc,IAAKK,GACjCA,IAAUJ,EACRN,EAAM,SAAS,MAAMQ,CAAU,EAAI,EAAUR,EAAM,SAAS,KAAK,IAAI,EAClEA,EAAM,eAAeQ,CAAU,EAAIA,EAAW,MAAM,SAAW,KAE/DE,CAEV,EACD,OAAuBC,EAAAA,kBAAAA,IAAId,EAAW,CAAE,GAAG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AAMC,EAAgB,CAAE,GAAGD,CAAY,EACvC,UAAWE,KAAYF,EAAY,CACjC,MAAMG,EAAgBrB,EAAUoB,CAAQ,EAClCE,EAAiBJ,EAAWE,CAAQ,EACxB,WAAW,KAAKA,CAAQ,EAEpCC,GAAiBC,EACnBH,EAAcC,CAAQ,EAAI,IAAIG,IAAS,CACrCD,EAAe,GAAGC,CAAI,EACtBF,EAAc,GAAGE,CAAI,CACtB,EACQF,IACTF,EAAcC,CAAQ,EAAIC,GAEnBD,IAAa,QACtBD,EAAcC,CAAQ,EAAI,CAAE,GAAGC,EAAe,GAAGC,CAAgB,EACxDF,IAAa,cACtBD,EAAcC,CAAQ,EAAI,CAACC,EAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAExF,CACE,MAAO,CAAE,GAAGtB,EAAW,GAAGmB,CAAe,CAC3C,CACA,SAAST,EAAcc,EAAS,SAC9B,IAAIC,GAASC,EAAA,OAAO,yBAAyBF,EAAQ,MAAO,KAAK,IAApD,YAAAE,EAAuD,IAChEC,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eAC7D,OAAIE,EACKH,EAAQ,KAEjBC,GAASG,EAAA,OAAO,yBAAyBJ,EAAS,KAAK,IAA9C,YAAAI,EAAiD,IAC1DD,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eACrDE,EACKH,EAAQ,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs497.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs498.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import { __assign as m } from "./index.es532.js";
2
- import * as r from "react";
3
- import { RemoveScroll as e } from "./index.es533.js";
4
- import t from "./index.es534.js";
5
- var s = r.forwardRef(function(a, o) {
6
- return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
7
- });
8
- s.classNames = e.classNames;
9
- export {
10
- s as default
11
- };
12
- //# sourceMappingURL=index.es476.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es476.js","sources":["../node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["ReactRemoveScroll","React","props","ref","RemoveScroll","__assign","SideCar"],"mappings":";;;;AAIG,IAACA,IAAoBC,EAAM,WAAW,SAAUC,GAAOC,GAAK;AAAE,SAAQF,EAAM,cAAcG,GAAcC,EAAS,CAAE,GAAEH,GAAO,EAAE,KAAKC,GAAK,SAASG,GAAS,CAAC;AAAK,CAAA;AACnKN,EAAkB,aAAaI,EAAa;","x_google_ignoreList":[0]}
@@ -1,53 +0,0 @@
1
- var S = function(r) {
2
- if (typeof document > "u")
3
- return null;
4
- var u = Array.isArray(r) ? r[0] : r;
5
- return u.ownerDocument.body;
6
- }, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
7
- return r && (r.host || W(r.parentNode));
8
- }, D = function(r, u) {
9
- return u.map(function(e) {
10
- if (r.contains(e))
11
- return e;
12
- var n = W(e);
13
- return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
14
- }).filter(function(e) {
15
- return !!e;
16
- });
17
- }, E = function(r, u, e, n) {
18
- var i = D(u, Array.isArray(r) ? r : [r]);
19
- p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
20
- var o = p[e], l = [], s = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
21
- !t || s.has(t) || (s.add(t), y(t.parentNode));
22
- };
23
- i.forEach(y);
24
- var A = function(t) {
25
- !t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
26
- if (s.has(a))
27
- A(a);
28
- else
29
- try {
30
- var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (o.get(a) || 0) + 1;
31
- f.set(a, d), o.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
32
- } catch (k) {
33
- console.error("aria-hidden: cannot operate on ", a, k);
34
- }
35
- });
36
- };
37
- return A(u), s.clear(), h++, function() {
38
- l.forEach(function(t) {
39
- var a = f.get(t) - 1, c = o.get(t) - 1;
40
- f.set(t, a), o.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
41
- }), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
42
- };
43
- }, C = function(r, u, e) {
44
- e === void 0 && (e = "data-aria-hidden");
45
- var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
46
- return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live]"))), E(n, i, e, "aria-hidden")) : function() {
47
- return null;
48
- };
49
- };
50
- export {
51
- C as hideOthers
52
- };
53
- //# sourceMappingURL=index.es477.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es477.js","sources":["../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"AAAA,IAAIA,IAAmB,SAAUC,GAAgB;AAC7C,MAAI,OAAO,WAAa;AACpB,WAAO;AAEX,MAAIC,IAAe,MAAM,QAAQD,CAAc,IAAIA,EAAe,CAAC,IAAIA;AACvE,SAAOC,EAAa,cAAc;AACtC,GACIC,IAAa,oBAAI,QAAS,GAC1BC,IAAoB,oBAAI,QAAS,GACjCC,IAAY,CAAE,GACdC,IAAY,GACZC,IAAa,SAAUC,GAAM;AAC7B,SAAOA,MAASA,EAAK,QAAQD,EAAWC,EAAK,UAAU;AAC3D,GACIC,IAAiB,SAAUC,GAAQC,GAAS;AAC5C,SAAOA,EACF,IAAI,SAAUC,GAAQ;AACvB,QAAIF,EAAO,SAASE,CAAM;AACtB,aAAOA;AAEX,QAAIC,IAAkBN,EAAWK,CAAM;AACvC,WAAIC,KAAmBH,EAAO,SAASG,CAAe,IAC3CA,KAEX,QAAQ,MAAM,eAAeD,GAAQ,2BAA2BF,GAAQ,iBAAiB,GAClF;AAAA,EACV,CAAA,EACI,OAAO,SAAUI,GAAG;AAAE,WAAO,EAAQA;AAAA,GAAK;AACnD,GASIC,IAAyB,SAAUd,GAAgBe,GAAYC,GAAYC,GAAkB;AAC7F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,MAAO,GACtBf,KACO,WAAY;AACf,IAAAc,EAAY,QAAQ,SAAUZ,GAAM;AAChC,UAAIoB,IAAezB,EAAW,IAAIK,CAAI,IAAI,GACtCqB,IAAcV,EAAc,IAAIX,CAAI,IAAI;AAC5C,MAAAL,EAAW,IAAIK,GAAMoB,CAAY,GACjCT,EAAc,IAAIX,GAAMqB,CAAW,GAC9BD,MACIxB,EAAkB,IAAII,CAAI,KAC3BA,EAAK,gBAAgBU,CAAgB,GAEzCd,EAAkB,OAAOI,CAAI,IAE5BqB,KACDrB,EAAK,gBAAgBS,CAAU;AAAA,IAE/C,CAAS,GACDX,KACKA,MAEDH,IAAa,oBAAI,QAAS,GAC1BA,IAAa,oBAAI,QAAS,GAC1BC,IAAoB,oBAAI,QAAS,GACjCC,IAAY,CAAE;AAAA,EAErB;AACL,GAQW0B,IAAa,SAAU9B,GAAgBe,GAAYC,GAAY;AACtE,EAAIA,MAAe,WAAUA,IAAa;AAC1C,MAAIN,IAAU,MAAM,KAAK,MAAM,QAAQV,CAAc,IAAIA,IAAiB,CAACA,CAAc,CAAC,GACtF+B,IAAiChC,EAAiBC,CAAc;AACpE,SAAK+B,KAILrB,EAAQ,KAAK,MAAMA,GAAS,MAAM,KAAKqB,EAAiB,iBAAiB,aAAa,CAAC,CAAC,GACjFjB,EAAuBJ,GAASqB,GAAkBf,GAAY,aAAa,KAJvE,WAAY;AAAE,WAAO;AAAA,EAAO;AAK3C;","x_google_ignoreList":[0]}
@@ -1,59 +0,0 @@
1
- import * as l from "react";
2
- import { composeRefs as y } from "./index.es457.js";
3
- import { j as f } from "./index.es244.js";
4
- // @__NO_SIDE_EFFECTS__
5
- function S(e) {
6
- const t = /* @__PURE__ */ g(e), o = l.forwardRef((n, r) => {
7
- const { children: i, ...a } = n, s = l.Children.toArray(i), p = s.find(E);
8
- if (p) {
9
- const c = p.props.children, m = s.map((u) => u === p ? l.Children.count(c) > 1 ? l.Children.only(null) : l.isValidElement(c) ? c.props.children : null : u);
10
- return /* @__PURE__ */ f.jsx(t, { ...a, ref: r, children: l.isValidElement(c) ? l.cloneElement(c, void 0, m) : null });
11
- }
12
- return /* @__PURE__ */ f.jsx(t, { ...a, ref: r, children: i });
13
- });
14
- return o.displayName = `${e}.Slot`, o;
15
- }
16
- var h = /* @__PURE__ */ S("Slot");
17
- // @__NO_SIDE_EFFECTS__
18
- function g(e) {
19
- const t = l.forwardRef((o, n) => {
20
- const { children: r, ...i } = o;
21
- if (l.isValidElement(r)) {
22
- const a = x(r), s = R(i, r.props);
23
- return r.type !== l.Fragment && (s.ref = n ? y(n, a) : a), l.cloneElement(r, s);
24
- }
25
- return l.Children.count(r) > 1 ? l.Children.only(null) : null;
26
- });
27
- return t.displayName = `${e}.SlotClone`, t;
28
- }
29
- var d = Symbol("radix.slottable");
30
- // @__NO_SIDE_EFFECTS__
31
- function j(e) {
32
- const t = ({ children: o }) => /* @__PURE__ */ f.jsx(f.Fragment, { children: o });
33
- return t.displayName = `${e}.Slottable`, t.__radixId = d, t;
34
- }
35
- function E(e) {
36
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === d;
37
- }
38
- function R(e, t) {
39
- const o = { ...t };
40
- for (const n in t) {
41
- const r = e[n], i = t[n];
42
- /^on[A-Z]/.test(n) ? r && i ? o[n] = (...s) => {
43
- i(...s), r(...s);
44
- } : r && (o[n] = r) : n === "style" ? o[n] = { ...r, ...i } : n === "className" && (o[n] = [r, i].filter(Boolean).join(" "));
45
- }
46
- return { ...e, ...o };
47
- }
48
- function x(e) {
49
- var n, r;
50
- let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning;
51
- return o ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
52
- }
53
- export {
54
- h as Root,
55
- h as Slot,
56
- S as createSlot,
57
- j as createSlottable
58
- };
59
- //# sourceMappingURL=index.es478.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es478.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","Slot","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":";;;;AAKA,SAASA,EAAWC,GAAW;AAC7B,QAAMC,IAA4B,gBAAAC,EAAgBF,CAAS,GACrDG,IAAQC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACtD,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,GAC/CG,IAAYD,EAAc,KAAKE,CAAW;AAChD,QAAID,GAAW;AACb,YAAME,IAAaF,EAAU,MAAM,UAC7BG,IAAcJ,EAAc,IAAI,CAACK,MACjCA,MAAUJ,IACRN,EAAM,SAAS,MAAMQ,CAAU,IAAI,IAAUR,EAAM,SAAS,KAAK,IAAI,IAClEA,EAAM,eAAeQ,CAAU,IAAIA,EAAW,MAAM,WAAW,OAE/DE,CAEV;AACD,aAAuBC,gBAAAA,EAAAA,IAAId,GAAW,EAAE,GAAGO,GAAW,KAAKF,GAAc,UAAUF,EAAM,eAAeQ,CAAU,IAAIR,EAAM,aAAaQ,GAAY,QAAQC,CAAW,IAAI,MAAM;AAAA,IACxL;AACI,WAAuBE,gBAAAA,EAAAA,IAAId,GAAW,EAAE,GAAGO,GAAW,KAAKF,GAAc,UAAAC,GAAU;AAAA,EACvF,CAAG;AACD,SAAAJ,EAAM,cAAc,GAAGH,CAAS,SACzBG;AACT;AACG,IAACa,IAAuB,gBAAAjB,EAAW,MAAM;AAAA;AAE5C,SAASG,EAAgBF,GAAW;AAClC,QAAMC,IAAYG,EAAM,WAAW,CAACC,GAAOC,MAAiB;AAC1D,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH;AACnC,QAAID,EAAM,eAAeG,CAAQ,GAAG;AAClC,YAAMU,IAAcC,EAAcX,CAAQ,GACpCY,IAASC,EAAWZ,GAAWD,EAAS,KAAK;AACnD,aAAIA,EAAS,SAASH,EAAM,aAC1Be,EAAO,MAAM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Acc,GAAS;;AAC9B,MAAIC,KAASC,IAAA,OAAO,yBAAyBF,EAAQ,OAAO,KAAK,MAApD,gBAAAE,EAAuD,KAChEC,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIE,IACKH,EAAQ,OAEjBC,KAASG,IAAA,OAAO,yBAAyBJ,GAAS,KAAK,MAA9C,gBAAAI,EAAiD,KAC1DD,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDE,IACKH,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es497.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es498.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}