everest-npm-features 0.0.1

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 (129) hide show
  1. package/README.md +3 -0
  2. package/dist/ArrowRight-C6tjImpU.js +300 -0
  3. package/dist/Box-wAem3MQD.js +58 -0
  4. package/dist/Button-fWdSk-yh.js +451 -0
  5. package/dist/ButtonBase-SYP7klDp.js +876 -0
  6. package/dist/CircularProgress-DcXA6nAu.js +249 -0
  7. package/dist/Close-CdRA3xUs.js +75 -0
  8. package/dist/Container-CIMHcpEe.js +181 -0
  9. package/dist/ContentCopy-CexUUXuC.js +8 -0
  10. package/dist/DefaultPropsProvider-Y8MI-J-I.js +555 -0
  11. package/dist/DialogContent-JgT9A6nk.js +501 -0
  12. package/dist/FormControl-D4QuPCnV.js +249 -0
  13. package/dist/GlobalStyles-BOnEiMUE.js +23 -0
  14. package/dist/Grid-dtT_MVn3.js +501 -0
  15. package/dist/Grow-B3Swdn2Z.js +215 -0
  16. package/dist/IconButton-CRGy76pJ.js +237 -0
  17. package/dist/Modal-0q_y4zbS.js +1170 -0
  18. package/dist/Select-BNAaKK32.js +4046 -0
  19. package/dist/Slide-BlS6unRJ.js +229 -0
  20. package/dist/TextField-CPZo0_di.js +963 -0
  21. package/dist/TransitionGroupContext-VwpFXTPO.js +43 -0
  22. package/dist/Typography-kyxogyUq.js +256 -0
  23. package/dist/__vite-browser-external-DYxpcVy9-DYxpcVy9.js +4 -0
  24. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  25. package/dist/assets/documents.css +1 -0
  26. package/dist/assets/index.css +1 -0
  27. package/dist/assets/index2.css +1 -0
  28. package/dist/assets/keyboard.css +1 -0
  29. package/dist/assets/styles.css +1 -0
  30. package/dist/assets/styles2.css +1 -0
  31. package/dist/assets/tokenRow.css +1 -0
  32. package/dist/assets/withThemeProvider.css +1 -0
  33. package/dist/auth-Cj5FKr_m.js +19 -0
  34. package/dist/axios-xPiQW9EP.js +118114 -0
  35. package/dist/components/Profile/documents.d.ts +6 -0
  36. package/dist/components/Profile/documents.js +24 -0
  37. package/dist/components/Profile/index.d.ts +6 -0
  38. package/dist/components/Profile/index.js +592 -0
  39. package/dist/components/Receive/index.d.ts +2 -0
  40. package/dist/components/Receive/index.js +75 -0
  41. package/dist/components/Send/index.d.ts +6 -0
  42. package/dist/components/Send/index.js +387 -0
  43. package/dist/components/Shared/Keyboard/index.d.ts +1 -0
  44. package/dist/components/Shared/Keyboard/index.js +4 -0
  45. package/dist/components/Shared/Keyboard/keyboard.d.ts +8 -0
  46. package/dist/components/Shared/Keyboard/keyboard.js +152 -0
  47. package/dist/components/Shared/button.d.ts +11 -0
  48. package/dist/components/Shared/button.js +64 -0
  49. package/dist/components/Shared/incode.d.ts +20 -0
  50. package/dist/components/Shared/incode.js +202 -0
  51. package/dist/components/Shared/inputField.d.ts +7 -0
  52. package/dist/components/Shared/inputField.js +48 -0
  53. package/dist/components/Shared/pin.d.ts +9 -0
  54. package/dist/components/Shared/pin.js +96 -0
  55. package/dist/components/Shared/step.d.ts +8 -0
  56. package/dist/components/Shared/step.js +48 -0
  57. package/dist/components/Shared/transition.d.ts +7 -0
  58. package/dist/components/Shared/transition.js +11 -0
  59. package/dist/components/SignIn/index.d.ts +4 -0
  60. package/dist/components/SignIn/index.js +266 -0
  61. package/dist/components/SignIn/types.d.ts +7 -0
  62. package/dist/components/SignIn/types.js +1 -0
  63. package/dist/components/SignUp/biometric.d.ts +3 -0
  64. package/dist/components/SignUp/biometric.js +77 -0
  65. package/dist/components/SignUp/index.d.ts +3 -0
  66. package/dist/components/SignUp/index.js +393 -0
  67. package/dist/components/SignUp/pin.d.ts +3 -0
  68. package/dist/components/SignUp/pin.js +950 -0
  69. package/dist/components/SignUp/privacy.d.ts +2 -0
  70. package/dist/components/SignUp/privacy.js +259 -0
  71. package/dist/components/SignUp/terms.d.ts +2 -0
  72. package/dist/components/SignUp/terms.js +524 -0
  73. package/dist/components/SignUp/types.d.ts +54 -0
  74. package/dist/components/SignUp/types.js +1 -0
  75. package/dist/components/SignUp/userInfo.d.ts +3 -0
  76. package/dist/components/SignUp/userInfo.js +47 -0
  77. package/dist/components/WalletPortfolio/index.d.ts +3 -0
  78. package/dist/components/WalletPortfolio/index.js +557 -0
  79. package/dist/components/WalletPortfolio/tokenRow.d.ts +17 -0
  80. package/dist/components/WalletPortfolio/tokenRow.js +11 -0
  81. package/dist/components/WalletPortfolio/types.d.ts +10 -0
  82. package/dist/components/WalletPortfolio/types.js +1 -0
  83. package/dist/createSimplePaletteValueFilter-CsgjlRAs.js +659 -0
  84. package/dist/createSvgIcon-CAZr4ukt.js +249 -0
  85. package/dist/createTheme-NrBCWesw.js +3386 -0
  86. package/dist/debounce-46wSf_lW.js +15 -0
  87. package/dist/defaultTheme-OIfL8Ia7.js +5 -0
  88. package/dist/dialog-success-BDNJV4Tk.js +4 -0
  89. package/dist/dividerClasses-Z7VLlu5C.js +10 -0
  90. package/dist/documents-CL4Ajr_B.js +569 -0
  91. package/dist/exactProp-C1Lmtwf_.js +13 -0
  92. package/dist/extendSxProp-CuERe1TA.js +37 -0
  93. package/dist/hoc/withThemeProvider.d.ts +6 -0
  94. package/dist/hoc/withThemeProvider.js +635 -0
  95. package/dist/hooks/useDialog/index.d.ts +5 -0
  96. package/dist/hooks/useDialog/index.js +78 -0
  97. package/dist/hooks/useDialog/types.d.ts +14 -0
  98. package/dist/hooks/useDialog/types.js +1 -0
  99. package/dist/hooks/useSnackBar.d.ts +14 -0
  100. package/dist/hooks/useSnackBar.js +968 -0
  101. package/dist/index-CAoLi5Qq.js +827 -0
  102. package/dist/index-Cq3eHOnB.js +22 -0
  103. package/dist/index-DKTkUdik.js +6 -0
  104. package/dist/index-iAyNk1r6.js +72 -0
  105. package/dist/main.d.ts +7 -0
  106. package/dist/main.js +16 -0
  107. package/dist/pin-empty-D9665KFr.js +6 -0
  108. package/dist/react-redux-VW99uJjf.js +5908 -0
  109. package/dist/react-webcam-Cov1TP0q.js +639 -0
  110. package/dist/styled-Da6GnxEE.js +5 -0
  111. package/dist/styles.module-Ctfaq7f2.js +10 -0
  112. package/dist/styles.module-KeND8lCR.js +9 -0
  113. package/dist/tokenRow-Cdd_jFjp.js +206 -0
  114. package/dist/useFormControl-Bo6Tf_xo.js +46 -0
  115. package/dist/useSlot-CURNJ3JC.js +306 -0
  116. package/dist/useTheme-DWRMvRU8.js +9 -0
  117. package/dist/useTheme-nlj1B_-c.js +11 -0
  118. package/dist/useThemeProps-BqWuFW3z.js +40 -0
  119. package/dist/useThemeWithoutDefault-BdYkMk0o.js +12 -0
  120. package/dist/useTimeout-lr7ryrda.js +75 -0
  121. package/dist/util/constants.d.ts +20 -0
  122. package/dist/util/constants.js +23 -0
  123. package/dist/util/conversions.d.ts +9 -0
  124. package/dist/util/conversions.js +22284 -0
  125. package/dist/util/functions.d.ts +15 -0
  126. package/dist/util/functions.js +94 -0
  127. package/dist/utils-_FXWkn40.js +19473 -0
  128. package/dist/wallet-DN7ej6mj.js +273 -0
  129. package/package.json +59 -0
