@lightsparkdev/ui 0.0.6 → 0.0.8

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 (125) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{chunk-JYWYEOM6.js → chunk-2JM7UTAZ.js} +18 -5
  3. package/dist/{chunk-UO6U7AYM.js → chunk-2YB7653N.js} +1 -1
  4. package/dist/{chunk-RTUZVKPK.js → chunk-36C653MV.js} +1 -1
  5. package/dist/{chunk-IQFU7CM5.js → chunk-4KWTXZRY.js} +1 -1
  6. package/dist/{chunk-CLU2FRJZ.js → chunk-55OQPFLF.js} +1 -1
  7. package/dist/{chunk-3CZOYF3X.js → chunk-6FHLZM6N.js} +2 -2
  8. package/dist/{chunk-K7D7A34K.js → chunk-744FBGRP.js} +1 -1
  9. package/dist/{chunk-FKETYVPP.js → chunk-76Q4BK35.js} +87 -43
  10. package/dist/{chunk-NGS4OSWT.js → chunk-BAO4T4G5.js} +1 -1
  11. package/dist/{chunk-NH25O7PC.js → chunk-CW3W2VTZ.js} +1 -1
  12. package/dist/{chunk-G2PZZFJL.js → chunk-DAVVD7YE.js} +10 -10
  13. package/dist/{chunk-VBWTKANQ.js → chunk-FN5PM3HQ.js} +6 -6
  14. package/dist/{chunk-RFGKH3R6.js → chunk-HNVQIY5U.js} +0 -8
  15. package/dist/{chunk-I74XQIVV.js → chunk-MAMSU2XB.js} +3 -3
  16. package/dist/chunk-NRXJA2PM.js +67 -0
  17. package/dist/{chunk-M56R3RJ7.js → chunk-OGSDZTHM.js} +7 -3
  18. package/dist/chunk-SZVMKB4E.js +222 -0
  19. package/dist/chunk-U6XT5JKC.js +25 -0
  20. package/dist/{chunk-WWFDI534.js → chunk-UWN53KLJ.js} +13 -6
  21. package/dist/{chunk-TAI352I3.js → chunk-VE7J2N47.js} +1 -1
  22. package/dist/{chunk-NZJCJJH5.js → chunk-VHW2KROZ.js} +1 -1
  23. package/dist/{chunk-N2RDQJQ5.js → chunk-WTO7C7WA.js} +1 -1
  24. package/dist/{chunk-23SR7TFO.js → chunk-XAZ6NZ6I.js} +1 -1
  25. package/dist/chunk-YPB5SA65.js +163 -0
  26. package/dist/{chunk-SVQELXFK.js → chunk-Z5TPS2BO.js} +1 -1
  27. package/dist/{chunk-T33SBHYI.js → chunk-ZSUX6RLD.js} +3 -1
  28. package/dist/{chunk-2WYVO6B2.js → chunk-ZYHA6MJC.js} +1 -1
  29. package/dist/components/Badge.cjs +1332 -0
  30. package/dist/components/Badge.d.cts +10 -0
  31. package/dist/components/Badge.d.ts +10 -0
  32. package/dist/components/Badge.js +13 -0
  33. package/dist/components/Button.cjs +197 -83
  34. package/dist/components/Button.d.cts +3 -1
  35. package/dist/components/Button.d.ts +3 -1
  36. package/dist/components/Button.js +8 -7
  37. package/dist/components/ButtonRow.cjs +212 -82
  38. package/dist/components/ButtonRow.d.cts +6 -2
  39. package/dist/components/ButtonRow.d.ts +6 -2
  40. package/dist/components/ButtonRow.js +14 -11
  41. package/dist/components/Collapsible.cjs +0 -30
  42. package/dist/components/Collapsible.js +4 -5
  43. package/dist/components/ContentTable.cjs +0 -30
  44. package/dist/components/ContentTable.js +3 -4
  45. package/dist/components/CopyToClipboardButton.cjs +123 -41
  46. package/dist/components/CopyToClipboardButton.js +6 -5
  47. package/dist/components/CurrencyAmount.cjs +0 -30
  48. package/dist/components/CurrencyAmount.js +3 -4
  49. package/dist/components/FileInput.cjs +1945 -0
  50. package/dist/components/FileInput.d.cts +21 -0
  51. package/dist/components/FileInput.d.ts +21 -0
  52. package/dist/components/FileInput.js +113 -0
  53. package/dist/components/Icon.cjs +0 -30
  54. package/dist/components/Icon.js +2 -3
  55. package/dist/components/LightTooltip.cjs +1414 -0
  56. package/dist/components/LightTooltip.d.cts +9 -0
  57. package/dist/components/LightTooltip.d.ts +9 -0
  58. package/dist/components/LightTooltip.js +12 -0
  59. package/dist/components/LightboxImage.cjs +1 -1
  60. package/dist/components/LightboxImage.js +2 -2
  61. package/dist/components/LightsparkProvider.cjs +3 -33
  62. package/dist/components/LightsparkProvider.js +3 -4
  63. package/dist/components/Loading.cjs +0 -30
  64. package/dist/components/Loading.js +3 -4
  65. package/dist/components/Modal.cjs +208 -114
  66. package/dist/components/Modal.js +12 -11
  67. package/dist/components/Pill.cjs +1703 -0
  68. package/dist/components/Pill.d.cts +19 -0
  69. package/dist/components/Pill.d.ts +19 -0
  70. package/dist/components/Pill.js +16 -0
  71. package/dist/components/ProgressBar.cjs +0 -32
  72. package/dist/components/ProgressBar.js +2 -3
  73. package/dist/components/SecretContainer.cjs +124 -42
  74. package/dist/components/SecretContainer.js +7 -6
  75. package/dist/components/TextIconAligner.cjs +0 -30
  76. package/dist/components/TextIconAligner.js +3 -4
  77. package/dist/components/UnstyledButton.cjs +0 -30
  78. package/dist/components/UnstyledButton.js +2 -3
  79. package/dist/components/documentation/AnchorLinkHeader.cjs +0 -32
  80. package/dist/components/documentation/AnchorLinkHeader.js +3 -4
  81. package/dist/components/documentation/index.cjs +0 -32
  82. package/dist/components/documentation/index.js +3 -4
  83. package/dist/components/index.cjs +608 -327
  84. package/dist/components/index.d.cts +5 -1
  85. package/dist/components/index.d.ts +5 -1
  86. package/dist/components/index.js +37 -25
  87. package/dist/icons/Copy.cjs +4 -3
  88. package/dist/icons/Copy.js +4 -3
  89. package/dist/icons/Download.cjs +22 -11
  90. package/dist/icons/Download.js +23 -12
  91. package/dist/icons/Upload.cjs +22 -11
  92. package/dist/icons/Upload.js +23 -12
  93. package/dist/icons/index.cjs +0 -30
  94. package/dist/icons/index.js +2 -3
  95. package/dist/router.cjs +7 -3
  96. package/dist/router.js +1 -1
  97. package/dist/styles/common.cjs +0 -32
  98. package/dist/styles/common.d.cts +1 -5
  99. package/dist/styles/common.d.ts +1 -5
  100. package/dist/styles/common.js +1 -4
  101. package/dist/styles/fields.cjs +65 -34
  102. package/dist/styles/fields.d.cts +8 -2
  103. package/dist/styles/fields.d.ts +8 -2
  104. package/dist/styles/fields.js +28 -164
  105. package/dist/styles/fonts/typography/Article.cjs +0 -30
  106. package/dist/styles/fonts/typography/Article.js +6 -7
  107. package/dist/styles/fonts/typography/index.cjs +0 -30
  108. package/dist/styles/fonts/typography/index.js +11 -12
  109. package/dist/styles/fonts/typographyTokens.d.cts +4 -1
  110. package/dist/styles/fonts/typographyTokens.d.ts +4 -1
  111. package/dist/styles/global.cjs +3 -33
  112. package/dist/styles/global.js +2 -3
  113. package/dist/styles/type.cjs +0 -30
  114. package/dist/styles/type.js +2 -3
  115. package/dist/styles/utils.cjs +0 -30
  116. package/dist/styles/utils.js +2 -3
  117. package/dist/styles/z-index.cjs +1 -1
  118. package/dist/styles/z-index.d.cts +1 -1
  119. package/dist/styles/z-index.d.ts +1 -1
  120. package/dist/styles/z-index.js +1 -1
  121. package/dist/types/index.d.cts +2 -0
  122. package/dist/types/index.d.ts +2 -0
  123. package/dist/utils/toReactNodes.cjs +7 -3
  124. package/dist/utils/toReactNodes.js +2 -2
  125. package/package.json +5 -4
