@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
@@ -0,0 +1,19 @@
1
+ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
+
3
+ type PillProps = {
4
+ onDeleteMouseDown?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
5
+ onDeleteMouseUp?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
6
+ onDeleteFromKeyboard?: () => void;
7
+ text: string;
8
+ loading?: boolean;
9
+ icon?: string;
10
+ cursor?: "pointer" | "text";
11
+ isEditing?: boolean;
12
+ onChangeTextInput?: (newValue: string) => void;
13
+ onFocusTextInput?: () => void;
14
+ onBlurTextInput?: () => void;
15
+ onClickPillBody?: (() => void) | undefined;
16
+ };
17
+ declare function Pill({ text, onDeleteMouseDown, onDeleteMouseUp, onDeleteFromKeyboard, icon, loading, cursor, isEditing, onChangeTextInput, onFocusTextInput, onClickPillBody, onBlurTextInput, }: PillProps): _emotion_react_jsx_runtime.JSX.Element;
18
+
19
+ export { Pill };
@@ -0,0 +1,19 @@
1
+ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
+
3
+ type PillProps = {
4
+ onDeleteMouseDown?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
5
+ onDeleteMouseUp?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
6
+ onDeleteFromKeyboard?: () => void;
7
+ text: string;
8
+ loading?: boolean;
9
+ icon?: string;
10
+ cursor?: "pointer" | "text";
11
+ isEditing?: boolean;
12
+ onChangeTextInput?: (newValue: string) => void;
13
+ onFocusTextInput?: () => void;
14
+ onBlurTextInput?: () => void;
15
+ onClickPillBody?: (() => void) | undefined;
16
+ };
17
+ declare function Pill({ text, onDeleteMouseDown, onDeleteMouseUp, onDeleteFromKeyboard, icon, loading, cursor, isEditing, onChangeTextInput, onFocusTextInput, onClickPillBody, onBlurTextInput, }: PillProps): _emotion_react_jsx_runtime.JSX.Element;
18
+
19
+ export { Pill };
@@ -0,0 +1,16 @@
1
+ import {
2
+ Pill
3
+ } from "../chunk-A4FQBEYU.js";
4
+ import "../chunk-J4FJQ3FN.js";
5
+ import "../chunk-3GS5EFXV.js";
6
+ import "../chunk-FCZJILMW.js";
7
+ import "../chunk-RWIZ7Q74.js";
8
+ import "../chunk-LAMQKQU3.js";
9
+ import "../chunk-JK4BP73A.js";
10
+ import "../chunk-2VBDEO6M.js";
11
+ import "../chunk-E4EXM4SY.js";
12
+ import "../chunk-JSGRNWSB.js";
13
+ import "../chunk-CIGAQ47A.js";
14
+ export {
15
+ Pill
16
+ };
@@ -1264,67 +1264,52 @@ function hexToRGB(hex) {
1264
1264
  // src/styles/common.tsx
1265
1265
  var import_react4 = require("@emotion/react");
1266
1266
  var import_styled = __toESM(require("@emotion/styled"), 1);
1267
- var import_react_tooltip = require("react-tooltip");
1268
-
1269
- // src/styles/z-index.tsx
1270
- var z = {
1271
- card: 1,
1272
- fieldError: 1,
1273
- textInput: 2,
1274
- select: 3,
1275
- selectFocused: 4,
1276
- walletActionPreviewTopGradient: 1,
1277
- headerContainer: 99,
1278
- smBanner: 99,
1279
- headerTop: 100,
1280
- navMenu: 100,
1281
- smNavMenu: 100,
1282
- navAction: 101,
1283
- smNavAction: 100,
1284
- // keep under navDropdown
1285
- tooltip: 160,
1286
- notificationBanner: 170,
1287
- qrReaderVideo: 180,
1288
- qrReaderOverlay: 181,
1289
- modalOverlay: 190,
1290
- modalContainer: 191,
1291
- dropdown: 192,
1292
- toast: 200
1293
- };
1294
-
1295
- // src/styles/common.tsx
1296
1267
  var rootFontSizePx = 12;
1297
1268
  var rootFontSizeRems = rootFontSizePx / 16;
1298
- var standardContentInsetPx = 32;
1299
- var standardContentInsetMdPx = 24;
1300
- var standardContentInsetSmPx = 16;
1269
+ function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
1270
+ const smCSS = import_react4.css`
1271
+ ${bp.sm(`
1272
+ margin-left: auto;
1273
+ margin-right: auto;
1274
+ width: calc(100% - ${smPx * 2}px);
1275
+ `)}
1276
+ `;
1277
+ const minSmMaxLgCSS = import_react4.css`
1278
+ ${bp.minSmMaxLg(`
1279
+ margin-left: auto;
1280
+ margin-right: auto;
1281
+ width: calc(100% - ${minSmMaxLgPx * 2}px);
1282
+ `)}
1283
+ `;
1284
+ const lgCSS = import_react4.css`
1285
+ ${bp.lg(`
1286
+ margin-left: auto;
1287
+ margin-right: auto;
1288
+ width: calc(100% - ${lgPx * 2}px);
1289
+ max-width: 1280px;
1290
+ `)}
1291
+ `;
1292
+ return {
1293
+ smPx,
1294
+ minSmMaxLgPx,
1295
+ lgPx,
1296
+ smCSS,
1297
+ minSmMaxLgCSS,
1298
+ lgCSS,
1299
+ css: import_react4.css`
1300
+ ${lgCSS}
1301
+ ${smCSS}
1302
+ ${minSmMaxLgCSS}
1303
+ `
1304
+ };
1305
+ }
1306
+ var standardContentInset = buildStandardContentInset(16, 24, 32);
1301
1307
  var standardBorderRadius = (radius) => {
1302
1308
  const borderRadiusPx = Array.isArray(radius) ? radius.map((r) => `${r}px`).join(" ") : `${radius}px`;
1303
1309
  return `
1304
1310
  border-radius: ${borderRadiusPx};
1305
1311
  `;
1306
1312
  };
