@anoki/fse-ui 1.0.634 → 1.0.635

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 (123) hide show
  1. package/dist/index.cjs114.js +1 -1
  2. package/dist/index.cjs117.js +1 -1
  3. package/dist/index.cjs121.js +1 -1
  4. package/dist/index.cjs180.js +1 -1
  5. package/dist/index.cjs182.js +1 -1
  6. package/dist/index.cjs218.js +1 -1
  7. package/dist/index.cjs242.js +1 -1
  8. package/dist/index.cjs308.js +1 -1
  9. package/dist/index.cjs342.js +2 -0
  10. package/dist/index.cjs342.js.map +1 -0
  11. package/dist/{index.cjs344.js → index.cjs345.js} +1 -1
  12. package/dist/index.cjs345.js.map +1 -0
  13. package/dist/index.cjs352.js +1 -1
  14. package/dist/index.cjs352.js.map +1 -1
  15. package/dist/index.cjs361.js +1 -1
  16. package/dist/index.cjs362.js +1 -1
  17. package/dist/{index.cjs364.js → index.cjs365.js} +1 -1
  18. package/dist/{index.cjs364.js.map → index.cjs365.js.map} +1 -1
  19. package/dist/index.cjs374.js +2 -0
  20. package/dist/index.cjs374.js.map +1 -0
  21. package/dist/index.cjs375.js +1 -1
  22. package/dist/index.cjs375.js.map +1 -1
  23. package/dist/index.cjs376.js +1 -1
  24. package/dist/index.cjs376.js.map +1 -1
  25. package/dist/index.cjs377.js +1 -1
  26. package/dist/index.cjs377.js.map +1 -1
  27. package/dist/index.cjs378.js +1 -1
  28. package/dist/index.cjs378.js.map +1 -1
  29. package/dist/index.cjs379.js +1 -1
  30. package/dist/index.cjs379.js.map +1 -1
  31. package/dist/index.cjs380.js +1 -1
  32. package/dist/index.cjs380.js.map +1 -1
  33. package/dist/index.cjs407.js +1 -1
  34. package/dist/index.cjs420.js +1 -1
  35. package/dist/index.cjs432.js +1 -1
  36. package/dist/index.cjs434.js +1 -1
  37. package/dist/index.cjs436.js +1 -1
  38. package/dist/index.cjs446.js +1 -38
  39. package/dist/index.cjs446.js.map +1 -1
  40. package/dist/index.cjs447.js +38 -1
  41. package/dist/index.cjs447.js.map +1 -1
  42. package/dist/index.cjs448.js +1 -1
  43. package/dist/index.cjs448.js.map +1 -1
  44. package/dist/index.cjs449.js +1 -1
  45. package/dist/index.cjs449.js.map +1 -1
  46. package/dist/index.cjs450.js +1 -1
  47. package/dist/index.cjs450.js.map +1 -1
  48. package/dist/index.cjs451.js +1 -1
  49. package/dist/index.cjs451.js.map +1 -1
  50. package/dist/index.cjs452.js +1 -1
  51. package/dist/index.cjs452.js.map +1 -1
  52. package/dist/index.cjs453.js +1 -1
  53. package/dist/index.cjs453.js.map +1 -1
  54. package/dist/index.cjs454.js +1 -1
  55. package/dist/index.cjs454.js.map +1 -1
  56. package/dist/index.cjs5.js +1 -1
  57. package/dist/index.es114.js +1 -1
  58. package/dist/index.es117.js +1 -1
  59. package/dist/index.es121.js +1 -1
  60. package/dist/index.es180.js +1 -1
  61. package/dist/index.es182.js +1 -1
  62. package/dist/index.es218.js +1 -1
  63. package/dist/index.es242.js +7 -7
  64. package/dist/index.es308.js +1 -1
  65. package/dist/index.es342.js +139 -0
  66. package/dist/index.es342.js.map +1 -0
  67. package/dist/{index.es344.js → index.es345.js} +1 -1
  68. package/dist/index.es345.js.map +1 -0
  69. package/dist/index.es352.js +5 -136
  70. package/dist/index.es352.js.map +1 -1
  71. package/dist/index.es361.js +1 -1
  72. package/dist/index.es362.js +7 -7
  73. package/dist/{index.es364.js → index.es365.js} +1 -1
  74. package/dist/{index.es364.js.map → index.es365.js.map} +1 -1
  75. package/dist/index.es374.js +128 -0
  76. package/dist/index.es374.js.map +1 -0
  77. package/dist/index.es375.js +126 -116
  78. package/dist/index.es375.js.map +1 -1
  79. package/dist/index.es376.js +13 -134
  80. package/dist/index.es376.js.map +1 -1
  81. package/dist/index.es377.js +14 -13
  82. package/dist/index.es377.js.map +1 -1
  83. package/dist/index.es378.js +8 -14
  84. package/dist/index.es378.js.map +1 -1
  85. package/dist/index.es379.js +50 -9
  86. package/dist/index.es379.js.map +1 -1
  87. package/dist/index.es380.js +52 -49
  88. package/dist/index.es380.js.map +1 -1
  89. package/dist/index.es407.js +1 -1
  90. package/dist/index.es420.js +3 -3
  91. package/dist/index.es432.js +1 -1
  92. package/dist/index.es434.js +1 -1
  93. package/dist/index.es436.js +4 -4
  94. package/dist/index.es446.js +65 -69
  95. package/dist/index.es446.js.map +1 -1
  96. package/dist/index.es447.js +68 -8
  97. package/dist/index.es447.js.map +1 -1
  98. package/dist/index.es448.js +9 -14
  99. package/dist/index.es448.js.map +1 -1
  100. package/dist/index.es449.js +14 -62
  101. package/dist/index.es449.js.map +1 -1
  102. package/dist/index.es450.js +61 -64
  103. package/dist/index.es450.js.map +1 -1
  104. package/dist/index.es451.js +3 -522
  105. package/dist/index.es451.js.map +1 -1
  106. package/dist/index.es452.js +509 -113
  107. package/dist/index.es452.js.map +1 -1
  108. package/dist/index.es453.js +121 -123
  109. package/dist/index.es453.js.map +1 -1
  110. package/dist/index.es454.js +128 -3
  111. package/dist/index.es454.js.map +1 -1
  112. package/dist/index.es5.js +1 -1
  113. package/package.json +1 -1
  114. package/dist/index.cjs344.js.map +0 -1
  115. package/dist/index.cjs351.js +0 -2
  116. package/dist/index.cjs351.js.map +0 -1
  117. package/dist/index.cjs381.js +0 -2
  118. package/dist/index.cjs381.js.map +0 -1
  119. package/dist/index.es344.js.map +0 -1
  120. package/dist/index.es351.js +0 -8
  121. package/dist/index.es351.js.map +0 -1
  122. package/dist/index.es381.js +0 -56
  123. package/dist/index.es381.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anoki/fse-ui",
