@7shifts/sous-chef 4.13.0 → 4.14.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 +20 -53
- package/dist/index.css.map +1 -1
- package/dist/index.js +425 -421
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +600 -597
- package/dist/index.modern.js.map +1 -1
- package/dist/media/Avatar/AvatarImage/AvatarImage.d.ts +2 -2
- package/dist/media/Badge/Badge.d.ts +0 -5
- package/llms-instructions/guidelines/Avatar.guidelines.md +28 -4
- package/llms-instructions/guidelines/Badge.guidelines.md +8 -0
- package/llms-instructions/guidelines/Modal.guidelines.md +16 -0
- package/package.json +1 -1
- package/dist/media/Avatar/AvatarContext.d.ts +0 -6
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$1L = {"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$1L['flex'], extraClass, {
|
|
394
|
+
[styles$1L['align-start']]: alignItems === 'flex-start',
|
|
395
|
+
[styles$1L['align-end']]: alignItems === 'flex-end',
|
|
396
|
+
[styles$1L['align-center']]: alignItems === 'center',
|
|
397
|
+
[styles$1L['justify-start']]: justifyContent === 'start',
|
|
398
|
+
[styles$1L['justify-end']]: justifyContent === 'end',
|
|
399
|
+
[styles$1L['justify-center']]: justifyContent === 'center',
|
|
400
|
+
[styles$1L['justify-space-between']]: justifyContent === 'space-between',
|
|
401
|
+
[styles$1L['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$1L['flex__item'], {
|
|
417
|
+
[styles$1L['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$1K = {"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$1K['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$1K['toggle__switch']
|
|
475
475
|
}), label && React__default.createElement("span", {
|
|
476
|
-
className: styles$
|
|
476
|
+
className: styles$1K['toggle__label']
|
|
477
477
|
}, label)), caption && React__default.createElement("span", {
|
|
478
|
-
className: styles$
|
|
478
|
+
className: styles$1K['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$1J = {"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$1J['spinner--block']]: _block
|
|
507
507
|
})
|
|
508
508
|
}, React__default.createElement("svg", {
|
|
509
|
-
className: styles$
|
|
509
|
+
className: styles$1J['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$1J['path'], styles$1J[`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$1I = {"tooltip":"_Ydu2O"};
|
|
595
595
|
|
|
596
|
-
var styles$
|
|
596
|
+
var styles$1H = {"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$1H['tooltip-overlay'], extraClass, {
|
|
791
|
+
[styles$1H['tooltip-overlay--visible']]: isVisible,
|
|
792
|
+
[styles$1H['tooltip-overlay--black-theme']]: theme === TOOLTIP_THEME.BLACK,
|
|
793
|
+
[styles$1H['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$1H['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$1H['tooltip-overlay-arrow'], extraClass, {
|
|
803
|
+
[styles$1H['tooltip-overlay-arrow--visible']]: isVisible,
|
|
804
|
+
[styles$1H['tooltip-overlay-arrow--top']]: position.actualPlacement.placement === TOOLTIP_PLACEMENT.TOP,
|
|
805
|
+
[styles$1H['tooltip-overlay-arrow--bottom']]: position.actualPlacement.placement === TOOLTIP_PLACEMENT.BOTTOM,
|
|
806
|
+
[styles$1H['tooltip-overlay-arrow--black-theme']]: theme === TOOLTIP_THEME.BLACK,
|
|
807
|
+
[styles$1H['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$1I['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$1G = {"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$1G['button'], {
|
|
1028
|
+
[styles$1G['button--default']]: theme === BUTTON_THEMES.DEFAULT,
|
|
1029
|
+
[styles$1G['button--primary']]: theme === BUTTON_THEMES.PRIMARY,
|
|
1030
|
+
[styles$1G['button--danger']]: theme === BUTTON_THEMES.DANGER,
|
|
1031
|
+
[styles$1G['button--upsell']]: theme === BUTTON_THEMES.UPSELL,
|
|
1032
|
+
[styles$1G['button--marketing']]: theme === BUTTON_THEMES.MARKETING,
|
|
1033
|
+
[styles$1G['button--hollow']]: theme === BUTTON_THEMES.HOLLOW,
|
|
1034
|
+
[styles$1G['button--hollow-contrast']]: theme === BUTTON_THEMES.HOLLOW_CONTRAST,
|
|
1035
|
+
[styles$1G['button--link-primary']]: theme === BUTTON_THEMES.LINK_PRIMARY,
|
|
1036
|
+
[styles$1G['button--link-danger']]: theme === BUTTON_THEMES.LINK_DANGER,
|
|
1037
|
+
[styles$1G['button--link-upsell']]: theme === BUTTON_THEMES.LINK_UPSELL,
|
|
1038
|
+
[styles$1G['button--link-toolbar']]: theme === BUTTON_THEMES.LINK_TOOLBAR,
|
|
1039
|
+
[styles$1G['button--link-contrast']]: theme === BUTTON_THEMES.LINK_CONTRAST,
|
|
1040
|
+
[styles$1G['button--link-icon']]: theme === BUTTON_THEMES.LINK_ICON,
|
|
1041
|
+
[styles$1G['button--loading']]: loading,
|
|
1042
|
+
[styles$1G['button--icon-only']]: isIconOnly,
|
|
1043
|
+
[styles$1G['button--size-min-width-100']]: size === BUTTON_SIZES.MIN_WIDTH_100,
|
|
1044
|
+
[styles$1G['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$1G['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$1G['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$1F = {"pagination-controls":"_S1co-"};
|
|
10360
10360
|
|
|
10361
|
-
var styles$
|
|
10361
|
+
var styles$1E = {"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$1E['keyboard-key'], {
|
|
10369
|
+
[styles$1E['keyboard-key--light']]: _theme === 'light'
|
|
10370
10370
|
})
|
|
10371
10371
|
}, React__default.createElement("span", {
|
|
10372
|
-
className: styles$
|
|
10372
|
+
className: styles$1E['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$1F['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$1D = {"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$1D['link'], {
|
|
10639
|
+
[styles$1D['link--primary']]: theme === LINK_THEME.PRIMARY,
|
|
10640
|
+
[styles$1D['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$1C = {"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$1C['dropdown-pane'], {
|
|
10799
|
+
[styles$1C['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$1B = {"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$1A = {"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$1A['label'], {
|
|
10891
|
+
[styles$1A['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$1z = {"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$1z['caption']
|
|
10912
10912
|
}, children);
|
|
10913
10913
|
};
|
|
10914
10914
|
|
|
10915
|
-
var styles$
|
|
10915
|
+
var styles$1y = {"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$1y['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$1x = {"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$1x['text'], {
|
|
10992
|
+
[styles$1x['text--bold']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.BOLD),
|
|
10993
|
+
[styles$1x['text--italic']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.ITALIC),
|
|
10994
|
+
[styles$1x['text--underline']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.UNDERLINE),
|
|
10995
|
+
[styles$1x['text--dotted-underline']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.DOTTED_UNDERLINE),
|
|
10996
|
+
[styles$1x['text--monospace']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.MONOSPACE),
|
|
10997
|
+
[styles$1x['text--line-through']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.STRIKETHROUGH),
|
|
10998
|
+
[styles$1x['text--align-left']]: alignment === ALIGNMENTS.LEFT,
|
|
10999
|
+
[styles$1x['text--align-right']]: alignment === ALIGNMENTS.RIGHT,
|
|
11000
|
+
[styles$1x['text--align-center']]: alignment === ALIGNMENTS.CENTER,
|
|
11001
|
+
[styles$1x['text--align-justify']]: alignment === ALIGNMENTS.JUSTIFY,
|
|
11002
|
+
[styles$1x['text__body']]: as === TEXT_TYPES.BODY,
|
|
11003
|
+
[styles$1x['text__insight']]: as === TEXT_TYPES.INSIGHT,
|
|
11004
|
+
[styles$1x['text__caption']]: as === TEXT_TYPES.CAPTION,
|
|
11005
|
+
[styles$1x['text__span']]: as === TEXT_TYPES.SPAN,
|
|
11006
|
+
[styles$1x['text__paragraph']]: as === TEXT_TYPES.PARAGRAPH,
|
|
11007
|
+
[styles$1x['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$1x['text--bold'], styles$1x['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$1x['text--underline'], styles$1x['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$1x['text--italic'], styles$1x['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$1w = {"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$1w['text-field'], {
|
|
11219
|
+
[styles$1w['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$1v = {"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$1v['affix-container'], {
|
|
11286
|
+
[styles$1v['affix-container--prefixed']]: hasPrefix,
|
|
11287
|
+
[styles$1v['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$1v['prefix'],
|
|
11295
11295
|
ref: prefixElement
|
|
11296
11296
|
}, prefix), children, hasSuffix && React__default.createElement("div", {
|
|
11297
|
-
className: styles$
|
|
11297
|
+
className: styles$1v['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$1B['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$1u = {"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$1t = {"dropdown-list-divider":"_ISJ4M"};
|
|
11684
11684
|
|
|
11685
|
-
var styles$
|
|
11685
|
+
var styles$1s = {"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$1s['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$1t['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$1r = {"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$1q = {"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$1q['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$1r['dropdown-list-item__container']
|
|
11928
11928
|
}, prefix && React__default.createElement("div", {
|
|
11929
|
-
className: styles$
|
|
11929
|
+
className: styles$1r['dropdown-list-item__prefix']
|
|
11930
11930
|
}, prefix), React__default.createElement("div", {
|
|
11931
|
-
className: styles$
|
|
11931
|
+
className: styles$1r['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$1r['dropdown-list-item__caption']
|
|
11937
11937
|
}, caption))), (suffix || submenu) && React__default.createElement("div", {
|
|
11938
|
-
className: styles$
|
|
11938
|
+
className: styles$1r['dropdown-list-item__suffix']
|
|
11939
11939
|
}, suffix && _openSubmenuOnSuffixClick && submenu ? React__default.createElement("button", {
|
|
11940
|
-
className: styles$
|
|
11940
|
+
className: styles$1r['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$1r['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$1r['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$1r['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$1r['dropdown-list-item'], {
|
|
11972
|
+
[styles$1r['dropdown-list-item--selected']]: selected,
|
|
11973
|
+
[styles$1r['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$1u['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$1u['dropdown-list__item'], {
|
|
12129
|
+
[styles$1u['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$1p = {"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$1p['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$1p['card__body'], styles$1p['card__body--interactive'], {
|
|
12196
|
+
[styles$1p['card__body--disabled']]: disabled,
|
|
12197
|
+
[styles$1p['card__body--focus']]: isSelected,
|
|
12198
|
+
[styles$1p['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$1p['card__body'], {
|
|
12206
|
+
[styles$1p['card__body--disabled']]: disabled,
|
|
12207
|
+
[styles$1p['card__body--focus']]: isSelected,
|
|
12208
|
+
[styles$1p['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$1p['card__kebab'], {
|
|
12213
|
+
[styles$1p['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$1p['card__close'], {
|
|
12223
|
+
[styles$1p['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$1o = {"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$1o['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$1o['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$1n = {"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$1n['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$1n['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$1m = {"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$1m['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$1l = {"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$1l['page'], {
|
|
12363
|
+
[styles$1l['page--restricted']]: _size === PAGE_SIZES.RESTRICTED,
|
|
12364
|
+
[styles$1l['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$1k = {"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$1j = {"menu-item":"_SebbU","menu-item--active":"_CDEVl","menu-item--with-badge":"_VudDE","menu-item__badge":"_vErBS"};
|
|
12388
12388
|
|
|
12389
|
-
var styles$
|
|
12389
|
+
var styles$1i = {"badge":"_RXV4h","badge--warning":"_2An1I","badge--danger":"_-Bw8L","badge--success":"_RxlMz","badge--info":"_dzCH-","badge--numeric":"_Ix9tP"};
|
|
12390
12390
|
|
|
12391
|
-
var styles$
|
|
12391
|
+
var styles$1h = {"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$1g = {"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$1g['modal-header'], {
|
|
12458
|
+
[styles$1g['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$1g['modal-header__top-bar'], {
|
|
12464
|
+
[styles$1g['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$1g['modal-header__header']
|
|
12475
12475
|
}, header), subHeader && React__default.createElement("div", {
|
|
12476
|
-
className: styles$
|
|
12476
|
+
className: styles$1g['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$1f = {"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$1f['tab-zone'], {
|
|
12509
|
+
[styles$1f['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$1h['overlay'], draggable && styles$1h['overlay--draggable']),
|
|
12692
|
+
afterOpen: styles$1h['overlay--after-open'],
|
|
12693
|
+
beforeClose: styles$1h['overlay--before-close']
|
|
12694
12694
|
},
|
|
12695
12695
|
className: {
|
|
12696
|
-
base: classnames(styles$
|
|
12697
|
-
afterOpen: styles$
|
|
12698
|
-
beforeClose: styles$
|
|
12696
|
+
base: classnames(styles$1h['content'], draggable && styles$1h['content--draggable'], tabList && styles$1h['content--with-tab-list']),
|
|
12697
|
+
afterOpen: styles$1h['content--after-open'],
|
|
12698
|
+
beforeClose: styles$1h['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$1h['draggable-inner'], {
|
|
12708
|
+
[styles$1h['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$1e = {"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$1e['modal-body'], {
|
|
12734
|
+
[styles$1e['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$1e['modal-body__inner-div']
|
|
12740
12740
|
}, children));
|
|
12741
12741
|
};
|
|
12742
12742
|
|
|
12743
|
-
var styles$
|
|
12743
|
+
var styles$1d = {"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$1d['modal-footer'], {
|
|
12809
|
+
[styles$1d['modal-footer--with-shadow']]: hasScrollBottom,
|
|
12810
|
+
[styles$1d['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$1c = {"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$1b = {"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$1b.day_highlight, styles$1b[`shape-${shape}`], styles$1b[`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$1a = {"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$1a['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$1a['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$1a['calendar-highlights__shape'], styles$1a['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$1a['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$1a['calendar-highlights__shape'], styles$1a['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$1a['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$1a['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$1a['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$1a['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$1c['calendar']
|
|
13338
13338
|
}, React__default.createElement("div", {
|
|
13339
|
-
className: styles$
|
|
13339
|
+
className: styles$1c['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$19 = {"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$19['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$19['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$19['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$18 = {"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$18['hint-modal'],
|
|
13565
|
+
afterOpen: styles$18['hint-modal--after-open'],
|
|
13566
|
+
beforeClose: styles$18['hint-modal--before-close']
|
|
13567
13567
|
},
|
|
13568
|
-
overlayClassName: styles$
|
|
13568
|
+
overlayClassName: styles$18['hint-modal__overlay']
|
|
13569
13569
|
}, React__default.createElement("div", {
|
|
13570
|
-
className: styles$
|
|
13570
|
+
className: styles$18['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$18['hint-modal__image'],
|
|
13576
13576
|
src: mediaUrl,
|
|
13577
13577
|
alt: String(header)
|
|
13578
13578
|
}), React__default.createElement("div", {
|
|
13579
|
-
className: styles$
|
|
13579
|
+
className: styles$18['hint-modal__body']
|
|
13580
13580
|
}, React__default.createElement(Stack, {
|
|
13581
13581
|
justifyContent: "space-between"
|
|
13582
13582
|
}, React__default.createElement(Stack, {
|
|
@@ -13631,60 +13631,36 @@ const useModalPosition = (modalWidth = 566, modalHeight = 360) => {
|
|
|
13631
13631
|
return [position, updatePosition];
|
|
13632
13632
|
};
|
|
13633
13633
|
|
|
13634
|
-
const
|
|
13635
|
-
size: null
|
|
13636
|
-
});
|
|
13637
|
-
const useAvatarContext = () => {
|
|
13638
|
-
return useContext(AvatarContext);
|
|
13639
|
-
};
|
|
13640
|
-
|
|
13641
|
-
const _excluded$bh = ["children", "theme", "title", "size", "testId"];
|
|
13634
|
+
const _excluded$bh = ["children", "theme", "title", "testId"];
|
|
13642
13635
|
const BadgeElement = (_ref, forwardedRef) => {
|
|
13643
13636
|
let {
|
|
13644
13637
|
children,
|
|
13645
13638
|
theme,
|
|
13646
13639
|
title,
|
|
13647
|
-
size: sizeProp = 'default',
|
|
13648
13640
|
testId
|
|
13649
13641
|
} = _ref,
|
|
13650
13642
|
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$bh);
|
|
13651
13643
|
const internalRef = useRef(null);
|
|
13652
13644
|
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';
|
|
13660
13645
|
useLayoutEffect(() => {
|
|
13661
|
-
if (typeof ref
|
|
13662
|
-
|
|
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 = '';
|
|
13646
|
+
if (typeof ref !== 'function' && ref.current && React__default.isValidElement(children) && typeof (children == null ? void 0 : children.type) !== 'string' && typeof (children == null ? void 0 : children.type) !== 'number') {
|
|
13647
|
+
ref.current.style.height = ref.current.offsetWidth + 'px';
|
|
13668
13648
|
}
|
|
13669
13649
|
});
|
|
13670
13650
|
return React__default.createElement(Tooltip, {
|
|
13671
13651
|
overlay: title,
|
|
13672
13652
|
ref: ref
|
|
13673
13653
|
}, React__default.createElement("div", _extends({
|
|
13674
|
-
className: classnames(styles$
|
|
13675
|
-
[styles$
|
|
13676
|
-
[styles$
|
|
13677
|
-
[styles$
|
|
13678
|
-
[styles$
|
|
13679
|
-
[styles$
|
|
13680
|
-
[styles$1h['badge--dot']]: isDot,
|
|
13681
|
-
[styles$1h['badge--with-border']]: withBorder
|
|
13654
|
+
className: classnames(styles$1i['badge'], {
|
|
13655
|
+
[styles$1i['badge--success']]: theme === 'success',
|
|
13656
|
+
[styles$1i['badge--danger']]: theme === 'danger',
|
|
13657
|
+
[styles$1i['badge--info']]: theme === 'info',
|
|
13658
|
+
[styles$1i['badge--warning']]: theme === 'warning',
|
|
13659
|
+
[styles$1i['badge--numeric']]: Number.isFinite(children)
|
|
13682
13660
|
}),
|
|
13683
13661
|
ref: ref,
|
|
13684
13662
|
"data-testid": testId
|
|
13685
|
-
}, otherProps),
|
|
13686
|
-
size: 'small'
|
|
13687
|
-
}) : children));
|
|
13663
|
+
}, otherProps), children));
|
|
13688
13664
|
};
|
|
13689
13665
|
/**
|
|
13690
13666
|
* Badge is a small circular indicator used to draw attention to something associated with another element — a count, a status, or a quick action.
|
|
@@ -13695,28 +13671,28 @@ const MenuItem = ({
|
|
|
13695
13671
|
menu
|
|
13696
13672
|
}) => {
|
|
13697
13673
|
return React__default.createElement("li", {
|
|
13698
|
-
className: classnames(styles$
|
|
13699
|
-
[styles$
|
|
13674
|
+
className: classnames(styles$1j['menu-item'], {
|
|
13675
|
+
[styles$1j['menu-item--with-badge']]: !!menu.suffix
|
|
13700
13676
|
})
|
|
13701
13677
|
}, menu.reloadDocument ? React__default.createElement("a", {
|
|
13702
13678
|
href: menu.to,
|
|
13703
13679
|
className: classnames({
|
|
13704
|
-
[styles$
|
|
13680
|
+
[styles$1j['menu-item--active']]: menu.isActive
|
|
13705
13681
|
})
|
|
13706
13682
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
13707
|
-
className: styles$
|
|
13683
|
+
className: styles$1j['menu-item__badge']
|
|
13708
13684
|
}, React__default.createElement(Badge, null, menu.suffix))) : React__default.createElement(NavLink, {
|
|
13709
13685
|
to: menu.to,
|
|
13710
13686
|
// @ts-expect-error This is only available on v5
|
|
13711
|
-
activeClassName: styles$
|
|
13687
|
+
activeClassName: styles$1j['menu-item--active'],
|
|
13712
13688
|
className: ({
|
|
13713
13689
|
isActive
|
|
13714
13690
|
}) => {
|
|
13715
|
-
return isActive ? styles$
|
|
13691
|
+
return isActive ? styles$1j['menu-item--active'] : '';
|
|
13716
13692
|
},
|
|
13717
13693
|
exact: true
|
|
13718
13694
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
13719
|
-
className: styles$
|
|
13695
|
+
className: styles$1j['menu-item__badge']
|
|
13720
13696
|
}, React__default.createElement(Badge, null, menu.suffix))));
|
|
13721
13697
|
};
|
|
13722
13698
|
|
|
@@ -13727,9 +13703,9 @@ const PageLayout = ({
|
|
|
13727
13703
|
sideNavContent
|
|
13728
13704
|
}) => {
|
|
13729
13705
|
return React__default.createElement("div", {
|
|
13730
|
-
className: styles$
|
|
13706
|
+
className: styles$1k['page-layout']
|
|
13731
13707
|
}, React__default.createElement("div", {
|
|
13732
|
-
className: styles$
|
|
13708
|
+
className: styles$1k['page-layout__nav-container']
|
|
13733
13709
|
}, React__default.createElement(Stack, {
|
|
13734
13710
|
space: 12
|
|
13735
13711
|
}, React__default.createElement(Text, {
|
|
@@ -13738,14 +13714,14 @@ const PageLayout = ({
|
|
|
13738
13714
|
ml: 20,
|
|
13739
13715
|
mr: 35
|
|
13740
13716
|
}, title), React__default.createElement("ul", {
|
|
13741
|
-
className: styles$
|
|
13717
|
+
className: styles$1k['page-layout__nav-list']
|
|
13742
13718
|
}, menu.filter(menu => !('isVisible' in menu) || (menu == null ? void 0 : menu.isVisible) === true).map((menuItem, index) => React__default.createElement(MenuItem, {
|
|
13743
13719
|
key: menuItem.name || index,
|
|
13744
13720
|
menu: menuItem
|
|
13745
13721
|
}))), sideNavContent && React__default.createElement("div", {
|
|
13746
|
-
className: styles$
|
|
13722
|
+
className: styles$1k['page-layout__side-nav-content']
|
|
13747
13723
|
}, sideNavContent))), React__default.createElement("div", {
|
|
13748
|
-
className: styles$
|
|
13724
|
+
className: styles$1k['page-layout__content']
|
|
13749
13725
|
}, children));
|
|
13750
13726
|
};
|
|
13751
13727
|
|
|
@@ -13755,7 +13731,7 @@ const TOAST_THEME = {
|
|
|
13755
13731
|
};
|
|
13756
13732
|
const TOAST_CONTAINER_ID = 'sous-chef-toast';
|
|
13757
13733
|
|
|
13758
|
-
var styles$
|
|
13734
|
+
var styles$17 = {"toast":"_iSC5P","toast--danger":"_OWpOG","toast__text":"_4JJwF"};
|
|
13759
13735
|
|
|
13760
13736
|
const toast = (text, theme = TOAST_THEME.DEFAULT, options = {}) => {
|
|
13761
13737
|
if (typeof text !== 'string') {
|
|
@@ -13772,8 +13748,8 @@ const toast = (text, theme = TOAST_THEME.DEFAULT, options = {}) => {
|
|
|
13772
13748
|
onActionClick: onActionClick
|
|
13773
13749
|
}) : text;
|
|
13774
13750
|
toast$1(content, _extends({
|
|
13775
|
-
className: classnames(styles$
|
|
13776
|
-
[styles$
|
|
13751
|
+
className: classnames(styles$17['toast'], {
|
|
13752
|
+
[styles$17['toast--danger']]: theme === TOAST_THEME.DANGER
|
|
13777
13753
|
}),
|
|
13778
13754
|
containerId: TOAST_CONTAINER_ID
|
|
13779
13755
|
}, options));
|
|
@@ -13799,7 +13775,7 @@ const ToastBodyWithAction = ({
|
|
|
13799
13775
|
const ToastContainer = ({
|
|
13800
13776
|
containerId: _containerId = TOAST_CONTAINER_ID
|
|
13801
13777
|
}) => React__default.createElement(ToastContainer$1, {
|
|
13802
|
-
bodyClassName: styles$
|
|
13778
|
+
bodyClassName: styles$17['toast__text'],
|
|
13803
13779
|
hideProgressBar: true,
|
|
13804
13780
|
draggable: false,
|
|
13805
13781
|
transition: Slide,
|
|
@@ -13874,7 +13850,7 @@ const SousChefProvider = ({
|
|
|
13874
13850
|
}, React__default.createElement(ToastContainer, null), children));
|
|
13875
13851
|
};
|
|
13876
13852
|
|
|
13877
|
-
var styles$
|
|
13853
|
+
var styles$16 = {"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"};
|
|
13878
13854
|
|
|
13879
13855
|
const SORT_ORDER = {
|
|
13880
13856
|
ASC: 'asc',
|
|
@@ -14060,7 +14036,7 @@ const DataTableHeader = ({
|
|
|
14060
14036
|
},
|
|
14061
14037
|
id: `${tableId}-header`
|
|
14062
14038
|
}, React__default.createElement("tr", {
|
|
14063
|
-
className: styles$
|
|
14039
|
+
className: styles$16['data-table-header']
|
|
14064
14040
|
}, columns.filter(column => !column.hidden).map(column => {
|
|
14065
14041
|
const isSortable = column.isSortable;
|
|
14066
14042
|
const sortDir = column.currentSort;
|
|
@@ -14068,8 +14044,8 @@ const DataTableHeader = ({
|
|
|
14068
14044
|
const hasDescription = !!column.description;
|
|
14069
14045
|
return React__default.createElement("th", {
|
|
14070
14046
|
className: classnames({
|
|
14071
|
-
[styles$
|
|
14072
|
-
[styles$
|
|
14047
|
+
[styles$16['data-table-header__item']]: true,
|
|
14048
|
+
[styles$16['data-table-header__item--sortable']]: isSortable
|
|
14073
14049
|
}),
|
|
14074
14050
|
style: {
|
|
14075
14051
|
flex: column.size || 1,
|
|
@@ -14081,18 +14057,18 @@ const DataTableHeader = ({
|
|
|
14081
14057
|
role: "columnheader",
|
|
14082
14058
|
tabIndex: 0
|
|
14083
14059
|
}, React__default.createElement("div", {
|
|
14084
|
-
className: classnames(styles$
|
|
14085
|
-
[styles$
|
|
14060
|
+
className: classnames(styles$16['data-table-header__item-content'], {
|
|
14061
|
+
[styles$16['data-table-header__item-content--right-align']]: isRightAligned
|
|
14086
14062
|
}, {
|
|
14087
|
-
[styles$
|
|
14063
|
+
[styles$16['data-table-header__item-content--has-description']]: hasDescription
|
|
14088
14064
|
})
|
|
14089
14065
|
}, wrapWithTooltip(column), isSortable && React__default.createElement("span", {
|
|
14090
|
-
className: styles$
|
|
14066
|
+
className: styles$16['data-table-header__sort-icon']
|
|
14091
14067
|
}, React__default.createElement(HeaderSortIcon, {
|
|
14092
14068
|
sortDirection: sortDir
|
|
14093
14069
|
}))));
|
|
14094
14070
|
}), showActionMenu && React__default.createElement("th", {
|
|
14095
|
-
className: classnames(styles$
|
|
14071
|
+
className: classnames(styles$16['data-table-header__item'], styles$16['data-table-header__item--action'])
|
|
14096
14072
|
}))));
|
|
14097
14073
|
};
|
|
14098
14074
|
const wrapWithTooltip = column => {
|
|
@@ -14106,9 +14082,9 @@ const wrapWithTooltip = column => {
|
|
|
14106
14082
|
return column.label;
|
|
14107
14083
|
};
|
|
14108
14084
|
|
|
14109
|
-
var styles$
|
|
14085
|
+
var styles$15 = {"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"};
|
|
14110
14086
|
|
|
14111
|
-
var styles$
|
|
14087
|
+
var styles$14 = {"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"};
|
|
14112
14088
|
|
|
14113
14089
|
const useTableHeaderHeight = isShowingColumns => {
|
|
14114
14090
|
const {
|
|
@@ -14160,10 +14136,10 @@ const DataTableScrollFakeBorder = ({
|
|
|
14160
14136
|
const hasFixedScroll = useDetectFixedScroll();
|
|
14161
14137
|
const backgroundColor = useBackgroundColor();
|
|
14162
14138
|
return React__default.createElement("div", {
|
|
14163
|
-
className: classnames(styles$
|
|
14164
|
-
[styles$
|
|
14165
|
-
[styles$
|
|
14166
|
-
[styles$
|
|
14139
|
+
className: classnames(styles$14['data-table-scroll-fake-border'], {
|
|
14140
|
+
[styles$14['data-table-scroll-fake-border--top']]: placement === 'top',
|
|
14141
|
+
[styles$14['data-table-scroll-fake-border--bottom']]: placement === 'bottom',
|
|
14142
|
+
[styles$14['data-table-scroll-fake-border--fixed-scroll']]: hasFixedScroll
|
|
14167
14143
|
}),
|
|
14168
14144
|
style: {
|
|
14169
14145
|
// @ts-expect-error This difines a custom CSS variable
|
|
@@ -14171,14 +14147,14 @@ const DataTableScrollFakeBorder = ({
|
|
|
14171
14147
|
top: placement === 'top' ? headerHeight : undefined
|
|
14172
14148
|
}
|
|
14173
14149
|
}, React__default.createElement("div", {
|
|
14174
|
-
className: classnames(styles$
|
|
14175
|
-
[styles$
|
|
14176
|
-
[styles$
|
|
14150
|
+
className: classnames(styles$14['data-table-scroll-fake-border__left'], {
|
|
14151
|
+
[styles$14['data-table-scroll-fake-border__left--top']]: placement === 'top',
|
|
14152
|
+
[styles$14['data-table-scroll-fake-border__left--bottom']]: placement === 'bottom'
|
|
14177
14153
|
})
|
|
14178
14154
|
}), React__default.createElement("div", {
|
|
14179
|
-
className: classnames(styles$
|
|
14180
|
-
[styles$
|
|
14181
|
-
[styles$
|
|
14155
|
+
className: classnames(styles$14['data-table-scroll-fake-border__right'], {
|
|
14156
|
+
[styles$14['data-table-scroll-fake-border__right--top']]: placement === 'top',
|
|
14157
|
+
[styles$14['data-table-scroll-fake-border__right--bottom']]: placement === 'bottom'
|
|
14182
14158
|
}),
|
|
14183
14159
|
"data-background-color": "red"
|
|
14184
14160
|
}));
|
|
@@ -14196,7 +14172,7 @@ const BUTTON_THEME = {
|
|
|
14196
14172
|
UPSELL: 'upsell'
|
|
14197
14173
|
};
|
|
14198
14174
|
|
|
14199
|
-
var styles$
|
|
14175
|
+
var styles$13 = {"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"};
|
|
14200
14176
|
|
|
14201
14177
|
/** Infers theme prop for Sous Chef Button CTAs if not explicitly passed, default is hollow, primaryCTA is Upsell if banner theme is Upsell*/
|
|
14202
14178
|
const ButtonCTA$1 = ({
|
|
@@ -14217,7 +14193,7 @@ const ButtonCTA$1 = ({
|
|
|
14217
14193
|
}, button.props));
|
|
14218
14194
|
};
|
|
14219
14195
|
|
|
14220
|
-
var styles$
|
|
14196
|
+
var styles$12 = {"banner__caption":"_S--Ce"};
|
|
14221
14197
|
|
|
14222
14198
|
const InlineBannerCTA = ({
|
|
14223
14199
|
primaryButton,
|
|
@@ -14249,7 +14225,7 @@ const InlineBannerCTA = ({
|
|
|
14249
14225
|
bannerTheme: bannerTheme,
|
|
14250
14226
|
primaryCTA: true
|
|
14251
14227
|
})), caption && multiLine && React__default.createElement("div", {
|
|
14252
|
-
className: styles$
|
|
14228
|
+
className: styles$12['banner__caption']
|
|
14253
14229
|
}, caption));
|
|
14254
14230
|
};
|
|
14255
14231
|
|
|
@@ -14303,21 +14279,21 @@ const InlineBanner = _ref => {
|
|
|
14303
14279
|
const Layout = multiLine ? Stack : Inline;
|
|
14304
14280
|
return React__default.createElement("div", {
|
|
14305
14281
|
"data-testid": testId,
|
|
14306
|
-
className: classnames(styles$
|
|
14307
|
-
[styles$
|
|
14308
|
-
[styles$
|
|
14309
|
-
[styles$
|
|
14310
|
-
[styles$
|
|
14311
|
-
[styles$
|
|
14312
|
-
[styles$
|
|
14282
|
+
className: classnames(styles$13['banner'], {
|
|
14283
|
+
[styles$13['banner--info']]: theme === BANNER_THEME.INFO,
|
|
14284
|
+
[styles$13['banner--warning']]: theme === BANNER_THEME.WARNING,
|
|
14285
|
+
[styles$13['banner--success']]: theme === BANNER_THEME.SUCCESS,
|
|
14286
|
+
[styles$13['banner--danger']]: theme === BANNER_THEME.DANGER,
|
|
14287
|
+
[styles$13['banner--upsell']]: theme === BANNER_THEME.UPSELL,
|
|
14288
|
+
[styles$13['banner--single-line']]: !multiLine
|
|
14313
14289
|
}),
|
|
14314
14290
|
style: positionStyles
|
|
14315
14291
|
}, React__default.createElement(Inline, {
|
|
14316
14292
|
flex: ['0 1 auto', 1],
|
|
14317
14293
|
space: 12
|
|
14318
14294
|
}, React__default.createElement("div", {
|
|
14319
|
-
className: classnames(styles$
|
|
14320
|
-
[styles$
|
|
14295
|
+
className: classnames(styles$13['banner__icon'], {
|
|
14296
|
+
[styles$13['banner__icon--multiline']]: multiLine
|
|
14321
14297
|
})
|
|
14322
14298
|
}, icon != null ? icon : React__default.createElement(InlineBannerIcon, {
|
|
14323
14299
|
theme: theme
|
|
@@ -14328,10 +14304,10 @@ const InlineBanner = _ref => {
|
|
|
14328
14304
|
flex: ['min-content'],
|
|
14329
14305
|
flexWrap: multiLine ? undefined : 'wrap'
|
|
14330
14306
|
}, title && React__default.createElement("div", {
|
|
14331
|
-
className: styles$
|
|
14307
|
+
className: styles$13['banner__title']
|
|
14332
14308
|
}, title), React__default.createElement("div", {
|
|
14333
|
-
className: classnames(styles$
|
|
14334
|
-
[styles$
|
|
14309
|
+
className: classnames(styles$13['banner__body'], {
|
|
14310
|
+
[styles$13['banner__body--multilineCTA']]: primaryButton && multiLine
|
|
14335
14311
|
})
|
|
14336
14312
|
}, children), primaryButton && React__default.createElement(InlineBannerCTA, {
|
|
14337
14313
|
primaryButton: primaryButton,
|
|
@@ -14340,7 +14316,7 @@ const InlineBanner = _ref => {
|
|
|
14340
14316
|
multiLine: multiLine,
|
|
14341
14317
|
bannerTheme: theme
|
|
14342
14318
|
})), dismissable && React__default.createElement("div", {
|
|
14343
|
-
className: styles$
|
|
14319
|
+
className: styles$13['banner__close']
|
|
14344
14320
|
}, React__default.createElement(Button, {
|
|
14345
14321
|
theme: "link-icon",
|
|
14346
14322
|
type: "button",
|
|
@@ -14356,7 +14332,7 @@ const MICRO_BANNER_THEME = {
|
|
|
14356
14332
|
UPSELL: 'upsell'
|
|
14357
14333
|
};
|
|
14358
14334
|
|
|
14359
|
-
var styles$
|
|
14335
|
+
var styles$11 = {"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"};
|
|
14360
14336
|
|
|
14361
14337
|
const MicroBannerIcon = ({
|
|
14362
14338
|
theme
|
|
@@ -14425,14 +14401,14 @@ const MicroBanner = _ref => {
|
|
|
14425
14401
|
const {
|
|
14426
14402
|
dataProps
|
|
14427
14403
|
} = getDataProps(otherProps);
|
|
14428
|
-
const themeClass = styles$
|
|
14429
|
-
const contentClass = classnames(styles$
|
|
14404
|
+
const themeClass = styles$11[`micro-banner--${theme}`];
|
|
14405
|
+
const contentClass = classnames(styles$11['micro-banner__content'], hideIcon && styles$11['micro-banner__content--no-icon'], !primaryButton && styles$11['micro-banner__content--no-button']);
|
|
14430
14406
|
return React__default.createElement("div", _extends({
|
|
14431
14407
|
"data-testid": testId,
|
|
14432
|
-
className: classnames(styles$
|
|
14408
|
+
className: classnames(styles$11['micro-banner'], themeClass),
|
|
14433
14409
|
style: positionProps
|
|
14434
14410
|
}, dataProps), !hideIcon && React__default.createElement("div", {
|
|
14435
|
-
className: styles$
|
|
14411
|
+
className: styles$11['micro-banner__icon'],
|
|
14436
14412
|
"data-testid": `${testId || 'micro-banner'}-icon`
|
|
14437
14413
|
}, icon != null ? icon : React__default.createElement(MicroBannerIcon, {
|
|
14438
14414
|
theme: theme
|
|
@@ -14443,7 +14419,7 @@ const MicroBanner = _ref => {
|
|
|
14443
14419
|
}, title), React__default.createElement(Text, {
|
|
14444
14420
|
as: 'caption'
|
|
14445
14421
|
}, children)), primaryButton && React__default.createElement("div", {
|
|
14446
|
-
className: styles$
|
|
14422
|
+
className: styles$11['micro-banner__button']
|
|
14447
14423
|
}, React__default.createElement(ButtonCTA, {
|
|
14448
14424
|
button: primaryButton,
|
|
14449
14425
|
bannerTheme: theme
|
|
@@ -14458,7 +14434,7 @@ const PERSISTENT_BANNER_THEME = {
|
|
|
14458
14434
|
SUCCESS: 'success'
|
|
14459
14435
|
};
|
|
14460
14436
|
|
|
14461
|
-
var styles
|
|
14437
|
+
var styles$10 = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR","persistent-banner--warning":"_9eFhn","persistent-banner--success":"_hU34n"};
|
|
14462
14438
|
|
|
14463
14439
|
/**
|
|
14464
14440
|
* PersistentBanner displays a full-width message above the main navigation.
|
|
@@ -14490,12 +14466,12 @@ const PersistentBanner = ({
|
|
|
14490
14466
|
theme: BUTTON_THEMES.LINK_CONTRAST
|
|
14491
14467
|
}, secondaryButton.props))));
|
|
14492
14468
|
return React__default.createElement("div", {
|
|
14493
|
-
className: classnames(styles
|
|
14494
|
-
[styles
|
|
14495
|
-
[styles
|
|
14496
|
-
[styles
|
|
14497
|
-
[styles
|
|
14498
|
-
[styles
|
|
14469
|
+
className: classnames(styles$10['persistent-banner'], {
|
|
14470
|
+
[styles$10['persistent-banner--info']]: _theme === PERSISTENT_BANNER_THEME.INFO,
|
|
14471
|
+
[styles$10['persistent-banner--danger']]: _theme === PERSISTENT_BANNER_THEME.DANGER,
|
|
14472
|
+
[styles$10['persistent-banner--upsell']]: _theme === PERSISTENT_BANNER_THEME.UPSELL,
|
|
14473
|
+
[styles$10['persistent-banner--warning']]: _theme === PERSISTENT_BANNER_THEME.WARNING,
|
|
14474
|
+
[styles$10['persistent-banner--success']]: _theme === PERSISTENT_BANNER_THEME.SUCCESS
|
|
14499
14475
|
}),
|
|
14500
14476
|
"data-testid": testId
|
|
14501
14477
|
}, onDismiss ? React__default.createElement(Inline, {
|
|
@@ -14560,7 +14536,7 @@ const useProgress = (progress, maxValue, getMetric = getProgressMetric) => {
|
|
|
14560
14536
|
};
|
|
14561
14537
|
};
|
|
14562
14538
|
|
|
14563
|
-
var styles
|
|
14539
|
+
var styles$$ = {"circular-progress":"_UI0Fo","circular-progress__label":"_6PNwZ","circular-progress__track":"_alBLB","circular-progress__indicator":"_VADa6"};
|
|
14564
14540
|
|
|
14565
14541
|
/**
|
|
14566
14542
|
* CircularProgress displays a circular track that fills as a count advances toward a total.
|
|
@@ -14577,7 +14553,7 @@ const CircularProgress = ({
|
|
|
14577
14553
|
} = useProgress(progress, _maxValue);
|
|
14578
14554
|
const determinant = metric.percentage * 2.79;
|
|
14579
14555
|
return React__default.createElement("div", _extends({}, elementProps, {
|
|
14580
|
-
className: styles
|
|
14556
|
+
className: styles$$['circular-progress'],
|
|
14581
14557
|
"data-testid": testId
|
|
14582
14558
|
}), React__default.createElement("svg", {
|
|
14583
14559
|
viewBox: "0 0 100 100"
|
|
@@ -14586,21 +14562,21 @@ const CircularProgress = ({
|
|
|
14586
14562
|
cy: 50,
|
|
14587
14563
|
r: 45,
|
|
14588
14564
|
strokeWidth: "10px",
|
|
14589
|
-
className: styles
|
|
14565
|
+
className: styles$$['circular-progress__track']
|
|
14590
14566
|
}), React__default.createElement("circle", {
|
|
14591
14567
|
cx: 50,
|
|
14592
14568
|
cy: 50,
|
|
14593
14569
|
r: 45,
|
|
14594
14570
|
strokeWidth: "10px",
|
|
14595
|
-
className: styles
|
|
14571
|
+
className: styles$$['circular-progress__indicator'],
|
|
14596
14572
|
strokeDashoffset: "66",
|
|
14597
14573
|
strokeDasharray: `${determinant} ${279 - determinant}`
|
|
14598
14574
|
})), React__default.createElement("div", {
|
|
14599
|
-
className: styles
|
|
14575
|
+
className: styles$$['circular-progress__label']
|
|
14600
14576
|
}, children || `${metric.progress}/${metric.maxValue}`));
|
|
14601
14577
|
};
|
|
14602
14578
|
|
|
14603
|
-
var styles$
|
|
14579
|
+
var styles$_ = {"progress-bar":"_fWvQF","progress-bar__indicator":"_vd0xc","progress-bar__indicator--complete":"_D9yNp","progress-bar__steps":"_8kdeO"};
|
|
14604
14580
|
|
|
14605
14581
|
/**
|
|
14606
14582
|
* ProgressBar shows a horizontal bar that fills as a task advances.
|
|
@@ -14618,23 +14594,23 @@ const ProgressBar = ({
|
|
|
14618
14594
|
metric
|
|
14619
14595
|
} = useProgress(progress, inferedMaxValue || 100, isUsingStepsAsMaxValue ? getProgressMetricWithSteps : getProgressMetric);
|
|
14620
14596
|
return React__default.createElement(Stack, null, React__default.createElement("div", _extends({}, elementProps, {
|
|
14621
|
-
className: styles$
|
|
14597
|
+
className: styles$_['progress-bar'],
|
|
14622
14598
|
"data-testid": testId
|
|
14623
14599
|
}), React__default.createElement("div", {
|
|
14624
|
-
className: classnames(styles$
|
|
14625
|
-
[styles$
|
|
14600
|
+
className: classnames(styles$_['progress-bar__indicator'], {
|
|
14601
|
+
[styles$_['progress-bar__indicator--complete']]: metric.percentage === 100
|
|
14626
14602
|
}),
|
|
14627
14603
|
style: {
|
|
14628
14604
|
width: `${metric.percentage}%`
|
|
14629
14605
|
}
|
|
14630
14606
|
})), steps && steps.length > 0 && React__default.createElement("div", {
|
|
14631
|
-
className: styles$
|
|
14607
|
+
className: styles$_['progress-bar__steps']
|
|
14632
14608
|
}, steps.map(step => React__default.createElement(Text, {
|
|
14633
14609
|
key: step
|
|
14634
14610
|
}, step))));
|
|
14635
14611
|
};
|
|
14636
14612
|
|
|
14637
|
-
var styles$
|
|
14613
|
+
var styles$Z = {"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"};
|
|
14638
14614
|
|
|
14639
14615
|
const SKELETON_COMPONENT = {
|
|
14640
14616
|
AVATAR: 'avatar',
|
|
@@ -14661,14 +14637,14 @@ const Skeleton = _ref => {
|
|
|
14661
14637
|
const positioning = usePositionStyles(positionStyles);
|
|
14662
14638
|
return React__default.createElement("div", {
|
|
14663
14639
|
"data-testid": testId,
|
|
14664
|
-
className: classnames(styles$
|
|
14665
|
-
[styles$
|
|
14666
|
-
[styles$
|
|
14667
|
-
[styles$
|
|
14668
|
-
[styles$
|
|
14669
|
-
[styles$
|
|
14670
|
-
[styles$
|
|
14671
|
-
[styles$
|
|
14640
|
+
className: classnames(styles$Z['skeleton'], {
|
|
14641
|
+
[styles$Z['skeleton__avatar']]: as === SKELETON_COMPONENT.AVATAR,
|
|
14642
|
+
[styles$Z['skeleton__avatar--small']]: as === SKELETON_COMPONENT.AVATAR_SMALL,
|
|
14643
|
+
[styles$Z['skeleton__avatar--medium']]: as === SKELETON_COMPONENT.AVATAR_MEDIUM,
|
|
14644
|
+
[styles$Z['skeleton__avatar--large']]: as === SKELETON_COMPONENT.AVATAR_LARGE,
|
|
14645
|
+
[styles$Z['skeleton__avatar--xlarge']]: as === SKELETON_COMPONENT.AVATAR_XLARGE,
|
|
14646
|
+
[styles$Z['skeleton__button']]: as === SKELETON_COMPONENT.BUTTON,
|
|
14647
|
+
[styles$Z['skeleton__pill']]: as === SKELETON_COMPONENT.PILL
|
|
14672
14648
|
}),
|
|
14673
14649
|
style: _extends({}, positioning, {
|
|
14674
14650
|
width: width,
|
|
@@ -14677,11 +14653,11 @@ const Skeleton = _ref => {
|
|
|
14677
14653
|
});
|
|
14678
14654
|
};
|
|
14679
14655
|
|
|
14680
|
-
var styles$
|
|
14656
|
+
var styles$Y = {"data-table-row":"_hhDnr","data-table-row--clickable":"_ej5Ke","data-table-row--selected":"_qDTAh"};
|
|
14681
14657
|
|
|
14682
|
-
var styles$
|
|
14658
|
+
var styles$X = {"actions":"_ffXgN"};
|
|
14683
14659
|
|
|
14684
|
-
var styles$
|
|
14660
|
+
var styles$W = {"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-"};
|
|
14685
14661
|
|
|
14686
14662
|
const DataTableCellElement = ({
|
|
14687
14663
|
children,
|
|
@@ -14705,9 +14681,9 @@ const DataTableCellElement = ({
|
|
|
14705
14681
|
const hasError = !!error;
|
|
14706
14682
|
const errorMessage = error;
|
|
14707
14683
|
const icon = hasError && React__default.createElement("div", {
|
|
14708
|
-
className: classnames(styles$
|
|
14709
|
-
[styles$
|
|
14710
|
-
[styles$
|
|
14684
|
+
className: classnames(styles$W['data-table-cell__error-icon'], {
|
|
14685
|
+
[styles$W['data-table-cell__error-icon--right-align']]: isRightAligned,
|
|
14686
|
+
[styles$W['data-table-cell__error-icon--left-align']]: !isRightAligned
|
|
14711
14687
|
})
|
|
14712
14688
|
}, React__default.createElement(IconTimesOctagon, {
|
|
14713
14689
|
size: "medium",
|
|
@@ -14715,17 +14691,17 @@ const DataTableCellElement = ({
|
|
|
14715
14691
|
}));
|
|
14716
14692
|
const TableCell = React__default.createElement("td", {
|
|
14717
14693
|
className: classnames({
|
|
14718
|
-
[styles$
|
|
14719
|
-
[styles$
|
|
14720
|
-
[styles$
|
|
14721
|
-
}, styles$
|
|
14694
|
+
[styles$W['data-table-cell--invalid']]: hasError,
|
|
14695
|
+
[styles$W['data-table-cell--no-padding']]: _noPadding,
|
|
14696
|
+
[styles$W['data-table-cell--vertical-border']]: hasVerticalBorders
|
|
14697
|
+
}, styles$W['data-table-cell']),
|
|
14722
14698
|
colSpan: colSpan,
|
|
14723
14699
|
ref: ref
|
|
14724
14700
|
}, React__default.createElement("div", {
|
|
14725
|
-
className: classnames(styles$
|
|
14726
|
-
[styles$
|
|
14727
|
-
[styles$
|
|
14728
|
-
[styles$
|
|
14701
|
+
className: classnames(styles$W['data-table-cell__content'], {
|
|
14702
|
+
[styles$W['data-table-cell__content--with-error']]: hasError,
|
|
14703
|
+
[styles$W['data-table-cell__content--right-align']]: isRightAligned,
|
|
14704
|
+
[styles$W['data-table-cell__content--loading']]: state === DATA_TABLE_STATES.BACKGROUND_LOADING
|
|
14729
14705
|
})
|
|
14730
14706
|
}, isRightAligned && icon, children, !isRightAligned && icon));
|
|
14731
14707
|
return React__default.createElement(Tooltip, {
|
|
@@ -14749,7 +14725,7 @@ const DataTableRowActions = ({
|
|
|
14749
14725
|
return React__default.createElement(DataTableCell, {
|
|
14750
14726
|
columnIndex: columnIndex
|
|
14751
14727
|
}, React__default.createElement("div", {
|
|
14752
|
-
className: styles$
|
|
14728
|
+
className: styles$X['actions'],
|
|
14753
14729
|
"data-testid": "data-table-dropdown-menu"
|
|
14754
14730
|
}, state === 'SKELETON_LOADING' && React__default.createElement(Skeleton, {
|
|
14755
14731
|
width: 45
|
|
@@ -14762,7 +14738,7 @@ const DataTableRowActions = ({
|
|
|
14762
14738
|
})));
|
|
14763
14739
|
};
|
|
14764
14740
|
|
|
14765
|
-
var styles$
|
|
14741
|
+
var styles$V = {"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"};
|
|
14766
14742
|
|
|
14767
14743
|
const DataTableEditableCellElement = ({
|
|
14768
14744
|
name,
|
|
@@ -14811,8 +14787,8 @@ const DataTableEditableCellElement = ({
|
|
|
14811
14787
|
};
|
|
14812
14788
|
const EditableCell = React__default.createElement("div", {
|
|
14813
14789
|
className: classnames({
|
|
14814
|
-
[styles$
|
|
14815
|
-
}, styles$
|
|
14790
|
+
[styles$V['data-table-editable-cell--currency']]: _type === 'currency'
|
|
14791
|
+
}, styles$V['data-table-editable-cell']),
|
|
14816
14792
|
"data-testid": testId,
|
|
14817
14793
|
role: "cell"
|
|
14818
14794
|
}, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
@@ -14822,12 +14798,12 @@ const DataTableEditableCellElement = ({
|
|
|
14822
14798
|
name: name,
|
|
14823
14799
|
id: controllers.id,
|
|
14824
14800
|
className: classnames({
|
|
14825
|
-
[styles$
|
|
14826
|
-
[styles$
|
|
14827
|
-
[styles$
|
|
14828
|
-
[styles$
|
|
14829
|
-
[styles$
|
|
14830
|
-
[styles$
|
|
14801
|
+
[styles$V['data-table-editable-cell--right-aligned']]: isRightAligned,
|
|
14802
|
+
[styles$V['data-table-editable-cell--top-left']]: isTopLeftCell,
|
|
14803
|
+
[styles$V['data-table-editable-cell--top-right']]: isTopRightCell,
|
|
14804
|
+
[styles$V['data-table-editable-cell--bottom-left']]: isBottomLeftCell,
|
|
14805
|
+
[styles$V['data-table-editable-cell--bottom-right']]: isBottomRightCell,
|
|
14806
|
+
[styles$V['data-table-editable-cell--invalid']]: hasError
|
|
14831
14807
|
}),
|
|
14832
14808
|
type: _type === 'currency' ? 'number' : 'text',
|
|
14833
14809
|
step: _type === 'currency' ? 'any' : '',
|
|
@@ -14872,9 +14848,9 @@ const DataTableRowComponent = (_ref, ref) => {
|
|
|
14872
14848
|
const {
|
|
14873
14849
|
showActionMenu
|
|
14874
14850
|
} = useDataTableContext();
|
|
14875
|
-
const styleNames = classnames(styles$
|
|
14876
|
-
[styles$
|
|
14877
|
-
[styles$
|
|
14851
|
+
const styleNames = classnames(styles$Y['data-table-row'], {
|
|
14852
|
+
[styles$Y['data-table-row--clickable']]: onClick,
|
|
14853
|
+
[styles$Y['data-table-row--selected']]: isSelected
|
|
14878
14854
|
});
|
|
14879
14855
|
const renderColumn = (columnElement, index) => {
|
|
14880
14856
|
const isUsingDataTableCell = columnElement && typeof columnElement === 'object' && 'type' in columnElement && (columnElement == null ? void 0 : columnElement.type) === DataTableCell;
|
|
@@ -14965,7 +14941,7 @@ const calculateScrollState = scrollContainer => {
|
|
|
14965
14941
|
return DATA_TABLE_SCROLL_STATES.NO_SCROLL;
|
|
14966
14942
|
};
|
|
14967
14943
|
|
|
14968
|
-
var styles$
|
|
14944
|
+
var styles$U = {"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"};
|
|
14969
14945
|
|
|
14970
14946
|
const useDataTableScrollState = stickyColumns => {
|
|
14971
14947
|
const scrollContainerRef = useRef(null);
|
|
@@ -15007,7 +14983,7 @@ const useDataTableScrollState = stickyColumns => {
|
|
|
15007
14983
|
};
|
|
15008
14984
|
};
|
|
15009
14985
|
|
|
15010
|
-
var styles$
|
|
14986
|
+
var styles$T = {"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"};
|
|
15011
14987
|
|
|
15012
14988
|
const DataTableCoverShadow = ({
|
|
15013
14989
|
isShowingColumns,
|
|
@@ -15025,11 +15001,11 @@ const DataTableCoverShadow = ({
|
|
|
15025
15001
|
return `calc(100% - ${headerHeight})`;
|
|
15026
15002
|
};
|
|
15027
15003
|
return React__default.createElement("div", {
|
|
15028
|
-
className: classnames(styles$
|
|
15029
|
-
[styles$
|
|
15030
|
-
[styles$
|
|
15031
|
-
[styles$
|
|
15032
|
-
[styles$
|
|
15004
|
+
className: classnames(styles$T['data-table-cover-shadow'], {
|
|
15005
|
+
[styles$T['data-table-cover-shadow--left']]: direction === 'left',
|
|
15006
|
+
[styles$T['data-table-cover-shadow--left-shadow']]: direction === 'left' && showShadow,
|
|
15007
|
+
[styles$T['data-table-cover-shadow--right']]: direction === 'right',
|
|
15008
|
+
[styles$T['data-table-cover-shadow--right-shadow']]: direction === 'right' && showShadow
|
|
15033
15009
|
}),
|
|
15034
15010
|
style: {
|
|
15035
15011
|
// @ts-expect-error This difines a custom CSS variable
|
|
@@ -15091,13 +15067,13 @@ const DataTableStickyColumnsContainer = ({
|
|
|
15091
15067
|
isShowingColumns: !!isShowingColumns,
|
|
15092
15068
|
showShadow: state === 'EMPTY' ? false : stickyColumns === 'left'
|
|
15093
15069
|
})), React__default.createElement("div", {
|
|
15094
|
-
className: classnames(styles$
|
|
15095
|
-
[styles$
|
|
15096
|
-
[styles$
|
|
15097
|
-
[styles$
|
|
15098
|
-
[styles$
|
|
15099
|
-
[styles$
|
|
15100
|
-
[styles$
|
|
15070
|
+
className: classnames(styles$U[containerClassName], {
|
|
15071
|
+
[styles$U[`${containerClassName}--with-footer`]]: isShowingFooter,
|
|
15072
|
+
[styles$U[`${containerClassName}--with-left-sticky-columns`]]: hasLeftColumnSticky,
|
|
15073
|
+
[styles$U[`${containerClassName}--with-left-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasLeftColumnSticky && hasScrollOnLeft : false,
|
|
15074
|
+
[styles$U[`${containerClassName}--with-right-sticky-columns`]]: hasRightColumnSticky,
|
|
15075
|
+
[styles$U[`${containerClassName}--with-right-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasRightColumnSticky && hasScrollOnRight : false,
|
|
15076
|
+
[styles$U[`${containerClassName}--no-shadow`]]: noShadow
|
|
15101
15077
|
}),
|
|
15102
15078
|
onScroll: onScroll,
|
|
15103
15079
|
ref: scrollContainerRef,
|
|
@@ -15105,11 +15081,11 @@ const DataTableStickyColumnsContainer = ({
|
|
|
15105
15081
|
}, children));
|
|
15106
15082
|
};
|
|
15107
15083
|
|
|
15108
|
-
var styles$
|
|
15084
|
+
var styles$S = {"data-table-empty-state":"_fCHjG"};
|
|
15109
15085
|
|
|
15110
|
-
var styles$
|
|
15086
|
+
var styles$R = {"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"};
|
|
15111
15087
|
|
|
15112
|
-
var styles$
|
|
15088
|
+
var styles$Q = {"empty-state-container-cta":"_X-dEs","empty-state-container-cta--inside-modal":"_63-SX"};
|
|
15113
15089
|
|
|
15114
15090
|
const EmptyStateContainerCTA = ({
|
|
15115
15091
|
isPaywall,
|
|
@@ -15126,8 +15102,8 @@ const EmptyStateContainerCTA = ({
|
|
|
15126
15102
|
size: BUTTON_SIZES.MIN_WIDTH_100
|
|
15127
15103
|
});
|
|
15128
15104
|
return React__default.createElement("div", {
|
|
15129
|
-
className: classnames(styles$
|
|
15130
|
-
[styles$
|
|
15105
|
+
className: classnames(styles$Q['empty-state-container-cta'], {
|
|
15106
|
+
[styles$Q['empty-state-container-cta--inside-modal']]: _isInsideModal
|
|
15131
15107
|
})
|
|
15132
15108
|
}, primaryButton, secondaryButton);
|
|
15133
15109
|
};
|
|
@@ -15151,7 +15127,7 @@ const EmptyStateContainerStack = ({
|
|
|
15151
15127
|
mediaComponent
|
|
15152
15128
|
}) => {
|
|
15153
15129
|
return React__default.createElement("div", {
|
|
15154
|
-
className: styles$
|
|
15130
|
+
className: styles$R['empty-state-container-stack'],
|
|
15155
15131
|
"data-testid": testId
|
|
15156
15132
|
}, mediaComponent ? mediaComponent : mediaUrl && React__default.createElement("img", {
|
|
15157
15133
|
src: mediaUrl,
|
|
@@ -15168,7 +15144,7 @@ const EmptyStateContainerStack = ({
|
|
|
15168
15144
|
as: "body",
|
|
15169
15145
|
alignment: "center"
|
|
15170
15146
|
}, title), React__default.createElement("div", {
|
|
15171
|
-
className: styles$
|
|
15147
|
+
className: styles$R['empty-state-container-stack__body']
|
|
15172
15148
|
}, children)), React__default.createElement(Stack, {
|
|
15173
15149
|
space: 8,
|
|
15174
15150
|
alignItems: "center"
|
|
@@ -15280,7 +15256,7 @@ const DataTableEmptyState = ({
|
|
|
15280
15256
|
columnIndex: shouldRenderStickyLeftCell ? 1 : 0,
|
|
15281
15257
|
colSpan: colSpan
|
|
15282
15258
|
}, React__default.createElement("div", {
|
|
15283
|
-
className: styles$
|
|
15259
|
+
className: styles$S['data-table-empty-state']
|
|
15284
15260
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
15285
15261
|
mediaUrl: customImage,
|
|
15286
15262
|
mediaComponent: customImage === '' ? React__default.createElement(MagnifyingGlassIllustration, null) : undefined,
|
|
@@ -15367,7 +15343,7 @@ const DataTable = _ref => {
|
|
|
15367
15343
|
return null;
|
|
15368
15344
|
}
|
|
15369
15345
|
return React__default.createElement("div", {
|
|
15370
|
-
className: styles$
|
|
15346
|
+
className: styles$15['data-table__pagination-controls'],
|
|
15371
15347
|
"data-testid": testId && `${testId}-pagination-controls`
|
|
15372
15348
|
}, React__default.createElement(PaginationControls, {
|
|
15373
15349
|
hasPrevious: isLoading ? false : hasPrevious,
|
|
@@ -15390,7 +15366,7 @@ const DataTable = _ref => {
|
|
|
15390
15366
|
tableId
|
|
15391
15367
|
}
|
|
15392
15368
|
}, React__default.createElement("div", {
|
|
15393
|
-
className: classnames(styles$
|
|
15369
|
+
className: classnames(styles$15['data-table']),
|
|
15394
15370
|
ref: tableRef,
|
|
15395
15371
|
style: positionStyles
|
|
15396
15372
|
}, React__default.createElement(DataTableStickyColumnsContainer, {
|
|
@@ -15401,24 +15377,24 @@ const DataTable = _ref => {
|
|
|
15401
15377
|
placement: "top",
|
|
15402
15378
|
isShowingColumns: !!isShowingColumns
|
|
15403
15379
|
}), React__default.createElement("div", {
|
|
15404
|
-
className: classnames(styles$
|
|
15405
|
-
[styles$
|
|
15380
|
+
className: classnames(styles$15['data-table__content'], {
|
|
15381
|
+
[styles$15['data-table__content--with-scroll']]: isScrollableTable
|
|
15406
15382
|
}),
|
|
15407
15383
|
style: conditionalStyles,
|
|
15408
15384
|
id: `${tableId}-content`
|
|
15409
15385
|
}, state === DATA_TABLE_STATES.BACKGROUND_LOADING && React__default.createElement("div", {
|
|
15410
|
-
className: styles$
|
|
15386
|
+
className: styles$15['data-table__background-loading']
|
|
15411
15387
|
}, React__default.createElement(Spinner, null)), React__default.createElement("table", _extends({
|
|
15412
|
-
className: classnames(styles$
|
|
15413
|
-
[styles$
|
|
15388
|
+
className: classnames(styles$15['data-table__table'], {
|
|
15389
|
+
[styles$15['data-table__table--no-columns']]: !isShowingColumns
|
|
15414
15390
|
})
|
|
15415
15391
|
}, dataProps), columns && isShowingColumns && React__default.createElement(DataTableHeader, {
|
|
15416
15392
|
columns: columns,
|
|
15417
15393
|
onSort: onSort,
|
|
15418
15394
|
showActionMenu: isShowingContent && showActionMenu
|
|
15419
15395
|
}), React__default.createElement("tbody", {
|
|
15420
|
-
className: classnames(styles$
|
|
15421
|
-
[styles$
|
|
15396
|
+
className: classnames(styles$15['data-table__body'], {
|
|
15397
|
+
[styles$15['data-table__body--no-bottom-radius']]: isShowingFooter && isShowingContent
|
|
15422
15398
|
}),
|
|
15423
15399
|
"data-testid": testId
|
|
15424
15400
|
}, isShowingContent && content.map((item, index) => {
|
|
@@ -15437,7 +15413,7 @@ const DataTable = _ref => {
|
|
|
15437
15413
|
}), state === DATA_TABLE_STATES.SKELETON_LOADING && React__default.createElement(React__default.Fragment, null, skeletonRows.map((_, index) => React__default.createElement(SkeletonRow, {
|
|
15438
15414
|
key: index
|
|
15439
15415
|
})))), isShowingFooter && isShowingContent && React__default.createElement("tfoot", {
|
|
15440
|
-
className: styles$
|
|
15416
|
+
className: styles$15['data-table__footer'],
|
|
15441
15417
|
"data-testid": testId && `${testId}-footer`
|
|
15442
15418
|
}, footerComponent)))), !isShowingFooter && isScrollableTable && React__default.createElement(DataTableScrollFakeBorder, {
|
|
15443
15419
|
placement: "bottom",
|
|
@@ -15445,7 +15421,7 @@ const DataTable = _ref => {
|
|
|
15445
15421
|
})), React__default.createElement(Pagination, null));
|
|
15446
15422
|
};
|
|
15447
15423
|
|
|
15448
|
-
var styles$
|
|
15424
|
+
var styles$P = {"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"};
|
|
15449
15425
|
|
|
15450
15426
|
const AccordionItem = props => {
|
|
15451
15427
|
const {
|
|
@@ -15460,10 +15436,10 @@ const AccordionItem = props => {
|
|
|
15460
15436
|
} = item;
|
|
15461
15437
|
const isFocusedByClickRef = React__default.useRef(false);
|
|
15462
15438
|
return React__default.createElement("div", {
|
|
15463
|
-
className: styles$
|
|
15439
|
+
className: styles$P['accordion-item']
|
|
15464
15440
|
}, React__default.createElement("button", {
|
|
15465
15441
|
type: "button",
|
|
15466
|
-
className: styles$
|
|
15442
|
+
className: styles$P['accordion-item__header'],
|
|
15467
15443
|
onClick: () => {
|
|
15468
15444
|
if (isOpen) {
|
|
15469
15445
|
handleAccordionItemOpen(null);
|
|
@@ -15490,15 +15466,15 @@ const AccordionItem = props => {
|
|
|
15490
15466
|
}, typeof title === 'string' ? React__default.createElement(Text, {
|
|
15491
15467
|
emphasis: "bold"
|
|
15492
15468
|
}, title) : title, React__default.createElement(IconChevronDown, {
|
|
15493
|
-
className: styles$
|
|
15469
|
+
className: styles$P[`accordion-item__icon${isOpen ? '--active' : ''}`],
|
|
15494
15470
|
color: 'surface-on-color-subtle'
|
|
15495
15471
|
}))), React__default.createElement("div", {
|
|
15496
15472
|
"data-testid": `${isOpen ? 'accordion-item-' + id + '-open' : 'accordion-item-' + id + '-closed'}`,
|
|
15497
|
-
className: styles$
|
|
15473
|
+
className: styles$P[`accordion-item__content${isOpen ? '--active' : ''}`]
|
|
15498
15474
|
}, isOpen && React__default.createElement(Text, null, content)));
|
|
15499
15475
|
};
|
|
15500
15476
|
|
|
15501
|
-
var styles$
|
|
15477
|
+
var styles$O = {"accordion":"_058SP"};
|
|
15502
15478
|
|
|
15503
15479
|
const _excluded$bb = ["items", "onExpand", "defaultOpenId"];
|
|
15504
15480
|
/**
|
|
@@ -15529,7 +15505,7 @@ const Accordion = _ref => {
|
|
|
15529
15505
|
isAccordionMounted: true
|
|
15530
15506
|
}
|
|
15531
15507
|
}, React__default.createElement("div", _extends({
|
|
15532
|
-
className: styles$
|
|
15508
|
+
className: styles$O['accordion']
|
|
15533
15509
|
}, dataProps), items.map((item, index) => {
|
|
15534
15510
|
const id = item.id || index.toString();
|
|
15535
15511
|
return React__default.createElement(AccordionItem, {
|
|
@@ -15543,7 +15519,7 @@ const Accordion = _ref => {
|
|
|
15543
15519
|
})));
|
|
15544
15520
|
};
|
|
15545
15521
|
|
|
15546
|
-
var styles$
|
|
15522
|
+
var styles$N = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
|
|
15547
15523
|
|
|
15548
15524
|
/**
|
|
15549
15525
|
* 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.
|
|
@@ -15558,15 +15534,15 @@ const ActionList = ({
|
|
|
15558
15534
|
const translate = useTranslation('ActionList');
|
|
15559
15535
|
const hasChildren = React__default.Children.count(children) > 0;
|
|
15560
15536
|
return React__default.createElement("div", {
|
|
15561
|
-
className: styles$
|
|
15537
|
+
className: styles$N['action-list'],
|
|
15562
15538
|
"data-testid": testId,
|
|
15563
15539
|
style: {
|
|
15564
15540
|
maxHeight: maxHeight
|
|
15565
15541
|
}
|
|
15566
15542
|
}, title && React__default.createElement("div", {
|
|
15567
|
-
className: styles$
|
|
15543
|
+
className: styles$N['action-list__title']
|
|
15568
15544
|
}, title), hasChildren ? children : React__default.createElement("div", {
|
|
15569
|
-
className: styles$
|
|
15545
|
+
className: styles$N['action-list__empty-state']
|
|
15570
15546
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
15571
15547
|
title: (emptyState == null ? void 0 : emptyState.title) || translate('emptyStateTitle'),
|
|
15572
15548
|
mediaUrl: emptyState == null ? void 0 : emptyState.image,
|
|
@@ -15744,7 +15720,7 @@ const useSelectFieldControllers = ({
|
|
|
15744
15720
|
return controllers;
|
|
15745
15721
|
};
|
|
15746
15722
|
|
|
15747
|
-
var styles$
|
|
15723
|
+
var styles$M = {"custom-control":"_pXQqq"};
|
|
15748
15724
|
|
|
15749
15725
|
const _excluded$ba = ["children"];
|
|
15750
15726
|
function CustomControl(_ref) {
|
|
@@ -15758,7 +15734,7 @@ function CustomControl(_ref) {
|
|
|
15758
15734
|
} = props.selectProps.componentsProps;
|
|
15759
15735
|
const selectedOption = (_props$getValue = props.getValue()) == null ? void 0 : _props$getValue[0];
|
|
15760
15736
|
return React__default.createElement(components.Control, _extends({}, props), SelectedOptionPrefix && selectedOption ? React__default.createElement("div", {
|
|
15761
|
-
className: styles$
|
|
15737
|
+
className: styles$M['custom-control'],
|
|
15762
15738
|
style: {
|
|
15763
15739
|
paddingLeft: selectedOption ? 8 : 0
|
|
15764
15740
|
}
|
|
@@ -15937,9 +15913,9 @@ const CustomContainer = props => {
|
|
|
15937
15913
|
}));
|
|
15938
15914
|
};
|
|
15939
15915
|
|
|
15940
|
-
var styles$
|
|
15916
|
+
var styles$L = {"custom-menu-text-field":"_AAUjm","custom-menu-hr":"_mFLK9","custom-menu-div":"_1XpI4"};
|
|
15941
15917
|
|
|
15942
|
-
var styles$
|
|
15918
|
+
var styles$K = {"creatable-button--align-left":"_Qw267","creatable-button":"_f9V5D"};
|
|
15943
15919
|
|
|
15944
15920
|
/**
|
|
15945
15921
|
* Shared creatable button component used in CustomMenu and CustomGroupWithCreate.
|
|
@@ -15963,8 +15939,8 @@ const CreatableButton = ({
|
|
|
15963
15939
|
};
|
|
15964
15940
|
if (!button || typeof button === 'string') {
|
|
15965
15941
|
return React__default.createElement("div", {
|
|
15966
|
-
className: classnames(styles$
|
|
15967
|
-
[styles$
|
|
15942
|
+
className: classnames(styles$K['creatable-button'], {
|
|
15943
|
+
[styles$K['creatable-button--align-left']]: _alignLeft
|
|
15968
15944
|
})
|
|
15969
15945
|
}, React__default.createElement(Button, {
|
|
15970
15946
|
theme: "link-primary",
|
|
@@ -15989,8 +15965,8 @@ const CreatableButton = ({
|
|
|
15989
15965
|
overrideProps.theme = 'link-primary';
|
|
15990
15966
|
}
|
|
15991
15967
|
return React__default.createElement("div", {
|
|
15992
|
-
className: classnames(styles$
|
|
15993
|
-
[styles$
|
|
15968
|
+
className: classnames(styles$K['creatable-button'], {
|
|
15969
|
+
[styles$K['creatable-button--align-left']]: _alignLeft
|
|
15994
15970
|
})
|
|
15995
15971
|
}, React__default.cloneElement(button, overrideProps));
|
|
15996
15972
|
};
|
|
@@ -16016,7 +15992,7 @@ const CreateInputForm = ({
|
|
|
16016
15992
|
flex: [1],
|
|
16017
15993
|
flexItems: true
|
|
16018
15994
|
}, React__default.createElement("input", {
|
|
16019
|
-
className: classnames(styles$
|
|
15995
|
+
className: classnames(styles$1w['text-field'], inputClassName),
|
|
16020
15996
|
autoCorrect: "off",
|
|
16021
15997
|
autoComplete: "off",
|
|
16022
15998
|
spellCheck: "false",
|
|
@@ -16082,7 +16058,7 @@ function CustomMenu(_ref) {
|
|
|
16082
16058
|
return React__default.createElement(components.Menu, _extends({}, props), React__default.createElement("div", {
|
|
16083
16059
|
ref: containerRef
|
|
16084
16060
|
}, children, React__default.createElement("hr", {
|
|
16085
|
-
className: styles$
|
|
16061
|
+
className: styles$L['custom-menu-hr']
|
|
16086
16062
|
}), !showFooter ? React__default.createElement(CreatableButton, {
|
|
16087
16063
|
creatableButton: creatableButton,
|
|
16088
16064
|
onClick: () => setShowFooter(true),
|
|
@@ -16093,13 +16069,13 @@ function CustomMenu(_ref) {
|
|
|
16093
16069
|
onMenuInputFocus: onMenuInputFocus,
|
|
16094
16070
|
onSubmit: onCreateButton,
|
|
16095
16071
|
defaultValue: inputDefaultValue,
|
|
16096
|
-
wrapperClassName: styles$
|
|
16097
|
-
inputClassName: styles$
|
|
16072
|
+
wrapperClassName: styles$L['custom-menu-div'],
|
|
16073
|
+
inputClassName: styles$L['custom-menu-text-field'],
|
|
16098
16074
|
testId: "select-create-option-input"
|
|
16099
16075
|
})));
|
|
16100
16076
|
}
|
|
16101
16077
|
|
|
16102
|
-
var styles$
|
|
16078
|
+
var styles$J = {"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"};
|
|
16103
16079
|
|
|
16104
16080
|
function CustomGroupWithCreate(props) {
|
|
16105
16081
|
const {
|
|
@@ -16133,7 +16109,7 @@ function CustomGroupWithCreate(props) {
|
|
|
16133
16109
|
return React__default.createElement("div", {
|
|
16134
16110
|
ref: containerRef
|
|
16135
16111
|
}, React__default.createElement(components.Group, _extends({}, props)), !isInputActive ? React__default.createElement("div", {
|
|
16136
|
-
className: styles$
|
|
16112
|
+
className: styles$J['custom-group-with-create-button-wrapper']
|
|
16137
16113
|
}, React__default.createElement(CreatableButton, {
|
|
16138
16114
|
creatableButton: creatableButton,
|
|
16139
16115
|
onClick: () => setActiveGroupLabel(groupLabel),
|
|
@@ -16145,8 +16121,8 @@ function CustomGroupWithCreate(props) {
|
|
|
16145
16121
|
onMenuInputFocus: onMenuInputFocus,
|
|
16146
16122
|
onSubmit: onCreateButton,
|
|
16147
16123
|
defaultValue: inputDefaultValue,
|
|
16148
|
-
wrapperClassName: styles$
|
|
16149
|
-
inputClassName: styles$
|
|
16124
|
+
wrapperClassName: styles$J['custom-group-with-create-input-wrapper'],
|
|
16125
|
+
inputClassName: styles$J['custom-group-with-create-text-field'],
|
|
16150
16126
|
testId: `select-create-option-input-${groupLabel}`
|
|
16151
16127
|
}));
|
|
16152
16128
|
}
|
|
@@ -16255,7 +16231,7 @@ const useSelectField = _ref => {
|
|
|
16255
16231
|
};
|
|
16256
16232
|
};
|
|
16257
16233
|
|
|
16258
|
-
var styles$
|
|
16234
|
+
var styles$I = {"select-field__suffix":"_vqC1M"};
|
|
16259
16235
|
|
|
16260
16236
|
/** Simple dropdown field where the user chooses one option from a predefined list. */
|
|
16261
16237
|
const SelectField = props => {
|
|
@@ -16265,7 +16241,7 @@ const SelectField = props => {
|
|
|
16265
16241
|
} = useSelectField(props);
|
|
16266
16242
|
//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
|
|
16267
16243
|
const suffixWithMargin = props.suffix ? React__default.createElement("div", {
|
|
16268
|
-
className: styles$
|
|
16244
|
+
className: styles$I['select-field__suffix']
|
|
16269
16245
|
}, props.suffix) : undefined;
|
|
16270
16246
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
16271
16247
|
prefix: props.prefix,
|
|
@@ -16310,9 +16286,9 @@ const ToolbarSelect = _ref => {
|
|
|
16310
16286
|
}, rest));
|
|
16311
16287
|
};
|
|
16312
16288
|
|
|
16313
|
-
var styles$
|
|
16289
|
+
var styles$H = {"date-filter":"_PyXfe","date-filter--wide":"_P6ttU"};
|
|
16314
16290
|
|
|
16315
|
-
var styles$
|
|
16291
|
+
var styles$G = {"date-filter-display":"_N37zE","date-filter-display--non-interactive":"_42Bvz","date-filter-display--wide":"_h8n2w","date-filter-display__display-icon":"_i08yV"};
|
|
16316
16292
|
|
|
16317
16293
|
const DATE_FILTER_MODE = {
|
|
16318
16294
|
DAY: 'day',
|
|
@@ -16366,8 +16342,8 @@ const DateFilterDisplay = forwardRef(({
|
|
|
16366
16342
|
onClick
|
|
16367
16343
|
}, ref) => {
|
|
16368
16344
|
return React__default.createElement("button", {
|
|
16369
|
-
className: classnames(styles$
|
|
16370
|
-
[styles$
|
|
16345
|
+
className: classnames(styles$G['date-filter-display'], {
|
|
16346
|
+
[styles$G['date-filter-display--wide']]: mode === DATE_FILTER_MODE.WEEK
|
|
16371
16347
|
}),
|
|
16372
16348
|
onClick: onClick,
|
|
16373
16349
|
tabIndex: mode === DATE_FILTER_MODE.MONTH ? -1 : undefined,
|
|
@@ -16376,7 +16352,7 @@ const DateFilterDisplay = forwardRef(({
|
|
|
16376
16352
|
space: 12,
|
|
16377
16353
|
alignItems: "center"
|
|
16378
16354
|
}, React__default.createElement("div", {
|
|
16379
|
-
className: classnames(styles$
|
|
16355
|
+
className: classnames(styles$G['date-filter-display__display-icon'])
|
|
16380
16356
|
}, React__default.createElement(IconCalendarAlt, {
|
|
16381
16357
|
size: "flexible",
|
|
16382
16358
|
color: "surface-on-color-subtle"
|
|
@@ -16387,7 +16363,7 @@ const DateFilterDisplay = forwardRef(({
|
|
|
16387
16363
|
})));
|
|
16388
16364
|
});
|
|
16389
16365
|
|
|
16390
|
-
var styles$
|
|
16366
|
+
var styles$F = {"date-stepper":"_9wFtw","date-stepper--backward":"_OrtcR","date-stepper--forward":"_oYoUt"};
|
|
16391
16367
|
|
|
16392
16368
|
const handleDateStepper = (date, mode, stepDirection, onChange) => {
|
|
16393
16369
|
const step = stepDirection === STEP_DIRECTION.FORWARD ? 1 : -1;
|
|
@@ -16416,9 +16392,9 @@ const DateFilterStepper = ({
|
|
|
16416
16392
|
date
|
|
16417
16393
|
}) => {
|
|
16418
16394
|
return React__default.createElement("button", {
|
|
16419
|
-
className: classnames(styles$
|
|
16420
|
-
[styles$
|
|
16421
|
-
[styles$
|
|
16395
|
+
className: classnames(styles$F['date-stepper'], {
|
|
16396
|
+
[styles$F['date-stepper--backward']]: stepDirection === STEP_DIRECTION.BACKWARD,
|
|
16397
|
+
[styles$F['date-stepper--forward']]: stepDirection === STEP_DIRECTION.FORWARD
|
|
16422
16398
|
}),
|
|
16423
16399
|
onClick: () => handleDateStepper(date, mode, stepDirection, onChange)
|
|
16424
16400
|
}, children);
|
|
@@ -16483,9 +16459,9 @@ const CalendarMonth = ({
|
|
|
16483
16459
|
}
|
|
16484
16460
|
const MONTHS = [...Array(12).keys()];
|
|
16485
16461
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
16486
|
-
className: styles$
|
|
16462
|
+
className: styles$1c['calendar']
|
|
16487
16463
|
}, React__default.createElement("div", {
|
|
16488
|
-
className: styles$
|
|
16464
|
+
className: styles$1c['calendar__overlay'],
|
|
16489
16465
|
ref: ref => setCalendarRef(ref),
|
|
16490
16466
|
style: _extends({}, calendarPosition, {
|
|
16491
16467
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -16563,8 +16539,8 @@ const DateFilter = ({
|
|
|
16563
16539
|
const onClickOutside = useCallback(() => setCalendarOpen(false), [setCalendarOpen]);
|
|
16564
16540
|
return React__default.createElement("div", {
|
|
16565
16541
|
"data-testid": testId,
|
|
16566
|
-
className: classnames(styles$
|
|
16567
|
-
[styles$
|
|
16542
|
+
className: classnames(styles$H['date-filter'], {
|
|
16543
|
+
[styles$H['date-filter--wide']]: _mode === DATE_FILTER_MODE.WEEK
|
|
16568
16544
|
})
|
|
16569
16545
|
}, React__default.createElement(Inline, {
|
|
16570
16546
|
space: 0
|
|
@@ -16608,7 +16584,7 @@ const DateFilter = ({
|
|
|
16608
16584
|
}));
|
|
16609
16585
|
};
|
|
16610
16586
|
|
|
16611
|
-
var styles$
|
|
16587
|
+
var styles$E = {"segmented-control":"_RezMY","segmented-control__button":"_lehFG","segmented-control__button--selected":"_Fr5kb"};
|
|
16612
16588
|
|
|
16613
16589
|
const SegmentedControl = ({
|
|
16614
16590
|
options,
|
|
@@ -16620,21 +16596,21 @@ const SegmentedControl = ({
|
|
|
16620
16596
|
return option === value;
|
|
16621
16597
|
};
|
|
16622
16598
|
return React__default.createElement("div", {
|
|
16623
|
-
className: styles$
|
|
16599
|
+
className: styles$E['segmented-control'],
|
|
16624
16600
|
"data-testid": testId
|
|
16625
16601
|
}, options.map(option => React__default.createElement(React__default.Fragment, {
|
|
16626
16602
|
key: option
|
|
16627
16603
|
}, React__default.createElement("button", {
|
|
16628
16604
|
onClick: () => onChange(option),
|
|
16629
|
-
className: classnames(styles$
|
|
16630
|
-
[styles$
|
|
16605
|
+
className: classnames(styles$E['segmented-control__button'], {
|
|
16606
|
+
[styles$E['segmented-control__button--selected']]: isSelected(option)
|
|
16631
16607
|
})
|
|
16632
16608
|
}, option))));
|
|
16633
16609
|
};
|
|
16634
16610
|
|
|
16635
|
-
var styles$
|
|
16611
|
+
var styles$D = {"form--standard-size":"_8-Ykj"};
|
|
16636
16612
|
|
|
16637
|
-
var styles$
|
|
16613
|
+
var styles$C = {"form-section":"_3uYIj","form-section__title":"_2WdOf","form-section__subtitle":"_zybxx","form-section--no-margin":"_xT-U1"};
|
|
16638
16614
|
|
|
16639
16615
|
/**
|
|
16640
16616
|
* 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.
|
|
@@ -16650,13 +16626,13 @@ const FormSection = ({
|
|
|
16650
16626
|
const content = React__default.createElement(Stack, null, (title || subtitle) && React__default.createElement(Stack, {
|
|
16651
16627
|
space: 8
|
|
16652
16628
|
}, title && React__default.createElement("h2", {
|
|
16653
|
-
className: classnames(styles$
|
|
16629
|
+
className: classnames(styles$C['form-section__title'])
|
|
16654
16630
|
}, title), subtitle && React__default.createElement("h3", {
|
|
16655
|
-
className: classnames(styles$
|
|
16631
|
+
className: classnames(styles$C['form-section__subtitle'])
|
|
16656
16632
|
}, subtitle)), children);
|
|
16657
16633
|
return React__default.createElement("div", {
|
|
16658
|
-
className: classnames(styles$
|
|
16659
|
-
[styles$
|
|
16634
|
+
className: classnames(styles$C['form-section'], {
|
|
16635
|
+
[styles$C['form-section--no-margin']]: _noMargin || as === 'card'
|
|
16660
16636
|
}),
|
|
16661
16637
|
"data-testid": testId
|
|
16662
16638
|
}, as === 'card' ? React__default.createElement(Card, {
|
|
@@ -16676,7 +16652,7 @@ const updateButtonProps = (child, newProps) => {
|
|
|
16676
16652
|
}, newProps, child.props));
|
|
16677
16653
|
};
|
|
16678
16654
|
|
|
16679
|
-
var styles$
|
|
16655
|
+
var styles$B = {"form-footer":"_4ksfB"};
|
|
16680
16656
|
|
|
16681
16657
|
const FormFooterActions = ({
|
|
16682
16658
|
actions
|
|
@@ -16715,7 +16691,7 @@ const FormFooter = ({
|
|
|
16715
16691
|
});
|
|
16716
16692
|
const isInlineChildren = React__default.Children.count(children) === 1 && React__default.isValidElement(children) && children.type === Inline;
|
|
16717
16693
|
return React__default.createElement("div", {
|
|
16718
|
-
className: classnames(styles$
|
|
16694
|
+
className: classnames(styles$B['form-footer']),
|
|
16719
16695
|
"data-testid": testId
|
|
16720
16696
|
}, actions && React__default.createElement(FormFooterActions, {
|
|
16721
16697
|
actions: actions
|
|
@@ -16753,13 +16729,13 @@ const Form = ({
|
|
|
16753
16729
|
}, React__default.createElement("form", {
|
|
16754
16730
|
onSubmit: onSubmit ? handleSubmit : formik == null ? void 0 : formik.handleSubmit,
|
|
16755
16731
|
className: classnames({
|
|
16756
|
-
[styles$
|
|
16732
|
+
[styles$D['form--standard-size']]: !_wide
|
|
16757
16733
|
}),
|
|
16758
16734
|
"data-testid": testId
|
|
16759
16735
|
}, _stackContent ? React__default.createElement(Stack, null, formattedChildren) : formattedChildren));
|
|
16760
16736
|
};
|
|
16761
16737
|
|
|
16762
|
-
var styles$
|
|
16738
|
+
var styles$A = {"form-row":"_xX-RS"};
|
|
16763
16739
|
|
|
16764
16740
|
const SIZE_25_PERCENT = '25%';
|
|
16765
16741
|
const SIZE_33_PERCENT = '33.333%';
|
|
@@ -16786,14 +16762,14 @@ const FormRow = ({
|
|
|
16786
16762
|
space: _space,
|
|
16787
16763
|
testId: testId,
|
|
16788
16764
|
alignItems: "stretch",
|
|
16789
|
-
extraClass: styles$
|
|
16765
|
+
extraClass: styles$A['form-row']
|
|
16790
16766
|
}, children, additionalColumns.map((_, index) => React__default.createElement("span", {
|
|
16791
16767
|
key: index,
|
|
16792
16768
|
"data-testid": "empty-cell"
|
|
16793
16769
|
})));
|
|
16794
16770
|
};
|
|
16795
16771
|
|
|
16796
|
-
var styles$
|
|
16772
|
+
var styles$z = {"text-field":"_JaB08","text-field--focus":"_62RIR","text-field--disabled":"_CDt23","text-field--invalid":"_wf4XP","text-field__toolbar":"_7xVsj"};
|
|
16797
16773
|
|
|
16798
16774
|
const useGrowTextAreaRef = (minHeight, maxHeight, autoGrow, forwardedRef) => {
|
|
16799
16775
|
const textareaRef = useRef(null);
|
|
@@ -16863,10 +16839,10 @@ const TextAreaField = ({
|
|
|
16863
16839
|
return React__default.createElement(Field, _extends({}, fieldProps, {
|
|
16864
16840
|
characterCount: controllers.value !== undefined && maxLength ? maxLength - controllers.value.length : undefined
|
|
16865
16841
|
}), React__default.createElement("div", {
|
|
16866
|
-
className: classnames(styles$
|
|
16867
|
-
[styles$
|
|
16868
|
-
[styles$
|
|
16869
|
-
[styles$
|
|
16842
|
+
className: classnames(styles$z['text-field'], {
|
|
16843
|
+
[styles$z['text-field--invalid']]: hasError,
|
|
16844
|
+
[styles$z['text-field--disabled']]: disabled,
|
|
16845
|
+
[styles$z['text-field--focus']]: hasFocus
|
|
16870
16846
|
}),
|
|
16871
16847
|
ref: containerRef,
|
|
16872
16848
|
onClick: event => {
|
|
@@ -16898,7 +16874,7 @@ const TextAreaField = ({
|
|
|
16898
16874
|
ref: textAreaRef,
|
|
16899
16875
|
maxLength: maxLength
|
|
16900
16876
|
}), toolbar && React__default.createElement("div", {
|
|
16901
|
-
className: styles$
|
|
16877
|
+
className: styles$z['text-field__toolbar'],
|
|
16902
16878
|
id: `${controllers.id}-toolbar`,
|
|
16903
16879
|
ref: toolbarRef,
|
|
16904
16880
|
onClick: event => {
|
|
@@ -16935,7 +16911,7 @@ const TextFieldElement = (_ref, ref) => {
|
|
|
16935
16911
|
*/
|
|
16936
16912
|
const TextField = forwardRef(TextFieldElement);
|
|
16937
16913
|
|
|
16938
|
-
var styles$
|
|
16914
|
+
var styles$y = {"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"};
|
|
16939
16915
|
|
|
16940
16916
|
const useMultiSelectFieldControllers = ({
|
|
16941
16917
|
name,
|
|
@@ -17000,10 +16976,10 @@ const CreatableOption = ({
|
|
|
17000
16976
|
};
|
|
17001
16977
|
return React__default.createElement(React__default.Fragment, null, !isCreatingOption && React__default.createElement("div", {
|
|
17002
16978
|
key: 'pill-select-field-create-option',
|
|
17003
|
-
className: styles$
|
|
16979
|
+
className: styles$y['pill-select-field']
|
|
17004
16980
|
}, React__default.createElement("button", {
|
|
17005
16981
|
"data-testid": testId ? `${testId}-create-option` : undefined,
|
|
17006
|
-
className: styles$
|
|
16982
|
+
className: styles$y['pill-select-field__add-new-input'],
|
|
17007
16983
|
onClick: () => {
|
|
17008
16984
|
setIsCreatingOption(true);
|
|
17009
16985
|
setNewOptionLabel('');
|
|
@@ -17012,9 +16988,9 @@ const CreatableOption = ({
|
|
|
17012
16988
|
size: "small"
|
|
17013
16989
|
}), createOptionLabel)), isCreatingOption && React__default.createElement("div", {
|
|
17014
16990
|
key: 'pill-select-field-creating-option',
|
|
17015
|
-
className: styles$
|
|
16991
|
+
className: styles$y['pill-select-field']
|
|
17016
16992
|
}, React__default.createElement("input", {
|
|
17017
|
-
className: styles$
|
|
16993
|
+
className: styles$y['pill-select-field__creating-input'],
|
|
17018
16994
|
name: `${name}-pill-select-field-creating-option`,
|
|
17019
16995
|
id: 'pill-select-field-creating-option',
|
|
17020
16996
|
type: "text",
|
|
@@ -17035,7 +17011,7 @@ const CreatableOption = ({
|
|
|
17035
17011
|
}
|
|
17036
17012
|
}
|
|
17037
17013
|
}), React__default.createElement("span", {
|
|
17038
|
-
className: styles$
|
|
17014
|
+
className: styles$y['pill-select-field__creating-custom-input']
|
|
17039
17015
|
}, !newOptionLabel && React__default.createElement(Text, {
|
|
17040
17016
|
as: "body",
|
|
17041
17017
|
color: "surface-on-color-disabled"
|
|
@@ -17086,7 +17062,7 @@ const PillSelectField = ({
|
|
|
17086
17062
|
}
|
|
17087
17063
|
};
|
|
17088
17064
|
return React__default.createElement("button", {
|
|
17089
|
-
className: styles$
|
|
17065
|
+
className: styles$y['pill-select-field__removable-icon'],
|
|
17090
17066
|
onClick: handleClick,
|
|
17091
17067
|
disabled: disabled
|
|
17092
17068
|
}, React__default.createElement(IconTimes, {
|
|
@@ -17103,7 +17079,7 @@ const PillSelectField = ({
|
|
|
17103
17079
|
const itemId = `${controllers.id}-${itemIdentifier}`;
|
|
17104
17080
|
return React__default.createElement("div", {
|
|
17105
17081
|
key: itemIdentifier,
|
|
17106
|
-
className: styles$
|
|
17082
|
+
className: styles$y['pill-select-field']
|
|
17107
17083
|
}, React__default.createElement("input", {
|
|
17108
17084
|
name: `${name}-${itemIdentifier}`,
|
|
17109
17085
|
id: itemId,
|
|
@@ -17123,7 +17099,7 @@ const PillSelectField = ({
|
|
|
17123
17099
|
controllers.onChange(newValue);
|
|
17124
17100
|
}
|
|
17125
17101
|
}), React__default.createElement("span", {
|
|
17126
|
-
className: styles$
|
|
17102
|
+
className: styles$y['pill-select-field__custom-input']
|
|
17127
17103
|
}, option.label, option.isRemovable && React__default.createElement(RemoveButton, {
|
|
17128
17104
|
option: option
|
|
17129
17105
|
})));
|
|
@@ -17135,7 +17111,7 @@ const PillSelectField = ({
|
|
|
17135
17111
|
})));
|
|
17136
17112
|
};
|
|
17137
17113
|
|
|
17138
|
-
var styles$
|
|
17114
|
+
var styles$x = {"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"};
|
|
17139
17115
|
|
|
17140
17116
|
const toKey = d => `${d.getFullYear()}-${d.getMonth()}-${d.getDate()}`;
|
|
17141
17117
|
/**
|
|
@@ -17180,14 +17156,14 @@ const WeekSelectField = ({
|
|
|
17180
17156
|
caption: caption,
|
|
17181
17157
|
error: error
|
|
17182
17158
|
}, React__default.createElement("div", {
|
|
17183
|
-
className: styles$
|
|
17159
|
+
className: styles$x['week-select-field']
|
|
17184
17160
|
}, days.map((day, index) => {
|
|
17185
17161
|
const key = toKey(day);
|
|
17186
17162
|
const isChecked = selectedKeys.has(key);
|
|
17187
17163
|
const itemId = `${id}-${key}`;
|
|
17188
17164
|
return React__default.createElement("div", {
|
|
17189
17165
|
key: key,
|
|
17190
|
-
className: styles$
|
|
17166
|
+
className: styles$x['week-select-field__day']
|
|
17191
17167
|
}, React__default.createElement("input", {
|
|
17192
17168
|
type: "checkbox",
|
|
17193
17169
|
id: itemId,
|
|
@@ -17202,11 +17178,11 @@ const WeekSelectField = ({
|
|
|
17202
17178
|
handleChange(newValue);
|
|
17203
17179
|
}
|
|
17204
17180
|
}), React__default.createElement("span", {
|
|
17205
|
-
className: styles$
|
|
17181
|
+
className: styles$x['week-select-field__day-pill']
|
|
17206
17182
|
}, React__default.createElement("span", {
|
|
17207
|
-
className: styles$
|
|
17183
|
+
className: styles$x['week-select-field__day-abbr']
|
|
17208
17184
|
}, _displayFormat === 'month' ? monthAbbr[day.getMonth()] : dayAbbr[day.getDay()]), React__default.createElement("span", {
|
|
17209
|
-
className: styles$
|
|
17185
|
+
className: styles$x['week-select-field__day-num']
|
|
17210
17186
|
}, day.getDate())));
|
|
17211
17187
|
})));
|
|
17212
17188
|
};
|
|
@@ -17248,9 +17224,9 @@ const useRadioGroupFieldContext = () => {
|
|
|
17248
17224
|
return context;
|
|
17249
17225
|
};
|
|
17250
17226
|
|
|
17251
|
-
var styles$
|
|
17227
|
+
var styles$w = {"label":"_xzukU","label--truncate":"_iVWRB","caption":"_JNfQO","radio-group-field__label":"_2KvuU","radio-group-field__caption":"_ZeIOd"};
|
|
17252
17228
|
|
|
17253
|
-
var styles$
|
|
17229
|
+
var styles$v = {"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"};
|
|
17254
17230
|
|
|
17255
17231
|
const RadioGroupBoxOption = ({
|
|
17256
17232
|
value,
|
|
@@ -17267,7 +17243,7 @@ const RadioGroupBoxOption = ({
|
|
|
17267
17243
|
id: inputId
|
|
17268
17244
|
});
|
|
17269
17245
|
return React__default.createElement("label", {
|
|
17270
|
-
className: styles$
|
|
17246
|
+
className: styles$v['radio-group-box-option'],
|
|
17271
17247
|
"data-testid": testId
|
|
17272
17248
|
}, React__default.createElement("input", {
|
|
17273
17249
|
type: "radio",
|
|
@@ -17278,8 +17254,8 @@ const RadioGroupBoxOption = ({
|
|
|
17278
17254
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
17279
17255
|
disabled: radioGroupContext.disabled || disabled
|
|
17280
17256
|
}), React__default.createElement("div", {
|
|
17281
|
-
className: classnames(styles$
|
|
17282
|
-
[styles$
|
|
17257
|
+
className: classnames(styles$v['radio-group-box-option__box'], {
|
|
17258
|
+
[styles$v['radio-group-box-option__box--disabled']]: radioGroupContext.disabled || disabled
|
|
17283
17259
|
})
|
|
17284
17260
|
}, React__default.createElement(Stack, {
|
|
17285
17261
|
space: 16,
|
|
@@ -17289,17 +17265,17 @@ const RadioGroupBoxOption = ({
|
|
|
17289
17265
|
space: 8,
|
|
17290
17266
|
alignItems: "center"
|
|
17291
17267
|
}, label && React__default.createElement("div", {
|
|
17292
|
-
className: classnames(styles$
|
|
17293
|
-
[styles$
|
|
17268
|
+
className: classnames(styles$v['radio-group-box-option__label'], {
|
|
17269
|
+
[styles$v['radio-group-box-option__label--disabled']]: radioGroupContext.disabled || disabled
|
|
17294
17270
|
})
|
|
17295
17271
|
}, label), caption && React__default.createElement("div", {
|
|
17296
|
-
className: classnames(styles$
|
|
17297
|
-
[styles$
|
|
17272
|
+
className: classnames(styles$v['radio-group-box-option__caption'], {
|
|
17273
|
+
[styles$v['radio-group-box-option__caption--disabled']]: radioGroupContext.disabled || disabled
|
|
17298
17274
|
})
|
|
17299
17275
|
}, caption)))));
|
|
17300
17276
|
};
|
|
17301
17277
|
|
|
17302
|
-
var styles$
|
|
17278
|
+
var styles$u = {"radio-group-option":"_7fVpn","radio-group-option__caption":"_VD7SO","radio-group-option__custom-input":"_Yfxkl"};
|
|
17303
17279
|
|
|
17304
17280
|
/** RadioGroupField form element. */
|
|
17305
17281
|
const RadioGroupOption = ({
|
|
@@ -17321,7 +17297,7 @@ const RadioGroupOption = ({
|
|
|
17321
17297
|
space: 8,
|
|
17322
17298
|
alignItems: "center"
|
|
17323
17299
|
}, React__default.createElement("div", {
|
|
17324
|
-
className: styles$
|
|
17300
|
+
className: styles$u['radio-group-option']
|
|
17325
17301
|
}, React__default.createElement("input", {
|
|
17326
17302
|
type: "radio",
|
|
17327
17303
|
"data-testid": testId,
|
|
@@ -17332,11 +17308,11 @@ const RadioGroupOption = ({
|
|
|
17332
17308
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
17333
17309
|
disabled: radioGroupContext.disabled || disabled
|
|
17334
17310
|
}), React__default.createElement("span", {
|
|
17335
|
-
className: styles$
|
|
17311
|
+
className: styles$u['radio-group-option__custom-input']
|
|
17336
17312
|
})), label && React__default.createElement(Label, {
|
|
17337
17313
|
htmlFor: id
|
|
17338
17314
|
}, label)), caption && React__default.createElement("div", {
|
|
17339
|
-
className: styles$
|
|
17315
|
+
className: styles$u['radio-group-option__caption']
|
|
17340
17316
|
}, React__default.createElement(Caption, {
|
|
17341
17317
|
fieldId: id
|
|
17342
17318
|
}, caption)));
|
|
@@ -17467,7 +17443,7 @@ const RadioGroupField = ({
|
|
|
17467
17443
|
}, React__default.createElement(Stack, {
|
|
17468
17444
|
space: _space
|
|
17469
17445
|
}, label && React__default.createElement("div", {
|
|
17470
|
-
className: styles$
|
|
17446
|
+
className: styles$w['radio-group-field__label']
|
|
17471
17447
|
}, label), React__default.createElement(Stack, {
|
|
17472
17448
|
space: 8
|
|
17473
17449
|
}, optionsType === OPTION_TYPES.RADIO ? React__default.createElement(RadioOptions, {
|
|
@@ -17479,21 +17455,21 @@ const RadioGroupField = ({
|
|
|
17479
17455
|
testId: testId,
|
|
17480
17456
|
space: _space
|
|
17481
17457
|
}, children), caption && React__default.createElement("div", {
|
|
17482
|
-
className: styles$
|
|
17458
|
+
className: styles$w['radio-group-caption']
|
|
17483
17459
|
}, caption), controllers.error && React__default.createElement(ErrorMessage, null, controllers.error))));
|
|
17484
17460
|
};
|
|
17485
17461
|
|
|
17486
|
-
var styles$
|
|
17462
|
+
var styles$t = {"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"};
|
|
17487
17463
|
|
|
17488
|
-
var styles$
|
|
17464
|
+
var styles$s = {"password-criteria":"_1ruWK","password-criteria--invalid":"_xR7tb"};
|
|
17489
17465
|
|
|
17490
17466
|
const PasswordCriteria = ({
|
|
17491
17467
|
met,
|
|
17492
17468
|
children
|
|
17493
17469
|
}) => {
|
|
17494
17470
|
return React__default.createElement("span", {
|
|
17495
|
-
className: classnames(styles$
|
|
17496
|
-
[styles$
|
|
17471
|
+
className: classnames(styles$s['password-criteria'], {
|
|
17472
|
+
[styles$s['password-criteria--invalid']]: !met
|
|
17497
17473
|
})
|
|
17498
17474
|
}, React__default.createElement(Inline, {
|
|
17499
17475
|
space: met ? 4 : 8
|
|
@@ -17567,12 +17543,12 @@ const PasswordField = ({
|
|
|
17567
17543
|
error: controllers.error
|
|
17568
17544
|
};
|
|
17569
17545
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
17570
|
-
className: styles$
|
|
17546
|
+
className: styles$t['password-container']
|
|
17571
17547
|
}, React__default.createElement("input", {
|
|
17572
17548
|
name: name,
|
|
17573
17549
|
id: controllers.id,
|
|
17574
|
-
className: classnames(styles$
|
|
17575
|
-
[styles$
|
|
17550
|
+
className: classnames(styles$t['text-field'], {
|
|
17551
|
+
[styles$t['text-field--invalid']]: hasError
|
|
17576
17552
|
}),
|
|
17577
17553
|
type: type,
|
|
17578
17554
|
"data-testid": testId,
|
|
@@ -17586,8 +17562,8 @@ const PasswordField = ({
|
|
|
17586
17562
|
onChange: controllers.onChange,
|
|
17587
17563
|
onBlur: controllers.onBlur
|
|
17588
17564
|
}), React__default.createElement("div", {
|
|
17589
|
-
className: classnames(styles$
|
|
17590
|
-
[styles$
|
|
17565
|
+
className: classnames(styles$t['password-toggle'], {
|
|
17566
|
+
[styles$t['password-toggle--disabled']]: disabled
|
|
17591
17567
|
}),
|
|
17592
17568
|
onClick: toggleType,
|
|
17593
17569
|
onKeyPress: toggleType,
|
|
@@ -17689,7 +17665,7 @@ const MultiSelectField = ({
|
|
|
17689
17665
|
})));
|
|
17690
17666
|
};
|
|
17691
17667
|
|
|
17692
|
-
var styles$
|
|
17668
|
+
var styles$r = {"custom-list":"_cSkvD"};
|
|
17693
17669
|
|
|
17694
17670
|
const _excluded$b4 = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad", "isLoadingMore"];
|
|
17695
17671
|
const CustomList = _ref => {
|
|
@@ -17712,7 +17688,7 @@ const CustomList = _ref => {
|
|
|
17712
17688
|
})) : showFooter && props.options.length > 0 && React__default.createElement(Inline, {
|
|
17713
17689
|
justifyContent: "center"
|
|
17714
17690
|
}, React__default.createElement("div", {
|
|
17715
|
-
className: styles$
|
|
17691
|
+
className: styles$r['custom-list']
|
|
17716
17692
|
}, __('moreOptionsPlaceholder')))));
|
|
17717
17693
|
};
|
|
17718
17694
|
|
|
@@ -18073,7 +18049,7 @@ const getFormikError = error => {
|
|
|
18073
18049
|
return undefined;
|
|
18074
18050
|
};
|
|
18075
18051
|
|
|
18076
|
-
var styles$
|
|
18052
|
+
var styles$q = {"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"};
|
|
18077
18053
|
|
|
18078
18054
|
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"};
|
|
18079
18055
|
|
|
@@ -18139,9 +18115,9 @@ const DateRangeCalendar = ({
|
|
|
18139
18115
|
const MONTH_NAMES = getMonths(translate);
|
|
18140
18116
|
const highlight = buildHighlightDayPickerProps(highlightedDays);
|
|
18141
18117
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
18142
|
-
className: styles$
|
|
18118
|
+
className: styles$1c['calendar']
|
|
18143
18119
|
}, React__default.createElement("div", {
|
|
18144
|
-
className: styles$
|
|
18120
|
+
className: styles$1c['calendar__overlay'],
|
|
18145
18121
|
ref: ref => setCalendarRef(ref),
|
|
18146
18122
|
style: _extends({}, calendarPosition, {
|
|
18147
18123
|
zIndex: getZIndex('dropdown')
|
|
@@ -18341,9 +18317,9 @@ const DateRangeField = ({
|
|
|
18341
18317
|
end
|
|
18342
18318
|
} = controllers.value;
|
|
18343
18319
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
18344
|
-
className: classnames(styles$
|
|
18345
|
-
[styles$
|
|
18346
|
-
[styles$
|
|
18320
|
+
className: classnames(styles$q['date-range-field'], {
|
|
18321
|
+
[styles$q['date-range-field--invalid']]: hasError,
|
|
18322
|
+
[styles$q['date-range-field--disabled']]: disabled
|
|
18347
18323
|
}),
|
|
18348
18324
|
"data-testid": testId
|
|
18349
18325
|
}, React__default.createElement(IconCalendarAlt, {
|
|
@@ -18669,7 +18645,7 @@ const TimeRangeSelector = forwardRef(TimeFieldElement);
|
|
|
18669
18645
|
*/
|
|
18670
18646
|
const TimeField = forwardRef(TimeFieldElement);
|
|
18671
18647
|
|
|
18672
|
-
var styles$
|
|
18648
|
+
var styles$p = {"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"};
|
|
18673
18649
|
|
|
18674
18650
|
const TimeRangeEnd = ({
|
|
18675
18651
|
startTime,
|
|
@@ -18791,9 +18767,9 @@ const TimeRangeField = ({
|
|
|
18791
18767
|
end
|
|
18792
18768
|
}) : getDuration(end, start, subtractDuration);
|
|
18793
18769
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
18794
|
-
className: classnames(styles$
|
|
18795
|
-
[styles$
|
|
18796
|
-
[styles$
|
|
18770
|
+
className: classnames(styles$p['time-range-field'], {
|
|
18771
|
+
[styles$p['time-range-field--invalid']]: hasError,
|
|
18772
|
+
[styles$p['time-range-field--disabled']]: disabled
|
|
18797
18773
|
}),
|
|
18798
18774
|
"data-testid": testId
|
|
18799
18775
|
}, React__default.createElement(TimeRangeStart, {
|
|
@@ -18821,7 +18797,7 @@ const TimeRangeField = ({
|
|
|
18821
18797
|
})));
|
|
18822
18798
|
};
|
|
18823
18799
|
|
|
18824
|
-
var styles$
|
|
18800
|
+
var styles$o = {"currency-field":"_GyYnE","currency-field--with-mask":"_NfdKk","currency-field__mask-display":"_ddacu","currency-field__mask-display--disabled":"_o1-zA"};
|
|
18825
18801
|
|
|
18826
18802
|
const CURRENCY_DISPLAY_DEFAULT_MARGIN = 8;
|
|
18827
18803
|
const CURRENCY_DISPLAY_MARGIN_BUFFER = 1;
|
|
@@ -18887,12 +18863,12 @@ const CurrencyFieldElement = (_ref, forwardedRef) => {
|
|
|
18887
18863
|
setShowMask(false);
|
|
18888
18864
|
inputProps.onFocus(e);
|
|
18889
18865
|
},
|
|
18890
|
-
className: classnames(inputProps.className, styles$
|
|
18891
|
-
[styles$
|
|
18866
|
+
className: classnames(inputProps.className, styles$o['currency-field'], {
|
|
18867
|
+
[styles$o['currency-field--with-mask']]: showMask && !!inputProps.value
|
|
18892
18868
|
})
|
|
18893
18869
|
}))), showMask && !!inputProps.value && React__default.createElement("div", {
|
|
18894
|
-
className: classnames(styles$
|
|
18895
|
-
[styles$
|
|
18870
|
+
className: classnames(styles$o['currency-field__mask-display'], {
|
|
18871
|
+
[styles$o['currency-field__mask-display--disabled']]: inputProps.disabled
|
|
18896
18872
|
}),
|
|
18897
18873
|
style: {
|
|
18898
18874
|
marginLeft: displayPadding
|
|
@@ -19021,7 +18997,7 @@ const FormFeedback = ({
|
|
|
19021
18997
|
}, children);
|
|
19022
18998
|
};
|
|
19023
18999
|
|
|
19024
|
-
var styles$
|
|
19000
|
+
var styles$n = {"phone-field":"_Q0GfJ","phone-field__flag":"_-uOqW","phone-field__input":"_Hes9b","phone-field__input--with-square-borders":"_TEU6N"};
|
|
19025
19001
|
|
|
19026
19002
|
const usePhoneFieldControllers = ({
|
|
19027
19003
|
name,
|
|
@@ -19164,8 +19140,8 @@ const usePhoneField = ({
|
|
|
19164
19140
|
'aria-describedby': hasError ? `${controllers.id}-error-message` : `${controllers.id}-describer`,
|
|
19165
19141
|
'aria-invalid': hasError,
|
|
19166
19142
|
autoFocus,
|
|
19167
|
-
className: classnames(styles$
|
|
19168
|
-
[styles$
|
|
19143
|
+
className: classnames(styles$1w['text-field'], {
|
|
19144
|
+
[styles$1w['text-field--invalid']]: hasError
|
|
19169
19145
|
}),
|
|
19170
19146
|
'data-testid': testId,
|
|
19171
19147
|
disabled,
|
|
@@ -19935,7 +19911,7 @@ const COUNTRIES = {
|
|
|
19935
19911
|
};
|
|
19936
19912
|
const COUNTRY_CODES = Object.keys(COUNTRIES);
|
|
19937
19913
|
|
|
19938
|
-
var styles$
|
|
19914
|
+
var styles$m = {"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"};
|
|
19939
19915
|
|
|
19940
19916
|
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"};
|
|
19941
19917
|
|
|
@@ -19949,21 +19925,21 @@ const CountrySelector = ({
|
|
|
19949
19925
|
}) => {
|
|
19950
19926
|
const resolvedPriorityCountries = [country, ..._priorityCountries].filter((code, index, arr) => arr.indexOf(code) === index && code in COUNTRIES);
|
|
19951
19927
|
return React__default.createElement("div", {
|
|
19952
|
-
className: classnames(styles$
|
|
19953
|
-
[styles$
|
|
19954
|
-
[styles$
|
|
19928
|
+
className: classnames(styles$m['country-selector'], {
|
|
19929
|
+
[styles$m['country-selector--with-error']]: hasError,
|
|
19930
|
+
[styles$m['country-selector--disabled']]: disabled
|
|
19955
19931
|
})
|
|
19956
19932
|
}, React__default.createElement(Dropdown, {
|
|
19957
19933
|
trigger: React__default.createElement("div", {
|
|
19958
|
-
className: classnames(styles$
|
|
19959
|
-
[styles$
|
|
19960
|
-
[styles$
|
|
19934
|
+
className: classnames(styles$m['country-selector__trigger'], {
|
|
19935
|
+
[styles$m['country-selector__trigger--with-error']]: hasError,
|
|
19936
|
+
[styles$m['country-selector__trigger--disabled']]: disabled
|
|
19961
19937
|
})
|
|
19962
19938
|
}, React__default.createElement(Inline, {
|
|
19963
19939
|
space: 8,
|
|
19964
19940
|
alignItems: "center"
|
|
19965
19941
|
}, React__default.createElement("span", {
|
|
19966
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLowerCase()}`], styles$
|
|
19942
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLowerCase()}`], styles$m['country-selector__trigger-flag'])
|
|
19967
19943
|
}), React__default.createElement(IconChevronDown, {
|
|
19968
19944
|
color: "currentColor",
|
|
19969
19945
|
size: "medium"
|
|
@@ -19977,7 +19953,7 @@ const CountrySelector = ({
|
|
|
19977
19953
|
alignItems: "center",
|
|
19978
19954
|
space: 12
|
|
19979
19955
|
}, React__default.createElement("span", {
|
|
19980
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$
|
|
19956
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$m['country-selector__flag'])
|
|
19981
19957
|
}), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)))), React__default.createElement(DropdownListDivider, null), COUNTRY_CODES.map(countryCode => React__default.createElement(DropdownListItem, {
|
|
19982
19958
|
onClick: () => onChange(countryCode),
|
|
19983
19959
|
key: countryCode
|
|
@@ -19985,7 +19961,7 @@ const CountrySelector = ({
|
|
|
19985
19961
|
alignItems: "center",
|
|
19986
19962
|
space: 12
|
|
19987
19963
|
}, React__default.createElement("span", {
|
|
19988
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$
|
|
19964
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$m['country-selector__flag'])
|
|
19989
19965
|
}), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)))))));
|
|
19990
19966
|
};
|
|
19991
19967
|
|
|
@@ -20062,7 +20038,7 @@ const PhoneField = _ref => {
|
|
|
20062
20038
|
}
|
|
20063
20039
|
};
|
|
20064
20040
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
20065
|
-
className: styles$
|
|
20041
|
+
className: styles$n['phone-field']
|
|
20066
20042
|
}, !disabledCountry && React__default.createElement(CountrySelector, {
|
|
20067
20043
|
country: selectedCountry,
|
|
20068
20044
|
onChange: handleCountryChange,
|
|
@@ -20074,19 +20050,19 @@ const PhoneField = _ref => {
|
|
|
20074
20050
|
space: 4,
|
|
20075
20051
|
alignItems: "center"
|
|
20076
20052
|
}, React__default.createElement("span", {
|
|
20077
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$
|
|
20053
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$n['country-selector__flag'])
|
|
20078
20054
|
}), React__default.createElement("span", null, "+", getCountryCallingCode(selectedCountry))) : `+${getCountryCallingCode(selectedCountry)}`
|
|
20079
20055
|
}, React__default.createElement("input", _extends({}, inputProps, {
|
|
20080
20056
|
type: "tel",
|
|
20081
|
-
className: classnames(inputProps.className, styles$
|
|
20082
|
-
[styles$
|
|
20057
|
+
className: classnames(inputProps.className, styles$n['phone-field__input'], {
|
|
20058
|
+
[styles$n['phone-field__input--with-square-borders']]: !disabledCountry
|
|
20083
20059
|
}),
|
|
20084
20060
|
onChange: handlePhoneChange,
|
|
20085
20061
|
onBlur: handlePhoneBlur
|
|
20086
20062
|
})))));
|
|
20087
20063
|
};
|
|
20088
20064
|
|
|
20089
|
-
var styles$
|
|
20065
|
+
var styles$l = {"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"};
|
|
20090
20066
|
|
|
20091
20067
|
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'];
|
|
20092
20068
|
|
|
@@ -20300,7 +20276,7 @@ const OverlayContent = ({
|
|
|
20300
20276
|
return React__default.createElement("div", {
|
|
20301
20277
|
style: overlayStyle,
|
|
20302
20278
|
ref: overlayRef,
|
|
20303
|
-
className: styles$
|
|
20279
|
+
className: styles$l['color-overlay'],
|
|
20304
20280
|
role: "dialog"
|
|
20305
20281
|
}, SEQUENTIAL_COLORS.map((color, index) => React__default.createElement(ColorDisplay, {
|
|
20306
20282
|
key: color,
|
|
@@ -20310,7 +20286,7 @@ const OverlayContent = ({
|
|
|
20310
20286
|
onClick: () => onSelect(color),
|
|
20311
20287
|
onHover: () => setSelectedColorIndex(null)
|
|
20312
20288
|
})), allowCustomColor && React__default.createElement("div", {
|
|
20313
|
-
className: styles$
|
|
20289
|
+
className: styles$l['color-overlay__custom-color']
|
|
20314
20290
|
}, React__default.createElement(Button, {
|
|
20315
20291
|
ref: customButtonRef,
|
|
20316
20292
|
size: "full-width",
|
|
@@ -20324,12 +20300,12 @@ const ColorDisplay = ({
|
|
|
20324
20300
|
onClick,
|
|
20325
20301
|
onHover
|
|
20326
20302
|
}) => React__default.createElement("button", {
|
|
20327
|
-
className: styles$
|
|
20303
|
+
className: styles$l['color-overlay__color-display-container'],
|
|
20328
20304
|
onClick: () => onClick(color)
|
|
20329
20305
|
}, React__default.createElement("div", {
|
|
20330
|
-
className: classnames(styles$
|
|
20331
|
-
[styles$
|
|
20332
|
-
[styles$
|
|
20306
|
+
className: classnames(styles$l['color-overlay__color-display-circle'], {
|
|
20307
|
+
[styles$l['color-overlay__color-display-circle--selected']]: isSelected,
|
|
20308
|
+
[styles$l['color-overlay__color-display-circle--focused']]: isFocused
|
|
20333
20309
|
}),
|
|
20334
20310
|
onMouseEnter: onHover,
|
|
20335
20311
|
style: {
|
|
@@ -20337,13 +20313,13 @@ const ColorDisplay = ({
|
|
|
20337
20313
|
}
|
|
20338
20314
|
}));
|
|
20339
20315
|
|
|
20340
|
-
var styles$
|
|
20316
|
+
var styles$k = {"color-swatch":"_UUuiJ"};
|
|
20341
20317
|
|
|
20342
20318
|
const ColorSwatch = ({
|
|
20343
20319
|
color
|
|
20344
20320
|
}) => {
|
|
20345
20321
|
return React__default.createElement("div", {
|
|
20346
|
-
className: styles$
|
|
20322
|
+
className: styles$k['color-swatch'],
|
|
20347
20323
|
style: {
|
|
20348
20324
|
backgroundColor: color
|
|
20349
20325
|
}
|
|
@@ -20423,7 +20399,7 @@ const findSeqTokenByHex = value => {
|
|
|
20423
20399
|
return SEQUENTIAL_COLORS.find(token => normalizeHex(SEQUENTIAL_COLOR_CODES.light[token]) === target || normalizeHex(SEQUENTIAL_COLOR_CODES.dark[token]) === target);
|
|
20424
20400
|
};
|
|
20425
20401
|
|
|
20426
|
-
var styles$
|
|
20402
|
+
var styles$j = {"custom-color-picker":"_OHgPk"};
|
|
20427
20403
|
|
|
20428
20404
|
/**
|
|
20429
20405
|
* A visually hidden native color input. It is kept mounted on the field (not
|
|
@@ -20474,12 +20450,12 @@ const CustomColorPicker = forwardRef(({
|
|
|
20474
20450
|
type: "color",
|
|
20475
20451
|
"aria-hidden": "true",
|
|
20476
20452
|
tabIndex: -1,
|
|
20477
|
-
className: styles$
|
|
20453
|
+
className: styles$j['custom-color-picker'],
|
|
20478
20454
|
defaultValue: safeColor
|
|
20479
20455
|
});
|
|
20480
20456
|
});
|
|
20481
20457
|
|
|
20482
|
-
var styles$
|
|
20458
|
+
var styles$i = {"color-field":"_KJawn"};
|
|
20483
20459
|
|
|
20484
20460
|
const ColorFieldElement = (props, ref) => {
|
|
20485
20461
|
const {
|
|
@@ -20517,7 +20493,7 @@ const ColorFieldElement = (props, ref) => {
|
|
|
20517
20493
|
(_customPickerRef$curr = customPickerRef.current) == null || _customPickerRef$curr.open();
|
|
20518
20494
|
};
|
|
20519
20495
|
return React__default.createElement(Fragment, null, React__default.createElement("div", {
|
|
20520
|
-
className: styles$
|
|
20496
|
+
className: styles$i['color-field']
|
|
20521
20497
|
}, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
20522
20498
|
prefix: React__default.createElement(ColorSwatch, {
|
|
20523
20499
|
color: getCurrentColor()
|
|
@@ -20616,19 +20592,73 @@ const lastOfMonth = () => {
|
|
|
20616
20592
|
|
|
20617
20593
|
const isValidPhoneNumber = value => !value || isValidPhoneNumber$1(value);
|
|
20618
20594
|
|
|
20619
|
-
var styles$
|
|
20595
|
+
var styles$h = {"avatar":"_V1U8v","avatar__container":"_peAaI","avatar--small":"_9g-tn","avatar__badge":"_uViot","avatar--medium":"_vNXJW","avatar--large":"_9ZKAB","avatar--extra-large":"_uv14Y"};
|
|
20596
|
+
|
|
20597
|
+
var styles$g = {"avatar-image":"_iDN1j"};
|
|
20620
20598
|
|
|
20621
20599
|
const AvatarImage = ({
|
|
20622
20600
|
url,
|
|
20601
|
+
color,
|
|
20623
20602
|
alt: _alt = 'Profile',
|
|
20624
|
-
onImageFallbackError
|
|
20625
|
-
|
|
20626
|
-
|
|
20627
|
-
|
|
20628
|
-
|
|
20629
|
-
|
|
20630
|
-
|
|
20631
|
-
|
|
20603
|
+
onImageFallbackError
|
|
20604
|
+
}) => {
|
|
20605
|
+
const [hasImageError, setHasImageError] = useState(false);
|
|
20606
|
+
if (url && !hasImageError) {
|
|
20607
|
+
return React__default.createElement("img", {
|
|
20608
|
+
src: url,
|
|
20609
|
+
alt: _alt,
|
|
20610
|
+
onError: () => {
|
|
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
|
+
}];
|
|
20632
20662
|
|
|
20633
20663
|
let elementCallbackMap = null;
|
|
20634
20664
|
function getElementCallbackMap() {
|
|
@@ -20709,30 +20739,18 @@ function useIsVisibleInViewPort() {
|
|
|
20709
20739
|
};
|
|
20710
20740
|
}
|
|
20711
20741
|
|
|
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
|
-
}
|
|
20720
20742
|
/**
|
|
20721
20743
|
* 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.
|
|
20722
20744
|
*/
|
|
20723
20745
|
const Avatar = ({
|
|
20724
20746
|
children,
|
|
20725
|
-
color,
|
|
20747
|
+
color: _color = COLORS['surface-on-color-subtle'],
|
|
20726
20748
|
size: _size = 'medium',
|
|
20727
20749
|
url: urlProp,
|
|
20728
20750
|
badge,
|
|
20729
20751
|
alt,
|
|
20730
20752
|
testId
|
|
20731
20753
|
}) => {
|
|
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'];
|
|
20736
20754
|
const {
|
|
20737
20755
|
isVisible,
|
|
20738
20756
|
elementRef
|
|
@@ -20747,47 +20765,32 @@ const Avatar = ({
|
|
|
20747
20765
|
}
|
|
20748
20766
|
}, [isVisible, hasBeenVisible]);
|
|
20749
20767
|
const url = hasBeenVisible ? urlProp : undefined;
|
|
20750
|
-
const [
|
|
20751
|
-
const [
|
|
20752
|
-
|
|
20753
|
-
|
|
20754
|
-
|
|
20755
|
-
|
|
20756
|
-
|
|
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
|
-
}
|
|
20765
|
-
}, React__default.createElement("div", {
|
|
20766
|
-
className: classnames(styles$g['avatar__container']),
|
|
20767
|
-
ref: elementRef,
|
|
20768
|
-
style: url && color ? {
|
|
20769
|
-
'--avatar-ring-color': resolvedColor
|
|
20770
|
-
} : undefined
|
|
20768
|
+
const [showIconInsteadOfImage, setShowIconInsteadOfImage] = useState(false);
|
|
20769
|
+
const [defaultProfilePictureColors] = useState(() => PROFILE_IMAGES[Math.floor(Math.random() * PROFILE_IMAGES.length)]);
|
|
20770
|
+
// If passing an url we are defaulting to a lighter grey while the image loads
|
|
20771
|
+
const backgroundColor = url ? COLORS['surface-container-highest'] : getColor(_color);
|
|
20772
|
+
return React__default.createElement("div", {
|
|
20773
|
+
className: classnames(styles$h['avatar__container']),
|
|
20774
|
+
ref: elementRef
|
|
20771
20775
|
}, React__default.createElement("div", {
|
|
20772
|
-
className: classnames(styles$
|
|
20773
|
-
[styles$
|
|
20774
|
-
[styles$
|
|
20775
|
-
[styles$
|
|
20776
|
-
[styles$
|
|
20777
|
-
[styles$g['avatar--loading']]: isImageLoading
|
|
20776
|
+
className: classnames(styles$h['avatar'], {
|
|
20777
|
+
[styles$h['avatar--small']]: _size === 'small',
|
|
20778
|
+
[styles$h['avatar--medium']]: _size === 'medium',
|
|
20779
|
+
[styles$h['avatar--large']]: _size === 'large',
|
|
20780
|
+
[styles$h['avatar--extra-large']]: _size === 'extra-large'
|
|
20778
20781
|
}),
|
|
20779
20782
|
style: {
|
|
20780
|
-
backgroundColor
|
|
20783
|
+
backgroundColor: children || url && !showIconInsteadOfImage ? backgroundColor : defaultProfilePictureColors.backgroundColor
|
|
20781
20784
|
},
|
|
20782
20785
|
"data-testid": testId
|
|
20783
|
-
},
|
|
20786
|
+
}, children || React__default.createElement(AvatarImage, {
|
|
20784
20787
|
url: url,
|
|
20788
|
+
color: defaultProfilePictureColors.avatarColor,
|
|
20785
20789
|
alt: alt,
|
|
20786
|
-
onImageFallbackError: () =>
|
|
20787
|
-
|
|
20788
|
-
|
|
20789
|
-
|
|
20790
|
-
}, badge))));
|
|
20790
|
+
onImageFallbackError: () => setShowIconInsteadOfImage(true)
|
|
20791
|
+
}), badge && _size !== 'small' && React__default.createElement("div", {
|
|
20792
|
+
className: styles$h['avatar__badge']
|
|
20793
|
+
}, badge)));
|
|
20791
20794
|
};
|
|
20792
20795
|
|
|
20793
20796
|
const CHIP_THEME = {
|