1307
- var smContentInset = import_react4.css`
1308
- ${bp.sm(`
1309
- margin-left: auto;
1310
- margin-right: auto;
1311
- width: calc(100% - ${standardContentInsetSmPx * 2}px);
1312
- `)}
1313
- `;
1314
- var minSmMaxLgContentInset = import_react4.css`
1315
- ${bp.minSmMaxLg(`
1316
- width: calc(100% - ${standardContentInsetMdPx * 2}px);
1317
- `)}
1318
- `;
1319
- var standardContentInset = import_react4.css`
1320
- margin-left: auto;
1321
- margin-right: auto;
1322
- width: calc(100% - ${standardContentInsetPx * 2}px);
1323
- max-width: 1280px;
1324
-
1325
- ${smContentInset}
1326
- ${minSmMaxLgContentInset}
1327
- `;
1328
1313
  var standardCardShadow = import_react4.css`
1329
1314
  box-shadow:
1330
1315
  0px 4px 10px 0px rgba(0, 0, 0, 0.08),
@@ -1344,9 +1329,6 @@ var Subtext = import_styled.default.div`
1344
1329
  var darkGradientBg = import_react4.css`
1345
1330
  background: ${darkGradient};
1346
1331
  `;
1347
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1348
- z-index: ${z.modalOverlay};
1349
- `;
1350
1332
 
1351
1333
  // src/components/ProgressBar.tsx
1352
1334
  var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
@@ -1,11 +1,10 @@
1
1
  import {
2
2
  ProgressBar
3
- } from "../chunk-RTUZVKPK.js";
4
- import "../chunk-RFGKH3R6.js";
3
+ } from "../chunk-E3AOYBY5.js";
4
+ import "../chunk-JK4BP73A.js";
5
5
  import "../chunk-2VBDEO6M.js";
6
6
  import "../chunk-E4EXM4SY.js";
7
7
  import "../chunk-JSGRNWSB.js";
8
- import "../chunk-CLU2FRJZ.js";
9
8
  import "../chunk-CIGAQ47A.js";
10
9
  export {
11
10
  ProgressBar
@@ -75,7 +75,6 @@ var import_styled5 = __toESM(require("@emotion/styled"), 1);
75
75
  // src/styles/common.tsx
76
76
  var import_react4 = require("@emotion/react");
77
77
  var import_styled = __toESM(require("@emotion/styled"), 1);
78
- var import_react_tooltip = require("react-tooltip");
79
78
 
80
79
  // src/styles/breakpoints.tsx
81
80
  var import_react = require("@emotion/react");
@@ -1258,6 +1257,10 @@ var umaLightTheme = extend(lightTheme, {
1258
1257
  bg: uma.blue90
1259
1258
  })
1260
1259
  });
1260
+ var isLight = (theme) => theme.type === "light" /* Light */;
1261
+ var themeOr = (lightValue, darkValue) => ({ theme }) => {
1262
+ return isLight(theme) ? lightValue : darkValue;
1263
+ };
1261
1264
  function luminance(r, g, b) {
1262
1265
  const a = [r, g, b].map(function(v) {
1263
1266
  v /= 255;
@@ -1281,65 +1284,53 @@ function hexToRGB(hex) {
1281
1284
  ] : [0, 0, 0];
1282
1285
  }
1283
1286
 
1284
- // src/styles/z-index.tsx
1285
- var z = {
1286
- card: 1,
1287
- fieldError: 1,
1288
- textInput: 2,
1289
- select: 3,
1290
- selectFocused: 4,
1291
- walletActionPreviewTopGradient: 1,
1292
- headerContainer: 99,
1293
- smBanner: 99,
1294
- headerTop: 100,
1295
- navMenu: 100,
1296
- smNavMenu: 100,
1297
- navAction: 101,
1298
- smNavAction: 100,
1299
- // keep under navDropdown
1300
- tooltip: 160,
1301
- notificationBanner: 170,
1302
- qrReaderVideo: 180,
1303
- qrReaderOverlay: 181,
1304
- modalOverlay: 190,
1305
- modalContainer: 191,
1306
- dropdown: 192,
1307
- toast: 200
1308
- };
1309
-
1310
1287
  // src/styles/common.tsx
1311
1288
  var rootFontSizePx = 12;
1312
1289
  var rootFontSizeRems = rootFontSizePx / 16;
1313
- var standardContentInsetPx = 32;
1314
- var standardContentInsetMdPx = 24;
1315
- var standardContentInsetSmPx = 16;
1290
+ function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
1291
+ const smCSS = import_react4.css`
1292
+ ${bp.sm(`
1293
+ margin-left: auto;
1294
+ margin-right: auto;
1295
+ width: calc(100% - ${smPx * 2}px);
1296
+ `)}
1297
+ `;
1298
+ const minSmMaxLgCSS = import_react4.css`
1299
+ ${bp.minSmMaxLg(`
1300
+ margin-left: auto;
1301
+ margin-right: auto;
1302
+ width: calc(100% - ${minSmMaxLgPx * 2}px);
1303
+ `)}
1304
+ `;
1305
+ const lgCSS = import_react4.css`
1306
+ ${bp.lg(`
1307
+ margin-left: auto;
1308
+ margin-right: auto;
1309
+ width: calc(100% - ${lgPx * 2}px);
1310
+ max-width: 1280px;
1311
+ `)}
1312
+ `;
1313
+ return {
1314
+ smPx,
1315
+ minSmMaxLgPx,
1316
+ lgPx,
1317
+ smCSS,
1318
+ minSmMaxLgCSS,
1319
+ lgCSS,
1320
+ css: import_react4.css`
1321
+ ${lgCSS}
1322
+ ${smCSS}
1323
+ ${minSmMaxLgCSS}
1324
+ `
1325
+ };
1326
+ }
1327
+ var standardContentInset = buildStandardContentInset(16, 24, 32);
1316
1328
  var standardBorderRadius = (radius) => {
1317
1329
  const borderRadiusPx = Array.isArray(radius) ? radius.map((r) => `${r}px`).join(" ") : `${radius}px`;
1318
1330
  return `
