@lightsparkdev/ui 0.0.11 → 0.0.13

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 (74) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/chunk-34CIJVQQ.js +24 -0
  3. package/dist/{chunk-IPAXAP6K.js → chunk-5DK6QL77.js} +7 -1
  4. package/dist/{chunk-VE7J2N47.js → chunk-5GBDVTL6.js} +1 -1
  5. package/dist/{chunk-ZANLDY2W.js → chunk-75VDSSXM.js} +3 -1
  6. package/dist/{chunk-NFSAJ5GJ.js → chunk-DFYHIUYN.js} +1 -1
  7. package/dist/{chunk-DQRN4E5G.js → chunk-EXGJIYUI.js} +1 -1
  8. package/dist/{chunk-NM7UW54G.js → chunk-KMTXQD46.js} +2 -2
  9. package/dist/{chunk-OGSDZTHM.js → chunk-QCXXJZDC.js} +2 -0
  10. package/dist/{chunk-XZR237JJ.js → chunk-QNM3M4MU.js} +2 -1
  11. package/dist/{chunk-PBRN7MJY.js → chunk-QWAHK2QG.js} +1 -1
  12. package/dist/chunk-UV6JCAHE.js +198 -0
  13. package/dist/components/Badge.cjs +1 -1
  14. package/dist/components/Badge.d.cts +4 -3
  15. package/dist/components/Badge.d.ts +4 -3
  16. package/dist/components/Badge.js +1 -1
  17. package/dist/components/Button.cjs +4 -0
  18. package/dist/components/Button.d.cts +23 -26
  19. package/dist/components/Button.d.ts +23 -26
  20. package/dist/components/Button.js +2 -2
  21. package/dist/components/ButtonRow.cjs +4 -0
  22. package/dist/components/ButtonRow.js +3 -3
  23. package/dist/components/CardPage.js +4 -4
  24. package/dist/components/CodeBlock.cjs +1871 -0
  25. package/dist/components/CodeBlock.d.cts +43 -0
  26. package/dist/components/CodeBlock.d.ts +43 -0
  27. package/dist/components/CodeBlock.js +24 -0
  28. package/dist/components/CurrencyAmount.cjs +2 -1
  29. package/dist/components/CurrencyAmount.d.cts +3 -3
  30. package/dist/components/CurrencyAmount.d.ts +3 -3
  31. package/dist/components/CurrencyAmount.js +1 -1
  32. package/dist/components/GradientCardHeader.cjs +1382 -14
  33. package/dist/components/GradientCardHeader.d.cts +2 -1
  34. package/dist/components/GradientCardHeader.d.ts +2 -1
  35. package/dist/components/GradientCardHeader.js +7 -1
  36. package/dist/components/Modal.cjs +4 -0
  37. package/dist/components/Modal.js +4 -4
  38. package/dist/components/SecretContainer.d.cts +1 -1
  39. package/dist/components/SecretContainer.d.ts +1 -1
  40. package/dist/components/StatusIndicator.cjs +1405 -0
  41. package/dist/components/StatusIndicator.d.cts +12 -0
  42. package/dist/components/StatusIndicator.d.ts +12 -0
  43. package/dist/components/StatusIndicator.js +12 -0
  44. package/dist/components/index.cjs +430 -222
  45. package/dist/components/index.d.cts +3 -2
  46. package/dist/components/index.d.ts +3 -2
  47. package/dist/components/index.js +32 -20
  48. package/dist/icons/FramedLetterI.cjs +55 -0
  49. package/dist/icons/FramedLetterI.d.cts +5 -0
  50. package/dist/icons/FramedLetterI.d.ts +5 -0
  51. package/dist/icons/FramedLetterI.js +36 -0
  52. package/dist/router.cjs +2 -0
  53. package/dist/router.d.cts +2 -1
  54. package/dist/router.d.ts +2 -1
  55. package/dist/router.js +1 -1
  56. package/dist/styles/fonts/typography/Article.js +4 -4
  57. package/dist/styles/fonts/typography/index.js +8 -8
  58. package/dist/styles/fonts/typographyTokens.d.cts +4 -1
  59. package/dist/styles/fonts/typographyTokens.d.ts +4 -1
  60. package/dist/types/index.d.cts +1 -0
  61. package/dist/types/index.d.ts +1 -0
  62. package/dist/{types/utils.cjs → utils/parseURLFragments.cjs} +18 -13
  63. package/dist/utils/parseURLFragments.d.cts +3 -0
  64. package/dist/utils/parseURLFragments.d.ts +3 -0
  65. package/dist/utils/parseURLFragments.js +19 -0
  66. package/dist/utils/strings.d.cts +1 -1
  67. package/dist/utils/strings.d.ts +1 -1
  68. package/dist/utils/toReactNodes.cjs +2 -0
  69. package/dist/utils/toReactNodes.js +2 -2
  70. package/package.json +5 -2
  71. package/dist/types/utils.d.cts +0 -16
  72. package/dist/types/utils.d.ts +0 -16
  73. package/dist/types/utils.js +0 -13
  74. package/dist/{chunk-Y37DCY7Y.js → chunk-A3ZJ2C7J.js} +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @lightsparkdev/ui
