@worldcoin/mini-apps-ui-kit-react 0.0.8 → 1.0.0-canary.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 (198) hide show
  1. package/README.md +8 -17
  2. package/dist/components/AlertDialog/AlertDialog.js +94 -0
  3. package/dist/components/AlertDialog/index.d.ts +1 -0
  4. package/dist/components/AlertDialog/index.js +13 -0
  5. package/dist/components/AlertDialog/types.d.ts +172 -0
  6. package/dist/components/AlertDialog/types.js +1 -0
  7. package/dist/components/AlertDialog/use-alert-dialog.d.ts +6 -0
  8. package/dist/components/AlertDialog/use-alert-dialog.js +11 -0
  9. package/dist/components/BottomBar/BottomBar.d.ts +13 -0
  10. package/dist/components/BottomBar/BottomBar.js +21 -0
  11. package/dist/components/BottomBar/index.d.ts +1 -0
  12. package/dist/components/BottomBar/index.js +4 -0
  13. package/dist/components/BulletList/BulletList.d.ts +10 -0
  14. package/dist/components/BulletList/BulletList.js +11 -0
  15. package/dist/components/BulletList/index.d.ts +1 -0
  16. package/dist/components/BulletList/index.js +4 -0
  17. package/dist/components/BulletListItem/BulletListItem.d.ts +7 -0
  18. package/dist/components/BulletListItem/BulletListItem.js +23 -0
  19. package/dist/components/BulletListItem/index.d.ts +1 -0
  20. package/dist/components/BulletListItem/index.js +4 -0
  21. package/dist/components/BulletPoint/BulletPoint.d.ts +6 -0
  22. package/dist/components/BulletPoint/BulletPoint.js +22 -0
  23. package/dist/components/BulletPoint/index.d.ts +1 -0
  24. package/dist/components/BulletPoint/index.js +1 -0
  25. package/dist/components/Button/Button.d.ts +10 -22
  26. package/dist/components/Button/Button.js +40 -72
  27. package/dist/components/Checkbox/Checkbox.d.ts +24 -4
  28. package/dist/components/Checkbox/Checkbox.js +5 -5
  29. package/dist/components/Chip/Chip.d.ts +2 -1
  30. package/dist/components/Chip/Chip.js +14 -8
  31. package/dist/components/ClearButton/Clear.js +14 -14
  32. package/dist/components/ClearButton/ClearButton.js +11 -11
  33. package/dist/components/ColorPicker/ColorPicker.js +14 -14
  34. package/dist/components/CountryDrawer/CountryDrawer.d.ts +12 -0
  35. package/dist/components/CountryDrawer/CountryDrawer.js +63 -0
  36. package/dist/components/CountryDrawer/index.d.ts +1 -0
  37. package/dist/components/CountryDrawer/index.js +4 -0
  38. package/dist/components/CountryDrawer/useCountryFiltering.d.ts +7 -0
  39. package/dist/components/CountryDrawer/useCountryFiltering.js +9 -0
  40. package/dist/components/CountryDrawer/useCountryGrouping.d.ts +13 -0
  41. package/dist/components/CountryDrawer/useCountryGrouping.js +17 -0
  42. package/dist/components/Drawer/Drawer.d.ts +28 -6
  43. package/dist/components/Drawer/Drawer.js +67 -28
  44. package/dist/components/Drawer/index.js +6 -4
  45. package/dist/components/Drawer/types.d.ts +167 -0
  46. package/dist/components/Drawer/types.js +1 -0
  47. package/dist/components/Drawer/use-drawer.d.ts +8 -0
  48. package/dist/components/Drawer/use-drawer.js +11 -0
  49. package/dist/components/Flag/LazyFlag.js +1 -1
  50. package/dist/components/Flag/flag-components/eu.d.ts +3 -0
  51. package/dist/components/Flag/flag-components/eu.js +83 -0
  52. package/dist/components/Flag/flag-components/index.d.ts +1 -0
  53. package/dist/components/Flag/flag-components/index.js +56 -54
  54. package/dist/components/Form/Form.js +2 -2
  55. package/dist/components/Icons/ArrowDown.js +26 -0
  56. package/dist/components/Icons/Eye.d.ts +8 -0
  57. package/dist/components/Icons/Eye.js +40 -0
  58. package/dist/components/Icons/EyeClosed.d.ts +8 -0
  59. package/dist/components/Icons/EyeClosed.js +60 -0
  60. package/dist/components/Icons/Fail.d.ts +8 -0
  61. package/dist/components/Icons/Fail.js +82 -0
  62. package/dist/components/Icons/MagicWand.d.ts +8 -0
  63. package/dist/components/Icons/MagicWand.js +60 -0
  64. package/dist/components/Icons/Magnifier.d.ts +1 -1
  65. package/dist/components/Icons/Magnifier.js +20 -11
  66. package/dist/components/Icons/Success.d.ts +8 -0
  67. package/dist/components/Icons/Success.js +82 -0
  68. package/dist/components/Icons/Tick.js +6 -7
  69. package/dist/components/Icons/XMark.d.ts +8 -0
  70. package/dist/components/Icons/XMark.js +27 -0
  71. package/dist/components/Input/Input.d.ts +26 -2
  72. package/dist/components/Input/Input.js +116 -51
  73. package/dist/components/ListItem/ListItem.d.ts +17 -6
  74. package/dist/components/ListItem/ListItem.js +29 -22
  75. package/dist/components/Marble/Marble.d.ts +2 -0
  76. package/dist/components/Marble/Marble.js +23 -0
  77. package/dist/components/Marble/index.d.ts +1 -0
  78. package/dist/components/Marble/index.js +4 -0
  79. package/dist/components/NumberPad/Delete.d.ts +1 -8
  80. package/dist/components/NumberPad/Delete.js +9 -10
  81. package/dist/components/NumberPad/NumberPad.js +30 -24
  82. package/dist/components/OTPField/OTPField.js +8 -8
  83. package/dist/components/PasswordField/PasswordField.d.ts +13 -0
  84. package/dist/components/PasswordField/PasswordField.js +45 -0
  85. package/dist/components/PasswordField/index.d.ts +1 -0
  86. package/dist/components/PasswordField/index.js +4 -0
  87. package/dist/components/PasteButton/PasteButton.d.ts +1 -1
  88. package/dist/components/PasteButton/PasteButton.js +21 -17
  89. package/dist/components/PhoneField/CountryListItem.d.ts +3 -4
  90. package/dist/components/PhoneField/CountryListItem.js +21 -25
  91. package/dist/components/PhoneField/CountrySelectorButton.d.ts +3 -4
  92. package/dist/components/PhoneField/CountrySelectorButton.js +17 -17
  93. package/dist/components/PhoneField/GroupedCountryList.d.ts +14 -0
  94. package/dist/components/PhoneField/GroupedCountryList.js +30 -0
  95. package/dist/components/PhoneField/PhoneField.d.ts +3 -14
  96. package/dist/components/PhoneField/PhoneField.js +71 -197
  97. package/dist/components/PhoneField/constants.js +4 -4
  98. package/dist/components/Pill/Pill.js +7 -7
  99. package/dist/components/Progress/Progress.d.ts +14 -0
  100. package/dist/components/Progress/Progress.js +31 -0
  101. package/dist/components/Progress/index.d.ts +1 -0
  102. package/dist/components/Progress/index.js +4 -0
  103. package/dist/components/RadioGroup/RadioGroupItem.js +1 -1
  104. package/dist/components/SearchField/SearchField.d.ts +6 -1
  105. package/dist/components/SearchField/SearchField.js +39 -35
  106. package/dist/components/Select/Select.js +46 -76
  107. package/dist/components/{Button → Spinner}/Spinner.d.ts +2 -2
  108. package/dist/components/Spinner/Spinner.js +36 -0
  109. package/dist/components/Spinner/index.d.ts +1 -0
  110. package/dist/components/Spinner/index.js +4 -0
  111. package/dist/components/Switch/Switch.js +1 -1
  112. package/dist/components/Tabs/Tabs.d.ts +11 -0
  113. package/dist/components/Tabs/Tabs.js +58 -0
  114. package/dist/components/Tabs/index.d.ts +2 -0
  115. package/dist/components/Tabs/index.js +5 -0
  116. package/dist/components/Tabs/types.d.ts +53 -0
  117. package/dist/components/Tabs/types.js +1 -0
  118. package/dist/components/TextArea/TextArea.d.ts +25 -0
  119. package/dist/components/TextArea/TextArea.js +54 -0
  120. package/dist/components/TextArea/index.d.ts +1 -0
  121. package/dist/components/TextArea/index.js +4 -0
  122. package/dist/components/Toast/Toast.d.ts +9 -0
  123. package/dist/components/Toast/Toast.js +51 -0
  124. package/dist/components/Toast/Toaster.d.ts +3 -0
  125. package/dist/components/Toast/Toaster.js +14 -0
  126. package/dist/components/Toast/index.d.ts +3 -0
  127. package/dist/components/Toast/index.js +12 -0
  128. package/dist/components/Toast/use-toast.d.ts +51 -0
  129. package/dist/components/Toast/use-toast.js +101 -0
  130. package/dist/components/ToggleGroup/ToggleGroup.d.ts +5 -0
  131. package/dist/components/ToggleGroup/ToggleGroup.js +28 -0
  132. package/dist/components/ToggleGroup/index.d.ts +1 -0
  133. package/dist/components/ToggleGroup/index.js +5 -0
  134. package/dist/components/ToggleGroup/types.d.ts +101 -0
  135. package/dist/components/ToggleGroup/types.js +1 -0
  136. package/dist/components/Token/Token.d.ts +4 -0
  137. package/dist/components/Token/Token.js +12 -7
  138. package/dist/components/Token/icons/btc.d.ts +2 -2
  139. package/dist/components/Token/icons/btc.js +13 -58
  140. package/dist/components/Token/icons/dai.d.ts +3 -0
  141. package/dist/components/Token/icons/dai.js +27 -0
  142. package/dist/components/Token/icons/eth.d.ts +2 -2
  143. package/dist/components/Token/icons/eth.js +11 -58
  144. package/dist/components/Token/icons/index.d.ts +2 -0
  145. package/dist/components/Token/icons/index.js +8 -4
  146. package/dist/components/Token/icons/types.d.ts +7 -0
  147. package/dist/components/Token/icons/types.js +1 -0
  148. package/dist/components/Token/icons/usdc.d.ts +2 -2
  149. package/dist/components/Token/icons/usdc.js +16 -56
  150. package/dist/components/Token/icons/usdt.d.ts +3 -0
  151. package/dist/components/Token/icons/usdt.js +27 -0
  152. package/dist/components/Token/icons/utils.d.ts +9 -0
  153. package/dist/components/Token/icons/utils.js +11 -0
  154. package/dist/components/Token/icons/wld.d.ts +2 -2
  155. package/dist/components/Token/icons/wld.js +10 -41
  156. package/dist/components/TopBar/TopBar.d.ts +11 -0
  157. package/dist/components/TopBar/TopBar.js +23 -0
  158. package/dist/components/TopBar/index.d.ts +1 -0
  159. package/dist/components/TopBar/index.js +4 -0
  160. package/dist/components/Typography/Typography.d.ts +12 -8
  161. package/dist/components/Typography/Typography.js +72 -60
  162. package/dist/components/WalletAddressField/WalletAddressField.d.ts +23 -0
  163. package/dist/components/WalletAddressField/WalletAddressField.js +81 -0
  164. package/dist/components/WalletAddressField/index.d.ts +1 -0
  165. package/dist/components/WalletAddressField/index.js +4 -0
  166. package/dist/index.d.ts +15 -0
  167. package/dist/index.js +91 -45
  168. package/dist/lib/constants/dropdownStyles.d.ts +1 -1
  169. package/dist/lib/constants/dropdownStyles.js +2 -2
  170. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@1_tagbd57u5fsqga6qdjecsll7fm/node_modules/@radix-ui/react-collection/dist/index.js +49 -0
  171. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.5_@types_react-dom@18.3.5_@types_react@18.3.18__@types__nitdfoqpcbroetgllwgz3is5ai/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +131 -0
  172. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.4_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._ulc3jfxcmrz2rfz7bui53djdtu/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
  173. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sejcxqoscaweil2bvgwwavaoha/node_modules/@radix-ui/react-primitive/dist/index.js +35 -0
  174. package/dist/node_modules/.pnpm/@radix-ui_react-progress@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18._wpsg2ubedou6txnsnvgmus4txq/node_modules/@radix-ui/react-progress/dist/index.js +86 -0
  175. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react_ki7uy4u3diz5446cqygvbjwuge/node_modules/@radix-ui/react-roving-focus/dist/index.js +181 -0
  176. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.2_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js +44 -0
  177. package/dist/node_modules/.pnpm/@radix-ui_react-toast@1.2.6_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_mux33mveszkw5z6iia6acnivvy/node_modules/@radix-ui/react-toast/dist/index.js +448 -0
  178. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react_3smwloudr6a3igss4kifyxcwju/node_modules/@radix-ui/react-toggle-group/dist/index.js +137 -0
  179. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._yiv2ptaqcv244n5f7zfldmgupm/node_modules/@radix-ui/react-toggle/dist/index.js +31 -0
  180. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_re_omyrydx3gc2oidaiqb4gsovieq/node_modules/@radix-ui/react-visually-hidden/dist/index.js +30 -0
  181. package/dist/tailwind/index.d.ts +41 -25
  182. package/dist/tailwind/index.js +128 -85
  183. package/package.json +73 -1
  184. package/public/fonts/TWKLausanne-350.woff +0 -0
  185. package/public/fonts/TWKLausanne-350Italic.woff +0 -0
  186. package/public/fonts/TWKLausanne-500.woff +0 -0
  187. package/public/fonts/TWKLausanne-500Italic.woff +0 -0
  188. package/public/fonts/TWKLausanne-600.woff +0 -0
  189. package/public/fonts/TWKLausanne-600Italic.woff +0 -0
  190. package/public/globals.css +1 -1
  191. package/public/images/marbles/marble1.png +0 -0
  192. package/public/images/marbles/marble2.png +0 -0
  193. package/public/images/marbles/marble3.svg +36 -0
  194. package/dist/components/Button/Spinner.js +0 -36
  195. package/dist/components/PhoneField/ArrowDown.js +0 -27
  196. package/dist/components/Select/ArrowDown.d.ts +0 -2
  197. package/dist/components/Select/ArrowDown.js +0 -27
  198. /package/dist/components/{PhoneField → Icons}/ArrowDown.d.ts +0 -0
