everest-npm-features 0.0.61 → 0.0.62

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 (229) hide show
  1. package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
  2. package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
  3. package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
  4. package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
  5. package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
  6. package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
  7. package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
  8. package/dist/{PlayArrow-Bjz9LxhD.js → PlayArrow-BVDyfxsQ.js} +1 -1
  9. package/dist/Portal-BeS9yJCZ.js +968 -0
  10. package/dist/{auth-Cwq6nfwY.js → auth-DTJdu6mq.js} +10 -10
  11. package/dist/components/RocketRamp/MinimalKyc/form.js +45 -50
  12. package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
  13. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +4 -6
  14. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -6
  15. package/dist/components/RocketRamp/Player/Buy/form.js +6 -15
  16. package/dist/components/RocketRamp/Player/Buy/index.js +3 -3
  17. package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
  18. package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
  19. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
  20. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +4 -9
  21. package/dist/components/RocketRamp/Player/Sell/form.js +6 -15
  22. package/dist/components/RocketRamp/Player/Sell/index.js +11 -10
  23. package/dist/components/RocketRamp/Player/SignIn/index.js +22 -24
  24. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +32 -34
  25. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +30 -32
  26. package/dist/components/RocketRamp/Player/SignUp/email.js +20 -22
  27. package/dist/components/RocketRamp/Player/SignUp/index.js +48 -51
  28. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +67 -73
  29. package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
  30. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
  31. package/dist/components/RocketRamp/ResetPassword/index.js +22 -24
  32. package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
  33. package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
  34. package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
  35. package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
  36. package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
  37. package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
  38. package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
  39. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
  40. package/dist/components/RocketRamp/Store/SignUp/index.js +52 -55
  41. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +47 -53
  42. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +32 -36
  43. package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
  44. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
  45. package/dist/components/RocketRamp/Transactions/index.js +22 -23
  46. package/dist/components/Shared/FullKyc/countryList.js +15 -17
  47. package/dist/components/Shared/FullKyc/edd.js +50 -52
  48. package/dist/components/Shared/FullKyc/index.js +11 -9
  49. package/dist/components/Shared/FullKyc/pep.js +35 -43
  50. package/dist/components/Shared/FullKyc/personalDetails.js +5 -5
  51. package/dist/components/Shared/FullKyc/userInfo.js +6 -11
  52. package/dist/components/Shared/HistoryItem/index.js +43 -48
  53. package/dist/components/Shared/Incode/index.js +31 -35
  54. package/dist/components/Shared/MinimalKyc/index.js +59 -64
  55. package/dist/components/Shared/Sumsub/index.js +74 -61
  56. package/dist/components/Shared/loader.js +4 -5
  57. package/dist/components/Shared/tooltip.js +2 -2
  58. package/dist/components/Shared/transition.js +4 -4
  59. package/dist/components/Wallet/Account/createIban.js +34 -37
  60. package/dist/components/Wallet/Account/eWallet.js +35 -39
  61. package/dist/components/Wallet/Account/iban.js +49 -53
  62. package/dist/components/Wallet/Account/ibanItem.js +68 -73
  63. package/dist/components/Wallet/Account/index.js +66 -73
  64. package/dist/components/Wallet/Account/sendIban.js +79 -88
  65. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -8
  66. package/dist/components/Wallet/Buy/form.js +6 -16
  67. package/dist/components/Wallet/Buy/index.js +2 -2
  68. package/dist/components/Wallet/Deposit/index.js +15 -17
  69. package/dist/components/Wallet/EnterpriseKyc/edd.js +31 -32
  70. package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
  71. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
  72. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
  73. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  74. package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
  75. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +32 -33
  76. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3590 -1481
  77. package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
  78. package/dist/components/Wallet/EnterpriseKyc/verify.js +21 -21
  79. package/dist/components/Wallet/History/index.js +22 -796
  80. package/dist/components/Wallet/Home/index.js +13 -14
  81. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +91 -96
  82. package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
  83. package/dist/components/Wallet/Portfolio/index.js +47 -50
  84. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
  85. package/dist/components/Wallet/Profile/documents.js +125 -134
  86. package/dist/components/Wallet/Profile/index.js +37 -42
  87. package/dist/components/Wallet/Profile/storage.js +39 -47
  88. package/dist/components/Wallet/Receive/index.js +31 -36
  89. package/dist/components/Wallet/Sell/confirmTransaction.js +6 -8
  90. package/dist/components/Wallet/Sell/form.js +6 -16
  91. package/dist/components/Wallet/Sell/index.js +2 -2
  92. package/dist/components/Wallet/Send/index.js +98 -107
  93. package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
  94. package/dist/components/Wallet/Shared/Auth/otpForm.js +8 -355
  95. package/dist/components/Wallet/Shared/BankSelect/index.js +44 -48
  96. package/dist/components/Wallet/Shared/CardCorp/index.js +17 -18
  97. package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
  98. package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
  99. package/dist/components/Wallet/Shared/Container/index.js +15 -16
  100. package/dist/components/Wallet/Shared/Input/index.js +3 -3
  101. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
  102. package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
  103. package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
  104. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
  105. package/dist/components/Wallet/Shared/addBank.js +40 -44
  106. package/dist/components/Wallet/Shared/appButton.js +11 -15
  107. package/dist/components/Wallet/Shared/backBtn.js +8 -9
  108. package/dist/components/Wallet/Shared/button.js +7 -7
  109. package/dist/components/Wallet/Shared/connectPlaidBank.js +15 -16
  110. package/dist/components/Wallet/Shared/inputField.js +5 -5
  111. package/dist/components/Wallet/Shared/manualSend.js +7 -11
  112. package/dist/components/Wallet/Shared/noData.js +4 -5
  113. package/dist/components/Wallet/Shared/pin.js +25 -27
  114. package/dist/components/Wallet/Shared/radioButton.js +39 -5
  115. package/dist/components/Wallet/Shared/step.js +12 -13
  116. package/dist/components/Wallet/Shared/timer.js +1 -1
  117. package/dist/components/Wallet/SignIn/index.js +16 -16
  118. package/dist/components/Wallet/SignUp/index.js +62 -152
  119. package/dist/components/Wallet/SignUp/terms.js +1 -1
  120. package/dist/components/Wallet/Stake/gems/index.js +51 -58
  121. package/dist/components/Wallet/Stake/id/index.js +73 -81
  122. package/dist/components/Wallet/Stake/index.js +64 -67
  123. package/dist/components/Wallet/Swap/form.js +8 -17
  124. package/dist/components/Wallet/Swap/index.js +2 -2
  125. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
  126. package/dist/components/Wallet/Withdraw/bankSelect.js +40 -44
  127. package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -6
  128. package/dist/components/Wallet/Withdraw/form.js +4 -15
  129. package/dist/components/Wallet/Withdraw/index.js +2 -2
  130. package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
  131. package/dist/hoc/withThemeProvider.js +5 -732
  132. package/dist/hooks/useDialog/index.js +22 -23
  133. package/dist/hooks/useRrDialog/index.js +43 -46
  134. package/dist/hooks/useSnackBar.js +24 -696
  135. package/dist/icons/buyIcon.js +1 -1
  136. package/dist/icons/canceledBuyIcon.js +1 -1
  137. package/dist/icons/canceledRedeemIcon.js +1 -1
  138. package/dist/icons/failedBuyIcon.js +2 -2
  139. package/dist/icons/failedRedeemIcon.js +2 -2
  140. package/dist/icons/pendingBuyIcon.js +1 -1
  141. package/dist/icons/pendingRedeemIcon.js +1 -1
  142. package/dist/icons/redeemIcon.js +1 -1
  143. package/dist/{index-BbVpeed7.js → index-3OQ4M69t.js} +87 -96
  144. package/dist/{index-BHG1bT4t.js → index-BBFbUCRZ.js} +123 -128
  145. package/dist/{index-Dh_ahu-u.js → index-C1WPCgkl.js} +129 -140
  146. package/dist/{index-eEBuSKOo.js → index-CDwzoHu7.js} +124 -134
  147. package/dist/{index-B9oucF3r.js → index-CK4kLRAw.js} +189 -198
  148. package/dist/{index-C7Td5yoW.js → index-CYX3j0V7.js} +172 -181
  149. package/dist/{index-D2JWUPz8.js → index-ILpK4BCB.js} +154 -163
  150. package/dist/main.js +7 -7
  151. package/dist/memoTheme-DnE8lj0t.js +3481 -0
  152. package/dist/otpForm-fiNqeB5H.js +7378 -0
  153. package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
  154. package/dist/tooltip-BW0UyWw7.js +2129 -0
  155. package/package.json +6 -6
  156. package/dist/Alert-DzsbFW3-.js +0 -369
  157. package/dist/Autocomplete-CE-OI2t8.js +0 -2429
  158. package/dist/Avatar-1XklXr4O.js +0 -281
  159. package/dist/Backdrop-CioURPVG.js +0 -359
  160. package/dist/Box-B0YSYLco.js +0 -59
  161. package/dist/Button-Df4vgU24.js +0 -663
  162. package/dist/ButtonBase-DLF5c6wi.js +0 -870
  163. package/dist/CardContent-D9wTdpu-.js +0 -141
  164. package/dist/CircularProgress-xZA3lvba.js +0 -252
  165. package/dist/Close-CxzDL3J-.js +0 -9
  166. package/dist/Container-urNKV7hm.js +0 -181
  167. package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
  168. package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
  169. package/dist/DialogContent-BMwlOnbW.js +0 -567
  170. package/dist/DialogTitle-CfS0bb2K.js +0 -70
  171. package/dist/Divider-BShhMFf4.js +0 -297
  172. package/dist/FilledInput-DuNqnPjc.js +0 -1292
  173. package/dist/FormControl-RtZDQMdA.js +0 -258
  174. package/dist/FormControlLabel-BliKW48y.js +0 -519
  175. package/dist/GlobalStyles-ChMhDfTS.js +0 -59
  176. package/dist/Grid-CFe3amXO.js +0 -410
  177. package/dist/Grow-CnGtel3u.js +0 -196
  178. package/dist/HTMLElementType-BrQSV2FE.js +0 -13
  179. package/dist/IconButton-DHm-hucF.js +0 -297
  180. package/dist/InputAdornment-DMiED3JH.js +0 -173
  181. package/dist/Link-DBA9Yifs.js +0 -266
  182. package/dist/ListItemIcon-CUcyTEEm.js +0 -84
  183. package/dist/Menu-DLYFFrEk.js +0 -1239
  184. package/dist/MenuItem-DUdYOJr4.js +0 -271
  185. package/dist/Modal-CFIQ_s3T.js +0 -743
  186. package/dist/Paper-Bgt2WXI6.js +0 -186
  187. package/dist/Popper-BBAoiZKn.js +0 -1409
  188. package/dist/Portal-BMAxiQwe.js +0 -69
  189. package/dist/RadioGroup-nvoSN0JN.js +0 -189
  190. package/dist/Select-CB5yWmyn.js +0 -1886
  191. package/dist/Slide-B9Nw0LZ4.js +0 -235
  192. package/dist/Stack-k55YTxET.js +0 -172
  193. package/dist/SwitchBase-C8zFyg_x.js +0 -318
  194. package/dist/TextField-DPpRUQe3.js +0 -978
  195. package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
  196. package/dist/Typography-pAaje37G.js +0 -260
  197. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  198. package/dist/clsx-BTaloaeC.js +0 -264
  199. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  200. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  201. package/dist/createTheme-CD19zQB7.js +0 -3825
  202. package/dist/debounce-46wSf_lW.js +0 -15
  203. package/dist/defaultTheme-C35y5cLB.js +0 -5
  204. package/dist/dividerClasses-BDxa2gAa.js +0 -10
  205. package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
  206. package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
  207. package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
  208. package/dist/exactProp-C1Lmtwf_.js +0 -13
  209. package/dist/extendSxProp-B8UjbJ56.js +0 -37
  210. package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
  211. package/dist/index-B0Z-Gjno.js +0 -22
  212. package/dist/index-DUcLo3x5.js +0 -43
  213. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  214. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  215. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  216. package/dist/memoTheme-yHaPezod.js +0 -15
  217. package/dist/ownerWindow-CRgpWY6I.js +0 -7
  218. package/dist/radioButton-CzlYB0Lh.js +0 -402
  219. package/dist/refType-BsTH3qnM.js +0 -56
  220. package/dist/tooltip-3UvETWtS.js +0 -740
  221. package/dist/useControlled-nm4pBabJ.js +0 -31
  222. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  223. package/dist/useFormControl-CatNKXAi.js +0 -10
  224. package/dist/useId-CK6Kn3Tn.js +0 -21
  225. package/dist/useSlot-CW7SOYlh.js +0 -125
  226. package/dist/useSlotProps-BfEOwJvJ.js +0 -25
  227. package/dist/useTheme-BQJ5lp0i.js +0 -11
  228. package/dist/useTheme-S5_DHFsQ.js +0 -17
  229. package/dist/useThemeProps-DN9MjdTl.js +0 -29
