@mintmoney/react 0.1.0-alpha-1 → 0.1.0-alpha.11

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 (195) hide show
  1. package/dist/css/styles.css +217 -46
  2. package/dist/esm/api/checkouts.js +16 -0
  3. package/dist/esm/api/checkouts.js.map +1 -0
  4. package/dist/esm/api/generated.js +618 -0
  5. package/dist/esm/api/generated.js.map +1 -0
  6. package/dist/esm/api/index.js +15 -0
  7. package/dist/esm/api/index.js.map +1 -0
  8. package/dist/esm/api/payments.js +28 -0
  9. package/dist/esm/api/payments.js.map +1 -0
  10. package/dist/esm/api/types.js +2 -0
  11. package/dist/esm/api/types.js.map +1 -0
  12. package/dist/esm/checkout/container.js +10 -0
  13. package/dist/esm/checkout/container.js.map +1 -0
  14. package/dist/esm/checkout/index.js +44 -0
  15. package/dist/esm/checkout/index.js.map +1 -0
  16. package/dist/esm/checkout/modal.js +76 -0
  17. package/dist/esm/checkout/modal.js.map +1 -0
  18. package/dist/esm/checkout/views/back.js +12 -0
  19. package/dist/esm/checkout/views/back.js.map +1 -0
  20. package/dist/esm/checkout/views/card-intent/details.js +29 -0
  21. package/dist/esm/checkout/views/card-intent/details.js.map +1 -0
  22. package/dist/esm/checkout/views/crypto-intent/curreny.js +50 -0
  23. package/dist/esm/checkout/views/crypto-intent/curreny.js.map +1 -0
  24. package/dist/esm/checkout/views/crypto-intent/direct-details.js +70 -0
  25. package/dist/esm/checkout/views/crypto-intent/direct-details.js.map +1 -0
  26. package/dist/esm/checkout/views/crypto-intent/methods.js +34 -0
  27. package/dist/esm/checkout/views/crypto-intent/methods.js.map +1 -0
  28. package/dist/esm/checkout/views/crypto-intent/processing.js +48 -0
  29. package/dist/esm/checkout/views/crypto-intent/processing.js.map +1 -0
  30. package/dist/esm/checkout/views/crypto-intent/success.js +38 -0
  31. package/dist/esm/checkout/views/crypto-intent/success.js.map +1 -0
  32. package/dist/esm/checkout/views/initial.js +35 -0
  33. package/dist/esm/checkout/views/initial.js.map +1 -0
  34. package/dist/esm/checkout/views/method-select.js +31 -0
  35. package/dist/esm/checkout/views/method-select.js.map +1 -0
  36. package/dist/esm/components/buttons/index.js +34 -13
  37. package/dist/esm/components/buttons/index.js.map +1 -1
  38. package/dist/esm/components/icons/checkMark.js +32 -0
  39. package/dist/esm/components/icons/checkMark.js.map +1 -0
  40. package/dist/esm/components/icons/close.js +20 -5
  41. package/dist/esm/components/icons/close.js.map +1 -1
  42. package/dist/esm/components/icons/index.js +2 -1
  43. package/dist/esm/components/icons/index.js.map +1 -1
  44. package/dist/esm/components/index.js +4 -1
  45. package/dist/esm/components/index.js.map +1 -1
  46. package/dist/esm/components/lists/empty.js +9 -0
  47. package/dist/esm/components/lists/empty.js.map +1 -0
  48. package/dist/esm/components/lists/index.js +54 -0
  49. package/dist/esm/components/lists/index.js.map +1 -0
  50. package/dist/esm/components/loading/index.js +52 -0
  51. package/dist/esm/components/loading/index.js.map +1 -0
  52. package/dist/esm/components/modals/index.js +1 -1
  53. package/dist/esm/components/modals/modal-with-views.js +62 -23
  54. package/dist/esm/components/modals/modal-with-views.js.map +1 -1
  55. package/dist/esm/components/modals/modal.js +69 -10
  56. package/dist/esm/components/modals/modal.js.map +1 -1
  57. package/dist/esm/components/modals/use-modal-with-views.js +25 -22
  58. package/dist/esm/components/modals/use-modal-with-views.js.map +1 -1
  59. package/dist/esm/components/text/index.js +37 -0
  60. package/dist/esm/components/text/index.js.map +1 -0
  61. package/dist/esm/config.js +5 -5
  62. package/dist/esm/config.js.map +1 -1
  63. package/dist/esm/context.js +20 -8
  64. package/dist/esm/context.js.map +1 -1
  65. package/dist/esm/index.js +5 -2
  66. package/dist/esm/index.js.map +1 -1
  67. package/dist/esm/state/checkout/store.js +189 -0
  68. package/dist/esm/state/checkout/store.js.map +1 -0
  69. package/dist/esm/themes/default.js +56 -41
  70. package/dist/esm/themes/default.js.map +1 -1
  71. package/dist/esm/themes/index.js +1 -1
  72. package/dist/esm/themes/types.js +2 -2
  73. package/dist/esm/themes/types.js.map +1 -1
  74. package/dist/esm/utils/cn.js +4 -0
  75. package/dist/esm/utils/cn.js.map +1 -0
  76. package/dist/types/api/checkouts.d.ts +9 -0
  77. package/dist/types/api/checkouts.d.ts.map +1 -0
  78. package/dist/types/api/generated.d.ts +1033 -0
  79. package/dist/types/api/generated.d.ts.map +1 -0
  80. package/dist/types/api/index.d.ts +6 -0
  81. package/dist/types/api/index.d.ts.map +1 -0
  82. package/dist/types/api/payments.d.ts +13 -0
  83. package/dist/types/api/payments.d.ts.map +1 -0
  84. package/dist/types/api/types.d.ts +23 -0
  85. package/dist/types/api/types.d.ts.map +1 -0
  86. package/dist/types/checkout/container.d.ts +12 -0
  87. package/dist/types/checkout/container.d.ts.map +1 -0
  88. package/dist/types/checkout/index.d.ts +14 -0
  89. package/dist/types/checkout/index.d.ts.map +1 -0
  90. package/dist/types/checkout/modal.d.ts +12 -0
  91. package/dist/types/checkout/modal.d.ts.map +1 -0
  92. package/dist/types/checkout/views/back.d.ts +8 -0
  93. package/dist/types/checkout/views/back.d.ts.map +1 -0
  94. package/dist/types/checkout/views/card-intent/details.d.ts +3 -0
  95. package/dist/types/checkout/views/card-intent/details.d.ts.map +1 -0
  96. package/dist/types/checkout/views/crypto-intent/curreny.d.ts +3 -0
  97. package/dist/types/checkout/views/crypto-intent/curreny.d.ts.map +1 -0
  98. package/dist/types/checkout/views/crypto-intent/direct-details.d.ts +5 -0
  99. package/dist/types/checkout/views/crypto-intent/direct-details.d.ts.map +1 -0
  100. package/dist/types/checkout/views/crypto-intent/methods.d.ts +3 -0
  101. package/dist/types/checkout/views/crypto-intent/methods.d.ts.map +1 -0
  102. package/dist/types/checkout/views/crypto-intent/processing.d.ts +3 -0
  103. package/dist/types/checkout/views/crypto-intent/processing.d.ts.map +1 -0
  104. package/dist/types/checkout/views/crypto-intent/success.d.ts +9 -0
  105. package/dist/types/checkout/views/crypto-intent/success.d.ts.map +1 -0
  106. package/dist/types/checkout/views/initial.d.ts +9 -0
  107. package/dist/types/checkout/views/initial.d.ts.map +1 -0
  108. package/dist/types/checkout/views/method-select.d.ts +3 -0
  109. package/dist/types/checkout/views/method-select.d.ts.map +1 -0
  110. package/dist/types/components/buttons/index.d.ts +16 -22
  111. package/dist/types/components/buttons/index.d.ts.map +1 -1
  112. package/dist/types/components/icons/checkMark.d.ts +8 -0
  113. package/dist/types/components/icons/checkMark.d.ts.map +1 -0
  114. package/dist/types/components/icons/close.d.ts +5 -3
  115. package/dist/types/components/icons/close.d.ts.map +1 -1
  116. package/dist/types/components/icons/index.d.ts +2 -1
  117. package/dist/types/components/icons/index.d.ts.map +1 -1
  118. package/dist/types/components/index.d.ts +4 -1
  119. package/dist/types/components/index.d.ts.map +1 -1
  120. package/dist/types/components/lists/empty.d.ts +6 -0
  121. package/dist/types/components/lists/empty.d.ts.map +1 -0
  122. package/dist/types/components/lists/index.d.ts +21 -0
  123. package/dist/types/components/lists/index.d.ts.map +1 -0
  124. package/dist/types/components/loading/index.d.ts +9 -0
  125. package/dist/types/components/loading/index.d.ts.map +1 -0
  126. package/dist/types/components/modals/index.d.ts +1 -1
  127. package/dist/types/components/modals/modal-with-views.d.ts +23 -17
  128. package/dist/types/components/modals/modal-with-views.d.ts.map +1 -1
  129. package/dist/types/components/modals/modal.d.ts +17 -9
  130. package/dist/types/components/modals/modal.d.ts.map +1 -1
  131. package/dist/types/components/modals/use-modal-with-views.d.ts +9 -6
  132. package/dist/types/components/modals/use-modal-with-views.d.ts.map +1 -1
  133. package/dist/types/components/text/index.d.ts +20 -0
  134. package/dist/types/components/text/index.d.ts.map +1 -0
  135. package/dist/types/config.d.ts +12 -7
  136. package/dist/types/config.d.ts.map +1 -1
  137. package/dist/types/context.d.ts +7 -4
  138. package/dist/types/context.d.ts.map +1 -1
  139. package/dist/types/index.d.ts +5 -2
  140. package/dist/types/index.d.ts.map +1 -1
  141. package/dist/types/state/checkout/store.d.ts +88 -0
  142. package/dist/types/state/checkout/store.d.ts.map +1 -0
  143. package/dist/types/themes/default.d.ts +3 -3
  144. package/dist/types/themes/default.d.ts.map +1 -1
  145. package/dist/types/themes/index.d.ts +1 -1
  146. package/dist/types/themes/types.d.ts +28 -15
  147. package/dist/types/themes/types.d.ts.map +1 -1
  148. package/dist/types/utils/cn.d.ts +4 -0
  149. package/dist/types/utils/cn.d.ts.map +1 -0
  150. package/package.json +74 -61
  151. package/dist/esm/exports/components.js +0 -2
  152. package/dist/esm/exports/components.js.map +0 -1
  153. package/dist/esm/exports/config.js +0 -3
  154. package/dist/esm/exports/config.js.map +0 -1
  155. package/dist/esm/exports/hooks.js +0 -2
  156. package/dist/esm/exports/hooks.js.map +0 -1
  157. package/dist/esm/exports/index.js +0 -4
  158. package/dist/esm/exports/index.js.map +0 -1
  159. package/dist/esm/exports/themes.js +0 -2
  160. package/dist/esm/exports/themes.js.map +0 -1
  161. package/dist/esm/hooks/index.js +0 -3
  162. package/dist/esm/hooks/index.js.map +0 -1
  163. package/dist/esm/hooks/useCheckout.js +0 -36
  164. package/dist/esm/hooks/useCheckout.js.map +0 -1
  165. package/dist/esm/hooks/usePayment.js +0 -31
  166. package/dist/esm/hooks/usePayment.js.map +0 -1
  167. package/dist/types/exports/components.d.ts +0 -2
  168. package/dist/types/exports/components.d.ts.map +0 -1
  169. package/dist/types/exports/config.d.ts +0 -3
  170. package/dist/types/exports/config.d.ts.map +0 -1
  171. package/dist/types/exports/hooks.d.ts +0 -2
  172. package/dist/types/exports/hooks.d.ts.map +0 -1
  173. package/dist/types/exports/index.d.ts +0 -6
  174. package/dist/types/exports/index.d.ts.map +0 -1
  175. package/dist/types/exports/themes.d.ts +0 -2
  176. package/dist/types/exports/themes.d.ts.map +0 -1
  177. package/dist/types/hooks/index.d.ts +0 -3
  178. package/dist/types/hooks/index.d.ts.map +0 -1
  179. package/dist/types/hooks/useCheckout.d.ts +0 -9
  180. package/dist/types/hooks/useCheckout.d.ts.map +0 -1
  181. package/dist/types/hooks/usePayment.d.ts +0 -9
  182. package/dist/types/hooks/usePayment.d.ts.map +0 -1
  183. package/src/components/index.ts +0 -3
  184. package/src/components/modals/index.ts +0 -3
  185. package/src/config.ts +0 -27
  186. package/src/exports/components.ts +0 -1
  187. package/src/exports/config.ts +0 -2
  188. package/src/exports/hooks.ts +0 -1
  189. package/src/exports/index.ts +0 -9
  190. package/src/exports/themes.ts +0 -1
  191. package/src/hooks/index.ts +0 -2
  192. package/src/hooks/useCheckout.ts +0 -38
  193. package/src/hooks/usePayment.ts +0 -37
  194. package/src/index.ts +0 -0
  195. package/src/themes/types.ts +0 -26
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { styled } from "styled-components";
3
+ import { useMintMoneyConfig } from "../../context.js";
4
+ const StyledSvg = styled.svg`
5
+ stroke: ${({ color }) => color};
6
+ width: ${({ width }) => width}px;
7
+ height: ${({ height }) => height}px;
8
+ cursor: pointer;
9
+ transition: stroke 0.2s ease-in-out;
10
+
11
+ &:hover {
12
+ stroke: ${({ color }) => color}CC; /* Slight transparency on hover */
13
+ }
14
+ `;
15
+ const CheckMarkIcon = ({ size = 20 }) => {
16
+ const { theme } = useMintMoneyConfig();
17
+ return _jsx(StyledSvg, {
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ width: size,
20
+ height: size,
21
+ viewBox: "0 0 24 24",
22
+ fill: "none",
23
+ stroke: theme.icon.check.strokeColor,
24
+ strokeWidth: "2",
25
+ strokeLinecap: "round",
26
+ strokeLinejoin: "round",
27
+ color: theme.icon.check.color,
28
+ children: _jsx("polyline", { points: "20 6 9 17 4 12" }),
29
+ });
30
+ };
31
+ export { CheckMarkIcon };
32
+ //# sourceMappingURL=checkMark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkMark.js","sourceRoot":"","sources":["../../../../src/components/icons/checkMark.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMtD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAmB;YACnC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;WACrB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;YACnB,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM;;;;;cAKpB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;;CAEjC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,GAAG,EAAE,EAAsB,EAAE,EAAE;IAC1D,MAAM,EAAE,KAAK,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAEvC,OAAO,CACL,KAAC,SAAS,IACR,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EACpC,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,YAE7B,mBAAU,MAAM,EAAC,gBAAgB,GAAY,GACnC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { styled } from "styled-components";
3
- import { useMintMoneyConfig } from "@mintmoney/react";
4
- const StyledSvg = styled.svg `
3
+ import { useMintMoneyConfig } from "../../context.js";
4
+ const StyledSvg = styled.svg`
5
5
  stroke: ${({ color }) => color};
