@lightsparkdev/ui 0.0.7 → 0.0.9

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 (142) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/chunk-3EVAP5JT.js +67 -0
  3. package/dist/{chunk-IQFU7CM5.js → chunk-3GS5EFXV.js} +1 -1
  4. package/dist/{chunk-CLU2FRJZ.js → chunk-55OQPFLF.js} +1 -1
  5. package/dist/{chunk-N2RDQJQ5.js → chunk-5POPBNPS.js} +1 -1
  6. package/dist/{chunk-WWFDI534.js → chunk-7C4MHI6Q.js} +13 -6
  7. package/dist/{chunk-3CZOYF3X.js → chunk-7T36JGTC.js} +2 -2
  8. package/dist/chunk-A4FQBEYU.js +163 -0
  9. package/dist/chunk-ATUH6SXK.js +233 -0
  10. package/dist/chunk-DQRN4E5G.js +25 -0
  11. package/dist/{chunk-RTUZVKPK.js → chunk-E3AOYBY5.js} +1 -1
  12. package/dist/{chunk-I74XQIVV.js → chunk-EEFNW7NS.js} +3 -3
  13. package/dist/{chunk-UO6U7AYM.js → chunk-FCZJILMW.js} +1 -1
  14. package/dist/{chunk-2WYVO6B2.js → chunk-H3RW6JSU.js} +1 -1
  15. package/dist/chunk-IPAXAP6K.js +119 -0
  16. package/dist/{chunk-NGS4OSWT.js → chunk-J4FJQ3FN.js} +1 -1
  17. package/dist/{chunk-RFGKH3R6.js → chunk-JK4BP73A.js} +39 -38
  18. package/dist/{chunk-T33SBHYI.js → chunk-KMR5C25B.js} +3 -1
  19. package/dist/{chunk-JYWYEOM6.js → chunk-NFSAJ5GJ.js} +23 -10
  20. package/dist/{chunk-G2PZZFJL.js → chunk-NM7UW54G.js} +21 -24
  21. package/dist/{chunk-M56R3RJ7.js → chunk-OGSDZTHM.js} +7 -3
  22. package/dist/chunk-P3EUPXFA.js +150 -0
  23. package/dist/chunk-PBRN7MJY.js +315 -0
  24. package/dist/{chunk-NH25O7PC.js → chunk-PVQCLQNA.js} +1 -1
  25. package/dist/{chunk-NZJCJJH5.js → chunk-RWIZ7Q74.js} +1 -1
  26. package/dist/{chunk-TAI352I3.js → chunk-VE7J2N47.js} +1 -1
  27. package/dist/{chunk-K7D7A34K.js → chunk-XP2MX2AA.js} +1 -1
  28. package/dist/{chunk-23SR7TFO.js → chunk-XZR237JJ.js} +1 -1
  29. package/dist/{chunk-VBWTKANQ.js → chunk-Y37DCY7Y.js} +3 -3
  30. package/dist/{chunk-SVQELXFK.js → chunk-Z5TPS2BO.js} +1 -1
  31. package/dist/{chunk-FKETYVPP.js → chunk-ZANLDY2W.js} +87 -43
  32. package/dist/components/Badge.cjs +1346 -0
  33. package/dist/components/Badge.d.cts +10 -0
  34. package/dist/components/Badge.d.ts +10 -0
  35. package/dist/components/Badge.js +13 -0
  36. package/dist/components/Button.cjs +235 -107
  37. package/dist/components/Button.d.cts +3 -1
  38. package/dist/components/Button.d.ts +3 -1
  39. package/dist/components/Button.js +8 -7
  40. package/dist/components/ButtonRow.cjs +254 -110
  41. package/dist/components/ButtonRow.d.cts +6 -2
  42. package/dist/components/ButtonRow.d.ts +6 -2
  43. package/dist/components/ButtonRow.js +14 -11
  44. package/dist/components/CardPage.cjs +1921 -0
  45. package/dist/components/CardPage.d.cts +54 -0
  46. package/dist/components/CardPage.d.ts +54 -0
  47. package/dist/components/CardPage.js +33 -0
  48. package/dist/components/Collapsible.cjs +38 -54
  49. package/dist/components/Collapsible.js +4 -5
  50. package/dist/components/ContentTable.cjs +38 -54
  51. package/dist/components/ContentTable.js +3 -4
  52. package/dist/components/CopyToClipboardButton.cjs +161 -65
  53. package/dist/components/CopyToClipboardButton.js +6 -5
  54. package/dist/components/CurrencyAmount.cjs +38 -54
  55. package/dist/components/CurrencyAmount.js +3 -4
  56. package/dist/components/FileInput.cjs +1959 -0
  57. package/dist/components/FileInput.d.cts +21 -0
  58. package/dist/components/FileInput.d.ts +21 -0
  59. package/dist/components/FileInput.js +113 -0
  60. package/dist/components/GradientCardHeader.cjs +177 -0
  61. package/dist/components/GradientCardHeader.d.cts +10 -0
  62. package/dist/components/GradientCardHeader.d.ts +10 -0
  63. package/dist/components/GradientCardHeader.js +8 -0
  64. package/dist/components/Icon.cjs +38 -54
  65. package/dist/components/Icon.js +2 -3
  66. package/dist/components/LightTooltip.cjs +1428 -0
  67. package/dist/components/LightTooltip.d.cts +9 -0
  68. package/dist/components/LightTooltip.d.ts +9 -0
  69. package/dist/components/LightTooltip.js +12 -0
  70. package/dist/components/LightboxImage.cjs +1 -1
  71. package/dist/components/LightboxImage.js +2 -2
  72. package/dist/components/LightsparkProvider.cjs +41 -57
  73. package/dist/components/LightsparkProvider.js +3 -4
  74. package/dist/components/Loading.cjs +38 -54
  75. package/dist/components/Loading.js +3 -4
  76. package/dist/components/Modal.cjs +251 -145
  77. package/dist/components/Modal.js +12 -11
  78. package/dist/components/Pill.cjs +1717 -0
  79. package/dist/components/Pill.d.cts +19 -0
  80. package/dist/components/Pill.d.ts +19 -0
  81. package/dist/components/Pill.js +16 -0
  82. package/dist/components/ProgressBar.cjs +38 -56
  83. package/dist/components/ProgressBar.js +2 -3
  84. package/dist/components/SecretContainer.cjs +162 -66
  85. package/dist/components/SecretContainer.js +7 -6
  86. package/dist/components/TextIconAligner.cjs +38 -54
  87. package/dist/components/TextIconAligner.js +3 -4
  88. package/dist/components/UnstyledButton.cjs +38 -54
  89. package/dist/components/UnstyledButton.js +2 -3
  90. package/dist/components/documentation/AnchorLinkHeader.cjs +38 -56
  91. package/dist/components/documentation/AnchorLinkHeader.js +3 -4
  92. package/dist/components/documentation/index.cjs +38 -56
  93. package/dist/components/documentation/index.js +3 -4
  94. package/dist/components/index.cjs +1191 -358
  95. package/dist/components/index.d.cts +7 -1
  96. package/dist/components/index.d.ts +7 -1
  97. package/dist/components/index.js +63 -32
  98. package/dist/icons/ArrowCornerDownRight.cjs +49 -0
  99. package/dist/icons/ArrowCornerDownRight.d.cts +5 -0
  100. package/dist/icons/ArrowCornerDownRight.d.ts +5 -0
  101. package/dist/icons/ArrowCornerDownRight.js +30 -0
  102. package/dist/icons/Copy.cjs +4 -3
  103. package/dist/icons/Copy.js +4 -3
  104. package/dist/icons/Download.cjs +22 -11
  105. package/dist/icons/Download.js +23 -12
  106. package/dist/icons/Sort.cjs +48 -0
  107. package/dist/icons/Sort.d.cts +5 -0
  108. package/dist/icons/Sort.d.ts +5 -0
  109. package/dist/icons/Sort.js +29 -0
  110. package/dist/icons/Upload.cjs +22 -11
  111. package/dist/icons/Upload.js +23 -12
  112. package/dist/icons/index.cjs +38 -54
  113. package/dist/icons/index.js +2 -3
  114. package/dist/router.cjs +7 -3
  115. package/dist/router.js +1 -1
  116. package/dist/styles/common.cjs +38 -66
  117. package/dist/styles/common.d.cts +10 -11
  118. package/dist/styles/common.d.ts +10 -11
  119. package/dist/styles/common.js +1 -14
  120. package/dist/styles/fields.cjs +117 -61
  121. package/dist/styles/fields.d.cts +12 -5
  122. package/dist/styles/fields.d.ts +12 -5
  123. package/dist/styles/fields.js +28 -164
  124. package/dist/styles/fonts/typography/Article.cjs +38 -54
  125. package/dist/styles/fonts/typography/Article.js +5 -6
  126. package/dist/styles/fonts/typography/index.cjs +38 -54
  127. package/dist/styles/fonts/typography/index.js +5 -6
  128. package/dist/styles/global.cjs +41 -57
  129. package/dist/styles/global.js +2 -3
  130. package/dist/styles/type.cjs +38 -54
  131. package/dist/styles/type.js +8 -145
  132. package/dist/styles/utils.cjs +38 -54
  133. package/dist/styles/utils.js +2 -3
  134. package/dist/styles/z-index.cjs +1 -1
  135. package/dist/styles/z-index.d.cts +1 -1
  136. package/dist/styles/z-index.d.ts +1 -1
  137. package/dist/styles/z-index.js +1 -1
  138. package/dist/types/index.d.cts +2 -0
  139. package/dist/types/index.d.ts +2 -0
  140. package/dist/utils/toReactNodes.cjs +7 -3
  141. package/dist/utils/toReactNodes.js +2 -2
  142. package/package.json +10 -6
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Article
4
- } from "../../../chunk-VBWTKANQ.js";
4
+ } from "../../../chunk-Y37DCY7Y.js";
5
5
  import "../../../chunk-FHNYQLMF.js";
