@lightsparkdev/ui 0.0.5 → 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 +12 -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
@@ -2,8 +2,7 @@ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import * as _emotion_styled from '@emotion/styled';
3
3
  import * as react from 'react';
4
4
  import * as _emotion_react from '@emotion/react';
5
- import { Theme } from '@emotion/react';
6
- import { ThemeProp } from './colors.js';
5
+ import { ThemeProp, WithTheme } from './colors.js';
7
6
  import '@emotion/css';
8
7
  import './fonts/typographyTokens.js';
9
8
 
@@ -21,44 +20,41 @@ declare const textInputPaddingPx = 12;
21
20
  declare const textInputPadding = "12px";
22
21
  declare const textInputBorderColor: ({ theme }: ThemeProp) => string;
23
22
  declare const textInputBorderColorFocused: ({ theme }: ThemeProp) => string;
24
- declare const textInputStyle: ({ theme, disabled, hasError, paddingLeftPx, paddingRightPx, }: {
25
- theme: Theme;
23
+ declare const textInputStyle: ({ theme, disabled, hasError, paddingLeftPx, paddingRightPx, }: WithTheme<{
26
24
  disabled: boolean;
27
25
  hasError: boolean;
28
26
  paddingLeftPx?: number | undefined;
29
27
  paddingRightPx?: number | undefined;
30
- }) => _emotion_react.SerializedStyles;
28
+ }>) => _emotion_react.SerializedStyles;
31
29
  declare const FieldError: _emotion_styled.StyledComponent<{
32
- theme?: Theme;
30
+ theme?: _emotion_react.Theme;
33
31
  as?: react.ElementType<any>;
34
32
  }, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
35
- declare const aboveFieldError: ({ theme, hasError, }: {
36
- theme: Theme;
33
+ declare const aboveFieldError: ({ theme, hasError, }: WithTheme<{
37
34
  hasError: boolean;
38
- }) => _emotion_react.SerializedStyles;
35
+ }>) => _emotion_react.SerializedStyles;
39
36
  declare function InputSubtext({ text, hasError, }: {
40
37
  text?: string | undefined;
41
38
  hasError?: boolean;
42
39
  }): _emotion_react_jsx_runtime.JSX.Element;
43
40
  declare const StyledInputSubtext: _emotion_styled.StyledComponent<{
44
- theme?: Theme;
41
+ theme?: _emotion_react.Theme;
45
42
  as?: react.ElementType<any>;
46
43
  } & {
47
44
  hasError: boolean;
48
45
  visible: boolean;
49
46
  }, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
50
- declare const labelStyle: ({ theme, hasError, }: {
51
- theme: Theme;
47
+ declare const labelStyle: ({ theme, hasError, }: WithTheme<{
52
48
  hasError?: boolean;
53
- }) => _emotion_react.SerializedStyles;
49
+ }>) => _emotion_react.SerializedStyles;
54
50
  declare const Label: _emotion_styled.StyledComponent<{
55
- theme?: Theme;
51
+ theme?: _emotion_react.Theme;
56
52
  as?: react.ElementType<any>;
57
53
  } & {
58
54
  hasError?: boolean;
59
55
  }, react.DetailedHTMLProps<react.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
60
56
  declare const LabelDiv: _emotion_styled.StyledComponent<{
61
- theme?: Theme;
57
+ theme?: _emotion_react.Theme;
62
58
  as?: react.ElementType<any>;
63
59
  } & {
64
60
  hasError?: boolean;
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  subtext
3
- } from "../chunk-XUGLVWSH.js";
4
- import {
5
- z
6
- } from "../chunk-CLU2FRJZ.js";
3
+ } from "../chunk-RFGKH3R6.js";
7
4
  import {
8
5
  themeOr
9
6
  } from "../chunk-2VBDEO6M.js";
10
7
  import "../chunk-E4EXM4SY.js";
11
8
  import "../chunk-JSGRNWSB.js";
9
+ import {
10
+ z
11
+ } from "../chunk-CLU2FRJZ.js";
12
12
  import "../chunk-CIGAQ47A.js";
13
13
 
14
14
  // src/styles/fields.tsx