@@ -1,5 +1,6 @@
1
- import { jsxs as C, jsx as t } from "react/jsx-runtime";
2
- const a = (r) => /* @__PURE__ */ C(
1
+ import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
+ import { getBackgroundClass as l, getIconFillClass as s } from "./utils.js";
3
+ const i = (C) => /* @__PURE__ */ e(
3
4
  "svg",
4
5
  {
5
6
  width: "88",
@@ -7,68 +8,27 @@ const a = (r) => /* @__PURE__ */ C(
7
8
  viewBox: "0 0 88 88",
8
9
  fill: "none",
9
10
  xmlns: "http://www.w3.org/2000/svg",
10
- ...r,
11
+ ...C,
12
+ style: { color: "#005CFF" },
11
13
  children: [
12
- /* @__PURE__ */ t("circle", { cx: "44", cy: "44", r: "44", fill: "#00C313" }),
13
- /* @__PURE__ */ t("circle", { cx: "44", cy: "44", r: "44", fill: "url(#paint0_radial_12_1269)" }),
14
- /* @__PURE__ */ t("circle", { cx: "44", cy: "44", r: "44", fill: "url(#paint1_radial_12_1269)" }),
14
+ /* @__PURE__ */ t("rect", { width: "88", height: "88", rx: "44", className: l(C) }),
15
15
  /* @__PURE__ */ t(
16
16
  "path",
17
17
  {
18
- d: "M43.3019 65C42.9865 65 42.7285 64.8911 42.5278 64.6733C42.3271 64.4556 42.2268 64.1756 42.2268 63.8333V60.6133C40.0479 60.3333 38.2274 59.7578 36.7653 58.8867C35.3032 57.9845 34.1995 56.8956 33.4541 55.62C32.7087 54.3445 32.3073 53.0067 32.25 51.6067C32.25 51.3578 32.336 51.14 32.508 50.9533C32.7087 50.7356 32.938 50.6267 33.196 50.6267H37.7974C38.1701 50.6267 38.4568 50.72 38.6575 50.9067C38.8582 51.0622 39.0445 51.2644 39.2165 51.5133C39.4172 52.0422 39.7326 52.5556 40.1626 53.0533C40.6213 53.5511 41.2377 53.9711 42.0117 54.3133C42.7858 54.6244 43.7462 54.78 44.893 54.78C46.7565 54.78 48.1469 54.4533 49.0643 53.8C50.0104 53.1467 50.4834 52.26 50.4834 51.14C50.4834 50.3311 50.2254 49.6778 49.7094 49.18C49.222 48.6822 48.4336 48.2311 47.3442 47.8267C46.2834 47.4222 44.85 46.9867 43.0438 46.52C40.8937 46.0222 39.0732 45.3844 37.5824 44.6067C36.0916 43.7978 34.9592 42.7711 34.1851 41.5267C33.4397 40.2511 33.067 38.68 33.067 36.8133C33.067 34.3556 33.8698 32.2711 35.4752 30.56C37.1094 28.8489 39.3599 27.7911 42.2268 27.3867V24.1667C42.2268 23.8244 42.3271 23.5444 42.5278 23.3267C42.7285 23.1089 42.9865 23 43.3019 23H46.3551C46.6418 23 46.8855 23.1089 47.0862 23.3267C47.2868 23.5444 47.3872 23.8244 47.3872 24.1667V27.48C49.3653 27.8222 51.0138 28.4756 52.3326 29.44C53.68 30.3733 54.6978 31.4467 55.3858 32.66C56.1025 33.8422 56.4752 34.9933 56.5039 36.1133C56.5039 36.3622 56.4179 36.5956 56.2459 36.8133C56.0739 37 55.8589 37.0933 55.6008 37.0933H50.7414C50.4834 37.0933 50.2397 37.0311 50.0104 36.9067C49.781 36.7822 49.5804 36.5644 49.4083 36.2533C49.265 35.4444 48.7633 34.7444 47.9032 34.1533C47.0431 33.5311 45.9537 33.22 44.635 33.22C43.2302 33.22 42.1121 33.5 41.2807 34.06C40.4493 34.62 40.0336 35.4756 40.0336 36.6267C40.0336 37.3733 40.2486 38.0111 40.6786 38.54C41.1087 39.0378 41.8111 39.4889 42.7858 39.8933C43.7606 40.2667 45.0793 40.6867 46.7421 41.1533C49.265 41.7133 51.3148 42.3822 52.8916 43.16C54.4684 43.9378 55.6152 44.9489 56.3319 46.1933C57.0773 47.4067 57.45 48.9467 57.45 50.8133C57.45 52.6178 57.0343 54.22 56.2029 55.62C55.3715 56.9889 54.1961 58.0933 52.6766 58.9333C51.1858 59.7733 49.4227 60.3333 47.3872 60.6133V63.8333C47.3872 64.1756 47.2868 64.4556 47.0862 64.6733C46.8855 64.8911 46.6418 65 46.3551 65H43.3019Z",
19
- fill: "url(#paint2_linear_12_1269)"
18
+ d: "M52.7781 48.6526C52.7781 43.9987 49.9857 42.403 44.4008 41.7383C40.4117 41.2063 39.6138 40.1426 39.6138 38.2808C39.6138 36.419 40.9437 35.2225 43.603 35.2225C45.9965 35.2225 47.3263 36.0204 47.9911 38.0149C48.1242 38.4139 48.5231 38.6797 48.922 38.6797H51.0494C51.5814 38.6797 51.9803 38.2808 51.9803 37.7491V37.616C51.4483 34.6905 49.0548 32.4301 45.9965 32.1643V28.9729C45.9965 28.4409 45.5976 28.042 44.9328 27.9089H42.9382C42.4062 27.9089 42.0073 28.3078 41.8743 28.9729V32.0312C37.8851 32.5632 35.3588 35.2225 35.3588 38.5469C35.3588 42.935 38.0182 44.6635 43.603 45.3285C47.3263 45.9933 48.5231 46.7911 48.5231 48.9188C48.5231 51.0465 46.6613 52.5091 44.135 52.5091C40.6775 52.5091 39.4807 51.0462 39.0818 49.0516C38.9491 48.5199 38.5501 48.2537 38.1512 48.2537H35.8905C35.3588 48.2537 34.9599 48.6526 34.9599 49.1846V49.3177C35.4916 52.6418 37.6192 55.0353 42.0073 55.7004V58.8918C42.0073 59.4234 42.4062 59.8224 43.071 59.9554H45.0656C45.5976 59.9554 45.9965 59.5565 46.1296 58.8918V55.7004C50.1188 55.0353 52.7781 52.2429 52.7781 48.6526Z",
19
+ className: s(C)
20
20
  }
21
21
  ),
22
- /* @__PURE__ */ C("defs", { children: [
23
- /* @__PURE__ */ C(
24
- "radialGradient",
25
- {
26
- id: "paint0_radial_12_1269",
27
- cx: "0",
28
- cy: "0",
29
- r: "1",
30
- gradientUnits: "userSpaceOnUse",
31
- gradientTransform: "translate(83.9633 70.1674) rotate(170.361) scale(62.5095 57.5688)",
32
- children: [
33
- /* @__PURE__ */ t("stop", { stopColor: "#8FD106" }),
34
- /* @__PURE__ */ t("stop", { offset: "1", stopColor: "#8FD106", stopOpacity: "0" })
35
- ]
36
- }
37
- ),
38
- /* @__PURE__ */ C(
39
- "radialGradient",
40
- {
41
- id: "paint1_radial_12_1269",
42
- cx: "0",
43
- cy: "0",
44
- r: "1",
45
- gradientUnits: "userSpaceOnUse",
46
- gradientTransform: "translate(6.45871 8.33481) rotate(71.0626) scale(53.4853 52.1862)",
47
- children: [
48
- /* @__PURE__ */ t("stop", { stopColor: "#00D815" }),
49
- /* @__PURE__ */ t("stop", { offset: "1", stopColor: "#00D815", stopOpacity: "0" })
50
- ]
51
- }
52
- ),
53
- /* @__PURE__ */ C(
54
- "linearGradient",
55
- {
56
- id: "paint2_linear_12_1269",
57
- x1: "44.85",
58
- y1: "23",
59
- x2: "44.85",
60
- y2: "65",
61
- gradientUnits: "userSpaceOnUse",
62
- children: [
63
- /* @__PURE__ */ t("stop", { offset: "0.5", stopColor: "white" }),
64
- /* @__PURE__ */ t("stop", { offset: "1", stopColor: "white", stopOpacity: "0.8" })
65
- ]
66
- }
67
- )
68
- ] })
22
+ /* @__PURE__ */ t(
23
+ "path",
24
+ {
25
+ d: "M37.2184 62.6161C26.8465 58.8931 21.5275 47.3244 25.3839 37.0853C27.3785 31.5005 31.7666 27.2455 37.2184 25.2509C37.7504 24.985 38.0162 24.5861 38.0162 23.921V22.0595C38.0162 21.5275 37.7504 21.1286 37.2184 20.9958C37.0853 20.9958 36.8195 20.9958 36.6864 21.1286C24.0541 25.1178 17.1394 38.5482 21.1286 51.1805C23.5221 58.6269 29.24 64.3448 36.6864 66.7383C37.2184 67.0042 37.7504 66.7383 37.8832 66.2063C38.0162 66.0736 38.0162 65.9405 38.0162 65.6747V63.8128C38.0162 63.4139 37.6173 62.8822 37.2184 62.6161ZM51.3136 21.1286C50.7816 20.8628 50.2496 21.1286 50.1168 21.6606C49.9838 21.7937 49.9838 21.9264 49.9838 22.1926V24.0541C49.9838 24.5861 50.3827 25.1178 50.7816 25.3839C61.1535 29.107 66.4725 40.6756 62.6161 50.9147C60.6215 56.4995 56.2334 60.7546 50.7816 62.7491C50.2496 63.015 49.9838 63.4139 49.9838 64.079V65.9405C49.9838 66.4725 50.2496 66.8714 50.7816 67.0042C50.9147 67.0042 51.1805 67.0042 51.3136 66.8714C63.9459 62.8822 70.8606 49.4518 66.8714 36.8195C64.4779 29.24 58.6269 23.5221 51.3136 21.1286Z",
26
+ className: s(C)
27
+ }
28
+ )
69
29
  ]
70
30
  }
71
31
  );
72
32
  export {
73
- a as default
33
+ i as default
74
34
  };
@@ -0,0 +1,3 @@
1
+ import { IconProps } from './types';
2
+ declare const USDT: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default USDT;
@@ -0,0 +1,27 @@
1
+ import { jsxs as C, jsx as s } from "react/jsx-runtime";
2
+ import { getBackgroundClass as e, getIconFillClass as l } from "./utils.js";
3
+ const i = (t) => /* @__PURE__ */ C(
4
+ "svg",
5
+ {
6
+ width: "88",
7
+ height: "88",
8
+ viewBox: "0 0 88 88",
9
+ fill: "none",
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ ...t,
12
+ style: { color: "#28D9A6" },
13
+ children: [
14
+ /* @__PURE__ */ s("rect", { width: "88", height: "88", rx: "44", className: e(t) }),
15
+ /* @__PURE__ */ s(
16
+ "path",
17
+ {
18
+ d: "M48.4722 37.3457V31.9535H60.8028V23.7377H27.2262V31.9535H39.5582V37.3414C29.5358 37.8017 22 39.7866 22 42.1644C22 44.5423 29.5395 46.5272 39.5582 46.9904V64.2623H48.4751V46.989C58.4794 46.5272 66 44.5437 66 42.1681C66 39.7924 58.4794 37.8089 48.4751 37.3472M48.4751 45.526V45.5217C48.2235 45.5376 46.931 45.6152 44.0529 45.6152C41.7519 45.6152 40.1331 45.5499 39.5626 45.5202V45.5275C30.7081 45.1353 24.0987 43.5933 24.0987 41.7483C24.0987 39.9033 30.7088 38.3635 39.5626 37.9706V43.9913C40.1426 44.0312 41.8012 44.129 44.0906 44.129C46.8403 44.129 48.2228 44.0145 48.4766 43.9913V37.9706C57.3137 38.3643 63.9078 39.9077 63.9078 41.7461C63.9078 43.5846 57.3108 45.1287 48.4766 45.5224",
19
+ className: l(t)
20
+ }
21
+ )
22
+ ]
23
+ }
24
+ );
25
+ export {
26
+ i as default
27
+ };
@@ -0,0 +1,9 @@
1
+ import { TokenVariant } from './types';
2
+ export declare const getBackgroundClass: ({ disabled, variant, }: {
3
+ disabled?: boolean;
4
+ variant?: TokenVariant;
5
+ }) => "fill-gray-350" | "fill-current" | "fill-gray-100";
6
+ export declare const getIconFillClass: ({ disabled, variant, }: {
7
+ disabled?: boolean;
8
+ variant?: TokenVariant;
9
+ }) => "fill-gray-0" | "fill-gray-900";
@@ -0,0 +1,11 @@
1
+ const o = ({
2
+ disabled: l,
3
+ variant: r
4
+ }) => l ? "fill-gray-350" : r === "color" ? "fill-current" : "fill-gray-100", a = ({
5
+ disabled: l,
6
+ variant: r
7
+ }) => l || r === "color" ? "fill-gray-0" : "fill-gray-900";
8
+ export {
9
+ o as getBackgroundClass,
10
+ a as getIconFillClass
11
+ };
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
2
- declare const WLD: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
1
+ import { IconProps } from './types';
2
+ declare const WLD: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default WLD;
@@ -1,5 +1,6 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- const r = (e) => /* @__PURE__ */ i(
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import { getBackgroundClass as e, getIconFillClass as l } from "./utils.js";
3
+ const i = (C) => /* @__PURE__ */ s(
3
4
  "svg",
4
5
  {
5
6
  width: "88",
@@ -7,52 +8,20 @@ const r = (e) => /* @__PURE__ */ i(
7
8
  viewBox: "0 0 88 88",
8
9
  fill: "none",
9
10
  xmlns: "http://www.w3.org/2000/svg",
10
- ...e,
11
+ ...C,
12
+ style: { color: "#181818" },
11
13
  children: [
12
- /* @__PURE__ */ t("circle", { cx: "44", cy: "44", r: "44", fill: "#191C20" }),
13
- /* @__PURE__ */ t("rect", { opacity: "0.3", width: "88", height: "88", rx: "44", fill: "url(#paint0_radial_12_1273)" }),
14
+ /* @__PURE__ */ t("rect", { width: "88", height: "88", rx: "44", className: e(C) }),
14
15
  /* @__PURE__ */ t(
15
16
  "path",
16
17
  {
17
- d: "M63.842 35.8263C62.7832 33.3239 61.27 31.0813 59.3423 29.1534C57.4146 27.2255 55.1673 25.7121 52.6702 24.6532C50.0783 23.5544 47.3316 23 44.495 23C41.6633 23 38.9116 23.5544 36.3197 24.6532C33.8177 25.7121 31.5754 27.2255 29.6477 29.1534C27.7199 31.0813 26.2067 33.3289 25.148 35.8263C24.0543 38.4135 23.5 41.1655 23.5 43.9975C23.5 46.8295 24.0543 49.5815 25.153 52.1737C26.2117 54.6761 27.7249 56.9187 29.6526 58.8466C31.5804 60.7745 33.8277 62.2879 36.3247 63.3468C38.9166 64.4406 41.6634 65 44.5 65C47.3316 65 50.0833 64.4456 52.6752 63.3468C55.1773 62.2879 57.4196 60.7745 59.3473 58.8466C61.275 56.9187 62.7882 54.6711 63.847 52.1737C64.9406 49.5815 65.5 46.8345 65.5 43.9975C65.495 41.1655 64.9356 38.4135 63.842 35.8263ZM37.5233 42.0246C38.3972 38.6682 41.4536 36.1859 45.0843 36.1859H59.6619C60.6008 37.9989 61.2001 39.9718 61.4348 42.0246H37.5233ZM61.4348 45.9704C61.2001 48.0232 60.5958 49.9961 59.6619 51.8091H45.0843C41.4586 51.8091 38.4022 49.3268 37.5233 45.9704H61.4348ZM32.4393 31.9404C35.6605 28.7189 39.9404 26.9458 44.495 26.9458C49.0496 26.9458 53.3295 28.7189 56.5506 31.9404C56.6505 32.0403 56.7454 32.1402 56.8403 32.2401H45.0843C41.943 32.2401 38.9915 33.4638 36.7692 35.6864C35.0213 37.4345 33.8926 39.6372 33.4881 42.0296H27.5601C27.9946 38.2187 29.6876 34.6925 32.4393 31.9404ZM44.495 61.0542C39.9404 61.0542 35.6605 59.2811 32.4393 56.0596C29.6876 53.3075 27.9946 49.7813 27.5601 45.9754H33.4881C33.8876 48.3678 35.0213 50.5705 36.7692 52.3186C38.9915 54.5412 41.943 55.7649 45.0843 55.7649H56.8453C56.7504 55.8648 56.6505 55.9647 56.5556 56.0646C53.3345 59.2761 49.0496 61.0542 44.495 61.0542Z",
18
- fill: "url(#paint1_linear_12_1273)"
18
+ d: "M44 63.9998C40.3849 63.9998 37.0423 63.1044 33.9778 61.308C30.9132 59.5171 28.4828 57.0866 26.6919 54.0221C24.8954 50.952 24 47.615 24 43.9998C24 40.3847 24.8954 37.0421 26.6919 33.9776C28.4828 30.9131 30.9132 28.4826 33.9778 26.6917C37.0423 24.8953 40.3849 23.9998 44 23.9998C47.6151 23.9998 50.9577 24.8953 54.0222 26.6917C57.0868 28.4882 59.5172 30.9131 61.3081 33.9776C63.099 37.0421 64 40.3847 64 43.9998C64 47.615 63.1046 50.9576 61.3081 54.0221C59.5172 57.0866 57.0868 59.5171 54.0222 61.308C50.9577 63.0989 47.6151 63.9998 44 63.9998ZM25.6908 46.0799V42.0032H62.3482V46.0799H25.6908ZM44 59.8341C46.8643 59.8341 49.4894 59.1278 51.8754 57.7095C54.2614 56.2913 56.1468 54.378 57.5373 51.9643C58.9277 49.5505 59.6174 46.8975 59.6174 44.0054C59.6174 41.1133 58.9221 38.4604 57.5373 36.0466C56.1468 33.6328 54.2614 31.714 51.8754 30.3013C49.4894 28.8831 46.8643 28.1767 44 28.1767C41.1357 28.1767 38.5106 28.8831 36.1246 30.3013C33.7386 31.7195 31.8532 33.6328 30.4627 36.0466C29.0723 38.4604 28.3826 41.1133 28.3826 44.0054C28.3826 46.8975 29.0779 49.5505 30.4627 51.9643C31.8532 54.378 33.7386 56.2968 36.1246 57.7095C38.5106 59.1278 41.1357 59.8341 44 59.8341ZM33.327 44.3002V43.7774C33.327 41.7251 33.8165 39.8675 34.8009 38.2045C35.7853 36.5416 37.1646 35.2346 38.9444 34.2779C40.7241 33.3213 42.7542 32.8486 45.04 32.8486H58.4438L60.3515 36.8419H45.2125C42.9544 36.8419 41.1413 37.4926 39.7675 38.7941C38.3938 40.0955 37.7041 41.7585 37.7041 43.7829V44.3057C37.7041 46.358 38.3938 48.0321 39.7675 49.3169C41.1413 50.6016 42.9544 51.2468 45.2125 51.2468H60.3515L58.4438 55.2401H45.04C42.7542 55.2401 40.7241 54.7618 38.9444 53.8107C37.1646 52.8541 35.7853 51.5471 34.8009 49.8842C33.8165 48.2212 33.327 46.3636 33.327 44.3113V44.3002Z",
19
+ className: l(C)
19
20
  }
20
- ),
21
- /* @__PURE__ */ i("defs", { children: [
22
- /* @__PURE__ */ i(
23
- "radialGradient",
24
- {
25
- id: "paint0_radial_12_1273",
26
- cx: "0",
27
- cy: "0",
28
- r: "1",
29
- gradientUnits: "userSpaceOnUse",
30
- gradientTransform: "translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",
31
- children: [
32
- /* @__PURE__ */ t("stop", { stopColor: "white" }),
33
- /* @__PURE__ */ t("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
34
- ]
35
- }
36
- ),
37
- /* @__PURE__ */ i(
38
- "linearGradient",
39
- {
40
- id: "paint1_linear_12_1273",
41
- x1: "44.5",
42
- y1: "23",
43
- x2: "44.5",
44
- y2: "65",
45
- gradientUnits: "userSpaceOnUse",
46
- children: [
47
- /* @__PURE__ */ t("stop", { offset: "0.5", stopColor: "white" }),
48
- /* @__PURE__ */ t("stop", { offset: "1", stopColor: "white", stopOpacity: "0.8" })
49
- ]
50
- }
51
- )
52
- ] })
21
+ )
53
22
  ]
54
23
  }
55
24
  );
56
25
  export {
57
- r as default
26
+ i as default
58
27
  };
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ interface TopBarProps {
3
+ /** Title displayed in the center */
4
+ title: string;
5
+ /** Element rendered on the left side */
6
+ startAdornment?: React.ReactNode;
7
+ /** Element rendered on the right side */
8
+ endAdornment?: React.ReactNode;
9
+ }
10
+ export declare function TopBar({ title, startAdornment, endAdornment }: TopBarProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,23 @@
1
+ import { jsxs as c, jsx as s } from "react/jsx-runtime";
2
+ import { cn as l } from "../../lib/utils.js";
3
+ import { Typography as o } from "../Typography/Typography.js";
4
+ function u({ title: n, startAdornment: t, endAdornment: i }) {
5
+ const e = !!t, r = !!i, a = e ? "text-center" : "text-left";
6
+ return /* @__PURE__ */ c("div", { className: l("flex items-center px-6 pt-6 pb-2 w-full h-[4.5rem]", e || r ? "justify-between" : "justify-start"), children: [
7
+ t && /* @__PURE__ */ s("div", { className: "shrink-0", children: t }),
8
+ /* @__PURE__ */ s(
9
+ o,
10
+ {
11
+ variant: e ? "subtitle" : "heading",
12
+ level: e ? 1 : 3,
13
+ className: l("flex-1 grow truncate", a),
14
+ children: n
15
+ }
16
+ ),
17
+ i && /* @__PURE__ */ s("div", { className: "shrink-0", children: i }),
18
+ !i && e && /* @__PURE__ */ s("div", { className: "shrink-0 invisible", "aria-hidden": "true", children: t })
19
+ ] });
20
+ }
21
+ export {
22
+ u as TopBar
23
+ };
@@ -0,0 +1 @@
1
+ export * from './TopBar';
@@ -0,0 +1,4 @@
1
+ import { TopBar as p } from "./TopBar.js";
2
+ export {
3
+ p as TopBar
4
+ };
@@ -8,19 +8,23 @@ export interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
8
8
  }
9
9
  export interface TypographyNumberProps extends TypographyProps {
10
10
  variant?: "number";
11
- level?: 1 | 2 | 3 | 4 | 5 | 6;
11
+ level?: 1 | 2 | 3 | 4 | 5;
12
12
  }
13
- export interface TypographySubtitleBodyMonoProps extends TypographyProps {
14
- variant?: "subtitle" | "body" | "mono";
13
+ export interface TypographyCommonProps extends TypographyProps {
14
+ variant?: "heading" | "subtitle" | "body";
15
15
  level?: 1 | 2 | 3 | 4;
16
16
  }
17
- export interface TypographyHeadingProps extends TypographyProps {
18
- variant?: "heading";
19
- level?: 1 | 2 | 3;
17
+ export interface TypographyLabelProps extends TypographyProps {
18
+ variant?: "label";
19
+ level?: 1 | 2;
20
20
  }
21
- export type TypographyComponentProps = TypographyNumberProps | TypographySubtitleBodyMonoProps | TypographyHeadingProps;
21
+ export interface TypographyDisplayProps extends TypographyProps {
22
+ variant?: "display";
23
+ level?: 1;
24
+ }
25
+ export type TypographyComponentProps = TypographyNumberProps | TypographyCommonProps | TypographyLabelProps | TypographyDisplayProps;
22
26
  export declare const typographyVariants: (props?: ({
23
- variant?: "number" | "heading" | "body" | "subtitle" | "mono" | null | undefined;
27
+ variant?: "number" | "heading" | "subtitle" | "body" | "label" | "display" | null | undefined;
24
28
  level?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
25
29
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
26
30
  export declare const Typography: import('react').ForwardRefExoticComponent<PropsWithChildren<TypographyComponentProps> & import('react').RefAttributes<HTMLElement>>;
@@ -1,15 +1,16 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { cva as o } from "../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
3
- import { forwardRef as i } from "react";
4
- import { cn as v } from "../../lib/utils.js";
5
- const c = o("", {
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { cva as m } from "../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
3
+ import { forwardRef as v } from "react";
4
+ import { cn as o } from "../../lib/utils.js";
5
+ const c = m("", {
6
6
  variants: {
7
7
  variant: {
8
- number: "font-display font-semibold leading-narrow tracking-normal",
9
- heading: "font-display font-semibold tracking-[-0.01em] leading-narrow",
10
- subtitle: "font-sans font-medium leading-narrow tracking-normal",
11
- body: "font-sans font-normal leading-compact tracking-normal",
12
- mono: "font-mono font-normal tracking-normal"
8
+ display: "font-display font-semibold leading-narrow tracking-[-0.02em]",
9
+ heading: "font-display font-semibold leading-narrow tracking-[-0.01em]",
10
+ subtitle: "font-sans font-medium leading-narrow",
11
+ label: "font-sans font-semibold leading-narrow",
12
+ body: "font-sans font-normal leading-compact",
13
+ number: "font-display font-semibold"
13
14
  },
14
15
  level: {
15
16
  1: "",
@@ -21,55 +22,38 @@ const c = o("", {
21
22
  }
22
23
  },
23
24
  compoundVariants: [
25
+ // Display
24
26
  {
25
- variant: "number",
27
+ variant: "display",
26
28
  level: 1,
27
- className: "text-[3.5rem]"
28
- },
29
- {
30
- variant: "number",
31
- level: 2,
32
- className: "text-[2.75rem]"
33
- },
34
- {
35
- variant: "number",
36
- level: 3,
37
- className: "text-[2.125rem]"
38
- },
39
- {
40
- variant: "number",
41
- level: 4,
42
- className: "text-[1.875rem]"
43
- },
44
- {
45
- variant: "number",
46
- level: 5,
47
- className: "text-[1.625rem]"
48
- },
49
- {
50
- variant: "number",
51
- level: 6,
52
- className: "text-[1.25rem]"
29
+ className: "text-7xl"
53
30
  },
31
+ // Heading
54
32
  {
55
33
  variant: "heading",
56
34
  level: 1,
57
- className: "text-[1.875rem]"
35
+ className: "text-4xl"
58
36
  },
59
37
  {
60
38
  variant: "heading",
61
39
  level: 2,
62
- className: "text-[1.625rem]"
40
+ className: "text-3xl"
63
41
  },
64
42
  {
65
43
  variant: "heading",
66
44
  level: 3,
67
- className: "text-[1.25rem]"
45
+ className: "text-2xl"
46
+ },
47
+ {
48
+ variant: "heading",
49
+ level: 4,
50
+ className: "text-[1.375rem]"
68
51
  },
52
+ // Subtitle
69
53
  {
70
54
  variant: "subtitle",
71
55
  level: 1,
72
- className: "text-[1.125rem]"
56
+ className: "text-lg"
73
57
  },
74
58
  {
75
59
  variant: "subtitle",
@@ -86,6 +70,18 @@ const c = o("", {
86
70
  level: 4,
87
71
  className: "text-xs"
88
72
  },
73
+ // Label
74
+ {
75
+ variant: "label",
76
+ level: 1,
77
+ className: "text-base"
78
+ },
79
+ {
80
+ variant: "label",
81
+ level: 2,
82
+ className: "text-sm"
83
+ },
84
+ // Body
89
85
  {
90
86
  variant: "body",
91
87
  level: 1,
@@ -106,45 +102,61 @@ const c = o("", {
106
102
  level: 4,
107
103
  className: "text-xs"
108
104
  },
105
+ // Number
109
106
  {
110
- variant: "mono",
107
+ variant: "number",
111
108
  level: 1,
112
- className: "text-sm leading-none"
109
+ className: "text-6xl tracking-[-0.01em]"
113
110
  },
114
111
  {
115
- variant: "mono",
112
+ variant: "number",
116
113
  level: 2,
117
- className: "text-xs leading-narrow"
114
+ className: "text-5xl tracking-[-0.02em]"
118
115
  },
119
116
  {
120
- variant: "mono",
117
+ variant: "number",
121
118
  level: 3,
122
- className: "text-2xs leading-narrow"
119
+ className: "text-3xl tracking-[-0.01em]"
123
120
  },
124
121
  {
125
- variant: "mono",
122
+ variant: "number",
126
123
  level: 4,
127
- className: "text-[0.5rem] leading-compact"
124
+ className: "text-xl tracking-[-0.02em]"
125
+ },
126
+ {
127
+ variant: "number",
128
+ level: 5,
129
+ className: "text-base tracking-[-0.02em]"
130
+ },
131
+ {
132
+ variant: "label",
133
+ level: 1,
134
+ className: "text-[17px]"
135
+ },
136
+ {
137
+ variant: "label",
138
+ level: 2,
139
+ className: "text-[15px]"
128
140
  }
129
141
  ],
130
142
  defaultVariants: {
131
143
  variant: "body",
132
144
  level: 2
133
145
  }
134
- }), d = i(
135
- ({ variant: a = "body", level: e = 2, children: t, as: l = "p", className: n, ...r }, s) => /* @__PURE__ */ m(
136
- l,
137
- {
138
- className: v(c({ variant: a, level: e, className: n })),
139
- ref: s,
140
- ...r,
141
- children: t
146
+ }), x = v(
147
+ ({ variant: a = "body", level: e = 2, children: l, as: t = "p", className: s, ...n }, r) => /* @__PURE__ */ i(
148
+ t,
149
+ {
150
+ className: o(c({ variant: a, level: e, className: s })),
151
+ ref: r,
152
+ ...n,
153
+ children: l
142
154
  }
143
155
  )
144
156
  );
145
- d.displayName = "Typography";
157
+ x.displayName = "Typography";
146
158
  export {
147
- d as Typography,
148
- d as default,
159
+ x as Typography,
160
+ x as default,
149
161
  c as typographyVariants
150
162
  };
@@ -0,0 +1,23 @@
1
+ import { InputProps } from '../Input';
2
+ export interface WalletAddressFieldProps extends Omit<InputProps, "startAdornment" | "startAdornmentWidth" | "endAdornment" | "endAdornmentWidth"> {
3
+ /**
4
+ * If true, the input will display in an error state with error styling
5
+ */
6
+ error?: boolean;
7
+ /**
8
+ * If true, the input will display in a valid state with success styling
9
+ */
10
+ isValid?: boolean;
11
+ /**
12
+ * Label for the input
13
+ * @default "Enter wallet address"
14
+ */
15
+ label?: string;
16
+ /**
17
+ * Label for the paste button
18
+ * @default "Paste"
19
+ */
20
+ pasteButtonLabel?: string;
21
+ }
22
+ export declare const WalletAddressField: import('react').ForwardRefExoticComponent<WalletAddressFieldProps & import('react').RefAttributes<HTMLInputElement>>;
23
+ export default WalletAddressField;
@@ -0,0 +1,81 @@
1
+ "use client";
2
+ import { jsx as d } from "react/jsx-runtime";
3
+ import { createChangeEvent as m } from "../../lib/utils.js";
4
+ import { forwardRef as I, useRef as T, useState as r, useImperativeHandle as x } from "react";
5
+ import R from "../ClearButton/ClearButton.js";
6
+ import { Input as E } from "../Input/Input.js";
7
+ import H, { PASTE_BUTTON_WIDTH as N } from "../PasteButton/PasteButton.js";
8
+ const S = I(
9
+ ({
10
+ isValid: o,
11
+ disabled: l,
12
+ type: s = "text",
13
+ autoComplete: h = "off",
14
+ spellCheck: C = "false",
15
+ label: g = "Wallet address",
16
+ pasteButtonLabel: v = "Paste",
17
+ ...e
18
+ }, A) => {
19
+ const a = T(null), [F, P] = r(!1), [W, c] = r(""), [B, i] = r(!1);
20
+ x(A, () => a.current);
21
+ let u, f;
22
+ return !l && !F && !W ? (u = /* @__PURE__ */ d(
23
+ H,
24
+ {
25
+ inputRef: a,
26
+ label: v,
27
+ onPaste: () => {
28
+ var t;
29
+ if (a.current) {
30
+ const n = m(a.current);
31
+ (t = e.onChange) == null || t.call(e, n), P(!0);
32
+ }
33
+ }
34
+ }
35
+ ), f = N) : B && !l && (u = /* @__PURE__ */ d(
36
+ R,
37
+ {
38
+ inputRef: a,
39
+ onClear: () => {
40
+ var t;
41
+ if (a.current) {
42
+ const n = m(a.current);
43
+ (t = e.onChange) == null || t.call(e, n), c("");
44
+ }
45
+ }
46
+ }
47
+ ), f = 2.3), /* @__PURE__ */ d(
48
+ E,
49
+ {
50
+ ...e,
51
+ ref: a,
52
+ isValid: o,
53
+ disabled: l,
54
+ startAdornmentWidth: 2.3,
55
+ endAdornmentWidth: f,
56
+ endAdornment: u,
57
+ type: s,
58
+ autoComplete: h,
59
+ spellCheck: C,
60
+ label: g,
61
+ onFocus: (t) => {
62
+ var n;
63
+ i(!0), (n = e.onFocus) == null || n.call(e, t);
64
+ },
65
+ onBlur: (t) => {
66
+ var n;
67
+ i(!1), (n = e.onBlur) == null || n.call(e, t);
68
+ },
69
+ onChange: (t) => {
70
+ var n;
71
+ (n = e.onChange) == null || n.call(e, t), c(t.target.value);
72
+ }
73
+ }
74
+ );
75
+ }
76
+ );
77
+ S.displayName = "WalletAddressField";
78
+ export {
79
+ S as WalletAddressField,
80
+ S as default
81
+ };
@@ -0,0 +1 @@
1
+ export * from './WalletAddressField';
@@ -0,0 +1,4 @@
1
+ import { WalletAddressField as l } from "./WalletAddressField.js";
2
+ export {
3
+ l as WalletAddressField
4
+ };