@rpcbase/ui 0.234.0 → 0.235.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  2. package/dist/index151.js +4 -4
  3. package/dist/index156.js +1 -1
  4. package/dist/index157.js +1 -1
  5. package/dist/index164.js +1 -1
  6. package/dist/index165.js +6 -6
  7. package/dist/index167.js +4 -4
  8. package/dist/index169.js +1 -1
  9. package/dist/index172.js +9 -9
  10. package/dist/index175.js +1 -1
  11. package/dist/index176.js +4 -4
  12. package/dist/index178.js +1 -1
  13. package/dist/index182.js +1 -1
  14. package/dist/index184.js +12 -12
  15. package/dist/index187.js +6 -6
  16. package/dist/index189.js +3 -3
  17. package/dist/index190.js +1 -1
  18. package/dist/index193.js +3 -3
  19. package/dist/index194.js +5 -5
  20. package/dist/index256.js +20 -14
  21. package/dist/index256.js.map +1 -1
  22. package/dist/index257.js +58 -146
  23. package/dist/index257.js.map +1 -1
  24. package/dist/index258.js +6 -30
  25. package/dist/index258.js.map +1 -1
  26. package/dist/index259.js +11 -9
  27. package/dist/index259.js.map +1 -1
  28. package/dist/index260.js +46 -44
  29. package/dist/index260.js.map +1 -1
  30. package/dist/index261.js +4 -12
  31. package/dist/index261.js.map +1 -1
  32. package/dist/index262.js +28 -43
  33. package/dist/index262.js.map +1 -1
  34. package/dist/index263.js +14 -93
  35. package/dist/index263.js.map +1 -1
  36. package/dist/index264.js +5 -86
  37. package/dist/index264.js.map +1 -1
  38. package/dist/index265.js +21 -105
  39. package/dist/index265.js.map +1 -1
  40. package/dist/index266.js +50 -51
  41. package/dist/index266.js.map +1 -1
  42. package/dist/index267.js +25 -11
  43. package/dist/index267.js.map +1 -1
  44. package/dist/index268.js +41 -37
  45. package/dist/index268.js.map +1 -1
  46. package/dist/index269.js +39 -8
  47. package/dist/index269.js.map +1 -1
  48. package/dist/index270.js +45 -117
  49. package/dist/index270.js.map +1 -1
  50. package/dist/index271.js +20 -17
  51. package/dist/index271.js.map +1 -1
  52. package/dist/index272.js +69 -14
  53. package/dist/index272.js.map +1 -1
  54. package/dist/index273.js +17 -3
  55. package/dist/index273.js.map +1 -1
  56. package/dist/index274.js +11 -36
  57. package/dist/index274.js.map +1 -1
  58. package/dist/index275.js +27 -20
  59. package/dist/index275.js.map +1 -1
  60. package/dist/index276.js +13 -9
  61. package/dist/index276.js.map +1 -1
  62. package/dist/index277.js +18 -8
  63. package/dist/index277.js.map +1 -1
  64. package/dist/index278.js +35 -18
  65. package/dist/index278.js.map +1 -1
  66. package/dist/index279.js +260 -26
  67. package/dist/index279.js.map +1 -1
  68. package/dist/index280.js +277 -15
  69. package/dist/index280.js.map +1 -1
  70. package/dist/index281.js +69 -20
  71. package/dist/index281.js.map +1 -1
  72. package/dist/index282.js +92 -59
  73. package/dist/index282.js.map +1 -1
  74. package/dist/index283.js +83 -6
  75. package/dist/index283.js.map +1 -1
  76. package/dist/index284.js +3 -11
  77. package/dist/index284.js.map +1 -1
  78. package/dist/index285.js +27 -48
  79. package/dist/index285.js.map +1 -1
  80. package/dist/index286.js +17 -4
  81. package/dist/index286.js.map +1 -1
  82. package/dist/index287.js +35 -30
  83. package/dist/index287.js.map +1 -1
  84. package/dist/index288.js +15 -15
  85. package/dist/index288.js.map +1 -1
  86. package/dist/index289.js +3 -5
  87. package/dist/index289.js.map +1 -1
  88. package/dist/index290.js +25 -20
  89. package/dist/index290.js.map +1 -1
  90. package/dist/index291.js +26 -49
  91. package/dist/index291.js.map +1 -1
  92. package/dist/index292.js +4 -26
  93. package/dist/index292.js.map +1 -1
  94. package/dist/index293.js +76 -39
  95. package/dist/index293.js.map +1 -1
  96. package/dist/index294.js +265 -35
  97. package/dist/index294.js.map +1 -1
  98. package/dist/index295.js +12 -45
  99. package/dist/index295.js.map +1 -1
  100. package/dist/index296.js +10 -20
  101. package/dist/index296.js.map +1 -1
  102. package/dist/index297.js +25 -70
  103. package/dist/index297.js.map +1 -1
  104. package/dist/index298.js +16 -17
  105. package/dist/index298.js.map +1 -1
  106. package/dist/index299.js +125 -11
  107. package/dist/index299.js.map +1 -1
  108. package/dist/index300.js +5 -27
  109. package/dist/index300.js.map +1 -1
  110. package/dist/index301.js +39 -12
  111. package/dist/index301.js.map +1 -1
  112. package/dist/index302.js +63 -16
  113. package/dist/index302.js.map +1 -1
  114. package/dist/index303.js +13 -36
  115. package/dist/index303.js.map +1 -1
  116. package/dist/index304.js +7 -262
  117. package/dist/index304.js.map +1 -1
  118. package/dist/index305.js +5 -278
  119. package/dist/index305.js.map +1 -1
  120. package/dist/index306.js +3 -68
  121. package/dist/index306.js.map +1 -1
  122. package/dist/index307.js +10 -99
  123. package/dist/index307.js.map +1 -1
  124. package/dist/index308.js +7 -83
  125. package/dist/index308.js.map +1 -1
  126. package/dist/index309.js +133 -3
  127. package/dist/index309.js.map +1 -1
  128. package/dist/index310.js +399 -29
  129. package/dist/index310.js.map +1 -1
  130. package/dist/index311.js +52 -16
  131. package/dist/index311.js.map +1 -1
  132. package/dist/index312.js +12 -35
  133. package/dist/index312.js.map +1 -1
  134. package/dist/index313.js +11 -16
  135. package/dist/index313.js.map +1 -1
  136. package/dist/index314.js +13 -3
  137. package/dist/index314.js.map +1 -1
  138. package/dist/index315.js +150 -22
  139. package/dist/index315.js.map +1 -1
  140. package/dist/index316.js +27 -25
  141. package/dist/index316.js.map +1 -1
  142. package/dist/index317.js +10 -4
  143. package/dist/index317.js.map +1 -1
  144. package/dist/index318.js +44 -74
  145. package/dist/index318.js.map +1 -1
  146. package/dist/index319.js +10 -268
  147. package/dist/index319.js.map +1 -1
  148. package/dist/index320.js +44 -11
  149. package/dist/index320.js.map +1 -1
  150. package/dist/index321.js +95 -10
  151. package/dist/index321.js.map +1 -1
  152. package/dist/index322.js +86 -25
  153. package/dist/index322.js.map +1 -1
  154. package/dist/index323.js +104 -15
  155. package/dist/index323.js.map +1 -1
  156. package/dist/index324.js +50 -123
  157. package/dist/index324.js.map +1 -1
  158. package/dist/index325.js +11 -5
  159. package/dist/index325.js.map +1 -1
  160. package/dist/index326.js +34 -37
  161. package/dist/index326.js.map +1 -1
  162. package/dist/index327.js +8 -65
  163. package/dist/index327.js.map +1 -1
  164. package/dist/index328.js +116 -13
  165. package/dist/index328.js.map +1 -1
  166. package/dist/index329.js +17 -7
  167. package/dist/index329.js.map +1 -1
  168. package/dist/index330.js +15 -5
  169. package/dist/index330.js.map +1 -1
  170. package/dist/index331.js +3 -3
  171. package/dist/index331.js.map +1 -1
  172. package/dist/index332.js +36 -10
  173. package/dist/index332.js.map +1 -1
  174. package/dist/index333.js +20 -7
  175. package/dist/index333.js.map +1 -1
  176. package/dist/index334.js +9 -133
  177. package/dist/index334.js.map +1 -1
  178. package/dist/index335.js +7 -398
  179. package/dist/index335.js.map +1 -1
  180. package/dist/index336.js +8 -52
  181. package/dist/index336.js.map +1 -1
  182. package/dist/index337.js +11 -11
  183. package/dist/index337.js.map +1 -1
  184. package/dist/index338.js +8 -11
  185. package/dist/index338.js.map +1 -1
  186. package/dist/index339.js +13 -8
  187. package/dist/index339.js.map +1 -1
  188. package/dist/index340.js +3 -11
  189. package/dist/index340.js.map +1 -1
  190. package/dist/index341.js +3 -8
  191. package/dist/index341.js.map +1 -1
  192. package/dist/index342.js +16 -12
  193. package/dist/index342.js.map +1 -1
  194. package/dist/index343.js +19 -3
  195. package/dist/index343.js.map +1 -1
  196. package/dist/index344.js +28 -3
  197. package/dist/index344.js.map +1 -1
  198. package/dist/index345.js +15 -16
  199. package/dist/index345.js.map +1 -1
  200. package/dist/index346.js +2 -2
  201. package/dist/index347.js +8 -8
  202. package/dist/index348.js +4 -4
  203. package/dist/index349.js +3 -3
  204. package/dist/index350.js +5 -5
  205. package/dist/index352.js +1 -1
  206. package/dist/index362.js +10 -19
  207. package/dist/index362.js.map +1 -1
  208. package/dist/index363.js +17 -4
  209. package/dist/index363.js.map +1 -1
  210. package/dist/index364.js +5 -11
  211. package/dist/index364.js.map +1 -1
  212. package/dist/index365.js +4 -17
  213. package/dist/index365.js.map +1 -1
  214. package/dist/index366.js +20 -5
  215. package/dist/index366.js.map +1 -1
  216. package/dist/index367.js +43 -19
  217. package/dist/index367.js.map +1 -1
  218. package/dist/index368.js +13 -40
  219. package/dist/index368.js.map +1 -1
  220. package/dist/index369.js +4 -17
  221. package/dist/index369.js.map +1 -1
  222. package/dist/index370.js +200 -4
  223. package/dist/index370.js.map +1 -1
  224. package/dist/index371.js +74 -197
  225. package/dist/index371.js.map +1 -1
  226. package/dist/index372.js +20 -77
  227. package/dist/index372.js.map +1 -1
  228. package/dist/index374.js +3 -3
  229. package/dist/index375.js +1 -1
  230. package/dist/index376.js +3 -3
  231. package/dist/index378.js +2 -2
  232. package/dist/index380.js +1 -1
  233. package/dist/index381.js +2 -2
  234. package/dist/index407.js +1 -1
  235. package/dist/index417.js +1 -1
  236. package/dist/index418.js +1 -1
  237. package/dist/index421.js +1 -1
  238. package/dist/index422.js +1 -1
  239. package/dist/index427.js +2 -2
  240. package/dist/index429.js +2 -2
  241. package/dist/index44.js +1 -1
  242. package/dist/index45.js +2 -2
  243. package/dist/index49.js +28 -28
  244. package/dist/index50.js +21 -21
  245. package/dist/index51.js +1 -1
  246. package/dist/index52.js +8 -8
  247. package/dist/index53.js +2 -2
  248. package/dist/index55.js +17 -17
  249. package/dist/index56.js +4 -4
  250. package/dist/index57.js +3 -3
  251. package/dist/index58.js +7 -7
  252. package/dist/index59.js +4 -4
  253. package/dist/index60.js +12 -12
  254. package/dist/index61.js +2 -2
  255. package/dist/index62.js +2 -2
  256. package/dist/index70.js +1 -1
  257. package/dist/index71.js +1 -1
  258. package/dist/index74.js +2 -6
  259. package/dist/index74.js.map +1 -1
  260. package/dist/index75.js +2 -8
  261. package/dist/index75.js.map +1 -1
  262. package/dist/index76.js +5 -5
  263. package/dist/index76.js.map +1 -1
  264. package/dist/index77.js +8 -2
  265. package/dist/index77.js.map +1 -1
  266. package/dist/index78.js +6 -2
  267. package/dist/index78.js.map +1 -1
  268. package/dist/index8.js +533 -698
  269. package/dist/index8.js.map +1 -1
  270. package/package.json +1 -1
