@lumiastream/ui 0.8.10 → 0.9.0
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/dist/LSSliderInput.js +26 -4
- package/dist/components.js +53 -31
- package/dist/index.js +70 -47
- package/dist/se-import.js +64 -42
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +5 -4
- package/package.json +3 -3
package/dist/LSSliderInput.js
CHANGED
|
@@ -171,7 +171,7 @@ var LSSlider = ({ color, sx, ...props }) => {
|
|
|
171
171
|
};
|
|
172
172
|
|
|
173
173
|
// src/components/LSSliderInput/LSSliderInput.tsx
|
|
174
|
-
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
174
|
+
import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
175
175
|
var normalizeSliderValue = (rawValue) => {
|
|
176
176
|
if (typeof rawValue === "number") {
|
|
177
177
|
return Number.isFinite(rawValue) ? rawValue : 0;
|
|
@@ -194,6 +194,16 @@ var getDecimalPlaces = (stepValue) => {
|
|
|
194
194
|
const decimalIndex = stepString.indexOf(".");
|
|
195
195
|
return decimalIndex === -1 ? 0 : stepString.length - decimalIndex - 1;
|
|
196
196
|
};
|
|
197
|
+
var formatUnitAdornment = (adornment) => {
|
|
198
|
+
if (typeof adornment !== "string") {
|
|
199
|
+
return adornment;
|
|
200
|
+
}
|
|
201
|
+
const trimmedAdornment = adornment.trim();
|
|
202
|
+
if (!trimmedAdornment) {
|
|
203
|
+
return "";
|
|
204
|
+
}
|
|
205
|
+
return `${trimmedAdornment.charAt(0).toUpperCase()}${trimmedAdornment.slice(1)}`;
|
|
206
|
+
};
|
|
197
207
|
var InfoIcon = () => /* @__PURE__ */ jsx3("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx3(
|
|
198
208
|
"path",
|
|
199
209
|
{
|
|
@@ -246,7 +256,8 @@ var LSSliderInput = forwardRef2(
|
|
|
246
256
|
...rest
|
|
247
257
|
}, ref) => {
|
|
248
258
|
const isValueFloat = Boolean(isFloat || isFloatMiliseconds || isMiliseconds);
|
|
249
|
-
const
|
|
259
|
+
const adornment = formatUnitAdornment(endAdornment ?? inputAfterText);
|
|
260
|
+
const rangeUnit = typeof adornment === "string" && adornment.trim().length ? ` ${adornment}` : "";
|
|
250
261
|
const actualSliderMin = sliderMin ?? min;
|
|
251
262
|
const actualSliderMax = sliderMax ?? max;
|
|
252
263
|
const actualToDisplay = useCallback(
|
|
@@ -276,6 +287,17 @@ var LSSliderInput = forwardRef2(
|
|
|
276
287
|
const displayMinimum = useMemo(() => actualToDisplay(min), [actualToDisplay, min]);
|
|
277
288
|
const inputStep = allowAnyDecimal ? "any" : displayStep;
|
|
278
289
|
const sliderColor = color === "secondary" ? "secondary" : "primary";
|
|
290
|
+
const defaultValueLabelFormat = useCallback(
|
|
291
|
+
(sliderValue) => {
|
|
292
|
+
const formattedValue = isFloatMiliseconds ? actualToDisplay(sliderValue) : sliderValue;
|
|
293
|
+
return adornment ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
294
|
+
formattedValue,
|
|
295
|
+
" ",
|
|
296
|
+
adornment
|
|
297
|
+
] }) : formattedValue;
|
|
298
|
+
},
|
|
299
|
+
[actualToDisplay, adornment, isFloatMiliseconds]
|
|
300
|
+
);
|
|
279
301
|
useEffect(() => {
|
|
280
302
|
if (value !== void 0) {
|
|
281
303
|
const normalizedValue = normalizeSliderValue(value);
|
|
@@ -409,7 +431,7 @@ var LSSliderInput = forwardRef2(
|
|
|
409
431
|
min: actualSliderMin,
|
|
410
432
|
max: actualSliderMax,
|
|
411
433
|
valueLabelDisplay,
|
|
412
|
-
valueLabelFormat:
|
|
434
|
+
valueLabelFormat: valueLabelFormat ?? defaultValueLabelFormat,
|
|
413
435
|
onChange: handleSliderChanging,
|
|
414
436
|
onChangeCommitted: handleSliderChanged,
|
|
415
437
|
sx: resolvedSliderSx
|
|
@@ -441,7 +463,7 @@ var LSSliderInput = forwardRef2(
|
|
|
441
463
|
}
|
|
442
464
|
}
|
|
443
465
|
),
|
|
444
|
-
!hideInput &&
|
|
466
|
+
!hideInput && adornment && /* @__PURE__ */ jsx3("div", { className: "mui-ls-slider-input-adornment", children: adornment })
|
|
445
467
|
] });
|
|
446
468
|
return /* @__PURE__ */ jsxs(FormControl2, { variant: "outlined", className: "mui-ls-slider-input-root", fullWidth: true, error: Boolean(rangeError), children: [
|
|
447
469
|
label && /* @__PURE__ */ jsxs(InputLabel, { shrink: true, id: labelId, htmlFor: sliderInputId, children: [
|
package/dist/components.js
CHANGED
|
@@ -224,7 +224,7 @@ import InputLabel from "@mui/material/InputLabel";
|
|
|
224
224
|
import OutlinedInput from "@mui/material/OutlinedInput";
|
|
225
225
|
import Tooltip from "@mui/material/Tooltip";
|
|
226
226
|
import { forwardRef as forwardRef2, useCallback, useEffect, useMemo, useState } from "react";
|
|
227
|
-
import { jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
227
|
+
import { Fragment, jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
228
228
|
var normalizeSliderValue = (rawValue) => {
|
|
229
229
|
if (typeof rawValue === "number") {
|
|
230
230
|
return Number.isFinite(rawValue) ? rawValue : 0;
|
|
@@ -247,6 +247,16 @@ var getDecimalPlaces = (stepValue) => {
|
|
|
247
247
|
const decimalIndex = stepString.indexOf(".");
|
|
248
248
|
return decimalIndex === -1 ? 0 : stepString.length - decimalIndex - 1;
|
|
249
249
|
};
|
|
250
|
+
var formatUnitAdornment = (adornment) => {
|
|
251
|
+
if (typeof adornment !== "string") {
|
|
252
|
+
return adornment;
|
|
253
|
+
}
|
|
254
|
+
const trimmedAdornment = adornment.trim();
|
|
255
|
+
if (!trimmedAdornment) {
|
|
256
|
+
return "";
|
|
257
|
+
}
|
|
258
|
+
return `${trimmedAdornment.charAt(0).toUpperCase()}${trimmedAdornment.slice(1)}`;
|
|
259
|
+
};
|
|
250
260
|
var InfoIcon = () => /* @__PURE__ */ jsx4("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx4(
|
|
251
261
|
"path",
|
|
252
262
|
{
|
|
@@ -299,7 +309,8 @@ var LSSliderInput = forwardRef2(
|
|
|
299
309
|
...rest
|
|
300
310
|
}, ref) => {
|
|
301
311
|
const isValueFloat = Boolean(isFloat || isFloatMiliseconds || isMiliseconds);
|
|
302
|
-
const
|
|
312
|
+
const adornment = formatUnitAdornment(endAdornment ?? inputAfterText);
|
|
313
|
+
const rangeUnit = typeof adornment === "string" && adornment.trim().length ? ` ${adornment}` : "";
|
|
303
314
|
const actualSliderMin = sliderMin ?? min;
|
|
304
315
|
const actualSliderMax = sliderMax ?? max;
|
|
305
316
|
const actualToDisplay = useCallback(
|
|
@@ -329,6 +340,17 @@ var LSSliderInput = forwardRef2(
|
|
|
329
340
|
const displayMinimum = useMemo(() => actualToDisplay(min), [actualToDisplay, min]);
|
|
330
341
|
const inputStep = allowAnyDecimal ? "any" : displayStep;
|
|
331
342
|
const sliderColor = color === "secondary" ? "secondary" : "primary";
|
|
343
|
+
const defaultValueLabelFormat = useCallback(
|
|
344
|
+
(sliderValue) => {
|
|
345
|
+
const formattedValue = isFloatMiliseconds ? actualToDisplay(sliderValue) : sliderValue;
|
|
346
|
+
return adornment ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
347
|
+
formattedValue,
|
|
348
|
+
" ",
|
|
349
|
+
adornment
|
|
350
|
+
] }) : formattedValue;
|
|
351
|
+
},
|
|
352
|
+
[actualToDisplay, adornment, isFloatMiliseconds]
|
|
353
|
+
);
|
|
332
354
|
useEffect(() => {
|
|
333
355
|
if (value !== void 0) {
|
|
334
356
|
const normalizedValue = normalizeSliderValue(value);
|
|
@@ -462,7 +484,7 @@ var LSSliderInput = forwardRef2(
|
|
|
462
484
|
min: actualSliderMin,
|
|
463
485
|
max: actualSliderMax,
|
|
464
486
|
valueLabelDisplay,
|
|
465
|
-
valueLabelFormat:
|
|
487
|
+
valueLabelFormat: valueLabelFormat ?? defaultValueLabelFormat,
|
|
466
488
|
onChange: handleSliderChanging,
|
|
467
489
|
onChangeCommitted: handleSliderChanged,
|
|
468
490
|
sx: resolvedSliderSx
|
|
@@ -494,7 +516,7 @@ var LSSliderInput = forwardRef2(
|
|
|
494
516
|
}
|
|
495
517
|
}
|
|
496
518
|
),
|
|
497
|
-
!hideInput &&
|
|
519
|
+
!hideInput && adornment && /* @__PURE__ */ jsx4("div", { className: "mui-ls-slider-input-adornment", children: adornment })
|
|
498
520
|
] });
|
|
499
521
|
return /* @__PURE__ */ jsxs(FormControl2, { variant: "outlined", className: "mui-ls-slider-input-root", fullWidth: true, error: Boolean(rangeError), children: [
|
|
500
522
|
label && /* @__PURE__ */ jsxs(InputLabel, { shrink: true, id: labelId, htmlFor: sliderInputId, children: [
|
|
@@ -668,7 +690,7 @@ import FormControlLabel from "@mui/material/FormControlLabel";
|
|
|
668
690
|
import { forwardRef as forwardRef5 } from "react";
|
|
669
691
|
import { useController, useFormContext } from "react-hook-form";
|
|
670
692
|
import classNames3 from "classnames";
|
|
671
|
-
import { Fragment, jsx as jsx7 } from "react/jsx-runtime";
|
|
693
|
+
import { Fragment as Fragment2, jsx as jsx7 } from "react/jsx-runtime";
|
|
672
694
|
var LSCheckbox = forwardRef5(({ className = "", checked, inputRef, slotProps, ...props }, ref) => {
|
|
673
695
|
const CheckboxComponent = Checkbox;
|
|
674
696
|
return /* @__PURE__ */ jsx7(
|
|
@@ -700,7 +722,7 @@ function LSCheckboxField({
|
|
|
700
722
|
}) {
|
|
701
723
|
const formContext = useFormContext();
|
|
702
724
|
const resolvedControl = control ?? formContext?.control;
|
|
703
|
-
if (!resolvedControl) return /* @__PURE__ */ jsx7(
|
|
725
|
+
if (!resolvedControl) return /* @__PURE__ */ jsx7(Fragment2, {});
|
|
704
726
|
return /* @__PURE__ */ jsx7(
|
|
705
727
|
LSCheckboxFieldInner,
|
|
706
728
|
{
|
|
@@ -1257,7 +1279,7 @@ import Search from "@mui/icons-material/Search";
|
|
|
1257
1279
|
import KeyboardArrowDown2 from "@mui/icons-material/KeyboardArrowDown";
|
|
1258
1280
|
import Tooltip3 from "@mui/material/Tooltip";
|
|
1259
1281
|
import {
|
|
1260
|
-
Fragment as
|
|
1282
|
+
Fragment as Fragment5,
|
|
1261
1283
|
createContext,
|
|
1262
1284
|
forwardRef as forwardRef8,
|
|
1263
1285
|
useCallback as useCallback2,
|
|
@@ -1270,7 +1292,7 @@ import {
|
|
|
1270
1292
|
|
|
1271
1293
|
// src/components/LSVariableInputField/VariableHighlightOverlay.tsx
|
|
1272
1294
|
import {
|
|
1273
|
-
Fragment as
|
|
1295
|
+
Fragment as Fragment3,
|
|
1274
1296
|
useEffect as useEffect4,
|
|
1275
1297
|
useLayoutEffect,
|
|
1276
1298
|
useMemo as useMemo3,
|
|
@@ -1278,7 +1300,7 @@ import {
|
|
|
1278
1300
|
useState as useState4
|
|
1279
1301
|
} from "react";
|
|
1280
1302
|
import { createPortal } from "react-dom";
|
|
1281
|
-
import { Fragment as
|
|
1303
|
+
import { Fragment as Fragment4, jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1282
1304
|
var TOKEN_START = "{{";
|
|
1283
1305
|
var TOKEN_END = "}}";
|
|
1284
1306
|
var COPIED_STYLE_PROPS = [
|
|
@@ -1367,7 +1389,7 @@ var renderSegment = (segment, key) => segment.token ? /* @__PURE__ */ jsx14(
|
|
|
1367
1389
|
{
|
|
1368
1390
|
"data-desc": segment.desc || void 0,
|
|
1369
1391
|
className: `ls-variable-highlight__token ${tokenClass(segment.type ?? "custom")}`,
|
|
1370
|
-
children: segment.children ? /* @__PURE__ */ jsxs5(
|
|
1392
|
+
children: segment.children ? /* @__PURE__ */ jsxs5(Fragment4, { children: [
|
|
1371
1393
|
TOKEN_START,
|
|
1372
1394
|
segment.children.map(
|
|
1373
1395
|
(child, index) => renderSegment(child, `${key}-${index}`)
|
|
@@ -1376,7 +1398,7 @@ var renderSegment = (segment, key) => segment.token ? /* @__PURE__ */ jsx14(
|
|
|
1376
1398
|
] }) : segment.text
|
|
1377
1399
|
},
|
|
1378
1400
|
key
|
|
1379
|
-
) : /* @__PURE__ */ jsx14(
|
|
1401
|
+
) : /* @__PURE__ */ jsx14(Fragment3, { children: segment.text }, key);
|
|
1380
1402
|
var VariableHighlightOverlay = ({
|
|
1381
1403
|
inputEl,
|
|
1382
1404
|
value,
|
|
@@ -1498,7 +1520,7 @@ var VariableHighlightOverlay = ({
|
|
|
1498
1520
|
if (!inputEl?.parentElement || !hasTokens) {
|
|
1499
1521
|
return null;
|
|
1500
1522
|
}
|
|
1501
|
-
return /* @__PURE__ */ jsxs5(
|
|
1523
|
+
return /* @__PURE__ */ jsxs5(Fragment4, { children: [
|
|
1502
1524
|
createPortal(
|
|
1503
1525
|
/* @__PURE__ */ jsx14("div", { ref: layerRef, "aria-hidden": true, className: "ls-variable-highlight__layer", children: segments.map((segment, index) => renderSegment(segment, String(index))) }),
|
|
1504
1526
|
inputEl.parentElement
|
|
@@ -1518,7 +1540,7 @@ var VariableHighlightOverlay = ({
|
|
|
1518
1540
|
};
|
|
1519
1541
|
|
|
1520
1542
|
// src/components/LSVariableInputField/LSVariableInputField.tsx
|
|
1521
|
-
import { Fragment as
|
|
1543
|
+
import { Fragment as Fragment6, jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1522
1544
|
import { createElement } from "react";
|
|
1523
1545
|
var LSVariableInputContext = createContext({});
|
|
1524
1546
|
var LSVariableInputProvider = ({
|
|
@@ -2370,7 +2392,7 @@ value: "${valueDisplay}"`;
|
|
|
2370
2392
|
const fullToken = `${rootToken}.${node.relativePath}`;
|
|
2371
2393
|
const expanded = node.isExpandable && isPathExpanded(fullToken);
|
|
2372
2394
|
const { displayValue, fullValue } = getVariableValuePreview(node.value);
|
|
2373
|
-
return /* @__PURE__ */ jsxs6(
|
|
2395
|
+
return /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
2374
2396
|
/* @__PURE__ */ jsxs6(
|
|
2375
2397
|
"div",
|
|
2376
2398
|
{
|
|
@@ -2405,7 +2427,7 @@ value: "${valueDisplay}"`;
|
|
|
2405
2427
|
expanded && renderValueChildRows(rootToken, node.children)
|
|
2406
2428
|
] }, fullToken);
|
|
2407
2429
|
});
|
|
2408
|
-
const renderExampleChildRows = (variable, examples) => /* @__PURE__ */ jsxs6(
|
|
2430
|
+
const renderExampleChildRows = (variable, examples) => /* @__PURE__ */ jsxs6(Fragment6, { children: [
|
|
2409
2431
|
/* @__PURE__ */ jsx15("div", { className: "ls-variable-picker__row ls-variable-picker__row--child ls-variable-picker__example-description", children: getSystemVariableDescription(variable) }),
|
|
2410
2432
|
examples.map((example) => /* @__PURE__ */ jsxs6(
|
|
2411
2433
|
"div",
|
|
@@ -2535,7 +2557,7 @@ value: "${valueDisplay}"`;
|
|
|
2535
2557
|
const expanded = expandable && isPathExpanded(definition.name);
|
|
2536
2558
|
const isLast = idx === filteredAllowedVariables.length - 1;
|
|
2537
2559
|
const rowCls = `ls-variable-picker__row${isLast && !expanded ? " ls-variable-picker__row--no-border" : ""}`;
|
|
2538
|
-
return /* @__PURE__ */ jsxs6(
|
|
2560
|
+
return /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
2539
2561
|
/* @__PURE__ */ jsxs6(
|
|
2540
2562
|
"div",
|
|
2541
2563
|
{
|
|
@@ -2576,7 +2598,7 @@ value: "${valueDisplay}"`;
|
|
|
2576
2598
|
const tree = systemVariableValueTrees.get(variable.name);
|
|
2577
2599
|
const expandable = examples.length > 0 || !!tree && tree.length > 0;
|
|
2578
2600
|
const expanded = expandable && isPathExpanded(rootToken);
|
|
2579
|
-
return /* @__PURE__ */ jsxs6(
|
|
2601
|
+
return /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
2580
2602
|
/* @__PURE__ */ jsxs6(
|
|
2581
2603
|
"div",
|
|
2582
2604
|
{
|
|
@@ -2626,7 +2648,7 @@ value: "${valueDisplay}"`;
|
|
|
2626
2648
|
ref: mergedInputRef
|
|
2627
2649
|
}
|
|
2628
2650
|
);
|
|
2629
|
-
return /* @__PURE__ */ jsxs6(
|
|
2651
|
+
return /* @__PURE__ */ jsxs6(Fragment6, { children: [
|
|
2630
2652
|
/* @__PURE__ */ jsx15(
|
|
2631
2653
|
Popover,
|
|
2632
2654
|
{
|
|
@@ -2819,7 +2841,7 @@ var VariableInputTextField = forwardRef8(
|
|
|
2819
2841
|
...inputPropsSlotInput,
|
|
2820
2842
|
...paramsSlotInput,
|
|
2821
2843
|
startAdornment,
|
|
2822
|
-
endAdornment: /* @__PURE__ */ jsxs6(
|
|
2844
|
+
endAdornment: /* @__PURE__ */ jsxs6(Fragment6, { children: [
|
|
2823
2845
|
endAdornment ?? null,
|
|
2824
2846
|
showVariableIcon ? /* @__PURE__ */ jsx15(Tooltip3, { title: t("chatbot.allowed-variables", "Allowed Variables"), children: /* @__PURE__ */ jsx15(
|
|
2825
2847
|
InputAdornment2,
|
|
@@ -3584,7 +3606,7 @@ import classNames10 from "classnames";
|
|
|
3584
3606
|
|
|
3585
3607
|
// src/components/ModalChrome/PanelChrome.tsx
|
|
3586
3608
|
import classNames9 from "classnames";
|
|
3587
|
-
import { Fragment as
|
|
3609
|
+
import { Fragment as Fragment7, jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3588
3610
|
function PanelChrome({
|
|
3589
3611
|
title,
|
|
3590
3612
|
titleVariant = "heading",
|
|
@@ -3613,7 +3635,7 @@ function PanelChrome({
|
|
|
3613
3635
|
footer ? /* @__PURE__ */ jsx21("div", { className: "ls-panel__footer", children: footer }) : null
|
|
3614
3636
|
] });
|
|
3615
3637
|
if (onClickAway) {
|
|
3616
|
-
return /* @__PURE__ */ jsxs11(
|
|
3638
|
+
return /* @__PURE__ */ jsxs11(Fragment7, { children: [
|
|
3617
3639
|
/* @__PURE__ */ jsx21("div", { className: "ls-panel__clickaway", onClick: onClickAway }),
|
|
3618
3640
|
panel
|
|
3619
3641
|
] });
|
|
@@ -3895,7 +3917,7 @@ EventList.displayName = "EventList";
|
|
|
3895
3917
|
// src/components/StreamStatusPanel/StreamStatusPanel.tsx
|
|
3896
3918
|
import Tooltip5 from "@mui/material/Tooltip";
|
|
3897
3919
|
import classNames14 from "classnames";
|
|
3898
|
-
import { Fragment as
|
|
3920
|
+
import { Fragment as Fragment8, jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3899
3921
|
var LS_INFO_TOOLTIP_SX = {
|
|
3900
3922
|
backgroundColor: "#1b1834",
|
|
3901
3923
|
border: "1px solid #393853",
|
|
@@ -3939,7 +3961,7 @@ function StreamStatusPanel({
|
|
|
3939
3961
|
}
|
|
3940
3962
|
return /* @__PURE__ */ jsxs16("div", { className: classNames14("ls-streamstatus", className), id, children: [
|
|
3941
3963
|
hasStatus ? infoTooltip(
|
|
3942
|
-
/* @__PURE__ */ jsx27("div", { className: "ls-streamstatus__status", style: statusTooltip != null ? { cursor: "help" } : void 0, children: statusSlot ?? /* @__PURE__ */ jsxs16(
|
|
3964
|
+
/* @__PURE__ */ jsx27("div", { className: "ls-streamstatus__status", style: statusTooltip != null ? { cursor: "help" } : void 0, children: statusSlot ?? /* @__PURE__ */ jsxs16(Fragment8, { children: [
|
|
3943
3965
|
/* @__PURE__ */ jsxs16("span", { className: "ls-streamstatus__indicator", children: [
|
|
3944
3966
|
online ? /* @__PURE__ */ jsx27("span", { className: "ls-streamstatus__indicator-ping" }) : null,
|
|
3945
3967
|
/* @__PURE__ */ jsx27("span", { className: classNames14("ls-streamstatus__indicator-dot", { "ls-streamstatus__indicator-dot--online": online }) })
|
|
@@ -4087,7 +4109,7 @@ ViewersList.displayName = "ViewersList";
|
|
|
4087
4109
|
|
|
4088
4110
|
// src/components/ShortcutDockGrid/ShortcutDockGrid.tsx
|
|
4089
4111
|
import classNames16 from "classnames";
|
|
4090
|
-
import { Fragment as
|
|
4112
|
+
import { Fragment as Fragment10, jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4091
4113
|
var softAccent = (color) => /^#[0-9a-fA-F]{6}$/.test(color) ? `${color}66` : color;
|
|
4092
4114
|
function ShortcutDockGrid({
|
|
4093
4115
|
buttons,
|
|
@@ -4151,7 +4173,7 @@ function ShortcutDockGrid({
|
|
|
4151
4173
|
onTrigger?.(button.id);
|
|
4152
4174
|
}
|
|
4153
4175
|
},
|
|
4154
|
-
children: button.content ?? /* @__PURE__ */ jsxs18(
|
|
4176
|
+
children: button.content ?? /* @__PURE__ */ jsxs18(Fragment10, { children: [
|
|
4155
4177
|
button.image ? /* @__PURE__ */ jsx29("img", { className: "ls-shortcutdock__btn-image", src: button.image, alt: "" }) : button.icon != null ? /* @__PURE__ */ jsx29("span", { className: "ls-shortcutdock__icon", children: button.icon }) : null,
|
|
4156
4178
|
button.label != null ? /* @__PURE__ */ jsx29("span", { className: "ls-shortcutdock__label", children: button.label }) : null
|
|
4157
4179
|
] })
|
|
@@ -4182,7 +4204,7 @@ ShortcutDockGrid.displayName = "ShortcutDockGrid";
|
|
|
4182
4204
|
// src/components/GoalsList/GoalsList.tsx
|
|
4183
4205
|
import Tooltip6 from "@mui/material/Tooltip";
|
|
4184
4206
|
import classNames17 from "classnames";
|
|
4185
|
-
import { Fragment as
|
|
4207
|
+
import { Fragment as Fragment11, jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4186
4208
|
var GOAL_TOOLTIP_SX = {
|
|
4187
4209
|
backgroundColor: "#1b1834",
|
|
4188
4210
|
border: "1px solid #393853",
|
|
@@ -4216,7 +4238,7 @@ function GoalsList({ goals, formatValue, showPercent = true, emptyText = "No goa
|
|
|
4216
4238
|
/* @__PURE__ */ jsxs19("div", { className: "ls-goals__head", children: [
|
|
4217
4239
|
goal.icon != null ? /* @__PURE__ */ jsx30("span", { className: "ls-goals__icon", children: goal.icon }) : null,
|
|
4218
4240
|
/* @__PURE__ */ jsx30("span", { className: "ls-goals__label", children: goal.label }),
|
|
4219
|
-
/* @__PURE__ */ jsx30("span", { className: "ls-goals__value", children: goal.valueText ?? /* @__PURE__ */ jsxs19(
|
|
4241
|
+
/* @__PURE__ */ jsx30("span", { className: "ls-goals__value", children: goal.valueText ?? /* @__PURE__ */ jsxs19(Fragment11, { children: [
|
|
4220
4242
|
fmt(goal.current ?? 0, goal),
|
|
4221
4243
|
" ",
|
|
4222
4244
|
/* @__PURE__ */ jsxs19("span", { className: "ls-goals__target", children: [
|
|
@@ -4268,7 +4290,7 @@ function TickBoxIcon({ className }) {
|
|
|
4268
4290
|
}
|
|
4269
4291
|
|
|
4270
4292
|
// src/components/ModQueueItem/ModQueueItem.tsx
|
|
4271
|
-
import { Fragment as
|
|
4293
|
+
import { Fragment as Fragment12, jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4272
4294
|
function ModQueueItem({
|
|
4273
4295
|
username,
|
|
4274
4296
|
avatar,
|
|
@@ -4302,7 +4324,7 @@ function ModQueueItem({
|
|
|
4302
4324
|
"\u201D"
|
|
4303
4325
|
] }) : null
|
|
4304
4326
|
] }),
|
|
4305
|
-
/* @__PURE__ */ jsx32("div", { className: "ls-modqueue-item__actions", children: actions ?? /* @__PURE__ */ jsxs21(
|
|
4327
|
+
/* @__PURE__ */ jsx32("div", { className: "ls-modqueue-item__actions", children: actions ?? /* @__PURE__ */ jsxs21(Fragment12, { children: [
|
|
4306
4328
|
/* @__PURE__ */ jsx32(IconButton, { className: "ls-modqueue-item__iconbtn", disableRipple: true, onClick: onDeny, "aria-label": "Deny", children: /* @__PURE__ */ jsx32(CrossBoxIcon, { className: "ls-modqueue-item__action-icon" }) }),
|
|
4307
4329
|
/* @__PURE__ */ jsx32(IconButton, { className: "ls-modqueue-item__iconbtn", disableRipple: true, onClick: onApprove, "aria-label": "Approve", children: /* @__PURE__ */ jsx32(TickBoxIcon, { className: "ls-modqueue-item__action-icon" }) })
|
|
4308
4330
|
] }) })
|
|
@@ -4357,7 +4379,7 @@ function EmptyModQueueIcon({ className }) {
|
|
|
4357
4379
|
}
|
|
4358
4380
|
|
|
4359
4381
|
// src/components/ModQueueList/ModQueueList.tsx
|
|
4360
|
-
import { Fragment as
|
|
4382
|
+
import { Fragment as Fragment13, jsx as jsx34, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4361
4383
|
var matches = (item, q) => {
|
|
4362
4384
|
if (!q) {
|
|
4363
4385
|
return true;
|
|
@@ -4409,7 +4431,7 @@ function ModQueueList({
|
|
|
4409
4431
|
filtered.length === 0 ? /* @__PURE__ */ jsxs23("div", { className: "ls-modqueue__empty", children: [
|
|
4410
4432
|
/* @__PURE__ */ jsx34("span", { className: "ls-modqueue__empty-icon", children: emptyIcon ?? /* @__PURE__ */ jsx34(EmptyModQueueIcon, {}) }),
|
|
4411
4433
|
/* @__PURE__ */ jsx34("span", { children: emptyText })
|
|
4412
|
-
] }) : /* @__PURE__ */ jsxs23(
|
|
4434
|
+
] }) : /* @__PURE__ */ jsxs23(Fragment13, { children: [
|
|
4413
4435
|
canModerate && (onDeny || onApprove) ? /* @__PURE__ */ jsxs23("div", { className: "ls-modqueue__bulk", children: [
|
|
4414
4436
|
onDeny ? /* @__PURE__ */ jsxs23(ButtonBase, { className: "ls-modqueue__bulk-btn ls-modqueue__bulk-btn--deny", disableRipple: true, onClick: () => onDeny("all"), children: [
|
|
4415
4437
|
/* @__PURE__ */ jsx34(CrossBoxIcon, { className: "ls-modqueue__bulk-icon" }),
|