@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.
- package/README.md +8 -17
- package/dist/components/AlertDialog/AlertDialog.js +94 -0
- package/dist/components/AlertDialog/index.d.ts +1 -0
- package/dist/components/AlertDialog/index.js +13 -0
- package/dist/components/AlertDialog/types.d.ts +172 -0
- package/dist/components/AlertDialog/types.js +1 -0
- package/dist/components/AlertDialog/use-alert-dialog.d.ts +6 -0
- package/dist/components/AlertDialog/use-alert-dialog.js +11 -0
- package/dist/components/BottomBar/BottomBar.d.ts +13 -0
- package/dist/components/BottomBar/BottomBar.js +21 -0
- package/dist/components/BottomBar/index.d.ts +1 -0
- package/dist/components/BottomBar/index.js +4 -0
- package/dist/components/BulletList/BulletList.d.ts +10 -0
- package/dist/components/BulletList/BulletList.js +11 -0
- package/dist/components/BulletList/index.d.ts +1 -0
- package/dist/components/BulletList/index.js +4 -0
- package/dist/components/BulletListItem/BulletListItem.d.ts +7 -0
- package/dist/components/BulletListItem/BulletListItem.js +23 -0
- package/dist/components/BulletListItem/index.d.ts +1 -0
- package/dist/components/BulletListItem/index.js +4 -0
- package/dist/components/BulletPoint/BulletPoint.d.ts +6 -0
- package/dist/components/BulletPoint/BulletPoint.js +22 -0
- package/dist/components/BulletPoint/index.d.ts +1 -0
- package/dist/components/BulletPoint/index.js +1 -0
- package/dist/components/Button/Button.d.ts +10 -22
- package/dist/components/Button/Button.js +40 -72
- package/dist/components/Checkbox/Checkbox.d.ts +24 -4
- package/dist/components/Checkbox/Checkbox.js +5 -5
- package/dist/components/Chip/Chip.d.ts +2 -1
- package/dist/components/Chip/Chip.js +14 -8
- package/dist/components/ClearButton/Clear.js +14 -14
- package/dist/components/ClearButton/ClearButton.js +11 -11
- package/dist/components/ColorPicker/ColorPicker.js +14 -14
- package/dist/components/CountryDrawer/CountryDrawer.d.ts +12 -0
- package/dist/components/CountryDrawer/CountryDrawer.js +63 -0
- package/dist/components/CountryDrawer/index.d.ts +1 -0
- package/dist/components/CountryDrawer/index.js +4 -0
- package/dist/components/CountryDrawer/useCountryFiltering.d.ts +7 -0
- package/dist/components/CountryDrawer/useCountryFiltering.js +9 -0
- package/dist/components/CountryDrawer/useCountryGrouping.d.ts +13 -0
- package/dist/components/CountryDrawer/useCountryGrouping.js +17 -0
- package/dist/components/Drawer/Drawer.d.ts +28 -6
- package/dist/components/Drawer/Drawer.js +67 -28
- package/dist/components/Drawer/index.js +6 -4
- package/dist/components/Drawer/types.d.ts +167 -0
- package/dist/components/Drawer/types.js +1 -0
- package/dist/components/Drawer/use-drawer.d.ts +8 -0
- package/dist/components/Drawer/use-drawer.js +11 -0
- package/dist/components/Flag/LazyFlag.js +1 -1
- package/dist/components/Flag/flag-components/eu.d.ts +3 -0
- package/dist/components/Flag/flag-components/eu.js +83 -0
- package/dist/components/Flag/flag-components/index.d.ts +1 -0
- package/dist/components/Flag/flag-components/index.js +56 -54
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Icons/ArrowDown.js +26 -0
- package/dist/components/Icons/Eye.d.ts +8 -0
- package/dist/components/Icons/Eye.js +40 -0
- package/dist/components/Icons/EyeClosed.d.ts +8 -0
- package/dist/components/Icons/EyeClosed.js +60 -0
- package/dist/components/Icons/Fail.d.ts +8 -0
- package/dist/components/Icons/Fail.js +82 -0
- package/dist/components/Icons/MagicWand.d.ts +8 -0
- package/dist/components/Icons/MagicWand.js +60 -0
- package/dist/components/Icons/Magnifier.d.ts +1 -1
- package/dist/components/Icons/Magnifier.js +20 -11
- package/dist/components/Icons/Success.d.ts +8 -0
- package/dist/components/Icons/Success.js +82 -0
- package/dist/components/Icons/Tick.js +6 -7
- package/dist/components/Icons/XMark.d.ts +8 -0
- package/dist/components/Icons/XMark.js +27 -0
- package/dist/components/Input/Input.d.ts +26 -2
- package/dist/components/Input/Input.js +116 -51
- package/dist/components/ListItem/ListItem.d.ts +17 -6
- package/dist/components/ListItem/ListItem.js +29 -22
- package/dist/components/Marble/Marble.d.ts +2 -0
- package/dist/components/Marble/Marble.js +23 -0
- package/dist/components/Marble/index.d.ts +1 -0
- package/dist/components/Marble/index.js +4 -0
- package/dist/components/NumberPad/Delete.d.ts +1 -8
- package/dist/components/NumberPad/Delete.js +9 -10
- package/dist/components/NumberPad/NumberPad.js +30 -24
- package/dist/components/OTPField/OTPField.js +8 -8
- package/dist/components/PasswordField/PasswordField.d.ts +13 -0
- package/dist/components/PasswordField/PasswordField.js +45 -0
- package/dist/components/PasswordField/index.d.ts +1 -0
- package/dist/components/PasswordField/index.js +4 -0
- package/dist/components/PasteButton/PasteButton.d.ts +1 -1
- package/dist/components/PasteButton/PasteButton.js +21 -17
- package/dist/components/PhoneField/CountryListItem.d.ts +3 -4
- package/dist/components/PhoneField/CountryListItem.js +21 -25
- package/dist/components/PhoneField/CountrySelectorButton.d.ts +3 -4
- package/dist/components/PhoneField/CountrySelectorButton.js +17 -17
- package/dist/components/PhoneField/GroupedCountryList.d.ts +14 -0
- package/dist/components/PhoneField/GroupedCountryList.js +30 -0
- package/dist/components/PhoneField/PhoneField.d.ts +3 -14
- package/dist/components/PhoneField/PhoneField.js +71 -197
- package/dist/components/PhoneField/constants.js +4 -4
- package/dist/components/Pill/Pill.js +7 -7
- package/dist/components/Progress/Progress.d.ts +14 -0
- package/dist/components/Progress/Progress.js +31 -0
- package/dist/components/Progress/index.d.ts +1 -0
- package/dist/components/Progress/index.js +4 -0
- package/dist/components/RadioGroup/RadioGroupItem.js +1 -1
- package/dist/components/SearchField/SearchField.d.ts +6 -1
- package/dist/components/SearchField/SearchField.js +39 -35
- package/dist/components/Select/Select.js +46 -76
- package/dist/components/{Button → Spinner}/Spinner.d.ts +2 -2
- package/dist/components/Spinner/Spinner.js +36 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Spinner/index.js +4 -0
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.d.ts +11 -0
- package/dist/components/Tabs/Tabs.js +58 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +5 -0
- package/dist/components/Tabs/types.d.ts +53 -0
- package/dist/components/Tabs/types.js +1 -0
- package/dist/components/TextArea/TextArea.d.ts +25 -0
- package/dist/components/TextArea/TextArea.js +54 -0
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/TextArea/index.js +4 -0
- package/dist/components/Toast/Toast.d.ts +9 -0
- package/dist/components/Toast/Toast.js +51 -0
- package/dist/components/Toast/Toaster.d.ts +3 -0
- package/dist/components/Toast/Toaster.js +14 -0
- package/dist/components/Toast/index.d.ts +3 -0
- package/dist/components/Toast/index.js +12 -0
- package/dist/components/Toast/use-toast.d.ts +51 -0
- package/dist/components/Toast/use-toast.js +101 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +5 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +28 -0
- package/dist/components/ToggleGroup/index.d.ts +1 -0
- package/dist/components/ToggleGroup/index.js +5 -0
- package/dist/components/ToggleGroup/types.d.ts +101 -0
- package/dist/components/ToggleGroup/types.js +1 -0
- package/dist/components/Token/Token.d.ts +4 -0
- package/dist/components/Token/Token.js +12 -7
- package/dist/components/Token/icons/btc.d.ts +2 -2
- package/dist/components/Token/icons/btc.js +13 -58
- package/dist/components/Token/icons/dai.d.ts +3 -0
- package/dist/components/Token/icons/dai.js +27 -0
- package/dist/components/Token/icons/eth.d.ts +2 -2
- package/dist/components/Token/icons/eth.js +11 -58
- package/dist/components/Token/icons/index.d.ts +2 -0
- package/dist/components/Token/icons/index.js +8 -4
- package/dist/components/Token/icons/types.d.ts +7 -0
- package/dist/components/Token/icons/types.js +1 -0
- package/dist/components/Token/icons/usdc.d.ts +2 -2
- package/dist/components/Token/icons/usdc.js +16 -56
- package/dist/components/Token/icons/usdt.d.ts +3 -0
- package/dist/components/Token/icons/usdt.js +27 -0
- package/dist/components/Token/icons/utils.d.ts +9 -0
- package/dist/components/Token/icons/utils.js +11 -0
- package/dist/components/Token/icons/wld.d.ts +2 -2
- package/dist/components/Token/icons/wld.js +10 -41
- package/dist/components/TopBar/TopBar.d.ts +11 -0
- package/dist/components/TopBar/TopBar.js +23 -0
- package/dist/components/TopBar/index.d.ts +1 -0
- package/dist/components/TopBar/index.js +4 -0
- package/dist/components/Typography/Typography.d.ts +12 -8
- package/dist/components/Typography/Typography.js +72 -60
- package/dist/components/WalletAddressField/WalletAddressField.d.ts +23 -0
- package/dist/components/WalletAddressField/WalletAddressField.js +81 -0
- package/dist/components/WalletAddressField/index.d.ts +1 -0
- package/dist/components/WalletAddressField/index.js +4 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +91 -45
- package/dist/lib/constants/dropdownStyles.d.ts +1 -1
- package/dist/lib/constants/dropdownStyles.js +2 -2
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/tailwind/index.d.ts +41 -25
- package/dist/tailwind/index.js +128 -85
- package/package.json +73 -1
- package/public/fonts/TWKLausanne-350.woff +0 -0
- package/public/fonts/TWKLausanne-350Italic.woff +0 -0
- package/public/fonts/TWKLausanne-500.woff +0 -0
- package/public/fonts/TWKLausanne-500Italic.woff +0 -0
- package/public/fonts/TWKLausanne-600.woff +0 -0
- package/public/fonts/TWKLausanne-600Italic.woff +0 -0
- package/public/globals.css +1 -1
- package/public/images/marbles/marble1.png +0 -0
- package/public/images/marbles/marble2.png +0 -0
- package/public/images/marbles/marble3.svg +36 -0
- package/dist/components/Button/Spinner.js +0 -36
- package/dist/components/PhoneField/ArrowDown.js +0 -27
- package/dist/components/Select/ArrowDown.d.ts +0 -2
- package/dist/components/Select/ArrowDown.js +0 -27
- /package/dist/components/{PhoneField → Icons}/ArrowDown.d.ts +0 -0
@@ -1,5 +1,6 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
|
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
|
-
...
|
11
|
+
...C,
|
12
|
+
style: { color: "#005CFF" },
|
11
13
|
children: [
|
12
|
-
/* @__PURE__ */ t("
|
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: "
|
19
|
-
|
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__ */
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
-
|
33
|
+
i as default
|
74
34
|
};
|
@@ -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 {
|
2
|
-
declare const WLD: (props:
|
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
|
2
|
-
|
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
|
-
...
|
11
|
+
...C,
|
12
|
+
style: { color: "#181818" },
|
11
13
|
children: [
|
12
|
-
/* @__PURE__ */ t("
|
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: "
|
18
|
-
|
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
|
-
|
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';
|
@@ -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
|
11
|
+
level?: 1 | 2 | 3 | 4 | 5;
|
12
12
|
}
|
13
|
-
export interface
|
14
|
-
variant?: "
|
13
|
+
export interface TypographyCommonProps extends TypographyProps {
|
14
|
+
variant?: "heading" | "subtitle" | "body";
|
15
15
|
level?: 1 | 2 | 3 | 4;
|
16
16
|
}
|
17
|
-
export interface
|
18
|
-
variant?: "
|
19
|
-
level?: 1 | 2
|
17
|
+
export interface TypographyLabelProps extends TypographyProps {
|
18
|
+
variant?: "label";
|
19
|
+
level?: 1 | 2;
|
20
20
|
}
|
21
|
-
export
|
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" | "
|
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
|
2
|
-
import { cva as
|
3
|
-
import { forwardRef as
|
4
|
-
import { cn as
|
5
|
-
const c =
|
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
|
-
|
9
|
-
heading: "font-display font-semibold tracking-[-0.01em]
|
10
|
-
subtitle: "font-sans font-medium leading-narrow
|
11
|
-
|
12
|
-
|
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: "
|
27
|
+
variant: "display",
|
26
28
|
level: 1,
|
27
|
-
className: "text-
|
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-
|
35
|
+
className: "text-4xl"
|
58
36
|
},
|
59
37
|
{
|
60
38
|
variant: "heading",
|
61
39
|
level: 2,
|
62
|
-
className: "text-
|
40
|
+
className: "text-3xl"
|
63
41
|
},
|
64
42
|
{
|
65
43
|
variant: "heading",
|
66
44
|
level: 3,
|
67
|
-
className: "text-
|
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-
|
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: "
|
107
|
+
variant: "number",
|
111
108
|
level: 1,
|
112
|
-
className: "text-
|
109
|
+
className: "text-6xl tracking-[-0.01em]"
|
113
110
|
},
|
114
111
|
{
|
115
|
-
variant: "
|
112
|
+
variant: "number",
|
116
113
|
level: 2,
|
117
|
-
className: "text-
|
114
|
+
className: "text-5xl tracking-[-0.02em]"
|
118
115
|
},
|
119
116
|
{
|
120
|
-
variant: "
|
117
|
+
variant: "number",
|
121
118
|
level: 3,
|
122
|
-
className: "text-
|
119
|
+
className: "text-3xl tracking-[-0.01em]"
|
123
120
|
},
|
124
121
|
{
|
125
|
-
variant: "
|
122
|
+
variant: "number",
|
126
123
|
level: 4,
|
127
|
-
className: "text-[0.
|
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
|
-
}),
|
135
|
-
({ variant: a = "body", level: e = 2, children:
|
136
|
-
|
137
|
-
{
|
138
|
-
className:
|
139
|
-
ref:
|
140
|
-
...
|
141
|
-
children:
|
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
|
-
|
157
|
+
x.displayName = "Typography";
|
146
158
|
export {
|
147
|
-
|
148
|
-
|
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';
|