@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,9 @@
1
+ import react__default, { ComponentProps } from 'react';
2
+ import { Tooltip } from 'react-tooltip';
3
+
4
+ type TooltipProps = Omit<ComponentProps<typeof Tooltip>, "id"> & {
5
+ id?: string | undefined;
6
+ };
7
+ declare function LightTooltip(props: TooltipProps): react__default.ReactPortal | null;
8
+
9
+ export { LightTooltip };
@@ -0,0 +1,9 @@
1
+ import react__default, { ComponentProps } from 'react';
2
+ import { Tooltip } from 'react-tooltip';
3
+
4
+ type TooltipProps = Omit<ComponentProps<typeof Tooltip>, "id"> & {
5
+ id?: string | undefined;
6
+ };
7
+ declare function LightTooltip(props: TooltipProps): react__default.ReactPortal | null;
8
+
9
+ export { LightTooltip };
@@ -0,0 +1,12 @@
1
+ import {
2
+ LightTooltip
3
+ } from "../chunk-NRXJA2PM.js";
4
+ import "../chunk-55OQPFLF.js";
5
+ import "../chunk-HNVQIY5U.js";
6
+ import "../chunk-2VBDEO6M.js";
7
+ import "../chunk-E4EXM4SY.js";
8
+ import "../chunk-JSGRNWSB.js";
9
+ import "../chunk-CIGAQ47A.js";
10
+ export {
11
+ LightTooltip
12
+ };
@@ -53,13 +53,13 @@ var z = {
53
53
  navAction: 101,
54
54
  smNavAction: 100,
55
55
  // keep under navDropdown
56
- tooltip: 160,
57
56
  notificationBanner: 170,
58
57
  qrReaderVideo: 180,
59
58
  qrReaderOverlay: 181,
60
59
  modalOverlay: 190,
61
60
  modalContainer: 191,
62
61
  dropdown: 192,
62
+ tooltip: 193,
63
63
  toast: 200
64
64
  };
65
65
 
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  LightboxImage
4
- } from "../chunk-SVQELXFK.js";
5
- import "../chunk-CLU2FRJZ.js";
4
+ } from "../chunk-Z5TPS2BO.js";
5
+ import "../chunk-55OQPFLF.js";
6
6
  import "../chunk-CIGAQ47A.js";
