@rpcbase/ui 0.249.0 → 0.250.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 (123) hide show
  1. package/dist/index120.js +10 -10
  2. package/dist/index122.js +2 -2
  3. package/dist/index123.js +3 -3
  4. package/dist/index176.js +4 -4
  5. package/dist/index178.js +1 -1
  6. package/dist/index182.js +1 -1
  7. package/dist/index184.js +1 -1
  8. package/dist/index186.js +1 -1
  9. package/dist/index188.js +1 -1
  10. package/dist/index189.js +2 -2
  11. package/dist/index192.js +2 -2
  12. package/dist/index200.js +1 -1
  13. package/dist/index202.js +1 -1
  14. package/dist/index210.js +1 -1
  15. package/dist/index217.js +1 -1
  16. package/dist/index218.js +2 -2
  17. package/dist/index253.js +1 -1
  18. package/dist/index296.js +14 -27
  19. package/dist/index296.js.map +1 -1
  20. package/dist/index297.js +7 -12
  21. package/dist/index297.js.map +1 -1
  22. package/dist/index298.js +9 -24
  23. package/dist/index298.js.map +1 -1
  24. package/dist/index299.js +10 -5
  25. package/dist/index299.js.map +1 -1
  26. package/dist/index300.js +20 -15
  27. package/dist/index300.js.map +1 -1
  28. package/dist/index301.js +8 -7
  29. package/dist/index301.js.map +1 -1
  30. package/dist/index302.js +9 -10
  31. package/dist/index302.js.map +1 -1
  32. package/dist/index303.js +9 -10
  33. package/dist/index303.js.map +1 -1
  34. package/dist/index304.js +4 -21
  35. package/dist/index304.js.map +1 -1
  36. package/dist/index305.js +5 -8
  37. package/dist/index305.js.map +1 -1
  38. package/dist/index306.js +16 -9
  39. package/dist/index306.js.map +1 -1
  40. package/dist/index307.js +8 -8
  41. package/dist/index307.js.map +1 -1
  42. package/dist/index308.js +18 -4
  43. package/dist/index308.js.map +1 -1
  44. package/dist/index309.js +20 -5
  45. package/dist/index309.js.map +1 -1
  46. package/dist/index310.js +12 -16
  47. package/dist/index310.js.map +1 -1
  48. package/dist/index311.js +29 -9
  49. package/dist/index311.js.map +1 -1
  50. package/dist/index312.js +12 -18
  51. package/dist/index312.js.map +1 -1
  52. package/dist/index313.js +25 -20
  53. package/dist/index313.js.map +1 -1
  54. package/dist/index314.js +5 -12
  55. package/dist/index314.js.map +1 -1
  56. package/dist/index322.js +1 -1
  57. package/dist/index332.js +1 -1
  58. package/dist/index333.js +1 -1
  59. package/dist/index336.js +8 -7
  60. package/dist/index336.js.map +1 -1
  61. package/dist/index337.js +7 -8
  62. package/dist/index337.js.map +1 -1
  63. package/dist/index341.js +1 -1
  64. package/dist/index347.js +51 -17
  65. package/dist/index347.js.map +1 -1
  66. package/dist/index348.js +5 -51
  67. package/dist/index348.js.map +1 -1
  68. package/dist/index349.js +61 -5
  69. package/dist/index349.js.map +1 -1
  70. package/dist/index350.js +65 -60
  71. package/dist/index350.js.map +1 -1
  72. package/dist/index351.js +16 -65
  73. package/dist/index351.js.map +1 -1
  74. package/dist/index352.js +7 -143
  75. package/dist/index352.js.map +1 -1
  76. package/dist/index353.js +4 -79
  77. package/dist/index353.js.map +1 -1
  78. package/dist/index354.js +11 -61
  79. package/dist/index354.js.map +1 -1
  80. package/dist/index355.js +22 -15
  81. package/dist/index355.js.map +1 -1
  82. package/dist/index356.js +16 -8
  83. package/dist/index356.js.map +1 -1
  84. package/dist/index357.js +8 -5
  85. package/dist/index357.js.map +1 -1
  86. package/dist/index358.js +144 -11
  87. package/dist/index358.js.map +1 -1
  88. package/dist/index359.js +77 -19
  89. package/dist/index359.js.map +1 -1
  90. package/dist/index360.js +61 -16
  91. package/dist/index360.js.map +1 -1
  92. package/dist/index361.js +15 -8
  93. package/dist/index361.js.map +1 -1
  94. package/dist/index372.js +1 -1
  95. package/dist/index388.js +2 -2
  96. package/dist/index391.js +1 -1
  97. package/dist/index411.js +1 -1
  98. package/dist/index416.js +1 -1
  99. package/dist/index417.js +1 -1
  100. package/dist/index420.js +1 -1
  101. package/dist/index421.js +1 -1
  102. package/dist/index430.js +2 -2
  103. package/dist/index432.js +2 -2
  104. package/dist/index44.js +1 -1
  105. package/dist/index45.js +2 -2
  106. package/dist/index66.js +1 -1
  107. package/dist/index67.js +1 -1
  108. package/dist/index70.js +1 -1
  109. package/dist/index71.js +1 -1
  110. package/dist/index72.js +2 -6
  111. package/dist/index72.js.map +1 -1
  112. package/dist/index73.js +2 -8
  113. package/dist/index73.js.map +1 -1
  114. package/dist/index74.js +2 -6
  115. package/dist/index74.js.map +1 -1
  116. package/dist/index75.js +2 -2
  117. package/dist/index76.js +6 -2
  118. package/dist/index76.js.map +1 -1
  119. package/dist/index77.js +8 -2
  120. package/dist/index77.js.map +1 -1
  121. package/dist/index78.js +6 -2
  122. package/dist/index78.js.map +1 -1
  123. package/package.json +1 -1