6
6
  width: ${({ width }) => width}px;
7
7
  height: ${({ height }) => height}px;
@@ -13,8 +13,23 @@ const StyledSvg = styled.svg `
13
13
  }
14
14
  `;
15
15
  const CloseIcon = ({ size = 20 }) => {
16
- const { theme } = useMintMoneyConfig();
17
- return (_jsxs(StyledSvg, { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: theme.icon.close.strokeColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", color: theme.icon.close.color, children: [_jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), _jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })] }));
16
+ const { theme } = useMintMoneyConfig();
17
+ return _jsxs(StyledSvg, {
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ width: size,
20
+ height: size,
21
+ viewBox: "0 0 24 24",
22
+ fill: "none",
23
+ stroke: theme.icon.close.strokeColor,
24
+ strokeWidth: "2",
25
+ strokeLinecap: "round",
26
+ strokeLinejoin: "round",
27
+ color: theme.icon.close.color,
28
+ children: [
29
+ _jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
30
+ _jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" }),
31
+ ],
32
+ });
18
33
  };
19
34
  export { CloseIcon };
20
- //# sourceMappingURL=close.js.map
35
+ //# sourceMappingURL=close.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"close.js","sourceRoot":"","sources":["../../../../src/components/icons/close.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMtD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAmB;YACnC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;WACrB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;YACnB,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM;;;;;cAKpB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;;CAEjC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,EAAE,IAAI,GAAG,EAAE,EAAkB,EAAE,EAAE;IAClD,MAAM,EAAE,KAAK,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAEvC,OAAO,CACL,MAAC,SAAS,IACR,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EACpC,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,aAE7B,eAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,GAAQ,EAC3C,eAAM,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,GAAQ,IACjC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"close.js","sourceRoot":"","sources":["../../../../src/components/icons/close.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMtD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAmB;YACnC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;WACrB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;YACnB,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM;;;;;cAKpB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;;CAEjC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,EAAE,IAAI,GAAG,EAAE,EAAkB,EAAE,EAAE;IAClD,MAAM,EAAE,KAAK,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAEvC,OAAO,CACL,MAAC,SAAS,IACR,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EACpC,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,aAE7B,eAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,GAAQ,EAC3C,eAAM,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,GAAQ,IACjC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from "./close.js";
2
- //# sourceMappingURL=index.js.map
2
+ export * from "./checkMark.js";
3
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/icons/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/icons/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
@@ -1,4 +1,7 @@
1
1
  export * from "./modals/index.js";
2
2
  export * from "./icons/index.js";
3
3
  export * from "./buttons/index.js";
4
- //# sourceMappingURL=index.js.map
4
+ export * from "./loading/index.js";
5
+ export * from "./text/index.js";
6
+ export * from "./lists/index.js";
7
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Text } from "../text/index.js";
3
+ export const ListEmpty = ({ content }) => {
4
+ return _jsx("div", {
5
+ className: "mm-empty-list__container",
6
+ children: _jsx(Text, { size: "lg", children: content }),
7
+ });
8
+ };
9
+ //# sourceMappingURL=empty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../../src/components/lists/empty.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAE,OAAO,EAAuB,EAAE,EAAE;IAC5D,OAAO,CACL,cAAK,SAAS,EAAC,0BAA0B,YACvC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,YAAG,OAAO,GAAQ,GAC9B,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,54 @@
1
+ import {
2
+ jsx as _jsx,
3
+ Fragment as _Fragment,
4
+ jsxs as _jsxs,
5
+ } from "react/jsx-runtime";
6
+ import { useMintMoneyConfig } from "../../context.js";
7
+ import { StyledButton } from "../buttons/index.js";
8
+ import { Loader } from "../loading/index.js";
9
+ import { Text } from "../text/index.js";
10
+ import { ListEmpty } from "./empty.js";
11
+ const SelectableList = ({
12
+ title,
13
+ items,
14
+ getKey,
15
+ getLabel,
16
+ onSelect,
17
+ loading = false,
18
+ noItemsMsg = "No options available",
19
+ }) => {
20
+ const config = useMintMoneyConfig();
21
+ if (loading) {
22
+ return _jsx(Loader, { asChild: true });
23
+ }
24
+ return _jsxs(_Fragment, {
25
+ children: [
26
+ title &&
27
+ _jsx(Text, {
28
+ size: "base",
29
+ color: config.theme.font.color.secondary,
30
+ weight: "semibold",
31
+ children: title,
32
+ }),
33
+ _jsx("div", {
34
+ className: "mm-selectable-list__button-group",
35
+ children:
36
+ items.length > 0
37
+ ? items.map((item) =>
38
+ _jsx(
39
+ StyledButton,
40
+ {
41
+ onClick: () => onSelect(item),
42
+ variant: "primary",
43
+ children: getLabel(item),
44
+ },
45
+ getKey(item),
46
+ ),
47
+ )
48
+ : _jsx(ListEmpty, { content: noItemsMsg }),
49
+ }),
50
+ ],
51
+ });
52
+ };
53
+ export { SelectableList, ListEmpty };
54
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/lists/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAYvC,MAAM,cAAc,GAAG,CAAK,EAC1B,KAAK,EACL,KAAK,EACL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,OAAO,GAAG,KAAK,EACf,UAAU,GAAG,sBAAsB,GACZ,EAAE,EAAE;IAC3B,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IAEpC,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,KAAC,MAAM,IAAC,OAAO,EAAE,IAAI,GAAI,CAAC;IACnC,CAAC;IAED,OAAO,CACL,8BACG,KAAK,IAAI,CACR,KAAC,IAAI,IACH,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EACxC,MAAM,EAAE,UAAU,YAEjB,KAAK,GACD,CACR,EACD,cAAK,SAAS,EAAC,kCAAkC,YAC9C,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAClB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAClB,KAAC,YAAY,IAEX,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAC7B,OAAO,EAAE,SAAS,YAEjB,QAAQ,CAAC,IAAI,CAAC,IAJV,MAAM,CAAC,IAAI,CAAC,CAKJ,CAChB,CAAC,CACH,CAAC,CAAC,CAAC,CACF,KAAC,SAAS,IAAC,OAAO,EAAE,UAAU,GAAI,CACnC,GACG,IACL,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useMintMoneyConfig } from "../../context.js";
3
+ const LoadingSvg = ({ color, width, height }) => {
4
+ return _jsxs("svg", {
5
+ width: width,
6
+ height: height,
7
+ viewBox: "0 0 280 280",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [
11
+ _jsx("path", {
12
+ d: "M54.2176 109.195C58.1631 100.647 66.7189 95.1726 76.1339 95.1726H85.4871C90.2278 95.1726 93.555 99.8452 92.0042 104.325L80.4361 137.744C79.9302 139.206 79.9302 140.795 80.4361 142.256L92.0042 175.675C93.555 180.155 90.2278 184.828 85.4871 184.828H76.1339C66.7189 184.828 58.1631 179.354 54.2176 170.805L41.3339 142.89C40.4875 141.056 40.4875 138.944 41.3339 137.11L54.2176 109.195Z",
13
+ fill: color,
14
+ className: "loading-segment segment-4",
15
+ }),
16
+ _jsx("path", {
17
+ d: "M225.782 170.805C221.837 179.353 213.281 184.828 203.866 184.828L194.513 184.828C189.772 184.828 186.445 180.155 187.996 175.675L199.564 142.256C200.07 140.795 200.07 139.206 199.564 137.744L187.996 104.325C186.445 99.8451 189.772 95.1725 194.513 95.1725L203.866 95.1725C213.281 95.1725 221.837 100.647 225.782 109.195L238.666 137.11C239.512 138.944 239.512 141.056 238.666 142.89L225.782 170.805Z",
18
+ fill: color,
19
+ className: "loading-segment segment-2",
20
+ }),
21
+ _jsx("path", {
22
+ d: "M109.195 225.782C100.647 221.837 95.1724 213.281 95.1724 203.866L95.1724 194.513C95.1724 189.772 99.845 186.445 104.325 187.996L137.744 199.564C139.205 200.07 140.794 200.07 142.256 199.564L175.675 187.996C180.155 186.445 184.828 189.772 184.828 194.513L184.828 203.866C184.828 213.281 179.353 221.837 170.805 225.782L142.89 238.666C141.056 239.512 138.944 239.512 137.11 238.666L109.195 225.782Z",
23
+ fill: color,
24
+ className: "loading-segment segment-3",
25
+ }),
26
+ _jsx("path", {
27
+ d: "M170.805 54.2176C179.353 58.1631 184.828 66.7189 184.828 76.1339L184.828 85.4871C184.828 90.2278 180.155 93.555 175.675 92.0042L142.256 80.4361C140.795 79.9302 139.206 79.9302 137.744 80.4361L104.325 92.0042C99.8451 93.555 95.1725 90.2278 95.1725 85.4871L95.1725 76.1339C95.1725 66.7188 100.647 58.1631 109.195 54.2176L137.11 41.3339C138.944 40.4875 141.056 40.4875 142.89 41.3339L170.805 54.2176Z",
28
+ fill: color,
29
+ className: "loading-segment segment-1",
30
+ }),
31
+ ],
32
+ });
33
+ };
34
+ const Loader = ({ width = 64, height = 64, asChild = false }) => {
35
+ const config = useMintMoneyConfig();
36
+ return asChild
37
+ ? _jsx(LoadingSvg, {
38
+ color: config.theme.icon.loader.color,
39
+ width: width,
40
+ height: height,
41
+ })
42
+ : _jsx("div", {
43
+ className: "loading-container",
44
+ children: _jsx(LoadingSvg, {
45
+ color: config.theme.icon.loader.color,
46
+ width: width,
47
+ height: height,
48
+ }),
49
+ });
50
+ };
51
+ export { Loader };
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/loading/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAQtD,MAAM,UAAU,GAAG,CAAC,EAClB,KAAK,EACL,KAAK,EACL,MAAM,GAKP,EAAE,EAAE;IACH,OAAO,CACL,eACE,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,aAAa,EACrB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,aAElC,eACE,CAAC,EAAC,+XAA+X,EACjY,IAAI,EAAE,KAAK,EACX,SAAS,EAAC,2BAA2B,GACrC,EACF,eACE,CAAC,EAAC,+YAA+Y,EACjZ,IAAI,EAAE,KAAK,EACX,SAAS,EAAC,2BAA2B,GACrC,EACF,eACE,CAAC,EAAC,8YAA8Y,EAChZ,IAAI,EAAE,KAAK,EACX,SAAS,EAAC,2BAA2B,GACrC,EACF,eACE,CAAC,EAAC,+YAA+Y,EACjZ,IAAI,EAAE,KAAK,EACX,SAAS,EAAC,2BAA2B,GACrC,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAA0B,CAAC,EACrC,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,OAAO,GAAG,KAAK,GAChB,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IACpC,OAAO,OAAO,CAAC,CAAC,CAAC,CACf,KAAC,UAAU,IACT,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EACrC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,GACd,CACH,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,mBAAmB,YAChC,KAAC,UAAU,IACT,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EACrC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,GACd,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export * from "./modal.js";
2
2
  export * from "./modal-with-views.js";
3
3
  export * from "./use-modal-with-views.js";
4
- //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -1,29 +1,68 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import {
2
+ jsx as _jsx,
3
+ Fragment as _Fragment,
4
+ jsxs as _jsxs,
5
+ } from "react/jsx-runtime";
2
6
  import { useEffect } from "react";