1319
1331
  border-radius: ${borderRadiusPx};
1320
1332
  `;
1321
1333
  };
1322
- var smContentInset = import_react4.css`
1323
- ${bp.sm(`
1324
- margin-left: auto;
1325
- margin-right: auto;
1326
- width: calc(100% - ${standardContentInsetSmPx * 2}px);
1327
- `)}
1328
- `;
1329
- var minSmMaxLgContentInset = import_react4.css`
1330
- ${bp.minSmMaxLg(`
1331
- width: calc(100% - ${standardContentInsetMdPx * 2}px);
1332
- `)}
1333
- `;
1334
- var standardContentInset = import_react4.css`
1335
- margin-left: auto;
1336
- margin-right: auto;
1337
- width: calc(100% - ${standardContentInsetPx * 2}px);
1338
- max-width: 1280px;
1339
-
1340
- ${smContentInset}
1341
- ${minSmMaxLgContentInset}
1342
- `;
1343
1334
  var standardCardShadow = import_react4.css`
1344
1335
  box-shadow:
1345
1336
  0px 4px 10px 0px rgba(0, 0, 0, 0.08),
@@ -1374,14 +1365,31 @@ var Subtext = import_styled.default.div`
1374
1365
  var darkGradientBg = import_react4.css`
1375
1366
  background: ${darkGradient};