2
2
 
3
+ ## 0.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - baeccd9: - Add StatusIndicator
8
+ - 9b3896a: - Remove types/utils. Use equivalent imports from @lightsparkdev/core instead
9
+ - Updated dependencies [baeccd9]
10
+ - @lightsparkdev/core@1.0.22
11
+
12
+ ## 0.0.12
13
+
14
+ ### Patch Changes
15
+
16
+ - 15d0720: - Add CodeBlock
17
+ - 15d0720: - Consolidate type utils from ui to core
18
+ - Updated dependencies [15d0720]
19
+ - Updated dependencies [15d0720]
20
+ - @lightsparkdev/core@1.0.21
21
+
3
22
  ## 0.0.11
4
23
 
5
24
  ### Patch Changes
@@ -0,0 +1,24 @@
1
+ import {
2
+ pxToRems
3
+ } from "./chunk-FCZJILMW.js";
4
+
5
+ // src/components/StatusIndicator.tsx
6
+ import styled from "@emotion/styled";
7
+ import { jsx } from "@emotion/react/jsx-runtime";
8
+ function StatusIndicator({
9
+ color = "success",
10
+ text,
11
+ size = 12,
12
+ fontWeight = 700
13
+ }) {
14
+ return /* @__PURE__ */ jsx(StyledStatusIndicator, { color, size, fontWeight, children: text });
15
+ }
16
+ var StyledStatusIndicator = styled.div`
17
+ color: ${({ theme, color }) => theme[color]};
18
+ font-size: ${({ size }) => pxToRems(size)};
19
+ font-weight: ${({ fontWeight }) => fontWeight};
20
+ `;
21
+
22
+ export {
23
+ StatusIndicator
24
+ };
@@ -1,6 +1,12 @@
1
+ import {
2
+ StatusIndicator
3
+ } from "./chunk-34CIJVQQ.js";
1
4
  import {
2
5
  z
3
6
  } from "./chunk-55OQPFLF.js";
7
+ import {
8
+ __spreadValues
9
+ } from "./chunk-CIGAQ47A.js";
4
10
 
5
11
  // src/components/GradientCardHeader.tsx
6
12
  import styled from "@emotion/styled";
@@ -9,7 +15,7 @@ function GradientCardHeader(props) {
9
15
  return /* @__PURE__ */ jsxs(CardHeaderWrapper, { children: [
10
16
  /* @__PURE__ */ jsx(Gradients, {}),
11
17
  /* @__PURE__ */ jsxs("div", { children: [
12
- props.status,
18
+ props.status && /* @__PURE__ */ jsx(StatusIndicator, __spreadValues({}, props.status)),
13
19
  /* @__PURE__ */ jsx(CardHeaderTitle, { children: props.title })
14
20
  ] }),
15
21
  props.children
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Link
3
- } from "./chunk-OGSDZTHM.js";
3
+ } from "./chunk-QCXXJZDC.js";
4
4
 
5
5
  // src/utils/toReactNodes.tsx
6
6
  import { Fragment } from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Link
3
- } from "./chunk-OGSDZTHM.js";
3
+ } from "./chunk-QCXXJZDC.js";
4
4
  import {
5
5
  select
6
6
  } from "./chunk-YMNSXZ5D.js";