3
7
  import { Modal } from "./modal.js";
4
- import { ModalWithViewProvider, useModalWithView, } from "./use-modal-with-views.js";
5
- function ModalWithViewInner({ isOpen, className, onOpenChange, views, initialView, }) {
6
- const { currentView, goToView, viewProps } = useModalWithView();
7
- const currentViewConfig = views[currentView];
8
- if (!currentViewConfig) {
9
- throw new Error("No config provided");
8
+ import {
9
+ ModalWithViewProvider,
10
+ useModalWithView,
11
+ } from "./use-modal-with-views.js";
12
+ function ModalWithViewInner({
13
+ isOpen,
14
+ className,
15
+ onOpenChange,
16
+ views,
17
+ initialView,
18
+ }) {
19
+ const { currentView, goToView, viewProps } = useModalWithView();
20
+ const currentViewConfig = views[currentView];
21
+ if (!currentViewConfig) {
22
+ throw new Error("No config provided");
23
+ }
24
+ useEffect(() => {
25
+ if (currentView.includes("success") || currentView.includes("error")) {
26
+ const timer = setTimeout(() => {
27
+ onOpenChange?.(false);
28
+ goToView(initialView);
29
+ }, 2000);
30
+ return () => clearTimeout(timer);
10
31
  }
11
- useEffect(() => {
12
- if (currentView.includes("success") || currentView.includes("error")) {
13
- const timer = setTimeout(() => {
14
- onOpenChange?.(false);
15
- goToView(initialView);
16
- }, 2000);
17
- return () => clearTimeout(timer);
18
- }
19
- return undefined;
20
- }, [currentView, onOpenChange, goToView, initialView]);
21
- return (_jsx(Modal, { className: className, title: currentViewConfig.title, open: isOpen, onOpenChange: (open) => {
22
- onOpenChange?.(open);
23
- goToView(initialView);
24
- }, children: _jsxs(_Fragment, { children: [currentViewConfig.header && (_jsx("div", { className: "mm-modal-header", children: currentViewConfig.header(viewProps) })), _jsx("div", { className: "mm-modal-body", children: currentViewConfig.content(viewProps) }), currentViewConfig.footer && (_jsx("div", { className: "mm-modal-footer", children: currentViewConfig.footer(viewProps) }))] }) }));
32
+ return undefined;
33
+ }, [currentView, onOpenChange, goToView, initialView]);
34
+ return _jsx(Modal, {
35
+ className: className,
36
+ title: currentViewConfig.title,
37
+ open: isOpen,
38
+ onOpenChange: (open) => {
39
+ onOpenChange?.(open);
40
+ goToView(initialView);
41
+ },
42
+ children: _jsxs(_Fragment, {
43
+ children: [
44
+ currentViewConfig.header &&
45
+ _jsx("div", {
46
+ className: "mm-modal-header",
47
+ children: currentViewConfig.header(viewProps),
48
+ }),
49
+ _jsx("div", {
50
+ className: "mm-modal-body",
51
+ children: currentViewConfig.content(viewProps),
52
+ }),
53
+ currentViewConfig.footer &&
54
+ _jsx("div", {
55
+ className: "mm-modal-footer",
56
+ children: currentViewConfig.footer(viewProps),
57
+ }),
58
+ ],
59
+ }),
60
+ });
25
61
  }
26
62
  export function ModalWithView(props) {
27
- return (_jsx(ModalWithViewProvider, { initialView: props.initialView, children: _jsx(ModalWithViewInner, { ...props }) }));
63
+ return _jsx(ModalWithViewProvider, {
64
+ initialView: props.initialView,
65
+ children: _jsx(ModalWithViewInner, { ...props }),
66
+ });
28
67
  }
29
- //# sourceMappingURL=modal-with-views.js.map
68
+ //# sourceMappingURL=modal-with-views.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal-with-views.js","sourceRoot":"","sources":["../../../../src/components/modals/modal-with-views.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,OAAO,EACL,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AAuBnC,SAAS,kBAAkB,CAAC,EAC1B,MAAM,EACN,SAAS,EACT,YAAY,EACZ,KAAK,EACL,WAAW,GACQ;IACnB,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAChE,MAAM,iBAAiB,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;IAE7C,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACxC,CAAC;IAED,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACrE,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;gBAC5B,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC;gBACtB,QAAQ,CAAC,WAAW,CAAC,CAAC;YACxB,CAAC,EAAE,IAAI,CAAC,CAAC;YACT,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;IAEvD,OAAO,CACL,KAAC,KAAK,IACJ,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,iBAAiB,CAAC,KAAK,EAC9B,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;YACrB,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC;YACrB,QAAQ,CAAC,WAAW,CAAC,CAAC;QACxB,CAAC,YAED,8BAEG,iBAAiB,CAAC,MAAM,IAAI,CAC3B,cAAK,SAAS,EAAC,iBAAiB,YAC7B,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,GAChC,CACP,EAGD,cAAK,SAAS,EAAC,eAAe,YAC3B,iBAAiB,CAAC,OAAO,CAAC,SAAS,CAAC,GACjC,EAGL,iBAAiB,CAAC,MAAM,IAAI,CAC3B,cAAK,SAAS,EAAC,iBAAiB,YAC7B,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,GAChC,CACP,IACA,GACG,CACT,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAyB;IACrD,OAAO,CACL,KAAC,qBAAqB,IAAC,WAAW,EAAE,KAAK,CAAC,WAAW,YACnD,KAAC,kBAAkB,OAAK,KAAK,GAAI,GACX,CACzB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"modal-with-views.js","sourceRoot":"","sources":["../../../../src/components/modals/modal-with-views.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AAwBnC,SAAS,kBAAkB,CAAC,EAC1B,MAAM,EACN,SAAS,EACT,YAAY,EACZ,KAAK,EACL,WAAW,GACQ;IACnB,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAChE,MAAM,iBAAiB,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;IAE7C,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACxC,CAAC;IAED,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACrE,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;gBAC5B,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC;gBACtB,QAAQ,CAAC,WAAW,CAAC,CAAC;YACxB,CAAC,EAAE,IAAI,CAAC,CAAC;YACT,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;IAEvD,OAAO,CACL,KAAC,KAAK,IACJ,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,iBAAiB,CAAC,KAAK,EAC9B,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;YACrB,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC;YACrB,QAAQ,CAAC,WAAW,CAAC,CAAC;QACxB,CAAC,YAED,8BAEG,iBAAiB,CAAC,MAAM,IAAI,CAC3B,cAAK,SAAS,EAAC,iBAAiB,YAC7B,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,GAChC,CACP,EAGD,cAAK,SAAS,EAAC,eAAe,YAC3B,iBAAiB,CAAC,OAAO,CAAC,SAAS,CAAC,GACjC,EAGL,iBAAiB,CAAC,MAAM,IAAI,CAC3B,cAAK,SAAS,EAAC,iBAAiB,YAC7B,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,GAChC,CACP,IACA,GACG,CACT,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAyB;IACrD,OAAO,CACL,KAAC,qBAAqB,IAAC,WAAW,EAAE,KAAK,CAAC,WAAW,YACnD,KAAC,kBAAkB,OAAK,KAAK,GAAI,GACX,CACzB,CAAC;AACJ,CAAC"}
@@ -1,14 +1,73 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import {
2
+ jsx as _jsx,
3
+ Fragment as _Fragment,
4
+ jsxs as _jsxs,
5
+ } from "react/jsx-runtime";
2
6
  import * as Dialog from "@radix-ui/react-dialog";
3
7
  import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
8
+ import { useMintMoneyConfig } from "../../context.js";
4
9
  import { CloseIcon } from "../icons/close.js";
5
- export const Modal = ({ className, open, onOpenChange, navBarComponent, disableCloseOnInteractOutside, title, children, }) => {
6
- return (_jsx(Dialog.Root, { open: open, onOpenChange: (open) => {
7
- onOpenChange?.(open);
8
- }, children: _jsxs(Dialog.Portal, { children: [_jsx(Dialog.Overlay, { className: "mm-modal-overlay" }), _jsxs(Dialog.Content, { className: `mm-modal-container ${className || ""}`, onInteractOutside: (e) => {
9
- if (disableCloseOnInteractOutside) {
10
- e.preventDefault();
11
- }
12
- }, children: [_jsx(VisuallyHidden, { children: _jsx(Dialog.Title, { children: title }) }), _jsxs("div", { className: "mm-modal-content", children: [_jsx("div", { className: `mm-modal-nav`, children: navBarComponent || (_jsxs(_Fragment, { children: [title, _jsx(Dialog.Close, { asChild: true, children: _jsx("button", { children: _jsx(CloseIcon, {}) }) })] })) }), children] })] })] }) }));
10
+ import { Text } from "../text/index.js";
11
+ export const Modal = ({
12
+ className,
13
+ open,
14
+ onOpenChange,
15
+ navBarComponent,
16
+ disableCloseOnInteractOutside,
17
+ title,
18
+ children,
19
+ }) => {
20
+ const config = useMintMoneyConfig();
21
+ return _jsx(Dialog.Root, {
22
+ open: open,
23
+ onOpenChange: (open) => {
24
+ onOpenChange?.(open);
25
+ },
26
+ children: _jsxs(Dialog.Portal, {
27
+ children: [
28
+ _jsx(Dialog.Overlay, { className: "mm-modal-overlay" }),
29
+ _jsxs(Dialog.Content, {
30
+ className: `mm-modal-container ${className || ""}`,
31
+ onInteractOutside: (e) => {
32
+ if (disableCloseOnInteractOutside) {
33
+ e.preventDefault();
34
+ }
35
+ },
36
+ children: [
37
+ _jsx(VisuallyHidden, {
38
+ children: _jsx(Dialog.Title, { children: title }),
39
+ }),
40
+ _jsxs("div", {
41
+ className: "mm-modal-content",
42
+ children: [
43
+ _jsx("div", {
44
+ className: `mm-modal-nav`,
45
+ children:
46
+ navBarComponent ||
47
+ _jsxs(_Fragment, {
48
+ children: [
49
+ _jsx(Text, {
50
+ size: "xl",
51
+ weight: "semibold",
52
+ color: config.theme.font.color.primary,
53
+ children: title,
54
+ }),
55
+ _jsx(Dialog.Close, {
56
+ asChild: true,
57
+ children: _jsx("button", {
58
+ children: _jsx(CloseIcon, {}),
59
+ }),
60
+ }),
61
+ ],
62
+ }),
63
+ }),
64
+ children,
65
+ ],
66
+ }),
67
+ ],
68
+ }),
69
+ ],
70
+ }),
71
+ });
13
72
  };
14
- //# sourceMappingURL=modal.js.map
73
+ //# sourceMappingURL=modal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../../src/components/modals/modal.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAY9C,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EACpB,SAAS,EACT,IAAI,EACJ,YAAY,EACZ,eAAe,EACf,6BAA6B,EAC7B,KAAK,EACL,QAAQ,GACG,EAAE,EAAE;IACf,OAAO,CACL,KAAC,MAAM,CAAC,IAAI,IACV,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;YACrB,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC,YAED,MAAC,MAAM,CAAC,MAAM,eACZ,KAAC,MAAM,CAAC,OAAO,IAAC,SAAS,EAAC,kBAAkB,GAAG,EAC/C,MAAC,MAAM,CAAC,OAAO,IACb,SAAS,EAAE,sBAAsB,SAAS,IAAI,EAAE,EAAE,EAClD,iBAAiB,EAAE,CAAC,CAAC,EAAE,EAAE;wBACvB,IAAI,6BAA6B,EAAE,CAAC;4BAClC,CAAC,CAAC,cAAc,EAAE,CAAC;wBACrB,CAAC;oBACH,CAAC,aAED,KAAC,cAAc,cACb,KAAC,MAAM,CAAC,KAAK,cAAE,KAAK,GAAgB,GACrB,EACjB,eAAK,SAAS,EAAC,kBAAkB,aAC/B,cAAK,SAAS,EAAE,cAAc,YAC3B,eAAe,IAAI,CAClB,8BACG,KAAK,EACN,KAAC,MAAM,CAAC,KAAK,IAAC,OAAO,kBACnB,2BACE,KAAC,SAAS,KAAG,GACN,GACI,IACd,CACJ,GACG,EACL,QAAQ,IACL,IACS,IACH,GACJ,CACf,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../../src/components/modals/modal.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAYxC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EACpB,SAAS,EACT,IAAI,EACJ,YAAY,EACZ,eAAe,EACf,6BAA6B,EAC7B,KAAK,EACL,QAAQ,GACG,EAAE,EAAE;IACf,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IACpC,OAAO,CACL,KAAC,MAAM,CAAC,IAAI,IACV,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;YACrB,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC,YAED,MAAC,MAAM,CAAC,MAAM,eACZ,KAAC,MAAM,CAAC,OAAO,IAAC,SAAS,EAAC,kBAAkB,GAAG,EAC/C,MAAC,MAAM,CAAC,OAAO,IACb,SAAS,EAAE,sBAAsB,SAAS,IAAI,EAAE,EAAE,EAClD,iBAAiB,EAAE,CAAC,CAAC,EAAE,EAAE;wBACvB,IAAI,6BAA6B,EAAE,CAAC;4BAClC,CAAC,CAAC,cAAc,EAAE,CAAC;wBACrB,CAAC;oBACH,CAAC,aAED,KAAC,cAAc,cACb,KAAC,MAAM,CAAC,KAAK,cAAE,KAAK,GAAgB,GACrB,EACjB,eAAK,SAAS,EAAC,kBAAkB,aAC/B,cAAK,SAAS,EAAE,cAAc,YAC3B,eAAe,IAAI,CAClB,8BACE,KAAC,IAAI,IACH,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,YAErC,KAAK,GACD,EACP,KAAC,MAAM,CAAC,KAAK,IAAC,OAAO,kBACnB,2BACE,KAAC,SAAS,KAAG,GACN,GACI,IACd,CACJ,GACG,EACL,QAAQ,IACL,IACS,IACH,GACJ,CACf,CAAC;AACJ,CAAC,CAAC"}
@@ -1,29 +1,32 @@
1
1
  import { jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { createContext, useContext, useEffect, useState } from "react";
3
3
  const ModalContext = createContext({
4
- currentView: "",
5
- goToView: () => { },
6
- viewProps: {},
4
+ currentView: "",
5
+ goToView: () => {},
6
+ viewProps: {},
7
7
  });
8
- export const ModalWithViewProvider = ({ children, initialView, }) => {
9
- const [currentView, setCurrentView] = useState(initialView);
10
- const [viewProps, setViewProps] = useState({});
11
- function goToView(view, props = {}) {
12
- setCurrentView(view);
13
- setViewProps(props);
14
- }
15
- useEffect(() => {
16
- console.log(initialView);
17
- setCurrentView(initialView);
18
- }, [initialView]);
19
- const context = {
20
- currentView,
21
- goToView,
22
- viewProps,
23
- };
24
- return (_jsxs(ModalContext.Provider, { value: context, children: [" ", children, " "] }));
8
+ export const ModalWithViewProvider = ({ children, initialView }) => {
9
+ const [currentView, setCurrentView] = useState(initialView);
10
+ const [viewProps, setViewProps] = useState({});
11
+ function goToView(view, props = {}) {
12
+ setCurrentView(view);
13
+ setViewProps(props);
14
+ }
15
+ useEffect(() => {
16
+ console.log(initialView);
17
+ setCurrentView(initialView);
18
+ }, [initialView]);
19
+ const context = {
20
+ currentView,
21
+ goToView,
22
+ viewProps,
23
+ };
24
+ return _jsxs(ModalContext.Provider, {
25
+ value: context,
26
+ children: [" ", children, " "],
27
+ });
25
28
  };
26
29
  export const useModalWithView = () => {
27
- return useContext(ModalContext);
30
+ return useContext(ModalContext);
28
31
  };
29
- //# sourceMappingURL=use-modal-with-views.js.map
32
+ //# sourceMappingURL=use-modal-with-views.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-modal-with-views.js","sourceRoot":"","sources":["../../../../src/components/modals/use-modal-with-views.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAU9E,MAAM,YAAY,GAAG,aAAa,CAA2B;IAC3D,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EACpC,QAAQ,EACR,WAAW,GAGZ,EAAE,EAAE;IACH,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAS,WAAW,CAAC,CAAC;IACpE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAA0B,EAAE,CAAC,CAAC;IAExE,SAAS,QAAQ,CAAC,IAAY,EAAE,QAAiC,EAAE;QACjE,cAAc,CAAC,IAAI,CAAC,CAAC;QACrB,YAAY,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IAED,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACzB,cAAc,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,MAAM,OAAO,GAAG;QACd,WAAW;QACX,QAAQ;QACR,SAAS;KACV,CAAC;IAEF,OAAO,CACL,MAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,kBAAI,QAAQ,SAA0B,CAC5E,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAiB,EAAE;IACjD,OAAO,UAAU,CAAC,YAAY,CAAiB,CAAC;AAClD,CAAC,CAAC"}
1
+ {"version":3,"file":"use-modal-with-views.js","sourceRoot":"","sources":["../../../../src/components/modals/use-modal-with-views.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAU9E,MAAM,YAAY,GAAG,aAAa,CAA2B;IAC3D,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;IAClB,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EACpC,QAAQ,EACR,WAAW,GAGZ,EAAE,EAAE;IACH,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAS,WAAW,CAAC,CAAC;IACpE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAA0B,EAAE,CAAC,CAAC;IAExE,SAAS,QAAQ,CAAC,IAAY,EAAE,QAAiC,EAAE;QACjE,cAAc,CAAC,IAAI,CAAC,CAAC;QACrB,YAAY,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IAED,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACzB,cAAc,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,MAAM,OAAO,GAAG;QACd,WAAW;QACX,QAAQ;QACR,SAAS;KACV,CAAC;IAEF,OAAO,CACL,MAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,kBAAI,QAAQ,SAA0B,CAC5E,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAiB,EAAE;IACjD,OAAO,UAAU,CAAC,YAAY,CAAiB,CAAC;AAClD,CAAC,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { styled } from "styled-components";
2
+ const fontSizes = {
3
+ xs: "12px",
4
+ sm: "14px",
5
+ base: "16px",
6
+ lg: "18px",
7
+ xl: "20px",
8
+ "2xl": "24px",
9
+ "3xl": "30px",
10
+ };
11
+ const lineHeights = {
12
+ xs: "12px",
13
+ sm: "14px",
14
+ base: "24px",
15
+ lg: "28px",
16
+ xl: "32px",
17
+ "2xl": "24px",
18
+ "3xl": "30px",
19
+ };
20
+ const fontWeights = {
21
+ light: "300",
22
+ normal: "400",
23
+ medium: "500",
24
+ semibold: "600",
25
+ bold: "700",
26
+ };
27
+ const Text = styled.p`
28
+ font-family: var(--mm-font-family);
29
+ font-size: ${({ size = "base" }) => fontSizes[size]};
30
+ line-height: ${({ size = "base" }) => lineHeights[size]};
31
+ font-weight: ${({ weight = "normal" }) => fontWeights[weight]};
32
+ color: ${({ color = "inherit" }) => color};
33
+ text-align: ${({ align = "left" }) => align};
34
+ text-transform: ${({ uppercase }) => (uppercase ? "uppercase" : "none")};
35
+ `;
36
+ export { Text };
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAU3C,MAAM,SAAS,GAAmD;IAChE,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;CACd,CAAC;AAEF,MAAM,WAAW,GAAmD;IAClE,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;CACd,CAAC;AAEF,MAAM,WAAW,GAAqD;IACpE,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,KAAK;CACZ,CAAC;AAEF,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAW;;eAEjB,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC;iBACpC,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;iBACxC,CAAC,EAAE,MAAM,GAAG,QAAQ,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC;WACpD,CAAC,EAAE,KAAK,GAAG,SAAS,EAAE,EAAE,EAAE,CAAC,KAAK;gBAC3B,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,KAAK;oBACzB,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC;CACxE,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -2,9 +2,9 @@ import merge from "lodash.merge";
2
2
  import { defaultTheme } from "./themes/default.js";
3
3
  const _MINT_API = "https://api.getmint.money";
4
4
  export const createConfig = (publicKey, options) => {
5
- return {
6
- publicKey: publicKey,
7
- ...merge({ apiUrl: _MINT_API, theme: defaultTheme }, options),
8
- };
5
+ return {
6
+ publicKey: publicKey,
7
+ ...merge({ apiUrl: _MINT_API, theme: defaultTheme }, options),
8
+ };
9
9
  };
10
- //# sourceMappingURL=config.js.map
10
+ //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAGjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAanD,MAAM,SAAS,GAAG,2BAA2B,CAAC;AAE9C,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,SAAiB,EACjB,OAAuB,EACf,EAAE;IACV,OAAO;QACL,SAAS,EAAE,SAAS;QACpB,GAAG,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,OAAO,CAAC;KAC9D,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAgBnD,MAAM,SAAS,GAAG,2BAA2B,CAAC;AAE9C,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,SAAiB,EACjB,OAAuB,EACf,EAAE;IACV,OAAO;QACL,SAAS,EAAE,SAAS;QACpB,GAAG,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,OAAO,CAAC;KAC9D,CAAC;AACJ,CAAC,CAAC"}
@@ -1,15 +1,27 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { createContext, useContext } from "react";
4
+ import { ThemeProvider } from "styled-components";
5
+ import { api } from "./api/index.js";
4
6
  const MintMoneyContext = createContext(undefined);
5
- export function MintMoneyProvider({ config, children, }) {
6
- return (_jsx(MintMoneyContext.Provider, { value: config, children: children }));
7
+ export function MintMoneyProvider({ config, children }) {
8
+ api.baseUrl = config.apiUrl;
9
+ api.setSecurityData(config.publicKey);
10
+ return _jsx(MintMoneyContext.Provider, {
11
+ value: config,
12
+ children: _jsx(ThemeProvider, {
13
+ theme: config.theme,
14
+ children: _jsx("div", { className: "mm-root", children: children }),
15
+ }),
16
+ });
7
17
  }
8
18
  export function useMintMoneyConfig() {
9
- const context = useContext(MintMoneyContext);
10
- if (!context) {
11
- throw new Error("useMintMoneyConfig must be used within a MintMoneyProvider");
12
- }
13
- return context;
19
+ const context = useContext(MintMoneyContext);
20
+ if (!context) {
21
+ throw new Error(
22
+ "useMintMoneyConfig must be used within a MintMoneyProvider",
23
+ );
24
+ }
25
+ return context;
14
26
  }
15
- //# sourceMappingURL=context.js.map
27
+ //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/context.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGzD,MAAM,gBAAgB,GAAG,aAAa,CAAqB,SAAS,CAAC,CAAC;AAOtE,MAAM,UAAU,iBAAiB,CAAC,EAChC,MAAM,EACN,QAAQ,GACe;IACvB,OAAO,CACL,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,YACrC,QAAQ,GACiB,CAC7B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC7C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,4DAA4D,CAC7D,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/context.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAIrC,MAAM,gBAAgB,GAAG,aAAa,CAAqB,SAAS,CAAC,CAAC;AAOtE,MAAM,UAAU,iBAAiB,CAAC,EAChC,MAAM,EACN,QAAQ,GACe;IACvB,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5B,GAAG,CAAC,eAAe,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACtC,OAAO,CACL,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,YACtC,KAAC,aAAa,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,YAChC,cAAK,SAAS,EAAC,SAAS,YAAE,QAAQ,GAAO,GAC3B,GACU,CAC7B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC7C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,4DAA4D,CAC7D,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
package/dist/esm/index.js CHANGED
@@ -1,2 +1,5 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
1
+ export * from "./checkout/index.js";
2
+ export * from "./components/index.js";
3
+ export * from "./api/index.js";
4
+ export * from "./themes/index.js";
5
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}