fare-privy-core 1.7.8 → 1.8.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 (109) hide show
  1. package/README.md +105 -26
  2. package/dist/PrivyProviderTest.d.ts +1 -1
  3. package/dist/PrivyProviderTest.d.ts.map +1 -1
  4. package/dist/PrivyProviderTest.js +9 -43
  5. package/dist/PrivyProviderTest.js.map +1 -1
  6. package/dist/index.d.ts +44 -6
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +55 -6
  9. package/dist/index.js.map +1 -1
  10. package/dist/src/components/WalletOverview.d.ts +12 -0
  11. package/dist/src/components/WalletOverview.d.ts.map +1 -0
  12. package/dist/src/components/WalletOverview.js +46 -0
  13. package/dist/src/components/WalletOverview.js.map +1 -0
  14. package/dist/src/components/shared/Button/index.d.ts +22 -0
  15. package/dist/src/components/shared/Button/index.d.ts.map +1 -0
  16. package/dist/src/components/shared/Button/index.js +16 -0
  17. package/dist/src/components/shared/Button/index.js.map +1 -0
  18. package/dist/src/components/shared/Button/style.d.ts +560 -0
  19. package/dist/src/components/shared/Button/style.d.ts.map +1 -0
  20. package/dist/src/components/shared/Button/style.js +249 -0
  21. package/dist/src/components/shared/Button/style.js.map +1 -0
  22. package/dist/src/components/shared/Modal/Card.d.ts +4 -0
  23. package/dist/src/components/shared/Modal/Card.d.ts.map +1 -0
  24. package/dist/src/components/shared/Modal/Card.js +30 -0
  25. package/dist/src/components/shared/Modal/Card.js.map +1 -0
  26. package/dist/src/components/shared/Modal/ModalFooter.d.ts +7 -0
  27. package/dist/src/components/shared/Modal/ModalFooter.d.ts.map +1 -0
  28. package/dist/src/components/shared/Modal/ModalFooter.js +10 -0
  29. package/dist/src/components/shared/Modal/ModalFooter.js.map +1 -0
  30. package/dist/src/components/shared/Modal/ModalHeader.d.ts +8 -0
  31. package/dist/src/components/shared/Modal/ModalHeader.d.ts.map +1 -0
  32. package/dist/src/components/shared/Modal/ModalHeader.js +30 -0
  33. package/dist/src/components/shared/Modal/ModalHeader.js.map +1 -0
  34. package/dist/src/components/shared/Modal/animations.d.ts +4 -0
  35. package/dist/src/components/shared/Modal/animations.d.ts.map +1 -0
  36. package/dist/src/components/shared/Modal/animations.js +26 -0
  37. package/dist/src/components/shared/Modal/animations.js.map +1 -0
  38. package/dist/src/components/shared/Modal/styles.d.ts +1625 -0
  39. package/dist/src/components/shared/Modal/styles.d.ts.map +1 -0
  40. package/dist/src/components/shared/Modal/styles.js +210 -0
  41. package/dist/src/components/shared/Modal/styles.js.map +1 -0
  42. package/dist/src/components/shared/Modal/types.d.ts +18 -0
  43. package/dist/src/components/shared/Modal/types.d.ts.map +1 -0
  44. package/dist/src/components/shared/Modal/types.js +2 -0
  45. package/dist/src/components/shared/Modal/types.js.map +1 -0
  46. package/dist/src/hooks/index.d.ts.map +1 -0
  47. package/dist/src/hooks/index.js.map +1 -0
  48. package/dist/src/hooks/useActiveWallet.d.ts +19 -0
  49. package/dist/src/hooks/useActiveWallet.d.ts.map +1 -0
  50. package/dist/{hooks → src/hooks}/useActiveWallet.js +15 -23
  51. package/dist/src/hooks/useActiveWallet.js.map +1 -0
  52. package/dist/src/hooks/useAuthActions.d.ts.map +1 -0
  53. package/dist/src/hooks/useAuthActions.js.map +1 -0
  54. package/dist/{hooks → src/hooks}/useConnectedWallets.d.ts +2 -2
  55. package/dist/src/hooks/useConnectedWallets.d.ts.map +1 -0
  56. package/dist/{hooks → src/hooks}/useConnectedWallets.js +10 -10
  57. package/dist/src/hooks/useConnectedWallets.js.map +1 -0
  58. package/dist/src/hooks/useIsAuthenticated.d.ts.map +1 -0
  59. package/dist/{hooks → src/hooks}/useIsAuthenticated.js +3 -3
  60. package/dist/src/hooks/useIsAuthenticated.js.map +1 -0
  61. package/dist/src/hooks/useWalletAddresses.d.ts.map +1 -0
  62. package/dist/src/hooks/useWalletAddresses.js +42 -0
  63. package/dist/src/hooks/useWalletAddresses.js.map +1 -0
  64. package/dist/{hooks → src/hooks}/useWalletBalance.d.ts +1 -1
  65. package/dist/src/hooks/useWalletBalance.d.ts.map +1 -0
  66. package/dist/src/hooks/useWalletBalance.js +147 -0
  67. package/dist/src/hooks/useWalletBalance.js.map +1 -0
  68. package/dist/src/modals/SelectWalletModal/index.d.ts +30 -0
  69. package/dist/src/modals/SelectWalletModal/index.d.ts.map +1 -0
  70. package/dist/src/modals/SelectWalletModal/index.js +68 -0
  71. package/dist/src/modals/SelectWalletModal/index.js.map +1 -0
  72. package/dist/src/modals/SelectWalletModal/styles.d.ts +3001 -0
  73. package/dist/src/modals/SelectWalletModal/styles.d.ts.map +1 -0
  74. package/dist/src/modals/SelectWalletModal/styles.js +137 -0
  75. package/dist/src/modals/SelectWalletModal/styles.js.map +1 -0
  76. package/dist/src/modals/SelectWalletModal/variants.d.ts +6 -0
  77. package/dist/src/modals/SelectWalletModal/variants.d.ts.map +1 -0
  78. package/dist/src/modals/SelectWalletModal/variants.js +59 -0
  79. package/dist/src/modals/SelectWalletModal/variants.js.map +1 -0
  80. package/dist/src/store/switchWallet.d.ts.map +1 -0
  81. package/dist/src/store/switchWallet.js.map +1 -0
  82. package/package.json +114 -98
  83. package/dist/farePrivy/store/switchWallet.d.ts.map +0 -1
  84. package/dist/farePrivy/store/switchWallet.js.map +0 -1
  85. package/dist/hooks/index.d.ts.map +0 -1
  86. package/dist/hooks/index.js.map +0 -1
  87. package/dist/hooks/useActiveWallet.d.ts +0 -24
  88. package/dist/hooks/useActiveWallet.d.ts.map +0 -1
  89. package/dist/hooks/useActiveWallet.js.map +0 -1
  90. package/dist/hooks/useAuthActions.d.ts.map +0 -1
  91. package/dist/hooks/useAuthActions.js.map +0 -1
  92. package/dist/hooks/useConnectedWallets.d.ts.map +0 -1
  93. package/dist/hooks/useConnectedWallets.js.map +0 -1
  94. package/dist/hooks/useIsAuthenticated.d.ts.map +0 -1
  95. package/dist/hooks/useIsAuthenticated.js.map +0 -1
  96. package/dist/hooks/useWalletAddresses.d.ts.map +0 -1
  97. package/dist/hooks/useWalletAddresses.js +0 -50
  98. package/dist/hooks/useWalletAddresses.js.map +0 -1
  99. package/dist/hooks/useWalletBalance.d.ts.map +0 -1
  100. package/dist/hooks/useWalletBalance.js +0 -99
  101. package/dist/hooks/useWalletBalance.js.map +0 -1
  102. /package/dist/{hooks → src/hooks}/index.d.ts +0 -0
  103. /package/dist/{hooks → src/hooks}/index.js +0 -0
  104. /package/dist/{hooks → src/hooks}/useAuthActions.d.ts +0 -0
  105. /package/dist/{hooks → src/hooks}/useAuthActions.js +0 -0
  106. /package/dist/{hooks → src/hooks}/useIsAuthenticated.d.ts +0 -0
  107. /package/dist/{hooks → src/hooks}/useWalletAddresses.d.ts +0 -0
  108. /package/dist/{farePrivy → src}/store/switchWallet.d.ts +0 -0
  109. /package/dist/{farePrivy → src}/store/switchWallet.js +0 -0
