wimui 0.37.0 → 0.37.2

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 (253) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +1 -1
  2. package/dist/components/_internal/BaseListItem/base-list-item.module.cjs +1 -1
  3. package/dist/components/_internal/BaseListItem/base-list-item.module.js +1 -1
  4. package/dist/components/_internal/useFloatingElement.cjs +1 -1
  5. package/dist/components/_internal/useFloatingElement.js +10 -10
  6. package/dist/components/ai/AIResponseFeedback/airesponse-feedback.module.cjs +1 -1
  7. package/dist/components/ai/AIResponseFeedback/airesponse-feedback.module.js +1 -1
  8. package/dist/components/ai/CodeBlock/code-block.module.cjs +1 -1
  9. package/dist/components/ai/CodeBlock/code-block.module.js +1 -1
  10. package/dist/components/ai/CodeDiffViewer/code-diff-viewer.module.cjs +1 -1
  11. package/dist/components/ai/CodeDiffViewer/code-diff-viewer.module.js +2 -2
  12. package/dist/components/ai/InteractiveGraph/interactive-graph.module.cjs +1 -1
  13. package/dist/components/ai/InteractiveGraph/interactive-graph.module.js +1 -1
  14. package/dist/components/ai/ModelSelector/ModelSelector.cjs +1 -1
  15. package/dist/components/ai/ModelSelector/ModelSelector.js +9 -7
  16. package/dist/components/ai/ModelSelector/model-selector.module.cjs +1 -1
  17. package/dist/components/ai/ModelSelector/model-selector.module.js +1 -1
  18. package/dist/components/ai/SourceCitation/source-citation.module.cjs +1 -1
  19. package/dist/components/ai/SourceCitation/source-citation.module.js +1 -1
  20. package/dist/components/ai/Terminal/terminal.module.cjs +1 -1
  21. package/dist/components/ai/Terminal/terminal.module.js +1 -1
  22. package/dist/components/ai/ThoughtProcess/thought-process.module.cjs +1 -1
  23. package/dist/components/ai/ThoughtProcess/thought-process.module.js +4 -4
  24. package/dist/components/ai/ThreadList/thread-list.module.cjs +1 -1
  25. package/dist/components/ai/ThreadList/thread-list.module.js +1 -1
  26. package/dist/components/ai/VoiceVisualizer/VoiceVisualizer.cjs +1 -1
  27. package/dist/components/ai/VoiceVisualizer/VoiceVisualizer.js +1 -1
  28. package/dist/components/charts/CandlestickChart/CandlestickChart.cjs +1 -1
  29. package/dist/components/charts/CandlestickChart/CandlestickChart.js +2 -2
  30. package/dist/components/charts/GanttChart/GanttChart.cjs +1 -1
  31. package/dist/components/charts/GanttChart/GanttChart.js +1 -1
  32. package/dist/components/charts/GanttChart/gantt-chart.module.cjs +1 -1
  33. package/dist/components/charts/GanttChart/gantt-chart.module.js +1 -1
  34. package/dist/components/charts/SankeyChart/SankeyChart.cjs +1 -1
  35. package/dist/components/charts/SankeyChart/SankeyChart.js +1 -1
  36. package/dist/components/charts/Sparkline/Sparkline.cjs +1 -1
  37. package/dist/components/charts/Sparkline/Sparkline.js +1 -1
  38. package/dist/components/data-display/Accordion/Accordion.cjs +1 -1
  39. package/dist/components/data-display/Accordion/Accordion.js +1 -3
  40. package/dist/components/data-display/Accordion/accordion.module.cjs +1 -1
  41. package/dist/components/data-display/Accordion/accordion.module.js +1 -1
  42. package/dist/components/data-display/Badge/badge.module.cjs +1 -1
  43. package/dist/components/data-display/Badge/badge.module.js +1 -1
  44. package/dist/components/data-display/Barcode/Barcode.cjs +1 -1
  45. package/dist/components/data-display/Barcode/Barcode.js +2 -2
  46. package/dist/components/data-display/Calendar/Calendar.cjs +1 -1
  47. package/dist/components/data-display/Calendar/Calendar.js +20 -20
  48. package/dist/components/data-display/Card/card.module.cjs +1 -1
  49. package/dist/components/data-display/Card/card.module.js +15 -15
  50. package/dist/components/data-display/Carousel/carousel.module.cjs +1 -1
  51. package/dist/components/data-display/Carousel/carousel.module.js +1 -1
  52. package/dist/components/data-display/Chip/chip.module.cjs +1 -1
  53. package/dist/components/data-display/Chip/chip.module.js +2 -2
  54. package/dist/components/data-display/Comment/comment.module.cjs +1 -1
  55. package/dist/components/data-display/Comment/comment.module.js +1 -1
  56. package/dist/components/data-display/Countdown/Countdown.cjs +1 -1
  57. package/dist/components/data-display/Countdown/Countdown.js +1 -1
  58. package/dist/components/data-display/JsonDiffViewer/JsonDiffViewer.cjs +1 -1
  59. package/dist/components/data-display/JsonDiffViewer/JsonDiffViewer.js +11 -8
  60. package/dist/components/data-display/JsonViewer/JsonViewer.cjs +1 -1
  61. package/dist/components/data-display/JsonViewer/JsonViewer.js +9 -9
  62. package/dist/components/data-display/JsonViewer/json-viewer.module.cjs +1 -1
  63. package/dist/components/data-display/JsonViewer/json-viewer.module.js +3 -3
  64. package/dist/components/data-display/List/list.module.cjs +1 -1
  65. package/dist/components/data-display/List/list.module.js +4 -4
  66. package/dist/components/data-display/NodeGraph/NodeGraph.cjs +1 -1
  67. package/dist/components/data-display/NodeGraph/NodeGraph.js +1 -1
  68. package/dist/components/data-display/NodeGraph/node-graph.module.cjs +1 -1
  69. package/dist/components/data-display/NodeGraph/node-graph.module.js +1 -1
  70. package/dist/components/data-display/Reaction/reaction.module.cjs +1 -1
  71. package/dist/components/data-display/Reaction/reaction.module.js +1 -1
  72. package/dist/components/data-display/Tag/tag.module.cjs +1 -1
  73. package/dist/components/data-display/Tag/tag.module.js +1 -1
  74. package/dist/components/data-display/TreeView/TreeView.cjs +1 -1
  75. package/dist/components/data-display/TreeView/TreeView.js +10 -14
  76. package/dist/components/data-display/TreeView/tree-view.module.cjs +1 -1
  77. package/dist/components/data-display/TreeView/tree-view.module.js +1 -1
  78. package/dist/components/data-display/TreeView/useTreeViewItemExpansion.cjs +1 -1
  79. package/dist/components/data-display/TreeView/useTreeViewItemExpansion.js +2 -1
  80. package/dist/components/data-display/VirtualList/virtual-list.module.cjs +1 -1
  81. package/dist/components/data-display/VirtualList/virtual-list.module.js +1 -1
  82. package/dist/components/feedback/Alert/alert.module.cjs +1 -1
  83. package/dist/components/feedback/Alert/alert.module.js +2 -2
  84. package/dist/components/feedback/Banner/banner.module.cjs +1 -1
  85. package/dist/components/feedback/Banner/banner.module.js +2 -2
  86. package/dist/components/feedback/Notification/notification.module.cjs +1 -1
  87. package/dist/components/feedback/Notification/notification.module.js +2 -2
  88. package/dist/components/feedback/Snackbar/Snackbar.cjs +1 -1
  89. package/dist/components/feedback/Snackbar/Snackbar.js +2 -1
  90. package/dist/components/feedback/Snackbar/snackbar.module.cjs +1 -1
  91. package/dist/components/feedback/Snackbar/snackbar.module.js +7 -7
  92. package/dist/components/feedback/Toast/toast.module.cjs +1 -1
  93. package/dist/components/feedback/Toast/toast.module.js +8 -8
  94. package/dist/components/feedback/Tour/Tour.cjs +1 -1
  95. package/dist/components/feedback/Tour/Tour.js +2 -2
  96. package/dist/components/form/Button/button.module.cjs +1 -1
  97. package/dist/components/form/Button/button.module.js +2 -2
  98. package/dist/components/form/Cascader/Cascader.cjs +1 -1
  99. package/dist/components/form/Cascader/Cascader.js +1 -3
  100. package/dist/components/form/Cascader/cascader.module.cjs +1 -1
  101. package/dist/components/form/Cascader/cascader.module.js +6 -6
  102. package/dist/components/form/Checkbox/checkbox.module.cjs +1 -1
  103. package/dist/components/form/Checkbox/checkbox.module.js +1 -1
  104. package/dist/components/form/Combobox/Combobox.cjs +1 -1
  105. package/dist/components/form/Combobox/Combobox.js +1 -3
  106. package/dist/components/form/FloatButton/FloatButton.cjs +1 -1
  107. package/dist/components/form/FloatButton/FloatButton.js +1 -1
  108. package/dist/components/form/InlineEdit/inline-edit.module.cjs +1 -1
  109. package/dist/components/form/InlineEdit/inline-edit.module.js +1 -1
  110. package/dist/components/form/Input/input.module.cjs +1 -1
  111. package/dist/components/form/Input/input.module.js +1 -1
  112. package/dist/components/form/InputBase/input-base.module.cjs +1 -1
  113. package/dist/components/form/InputBase/input-base.module.js +1 -1
  114. package/dist/components/form/InputMask/InputMask.cjs +1 -1
  115. package/dist/components/form/InputMask/InputMask.js +7 -6
  116. package/dist/components/form/MultiSelect/MultiSelect.cjs +1 -1
  117. package/dist/components/form/MultiSelect/MultiSelect.js +1 -3
  118. package/dist/components/form/MultiSelect/multiselect.module.cjs +1 -1
  119. package/dist/components/form/MultiSelect/multiselect.module.js +1 -1
  120. package/dist/components/form/OtpInput/otp-input.module.cjs +1 -1
  121. package/dist/components/form/OtpInput/otp-input.module.js +1 -1
  122. package/dist/components/form/PhoneInput/phone-input.module.cjs +1 -1
  123. package/dist/components/form/PhoneInput/phone-input.module.js +1 -1
  124. package/dist/components/form/QueryBuilder/QueryBuilder.cjs +1 -1
  125. package/dist/components/form/QueryBuilder/QueryBuilder.js +69 -66
  126. package/dist/components/form/QueryBuilder/querybuilder.module.cjs +1 -1
  127. package/dist/components/form/QueryBuilder/querybuilder.module.js +1 -1
  128. package/dist/components/form/Radio/Radio.cjs +1 -1
  129. package/dist/components/form/Radio/Radio.js +4 -4
  130. package/dist/components/form/Radio/radio.module.cjs +1 -1
  131. package/dist/components/form/Radio/radio.module.js +1 -1
  132. package/dist/components/form/RangeSlider/range-slider.module.cjs +1 -1
  133. package/dist/components/form/RangeSlider/range-slider.module.js +1 -1
  134. package/dist/components/form/RichTextEditor/rich-text-editor.module.cjs +1 -1
  135. package/dist/components/form/RichTextEditor/rich-text-editor.module.js +1 -1
  136. package/dist/components/form/SegmentedControl/SegmentedControl.cjs +1 -1
  137. package/dist/components/form/SegmentedControl/SegmentedControl.js +4 -4
  138. package/dist/components/form/SegmentedControl/segmented-control.module.cjs +1 -1
  139. package/dist/components/form/SegmentedControl/segmented-control.module.js +1 -1
  140. package/dist/components/form/Select/Select.cjs +1 -1
  141. package/dist/components/form/Select/Select.js +45 -45
  142. package/dist/components/form/Select/select.module.cjs +1 -1
  143. package/dist/components/form/Select/select.module.js +1 -1
  144. package/dist/components/form/Select/useSelect.cjs +1 -1
  145. package/dist/components/form/Select/useSelect.js +1 -3
  146. package/dist/components/form/Slider/slider.module.cjs +1 -1
  147. package/dist/components/form/Slider/slider.module.js +1 -1
  148. package/dist/components/form/SmartSearchInput/SmartSearchInput.cjs +1 -1
  149. package/dist/components/form/SmartSearchInput/SmartSearchInput.js +1 -1
  150. package/dist/components/form/Switch/Switch.cjs +1 -1
  151. package/dist/components/form/Switch/Switch.js +6 -6
  152. package/dist/components/form/Switch/switch.module.cjs +1 -1
  153. package/dist/components/form/Switch/switch.module.js +1 -1
  154. package/dist/components/form/Textarea/textarea.module.cjs +1 -1
  155. package/dist/components/form/Textarea/textarea.module.js +1 -1
  156. package/dist/components/form/ThemeToggle/theme-toggle.module.cjs +1 -1
  157. package/dist/components/form/ThemeToggle/theme-toggle.module.js +1 -1
  158. package/dist/components/form/ToggleGroup/ToggleGroup.cjs +1 -1
  159. package/dist/components/form/ToggleGroup/ToggleGroup.js +28 -25
  160. package/dist/components/form/ToggleGroup/toggle-group.module.cjs +1 -1
  161. package/dist/components/form/ToggleGroup/toggle-group.module.js +1 -1
  162. package/dist/components/form/Transfer/transfer.module.cjs +1 -1
  163. package/dist/components/form/Transfer/transfer.module.js +6 -6
  164. package/dist/components/form/TreeSelect/TreeSelect.cjs +1 -1
  165. package/dist/components/form/TreeSelect/TreeSelect.js +2 -1
  166. package/dist/components/form/TreeSelect/tree-select.module.cjs +1 -1
  167. package/dist/components/form/TreeSelect/tree-select.module.js +6 -6
  168. package/dist/components/layout/BentoGrid/bento-grid.module.cjs +1 -1
  169. package/dist/components/layout/BentoGrid/bento-grid.module.js +7 -7
  170. package/dist/components/layout/Dashboard/dashboard.module.cjs +1 -1
  171. package/dist/components/layout/Dashboard/dashboard.module.js +13 -13
  172. package/dist/components/layout/Footer/footer.module.cjs +1 -1
  173. package/dist/components/layout/Footer/footer.module.js +4 -4
  174. package/dist/components/layout/Header/header.module.cjs +1 -1
  175. package/dist/components/layout/Header/header.module.js +4 -4
  176. package/dist/components/layout/InteractiveArea/interactive-area.module.cjs +1 -1
  177. package/dist/components/layout/InteractiveArea/interactive-area.module.js +2 -2
  178. package/dist/components/layout/Navbar/navbar.module.cjs +1 -1
  179. package/dist/components/layout/Navbar/navbar.module.js +1 -1
  180. package/dist/components/layout/Sidebar/sidebar.module.cjs +1 -1
  181. package/dist/components/layout/Sidebar/sidebar.module.js +2 -2
  182. package/dist/components/media/Audio/Audio.cjs +1 -1
  183. package/dist/components/media/Audio/Audio.js +1 -1
  184. package/dist/components/media/Audio/audio.module.cjs +1 -1
  185. package/dist/components/media/Audio/audio.module.js +2 -2
  186. package/dist/components/media/Audio/hooks/useAudioPlayer.cjs +1 -1
  187. package/dist/components/media/Audio/hooks/useAudioPlayer.js +2 -4
  188. package/dist/components/media/Gallery/gallery.module.cjs +1 -1
  189. package/dist/components/media/Gallery/gallery.module.js +11 -11
  190. package/dist/components/media/ImageCompare/image-compare.module.cjs +1 -1
  191. package/dist/components/media/ImageCompare/image-compare.module.js +6 -6
  192. package/dist/components/media/Lightbox/lightbox.module.cjs +1 -1
  193. package/dist/components/media/Lightbox/lightbox.module.js +1 -1
  194. package/dist/components/media/Video/hooks/useVideoPlayer.cjs +1 -1
  195. package/dist/components/media/Video/hooks/useVideoPlayer.js +3 -5
  196. package/dist/components/media/Video/video.module.cjs +1 -1
  197. package/dist/components/media/Video/video.module.js +2 -2
  198. package/dist/components/navigation/Anchor/Anchor.cjs +1 -1
  199. package/dist/components/navigation/Anchor/Anchor.js +4 -2
  200. package/dist/components/navigation/BackTop/backtop.module.cjs +1 -1
  201. package/dist/components/navigation/BackTop/backtop.module.js +1 -1
  202. package/dist/components/navigation/CommandPalette/command-palette.module.cjs +1 -1
  203. package/dist/components/navigation/CommandPalette/command-palette.module.js +1 -1
  204. package/dist/components/navigation/Link/link.module.cjs +1 -1
  205. package/dist/components/navigation/Link/link.module.js +1 -1
  206. package/dist/components/navigation/Menubar/Menubar.cjs +1 -1
  207. package/dist/components/navigation/Menubar/Menubar.js +1 -4
  208. package/dist/components/navigation/Pagination/pagination.module.cjs +1 -1
  209. package/dist/components/navigation/Pagination/pagination.module.js +1 -1
  210. package/dist/components/navigation/SpeedDial/speed-dial.module.cjs +1 -1
  211. package/dist/components/navigation/SpeedDial/speed-dial.module.js +1 -1
  212. package/dist/components/navigation/Stepper/stepper.module.cjs +1 -1
  213. package/dist/components/navigation/Stepper/stepper.module.js +1 -1
  214. package/dist/components/navigation/TabBar/tab-bar.module.cjs +1 -1
  215. package/dist/components/navigation/TabBar/tab-bar.module.js +1 -1
  216. package/dist/components/navigation/TabNavigation/tab-navigation.module.cjs +1 -1
  217. package/dist/components/navigation/TabNavigation/tab-navigation.module.js +1 -1
  218. package/dist/components/navigation/Tabs/tabs.module.cjs +1 -1
  219. package/dist/components/navigation/Tabs/tabs.module.js +1 -1
  220. package/dist/components/overlay/BottomSheet/bottom-sheet.module.cjs +1 -1
  221. package/dist/components/overlay/BottomSheet/bottom-sheet.module.js +1 -1
  222. package/dist/components/overlay/ContextMenu/ContextMenu.cjs +1 -1
  223. package/dist/components/overlay/ContextMenu/ContextMenu.js +21 -21
  224. package/dist/components/overlay/Dialog/dialog.module.cjs +1 -1
  225. package/dist/components/overlay/Dialog/dialog.module.js +1 -1
  226. package/dist/components/overlay/Drawer/drawer.module.cjs +1 -1
  227. package/dist/components/overlay/Drawer/drawer.module.js +1 -1
  228. package/dist/components/overlay/Dropdown/Dropdown.cjs +1 -1
  229. package/dist/components/overlay/Dropdown/Dropdown.js +1 -3
  230. package/dist/components/overlay/HoverCard/HoverCard.cjs +1 -1
  231. package/dist/components/overlay/HoverCard/HoverCard.js +4 -4
  232. package/dist/components/overlay/Popover/Popover.cjs +1 -1
  233. package/dist/components/overlay/Popover/Popover.js +2 -2
  234. package/dist/components/overlay/Tooltip/Tooltip.cjs +1 -1
  235. package/dist/components/overlay/Tooltip/Tooltip.js +14 -14
  236. package/dist/components/typography/Blockquote/blockquote.module.cjs +1 -1
  237. package/dist/components/typography/Blockquote/blockquote.module.js +1 -1
  238. package/dist/components/typography/Legend/Legend.cjs +1 -1
  239. package/dist/components/typography/Legend/Legend.js +1 -1
  240. package/dist/components/typography/Spoiler/spoiler.module.cjs +1 -1
  241. package/dist/components/typography/Spoiler/spoiler.module.js +1 -1
  242. package/dist/hooks/useMergedRef.cjs +1 -1
  243. package/dist/hooks/useMergedRef.js +7 -5
  244. package/dist/i18n/useWimTranslation.cjs +1 -1
  245. package/dist/i18n/useWimTranslation.js +2 -2
  246. package/dist/llms-full.txt +1 -1
  247. package/dist/llms.txt +1 -1
  248. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -1
  249. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  250. package/dist/styles.css +1 -1
  251. package/dist/wimui.umd.css +1 -1
  252. package/dist/wimui.umd.js +4 -4
  253. package/package.json +18 -15
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- const e=require("./instance.cjs");let t=require("react");function n(n){let r=(0,t.useSyncExternalStore)(e.subscribeWimLocale,e.getWimLocale,e.getWimLocale);return{t:(0,t.useCallback)((t,r)=>e.wimTranslate(n,t,r),[Array.isArray(n)?n.join(`,`):n]),i18n:{language:r,changeLanguage:e.setWimLocale}}}exports.useWimTranslation=n;
2
+ const e=require("./instance.cjs");let t=require("react");function n(n){let r=(0,t.useSyncExternalStore)(e.subscribeWimLocale,e.getWimLocale,e.getWimLocale),i=Array.isArray(n)?n.join(`,`):n;return{t:(0,t.useCallback)((t,r)=>e.wimTranslate(n,t,r),[i]),i18n:{language:r,changeLanguage:e.setWimLocale}}}exports.useWimTranslation=n;
@@ -3,9 +3,9 @@ import { getWimLocale as e, setWimLocale as t, subscribeWimLocale as n, wimTrans
3
3
  import { useCallback as i, useSyncExternalStore as a } from "react";
4
4
  //#region src/i18n/useWimTranslation.ts
5
5
  function o(o) {
6
- let s = a(n, e, e);
6
+ let s = a(n, e, e), c = Array.isArray(o) ? o.join(",") : o;
7
7
  return {
8
- t: i((e, t) => r(o, e, t), [Array.isArray(o) ? o.join(",") : o]),
8
+ t: i((e, t) => r(o, e, t), [c]),
9
9
  i18n: {
10
10
  language: s,
11
11
  changeLanguage: t
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## What this is
6
6
 
7
- **wimui** v0.37.0 — a React 19 component library: 225 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
7
+ **wimui** v0.37.2 — a React 19 component library: 225 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
8
8
 
9
9
  ## Install & required setup
10
10
 
package/dist/llms.txt CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## What this is
6
6
 
7
- **wimui** v0.37.0 — a React 19 component library: 225 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
7
+ **wimui** v0.37.2 — a React 19 component library: 225 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
8
8
 
9
9
  ## Install & required setup
10
10
 
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- const e=require("../../../../_virtual/_rolldown/runtime.cjs");let t=require("react");t=e.__toESM(t,1);var n=Object.defineProperty,r=(e,t)=>n(e,`name`,{value:t,configurable:!0});function i(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}r(i,`setRef`);function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():i(e[t],null)}}}}r(a,`composeRefs`);function o(...e){return t.useCallback(a(...e),e)}r(o,`useComposedRefs`),exports.composeRefs=a,exports.useComposedRefs=o;
2
+ const e=require("../../../../_virtual/_rolldown/runtime.cjs");let t=require("react"),n=e.__toESM(t,1);t=e.__toESM(t);var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0});function a(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}i(a,`setRef`);function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():a(e[t],null)}}}}i(o,`composeRefs`);function s(...e){return n.useCallback(o(...e),e)}i(s,`useComposedRefs`),exports.composeRefs=o,exports.useComposedRefs=s;
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- const e=require("../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../react-compose-refs/dist/index.cjs");let n=require("react");n=e.__toESM(n,1);var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0});function a(e){let r=n.forwardRef((r,i)=>{let{children:a,...o}=r,s=null,c=!1,l=[];h(a)&&typeof y==`function`&&(a=y(a._payload)),n.Children.forEach(a,e=>{if(p(e)){c=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;h(n)&&typeof y==`function`&&(n=y(n._payload)),s=u(t,n),l.push(s?.props?.children)}else l.push(e)}),s?s=n.cloneElement(s,void 0,l):!c&&n.Children.count(a)===1&&n.isValidElement(a)&&(s=a);let m=s?f(s):void 0,g=t.useComposedRefs(i,m);if(!s){if(a||a===0)throw Error(c?v(e):_(e));return a}let b=d(o,s.props??{});return s.type!==n.Fragment&&(b.ref=i?g:m),n.cloneElement(s,b)});return r.displayName=`${e}.Slot`,r}i(a,`createSlot`);var o=a(`Slot`),s=Symbol.for(`radix.slottable`);function c(e){let t=i(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=s,t}i(c,`createSlottable`);var l=c(`Slottable`),u=i((e,t)=>{if(`child`in e.props){let t=e.props.child;return n.isValidElement(t)?n.cloneElement(t,void 0,e.props.children(t.props.children)):null}return n.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function d(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}i(d,`mergeProps`);function f(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}i(f,`getElementRef`);function p(e){return n.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===s}i(p,`isSlottable`);var m=Symbol.for(`react.lazy`);function h(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===m&&`_payload`in e&&g(e._payload)}i(h,`isLazyComponent`);function g(e){return typeof e==`object`&&!!e&&`then`in e}i(g,`isPromiseLike`);var _=i(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),v=i(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),y=n.use;exports.Root=o,exports.Slot=o,exports.Slottable=l,exports.createSlot=a,exports.createSlottable=c;
2
+ const e=require("../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../react-compose-refs/dist/index.cjs");let n=require("react"),r=e.__toESM(n,1);n=e.__toESM(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0});function o(e){let n=r.forwardRef((n,i)=>{let{children:a,...o}=n,s=null,c=!1,l=[];g(a)&&typeof b==`function`&&(a=b(a._payload)),r.Children.forEach(a,e=>{if(m(e)){c=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;g(n)&&typeof b==`function`&&(n=b(n._payload)),s=d(t,n),l.push(s?.props?.children)}else l.push(e)}),s?s=r.cloneElement(s,void 0,l):!c&&r.Children.count(a)===1&&r.isValidElement(a)&&(s=a);let u=s?p(s):void 0,h=t.useComposedRefs(i,u);if(!s){if(a||a===0)throw Error(c?y(e):v(e));return a}let _=f(o,s.props??{});return s.type!==r.Fragment&&(_.ref=i?h:u),r.cloneElement(s,_)});return n.displayName=`${e}.Slot`,n}a(o,`createSlot`);var s=o(`Slot`),c=Symbol.for(`radix.slottable`);function l(e){let t=a(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=c,t}a(l,`createSlottable`);var u=l(`Slottable`),d=a((e,t)=>{if(`child`in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function f(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}a(f,`mergeProps`);function p(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}a(p,`getElementRef`);function m(e){return r.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===c}a(m,`isSlottable`);var h=Symbol.for(`react.lazy`);function g(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===h&&`_payload`in e&&_(e._payload)}a(g,`isLazyComponent`);function _(e){return typeof e==`object`&&!!e&&`then`in e}a(_,`isPromiseLike`);var v=a(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),y=a(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),b=r.use;exports.Root=s,exports.Slot=s,exports.Slottable=u,exports.createSlot=o,exports.createSlottable=l;