@rpcbase/ui 0.193.0 → 0.194.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.
- package/dist/components/DayPickerField/index.d.ts.map +1 -1
- package/dist/components/HourPickerField/index.d.ts.map +1 -1
- package/dist/index100.js +4 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +4 -5
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +8 -4
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +5 -8
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +4 -5
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +3 -3
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +6 -4
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +145 -6
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +38 -144
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +4 -39
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +7 -4
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +12 -6
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +13 -13
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +7 -13
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +30 -6
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +10 -31
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +10 -10
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +8 -10
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +13 -8
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +101 -13
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +421 -510
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +20 -102
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +54 -20
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +70 -51
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +9 -72
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +20 -9
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +16 -20
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +23 -16
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +6 -23
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +5 -6
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +23 -5
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +35 -24
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +16 -35
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +7 -16
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +4 -6
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +4 -4
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +4 -4
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +4 -4
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +3 -4
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +6 -3
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +24 -7
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +8 -24
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +6 -7
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +5 -6
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +3 -5
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +3 -3
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +4 -3
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +3 -4
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +4 -3
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +3 -4
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +3 -3
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +3 -3
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +46 -3
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +599 -40
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +41 -200
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +204 -20
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +22 -25
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +23 -398
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +383 -589
- package/dist/index157.js.map +1 -1
- package/dist/index183.js +1 -1
- package/dist/index19.js +505 -557
- package/dist/index19.js.map +1 -1
- package/dist/index230.js +1 -1
- package/dist/index233.js +1 -1
- package/dist/index235.js +1 -1
- package/dist/index236.js +1 -1
- package/dist/index237.js +3 -3
- package/dist/index238.js +2 -2
- package/dist/index239.js +65 -22
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +179 -27
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +47 -5
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +22 -65
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +27 -179
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -47
- package/dist/index244.js.map +1 -1
- package/dist/index276.js +1 -1
- package/dist/index277.js +1 -1
- package/dist/index299.js +1 -1
- package/dist/index31.js +5 -5
- package/dist/index32.js +24 -24
- package/dist/index33.js +3 -3
- package/dist/index41.js +20 -20
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index50.js +1 -1
- package/dist/index51.js +205 -2
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +2 -2
- package/dist/index53.js +2 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +6 -33
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +33 -26
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +26 -7
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +7 -11
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +12 -2
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +4 -2
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +44 -201
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +50 -3
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +7 -47
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +12 -48
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +133 -7
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +10 -14
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +210 -127
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +12 -10
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +44 -214
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +49 -12
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +4 -47
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +5 -49
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +28 -4
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +50 -6
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +9 -28
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -50
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +2 -9
- package/dist/index76.js.map +1 -1
- package/dist/index80.js +52 -47
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +5 -52
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +4 -4
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +15 -4
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +5 -15
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +7 -5
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +15 -6
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +4 -16
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +1 -1
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +5 -4
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +4 -4
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +4 -5
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +2 -2
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +5 -3
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +24 -6
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +6 -24
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +4 -6
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +5 -3
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +5 -6
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -5
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index144.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index144.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/
|
|
1
|
+
{"version":3,"file":"index144.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/labelNav.js"],"sourcesContent":["/**\n * Generates the ARIA label for the navigation toolbar.\n *\n * @defaultValue `\"\"`\n * @returns The ARIA label for the navigation toolbar.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNav() {\n return \"\";\n}\n"],"names":["labelNav"],"mappings":"AAQO,SAASA,IAAW;AACvB,SAAO;AACX;","x_google_ignoreList":[0]}
|
package/dist/index145.js
CHANGED
package/dist/index145.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index145.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/
|
|
1
|
+
{"version":3,"file":"index145.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/labelNext.js"],"sourcesContent":["const defaultLabel = \"Go to the Next Month\";\n/**\n * Generates the ARIA label for the \"next month\" button.\n *\n * @defaultValue `\"Go to the Next Month\"`\n * @param month - The date representing the next month, or `undefined` if there\n * is no next month.\n * @returns The ARIA label for the \"next month\" button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNext(_month, _options) {\n return defaultLabel;\n}\n"],"names":["defaultLabel","labelNext","_month","_options"],"mappings":"AAAA,MAAMA,IAAe;AAWd,SAASC,EAAUC,GAAQC,GAAU;AACxC,SAAOH;AACX;","x_google_ignoreList":[0]}
|
package/dist/index146.js
CHANGED
package/dist/index146.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index146.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/
|
|
1
|
+
{"version":3,"file":"index146.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/labelPrevious.js"],"sourcesContent":["/**\n * Generates the ARIA label for the \"previous month\" button.\n *\n * @defaultValue `\"Go to the Previous Month\"`\n * @param month - The date representing the previous month, or `undefined` if\n * there is no previous month.\n * @returns The ARIA label for the \"previous month\" button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelPrevious(_month) {\n return \"Go to the Previous Month\";\n}\n"],"names":["labelPrevious","_month"],"mappings":"AAUO,SAASA,EAAcC,GAAQ;AAClC,SAAO;AACX;","x_google_ignoreList":[0]}
|
package/dist/index147.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { DateLib as c } from "./index107.js";
|
|
2
|
+
function a(e, r, t) {
|
|
3
|
+
return (t ?? new c(r)).format(e, "cccc");
|
|
3
4
|
}
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
a as labelWeekday
|
|
6
7
|
};
|
|
7
8
|
//# sourceMappingURL=index147.js.map
|
package/dist/index147.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index147.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/
|
|
1
|
+
{"version":3,"file":"index147.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/labelWeekday.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for a weekday column header.\n *\n * @defaultValue `\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"`\n * @param date - The date representing the weekday.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the weekday column header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekday(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"cccc\");\n}\n"],"names":["labelWeekday","date","options","dateLib","DateLib"],"mappings":";AAYO,SAASA,EAAaC,GAAMC,GAASC,GAAS;AACjD,UAAQA,KAAW,IAAIC,EAAQF,CAAO,GAAG,OAAOD,GAAM,MAAM;AAChE;","x_google_ignoreList":[0]}
|
package/dist/index148.js
CHANGED
package/dist/index148.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index148.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/
|
|
1
|
+
{"version":3,"file":"index148.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number cell (the first cell in a row).\n *\n * @defaultValue `Week ${weekNumber}`\n * @param weekNumber - The number of the week.\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number cell.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumber(weekNumber, _options) {\n return `Week ${weekNumber}`;\n}\n"],"names":["labelWeekNumber","weekNumber","_options"],"mappings":"AAUO,SAASA,EAAgBC,GAAYC,GAAU;AAClD,SAAO,QAAQD,CAAU;AAC7B;","x_google_ignoreList":[0]}
|
package/dist/index149.js
CHANGED
package/dist/index149.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index149.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/
|
|
1
|
+
{"version":3,"file":"index149.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number header element.\n *\n * @defaultValue `\"Week Number\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumberHeader(_options) {\n return \"Week Number\";\n}\n"],"names":["labelWeekNumberHeader","_options"],"mappings":"AASO,SAASA,EAAsBC,GAAU;AAC5C,SAAO;AACX;","x_google_ignoreList":[0]}
|
package/dist/index150.js
CHANGED
package/dist/index150.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index150.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/
|
|
1
|
+
{"version":3,"file":"index150.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js"],"sourcesContent":["/**\n * Generates the ARIA label for the years dropdown.\n *\n * @defaultValue `\"Choose the Year\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the years dropdown.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelYearDropdown(_options) {\n return \"Choose the Year\";\n}\n"],"names":["labelYearDropdown","_options"],"mappings":"AASO,SAASA,EAAkBC,GAAU;AACxC,SAAO;AACX;","x_google_ignoreList":[0]}
|
package/dist/index151.js
CHANGED
|
@@ -1,7 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { composeRefs as m } from "./index56.js";
|
|
3
|
+
import { j as u } from "./index30.js";
|
|
4
|
+
// @__NO_SIDE_EFFECTS__
|
|
5
|
+
function x(e) {
|
|
6
|
+
const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
|
|
7
|
+
const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(g);
|
|
8
|
+
if (a) {
|
|
9
|
+
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
10
|
+
return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
11
|
+
}
|
|
12
|
+
return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: i });
|
|
13
|
+
});
|
|
14
|
+
return t.displayName = `${e}.Slot`, t;
|
|
15
|
+
}
|
|
16
|
+
// @__NO_SIDE_EFFECTS__
|
|
17
|
+
function y(e) {
|
|
18
|
+
const r = l.forwardRef((t, o) => {
|
|
19
|
+
const { children: n, ...i } = t;
|
|
20
|
+
if (l.isValidElement(n)) {
|
|
21
|
+
const c = R(n), s = C(i, n.props);
|
|
22
|
+
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
23
|
+
}
|
|
24
|
+
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
25
|
+
});
|
|
26
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
27
|
+
}
|
|
28
|
+
var E = /* @__PURE__ */ Symbol("radix.slottable");
|
|
29
|
+
function g(e) {
|
|
30
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === E;
|
|
31
|
+
}
|
|
32
|
+
function C(e, r) {
|
|
33
|
+
const t = { ...r };
|
|
34
|
+
for (const o in r) {
|
|
35
|
+
const n = e[o], i = r[o];
|
|
36
|
+
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
37
|
+
const a = i(...s);
|
|
38
|
+
return n(...s), a;
|
|
39
|
+
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
40
|
+
}
|
|
41
|
+
return { ...e, ...t };
|
|
42
|
+
}
|
|
43
|
+
function R(e) {
|
|
44
|
+
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
45
|
+
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
3
46
|
}
|
|
4
47
|
export {
|
|
5
|
-
|
|
48
|
+
x as createSlot
|
|
6
49
|
};
|
|
7
50
|
//# sourceMappingURL=index151.js.map
|
package/dist/index151.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index151.js","sources":["../../../node_modules/react-
|
|
1
|
+
{"version":3,"file":"index151.js","sources":["../../../node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// 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 const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\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","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","element","getter","mayWarn"],"mappings":"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","x_google_ignoreList":[0]}
|