package/dist/index360.js CHANGED
@@ -1,20 +1,65 @@
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
- };
1
+ class n {
2
+ constructor() {
3
+ this.elementsSet = /* @__PURE__ */ new Set(), this.idMap = /* @__PURE__ */ new Map();
4
+ }
5
+ /**
6
+ * Adds a trigger element with the given ID.
7
+ *
8
+ * Note: The provided element is assumed to not be registered under multiple IDs.
9
+ */
10
+ add(e, t) {
11
+ const s = this.idMap.get(e);
12
+ if (s !== t && (s !== void 0 && this.elementsSet.delete(s), this.elementsSet.add(t), this.idMap.set(e, t), process.env.NODE_ENV !== "production" && this.elementsSet.size !== this.idMap.size))
13
+ throw new Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.");
14
+ }
15
+ /**
16
+ * Removes the trigger element with the given ID.
17
+ */
18
+ delete(e) {
19
+ const t = this.idMap.get(e);
20
+ t && (this.elementsSet.delete(t), this.idMap.delete(e));
21
+ }
22
+ /**
23
+ * Whether the given element is registered as a trigger.
24
+ */
25
+ hasElement(e) {
26
+ return this.elementsSet.has(e);
27
+ }
28
+ /**
29
+ * Whether there is a registered trigger element matching the given predicate.
30
+ */
31
+ hasMatchingElement(e) {
32
+ for (const t of this.elementsSet)
33
+ if (e(t))
34
+ return !0;
35
+ return !1;
36
+ }
37
+ /**
38
+ * Returns the trigger element associated with the given ID, or undefined if no such element exists.
39
+ */
40
+ getById(e) {
41
+ return this.idMap.get(e);
42
+ }
43
+ /**
44
+ * Returns an iterable of all registered trigger entries, where each entry is a tuple of [id, element].
45
+ */
46
+ entries() {
47
+ return this.idMap.entries();
48
+ }
49
+ /**
50
+ * Returns an iterable of all registered trigger elements.
51
+ */
52
+ elements() {
53
+ return this.elementsSet.values();
54
+ }
55
+ /**
56
+ * Returns the number of registered trigger elements.
57
+ */
58
+ get size() {
59
+ return this.idMap.size;
60
+ }
16
61
  }
17
62
  export {
18
- t as useEnhancedClickHandler
63
+ n as PopupTriggerMap
19
64
  };
20
65
  //# sourceMappingURL=index360.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index360.js","sources":["../../../node_modules/@base-ui/utils/useEnhancedClickHandler.mjs"],"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]}