6
6
  import "../../../chunk-LD5LZXUP.js";
7
7
  import "../../../chunk-BCFRW7CV.js";
@@ -9,15 +9,14 @@ import "../../../chunk-QGGOMPHZ.js";
9
9
  import "../../../chunk-4TFRLWCC.js";
10
10
  import "../../../chunk-YMNSXZ5D.js";
11
11
  import "../../../chunk-3XSQV5U4.js";
12
- import "../../../chunk-UO6U7AYM.js";
13
- import "../../../chunk-K7D7A34K.js";
14
- import "../../../chunk-NZJCJJH5.js";
12
+ import "../../../chunk-FCZJILMW.js";
13
+ import "../../../chunk-XP2MX2AA.js";
14
+ import "../../../chunk-RWIZ7Q74.js";
15
15
  import "../../../chunk-LAMQKQU3.js";
16
- import "../../../chunk-RFGKH3R6.js";
16
+ import "../../../chunk-JK4BP73A.js";
17
17
  import "../../../chunk-2VBDEO6M.js";
18
18
  import "../../../chunk-E4EXM4SY.js";
19
19
  import "../../../chunk-JSGRNWSB.js";
20
- import "../../../chunk-CLU2FRJZ.js";
21
20
  import "../../../chunk-CIGAQ47A.js";