@@ -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-YPB5SA65.js";
4
+ import "../chunk-BAO4T4G5.js";
5
+ import "../chunk-2YB7653N.js";
6
+ import "../chunk-4KWTXZRY.js";
7
+ import "../chunk-VHW2KROZ.js";
8
+ import "../chunk-LAMQKQU3.js";
9
+ import "../chunk-HNVQIY5U.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,35 +1264,6 @@ 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
1269
  var standardContentInsetPx = 32;
@@ -1344,9 +1315,6 @@ var Subtext = import_styled.default.div`
1344
1315
  var darkGradientBg = import_react4.css`
1345
1316
  background: ${darkGradient};
1346
1317
  `;
1347
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1348
- z-index: ${z.modalOverlay};
1349
- `;
1350
1318
 
1351
1319
  // src/components/ProgressBar.tsx
1352
1320
  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-36C653MV.js";
4
+ import "../chunk-HNVQIY5U.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,32 +1284,6 @@ 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;
@@ -1374,14 +1351,31 @@ var Subtext = import_styled.default.div`
1374
1351
  var darkGradientBg = import_react4.css`
1375
1352
  background: ${darkGradient};
1376
1353
  `;
1377
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1378
- z-index: ${z.modalOverlay};
1354
+ var overlaySurfaceBorderColor = ({
1355
+ theme,
1356
+ important = false
1357
+ }) => import_react4.css`
1358
+ border-color: ${themeOr(theme.c1Neutral, theme.c3Neutral)({ theme })}
1359
+ ${important ? "!important" : ""};
1360
+ `;
1361
+ var overlaySurface = ({
1362
+ theme,
1363
+ important = false
1364
+ }) => import_react4.css`
1365
+ background-color: ${themeOr(colors.white, theme.c1Neutral)({ theme })}
1366
+ ${important ? "!important" : ""};
1367
+ border: 0.5px solid ${important ? "!important" : ""};
1368
+ ${overlaySurfaceBorderColor({ theme, important })};
1369
+ ${themeOr(
1370
+ `box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1) ${important ? "!important" : ""};`,
1371
+ ""
1372
+ )({ theme })}
1379
1373
  `;
1380
1374
 
1381
1375
  // src/components/CopyToClipboardButton.tsx
1382
1376
  var import_styled4 = __toESM(require("@emotion/styled"), 1);
1383
1377
  var import_nanoid = require("nanoid");
1384
- var import_react6 = require("react");
1378
+ var import_react8 = require("react");
1385
1379
 
1386
1380
  // src/components/Icon.tsx
1387
1381
  var import_styled2 = __toESM(require("@emotion/styled"), 1);
@@ -1469,6 +1463,87 @@ var IconContainer = import_styled2.default.span`
1469
1463
  `}
1470
1464
  `;
