@7shifts/sous-chef 4.12.1 → 4.13.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/index.css +53 -20
- package/dist/index.css.map +1 -1
- package/dist/index.js +421 -425
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +597 -600
- package/dist/index.modern.js.map +1 -1
- package/dist/media/Avatar/AvatarContext.d.ts +6 -0
- package/dist/media/Avatar/AvatarImage/AvatarImage.d.ts +2 -2
- package/dist/media/Badge/Badge.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -274,7 +274,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
274
274
|
return t;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
var styles$
|
|
277
|
+
var styles$1K = {"flex":"_GFHBy","flex__item":"_TOxU5","flex__item--flexible":"_oppLW","align-center":"_bC2qU","align-end":"_9qCMz","align-start":"_06gN4","justify-center":"_9gxO4","justify-end":"_33FAJ","justify-space-between":"_lg-h2","justify-start":"_xjZcn","inline-flex":"_3yyLA"};
|
|
278
278
|
|
|
279
279
|
const usePositionStyles = ({
|
|
280
280
|
m,
|
|
@@ -390,15 +390,15 @@ const Flex = _ref => {
|
|
|
390
390
|
dataProps
|
|
391
391
|
} = getDataProps(otherProps);
|
|
392
392
|
const positionStyles = usePositionStyles(positionProps);
|
|
393
|
-
const className = classnames(styles$
|
|
394
|
-
[styles$
|
|
395
|
-
[styles$
|
|
396
|
-
[styles$
|
|
397
|
-
[styles$
|
|
398
|
-
[styles$
|
|
399
|
-
[styles$
|
|
400
|
-
[styles$
|
|
401
|
-
[styles$
|
|
393
|
+
const className = classnames(styles$1K['flex'], extraClass, {
|
|
394
|
+
[styles$1K['align-start']]: alignItems === 'flex-start',
|
|
395
|
+
[styles$1K['align-end']]: alignItems === 'flex-end',
|
|
396
|
+
[styles$1K['align-center']]: alignItems === 'center',
|
|
397
|
+
[styles$1K['justify-start']]: justifyContent === 'start',
|
|
398
|
+
[styles$1K['justify-end']]: justifyContent === 'end',
|
|
399
|
+
[styles$1K['justify-center']]: justifyContent === 'center',
|
|
400
|
+
[styles$1K['justify-space-between']]: justifyContent === 'space-between',
|
|
401
|
+
[styles$1K['inline-flex']]: inlineFlex
|
|
402
402
|
});
|
|
403
403
|
const items = React__default.Children.toArray(children).filter(Boolean);
|
|
404
404
|
const gap = typeof space === 'object' ? `${space.row}px ${space.column}px` : space;
|
|
@@ -413,8 +413,8 @@ const Flex = _ref => {
|
|
|
413
413
|
"data-testid": testId
|
|
414
414
|
}, dataProps), items.map((child, i) => React__default.createElement("div", {
|
|
415
415
|
key: i,
|
|
416
|
-
className: classnames(styles$
|
|
417
|
-
[styles$
|
|
416
|
+
className: classnames(styles$1K['flex__item'], {
|
|
417
|
+
[styles$1K['flex__item--flexible']]: flexItems
|
|
418
418
|
}),
|
|
419
419
|
style: {
|
|
420
420
|
flex: flex ? flex[i] || '0 1 auto' : '0 1 auto'
|
|
@@ -437,7 +437,7 @@ const Stack = _ref => {
|
|
|
437
437
|
}));
|
|
438
438
|
};
|
|
439
439
|
|
|
440
|
-
var styles$
|
|
440
|
+
var styles$1J = {"caption":"_tMhXr","label":"_NfOw5","label--truncate":"_M3aFK","toggle":"_QDQZ1","toggle__label":"_52dky","toggle__caption":"_A-tgL","toggle__switch":"_kBjjH"};
|
|
441
441
|
|
|
442
442
|
const _excluded$ep = ["checked", "label", "caption", "onChange", "disabled", "id", "testId"];
|
|
443
443
|
/**
|
|
@@ -462,7 +462,7 @@ const Toggle = _ref => {
|
|
|
462
462
|
return React__default.createElement(Stack, {
|
|
463
463
|
space: 8
|
|
464
464
|
}, React__default.createElement("label", _extends({}, dataProps, {
|
|
465
|
-
className: styles$
|
|
465
|
+
className: styles$1J['toggle']
|
|
466
466
|
}), React__default.createElement("input", {
|
|
467
467
|
type: "checkbox",
|
|
468
468
|
checked: checked,
|
|
@@ -471,11 +471,11 @@ const Toggle = _ref => {
|
|
|
471
471
|
id: id,
|
|
472
472
|
"data-testid": testId
|
|
473
473
|
}), React__default.createElement("span", {
|
|
474
|
-
className: styles$
|
|
474
|
+
className: styles$1J['toggle__switch']
|
|
475
475
|
}), label && React__default.createElement("span", {
|
|
476
|
-
className: styles$
|
|
476
|
+
className: styles$1J['toggle__label']
|
|
477
477
|
}, label)), caption && React__default.createElement("span", {
|
|
478
|
-
className: styles$
|
|
478
|
+
className: styles$1J['toggle__caption']
|
|
479
479
|
}, caption));
|
|
480
480
|
};
|
|
481
481
|
|
|
@@ -493,7 +493,7 @@ const SPINNER_THEMES = {
|
|
|
493
493
|
PRIDE: 'pride'
|
|
494
494
|
};
|
|
495
495
|
|
|
496
|
-
var styles$
|
|
496
|
+
var styles$1I = {"spinner":"_memxT","rotator":"_QieGp","spinner--block":"_VoFzz","path":"_KSRP9","dash":"_RyBY2","path--mint":"_-sIZJ","path--disabled":"_3fox0","path--contrast":"_VteKz","path--pride":"_7rzsv"};
|
|
497
497
|
|
|
498
498
|
const Spinner = ({
|
|
499
499
|
size: _size = 28,
|
|
@@ -503,10 +503,10 @@ const Spinner = ({
|
|
|
503
503
|
}) => {
|
|
504
504
|
return React__default.createElement("div", {
|
|
505
505
|
className: classnames({
|
|
506
|
-
[styles$
|
|
506
|
+
[styles$1I['spinner--block']]: _block
|
|
507
507
|
})
|
|
508
508
|
}, React__default.createElement("svg", {
|
|
509
|
-
className: styles$
|
|
509
|
+
className: styles$1I['spinner'],
|
|
510
510
|
xmlns: "http://www.w3.org/2000/svg",
|
|
511
511
|
width: _size,
|
|
512
512
|
height: _size,
|
|
@@ -581,7 +581,7 @@ const Spinner = ({
|
|
|
581
581
|
offset: "1",
|
|
582
582
|
stopColor: "#760088"
|
|
583
583
|
}))), React__default.createElement("circle", {
|
|
584
|
-
className: classnames(styles$
|
|
584
|
+
className: classnames(styles$1I['path'], styles$1I[`path--${_theme}`]),
|
|
585
585
|
fill: "none",
|
|
586
586
|
strokeWidth: "6",
|
|
587
587
|
strokeLinecap: "round",
|
|
@@ -591,9 +591,9 @@ const Spinner = ({
|
|
|
591
591
|
})));
|
|
592
592
|
};
|
|
593
593
|
|
|
594
|
-
var styles$
|
|
594
|
+
var styles$1H = {"tooltip":"_Ydu2O"};
|
|
595
595
|
|
|
596
|
-
var styles$
|
|
596
|
+
var styles$1G = {"tooltip-overlay":"_7fQon","tooltip-overlay--visible":"_a-BND","tooltip-overlay--black-theme":"_UUdng","tooltip-overlay--white-theme":"_brSNX","tooltip-overlay__header":"_uP8x7","tooltip-overlay-arrow":"_MjV6R","tooltip-overlay-arrow--top":"_TQqwB","tooltip-overlay-arrow--bottom":"_pgdKl","tooltip-overlay-arrow--visible":"_Zob-W","tooltip-overlay-arrow--black-theme":"_FXaBf","tooltip-overlay-arrow--white-theme":"_FyPu8"};
|
|
597
597
|
|
|
598
598
|
const TOOLTIP_THEME = {
|
|
599
599
|
BLACK: 'black',
|
|
@@ -787,24 +787,24 @@ const TooltipOverlay = ({
|
|
|
787
787
|
maxHeight,
|
|
788
788
|
zIndex: getZIndex('tooltip')
|
|
789
789
|
}),
|
|
790
|
-
className: classnames(styles$
|
|
791
|
-
[styles$
|
|
792
|
-
[styles$
|
|
793
|
-
[styles$
|
|
790
|
+
className: classnames(styles$1G['tooltip-overlay'], extraClass, {
|
|
791
|
+
[styles$1G['tooltip-overlay--visible']]: isVisible,
|
|
792
|
+
[styles$1G['tooltip-overlay--black-theme']]: theme === TOOLTIP_THEME.BLACK,
|
|
793
|
+
[styles$1G['tooltip-overlay--white-theme']]: theme === TOOLTIP_THEME.WHITE
|
|
794
794
|
}),
|
|
795
795
|
onMouseEnter: onFocusIn,
|
|
796
796
|
onMouseLeave: onFocusOut
|
|
797
797
|
}, React__default.createElement(Stack, {
|
|
798
798
|
space: 8
|
|
799
799
|
}, header && React__default.createElement("div", {
|
|
800
|
-
className: styles$
|
|
800
|
+
className: styles$1G['tooltip-overlay__header']
|
|
801
801
|
}, header), children)), React__default.createElement("div", {
|
|
802
|
-
className: classnames(styles$
|
|
803
|
-
[styles$
|
|
804
|
-
[styles$
|
|
805
|
-
[styles$
|
|
806
|
-
[styles$
|
|
807
|
-
[styles$
|
|
802
|
+
className: classnames(styles$1G['tooltip-overlay-arrow'], extraClass, {
|
|
803
|
+
[styles$1G['tooltip-overlay-arrow--visible']]: isVisible,
|
|
804
|
+
[styles$1G['tooltip-overlay-arrow--top']]: position.actualPlacement.placement === TOOLTIP_PLACEMENT.TOP,
|
|
805
|
+
[styles$1G['tooltip-overlay-arrow--bottom']]: position.actualPlacement.placement === TOOLTIP_PLACEMENT.BOTTOM,
|
|
806
|
+
[styles$1G['tooltip-overlay-arrow--black-theme']]: theme === TOOLTIP_THEME.BLACK,
|
|
807
|
+
[styles$1G['tooltip-overlay-arrow--white-theme']]: theme === TOOLTIP_THEME.WHITE
|
|
808
808
|
}),
|
|
809
809
|
style: _extends({}, position.arrow, {
|
|
810
810
|
zIndex: getZIndex('tooltip')
|
|
@@ -916,7 +916,7 @@ const TooltipElement = ({
|
|
|
916
916
|
}), overlayElement);
|
|
917
917
|
}
|
|
918
918
|
return React__default.createElement("div", _extends({
|
|
919
|
-
className: classnames(styles$
|
|
919
|
+
className: classnames(styles$1H['tooltip'])
|
|
920
920
|
}, commonProps, {
|
|
921
921
|
ref: containerRef
|
|
922
922
|
}), children, overlayElement);
|
|
@@ -929,7 +929,7 @@ const isTooltipCompatible = element => {
|
|
|
929
929
|
return React__default.isValidElement(element) && typeof element.type === 'string';
|
|
930
930
|
};
|
|
931
931
|
|
|
932
|
-
var styles$
|
|
932
|
+
var styles$1F = {"button":"_pgOR3","button--loading":"_2yB9-","button__spinner":"_ppC-S","button--size-min-width-100":"_GtXOQ","button--size-full-width":"_Y-OxO","button--icon-only":"_3EfuT","button--default":"_ICNz7","button--primary":"_XwJWT","button--danger":"_gr3Dh","button--upsell":"_ME8te","button--marketing":"_mI-Dx","button--hollow":"_orywo","button--hollow-contrast":"_obtsl","button--link-contrast":"_00jK4","button--link-primary":"_JPwJ7","button--link-danger":"_9TprN","button--link-upsell":"_tktX-","button--link-toolbar":"_r3SQl","button--link-icon":"_oFBLN","disabled-button-wrapper":"_yTBTz"};
|
|
933
933
|
|
|
934
934
|
const BUTTON_SIZES = {
|
|
935
935
|
FULL_WIDTH: 'full-width',
|
|
@@ -1024,24 +1024,24 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1024
1024
|
onBlur: onBlur,
|
|
1025
1025
|
onFocus: onFocus,
|
|
1026
1026
|
onKeyDown: onKeyDown,
|
|
1027
|
-
className: classnames(styles$
|
|
1028
|
-
[styles$
|
|
1029
|
-
[styles$
|
|
1030
|
-
[styles$
|
|
1031
|
-
[styles$
|
|
1032
|
-
[styles$
|
|
1033
|
-
[styles$
|
|
1034
|
-
[styles$
|
|
1035
|
-
[styles$
|
|
1036
|
-
[styles$
|
|
1037
|
-
[styles$
|
|
1038
|
-
[styles$
|
|
1039
|
-
[styles$
|
|
1040
|
-
[styles$
|
|
1041
|
-
[styles$
|
|
1042
|
-
[styles$
|
|
1043
|
-
[styles$
|
|
1044
|
-
[styles$
|
|
1027
|
+
className: classnames(styles$1F['button'], {
|
|
1028
|
+
[styles$1F['button--default']]: theme === BUTTON_THEMES.DEFAULT,
|
|
1029
|
+
[styles$1F['button--primary']]: theme === BUTTON_THEMES.PRIMARY,
|
|
1030
|
+
[styles$1F['button--danger']]: theme === BUTTON_THEMES.DANGER,
|
|
1031
|
+
[styles$1F['button--upsell']]: theme === BUTTON_THEMES.UPSELL,
|
|
1032
|
+
[styles$1F['button--marketing']]: theme === BUTTON_THEMES.MARKETING,
|
|
1033
|
+
[styles$1F['button--hollow']]: theme === BUTTON_THEMES.HOLLOW,
|
|
1034
|
+
[styles$1F['button--hollow-contrast']]: theme === BUTTON_THEMES.HOLLOW_CONTRAST,
|
|
1035
|
+
[styles$1F['button--link-primary']]: theme === BUTTON_THEMES.LINK_PRIMARY,
|
|
1036
|
+
[styles$1F['button--link-danger']]: theme === BUTTON_THEMES.LINK_DANGER,
|
|
1037
|
+
[styles$1F['button--link-upsell']]: theme === BUTTON_THEMES.LINK_UPSELL,
|
|
1038
|
+
[styles$1F['button--link-toolbar']]: theme === BUTTON_THEMES.LINK_TOOLBAR,
|
|
1039
|
+
[styles$1F['button--link-contrast']]: theme === BUTTON_THEMES.LINK_CONTRAST,
|
|
1040
|
+
[styles$1F['button--link-icon']]: theme === BUTTON_THEMES.LINK_ICON,
|
|
1041
|
+
[styles$1F['button--loading']]: loading,
|
|
1042
|
+
[styles$1F['button--icon-only']]: isIconOnly,
|
|
1043
|
+
[styles$1F['button--size-min-width-100']]: size === BUTTON_SIZES.MIN_WIDTH_100,
|
|
1044
|
+
[styles$1F['button--size-full-width']]: size === BUTTON_SIZES.FULL_WIDTH
|
|
1045
1045
|
}),
|
|
1046
1046
|
type: type,
|
|
1047
1047
|
disabled: disabled || loading,
|
|
@@ -1055,7 +1055,7 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1055
1055
|
space: 8,
|
|
1056
1056
|
alignItems: "center"
|
|
1057
1057
|
}, children), loading && React__default.createElement("div", {
|
|
1058
|
-
className: styles$
|
|
1058
|
+
className: styles$1F['button__spinner']
|
|
1059
1059
|
}, React__default.createElement(Spinner, {
|
|
1060
1060
|
theme: contrastSpinner.includes(theme) ? SPINNER_THEMES.CONTRAST : SPINNER_THEMES.DISABLED
|
|
1061
1061
|
})));
|
|
@@ -1065,7 +1065,7 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1065
1065
|
overlay: title,
|
|
1066
1066
|
ref: ref
|
|
1067
1067
|
}, title && disabled ? React__default.createElement("div", {
|
|
1068
|
-
className: styles$
|
|
1068
|
+
className: styles$1F['disabled-button-wrapper']
|
|
1069
1069
|
}, ButtonElementResult) : ButtonElementResult)
|
|
1070
1070
|
);
|
|
1071
1071
|
};
|
|
@@ -10356,20 +10356,20 @@ const IconGreatMonochromatic = forwardRef((_ref, ref) => {
|
|
|
10356
10356
|
});
|
|
10357
10357
|
IconGreatMonochromatic.displayName = 'IconGreatMonochromatic';
|
|
10358
10358
|
|
|
10359
|
-
var styles$
|
|
10359
|
+
var styles$1E = {"pagination-controls":"_S1co-"};
|
|
10360
10360
|
|
|
10361
|
-
var styles$
|
|
10361
|
+
var styles$1D = {"keyboard-key":"_sgd9a","keyboard-key--light":"_8zg4j","keyboard-key__character":"_GAIig"};
|
|
10362
10362
|
|
|
10363
10363
|
const KeyboardKey = ({
|
|
10364
10364
|
children,
|
|
10365
10365
|
theme: _theme = 'dark'
|
|
10366
10366
|
}) => {
|
|
10367
10367
|
return React__default.createElement("span", {
|
|
10368
|
-
className: classnames(styles$
|
|
10369
|
-
[styles$
|
|
10368
|
+
className: classnames(styles$1D['keyboard-key'], {
|
|
10369
|
+
[styles$1D['keyboard-key--light']]: _theme === 'light'
|
|
10370
10370
|
})
|
|
10371
10371
|
}, React__default.createElement("span", {
|
|
10372
|
-
className: styles$
|
|
10372
|
+
className: styles$1D['keyboard-key__character']
|
|
10373
10373
|
}, children));
|
|
10374
10374
|
};
|
|
10375
10375
|
|
|
@@ -10588,7 +10588,7 @@ const PaginationControls = _ref => {
|
|
|
10588
10588
|
}
|
|
10589
10589
|
});
|
|
10590
10590
|
return React__default.createElement("div", _extends({}, dataProps, {
|
|
10591
|
-
className: styles$
|
|
10591
|
+
className: styles$1E['pagination-controls'],
|
|
10592
10592
|
"data-testid": testId
|
|
10593
10593
|
}), React__default.createElement(Button, {
|
|
10594
10594
|
disabled: !hasPrevious,
|
|
@@ -10618,7 +10618,7 @@ const LINK_TARGET = {
|
|
|
10618
10618
|
BLANK: '_blank'
|
|
10619
10619
|
};
|
|
10620
10620
|
|
|
10621
|
-
var styles$
|
|
10621
|
+
var styles$1C = {"link":"_EiQ4c","link--contrast":"_weJDR"};
|
|
10622
10622
|
|
|
10623
10623
|
const _excluded$bq = ["href", "target", "theme", "onClick", "children"];
|
|
10624
10624
|
const Link = _ref => {
|
|
@@ -10635,9 +10635,9 @@ const Link = _ref => {
|
|
|
10635
10635
|
} = getDataProps(otherProps);
|
|
10636
10636
|
const ref = React__default.useRef(null);
|
|
10637
10637
|
return React__default.createElement("a", _extends({}, dataProps, {
|
|
10638
|
-
className: classnames(styles$
|
|
10639
|
-
[styles$
|
|
10640
|
-
[styles$
|
|
10638
|
+
className: classnames(styles$1C['link'], {
|
|
10639
|
+
[styles$1C['link--primary']]: theme === LINK_THEME.PRIMARY,
|
|
10640
|
+
[styles$1C['link--contrast']]: theme === LINK_THEME.CONTRAST
|
|
10641
10641
|
}),
|
|
10642
10642
|
href: href,
|
|
10643
10643
|
target: target,
|
|
@@ -10659,7 +10659,7 @@ const DropdownContext = React__default.createContext({
|
|
|
10659
10659
|
});
|
|
10660
10660
|
const useDropdownContext = () => React__default.useContext(DropdownContext);
|
|
10661
10661
|
|
|
10662
|
-
var styles$
|
|
10662
|
+
var styles$1B = {"dropdown-pane":"_sp-pT"};
|
|
10663
10663
|
|
|
10664
10664
|
const DROPDOWN_PANE_PADDING = 14;
|
|
10665
10665
|
const calculateOverlayPosition$1 = (triggerPosition, triggerOffsetHeight, panePosition, alignment) => {
|
|
@@ -10795,8 +10795,8 @@ const PaneOverlay = ({
|
|
|
10795
10795
|
useKeyPress(['Escape'], onToggleDropdown);
|
|
10796
10796
|
const overflow = maxHeight ? 'auto' : undefined;
|
|
10797
10797
|
return React__default.createElement("div", {
|
|
10798
|
-
className: classnames(styles$
|
|
10799
|
-
[styles$
|
|
10798
|
+
className: classnames(styles$1B['dropdown-pane'], {
|
|
10799
|
+
[styles$1B['dropdown-pane--with-padding']]: true,
|
|
10800
10800
|
'dropdown-pane--custom-width': width !== undefined
|
|
10801
10801
|
}),
|
|
10802
10802
|
style: _extends({}, position, {
|
|
@@ -10827,7 +10827,7 @@ const getKeyboardFocusableElements = element => {
|
|
|
10827
10827
|
});
|
|
10828
10828
|
};
|
|
10829
10829
|
|
|
10830
|
-
var styles$
|
|
10830
|
+
var styles$1A = {"dropdown__trigger":"_AktVc"};
|
|
10831
10831
|
|
|
10832
10832
|
const DROPDOWN_ALIGNEMNT = {
|
|
10833
10833
|
LEFT: 'left',
|
|
@@ -10838,7 +10838,7 @@ const DROPDOWN_TRIGGER = {
|
|
|
10838
10838
|
CLICK: 'click'
|
|
10839
10839
|
};
|
|
10840
10840
|
|
|
10841
|
-
var styles$
|
|
10841
|
+
var styles$1z = {"label":"_zv4ua","label--truncate":"_FPyID"};
|
|
10842
10842
|
|
|
10843
10843
|
const isEllipsisActive = e => {
|
|
10844
10844
|
return e.offsetWidth < e.scrollWidth;
|
|
@@ -10887,8 +10887,8 @@ const Label = ({
|
|
|
10887
10887
|
const LabelElement = React__default.createElement("label", {
|
|
10888
10888
|
htmlFor: htmlFor,
|
|
10889
10889
|
id: labelId,
|
|
10890
|
-
className: classnames(styles$
|
|
10891
|
-
[styles$
|
|
10890
|
+
className: classnames(styles$1z['label'], {
|
|
10891
|
+
[styles$1z['label--truncate']]: shouldTruncate
|
|
10892
10892
|
})
|
|
10893
10893
|
}, children);
|
|
10894
10894
|
if (showTooltip) {
|
|
@@ -10900,7 +10900,7 @@ const Label = ({
|
|
|
10900
10900
|
return LabelElement;
|
|
10901
10901
|
};
|
|
10902
10902
|
|
|
10903
|
-
var styles$
|
|
10903
|
+
var styles$1y = {"caption":"_Qrxg5"};
|
|
10904
10904
|
|
|
10905
10905
|
const Caption = ({
|
|
10906
10906
|
fieldId,
|
|
@@ -10908,11 +10908,11 @@ const Caption = ({
|
|
|
10908
10908
|
}) => {
|
|
10909
10909
|
return React__default.createElement("div", {
|
|
10910
10910
|
id: fieldId && `${fieldId}-describer`,
|
|
10911
|
-
className: styles$
|
|
10911
|
+
className: styles$1y['caption']
|
|
10912
10912
|
}, children);
|
|
10913
10913
|
};
|
|
10914
10914
|
|
|
10915
|
-
var styles$
|
|
10915
|
+
var styles$1x = {"error-message":"_eS4YO"};
|
|
10916
10916
|
|
|
10917
10917
|
const ErrorMessage = ({
|
|
10918
10918
|
fieldId,
|
|
@@ -10921,7 +10921,7 @@ const ErrorMessage = ({
|
|
|
10921
10921
|
}) => {
|
|
10922
10922
|
return React__default.createElement("div", {
|
|
10923
10923
|
id: fieldId && `${fieldId}-error-message`,
|
|
10924
|
-
className: styles$
|
|
10924
|
+
className: styles$1x['error-message'],
|
|
10925
10925
|
"data-testid": testId
|
|
10926
10926
|
}, React__default.createElement(Inline, {
|
|
10927
10927
|
space: 8,
|
|
@@ -10960,7 +10960,7 @@ const ALIGNMENTS = {
|
|
|
10960
10960
|
JUSTIFY: 'justify'
|
|
10961
10961
|
};
|
|
10962
10962
|
|
|
10963
|
-
var styles$
|
|
10963
|
+
var styles$1w = {"text":"_6SgoN","text--bold":"_i2LHD","text__body":"_SF95f","text__caption":"_HHohB","text__insight":"_xdhK0","text__span":"_yZbuO","text__paragraph":"_T91Eo","text__tagline":"_uetB-","text--italic":"_NgSTT","text--underline":"_ouqVK","text--dotted-underline":"_zZ55-","text--monospace":"_Vi-V1","text--line-through":"_psV6T","text--align-left":"_tfSIf","text--align-right":"_AK1Nr","text--align-center":"_N-tR4","text--align-justify":"_LkMr0"};
|
|
10964
10964
|
|
|
10965
10965
|
const _excluded$bp = ["children", "as", "emphasis", "alignment", "color", "testId", "textWrap"];
|
|
10966
10966
|
const TextComponent = (_ref, ref) => {
|
|
@@ -10988,23 +10988,23 @@ const TextComponent = (_ref, ref) => {
|
|
|
10988
10988
|
color: getColor(color),
|
|
10989
10989
|
textWrap
|
|
10990
10990
|
}, positionStyles),
|
|
10991
|
-
className: classnames(styles$
|
|
10992
|
-
[styles$
|
|
10993
|
-
[styles$
|
|
10994
|
-
[styles$
|
|
10995
|
-
[styles$
|
|
10996
|
-
[styles$
|
|
10997
|
-
[styles$
|
|
10998
|
-
[styles$
|
|
10999
|
-
[styles$
|
|
11000
|
-
[styles$
|
|
11001
|
-
[styles$
|
|
11002
|
-
[styles$
|
|
11003
|
-
[styles$
|
|
11004
|
-
[styles$
|
|
11005
|
-
[styles$
|
|
11006
|
-
[styles$
|
|
11007
|
-
[styles$
|
|
10991
|
+
className: classnames(styles$1w['text'], {
|
|
10992
|
+
[styles$1w['text--bold']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.BOLD),
|
|
10993
|
+
[styles$1w['text--italic']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.ITALIC),
|
|
10994
|
+
[styles$1w['text--underline']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.UNDERLINE),
|
|
10995
|
+
[styles$1w['text--dotted-underline']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.DOTTED_UNDERLINE),
|
|
10996
|
+
[styles$1w['text--monospace']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.MONOSPACE),
|
|
10997
|
+
[styles$1w['text--line-through']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.STRIKETHROUGH),
|
|
10998
|
+
[styles$1w['text--align-left']]: alignment === ALIGNMENTS.LEFT,
|
|
10999
|
+
[styles$1w['text--align-right']]: alignment === ALIGNMENTS.RIGHT,
|
|
11000
|
+
[styles$1w['text--align-center']]: alignment === ALIGNMENTS.CENTER,
|
|
11001
|
+
[styles$1w['text--align-justify']]: alignment === ALIGNMENTS.JUSTIFY,
|
|
11002
|
+
[styles$1w['text__body']]: as === TEXT_TYPES.BODY,
|
|
11003
|
+
[styles$1w['text__insight']]: as === TEXT_TYPES.INSIGHT,
|
|
11004
|
+
[styles$1w['text__caption']]: as === TEXT_TYPES.CAPTION,
|
|
11005
|
+
[styles$1w['text__span']]: as === TEXT_TYPES.SPAN,
|
|
11006
|
+
[styles$1w['text__paragraph']]: as === TEXT_TYPES.PARAGRAPH,
|
|
11007
|
+
[styles$1w['text__tagline']]: as === TEXT_TYPES.TAGLINE
|
|
11008
11008
|
}),
|
|
11009
11009
|
'data-testid': testId
|
|
11010
11010
|
}, dataProps, other, {
|
|
@@ -11021,7 +11021,7 @@ const Bold = ({
|
|
|
11021
11021
|
children
|
|
11022
11022
|
}) => {
|
|
11023
11023
|
return React__default.createElement("span", {
|
|
11024
|
-
className: classnames(styles$
|
|
11024
|
+
className: classnames(styles$1w['text--bold'], styles$1w['text'])
|
|
11025
11025
|
}, children);
|
|
11026
11026
|
};
|
|
11027
11027
|
|
|
@@ -11029,7 +11029,7 @@ const Underline = ({
|
|
|
11029
11029
|
children
|
|
11030
11030
|
}) => {
|
|
11031
11031
|
return React__default.createElement("span", {
|
|
11032
|
-
className: classnames(styles$
|
|
11032
|
+
className: classnames(styles$1w['text--underline'], styles$1w['text'])
|
|
11033
11033
|
}, children);
|
|
11034
11034
|
};
|
|
11035
11035
|
|
|
@@ -11037,7 +11037,7 @@ const Italic = ({
|
|
|
11037
11037
|
children
|
|
11038
11038
|
}) => {
|
|
11039
11039
|
return React__default.createElement("span", {
|
|
11040
|
-
className: classnames(styles$
|
|
11040
|
+
className: classnames(styles$1w['text--italic'], styles$1w['text'])
|
|
11041
11041
|
}, children);
|
|
11042
11042
|
};
|
|
11043
11043
|
|
|
@@ -11174,7 +11174,7 @@ const useFieldControllers = ({
|
|
|
11174
11174
|
return controllers;
|
|
11175
11175
|
};
|
|
11176
11176
|
|
|
11177
|
-
var styles$
|
|
11177
|
+
var styles$1v = {"text-field":"_G6LsE","text-field--invalid":"_2ZYtt","text-field--prefixed":"_rWp7H","text-field--suffixed":"_Xq8xX"};
|
|
11178
11178
|
|
|
11179
11179
|
const _excluded$bn = ["autoComplete", "autoFocus", "defaultValue", "disabled", "error", "id", "maxLength", "name", "caption", "label", "onBlur", "onChange", "onFocus", "onKeyDown", "placeholder", "value", "ref", "testId"];
|
|
11180
11180
|
const useTextField = _ref => {
|
|
@@ -11215,8 +11215,8 @@ const useTextField = _ref => {
|
|
|
11215
11215
|
'aria-invalid': hasError,
|
|
11216
11216
|
autoComplete,
|
|
11217
11217
|
autoFocus,
|
|
11218
|
-
className: classnames(styles$
|
|
11219
|
-
[styles$
|
|
11218
|
+
className: classnames(styles$1v['text-field'], {
|
|
11219
|
+
[styles$1v['text-field--invalid']]: hasError
|
|
11220
11220
|
}),
|
|
11221
11221
|
'data-testid': testId,
|
|
11222
11222
|
disabled,
|
|
@@ -11247,7 +11247,7 @@ const useTextField = _ref => {
|
|
|
11247
11247
|
};
|
|
11248
11248
|
};
|
|
11249
11249
|
|
|
11250
|
-
var styles$
|
|
11250
|
+
var styles$1u = {"affix-container":"_F8QOB","prefix":"_yPPIy","suffix":"_Y3yFd","affix-container--prefixed":"_vU4SU","affix-container--suffixed":"_4rDXi"};
|
|
11251
11251
|
|
|
11252
11252
|
const AffixContainer = ({
|
|
11253
11253
|
prefix,
|
|
@@ -11282,19 +11282,19 @@ const AffixContainer = ({
|
|
|
11282
11282
|
if (!hasPrefix && !hasSuffix) {
|
|
11283
11283
|
return children;
|
|
11284
11284
|
}
|
|
11285
|
-
const classes = classnames(styles$
|
|
11286
|
-
[styles$
|
|
11287
|
-
[styles$
|
|
11285
|
+
const classes = classnames(styles$1u['affix-container'], {
|
|
11286
|
+
[styles$1u['affix-container--prefixed']]: hasPrefix,
|
|
11287
|
+
[styles$1u['affix-container--suffixed']]: hasSuffix
|
|
11288
11288
|
});
|
|
11289
11289
|
return React__default.createElement("div", {
|
|
11290
11290
|
className: classes,
|
|
11291
11291
|
ref: container,
|
|
11292
11292
|
"data-testid": testId
|
|
11293
11293
|
}, hasPrefix && React__default.createElement("div", {
|
|
11294
|
-
className: styles$
|
|
11294
|
+
className: styles$1u['prefix'],
|
|
11295
11295
|
ref: prefixElement
|
|
11296
11296
|
}, prefix), children, hasSuffix && React__default.createElement("div", {
|
|
11297
|
-
className: styles$
|
|
11297
|
+
className: styles$1u['suffix'],
|
|
11298
11298
|
ref: suffixElement
|
|
11299
11299
|
}, suffix));
|
|
11300
11300
|
};
|
|
@@ -11506,7 +11506,7 @@ const Dropdown = ({
|
|
|
11506
11506
|
paneRef
|
|
11507
11507
|
}
|
|
11508
11508
|
}, triggerIsKnownButton ? React__default.cloneElement(trigger, _extends({}, trigger.props, triggerProps)) : React__default.createElement("button", _extends({}, triggerProps, {
|
|
11509
|
-
className: styles$
|
|
11509
|
+
className: styles$1A['dropdown__trigger'],
|
|
11510
11510
|
ref: updatedRef,
|
|
11511
11511
|
onFocus: handleFocus
|
|
11512
11512
|
}), trigger), React__default.createElement(DropdownPane, {
|
|
@@ -11520,7 +11520,7 @@ const Dropdown = ({
|
|
|
11520
11520
|
}, children));
|
|
11521
11521
|
};
|
|
11522
11522
|
|
|
11523
|
-
var styles$
|
|
11523
|
+
var styles$1t = {"dropdown-list":"_91hvH","dropdown-list__item":"_NrB4V","dropdown-list__item--hover":"_aMs9c"};
|
|
11524
11524
|
|
|
11525
11525
|
const findNextActiveIndex = (items, startAt) => {
|
|
11526
11526
|
let startIndex = 0;
|
|
@@ -11680,15 +11680,15 @@ const updateIconSize = child => {
|
|
|
11680
11680
|
}));
|
|
11681
11681
|
};
|
|
11682
11682
|
|
|
11683
|
-
var styles$
|
|
11683
|
+
var styles$1s = {"dropdown-list-divider":"_ISJ4M"};
|
|
11684
11684
|
|
|
11685
|
-
var styles$
|
|
11685
|
+
var styles$1r = {"dropdown-list-divider-line":"_GlMQ1"};
|
|
11686
11686
|
|
|
11687
11687
|
const DropdownListDividerLine = ({
|
|
11688
11688
|
testId
|
|
11689
11689
|
}) => {
|
|
11690
11690
|
return React__default.createElement("div", {
|
|
11691
|
-
className: styles$
|
|
11691
|
+
className: styles$1r['dropdown-list-divider-line'],
|
|
11692
11692
|
"data-testid": testId
|
|
11693
11693
|
});
|
|
11694
11694
|
};
|
|
@@ -11704,14 +11704,14 @@ const DropdownListDivider = ({
|
|
|
11704
11704
|
});
|
|
11705
11705
|
}
|
|
11706
11706
|
return React__default.createElement(Fragment, null, (line === 'top' || line === 'both') && React__default.createElement(DropdownListDividerLine, null), React__default.createElement("div", {
|
|
11707
|
-
className: classnames(styles$
|
|
11707
|
+
className: classnames(styles$1s['dropdown-list-divider']),
|
|
11708
11708
|
"data-testid": testId
|
|
11709
11709
|
}, children), (line === 'bottom' || line === 'both') && React__default.createElement(DropdownListDividerLine, null));
|
|
11710
11710
|
};
|
|
11711
11711
|
|
|
11712
|
-
var styles$
|
|
11712
|
+
var styles$1q = {"dropdown-list-item":"_W12mF","dropdown-list-item--selected":"_Zu9cD","dropdown-list-item__content":"_xS6fS","dropdown-list-item__caption":"_7EI7m","dropdown-list-item--disabled":"_0OB5b","dropdown-list-item__prefix":"_dpo67","dropdown-list-item__suffix":"_ObP6B","dropdown-list-item__container":"_IBrNj","dropdown-list-item__link":"_vC0uY","dropdown-list-item__suffix-spot":"_UA23u","dropdown-list-item__suffix-button":"_rvaeI"};
|
|
11713
11713
|
|
|
11714
|
-
var styles$
|
|
11714
|
+
var styles$1p = {"dropdown-submenu":"_X4fIx"};
|
|
11715
11715
|
|
|
11716
11716
|
const DropdownSubmenu = forwardRef(({
|
|
11717
11717
|
children,
|
|
@@ -11731,7 +11731,7 @@ const DropdownSubmenu = forwardRef(({
|
|
|
11731
11731
|
// so no keyboard handler is needed.
|
|
11732
11732
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
11733
11733
|
React__default.createElement("div", {
|
|
11734
|
-
className: styles$
|
|
11734
|
+
className: styles$1p['dropdown-submenu'],
|
|
11735
11735
|
"data-submenu-direction": direction,
|
|
11736
11736
|
style: position || DEFAULT_POSITION,
|
|
11737
11737
|
onMouseEnter: openSubmenu,
|
|
@@ -11924,20 +11924,20 @@ const DropdownListItem = ({
|
|
|
11924
11924
|
onClick && onClick(e);
|
|
11925
11925
|
};
|
|
11926
11926
|
const childrenContainer = React__default.createElement("div", {
|
|
11927
|
-
className: styles$
|
|
11927
|
+
className: styles$1q['dropdown-list-item__container']
|
|
11928
11928
|
}, prefix && React__default.createElement("div", {
|
|
11929
|
-
className: styles$
|
|
11929
|
+
className: styles$1q['dropdown-list-item__prefix']
|
|
11930
11930
|
}, prefix), React__default.createElement("div", {
|
|
11931
|
-
className: styles$
|
|
11931
|
+
className: styles$1q['dropdown-list-item__content']
|
|
11932
11932
|
}, React__default.createElement(Stack, {
|
|
11933
11933
|
space: 0,
|
|
11934
11934
|
flex: [1]
|
|
11935
11935
|
}, children, caption && React__default.createElement("div", {
|
|
11936
|
-
className: styles$
|
|
11936
|
+
className: styles$1q['dropdown-list-item__caption']
|
|
11937
11937
|
}, caption))), (suffix || submenu) && React__default.createElement("div", {
|
|
11938
|
-
className: styles$
|
|
11938
|
+
className: styles$1q['dropdown-list-item__suffix']
|
|
11939
11939
|
}, suffix && _openSubmenuOnSuffixClick && submenu ? React__default.createElement("button", {
|
|
11940
|
-
className: styles$
|
|
11940
|
+
className: styles$1q['dropdown-list-item__suffix-button'],
|
|
11941
11941
|
onClick: e => {
|
|
11942
11942
|
e.preventDefault();
|
|
11943
11943
|
e.stopPropagation();
|
|
@@ -11948,19 +11948,19 @@ const DropdownListItem = ({
|
|
|
11948
11948
|
"aria-label": "Open submenu",
|
|
11949
11949
|
disabled: disabled
|
|
11950
11950
|
}, suffix) : suffix, submenu && !suffix && React__default.createElement("div", {
|
|
11951
|
-
className: styles$
|
|
11951
|
+
className: styles$1q['dropdown-list-item__suffix-spot']
|
|
11952
11952
|
}), submenu && !_openSubmenuOnSuffixClick && React__default.createElement(IconChevronRight, {
|
|
11953
11953
|
size: "small"
|
|
11954
11954
|
})));
|
|
11955
11955
|
const linkItem = href && (_reloadDocument ? React__default.createElement("a", {
|
|
11956
11956
|
href: href,
|
|
11957
|
-
className: styles$
|
|
11957
|
+
className: styles$1q['dropdown-list-item__link'],
|
|
11958
11958
|
target: _target,
|
|
11959
11959
|
tabIndex: -1
|
|
11960
11960
|
}, childrenContainer) : React__default.createElement(Link$1, {
|
|
11961
11961
|
to: href,
|
|
11962
11962
|
target: _target,
|
|
11963
|
-
className: styles$
|
|
11963
|
+
className: styles$1q['dropdown-list-item__link'],
|
|
11964
11964
|
reloadDocument: false,
|
|
11965
11965
|
tabIndex: -1,
|
|
11966
11966
|
"data-testid": testId
|
|
@@ -11968,9 +11968,9 @@ const DropdownListItem = ({
|
|
|
11968
11968
|
return (
|
|
11969
11969
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
11970
11970
|
React__default.createElement("div", {
|
|
11971
|
-
className: classnames(styles$
|
|
11972
|
-
[styles$
|
|
11973
|
-
[styles$
|
|
11971
|
+
className: classnames(styles$1q['dropdown-list-item'], {
|
|
11972
|
+
[styles$1q['dropdown-list-item--selected']]: selected,
|
|
11973
|
+
[styles$1q['dropdown-list-item--disabled']]: disabled
|
|
11974
11974
|
}),
|
|
11975
11975
|
onMouseDown: e => e.preventDefault(),
|
|
11976
11976
|
onClick: handleClick,
|
|
@@ -12113,7 +12113,7 @@ const DropdownList = ({
|
|
|
12113
12113
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
12114
12114
|
}, [highlightItemIndex]);
|
|
12115
12115
|
return React__default.createElement("ul", {
|
|
12116
|
-
className: styles$
|
|
12116
|
+
className: styles$1t['dropdown-list'],
|
|
12117
12117
|
"data-testid": testId,
|
|
12118
12118
|
ref: listRef
|
|
12119
12119
|
}, React__default.Children.toArray(children).filter(Boolean).map((child, index) => {
|
|
@@ -12125,8 +12125,8 @@ const DropdownList = ({
|
|
|
12125
12125
|
const divider = (_items$index2 = items[index]) == null ? void 0 : _items$index2.divider;
|
|
12126
12126
|
return React__default.createElement("li", {
|
|
12127
12127
|
key: index,
|
|
12128
|
-
className: classnames(styles$
|
|
12129
|
-
[styles$
|
|
12128
|
+
className: classnames(styles$1t['dropdown-list__item'], {
|
|
12129
|
+
[styles$1t['dropdown-list__item--hover']]: focusedItem === index && isInteractive
|
|
12130
12130
|
}),
|
|
12131
12131
|
onMouseEnter: divider ? undefined : () => setFocusOnItem(index),
|
|
12132
12132
|
role: divider ? 'separator' : 'menuitem'
|
|
@@ -12150,7 +12150,7 @@ const KebabMenu = ({
|
|
|
12150
12150
|
}, action.label))));
|
|
12151
12151
|
};
|
|
12152
12152
|
|
|
12153
|
-
var styles$
|
|
12153
|
+
var styles$1o = {"card":"_TXXpM","card__body":"_C3waP","card__body--interactive":"_uc-GV","card--focus":"_ft0I1","card__body--focus":"_wx2MU","card__body--disabled":"_TQDZH","card__body--with-kebab":"_kkYit","card__kebab":"_xrEdS","card__kebab--disabled":"_0WiOn","card__close":"_yODES","card__close--disabled":"_Vqf6o"};
|
|
12154
12154
|
|
|
12155
12155
|
const CardContext = createContext({
|
|
12156
12156
|
isCardMounted: false
|
|
@@ -12189,28 +12189,28 @@ const Card = _ref => {
|
|
|
12189
12189
|
isCardMounted: true
|
|
12190
12190
|
}
|
|
12191
12191
|
}, React__default.createElement("div", _extends({
|
|
12192
|
-
className: classnames(styles$
|
|
12192
|
+
className: classnames(styles$1o['card']),
|
|
12193
12193
|
style: positionStyles
|
|
12194
12194
|
}, dataProps), onClick ? React__default.createElement("button", {
|
|
12195
|
-
className: classnames(styles$
|
|
12196
|
-
[styles$
|
|
12197
|
-
[styles$
|
|
12198
|
-
[styles$
|
|
12195
|
+
className: classnames(styles$1o['card__body'], styles$1o['card__body--interactive'], {
|
|
12196
|
+
[styles$1o['card__body--disabled']]: disabled,
|
|
12197
|
+
[styles$1o['card__body--focus']]: isSelected,
|
|
12198
|
+
[styles$1o['card__body--with-kebab']]: actions
|
|
12199
12199
|
}),
|
|
12200
12200
|
"data-testid": testId,
|
|
12201
12201
|
tabIndex: 0,
|
|
12202
12202
|
onClick: onClick,
|
|
12203
12203
|
disabled: disabled
|
|
12204
12204
|
}, children) : React__default.createElement("div", {
|
|
12205
|
-
className: classnames(styles$
|
|
12206
|
-
[styles$
|
|
12207
|
-
[styles$
|
|
12208
|
-
[styles$
|
|
12205
|
+
className: classnames(styles$1o['card__body'], {
|
|
12206
|
+
[styles$1o['card__body--disabled']]: disabled,
|
|
12207
|
+
[styles$1o['card__body--focus']]: isSelected,
|
|
12208
|
+
[styles$1o['card__body--with-kebab']]: actions
|
|
12209
12209
|
}),
|
|
12210
12210
|
"data-testid": testId
|
|
12211
12211
|
}, children), actions && React__default.createElement("div", {
|
|
12212
|
-
className: classnames(styles$
|
|
12213
|
-
[styles$
|
|
12212
|
+
className: classnames(styles$1o['card__kebab'], {
|
|
12213
|
+
[styles$1o['card__kebab--disabled']]: disabled
|
|
12214
12214
|
})
|
|
12215
12215
|
}, React__default.createElement(KebabMenu, {
|
|
12216
12216
|
actions: onClose ? actions.concat({
|
|
@@ -12219,8 +12219,8 @@ const Card = _ref => {
|
|
|
12219
12219
|
onAction: onClose
|
|
12220
12220
|
}) : actions
|
|
12221
12221
|
})), !actions && onClose && React__default.createElement("div", {
|
|
12222
|
-
className: classnames(styles$
|
|
12223
|
-
[styles$
|
|
12222
|
+
className: classnames(styles$1o['card__close'], {
|
|
12223
|
+
[styles$1o['card__close--disabled']]: disabled
|
|
12224
12224
|
})
|
|
12225
12225
|
}, React__default.createElement(Button, {
|
|
12226
12226
|
theme: "link-icon",
|
|
@@ -12228,7 +12228,7 @@ const Card = _ref => {
|
|
|
12228
12228
|
}, React__default.createElement(IconTimes, null)))));
|
|
12229
12229
|
};
|
|
12230
12230
|
|
|
12231
|
-
var styles$
|
|
12231
|
+
var styles$1n = {"callout-card__close":"_VxmQm","callout-card__header":"_3RrQI"};
|
|
12232
12232
|
|
|
12233
12233
|
/**
|
|
12234
12234
|
* @deprecated Use `<EmptyState as='card' />` instead
|
|
@@ -12249,7 +12249,7 @@ const CalloutCard = ({
|
|
|
12249
12249
|
}, React__default.createElement(Stack, {
|
|
12250
12250
|
space: 12
|
|
12251
12251
|
}, React__default.createElement("div", {
|
|
12252
|
-
className: styles$
|
|
12252
|
+
className: styles$1n['callout-card__header']
|
|
12253
12253
|
}, React__default.createElement(Text, {
|
|
12254
12254
|
as: "body",
|
|
12255
12255
|
color: "primary-color"
|
|
@@ -12264,7 +12264,7 @@ const CalloutCard = ({
|
|
|
12264
12264
|
alt: String(title) + String(header),
|
|
12265
12265
|
width: "354px"
|
|
12266
12266
|
})), onClose && React__default.createElement("div", {
|
|
12267
|
-
className: styles$
|
|
12267
|
+
className: styles$1n['callout-card__close']
|
|
12268
12268
|
}, React__default.createElement(Button, {
|
|
12269
12269
|
theme: "link-icon",
|
|
12270
12270
|
onClick: onClose
|
|
@@ -12283,7 +12283,7 @@ const Breadcrumbs = ({
|
|
|
12283
12283
|
}, children);
|
|
12284
12284
|
};
|
|
12285
12285
|
|
|
12286
|
-
var styles$
|
|
12286
|
+
var styles$1m = {"breadcrumb-item":"_fo7-A"};
|
|
12287
12287
|
|
|
12288
12288
|
const BreadcrumbItem = ({
|
|
12289
12289
|
href,
|
|
@@ -12297,25 +12297,25 @@ const BreadcrumbItem = ({
|
|
|
12297
12297
|
// This is neessary to support older versions of react-router-dom
|
|
12298
12298
|
return _reloadDocument ? React__default.createElement("a", {
|
|
12299
12299
|
href: href,
|
|
12300
|
-
className: styles$
|
|
12300
|
+
className: styles$1m['breadcrumb-item'],
|
|
12301
12301
|
"data-testid": testId
|
|
12302
12302
|
}, content) : React__default.createElement(Link$1, {
|
|
12303
12303
|
to: href,
|
|
12304
|
-
className: styles$
|
|
12304
|
+
className: styles$1m['breadcrumb-item'],
|
|
12305
12305
|
relative: "path",
|
|
12306
12306
|
reloadDocument: _reloadDocument,
|
|
12307
12307
|
"data-testid": testId
|
|
12308
12308
|
}, content);
|
|
12309
12309
|
};
|
|
12310
12310
|
|
|
12311
|
-
var styles$
|
|
12311
|
+
var styles$1l = {"page-breadcrumbs":"_QjIgc"};
|
|
12312
12312
|
|
|
12313
12313
|
const PageBreadcrumbs = ({
|
|
12314
12314
|
breadcrumbs
|
|
12315
12315
|
}) => {
|
|
12316
12316
|
const items = getBreadbrumbItems(breadcrumbs);
|
|
12317
12317
|
return React__default.createElement("div", {
|
|
12318
|
-
className: styles$
|
|
12318
|
+
className: styles$1l['page-breadcrumbs']
|
|
12319
12319
|
}, React__default.createElement(Breadcrumbs, null, items));
|
|
12320
12320
|
};
|
|
12321
12321
|
const getBreadbrumbItems = breadcrumbs => {
|
|
@@ -12335,7 +12335,7 @@ const getBreadbrumbItems = breadcrumbs => {
|
|
|
12335
12335
|
}, breadcrumbs.label);
|
|
12336
12336
|
};
|
|
12337
12337
|
|
|
12338
|
-
var styles$
|
|
12338
|
+
var styles$1k = {"page":"_QB6yF","page--fullwidth":"_g7MTf","page--restricted":"_LRq4j"};
|
|
12339
12339
|
|
|
12340
12340
|
const PAGE_SIZES = {
|
|
12341
12341
|
FULL_WIDTH: 'fullwidth',
|
|
@@ -12359,9 +12359,9 @@ const Page = ({
|
|
|
12359
12359
|
const hasHeader = title || actions;
|
|
12360
12360
|
const hasPageBlocks = hasHeader || banner || filterBar;
|
|
12361
12361
|
return React__default.createElement("div", {
|
|
12362
|
-
className: classnames(styles$
|
|
12363
|
-
[styles$
|
|
12364
|
-
[styles$
|
|
12362
|
+
className: classnames(styles$1k['page'], {
|
|
12363
|
+
[styles$1k['page--restricted']]: _size === PAGE_SIZES.RESTRICTED,
|
|
12364
|
+
[styles$1k['page--fullwidth']]: _size === PAGE_SIZES.FULL_WIDTH
|
|
12365
12365
|
}),
|
|
12366
12366
|
"data-testid": testId
|
|
12367
12367
|
}, React__default.createElement(Stack, {
|
|
@@ -12382,15 +12382,15 @@ const Page = ({
|
|
|
12382
12382
|
}, title), actions), subtitle && React__default.createElement(Text, null, subtitle)), banner, filterBar)), children));
|
|
12383
12383
|
};
|
|
12384
12384
|
|
|
12385
|
-
var styles$
|
|
12385
|
+
var styles$1j = {"page-layout":"_Scw7-","page-layout__nav-container":"_v--DF","page-layout__nav-list":"_dJeZe","page-layout__content":"_hHi70","page-layout__side-nav-content":"_vTMjp"};
|
|
12386
12386
|
|
|
12387
|
-
var styles$
|
|
12387
|
+
var styles$1i = {"menu-item":"_SebbU","menu-item--active":"_CDEVl","menu-item--with-badge":"_VudDE","menu-item__badge":"_vErBS"};
|
|
12388
12388
|
|
|
12389
|
-
var styles$
|
|
12389
|
+
var styles$1h = {"badge":"_RXV4h","badge--warning":"_2An1I","badge--danger":"_-Bw8L","badge--success":"_RxlMz","badge--info":"_dzCH-","badge--numeric":"_Ix9tP","badge--dot":"_OcpK5","badge--with-border":"_-5FpP"};
|
|
12390
12390
|
|
|
12391
|
-
var styles$
|
|
12391
|
+
var styles$1g = {"overlay":"_0yTe8","overlay--after-open":"_yJBtA","overlay--before-close":"_iWogn","content":"_ntozd","content--after-open":"_EQjDq","content--before-close":"_ZTY3B","content--with-tab-list":"_DMdi7","overlay--draggable":"_6SSP8","content--draggable":"_5rHXj","draggable-inner":"_cq2CU","draggable-inner--with-tab-list":"_V4Rz2"};
|
|
12392
12392
|
|
|
12393
|
-
var styles$
|
|
12393
|
+
var styles$1f = {"modal-header":"_VRlTj","modal-header__header":"_GH74U","modal-header__sub-header":"_OlX-6","modal-header--with-shadow":"_brFTl","modal-header__close-button":"_LTnd3","modal-header__top-bar":"_7V-hB","modal-header__top-bar--with-image":"_docda"};
|
|
12394
12394
|
|
|
12395
12395
|
const ModalContext = createContext({
|
|
12396
12396
|
isModalMounted: false,
|
|
@@ -12454,14 +12454,14 @@ const ModalHeader = ({
|
|
|
12454
12454
|
const iconBarTheme = imageSrc ? 'link-contrast' : 'link-icon';
|
|
12455
12455
|
const themedIconBar = iconBar ? injectButtonTheme(iconBar, iconBarTheme) : null;
|
|
12456
12456
|
return React__default.createElement("div", {
|
|
12457
|
-
className: classnames(styles$
|
|
12458
|
-
[styles$
|
|
12457
|
+
className: classnames(styles$1f['modal-header'], {
|
|
12458
|
+
[styles$1f['modal-header--with-shadow']]: hasScrollTop && !hasTabList
|
|
12459
12459
|
})
|
|
12460
12460
|
}, React__default.createElement(Stack, {
|
|
12461
12461
|
space: 0
|
|
12462
12462
|
}, React__default.createElement("div", {
|
|
12463
|
-
className: classnames(styles$
|
|
12464
|
-
[styles$
|
|
12463
|
+
className: classnames(styles$1f['modal-header__top-bar'], {
|
|
12464
|
+
[styles$1f['modal-header__top-bar--with-image']]: !!imageSrc
|
|
12465
12465
|
}),
|
|
12466
12466
|
style: imageSrc ? {
|
|
12467
12467
|
backgroundImage: `url(${imageSrc})`
|
|
@@ -12471,9 +12471,9 @@ const ModalHeader = ({
|
|
|
12471
12471
|
onClick: onClose,
|
|
12472
12472
|
disabled: loading
|
|
12473
12473
|
}, React__default.createElement(IconTimes, null))), header && React__default.createElement("div", {
|
|
12474
|
-
className: styles$
|
|
12474
|
+
className: styles$1f['modal-header__header']
|
|
12475
12475
|
}, header), subHeader && React__default.createElement("div", {
|
|
12476
|
-
className: styles$
|
|
12476
|
+
className: styles$1f['modal-header__sub-header']
|
|
12477
12477
|
}, subHeader)));
|
|
12478
12478
|
};
|
|
12479
12479
|
const injectButtonTheme = (node, theme) => {
|
|
@@ -12493,7 +12493,7 @@ const injectButtonTheme = (node, theme) => {
|
|
|
12493
12493
|
return node;
|
|
12494
12494
|
};
|
|
12495
12495
|
|
|
12496
|
-
var styles$
|
|
12496
|
+
var styles$1e = {"tab-zone":"_4hqPT","tab-zone--with-shadow":"_dorMR"};
|
|
12497
12497
|
|
|
12498
12498
|
const ModalTabZone = ({
|
|
12499
12499
|
children
|
|
@@ -12505,8 +12505,8 @@ const ModalTabZone = ({
|
|
|
12505
12505
|
hasScrollTop
|
|
12506
12506
|
} = useScrollDetector(modalBodyRef);
|
|
12507
12507
|
return React__default.createElement("div", {
|
|
12508
|
-
className: classnames(styles$
|
|
12509
|
-
[styles$
|
|
12508
|
+
className: classnames(styles$1e['tab-zone'], {
|
|
12509
|
+
[styles$1e['tab-zone--with-shadow']]: hasScrollTop
|
|
12510
12510
|
})
|
|
12511
12511
|
}, children);
|
|
12512
12512
|
};
|
|
@@ -12688,14 +12688,14 @@ const Modal = _ref => {
|
|
|
12688
12688
|
contentLabel: "Modal",
|
|
12689
12689
|
appElement: rootElementId && document.getElementById(rootElementId) || undefined,
|
|
12690
12690
|
overlayClassName: {
|
|
12691
|
-
base: classnames(styles$
|
|
12692
|
-
afterOpen: styles$
|
|
12693
|
-
beforeClose: styles$
|
|
12691
|
+
base: classnames(styles$1g['overlay'], draggable && styles$1g['overlay--draggable']),
|
|
12692
|
+
afterOpen: styles$1g['overlay--after-open'],
|
|
12693
|
+
beforeClose: styles$1g['overlay--before-close']
|
|
12694
12694
|
},
|
|
12695
12695
|
className: {
|
|
12696
|
-
base: classnames(styles$
|
|
12697
|
-
afterOpen: styles$
|
|
12698
|
-
beforeClose: styles$
|
|
12696
|
+
base: classnames(styles$1g['content'], draggable && styles$1g['content--draggable'], tabList && styles$1g['content--with-tab-list']),
|
|
12697
|
+
afterOpen: styles$1g['content--after-open'],
|
|
12698
|
+
beforeClose: styles$1g['content--before-close']
|
|
12699
12699
|
},
|
|
12700
12700
|
data: dataProps
|
|
12701
12701
|
}, draggable ? React__default.createElement(Draggable, {
|
|
@@ -12704,8 +12704,8 @@ const Modal = _ref => {
|
|
|
12704
12704
|
bounds: draggableBounds
|
|
12705
12705
|
}, React__default.createElement("div", {
|
|
12706
12706
|
ref: draggableCallbackRef,
|
|
12707
|
-
className: classnames(styles$
|
|
12708
|
-
[styles$
|
|
12707
|
+
className: classnames(styles$1g['draggable-inner'], {
|
|
12708
|
+
[styles$1g['draggable-inner--with-tab-list']]: !!tabList
|
|
12709
12709
|
}),
|
|
12710
12710
|
style: {
|
|
12711
12711
|
width,
|
|
@@ -12719,7 +12719,7 @@ Modal.setAppElement = rootElement => {
|
|
|
12719
12719
|
ReactModal.setAppElement(rootElement);
|
|
12720
12720
|
};
|
|
12721
12721
|
|
|
12722
|
-
var styles$
|
|
12722
|
+
var styles$1d = {"modal-body":"_4YK4k","modal-body--tab-mode":"_2-PSE"};
|
|
12723
12723
|
|
|
12724
12724
|
const ModalBody = ({
|
|
12725
12725
|
children,
|
|
@@ -12730,17 +12730,17 @@ const ModalBody = ({
|
|
|
12730
12730
|
hasTabList
|
|
12731
12731
|
} = useModalContext();
|
|
12732
12732
|
return React__default.createElement("div", {
|
|
12733
|
-
className: classnames(styles$
|
|
12734
|
-
[styles$
|
|
12733
|
+
className: classnames(styles$1d['modal-body'], {
|
|
12734
|
+
[styles$1d['modal-body--tab-mode']]: hasTabList
|
|
12735
12735
|
}),
|
|
12736
12736
|
"data-testid": testId,
|
|
12737
12737
|
ref: modalBodyRef
|
|
12738
12738
|
}, React__default.createElement("div", {
|
|
12739
|
-
className: styles$
|
|
12739
|
+
className: styles$1d['modal-body__inner-div']
|
|
12740
12740
|
}, children));
|
|
12741
12741
|
};
|
|
12742
12742
|
|
|
12743
|
-
var styles$
|
|
12743
|
+
var styles$1c = {"modal-footer":"_bezlP","modal-footer--with-shadow":"_hC4vb","modal-footer--tab-mode":"_o1kk7"};
|
|
12744
12744
|
|
|
12745
12745
|
const updateButtonProps$1 = (button, newProps) => {
|
|
12746
12746
|
if (!button) {
|
|
@@ -12805,9 +12805,9 @@ const FooterContainer = ({
|
|
|
12805
12805
|
displayName: 'Inline'
|
|
12806
12806
|
});
|
|
12807
12807
|
return React__default.createElement("div", {
|
|
12808
|
-
className: classnames(styles$
|
|
12809
|
-
[styles$
|
|
12810
|
-
[styles$
|
|
12808
|
+
className: classnames(styles$1c['modal-footer'], {
|
|
12809
|
+
[styles$1c['modal-footer--with-shadow']]: hasScrollBottom,
|
|
12810
|
+
[styles$1c['modal-footer--tab-mode']]: hasTabList
|
|
12811
12811
|
}),
|
|
12812
12812
|
"data-testid": testId
|
|
12813
12813
|
}, React__default.createElement(Inline, {
|
|
@@ -12821,7 +12821,7 @@ var dayOverridesStyles = {"root":"_et9Fs","table":"_l7Mis","caption":"_XGu8K","h
|
|
|
12821
12821
|
|
|
12822
12822
|
var weekOverridesStyles = {"root":"_QLSA6","table":"_96jgF","caption":"_4ySMr","head_cell":"_2AoB4","day_today":"_Snv-V","day_outside":"_Zf-6C","nav_button":"_iOY4h","day_range_middle":"_e0lOH","day_range_start":"_4N7l-","day_range_end":"_fMjHG","row":"_GqE-5"};
|
|
12823
12823
|
|
|
12824
|
-
var styles$
|
|
12824
|
+
var styles$1b = {"calendar":"_YPyZ6","calendar__overlay":"_-cw0A"};
|
|
12825
12825
|
|
|
12826
12826
|
function parseDate(str, format, locale) {
|
|
12827
12827
|
const parsed = dateFnsParse(str, format, new Date(), {
|
|
@@ -12953,7 +12953,7 @@ const getHighlightModifiers = groups => {
|
|
|
12953
12953
|
});
|
|
12954
12954
|
};
|
|
12955
12955
|
|
|
12956
|
-
var styles$
|
|
12956
|
+
var styles$1a = {"day_highlight":"_ucr9m","theme-success":"_mLAwT","theme-danger":"_Uji-g","theme-warning":"_pe9ss","theme-info":"_OfzGg","theme-upsell":"_Pywaj","theme-neutral":"_5WRkx","shape-circle":"_0LzN8","legendShape":"_N-Dl4","shape-circle-dashed":"_eCqCU","shape-square":"_-pO-1","shape-square-dashed":"_7PoYh","shape-octagon":"_ywc-V","shape-star":"_vF4Ka","legend":"_iB2Db","legendItem":"_YauE7","legendLabel":"_lMmc7"};
|
|
12957
12957
|
|
|
12958
12958
|
const calculateCalendarPosition = (placement, anchorPosition, calendarDimensions) => {
|
|
12959
12959
|
if (!calendarDimensions) {
|
|
@@ -13027,7 +13027,7 @@ const buildHighlightDayPickerProps = highlightedDays => {
|
|
|
13027
13027
|
theme
|
|
13028
13028
|
}) => {
|
|
13029
13029
|
modifiers[key] = matcher;
|
|
13030
|
-
modifiersClassNames[key] = classnames(styles$
|
|
13030
|
+
modifiersClassNames[key] = classnames(styles$1a.day_highlight, styles$1a[`shape-${shape}`], styles$1a[`theme-${theme}`]);
|
|
13031
13031
|
});
|
|
13032
13032
|
return {
|
|
13033
13033
|
modifiers,
|
|
@@ -13036,7 +13036,7 @@ const buildHighlightDayPickerProps = highlightedDays => {
|
|
|
13036
13036
|
};
|
|
13037
13037
|
};
|
|
13038
13038
|
|
|
13039
|
-
var styles$
|
|
13039
|
+
var styles$19 = {"calendar-highlights":"_TjAon","calendar-highlights__item":"_BbYmq","calendar-highlights__shape":"_utSi-","calendar-highlights__shape--square":"_mP9vd","calendar-highlights__shape--circle":"_6zlZT"};
|
|
13040
13040
|
|
|
13041
13041
|
/** Legend rendered beneath a calendar, one row item per highlight group. */
|
|
13042
13042
|
const CalendarHighlights = ({
|
|
@@ -13046,7 +13046,7 @@ const CalendarHighlights = ({
|
|
|
13046
13046
|
return null;
|
|
13047
13047
|
}
|
|
13048
13048
|
return React__default.createElement("div", {
|
|
13049
|
-
className: styles$
|
|
13049
|
+
className: styles$19['calendar-highlights']
|
|
13050
13050
|
}, React__default.createElement(Inline, {
|
|
13051
13051
|
flexWrap: "wrap",
|
|
13052
13052
|
space: {
|
|
@@ -13061,7 +13061,7 @@ const CalendarHighlights = ({
|
|
|
13061
13061
|
theme
|
|
13062
13062
|
}) => React__default.createElement("div", {
|
|
13063
13063
|
key: label,
|
|
13064
|
-
className: styles$
|
|
13064
|
+
className: styles$19['calendar-highlights__item']
|
|
13065
13065
|
}, React__default.createElement(Shape, {
|
|
13066
13066
|
shape: shape,
|
|
13067
13067
|
theme: theme
|
|
@@ -13074,45 +13074,45 @@ const Shape = ({
|
|
|
13074
13074
|
switch (shape) {
|
|
13075
13075
|
case 'square':
|
|
13076
13076
|
return React__default.createElement("div", {
|
|
13077
|
-
className: classnames(styles$
|
|
13077
|
+
className: classnames(styles$19['calendar-highlights__shape'], styles$19['calendar-highlights__shape--square']),
|
|
13078
13078
|
style: {
|
|
13079
13079
|
borderColor: COLORS[`${theme}-color`]
|
|
13080
13080
|
}
|
|
13081
13081
|
});
|
|
13082
13082
|
case 'square-dashed':
|
|
13083
13083
|
return React__default.createElement("div", {
|
|
13084
|
-
className: styles$
|
|
13084
|
+
className: styles$19['calendar-highlights__shape']
|
|
13085
13085
|
}, React__default.createElement(SquareDashedShape, {
|
|
13086
13086
|
theme: theme
|
|
13087
13087
|
}));
|
|
13088
13088
|
case 'circle':
|
|
13089
13089
|
return React__default.createElement("div", {
|
|
13090
|
-
className: classnames(styles$
|
|
13090
|
+
className: classnames(styles$19['calendar-highlights__shape'], styles$19['calendar-highlights__shape--circle']),
|
|
13091
13091
|
style: {
|
|
13092
13092
|
borderColor: COLORS[`${theme}-color`]
|
|
13093
13093
|
}
|
|
13094
13094
|
});
|
|
13095
13095
|
case 'circle-dashed':
|
|
13096
13096
|
return React__default.createElement("div", {
|
|
13097
|
-
className: `${styles$
|
|
13097
|
+
className: `${styles$19['calendar-highlights__shape']}`
|
|
13098
13098
|
}, React__default.createElement(CircleDashedShape, {
|
|
13099
13099
|
theme: theme
|
|
13100
13100
|
}));
|
|
13101
13101
|
case 'octagon':
|
|
13102
13102
|
return React__default.createElement("div", {
|
|
13103
|
-
className: `${styles$
|
|
13103
|
+
className: `${styles$19['calendar-highlights__shape']}`
|
|
13104
13104
|
}, React__default.createElement(OctagonShape, {
|
|
13105
13105
|
theme: theme
|
|
13106
13106
|
}));
|
|
13107
13107
|
case 'star':
|
|
13108
13108
|
return React__default.createElement("div", {
|
|
13109
|
-
className: `${styles$
|
|
13109
|
+
className: `${styles$19['calendar-highlights__shape']}`
|
|
13110
13110
|
}, React__default.createElement(StarShape, {
|
|
13111
13111
|
theme: theme
|
|
13112
13112
|
}));
|
|
13113
13113
|
default:
|
|
13114
13114
|
return React__default.createElement("div", {
|
|
13115
|
-
className: styles$
|
|
13115
|
+
className: styles$19['calendar-highlight__shape']
|
|
13116
13116
|
}, shape);
|
|
13117
13117
|
}
|
|
13118
13118
|
};
|
|
@@ -13334,9 +13334,9 @@ const Calendar = ({
|
|
|
13334
13334
|
}
|
|
13335
13335
|
};
|
|
13336
13336
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
13337
|
-
className: styles$
|
|
13337
|
+
className: styles$1b['calendar']
|
|
13338
13338
|
}, React__default.createElement("div", {
|
|
13339
|
-
className: styles$
|
|
13339
|
+
className: styles$1b['calendar__overlay'],
|
|
13340
13340
|
ref: ref => setCalendarRef(ref),
|
|
13341
13341
|
style: _extends({}, calendarPosition, {
|
|
13342
13342
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -13396,7 +13396,7 @@ const useCheckBoxFieldControllers = ({
|
|
|
13396
13396
|
return controllers;
|
|
13397
13397
|
};
|
|
13398
13398
|
|
|
13399
|
-
var styles$
|
|
13399
|
+
var styles$18 = {"check-box-field":"_Id4qm","check-box-field__caption":"_s9d-m","check-box-field__custom-input":"_kmvBP"};
|
|
13400
13400
|
|
|
13401
13401
|
const _excluded$bj = ["name", "id", "checked", "indeterminate", "onChange", "onBlur", "label", "caption", "error", "disabled", "testId"];
|
|
13402
13402
|
/** A simple check box with an option beside it. Allows the user to confirm a statement or enable an option with a simple boolean action. Use for things like agreeing to terms, or enabling one or more options in a list (where multiple selections are allowed). */
|
|
@@ -13432,7 +13432,7 @@ const CheckboxField = _ref => {
|
|
|
13432
13432
|
flexItems: true,
|
|
13433
13433
|
flex: ['0 0 auto']
|
|
13434
13434
|
}, otherProps), React__default.createElement("div", {
|
|
13435
|
-
className: styles$
|
|
13435
|
+
className: styles$18['check-box-field']
|
|
13436
13436
|
}, React__default.createElement("input", {
|
|
13437
13437
|
name: name,
|
|
13438
13438
|
id: controllers.id,
|
|
@@ -13446,12 +13446,12 @@ const CheckboxField = _ref => {
|
|
|
13446
13446
|
onChange: controllers.onChange,
|
|
13447
13447
|
onBlur: controllers.onBlur
|
|
13448
13448
|
}), React__default.createElement("span", {
|
|
13449
|
-
className: styles$
|
|
13449
|
+
className: styles$18['check-box-field__custom-input']
|
|
13450
13450
|
})), label && React__default.createElement(Label, {
|
|
13451
13451
|
htmlFor: controllers.id,
|
|
13452
13452
|
truncate: false
|
|
13453
13453
|
}, label)), caption && React__default.createElement("div", {
|
|
13454
|
-
className: styles$
|
|
13454
|
+
className: styles$18['check-box-field__caption']
|
|
13455
13455
|
}, React__default.createElement(Caption, {
|
|
13456
13456
|
fieldId: controllers.id
|
|
13457
13457
|
}, caption)), controllers.error && React__default.createElement(ErrorMessage, {
|
|
@@ -13489,7 +13489,7 @@ const useLocalStorage = (key, initialValue) => {
|
|
|
13489
13489
|
return [storedValue, setValue];
|
|
13490
13490
|
};
|
|
13491
13491
|
|
|
13492
|
-
var styles$
|
|
13492
|
+
var styles$17 = {"hint-modal":"_NwD6V","hint-modal--after-open":"_4ofZb","hint-modal--before-close":"_hGoMD","hint-modal__overlay":"_iK5zl","hint-modal__image":"_V9hLa","hint-modal__body":"_oOqUg","hint-modal__close-button":"_5zcBK"};
|
|
13493
13493
|
|
|
13494
13494
|
const _excluded$bi = ["header", "children", "mediaUrl", "onClose", "modalId", "primaryButton", "secondaryButton", "testId", "onSetDoNotShowAgainStatus", "hideDoNotShowAgainCheckbox"];
|
|
13495
13495
|
/**
|
|
@@ -13561,22 +13561,22 @@ const HintModal = _ref => {
|
|
|
13561
13561
|
closeTimeoutMS: 200,
|
|
13562
13562
|
contentLabel: "Modal",
|
|
13563
13563
|
className: {
|
|
13564
|
-
base: styles$
|
|
13565
|
-
afterOpen: styles$
|
|
13566
|
-
beforeClose: styles$
|
|
13564
|
+
base: styles$17['hint-modal'],
|
|
13565
|
+
afterOpen: styles$17['hint-modal--after-open'],
|
|
13566
|
+
beforeClose: styles$17['hint-modal--before-close']
|
|
13567
13567
|
},
|
|
13568
|
-
overlayClassName: styles$
|
|
13568
|
+
overlayClassName: styles$17['hint-modal__overlay']
|
|
13569
13569
|
}, React__default.createElement("div", {
|
|
13570
|
-
className: styles$
|
|
13570
|
+
className: styles$17['hint-modal__close-button']
|
|
13571
13571
|
}, React__default.createElement(Button, {
|
|
13572
13572
|
theme: "link-icon",
|
|
13573
13573
|
onClick: handleOnClose
|
|
13574
13574
|
}, React__default.createElement(IconTimes, null))), mediaUrl && React__default.createElement("img", {
|
|
13575
|
-
className: styles$
|
|
13575
|
+
className: styles$17['hint-modal__image'],
|
|
13576
13576
|
src: mediaUrl,
|
|
13577
13577
|
alt: String(header)
|
|
13578
13578
|
}), React__default.createElement("div", {
|
|
13579
|
-
className: styles$
|
|
13579
|
+
className: styles$17['hint-modal__body']
|
|
13580
13580
|
}, React__default.createElement(Stack, {
|
|
13581
13581
|
justifyContent: "space-between"
|
|
13582
13582
|
}, React__default.createElement(Stack, {
|
|
@@ -13631,36 +13631,60 @@ const useModalPosition = (modalWidth = 566, modalHeight = 360) => {
|
|
|
13631
13631
|
return [position, updatePosition];
|
|
13632
13632
|
};
|
|
13633
13633
|
|
|
13634
|
-
const
|
|
13634
|
+
const AvatarContext = createContext({
|
|
13635
|
+
size: null
|
|
13636
|
+
});
|
|
13637
|
+
const useAvatarContext = () => {
|
|
13638
|
+
return useContext(AvatarContext);
|
|
13639
|
+
};
|
|
13640
|
+
|
|
13641
|
+
const _excluded$bh = ["children", "theme", "title", "size", "testId"];
|
|
13635
13642
|
const BadgeElement = (_ref, forwardedRef) => {
|
|
13636
13643
|
let {
|
|
13637
13644
|
children,
|
|
13638
13645
|
theme,
|
|
13639
13646
|
title,
|
|
13647
|
+
size: sizeProp = 'default',
|
|
13640
13648
|
testId
|
|
13641
13649
|
} = _ref,
|
|
13642
13650
|
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$bh);
|
|
13643
13651
|
const internalRef = useRef(null);
|
|
13644
13652
|
const ref = forwardedRef || internalRef;
|
|
13653
|
+
const {
|
|
13654
|
+
size: avatarSize
|
|
13655
|
+
} = useAvatarContext();
|
|
13656
|
+
const isInsideSmallAvatar = avatarSize === 'small' || avatarSize === 'medium';
|
|
13657
|
+
const size = isInsideSmallAvatar ? 'dot' : sizeProp;
|
|
13658
|
+
const withBorder = avatarSize !== null;
|
|
13659
|
+
const isDot = size === 'dot';
|
|
13645
13660
|
useLayoutEffect(() => {
|
|
13646
|
-
if (typeof ref
|
|
13647
|
-
|
|
13661
|
+
if (typeof ref === 'function' || !ref.current) return;
|
|
13662
|
+
if (!isDot && React__default.isValidElement(children) && typeof (children == null ? void 0 : children.type) !== 'string' && typeof (children == null ? void 0 : children.type) !== 'number') {
|
|
13663
|
+
ref.current.style.padding = '0';
|
|
13664
|
+
ref.current.style.width = ref.current.offsetHeight + 'px';
|
|
13665
|
+
} else if (isDot) {
|
|
13666
|
+
ref.current.style.padding = '';
|
|
13667
|
+
ref.current.style.width = '';
|
|
13648
13668
|
}
|
|
13649
13669
|
});
|
|
13650
13670
|
return React__default.createElement(Tooltip, {
|
|
13651
13671
|
overlay: title,
|
|
13652
13672
|
ref: ref
|
|
13653
13673
|
}, React__default.createElement("div", _extends({
|
|
13654
|
-
className: classnames(styles$
|
|
13655
|
-
[styles$
|
|
13656
|
-
[styles$
|
|
13657
|
-
[styles$
|
|
13658
|
-
[styles$
|
|
13659
|
-
[styles$
|
|
13674
|
+
className: classnames(styles$1h['badge'], {
|
|
13675
|
+
[styles$1h['badge--success']]: theme === 'success',
|
|
13676
|
+
[styles$1h['badge--danger']]: theme === 'danger',
|
|
13677
|
+
[styles$1h['badge--info']]: theme === 'info',
|
|
13678
|
+
[styles$1h['badge--warning']]: theme === 'warning',
|
|
13679
|
+
[styles$1h['badge--numeric']]: !isDot && Number.isFinite(children),
|
|
13680
|
+
[styles$1h['badge--dot']]: isDot,
|
|
13681
|
+
[styles$1h['badge--with-border']]: withBorder
|
|
13660
13682
|
}),
|
|
13661
13683
|
ref: ref,
|
|
13662
13684
|
"data-testid": testId
|
|
13663
|
-
}, otherProps), children)
|
|
13685
|
+
}, otherProps), isDot ? null : React__default.isValidElement(children) && typeof children.type !== 'string' && typeof children.type !== 'number' ? React__default.cloneElement(children, {
|
|
13686
|
+
size: 'small'
|
|
13687
|
+
}) : children));
|
|
13664
13688
|
};
|
|
13665
13689
|
/**
|
|
13666
13690
|
* Badge is a small circular indicator used to draw attention to something associated with another element — a count, a status, or a quick action.
|
|
@@ -13671,28 +13695,28 @@ const MenuItem = ({
|
|
|
13671
13695
|
menu
|
|
13672
13696
|
}) => {
|
|
13673
13697
|
return React__default.createElement("li", {
|
|
13674
|
-
className: classnames(styles$
|
|
13675
|
-
[styles$
|
|
13698
|
+
className: classnames(styles$1i['menu-item'], {
|
|
13699
|
+
[styles$1i['menu-item--with-badge']]: !!menu.suffix
|
|
13676
13700
|
})
|
|
13677
13701
|
}, menu.reloadDocument ? React__default.createElement("a", {
|
|
13678
13702
|
href: menu.to,
|
|
13679
13703
|
className: classnames({
|
|
13680
|
-
[styles$
|
|
13704
|
+
[styles$1i['menu-item--active']]: menu.isActive
|
|
13681
13705
|
})
|
|
13682
13706
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
13683
|
-
className: styles$
|
|
13707
|
+
className: styles$1i['menu-item__badge']
|
|
13684
13708
|
}, React__default.createElement(Badge, null, menu.suffix))) : React__default.createElement(NavLink, {
|
|
13685
13709
|
to: menu.to,
|
|
13686
13710
|
// @ts-expect-error This is only available on v5
|
|
13687
|
-
activeClassName: styles$
|
|
13711
|
+
activeClassName: styles$1i['menu-item--active'],
|
|
13688
13712
|
className: ({
|
|
13689
13713
|
isActive
|
|
13690
13714
|
}) => {
|
|
13691
|
-
return isActive ? styles$
|
|
13715
|
+
return isActive ? styles$1i['menu-item--active'] : '';
|
|
13692
13716
|
},
|
|
13693
13717
|
exact: true
|
|
13694
13718
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
13695
|
-
className: styles$
|
|
13719
|
+
className: styles$1i['menu-item__badge']
|
|
13696
13720
|
}, React__default.createElement(Badge, null, menu.suffix))));
|
|
13697
13721
|
};
|
|
13698
13722
|
|
|
@@ -13703,9 +13727,9 @@ const PageLayout = ({
|
|
|
13703
13727
|
sideNavContent
|
|
13704
13728
|
}) => {
|
|
13705
13729
|
return React__default.createElement("div", {
|
|
13706
|
-
className: styles$
|
|
13730
|
+
className: styles$1j['page-layout']
|
|
13707
13731
|
}, React__default.createElement("div", {
|
|
13708
|
-
className: styles$
|
|
13732
|
+
className: styles$1j['page-layout__nav-container']
|
|
13709
13733
|
}, React__default.createElement(Stack, {
|
|
13710
13734
|
space: 12
|
|
13711
13735
|
}, React__default.createElement(Text, {
|
|
@@ -13714,14 +13738,14 @@ const PageLayout = ({
|
|
|
13714
13738
|
ml: 20,
|
|
13715
13739
|
mr: 35
|
|
13716
13740
|
}, title), React__default.createElement("ul", {
|
|
13717
|
-
className: styles$
|
|
13741
|
+
className: styles$1j['page-layout__nav-list']
|
|
13718
13742
|
}, menu.filter(menu => !('isVisible' in menu) || (menu == null ? void 0 : menu.isVisible) === true).map((menuItem, index) => React__default.createElement(MenuItem, {
|
|
13719
13743
|
key: menuItem.name || index,
|
|
13720
13744
|
menu: menuItem
|
|
13721
13745
|
}))), sideNavContent && React__default.createElement("div", {
|
|
13722
|
-
className: styles$
|
|
13746
|
+
className: styles$1j['page-layout__side-nav-content']
|
|
13723
13747
|
}, sideNavContent))), React__default.createElement("div", {
|
|
13724
|
-
className: styles$
|
|
13748
|
+
className: styles$1j['page-layout__content']
|
|
13725
13749
|
}, children));
|
|
13726
13750
|
};
|
|
13727
13751
|
|
|
@@ -13731,7 +13755,7 @@ const TOAST_THEME = {
|
|
|
13731
13755
|
};
|
|
13732
13756
|
const TOAST_CONTAINER_ID = 'sous-chef-toast';
|
|
13733
13757
|
|
|
13734
|
-
var styles$
|
|
13758
|
+
var styles$16 = {"toast":"_iSC5P","toast--danger":"_OWpOG","toast__text":"_4JJwF"};
|
|
13735
13759
|
|
|
13736
13760
|
const toast = (text, theme = TOAST_THEME.DEFAULT, options = {}) => {
|
|
13737
13761
|
if (typeof text !== 'string') {
|
|
@@ -13748,8 +13772,8 @@ const toast = (text, theme = TOAST_THEME.DEFAULT, options = {}) => {
|
|
|
13748
13772
|
onActionClick: onActionClick
|
|
13749
13773
|
}) : text;
|
|
13750
13774
|
toast$1(content, _extends({
|
|
13751
|
-
className: classnames(styles$
|
|
13752
|
-
[styles$
|
|
13775
|
+
className: classnames(styles$16['toast'], {
|
|
13776
|
+
[styles$16['toast--danger']]: theme === TOAST_THEME.DANGER
|
|
13753
13777
|
}),
|
|
13754
13778
|
containerId: TOAST_CONTAINER_ID
|
|
13755
13779
|
}, options));
|
|
@@ -13775,7 +13799,7 @@ const ToastBodyWithAction = ({
|
|
|
13775
13799
|
const ToastContainer = ({
|
|
13776
13800
|
containerId: _containerId = TOAST_CONTAINER_ID
|
|
13777
13801
|
}) => React__default.createElement(ToastContainer$1, {
|
|
13778
|
-
bodyClassName: styles$
|
|
13802
|
+
bodyClassName: styles$16['toast__text'],
|
|
13779
13803
|
hideProgressBar: true,
|
|
13780
13804
|
draggable: false,
|
|
13781
13805
|
transition: Slide,
|
|
@@ -13850,7 +13874,7 @@ const SousChefProvider = ({
|
|
|
13850
13874
|
}, React__default.createElement(ToastContainer, null), children));
|
|
13851
13875
|
};
|
|
13852
13876
|
|
|
13853
|
-
var styles$
|
|
13877
|
+
var styles$15 = {"data-table-header":"_F4U3o","data-table-header__item":"_KKljd","data-table-header__item--sortable":"_oKH7a","data-table-header__itemfocus":"_xrDya","data-table-header__item--action":"_RLGaD","data-table-header__item-content":"_3p3fm","data-table-header__item-content--right-align":"_rXid3","data-table-header__item-content--has-description":"_vgjHE","data-table-header__sort-icon":"_-xiIl"};
|
|
13854
13878
|
|
|
13855
13879
|
const SORT_ORDER = {
|
|
13856
13880
|
ASC: 'asc',
|
|
@@ -14036,7 +14060,7 @@ const DataTableHeader = ({
|
|
|
14036
14060
|
},
|
|
14037
14061
|
id: `${tableId}-header`
|
|
14038
14062
|
}, React__default.createElement("tr", {
|
|
14039
|
-
className: styles$
|
|
14063
|
+
className: styles$15['data-table-header']
|
|
14040
14064
|
}, columns.filter(column => !column.hidden).map(column => {
|
|
14041
14065
|
const isSortable = column.isSortable;
|
|
14042
14066
|
const sortDir = column.currentSort;
|
|
@@ -14044,8 +14068,8 @@ const DataTableHeader = ({
|
|
|
14044
14068
|
const hasDescription = !!column.description;
|
|
14045
14069
|
return React__default.createElement("th", {
|
|
14046
14070
|
className: classnames({
|
|
14047
|
-
[styles$
|
|
14048
|
-
[styles$
|
|
14071
|
+
[styles$15['data-table-header__item']]: true,
|
|
14072
|
+
[styles$15['data-table-header__item--sortable']]: isSortable
|
|
14049
14073
|
}),
|
|
14050
14074
|
style: {
|
|
14051
14075
|
flex: column.size || 1,
|
|
@@ -14057,18 +14081,18 @@ const DataTableHeader = ({
|
|
|
14057
14081
|
role: "columnheader",
|
|
14058
14082
|
tabIndex: 0
|
|
14059
14083
|
}, React__default.createElement("div", {
|
|
14060
|
-
className: classnames(styles$
|
|
14061
|
-
[styles$
|
|
14084
|
+
className: classnames(styles$15['data-table-header__item-content'], {
|
|
14085
|
+
[styles$15['data-table-header__item-content--right-align']]: isRightAligned
|
|
14062
14086
|
}, {
|
|
14063
|
-
[styles$
|
|
14087
|
+
[styles$15['data-table-header__item-content--has-description']]: hasDescription
|
|
14064
14088
|
})
|
|
14065
14089
|
}, wrapWithTooltip(column), isSortable && React__default.createElement("span", {
|
|
14066
|
-
className: styles$
|
|
14090
|
+
className: styles$15['data-table-header__sort-icon']
|
|
14067
14091
|
}, React__default.createElement(HeaderSortIcon, {
|
|
14068
14092
|
sortDirection: sortDir
|
|
14069
14093
|
}))));
|
|
14070
14094
|
}), showActionMenu && React__default.createElement("th", {
|
|
14071
|
-
className: classnames(styles$
|
|
14095
|
+
className: classnames(styles$15['data-table-header__item'], styles$15['data-table-header__item--action'])
|
|
14072
14096
|
}))));
|
|
14073
14097
|
};
|
|
14074
14098
|
const wrapWithTooltip = column => {
|
|
@@ -14082,9 +14106,9 @@ const wrapWithTooltip = column => {
|
|
|
14082
14106
|
return column.label;
|
|
14083
14107
|
};
|
|
14084
14108
|
|
|
14085
|
-
var styles$
|
|
14109
|
+
var styles$14 = {"data-table":"_zEfoA","data-table__content":"_v-WNu","data-table__content--with-scroll":"_xI2-r","data-table__background-loading":"_ED7Nm","data-table__table":"_fnq34","data-table__table--no-columns":"_qSrJq","data-table__body":"_1SNLz","data-table__body--no-bottom-radius":"_zCIMD","data-table__footer":"_mp1Ok","data-table__pagination-controls":"_vdEZz"};
|
|
14086
14110
|
|
|
14087
|
-
var styles$
|
|
14111
|
+
var styles$13 = {"data-table-scroll-fake-border":"_wZ8Xg","data-table-scroll-fake-border--fixed-scroll":"_C5CU0","data-table-scroll-fake-border--top":"_L5fRB","data-table-scroll-fake-border--bottom":"_omhE4","data-table-scroll-fake-border__left":"_mpDFy","data-table-scroll-fake-border__left--top":"_G3b-p","data-table-scroll-fake-border__left--bottom":"_YUMxZ","data-table-scroll-fake-border__right":"_xUVcY","data-table-scroll-fake-border__right--top":"_BE0hn","data-table-scroll-fake-border__right--bottom":"_UtFdB"};
|
|
14088
14112
|
|
|
14089
14113
|
const useTableHeaderHeight = isShowingColumns => {
|
|
14090
14114
|
const {
|
|
@@ -14136,10 +14160,10 @@ const DataTableScrollFakeBorder = ({
|
|
|
14136
14160
|
const hasFixedScroll = useDetectFixedScroll();
|
|
14137
14161
|
const backgroundColor = useBackgroundColor();
|
|
14138
14162
|
return React__default.createElement("div", {
|
|
14139
|
-
className: classnames(styles$
|
|
14140
|
-
[styles$
|
|
14141
|
-
[styles$
|
|
14142
|
-
[styles$
|
|
14163
|
+
className: classnames(styles$13['data-table-scroll-fake-border'], {
|
|
14164
|
+
[styles$13['data-table-scroll-fake-border--top']]: placement === 'top',
|
|
14165
|
+
[styles$13['data-table-scroll-fake-border--bottom']]: placement === 'bottom',
|
|
14166
|
+
[styles$13['data-table-scroll-fake-border--fixed-scroll']]: hasFixedScroll
|
|
14143
14167
|
}),
|
|
14144
14168
|
style: {
|
|
14145
14169
|
// @ts-expect-error This difines a custom CSS variable
|
|
@@ -14147,14 +14171,14 @@ const DataTableScrollFakeBorder = ({
|
|
|
14147
14171
|
top: placement === 'top' ? headerHeight : undefined
|
|
14148
14172
|
}
|
|
14149
14173
|
}, React__default.createElement("div", {
|
|
14150
|
-
className: classnames(styles$
|
|
14151
|
-
[styles$
|
|
14152
|
-
[styles$
|
|
14174
|
+
className: classnames(styles$13['data-table-scroll-fake-border__left'], {
|
|
14175
|
+
[styles$13['data-table-scroll-fake-border__left--top']]: placement === 'top',
|
|
14176
|
+
[styles$13['data-table-scroll-fake-border__left--bottom']]: placement === 'bottom'
|
|
14153
14177
|
})
|
|
14154
14178
|
}), React__default.createElement("div", {
|
|
14155
|
-
className: classnames(styles$
|
|
14156
|
-
[styles$
|
|
14157
|
-
[styles$
|
|
14179
|
+
className: classnames(styles$13['data-table-scroll-fake-border__right'], {
|
|
14180
|
+
[styles$13['data-table-scroll-fake-border__right--top']]: placement === 'top',
|
|
14181
|
+
[styles$13['data-table-scroll-fake-border__right--bottom']]: placement === 'bottom'
|
|
14158
14182
|
}),
|
|
14159
14183
|
"data-background-color": "red"
|
|
14160
14184
|
}));
|
|
@@ -14172,7 +14196,7 @@ const BUTTON_THEME = {
|
|
|
14172
14196
|
UPSELL: 'upsell'
|
|
14173
14197
|
};
|
|
14174
14198
|
|
|
14175
|
-
var styles$
|
|
14199
|
+
var styles$12 = {"banner":"_omAUf","banner__title":"_8xIYW","banner__body":"_oA2J6","banner__body--multilineCTA":"_PLG8Z","banner--info":"_CRmFE","banner__icon":"_T80if","banner__icon--multiline":"_uJl2Y","banner--success":"_PgpTw","banner--danger":"_O-lNW","banner--warning":"_fICdJ","banner--upsell":"_kUB2k","banner__close":"_P6nbA","banner--single-line":"_w-zAz"};
|
|
14176
14200
|
|
|
14177
14201
|
/** Infers theme prop for Sous Chef Button CTAs if not explicitly passed, default is hollow, primaryCTA is Upsell if banner theme is Upsell*/
|
|
14178
14202
|
const ButtonCTA$1 = ({
|
|
@@ -14193,7 +14217,7 @@ const ButtonCTA$1 = ({
|
|
|
14193
14217
|
}, button.props));
|
|
14194
14218
|
};
|
|
14195
14219
|
|
|
14196
|
-
var styles$
|
|
14220
|
+
var styles$11 = {"banner__caption":"_S--Ce"};
|
|
14197
14221
|
|
|
14198
14222
|
const InlineBannerCTA = ({
|
|
14199
14223
|
primaryButton,
|
|
@@ -14225,7 +14249,7 @@ const InlineBannerCTA = ({
|
|
|
14225
14249
|
bannerTheme: bannerTheme,
|
|
14226
14250
|
primaryCTA: true
|
|
14227
14251
|
})), caption && multiLine && React__default.createElement("div", {
|
|
14228
|
-
className: styles$
|
|
14252
|
+
className: styles$11['banner__caption']
|
|
14229
14253
|
}, caption));
|
|
14230
14254
|
};
|
|
14231
14255
|
|
|
@@ -14279,21 +14303,21 @@ const InlineBanner = _ref => {
|
|
|
14279
14303
|
const Layout = multiLine ? Stack : Inline;
|
|
14280
14304
|
return React__default.createElement("div", {
|
|
14281
14305
|
"data-testid": testId,
|
|
14282
|
-
className: classnames(styles$
|
|
14283
|
-
[styles$
|
|
14284
|
-
[styles$
|
|
14285
|
-
[styles$
|
|
14286
|
-
[styles$
|
|
14287
|
-
[styles$
|
|
14288
|
-
[styles$
|
|
14306
|
+
className: classnames(styles$12['banner'], {
|
|
14307
|
+
[styles$12['banner--info']]: theme === BANNER_THEME.INFO,
|
|
14308
|
+
[styles$12['banner--warning']]: theme === BANNER_THEME.WARNING,
|
|
14309
|
+
[styles$12['banner--success']]: theme === BANNER_THEME.SUCCESS,
|
|
14310
|
+
[styles$12['banner--danger']]: theme === BANNER_THEME.DANGER,
|
|
14311
|
+
[styles$12['banner--upsell']]: theme === BANNER_THEME.UPSELL,
|
|
14312
|
+
[styles$12['banner--single-line']]: !multiLine
|
|
14289
14313
|
}),
|
|
14290
14314
|
style: positionStyles
|
|
14291
14315
|
}, React__default.createElement(Inline, {
|
|
14292
14316
|
flex: ['0 1 auto', 1],
|
|
14293
14317
|
space: 12
|
|
14294
14318
|
}, React__default.createElement("div", {
|
|
14295
|
-
className: classnames(styles$
|
|
14296
|
-
[styles$
|
|
14319
|
+
className: classnames(styles$12['banner__icon'], {
|
|
14320
|
+
[styles$12['banner__icon--multiline']]: multiLine
|
|
14297
14321
|
})
|
|
14298
14322
|
}, icon != null ? icon : React__default.createElement(InlineBannerIcon, {
|
|
14299
14323
|
theme: theme
|
|
@@ -14304,10 +14328,10 @@ const InlineBanner = _ref => {
|
|
|
14304
14328
|
flex: ['min-content'],
|
|
14305
14329
|
flexWrap: multiLine ? undefined : 'wrap'
|
|
14306
14330
|
}, title && React__default.createElement("div", {
|
|
14307
|
-
className: styles$
|
|
14331
|
+
className: styles$12['banner__title']
|
|
14308
14332
|
}, title), React__default.createElement("div", {
|
|
14309
|
-
className: classnames(styles$
|
|
14310
|
-
[styles$
|
|
14333
|
+
className: classnames(styles$12['banner__body'], {
|
|
14334
|
+
[styles$12['banner__body--multilineCTA']]: primaryButton && multiLine
|
|
14311
14335
|
})
|
|
14312
14336
|
}, children), primaryButton && React__default.createElement(InlineBannerCTA, {
|
|
14313
14337
|
primaryButton: primaryButton,
|
|
@@ -14316,7 +14340,7 @@ const InlineBanner = _ref => {
|
|
|
14316
14340
|
multiLine: multiLine,
|
|
14317
14341
|
bannerTheme: theme
|
|
14318
14342
|
})), dismissable && React__default.createElement("div", {
|
|
14319
|
-
className: styles$
|
|
14343
|
+
className: styles$12['banner__close']
|
|
14320
14344
|
}, React__default.createElement(Button, {
|
|
14321
14345
|
theme: "link-icon",
|
|
14322
14346
|
type: "button",
|
|
@@ -14332,7 +14356,7 @@ const MICRO_BANNER_THEME = {
|
|
|
14332
14356
|
UPSELL: 'upsell'
|
|
14333
14357
|
};
|
|
14334
14358
|
|
|
14335
|
-
var styles$
|
|
14359
|
+
var styles$10 = {"micro-banner":"_fRjhT","micro-banner__icon":"_UZMd0","micro-banner__content":"_mJAeX","micro-banner__content--no-icon":"_ZFsBE","micro-banner__content--no-button":"_UN43A","micro-banner__button":"_bTamw","micro-banner--info":"_ULD-f","micro-banner--success":"_5MitA","micro-banner--danger":"_8wmuB","micro-banner--warning":"_515OI","micro-banner--upsell":"_EfwcL"};
|
|
14336
14360
|
|
|
14337
14361
|
const MicroBannerIcon = ({
|
|
14338
14362
|
theme
|
|
@@ -14401,14 +14425,14 @@ const MicroBanner = _ref => {
|
|
|
14401
14425
|
const {
|
|
14402
14426
|
dataProps
|
|
14403
14427
|
} = getDataProps(otherProps);
|
|
14404
|
-
const themeClass = styles$
|
|
14405
|
-
const contentClass = classnames(styles$
|
|
14428
|
+
const themeClass = styles$10[`micro-banner--${theme}`];
|
|
14429
|
+
const contentClass = classnames(styles$10['micro-banner__content'], hideIcon && styles$10['micro-banner__content--no-icon'], !primaryButton && styles$10['micro-banner__content--no-button']);
|
|
14406
14430
|
return React__default.createElement("div", _extends({
|
|
14407
14431
|
"data-testid": testId,
|
|
14408
|
-
className: classnames(styles$
|
|
14432
|
+
className: classnames(styles$10['micro-banner'], themeClass),
|
|
14409
14433
|
style: positionProps
|
|
14410
14434
|
}, dataProps), !hideIcon && React__default.createElement("div", {
|
|
14411
|
-
className: styles$
|
|
14435
|
+
className: styles$10['micro-banner__icon'],
|
|
14412
14436
|
"data-testid": `${testId || 'micro-banner'}-icon`
|
|
14413
14437
|
}, icon != null ? icon : React__default.createElement(MicroBannerIcon, {
|
|
14414
14438
|
theme: theme
|
|
@@ -14419,7 +14443,7 @@ const MicroBanner = _ref => {
|
|
|
14419
14443
|
}, title), React__default.createElement(Text, {
|
|
14420
14444
|
as: 'caption'
|
|
14421
14445
|
}, children)), primaryButton && React__default.createElement("div", {
|
|
14422
|
-
className: styles$
|
|
14446
|
+
className: styles$10['micro-banner__button']
|
|
14423
14447
|
}, React__default.createElement(ButtonCTA, {
|
|
14424
14448
|
button: primaryButton,
|
|
14425
14449
|
bannerTheme: theme
|
|
@@ -14434,7 +14458,7 @@ const PERSISTENT_BANNER_THEME = {
|
|
|
14434
14458
|
SUCCESS: 'success'
|
|
14435
14459
|
};
|
|
14436
14460
|
|
|
14437
|
-
var styles
|
|
14461
|
+
var styles$$ = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR","persistent-banner--warning":"_9eFhn","persistent-banner--success":"_hU34n"};
|
|
14438
14462
|
|
|
14439
14463
|
/**
|
|
14440
14464
|
* PersistentBanner displays a full-width message above the main navigation.
|
|
@@ -14466,12 +14490,12 @@ const PersistentBanner = ({
|
|
|
14466
14490
|
theme: BUTTON_THEMES.LINK_CONTRAST
|
|
14467
14491
|
}, secondaryButton.props))));
|
|
14468
14492
|
return React__default.createElement("div", {
|
|
14469
|
-
className: classnames(styles
|
|
14470
|
-
[styles
|
|
14471
|
-
[styles
|
|
14472
|
-
[styles
|
|
14473
|
-
[styles
|
|
14474
|
-
[styles
|
|
14493
|
+
className: classnames(styles$$['persistent-banner'], {
|
|
14494
|
+
[styles$$['persistent-banner--info']]: _theme === PERSISTENT_BANNER_THEME.INFO,
|
|
14495
|
+
[styles$$['persistent-banner--danger']]: _theme === PERSISTENT_BANNER_THEME.DANGER,
|
|
14496
|
+
[styles$$['persistent-banner--upsell']]: _theme === PERSISTENT_BANNER_THEME.UPSELL,
|
|
14497
|
+
[styles$$['persistent-banner--warning']]: _theme === PERSISTENT_BANNER_THEME.WARNING,
|
|
14498
|
+
[styles$$['persistent-banner--success']]: _theme === PERSISTENT_BANNER_THEME.SUCCESS
|
|
14475
14499
|
}),
|
|
14476
14500
|
"data-testid": testId
|
|
14477
14501
|
}, onDismiss ? React__default.createElement(Inline, {
|
|
@@ -14536,7 +14560,7 @@ const useProgress = (progress, maxValue, getMetric = getProgressMetric) => {
|
|
|
14536
14560
|
};
|
|
14537
14561
|
};
|
|
14538
14562
|
|
|
14539
|
-
var styles
|
|
14563
|
+
var styles$_ = {"circular-progress":"_UI0Fo","circular-progress__label":"_6PNwZ","circular-progress__track":"_alBLB","circular-progress__indicator":"_VADa6"};
|
|
14540
14564
|
|
|
14541
14565
|
/**
|
|
14542
14566
|
* CircularProgress displays a circular track that fills as a count advances toward a total.
|
|
@@ -14553,7 +14577,7 @@ const CircularProgress = ({
|
|
|
14553
14577
|
} = useProgress(progress, _maxValue);
|
|
14554
14578
|
const determinant = metric.percentage * 2.79;
|
|
14555
14579
|
return React__default.createElement("div", _extends({}, elementProps, {
|
|
14556
|
-
className: styles
|
|
14580
|
+
className: styles$_['circular-progress'],
|
|
14557
14581
|
"data-testid": testId
|
|
14558
14582
|
}), React__default.createElement("svg", {
|
|
14559
14583
|
viewBox: "0 0 100 100"
|
|
@@ -14562,21 +14586,21 @@ const CircularProgress = ({
|
|
|
14562
14586
|
cy: 50,
|
|
14563
14587
|
r: 45,
|
|
14564
14588
|
strokeWidth: "10px",
|
|
14565
|
-
className: styles
|
|
14589
|
+
className: styles$_['circular-progress__track']
|
|
14566
14590
|
}), React__default.createElement("circle", {
|
|
14567
14591
|
cx: 50,
|
|
14568
14592
|
cy: 50,
|
|
14569
14593
|
r: 45,
|
|
14570
14594
|
strokeWidth: "10px",
|
|
14571
|
-
className: styles
|
|
14595
|
+
className: styles$_['circular-progress__indicator'],
|
|
14572
14596
|
strokeDashoffset: "66",
|
|
14573
14597
|
strokeDasharray: `${determinant} ${279 - determinant}`
|
|
14574
14598
|
})), React__default.createElement("div", {
|
|
14575
|
-
className: styles
|
|
14599
|
+
className: styles$_['circular-progress__label']
|
|
14576
14600
|
}, children || `${metric.progress}/${metric.maxValue}`));
|
|
14577
14601
|
};
|
|
14578
14602
|
|
|
14579
|
-
var styles$
|
|
14603
|
+
var styles$Z = {"progress-bar":"_fWvQF","progress-bar__indicator":"_vd0xc","progress-bar__indicator--complete":"_D9yNp","progress-bar__steps":"_8kdeO"};
|
|
14580
14604
|
|
|
14581
14605
|
/**
|
|
14582
14606
|
* ProgressBar shows a horizontal bar that fills as a task advances.
|
|
@@ -14594,23 +14618,23 @@ const ProgressBar = ({
|
|
|
14594
14618
|
metric
|
|
14595
14619
|
} = useProgress(progress, inferedMaxValue || 100, isUsingStepsAsMaxValue ? getProgressMetricWithSteps : getProgressMetric);
|
|
14596
14620
|
return React__default.createElement(Stack, null, React__default.createElement("div", _extends({}, elementProps, {
|
|
14597
|
-
className: styles$
|
|
14621
|
+
className: styles$Z['progress-bar'],
|
|
14598
14622
|
"data-testid": testId
|
|
14599
14623
|
}), React__default.createElement("div", {
|
|
14600
|
-
className: classnames(styles$
|
|
14601
|
-
[styles$
|
|
14624
|
+
className: classnames(styles$Z['progress-bar__indicator'], {
|
|
14625
|
+
[styles$Z['progress-bar__indicator--complete']]: metric.percentage === 100
|
|
14602
14626
|
}),
|
|
14603
14627
|
style: {
|
|
14604
14628
|
width: `${metric.percentage}%`
|
|
14605
14629
|
}
|
|
14606
14630
|
})), steps && steps.length > 0 && React__default.createElement("div", {
|
|
14607
|
-
className: styles$
|
|
14631
|
+
className: styles$Z['progress-bar__steps']
|
|
14608
14632
|
}, steps.map(step => React__default.createElement(Text, {
|
|
14609
14633
|
key: step
|
|
14610
14634
|
}, step))));
|
|
14611
14635
|
};
|
|
14612
14636
|
|
|
14613
|
-
var styles$
|
|
14637
|
+
var styles$Y = {"skeleton":"_oDnLM","pulse":"_McmEv","skeleton__button":"_jPXx6","skeleton__pill":"_sPHSZ","skeleton__avatar":"_3vEYT","skeleton__avatar--small":"_zneq9","skeleton__avatar--medium":"_TtfoO","skeleton__avatar--large":"_jhOqR","skeleton__avatar--xlarge":"_VgGfx"};
|
|
14614
14638
|
|
|
14615
14639
|
const SKELETON_COMPONENT = {
|
|
14616
14640
|
AVATAR: 'avatar',
|
|
@@ -14637,14 +14661,14 @@ const Skeleton = _ref => {
|
|
|
14637
14661
|
const positioning = usePositionStyles(positionStyles);
|
|
14638
14662
|
return React__default.createElement("div", {
|
|
14639
14663
|
"data-testid": testId,
|
|
14640
|
-
className: classnames(styles$
|
|
14641
|
-
[styles$
|
|
14642
|
-
[styles$
|
|
14643
|
-
[styles$
|
|
14644
|
-
[styles$
|
|
14645
|
-
[styles$
|
|
14646
|
-
[styles$
|
|
14647
|
-
[styles$
|
|
14664
|
+
className: classnames(styles$Y['skeleton'], {
|
|
14665
|
+
[styles$Y['skeleton__avatar']]: as === SKELETON_COMPONENT.AVATAR,
|
|
14666
|
+
[styles$Y['skeleton__avatar--small']]: as === SKELETON_COMPONENT.AVATAR_SMALL,
|
|
14667
|
+
[styles$Y['skeleton__avatar--medium']]: as === SKELETON_COMPONENT.AVATAR_MEDIUM,
|
|
14668
|
+
[styles$Y['skeleton__avatar--large']]: as === SKELETON_COMPONENT.AVATAR_LARGE,
|
|
14669
|
+
[styles$Y['skeleton__avatar--xlarge']]: as === SKELETON_COMPONENT.AVATAR_XLARGE,
|
|
14670
|
+
[styles$Y['skeleton__button']]: as === SKELETON_COMPONENT.BUTTON,
|
|
14671
|
+
[styles$Y['skeleton__pill']]: as === SKELETON_COMPONENT.PILL
|
|
14648
14672
|
}),
|
|
14649
14673
|
style: _extends({}, positioning, {
|
|
14650
14674
|
width: width,
|
|
@@ -14653,11 +14677,11 @@ const Skeleton = _ref => {
|
|
|
14653
14677
|
});
|
|
14654
14678
|
};
|
|
14655
14679
|
|
|
14656
|
-
var styles$
|
|
14680
|
+
var styles$X = {"data-table-row":"_hhDnr","data-table-row--clickable":"_ej5Ke","data-table-row--selected":"_qDTAh"};
|
|
14657
14681
|
|
|
14658
|
-
var styles$
|
|
14682
|
+
var styles$W = {"actions":"_ffXgN"};
|
|
14659
14683
|
|
|
14660
|
-
var styles$
|
|
14684
|
+
var styles$V = {"data-table-cell":"_cp8xi","data-table-cell--no-padding":"_gqbNb","data-table-cell--vertical-border":"_uHjkg","data-table-cell--invalid":"_ASOQd","data-table-cell__content":"_HjPNI","data-table-cell__content--right-align":"_BCVO6","data-table-cell__content--with-error":"_NqtPS","data-table-cell__content--loading":"_-rWoZ","data-table-cell__error-icon":"_txhua","data-table-cell__error-icon--right-align":"_fPzqj","data-table-cell__error-icon--left-align":"_L2-l-"};
|
|
14661
14685
|
|
|
14662
14686
|
const DataTableCellElement = ({
|
|
14663
14687
|
children,
|
|
@@ -14681,9 +14705,9 @@ const DataTableCellElement = ({
|
|
|
14681
14705
|
const hasError = !!error;
|
|
14682
14706
|
const errorMessage = error;
|
|
14683
14707
|
const icon = hasError && React__default.createElement("div", {
|
|
14684
|
-
className: classnames(styles$
|
|
14685
|
-
[styles$
|
|
14686
|
-
[styles$
|
|
14708
|
+
className: classnames(styles$V['data-table-cell__error-icon'], {
|
|
14709
|
+
[styles$V['data-table-cell__error-icon--right-align']]: isRightAligned,
|
|
14710
|
+
[styles$V['data-table-cell__error-icon--left-align']]: !isRightAligned
|
|
14687
14711
|
})
|
|
14688
14712
|
}, React__default.createElement(IconTimesOctagon, {
|
|
14689
14713
|
size: "medium",
|
|
@@ -14691,17 +14715,17 @@ const DataTableCellElement = ({
|
|
|
14691
14715
|
}));
|
|
14692
14716
|
const TableCell = React__default.createElement("td", {
|
|
14693
14717
|
className: classnames({
|
|
14694
|
-
[styles$
|
|
14695
|
-
[styles$
|
|
14696
|
-
[styles$
|
|
14697
|
-
}, styles$
|
|
14718
|
+
[styles$V['data-table-cell--invalid']]: hasError,
|
|
14719
|
+
[styles$V['data-table-cell--no-padding']]: _noPadding,
|
|
14720
|
+
[styles$V['data-table-cell--vertical-border']]: hasVerticalBorders
|
|
14721
|
+
}, styles$V['data-table-cell']),
|
|
14698
14722
|
colSpan: colSpan,
|
|
14699
14723
|
ref: ref
|
|
14700
14724
|
}, React__default.createElement("div", {
|
|
14701
|
-
className: classnames(styles$
|
|
14702
|
-
[styles$
|
|
14703
|
-
[styles$
|
|
14704
|
-
[styles$
|
|
14725
|
+
className: classnames(styles$V['data-table-cell__content'], {
|
|
14726
|
+
[styles$V['data-table-cell__content--with-error']]: hasError,
|
|
14727
|
+
[styles$V['data-table-cell__content--right-align']]: isRightAligned,
|
|
14728
|
+
[styles$V['data-table-cell__content--loading']]: state === DATA_TABLE_STATES.BACKGROUND_LOADING
|
|
14705
14729
|
})
|
|
14706
14730
|
}, isRightAligned && icon, children, !isRightAligned && icon));
|
|
14707
14731
|
return React__default.createElement(Tooltip, {
|
|
@@ -14725,7 +14749,7 @@ const DataTableRowActions = ({
|
|
|
14725
14749
|
return React__default.createElement(DataTableCell, {
|
|
14726
14750
|
columnIndex: columnIndex
|
|
14727
14751
|
}, React__default.createElement("div", {
|
|
14728
|
-
className: styles$
|
|
14752
|
+
className: styles$W['actions'],
|
|
14729
14753
|
"data-testid": "data-table-dropdown-menu"
|
|
14730
14754
|
}, state === 'SKELETON_LOADING' && React__default.createElement(Skeleton, {
|
|
14731
14755
|
width: 45
|
|
@@ -14738,7 +14762,7 @@ const DataTableRowActions = ({
|
|
|
14738
14762
|
})));
|
|
14739
14763
|
};
|
|
14740
14764
|
|
|
14741
|
-
var styles$
|
|
14765
|
+
var styles$U = {"data-table-editable-cell":"_jp9-G","data-table-editable-cell--right-aligned":"_BzPeH","data-table-editable-cell--currency":"_NhNG9","data-table-editable-cell--invalid":"_5HRwe","data-table-editable-cell--top-left":"_P--u2","data-table-editable-cell--top-right":"_EloAX","data-table-editable-cell--bottom-left":"_ZDCR9","data-table-editable-cell--bottom-right":"_Mc9YJ"};
|
|
14742
14766
|
|
|
14743
14767
|
const DataTableEditableCellElement = ({
|
|
14744
14768
|
name,
|
|
@@ -14787,8 +14811,8 @@ const DataTableEditableCellElement = ({
|
|
|
14787
14811
|
};
|
|
14788
14812
|
const EditableCell = React__default.createElement("div", {
|
|
14789
14813
|
className: classnames({
|
|
14790
|
-
[styles$
|
|
14791
|
-
}, styles$
|
|
14814
|
+
[styles$U['data-table-editable-cell--currency']]: _type === 'currency'
|
|
14815
|
+
}, styles$U['data-table-editable-cell']),
|
|
14792
14816
|
"data-testid": testId,
|
|
14793
14817
|
role: "cell"
|
|
14794
14818
|
}, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
@@ -14798,12 +14822,12 @@ const DataTableEditableCellElement = ({
|
|
|
14798
14822
|
name: name,
|
|
14799
14823
|
id: controllers.id,
|
|
14800
14824
|
className: classnames({
|
|
14801
|
-
[styles$
|
|
14802
|
-
[styles$
|
|
14803
|
-
[styles$
|
|
14804
|
-
[styles$
|
|
14805
|
-
[styles$
|
|
14806
|
-
[styles$
|
|
14825
|
+
[styles$U['data-table-editable-cell--right-aligned']]: isRightAligned,
|
|
14826
|
+
[styles$U['data-table-editable-cell--top-left']]: isTopLeftCell,
|
|
14827
|
+
[styles$U['data-table-editable-cell--top-right']]: isTopRightCell,
|
|
14828
|
+
[styles$U['data-table-editable-cell--bottom-left']]: isBottomLeftCell,
|
|
14829
|
+
[styles$U['data-table-editable-cell--bottom-right']]: isBottomRightCell,
|
|
14830
|
+
[styles$U['data-table-editable-cell--invalid']]: hasError
|
|
14807
14831
|
}),
|
|
14808
14832
|
type: _type === 'currency' ? 'number' : 'text',
|
|
14809
14833
|
step: _type === 'currency' ? 'any' : '',
|
|
@@ -14848,9 +14872,9 @@ const DataTableRowComponent = (_ref, ref) => {
|
|
|
14848
14872
|
const {
|
|
14849
14873
|
showActionMenu
|
|
14850
14874
|
} = useDataTableContext();
|
|
14851
|
-
const styleNames = classnames(styles$
|
|
14852
|
-
[styles$
|
|
14853
|
-
[styles$
|
|
14875
|
+
const styleNames = classnames(styles$X['data-table-row'], {
|
|
14876
|
+
[styles$X['data-table-row--clickable']]: onClick,
|
|
14877
|
+
[styles$X['data-table-row--selected']]: isSelected
|
|
14854
14878
|
});
|
|
14855
14879
|
const renderColumn = (columnElement, index) => {
|
|
14856
14880
|
const isUsingDataTableCell = columnElement && typeof columnElement === 'object' && 'type' in columnElement && (columnElement == null ? void 0 : columnElement.type) === DataTableCell;
|
|
@@ -14941,7 +14965,7 @@ const calculateScrollState = scrollContainer => {
|
|
|
14941
14965
|
return DATA_TABLE_SCROLL_STATES.NO_SCROLL;
|
|
14942
14966
|
};
|
|
14943
14967
|
|
|
14944
|
-
var styles$
|
|
14968
|
+
var styles$T = {"data-table-sticky-columns-container":"_j5iVD","data-table-sticky-columns-container--with-left-sticky-columns-and-shadow":"_7dAEd","data-table-sticky-columns-container--no-shadow":"_rR4W3","fadein":"_b1-OB","data-table-sticky-columns-container--with-left-sticky-columns":"_qLE4I","data-table-sticky-columns-container--with-right-sticky-columns-and-shadow":"_B92Ir","data-table-sticky-columns-container--with-right-sticky-columns":"_ONjpl","data-table-sticky-columns-container--with-footer":"_DE3fh"};
|
|
14945
14969
|
|
|
14946
14970
|
const useDataTableScrollState = stickyColumns => {
|
|
14947
14971
|
const scrollContainerRef = useRef(null);
|
|
@@ -14983,7 +15007,7 @@ const useDataTableScrollState = stickyColumns => {
|
|
|
14983
15007
|
};
|
|
14984
15008
|
};
|
|
14985
15009
|
|
|
14986
|
-
var styles$
|
|
15010
|
+
var styles$S = {"data-table-cover-shadow":"_4XrxW","data-table-cover-shadow--left":"_k704p","data-table-cover-shadow--left-shadow":"_VXlf0","fadeinshadowleft":"_Fr-av","data-table-cover-shadow--right":"_wOust","data-table-cover-shadow--right-shadow":"_b3Rzx","fadeinshadowright":"_KgJaq"};
|
|
14987
15011
|
|
|
14988
15012
|
const DataTableCoverShadow = ({
|
|
14989
15013
|
isShowingColumns,
|
|
@@ -15001,11 +15025,11 @@ const DataTableCoverShadow = ({
|
|
|
15001
15025
|
return `calc(100% - ${headerHeight})`;
|
|
15002
15026
|
};
|
|
15003
15027
|
return React__default.createElement("div", {
|
|
15004
|
-
className: classnames(styles$
|
|
15005
|
-
[styles$
|
|
15006
|
-
[styles$
|
|
15007
|
-
[styles$
|
|
15008
|
-
[styles$
|
|
15028
|
+
className: classnames(styles$S['data-table-cover-shadow'], {
|
|
15029
|
+
[styles$S['data-table-cover-shadow--left']]: direction === 'left',
|
|
15030
|
+
[styles$S['data-table-cover-shadow--left-shadow']]: direction === 'left' && showShadow,
|
|
15031
|
+
[styles$S['data-table-cover-shadow--right']]: direction === 'right',
|
|
15032
|
+
[styles$S['data-table-cover-shadow--right-shadow']]: direction === 'right' && showShadow
|
|
15009
15033
|
}),
|
|
15010
15034
|
style: {
|
|
15011
15035
|
// @ts-expect-error This difines a custom CSS variable
|
|
@@ -15067,13 +15091,13 @@ const DataTableStickyColumnsContainer = ({
|
|
|
15067
15091
|
isShowingColumns: !!isShowingColumns,
|
|
15068
15092
|
showShadow: state === 'EMPTY' ? false : stickyColumns === 'left'
|
|
15069
15093
|
})), React__default.createElement("div", {
|
|
15070
|
-
className: classnames(styles$
|
|
15071
|
-
[styles$
|
|
15072
|
-
[styles$
|
|
15073
|
-
[styles$
|
|
15074
|
-
[styles$
|
|
15075
|
-
[styles$
|
|
15076
|
-
[styles$
|
|
15094
|
+
className: classnames(styles$T[containerClassName], {
|
|
15095
|
+
[styles$T[`${containerClassName}--with-footer`]]: isShowingFooter,
|
|
15096
|
+
[styles$T[`${containerClassName}--with-left-sticky-columns`]]: hasLeftColumnSticky,
|
|
15097
|
+
[styles$T[`${containerClassName}--with-left-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasLeftColumnSticky && hasScrollOnLeft : false,
|
|
15098
|
+
[styles$T[`${containerClassName}--with-right-sticky-columns`]]: hasRightColumnSticky,
|
|
15099
|
+
[styles$T[`${containerClassName}--with-right-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasRightColumnSticky && hasScrollOnRight : false,
|
|
15100
|
+
[styles$T[`${containerClassName}--no-shadow`]]: noShadow
|
|
15077
15101
|
}),
|
|
15078
15102
|
onScroll: onScroll,
|
|
15079
15103
|
ref: scrollContainerRef,
|
|
@@ -15081,11 +15105,11 @@ const DataTableStickyColumnsContainer = ({
|
|
|
15081
15105
|
}, children));
|
|
15082
15106
|
};
|
|
15083
15107
|
|
|
15084
|
-
var styles$
|
|
15108
|
+
var styles$R = {"data-table-empty-state":"_fCHjG"};
|
|
15085
15109
|
|
|
15086
|
-
var styles$
|
|
15110
|
+
var styles$Q = {"empty-state-container-stack":"_4nO7T","empty-state-container-stack__content":"_KiEVo","empty-state-container-stack__content--full-page":"_ib04g","empty-state-container-stack__content--inline-horizontal":"_bSiJj","empty-state-container-stack__body":"_mi-dC"};
|
|
15087
15111
|
|
|
15088
|
-
var styles$
|
|
15112
|
+
var styles$P = {"empty-state-container-cta":"_X-dEs","empty-state-container-cta--inside-modal":"_63-SX"};
|
|
15089
15113
|
|
|
15090
15114
|
const EmptyStateContainerCTA = ({
|
|
15091
15115
|
isPaywall,
|
|
@@ -15102,8 +15126,8 @@ const EmptyStateContainerCTA = ({
|
|
|
15102
15126
|
size: BUTTON_SIZES.MIN_WIDTH_100
|
|
15103
15127
|
});
|
|
15104
15128
|
return React__default.createElement("div", {
|
|
15105
|
-
className: classnames(styles$
|
|
15106
|
-
[styles$
|
|
15129
|
+
className: classnames(styles$P['empty-state-container-cta'], {
|
|
15130
|
+
[styles$P['empty-state-container-cta--inside-modal']]: _isInsideModal
|
|
15107
15131
|
})
|
|
15108
15132
|
}, primaryButton, secondaryButton);
|
|
15109
15133
|
};
|
|
@@ -15127,7 +15151,7 @@ const EmptyStateContainerStack = ({
|
|
|
15127
15151
|
mediaComponent
|
|
15128
15152
|
}) => {
|
|
15129
15153
|
return React__default.createElement("div", {
|
|
15130
|
-
className: styles$
|
|
15154
|
+
className: styles$Q['empty-state-container-stack'],
|
|
15131
15155
|
"data-testid": testId
|
|
15132
15156
|
}, mediaComponent ? mediaComponent : mediaUrl && React__default.createElement("img", {
|
|
15133
15157
|
src: mediaUrl,
|
|
@@ -15144,7 +15168,7 @@ const EmptyStateContainerStack = ({
|
|
|
15144
15168
|
as: "body",
|
|
15145
15169
|
alignment: "center"
|
|
15146
15170
|
}, title), React__default.createElement("div", {
|
|
15147
|
-
className: styles$
|
|
15171
|
+
className: styles$Q['empty-state-container-stack__body']
|
|
15148
15172
|
}, children)), React__default.createElement(Stack, {
|
|
15149
15173
|
space: 8,
|
|
15150
15174
|
alignItems: "center"
|
|
@@ -15256,7 +15280,7 @@ const DataTableEmptyState = ({
|
|
|
15256
15280
|
columnIndex: shouldRenderStickyLeftCell ? 1 : 0,
|
|
15257
15281
|
colSpan: colSpan
|
|
15258
15282
|
}, React__default.createElement("div", {
|
|
15259
|
-
className: styles$
|
|
15283
|
+
className: styles$R['data-table-empty-state']
|
|
15260
15284
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
15261
15285
|
mediaUrl: customImage,
|
|
15262
15286
|
mediaComponent: customImage === '' ? React__default.createElement(MagnifyingGlassIllustration, null) : undefined,
|
|
@@ -15343,7 +15367,7 @@ const DataTable = _ref => {
|
|
|
15343
15367
|
return null;
|
|
15344
15368
|
}
|
|
15345
15369
|
return React__default.createElement("div", {
|
|
15346
|
-
className: styles$
|
|
15370
|
+
className: styles$14['data-table__pagination-controls'],
|
|
15347
15371
|
"data-testid": testId && `${testId}-pagination-controls`
|
|
15348
15372
|
}, React__default.createElement(PaginationControls, {
|
|
15349
15373
|
hasPrevious: isLoading ? false : hasPrevious,
|
|
@@ -15366,7 +15390,7 @@ const DataTable = _ref => {
|
|
|
15366
15390
|
tableId
|
|
15367
15391
|
}
|
|
15368
15392
|
}, React__default.createElement("div", {
|
|
15369
|
-
className: classnames(styles$
|
|
15393
|
+
className: classnames(styles$14['data-table']),
|
|
15370
15394
|
ref: tableRef,
|
|
15371
15395
|
style: positionStyles
|
|
15372
15396
|
}, React__default.createElement(DataTableStickyColumnsContainer, {
|
|
@@ -15377,24 +15401,24 @@ const DataTable = _ref => {
|
|
|
15377
15401
|
placement: "top",
|
|
15378
15402
|
isShowingColumns: !!isShowingColumns
|
|
15379
15403
|
}), React__default.createElement("div", {
|
|
15380
|
-
className: classnames(styles$
|
|
15381
|
-
[styles$
|
|
15404
|
+
className: classnames(styles$14['data-table__content'], {
|
|
15405
|
+
[styles$14['data-table__content--with-scroll']]: isScrollableTable
|
|
15382
15406
|
}),
|
|
15383
15407
|
style: conditionalStyles,
|
|
15384
15408
|
id: `${tableId}-content`
|
|
15385
15409
|
}, state === DATA_TABLE_STATES.BACKGROUND_LOADING && React__default.createElement("div", {
|
|
15386
|
-
className: styles$
|
|
15410
|
+
className: styles$14['data-table__background-loading']
|
|
15387
15411
|
}, React__default.createElement(Spinner, null)), React__default.createElement("table", _extends({
|
|
15388
|
-
className: classnames(styles$
|
|
15389
|
-
[styles$
|
|
15412
|
+
className: classnames(styles$14['data-table__table'], {
|
|
15413
|
+
[styles$14['data-table__table--no-columns']]: !isShowingColumns
|
|
15390
15414
|
})
|
|
15391
15415
|
}, dataProps), columns && isShowingColumns && React__default.createElement(DataTableHeader, {
|
|
15392
15416
|
columns: columns,
|
|
15393
15417
|
onSort: onSort,
|
|
15394
15418
|
showActionMenu: isShowingContent && showActionMenu
|
|
15395
15419
|
}), React__default.createElement("tbody", {
|
|
15396
|
-
className: classnames(styles$
|
|
15397
|
-
[styles$
|
|
15420
|
+
className: classnames(styles$14['data-table__body'], {
|
|
15421
|
+
[styles$14['data-table__body--no-bottom-radius']]: isShowingFooter && isShowingContent
|
|
15398
15422
|
}),
|
|
15399
15423
|
"data-testid": testId
|
|
15400
15424
|
}, isShowingContent && content.map((item, index) => {
|
|
@@ -15413,7 +15437,7 @@ const DataTable = _ref => {
|
|
|
15413
15437
|
}), state === DATA_TABLE_STATES.SKELETON_LOADING && React__default.createElement(React__default.Fragment, null, skeletonRows.map((_, index) => React__default.createElement(SkeletonRow, {
|
|
15414
15438
|
key: index
|
|
15415
15439
|
})))), isShowingFooter && isShowingContent && React__default.createElement("tfoot", {
|
|
15416
|
-
className: styles$
|
|
15440
|
+
className: styles$14['data-table__footer'],
|
|
15417
15441
|
"data-testid": testId && `${testId}-footer`
|
|
15418
15442
|
}, footerComponent)))), !isShowingFooter && isScrollableTable && React__default.createElement(DataTableScrollFakeBorder, {
|
|
15419
15443
|
placement: "bottom",
|
|
@@ -15421,7 +15445,7 @@ const DataTable = _ref => {
|
|
|
15421
15445
|
})), React__default.createElement(Pagination, null));
|
|
15422
15446
|
};
|
|
15423
15447
|
|
|
15424
|
-
var styles$
|
|
15448
|
+
var styles$O = {"accordion-item":"_8980Z","accordion-item__link":"_C-YV6","accordion-item__header":"_vk-N-","accordion-item__icon":"_LSVms","accordion-item__icon--active":"_hLMLR","accordion-item__content":"_KFyFh","accordion-item__content--active":"_kykXP"};
|
|
15425
15449
|
|
|
15426
15450
|
const AccordionItem = props => {
|
|
15427
15451
|
const {
|
|
@@ -15436,10 +15460,10 @@ const AccordionItem = props => {
|
|
|
15436
15460
|
} = item;
|
|
15437
15461
|
const isFocusedByClickRef = React__default.useRef(false);
|
|
15438
15462
|
return React__default.createElement("div", {
|
|
15439
|
-
className: styles$
|
|
15463
|
+
className: styles$O['accordion-item']
|
|
15440
15464
|
}, React__default.createElement("button", {
|
|
15441
15465
|
type: "button",
|
|
15442
|
-
className: styles$
|
|
15466
|
+
className: styles$O['accordion-item__header'],
|
|
15443
15467
|
onClick: () => {
|
|
15444
15468
|
if (isOpen) {
|
|
15445
15469
|
handleAccordionItemOpen(null);
|
|
@@ -15466,15 +15490,15 @@ const AccordionItem = props => {
|
|
|
15466
15490
|
}, typeof title === 'string' ? React__default.createElement(Text, {
|
|
15467
15491
|
emphasis: "bold"
|
|
15468
15492
|
}, title) : title, React__default.createElement(IconChevronDown, {
|
|
15469
|
-
className: styles$
|
|
15493
|
+
className: styles$O[`accordion-item__icon${isOpen ? '--active' : ''}`],
|
|
15470
15494
|
color: 'surface-on-color-subtle'
|
|
15471
15495
|
}))), React__default.createElement("div", {
|
|
15472
15496
|
"data-testid": `${isOpen ? 'accordion-item-' + id + '-open' : 'accordion-item-' + id + '-closed'}`,
|
|
15473
|
-
className: styles$
|
|
15497
|
+
className: styles$O[`accordion-item__content${isOpen ? '--active' : ''}`]
|
|
15474
15498
|
}, isOpen && React__default.createElement(Text, null, content)));
|
|
15475
15499
|
};
|
|
15476
15500
|
|
|
15477
|
-
var styles$
|
|
15501
|
+
var styles$N = {"accordion":"_058SP"};
|
|
15478
15502
|
|
|
15479
15503
|
const _excluded$bb = ["items", "onExpand", "defaultOpenId"];
|
|
15480
15504
|
/**
|
|
@@ -15505,7 +15529,7 @@ const Accordion = _ref => {
|
|
|
15505
15529
|
isAccordionMounted: true
|
|
15506
15530
|
}
|
|
15507
15531
|
}, React__default.createElement("div", _extends({
|
|
15508
|
-
className: styles$
|
|
15532
|
+
className: styles$N['accordion']
|
|
15509
15533
|
}, dataProps), items.map((item, index) => {
|
|
15510
15534
|
const id = item.id || index.toString();
|
|
15511
15535
|
return React__default.createElement(AccordionItem, {
|
|
@@ -15519,7 +15543,7 @@ const Accordion = _ref => {
|
|
|
15519
15543
|
})));
|
|
15520
15544
|
};
|
|
15521
15545
|
|
|
15522
|
-
var styles$
|
|
15546
|
+
var styles$M = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
|
|
15523
15547
|
|
|
15524
15548
|
/**
|
|
15525
15549
|
* A list of tasks or items that require user attention and can be completed with an action. Each item should have at least one clear action for the user to take.
|
|
@@ -15534,15 +15558,15 @@ const ActionList = ({
|
|
|
15534
15558
|
const translate = useTranslation('ActionList');
|
|
15535
15559
|
const hasChildren = React__default.Children.count(children) > 0;
|
|
15536
15560
|
return React__default.createElement("div", {
|
|
15537
|
-
className: styles$
|
|
15561
|
+
className: styles$M['action-list'],
|
|
15538
15562
|
"data-testid": testId,
|
|
15539
15563
|
style: {
|
|
15540
15564
|
maxHeight: maxHeight
|
|
15541
15565
|
}
|
|
15542
15566
|
}, title && React__default.createElement("div", {
|
|
15543
|
-
className: styles$
|
|
15567
|
+
className: styles$M['action-list__title']
|
|
15544
15568
|
}, title), hasChildren ? children : React__default.createElement("div", {
|
|
15545
|
-
className: styles$
|
|
15569
|
+
className: styles$M['action-list__empty-state']
|
|
15546
15570
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
15547
15571
|
title: (emptyState == null ? void 0 : emptyState.title) || translate('emptyStateTitle'),
|
|
15548
15572
|
mediaUrl: emptyState == null ? void 0 : emptyState.image,
|
|
@@ -15720,7 +15744,7 @@ const useSelectFieldControllers = ({
|
|
|
15720
15744
|
return controllers;
|
|
15721
15745
|
};
|
|
15722
15746
|
|
|
15723
|
-
var styles$
|
|
15747
|
+
var styles$L = {"custom-control":"_pXQqq"};
|
|
15724
15748
|
|
|
15725
15749
|
const _excluded$ba = ["children"];
|
|
15726
15750
|
function CustomControl(_ref) {
|
|
@@ -15734,7 +15758,7 @@ function CustomControl(_ref) {
|
|
|
15734
15758
|
} = props.selectProps.componentsProps;
|
|
15735
15759
|
const selectedOption = (_props$getValue = props.getValue()) == null ? void 0 : _props$getValue[0];
|
|
15736
15760
|
return React__default.createElement(components.Control, _extends({}, props), SelectedOptionPrefix && selectedOption ? React__default.createElement("div", {
|
|
15737
|
-
className: styles$
|
|
15761
|
+
className: styles$L['custom-control'],
|
|
15738
15762
|
style: {
|
|
15739
15763
|
paddingLeft: selectedOption ? 8 : 0
|
|
15740
15764
|
}
|
|
@@ -15913,9 +15937,9 @@ const CustomContainer = props => {
|
|
|
15913
15937
|
}));
|
|
15914
15938
|
};
|
|
15915
15939
|
|
|
15916
|
-
var styles$
|
|
15940
|
+
var styles$K = {"custom-menu-text-field":"_AAUjm","custom-menu-hr":"_mFLK9","custom-menu-div":"_1XpI4"};
|
|
15917
15941
|
|
|
15918
|
-
var styles$
|
|
15942
|
+
var styles$J = {"creatable-button--align-left":"_Qw267","creatable-button":"_f9V5D"};
|
|
15919
15943
|
|
|
15920
15944
|
/**
|
|
15921
15945
|
* Shared creatable button component used in CustomMenu and CustomGroupWithCreate.
|
|
@@ -15939,8 +15963,8 @@ const CreatableButton = ({
|
|
|
15939
15963
|
};
|
|
15940
15964
|
if (!button || typeof button === 'string') {
|
|
15941
15965
|
return React__default.createElement("div", {
|
|
15942
|
-
className: classnames(styles$
|
|
15943
|
-
[styles$
|
|
15966
|
+
className: classnames(styles$J['creatable-button'], {
|
|
15967
|
+
[styles$J['creatable-button--align-left']]: _alignLeft
|
|
15944
15968
|
})
|
|
15945
15969
|
}, React__default.createElement(Button, {
|
|
15946
15970
|
theme: "link-primary",
|
|
@@ -15965,8 +15989,8 @@ const CreatableButton = ({
|
|
|
15965
15989
|
overrideProps.theme = 'link-primary';
|
|
15966
15990
|
}
|
|
15967
15991
|
return React__default.createElement("div", {
|
|
15968
|
-
className: classnames(styles$
|
|
15969
|
-
[styles$
|
|
15992
|
+
className: classnames(styles$J['creatable-button'], {
|
|
15993
|
+
[styles$J['creatable-button--align-left']]: _alignLeft
|
|
15970
15994
|
})
|
|
15971
15995
|
}, React__default.cloneElement(button, overrideProps));
|
|
15972
15996
|
};
|
|
@@ -15992,7 +16016,7 @@ const CreateInputForm = ({
|
|
|
15992
16016
|
flex: [1],
|
|
15993
16017
|
flexItems: true
|
|
15994
16018
|
}, React__default.createElement("input", {
|
|
15995
|
-
className: classnames(styles$
|
|
16019
|
+
className: classnames(styles$1v['text-field'], inputClassName),
|
|
15996
16020
|
autoCorrect: "off",
|
|
15997
16021
|
autoComplete: "off",
|
|
15998
16022
|
spellCheck: "false",
|
|
@@ -16058,7 +16082,7 @@ function CustomMenu(_ref) {
|
|
|
16058
16082
|
return React__default.createElement(components.Menu, _extends({}, props), React__default.createElement("div", {
|
|
16059
16083
|
ref: containerRef
|
|
16060
16084
|
}, children, React__default.createElement("hr", {
|
|
16061
|
-
className: styles$
|
|
16085
|
+
className: styles$K['custom-menu-hr']
|
|
16062
16086
|
}), !showFooter ? React__default.createElement(CreatableButton, {
|
|
16063
16087
|
creatableButton: creatableButton,
|
|
16064
16088
|
onClick: () => setShowFooter(true),
|
|
@@ -16069,13 +16093,13 @@ function CustomMenu(_ref) {
|
|
|
16069
16093
|
onMenuInputFocus: onMenuInputFocus,
|
|
16070
16094
|
onSubmit: onCreateButton,
|
|
16071
16095
|
defaultValue: inputDefaultValue,
|
|
16072
|
-
wrapperClassName: styles$
|
|
16073
|
-
inputClassName: styles$
|
|
16096
|
+
wrapperClassName: styles$K['custom-menu-div'],
|
|
16097
|
+
inputClassName: styles$K['custom-menu-text-field'],
|
|
16074
16098
|
testId: "select-create-option-input"
|
|
16075
16099
|
})));
|
|
16076
16100
|
}
|
|
16077
16101
|
|
|
16078
|
-
var styles$
|
|
16102
|
+
var styles$I = {"custom-group-with-create-text-field":"_JZG4r","custom-group-with-create-hr":"_04fIM","custom-group-with-create-input-wrapper":"_oJzDV","custom-group-with-create-button-wrapper":"_hLu2D"};
|
|
16079
16103
|
|
|
16080
16104
|
function CustomGroupWithCreate(props) {
|
|
16081
16105
|
const {
|
|
@@ -16109,7 +16133,7 @@ function CustomGroupWithCreate(props) {
|
|
|
16109
16133
|
return React__default.createElement("div", {
|
|
16110
16134
|
ref: containerRef
|
|
16111
16135
|
}, React__default.createElement(components.Group, _extends({}, props)), !isInputActive ? React__default.createElement("div", {
|
|
16112
|
-
className: styles$
|
|
16136
|
+
className: styles$I['custom-group-with-create-button-wrapper']
|
|
16113
16137
|
}, React__default.createElement(CreatableButton, {
|
|
16114
16138
|
creatableButton: creatableButton,
|
|
16115
16139
|
onClick: () => setActiveGroupLabel(groupLabel),
|
|
@@ -16121,8 +16145,8 @@ function CustomGroupWithCreate(props) {
|
|
|
16121
16145
|
onMenuInputFocus: onMenuInputFocus,
|
|
16122
16146
|
onSubmit: onCreateButton,
|
|
16123
16147
|
defaultValue: inputDefaultValue,
|
|
16124
|
-
wrapperClassName: styles$
|
|
16125
|
-
inputClassName: styles$
|
|
16148
|
+
wrapperClassName: styles$I['custom-group-with-create-input-wrapper'],
|
|
16149
|
+
inputClassName: styles$I['custom-group-with-create-text-field'],
|
|
16126
16150
|
testId: `select-create-option-input-${groupLabel}`
|
|
16127
16151
|
}));
|
|
16128
16152
|
}
|
|
@@ -16231,7 +16255,7 @@ const useSelectField = _ref => {
|
|
|
16231
16255
|
};
|
|
16232
16256
|
};
|
|
16233
16257
|
|
|
16234
|
-
var styles$
|
|
16258
|
+
var styles$H = {"select-field__suffix":"_vqC1M"};
|
|
16235
16259
|
|
|
16236
16260
|
/** Simple dropdown field where the user chooses one option from a predefined list. */
|
|
16237
16261
|
const SelectField = props => {
|
|
@@ -16241,7 +16265,7 @@ const SelectField = props => {
|
|
|
16241
16265
|
} = useSelectField(props);
|
|
16242
16266
|
//Select field has the chevron icon as suffix, so we need to add a margin to the suffix to avoid overlapping with the chevron icon
|
|
16243
16267
|
const suffixWithMargin = props.suffix ? React__default.createElement("div", {
|
|
16244
|
-
className: styles$
|
|
16268
|
+
className: styles$H['select-field__suffix']
|
|
16245
16269
|
}, props.suffix) : undefined;
|
|
16246
16270
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
16247
16271
|
prefix: props.prefix,
|
|
@@ -16286,9 +16310,9 @@ const ToolbarSelect = _ref => {
|
|
|
16286
16310
|
}, rest));
|
|
16287
16311
|
};
|
|
16288
16312
|
|
|
16289
|
-
var styles$
|
|
16313
|
+
var styles$G = {"date-filter":"_PyXfe","date-filter--wide":"_P6ttU"};
|
|
16290
16314
|
|
|
16291
|
-
var styles$
|
|
16315
|
+
var styles$F = {"date-filter-display":"_N37zE","date-filter-display--non-interactive":"_42Bvz","date-filter-display--wide":"_h8n2w","date-filter-display__display-icon":"_i08yV"};
|
|
16292
16316
|
|
|
16293
16317
|
const DATE_FILTER_MODE = {
|
|
16294
16318
|
DAY: 'day',
|
|
@@ -16342,8 +16366,8 @@ const DateFilterDisplay = forwardRef(({
|
|
|
16342
16366
|
onClick
|
|
16343
16367
|
}, ref) => {
|
|
16344
16368
|
return React__default.createElement("button", {
|
|
16345
|
-
className: classnames(styles$
|
|
16346
|
-
[styles$
|
|
16369
|
+
className: classnames(styles$F['date-filter-display'], {
|
|
16370
|
+
[styles$F['date-filter-display--wide']]: mode === DATE_FILTER_MODE.WEEK
|
|
16347
16371
|
}),
|
|
16348
16372
|
onClick: onClick,
|
|
16349
16373
|
tabIndex: mode === DATE_FILTER_MODE.MONTH ? -1 : undefined,
|
|
@@ -16352,7 +16376,7 @@ const DateFilterDisplay = forwardRef(({
|
|
|
16352
16376
|
space: 12,
|
|
16353
16377
|
alignItems: "center"
|
|
16354
16378
|
}, React__default.createElement("div", {
|
|
16355
|
-
className: classnames(styles$
|
|
16379
|
+
className: classnames(styles$F['date-filter-display__display-icon'])
|
|
16356
16380
|
}, React__default.createElement(IconCalendarAlt, {
|
|
16357
16381
|
size: "flexible",
|
|
16358
16382
|
color: "surface-on-color-subtle"
|
|
@@ -16363,7 +16387,7 @@ const DateFilterDisplay = forwardRef(({
|
|
|
16363
16387
|
})));
|
|
16364
16388
|
});
|
|
16365
16389
|
|
|
16366
|
-
var styles$
|
|
16390
|
+
var styles$E = {"date-stepper":"_9wFtw","date-stepper--backward":"_OrtcR","date-stepper--forward":"_oYoUt"};
|
|
16367
16391
|
|
|
16368
16392
|
const handleDateStepper = (date, mode, stepDirection, onChange) => {
|
|
16369
16393
|
const step = stepDirection === STEP_DIRECTION.FORWARD ? 1 : -1;
|
|
@@ -16392,9 +16416,9 @@ const DateFilterStepper = ({
|
|
|
16392
16416
|
date
|
|
16393
16417
|
}) => {
|
|
16394
16418
|
return React__default.createElement("button", {
|
|
16395
|
-
className: classnames(styles$
|
|
16396
|
-
[styles$
|
|
16397
|
-
[styles$
|
|
16419
|
+
className: classnames(styles$E['date-stepper'], {
|
|
16420
|
+
[styles$E['date-stepper--backward']]: stepDirection === STEP_DIRECTION.BACKWARD,
|
|
16421
|
+
[styles$E['date-stepper--forward']]: stepDirection === STEP_DIRECTION.FORWARD
|
|
16398
16422
|
}),
|
|
16399
16423
|
onClick: () => handleDateStepper(date, mode, stepDirection, onChange)
|
|
16400
16424
|
}, children);
|
|
@@ -16459,9 +16483,9 @@ const CalendarMonth = ({
|
|
|
16459
16483
|
}
|
|
16460
16484
|
const MONTHS = [...Array(12).keys()];
|
|
16461
16485
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
16462
|
-
className: styles$
|
|
16486
|
+
className: styles$1b['calendar']
|
|
16463
16487
|
}, React__default.createElement("div", {
|
|
16464
|
-
className: styles$
|
|
16488
|
+
className: styles$1b['calendar__overlay'],
|
|
16465
16489
|
ref: ref => setCalendarRef(ref),
|
|
16466
16490
|
style: _extends({}, calendarPosition, {
|
|
16467
16491
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -16539,8 +16563,8 @@ const DateFilter = ({
|
|
|
16539
16563
|
const onClickOutside = useCallback(() => setCalendarOpen(false), [setCalendarOpen]);
|
|
16540
16564
|
return React__default.createElement("div", {
|
|
16541
16565
|
"data-testid": testId,
|
|
16542
|
-
className: classnames(styles$
|
|
16543
|
-
[styles$
|
|
16566
|
+
className: classnames(styles$G['date-filter'], {
|
|
16567
|
+
[styles$G['date-filter--wide']]: _mode === DATE_FILTER_MODE.WEEK
|
|
16544
16568
|
})
|
|
16545
16569
|
}, React__default.createElement(Inline, {
|
|
16546
16570
|
space: 0
|
|
@@ -16584,7 +16608,7 @@ const DateFilter = ({
|
|
|
16584
16608
|
}));
|
|
16585
16609
|
};
|
|
16586
16610
|
|
|
16587
|
-
var styles$
|
|
16611
|
+
var styles$D = {"segmented-control":"_RezMY","segmented-control__button":"_lehFG","segmented-control__button--selected":"_Fr5kb"};
|
|
16588
16612
|
|
|
16589
16613
|
const SegmentedControl = ({
|
|
16590
16614
|
options,
|
|
@@ -16596,21 +16620,21 @@ const SegmentedControl = ({
|
|
|
16596
16620
|
return option === value;
|
|
16597
16621
|
};
|
|
16598
16622
|
return React__default.createElement("div", {
|
|
16599
|
-
className: styles$
|
|
16623
|
+
className: styles$D['segmented-control'],
|
|
16600
16624
|
"data-testid": testId
|
|
16601
16625
|
}, options.map(option => React__default.createElement(React__default.Fragment, {
|
|
16602
16626
|
key: option
|
|
16603
16627
|
}, React__default.createElement("button", {
|
|
16604
16628
|
onClick: () => onChange(option),
|
|
16605
|
-
className: classnames(styles$
|
|
16606
|
-
[styles$
|
|
16629
|
+
className: classnames(styles$D['segmented-control__button'], {
|
|
16630
|
+
[styles$D['segmented-control__button--selected']]: isSelected(option)
|
|
16607
16631
|
})
|
|
16608
16632
|
}, option))));
|
|
16609
16633
|
};
|
|
16610
16634
|
|
|
16611
|
-
var styles$
|
|
16635
|
+
var styles$C = {"form--standard-size":"_8-Ykj"};
|
|
16612
16636
|
|
|
16613
|
-
var styles$
|
|
16637
|
+
var styles$B = {"form-section":"_3uYIj","form-section__title":"_2WdOf","form-section__subtitle":"_zybxx","form-section--no-margin":"_xT-U1"};
|
|
16614
16638
|
|
|
16615
16639
|
/**
|
|
16616
16640
|
* FormSection is a component that groups related form fields together, optionally with a title and subtitle. It can also be rendered as a card for visual separation.
|
|
@@ -16626,13 +16650,13 @@ const FormSection = ({
|
|
|
16626
16650
|
const content = React__default.createElement(Stack, null, (title || subtitle) && React__default.createElement(Stack, {
|
|
16627
16651
|
space: 8
|
|
16628
16652
|
}, title && React__default.createElement("h2", {
|
|
16629
|
-
className: classnames(styles$
|
|
16653
|
+
className: classnames(styles$B['form-section__title'])
|
|
16630
16654
|
}, title), subtitle && React__default.createElement("h3", {
|
|
16631
|
-
className: classnames(styles$
|
|
16655
|
+
className: classnames(styles$B['form-section__subtitle'])
|
|
16632
16656
|
}, subtitle)), children);
|
|
16633
16657
|
return React__default.createElement("div", {
|
|
16634
|
-
className: classnames(styles$
|
|
16635
|
-
[styles$
|
|
16658
|
+
className: classnames(styles$B['form-section'], {
|
|
16659
|
+
[styles$B['form-section--no-margin']]: _noMargin || as === 'card'
|
|
16636
16660
|
}),
|
|
16637
16661
|
"data-testid": testId
|
|
16638
16662
|
}, as === 'card' ? React__default.createElement(Card, {
|
|
@@ -16652,7 +16676,7 @@ const updateButtonProps = (child, newProps) => {
|
|
|
16652
16676
|
}, newProps, child.props));
|
|
16653
16677
|
};
|
|
16654
16678
|
|
|
16655
|
-
var styles$
|
|
16679
|
+
var styles$A = {"form-footer":"_4ksfB"};
|
|
16656
16680
|
|
|
16657
16681
|
const FormFooterActions = ({
|
|
16658
16682
|
actions
|
|
@@ -16691,7 +16715,7 @@ const FormFooter = ({
|
|
|
16691
16715
|
});
|
|
16692
16716
|
const isInlineChildren = React__default.Children.count(children) === 1 && React__default.isValidElement(children) && children.type === Inline;
|
|
16693
16717
|
return React__default.createElement("div", {
|
|
16694
|
-
className: classnames(styles$
|
|
16718
|
+
className: classnames(styles$A['form-footer']),
|
|
16695
16719
|
"data-testid": testId
|
|
16696
16720
|
}, actions && React__default.createElement(FormFooterActions, {
|
|
16697
16721
|
actions: actions
|
|
@@ -16729,13 +16753,13 @@ const Form = ({
|
|
|
16729
16753
|
}, React__default.createElement("form", {
|
|
16730
16754
|
onSubmit: onSubmit ? handleSubmit : formik == null ? void 0 : formik.handleSubmit,
|
|
16731
16755
|
className: classnames({
|
|
16732
|
-
[styles$
|
|
16756
|
+
[styles$C['form--standard-size']]: !_wide
|
|
16733
16757
|
}),
|
|
16734
16758
|
"data-testid": testId
|
|
16735
16759
|
}, _stackContent ? React__default.createElement(Stack, null, formattedChildren) : formattedChildren));
|
|
16736
16760
|
};
|
|
16737
16761
|
|
|
16738
|
-
var styles$
|
|
16762
|
+
var styles$z = {"form-row":"_xX-RS"};
|
|
16739
16763
|
|
|
16740
16764
|
const SIZE_25_PERCENT = '25%';
|
|
16741
16765
|
const SIZE_33_PERCENT = '33.333%';
|
|
@@ -16762,14 +16786,14 @@ const FormRow = ({
|
|
|
16762
16786
|
space: _space,
|
|
16763
16787
|
testId: testId,
|
|
16764
16788
|
alignItems: "stretch",
|
|
16765
|
-
extraClass: styles$
|
|
16789
|
+
extraClass: styles$z['form-row']
|
|
16766
16790
|
}, children, additionalColumns.map((_, index) => React__default.createElement("span", {
|
|
16767
16791
|
key: index,
|
|
16768
16792
|
"data-testid": "empty-cell"
|
|
16769
16793
|
})));
|
|
16770
16794
|
};
|
|
16771
16795
|
|
|
16772
|
-
var styles$
|
|
16796
|
+
var styles$y = {"text-field":"_JaB08","text-field--focus":"_62RIR","text-field--disabled":"_CDt23","text-field--invalid":"_wf4XP","text-field__toolbar":"_7xVsj"};
|
|
16773
16797
|
|
|
16774
16798
|
const useGrowTextAreaRef = (minHeight, maxHeight, autoGrow, forwardedRef) => {
|
|
16775
16799
|
const textareaRef = useRef(null);
|
|
@@ -16839,10 +16863,10 @@ const TextAreaField = ({
|
|
|
16839
16863
|
return React__default.createElement(Field, _extends({}, fieldProps, {
|
|
16840
16864
|
characterCount: controllers.value !== undefined && maxLength ? maxLength - controllers.value.length : undefined
|
|
16841
16865
|
}), React__default.createElement("div", {
|
|
16842
|
-
className: classnames(styles$
|
|
16843
|
-
[styles$
|
|
16844
|
-
[styles$
|
|
16845
|
-
[styles$
|
|
16866
|
+
className: classnames(styles$y['text-field'], {
|
|
16867
|
+
[styles$y['text-field--invalid']]: hasError,
|
|
16868
|
+
[styles$y['text-field--disabled']]: disabled,
|
|
16869
|
+
[styles$y['text-field--focus']]: hasFocus
|
|
16846
16870
|
}),
|
|
16847
16871
|
ref: containerRef,
|
|
16848
16872
|
onClick: event => {
|
|
@@ -16874,7 +16898,7 @@ const TextAreaField = ({
|
|
|
16874
16898
|
ref: textAreaRef,
|
|
16875
16899
|
maxLength: maxLength
|
|
16876
16900
|
}), toolbar && React__default.createElement("div", {
|
|
16877
|
-
className: styles$
|
|
16901
|
+
className: styles$y['text-field__toolbar'],
|
|
16878
16902
|
id: `${controllers.id}-toolbar`,
|
|
16879
16903
|
ref: toolbarRef,
|
|
16880
16904
|
onClick: event => {
|
|
@@ -16911,7 +16935,7 @@ const TextFieldElement = (_ref, ref) => {
|
|
|
16911
16935
|
*/
|
|
16912
16936
|
const TextField = forwardRef(TextFieldElement);
|
|
16913
16937
|
|
|
16914
|
-
var styles$
|
|
16938
|
+
var styles$x = {"pill-select-field":"_Yti6k","pill-select-field__creating-input":"_dw-VP","pill-select-field__custom-input":"_JXakU","pill-select-field__add-new-input":"_MsKVV","pill-select-field__creating-custom-input":"_ZxEwG","pill-select-field__removable-icon":"_Odw1V"};
|
|
16915
16939
|
|
|
16916
16940
|
const useMultiSelectFieldControllers = ({
|
|
16917
16941
|
name,
|
|
@@ -16976,10 +17000,10 @@ const CreatableOption = ({
|
|
|
16976
17000
|
};
|
|
16977
17001
|
return React__default.createElement(React__default.Fragment, null, !isCreatingOption && React__default.createElement("div", {
|
|
16978
17002
|
key: 'pill-select-field-create-option',
|
|
16979
|
-
className: styles$
|
|
17003
|
+
className: styles$x['pill-select-field']
|
|
16980
17004
|
}, React__default.createElement("button", {
|
|
16981
17005
|
"data-testid": testId ? `${testId}-create-option` : undefined,
|
|
16982
|
-
className: styles$
|
|
17006
|
+
className: styles$x['pill-select-field__add-new-input'],
|
|
16983
17007
|
onClick: () => {
|
|
16984
17008
|
setIsCreatingOption(true);
|
|
16985
17009
|
setNewOptionLabel('');
|
|
@@ -16988,9 +17012,9 @@ const CreatableOption = ({
|
|
|
16988
17012
|
size: "small"
|
|
16989
17013
|
}), createOptionLabel)), isCreatingOption && React__default.createElement("div", {
|
|
16990
17014
|
key: 'pill-select-field-creating-option',
|
|
16991
|
-
className: styles$
|
|
17015
|
+
className: styles$x['pill-select-field']
|
|
16992
17016
|
}, React__default.createElement("input", {
|
|
16993
|
-
className: styles$
|
|
17017
|
+
className: styles$x['pill-select-field__creating-input'],
|
|
16994
17018
|
name: `${name}-pill-select-field-creating-option`,
|
|
16995
17019
|
id: 'pill-select-field-creating-option',
|
|
16996
17020
|
type: "text",
|
|
@@ -17011,7 +17035,7 @@ const CreatableOption = ({
|
|
|
17011
17035
|
}
|
|
17012
17036
|
}
|
|
17013
17037
|
}), React__default.createElement("span", {
|
|
17014
|
-
className: styles$
|
|
17038
|
+
className: styles$x['pill-select-field__creating-custom-input']
|
|
17015
17039
|
}, !newOptionLabel && React__default.createElement(Text, {
|
|
17016
17040
|
as: "body",
|
|
17017
17041
|
color: "surface-on-color-disabled"
|
|
@@ -17062,7 +17086,7 @@ const PillSelectField = ({
|
|
|
17062
17086
|
}
|
|
17063
17087
|
};
|
|
17064
17088
|
return React__default.createElement("button", {
|
|
17065
|
-
className: styles$
|
|
17089
|
+
className: styles$x['pill-select-field__removable-icon'],
|
|
17066
17090
|
onClick: handleClick,
|
|
17067
17091
|
disabled: disabled
|
|
17068
17092
|
}, React__default.createElement(IconTimes, {
|
|
@@ -17079,7 +17103,7 @@ const PillSelectField = ({
|
|
|
17079
17103
|
const itemId = `${controllers.id}-${itemIdentifier}`;
|
|
17080
17104
|
return React__default.createElement("div", {
|
|
17081
17105
|
key: itemIdentifier,
|
|
17082
|
-
className: styles$
|
|
17106
|
+
className: styles$x['pill-select-field']
|
|
17083
17107
|
}, React__default.createElement("input", {
|
|
17084
17108
|
name: `${name}-${itemIdentifier}`,
|
|
17085
17109
|
id: itemId,
|
|
@@ -17099,7 +17123,7 @@ const PillSelectField = ({
|
|
|
17099
17123
|
controllers.onChange(newValue);
|
|
17100
17124
|
}
|
|
17101
17125
|
}), React__default.createElement("span", {
|
|
17102
|
-
className: styles$
|
|
17126
|
+
className: styles$x['pill-select-field__custom-input']
|
|
17103
17127
|
}, option.label, option.isRemovable && React__default.createElement(RemoveButton, {
|
|
17104
17128
|
option: option
|
|
17105
17129
|
})));
|
|
@@ -17111,7 +17135,7 @@ const PillSelectField = ({
|
|
|
17111
17135
|
})));
|
|
17112
17136
|
};
|
|
17113
17137
|
|
|
17114
|
-
var styles$
|
|
17138
|
+
var styles$w = {"week-select-field":"_IYHYX","week-select-field__day":"_JnbPv","week-select-field__day-pill":"_9GwLj","week-select-field__day-abbr":"_WcKdi","week-select-field__day-num":"_MQ3xL"};
|
|
17115
17139
|
|
|
17116
17140
|
const toKey = d => `${d.getFullYear()}-${d.getMonth()}-${d.getDate()}`;
|
|
17117
17141
|
/**
|
|
@@ -17156,14 +17180,14 @@ const WeekSelectField = ({
|
|
|
17156
17180
|
caption: caption,
|
|
17157
17181
|
error: error
|
|
17158
17182
|
}, React__default.createElement("div", {
|
|
17159
|
-
className: styles$
|
|
17183
|
+
className: styles$w['week-select-field']
|
|
17160
17184
|
}, days.map((day, index) => {
|
|
17161
17185
|
const key = toKey(day);
|
|
17162
17186
|
const isChecked = selectedKeys.has(key);
|
|
17163
17187
|
const itemId = `${id}-${key}`;
|
|
17164
17188
|
return React__default.createElement("div", {
|
|
17165
17189
|
key: key,
|
|
17166
|
-
className: styles$
|
|
17190
|
+
className: styles$w['week-select-field__day']
|
|
17167
17191
|
}, React__default.createElement("input", {
|
|
17168
17192
|
type: "checkbox",
|
|
17169
17193
|
id: itemId,
|
|
@@ -17178,11 +17202,11 @@ const WeekSelectField = ({
|
|
|
17178
17202
|
handleChange(newValue);
|
|
17179
17203
|
}
|
|
17180
17204
|
}), React__default.createElement("span", {
|
|
17181
|
-
className: styles$
|
|
17205
|
+
className: styles$w['week-select-field__day-pill']
|
|
17182
17206
|
}, React__default.createElement("span", {
|
|
17183
|
-
className: styles$
|
|
17207
|
+
className: styles$w['week-select-field__day-abbr']
|
|
17184
17208
|
}, _displayFormat === 'month' ? monthAbbr[day.getMonth()] : dayAbbr[day.getDay()]), React__default.createElement("span", {
|
|
17185
|
-
className: styles$
|
|
17209
|
+
className: styles$w['week-select-field__day-num']
|
|
17186
17210
|
}, day.getDate())));
|
|
17187
17211
|
})));
|
|
17188
17212
|
};
|
|
@@ -17224,9 +17248,9 @@ const useRadioGroupFieldContext = () => {
|
|
|
17224
17248
|
return context;
|
|
17225
17249
|
};
|
|
17226
17250
|
|
|
17227
|
-
var styles$
|
|
17251
|
+
var styles$v = {"label":"_xzukU","label--truncate":"_iVWRB","caption":"_JNfQO","radio-group-field__label":"_2KvuU","radio-group-field__caption":"_ZeIOd"};
|
|
17228
17252
|
|
|
17229
|
-
var styles$
|
|
17253
|
+
var styles$u = {"label":"_s7mjc","label--truncate":"_dZjDs","caption":"_JIw-5","radio-group-box-option":"_IIX-P","radio-group-box-option__box":"_P588B","radio-group-box-option__box--disabled":"_Ir3Og","radio-group-box-option__label":"_U--9r","radio-group-box-option__label--disabled":"_Lvxmy","radio-group-box-option__caption":"_NC-bO","radio-group-box-option__caption--disabled":"_04Cjp"};
|
|
17230
17254
|
|
|
17231
17255
|
const RadioGroupBoxOption = ({
|
|
17232
17256
|
value,
|
|
@@ -17243,7 +17267,7 @@ const RadioGroupBoxOption = ({
|
|
|
17243
17267
|
id: inputId
|
|
17244
17268
|
});
|
|
17245
17269
|
return React__default.createElement("label", {
|
|
17246
|
-
className: styles$
|
|
17270
|
+
className: styles$u['radio-group-box-option'],
|
|
17247
17271
|
"data-testid": testId
|
|
17248
17272
|
}, React__default.createElement("input", {
|
|
17249
17273
|
type: "radio",
|
|
@@ -17254,8 +17278,8 @@ const RadioGroupBoxOption = ({
|
|
|
17254
17278
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
17255
17279
|
disabled: radioGroupContext.disabled || disabled
|
|
17256
17280
|
}), React__default.createElement("div", {
|
|
17257
|
-
className: classnames(styles$
|
|
17258
|
-
[styles$
|
|
17281
|
+
className: classnames(styles$u['radio-group-box-option__box'], {
|
|
17282
|
+
[styles$u['radio-group-box-option__box--disabled']]: radioGroupContext.disabled || disabled
|
|
17259
17283
|
})
|
|
17260
17284
|
}, React__default.createElement(Stack, {
|
|
17261
17285
|
space: 16,
|
|
@@ -17265,17 +17289,17 @@ const RadioGroupBoxOption = ({
|
|
|
17265
17289
|
space: 8,
|
|
17266
17290
|
alignItems: "center"
|
|
17267
17291
|
}, label && React__default.createElement("div", {
|
|
17268
|
-
className: classnames(styles$
|
|
17269
|
-
[styles$
|
|
17292
|
+
className: classnames(styles$u['radio-group-box-option__label'], {
|
|
17293
|
+
[styles$u['radio-group-box-option__label--disabled']]: radioGroupContext.disabled || disabled
|
|
17270
17294
|
})
|
|
17271
17295
|
}, label), caption && React__default.createElement("div", {
|
|
17272
|
-
className: classnames(styles$
|
|
17273
|
-
[styles$
|
|
17296
|
+
className: classnames(styles$u['radio-group-box-option__caption'], {
|
|
17297
|
+
[styles$u['radio-group-box-option__caption--disabled']]: radioGroupContext.disabled || disabled
|
|
17274
17298
|
})
|
|
17275
17299
|
}, caption)))));
|
|
17276
17300
|
};
|
|
17277
17301
|
|
|
17278
|
-
var styles$
|
|
17302
|
+
var styles$t = {"radio-group-option":"_7fVpn","radio-group-option__caption":"_VD7SO","radio-group-option__custom-input":"_Yfxkl"};
|
|
17279
17303
|
|
|
17280
17304
|
/** RadioGroupField form element. */
|
|
17281
17305
|
const RadioGroupOption = ({
|
|
@@ -17297,7 +17321,7 @@ const RadioGroupOption = ({
|
|
|
17297
17321
|
space: 8,
|
|
17298
17322
|
alignItems: "center"
|
|
17299
17323
|
}, React__default.createElement("div", {
|
|
17300
|
-
className: styles$
|
|
17324
|
+
className: styles$t['radio-group-option']
|
|
17301
17325
|
}, React__default.createElement("input", {
|
|
17302
17326
|
type: "radio",
|
|
17303
17327
|
"data-testid": testId,
|
|
@@ -17308,11 +17332,11 @@ const RadioGroupOption = ({
|
|
|
17308
17332
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
17309
17333
|
disabled: radioGroupContext.disabled || disabled
|
|
17310
17334
|
}), React__default.createElement("span", {
|
|
17311
|
-
className: styles$
|
|
17335
|
+
className: styles$t['radio-group-option__custom-input']
|
|
17312
17336
|
})), label && React__default.createElement(Label, {
|
|
17313
17337
|
htmlFor: id
|
|
17314
17338
|
}, label)), caption && React__default.createElement("div", {
|
|
17315
|
-
className: styles$
|
|
17339
|
+
className: styles$t['radio-group-option__caption']
|
|
17316
17340
|
}, React__default.createElement(Caption, {
|
|
17317
17341
|
fieldId: id
|
|
17318
17342
|
}, caption)));
|
|
@@ -17443,7 +17467,7 @@ const RadioGroupField = ({
|
|
|
17443
17467
|
}, React__default.createElement(Stack, {
|
|
17444
17468
|
space: _space
|
|
17445
17469
|
}, label && React__default.createElement("div", {
|
|
17446
|
-
className: styles$
|
|
17470
|
+
className: styles$v['radio-group-field__label']
|
|
17447
17471
|
}, label), React__default.createElement(Stack, {
|
|
17448
17472
|
space: 8
|
|
17449
17473
|
}, optionsType === OPTION_TYPES.RADIO ? React__default.createElement(RadioOptions, {
|
|
@@ -17455,21 +17479,21 @@ const RadioGroupField = ({
|
|
|
17455
17479
|
testId: testId,
|
|
17456
17480
|
space: _space
|
|
17457
17481
|
}, children), caption && React__default.createElement("div", {
|
|
17458
|
-
className: styles$
|
|
17482
|
+
className: styles$v['radio-group-caption']
|
|
17459
17483
|
}, caption), controllers.error && React__default.createElement(ErrorMessage, null, controllers.error))));
|
|
17460
17484
|
};
|
|
17461
17485
|
|
|
17462
|
-
var styles$
|
|
17486
|
+
var styles$s = {"text-field":"_6Of1F","text-field--invalid":"_NQPNK","text-field--prefixed":"_BpQWQ","text-field--suffixed":"_cpYWb","password-container":"_pAoib","password-toggle":"_WVvS6","password-toggle--disabled":"_G29N3"};
|
|
17463
17487
|
|
|
17464
|
-
var styles$
|
|
17488
|
+
var styles$r = {"password-criteria":"_1ruWK","password-criteria--invalid":"_xR7tb"};
|
|
17465
17489
|
|
|
17466
17490
|
const PasswordCriteria = ({
|
|
17467
17491
|
met,
|
|
17468
17492
|
children
|
|
17469
17493
|
}) => {
|
|
17470
17494
|
return React__default.createElement("span", {
|
|
17471
|
-
className: classnames(styles$
|
|
17472
|
-
[styles$
|
|
17495
|
+
className: classnames(styles$r['password-criteria'], {
|
|
17496
|
+
[styles$r['password-criteria--invalid']]: !met
|
|
17473
17497
|
})
|
|
17474
17498
|
}, React__default.createElement(Inline, {
|
|
17475
17499
|
space: met ? 4 : 8
|
|
@@ -17543,12 +17567,12 @@ const PasswordField = ({
|
|
|
17543
17567
|
error: controllers.error
|
|
17544
17568
|
};
|
|
17545
17569
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
17546
|
-
className: styles$
|
|
17570
|
+
className: styles$s['password-container']
|
|
17547
17571
|
}, React__default.createElement("input", {
|
|
17548
17572
|
name: name,
|
|
17549
17573
|
id: controllers.id,
|
|
17550
|
-
className: classnames(styles$
|
|
17551
|
-
[styles$
|
|
17574
|
+
className: classnames(styles$s['text-field'], {
|
|
17575
|
+
[styles$s['text-field--invalid']]: hasError
|
|
17552
17576
|
}),
|
|
17553
17577
|
type: type,
|
|
17554
17578
|
"data-testid": testId,
|
|
@@ -17562,8 +17586,8 @@ const PasswordField = ({
|
|
|
17562
17586
|
onChange: controllers.onChange,
|
|
17563
17587
|
onBlur: controllers.onBlur
|
|
17564
17588
|
}), React__default.createElement("div", {
|
|
17565
|
-
className: classnames(styles$
|
|
17566
|
-
[styles$
|
|
17589
|
+
className: classnames(styles$s['password-toggle'], {
|
|
17590
|
+
[styles$s['password-toggle--disabled']]: disabled
|
|
17567
17591
|
}),
|
|
17568
17592
|
onClick: toggleType,
|
|
17569
17593
|
onKeyPress: toggleType,
|
|
@@ -17665,7 +17689,7 @@ const MultiSelectField = ({
|
|
|
17665
17689
|
})));
|
|
17666
17690
|
};
|
|
17667
17691
|
|
|
17668
|
-
var styles$
|
|
17692
|
+
var styles$q = {"custom-list":"_cSkvD"};
|
|
17669
17693
|
|
|
17670
17694
|
const _excluded$b4 = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad", "isLoadingMore"];
|
|
17671
17695
|
const CustomList = _ref => {
|
|
@@ -17688,7 +17712,7 @@ const CustomList = _ref => {
|
|
|
17688
17712
|
})) : showFooter && props.options.length > 0 && React__default.createElement(Inline, {
|
|
17689
17713
|
justifyContent: "center"
|
|
17690
17714
|
}, React__default.createElement("div", {
|
|
17691
|
-
className: styles$
|
|
17715
|
+
className: styles$q['custom-list']
|
|
17692
17716
|
}, __('moreOptionsPlaceholder')))));
|
|
17693
17717
|
};
|
|
17694
17718
|
|
|
@@ -18049,7 +18073,7 @@ const getFormikError = error => {
|
|
|
18049
18073
|
return undefined;
|
|
18050
18074
|
};
|
|
18051
18075
|
|
|
18052
|
-
var styles$
|
|
18076
|
+
var styles$p = {"text-field":"_6cH4X","date-range-field":"_DMb6M","text-field--invalid":"_eXIiZ","text-field--prefixed":"_Lc6QO","text-field--suffixed":"_VWrJD","date-range-field--invalid":"_ZJ2A5","date-range-field--disabled":"_WkaJQ"};
|
|
18053
18077
|
|
|
18054
18078
|
var calendarStyles = {"root":"_SsQ7L","table":"_Ar-fF","caption":"_Tp79k","head_cell":"_Ya6Zr","day_today":"_lFzs7","day_outside":"_TjttB","nav_button":"_cwiRM","day_range_middle":"_rJolM","day_range_start":"_nVIPx","day_range_end":"_Y50yT"};
|
|
18055
18079
|
|
|
@@ -18115,9 +18139,9 @@ const DateRangeCalendar = ({
|
|
|
18115
18139
|
const MONTH_NAMES = getMonths(translate);
|
|
18116
18140
|
const highlight = buildHighlightDayPickerProps(highlightedDays);
|
|
18117
18141
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
18118
|
-
className: styles$
|
|
18142
|
+
className: styles$1b['calendar']
|
|
18119
18143
|
}, React__default.createElement("div", {
|
|
18120
|
-
className: styles$
|
|
18144
|
+
className: styles$1b['calendar__overlay'],
|
|
18121
18145
|
ref: ref => setCalendarRef(ref),
|
|
18122
18146
|
style: _extends({}, calendarPosition, {
|
|
18123
18147
|
zIndex: getZIndex('dropdown')
|
|
@@ -18317,9 +18341,9 @@ const DateRangeField = ({
|
|
|
18317
18341
|
end
|
|
18318
18342
|
} = controllers.value;
|
|
18319
18343
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
18320
|
-
className: classnames(styles$
|
|
18321
|
-
[styles$
|
|
18322
|
-
[styles$
|
|
18344
|
+
className: classnames(styles$p['date-range-field'], {
|
|
18345
|
+
[styles$p['date-range-field--invalid']]: hasError,
|
|
18346
|
+
[styles$p['date-range-field--disabled']]: disabled
|
|
18323
18347
|
}),
|
|
18324
18348
|
"data-testid": testId
|
|
18325
18349
|
}, React__default.createElement(IconCalendarAlt, {
|
|
@@ -18645,7 +18669,7 @@ const TimeRangeSelector = forwardRef(TimeFieldElement);
|
|
|
18645
18669
|
*/
|
|
18646
18670
|
const TimeField = forwardRef(TimeFieldElement);
|
|
18647
18671
|
|
|
18648
|
-
var styles$
|
|
18672
|
+
var styles$o = {"text-field":"_yV-BZ","time-range-field":"_9i8Lj","text-field--invalid":"_FJVdv","text-field--prefixed":"_B7q-i","text-field--suffixed":"_DvCJW","time-range-field--invalid":"_g2UhP","time-range-field--disabled":"_Yn4T4"};
|
|
18649
18673
|
|
|
18650
18674
|
const TimeRangeEnd = ({
|
|
18651
18675
|
startTime,
|
|
@@ -18767,9 +18791,9 @@ const TimeRangeField = ({
|
|
|
18767
18791
|
end
|
|
18768
18792
|
}) : getDuration(end, start, subtractDuration);
|
|
18769
18793
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
18770
|
-
className: classnames(styles$
|
|
18771
|
-
[styles$
|
|
18772
|
-
[styles$
|
|
18794
|
+
className: classnames(styles$o['time-range-field'], {
|
|
18795
|
+
[styles$o['time-range-field--invalid']]: hasError,
|
|
18796
|
+
[styles$o['time-range-field--disabled']]: disabled
|
|
18773
18797
|
}),
|
|
18774
18798
|
"data-testid": testId
|
|
18775
18799
|
}, React__default.createElement(TimeRangeStart, {
|
|
@@ -18797,7 +18821,7 @@ const TimeRangeField = ({
|
|
|
18797
18821
|
})));
|
|
18798
18822
|
};
|
|
18799
18823
|
|
|
18800
|
-
var styles$
|
|
18824
|
+
var styles$n = {"currency-field":"_GyYnE","currency-field--with-mask":"_NfdKk","currency-field__mask-display":"_ddacu","currency-field__mask-display--disabled":"_o1-zA"};
|
|
18801
18825
|
|
|
18802
18826
|
const CURRENCY_DISPLAY_DEFAULT_MARGIN = 8;
|
|
18803
18827
|
const CURRENCY_DISPLAY_MARGIN_BUFFER = 1;
|
|
@@ -18863,12 +18887,12 @@ const CurrencyFieldElement = (_ref, forwardedRef) => {
|
|
|
18863
18887
|
setShowMask(false);
|
|
18864
18888
|
inputProps.onFocus(e);
|
|
18865
18889
|
},
|
|
18866
|
-
className: classnames(inputProps.className, styles$
|
|
18867
|
-
[styles$
|
|
18890
|
+
className: classnames(inputProps.className, styles$n['currency-field'], {
|
|
18891
|
+
[styles$n['currency-field--with-mask']]: showMask && !!inputProps.value
|
|
18868
18892
|
})
|
|
18869
18893
|
}))), showMask && !!inputProps.value && React__default.createElement("div", {
|
|
18870
|
-
className: classnames(styles$
|
|
18871
|
-
[styles$
|
|
18894
|
+
className: classnames(styles$n['currency-field__mask-display'], {
|
|
18895
|
+
[styles$n['currency-field__mask-display--disabled']]: inputProps.disabled
|
|
18872
18896
|
}),
|
|
18873
18897
|
style: {
|
|
18874
18898
|
marginLeft: displayPadding
|
|
@@ -18997,7 +19021,7 @@ const FormFeedback = ({
|
|
|
18997
19021
|
}, children);
|
|
18998
19022
|
};
|
|
18999
19023
|
|
|
19000
|
-
var styles$
|
|
19024
|
+
var styles$m = {"phone-field":"_Q0GfJ","phone-field__flag":"_-uOqW","phone-field__input":"_Hes9b","phone-field__input--with-square-borders":"_TEU6N"};
|
|
19001
19025
|
|
|
19002
19026
|
const usePhoneFieldControllers = ({
|
|
19003
19027
|
name,
|
|
@@ -19140,8 +19164,8 @@ const usePhoneField = ({
|
|
|
19140
19164
|
'aria-describedby': hasError ? `${controllers.id}-error-message` : `${controllers.id}-describer`,
|
|
19141
19165
|
'aria-invalid': hasError,
|
|
19142
19166
|
autoFocus,
|
|
19143
|
-
className: classnames(styles$
|
|
19144
|
-
[styles$
|
|
19167
|
+
className: classnames(styles$1v['text-field'], {
|
|
19168
|
+
[styles$1v['text-field--invalid']]: hasError
|
|
19145
19169
|
}),
|
|
19146
19170
|
'data-testid': testId,
|
|
19147
19171
|
disabled,
|
|
@@ -19911,7 +19935,7 @@ const COUNTRIES = {
|
|
|
19911
19935
|
};
|
|
19912
19936
|
const COUNTRY_CODES = Object.keys(COUNTRIES);
|
|
19913
19937
|
|
|
19914
|
-
var styles$
|
|
19938
|
+
var styles$l = {"country-selector":"_VYs4A","country-selector--with-error":"_oSxxZ","country-selector__trigger":"_jlyd4","country-selector--disabled":"_tNInT","country-selector__trigger--with-error":"_424HM","country-selector__trigger--disabled":"_0XOFf","country-selector__trigger-flag":"_RfPa1","country-selector__flag":"_uADOl"};
|
|
19915
19939
|
|
|
19916
19940
|
var flagIcons = {"fi":"_wEQeh","fis":"_Z-kfc","fi-ac":"_amiP8","fi-ad":"_-Nycw","fi-ae":"_5zcAZ","fi-af":"_x-kp7","fi-ag":"_cfoi1","fi-ai":"_xoMS-","fi-al":"_am975","fi-am":"_0p-gD","fi-ao":"_l245N","fi-ar":"_xigkX","fi-as":"_fSczv","fi-at":"_tTeMy","fi-au":"_nSXvc","fi-aw":"_J3Dgu","fi-ax":"_PnU0s","fi-az":"_Hevuf","fi-ba":"_V-NYg","fi-bb":"_rdxaV","fi-bd":"_W3w35","fi-be":"_HXWpo","fi-bf":"_-xCW2","fi-bg":"_UuyPh","fi-bh":"_qYHkT","fi-bi":"_sfFeO","fi-bj":"_HcoBc","fi-bl":"_VvU29","fi-bm":"_DCtD1","fi-bn":"_QdHY3","fi-bo":"_Ayx7f","fi-bq":"_VfZGH","fi-br":"_HigIg","fi-bs":"_PWr-E","fi-bt":"_uFlIS","fi-bw":"_Mmoqr","fi-by":"_MKO28","fi-bz":"_HBn3o","fi-ca":"_wB3xX","fi-cc":"_oJEC5","fi-cd":"_C3RR8","fi-cf":"_ZVOZZ","fi-cg":"_Nk7Zr","fi-ch":"_9qTmx","fi-ci":"_4-gxn","fi-ck":"_YEK3x","fi-cl":"_-iNl4","fi-cm":"_UozRb","fi-cn":"_KsOEH","fi-co":"_ptSEc","fi-cr":"_92iwJ","fi-cu":"_D0k3p","fi-cv":"_O5oBT","fi-cw":"_82pI2","fi-cx":"_Eqg1T","fi-cy":"_740E8","fi-cz":"_483Iy","fi-de":"_Wla8X","fi-dj":"_Jm9gH","fi-dk":"_5QJuz","fi-dm":"_4lh-K","fi-do":"_Zvttl","fi-dz":"_-5iKJ","fi-ec":"_XMC0f","fi-ee":"_tZDe6","fi-eg":"_5USxE","fi-eh":"_rpC1Z","fi-er":"_Rhm4A","fi-es":"_QN2si","fi-et":"_2ihBN","fi-fi":"_2Lctq","fi-fj":"_ljZXm","fi-fk":"_Um9-A","fi-fm":"_mXG-Y","fi-fo":"_SemMo","fi-fr":"_MGcxf","fi-ga":"_aPt7H","fi-gb":"_2tU39","fi-gd":"_CPs5V","fi-ge":"_09VJF","fi-gf":"_7STtr","fi-gg":"_CUbGJ","fi-gh":"_mgJbd","fi-gi":"_mxhe5","fi-gl":"_gXogr","fi-gm":"_JHzzB","fi-gn":"_XJqm4","fi-gp":"_YnrVE","fi-gq":"_J47-w","fi-gr":"_5YAwo","fi-gt":"_PWFl-","fi-gu":"_ItzVX","fi-gw":"_hiRJc","fi-gy":"_oitDt","fi-hk":"_18FzB","fi-hn":"_5ySTg","fi-hr":"_rzYuT","fi-ht":"_Pq7or","fi-hu":"_-u5Ze","fi-id":"_m8GwW","fi-ie":"_pPEAu","fi-il":"_Butse","fi-im":"_wLEYj","fi-in":"_XY7D8","fi-io":"_iKM6K","fi-iq":"_iwLoJ","fi-ir":"_L1Gd1","fi-is":"_6XPDX","fi-it":"_JXv9-","fi-je":"_Qwjxj","fi-jm":"_qzNME","fi-jo":"_JqYXz","fi-jp":"_CakOC","fi-ke":"_Czyy6","fi-kg":"_6Yydv","fi-kh":"_zhLEc","fi-ki":"_qJxPJ","fi-km":"_KDmv4","fi-kn":"_n3xy0","fi-kp":"_voM9e","fi-kr":"_sErX2","fi-kw":"_kJUFk","fi-ky":"_Ensoj","fi-kz":"_JVpyw","fi-la":"_eVzpD","fi-lb":"_f400B","fi-lc":"_vhHp5","fi-li":"_cP76d","fi-lk":"_NGSeL","fi-lr":"_yIHm7","fi-ls":"_Kj-GJ","fi-lt":"_VTK9E","fi-lu":"_N4PHA","fi-lv":"_d-ZWR","fi-ly":"_49dYi","fi-ma":"_Iqggh","fi-mc":"_QQY-Q","fi-md":"_e7v9L","fi-me":"_WqN7P","fi-mf":"_4Exh-","fi-mg":"_W-d9O","fi-mh":"_3xTQ7","fi-mk":"_O26qm","fi-ml":"_hiLpW","fi-mm":"_QGh12","fi-mn":"_KNLNH","fi-mo":"_Kdw-k","fi-mp":"_CTkAK","fi-mq":"_MzLKJ","fi-mr":"_sjQHJ","fi-ms":"_ENTOn","fi-mt":"_GoKtf","fi-mu":"_WLc98","fi-mv":"_08Tf4","fi-mw":"_MvAGM","fi-mx":"_FPDND","fi-my":"_1xoF6","fi-mz":"_ylwZy","fi-na":"_-pxPH","fi-nc":"_W-Ot-","fi-ne":"_EOA-X","fi-nf":"_W5Kl5","fi-ng":"_q76Cs","fi-ni":"_AuKsI","fi-nl":"_qLIaU","fi-no":"_xbcrX","fi-np":"_FQt4h","fi-nr":"_jJbHx","fi-nu":"_TSamx","fi-nz":"_AzsKY","fi-om":"_TUoW9","fi-pa":"_jCT-C","fi-pe":"_VMnoV","fi-pf":"_Gblvx","fi-pg":"_FLRnq","fi-ph":"_0RSGR","fi-pk":"_DfZCd","fi-pl":"_hv9I4","fi-pm":"_IDp3q","fi-pr":"_2MHj1","fi-ps":"_0FLpC","fi-pt":"_p--cH","fi-pw":"_VP-zx","fi-py":"_-Tnic","fi-qa":"_Dy7Il","fi-re":"_7N5ED","fi-ro":"_4AYwa","fi-rs":"_Y-a4O","fi-ru":"_OKa79","fi-rw":"_bBqN1","fi-sa":"_vFwuG","fi-sb":"_MMmc2","fi-sc":"_ZUM8E","fi-sd":"_9k8eB","fi-se":"_cX0c9","fi-sg":"_4-yWs","fi-sh":"_-vaPR","fi-si":"_9oJgu","fi-sj":"_J0R6u","fi-sk":"_1VxbX","fi-sl":"_RiBAA","fi-sm":"_rEaFc","fi-sn":"_PRwVO","fi-so":"_XKFdC","fi-sr":"_LtiS3","fi-ss":"_45mng","fi-st":"_OtIks","fi-sv":"_OonsM","fi-sx":"_NtzDE","fi-sy":"_Ail2H","fi-sz":"_8XRyD","fi-ta":"_GQvZn","fi-tc":"_SbD-E","fi-td":"_AnXAO","fi-tg":"_smamZ","fi-th":"_AVcL5","fi-tj":"_EqMlf","fi-tk":"_20VO7","fi-tl":"_jz9hm","fi-tm":"_kmmny","fi-tn":"_9aBQ-","fi-to":"_G63l0","fi-tr":"_6shnc","fi-tt":"_P5fq4","fi-tv":"_b7SpV","fi-tw":"_jwNjI","fi-tz":"_qtU8x","fi-ua":"_bNAHa","fi-ug":"_-G-iW","fi-us":"_xwz53","fi-uy":"_DpeX8","fi-uz":"_kSABK","fi-va":"_VOSWl","fi-vc":"_X-aU3","fi-ve":"_FiFnt","fi-vg":"_d66Ny","fi-vi":"_6kM5U","fi-vn":"_ikRJo","fi-vu":"_5XaHH","fi-wf":"_ZEJXX","fi-ws":"_IzR7c","fi-xk":"_88V52","fi-ye":"_2Dwap","fi-yt":"_kQ0fh","fi-za":"_XzYDs","fi-zm":"_mA8wn","fi-zw":"_iIsuB"};
|
|
19917
19941
|
|
|
@@ -19925,21 +19949,21 @@ const CountrySelector = ({
|
|
|
19925
19949
|
}) => {
|
|
19926
19950
|
const resolvedPriorityCountries = [country, ..._priorityCountries].filter((code, index, arr) => arr.indexOf(code) === index && code in COUNTRIES);
|
|
19927
19951
|
return React__default.createElement("div", {
|
|
19928
|
-
className: classnames(styles$
|
|
19929
|
-
[styles$
|
|
19930
|
-
[styles$
|
|
19952
|
+
className: classnames(styles$l['country-selector'], {
|
|
19953
|
+
[styles$l['country-selector--with-error']]: hasError,
|
|
19954
|
+
[styles$l['country-selector--disabled']]: disabled
|
|
19931
19955
|
})
|
|
19932
19956
|
}, React__default.createElement(Dropdown, {
|
|
19933
19957
|
trigger: React__default.createElement("div", {
|
|
19934
|
-
className: classnames(styles$
|
|
19935
|
-
[styles$
|
|
19936
|
-
[styles$
|
|
19958
|
+
className: classnames(styles$l['country-selector__trigger'], {
|
|
19959
|
+
[styles$l['country-selector__trigger--with-error']]: hasError,
|
|
19960
|
+
[styles$l['country-selector__trigger--disabled']]: disabled
|
|
19937
19961
|
})
|
|
19938
19962
|
}, React__default.createElement(Inline, {
|
|
19939
19963
|
space: 8,
|
|
19940
19964
|
alignItems: "center"
|
|
19941
19965
|
}, React__default.createElement("span", {
|
|
19942
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLowerCase()}`], styles$
|
|
19966
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLowerCase()}`], styles$l['country-selector__trigger-flag'])
|
|
19943
19967
|
}), React__default.createElement(IconChevronDown, {
|
|
19944
19968
|
color: "currentColor",
|
|
19945
19969
|
size: "medium"
|
|
@@ -19953,7 +19977,7 @@ const CountrySelector = ({
|
|
|
19953
19977
|
alignItems: "center",
|
|
19954
19978
|
space: 12
|
|
19955
19979
|
}, React__default.createElement("span", {
|
|
19956
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$
|
|
19980
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$l['country-selector__flag'])
|
|
19957
19981
|
}), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)))), React__default.createElement(DropdownListDivider, null), COUNTRY_CODES.map(countryCode => React__default.createElement(DropdownListItem, {
|
|
19958
19982
|
onClick: () => onChange(countryCode),
|
|
19959
19983
|
key: countryCode
|
|
@@ -19961,7 +19985,7 @@ const CountrySelector = ({
|
|
|
19961
19985
|
alignItems: "center",
|
|
19962
19986
|
space: 12
|
|
19963
19987
|
}, React__default.createElement("span", {
|
|
19964
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$
|
|
19988
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$l['country-selector__flag'])
|
|
19965
19989
|
}), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)))))));
|
|
19966
19990
|
};
|
|
19967
19991
|
|
|
@@ -20038,7 +20062,7 @@ const PhoneField = _ref => {
|
|
|
20038
20062
|
}
|
|
20039
20063
|
};
|
|
20040
20064
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
20041
|
-
className: styles$
|
|
20065
|
+
className: styles$m['phone-field']
|
|
20042
20066
|
}, !disabledCountry && React__default.createElement(CountrySelector, {
|
|
20043
20067
|
country: selectedCountry,
|
|
20044
20068
|
onChange: handleCountryChange,
|
|
@@ -20050,19 +20074,19 @@ const PhoneField = _ref => {
|
|
|
20050
20074
|
space: 4,
|
|
20051
20075
|
alignItems: "center"
|
|
20052
20076
|
}, React__default.createElement("span", {
|
|
20053
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$
|
|
20077
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$m['country-selector__flag'])
|
|
20054
20078
|
}), React__default.createElement("span", null, "+", getCountryCallingCode(selectedCountry))) : `+${getCountryCallingCode(selectedCountry)}`
|
|
20055
20079
|
}, React__default.createElement("input", _extends({}, inputProps, {
|
|
20056
20080
|
type: "tel",
|
|
20057
|
-
className: classnames(inputProps.className, styles$
|
|
20058
|
-
[styles$
|
|
20081
|
+
className: classnames(inputProps.className, styles$m['phone-field__input'], {
|
|
20082
|
+
[styles$m['phone-field__input--with-square-borders']]: !disabledCountry
|
|
20059
20083
|
}),
|
|
20060
20084
|
onChange: handlePhoneChange,
|
|
20061
20085
|
onBlur: handlePhoneBlur
|
|
20062
20086
|
})))));
|
|
20063
20087
|
};
|
|
20064
20088
|
|
|
20065
|
-
var styles$
|
|
20089
|
+
var styles$k = {"color-overlay":"_LTVgG","color-overlay__color-display-container":"_R1mls","color-overlay__color-display-circle":"_M-8rP","color-overlay__color-display-circle--selected":"_o92fv","color-overlay__color-display-circle--focused":"_QBSCQ","color-overlay__custom-color":"_iQoTb"};
|
|
20066
20090
|
|
|
20067
20091
|
const SEQUENTIAL_COLORS = ['seq-18', 'seq-4', 'seq-7', 'seq-16', 'seq-12', 'seq-6', 'seq-9', 'seq-3', 'seq-11', 'seq-1', 'seq-13', 'seq-10', 'seq-14', 'seq-8', 'seq-19', 'seq-20', 'seq-2', 'seq-17', 'seq-15', 'seq-5'];
|
|
20068
20092
|
|
|
@@ -20276,7 +20300,7 @@ const OverlayContent = ({
|
|
|
20276
20300
|
return React__default.createElement("div", {
|
|
20277
20301
|
style: overlayStyle,
|
|
20278
20302
|
ref: overlayRef,
|
|
20279
|
-
className: styles$
|
|
20303
|
+
className: styles$k['color-overlay'],
|
|
20280
20304
|
role: "dialog"
|
|
20281
20305
|
}, SEQUENTIAL_COLORS.map((color, index) => React__default.createElement(ColorDisplay, {
|
|
20282
20306
|
key: color,
|
|
@@ -20286,7 +20310,7 @@ const OverlayContent = ({
|
|
|
20286
20310
|
onClick: () => onSelect(color),
|
|
20287
20311
|
onHover: () => setSelectedColorIndex(null)
|
|
20288
20312
|
})), allowCustomColor && React__default.createElement("div", {
|
|
20289
|
-
className: styles$
|
|
20313
|
+
className: styles$k['color-overlay__custom-color']
|
|
20290
20314
|
}, React__default.createElement(Button, {
|
|
20291
20315
|
ref: customButtonRef,
|
|
20292
20316
|
size: "full-width",
|
|
@@ -20300,12 +20324,12 @@ const ColorDisplay = ({
|
|
|
20300
20324
|
onClick,
|
|
20301
20325
|
onHover
|
|
20302
20326
|
}) => React__default.createElement("button", {
|
|
20303
|
-
className: styles$
|
|
20327
|
+
className: styles$k['color-overlay__color-display-container'],
|
|
20304
20328
|
onClick: () => onClick(color)
|
|
20305
20329
|
}, React__default.createElement("div", {
|
|
20306
|
-
className: classnames(styles$
|
|
20307
|
-
[styles$
|
|
20308
|
-
[styles$
|
|
20330
|
+
className: classnames(styles$k['color-overlay__color-display-circle'], {
|
|
20331
|
+
[styles$k['color-overlay__color-display-circle--selected']]: isSelected,
|
|
20332
|
+
[styles$k['color-overlay__color-display-circle--focused']]: isFocused
|
|
20309
20333
|
}),
|
|
20310
20334
|
onMouseEnter: onHover,
|
|
20311
20335
|
style: {
|
|
@@ -20313,13 +20337,13 @@ const ColorDisplay = ({
|
|
|
20313
20337
|
}
|
|
20314
20338
|
}));
|
|
20315
20339
|
|
|
20316
|
-
var styles$
|
|
20340
|
+
var styles$j = {"color-swatch":"_UUuiJ"};
|
|
20317
20341
|
|
|
20318
20342
|
const ColorSwatch = ({
|
|
20319
20343
|
color
|
|
20320
20344
|
}) => {
|
|
20321
20345
|
return React__default.createElement("div", {
|
|
20322
|
-
className: styles$
|
|
20346
|
+
className: styles$j['color-swatch'],
|
|
20323
20347
|
style: {
|
|
20324
20348
|
backgroundColor: color
|
|
20325
20349
|
}
|
|
@@ -20399,7 +20423,7 @@ const findSeqTokenByHex = value => {
|
|
|
20399
20423
|
return SEQUENTIAL_COLORS.find(token => normalizeHex(SEQUENTIAL_COLOR_CODES.light[token]) === target || normalizeHex(SEQUENTIAL_COLOR_CODES.dark[token]) === target);
|
|
20400
20424
|
};
|
|
20401
20425
|
|
|
20402
|
-
var styles$
|
|
20426
|
+
var styles$i = {"custom-color-picker":"_OHgPk"};
|
|
20403
20427
|
|
|
20404
20428
|
/**
|
|
20405
20429
|
* A visually hidden native color input. It is kept mounted on the field (not
|
|
@@ -20450,12 +20474,12 @@ const CustomColorPicker = forwardRef(({
|
|
|
20450
20474
|
type: "color",
|
|
20451
20475
|
"aria-hidden": "true",
|
|
20452
20476
|
tabIndex: -1,
|
|
20453
|
-
className: styles$
|
|
20477
|
+
className: styles$i['custom-color-picker'],
|
|
20454
20478
|
defaultValue: safeColor
|
|
20455
20479
|
});
|
|
20456
20480
|
});
|
|
20457
20481
|
|
|
20458
|
-
var styles$
|
|
20482
|
+
var styles$h = {"color-field":"_KJawn"};
|
|
20459
20483
|
|
|
20460
20484
|
const ColorFieldElement = (props, ref) => {
|
|
20461
20485
|
const {
|
|
@@ -20493,7 +20517,7 @@ const ColorFieldElement = (props, ref) => {
|
|
|
20493
20517
|
(_customPickerRef$curr = customPickerRef.current) == null || _customPickerRef$curr.open();
|
|
20494
20518
|
};
|
|
20495
20519
|
return React__default.createElement(Fragment, null, React__default.createElement("div", {
|
|
20496
|
-
className: styles$
|
|
20520
|
+
className: styles$h['color-field']
|
|
20497
20521
|
}, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
20498
20522
|
prefix: React__default.createElement(ColorSwatch, {
|
|
20499
20523
|
color: getCurrentColor()
|
|
@@ -20592,73 +20616,19 @@ const lastOfMonth = () => {
|
|
|
20592
20616
|
|
|
20593
20617
|
const isValidPhoneNumber = value => !value || isValidPhoneNumber$1(value);
|
|
20594
20618
|
|
|
20595
|
-
var styles$
|
|
20596
|
-
|
|
20597
|
-
var styles$g = {"avatar-image":"_iDN1j"};
|
|
20619
|
+
var styles$g = {"avatar":"_V1U8v","avatar__container":"_peAaI","avatar--loading":"_vQa4v","avatar-shimmer":"_rw4zM","avatar--small":"_9g-tn","avatar__badge":"_uViot","avatar--medium":"_vNXJW","avatar--large":"_9ZKAB","avatar--extra-large":"_uv14Y"};
|
|
20598
20620
|
|
|
20599
20621
|
const AvatarImage = ({
|
|
20600
20622
|
url,
|
|
20601
|
-
color,
|
|
20602
20623
|
alt: _alt = 'Profile',
|
|
20603
|
-
onImageFallbackError
|
|
20604
|
-
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20608
|
-
|
|
20609
|
-
|
|
20610
|
-
|
|
20611
|
-
setHasImageError(true);
|
|
20612
|
-
onImageFallbackError();
|
|
20613
|
-
}
|
|
20614
|
-
});
|
|
20615
|
-
}
|
|
20616
|
-
return React__default.createElement("div", {
|
|
20617
|
-
className: styles$g['avatar-image']
|
|
20618
|
-
}, React__default.createElement(IconUser, {
|
|
20619
|
-
size: "flexible",
|
|
20620
|
-
color: color,
|
|
20621
|
-
variant: "solid"
|
|
20622
|
-
}));
|
|
20623
|
-
};
|
|
20624
|
-
|
|
20625
|
-
const PROFILE_IMAGES = [{
|
|
20626
|
-
backgroundColor: '#EAD3E3',
|
|
20627
|
-
avatarColor: '#AA6589'
|
|
20628
|
-
}, {
|
|
20629
|
-
backgroundColor: '#F4F6FC',
|
|
20630
|
-
avatarColor: '#9EA9D3'
|
|
20631
|
-
}, {
|
|
20632
|
-
backgroundColor: '#FBEBE6',
|
|
20633
|
-
avatarColor: '#F3A097'
|
|
20634
|
-
}, {
|
|
20635
|
-
backgroundColor: '#F7FAF2',
|
|
20636
|
-
avatarColor: '#BBCA94'
|
|
20637
|
-
}, {
|
|
20638
|
-
backgroundColor: '#E1F3EF',
|
|
20639
|
-
avatarColor: '#8DC3B9'
|
|
20640
|
-
}, {
|
|
20641
|
-
backgroundColor: '#F2DCBD',
|
|
20642
|
-
avatarColor: '#A98146'
|
|
20643
|
-
}, {
|
|
20644
|
-
backgroundColor: '#AA6589',
|
|
20645
|
-
avatarColor: '#EAD3E3'
|
|
20646
|
-
}, {
|
|
20647
|
-
backgroundColor: '#9EA9D3',
|
|
20648
|
-
avatarColor: '#F4F6FC'
|
|
20649
|
-
}, {
|
|
20650
|
-
backgroundColor: '#F3A097',
|
|
20651
|
-
avatarColor: '#FBEBE6'
|
|
20652
|
-
}, {
|
|
20653
|
-
backgroundColor: '#BBCA94',
|
|
20654
|
-
avatarColor: '#F7FAF2'
|
|
20655
|
-
}, {
|
|
20656
|
-
backgroundColor: '#8DC3B9',
|
|
20657
|
-
avatarColor: '#E1F3EF'
|
|
20658
|
-
}, {
|
|
20659
|
-
backgroundColor: '#A98146',
|
|
20660
|
-
avatarColor: '#F2DCBD'
|
|
20661
|
-
}];
|
|
20624
|
+
onImageFallbackError,
|
|
20625
|
+
onImageLoad
|
|
20626
|
+
}) => React__default.createElement("img", {
|
|
20627
|
+
src: url,
|
|
20628
|
+
alt: _alt,
|
|
20629
|
+
onError: onImageFallbackError,
|
|
20630
|
+
onLoad: onImageLoad
|
|
20631
|
+
});
|
|
20662
20632
|
|
|
20663
20633
|
let elementCallbackMap = null;
|
|
20664
20634
|
function getElementCallbackMap() {
|
|
@@ -20739,18 +20709,30 @@ function useIsVisibleInViewPort() {
|
|
|
20739
20709
|
};
|
|
20740
20710
|
}
|
|
20741
20711
|
|
|
20712
|
+
function getInitials(name) {
|
|
20713
|
+
const trimmed = name.trim();
|
|
20714
|
+
const parts = trimmed.split(/\s+/);
|
|
20715
|
+
if (parts.length >= 2) {
|
|
20716
|
+
return parts[0][0] + parts[parts.length - 1][0];
|
|
20717
|
+
}
|
|
20718
|
+
return trimmed.slice(0, 2);
|
|
20719
|
+
}
|
|
20742
20720
|
/**
|
|
20743
20721
|
* Avatar represents a person or entity — such as a company, location, department, or role — with a visual identifier. It appears wherever a person or entity's identity needs to be communicated at a glance.
|
|
20744
20722
|
*/
|
|
20745
20723
|
const Avatar = ({
|
|
20746
20724
|
children,
|
|
20747
|
-
color
|
|
20725
|
+
color,
|
|
20748
20726
|
size: _size = 'medium',
|
|
20749
20727
|
url: urlProp,
|
|
20750
20728
|
badge,
|
|
20751
20729
|
alt,
|
|
20752
20730
|
testId
|
|
20753
20731
|
}) => {
|
|
20732
|
+
// When a `color` is explicitly passed use it, otherwise fall back to the
|
|
20733
|
+
// neutral color. Keeping `color` undefined by default lets us distinguish
|
|
20734
|
+
// "caller passed a color" from "no color given".
|
|
20735
|
+
const resolvedColor = color ? getColor(color) : COLORS['surface-on-color-subtle'];
|
|
20754
20736
|
const {
|
|
20755
20737
|
isVisible,
|
|
20756
20738
|
elementRef
|
|
@@ -20765,32 +20747,47 @@ const Avatar = ({
|
|
|
20765
20747
|
}
|
|
20766
20748
|
}, [isVisible, hasBeenVisible]);
|
|
20767
20749
|
const url = hasBeenVisible ? urlProp : undefined;
|
|
20768
|
-
const [
|
|
20769
|
-
const [
|
|
20770
|
-
|
|
20771
|
-
|
|
20772
|
-
|
|
20773
|
-
|
|
20774
|
-
|
|
20750
|
+
const [prevUrl, setPrevUrl] = useState(url);
|
|
20751
|
+
const [imageLoadFailed, setImageLoadFailed] = useState(false);
|
|
20752
|
+
const [imageLoaded, setImageLoaded] = useState(false);
|
|
20753
|
+
if (url !== prevUrl) {
|
|
20754
|
+
setPrevUrl(url);
|
|
20755
|
+
setImageLoaded(false);
|
|
20756
|
+
setImageLoadFailed(false);
|
|
20757
|
+
}
|
|
20758
|
+
const isImageLoading = !!url && !imageLoadFailed && !imageLoaded;
|
|
20759
|
+
// Show a lighter grey while the image loads; fall back to the role/neutral color otherwise.
|
|
20760
|
+
const backgroundColor = url && !imageLoadFailed ? COLORS['surface-container-highest'] : resolvedColor;
|
|
20761
|
+
return React__default.createElement(AvatarContext.Provider, {
|
|
20762
|
+
value: {
|
|
20763
|
+
size: _size
|
|
20764
|
+
}
|
|
20775
20765
|
}, React__default.createElement("div", {
|
|
20776
|
-
className: classnames(styles$
|
|
20777
|
-
|
|
20778
|
-
|
|
20779
|
-
|
|
20780
|
-
|
|
20766
|
+
className: classnames(styles$g['avatar__container']),
|
|
20767
|
+
ref: elementRef,
|
|
20768
|
+
style: url && color ? {
|
|
20769
|
+
'--avatar-ring-color': resolvedColor
|
|
20770
|
+
} : undefined
|
|
20771
|
+
}, React__default.createElement("div", {
|
|
20772
|
+
className: classnames(styles$g['avatar'], {
|
|
20773
|
+
[styles$g['avatar--small']]: _size === 'small',
|
|
20774
|
+
[styles$g['avatar--medium']]: _size === 'medium',
|
|
20775
|
+
[styles$g['avatar--large']]: _size === 'large',
|
|
20776
|
+
[styles$g['avatar--extra-large']]: _size === 'extra-large',
|
|
20777
|
+
[styles$g['avatar--loading']]: isImageLoading
|
|
20781
20778
|
}),
|
|
20782
20779
|
style: {
|
|
20783
|
-
backgroundColor
|
|
20780
|
+
backgroundColor
|
|
20784
20781
|
},
|
|
20785
20782
|
"data-testid": testId
|
|
20786
|
-
},
|
|
20783
|
+
}, url && !imageLoadFailed ? React__default.createElement(AvatarImage, {
|
|
20787
20784
|
url: url,
|
|
20788
|
-
color: defaultProfilePictureColors.avatarColor,
|
|
20789
20785
|
alt: alt,
|
|
20790
|
-
onImageFallbackError: () =>
|
|
20791
|
-
|
|
20792
|
-
|
|
20793
|
-
|
|
20786
|
+
onImageFallbackError: () => setImageLoadFailed(true),
|
|
20787
|
+
onImageLoad: () => setImageLoaded(true)
|
|
20788
|
+
}) : typeof children === 'string' ? getInitials(children) : children, badge && React__default.createElement("div", {
|
|
20789
|
+
className: styles$g['avatar__badge']
|
|
20790
|
+
}, badge))));
|
|
20794
20791
|
};
|
|
20795
20792
|
|
|
20796
20793
|
const CHIP_THEME = {
|