@lightsparkdev/ui 0.0.4 → 0.0.6

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 (107) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +2 -0
  3. package/dist/{chunk-3PB5DNAL.js → chunk-23SR7TFO.js} +1 -1
  4. package/dist/{chunk-VV7F7VVL.js → chunk-2WYVO6B2.js} +1 -1
  5. package/dist/{chunk-PVUPVJ3F.js → chunk-3CZOYF3X.js} +5 -2
  6. package/dist/{chunk-4K2KAYVH.js → chunk-4TFRLWCC.js} +4 -1
  7. package/dist/{chunk-SUD5NOKE.js → chunk-FKETYVPP.js} +11 -6
  8. package/dist/{chunk-6R6A5H4I.js → chunk-G2PZZFJL.js} +20 -12
  9. package/dist/{chunk-WB6FFT7Y.js → chunk-I74XQIVV.js} +6 -3
  10. package/dist/{chunk-DHNWT2E5.js → chunk-IQFU7CM5.js} +1 -1
  11. package/dist/{chunk-U6LQLAWI.js → chunk-JYWYEOM6.js} +3 -3
  12. package/dist/{chunk-EZ4RHFY7.js → chunk-K7D7A34K.js} +1 -1
  13. package/dist/{chunk-6RXFA73Z.js → chunk-M56R3RJ7.js} +10 -1
  14. package/dist/{chunk-WEPQ7LRL.js → chunk-N2RDQJQ5.js} +1 -1
  15. package/dist/{chunk-OLAFBUE5.js → chunk-NGS4OSWT.js} +1 -1
  16. package/dist/{chunk-ANJDI74G.js → chunk-NH25O7PC.js} +6 -3
  17. package/dist/{chunk-MYG24ZWT.js → chunk-NZJCJJH5.js} +1 -1
  18. package/dist/{chunk-SW6ZA7W2.js → chunk-QGGOMPHZ.js} +4 -1
  19. package/dist/{chunk-XUGLVWSH.js → chunk-RFGKH3R6.js} +27 -7
  20. package/dist/{chunk-ZQTE53SK.js → chunk-RTUZVKPK.js} +10 -8
  21. package/dist/{chunk-YHSFWCFN.js → chunk-T33SBHYI.js} +3 -2
  22. package/dist/chunk-TAI352I3.js +30 -0
  23. package/dist/{chunk-SV5QPU7N.js → chunk-UO6U7AYM.js} +1 -1
  24. package/dist/{chunk-4ZZHBSW4.js → chunk-VBWTKANQ.js} +15 -8
  25. package/dist/{chunk-FRIQXHPR.js → chunk-WWFDI534.js} +3 -3
  26. package/dist/chunk-YMNSXZ5D.js +8 -0
  27. package/dist/components/Button.cjs +8 -1
  28. package/dist/components/Button.js +8 -7
  29. package/dist/components/ButtonRow.js +10 -9
  30. package/dist/components/Collapsible.cjs +8 -4
  31. package/dist/components/Collapsible.js +5 -5
  32. package/dist/components/ContentTable.js +4 -4
  33. package/dist/components/CopyToClipboardButton.js +5 -5
  34. package/dist/components/CurrencyAmount.js +4 -4
  35. package/dist/components/Icon.js +3 -3
  36. package/dist/components/LightsparkProvider.cjs +2 -1
  37. package/dist/components/LightsparkProvider.js +4 -4
  38. package/dist/components/Loading.js +4 -4
  39. package/dist/components/Modal.cjs +113 -66
  40. package/dist/components/Modal.d.cts +1 -1
  41. package/dist/components/Modal.d.ts +1 -1
  42. package/dist/components/Modal.js +12 -10
  43. package/dist/components/ProgressBar.cjs +200 -17
  44. package/dist/components/ProgressBar.js +3 -1
  45. package/dist/components/SecretContainer.cjs +12 -6
  46. package/dist/components/SecretContainer.js +6 -6
  47. package/dist/components/TextIconAligner.d.cts +2 -2
  48. package/dist/components/TextIconAligner.d.ts +2 -2
  49. package/dist/components/TextIconAligner.js +4 -4
  50. package/dist/components/UnstyledButton.js +3 -3
  51. package/dist/components/documentation/AnchorLinkHeader.cjs +7 -2
  52. package/dist/components/documentation/AnchorLinkHeader.js +6 -5
  53. package/dist/components/documentation/index.cjs +7 -2
  54. package/dist/components/documentation/index.js +6 -5
  55. package/dist/components/index.cjs +108 -60
  56. package/dist/components/index.js +20 -18
  57. package/dist/icons/DotGrid1x3Horizontal.cjs +60 -0
  58. package/dist/icons/DotGrid1x3Horizontal.d.cts +5 -0
  59. package/dist/icons/DotGrid1x3Horizontal.d.ts +5 -0
  60. package/dist/icons/DotGrid1x3Horizontal.js +41 -0
  61. package/dist/icons/Home.cjs +52 -0
  62. package/dist/icons/Home.d.cts +5 -0
  63. package/dist/icons/Home.d.ts +5 -0
  64. package/dist/icons/Home.js +29 -0
  65. package/dist/icons/Person.cjs +22 -12
  66. package/dist/icons/Person.js +23 -13
  67. package/dist/icons/Team.cjs +3 -3
  68. package/dist/icons/Team.js +3 -3
  69. package/dist/icons/index.js +3 -3
  70. package/dist/router.cjs +10 -0
  71. package/dist/router.d.cts +5 -2
  72. package/dist/router.d.ts +5 -2
  73. package/dist/router.js +3 -1
  74. package/dist/styles/colors.d.cts +2 -1
  75. package/dist/styles/colors.d.ts +2 -1
  76. package/dist/styles/common.cjs +26 -4
  77. package/dist/styles/common.d.cts +16 -9
  78. package/dist/styles/common.d.ts +16 -9
  79. package/dist/styles/common.js +6 -2
  80. package/dist/styles/fields.cjs +1 -1
  81. package/dist/styles/fields.d.cts +11 -15
  82. package/dist/styles/fields.d.ts +11 -15
  83. package/dist/styles/fields.js +5 -5
  84. package/dist/styles/fonts/typography/Article.cjs +18 -6
  85. package/dist/styles/fonts/typography/Article.js +9 -8
  86. package/dist/styles/fonts/typography/Display.cjs +6 -1
  87. package/dist/styles/fonts/typography/Display.js +2 -1
  88. package/dist/styles/fonts/typography/Headline.cjs +6 -1
  89. package/dist/styles/fonts/typography/Headline.js +2 -1
  90. package/dist/styles/fonts/typography/index.cjs +18 -6
  91. package/dist/styles/fonts/typography/index.js +15 -14
  92. package/dist/styles/global.cjs +2 -1
  93. package/dist/styles/global.js +3 -3
  94. package/dist/styles/type.cjs +3 -2
  95. package/dist/styles/type.d.cts +4 -0
  96. package/dist/styles/type.d.ts +4 -0
  97. package/dist/styles/type.js +6 -5
  98. package/dist/styles/utils.js +3 -3
  99. package/dist/utils/emotion.cjs +32 -0
  100. package/dist/utils/emotion.d.cts +5 -0
  101. package/dist/utils/emotion.d.ts +5 -0
  102. package/dist/utils/emotion.js +7 -0
  103. package/dist/utils/toReactNodes.cjs +1252 -0
  104. package/dist/utils/toReactNodes.d.cts +14 -0
  105. package/dist/utils/toReactNodes.d.ts +14 -0
  106. package/dist/utils/toReactNodes.js +14 -0
  107. package/package.json +12 -3