@@ -45,7 +45,7 @@ var textInputStyle = ({
45
45
  return css`
46
46
  border-radius: ${textInputBorderRadiusPx}px;
47
47
  background-color: ${disabled ? theme.vlcNeutral : theme.bg};
48
- pointer-events: ${disabled ? "none" : "auto"};
48
+ cursor: ${disabled ? "not-allowed" : "auto"};
49
49
  box-sizing: border-box;
50
50
  font-weight: ${textInputFontWeight};
51
51
 
@@ -1309,6 +1309,12 @@ var rootFontSizeRems = rootFontSizePx / 16;
1309
1309
  var standardContentInsetPx = 32;
1310
1310
  var standardContentInsetMdPx = 24;
1311
1311
  var standardContentInsetSmPx = 16;
1312
+ var standardBorderRadius = (radius) => {
1313
+ const borderRadiusPx = Array.isArray(radius) ? radius.map((r) => `${r}px`).join(" ") : `${radius}px`;
1314
+ return `
1315
+ border-radius: ${borderRadiusPx};
1316
+ `;
1317
+ };
1312
1318
  var smContentInset = import_react4.css`
1313
1319
  ${bp.sm(`
1314
1320
  margin-left: auto;
@@ -1383,6 +1389,11 @@ var StyledContentTable = import_styled2.default.table`
1383
1389
  }
1384
1390
  `;
1385
1391
 
1392
+ // src/utils/emotion.tsx
1393
+ function select(component) {
1394
+ return component.toString();
1395
+ }
1396
+
1386
1397
  // src/styles/utils.tsx
1387
1398
  var import_react5 = require("@emotion/react");
1388
1399
  function pxToRems(rems, asNum = false) {
@@ -1474,7 +1485,7 @@ var StyledDisplay = import_styled5.default.span`
1474
1485
  }}
1475
1486
  `;
1476
1487
  function displaySelector(element) {
1477
- return `${element}${StyledDisplay.toString()}`;
1488
+ return `${element}${select(StyledDisplay)}`;
1478
1489
  }
1479
1490
 
1480
1491
  // src/styles/fonts/typography/Headline.tsx
@@ -1496,7 +1507,7 @@ var StyledHeadline = import_styled6.default.span`
1496
1507
  }
1497
1508
  `;
1498
1509
  function headlineSelector(heading) {
1499
- return `${heading}${StyledHeadline.toString()}`;
1510
+ return `${heading}${select(StyledHeadline)}`;
1500
1511
  }
1501
1512
  var ALL_HEADLINE_SELECTORS = HEADINGS.map(headlineSelector).join(",");
1502
1513
 
@@ -1552,12 +1563,12 @@ var Article = import_styled8.default.article`
1552
1563
  margin: 0;
1553
1564
  }
1554
1565
 
