markdown-flow-ui 0.3.5 → 0.3.7

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 (352) hide show
  1. package/dist/_virtual/index8.cjs +1 -1
  2. package/dist/_virtual/index8.es.js +2 -2
  3. package/dist/_virtual/index9.cjs +1 -1
  4. package/dist/_virtual/index9.es.js +2 -2
  5. package/dist/assets/markdown-flow-ui.css +1 -1
  6. package/dist/components/ContentRender/ContentRender.cjs +2 -2
  7. package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
  8. package/dist/components/ContentRender/ContentRender.d.ts +2 -0
  9. package/dist/components/ContentRender/ContentRender.es.js +513 -509
  10. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  11. package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
  12. package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
  13. package/dist/components/ContentRender/MarkdownFlowInput.d.ts +2 -0
  14. package/dist/components/ContentRender/MarkdownFlowInput.es.js +40 -38
  15. package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
  16. package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
  17. package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
  18. package/dist/components/ContentRender/plugins/CustomVariable.d.ts +2 -1
  19. package/dist/components/ContentRender/plugins/CustomVariable.es.js +110 -90
  20. package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
  21. package/dist/components/ContentRender/utils/accept-placeholder.cjs +2 -0
  22. package/dist/components/ContentRender/utils/accept-placeholder.cjs.map +1 -0
  23. package/dist/components/ContentRender/utils/accept-placeholder.d.ts +3 -0
  24. package/dist/components/ContentRender/utils/accept-placeholder.es.js +10 -0
  25. package/dist/components/ContentRender/utils/accept-placeholder.es.js.map +1 -0
  26. package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
  27. package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
  28. package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +2 -0
  29. package/dist/components/MarkdownFlow/MarkdownFlow.es.js +23 -21
  30. package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
  31. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs +3 -3
  32. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs.map +1 -1
  33. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js +145 -143
  34. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
  35. package/dist/components/Slide/Slide.cjs +1 -1
  36. package/dist/components/Slide/Slide.cjs.map +1 -1
  37. package/dist/components/Slide/Slide.d.ts +2 -0
  38. package/dist/components/Slide/Slide.es.js +348 -344
  39. package/dist/components/Slide/Slide.es.js.map +1 -1
  40. package/dist/markdown-flow-ui-lib.css +1 -1
  41. package/dist/markdown-flow-ui.css +1 -1
  42. package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs +1 -1
  43. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  44. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -0
  45. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -0
  46. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  47. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  48. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +92 -89
  49. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
  50. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +2 -0
  51. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -0
  52. package/dist/node_modules/@radix-ui/{react-tooltip/node_modules/@radix-ui/react-popper → react-popper}/dist/index.es.js +5 -5
  53. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -0
  54. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  55. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  56. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +50 -47
  57. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  58. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  59. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  60. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +9 -9
  61. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +1 -1
  62. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -1
  63. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +10 -7
  64. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -1
  65. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
  66. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
  67. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +1 -1
  68. package/dist/node_modules/classnames/index.cjs +1 -1
  69. package/dist/node_modules/classnames/index.es.js +1 -1
  70. package/dist/node_modules/i18next/dist/esm/i18next.cjs +1 -1
  71. package/dist/node_modules/i18next/dist/esm/i18next.cjs.map +1 -1
  72. package/dist/node_modules/i18next/dist/esm/i18next.es.js +809 -900
  73. package/dist/node_modules/i18next/dist/esm/i18next.es.js.map +1 -1
  74. package/dist/node_modules/katex/dist/katex.cjs +14 -14
  75. package/dist/node_modules/katex/dist/katex.cjs.map +1 -1
  76. package/dist/node_modules/katex/dist/katex.es.js +1302 -1192
  77. package/dist/node_modules/katex/dist/katex.es.js.map +1 -1
  78. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs +1 -1
  79. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs.map +1 -1
  80. package/dist/node_modules/lucide-react/dist/esm/Icon.es.js +52 -29
  81. package/dist/node_modules/lucide-react/dist/esm/Icon.es.js.map +1 -1
  82. package/dist/node_modules/lucide-react/dist/esm/context.cjs +2 -0
  83. package/dist/node_modules/lucide-react/dist/esm/context.cjs.map +1 -0
  84. package/dist/node_modules/lucide-react/dist/esm/context.es.js +6 -0
  85. package/dist/node_modules/lucide-react/dist/esm/context.es.js.map +1 -0
  86. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs +1 -1
  87. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs.map +1 -1
  88. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.es.js +13 -16
  89. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.es.js.map +1 -1
  90. package/dist/node_modules/lucide-react/dist/esm/icons/captions-off.cjs +1 -1
  91. package/dist/node_modules/lucide-react/dist/esm/icons/captions-off.cjs.map +1 -1
  92. package/dist/node_modules/lucide-react/dist/esm/icons/captions-off.es.js +16 -10
  93. package/dist/node_modules/lucide-react/dist/esm/icons/captions-off.es.js.map +1 -1
  94. package/dist/node_modules/lucide-react/dist/esm/icons/captions.cjs +1 -1
  95. package/dist/node_modules/lucide-react/dist/esm/icons/captions.cjs.map +1 -1
  96. package/dist/node_modules/lucide-react/dist/esm/icons/captions.es.js +13 -6
  97. package/dist/node_modules/lucide-react/dist/esm/icons/captions.es.js.map +1 -1
  98. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs +1 -1
  99. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs.map +1 -1
  100. package/dist/node_modules/lucide-react/dist/esm/icons/check.es.js +8 -2
  101. package/dist/node_modules/lucide-react/dist/esm/icons/check.es.js.map +1 -1
  102. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.cjs +1 -1
  103. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.cjs.map +1 -1
  104. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.es.js +10 -4
  105. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.es.js.map +1 -1
  106. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs +1 -1
  107. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs.map +1 -1
  108. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js +12 -6
  109. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js.map +1 -1
  110. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.cjs +1 -1
  111. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.cjs.map +1 -1
  112. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.es.js +14 -7
  113. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.es.js.map +1 -1
  114. package/dist/node_modules/lucide-react/dist/esm/icons/copy.cjs +1 -1
  115. package/dist/node_modules/lucide-react/dist/esm/icons/copy.cjs.map +1 -1
  116. package/dist/node_modules/lucide-react/dist/esm/icons/copy.es.js +11 -5
  117. package/dist/node_modules/lucide-react/dist/esm/icons/copy.es.js.map +1 -1
  118. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.cjs +1 -1
  119. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.cjs.map +1 -1
  120. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js +13 -6
  121. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js.map +1 -1
  122. package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.cjs +1 -1
  123. package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.cjs.map +1 -1
  124. package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.es.js +22 -7
  125. package/dist/node_modules/lucide-react/dist/esm/icons/fast-forward.es.js.map +1 -1
  126. package/dist/node_modules/lucide-react/dist/esm/icons/file-type.cjs +1 -1
  127. package/dist/node_modules/lucide-react/dist/esm/icons/file-type.cjs.map +1 -1
  128. package/dist/node_modules/lucide-react/dist/esm/icons/file-type.es.js +20 -8
  129. package/dist/node_modules/lucide-react/dist/esm/icons/file-type.es.js.map +1 -1
  130. package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.cjs +1 -1
  131. package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.cjs.map +1 -1
  132. package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js +17 -11
  133. package/dist/node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js.map +1 -1
  134. package/dist/node_modules/lucide-react/dist/esm/icons/image.cjs +1 -1
  135. package/dist/node_modules/lucide-react/dist/esm/icons/image.cjs.map +1 -1
  136. package/dist/node_modules/lucide-react/dist/esm/icons/image.es.js +14 -8
  137. package/dist/node_modules/lucide-react/dist/esm/icons/image.es.js.map +1 -1
  138. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.cjs +1 -1
  139. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.cjs.map +1 -1
  140. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.es.js +11 -4
  141. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.es.js.map +1 -1
  142. package/dist/node_modules/lucide-react/dist/esm/icons/maximize.cjs +1 -1
  143. package/dist/node_modules/lucide-react/dist/esm/icons/maximize.cjs.map +1 -1
  144. package/dist/node_modules/lucide-react/dist/esm/icons/maximize.es.js +15 -9
  145. package/dist/node_modules/lucide-react/dist/esm/icons/maximize.es.js.map +1 -1
  146. package/dist/node_modules/lucide-react/dist/esm/icons/rewind.cjs +1 -1
  147. package/dist/node_modules/lucide-react/dist/esm/icons/rewind.cjs.map +1 -1
  148. package/dist/node_modules/lucide-react/dist/esm/icons/rewind.es.js +25 -7
  149. package/dist/node_modules/lucide-react/dist/esm/icons/rewind.es.js.map +1 -1
  150. package/dist/node_modules/lucide-react/dist/esm/icons/scan-line.cjs +1 -1
  151. package/dist/node_modules/lucide-react/dist/esm/icons/scan-line.cjs.map +1 -1
  152. package/dist/node_modules/lucide-react/dist/esm/icons/scan-line.es.js +16 -10
  153. package/dist/node_modules/lucide-react/dist/esm/icons/scan-line.es.js.map +1 -1
  154. package/dist/node_modules/lucide-react/dist/esm/icons/skip-back.cjs +1 -1
  155. package/dist/node_modules/lucide-react/dist/esm/icons/skip-back.cjs.map +1 -1
  156. package/dist/node_modules/lucide-react/dist/esm/icons/skip-back.es.js +19 -7
  157. package/dist/node_modules/lucide-react/dist/esm/icons/skip-back.es.js.map +1 -1
  158. package/dist/node_modules/lucide-react/dist/esm/icons/skip-forward.cjs +1 -1
  159. package/dist/node_modules/lucide-react/dist/esm/icons/skip-forward.cjs.map +1 -1
  160. package/dist/node_modules/lucide-react/dist/esm/icons/skip-forward.es.js +19 -7
  161. package/dist/node_modules/lucide-react/dist/esm/icons/skip-forward.es.js.map +1 -1
  162. package/dist/node_modules/lucide-react/dist/esm/icons/square-check.cjs +1 -1
  163. package/dist/node_modules/lucide-react/dist/esm/icons/square-check.cjs.map +1 -1
  164. package/dist/node_modules/lucide-react/dist/esm/icons/square-check.es.js +14 -7
  165. package/dist/node_modules/lucide-react/dist/esm/icons/square-check.es.js.map +1 -1
  166. package/dist/node_modules/lucide-react/dist/esm/icons/square-play.cjs +1 -1
  167. package/dist/node_modules/lucide-react/dist/esm/icons/square-play.cjs.map +1 -1
  168. package/dist/node_modules/lucide-react/dist/esm/icons/square-play.es.js +19 -6
  169. package/dist/node_modules/lucide-react/dist/esm/icons/square-play.es.js.map +1 -1
  170. package/dist/node_modules/lucide-react/dist/esm/icons/text-cursor-input.cjs +1 -1
  171. package/dist/node_modules/lucide-react/dist/esm/icons/text-cursor-input.cjs.map +1 -1
  172. package/dist/node_modules/lucide-react/dist/esm/icons/text-cursor-input.es.js +15 -9
  173. package/dist/node_modules/lucide-react/dist/esm/icons/text-cursor-input.es.js.map +1 -1
  174. package/dist/node_modules/lucide-react/dist/esm/icons/upload.cjs +1 -1
  175. package/dist/node_modules/lucide-react/dist/esm/icons/upload.cjs.map +1 -1
  176. package/dist/node_modules/lucide-react/dist/esm/icons/upload.es.js +13 -7
  177. package/dist/node_modules/lucide-react/dist/esm/icons/upload.es.js.map +1 -1
  178. package/dist/node_modules/lucide-react/dist/esm/icons/volume-2.cjs +1 -1
  179. package/dist/node_modules/lucide-react/dist/esm/icons/volume-2.cjs.map +1 -1
  180. package/dist/node_modules/lucide-react/dist/esm/icons/volume-2.es.js +19 -13
  181. package/dist/node_modules/lucide-react/dist/esm/icons/volume-2.es.js.map +1 -1
  182. package/dist/node_modules/lucide-react/dist/esm/icons/x.cjs +1 -1
  183. package/dist/node_modules/lucide-react/dist/esm/icons/x.cjs.map +1 -1
  184. package/dist/node_modules/lucide-react/dist/esm/icons/x.es.js +13 -7
  185. package/dist/node_modules/lucide-react/dist/esm/icons/x.es.js.map +1 -1
  186. package/dist/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.cjs +2 -0
  187. package/dist/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.cjs.map +1 -0
  188. package/dist/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.es.js +18 -0
  189. package/dist/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.es.js.map +1 -0
  190. package/dist/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.cjs +2 -0
  191. package/dist/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.cjs.map +1 -0
  192. package/dist/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.es.js +44 -0
  193. package/dist/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.es.js.map +1 -0
  194. package/dist/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.cjs +2 -0
  195. package/dist/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.cjs.map +1 -0
  196. package/dist/node_modules/lucide-react/dist/esm/{defaultAttributes.es.js → shared/src/build/defaultAttributes.es.js} +4 -4
  197. package/dist/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.es.js.map +1 -0
  198. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.cjs +2 -0
  199. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.cjs.map +1 -0
  200. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.es.js +10 -0
  201. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.es.js.map +1 -0
  202. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.cjs +2 -0
  203. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.cjs.map +1 -0
  204. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.es.js +5 -0
  205. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.es.js.map +1 -0
  206. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.cjs +2 -0
  207. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.cjs.map +1 -0
  208. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.es.js +15 -0
  209. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.es.js.map +1 -0
  210. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.cjs +2 -0
  211. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.cjs.map +1 -0
  212. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.es.js +5 -0
  213. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.es.js.map +1 -0
  214. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.cjs +2 -0
  215. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.cjs.map +1 -0
  216. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.es.js +15 -0
  217. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.es.js.map +1 -0
  218. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.cjs +2 -0
  219. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.cjs.map +1 -0
  220. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.es.js +9 -0
  221. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.es.js.map +1 -0
  222. package/dist/node_modules/micromark/lib/create-tokenizer.cjs +3 -3
  223. package/dist/node_modules/micromark/lib/create-tokenizer.cjs.map +1 -1
  224. package/dist/node_modules/micromark/lib/create-tokenizer.es.js +78 -76
  225. package/dist/node_modules/micromark/lib/create-tokenizer.es.js.map +1 -1
  226. package/dist/node_modules/micromark/lib/initialize/document.cjs +1 -1
  227. package/dist/node_modules/micromark/lib/initialize/document.cjs.map +1 -1
  228. package/dist/node_modules/micromark/lib/initialize/document.es.js +77 -75
  229. package/dist/node_modules/micromark/lib/initialize/document.es.js.map +1 -1
  230. package/dist/node_modules/micromark/lib/initialize/text.cjs +1 -1
  231. package/dist/node_modules/micromark/lib/initialize/text.cjs.map +1 -1
  232. package/dist/node_modules/micromark/lib/initialize/text.es.js +67 -64
  233. package/dist/node_modules/micromark/lib/initialize/text.es.js.map +1 -1
  234. package/dist/node_modules/micromark/lib/preprocess.cjs +1 -1
  235. package/dist/node_modules/micromark/lib/preprocess.cjs.map +1 -1
  236. package/dist/node_modules/micromark/lib/preprocess.es.js +19 -14
  237. package/dist/node_modules/micromark/lib/preprocess.es.js.map +1 -1
  238. package/dist/node_modules/micromark-core-commonmark/lib/attention.cjs +1 -1
  239. package/dist/node_modules/micromark-core-commonmark/lib/attention.cjs.map +1 -1
  240. package/dist/node_modules/micromark-core-commonmark/lib/attention.es.js +36 -32
  241. package/dist/node_modules/micromark-core-commonmark/lib/attention.es.js.map +1 -1
  242. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.cjs +1 -1
  243. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.cjs.map +1 -1
  244. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.es.js +49 -61
  245. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.es.js.map +1 -1
  246. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.cjs +1 -1
  247. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.cjs.map +1 -1
  248. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.es.js +21 -27
  249. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.es.js.map +1 -1
  250. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.cjs +1 -1
  251. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.cjs.map +1 -1
  252. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.es.js +18 -14
  253. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.es.js.map +1 -1
  254. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.cjs +1 -1
  255. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.cjs.map +1 -1
  256. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.es.js +59 -71
  257. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.es.js.map +1 -1
  258. package/dist/node_modules/micromark-core-commonmark/lib/label-end.cjs +1 -1
  259. package/dist/node_modules/micromark-core-commonmark/lib/label-end.cjs.map +1 -1
  260. package/dist/node_modules/micromark-core-commonmark/lib/label-end.es.js +87 -85
  261. package/dist/node_modules/micromark-core-commonmark/lib/label-end.es.js.map +1 -1
  262. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.cjs +1 -1
  263. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.cjs.map +1 -1
  264. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.es.js +11 -10
  265. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.es.js.map +1 -1
  266. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.cjs +1 -1
  267. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.cjs.map +1 -1
  268. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.es.js +12 -11
  269. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.es.js.map +1 -1
  270. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.cjs +2 -0
  271. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.cjs.map +1 -0
  272. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.es.js +18 -0
  273. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.es.js.map +1 -0
  274. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.cjs +1 -1
  275. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.cjs.map +1 -1
  276. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.es.js +35 -33
  277. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.es.js.map +1 -1
  278. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.cjs +1 -1
  279. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.cjs.map +1 -1
  280. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.es.js +32 -28
  281. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.es.js.map +1 -1
  282. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.cjs +1 -1
  283. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.cjs.map +1 -1
  284. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.es.js +18 -14
  285. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.es.js.map +1 -1
  286. package/dist/node_modules/micromark-factory-space/index.cjs +1 -1
  287. package/dist/node_modules/micromark-factory-space/index.cjs.map +1 -1
  288. package/dist/node_modules/micromark-factory-space/index.es.js +24 -10
  289. package/dist/node_modules/micromark-factory-space/index.es.js.map +1 -1
  290. package/dist/node_modules/micromark-util-edit-map/index.cjs +2 -0
  291. package/dist/node_modules/micromark-util-edit-map/index.cjs.map +1 -0
  292. package/dist/node_modules/micromark-util-edit-map/index.es.js +83 -0
  293. package/dist/node_modules/micromark-util-edit-map/index.es.js.map +1 -0
  294. package/package.json +24 -17
  295. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.cjs +0 -2
  296. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.cjs.map +0 -1
  297. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.es.js +0 -50
  298. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.es.js.map +0 -1
  299. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +0 -1
  300. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +0 -1
  301. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.cjs +0 -2
  302. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.cjs.map +0 -1
  303. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.es.js +0 -82
  304. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.es.js.map +0 -1
  305. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +0 -2
  306. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +0 -1
  307. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +0 -216
  308. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +0 -1
  309. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +0 -2
  310. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +0 -1
  311. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +0 -105
  312. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +0 -1
  313. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs +0 -2
  314. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs.map +0 -1
  315. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js.map +0 -1
  316. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs +0 -2
  317. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs.map +0 -1
  318. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.es.js +0 -18
  319. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.es.js.map +0 -1
  320. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
  321. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
  322. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.es.js +0 -39
  323. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
  324. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs +0 -2
  325. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs.map +0 -1
  326. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js +0 -99
  327. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js.map +0 -1
  328. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
  329. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
  330. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -16
  331. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
  332. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +0 -2
  333. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +0 -1
  334. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +0 -70
  335. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +0 -1
  336. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
  337. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
  338. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.es.js +0 -39
  339. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
  340. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs +0 -2
  341. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs.map +0 -1
  342. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js +0 -99
  343. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js.map +0 -1
  344. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs +0 -2
  345. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs.map +0 -1
  346. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.es.js.map +0 -1
  347. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs +0 -2
  348. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs.map +0 -1
  349. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.es.js +0 -19
  350. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.es.js.map +0 -1
  351. /package/dist/node_modules/@radix-ui/{react-tooltip/node_modules/@radix-ui/react-arrow → react-arrow}/dist/index.cjs +0 -0
  352. /package/dist/node_modules/@radix-ui/{react-tooltip/node_modules/@radix-ui/react-arrow → react-arrow}/dist/index.es.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../../../../node_modules/@radix-ui/react-popper/dist/index.mjs"],"sourcesContent":["\"use client\";\nvar __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/popper.tsx\nimport * as React from \"react\";\nimport {\n useFloating,\n autoUpdate,\n offset,\n shift,\n limitShift,\n hide,\n arrow as floatingUIarrow,\n flip,\n size\n} from \"@floating-ui/react-dom\";\nimport * as ArrowPrimitive from \"@radix-ui/react-arrow\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nvar ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nvar Sticky = {\n Partial: \"partial\",\n Always: \"always\"\n};\nvar UpdatePositionStrategy = {\n Optimized: \"optimized\",\n Always: \"always\"\n};\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = /* @__PURE__ */ __name((props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n const [placementState, setPlacementState] = React.useState(void 0);\n return /* @__PURE__ */ jsx(\n PopperProvider,\n {\n scope: __scopePopper,\n anchor,\n onAnchorChange: setAnchor,\n placementState,\n setPlacementState,\n children\n }\n );\n}, \"Popper\");\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function PopperAnchor2(props, forwardedRef) {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const onAnchorChange = context.onAnchorChange;\n const callbackRef = React.useCallback(\n (node) => {\n ref.current = node;\n if (node) {\n onAnchorChange(node);\n }\n },\n [onAnchorChange]\n );\n const composedRefs = useComposedRefs(forwardedRef, callbackRef);\n const anchorRef = React.useRef(null);\n React.useEffect(() => {\n if (!virtualRef) {\n return;\n }\n const previousAnchor = anchorRef.current;\n anchorRef.current = virtualRef.current;\n if (previousAnchor !== anchorRef.current) {\n onAnchorChange(anchorRef.current);\n }\n });\n const sideAndAlign = context.placementState && getSideAndAlignFromPlacement(context.placementState);\n const placedSide = sideAndAlign?.[0];\n const placedAlign = sideAndAlign?.[1];\n return virtualRef ? null : /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-radix-popper-side\": placedSide,\n \"data-radix-popper-align\": placedAlign,\n ...anchorProps,\n ref: composedRefs\n }\n );\n }, \"PopperAnchor\")\n);\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function PopperContent2(props, forwardedRef) {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = Sticky.Partial,\n hideWhenDetached = false,\n updatePositionStrategy = UpdatePositionStrategy.Optimized,\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, setContent);\n const [arrow, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: /* @__PURE__ */ __name((...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === UpdatePositionStrategy.Always\n });\n return cleanup;\n }, \"whileElementsMounted\"),\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n // Spread rather than passing `limiter: undefined`, which\n // `exactOptionalPropertyTypes` rejects for Floating UI's optional option.\n ...sticky === Sticky.Partial ? { limiter: limitShift() } : {},\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: /* @__PURE__ */ __name(({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }, \"apply\")\n }),\n arrow && floatingUIarrow({ element: arrow, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && // `hide` detects whether the anchor (reference) is clipped, so when\n // no explicit `collisionBoundary` is set we omit `boundary` entirely\n // and fall back to Floating UI's default clipping ancestors (e.g. a\n // scrollable menu). This lets an occluded submenu hide once its anchor\n // scrolls out of view (#3237). The collision/size middlewares\n // deliberately keep the viewport-based default to avoid clamping\n // content rendered inside transformed or overflow-clipping portal\n // containers. The key is omitted rather than set to `undefined`\n // because `exactOptionalPropertyTypes` rejects the explicit value.\n hide(\n hasExplicitBoundaries ? { strategy: \"referenceHidden\", ...detectOverflowOptions } : {\n strategy: \"referenceHidden\",\n padding: detectOverflowOptions.padding,\n altBoundary: detectOverflowOptions.altBoundary\n }\n )\n ]\n });\n const setPlacementState = context.setPlacementState;\n useLayoutEffect(() => {\n setPlacementState(placement);\n return () => {\n setPlacementState(void 0);\n };\n }, [placement, setPlacementState]);\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n \"--radix-popper-transform-origin\": [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n placedAlign,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all\n // measurements done) we prevent animations so that users'\n // animations don't kick in too early from the wrong sides.\n animation: !isPositioned ? \"none\" : contentProps.style?.animation\n }\n }\n )\n }\n )\n }\n );\n }, \"PopperContent\")\n);\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n ArrowPrimitive.Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n }, \"PopperArrow\")\n);\nfunction isNotNull(value) {\n return value !== null;\n}\n__name(isNotNull, \"isNotNull\");\nvar transformOrigin = /* @__PURE__ */ __name((options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n}), \"transformOrigin\");\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\n__name(getSideAndAlignFromPlacement, \"getSideAndAlignFromPlacement\");\nexport {\n ALIGN_OPTIONS,\n PopperAnchor as Anchor,\n PopperArrow as Arrow,\n PopperContent as Content,\n Popper,\n PopperAnchor,\n PopperArrow,\n PopperContent,\n Popper as Root,\n SIDE_OPTIONS,\n createPopperScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["__defProp","__name","target","value","Sticky","UpdatePositionStrategy","POPPER_NAME","createPopperContext","createPopperScope","createContextScope","PopperProvider","usePopperContext","Popper","props","__scopePopper","children","anchor","setAnchor","React","placementState","setPlacementState","jsx","ANCHOR_NAME","PopperAnchor","forwardedRef","virtualRef","anchorProps","context","ref","onAnchorChange","callbackRef","node","composedRefs","useComposedRefs","anchorRef","previousAnchor","sideAndAlign","getSideAndAlignFromPlacement","placedSide","placedAlign","Primitive","CONTENT_NAME","PopperContentProvider","useContentContext","PopperContent","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","contentProps","content","setContent","arrow","setArrow","arrowSize","useSize","arrowWidth","arrowHeight","desiredPlacement","collisionPadding","boundary","hasExplicitBoundaries","detectOverflowOptions","isNotNull","refs","floatingStyles","placement","isPositioned","middlewareData","useFloating","args","autoUpdate","offset","shift","limitShift","flip","size","elements","rects","availableWidth","availableHeight","anchorWidth","anchorHeight","contentStyle","floatingUIarrow","transformOrigin","hide","useLayoutEffect","handlePlaced","useCallbackRef","arrowX","arrowY","cannotCenterArrow","contentZIndex","setContentZIndex","ARROW_NAME","OPPOSITE_SIDE","PopperArrow","arrowProps","contentContext","baseSide","ArrowPrimitive.Root","options","data","isArrowHidden","noArrowAlign","arrowXCenter","arrowYCenter","x","y"],"mappings":";;;;;;;;;;;AACA,IAAIA,KAAY,OAAO,gBACnBC,IAAS,CAACC,GAAQC,MAAUH,GAAUE,GAAQ,QAAQ,EAAE,OAAAC,GAAO,cAAc,IAAM,GAyBnFC,IAAS;AAAA,EACX,SAAS;AAEX,GACIC,IAAyB;AAAA,EAC3B,WAAW;AAAA,EACX,QAAQ;AACV,GACIC,IAAc,UACd,CAACC,GAAqBC,EAAiB,IAAIC,GAAmBH,CAAW,GACzE,CAACI,IAAgBC,CAAgB,IAAIJ,EAAoBD,CAAW,GACpEM,KAAyB,gBAAAX,EAAO,CAACY,MAAU;AAC7C,QAAM,EAAE,eAAAC,GAAe,UAAAC,EAAQ,IAAKF,GAC9B,CAACG,GAAQC,CAAS,IAAIC,EAAM,SAAS,IAAI,GACzC,CAACC,GAAgBC,CAAiB,IAAIF,EAAM,SAAS,MAAM;AACjE,SAAuB,gBAAAG;AAAA,IACrBX;AAAA,IACA;AAAA,MACE,OAAOI;AAAA,MACP,QAAAE;AAAA,MACA,gBAAgBC;AAAA,MAChB,gBAAAE;AAAA,MACA,mBAAAC;AAAA,MACA,UAAAL;AAAA,IACN;AAAA,EACA;AACA,GAAG,QAAQ,GACPO,KAAc,gBACdC,KAA+B,gBAAAL,EAAM;AAAA,EACvB,gBAAAjB,EAAO,SAAuBY,GAAOW,GAAc;AACjE,UAAM,EAAE,eAAAV,GAAe,YAAAW,GAAY,GAAGC,EAAW,IAAKb,GAChDc,IAAUhB,EAAiBW,IAAaR,CAAa,GACrDc,IAAMV,EAAM,OAAO,IAAI,GACvBW,IAAiBF,EAAQ,gBACzBG,IAAcZ,EAAM;AAAA,MACxB,CAACa,MAAS;AACR,QAAA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=require("react"),A=require("../../react-compose-refs/dist/index.cjs");function C(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=C(x);var D=Object.defineProperty,a=(e,t)=>D(e,"name",{value:t,configurable:!0});function y(e){const t=l.forwardRef((r,o)=>{let{children:n,...c}=r,i=null,s=!1;const f=[];S(n)&&typeof u=="function"&&(n=u(n._payload)),l.Children.forEach(n,b=>{if(P(b)){s=!0;const d=b;let p="child"in d.props?d.props.child:d.props.children;S(p)&&typeof u=="function"&&(p=u(p._payload)),i=L(d,p),f.push(i?.props?.children)}else f.push(b)}),i?i=l.cloneElement(i,void 0,f):!s&&l.Children.count(n)===1&&l.isValidElement(n)&&(i=n);const m=i?R(i):void 0,$=A.useComposedRefs(o,m);if(!i){if(n||n===0)throw new Error(s?V(e):I(e));return n}const g=v(c,i.props??{});return i.type!==l.Fragment&&(g.ref=o?$:m),l.cloneElement(i,g)});return t.displayName=`${e}.Slot`,t}a(y,"createSlot");var E=y("Slot"),h=Symbol.for("radix.slottable");function _(e){const t=a(r=>"child"in r?r.children(r.child):r.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=h,t}a(_,"createSlottable");var L=a((e,t)=>{if("child"in e.props){const r=e.props.child;return l.isValidElement(r)?l.cloneElement(r,void 0,e.props.children(r.props.children)):null}return l.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function v(e,t){const r={...t};for(const o in t){const n=e[o],c=t[o];/^on[A-Z]/.test(o)?n&&c?r[o]=(...s)=>{const f=c(...s);return n(...s),f}:n&&(r[o]=n):o==="style"?r[o]={...n,...c}:o==="className"?r[o]=[n,c].filter(Boolean).join(" "):o==="aria-describedby"&&(r[o]=O(c,n))}return{...e,...r}}a(v,"mergeProps");function R(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}a(R,"getElementRef");function P(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===h}a(P,"isSlottable");var T=Symbol.for("react.lazy");function S(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===T&&"_payload"in e&&j(e._payload)}a(S,"isLazyComponent");function j(e){return typeof e=="object"&&e!==null&&"then"in e}a(j,"isPromiseLike");function O(...e){const t=new Set;for(const r of e)if(typeof r=="string")for(const o of String(r).trim().split(/\s+/))o&&t.add(o);return t.size>0?Array.from(t).join(" "):void 0}a(O,"concatAriaDescribedby");var I=a(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),V=a(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),u=l[" use ".trim().toString()];exports.Root=E;exports.Slot=E;exports.createSlot=y;exports.createSlottable=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react"),x=require("../../react-compose-refs/dist/index.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=z($);var A=Object.defineProperty,l=(e,t)=>A(e,"name",{value:t,configurable:!0});function y(e){const t=a.forwardRef((r,o)=>{let{children:n,...s}=r,i=null,c=!1;const f=[];n=O(n),a.Children.forEach(n,b=>{if(P(b)){c=!0;const p=b;let u="child"in p.props?p.props.child:p.props.children;for(;S(u)&&typeof d=="function";)u=d(u._payload);i=C(p,u),f.push(i?.props?.children)}else f.push(b)}),i?i=a.cloneElement(i,void 0,f):!c&&a.Children.count(n)===1&&a.isValidElement(n)&&(i=n);const m=i?R(i):void 0,L=x.useComposedRefs(o,m);if(!i){if(n||n===0)throw new Error(c?I(e):T(e));return n}const g=v(s,i.props??{});return i.type!==a.Fragment&&(g.ref=o?L:m),a.cloneElement(i,g)});return t.displayName=`${e}.Slot`,t}l(y,"createSlot");var E=y("Slot"),_=Symbol.for("radix.slottable");function h(e){const t=l(r=>"child"in r?r.children(r.child):r.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=_,t}l(h,"createSlottable");var C=l((e,t)=>"child"in e.props?a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null:a.isValidElement(t)?t:null,"getSlottableElementFromSlottable");function v(e,t){const r={...t};for(const o in t){const n=e[o],s=t[o];/^on[A-Z]/.test(o)?n&&s?r[o]=(...c)=>{const f=s(...c);return n(...c),f}:n&&(r[o]=n):o==="style"?r[o]={...n,...s}:o==="className"?r[o]=[n,s].filter(Boolean).join(" "):o==="aria-describedby"&&(r[o]=w(s,n))}return{...e,...r}}l(v,"mergeProps");function R(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}l(R,"getElementRef");function P(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_}l(P,"isSlottable");var D=Symbol.for("react.lazy");function S(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===D&&"_payload"in e&&j(e._payload)}l(S,"isLazyComponent");function j(e){return typeof e=="object"&&e!==null&&"then"in e}l(j,"isPromiseLike");function O(e){let t=e;for(;S(t)&&typeof d=="function";)t=d(t._payload);return t}l(O,"useUnwrappedLazy");function w(...e){const t=new Set;for(const r of e)if(typeof r=="string")for(const o of String(r).trim().split(/\s+/))o&&t.add(o);return t.size>0?Array.from(t).join(" "):void 0}l(w,"concatAriaDescribedby");var T=l(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),I=l(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),d=a[" use ".trim().toString()];exports.Root=E;exports.Slot=E;exports.createSlot=y;exports.createSlottable=h;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/slot.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n let slottableElement = null;\n let hasSlottable = false;\n const newChildren = [];\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n React.Children.forEach(children, (maybeSlottable) => {\n if (isSlottable(maybeSlottable)) {\n hasSlottable = true;\n const slottable = maybeSlottable;\n let child = \"child\" in slottable.props ? slottable.props.child : slottable.props.children;\n if (isLazyComponent(child) && typeof use === \"function\") {\n child = use(child._payload);\n }\n slottableElement = getSlottableElementFromSlottable(slottable, child);\n newChildren.push(slottableElement?.props?.children);\n } else {\n newChildren.push(maybeSlottable);\n }\n });\n if (slottableElement) {\n slottableElement = React.cloneElement(slottableElement, void 0, newChildren);\n } else if (\n // A `Slottable` was found but it didn't resolve to a single element (e.g.\n // it wrapped multiple elements, text, or a render-prop `child` that\n // wasn't an element). Don't fall back to treating the `Slottable` wrapper\n // itself as the slot target — throw a descriptive error below instead.\n !hasSlottable && React.Children.count(children) === 1 && React.isValidElement(children)\n ) {\n slottableElement = children;\n }\n const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;\n const composedRef = useComposedRefs(forwardedRef, slottableElementRef);\n if (!slottableElement) {\n if (children || children === 0) {\n throw new Error(\n hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)\n );\n }\n return children;\n }\n const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});\n if (slottableElement.type !== React.Fragment) {\n mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;\n }\n return React.cloneElement(slottableElement, mergedProps);\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\n__name(createSlot, \"createSlot\");\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\nvar SLOTTABLE_IDENTIFIER = Symbol.for(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = /* @__PURE__ */ __name((props) => \"child\" in props ? props.children(props.child) : props.children, \"Slottable\");\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\n__name(createSlottable, \"createSlottable\");\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nvar getSlottableElementFromSlottable = /* @__PURE__ */ __name((slottable, child) => {\n if (\"child\" in slottable.props) {\n const child2 = slottable.props.child;\n if (!React.isValidElement(child2)) return null;\n return React.cloneElement(child2, void 0, slottable.props.children(child2.props.children));\n }\n return React.isValidElement(child) ? child : null;\n}, \"getSlottableElementFromSlottable\");\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 const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\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 } else if (propName === \"aria-describedby\") {\n overrideProps[propName] = concatAriaDescribedby(childPropValue, slotPropValue);\n }\n }\n return { ...slotProps, ...overrideProps };\n}\n__name(mergeProps, \"mergeProps\");\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}\n__name(getElementRef, \"getElementRef\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\n__name(isSlottable, \"isSlottable\");\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\n__name(isLazyComponent, \"isLazyComponent\");\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\n__name(isPromiseLike, \"isPromiseLike\");\nfunction concatAriaDescribedby(...values) {\n const ids = /* @__PURE__ */ new Set();\n for (const value of values) {\n if (typeof value !== \"string\") continue;\n for (const id of String(value).trim().split(/\\s+/)) {\n if (id) ids.add(id);\n }\n }\n return ids.size > 0 ? Array.from(ids).join(\" \") : void 0;\n}\n__name(concatAriaDescribedby, \"concatAriaDescribedby\");\nvar createSlotError = /* @__PURE__ */ __name((ownerName) => {\n return `${ownerName} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`;\n}, \"createSlotError\");\nvar createSlottableError = /* @__PURE__ */ __name((ownerName) => {\n return `${ownerName} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`;\n}, \"createSlottableError\");\nvar use = React[\" use \".trim().toString()];\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["__defProp","__name","target","value","createSlot","ownerName","Slot2","React","props","forwardedRef","children","slotProps","slottableElement","hasSlottable","newChildren","isLazyComponent","use","maybeSlottable","isSlottable","slottable","child","getSlottableElementFromSlottable","slottableElementRef","getElementRef","composedRef","useComposedRefs","createSlottableError","createSlotError","mergedProps","mergeProps","Slot","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","child2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","concatAriaDescribedby","element","getter","mayWarn","REACT_LAZY_TYPE","isPromiseLike","values","ids","id"],"mappings":"wbAAA,IAAIA,EAAY,OAAO,eACnBC,EAAS,CAACC,EAAQC,IAAUH,EAAUE,EAAQ,OAAQ,CAAE,MAAAC,EAAO,aAAc,GAAM,EAMvF,SAASC,EAAWC,EAAW,CAC7B,MAAMC,EAAQC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACtD,GAAI,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAmB,KACnBC,EAAe,GACnB,MAAMC,EAAc,CAAA,EAChBC,EAAgBL,CAAQ,GAAK,OAAOM,GAAQ,aAC9CN,EAAWM,EAAIN,EAAS,QAAQ,GAElCH,EAAM,SAAS,QAAQG,EAAWO,GAAmB,CACnD,GAAIC,EAAYD,CAAc,EAAG,CAC/BJ,EAAe,GACf,MAAMM,EAAYF,EAClB,IAAIG,EAAQ,UAAWD,EAAU,MAAQA,EAAU,MAAM,MAAQA,EAAU,MAAM,SAC7EJ,EAAgBK,CAAK,GAAK,OAAOJ,GAAQ,aAC3CI,EAAQJ,EAAII,EAAM,QAAQ,GAE5BR,EAAmBS,EAAiCF,EAAWC,CAAK,EACpEN,EAAY,KAAKF,GAAkB,OAAO,QAAQ,CACpD,M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,EAAM,KAAK,YAAcW,CAClI,CACA9B,EAAOiB,EAAa,aAAa,EACjC,IAAI4B,EAAkB,OAAO,IAAI,YAAY,EAC7C,SAAS/B,EAAgB4B,EAAS,CAChC,OAAOA,GAAW,MAAQ,OAAOA,GAAY,UAAY,aAAcA,GAAWA,EAAQ,WAAaG,GAAmB,aAAcH,GAAWI,EAAcJ,EAAQ,QAAQ,CACnL,CACA1C,EAAOc,EAAiB,iBAAiB,EACzC,SAASgC,EAAc5C,EAAO,CAC5B,OAAO,OAAOA,GAAU,UAAYA,IAAU,MAAQ,SAAUA,CAClE,CACAF,EAAO8C,EAAe,eAAe,EACrC,SAASL,KAAyBM,EAAQ,CACxC,MAAMC,EAAsB,IAAI,IAChC,UAAW9C,KAAS6C,EAClB,GAAI,OAAO7C,GAAU,SACrB,UAAW+C,KAAM,OAAO/C,CAAK,EAAE,OAAO,MAAM,KAAK,EAC3C+C,GAAID,EAAI,IAAIC,CAAE,EAGtB,OAAOD,EAAI,KAAO,EAAI,MAAM,KAAKA,CAAG,EAAE,KAAK,GAAG,EAAI,MACpD,CACAhD,EAAOyC,EAAuB,uBAAuB,EACrD,IAAIf,EAAkC1B,EAAQI,GACrC,GAAGA,CAAS,6FAClB,iBAAiB,EAChBqB,EAAuCzB,EAAQI,GAC1C,GAAGA,CAAS,0GAClB,sBAAsB,EACrBW,EAAMT,EAAM,QAAQ,KAAI,EAAG,SAAQ,CAAE","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/slot.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n let slottableElement = null;\n let hasSlottable = false;\n const newChildren = [];\n children = useUnwrappedLazy(children);\n React.Children.forEach(children, (maybeSlottable) => {\n if (isSlottable(maybeSlottable)) {\n hasSlottable = true;\n const slottable = maybeSlottable;\n let child = \"child\" in slottable.props ? slottable.props.child : slottable.props.children;\n while (isLazyComponent(child) && typeof use === \"function\") {\n child = use(child._payload);\n }\n slottableElement = getSlottableElementFromSlottable(slottable, child);\n newChildren.push(slottableElement?.props?.children);\n } else {\n newChildren.push(maybeSlottable);\n }\n });\n if (slottableElement) {\n slottableElement = React.cloneElement(slottableElement, void 0, newChildren);\n } else if (\n // A `Slottable` was found but it didn't resolve to a single element (e.g.\n // it wrapped multiple elements, text, or a render-prop `child` that\n // wasn't an element). Don't fall back to treating the `Slottable` wrapper\n // itself as the slot target — throw a descriptive error below instead.\n !hasSlottable && React.Children.count(children) === 1 && React.isValidElement(children)\n ) {\n slottableElement = children;\n }\n const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;\n const composedRef = useComposedRefs(forwardedRef, slottableElementRef);\n if (!slottableElement) {\n if (children || children === 0) {\n throw new Error(\n hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)\n );\n }\n return children;\n }\n const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});\n if (slottableElement.type !== React.Fragment) {\n mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;\n }\n return React.cloneElement(slottableElement, mergedProps);\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\n__name(createSlot, \"createSlot\");\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\nvar SLOTTABLE_IDENTIFIER = Symbol.for(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = /* @__PURE__ */ __name((props) => \"child\" in props ? props.children(props.child) : props.children, \"Slottable\");\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\n__name(createSlottable, \"createSlottable\");\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nvar getSlottableElementFromSlottable = /* @__PURE__ */ __name((slottable, child) => {\n if (\"child\" in slottable.props) {\n if (!React.isValidElement(child)) return null;\n return React.cloneElement(child, void 0, slottable.props.children(child.props.children));\n }\n return React.isValidElement(child) ? child : null;\n}, \"getSlottableElementFromSlottable\");\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 const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\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 } else if (propName === \"aria-describedby\") {\n overrideProps[propName] = concatAriaDescribedby(childPropValue, slotPropValue);\n }\n }\n return { ...slotProps, ...overrideProps };\n}\n__name(mergeProps, \"mergeProps\");\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}\n__name(getElementRef, \"getElementRef\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\n__name(isSlottable, \"isSlottable\");\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\n__name(isLazyComponent, \"isLazyComponent\");\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\n__name(isPromiseLike, \"isPromiseLike\");\nfunction useUnwrappedLazy(value) {\n let unwrapped = value;\n while (isLazyComponent(unwrapped) && typeof use === \"function\") {\n unwrapped = use(unwrapped._payload);\n }\n return unwrapped;\n}\n__name(useUnwrappedLazy, \"useUnwrappedLazy\");\nfunction concatAriaDescribedby(...values) {\n const ids = /* @__PURE__ */ new Set();\n for (const value of values) {\n if (typeof value !== \"string\") continue;\n for (const id of String(value).trim().split(/\\s+/)) {\n if (id) ids.add(id);\n }\n }\n return ids.size > 0 ? Array.from(ids).join(\" \") : void 0;\n}\n__name(concatAriaDescribedby, \"concatAriaDescribedby\");\nvar createSlotError = /* @__PURE__ */ __name((ownerName) => {\n return `${ownerName} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`;\n}, \"createSlotError\");\nvar createSlottableError = /* @__PURE__ */ __name((ownerName) => {\n return `${ownerName} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`;\n}, \"createSlottableError\");\nvar use = React[\" use \".trim().toString()];\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["__defProp","__name","target","value","createSlot","ownerName","Slot2","React","props","forwardedRef","children","slotProps","slottableElement","hasSlottable","newChildren","useUnwrappedLazy","maybeSlottable","isSlottable","slottable","child","isLazyComponent","use","getSlottableElementFromSlottable","slottableElementRef","getElementRef","composedRef","useComposedRefs","createSlottableError","createSlotError","mergedProps","mergeProps","Slot","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","concatAriaDescribedby","element","getter","mayWarn","REACT_LAZY_TYPE","isPromiseLike","unwrapped","values","ids","id"],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EAAQ,CACxC,MAAMC,EAAsB,IAAI,IAChC,UAAW/C,KAAS8C,EAClB,GAAI,OAAO9C,GAAU,SACrB,UAAWgD,KAAM,OAAOhD,CAAK,EAAE,OAAO,MAAM,KAAK,EAC3CgD,GAAID,EAAI,IAAIC,CAAE,EAGtB,OAAOD,EAAI,KAAO,EAAI,MAAM,KAAKA,CAAG,EAAE,KAAK,GAAG,EAAI,MACpD,CACAjD,EAAOyC,EAAuB,uBAAuB,EACrD,IAAId,EAAkC3B,EAAQI,GACrC,GAAGA,CAAS,6FAClB,iBAAiB,EAChBsB,EAAuC1B,EAAQI,GAC1C,GAAGA,CAAS,0GAClB,sBAAsB,EACrBgB,EAAMd,EAAM,QAAQ,KAAI,EAAG,SAAQ,CAAE","x_google_ignoreList":[0]}
@@ -1,98 +1,101 @@
1
- import * as l from "react";
2
- import { useComposedRefs as j } from "../../react-compose-refs/dist/index.es.js";
3
- var x = Object.defineProperty, a = (e, t) => x(e, "name", { value: t, configurable: !0 });
1
+ import * as a from "react";
2
+ import { useComposedRefs as $ } from "../../react-compose-refs/dist/index.es.js";
3
+ var j = Object.defineProperty, l = (e, t) => j(e, "name", { value: t, configurable: !0 });
4
4
  // @__NO_SIDE_EFFECTS__
5
5
  function E(e) {
6
- const t = l.forwardRef((r, n) => {
7
- let { children: o, ...s } = r, i = null, c = !1;
6
+ const t = a.forwardRef((r, o) => {
7
+ let { children: n, ...s } = r, i = null, c = !1;
8
8
  const f = [];
9
- b(o) && typeof u == "function" && (o = u(o._payload)), l.Children.forEach(o, (y) => {
9
+ n = P(n), a.Children.forEach(n, (y) => {
10
10
  if (R(y)) {
11
11
  c = !0;
12
12
  const p = y;
13
13
  let d = "child" in p.props ? p.props.child : p.props.children;
14
- b(d) && typeof u == "function" && (d = u(d._payload)), i = C(p, d), f.push(i?.props?.children);
14
+ for (; b(d) && typeof u == "function"; )
15
+ d = u(d._payload);
16
+ i = A(p, d), f.push(i?.props?.children);
15
17
  } else
16
18
  f.push(y);
17
- }), i ? i = l.cloneElement(i, void 0, f) : (
19
+ }), i ? i = a.cloneElement(i, void 0, f) : (
18
20
  // A `Slottable` was found but it didn't resolve to a single element (e.g.
19
21
  // it wrapped multiple elements, text, or a render-prop `child` that
20
22
  // wasn't an element). Don't fall back to treating the `Slottable` wrapper
21
23
  // itself as the slot target — throw a descriptive error below instead.
22
- !c && l.Children.count(o) === 1 && l.isValidElement(o) && (i = o)
24
+ !c && a.Children.count(n) === 1 && a.isValidElement(n) && (i = n)
23
25
  );
24
- const m = i ? _(i) : void 0, $ = j(n, m);
26
+ const m = i ? _(i) : void 0, L = $(o, m);
25
27
  if (!i) {
26
- if (o || o === 0)
28
+ if (n || n === 0)
27
29
  throw new Error(
28
- c ? O(e) : I(e)
30
+ c ? I(e) : z(e)
29
31
  );
30
- return o;
32
+ return n;
31
33
  }
32
34
  const S = h(s, i.props ?? {});
33
- return i.type !== l.Fragment && (S.ref = n ? $ : m), l.cloneElement(i, S);
35
+ return i.type !== a.Fragment && (S.ref = o ? L : m), a.cloneElement(i, S);
34
36
  });
35
37
  return t.displayName = `${e}.Slot`, t;
36
38
  }
37
- a(E, "createSlot");
38
- var D = /* @__PURE__ */ E("Slot"), g = /* @__PURE__ */ Symbol.for("radix.slottable");
39
+ l(E, "createSlot");
40
+ var V = /* @__PURE__ */ E("Slot"), g = /* @__PURE__ */ Symbol.for("radix.slottable");
39
41
  // @__NO_SIDE_EFFECTS__
40
- function A(e) {
41
- const t = /* @__PURE__ */ a((r) => "child" in r ? r.children(r.child) : r.children, "Slottable");
42
+ function x(e) {
43
+ const t = /* @__PURE__ */ l((r) => "child" in r ? r.children(r.child) : r.children, "Slottable");
42
44
  return t.displayName = `${e}.Slottable`, t.__radixId = g, t;
43
45
  }
44
- a(A, "createSlottable");
45
- var C = /* @__PURE__ */ a((e, t) => {
46
- if ("child" in e.props) {
47
- const r = e.props.child;
48
- return l.isValidElement(r) ? l.cloneElement(r, void 0, e.props.children(r.props.children)) : null;
49
- }
50
- return l.isValidElement(t) ? t : null;
51
- }, "getSlottableElementFromSlottable");
46
+ l(x, "createSlottable");
47
+ var A = /* @__PURE__ */ l((e, t) => "child" in e.props ? a.isValidElement(t) ? a.cloneElement(t, void 0, e.props.children(t.props.children)) : null : a.isValidElement(t) ? t : null, "getSlottableElementFromSlottable");
52
48
  function h(e, t) {
53
49
  const r = { ...t };
54
- for (const n in t) {
55
- const o = e[n], s = t[n];
56
- /^on[A-Z]/.test(n) ? o && s ? r[n] = (...c) => {
50
+ for (const o in t) {
51
+ const n = e[o], s = t[o];
52
+ /^on[A-Z]/.test(o) ? n && s ? r[o] = (...c) => {
57
53
  const f = s(...c);
58
- return o(...c), f;
59
- } : o && (r[n] = o) : n === "style" ? r[n] = { ...o, ...s } : n === "className" ? r[n] = [o, s].filter(Boolean).join(" ") : n === "aria-describedby" && (r[n] = P(s, o));
54
+ return n(...c), f;
55
+ } : n && (r[o] = n) : o === "style" ? r[o] = { ...n, ...s } : o === "className" ? r[o] = [n, s].filter(Boolean).join(" ") : o === "aria-describedby" && (r[o] = w(s, n));
60
56
  }
61
57
  return { ...e, ...r };
62
58
  }
63
- a(h, "mergeProps");
59
+ l(h, "mergeProps");
64
60
  function _(e) {
65
61
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
66
62
  return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
67
63
  }
68
- a(_, "getElementRef");
64
+ l(_, "getElementRef");
69
65
  function R(e) {
70
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
66
+ return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
71
67
  }
72
- a(R, "isSlottable");
73
- var L = /* @__PURE__ */ Symbol.for("react.lazy");
68
+ l(R, "isSlottable");
69
+ var C = /* @__PURE__ */ Symbol.for("react.lazy");
74
70
  function b(e) {
75
- return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === L && "_payload" in e && v(e._payload);
71
+ return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === C && "_payload" in e && v(e._payload);
76
72
  }
77
- a(b, "isLazyComponent");
73
+ l(b, "isLazyComponent");
78
74
  function v(e) {
79
75
  return typeof e == "object" && e !== null && "then" in e;
80
76
  }
81
- a(v, "isPromiseLike");
82
- function P(...e) {
77
+ l(v, "isPromiseLike");
78
+ function P(e) {
79
+ let t = e;
80
+ for (; b(t) && typeof u == "function"; )
81
+ t = u(t._payload);
82
+ return t;
83
+ }
84
+ l(P, "useUnwrappedLazy");
85
+ function w(...e) {
83
86
  const t = /* @__PURE__ */ new Set();
84
87
  for (const r of e)
85
88
  if (typeof r == "string")
86
- for (const n of String(r).trim().split(/\s+/))
87
- n && t.add(n);
89
+ for (const o of String(r).trim().split(/\s+/))
90
+ o && t.add(o);
88
91
  return t.size > 0 ? Array.from(t).join(" ") : void 0;
89
92
  }
90
- a(P, "concatAriaDescribedby");
91
- var I = /* @__PURE__ */ a((e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), O = /* @__PURE__ */ a((e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), u = l[" use ".trim().toString()];
93
+ l(w, "concatAriaDescribedby");
94
+ var z = /* @__PURE__ */ l((e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), I = /* @__PURE__ */ l((e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), u = a[" use ".trim().toString()];
92
95
  export {
93
- D as Root,
94
- D as Slot,
96
+ V as Root,
97
+ V as Slot,
95
98
  E as createSlot,
96
- A as createSlottable
99
+ x as createSlottable
97
100
  };
98
101
  //# sourceMappingURL=index.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/slot.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n let slottableElement = null;\n let hasSlottable = false;\n const newChildren = [];\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n React.Children.forEach(children, (maybeSlottable) => {\n if (isSlottable(maybeSlottable)) {\n hasSlottable = true;\n const slottable = maybeSlottable;\n let child = \"child\" in slottable.props ? slottable.props.child : slottable.props.children;\n if (isLazyComponent(child) && typeof use === \"function\") {\n child = use(child._payload);\n }\n slottableElement = getSlottableElementFromSlottable(slottable, child);\n newChildren.push(slottableElement?.props?.children);\n } else {\n newChildren.push(maybeSlottable);\n }\n });\n if (slottableElement) {\n slottableElement = React.cloneElement(slottableElement, void 0, newChildren);\n } else if (\n // A `Slottable` was found but it didn't resolve to a single element (e.g.\n // it wrapped multiple elements, text, or a render-prop `child` that\n // wasn't an element). Don't fall back to treating the `Slottable` wrapper\n // itself as the slot target — throw a descriptive error below instead.\n !hasSlottable && React.Children.count(children) === 1 && React.isValidElement(children)\n ) {\n slottableElement = children;\n }\n const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;\n const composedRef = useComposedRefs(forwardedRef, slottableElementRef);\n if (!slottableElement) {\n if (children || children === 0) {\n throw new Error(\n hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)\n );\n }\n return children;\n }\n const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});\n if (slottableElement.type !== React.Fragment) {\n mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;\n }\n return React.cloneElement(slottableElement, mergedProps);\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\n__name(createSlot, \"createSlot\");\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\nvar SLOTTABLE_IDENTIFIER = Symbol.for(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = /* @__PURE__ */ __name((props) => \"child\" in props ? props.children(props.child) : props.children, \"Slottable\");\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\n__name(createSlottable, \"createSlottable\");\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nvar getSlottableElementFromSlottable = /* @__PURE__ */ __name((slottable, child) => {\n if (\"child\" in slottable.props) {\n const child2 = slottable.props.child;\n if (!React.isValidElement(child2)) return null;\n return React.cloneElement(child2, void 0, slottable.props.children(child2.props.children));\n }\n return React.isValidElement(child) ? child : null;\n}, \"getSlottableElementFromSlottable\");\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 const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\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 } else if (propName === \"aria-describedby\") {\n overrideProps[propName] = concatAriaDescribedby(childPropValue, slotPropValue);\n }\n }\n return { ...slotProps, ...overrideProps };\n}\n__name(mergeProps, \"mergeProps\");\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}\n__name(getElementRef, \"getElementRef\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\n__name(isSlottable, \"isSlottable\");\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\n__name(isLazyComponent, \"isLazyComponent\");\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\n__name(isPromiseLike, \"isPromiseLike\");\nfunction concatAriaDescribedby(...values) {\n const ids = /* @__PURE__ */ new Set();\n for (const value of values) {\n if (typeof value !== \"string\") continue;\n for (const id of String(value).trim().split(/\\s+/)) {\n if (id) ids.add(id);\n }\n }\n return ids.size > 0 ? Array.from(ids).join(\" \") : void 0;\n}\n__name(concatAriaDescribedby, \"concatAriaDescribedby\");\nvar createSlotError = /* @__PURE__ */ __name((ownerName) => {\n return `${ownerName} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`;\n}, \"createSlotError\");\nvar createSlottableError = /* @__PURE__ */ __name((ownerName) => {\n return `${ownerName} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`;\n}, \"createSlottableError\");\nvar use = React[\" use \".trim().toString()];\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["__defProp","__name","target","value","createSlot","ownerName","Slot2","React","props","forwardedRef","children","slotProps","slottableElement","hasSlottable","newChildren","isLazyComponent","use","maybeSlottable","isSlottable","slottable","child","getSlottableElementFromSlottable","slottableElementRef","getElementRef","composedRef","useComposedRefs","createSlottableError","createSlotError","mergedProps","mergeProps","Slot","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","child2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","concatAriaDescribedby","element","getter","mayWarn","REACT_LAZY_TYPE","isPromiseLike","values","ids","id"],"mappings":";;AAAA,IAAIA,IAAY,OAAO,gBACnBC,IAAS,CAACC,GAAQC,MAAUH,EAAUE,GAAQ,QAAQ,EAAE,OAAAC,GAAO,cAAc,IAAM;AAAA;AAMvF,SAASC,EAAWC,GAAW;AAC7B,QAAMC,IAAQC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACtD,QAAI,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAmB,MACnBC,IAAe;AACnB,UAAMC,IAAc,CAAA;AACpB,IAAIC,EAAgBL,CAAQ,KAAK,OAAOM,KAAQ,eAC9CN,IAAWM,EAAIN,EAAS,QAAQ,IAElCH,EAAM,SAAS,QAAQG,GAAU,CAACO,MAAmB;AACnD,UAAIC,EAAYD,CAAc,GAAG;AAC/B,QAAAJ,IAAe;AACf,cAAMM,IAAYF;AAClB,YAAIG,IAAQ,WAAWD,EAAU,QAAQA,EAAU,MAAM,QAAQA,EAAU,MAAM;AACjF,QAAIJ,EAAgBK,CAAK,KAAK,OAAOJ,KAAQ,eAC3CI,IAAQJ,EAAII,EAAM,QAAQ,IAE5BR,IAAmBS,EAAiCF,GAAWC,CAAK,GACpEN,EAAY,KAAKF,GAAkB,OAAO,QAAQ;AAAA,MACpD;AACE,QAAAE,EAAY,KAAKG,CAAc;AAAA,IAEnC,CAAC,GACGL,IACFA,IAAmBL,EAAM,aAAaK,GAAkB,QAAQE,CAAW;AAAA;AAAA;AAAA;AAAA;AAAA,MAM3E,CAACD,KAAgBN,EAAM,SAAS,MAAMG,CAAQ,MAAM,KAAKH,EAAM,eAAeG,CAAQ,MAEtFE,IAAmBF;AAAA;AAErB,UAAMY,IAAsBV,IAAmBW,EAAcX,CAAgB,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KAAY,YAAY,cAAcA,KAAWA,EAAQ,aAAaG,KAAmB,cAAcH,KAAWI,EAAcJ,EAAQ,QAAQ;AACnL;AACA1C,EAAOc,GAAiB,iBAAiB;AACzC,SAASgC,EAAc5C,GAAO;AAC5B,SAAO,OAAOA,KAAU,YAAYA,MAAU,QAAQ,UAAUA;AAClE;AACAF,EAAO8C,GAAe,eAAe;AACrC,SAASL,KAAyBM,GAAQ;AACxC,QAAMC,IAAsB,oBAAI,IAAG;AACnC,aAAW9C,KAAS6C;AAClB,QAAI,OAAO7C,KAAU;AACrB,iBAAW+C,KAAM,OAAO/C,CAAK,EAAE,OAAO,MAAM,KAAK;AAC/C,QAAI+C,KAAID,EAAI,IAAIC,CAAE;AAGtB,SAAOD,EAAI,OAAO,IAAI,MAAM,KAAKA,CAAG,EAAE,KAAK,GAAG,IAAI;AACpD;AACAhD,EAAOyC,GAAuB,uBAAuB;AACrD,IAAIf,IAAkC,gBAAA1B,EAAO,CAACI,MACrC,GAAGA,CAAS,8FAClB,iBAAiB,GAChBqB,IAAuC,gBAAAzB,EAAO,CAACI,MAC1C,GAAGA,CAAS,2GAClB,sBAAsB,GACrBW,IAAMT,EAAM,QAAQ,KAAI,EAAG,SAAQ,CAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es.js","sources":["../../../../../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/slot.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n let slottableElement = null;\n let hasSlottable = false;\n const newChildren = [];\n children = useUnwrappedLazy(children);\n React.Children.forEach(children, (maybeSlottable) => {\n if (isSlottable(maybeSlottable)) {\n hasSlottable = true;\n const slottable = maybeSlottable;\n let child = \"child\" in slottable.props ? slottable.props.child : slottable.props.children;\n while (isLazyComponent(child) && typeof use === \"function\") {\n child = use(child._payload);\n }\n slottableElement = getSlottableElementFromSlottable(slottable, child);\n newChildren.push(slottableElement?.props?.children);\n } else {\n newChildren.push(maybeSlottable);\n }\n });\n if (slottableElement) {\n slottableElement = React.cloneElement(slottableElement, void 0, newChildren);\n } else if (\n // A `Slottable` was found but it didn't resolve to a single element (e.g.\n // it wrapped multiple elements, text, or a render-prop `child` that\n // wasn't an element). Don't fall back to treating the `Slottable` wrapper\n // itself as the slot target — throw a descriptive error below instead.\n !hasSlottable && React.Children.count(children) === 1 && React.isValidElement(children)\n ) {\n slottableElement = children;\n }\n const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;\n const composedRef = useComposedRefs(forwardedRef, slottableElementRef);\n if (!slottableElement) {\n if (children || children === 0) {\n throw new Error(\n hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)\n );\n }\n return children;\n }\n const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});\n if (slottableElement.type !== React.Fragment) {\n mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;\n }\n return React.cloneElement(slottableElement, mergedProps);\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\n__name(createSlot, \"createSlot\");\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\nvar SLOTTABLE_IDENTIFIER = Symbol.for(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = /* @__PURE__ */ __name((props) => \"child\" in props ? props.children(props.child) : props.children, \"Slottable\");\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\n__name(createSlottable, \"createSlottable\");\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nvar getSlottableElementFromSlottable = /* @__PURE__ */ __name((slottable, child) => {\n if (\"child\" in slottable.props) {\n if (!React.isValidElement(child)) return null;\n return React.cloneElement(child, void 0, slottable.props.children(child.props.children));\n }\n return React.isValidElement(child) ? child : null;\n}, \"getSlottableElementFromSlottable\");\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 const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\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 } else if (propName === \"aria-describedby\") {\n overrideProps[propName] = concatAriaDescribedby(childPropValue, slotPropValue);\n }\n }\n return { ...slotProps, ...overrideProps };\n}\n__name(mergeProps, \"mergeProps\");\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}\n__name(getElementRef, \"getElementRef\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\n__name(isSlottable, \"isSlottable\");\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\n__name(isLazyComponent, \"isLazyComponent\");\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\n__name(isPromiseLike, \"isPromiseLike\");\nfunction useUnwrappedLazy(value) {\n let unwrapped = value;\n while (isLazyComponent(unwrapped) && typeof use === \"function\") {\n unwrapped = use(unwrapped._payload);\n }\n return unwrapped;\n}\n__name(useUnwrappedLazy, \"useUnwrappedLazy\");\nfunction concatAriaDescribedby(...values) {\n const ids = /* @__PURE__ */ new Set();\n for (const value of values) {\n if (typeof value !== \"string\") continue;\n for (const id of String(value).trim().split(/\\s+/)) {\n if (id) ids.add(id);\n }\n }\n return ids.size > 0 ? Array.from(ids).join(\" \") : void 0;\n}\n__name(concatAriaDescribedby, \"concatAriaDescribedby\");\nvar createSlotError = /* @__PURE__ */ __name((ownerName) => {\n return `${ownerName} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`;\n}, \"createSlotError\");\nvar createSlottableError = /* @__PURE__ */ __name((ownerName) => {\n return `${ownerName} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`;\n}, \"createSlottableError\");\nvar use = React[\" use \".trim().toString()];\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["__defProp","__name","target","value","createSlot","ownerName","Slot2","React","props","forwardedRef","children","slotProps","slottableElement","hasSlottable","newChildren","useUnwrappedLazy","maybeSlottable","isSlottable","slottable","child","isLazyComponent","use","getSlottableElementFromSlottable","slottableElementRef","getElementRef","composedRef","useComposedRefs","createSlottableError","createSlotError","mergedProps","mergeProps","Slot","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","concatAriaDescribedby","element","getter","mayWarn","REACT_LAZY_TYPE","isPromiseLike","unwrapped","values","ids","id"],"mappings":";;AAAA,IAAIA,IAAY,OAAO,gBACnBC,IAAS,CAACC,GAAQC,MAAUH,EAAUE,GAAQ,QAAQ,EAAE,OAAAC,GAAO,cAAc,IAA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EAAOc,GAAkB,kBAAkB;AAC3C,SAAS2B,KAAyBO,GAAQ;AACxC,QAAMC,IAAsB,oBAAI,IAAG;AACnC,aAAW/C,KAAS8C;AAClB,QAAI,OAAO9C,KAAU;AACrB,iBAAWgD,KAAM,OAAOhD,CAAK,EAAE,OAAO,MAAM,KAAK;AAC/C,QAAIgD,KAAID,EAAI,IAAIC,CAAE;AAGtB,SAAOD,EAAI,OAAO,IAAI,MAAM,KAAKA,CAAG,EAAE,KAAK,GAAG,IAAI;AACpD;AACAjD,EAAOyC,GAAuB,uBAAuB;AACrD,IAAId,IAAkC,gBAAA3B,EAAO,CAACI,MACrC,GAAGA,CAAS,8FAClB,iBAAiB,GAChBsB,IAAuC,gBAAA1B,EAAO,CAACI,MAC1C,GAAGA,CAAS,2GAClB,sBAAsB,GACrBgB,IAAMd,EAAM,QAAQ,KAAI,EAAG,SAAQ,CAAE;","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("react"),w=require("../node_modules/@radix-ui/primitive/dist/index.cjs"),k=require("../../react-compose-refs/dist/index.cjs"),ne=require("../node_modules/@radix-ui/react-context/dist/index.cjs"),se=require("../node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs"),ie=require("../node_modules/@radix-ui/react-focus-scope/dist/index.cjs"),ce=require("../../react-id/dist/index.cjs"),E=require("../node_modules/@radix-ui/react-popper/dist/index.cjs"),ae=require("../node_modules/@radix-ui/react-portal/dist/index.cjs"),$=require("../../react-presence/dist/index.cjs"),le=require("../node_modules/@radix-ui/react-primitive/dist/index.cjs"),ue=require("../node_modules/@radix-ui/react-slot/dist/index.cjs"),pe=require("../node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs"),de=require("../../react-use-layout-effect/dist/index.cjs"),fe=require("../../react-visually-hidden/dist/index.cjs"),g=require("react/jsx-runtime");function ve(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const s=ve(re);var Te=Object.defineProperty,d=(r,e)=>Te(r,"name",{value:e,configurable:!0}),[I,ge]=ne.createContextScope("Tooltip",[E.createPopperScope]),D=E.createPopperScope(),xe="TooltipProvider",he=700,A="tooltip.open",[Ce,H]=I(xe),F=d(r=>{const{__scopeTooltip:e,delayDuration:t=he,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:c}=r,n=s.useRef(!0),v=s.useRef(!1),l=s.useRef(0);return s.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),g.jsx(Ce,{scope:e,isOpenDelayedRef:n,delayDuration:t,onOpen:s.useCallback(()=>{o<=0||(window.clearTimeout(l.current),n.current=!1)},[o]),onClose:s.useCallback(()=>{o<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>n.current=!0,o))},[o]),isPointerInTransitRef:v,onPointerInTransitChange:s.useCallback(u=>{v.current=u},[]),disableHoverableContent:i,children:c})},"TooltipProvider"),L="Tooltip",[be,O]=I(L),G=d(r=>{const{__scopeTooltip:e,children:t,open:o,defaultOpen:i,onOpenChange:c,disableHoverableContent:n,delayDuration:v}=r,l=H(L,r.__scopeTooltip),u=D(e),[f,T]=s.useState(null),[p,C]=s.useState(void 0),m=ce.useId(),a=s.useRef(0),x=n??l.disableHoverableContent,h=v??l.delayDuration,b=s.useRef(!1),[P,y]=pe.useControllableState({prop:o,defaultProp:i??!1,onChange:d(q=>{q?(l.onOpen(),document.dispatchEvent(new CustomEvent(A))):l.onClose(),c?.(q)},"onChange"),caller:L}),j=s.useMemo(()=>P?b.current?"delayed-open":"instant-open":"closed",[P]),R=s.useCallback(()=>{window.clearTimeout(a.current),a.current=0,b.current=!1,y(!0)},[y]),S=s.useCallback(()=>{window.clearTimeout(a.current),a.current=0,y(!1)},[y]),M=s.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>{b.current=!0,y(!0),a.current=0},h)},[h,y]);s.useEffect(()=>()=>{a.current&&(window.clearTimeout(a.current),a.current=0)},[]);const oe=p??m;return g.jsx(E.Popper,{...u,children:g.jsx(be,{scope:e,contentId:oe,setContentId:C,open:P,stateAttribute:j,trigger:f,onTriggerChange:T,onTriggerEnter:s.useCallback(()=>{l.isOpenDelayedRef.current?M():R()},[l.isOpenDelayedRef,M,R]),onTriggerLeave:s.useCallback(()=>{x?S():(window.clearTimeout(a.current),a.current=0)},[S,x]),onOpen:R,onClose:S,disableHoverableContent:x,children:t})})},"Tooltip"),N="TooltipTrigger",B=s.forwardRef(d(function(e,t){const{__scopeTooltip:o,"aria-describedby":i,...c}=e,n=O(N,o),v=H(N,o),l=D(o),u=s.useRef(null),f=k.useComposedRefs(t,u,n.onTriggerChange),T=s.useRef(!1),p=s.useRef(!1),C=s.useCallback(()=>T.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",C),[C]),g.jsx(E.Anchor,{asChild:!0,...l,children:g.jsx(le.Primitive.button,{"aria-describedby":n.open?te(i,n.contentId):i,"data-state":n.stateAttribute,...c,ref:f,onPointerMove:w.composeEventHandlers(e.onPointerMove,m=>{m.pointerType!=="touch"&&!p.current&&!v.isPointerInTransitRef.current&&(n.onTriggerEnter(),p.current=!0)}),onPointerLeave:w.composeEventHandlers(e.onPointerLeave,()=>{n.onTriggerLeave(),p.current=!1}),onPointerDown:w.composeEventHandlers(e.onPointerDown,()=>{n.open&&n.onClose(),T.current=!0,document.addEventListener("pointerup",C,{once:!0})}),onFocus:w.composeEventHandlers(e.onFocus,()=>{T.current||n.onOpen()}),onBlur:w.composeEventHandlers(e.onBlur,n.onClose),onClick:w.composeEventHandlers(e.onClick,n.onClose)})})},"TooltipTrigger")),U="TooltipPortal",[ye,me]=I(U,{forceMount:void 0}),Y=d(r=>{const{__scopeTooltip:e,forceMount:t,children:o,container:i}=r,c=O(U,e);return g.jsx(ye,{scope:e,forceMount:t,children:g.jsx($.Presence,{present:t||c.open,children:g.jsx(ae.Portal,{asChild:!0,container:i,children:o})})})},"TooltipPortal"),_="TooltipContent",z=s.forwardRef(d(function(e,t){const o=me(_,e.__scopeTooltip),{forceMount:i=o.forceMount,side:c="top",...n}=e,v=O(_,e.__scopeTooltip);return g.jsx($.Presence,{present:i||v.open,children:v.disableHoverableContent?g.jsx(X,{side:c,...n,ref:t}):g.jsx(Pe,{side:c,...n,ref:t})})},"TooltipContent")),Pe=s.forwardRef(d(function(e,t){const o=O(_,e.__scopeTooltip),i=H(_,e.__scopeTooltip),c=s.useRef(null),n=k.useComposedRefs(t,c),[v,l]=s.useState(null),{trigger:u,onClose:f}=o,T=c.current,{onPointerInTransitChange:p}=i,C=s.useCallback(()=>{l(null),p(!1)},[p]),m=s.useCallback((a,x)=>{const h=a.currentTarget,b={x:a.clientX,y:a.clientY},P=V(b,h.getBoundingClientRect()),y=J(b,P),j=Q(x.getBoundingClientRect()),R=Z([...y,...j]);l(R),p(!0)},[p]);return s.useEffect(()=>()=>C(),[C]),s.useEffect(()=>{if(u&&T){const a=d(h=>m(h,T),"handleTriggerLeave"),x=d(h=>m(h,u),"handleContentLeave");return u.addEventListener("pointerleave",a),T.addEventListener("pointerleave",x),()=>{u.removeEventListener("pointerleave",a),T.removeEventListener("pointerleave",x)}}},[u,T,m,C]),s.useEffect(()=>{if(v){const a=d(x=>{const h=x.target,b={x:x.clientX,y:x.clientY},P=u?.contains(h)||T?.contains(h),y=!W(b,v);P?C():y&&(C(),f())},"handleTrackPointerGrace");return document.addEventListener("pointermove",a),()=>document.removeEventListener("pointermove",a)}},[u,T,v,f,C]),g.jsx(X,{...e,ref:n})},"TooltipContentHoverable")),we=ue.createSlottable("TooltipContent"),X=s.forwardRef(d(function(e,t){const{__scopeTooltip:o,children:i,"aria-label":c,id:n,onEscapeKeyDown:v,onPointerDownOutside:l,...u}=e,f=O(_,o),T=D(o),{onClose:p}=f,[C,m]=s.useState(null),a=k.useComposedRefs(t,m);ie.useFocusScopeBranch(C),s.useEffect(()=>(document.addEventListener(A,p),()=>document.removeEventListener(A,p)),[p]),s.useEffect(()=>{if(f.trigger){const h=d(b=>{b.target instanceof Node&&b.target.contains(f.trigger)&&p()},"handleScroll");return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[f.trigger,p]);const{setContentId:x}=f;return de.useLayoutEffect(()=>(x(n),()=>{x(void 0)}),[n,x]),g.jsx(se.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:v,onPointerDownOutside:l,onFocusOutside:h=>h.preventDefault(),onDismiss:p,children:g.jsxs(E.Content,{"data-state":f.stateAttribute,role:c?void 0:"tooltip",id:c?void 0:f.contentId,...T,...u,ref:a,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(we,{children:i}),c?g.jsx(fe.Root,{id:f.contentId,role:"tooltip",children:c}):null]})})},"TooltipContentImpl")),K=s.forwardRef(d(function(e,t){const{__scopeTooltip:o,...i}=e,c=D(o);return g.jsx(E.Arrow,{...c,...i,ref:t})},"TooltipArrow"));function V(r,e){const t=Math.abs(e.top-r.y),o=Math.abs(e.bottom-r.y),i=Math.abs(e.right-r.x),c=Math.abs(e.left-r.x);switch(Math.min(t,o,i,c)){case c:return"left";case i:return"right";case t:return"top";case o:return"bottom";default:throw new Error("unreachable")}}d(V,"getExitSideFromRect");function J(r,e,t=5){const o=[];switch(e){case"top":o.push({x:r.x-t,y:r.y+t},{x:r.x+t,y:r.y+t});break;case"bottom":o.push({x:r.x-t,y:r.y-t},{x:r.x+t,y:r.y-t});break;case"left":o.push({x:r.x+t,y:r.y-t},{x:r.x+t,y:r.y+t});break;case"right":o.push({x:r.x-t,y:r.y-t},{x:r.x-t,y:r.y+t});break}return o}d(J,"getPaddedExitPoints");function Q(r){const{top:e,right:t,bottom:o,left:i}=r;return[{x:i,y:e},{x:t,y:e},{x:t,y:o},{x:i,y:o}]}d(Q,"getPointsFromRect");function W(r,e){const{x:t,y:o}=r;let i=!1;for(let c=0,n=e.length-1;c<e.length;n=c++){const v=e[c],l=e[n],u=v.x,f=v.y,T=l.x,p=l.y;f>o!=p>o&&t<(T-u)*(o-f)/(p-f)+u&&(i=!i)}return i}d(W,"isPointInPolygon");function Z(r){const e=r.slice();return e.sort((t,o)=>t.x<o.x?-1:t.x>o.x?1:t.y<o.y?-1:t.y>o.y?1:0),ee(e)}d(Z,"getHull");function ee(r){if(r.length<=1)return r.slice();const e=[];for(let o=0;o<r.length;o++){const i=r[o];for(;e.length>=2;){const c=e[e.length-1],n=e[e.length-2];if((c.x-n.x)*(i.y-n.y)>=(c.y-n.y)*(i.x-n.x))e.pop();else break}e.push(i)}e.pop();const t=[];for(let o=r.length-1;o>=0;o--){const i=r[o];for(;t.length>=2;){const c=t[t.length-1],n=t[t.length-2];if((c.x-n.x)*(i.y-n.y)>=(c.y-n.y)*(i.x-n.x))t.pop();else break}t.push(i)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}d(ee,"getHullPresorted");function te(...r){const e=new Set;for(const t of r)if(typeof t=="string")for(const o of String(t).trim().split(/\s+/))o&&e.add(o);return e.size>0?Array.from(e).join(" "):void 0}d(te,"concatAriaDescribedby");exports.Arrow=K;exports.Content=z;exports.Portal=Y;exports.Provider=F;exports.Root=G;exports.Tooltip=G;exports.TooltipArrow=K;exports.TooltipContent=z;exports.TooltipPortal=Y;exports.TooltipProvider=F;exports.TooltipTrigger=B;exports.Trigger=B;exports.createTooltipScope=ge;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("react"),w=require("../../primitive/dist/index.cjs"),k=require("../../react-compose-refs/dist/index.cjs"),ne=require("../../react-context/dist/index.cjs"),se=require("../../react-dismissable-layer/dist/index.cjs"),ie=require("../../react-focus-scope/dist/index.cjs"),ce=require("../../react-id/dist/index.cjs"),E=require("../../react-popper/dist/index.cjs"),ae=require("../../react-portal/dist/index.cjs"),$=require("../../react-presence/dist/index.cjs"),le=require("../../react-primitive/dist/index.cjs"),ue=require("../../react-slot/dist/index.cjs"),pe=require("../../react-use-controllable-state/dist/index.cjs"),de=require("../../react-use-layout-effect/dist/index.cjs"),fe=require("../../react-visually-hidden/dist/index.cjs"),g=require("react/jsx-runtime");function ve(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const s=ve(re);var Te=Object.defineProperty,d=(r,e)=>Te(r,"name",{value:e,configurable:!0}),[I,ge]=ne.createContextScope("Tooltip",[E.createPopperScope]),D=E.createPopperScope(),xe="TooltipProvider",he=700,A="tooltip.open",[Ce,H]=I(xe),F=d(r=>{const{__scopeTooltip:e,delayDuration:t=he,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:c}=r,n=s.useRef(!0),v=s.useRef(!1),l=s.useRef(0);return s.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),g.jsx(Ce,{scope:e,isOpenDelayedRef:n,delayDuration:t,onOpen:s.useCallback(()=>{o<=0||(window.clearTimeout(l.current),n.current=!1)},[o]),onClose:s.useCallback(()=>{o<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>n.current=!0,o))},[o]),isPointerInTransitRef:v,onPointerInTransitChange:s.useCallback(u=>{v.current=u},[]),disableHoverableContent:i,children:c})},"TooltipProvider"),L="Tooltip",[be,O]=I(L),G=d(r=>{const{__scopeTooltip:e,children:t,open:o,defaultOpen:i,onOpenChange:c,disableHoverableContent:n,delayDuration:v}=r,l=H(L,r.__scopeTooltip),u=D(e),[f,T]=s.useState(null),[p,C]=s.useState(void 0),m=ce.useId(),a=s.useRef(0),x=n??l.disableHoverableContent,h=v??l.delayDuration,b=s.useRef(!1),[P,y]=pe.useControllableState({prop:o,defaultProp:i??!1,onChange:d(q=>{q?(l.onOpen(),document.dispatchEvent(new CustomEvent(A))):l.onClose(),c?.(q)},"onChange"),caller:L}),j=s.useMemo(()=>P?b.current?"delayed-open":"instant-open":"closed",[P]),R=s.useCallback(()=>{window.clearTimeout(a.current),a.current=0,b.current=!1,y(!0)},[y]),S=s.useCallback(()=>{window.clearTimeout(a.current),a.current=0,y(!1)},[y]),M=s.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>{b.current=!0,y(!0),a.current=0},h)},[h,y]);s.useEffect(()=>()=>{a.current&&(window.clearTimeout(a.current),a.current=0)},[]);const oe=p??m;return g.jsx(E.Popper,{...u,children:g.jsx(be,{scope:e,contentId:oe,setContentId:C,open:P,stateAttribute:j,trigger:f,onTriggerChange:T,onTriggerEnter:s.useCallback(()=>{l.isOpenDelayedRef.current?M():R()},[l.isOpenDelayedRef,M,R]),onTriggerLeave:s.useCallback(()=>{x?S():(window.clearTimeout(a.current),a.current=0)},[S,x]),onOpen:R,onClose:S,disableHoverableContent:x,children:t})})},"Tooltip"),N="TooltipTrigger",B=s.forwardRef(d(function(e,t){const{__scopeTooltip:o,"aria-describedby":i,...c}=e,n=O(N,o),v=H(N,o),l=D(o),u=s.useRef(null),f=k.useComposedRefs(t,u,n.onTriggerChange),T=s.useRef(!1),p=s.useRef(!1),C=s.useCallback(()=>T.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",C),[C]),g.jsx(E.Anchor,{asChild:!0,...l,children:g.jsx(le.Primitive.button,{"aria-describedby":n.open?te(i,n.contentId):i,"data-state":n.stateAttribute,...c,ref:f,onPointerMove:w.composeEventHandlers(e.onPointerMove,m=>{m.pointerType!=="touch"&&!p.current&&!v.isPointerInTransitRef.current&&(n.onTriggerEnter(),p.current=!0)}),onPointerLeave:w.composeEventHandlers(e.onPointerLeave,()=>{n.onTriggerLeave(),p.current=!1}),onPointerDown:w.composeEventHandlers(e.onPointerDown,()=>{n.open&&n.onClose(),T.current=!0,document.addEventListener("pointerup",C,{once:!0})}),onFocus:w.composeEventHandlers(e.onFocus,()=>{T.current||n.onOpen()}),onBlur:w.composeEventHandlers(e.onBlur,n.onClose),onClick:w.composeEventHandlers(e.onClick,n.onClose)})})},"TooltipTrigger")),U="TooltipPortal",[ye,me]=I(U,{forceMount:void 0}),Y=d(r=>{const{__scopeTooltip:e,forceMount:t,children:o,container:i}=r,c=O(U,e);return g.jsx(ye,{scope:e,forceMount:t,children:g.jsx($.Presence,{present:t||c.open,children:g.jsx(ae.Portal,{asChild:!0,container:i,children:o})})})},"TooltipPortal"),_="TooltipContent",z=s.forwardRef(d(function(e,t){const o=me(_,e.__scopeTooltip),{forceMount:i=o.forceMount,side:c="top",...n}=e,v=O(_,e.__scopeTooltip);return g.jsx($.Presence,{present:i||v.open,children:v.disableHoverableContent?g.jsx(X,{side:c,...n,ref:t}):g.jsx(Pe,{side:c,...n,ref:t})})},"TooltipContent")),Pe=s.forwardRef(d(function(e,t){const o=O(_,e.__scopeTooltip),i=H(_,e.__scopeTooltip),c=s.useRef(null),n=k.useComposedRefs(t,c),[v,l]=s.useState(null),{trigger:u,onClose:f}=o,T=c.current,{onPointerInTransitChange:p}=i,C=s.useCallback(()=>{l(null),p(!1)},[p]),m=s.useCallback((a,x)=>{const h=a.currentTarget,b={x:a.clientX,y:a.clientY},P=V(b,h.getBoundingClientRect()),y=J(b,P),j=Q(x.getBoundingClientRect()),R=Z([...y,...j]);l(R),p(!0)},[p]);return s.useEffect(()=>()=>C(),[C]),s.useEffect(()=>{if(u&&T){const a=d(h=>m(h,T),"handleTriggerLeave"),x=d(h=>m(h,u),"handleContentLeave");return u.addEventListener("pointerleave",a),T.addEventListener("pointerleave",x),()=>{u.removeEventListener("pointerleave",a),T.removeEventListener("pointerleave",x)}}},[u,T,m,C]),s.useEffect(()=>{if(v){const a=d(x=>{const h=x.target,b={x:x.clientX,y:x.clientY},P=u?.contains(h)||T?.contains(h),y=!W(b,v);P?C():y&&(C(),f())},"handleTrackPointerGrace");return document.addEventListener("pointermove",a),()=>document.removeEventListener("pointermove",a)}},[u,T,v,f,C]),g.jsx(X,{...e,ref:n})},"TooltipContentHoverable")),we=ue.createSlottable("TooltipContent"),X=s.forwardRef(d(function(e,t){const{__scopeTooltip:o,children:i,"aria-label":c,id:n,onEscapeKeyDown:v,onPointerDownOutside:l,...u}=e,f=O(_,o),T=D(o),{onClose:p}=f,[C,m]=s.useState(null),a=k.useComposedRefs(t,m);ie.useFocusScopeBranch(C),s.useEffect(()=>(document.addEventListener(A,p),()=>document.removeEventListener(A,p)),[p]),s.useEffect(()=>{if(f.trigger){const h=d(b=>{b.target instanceof Node&&b.target.contains(f.trigger)&&p()},"handleScroll");return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[f.trigger,p]);const{setContentId:x}=f;return de.useLayoutEffect(()=>(x(n),()=>{x(void 0)}),[n,x]),g.jsx(se.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:v,onPointerDownOutside:l,onFocusOutside:h=>h.preventDefault(),onDismiss:p,children:g.jsxs(E.Content,{"data-state":f.stateAttribute,role:c?void 0:"tooltip",id:c?void 0:f.contentId,...T,...u,ref:a,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(we,{children:i}),c?g.jsx(fe.Root,{id:f.contentId,role:"tooltip",children:c}):null]})})},"TooltipContentImpl")),K=s.forwardRef(d(function(e,t){const{__scopeTooltip:o,...i}=e,c=D(o);return g.jsx(E.Arrow,{...c,...i,ref:t})},"TooltipArrow"));function V(r,e){const t=Math.abs(e.top-r.y),o=Math.abs(e.bottom-r.y),i=Math.abs(e.right-r.x),c=Math.abs(e.left-r.x);switch(Math.min(t,o,i,c)){case c:return"left";case i:return"right";case t:return"top";case o:return"bottom";default:throw new Error("unreachable")}}d(V,"getExitSideFromRect");function J(r,e,t=5){const o=[];switch(e){case"top":o.push({x:r.x-t,y:r.y+t},{x:r.x+t,y:r.y+t});break;case"bottom":o.push({x:r.x-t,y:r.y-t},{x:r.x+t,y:r.y-t});break;case"left":o.push({x:r.x+t,y:r.y-t},{x:r.x+t,y:r.y+t});break;case"right":o.push({x:r.x-t,y:r.y-t},{x:r.x-t,y:r.y+t});break}return o}d(J,"getPaddedExitPoints");function Q(r){const{top:e,right:t,bottom:o,left:i}=r;return[{x:i,y:e},{x:t,y:e},{x:t,y:o},{x:i,y:o}]}d(Q,"getPointsFromRect");function W(r,e){const{x:t,y:o}=r;let i=!1;for(let c=0,n=e.length-1;c<e.length;n=c++){const v=e[c],l=e[n],u=v.x,f=v.y,T=l.x,p=l.y;f>o!=p>o&&t<(T-u)*(o-f)/(p-f)+u&&(i=!i)}return i}d(W,"isPointInPolygon");function Z(r){const e=r.slice();return e.sort((t,o)=>t.x<o.x?-1:t.x>o.x?1:t.y<o.y?-1:t.y>o.y?1:0),ee(e)}d(Z,"getHull");function ee(r){if(r.length<=1)return r.slice();const e=[];for(let o=0;o<r.length;o++){const i=r[o];for(;e.length>=2;){const c=e[e.length-1],n=e[e.length-2];if((c.x-n.x)*(i.y-n.y)>=(c.y-n.y)*(i.x-n.x))e.pop();else break}e.push(i)}e.pop();const t=[];for(let o=r.length-1;o>=0;o--){const i=r[o];for(;t.length>=2;){const c=t[t.length-1],n=t[t.length-2];if((c.x-n.x)*(i.y-n.y)>=(c.y-n.y)*(i.x-n.x))t.pop();else break}t.push(i)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}d(ee,"getHullPresorted");function te(...r){const e=new Set;for(const t of r)if(typeof t=="string")for(const o of String(t).trim().split(/\s+/))o&&e.add(o);return e.size>0?Array.from(e).join(" "):void 0}d(te,"concatAriaDescribedby");exports.Arrow=K;exports.Content=z;exports.Portal=Y;exports.Provider=F;exports.Root=G;exports.Tooltip=G;exports.TooltipArrow=K;exports.TooltipContent=z;exports.TooltipPortal=Y;exports.TooltipProvider=F;exports.TooltipTrigger=B;exports.Trigger=B;exports.createTooltipScope=ge;
2
2
  //# sourceMappingURL=index.cjs.map