1
+ {"version":3,"file":"index360.js","sources":["../../../node_modules/@base-ui/react/utils/popups/popupTriggerMap.mjs"],"sourcesContent":["/**\n * Data structure to keep track of popup trigger elements by their IDs.\n * Uses both a set of Elements and a map of IDs to Elements for efficient lookups.\n */\nexport class PopupTriggerMap {\n constructor() {\n this.elementsSet = new Set();\n this.idMap = new Map();\n }\n\n /**\n * Adds a trigger element with the given ID.\n *\n * Note: The provided element is assumed to not be registered under multiple IDs.\n */\n add(id, element) {\n const existingElement = this.idMap.get(id);\n if (existingElement === element) {\n return;\n }\n if (existingElement !== undefined) {\n // We assume that the same element won't be registered under multiple ids.\n // This is safe considering how useTriggerRegistration is implemented.\n this.elementsSet.delete(existingElement);\n }\n this.elementsSet.add(element);\n this.idMap.set(id, element);\n if (process.env.NODE_ENV !== 'production') {\n if (this.elementsSet.size !== this.idMap.size) {\n // TODO: fix mui/no-guarded-throw\n // eslint-disable-next-line mui/no-guarded-throw\n throw new Error('Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.');\n }\n }\n }\n\n /**\n * Removes the trigger element with the given ID.\n */\n delete(id) {\n const element = this.idMap.get(id);\n if (element) {\n this.elementsSet.delete(element);\n this.idMap.delete(id);\n }\n }\n\n /**\n * Whether the given element is registered as a trigger.\n */\n hasElement(element) {\n return this.elementsSet.has(element);\n }\n\n /**\n * Whether there is a registered trigger element matching the given predicate.\n */\n hasMatchingElement(predicate) {\n for (const element of this.elementsSet) {\n if (predicate(element)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Returns the trigger element associated with the given ID, or undefined if no such element exists.\n */\n getById(id) {\n return this.idMap.get(id);\n }\n\n /**\n * Returns an iterable of all registered trigger entries, where each entry is a tuple of [id, element].\n */\n entries() {\n return this.idMap.entries();\n }\n\n /**\n * Returns an iterable of all registered trigger elements.\n */\n elements() {\n return this.elementsSet.values();\n }\n\n /**\n * Returns the number of registered trigger elements.\n */\n get size() {\n return this.idMap.size;\n }\n}"],"names":["PopupTriggerMap","id","element","existingElement","predicate"],"mappings":"AAIO,MAAMA,EAAgB;AAAA,EAC3B,cAAc;AACZ,SAAK,cAAc,oBAAI,IAAG,GAC1B,KAAK,QAAQ,oBAAI,IAAG;AAAA,EACtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,IAAIC,GAAIC,GAAS;AACf,UAAMC,IAAkB,KAAK,MAAM,IAAIF,CAAE;AACzC,QAAIE,MAAoBD,MAGpBC,MAAoB,UAGtB,KAAK,YAAY,OAAOA,CAAe,GAEzC,KAAK,YAAY,IAAID,CAAO,GAC5B,KAAK,MAAM,IAAID,GAAIC,CAAO,GACtB,QAAQ,IAAI,aAAa,gBACvB,KAAK,YAAY,SAAS,KAAK,MAAM;AAGvC,YAAM,IAAI,MAAM,wFAAwF;AAAA,EAG9G;AAAA;AAAA;AAAA;AAAA,EAKA,OAAOD,GAAI;AACT,UAAMC,IAAU,KAAK,MAAM,IAAID,CAAE;AACjC,IAAIC,MACF,KAAK,YAAY,OAAOA,CAAO,GAC/B,KAAK,MAAM,OAAOD,CAAE;AAAA,EAExB;AAAA;AAAA;AAAA;AAAA,EAKA,WAAWC,GAAS;AAClB,WAAO,KAAK,YAAY,IAAIA,CAAO;AAAA,EACrC;AAAA;AAAA;AAAA;AAAA,EAKA,mBAAmBE,GAAW;AAC5B,eAAWF,KAAW,KAAK;AACzB,UAAIE,EAAUF,CAAO;AACnB,eAAO;AAGX,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,QAAQD,GAAI;AACV,WAAO,KAAK,MAAM,IAAIA,CAAE;AAAA,EAC1B;AAAA;AAAA;AAAA;AAAA,EAKA,UAAU;AACR,WAAO,KAAK,MAAM,QAAO;AAAA,EAC3B;AAAA;AAAA;AAAA;AAAA,EAKA,WAAW;AACT,WAAO,KAAK,YAAY,OAAM;AAAA,EAChC;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,OAAO;AACT,WAAO,KAAK,MAAM;AAAA,EACpB;AACF;","x_google_ignoreList":[0]}
package/dist/index361.js CHANGED
@@ -1,11 +1,18 @@
1
- import { lowerPlatform as t, lowerUserAgent as n, maxTouchPoints as i } from "./index422.js";
2
- const s = /^i(os$|p)/.test(t) || t === "macintel" && i > 1, o = "android", c = t === o || n.includes(o), r = !s && t.startsWith("mac");
3
- t.startsWith("win");
4
- const e = r || s;
1
+ import t from "./index190.js";
2
+ const p = (r, s, n, c, f, i, ...o) => {
3
+ if (o.length > 0)
4
+ throw new Error(process.env.NODE_ENV !== "production" ? "Unsupported number of selectors" : t(1));
5
+ let e;
6
+ if (r)
7
+ e = r;
8
+ else
9
+ throw (
10
+ /* minify-error-disabled */
11
+ new Error("Missing arguments")
12
+ );
13
+ return e;
14
+ };
5
15
  export {
6
- c as android,
7
- e as apple,
8
- s as ios,
9
- r as mac
16
+ p as createSelector
10
17
  };