@@ -132,6 +132,7 @@ function Button({
132
132
  ghost = false,
133
133
  text,
134
134
  to,
135
+ id,
135
136
  hash,
136
137
  href,
137
138
  toParams,
@@ -188,6 +189,7 @@ function Button({
188
189
  ] });
189
190
  const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
190
191
  const commonProps = {
192
+ id,
191
193
  backgroundColor,
192
194
  color,
193
195
  hoverColor,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Button
3
- } from "./chunk-ZANLDY2W.js";
3
+ } from "./chunk-75VDSSXM.js";
4
4
  import {
5
5
  overflowAutoWithoutScrollbars
6
6
  } from "./chunk-FCZJILMW.js";
@@ -8,7 +8,7 @@ import {
8
8
  // src/components/Badge.tsx
9
9
  import styled from "@emotion/styled";
10
10
  import { jsx } from "@emotion/react/jsx-runtime";
11
- function Badge({ text, ml = 0 }) {
11
+ function Badge({ text, ml = 0, mr = 0 }) {
12
12
  return text ? /* @__PURE__ */ jsx(StyledBadge, { ml, children: text }) : null;
13
13
  }
14
14
  var badgeVPadding = 2;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toReactNodes
3
- } from "./chunk-VE7J2N47.js";
3
+ } from "./chunk-5GBDVTL6.js";
4
4
  import {
5
5
  useLiveRef
6
6
  } from "./chunk-NBCCPGA4.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-E3AOYBY5.js";
10
10
  import {
11
11
  Button
12
- } from "./chunk-ZANLDY2W.js";
12
+ } from "./chunk-75VDSSXM.js";
13
13
  import {
14
14
  select
15
15
  } from "./chunk-YMNSXZ5D.js";
@@ -40,6 +40,7 @@ function replaceParams(to, params) {
40
40
  }
