@cloudflare/kumo 1.18.0 → 2.0.0

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 (330) hide show
  1. package/CHANGELOG.md +329 -0
  2. package/ai/component-registry.json +907 -159
  3. package/ai/component-registry.md +1929 -598
  4. package/ai/schemas.ts +58 -14
  5. package/dist/.build-complete +1 -1
  6. package/dist/ai/schemas.d.ts +206 -27
  7. package/dist/ai/schemas.d.ts.map +1 -1
  8. package/dist/ai/schemas.js +2003 -1948
  9. package/dist/ai/schemas.js.map +1 -1
  10. package/dist/chunks/Legend-ibjxhfm9pn2vrb6f.js +430 -0
  11. package/dist/chunks/Legend-ibjxhfm9pn2vrb6f.js.map +1 -0
  12. package/dist/chunks/autocomplete-cs3fwy6lwzlyirpq.js +174 -0
  13. package/dist/chunks/autocomplete-cs3fwy6lwzlyirpq.js.map +1 -0
  14. package/dist/chunks/{breadcrumbs-k39s28qx05vbxxth.js → breadcrumbs-cxcwf2l1ki3ffg5d.js} +2 -2
  15. package/dist/chunks/{breadcrumbs-k39s28qx05vbxxth.js.map → breadcrumbs-cxcwf2l1ki3ffg5d.js.map} +1 -1
  16. package/dist/chunks/{button-cdxnqcgzwko8ooha.js → button-6by9ntsa3nj553mq.js} +18 -19
  17. package/dist/chunks/button-6by9ntsa3nj553mq.js.map +1 -0
  18. package/dist/chunks/checkbox-eren6w2csum1xghg.js +210 -0
  19. package/dist/chunks/checkbox-eren6w2csum1xghg.js.map +1 -0
  20. package/dist/chunks/{clipboard-text-vcbvmtne4zjk4b18.js → clipboard-text-f9q753udny1uyxr5.js} +47 -43
  21. package/dist/chunks/{clipboard-text-vcbvmtne4zjk4b18.js.map → clipboard-text-f9q753udny1uyxr5.js.map} +1 -1
  22. package/dist/chunks/{cloudflare-logo-bgts2jgsdh7sslw4.js → cloudflare-logo-pbavoe1wu8nr5c4n.js} +9 -9
  23. package/dist/chunks/{cloudflare-logo-bgts2jgsdh7sslw4.js.map → cloudflare-logo-pbavoe1wu8nr5c4n.js.map} +1 -1
  24. package/dist/chunks/collapsible-k8urhi16pg90jvxa.js +71 -0
  25. package/dist/chunks/collapsible-k8urhi16pg90jvxa.js.map +1 -0
  26. package/dist/chunks/{combobox-he2hd9e2ruknq5mp.js → combobox-n9qht9h9ag6kh5sn.js} +142 -118
  27. package/dist/chunks/combobox-n9qht9h9ag6kh5sn.js.map +1 -0
  28. package/dist/chunks/{command-palette-jc1w07jwakxvj23a.js → command-palette-gk9m34ymp2b3hfc5.js} +130 -130
  29. package/dist/chunks/command-palette-gk9m34ymp2b3hfc5.js.map +1 -0
  30. package/dist/chunks/{date-range-picker-j318zxjyqz4o3dak.js → date-range-picker-c9wnx9tbwohai7jy.js} +26 -26
  31. package/dist/chunks/{date-range-picker-j318zxjyqz4o3dak.js.map → date-range-picker-c9wnx9tbwohai7jy.js.map} +1 -1
  32. package/dist/chunks/{dialog-oqh8l3l3zutpibxx.js → dialog-94v7wiz7j3in6528.js} +25 -25
  33. package/dist/chunks/dialog-94v7wiz7j3in6528.js.map +1 -0
  34. package/dist/chunks/dropdown-zbax0zowy6m9zhmt.js +302 -0
  35. package/dist/chunks/dropdown-zbax0zowy6m9zhmt.js.map +1 -0
  36. package/dist/chunks/{empty-cj898km1r8xwuw44.js → empty-kpymw59thjf2ip8g.js} +9 -9
  37. package/dist/chunks/{empty-cj898km1r8xwuw44.js.map → empty-kpymw59thjf2ip8g.js.map} +1 -1
  38. package/dist/chunks/{field-krp6z6vfbkrvufz2.js → field-lnj619xpe8zjd26r.js} +7 -7
  39. package/dist/chunks/{field-krp6z6vfbkrvufz2.js.map → field-lnj619xpe8zjd26r.js.map} +1 -1
  40. package/dist/chunks/{grid-m9r71jxo2b8q1972.js → grid-hj1ylz16p7g5uelh.js} +2 -2
  41. package/dist/chunks/{grid-m9r71jxo2b8q1972.js.map → grid-hj1ylz16p7g5uelh.js.map} +1 -1
  42. package/dist/chunks/{input-area-no30c09udyjxshu5.js → input-area-h8xbqturegdfm1mi.js} +4 -4
  43. package/dist/chunks/{input-area-no30c09udyjxshu5.js.map → input-area-h8xbqturegdfm1mi.js.map} +1 -1
  44. package/dist/chunks/input-group-dh4pg8p20rh4mdi0.js +505 -0
  45. package/dist/chunks/input-group-dh4pg8p20rh4mdi0.js.map +1 -0
  46. package/dist/chunks/{input-h48k3uagzrgb98au.js → input-lpa5fc75tgrraafv.js} +45 -45
  47. package/dist/chunks/input-lpa5fc75tgrraafv.js.map +1 -0
  48. package/dist/chunks/label-be8m7qzlakzig2sl.js +68 -0
  49. package/dist/chunks/{label-latndvb1ngem7we8.js.map → label-be8m7qzlakzig2sl.js.map} +1 -1
  50. package/dist/chunks/layer-card-hvivdirwwnyq88wa.js +46 -0
  51. package/dist/chunks/layer-card-hvivdirwwnyq88wa.js.map +1 -0
  52. package/dist/chunks/{link-hn5ejal7nhh0o0b4.js → link-kt74pxkud4olmcer.js} +4 -4
  53. package/dist/chunks/{link-hn5ejal7nhh0o0b4.js.map → link-kt74pxkud4olmcer.js.map} +1 -1
  54. package/dist/chunks/menubar-hwev159bm4rw9ixk.js +96 -0
  55. package/dist/chunks/menubar-hwev159bm4rw9ixk.js.map +1 -0
  56. package/dist/chunks/{meter-gfa1hz9fhjnvx784.js → meter-bqetlujwg8gm2u7m.js} +2 -2
  57. package/dist/chunks/{meter-gfa1hz9fhjnvx784.js.map → meter-bqetlujwg8gm2u7m.js.map} +1 -1
  58. package/dist/chunks/pagination-ho8zesqfyp6ckmrl.js +266 -0
  59. package/dist/chunks/pagination-ho8zesqfyp6ckmrl.js.map +1 -0
  60. package/dist/chunks/{popover-h300w4vit0s2ayej.js → popover-iayd9ya5yhujz6ve.js} +69 -73
  61. package/dist/chunks/popover-iayd9ya5yhujz6ve.js.map +1 -0
  62. package/dist/chunks/{radio-jouttv89lbvhs55r.js → radio-datzh3pilz8ojak1.js} +87 -75
  63. package/dist/chunks/radio-datzh3pilz8ojak1.js.map +1 -0
  64. package/dist/chunks/select-kpfbib9l8xrrmzpz.js +215 -0
  65. package/dist/chunks/select-kpfbib9l8xrrmzpz.js.map +1 -0
  66. package/dist/chunks/{sensitive-input-hd4tpqkzifad1yca.js → sensitive-input-i1upqytzaw2pus8v.js} +42 -42
  67. package/dist/chunks/sensitive-input-i1upqytzaw2pus8v.js.map +1 -0
  68. package/dist/chunks/{sidebar-hljy3ssm8itc0ucx.js → sidebar-kh37grvfxto14ek6.js} +146 -147
  69. package/dist/chunks/sidebar-kh37grvfxto14ek6.js.map +1 -0
  70. package/dist/chunks/surface-o63tktyrifcjejyb.js +29 -0
  71. package/dist/chunks/surface-o63tktyrifcjejyb.js.map +1 -0
  72. package/dist/chunks/{switch-ihaydbzem62bey4p.js → switch-lclhiplr9zqf73tj.js} +89 -81
  73. package/dist/chunks/switch-lclhiplr9zqf73tj.js.map +1 -0
  74. package/dist/chunks/table-fyy8gl875yyevqs3.js +207 -0
  75. package/dist/chunks/table-fyy8gl875yyevqs3.js.map +1 -0
  76. package/dist/chunks/table-of-contents-fzyv7uhnnyr13dqu.js +102 -0
  77. package/dist/chunks/table-of-contents-fzyv7uhnnyr13dqu.js.map +1 -0
  78. package/dist/chunks/{tabs-e7eh7l3mpk3xgmwq.js → tabs-jywwt8ebjqjkux75.js} +21 -21
  79. package/dist/chunks/{tabs-e7eh7l3mpk3xgmwq.js.map → tabs-jywwt8ebjqjkux75.js.map} +1 -1
  80. package/dist/chunks/{text-nmyi1rkwdj37f30f.js → text-f7t467waymhb30sx.js} +8 -8
  81. package/dist/chunks/text-f7t467waymhb30sx.js.map +1 -0
  82. package/dist/chunks/{toast-bpz6iaq54u9jmuu8.js → toast-h573o0tc7tefivk2.js} +12 -12
  83. package/dist/chunks/{toast-bpz6iaq54u9jmuu8.js.map → toast-h573o0tc7tefivk2.js.map} +1 -1
  84. package/dist/chunks/{tooltip-belkznz8t8333h5f.js → tooltip-odudhkxe282wxinq.js} +38 -37
  85. package/dist/chunks/tooltip-odudhkxe282wxinq.js.map +1 -0
  86. package/dist/chunks/vendor-base-ui-ie71jahf0czyf58j.js +24638 -0
  87. package/dist/chunks/vendor-base-ui-ie71jahf0czyf58j.js.map +1 -0
  88. package/dist/chunks/vendor-floating-ui-dwag5e88viikh2zs.js +1311 -0
  89. package/dist/chunks/vendor-floating-ui-dwag5e88viikh2zs.js.map +1 -0
  90. package/dist/chunks/vendor-utils-ixnhxmehwihk5tr7.js +534 -0
  91. package/dist/chunks/vendor-utils-ixnhxmehwihk5tr7.js.map +1 -0
  92. package/dist/code.js +1 -1
  93. package/dist/components/autocomplete.js +9 -0
  94. package/dist/components/autocomplete.js.map +1 -0
  95. package/dist/components/breadcrumbs.js +1 -1
  96. package/dist/components/button.js +1 -1
  97. package/dist/components/chart.js +1 -1
  98. package/dist/components/checkbox.js +1 -1
  99. package/dist/components/clipboard-text.js +1 -1
  100. package/dist/components/cloudflare-logo.js +1 -1
  101. package/dist/components/collapsible.js +1 -1
  102. package/dist/components/combobox.js +1 -1
  103. package/dist/components/command-palette.js +1 -1
  104. package/dist/components/date-range-picker.js +1 -1
  105. package/dist/components/dialog.js +1 -1
  106. package/dist/components/dropdown.js +1 -1
  107. package/dist/components/empty.js +1 -1
  108. package/dist/components/field.js +1 -1
  109. package/dist/components/flow.js +2 -2
  110. package/dist/components/flow.js.map +1 -1
  111. package/dist/components/grid.js +1 -1
  112. package/dist/components/input-group.js +8 -0
  113. package/dist/components/input-group.js.map +1 -0
  114. package/dist/components/input.js +9 -7
  115. package/dist/components/label.js +1 -1
  116. package/dist/components/layer-card.js +1 -1
  117. package/dist/components/link.js +1 -1
  118. package/dist/components/menubar.js +1 -1
  119. package/dist/components/meter.js +1 -1
  120. package/dist/components/pagination.js +1 -1
  121. package/dist/components/popover.js +1 -1
  122. package/dist/components/radio.js +1 -1
  123. package/dist/components/select.js +1 -1
  124. package/dist/components/sensitive-input.js +1 -1
  125. package/dist/components/sidebar.js +1 -1
  126. package/dist/components/surface.js +1 -1
  127. package/dist/components/switch.js +1 -1
  128. package/dist/components/table-of-contents.js +8 -0
  129. package/dist/components/table-of-contents.js.map +1 -0
  130. package/dist/components/table.js +1 -1
  131. package/dist/components/tabs.js +1 -1
  132. package/dist/components/text.js +1 -1
  133. package/dist/components/toast.js +2 -2
  134. package/dist/components/tooltip.js +1 -1
  135. package/dist/index.js +148 -139
  136. package/dist/index.js.map +1 -1
  137. package/dist/primitives/accordion.js +1 -1
  138. package/dist/primitives/alert-dialog.js +1 -1
  139. package/dist/primitives/autocomplete.js +1 -1
  140. package/dist/primitives/avatar.js +1 -1
  141. package/dist/primitives/button.js +1 -1
  142. package/dist/primitives/checkbox-group.js +1 -1
  143. package/dist/primitives/checkbox.js +1 -1
  144. package/dist/primitives/collapsible.js +1 -1
  145. package/dist/primitives/combobox.js +1 -1
  146. package/dist/primitives/context-menu.js +1 -1
  147. package/dist/primitives/csp-provider.js +1 -1
  148. package/dist/primitives/dialog.js +1 -1
  149. package/dist/primitives/direction-provider.js +1 -1
  150. package/dist/primitives/drawer.js +2 -2
  151. package/dist/primitives/field.js +1 -1
  152. package/dist/primitives/fieldset.js +1 -1
  153. package/dist/primitives/form.js +1 -1
  154. package/dist/primitives/input.js +1 -1
  155. package/dist/primitives/menu.js +1 -1
  156. package/dist/primitives/menubar.js +1 -1
  157. package/dist/primitives/meter.js +1 -1
  158. package/dist/primitives/navigation-menu.js +1 -1
  159. package/dist/primitives/number-field.js +1 -1
  160. package/dist/primitives/otp-field.js +6 -0
  161. package/dist/primitives/otp-field.js.map +1 -0
  162. package/dist/primitives/popover.js +1 -1
  163. package/dist/primitives/preview-card.js +2 -2
  164. package/dist/primitives/progress.js +1 -1
  165. package/dist/primitives/radio-group.js +1 -1
  166. package/dist/primitives/radio.js +1 -1
  167. package/dist/primitives/scroll-area.js +1 -1
  168. package/dist/primitives/select.js +1 -1
  169. package/dist/primitives/separator.js +1 -1
  170. package/dist/primitives/slider.js +1 -1
  171. package/dist/primitives/switch.js +1 -1
  172. package/dist/primitives/tabs.js +1 -1
  173. package/dist/primitives/toast.js +1 -1
  174. package/dist/primitives/toggle-group.js +1 -1
  175. package/dist/primitives/toggle.js +1 -1
  176. package/dist/primitives/toolbar.js +1 -1
  177. package/dist/primitives/tooltip.js +1 -1
  178. package/dist/primitives.js +22 -21
  179. package/dist/scripts/theme-generator/config.d.ts.map +1 -1
  180. package/dist/scripts/theme-generator/config.js +13 -3
  181. package/dist/scripts/theme-generator/config.js.map +1 -1
  182. package/dist/src/components/autocomplete/autocomplete.d.ts +180 -0
  183. package/dist/src/components/autocomplete/autocomplete.d.ts.map +1 -0
  184. package/dist/src/components/autocomplete/index.d.ts +2 -0
  185. package/dist/src/components/autocomplete/index.d.ts.map +1 -0
  186. package/dist/src/components/button/button.d.ts +3 -3
  187. package/dist/src/components/button/button.d.ts.map +1 -1
  188. package/dist/src/components/chart/Color.d.ts +36 -52
  189. package/dist/src/components/chart/Color.d.ts.map +1 -1
  190. package/dist/src/components/chart/EChart.d.ts +18 -2
  191. package/dist/src/components/chart/EChart.d.ts.map +1 -1
  192. package/dist/src/components/chart/TimeseriesChart.d.ts.map +1 -1
  193. package/dist/src/components/chart/index.d.ts +1 -1
  194. package/dist/src/components/chart/index.d.ts.map +1 -1
  195. package/dist/src/components/checkbox/checkbox.d.ts +37 -14
  196. package/dist/src/components/checkbox/checkbox.d.ts.map +1 -1
  197. package/dist/src/components/checkbox/index.d.ts +1 -1
  198. package/dist/src/components/checkbox/index.d.ts.map +1 -1
  199. package/dist/src/components/clipboard-text/clipboard-text.d.ts.map +1 -1
  200. package/dist/src/components/collapsible/collapsible.d.ts +77 -40
  201. package/dist/src/components/collapsible/collapsible.d.ts.map +1 -1
  202. package/dist/src/components/collapsible/index.d.ts +1 -1
  203. package/dist/src/components/collapsible/index.d.ts.map +1 -1
  204. package/dist/src/components/combobox/combobox.d.ts +19 -3
  205. package/dist/src/components/combobox/combobox.d.ts.map +1 -1
  206. package/dist/src/components/command-palette/command-palette.d.ts +2 -11
  207. package/dist/src/components/command-palette/command-palette.d.ts.map +1 -1
  208. package/dist/src/components/command-palette/index.d.ts +1 -1
  209. package/dist/src/components/command-palette/index.d.ts.map +1 -1
  210. package/dist/src/components/command-palette/types.d.ts +13 -1
  211. package/dist/src/components/command-palette/types.d.ts.map +1 -1
  212. package/dist/src/components/dropdown/dropdown.d.ts.map +1 -1
  213. package/dist/src/components/input/index.d.ts +16 -1
  214. package/dist/src/components/input/index.d.ts.map +1 -1
  215. package/dist/src/components/input/input.d.ts +2 -2
  216. package/dist/src/components/input/input.d.ts.map +1 -1
  217. package/dist/src/components/input-group/context.d.ts +96 -0
  218. package/dist/src/components/input-group/context.d.ts.map +1 -0
  219. package/dist/src/components/input-group/index.d.ts +2 -0
  220. package/dist/src/components/input-group/index.d.ts.map +1 -0
  221. package/dist/src/components/input-group/input-group-addon.d.ts +15 -0
  222. package/dist/src/components/input-group/input-group-addon.d.ts.map +1 -0
  223. package/dist/src/components/input-group/input-group-button.d.ts +36 -0
  224. package/dist/src/components/input-group/input-group-button.d.ts.map +1 -0
  225. package/dist/src/components/input-group/input-group-input.d.ts +9 -0
  226. package/dist/src/components/input-group/input-group-input.d.ts.map +1 -0
  227. package/dist/src/components/input-group/input-group-suffix.d.ts +13 -0
  228. package/dist/src/components/input-group/input-group-suffix.d.ts.map +1 -0
  229. package/dist/src/components/input-group/input-group.d.ts +43 -0
  230. package/dist/src/components/input-group/input-group.d.ts.map +1 -0
  231. package/dist/src/components/label/label.d.ts.map +1 -1
  232. package/dist/src/components/layer-card/layer-card.d.ts +39 -5
  233. package/dist/src/components/layer-card/layer-card.d.ts.map +1 -1
  234. package/dist/src/components/menubar/menubar.d.ts.map +1 -1
  235. package/dist/src/components/pagination/pagination.d.ts +51 -1
  236. package/dist/src/components/pagination/pagination.d.ts.map +1 -1
  237. package/dist/src/components/popover/popover.d.ts +35 -8
  238. package/dist/src/components/popover/popover.d.ts.map +1 -1
  239. package/dist/src/components/radio/index.d.ts +1 -1
  240. package/dist/src/components/radio/index.d.ts.map +1 -1
  241. package/dist/src/components/radio/radio.d.ts +44 -8
  242. package/dist/src/components/radio/radio.d.ts.map +1 -1
  243. package/dist/src/components/select/select.d.ts +52 -8
  244. package/dist/src/components/select/select.d.ts.map +1 -1
  245. package/dist/src/components/sensitive-input/sensitive-input.d.ts +2 -2
  246. package/dist/src/components/sidebar/sidebar.d.ts +2 -2
  247. package/dist/src/components/sidebar/sidebar.d.ts.map +1 -1
  248. package/dist/src/components/surface/index.d.ts +3 -0
  249. package/dist/src/components/surface/index.d.ts.map +1 -1
  250. package/dist/src/components/surface/surface.d.ts +14 -10
  251. package/dist/src/components/surface/surface.d.ts.map +1 -1
  252. package/dist/src/components/switch/index.d.ts +1 -1
  253. package/dist/src/components/switch/index.d.ts.map +1 -1
  254. package/dist/src/components/switch/switch.d.ts +31 -3
  255. package/dist/src/components/switch/switch.d.ts.map +1 -1
  256. package/dist/src/components/table/table.d.ts +17 -2
  257. package/dist/src/components/table/table.d.ts.map +1 -1
  258. package/dist/src/components/table-of-contents/index.d.ts +2 -0
  259. package/dist/src/components/table-of-contents/index.d.ts.map +1 -0
  260. package/dist/src/components/table-of-contents/table-of-contents.d.ts +72 -0
  261. package/dist/src/components/table-of-contents/table-of-contents.d.ts.map +1 -0
  262. package/dist/src/components/text/text.d.ts +34 -6
  263. package/dist/src/components/text/text.d.ts.map +1 -1
  264. package/dist/src/components/text/text.type-spec.d.ts +44 -0
  265. package/dist/src/components/text/text.type-spec.d.ts.map +1 -0
  266. package/dist/src/components/toast/toast.d.ts +1 -1
  267. package/dist/src/components/toast/toast.d.ts.map +1 -1
  268. package/dist/src/components/tooltip/tooltip.d.ts +15 -6
  269. package/dist/src/components/tooltip/tooltip.d.ts.map +1 -1
  270. package/dist/src/index.d.ts +14 -8
  271. package/dist/src/index.d.ts.map +1 -1
  272. package/dist/src/primitives/index.d.ts +1 -0
  273. package/dist/src/primitives/index.d.ts.map +1 -1
  274. package/dist/src/primitives/otp-field.d.ts +13 -0
  275. package/dist/src/primitives/otp-field.d.ts.map +1 -0
  276. package/dist/styles/kumo-binding.css +19 -0
  277. package/dist/styles/kumo-standalone.css +1 -1
  278. package/dist/styles/kumo.css +2 -2
  279. package/dist/styles/theme-kumo.css +13 -6
  280. package/package.json +18 -2
  281. package/scripts/component-registry/discovery.ts +1 -0
  282. package/scripts/component-registry/index.test.ts +265 -0
  283. package/scripts/component-registry/index.ts +14 -0
  284. package/scripts/component-registry/metadata.ts +55 -7
  285. package/scripts/component-registry/sub-components.ts +81 -50
  286. package/scripts/component-registry/types.ts +2 -0
  287. package/scripts/theme-generator/config.ts +18 -6
  288. package/dist/chunks/Legend-o0ntojbaplmszwk0.js +0 -421
  289. package/dist/chunks/Legend-o0ntojbaplmszwk0.js.map +0 -1
  290. package/dist/chunks/button-cdxnqcgzwko8ooha.js.map +0 -1
  291. package/dist/chunks/checkbox-kt1uojk2f9e0d0h1.js +0 -211
  292. package/dist/chunks/checkbox-kt1uojk2f9e0d0h1.js.map +0 -1
  293. package/dist/chunks/collapsible-jhzee3ks51d3xowb.js +0 -58
  294. package/dist/chunks/collapsible-jhzee3ks51d3xowb.js.map +0 -1
  295. package/dist/chunks/combobox-he2hd9e2ruknq5mp.js.map +0 -1
  296. package/dist/chunks/command-palette-jc1w07jwakxvj23a.js.map +0 -1
  297. package/dist/chunks/dialog-oqh8l3l3zutpibxx.js.map +0 -1
  298. package/dist/chunks/dropdown-ncwhcd912vmone8k.js +0 -300
  299. package/dist/chunks/dropdown-ncwhcd912vmone8k.js.map +0 -1
  300. package/dist/chunks/input-group-lxdd09p60cf27pe1.js +0 -111
  301. package/dist/chunks/input-group-lxdd09p60cf27pe1.js.map +0 -1
  302. package/dist/chunks/input-h48k3uagzrgb98au.js.map +0 -1
  303. package/dist/chunks/label-latndvb1ngem7we8.js +0 -62
  304. package/dist/chunks/layer-card-l5yjvrxry1dhte57.js +0 -44
  305. package/dist/chunks/layer-card-l5yjvrxry1dhte57.js.map +0 -1
  306. package/dist/chunks/menubar-f1pilzooe5mue7c4.js +0 -92
  307. package/dist/chunks/menubar-f1pilzooe5mue7c4.js.map +0 -1
  308. package/dist/chunks/pagination-cu5lm6p5dxuycta4.js +0 -243
  309. package/dist/chunks/pagination-cu5lm6p5dxuycta4.js.map +0 -1
  310. package/dist/chunks/popover-h300w4vit0s2ayej.js.map +0 -1
  311. package/dist/chunks/radio-jouttv89lbvhs55r.js.map +0 -1
  312. package/dist/chunks/select-kva5ru5f673kah1m.js +0 -179
  313. package/dist/chunks/select-kva5ru5f673kah1m.js.map +0 -1
  314. package/dist/chunks/sensitive-input-hd4tpqkzifad1yca.js.map +0 -1
  315. package/dist/chunks/sidebar-hljy3ssm8itc0ucx.js.map +0 -1
  316. package/dist/chunks/surface-cilvbyhmyujz1bee.js +0 -36
  317. package/dist/chunks/surface-cilvbyhmyujz1bee.js.map +0 -1
  318. package/dist/chunks/switch-ihaydbzem62bey4p.js.map +0 -1
  319. package/dist/chunks/table-inweecadl3her7pd.js +0 -183
  320. package/dist/chunks/table-inweecadl3her7pd.js.map +0 -1
  321. package/dist/chunks/text-nmyi1rkwdj37f30f.js.map +0 -1
  322. package/dist/chunks/tooltip-belkznz8t8333h5f.js.map +0 -1
  323. package/dist/chunks/vendor-base-ui-k7bzesq81ie36nya.js +0 -22813
  324. package/dist/chunks/vendor-base-ui-k7bzesq81ie36nya.js.map +0 -1
  325. package/dist/chunks/vendor-floating-ui-gr9m6tsa1cpqwn99.js +0 -1286
  326. package/dist/chunks/vendor-floating-ui-gr9m6tsa1cpqwn99.js.map +0 -1
  327. package/dist/chunks/vendor-utils-fxk97j6xi1g42z2v.js +0 -740
  328. package/dist/chunks/vendor-utils-fxk97j6xi1g42z2v.js.map +0 -1
  329. package/dist/src/components/input/input-group.d.ts +0 -39
  330. package/dist/src/components/input/input-group.d.ts.map +0 -1