11
18
  //# sourceMappingURL=index361.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index361.js","sources":["../../../node_modules/@base-ui/utils/platform/os.mjs"],"sourcesContent":["import { lowerUserAgent, lowerPlatform, maxTouchPoints } from \"./shared.mjs\";\n\n// iPadOS 13+ reports `MacIntel` for `navigator.platform`; disambiguated via\n// `maxTouchPoints` so iPad is classified as iOS, not macOS.\n// https://github.com/mui/base-ui/issues/1309\n/** iPhone, iPad (including iPadOS 13+ reporting as macOS), iPod. */\nexport const ios = /^i(os$|p)/.test(lowerPlatform) || lowerPlatform === 'macintel' && maxTouchPoints > 1;\n\n/** Android phones, tablets, and embedded Android browsers. */\nconst ANDROID_STRING = 'android';\nexport const android = lowerPlatform === ANDROID_STRING || lowerUserAgent.includes(ANDROID_STRING);\n\n/** macOS desktop. Excludes iPadOS, which reports as `MacIntel`. */\nexport const mac = !ios && lowerPlatform.startsWith('mac');\n\n/** Windows desktop. */\nexport const windows = lowerPlatform.startsWith('win');\n\n/** Linux desktop (including Chrome OS). */\nexport const linux = !android && /^(linux|chrome os)/.test(lowerPlatform);\n\n/** Any Apple OS (`mac || ios`). */\nexport const apple = mac || ios;"],"names":["ios","lowerPlatform","maxTouchPoints","ANDROID_STRING","android","lowerUserAgent","mac","apple"],"mappings":";AAMY,MAACA,IAAM,YAAY,KAAKC,CAAa,KAAKA,MAAkB,cAAcC,IAAiB,GAGjGC,IAAiB,WACVC,IAAUH,MAAkBE,KAAkBE,EAAe,SAASF,CAAc,GAGpFG,IAAM,CAACN,KAAOC,EAAc,WAAW,KAAK;AAGlCA,EAAc,WAAW,KAAK;AAMzC,MAACM,IAAQD,KAAON;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index361.js","sources":["../../../node_modules/@base-ui/utils/store/createSelector.mjs"],"sourcesContent":["import _formatErrorMessage from \"../formatErrorMessage.mjs\";\n/**\n * The NoOptionalParams type is a utility type that checks if a function has optional or default parameters.\n * If the function has optional or default parameters, it returns a string literal type with an error message.\n * Otherwise, it returns the original function type.\n *\n * This is used to enforce that the combiner function passed to createSelector does not have optional or default parameters,\n * as memoization relies on the Function.length property, which does not account for optional or default parameters.\n */\n\n/**\n * Creates a selector function that can be used to derive values from the store's state.\n *\n * The combiner function can have up to three additional parameters, but it **cannot have optional or default parameters**.\n *\n * This function accepts up to six functions and combines them into a single selector function.\n * The resulting selector will take the state from the combined selectors and any additional parameters required by the combiner.\n *\n * The return type of the resulting selector is determined by the return type of the combiner function.\n *\n * @example\n * const selector = createSelector(\n * (state) => state.disabled\n * );\n *\n * @example\n * const selector = createSelector(\n * (state) => state.disabled,\n * (state) => state.open,\n * (disabled, open) => ({ disabled, open })\n * );\n */\n/* eslint-disable id-denylist */\nexport const createSelector = (a, b, c, d, e, f, ...other) => {\n if (other.length > 0) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Unsupported number of selectors' : _formatErrorMessage(1));\n }\n let selector;\n if (a && b && c && d && e && f) {\n selector = (state, a1, a2, a3) => {\n const va = a(state, a1, a2, a3);\n const vb = b(state, a1, a2, a3);\n const vc = c(state, a1, a2, a3);\n const vd = d(state, a1, a2, a3);\n const ve = e(state, a1, a2, a3);\n return f(va, vb, vc, vd, ve, a1, a2, a3);\n };\n } else if (a && b && c && d && e) {\n selector = (state, a1, a2, a3) => {\n const va = a(state, a1, a2, a3);\n const vb = b(state, a1, a2, a3);\n const vc = c(state, a1, a2, a3);\n const vd = d(state, a1, a2, a3);\n return e(va, vb, vc, vd, a1, a2, a3);\n };\n } else if (a && b && c && d) {\n selector = (state, a1, a2, a3) => {\n const va = a(state, a1, a2, a3);\n const vb = b(state, a1, a2, a3);\n const vc = c(state, a1, a2, a3);\n return d(va, vb, vc, a1, a2, a3);\n };\n } else if (a && b && c) {\n selector = (state, a1, a2, a3) => {\n const va = a(state, a1, a2, a3);\n const vb = b(state, a1, a2, a3);\n return c(va, vb, a1, a2, a3);\n };\n } else if (a && b) {\n selector = (state, a1, a2, a3) => {\n const va = a(state, a1, a2, a3);\n return b(va, a1, a2, a3);\n };\n } else if (a) {\n selector = a;\n } else {\n throw /* minify-error-disabled */new Error('Missing arguments');\n }\n return selector;\n};\n/* eslint-enable id-denylist */"],"names":["createSelector","a","b","c","d","e","f","other","_formatErrorMessage","selector"],"mappings":";AAiCY,MAACA,IAAiB,CAACC,GAAGC,GAAGC,GAAGC,GAAGC,GAAGC,MAAMC,MAAU;AAC5D,MAAIA,EAAM,SAAS;AACjB,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,oCAAoCC,EAAoB,CAAC,CAAC;AAEpH,MAAIC;AAoCG,MAAIR;AACT,IAAAQ,IAAWR;AAAA;AAEX;AAAA;AAAA,MAAiC,IAAI,MAAM,mBAAmB;AAAA;AAEhE,SAAOQ;AACT;","x_google_ignoreList":[0]}