41
41
  function Link({
42
42
  to,
43
+ id,
43
44
  externalLink,
44
45
  params,
45
46
  children,
@@ -72,6 +73,7 @@ function Link({
72
73
  RLink,
73
74
  {
74
75
  to: toStr,
76
+ id,
75
77
  css,
76
78
  onClick,
77
79
  className,
@@ -72,8 +72,9 @@ var shorttext = (unit, value) => {
72
72
  return `sat${pl ? "s" : ""}`;
73
73
  case CurrencyUnit.MILLISATOSHI:
74
74
  return `msat${pl ? "s" : ""}`;
75
+ default:
76
+ return unit;
75
77
  }
76
- return unit;
77
78
  };
78
79
  var StyledCurrencyAmount = styled.span`
79
80
  color: inherit !important;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-P3EUPXFA.js";
4
4
  import {
5
5
  ButtonRowContainer
6
- } from "./chunk-NFSAJ5GJ.js";
6
+ } from "./chunk-DFYHIUYN.js";
7
7
  import {
8
8
  z
9
9
  } from "./chunk-55OQPFLF.js";
@@ -0,0 +1,198 @@
1
+ import {
2
+ CopyToClipboardButton
3
+ } from "./chunk-7C4MHI6Q.js";
4
+ import {
5
+ overflowAutoWithoutScrollbars
6
+ } from "./chunk-FCZJILMW.js";
7
+ import {
8
+ standardBorderRadius
9
+ } from "./chunk-JK4BP73A.js";
10
+ import {
11
+ colors,
12
+ themeOr
13
+ } from "./chunk-2VBDEO6M.js";
14
+ import {
15
+ __spreadProps,
16
+ __spreadValues
17
+ } from "./chunk-CIGAQ47A.js";
18
+
19
+ // src/components/CodeBlock.tsx
20
+ import styled from "@emotion/styled";
21
+ import Prism from "prismjs";
22
+ import "prismjs/components/prism-dart.min.js";
23
+ import "prismjs/components/prism-go.min.js";
24
+ import "prismjs/components/prism-graphql.min.js";
25
+ import "prismjs/components/prism-java.min.js";
26
+ import "prismjs/components/prism-json.min.js";
27
+ import "prismjs/components/prism-jsx.min.js";
28
+ import "prismjs/components/prism-kotlin.min.js";
29
+ import "prismjs/components/prism-python.min.js";
30
+ import "prismjs/components/prism-rust.min.js";
31
+ import "prismjs/components/prism-swift.min.js";
32
+ import "prismjs/themes/prism-tomorrow.css";
33
+ import { useLayoutEffect } from "react";
34
+ import Select from "react-select";
35
+ import { jsx, jsxs } from "@emotion/react/jsx-runtime";
36
+ var ProgrammingLanguageOptions = {
37
+ Bash: "bash",
38
+ Flutter: "dart",
39
+ Go: "go",
40
+ GraphQL: "graphql",
41
+ Java: "java",
42
+ JavaScript: "js",
43
+ JSON: "json",
44
+ Kotlin: "kotlin",
45
+ Python: "python",
46
+ React: "react",
47
+ ReactNative: "tsx",
48
+ Rust: "rust",
49
+ Swift: "swift",
50
+ Text: "txt"
51
+ };
52
+ var backgroundColor = "#2d2d2d";
53
+ var InlineCode = styled.span`
54
+ font-family: "Roboto Mono", monospace;
55
+ background-color: #2d2d2d;
56
+ border: 1px solid ${themeOr(colors.gray90, colors.gray20)};
57
+ border-radius: 3px;
58
+ line-height: 24px;
59
+ padding: 0 4px;
60
+ `;
61
+ var codeSelectStyles = {
62
+ container: (styles) => __spreadProps(__spreadValues({}, styles), {
63
+ display: "flex"
64
+ }),
65
+ control: (styles) => __spreadProps(__spreadValues({}, styles), {
66
+ backgroundColor,
67
+ border: "none",
68
+ cursor: "pointer",
69
+ "&:hover": {
70
+ border: "#none"
71
+ },
72
+ boxShadow: "none",
73
+ minHeight: 0
74
+ }),
75
+ dropdownIndicator: (styles) => __spreadProps(__spreadValues({}, styles), {
76
+ color: "#ffffff",
77
+ padding: "0 0 0 4px",
78
+ "&:hover": {
79
+ color: "#ffffff"
80
+ }
81
+ }),
82
+ indicatorSeparator: (styles) => ({
83
+ display: "none"
84
+ }),
85
+ input: (styles) => __spreadProps(__spreadValues({}, styles), {
86
+ fontSize: "1rem",
87
+ margin: 0,
88
+ color: "transparent"
89
+ }),
90
+ menu: (styles) => __spreadProps(__spreadValues({}, styles), {
91
+ backgroundColor,
92
+ width: "auto"
93
+ }),
94
+ menuList: (styles) => __spreadProps(__spreadValues({}, styles), {
95
+ borderRadius: "4px",
96
+ padding: 0
97
+ }),
98
+ option: (styles, state) => __spreadProps(__spreadValues({}, styles), {
99
+ cursor: "pointer",
100
+ backgroundColor: state.isSelected ? colors.gray25 : backgroundColor,
101
+ "&:hover": {
102
+ backgroundColor: colors.gray25
103
+ }
104
+ }),
105
+ singleValue: (styles) => __spreadProps(__spreadValues({}, styles), {
106
+ color: "#ffffff",
107
+ margin: 0
108
+ }),
109
+ valueContainer: (styles) => __spreadProps(__spreadValues({}, styles), {
110
+ padding: 0
111
+ })
112
+ };
113
+ var CodeBlock = ({
114
+ title,
115
+ children,
116
+ className,
117
+ language = "Text",
118
+ languageOptions,
119
+ onSelectLanguage,
120
+ withCopyButton
121
+ }) => {
122
+ useLayoutEffect(() => {
123
+ Prism.highlightAll();
124
+ }, [children, language]);
125
+ const header = withCopyButton || languageOptions && onSelectLanguage ? /* @__PURE__ */ jsxs(CodeBlockHeader, { children: [
126
+ title && /* @__PURE__ */ jsx(CodeBlockHeaderTitle, { children: title }),
127
+ /* @__PURE__ */ jsxs(
128
+ "div",
129
+ {
130
+ css: {
131
+ display: "flex",
132
+ alignItems: "center",
133
+ justifyContent: title ? "flex-end" : "space-between",
134
+ width: "100%"
135
+ },
136
+ children: [
137
+ languageOptions && onSelectLanguage ? /* @__PURE__ */ jsx("div", { css: { margin: title ? "0 16px 0 auto" : "0" }, children: /* @__PURE__ */ jsx(
138
+ Select,
139
+ {
140
+ value: { value: language, label: language },
141
+ options: languageOptions.map((lang) => ({
142
+ value: lang,
143
+ label: lang
144
+ })),
145
+ onChange: (selected) => {
146
+ if (selected == null ? void 0 : selected.value) {
147
+ onSelectLanguage(selected.value);
148
+ }
149
+ },
150
+ styles: codeSelectStyles
151
+ }
152
+ ) }) : null,
153
+ withCopyButton ? /* @__PURE__ */ jsx(CopyToClipboardButton, { value: children }) : null
154
+ ]
155
+ }
156
+ )
157
+ ] }) : null;
158
+ return /* @__PURE__ */ jsxs(StyledCodeBlock, { className, children: [
159
+ header,
160
+ /* @__PURE__ */ jsx(CodeBlockContainer, { hasHeader: header !== null, children: /* @__PURE__ */ jsx("code", { className: `language-${ProgrammingLanguageOptions[language]}`, children }) })
161
+ ] });
162
+ };
163
+ var StyledCodeBlock = styled.div``;
164
+ var CodeBlockHeader = styled.div`
165
+ align-items: center;
166
+ background-color: #2d2d2d;
167
+ border-bottom: 1px solid ${colors.gray25};
168
+ border-top-left-radius: 8px;
169
+ border-top-right-radius: 8px;
170
+ color: #ffffff;
171
+ display: flex;
172
+ flex-direction: row;
173
+ justify-content: space-between;
174
+ padding: 16px 20px;
175
+ `;
176
+ var CodeBlockContainer = styled.pre`
177
+ ${overflowAutoWithoutScrollbars}
178
+ &[class*="language-"] {
179
+ padding: 20px;
180
+ font-weight: 500;
181
+ ${standardBorderRadius(8)}
182
+ ${(props) => props.hasHeader ? `border-top-left-radius: 0;
183
+ border-top-right-radius: 0;
184
+ margin-top: 0;` : ""}
185
+ }
186
+ `;
187
+ var CodeBlockHeaderTitle = styled.div`
188
+ width: 100%;
189
+ font-weight: 500;
190
+ color: ${({ theme }) => theme.hcNeutralFromBg(backgroundColor)};
191
+ `;
192
+
193
+ export {
194
+ ProgrammingLanguageOptions,
195
+ InlineCode,
196
+ CodeBlock,
197
+ StyledCodeBlock
198
+ };
@@ -1329,7 +1329,7 @@ var darkGradientBg = import_react4.css`
1329
1329
 
1330
1330
  // src/components/Badge.tsx
1331
1331
  var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
1332
- function Badge({ text, ml = 0 }) {
1332
+ function Badge({ text, ml = 0, mr = 0 }) {
1333
1333
  return text ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(StyledBadge, { ml, children: text }) : null;
1334
1334
  }
1335
1335
  var badgeVPadding = 2;
@@ -2,9 +2,10 @@ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
 
3
3
  type BadgeProps = {
4
4
  text?: string | undefined;
5
- ml?: number;
5
+ ml?: 0 | 4 | 6;
6
+ mr?: 0 | 4 | 6;
6
7
  };
7
- declare function Badge({ text, ml }: BadgeProps): _emotion_react_jsx_runtime.JSX.Element | null;
8
+ declare function Badge({ text, ml, mr }: BadgeProps): _emotion_react_jsx_runtime.JSX.Element | null;
8
9
  declare const badgeVPadding = 2;
9
10
 
10
- export { Badge, badgeVPadding };
11
+ export { Badge, BadgeProps, badgeVPadding };
@@ -2,9 +2,10 @@ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
 
3
3
  type BadgeProps = {
4
4
  text?: string | undefined;
5
- ml?: number;
5
+ ml?: 0 | 4 | 6;
6
+ mr?: 0 | 4 | 6;
6
7
  };
7
- declare function Badge({ text, ml }: BadgeProps): _emotion_react_jsx_runtime.JSX.Element | null;
8
+ declare function Badge({ text, ml, mr }: BadgeProps): _emotion_react_jsx_runtime.JSX.Element | null;
8
9
  declare const badgeVPadding = 2;
9
10
 
10
- export { Badge, badgeVPadding };
11
+ export { Badge, BadgeProps, badgeVPadding };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Badge,
3
3
  badgeVPadding
4
- } from "../chunk-DQRN4E5G.js";
4
+ } from "../chunk-EXGJIYUI.js";
5
5
  import "../chunk-JK4BP73A.js";
6
6
  import "../chunk-2VBDEO6M.js";
7
7
  import "../chunk-E4EXM4SY.js";
@@ -1321,6 +1321,7 @@ function replaceParams(to, params) {
1321
1321
  }
1322
1322
  function Link({
1323
1323
  to,
1324
+ id,
1324
1325
  externalLink,
1325
1326
  params,
1326
1327
  children,
@@ -1353,6 +1354,7 @@ function Link({
1353
1354
  import_react_router_dom.Link,
1354
1355
  {
1355
1356
  to: toStr,
1357
+ id,
1356
1358
  css: css6,
1357
1359
  onClick,
1358
1360
  className,
@@ -1793,6 +1795,7 @@ function Button({
1793
1795
  ghost = false,
1794
1796
  text,
1795
1797
  to,
1798
+ id,
1796
1799
  hash,
1797
1800
  href,
1798
1801
  toParams,
@@ -1849,6 +1852,7 @@ function Button({
1849
1852
  ] });
1850
1853
  const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
1851
1854
  const commonProps = {
1855
+ id,
1852
1856
  backgroundColor,
1853
1857
  color,
1854
1858
  hoverColor,
@@ -9,13 +9,14 @@ declare const ButtonSizes: readonly ["sm", "md", "lg"];
9
9
  type ButtonSize = (typeof ButtonSizes)[number];
10
10
  type IconSide = "left" | "right";
11
11
  type ButtonProps<RoutesType extends string> = {
12
- backgroundColor?: string;
13
- color?: string;
14
- hoverColor?: string;
15
- text?: string;
12
+ backgroundColor?: string | undefined;
13
+ color?: string | undefined;
14
+ hoverColor?: string | undefined;
15
+ text?: string | undefined;
16
16
  disabled?: boolean | undefined;
17
+ id?: string | undefined;
17
18
  to?: RoutesType | undefined;
18
- hash?: string;
19
+ hash?: string | undefined;
19
20
  href?: string;
20
21
  toParams?: RouteParams | undefined;
21
22
  primary?: boolean | undefined;
@@ -29,36 +30,32 @@ type ButtonProps<RoutesType extends string> = {
29
30
  ml?: number;
30
31
  fullWidth?: boolean | undefined;
31
32
  type?: "button" | "submit";
32
- blue?: boolean;
33
+ blue?: boolean | undefined;
33
34
  newTab?: boolean;
34
35
  tooltipText?: string;
35
- zIndex?: number;
36
- };
37
- declare function Button<RoutesType extends string>({ backgroundColor, color, hoverColor, primary, ghost, text, to, hash, href, toParams, onClick, icon, iconSide, loading, fullWidth, disabled, size, mt, ml, type, blue, newTab, zIndex, tooltipText, }: ButtonProps<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
38
- type StyledButtonProps = {
39
- backgroundColor?: string | undefined;
40
- color?: string | undefined;
41
- hoverColor?: string | undefined;
42
- primary: boolean;
43
- ghost: boolean;
44
- size: ButtonSize;
45
- disabled: boolean;
46
- fullWidth: boolean;
47
- isLoading: boolean;
48
- blue: boolean;
49
- iconWidth: number;
50
- newTab: boolean;
51
- text?: string | undefined;
52
36
  zIndex?: number | undefined;
53
- iconSide?: IconSide | undefined;
54
- isRound: boolean;
55
37
  };
38
+ declare function Button<RoutesType extends string>({ backgroundColor, color, hoverColor, primary, ghost, text, to, id, hash, href, toParams, onClick, icon, iconSide, loading, fullWidth, disabled, size, mt, ml, type, blue, newTab, zIndex, tooltipText, }: ButtonProps<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
56
39
  declare const StyledButton: _emotion_styled.StyledComponent<{
57
40
  theme?: Theme;
58
41
  as?: react.ElementType<any>;
59
42
  } & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & {
60
43
  theme?: Theme;
61
- } & StyledButtonProps, {}, {}>;
44
+ } & ButtonProps<string> & {
45
+ isLoading: boolean;
46
+ blue: boolean;
47
+ primary: boolean;
48
+ ghost: boolean;
49
+ iconWidth: number;
50
+ isRound: boolean;
51
+ size: ButtonSize;
52
+ disabled: boolean;
53
+ fullWidth: boolean;
54
+ css: {
55
+ marginTop: string | undefined;
56
+ marginLeft: string | undefined;
57
+ };
58
+ }, {}, {}>;
62
59
  declare const ButtonSelector: (prepend?: string, append?: string) => string;
63
60
 
64
61
  export { Button, ButtonProps, ButtonSelector, StyledButton };
@@ -9,13 +9,14 @@ declare const ButtonSizes: readonly ["sm", "md", "lg"];
9
9
  type ButtonSize = (typeof ButtonSizes)[number];
10
10
  type IconSide = "left" | "right";
11
11
  type ButtonProps<RoutesType extends string> = {
12
- backgroundColor?: string;
13
- color?: string;
14
- hoverColor?: string;
15
- text?: string;
12
+ backgroundColor?: string | undefined;
13
+ color?: string | undefined;
14
+ hoverColor?: string | undefined;
15
+ text?: string | undefined;
16
16
  disabled?: boolean | undefined;
17
+ id?: string | undefined;
17
18
  to?: RoutesType | undefined;
18
- hash?: string;
19
+ hash?: string | undefined;
19
20
  href?: string;
20
21
  toParams?: RouteParams | undefined;
21
22
  primary?: boolean | undefined;
@@ -29,36 +30,32 @@ type ButtonProps<RoutesType extends string> = {
29
30
  ml?: number;
30
31
  fullWidth?: boolean | undefined;
31
32
  type?: "button" | "submit";
32
- blue?: boolean;
33
+ blue?: boolean | undefined;
33
34
  newTab?: boolean;
34
35
  tooltipText?: string;
35
- zIndex?: number;
36
- };
37
- declare function Button<RoutesType extends string>({ backgroundColor, color, hoverColor, primary, ghost, text, to, hash, href, toParams, onClick, icon, iconSide, loading, fullWidth, disabled, size, mt, ml, type, blue, newTab, zIndex, tooltipText, }: ButtonProps<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
38
- type StyledButtonProps = {
39
- backgroundColor?: string | undefined;
40
- color?: string | undefined;
41
- hoverColor?: string | undefined;
42
- primary: boolean;
43
- ghost: boolean;
44
- size: ButtonSize;
45
- disabled: boolean;
46
- fullWidth: boolean;
47
- isLoading: boolean;
48
- blue: boolean;
49
- iconWidth: number;
50
- newTab: boolean;
51
- text?: string | undefined;
52
36
  zIndex?: number | undefined;
53
- iconSide?: IconSide | undefined;
54
- isRound: boolean;
55
37
  };
38
+ declare function Button<RoutesType extends string>({ backgroundColor, color, hoverColor, primary, ghost, text, to, id, hash, href, toParams, onClick, icon, iconSide, loading, fullWidth, disabled, size, mt, ml, type, blue, newTab, zIndex, tooltipText, }: ButtonProps<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
56
39
  declare const StyledButton: _emotion_styled.StyledComponent<{
57
40
  theme?: Theme;
58
41
  as?: react.ElementType<any>;
59
42
  } & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & {
60
43
  theme?: Theme;
61
- } & StyledButtonProps, {}, {}>;
44
+ } & ButtonProps<string> & {
45
+ isLoading: boolean;
46
+ blue: boolean;
47
+ primary: boolean;
48
+ ghost: boolean;
49
+ iconWidth: number;
50
+ isRound: boolean;
51
+ size: ButtonSize;
52
+ disabled: boolean;
53
+ fullWidth: boolean;
54
+ css: {
55
+ marginTop: string | undefined;
56
+ marginLeft: string | undefined;
57
+ };
58
+ }, {}, {}>;
62
59
  declare const ButtonSelector: (prepend?: string, append?: string) => string;
63
60
 
64
61
  export { Button, ButtonProps, ButtonSelector, StyledButton };
@@ -2,8 +2,8 @@ import {
2
2
  Button,
3
3
  ButtonSelector,
4
4
  StyledButton
5
- } from "../chunk-ZANLDY2W.js";
6
- import "../chunk-OGSDZTHM.js";
5
+ } from "../chunk-75VDSSXM.js";
6
+ import "../chunk-QCXXJZDC.js";
7
7
  import "../chunk-YMNSXZ5D.js";
8
8
  import "../chunk-J4FJQ3FN.js";
9
9
  import "../chunk-3GS5EFXV.js";
@@ -1485,6 +1485,7 @@ function replaceParams(to, params) {
1485
1485
  }
1486
1486
  function Link({
1487
1487
  to,
1488
+ id,
1488
1489
  externalLink,
1489
1490
  params,
1490
1491
  children,
@@ -1517,6 +1518,7 @@ function Link({
1517
1518
  import_react_router_dom.Link,
1518
1519
  {
1519
1520
  to: toStr,
1521
+ id,
1520
1522
  css: css7,
1521
1523
  onClick,
1522
1524
  className,
@@ -1854,6 +1856,7 @@ function Button({
1854
1856
  ghost = false,
1855
1857
  text,
1856
1858
  to,
1859
+ id,
1857
1860
  hash,
1858
1861
  href,
1859
1862
  toParams,
@@ -1910,6 +1913,7 @@ function Button({
1910
1913
  ] });
1911
1914
  const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
1912
1915
  const commonProps = {
1916
+ id,
1913
1917
  backgroundColor,
1914
1918
  color,
1915
1919
  hoverColor,
@@ -2,9 +2,9 @@ import {
2
2
  ButtonRow,
3
3
  ButtonRowContainer,
4
4
  StyledButtonRow
5
- } from "../chunk-NFSAJ5GJ.js";
6
- import "../chunk-ZANLDY2W.js";
7
- import "../chunk-OGSDZTHM.js";
5
+ } from "../chunk-DFYHIUYN.js";
6
+ import "../chunk-75VDSSXM.js";
7
+ import "../chunk-QCXXJZDC.js";
8
8
  import "../chunk-YMNSXZ5D.js";
9
9
  import "../chunk-J4FJQ3FN.js";
10
10
  import "../chunk-3GS5EFXV.js";
@@ -5,11 +5,11 @@ import {
5
5
  CardPageFullWidth,
6
6
  CardPageRightContentInner,
7
7
  CardPageSubtitle
8
- } from "../chunk-PBRN7MJY.js";
8
+ } from "../chunk-QWAHK2QG.js";
9
9
  import "../chunk-P3EUPXFA.js";
10
- import "../chunk-NFSAJ5GJ.js";
11
- import "../chunk-ZANLDY2W.js";
12
- import "../chunk-OGSDZTHM.js";
10
+ import "../chunk-DFYHIUYN.js";
11
+ import "../chunk-75VDSSXM.js";
12
+ import "../chunk-QCXXJZDC.js";
13
13
  import "../chunk-YMNSXZ5D.js";
14
14
  import "../chunk-J4FJQ3FN.js";
15
15
  import "../chunk-3GS5EFXV.js";