@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
@@ -72,12 +72,15 @@ __export(CopyToClipboardButton_exports, {
72
72
  module.exports = __toCommonJS(CopyToClipboardButton_exports);
73
73
  var import_styled4 = __toESM(require("@emotion/styled"), 1);
74
74
  var import_nanoid = require("nanoid");
75
- var import_react6 = require("react");
75
+ var import_react8 = require("react");
76
+
77
+ // src/components/Icon.tsx
78
+ var import_styled2 = __toESM(require("@emotion/styled"), 1);
79
+ var import_react5 = require("react");
76
80
 
77
81
  // src/styles/common.tsx
78
82
  var import_react4 = require("@emotion/react");
79
83
  var import_styled = __toESM(require("@emotion/styled"), 1);
80
- var import_react_tooltip = require("react-tooltip");
81
84
 
82
85
  // src/styles/breakpoints.tsx
83
86
  var import_react = require("@emotion/react");
@@ -1260,6 +1263,10 @@ var umaLightTheme = extend(lightTheme, {
1260
1263
  bg: uma.blue90
1261
1264
  })
1262
1265
  });
1266
+ var isLight = (theme) => theme.type === "light" /* Light */;
1267
+ var themeOr = (lightValue, darkValue) => ({ theme }) => {
1268
+ return isLight(theme) ? lightValue : darkValue;
1269
+ };
1263
1270
  function luminance(r, g, b) {
1264
1271
  const a = [r, g, b].map(function(v) {
1265
1272
  v /= 255;
@@ -1283,59 +1290,47 @@ function hexToRGB(hex) {
1283
1290
  ] : [0, 0, 0];
1284
1291
  }
1285
1292
 
1286
- // src/styles/z-index.tsx
1287
- var z = {
1288
- card: 1,
1289
- fieldError: 1,
1290
- textInput: 2,
1291
- select: 3,
1292
- selectFocused: 4,
1293
- walletActionPreviewTopGradient: 1,
1294
- headerContainer: 99,
1295
- smBanner: 99,
1296
- headerTop: 100,
1297
- navMenu: 100,
1298
- smNavMenu: 100,
1299
- navAction: 101,
1300
- smNavAction: 100,
1301
- // keep under navDropdown
1302
- tooltip: 160,
1303
- notificationBanner: 170,
1304
- qrReaderVideo: 180,
1305
- qrReaderOverlay: 181,
1306
- modalOverlay: 190,
1307
- modalContainer: 191,
1308
- dropdown: 192,
1309
- toast: 200
1310
- };
1311
-
1312
1293
  // src/styles/common.tsx
1313
1294
  var rootFontSizePx = 12;
1314
1295
  var rootFontSizeRems = rootFontSizePx / 16;
1315
- var standardContentInsetPx = 32;
1316
- var standardContentInsetMdPx = 24;
1317
- var standardContentInsetSmPx = 16;
1318
- var smContentInset = import_react4.css`
1319
- ${bp.sm(`
1320
- margin-left: auto;
1321
- margin-right: auto;
1322
- width: calc(100% - ${standardContentInsetSmPx * 2}px);
1323
- `)}
1324
- `;
1325
- var minSmMaxLgContentInset = import_react4.css`
1326
- ${bp.minSmMaxLg(`
1327
- width: calc(100% - ${standardContentInsetMdPx * 2}px);
1328
- `)}
1329
- `;
1330
- var standardContentInset = import_react4.css`
1331
- margin-left: auto;
1332
- margin-right: auto;
1333
- width: calc(100% - ${standardContentInsetPx * 2}px);
1334
- max-width: 1280px;
1335
-
1336
- ${smContentInset}
1337
- ${minSmMaxLgContentInset}
1338
- `;
1296
+ function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
1297
+ const smCSS = import_react4.css`
1298
+ ${bp.sm(`
1299
+ margin-left: auto;
1300
+ margin-right: auto;
1301
+ width: calc(100% - ${smPx * 2}px);
1302
+ `)}
1303
+ `;
1304
+ const minSmMaxLgCSS = import_react4.css`
1305
+ ${bp.minSmMaxLg(`
1306
+ margin-left: auto;
1307
+ margin-right: auto;
1308
+ width: calc(100% - ${minSmMaxLgPx * 2}px);
1309
+ `)}
1310
+ `;
1311
+ const lgCSS = import_react4.css`
1312
+ ${bp.lg(`
1313
+ margin-left: auto;
1314
+ margin-right: auto;
1315
+ width: calc(100% - ${lgPx * 2}px);
1316
+ max-width: 1280px;
1317
+ `)}
1318
+ `;
1319
+ return {
1320
+ smPx,
1321
+ minSmMaxLgPx,
1322
+ lgPx,
1323
+ smCSS,
1324
+ minSmMaxLgCSS,
1325
+ lgCSS,
1326
+ css: import_react4.css`
1327
+ ${lgCSS}
1328
+ ${smCSS}
1329
+ ${minSmMaxLgCSS}
1330
+ `
1331
+ };
1332
+ }
1333
+ var standardContentInset = buildStandardContentInset(16, 24, 32);
1339
1334
  var standardCardShadow = import_react4.css`
1340
1335
  box-shadow:
1341
1336
  0px 4px 10px 0px rgba(0, 0, 0, 0.08),
@@ -1370,13 +1365,26 @@ var Subtext = import_styled.default.div`
1370
1365
  var darkGradientBg = import_react4.css`
1371
1366
  background: ${darkGradient};
1372
1367
  `;
1373
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1374
- z-index: ${z.modalOverlay};
1368
+ var overlaySurfaceBorderColor = ({
1369
+ theme,
1370
+ important = false
1371
+ }) => import_react4.css`
1372
+ border-color: ${themeOr(theme.c1Neutral, theme.c3Neutral)({ theme })}
1373
+ ${important ? "!important" : ""};
1374
+ `;
1375
+ var overlaySurface = ({
1376
+ theme,
1377
+ important = false
1378
+ }) => import_react4.css`
1379
+ background-color: ${themeOr(colors.white, theme.c1Neutral)({ theme })}
1380
+ ${important ? "!important" : ""};
1381
+ border: 0.5px solid ${important ? "!important" : ""};
1382
+ ${overlaySurfaceBorderColor({ theme, important })};
1383
+ ${themeOr(
1384
+ `box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1) ${important ? "!important" : ""};`,
1385
+ ""
1386
+ )({ theme })}
1375
1387
  `;