@@ -1452,6 +1452,12 @@ var standardLineHeightEms = 1.21;
1452
1452
  var standardContentInsetPx = 32;
1453
1453
  var standardContentInsetMdPx = 24;
1454
1454
  var standardContentInsetSmPx = 16;
1455
+ var standardBorderRadius = (radius) => {
1456
+ const borderRadiusPx = Array.isArray(radius) ? radius.map((r) => `${r}px`).join(" ") : `${radius}px`;
1457
+ return `
1458
+ border-radius: ${borderRadiusPx};
1459
+ `;
1460
+ };
1455
1461
  var smContentInset = import_react5.css`
1456
1462
  ${bp.sm(`
1457
1463
  margin-left: auto;
@@ -1510,15 +1516,32 @@ var darkGradientBg = import_react5.css`
1510
1516
  var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1511
1517
  z-index: ${z.modalOverlay};
1512
1518
  `;
1513
- var overlaySurface = ({ theme }) => import_react5.css`
1514
- background-color: ${themeOr(colors.white, theme.c1Neutral)({ theme })};
1515
- border: 0.5px solid ${themeOr(theme.c1Neutral, theme.c3Neutral)({ theme })};
1519
+ var overlaySurfaceBorderColor = ({
1520
+ theme,
1521
+ important = false
1522
+ }) => import_react5.css`
1523
+ border-color: ${themeOr(theme.c1Neutral, theme.c3Neutral)({ theme })}
1524
+ ${important ? "!important" : ""};
1525
+ `;
1526
+ var overlaySurface = ({
1527
+ theme,
1528
+ important = false
1529
+ }) => import_react5.css`
1530
+ background-color: ${themeOr(colors.white, theme.c1Neutral)({ theme })}
1531
+ ${important ? "!important" : ""};
1532
+ border: 0.5px solid ${important ? "!important" : ""};
1533
+ ${overlaySurfaceBorderColor({ theme, important })};
1516
1534
  ${themeOr(
1517
- "box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1);",
1535
+ `box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1) ${important ? "!important" : ""};`,
1518
1536
  ""
1519
1537
  )({ theme })}