1376
1367
  `;
1377
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1378
- 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 })}
1379
1387
  `;
1380
1388
 
1381
1389
  // src/components/CopyToClipboardButton.tsx
1382
1390
  var import_styled4 = __toESM(require("@emotion/styled"), 1);
1383
1391
  var import_nanoid = require("nanoid");
1384
- var import_react6 = require("react");
1392
+ var import_react8 = require("react");
1385
1393
 
1386
1394
  // src/components/Icon.tsx
1387
1395
  var import_styled2 = __toESM(require("@emotion/styled"), 1);
@@ -1469,6 +1477,87 @@ var IconContainer = import_styled2.default.span`
1469
1477
  `}
1470
1478
  `;
1471
1479
 
1480
+ // src/components/LightTooltip.tsx
1481
+ var import_css = require("@emotion/css");
1482
+ var import_react6 = require("@emotion/react");
1483
+ var import_react7 = __toESM(require("react"), 1);
1484
+ var import_react_dom = __toESM(require("react-dom"), 1);
1485
+ var import_react_tooltip = require("react-tooltip");
1486
+
1487
+ // src/styles/z-index.tsx
1488
+ var z = {
1489
+ card: 1,
1490
+ fieldError: 1,
1491
+ textInput: 2,
1492
+ select: 3,
1493
+ selectFocused: 4,
1494
+ walletActionPreviewTopGradient: 1,
1495
+ headerContainer: 99,
1496
+ smBanner: 99,
1497
+ headerTop: 100,
1498
+ navMenu: 100,
1499
+ smNavMenu: 100,
1500
+ navAction: 101,
1501
+ smNavAction: 100,
1502
+ // keep under navDropdown
1503
+ notificationBanner: 170,
1504
+ qrReaderVideo: 180,
1505
+ qrReaderOverlay: 181,
1506
+ modalOverlay: 190,
1507
+ modalContainer: 191,
1508
+ dropdown: 192,
1509
+ tooltip: 193,
1510
+ toast: 200
1511
+ };
1512
+
1513
+ // src/components/LightTooltip.tsx
1514
+ var import_jsx_runtime3 = require("@emotion/react/jsx-runtime");
1515
+ function LightTooltip(props) {
1516
+ const nodeRef = (0, import_react7.useRef)(null);
1517
+ const [nodeReady, setNodeReady] = import_react7.default.useState(false);
1518
+ (0, import_react7.useEffect)(() => {
1519
+ if (!nodeRef.current) {
1520
+ nodeRef.current = document.createElement("div");
1521
+ document.body.appendChild(nodeRef.current);
1522
+ }
1523
+ setNodeReady(true);
1524
+ return () => {
1525
+ if (nodeRef.current) {
1526
+ document.body.removeChild(nodeRef.current);
1527
+ nodeRef.current = null;
1528
+ }
1529
+ };
1530
+ }, []);
1531
+ const theme = (0, import_react6.useTheme)();
1532
+ console.log("LightTooltip.tsx: tooltipProps:", props);
1533
+ return nodeReady && nodeRef.current ? import_react_dom.default.createPortal(
1534
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1535
+ import_react_tooltip.Tooltip,
1536
+ __spreadProps(__spreadValues({}, props), {
1537
+ id: props.id || "",
1538
+ content: props.content || "",
1539
+ noArrow: true,
1540
+ border: "0.05rem solid rgba(0, 0, 0, 0.1)",
1541
+ className: styles({ theme }),
1542
+ variant: "light",
1543
+ delayShow: 180
1544
+ })
1545
+ ),
1546
+ nodeRef.current
1547
+ ) : null;
1548
+ }
1549
+ var styles = ({ theme }) => import_css.css`
1550
+ font-size: "10px",
1551
+ color: ${theme.c2Neutral};
1552
+ border-radius: 8px !important;
1553
+ padding: 16px !important;
1554
+ z-index: ${z.tooltip};
1555
+ ${overlaySurface({ theme, important: true })};
1556
+
1557
+ max-width: 260px;
1558
+ box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.10), 0px 4px 8px 0px rgba(0, 0, 0, 0.08) !important;
1559
+ `;
1560
+
1472
1561
  // src/components/UnstyledButton.tsx
1473
1562
  var import_styled3 = __toESM(require("@emotion/styled"), 1);
1474
1563
  var UnstyledButton = import_styled3.default.button`