1376
-
1377
- // src/components/Icon.tsx
1378
- var import_styled2 = __toESM(require("@emotion/styled"), 1);
1379
- var import_react5 = require("react");
1380
1388
 
1381
1389
  // src/utils/strings.tsx
1382
1390
  function isString(str) {
@@ -1460,6 +1468,87 @@ var IconContainer = import_styled2.default.span`
1460
1468
  `}
1461
1469
  `;
1462
1470
 
1471
+ // src/components/LightTooltip.tsx
1472
+ var import_css = require("@emotion/css");
1473
+ var import_react6 = require("@emotion/react");
1474
+ var import_react7 = __toESM(require("react"), 1);
1475
+ var import_react_dom = __toESM(require("react-dom"), 1);
1476
+ var import_react_tooltip = require("react-tooltip");
1477
+
1478
+ // src/styles/z-index.tsx
1479
+ var z = {
1480
+ card: 1,
1481
+ fieldError: 1,
1482
+ textInput: 2,
1483
+ select: 3,
1484
+ selectFocused: 4,
1485
+ walletActionPreviewTopGradient: 1,
1486
+ headerContainer: 99,
1487
+ smBanner: 99,
1488
+ headerTop: 100,
1489
+ navMenu: 100,
1490
+ smNavMenu: 100,
1491
+ navAction: 101,
1492
+ smNavAction: 100,
1493
+ // keep under navDropdown
1494
+ notificationBanner: 170,
1495
+ qrReaderVideo: 180,
1496
+ qrReaderOverlay: 181,
1497
+ modalOverlay: 190,
1498
+ modalContainer: 191,
1499
+ dropdown: 192,
1500
+ tooltip: 193,
1501
+ toast: 200
1502
+ };
1503
+
1504
+ // src/components/LightTooltip.tsx
1505
+ var import_jsx_runtime3 = require("@emotion/react/jsx-runtime");
1506
+ function LightTooltip(props) {
1507
+ const nodeRef = (0, import_react7.useRef)(null);
1508
+ const [nodeReady, setNodeReady] = import_react7.default.useState(false);
1509
+ (0, import_react7.useEffect)(() => {
1510
+ if (!nodeRef.current) {
1511
+ nodeRef.current = document.createElement("div");
1512
+ document.body.appendChild(nodeRef.current);
1513
+ }
1514
+ setNodeReady(true);
1515
+ return () => {
1516
+ if (nodeRef.current) {
1517
+ document.body.removeChild(nodeRef.current);
1518
+ nodeRef.current = null;
1519
+ }
1520
+ };
1521
+ }, []);
1522
+ const theme = (0, import_react6.useTheme)();
1523
+ console.log("LightTooltip.tsx: tooltipProps:", props);
1524
+ return nodeReady && nodeRef.current ? import_react_dom.default.createPortal(
1525
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1526
+ import_react_tooltip.Tooltip,
1527
+ __spreadProps(__spreadValues({}, props), {
1528
+ id: props.id || "",
1529
+ content: props.content || "",
1530
+ noArrow: true,
1531
+ border: "0.05rem solid rgba(0, 0, 0, 0.1)",
1532
+ className: styles({ theme }),
1533
+ variant: "light",
1534
+ delayShow: 180
1535
+ })
1536
+ ),
1537
+ nodeRef.current
1538
+ ) : null;
1539
+ }
1540
+ var styles = ({ theme }) => import_css.css`
1541
+ font-size: "10px",
1542
+ color: ${theme.c2Neutral};
1543
+ border-radius: 8px !important;
1544
+ padding: 16px !important;
1545
+ z-index: ${z.tooltip};
1546
+ ${overlaySurface({ theme, important: true })};
1547
+
1548
+ max-width: 260px;
1549
+ box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.10), 0px 4px 8px 0px rgba(0, 0, 0, 0.08) !important;
1550
+ `;
1551
+
1463
1552
  // src/components/UnstyledButton.tsx
1464
1553
  var import_styled3 = __toESM(require("@emotion/styled"), 1);
1465
1554
  var UnstyledButton = import_styled3.default.button`