3
- "version": "1.0.634",
3
+ "version": "1.0.635",
4
4
  "description": "FSE UI components library",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs344.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";const r=require("./index.cjs400.js"),e=require("./index.cjs402.js");var s=e.__require();const o=r.getDefaultExportFromCjs(s);module.exports=o;
2
- //# sourceMappingURL=index.cjs351.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs351.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),g=require("./index.cjs358.js"),u=require("./index.cjs196.js");function S(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=S(y);function b(e){const t=x(e),n=l.forwardRef((r,o)=>{const{children:i,...c}=r,s=l.Children.toArray(i),f=s.find(E);if(f){const a=f.props.children,m=s.map(p=>p===f?l.Children.count(a)>1?l.Children.only(null):l.isValidElement(a)?a.props.children:null:p);return u.jsxRuntimeExports.jsx(t,{...c,ref:o,children:l.isValidElement(a)?l.cloneElement(a,void 0,m):null})}return u.jsxRuntimeExports.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function x(e){const t=l.forwardRef((n,r)=>{const{children:o,...i}=n;if(l.isValidElement(o)){const c=O(o),s=R(i,o.props);return o.type!==l.Fragment&&(s.ref=r?g.composeRefs(r,c):c),l.cloneElement(o,s)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var d=Symbol("radix.slottable");function j(e){const t=({children:n})=>u.jsxRuntimeExports.jsx(u.jsxRuntimeExports.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=d,t}function E(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===d}function R(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function O(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}exports.createSlot=b;exports.createSlottable=j;
2
- //# sourceMappingURL=index.cjs381.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs381.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":"icAKA,SAASA,EAAWC,EAAW,CAC7B,MAAMC,EAA4BC,EAAgBF,CAAS,EACrDG,EAAQC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACtD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAgBL,EAAM,SAAS,QAAQG,CAAQ,EAC/CG,EAAYD,EAAc,KAAKE,CAAW,EAChD,GAAID,EAAW,CACb,MAAME,EAAaF,EAAU,MAAM,SAC7BG,EAAcJ,EAAc,IAAKK,GACjCA,IAAUJ,EACRN,EAAM,SAAS,MAAMQ,CAAU,EAAI,EAAUR,EAAM,SAAS,KAAK,IAAI,EAClEA,EAAM,eAAeQ,CAAU,EAAIA,EAAW,MAAM,SAAW,KAE/DE,CAEV,EACD,OAAuBC,EAAAA,kBAAAA,IAAId,EAAW,CAAE,GAAGO,EAAW,IAAKF,EAAc,SAAUF,EAAM,eAAeQ,CAAU,EAAIR,EAAM,aAAaQ,EAAY,OAAQC,CAAW,EAAI,KAAM,CACxL,CACI,OAAuBE,EAAAA,kBAAAA,IAAId,EAAW,CAAE,GAAGO,EAAW,IAAKF,EAAc,SAAAC,EAAU,CACvF,CAAG,EACD,OAAAJ,EAAM,YAAc,GAAGH,CAAS,QACzBG,CACT,CAGA,SAASD,EAAgBF,EAAW,CAClC,MAAMC,EAAYG,EAAM,WAAW,CAACC,EAAOC,IAAiB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AAGC,CAAgB,EACxDF,IAAa,cACtBD,EAAcC,CAAQ,EAAI,CAACC,EAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAExF,CACE,MAAO,CAAE,GAAGrB,EAAW,GAAGkB,CAAe,CAC3C,CACA,SAAST,EAAcc,EAAS,SAC9B,IAAIC,GAASC,EAAA,OAAO,yBAAyBF,EAAQ,MAAO,KAAK,IAApD,YAAAE,EAAuD,IAChEC,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eAC7D,OAAIE,EACKH,EAAQ,KAEjBC,GAASG,EAAA,OAAO,yBAAyBJ,EAAS,KAAK,IAA9C,YAAAI,EAAiD,IAC1DD,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eACrDE,EACKH,EAAQ,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es344.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,8 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./index.es400.js";
2
- import { __require as o } from "./index.es402.js";
3
- var e = o();
4
- const a = /* @__PURE__ */ r(e);
5
- export {
6
- a as default
7
- };
8
- //# sourceMappingURL=index.es351.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es351.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,56 +0,0 @@
1
- import * as l from "react";
2
- import { composeRefs as y } from "./index.es358.js";
3
- import { j as f } from "./index.es196.js";
4
- // @__NO_SIDE_EFFECTS__
5
- function b(e) {
6
- const t = /* @__PURE__ */ S(e), o = l.forwardRef((n, r) => {
7
- const { children: i, ...a } = n, s = l.Children.toArray(i), p = s.find(g);
8
- if (p) {
9
- const c = p.props.children, m = s.map((u) => u === p ? l.Children.count(c) > 1 ? l.Children.only(null) : l.isValidElement(c) ? c.props.children : null : u);
10
- return /* @__PURE__ */ f.jsx(t, { ...a, ref: r, children: l.isValidElement(c) ? l.cloneElement(c, void 0, m) : null });
11
- }
12
- return /* @__PURE__ */ f.jsx(t, { ...a, ref: r, children: i });
13
- });
14
- return o.displayName = `${e}.Slot`, o;
15
- }
16
- // @__NO_SIDE_EFFECTS__
17
- function S(e) {
18
- const t = l.forwardRef((o, n) => {
19
- const { children: r, ...i } = o;
20
- if (l.isValidElement(r)) {
21
- const a = x(r), s = E(i, r.props);
22
- return r.type !== l.Fragment && (s.ref = n ? y(n, a) : a), l.cloneElement(r, s);
23
- }
24
- return l.Children.count(r) > 1 ? l.Children.only(null) : null;
25
- });
26
- return t.displayName = `${e}.SlotClone`, t;
27
- }
28
- var d = Symbol("radix.slottable");
29
- // @__NO_SIDE_EFFECTS__
30
- function h(e) {
31
- const t = ({ children: o }) => /* @__PURE__ */ f.jsx(f.Fragment, { children: o });
32
- return t.displayName = `${e}.Slottable`, t.__radixId = d, t;
33
- }
34
- function g(e) {
35
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === d;
36
- }
37
- function E(e, t) {
38
- const o = { ...t };
39
- for (const n in t) {
40
- const r = e[n], i = t[n];
41
- /^on[A-Z]/.test(n) ? r && i ? o[n] = (...s) => {
42
- i(...s), r(...s);
43
- } : r && (o[n] = r) : n === "style" ? o[n] = { ...r, ...i } : n === "className" && (o[n] = [r, i].filter(Boolean).join(" "));
44
- }
45
- return { ...e, ...o };
46
- }
47
- function x(e) {
48
- var n, r;
49
- let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning;
50
- return o ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
51
- }
52
- export {
53
- b as createSlot,
54
- h as createSlottable
55
- };
56
- //# sourceMappingURL=index.es381.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es381.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":";;;;AAKA,SAASA,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