22
21
  export {
23
22
  Article
@@ -70,7 +70,6 @@ var import_styled2 = __toESM(require("@emotion/styled"), 1);
70
70
  // src/styles/common.tsx
71
71
  var import_react4 = require("@emotion/react");
72
72
  var import_styled = __toESM(require("@emotion/styled"), 1);
73
- var import_react_tooltip = require("react-tooltip");
74
73
 
75
74
  // src/styles/breakpoints.tsx
76
75
  var import_react = require("@emotion/react");
@@ -1288,65 +1287,53 @@ function hexToRGB(hex) {
1288
1287
  ] : [0, 0, 0];
1289
1288
  }
1290
1289
 
1291
- // src/styles/z-index.tsx
1292
- var z = {
1293
- card: 1,
1294
- fieldError: 1,
1295
- textInput: 2,
1296
- select: 3,
1297
- selectFocused: 4,
1298
- walletActionPreviewTopGradient: 1,
1299
- headerContainer: 99,
1300
- smBanner: 99,
1301
- headerTop: 100,
1302
- navMenu: 100,
1303
- smNavMenu: 100,
1304
- navAction: 101,
1305
- smNavAction: 100,
1306
- // keep under navDropdown
1307
- tooltip: 160,
1308
- notificationBanner: 170,
1309
- qrReaderVideo: 180,
1310
- qrReaderOverlay: 181,
1311
- modalOverlay: 190,
1312
- modalContainer: 191,
1313
- dropdown: 192,
1314
- toast: 200
1315
- };
1316
-
1317
1290
  // src/styles/common.tsx