@@ -1477,15 +1566,15 @@ var UnstyledButton = import_styled3.default.button`
1477
1566
  `;
1478
1567
 
1479
1568
  // src/components/CopyToClipboardButton.tsx
1480
- var import_jsx_runtime3 = require("@emotion/react/jsx-runtime");
1569
+ var import_jsx_runtime4 = require("@emotion/react/jsx-runtime");
1481
1570
  var CopyToClipboardButton = (props) => {
1482
1571
  var _a;
1483
1572
  const originalTooltipContent = props.tooltipContent || "Click to copy";
1484
1573
  const icon = props.icon || "Copy";
1485
1574
  const id = `copy-node-name-${(_a = props.id) != null ? _a : (0, import_nanoid.nanoid)()}`;
1486
- const [tooltipContent, setTooltipContent] = (0, import_react6.useState)(originalTooltipContent);
1487
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
1488
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1575
+ const [tooltipContent, setTooltipContent] = (0, import_react8.useState)(originalTooltipContent);
1576
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1577
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1489
1578
  Button,
1490
1579
  {
1491
1580
  type: "button",
@@ -1506,12 +1595,19 @@ var CopyToClipboardButton = (props) => {
1506
1595
  ml: props.ml,
1507
1596
  "data-tooltip-id": id,
1508
1597
  children: [
1509
- props.children ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Children, { children: props.children }) : null,
1510
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: icon, width: props.isSm ? 12 : 16 })
1598
+ props.children ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Children, { children: props.children }) : null,
1599
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: icon, width: props.isSm ? 12 : 16 })
1511
1600
  ]
1512
1601
  }
1513
1602
  ),
1514
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StyledTooltip, { id, place: props.place || "right", variant: "dark", children: tooltipContent })
1603
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1604
+ LightTooltip,
1605
+ {
1606
+ id,
1607
+ place: props.place || "right",
1608
+ content: tooltipContent
1609
+ }
1610
+ )
1515
1611
  ] });