package/dist/index372.js CHANGED
@@ -5,7 +5,7 @@ import { useIsoLayoutEffect as E } from "./index201.js";
5
5
  import { Timeout as k } from "./index225.js";
6
6
  import { AnimationFrame as H } from "./index241.js";
7
7
  import { NOOP as z } from "./index204.js";
8
- import { ios as j } from "./index361.js";
8
+ import { ios as j } from "./index357.js";
9
9
  import { webkit as F } from "./index250.js";
10
10
  let Y = {}, C = {}, L = "";
11
11
  function R(s) {
package/dist/index388.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createEventEmitter as a } from "./index412.js";
2
- import { ReactStore as m } from "./index352.js";
2
+ import { ReactStore as m } from "./index358.js";
3
3
  import { isClickLikeEvent as f } from "./index253.js";
4
- import { createSelector as o } from "./index355.js";
4
+ import { createSelector as o } from "./index361.js";
5
5
  const l = {
6
6
  open: o((t) => t.open),
7
7
  transitionStatus: o((t) => t.transitionStatus),
package/dist/index391.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { FloatingRootStore as e } from "./index388.js";
2
- import { PopupTriggerMap as n } from "./index354.js";
2
+ import { PopupTriggerMap as n } from "./index360.js";
3
3
  function r() {
4
4
  return new e({
5
5
  open: !1,
package/dist/index411.js CHANGED
@@ -1,4 +1,4 @@
1
- import { apple as o } from "./index361.js";
1
+ import { apple as o } from "./index357.js";
2
2
  const p = o;
3
3
  export {
4
4
  p as voiceOver
package/dist/index416.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as i } from "./index432.js";
1
+ import { __exports as i } from "./index430.js";
2
2
  import h from "react";
3
3
  var f;
4
4
  function x() {
package/dist/index417.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as s } from "./index433.js";
1
+ import { __exports as s } from "./index431.js";
2
2
  import h from "react";
3
3
  var l;
4
4
  function A() {
package/dist/index420.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as d } from "./index430.js";
1
+ import { __exports as d } from "./index432.js";
2
2
  import q from "react";
3
3
  import { __require as w } from "./index414.js";
4
4
  var V;
package/dist/index421.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as d } from "./index431.js";
1
+ import { __exports as d } from "./index433.js";
2
2
  import M from "react";
3
3
  import { __require as b } from "./index414.js";
4
4
  var s;
package/dist/index430.js CHANGED
@@ -1,5 +1,5 @@
1
- var o = {};
1
+ var r = {};
2
2
  export {
3
- o as __exports
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index430.js.map
package/dist/index432.js CHANGED
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var o = {};
2
2
  export {
3
- r as __exports
3
+ o as __exports
4
4
  };
5
5
  //# sourceMappingURL=index432.js.map
package/dist/index44.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getCountryList as E } from "./index72.js";
1
+ import { getCountryList as E } from "./index76.js";
2
2
  import { getCountryCallingCode as s } from "./index48.js";
3
3
  const f = "US", u = E(), c = /* @__PURE__ */ new Map(), m = "__default_locale__", _ = Array.from(new Set(u.map((e) => s(e)))).sort((e, t) => t.length - e.length);
4
4
  _.reduce((e, t) => Math.max(e, t.length), 0);
package/dist/index45.js CHANGED
@@ -1,5 +1,5 @@
1
- import { AsYouType as u } from "./index73.js";
2
- import { validatePhoneNumberLength as a } from "./index74.js";
1
+ import { AsYouType as u } from "./index77.js";
2
+ import { validatePhoneNumberLength as a } from "./index78.js";
3
3
  function l(t) {
4
4
  return t.replace(/\D/g, "");
5
5
  }
package/dist/index66.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as e } from "./index75.js";
1
+ import { __exports as e } from "./index72.js";
2
2
  import o from "react";
3
3
  var r;
4
4
  function n() {
package/dist/index67.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as e } from "./index76.js";
1
+ import { __exports as e } from "./index73.js";
2
2
  import a from "react";
3
3
  var n;
4
4
  function l() {
package/dist/index70.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as e } from "./index77.js";
1
+ import { __exports as e } from "./index74.js";
2
2
  var s;
3
3
  function a() {
4
4
  if (s) return e;
package/dist/index71.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as s } from "./index78.js";
1
+ import { __exports as s } from "./index75.js";
2
2
  import J from "react";
3
3
  var j;
4
4
  function Z() {
package/dist/index72.js CHANGED
@@ -1,9 +1,5 @@
1
- import { getCountries as E } from "./index161.js";
2
- const n = ["IM", "GG", "JE"], o = new Set(n), e = E().filter((t) => !o.has(t));
3
- function s() {
4
- return e;
5
- }
1
+ var r = {};
6
2
  export {
7
- s as getCountryList
3
+ r as __exports
8
4
  };
9
5
  //# sourceMappingURL=index72.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index72.js","sources":["../src/components/PhoneNumberInput/countries.ts"],"sourcesContent":["import { getCountries } from \"libphonenumber-js\"\nimport type { CountryCode } from \"libphonenumber-js\"\n\n\nconst EXCLUDED_COUNTRIES: CountryCode[] = [\"IM\", \"GG\", \"JE\"]\nconst EXCLUDED_SET = new Set(EXCLUDED_COUNTRIES)\n\nconst FILTERED_COUNTRIES = getCountries().filter((code) => !EXCLUDED_SET.has(code))\n\nexport function getCountryList(): CountryCode[] {\n return FILTERED_COUNTRIES\n}\n"],"names":["EXCLUDED_COUNTRIES","EXCLUDED_SET","Set","FILTERED_COUNTRIES","getCountries","filter","code","has","getCountryList"],"mappings":";AAIA,MAAMA,IAAoC,CAAC,MAAM,MAAM,IAAI,GACrDC,IAAe,IAAIC,IAAIF,CAAkB,GAEzCG,IAAqBC,IAAeC,OAAQC,OAAS,CAACL,EAAaM,IAAID,CAAI,CAAC;AAE3E,SAASE,IAAgC;AAC9C,SAAOL;AACT;"}
1
+ {"version":3,"file":"index72.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index73.js CHANGED
@@ -1,11 +1,5 @@
1
- import e from "./index151.js";
2
- import o from "./index152.js";
3
- function t(r) {
4
- return o.call(this, r, e);
5
- }
6
- t.prototype = Object.create(o.prototype, {});
7
- t.prototype.constructor = t;
1
+ var e = {};
8
2
  export {
9
- t as AsYouType
3
+ e as __exports
10
4
  };
11
5
  //# sourceMappingURL=index73.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index73.js","sources":["../../../node_modules/libphonenumber-js/min/exports/AsYouType.js"],"sourcesContent":["// Importing from a \".js\" file is a workaround for Node.js \"ES Modules\"\r\n// importing system which is even uncapable of importing \"*.json\" files.\r\nimport metadata from '../../metadata.min.json.js'\r\n\r\nimport { AsYouType as _AsYouType } from '../../core/index.js'\r\n\r\nexport function AsYouType(country) {\r\n\treturn _AsYouType.call(this, country, metadata)\r\n}\r\n\r\nAsYouType.prototype = Object.create(_AsYouType.prototype, {})\r\nAsYouType.prototype.constructor = AsYouType"],"names":["AsYouType","country","_AsYouType","metadata"],"mappings":";;AAMO,SAASA,EAAUC,GAAS;AAClC,SAAOC,EAAW,KAAK,MAAMD,GAASE,CAAQ;AAC/C;AAEAH,EAAU,YAAY,OAAO,OAAOE,EAAW,WAAW,CAAA,CAAE;AAC5DF,EAAU,UAAU,cAAcA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index73.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index74.js CHANGED
@@ -1,9 +1,5 @@
1
- import t from "./index149.js";
2
- import e from "./index150.js";
3
- function a() {
4
- return t(e, arguments);
5
- }
1
+ var r = {};
6
2
  export {
7
- a as validatePhoneNumberLength
3
+ r as __exports
8
4
  };
9
5
  //# sourceMappingURL=index74.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index74.js","sources":["../../../node_modules/libphonenumber-js/min/exports/validatePhoneNumberLength.js"],"sourcesContent":["import withMetadataArgument from './withMetadataArgument.js'\r\nimport { validatePhoneNumberLength as _validatePhoneNumberLength } from '../../core/index.js'\r\n\r\nexport function validatePhoneNumberLength() {\r\n\treturn withMetadataArgument(_validatePhoneNumberLength, arguments)\r\n}"],"names":["validatePhoneNumberLength","withMetadataArgument","_validatePhoneNumberLength"],"mappings":";;AAGO,SAASA,IAA4B;AAC3C,SAAOC,EAAqBC,GAA4B,SAAS;AAClE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index74.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index75.js CHANGED
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var e = {};
2
2
  export {
3
- r as __exports
3
+ e as __exports
4
4
  };
5
5
  //# sourceMappingURL=index75.js.map
package/dist/index76.js CHANGED
@@ -1,5 +1,9 @@
1
- var e = {};
1
+ import { getCountries as E } from "./index161.js";
2
+ const n = ["IM", "GG", "JE"], o = new Set(n), e = E().filter((t) => !o.has(t));
3
+ function s() {
4
+ return e;
5
+ }
2
6
  export {
3
- e as __exports
7
+ s as getCountryList
4
8
  };
5
9
  //# sourceMappingURL=index76.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index76.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index76.js","sources":["../src/components/PhoneNumberInput/countries.ts"],"sourcesContent":["import { getCountries } from \"libphonenumber-js\"\nimport type { CountryCode } from \"libphonenumber-js\"\n\n\nconst EXCLUDED_COUNTRIES: CountryCode[] = [\"IM\", \"GG\", \"JE\"]\nconst EXCLUDED_SET = new Set(EXCLUDED_COUNTRIES)\n\nconst FILTERED_COUNTRIES = getCountries().filter((code) => !EXCLUDED_SET.has(code))\n\nexport function getCountryList(): CountryCode[] {\n return FILTERED_COUNTRIES\n}\n"],"names":["EXCLUDED_COUNTRIES","EXCLUDED_SET","Set","FILTERED_COUNTRIES","getCountries","filter","code","has","getCountryList"],"mappings":";AAIA,MAAMA,IAAoC,CAAC,MAAM,MAAM,IAAI,GACrDC,IAAe,IAAIC,IAAIF,CAAkB,GAEzCG,IAAqBC,IAAeC,OAAQC,OAAS,CAACL,EAAaM,IAAID,CAAI,CAAC;AAE3E,SAASE,IAAgC;AAC9C,SAAOL;AACT;"}
package/dist/index77.js CHANGED
@@ -1,5 +1,11 @@
1
- var r = {};
1
+ import e from "./index151.js";
2
+ import o from "./index152.js";
3
+ function t(r) {
4
+ return o.call(this, r, e);
5
+ }
6
+ t.prototype = Object.create(o.prototype, {});
7
+ t.prototype.constructor = t;
2
8
  export {
3
- r as __exports
9
+ t as AsYouType
4
10
  };
5
11
  //# sourceMappingURL=index77.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index77.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index77.js","sources":["../../../node_modules/libphonenumber-js/min/exports/AsYouType.js"],"sourcesContent":["// Importing from a \".js\" file is a workaround for Node.js \"ES Modules\"\r\n// importing system which is even uncapable of importing \"*.json\" files.\r\nimport metadata from '../../metadata.min.json.js'\r\n\r\nimport { AsYouType as _AsYouType } from '../../core/index.js'\r\n\r\nexport function AsYouType(country) {\r\n\treturn _AsYouType.call(this, country, metadata)\r\n}\r\n\r\nAsYouType.prototype = Object.create(_AsYouType.prototype, {})\r\nAsYouType.prototype.constructor = AsYouType"],"names":["AsYouType","country","_AsYouType","metadata"],"mappings":";;AAMO,SAASA,EAAUC,GAAS;AAClC,SAAOC,EAAW,KAAK,MAAMD,GAASE,CAAQ;AAC/C;AAEAH,EAAU,YAAY,OAAO,OAAOE,EAAW,WAAW,CAAA,CAAE;AAC5DF,EAAU,UAAU,cAAcA;","x_google_ignoreList":[0]}
package/dist/index78.js CHANGED
@@ -1,5 +1,9 @@
1
- var e = {};
1
+ import t from "./index149.js";
2
+ import e from "./index150.js";
3
+ function a() {
4
+ return t(e, arguments);
5
+ }
2
6
  export {
3
- e as __exports
7
+ a as validatePhoneNumberLength
4
8
  };
5
9
  //# sourceMappingURL=index78.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index78.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index78.js","sources":["../../../node_modules/libphonenumber-js/min/exports/validatePhoneNumberLength.js"],"sourcesContent":["import withMetadataArgument from './withMetadataArgument.js'\r\nimport { validatePhoneNumberLength as _validatePhoneNumberLength } from '../../core/index.js'\r\n\r\nexport function validatePhoneNumberLength() {\r\n\treturn withMetadataArgument(_validatePhoneNumberLength, arguments)\r\n}"],"names":["validatePhoneNumberLength","withMetadataArgument","_validatePhoneNumberLength"],"mappings":";;AAGO,SAASA,IAA4B;AAC3C,SAAOC,EAAqBC,GAA4B,SAAS;AAClE;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/ui",
3
- "version": "0.249.0",
3
+ "version": "0.250.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "type": "module",
6
6
  "sideEffects": [