1318
1291
  var rootFontSizePx = 12;
1319
1292
  var rootFontSizeRems = rootFontSizePx / 16;
1320
- var standardContentInsetPx = 32;
1321
- var standardContentInsetMdPx = 24;
1322
- var standardContentInsetSmPx = 16;
1293
+ function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
1294
+ const smCSS = import_react4.css`
1295
+ ${bp.sm(`
1296
+ margin-left: auto;
1297
+ margin-right: auto;
1298
+ width: calc(100% - ${smPx * 2}px);
1299
+ `)}
1300
+ `;
1301
+ const minSmMaxLgCSS = import_react4.css`
1302
+ ${bp.minSmMaxLg(`
1303
+ margin-left: auto;
1304
+ margin-right: auto;
1305
+ width: calc(100% - ${minSmMaxLgPx * 2}px);
1306
+ `)}
1307
+ `;
1308
+ const lgCSS = import_react4.css`
1309
+ ${bp.lg(`
1310
+ margin-left: auto;
1311
+ margin-right: auto;
1312
+ width: calc(100% - ${lgPx * 2}px);
1313
+ max-width: 1280px;
1314
+ `)}
1315
+ `;
1316
+ return {
1317
+ smPx,
1318
+ minSmMaxLgPx,
1319
+ lgPx,
1320
+ smCSS,
1321
+ minSmMaxLgCSS,
1322
+ lgCSS,
1323
+ css: import_react4.css`
1324
+ ${lgCSS}
1325
+ ${smCSS}
1326
+ ${minSmMaxLgCSS}
1327
+ `
1328
+ };
1329
+ }
1330
+ var standardContentInset = buildStandardContentInset(16, 24, 32);
1323
1331
  var standardBorderRadius = (radius) => {
1324
1332
  const borderRadiusPx = Array.isArray(radius) ? radius.map((r) => `${r}px`).join(" ") : `${radius}px`;
1325
1333
  return `
1326
1334
  border-radius: ${borderRadiusPx};
1327
1335
  `;
1328
1336
  };
1329
- var smContentInset = import_react4.css`
1330
- ${bp.sm(`
1331
- margin-left: auto;
1332
- margin-right: auto;
1333
- width: calc(100% - ${standardContentInsetSmPx * 2}px);
1334
- `)}
1335
- `;
1336
- var minSmMaxLgContentInset = import_react4.css`
1337
- ${bp.minSmMaxLg(`
1338
- width: calc(100% - ${standardContentInsetMdPx * 2}px);
1339
- `)}
1340
- `;
1341
- var standardContentInset = import_react4.css`
1342
- margin-left: auto;
1343
- margin-right: auto;
1344
- width: calc(100% - ${standardContentInsetPx * 2}px);
1345
- max-width: 1280px;
1346
-
1347
- ${smContentInset}
1348
- ${minSmMaxLgContentInset}
1349
- `;
1350
1337
  var standardCardShadow = import_react4.css`
1351
1338
  box-shadow:
1352
1339
  0px 4px 10px 0px rgba(0, 0, 0, 0.08),
@@ -1366,9 +1353,6 @@ var Subtext = import_styled.default.div`
1366
1353
  var darkGradientBg = import_react4.css`
1367
1354
  background: ${darkGradient};
1368
1355
  `;