@@ -1486,15 +1575,15 @@ var UnstyledButton = import_styled3.default.button`
1486
1575
  `;
1487
1576
 
1488
1577
  // src/components/CopyToClipboardButton.tsx
1489
- var import_jsx_runtime3 = require("@emotion/react/jsx-runtime");
1578
+ var import_jsx_runtime4 = require("@emotion/react/jsx-runtime");
1490
1579
  var CopyToClipboardButton = (props) => {
1491
1580
  var _a;
1492
1581
  const originalTooltipContent = props.tooltipContent || "Click to copy";
1493
1582
  const icon = props.icon || "Copy";
1494
1583
  const id = `copy-node-name-${(_a = props.id) != null ? _a : (0, import_nanoid.nanoid)()}`;
1495
- const [tooltipContent, setTooltipContent] = (0, import_react6.useState)(originalTooltipContent);
1496
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
1497
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1584
+ const [tooltipContent, setTooltipContent] = (0, import_react8.useState)(originalTooltipContent);
1585
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1586
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1498
1587
  Button,
1499
1588
  {
1500
1589
  type: "button",
@@ -1515,12 +1604,19 @@ var CopyToClipboardButton = (props) => {
1515
1604
  ml: props.ml,
1516
1605
  "data-tooltip-id": id,
1517
1606
  children: [
1518
- props.children ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Children, { children: props.children }) : null,
1519
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: icon, width: props.isSm ? 12 : 16 })
1607
+ props.children ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Children, { children: props.children }) : null,
1608
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: icon, width: props.isSm ? 12 : 16 })
1520
1609
  ]
1521
1610
  }
1522
1611
  ),
1523
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StyledTooltip, { id, place: props.place || "right", variant: "dark", children: tooltipContent })
1612
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1613
+ LightTooltip,
1614
+ {
1615
+ id,
1616
+ place: props.place || "right",
1617
+ content: tooltipContent
1618
+ }
1619
+ )
1524
1620
  ] });
