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.
- package/dist/_virtual/_rolldown/runtime.cjs +1 -1
- package/dist/components/_internal/BaseListItem/base-list-item.module.cjs +1 -1
- package/dist/components/_internal/BaseListItem/base-list-item.module.js +1 -1
- package/dist/components/_internal/useFloatingElement.cjs +1 -1
- package/dist/components/_internal/useFloatingElement.js +10 -10
- package/dist/components/ai/AIResponseFeedback/airesponse-feedback.module.cjs +1 -1
- package/dist/components/ai/AIResponseFeedback/airesponse-feedback.module.js +1 -1
- package/dist/components/ai/CodeBlock/code-block.module.cjs +1 -1
- package/dist/components/ai/CodeBlock/code-block.module.js +1 -1
- package/dist/components/ai/CodeDiffViewer/code-diff-viewer.module.cjs +1 -1
- package/dist/components/ai/CodeDiffViewer/code-diff-viewer.module.js +2 -2
- package/dist/components/ai/InteractiveGraph/interactive-graph.module.cjs +1 -1
- package/dist/components/ai/InteractiveGraph/interactive-graph.module.js +1 -1
- package/dist/components/ai/ModelSelector/ModelSelector.cjs +1 -1
- package/dist/components/ai/ModelSelector/ModelSelector.js +9 -7
- package/dist/components/ai/ModelSelector/model-selector.module.cjs +1 -1
- package/dist/components/ai/ModelSelector/model-selector.module.js +1 -1
- package/dist/components/ai/SourceCitation/source-citation.module.cjs +1 -1
- package/dist/components/ai/SourceCitation/source-citation.module.js +1 -1
- package/dist/components/ai/Terminal/terminal.module.cjs +1 -1
- package/dist/components/ai/Terminal/terminal.module.js +1 -1
- package/dist/components/ai/ThoughtProcess/thought-process.module.cjs +1 -1
- package/dist/components/ai/ThoughtProcess/thought-process.module.js +4 -4
- package/dist/components/ai/ThreadList/thread-list.module.cjs +1 -1
- package/dist/components/ai/ThreadList/thread-list.module.js +1 -1
- package/dist/components/ai/VoiceVisualizer/VoiceVisualizer.cjs +1 -1
- package/dist/components/ai/VoiceVisualizer/VoiceVisualizer.js +1 -1
- package/dist/components/charts/CandlestickChart/CandlestickChart.cjs +1 -1
- package/dist/components/charts/CandlestickChart/CandlestickChart.js +2 -2
- package/dist/components/charts/GanttChart/GanttChart.cjs +1 -1
- package/dist/components/charts/GanttChart/GanttChart.js +1 -1
- package/dist/components/charts/GanttChart/gantt-chart.module.cjs +1 -1
- package/dist/components/charts/GanttChart/gantt-chart.module.js +1 -1
- package/dist/components/charts/SankeyChart/SankeyChart.cjs +1 -1
- package/dist/components/charts/SankeyChart/SankeyChart.js +1 -1
- package/dist/components/charts/Sparkline/Sparkline.cjs +1 -1
- package/dist/components/charts/Sparkline/Sparkline.js +1 -1
- package/dist/components/data-display/Accordion/Accordion.cjs +1 -1
- package/dist/components/data-display/Accordion/Accordion.js +1 -3
- package/dist/components/data-display/Accordion/accordion.module.cjs +1 -1
- package/dist/components/data-display/Accordion/accordion.module.js +1 -1
- package/dist/components/data-display/Badge/badge.module.cjs +1 -1
- package/dist/components/data-display/Badge/badge.module.js +1 -1
- package/dist/components/data-display/Barcode/Barcode.cjs +1 -1
- package/dist/components/data-display/Barcode/Barcode.js +2 -2
- package/dist/components/data-display/Calendar/Calendar.cjs +1 -1
- package/dist/components/data-display/Calendar/Calendar.js +20 -20
- package/dist/components/data-display/Card/card.module.cjs +1 -1
- package/dist/components/data-display/Card/card.module.js +15 -15
- package/dist/components/data-display/Carousel/carousel.module.cjs +1 -1
- package/dist/components/data-display/Carousel/carousel.module.js +1 -1
- package/dist/components/data-display/Chip/chip.module.cjs +1 -1
- package/dist/components/data-display/Chip/chip.module.js +2 -2
- package/dist/components/data-display/Comment/comment.module.cjs +1 -1
- package/dist/components/data-display/Comment/comment.module.js +1 -1
- package/dist/components/data-display/Countdown/Countdown.cjs +1 -1
- package/dist/components/data-display/Countdown/Countdown.js +1 -1
- package/dist/components/data-display/JsonDiffViewer/JsonDiffViewer.cjs +1 -1
- package/dist/components/data-display/JsonDiffViewer/JsonDiffViewer.js +11 -8
- package/dist/components/data-display/JsonViewer/JsonViewer.cjs +1 -1
- package/dist/components/data-display/JsonViewer/JsonViewer.js +9 -9
- package/dist/components/data-display/JsonViewer/json-viewer.module.cjs +1 -1
- package/dist/components/data-display/JsonViewer/json-viewer.module.js +3 -3
- package/dist/components/data-display/List/list.module.cjs +1 -1
- package/dist/components/data-display/List/list.module.js +4 -4
- package/dist/components/data-display/NodeGraph/NodeGraph.cjs +1 -1
- package/dist/components/data-display/NodeGraph/NodeGraph.js +1 -1
- package/dist/components/data-display/NodeGraph/node-graph.module.cjs +1 -1
- package/dist/components/data-display/NodeGraph/node-graph.module.js +1 -1
- package/dist/components/data-display/Reaction/reaction.module.cjs +1 -1
- package/dist/components/data-display/Reaction/reaction.module.js +1 -1
- package/dist/components/data-display/Tag/tag.module.cjs +1 -1
- package/dist/components/data-display/Tag/tag.module.js +1 -1
- package/dist/components/data-display/TreeView/TreeView.cjs +1 -1
- package/dist/components/data-display/TreeView/TreeView.js +10 -14
- package/dist/components/data-display/TreeView/tree-view.module.cjs +1 -1
- package/dist/components/data-display/TreeView/tree-view.module.js +1 -1
- package/dist/components/data-display/TreeView/useTreeViewItemExpansion.cjs +1 -1
- package/dist/components/data-display/TreeView/useTreeViewItemExpansion.js +2 -1
- package/dist/components/data-display/VirtualList/virtual-list.module.cjs +1 -1
- package/dist/components/data-display/VirtualList/virtual-list.module.js +1 -1
- package/dist/components/feedback/Alert/alert.module.cjs +1 -1
- package/dist/components/feedback/Alert/alert.module.js +2 -2
- package/dist/components/feedback/Banner/banner.module.cjs +1 -1
- package/dist/components/feedback/Banner/banner.module.js +2 -2
- package/dist/components/feedback/Notification/notification.module.cjs +1 -1
- package/dist/components/feedback/Notification/notification.module.js +2 -2
- package/dist/components/feedback/Snackbar/Snackbar.cjs +1 -1
- package/dist/components/feedback/Snackbar/Snackbar.js +2 -1
- package/dist/components/feedback/Snackbar/snackbar.module.cjs +1 -1
- package/dist/components/feedback/Snackbar/snackbar.module.js +7 -7
- package/dist/components/feedback/Toast/toast.module.cjs +1 -1
- package/dist/components/feedback/Toast/toast.module.js +8 -8
- package/dist/components/feedback/Tour/Tour.cjs +1 -1
- package/dist/components/feedback/Tour/Tour.js +2 -2
- package/dist/components/form/Button/button.module.cjs +1 -1
- package/dist/components/form/Button/button.module.js +2 -2
- package/dist/components/form/Cascader/Cascader.cjs +1 -1
- package/dist/components/form/Cascader/Cascader.js +1 -3
- package/dist/components/form/Cascader/cascader.module.cjs +1 -1
- package/dist/components/form/Cascader/cascader.module.js +6 -6
- package/dist/components/form/Checkbox/checkbox.module.cjs +1 -1
- package/dist/components/form/Checkbox/checkbox.module.js +1 -1
- package/dist/components/form/Combobox/Combobox.cjs +1 -1
- package/dist/components/form/Combobox/Combobox.js +1 -3
- package/dist/components/form/FloatButton/FloatButton.cjs +1 -1
- package/dist/components/form/FloatButton/FloatButton.js +1 -1
- package/dist/components/form/InlineEdit/inline-edit.module.cjs +1 -1
- package/dist/components/form/InlineEdit/inline-edit.module.js +1 -1
- package/dist/components/form/Input/input.module.cjs +1 -1
- package/dist/components/form/Input/input.module.js +1 -1
- package/dist/components/form/InputBase/input-base.module.cjs +1 -1
- package/dist/components/form/InputBase/input-base.module.js +1 -1
- package/dist/components/form/InputMask/InputMask.cjs +1 -1
- package/dist/components/form/InputMask/InputMask.js +7 -6
- package/dist/components/form/MultiSelect/MultiSelect.cjs +1 -1
- package/dist/components/form/MultiSelect/MultiSelect.js +1 -3
- package/dist/components/form/MultiSelect/multiselect.module.cjs +1 -1
- package/dist/components/form/MultiSelect/multiselect.module.js +1 -1
- package/dist/components/form/OtpInput/otp-input.module.cjs +1 -1
- package/dist/components/form/OtpInput/otp-input.module.js +1 -1
- package/dist/components/form/PhoneInput/phone-input.module.cjs +1 -1
- package/dist/components/form/PhoneInput/phone-input.module.js +1 -1
- package/dist/components/form/QueryBuilder/QueryBuilder.cjs +1 -1
- package/dist/components/form/QueryBuilder/QueryBuilder.js +69 -66
- package/dist/components/form/QueryBuilder/querybuilder.module.cjs +1 -1
- package/dist/components/form/QueryBuilder/querybuilder.module.js +1 -1
- package/dist/components/form/Radio/Radio.cjs +1 -1
- package/dist/components/form/Radio/Radio.js +4 -4
- package/dist/components/form/Radio/radio.module.cjs +1 -1
- package/dist/components/form/Radio/radio.module.js +1 -1
- package/dist/components/form/RangeSlider/range-slider.module.cjs +1 -1
- package/dist/components/form/RangeSlider/range-slider.module.js +1 -1
- package/dist/components/form/RichTextEditor/rich-text-editor.module.cjs +1 -1
- package/dist/components/form/RichTextEditor/rich-text-editor.module.js +1 -1
- package/dist/components/form/SegmentedControl/SegmentedControl.cjs +1 -1
- package/dist/components/form/SegmentedControl/SegmentedControl.js +4 -4
- package/dist/components/form/SegmentedControl/segmented-control.module.cjs +1 -1
- package/dist/components/form/SegmentedControl/segmented-control.module.js +1 -1
- package/dist/components/form/Select/Select.cjs +1 -1
- package/dist/components/form/Select/Select.js +45 -45
- package/dist/components/form/Select/select.module.cjs +1 -1
- package/dist/components/form/Select/select.module.js +1 -1
- package/dist/components/form/Select/useSelect.cjs +1 -1
- package/dist/components/form/Select/useSelect.js +1 -3
- package/dist/components/form/Slider/slider.module.cjs +1 -1
- package/dist/components/form/Slider/slider.module.js +1 -1
- package/dist/components/form/SmartSearchInput/SmartSearchInput.cjs +1 -1
- package/dist/components/form/SmartSearchInput/SmartSearchInput.js +1 -1
- package/dist/components/form/Switch/Switch.cjs +1 -1
- package/dist/components/form/Switch/Switch.js +6 -6
- package/dist/components/form/Switch/switch.module.cjs +1 -1
- package/dist/components/form/Switch/switch.module.js +1 -1
- package/dist/components/form/Textarea/textarea.module.cjs +1 -1
- package/dist/components/form/Textarea/textarea.module.js +1 -1
- package/dist/components/form/ThemeToggle/theme-toggle.module.cjs +1 -1
- package/dist/components/form/ThemeToggle/theme-toggle.module.js +1 -1
- package/dist/components/form/ToggleGroup/ToggleGroup.cjs +1 -1
- package/dist/components/form/ToggleGroup/ToggleGroup.js +28 -25
- package/dist/components/form/ToggleGroup/toggle-group.module.cjs +1 -1
- package/dist/components/form/ToggleGroup/toggle-group.module.js +1 -1
- package/dist/components/form/Transfer/transfer.module.cjs +1 -1
- package/dist/components/form/Transfer/transfer.module.js +6 -6
- package/dist/components/form/TreeSelect/TreeSelect.cjs +1 -1
- package/dist/components/form/TreeSelect/TreeSelect.js +2 -1
- package/dist/components/form/TreeSelect/tree-select.module.cjs +1 -1
- package/dist/components/form/TreeSelect/tree-select.module.js +6 -6
- package/dist/components/layout/BentoGrid/bento-grid.module.cjs +1 -1
- package/dist/components/layout/BentoGrid/bento-grid.module.js +7 -7
- package/dist/components/layout/Dashboard/dashboard.module.cjs +1 -1
- package/dist/components/layout/Dashboard/dashboard.module.js +13 -13
- package/dist/components/layout/Footer/footer.module.cjs +1 -1
- package/dist/components/layout/Footer/footer.module.js +4 -4
- package/dist/components/layout/Header/header.module.cjs +1 -1
- package/dist/components/layout/Header/header.module.js +4 -4
- package/dist/components/layout/InteractiveArea/interactive-area.module.cjs +1 -1
- package/dist/components/layout/InteractiveArea/interactive-area.module.js +2 -2
- package/dist/components/layout/Navbar/navbar.module.cjs +1 -1
- package/dist/components/layout/Navbar/navbar.module.js +1 -1
- package/dist/components/layout/Sidebar/sidebar.module.cjs +1 -1
- package/dist/components/layout/Sidebar/sidebar.module.js +2 -2
- package/dist/components/media/Audio/Audio.cjs +1 -1
- package/dist/components/media/Audio/Audio.js +1 -1
- package/dist/components/media/Audio/audio.module.cjs +1 -1
- package/dist/components/media/Audio/audio.module.js +2 -2
- package/dist/components/media/Audio/hooks/useAudioPlayer.cjs +1 -1
- package/dist/components/media/Audio/hooks/useAudioPlayer.js +2 -4
- package/dist/components/media/Gallery/gallery.module.cjs +1 -1
- package/dist/components/media/Gallery/gallery.module.js +11 -11
- package/dist/components/media/ImageCompare/image-compare.module.cjs +1 -1
- package/dist/components/media/ImageCompare/image-compare.module.js +6 -6
- package/dist/components/media/Lightbox/lightbox.module.cjs +1 -1
- package/dist/components/media/Lightbox/lightbox.module.js +1 -1
- package/dist/components/media/Video/hooks/useVideoPlayer.cjs +1 -1
- package/dist/components/media/Video/hooks/useVideoPlayer.js +3 -5
- package/dist/components/media/Video/video.module.cjs +1 -1
- package/dist/components/media/Video/video.module.js +2 -2
- package/dist/components/navigation/Anchor/Anchor.cjs +1 -1
- package/dist/components/navigation/Anchor/Anchor.js +4 -2
- package/dist/components/navigation/BackTop/backtop.module.cjs +1 -1
- package/dist/components/navigation/BackTop/backtop.module.js +1 -1
- package/dist/components/navigation/CommandPalette/command-palette.module.cjs +1 -1
- package/dist/components/navigation/CommandPalette/command-palette.module.js +1 -1
- package/dist/components/navigation/Link/link.module.cjs +1 -1
- package/dist/components/navigation/Link/link.module.js +1 -1
- package/dist/components/navigation/Menubar/Menubar.cjs +1 -1
- package/dist/components/navigation/Menubar/Menubar.js +1 -4
- package/dist/components/navigation/Pagination/pagination.module.cjs +1 -1
- package/dist/components/navigation/Pagination/pagination.module.js +1 -1
- package/dist/components/navigation/SpeedDial/speed-dial.module.cjs +1 -1
- package/dist/components/navigation/SpeedDial/speed-dial.module.js +1 -1
- package/dist/components/navigation/Stepper/stepper.module.cjs +1 -1
- package/dist/components/navigation/Stepper/stepper.module.js +1 -1
- package/dist/components/navigation/TabBar/tab-bar.module.cjs +1 -1
- package/dist/components/navigation/TabBar/tab-bar.module.js +1 -1
- package/dist/components/navigation/TabNavigation/tab-navigation.module.cjs +1 -1
- package/dist/components/navigation/TabNavigation/tab-navigation.module.js +1 -1
- package/dist/components/navigation/Tabs/tabs.module.cjs +1 -1
- package/dist/components/navigation/Tabs/tabs.module.js +1 -1
- package/dist/components/overlay/BottomSheet/bottom-sheet.module.cjs +1 -1
- package/dist/components/overlay/BottomSheet/bottom-sheet.module.js +1 -1
- package/dist/components/overlay/ContextMenu/ContextMenu.cjs +1 -1
- package/dist/components/overlay/ContextMenu/ContextMenu.js +21 -21
- package/dist/components/overlay/Dialog/dialog.module.cjs +1 -1
- package/dist/components/overlay/Dialog/dialog.module.js +1 -1
- package/dist/components/overlay/Drawer/drawer.module.cjs +1 -1
- package/dist/components/overlay/Drawer/drawer.module.js +1 -1
- package/dist/components/overlay/Dropdown/Dropdown.cjs +1 -1
- package/dist/components/overlay/Dropdown/Dropdown.js +1 -3
- package/dist/components/overlay/HoverCard/HoverCard.cjs +1 -1
- package/dist/components/overlay/HoverCard/HoverCard.js +4 -4
- package/dist/components/overlay/Popover/Popover.cjs +1 -1
- package/dist/components/overlay/Popover/Popover.js +2 -2
- package/dist/components/overlay/Tooltip/Tooltip.cjs +1 -1
- package/dist/components/overlay/Tooltip/Tooltip.js +14 -14
- package/dist/components/typography/Blockquote/blockquote.module.cjs +1 -1
- package/dist/components/typography/Blockquote/blockquote.module.js +1 -1
- package/dist/components/typography/Legend/Legend.cjs +1 -1
- package/dist/components/typography/Legend/Legend.js +1 -1
- package/dist/components/typography/Spoiler/spoiler.module.cjs +1 -1
- package/dist/components/typography/Spoiler/spoiler.module.js +1 -1
- package/dist/hooks/useMergedRef.cjs +1 -1
- package/dist/hooks/useMergedRef.js +7 -5
- package/dist/i18n/useWimTranslation.cjs +1 -1
- package/dist/i18n/useWimTranslation.js +2 -2
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/wimui.umd.css +1 -1
- package/dist/wimui.umd.js +4 -4
- 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),[
|
|
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), [
|
|
8
|
+
t: i((e, t) => r(o, e, t), [c]),
|
|
9
9
|
i18n: {
|
|
10
10
|
language: s,
|
|
11
11
|
changeLanguage: t
|
package/dist/llms-full.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
**wimui** v0.37.
|
|
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.
|
|
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")
|
|
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")
|
|
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;
|