1471
1465
 
1466
+ // src/components/LightTooltip.tsx
1467
+ var import_css = require("@emotion/css");
1468
+ var import_react6 = require("@emotion/react");
1469
+ var import_react7 = __toESM(require("react"), 1);
1470
+ var import_react_dom = __toESM(require("react-dom"), 1);
1471
+ var import_react_tooltip = require("react-tooltip");
1472
+
1473
+ // src/styles/z-index.tsx
1474
+ var z = {
1475
+ card: 1,
1476
+ fieldError: 1,
1477
+ textInput: 2,
1478
+ select: 3,
1479
+ selectFocused: 4,
1480
+ walletActionPreviewTopGradient: 1,
1481
+ headerContainer: 99,
1482
+ smBanner: 99,
1483
+ headerTop: 100,
1484
+ navMenu: 100,
1485
+ smNavMenu: 100,
1486
+ navAction: 101,
1487
+ smNavAction: 100,
1488
+ // keep under navDropdown
1489
+ notificationBanner: 170,
1490
+ qrReaderVideo: 180,
1491
+ qrReaderOverlay: 181,
1492
+ modalOverlay: 190,
1493
+ modalContainer: 191,
1494
+ dropdown: 192,
1495
+ tooltip: 193,
1496
+ toast: 200
1497
+ };
1498
+
1499
+ // src/components/LightTooltip.tsx
1500
+ var import_jsx_runtime3 = require("@emotion/react/jsx-runtime");
1501
+ function LightTooltip(props) {
1502
+ const nodeRef = (0, import_react7.useRef)(null);
1503
+ const [nodeReady, setNodeReady] = import_react7.default.useState(false);
1504
+ (0, import_react7.useEffect)(() => {
1505
+ if (!nodeRef.current) {
1506
+ nodeRef.current = document.createElement("div");
1507
+ document.body.appendChild(nodeRef.current);
1508
+ }
1509
+ setNodeReady(true);
1510
+ return () => {
1511
+ if (nodeRef.current) {
1512
+ document.body.removeChild(nodeRef.current);
1513
+ nodeRef.current = null;
1514
+ }
1515
+ };
1516
+ }, []);
1517
+ const theme = (0, import_react6.useTheme)();
1518
+ console.log("LightTooltip.tsx: tooltipProps:", props);
1519
+ return nodeReady && nodeRef.current ? import_react_dom.default.createPortal(
1520
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1521
+ import_react_tooltip.Tooltip,
1522
+ __spreadProps(__spreadValues({}, props), {
1523
+ id: props.id || "",
1524
+ content: props.content || "",
1525
+ noArrow: true,
1526
+ border: "0.05rem solid rgba(0, 0, 0, 0.1)",
1527
+ className: styles({ theme }),
1528
+ variant: "light",
1529
+ delayShow: 180
1530
+ })
1531
+ ),
1532
+ nodeRef.current
1533
+ ) : null;
1534
+ }
1535
+ var styles = ({ theme }) => import_css.css`
1536
+ font-size: "10px",
1537
+ color: ${theme.c2Neutral};
1538
+ border-radius: 8px !important;
1539
+ padding: 16px !important;
1540
+ z-index: ${z.tooltip};
1541
+ ${overlaySurface({ theme, important: true })};
1542
+
1543
+ max-width: 260px;
1544
+ box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.10), 0px 4px 8px 0px rgba(0, 0, 0, 0.08) !important;
1545
+ `;
1546
+
1472
1547
  // src/components/UnstyledButton.tsx