1516
1612
  };
1517
1613
  var Children = import_styled4.default.span`
@@ -1,14 +1,15 @@
1
1
  import {
2
2
  CopyToClipboardButton
3
- } from "../chunk-WWFDI534.js";
4
- import "../chunk-IQFU7CM5.js";
5
- import "../chunk-NZJCJJH5.js";
3
+ } from "../chunk-7C4MHI6Q.js";
4
+ import "../chunk-3GS5EFXV.js";
5
+ import "../chunk-3EVAP5JT.js";
6
+ import "../chunk-55OQPFLF.js";
7
+ import "../chunk-RWIZ7Q74.js";
6
8
  import "../chunk-LAMQKQU3.js";
7
- import "../chunk-RFGKH3R6.js";
9
+ import "../chunk-JK4BP73A.js";
8
10
  import "../chunk-2VBDEO6M.js";
9
11
  import "../chunk-E4EXM4SY.js";
10
12
  import "../chunk-JSGRNWSB.js";
11
- import "../chunk-CLU2FRJZ.js";
12
13
  import "../chunk-CIGAQ47A.js";
13
14
  export {
14
15
  CopyToClipboardButton
@@ -82,7 +82,6 @@ var import_react5 = require("react");
82
82
  // src/styles/common.tsx
83
83
  var import_react4 = require("@emotion/react");
84
84
  var import_styled = __toESM(require("@emotion/styled"), 1);
85
- var import_react_tooltip = require("react-tooltip");
86
85
 
87
86
  // src/styles/breakpoints.tsx
88
87
  var import_react = require("@emotion/react");
@@ -1288,59 +1287,47 @@ 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;
1323
- var smContentInset = import_react4.css`
1324
- ${bp.sm(`
1325
- margin-left: auto;
1326
- margin-right: auto;
1327
- width: calc(100% - ${standardContentInsetSmPx * 2}px);
1328
- `)}
1329
- `;
1330
- var minSmMaxLgContentInset = import_react4.css`
1331
- ${bp.minSmMaxLg(`
1332
- width: calc(100% - ${standardContentInsetMdPx * 2}px);
1333
- `)}
1334
- `;
1335
- var standardContentInset = import_react4.css`
1336
- margin-left: auto;
1337
- margin-right: auto;
1338
- width: calc(100% - ${standardContentInsetPx * 2}px);
1339
- max-width: 1280px;
1340
-
1341
- ${smContentInset}
1342
- ${minSmMaxLgContentInset}
1343
- `;
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);
1344
1331
  var standardCardShadow = import_react4.css`
1345
1332
  box-shadow:
1346
1333
  0px 4px 10px 0px rgba(0, 0, 0, 0.08),
@@ -1360,9 +1347,6 @@ var Subtext = import_styled.default.div`
1360
1347
  var darkGradientBg = import_react4.css`
1361
1348
  background: ${darkGradient};
1362
1349
  `;
1363
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1364
- z-index: ${z.modalOverlay};
1365
- `;
1366
1350
 
1367
1351
  // src/utils/strings.tsx
1368
1352
  function isString(str) {
@@ -1,14 +1,13 @@
1
1
  import {
2
2
  CurrencyAmount,
3
3
  CurrencyIcon
4
- } from "../chunk-23SR7TFO.js";
5
- import "../chunk-NZJCJJH5.js";
4
+ } from "../chunk-XZR237JJ.js";
5
+ import "../chunk-RWIZ7Q74.js";
6
6
  import "../chunk-LAMQKQU3.js";
7
- import "../chunk-RFGKH3R6.js";
7
+ import "../chunk-JK4BP73A.js";
8
8
  import "../chunk-2VBDEO6M.js";
9
9
  import "../chunk-E4EXM4SY.js";
10
10
  import "../chunk-JSGRNWSB.js";
11
- import "../chunk-CLU2FRJZ.js";
12
11
  import "../chunk-CIGAQ47A.js";
13
12
  export {
14
13
  CurrencyAmount,