1555
- ${StyledBody} {
1566
+ ${select(StyledBody)} {
1556
1567
  margin-top: ${"8px" /* xs */};
1557
1568
  margin-bottom: ${"8px" /* xs */};
1558
1569
  }
1559
1570
 
1560
- ${StyledContentTable} {
1571
+ ${select(StyledContentTable)} {
1561
1572
  margin: ${"40px" /* 2xl */} 0;
1562
1573
  }
1563
1574
 
@@ -1570,7 +1581,8 @@ var Article = import_styled8.default.article`
1570
1581
  font-weight: 700;
1571
1582
  }
1572
1583
 
1573
- *:not(${ALL_HEADLINE_SELECTORS},${StyledTitle},${StyledCode}) > a {
1584
+ *:not(${ALL_HEADLINE_SELECTORS},${select(StyledTitle)},${select(StyledCode)})
1585
+ > a {
1574
1586
  ${({ theme }) => getTypographyString(
1575
1587
  theme.typography[theme.app]["Label Strong"]["Large" /* Large */]
1576
1588
  )}
@@ -1604,7 +1616,7 @@ var Article = import_styled8.default.article`
1604
1616
  }
1605
1617
 
1606
1618
  pre[class|="language"] {
1607
- border-radius: 8px;
1619
+ ${standardBorderRadius(8)}
1608
1620
  width: 100%;
1609
1621
  padding: ${"16px" /* md */} ${"24px" /* lg */};
1610
1622
  margin: ${"16px" /* md */} 0;
@@ -1,22 +1,23 @@
1
1
  "use client";
2
2
  import {
3
3
  Article
4
- } from "../../../chunk-4ZZHBSW4.js";
4
+ } from "../../../chunk-VBWTKANQ.js";
5
5
  import "../../../chunk-FHNYQLMF.js";
6
6
  import "../../../chunk-LD5LZXUP.js";
7
7
  import "../../../chunk-BCFRW7CV.js";
8
- import "../../../chunk-SW6ZA7W2.js";
9
- import "../../../chunk-4K2KAYVH.js";
8
+ import "../../../chunk-QGGOMPHZ.js";
9
+ import "../../../chunk-4TFRLWCC.js";
10
+ import "../../../chunk-YMNSXZ5D.js";
10
11
  import "../../../chunk-3XSQV5U4.js";
11
- import "../../../chunk-SV5QPU7N.js";
12
- import "../../../chunk-EZ4RHFY7.js";
13
- import "../../../chunk-MYG24ZWT.js";
12
+ import "../../../chunk-UO6U7AYM.js";
13
+ import "../../../chunk-K7D7A34K.js";
14
+ import "../../../chunk-NZJCJJH5.js";
14
15
  import "../../../chunk-LAMQKQU3.js";
15
- import "../../../chunk-XUGLVWSH.js";
16
- import "../../../chunk-CLU2FRJZ.js";
16
+ import "../../../chunk-RFGKH3R6.js";
17
17
  import "../../../chunk-2VBDEO6M.js";
18
18
  import "../../../chunk-E4EXM4SY.js";
19
19
  import "../../../chunk-JSGRNWSB.js";
20
+ import "../../../chunk-CLU2FRJZ.js";
20
21
  import "../../../chunk-CIGAQ47A.js";
21
22
  export {
22
23
  Article
@@ -55,6 +55,11 @@ __export(Display_exports, {
55
55
  module.exports = __toCommonJS(Display_exports);
56
56
  var import_styled = __toESM(require("@emotion/styled"), 1);
57
57
 
58
+ // src/utils/emotion.tsx
59
+ function select(component) {
60
+ return component.toString();
61
+ }
62
+
58
63
  // src/styles/colors.tsx
59
64
  var import_react = require("@emotion/react");
60
65
 
@@ -1192,7 +1197,7 @@ var StyledDisplay = import_styled.default.span`
1192
1197
  }}
1193
1198
  `;
1194
1199
  function displaySelector(element) {
1195
- return `${element}${StyledDisplay.toString()}`;
1200
+ return `${element}${select(StyledDisplay)}`;
1196
1201
  }
1197
1202
  // Annotate the CommonJS export names for ESM import in node:
1198
1203
  0 && (module.exports = {
@@ -3,7 +3,8 @@ import {
3
3
  Display,
4
4
  ELEMENTS,
5
5
  displaySelector
6
- } from "../../../chunk-SW6ZA7W2.js";
6
+ } from "../../../chunk-QGGOMPHZ.js";
7
+ import "../../../chunk-YMNSXZ5D.js";
7
8
  import "../../../chunk-2VBDEO6M.js";
8
9
  import "../../../chunk-E4EXM4SY.js";
9
10
  import "../../../chunk-JSGRNWSB.js";
@@ -58,6 +58,11 @@ module.exports = __toCommonJS(Headline_exports);
58
58
  var import_styled = __toESM(require("@emotion/styled"), 1);
59
59
  var import_react2 = __toESM(require("react"), 1);
60
60
 
61
+ // src/utils/emotion.tsx
62
+ function select(component) {
63
+ return component.toString();
64
+ }
65
+
61
66
  // src/styles/colors.tsx
62
67
  var import_react = require("@emotion/react");
63
68
 
@@ -1243,7 +1248,7 @@ var StyledHeadline = import_styled.default.span`
1243
1248
  }
1244
1249
  `;
1245
1250
  function headlineSelector(heading) {
1246
- return `${heading}${StyledHeadline.toString()}`;
1251
+ return `${heading}${select(StyledHeadline)}`;
1247
1252
  }
1248
1253
  var ALL_HEADLINE_SELECTORS = HEADINGS.map(headlineSelector).join(",");
1249
1254
  // Annotate the CommonJS export names for ESM import in node:
@@ -5,7 +5,8 @@ import {
5
5
  Headline,
6
6
  getHeadlineText,
7
7
  headlineSelector
8
- } from "../../../chunk-4K2KAYVH.js";
8
+ } from "../../../chunk-4TFRLWCC.js";
9
+ import "../../../chunk-YMNSXZ5D.js";
9
10
  import "../../../chunk-2VBDEO6M.js";
10
11
  import "../../../chunk-E4EXM4SY.js";
11
12
  import "../../../chunk-JSGRNWSB.js";
@@ -1320,6 +1320,12 @@ var rootFontSizeRems = rootFontSizePx / 16;
1320
1320
  var standardContentInsetPx = 32;
1321
1321
  var standardContentInsetMdPx = 24;
1322
1322
  var standardContentInsetSmPx = 16;
1323
+ var standardBorderRadius = (radius) => {
1324
+ const borderRadiusPx = Array.isArray(radius) ? radius.map((r) => `${r}px`).join(" ") : `${radius}px`;
1325
+ return `
1326
+ border-radius: ${borderRadiusPx};
1327
+ `;
1328
+ };
1323
1329
  var smContentInset = import_react4.css`
1324
1330
  ${bp.sm(`
1325
1331
  margin-left: auto;
@@ -1394,6 +1400,11 @@ var StyledContentTable = import_styled2.default.table`
1394
1400
  }
1395
1401
  `;
1396
1402
 
1403
+ // src/utils/emotion.tsx
1404
+ function select(component) {
1405
+ return component.toString();
1406
+ }
1407
+
1397
1408
  // src/styles/utils.tsx
1398
1409
  var import_react5 = require("@emotion/react");
1399
1410
  function pxToRems(rems, asNum = false) {
@@ -1499,7 +1510,7 @@ var StyledDisplay = import_styled5.default.span`
1499
1510
  }}
1500
1511
  `;
1501
1512
  function displaySelector(element) {
1502
- return `${element}${StyledDisplay.toString()}`;
1513
+ return `${element}${select(StyledDisplay)}`;
1503
1514
  }
1504
1515
 
1505
1516
  // src/styles/fonts/typography/Headline.tsx
@@ -1556,7 +1567,7 @@ var StyledHeadline = import_styled6.default.span`
1556
1567
  }
1557
1568
  `;
1558
1569
  function headlineSelector(heading) {
1559
- return `${heading}${StyledHeadline.toString()}`;
1570
+ return `${heading}${select(StyledHeadline)}`;
1560
1571
  }
1561
1572
  var ALL_HEADLINE_SELECTORS = HEADINGS.map(headlineSelector).join(",");
1562
1573
 
@@ -1620,12 +1631,12 @@ var Article = import_styled8.default.article`
1620
1631
  margin: 0;
1621
1632
  }
1622
1633
 
1623
- ${StyledBody} {
1634
+ ${select(StyledBody)} {
1624
1635
  margin-top: ${"8px" /* xs */};
1625
1636
  margin-bottom: ${"8px" /* xs */};
1626
1637
  }
1627
1638
 
1628
- ${StyledContentTable} {
1639
+ ${select(StyledContentTable)} {
1629
1640
  margin: ${"40px" /* 2xl */} 0;
1630
1641
  }
1631
1642
 
@@ -1638,7 +1649,8 @@ var Article = import_styled8.default.article`
1638
1649
  font-weight: 700;
1639
1650
  }
1640
1651
 
1641
- *:not(${ALL_HEADLINE_SELECTORS},${StyledTitle},${StyledCode}) > a {
1652
+ *:not(${ALL_HEADLINE_SELECTORS},${select(StyledTitle)},${select(StyledCode)})
1653
+ > a {
1642
1654
  ${({ theme }) => getTypographyString(
1643
1655
  theme.typography[theme.app]["Label Strong"]["Large" /* Large */]
1644
1656
  )}
@@ -1672,7 +1684,7 @@ var Article = import_styled8.default.article`
1672
1684
  }
1673
1685
 
1674
1686
  pre[class|="language"] {
1675
- border-radius: 8px;
1687
+ ${standardBorderRadius(8)}
1676
1688
  width: 100%;
1677
1689
  padding: ${"16px" /* md */} ${"24px" /* lg */};
1678
1690
  margin: ${"16px" /* md */} 0;
@@ -1,3 +1,9 @@
1
+ import {
2
+ Label
3
+ } from "../../../chunk-OO5UJRAW.js";
4
+ import {
5
+ LabelModerate
6
+ } from "../../../chunk-4I2ABBID.js";
1
7
  import {
2
8
  LabelStrong
3
9
  } from "../../../chunk-MYKMYG6H.js";
@@ -6,7 +12,7 @@ import {
6
12
  } from "../../../chunk-RBYRXBPI.js";
7
13
  import {
8
14
  Article
9
- } from "../../../chunk-4ZZHBSW4.js";
15
+ } from "../../../chunk-VBWTKANQ.js";
10
16
  import {
11
17
  Title
12
18
  } from "../../../chunk-FHNYQLMF.js";
@@ -21,26 +27,21 @@ import {
21
27
  } from "../../../chunk-BCFRW7CV.js";
22
28
  import {
23
29
  Display
24
- } from "../../../chunk-SW6ZA7W2.js";
25
- import {
26
- Label
27
- } from "../../../chunk-OO5UJRAW.js";
28
- import {
29
- LabelModerate
30
- } from "../../../chunk-4I2ABBID.js";
30
+ } from "../../../chunk-QGGOMPHZ.js";
31
31
  import {
32
32
  Headline
33
- } from "../../../chunk-4K2KAYVH.js";
33
+ } from "../../../chunk-4TFRLWCC.js";
34
+ import "../../../chunk-YMNSXZ5D.js";
34
35
  import "../../../chunk-3XSQV5U4.js";
35
- import "../../../chunk-SV5QPU7N.js";
36
- import "../../../chunk-EZ4RHFY7.js";
37
- import "../../../chunk-MYG24ZWT.js";
36
+ import "../../../chunk-UO6U7AYM.js";
37
+ import "../../../chunk-K7D7A34K.js";
38
+ import "../../../chunk-NZJCJJH5.js";
38
39
  import "../../../chunk-LAMQKQU3.js";
39
- import "../../../chunk-XUGLVWSH.js";
40
- import "../../../chunk-CLU2FRJZ.js";
40
+ import "../../../chunk-RFGKH3R6.js";
41
41
  import "../../../chunk-2VBDEO6M.js";
42
42
  import "../../../chunk-E4EXM4SY.js";
43
43
  import "../../../chunk-JSGRNWSB.js";
44
+ import "../../../chunk-CLU2FRJZ.js";
44
45
  import "../../../chunk-CIGAQ47A.js";
45
46
  export {
46
47
  Article,
@@ -1388,6 +1388,7 @@ var globalComponentStyles = ({ theme }) => import_react5.css`
1388
1388
  /* required for iOS https://bit.ly/3Q8syG8 */
1389
1389
  -webkit-text-size-adjust: none;
1390
1390
  text-size-adjust: none;
1391
+ scroll-behavior: smooth;
1391
1392
  }
1392
1393
 
1393
1394
  body {
@@ -1468,7 +1469,7 @@ function GlobalStyles() {
1468
1469
 
1469
1470
  :root {
1470
1471
  ${cssVars.docHeight}: 100vh;
1471
- --rt-opacity: 1;
1472
+ --rt-opacity: 1 !important;
1472
1473
  }
1473
1474
 
1474
1475
  html {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  GlobalStyles,
3
3
  globalComponentStyles
4
- } from "../chunk-YHSFWCFN.js";
4
+ } from "../chunk-T33SBHYI.js";
5
5
  import "../chunk-IJVWYT5G.js";
6
- import "../chunk-XUGLVWSH.js";
7
- import "../chunk-CLU2FRJZ.js";
6
+ import "../chunk-RFGKH3R6.js";
8
7
  import "../chunk-2VBDEO6M.js";
9
8
  import "../chunk-E4EXM4SY.js";
10
9
  import "../chunk-JSGRNWSB.js";
10
+ import "../chunk-CLU2FRJZ.js";
11
11
  import "../chunk-CIGAQ47A.js";
12
12
  export {
13
13
  GlobalStyles,
@@ -1519,7 +1519,7 @@ function Heading({
1519
1519
  }) {
1520
1520
  const StyledHeading = headings[type];
1521
1521
  const theme = (0, import_react6.useTheme)();
1522
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1522
+ const heading = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1523
1523
  StyledHeading,
1524
1524
  {
1525
1525
  id,
@@ -1529,9 +1529,10 @@ function Heading({
1529
1529
  mbSm: m0 ? 0 : mbSm,
1530
1530
  light,
1531
1531
  theme,
1532
- children
1532
+ children: id ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("a", { href: `#${id}`, css: { color: "inherit" }, children }) : children
1533
1533
  }
1534
1534
  );
1535
+ return heading;
1535
1536
  }
1536
1537
  function headingWithDefaults(defaultProps) {
1537
1538
  return (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Heading, __spreadValues(__spreadValues({}, defaultProps), props));
@@ -1,5 +1,9 @@
1
1
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import _emotion_styled__default from '@emotion/styled';
3
+ import './colors.cjs';
4
+ import '@emotion/react';
5
+ import '@emotion/css';
6
+ import './fonts/typographyTokens.cjs';
3
7
 
4
8
  declare const HeadingTypes: readonly ["h1", "h2", "h3", "h4"];
5
9
  type HeadingType = (typeof HeadingTypes)[number];
@@ -1,5 +1,9 @@
1
1
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import _emotion_styled__default from '@emotion/styled';
3
+ import './colors.js';
4
+ import '@emotion/react';
5
+ import '@emotion/css';
6
+ import './fonts/typographyTokens.js';
3
7
 
4
8
  declare const HeadingTypes: readonly ["h1", "h2", "h3", "h4"];
5
9
  type HeadingType = (typeof HeadingTypes)[number];
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  firstChild,
4
4
  pxToRems
5
- } from "../chunk-SV5QPU7N.js";
6
- import "../chunk-XUGLVWSH.js";
7
- import "../chunk-CLU2FRJZ.js";
5
+ } from "../chunk-UO6U7AYM.js";
6
+ import "../chunk-RFGKH3R6.js";
8
7
  import "../chunk-2VBDEO6M.js";
9
8
  import "../chunk-E4EXM4SY.js";
10
9
  import {
11
10
  bp
12
11
  } from "../chunk-JSGRNWSB.js";
12
+ import "../chunk-CLU2FRJZ.js";
13
13
  import {
14
14
  __spreadValues
15
15
  } from "../chunk-CIGAQ47A.js";
@@ -129,7 +129,7 @@ function Heading({
129
129
  }) {
130
130
  const StyledHeading = headings[type];
131
131
  const theme = useTheme();
132
- return /* @__PURE__ */ jsx(
132
+ const heading = /* @__PURE__ */ jsx(
133
133
  StyledHeading,
134
134
  {
135
135
  id,
@@ -139,9 +139,10 @@ function Heading({
139
139
  mbSm: m0 ? 0 : mbSm,
140
140
  light,
141
141
  theme,
142
- children
142
+ children: id ? /* @__PURE__ */ jsx("a", { href: `#${id}`, css: { color: "inherit" }, children }) : children
143
143
  }
144
144
  );
145
+ return heading;
145
146
  }
146
147
  function headingWithDefaults(defaultProps) {
147
148
  return (props) => /* @__PURE__ */ jsx(Heading, __spreadValues(__spreadValues({}, defaultProps), props));
@@ -13,12 +13,12 @@ import {
13
13
  remsToPx,
14
14
  size,
15
15
  textCenter
16
- } from "../chunk-SV5QPU7N.js";
17
- import "../chunk-XUGLVWSH.js";
18
- import "../chunk-CLU2FRJZ.js";
16
+ } from "../chunk-UO6U7AYM.js";
17
+ import "../chunk-RFGKH3R6.js";
19
18
  import "../chunk-2VBDEO6M.js";
20
19
  import "../chunk-E4EXM4SY.js";
21
20
  import "../chunk-JSGRNWSB.js";
21
+ import "../chunk-CLU2FRJZ.js";
22
22
  import "../chunk-CIGAQ47A.js";
23
23
  export {
24
24
  absoluteCenter,
@@ -0,0 +1,32 @@
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/utils/emotion.tsx
21
+ var emotion_exports = {};
22
+ __export(emotion_exports, {
23
+ select: () => select
24
+ });
25
+ module.exports = __toCommonJS(emotion_exports);
26
+ function select(component) {
27
+ return component.toString();
28
+ }
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ select
32
+ });
@@ -0,0 +1,5 @@
1
+ declare function select(component: {
2
+ toString: () => string;
3
+ }): string;
4
+
5
+ export { select };
@@ -0,0 +1,5 @@
1
+ declare function select(component: {
2
+ toString: () => string;
3
+ }): string;
4
+
5
+ export { select };
@@ -0,0 +1,7 @@
1
+ import {
2
+ select
3
+ } from "../chunk-YMNSXZ5D.js";
4
+ import "../chunk-CIGAQ47A.js";
5
+ export {
6
+ select
7
+ };