1525
1621
  };
1526
1622
  var Children = import_styled4.default.span`
@@ -1533,10 +1629,10 @@ var Button = (0, import_styled4.default)(UnstyledButton)`
1533
1629
  `;
1534
1630
 
1535
1631
  // src/components/SecretContainer.tsx
1536
- var import_jsx_runtime4 = require("@emotion/react/jsx-runtime");
1632
+ var import_jsx_runtime5 = require("@emotion/react/jsx-runtime");
1537
1633
  function SecretContainer(props) {
1538
- return props.secret ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(StyledSecretContainer, { hasSecret: true, success: props.success, children: [
1539
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1634
+ return props.secret ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(StyledSecretContainer, { hasSecret: true, success: props.success, children: [
1635
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1540
1636
  "span",
1541
1637
  {
1542
1638
  style: {
@@ -1548,8 +1644,8 @@ function SecretContainer(props) {
1548
1644
  children: props.secret
1549
1645
  }
1550
1646
  ),
1551
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CopyToClipboardButton, { value: props.secret, isSm: true, ml: 4 })
1552
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(StyledSecretContainer, { hasSecret: false, children: "There are no tokens associated with this account" });
1647
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CopyToClipboardButton, { value: props.secret, isSm: true, ml: 4 })
1648
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(StyledSecretContainer, { hasSecret: false, children: "There are no tokens associated with this account" });
1553
1649
  }
1554
1650
  var StyledSecretContainer = import_styled5.default.div`
1555
1651
  background-color: ${({ theme, hasSecret, success }) => hasSecret ? success ? theme.success : theme.c05Neutral : theme.bg};
@@ -1,15 +1,16 @@
1
1
  import {
2
2
  SecretContainer
3
- } from "../chunk-3CZOYF3X.js";
4
- import "../chunk-WWFDI534.js";
5
- import "../chunk-IQFU7CM5.js";
6
- import "../chunk-NZJCJJH5.js";
3
+ } from "../chunk-7T36JGTC.js";
4
+ import "../chunk-7C4MHI6Q.js";
5
+ import "../chunk-3GS5EFXV.js";
6
+ import "../chunk-3EVAP5JT.js";
7
+ import "../chunk-55OQPFLF.js";
8
+ import "../chunk-RWIZ7Q74.js";
7
9
  import "../chunk-LAMQKQU3.js";
8
- import "../chunk-RFGKH3R6.js";
10
+ import "../chunk-JK4BP73A.js";
9
11
  import "../chunk-2VBDEO6M.js";
10
12
  import "../chunk-E4EXM4SY.js";
11
13
  import "../chunk-JSGRNWSB.js";
12
- import "../chunk-CLU2FRJZ.js";
13
14
  import "../chunk-CIGAQ47A.js";
14
15
  export {
15
16
  SecretContainer
@@ -78,7 +78,6 @@ var import_react5 = require("react");
78
78
  // src/styles/common.tsx
79
79
  var import_react4 = require("@emotion/react");
80
80
  var import_styled = __toESM(require("@emotion/styled"), 1);
81
- var import_react_tooltip = require("react-tooltip");
82
81
 
83
82
  // src/styles/breakpoints.tsx
84
83
  var import_react = require("@emotion/react");
@@ -1284,59 +1283,47 @@ function hexToRGB(hex) {
1284
1283
  ] : [0, 0, 0];
1285
1284
  }
1286
1285
 
1287
- // src/styles/z-index.tsx
1288
- var z = {
1289
- card: 1,
1290
- fieldError: 1,
1291
- textInput: 2,
1292
- select: 3,
1293
- selectFocused: 4,
1294
- walletActionPreviewTopGradient: 1,
1295
- headerContainer: 99,
1296
- smBanner: 99,
1297
- headerTop: 100,
1298
- navMenu: 100,
1299
- smNavMenu: 100,
1300
- navAction: 101,
1301
- smNavAction: 100,
1302
- // keep under navDropdown
1303
- tooltip: 160,
1304
- notificationBanner: 170,
1305
- qrReaderVideo: 180,
1306
- qrReaderOverlay: 181,
1307
- modalOverlay: 190,
1308
- modalContainer: 191,
1309
- dropdown: 192,
1310
- toast: 200
1311
- };
1312
-
1313
1286
  // src/styles/common.tsx