@@ -1,1286 +0,0 @@
1
- "use client";
2
- import * as O from "react";
3
- import { useLayoutEffect as Xt } from "react";
4
- import * as qt from "react-dom";
5
- function at() {
6
- return typeof window < "u";
7
- }
8
- function Z(t) {
9
- return kt(t) ? (t.nodeName || "").toLowerCase() : "#document";
10
- }
11
- function M(t) {
12
- var e;
13
- return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
14
- }
15
- function H(t) {
16
- var e;
17
- return (e = (kt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
18
- }
19
- function kt(t) {
20
- return at() ? t instanceof Node || t instanceof M(t).Node : !1;
21
- }
22
- function F(t) {
23
- return at() ? t instanceof Element || t instanceof M(t).Element : !1;
24
- }
25
- function N(t) {
26
- return at() ? t instanceof HTMLElement || t instanceof M(t).HTMLElement : !1;
27
- }
28
- function At(t) {
29
- return !at() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof M(t).ShadowRoot;
30
- }
31
- const Yt = /* @__PURE__ */ new Set(["inline", "contents"]);
32
- function nt(t) {
33
- const {
34
- overflow: e,
35
- overflowX: n,
36
- overflowY: o,
37
- display: i
38
- } = W(t);
39
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Yt.has(i);
40
- }
41
- const Ut = /* @__PURE__ */ new Set(["table", "td", "th"]);
42
- function Kt(t) {
43
- return Ut.has(Z(t));
44
- }
45
- const Gt = [":popover-open", ":modal"];
46
- function ut(t) {
47
- return Gt.some((e) => {
48
- try {
49
- return t.matches(e);
50
- } catch {
51
- return !1;
52
- }
53
- });
54
- }
55
- const Jt = ["transform", "translate", "scale", "rotate", "perspective"], Qt = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Zt = ["paint", "layout", "strict", "content"];
56
- function xt(t) {
57
- const e = yt(), n = F(t) ? W(t) : t;
58
- return Jt.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Qt.some((o) => (n.willChange || "").includes(o)) || Zt.some((o) => (n.contain || "").includes(o));
59
- }
60
- function te(t) {
61
- let e = q(t);
62
- for (; N(e) && !J(e); ) {
63
- if (xt(e))
64
- return e;
65
- if (ut(e))
66
- return null;
67
- e = q(e);
68
- }
69
- return null;
70
- }
71
- function yt() {
72
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
73
- }
74
- const ee = /* @__PURE__ */ new Set(["html", "body", "#document"]);
75
- function J(t) {
76
- return ee.has(Z(t));
77
- }
78
- function W(t) {
79
- return M(t).getComputedStyle(t);
80
- }
81
- function dt(t) {
82
- return F(t) ? {
83
- scrollLeft: t.scrollLeft,
84
- scrollTop: t.scrollTop
85
- } : {
86
- scrollLeft: t.scrollX,
87
- scrollTop: t.scrollY
88
- };
89
- }
90
- function q(t) {
91
- if (Z(t) === "html")
92
- return t;
93
- const e = (
94
- // Step into the shadow DOM of the parent of a slotted node.
95
- t.assignedSlot || // DOM Element detected.
96
- t.parentNode || // ShadowRoot detected.
97
- At(t) && t.host || // Fallback.
98
- H(t)
99
- );
100
- return At(e) ? e.host : e;
101
- }
102
- function Ft(t) {
103
- const e = q(t);
104
- return J(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : N(e) && nt(e) ? e : Ft(e);
105
- }
106
- function tt(t, e, n) {
107
- var o;
108
- e === void 0 && (e = []), n === void 0 && (n = !0);
109
- const i = Ft(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = M(i);
110
- if (s) {
111
- const c = pt(r);
112
- return e.concat(r, r.visualViewport || [], nt(i) ? i : [], c && n ? tt(c) : []);
113
- }
114
- return e.concat(i, tt(i, [], n));
115
- }
116
- function pt(t) {
117
- return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
118
- }
119
- const ne = ["top", "right", "bottom", "left"], Q = Math.min, T = Math.max, rt = Math.round, it = Math.floor, V = (t) => ({
120
- x: t,
121
- y: t
122
- }), oe = {
123
- left: "right",
124
- right: "left",
125
- bottom: "top",
126
- top: "bottom"
127
- }, ie = {
128
- start: "end",
129
- end: "start"
130
- };
131
- function Rt(t, e, n) {
132
- return T(t, Q(e, n));
133
- }
134
- function Y(t, e) {
135
- return typeof t == "function" ? t(e) : t;
136
- }
137
- function j(t) {
138
- return t.split("-")[0];
139
- }
140
- function ot(t) {
141
- return t.split("-")[1];
142
- }
143
- function vt(t) {
144
- return t === "x" ? "y" : "x";
145
- }
146
- function Wt(t) {
147
- return t === "y" ? "height" : "width";
148
- }
149
- const se = /* @__PURE__ */ new Set(["top", "bottom"]);
150
- function $(t) {
151
- return se.has(j(t)) ? "y" : "x";
152
- }
153
- function Bt(t) {
154
- return vt($(t));
155
- }
156
- function re(t, e, n) {
157
- n === void 0 && (n = !1);
158
- const o = ot(t), i = Bt(t), s = Wt(i);
159
- let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
160
- return e.reference[s] > e.floating[s] && (r = ct(r)), [r, ct(r)];
161
- }
162
- function ce(t) {
163
- const e = ct(t);
164
- return [wt(t), e, wt(e)];
165
- }
166
- function wt(t) {
167
- return t.replace(/start|end/g, (e) => ie[e]);
168
- }
169
- const St = ["left", "right"], Ot = ["right", "left"], le = ["top", "bottom"], fe = ["bottom", "top"];
170
- function ae(t, e, n) {
171
- switch (t) {
172
- case "top":
173
- case "bottom":
174
- return n ? e ? Ot : St : e ? St : Ot;
175
- case "left":
176
- case "right":
177
- return e ? le : fe;
178
- default:
179
- return [];
180
- }
181
- }
182
- function ue(t, e, n, o) {
183
- const i = ot(t);
184
- let s = ae(j(t), n === "start", o);
185
- return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(wt)))), s;
186
- }
187
- function ct(t) {
188
- return t.replace(/left|right|bottom|top/g, (e) => oe[e]);
189
- }
190
- function de(t) {
191
- return {
192
- top: 0,
193
- right: 0,
194
- bottom: 0,
195
- left: 0,
196
- ...t
197
- };
198
- }
199
- function me(t) {
200
- return typeof t != "number" ? de(t) : {
201
- top: t,
202
- right: t,
203
- bottom: t,
204
- left: t
205
- };
206
- }
207
- function lt(t) {
208
- const {
209
- x: e,
210
- y: n,
211
- width: o,
212
- height: i
213
- } = t;
214
- return {
215
- width: o,
216
- height: i,
217
- top: n,
218
- left: e,
219
- right: e + o,
220
- bottom: n + i,
221
- x: e,
222
- y: n
223
- };
224
- }
225
- function Ct(t, e, n) {
226
- let {
227
- reference: o,
228
- floating: i
229
- } = t;
230
- const s = $(e), r = Bt(e), c = Wt(r), f = j(e), a = s === "y", l = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
231
- let d;
232
- switch (f) {
233
- case "top":
234
- d = {
235
- x: l,
236
- y: o.y - i.height
237
- };
238
- break;
239
- case "bottom":
240
- d = {
241
- x: l,
242
- y: o.y + o.height
243
- };
244
- break;
245
- case "right":
246
- d = {
247
- x: o.x + o.width,
248
- y: u
249
- };
250
- break;
251
- case "left":
252
- d = {
253
- x: o.x - i.width,
254
- y: u
255
- };
256
- break;
257
- default:
258
- d = {
259
- x: o.x,
260
- y: o.y
261
- };
262
- }
263
- switch (ot(e)) {
264
- case "start":
265
- d[r] -= m * (n && a ? -1 : 1);
266
- break;
267
- case "end":
268
- d[r] += m * (n && a ? -1 : 1);
269
- break;
270
- }
271
- return d;
272
- }
273
- const he = async (t, e, n) => {
274
- const {
275
- placement: o = "bottom",
276
- strategy: i = "absolute",
277
- middleware: s = [],
278
- platform: r
279
- } = n, c = s.filter(Boolean), f = await (r.isRTL == null ? void 0 : r.isRTL(e));
280
- let a = await r.getElementRects({
281
- reference: t,
282
- floating: e,
283
- strategy: i
284
- }), {
285
- x: l,
286
- y: u
287
- } = Ct(a, o, f), m = o, d = {}, h = 0;
288
- for (let p = 0; p < c.length; p++) {
289
- const {
290
- name: w,
291
- fn: g
292
- } = c[p], {
293
- x,
294
- y: v,
295
- data: b,
296
- reset: y
297
- } = await g({
298
- x: l,
299
- y: u,
300
- initialPlacement: o,
301
- placement: m,
302
- strategy: i,
303
- middlewareData: d,
304
- rects: a,
305
- platform: r,
306
- elements: {
307
- reference: t,
308
- floating: e
309
- }
310
- });
311
- l = x ?? l, u = v ?? u, d = {
312
- ...d,
313
- [w]: {
314
- ...d[w],
315
- ...b
316
- }
317
- }, y && h <= 50 && (h++, typeof y == "object" && (y.placement && (m = y.placement), y.rects && (a = y.rects === !0 ? await r.getElementRects({
318
- reference: t,
319
- floating: e,
320
- strategy: i
321
- }) : y.rects), {
322
- x: l,
323
- y: u
324
- } = Ct(a, m, f)), p = -1);
325
- }
326
- return {
327
- x: l,
328
- y: u,
329
- placement: m,
330
- strategy: i,
331
- middlewareData: d
332
- };
333
- };
334
- async function et(t, e) {
335
- var n;
336
- e === void 0 && (e = {});
337
- const {
338
- x: o,
339
- y: i,
340
- platform: s,
341
- rects: r,
342
- elements: c,
343
- strategy: f
344
- } = t, {
345
- boundary: a = "clippingAncestors",
346
- rootBoundary: l = "viewport",
347
- elementContext: u = "floating",
348
- altBoundary: m = !1,
349
- padding: d = 0
350
- } = Y(e, t), h = me(d), w = c[m ? u === "floating" ? "reference" : "floating" : u], g = lt(await s.getClippingRect({
351
- element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
352
- boundary: a,
353
- rootBoundary: l,
354
- strategy: f
355
- })), x = u === "floating" ? {
356
- x: o,
357
- y: i,
358
- width: r.floating.width,
359
- height: r.floating.height
360
- } : r.reference, v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), b = await (s.isElement == null ? void 0 : s.isElement(v)) ? await (s.getScale == null ? void 0 : s.getScale(v)) || {
361
- x: 1,
362
- y: 1
363
- } : {
364
- x: 1,
365
- y: 1
366
- }, y = lt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
367
- elements: c,
368
- rect: x,
369
- offsetParent: v,
370
- strategy: f
371
- }) : x);
372
- return {
373
- top: (g.top - y.top + h.top) / b.y,
374
- bottom: (y.bottom - g.bottom + h.bottom) / b.y,
375
- left: (g.left - y.left + h.left) / b.x,
376
- right: (y.right - g.right + h.right) / b.x
377
- };
378
- }
379
- const ge = function(t) {
380
- return t === void 0 && (t = {}), {
381
- name: "flip",
382
- options: t,
383
- async fn(e) {
384
- var n, o;
385
- const {
386
- placement: i,
387
- middlewareData: s,
388
- rects: r,
389
- initialPlacement: c,
390
- platform: f,
391
- elements: a
392
- } = e, {
393
- mainAxis: l = !0,
394
- crossAxis: u = !0,
395
- fallbackPlacements: m,
396
- fallbackStrategy: d = "bestFit",
397
- fallbackAxisSideDirection: h = "none",
398
- flipAlignment: p = !0,
399
- ...w
400
- } = Y(t, e);
401
- if ((n = s.arrow) != null && n.alignmentOffset)
402
- return {};
403
- const g = j(i), x = $(c), v = j(c) === c, b = await (f.isRTL == null ? void 0 : f.isRTL(a.floating)), y = m || (v || !p ? [ct(c)] : ce(c)), R = h !== "none";
404
- !m && R && y.push(...ue(c, p, h, b));
405
- const S = [c, ...y], D = await et(e, w), _ = [];
406
- let C = ((o = s.flip) == null ? void 0 : o.overflows) || [];
407
- if (l && _.push(D[g]), u) {
408
- const k = re(i, r, b);
409
- _.push(D[k[0]], D[k[1]]);
410
- }
411
- if (C = [...C, {
412
- placement: i,
413
- overflows: _
414
- }], !_.every((k) => k <= 0)) {
415
- var z, I;
416
- const k = (((z = s.flip) == null ? void 0 : z.index) || 0) + 1, K = S[k];
417
- if (K && (!(u === "alignment" ? x !== $(K) : !1) || // We leave the current main axis only if every placement on that axis
418
- // overflows the main axis.
419
- C.every((A) => $(A.placement) === x ? A.overflows[0] > 0 : !0)))
420
- return {
421
- data: {
422
- index: k,
423
- overflows: C
424
- },
425
- reset: {
426
- placement: K
427
- }
428
- };
429
- let L = (I = C.filter((B) => B.overflows[0] <= 0).sort((B, A) => B.overflows[1] - A.overflows[1])[0]) == null ? void 0 : I.placement;
430
- if (!L)
431
- switch (d) {
432
- case "bestFit": {
433
- var P;
434
- const B = (P = C.filter((A) => {
435
- if (R) {
436
- const E = $(A.placement);
437
- return E === x || // Create a bias to the `y` side axis due to horizontal
438
- // reading directions favoring greater width.
439
- E === "y";
440
- }
441
- return !0;
442
- }).map((A) => [A.placement, A.overflows.filter((E) => E > 0).reduce((E, X) => E + X, 0)]).sort((A, E) => A[1] - E[1])[0]) == null ? void 0 : P[0];
443
- B && (L = B);
444
- break;
445
- }
446
- case "initialPlacement":
447
- L = c;
448
- break;
449
- }
450
- if (i !== L)
451
- return {
452
- reset: {
453
- placement: L
454
- }
455
- };
456
- }
457
- return {};
458
- }
459
- };
460
- };
461
- function Lt(t, e) {
462
- return {
463
- top: t.top - e.height,
464
- right: t.right - e.width,
465
- bottom: t.bottom - e.height,
466
- left: t.left - e.width
467
- };
468
- }
469
- function Et(t) {
470
- return ne.some((e) => t[e] >= 0);
471
- }
472
- const pe = function(t) {
473
- return t === void 0 && (t = {}), {
474
- name: "hide",
475
- options: t,
476
- async fn(e) {
477
- const {
478
- rects: n
479
- } = e, {
480
- strategy: o = "referenceHidden",
481
- ...i
482
- } = Y(t, e);
483
- switch (o) {
484
- case "referenceHidden": {
485
- const s = await et(e, {
486
- ...i,
487
- elementContext: "reference"
488
- }), r = Lt(s, n.reference);
489
- return {
490
- data: {
491
- referenceHiddenOffsets: r,
492
- referenceHidden: Et(r)
493
- }
494
- };
495
- }
496
- case "escaped": {
497
- const s = await et(e, {
498
- ...i,
499
- altBoundary: !0
500
- }), r = Lt(s, n.floating);
501
- return {
502
- data: {
503
- escapedOffsets: r,
504
- escaped: Et(r)
505
- }
506
- };
507
- }
508
- default:
509
- return {};
510
- }
511
- }
512
- };
513
- }, $t = /* @__PURE__ */ new Set(["left", "top"]);
514
- async function we(t, e) {
515
- const {
516
- placement: n,
517
- platform: o,
518
- elements: i
519
- } = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = j(n), c = ot(n), f = $(n) === "y", a = $t.has(r) ? -1 : 1, l = s && f ? -1 : 1, u = Y(e, t);
520
- let {
521
- mainAxis: m,
522
- crossAxis: d,
523
- alignmentAxis: h
524
- } = typeof u == "number" ? {
525
- mainAxis: u,
526
- crossAxis: 0,
527
- alignmentAxis: null
528
- } : {
529
- mainAxis: u.mainAxis || 0,
530
- crossAxis: u.crossAxis || 0,
531
- alignmentAxis: u.alignmentAxis
532
- };
533
- return c && typeof h == "number" && (d = c === "end" ? h * -1 : h), f ? {
534
- x: d * l,
535
- y: m * a
536
- } : {
537
- x: m * a,
538
- y: d * l
539
- };
540
- }
541
- const xe = function(t) {
542
- return t === void 0 && (t = 0), {
543
- name: "offset",
544
- options: t,
545
- async fn(e) {
546
- var n, o;
547
- const {
548
- x: i,
549
- y: s,
550
- placement: r,
551
- middlewareData: c
552
- } = e, f = await we(e, t);
553
- return r === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
554
- x: i + f.x,
555
- y: s + f.y,
556
- data: {
557
- ...f,
558
- placement: r
559
- }
560
- };
561
- }
562
- };
563
- }, ye = function(t) {
564
- return t === void 0 && (t = {}), {
565
- name: "shift",
566
- options: t,
567
- async fn(e) {
568
- const {
569
- x: n,
570
- y: o,
571
- placement: i
572
- } = e, {
573
- mainAxis: s = !0,
574
- crossAxis: r = !1,
575
- limiter: c = {
576
- fn: (w) => {
577
- let {
578
- x: g,
579
- y: x
580
- } = w;
581
- return {
582
- x: g,
583
- y: x
584
- };
585
- }
586
- },
587
- ...f
588
- } = Y(t, e), a = {
589
- x: n,
590
- y: o
591
- }, l = await et(e, f), u = $(j(i)), m = vt(u);
592
- let d = a[m], h = a[u];
593
- if (s) {
594
- const w = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", x = d + l[w], v = d - l[g];
595
- d = Rt(x, d, v);
596
- }
597
- if (r) {
598
- const w = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", x = h + l[w], v = h - l[g];
599
- h = Rt(x, h, v);
600
- }
601
- const p = c.fn({
602
- ...e,
603
- [m]: d,
604
- [u]: h
605
- });
606
- return {
607
- ...p,
608
- data: {
609
- x: p.x - n,
610
- y: p.y - o,
611
- enabled: {
612
- [m]: s,
613
- [u]: r
614
- }
615
- }
616
- };
617
- }
618
- };
619
- }, ve = function(t) {
620
- return t === void 0 && (t = {}), {
621
- options: t,
622
- fn(e) {
623
- const {
624
- x: n,
625
- y: o,
626
- placement: i,
627
- rects: s,
628
- middlewareData: r
629
- } = e, {
630
- offset: c = 0,
631
- mainAxis: f = !0,
632
- crossAxis: a = !0
633
- } = Y(t, e), l = {
634
- x: n,
635
- y: o
636
- }, u = $(i), m = vt(u);
637
- let d = l[m], h = l[u];
638
- const p = Y(c, e), w = typeof p == "number" ? {
639
- mainAxis: p,
640
- crossAxis: 0
641
- } : {
642
- mainAxis: 0,
643
- crossAxis: 0,
644
- ...p
645
- };
646
- if (f) {
647
- const v = m === "y" ? "height" : "width", b = s.reference[m] - s.floating[v] + w.mainAxis, y = s.reference[m] + s.reference[v] - w.mainAxis;
648
- d < b ? d = b : d > y && (d = y);
649
- }
650
- if (a) {
651
- var g, x;
652
- const v = m === "y" ? "width" : "height", b = $t.has(j(i)), y = s.reference[u] - s.floating[v] + (b && ((g = r.offset) == null ? void 0 : g[u]) || 0) + (b ? 0 : w.crossAxis), R = s.reference[u] + s.reference[v] + (b ? 0 : ((x = r.offset) == null ? void 0 : x[u]) || 0) - (b ? w.crossAxis : 0);
653
- h < y ? h = y : h > R && (h = R);
654
- }
655
- return {
656
- [m]: d,
657
- [u]: h
658
- };
659
- }
660
- };
661
- }, be = function(t) {
662
- return t === void 0 && (t = {}), {
663
- name: "size",
664
- options: t,
665
- async fn(e) {
666
- var n, o;
667
- const {
668
- placement: i,
669
- rects: s,
670
- platform: r,
671
- elements: c
672
- } = e, {
673
- apply: f = () => {
674
- },
675
- ...a
676
- } = Y(t, e), l = await et(e, a), u = j(i), m = ot(i), d = $(i) === "y", {
677
- width: h,
678
- height: p
679
- } = s.floating;
680
- let w, g;
681
- u === "top" || u === "bottom" ? (w = u, g = m === (await (r.isRTL == null ? void 0 : r.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = m === "end" ? "top" : "bottom");
682
- const x = p - l.top - l.bottom, v = h - l.left - l.right, b = Q(p - l[w], x), y = Q(h - l[g], v), R = !e.middlewareData.shift;
683
- let S = b, D = y;
684
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (D = v), (o = e.middlewareData.shift) != null && o.enabled.y && (S = x), R && !m) {
685
- const C = T(l.left, 0), z = T(l.right, 0), I = T(l.top, 0), P = T(l.bottom, 0);
686
- d ? D = h - 2 * (C !== 0 || z !== 0 ? C + z : T(l.left, l.right)) : S = p - 2 * (I !== 0 || P !== 0 ? I + P : T(l.top, l.bottom));
687
- }
688
- await f({
689
- ...e,
690
- availableWidth: D,
691
- availableHeight: S
692
- });
693
- const _ = await r.getDimensions(c.floating);
694
- return h !== _.width || p !== _.height ? {
695
- reset: {
696
- rects: !0
697
- }
698
- } : {};
699
- }
700
- };
701
- };
702
- function Vt(t) {
703
- const e = W(t);
704
- let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
705
- const i = N(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, c = rt(n) !== s || rt(o) !== r;
706
- return c && (n = s, o = r), {
707
- width: n,
708
- height: o,
709
- $: c
710
- };
711
- }
712
- function bt(t) {
713
- return F(t) ? t : t.contextElement;
714
- }
715
- function G(t) {
716
- const e = bt(t);
717
- if (!N(e))
718
- return V(1);
719
- const n = e.getBoundingClientRect(), {
720
- width: o,
721
- height: i,
722
- $: s
723
- } = Vt(e);
724
- let r = (s ? rt(n.width) : n.width) / o, c = (s ? rt(n.height) : n.height) / i;
725
- return (!r || !Number.isFinite(r)) && (r = 1), (!c || !Number.isFinite(c)) && (c = 1), {
726
- x: r,
727
- y: c
728
- };
729
- }
730
- const Ae = /* @__PURE__ */ V(0);
731
- function Nt(t) {
732
- const e = M(t);
733
- return !yt() || !e.visualViewport ? Ae : {
734
- x: e.visualViewport.offsetLeft,
735
- y: e.visualViewport.offsetTop
736
- };
737
- }
738
- function Re(t, e, n) {
739
- return e === void 0 && (e = !1), !n || e && n !== M(t) ? !1 : e;
740
- }
741
- function U(t, e, n, o) {
742
- e === void 0 && (e = !1), n === void 0 && (n = !1);
743
- const i = t.getBoundingClientRect(), s = bt(t);
744
- let r = V(1);
745
- e && (o ? F(o) && (r = G(o)) : r = G(t));
746
- const c = Re(s, n, o) ? Nt(s) : V(0);
747
- let f = (i.left + c.x) / r.x, a = (i.top + c.y) / r.y, l = i.width / r.x, u = i.height / r.y;
748
- if (s) {
749
- const m = M(s), d = o && F(o) ? M(o) : o;
750
- let h = m, p = pt(h);
751
- for (; p && o && d !== h; ) {
752
- const w = G(p), g = p.getBoundingClientRect(), x = W(p), v = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, b = g.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
753
- f *= w.x, a *= w.y, l *= w.x, u *= w.y, f += v, a += b, h = M(p), p = pt(h);
754
- }
755
- }
756
- return lt({
757
- width: l,
758
- height: u,
759
- x: f,
760
- y: a
761
- });
762
- }
763
- function mt(t, e) {
764
- const n = dt(t).scrollLeft;
765
- return e ? e.left + n : U(H(t)).left + n;
766
- }
767
- function Ht(t, e) {
768
- const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - mt(t, n), i = n.top + e.scrollTop;
769
- return {
770
- x: o,
771
- y: i
772
- };
773
- }
774
- function Se(t) {
775
- let {
776
- elements: e,
777
- rect: n,
778
- offsetParent: o,
779
- strategy: i
780
- } = t;
781
- const s = i === "fixed", r = H(o), c = e ? ut(e.floating) : !1;
782
- if (o === r || c && s)
783
- return n;
784
- let f = {
785
- scrollLeft: 0,
786
- scrollTop: 0
787
- }, a = V(1);
788
- const l = V(0), u = N(o);
789
- if ((u || !u && !s) && ((Z(o) !== "body" || nt(r)) && (f = dt(o)), N(o))) {
790
- const d = U(o);
791
- a = G(o), l.x = d.x + o.clientLeft, l.y = d.y + o.clientTop;
792
- }
793
- const m = r && !u && !s ? Ht(r, f) : V(0);
794
- return {
795
- width: n.width * a.x,
796
- height: n.height * a.y,
797
- x: n.x * a.x - f.scrollLeft * a.x + l.x + m.x,
798
- y: n.y * a.y - f.scrollTop * a.y + l.y + m.y
799
- };
800
- }
801
- function Oe(t) {
802
- return Array.from(t.getClientRects());
803
- }
804
- function Ce(t) {
805
- const e = H(t), n = dt(t), o = t.ownerDocument.body, i = T(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = T(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
806
- let r = -n.scrollLeft + mt(t);
807
- const c = -n.scrollTop;
808
- return W(o).direction === "rtl" && (r += T(e.clientWidth, o.clientWidth) - i), {
809
- width: i,
810
- height: s,
811
- x: r,
812
- y: c
813
- };
814
- }
815
- const Tt = 25;
816
- function Le(t, e) {
817
- const n = M(t), o = H(t), i = n.visualViewport;
818
- let s = o.clientWidth, r = o.clientHeight, c = 0, f = 0;
819
- if (i) {
820
- s = i.width, r = i.height;
821
- const l = yt();
822
- (!l || l && e === "fixed") && (c = i.offsetLeft, f = i.offsetTop);
823
- }
824
- const a = mt(o);
825
- if (a <= 0) {
826
- const l = o.ownerDocument, u = l.body, m = getComputedStyle(u), d = l.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - u.clientWidth - d);
827
- h <= Tt && (s -= h);
828
- } else a <= Tt && (s += a);
829
- return {
830
- width: s,
831
- height: r,
832
- x: c,
833
- y: f
834
- };
835
- }
836
- const Ee = /* @__PURE__ */ new Set(["absolute", "fixed"]);
837
- function Te(t, e) {
838
- const n = U(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = N(t) ? G(t) : V(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, f = i * s.x, a = o * s.y;
839
- return {
840
- width: r,
841
- height: c,
842
- x: f,
843
- y: a
844
- };
845
- }
846
- function Mt(t, e, n) {
847
- let o;
848
- if (e === "viewport")
849
- o = Le(t, n);
850
- else if (e === "document")
851
- o = Ce(H(t));
852
- else if (F(e))
853
- o = Te(e, n);
854
- else {
855
- const i = Nt(t);
856
- o = {
857
- x: e.x - i.x,
858
- y: e.y - i.y,
859
- width: e.width,
860
- height: e.height
861
- };
862
- }
863
- return lt(o);
864
- }
865
- function _t(t, e) {
866
- const n = q(t);
867
- return n === e || !F(n) || J(n) ? !1 : W(n).position === "fixed" || _t(n, e);
868
- }
869
- function Me(t, e) {
870
- const n = e.get(t);
871
- if (n)
872
- return n;
873
- let o = tt(t, [], !1).filter((c) => F(c) && Z(c) !== "body"), i = null;
874
- const s = W(t).position === "fixed";
875
- let r = s ? q(t) : t;
876
- for (; F(r) && !J(r); ) {
877
- const c = W(r), f = xt(r);
878
- !f && c.position === "fixed" && (i = null), (s ? !f && !i : !f && c.position === "static" && !!i && Ee.has(i.position) || nt(r) && !f && _t(t, r)) ? o = o.filter((l) => l !== r) : i = c, r = q(r);
879
- }
880
- return e.set(t, o), o;
881
- }
882
- function De(t) {
883
- let {
884
- element: e,
885
- boundary: n,
886
- rootBoundary: o,
887
- strategy: i
888
- } = t;
889
- const r = [...n === "clippingAncestors" ? ut(e) ? [] : Me(e, this._c) : [].concat(n), o], c = r[0], f = r.reduce((a, l) => {
890
- const u = Mt(e, l, i);
891
- return a.top = T(u.top, a.top), a.right = Q(u.right, a.right), a.bottom = Q(u.bottom, a.bottom), a.left = T(u.left, a.left), a;
892
- }, Mt(e, c, i));
893
- return {
894
- width: f.right - f.left,
895
- height: f.bottom - f.top,
896
- x: f.left,
897
- y: f.top
898
- };
899
- }
900
- function Pe(t) {
901
- const {
902
- width: e,
903
- height: n
904
- } = Vt(t);
905
- return {
906
- width: e,
907
- height: n
908
- };
909
- }
910
- function ke(t, e, n) {
911
- const o = N(e), i = H(e), s = n === "fixed", r = U(t, !0, s, e);
912
- let c = {
913
- scrollLeft: 0,
914
- scrollTop: 0
915
- };
916
- const f = V(0);
917
- function a() {
918
- f.x = mt(i);
919
- }
920
- if (o || !o && !s)
921
- if ((Z(e) !== "body" || nt(i)) && (c = dt(e)), o) {
922
- const d = U(e, !0, s, e);
923
- f.x = d.x + e.clientLeft, f.y = d.y + e.clientTop;
924
- } else i && a();
925
- s && !o && i && a();
926
- const l = i && !o && !s ? Ht(i, c) : V(0), u = r.left + c.scrollLeft - f.x - l.x, m = r.top + c.scrollTop - f.y - l.y;
927
- return {
928
- x: u,
929
- y: m,
930
- width: r.width,
931
- height: r.height
932
- };
933
- }
934
- function ht(t) {
935
- return W(t).position === "static";
936
- }
937
- function Dt(t, e) {
938
- if (!N(t) || W(t).position === "fixed")
939
- return null;
940
- if (e)
941
- return e(t);
942
- let n = t.offsetParent;
943
- return H(t) === n && (n = n.ownerDocument.body), n;
944
- }
945
- function zt(t, e) {
946
- const n = M(t);
947
- if (ut(t))
948
- return n;
949
- if (!N(t)) {
950
- let i = q(t);
951
- for (; i && !J(i); ) {
952
- if (F(i) && !ht(i))
953
- return i;
954
- i = q(i);
955
- }
956
- return n;
957
- }
958
- let o = Dt(t, e);
959
- for (; o && Kt(o) && ht(o); )
960
- o = Dt(o, e);
961
- return o && J(o) && ht(o) && !xt(o) ? n : o || te(t) || n;
962
- }
963
- const Fe = async function(t) {
964
- const e = this.getOffsetParent || zt, n = this.getDimensions, o = await n(t.floating);
965
- return {
966
- reference: ke(t.reference, await e(t.floating), t.strategy),
967
- floating: {
968
- x: 0,
969
- y: 0,
970
- width: o.width,
971
- height: o.height
972
- }
973
- };
974
- };
975
- function We(t) {
976
- return W(t).direction === "rtl";
977
- }
978
- const Be = {
979
- convertOffsetParentRelativeRectToViewportRelativeRect: Se,
980
- getDocumentElement: H,
981
- getClippingRect: De,
982
- getOffsetParent: zt,
983
- getElementRects: Fe,
984
- getClientRects: Oe,
985
- getDimensions: Pe,
986
- getScale: G,
987
- isElement: F,
988
- isRTL: We
989
- };
990
- function jt(t, e) {
991
- return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
992
- }
993
- function $e(t, e) {
994
- let n = null, o;
995
- const i = H(t);
996
- function s() {
997
- var c;
998
- clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
999
- }
1000
- function r(c, f) {
1001
- c === void 0 && (c = !1), f === void 0 && (f = 1), s();
1002
- const a = t.getBoundingClientRect(), {
1003
- left: l,
1004
- top: u,
1005
- width: m,
1006
- height: d
1007
- } = a;
1008
- if (c || e(), !m || !d)
1009
- return;
1010
- const h = it(u), p = it(i.clientWidth - (l + m)), w = it(i.clientHeight - (u + d)), g = it(l), v = {
1011
- rootMargin: -h + "px " + -p + "px " + -w + "px " + -g + "px",
1012
- threshold: T(0, Q(1, f)) || 1
1013
- };
1014
- let b = !0;
1015
- function y(R) {
1016
- const S = R[0].intersectionRatio;
1017
- if (S !== f) {
1018
- if (!b)
1019
- return r();
1020
- S ? r(!1, S) : o = setTimeout(() => {
1021
- r(!1, 1e-7);
1022
- }, 1e3);
1023
- }
1024
- S === 1 && !jt(a, t.getBoundingClientRect()) && r(), b = !1;
1025
- }
1026
- try {
1027
- n = new IntersectionObserver(y, {
1028
- ...v,
1029
- // Handle <iframe>s
1030
- root: i.ownerDocument
1031
- });
1032
- } catch {
1033
- n = new IntersectionObserver(y, v);
1034
- }
1035
- n.observe(t);
1036
- }
1037
- return r(!0), s;
1038
- }
1039
- function Ue(t, e, n, o) {
1040
- o === void 0 && (o = {});
1041
- const {
1042
- ancestorScroll: i = !0,
1043
- ancestorResize: s = !0,
1044
- elementResize: r = typeof ResizeObserver == "function",
1045
- layoutShift: c = typeof IntersectionObserver == "function",
1046
- animationFrame: f = !1
1047
- } = o, a = bt(t), l = i || s ? [...a ? tt(a) : [], ...tt(e)] : [];
1048
- l.forEach((g) => {
1049
- i && g.addEventListener("scroll", n, {
1050
- passive: !0
1051
- }), s && g.addEventListener("resize", n);
1052
- });
1053
- const u = a && c ? $e(a, n) : null;
1054
- let m = -1, d = null;
1055
- r && (d = new ResizeObserver((g) => {
1056
- let [x] = g;
1057
- x && x.target === a && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1058
- var v;
1059
- (v = d) == null || v.observe(e);
1060
- })), n();
1061
- }), a && !f && d.observe(a), d.observe(e));
1062
- let h, p = f ? U(t) : null;
1063
- f && w();
1064
- function w() {
1065
- const g = U(t);
1066
- p && !jt(p, g) && n(), p = g, h = requestAnimationFrame(w);
1067
- }
1068
- return n(), () => {
1069
- var g;
1070
- l.forEach((x) => {
1071
- i && x.removeEventListener("scroll", n), s && x.removeEventListener("resize", n);
1072
- }), u?.(), (g = d) == null || g.disconnect(), d = null, f && cancelAnimationFrame(h);
1073
- };
1074
- }
1075
- const Ve = xe, Ne = ye, He = ge, _e = be, ze = pe, je = ve, Ie = (t, e, n) => {
1076
- const o = /* @__PURE__ */ new Map(), i = {
1077
- platform: Be,
1078
- ...n
1079
- }, s = {
1080
- ...i.platform,
1081
- _c: o
1082
- };
1083
- return he(t, e, {
1084
- ...i,
1085
- platform: s
1086
- });
1087
- };
1088
- var Xe = typeof document < "u", qe = function() {
1089
- }, st = Xe ? Xt : qe;
1090
- function ft(t, e) {
1091
- if (t === e)
1092
- return !0;
1093
- if (typeof t != typeof e)
1094
- return !1;
1095
- if (typeof t == "function" && t.toString() === e.toString())
1096
- return !0;
1097
- let n, o, i;
1098
- if (t && e && typeof t == "object") {
1099
- if (Array.isArray(t)) {
1100
- if (n = t.length, n !== e.length) return !1;
1101
- for (o = n; o-- !== 0; )
1102
- if (!ft(t[o], e[o]))
1103
- return !1;
1104
- return !0;
1105
- }
1106
- if (i = Object.keys(t), n = i.length, n !== Object.keys(e).length)
1107
- return !1;
1108
- for (o = n; o-- !== 0; )
1109
- if (!{}.hasOwnProperty.call(e, i[o]))
1110
- return !1;
1111
- for (o = n; o-- !== 0; ) {
1112
- const s = i[o];
1113
- if (!(s === "_owner" && t.$$typeof) && !ft(t[s], e[s]))
1114
- return !1;
1115
- }
1116
- return !0;
1117
- }
1118
- return t !== t && e !== e;
1119
- }
1120
- function It(t) {
1121
- return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1122
- }
1123
- function Pt(t, e) {
1124
- const n = It(t);
1125
- return Math.round(e * n) / n;
1126
- }
1127
- function gt(t) {
1128
- const e = O.useRef(t);
1129
- return st(() => {
1130
- e.current = t;
1131
- }), e;
1132
- }
1133
- function Ke(t) {
1134
- t === void 0 && (t = {});
1135
- const {
1136
- placement: e = "bottom",
1137
- strategy: n = "absolute",
1138
- middleware: o = [],
1139
- platform: i,
1140
- elements: {
1141
- reference: s,
1142
- floating: r
1143
- } = {},
1144
- transform: c = !0,
1145
- whileElementsMounted: f,
1146
- open: a
1147
- } = t, [l, u] = O.useState({
1148
- x: 0,
1149
- y: 0,
1150
- strategy: n,
1151
- placement: e,
1152
- middlewareData: {},
1153
- isPositioned: !1
1154
- }), [m, d] = O.useState(o);
1155
- ft(m, o) || d(o);
1156
- const [h, p] = O.useState(null), [w, g] = O.useState(null), x = O.useCallback((A) => {
1157
- A !== R.current && (R.current = A, p(A));
1158
- }, []), v = O.useCallback((A) => {
1159
- A !== S.current && (S.current = A, g(A));
1160
- }, []), b = s || h, y = r || w, R = O.useRef(null), S = O.useRef(null), D = O.useRef(l), _ = f != null, C = gt(f), z = gt(i), I = gt(a), P = O.useCallback(() => {
1161
- if (!R.current || !S.current)
1162
- return;
1163
- const A = {
1164
- placement: e,
1165
- strategy: n,
1166
- middleware: m
1167
- };
1168
- z.current && (A.platform = z.current), Ie(R.current, S.current, A).then((E) => {
1169
- const X = {
1170
- ...E,
1171
- // The floating element's position may be recomputed while it's closed
1172
- // but still mounted (such as when transitioning out). To ensure
1173
- // `isPositioned` will be `false` initially on the next open, avoid
1174
- // setting it to `true` when `open === false` (must be specified).
1175
- isPositioned: I.current !== !1
1176
- };
1177
- k.current && !ft(D.current, X) && (D.current = X, qt.flushSync(() => {
1178
- u(X);
1179
- }));
1180
- });
1181
- }, [m, e, n, z, I]);
1182
- st(() => {
1183
- a === !1 && D.current.isPositioned && (D.current.isPositioned = !1, u((A) => ({
1184
- ...A,
1185
- isPositioned: !1
1186
- })));
1187
- }, [a]);
1188
- const k = O.useRef(!1);
1189
- st(() => (k.current = !0, () => {
1190
- k.current = !1;
1191
- }), []), st(() => {
1192
- if (b && (R.current = b), y && (S.current = y), b && y) {
1193
- if (C.current)
1194
- return C.current(b, y, P);
1195
- P();
1196
- }
1197
- }, [b, y, P, C, _]);
1198
- const K = O.useMemo(() => ({
1199
- reference: R,
1200
- floating: S,
1201
- setReference: x,
1202
- setFloating: v
1203
- }), [x, v]), L = O.useMemo(() => ({
1204
- reference: b,
1205
- floating: y
1206
- }), [b, y]), B = O.useMemo(() => {
1207
- const A = {
1208
- position: n,
1209
- left: 0,
1210
- top: 0
1211
- };
1212
- if (!L.floating)
1213
- return A;
1214
- const E = Pt(L.floating, l.x), X = Pt(L.floating, l.y);
1215
- return c ? {
1216
- ...A,
1217
- transform: "translate(" + E + "px, " + X + "px)",
1218
- ...It(L.floating) >= 1.5 && {
1219
- willChange: "transform"
1220
- }
1221
- } : {
1222
- position: n,
1223
- left: E,
1224
- top: X
1225
- };
1226
- }, [n, c, L.floating, l.x, l.y]);
1227
- return O.useMemo(() => ({
1228
- ...l,
1229
- update: P,
1230
- refs: K,
1231
- elements: L,
1232
- floatingStyles: B
1233
- }), [l, P, K, L, B]);
1234
- }
1235
- const Ge = (t, e) => ({
1236
- ...Ve(t),
1237
- options: [t, e]
1238
- }), Je = (t, e) => ({
1239
- ...Ne(t),
1240
- options: [t, e]
1241
- }), Qe = (t, e) => ({
1242
- ...je(t),
1243
- options: [t, e]
1244
- }), Ze = (t, e) => ({
1245
- ...He(t),
1246
- options: [t, e]
1247
- }), tn = (t, e) => ({
1248
- ..._e(t),
1249
- options: [t, e]
1250
- }), en = (t, e) => ({
1251
- ...ze(t),
1252
- options: [t, e]
1253
- });
1254
- export {
1255
- Je as A,
1256
- Qe as B,
1257
- rt as C,
1258
- nt as D,
1259
- N as a,
1260
- F as b,
1261
- kt as c,
1262
- M as d,
1263
- W as e,
1264
- it as f,
1265
- Z as g,
1266
- J as h,
1267
- At as i,
1268
- q as j,
1269
- tt as k,
1270
- yt as l,
1271
- Y as m,
1272
- me as n,
1273
- Bt as o,
1274
- ot as p,
1275
- Rt as q,
1276
- Wt as r,
1277
- en as s,
1278
- j as t,
1279
- Ke as u,
1280
- Ze as v,
1281
- Ge as w,
1282
- tn as x,
1283
- $ as y,
1284
- Ue as z
1285
- };
1286
- //# sourceMappingURL=vendor-floating-ui-gr9m6tsa1cpqwn99.js.map