package/dist/index338.js CHANGED
@@ -1,15 +1,12 @@
1
- import r from "./index191.js";
2
- import * as t from "react";
3
- const o = /* @__PURE__ */ t.createContext(void 0);
4
- process.env.NODE_ENV !== "production" && (o.displayName = "SelectGroupContext");
5
- function s() {
6
- const e = t.useContext(o);
7
- if (e === void 0)
8
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : r(56));
9
- return e;
1
+ let n;
2
+ process.env.NODE_ENV !== "production" && (n = /* @__PURE__ */ new Set());
3
+ function s(...o) {
4
+ if (process.env.NODE_ENV !== "production") {
5
+ const e = o.join(" ");
6
+ n.has(e) || (n.add(e), console.warn(`Base UI: ${e}`));
7
+ }
10
8
  }
11
9
  export {
12
- o as SelectGroupContext,
13
- s as useSelectGroupContext
10
+ s as warn
14
11
  };
15
12
  //# sourceMappingURL=index338.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index338.js","sources":["../../../node_modules/@base-ui/react/esm/select/group/SelectGroupContext.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectGroupContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") SelectGroupContext.displayName = \"SelectGroupContext\";\nexport function useSelectGroupContext() {\n const context = React.useContext(SelectGroupContext);\n if (context === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>.' : _formatErrorMessage(56));\n }\n return context;\n}"],"names":["SelectGroupContext","React","useSelectGroupContext","context","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAkC,gBAAAC,EAAM,cAAc,MAAS;AACxE,QAAQ,IAAI,aAAa,iBAAcD,EAAmB,cAAc;AACrE,SAASE,IAAwB;AACtC,QAAMC,IAAUF,EAAM,WAAWD,CAAkB;AACnD,MAAIG,MAAY;AACd,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,oGAAoGC,EAAoB,EAAE,CAAC;AAErL,SAAOD;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index338.js","sources":["../../../node_modules/@base-ui/utils/esm/warn.js"],"sourcesContent":["let set;\nif (process.env.NODE_ENV !== 'production') {\n set = new Set();\n}\nexport function warn(...messages) {\n if (process.env.NODE_ENV !== 'production') {\n const messageKey = messages.join(' ');\n if (!set.has(messageKey)) {\n set.add(messageKey);\n console.warn(`Base UI: ${messageKey}`);\n }\n }\n}"],"names":["set","warn","messages","messageKey"],"mappings":"AAAA,IAAIA;AACA,QAAQ,IAAI,aAAa,iBAC3BA,IAAM,oBAAI,IAAG;AAER,SAASC,KAAQC,GAAU;AAChC,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAaD,EAAS,KAAK,GAAG;AACpC,IAAKF,EAAI,IAAIG,CAAU,MACrBH,EAAI,IAAIG,CAAU,GAClB,QAAQ,KAAK,YAAYA,CAAU,EAAE;AAAA,EAEzC;AACF;","x_google_ignoreList":[0]}