1369
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1370
- z-index: ${z.modalOverlay};
1371
- `;
1372
1356
 
1373
1357
  // src/components/ContentTable.tsx
1374
1358
  var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
@@ -12,7 +12,7 @@ import {
12
12
  } from "../../../chunk-RBYRXBPI.js";
13
13
  import {
14
14
  Article
15
- } from "../../../chunk-VBWTKANQ.js";
15
+ } from "../../../chunk-Y37DCY7Y.js";
16
16
  import {
17
17
  Title
18
18
  } from "../../../chunk-FHNYQLMF.js";
@@ -33,15 +33,14 @@ import {
33
33
  } from "../../../chunk-4TFRLWCC.js";
34
34
  import "../../../chunk-YMNSXZ5D.js";
35
35
  import "../../../chunk-3XSQV5U4.js";
36
- import "../../../chunk-UO6U7AYM.js";
37
- import "../../../chunk-K7D7A34K.js";
38
- import "../../../chunk-NZJCJJH5.js";
36
+ import "../../../chunk-FCZJILMW.js";
37
+ import "../../../chunk-XP2MX2AA.js";
38
+ import "../../../chunk-RWIZ7Q74.js";
39
39
  import "../../../chunk-LAMQKQU3.js";
40
- import "../../../chunk-RFGKH3R6.js";
40
+ import "../../../chunk-JK4BP73A.js";
41
41
  import "../../../chunk-2VBDEO6M.js";
42
42
  import "../../../chunk-E4EXM4SY.js";
43
43
  import "../../../chunk-JSGRNWSB.js";
44
- import "../../../chunk-CLU2FRJZ.js";
45
44
  import "../../../chunk-CIGAQ47A.js";
46
45
  export {
47
46
  Article,
@@ -53,7 +53,7 @@ __export(global_exports, {
53
53
  module.exports = __toCommonJS(global_exports);
54
54
  var import_react5 = require("@emotion/react");
55
55
  var import_react6 = require("react");
56
- var import_react_tooltip2 = require("react-tooltip/dist/react-tooltip.css");
56
+ var import_react_tooltip = require("react-tooltip/dist/react-tooltip.css");
57
57
  var import_fonts = require("../static/fonts.css");
58
58
 
59
59
  // src/styles/breakpoints.tsx
@@ -1292,62 +1292,47 @@ function useThemeBg() {
1292
1292
  // src/styles/common.tsx
1293
1293
  var import_react4 = require("@emotion/react");
1294
1294
  var import_styled = __toESM(require("@emotion/styled"), 1);
1295
- var import_react_tooltip = require("react-tooltip");
1296
-
1297
- // src/styles/z-index.tsx
1298
- var z = {
1299
- card: 1,
1300
- fieldError: 1,
1301
- textInput: 2,
1302
- select: 3,
1303
- selectFocused: 4,
1304
- walletActionPreviewTopGradient: 1,
1305
- headerContainer: 99,
1306
- smBanner: 99,
1307
- headerTop: 100,
1308
- navMenu: 100,
1309
- smNavMenu: 100,
1310
- navAction: 101,
1311
- smNavAction: 100,
1312
- // keep under navDropdown
1313
- tooltip: 160,
1314
- notificationBanner: 170,
1315
- qrReaderVideo: 180,
1316
- qrReaderOverlay: 181,
1317
- modalOverlay: 190,
1318
- modalContainer: 191,
1319
- dropdown: 192,
1320
- toast: 200
1321
- };
1322
-
1323
- // src/styles/common.tsx
1324
1295
  var rootFontSizePx = 12;
1325
1296
  var rootFontSizeRems = rootFontSizePx / 16;
1326
1297
  var standardLineHeightEms = 1.21;
1327
- var standardContentInsetPx = 32;
1328
- var standardContentInsetMdPx = 24;
1329
- var standardContentInsetSmPx = 16;
1330
- var smContentInset = import_react4.css`
1331
- ${bp.sm(`
1332
- margin-left: auto;
1333
- margin-right: auto;
1334
- width: calc(100% - ${standardContentInsetSmPx * 2}px);
1335
- `)}
1336
- `;
1337
- var minSmMaxLgContentInset = import_react4.css`
1338
- ${bp.minSmMaxLg(`
1339
- width: calc(100% - ${standardContentInsetMdPx * 2}px);
1340
- `)}
1341
- `;
1342
- var standardContentInset = import_react4.css`
1343
- margin-left: auto;
1344
- margin-right: auto;
1345
- width: calc(100% - ${standardContentInsetPx * 2}px);
1346
- max-width: 1280px;
1347
-
1348
- ${smContentInset}
1349
- ${minSmMaxLgContentInset}
1350
- `;
1298
+ function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
1299
+ const smCSS = import_react4.css`
1300
+ ${bp.sm(`
1301
+ margin-left: auto;
1302
+ margin-right: auto;
1303
+ width: calc(100% - ${smPx * 2}px);
1304
+ `)}
1305
+ `;
1306
+ const minSmMaxLgCSS = import_react4.css`
1307
+ ${bp.minSmMaxLg(`
1308
+ margin-left: auto;
1309
+ margin-right: auto;
1310
+ width: calc(100% - ${minSmMaxLgPx * 2}px);
1311
+ `)}
1312
+ `;
1313
+ const lgCSS = import_react4.css`
1314
+ ${bp.lg(`
1315
+ margin-left: auto;
1316
+ margin-right: auto;
1317
+ width: calc(100% - ${lgPx * 2}px);
1318
+ max-width: 1280px;
1319
+ `)}
1320
+ `;
1321
+ return {
1322
+ smPx,
1323
+ minSmMaxLgPx,
1324
+ lgPx,
1325
+ smCSS,
1326
+ minSmMaxLgCSS,
1327
+ lgCSS,
1328
+ css: import_react4.css`
1329
+ ${lgCSS}
1330
+ ${smCSS}
1331
+ ${minSmMaxLgCSS}
1332
+ `
1333
+ };
1334
+ }
1335
+ var standardContentInset = buildStandardContentInset(16, 24, 32);
1351
1336
  var standardCardShadow = import_react4.css`