@@ -0,0 +1,249 @@
1
+ import { ButtonEnum } from ".";
2
+ import { motion } from "framer-motion";
3
+ import { css, keyframes } from "styled-components";
4
+ import styled from "styled-components";
5
+ // For npm: require consumers to provide colors and spacing via theme or props.
6
+ // Provide fallback defaults for colors and spacing.
7
+ const DEFAULT_COLORS = {
8
+ textOne: "#fff",
9
+ textTwo: "#aaa",
10
+ borderOne: "#1b1d26",
11
+ backgroundFour: "#101010",
12
+ warning: "#fbbf24",
13
+ error: "#ef4444",
14
+ fareBlue: "#410dff",
15
+ fareAqua: "#4af5d3",
16
+ };
17
+ const DEFAULT_SPACING = {
18
+ xs: 4,
19
+ sm: 12,
20
+ lg: 24,
21
+ };
22
+ const flashBar = keyframes `
23
+ 0% {
24
+ opacity: 0%;
25
+ }
26
+ 50% {
27
+ opacity: 100%;
28
+ }
29
+ 100% {
30
+ opacity: 0%;
31
+ }
32
+ `;
33
+ export const BaseButton = styled(motion.button) `
34
+ text-transform: uppercase;
35
+ color: ${({ theme }) => theme?.textOne || DEFAULT_COLORS.textOne};
36
+ padding: ${({ theme }) => theme?.spacing?.sm || DEFAULT_SPACING.sm}px;
37
+ border-radius: 6px;
38
+ cursor: pointer;
39
+ bottom: ${({ theme }) => theme?.spacing?.lg || DEFAULT_SPACING.lg}px;
40
+ width: auto;
41
+ height: 48px;
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ background: rgba(0, 0, 0, 0.06);
46
+ border: 1px solid
47
+ ${({ theme }) => theme?.borderOne || DEFAULT_COLORS.borderOne};
48
+ transition: 0.2s all ease-in-out;
49
+ text-wrap: nowrap;
50
+
51
+ backdrop-filter: blur(2px);
52
+ -webkit-backdrop-filter: blur(2px);
53
+ -moz-backdrop-filter: blur(2px);
54
+ -ms-backdrop-filter: blur(2px);
55
+
56
+ &.copy-btn {
57
+ width: 100px;
58
+ background-color: ${({ theme }) => theme?.fareAqua || DEFAULT_COLORS.fareAqua}50;
59
+ color: white;
60
+ font-weight: bold;
61
+ height: 40px;
62
+ padding-top: 10px;
63
+ }
64
+
65
+ ${(props) => props.$isMinified
66
+ ? `${props.theme?.spacing?.xs || DEFAULT_SPACING.xs}px ${props.theme?.spacing?.sm || DEFAULT_SPACING.sm}px`
67
+ : `${props.theme?.spacing?.sm || DEFAULT_SPACING.sm}px`}
68
+
69
+ > div {
70
+ line-height: 1px;
71
+ }
72
+
73
+ > img {
74
+ margin-left: ${({ theme }) => theme?.spacing?.xs || DEFAULT_SPACING.xs}px;
75
+ height: 18px;
76
+ }
77
+
78
+ > div:nth-child(2) {
79
+ margin: 0 ${({ theme }) => theme?.spacing?.sm || DEFAULT_SPACING.sm}px;
80
+ }
81
+
82
+ &:disabled {
83
+ opacity: 0.4;
84
+ cursor: not-allowed;
85
+ }
86
+
87
+ @media (max-width: 1200px) {
88
+ margin-block: 5px;
89
+ height: 3rem;
90
+ align-items: normal;
91
+ text-wrap: nowrap;
92
+ }
93
+
94
+ ${({ buttonType, isLoading, theme }) => {
95
+ const fareBlue = theme?.fareBlue || DEFAULT_COLORS.fareBlue;
96
+ const fareAqua = theme?.fareAqua || DEFAULT_COLORS.fareAqua;
97
+ const warning = theme?.warning || DEFAULT_COLORS.warning;
98
+ const error = theme?.error || DEFAULT_COLORS.error;
99
+ const borderOne = theme?.borderOne || DEFAULT_COLORS.borderOne;
100
+ const backgroundFour = theme?.backgroundFour || DEFAULT_COLORS.backgroundFour;
101
+ const textOne = theme?.textOne || DEFAULT_COLORS.textOne;
102
+ const textTwo = theme?.textTwo || DEFAULT_COLORS.textTwo;
103
+ if (buttonType === ButtonEnum.BASE) {
104
+ return `
105
+ &:hover {
106
+ border: 1px solid ${fareBlue};
107
+ }
108
+ `;
109
+ }
110
+ if (buttonType === ButtonEnum.PRIMARY_1) {
111
+ return `
112
+ border: 1px solid ${fareBlue};
113
+ box-shadow: 0px 0px 3px ${fareBlue}, inset 0px 0px 56px ${fareBlue}00;
114
+ background: transparent;
115
+
116
+ &:hover {
117
+ background: ${fareBlue}00;
118
+ box-shadow: 0px 0px 5px ${fareBlue}, inset 0px 0px 56px ${fareBlue}75;
119
+ }
120
+ `;
121
+ }
122
+ if (buttonType === ButtonEnum.CONNECT_WALLET) {
123
+ return `
124
+ border: 1px solid ${fareAqua};
125
+ box-shadow: 0px 0px 3px ${fareAqua}, inset 0px 0px 56px ${fareAqua}00;
126
+ background: transparent;
127
+
128
+ &:hover {
129
+ &:not(:disabled) {
130
+ background: ${fareAqua}00;
131
+ box-shadow: 0px 0px 5px ${fareAqua}, inset 0px 0px 56px ${fareAqua}75;
132
+ }
133
+ }
134
+ `;
135
+ }
136
+ if (buttonType === ButtonEnum.WARNING) {
137
+ return `
138
+ border: 1px solid ${warning};
139
+ box-shadow: 0px 0px 3px ${warning};
140
+ background: ${isLoading ? "transparent" : `${warning}35`};
141
+
142
+ &:hover {
143
+ background: ${warning}50;
144
+ box-shadow: 0px 0px 5px ${warning};
145
+ }
146
+ `;
147
+ }
148
+ if (buttonType === ButtonEnum.ERROR) {
149
+ return `
150
+ border: 1px solid ${error};
151
+ box-shadow: 0px 0px 3px ${error};
152
+ background: ${isLoading ? "transparent" : `${error}35`};
153
+
154
+ &:hover {
155
+ background: ${error}50;
156
+ box-shadow: 0px 0px 5px ${error};
157
+ }
158
+ `;
159
+ }
160
+ if (buttonType === ButtonEnum.ERROR_2) {
161
+ return `
162
+ border: 1px solid ${error};
163
+ box-shadow: 0px 0px 3px ${error};
164
+
165
+ &:hover {
166
+ background: ${error}50;
167
+ box-shadow: 0px 0px 5px ${error};
168
+ }
169
+ `;
170
+ }
171
+ }}
172
+ `;
173
+ export const LoadingBar = styled.div `
174
+ position: absolute;
175
+ width: 2px;
176
+ height: 20px;
177
+ opacity: 0;
178
+ animation: 2s ${flashBar} infinite;
179
+ top: 0px;
180
+
181
+ ${({ $buttonType, theme }) => {
182
+ const fareBlue = theme?.fareBlue || DEFAULT_COLORS.fareBlue;
183
+ const fareAqua = theme?.fareAqua || DEFAULT_COLORS.fareAqua;
184
+ if ($buttonType === ButtonEnum.PRIMARY_1) {
185
+ return `
186
+ opacity: 1;
187
+ border: 1px solid ${fareBlue};
188
+ box-shadow: inset 0px 0px 10px ${fareBlue}99;
189
+ `;
190
+ }
191
+ if ($buttonType === ButtonEnum.CONNECT_WALLET) {
192
+ return `
193
+ border: 1px solid ${fareAqua};
194
+ box-shadow: inset 0px 0px 10px ${fareAqua}99;
195
+ `;
196
+ }
197
+ }}
198
+
199
+ ${({ $side }) => css `
200
+ ${$side}: -8px;
201
+ `}
202
+ `;
203
+ export const ModeButton = styled.button `
204
+ height: 30px;
205
+ min-width: 40px;
206
+ border-radius: 4px;
207
+ background: transparent;
208
+ transition: 0.2s all ease-in-out;
209
+ cursor: pointer;
210
+
211
+ &:focus-visible {
212
+ outline: none;
213
+ }
214
+ &:hover {
215
+ border: 1px solid
216
+ ${({ theme }) => theme?.fareBlue || DEFAULT_COLORS.fareBlue}99 !important;
217
+ }
218
+
219
+ > span {
220
+ font-family: "GohuUppercase", monospace;
221
+ line-height: 10px;
222
+ }
223
+
224
+ &:has(span) {
225
+ display: flex;
226
+ align-items: center;
227
+ justify-content: center;
228
+ }
229
+
230
+ ${({ $isActive, theme }) => $isActive
231
+ ? css `
232
+ border: 1px solid ${theme?.fareBlue || DEFAULT_COLORS.fareBlue} !important;
233
+ color: ${theme?.textOne || DEFAULT_COLORS.textOne};
234
+ background: ${theme?.backgroundFour || DEFAULT_COLORS.backgroundFour};
235
+ `
236
+ : css `
237
+ border: 1px solid ${theme?.borderOne || DEFAULT_COLORS.borderOne};
238
+ color: ${theme?.textTwo || DEFAULT_COLORS.textTwo};
239
+ `};
240
+ `;
241
+ export const ButtonContentWrapper = styled.div `
242
+ position: relative;
243
+ width: 100%;
244
+ height: 100%;
245
+ display: flex;
246
+ align-items: center;
247
+ justify-content: center;
248
+ `;
249
+ //# sourceMappingURL=style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../../src/components/shared/Button/style.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,+EAA+E;AAC/E,oDAAoD;AAEpD,MAAM,cAAc,GAAG;IACrB,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,SAAS;IACpB,cAAc,EAAE,SAAS;IACzB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;CACpB,CAAC;AAEF,MAAM,eAAe,GAAG;IACtB,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;CACP,CAAC;AAEF,MAAM,QAAQ,GAAG,SAAS,CAAA;;;;;;;;;;CAUzB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,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CAAC,CAAC,GAAG,CAAA;8BACmB,KAAK,EAAE,QAAQ,IAAI,cAAc,CAAC,QAAQ;mBACrD,KAAK,EAAE,OAAO,IAAI,cAAc,CAAC,OAAO;wBACnC,KAAK,EAAE,cAAc,IAAI,cAAc,CAAC,cAAc;SACrE;IACH,CAAC,CAAC,GAAG,CAAA;8BACmB,KAAK,EAAE,SAAS,IAAI,cAAc,CAAC,SAAS;mBACvD,KAAK,EAAE,OAAO,IAAI,cAAc,CAAC,OAAO;SAClD;CACR,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAO7C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type ModalCardProps } from "./types";
2
+ declare const ModalCard: import("react").ForwardRefExoticComponent<ModalCardProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default ModalCard;
4
+ //# sourceMappingURL=Card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/Modal/Card.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAM9C,QAAA,MAAM,SAAS,2GAwFd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { modalVariants } from "../../../modals/SelectWalletModal/variants";
3
+ import { SGradientWalletModalContent } from "../../../modals/SelectWalletModal/styles";
4
+ import { SModalBody, SModalContent, SModalOverlayContainer, SModalWrapper, } from "./styles";
5
+ import { modalOverlayVarient } from "./animations";
6
+ import { ModalHeader } from "./ModalHeader";
7
+ import { ModalFooter } from "./ModalFooter";
8
+ import { forwardRef, useEffect } from "react";
9
+ // For npm: Accept icons as props and remove path aliases
10
+ const ModalCard = forwardRef(({ title, description, children, submit, onClose, isVisible, setIsVisible = () => { }, className, stepIdx = 0, setStepIdx = () => { }, style, closeIcon, caretLeftIcon, isMobileScreen, }, ref) => {
11
+ useEffect(() => {
12
+ if (!isVisible)
13
+ return;
14
+ const handleKeyDown = (e) => {
15
+ if (e.key === "Escape") {
16
+ setIsVisible(false);
17
+ onClose?.();
18
+ }
19
+ };
20
+ window.addEventListener("keydown", handleKeyDown);
21
+ return () => window.removeEventListener("keydown", handleKeyDown);
22
+ }, [isVisible, setIsVisible, onClose]);
23
+ if (!isVisible) {
24
+ return null;
25
+ }
26
+ const renderContent = () => (_jsxs(SModalContent, { className: className, style: style, children: [_jsx(ModalHeader, { title: title, description: description, className: className, onClose: onClose, setIsVisible: setIsVisible, closeIcon: closeIcon, isMobileScreen: isMobileScreen }), _jsx(SModalBody, { children: children }), className === "offer-modal" ? null : (_jsx(ModalFooter, { stepIdx: stepIdx, setStepIdx: setStepIdx, submit: submit, caretLeftIcon: caretLeftIcon }))] }));
27
+ return (_jsx(SModalOverlayContainer, { variants: modalOverlayVarient, initial: "initial", animate: "animate", exit: "exit", role: "dialog", "aria-modal": "true", "aria-labelledby": "modal-title", "aria-describedby": description ? "modal-desc" : undefined, children: _jsx(SModalWrapper, { ref: ref, variants: modalVariants, initial: "initial", animate: "animate", exit: "exit", children: className === "fund-modal-content" ? (renderContent()) : (_jsx(SGradientWalletModalContent, { children: renderContent() })) }) }));
28
+ });
29
+ export default ModalCard;
30
+ //# sourceMappingURL=Card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../../src/components/shared/Modal/Card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EACL,UAAU,EACV,aAAa,EACb,sBAAsB,EACtB,aAAa,GACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM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YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,GAC9B,EACF,KAAC,UAAU,cAAE,QAAQ,GAAc,EAClC,SAAS,KAAK,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACpC,KAAC,WAAW,IACV,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,GAC5B,CACH,IACa,CACjB,CAAC;IAEF,OAAO,CACL,KAAC,sBAAsB,IACrB,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAC,SAAS,EACjB,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,QAAQ,gBACF,MAAM,qBACD,aAAa,sBACX,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,YAExD,KAAC,aAAa,IACZ,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,aAAa,EACvB,OAAO,EAAC,SAAS,EACjB,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,MAAM,YAEV,SAAS,KAAK,oBAAoB,CAAC,CAAC,CAAC,CACpC,aAAa,EAAE,CAChB,CAAC,CAAC,CAAC,CACF,KAAC,2BAA2B,cACzB,aAAa,EAAE,GACY,CAC/B,GACa,GACO,CAC1B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { type ModalCardProps } from "./types";
3
+ export interface ModalFooterProps extends Pick<ModalCardProps, "stepIdx" | "setStepIdx" | "submit"> {
4
+ caretLeftIcon: string;
5
+ }
6
+ export declare const ModalFooter: React.FC<ModalFooterProps>;
7
+ //# sourceMappingURL=ModalFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/Modal/ModalFooter.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,YAAY,GAAG,QAAQ,CAAC;IACjE,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA6BlD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { SModalFooter, SFundModalButton } from "./styles";
3
+ import { ButtonEnum } from "../../shared/Button";
4
+ import { motion } from "framer-motion";
5
+ import { prevButtonVariant } from "./animations";
6
+ export const ModalFooter = ({ stepIdx = 0, setStepIdx = () => { }, submit, caretLeftIcon, }) => {
7
+ const goBack = () => setStepIdx(0);
8
+ return (_jsxs(SModalFooter, { children: [stepIdx > 0 && stepIdx !== 2 && (_jsx(SFundModalButton, { onClick: goBack, "aria-label": "Go back", buttonType: ButtonEnum.BASE, disabled: false, children: _jsx(motion.img, { src: caretLeftIcon, width: 18, initial: "initial", animate: "animate", whileHover: "hover", variants: prevButtonVariant }) })), _jsx("div", { className: "submit-button", children: submit })] }));
9
+ };
10
+ //# sourceMappingURL=ModalFooter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalFooter.js","sourceRoot":"","sources":["../../../../../src/components/shared/Modal/ModalFooter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAQjD,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EACtD,OAAO,GAAG,CAAC,EACX,UAAU,GAAG,GAAG,EAAE,GAAE,CAAC,EACrB,MAAM,EACN,aAAa,GACd,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACnC,OAAO,CACL,MAAC,YAAY,eACV,OAAO,GAAG,CAAC,IAAI,OAAO,KAAK,CAAC,IAAI,CAC/B,KAAC,gBAAgB,IACf,OAAO,EAAE,MAAM,gBACJ,SAAS,EACpB,UAAU,EAAE,UAAU,CAAC,IAAI,EAC3B,QAAQ,EAAE,KAAK,YAEf,KAAC,MAAM,CAAC,GAAG,IACT,GAAG,EAAE,aAAa,EAClB,KAAK,EAAE,EAAE,EACT,OAAO,EAAC,SAAS,EACjB,OAAO,EAAC,SAAS,EACjB,UAAU,EAAC,OAAO,EAClB,QAAQ,EAAE,iBAAiB,GAC3B,GACe,CACpB,EACD,cAAK,SAAS,EAAC,eAAe,YAAE,MAAM,GAAO,IAChC,CAChB,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { type ModalCardProps } from "./types";
3
+ export interface ModalHeaderProps extends Pick<ModalCardProps, "title" | "description" | "className" | "onClose" | "setIsVisible"> {
4
+ closeIcon: string;
5
+ isMobileScreen?: boolean;
6
+ }
7
+ export declare const ModalHeader: React.FC<ModalHeaderProps>;
8
+ //# sourceMappingURL=ModalHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/Modal/ModalHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,cAAc,EACd,OAAO,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,GAAG,cAAc,CACnE;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoElD,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { SModalHeader, SModalTitle, SModalButton, SModalDescription, } from "./styles";
3
+ import { ButtonEnum } from "../../shared/Button";
4
+ export const ModalHeader = ({ title, description, className, onClose, setIsVisible = () => { }, closeIcon, isMobileScreen, }) => {
5
+ // Optionally allow consumer to control breakpoint, otherwise fallback to false
6
+ const handleClose = () => {
7
+ setIsVisible(false);
8
+ onClose?.();
9
+ };
10
+ return (_jsxs(SModalHeader, { style: className === "fund-modal-content"
11
+ ? { width: "100%", padding: "0px" }
12
+ : className === "offer-modal"
13
+ ? { width: isMobileScreen ? "100%" : "50%" }
14
+ : {}, children: [_jsxs(SModalTitle, { id: "modal-title", style: className === "fund-modal-content"
15
+ ? {
16
+ display: "flex",
17
+ justifyContent: "space-between",
18
+ alignItems: "center",
19
+ backgroundColor: "#1c1c1e",
20
+ marginBlock: 0,
21
+ fontFamily: "system-ui, sans-serif",
22
+ }
23
+ : {}, children: [title, className === "fund-modal-content" && (_jsx(SModalButton, { buttonType: ButtonEnum.BASE, "aria-label": "Close modal", disabled: false, onClick: handleClose, children: _jsx("img", { src: closeIcon, alt: "close", width: 28 }) }))] }), description && (_jsx(SModalDescription, { id: "modal-desc", style: className === "fund-modal-content"
24
+ ? {
25
+ fontFamily: "system-ui, sans-serif",
26
+ lineHeight: "1.25",
27
+ }
28
+ : {}, children: description }))] }));
29
+ };
30
+ //# sourceMappingURL=ModalHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalHeader.js","sourceRoot":"","sources":["../../../../../src/components/shared/Modal/ModalHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,iBAAiB,GAClB,MAAM,UAAU,CAAC;AAClB,OAA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EAAC,YAAY,EACf,KAAK,EACH,SAAS,KAAK,oBAAoB;oBAChC,CAAC,CAAC;wBACE,UAAU,EAAE,uBAAuB;wBACnC,UAAU,EAAE,MAAM;qBACnB;oBACH,CAAC,CAAC,EAAE,YAGP,WAAW,GACM,CACrB,IACY,CAChB,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type Variants } from 'framer-motion';
2
+ export declare const prevButtonVariant: Variants;
3
+ export declare const modalOverlayVarient: Variants;
4
+ //# sourceMappingURL=animations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/Modal/animations.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,eAAO,MAAM,iBAAiB,EAAE,QAI/B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,QAmBjC,CAAA"}
@@ -0,0 +1,26 @@
1
+ export const prevButtonVariant = {
2
+ initial: { x: 0 },
3
+ animate: { x: 0 },
4
+ hover: { x: [0, -5, 0] },
5
+ };
6
+ export const modalOverlayVarient = {
7
+ initial: {
8
+ opacity: 0,
9
+ transition: {
10
+ duration: 0.12,
11
+ },
12
+ },
13
+ animate: {
14
+ opacity: 1,
15
+ transition: {
16
+ duration: 0.12,
17
+ },
18
+ },
19
+ exit: {
20
+ opacity: 0,
21
+ transition: {
22
+ duration: 1,
23
+ },
24
+ },
25
+ };
26
+ //# sourceMappingURL=animations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animations.js","sourceRoot":"","sources":["../../../../../src/components/shared/Modal/animations.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAa;IACzC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE;IACjB,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE;IACjB,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;CACzB,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAa;IAC3C,OAAO,EAAE;QACP,OAAO,EAAE,CAAC;QACV,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;SACf;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE,CAAC;QACV,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;SACf;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,CAAC;QACV,UAAU,EAAE;YACV,QAAQ,EAAE,CAAC;SACZ;KACF;CACF,CAAA"}