1520
1538
  `;
1521
1539
 
1540
+ // src/utils/emotion.tsx
1541
+ function select(component) {
1542
+ return component.toString();
1543
+ }
1544
+
1522
1545
  // src/components/Icon.tsx
1523
1546
  var import_styled2 = __toESM(require("@emotion/styled"), 1);
1524
1547
  var import_react6 = require("react");
@@ -1894,7 +1917,9 @@ var ButtonLink = (0, import_styled5.default)(Link)`
1894
1917
  var ButtonHrefLink = import_styled5.default.a`
1895
1918
  ${(props) => buttonStyle(props)}
1896
1919
  `;
1897
- var ButtonSelector = (prepend = "", append = "") => `${prepend}${StyledButton.toString()}${append}, ${prepend}${ButtonLink.toString()}${append}, ${prepend}${ButtonHrefLink.toString()}${append}`;
1920
+ var ButtonSelector = (prepend = "", append = "") => `${prepend}${select(StyledButton)}${append}, ${prepend}${select(
1921
+ ButtonLink
1922
+ )}${append}, ${prepend}${select(ButtonHrefLink)}${append}`;
1898
1923
 
1899
1924
  // src/components/ButtonRow.tsx
1900
1925
  var import_styled6 = __toESM(require("@emotion/styled"), 1);
@@ -2069,7 +2094,7 @@ var StyledCollapsibleButton = import_styled7.default.button`
2069
2094
  background: none;
2070
2095
  border: none;
2071
2096
  cursor: pointer;
2072
- border-radius: 8px;
2097
+ ${standardBorderRadius(8)}
2073
2098
  padding: 0;
2074
2099
  `;
2075
2100
  var IconContainer2 = import_styled7.default.div`
@@ -2446,6 +2471,7 @@ var globalComponentStyles = ({ theme }) => import_react12.css`
2446
2471
  /* required for iOS https://bit.ly/3Q8syG8 */
2447
2472
  -webkit-text-size-adjust: none;
2448
2473
  text-size-adjust: none;
2474
+ scroll-behavior: smooth;
2449
2475
  }
2450
2476
 