1473
1548
  var import_styled3 = __toESM(require("@emotion/styled"), 1);
1474
1549
  var UnstyledButton = import_styled3.default.button`
@@ -1486,15 +1561,15 @@ var UnstyledButton = import_styled3.default.button`
1486
1561
  `;
1487
1562
 
1488
1563
  // src/components/CopyToClipboardButton.tsx
1489
- var import_jsx_runtime3 = require("@emotion/react/jsx-runtime");
1564
+ var import_jsx_runtime4 = require("@emotion/react/jsx-runtime");
1490
1565
  var CopyToClipboardButton = (props) => {
1491
1566
  var _a;
1492
1567
  const originalTooltipContent = props.tooltipContent || "Click to copy";
1493
1568
  const icon = props.icon || "Copy";
1494
1569
  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)(
1570
+ const [tooltipContent, setTooltipContent] = (0, import_react8.useState)(originalTooltipContent);
1571
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1572
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1498
1573
  Button,
1499
1574
  {
1500
1575
  type: "button",
@@ -1515,12 +1590,19 @@ var CopyToClipboardButton = (props) => {
1515
1590
  ml: props.ml,
1516
1591
  "data-tooltip-id": id,
1517
1592
  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 })
1593
+ props.children ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Children, { children: props.children }) : null,
1594
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: icon, width: props.isSm ? 12 : 16 })
1520
1595
  ]
1521
1596
  }
1522
1597
  ),
1523
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StyledTooltip, { id, place: props.place || "right", variant: "dark", children: tooltipContent })
1598
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1599
+ LightTooltip,
1600
+ {
1601
+ id,
1602
+ place: props.place || "right",
1603
+ content: tooltipContent
1604
+ }
1605
+ )
1524
1606
  ] });
1525
1607
  };
1526
1608
  var Children = import_styled4.default.span`