package/dist/index339.js CHANGED
@@ -1,12 +1,17 @@
1
- import * as n from "react";
2
- import { isReactVersionAtLeast as o } from "./index354.js";
3
- function s(t) {
4
- if (!/* @__PURE__ */ n.isValidElement(t))
5
- return null;
6
- const e = t, r = e.props;
7
- return (o(19) ? r?.ref : e.ref) ?? null;
1
+ function i(r, n) {
2
+ const o = {};
3
+ for (const t in r) {
4
+ const e = r[t];
5
+ if (n?.hasOwnProperty(t)) {
6
+ const s = n[t](e);
7
+ s != null && Object.assign(o, s);
8
+ continue;
9
+ }
10
+ e === !0 ? o[`data-${t.toLowerCase()}`] = "" : e && (o[`data-${t.toLowerCase()}`] = e.toString());
11
+ }
12
+ return o;
8
13
  }
9
14
  export {
10
- s as getReactElementRef
15
+ i as getStateAttributesProps
11
16
  };
12
17
  //# sourceMappingURL=index339.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index339.js","sources":["../../../node_modules/@base-ui/utils/esm/getReactElementRef.js"],"sourcesContent":["import * as React from 'react';\nimport { isReactVersionAtLeast } from \"./reactVersion.js\";\n\n/**\n * Extracts the `ref` from a React element, handling different React versions.\n */\nexport function getReactElementRef(element) {\n if (! /*#__PURE__*/React.isValidElement(element)) {\n return null;\n }\n const reactElement = element;\n const propsWithRef = reactElement.props;\n return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null;\n}"],"names":["getReactElementRef","element","React","reactElement","propsWithRef","isReactVersionAtLeast"],"mappings":";;AAMO,SAASA,EAAmBC,GAAS;AAC1C,MAAI,CAAe,gBAAAC,EAAM,eAAeD,CAAO;AAC7C,WAAO;AAET,QAAME,IAAeF,GACfG,IAAeD,EAAa;AAClC,UAAQE,EAAsB,EAAE,IAAID,GAAc,MAAMD,EAAa,QAAQ;AAC/E;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index339.js","sources":["../../../node_modules/@base-ui/react/esm/internals/getStateAttributesProps.js"],"sourcesContent":["export function getStateAttributesProps(state, customMapping) {\n const props = {};\n\n /* eslint-disable-next-line guard-for-in */\n for (const key in state) {\n const value = state[key];\n if (customMapping?.hasOwnProperty(key)) {\n const customProps = customMapping[key](value);\n if (customProps != null) {\n Object.assign(props, customProps);\n }\n continue;\n }\n if (value === true) {\n props[`data-${key.toLowerCase()}`] = '';\n } else if (value) {\n props[`data-${key.toLowerCase()}`] = value.toString();\n }\n }\n return props;\n}"],"names":["getStateAttributesProps","state","customMapping","props","key","value","customProps"],"mappings":"AAAO,SAASA,EAAwBC,GAAOC,GAAe;AAC5D,QAAMC,IAAQ,CAAA;AAGd,aAAWC,KAAOH,GAAO;AACvB,UAAMI,IAAQJ,EAAMG,CAAG;AACvB,QAAIF,GAAe,eAAeE,CAAG,GAAG;AACtC,YAAME,IAAcJ,EAAcE,CAAG,EAAEC,CAAK;AAC5C,MAAIC,KAAe,QACjB,OAAO,OAAOH,GAAOG,CAAW;AAElC;AAAA,IACF;AACA,IAAID,MAAU,KACZF,EAAM,QAAQC,EAAI,YAAW,CAAE,EAAE,IAAI,KAC5BC,MACTF,EAAM,QAAQC,EAAI,YAAW,CAAE,EAAE,IAAIC,EAAM,SAAQ;AAAA,EAEvD;AACA,SAAOF;AACT;","x_google_ignoreList":[0]}
package/dist/index340.js CHANGED
@@ -1,15 +1,7 @@
1
- function n(e, r) {
2
- if (e && !r)
3
- return e;
4
- if (!e && r)
5
- return r;
6
- if (e || r)
7
- return {
8
- ...e,
9
- ...r
10
- };
1
+ function t(n, o) {
2
+ return typeof n == "function" ? n(o) : n;
11
3
  }
12
4
  export {
13
- n as mergeObjects
5
+ t as resolveClassName
14
6
  };
15
7
  //# sourceMappingURL=index340.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index340.js","sources":["../../../node_modules/@base-ui/utils/esm/mergeObjects.js"],"sourcesContent":["export function mergeObjects(a, b) {\n if (a && !b) {\n return a;\n }\n if (!a && b) {\n return b;\n }\n if (a || b) {\n return {\n ...a,\n ...b\n };\n }\n return undefined;\n}"],"names":["mergeObjects","a","b"],"mappings":"AAAO,SAASA,EAAaC,GAAGC,GAAG;AACjC,MAAID,KAAK,CAACC;AACR,WAAOD;AAET,MAAI,CAACA,KAAKC;AACR,WAAOA;AAET,MAAID,KAAKC;AACP,WAAO;AAAA,MACL,GAAGD;AAAA,MACH,GAAGC;AAAA,IACT;AAGA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index340.js","sources":["../../../node_modules/@base-ui/react/esm/utils/resolveClassName.js"],"sourcesContent":["/**\n * If the provided className is a string, it will be returned as is.\n * Otherwise, the function will call the className function with the state as the first argument.\n *\n * @param className\n * @param state\n */\nexport function resolveClassName(className, state) {\n return typeof className === 'function' ? className(state) : className;\n}"],"names":["resolveClassName","className","state"],"mappings":"AAOO,SAASA,EAAiBC,GAAWC,GAAO;AACjD,SAAO,OAAOD,KAAc,aAAaA,EAAUC,CAAK,IAAID;AAC9D;","x_google_ignoreList":[0]}
package/dist/index341.js CHANGED
@@ -1,12 +1,7 @@
1
- let n;
2
- process.env.NODE_ENV !== "production" && (n = /* @__PURE__ */ new Set());
3
- function s(...o) {
4
- if (process.env.NODE_ENV !== "production") {
5
- const e = o.join(" ");
6
- n.has(e) || (n.add(e), console.warn(`Base UI: ${e}`));
7
- }
1
+ function e(n, o) {
2
+ return typeof n == "function" ? n(o) : n;
8
3
  }
9
4
  export {
10
- s as warn
5
+ e as resolveStyle
11
6
  };
12
7
  //# sourceMappingURL=index341.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index341.js","sources":["../../../node_modules/@base-ui/utils/esm/warn.js"],"sourcesContent":["let set;\nif (process.env.NODE_ENV !== 'production') {\n set = new Set();\n}\nexport function warn(...messages) {\n if (process.env.NODE_ENV !== 'production') {\n const messageKey = messages.join(' ');\n if (!set.has(messageKey)) {\n set.add(messageKey);\n console.warn(`Base UI: ${messageKey}`);\n }\n }\n}"],"names":["set","warn","messages","messageKey"],"mappings":"AAAA,IAAIA;AACA,QAAQ,IAAI,aAAa,iBAC3BA,IAAM,oBAAI,IAAG;AAER,SAASC,KAAQC,GAAU;AAChC,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAaD,EAAS,KAAK,GAAG;AACpC,IAAKF,EAAI,IAAIG,CAAU,MACrBH,EAAI,IAAIG,CAAU,GAClB,QAAQ,KAAK,YAAYA,CAAU,EAAE;AAAA,EAEzC;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index341.js","sources":["../../../node_modules/@base-ui/react/esm/utils/resolveStyle.js"],"sourcesContent":["/**\n * If the provided style is an object, it will be returned as is.\n * Otherwise, the function will call the style function with the state as the first argument.\n *\n * @param style\n * @param state\n */\nexport function resolveStyle(style, state) {\n return typeof style === 'function' ? style(state) : style;\n}"],"names":["resolveStyle","style","state"],"mappings":"AAOO,SAASA,EAAaC,GAAOC,GAAO;AACzC,SAAO,OAAOD,KAAU,aAAaA,EAAMC,CAAK,IAAID;AACtD;","x_google_ignoreList":[0]}
package/dist/index342.js CHANGED
@@ -1,17 +1,21 @@
1
- function i(r, n) {
2
- const o = {};
3
- for (const t in r) {
4
- const e = r[t];
5
- if (n?.hasOwnProperty(t)) {
6
- const s = n[t](e);
7
- s != null && Object.assign(o, s);
8
- continue;
9
- }
10
- e === !0 ? o[`data-${t.toLowerCase()}`] = "" : e && (o[`data-${t.toLowerCase()}`] = e.toString());
1
+ import * as n from "react";
2
+ import { SafeReact as f } from "./index356.js";
3
+ let o = 0;
4
+ function l(u, t = "mui") {
5
+ const [e, s] = n.useState(u), c = u || e;
6
+ return n.useEffect(() => {
7
+ e == null && (o += 1, s(`${t}-${o}`));
8
+ }, [e, t]), c;
9
+ }
10
+ const a = f.useId;
11
+ function I(u, t) {
12
+ if (a !== void 0) {
13
+ const e = a();
14
+ return u ?? (t ? `${t}-${e}` : e);
11
15
  }
12
- return o;
16
+ return l(u, t);
13
17
  }
14
18
  export {
15
- i as getStateAttributesProps
19
+ I as useId
16
20
  };
17
21
  //# sourceMappingURL=index342.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index342.js","sources":["../../../node_modules/@base-ui/react/esm/internals/getStateAttributesProps.js"],"sourcesContent":["export function getStateAttributesProps(state, customMapping) {\n const props = {};\n\n /* eslint-disable-next-line guard-for-in */\n for (const key in state) {\n const value = state[key];\n if (customMapping?.hasOwnProperty(key)) {\n const customProps = customMapping[key](value);\n if (customProps != null) {\n Object.assign(props, customProps);\n }\n continue;\n }\n if (value === true) {\n props[`data-${key.toLowerCase()}`] = '';\n } else if (value) {\n props[`data-${key.toLowerCase()}`] = value.toString();\n }\n }\n return props;\n}"],"names":["getStateAttributesProps","state","customMapping","props","key","value","customProps"],"mappings":"AAAO,SAASA,EAAwBC,GAAOC,GAAe;AAC5D,QAAMC,IAAQ,CAAA;AAGd,aAAWC,KAAOH,GAAO;AACvB,UAAMI,IAAQJ,EAAMG,CAAG;AACvB,QAAIF,GAAe,eAAeE,CAAG,GAAG;AACtC,YAAME,IAAcJ,EAAcE,CAAG,EAAEC,CAAK;AAC5C,MAAIC,KAAe,QACjB,OAAO,OAAOH,GAAOG,CAAW;AAElC;AAAA,IACF;AACA,IAAID,MAAU,KACZF,EAAM,QAAQC,EAAI,YAAW,CAAE,EAAE,IAAI,KAC5BC,MACTF,EAAM,QAAQC,EAAI,YAAW,CAAE,EAAE,IAAIC,EAAM,SAAQ;AAAA,EAEvD;AACA,SAAOF;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index342.js","sources":["../../../node_modules/@base-ui/utils/esm/useId.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { SafeReact } from \"./safeReact.js\";\nlet globalId = 0;\n\n// TODO React 17: Remove `useGlobalId` once React 17 support is removed\nfunction useGlobalId(idOverride, prefix = 'mui') {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`${prefix}-${globalId}`);\n }\n }, [defaultId, prefix]);\n return id;\n}\nconst maybeReactUseId = SafeReact.useId;\n\n/**\n *\n * @example <div id={useId()} />\n * @param idOverride\n * @returns {string}\n */\nexport function useId(idOverride, prefix) {\n // React.useId() is only available from React 17.0.0.\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride ?? (prefix ? `${prefix}-${reactId}` : reactId);\n }\n\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride, prefix);\n}"],"names":["globalId","useGlobalId","idOverride","prefix","defaultId","setDefaultId","React","id","maybeReactUseId","SafeReact","useId","reactId"],"mappings":";;AAIA,IAAIA,IAAW;AAGf,SAASC,EAAYC,GAAYC,IAAS,OAAO;AAC/C,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAAM,SAASJ,CAAU,GACrDK,IAAKL,KAAcE;AACzB,SAAAE,EAAM,UAAU,MAAM;AACpB,IAAIF,KAAa,SAKfJ,KAAY,GACZK,EAAa,GAAGF,CAAM,IAAIH,CAAQ,EAAE;AAAA,EAExC,GAAG,CAACI,GAAWD,CAAM,CAAC,GACfI;AACT;AACA,MAAMC,IAAkBC,EAAU;AAQ3B,SAASC,EAAMR,GAAYC,GAAQ;AAExC,MAAIK,MAAoB,QAAW;AACjC,UAAMG,IAAUH,EAAe;AAC/B,WAAON,MAAeC,IAAS,GAAGA,CAAM,IAAIQ,CAAO,KAAKA;AAAA,EAC1D;AAIA,SAAOV,EAAYC,GAAYC,CAAM;AACvC;","x_google_ignoreList":[0]}
package/dist/index343.js CHANGED
@@ -1,7 +1,23 @@
1
- function t(n, o) {
2
- return typeof n == "function" ? n(o) : n;
1
+ import c, { getCountryCallingCode as b } from "./index164.js";
2
+ import g from "./index331.js";
3
+ import C from "./index332.js";
4
+ import h from "./index314.js";
5
+ function P(i, r, l, N, n) {
6
+ var e = r || l ? b(r || l, n) : N;
7
+ if (i.indexOf(e) === 0) {
8
+ n = new c(n), n.selectNumberingPlan(r || l, e);
9
+ var o = i.slice(e.length), f = C(o, r, n), m = f.nationalNumber, u = C(i, r, n), t = u.nationalNumber;
10
+ if (!g(t, n.nationalNumberPattern()) && g(m, n.nationalNumberPattern()) || h(t, r, n) === "TOO_LONG")
11
+ return {
12
+ countryCallingCode: e,
13
+ number: o
14
+ };
15
+ }
16
+ return {
17
+ number: i
18
+ };
3
19
  }
4
20
  export {
5
- t as resolveClassName
21
+ P as default
6
22
  };
7
23
  //# sourceMappingURL=index343.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index343.js","sources":["../../../node_modules/@base-ui/react/esm/utils/resolveClassName.js"],"sourcesContent":["/**\n * If the provided className is a string, it will be returned as is.\n * Otherwise, the function will call the className function with the state as the first argument.\n *\n * @param className\n * @param state\n */\nexport function resolveClassName(className, state) {\n return typeof className === 'function' ? className(state) : className;\n}"],"names":["resolveClassName","className","state"],"mappings":"AAOO,SAASA,EAAiBC,GAAWC,GAAO;AACjD,SAAO,OAAOD,KAAc,aAAaA,EAAUC,CAAK,IAAID;AAC9D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index343.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport extractNationalNumber from './extractNationalNumber.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryCallingCode from '../getCountryCallingCode.js';\n\n/**\r\n * Sometimes some people incorrectly input international phone numbers\r\n * without the leading `+`. This function corrects such input.\r\n * @param {string} number — Phone number digits.\r\n * @param {string} [country] — Exact country of the phone number.\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCode: string?, number: string }`.\r\n */\nexport default function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadata) {\n var countryCallingCode = country || defaultCountry ? getCountryCallingCode(country || defaultCountry, metadata) : defaultCallingCode;\n if (number.indexOf(countryCallingCode) === 0) {\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(country || defaultCountry, countryCallingCode);\n var possibleShorterNumber = number.slice(countryCallingCode.length);\n var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, country, metadata),\n possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;\n var _extractNationalNumbe2 = extractNationalNumber(number, country, metadata),\n nationalNumber = _extractNationalNumbe2.nationalNumber;\n\n // If the number was not valid before but is valid now,\n // or if it was too long before, we consider the number\n // with the country calling code stripped to be a better result\n // and keep that instead.\n // For example, in Germany (+49), `49` is a valid area code,\n // so if a number starts with `49`, it could be both a valid\n // national German number or an international number without\n // a leading `+`.\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || checkNumberLength(nationalNumber, country, metadata) === 'TOO_LONG') {\n return {\n countryCallingCode: countryCallingCode,\n number: possibleShorterNumber\n };\n }\n }\n return {\n number: number\n };\n}\n//# sourceMappingURL=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map"],"names":["extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","number","country","defaultCountry","defaultCallingCode","metadata","countryCallingCode","getCountryCallingCode","Metadata","possibleShorterNumber","_extractNationalNumbe","extractNationalNumber","possibleShorterNationalNumber","_extractNationalNumbe2","nationalNumber","matchesEntirely","checkNumberLength"],"mappings":";;;;AAgBe,SAASA,EAAgEC,GAAQC,GAASC,GAAgBC,GAAoBC,GAAU;AACrJ,MAAIC,IAAqBJ,KAAWC,IAAiBI,EAAsBL,KAAWC,GAAgBE,CAAQ,IAAID;AAClH,MAAIH,EAAO,QAAQK,CAAkB,MAAM,GAAG;AAC5C,IAAAD,IAAW,IAAIG,EAASH,CAAQ,GAChCA,EAAS,oBAAoBH,KAAWC,GAAgBG,CAAkB;AAC1E,QAAIG,IAAwBR,EAAO,MAAMK,EAAmB,MAAM,GAC9DI,IAAwBC,EAAsBF,GAAuBP,GAASG,CAAQ,GACxFO,IAAgCF,EAAsB,gBACpDG,IAAyBF,EAAsBV,GAAQC,GAASG,CAAQ,GAC1ES,IAAiBD,EAAuB;AAU1C,QAAI,CAACE,EAAgBD,GAAgBT,EAAS,sBAAqB,CAAE,KAAKU,EAAgBH,GAA+BP,EAAS,sBAAqB,CAAE,KAAKW,EAAkBF,GAAgBZ,GAASG,CAAQ,MAAM;AACrN,aAAO;AAAA,QACL,oBAAoBC;AAAA,QACpB,QAAQG;AAAA,MAChB;AAAA,EAEE;AACA,SAAO;AAAA,IACL,QAAQR;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
package/dist/index344.js CHANGED
@@ -1,7 +1,32 @@
1
- function e(n, o) {
2
- return typeof n == "function" ? n(o) : n;
1
+ function F(l, i) {
2
+ if (l && i.numberingPlan.nationalPrefixForParsing()) {
3
+ var g = new RegExp("^(?:" + i.numberingPlan.nationalPrefixForParsing() + ")"), n = g.exec(l);
4
+ if (n) {
5
+ var r, P, v = n.length - 1, e = v > 0 && n[v];
6
+ if (i.nationalPrefixTransformRule() && e)
7
+ r = l.replace(g, i.nationalPrefixTransformRule()), v > 1 && (P = n[1]);
8
+ else {
9
+ var o = n[0];
10
+ r = l.slice(o.length), e && (P = n[1]);
11
+ }
12
+ var f;
13
+ if (e) {
14
+ var s = l.indexOf(n[1]), a = l.slice(0, s);
15
+ a === i.numberingPlan.nationalPrefix() && (f = i.numberingPlan.nationalPrefix());
16
+ } else
17
+ f = n[0];
18
+ return {
19
+ nationalNumber: r,
20
+ nationalPrefix: f,
21
+ carrierCode: P
22
+ };
23
+ }
24
+ }
25
+ return {
26
+ nationalNumber: l
27
+ };
3
28
  }
4
29
  export {
5
- e as resolveStyle
30
+ F as default
6
31
  };
7
32
  //# sourceMappingURL=index344.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index344.js","sources":["../../../node_modules/@base-ui/react/esm/utils/resolveStyle.js"],"sourcesContent":["/**\n * If the provided style is an object, it will be returned as is.\n * Otherwise, the function will call the style function with the state as the first argument.\n *\n * @param style\n * @param state\n */\nexport function resolveStyle(style, state) {\n return typeof style === 'function' ? style(state) : style;\n}"],"names":["resolveStyle","style","state"],"mappings":"AAOO,SAASA,EAAaC,GAAOC,GAAO;AACzC,SAAO,OAAOD,KAAU,aAAaA,EAAMC,CAAK,IAAID;AACtD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index344.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js"],"sourcesContent":["/**\r\n * Strips any national prefix (such as 0, 1) present in a\r\n * (possibly incomplete) number provided.\r\n * \"Carrier codes\" are only used in Colombia and Brazil,\r\n * and only when dialing within those countries from a mobile phone to a fixed line number.\r\n * Sometimes it won't actually strip national prefix\r\n * and will instead prepend some digits to the `number`:\r\n * for example, when number `2345678` is passed with `VI` country selected,\r\n * it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\r\n * @param {string} number — National number digits.\r\n * @param {object} metadata — Metadata with country selected.\r\n * @return {object} `{ nationalNumber: string, nationalPrefix: string? carrierCode: string? }`. Even if a national prefix was extracted, it's not necessarily present in the returned object, so don't rely on its presence in the returned object in order to find out whether a national prefix has been extracted or not.\r\n */\nexport default function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {\n if (number && metadata.numberingPlan.nationalPrefixForParsing()) {\n // See METADATA.md for the description of\n // `national_prefix_for_parsing` and `national_prefix_transform_rule`.\n // Attempt to parse the first digits as a national prefix.\n var prefixPattern = new RegExp('^(?:' + metadata.numberingPlan.nationalPrefixForParsing() + ')');\n var prefixMatch = prefixPattern.exec(number);\n if (prefixMatch) {\n var nationalNumber;\n var carrierCode;\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n // If a `national_prefix_for_parsing` has any \"capturing groups\"\n // then it means that the national (significant) number is equal to\n // those \"capturing groups\" transformed via `national_prefix_transform_rule`,\n // and nothing could be said about the actual national prefix:\n // what is it and was it even there.\n // If a `national_prefix_for_parsing` doesn't have any \"capturing groups\",\n // then everything it matches is a national prefix.\n // To determine whether `national_prefix_for_parsing` matched any\n // \"capturing groups\", the value of the result of calling `.exec()`\n // is looked at, and if it has non-undefined values where there're\n // \"capturing groups\" in the regular expression, then it means\n // that \"capturing groups\" have been matched.\n // It's not possible to tell whether there'll be any \"capturing gropus\"\n // before the matching process, because a `national_prefix_for_parsing`\n // could exhibit both behaviors.\n var capturedGroupsCount = prefixMatch.length - 1;\n var hasCapturedGroups = capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount];\n if (metadata.nationalPrefixTransformRule() && hasCapturedGroups) {\n nationalNumber = number.replace(prefixPattern, metadata.nationalPrefixTransformRule());\n // If there's more than one captured group,\n // then carrier code is the second one.\n if (capturedGroupsCount > 1) {\n carrierCode = prefixMatch[1];\n }\n }\n // If there're no \"capturing groups\",\n // or if there're \"capturing groups\" but no\n // `national_prefix_transform_rule`,\n // then just strip the national prefix from the number,\n // and possibly a carrier code.\n // Seems like there could be more.\n else {\n // `prefixBeforeNationalNumber` is the whole substring matched by\n // the `national_prefix_for_parsing` regular expression.\n // There seem to be no guarantees that it's just a national prefix.\n // For example, if there's a carrier code, it's gonna be a\n // part of `prefixBeforeNationalNumber` too.\n var prefixBeforeNationalNumber = prefixMatch[0];\n nationalNumber = number.slice(prefixBeforeNationalNumber.length);\n // If there's at least one captured group,\n // then carrier code is the first one.\n if (hasCapturedGroups) {\n carrierCode = prefixMatch[1];\n }\n }\n // Tries to guess whether a national prefix was present in the input.\n // This is not something copy-pasted from Google's library:\n // they don't seem to have an equivalent for that.\n // So this isn't an \"officially approved\" way of doing something like that.\n // But since there seems no other existing method, this library uses it.\n var nationalPrefix;\n if (hasCapturedGroups) {\n var possiblePositionOfTheFirstCapturedGroup = number.indexOf(prefixMatch[1]);\n var possibleNationalPrefix = number.slice(0, possiblePositionOfTheFirstCapturedGroup);\n // Example: an Argentinian (AR) phone number `0111523456789`.\n // `prefixMatch[0]` is `01115`, and `$1` is `11`,\n // and the rest of the phone number is `23456789`.\n // The national number is transformed via `9$1` to `91123456789`.\n // National prefix `0` is detected being present at the start.\n // if (possibleNationalPrefix.indexOf(metadata.numberingPlan.nationalPrefix()) === 0) {\n if (possibleNationalPrefix === metadata.numberingPlan.nationalPrefix()) {\n nationalPrefix = metadata.numberingPlan.nationalPrefix();\n }\n } else {\n nationalPrefix = prefixMatch[0];\n }\n return {\n nationalNumber: nationalNumber,\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode\n };\n }\n }\n return {\n nationalNumber: number\n };\n}\n//# sourceMappingURL=extractNationalNumberFromPossiblyIncompleteNumber.js.map"],"names":["extractNationalNumberFromPossiblyIncompleteNumber","number","metadata","prefixPattern","prefixMatch","nationalNumber","carrierCode","capturedGroupsCount","hasCapturedGroups","prefixBeforeNationalNumber","nationalPrefix","possiblePositionOfTheFirstCapturedGroup","possibleNationalPrefix"],"mappings":"AAae,SAASA,EAAkDC,GAAQC,GAAU;AAC1F,MAAID,KAAUC,EAAS,cAAc,yBAAwB,GAAI;AAI/D,QAAIC,IAAgB,IAAI,OAAO,SAASD,EAAS,cAAc,yBAAwB,IAAK,GAAG,GAC3FE,IAAcD,EAAc,KAAKF,CAAM;AAC3C,QAAIG,GAAa;AACf,UAAIC,GACAC,GAiBAC,IAAsBH,EAAY,SAAS,GAC3CI,IAAoBD,IAAsB,KAAKH,EAAYG,CAAmB;AAClF,UAAIL,EAAS,4BAA2B,KAAMM;AAC5C,QAAAH,IAAiBJ,EAAO,QAAQE,GAAeD,EAAS,4BAA2B,CAAE,GAGjFK,IAAsB,MACxBD,IAAcF,EAAY,CAAC;AAAA,WAS1B;AAMH,YAAIK,IAA6BL,EAAY,CAAC;AAC9C,QAAAC,IAAiBJ,EAAO,MAAMQ,EAA2B,MAAM,GAG3DD,MACFF,IAAcF,EAAY,CAAC;AAAA,MAE/B;AAMA,UAAIM;AACJ,UAAIF,GAAmB;AACrB,YAAIG,IAA0CV,EAAO,QAAQG,EAAY,CAAC,CAAC,GACvEQ,IAAyBX,EAAO,MAAM,GAAGU,CAAuC;AAOpF,QAAIC,MAA2BV,EAAS,cAAc,eAAc,MAClEQ,IAAiBR,EAAS,cAAc,eAAc;AAAA,MAE1D;AACE,QAAAQ,IAAiBN,EAAY,CAAC;AAEhC,aAAO;AAAA,QACL,gBAAgBC;AAAA,QAChB,gBAAgBK;AAAA,QAChB,aAAaJ;AAAA,MACrB;AAAA,IACI;AAAA,EACF;AACA,SAAO;AAAA,IACL,gBAAgBL;AAAA,EACpB;AACA;","x_google_ignoreList":[0]}
package/dist/index345.js CHANGED
@@ -1,21 +1,20 @@
1
- import * as n from "react";
2
- import { SafeReact as f } from "./index356.js";
3
- let o = 0;
4
- function l(u, t = "mui") {
5
- const [e, s] = n.useState(u), c = u || e;
6
- return n.useEffect(() => {
7
- e == null && (o += 1, s(`${t}-${o}`));
8
- }, [e, t]), c;
9
- }
10
- const a = f.useId;
11
- function I(u, t) {
12
- if (a !== void 0) {
13
- const e = a();
14
- return u ?? (t ? `${t}-${e}` : e);
1
+ import I from "./index164.js";
2
+ import { VALID_DIGITS as l } from "./index160.js";
3
+ var c = new RegExp("([" + l + "])");
4
+ function D(t, r, f, n) {
5
+ if (r) {
6
+ var a = new I(n);
7
+ a.selectNumberingPlan(r, f);
8
+ var i = new RegExp(a.IDDPrefix());
9
+ if (t.search(i) === 0) {
10
+ t = t.slice(t.match(i)[0].length);
11
+ var e = t.match(c);
12
+ if (!(e && e[1] != null && e[1].length > 0 && e[1] === "0"))
13
+ return t;
14
+ }
15
15
  }
16
- return l(u, t);
17
16
  }
18
17
  export {
19
- I as useId
18
+ D as default
20
19
  };
21
20
  //# sourceMappingURL=index345.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index345.js","sources":["../../../node_modules/@base-ui/utils/esm/useId.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { SafeReact } from \"./safeReact.js\";\nlet globalId = 0;\n\n// TODO React 17: Remove `useGlobalId` once React 17 support is removed\nfunction useGlobalId(idOverride, prefix = 'mui') {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`${prefix}-${globalId}`);\n }\n }, [defaultId, prefix]);\n return id;\n}\nconst maybeReactUseId = SafeReact.useId;\n\n/**\n *\n * @example <div id={useId()} />\n * @param idOverride\n * @returns {string}\n */\nexport function useId(idOverride, prefix) {\n // React.useId() is only available from React 17.0.0.\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride ?? (prefix ? `${prefix}-${reactId}` : reactId);\n }\n\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride, prefix);\n}"],"names":["globalId","useGlobalId","idOverride","prefix","defaultId","setDefaultId","React","id","maybeReactUseId","SafeReact","useId","reactId"],"mappings":";;AAIA,IAAIA,IAAW;AAGf,SAASC,EAAYC,GAAYC,IAAS,OAAO;AAC/C,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAAM,SAASJ,CAAU,GACrDK,IAAKL,KAAcE;AACzB,SAAAE,EAAM,UAAU,MAAM;AACpB,IAAIF,KAAa,SAKfJ,KAAY,GACZK,EAAa,GAAGF,CAAM,IAAIH,CAAQ,EAAE;AAAA,EAExC,GAAG,CAACI,GAAWD,CAAM,CAAC,GACfI;AACT;AACA,MAAMC,IAAkBC,EAAU;AAQ3B,SAASC,EAAMR,GAAYC,GAAQ;AAExC,MAAIK,MAAoB,QAAW;AACjC,UAAMG,IAAUH,EAAe;AAC/B,WAAON,MAAeC,IAAS,GAAGA,CAAM,IAAIQ,CAAO,KAAKA;AAAA,EAC1D;AAIA,SAAOV,EAAYC,GAAYC,CAAM;AACvC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index345.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport { VALID_DIGITS } from '../constants.js';\nvar CAPTURING_DIGIT_PATTERN = new RegExp('([' + VALID_DIGITS + '])');\nexport default function stripIddPrefix(number, country, callingCode, metadata) {\n if (!country) {\n return;\n }\n // Check if the number is IDD-prefixed.\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n var IDDPrefixPattern = new RegExp(countryMetadata.IDDPrefix());\n if (number.search(IDDPrefixPattern) !== 0) {\n return;\n }\n // Strip IDD prefix.\n number = number.slice(number.match(IDDPrefixPattern)[0].length);\n // If there're any digits after an IDD prefix,\n // then those digits are a country calling code.\n // Since no country code starts with a `0`,\n // the code below validates that the next digit (if present) is not `0`.\n var matchedGroups = number.match(CAPTURING_DIGIT_PATTERN);\n if (matchedGroups && matchedGroups[1] != null && matchedGroups[1].length > 0) {\n if (matchedGroups[1] === '0') {\n return;\n }\n }\n return number;\n}\n//# sourceMappingURL=stripIddPrefix.js.map"],"names":["CAPTURING_DIGIT_PATTERN","VALID_DIGITS","stripIddPrefix","number","country","callingCode","metadata","countryMetadata","Metadata","IDDPrefixPattern","matchedGroups"],"mappings":";;AAEA,IAAIA,IAA0B,IAAI,OAAO,OAAOC,IAAe,IAAI;AACpD,SAASC,EAAeC,GAAQC,GAASC,GAAaC,GAAU;AAC7E,MAAKF,GAIL;AAAA,QAAIG,IAAkB,IAAIC,EAASF,CAAQ;AAC3C,IAAAC,EAAgB,oBAAoBH,GAASC,CAAW;AACxD,QAAII,IAAmB,IAAI,OAAOF,EAAgB,UAAS,CAAE;AAC7D,QAAIJ,EAAO,OAAOM,CAAgB,MAAM,GAIxC;AAAA,MAAAN,IAASA,EAAO,MAAMA,EAAO,MAAMM,CAAgB,EAAE,CAAC,EAAE,MAAM;AAK9D,UAAIC,IAAgBP,EAAO,MAAMH,CAAuB;AACxD,UAAI,EAAAU,KAAiBA,EAAc,CAAC,KAAK,QAAQA,EAAc,CAAC,EAAE,SAAS,KACrEA,EAAc,CAAC,MAAM;AAI3B,eAAOP;AAAA;AAAA;AACT;","x_google_ignoreList":[0]}
package/dist/index346.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as l from "react-dom";
2
- import { useAnimationFrame as b } from "./index327.js";
3
- import { useStableCallback as A } from "./index287.js";
2
+ import { useAnimationFrame as b } from "./index302.js";
3
+ import { useStableCallback as A } from "./index262.js";
4
4
  import { resolveRef as d } from "./index383.js";
5
5
  import { TransitionStatusDataAttributes as h } from "./index174.js";
6
6
  function y(c, f = !1, m = !0) {
package/dist/index347.js CHANGED
@@ -1,11 +1,11 @@
1
- import { getWindow as d, isOverflowElement as m } from "./index334.js";
2
- import { addEventListener as T } from "./index325.js";
3
- import { isIOS as E, isWebKit as H } from "./index326.js";
4
- import { ownerDocument as a } from "./index309.js";
5
- import { useIsoLayoutEffect as z } from "./index286.js";
6
- import { Timeout as k } from "./index310.js";
7
- import { AnimationFrame as j } from "./index327.js";
8
- import { NOOP as F } from "./index289.js";
1
+ import { getWindow as d, isOverflowElement as m } from "./index309.js";
2
+ import { addEventListener as T } from "./index300.js";
3
+ import { isIOS as E, isWebKit as H } from "./index301.js";
4
+ import { ownerDocument as a } from "./index284.js";
5
+ import { useIsoLayoutEffect as z } from "./index261.js";
6
+ import { Timeout as k } from "./index285.js";
7
+ import { AnimationFrame as j } from "./index302.js";
8
+ import { NOOP as F } from "./index264.js";
9
9
  let Y = {}, C = {}, O = "";
10
10
  function R(s) {
11
11
  if (typeof document > "u")
package/dist/index348.js CHANGED
@@ -1,7 +1,7 @@
1
- import { useId as f } from "./index345.js";
2
- import { useRefWithInit as u } from "./index283.js";
3
- import { useIsoLayoutEffect as g } from "./index286.js";
4
- import { isElement as E } from "./index334.js";
1
+ import { useId as f } from "./index342.js";
2
+ import { useRefWithInit as u } from "./index258.js";
3
+ import { useIsoLayoutEffect as g } from "./index261.js";
4
+ import { isElement as E } from "./index309.js";
5
5
  import { useFloatingParentNodeId as d } from "./index382.js";
6
6
  import { FloatingRootStore as S } from "./index384.js";
7
7
  function C(p) {
package/dist/index349.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as r from "react";
2
- import { useId as E } from "./index345.js";
3
- import { EMPTY_OBJECT as P } from "./index289.js";
4
- import { getFloatingFocusElement as S } from "./index315.js";
2
+ import { useId as E } from "./index342.js";
3
+ import { EMPTY_OBJECT as P } from "./index264.js";
4
+ import { getFloatingFocusElement as S } from "./index290.js";
5
5
  import { useFloatingParentNodeId as F } from "./index382.js";
6
6
  const y = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
7
7
  function $(c, g = {}) {
package/dist/index350.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as u from "react";
2
- import { Store as l } from "./index308.js";
3
- import { useStore as a } from "./index302.js";
4
- import { useStableCallback as f } from "./index287.js";
5
- import { useIsoLayoutEffect as c } from "./index286.js";
6
- import { NOOP as h } from "./index289.js";
2
+ import { Store as l } from "./index283.js";
3
+ import { useStore as a } from "./index277.js";
4
+ import { useStableCallback as f } from "./index262.js";
5
+ import { useIsoLayoutEffect as c } from "./index261.js";
6
+ import { NOOP as h } from "./index264.js";
7
7
  class g extends l {
8
8
  /**
9
9
  * Creates a new ReactStore instance.
package/dist/index352.js CHANGED
@@ -1,4 +1,4 @@
1
- import { EMPTY_OBJECT as r } from "./index289.js";
1
+ import { EMPTY_OBJECT as r } from "./index264.js";
2
2
  import { getEmptyRootContext as i } from "./index386.js";
3
3
  import { createSelector as n } from "./index353.js";
4
4
  function u() {
package/dist/index362.js CHANGED
@@ -1,24 +1,15 @@
1
- import { VALID_DIGITS as n } from "./index160.js";
2
- var v = "+", I = "[\\-\\.\\(\\)]?", R = "([" + n + "]|" + I + ")", i = "^\\" + v + R + "*[" + n + "]" + R + "*$", N = new RegExp(i, "g"), r = n, C = "[" + r + "]+((\\-)*[" + r + "])*", L = "a-zA-Z", f = "[" + L + "]+((\\-)*[" + r + "])*", E = "^(" + C + "\\.)*" + f + "\\.?$", O = new RegExp(E, "g"), l = "tel:", a = ";phone-context=", u = ";isub=";
3
- function D(_) {
4
- var t = _.indexOf(a);
5
- if (t < 0)
6
- return null;
7
- var e = t + a.length;
8
- if (e >= _.length)
1
+ function t(r) {
2
+ if (r == null)
9
3
  return "";
10
- var A = _.indexOf(";", e);
11
- return A >= 0 ? _.substring(e, A) : _.substring(e);
12
- }
13
- function S(_) {
14
- return _ === null ? !0 : _.length === 0 ? !1 : N.test(_) || O.test(_);
4
+ if (typeof r == "string")
5
+ return r;
6
+ try {
7
+ return JSON.stringify(r);
8
+ } catch {
9
+ return String(r);
10
+ }
15
11
  }
16
12
  export {
17
- v as PLUS_SIGN,
18
- u as RFC3966_ISDN_SUBADDRESS_,
19
- a as RFC3966_PHONE_CONTEXT_,
20
- l as RFC3966_PREFIX_,
21
- D as default,
22
- S as isPhoneContextValid
13
+ t as serializeValue
23
14
  };
24
15
  //# sourceMappingURL=index362.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index362.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js"],"sourcesContent":["// When phone numbers are written in `RFC3966` format — `\"tel:+12133734253\"` —\n// they can have their \"calling code\" part written separately in a `phone-context` parameter.\n// Example: `\"tel:12133734253;phone-context=+1\"`.\n// This function parses the full phone number from the local number and the `phone-context`\n// when the `phone-context` contains a `+` sign.\n\nimport { VALID_DIGITS\n// PLUS_CHARS\n} from '../constants.js';\nexport var PLUS_SIGN = '+';\nvar RFC3966_VISUAL_SEPARATOR_ = '[\\\\-\\\\.\\\\(\\\\)]?';\nvar RFC3966_PHONE_DIGIT_ = '(' + '[' + VALID_DIGITS + ']' + '|' + RFC3966_VISUAL_SEPARATOR_ + ')';\nvar RFC3966_GLOBAL_NUMBER_DIGITS_ = '^' + '\\\\' + PLUS_SIGN + RFC3966_PHONE_DIGIT_ + '*' + '[' + VALID_DIGITS + ']' + RFC3966_PHONE_DIGIT_ + '*' + '$';\n\n/**\r\n * Regular expression of valid global-number-digits for the phone-context\r\n * parameter, following the syntax defined in RFC3966.\r\n */\nvar RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_ = new RegExp(RFC3966_GLOBAL_NUMBER_DIGITS_, 'g');\n\n// In this port of Google's library, we don't accept alpha characters in phone numbers.\n// const ALPHANUM_ = VALID_ALPHA_ + VALID_DIGITS\nvar ALPHANUM_ = VALID_DIGITS;\nvar RFC3966_DOMAINLABEL_ = '[' + ALPHANUM_ + ']+((\\\\-)*[' + ALPHANUM_ + '])*';\nvar VALID_ALPHA_ = 'a-zA-Z';\nvar RFC3966_TOPLABEL_ = '[' + VALID_ALPHA_ + ']+((\\\\-)*[' + ALPHANUM_ + '])*';\nvar RFC3966_DOMAINNAME_ = '^(' + RFC3966_DOMAINLABEL_ + '\\\\.)*' + RFC3966_TOPLABEL_ + '\\\\.?$';\n\n/**\r\n * Regular expression of valid domainname for the phone-context parameter,\r\n * following the syntax defined in RFC3966.\r\n */\nvar RFC3966_DOMAINNAME_PATTERN_ = new RegExp(RFC3966_DOMAINNAME_, 'g');\nexport var RFC3966_PREFIX_ = 'tel:';\nexport var RFC3966_PHONE_CONTEXT_ = ';phone-context=';\nexport var RFC3966_ISDN_SUBADDRESS_ = ';isub=';\n\n/**\r\n * Extracts the value of the phone-context parameter of `numberToExtractFrom`,\r\n * following the syntax defined in RFC3966.\r\n *\r\n * @param {string} numberToExtractFrom\r\n * @return {string|null} the extracted string (possibly empty), or `null` if no phone-context parameter is found.\r\n */\nexport default function extractPhoneContext(numberToExtractFrom) {\n var indexOfPhoneContext = numberToExtractFrom.indexOf(RFC3966_PHONE_CONTEXT_);\n // If no phone-context parameter is present\n if (indexOfPhoneContext < 0) {\n return null;\n }\n var phoneContextStart = indexOfPhoneContext + RFC3966_PHONE_CONTEXT_.length;\n // If phone-context parameter is empty\n if (phoneContextStart >= numberToExtractFrom.length) {\n return '';\n }\n var phoneContextEnd = numberToExtractFrom.indexOf(';', phoneContextStart);\n // If phone-context is not the last parameter\n if (phoneContextEnd >= 0) {\n return numberToExtractFrom.substring(phoneContextStart, phoneContextEnd);\n } else {\n return numberToExtractFrom.substring(phoneContextStart);\n }\n}\n\n/**\r\n * Returns whether the value of phoneContext follows the syntax defined in RFC3966.\r\n *\r\n * @param {string|null} phoneContext\r\n * @return {boolean}\r\n */\nexport function isPhoneContextValid(phoneContext) {\n if (phoneContext === null) {\n return true;\n }\n if (phoneContext.length === 0) {\n return false;\n }\n\n // Does phone-context value match pattern of global-number-digits or domainname.\n return RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(phoneContext) || RFC3966_DOMAINNAME_PATTERN_.test(phoneContext);\n}\n//# sourceMappingURL=extractPhoneContext.js.map"],"names":["PLUS_SIGN","RFC3966_VISUAL_SEPARATOR_","RFC3966_PHONE_DIGIT_","VALID_DIGITS","RFC3966_GLOBAL_NUMBER_DIGITS_","RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_","ALPHANUM_","RFC3966_DOMAINLABEL_","VALID_ALPHA_","RFC3966_TOPLABEL_","RFC3966_DOMAINNAME_","RFC3966_DOMAINNAME_PATTERN_","RFC3966_PREFIX_","RFC3966_PHONE_CONTEXT_","RFC3966_ISDN_SUBADDRESS_","extractPhoneContext","numberToExtractFrom","indexOfPhoneContext","phoneContextStart","phoneContextEnd","isPhoneContextValid","phoneContext"],"mappings":";AASU,IAACA,IAAY,KACnBC,IAA4B,mBAC5BC,IAAuB,OAAYC,IAAe,OAAYF,IAA4B,KAC1FG,IAAgC,QAAaJ,IAAYE,IAAuB,OAAYC,IAAe,MAAMD,IAAuB,MAMxIG,IAAwC,IAAI,OAAOD,GAA+B,GAAG,GAIrFE,IAAYH,GACZI,IAAuB,MAAMD,IAAY,eAAeA,IAAY,OACpEE,IAAe,UACfC,IAAoB,MAAMD,IAAe,eAAeF,IAAY,OACpEI,IAAsB,OAAOH,IAAuB,UAAUE,IAAoB,SAMlFE,IAA8B,IAAI,OAAOD,GAAqB,GAAG,GAC1DE,IAAkB,QAClBC,IAAyB,mBACzBC,IAA2B;AASvB,SAASC,EAAoBC,GAAqB;AAC/D,MAAIC,IAAsBD,EAAoB,QAAQH,CAAsB;AAE5E,MAAII,IAAsB;AACxB,WAAO;AAET,MAAIC,IAAoBD,IAAsBJ,EAAuB;AAErE,MAAIK,KAAqBF,EAAoB;AAC3C,WAAO;AAET,MAAIG,IAAkBH,EAAoB,QAAQ,KAAKE,CAAiB;AAExE,SAAIC,KAAmB,IACdH,EAAoB,UAAUE,GAAmBC,CAAe,IAEhEH,EAAoB,UAAUE,CAAiB;AAE1D;AAQO,SAASE,EAAoBC,GAAc;AAChD,SAAIA,MAAiB,OACZ,KAELA,EAAa,WAAW,IACnB,KAIFhB,EAAsC,KAAKgB,CAAY,KAAKV,EAA4B,KAAKU,CAAY;AAClH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index362.js","sources":["../../../node_modules/@base-ui/react/esm/internals/serializeValue.js"],"sourcesContent":["export function serializeValue(value) {\n if (value == null) {\n return '';\n }\n if (typeof value === 'string') {\n return value;\n }\n try {\n return JSON.stringify(value);\n } catch {\n return String(value);\n }\n}"],"names":["serializeValue","value"],"mappings":"AAAO,SAASA,EAAeC,GAAO;AACpC,MAAIA,KAAS;AACX,WAAO;AAET,MAAI,OAAOA,KAAU;AACnB,WAAOA;AAET,MAAI;AACF,WAAO,KAAK,UAAUA,CAAK;AAAA,EAC7B,QAAQ;AACN,WAAO,OAAOA,CAAK;AAAA,EACrB;AACF;","x_google_ignoreList":[0]}
package/dist/index363.js CHANGED
@@ -1,7 +1,20 @@
1
- let a = /* @__PURE__ */ (function(d) {
2
- return d.disabled = "data-disabled", d.valid = "data-valid", d.invalid = "data-invalid", d.touched = "data-touched", d.dirty = "data-dirty", d.filled = "data-filled", d.focused = "data-focused", d;
3
- })({});
1
+ import * as e from "react";
2
+ function t(i) {
3
+ const o = e.useRef(""), n = e.useCallback((r) => {
4
+ r.defaultPrevented || (o.current = r.pointerType, i(r, r.pointerType));
5
+ }, [i]);
6
+ return {
7
+ onClick: e.useCallback((r) => {
8
+ if (r.detail === 0) {
9
+ i(r, "keyboard");
10
+ return;
11
+ }
12
+ "pointerType" in r ? i(r, r.pointerType) : i(r, o.current), o.current = "";
13
+ }, [i]),
14
+ onPointerDown: n
15
+ };
16
+ }
4
17
  export {
5
- a as FieldControlDataAttributes
18
+ t as useEnhancedClickHandler
6
19
  };
7
20
  //# sourceMappingURL=index363.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index363.js","sources":["../../../node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js"],"sourcesContent":["export let FieldControlDataAttributes = /*#__PURE__*/function (FieldControlDataAttributes) {\n /**\n * Present when the field is disabled.\n */\n FieldControlDataAttributes[\"disabled\"] = \"data-disabled\";\n /**\n * Present when the field is in a valid state.\n */\n FieldControlDataAttributes[\"valid\"] = \"data-valid\";\n /**\n * Present when the field is in an invalid state.\n */\n FieldControlDataAttributes[\"invalid\"] = \"data-invalid\";\n /**\n * Present when the field has been touched.\n */\n FieldControlDataAttributes[\"touched\"] = \"data-touched\";\n /**\n * Present when the field's value has changed.\n */\n FieldControlDataAttributes[\"dirty\"] = \"data-dirty\";\n /**\n * Present when the field is filled.\n */\n FieldControlDataAttributes[\"filled\"] = \"data-filled\";\n /**\n * Present when the field control is focused.\n */\n FieldControlDataAttributes[\"focused\"] = \"data-focused\";\n return FieldControlDataAttributes;\n}({});"],"names":["FieldControlDataAttributes"],"mappings":"AAAU,IAACA,IAA0C,0BAAUA,GAA4B;AAIzF,SAAAA,EAA2B,WAAc,iBAIzCA,EAA2B,QAAW,cAItCA,EAA2B,UAAa,gBAIxCA,EAA2B,UAAa,gBAIxCA,EAA2B,QAAW,cAItCA,EAA2B,SAAY,eAIvCA,EAA2B,UAAa,gBACjCA;AACT,GAAE,CAAA,CAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index363.js","sources":["../../../node_modules/@base-ui/utils/esm/useEnhancedClickHandler.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n/**\n * Provides a cross-browser way to determine the type of the pointer used to click.\n * Safari and Firefox do not provide the PointerEvent to the click handler (they use MouseEvent) yet.\n * Additionally, this implementation detects if the click was triggered by the keyboard.\n *\n * @param handler The function to be called when the button is clicked. The first parameter is the original event and the second parameter is the pointer type.\n */\nexport function useEnhancedClickHandler(handler) {\n const lastClickInteractionTypeRef = React.useRef('');\n const handlePointerDown = React.useCallback(event => {\n if (event.defaultPrevented) {\n return;\n }\n lastClickInteractionTypeRef.current = event.pointerType;\n handler(event, event.pointerType);\n }, [handler]);\n const handleClick = React.useCallback(event => {\n // event.detail has the number of clicks performed on the element. 0 means it was triggered by the keyboard.\n if (event.detail === 0) {\n handler(event, 'keyboard');\n return;\n }\n if ('pointerType' in event) {\n // Chrome and Edge correctly use PointerEvent\n handler(event, event.pointerType);\n } else {\n handler(event, lastClickInteractionTypeRef.current);\n }\n lastClickInteractionTypeRef.current = '';\n }, [handler]);\n return {\n onClick: handleClick,\n onPointerDown: handlePointerDown\n };\n}"],"names":["useEnhancedClickHandler","handler","lastClickInteractionTypeRef","React","handlePointerDown","event"],"mappings":";AAUO,SAASA,EAAwBC,GAAS;AAC/C,QAAMC,IAA8BC,EAAM,OAAO,EAAE,GAC7CC,IAAoBD,EAAM,YAAY,CAAAE,MAAS;AACnD,IAAIA,EAAM,qBAGVH,EAA4B,UAAUG,EAAM,aAC5CJ,EAAQI,GAAOA,EAAM,WAAW;AAAA,EAClC,GAAG,CAACJ,CAAO,CAAC;AAeZ,SAAO;AAAA,IACL,SAfkBE,EAAM,YAAY,CAAAE,MAAS;AAE7C,UAAIA,EAAM,WAAW,GAAG;AACtB,QAAAJ,EAAQI,GAAO,UAAU;AACzB;AAAA,MACF;AACA,MAAI,iBAAiBA,IAEnBJ,EAAQI,GAAOA,EAAM,WAAW,IAEhCJ,EAAQI,GAAOH,EAA4B,OAAO,GAEpDA,EAA4B,UAAU;AAAA,IACxC,GAAG,CAACD,CAAO,CAAC;AAAA,IAGV,eAAeG;AAAA,EACnB;AACA;","x_google_ignoreList":[0]}
package/dist/index364.js CHANGED
@@ -1,15 +1,9 @@
1
- function t(r) {
2
- if (r == null)
3
- return "";
4
- if (typeof r == "string")
5
- return r;
6
- try {
7
- return JSON.stringify(r);
8
- } catch {
9
- return String(r);
10
- }
1
+ import * as o from "react";
2
+ const e = [];
3
+ function n(t) {
4
+ o.useEffect(t, e);
11
5
  }
12
6
  export {
13
- t as serializeValue
7
+ n as useOnMount
14
8
  };
15
9
  //# sourceMappingURL=index364.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index364.js","sources":["../../../node_modules/@base-ui/react/esm/internals/serializeValue.js"],"sourcesContent":["export function serializeValue(value) {\n if (value == null) {\n return '';\n }\n if (typeof value === 'string') {\n return value;\n }\n try {\n return JSON.stringify(value);\n } catch {\n return String(value);\n }\n}"],"names":["serializeValue","value"],"mappings":"AAAO,SAASA,EAAeC,GAAO;AACpC,MAAIA,KAAS;AACX,WAAO;AAET,MAAI,OAAOA,KAAU;AACnB,WAAOA;AAET,MAAI;AACF,WAAO,KAAK,UAAUA,CAAK;AAAA,EAC7B,QAAQ;AACN,WAAO,OAAOA,CAAK;AAAA,EACrB;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index364.js","sources":["../../../node_modules/@base-ui/utils/esm/useOnMount.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport function useOnMount(fn) {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- no need to put `fn` in the dependency array\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}"],"names":["EMPTY","useOnMount","fn","React"],"mappings":";AAGA,MAAMA,IAAQ,CAAA;AAKP,SAASC,EAAWC,GAAI;AAG7B,EAAAC,EAAM,UAAUD,GAAIF,CAAK;AAE3B;","x_google_ignoreList":[0]}
package/dist/index365.js CHANGED
@@ -1,20 +1,7 @@
1
- import * as e from "react";
2
- function t(i) {
3
- const o = e.useRef(""), n = e.useCallback((r) => {
4
- r.defaultPrevented || (o.current = r.pointerType, i(r, r.pointerType));
5
- }, [i]);
6
- return {
7
- onClick: e.useCallback((r) => {
8
- if (r.detail === 0) {
9
- i(r, "keyboard");
10
- return;
11
- }
12
- "pointerType" in r ? i(r, r.pointerType) : i(r, o.current), o.current = "";
13
- }, [i]),
14
- onPointerDown: n
15
- };
16
- }
1
+ let a = /* @__PURE__ */ (function(d) {
2
+ return d.disabled = "data-disabled", d.valid = "data-valid", d.invalid = "data-invalid", d.touched = "data-touched", d.dirty = "data-dirty", d.filled = "data-filled", d.focused = "data-focused", d;
3
+ })({});
17
4
  export {
18
- t as useEnhancedClickHandler
5
+ a as FieldControlDataAttributes
19
6
  };
20
7
  //# sourceMappingURL=index365.js.map