1314
1287
  var rootFontSizePx = 12;
1315
1288
  var rootFontSizeRems = rootFontSizePx / 16;
1316
- var standardContentInsetPx = 32;
1317
- var standardContentInsetMdPx = 24;
1318
- var standardContentInsetSmPx = 16;
1319
- var smContentInset = import_react4.css`
1320
- ${bp.sm(`
1321
- margin-left: auto;
1322
- margin-right: auto;
1323
- width: calc(100% - ${standardContentInsetSmPx * 2}px);
1324
- `)}
1325
- `;
1326
- var minSmMaxLgContentInset = import_react4.css`
1327
- ${bp.minSmMaxLg(`
1328
- width: calc(100% - ${standardContentInsetMdPx * 2}px);
1329
- `)}
1330
- `;
1331
- var standardContentInset = import_react4.css`
1332
- margin-left: auto;
1333
- margin-right: auto;
1334
- width: calc(100% - ${standardContentInsetPx * 2}px);
1335
- max-width: 1280px;
1336
-
1337
- ${smContentInset}
1338
- ${minSmMaxLgContentInset}
1339
- `;
1289
+ function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
1290
+ const smCSS = import_react4.css`
1291
+ ${bp.sm(`
1292
+ margin-left: auto;
1293
+ margin-right: auto;
1294
+ width: calc(100% - ${smPx * 2}px);
1295
+ `)}
1296
+ `;
1297
+ const minSmMaxLgCSS = import_react4.css`
1298
+ ${bp.minSmMaxLg(`
1299
+ margin-left: auto;
1300
+ margin-right: auto;
1301
+ width: calc(100% - ${minSmMaxLgPx * 2}px);
1302
+ `)}
1303
+ `;
1304
+ const lgCSS = import_react4.css`
1305
+ ${bp.lg(`
1306
+ margin-left: auto;
1307
+ margin-right: auto;
1308
+ width: calc(100% - ${lgPx * 2}px);
1309
+ max-width: 1280px;
1310
+ `)}
1311
+ `;
1312
+ return {
1313
+ smPx,
1314
+ minSmMaxLgPx,
1315
+ lgPx,
1316
+ smCSS,
1317
+ minSmMaxLgCSS,
1318
+ lgCSS,
1319
+ css: import_react4.css`
1320
+ ${lgCSS}
1321
+ ${smCSS}
1322
+ ${minSmMaxLgCSS}
1323
+ `
1324
+ };
1325
+ }
1326
+ var standardContentInset = buildStandardContentInset(16, 24, 32);
1340
1327
  var standardCardShadow = import_react4.css`
1341
1328
  box-shadow:
1342
1329
  0px 4px 10px 0px rgba(0, 0, 0, 0.08),
@@ -1356,9 +1343,6 @@ var Subtext = import_styled.default.div`
1356
1343
  var darkGradientBg = import_react4.css`
1357
1344
  background: ${darkGradient};
1358
1345
  `;
1359
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1360
- z-index: ${z.modalOverlay};
1361
- `;
1362
1346
 
1363
1347
  // src/utils/strings.tsx
1364
1348
  function isString(str) {
@@ -1,13 +1,12 @@
1
1
  import {
2
2
  TextIconAligner
3
- } from "../chunk-N2RDQJQ5.js";
4
- import "../chunk-NZJCJJH5.js";
3
+ } from "../chunk-5POPBNPS.js";
4
+ import "../chunk-RWIZ7Q74.js";
5
5
  import "../chunk-LAMQKQU3.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
  TextIconAligner