7
7
  export {
8
8
  LightboxImage
@@ -1295,41 +1295,12 @@ function useThemeBg() {
1295
1295
  // src/styles/global.tsx
1296
1296
  var import_react5 = require("@emotion/react");
1297
1297
  var import_react6 = require("react");
1298
- var import_react_tooltip2 = require("react-tooltip/dist/react-tooltip.css");
1298
+ var import_react_tooltip = require("react-tooltip/dist/react-tooltip.css");
1299
1299
  var import_fonts = require("../static/fonts.css");
1300
1300
 
1301
1301
  // src/styles/common.tsx
1302
1302
  var import_react4 = require("@emotion/react");
1303
1303
  var import_styled = __toESM(require("@emotion/styled"), 1);
1304
- var import_react_tooltip = require("react-tooltip");
1305
-
1306
- // src/styles/z-index.tsx
1307
- var z = {
1308
- card: 1,
1309
- fieldError: 1,
1310
- textInput: 2,
1311
- select: 3,
1312
- selectFocused: 4,
1313
- walletActionPreviewTopGradient: 1,
1314
- headerContainer: 99,
1315
- smBanner: 99,
1316
- headerTop: 100,
1317
- navMenu: 100,
1318
- smNavMenu: 100,
1319
- navAction: 101,
1320
- smNavAction: 100,
1321
- // keep under navDropdown
1322
- tooltip: 160,
1323
- notificationBanner: 170,
1324
- qrReaderVideo: 180,
1325
- qrReaderOverlay: 181,
1326
- modalOverlay: 190,
1327
- modalContainer: 191,
1328
- dropdown: 192,
1329
- toast: 200
1330
- };
1331
-
1332
- // src/styles/common.tsx
1333
1304
  var rootFontSizePx = 12;
1334
1305
  var rootFontSizeRems = rootFontSizePx / 16;
1335
1306
  var standardLineHeightEms = 1.21;
@@ -1376,9 +1347,6 @@ var Subtext = import_styled.default.div`
1376
1347
  var darkGradientBg = import_react4.css`
1377
1348
  background: ${darkGradient};
1378
1349
  `;
1379
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1380
- z-index: ${z.modalOverlay};
1381
- `;
1382
1350
 
1383
1351
  // src/styles/constants.ts
1384
1352
  var cssVars = {
@@ -1479,6 +1447,8 @@ function GlobalStyles() {
1479
1447
  :root {
1480
1448
  ${cssVars.docHeight}: 100vh;
1481
1449
  --rt-opacity: 1 !important;
1450
+ --rt-transition-show-delay: 0.15s !important;
1451
+ --rt-transition-closing-delay: 0.2s !important;
1482
1452
  }
1483
1453
 
1484
1454
  html {
@@ -1,13 +1,12 @@
1
1
  import {
2
2
  LightsparkProvider
3
- } from "../chunk-2WYVO6B2.js";
4
- import "../chunk-T33SBHYI.js";
3
+ } from "../chunk-ZYHA6MJC.js";
4
+ import "../chunk-ZSUX6RLD.js";
5
5
  import "../chunk-IJVWYT5G.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
  LightsparkProvider
@@ -80,7 +80,6 @@ var import_react5 = require("react");
80
80
  // src/styles/common.tsx
81
81
  var import_react4 = require("@emotion/react");
82
82
  var import_styled = __toESM(require("@emotion/styled"), 1);
83
- var import_react_tooltip = require("react-tooltip");
84
83
 
85
84
  // src/styles/breakpoints.tsx
86
85
  var import_react = require("@emotion/react");
@@ -1286,32 +1285,6 @@ function hexToRGB(hex) {
1286
1285
  ] : [0, 0, 0];
1287
1286
  }
1288
1287
 
1289
- // src/styles/z-index.tsx
1290
- var z = {
1291
- card: 1,
1292
- fieldError: 1,
1293
- textInput: 2,
1294
- select: 3,
1295
- selectFocused: 4,
1296
- walletActionPreviewTopGradient: 1,
1297
- headerContainer: 99,
1298
- smBanner: 99,
1299
- headerTop: 100,
1300
- navMenu: 100,
1301
- smNavMenu: 100,
1302
- navAction: 101,
1303
- smNavAction: 100,
1304
- // keep under navDropdown
1305
- tooltip: 160,
1306
- notificationBanner: 170,
1307
- qrReaderVideo: 180,
1308
- qrReaderOverlay: 181,
1309
- modalOverlay: 190,
1310
- modalContainer: 191,
1311
- dropdown: 192,
1312
- toast: 200
1313
- };
1314
-
1315
1288
  // src/styles/common.tsx
1316
1289
  var rootFontSizePx = 12;
1317
1290
  var rootFontSizeRems = rootFontSizePx / 16;
@@ -1358,9 +1331,6 @@ var Subtext = import_styled.default.div`
1358
1331
  var darkGradientBg = import_react4.css`
1359
1332
  background: ${darkGradient};
1360
1333
  `;
1361
- var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1362
- z-index: ${z.modalOverlay};
1363
- `;
1364
1334
 
1365
1335
  // src/utils/strings.tsx
1366
1336
  function isString(str) {
@@ -1,14 +1,13 @@
1
1
  import {
2
2
  Loading,
3
3
  LoadingWrapper
4
- } from "../chunk-NGS4OSWT.js";
5
- import "../chunk-NZJCJJH5.js";
4
+ } from "../chunk-BAO4T4G5.js";
5
+ import "../chunk-VHW2KROZ.js";
6
6
  import "../chunk-LAMQKQU3.js";
7
- import "../chunk-RFGKH3R6.js";
7
+ import "../chunk-HNVQIY5U.js";
8
8
  import "../chunk-2VBDEO6M.js";
9
9
  import "../chunk-E4EXM4SY.js";
10
10
  import "../chunk-JSGRNWSB.js";
11
- import "../chunk-CLU2FRJZ.js";
12
11
  import "../chunk-CIGAQ47A.js";
13
12
  export {
14
13
  Loading,