@livechat/design-system-react-components 1.16.3 → 1.16.5
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/components/ActionMenu/ActionMenu.d.ts +2 -5
- package/dist/components/Alert/Alert.d.ts +2 -5
- package/dist/components/Alert/Alert.stories.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +2 -5
- package/dist/components/Avatar/Avatar.stories.d.ts +1 -1
- package/dist/components/Button/Button.stories.d.ts +1 -1
- package/dist/components/Card/Card.stories.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +4 -4
- package/dist/components/DatePicker/RangeDatePicker.stories.d.ts +2 -2
- package/dist/components/FieldGroup/FieldGroup.stories.d.ts +1 -1
- package/dist/components/FileUploadProgress/FileUploadProgress.stories.d.ts +3 -3
- package/dist/components/Form/Form.stories.d.ts +1 -1
- package/dist/components/FormField/FormField.stories.d.ts +3 -3
- package/dist/components/FormGroup/FormGroup.stories.d.ts +1 -1
- package/dist/components/Icon/Icon.stories.d.ts +1 -1
- package/dist/components/Input/Input.stories.d.ts +1 -1
- package/dist/components/Link/Link.stories.d.ts +1 -1
- package/dist/components/Loader/Loader.stories.d.ts +1 -1
- package/dist/components/Modal/Modal.stories.d.ts +5 -5
- package/dist/components/NumericInput/NumericInput.stories.d.ts +6 -6
- package/dist/components/Picker/Picker.stories.d.ts +2 -2
- package/dist/components/Picker/types.d.ts +2 -5
- package/dist/components/Popover/Popover.stories.d.ts +1 -1
- package/dist/components/Progress/ProgressBar.stories.d.ts +1 -1
- package/dist/components/Progress/ProgressCircle.stories.d.ts +1 -1
- package/dist/components/PromoBanner/PromoBanner.stories.d.ts +6 -6
- package/dist/components/RadioButton/RadioButton.stories.d.ts +1 -1
- package/dist/components/Search/Search.stories.d.ts +2 -2
- package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +1 -1
- package/dist/components/Switch/Switch.stories.d.ts +1 -1
- package/dist/components/Tab/Tab.stories.d.ts +1 -19
- package/dist/components/Tab/TabsWrapper.stories.d.ts +1 -1
- package/dist/components/Tag/Tag.stories.d.ts +1 -1
- package/dist/components/TagInput/TagInput.stories.d.ts +1 -1
- package/dist/components/Textarea/Textarea.stories.d.ts +1 -1
- package/dist/components/Toast/Toast.stories.d.ts +1 -1
- package/dist/components/Toast/ToastWrapper.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/components/UploadBar/UploadBar.stories.d.ts +1 -1
- package/dist/{stories/components → docs/components/Icons}/TablerIconsShowcase.d.ts +1 -1
- package/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +803 -793
- package/dist/preview-stats.json +715 -715
- package/dist/style.css +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/types.d.ts +11 -0
- package/package.json +16 -14
- package/dist/utils/constants.d.ts +0 -1
- /package/dist/{stories/components → docs/components/BlockColumns}/BlockColumns.d.ts +0 -0
- /package/dist/{stories → docs}/components/ColorTokens.d.ts +0 -0
- /package/dist/{stories/components → docs/components/Radius}/Radius.d.ts +0 -0
- /package/dist/{stories/components → docs/components/Radius}/RadiusExamples.d.ts +0 -0
- /package/dist/{stories/components → docs/components/Shadow}/Shadow.d.ts +0 -0
- /package/dist/{stories/components → docs/components/Shadow}/ShadowExamples.d.ts +0 -0
- /package/dist/{stories/components → docs/components/Spacing}/Spacing.d.ts +0 -0
- /package/dist/{stories/components → docs/components/Spacing}/SpacingExamples.d.ts +0 -0
- /package/dist/{stories → docs}/components/StoryDescriptor.d.ts +0 -0
- /package/dist/{stories → docs}/components/Transition/TransitionTable.d.ts +0 -0
- /package/dist/{stories → docs}/components/Transition/transitionDelay.d.ts +0 -0
- /package/dist/{stories → docs}/components/Transition/transitionDuration.d.ts +0 -0
- /package/dist/{stories → docs}/components/Transition/transitionTiming.d.ts +0 -0
package/dist/dsrc.es.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
var Tr = Object.defineProperty, Br = Object.defineProperties;
|
|
2
2
|
var Pr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var At = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var fa = (t, a, r) => a in t ? Tr(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r,
|
|
4
|
+
var Oa = Object.prototype.hasOwnProperty, Ha = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var fa = (t, a, r) => a in t ? Tr(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r, k = (t, a) => {
|
|
6
6
|
for (var r in a || (a = {}))
|
|
7
|
-
|
|
7
|
+
Oa.call(a, r) && fa(t, r, a[r]);
|
|
8
8
|
if (At)
|
|
9
9
|
for (var r of At(a))
|
|
10
|
-
|
|
10
|
+
Ha.call(a, r) && fa(t, r, a[r]);
|
|
11
11
|
return t;
|
|
12
12
|
}, N = (t, a) => Br(t, Pr(a));
|
|
13
13
|
var A = (t, a) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var _ in t)
|
|
16
|
-
|
|
16
|
+
Oa.call(t, _) && a.indexOf(_) < 0 && (r[_] = t[_]);
|
|
17
17
|
if (t != null && At)
|
|
18
18
|
for (var _ of At(t))
|
|
19
|
-
a.indexOf(_) < 0 &&
|
|
19
|
+
a.indexOf(_) < 0 && Ha.call(t, _) && (r[_] = t[_]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
22
|
var va = (t, a, r) => (fa(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
23
23
|
import * as e from "react";
|
|
24
24
|
import { useReducer as Ar, useRef as Ir, useEffect as ut, useCallback as It, useMemo as Ft } from "react";
|
|
25
|
-
import { Check as Qt, Close as Te, ChevronLeft as
|
|
25
|
+
import { Check as Qt, Close as Te, ChevronLeft as cr, ChevronDown as Bt, Info as Ia, Warning as nr, CheckCircle as sr, Block as ir, Person as Fr, ChevronUp as Xt, DoubleArrowLeft as Mr, ChevronRight as dr, DoubleArrowRight as Rr, VisibilityOn as Lr, VisibilityOff as Or, Search as Hr, LockBlackFilled as zr, Refresh as Gr, Error as Ur } from "@livechat/design-system-icons";
|
|
26
26
|
import u from "clsx";
|
|
27
|
-
import { useFloating as jt, offset as Zt, flip as ea, autoUpdate as ta, useClick as aa, useDismiss as ra, useRole as _a, useInteractions as oa, useTransitionStyles as ur, shift as
|
|
27
|
+
import { useFloating as jt, offset as Zt, flip as ea, autoUpdate as ta, useClick as aa, useDismiss as ra, useRole as _a, useInteractions as oa, useTransitionStyles as ur, shift as Fa, arrow as Wr, useHover as Vr, safePolygon as Yr, useFocus as qr, useTransitionStatus as Kr, FloatingFocusManager as Sa, useFloatingNodeId as mr, size as Jr, useListNavigation as Qr, FloatingNode as pr, FloatingPortal as Xr, useFloatingParentNodeId as jr, FloatingTree as Zr } from "@floating-ui/react";
|
|
28
28
|
import gr from "lodash.debounce";
|
|
29
|
-
import { getContrast as
|
|
29
|
+
import { getContrast as Ma } from "polished";
|
|
30
30
|
import e_ from "react-day-picker";
|
|
31
|
-
import { subMonths as pt, differenceInCalendarMonths as
|
|
31
|
+
import { subMonths as pt, differenceInCalendarMonths as za, addMonths as Ga, isSameMonth as Da, isSameDay as Ta, isAfter as Ba, differenceInCalendarDays as br } from "date-fns";
|
|
32
32
|
import * as fr from "react-dom";
|
|
33
33
|
import { cx as t_ } from "@emotion/css";
|
|
34
34
|
import { Virtuoso as a_ } from "react-virtuoso";
|
|
35
|
-
import
|
|
35
|
+
import Ua from "lodash.escape";
|
|
36
36
|
import { TransitionGroup as vr, CSSTransition as hr } from "react-transition-group";
|
|
37
37
|
const Zl = {
|
|
38
38
|
Background: "--background",
|
|
@@ -374,7 +374,7 @@ const Zl = {
|
|
|
374
374
|
comma: ",",
|
|
375
375
|
arrowUp: "ArrowUp",
|
|
376
376
|
arrowDown: "ArrowDown"
|
|
377
|
-
}, r_ = "lc-Icon-module__icon___tw31R",
|
|
377
|
+
}, r_ = "lc-Icon-module__icon___tw31R", Wa = {
|
|
378
378
|
icon: r_,
|
|
379
379
|
"icon--primary": "lc-Icon-module__icon--primary___JJnBV",
|
|
380
380
|
"icon--subtle": "lc-Icon-module__icon--subtle___sZIzL",
|
|
@@ -429,29 +429,29 @@ const Zl = {
|
|
|
429
429
|
width: 32,
|
|
430
430
|
height: 32
|
|
431
431
|
}
|
|
432
|
-
},
|
|
433
|
-
const
|
|
432
|
+
}, Va = "icon", T = (t) => {
|
|
433
|
+
const i = t, {
|
|
434
434
|
source: a,
|
|
435
435
|
size: r = "medium",
|
|
436
436
|
kind: _,
|
|
437
437
|
disabled: o,
|
|
438
438
|
className: l,
|
|
439
439
|
customColor: c
|
|
440
|
-
} =
|
|
440
|
+
} = i, d = A(i, [
|
|
441
441
|
"source",
|
|
442
442
|
"size",
|
|
443
443
|
"kind",
|
|
444
444
|
"disabled",
|
|
445
445
|
"className",
|
|
446
446
|
"customColor"
|
|
447
|
-
]),
|
|
447
|
+
]), n = e.createElement(a, N(k({}, __[r]), {
|
|
448
448
|
color: c
|
|
449
|
-
})),
|
|
449
|
+
})), s = u(
|
|
450
450
|
l,
|
|
451
|
-
Va
|
|
452
|
-
_ &&
|
|
451
|
+
Wa[Va],
|
|
452
|
+
_ && Wa[`${Va}--${o ? "disabled--" : ""}${_}`]
|
|
453
453
|
);
|
|
454
|
-
return /* @__PURE__ */ e.createElement("span", N(
|
|
454
|
+
return /* @__PURE__ */ e.createElement("span", N(k({}, d), { className: s }), n);
|
|
455
455
|
}, Ve = {
|
|
456
456
|
"action-menu": "lc-ActionMenu-module__action-menu___K2UwW",
|
|
457
457
|
"action-menu__trigger-button": "lc-ActionMenu-module__action-menu__trigger-button___tBrz5",
|
|
@@ -472,12 +472,12 @@ const Zl = {
|
|
|
472
472
|
openedOnInit: l = !1,
|
|
473
473
|
keepOpenOnClick: c,
|
|
474
474
|
flipOptions: d,
|
|
475
|
-
visible:
|
|
476
|
-
onClose:
|
|
477
|
-
onOpen:
|
|
475
|
+
visible: n,
|
|
476
|
+
onClose: s,
|
|
477
|
+
onOpen: i,
|
|
478
478
|
floatingStrategy: m,
|
|
479
479
|
selectedOptions: g
|
|
480
|
-
} = f,
|
|
480
|
+
} = f, v = A(f, [
|
|
481
481
|
"className",
|
|
482
482
|
"triggerClassName",
|
|
483
483
|
"options",
|
|
@@ -492,107 +492,108 @@ const Zl = {
|
|
|
492
492
|
"floatingStrategy",
|
|
493
493
|
"selectedOptions"
|
|
494
494
|
]);
|
|
495
|
-
const p =
|
|
496
|
-
x ? (
|
|
497
|
-
}, { x: F, y: S, strategy:
|
|
495
|
+
const p = n !== void 0, [y, h] = e.useState(l), E = e.useRef(-1), w = e.useRef(null), x = p ? n : y, $ = () => {
|
|
496
|
+
x ? (s == null || s(), !p && h(!1)) : (i == null || i(), !p && h(!0));
|
|
497
|
+
}, { x: F, y: S, strategy: R, refs: B, context: L } = jt({
|
|
498
498
|
middleware: [Zt(4), ea(d)],
|
|
499
499
|
placement: o,
|
|
500
500
|
open: x,
|
|
501
501
|
strategy: m,
|
|
502
502
|
onOpenChange: $,
|
|
503
503
|
whileElementsMounted: ta
|
|
504
|
-
}), j = aa(
|
|
504
|
+
}), j = aa(L), $e = ra(L, {
|
|
505
505
|
enabled: x
|
|
506
|
-
}), de = _a(
|
|
506
|
+
}), de = _a(L), { getReferenceProps: Be, getFloatingProps: Pe } = oa([
|
|
507
507
|
j,
|
|
508
508
|
$e,
|
|
509
509
|
de
|
|
510
|
-
]), { styles: ve } = ur(
|
|
511
|
-
initial: ({ side:
|
|
510
|
+
]), { styles: ve } = ur(L, {
|
|
511
|
+
initial: ({ side: P }) => k({
|
|
512
512
|
opacity: 0
|
|
513
|
-
},
|
|
513
|
+
}, P === "bottom" && {
|
|
514
514
|
marginTop: -10
|
|
515
|
-
} ||
|
|
515
|
+
} || P === "top" && {
|
|
516
516
|
marginTop: 10
|
|
517
|
-
} ||
|
|
517
|
+
} || P === "left" && {
|
|
518
518
|
marginLeft: 10
|
|
519
|
-
} ||
|
|
519
|
+
} || P === "right" && {
|
|
520
520
|
marginLeft: -10
|
|
521
521
|
})
|
|
522
|
-
}), Ae = (
|
|
522
|
+
}), Ae = (P) => {
|
|
523
523
|
var Q, Re;
|
|
524
524
|
const W = E.current;
|
|
525
|
-
let K = W +
|
|
525
|
+
let K = W + P;
|
|
526
526
|
for (; (Q = r[K]) != null && Q.disabled || (Re = r[K]) != null && Re.groupHeader; )
|
|
527
|
-
if (K +=
|
|
527
|
+
if (K += P, K === -1) {
|
|
528
528
|
K = W;
|
|
529
529
|
break;
|
|
530
530
|
}
|
|
531
531
|
return K;
|
|
532
|
-
}, Me = (
|
|
532
|
+
}, Me = (P) => {
|
|
533
533
|
var Q, Re;
|
|
534
|
-
E.current = Ae(
|
|
534
|
+
E.current = Ae(P);
|
|
535
535
|
const W = (Q = w.current) == null ? void 0 : Q.children, K = W && ((Re = W[E.current]) == null ? void 0 : Re.children[0]);
|
|
536
536
|
return K == null ? void 0 : K.focus();
|
|
537
|
-
}, Je = (
|
|
538
|
-
|
|
537
|
+
}, Je = (P) => {
|
|
538
|
+
P.key === re.arrowUp && E.current > 0 && (P.preventDefault(), Me(-1)), P.key === re.arrowDown && E.current + 1 < r.length && (P.preventDefault(), Me(1));
|
|
539
539
|
};
|
|
540
540
|
e.useEffect(() => {
|
|
541
541
|
if (x)
|
|
542
542
|
return document.addEventListener("keydown", Je), () => document.removeEventListener("keydown", Je);
|
|
543
543
|
E.current = -1;
|
|
544
544
|
}, [x, Je]);
|
|
545
|
-
const at = (
|
|
546
|
-
E.current =
|
|
547
|
-
}, Qe = (
|
|
545
|
+
const at = (P, W) => {
|
|
546
|
+
E.current = P, W == null || W(), !p && !c && (h(!1), s == null || s());
|
|
547
|
+
}, Qe = (P, W) => P.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
548
548
|
"li",
|
|
549
549
|
{
|
|
550
|
-
key:
|
|
550
|
+
key: P.key,
|
|
551
551
|
role: "none",
|
|
552
552
|
className: Ve[`${Ye}__list__group-header`]
|
|
553
553
|
},
|
|
554
|
-
|
|
555
|
-
) : /* @__PURE__ */ e.createElement("li", { key:
|
|
554
|
+
P.element
|
|
555
|
+
) : /* @__PURE__ */ e.createElement("li", { key: P.key, role: "none" }, /* @__PURE__ */ e.createElement(
|
|
556
556
|
"button",
|
|
557
557
|
{
|
|
558
|
-
"data-testid":
|
|
558
|
+
"data-testid": P.key,
|
|
559
559
|
tabIndex: -1,
|
|
560
|
-
key:
|
|
561
|
-
disabled:
|
|
562
|
-
onClick: () => at(W,
|
|
560
|
+
key: P.key,
|
|
561
|
+
disabled: P.disabled,
|
|
562
|
+
onClick: () => at(W, P.onClick),
|
|
563
563
|
role: "menuitem",
|
|
564
564
|
className: u(Ve[`${Ye}__list__item`], {
|
|
565
|
-
[Ve[`${Ye}__list__item--disabled`]]:
|
|
566
|
-
[Ve[`${Ye}__list__item--with-divider`]]:
|
|
567
|
-
[Ve[`${Ye}__list__item--selected`]]: g == null ? void 0 : g.includes(
|
|
565
|
+
[Ve[`${Ye}__list__item--disabled`]]: P.disabled,
|
|
566
|
+
[Ve[`${Ye}__list__item--with-divider`]]: P.withDivider,
|
|
567
|
+
[Ve[`${Ye}__list__item--selected`]]: g == null ? void 0 : g.includes(P.key)
|
|
568
568
|
})
|
|
569
569
|
},
|
|
570
|
-
|
|
571
|
-
(g == null ? void 0 : g.includes(
|
|
570
|
+
P.element,
|
|
571
|
+
(g == null ? void 0 : g.includes(P.key)) && /* @__PURE__ */ e.createElement("div", { className: Ve[`${Ye}__list__item__icon`] }, /* @__PURE__ */ e.createElement(T, { source: Qt, kind: "action-primary" }))
|
|
572
572
|
));
|
|
573
573
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
574
574
|
"div",
|
|
575
|
-
N(
|
|
575
|
+
N(k({
|
|
576
|
+
"aria-label": "Toggle menu",
|
|
576
577
|
"data-testid": "action-menu-trigger-button",
|
|
577
|
-
ref:
|
|
578
|
+
ref: B.setReference
|
|
578
579
|
}, Be()), {
|
|
579
580
|
className: a
|
|
580
581
|
}),
|
|
581
582
|
_
|
|
582
583
|
), x && /* @__PURE__ */ e.createElement(
|
|
583
584
|
"div",
|
|
584
|
-
|
|
585
|
-
ref:
|
|
585
|
+
k({
|
|
586
|
+
ref: B.setFloating,
|
|
586
587
|
className: Ve[Ye],
|
|
587
|
-
style:
|
|
588
|
-
position:
|
|
588
|
+
style: k({
|
|
589
|
+
position: R,
|
|
589
590
|
top: S != null ? S : "",
|
|
590
591
|
left: F != null ? F : ""
|
|
591
592
|
}, ve)
|
|
592
593
|
}, Pe()),
|
|
593
594
|
/* @__PURE__ */ e.createElement(
|
|
594
595
|
"ul",
|
|
595
|
-
N(
|
|
596
|
+
N(k({}, v), {
|
|
596
597
|
className: u(Ve[`${Ye}__list`], t),
|
|
597
598
|
role: "menu",
|
|
598
599
|
ref: w
|
|
@@ -638,11 +639,11 @@ const Zl = {
|
|
|
638
639
|
]);
|
|
639
640
|
return e.createElement(
|
|
640
641
|
t || c_[a],
|
|
641
|
-
|
|
642
|
+
k({ className: u(mt[`heading-${a}`], _) }, o),
|
|
642
643
|
r
|
|
643
644
|
);
|
|
644
|
-
}, M = (
|
|
645
|
-
var
|
|
645
|
+
}, M = (s) => {
|
|
646
|
+
var i = s, {
|
|
646
647
|
as: t = "p",
|
|
647
648
|
size: a = "md",
|
|
648
649
|
caps: r = !1,
|
|
@@ -651,7 +652,7 @@ const Zl = {
|
|
|
651
652
|
strike: l = !1,
|
|
652
653
|
children: c,
|
|
653
654
|
className: d
|
|
654
|
-
} =
|
|
655
|
+
} = i, n = A(i, [
|
|
655
656
|
"as",
|
|
656
657
|
"size",
|
|
657
658
|
"caps",
|
|
@@ -664,7 +665,7 @@ const Zl = {
|
|
|
664
665
|
const m = r ? "caps" : `paragraph-${a}`;
|
|
665
666
|
return e.createElement(
|
|
666
667
|
t,
|
|
667
|
-
|
|
668
|
+
k({
|
|
668
669
|
className: u(
|
|
669
670
|
{
|
|
670
671
|
[mt[`${m}`]]: !0,
|
|
@@ -674,7 +675,7 @@ const Zl = {
|
|
|
674
675
|
},
|
|
675
676
|
d
|
|
676
677
|
)
|
|
677
|
-
},
|
|
678
|
+
}, n),
|
|
678
679
|
c
|
|
679
680
|
);
|
|
680
681
|
}, cc = (l) => {
|
|
@@ -691,7 +692,7 @@ const Zl = {
|
|
|
691
692
|
]);
|
|
692
693
|
return e.createElement(
|
|
693
694
|
t,
|
|
694
|
-
|
|
695
|
+
k({ className: u(mt[`display-${a}`], _) }, o),
|
|
695
696
|
r
|
|
696
697
|
);
|
|
697
698
|
}, bt = {
|
|
@@ -719,7 +720,7 @@ const Zl = {
|
|
|
719
720
|
"loader__spinner-circle": "lc-Loader-module__loader__spinner-circle___ApBUO",
|
|
720
721
|
rotate: d_,
|
|
721
722
|
loader__label: u_
|
|
722
|
-
}, kr = "loader",
|
|
723
|
+
}, kr = "loader", Ya = `${kr}__spinner`, Ra = ({
|
|
723
724
|
primaryColor: t,
|
|
724
725
|
secondaryColor: a,
|
|
725
726
|
label: r,
|
|
@@ -728,7 +729,7 @@ const Zl = {
|
|
|
728
729
|
}) => /* @__PURE__ */ e.createElement("div", { className: u(vt[kr], _) }, /* @__PURE__ */ e.createElement(
|
|
729
730
|
"div",
|
|
730
731
|
{
|
|
731
|
-
className: u(vt[
|
|
732
|
+
className: u(vt[Ya], vt[`${Ya}--${o}`])
|
|
732
733
|
},
|
|
733
734
|
/* @__PURE__ */ e.createElement(
|
|
734
735
|
"div",
|
|
@@ -793,12 +794,12 @@ const Zl = {
|
|
|
793
794
|
size: l = "medium",
|
|
794
795
|
icon: c = null,
|
|
795
796
|
iconPosition: d = "left",
|
|
796
|
-
loaderLabel:
|
|
797
|
-
className:
|
|
798
|
-
children:
|
|
797
|
+
loaderLabel: n,
|
|
798
|
+
className: s,
|
|
799
|
+
children: i,
|
|
799
800
|
href: m,
|
|
800
801
|
onClick: g
|
|
801
|
-
} = p,
|
|
802
|
+
} = p, v = A(p, [
|
|
802
803
|
"loading",
|
|
803
804
|
"disabled",
|
|
804
805
|
"type",
|
|
@@ -813,34 +814,34 @@ const Zl = {
|
|
|
813
814
|
"href",
|
|
814
815
|
"onClick"
|
|
815
816
|
]);
|
|
816
|
-
const y = t || a,
|
|
817
|
-
|
|
817
|
+
const y = t || a, h = !i && c, E = ["text", "link", "link-light"].includes(o), w = m ? "a" : "button", x = u(
|
|
818
|
+
s,
|
|
818
819
|
pe[ge],
|
|
819
820
|
pe[`${ge}--${o}`],
|
|
820
821
|
pe[`${ge}--${l}`],
|
|
821
822
|
{
|
|
822
823
|
[pe[`${ge}--loading`]]: t,
|
|
823
824
|
[pe[`${ge}--full-width`]]: _,
|
|
824
|
-
[pe[`${ge}--with-${d}-icon`]]: c && !
|
|
825
|
-
[pe[`${ge}--icon-only`]]:
|
|
826
|
-
[pe[`${ge}--icon-only--bg`]]:
|
|
825
|
+
[pe[`${ge}--with-${d}-icon`]]: c && !h && !E,
|
|
826
|
+
[pe[`${ge}--icon-only`]]: h,
|
|
827
|
+
[pe[`${ge}--icon-only--bg`]]: h && E,
|
|
827
828
|
[pe[`${ge}--disabled`]]: y
|
|
828
829
|
}
|
|
829
830
|
);
|
|
830
831
|
return /* @__PURE__ */ e.createElement(
|
|
831
832
|
w,
|
|
832
|
-
|
|
833
|
+
k(k({
|
|
833
834
|
ref: b,
|
|
834
835
|
className: x,
|
|
835
836
|
"aria-disabled": y,
|
|
836
837
|
type: r,
|
|
837
838
|
disabled: y
|
|
838
|
-
}, !y && { href: m, onClick: g }),
|
|
839
|
+
}, !y && { href: m, onClick: g }), v),
|
|
839
840
|
t && /* @__PURE__ */ e.createElement(
|
|
840
|
-
|
|
841
|
-
|
|
841
|
+
Ra,
|
|
842
|
+
k({
|
|
842
843
|
size: "small",
|
|
843
|
-
label:
|
|
844
|
+
label: n,
|
|
844
845
|
className: pe[`${ge}__loader`]
|
|
845
846
|
}, m_(o))
|
|
846
847
|
),
|
|
@@ -852,7 +853,7 @@ const Zl = {
|
|
|
852
853
|
),
|
|
853
854
|
disabled: a
|
|
854
855
|
}),
|
|
855
|
-
/* @__PURE__ */ e.createElement("div", { className: pe[`${ge}__content`] },
|
|
856
|
+
/* @__PURE__ */ e.createElement("div", { className: pe[`${ge}__content`] }, i)
|
|
856
857
|
);
|
|
857
858
|
}
|
|
858
859
|
);
|
|
@@ -913,36 +914,36 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
913
914
|
kind: l,
|
|
914
915
|
placement: c = "bottom",
|
|
915
916
|
isVisible: d,
|
|
916
|
-
fullSpaceContent:
|
|
917
|
-
onClose:
|
|
918
|
-
onOpen:
|
|
917
|
+
fullSpaceContent: n,
|
|
918
|
+
onClose: s,
|
|
919
|
+
onOpen: i,
|
|
919
920
|
withFadeAnimation: m = !0,
|
|
920
921
|
transitionDuration: g = 200,
|
|
921
|
-
hoverOnDuration:
|
|
922
|
+
hoverOnDuration: v,
|
|
922
923
|
hoverOffDuration: b,
|
|
923
924
|
transitionDelay: f = 0,
|
|
924
925
|
hoverOnDelay: p,
|
|
925
926
|
hoverOffDelay: y,
|
|
926
|
-
triggerOnClick:
|
|
927
|
+
triggerOnClick: h = !1,
|
|
927
928
|
offsetMainAxis: E = 8,
|
|
928
929
|
referenceElement: w,
|
|
929
930
|
activationThreshold: x = 0,
|
|
930
931
|
useDismissHookProps: $,
|
|
931
932
|
useClickHookProps: F,
|
|
932
933
|
hoverOutDelayTimeout: S = 100,
|
|
933
|
-
arrowOffsetY:
|
|
934
|
-
arrowOffsetX:
|
|
935
|
-
closeOnTriggerBlur:
|
|
934
|
+
arrowOffsetY: R,
|
|
935
|
+
arrowOffsetX: B,
|
|
936
|
+
closeOnTriggerBlur: L = !1,
|
|
936
937
|
floatingStrategy: j
|
|
937
938
|
}) => {
|
|
938
939
|
const $e = d !== void 0, [de, Be] = e.useState(!1), Pe = e.useRef(null), ve = $e ? d : de, Ae = l || o, Me = u(
|
|
939
940
|
C[Mt],
|
|
940
941
|
a,
|
|
941
942
|
Ae && C[`${Mt}--${Ae}`],
|
|
942
|
-
|
|
943
|
+
n && C[`${Mt}--full-space`]
|
|
943
944
|
), Je = typeof _ == "function", at = (ue) => {
|
|
944
|
-
ue !== ve && (ue ?
|
|
945
|
-
}, Qe = (ue) => m ? ue != null ? ue : g : 0,
|
|
945
|
+
ue !== ve && (ue ? i == null || i() : s == null || s(), !$e && Be(ue));
|
|
946
|
+
}, Qe = (ue) => m ? ue != null ? ue : g : 0, P = (ue) => ue != null ? ue : f, {
|
|
946
947
|
floatingStyles: W,
|
|
947
948
|
refs: K,
|
|
948
949
|
context: Q,
|
|
@@ -951,7 +952,7 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
951
952
|
} = jt({
|
|
952
953
|
middleware: [
|
|
953
954
|
Zt({ mainAxis: E }),
|
|
954
|
-
|
|
955
|
+
Fa(),
|
|
955
956
|
ea(),
|
|
956
957
|
Wr({ element: Pe })
|
|
957
958
|
],
|
|
@@ -964,14 +965,14 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
964
965
|
move: !1,
|
|
965
966
|
restMs: x,
|
|
966
967
|
delay: {
|
|
967
|
-
open:
|
|
968
|
-
close:
|
|
968
|
+
open: P(p),
|
|
969
|
+
close: P(y || S)
|
|
969
970
|
},
|
|
970
|
-
enabled: !
|
|
971
|
-
handleClose:
|
|
971
|
+
enabled: !h,
|
|
972
|
+
handleClose: L ? null : Yr()
|
|
972
973
|
}), sa = qr(Q), ia = ra(Q, $), da = _a(Q, { role: "tooltip" }), ua = aa(Q, F), { isMounted: ma, styles: pa } = ur(Q, {
|
|
973
974
|
duration: {
|
|
974
|
-
open: Qe(
|
|
975
|
+
open: Qe(v),
|
|
975
976
|
close: Qe(b)
|
|
976
977
|
}
|
|
977
978
|
}), { status: gt } = Kr(Q), { getReferenceProps: ga, getFloatingProps: ba } = oa([
|
|
@@ -985,7 +986,7 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
985
986
|
w && K.setReference(w);
|
|
986
987
|
}, [K.setReference, w]), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
987
988
|
"div",
|
|
988
|
-
N(
|
|
989
|
+
N(k({
|
|
989
990
|
ref: K.setReference
|
|
990
991
|
}, ga()), {
|
|
991
992
|
className: r
|
|
@@ -993,9 +994,9 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
993
994
|
Je ? _() : _
|
|
994
995
|
), ma && /* @__PURE__ */ e.createElement(
|
|
995
996
|
"div",
|
|
996
|
-
N(
|
|
997
|
+
N(k({
|
|
997
998
|
ref: K.setFloating,
|
|
998
|
-
style:
|
|
999
|
+
style: k(k({}, W), pa),
|
|
999
1000
|
className: Me
|
|
1000
1001
|
}, ba()), {
|
|
1001
1002
|
"data-status": gt
|
|
@@ -1007,9 +1008,9 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1007
1008
|
ref: Pe,
|
|
1008
1009
|
className: C[`${Mt}__arrow`],
|
|
1009
1010
|
"aria-placement": ca,
|
|
1010
|
-
style:
|
|
1011
|
-
|
|
1012
|
-
|
|
1011
|
+
style: k({}, f_(
|
|
1012
|
+
R,
|
|
1013
|
+
B,
|
|
1013
1014
|
Xe,
|
|
1014
1015
|
Re
|
|
1015
1016
|
))
|
|
@@ -1019,10 +1020,12 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1019
1020
|
}, nc = ({ text: t }) => /* @__PURE__ */ e.createElement("div", null, t), ht = "tooltip", sc = ({ className: t, header: a, text: r, closeWithX: _, theme: o, handleCloseAction: l }) => /* @__PURE__ */ e.createElement("div", { className: t }, _ && /* @__PURE__ */ e.createElement(
|
|
1020
1021
|
"button",
|
|
1021
1022
|
{
|
|
1023
|
+
type: "button",
|
|
1024
|
+
"aria-label": "Close tooltip",
|
|
1022
1025
|
className: C[`${ht}-close`],
|
|
1023
1026
|
onClick: l
|
|
1024
1027
|
},
|
|
1025
|
-
/* @__PURE__ */ e.createElement(
|
|
1028
|
+
/* @__PURE__ */ e.createElement(T, { source: Te, kind: o ? yr(o) : "primary" })
|
|
1026
1029
|
), a && /* @__PURE__ */ e.createElement(
|
|
1027
1030
|
"div",
|
|
1028
1031
|
{
|
|
@@ -1051,14 +1054,16 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1051
1054
|
primaryButton: c,
|
|
1052
1055
|
secondaryButton: d
|
|
1053
1056
|
}) => {
|
|
1054
|
-
const
|
|
1057
|
+
const n = (s) => s === "invert" ? "secondary" : "high-contrast";
|
|
1055
1058
|
return /* @__PURE__ */ e.createElement("div", { className: C[`${Ie}__interactive`] }, _ && /* @__PURE__ */ e.createElement(
|
|
1056
1059
|
"button",
|
|
1057
1060
|
{
|
|
1061
|
+
type: "button",
|
|
1062
|
+
"aria-label": "Close tooltip",
|
|
1058
1063
|
className: C[`${Ie}-close`],
|
|
1059
1064
|
onClick: l
|
|
1060
1065
|
},
|
|
1061
|
-
/* @__PURE__ */ e.createElement(
|
|
1066
|
+
/* @__PURE__ */ e.createElement(T, { source: Te, kind: o ? yr(o) : "primary" })
|
|
1062
1067
|
), r && /* @__PURE__ */ e.createElement("div", { className: C[`${Ie}-image-container`] }, /* @__PURE__ */ e.createElement(
|
|
1063
1068
|
"img",
|
|
1064
1069
|
{
|
|
@@ -1077,7 +1082,7 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1077
1082
|
/* @__PURE__ */ e.createElement(
|
|
1078
1083
|
U,
|
|
1079
1084
|
{
|
|
1080
|
-
kind: c.kind ||
|
|
1085
|
+
kind: c.kind || n(o),
|
|
1081
1086
|
onClick: c.handleClick
|
|
1082
1087
|
},
|
|
1083
1088
|
c.label
|
|
@@ -1122,7 +1127,7 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1122
1127
|
left: "0",
|
|
1123
1128
|
width: "100%",
|
|
1124
1129
|
height: `calc(100% - ${t.bottom}px)`
|
|
1125
|
-
},
|
|
1130
|
+
}, n = {
|
|
1126
1131
|
top: `${t.top}px`,
|
|
1127
1132
|
left: `${t.left}px`,
|
|
1128
1133
|
width: `${t.width}px`,
|
|
@@ -1177,7 +1182,7 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1177
1182
|
[C[`${Z}__overlay--visible`]]: a,
|
|
1178
1183
|
[C[`${Z}__overlay--slide`]]: r
|
|
1179
1184
|
}),
|
|
1180
|
-
style:
|
|
1185
|
+
style: n
|
|
1181
1186
|
}
|
|
1182
1187
|
));
|
|
1183
1188
|
};
|
|
@@ -1188,7 +1193,7 @@ class E_ {
|
|
|
1188
1193
|
this.element = a, this.padding = r;
|
|
1189
1194
|
}
|
|
1190
1195
|
addPadding(a) {
|
|
1191
|
-
const r = Math.round(a.left) - this.padding, _ = Math.round(a.top) - this.padding, o = Math.round(a.width) + 2 * this.padding, l = Math.round(a.height) + 2 * this.padding, c = _, d = r,
|
|
1196
|
+
const r = Math.round(a.left) - this.padding, _ = Math.round(a.top) - this.padding, o = Math.round(a.width) + 2 * this.padding, l = Math.round(a.height) + 2 * this.padding, c = _, d = r, n = c + l, s = d + o;
|
|
1192
1197
|
return {
|
|
1193
1198
|
x: r,
|
|
1194
1199
|
y: _,
|
|
@@ -1196,8 +1201,8 @@ class E_ {
|
|
|
1196
1201
|
height: l,
|
|
1197
1202
|
top: c,
|
|
1198
1203
|
left: d,
|
|
1199
|
-
bottom:
|
|
1200
|
-
right:
|
|
1204
|
+
bottom: n,
|
|
1205
|
+
right: s
|
|
1201
1206
|
};
|
|
1202
1207
|
}
|
|
1203
1208
|
getBoundingClientRect() {
|
|
@@ -1210,7 +1215,7 @@ class E_ {
|
|
|
1210
1215
|
return this.getBoundingClientRect().height;
|
|
1211
1216
|
}
|
|
1212
1217
|
}
|
|
1213
|
-
const
|
|
1218
|
+
const qa = 8, Ka = "guide-tooltip", Ja = (t, a) => new E_(t, a), dc = (t) => {
|
|
1214
1219
|
const {
|
|
1215
1220
|
className: a,
|
|
1216
1221
|
parentElementName: r,
|
|
@@ -1218,13 +1223,13 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1218
1223
|
shouldSlide: o = !0
|
|
1219
1224
|
} = t, [l, c] = e.useState(
|
|
1220
1225
|
null
|
|
1221
|
-
), [d,
|
|
1222
|
-
l && (
|
|
1223
|
-
|
|
1226
|
+
), [d, n] = e.useState(null), [s, i] = e.useState(o), m = () => {
|
|
1227
|
+
l && (n(
|
|
1228
|
+
Ja(
|
|
1224
1229
|
l,
|
|
1225
|
-
|
|
1230
|
+
qa
|
|
1226
1231
|
).getBoundingClientRect()
|
|
1227
|
-
),
|
|
1232
|
+
), i(!1));
|
|
1228
1233
|
};
|
|
1229
1234
|
return e.useEffect(() => {
|
|
1230
1235
|
if (l !== null)
|
|
@@ -1237,31 +1242,31 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1237
1242
|
c(g);
|
|
1238
1243
|
}
|
|
1239
1244
|
}, [r]), e.useEffect(() => {
|
|
1240
|
-
l &&
|
|
1241
|
-
|
|
1245
|
+
l && n(
|
|
1246
|
+
Ja(
|
|
1242
1247
|
l,
|
|
1243
|
-
|
|
1248
|
+
qa
|
|
1244
1249
|
).getBoundingClientRect()
|
|
1245
|
-
),
|
|
1250
|
+
), i(!0);
|
|
1246
1251
|
}, [l]), l && _ ? /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
1247
1252
|
y_,
|
|
1248
1253
|
{
|
|
1249
1254
|
gap: d,
|
|
1250
1255
|
isVisible: _,
|
|
1251
|
-
slide:
|
|
1256
|
+
slide: s,
|
|
1252
1257
|
disablePointerEvents: !0
|
|
1253
1258
|
}
|
|
1254
1259
|
), /* @__PURE__ */ e.createElement(
|
|
1255
1260
|
Er,
|
|
1256
|
-
N(
|
|
1261
|
+
N(k({}, t), {
|
|
1257
1262
|
referenceElement: {
|
|
1258
1263
|
getBoundingClientRect: () => d,
|
|
1259
1264
|
contextElement: l
|
|
1260
1265
|
},
|
|
1261
1266
|
arrowOffsetY: 25,
|
|
1262
1267
|
className: u({
|
|
1263
|
-
[C[
|
|
1264
|
-
[C[`${
|
|
1268
|
+
[C[Ka]]: !0,
|
|
1269
|
+
[C[`${Ka}--slide`]]: s,
|
|
1265
1270
|
className: a
|
|
1266
1271
|
})
|
|
1267
1272
|
}),
|
|
@@ -1312,7 +1317,7 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1312
1317
|
};
|
|
1313
1318
|
return /* @__PURE__ */ e.createElement(
|
|
1314
1319
|
Er,
|
|
1315
|
-
|
|
1320
|
+
k({
|
|
1316
1321
|
kind: "invert",
|
|
1317
1322
|
placement: _ ? "left" : "bottom",
|
|
1318
1323
|
triggerClassName: se[`${Rt}__tooltip`],
|
|
@@ -1352,50 +1357,50 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1352
1357
|
activeOptionKey: o,
|
|
1353
1358
|
vertical: l
|
|
1354
1359
|
}) => {
|
|
1355
|
-
const [c, d] = e.useState([]),
|
|
1360
|
+
const [c, d] = e.useState([]), n = r === "scroll", s = u(
|
|
1356
1361
|
se[_t],
|
|
1357
1362
|
t,
|
|
1358
1363
|
l && se[`${_t}--vertical`]
|
|
1359
|
-
),
|
|
1364
|
+
), i = `${_t}__menu-wrapper`, m = {
|
|
1360
1365
|
root: document.querySelector(`${a}`),
|
|
1361
1366
|
threshold: 1
|
|
1362
|
-
}, g = !
|
|
1367
|
+
}, g = !n && c.length !== 0, v = (p) => {
|
|
1363
1368
|
p.map((y) => {
|
|
1364
|
-
const
|
|
1369
|
+
const h = c.includes(y.target.id);
|
|
1365
1370
|
if (!y.isIntersecting) {
|
|
1366
|
-
y.target.setAttribute("tabindex", "-1"),
|
|
1371
|
+
y.target.setAttribute("tabindex", "-1"), h || d((E) => [
|
|
1367
1372
|
...E,
|
|
1368
1373
|
y.target.id
|
|
1369
1374
|
]);
|
|
1370
1375
|
return;
|
|
1371
1376
|
}
|
|
1372
|
-
y.target.removeAttribute("tabindex"),
|
|
1377
|
+
y.target.removeAttribute("tabindex"), h && d(c.filter((E) => E !== y.target.id));
|
|
1373
1378
|
});
|
|
1374
1379
|
};
|
|
1375
1380
|
e.useEffect(() => {
|
|
1376
1381
|
const p = !!window.IntersectionObserver;
|
|
1377
|
-
if (!
|
|
1382
|
+
if (!n && p) {
|
|
1378
1383
|
const y = document.querySelectorAll(
|
|
1379
1384
|
`.${se[`${_t}__items__button`]}`
|
|
1380
|
-
),
|
|
1381
|
-
|
|
1385
|
+
), h = new IntersectionObserver(
|
|
1386
|
+
v,
|
|
1382
1387
|
m
|
|
1383
1388
|
);
|
|
1384
|
-
return y.forEach((E) =>
|
|
1389
|
+
return y.forEach((E) => h.observe(E)), () => h.disconnect();
|
|
1385
1390
|
}
|
|
1386
|
-
}, [c,
|
|
1391
|
+
}, [c, n]);
|
|
1387
1392
|
const b = (p) => _.filter(
|
|
1388
|
-
(
|
|
1389
|
-
).map((
|
|
1390
|
-
key:
|
|
1391
|
-
element: /* @__PURE__ */ e.createElement(n_, { leftNode:
|
|
1392
|
-
onClick:
|
|
1393
|
+
(h) => p.find((E) => E === h.key)
|
|
1394
|
+
).map((h) => ({
|
|
1395
|
+
key: h.key,
|
|
1396
|
+
element: /* @__PURE__ */ e.createElement(n_, { leftNode: h.element }, h.label),
|
|
1397
|
+
onClick: h.onClick
|
|
1393
1398
|
})), f = _.filter((p) => c.find((y) => y === p.key)).find((p) => p.key === o);
|
|
1394
|
-
return /* @__PURE__ */ e.createElement("div", { id: a, className:
|
|
1399
|
+
return /* @__PURE__ */ e.createElement("div", { id: a, className: s }, /* @__PURE__ */ e.createElement(
|
|
1395
1400
|
"div",
|
|
1396
1401
|
{
|
|
1397
1402
|
className: u(se[`${_t}__items`], {
|
|
1398
|
-
[se[`${_t}__items--scroll`]]:
|
|
1403
|
+
[se[`${_t}__items--scroll`]]: n
|
|
1399
1404
|
})
|
|
1400
1405
|
},
|
|
1401
1406
|
_.map((p) => /* @__PURE__ */ e.createElement(
|
|
@@ -1407,26 +1412,26 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1407
1412
|
vertical: l
|
|
1408
1413
|
}
|
|
1409
1414
|
))
|
|
1410
|
-
), g && /* @__PURE__ */ e.createElement("div", { className: se[
|
|
1415
|
+
), g && /* @__PURE__ */ e.createElement("div", { className: se[i] }, /* @__PURE__ */ e.createElement(
|
|
1411
1416
|
o_,
|
|
1412
1417
|
{
|
|
1413
1418
|
placement: l ? "left-end" : "bottom-end",
|
|
1414
1419
|
options: b(c),
|
|
1415
1420
|
triggerClassName: u(
|
|
1416
|
-
l && se[`${
|
|
1421
|
+
l && se[`${i}__trigger-vertical`]
|
|
1417
1422
|
),
|
|
1418
1423
|
triggerRenderer: /* @__PURE__ */ e.createElement(
|
|
1419
1424
|
U,
|
|
1420
1425
|
{
|
|
1421
1426
|
className: u(
|
|
1422
|
-
se[`${
|
|
1423
|
-
f && se[`${
|
|
1427
|
+
se[`${i}__button`],
|
|
1428
|
+
f && se[`${i}__button--active`]
|
|
1424
1429
|
),
|
|
1425
1430
|
kind: "plain",
|
|
1426
1431
|
icon: /* @__PURE__ */ e.createElement(
|
|
1427
|
-
|
|
1432
|
+
T,
|
|
1428
1433
|
{
|
|
1429
|
-
source: l ?
|
|
1434
|
+
source: l ? cr : Bt,
|
|
1430
1435
|
kind: "primary"
|
|
1431
1436
|
}
|
|
1432
1437
|
),
|
|
@@ -1436,7 +1441,7 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1436
1441
|
"div",
|
|
1437
1442
|
{
|
|
1438
1443
|
className: u(
|
|
1439
|
-
se[`${
|
|
1444
|
+
se[`${i}__button__with-item`]
|
|
1440
1445
|
)
|
|
1441
1446
|
},
|
|
1442
1447
|
f.element
|
|
@@ -1462,30 +1467,30 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1462
1467
|
"alert--error": "lc-Alert-module__alert--error___DKPo0"
|
|
1463
1468
|
}, B_ = {
|
|
1464
1469
|
info: {
|
|
1465
|
-
source:
|
|
1470
|
+
source: Ia,
|
|
1466
1471
|
kind: "link"
|
|
1467
1472
|
},
|
|
1468
1473
|
warning: {
|
|
1469
|
-
source:
|
|
1474
|
+
source: nr,
|
|
1470
1475
|
kind: "warning"
|
|
1471
1476
|
},
|
|
1472
1477
|
success: {
|
|
1473
|
-
source:
|
|
1478
|
+
source: sr,
|
|
1474
1479
|
kind: "success"
|
|
1475
1480
|
},
|
|
1476
1481
|
error: {
|
|
1477
|
-
source:
|
|
1482
|
+
source: ir,
|
|
1478
1483
|
kind: "error"
|
|
1479
1484
|
}
|
|
1480
1485
|
}, ye = "alert", pc = (d) => {
|
|
1481
|
-
var
|
|
1486
|
+
var n = d, {
|
|
1482
1487
|
children: t,
|
|
1483
1488
|
className: a,
|
|
1484
1489
|
primaryButton: r,
|
|
1485
1490
|
secondaryButton: _,
|
|
1486
1491
|
kind: o = "info",
|
|
1487
1492
|
onClose: l
|
|
1488
|
-
} =
|
|
1493
|
+
} = n, c = A(n, [
|
|
1489
1494
|
"children",
|
|
1490
1495
|
"className",
|
|
1491
1496
|
"primaryButton",
|
|
@@ -1493,22 +1498,22 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1493
1498
|
"kind",
|
|
1494
1499
|
"onClose"
|
|
1495
1500
|
]);
|
|
1496
|
-
const
|
|
1501
|
+
const s = e.useRef(null), [i, m] = e.useState(null), g = u(
|
|
1497
1502
|
ke[ye],
|
|
1498
1503
|
ke[`${ye}--${o}`],
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1504
|
+
i === "large" && ke[`${ye}--large`],
|
|
1505
|
+
i === "medium" && ke[`${ye}--medium`],
|
|
1506
|
+
i === "small" && ke[`${ye}--small`],
|
|
1502
1507
|
a
|
|
1503
1508
|
);
|
|
1504
1509
|
return e.useEffect(() => {
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1510
|
+
const v = () => s.current && s.current.offsetWidth <= 400 ? m("small") : s.current && s.current.offsetWidth > 400 && s.current.offsetWidth <= 800 ? m("medium") : m("large"), b = gr(() => {
|
|
1511
|
+
v();
|
|
1507
1512
|
}, 500);
|
|
1508
|
-
return window.addEventListener("resize", b),
|
|
1509
|
-
}), /* @__PURE__ */ e.createElement("div",
|
|
1510
|
-
|
|
1511
|
-
N(
|
|
1513
|
+
return window.addEventListener("resize", b), v(), () => window.removeEventListener("resize", b);
|
|
1514
|
+
}), /* @__PURE__ */ e.createElement("div", k({ ref: s, className: g }, c), /* @__PURE__ */ e.createElement("div", { className: ke[`${ye}__content`] }, /* @__PURE__ */ e.createElement("div", { className: ke[`${ye}__content__wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1515
|
+
T,
|
|
1516
|
+
N(k({}, B_[o]), {
|
|
1512
1517
|
size: "large",
|
|
1513
1518
|
className: ke[`${ye}__icon`]
|
|
1514
1519
|
})
|
|
@@ -1530,15 +1535,16 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1530
1535
|
))), l && /* @__PURE__ */ e.createElement(
|
|
1531
1536
|
U,
|
|
1532
1537
|
{
|
|
1538
|
+
"aria-label": "Close alert",
|
|
1533
1539
|
type: "button",
|
|
1534
1540
|
className: ke[`${ye}__close-icon`],
|
|
1535
1541
|
size: "compact",
|
|
1536
1542
|
kind: "plain",
|
|
1537
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
1543
|
+
icon: /* @__PURE__ */ e.createElement(T, { source: Te }),
|
|
1538
1544
|
onClick: l
|
|
1539
1545
|
}
|
|
1540
1546
|
));
|
|
1541
|
-
},
|
|
1547
|
+
}, Qa = Array.from(
|
|
1542
1548
|
{ length: 10 },
|
|
1543
1549
|
(t, a) => `--surface-avatar-${a + 1}`
|
|
1544
1550
|
);
|
|
@@ -1546,7 +1552,7 @@ function P_(t) {
|
|
|
1546
1552
|
if (!t)
|
|
1547
1553
|
return;
|
|
1548
1554
|
const a = t.split("").reduce((r, _) => r + _.charCodeAt(0), 0);
|
|
1549
|
-
return `var(${
|
|
1555
|
+
return `var(${Qa[a % Qa.length]})`;
|
|
1550
1556
|
}
|
|
1551
1557
|
function A_(t = "", a = 2) {
|
|
1552
1558
|
const r = t.trim().split(/\s+/), _ = r.map((l) => [...l][0]);
|
|
@@ -1565,7 +1571,7 @@ function I_(t) {
|
|
|
1565
1571
|
const r = t.slice(4, -1);
|
|
1566
1572
|
a = window.getComputedStyle(document.documentElement).getPropertyValue(r).trim();
|
|
1567
1573
|
}
|
|
1568
|
-
return a &&
|
|
1574
|
+
return a && Ma(a, "#FFFFFF") > 3 ? "var(--color-white)" : "var(--color-black)";
|
|
1569
1575
|
}
|
|
1570
1576
|
const F_ = "lc-Avatar-module__avatar___1zTCE", M_ = "lc-Avatar-module__avatar__status___nX2Ls", R_ = "lc-Avatar-module__avatar__rim___RCQ8Q", L_ = "lc-Avatar-module__avatar__image___YqfqE", be = {
|
|
1571
1577
|
avatar: F_,
|
|
@@ -1615,62 +1621,74 @@ const F_ = "lc-Avatar-module__avatar___1zTCE", M_ = "lc-Avatar-module__avatar__s
|
|
|
1615
1621
|
"avatar--xlarge": "lc-Avatar-module__avatar--xlarge___zwgeW",
|
|
1616
1622
|
"avatar--xxlarge": "lc-Avatar-module__avatar--xxlarge___Ur0ul",
|
|
1617
1623
|
"avatar--xxxlarge": "lc-Avatar-module__avatar--xxxlarge___Z-54U"
|
|
1618
|
-
}, X = "avatar", O_ = ({
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1624
|
+
}, X = "avatar", O_ = (m) => {
|
|
1625
|
+
var g = m, {
|
|
1626
|
+
alt: t,
|
|
1627
|
+
className: a,
|
|
1628
|
+
color: r,
|
|
1629
|
+
shape: _ = "circle",
|
|
1630
|
+
size: o = "medium",
|
|
1631
|
+
src: l,
|
|
1632
|
+
status: c,
|
|
1633
|
+
text: d,
|
|
1634
|
+
type: n,
|
|
1635
|
+
withRim: s = !1
|
|
1636
|
+
} = g, i = A(g, [
|
|
1637
|
+
"alt",
|
|
1638
|
+
"className",
|
|
1639
|
+
"color",
|
|
1640
|
+
"shape",
|
|
1641
|
+
"size",
|
|
1642
|
+
"src",
|
|
1643
|
+
"status",
|
|
1644
|
+
"text",
|
|
1645
|
+
"type",
|
|
1646
|
+
"withRim"
|
|
1647
|
+
]);
|
|
1648
|
+
const v = n === "image" && !l, [b, f] = e.useState(v), p = n === "image" && !!l && !b, y = n === "text", h = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, E = A_(d, h), w = r || P_(d), x = w ? I_(w) : void 0, $ = y ? { backgroundColor: w } : {}, F = u(k({
|
|
1631
1649
|
[be[X]]: !0,
|
|
1632
1650
|
[be[`${X}--${_}`]]: !0,
|
|
1633
1651
|
[be[`${X}--${o}`]]: !0,
|
|
1634
|
-
[be[`${X}--with-rim`]]:
|
|
1635
|
-
}, a ? { [`${a}`]: a } : {})),
|
|
1652
|
+
[be[`${X}--with-rim`]]: s
|
|
1653
|
+
}, a ? { [`${a}`]: a } : {})), S = u(
|
|
1636
1654
|
be[`${X}__status`],
|
|
1637
1655
|
be[`${X}__status--${_}`],
|
|
1638
1656
|
be[`${X}__status--${o}`],
|
|
1639
1657
|
...c ? [be[`${X}__status--${c}`]] : []
|
|
1640
|
-
),
|
|
1658
|
+
), R = u(
|
|
1641
1659
|
be[`${X}__icon`],
|
|
1642
1660
|
be[`${X}__icon--${o}`]
|
|
1643
|
-
),
|
|
1661
|
+
), B = u(
|
|
1644
1662
|
be[`${X}__rim`],
|
|
1645
1663
|
be[`${X}__rim--${o}`]
|
|
1646
|
-
),
|
|
1664
|
+
), L = e.useCallback(() => f(!0), []);
|
|
1647
1665
|
return e.useEffect(() => {
|
|
1648
|
-
|
|
1649
|
-
}, [
|
|
1666
|
+
f(v);
|
|
1667
|
+
}, [v]), /* @__PURE__ */ e.createElement("div", k({ className: F, style: $ }, i), s && /* @__PURE__ */ e.createElement(
|
|
1650
1668
|
"div",
|
|
1651
1669
|
{
|
|
1652
1670
|
"data-testid": `${X}__rim`,
|
|
1653
|
-
className:
|
|
1671
|
+
className: B
|
|
1654
1672
|
}
|
|
1655
1673
|
), c && /* @__PURE__ */ e.createElement(
|
|
1656
1674
|
"div",
|
|
1657
1675
|
{
|
|
1658
1676
|
"data-testid": `${X}__status`,
|
|
1659
|
-
className:
|
|
1677
|
+
className: S
|
|
1660
1678
|
}
|
|
1661
|
-
),
|
|
1679
|
+
), p && /* @__PURE__ */ e.createElement(
|
|
1662
1680
|
"img",
|
|
1663
1681
|
{
|
|
1664
1682
|
className: be[`${X}__image`],
|
|
1665
1683
|
src: l,
|
|
1666
1684
|
alt: t,
|
|
1667
|
-
onError:
|
|
1685
|
+
onError: L
|
|
1668
1686
|
}
|
|
1669
|
-
),
|
|
1670
|
-
|
|
1687
|
+
), y && /* @__PURE__ */ e.createElement("span", { style: { color: x } }, E), b && /* @__PURE__ */ e.createElement(
|
|
1688
|
+
T,
|
|
1671
1689
|
{
|
|
1672
1690
|
"data-testid": `${X}__icon`,
|
|
1673
|
-
className:
|
|
1691
|
+
className: R,
|
|
1674
1692
|
source: Fr
|
|
1675
1693
|
}
|
|
1676
1694
|
));
|
|
@@ -1688,14 +1706,14 @@ const z_ = "lc-Badge-module__badge___GhLnu", G_ = "lc-Badge-module__badge__dot__
|
|
|
1688
1706
|
"badge--secondary": "lc-Badge-module__badge--secondary___JjNIJ",
|
|
1689
1707
|
"badge--tertiary": "lc-Badge-module__badge--tertiary___e83wV"
|
|
1690
1708
|
}, Ot = "badge", U_ = (d) => {
|
|
1691
|
-
var
|
|
1709
|
+
var n = d, {
|
|
1692
1710
|
className: t,
|
|
1693
1711
|
count: a = 0,
|
|
1694
1712
|
max: r = 99,
|
|
1695
1713
|
kind: _ = "primary",
|
|
1696
1714
|
size: o = "medium",
|
|
1697
1715
|
type: l = "counter"
|
|
1698
|
-
} =
|
|
1716
|
+
} = n, c = A(n, [
|
|
1699
1717
|
"className",
|
|
1700
1718
|
"count",
|
|
1701
1719
|
"max",
|
|
@@ -1703,17 +1721,17 @@ const z_ = "lc-Badge-module__badge___GhLnu", G_ = "lc-Badge-module__badge__dot__
|
|
|
1703
1721
|
"size",
|
|
1704
1722
|
"type"
|
|
1705
1723
|
]);
|
|
1706
|
-
const
|
|
1724
|
+
const s = u(
|
|
1707
1725
|
t,
|
|
1708
1726
|
Lt[Ot],
|
|
1709
1727
|
Lt[`${Ot}--${_}`],
|
|
1710
1728
|
Lt[`${Ot}--${o}`]
|
|
1711
|
-
),
|
|
1729
|
+
), i = {
|
|
1712
1730
|
counter: H_(a, r),
|
|
1713
1731
|
alert: "!",
|
|
1714
1732
|
dot: /* @__PURE__ */ e.createElement("span", { className: Lt[`${Ot}__dot`] })
|
|
1715
1733
|
}[l];
|
|
1716
|
-
return /* @__PURE__ */ e.createElement("span",
|
|
1734
|
+
return /* @__PURE__ */ e.createElement("span", k({ className: s }, c), i);
|
|
1717
1735
|
};
|
|
1718
1736
|
function W_() {
|
|
1719
1737
|
}
|
|
@@ -1733,27 +1751,27 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1733
1751
|
fullWidth: l = !1,
|
|
1734
1752
|
onButtonClick: c = W_
|
|
1735
1753
|
}) => {
|
|
1736
|
-
const d = u(Ht[Y_], r), [
|
|
1754
|
+
const d = u(Ht[Y_], r), [n, s] = e.useState(() => _), i = typeof o == "string";
|
|
1737
1755
|
e.useEffect(() => {
|
|
1738
|
-
|
|
1756
|
+
i && s(o);
|
|
1739
1757
|
}, [o]);
|
|
1740
|
-
const m = (
|
|
1741
|
-
|
|
1742
|
-
}, g = a.map(({ id:
|
|
1743
|
-
const
|
|
1758
|
+
const m = (v, b) => {
|
|
1759
|
+
i || s(v), c(v, b);
|
|
1760
|
+
}, g = a.map(({ id: v, label: b, loading: f, disabled: p, icon: y }) => {
|
|
1761
|
+
const h = v === n, E = h ? Ht["btn--active"] : "", w = h ? !1 : f;
|
|
1744
1762
|
return /* @__PURE__ */ e.createElement(
|
|
1745
1763
|
U,
|
|
1746
1764
|
{
|
|
1747
|
-
key:
|
|
1765
|
+
key: v,
|
|
1748
1766
|
fullWidth: l,
|
|
1749
1767
|
loading: w,
|
|
1750
1768
|
disabled: p,
|
|
1751
|
-
"aria-pressed":
|
|
1769
|
+
"aria-pressed": h,
|
|
1752
1770
|
kind: "secondary",
|
|
1753
1771
|
icon: y,
|
|
1754
1772
|
className: u(Ht.btn, Ht[`btn--${t}`], E),
|
|
1755
1773
|
onClick: (x) => {
|
|
1756
|
-
m(
|
|
1774
|
+
m(v, x);
|
|
1757
1775
|
}
|
|
1758
1776
|
},
|
|
1759
1777
|
b
|
|
@@ -1774,8 +1792,8 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1774
1792
|
card__actions__line: to,
|
|
1775
1793
|
card__actions__buttons: ao,
|
|
1776
1794
|
"card__actions__buttons-expander": "lc-Card-module__card__actions__buttons-expander___lz4h-"
|
|
1777
|
-
}, Dt = "card", Jt = `${Dt}__header`, ha = `${Jt}__heading`, zt = `${Dt}__actions`, ro = `${Jt}__no-image`, bc = (
|
|
1778
|
-
var
|
|
1795
|
+
}, Dt = "card", Jt = `${Dt}__header`, ha = `${Jt}__heading`, zt = `${Dt}__actions`, ro = `${Jt}__no-image`, bc = (s) => {
|
|
1796
|
+
var i = s, {
|
|
1779
1797
|
alt: t,
|
|
1780
1798
|
buttonsOptions: a = [],
|
|
1781
1799
|
children: r,
|
|
@@ -1784,7 +1802,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1784
1802
|
expandableContent: l,
|
|
1785
1803
|
src: c,
|
|
1786
1804
|
title: d
|
|
1787
|
-
} =
|
|
1805
|
+
} = i, n = A(i, [
|
|
1788
1806
|
"alt",
|
|
1789
1807
|
"buttonsOptions",
|
|
1790
1808
|
"children",
|
|
@@ -1794,8 +1812,8 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1794
1812
|
"src",
|
|
1795
1813
|
"title"
|
|
1796
1814
|
]);
|
|
1797
|
-
const [m, g] = e.useState(!1),
|
|
1798
|
-
return /* @__PURE__ */ e.createElement("div",
|
|
1815
|
+
const [m, g] = e.useState(!1), v = m ? Xt : Bt, b = m ? "Hide" : "Show more", f = (a == null ? void 0 : a.length) > 0, p = !!l, y = f || p, h = d, E = c, w = E ? "" : fe[ro];
|
|
1816
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(fe[Dt], _) }, n), h && /* @__PURE__ */ e.createElement("div", { className: u(fe[Jt], w) }, E && /* @__PURE__ */ e.createElement(
|
|
1799
1817
|
"img",
|
|
1800
1818
|
{
|
|
1801
1819
|
alt: t,
|
|
@@ -1818,7 +1836,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1818
1836
|
className: fe[`${zt}__buttons-expander`],
|
|
1819
1837
|
kind: "link",
|
|
1820
1838
|
iconPosition: "right",
|
|
1821
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
1839
|
+
icon: /* @__PURE__ */ e.createElement(T, { source: v }),
|
|
1822
1840
|
onClick: () => g(!m)
|
|
1823
1841
|
},
|
|
1824
1842
|
b
|
|
@@ -1834,7 +1852,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1834
1852
|
"className"
|
|
1835
1853
|
]);
|
|
1836
1854
|
const l = u(_o[oo], a);
|
|
1837
|
-
return /* @__PURE__ */ e.createElement(M, N(
|
|
1855
|
+
return /* @__PURE__ */ e.createElement(M, N(k({ as: "span", size: "sm" }, r), { className: l }), t);
|
|
1838
1856
|
}, lo = "lc-Checkbox-module__checkbox___G7nTf", co = "lc-Checkbox-module__checkbox__label___-o01x", no = "lc-Checkbox-module__checkbox__text___P2SIq", so = "lc-Checkbox-module__checkbox__input___YLbVF", io = "lc-Checkbox-module__checkbox__checkmark___16pfY", uo = "lc-Checkbox-module__checkbox__square___MHUyd", mo = "lc-Checkbox-module__checkbox__helper___YSJ-n", je = {
|
|
1839
1857
|
checkbox: lo,
|
|
1840
1858
|
checkbox__label: co,
|
|
@@ -1847,7 +1865,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1847
1865
|
checkbox__helper: mo
|
|
1848
1866
|
}, Ze = "checkbox", po = e.forwardRef(
|
|
1849
1867
|
(d, c) => {
|
|
1850
|
-
var
|
|
1868
|
+
var n = d, { checked: t, disabled: a, children: r, description: _, className: o } = n, l = A(n, ["checked", "disabled", "children", "description", "className"]);
|
|
1851
1869
|
return /* @__PURE__ */ e.createElement(
|
|
1852
1870
|
"div",
|
|
1853
1871
|
{
|
|
@@ -1858,7 +1876,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1858
1876
|
},
|
|
1859
1877
|
/* @__PURE__ */ e.createElement("label", { className: je[`${Ze}__label`] }, /* @__PURE__ */ e.createElement(
|
|
1860
1878
|
"input",
|
|
1861
|
-
N(
|
|
1879
|
+
N(k({}, l), {
|
|
1862
1880
|
ref: c,
|
|
1863
1881
|
checked: t,
|
|
1864
1882
|
disabled: a,
|
|
@@ -1869,7 +1887,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1869
1887
|
_ && /* @__PURE__ */ e.createElement(la, { className: je[`${Ze}__helper`] }, _)
|
|
1870
1888
|
);
|
|
1871
1889
|
}
|
|
1872
|
-
),
|
|
1890
|
+
), D = {
|
|
1873
1891
|
"date-picker": "lc-DatePicker-module__date-picker___9AqJ2",
|
|
1874
1892
|
"date-picker--interaction-disabled": "lc-DatePicker-module__date-picker--interaction-disabled___-zn8o",
|
|
1875
1893
|
"date-picker__day": "lc-DatePicker-module__date-picker__day___ZTSw9",
|
|
@@ -1904,7 +1922,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1904
1922
|
"date-picker--range__select-input": "lc-DatePicker-module__date-picker--range__select-input___6pyj3",
|
|
1905
1923
|
"date-picker--range__calendars-wrapper": "lc-DatePicker-module__date-picker--range__calendars-wrapper___8nWaW",
|
|
1906
1924
|
"date-picker__navbar-buttons-wrapper": "lc-DatePicker-module__date-picker__navbar-buttons-wrapper___Hnksb"
|
|
1907
|
-
},
|
|
1925
|
+
}, Xa = "date-picker", go = (t) => {
|
|
1908
1926
|
const {
|
|
1909
1927
|
onPreviousClick: a,
|
|
1910
1928
|
onMonthChange: r,
|
|
@@ -1913,36 +1931,36 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1913
1931
|
showPreviousButton: l,
|
|
1914
1932
|
className: c,
|
|
1915
1933
|
classNames: d,
|
|
1916
|
-
numberOfMonths:
|
|
1917
|
-
month:
|
|
1918
|
-
fromMonth:
|
|
1934
|
+
numberOfMonths: n,
|
|
1935
|
+
month: s,
|
|
1936
|
+
fromMonth: i,
|
|
1919
1937
|
toMonth: m
|
|
1920
1938
|
} = t, g = () => {
|
|
1921
1939
|
typeof a == "function" && a();
|
|
1922
|
-
},
|
|
1940
|
+
}, v = () => {
|
|
1923
1941
|
typeof _ == "function" && _();
|
|
1924
1942
|
}, b = () => {
|
|
1925
|
-
if (!
|
|
1926
|
-
const
|
|
1927
|
-
return r(
|
|
1943
|
+
if (!i) {
|
|
1944
|
+
const h = pt(s, 12);
|
|
1945
|
+
return r(h);
|
|
1928
1946
|
}
|
|
1929
|
-
const p = Math.abs(
|
|
1930
|
-
|
|
1947
|
+
const p = Math.abs(za(s, i)), y = pt(
|
|
1948
|
+
s,
|
|
1931
1949
|
!Number.isNaN(p) && p > 12 ? 12 : p
|
|
1932
1950
|
);
|
|
1933
1951
|
return r(y);
|
|
1934
1952
|
}, f = () => {
|
|
1935
1953
|
if (!m) {
|
|
1936
|
-
const
|
|
1937
|
-
return r(
|
|
1954
|
+
const h = Ga(s, 12);
|
|
1955
|
+
return r(h);
|
|
1938
1956
|
}
|
|
1939
|
-
const p = Math.abs(
|
|
1940
|
-
|
|
1957
|
+
const p = Math.abs(za(m, s)), y = Ga(
|
|
1958
|
+
s,
|
|
1941
1959
|
!Number.isNaN(p) && p > 12 ? 12 : p
|
|
1942
1960
|
);
|
|
1943
|
-
return
|
|
1961
|
+
return n === 2 && Da(y, m) ? r(pt(y, 1)) : r(y);
|
|
1944
1962
|
};
|
|
1945
|
-
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement("div", { className:
|
|
1963
|
+
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement("div", { className: D[`${Xa}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1946
1964
|
"button",
|
|
1947
1965
|
{
|
|
1948
1966
|
"data-testid": "date-picker-prev-year-button",
|
|
@@ -1952,7 +1970,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1952
1970
|
}),
|
|
1953
1971
|
onClick: b
|
|
1954
1972
|
},
|
|
1955
|
-
/* @__PURE__ */ e.createElement(
|
|
1973
|
+
/* @__PURE__ */ e.createElement(T, { source: Mr, kind: "subtle" })
|
|
1956
1974
|
), /* @__PURE__ */ e.createElement(
|
|
1957
1975
|
"button",
|
|
1958
1976
|
{
|
|
@@ -1963,8 +1981,8 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1963
1981
|
}),
|
|
1964
1982
|
onClick: g
|
|
1965
1983
|
},
|
|
1966
|
-
/* @__PURE__ */ e.createElement(
|
|
1967
|
-
)), /* @__PURE__ */ e.createElement("div", { className:
|
|
1984
|
+
/* @__PURE__ */ e.createElement(T, { source: cr, kind: "subtle" })
|
|
1985
|
+
)), /* @__PURE__ */ e.createElement("div", { className: D[`${Xa}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1968
1986
|
"button",
|
|
1969
1987
|
{
|
|
1970
1988
|
"data-testid": "date-picker-next-month-button",
|
|
@@ -1972,9 +1990,9 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1972
1990
|
[d.navButtonNext]: !0,
|
|
1973
1991
|
[d.navButtonInteractionDisabled]: !o
|
|
1974
1992
|
}),
|
|
1975
|
-
onClick:
|
|
1993
|
+
onClick: v
|
|
1976
1994
|
},
|
|
1977
|
-
/* @__PURE__ */ e.createElement(
|
|
1995
|
+
/* @__PURE__ */ e.createElement(T, { source: dr, kind: "subtle" })
|
|
1978
1996
|
), /* @__PURE__ */ e.createElement(
|
|
1979
1997
|
"button",
|
|
1980
1998
|
{
|
|
@@ -1985,30 +2003,30 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1985
2003
|
}),
|
|
1986
2004
|
onClick: f
|
|
1987
2005
|
},
|
|
1988
|
-
/* @__PURE__ */ e.createElement(
|
|
2006
|
+
/* @__PURE__ */ e.createElement(T, { source: Rr, kind: "subtle" })
|
|
1989
2007
|
)));
|
|
1990
2008
|
}, I = "date-picker", $r = (t, a) => {
|
|
1991
2009
|
const { from: r, to: _ } = a;
|
|
1992
|
-
return !(_ && !
|
|
1993
|
-
}, wr = (t, a, r) => a ? t && !
|
|
2010
|
+
return !(_ && !Ta(t, _) && Ba(t, _) || r && !Ta(t, r) && !Ba(t, r));
|
|
2011
|
+
}, wr = (t, a, r) => a ? t && !Da(t, a) || r && Da(a, r) ? pt(a, 1) : a : pt(r || /* @__PURE__ */ new Date(), 1), bo = (t, a) => {
|
|
1994
2012
|
const r = {
|
|
1995
|
-
[
|
|
1996
|
-
[
|
|
1997
|
-
[
|
|
1998
|
-
[
|
|
2013
|
+
[D[`${I}__day--monday`]]: { daysOfWeek: [1] },
|
|
2014
|
+
[D[`${I}__day--sunday`]]: { daysOfWeek: [0] },
|
|
2015
|
+
[D[`${I}__day--start`]]: t,
|
|
2016
|
+
[D[`${I}__day--end`]]: t
|
|
1999
2017
|
};
|
|
2000
2018
|
if (!a || !t)
|
|
2001
2019
|
return r;
|
|
2002
2020
|
const _ = br(a, t);
|
|
2003
|
-
return _ > 0 ? N(
|
|
2004
|
-
[
|
|
2005
|
-
}) : _ < 0 ? N(
|
|
2006
|
-
[
|
|
2021
|
+
return _ > 0 ? N(k({}, r), {
|
|
2022
|
+
[D[`${I}__day--end`]]: a
|
|
2023
|
+
}) : _ < 0 ? N(k({}, r), {
|
|
2024
|
+
[D[`${I}__day--start`]]: a
|
|
2007
2025
|
}) : r;
|
|
2008
2026
|
}, xt = (t, a) => {
|
|
2009
2027
|
const r = a.find((_) => _.id === t);
|
|
2010
2028
|
return r || void 0;
|
|
2011
|
-
},
|
|
2029
|
+
}, ja = (t, a) => !!(!t || t && a), fo = (t) => {
|
|
2012
2030
|
const a = {};
|
|
2013
2031
|
if (!t.initialSelectedItemKey)
|
|
2014
2032
|
return a;
|
|
@@ -2017,44 +2035,44 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2017
2035
|
t.options
|
|
2018
2036
|
);
|
|
2019
2037
|
return r ? (a.selectedItem = t.initialSelectedItemKey, r.isManual && (t.initialFromDate && (a.from = t.initialFromDate), t.initialToDate && (a.to = t.initialToDate, a.temporaryTo = t.initialToDate)), a) : {};
|
|
2020
|
-
}, vo = (t, a) =>
|
|
2038
|
+
}, vo = (t, a) => k({
|
|
2021
2039
|
container: u({
|
|
2022
|
-
[
|
|
2023
|
-
[
|
|
2040
|
+
[D[`${I}`]]: !0,
|
|
2041
|
+
[D[`${I}--range`]]: t
|
|
2024
2042
|
}),
|
|
2025
|
-
wrapper:
|
|
2026
|
-
interactionDisabled:
|
|
2027
|
-
months:
|
|
2028
|
-
month:
|
|
2029
|
-
navBar:
|
|
2043
|
+
wrapper: D[`${I}__wrapper`],
|
|
2044
|
+
interactionDisabled: D[`${I}--interaction-disabled`],
|
|
2045
|
+
months: D[`${I}__months`],
|
|
2046
|
+
month: D[`${I}__month`],
|
|
2047
|
+
navBar: D[`${I}__nav-bar`],
|
|
2030
2048
|
navButtonPrev: u(
|
|
2031
|
-
|
|
2032
|
-
|
|
2049
|
+
D[`${I}__nav-button`],
|
|
2050
|
+
D[`${I}__nav-button--prev`]
|
|
2033
2051
|
),
|
|
2034
2052
|
navButtonNext: u(
|
|
2035
|
-
|
|
2036
|
-
|
|
2053
|
+
D[`${I}__nav-button`],
|
|
2054
|
+
D[`${I}__nav-button--next`]
|
|
2037
2055
|
),
|
|
2038
|
-
navButtonInteractionDisabled:
|
|
2039
|
-
caption:
|
|
2040
|
-
weekdays:
|
|
2041
|
-
weekdaysRow:
|
|
2042
|
-
weekday:
|
|
2043
|
-
body:
|
|
2044
|
-
week:
|
|
2045
|
-
weekNumber:
|
|
2046
|
-
day:
|
|
2047
|
-
footer:
|
|
2048
|
-
todayButton:
|
|
2049
|
-
today:
|
|
2050
|
-
selected:
|
|
2051
|
-
disabled:
|
|
2052
|
-
outside:
|
|
2053
|
-
start:
|
|
2054
|
-
end:
|
|
2055
|
-
}, a),
|
|
2056
|
+
navButtonInteractionDisabled: D[`${I}__nav-button--interaction-disabled`],
|
|
2057
|
+
caption: D[`${I}__caption`],
|
|
2058
|
+
weekdays: D[`${I}__weekdays`],
|
|
2059
|
+
weekdaysRow: D[`${I}__weekdays-row`],
|
|
2060
|
+
weekday: D[`${I}__weekday`],
|
|
2061
|
+
body: D[`${I}__body`],
|
|
2062
|
+
week: D[`${I}__week`],
|
|
2063
|
+
weekNumber: D[`${I}__week-number`],
|
|
2064
|
+
day: D[`${I}__day`],
|
|
2065
|
+
footer: D[`${I}__footer`],
|
|
2066
|
+
todayButton: D[`${I}__today-button`],
|
|
2067
|
+
today: D[`${I}__day--today`],
|
|
2068
|
+
selected: D[`${I}__day--selected`],
|
|
2069
|
+
disabled: D[`${I}__day--disabled`],
|
|
2070
|
+
outside: D[`${I}__day--outside`],
|
|
2071
|
+
start: D[`${I}__day--start`],
|
|
2072
|
+
end: D[`${I}__day--end`]
|
|
2073
|
+
}, a), Za = "date-picker", ho = (t) => {
|
|
2056
2074
|
const a = t.getDate();
|
|
2057
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
2075
|
+
return /* @__PURE__ */ e.createElement("div", { className: D[`${Za}__day-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: D[`${Za}__day-content`] }, a));
|
|
2058
2076
|
}, ko = (t) => {
|
|
2059
2077
|
const y = t, {
|
|
2060
2078
|
classNames: a,
|
|
@@ -2064,9 +2082,9 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2064
2082
|
fromMonth: l,
|
|
2065
2083
|
firstDayOfWeek: c,
|
|
2066
2084
|
numberOfMonths: d,
|
|
2067
|
-
navbarElement:
|
|
2068
|
-
renderDay:
|
|
2069
|
-
innerRef:
|
|
2085
|
+
navbarElement: n,
|
|
2086
|
+
renderDay: s,
|
|
2087
|
+
innerRef: i
|
|
2070
2088
|
} = y, m = A(y, [
|
|
2071
2089
|
"classNames",
|
|
2072
2090
|
"range",
|
|
@@ -2078,19 +2096,19 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2078
2096
|
"navbarElement",
|
|
2079
2097
|
"renderDay",
|
|
2080
2098
|
"innerRef"
|
|
2081
|
-
]), [g,
|
|
2099
|
+
]), [g, v] = e.useState(o || /* @__PURE__ */ new Date());
|
|
2082
2100
|
e.useEffect(() => {
|
|
2083
|
-
o && o !== g &&
|
|
2101
|
+
o && o !== g && v(o);
|
|
2084
2102
|
}, [o, g]), e.useEffect(() => {
|
|
2085
|
-
_ && ($r(g, { from: l, to: _ }) ||
|
|
2103
|
+
_ && ($r(g, { from: l, to: _ }) || v(_));
|
|
2086
2104
|
}, [g, t.toMonth, t.fromMonth]);
|
|
2087
2105
|
const b = e.useCallback(
|
|
2088
|
-
(
|
|
2089
|
-
if (t.onMonthChange &&
|
|
2090
|
-
t.onMonthChange(
|
|
2106
|
+
(h) => {
|
|
2107
|
+
if (t.onMonthChange && h) {
|
|
2108
|
+
t.onMonthChange(h);
|
|
2091
2109
|
return;
|
|
2092
2110
|
}
|
|
2093
|
-
|
|
2111
|
+
v(h);
|
|
2094
2112
|
},
|
|
2095
2113
|
[o, t.onMonthChange]
|
|
2096
2114
|
);
|
|
@@ -2102,8 +2120,8 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2102
2120
|
);
|
|
2103
2121
|
return /* @__PURE__ */ e.createElement(
|
|
2104
2122
|
e_,
|
|
2105
|
-
|
|
2106
|
-
navbarElement:
|
|
2123
|
+
k({
|
|
2124
|
+
navbarElement: n || /* @__PURE__ */ e.createElement(
|
|
2107
2125
|
go,
|
|
2108
2126
|
{
|
|
2109
2127
|
month: g,
|
|
@@ -2114,18 +2132,18 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2114
2132
|
fromMonth: l
|
|
2115
2133
|
}
|
|
2116
2134
|
),
|
|
2117
|
-
ref:
|
|
2135
|
+
ref: i,
|
|
2118
2136
|
classNames: p,
|
|
2119
2137
|
numberOfMonths: d,
|
|
2120
2138
|
toMonth: _,
|
|
2121
2139
|
fromMonth: l,
|
|
2122
2140
|
firstDayOfWeek: f,
|
|
2123
2141
|
month: g,
|
|
2124
|
-
renderDay:
|
|
2142
|
+
renderDay: s || ho
|
|
2125
2143
|
}, m)
|
|
2126
2144
|
);
|
|
2127
2145
|
}, yo = e.forwardRef(
|
|
2128
|
-
(t, a) => /* @__PURE__ */ e.createElement(ko,
|
|
2146
|
+
(t, a) => /* @__PURE__ */ e.createElement(ko, k({ innerRef: a }, t))
|
|
2129
2147
|
);
|
|
2130
2148
|
yo.displayName = "DatePicker";
|
|
2131
2149
|
var V = /* @__PURE__ */ ((t) => (t.NEW_SELECTED_ITEM = "NEW_SELECTED_ITEM", t.NEW_TEMPORARY_TO_VALUE = "NEW_TEMPORARY_TO_VALUE", t.CLEAR = "CLEAR", t.SET_FROM = "SET_FROM", t.SET_TO = "SET_TO", t.SELECT_FIRST_DAY = "SELECT_FIRST_DAY", t.SELECT_SECOND_DAY_AS_FROM = "SELECT_SECOND_DAY_AS_FROM", t.SELECT_SECOND_DAY_AS_TO = "SELECT_SECOND_DAY_AS_TO", t.CURRENT_MONTH_CHANGE = "CURRENT_MONTH_CHANGE", t))(V || {});
|
|
@@ -2134,7 +2152,7 @@ const Eo = (t) => {
|
|
|
2134
2152
|
t.initialFromDate,
|
|
2135
2153
|
t.initialToDate,
|
|
2136
2154
|
t.toMonth
|
|
2137
|
-
), _ =
|
|
2155
|
+
), _ = k(k({}, {
|
|
2138
2156
|
selectedItem: null,
|
|
2139
2157
|
from: void 0,
|
|
2140
2158
|
to: void 0,
|
|
@@ -2152,36 +2170,36 @@ const Eo = (t) => {
|
|
|
2152
2170
|
currentMonth: a
|
|
2153
2171
|
};
|
|
2154
2172
|
case V.NEW_TEMPORARY_TO_VALUE:
|
|
2155
|
-
return N(
|
|
2173
|
+
return N(k({}, l), {
|
|
2156
2174
|
temporaryTo: c.payload.date
|
|
2157
2175
|
});
|
|
2158
2176
|
case V.SELECT_FIRST_DAY:
|
|
2159
|
-
return N(
|
|
2177
|
+
return N(k({}, l), {
|
|
2160
2178
|
from: c.payload.date,
|
|
2161
2179
|
to: void 0,
|
|
2162
2180
|
temporaryTo: void 0
|
|
2163
2181
|
});
|
|
2164
2182
|
case V.SELECT_SECOND_DAY_AS_FROM:
|
|
2165
|
-
return N(
|
|
2183
|
+
return N(k({}, l), {
|
|
2166
2184
|
from: c.payload.date,
|
|
2167
2185
|
to: l.from,
|
|
2168
2186
|
temporaryTo: l.from
|
|
2169
2187
|
});
|
|
2170
2188
|
case V.SELECT_SECOND_DAY_AS_TO:
|
|
2171
|
-
return N(
|
|
2189
|
+
return N(k({}, l), {
|
|
2172
2190
|
to: c.payload.date,
|
|
2173
2191
|
temporaryTo: c.payload.date
|
|
2174
2192
|
});
|
|
2175
2193
|
case V.CURRENT_MONTH_CHANGE:
|
|
2176
|
-
return N(
|
|
2194
|
+
return N(k({}, l), {
|
|
2177
2195
|
currentMonth: c.payload.date
|
|
2178
2196
|
});
|
|
2179
2197
|
case V.SET_FROM:
|
|
2180
|
-
return N(
|
|
2198
|
+
return N(k({}, l), {
|
|
2181
2199
|
from: c.payload.date
|
|
2182
2200
|
});
|
|
2183
2201
|
case V.SET_TO:
|
|
2184
|
-
return N(
|
|
2202
|
+
return N(k({}, l), {
|
|
2185
2203
|
to: c.payload.date
|
|
2186
2204
|
});
|
|
2187
2205
|
default:
|
|
@@ -2200,7 +2218,7 @@ const Eo = (t) => {
|
|
|
2200
2218
|
}) => {
|
|
2201
2219
|
const d = Ir(
|
|
2202
2220
|
a || null
|
|
2203
|
-
), [
|
|
2221
|
+
), [n, s] = Eo({
|
|
2204
2222
|
options: t,
|
|
2205
2223
|
initialSelectedItemKey: a,
|
|
2206
2224
|
initialFromDate: r,
|
|
@@ -2210,12 +2228,12 @@ const Eo = (t) => {
|
|
|
2210
2228
|
children: c
|
|
2211
2229
|
});
|
|
2212
2230
|
ut(() => {
|
|
2213
|
-
|
|
2231
|
+
s({
|
|
2214
2232
|
type: V.SET_FROM,
|
|
2215
2233
|
payload: { date: r }
|
|
2216
2234
|
});
|
|
2217
2235
|
}, [r]), ut(() => {
|
|
2218
|
-
|
|
2236
|
+
s({
|
|
2219
2237
|
type: V.SET_TO,
|
|
2220
2238
|
payload: { date: _ }
|
|
2221
2239
|
});
|
|
@@ -2225,23 +2243,23 @@ const Eo = (t) => {
|
|
|
2225
2243
|
_,
|
|
2226
2244
|
o
|
|
2227
2245
|
);
|
|
2228
|
-
|
|
2246
|
+
s({
|
|
2229
2247
|
type: V.CURRENT_MONTH_CHANGE,
|
|
2230
2248
|
payload: { date: f }
|
|
2231
2249
|
});
|
|
2232
2250
|
}, [o, r, _]), ut(() => {
|
|
2233
|
-
const { from: f, selectedItem: p, to: y } =
|
|
2251
|
+
const { from: f, selectedItem: p, to: y } = n;
|
|
2234
2252
|
if (!(f && y))
|
|
2235
2253
|
return;
|
|
2236
|
-
const
|
|
2237
|
-
|
|
2254
|
+
const h = xt(p, t);
|
|
2255
|
+
h && (l == null || l(N(k({}, h), {
|
|
2238
2256
|
value: {
|
|
2239
2257
|
from: f,
|
|
2240
2258
|
to: y
|
|
2241
2259
|
}
|
|
2242
2260
|
})));
|
|
2243
|
-
}, [
|
|
2244
|
-
const { selectedItem: f } =
|
|
2261
|
+
}, [n.from, n.to, n.selectedItem, t, l]), ut(() => {
|
|
2262
|
+
const { selectedItem: f } = n;
|
|
2245
2263
|
if (f === d.current)
|
|
2246
2264
|
return;
|
|
2247
2265
|
if (!f) {
|
|
@@ -2251,61 +2269,61 @@ const Eo = (t) => {
|
|
|
2251
2269
|
if (!xt(f, t))
|
|
2252
2270
|
return;
|
|
2253
2271
|
const y = t.reduce(
|
|
2254
|
-
(
|
|
2272
|
+
(h, E) => N(k({}, h), { [E.id]: E }),
|
|
2255
2273
|
{}
|
|
2256
2274
|
);
|
|
2257
2275
|
l(y[f]);
|
|
2258
|
-
}, [l,
|
|
2259
|
-
const
|
|
2276
|
+
}, [l, n.selectedItem, t]);
|
|
2277
|
+
const i = It(
|
|
2260
2278
|
(f) => {
|
|
2261
2279
|
const p = o ? br(o, f) >= 0 : !0;
|
|
2262
|
-
!
|
|
2280
|
+
!ja(n.from, n.to) && p && s({
|
|
2263
2281
|
type: V.NEW_TEMPORARY_TO_VALUE,
|
|
2264
2282
|
payload: { date: f }
|
|
2265
2283
|
});
|
|
2266
2284
|
},
|
|
2267
|
-
[o,
|
|
2285
|
+
[o, n.from, n.to]
|
|
2268
2286
|
), m = It(
|
|
2269
2287
|
(f) => {
|
|
2270
|
-
const { from: p, to: y } =
|
|
2271
|
-
$r(f, { to: o }) && (
|
|
2288
|
+
const { from: p, to: y } = n;
|
|
2289
|
+
$r(f, { to: o }) && (ja(p, y) ? s({
|
|
2272
2290
|
type: V.SELECT_FIRST_DAY,
|
|
2273
2291
|
payload: { date: f }
|
|
2274
|
-
}) : p &&
|
|
2292
|
+
}) : p && Ta(f, p) || p && Ba(f, p) ? s({
|
|
2275
2293
|
type: V.SELECT_SECOND_DAY_AS_TO,
|
|
2276
2294
|
payload: { date: f }
|
|
2277
|
-
}) :
|
|
2295
|
+
}) : s({
|
|
2278
2296
|
type: V.SELECT_SECOND_DAY_AS_FROM,
|
|
2279
2297
|
payload: { date: f }
|
|
2280
2298
|
}));
|
|
2281
2299
|
},
|
|
2282
|
-
[o,
|
|
2300
|
+
[o, n.from, n.to]
|
|
2283
2301
|
), g = It(
|
|
2284
2302
|
(f) => {
|
|
2285
2303
|
if (f === null) {
|
|
2286
|
-
|
|
2304
|
+
s({
|
|
2287
2305
|
type: V.NEW_SELECTED_ITEM,
|
|
2288
2306
|
payload: { selectedItem: null }
|
|
2289
2307
|
});
|
|
2290
2308
|
return;
|
|
2291
2309
|
}
|
|
2292
|
-
xt(f, t) &&
|
|
2310
|
+
xt(f, t) && s({
|
|
2293
2311
|
type: V.NEW_SELECTED_ITEM,
|
|
2294
2312
|
payload: { selectedItem: f }
|
|
2295
2313
|
});
|
|
2296
2314
|
},
|
|
2297
2315
|
[t]
|
|
2298
|
-
),
|
|
2299
|
-
|
|
2316
|
+
), v = It((f) => {
|
|
2317
|
+
s({
|
|
2300
2318
|
type: V.CURRENT_MONTH_CHANGE,
|
|
2301
2319
|
payload: { date: f }
|
|
2302
2320
|
});
|
|
2303
2321
|
}, []);
|
|
2304
2322
|
return c((() => {
|
|
2305
|
-
const { currentMonth: f, from: p, selectedItem: y, temporaryTo:
|
|
2306
|
-
() => bo(p,
|
|
2307
|
-
[p,
|
|
2308
|
-
), x = Ft(() => xt(y, t), [t, y]), $ = Ft(() => [p, { from: p, to:
|
|
2323
|
+
const { currentMonth: f, from: p, selectedItem: y, temporaryTo: h, to: E } = n, w = Ft(
|
|
2324
|
+
() => bo(p, h),
|
|
2325
|
+
[p, h]
|
|
2326
|
+
), x = Ft(() => xt(y, t), [t, y]), $ = Ft(() => [p, { from: p, to: h }], [p, h]), F = Ft(() => o ? { after: o } : void 0, [o]);
|
|
2309
2327
|
return {
|
|
2310
2328
|
select: {
|
|
2311
2329
|
onItemSelect: g,
|
|
@@ -2325,8 +2343,8 @@ const Eo = (t) => {
|
|
|
2325
2343
|
initialMonth: o && pt(o, 1),
|
|
2326
2344
|
toMonth: o,
|
|
2327
2345
|
disabledDays: F,
|
|
2328
|
-
onDayMouseEnter:
|
|
2329
|
-
onMonthChange:
|
|
2346
|
+
onDayMouseEnter: i,
|
|
2347
|
+
onMonthChange: v
|
|
2330
2348
|
},
|
|
2331
2349
|
selectedOption: x
|
|
2332
2350
|
};
|
|
@@ -2348,32 +2366,31 @@ $o.defaultProps = {
|
|
|
2348
2366
|
const fc = (t) => {
|
|
2349
2367
|
const l = t, { className: a, children: r } = l, _ = A(l, ["className", "children"]), o = u(
|
|
2350
2368
|
a,
|
|
2351
|
-
|
|
2369
|
+
D["date-picker--range__calendars-wrapper"]
|
|
2352
2370
|
);
|
|
2353
|
-
return /* @__PURE__ */ e.createElement("div", N(
|
|
2354
|
-
},
|
|
2371
|
+
return /* @__PURE__ */ e.createElement("div", N(k({}, _), { className: o }), r);
|
|
2372
|
+
}, O = {
|
|
2355
2373
|
"details-card": "lc-DetailsCard-module__details-card___cVoS7",
|
|
2356
|
-
"details-
|
|
2374
|
+
"details-card__button--fading": "lc-DetailsCard-module__details-card__button--fading___tQA02",
|
|
2357
2375
|
"details-card--with-divider": "lc-DetailsCard-module__details-card--with-divider___xyXvc",
|
|
2358
|
-
"details-
|
|
2359
|
-
"details-
|
|
2360
|
-
"details-
|
|
2361
|
-
"details-card__button--hide": "lc-DetailsCard-module__details-card__button--hide___vdQhz",
|
|
2376
|
+
"details-card__label-wrapper": "lc-DetailsCard-module__details-card__label-wrapper___7W-BY",
|
|
2377
|
+
"details-card__label-wrapper--hide": "lc-DetailsCard-module__details-card__label-wrapper--hide___H-U4O",
|
|
2378
|
+
"details-card__label-wrapper--fading": "lc-DetailsCard-module__details-card__label-wrapper--fading___yiAoB",
|
|
2362
2379
|
"details-card__label": "lc-DetailsCard-module__details-card__label___nhDQE",
|
|
2363
2380
|
"details-card__label--with-margin": "lc-DetailsCard-module__details-card__label--with-margin___w2S8X",
|
|
2364
2381
|
"details-card__label__left-node": "lc-DetailsCard-module__details-card__label__left-node___Slmc6",
|
|
2365
2382
|
"details-card__label__right-node": "lc-DetailsCard-module__details-card__label__right-node___ZrOLh",
|
|
2366
2383
|
"details-card__label__content": "lc-DetailsCard-module__details-card__label__content___Cfip3",
|
|
2367
|
-
"details-
|
|
2368
|
-
"details-
|
|
2369
|
-
"details-
|
|
2370
|
-
"details-
|
|
2384
|
+
"details-card__button": "lc-DetailsCard-module__details-card__button___FWUG5",
|
|
2385
|
+
"details-card__button--closed": "lc-DetailsCard-module__details-card__button--closed___TkMaQ",
|
|
2386
|
+
"details-card__button__icon": "lc-DetailsCard-module__details-card__button__icon___iOlKd",
|
|
2387
|
+
"details-card__button__icon--open": "lc-DetailsCard-module__details-card__button__icon--open___TI0Xq",
|
|
2371
2388
|
"details-card__content-wrapper": "lc-DetailsCard-module__details-card__content-wrapper___2UOlE",
|
|
2372
2389
|
"details-card__content-wrapper--open": "lc-DetailsCard-module__details-card__content-wrapper--open___ESQxg",
|
|
2373
2390
|
"details-card__content": "lc-DetailsCard-module__details-card__content___RNVd2",
|
|
2374
2391
|
"details-card__content--spacing": "lc-DetailsCard-module__details-card__content--spacing___QecUa",
|
|
2375
2392
|
"details-card__content--full-space": "lc-DetailsCard-module__details-card__content--full-space___2ms8I"
|
|
2376
|
-
},
|
|
2393
|
+
}, H = "details-card", vc = ({
|
|
2377
2394
|
children: t,
|
|
2378
2395
|
className: a,
|
|
2379
2396
|
leftNode: r,
|
|
@@ -2382,98 +2399,88 @@ const fc = (t) => {
|
|
|
2382
2399
|
withDivider: l,
|
|
2383
2400
|
fullSpaceContent: c,
|
|
2384
2401
|
openOnInit: d = !1,
|
|
2385
|
-
hideLabelOnOpen:
|
|
2386
|
-
onClick:
|
|
2402
|
+
hideLabelOnOpen: n,
|
|
2403
|
+
onClick: s
|
|
2387
2404
|
}) => {
|
|
2388
|
-
const [
|
|
2389
|
-
|
|
2390
|
-
l &&
|
|
2405
|
+
const [i, m] = e.useState(d), [g, v] = e.useState(0), b = e.useRef(null), f = u(
|
|
2406
|
+
O[H],
|
|
2407
|
+
l && O[`${H}--with-divider`],
|
|
2391
2408
|
a
|
|
2392
|
-
), p =
|
|
2393
|
-
m((
|
|
2409
|
+
), p = n && i, y = typeof o == "string", h = (E) => {
|
|
2410
|
+
m((w) => !w), E.currentTarget.blur(), s == null || s();
|
|
2394
2411
|
};
|
|
2395
2412
|
return e.useEffect(() => {
|
|
2396
2413
|
const E = !!window.IntersectionObserver;
|
|
2397
2414
|
if (b.current && E) {
|
|
2398
2415
|
const w = new ResizeObserver(() => {
|
|
2399
|
-
b.current && g !== b.current.offsetHeight &&
|
|
2416
|
+
b.current && g !== b.current.offsetHeight && v(b.current.offsetHeight);
|
|
2400
2417
|
});
|
|
2401
2418
|
return w.observe(b.current), () => w.disconnect();
|
|
2402
2419
|
}
|
|
2403
2420
|
}, [b]), /* @__PURE__ */ e.createElement("div", { className: f }, /* @__PURE__ */ e.createElement(
|
|
2404
|
-
"
|
|
2421
|
+
"div",
|
|
2405
2422
|
{
|
|
2406
2423
|
className: u(
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2424
|
+
O[`${H}__label-wrapper`],
|
|
2425
|
+
n && O[`${H}__label-wrapper--fading`],
|
|
2426
|
+
p && O[`${H}__label-wrapper--hide`],
|
|
2427
|
+
i && O[`${H}__label-wrapper--open`]
|
|
2410
2428
|
),
|
|
2411
|
-
|
|
2412
|
-
"aria-expanded": n,
|
|
2429
|
+
"aria-expanded": i,
|
|
2413
2430
|
"aria-hidden": p,
|
|
2414
|
-
"data-testid": "details-card-
|
|
2431
|
+
"data-testid": "details-card-label"
|
|
2415
2432
|
},
|
|
2416
2433
|
/* @__PURE__ */ e.createElement(
|
|
2417
2434
|
"div",
|
|
2418
2435
|
{
|
|
2419
2436
|
className: u(
|
|
2420
|
-
|
|
2421
|
-
|
|
2437
|
+
O[`${H}__label`],
|
|
2438
|
+
n && O[`${H}__label--with-margin`]
|
|
2422
2439
|
)
|
|
2423
2440
|
},
|
|
2424
|
-
r && /* @__PURE__ */ e.createElement("div", { className:
|
|
2441
|
+
r && /* @__PURE__ */ e.createElement("div", { className: O[`${H}__label__left-node`] }, r),
|
|
2425
2442
|
y ? /* @__PURE__ */ e.createElement(
|
|
2426
2443
|
tt,
|
|
2427
2444
|
{
|
|
2428
2445
|
size: "xs",
|
|
2429
|
-
className:
|
|
2446
|
+
className: O[`${H}__label__content`]
|
|
2430
2447
|
},
|
|
2431
2448
|
o
|
|
2432
|
-
) : /* @__PURE__ */ e.createElement("div", { className:
|
|
2433
|
-
_ && /* @__PURE__ */ e.createElement("div", { className:
|
|
2434
|
-
),
|
|
2435
|
-
!s && /* @__PURE__ */ e.createElement(
|
|
2436
|
-
D,
|
|
2437
|
-
{
|
|
2438
|
-
className: u(
|
|
2439
|
-
R[`${L}__button__icon`],
|
|
2440
|
-
n && R[`${L}__button__icon--open`]
|
|
2441
|
-
),
|
|
2442
|
-
source: Sa
|
|
2443
|
-
}
|
|
2449
|
+
) : /* @__PURE__ */ e.createElement("div", { className: O[`${H}__label__content`] }, o),
|
|
2450
|
+
_ && /* @__PURE__ */ e.createElement("div", { className: O[`${H}__label__right-node`] }, _)
|
|
2444
2451
|
)
|
|
2445
|
-
),
|
|
2452
|
+
), /* @__PURE__ */ e.createElement(
|
|
2446
2453
|
U,
|
|
2447
2454
|
{
|
|
2448
|
-
kind: n ? "float" : "text",
|
|
2455
|
+
kind: i && n ? "float" : "text",
|
|
2449
2456
|
icon: /* @__PURE__ */ e.createElement(
|
|
2450
|
-
|
|
2457
|
+
T,
|
|
2451
2458
|
{
|
|
2452
|
-
source:
|
|
2459
|
+
source: dr,
|
|
2453
2460
|
className: u(
|
|
2454
|
-
|
|
2455
|
-
|
|
2461
|
+
O[`${H}__button__icon`],
|
|
2462
|
+
i && O[`${H}__button__icon--open`]
|
|
2456
2463
|
)
|
|
2457
2464
|
}
|
|
2458
2465
|
),
|
|
2459
2466
|
className: u(
|
|
2460
|
-
|
|
2461
|
-
!
|
|
2462
|
-
|
|
2467
|
+
O[`${H}__button`],
|
|
2468
|
+
!i && O[`${H}__button--closed`],
|
|
2469
|
+
i && O[`${H}__button--open`],
|
|
2470
|
+
n && O[`${H}__button--fading`]
|
|
2463
2471
|
),
|
|
2464
|
-
onClick:
|
|
2465
|
-
"aria-expanded":
|
|
2466
|
-
"data-testid": "details-card-floating-button"
|
|
2472
|
+
onClick: h,
|
|
2473
|
+
"aria-expanded": i
|
|
2467
2474
|
}
|
|
2468
2475
|
), /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
2469
2476
|
"div",
|
|
2470
2477
|
{
|
|
2471
2478
|
className: u(
|
|
2472
|
-
|
|
2473
|
-
|
|
2479
|
+
O[`${H}__content-wrapper`],
|
|
2480
|
+
i && O[`${H}__content-wrapper--open`]
|
|
2474
2481
|
),
|
|
2475
2482
|
style: {
|
|
2476
|
-
maxHeight:
|
|
2483
|
+
maxHeight: i ? g : 0
|
|
2477
2484
|
}
|
|
2478
2485
|
},
|
|
2479
2486
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2481,9 +2488,9 @@ const fc = (t) => {
|
|
|
2481
2488
|
{
|
|
2482
2489
|
ref: b,
|
|
2483
2490
|
className: u(
|
|
2484
|
-
|
|
2485
|
-
c &&
|
|
2486
|
-
|
|
2491
|
+
O[`${H}__content`],
|
|
2492
|
+
c && O[`${H}__content--full-space`],
|
|
2493
|
+
n && O[`${H}__content--spacing`]
|
|
2487
2494
|
)
|
|
2488
2495
|
},
|
|
2489
2496
|
t
|
|
@@ -2496,10 +2503,10 @@ const fc = (t) => {
|
|
|
2496
2503
|
}, ya = "details-card-info", hc = ({
|
|
2497
2504
|
children: t,
|
|
2498
2505
|
label: a
|
|
2499
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: ka[ya] }, /* @__PURE__ */ e.createElement("div", { className: ka[`${ya}__label`] }, a), /* @__PURE__ */ e.createElement("div", { className: ka[`${ya}__content`] }, t)),
|
|
2506
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: ka[ya] }, /* @__PURE__ */ e.createElement("div", { className: ka[`${ya}__label`] }, a), /* @__PURE__ */ e.createElement("div", { className: ka[`${ya}__content`] }, t)), er = {
|
|
2500
2507
|
"field-error": "lc-FieldError-module__field-error___IDkPT",
|
|
2501
2508
|
"field-error__icon": "lc-FieldError-module__field-error__icon___D4UNC"
|
|
2502
|
-
},
|
|
2509
|
+
}, tr = "field-error", La = (_) => {
|
|
2503
2510
|
var o = _, {
|
|
2504
2511
|
children: t,
|
|
2505
2512
|
className: a = ""
|
|
@@ -2507,12 +2514,12 @@ const fc = (t) => {
|
|
|
2507
2514
|
"children",
|
|
2508
2515
|
"className"
|
|
2509
2516
|
]);
|
|
2510
|
-
const l = u(tr
|
|
2511
|
-
return /* @__PURE__ */ e.createElement(M, N(
|
|
2512
|
-
|
|
2517
|
+
const l = u(er[tr], a);
|
|
2518
|
+
return /* @__PURE__ */ e.createElement(M, N(k({ as: "span", size: "sm" }, r), { className: l }), /* @__PURE__ */ e.createElement(
|
|
2519
|
+
T,
|
|
2513
2520
|
{
|
|
2514
|
-
source:
|
|
2515
|
-
className:
|
|
2521
|
+
source: Ia,
|
|
2522
|
+
className: er[`${tr}__icon`],
|
|
2516
2523
|
size: "small"
|
|
2517
2524
|
}
|
|
2518
2525
|
), t);
|
|
@@ -2521,14 +2528,14 @@ const fc = (t) => {
|
|
|
2521
2528
|
"field-group--inline": "lc-FieldGroup-module__field-group--inline___or4qf",
|
|
2522
2529
|
"field-group--stretched": "lc-FieldGroup-module__field-group--stretched___6rkuO"
|
|
2523
2530
|
}, $a = "field-group", kc = (d) => {
|
|
2524
|
-
var
|
|
2531
|
+
var n = d, {
|
|
2525
2532
|
className: t = "",
|
|
2526
2533
|
children: a,
|
|
2527
2534
|
description: r,
|
|
2528
2535
|
error: _,
|
|
2529
2536
|
inline: o,
|
|
2530
2537
|
stretch: l
|
|
2531
|
-
} =
|
|
2538
|
+
} = n, c = A(n, [
|
|
2532
2539
|
"className",
|
|
2533
2540
|
"children",
|
|
2534
2541
|
"description",
|
|
@@ -2536,11 +2543,11 @@ const fc = (t) => {
|
|
|
2536
2543
|
"inline",
|
|
2537
2544
|
"stretch"
|
|
2538
2545
|
]);
|
|
2539
|
-
const
|
|
2546
|
+
const s = u(Ea[$a], t, {
|
|
2540
2547
|
[Ea[`${$a}--inline`]]: o,
|
|
2541
2548
|
[Ea[`${$a}--stretched`]]: l
|
|
2542
2549
|
});
|
|
2543
|
-
return /* @__PURE__ */ e.createElement("div", N(
|
|
2550
|
+
return /* @__PURE__ */ e.createElement("div", N(k({}, c), { className: s }), a, _ && /* @__PURE__ */ e.createElement(La, null, _), r && /* @__PURE__ */ e.createElement(la, null, r));
|
|
2544
2551
|
}, wo = "lc-Form-module__form___1nOYF", No = "lc-Form-module__form__header___U4B7t", Co = "lc-Form-module__form__footer___1-sUX", xo = "lc-Form-module__form__label___spg-J", So = "lc-Form-module__form__helper___bhfwS", yt = {
|
|
2545
2552
|
form: wo,
|
|
2546
2553
|
form__header: No,
|
|
@@ -2561,7 +2568,7 @@ const fc = (t) => {
|
|
|
2561
2568
|
"helperText",
|
|
2562
2569
|
"formFooter"
|
|
2563
2570
|
]);
|
|
2564
|
-
return /* @__PURE__ */ e.createElement("form",
|
|
2571
|
+
return /* @__PURE__ */ e.createElement("form", k({ className: u(yt[Et], t) }, l), (r || _) && /* @__PURE__ */ e.createElement("div", { className: yt[`${Et}__header`] }, r && /* @__PURE__ */ e.createElement(tt, { size: "sm", className: yt[`${Et}__label`] }, r), _ && /* @__PURE__ */ e.createElement(M, { as: "p", size: "sm", className: yt[`${Et}__helper`] }, _)), a, o && /* @__PURE__ */ e.createElement("div", { className: yt[`${Et}__footer`] }, o));
|
|
2565
2572
|
}, Y = {
|
|
2566
2573
|
"form-field": "lc-FormField-module__form-field___JqnX6",
|
|
2567
2574
|
"form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
|
|
@@ -2588,9 +2595,9 @@ const fc = (t) => {
|
|
|
2588
2595
|
className: l,
|
|
2589
2596
|
labelFor: c,
|
|
2590
2597
|
children: d,
|
|
2591
|
-
labelRightNode:
|
|
2598
|
+
labelRightNode: n
|
|
2592
2599
|
}) => {
|
|
2593
|
-
const
|
|
2600
|
+
const s = e.useRef(null), [i, m] = e.useState("auto"), g = u(
|
|
2594
2601
|
Y[q],
|
|
2595
2602
|
{
|
|
2596
2603
|
[Y[`${q}--inline`]]: t
|
|
@@ -2598,9 +2605,9 @@ const fc = (t) => {
|
|
|
2598
2605
|
l
|
|
2599
2606
|
);
|
|
2600
2607
|
return e.useEffect(() => {
|
|
2601
|
-
const
|
|
2602
|
-
return t &&
|
|
2603
|
-
}), /* @__PURE__ */ e.createElement("div", { className: g },
|
|
2608
|
+
const v = s;
|
|
2609
|
+
return t && v.current ? m(`${v.current.clientHeight}px`) : m("auto");
|
|
2610
|
+
}), /* @__PURE__ */ e.createElement("div", { className: g }, n && t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
2604
2611
|
"div",
|
|
2605
2612
|
{
|
|
2606
2613
|
className: u(
|
|
@@ -2608,7 +2615,7 @@ const fc = (t) => {
|
|
|
2608
2615
|
Y[`${q}__label-right-node--inline`]
|
|
2609
2616
|
)
|
|
2610
2617
|
},
|
|
2611
|
-
|
|
2618
|
+
n
|
|
2612
2619
|
), /* @__PURE__ */ e.createElement("div", { className: Y[`${q}__row-break`] })), /* @__PURE__ */ e.createElement(
|
|
2613
2620
|
"div",
|
|
2614
2621
|
{
|
|
@@ -2617,7 +2624,7 @@ const fc = (t) => {
|
|
|
2617
2624
|
t && Y[`${q}__wrapper--inline`]
|
|
2618
2625
|
)
|
|
2619
2626
|
},
|
|
2620
|
-
(_ ||
|
|
2627
|
+
(_ || n) && /* @__PURE__ */ e.createElement(
|
|
2621
2628
|
"div",
|
|
2622
2629
|
{
|
|
2623
2630
|
className: u(
|
|
@@ -2634,7 +2641,7 @@ const fc = (t) => {
|
|
|
2634
2641
|
t && Y[`${q}__label-wrapper--inline`]
|
|
2635
2642
|
),
|
|
2636
2643
|
style: {
|
|
2637
|
-
height:
|
|
2644
|
+
height: i
|
|
2638
2645
|
}
|
|
2639
2646
|
},
|
|
2640
2647
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2656,9 +2663,9 @@ const fc = (t) => {
|
|
|
2656
2663
|
o
|
|
2657
2664
|
)
|
|
2658
2665
|
),
|
|
2659
|
-
|
|
2666
|
+
n && !t && /* @__PURE__ */ e.createElement("div", { className: u(Y[`${q}__label-right-node`]) }, n)
|
|
2660
2667
|
),
|
|
2661
|
-
/* @__PURE__ */ e.createElement("div", { className: u(Y[`${q}__content`]) }, /* @__PURE__ */ e.createElement("div", { ref:
|
|
2668
|
+
/* @__PURE__ */ e.createElement("div", { className: u(Y[`${q}__content`]) }, /* @__PURE__ */ e.createElement("div", { ref: s }, d), a && /* @__PURE__ */ e.createElement(La, null, a), !a && r && /* @__PURE__ */ e.createElement(
|
|
2662
2669
|
la,
|
|
2663
2670
|
{
|
|
2664
2671
|
className: u(Y[`${q}__content__description`])
|
|
@@ -2686,7 +2693,7 @@ const fc = (t) => {
|
|
|
2686
2693
|
const d = u(Gt[Ut], t);
|
|
2687
2694
|
return /* @__PURE__ */ e.createElement(
|
|
2688
2695
|
"div",
|
|
2689
|
-
N(
|
|
2696
|
+
N(k(N(k({}, o), {
|
|
2690
2697
|
role: "group"
|
|
2691
2698
|
}), r && { "aria-label": r }), {
|
|
2692
2699
|
className: d
|
|
@@ -2709,7 +2716,7 @@ const fc = (t) => {
|
|
|
2709
2716
|
"input__icon--left": "lc-Input-module__input__icon--left___BcySs",
|
|
2710
2717
|
"input__icon--right": "lc-Input-module__input__icon--right___VefSK",
|
|
2711
2718
|
"input__visibility-button": "lc-Input-module__input__visibility-button___eWrVe"
|
|
2712
|
-
}, De = "input",
|
|
2719
|
+
}, De = "input", ar = (t, a) => e.cloneElement(t.source, {
|
|
2713
2720
|
"data-testid": `input-icon-${t.place}`,
|
|
2714
2721
|
className: u(
|
|
2715
2722
|
Se[`${De}__icon`],
|
|
@@ -2719,15 +2726,15 @@ const fc = (t) => {
|
|
|
2719
2726
|
}
|
|
2720
2727
|
)
|
|
2721
2728
|
}), wc = e.forwardRef(
|
|
2722
|
-
(
|
|
2723
|
-
var
|
|
2729
|
+
(n, d) => {
|
|
2730
|
+
var s = n, {
|
|
2724
2731
|
inputSize: t = "medium",
|
|
2725
2732
|
error: a = !1,
|
|
2726
2733
|
disabled: r,
|
|
2727
2734
|
icon: _ = null,
|
|
2728
2735
|
className: o,
|
|
2729
2736
|
cropOnBlur: l = !0
|
|
2730
|
-
} =
|
|
2737
|
+
} = s, c = A(s, [
|
|
2731
2738
|
"inputSize",
|
|
2732
2739
|
"error",
|
|
2733
2740
|
"disabled",
|
|
@@ -2735,21 +2742,21 @@ const fc = (t) => {
|
|
|
2735
2742
|
"className",
|
|
2736
2743
|
"cropOnBlur"
|
|
2737
2744
|
]);
|
|
2738
|
-
const [
|
|
2745
|
+
const [i, m] = e.useState(!1), [g, v] = e.useState(!1), { type: b, onFocus: f, onBlur: p } = c, y = u(
|
|
2739
2746
|
o,
|
|
2740
2747
|
Se[De],
|
|
2741
2748
|
Se[`${De}--${t}`],
|
|
2742
2749
|
{
|
|
2743
2750
|
[Se[`${De}--disabled`]]: r,
|
|
2744
|
-
[Se[`${De}--focused`]]:
|
|
2751
|
+
[Se[`${De}--focused`]]: i,
|
|
2745
2752
|
[Se[`${De}--error`]]: a,
|
|
2746
2753
|
[Se[`${De}--crop`]]: l,
|
|
2747
2754
|
[Se[`${De}--read-only`]]: c.readOnly
|
|
2748
2755
|
}
|
|
2749
|
-
),
|
|
2750
|
-
return /* @__PURE__ */ e.createElement("div", { className: y, "aria-disabled": r, "tab-index": "0" }, w &&
|
|
2756
|
+
), h = r ? "var(--content-disabled)" : "var(--content-default)", E = g ? Lr : Or, w = _ && _.place === "left", x = _ && b !== "password" && _.place === "right";
|
|
2757
|
+
return /* @__PURE__ */ e.createElement("div", { className: y, "aria-disabled": r, "tab-index": "0" }, w && ar(_, r), /* @__PURE__ */ e.createElement(
|
|
2751
2758
|
"input",
|
|
2752
|
-
N(
|
|
2759
|
+
N(k({}, c), {
|
|
2753
2760
|
ref: d,
|
|
2754
2761
|
onFocus: ($) => {
|
|
2755
2762
|
m(!0), f == null || f($);
|
|
@@ -2760,22 +2767,22 @@ const fc = (t) => {
|
|
|
2760
2767
|
disabled: r,
|
|
2761
2768
|
type: b && !g ? b : "text"
|
|
2762
2769
|
})
|
|
2763
|
-
), x &&
|
|
2770
|
+
), x && ar(_, r), b === "password" && /* @__PURE__ */ e.createElement(
|
|
2764
2771
|
U,
|
|
2765
2772
|
{
|
|
2766
2773
|
disabled: r,
|
|
2767
2774
|
kind: "text",
|
|
2768
2775
|
size: "compact",
|
|
2769
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
2770
|
-
onClick: () =>
|
|
2776
|
+
icon: /* @__PURE__ */ e.createElement(T, { customColor: h, source: E }),
|
|
2777
|
+
onClick: () => v(($) => !$),
|
|
2771
2778
|
className: Se[`${De}__visibility-button`]
|
|
2772
2779
|
}
|
|
2773
2780
|
));
|
|
2774
2781
|
}
|
|
2775
|
-
), To = "lc-Link-module__link___kqx52",
|
|
2782
|
+
), To = "lc-Link-module__link___kqx52", rr = {
|
|
2776
2783
|
link: To,
|
|
2777
2784
|
"link--bold": "lc-Link-module__link--bold___1rGdO"
|
|
2778
|
-
},
|
|
2785
|
+
}, _r = "link", Nc = (_) => {
|
|
2779
2786
|
var o = _, {
|
|
2780
2787
|
bold: t = !1,
|
|
2781
2788
|
className: a = ""
|
|
@@ -2785,10 +2792,10 @@ const fc = (t) => {
|
|
|
2785
2792
|
]);
|
|
2786
2793
|
return /* @__PURE__ */ e.createElement(
|
|
2787
2794
|
"a",
|
|
2788
|
-
|
|
2795
|
+
k({
|
|
2789
2796
|
className: u(
|
|
2790
|
-
_r
|
|
2791
|
-
t &&
|
|
2797
|
+
rr[_r],
|
|
2798
|
+
t && rr[`${_r}--bold`],
|
|
2792
2799
|
a
|
|
2793
2800
|
)
|
|
2794
2801
|
}, r)
|
|
@@ -2807,8 +2814,8 @@ const fc = (t) => {
|
|
|
2807
2814
|
modal__heading: Ao,
|
|
2808
2815
|
"modal__label-heading": "lc-Modal-module__modal__label-heading___WnYcF",
|
|
2809
2816
|
modal__footer: Io
|
|
2810
|
-
}, $t = "modal-base", Fo = (
|
|
2811
|
-
var
|
|
2817
|
+
}, $t = "modal-base", Fo = (n) => {
|
|
2818
|
+
var s = n, {
|
|
2812
2819
|
children: t,
|
|
2813
2820
|
className: a = "",
|
|
2814
2821
|
onClose: r,
|
|
@@ -2816,7 +2823,7 @@ const fc = (t) => {
|
|
|
2816
2823
|
closeOnOverlayPress: o = !0,
|
|
2817
2824
|
fullSpaceContent: l,
|
|
2818
2825
|
isLabelled: c
|
|
2819
|
-
} =
|
|
2826
|
+
} = s, d = A(s, [
|
|
2820
2827
|
"children",
|
|
2821
2828
|
"className",
|
|
2822
2829
|
"onClose",
|
|
@@ -2825,7 +2832,7 @@ const fc = (t) => {
|
|
|
2825
2832
|
"fullSpaceContent",
|
|
2826
2833
|
"isLabelled"
|
|
2827
2834
|
]);
|
|
2828
|
-
const
|
|
2835
|
+
const i = u(
|
|
2829
2836
|
ie[$t],
|
|
2830
2837
|
a,
|
|
2831
2838
|
l && ie[`${$t}--full-space`]
|
|
@@ -2833,8 +2840,8 @@ const fc = (t) => {
|
|
|
2833
2840
|
e.useEffect(() => {
|
|
2834
2841
|
if (!_)
|
|
2835
2842
|
return;
|
|
2836
|
-
const g = (
|
|
2837
|
-
|
|
2843
|
+
const g = (v) => {
|
|
2844
|
+
v.key === re.esc && r();
|
|
2838
2845
|
};
|
|
2839
2846
|
return document.addEventListener("keyup", g, !0), () => document.removeEventListener("keyup", g, !0);
|
|
2840
2847
|
}, [_]);
|
|
@@ -2854,32 +2861,34 @@ const fc = (t) => {
|
|
|
2854
2861
|
},
|
|
2855
2862
|
/* @__PURE__ */ e.createElement(
|
|
2856
2863
|
"div",
|
|
2857
|
-
|
|
2864
|
+
k({
|
|
2858
2865
|
role: "dialog",
|
|
2859
2866
|
"aria-modal": !0,
|
|
2860
|
-
className:
|
|
2867
|
+
className: i
|
|
2861
2868
|
}, d),
|
|
2862
2869
|
t
|
|
2863
2870
|
)
|
|
2864
2871
|
);
|
|
2865
|
-
},
|
|
2872
|
+
}, or = ({
|
|
2866
2873
|
labelType: t,
|
|
2867
2874
|
customColor: a,
|
|
2868
2875
|
onClick: r
|
|
2869
2876
|
}) => /* @__PURE__ */ e.createElement(
|
|
2870
2877
|
U,
|
|
2871
2878
|
{
|
|
2879
|
+
type: "button",
|
|
2872
2880
|
kind: "plain",
|
|
2881
|
+
"aria-label": "Close modal",
|
|
2873
2882
|
title: "Close modal",
|
|
2874
2883
|
className: u(
|
|
2875
2884
|
ie["modal-base__close"],
|
|
2876
2885
|
t && ie["modal-base__close--label-type"]
|
|
2877
2886
|
),
|
|
2878
2887
|
onClick: r,
|
|
2879
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
2888
|
+
icon: /* @__PURE__ */ e.createElement(T, { source: Te, size: "medium", customColor: a })
|
|
2880
2889
|
}
|
|
2881
|
-
), et = "modal", Cc = (
|
|
2882
|
-
var
|
|
2890
|
+
), et = "modal", Cc = (s) => {
|
|
2891
|
+
var i = s, {
|
|
2883
2892
|
children: t,
|
|
2884
2893
|
className: a = "",
|
|
2885
2894
|
heading: r,
|
|
@@ -2888,7 +2897,7 @@ const fc = (t) => {
|
|
|
2888
2897
|
footer: l,
|
|
2889
2898
|
onClose: c,
|
|
2890
2899
|
contentClassName: d
|
|
2891
|
-
} =
|
|
2900
|
+
} = i, n = A(i, [
|
|
2892
2901
|
"children",
|
|
2893
2902
|
"className",
|
|
2894
2903
|
"heading",
|
|
@@ -2898,17 +2907,17 @@ const fc = (t) => {
|
|
|
2898
2907
|
"onClose",
|
|
2899
2908
|
"contentClassName"
|
|
2900
2909
|
]);
|
|
2901
|
-
const m = u(ie[et], a), g = typeof t == "string",
|
|
2910
|
+
const m = u(ie[et], a), g = typeof t == "string", v = (b) => {
|
|
2902
2911
|
b.preventDefault(), b.stopPropagation(), c();
|
|
2903
2912
|
};
|
|
2904
2913
|
return /* @__PURE__ */ e.createElement(
|
|
2905
2914
|
Fo,
|
|
2906
|
-
|
|
2915
|
+
k({
|
|
2907
2916
|
className: m,
|
|
2908
2917
|
fullSpaceContent: o,
|
|
2909
2918
|
onClose: c,
|
|
2910
2919
|
isLabelled: !!_
|
|
2911
|
-
},
|
|
2920
|
+
}, n),
|
|
2912
2921
|
_ && /* @__PURE__ */ e.createElement("div", { className: ie[`${et}__label-header`] }, /* @__PURE__ */ e.createElement(
|
|
2913
2922
|
tt,
|
|
2914
2923
|
{
|
|
@@ -2918,11 +2927,11 @@ const fc = (t) => {
|
|
|
2918
2927
|
},
|
|
2919
2928
|
_
|
|
2920
2929
|
), /* @__PURE__ */ e.createElement(
|
|
2921
|
-
|
|
2930
|
+
or,
|
|
2922
2931
|
{
|
|
2923
2932
|
labelType: !!_,
|
|
2924
2933
|
customColor: "var(--color-white)",
|
|
2925
|
-
onClick:
|
|
2934
|
+
onClick: v
|
|
2926
2935
|
}
|
|
2927
2936
|
)),
|
|
2928
2937
|
!_ && r && /* @__PURE__ */ e.createElement("div", { className: ie[`${et}__header`] }, /* @__PURE__ */ e.createElement(
|
|
@@ -2933,7 +2942,7 @@ const fc = (t) => {
|
|
|
2933
2942
|
className: ie[`${et}__heading`]
|
|
2934
2943
|
},
|
|
2935
2944
|
r
|
|
2936
|
-
), /* @__PURE__ */ e.createElement(
|
|
2945
|
+
), /* @__PURE__ */ e.createElement(or, { onClick: v })),
|
|
2937
2946
|
/* @__PURE__ */ e.createElement(
|
|
2938
2947
|
"div",
|
|
2939
2948
|
{
|
|
@@ -2973,13 +2982,13 @@ const fc = (t) => {
|
|
|
2973
2982
|
}) => {
|
|
2974
2983
|
const l = t_(ot[lt], o);
|
|
2975
2984
|
return /* @__PURE__ */ e.createElement("div", { className: l }, a && /* @__PURE__ */ e.createElement(
|
|
2976
|
-
|
|
2977
|
-
|
|
2985
|
+
T,
|
|
2986
|
+
k({
|
|
2978
2987
|
className: ot[`${lt}__heading-left-node`]
|
|
2979
2988
|
}, a)
|
|
2980
2989
|
), r && /* @__PURE__ */ e.createElement(
|
|
2981
2990
|
O_,
|
|
2982
|
-
|
|
2991
|
+
k({
|
|
2983
2992
|
className: ot[`${lt}__heading-left-node`]
|
|
2984
2993
|
}, r)
|
|
2985
2994
|
), /* @__PURE__ */ e.createElement("div", { className: ot[`${lt}__heading-body`] }, /* @__PURE__ */ e.createElement(
|
|
@@ -3005,8 +3014,8 @@ const fc = (t) => {
|
|
|
3005
3014
|
"numeric-input--disabled": "lc-NumericInput-module__numeric-input--disabled___yaRvQ",
|
|
3006
3015
|
"numeric-input--no-controls": "lc-NumericInput-module__numeric-input--no-controls___D90rG",
|
|
3007
3016
|
"numeric-input--error": "lc-NumericInput-module__numeric-input--error___TMxRx"
|
|
3008
|
-
}, nt = "numeric-input", Dc = (
|
|
3009
|
-
var m =
|
|
3017
|
+
}, nt = "numeric-input", Dc = (i) => {
|
|
3018
|
+
var m = i, {
|
|
3010
3019
|
className: t,
|
|
3011
3020
|
error: a,
|
|
3012
3021
|
value: r,
|
|
@@ -3015,8 +3024,8 @@ const fc = (t) => {
|
|
|
3015
3024
|
disabled: l,
|
|
3016
3025
|
noControls: c,
|
|
3017
3026
|
style: d,
|
|
3018
|
-
onChange:
|
|
3019
|
-
} = m,
|
|
3027
|
+
onChange: n
|
|
3028
|
+
} = m, s = A(m, [
|
|
3020
3029
|
"className",
|
|
3021
3030
|
"error",
|
|
3022
3031
|
"value",
|
|
@@ -3027,7 +3036,7 @@ const fc = (t) => {
|
|
|
3027
3036
|
"style",
|
|
3028
3037
|
"onChange"
|
|
3029
3038
|
]);
|
|
3030
|
-
const g = e.useRef(null),
|
|
3039
|
+
const g = e.useRef(null), v = u(
|
|
3031
3040
|
ct[nt],
|
|
3032
3041
|
{
|
|
3033
3042
|
[ct[`${nt}--error`]]: a,
|
|
@@ -3035,12 +3044,12 @@ const fc = (t) => {
|
|
|
3035
3044
|
[ct[`${nt}--disabled`]]: l
|
|
3036
3045
|
},
|
|
3037
3046
|
t
|
|
3038
|
-
), b = ($) =>
|
|
3047
|
+
), b = ($) => n(String($)), f = ($) => _ !== void 0 && $ > _ ? _ : o !== void 0 && $ < o ? o : $, p = ($) => {
|
|
3039
3048
|
const F = parseInt(r, 10) + $;
|
|
3040
3049
|
return b(f(F));
|
|
3041
3050
|
}, y = ($) => {
|
|
3042
3051
|
$.key === re.arrowDown && ($.preventDefault(), p(-1)), $.key === re.arrowUp && ($.preventDefault(), p(1));
|
|
3043
|
-
},
|
|
3052
|
+
}, h = ($, F) => F !== void 0 && parseInt($, 10) === F, E = ($) => {
|
|
3044
3053
|
$.preventDefault(), $.stopPropagation();
|
|
3045
3054
|
const F = $.currentTarget.value.replace(
|
|
3046
3055
|
/((?!([-]|([-]?\d+))).)/,
|
|
@@ -3057,12 +3066,12 @@ const fc = (t) => {
|
|
|
3057
3066
|
var $;
|
|
3058
3067
|
return ($ = g.current) == null || $.focus(), p(-1);
|
|
3059
3068
|
};
|
|
3060
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
3069
|
+
return /* @__PURE__ */ e.createElement("div", { className: v, style: d }, /* @__PURE__ */ e.createElement(
|
|
3061
3070
|
"input",
|
|
3062
|
-
N(
|
|
3071
|
+
N(k({
|
|
3063
3072
|
type: "text",
|
|
3064
3073
|
ref: g
|
|
3065
|
-
},
|
|
3074
|
+
}, s), {
|
|
3066
3075
|
value: r,
|
|
3067
3076
|
disabled: l,
|
|
3068
3077
|
onChange: E,
|
|
@@ -3074,17 +3083,17 @@ const fc = (t) => {
|
|
|
3074
3083
|
"button",
|
|
3075
3084
|
{
|
|
3076
3085
|
tabIndex: -1,
|
|
3077
|
-
disabled: l ||
|
|
3086
|
+
disabled: l || h(r, _),
|
|
3078
3087
|
onClick: w,
|
|
3079
3088
|
"aria-label": "Increment value",
|
|
3080
3089
|
className: ct[`${nt}__increment`],
|
|
3081
3090
|
type: "button"
|
|
3082
3091
|
},
|
|
3083
3092
|
/* @__PURE__ */ e.createElement(
|
|
3084
|
-
|
|
3093
|
+
T,
|
|
3085
3094
|
{
|
|
3086
3095
|
source: Xt,
|
|
3087
|
-
disabled: l ||
|
|
3096
|
+
disabled: l || h(r, _),
|
|
3088
3097
|
kind: "primary"
|
|
3089
3098
|
}
|
|
3090
3099
|
)
|
|
@@ -3092,18 +3101,18 @@ const fc = (t) => {
|
|
|
3092
3101
|
"button",
|
|
3093
3102
|
{
|
|
3094
3103
|
tabIndex: -1,
|
|
3095
|
-
disabled: l ||
|
|
3104
|
+
disabled: l || h(r, o),
|
|
3096
3105
|
"aria-label": "Decrement value",
|
|
3097
3106
|
className: ct[`${nt}__decrement`],
|
|
3098
3107
|
onClick: x,
|
|
3099
3108
|
type: "button"
|
|
3100
3109
|
},
|
|
3101
3110
|
/* @__PURE__ */ e.createElement(
|
|
3102
|
-
|
|
3111
|
+
T,
|
|
3103
3112
|
{
|
|
3104
3113
|
source: Bt,
|
|
3105
3114
|
kind: "primary",
|
|
3106
|
-
disabled: l ||
|
|
3115
|
+
disabled: l || h(r, o)
|
|
3107
3116
|
}
|
|
3108
3117
|
)
|
|
3109
3118
|
)));
|
|
@@ -3120,7 +3129,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3120
3129
|
return t.forEach((_, o) => {
|
|
3121
3130
|
a(_) && r.push(o);
|
|
3122
3131
|
}), r;
|
|
3123
|
-
},
|
|
3132
|
+
}, Pa = (t) => t.filter(
|
|
3124
3133
|
({ key: a, disabled: r, groupHeader: _ }) => !(a === Tt || r || _)
|
|
3125
3134
|
), ee = {
|
|
3126
3135
|
"item-wrapper": "lc-PickerListItem-module__item-wrapper___ETYMU",
|
|
@@ -3147,40 +3156,40 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3147
3156
|
item: c,
|
|
3148
3157
|
numberOfItems: d
|
|
3149
3158
|
}) => {
|
|
3150
|
-
const
|
|
3159
|
+
const n = (i) => i != null && i.customElement ? /* @__PURE__ */ e.createElement("div", { className: ee[`${Ee}__custom`] }, i.customElement.listItemBody) : /* @__PURE__ */ e.createElement(e.Fragment, null, i.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
3151
3160
|
po,
|
|
3152
3161
|
{
|
|
3153
3162
|
className: ee[`${Ee}__checkbox`],
|
|
3154
3163
|
checked: r
|
|
3155
3164
|
}
|
|
3156
|
-
),
|
|
3157
|
-
|
|
3165
|
+
), i.icon && /* @__PURE__ */ e.createElement(
|
|
3166
|
+
T,
|
|
3158
3167
|
{
|
|
3159
3168
|
className: ee[`${Ee}__icon`],
|
|
3160
3169
|
kind: "link",
|
|
3161
|
-
source:
|
|
3170
|
+
source: i.icon
|
|
3162
3171
|
}
|
|
3163
|
-
),
|
|
3172
|
+
), i.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
3164
3173
|
"img",
|
|
3165
3174
|
{
|
|
3166
3175
|
className: u(ee[`${Ee}__avatar`]),
|
|
3167
|
-
src:
|
|
3168
|
-
alt:
|
|
3176
|
+
src: i.avatarSrc,
|
|
3177
|
+
alt: i.name
|
|
3169
3178
|
}
|
|
3170
3179
|
), /* @__PURE__ */ e.createElement("div", { className: ee[`${Ee}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
3171
3180
|
"span",
|
|
3172
3181
|
{
|
|
3173
3182
|
className: u({
|
|
3174
|
-
[ee[`${Ee}__main-label`]]:
|
|
3183
|
+
[ee[`${Ee}__main-label`]]: i.secondaryText
|
|
3175
3184
|
}),
|
|
3176
|
-
"aria-disabled":
|
|
3185
|
+
"aria-disabled": i.disabled
|
|
3177
3186
|
},
|
|
3178
|
-
|
|
3179
|
-
),
|
|
3187
|
+
i.name
|
|
3188
|
+
), i.secondaryText && /* @__PURE__ */ e.createElement("span", { className: ee[`${Ee}__secondary-label`] }, i.secondaryText)));
|
|
3180
3189
|
if (c.groupHeader)
|
|
3181
3190
|
return /* @__PURE__ */ e.createElement(
|
|
3182
3191
|
"div",
|
|
3183
|
-
|
|
3192
|
+
k({
|
|
3184
3193
|
id: `item-${t}`,
|
|
3185
3194
|
key: c.key,
|
|
3186
3195
|
role: "group",
|
|
@@ -3188,23 +3197,23 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3188
3197
|
}, l()),
|
|
3189
3198
|
c.name
|
|
3190
3199
|
);
|
|
3191
|
-
const
|
|
3192
|
-
!c.disabled && o(
|
|
3200
|
+
const s = (i) => {
|
|
3201
|
+
!c.disabled && o(i);
|
|
3193
3202
|
};
|
|
3194
3203
|
return /* @__PURE__ */ e.createElement(
|
|
3195
3204
|
"div",
|
|
3196
|
-
N(
|
|
3205
|
+
N(k({
|
|
3197
3206
|
id: c.key,
|
|
3198
3207
|
key: c.key,
|
|
3199
3208
|
tabIndex: a ? 0 : -1,
|
|
3200
|
-
ref: (
|
|
3201
|
-
|
|
3209
|
+
ref: (i) => {
|
|
3210
|
+
i && (_.current[t] = i);
|
|
3202
3211
|
},
|
|
3203
3212
|
role: "option",
|
|
3204
3213
|
"aria-setsize": d,
|
|
3205
3214
|
"aria-posinset": t + 1
|
|
3206
3215
|
}, l({
|
|
3207
|
-
onClick: () =>
|
|
3216
|
+
onClick: () => s(c.key)
|
|
3208
3217
|
})), {
|
|
3209
3218
|
className: u(ee["item-wrapper"], {
|
|
3210
3219
|
[ee["item-wrapper__first"]]: t === 0 && !c.groupHeader,
|
|
@@ -3222,9 +3231,9 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3222
3231
|
[ee[`${Ee}--select-all`]]: c.key === Tt
|
|
3223
3232
|
})
|
|
3224
3233
|
},
|
|
3225
|
-
/* @__PURE__ */ e.createElement("div", { className: ee[`${Ee}__content`] },
|
|
3234
|
+
/* @__PURE__ */ e.createElement("div", { className: ee[`${Ee}__content`] }, n(c)),
|
|
3226
3235
|
r && !c.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
3227
|
-
|
|
3236
|
+
T,
|
|
3228
3237
|
{
|
|
3229
3238
|
kind: "link",
|
|
3230
3239
|
source: Qt,
|
|
@@ -3237,7 +3246,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3237
3246
|
listbox: Oo,
|
|
3238
3247
|
"no-results": "lc-PickerList-module__no-results___QRce-",
|
|
3239
3248
|
"listbox-wrapper": "lc-PickerList-module__listbox-wrapper___FbDrf"
|
|
3240
|
-
},
|
|
3249
|
+
}, lr = "picker-list", Ho = ({
|
|
3241
3250
|
context: t,
|
|
3242
3251
|
setFloating: a,
|
|
3243
3252
|
floatingStyles: r,
|
|
@@ -3246,22 +3255,22 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3246
3255
|
isPositioned: l,
|
|
3247
3256
|
pointer: c,
|
|
3248
3257
|
activeIndex: d,
|
|
3249
|
-
selectedKeys:
|
|
3250
|
-
listElementsRef:
|
|
3251
|
-
setPointer:
|
|
3258
|
+
selectedKeys: n,
|
|
3259
|
+
listElementsRef: s,
|
|
3260
|
+
setPointer: i,
|
|
3252
3261
|
onSelect: m,
|
|
3253
3262
|
getFloatingProps: g,
|
|
3254
|
-
getItemProps:
|
|
3263
|
+
getItemProps: v,
|
|
3255
3264
|
emptyStateText: b = "No results found",
|
|
3256
3265
|
pickerType: f = "single",
|
|
3257
3266
|
listClassName: p,
|
|
3258
3267
|
virtuosoProps: y
|
|
3259
3268
|
}) => {
|
|
3260
|
-
const
|
|
3269
|
+
const h = e.useRef(null), [E, w] = e.useState(wa), x = o.length;
|
|
3261
3270
|
e.useLayoutEffect(() => {
|
|
3262
3271
|
var S;
|
|
3263
|
-
l && !c && d !== null && ((S =
|
|
3264
|
-
}, [l, d, c,
|
|
3272
|
+
l && !c && d !== null && ((S = h.current) == null || S.focus({ preventScroll: !0 }));
|
|
3273
|
+
}, [l, d, c, h]);
|
|
3265
3274
|
const $ = e.useCallback(
|
|
3266
3275
|
(S) => {
|
|
3267
3276
|
S !== E && (S < wa ? w(S + (x - 1) * Mo) : w(wa));
|
|
@@ -3269,12 +3278,12 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3269
3278
|
[x]
|
|
3270
3279
|
);
|
|
3271
3280
|
if (ut(() => {
|
|
3272
|
-
|
|
3281
|
+
s.current = new Array(o.length);
|
|
3273
3282
|
}, [o.length]), o.length === 0) {
|
|
3274
|
-
const S = u(st[
|
|
3275
|
-
[st[`${
|
|
3283
|
+
const S = u(st[lr], {
|
|
3284
|
+
[st[`${lr}__no-results`]]: o.length === 0
|
|
3276
3285
|
});
|
|
3277
|
-
return /* @__PURE__ */ e.createElement(
|
|
3286
|
+
return /* @__PURE__ */ e.createElement(Sa, { context: t, modal: !1, initialFocus: -1 }, /* @__PURE__ */ e.createElement(
|
|
3278
3287
|
"div",
|
|
3279
3288
|
{
|
|
3280
3289
|
className: u(st.listbox, st["no-results"]),
|
|
@@ -3285,54 +3294,54 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3285
3294
|
/* @__PURE__ */ e.createElement("div", { className: S }, b)
|
|
3286
3295
|
));
|
|
3287
3296
|
}
|
|
3288
|
-
const F = (S) =>
|
|
3289
|
-
return /* @__PURE__ */ e.createElement(
|
|
3297
|
+
const F = (S) => n.includes(S) || S === Tt && n.length === Pa(o).length;
|
|
3298
|
+
return /* @__PURE__ */ e.createElement(Sa, { context: t, modal: !1, initialFocus: -1 }, /* @__PURE__ */ e.createElement(
|
|
3290
3299
|
"div",
|
|
3291
3300
|
{
|
|
3292
3301
|
ref: a,
|
|
3293
3302
|
tabIndex: -1,
|
|
3294
3303
|
className: u(st.listbox, p),
|
|
3295
|
-
style: N(
|
|
3304
|
+
style: N(k({}, r), {
|
|
3296
3305
|
maxHeight: _
|
|
3297
3306
|
})
|
|
3298
3307
|
},
|
|
3299
3308
|
/* @__PURE__ */ e.createElement(
|
|
3300
3309
|
"div",
|
|
3301
|
-
|
|
3310
|
+
k({
|
|
3302
3311
|
tabIndex: 0,
|
|
3303
3312
|
"aria-multiselectable": f === "multi",
|
|
3304
3313
|
className: st["listbox-wrapper"],
|
|
3305
|
-
ref:
|
|
3314
|
+
ref: h
|
|
3306
3315
|
}, g({
|
|
3307
3316
|
onKeyDown(S) {
|
|
3308
|
-
|
|
3317
|
+
i(!1), S.key === "Enter" && d !== null && m(o[d].key), S.key === " " && S.preventDefault();
|
|
3309
3318
|
},
|
|
3310
3319
|
onKeyUp(S) {
|
|
3311
3320
|
S.key === " " && d !== null && m(o[d].key);
|
|
3312
3321
|
},
|
|
3313
3322
|
onPointerMove() {
|
|
3314
|
-
|
|
3323
|
+
i(!0);
|
|
3315
3324
|
}
|
|
3316
3325
|
})),
|
|
3317
3326
|
/* @__PURE__ */ e.createElement(
|
|
3318
3327
|
a_,
|
|
3319
|
-
N(
|
|
3328
|
+
N(k({
|
|
3320
3329
|
totalListHeightChanged: $,
|
|
3321
3330
|
style: { height: `${E}px`, maxHeight: _ },
|
|
3322
3331
|
totalCount: o.length,
|
|
3323
3332
|
data: o,
|
|
3324
3333
|
increaseViewportBy: 200
|
|
3325
3334
|
}, y), {
|
|
3326
|
-
itemContent: (S,
|
|
3335
|
+
itemContent: (S, R) => /* @__PURE__ */ e.createElement(
|
|
3327
3336
|
Lo,
|
|
3328
3337
|
{
|
|
3329
3338
|
index: S,
|
|
3330
|
-
getItemProps:
|
|
3331
|
-
listElementsRef:
|
|
3339
|
+
getItemProps: v,
|
|
3340
|
+
listElementsRef: s,
|
|
3332
3341
|
isActive: d === S,
|
|
3333
|
-
isSelected: F(
|
|
3342
|
+
isSelected: F(R.key),
|
|
3334
3343
|
onSelect: m,
|
|
3335
|
-
item:
|
|
3344
|
+
item: R,
|
|
3336
3345
|
numberOfItems: x
|
|
3337
3346
|
}
|
|
3338
3347
|
)
|
|
@@ -3367,29 +3376,29 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3367
3376
|
isItemSelected: l,
|
|
3368
3377
|
hideClearButton: c,
|
|
3369
3378
|
isDisabled: d,
|
|
3370
|
-
isRequired:
|
|
3371
|
-
isOpen:
|
|
3372
|
-
isError:
|
|
3379
|
+
isRequired: n,
|
|
3380
|
+
isOpen: s,
|
|
3381
|
+
isError: i,
|
|
3373
3382
|
onClear: m,
|
|
3374
3383
|
children: g
|
|
3375
3384
|
}) => {
|
|
3376
|
-
const
|
|
3385
|
+
const v = u(
|
|
3377
3386
|
_e[te],
|
|
3378
3387
|
_e[`${te}--${_}`],
|
|
3379
3388
|
o && _e[`${te}--multi-select`],
|
|
3380
3389
|
o && l && _e[`${te}--multi-select--with-items`],
|
|
3381
3390
|
d && _e[`${te}--disabled`],
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
), b = !c && l && !d && !
|
|
3391
|
+
s && _e[`${te}--focused`],
|
|
3392
|
+
i && _e[`${te}--error`]
|
|
3393
|
+
), b = !c && l && !d && !n, f = (p) => {
|
|
3385
3394
|
p.stopPropagation(), m();
|
|
3386
3395
|
};
|
|
3387
3396
|
return /* @__PURE__ */ e.createElement(
|
|
3388
3397
|
"button",
|
|
3389
|
-
|
|
3398
|
+
k({
|
|
3390
3399
|
tabIndex: d ? -1 : 0,
|
|
3391
3400
|
"aria-disabled": d,
|
|
3392
|
-
className:
|
|
3401
|
+
className: v,
|
|
3393
3402
|
"data-testid": r,
|
|
3394
3403
|
ref: t,
|
|
3395
3404
|
type: "button"
|
|
@@ -3420,13 +3429,13 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3420
3429
|
className: _e[`${te}__clear-icon`],
|
|
3421
3430
|
onClick: f
|
|
3422
3431
|
},
|
|
3423
|
-
/* @__PURE__ */ e.createElement(
|
|
3432
|
+
/* @__PURE__ */ e.createElement(T, { kind: "primary", size: "small", source: Te })
|
|
3424
3433
|
),
|
|
3425
3434
|
/* @__PURE__ */ e.createElement(
|
|
3426
|
-
|
|
3435
|
+
T,
|
|
3427
3436
|
{
|
|
3428
3437
|
className: _e[`${te}__chevron-icon`],
|
|
3429
|
-
source:
|
|
3438
|
+
source: s ? Xt : Bt,
|
|
3430
3439
|
size: "medium",
|
|
3431
3440
|
disabled: d
|
|
3432
3441
|
}
|
|
@@ -3453,7 +3462,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3453
3462
|
"tag--dismissible": "lc-Tag-module__tag--dismissible___Qobyr",
|
|
3454
3463
|
tag__node: Vo,
|
|
3455
3464
|
tag__content: Yo
|
|
3456
|
-
}, Oe = "tag", qo = (t) => t ?
|
|
3465
|
+
}, Oe = "tag", qo = (t) => t ? Ma(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", Nr = (m) => {
|
|
3457
3466
|
var g = m, {
|
|
3458
3467
|
className: t = "",
|
|
3459
3468
|
children: a,
|
|
@@ -3463,9 +3472,9 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3463
3472
|
onRemove: l,
|
|
3464
3473
|
outline: c = !1,
|
|
3465
3474
|
leftNode: d,
|
|
3466
|
-
rightNode:
|
|
3467
|
-
customColor:
|
|
3468
|
-
} = g,
|
|
3475
|
+
rightNode: n,
|
|
3476
|
+
customColor: s
|
|
3477
|
+
} = g, i = A(g, [
|
|
3469
3478
|
"className",
|
|
3470
3479
|
"children",
|
|
3471
3480
|
"dismissible",
|
|
@@ -3477,7 +3486,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3477
3486
|
"rightNode",
|
|
3478
3487
|
"customColor"
|
|
3479
3488
|
]);
|
|
3480
|
-
const
|
|
3489
|
+
const v = u(
|
|
3481
3490
|
Le[Oe],
|
|
3482
3491
|
t,
|
|
3483
3492
|
Le[`${Oe}--${_}`],
|
|
@@ -3485,23 +3494,23 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3485
3494
|
{
|
|
3486
3495
|
[Le[`${Oe}--dismissible`]]: r,
|
|
3487
3496
|
[Le[`${Oe}--outline`]]: c,
|
|
3488
|
-
[Le[`${Oe}--${qo(
|
|
3497
|
+
[Le[`${Oe}--${qo(s)}`]]: !!s
|
|
3489
3498
|
}
|
|
3490
|
-
), b = _ === "small" ? "small" : "medium", f = () =>
|
|
3499
|
+
), b = _ === "small" ? "small" : "medium", f = () => s ? c ? {
|
|
3491
3500
|
style: {
|
|
3492
3501
|
backgroundColor: "transparent",
|
|
3493
|
-
color:
|
|
3494
|
-
borderColor:
|
|
3502
|
+
color: s,
|
|
3503
|
+
borderColor: s
|
|
3495
3504
|
}
|
|
3496
|
-
} : { style: { backgroundColor:
|
|
3497
|
-
if (
|
|
3498
|
-
return c ?
|
|
3505
|
+
} : { style: { backgroundColor: s } } : {}, p = () => {
|
|
3506
|
+
if (s)
|
|
3507
|
+
return c ? s : Ma(s, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
|
|
3499
3508
|
};
|
|
3500
3509
|
return /* @__PURE__ */ e.createElement(
|
|
3501
3510
|
M,
|
|
3502
|
-
N(
|
|
3503
|
-
className:
|
|
3504
|
-
},
|
|
3511
|
+
N(k(k({
|
|
3512
|
+
className: v
|
|
3513
|
+
}, i), f()), {
|
|
3505
3514
|
as: "div",
|
|
3506
3515
|
size: "md"
|
|
3507
3516
|
}),
|
|
@@ -3515,13 +3524,13 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3515
3524
|
d
|
|
3516
3525
|
),
|
|
3517
3526
|
/* @__PURE__ */ e.createElement("div", { className: Le[`${Oe}__content`] }, a),
|
|
3518
|
-
|
|
3527
|
+
n && /* @__PURE__ */ e.createElement(
|
|
3519
3528
|
"div",
|
|
3520
3529
|
{
|
|
3521
3530
|
"data-testid": "lc-tag-right-node",
|
|
3522
3531
|
style: { color: p() }
|
|
3523
3532
|
},
|
|
3524
|
-
|
|
3533
|
+
n
|
|
3525
3534
|
),
|
|
3526
3535
|
r && /* @__PURE__ */ e.createElement(
|
|
3527
3536
|
"button",
|
|
@@ -3530,10 +3539,11 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3530
3539
|
title: "Remove",
|
|
3531
3540
|
onClick: l,
|
|
3532
3541
|
type: "button",
|
|
3542
|
+
"aria-label": "Remove tag",
|
|
3533
3543
|
className: Le[`${Oe}__remove`]
|
|
3534
3544
|
},
|
|
3535
3545
|
/* @__PURE__ */ e.createElement(
|
|
3536
|
-
|
|
3546
|
+
T,
|
|
3537
3547
|
{
|
|
3538
3548
|
"data-dismiss-icon": !0,
|
|
3539
3549
|
source: Te,
|
|
@@ -3570,18 +3580,18 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3570
3580
|
type: l,
|
|
3571
3581
|
clearSearchAfterSelection: c,
|
|
3572
3582
|
size: d = "medium",
|
|
3573
|
-
onItemRemove:
|
|
3574
|
-
onSelect:
|
|
3575
|
-
onFilter:
|
|
3583
|
+
onItemRemove: n,
|
|
3584
|
+
onSelect: s,
|
|
3585
|
+
onFilter: i,
|
|
3576
3586
|
searchPhrase: m,
|
|
3577
3587
|
virtualItemRef: g
|
|
3578
3588
|
}) => {
|
|
3579
|
-
const
|
|
3589
|
+
const v = t && !a, b = e.useRef(null);
|
|
3580
3590
|
e.useEffect(() => {
|
|
3581
|
-
c && (
|
|
3591
|
+
c && (i(""), b.current && (b.current.value = "", b.current.focus()));
|
|
3582
3592
|
}, [o, c]);
|
|
3583
3593
|
const f = (E) => l === "single" && t && !a ? null : E != null && E.customElement ? /* @__PURE__ */ e.createElement("div", { className: oe[`${le}__item`] }, E.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: oe[`${le}__item`] }, E.icon && /* @__PURE__ */ e.createElement(
|
|
3584
|
-
|
|
3594
|
+
T,
|
|
3585
3595
|
{
|
|
3586
3596
|
source: E.icon,
|
|
3587
3597
|
className: oe[`${le}__item__icon`]
|
|
@@ -3593,10 +3603,10 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3593
3603
|
alt: "",
|
|
3594
3604
|
className: oe[`${le}__item__avatar`]
|
|
3595
3605
|
}
|
|
3596
|
-
), /* @__PURE__ */ e.createElement("div", { className: oe[`${le}__item__content`] }, E.name)), p = (E) =>
|
|
3606
|
+
), /* @__PURE__ */ e.createElement("div", { className: oe[`${le}__item__content`] }, E.name)), p = (E) => i(E.target.value), y = (E) => {
|
|
3597
3607
|
var w, x;
|
|
3598
|
-
(w = g.current) != null && w.id && E.key === "Enter" &&
|
|
3599
|
-
},
|
|
3608
|
+
(w = g.current) != null && w.id && E.key === "Enter" && s((x = g.current) == null ? void 0 : x.id), l === "multi" && (E.key === "Backspace" || E.key === "Delete") && !m && o && (o == null ? void 0 : o.length) > 0 && n(o[o.length - 1].key);
|
|
3609
|
+
}, h = () => /* @__PURE__ */ e.createElement(
|
|
3600
3610
|
"input",
|
|
3601
3611
|
{
|
|
3602
3612
|
ref: b,
|
|
@@ -3611,7 +3621,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3611
3621
|
value: m
|
|
3612
3622
|
}
|
|
3613
3623
|
);
|
|
3614
|
-
return !o || o.length === 0 ?
|
|
3624
|
+
return !o || o.length === 0 ? v ? h() : /* @__PURE__ */ e.createElement(
|
|
3615
3625
|
"div",
|
|
3616
3626
|
{
|
|
3617
3627
|
className: u({
|
|
@@ -3637,12 +3647,12 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3637
3647
|
),
|
|
3638
3648
|
dismissible: !r,
|
|
3639
3649
|
onRemove: (w) => {
|
|
3640
|
-
w.stopPropagation(),
|
|
3650
|
+
w.stopPropagation(), n(E.key);
|
|
3641
3651
|
}
|
|
3642
3652
|
},
|
|
3643
3653
|
f(E)
|
|
3644
3654
|
))),
|
|
3645
|
-
|
|
3655
|
+
v && h()
|
|
3646
3656
|
);
|
|
3647
3657
|
}, Jo = {
|
|
3648
3658
|
"picker-wrapper": "lc-Picker-module__picker-wrapper___2EDne"
|
|
@@ -3656,17 +3666,17 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3656
3666
|
options: l,
|
|
3657
3667
|
selected: c,
|
|
3658
3668
|
size: d = "medium",
|
|
3659
|
-
placeholder:
|
|
3660
|
-
isRequired:
|
|
3661
|
-
noSearchResultText:
|
|
3669
|
+
placeholder: n = "Select option",
|
|
3670
|
+
isRequired: s,
|
|
3671
|
+
noSearchResultText: i = "No results found",
|
|
3662
3672
|
selectAllOptionText: m,
|
|
3663
3673
|
type: g = "single",
|
|
3664
|
-
searchDisabled:
|
|
3674
|
+
searchDisabled: v = !1,
|
|
3665
3675
|
hideClearButton: b,
|
|
3666
3676
|
openedOnInit: f = !1,
|
|
3667
3677
|
clearSearchAfterSelection: p,
|
|
3668
3678
|
onSelect: y,
|
|
3669
|
-
floatingStrategy:
|
|
3679
|
+
floatingStrategy: h,
|
|
3670
3680
|
useDismissHookProps: E,
|
|
3671
3681
|
useClickHookProps: w,
|
|
3672
3682
|
virtuosoProps: x
|
|
@@ -3694,10 +3704,10 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3694
3704
|
"useClickHookProps",
|
|
3695
3705
|
"virtuosoProps"
|
|
3696
3706
|
]);
|
|
3697
|
-
const [
|
|
3707
|
+
const [R, B] = e.useState(f), [L, j] = e.useState(!1), [$e, de] = e.useState(
|
|
3698
3708
|
() => (c == null ? void 0 : c.map(({ key: G }) => G)) || []
|
|
3699
|
-
), [Be, Pe] = e.useState(null), [ve, Ae] = e.useState(""), [Me, Je] = e.useState(400), at = e.useRef([]), Qe = e.useRef(null),
|
|
3700
|
-
!
|
|
3709
|
+
), [Be, Pe] = e.useState(null), [ve, Ae] = e.useState(""), [Me, Je] = e.useState(400), at = e.useRef([]), Qe = e.useRef(null), P = mr();
|
|
3710
|
+
!R && L && j(!1);
|
|
3701
3711
|
const W = e.useMemo(() => {
|
|
3702
3712
|
const G = g === "multi" && m;
|
|
3703
3713
|
let he = l;
|
|
@@ -3714,17 +3724,17 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3714
3724
|
...he
|
|
3715
3725
|
]), he;
|
|
3716
3726
|
}, [ve, l, g, m]), K = W.length > 0, { refs: Q, floatingStyles: Re, context: Xe, isPositioned: ca } = jt({
|
|
3717
|
-
nodeId:
|
|
3718
|
-
open:
|
|
3719
|
-
strategy:
|
|
3727
|
+
nodeId: P,
|
|
3728
|
+
open: R,
|
|
3729
|
+
strategy: h,
|
|
3720
3730
|
onOpenChange: (G) => {
|
|
3721
|
-
|
|
3731
|
+
B(G);
|
|
3722
3732
|
},
|
|
3723
3733
|
whileElementsMounted: ta,
|
|
3724
3734
|
middleware: [
|
|
3725
3735
|
Zt(4),
|
|
3726
3736
|
ea({ padding: 10 }),
|
|
3727
|
-
|
|
3737
|
+
Fa(),
|
|
3728
3738
|
Jr({
|
|
3729
3739
|
apply({ availableHeight: G, rects: he, elements: me }) {
|
|
3730
3740
|
fr.flushSync(() => {
|
|
@@ -3736,7 +3746,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3736
3746
|
padding: Qo
|
|
3737
3747
|
})
|
|
3738
3748
|
]
|
|
3739
|
-
}), na = aa(Xe,
|
|
3749
|
+
}), na = aa(Xe, k({
|
|
3740
3750
|
enabled: !_,
|
|
3741
3751
|
keyboardHandlers: !1,
|
|
3742
3752
|
toggle: !1
|
|
@@ -3755,15 +3765,15 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3755
3765
|
[na, ia, sa, da]
|
|
3756
3766
|
), gt = (G) => {
|
|
3757
3767
|
const he = W.find((me) => me.key === G);
|
|
3758
|
-
!he || he.disabled || (g === "single" ? (
|
|
3759
|
-
const me =
|
|
3768
|
+
!he || he.disabled || (g === "single" ? (B(!1), de(() => (y([he]), [G]))) : G === Tt ? $e.length === Pa(W).length ? de(() => (y(null), [])) : de(() => {
|
|
3769
|
+
const me = Pa(W);
|
|
3760
3770
|
return y(me), me.map(({ key: rt }) => rt);
|
|
3761
3771
|
}) : de((me) => {
|
|
3762
3772
|
const rt = me.includes(G) ? me.filter((Pt) => Pt !== G) : [...me, G];
|
|
3763
3773
|
return y(l.filter(({ key: Pt }) => rt.includes(Pt))), rt;
|
|
3764
3774
|
}));
|
|
3765
3775
|
}, ga = (G) => Ae(G), ba = (G) => gt(G), ue = () => {
|
|
3766
|
-
|
|
3776
|
+
B(!1), de([]), y(null), Ae("");
|
|
3767
3777
|
};
|
|
3768
3778
|
return /* @__PURE__ */ e.createElement("div", { id: t, className: u(Jo["picker-wrapper"], a) }, /* @__PURE__ */ e.createElement(
|
|
3769
3779
|
zo,
|
|
@@ -3772,22 +3782,22 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3772
3782
|
setReference: Q.setReference,
|
|
3773
3783
|
testId: $["data-testid"],
|
|
3774
3784
|
isItemSelected: $e.length > 0,
|
|
3775
|
-
isOpen:
|
|
3785
|
+
isOpen: R,
|
|
3776
3786
|
onClear: ue,
|
|
3777
3787
|
hideClearButton: b,
|
|
3778
3788
|
isDisabled: _,
|
|
3779
3789
|
isError: o,
|
|
3780
|
-
isRequired:
|
|
3790
|
+
isRequired: s,
|
|
3781
3791
|
isMultiSelect: g === "multi",
|
|
3782
3792
|
size: d
|
|
3783
3793
|
},
|
|
3784
3794
|
/* @__PURE__ */ e.createElement(
|
|
3785
3795
|
Ko,
|
|
3786
3796
|
{
|
|
3787
|
-
isOpen:
|
|
3788
|
-
isSearchDisabled:
|
|
3797
|
+
isOpen: R,
|
|
3798
|
+
isSearchDisabled: v,
|
|
3789
3799
|
isDisabled: _,
|
|
3790
|
-
placeholder:
|
|
3800
|
+
placeholder: n,
|
|
3791
3801
|
selectedItems: c,
|
|
3792
3802
|
type: g,
|
|
3793
3803
|
size: d,
|
|
@@ -3799,7 +3809,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3799
3809
|
virtualItemRef: Qe
|
|
3800
3810
|
}
|
|
3801
3811
|
)
|
|
3802
|
-
), /* @__PURE__ */ e.createElement(pr, { id:
|
|
3812
|
+
), /* @__PURE__ */ e.createElement(pr, { id: P }, R && /* @__PURE__ */ e.createElement(Xr, null, /* @__PURE__ */ e.createElement(
|
|
3803
3813
|
Ho,
|
|
3804
3814
|
{
|
|
3805
3815
|
pickerType: g,
|
|
@@ -3810,7 +3820,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3810
3820
|
floatingStyles: Re,
|
|
3811
3821
|
maxHeight: Me,
|
|
3812
3822
|
isPositioned: ca,
|
|
3813
|
-
pointer:
|
|
3823
|
+
pointer: L,
|
|
3814
3824
|
activeIndex: Be,
|
|
3815
3825
|
selectedKeys: $e,
|
|
3816
3826
|
listElementsRef: at,
|
|
@@ -3818,7 +3828,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3818
3828
|
onSelect: gt,
|
|
3819
3829
|
getFloatingProps: ma,
|
|
3820
3830
|
getItemProps: pa,
|
|
3821
|
-
emptyStateText:
|
|
3831
|
+
emptyStateText: i,
|
|
3822
3832
|
virtuosoProps: x
|
|
3823
3833
|
}
|
|
3824
3834
|
))));
|
|
@@ -3833,45 +3843,45 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3833
3843
|
triggerClassName: l,
|
|
3834
3844
|
placement: c,
|
|
3835
3845
|
flipOptions: d,
|
|
3836
|
-
offsetSize:
|
|
3837
|
-
isVisible:
|
|
3838
|
-
openedOnInit:
|
|
3846
|
+
offsetSize: n = 4,
|
|
3847
|
+
isVisible: s,
|
|
3848
|
+
openedOnInit: i,
|
|
3839
3849
|
closeOnEsc: m = !0,
|
|
3840
3850
|
useDismissHookProps: g,
|
|
3841
|
-
useClickHookProps:
|
|
3851
|
+
useClickHookProps: v,
|
|
3842
3852
|
floatingStrategy: b
|
|
3843
3853
|
}) => {
|
|
3844
|
-
const [f, p] = e.useState(
|
|
3854
|
+
const [f, p] = e.useState(i), y = jr(), h = mr(), E = s !== void 0, w = E ? s : f, x = typeof _ == "string", $ = typeof t == "function", F = (Ae, Me) => {
|
|
3845
3855
|
Ae ? r == null || r(Me) : a == null || a(Me), !E && p(Ae);
|
|
3846
|
-
}, { refs: S, context:
|
|
3847
|
-
nodeId:
|
|
3856
|
+
}, { refs: S, context: R, floatingStyles: B } = jt({
|
|
3857
|
+
nodeId: h,
|
|
3848
3858
|
open: w,
|
|
3849
3859
|
onOpenChange: F,
|
|
3850
|
-
middleware: [Zt(
|
|
3860
|
+
middleware: [Zt(n), ea(d), Fa()],
|
|
3851
3861
|
placement: c,
|
|
3852
3862
|
strategy: b,
|
|
3853
3863
|
whileElementsMounted: ta
|
|
3854
|
-
}),
|
|
3864
|
+
}), L = aa(R, v), j = ra(R, k({
|
|
3855
3865
|
escapeKey: m
|
|
3856
|
-
}, g)), $e = _a(
|
|
3857
|
-
|
|
3866
|
+
}, g)), $e = _a(R), { getReferenceProps: de, getFloatingProps: Be } = oa([
|
|
3867
|
+
L,
|
|
3858
3868
|
j,
|
|
3859
3869
|
$e
|
|
3860
3870
|
]), Pe = u(jo.popover, o), ve = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
3861
3871
|
"div",
|
|
3862
|
-
N(
|
|
3872
|
+
N(k({
|
|
3863
3873
|
"data-testid": "popover-trigger-button",
|
|
3864
3874
|
ref: S.setReference
|
|
3865
3875
|
}, de()), {
|
|
3866
3876
|
className: l
|
|
3867
3877
|
}),
|
|
3868
3878
|
$ ? t() : t
|
|
3869
|
-
), /* @__PURE__ */ e.createElement(pr, { id:
|
|
3879
|
+
), /* @__PURE__ */ e.createElement(pr, { id: h }, w && /* @__PURE__ */ e.createElement(Sa, { context: R, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
3870
3880
|
"div",
|
|
3871
|
-
|
|
3881
|
+
k({
|
|
3872
3882
|
className: Pe,
|
|
3873
3883
|
ref: S.setFloating,
|
|
3874
|
-
style:
|
|
3884
|
+
style: B
|
|
3875
3885
|
}, Be()),
|
|
3876
3886
|
x ? /* @__PURE__ */ e.createElement(M, { as: "div" }, _) : _
|
|
3877
3887
|
))));
|
|
@@ -3919,20 +3929,20 @@ const wt = {
|
|
|
3919
3929
|
"className",
|
|
3920
3930
|
"size"
|
|
3921
3931
|
]);
|
|
3922
|
-
const
|
|
3932
|
+
const n = xr(t, a), s = Cr(n, a), i = tl[_], m = al[_], g = u(
|
|
3923
3933
|
wt[Nt],
|
|
3924
3934
|
{
|
|
3925
3935
|
[wt[`${Nt}--${_}`]]: _,
|
|
3926
3936
|
[wt[`${Nt}--${t}`]]: t
|
|
3927
3937
|
},
|
|
3928
3938
|
r
|
|
3929
|
-
),
|
|
3930
|
-
strokeDasharray:
|
|
3931
|
-
strokeDashoffset: `${((100 -
|
|
3939
|
+
), v = 2 * Math.PI * ((m - i) / 2), b = {
|
|
3940
|
+
strokeDasharray: v.toFixed(3),
|
|
3941
|
+
strokeDashoffset: `${((100 - s) / 100 * v).toFixed(3)}px`
|
|
3932
3942
|
}, f = `${m / 2} ${m / 2} ${m} ${m}`;
|
|
3933
3943
|
return /* @__PURE__ */ e.createElement(
|
|
3934
3944
|
"div",
|
|
3935
|
-
|
|
3945
|
+
k({
|
|
3936
3946
|
className: g,
|
|
3937
3947
|
ref: l,
|
|
3938
3948
|
role: "progressbar"
|
|
@@ -3943,9 +3953,9 @@ const wt = {
|
|
|
3943
3953
|
className: wt[`${Nt}__bg-line--${t}`],
|
|
3944
3954
|
cx: m,
|
|
3945
3955
|
cy: m,
|
|
3946
|
-
r: (m -
|
|
3956
|
+
r: (m - i) / 2,
|
|
3947
3957
|
fill: "none",
|
|
3948
|
-
strokeWidth:
|
|
3958
|
+
strokeWidth: i
|
|
3949
3959
|
}
|
|
3950
3960
|
), /* @__PURE__ */ e.createElement(
|
|
3951
3961
|
"circle",
|
|
@@ -3954,9 +3964,9 @@ const wt = {
|
|
|
3954
3964
|
style: b,
|
|
3955
3965
|
cx: m,
|
|
3956
3966
|
cy: m,
|
|
3957
|
-
r: (m -
|
|
3967
|
+
r: (m - i) / 2,
|
|
3958
3968
|
fill: "none",
|
|
3959
|
-
strokeWidth:
|
|
3969
|
+
strokeWidth: i
|
|
3960
3970
|
}
|
|
3961
3971
|
))
|
|
3962
3972
|
);
|
|
@@ -3984,7 +3994,7 @@ const wt = {
|
|
|
3984
3994
|
"size",
|
|
3985
3995
|
"className"
|
|
3986
3996
|
]);
|
|
3987
|
-
const
|
|
3997
|
+
const n = xr(t, a), s = Cr(n, a), i = u(
|
|
3988
3998
|
Wt[Vt],
|
|
3989
3999
|
{
|
|
3990
4000
|
[Wt[`${Vt}--${r}`]]: r,
|
|
@@ -3994,8 +4004,8 @@ const wt = {
|
|
|
3994
4004
|
);
|
|
3995
4005
|
return /* @__PURE__ */ e.createElement(
|
|
3996
4006
|
"div",
|
|
3997
|
-
N(
|
|
3998
|
-
className:
|
|
4007
|
+
N(k({}, o), {
|
|
4008
|
+
className: i,
|
|
3999
4009
|
ref: l,
|
|
4000
4010
|
role: "progressbar"
|
|
4001
4011
|
}),
|
|
@@ -4003,7 +4013,7 @@ const wt = {
|
|
|
4003
4013
|
"div",
|
|
4004
4014
|
{
|
|
4005
4015
|
className: Wt[`${Vt}__indicator--${t}`],
|
|
4006
|
-
style: { width: `${
|
|
4016
|
+
style: { width: `${s}%` }
|
|
4007
4017
|
}
|
|
4008
4018
|
)
|
|
4009
4019
|
);
|
|
@@ -4029,10 +4039,10 @@ const wt = {
|
|
|
4029
4039
|
light: l = !1,
|
|
4030
4040
|
linkText: c,
|
|
4031
4041
|
onButtonClick: d,
|
|
4032
|
-
onClose:
|
|
4033
|
-
onLinkClick:
|
|
4042
|
+
onClose: n,
|
|
4043
|
+
onLinkClick: s
|
|
4034
4044
|
}) => {
|
|
4035
|
-
const
|
|
4045
|
+
const i = e.useRef(null), [m, g] = e.useState("medium"), v = u(
|
|
4036
4046
|
we[Ne],
|
|
4037
4047
|
{
|
|
4038
4048
|
[we[`${Ne}--light`]]: l,
|
|
@@ -4042,7 +4052,7 @@ const wt = {
|
|
|
4042
4052
|
t
|
|
4043
4053
|
);
|
|
4044
4054
|
e.useEffect(() => {
|
|
4045
|
-
const f = () =>
|
|
4055
|
+
const f = () => i.current && i.current.offsetWidth <= ol ? g("small") : i.current && i.current.offsetWidth >= ll ? g("large") : g("medium"), p = gr(
|
|
4046
4056
|
f,
|
|
4047
4057
|
cl
|
|
4048
4058
|
);
|
|
@@ -4059,15 +4069,15 @@ const wt = {
|
|
|
4059
4069
|
className: we[`${Ne}__button-text`]
|
|
4060
4070
|
},
|
|
4061
4071
|
a
|
|
4062
|
-
), c && /* @__PURE__ */ e.createElement(U, { size: "compact", kind: "text", onClick:
|
|
4063
|
-
return /* @__PURE__ */ e.createElement("div", { ref:
|
|
4072
|
+
), c && /* @__PURE__ */ e.createElement(U, { size: "compact", kind: "text", onClick: s }, c));
|
|
4073
|
+
return /* @__PURE__ */ e.createElement("div", { ref: i, className: v }, /* @__PURE__ */ e.createElement("div", { className: we[`${Ne}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: we[`${Ne}__img`] }), /* @__PURE__ */ e.createElement("div", { className: we[`${Ne}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: we[`${Ne}__header`] }, _), /* @__PURE__ */ e.createElement(M, { as: "div" }, r), m !== "large" && b), m === "large" && b), n && /* @__PURE__ */ e.createElement(
|
|
4064
4074
|
"button",
|
|
4065
4075
|
{
|
|
4066
4076
|
type: "button",
|
|
4067
4077
|
className: we[`${Ne}__close-icon`],
|
|
4068
|
-
onClick:
|
|
4078
|
+
onClick: n
|
|
4069
4079
|
},
|
|
4070
|
-
/* @__PURE__ */ e.createElement(
|
|
4080
|
+
/* @__PURE__ */ e.createElement(T, { source: Te, size: "large", kind: "primary" })
|
|
4071
4081
|
));
|
|
4072
4082
|
}, He = {
|
|
4073
4083
|
"main-wrapper": "lc-PromoBannerV2-module__main-wrapper___U-dPS",
|
|
@@ -4088,10 +4098,10 @@ const wt = {
|
|
|
4088
4098
|
vertical: l,
|
|
4089
4099
|
contentClassName: c,
|
|
4090
4100
|
additionalContentClassName: d,
|
|
4091
|
-
onClose:
|
|
4101
|
+
onClose: n
|
|
4092
4102
|
}) => {
|
|
4093
|
-
const
|
|
4094
|
-
return /* @__PURE__ */ e.createElement("div", { role: "banner", className:
|
|
4103
|
+
const s = u(He["main-wrapper"], a);
|
|
4104
|
+
return /* @__PURE__ */ e.createElement("div", { role: "banner", className: s }, /* @__PURE__ */ e.createElement(
|
|
4095
4105
|
"div",
|
|
4096
4106
|
{
|
|
4097
4107
|
className: u(
|
|
@@ -4125,12 +4135,12 @@ const wt = {
|
|
|
4125
4135
|
},
|
|
4126
4136
|
r
|
|
4127
4137
|
),
|
|
4128
|
-
|
|
4138
|
+
n && /* @__PURE__ */ e.createElement("div", { className: He[`${qe}__close`] }, /* @__PURE__ */ e.createElement(
|
|
4129
4139
|
U,
|
|
4130
4140
|
{
|
|
4131
4141
|
className: He[`${qe}__close__btn`],
|
|
4132
|
-
onClick:
|
|
4133
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
4142
|
+
onClick: n,
|
|
4143
|
+
icon: /* @__PURE__ */ e.createElement(T, { source: Te, kind: "primary" }),
|
|
4134
4144
|
kind: "plain",
|
|
4135
4145
|
size: "compact"
|
|
4136
4146
|
}
|
|
@@ -4148,14 +4158,14 @@ const wt = {
|
|
|
4148
4158
|
"radio-button--disabled": "lc-RadioButton-module__radio-button--disabled___wHSA7"
|
|
4149
4159
|
}, Ge = "radio-button", Ic = e.forwardRef(
|
|
4150
4160
|
(d, c) => {
|
|
4151
|
-
var
|
|
4152
|
-
const
|
|
4161
|
+
var n = d, { children: t, className: a = "", description: r, checked: _, disabled: o } = n, l = A(n, ["children", "className", "description", "checked", "disabled"]);
|
|
4162
|
+
const s = u(ze[Ge], a, {
|
|
4153
4163
|
[ze[`${Ge}--selected`]]: _,
|
|
4154
4164
|
[ze[`${Ge}--disabled`]]: o
|
|
4155
4165
|
});
|
|
4156
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
4166
|
+
return /* @__PURE__ */ e.createElement("div", { className: s }, /* @__PURE__ */ e.createElement("label", { className: ze[`${Ge}__label`] }, /* @__PURE__ */ e.createElement("div", { className: ze[`${Ge}__circle`] }, /* @__PURE__ */ e.createElement("span", { className: ze[`${Ge}__inner-circle`] }), /* @__PURE__ */ e.createElement(
|
|
4157
4167
|
"input",
|
|
4158
|
-
N(
|
|
4168
|
+
N(k({}, l), {
|
|
4159
4169
|
className: ze[`${Ge}__input`],
|
|
4160
4170
|
ref: c,
|
|
4161
4171
|
type: "radio",
|
|
@@ -4187,30 +4197,30 @@ const wt = {
|
|
|
4187
4197
|
className: c,
|
|
4188
4198
|
onChange: d
|
|
4189
4199
|
}) => {
|
|
4190
|
-
const [
|
|
4200
|
+
const [n, s] = e.useState(!0), [i, m] = e.useState(!1), g = e.useRef(null), v = !!l && !a && !r, b = t && !n && "true", f = u(
|
|
4191
4201
|
c,
|
|
4192
4202
|
Fe[xe],
|
|
4193
4203
|
Fe[`${xe}--${o}`],
|
|
4194
|
-
|
|
4204
|
+
i && Fe[`${xe}--focused`],
|
|
4195
4205
|
a && Fe[`${xe}--disabled`],
|
|
4196
4206
|
t && Fe[`${xe}--collapsable`],
|
|
4197
|
-
!
|
|
4207
|
+
!n && Fe[`${xe}--collapsable--open`]
|
|
4198
4208
|
);
|
|
4199
4209
|
e.useEffect(() => {
|
|
4200
|
-
t && l &&
|
|
4210
|
+
t && l && s(!1);
|
|
4201
4211
|
}, [t]);
|
|
4202
4212
|
const p = ($) => {
|
|
4203
4213
|
const F = $.currentTarget.value;
|
|
4204
4214
|
d(F);
|
|
4205
4215
|
}, y = () => {
|
|
4206
4216
|
d("");
|
|
4207
|
-
},
|
|
4217
|
+
}, h = () => {
|
|
4208
4218
|
var $;
|
|
4209
4219
|
($ = g.current) == null || $.focus();
|
|
4210
4220
|
}, E = () => {
|
|
4211
|
-
t &&
|
|
4221
|
+
t && s(!1), m(!0);
|
|
4212
4222
|
}, w = () => {
|
|
4213
|
-
t && !l &&
|
|
4223
|
+
t && !l && s(!0), m(!1);
|
|
4214
4224
|
}, x = ($) => {
|
|
4215
4225
|
$.key === re.enter && ($.preventDefault(), d(l));
|
|
4216
4226
|
};
|
|
@@ -4220,10 +4230,10 @@ const wt = {
|
|
|
4220
4230
|
"aria-expanded": b,
|
|
4221
4231
|
role: "search",
|
|
4222
4232
|
className: f,
|
|
4223
|
-
onClick:
|
|
4233
|
+
onClick: h
|
|
4224
4234
|
},
|
|
4225
4235
|
/* @__PURE__ */ e.createElement(
|
|
4226
|
-
|
|
4236
|
+
T,
|
|
4227
4237
|
{
|
|
4228
4238
|
className: Fe[`${xe}__search-icon`],
|
|
4229
4239
|
source: Hr,
|
|
@@ -4247,14 +4257,14 @@ const wt = {
|
|
|
4247
4257
|
disabled: a
|
|
4248
4258
|
}
|
|
4249
4259
|
),
|
|
4250
|
-
|
|
4260
|
+
v && /* @__PURE__ */ e.createElement(
|
|
4251
4261
|
U,
|
|
4252
4262
|
{
|
|
4253
4263
|
"aria-label": "Clear search",
|
|
4254
4264
|
title: "Clear search",
|
|
4255
4265
|
className: Fe[`${xe}__clear-icon`],
|
|
4256
4266
|
onClick: y,
|
|
4257
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
4267
|
+
icon: /* @__PURE__ */ e.createElement(T, { source: Te, kind: "primary" }),
|
|
4258
4268
|
kind: "text",
|
|
4259
4269
|
size: "compact"
|
|
4260
4270
|
}
|
|
@@ -4265,7 +4275,7 @@ const wt = {
|
|
|
4265
4275
|
"data-testid": `${xe}-loader`,
|
|
4266
4276
|
className: Fe[`${xe}__loader`]
|
|
4267
4277
|
},
|
|
4268
|
-
/* @__PURE__ */ e.createElement(
|
|
4278
|
+
/* @__PURE__ */ e.createElement(Ra, { size: "small" })
|
|
4269
4279
|
)
|
|
4270
4280
|
);
|
|
4271
4281
|
}, sl = "lc-Switch-module__switch__input___NiiOR", il = "lc-Switch-module__switch__container___79F7W", dl = "lc-Switch-module__switch__track___2wr2M", ul = "lc-Switch-module__switch__slider___WHd--", ml = "lc-Switch-module__switch__loader___FE-fA", pl = "lc-Switch-module__switch__icon___-O1qY", ce = {
|
|
@@ -4306,9 +4316,9 @@ const wt = {
|
|
|
4306
4316
|
onChange: l,
|
|
4307
4317
|
size: c = "large",
|
|
4308
4318
|
state: d = "regular",
|
|
4309
|
-
innerRef:
|
|
4310
|
-
ariaLabel:
|
|
4311
|
-
} = g,
|
|
4319
|
+
innerRef: n,
|
|
4320
|
+
ariaLabel: s
|
|
4321
|
+
} = g, i = A(g, [
|
|
4312
4322
|
"className",
|
|
4313
4323
|
"defaultOn",
|
|
4314
4324
|
"disabled",
|
|
@@ -4320,18 +4330,18 @@ const wt = {
|
|
|
4320
4330
|
"innerRef",
|
|
4321
4331
|
"ariaLabel"
|
|
4322
4332
|
]);
|
|
4323
|
-
const
|
|
4324
|
-
() =>
|
|
4325
|
-
), p =
|
|
4333
|
+
const v = o !== void 0, [b, f] = e.useState(
|
|
4334
|
+
() => v ? o : a
|
|
4335
|
+
), p = v ? o : b, y = d === "loading", h = d === "locked", E = c === "large" ? "small" : "xsmall", w = p ? "on" : "off", x = r || y || h, $ = x ? "disabled" : "enabled", F = u(
|
|
4326
4336
|
ce[ae],
|
|
4327
4337
|
ce[`${ae}--${c}`],
|
|
4328
4338
|
t
|
|
4329
|
-
), S = (
|
|
4330
|
-
l == null || l(
|
|
4339
|
+
), S = (R) => {
|
|
4340
|
+
l == null || l(R, !p), v || (R.stopPropagation(), f((B) => !B));
|
|
4331
4341
|
};
|
|
4332
4342
|
return /* @__PURE__ */ e.createElement("span", { className: F }, /* @__PURE__ */ e.createElement(
|
|
4333
4343
|
"input",
|
|
4334
|
-
|
|
4344
|
+
k({
|
|
4335
4345
|
type: "checkbox",
|
|
4336
4346
|
className: u(
|
|
4337
4347
|
ce[`${ae}__input`],
|
|
@@ -4340,10 +4350,10 @@ const wt = {
|
|
|
4340
4350
|
onChange: S,
|
|
4341
4351
|
checked: p,
|
|
4342
4352
|
name: _,
|
|
4343
|
-
ref:
|
|
4353
|
+
ref: n,
|
|
4344
4354
|
disabled: x,
|
|
4345
|
-
"aria-label":
|
|
4346
|
-
},
|
|
4355
|
+
"aria-label": s
|
|
4356
|
+
}, i)
|
|
4347
4357
|
), /* @__PURE__ */ e.createElement("span", { className: ce[`${ae}__container`] }, /* @__PURE__ */ e.createElement(
|
|
4348
4358
|
"span",
|
|
4349
4359
|
{
|
|
@@ -4363,7 +4373,7 @@ const wt = {
|
|
|
4363
4373
|
)
|
|
4364
4374
|
},
|
|
4365
4375
|
y && /* @__PURE__ */ e.createElement(
|
|
4366
|
-
|
|
4376
|
+
Ra,
|
|
4367
4377
|
{
|
|
4368
4378
|
className: u(
|
|
4369
4379
|
ce[`${ae}__loader`],
|
|
@@ -4371,8 +4381,8 @@ const wt = {
|
|
|
4371
4381
|
)
|
|
4372
4382
|
}
|
|
4373
4383
|
),
|
|
4374
|
-
|
|
4375
|
-
|
|
4384
|
+
h && /* @__PURE__ */ e.createElement(
|
|
4385
|
+
T,
|
|
4376
4386
|
{
|
|
4377
4387
|
className: ce[`${ae}__icon`],
|
|
4378
4388
|
"data-testid": "lock-icon",
|
|
@@ -4392,14 +4402,14 @@ const wt = {
|
|
|
4392
4402
|
"tab--selected": "lc-Tab-module__tab--selected___c0EkL",
|
|
4393
4403
|
"tab--disabled": "lc-Tab-module__tab--disabled___URdTh"
|
|
4394
4404
|
}, dt = "tab", Rc = (d) => {
|
|
4395
|
-
var
|
|
4405
|
+
var n = d, {
|
|
4396
4406
|
children: t,
|
|
4397
4407
|
className: a,
|
|
4398
4408
|
count: r,
|
|
4399
4409
|
isSelected: _,
|
|
4400
4410
|
asBadge: o,
|
|
4401
4411
|
size: l = "medium"
|
|
4402
|
-
} =
|
|
4412
|
+
} = n, c = A(n, [
|
|
4403
4413
|
"children",
|
|
4404
4414
|
"className",
|
|
4405
4415
|
"count",
|
|
@@ -4407,10 +4417,10 @@ const wt = {
|
|
|
4407
4417
|
"asBadge",
|
|
4408
4418
|
"size"
|
|
4409
4419
|
]);
|
|
4410
|
-
const { disabled:
|
|
4420
|
+
const { disabled: s } = c, i = r !== void 0 && !o, m = r !== void 0 && o;
|
|
4411
4421
|
return /* @__PURE__ */ e.createElement(
|
|
4412
4422
|
M,
|
|
4413
|
-
N(
|
|
4423
|
+
N(k({}, c), {
|
|
4414
4424
|
as: c.href ? "a" : "button",
|
|
4415
4425
|
size: "md",
|
|
4416
4426
|
bold: _,
|
|
@@ -4419,11 +4429,11 @@ const wt = {
|
|
|
4419
4429
|
it[dt],
|
|
4420
4430
|
it[`${dt}--${l}`],
|
|
4421
4431
|
_ && it[`${dt}--selected`],
|
|
4422
|
-
|
|
4432
|
+
s && it[`${dt}--disabled`]
|
|
4423
4433
|
)
|
|
4424
4434
|
}),
|
|
4425
4435
|
t,
|
|
4426
|
-
|
|
4436
|
+
i && /* @__PURE__ */ e.createElement(M, { as: "span", size: "md", className: it[`${dt}__count`] }, "(", r, ")"),
|
|
4427
4437
|
m && /* @__PURE__ */ e.createElement(
|
|
4428
4438
|
U_,
|
|
4429
4439
|
{
|
|
@@ -4451,19 +4461,19 @@ const wt = {
|
|
|
4451
4461
|
remove: o,
|
|
4452
4462
|
value: l
|
|
4453
4463
|
}) => {
|
|
4454
|
-
const [c, d] = e.useState(!1),
|
|
4455
|
-
const b =
|
|
4464
|
+
const [c, d] = e.useState(!1), n = () => a.current, s = () => {
|
|
4465
|
+
const b = n();
|
|
4456
4466
|
return b ? b.innerText : "";
|
|
4457
|
-
},
|
|
4467
|
+
}, i = () => {
|
|
4458
4468
|
r && r.current && r.current.focus();
|
|
4459
4469
|
}, m = (b) => {
|
|
4460
4470
|
if (b.key === re.enter) {
|
|
4461
|
-
b.preventDefault(),
|
|
4471
|
+
b.preventDefault(), i();
|
|
4462
4472
|
return;
|
|
4463
4473
|
}
|
|
4464
|
-
b.key === re.backspace &&
|
|
4474
|
+
b.key === re.backspace && s() === "" && (d(!0), o(), i());
|
|
4465
4475
|
}, g = () => {
|
|
4466
|
-
const b =
|
|
4476
|
+
const b = n();
|
|
4467
4477
|
if (!(c || !b)) {
|
|
4468
4478
|
if (b.innerText === "") {
|
|
4469
4479
|
o();
|
|
@@ -4471,10 +4481,10 @@ const wt = {
|
|
|
4471
4481
|
}
|
|
4472
4482
|
_(b.innerText);
|
|
4473
4483
|
}
|
|
4474
|
-
},
|
|
4484
|
+
}, v = (b) => {
|
|
4475
4485
|
b.preventDefault();
|
|
4476
4486
|
const f = b.clipboardData.getData("text/plain");
|
|
4477
|
-
document.execCommand("insertHTML", !1,
|
|
4487
|
+
document.execCommand("insertHTML", !1, Ua(f));
|
|
4478
4488
|
};
|
|
4479
4489
|
return /* @__PURE__ */ e.createElement(
|
|
4480
4490
|
"div",
|
|
@@ -4482,10 +4492,10 @@ const wt = {
|
|
|
4482
4492
|
ref: a,
|
|
4483
4493
|
className: t,
|
|
4484
4494
|
contentEditable: !0,
|
|
4485
|
-
onPaste:
|
|
4495
|
+
onPaste: v,
|
|
4486
4496
|
onBlur: g,
|
|
4487
4497
|
onKeyDown: m,
|
|
4488
|
-
dangerouslySetInnerHTML: { __html:
|
|
4498
|
+
dangerouslySetInnerHTML: { __html: Ua(l) }
|
|
4489
4499
|
}
|
|
4490
4500
|
);
|
|
4491
4501
|
}, St = {
|
|
@@ -4504,24 +4514,24 @@ const wt = {
|
|
|
4504
4514
|
update: l,
|
|
4505
4515
|
size: c
|
|
4506
4516
|
}) => {
|
|
4507
|
-
const d = e.useMemo(() => _ !== void 0 ? _(t) : !0, [t, _]),
|
|
4517
|
+
const d = e.useMemo(() => _ !== void 0 ? _(t) : !0, [t, _]), n = e.useRef(null), s = () => r(a);
|
|
4508
4518
|
return /* @__PURE__ */ e.createElement(
|
|
4509
4519
|
Nr,
|
|
4510
4520
|
{
|
|
4511
4521
|
kind: d ? "default" : "error",
|
|
4512
4522
|
dismissible: !0,
|
|
4513
4523
|
size: c,
|
|
4514
|
-
onRemove:
|
|
4524
|
+
onRemove: s
|
|
4515
4525
|
},
|
|
4516
4526
|
/* @__PURE__ */ e.createElement(
|
|
4517
4527
|
kl,
|
|
4518
4528
|
{
|
|
4519
4529
|
value: t,
|
|
4520
4530
|
inputRef: o,
|
|
4521
|
-
innerEditableRef:
|
|
4531
|
+
innerEditableRef: n,
|
|
4522
4532
|
className: St[`${yl}__content`],
|
|
4523
|
-
change: (
|
|
4524
|
-
remove:
|
|
4533
|
+
change: (i) => l(a, i),
|
|
4534
|
+
remove: s,
|
|
4525
4535
|
validator: _
|
|
4526
4536
|
}
|
|
4527
4537
|
)
|
|
@@ -4533,7 +4543,7 @@ const wt = {
|
|
|
4533
4543
|
re.semicolon,
|
|
4534
4544
|
re.comma
|
|
4535
4545
|
], wl = [re.backspace, re.delete], Nl = (g) => {
|
|
4536
|
-
var
|
|
4546
|
+
var v = g, {
|
|
4537
4547
|
id: t,
|
|
4538
4548
|
tags: a,
|
|
4539
4549
|
onChange: r,
|
|
@@ -4542,10 +4552,10 @@ const wt = {
|
|
|
4542
4552
|
placeholder: l,
|
|
4543
4553
|
size: c = "medium",
|
|
4544
4554
|
className: d,
|
|
4545
|
-
inputClassName:
|
|
4546
|
-
onBlur:
|
|
4547
|
-
addOnBlur:
|
|
4548
|
-
} =
|
|
4555
|
+
inputClassName: n,
|
|
4556
|
+
onBlur: s,
|
|
4557
|
+
addOnBlur: i = !0
|
|
4558
|
+
} = v, m = A(v, [
|
|
4549
4559
|
"id",
|
|
4550
4560
|
"tags",
|
|
4551
4561
|
"onChange",
|
|
@@ -4565,72 +4575,72 @@ const wt = {
|
|
|
4565
4575
|
},
|
|
4566
4576
|
d
|
|
4567
4577
|
), f = u(
|
|
4568
|
-
|
|
4578
|
+
n,
|
|
4569
4579
|
St[`${Yt}__input`],
|
|
4570
4580
|
St[`${Yt}__input--${c}`]
|
|
4571
|
-
), [p, y] = e.useState(""),
|
|
4572
|
-
r([...a || [],
|
|
4573
|
-
}, w = (
|
|
4574
|
-
const
|
|
4575
|
-
|
|
4576
|
-
}, x = (
|
|
4577
|
-
if ($l.includes(
|
|
4578
|
-
if (
|
|
4581
|
+
), [p, y] = e.useState(""), h = e.useRef(null), E = (B) => {
|
|
4582
|
+
r([...a || [], B]), y("");
|
|
4583
|
+
}, w = (B) => {
|
|
4584
|
+
const L = [...a || []];
|
|
4585
|
+
L.splice(B, 1), r(L);
|
|
4586
|
+
}, x = (B) => y(B.target.value), $ = (B) => {
|
|
4587
|
+
if ($l.includes(B.key)) {
|
|
4588
|
+
if (B.preventDefault(), p === "")
|
|
4579
4589
|
return;
|
|
4580
4590
|
E(p);
|
|
4581
|
-
} else if (wl.includes(
|
|
4591
|
+
} else if (wl.includes(B.key)) {
|
|
4582
4592
|
if (p !== "" || !(a != null && a.length))
|
|
4583
4593
|
return;
|
|
4584
4594
|
w(a.length - 1);
|
|
4585
4595
|
}
|
|
4586
|
-
}, F = (
|
|
4587
|
-
|
|
4588
|
-
}, S = (
|
|
4596
|
+
}, F = (B) => {
|
|
4597
|
+
i && E(p), s == null || s(B);
|
|
4598
|
+
}, S = (B, L) => {
|
|
4589
4599
|
const j = [...a || []];
|
|
4590
4600
|
j.reduce(
|
|
4591
|
-
(de, Be, Pe) => de + (Be ===
|
|
4601
|
+
(de, Be, Pe) => de + (Be === L && Pe !== B ? 1 : 0),
|
|
4592
4602
|
0
|
|
4593
|
-
) > 0 ? j.splice(
|
|
4594
|
-
},
|
|
4595
|
-
|
|
4596
|
-
const j =
|
|
4603
|
+
) > 0 ? j.splice(B, 1) : j[B] = L, r(j);
|
|
4604
|
+
}, R = (B) => {
|
|
4605
|
+
B.preventDefault();
|
|
4606
|
+
const j = B.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
|
|
4597
4607
|
r([...a || [], ...j]);
|
|
4598
4608
|
};
|
|
4599
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: b }, a == null ? void 0 : a.map((
|
|
4609
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: b }, a == null ? void 0 : a.map((B, L) => /* @__PURE__ */ e.createElement(
|
|
4600
4610
|
El,
|
|
4601
4611
|
{
|
|
4602
|
-
index:
|
|
4603
|
-
key: `${
|
|
4612
|
+
index: L,
|
|
4613
|
+
key: `${L}${B}`,
|
|
4604
4614
|
update: S,
|
|
4605
4615
|
remove: w,
|
|
4606
|
-
inputRef:
|
|
4616
|
+
inputRef: h,
|
|
4607
4617
|
validator: _,
|
|
4608
4618
|
size: c
|
|
4609
4619
|
},
|
|
4610
|
-
|
|
4620
|
+
B
|
|
4611
4621
|
)), /* @__PURE__ */ e.createElement(
|
|
4612
4622
|
"input",
|
|
4613
|
-
N(
|
|
4623
|
+
N(k({}, m), {
|
|
4614
4624
|
id: t,
|
|
4615
|
-
ref:
|
|
4625
|
+
ref: h,
|
|
4616
4626
|
className: f,
|
|
4617
4627
|
placeholder: l,
|
|
4618
4628
|
value: p,
|
|
4619
4629
|
onChange: x,
|
|
4620
4630
|
onKeyDown: $,
|
|
4621
|
-
onPaste:
|
|
4631
|
+
onPaste: R,
|
|
4622
4632
|
onBlur: F
|
|
4623
4633
|
})
|
|
4624
|
-
)), o && /* @__PURE__ */ e.createElement(
|
|
4634
|
+
)), o && /* @__PURE__ */ e.createElement(La, null, o));
|
|
4625
4635
|
}, Cl = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/i, xl = "name@company.com", Sl = (t) => Cl.test(t), Hc = (d) => {
|
|
4626
|
-
var
|
|
4636
|
+
var n = d, {
|
|
4627
4637
|
id: t,
|
|
4628
4638
|
tags: a,
|
|
4629
4639
|
onChange: r,
|
|
4630
4640
|
error: _,
|
|
4631
4641
|
placeholder: o = xl,
|
|
4632
4642
|
size: l
|
|
4633
|
-
} =
|
|
4643
|
+
} = n, c = A(n, [
|
|
4634
4644
|
"id",
|
|
4635
4645
|
"tags",
|
|
4636
4646
|
"onChange",
|
|
@@ -4640,7 +4650,7 @@ const wt = {
|
|
|
4640
4650
|
]);
|
|
4641
4651
|
return /* @__PURE__ */ e.createElement(
|
|
4642
4652
|
Nl,
|
|
4643
|
-
N(
|
|
4653
|
+
N(k({}, c), {
|
|
4644
4654
|
id: t,
|
|
4645
4655
|
tags: a,
|
|
4646
4656
|
error: _,
|
|
@@ -4682,26 +4692,26 @@ const wt = {
|
|
|
4682
4692
|
"toast-exit-active--fade": "lc-Toast-module__toast-exit-active--fade___tL7sb"
|
|
4683
4693
|
}, Al = {
|
|
4684
4694
|
success: {
|
|
4685
|
-
source:
|
|
4695
|
+
source: sr
|
|
4686
4696
|
},
|
|
4687
4697
|
warning: {
|
|
4688
|
-
source:
|
|
4698
|
+
source: nr
|
|
4689
4699
|
},
|
|
4690
4700
|
error: {
|
|
4691
|
-
source:
|
|
4701
|
+
source: ir
|
|
4692
4702
|
},
|
|
4693
4703
|
info: {
|
|
4694
|
-
source:
|
|
4704
|
+
source: Ia
|
|
4695
4705
|
}
|
|
4696
4706
|
}, Ke = "toast", Il = (d) => {
|
|
4697
|
-
var
|
|
4707
|
+
var n = d, {
|
|
4698
4708
|
action: t,
|
|
4699
4709
|
className: a,
|
|
4700
4710
|
children: r,
|
|
4701
4711
|
removable: _,
|
|
4702
4712
|
kind: o = "info",
|
|
4703
4713
|
onClose: l
|
|
4704
|
-
} =
|
|
4714
|
+
} = n, c = A(n, [
|
|
4705
4715
|
"action",
|
|
4706
4716
|
"className",
|
|
4707
4717
|
"children",
|
|
@@ -4709,12 +4719,12 @@ const wt = {
|
|
|
4709
4719
|
"kind",
|
|
4710
4720
|
"onClose"
|
|
4711
4721
|
]);
|
|
4712
|
-
const
|
|
4722
|
+
const s = u(
|
|
4713
4723
|
J[Ke],
|
|
4714
4724
|
J[`${Ke}--${o}`],
|
|
4715
4725
|
a
|
|
4716
|
-
),
|
|
4717
|
-
return /* @__PURE__ */ e.createElement("div",
|
|
4726
|
+
), i = typeof r == "string", m = (g) => g && g.closesOnClick && l ? (g.onClick(), l()) : g.onClick();
|
|
4727
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: s }, c), /* @__PURE__ */ e.createElement("div", { className: J[`${Ke}__icon`] }, /* @__PURE__ */ e.createElement(T, N(k({}, Al[o]), { size: "medium" }))), /* @__PURE__ */ e.createElement("div", { className: J[`${Ke}__content`] }, i ? /* @__PURE__ */ e.createElement(M, { as: "div" }, r) : r), (t || _) && /* @__PURE__ */ e.createElement("div", { className: J[`${Ke}__actions`] }, t && /* @__PURE__ */ e.createElement(
|
|
4718
4728
|
U,
|
|
4719
4729
|
{
|
|
4720
4730
|
className: J[`${Ke}__actions--custom`],
|
|
@@ -4733,7 +4743,7 @@ const wt = {
|
|
|
4733
4743
|
"aria-label": "Close toast",
|
|
4734
4744
|
onClick: l
|
|
4735
4745
|
},
|
|
4736
|
-
/* @__PURE__ */ e.createElement(
|
|
4746
|
+
/* @__PURE__ */ e.createElement(T, { source: Te, size: "medium" })
|
|
4737
4747
|
)));
|
|
4738
4748
|
}, Fl = 200, Ct = "toast-wrapper", zc = ({
|
|
4739
4749
|
className: t,
|
|
@@ -4754,10 +4764,10 @@ const wt = {
|
|
|
4754
4764
|
},
|
|
4755
4765
|
t
|
|
4756
4766
|
);
|
|
4757
|
-
return /* @__PURE__ */ e.createElement("div", { className: d }, /* @__PURE__ */ e.createElement(vr, { component: null }, a.map(({ id:
|
|
4767
|
+
return /* @__PURE__ */ e.createElement("div", { className: d }, /* @__PURE__ */ e.createElement(vr, { component: null }, a.map(({ id: n, kind: s, content: i, removable: m, action: g, onClose: v }) => /* @__PURE__ */ e.createElement(
|
|
4758
4768
|
hr,
|
|
4759
4769
|
{
|
|
4760
|
-
key:
|
|
4770
|
+
key: n,
|
|
4761
4771
|
classNames: {
|
|
4762
4772
|
enter: J[`toast-appear--${o}`],
|
|
4763
4773
|
enterActive: J[`toast-appear-active--${o}`],
|
|
@@ -4769,12 +4779,12 @@ const wt = {
|
|
|
4769
4779
|
/* @__PURE__ */ e.createElement(
|
|
4770
4780
|
Il,
|
|
4771
4781
|
{
|
|
4772
|
-
kind:
|
|
4773
|
-
onClose:
|
|
4782
|
+
kind: s,
|
|
4783
|
+
onClose: v,
|
|
4774
4784
|
removable: m,
|
|
4775
4785
|
action: g
|
|
4776
4786
|
},
|
|
4777
|
-
|
|
4787
|
+
i
|
|
4778
4788
|
)
|
|
4779
4789
|
))));
|
|
4780
4790
|
}, Ml = "lc-Textarea-module__textarea___g6U8F", qt = {
|
|
@@ -4785,20 +4795,20 @@ const wt = {
|
|
|
4785
4795
|
}, Kt = "textarea", Gc = e.forwardRef(
|
|
4786
4796
|
(o, _) => {
|
|
4787
4797
|
var l = o, { className: t, error: a } = l, r = A(l, ["className", "error"]);
|
|
4788
|
-
const { disabled: c, onBlur: d, onFocus:
|
|
4798
|
+
const { disabled: c, onBlur: d, onFocus: n } = r, [s, i] = e.useState(!1), m = u(t, qt[Kt], {
|
|
4789
4799
|
[qt[`${Kt}--disabled`]]: c,
|
|
4790
|
-
[qt[`${Kt}--focused`]]:
|
|
4800
|
+
[qt[`${Kt}--focused`]]: s,
|
|
4791
4801
|
[qt[`${Kt}--error`]]: a
|
|
4792
4802
|
}), g = (b) => {
|
|
4793
|
-
|
|
4794
|
-
},
|
|
4795
|
-
|
|
4803
|
+
i(!1), d == null || d(b);
|
|
4804
|
+
}, v = (b) => {
|
|
4805
|
+
i(!0), n == null || n(b);
|
|
4796
4806
|
};
|
|
4797
4807
|
return /* @__PURE__ */ e.createElement("div", { className: m }, /* @__PURE__ */ e.createElement(
|
|
4798
4808
|
"textarea",
|
|
4799
|
-
N(
|
|
4809
|
+
N(k({}, r), {
|
|
4800
4810
|
ref: _,
|
|
4801
|
-
onFocus:
|
|
4811
|
+
onFocus: v,
|
|
4802
4812
|
onBlur: g
|
|
4803
4813
|
})
|
|
4804
4814
|
));
|
|
@@ -4807,7 +4817,7 @@ const wt = {
|
|
|
4807
4817
|
"file-upload-progress-actions": "lc-FileUploadProgressActions-module__file-upload-progress-actions___qOBr2",
|
|
4808
4818
|
"file-upload-progress-actions__close-button": "lc-FileUploadProgressActions-module__file-upload-progress-actions__close-button___Eh4um",
|
|
4809
4819
|
"file-upload-progress-actions__retry-button": "lc-FileUploadProgressActions-module__file-upload-progress-actions__retry-button___DqFEo"
|
|
4810
|
-
}, Ca = "file-upload-progress-actions",
|
|
4820
|
+
}, Ca = "file-upload-progress-actions", Aa = ({ status: t, onCloseButtonClick: a, onRetryButtonClick: r }) => /* @__PURE__ */ e.createElement("div", { className: Na[`${Ca}`] }, r && t === "error" && /* @__PURE__ */ e.createElement(
|
|
4811
4821
|
"button",
|
|
4812
4822
|
{
|
|
4813
4823
|
type: "button",
|
|
@@ -4815,7 +4825,7 @@ const wt = {
|
|
|
4815
4825
|
"aria-label": "Retry",
|
|
4816
4826
|
onClick: r
|
|
4817
4827
|
},
|
|
4818
|
-
/* @__PURE__ */ e.createElement(
|
|
4828
|
+
/* @__PURE__ */ e.createElement(T, { size: "small", source: Gr })
|
|
4819
4829
|
), a && t !== "success" && /* @__PURE__ */ e.createElement(
|
|
4820
4830
|
"button",
|
|
4821
4831
|
{
|
|
@@ -4824,7 +4834,7 @@ const wt = {
|
|
|
4824
4834
|
"aria-label": "Close",
|
|
4825
4835
|
onClick: a
|
|
4826
4836
|
},
|
|
4827
|
-
/* @__PURE__ */ e.createElement(
|
|
4837
|
+
/* @__PURE__ */ e.createElement(T, { size: "small", source: Te })
|
|
4828
4838
|
)), Ce = {
|
|
4829
4839
|
"file-upload-progress": "lc-FileUploadProgress-module__file-upload-progress___xw8h8",
|
|
4830
4840
|
"file-upload-progress__icon": "lc-FileUploadProgress-module__file-upload-progress__icon___p8Rfz",
|
|
@@ -4846,8 +4856,8 @@ const wt = {
|
|
|
4846
4856
|
size: l,
|
|
4847
4857
|
status: c = "normal",
|
|
4848
4858
|
onCloseButtonClick: d,
|
|
4849
|
-
onRetryButtonClick:
|
|
4850
|
-
},
|
|
4859
|
+
onRetryButtonClick: n
|
|
4860
|
+
}, s) => /* @__PURE__ */ e.createElement("div", { className: Ce[Ue], ref: s }, r && c !== "success" && /* @__PURE__ */ e.createElement("div", { className: Ce[`${Ue}__icon`] }, r), c === "success" && /* @__PURE__ */ e.createElement(
|
|
4851
4861
|
"div",
|
|
4852
4862
|
{
|
|
4853
4863
|
className: u(
|
|
@@ -4855,7 +4865,7 @@ const wt = {
|
|
|
4855
4865
|
Ce[`${Ue}__icon--success`]
|
|
4856
4866
|
)
|
|
4857
4867
|
},
|
|
4858
|
-
/* @__PURE__ */ e.createElement(
|
|
4868
|
+
/* @__PURE__ */ e.createElement(T, { source: Qt })
|
|
4859
4869
|
), /* @__PURE__ */ e.createElement(
|
|
4860
4870
|
"div",
|
|
4861
4871
|
{
|
|
@@ -4882,11 +4892,11 @@ const wt = {
|
|
|
4882
4892
|
})
|
|
4883
4893
|
},
|
|
4884
4894
|
/* @__PURE__ */ e.createElement(
|
|
4885
|
-
|
|
4895
|
+
Aa,
|
|
4886
4896
|
{
|
|
4887
4897
|
status: c,
|
|
4888
4898
|
onCloseButtonClick: d,
|
|
4889
|
-
onRetryButtonClick:
|
|
4899
|
+
onRetryButtonClick: n
|
|
4890
4900
|
}
|
|
4891
4901
|
)
|
|
4892
4902
|
)),
|
|
@@ -4900,7 +4910,7 @@ const wt = {
|
|
|
4900
4910
|
}
|
|
4901
4911
|
)
|
|
4902
4912
|
))
|
|
4903
|
-
),
|
|
4913
|
+
), z = {
|
|
4904
4914
|
"upload-bar": "lc-UploadBar-module__upload-bar___6Or8h",
|
|
4905
4915
|
"upload-bar__loader-test": "lc-UploadBar-module__upload-bar__loader-test___aZb2J",
|
|
4906
4916
|
"upload-bar--error": "lc-UploadBar-module__upload-bar--error___MzvhT",
|
|
@@ -4921,10 +4931,10 @@ const wt = {
|
|
|
4921
4931
|
"upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___2I72G",
|
|
4922
4932
|
"upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___93bs8",
|
|
4923
4933
|
"upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___QJFEq"
|
|
4924
|
-
}, ne = "upload-bar", We = `${ne}__wrapper__header`, Ll = 300, Ol = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement("div", { className:
|
|
4934
|
+
}, ne = "upload-bar", We = `${ne}__wrapper__header`, Ll = 300, Ol = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement("div", { className: z[`${We}__success-icon`] }, /* @__PURE__ */ e.createElement(T, { source: Qt })) : t === "error" ? /* @__PURE__ */ e.createElement("div", { className: z[`${We}__error-icon`] }, /* @__PURE__ */ e.createElement(T, { source: Ur })) : /* @__PURE__ */ e.createElement(
|
|
4925
4935
|
rl,
|
|
4926
4936
|
{
|
|
4927
|
-
className:
|
|
4937
|
+
className: z[`${We}__loader`],
|
|
4928
4938
|
status: t,
|
|
4929
4939
|
progressValue: a
|
|
4930
4940
|
}
|
|
@@ -4937,50 +4947,50 @@ const wt = {
|
|
|
4937
4947
|
errorMessage: l,
|
|
4938
4948
|
status: c = "normal",
|
|
4939
4949
|
icon: d,
|
|
4940
|
-
size:
|
|
4941
|
-
mode:
|
|
4942
|
-
onCloseButtonClick:
|
|
4950
|
+
size: n,
|
|
4951
|
+
mode: s = "multiple",
|
|
4952
|
+
onCloseButtonClick: i,
|
|
4943
4953
|
onRetryButtonClick: m
|
|
4944
4954
|
}) => {
|
|
4945
|
-
const [g,
|
|
4946
|
-
[
|
|
4947
|
-
[
|
|
4948
|
-
}), y = !(b && (m ||
|
|
4949
|
-
return
|
|
4955
|
+
const [g, v] = e.useState(o || !1), b = c === "error", f = c === "success", p = u(z[ne], a, {
|
|
4956
|
+
[z[`${ne}--error`]]: b,
|
|
4957
|
+
[z[`${ne}--success`]]: f
|
|
4958
|
+
}), y = !(b && (m || i)), h = () => v(!g);
|
|
4959
|
+
return s === "single" ? /* @__PURE__ */ e.createElement("div", { className: p }, /* @__PURE__ */ e.createElement("div", { className: z[`${ne}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${We}`] }, /* @__PURE__ */ e.createElement(
|
|
4950
4960
|
Rl,
|
|
4951
4961
|
{
|
|
4952
4962
|
title: b && l || _,
|
|
4953
4963
|
progressValue: r,
|
|
4954
4964
|
status: c,
|
|
4955
4965
|
icon: d,
|
|
4956
|
-
size:
|
|
4966
|
+
size: n
|
|
4957
4967
|
}
|
|
4958
4968
|
)), c === "error" && /* @__PURE__ */ e.createElement(
|
|
4959
|
-
|
|
4969
|
+
Aa,
|
|
4960
4970
|
{
|
|
4961
4971
|
status: c,
|
|
4962
|
-
onCloseButtonClick:
|
|
4972
|
+
onCloseButtonClick: i,
|
|
4963
4973
|
onRetryButtonClick: m
|
|
4964
4974
|
}
|
|
4965
4975
|
))) : /* @__PURE__ */ e.createElement("div", { className: p }, /* @__PURE__ */ e.createElement(
|
|
4966
4976
|
"div",
|
|
4967
4977
|
{
|
|
4968
|
-
className:
|
|
4969
|
-
onClick:
|
|
4978
|
+
className: z[`${ne}__wrapper`],
|
|
4979
|
+
onClick: h
|
|
4970
4980
|
},
|
|
4971
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
4981
|
+
/* @__PURE__ */ e.createElement("div", { className: z[`${We}`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${We}__icon`] }, Ol(c, r)), /* @__PURE__ */ e.createElement("div", { className: z[`${We}__title`] }, /* @__PURE__ */ e.createElement(M, { size: "sm", as: "div" }, b ? l : _)), y && /* @__PURE__ */ e.createElement(
|
|
4972
4982
|
"button",
|
|
4973
4983
|
{
|
|
4974
|
-
className:
|
|
4984
|
+
className: z[`${We}__collapse-button`],
|
|
4975
4985
|
type: "button",
|
|
4976
|
-
onClick:
|
|
4986
|
+
onClick: h
|
|
4977
4987
|
},
|
|
4978
|
-
g ? /* @__PURE__ */ e.createElement(
|
|
4979
|
-
), c === "error" && /* @__PURE__ */ e.createElement("div", { className:
|
|
4980
|
-
|
|
4988
|
+
g ? /* @__PURE__ */ e.createElement(T, { source: Xt }) : /* @__PURE__ */ e.createElement(T, { source: Bt })
|
|
4989
|
+
), c === "error" && /* @__PURE__ */ e.createElement("div", { className: z[`${We}__actions-container`] }, /* @__PURE__ */ e.createElement(
|
|
4990
|
+
Aa,
|
|
4981
4991
|
{
|
|
4982
4992
|
status: c,
|
|
4983
|
-
onCloseButtonClick:
|
|
4993
|
+
onCloseButtonClick: i,
|
|
4984
4994
|
onRetryButtonClick: m
|
|
4985
4995
|
}
|
|
4986
4996
|
)))
|
|
@@ -4989,14 +4999,14 @@ const wt = {
|
|
|
4989
4999
|
{
|
|
4990
5000
|
timeout: Ll,
|
|
4991
5001
|
classNames: {
|
|
4992
|
-
enter:
|
|
4993
|
-
enterActive:
|
|
4994
|
-
exit:
|
|
4995
|
-
exitActive:
|
|
4996
|
-
exitDone:
|
|
5002
|
+
enter: z[`${ne}__files--enter`],
|
|
5003
|
+
enterActive: z[`${ne}__files--enter-active`],
|
|
5004
|
+
exit: z[`${ne}__files--exit`],
|
|
5005
|
+
exitActive: z[`${ne}__files--exit-active`],
|
|
5006
|
+
exitDone: z[`${ne}__files--exit-done`]
|
|
4997
5007
|
}
|
|
4998
5008
|
},
|
|
4999
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
5009
|
+
/* @__PURE__ */ e.createElement("div", { className: z[`${ne}__files`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${ne}__files-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${ne}__files__list`] }, t)))
|
|
5000
5010
|
)));
|
|
5001
5011
|
};
|
|
5002
5012
|
export {
|
|
@@ -5018,23 +5028,23 @@ export {
|
|
|
5018
5028
|
cc as Display,
|
|
5019
5029
|
Hc as EmailTagInput,
|
|
5020
5030
|
la as FieldDescription,
|
|
5021
|
-
|
|
5031
|
+
La as FieldError,
|
|
5022
5032
|
kc as FieldGroup,
|
|
5023
5033
|
Rl as FileUploadProgress,
|
|
5024
|
-
|
|
5034
|
+
Aa as FileUploadProgressActions,
|
|
5025
5035
|
yc as Form,
|
|
5026
5036
|
Ec as FormField,
|
|
5027
5037
|
$c as FormGroup,
|
|
5028
5038
|
tt as Heading,
|
|
5029
|
-
|
|
5039
|
+
T as Icon,
|
|
5030
5040
|
sc as Info,
|
|
5031
5041
|
wc as Input,
|
|
5032
5042
|
ic as Interactive,
|
|
5033
5043
|
Nc as Link,
|
|
5034
|
-
|
|
5044
|
+
Ra as Loader,
|
|
5035
5045
|
Cc as Modal,
|
|
5036
5046
|
Fo as ModalBase,
|
|
5037
|
-
|
|
5047
|
+
or as ModalCloseButton,
|
|
5038
5048
|
Sc as ModalHeader,
|
|
5039
5049
|
xc as ModalPortal,
|
|
5040
5050
|
Dc as NumericInput,
|