@@ -1533,10 +1615,10 @@ var Button = (0, import_styled4.default)(UnstyledButton)`
1533
1615
  `;
1534
1616
 
1535
1617
  // src/components/SecretContainer.tsx
1536
- var import_jsx_runtime4 = require("@emotion/react/jsx-runtime");
1618
+ var import_jsx_runtime5 = require("@emotion/react/jsx-runtime");
1537
1619
  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)(
1620
+ return props.secret ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(StyledSecretContainer, { hasSecret: true, success: props.success, children: [
1621
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1540
1622
  "span",
1541
1623
  {
1542
1624
  style: {
@@ -1548,8 +1630,8 @@ function SecretContainer(props) {
1548
1630
  children: props.secret
1549
1631
  }
1550
1632
  ),
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" });
1633
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CopyToClipboardButton, { value: props.secret, isSm: true, ml: 4 })
1634
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(StyledSecretContainer, { hasSecret: false, children: "There are no tokens associated with this account" });
1553
1635
  }
1554
1636
  var StyledSecretContainer = import_styled5.default.div`
1555
1637
  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-6FHLZM6N.js";
4
+ import "../chunk-UWN53KLJ.js";
5
+ import "../chunk-4KWTXZRY.js";
6
+ import "../chunk-NRXJA2PM.js";
7
+ import "../chunk-55OQPFLF.js";
8
+ import "../chunk-VHW2KROZ.js";
7
9
  import "../chunk-LAMQKQU3.js";
8
- import "../chunk-RFGKH3R6.js";
10
+ import "../chunk-HNVQIY5U.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,32 +1283,6 @@ 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;
@@ -1356,9 +1329,6 @@ var Subtext = import_styled.default.div`
1356
1329
  var darkGradientBg = import_react4.css`
1357
1330
  background: ${darkGradient};
1358
1331
  `;
1359
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1360
- z-index: ${z.modalOverlay};
1361
- `;
1362
1332
 
1363
1333
  // src/utils/strings.tsx
1364
1334
  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-WTO7C7WA.js";
4
+ import "../chunk-VHW2KROZ.js";
5
5
  import "../chunk-LAMQKQU3.js";
6
- import "../chunk-RFGKH3R6.js";
6
+ import "../chunk-HNVQIY5U.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
@@ -55,7 +55,6 @@ var import_styled2 = __toESM(require("@emotion/styled"), 1);
55
55
  // src/styles/common.tsx
56
56
  var import_react4 = require("@emotion/react");
57
57
  var import_styled = __toESM(require("@emotion/styled"), 1);
58
- var import_react_tooltip = require("react-tooltip");
59
58
 
60
59
  // src/styles/breakpoints.tsx
61
60
  var import_react = require("@emotion/react");
@@ -1261,32 +1260,6 @@ function hexToRGB(hex) {
1261
1260
  ] : [0, 0, 0];
1262
1261
  }
1263
1262
 
1264
- // src/styles/z-index.tsx
1265
- var z = {
1266
- card: 1,
1267
- fieldError: 1,
1268
- textInput: 2,
1269
- select: 3,
1270
- selectFocused: 4,
1271
- walletActionPreviewTopGradient: 1,
1272
- headerContainer: 99,
1273
- smBanner: 99,
1274
- headerTop: 100,
1275
- navMenu: 100,
1276
- smNavMenu: 100,
1277
- navAction: 101,
1278
- smNavAction: 100,
1279
- // keep under navDropdown
1280
- tooltip: 160,
1281
- notificationBanner: 170,
1282
- qrReaderVideo: 180,
1283
- qrReaderOverlay: 181,
1284
- modalOverlay: 190,
1285
- modalContainer: 191,
1286
- dropdown: 192,
1287
- toast: 200
1288
- };
1289
-
1290
1263
  // src/styles/common.tsx
1291
1264
  var rootFontSizePx = 12;
1292
1265
  var rootFontSizeRems = rootFontSizePx / 16;
@@ -1348,9 +1321,6 @@ var Subtext = import_styled.default.div`
1348
1321
  var darkGradientBg = import_react4.css`
1349
1322
  background: ${darkGradient};
1350
1323
  `;
1351
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1352
- z-index: ${z.modalOverlay};
1353
- `;
1354
1324
 
1355
1325
  // src/components/UnstyledButton.tsx
1356
1326
  var UnstyledButton = import_styled2.default.button`
@@ -1,11 +1,10 @@
1
1
  import {
2
2
  UnstyledButton
3
- } from "../chunk-IQFU7CM5.js";
4
- import "../chunk-RFGKH3R6.js";
3
+ } from "../chunk-4KWTXZRY.js";
4
+ import "../chunk-HNVQIY5U.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
  UnstyledButton
@@ -1362,35 +1362,6 @@ var import_react6 = require("react");
1362
1362
  // src/styles/common.tsx
1363
1363
  var import_react5 = require("@emotion/react");
1364
1364
  var import_styled2 = __toESM(require("@emotion/styled"), 1);
1365
- var import_react_tooltip = require("react-tooltip");
1366
-
1367
- // src/styles/z-index.tsx
1368
- var z = {
1369
- card: 1,
1370
- fieldError: 1,
1371
- textInput: 2,
1372
- select: 3,
1373
- selectFocused: 4,
1374
- walletActionPreviewTopGradient: 1,
1375
- headerContainer: 99,
1376
- smBanner: 99,
1377
- headerTop: 100,
1378
- navMenu: 100,
1379
- smNavMenu: 100,
1380
- navAction: 101,
1381
- smNavAction: 100,
1382
- // keep under navDropdown
1383
- tooltip: 160,
1384
- notificationBanner: 170,
1385
- qrReaderVideo: 180,
1386
- qrReaderOverlay: 181,
1387
- modalOverlay: 190,
1388
- modalContainer: 191,
1389
- dropdown: 192,
1390
- toast: 200
1391
- };
1392
-
1393
- // src/styles/common.tsx
1394
1365
  var rootFontSizePx = 12;
1395
1366
  var rootFontSizeRems = rootFontSizePx / 16;
1396
1367
  var standardContentInsetPx = 32;
@@ -1436,9 +1407,6 @@ var Subtext = import_styled2.default.div`
1436
1407
  var darkGradientBg = import_react5.css`
1437
1408
  background: ${darkGradient};
1438
1409
  `;
1439
- var StyledTooltip = (0, import_styled2.default)(import_react_tooltip.Tooltip)`
1440
- z-index: ${z.modalOverlay};
1441
- `;
1442
1410
 
1443
1411
  // src/utils/strings.tsx
1444
1412
  function isString(str) {
@@ -1,16 +1,15 @@
1
1
  "use client";
2
2
  import {
3
3
  AnchorLinkHeader
4
- } from "../../chunk-NH25O7PC.js";
4
+ } from "../../chunk-CW3W2VTZ.js";
5
5
  import "../../chunk-4TFRLWCC.js";
6
6
  import "../../chunk-YMNSXZ5D.js";
7
- import "../../chunk-NZJCJJH5.js";
7
+ import "../../chunk-VHW2KROZ.js";
8
8
  import "../../chunk-LAMQKQU3.js";
9
- import "../../chunk-RFGKH3R6.js";
9
+ import "../../chunk-HNVQIY5U.js";
10
10
  import "../../chunk-2VBDEO6M.js";
11
11
  import "../../chunk-E4EXM4SY.js";
12
12
  import "../../chunk-JSGRNWSB.js";
13
- import "../../chunk-CLU2FRJZ.js";
14
13
  import "../../chunk-CIGAQ47A.js";
15
14
  export {
16
15
  AnchorLinkHeader
@@ -1363,35 +1363,6 @@ var import_react6 = require("react");
1363
1363
  // src/styles/common.tsx
1364
1364
  var import_react5 = require("@emotion/react");
1365
1365
  var import_styled2 = __toESM(require("@emotion/styled"), 1);
1366
- var import_react_tooltip = require("react-tooltip");
1367
-
1368
- // src/styles/z-index.tsx
1369
- var z = {
1370
- card: 1,
1371
- fieldError: 1,
1372
- textInput: 2,
1373
- select: 3,
1374
- selectFocused: 4,
1375
- walletActionPreviewTopGradient: 1,
1376
- headerContainer: 99,
1377
- smBanner: 99,
1378
- headerTop: 100,
1379
- navMenu: 100,
1380
- smNavMenu: 100,
1381
- navAction: 101,
1382
- smNavAction: 100,
1383
- // keep under navDropdown
1384
- tooltip: 160,
1385
- notificationBanner: 170,
1386
- qrReaderVideo: 180,
1387
- qrReaderOverlay: 181,
1388
- modalOverlay: 190,
1389
- modalContainer: 191,
1390
- dropdown: 192,
1391
- toast: 200
1392
- };
1393
-
1394
- // src/styles/common.tsx
1395
1366
  var rootFontSizePx = 12;
1396
1367
  var rootFontSizeRems = rootFontSizePx / 16;
1397
1368
  var standardContentInsetPx = 32;
@@ -1437,9 +1408,6 @@ var Subtext = import_styled2.default.div`
1437
1408
  var darkGradientBg = import_react5.css`
1438
1409
  background: ${darkGradient};
1439
1410
  `;
1440
- var StyledTooltip = (0, import_styled2.default)(import_react_tooltip.Tooltip)`
1441
- z-index: ${z.modalOverlay};
1442
- `;
1443
1411
 
1444
1412
  // src/utils/strings.tsx
1445
1413
  function isString(str) {
@@ -1,15 +1,14 @@
1
1
  import {
2
2
  AnchorLinkHeader
3
- } from "../../chunk-NH25O7PC.js";
3
+ } from "../../chunk-CW3W2VTZ.js";
4
4
  import "../../chunk-4TFRLWCC.js";
5
5
  import "../../chunk-YMNSXZ5D.js";
6
- import "../../chunk-NZJCJJH5.js";
6
+ import "../../chunk-VHW2KROZ.js";
7
7
  import "../../chunk-LAMQKQU3.js";
8
- import "../../chunk-RFGKH3R6.js";
8
+ import "../../chunk-HNVQIY5U.js";
9
9
  import "../../chunk-2VBDEO6M.js";
10
10
  import "../../chunk-E4EXM4SY.js";
11
11
  import "../../chunk-JSGRNWSB.js";
12
- import "../../chunk-CLU2FRJZ.js";
13
12
  import "../../chunk-CIGAQ47A.js";
14
13
  export {
15
14
  AnchorLinkHeader