2451
2477
  body {
@@ -2526,7 +2552,7 @@ function GlobalStyles() {
2526
2552
 
2527
2553
  :root {
2528
2554
  ${cssVars.docHeight}: 100vh;
2529
- --rt-opacity: 1;
2555
+ --rt-opacity: 1 !important;
2530
2556
  }
2531
2557
 
2532
2558
  html {
@@ -2560,7 +2586,7 @@ function LightsparkProvider({ children }) {
2560
2586
 
2561
2587
  // src/components/Modal.tsx
2562
2588
  var import_styled13 = __toESM(require("@emotion/styled"), 1);
2563
- var import_react17 = __toESM(require("react"), 1);
2589
+ var import_react18 = __toESM(require("react"), 1);
2564
2590
  var import_react_dom = __toESM(require("react-dom"), 1);
2565
2591
 
2566
2592
  // src/hooks/useLiveRef.tsx
@@ -2577,10 +2603,32 @@ function useLiveRef() {
2577
2603
  return [ready ? ref : { current: null }, refCb];
2578
2604
  }
2579
2605
 
2580
- // src/components/ProgressBar.tsx
2581
- var import_styled12 = __toESM(require("@emotion/styled"), 1);
2606
+ // src/utils/toReactNodes.tsx
2582
2607
  var import_react16 = require("react");
2583
2608
  var import_jsx_runtime14 = require("@emotion/react/jsx-runtime");
2609
+ var ToReactNodesTypes = {
2610
+ Link: "link"
2611
+ };
2612
+ function toReactNodes(toReactNodesArg) {
2613
+ const toReactNodesArray = Array.isArray(toReactNodesArg) ? toReactNodesArg : [toReactNodesArg];
2614
+ const reactNodes = toReactNodesArray.map((node, i) => {
2615
+ if (typeof node === "string") {
2616
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react16.Fragment, { children: node.split("\n").map((str, j, strArr) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react16.Fragment, { children: [
2617
+ str,
2618
+ j < strArr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("br", {})
2619
+ ] }, `str-${i}-break-${j}`)) }, `str-${i}`);
2620
+ } else if (node.type === ToReactNodesTypes.Link) {
2621
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Link, { to: node.to, children: node.text }, `link-${i}`);
2622
+ }
2623
+ return null;
2624
+ });
2625
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react16.Fragment, { children: reactNodes });
2626
+ }
2627
+
2628
+ // src/components/ProgressBar.tsx
2629
+ var import_styled12 = __toESM(require("@emotion/styled"), 1);
2630
+ var import_react17 = require("react");
2631
+ var import_jsx_runtime15 = require("@emotion/react/jsx-runtime");
2584
2632
  var defaultProps2 = {
2585
2633
  isSm: false,
2586
2634
  stepDuration: 0.5
@@ -2591,18 +2639,17 @@ function ProgressBar({
2591
2639
  isSm = defaultProps2.isSm,
2592
2640
  stepDuration = defaultProps2.stepDuration
2593
2641
  }) {
2594
- const [percentage, setPercentage] = (0, import_react16.useState)(5);
2595
- if (progressPercentage === void 0) {
2596
- setTimeout(() => {
2597
- setPercentage(100);
2598
- }, 0);
2599
- }
2600
- (0, import_react16.useEffect)(() => {
2642
+ const [percentage, setPercentage] = (0, import_react17.useState)(5);
2643
+ (0, import_react17.useEffect)(() => {
2601
2644
  if (progressPercentage !== void 0) {
2602
2645
  setPercentage(progressPercentage);
2646
+ } else {
2647
+ setTimeout(() => {
2648
+ setPercentage(100);
2649
+ }, 0);
2603
2650
  }
2604
2651
  }, [progressPercentage]);
2605
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ProgressBarContainer, { isSm, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Bar, { isSm, percentage, stepDuration, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2652
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ProgressBarContainer, { isSm, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Bar, { isSm, percentage, stepDuration, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2606
2653
  BarBg,
2607
2654
  {
2608
2655
  background,
@@ -2614,8 +2661,8 @@ function ProgressBar({
2614
2661
  }
2615
2662
  ProgressBar.defaultProps = defaultProps2;
2616
2663
  var ProgressBarContainer = import_styled12.default.div`
2664
+ ${standardBorderRadius(16)}
2617
2665
  background-color: ${({ theme }) => themeOr(theme.c05Neutral, theme.c1Neutral)({ theme })};
2618
- border-radius: 16px;
2619
2666
  box-sizing: border-box;
2620
2667
  display: flex;
2621
2668
  height: ${({ isSm }) => isSm ? "6px" : "16px"};
@@ -2624,7 +2671,7 @@ var ProgressBarContainer = import_styled12.default.div`
2624
2671
  position: relative;
2625
2672
  `;
2626
2673
  var BarBg = import_styled12.default.div`
2627
- border-radius: 16px;
2674
+ ${standardBorderRadius(16)}
2628
2675
  width: ${({ percentage }) => 100 / percentage * 100}%;
2629
2676
  height: 100%;
2630
2677
 
@@ -2638,8 +2685,8 @@ var BarBg = import_styled12.default.div`
2638
2685
  )`};
2639
2686
  `;
2640
2687
  var Bar = import_styled12.default.div`
2688
+ ${standardBorderRadius(16)}
2641
2689
  overflow: hidden;
2642
- border-radius: ${({ isSm }) => isSm ? "6px" : "16px"};
2643
2690
  box-sizing: border-box;
2644
2691
  display: inline-block;
2645
2692
  height: ${({ isSm }) => isSm ? "6px" : "16px"};
@@ -2649,7 +2696,7 @@ var Bar = import_styled12.default.div`
2649
2696
  `;
2650
2697
 
2651
2698
  // src/components/Modal.tsx
2652
- var import_jsx_runtime15 = require("@emotion/react/jsx-runtime");
2699
+ var import_jsx_runtime16 = require("@emotion/react/jsx-runtime");
2653
2700
  function Modal({
2654
2701
  visible,
2655
2702
  title,
@@ -2671,23 +2718,24 @@ function Modal({
2671
2718
  width = 460,
2672
2719
  progressBar
2673
2720
  }) {
2674
- const visibleChangedRef = (0, import_react17.useRef)(false);
2675
- const nodeRef = (0, import_react17.useRef)(null);
2721
+ const visibleChangedRef = (0, import_react18.useRef)(false);
2722
+ const nodeRef = (0, import_react18.useRef)(null);
2676
2723
  const [defaultFirstFocusRef, defaultFirstFocusRefCb] = useLiveRef();
2677
2724
  const ref = firstFocusRef || defaultFirstFocusRef;
2678
- const [nodeReady, setNodeReady] = import_react17.default.useState(false);
2679
- const overlayRef = (0, import_react17.useRef)(null);
2680
- const prevFocusedElement = (0, import_react17.useRef)();
2681
- const modalContainerRef = (0, import_react17.useRef)(null);
2725
+ const [nodeReady, setNodeReady] = import_react18.default.useState(false);
2726
+ const overlayRef = (0, import_react18.useRef)(null);
2727
+ const prevFocusedElement = (0, import_react18.useRef)();
2728
+ const modalContainerRef = (0, import_react18.useRef)(null);
2682
2729
  const bp2 = useBreakpoints();
2683
2730
  const isSm = bp2.current("sm" /* sm */);
2684
- (0, import_react17.useEffect)(() => {
2731
+ const formattedDescription = description ? toReactNodes(description) : null;
2732
+ (0, import_react18.useEffect)(() => {
2685
2733
  if (visible !== visibleChangedRef.current) {
2686
2734
  visibleChangedRef.current = visible;
2687
2735
  }
2688
2736
  }, [visible]);
2689
2737
  const visibleChanged = visible !== visibleChangedRef.current;
2690
- (0, import_react17.useEffect)(() => {
2738
+ (0, import_react18.useEffect)(() => {
2691
2739
  prevFocusedElement.current = document.activeElement;
2692
2740
  if (!nodeRef.current) {
2693
2741
  nodeRef.current = document.createElement("div");
@@ -2701,7 +2749,7 @@ function Modal({
2701
2749
  }
2702
2750
  };
2703
2751
  }, []);
2704
- (0, import_react17.useEffect)(() => {
2752
+ (0, import_react18.useEffect)(() => {
2705
2753
  const handleOutsideClick = (event) => {
2706
2754
  if (visible && overlayRef.current && event.target && overlayRef.current.contains(event.target) && !nonDismissable) {
2707
2755
  onClose();
@@ -2738,7 +2786,7 @@ function Modal({
2738
2786
  }
2739
2787
  };
2740
2788
  }, [onClose, visible, nonDismissable]);
2741
- (0, import_react17.useLayoutEffect)(() => {
2789
+ (0, import_react18.useLayoutEffect)(() => {
2742
2790
  if (visible) {
2743
2791
  if (visibleChanged) {
2744
2792
  prevFocusedElement.current = document.activeElement;
@@ -2767,9 +2815,9 @@ function Modal({
2767
2815
  onClose();
2768
2816
  }
2769
2817
  }
2770
- const modalContent = /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_react17.Fragment, { children: [
2771
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ModalOverlay, { ref: overlayRef }),
2772
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2818
+ const modalContent = /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react18.Fragment, { children: [
2819
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ModalOverlay, { ref: overlayRef }),
2820
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2773
2821
  ModalContainer,
2774
2822
  {
2775
2823
  "aria-modal": true,
@@ -2777,22 +2825,22 @@ function Modal({
2777
2825
  tabIndex: -1,
2778
2826
  role: "dialog",
2779
2827
  ref: modalContainerRef,
2780
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(ModalContent, { width, ghost, children: [
2781
- !firstFocusRef && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
2782
- !(nonDismissable || ghost) && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CloseButton, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { name: "Close", width: 9 }) }),
2783
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(ModalContentInner, { ghost, children: [
2784
- progressBar ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { css: { marginBottom: "20px" }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2828
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(ModalContent, { width, ghost, children: [
2829
+ !firstFocusRef && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
2830
+ !(nonDismissable || ghost) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CloseButton, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { name: "Close", width: 9 }) }),
2831
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(ModalContentInner, { ghost, children: [
2832
+ progressBar ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { css: { marginBottom: "20px" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2785
2833
  ProgressBar,
2786
2834
  {
2787
2835
  progressPercentage: progressBar.progressPercentage,
2788
2836
  isSm: progressBar.isSm
2789
2837
  }
2790
2838
  ) }) : null,
2791
- title ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h4", { children: title }) : null,
2792
- description ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Description, { children: description }) : null,
2793
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { children }),
2794
- onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(ModalButtonRow, { children: [
2795
- !isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2839
+ title ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h4", { children: title }) : null,
2840
+ formattedDescription ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Description, { children: formattedDescription }) : null,
2841
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { children }),
2842
+ onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(ModalButtonRow, { children: [
2843
+ !isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2796
2844
  Button,
2797
2845
  {
2798
2846
  disabled: cancelDisabled,
@@ -2800,7 +2848,7 @@ function Modal({
2800
2848
  text: cancelText != null ? cancelText : "Cancel"
2801
2849
  }
2802
2850
  ),
2803
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2851
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2804
2852
  Button,
2805
2853
  {
2806
2854
  disabled: submitDisabled,
@@ -2810,7 +2858,7 @@ function Modal({
2810
2858
  type: "submit"
2811
2859
  }
2812
2860
  ),
2813
- isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Button, { onClick: onClose, text: "Cancel" })
2861
+ isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button, { onClick: onClose, text: "Cancel" })
2814
2862
  ] }) : null
2815
2863
  ] })
2816
2864
  ] })
@@ -2818,7 +2866,7 @@ function Modal({
2818
2866
  )
2819
2867
  ] });
2820
2868
  return visible && nodeReady && nodeRef.current ? import_react_dom.default.createPortal(
2821
- onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("form", { onSubmit: onSubmitForm, children: modalContent }) : modalContent,
2869
+ onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("form", { onSubmit: onSubmitForm, children: modalContent }) : modalContent,
2822
2870
  nodeRef.current
2823
2871
  ) : null;
2824
2872
  }
@@ -2886,13 +2934,13 @@ var ModalButtonRow = import_styled13.default.div`
2886
2934
  var ModalContent = import_styled13.default.div`
2887
2935
  ${overflowAutoWithoutScrollbars}
2888
2936
  ${smContentInset}
2937
+ ${standardBorderRadius(16)}
2889
2938
  ${(props) => props.ghost ? "" : overlaySurface}
2890
2939
  pointer-events: auto;
2891
2940
  transition: width 0.25s ease-in;
2892
2941
  width: ${(props) => props.width}px;
2893
2942
  max-width: 100%;
2894
2943
  max-height: 100%;
2895
- border-radius: 16px;
2896
2944
  position: absolute;
2897
2945
  ${(props) => props.ghost ? "" : "padding: 16px 16px 40px;"}
2898
2946
 
@@ -2900,7 +2948,7 @@ var ModalContent = import_styled13.default.div`
2900
2948
  margin: 0;
2901
2949
  font-weight: 800;
2902
2950
  font-size: ${pxToRems(21)};
2903
- & + *:not(${Description}) {
2951
+ & + *:not(${select(Description)}) {
2904
2952
  margin-top: ${contentTopMarginPx}px;
2905
2953
  }
2906
2954
  }
@@ -2920,10 +2968,10 @@ var ModalContentInner = import_styled13.default.div`
2920
2968
 
2921
2969
  // src/components/SecretContainer.tsx
2922
2970
  var import_styled14 = __toESM(require("@emotion/styled"), 1);
2923
- var import_jsx_runtime16 = require("@emotion/react/jsx-runtime");
2971
+ var import_jsx_runtime17 = require("@emotion/react/jsx-runtime");
2924
2972
  function SecretContainer(props) {
2925
- return props.secret ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(StyledSecretContainer, { hasSecret: true, success: props.success, children: [
2926
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2973
+ return props.secret ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(StyledSecretContainer, { hasSecret: true, success: props.success, children: [
2974
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2927
2975
  "span",
2928
2976
  {
2929
2977
  style: {
@@ -2935,12 +2983,12 @@ function SecretContainer(props) {
2935
2983
  children: props.secret
2936
2984
  }
2937
2985
  ),
2938
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CopyToClipboardButton, { value: props.secret, isSm: true, ml: 4 })
2939
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StyledSecretContainer, { hasSecret: false, children: "There are no tokens associated with this account" });
2986
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CopyToClipboardButton, { value: props.secret, isSm: true, ml: 4 })
2987
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledSecretContainer, { hasSecret: false, children: "There are no tokens associated with this account" });
2940
2988
  }
2941
2989
  var StyledSecretContainer = import_styled14.default.div`
2942
2990
  background-color: ${({ theme, hasSecret, success }) => hasSecret ? success ? theme.success : theme.c05Neutral : theme.bg};
2943
- border-radius: 8px;
2991
+ ${standardBorderRadius(8)}
2944
2992
  padding: 18px 20px;
2945
2993
  color: ${({ theme, success }) => success ? theme.hcNeutral : theme.text};
2946
2994
  border: solid 1px
@@ -2950,14 +2998,14 @@ var StyledSecretContainer = import_styled14.default.div`
2950
2998
  `;
2951
2999
 
2952
3000
  // src/components/TextIconAligner.tsx
2953
- var import_jsx_runtime17 = require("@emotion/react/jsx-runtime");
3001
+ var import_jsx_runtime18 = require("@emotion/react/jsx-runtime");
2954
3002
  function TextIconAligner({
2955
3003
  text,
2956
3004
  rightIcon,
2957
3005
  leftIcon,
2958
3006
  onClick
2959
3007
  }) {
2960
- const leftIconNode = leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3008
+ const leftIconNode = leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2961
3009
  Icon,
2962
3010
  {
2963
3011
  name: leftIcon.name,
@@ -2966,7 +3014,7 @@ function TextIconAligner({
2966
3014
  color: leftIcon.color
2967
3015
  }
2968
3016
  ) : null;
2969
- const rightIconNode = rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3017
+ const rightIconNode = rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2970
3018
  Icon,
2971
3019
  {
2972
3020
  name: rightIcon.name,
@@ -2975,7 +3023,7 @@ function TextIconAligner({
2975
3023
  color: rightIcon.color
2976
3024
  }
2977
3025
  ) : null;
2978
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3026
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2979
3027
  "span",
2980
3028
  {
2981
3029
  css: {
@@ -3,64 +3,66 @@ import {
3
3
  } from "../chunk-SVQELXFK.js";
4
4
  import {
5
5
  LightsparkProvider
6
- } from "../chunk-VV7F7VVL.js";
7
- import "../chunk-YHSFWCFN.js";
6
+ } from "../chunk-2WYVO6B2.js";
7
+ import "../chunk-T33SBHYI.js";
8
8
  import "../chunk-IJVWYT5G.js";
9
9
  import {
10
10
  Modal
11
- } from "../chunk-6R6A5H4I.js";
11
+ } from "../chunk-G2PZZFJL.js";
12
+ import "../chunk-TAI352I3.js";
12
13
  import "../chunk-NBCCPGA4.js";
13
14
  import {
14
15
  ProgressBar
15
- } from "../chunk-ZQTE53SK.js";
16
+ } from "../chunk-RTUZVKPK.js";
16
17
  import {
17
18
  SecretContainer
18
- } from "../chunk-PVUPVJ3F.js";
19
+ } from "../chunk-3CZOYF3X.js";
19
20
  import {
20
21
  TextIconAligner
21
- } from "../chunk-WEPQ7LRL.js";
22
+ } from "../chunk-N2RDQJQ5.js";
22
23
  import {
23
24
  ButtonRow,
24
25
  ButtonRowContainer
25
- } from "../chunk-U6LQLAWI.js";
26
+ } from "../chunk-JYWYEOM6.js";
26
27
  import {
27
28
  Button,
28
29
  ButtonSelector,
29
30
  StyledButton
30
- } from "../chunk-SUD5NOKE.js";
31
- import "../chunk-6RXFA73Z.js";
31
+ } from "../chunk-FKETYVPP.js";
32
+ import "../chunk-M56R3RJ7.js";
33
+ import "../chunk-YMNSXZ5D.js";
32
34
  import {
33
35
  Loading,
34
36
  LoadingWrapper
35
- } from "../chunk-OLAFBUE5.js";
37
+ } from "../chunk-NGS4OSWT.js";
36
38
  import {
37
39
  Collapsible
38
- } from "../chunk-WB6FFT7Y.js";
40
+ } from "../chunk-I74XQIVV.js";
39
41
  import "../chunk-3XSQV5U4.js";
40
- import "../chunk-SV5QPU7N.js";
42
+ import "../chunk-UO6U7AYM.js";
41
43
  import {
42
44
  CommandKey
43
45
  } from "../chunk-WOR7J4KZ.js";
44
46
  import {
45
47
  CopyToClipboardButton
46
- } from "../chunk-FRIQXHPR.js";
48
+ } from "../chunk-WWFDI534.js";
47
49
  import {
48
50
  UnstyledButton
49
- } from "../chunk-DHNWT2E5.js";
51
+ } from "../chunk-IQFU7CM5.js";
50
52
  import {
51
53
  CurrencyAmount,
52
54
  CurrencyIcon
53
- } from "../chunk-3PB5DNAL.js";
55
+ } from "../chunk-23SR7TFO.js";
54
56
  import {
55
57
  Icon,
56
58
  IconContainer
57
- } from "../chunk-MYG24ZWT.js";
59
+ } from "../chunk-NZJCJJH5.js";
58
60
  import "../chunk-LAMQKQU3.js";
59
- import "../chunk-XUGLVWSH.js";
60
- import "../chunk-CLU2FRJZ.js";
61
+ import "../chunk-RFGKH3R6.js";
61
62
  import "../chunk-2VBDEO6M.js";
62
63
  import "../chunk-E4EXM4SY.js";
63
64
  import "../chunk-JSGRNWSB.js";
65
+ import "../chunk-CLU2FRJZ.js";
64
66
  import "../chunk-CIGAQ47A.js";
65
67
  export {
66
68
  Button,
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/icons/DotGrid1x3Horizontal.tsx
21
+ var DotGrid1x3Horizontal_exports = {};
22
+ __export(DotGrid1x3Horizontal_exports, {
23
+ default: () => DotGrid1x3Horizontal_default
24
+ });
25
+ module.exports = __toCommonJS(DotGrid1x3Horizontal_exports);
26
+ var import_jsx_runtime = require("@emotion/react/jsx-runtime");
27
+ var DotGrid1x3Horizontal = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
28
+ "svg",
29
+ {
30
+ width: "16",
31
+ height: "16",
32
+ viewBox: "0 0 16 16",
33
+ fill: "none",
34
+ xmlns: "http://www.w3.org/2000/svg",
35
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { id: "dot-grid-1x3-horizontal, menu, drag, grab", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { id: "Icon", children: [
36
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
37
+ "path",
38
+ {
39
+ d: "M4.00001 6.66663H1.33334V9.33329H4.00001V6.66663Z",
40
+ fill: "currentColor"
41
+ }
42
+ ),
43
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
44
+ "path",
45
+ {
46
+ d: "M9.33334 6.66663H6.66668V9.33329H9.33334V6.66663Z",
47
+ fill: "currentColor"
48
+ }
49
+ ),
50
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51
+ "path",
52
+ {
53
+ d: "M14.6667 6.66663H12V9.33329H14.6667V6.66663Z",
54
+ fill: "currentColor"
55
+ }
56
+ )
57
+ ] }) })
58
+ }
59
+ );
60
+ var DotGrid1x3Horizontal_default = DotGrid1x3Horizontal;
@@ -0,0 +1,5 @@
1
+ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
+
3
+ declare const DotGrid1x3Horizontal: () => _emotion_react_jsx_runtime.JSX.Element;
4
+
5
+ export { DotGrid1x3Horizontal as default };
@@ -0,0 +1,5 @@
1
+ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
+
3
+ declare const DotGrid1x3Horizontal: () => _emotion_react_jsx_runtime.JSX.Element;
4
+
5
+ export { DotGrid1x3Horizontal as default };
@@ -0,0 +1,41 @@
1
+ import "../chunk-CIGAQ47A.js";
2
+
3
+ // src/icons/DotGrid1x3Horizontal.tsx
4
+ import { jsx, jsxs } from "@emotion/react/jsx-runtime";
5
+ var DotGrid1x3Horizontal = () => /* @__PURE__ */ jsx(
6
+ "svg",
7
+ {
8
+ width: "16",
9
+ height: "16",
10
+ viewBox: "0 0 16 16",
11
+ fill: "none",
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ children: /* @__PURE__ */ jsx("g", { id: "dot-grid-1x3-horizontal, menu, drag, grab", children: /* @__PURE__ */ jsxs("g", { id: "Icon", children: [
14
+ /* @__PURE__ */ jsx(
15
+ "path",
16
+ {
17
+ d: "M4.00001 6.66663H1.33334V9.33329H4.00001V6.66663Z",
18
+ fill: "currentColor"
19
+ }
20
+ ),
21
+ /* @__PURE__ */ jsx(
22
+ "path",
23
+ {
24
+ d: "M9.33334 6.66663H6.66668V9.33329H9.33334V6.66663Z",
25
+ fill: "currentColor"
26
+ }
27
+ ),
28
+ /* @__PURE__ */ jsx(
29
+ "path",
30
+ {
31
+ d: "M14.6667 6.66663H12V9.33329H14.6667V6.66663Z",
32
+ fill: "currentColor"
33
+ }
34
+ )
35
+ ] }) })
36
+ }
37
+ );
38
+ var DotGrid1x3Horizontal_default = DotGrid1x3Horizontal;
39
+ export {
40
+ DotGrid1x3Horizontal_default as default
41
+ };
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/icons/Home.tsx
21
+ var Home_exports = {};
22
+ __export(Home_exports, {
23
+ Home: () => Home,
24
+ default: () => Home_default
25
+ });
26
+ module.exports = __toCommonJS(Home_exports);
27
+ var import_jsx_runtime = require("@emotion/react/jsx-runtime");
28
+ function Home() {
29
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
30
+ "svg",
31
+ {
32
+ width: "100%",
33
+ viewBox: "0 0 24 24",
34
+ fill: "none",
35
+ xmlns: "http://www.w3.org/2000/svg",
36
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
37
+ "path",
38
+ {
39
+ d: "M3.75 9.2582C3.75 8.97962 3.75 8.84033 3.78504 8.71146C3.81609 8.59729 3.86716 8.48953 3.93586 8.39321C4.0134 8.28448 4.12121 8.19628 4.33682 8.01987L10.9868 2.57896C11.3478 2.28362 11.5283 2.13596 11.7291 2.07944C11.9063 2.02959 12.0937 2.02959 12.2709 2.07944C12.4717 2.13596 12.6522 2.28362 13.0132 2.57896L19.6632 8.01987C19.8788 8.19628 19.9866 8.28448 20.0641 8.39321C20.1328 8.48953 20.1839 8.59729 20.215 8.71146C20.25 8.84033 20.25 8.97962 20.25 9.2582V18.65C20.25 19.21 20.25 19.4901 20.141 19.704C20.0451 19.8921 19.8922 20.0451 19.704 20.141C19.4901 20.25 19.2101 20.25 18.65 20.25H5.35C4.78995 20.25 4.50992 20.25 4.29601 20.141C4.10785 20.0451 3.95487 19.8921 3.85899 19.704C3.75 19.4901 3.75 19.21 3.75 18.65V9.2582Z",
40
+ stroke: "currentColor",
41
+ strokeWidth: "1.5",
42
+ strokeLinejoin: "round"
43
+ }
44
+ )
45
+ }
46
+ );
47
+ }
48
+ var Home_default = Home;
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
51
+ Home
52
+ });
@@ -0,0 +1,5 @@
1
+ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
+
3
+ declare function Home(): _emotion_react_jsx_runtime.JSX.Element;
4
+
5
+ export { Home, Home as default };
@@ -0,0 +1,5 @@
1
+ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
+
3
+ declare function Home(): _emotion_react_jsx_runtime.JSX.Element;
4
+
5
+ export { Home, Home as default };