@hyphen/hyphen-components 7.9.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/fonts.css +1 -1
- package/dist/css/index.css +292 -150
- package/dist/css/reset.css +1 -1
- package/dist/css/utilities.css +480 -38
- package/dist/css/variables.css +170 -25
- package/dist/hyphen-components.cjs.development.js +244 -311
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +2 -2
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +198 -265
- package/dist/hyphen-components.esm.js.map +1 -1
- package/dist/index.d.ts +25 -60
- package/package.json +3 -3
- package/src/components/Alert/Alert.mdx +1 -1
- package/src/components/Alert/Alert.module.scss +29 -34
- package/src/components/Alert/Alert.stories.tsx +11 -3
- package/src/components/Alert/Alert.test.tsx +17 -11
- package/src/components/Alert/Alert.tsx +9 -16
- package/src/components/Badge/Badge.mdx +46 -4
- package/src/components/Badge/Badge.module.scss +235 -185
- package/src/components/Badge/Badge.stories.tsx +126 -36
- package/src/components/Badge/Badge.test.tsx +180 -21
- package/src/components/Badge/Badge.tsx +56 -21
- package/src/components/Drawer/Drawer.mdx +14 -16
- package/src/components/Formik/Formik.stories.tsx +3 -5
- package/src/components/Formik/FormikTimePicker/FormikTimePicker.test.tsx +34 -67
- package/src/components/Formik/FormikTimePicker/FormikTimePicker.tsx +0 -2
- package/src/components/Table/Table.stories.tsx +4 -4
- package/src/components/TimePicker/TimePicker.mdx +3 -11
- package/src/components/TimePicker/TimePicker.stories.tsx +61 -60
- package/src/components/TimePicker/TimePicker.test.tsx +76 -7
- package/src/components/TimePicker/TimePicker.tsx +37 -7
- package/src/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/docs/Colors.mdx +13 -0
- package/src/index.ts +0 -2
- package/src/components/Formik/FormikTimePickerNative/FormikTimePickerNative.test.tsx +0 -175
- package/src/components/Formik/FormikTimePickerNative/FormikTimePickerNative.tsx +0 -38
- package/src/components/TimePickerNative/TimePickerNative.mdx +0 -67
- package/src/components/TimePickerNative/TimePickerNative.stories.tsx +0 -150
- package/src/components/TimePickerNative/TimePickerNative.test.tsx +0 -117
- package/src/components/TimePickerNative/TimePickerNative.tsx +0 -93
|
@@ -544,7 +544,7 @@ var Icon = forwardRef2(
|
|
|
544
544
|
Icon.displayName = "Icon";
|
|
545
545
|
|
|
546
546
|
// src/components/Alert/Alert.module.scss
|
|
547
|
-
var Alert_module_default = { "alert": "alert__9XZ4A", "close-icon": "close-icon__NDL4K", "alert-heading": "alert-heading__XCRu3", "alert__default": "alert__default__3qStp", "alert__info": "alert__info__BOSxI", "alert__success": "alert__success__NPujz", "alert__warning": "alert__warning__sS3f7", "alert__danger": "alert__danger__6ZwUi"
|
|
547
|
+
var Alert_module_default = { "alert": "alert__9XZ4A", "close-icon": "close-icon__NDL4K", "alert-heading": "alert-heading__XCRu3", "alert__default": "alert__default__3qStp", "alert__info": "alert__info__BOSxI", "alert__success": "alert__success__NPujz", "alert__warning": "alert__warning__sS3f7", "alert__danger": "alert__danger__6ZwUi" };
|
|
548
548
|
|
|
549
549
|
// src/components/Alert/Alert.constants.ts
|
|
550
550
|
var ALERT_ICONS_MAP = {
|
|
@@ -561,7 +561,6 @@ var AlertComponent = ({
|
|
|
561
561
|
className = "",
|
|
562
562
|
hasIcon = false,
|
|
563
563
|
isCompact = false,
|
|
564
|
-
message = "",
|
|
565
564
|
onClose = void 0,
|
|
566
565
|
render = void 0,
|
|
567
566
|
title = "",
|
|
@@ -587,7 +586,7 @@ var AlertComponent = ({
|
|
|
587
586
|
);
|
|
588
587
|
const alertIcon = useMemo(() => {
|
|
589
588
|
if (!hasIcon) return null;
|
|
590
|
-
return /* @__PURE__ */ React2.createElement(Box, { fontSize: "md"
|
|
589
|
+
return /* @__PURE__ */ React2.createElement(Box, { fontSize: "md" }, /* @__PURE__ */ React2.createElement(
|
|
591
590
|
Icon,
|
|
592
591
|
{
|
|
593
592
|
name: ALERT_ICONS_MAP[variant].icon,
|
|
@@ -597,30 +596,22 @@ var AlertComponent = ({
|
|
|
597
596
|
}, [hasIcon, variant]);
|
|
598
597
|
const closeIcon = useMemo(() => {
|
|
599
598
|
if (!onClose) return null;
|
|
600
|
-
return /* @__PURE__ */ React2.createElement(
|
|
601
|
-
|
|
599
|
+
return /* @__PURE__ */ React2.createElement(Box, { margin: "0 0 0 auto", className: Alert_module_default["close-icon"] }, /* @__PURE__ */ React2.createElement(
|
|
600
|
+
"button",
|
|
602
601
|
{
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
602
|
+
type: "button",
|
|
603
|
+
onClick: handleClose,
|
|
604
|
+
onKeyUp: handleCloseKeyPress,
|
|
605
|
+
"aria-label": "dismiss"
|
|
606
606
|
},
|
|
607
|
-
/* @__PURE__ */ React2.createElement(
|
|
608
|
-
|
|
609
|
-
{
|
|
610
|
-
type: "button",
|
|
611
|
-
onClick: handleClose,
|
|
612
|
-
onKeyUp: handleCloseKeyPress,
|
|
613
|
-
"aria-label": "dismiss"
|
|
614
|
-
},
|
|
615
|
-
/* @__PURE__ */ React2.createElement(Icon, { name: "remove", "data-testid": "alert-close-icon-test-id" })
|
|
616
|
-
)
|
|
617
|
-
);
|
|
607
|
+
/* @__PURE__ */ React2.createElement(Icon, { name: "remove", "data-testid": "alert-close-icon-test-id" })
|
|
608
|
+
));
|
|
618
609
|
}, [onClose, handleClose, handleCloseKeyPress]);
|
|
619
610
|
const content = useMemo(() => {
|
|
620
611
|
if (render) {
|
|
621
612
|
return render();
|
|
622
613
|
}
|
|
623
|
-
return /* @__PURE__ */ React2.createElement(Box, { display: "block", childGap:
|
|
614
|
+
return /* @__PURE__ */ React2.createElement(Box, { display: "block", childGap: children && title ? "2xs" : void 0 }, title && /* @__PURE__ */ React2.createElement(
|
|
624
615
|
Box,
|
|
625
616
|
{
|
|
626
617
|
as: "h4",
|
|
@@ -629,8 +620,8 @@ var AlertComponent = ({
|
|
|
629
620
|
className: Alert_module_default["alert-heading"]
|
|
630
621
|
},
|
|
631
622
|
title
|
|
632
|
-
), children
|
|
633
|
-
}, [render,
|
|
623
|
+
), children);
|
|
624
|
+
}, [render, title, children]);
|
|
634
625
|
return /* @__PURE__ */ React2.createElement(
|
|
635
626
|
Box,
|
|
636
627
|
{
|
|
@@ -656,18 +647,29 @@ import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
|
656
647
|
var AspectRatio = AspectRatioPrimitive.Root;
|
|
657
648
|
|
|
658
649
|
// src/components/Badge/Badge.tsx
|
|
659
|
-
import React3, { forwardRef as forwardRef3 } from "react";
|
|
650
|
+
import React3, { Children as Children2, forwardRef as forwardRef3 } from "react";
|
|
660
651
|
import classNames4 from "classnames";
|
|
661
652
|
|
|
662
653
|
// src/components/Badge/Badge.module.scss
|
|
663
|
-
var Badge_module_default = { "badge": "badge__wbyII", "size-sm": "size-sm__v5iQ5", "size-md": "size-md__t0Qz1", "size-lg": "size-lg__HQPfE", "
|
|
654
|
+
var Badge_module_default = { "badge": "badge__wbyII", "size-sm": "size-sm__v5iQ5", "label": "label__pDVHA", "size-md": "size-md__t0Qz1", "size-lg": "size-lg__HQPfE", "color-grey": "color-grey__expYg", "color-blue": "color-blue__W6WO3", "color-green": "color-green__Tb6Do", "color-yellow": "color-yellow__rs3OW", "color-red": "color-red__yD5FI", "color-purple": "color-purple__JH5Qe", "color-orange": "color-orange__Q7DOt", "color-brand": "color-brand__Ri3JN", "solid": "solid__A3Y54", "soft": "soft__Bj0sP", "surface": "surface__IcVyX", "outline": "outline__jrc2I", "radius-none": "radius-none__h6tIW", "radius-sm": "radius-sm__Ioju2", "radius-md": "radius-md__gmDDk", "radius-lg": "radius-lg__08R9C", "radius-full": "radius-full__arYCj", "size-sm-tablet": "size-sm-tablet__IkjZY", "size-md-tablet": "size-md-tablet__kMUva", "size-lg-tablet": "size-lg-tablet__ldE4r", "size-sm-desktop": "size-sm-desktop__alYyy", "size-md-desktop": "size-md-desktop__AvaSK", "size-lg-desktop": "size-lg-desktop__5graA", "size-sm-hd": "size-sm-hd__74Pms", "size-md-hd": "size-md-hd__cEiUq", "size-lg-hd": "size-lg-hd__Qi3ic" };
|
|
664
655
|
|
|
665
656
|
// src/components/Badge/Badge.tsx
|
|
657
|
+
var BADGE_COLOR_ALIASES = {
|
|
658
|
+
danger: "red",
|
|
659
|
+
success: "green",
|
|
660
|
+
warning: "yellow",
|
|
661
|
+
info: "blue"
|
|
662
|
+
};
|
|
663
|
+
var renderBadgeChildren = (children) => Children2.map(
|
|
664
|
+
children,
|
|
665
|
+
(child) => typeof child === "string" || typeof child === "number" ? /* @__PURE__ */ React3.createElement("span", { className: Badge_module_default.label }, child) : child
|
|
666
|
+
);
|
|
666
667
|
var Badge = forwardRef3(
|
|
667
668
|
({
|
|
668
669
|
className = "",
|
|
669
|
-
|
|
670
|
-
|
|
670
|
+
color = "grey",
|
|
671
|
+
radius = "full",
|
|
672
|
+
variant = "soft",
|
|
671
673
|
size = "md",
|
|
672
674
|
children,
|
|
673
675
|
...restProps
|
|
@@ -675,13 +677,14 @@ var Badge = forwardRef3(
|
|
|
675
677
|
const responsiveClasses = generateResponsiveClasses("size", size).map(
|
|
676
678
|
(c) => Badge_module_default[c]
|
|
677
679
|
);
|
|
680
|
+
const hue = BADGE_COLOR_ALIASES[color] ?? color;
|
|
678
681
|
const badgeClasses = classNames4(
|
|
679
682
|
Badge_module_default.badge,
|
|
680
683
|
className,
|
|
681
684
|
responsiveClasses,
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
685
|
+
Badge_module_default[variant],
|
|
686
|
+
Badge_module_default[`color-${hue}`],
|
|
687
|
+
Badge_module_default[`radius-${radius}`]
|
|
685
688
|
);
|
|
686
689
|
return /* @__PURE__ */ React3.createElement(
|
|
687
690
|
Box,
|
|
@@ -693,7 +696,7 @@ var Badge = forwardRef3(
|
|
|
693
696
|
direction: "row",
|
|
694
697
|
...restProps
|
|
695
698
|
},
|
|
696
|
-
children
|
|
699
|
+
renderBadgeChildren(children)
|
|
697
700
|
);
|
|
698
701
|
}
|
|
699
702
|
);
|
|
@@ -2393,8 +2396,8 @@ var handleReactRouterClick = (event, onClick, target, navigate) => {
|
|
|
2393
2396
|
var resolveValue = (valOrFunction, arg) => isFunction(valOrFunction) ? valOrFunction(arg) : valOrFunction;
|
|
2394
2397
|
|
|
2395
2398
|
// src/lib/react-children-utilities/filter.ts
|
|
2396
|
-
import { Children as
|
|
2397
|
-
var filter = (children, filterFn) =>
|
|
2399
|
+
import { Children as Children3 } from "react";
|
|
2400
|
+
var filter = (children, filterFn) => Children3.toArray(children).filter(filterFn);
|
|
2398
2401
|
|
|
2399
2402
|
// src/lib/tokens.ts
|
|
2400
2403
|
import designTokens from "@hyphen/hyphen-design-tokens/build/json/variables";
|
|
@@ -3447,21 +3450,32 @@ var TimePicker = ({
|
|
|
3447
3450
|
value: currentTime.toISOString(),
|
|
3448
3451
|
label: currentTime.toLocaleTimeString(locales, dateDisplayOptions)
|
|
3449
3452
|
});
|
|
3450
|
-
currentTime.setSeconds(
|
|
3453
|
+
currentTime.setSeconds(currentTime.getSeconds() + interval);
|
|
3451
3454
|
}
|
|
3452
3455
|
return timeOptions;
|
|
3453
3456
|
};
|
|
3457
|
+
const options = generateTimes();
|
|
3458
|
+
let valueDate;
|
|
3459
|
+
if (typeof value === "string") {
|
|
3460
|
+
valueDate = new Date(value);
|
|
3461
|
+
} else if (typeof value === "number") {
|
|
3462
|
+
valueDate = new Date(value);
|
|
3463
|
+
}
|
|
3464
|
+
const matchingOption = valueDate && !Number.isNaN(valueDate.getTime()) ? options.find(({ value: optionValue }) => {
|
|
3465
|
+
const optionDate = new Date(optionValue);
|
|
3466
|
+
return optionDate.getHours() === valueDate.getHours() && optionDate.getMinutes() === valueDate.getMinutes() && optionDate.getSeconds() === valueDate.getSeconds();
|
|
3467
|
+
}) : void 0;
|
|
3454
3468
|
return /* @__PURE__ */ React41.createElement(
|
|
3455
|
-
|
|
3469
|
+
SelectInputNative,
|
|
3456
3470
|
{
|
|
3457
3471
|
...restProps,
|
|
3458
3472
|
id,
|
|
3459
3473
|
name,
|
|
3460
3474
|
label,
|
|
3461
3475
|
onChange,
|
|
3462
|
-
options
|
|
3476
|
+
options,
|
|
3463
3477
|
placeholder,
|
|
3464
|
-
value
|
|
3478
|
+
value: matchingOption?.value ?? value
|
|
3465
3479
|
}
|
|
3466
3480
|
);
|
|
3467
3481
|
};
|
|
@@ -3470,7 +3484,6 @@ var TimePicker = ({
|
|
|
3470
3484
|
var FormikTimePicker = ({
|
|
3471
3485
|
field: { name, onBlur, onChange: formikOnChange, value },
|
|
3472
3486
|
form: { touched, errors },
|
|
3473
|
-
options,
|
|
3474
3487
|
onChange,
|
|
3475
3488
|
...props
|
|
3476
3489
|
}) => /* @__PURE__ */ React42.createElement(
|
|
@@ -3481,96 +3494,18 @@ var FormikTimePicker = ({
|
|
|
3481
3494
|
onBlur,
|
|
3482
3495
|
onChange: onChange ?? formikOnChange,
|
|
3483
3496
|
value,
|
|
3484
|
-
error: getIn10(touched, name) && getIn10(errors, name)
|
|
3485
|
-
options
|
|
3497
|
+
error: getIn10(touched, name) && getIn10(errors, name)
|
|
3486
3498
|
}
|
|
3487
3499
|
);
|
|
3488
3500
|
|
|
3489
|
-
// src/components/Formik/
|
|
3501
|
+
// src/components/Formik/FormikSwitch/FormikSwitch.tsx
|
|
3490
3502
|
import React44 from "react";
|
|
3491
3503
|
import {
|
|
3492
3504
|
getIn as getIn11
|
|
3493
3505
|
} from "formik";
|
|
3494
3506
|
|
|
3495
|
-
// src/components/TimePickerNative/TimePickerNative.tsx
|
|
3496
|
-
import React43 from "react";
|
|
3497
|
-
var TimePickerNative = ({
|
|
3498
|
-
id,
|
|
3499
|
-
name,
|
|
3500
|
-
label,
|
|
3501
|
-
onChange,
|
|
3502
|
-
value,
|
|
3503
|
-
dateDisplayOptions = { hour: "2-digit", minute: "2-digit" },
|
|
3504
|
-
endTime = void 0,
|
|
3505
|
-
interval = 900,
|
|
3506
|
-
locales = "en-US",
|
|
3507
|
-
placeholder = "HH:MM",
|
|
3508
|
-
startTime = void 0,
|
|
3509
|
-
...restProps
|
|
3510
|
-
}) => {
|
|
3511
|
-
const generateTimes = () => {
|
|
3512
|
-
const first = /* @__PURE__ */ new Date();
|
|
3513
|
-
first.setHours(startTime?.hour || 0, startTime?.minute || 0, 0, 0);
|
|
3514
|
-
const last = /* @__PURE__ */ new Date();
|
|
3515
|
-
last.setHours(
|
|
3516
|
-
endTime?.hour || first.getHours() + 24,
|
|
3517
|
-
endTime?.minute || 0,
|
|
3518
|
-
0,
|
|
3519
|
-
0
|
|
3520
|
-
);
|
|
3521
|
-
const timeOptions = [];
|
|
3522
|
-
const currentTime = new Date(first);
|
|
3523
|
-
while (currentTime < last) {
|
|
3524
|
-
timeOptions.push({
|
|
3525
|
-
value: currentTime.toISOString(),
|
|
3526
|
-
label: currentTime.toLocaleTimeString(locales, dateDisplayOptions)
|
|
3527
|
-
});
|
|
3528
|
-
currentTime.setSeconds(first.getSeconds() + interval);
|
|
3529
|
-
}
|
|
3530
|
-
return timeOptions;
|
|
3531
|
-
};
|
|
3532
|
-
const options = generateTimes();
|
|
3533
|
-
return /* @__PURE__ */ React43.createElement(
|
|
3534
|
-
SelectInputNative,
|
|
3535
|
-
{
|
|
3536
|
-
...restProps,
|
|
3537
|
-
id,
|
|
3538
|
-
name,
|
|
3539
|
-
label,
|
|
3540
|
-
onChange,
|
|
3541
|
-
options,
|
|
3542
|
-
placeholder,
|
|
3543
|
-
value
|
|
3544
|
-
}
|
|
3545
|
-
);
|
|
3546
|
-
};
|
|
3547
|
-
|
|
3548
|
-
// src/components/Formik/FormikTimePickerNative/FormikTimePickerNative.tsx
|
|
3549
|
-
var FormikTimePickerNative = ({
|
|
3550
|
-
field: { name, onBlur, onChange: formikOnChange, value },
|
|
3551
|
-
form: { touched, errors },
|
|
3552
|
-
onChange,
|
|
3553
|
-
...props
|
|
3554
|
-
}) => /* @__PURE__ */ React44.createElement(
|
|
3555
|
-
TimePickerNative,
|
|
3556
|
-
{
|
|
3557
|
-
...props,
|
|
3558
|
-
name,
|
|
3559
|
-
onBlur,
|
|
3560
|
-
onChange: onChange ?? formikOnChange,
|
|
3561
|
-
value,
|
|
3562
|
-
error: getIn11(touched, name) && getIn11(errors, name)
|
|
3563
|
-
}
|
|
3564
|
-
);
|
|
3565
|
-
|
|
3566
|
-
// src/components/Formik/FormikSwitch/FormikSwitch.tsx
|
|
3567
|
-
import React46 from "react";
|
|
3568
|
-
import {
|
|
3569
|
-
getIn as getIn12
|
|
3570
|
-
} from "formik";
|
|
3571
|
-
|
|
3572
3507
|
// src/components/Switch/Switch.tsx
|
|
3573
|
-
import
|
|
3508
|
+
import React43 from "react";
|
|
3574
3509
|
import classNames27 from "classnames";
|
|
3575
3510
|
|
|
3576
3511
|
// src/components/Switch/Switch.module.scss
|
|
@@ -3643,22 +3578,22 @@ var Switch = ({
|
|
|
3643
3578
|
requiredIndicator,
|
|
3644
3579
|
size
|
|
3645
3580
|
};
|
|
3646
|
-
return /* @__PURE__ */
|
|
3581
|
+
return /* @__PURE__ */ React43.createElement(Box, { className }, /* @__PURE__ */ React43.createElement(Box, { className: wrapperClasses }, /* @__PURE__ */ React43.createElement(FormLabel, { ...labelProps }, /* @__PURE__ */ React43.createElement("input", { ...inputProps }), /* @__PURE__ */ React43.createElement(
|
|
3647
3582
|
"span",
|
|
3648
3583
|
{
|
|
3649
3584
|
"aria-hidden": "true",
|
|
3650
3585
|
className: trackClasses,
|
|
3651
3586
|
"data-testid": "switchTrack"
|
|
3652
3587
|
},
|
|
3653
|
-
/* @__PURE__ */
|
|
3654
|
-
), !hideLabel && /* @__PURE__ */
|
|
3588
|
+
/* @__PURE__ */ React43.createElement("span", { className: thumbClasses, "data-testid": "switchThumb" })
|
|
3589
|
+
), !hideLabel && /* @__PURE__ */ React43.createElement(
|
|
3655
3590
|
Box,
|
|
3656
3591
|
{
|
|
3657
3592
|
gap: "2xs",
|
|
3658
3593
|
className: helpText && (size === "md" || size === "lg") ? "m-top-2xs" : ""
|
|
3659
3594
|
},
|
|
3660
|
-
label && /* @__PURE__ */
|
|
3661
|
-
helpText && /* @__PURE__ */
|
|
3595
|
+
label && /* @__PURE__ */ React43.createElement("div", null, label),
|
|
3596
|
+
helpText && /* @__PURE__ */ React43.createElement(
|
|
3662
3597
|
Box,
|
|
3663
3598
|
{
|
|
3664
3599
|
as: "p",
|
|
@@ -3669,7 +3604,7 @@ var Switch = ({
|
|
|
3669
3604
|
},
|
|
3670
3605
|
helpText
|
|
3671
3606
|
)
|
|
3672
|
-
))), error && error !== true && /* @__PURE__ */
|
|
3607
|
+
))), error && error !== true && /* @__PURE__ */ React43.createElement(InputValidationMessage, null, error));
|
|
3673
3608
|
};
|
|
3674
3609
|
|
|
3675
3610
|
// src/components/Formik/FormikSwitch/FormikSwitch.tsx
|
|
@@ -3684,10 +3619,10 @@ var FormikSwitch = ({
|
|
|
3684
3619
|
},
|
|
3685
3620
|
form: { touched, errors },
|
|
3686
3621
|
...props
|
|
3687
|
-
}) => /* @__PURE__ */
|
|
3622
|
+
}) => /* @__PURE__ */ React44.createElement(
|
|
3688
3623
|
Switch,
|
|
3689
3624
|
{
|
|
3690
|
-
error:
|
|
3625
|
+
error: getIn11(touched, name) && getIn11(errors, name),
|
|
3691
3626
|
isChecked: value,
|
|
3692
3627
|
onBlur,
|
|
3693
3628
|
onChange,
|
|
@@ -3696,13 +3631,13 @@ var FormikSwitch = ({
|
|
|
3696
3631
|
);
|
|
3697
3632
|
|
|
3698
3633
|
// src/components/Formik/FormikToggleGroup/FormikToggleGroup.tsx
|
|
3699
|
-
import
|
|
3634
|
+
import React46 from "react";
|
|
3700
3635
|
import {
|
|
3701
|
-
getIn as
|
|
3636
|
+
getIn as getIn12
|
|
3702
3637
|
} from "formik";
|
|
3703
3638
|
|
|
3704
3639
|
// src/components/ToggleGroup/ToggleGroup.tsx
|
|
3705
|
-
import
|
|
3640
|
+
import React45, { createContext as createContext2, useContext as useContext2, forwardRef as forwardRef11 } from "react";
|
|
3706
3641
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
3707
3642
|
|
|
3708
3643
|
// src/components/ToggleGroup/ToggleGroup.module.scss
|
|
@@ -3714,7 +3649,7 @@ var ToggleGroupContext = createContext2({
|
|
|
3714
3649
|
variant: "default"
|
|
3715
3650
|
});
|
|
3716
3651
|
var ToggleGroup = forwardRef11(
|
|
3717
|
-
({ className, variant = "default", children, gap = "xs", error, ...props }, ref) => /* @__PURE__ */
|
|
3652
|
+
({ className, variant = "default", children, gap = "xs", error, ...props }, ref) => /* @__PURE__ */ React45.createElement("div", null, /* @__PURE__ */ React45.createElement(
|
|
3718
3653
|
ToggleGroupPrimitive.Root,
|
|
3719
3654
|
{
|
|
3720
3655
|
ref,
|
|
@@ -3725,14 +3660,14 @@ var ToggleGroup = forwardRef11(
|
|
|
3725
3660
|
),
|
|
3726
3661
|
...props
|
|
3727
3662
|
},
|
|
3728
|
-
/* @__PURE__ */
|
|
3729
|
-
), error && /* @__PURE__ */
|
|
3663
|
+
/* @__PURE__ */ React45.createElement(ToggleGroupContext.Provider, { value: { variant } }, children)
|
|
3664
|
+
), error && /* @__PURE__ */ React45.createElement(InputValidationMessage, null, error))
|
|
3730
3665
|
);
|
|
3731
3666
|
ToggleGroup.displayName = "ToggleGroup";
|
|
3732
3667
|
var ToggleGroupItem = forwardRef11(({ className, children, value, variant, ...props }, ref) => {
|
|
3733
3668
|
const { variant: contextVariant } = useContext2(ToggleGroupContext);
|
|
3734
3669
|
const appliedVariant = variant || contextVariant;
|
|
3735
|
-
return /* @__PURE__ */
|
|
3670
|
+
return /* @__PURE__ */ React45.createElement(
|
|
3736
3671
|
ToggleGroupPrimitive.Item,
|
|
3737
3672
|
{
|
|
3738
3673
|
ref,
|
|
@@ -3760,7 +3695,7 @@ var FormikToggleGroup = ({
|
|
|
3760
3695
|
children,
|
|
3761
3696
|
...props
|
|
3762
3697
|
}) => {
|
|
3763
|
-
return /* @__PURE__ */
|
|
3698
|
+
return /* @__PURE__ */ React46.createElement(Box, { gap: "sm" }, (label || helpText) && /* @__PURE__ */ React46.createElement("div", null, label && /* @__PURE__ */ React46.createElement(Box, { fontSize: "sm" }, label), helpText && /* @__PURE__ */ React46.createElement(HelpText, null, helpText)), /* @__PURE__ */ React46.createElement(
|
|
3764
3699
|
ToggleGroup,
|
|
3765
3700
|
{
|
|
3766
3701
|
...props,
|
|
@@ -3768,10 +3703,10 @@ var FormikToggleGroup = ({
|
|
|
3768
3703
|
onBlur,
|
|
3769
3704
|
onValueChange: (value2) => setFieldValue(name, value2),
|
|
3770
3705
|
value,
|
|
3771
|
-
error:
|
|
3706
|
+
error: getIn12(touched, name) && getIn12(errors, name),
|
|
3772
3707
|
type: "single"
|
|
3773
3708
|
},
|
|
3774
|
-
children ? children : options.map((option) => /* @__PURE__ */
|
|
3709
|
+
children ? children : options.map((option) => /* @__PURE__ */ React46.createElement(
|
|
3775
3710
|
ToggleGroupItem,
|
|
3776
3711
|
{
|
|
3777
3712
|
id: option.id,
|
|
@@ -3785,7 +3720,7 @@ var FormikToggleGroup = ({
|
|
|
3785
3720
|
};
|
|
3786
3721
|
|
|
3787
3722
|
// src/components/Formik/FormikToggleGroupMulti/FormikToggleGroupMulti.tsx
|
|
3788
|
-
import
|
|
3723
|
+
import React47 from "react";
|
|
3789
3724
|
import { FieldArray, useField } from "formik";
|
|
3790
3725
|
var FormikToggleGroupMulti = ({
|
|
3791
3726
|
name,
|
|
@@ -3798,7 +3733,7 @@ var FormikToggleGroupMulti = ({
|
|
|
3798
3733
|
...props
|
|
3799
3734
|
}) => {
|
|
3800
3735
|
const [field, meta, helpers] = useField(name);
|
|
3801
|
-
return /* @__PURE__ */
|
|
3736
|
+
return /* @__PURE__ */ React47.createElement(Box, { gap: "sm" }, (label || helpText) && /* @__PURE__ */ React47.createElement("div", null, label && /* @__PURE__ */ React47.createElement(Box, { fontSize: "sm" }, label), helpText && /* @__PURE__ */ React47.createElement(HelpText, null, helpText)), /* @__PURE__ */ React47.createElement(FieldArray, { name }, () => /* @__PURE__ */ React47.createElement(
|
|
3802
3737
|
ToggleGroup,
|
|
3803
3738
|
{
|
|
3804
3739
|
...props,
|
|
@@ -3813,7 +3748,7 @@ var FormikToggleGroupMulti = ({
|
|
|
3813
3748
|
type: "multiple",
|
|
3814
3749
|
variant
|
|
3815
3750
|
},
|
|
3816
|
-
children ? children : options.map((option) => /* @__PURE__ */
|
|
3751
|
+
children ? children : options.map((option) => /* @__PURE__ */ React47.createElement(
|
|
3817
3752
|
ToggleGroupItem,
|
|
3818
3753
|
{
|
|
3819
3754
|
key: option.id,
|
|
@@ -3827,14 +3762,14 @@ var FormikToggleGroupMulti = ({
|
|
|
3827
3762
|
};
|
|
3828
3763
|
|
|
3829
3764
|
// src/components/Modal/Modal.tsx
|
|
3830
|
-
import
|
|
3765
|
+
import React51, { forwardRef as forwardRef12, useCallback as useCallback3 } from "react";
|
|
3831
3766
|
import ReactModal2 from "react-modal";
|
|
3832
3767
|
import FocusLock2 from "react-focus-lock";
|
|
3833
3768
|
import { RemoveScroll as RemoveScroll2 } from "react-remove-scroll";
|
|
3834
3769
|
import classNames29 from "classnames";
|
|
3835
3770
|
|
|
3836
3771
|
// src/components/Modal/components/ModalFooter/ModalFooter.tsx
|
|
3837
|
-
import
|
|
3772
|
+
import React48 from "react";
|
|
3838
3773
|
var ModalFooter = ({
|
|
3839
3774
|
children,
|
|
3840
3775
|
padding,
|
|
@@ -3844,7 +3779,7 @@ var ModalFooter = ({
|
|
|
3844
3779
|
gap = "md",
|
|
3845
3780
|
style,
|
|
3846
3781
|
...restProps
|
|
3847
|
-
}) => /* @__PURE__ */
|
|
3782
|
+
}) => /* @__PURE__ */ React48.createElement(
|
|
3848
3783
|
Box,
|
|
3849
3784
|
{
|
|
3850
3785
|
padding,
|
|
@@ -3862,7 +3797,7 @@ var ModalFooter = ({
|
|
|
3862
3797
|
);
|
|
3863
3798
|
|
|
3864
3799
|
// src/components/Modal/components/ModalHeader/ModalHeader.tsx
|
|
3865
|
-
import
|
|
3800
|
+
import React49 from "react";
|
|
3866
3801
|
var ModalHeader = ({
|
|
3867
3802
|
id,
|
|
3868
3803
|
onDismiss,
|
|
@@ -3874,7 +3809,7 @@ var ModalHeader = ({
|
|
|
3874
3809
|
...restProps
|
|
3875
3810
|
}) => {
|
|
3876
3811
|
const justifyContentValue = title || children ? "space-between" : "flex-end";
|
|
3877
|
-
return /* @__PURE__ */
|
|
3812
|
+
return /* @__PURE__ */ React49.createElement(
|
|
3878
3813
|
Box,
|
|
3879
3814
|
{
|
|
3880
3815
|
direction,
|
|
@@ -3887,8 +3822,8 @@ var ModalHeader = ({
|
|
|
3887
3822
|
},
|
|
3888
3823
|
...restProps
|
|
3889
3824
|
},
|
|
3890
|
-
(title || children) && /* @__PURE__ */
|
|
3891
|
-
onDismiss && /* @__PURE__ */
|
|
3825
|
+
(title || children) && /* @__PURE__ */ React49.createElement(Box, { gap: "2xs" }, title && /* @__PURE__ */ React49.createElement(Box, { as: "h4", fontSize: { base: "md", tablet: "lg" }, id }, title), children),
|
|
3826
|
+
onDismiss && /* @__PURE__ */ React49.createElement(
|
|
3892
3827
|
Button,
|
|
3893
3828
|
{
|
|
3894
3829
|
"aria-label": "close",
|
|
@@ -3903,14 +3838,14 @@ var ModalHeader = ({
|
|
|
3903
3838
|
};
|
|
3904
3839
|
|
|
3905
3840
|
// src/components/Modal/components/ModalBody/ModalBody.tsx
|
|
3906
|
-
import
|
|
3841
|
+
import React50 from "react";
|
|
3907
3842
|
var ModalBody = ({
|
|
3908
3843
|
children,
|
|
3909
3844
|
flex = "auto",
|
|
3910
3845
|
overflow = "auto",
|
|
3911
3846
|
height = "100",
|
|
3912
3847
|
...restProps
|
|
3913
|
-
}) => /* @__PURE__ */
|
|
3848
|
+
}) => /* @__PURE__ */ React50.createElement(
|
|
3914
3849
|
Box,
|
|
3915
3850
|
{
|
|
3916
3851
|
flex,
|
|
@@ -3965,7 +3900,7 @@ var ModalBaseComponent = forwardRef12(
|
|
|
3965
3900
|
);
|
|
3966
3901
|
if (!isOpen) return null;
|
|
3967
3902
|
const parentElement = containerRef?.current ? containerRef.current : void 0;
|
|
3968
|
-
return /* @__PURE__ */
|
|
3903
|
+
return /* @__PURE__ */ React51.createElement(
|
|
3969
3904
|
FocusLock2,
|
|
3970
3905
|
{
|
|
3971
3906
|
autoFocus: true,
|
|
@@ -3974,7 +3909,7 @@ var ModalBaseComponent = forwardRef12(
|
|
|
3974
3909
|
onActivation: activateFocusLock,
|
|
3975
3910
|
crossFrame: true
|
|
3976
3911
|
},
|
|
3977
|
-
/* @__PURE__ */
|
|
3912
|
+
/* @__PURE__ */ React51.createElement(RemoveScroll2, { allowPinchZoom, enabled: isOpen }, /* @__PURE__ */ React51.createElement(Box, { ref }, /* @__PURE__ */ React51.createElement(
|
|
3978
3913
|
ReactModal2,
|
|
3979
3914
|
{
|
|
3980
3915
|
isOpen,
|
|
@@ -3986,7 +3921,7 @@ var ModalBaseComponent = forwardRef12(
|
|
|
3986
3921
|
style: { content: { ...maxWidthCss.styles, ...style } },
|
|
3987
3922
|
...restProps
|
|
3988
3923
|
},
|
|
3989
|
-
/* @__PURE__ */
|
|
3924
|
+
/* @__PURE__ */ React51.createElement(
|
|
3990
3925
|
Box,
|
|
3991
3926
|
{
|
|
3992
3927
|
"aria-label": ariaLabel,
|
|
@@ -4012,7 +3947,7 @@ var Modal = (() => {
|
|
|
4012
3947
|
})();
|
|
4013
3948
|
|
|
4014
3949
|
// src/components/Pagination/Pagination.tsx
|
|
4015
|
-
import
|
|
3950
|
+
import React52, { useMemo as useMemo3 } from "react";
|
|
4016
3951
|
import classNames30 from "classnames";
|
|
4017
3952
|
|
|
4018
3953
|
// src/components/Pagination/Pagination.utilities.ts
|
|
@@ -4089,7 +4024,7 @@ var Pagination = ({
|
|
|
4089
4024
|
}
|
|
4090
4025
|
return `Showing ${activeListRange.first}-${activeListRange.last} of ${totalItemsCount}`;
|
|
4091
4026
|
}, [activeListRange, totalItemsCount]);
|
|
4092
|
-
return /* @__PURE__ */
|
|
4027
|
+
return /* @__PURE__ */ React52.createElement(
|
|
4093
4028
|
Box,
|
|
4094
4029
|
{
|
|
4095
4030
|
as: "nav",
|
|
@@ -4098,7 +4033,7 @@ var Pagination = ({
|
|
|
4098
4033
|
justifyContent: "space-between",
|
|
4099
4034
|
className: paginationClassNames
|
|
4100
4035
|
},
|
|
4101
|
-
/* @__PURE__ */
|
|
4036
|
+
/* @__PURE__ */ React52.createElement(
|
|
4102
4037
|
Box,
|
|
4103
4038
|
{
|
|
4104
4039
|
direction: "row",
|
|
@@ -4106,7 +4041,7 @@ var Pagination = ({
|
|
|
4106
4041
|
flex: { base: "auto", tablet: "none" },
|
|
4107
4042
|
gap: isCompact ? "xs" : "sm"
|
|
4108
4043
|
},
|
|
4109
|
-
/* @__PURE__ */
|
|
4044
|
+
/* @__PURE__ */ React52.createElement(
|
|
4110
4045
|
Button,
|
|
4111
4046
|
{
|
|
4112
4047
|
variant: "secondary",
|
|
@@ -4116,8 +4051,8 @@ var Pagination = ({
|
|
|
4116
4051
|
},
|
|
4117
4052
|
prevPageText
|
|
4118
4053
|
),
|
|
4119
|
-
arePagesVisible && /* @__PURE__ */
|
|
4120
|
-
return isPage ? /* @__PURE__ */
|
|
4054
|
+
arePagesVisible && /* @__PURE__ */ React52.createElement(Box, { direction: "row", gap: "2xs" }, pages.map(({ pageNumber, isPage }, index) => {
|
|
4055
|
+
return isPage ? /* @__PURE__ */ React52.createElement(
|
|
4121
4056
|
Button,
|
|
4122
4057
|
{
|
|
4123
4058
|
key: pageNumber,
|
|
@@ -4130,7 +4065,7 @@ var Pagination = ({
|
|
|
4130
4065
|
className
|
|
4131
4066
|
},
|
|
4132
4067
|
pageNumber
|
|
4133
|
-
) : /* @__PURE__ */
|
|
4068
|
+
) : /* @__PURE__ */ React52.createElement(
|
|
4134
4069
|
Box,
|
|
4135
4070
|
{
|
|
4136
4071
|
key: `ellipsis-${index}`,
|
|
@@ -4144,7 +4079,7 @@ var Pagination = ({
|
|
|
4144
4079
|
"..."
|
|
4145
4080
|
);
|
|
4146
4081
|
})),
|
|
4147
|
-
/* @__PURE__ */
|
|
4082
|
+
/* @__PURE__ */ React52.createElement(
|
|
4148
4083
|
Button,
|
|
4149
4084
|
{
|
|
4150
4085
|
variant: "secondary",
|
|
@@ -4155,7 +4090,7 @@ var Pagination = ({
|
|
|
4155
4090
|
nextPageText
|
|
4156
4091
|
)
|
|
4157
4092
|
),
|
|
4158
|
-
/* @__PURE__ */
|
|
4093
|
+
/* @__PURE__ */ React52.createElement(
|
|
4159
4094
|
Box,
|
|
4160
4095
|
{
|
|
4161
4096
|
as: "p",
|
|
@@ -4171,7 +4106,7 @@ var Pagination = ({
|
|
|
4171
4106
|
};
|
|
4172
4107
|
|
|
4173
4108
|
// src/components/Popover/Popover.tsx
|
|
4174
|
-
import
|
|
4109
|
+
import React53, { forwardRef as forwardRef13 } from "react";
|
|
4175
4110
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
4176
4111
|
import classNames31 from "classnames";
|
|
4177
4112
|
|
|
@@ -4184,7 +4119,7 @@ var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
|
4184
4119
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
4185
4120
|
var PopoverPortal = PopoverPrimitive.Portal;
|
|
4186
4121
|
var PopoverContent = forwardRef13(({ className, align = "center", sideOffset = 4, ...props }, ref) => {
|
|
4187
|
-
return /* @__PURE__ */
|
|
4122
|
+
return /* @__PURE__ */ React53.createElement(
|
|
4188
4123
|
PopoverPrimitive.Content,
|
|
4189
4124
|
{
|
|
4190
4125
|
ref,
|
|
@@ -4198,7 +4133,7 @@ var PopoverContent = forwardRef13(({ className, align = "center", sideOffset = 4
|
|
|
4198
4133
|
PopoverContent.displayName = "PopoverContent";
|
|
4199
4134
|
|
|
4200
4135
|
// src/components/RangeInput/RangeInput.tsx
|
|
4201
|
-
import
|
|
4136
|
+
import React54 from "react";
|
|
4202
4137
|
import classNames32 from "classnames";
|
|
4203
4138
|
|
|
4204
4139
|
// src/components/RangeInput/RangeInput.module.scss
|
|
@@ -4215,7 +4150,7 @@ var RangeInput = ({
|
|
|
4215
4150
|
...restProps
|
|
4216
4151
|
}) => {
|
|
4217
4152
|
const currentProgress = value > 0 ? value / max * 100 : 0;
|
|
4218
|
-
return /* @__PURE__ */
|
|
4153
|
+
return /* @__PURE__ */ React54.createElement(
|
|
4219
4154
|
"input",
|
|
4220
4155
|
{
|
|
4221
4156
|
...restProps,
|
|
@@ -4240,7 +4175,7 @@ var RangeInput = ({
|
|
|
4240
4175
|
};
|
|
4241
4176
|
|
|
4242
4177
|
// src/components/ResponsiveProvider/ResponsiveProvider.tsx
|
|
4243
|
-
import
|
|
4178
|
+
import React55, { useState as useState2, createContext as createContext3 } from "react";
|
|
4244
4179
|
|
|
4245
4180
|
// src/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts
|
|
4246
4181
|
import { useLayoutEffect, useEffect } from "react";
|
|
@@ -4279,7 +4214,7 @@ var ResponsiveProvider = ({
|
|
|
4279
4214
|
};
|
|
4280
4215
|
}
|
|
4281
4216
|
}, [throttle]);
|
|
4282
|
-
return /* @__PURE__ */
|
|
4217
|
+
return /* @__PURE__ */ React55.createElement(
|
|
4283
4218
|
ResponsiveContext.Provider,
|
|
4284
4219
|
{
|
|
4285
4220
|
value: {
|
|
@@ -4295,7 +4230,7 @@ var ResponsiveProvider = ({
|
|
|
4295
4230
|
};
|
|
4296
4231
|
|
|
4297
4232
|
// src/components/Sidebar/Sidebar.tsx
|
|
4298
|
-
import
|
|
4233
|
+
import React58, {
|
|
4299
4234
|
useCallback as useCallback4,
|
|
4300
4235
|
useMemo as useMemo4,
|
|
4301
4236
|
useState as useState4,
|
|
@@ -4306,14 +4241,14 @@ import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
|
4306
4241
|
import classNames34 from "classnames";
|
|
4307
4242
|
|
|
4308
4243
|
// src/hooks/useIsMobile/useIsMobile.tsx
|
|
4309
|
-
import * as
|
|
4244
|
+
import * as React56 from "react";
|
|
4310
4245
|
var desktopBreakpoint = BREAKPOINTS.find((b) => b.name === "desktop");
|
|
4311
4246
|
var MOBILE_BREAKPOINT = desktopBreakpoint ? desktopBreakpoint.minWidth : 0;
|
|
4312
4247
|
function useIsMobile() {
|
|
4313
|
-
const [isMobile, setIsMobile] =
|
|
4248
|
+
const [isMobile, setIsMobile] = React56.useState(
|
|
4314
4249
|
void 0
|
|
4315
4250
|
);
|
|
4316
|
-
|
|
4251
|
+
React56.useEffect(() => {
|
|
4317
4252
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
4318
4253
|
const onChange = () => {
|
|
4319
4254
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -4329,7 +4264,7 @@ function useIsMobile() {
|
|
|
4329
4264
|
var Sidebar_module_default = { "rail": "rail__OwBtB", "group-data-": "group-data-__af4bi" };
|
|
4330
4265
|
|
|
4331
4266
|
// src/components/Tooltip/Tooltip.tsx
|
|
4332
|
-
import * as
|
|
4267
|
+
import * as React57 from "react";
|
|
4333
4268
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
4334
4269
|
|
|
4335
4270
|
// src/components/Tooltip/Tooltip.module.scss
|
|
@@ -4341,7 +4276,7 @@ var TooltipProvider = TooltipPrimitive.Provider;
|
|
|
4341
4276
|
var Tooltip = TooltipPrimitive.Root;
|
|
4342
4277
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
4343
4278
|
var TooltipPortal = TooltipPrimitive.Portal;
|
|
4344
|
-
var TooltipContent =
|
|
4279
|
+
var TooltipContent = React57.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
|
4345
4280
|
TooltipPrimitive.Content,
|
|
4346
4281
|
{
|
|
4347
4282
|
ref,
|
|
@@ -4362,14 +4297,14 @@ var SIDEBAR_RIGHT_WIDTH = "24rem";
|
|
|
4362
4297
|
var SIDEBAR_WIDTH_ICON = "44px";
|
|
4363
4298
|
var SIDEBAR_KEYBOARD_SHORTCUT_LEFT = "[";
|
|
4364
4299
|
var SIDEBAR_KEYBOARD_SHORTCUT_RIGHT = "]";
|
|
4365
|
-
var SidebarIsMobileContext =
|
|
4366
|
-
var SidebarLeftContext =
|
|
4300
|
+
var SidebarIsMobileContext = React58.createContext(null);
|
|
4301
|
+
var SidebarLeftContext = React58.createContext(
|
|
4367
4302
|
null
|
|
4368
4303
|
);
|
|
4369
|
-
var SidebarRightContext =
|
|
4304
|
+
var SidebarRightContext = React58.createContext(
|
|
4370
4305
|
null
|
|
4371
4306
|
);
|
|
4372
|
-
var SidebarSideContext =
|
|
4307
|
+
var SidebarSideContext = React58.createContext("left");
|
|
4373
4308
|
var resolveSideValue = (value, side, fallback) => {
|
|
4374
4309
|
if (typeof value === "boolean") {
|
|
4375
4310
|
return value;
|
|
@@ -4473,13 +4408,13 @@ var useSidebarSideState = ({
|
|
|
4473
4408
|
);
|
|
4474
4409
|
};
|
|
4475
4410
|
function useSidebar(sideOverride) {
|
|
4476
|
-
const isMobile =
|
|
4411
|
+
const isMobile = React58.useContext(SidebarIsMobileContext);
|
|
4477
4412
|
if (typeof isMobile !== "boolean") {
|
|
4478
4413
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
4479
4414
|
}
|
|
4480
|
-
const contextSide =
|
|
4415
|
+
const contextSide = React58.useContext(SidebarSideContext);
|
|
4481
4416
|
const side = sideOverride ?? contextSide;
|
|
4482
|
-
const sideContext =
|
|
4417
|
+
const sideContext = React58.useContext(
|
|
4483
4418
|
side === "left" ? SidebarLeftContext : SidebarRightContext
|
|
4484
4419
|
);
|
|
4485
4420
|
if (!sideContext) {
|
|
@@ -4503,9 +4438,9 @@ var SidebarProvider = forwardRef15(
|
|
|
4503
4438
|
...props
|
|
4504
4439
|
}, ref) => {
|
|
4505
4440
|
const isMobile = useIsMobile();
|
|
4506
|
-
const lastToggledSideRef =
|
|
4507
|
-
const leftToggleRef =
|
|
4508
|
-
const rightToggleRef =
|
|
4441
|
+
const lastToggledSideRef = React58.useRef("left");
|
|
4442
|
+
const leftToggleRef = React58.useRef(null);
|
|
4443
|
+
const rightToggleRef = React58.useRef(null);
|
|
4509
4444
|
const leftState = useSidebarSideState({
|
|
4510
4445
|
side: "left",
|
|
4511
4446
|
isMobile,
|
|
@@ -4547,7 +4482,7 @@ var SidebarProvider = forwardRef15(
|
|
|
4547
4482
|
window.addEventListener("keydown", handleKeyDown);
|
|
4548
4483
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
4549
4484
|
}, []);
|
|
4550
|
-
return /* @__PURE__ */
|
|
4485
|
+
return /* @__PURE__ */ React58.createElement(SidebarIsMobileContext.Provider, { value: isMobile }, /* @__PURE__ */ React58.createElement(SidebarLeftContext.Provider, { value: leftState }, /* @__PURE__ */ React58.createElement(SidebarRightContext.Provider, { value: rightState }, /* @__PURE__ */ React58.createElement(TooltipProvider, { delayDuration: 0 }, /* @__PURE__ */ React58.createElement(
|
|
4551
4486
|
"div",
|
|
4552
4487
|
{
|
|
4553
4488
|
style: {
|
|
@@ -4568,23 +4503,23 @@ var SidebarProvider = forwardRef15(
|
|
|
4568
4503
|
}
|
|
4569
4504
|
);
|
|
4570
4505
|
SidebarProvider.displayName = "SidebarProvider";
|
|
4571
|
-
var Sidebar =
|
|
4506
|
+
var Sidebar = React58.forwardRef(
|
|
4572
4507
|
({ side = "left", collapsible = "offcanvas", className, children, ...props }, ref) => {
|
|
4573
4508
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar(side);
|
|
4574
4509
|
const sidebarWidth = side === "right" ? SIDEBAR_RIGHT_WIDTH : SIDEBAR_WIDTH;
|
|
4575
4510
|
if (isMobile) {
|
|
4576
|
-
return /* @__PURE__ */
|
|
4511
|
+
return /* @__PURE__ */ React58.createElement(SidebarSideContext.Provider, { value: side }, /* @__PURE__ */ React58.createElement(
|
|
4577
4512
|
Drawer,
|
|
4578
4513
|
{
|
|
4579
4514
|
isOpen: openMobile,
|
|
4580
4515
|
onDismiss: () => setOpenMobile(false),
|
|
4581
4516
|
placement: side
|
|
4582
4517
|
},
|
|
4583
|
-
/* @__PURE__ */
|
|
4518
|
+
/* @__PURE__ */ React58.createElement(Box, { "data-sidebar": "sidebar", "data-mobile": "true", height: "100" }, children)
|
|
4584
4519
|
));
|
|
4585
4520
|
}
|
|
4586
4521
|
if (collapsible === "none") {
|
|
4587
|
-
return /* @__PURE__ */
|
|
4522
|
+
return /* @__PURE__ */ React58.createElement(SidebarSideContext.Provider, { value: side }, /* @__PURE__ */ React58.createElement(
|
|
4588
4523
|
"div",
|
|
4589
4524
|
{
|
|
4590
4525
|
className: classNames34(
|
|
@@ -4601,7 +4536,7 @@ var Sidebar = React60.forwardRef(
|
|
|
4601
4536
|
children
|
|
4602
4537
|
));
|
|
4603
4538
|
}
|
|
4604
|
-
return /* @__PURE__ */
|
|
4539
|
+
return /* @__PURE__ */ React58.createElement(SidebarSideContext.Provider, { value: side }, /* @__PURE__ */ React58.createElement(
|
|
4605
4540
|
Box,
|
|
4606
4541
|
{
|
|
4607
4542
|
ref,
|
|
@@ -4618,7 +4553,7 @@ var Sidebar = React60.forwardRef(
|
|
|
4618
4553
|
"data-side": side,
|
|
4619
4554
|
className: "group"
|
|
4620
4555
|
},
|
|
4621
|
-
/* @__PURE__ */
|
|
4556
|
+
/* @__PURE__ */ React58.createElement(
|
|
4622
4557
|
"div",
|
|
4623
4558
|
{
|
|
4624
4559
|
style: {
|
|
@@ -4633,7 +4568,7 @@ var Sidebar = React60.forwardRef(
|
|
|
4633
4568
|
className: classNames34("position-relative", className)
|
|
4634
4569
|
}
|
|
4635
4570
|
),
|
|
4636
|
-
/* @__PURE__ */
|
|
4571
|
+
/* @__PURE__ */ React58.createElement(
|
|
4637
4572
|
"div",
|
|
4638
4573
|
{
|
|
4639
4574
|
className: classNames34(
|
|
@@ -4655,7 +4590,7 @@ var Sidebar = React60.forwardRef(
|
|
|
4655
4590
|
},
|
|
4656
4591
|
...props
|
|
4657
4592
|
},
|
|
4658
|
-
/* @__PURE__ */
|
|
4593
|
+
/* @__PURE__ */ React58.createElement(
|
|
4659
4594
|
"div",
|
|
4660
4595
|
{
|
|
4661
4596
|
"data-sidebar": "sidebar",
|
|
@@ -4673,9 +4608,9 @@ var Sidebar = React60.forwardRef(
|
|
|
4673
4608
|
}
|
|
4674
4609
|
);
|
|
4675
4610
|
Sidebar.displayName = "Sidebar";
|
|
4676
|
-
var SidebarTrigger =
|
|
4611
|
+
var SidebarTrigger = React58.forwardRef(({ className, onClick, side, iconName = "dock-left", ...props }, ref) => {
|
|
4677
4612
|
const { toggleSidebar, side: contextSide } = useSidebar(side);
|
|
4678
|
-
return /* @__PURE__ */
|
|
4613
|
+
return /* @__PURE__ */ React58.createElement(
|
|
4679
4614
|
Button,
|
|
4680
4615
|
{
|
|
4681
4616
|
ref,
|
|
@@ -4700,8 +4635,8 @@ var SidebarTrigger = React60.forwardRef(({ className, onClick, side, iconName =
|
|
|
4700
4635
|
);
|
|
4701
4636
|
});
|
|
4702
4637
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
4703
|
-
var SidebarInset =
|
|
4704
|
-
return /* @__PURE__ */
|
|
4638
|
+
var SidebarInset = React58.forwardRef(({ className, ...props }, ref) => {
|
|
4639
|
+
return /* @__PURE__ */ React58.createElement(
|
|
4705
4640
|
"main",
|
|
4706
4641
|
{
|
|
4707
4642
|
ref,
|
|
@@ -4714,10 +4649,10 @@ var SidebarInset = React60.forwardRef(({ className, ...props }, ref) => {
|
|
|
4714
4649
|
);
|
|
4715
4650
|
});
|
|
4716
4651
|
SidebarInset.displayName = "SidebarInset";
|
|
4717
|
-
var SidebarHeader =
|
|
4652
|
+
var SidebarHeader = React58.forwardRef(({ className, ...props }, ref) => {
|
|
4718
4653
|
const { state } = useSidebar();
|
|
4719
4654
|
const isCollapsed = state === "collapsed";
|
|
4720
|
-
return /* @__PURE__ */
|
|
4655
|
+
return /* @__PURE__ */ React58.createElement(
|
|
4721
4656
|
"div",
|
|
4722
4657
|
{
|
|
4723
4658
|
ref,
|
|
@@ -4732,8 +4667,8 @@ var SidebarHeader = React60.forwardRef(({ className, ...props }, ref) => {
|
|
|
4732
4667
|
);
|
|
4733
4668
|
});
|
|
4734
4669
|
SidebarHeader.displayName = "SidebarHeader";
|
|
4735
|
-
var SidebarFooter =
|
|
4736
|
-
return /* @__PURE__ */
|
|
4670
|
+
var SidebarFooter = React58.forwardRef(({ className, ...props }, ref) => {
|
|
4671
|
+
return /* @__PURE__ */ React58.createElement(
|
|
4737
4672
|
"div",
|
|
4738
4673
|
{
|
|
4739
4674
|
ref,
|
|
@@ -4747,8 +4682,8 @@ var SidebarFooter = React60.forwardRef(({ className, ...props }, ref) => {
|
|
|
4747
4682
|
);
|
|
4748
4683
|
});
|
|
4749
4684
|
SidebarFooter.displayName = "SidebarFooter";
|
|
4750
|
-
var SidebarContent =
|
|
4751
|
-
return /* @__PURE__ */
|
|
4685
|
+
var SidebarContent = React58.forwardRef(({ className, ...props }, ref) => {
|
|
4686
|
+
return /* @__PURE__ */ React58.createElement(
|
|
4752
4687
|
"div",
|
|
4753
4688
|
{
|
|
4754
4689
|
ref,
|
|
@@ -4763,7 +4698,7 @@ var SidebarContent = React60.forwardRef(({ className, ...props }, ref) => {
|
|
|
4763
4698
|
);
|
|
4764
4699
|
});
|
|
4765
4700
|
SidebarContent.displayName = "SidebarContent";
|
|
4766
|
-
var SidebarMenu =
|
|
4701
|
+
var SidebarMenu = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
|
4767
4702
|
"ul",
|
|
4768
4703
|
{
|
|
4769
4704
|
ref,
|
|
@@ -4779,7 +4714,7 @@ var SidebarMenu = React60.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4779
4714
|
}
|
|
4780
4715
|
));
|
|
4781
4716
|
SidebarMenu.displayName = "SidebarMenu";
|
|
4782
|
-
var SidebarMenuItem =
|
|
4717
|
+
var SidebarMenuItem = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
|
4783
4718
|
"li",
|
|
4784
4719
|
{
|
|
4785
4720
|
ref,
|
|
@@ -4790,11 +4725,11 @@ var SidebarMenuItem = React60.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
4790
4725
|
}
|
|
4791
4726
|
));
|
|
4792
4727
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
4793
|
-
var SidebarMenuButton =
|
|
4728
|
+
var SidebarMenuButton = React58.forwardRef(
|
|
4794
4729
|
({ asChild = false, isActive = false, tooltip, className, ...props }, ref) => {
|
|
4795
4730
|
const Comp = asChild ? Slot3 : "button";
|
|
4796
4731
|
const { isMobile, state, side } = useSidebar();
|
|
4797
|
-
const button = /* @__PURE__ */
|
|
4732
|
+
const button = /* @__PURE__ */ React58.createElement(
|
|
4798
4733
|
Comp,
|
|
4799
4734
|
{
|
|
4800
4735
|
ref,
|
|
@@ -4820,7 +4755,7 @@ var SidebarMenuButton = React60.forwardRef(
|
|
|
4820
4755
|
children: tooltip
|
|
4821
4756
|
};
|
|
4822
4757
|
}
|
|
4823
|
-
return /* @__PURE__ */
|
|
4758
|
+
return /* @__PURE__ */ React58.createElement(Tooltip, null, /* @__PURE__ */ React58.createElement(TooltipTrigger, { asChild: true }, button), /* @__PURE__ */ React58.createElement(
|
|
4824
4759
|
TooltipContent,
|
|
4825
4760
|
{
|
|
4826
4761
|
side: side === "right" ? "left" : "right",
|
|
@@ -4832,8 +4767,8 @@ var SidebarMenuButton = React60.forwardRef(
|
|
|
4832
4767
|
}
|
|
4833
4768
|
);
|
|
4834
4769
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
4835
|
-
var SidebarGroup =
|
|
4836
|
-
return /* @__PURE__ */
|
|
4770
|
+
var SidebarGroup = React58.forwardRef(({ className, ...props }, ref) => {
|
|
4771
|
+
return /* @__PURE__ */ React58.createElement(
|
|
4837
4772
|
"div",
|
|
4838
4773
|
{
|
|
4839
4774
|
ref,
|
|
@@ -4847,8 +4782,8 @@ var SidebarGroup = React60.forwardRef(({ className, ...props }, ref) => {
|
|
|
4847
4782
|
);
|
|
4848
4783
|
});
|
|
4849
4784
|
SidebarGroup.displayName = "SidebarGroup";
|
|
4850
|
-
var SidebarGroupLabel =
|
|
4851
|
-
return /* @__PURE__ */
|
|
4785
|
+
var SidebarGroupLabel = React58.forwardRef(({ className, ...props }, ref) => {
|
|
4786
|
+
return /* @__PURE__ */ React58.createElement(
|
|
4852
4787
|
"div",
|
|
4853
4788
|
{
|
|
4854
4789
|
ref,
|
|
@@ -4862,7 +4797,7 @@ var SidebarGroupLabel = React60.forwardRef(({ className, ...props }, ref) => {
|
|
|
4862
4797
|
);
|
|
4863
4798
|
});
|
|
4864
4799
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
4865
|
-
var SidebarMenuSub =
|
|
4800
|
+
var SidebarMenuSub = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
|
4866
4801
|
"ul",
|
|
4867
4802
|
{
|
|
4868
4803
|
ref,
|
|
@@ -4878,11 +4813,11 @@ var SidebarMenuSub = React60.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
4878
4813
|
}
|
|
4879
4814
|
));
|
|
4880
4815
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
4881
|
-
var SidebarMenuSubItem =
|
|
4816
|
+
var SidebarMenuSubItem = React58.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React58.createElement("li", { ref, ...props }));
|
|
4882
4817
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
4883
|
-
var SidebarMenuSubButton =
|
|
4818
|
+
var SidebarMenuSubButton = React58.forwardRef(({ asChild = false, isActive, className, ...props }, ref) => {
|
|
4884
4819
|
const Comp = asChild ? Slot3 : "a";
|
|
4885
|
-
return /* @__PURE__ */
|
|
4820
|
+
return /* @__PURE__ */ React58.createElement(
|
|
4886
4821
|
Comp,
|
|
4887
4822
|
{
|
|
4888
4823
|
ref,
|
|
@@ -4901,9 +4836,9 @@ var SidebarMenuSubButton = React60.forwardRef(({ asChild = false, isActive, clas
|
|
|
4901
4836
|
);
|
|
4902
4837
|
});
|
|
4903
4838
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
4904
|
-
var SidebarMenuAction =
|
|
4839
|
+
var SidebarMenuAction = React58.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
4905
4840
|
const Comp = asChild ? Slot3 : "button";
|
|
4906
|
-
return /* @__PURE__ */
|
|
4841
|
+
return /* @__PURE__ */ React58.createElement(
|
|
4907
4842
|
Comp,
|
|
4908
4843
|
{
|
|
4909
4844
|
ref,
|
|
@@ -4921,11 +4856,11 @@ var SidebarMenuAction = React60.forwardRef(({ className, asChild = false, ...pro
|
|
|
4921
4856
|
);
|
|
4922
4857
|
});
|
|
4923
4858
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
4924
|
-
var SidebarRail =
|
|
4859
|
+
var SidebarRail = React58.forwardRef(({ className, ...props }, ref) => {
|
|
4925
4860
|
const { open, toggleSidebar, side } = useSidebar();
|
|
4926
4861
|
const shortcutLabel = side === "left" ? SIDEBAR_KEYBOARD_SHORTCUT_LEFT : SIDEBAR_KEYBOARD_SHORTCUT_RIGHT;
|
|
4927
4862
|
const caretIcon = open ? side === "right" ? "caret-sm-right" : "caret-sm-left" : side === "right" ? "caret-sm-left" : "caret-sm-right";
|
|
4928
|
-
return /* @__PURE__ */
|
|
4863
|
+
return /* @__PURE__ */ React58.createElement(
|
|
4929
4864
|
"button",
|
|
4930
4865
|
{
|
|
4931
4866
|
ref,
|
|
@@ -4953,7 +4888,7 @@ var SidebarRail = React60.forwardRef(({ className, ...props }, ref) => {
|
|
|
4953
4888
|
type: "button",
|
|
4954
4889
|
...props
|
|
4955
4890
|
},
|
|
4956
|
-
/* @__PURE__ */
|
|
4891
|
+
/* @__PURE__ */ React58.createElement(
|
|
4957
4892
|
Box,
|
|
4958
4893
|
{
|
|
4959
4894
|
radius: "xl",
|
|
@@ -4976,12 +4911,12 @@ var SidebarRail = React60.forwardRef(({ className, ...props }, ref) => {
|
|
|
4976
4911
|
className
|
|
4977
4912
|
)
|
|
4978
4913
|
},
|
|
4979
|
-
/* @__PURE__ */
|
|
4914
|
+
/* @__PURE__ */ React58.createElement(Icon, { name: caretIcon })
|
|
4980
4915
|
)
|
|
4981
4916
|
);
|
|
4982
4917
|
});
|
|
4983
4918
|
SidebarRail.displayName = "SidebarRail";
|
|
4984
|
-
var SidebarMenuBadge =
|
|
4919
|
+
var SidebarMenuBadge = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
|
4985
4920
|
"div",
|
|
4986
4921
|
{
|
|
4987
4922
|
ref,
|
|
@@ -5000,28 +4935,28 @@ var SidebarMenuBadge = React60.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
5000
4935
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
5001
4936
|
|
|
5002
4937
|
// src/components/Table/Table.tsx
|
|
5003
|
-
import
|
|
4938
|
+
import React64 from "react";
|
|
5004
4939
|
import classNames40 from "classnames";
|
|
5005
4940
|
|
|
5006
4941
|
// src/components/Table/Table.module.scss
|
|
5007
4942
|
var Table_module_default = { "container": "container__zReWp", "loading-mask": "loading-mask__gwG6j", "scroll-container": "scroll-container__79zJk", "table": "table__ojslm", "auto": "auto__bXEGP", "fixed": "fixed__zPdl3", "borderless": "borderless__AlDGM", "scrollable": "scrollable__HSxT1", "scrollable-x": "scrollable-x__aKmx8", "scrollable-y": "scrollable-y__8nNit", "table-bordered": "table-bordered__oTd6P", "full-height": "full-height__YPJfE" };
|
|
5008
4943
|
|
|
5009
4944
|
// src/components/Table/TableBody/TableBody.tsx
|
|
5010
|
-
import
|
|
4945
|
+
import React62 from "react";
|
|
5011
4946
|
import classNames38 from "classnames";
|
|
5012
4947
|
|
|
5013
4948
|
// src/components/Table/TableBody/TableBody.module.scss
|
|
5014
4949
|
var TableBody_module_default = { "table-body": "table-body__cX0OQ", "striped": "striped__1Epqn", "hover": "hover__I3QF4" };
|
|
5015
4950
|
|
|
5016
4951
|
// src/components/Table/common/TableRow/TableRow.tsx
|
|
5017
|
-
import
|
|
4952
|
+
import React61 from "react";
|
|
5018
4953
|
import classNames37 from "classnames";
|
|
5019
4954
|
|
|
5020
4955
|
// src/components/Table/common/TableRow/TableRow.module.scss
|
|
5021
4956
|
var TableRow_module_default = { "table-row": "table-row__BdHbx", "hoverable": "hoverable__Bdemq" };
|
|
5022
4957
|
|
|
5023
4958
|
// src/components/Table/TableBody/TableBodyCell/TableBodyCell.tsx
|
|
5024
|
-
import
|
|
4959
|
+
import React59 from "react";
|
|
5025
4960
|
import classNames35 from "classnames";
|
|
5026
4961
|
|
|
5027
4962
|
// src/components/Table/TableBody/TableBodyCell/TableBodyCell.module.scss
|
|
@@ -5054,7 +4989,7 @@ var TableBodyCell = ({
|
|
|
5054
4989
|
},
|
|
5055
4990
|
className
|
|
5056
4991
|
);
|
|
5057
|
-
return /* @__PURE__ */
|
|
4992
|
+
return /* @__PURE__ */ React59.createElement(
|
|
5058
4993
|
Box,
|
|
5059
4994
|
{
|
|
5060
4995
|
as: columnIsSticky ? "th" : "td",
|
|
@@ -5072,7 +5007,7 @@ var TableBodyCell = ({
|
|
|
5072
5007
|
var TableBodyCell_default = TableBodyCell;
|
|
5073
5008
|
|
|
5074
5009
|
// src/components/Table/TableHead/TableHeaderCell/TableHeaderCell.tsx
|
|
5075
|
-
import
|
|
5010
|
+
import React60 from "react";
|
|
5076
5011
|
import classNames36 from "classnames";
|
|
5077
5012
|
|
|
5078
5013
|
// src/components/Table/TableHead/TableHeaderCell/TableHeaderCell.module.scss
|
|
@@ -5099,7 +5034,7 @@ var TableHeaderCell = ({
|
|
|
5099
5034
|
const renderIcon = () => {
|
|
5100
5035
|
const renderArrows = () => {
|
|
5101
5036
|
if (getSortDirection() === "ascending") {
|
|
5102
|
-
return /* @__PURE__ */
|
|
5037
|
+
return /* @__PURE__ */ React60.createElement(
|
|
5103
5038
|
Icon,
|
|
5104
5039
|
{
|
|
5105
5040
|
name: "caret-sm-up",
|
|
@@ -5108,7 +5043,7 @@ var TableHeaderCell = ({
|
|
|
5108
5043
|
);
|
|
5109
5044
|
}
|
|
5110
5045
|
if (getSortDirection() === "descending") {
|
|
5111
|
-
return /* @__PURE__ */
|
|
5046
|
+
return /* @__PURE__ */ React60.createElement(
|
|
5112
5047
|
Icon,
|
|
5113
5048
|
{
|
|
5114
5049
|
name: "caret-sm-down",
|
|
@@ -5116,7 +5051,7 @@ var TableHeaderCell = ({
|
|
|
5116
5051
|
}
|
|
5117
5052
|
);
|
|
5118
5053
|
}
|
|
5119
|
-
return /* @__PURE__ */
|
|
5054
|
+
return /* @__PURE__ */ React60.createElement(
|
|
5120
5055
|
Box,
|
|
5121
5056
|
{
|
|
5122
5057
|
display: "inline-block",
|
|
@@ -5127,7 +5062,7 @@ var TableHeaderCell = ({
|
|
|
5127
5062
|
}
|
|
5128
5063
|
);
|
|
5129
5064
|
};
|
|
5130
|
-
return /* @__PURE__ */
|
|
5065
|
+
return /* @__PURE__ */ React60.createElement("span", { className: TableHeaderCell_module_default["sort-icon"] }, renderArrows());
|
|
5131
5066
|
};
|
|
5132
5067
|
const handleKeyPress = (event) => {
|
|
5133
5068
|
if (!onSort || !isSortable) return;
|
|
@@ -5159,7 +5094,7 @@ var TableHeaderCell = ({
|
|
|
5159
5094
|
},
|
|
5160
5095
|
className
|
|
5161
5096
|
);
|
|
5162
|
-
return /* @__PURE__ */
|
|
5097
|
+
return /* @__PURE__ */ React60.createElement(
|
|
5163
5098
|
Box,
|
|
5164
5099
|
{
|
|
5165
5100
|
as: "th",
|
|
@@ -5172,7 +5107,7 @@ var TableHeaderCell = ({
|
|
|
5172
5107
|
onKeyDown: handleKeyPress,
|
|
5173
5108
|
scope: "col"
|
|
5174
5109
|
},
|
|
5175
|
-
/* @__PURE__ */
|
|
5110
|
+
/* @__PURE__ */ React60.createElement("div", { className: TableHeaderCell_module_default.heading }, column.heading, isSortable && renderIcon())
|
|
5176
5111
|
);
|
|
5177
5112
|
};
|
|
5178
5113
|
|
|
@@ -5214,8 +5149,8 @@ var TableRow = ({
|
|
|
5214
5149
|
}
|
|
5215
5150
|
return void 0;
|
|
5216
5151
|
};
|
|
5217
|
-
return /* @__PURE__ */
|
|
5218
|
-
(column, columnIndex) => isTableHead ? /* @__PURE__ */
|
|
5152
|
+
return /* @__PURE__ */ React61.createElement("tr", { className: tableRowClasses }, Object.values(columns).map(
|
|
5153
|
+
(column, columnIndex) => isTableHead ? /* @__PURE__ */ React61.createElement(
|
|
5219
5154
|
TableHeaderCell,
|
|
5220
5155
|
{
|
|
5221
5156
|
column,
|
|
@@ -5233,7 +5168,7 @@ var TableRow = ({
|
|
|
5233
5168
|
hasStickyHeader,
|
|
5234
5169
|
sticky: column.sticky
|
|
5235
5170
|
}
|
|
5236
|
-
) : /* @__PURE__ */
|
|
5171
|
+
) : /* @__PURE__ */ React61.createElement(
|
|
5237
5172
|
TableBodyCell_default,
|
|
5238
5173
|
{
|
|
5239
5174
|
align: column.align || align,
|
|
@@ -5272,7 +5207,7 @@ var TableBody = ({
|
|
|
5272
5207
|
},
|
|
5273
5208
|
className
|
|
5274
5209
|
);
|
|
5275
|
-
return /* @__PURE__ */
|
|
5210
|
+
return /* @__PURE__ */ React62.createElement("tbody", { className: tableBodyClasses }, rows.map((row, rowIndex) => /* @__PURE__ */ React62.createElement(
|
|
5276
5211
|
TableRow,
|
|
5277
5212
|
{
|
|
5278
5213
|
columns,
|
|
@@ -5289,7 +5224,7 @@ var TableBody = ({
|
|
|
5289
5224
|
};
|
|
5290
5225
|
|
|
5291
5226
|
// src/components/Table/TableHead/TableHead.tsx
|
|
5292
|
-
import
|
|
5227
|
+
import React63 from "react";
|
|
5293
5228
|
import classNames39 from "classnames";
|
|
5294
5229
|
var TableHead = ({
|
|
5295
5230
|
columns,
|
|
@@ -5303,7 +5238,7 @@ var TableHead = ({
|
|
|
5303
5238
|
truncateOverflow = false
|
|
5304
5239
|
}) => {
|
|
5305
5240
|
const tableHeadClasses = classNames39(className);
|
|
5306
|
-
return /* @__PURE__ */
|
|
5241
|
+
return /* @__PURE__ */ React63.createElement("thead", { className: tableHeadClasses }, /* @__PURE__ */ React63.createElement(
|
|
5307
5242
|
TableRow,
|
|
5308
5243
|
{
|
|
5309
5244
|
columns,
|
|
@@ -5357,13 +5292,13 @@ var Table = ({
|
|
|
5357
5292
|
[Table_module_default.borderless]: isBorderless,
|
|
5358
5293
|
[Table_module_default.compact]: isCompact
|
|
5359
5294
|
});
|
|
5360
|
-
return /* @__PURE__ */
|
|
5295
|
+
return /* @__PURE__ */ React64.createElement("div", { className: containerClasses }, isLoading && /* @__PURE__ */ React64.createElement("div", { className: Table_module_default["loading-mask"] }, /* @__PURE__ */ React64.createElement(Spinner, { size: "xl" })), /* @__PURE__ */ React64.createElement(
|
|
5361
5296
|
"div",
|
|
5362
5297
|
{
|
|
5363
5298
|
className: scrollContainerClasses,
|
|
5364
5299
|
"data-testid": "tableContainerDiv-testid"
|
|
5365
5300
|
},
|
|
5366
|
-
/* @__PURE__ */
|
|
5301
|
+
/* @__PURE__ */ React64.createElement("table", { className: tableClasses }, /* @__PURE__ */ React64.createElement(
|
|
5367
5302
|
TableHead,
|
|
5368
5303
|
{
|
|
5369
5304
|
columns,
|
|
@@ -5375,7 +5310,7 @@ var Table = ({
|
|
|
5375
5310
|
truncateOverflow,
|
|
5376
5311
|
hasStickyHeader
|
|
5377
5312
|
}
|
|
5378
|
-
), /* @__PURE__ */
|
|
5313
|
+
), /* @__PURE__ */ React64.createElement(
|
|
5379
5314
|
TableBody,
|
|
5380
5315
|
{
|
|
5381
5316
|
rows,
|
|
@@ -5394,7 +5329,7 @@ var Table = ({
|
|
|
5394
5329
|
};
|
|
5395
5330
|
|
|
5396
5331
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
5397
|
-
import
|
|
5332
|
+
import React65, { createContext as createContext4, useState as useState5, useEffect as useEffect4 } from "react";
|
|
5398
5333
|
var initialState = {
|
|
5399
5334
|
theme: "system",
|
|
5400
5335
|
setTheme: () => null
|
|
@@ -5428,14 +5363,14 @@ function ThemeProvider({
|
|
|
5428
5363
|
},
|
|
5429
5364
|
isDarkMode
|
|
5430
5365
|
};
|
|
5431
|
-
return /* @__PURE__ */
|
|
5366
|
+
return /* @__PURE__ */ React65.createElement(ThemeProviderContext.Provider, { ...props, value }, children);
|
|
5432
5367
|
}
|
|
5433
5368
|
|
|
5434
5369
|
// src/components/Toast/ToastContainer.tsx
|
|
5435
|
-
import
|
|
5370
|
+
import React67 from "react";
|
|
5436
5371
|
|
|
5437
5372
|
// src/components/Toast/ToastNotification.tsx
|
|
5438
|
-
import
|
|
5373
|
+
import React66 from "react";
|
|
5439
5374
|
import classNames41 from "classnames";
|
|
5440
5375
|
|
|
5441
5376
|
// src/components/Toast/ToastNotification.module.scss
|
|
@@ -5468,12 +5403,12 @@ var renderToastIcon = (toast2) => {
|
|
|
5468
5403
|
iconName = "c-warning";
|
|
5469
5404
|
iconColor = "white";
|
|
5470
5405
|
}
|
|
5471
|
-
const icon = type !== "loading" ? /* @__PURE__ */
|
|
5472
|
-
return /* @__PURE__ */
|
|
5406
|
+
const icon = type !== "loading" ? /* @__PURE__ */ React66.createElement(Icon, { name: iconName, color: iconColor }) : /* @__PURE__ */ React66.createElement(Spinner, null);
|
|
5407
|
+
return /* @__PURE__ */ React66.createElement(Box, { justifyContent: "center", height: "100" }, icon);
|
|
5473
5408
|
};
|
|
5474
5409
|
var renderDismissIcon = (toast2, onDismiss) => {
|
|
5475
5410
|
if (!toast2.canDismiss) return;
|
|
5476
|
-
return /* @__PURE__ */
|
|
5411
|
+
return /* @__PURE__ */ React66.createElement(
|
|
5477
5412
|
Box,
|
|
5478
5413
|
{
|
|
5479
5414
|
as: "button",
|
|
@@ -5488,12 +5423,12 @@ var renderDismissIcon = (toast2, onDismiss) => {
|
|
|
5488
5423
|
onClick: onDismiss,
|
|
5489
5424
|
"aria-label": "dismiss notification"
|
|
5490
5425
|
},
|
|
5491
|
-
/* @__PURE__ */
|
|
5426
|
+
/* @__PURE__ */ React66.createElement(Icon, { name: "remove" })
|
|
5492
5427
|
);
|
|
5493
5428
|
};
|
|
5494
|
-
var ToastNotification =
|
|
5429
|
+
var ToastNotification = React66.memo(
|
|
5495
5430
|
({ toast: toast2, position = "top-center", style, children, onDismiss }) => {
|
|
5496
|
-
const message = /* @__PURE__ */
|
|
5431
|
+
const message = /* @__PURE__ */ React66.createElement(
|
|
5497
5432
|
Box,
|
|
5498
5433
|
{
|
|
5499
5434
|
direction: "row",
|
|
@@ -5515,7 +5450,7 @@ var ToastNotification = React68.memo(
|
|
|
5515
5450
|
[ToastNotification_module_default["toast-error"]]: toast2.type === "error"
|
|
5516
5451
|
}
|
|
5517
5452
|
);
|
|
5518
|
-
return /* @__PURE__ */
|
|
5453
|
+
return /* @__PURE__ */ React66.createElement(
|
|
5519
5454
|
Box,
|
|
5520
5455
|
{
|
|
5521
5456
|
alignItems: "center",
|
|
@@ -5532,7 +5467,7 @@ var ToastNotification = React68.memo(
|
|
|
5532
5467
|
},
|
|
5533
5468
|
typeof children === "function" ? children({
|
|
5534
5469
|
message
|
|
5535
|
-
}) : /* @__PURE__ */
|
|
5470
|
+
}) : /* @__PURE__ */ React66.createElement(React66.Fragment, null, renderToastIcon(toast2), message, renderDismissIcon(toast2, onDismiss))
|
|
5536
5471
|
);
|
|
5537
5472
|
}
|
|
5538
5473
|
);
|
|
@@ -5869,7 +5804,7 @@ var renderNotification = (currentToast, children, containerPosition) => {
|
|
|
5869
5804
|
if (children) {
|
|
5870
5805
|
return children(currentToast);
|
|
5871
5806
|
}
|
|
5872
|
-
return /* @__PURE__ */
|
|
5807
|
+
return /* @__PURE__ */ React67.createElement(
|
|
5873
5808
|
ToastNotification,
|
|
5874
5809
|
{
|
|
5875
5810
|
toast: currentToast,
|
|
@@ -5889,7 +5824,7 @@ var ToastContainer = ({
|
|
|
5889
5824
|
...restProps
|
|
5890
5825
|
}) => {
|
|
5891
5826
|
const { toasts, handlers } = useToasts(toastOptions);
|
|
5892
|
-
return /* @__PURE__ */
|
|
5827
|
+
return /* @__PURE__ */ React67.createElement(
|
|
5893
5828
|
Box,
|
|
5894
5829
|
{
|
|
5895
5830
|
style: {
|
|
@@ -5919,7 +5854,7 @@ var ToastContainer = ({
|
|
|
5919
5854
|
const ref = t.height ? void 0 : createRectRef((rect) => {
|
|
5920
5855
|
handlers.updateHeight(t.id, rect.height);
|
|
5921
5856
|
});
|
|
5922
|
-
return /* @__PURE__ */
|
|
5857
|
+
return /* @__PURE__ */ React67.createElement(
|
|
5923
5858
|
Box,
|
|
5924
5859
|
{
|
|
5925
5860
|
ref,
|
|
@@ -5937,7 +5872,7 @@ var ToastContainer = ({
|
|
|
5937
5872
|
};
|
|
5938
5873
|
|
|
5939
5874
|
// src/components/Toggle/Toggle.tsx
|
|
5940
|
-
import
|
|
5875
|
+
import React68, { forwardRef as forwardRef16 } from "react";
|
|
5941
5876
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
5942
5877
|
|
|
5943
5878
|
// src/components/Toggle/Toggle.module.scss
|
|
@@ -5945,7 +5880,7 @@ var Toggle_module_default = { "item": "item__PrPsJ", "outline": "outline__Lkabh"
|
|
|
5945
5880
|
|
|
5946
5881
|
// src/components/Toggle/Toggle.tsx
|
|
5947
5882
|
import classNames42 from "classnames";
|
|
5948
|
-
var Toggle = forwardRef16(({ className, variant = "default", children, ...props }, ref) => /* @__PURE__ */
|
|
5883
|
+
var Toggle = forwardRef16(({ className, variant = "default", children, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
5949
5884
|
TogglePrimitive.Root,
|
|
5950
5885
|
{
|
|
5951
5886
|
ref,
|
|
@@ -5965,9 +5900,9 @@ Toggle.displayName = "Toggle";
|
|
|
5965
5900
|
import { useState as useState7 } from "react";
|
|
5966
5901
|
|
|
5967
5902
|
// src/hooks/useWindowSize/useWindowSize.ts
|
|
5968
|
-
import
|
|
5903
|
+
import React69 from "react";
|
|
5969
5904
|
var useWindowSize = () => {
|
|
5970
|
-
const { innerWidth, innerHeight, outerHeight, outerWidth, isCreated } =
|
|
5905
|
+
const { innerWidth, innerHeight, outerHeight, outerWidth, isCreated } = React69.useContext(ResponsiveContext);
|
|
5971
5906
|
if (isCreated) {
|
|
5972
5907
|
return {
|
|
5973
5908
|
innerHeight,
|
|
@@ -6055,9 +5990,9 @@ var useOpenClose = (props = {}) => {
|
|
|
6055
5990
|
};
|
|
6056
5991
|
|
|
6057
5992
|
// src/hooks/useTheme/useTheme.ts
|
|
6058
|
-
import
|
|
5993
|
+
import React70 from "react";
|
|
6059
5994
|
var useTheme = () => {
|
|
6060
|
-
const context =
|
|
5995
|
+
const context = React70.useContext(ThemeProviderContext);
|
|
6061
5996
|
if (context === void 0)
|
|
6062
5997
|
throw new Error(
|
|
6063
5998
|
"useTheme must be used within a ThemeProvider. Be sure your App is wrapped in ThemeProvider."
|
|
@@ -6127,7 +6062,6 @@ export {
|
|
|
6127
6062
|
FormikTextareaInput,
|
|
6128
6063
|
FormikTextareaInputInset,
|
|
6129
6064
|
FormikTimePicker,
|
|
6130
|
-
FormikTimePickerNative,
|
|
6131
6065
|
FormikToggleGroup,
|
|
6132
6066
|
FormikToggleGroupMulti,
|
|
6133
6067
|
HEADING_SIZE_OPTIONS,
|
|
@@ -6180,7 +6114,6 @@ export {
|
|
|
6180
6114
|
ThemeProvider,
|
|
6181
6115
|
ThemeProviderContext,
|
|
6182
6116
|
TimePicker,
|
|
6183
|
-
TimePickerNative,
|
|
6184
6117
|
ToastContainer,
|
|
6185
6118
|
Toggle,
|
|
6186
6119
|
ToggleGroup,
|