@lightsparkdev/ui 0.0.5 → 0.0.7
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.
- package/CHANGELOG.md +19 -0
- package/README.md +2 -0
- package/dist/{chunk-3PB5DNAL.js → chunk-23SR7TFO.js} +1 -1
- package/dist/{chunk-VV7F7VVL.js → chunk-2WYVO6B2.js} +1 -1
- package/dist/{chunk-PVUPVJ3F.js → chunk-3CZOYF3X.js} +5 -2
- package/dist/{chunk-4K2KAYVH.js → chunk-4TFRLWCC.js} +4 -1
- package/dist/{chunk-SUD5NOKE.js → chunk-FKETYVPP.js} +11 -6
- package/dist/{chunk-6R6A5H4I.js → chunk-G2PZZFJL.js} +20 -12
- package/dist/{chunk-WB6FFT7Y.js → chunk-I74XQIVV.js} +6 -3
- package/dist/{chunk-DHNWT2E5.js → chunk-IQFU7CM5.js} +1 -1
- package/dist/{chunk-U6LQLAWI.js → chunk-JYWYEOM6.js} +3 -3
- package/dist/{chunk-EZ4RHFY7.js → chunk-K7D7A34K.js} +1 -1
- package/dist/{chunk-6RXFA73Z.js → chunk-M56R3RJ7.js} +10 -1
- package/dist/{chunk-WEPQ7LRL.js → chunk-N2RDQJQ5.js} +1 -1
- package/dist/{chunk-OLAFBUE5.js → chunk-NGS4OSWT.js} +1 -1
- package/dist/{chunk-ANJDI74G.js → chunk-NH25O7PC.js} +6 -3
- package/dist/{chunk-MYG24ZWT.js → chunk-NZJCJJH5.js} +1 -1
- package/dist/{chunk-SW6ZA7W2.js → chunk-QGGOMPHZ.js} +4 -1
- package/dist/{chunk-XUGLVWSH.js → chunk-RFGKH3R6.js} +27 -7
- package/dist/{chunk-ZQTE53SK.js → chunk-RTUZVKPK.js} +10 -8
- package/dist/{chunk-YHSFWCFN.js → chunk-T33SBHYI.js} +3 -2
- package/dist/chunk-TAI352I3.js +30 -0
- package/dist/{chunk-SV5QPU7N.js → chunk-UO6U7AYM.js} +1 -1
- package/dist/{chunk-4ZZHBSW4.js → chunk-VBWTKANQ.js} +15 -8
- package/dist/{chunk-FRIQXHPR.js → chunk-WWFDI534.js} +3 -3
- package/dist/chunk-YMNSXZ5D.js +8 -0
- package/dist/components/Button.cjs +8 -1
- package/dist/components/Button.js +8 -7
- package/dist/components/ButtonRow.js +10 -9
- package/dist/components/Collapsible.cjs +8 -4
- package/dist/components/Collapsible.js +5 -5
- package/dist/components/ContentTable.js +4 -4
- package/dist/components/CopyToClipboardButton.js +5 -5
- package/dist/components/CurrencyAmount.js +4 -4
- package/dist/components/Icon.js +3 -3
- package/dist/components/LightsparkProvider.cjs +2 -1
- package/dist/components/LightsparkProvider.js +4 -4
- package/dist/components/Loading.js +4 -4
- package/dist/components/Modal.cjs +113 -66
- package/dist/components/Modal.d.cts +1 -1
- package/dist/components/Modal.d.ts +1 -1
- package/dist/components/Modal.js +12 -10
- package/dist/components/ProgressBar.cjs +200 -17
- package/dist/components/ProgressBar.js +3 -1
- package/dist/components/SecretContainer.cjs +12 -6
- package/dist/components/SecretContainer.js +6 -6
- package/dist/components/TextIconAligner.d.cts +2 -2
- package/dist/components/TextIconAligner.d.ts +2 -2
- package/dist/components/TextIconAligner.js +4 -4
- package/dist/components/UnstyledButton.js +3 -3
- package/dist/components/documentation/AnchorLinkHeader.cjs +7 -2
- package/dist/components/documentation/AnchorLinkHeader.js +6 -5
- package/dist/components/documentation/index.cjs +7 -2
- package/dist/components/documentation/index.js +6 -5
- package/dist/components/index.cjs +108 -60
- package/dist/components/index.js +20 -18
- package/dist/icons/DotGrid1x3Horizontal.cjs +60 -0
- package/dist/icons/DotGrid1x3Horizontal.d.cts +5 -0
- package/dist/icons/DotGrid1x3Horizontal.d.ts +5 -0
- package/dist/icons/DotGrid1x3Horizontal.js +41 -0
- package/dist/icons/Home.cjs +52 -0
- package/dist/icons/Home.d.cts +5 -0
- package/dist/icons/Home.d.ts +5 -0
- package/dist/icons/Home.js +29 -0
- package/dist/icons/Person.cjs +22 -12
- package/dist/icons/Person.js +23 -13
- package/dist/icons/Team.cjs +3 -3
- package/dist/icons/Team.js +3 -3
- package/dist/icons/index.js +3 -3
- package/dist/router.cjs +10 -0
- package/dist/router.d.cts +5 -2
- package/dist/router.d.ts +5 -2
- package/dist/router.js +3 -1
- package/dist/styles/colors.d.cts +2 -1
- package/dist/styles/colors.d.ts +2 -1
- package/dist/styles/common.cjs +26 -4
- package/dist/styles/common.d.cts +16 -9
- package/dist/styles/common.d.ts +16 -9
- package/dist/styles/common.js +6 -2
- package/dist/styles/fields.cjs +1 -1
- package/dist/styles/fields.d.cts +11 -15
- package/dist/styles/fields.d.ts +11 -15
- package/dist/styles/fields.js +5 -5
- package/dist/styles/fonts/typography/Article.cjs +18 -6
- package/dist/styles/fonts/typography/Article.js +9 -8
- package/dist/styles/fonts/typography/Display.cjs +6 -1
- package/dist/styles/fonts/typography/Display.js +2 -1
- package/dist/styles/fonts/typography/Headline.cjs +6 -1
- package/dist/styles/fonts/typography/Headline.js +2 -1
- package/dist/styles/fonts/typography/index.cjs +18 -6
- package/dist/styles/fonts/typography/index.js +15 -14
- package/dist/styles/fonts/typographyTokens.d.cts +4 -1
- package/dist/styles/fonts/typographyTokens.d.ts +4 -1
- package/dist/styles/global.cjs +2 -1
- package/dist/styles/global.js +3 -3
- package/dist/styles/type.cjs +3 -2
- package/dist/styles/type.d.cts +4 -0
- package/dist/styles/type.d.ts +4 -0
- package/dist/styles/type.js +6 -5
- package/dist/styles/utils.js +3 -3
- package/dist/utils/emotion.cjs +32 -0
- package/dist/utils/emotion.d.cts +5 -0
- package/dist/utils/emotion.d.ts +5 -0
- package/dist/utils/emotion.js +7 -0
- package/dist/utils/toReactNodes.cjs +1252 -0
- package/dist/utils/toReactNodes.d.cts +14 -0
- package/dist/utils/toReactNodes.d.ts +14 -0
- package/dist/utils/toReactNodes.js +14 -0
- package/package.json +12 -3
|
@@ -50,11 +50,107 @@ __export(ProgressBar_exports, {
|
|
|
50
50
|
ProgressBar: () => ProgressBar
|
|
51
51
|
});
|
|
52
52
|
module.exports = __toCommonJS(ProgressBar_exports);
|
|
53
|
-
var
|
|
54
|
-
var
|
|
53
|
+
var import_styled2 = __toESM(require("@emotion/styled"), 1);
|
|
54
|
+
var import_react5 = require("react");
|
|
55
55
|
|
|
56
56
|
// src/styles/colors.tsx
|
|
57
|
+
var import_react3 = require("@emotion/react");
|
|
58
|
+
|
|
59
|
+
// src/styles/breakpoints.tsx
|
|
57
60
|
var import_react = require("@emotion/react");
|
|
61
|
+
var import_lodash_es = require("lodash-es");
|
|
62
|
+
var import_react2 = require("react");
|
|
63
|
+
var import_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
64
|
+
var Breakpoints = /* @__PURE__ */ ((Breakpoints2) => {
|
|
65
|
+
Breakpoints2["sm"] = "sm";
|
|
66
|
+
Breakpoints2["md"] = "md";
|
|
67
|
+
Breakpoints2["lg"] = "lg";
|
|
68
|
+
return Breakpoints2;
|
|
69
|
+
})(Breakpoints || {});
|
|
70
|
+
var breakpoints = {
|
|
71
|
+
["sm" /* sm */]: 640,
|
|
72
|
+
["md" /* md */]: 834,
|
|
73
|
+
["lg" /* lg */]: 1200
|
|
74
|
+
};
|
|
75
|
+
var breakpointFn = (mq) => (style) => `@media ${mq} { ${style} }`;
|
|
76
|
+
var bp = {
|
|
77
|
+
key: Breakpoints,
|
|
78
|
+
["sm" /* sm */]: breakpointFn(`(max-width:${breakpoints.sm}px)`),
|
|
79
|
+
["lg" /* lg */]: breakpointFn(`(min-width:${breakpoints.lg}px)`),
|
|
80
|
+
["minSmMaxLg" /* minSmMaxLg */]: breakpointFn(
|
|
81
|
+
`(min-width:${breakpoints.sm + 1}px) and (max-width:${breakpoints.lg - 1}px)`
|
|
82
|
+
),
|
|
83
|
+
["minSmMaxMd" /* minSmMaxMd */]: breakpointFn(
|
|
84
|
+
`(min-width:${breakpoints.sm + 1}px) and (max-width:${breakpoints.md - 1}px)`
|
|
85
|
+
),
|
|
86
|
+
["minMdMaxLg" /* minMdMaxLg */]: breakpointFn(
|
|
87
|
+
`(min-width:${breakpoints.md}px) and (max-width:${breakpoints.lg - 1}px)`
|
|
88
|
+
),
|
|
89
|
+
["maxLg" /* maxLg */]: breakpointFn(`(max-width:${breakpoints.lg - 1}px)`),
|
|
90
|
+
["maxMd" /* maxMd */]: breakpointFn(`(max-width:${breakpoints.md - 1}px)`),
|
|
91
|
+
["minSm" /* minSm */]: breakpointFn(`(min-width:${breakpoints.sm + 1}px)`),
|
|
92
|
+
["minMd" /* minMd */]: breakpointFn(`(min-width:${breakpoints.md + 1}px)`),
|
|
93
|
+
current: function(assertBp) {
|
|
94
|
+
const currentBp = (
|
|
95
|
+
/* window is undefined in first server side render for Next apps: */
|
|
96
|
+
typeof window === "undefined" ? "sm" /* sm */ : window.getComputedStyle(document.body, ":before").content.replace(/"/g, "")
|
|
97
|
+
);
|
|
98
|
+
if (assertBp) {
|
|
99
|
+
return inRange(
|
|
100
|
+
currentBp,
|
|
101
|
+
assertBp
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
return currentBp;
|
|
105
|
+
},
|
|
106
|
+
switch: (smVal, minSmMaxMdVal, minMdMaxLgVal, lgVal) => {
|
|
107
|
+
const currentBp = bp.current();
|
|
108
|
+
if (currentBp === "sm" /* sm */) {
|
|
109
|
+
return smVal;
|
|
110
|
+
} else if (currentBp === "minSmMaxMd" /* minSmMaxMd */) {
|
|
111
|
+
return minSmMaxMdVal;
|
|
112
|
+
} else if (currentBp === "minMdMaxLg" /* minMdMaxLg */) {
|
|
113
|
+
return minMdMaxLgVal;
|
|
114
|
+
}
|
|
115
|
+
return lgVal;
|
|
116
|
+
},
|
|
117
|
+
isSm: () => bp.current("sm" /* sm */),
|
|
118
|
+
isMinSm: () => bp.current("minSm" /* minSm */),
|
|
119
|
+
isMinSmMaxMd: () => bp.current("minSmMaxMd" /* minSmMaxMd */),
|
|
120
|
+
isMinMdMaxLg: () => bp.current("minMdMaxLg" /* minMdMaxLg */),
|
|
121
|
+
isLg: () => bp.current("lg" /* lg */)
|
|
122
|
+
};
|
|
123
|
+
function inRange(currentBp, assertBp) {
|
|
124
|
+
const isSm = currentBp === "sm" /* sm */;
|
|
125
|
+
const isMinSmMaxMd = currentBp === "minSmMaxMd" /* minSmMaxMd */;
|
|
126
|
+
const isMinMdMaxLg = currentBp === "minMdMaxLg" /* minMdMaxLg */;
|
|
127
|
+
const isLg = currentBp === "lg" /* lg */;
|
|
128
|
+
if (assertBp) {
|
|
129
|
+
switch (assertBp) {
|
|
130
|
+
case "sm" /* sm */:
|
|
131
|
+
return isSm;
|
|
132
|
+
case "minSmMaxMd" /* minSmMaxMd */:
|
|
133
|
+
return isMinSmMaxMd;
|
|
134
|
+
case "minMdMaxLg" /* minMdMaxLg */:
|
|
135
|
+
return isMinMdMaxLg;
|
|
136
|
+
case "lg" /* lg */:
|
|
137
|
+
return isLg;
|
|
138
|
+
case "minSmMaxLg" /* minSmMaxLg */:
|
|
139
|
+
return isMinSmMaxMd || isMinMdMaxLg;
|
|
140
|
+
case "maxLg" /* maxLg */:
|
|
141
|
+
return isSm || isMinSmMaxMd || isMinMdMaxLg;
|
|
142
|
+
case "maxMd" /* maxMd */:
|
|
143
|
+
return isSm || isMinSmMaxMd;
|
|
144
|
+
case "minSm" /* minSm */:
|
|
145
|
+
return isMinSmMaxMd || isMinMdMaxLg || isLg;
|
|
146
|
+
case "minMd" /* minMd */:
|
|
147
|
+
return isMinMdMaxLg || isLg;
|
|
148
|
+
default:
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
58
154
|
|
|
59
155
|
// src/styles/fonts/typographyTokens.ts
|
|
60
156
|
var FONT_FAMILIES = {
|
|
@@ -981,6 +1077,7 @@ var uma = {
|
|
|
981
1077
|
strokeProminent: "#9BA7B9",
|
|
982
1078
|
fill: "#EBEEF2"
|
|
983
1079
|
};
|
|
1080
|
+
var darkGradient = "#1d1d1d linear-gradient(180deg, #090909 63.08%, #1d1d1d 100.52%)";
|
|
984
1081
|
var primary = "#FFF14E";
|
|
985
1082
|
var colors = __spreadProps(__spreadValues({}, neutral), {
|
|
986
1083
|
uma,
|
|
@@ -1164,8 +1261,95 @@ function hexToRGB(hex) {
|
|
|
1164
1261
|
] : [0, 0, 0];
|
|
1165
1262
|
}
|
|
1166
1263
|
|
|
1264
|
+
// src/styles/common.tsx
|
|
1265
|
+
var import_react4 = require("@emotion/react");
|
|
1266
|
+
var import_styled = __toESM(require("@emotion/styled"), 1);
|
|
1267
|
+
var import_react_tooltip = require("react-tooltip");
|
|
1268
|
+
|
|
1269
|
+
// src/styles/z-index.tsx
|
|
1270
|
+
var z = {
|
|
1271
|
+
card: 1,
|
|
1272
|
+
fieldError: 1,
|
|
1273
|
+
textInput: 2,
|
|
1274
|
+
select: 3,
|
|
1275
|
+
selectFocused: 4,
|
|
1276
|
+
walletActionPreviewTopGradient: 1,
|
|
1277
|
+
headerContainer: 99,
|
|
1278
|
+
smBanner: 99,
|
|
1279
|
+
headerTop: 100,
|
|
1280
|
+
navMenu: 100,
|
|
1281
|
+
smNavMenu: 100,
|
|
1282
|
+
navAction: 101,
|
|
1283
|
+
smNavAction: 100,
|
|
1284
|
+
// keep under navDropdown
|
|
1285
|
+
tooltip: 160,
|
|
1286
|
+
notificationBanner: 170,
|
|
1287
|
+
qrReaderVideo: 180,
|
|
1288
|
+
qrReaderOverlay: 181,
|
|
1289
|
+
modalOverlay: 190,
|
|
1290
|
+
modalContainer: 191,
|
|
1291
|
+
dropdown: 192,
|
|
1292
|
+
toast: 200
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
// src/styles/common.tsx
|
|
1296
|
+
var rootFontSizePx = 12;
|
|
1297
|
+
var rootFontSizeRems = rootFontSizePx / 16;
|
|
1298
|
+
var standardContentInsetPx = 32;
|
|
1299
|
+
var standardContentInsetMdPx = 24;
|
|
1300
|
+
var standardContentInsetSmPx = 16;
|
|
1301
|
+
var standardBorderRadius = (radius) => {
|
|
1302
|
+
const borderRadiusPx = Array.isArray(radius) ? radius.map((r) => `${r}px`).join(" ") : `${radius}px`;
|
|
1303
|
+
return `
|
|
1304
|
+
border-radius: ${borderRadiusPx};
|
|
1305
|
+
`;
|
|
1306
|
+
};
|
|
1307
|
+
var smContentInset = import_react4.css`
|
|
1308
|
+
${bp.sm(`
|
|
1309
|
+
margin-left: auto;
|
|
1310
|
+
margin-right: auto;
|
|
1311
|
+
width: calc(100% - ${standardContentInsetSmPx * 2}px);
|
|
1312
|
+
`)}
|
|
1313
|
+
`;
|
|
1314
|
+
var minSmMaxLgContentInset = import_react4.css`
|
|
1315
|
+
${bp.minSmMaxLg(`
|
|
1316
|
+
width: calc(100% - ${standardContentInsetMdPx * 2}px);
|
|
1317
|
+
`)}
|
|
1318
|
+
`;
|
|
1319
|
+
var standardContentInset = import_react4.css`
|
|
1320
|
+
margin-left: auto;
|
|
1321
|
+
margin-right: auto;
|
|
1322
|
+
width: calc(100% - ${standardContentInsetPx * 2}px);
|
|
1323
|
+
max-width: 1280px;
|
|
1324
|
+
|
|
1325
|
+
${smContentInset}
|
|
1326
|
+
${minSmMaxLgContentInset}
|
|
1327
|
+
`;
|
|
1328
|
+
var standardCardShadow = import_react4.css`
|
|
1329
|
+
box-shadow:
|
|
1330
|
+
0px 4px 10px 0px rgba(0, 0, 0, 0.08),
|
|
1331
|
+
0px 8px 24px 0px rgba(0, 0, 0, 0.04);
|
|
1332
|
+
`;
|
|
1333
|
+
var pageBorderRadiusPx = 16;
|
|
1334
|
+
var pageBorderRadius = `
|
|
1335
|
+
border-radius: ${pageBorderRadiusPx}px;
|
|
1336
|
+
`;
|
|
1337
|
+
var subtext = ({ theme }) => import_react4.css`
|
|
1338
|
+
color: ${theme.c6Neutral};
|
|
1339
|
+
font-weight: 600;
|
|
1340
|
+
`;
|
|
1341
|
+
var Subtext = import_styled.default.div`
|
|
1342
|
+
${subtext}
|
|
1343
|
+
`;
|
|
1344
|
+
var darkGradientBg = import_react4.css`
|
|
1345
|
+
background: ${darkGradient};
|
|
1346
|
+
`;
|
|
1347
|
+
var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
|
|
1348
|
+
z-index: ${z.modalOverlay};
|
|
1349
|
+
`;
|
|
1350
|
+
|
|
1167
1351
|
// src/components/ProgressBar.tsx
|
|
1168
|
-
var
|
|
1352
|
+
var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
|
|
1169
1353
|
var defaultProps = {
|
|
1170
1354
|
isSm: false,
|
|
1171
1355
|
stepDuration: 0.5
|
|
@@ -1176,18 +1360,17 @@ function ProgressBar({
|
|
|
1176
1360
|
isSm = defaultProps.isSm,
|
|
1177
1361
|
stepDuration = defaultProps.stepDuration
|
|
1178
1362
|
}) {
|
|
1179
|
-
const [percentage, setPercentage] = (0,
|
|
1180
|
-
|
|
1181
|
-
setTimeout(() => {
|
|
1182
|
-
setPercentage(100);
|
|
1183
|
-
}, 0);
|
|
1184
|
-
}
|
|
1185
|
-
(0, import_react2.useEffect)(() => {
|
|
1363
|
+
const [percentage, setPercentage] = (0, import_react5.useState)(5);
|
|
1364
|
+
(0, import_react5.useEffect)(() => {
|
|
1186
1365
|
if (progressPercentage !== void 0) {
|
|
1187
1366
|
setPercentage(progressPercentage);
|
|
1367
|
+
} else {
|
|
1368
|
+
setTimeout(() => {
|
|
1369
|
+
setPercentage(100);
|
|
1370
|
+
}, 0);
|
|
1188
1371
|
}
|
|
1189
1372
|
}, [progressPercentage]);
|
|
1190
|
-
return /* @__PURE__ */ (0,
|
|
1373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ProgressBarContainer, { isSm, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Bar, { isSm, percentage, stepDuration, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
1191
1374
|
BarBg,
|
|
1192
1375
|
{
|
|
1193
1376
|
background,
|
|
@@ -1198,9 +1381,9 @@ function ProgressBar({
|
|
|
1198
1381
|
) }) });
|
|
1199
1382
|
}
|
|
1200
1383
|
ProgressBar.defaultProps = defaultProps;
|
|
1201
|
-
var ProgressBarContainer =
|
|
1384
|
+
var ProgressBarContainer = import_styled2.default.div`
|
|
1385
|
+
${standardBorderRadius(16)}
|
|
1202
1386
|
background-color: ${({ theme }) => themeOr(theme.c05Neutral, theme.c1Neutral)({ theme })};
|
|
1203
|
-
border-radius: 16px;
|
|
1204
1387
|
box-sizing: border-box;
|
|
1205
1388
|
display: flex;
|
|
1206
1389
|
height: ${({ isSm }) => isSm ? "6px" : "16px"};
|
|
@@ -1208,8 +1391,8 @@ var ProgressBarContainer = import_styled.default.div`
|
|
|
1208
1391
|
width: 100%;
|
|
1209
1392
|
position: relative;
|
|
1210
1393
|
`;
|
|
1211
|
-
var BarBg =
|
|
1212
|
-
|
|
1394
|
+
var BarBg = import_styled2.default.div`
|
|
1395
|
+
${standardBorderRadius(16)}
|
|
1213
1396
|
width: ${({ percentage }) => 100 / percentage * 100}%;
|
|
1214
1397
|
height: 100%;
|
|
1215
1398
|
|
|
@@ -1222,9 +1405,9 @@ var BarBg = import_styled.default.div`
|
|
|
1222
1405
|
#3f2e7e 115.32%
|
|
1223
1406
|
)`};
|
|
1224
1407
|
`;
|
|
1225
|
-
var Bar =
|
|
1408
|
+
var Bar = import_styled2.default.div`
|
|
1409
|
+
${standardBorderRadius(16)}
|
|
1226
1410
|
overflow: hidden;
|
|
1227
|
-
border-radius: ${({ isSm }) => isSm ? "6px" : "16px"};
|
|
1228
1411
|
box-sizing: border-box;
|
|
1229
1412
|
display: inline-block;
|
|
1230
1413
|
height: ${({ isSm }) => isSm ? "6px" : "16px"};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProgressBar
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-RTUZVKPK.js";
|
|
4
|
+
import "../chunk-RFGKH3R6.js";
|
|
4
5
|
import "../chunk-2VBDEO6M.js";
|
|
5
6
|
import "../chunk-E4EXM4SY.js";
|
|
6
7
|
import "../chunk-JSGRNWSB.js";
|
|
8
|
+
import "../chunk-CLU2FRJZ.js";
|
|
7
9
|
import "../chunk-CIGAQ47A.js";
|
|
8
10
|
export {
|
|
9
11
|
ProgressBar
|
|
@@ -72,11 +72,6 @@ __export(SecretContainer_exports, {
|
|
|
72
72
|
module.exports = __toCommonJS(SecretContainer_exports);
|
|
73
73
|
var import_styled5 = __toESM(require("@emotion/styled"), 1);
|
|
74
74
|
|
|
75
|
-
// src/components/CopyToClipboardButton.tsx
|
|
76
|
-
var import_styled4 = __toESM(require("@emotion/styled"), 1);
|
|
77
|
-
var import_nanoid = require("nanoid");
|
|
78
|
-
var import_react6 = require("react");
|
|
79
|
-
|
|
80
75
|
// src/styles/common.tsx
|
|
81
76
|
var import_react4 = require("@emotion/react");
|
|
82
77
|
var import_styled = __toESM(require("@emotion/styled"), 1);
|
|
@@ -1318,6 +1313,12 @@ var rootFontSizeRems = rootFontSizePx / 16;
|
|
|
1318
1313
|
var standardContentInsetPx = 32;
|
|
1319
1314
|
var standardContentInsetMdPx = 24;
|
|
1320
1315
|
var standardContentInsetSmPx = 16;
|
|
1316
|
+
var standardBorderRadius = (radius) => {
|
|
1317
|
+
const borderRadiusPx = Array.isArray(radius) ? radius.map((r) => `${r}px`).join(" ") : `${radius}px`;
|
|
1318
|
+
return `
|
|
1319
|
+
border-radius: ${borderRadiusPx};
|
|
1320
|
+
`;
|
|
1321
|
+
};
|
|
1321
1322
|
var smContentInset = import_react4.css`
|
|
1322
1323
|
${bp.sm(`
|
|
1323
1324
|
margin-left: auto;
|
|
@@ -1377,6 +1378,11 @@ var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
|
|
|
1377
1378
|
z-index: ${z.modalOverlay};
|
|
1378
1379
|
`;
|
|
1379
1380
|
|
|
1381
|
+
// src/components/CopyToClipboardButton.tsx
|
|
1382
|
+
var import_styled4 = __toESM(require("@emotion/styled"), 1);
|
|
1383
|
+
var import_nanoid = require("nanoid");
|
|
1384
|
+
var import_react6 = require("react");
|
|
1385
|
+
|
|
1380
1386
|
// src/components/Icon.tsx
|
|
1381
1387
|
var import_styled2 = __toESM(require("@emotion/styled"), 1);
|
|
1382
1388
|
var import_react5 = require("react");
|
|
@@ -1547,7 +1553,7 @@ function SecretContainer(props) {
|
|
|
1547
1553
|
}
|
|
1548
1554
|
var StyledSecretContainer = import_styled5.default.div`
|
|
1549
1555
|
background-color: ${({ theme, hasSecret, success }) => hasSecret ? success ? theme.success : theme.c05Neutral : theme.bg};
|
|
1550
|
-
|
|
1556
|
+
${standardBorderRadius(8)}
|
|
1551
1557
|
padding: 18px 20px;
|
|
1552
1558
|
color: ${({ theme, success }) => success ? theme.hcNeutral : theme.text};
|
|
1553
1559
|
border: solid 1px
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SecretContainer
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-3CZOYF3X.js";
|
|
4
|
+
import "../chunk-WWFDI534.js";
|
|
5
|
+
import "../chunk-IQFU7CM5.js";
|
|
6
|
+
import "../chunk-NZJCJJH5.js";
|
|
7
7
|
import "../chunk-LAMQKQU3.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-CLU2FRJZ.js";
|
|
8
|
+
import "../chunk-RFGKH3R6.js";
|
|
10
9
|
import "../chunk-2VBDEO6M.js";
|
|
11
10
|
import "../chunk-E4EXM4SY.js";
|
|
12
11
|
import "../chunk-JSGRNWSB.js";
|
|
12
|
+
import "../chunk-CLU2FRJZ.js";
|
|
13
13
|
import "../chunk-CIGAQ47A.js";
|
|
14
14
|
export {
|
|
15
15
|
SecretContainer
|
|
@@ -9,13 +9,13 @@ type TextIconAlignerProps = {
|
|
|
9
9
|
color?: string;
|
|
10
10
|
lg?: boolean | undefined;
|
|
11
11
|
ml?: MarginPx | undefined;
|
|
12
|
-
} | null;
|
|
12
|
+
} | undefined | null;
|
|
13
13
|
leftIcon?: {
|
|
14
14
|
name: string;
|
|
15
15
|
color?: string;
|
|
16
16
|
lg?: boolean | undefined;
|
|
17
17
|
mr?: MarginPx | undefined;
|
|
18
|
-
} | null;
|
|
18
|
+
} | undefined | null;
|
|
19
19
|
onClick?: (() => void) | undefined;
|
|
20
20
|
};
|
|
21
21
|
declare function TextIconAligner({ text, rightIcon, leftIcon, onClick, }: TextIconAlignerProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -9,13 +9,13 @@ type TextIconAlignerProps = {
|
|
|
9
9
|
color?: string;
|
|
10
10
|
lg?: boolean | undefined;
|
|
11
11
|
ml?: MarginPx | undefined;
|
|
12
|
-
} | null;
|
|
12
|
+
} | undefined | null;
|
|
13
13
|
leftIcon?: {
|
|
14
14
|
name: string;
|
|
15
15
|
color?: string;
|
|
16
16
|
lg?: boolean | undefined;
|
|
17
17
|
mr?: MarginPx | undefined;
|
|
18
|
-
} | null;
|
|
18
|
+
} | undefined | null;
|
|
19
19
|
onClick?: (() => void) | undefined;
|
|
20
20
|
};
|
|
21
21
|
declare function TextIconAligner({ text, rightIcon, leftIcon, onClick, }: TextIconAlignerProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TextIconAligner
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-N2RDQJQ5.js";
|
|
4
|
+
import "../chunk-NZJCJJH5.js";
|
|
5
5
|
import "../chunk-LAMQKQU3.js";
|
|
6
|
-
import "../chunk-
|
|
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
|
TextIconAligner
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnstyledButton
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-CLU2FRJZ.js";
|
|
3
|
+
} from "../chunk-IQFU7CM5.js";
|
|
4
|
+
import "../chunk-RFGKH3R6.js";
|
|
6
5
|
import "../chunk-2VBDEO6M.js";
|
|
7
6
|
import "../chunk-E4EXM4SY.js";
|
|
8
7
|
import "../chunk-JSGRNWSB.js";
|
|
8
|
+
import "../chunk-CLU2FRJZ.js";
|
|
9
9
|
import "../chunk-CIGAQ47A.js";
|
|
10
10
|
export {
|
|
11
11
|
UnstyledButton
|
|
@@ -78,6 +78,11 @@ var import_styled4 = __toESM(require("@emotion/styled"), 1);
|
|
|
78
78
|
var import_styled = __toESM(require("@emotion/styled"), 1);
|
|
79
79
|
var import_react4 = __toESM(require("react"), 1);
|
|
80
80
|
|
|
81
|
+
// src/utils/emotion.tsx
|
|
82
|
+
function select(component) {
|
|
83
|
+
return component.toString();
|
|
84
|
+
}
|
|
85
|
+
|
|
81
86
|
// src/styles/colors.tsx
|
|
82
87
|
var import_react3 = require("@emotion/react");
|
|
83
88
|
|
|
@@ -1346,7 +1351,7 @@ var StyledHeadline = import_styled.default.span`
|
|
|
1346
1351
|
}
|
|
1347
1352
|
`;
|
|
1348
1353
|
function headlineSelector(heading) {
|
|
1349
|
-
return `${heading}${StyledHeadline
|
|
1354
|
+
return `${heading}${select(StyledHeadline)}`;
|
|
1350
1355
|
}
|
|
1351
1356
|
var ALL_HEADLINE_SELECTORS = HEADINGS.map(headlineSelector).join(",");
|
|
1352
1357
|
|
|
@@ -1556,7 +1561,7 @@ var StyledAnchorLinkHeader = import_styled4.default.div`
|
|
|
1556
1561
|
padding-right: 24px;
|
|
1557
1562
|
}
|
|
1558
1563
|
|
|
1559
|
-
&:hover ${IconWrapper} {
|
|
1564
|
+
&:hover ${select(IconWrapper)} {
|
|
1560
1565
|
opacity: 1;
|
|
1561
1566
|
transform: translateX(0px);
|
|
1562
1567
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
AnchorLinkHeader
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-NH25O7PC.js";
|
|
5
|
+
import "../../chunk-4TFRLWCC.js";
|
|
6
|
+
import "../../chunk-YMNSXZ5D.js";
|
|
7
|
+
import "../../chunk-NZJCJJH5.js";
|
|
7
8
|
import "../../chunk-LAMQKQU3.js";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-CLU2FRJZ.js";
|
|
9
|
+
import "../../chunk-RFGKH3R6.js";
|
|
10
10
|
import "../../chunk-2VBDEO6M.js";
|
|
11
11
|
import "../../chunk-E4EXM4SY.js";
|
|
12
12
|
import "../../chunk-JSGRNWSB.js";
|
|
13
|
+
import "../../chunk-CLU2FRJZ.js";
|
|
13
14
|
import "../../chunk-CIGAQ47A.js";
|
|
14
15
|
export {
|
|
15
16
|
AnchorLinkHeader
|
|
@@ -79,6 +79,11 @@ var import_styled4 = __toESM(require("@emotion/styled"), 1);
|
|
|
79
79
|
var import_styled = __toESM(require("@emotion/styled"), 1);
|
|
80
80
|
var import_react4 = __toESM(require("react"), 1);
|
|
81
81
|
|
|
82
|
+
// src/utils/emotion.tsx
|
|
83
|
+
function select(component) {
|
|
84
|
+
return component.toString();
|
|
85
|
+
}
|
|
86
|
+
|
|
82
87
|
// src/styles/colors.tsx
|
|
83
88
|
var import_react3 = require("@emotion/react");
|
|
84
89
|
|
|
@@ -1347,7 +1352,7 @@ var StyledHeadline = import_styled.default.span`
|
|
|
1347
1352
|
}
|
|
1348
1353
|
`;
|
|
1349
1354
|
function headlineSelector(heading) {
|
|
1350
|
-
return `${heading}${StyledHeadline
|
|
1355
|
+
return `${heading}${select(StyledHeadline)}`;
|
|
1351
1356
|
}
|
|
1352
1357
|
var ALL_HEADLINE_SELECTORS = HEADINGS.map(headlineSelector).join(",");
|
|
1353
1358
|
|
|
@@ -1557,7 +1562,7 @@ var StyledAnchorLinkHeader = import_styled4.default.div`
|
|
|
1557
1562
|
padding-right: 24px;
|
|
1558
1563
|
}
|
|
1559
1564
|
|
|
1560
|
-
&:hover ${IconWrapper} {
|
|
1565
|
+
&:hover ${select(IconWrapper)} {
|
|
1561
1566
|
opacity: 1;
|
|
1562
1567
|
transform: translateX(0px);
|
|
1563
1568
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AnchorLinkHeader
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-NH25O7PC.js";
|
|
4
|
+
import "../../chunk-4TFRLWCC.js";
|
|
5
|
+
import "../../chunk-YMNSXZ5D.js";
|
|
6
|
+
import "../../chunk-NZJCJJH5.js";
|
|
6
7
|
import "../../chunk-LAMQKQU3.js";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-CLU2FRJZ.js";
|
|
8
|
+
import "../../chunk-RFGKH3R6.js";
|
|
9
9
|
import "../../chunk-2VBDEO6M.js";
|
|
10
10
|
import "../../chunk-E4EXM4SY.js";
|
|
11
11
|
import "../../chunk-JSGRNWSB.js";
|
|
12
|
+
import "../../chunk-CLU2FRJZ.js";
|
|
12
13
|
import "../../chunk-CIGAQ47A.js";
|
|
13
14
|
export {
|
|
14
15
|
AnchorLinkHeader
|