@@ -0,0 +1,273 @@
1
+ import * as c from "react";
2
+ import { g as E, f as d, P as t } from "./createTheme-NrBCWesw.js";
3
+ import { g as f, s as V, r as w, m as B, u as F, a as I, b as _ } from "./createSimplePaletteValueFilter-CsgjlRAs.js";
4
+ import { L as x } from "./Select-BNAaKK32.js";
5
+ import { jsx as $ } from "react/jsx-runtime";
6
+ import { B as P } from "./ButtonBase-SYP7klDp.js";
7
+ import { d as T } from "./dividerClasses-Z7VLlu5C.js";
8
+ import { a as A } from "./useTimeout-lr7ryrda.js";
9
+ import { u as D } from "./TransitionGroupContext-VwpFXTPO.js";
10
+ import { U as j, F as G, e as H } from "./react-redux-VW99uJjf.js";
11
+ function ae(e) {
12
+ return E("MuiListItemIcon", e);
13
+ }
14
+ const O = f("MuiListItemIcon", ["root", "alignItemsFlexStart"]), M = f("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
15
+ function W(e) {
16
+ return E("MuiMenuItem", e);
17
+ }
18
+ const i = f("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), K = (e, s) => {
19
+ const {
20
+ ownerState: o
21
+ } = e;
22
+ return [s.root, o.dense && s.dense, o.divider && s.divider, !o.disableGutters && s.gutters];
23
+ }, z = (e) => {
24
+ const {
25
+ disabled: s,
26
+ dense: o,
27
+ divider: a,
28
+ disableGutters: l,
29
+ selected: p,
30
+ classes: n
31
+ } = e, r = _({
32
+ root: ["root", o && "dense", s && "disabled", !l && "gutters", a && "divider", p && "selected"]
33
+ }, W, n);
34
+ return {
35
+ ...n,
36
+ ...r
37
+ };
38
+ }, q = V(P, {
39
+ shouldForwardProp: (e) => w(e) || e === "classes",
40
+ name: "MuiMenuItem",
41
+ slot: "Root",
42
+ overridesResolver: K
43
+ })(B(({
44
+ theme: e
45
+ }) => ({
46
+ ...e.typography.body1,
47
+ display: "flex",
48
+ justifyContent: "flex-start",
49
+ alignItems: "center",
50
+ position: "relative",
51
+ textDecoration: "none",
52
+ minHeight: 48,
53
+ paddingTop: 6,
54
+ paddingBottom: 6,
55
+ boxSizing: "border-box",
56
+ whiteSpace: "nowrap",
57
+ "&:hover": {
58
+ textDecoration: "none",
59
+ backgroundColor: (e.vars || e).palette.action.hover,
60
+ // Reset on touch devices, it doesn't add specificity
61
+ "@media (hover: none)": {
62
+ backgroundColor: "transparent"
63
+ }
64
+ },
65
+ [`&.${i.selected}`]: {
66
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : d(e.palette.primary.main, e.palette.action.selectedOpacity),
67
+ [`&.${i.focusVisible}`]: {
68
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : d(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
69
+ }
70
+ },
71
+ [`&.${i.selected}:hover`]: {
72
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : d(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
73
+ // Reset on touch devices, it doesn't add specificity
74
+ "@media (hover: none)": {
75
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : d(e.palette.primary.main, e.palette.action.selectedOpacity)
76
+ }
77
+ },
78
+ [`&.${i.focusVisible}`]: {
79
+ backgroundColor: (e.vars || e).palette.action.focus
80
+ },
81
+ [`&.${i.disabled}`]: {
82
+ opacity: (e.vars || e).palette.action.disabledOpacity
83
+ },
84
+ [`& + .${T.root}`]: {
85
+ marginTop: e.spacing(1),
86
+ marginBottom: e.spacing(1)
87
+ },
88
+ [`& + .${T.inset}`]: {
89
+ marginLeft: 52
90
+ },
91
+ [`& .${M.root}`]: {
92
+ marginTop: 0,
93
+ marginBottom: 0
94
+ },
95
+ [`& .${M.inset}`]: {
96
+ paddingLeft: 36
97
+ },
98
+ [`& .${O.root}`]: {
99
+ minWidth: 36
100
+ },
101
+ variants: [{
102
+ props: ({
103
+ ownerState: s
104
+ }) => !s.disableGutters,
105
+ style: {
106
+ paddingLeft: 16,
107
+ paddingRight: 16
108
+ }
109
+ }, {
110
+ props: ({
111
+ ownerState: s
112
+ }) => s.divider,
113
+ style: {
114
+ borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
115
+ backgroundClip: "padding-box"
116
+ }
117
+ }, {
118
+ props: ({
119
+ ownerState: s
120
+ }) => !s.dense,
121
+ style: {
122
+ [e.breakpoints.up("sm")]: {
123
+ minHeight: "auto"
124
+ }
125
+ }
126
+ }, {
127
+ props: ({
128
+ ownerState: s
129
+ }) => s.dense,
130
+ style: {
131
+ minHeight: 32,
132
+ // https://m2.material.io/components/menus#specs > Dense
133
+ paddingTop: 4,
134
+ paddingBottom: 4,
135
+ ...e.typography.body2,
136
+ [`& .${O.root} svg`]: {
137
+ fontSize: "1.25rem"
138
+ }
139
+ }
140
+ }]
141
+ }))), Q = /* @__PURE__ */ c.forwardRef(function(s, o) {
142
+ const a = F({
143
+ props: s,
144
+ name: "MuiMenuItem"
145
+ }), {
146
+ autoFocus: l = !1,
147
+ component: p = "li",
148
+ dense: n = !1,
149
+ divider: b = !1,
150
+ disableGutters: r = !1,
151
+ focusVisibleClassName: L,
152
+ role: k = "menuitem",
153
+ tabIndex: g,
154
+ className: N,
155
+ ...R
156
+ } = a, y = c.useContext(x), v = c.useMemo(() => ({
157
+ dense: n || y.dense || !1,
158
+ disableGutters: r
159
+ }), [y.dense, n, r]), u = c.useRef(null);
160
+ A(() => {
161
+ l && (u.current ? u.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
162
+ }, [l]);
163
+ const S = {
164
+ ...a,
165
+ dense: v.dense,
166
+ divider: b,
167
+ disableGutters: r
168
+ }, m = z(a), U = D(u, o);
169
+ let C;
170
+ return a.disabled || (C = g !== void 0 ? g : -1), /* @__PURE__ */ $(x.Provider, {
171
+ value: v,
172
+ children: /* @__PURE__ */ $(q, {
173
+ ref: U,
174
+ role: k,
175
+ tabIndex: C,
176
+ component: p,
177
+ focusVisibleClassName: I(m.focusVisible, L),
178
+ className: I(m.root, N),
179
+ ...R,
180
+ ownerState: S,
181
+ classes: m
182
+ })
183
+ });
184
+ });
185
+ process.env.NODE_ENV !== "production" && (Q.propTypes = {
186
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
187
+ // │ These PropTypes are generated from the TypeScript type definitions. │
188
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
189
+ // └─────────────────────────────────────────────────────────────────────┘
190
+ /**
191
+ * If `true`, the list item is focused during the first mount.
192
+ * Focus will also be triggered if the value changes from false to true.
193
+ * @default false
194
+ */
195
+ autoFocus: t.bool,
196
+ /**
197
+ * The content of the component.
198
+ */
199
+ children: t.node,
200
+ /**
201
+ * Override or extend the styles applied to the component.
202
+ */
203
+ classes: t.object,
204
+ /**
205
+ * @ignore
206
+ */
207
+ className: t.string,
208
+ /**
209
+ * The component used for the root node.
210
+ * Either a string to use a HTML element or a component.
211
+ */
212
+ component: t.elementType,
213
+ /**
214
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used.
215
+ * The prop defaults to the value inherited from the parent Menu component.
216
+ * @default false
217
+ */
218
+ dense: t.bool,
219
+ /**
220
+ * @ignore
221
+ */
222
+ disabled: t.bool,
223
+ /**
224
+ * If `true`, the left and right padding is removed.
225
+ * @default false
226
+ */
227
+ disableGutters: t.bool,
228
+ /**
229
+ * If `true`, a 1px light border is added to the bottom of the menu item.
230
+ * @default false
231
+ */
232
+ divider: t.bool,
233
+ /**
234
+ * This prop can help identify which element has keyboard focus.
235
+ * The class name will be applied when the element gains the focus through keyboard interaction.
236
+ * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
237
+ * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
238
+ * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
239
+ * if needed.
240
+ */
241
+ focusVisibleClassName: t.string,
242
+ /**
243
+ * @ignore
244
+ */
245
+ role: t.string,
246
+ /**
247
+ * If `true`, the component is selected.
248
+ * @default false
249
+ */
250
+ selected: t.bool,
251
+ /**
252
+ * The system prop that allows defining system overrides as well as additional CSS styles.
253
+ */
254
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
255
+ /**
256
+ * @default 0
257
+ */
258
+ tabIndex: t.number
259
+ });
260
+ const ne = () => ({
261
+ type: j
262
+ }), re = () => ({
263
+ type: G
264
+ }), ie = () => ({
265
+ type: H
266
+ });
267
+ export {
268
+ Q as M,
269
+ re as a,
270
+ ie as f,
271
+ ae as g,
272
+ ne as u
273
+ };
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "everest-npm-features",
3
+ "version": "0.0.1",
4
+ "description": "Everest frontend features library.",
5
+ "type": "module",
6
+ "main": "dist/main.js",
7
+ "types": "dist/main.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "sideEffects": [
12
+ "**/*.css"
13
+ ],
14
+ "scripts": {
15
+ "dev": "vite",
16
+ "build": "tsc -b && vite build",
17
+ "prepublishOnly": "npm run build",
18
+ "lint": "eslint .",
19
+ "preview": "vite preview"
20
+ },
21
+ "peerDependencies": {
22
+ "react": "^18.3.1",
23
+ "react-dom": "^18.3.1",
24
+ "react-redux": "^9.1.2"
25
+ },
26
+ "dependencies": {
27
+ "@emotion/react": "^11.13.3",
28
+ "@emotion/styled": "^11.13.0",
29
+ "@incodetech/welcome": "^1.74.0",
30
+ "@mui/icons-material": "^6.0.2",
31
+ "@mui/material": "^6.0.2",
32
+ "everest-npm-api": "file:../everest-npm-api",
33
+ "qrcode.react": "^4.0.1",
34
+ "react-webcam": "^7.2.0",
35
+ "uuid": "^10.0.0",
36
+ "web3": "^4.13.0"
37
+ },
38
+ "devDependencies": {
39
+ "@eslint/js": "^9.8.0",
40
+ "@types/node": "^22.2.0",
41
+ "@types/react": "^18.3.3",
42
+ "@types/react-dom": "^18.3.0",
43
+ "@types/uuid": "^10.0.0",
44
+ "@vitejs/plugin-react": "^4.3.1",
45
+ "eslint": "^9.8.0",
46
+ "eslint-plugin-react-hooks": "^5.1.0-rc.0",
47
+ "eslint-plugin-react-refresh": "^0.4.9",
48
+ "glob": "^11.0.0",
49
+ "globals": "^15.9.0",
50
+ "react": "^18.3.1",
51
+ "react-dom": "^18.3.1",
52
+ "react-redux": "^9.1.2",
53
+ "typescript": "^5.6.2",
54
+ "typescript-eslint": "^8.0.0",
55
+ "vite": "^5.4.0",
56
+ "vite-plugin-dts": "^4.0.2",
57
+ "vite-plugin-lib-inject-css": "^2.1.1"
58
+ }
59
+ }