@@ -1,69 +0,0 @@
1
- import * as r from "react";
2
- import * as E from "react-dom";
3
- import { P as p } from "./createTheme-CD19zQB7.js";
4
- import { u as P } from "./TransitionGroupContext-CYRQkQ6k.js";
5
- import { g as y } from "./elementAcceptingRef-CqLvP78G.js";
6
- import { u as f } from "./useEnhancedEffect-CJGo-L3B.js";
7
- import { H as T } from "./HTMLElementType-BrQSV2FE.js";
8
- import { e as N } from "./exactProp-C1Lmtwf_.js";
9
- function l(e, s) {
10
- typeof e == "function" ? e(s) : e && (e.current = s);
11
- }
12
- function R(e) {
13
- return typeof e == "function" ? e() : e;
14
- }
15
- const c = /* @__PURE__ */ r.forwardRef(function(s, i) {
16
- const {
17
- children: o,
18
- container: a,
19
- disablePortal: n = !1
20
- } = s, [t, u] = r.useState(null), m = P(/* @__PURE__ */ r.isValidElement(o) ? y(o) : null, i);
21
- if (f(() => {
22
- n || u(R(a) || document.body);
23
- }, [a, n]), f(() => {
24
- if (t && !n)
25
- return l(i, t), () => {
26
- l(i, null);
27
- };
28
- }, [i, t, n]), n) {
29
- if (/* @__PURE__ */ r.isValidElement(o)) {
30
- const d = {
31
- ref: m
32
- };
33
- return /* @__PURE__ */ r.cloneElement(o, d);
34
- }
35
- return o;
36
- }
37
- return t && /* @__PURE__ */ E.createPortal(o, t);
38
- });
39
- process.env.NODE_ENV !== "production" && (c.propTypes = {
40
- // ┌────────────────────────────── Warning ──────────────────────────────┐
41
- // │ These PropTypes are generated from the TypeScript type definitions. │
42
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
43
- // └─────────────────────────────────────────────────────────────────────┘
44
- /**
45
- * The children to render into the `container`.
46
- */
47
- children: p.node,
48
- /**
49
- * An HTML element or function that returns one.
50
- * The `container` will have the portal children appended to it.
51
- *
52
- * You can also provide a callback, which is called in a React layout effect.
53
- * This lets you set the container from a ref, and also makes server-side rendering possible.
54
- *
55
- * By default, it uses the body of the top-level document object,
56
- * so it's simply `document.body` most of the time.
57
- */
58
- container: p.oneOfType([T, p.func]),
59
- /**
60
- * The `children` will be under the DOM hierarchy of the parent component.
61
- * @default false
62
- */
63
- disablePortal: p.bool
64
- });
65
- process.env.NODE_ENV !== "production" && (c.propTypes = N(c.propTypes));
66
- export {
67
- c as P,
68
- l as s
69
- };
@@ -1,189 +0,0 @@
1
- import * as l from "react";
2
- import { g as v, P as o } from "./createTheme-CD19zQB7.js";
3
- import { c as C } from "./clsx-BTaloaeC.js";
4
- import { g as G } from "./generateUtilityClasses-BRiE4Guh.js";
5
- import { a as M } from "./radioButton-CzlYB0Lh.js";
6
- import { jsx as w } from "react/jsx-runtime";
7
- import { u as S } from "./useControlled-nm4pBabJ.js";
8
- import { u as P } from "./TransitionGroupContext-CYRQkQ6k.js";
9
- import { u as U } from "./useId-CK6Kn3Tn.js";
10
- import { u as V } from "./useFormControl-CatNKXAi.js";
11
- import { f as D } from "./FormControl-RtZDQMdA.js";
12
- import { s as O, u as T, c as h } from "./DefaultPropsProvider-oAu9El-f.js";
13
- function j(r) {
14
- return v("MuiFormGroup", r);
15
- }
16
- G("MuiFormGroup", ["root", "row", "error"]);
17
- const E = (r) => {
18
- const {
19
- classes: e,
20
- row: t,
21
- error: s
22
- } = r;
23
- return h({
24
- root: ["root", t && "row", s && "error"]
25
- }, j, e);
26
- }, k = O("div", {
27
- name: "MuiFormGroup",
28
- slot: "Root",
29
- overridesResolver: (r, e) => {
30
- const {
31
- ownerState: t
32
- } = r;
33
- return [e.root, t.row && e.row];
34
- }
35
- })({
36
- display: "flex",
37
- flexDirection: "column",
38
- flexWrap: "wrap",
39
- variants: [{
40
- props: {
41
- row: !0
42
- },
43
- style: {
44
- flexDirection: "row"
45
- }
46
- }]
47
- }), F = /* @__PURE__ */ l.forwardRef(function(e, t) {
48
- const s = T({
49
- props: e,
50
- name: "MuiFormGroup"
51
- }), {
52
- className: n,
53
- row: c = !1,
54
- ...p
55
- } = s, m = V(), u = D({
56
- props: s,
57
- muiFormControl: m,
58
- states: ["error"]
59
- }), i = {
60
- ...s,
61
- row: c,
62
- error: u.error
63
- }, f = E(i);
64
- return /* @__PURE__ */ w(k, {
65
- className: C(f.root, n),
66
- ownerState: i,
67
- ref: t,
68
- ...p
69
- });
70
- });
71
- process.env.NODE_ENV !== "production" && (F.propTypes = {
72
- // ┌────────────────────────────── Warning ──────────────────────────────┐
73
- // │ These PropTypes are generated from the TypeScript type definitions. │
74
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
75
- // └─────────────────────────────────────────────────────────────────────┘
76
- /**
77
- * The content of the component.
78
- */
79
- children: o.node,
80
- /**
81
- * Override or extend the styles applied to the component.
82
- */
83
- classes: o.object,
84
- /**
85
- * @ignore
86
- */
87
- className: o.string,
88
- /**
89
- * Display group of elements in a compact row.
90
- * @default false
91
- */
92
- row: o.bool,
93
- /**
94
- * The system prop that allows defining system overrides as well as additional CSS styles.
95
- */
96
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
97
- });
98
- function q(r) {
99
- return v("MuiRadioGroup", r);
100
- }
101
- G("MuiRadioGroup", ["root", "row", "error"]);
102
- const I = (r) => {
103
- const {
104
- classes: e,
105
- row: t,
106
- error: s
107
- } = r;
108
- return h({
109
- root: ["root", t && "row", s && "error"]
110
- }, q, e);
111
- }, _ = /* @__PURE__ */ l.forwardRef(function(e, t) {
112
- const {
113
- // private
114
- // eslint-disable-next-line react/prop-types
115
- actions: s,
116
- children: n,
117
- className: c,
118
- defaultValue: p,
119
- name: m,
120
- onChange: u,
121
- value: i,
122
- ...f
123
- } = e, d = l.useRef(null), x = I(e), [y, R] = S({
124
- controlled: i,
125
- default: p,
126
- name: "RadioGroup"
127
- });
128
- l.useImperativeHandle(s, () => ({
129
- focus: () => {
130
- let a = d.current.querySelector("input:not(:disabled):checked");
131
- a || (a = d.current.querySelector("input:not(:disabled)")), a && a.focus();
132
- }
133
- }), []);
134
- const N = P(t, d), g = U(m), b = l.useMemo(() => ({
135
- name: g,
136
- onChange(a) {
137
- R(a.target.value), u && u(a, a.target.value);
138
- },
139
- value: y
140
- }), [g, u, R, y]);
141
- return /* @__PURE__ */ w(M.Provider, {
142
- value: b,
143
- children: /* @__PURE__ */ w(F, {
144
- role: "radiogroup",
145
- ref: N,
146
- className: C(x.root, c),
147
- ...f,
148
- children: n
149
- })
150
- });
151
- });
152
- process.env.NODE_ENV !== "production" && (_.propTypes = {
153
- // ┌────────────────────────────── Warning ──────────────────────────────┐
154
- // │ These PropTypes are generated from the TypeScript type definitions. │
155
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
156
- // └─────────────────────────────────────────────────────────────────────┘
157
- /**
158
- * The content of the component.
159
- */
160
- children: o.node,
161
- /**
162
- * @ignore
163
- */
164
- className: o.string,
165
- /**
166
- * The default value. Use when the component is not controlled.
167
- */
168
- defaultValue: o.any,
169
- /**
170
- * The name used to reference the value of the control.
171
- * If you don't provide this prop, it falls back to a randomly generated name.
172
- */
173
- name: o.string,
174
- /**
175
- * Callback fired when a radio button is selected.
176
- *
177
- * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
178
- * @param {string} value The value of the selected radio button.
179
- * You can pull out the new value by accessing `event.target.value` (string).
180
- */
181
- onChange: o.func,
182
- /**
183
- * Value of the selected radio button. The DOM API casts this to a string.
184
- */
185
- value: o.any
186
- });
187
- export {
188
- _ as R
189
- };