1352
1337
  box-shadow:
1353
1338
  0px 4px 10px 0px rgba(0, 0, 0, 0.08),
@@ -1367,9 +1352,6 @@ var Subtext = import_styled.default.div`
1367
1352
  var darkGradientBg = import_react4.css`
1368
1353
  background: ${darkGradient};
1369
1354
  `;
1370
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1371
- z-index: ${z.modalOverlay};
1372
- `;
1373
1355
 
1374
1356
  // src/styles/constants.ts
1375
1357
  var cssVars = {
@@ -1470,6 +1452,8 @@ function GlobalStyles() {
1470
1452
  :root {
1471
1453
  ${cssVars.docHeight}: 100vh;
1472
1454
  --rt-opacity: 1 !important;
1455
+ --rt-transition-show-delay: 0.15s !important;
1456
+ --rt-transition-closing-delay: 0.2s !important;
1473
1457
  }
1474
1458
 
1475
1459
  html {
@@ -1,13 +1,12 @@
1
1
  import {
2
2
  GlobalStyles,
3
3
  globalComponentStyles
4
- } from "../chunk-T33SBHYI.js";
4
+ } from "../chunk-KMR5C25B.js";
5
5
  import "../chunk-IJVWYT5G.js";
6
- import "../chunk-RFGKH3R6.js";
6
+ import "../chunk-JK4BP73A.js";
7
7
  import "../chunk-2VBDEO6M.js";
8
8
  import "../chunk-E4EXM4SY.js";
9
9
  import "../chunk-JSGRNWSB.js";
10
- import "../chunk-CLU2FRJZ.js";
11
10
  import "../chunk-CIGAQ47A.js";
12
11
  export {
13
12
  GlobalStyles,
@@ -62,7 +62,6 @@ var import_react5 = require("@emotion/react");
62
62
  // src/styles/common.tsx
63
63
  var import_react4 = require("@emotion/react");
64
64
  var import_styled = __toESM(require("@emotion/styled"), 1);
65
- var import_react_tooltip = require("react-tooltip");
66
65
 
67
66
  // src/styles/breakpoints.tsx
68
67
  var import_react = require("@emotion/react");
@@ -1268,59 +1267,47 @@ function hexToRGB(hex) {
1268
1267
  ] : [0, 0, 0];
1269
1268
  }
1270
1269
 
1271
- // src/styles/z-index.tsx
1272
- var z = {
1273
- card: 1,
1274
- fieldError: 1,
1275
- textInput: 2,
1276
- select: 3,
1277
- selectFocused: 4,
1278
- walletActionPreviewTopGradient: 1,
1279
- headerContainer: 99,
1280
- smBanner: 99,
1281
- headerTop: 100,
1282
- navMenu: 100,
1283
- smNavMenu: 100,
1284
- navAction: 101,
1285
- smNavAction: 100,
1286
- // keep under navDropdown
1287
- tooltip: 160,
1288
- notificationBanner: 170,
1289
- qrReaderVideo: 180,
1290
- qrReaderOverlay: 181,
1291
- modalOverlay: 190,
1292
- modalContainer: 191,
1293
- dropdown: 192,
1294
- toast: 200
1295
- };
1296
-
1297
1270
  // src/styles/common.tsx
1298
1271
  var rootFontSizePx = 12;
1299
1272
  var rootFontSizeRems = rootFontSizePx / 16;
1300
- var standardContentInsetPx = 32;
1301
- var standardContentInsetMdPx = 24;
1302
- var standardContentInsetSmPx = 16;
1303
- var smContentInset = import_react4.css`
1304
- ${bp.sm(`
1305
- margin-left: auto;
1306
- margin-right: auto;
1307
- width: calc(100% - ${standardContentInsetSmPx * 2}px);
1308
- `)}
1309
- `;
1310
- var minSmMaxLgContentInset = import_react4.css`
1311
- ${bp.minSmMaxLg(`
1312
- width: calc(100% - ${standardContentInsetMdPx * 2}px);
1313
- `)}
1314
- `;
1315
- var standardContentInset = import_react4.css`
1316
- margin-left: auto;
1317
- margin-right: auto;
1318
- width: calc(100% - ${standardContentInsetPx * 2}px);
1319
- max-width: 1280px;
1320
-
1321
- ${smContentInset}
1322
- ${minSmMaxLgContentInset}
1323
- `;
1273
+ function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
1274
+ const smCSS = import_react4.css`
1275
+ ${bp.sm(`
1276
+ margin-left: auto;
1277
+ margin-right: auto;
1278
+ width: calc(100% - ${smPx * 2}px);
1279
+ `)}
1280
+ `;
1281
+ const minSmMaxLgCSS = import_react4.css`
1282
+ ${bp.minSmMaxLg(`
1283
+ margin-left: auto;
1284
+ margin-right: auto;
1285
+ width: calc(100% - ${minSmMaxLgPx * 2}px);
1286
+ `)}
1287
+ `;
1288
+ const lgCSS = import_react4.css`
1289
+ ${bp.lg(`
1290
+ margin-left: auto;
1291
+ margin-right: auto;
1292
+ width: calc(100% - ${lgPx * 2}px);
1293
+ max-width: 1280px;
1294
+ `)}
1295
+ `;
1296
+ return {
1297
+ smPx,
1298
+ minSmMaxLgPx,
1299
+ lgPx,
1300
+ smCSS,
1301
+ minSmMaxLgCSS,
1302
+ lgCSS,
1303
+ css: import_react4.css`
1304
+ ${lgCSS}
1305
+ ${smCSS}
1306
+ ${minSmMaxLgCSS}
1307
+ `
1308
+ };
1309
+ }
1310
+ var standardContentInset = buildStandardContentInset(16, 24, 32);
1324
1311
  var standardCardShadow = import_react4.css`
1325
1312
  box-shadow:
1326
1313
  0px 4px 10px 0px rgba(0, 0, 0, 0.08),
@@ -1340,9 +1327,6 @@ var Subtext = import_styled.default.div`
1340
1327
  var darkGradientBg = import_react4.css`
1341
1328
  background: ${darkGradient};
1342
1329
  `;
1343
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1344
- z-index: ${z.modalOverlay};
1345
- `;
1346
1330
 
1347
1331
  // src/styles/utils.tsx
1348
1332
  function pxToRems(rems, asNum = false) {
@@ -1,152 +1,15 @@
1
1
  "use client";
2
2
  import {
3
- firstChild,
4
- pxToRems
5
- } from "../chunk-UO6U7AYM.js";
6
- import "../chunk-RFGKH3R6.js";
3
+ Heading,
4
+ headingWithDefaults,
5
+ headings
6
+ } from "../chunk-P3EUPXFA.js";
7
+ import "../chunk-FCZJILMW.js";
8
+ import "../chunk-JK4BP73A.js";
7
9
  import "../chunk-2VBDEO6M.js";
8
10
  import "../chunk-E4EXM4SY.js";
9
- import {
10
- bp
11
- } from "../chunk-JSGRNWSB.js";
12
- import "../chunk-CLU2FRJZ.js";
13
- import {
14
- __spreadValues
15
- } from "../chunk-CIGAQ47A.js";
16
-
17
- // src/styles/type.tsx
18
- import { css, useTheme } from "@emotion/react";
19
- import styled from "@emotion/styled";
20
- import { jsx } from "@emotion/react/jsx-runtime";
21
- var defaultHeadingSizes = {
22
- h1: {
23
- size: 32,
24
- sizeSm: 21
25
- },
26
- h2: {
27
- size: 24,
28
- sizeSm: 18
29
- },
30
- h3: {
31
- size: 21,
32
- sizeSm: 18
33
- },
34
- h4: {
35
- size: 14,
36
- sizeSm: 14
37
- }
38
- };
39
- var defaultHeadingMargins = {
40
- h1: {
41
- mt: 24,
42
- mb: 24,
43
- mtSm: 24,
44
- mbSm: 24
45
- },
46
- h2: {
47
- mt: 24,
48
- mb: 24,
49
- mtSm: 24,
50
- mbSm: 24
51
- },
52
- h3: {
53
- mt: 24,
54
- mb: 24,
55
- mtSm: 24,
56
- mbSm: 24
57
- },
58
- h4: {
59
- mt: 16,
60
- mb: 16,
61
- mtSm: 16,
62
- mbSm: 16
63
- }
64
- };
65
- var baseHeading = ({ mt, mb, mtSm, mbSm, theme }) => css`
66
- line-height: 1.214em;
67
-
68
- margin-bottom: ${mb}px;
69
- margin-top: ${mt}px;
70
-
71
- ${bp.sm(`
72
- margin-top: ${mtSm}px;
73
- margin-bottom: ${mbSm}px;
74
- `)}
75
- `;
76
- var firstChildStyles = firstChild(`margin-top: 0;`);
77
- var headings = {
78
- h1: styled.h1`
79
- ${(props) => baseHeading(props)}
80
- ${firstChildStyles}
81
-
82
- font-size: ${pxToRems(defaultHeadingSizes.h1.size)};
83
- font-weight: ${({ light }) => light ? 400 : 800}};
84
- ${bp.sm(`
85
- font-size: ${pxToRems(defaultHeadingSizes.h1.sizeSm)};
86
- `)}
87
- `,
88
- h2: styled.h2`
89
- ${(props) => baseHeading(props)}
90
- ${firstChildStyles}
91
-
92
- font-size: ${pxToRems(defaultHeadingSizes.h2.size)};
93
- font-weight: ${({ light }) => light ? 400 : 700}};
94
- ${bp.sm(`
95
- font-size: ${pxToRems(defaultHeadingSizes.h2.sizeSm)};
96
- `)}
97
- `,
98
- h3: styled.h3`
99
- ${(props) => baseHeading(props)}
100
- ${firstChildStyles}
101
-
102
- font-size: ${pxToRems(defaultHeadingSizes.h3.size)};
103
- font-weight: ${({ light }) => light ? 400 : 700}};
104
- ${bp.sm(`
105
- font-size: ${pxToRems(defaultHeadingSizes.h3.sizeSm)};
106
- `)}
107
- `,
108
- h4: styled.h4`
109
- ${(props) => baseHeading(props)}
110
- ${firstChildStyles}
111
-
112
- font-size: ${pxToRems(defaultHeadingSizes.h4.size)};
113
- font-weight: ${({ light }) => light ? 400 : 600}};
114
- ${bp.sm(`
115
- font-size: ${pxToRems(defaultHeadingSizes.h4.sizeSm)};
116
- `)}
117
- `
118
- };
119
- function Heading({
120
- children,
121
- type = "h2",
122
- id,
123
- mt = defaultHeadingMargins[type].mt,
124
- mb = defaultHeadingMargins[type].mb,
125
- mtSm = defaultHeadingMargins[type].mtSm,
126
- mbSm = defaultHeadingMargins[type].mbSm,
127
- m0 = false,
128
- light = false
129
- }) {
130
- const StyledHeading = headings[type];
131
- const theme = useTheme();
132
- const heading = /* @__PURE__ */ jsx(
133
- StyledHeading,
134
- {
135
- id,
136
- mt: m0 ? 0 : mt,
137
- mb: m0 ? 0 : mb,
138
- mtSm: m0 ? 0 : mtSm,
139
- mbSm: m0 ? 0 : mbSm,
140
- light,
141
- theme,
142
- children: id ? /* @__PURE__ */ jsx("a", { href: `#${id}`, css: { color: "inherit" }, children }) : children
143
- }
144
- );
145
- return heading;
146
- }
147
- function headingWithDefaults(defaultProps) {
148
- return (props) => /* @__PURE__ */ jsx(Heading, __spreadValues(__spreadValues({}, defaultProps), props));
149
- }
11
+ import "../chunk-JSGRNWSB.js";
12
+ import "../chunk-CIGAQ47A.js";
150
13
  export {
151
14
  Heading,
152
15
  headingWithDefaults,