@7shifts/sous-chef 4.17.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +187 -45
- package/dist/index.css.map +1 -1
- package/dist/index.js +507 -441
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +693 -626
- package/dist/index.modern.js.map +1 -1
- package/dist/media/Avatar/Avatar.d.ts +22 -7
- package/dist/media/Avatar/constants.d.ts +17 -4
- package/dist/media/Avatar/index.d.ts +1 -0
- package/dist/media/Avatar/types.d.ts +3 -0
- package/dist/media/index.d.ts +1 -0
- package/llms-instructions/llms-composing-components.md +2 -2
- package/package.json +1 -1
- package/dist/media/Avatar/AvatarImage/AvatarImage.d.ts +0 -9
- package/dist/media/Avatar/AvatarImage/index.d.ts +0 -1
package/dist/index.modern.js
CHANGED
|
@@ -308,7 +308,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
308
308
|
return t;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
var styles$
|
|
311
|
+
var styles$1O = {"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"};
|
|
312
312
|
|
|
313
313
|
const usePositionStyles = ({
|
|
314
314
|
m,
|
|
@@ -426,15 +426,15 @@ const Flex = _ref => {
|
|
|
426
426
|
dataProps
|
|
427
427
|
} = getDataProps(otherProps);
|
|
428
428
|
const positionStyles = usePositionStyles(positionProps);
|
|
429
|
-
const className = classnames(styles$
|
|
430
|
-
[styles$
|
|
431
|
-
[styles$
|
|
432
|
-
[styles$
|
|
433
|
-
[styles$
|
|
434
|
-
[styles$
|
|
435
|
-
[styles$
|
|
436
|
-
[styles$
|
|
437
|
-
[styles$
|
|
429
|
+
const className = classnames(styles$1O['flex'], extraClass, {
|
|
430
|
+
[styles$1O['align-start']]: alignItems === 'flex-start',
|
|
431
|
+
[styles$1O['align-end']]: alignItems === 'flex-end',
|
|
432
|
+
[styles$1O['align-center']]: alignItems === 'center',
|
|
433
|
+
[styles$1O['justify-start']]: justifyContent === 'start',
|
|
434
|
+
[styles$1O['justify-end']]: justifyContent === 'end',
|
|
435
|
+
[styles$1O['justify-center']]: justifyContent === 'center',
|
|
436
|
+
[styles$1O['justify-space-between']]: justifyContent === 'space-between',
|
|
437
|
+
[styles$1O['inline-flex']]: inlineFlex
|
|
438
438
|
});
|
|
439
439
|
const items = React__default.Children.toArray(children).filter(Boolean);
|
|
440
440
|
const gap = typeof space === 'object' ? `${getSpaceToken(space.row)} ${getSpaceToken(space.column)}` : getSpaceToken(space);
|
|
@@ -449,8 +449,8 @@ const Flex = _ref => {
|
|
|
449
449
|
"data-testid": testId
|
|
450
450
|
}, dataProps), items.map((child, i) => React__default.createElement("div", {
|
|
451
451
|
key: i,
|
|
452
|
-
className: classnames(styles$
|
|
453
|
-
[styles$
|
|
452
|
+
className: classnames(styles$1O['flex__item'], {
|
|
453
|
+
[styles$1O['flex__item--flexible']]: flexItems
|
|
454
454
|
}),
|
|
455
455
|
style: {
|
|
456
456
|
flex: flex ? flex[i] || '0 1 auto' : '0 1 auto'
|
|
@@ -473,7 +473,7 @@ const Stack = _ref => {
|
|
|
473
473
|
}));
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
-
var styles$
|
|
476
|
+
var styles$1N = {"caption":"_tMhXr","label":"_NfOw5","label--truncate":"_M3aFK","toggle":"_QDQZ1","toggle__label":"_52dky","toggle__caption":"_A-tgL","toggle__switch":"_kBjjH"};
|
|
477
477
|
|
|
478
478
|
const _excluded$eu = ["checked", "label", "caption", "onChange", "disabled", "id", "testId"];
|
|
479
479
|
/**
|
|
@@ -498,7 +498,7 @@ const Toggle = _ref => {
|
|
|
498
498
|
return React__default.createElement(Stack, {
|
|
499
499
|
space: 8
|
|
500
500
|
}, React__default.createElement("label", _extends({}, dataProps, {
|
|
501
|
-
className: styles$
|
|
501
|
+
className: styles$1N['toggle']
|
|
502
502
|
}), React__default.createElement("input", {
|
|
503
503
|
type: "checkbox",
|
|
504
504
|
checked: checked,
|
|
@@ -507,11 +507,11 @@ const Toggle = _ref => {
|
|
|
507
507
|
id: id,
|
|
508
508
|
"data-testid": testId
|
|
509
509
|
}), React__default.createElement("span", {
|
|
510
|
-
className: styles$
|
|
510
|
+
className: styles$1N['toggle__switch']
|
|
511
511
|
}), label && React__default.createElement("span", {
|
|
512
|
-
className: styles$
|
|
512
|
+
className: styles$1N['toggle__label']
|
|
513
513
|
}, label)), caption && React__default.createElement("span", {
|
|
514
|
-
className: styles$
|
|
514
|
+
className: styles$1N['toggle__caption']
|
|
515
515
|
}, caption));
|
|
516
516
|
};
|
|
517
517
|
|
|
@@ -529,7 +529,7 @@ const SPINNER_THEMES = {
|
|
|
529
529
|
PRIDE: 'pride'
|
|
530
530
|
};
|
|
531
531
|
|
|
532
|
-
var styles$
|
|
532
|
+
var styles$1M = {"spinner":"_memxT","rotator":"_QieGp","spinner--block":"_VoFzz","path":"_KSRP9","dash":"_RyBY2","path--mint":"_-sIZJ","path--disabled":"_3fox0","path--contrast":"_VteKz","path--pride":"_7rzsv"};
|
|
533
533
|
|
|
534
534
|
/**
|
|
535
535
|
* Spinner is an animated indicator that shows content or an action is loading. Use it while waiting for data or for an action to finish.
|
|
@@ -542,10 +542,10 @@ const Spinner = ({
|
|
|
542
542
|
}) => {
|
|
543
543
|
return React__default.createElement("div", {
|
|
544
544
|
className: classnames({
|
|
545
|
-
[styles$
|
|
545
|
+
[styles$1M['spinner--block']]: _block
|
|
546
546
|
})
|
|
547
547
|
}, React__default.createElement("svg", {
|
|
548
|
-
className: styles$
|
|
548
|
+
className: styles$1M['spinner'],
|
|
549
549
|
xmlns: "http://www.w3.org/2000/svg",
|
|
550
550
|
width: _size,
|
|
551
551
|
height: _size,
|
|
@@ -620,7 +620,7 @@ const Spinner = ({
|
|
|
620
620
|
offset: "1",
|
|
621
621
|
stopColor: "#760088"
|
|
622
622
|
}))), React__default.createElement("circle", {
|
|
623
|
-
className: classnames(styles$
|
|
623
|
+
className: classnames(styles$1M['path'], styles$1M[`path--${_theme}`]),
|
|
624
624
|
fill: "none",
|
|
625
625
|
strokeWidth: "6",
|
|
626
626
|
strokeLinecap: "round",
|
|
@@ -630,9 +630,9 @@ const Spinner = ({
|
|
|
630
630
|
})));
|
|
631
631
|
};
|
|
632
632
|
|
|
633
|
-
var styles$
|
|
633
|
+
var styles$1L = {"tooltip":"_Ydu2O"};
|
|
634
634
|
|
|
635
|
-
var styles$
|
|
635
|
+
var styles$1K = {"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"};
|
|
636
636
|
|
|
637
637
|
const TOOLTIP_THEME = {
|
|
638
638
|
BLACK: 'black',
|
|
@@ -826,24 +826,24 @@ const TooltipOverlay = ({
|
|
|
826
826
|
maxHeight,
|
|
827
827
|
zIndex: getZIndex('tooltip')
|
|
828
828
|
}),
|
|
829
|
-
className: classnames(styles$
|
|
830
|
-
[styles$
|
|
831
|
-
[styles$
|
|
832
|
-
[styles$
|
|
829
|
+
className: classnames(styles$1K['tooltip-overlay'], extraClass, {
|
|
830
|
+
[styles$1K['tooltip-overlay--visible']]: isVisible,
|
|
831
|
+
[styles$1K['tooltip-overlay--black-theme']]: theme === TOOLTIP_THEME.BLACK,
|
|
832
|
+
[styles$1K['tooltip-overlay--white-theme']]: theme === TOOLTIP_THEME.WHITE
|
|
833
833
|
}),
|
|
834
834
|
onMouseEnter: onFocusIn,
|
|
835
835
|
onMouseLeave: onFocusOut
|
|
836
836
|
}, React__default.createElement(Stack, {
|
|
837
837
|
space: 8
|
|
838
838
|
}, header && React__default.createElement("div", {
|
|
839
|
-
className: styles$
|
|
839
|
+
className: styles$1K['tooltip-overlay__header']
|
|
840
840
|
}, header), children)), React__default.createElement("div", {
|
|
841
|
-
className: classnames(styles$
|
|
842
|
-
[styles$
|
|
843
|
-
[styles$
|
|
844
|
-
[styles$
|
|
845
|
-
[styles$
|
|
846
|
-
[styles$
|
|
841
|
+
className: classnames(styles$1K['tooltip-overlay-arrow'], extraClass, {
|
|
842
|
+
[styles$1K['tooltip-overlay-arrow--visible']]: isVisible,
|
|
843
|
+
[styles$1K['tooltip-overlay-arrow--top']]: position.actualPlacement.placement === TOOLTIP_PLACEMENT.TOP,
|
|
844
|
+
[styles$1K['tooltip-overlay-arrow--bottom']]: position.actualPlacement.placement === TOOLTIP_PLACEMENT.BOTTOM,
|
|
845
|
+
[styles$1K['tooltip-overlay-arrow--black-theme']]: theme === TOOLTIP_THEME.BLACK,
|
|
846
|
+
[styles$1K['tooltip-overlay-arrow--white-theme']]: theme === TOOLTIP_THEME.WHITE
|
|
847
847
|
}),
|
|
848
848
|
style: _extends({}, position.arrow, {
|
|
849
849
|
zIndex: getZIndex('tooltip')
|
|
@@ -955,7 +955,7 @@ const TooltipElement = ({
|
|
|
955
955
|
}), overlayElement);
|
|
956
956
|
}
|
|
957
957
|
return React__default.createElement("div", _extends({
|
|
958
|
-
className: classnames(styles$
|
|
958
|
+
className: classnames(styles$1L['tooltip'])
|
|
959
959
|
}, commonProps, {
|
|
960
960
|
ref: containerRef
|
|
961
961
|
}), children, overlayElement);
|
|
@@ -968,7 +968,7 @@ const isTooltipCompatible = element => {
|
|
|
968
968
|
return React__default.isValidElement(element) && typeof element.type === 'string';
|
|
969
969
|
};
|
|
970
970
|
|
|
971
|
-
var styles$
|
|
971
|
+
var styles$1J = {"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"};
|
|
972
972
|
|
|
973
973
|
const BUTTON_SIZES = {
|
|
974
974
|
FULL_WIDTH: 'full-width',
|
|
@@ -1063,24 +1063,24 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1063
1063
|
onBlur: onBlur,
|
|
1064
1064
|
onFocus: onFocus,
|
|
1065
1065
|
onKeyDown: onKeyDown,
|
|
1066
|
-
className: classnames(styles$
|
|
1067
|
-
[styles$
|
|
1068
|
-
[styles$
|
|
1069
|
-
[styles$
|
|
1070
|
-
[styles$
|
|
1071
|
-
[styles$
|
|
1072
|
-
[styles$
|
|
1073
|
-
[styles$
|
|
1074
|
-
[styles$
|
|
1075
|
-
[styles$
|
|
1076
|
-
[styles$
|
|
1077
|
-
[styles$
|
|
1078
|
-
[styles$
|
|
1079
|
-
[styles$
|
|
1080
|
-
[styles$
|
|
1081
|
-
[styles$
|
|
1082
|
-
[styles$
|
|
1083
|
-
[styles$
|
|
1066
|
+
className: classnames(styles$1J['button'], {
|
|
1067
|
+
[styles$1J['button--default']]: theme === BUTTON_THEMES.DEFAULT,
|
|
1068
|
+
[styles$1J['button--primary']]: theme === BUTTON_THEMES.PRIMARY,
|
|
1069
|
+
[styles$1J['button--danger']]: theme === BUTTON_THEMES.DANGER,
|
|
1070
|
+
[styles$1J['button--upsell']]: theme === BUTTON_THEMES.UPSELL,
|
|
1071
|
+
[styles$1J['button--marketing']]: theme === BUTTON_THEMES.MARKETING,
|
|
1072
|
+
[styles$1J['button--hollow']]: theme === BUTTON_THEMES.HOLLOW,
|
|
1073
|
+
[styles$1J['button--hollow-contrast']]: theme === BUTTON_THEMES.HOLLOW_CONTRAST,
|
|
1074
|
+
[styles$1J['button--link-primary']]: theme === BUTTON_THEMES.LINK_PRIMARY,
|
|
1075
|
+
[styles$1J['button--link-danger']]: theme === BUTTON_THEMES.LINK_DANGER,
|
|
1076
|
+
[styles$1J['button--link-upsell']]: theme === BUTTON_THEMES.LINK_UPSELL,
|
|
1077
|
+
[styles$1J['button--link-toolbar']]: theme === BUTTON_THEMES.LINK_TOOLBAR,
|
|
1078
|
+
[styles$1J['button--link-contrast']]: theme === BUTTON_THEMES.LINK_CONTRAST,
|
|
1079
|
+
[styles$1J['button--link-icon']]: theme === BUTTON_THEMES.LINK_ICON,
|
|
1080
|
+
[styles$1J['button--loading']]: loading,
|
|
1081
|
+
[styles$1J['button--icon-only']]: isIconOnly,
|
|
1082
|
+
[styles$1J['button--size-min-width-100']]: size === BUTTON_SIZES.MIN_WIDTH_100,
|
|
1083
|
+
[styles$1J['button--size-full-width']]: size === BUTTON_SIZES.FULL_WIDTH
|
|
1084
1084
|
}),
|
|
1085
1085
|
type: type,
|
|
1086
1086
|
disabled: disabled || loading,
|
|
@@ -1094,7 +1094,7 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1094
1094
|
space: 8,
|
|
1095
1095
|
alignItems: "center"
|
|
1096
1096
|
}, children), loading && React__default.createElement("div", {
|
|
1097
|
-
className: styles$
|
|
1097
|
+
className: styles$1J['button__spinner']
|
|
1098
1098
|
}, React__default.createElement(Spinner, {
|
|
1099
1099
|
theme: contrastSpinner.includes(theme) ? SPINNER_THEMES.CONTRAST : SPINNER_THEMES.DISABLED
|
|
1100
1100
|
})));
|
|
@@ -1104,7 +1104,7 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1104
1104
|
overlay: title,
|
|
1105
1105
|
ref: ref
|
|
1106
1106
|
}, title && disabled ? React__default.createElement("div", {
|
|
1107
|
-
className: styles$
|
|
1107
|
+
className: styles$1J['disabled-button-wrapper']
|
|
1108
1108
|
}, ButtonElementResult) : ButtonElementResult)
|
|
1109
1109
|
);
|
|
1110
1110
|
};
|
|
@@ -10600,20 +10600,20 @@ const IconGreatMonochromatic = forwardRef((_ref, ref) => {
|
|
|
10600
10600
|
});
|
|
10601
10601
|
IconGreatMonochromatic.displayName = 'IconGreatMonochromatic';
|
|
10602
10602
|
|
|
10603
|
-
var styles$
|
|
10603
|
+
var styles$1I = {"pagination-controls":"_S1co-"};
|
|
10604
10604
|
|
|
10605
|
-
var styles$
|
|
10605
|
+
var styles$1H = {"keyboard-key":"_sgd9a","keyboard-key--light":"_8zg4j","keyboard-key__character":"_GAIig"};
|
|
10606
10606
|
|
|
10607
10607
|
const KeyboardKey = ({
|
|
10608
10608
|
children,
|
|
10609
10609
|
theme: _theme = 'dark'
|
|
10610
10610
|
}) => {
|
|
10611
10611
|
return React__default.createElement("span", {
|
|
10612
|
-
className: classnames(styles$
|
|
10613
|
-
[styles$
|
|
10612
|
+
className: classnames(styles$1H['keyboard-key'], {
|
|
10613
|
+
[styles$1H['keyboard-key--light']]: _theme === 'light'
|
|
10614
10614
|
})
|
|
10615
10615
|
}, React__default.createElement("span", {
|
|
10616
|
-
className: styles$
|
|
10616
|
+
className: styles$1H['keyboard-key__character']
|
|
10617
10617
|
}, children));
|
|
10618
10618
|
};
|
|
10619
10619
|
|
|
@@ -10834,7 +10834,7 @@ const PaginationControls = _ref => {
|
|
|
10834
10834
|
}
|
|
10835
10835
|
});
|
|
10836
10836
|
return React__default.createElement("div", _extends({}, dataProps, {
|
|
10837
|
-
className: styles$
|
|
10837
|
+
className: styles$1I['pagination-controls'],
|
|
10838
10838
|
"data-testid": testId
|
|
10839
10839
|
}), React__default.createElement(Button, {
|
|
10840
10840
|
disabled: !hasPrevious,
|
|
@@ -10864,7 +10864,7 @@ const LINK_TARGET = {
|
|
|
10864
10864
|
BLANK: '_blank'
|
|
10865
10865
|
};
|
|
10866
10866
|
|
|
10867
|
-
var styles$
|
|
10867
|
+
var styles$1G = {"link":"_EiQ4c","link--contrast":"_weJDR"};
|
|
10868
10868
|
|
|
10869
10869
|
const _excluded$br = ["href", "target", "theme", "onClick", "children"];
|
|
10870
10870
|
/**
|
|
@@ -10884,9 +10884,9 @@ const Link = _ref => {
|
|
|
10884
10884
|
} = getDataProps(otherProps);
|
|
10885
10885
|
const ref = React__default.useRef(null);
|
|
10886
10886
|
return React__default.createElement("a", _extends({}, dataProps, {
|
|
10887
|
-
className: classnames(styles$
|
|
10888
|
-
[styles$
|
|
10889
|
-
[styles$
|
|
10887
|
+
className: classnames(styles$1G['link'], {
|
|
10888
|
+
[styles$1G['link--primary']]: theme === LINK_THEME.PRIMARY,
|
|
10889
|
+
[styles$1G['link--contrast']]: theme === LINK_THEME.CONTRAST
|
|
10890
10890
|
}),
|
|
10891
10891
|
href: href,
|
|
10892
10892
|
target: target,
|
|
@@ -10908,7 +10908,7 @@ const DropdownContext = React__default.createContext({
|
|
|
10908
10908
|
});
|
|
10909
10909
|
const useDropdownContext = () => React__default.useContext(DropdownContext);
|
|
10910
10910
|
|
|
10911
|
-
var styles$
|
|
10911
|
+
var styles$1F = {"dropdown-pane":"_sp-pT"};
|
|
10912
10912
|
|
|
10913
10913
|
const DROPDOWN_PANE_PADDING = 14;
|
|
10914
10914
|
const calculateOverlayPosition$1 = (triggerPosition, triggerOffsetHeight, panePosition, alignment) => {
|
|
@@ -11053,8 +11053,8 @@ const PaneOverlay = ({
|
|
|
11053
11053
|
useKeyPress(['Escape'], onToggleDropdown);
|
|
11054
11054
|
const overflow = maxHeight ? 'auto' : undefined;
|
|
11055
11055
|
return React__default.createElement("div", {
|
|
11056
|
-
className: classnames(styles$
|
|
11057
|
-
[styles$
|
|
11056
|
+
className: classnames(styles$1F['dropdown-pane'], {
|
|
11057
|
+
[styles$1F['dropdown-pane--with-padding']]: true,
|
|
11058
11058
|
'dropdown-pane--custom-width': width !== undefined
|
|
11059
11059
|
}),
|
|
11060
11060
|
style: _extends({}, position, {
|
|
@@ -11085,7 +11085,7 @@ const getKeyboardFocusableElements = element => {
|
|
|
11085
11085
|
});
|
|
11086
11086
|
};
|
|
11087
11087
|
|
|
11088
|
-
var styles$
|
|
11088
|
+
var styles$1E = {"dropdown__trigger":"_AktVc"};
|
|
11089
11089
|
|
|
11090
11090
|
const DROPDOWN_ALIGNEMNT = {
|
|
11091
11091
|
LEFT: 'left',
|
|
@@ -11096,7 +11096,7 @@ const DROPDOWN_TRIGGER = {
|
|
|
11096
11096
|
CLICK: 'click'
|
|
11097
11097
|
};
|
|
11098
11098
|
|
|
11099
|
-
var styles$
|
|
11099
|
+
var styles$1D = {"label":"_zv4ua","label--truncate":"_FPyID"};
|
|
11100
11100
|
|
|
11101
11101
|
const isEllipsisActive = e => {
|
|
11102
11102
|
return e.offsetWidth < e.scrollWidth;
|
|
@@ -11145,8 +11145,8 @@ const Label = ({
|
|
|
11145
11145
|
const LabelElement = React__default.createElement("label", {
|
|
11146
11146
|
htmlFor: htmlFor,
|
|
11147
11147
|
id: labelId,
|
|
11148
|
-
className: classnames(styles$
|
|
11149
|
-
[styles$
|
|
11148
|
+
className: classnames(styles$1D['label'], {
|
|
11149
|
+
[styles$1D['label--truncate']]: shouldTruncate
|
|
11150
11150
|
})
|
|
11151
11151
|
}, children);
|
|
11152
11152
|
if (showTooltip) {
|
|
@@ -11158,7 +11158,7 @@ const Label = ({
|
|
|
11158
11158
|
return LabelElement;
|
|
11159
11159
|
};
|
|
11160
11160
|
|
|
11161
|
-
var styles$
|
|
11161
|
+
var styles$1C = {"caption":"_Qrxg5"};
|
|
11162
11162
|
|
|
11163
11163
|
const Caption = ({
|
|
11164
11164
|
fieldId,
|
|
@@ -11166,11 +11166,11 @@ const Caption = ({
|
|
|
11166
11166
|
}) => {
|
|
11167
11167
|
return React__default.createElement("div", {
|
|
11168
11168
|
id: fieldId && `${fieldId}-describer`,
|
|
11169
|
-
className: styles$
|
|
11169
|
+
className: styles$1C['caption']
|
|
11170
11170
|
}, children);
|
|
11171
11171
|
};
|
|
11172
11172
|
|
|
11173
|
-
var styles$
|
|
11173
|
+
var styles$1B = {"error-message":"_eS4YO"};
|
|
11174
11174
|
|
|
11175
11175
|
const ErrorMessage = ({
|
|
11176
11176
|
fieldId,
|
|
@@ -11179,7 +11179,7 @@ const ErrorMessage = ({
|
|
|
11179
11179
|
}) => {
|
|
11180
11180
|
return React__default.createElement("div", {
|
|
11181
11181
|
id: fieldId && `${fieldId}-error-message`,
|
|
11182
|
-
className: styles$
|
|
11182
|
+
className: styles$1B['error-message'],
|
|
11183
11183
|
"data-testid": testId
|
|
11184
11184
|
}, React__default.createElement(Inline, {
|
|
11185
11185
|
space: 8,
|
|
@@ -11218,7 +11218,7 @@ const ALIGNMENTS = {
|
|
|
11218
11218
|
JUSTIFY: 'justify'
|
|
11219
11219
|
};
|
|
11220
11220
|
|
|
11221
|
-
var styles$
|
|
11221
|
+
var styles$1A = {"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"};
|
|
11222
11222
|
|
|
11223
11223
|
const _excluded$bq = ["children", "as", "emphasis", "alignment", "color", "testId", "textWrap"];
|
|
11224
11224
|
const TextComponent = (_ref, ref) => {
|
|
@@ -11246,23 +11246,23 @@ const TextComponent = (_ref, ref) => {
|
|
|
11246
11246
|
color: getColor(color),
|
|
11247
11247
|
textWrap
|
|
11248
11248
|
}, positionStyles),
|
|
11249
|
-
className: classnames(styles$
|
|
11250
|
-
[styles$
|
|
11251
|
-
[styles$
|
|
11252
|
-
[styles$
|
|
11253
|
-
[styles$
|
|
11254
|
-
[styles$
|
|
11255
|
-
[styles$
|
|
11256
|
-
[styles$
|
|
11257
|
-
[styles$
|
|
11258
|
-
[styles$
|
|
11259
|
-
[styles$
|
|
11260
|
-
[styles$
|
|
11261
|
-
[styles$
|
|
11262
|
-
[styles$
|
|
11263
|
-
[styles$
|
|
11264
|
-
[styles$
|
|
11265
|
-
[styles$
|
|
11249
|
+
className: classnames(styles$1A['text'], {
|
|
11250
|
+
[styles$1A['text--bold']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.BOLD),
|
|
11251
|
+
[styles$1A['text--italic']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.ITALIC),
|
|
11252
|
+
[styles$1A['text--underline']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.UNDERLINE),
|
|
11253
|
+
[styles$1A['text--dotted-underline']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.DOTTED_UNDERLINE),
|
|
11254
|
+
[styles$1A['text--monospace']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.MONOSPACE),
|
|
11255
|
+
[styles$1A['text--line-through']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.STRIKETHROUGH),
|
|
11256
|
+
[styles$1A['text--align-left']]: alignment === ALIGNMENTS.LEFT,
|
|
11257
|
+
[styles$1A['text--align-right']]: alignment === ALIGNMENTS.RIGHT,
|
|
11258
|
+
[styles$1A['text--align-center']]: alignment === ALIGNMENTS.CENTER,
|
|
11259
|
+
[styles$1A['text--align-justify']]: alignment === ALIGNMENTS.JUSTIFY,
|
|
11260
|
+
[styles$1A['text__body']]: as === TEXT_TYPES.BODY,
|
|
11261
|
+
[styles$1A['text__insight']]: as === TEXT_TYPES.INSIGHT,
|
|
11262
|
+
[styles$1A['text__caption']]: as === TEXT_TYPES.CAPTION,
|
|
11263
|
+
[styles$1A['text__span']]: as === TEXT_TYPES.SPAN,
|
|
11264
|
+
[styles$1A['text__paragraph']]: as === TEXT_TYPES.PARAGRAPH,
|
|
11265
|
+
[styles$1A['text__tagline']]: as === TEXT_TYPES.TAGLINE
|
|
11266
11266
|
}),
|
|
11267
11267
|
'data-testid': testId
|
|
11268
11268
|
}, dataProps, other, {
|
|
@@ -11282,7 +11282,7 @@ const Bold = ({
|
|
|
11282
11282
|
children
|
|
11283
11283
|
}) => {
|
|
11284
11284
|
return React__default.createElement("span", {
|
|
11285
|
-
className: classnames(styles$
|
|
11285
|
+
className: classnames(styles$1A['text--bold'], styles$1A['text'])
|
|
11286
11286
|
}, children);
|
|
11287
11287
|
};
|
|
11288
11288
|
|
|
@@ -11290,7 +11290,7 @@ const Underline = ({
|
|
|
11290
11290
|
children
|
|
11291
11291
|
}) => {
|
|
11292
11292
|
return React__default.createElement("span", {
|
|
11293
|
-
className: classnames(styles$
|
|
11293
|
+
className: classnames(styles$1A['text--underline'], styles$1A['text'])
|
|
11294
11294
|
}, children);
|
|
11295
11295
|
};
|
|
11296
11296
|
|
|
@@ -11298,7 +11298,7 @@ const Italic = ({
|
|
|
11298
11298
|
children
|
|
11299
11299
|
}) => {
|
|
11300
11300
|
return React__default.createElement("span", {
|
|
11301
|
-
className: classnames(styles$
|
|
11301
|
+
className: classnames(styles$1A['text--italic'], styles$1A['text'])
|
|
11302
11302
|
}, children);
|
|
11303
11303
|
};
|
|
11304
11304
|
|
|
@@ -11440,7 +11440,7 @@ const useFieldControllers = ({
|
|
|
11440
11440
|
return controllers;
|
|
11441
11441
|
};
|
|
11442
11442
|
|
|
11443
|
-
var styles$
|
|
11443
|
+
var styles$1z = {"text-field":"_G6LsE","text-field--invalid":"_2ZYtt","text-field--prefixed":"_rWp7H","text-field--suffixed":"_Xq8xX"};
|
|
11444
11444
|
|
|
11445
11445
|
const _excluded$bo = ["autoComplete", "autoFocus", "defaultValue", "disabled", "error", "id", "maxLength", "name", "caption", "label", "onBlur", "onChange", "onFocus", "onKeyDown", "placeholder", "value", "ref", "testId"];
|
|
11446
11446
|
const useTextField = _ref => {
|
|
@@ -11481,8 +11481,8 @@ const useTextField = _ref => {
|
|
|
11481
11481
|
'aria-invalid': hasError,
|
|
11482
11482
|
autoComplete,
|
|
11483
11483
|
autoFocus,
|
|
11484
|
-
className: classnames(styles$
|
|
11485
|
-
[styles$
|
|
11484
|
+
className: classnames(styles$1z['text-field'], {
|
|
11485
|
+
[styles$1z['text-field--invalid']]: hasError
|
|
11486
11486
|
}),
|
|
11487
11487
|
'data-testid': testId,
|
|
11488
11488
|
disabled,
|
|
@@ -11513,7 +11513,7 @@ const useTextField = _ref => {
|
|
|
11513
11513
|
};
|
|
11514
11514
|
};
|
|
11515
11515
|
|
|
11516
|
-
var styles$
|
|
11516
|
+
var styles$1y = {"affix-container":"_F8QOB","prefix":"_yPPIy","suffix":"_Y3yFd","affix-container--prefixed":"_vU4SU","affix-container--suffixed":"_4rDXi"};
|
|
11517
11517
|
|
|
11518
11518
|
const AffixContainer = ({
|
|
11519
11519
|
prefix,
|
|
@@ -11548,19 +11548,19 @@ const AffixContainer = ({
|
|
|
11548
11548
|
if (!hasPrefix && !hasSuffix) {
|
|
11549
11549
|
return children;
|
|
11550
11550
|
}
|
|
11551
|
-
const classes = classnames(styles$
|
|
11552
|
-
[styles$
|
|
11553
|
-
[styles$
|
|
11551
|
+
const classes = classnames(styles$1y['affix-container'], {
|
|
11552
|
+
[styles$1y['affix-container--prefixed']]: hasPrefix,
|
|
11553
|
+
[styles$1y['affix-container--suffixed']]: hasSuffix
|
|
11554
11554
|
});
|
|
11555
11555
|
return React__default.createElement("div", {
|
|
11556
11556
|
className: classes,
|
|
11557
11557
|
ref: container,
|
|
11558
11558
|
"data-testid": testId
|
|
11559
11559
|
}, hasPrefix && React__default.createElement("div", {
|
|
11560
|
-
className: styles$
|
|
11560
|
+
className: styles$1y['prefix'],
|
|
11561
11561
|
ref: prefixElement
|
|
11562
11562
|
}, prefix), children, hasSuffix && React__default.createElement("div", {
|
|
11563
|
-
className: styles$
|
|
11563
|
+
className: styles$1y['suffix'],
|
|
11564
11564
|
ref: suffixElement
|
|
11565
11565
|
}, suffix));
|
|
11566
11566
|
};
|
|
@@ -11772,7 +11772,7 @@ const Dropdown = ({
|
|
|
11772
11772
|
paneRef
|
|
11773
11773
|
}
|
|
11774
11774
|
}, triggerIsKnownButton ? React__default.cloneElement(trigger, _extends({}, trigger.props, triggerProps)) : React__default.createElement("button", _extends({}, triggerProps, {
|
|
11775
|
-
className: styles$
|
|
11775
|
+
className: styles$1E['dropdown__trigger'],
|
|
11776
11776
|
ref: updatedRef,
|
|
11777
11777
|
onFocus: handleFocus
|
|
11778
11778
|
}), trigger), React__default.createElement(DropdownPane, {
|
|
@@ -11786,7 +11786,7 @@ const Dropdown = ({
|
|
|
11786
11786
|
}, children));
|
|
11787
11787
|
};
|
|
11788
11788
|
|
|
11789
|
-
var styles$
|
|
11789
|
+
var styles$1x = {"dropdown-list":"_91hvH","dropdown-list__item":"_NrB4V","dropdown-list__item--hover":"_aMs9c"};
|
|
11790
11790
|
|
|
11791
11791
|
const findNextActiveIndex = (items, startAt) => {
|
|
11792
11792
|
let startIndex = 0;
|
|
@@ -11946,15 +11946,15 @@ const updateIconSize = child => {
|
|
|
11946
11946
|
}));
|
|
11947
11947
|
};
|
|
11948
11948
|
|
|
11949
|
-
var styles$
|
|
11949
|
+
var styles$1w = {"dropdown-list-divider":"_ISJ4M"};
|
|
11950
11950
|
|
|
11951
|
-
var styles$
|
|
11951
|
+
var styles$1v = {"dropdown-list-divider-line":"_GlMQ1"};
|
|
11952
11952
|
|
|
11953
11953
|
const DropdownListDividerLine = ({
|
|
11954
11954
|
testId
|
|
11955
11955
|
}) => {
|
|
11956
11956
|
return React__default.createElement("div", {
|
|
11957
|
-
className: styles$
|
|
11957
|
+
className: styles$1v['dropdown-list-divider-line'],
|
|
11958
11958
|
"data-testid": testId
|
|
11959
11959
|
});
|
|
11960
11960
|
};
|
|
@@ -11970,14 +11970,14 @@ const DropdownListDivider = ({
|
|
|
11970
11970
|
});
|
|
11971
11971
|
}
|
|
11972
11972
|
return React__default.createElement(Fragment, null, (line === 'top' || line === 'both') && React__default.createElement(DropdownListDividerLine, null), React__default.createElement("div", {
|
|
11973
|
-
className: classnames(styles$
|
|
11973
|
+
className: classnames(styles$1w['dropdown-list-divider']),
|
|
11974
11974
|
"data-testid": testId
|
|
11975
11975
|
}, children), (line === 'bottom' || line === 'both') && React__default.createElement(DropdownListDividerLine, null));
|
|
11976
11976
|
};
|
|
11977
11977
|
|
|
11978
|
-
var styles$
|
|
11978
|
+
var styles$1u = {"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"};
|
|
11979
11979
|
|
|
11980
|
-
var styles$
|
|
11980
|
+
var styles$1t = {"dropdown-submenu":"_X4fIx"};
|
|
11981
11981
|
|
|
11982
11982
|
const DropdownSubmenu = forwardRef(({
|
|
11983
11983
|
children,
|
|
@@ -11997,7 +11997,7 @@ const DropdownSubmenu = forwardRef(({
|
|
|
11997
11997
|
// so no keyboard handler is needed.
|
|
11998
11998
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
11999
11999
|
React__default.createElement("div", {
|
|
12000
|
-
className: styles$
|
|
12000
|
+
className: styles$1t['dropdown-submenu'],
|
|
12001
12001
|
"data-submenu-direction": direction,
|
|
12002
12002
|
style: position || DEFAULT_POSITION,
|
|
12003
12003
|
onMouseEnter: openSubmenu,
|
|
@@ -12190,20 +12190,20 @@ const DropdownListItem = ({
|
|
|
12190
12190
|
onClick && onClick(e);
|
|
12191
12191
|
};
|
|
12192
12192
|
const childrenContainer = React__default.createElement("div", {
|
|
12193
|
-
className: styles$
|
|
12193
|
+
className: styles$1u['dropdown-list-item__container']
|
|
12194
12194
|
}, prefix && React__default.createElement("div", {
|
|
12195
|
-
className: styles$
|
|
12195
|
+
className: styles$1u['dropdown-list-item__prefix']
|
|
12196
12196
|
}, prefix), React__default.createElement("div", {
|
|
12197
|
-
className: styles$
|
|
12197
|
+
className: styles$1u['dropdown-list-item__content']
|
|
12198
12198
|
}, React__default.createElement(Stack, {
|
|
12199
12199
|
space: 0,
|
|
12200
12200
|
flex: [1]
|
|
12201
12201
|
}, children, caption && React__default.createElement("div", {
|
|
12202
|
-
className: styles$
|
|
12202
|
+
className: styles$1u['dropdown-list-item__caption']
|
|
12203
12203
|
}, caption))), (suffix || submenu) && React__default.createElement("div", {
|
|
12204
|
-
className: styles$
|
|
12204
|
+
className: styles$1u['dropdown-list-item__suffix']
|
|
12205
12205
|
}, suffix && _openSubmenuOnSuffixClick && submenu ? React__default.createElement("button", {
|
|
12206
|
-
className: styles$
|
|
12206
|
+
className: styles$1u['dropdown-list-item__suffix-button'],
|
|
12207
12207
|
onClick: e => {
|
|
12208
12208
|
e.preventDefault();
|
|
12209
12209
|
e.stopPropagation();
|
|
@@ -12214,19 +12214,19 @@ const DropdownListItem = ({
|
|
|
12214
12214
|
"aria-label": "Open submenu",
|
|
12215
12215
|
disabled: disabled
|
|
12216
12216
|
}, suffix) : suffix, submenu && !suffix && React__default.createElement("div", {
|
|
12217
|
-
className: styles$
|
|
12217
|
+
className: styles$1u['dropdown-list-item__suffix-spot']
|
|
12218
12218
|
}), submenu && !_openSubmenuOnSuffixClick && React__default.createElement(IconChevronRight, {
|
|
12219
12219
|
size: "small"
|
|
12220
12220
|
})));
|
|
12221
12221
|
const linkItem = href && (_reloadDocument ? React__default.createElement("a", {
|
|
12222
12222
|
href: href,
|
|
12223
|
-
className: styles$
|
|
12223
|
+
className: styles$1u['dropdown-list-item__link'],
|
|
12224
12224
|
target: _target,
|
|
12225
12225
|
tabIndex: -1
|
|
12226
12226
|
}, childrenContainer) : React__default.createElement(Link$1, {
|
|
12227
12227
|
to: href,
|
|
12228
12228
|
target: _target,
|
|
12229
|
-
className: styles$
|
|
12229
|
+
className: styles$1u['dropdown-list-item__link'],
|
|
12230
12230
|
reloadDocument: false,
|
|
12231
12231
|
tabIndex: -1,
|
|
12232
12232
|
"data-testid": testId
|
|
@@ -12234,9 +12234,9 @@ const DropdownListItem = ({
|
|
|
12234
12234
|
return (
|
|
12235
12235
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
12236
12236
|
React__default.createElement("div", {
|
|
12237
|
-
className: classnames(styles$
|
|
12238
|
-
[styles$
|
|
12239
|
-
[styles$
|
|
12237
|
+
className: classnames(styles$1u['dropdown-list-item'], {
|
|
12238
|
+
[styles$1u['dropdown-list-item--selected']]: selected,
|
|
12239
|
+
[styles$1u['dropdown-list-item--disabled']]: disabled
|
|
12240
12240
|
}),
|
|
12241
12241
|
onMouseDown: e => e.preventDefault(),
|
|
12242
12242
|
onClick: handleClick,
|
|
@@ -12379,7 +12379,7 @@ const DropdownList = ({
|
|
|
12379
12379
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
12380
12380
|
}, [highlightItemIndex]);
|
|
12381
12381
|
return React__default.createElement("ul", {
|
|
12382
|
-
className: styles$
|
|
12382
|
+
className: styles$1x['dropdown-list'],
|
|
12383
12383
|
"data-testid": testId,
|
|
12384
12384
|
ref: listRef
|
|
12385
12385
|
}, React__default.Children.toArray(children).filter(Boolean).map((child, index) => {
|
|
@@ -12391,8 +12391,8 @@ const DropdownList = ({
|
|
|
12391
12391
|
const divider = (_items$index2 = items[index]) == null ? void 0 : _items$index2.divider;
|
|
12392
12392
|
return React__default.createElement("li", {
|
|
12393
12393
|
key: index,
|
|
12394
|
-
className: classnames(styles$
|
|
12395
|
-
[styles$
|
|
12394
|
+
className: classnames(styles$1x['dropdown-list__item'], {
|
|
12395
|
+
[styles$1x['dropdown-list__item--hover']]: focusedItem === index && isInteractive
|
|
12396
12396
|
}),
|
|
12397
12397
|
onMouseEnter: divider ? undefined : () => setFocusOnItem(index),
|
|
12398
12398
|
role: divider ? 'separator' : 'menuitem'
|
|
@@ -12416,7 +12416,7 @@ const KebabMenu = ({
|
|
|
12416
12416
|
}, action.label))));
|
|
12417
12417
|
};
|
|
12418
12418
|
|
|
12419
|
-
var styles$
|
|
12419
|
+
var styles$1s = {"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"};
|
|
12420
12420
|
|
|
12421
12421
|
const CardContext = createContext({
|
|
12422
12422
|
isCardMounted: false
|
|
@@ -12455,28 +12455,28 @@ const Card = _ref => {
|
|
|
12455
12455
|
isCardMounted: true
|
|
12456
12456
|
}
|
|
12457
12457
|
}, React__default.createElement("div", _extends({
|
|
12458
|
-
className: classnames(styles$
|
|
12458
|
+
className: classnames(styles$1s['card']),
|
|
12459
12459
|
style: positionStyles
|
|
12460
12460
|
}, dataProps), onClick ? React__default.createElement("button", {
|
|
12461
|
-
className: classnames(styles$
|
|
12462
|
-
[styles$
|
|
12463
|
-
[styles$
|
|
12464
|
-
[styles$
|
|
12461
|
+
className: classnames(styles$1s['card__body'], styles$1s['card__body--interactive'], {
|
|
12462
|
+
[styles$1s['card__body--disabled']]: disabled,
|
|
12463
|
+
[styles$1s['card__body--focus']]: isSelected,
|
|
12464
|
+
[styles$1s['card__body--with-kebab']]: actions
|
|
12465
12465
|
}),
|
|
12466
12466
|
"data-testid": testId,
|
|
12467
12467
|
tabIndex: 0,
|
|
12468
12468
|
onClick: onClick,
|
|
12469
12469
|
disabled: disabled
|
|
12470
12470
|
}, children) : React__default.createElement("div", {
|
|
12471
|
-
className: classnames(styles$
|
|
12472
|
-
[styles$
|
|
12473
|
-
[styles$
|
|
12474
|
-
[styles$
|
|
12471
|
+
className: classnames(styles$1s['card__body'], {
|
|
12472
|
+
[styles$1s['card__body--disabled']]: disabled,
|
|
12473
|
+
[styles$1s['card__body--focus']]: isSelected,
|
|
12474
|
+
[styles$1s['card__body--with-kebab']]: actions
|
|
12475
12475
|
}),
|
|
12476
12476
|
"data-testid": testId
|
|
12477
12477
|
}, children), actions && React__default.createElement("div", {
|
|
12478
|
-
className: classnames(styles$
|
|
12479
|
-
[styles$
|
|
12478
|
+
className: classnames(styles$1s['card__kebab'], {
|
|
12479
|
+
[styles$1s['card__kebab--disabled']]: disabled
|
|
12480
12480
|
})
|
|
12481
12481
|
}, React__default.createElement(KebabMenu, {
|
|
12482
12482
|
actions: onClose ? actions.concat({
|
|
@@ -12485,8 +12485,8 @@ const Card = _ref => {
|
|
|
12485
12485
|
onAction: onClose
|
|
12486
12486
|
}) : actions
|
|
12487
12487
|
})), !actions && onClose && React__default.createElement("div", {
|
|
12488
|
-
className: classnames(styles$
|
|
12489
|
-
[styles$
|
|
12488
|
+
className: classnames(styles$1s['card__close'], {
|
|
12489
|
+
[styles$1s['card__close--disabled']]: disabled
|
|
12490
12490
|
})
|
|
12491
12491
|
}, React__default.createElement(Button, {
|
|
12492
12492
|
theme: "link-icon",
|
|
@@ -12494,7 +12494,7 @@ const Card = _ref => {
|
|
|
12494
12494
|
}, React__default.createElement(IconTimes, null)))));
|
|
12495
12495
|
};
|
|
12496
12496
|
|
|
12497
|
-
var styles$
|
|
12497
|
+
var styles$1r = {"callout-card__close":"_VxmQm","callout-card__header":"_3RrQI"};
|
|
12498
12498
|
|
|
12499
12499
|
/**
|
|
12500
12500
|
* @deprecated Use `<EmptyState as='card' />` instead
|
|
@@ -12515,7 +12515,7 @@ const CalloutCard = ({
|
|
|
12515
12515
|
}, React__default.createElement(Stack, {
|
|
12516
12516
|
space: 12
|
|
12517
12517
|
}, React__default.createElement("div", {
|
|
12518
|
-
className: styles$
|
|
12518
|
+
className: styles$1r['callout-card__header']
|
|
12519
12519
|
}, React__default.createElement(Text, {
|
|
12520
12520
|
as: "body",
|
|
12521
12521
|
color: "primary-color"
|
|
@@ -12530,14 +12530,14 @@ const CalloutCard = ({
|
|
|
12530
12530
|
alt: String(title) + String(header),
|
|
12531
12531
|
width: "354px"
|
|
12532
12532
|
})), onClose && React__default.createElement("div", {
|
|
12533
|
-
className: styles$
|
|
12533
|
+
className: styles$1r['callout-card__close']
|
|
12534
12534
|
}, React__default.createElement(Button, {
|
|
12535
12535
|
theme: "link-icon",
|
|
12536
12536
|
onClick: onClose
|
|
12537
12537
|
}, React__default.createElement(IconTimes, null)))));
|
|
12538
12538
|
};
|
|
12539
12539
|
|
|
12540
|
-
var styles$
|
|
12540
|
+
var styles$1q = {"breadcrumbs":"_U3f-J"};
|
|
12541
12541
|
|
|
12542
12542
|
/**
|
|
12543
12543
|
* Breadcrumbs show the user where they are in the app's hierarchy and let them navigate back up to a parent page. They appear at the top of a page when that page is reached by drilling into a deeper level of the product.
|
|
@@ -12546,11 +12546,11 @@ const Breadcrumbs = ({
|
|
|
12546
12546
|
children
|
|
12547
12547
|
}) => {
|
|
12548
12548
|
return React__default.createElement("div", {
|
|
12549
|
-
className: styles$
|
|
12549
|
+
className: styles$1q['breadcrumbs']
|
|
12550
12550
|
}, children);
|
|
12551
12551
|
};
|
|
12552
12552
|
|
|
12553
|
-
var styles$
|
|
12553
|
+
var styles$1p = {"breadcrumb-item":"_fo7-A","breadcrumb-item__label":"_ABM5h"};
|
|
12554
12554
|
|
|
12555
12555
|
const BreadcrumbItem = ({
|
|
12556
12556
|
href,
|
|
@@ -12562,16 +12562,16 @@ const BreadcrumbItem = ({
|
|
|
12562
12562
|
size: "small",
|
|
12563
12563
|
color: "surface-on-color-subtle"
|
|
12564
12564
|
}), React__default.createElement("span", {
|
|
12565
|
-
className: styles$
|
|
12565
|
+
className: styles$1p['breadcrumb-item__label']
|
|
12566
12566
|
}, children));
|
|
12567
12567
|
// This is neessary to support older versions of react-router-dom
|
|
12568
12568
|
return _reloadDocument ? React__default.createElement("a", {
|
|
12569
12569
|
href: href,
|
|
12570
|
-
className: styles$
|
|
12570
|
+
className: styles$1p['breadcrumb-item'],
|
|
12571
12571
|
"data-testid": testId
|
|
12572
12572
|
}, content) : React__default.createElement(Link$1, {
|
|
12573
12573
|
to: href,
|
|
12574
|
-
className: styles$
|
|
12574
|
+
className: styles$1p['breadcrumb-item'],
|
|
12575
12575
|
relative: "path",
|
|
12576
12576
|
reloadDocument: _reloadDocument,
|
|
12577
12577
|
"data-testid": testId
|
|
@@ -12601,7 +12601,7 @@ const getBreadbrumbItems = breadcrumbs => {
|
|
|
12601
12601
|
}, breadcrumbs.label);
|
|
12602
12602
|
};
|
|
12603
12603
|
|
|
12604
|
-
var styles$
|
|
12604
|
+
var styles$1o = {"page":"_QB6yF","page--fullwidth":"_g7MTf","page--restricted":"_LRq4j"};
|
|
12605
12605
|
|
|
12606
12606
|
const PAGE_SIZES = {
|
|
12607
12607
|
FULL_WIDTH: 'fullwidth',
|
|
@@ -12625,9 +12625,9 @@ const Page = ({
|
|
|
12625
12625
|
const hasHeader = title || actions;
|
|
12626
12626
|
const hasPageBlocks = hasHeader || banner || filterBar;
|
|
12627
12627
|
return React__default.createElement("div", {
|
|
12628
|
-
className: classnames(styles$
|
|
12629
|
-
[styles$
|
|
12630
|
-
[styles$
|
|
12628
|
+
className: classnames(styles$1o['page'], {
|
|
12629
|
+
[styles$1o['page--restricted']]: _size === PAGE_SIZES.RESTRICTED,
|
|
12630
|
+
[styles$1o['page--fullwidth']]: _size === PAGE_SIZES.FULL_WIDTH
|
|
12631
12631
|
}),
|
|
12632
12632
|
"data-testid": testId
|
|
12633
12633
|
}, React__default.createElement(Stack, {
|
|
@@ -12648,15 +12648,15 @@ const Page = ({
|
|
|
12648
12648
|
}, title), actions), subtitle && React__default.createElement(Text, null, subtitle)), banner, filterBar)), children));
|
|
12649
12649
|
};
|
|
12650
12650
|
|
|
12651
|
-
var styles$
|
|
12651
|
+
var styles$1n = {"page-layout":"_Scw7-","page-layout__nav-container":"_v--DF","page-layout__nav-list":"_dJeZe","page-layout__content":"_hHi70","page-layout__side-nav-content":"_vTMjp"};
|
|
12652
12652
|
|
|
12653
|
-
var styles$
|
|
12653
|
+
var styles$1m = {"menu-item":"_SebbU","menu-item--active":"_CDEVl","menu-item--with-badge":"_VudDE","menu-item__badge":"_vErBS"};
|
|
12654
12654
|
|
|
12655
|
-
var styles$
|
|
12655
|
+
var styles$1l = {"badge":"_RXV4h","badge--warning":"_2An1I","badge--danger":"_-Bw8L","badge--success":"_RxlMz","badge--info":"_dzCH-","badge--neutral":"_noyng","badge--upsell":"_KCvZk","badge--disabled":"_eRTzf","badge--outline":"_djlYa","badge--dot":"_OcpK5","badge--numeric":"_Ix9tP"};
|
|
12656
12656
|
|
|
12657
|
-
var styles$
|
|
12657
|
+
var styles$1k = {"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"};
|
|
12658
12658
|
|
|
12659
|
-
var styles$
|
|
12659
|
+
var styles$1j = {"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"};
|
|
12660
12660
|
|
|
12661
12661
|
const ModalContext = createContext({
|
|
12662
12662
|
isModalMounted: false,
|
|
@@ -12720,14 +12720,14 @@ const ModalHeader = ({
|
|
|
12720
12720
|
const iconBarTheme = imageSrc ? 'link-contrast' : 'link-icon';
|
|
12721
12721
|
const themedIconBar = iconBar ? injectButtonTheme(iconBar, iconBarTheme) : null;
|
|
12722
12722
|
return React__default.createElement("div", {
|
|
12723
|
-
className: classnames(styles$
|
|
12724
|
-
[styles$
|
|
12723
|
+
className: classnames(styles$1j['modal-header'], {
|
|
12724
|
+
[styles$1j['modal-header--with-shadow']]: hasScrollTop && !hasTabList
|
|
12725
12725
|
})
|
|
12726
12726
|
}, React__default.createElement(Stack, {
|
|
12727
12727
|
space: 0
|
|
12728
12728
|
}, React__default.createElement("div", {
|
|
12729
|
-
className: classnames(styles$
|
|
12730
|
-
[styles$
|
|
12729
|
+
className: classnames(styles$1j['modal-header__top-bar'], {
|
|
12730
|
+
[styles$1j['modal-header__top-bar--with-image']]: !!imageSrc
|
|
12731
12731
|
}),
|
|
12732
12732
|
style: imageSrc ? {
|
|
12733
12733
|
backgroundImage: `url(${imageSrc})`
|
|
@@ -12737,9 +12737,9 @@ const ModalHeader = ({
|
|
|
12737
12737
|
onClick: onClose,
|
|
12738
12738
|
disabled: loading
|
|
12739
12739
|
}, React__default.createElement(IconTimes, null))), header && React__default.createElement("div", {
|
|
12740
|
-
className: styles$
|
|
12740
|
+
className: styles$1j['modal-header__header']
|
|
12741
12741
|
}, header), subHeader && React__default.createElement("div", {
|
|
12742
|
-
className: styles$
|
|
12742
|
+
className: styles$1j['modal-header__sub-header']
|
|
12743
12743
|
}, subHeader)));
|
|
12744
12744
|
};
|
|
12745
12745
|
const injectButtonTheme = (node, theme) => {
|
|
@@ -12759,7 +12759,7 @@ const injectButtonTheme = (node, theme) => {
|
|
|
12759
12759
|
return node;
|
|
12760
12760
|
};
|
|
12761
12761
|
|
|
12762
|
-
var styles$
|
|
12762
|
+
var styles$1i = {"tab-zone":"_4hqPT","tab-zone--with-shadow":"_dorMR"};
|
|
12763
12763
|
|
|
12764
12764
|
const ModalTabZone = ({
|
|
12765
12765
|
children
|
|
@@ -12771,8 +12771,8 @@ const ModalTabZone = ({
|
|
|
12771
12771
|
hasScrollTop
|
|
12772
12772
|
} = useScrollDetector(modalBodyRef);
|
|
12773
12773
|
return React__default.createElement("div", {
|
|
12774
|
-
className: classnames(styles$
|
|
12775
|
-
[styles$
|
|
12774
|
+
className: classnames(styles$1i['tab-zone'], {
|
|
12775
|
+
[styles$1i['tab-zone--with-shadow']]: hasScrollTop
|
|
12776
12776
|
})
|
|
12777
12777
|
}, children);
|
|
12778
12778
|
};
|
|
@@ -12954,14 +12954,14 @@ const Modal = _ref => {
|
|
|
12954
12954
|
contentLabel: "Modal",
|
|
12955
12955
|
appElement: rootElementId && document.getElementById(rootElementId) || undefined,
|
|
12956
12956
|
overlayClassName: {
|
|
12957
|
-
base: classnames(styles$
|
|
12958
|
-
afterOpen: styles$
|
|
12959
|
-
beforeClose: styles$
|
|
12957
|
+
base: classnames(styles$1k['overlay'], draggable && styles$1k['overlay--draggable']),
|
|
12958
|
+
afterOpen: styles$1k['overlay--after-open'],
|
|
12959
|
+
beforeClose: styles$1k['overlay--before-close']
|
|
12960
12960
|
},
|
|
12961
12961
|
className: {
|
|
12962
|
-
base: classnames(styles$
|
|
12963
|
-
afterOpen: styles$
|
|
12964
|
-
beforeClose: styles$
|
|
12962
|
+
base: classnames(styles$1k['content'], draggable && styles$1k['content--draggable'], tabList && styles$1k['content--with-tab-list']),
|
|
12963
|
+
afterOpen: styles$1k['content--after-open'],
|
|
12964
|
+
beforeClose: styles$1k['content--before-close']
|
|
12965
12965
|
},
|
|
12966
12966
|
data: dataProps
|
|
12967
12967
|
}, draggable ? React__default.createElement(Draggable, {
|
|
@@ -12970,8 +12970,8 @@ const Modal = _ref => {
|
|
|
12970
12970
|
bounds: draggableBounds
|
|
12971
12971
|
}, React__default.createElement("div", {
|
|
12972
12972
|
ref: draggableCallbackRef,
|
|
12973
|
-
className: classnames(styles$
|
|
12974
|
-
[styles$
|
|
12973
|
+
className: classnames(styles$1k['draggable-inner'], {
|
|
12974
|
+
[styles$1k['draggable-inner--with-tab-list']]: !!tabList
|
|
12975
12975
|
}),
|
|
12976
12976
|
style: {
|
|
12977
12977
|
width,
|
|
@@ -12985,7 +12985,7 @@ Modal.setAppElement = rootElement => {
|
|
|
12985
12985
|
ReactModal.setAppElement(rootElement);
|
|
12986
12986
|
};
|
|
12987
12987
|
|
|
12988
|
-
var styles$
|
|
12988
|
+
var styles$1h = {"modal-body":"_4YK4k","modal-body--tab-mode":"_2-PSE"};
|
|
12989
12989
|
|
|
12990
12990
|
const ModalBody = ({
|
|
12991
12991
|
children,
|
|
@@ -12996,17 +12996,17 @@ const ModalBody = ({
|
|
|
12996
12996
|
hasTabList
|
|
12997
12997
|
} = useModalContext();
|
|
12998
12998
|
return React__default.createElement("div", {
|
|
12999
|
-
className: classnames(styles$
|
|
13000
|
-
[styles$
|
|
12999
|
+
className: classnames(styles$1h['modal-body'], {
|
|
13000
|
+
[styles$1h['modal-body--tab-mode']]: hasTabList
|
|
13001
13001
|
}),
|
|
13002
13002
|
"data-testid": testId,
|
|
13003
13003
|
ref: modalBodyRef
|
|
13004
13004
|
}, React__default.createElement("div", {
|
|
13005
|
-
className: styles$
|
|
13005
|
+
className: styles$1h['modal-body__inner-div']
|
|
13006
13006
|
}, children));
|
|
13007
13007
|
};
|
|
13008
13008
|
|
|
13009
|
-
var styles$
|
|
13009
|
+
var styles$1g = {"modal-footer":"_bezlP","modal-footer--with-shadow":"_hC4vb","modal-footer--tab-mode":"_o1kk7"};
|
|
13010
13010
|
|
|
13011
13011
|
const updateButtonProps$1 = (button, newProps) => {
|
|
13012
13012
|
if (!button) {
|
|
@@ -13071,9 +13071,9 @@ const FooterContainer = ({
|
|
|
13071
13071
|
displayName: 'Inline'
|
|
13072
13072
|
});
|
|
13073
13073
|
return React__default.createElement("div", {
|
|
13074
|
-
className: classnames(styles$
|
|
13075
|
-
[styles$
|
|
13076
|
-
[styles$
|
|
13074
|
+
className: classnames(styles$1g['modal-footer'], {
|
|
13075
|
+
[styles$1g['modal-footer--with-shadow']]: hasScrollBottom,
|
|
13076
|
+
[styles$1g['modal-footer--tab-mode']]: hasTabList
|
|
13077
13077
|
}),
|
|
13078
13078
|
"data-testid": testId
|
|
13079
13079
|
}, React__default.createElement(Inline, {
|
|
@@ -13087,7 +13087,7 @@ var dayOverridesStyles = {"root":"_et9Fs","table":"_l7Mis","caption":"_XGu8K","h
|
|
|
13087
13087
|
|
|
13088
13088
|
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"};
|
|
13089
13089
|
|
|
13090
|
-
var styles$
|
|
13090
|
+
var styles$1f = {"calendar":"_YPyZ6","calendar__overlay":"_-cw0A"};
|
|
13091
13091
|
|
|
13092
13092
|
function parseDate(str, format, locale) {
|
|
13093
13093
|
const parsed = dateFnsParse(str, format, new Date(), {
|
|
@@ -13219,7 +13219,7 @@ const getHighlightModifiers = groups => {
|
|
|
13219
13219
|
});
|
|
13220
13220
|
};
|
|
13221
13221
|
|
|
13222
|
-
var styles$
|
|
13222
|
+
var styles$1e = {"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"};
|
|
13223
13223
|
|
|
13224
13224
|
const calculateCalendarPosition = (placement, anchorPosition, calendarDimensions) => {
|
|
13225
13225
|
if (!calendarDimensions) {
|
|
@@ -13293,7 +13293,7 @@ const buildHighlightDayPickerProps = highlightedDays => {
|
|
|
13293
13293
|
theme
|
|
13294
13294
|
}) => {
|
|
13295
13295
|
modifiers[key] = matcher;
|
|
13296
|
-
modifiersClassNames[key] = classnames(styles$
|
|
13296
|
+
modifiersClassNames[key] = classnames(styles$1e.day_highlight, styles$1e[`shape-${shape}`], styles$1e[`theme-${theme}`]);
|
|
13297
13297
|
});
|
|
13298
13298
|
return {
|
|
13299
13299
|
modifiers,
|
|
@@ -13302,7 +13302,7 @@ const buildHighlightDayPickerProps = highlightedDays => {
|
|
|
13302
13302
|
};
|
|
13303
13303
|
};
|
|
13304
13304
|
|
|
13305
|
-
var styles$
|
|
13305
|
+
var styles$1d = {"calendar-highlights":"_TjAon","calendar-highlights__item":"_BbYmq","calendar-highlights__shape":"_utSi-","calendar-highlights__shape--square":"_mP9vd","calendar-highlights__shape--circle":"_6zlZT"};
|
|
13306
13306
|
|
|
13307
13307
|
/** Legend rendered beneath a calendar, one row item per highlight group. */
|
|
13308
13308
|
const CalendarHighlights = ({
|
|
@@ -13312,7 +13312,7 @@ const CalendarHighlights = ({
|
|
|
13312
13312
|
return null;
|
|
13313
13313
|
}
|
|
13314
13314
|
return React__default.createElement("div", {
|
|
13315
|
-
className: styles$
|
|
13315
|
+
className: styles$1d['calendar-highlights']
|
|
13316
13316
|
}, React__default.createElement(Inline, {
|
|
13317
13317
|
flexWrap: "wrap",
|
|
13318
13318
|
space: {
|
|
@@ -13327,7 +13327,7 @@ const CalendarHighlights = ({
|
|
|
13327
13327
|
theme
|
|
13328
13328
|
}) => React__default.createElement("div", {
|
|
13329
13329
|
key: label,
|
|
13330
|
-
className: styles$
|
|
13330
|
+
className: styles$1d['calendar-highlights__item']
|
|
13331
13331
|
}, React__default.createElement(Shape, {
|
|
13332
13332
|
shape: shape,
|
|
13333
13333
|
theme: theme
|
|
@@ -13340,45 +13340,45 @@ const Shape = ({
|
|
|
13340
13340
|
switch (shape) {
|
|
13341
13341
|
case 'square':
|
|
13342
13342
|
return React__default.createElement("div", {
|
|
13343
|
-
className: classnames(styles$
|
|
13343
|
+
className: classnames(styles$1d['calendar-highlights__shape'], styles$1d['calendar-highlights__shape--square']),
|
|
13344
13344
|
style: {
|
|
13345
13345
|
borderColor: COLORS[`${theme}-color`]
|
|
13346
13346
|
}
|
|
13347
13347
|
});
|
|
13348
13348
|
case 'square-dashed':
|
|
13349
13349
|
return React__default.createElement("div", {
|
|
13350
|
-
className: styles$
|
|
13350
|
+
className: styles$1d['calendar-highlights__shape']
|
|
13351
13351
|
}, React__default.createElement(SquareDashedShape, {
|
|
13352
13352
|
theme: theme
|
|
13353
13353
|
}));
|
|
13354
13354
|
case 'circle':
|
|
13355
13355
|
return React__default.createElement("div", {
|
|
13356
|
-
className: classnames(styles$
|
|
13356
|
+
className: classnames(styles$1d['calendar-highlights__shape'], styles$1d['calendar-highlights__shape--circle']),
|
|
13357
13357
|
style: {
|
|
13358
13358
|
borderColor: COLORS[`${theme}-color`]
|
|
13359
13359
|
}
|
|
13360
13360
|
});
|
|
13361
13361
|
case 'circle-dashed':
|
|
13362
13362
|
return React__default.createElement("div", {
|
|
13363
|
-
className: `${styles$
|
|
13363
|
+
className: `${styles$1d['calendar-highlights__shape']}`
|
|
13364
13364
|
}, React__default.createElement(CircleDashedShape, {
|
|
13365
13365
|
theme: theme
|
|
13366
13366
|
}));
|
|
13367
13367
|
case 'octagon':
|
|
13368
13368
|
return React__default.createElement("div", {
|
|
13369
|
-
className: `${styles$
|
|
13369
|
+
className: `${styles$1d['calendar-highlights__shape']}`
|
|
13370
13370
|
}, React__default.createElement(OctagonShape, {
|
|
13371
13371
|
theme: theme
|
|
13372
13372
|
}));
|
|
13373
13373
|
case 'star':
|
|
13374
13374
|
return React__default.createElement("div", {
|
|
13375
|
-
className: `${styles$
|
|
13375
|
+
className: `${styles$1d['calendar-highlights__shape']}`
|
|
13376
13376
|
}, React__default.createElement(StarShape, {
|
|
13377
13377
|
theme: theme
|
|
13378
13378
|
}));
|
|
13379
13379
|
default:
|
|
13380
13380
|
return React__default.createElement("div", {
|
|
13381
|
-
className: styles$
|
|
13381
|
+
className: styles$1d['calendar-highlight__shape']
|
|
13382
13382
|
}, shape);
|
|
13383
13383
|
}
|
|
13384
13384
|
};
|
|
@@ -13600,9 +13600,9 @@ const Calendar = ({
|
|
|
13600
13600
|
}
|
|
13601
13601
|
};
|
|
13602
13602
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
13603
|
-
className: styles$
|
|
13603
|
+
className: styles$1f['calendar']
|
|
13604
13604
|
}, React__default.createElement("div", {
|
|
13605
|
-
className: styles$
|
|
13605
|
+
className: styles$1f['calendar__overlay'],
|
|
13606
13606
|
ref: ref => setCalendarRef(ref),
|
|
13607
13607
|
style: _extends({}, calendarPosition, {
|
|
13608
13608
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -13662,7 +13662,7 @@ const useCheckBoxFieldControllers = ({
|
|
|
13662
13662
|
return controllers;
|
|
13663
13663
|
};
|
|
13664
13664
|
|
|
13665
|
-
var styles$
|
|
13665
|
+
var styles$1c = {"check-box-field":"_Id4qm","check-box-field__caption":"_s9d-m","check-box-field__custom-input":"_kmvBP"};
|
|
13666
13666
|
|
|
13667
13667
|
const _excluded$bk = ["name", "id", "checked", "indeterminate", "onChange", "onBlur", "label", "caption", "error", "disabled", "testId"];
|
|
13668
13668
|
/** 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). */
|
|
@@ -13698,7 +13698,7 @@ const CheckboxField = _ref => {
|
|
|
13698
13698
|
flexItems: true,
|
|
13699
13699
|
flex: ['0 0 auto']
|
|
13700
13700
|
}, otherProps), React__default.createElement("div", {
|
|
13701
|
-
className: styles$
|
|
13701
|
+
className: styles$1c['check-box-field']
|
|
13702
13702
|
}, React__default.createElement("input", {
|
|
13703
13703
|
name: name,
|
|
13704
13704
|
id: controllers.id,
|
|
@@ -13712,12 +13712,12 @@ const CheckboxField = _ref => {
|
|
|
13712
13712
|
onChange: controllers.onChange,
|
|
13713
13713
|
onBlur: controllers.onBlur
|
|
13714
13714
|
}), React__default.createElement("span", {
|
|
13715
|
-
className: styles$
|
|
13715
|
+
className: styles$1c['check-box-field__custom-input']
|
|
13716
13716
|
})), label && React__default.createElement(Label, {
|
|
13717
13717
|
htmlFor: controllers.id,
|
|
13718
13718
|
truncate: false
|
|
13719
13719
|
}, label)), caption && React__default.createElement("div", {
|
|
13720
|
-
className: styles$
|
|
13720
|
+
className: styles$1c['check-box-field__caption']
|
|
13721
13721
|
}, React__default.createElement(Caption, {
|
|
13722
13722
|
fieldId: controllers.id
|
|
13723
13723
|
}, caption)), controllers.error && React__default.createElement(ErrorMessage, {
|
|
@@ -13755,7 +13755,7 @@ const useLocalStorage = (key, initialValue) => {
|
|
|
13755
13755
|
return [storedValue, setValue];
|
|
13756
13756
|
};
|
|
13757
13757
|
|
|
13758
|
-
var styles$
|
|
13758
|
+
var styles$1b = {"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"};
|
|
13759
13759
|
|
|
13760
13760
|
const _excluded$bj = ["header", "children", "mediaUrl", "onClose", "modalId", "primaryButton", "secondaryButton", "testId", "onSetDoNotShowAgainStatus", "hideDoNotShowAgainCheckbox"];
|
|
13761
13761
|
/**
|
|
@@ -13827,22 +13827,22 @@ const HintModal = _ref => {
|
|
|
13827
13827
|
closeTimeoutMS: 200,
|
|
13828
13828
|
contentLabel: "Modal",
|
|
13829
13829
|
className: {
|
|
13830
|
-
base: styles$
|
|
13831
|
-
afterOpen: styles$
|
|
13832
|
-
beforeClose: styles$
|
|
13830
|
+
base: styles$1b['hint-modal'],
|
|
13831
|
+
afterOpen: styles$1b['hint-modal--after-open'],
|
|
13832
|
+
beforeClose: styles$1b['hint-modal--before-close']
|
|
13833
13833
|
},
|
|
13834
|
-
overlayClassName: styles$
|
|
13834
|
+
overlayClassName: styles$1b['hint-modal__overlay']
|
|
13835
13835
|
}, React__default.createElement("div", {
|
|
13836
|
-
className: styles$
|
|
13836
|
+
className: styles$1b['hint-modal__close-button']
|
|
13837
13837
|
}, React__default.createElement(Button, {
|
|
13838
13838
|
theme: "link-icon",
|
|
13839
13839
|
onClick: handleOnClose
|
|
13840
13840
|
}, React__default.createElement(IconTimes, null))), mediaUrl && React__default.createElement("img", {
|
|
13841
|
-
className: styles$
|
|
13841
|
+
className: styles$1b['hint-modal__image'],
|
|
13842
13842
|
src: mediaUrl,
|
|
13843
13843
|
alt: String(header)
|
|
13844
13844
|
}), React__default.createElement("div", {
|
|
13845
|
-
className: styles$
|
|
13845
|
+
className: styles$1b['hint-modal__body']
|
|
13846
13846
|
}, React__default.createElement(Stack, {
|
|
13847
13847
|
justifyContent: "space-between"
|
|
13848
13848
|
}, React__default.createElement(Stack, {
|
|
@@ -13920,17 +13920,17 @@ const BadgeElement = (_ref, forwardedRef) => {
|
|
|
13920
13920
|
overlay: title,
|
|
13921
13921
|
ref: ref
|
|
13922
13922
|
}, React__default.createElement("div", _extends({
|
|
13923
|
-
className: classnames(styles$
|
|
13924
|
-
[styles$
|
|
13925
|
-
[styles$
|
|
13926
|
-
[styles$
|
|
13927
|
-
[styles$
|
|
13928
|
-
[styles$
|
|
13929
|
-
[styles$
|
|
13930
|
-
[styles$
|
|
13931
|
-
[styles$
|
|
13932
|
-
[styles$
|
|
13933
|
-
[styles$
|
|
13923
|
+
className: classnames(styles$1l['badge'], {
|
|
13924
|
+
[styles$1l['badge--success']]: theme === 'success',
|
|
13925
|
+
[styles$1l['badge--danger']]: theme === 'danger',
|
|
13926
|
+
[styles$1l['badge--info']]: theme === 'info',
|
|
13927
|
+
[styles$1l['badge--warning']]: theme === 'warning',
|
|
13928
|
+
[styles$1l['badge--neutral']]: theme === 'neutral',
|
|
13929
|
+
[styles$1l['badge--upsell']]: theme === 'upsell',
|
|
13930
|
+
[styles$1l['badge--disabled']]: theme === 'disabled',
|
|
13931
|
+
[styles$1l['badge--numeric']]: !isDot && Number.isFinite(children),
|
|
13932
|
+
[styles$1l['badge--dot']]: isDot,
|
|
13933
|
+
[styles$1l['badge--outline']]: hasBorder
|
|
13934
13934
|
}),
|
|
13935
13935
|
ref: ref,
|
|
13936
13936
|
"data-testid": testId
|
|
@@ -13945,28 +13945,28 @@ const MenuItem = ({
|
|
|
13945
13945
|
menu
|
|
13946
13946
|
}) => {
|
|
13947
13947
|
return React__default.createElement("li", {
|
|
13948
|
-
className: classnames(styles$
|
|
13949
|
-
[styles$
|
|
13948
|
+
className: classnames(styles$1m['menu-item'], {
|
|
13949
|
+
[styles$1m['menu-item--with-badge']]: !!menu.suffix
|
|
13950
13950
|
})
|
|
13951
13951
|
}, menu.reloadDocument ? React__default.createElement("a", {
|
|
13952
13952
|
href: menu.to,
|
|
13953
13953
|
className: classnames({
|
|
13954
|
-
[styles$
|
|
13954
|
+
[styles$1m['menu-item--active']]: menu.isActive
|
|
13955
13955
|
})
|
|
13956
13956
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
13957
|
-
className: styles$
|
|
13957
|
+
className: styles$1m['menu-item__badge']
|
|
13958
13958
|
}, React__default.createElement(Badge, null, menu.suffix))) : React__default.createElement(NavLink, {
|
|
13959
13959
|
to: menu.to,
|
|
13960
13960
|
// @ts-expect-error This is only available on v5
|
|
13961
|
-
activeClassName: styles$
|
|
13961
|
+
activeClassName: styles$1m['menu-item--active'],
|
|
13962
13962
|
className: ({
|
|
13963
13963
|
isActive
|
|
13964
13964
|
}) => {
|
|
13965
|
-
return isActive ? styles$
|
|
13965
|
+
return isActive ? styles$1m['menu-item--active'] : '';
|
|
13966
13966
|
},
|
|
13967
13967
|
exact: true
|
|
13968
13968
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
13969
|
-
className: styles$
|
|
13969
|
+
className: styles$1m['menu-item__badge']
|
|
13970
13970
|
}, React__default.createElement(Badge, null, menu.suffix))));
|
|
13971
13971
|
};
|
|
13972
13972
|
|
|
@@ -13980,9 +13980,9 @@ const PageLayout = ({
|
|
|
13980
13980
|
sideNavContent
|
|
13981
13981
|
}) => {
|
|
13982
13982
|
return React__default.createElement("div", {
|
|
13983
|
-
className: styles$
|
|
13983
|
+
className: styles$1n['page-layout']
|
|
13984
13984
|
}, React__default.createElement("div", {
|
|
13985
|
-
className: styles$
|
|
13985
|
+
className: styles$1n['page-layout__nav-container']
|
|
13986
13986
|
}, React__default.createElement(Stack, {
|
|
13987
13987
|
space: 12
|
|
13988
13988
|
}, React__default.createElement(Text, {
|
|
@@ -13991,14 +13991,14 @@ const PageLayout = ({
|
|
|
13991
13991
|
ml: 20,
|
|
13992
13992
|
mr: 35
|
|
13993
13993
|
}, title), React__default.createElement("ul", {
|
|
13994
|
-
className: styles$
|
|
13994
|
+
className: styles$1n['page-layout__nav-list']
|
|
13995
13995
|
}, menu.filter(menu => !('isVisible' in menu) || (menu == null ? void 0 : menu.isVisible) === true).map((menuItem, index) => React__default.createElement(MenuItem, {
|
|
13996
13996
|
key: menuItem.name || index,
|
|
13997
13997
|
menu: menuItem
|
|
13998
13998
|
}))), sideNavContent && React__default.createElement("div", {
|
|
13999
|
-
className: styles$
|
|
13999
|
+
className: styles$1n['page-layout__side-nav-content']
|
|
14000
14000
|
}, sideNavContent))), React__default.createElement("div", {
|
|
14001
|
-
className: styles$
|
|
14001
|
+
className: styles$1n['page-layout__content']
|
|
14002
14002
|
}, children));
|
|
14003
14003
|
};
|
|
14004
14004
|
|
|
@@ -14008,7 +14008,7 @@ const TOAST_THEME = {
|
|
|
14008
14008
|
};
|
|
14009
14009
|
const TOAST_CONTAINER_ID = 'sous-chef-toast';
|
|
14010
14010
|
|
|
14011
|
-
var styles$
|
|
14011
|
+
var styles$1a = {"toast":"_iSC5P","toast--danger":"_OWpOG","toast__text":"_4JJwF"};
|
|
14012
14012
|
|
|
14013
14013
|
/**
|
|
14014
14014
|
* Shows a toast message.
|
|
@@ -14032,8 +14032,8 @@ const toast = (text, theme = TOAST_THEME.DEFAULT, options = {}) => {
|
|
|
14032
14032
|
onActionClick: onActionClick
|
|
14033
14033
|
}) : text;
|
|
14034
14034
|
toast$1(content, _extends({
|
|
14035
|
-
className: classnames(styles$
|
|
14036
|
-
[styles$
|
|
14035
|
+
className: classnames(styles$1a['toast'], {
|
|
14036
|
+
[styles$1a['toast--danger']]: theme === TOAST_THEME.DANGER
|
|
14037
14037
|
}),
|
|
14038
14038
|
containerId: TOAST_CONTAINER_ID
|
|
14039
14039
|
}, options));
|
|
@@ -14064,7 +14064,7 @@ const ToastBodyWithAction = ({
|
|
|
14064
14064
|
const ToastContainer = ({
|
|
14065
14065
|
containerId: _containerId = TOAST_CONTAINER_ID
|
|
14066
14066
|
}) => React__default.createElement(ToastContainer$1, {
|
|
14067
|
-
bodyClassName: styles$
|
|
14067
|
+
bodyClassName: styles$1a['toast__text'],
|
|
14068
14068
|
hideProgressBar: true,
|
|
14069
14069
|
draggable: false,
|
|
14070
14070
|
transition: Slide,
|
|
@@ -14142,7 +14142,7 @@ const SousChefProvider = ({
|
|
|
14142
14142
|
}, React__default.createElement(ToastContainer, null), children));
|
|
14143
14143
|
};
|
|
14144
14144
|
|
|
14145
|
-
var styles$
|
|
14145
|
+
var styles$19 = {"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"};
|
|
14146
14146
|
|
|
14147
14147
|
const SORT_ORDER = {
|
|
14148
14148
|
ASC: 'asc',
|
|
@@ -14328,7 +14328,7 @@ const DataTableHeader = ({
|
|
|
14328
14328
|
},
|
|
14329
14329
|
id: `${tableId}-header`
|
|
14330
14330
|
}, React__default.createElement("tr", {
|
|
14331
|
-
className: styles$
|
|
14331
|
+
className: styles$19['data-table-header']
|
|
14332
14332
|
}, columns.filter(column => !column.hidden).map(column => {
|
|
14333
14333
|
const isSortable = column.isSortable;
|
|
14334
14334
|
const sortDir = column.currentSort;
|
|
@@ -14336,8 +14336,8 @@ const DataTableHeader = ({
|
|
|
14336
14336
|
const hasDescription = !!column.description;
|
|
14337
14337
|
return React__default.createElement("th", {
|
|
14338
14338
|
className: classnames({
|
|
14339
|
-
[styles$
|
|
14340
|
-
[styles$
|
|
14339
|
+
[styles$19['data-table-header__item']]: true,
|
|
14340
|
+
[styles$19['data-table-header__item--sortable']]: isSortable
|
|
14341
14341
|
}),
|
|
14342
14342
|
style: {
|
|
14343
14343
|
flex: column.size || 1,
|
|
@@ -14349,18 +14349,18 @@ const DataTableHeader = ({
|
|
|
14349
14349
|
role: "columnheader",
|
|
14350
14350
|
tabIndex: 0
|
|
14351
14351
|
}, React__default.createElement("div", {
|
|
14352
|
-
className: classnames(styles$
|
|
14353
|
-
[styles$
|
|
14352
|
+
className: classnames(styles$19['data-table-header__item-content'], {
|
|
14353
|
+
[styles$19['data-table-header__item-content--right-align']]: isRightAligned
|
|
14354
14354
|
}, {
|
|
14355
|
-
[styles$
|
|
14355
|
+
[styles$19['data-table-header__item-content--has-description']]: hasDescription
|
|
14356
14356
|
})
|
|
14357
14357
|
}, wrapWithTooltip(column), isSortable && React__default.createElement("span", {
|
|
14358
|
-
className: styles$
|
|
14358
|
+
className: styles$19['data-table-header__sort-icon']
|
|
14359
14359
|
}, React__default.createElement(HeaderSortIcon, {
|
|
14360
14360
|
sortDirection: sortDir
|
|
14361
14361
|
}))));
|
|
14362
14362
|
}), showActionMenu && React__default.createElement("th", {
|
|
14363
|
-
className: classnames(styles$
|
|
14363
|
+
className: classnames(styles$19['data-table-header__item'], styles$19['data-table-header__item--action'])
|
|
14364
14364
|
}))));
|
|
14365
14365
|
};
|
|
14366
14366
|
const wrapWithTooltip = column => {
|
|
@@ -14374,9 +14374,9 @@ const wrapWithTooltip = column => {
|
|
|
14374
14374
|
return column.label;
|
|
14375
14375
|
};
|
|
14376
14376
|
|
|
14377
|
-
var styles$
|
|
14377
|
+
var styles$18 = {"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"};
|
|
14378
14378
|
|
|
14379
|
-
var styles$
|
|
14379
|
+
var styles$17 = {"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"};
|
|
14380
14380
|
|
|
14381
14381
|
const useTableHeaderHeight = isShowingColumns => {
|
|
14382
14382
|
const {
|
|
@@ -14428,10 +14428,10 @@ const DataTableScrollFakeBorder = ({
|
|
|
14428
14428
|
const hasFixedScroll = useDetectFixedScroll();
|
|
14429
14429
|
const backgroundColor = useBackgroundColor();
|
|
14430
14430
|
return React__default.createElement("div", {
|
|
14431
|
-
className: classnames(styles$
|
|
14432
|
-
[styles$
|
|
14433
|
-
[styles$
|
|
14434
|
-
[styles$
|
|
14431
|
+
className: classnames(styles$17['data-table-scroll-fake-border'], {
|
|
14432
|
+
[styles$17['data-table-scroll-fake-border--top']]: placement === 'top',
|
|
14433
|
+
[styles$17['data-table-scroll-fake-border--bottom']]: placement === 'bottom',
|
|
14434
|
+
[styles$17['data-table-scroll-fake-border--fixed-scroll']]: hasFixedScroll
|
|
14435
14435
|
}),
|
|
14436
14436
|
style: {
|
|
14437
14437
|
// @ts-expect-error This difines a custom CSS variable
|
|
@@ -14439,14 +14439,14 @@ const DataTableScrollFakeBorder = ({
|
|
|
14439
14439
|
top: placement === 'top' ? headerHeight : undefined
|
|
14440
14440
|
}
|
|
14441
14441
|
}, React__default.createElement("div", {
|
|
14442
|
-
className: classnames(styles$
|
|
14443
|
-
[styles$
|
|
14444
|
-
[styles$
|
|
14442
|
+
className: classnames(styles$17['data-table-scroll-fake-border__left'], {
|
|
14443
|
+
[styles$17['data-table-scroll-fake-border__left--top']]: placement === 'top',
|
|
14444
|
+
[styles$17['data-table-scroll-fake-border__left--bottom']]: placement === 'bottom'
|
|
14445
14445
|
})
|
|
14446
14446
|
}), React__default.createElement("div", {
|
|
14447
|
-
className: classnames(styles$
|
|
14448
|
-
[styles$
|
|
14449
|
-
[styles$
|
|
14447
|
+
className: classnames(styles$17['data-table-scroll-fake-border__right'], {
|
|
14448
|
+
[styles$17['data-table-scroll-fake-border__right--top']]: placement === 'top',
|
|
14449
|
+
[styles$17['data-table-scroll-fake-border__right--bottom']]: placement === 'bottom'
|
|
14450
14450
|
}),
|
|
14451
14451
|
"data-background-color": "red"
|
|
14452
14452
|
}));
|
|
@@ -14464,7 +14464,7 @@ const BUTTON_THEME = {
|
|
|
14464
14464
|
UPSELL: 'upsell'
|
|
14465
14465
|
};
|
|
14466
14466
|
|
|
14467
|
-
var styles$
|
|
14467
|
+
var styles$16 = {"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"};
|
|
14468
14468
|
|
|
14469
14469
|
/** Infers theme prop for Sous Chef Button CTAs if not explicitly passed, default is hollow, primaryCTA is Upsell if banner theme is Upsell*/
|
|
14470
14470
|
const ButtonCTA$1 = ({
|
|
@@ -14485,7 +14485,7 @@ const ButtonCTA$1 = ({
|
|
|
14485
14485
|
}, button.props));
|
|
14486
14486
|
};
|
|
14487
14487
|
|
|
14488
|
-
var styles$
|
|
14488
|
+
var styles$15 = {"banner__caption":"_S--Ce"};
|
|
14489
14489
|
|
|
14490
14490
|
const InlineBannerCTA = ({
|
|
14491
14491
|
primaryButton,
|
|
@@ -14517,7 +14517,7 @@ const InlineBannerCTA = ({
|
|
|
14517
14517
|
bannerTheme: bannerTheme,
|
|
14518
14518
|
primaryCTA: true
|
|
14519
14519
|
})), caption && multiLine && React__default.createElement("div", {
|
|
14520
|
-
className: styles$
|
|
14520
|
+
className: styles$15['banner__caption']
|
|
14521
14521
|
}, caption));
|
|
14522
14522
|
};
|
|
14523
14523
|
|
|
@@ -14571,21 +14571,21 @@ const InlineBanner = _ref => {
|
|
|
14571
14571
|
const Layout = multiLine ? Stack : Inline;
|
|
14572
14572
|
return React__default.createElement("div", {
|
|
14573
14573
|
"data-testid": testId,
|
|
14574
|
-
className: classnames(styles$
|
|
14575
|
-
[styles$
|
|
14576
|
-
[styles$
|
|
14577
|
-
[styles$
|
|
14578
|
-
[styles$
|
|
14579
|
-
[styles$
|
|
14580
|
-
[styles$
|
|
14574
|
+
className: classnames(styles$16['banner'], {
|
|
14575
|
+
[styles$16['banner--info']]: theme === BANNER_THEME.INFO,
|
|
14576
|
+
[styles$16['banner--warning']]: theme === BANNER_THEME.WARNING,
|
|
14577
|
+
[styles$16['banner--success']]: theme === BANNER_THEME.SUCCESS,
|
|
14578
|
+
[styles$16['banner--danger']]: theme === BANNER_THEME.DANGER,
|
|
14579
|
+
[styles$16['banner--upsell']]: theme === BANNER_THEME.UPSELL,
|
|
14580
|
+
[styles$16['banner--single-line']]: !multiLine
|
|
14581
14581
|
}),
|
|
14582
14582
|
style: positionStyles
|
|
14583
14583
|
}, React__default.createElement(Inline, {
|
|
14584
14584
|
flex: ['0 1 auto', 1],
|
|
14585
14585
|
space: 12
|
|
14586
14586
|
}, React__default.createElement("div", {
|
|
14587
|
-
className: classnames(styles$
|
|
14588
|
-
[styles$
|
|
14587
|
+
className: classnames(styles$16['banner__icon'], {
|
|
14588
|
+
[styles$16['banner__icon--multiline']]: multiLine
|
|
14589
14589
|
})
|
|
14590
14590
|
}, icon != null ? icon : React__default.createElement(InlineBannerIcon, {
|
|
14591
14591
|
theme: theme
|
|
@@ -14596,10 +14596,10 @@ const InlineBanner = _ref => {
|
|
|
14596
14596
|
flex: ['min-content'],
|
|
14597
14597
|
flexWrap: multiLine ? undefined : 'wrap'
|
|
14598
14598
|
}, title && React__default.createElement("div", {
|
|
14599
|
-
className: styles$
|
|
14599
|
+
className: styles$16['banner__title']
|
|
14600
14600
|
}, title), React__default.createElement("div", {
|
|
14601
|
-
className: classnames(styles$
|
|
14602
|
-
[styles$
|
|
14601
|
+
className: classnames(styles$16['banner__body'], {
|
|
14602
|
+
[styles$16['banner__body--multilineCTA']]: primaryButton && multiLine
|
|
14603
14603
|
})
|
|
14604
14604
|
}, children), primaryButton && React__default.createElement(InlineBannerCTA, {
|
|
14605
14605
|
primaryButton: primaryButton,
|
|
@@ -14608,7 +14608,7 @@ const InlineBanner = _ref => {
|
|
|
14608
14608
|
multiLine: multiLine,
|
|
14609
14609
|
bannerTheme: theme
|
|
14610
14610
|
})), dismissable && React__default.createElement("div", {
|
|
14611
|
-
className: styles$
|
|
14611
|
+
className: styles$16['banner__close']
|
|
14612
14612
|
}, React__default.createElement(Button, {
|
|
14613
14613
|
theme: "link-icon",
|
|
14614
14614
|
type: "button",
|
|
@@ -14624,7 +14624,7 @@ const MICRO_BANNER_THEME = {
|
|
|
14624
14624
|
UPSELL: 'upsell'
|
|
14625
14625
|
};
|
|
14626
14626
|
|
|
14627
|
-
var styles$
|
|
14627
|
+
var styles$14 = {"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"};
|
|
14628
14628
|
|
|
14629
14629
|
const MicroBannerIcon = ({
|
|
14630
14630
|
theme
|
|
@@ -14693,14 +14693,14 @@ const MicroBanner = _ref => {
|
|
|
14693
14693
|
const {
|
|
14694
14694
|
dataProps
|
|
14695
14695
|
} = getDataProps(otherProps);
|
|
14696
|
-
const themeClass = styles$
|
|
14697
|
-
const contentClass = classnames(styles$
|
|
14696
|
+
const themeClass = styles$14[`micro-banner--${theme}`];
|
|
14697
|
+
const contentClass = classnames(styles$14['micro-banner__content'], hideIcon && styles$14['micro-banner__content--no-icon'], !primaryButton && styles$14['micro-banner__content--no-button']);
|
|
14698
14698
|
return React__default.createElement("div", _extends({
|
|
14699
14699
|
"data-testid": testId,
|
|
14700
|
-
className: classnames(styles$
|
|
14700
|
+
className: classnames(styles$14['micro-banner'], themeClass),
|
|
14701
14701
|
style: positionProps
|
|
14702
14702
|
}, dataProps), !hideIcon && React__default.createElement("div", {
|
|
14703
|
-
className: styles$
|
|
14703
|
+
className: styles$14['micro-banner__icon'],
|
|
14704
14704
|
"data-testid": `${testId || 'micro-banner'}-icon`
|
|
14705
14705
|
}, icon != null ? icon : React__default.createElement(MicroBannerIcon, {
|
|
14706
14706
|
theme: theme
|
|
@@ -14711,7 +14711,7 @@ const MicroBanner = _ref => {
|
|
|
14711
14711
|
}, title), React__default.createElement(Text, {
|
|
14712
14712
|
as: 'caption'
|
|
14713
14713
|
}, children)), primaryButton && React__default.createElement("div", {
|
|
14714
|
-
className: styles$
|
|
14714
|
+
className: styles$14['micro-banner__button']
|
|
14715
14715
|
}, React__default.createElement(ButtonCTA, {
|
|
14716
14716
|
button: primaryButton,
|
|
14717
14717
|
bannerTheme: theme
|
|
@@ -14726,7 +14726,7 @@ const PERSISTENT_BANNER_THEME = {
|
|
|
14726
14726
|
SUCCESS: 'success'
|
|
14727
14727
|
};
|
|
14728
14728
|
|
|
14729
|
-
var styles$
|
|
14729
|
+
var styles$13 = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR","persistent-banner--warning":"_9eFhn","persistent-banner--success":"_hU34n"};
|
|
14730
14730
|
|
|
14731
14731
|
/**
|
|
14732
14732
|
* PersistentBanner displays a full-width message above the main navigation.
|
|
@@ -14758,12 +14758,12 @@ const PersistentBanner = ({
|
|
|
14758
14758
|
theme: BUTTON_THEMES.LINK_CONTRAST
|
|
14759
14759
|
}, secondaryButton.props))));
|
|
14760
14760
|
return React__default.createElement("div", {
|
|
14761
|
-
className: classnames(styles$
|
|
14762
|
-
[styles$
|
|
14763
|
-
[styles$
|
|
14764
|
-
[styles$
|
|
14765
|
-
[styles$
|
|
14766
|
-
[styles$
|
|
14761
|
+
className: classnames(styles$13['persistent-banner'], {
|
|
14762
|
+
[styles$13['persistent-banner--info']]: _theme === PERSISTENT_BANNER_THEME.INFO,
|
|
14763
|
+
[styles$13['persistent-banner--danger']]: _theme === PERSISTENT_BANNER_THEME.DANGER,
|
|
14764
|
+
[styles$13['persistent-banner--upsell']]: _theme === PERSISTENT_BANNER_THEME.UPSELL,
|
|
14765
|
+
[styles$13['persistent-banner--warning']]: _theme === PERSISTENT_BANNER_THEME.WARNING,
|
|
14766
|
+
[styles$13['persistent-banner--success']]: _theme === PERSISTENT_BANNER_THEME.SUCCESS
|
|
14767
14767
|
}),
|
|
14768
14768
|
"data-testid": testId
|
|
14769
14769
|
}, onDismiss ? React__default.createElement(Inline, {
|
|
@@ -14828,7 +14828,7 @@ const useProgress = (progress, maxValue, getMetric = getProgressMetric) => {
|
|
|
14828
14828
|
};
|
|
14829
14829
|
};
|
|
14830
14830
|
|
|
14831
|
-
var styles$
|
|
14831
|
+
var styles$12 = {"circular-progress":"_UI0Fo","circular-progress__label":"_6PNwZ","circular-progress__track":"_alBLB","circular-progress__indicator":"_VADa6"};
|
|
14832
14832
|
|
|
14833
14833
|
/**
|
|
14834
14834
|
* CircularProgress displays a circular track that fills as a count advances toward a total.
|
|
@@ -14845,7 +14845,7 @@ const CircularProgress = ({
|
|
|
14845
14845
|
} = useProgress(progress, _maxValue);
|
|
14846
14846
|
const determinant = metric.percentage * 2.79;
|
|
14847
14847
|
return React__default.createElement("div", _extends({}, elementProps, {
|
|
14848
|
-
className: styles$
|
|
14848
|
+
className: styles$12['circular-progress'],
|
|
14849
14849
|
"data-testid": testId
|
|
14850
14850
|
}), React__default.createElement("svg", {
|
|
14851
14851
|
viewBox: "0 0 100 100"
|
|
@@ -14854,21 +14854,21 @@ const CircularProgress = ({
|
|
|
14854
14854
|
cy: 50,
|
|
14855
14855
|
r: 45,
|
|
14856
14856
|
strokeWidth: "10px",
|
|
14857
|
-
className: styles$
|
|
14857
|
+
className: styles$12['circular-progress__track']
|
|
14858
14858
|
}), React__default.createElement("circle", {
|
|
14859
14859
|
cx: 50,
|
|
14860
14860
|
cy: 50,
|
|
14861
14861
|
r: 45,
|
|
14862
14862
|
strokeWidth: "10px",
|
|
14863
|
-
className: styles$
|
|
14863
|
+
className: styles$12['circular-progress__indicator'],
|
|
14864
14864
|
strokeDashoffset: "66",
|
|
14865
14865
|
strokeDasharray: `${determinant} ${279 - determinant}`
|
|
14866
14866
|
})), React__default.createElement("div", {
|
|
14867
|
-
className: styles$
|
|
14867
|
+
className: styles$12['circular-progress__label']
|
|
14868
14868
|
}, children || `${metric.progress}/${metric.maxValue}`));
|
|
14869
14869
|
};
|
|
14870
14870
|
|
|
14871
|
-
var styles$
|
|
14871
|
+
var styles$11 = {"progress-bar":"_fWvQF","progress-bar__indicator":"_vd0xc","progress-bar__indicator--complete":"_D9yNp","progress-bar__steps":"_8kdeO"};
|
|
14872
14872
|
|
|
14873
14873
|
/**
|
|
14874
14874
|
* ProgressBar shows a horizontal bar that fills as a task advances. It is used to indicate the overall progress for a task with a varying amount of steps to complete.
|
|
@@ -14886,23 +14886,23 @@ const ProgressBar = ({
|
|
|
14886
14886
|
metric
|
|
14887
14887
|
} = useProgress(progress, inferedMaxValue || 100, isUsingStepsAsMaxValue ? getProgressMetricWithSteps : getProgressMetric);
|
|
14888
14888
|
return React__default.createElement(Stack, null, React__default.createElement("div", _extends({}, elementProps, {
|
|
14889
|
-
className: styles$
|
|
14889
|
+
className: styles$11['progress-bar'],
|
|
14890
14890
|
"data-testid": testId
|
|
14891
14891
|
}), React__default.createElement("div", {
|
|
14892
|
-
className: classnames(styles$
|
|
14893
|
-
[styles$
|
|
14892
|
+
className: classnames(styles$11['progress-bar__indicator'], {
|
|
14893
|
+
[styles$11['progress-bar__indicator--complete']]: metric.percentage === 100
|
|
14894
14894
|
}),
|
|
14895
14895
|
style: {
|
|
14896
14896
|
width: `${metric.percentage}%`
|
|
14897
14897
|
}
|
|
14898
14898
|
})), steps && steps.length > 0 && React__default.createElement("div", {
|
|
14899
|
-
className: styles$
|
|
14899
|
+
className: styles$11['progress-bar__steps']
|
|
14900
14900
|
}, steps.map(step => React__default.createElement(Text, {
|
|
14901
14901
|
key: step
|
|
14902
14902
|
}, step))));
|
|
14903
14903
|
};
|
|
14904
14904
|
|
|
14905
|
-
var styles$
|
|
14905
|
+
var styles$10 = {"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"};
|
|
14906
14906
|
|
|
14907
14907
|
const SKELETON_COMPONENT = {
|
|
14908
14908
|
AVATAR: 'avatar',
|
|
@@ -14929,14 +14929,14 @@ const Skeleton = _ref => {
|
|
|
14929
14929
|
const positioning = usePositionStyles(positionStyles);
|
|
14930
14930
|
return React__default.createElement("div", {
|
|
14931
14931
|
"data-testid": testId,
|
|
14932
|
-
className: classnames(styles$
|
|
14933
|
-
[styles$
|
|
14934
|
-
[styles$
|
|
14935
|
-
[styles$
|
|
14936
|
-
[styles$
|
|
14937
|
-
[styles$
|
|
14938
|
-
[styles$
|
|
14939
|
-
[styles$
|
|
14932
|
+
className: classnames(styles$10['skeleton'], {
|
|
14933
|
+
[styles$10['skeleton__avatar']]: as === SKELETON_COMPONENT.AVATAR,
|
|
14934
|
+
[styles$10['skeleton__avatar--small']]: as === SKELETON_COMPONENT.AVATAR_SMALL,
|
|
14935
|
+
[styles$10['skeleton__avatar--medium']]: as === SKELETON_COMPONENT.AVATAR_MEDIUM,
|
|
14936
|
+
[styles$10['skeleton__avatar--large']]: as === SKELETON_COMPONENT.AVATAR_LARGE,
|
|
14937
|
+
[styles$10['skeleton__avatar--xlarge']]: as === SKELETON_COMPONENT.AVATAR_XLARGE,
|
|
14938
|
+
[styles$10['skeleton__button']]: as === SKELETON_COMPONENT.BUTTON,
|
|
14939
|
+
[styles$10['skeleton__pill']]: as === SKELETON_COMPONENT.PILL
|
|
14940
14940
|
}),
|
|
14941
14941
|
style: _extends({}, positioning, {
|
|
14942
14942
|
width: width,
|
|
@@ -14945,11 +14945,11 @@ const Skeleton = _ref => {
|
|
|
14945
14945
|
});
|
|
14946
14946
|
};
|
|
14947
14947
|
|
|
14948
|
-
var styles
|
|
14948
|
+
var styles$$ = {"data-table-row":"_hhDnr","data-table-row--clickable":"_ej5Ke","data-table-row--selected":"_qDTAh"};
|
|
14949
14949
|
|
|
14950
|
-
var styles
|
|
14950
|
+
var styles$_ = {"actions":"_ffXgN"};
|
|
14951
14951
|
|
|
14952
|
-
var styles$
|
|
14952
|
+
var styles$Z = {"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-"};
|
|
14953
14953
|
|
|
14954
14954
|
const DataTableCellElement = ({
|
|
14955
14955
|
children,
|
|
@@ -14973,9 +14973,9 @@ const DataTableCellElement = ({
|
|
|
14973
14973
|
const hasError = !!error;
|
|
14974
14974
|
const errorMessage = error;
|
|
14975
14975
|
const icon = hasError && React__default.createElement("div", {
|
|
14976
|
-
className: classnames(styles$
|
|
14977
|
-
[styles$
|
|
14978
|
-
[styles$
|
|
14976
|
+
className: classnames(styles$Z['data-table-cell__error-icon'], {
|
|
14977
|
+
[styles$Z['data-table-cell__error-icon--right-align']]: isRightAligned,
|
|
14978
|
+
[styles$Z['data-table-cell__error-icon--left-align']]: !isRightAligned
|
|
14979
14979
|
})
|
|
14980
14980
|
}, React__default.createElement(IconTimesOctagon, {
|
|
14981
14981
|
size: "medium",
|
|
@@ -14983,17 +14983,17 @@ const DataTableCellElement = ({
|
|
|
14983
14983
|
}));
|
|
14984
14984
|
const TableCell = React__default.createElement("td", {
|
|
14985
14985
|
className: classnames({
|
|
14986
|
-
[styles$
|
|
14987
|
-
[styles$
|
|
14988
|
-
[styles$
|
|
14989
|
-
}, styles$
|
|
14986
|
+
[styles$Z['data-table-cell--invalid']]: hasError,
|
|
14987
|
+
[styles$Z['data-table-cell--no-padding']]: _noPadding,
|
|
14988
|
+
[styles$Z['data-table-cell--vertical-border']]: hasVerticalBorders
|
|
14989
|
+
}, styles$Z['data-table-cell']),
|
|
14990
14990
|
colSpan: colSpan,
|
|
14991
14991
|
ref: ref
|
|
14992
14992
|
}, React__default.createElement("div", {
|
|
14993
|
-
className: classnames(styles$
|
|
14994
|
-
[styles$
|
|
14995
|
-
[styles$
|
|
14996
|
-
[styles$
|
|
14993
|
+
className: classnames(styles$Z['data-table-cell__content'], {
|
|
14994
|
+
[styles$Z['data-table-cell__content--with-error']]: hasError,
|
|
14995
|
+
[styles$Z['data-table-cell__content--right-align']]: isRightAligned,
|
|
14996
|
+
[styles$Z['data-table-cell__content--loading']]: state === DATA_TABLE_STATES.BACKGROUND_LOADING
|
|
14997
14997
|
})
|
|
14998
14998
|
}, isRightAligned && icon, children, !isRightAligned && icon));
|
|
14999
14999
|
return React__default.createElement(Tooltip, {
|
|
@@ -15017,7 +15017,7 @@ const DataTableRowActions = ({
|
|
|
15017
15017
|
return React__default.createElement(DataTableCell, {
|
|
15018
15018
|
columnIndex: columnIndex
|
|
15019
15019
|
}, React__default.createElement("div", {
|
|
15020
|
-
className: styles
|
|
15020
|
+
className: styles$_['actions'],
|
|
15021
15021
|
"data-testid": "data-table-dropdown-menu"
|
|
15022
15022
|
}, state === 'SKELETON_LOADING' && React__default.createElement(Skeleton, {
|
|
15023
15023
|
width: 45
|
|
@@ -15030,7 +15030,7 @@ const DataTableRowActions = ({
|
|
|
15030
15030
|
})));
|
|
15031
15031
|
};
|
|
15032
15032
|
|
|
15033
|
-
var styles$
|
|
15033
|
+
var styles$Y = {"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"};
|
|
15034
15034
|
|
|
15035
15035
|
const DataTableEditableCellElement = ({
|
|
15036
15036
|
name,
|
|
@@ -15079,8 +15079,8 @@ const DataTableEditableCellElement = ({
|
|
|
15079
15079
|
};
|
|
15080
15080
|
const EditableCell = React__default.createElement("div", {
|
|
15081
15081
|
className: classnames({
|
|
15082
|
-
[styles$
|
|
15083
|
-
}, styles$
|
|
15082
|
+
[styles$Y['data-table-editable-cell--currency']]: _type === 'currency'
|
|
15083
|
+
}, styles$Y['data-table-editable-cell']),
|
|
15084
15084
|
"data-testid": testId,
|
|
15085
15085
|
role: "cell"
|
|
15086
15086
|
}, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
@@ -15090,12 +15090,12 @@ const DataTableEditableCellElement = ({
|
|
|
15090
15090
|
name: name,
|
|
15091
15091
|
id: controllers.id,
|
|
15092
15092
|
className: classnames({
|
|
15093
|
-
[styles$
|
|
15094
|
-
[styles$
|
|
15095
|
-
[styles$
|
|
15096
|
-
[styles$
|
|
15097
|
-
[styles$
|
|
15098
|
-
[styles$
|
|
15093
|
+
[styles$Y['data-table-editable-cell--right-aligned']]: isRightAligned,
|
|
15094
|
+
[styles$Y['data-table-editable-cell--top-left']]: isTopLeftCell,
|
|
15095
|
+
[styles$Y['data-table-editable-cell--top-right']]: isTopRightCell,
|
|
15096
|
+
[styles$Y['data-table-editable-cell--bottom-left']]: isBottomLeftCell,
|
|
15097
|
+
[styles$Y['data-table-editable-cell--bottom-right']]: isBottomRightCell,
|
|
15098
|
+
[styles$Y['data-table-editable-cell--invalid']]: hasError
|
|
15099
15099
|
}),
|
|
15100
15100
|
type: _type === 'currency' ? 'number' : 'text',
|
|
15101
15101
|
step: _type === 'currency' ? 'any' : '',
|
|
@@ -15140,9 +15140,9 @@ const DataTableRowComponent = (_ref, ref) => {
|
|
|
15140
15140
|
const {
|
|
15141
15141
|
showActionMenu
|
|
15142
15142
|
} = useDataTableContext();
|
|
15143
|
-
const styleNames = classnames(styles
|
|
15144
|
-
[styles
|
|
15145
|
-
[styles
|
|
15143
|
+
const styleNames = classnames(styles$$['data-table-row'], {
|
|
15144
|
+
[styles$$['data-table-row--clickable']]: onClick,
|
|
15145
|
+
[styles$$['data-table-row--selected']]: isSelected
|
|
15146
15146
|
});
|
|
15147
15147
|
const renderColumn = (columnElement, index) => {
|
|
15148
15148
|
const isUsingDataTableCell = columnElement && typeof columnElement === 'object' && 'type' in columnElement && (columnElement == null ? void 0 : columnElement.type) === DataTableCell;
|
|
@@ -15233,7 +15233,7 @@ const calculateScrollState = scrollContainer => {
|
|
|
15233
15233
|
return DATA_TABLE_SCROLL_STATES.NO_SCROLL;
|
|
15234
15234
|
};
|
|
15235
15235
|
|
|
15236
|
-
var styles$
|
|
15236
|
+
var styles$X = {"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"};
|
|
15237
15237
|
|
|
15238
15238
|
const useDataTableScrollState = stickyColumns => {
|
|
15239
15239
|
const scrollContainerRef = useRef(null);
|
|
@@ -15275,7 +15275,7 @@ const useDataTableScrollState = stickyColumns => {
|
|
|
15275
15275
|
};
|
|
15276
15276
|
};
|
|
15277
15277
|
|
|
15278
|
-
var styles$
|
|
15278
|
+
var styles$W = {"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"};
|
|
15279
15279
|
|
|
15280
15280
|
const DataTableCoverShadow = ({
|
|
15281
15281
|
isShowingColumns,
|
|
@@ -15293,11 +15293,11 @@ const DataTableCoverShadow = ({
|
|
|
15293
15293
|
return `calc(100% - ${headerHeight})`;
|
|
15294
15294
|
};
|
|
15295
15295
|
return React__default.createElement("div", {
|
|
15296
|
-
className: classnames(styles$
|
|
15297
|
-
[styles$
|
|
15298
|
-
[styles$
|
|
15299
|
-
[styles$
|
|
15300
|
-
[styles$
|
|
15296
|
+
className: classnames(styles$W['data-table-cover-shadow'], {
|
|
15297
|
+
[styles$W['data-table-cover-shadow--left']]: direction === 'left',
|
|
15298
|
+
[styles$W['data-table-cover-shadow--left-shadow']]: direction === 'left' && showShadow,
|
|
15299
|
+
[styles$W['data-table-cover-shadow--right']]: direction === 'right',
|
|
15300
|
+
[styles$W['data-table-cover-shadow--right-shadow']]: direction === 'right' && showShadow
|
|
15301
15301
|
}),
|
|
15302
15302
|
style: {
|
|
15303
15303
|
// @ts-expect-error This difines a custom CSS variable
|
|
@@ -15359,13 +15359,13 @@ const DataTableStickyColumnsContainer = ({
|
|
|
15359
15359
|
isShowingColumns: !!isShowingColumns,
|
|
15360
15360
|
showShadow: state === 'EMPTY' ? false : stickyColumns === 'left'
|
|
15361
15361
|
})), React__default.createElement("div", {
|
|
15362
|
-
className: classnames(styles$
|
|
15363
|
-
[styles$
|
|
15364
|
-
[styles$
|
|
15365
|
-
[styles$
|
|
15366
|
-
[styles$
|
|
15367
|
-
[styles$
|
|
15368
|
-
[styles$
|
|
15362
|
+
className: classnames(styles$X[containerClassName], {
|
|
15363
|
+
[styles$X[`${containerClassName}--with-footer`]]: isShowingFooter,
|
|
15364
|
+
[styles$X[`${containerClassName}--with-left-sticky-columns`]]: hasLeftColumnSticky,
|
|
15365
|
+
[styles$X[`${containerClassName}--with-left-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasLeftColumnSticky && hasScrollOnLeft : false,
|
|
15366
|
+
[styles$X[`${containerClassName}--with-right-sticky-columns`]]: hasRightColumnSticky,
|
|
15367
|
+
[styles$X[`${containerClassName}--with-right-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasRightColumnSticky && hasScrollOnRight : false,
|
|
15368
|
+
[styles$X[`${containerClassName}--no-shadow`]]: noShadow
|
|
15369
15369
|
}),
|
|
15370
15370
|
onScroll: onScroll,
|
|
15371
15371
|
ref: scrollContainerRef,
|
|
@@ -15373,11 +15373,11 @@ const DataTableStickyColumnsContainer = ({
|
|
|
15373
15373
|
}, children));
|
|
15374
15374
|
};
|
|
15375
15375
|
|
|
15376
|
-
var styles$
|
|
15376
|
+
var styles$V = {"data-table-empty-state":"_fCHjG"};
|
|
15377
15377
|
|
|
15378
|
-
var styles$
|
|
15378
|
+
var styles$U = {"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"};
|
|
15379
15379
|
|
|
15380
|
-
var styles$
|
|
15380
|
+
var styles$T = {"empty-state-container-cta":"_X-dEs","empty-state-container-cta--inside-modal":"_63-SX"};
|
|
15381
15381
|
|
|
15382
15382
|
const EmptyStateContainerCTA = ({
|
|
15383
15383
|
isPaywall,
|
|
@@ -15394,8 +15394,8 @@ const EmptyStateContainerCTA = ({
|
|
|
15394
15394
|
size: BUTTON_SIZES.MIN_WIDTH_100
|
|
15395
15395
|
});
|
|
15396
15396
|
return React__default.createElement("div", {
|
|
15397
|
-
className: classnames(styles$
|
|
15398
|
-
[styles$
|
|
15397
|
+
className: classnames(styles$T['empty-state-container-cta'], {
|
|
15398
|
+
[styles$T['empty-state-container-cta--inside-modal']]: _isInsideModal
|
|
15399
15399
|
})
|
|
15400
15400
|
}, primaryButton, secondaryButton);
|
|
15401
15401
|
};
|
|
@@ -15419,7 +15419,7 @@ const EmptyStateContainerStack = ({
|
|
|
15419
15419
|
mediaComponent
|
|
15420
15420
|
}) => {
|
|
15421
15421
|
return React__default.createElement("div", {
|
|
15422
|
-
className: styles$
|
|
15422
|
+
className: styles$U['empty-state-container-stack'],
|
|
15423
15423
|
"data-testid": testId
|
|
15424
15424
|
}, mediaComponent ? mediaComponent : mediaUrl && React__default.createElement("img", {
|
|
15425
15425
|
src: mediaUrl,
|
|
@@ -15436,7 +15436,7 @@ const EmptyStateContainerStack = ({
|
|
|
15436
15436
|
as: "body",
|
|
15437
15437
|
alignment: "center"
|
|
15438
15438
|
}, title), React__default.createElement("div", {
|
|
15439
|
-
className: styles$
|
|
15439
|
+
className: styles$U['empty-state-container-stack__body']
|
|
15440
15440
|
}, children)), React__default.createElement(Stack, {
|
|
15441
15441
|
space: 8,
|
|
15442
15442
|
alignItems: "center"
|
|
@@ -15548,7 +15548,7 @@ const DataTableEmptyState = ({
|
|
|
15548
15548
|
columnIndex: shouldRenderStickyLeftCell ? 1 : 0,
|
|
15549
15549
|
colSpan: colSpan
|
|
15550
15550
|
}, React__default.createElement("div", {
|
|
15551
|
-
className: styles$
|
|
15551
|
+
className: styles$V['data-table-empty-state']
|
|
15552
15552
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
15553
15553
|
mediaUrl: customImage,
|
|
15554
15554
|
mediaComponent: customImage === '' ? React__default.createElement(MagnifyingGlassIllustration, null) : undefined,
|
|
@@ -15635,7 +15635,7 @@ const DataTable = _ref => {
|
|
|
15635
15635
|
return null;
|
|
15636
15636
|
}
|
|
15637
15637
|
return React__default.createElement("div", {
|
|
15638
|
-
className: styles$
|
|
15638
|
+
className: styles$18['data-table__pagination-controls'],
|
|
15639
15639
|
"data-testid": testId && `${testId}-pagination-controls`
|
|
15640
15640
|
}, React__default.createElement(PaginationControls, {
|
|
15641
15641
|
hasPrevious: isLoading ? false : hasPrevious,
|
|
@@ -15658,7 +15658,7 @@ const DataTable = _ref => {
|
|
|
15658
15658
|
tableId
|
|
15659
15659
|
}
|
|
15660
15660
|
}, React__default.createElement("div", {
|
|
15661
|
-
className: classnames(styles$
|
|
15661
|
+
className: classnames(styles$18['data-table']),
|
|
15662
15662
|
ref: tableRef,
|
|
15663
15663
|
style: positionStyles
|
|
15664
15664
|
}, React__default.createElement(DataTableStickyColumnsContainer, {
|
|
@@ -15669,24 +15669,24 @@ const DataTable = _ref => {
|
|
|
15669
15669
|
placement: "top",
|
|
15670
15670
|
isShowingColumns: !!isShowingColumns
|
|
15671
15671
|
}), React__default.createElement("div", {
|
|
15672
|
-
className: classnames(styles$
|
|
15673
|
-
[styles$
|
|
15672
|
+
className: classnames(styles$18['data-table__content'], {
|
|
15673
|
+
[styles$18['data-table__content--with-scroll']]: isScrollableTable
|
|
15674
15674
|
}),
|
|
15675
15675
|
style: conditionalStyles,
|
|
15676
15676
|
id: `${tableId}-content`
|
|
15677
15677
|
}, state === DATA_TABLE_STATES.BACKGROUND_LOADING && React__default.createElement("div", {
|
|
15678
|
-
className: styles$
|
|
15678
|
+
className: styles$18['data-table__background-loading']
|
|
15679
15679
|
}, React__default.createElement(Spinner, null)), React__default.createElement("table", _extends({
|
|
15680
|
-
className: classnames(styles$
|
|
15681
|
-
[styles$
|
|
15680
|
+
className: classnames(styles$18['data-table__table'], {
|
|
15681
|
+
[styles$18['data-table__table--no-columns']]: !isShowingColumns
|
|
15682
15682
|
})
|
|
15683
15683
|
}, dataProps), columns && isShowingColumns && React__default.createElement(DataTableHeader, {
|
|
15684
15684
|
columns: columns,
|
|
15685
15685
|
onSort: onSort,
|
|
15686
15686
|
showActionMenu: isShowingContent && showActionMenu
|
|
15687
15687
|
}), React__default.createElement("tbody", {
|
|
15688
|
-
className: classnames(styles$
|
|
15689
|
-
[styles$
|
|
15688
|
+
className: classnames(styles$18['data-table__body'], {
|
|
15689
|
+
[styles$18['data-table__body--no-bottom-radius']]: isShowingFooter && isShowingContent
|
|
15690
15690
|
}),
|
|
15691
15691
|
"data-testid": testId
|
|
15692
15692
|
}, isShowingContent && content.map((item, index) => {
|
|
@@ -15705,7 +15705,7 @@ const DataTable = _ref => {
|
|
|
15705
15705
|
}), state === DATA_TABLE_STATES.SKELETON_LOADING && React__default.createElement(React__default.Fragment, null, skeletonRows.map((_, index) => React__default.createElement(SkeletonRow, {
|
|
15706
15706
|
key: index
|
|
15707
15707
|
})))), isShowingFooter && isShowingContent && React__default.createElement("tfoot", {
|
|
15708
|
-
className: styles$
|
|
15708
|
+
className: styles$18['data-table__footer'],
|
|
15709
15709
|
"data-testid": testId && `${testId}-footer`
|
|
15710
15710
|
}, footerComponent)))), !isShowingFooter && isScrollableTable && React__default.createElement(DataTableScrollFakeBorder, {
|
|
15711
15711
|
placement: "bottom",
|
|
@@ -15713,7 +15713,7 @@ const DataTable = _ref => {
|
|
|
15713
15713
|
})), React__default.createElement(Pagination, null));
|
|
15714
15714
|
};
|
|
15715
15715
|
|
|
15716
|
-
var styles$
|
|
15716
|
+
var styles$S = {"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"};
|
|
15717
15717
|
|
|
15718
15718
|
const AccordionItem = props => {
|
|
15719
15719
|
const {
|
|
@@ -15728,10 +15728,10 @@ const AccordionItem = props => {
|
|
|
15728
15728
|
} = item;
|
|
15729
15729
|
const isFocusedByClickRef = React__default.useRef(false);
|
|
15730
15730
|
return React__default.createElement("div", {
|
|
15731
|
-
className: styles$
|
|
15731
|
+
className: styles$S['accordion-item']
|
|
15732
15732
|
}, React__default.createElement("button", {
|
|
15733
15733
|
type: "button",
|
|
15734
|
-
className: styles$
|
|
15734
|
+
className: styles$S['accordion-item__header'],
|
|
15735
15735
|
onClick: () => {
|
|
15736
15736
|
if (isOpen) {
|
|
15737
15737
|
handleAccordionItemOpen(null);
|
|
@@ -15758,15 +15758,15 @@ const AccordionItem = props => {
|
|
|
15758
15758
|
}, typeof title === 'string' ? React__default.createElement(Text, {
|
|
15759
15759
|
emphasis: "bold"
|
|
15760
15760
|
}, title) : title, React__default.createElement(IconChevronDown, {
|
|
15761
|
-
className: styles$
|
|
15761
|
+
className: styles$S[`accordion-item__icon${isOpen ? '--active' : ''}`],
|
|
15762
15762
|
color: 'surface-on-color-subtle'
|
|
15763
15763
|
}))), React__default.createElement("div", {
|
|
15764
15764
|
"data-testid": `${isOpen ? 'accordion-item-' + id + '-open' : 'accordion-item-' + id + '-closed'}`,
|
|
15765
|
-
className: styles$
|
|
15765
|
+
className: styles$S[`accordion-item__content${isOpen ? '--active' : ''}`]
|
|
15766
15766
|
}, isOpen && React__default.createElement(Text, null, content)));
|
|
15767
15767
|
};
|
|
15768
15768
|
|
|
15769
|
-
var styles$
|
|
15769
|
+
var styles$R = {"accordion":"_058SP"};
|
|
15770
15770
|
|
|
15771
15771
|
const _excluded$bc = ["items", "onExpand", "defaultOpenId"];
|
|
15772
15772
|
/**
|
|
@@ -15797,7 +15797,7 @@ const Accordion = _ref => {
|
|
|
15797
15797
|
isAccordionMounted: true
|
|
15798
15798
|
}
|
|
15799
15799
|
}, React__default.createElement("div", _extends({
|
|
15800
|
-
className: styles$
|
|
15800
|
+
className: styles$R['accordion']
|
|
15801
15801
|
}, dataProps), items.map((item, index) => {
|
|
15802
15802
|
const id = item.id || index.toString();
|
|
15803
15803
|
return React__default.createElement(AccordionItem, {
|
|
@@ -15811,7 +15811,7 @@ const Accordion = _ref => {
|
|
|
15811
15811
|
})));
|
|
15812
15812
|
};
|
|
15813
15813
|
|
|
15814
|
-
var styles$
|
|
15814
|
+
var styles$Q = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
|
|
15815
15815
|
|
|
15816
15816
|
/**
|
|
15817
15817
|
* 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.
|
|
@@ -15826,15 +15826,15 @@ const ActionList = ({
|
|
|
15826
15826
|
const translate = useTranslation('ActionList');
|
|
15827
15827
|
const hasChildren = React__default.Children.count(children) > 0;
|
|
15828
15828
|
return React__default.createElement("div", {
|
|
15829
|
-
className: styles$
|
|
15829
|
+
className: styles$Q['action-list'],
|
|
15830
15830
|
"data-testid": testId,
|
|
15831
15831
|
style: {
|
|
15832
15832
|
maxHeight: maxHeight
|
|
15833
15833
|
}
|
|
15834
15834
|
}, title && React__default.createElement("div", {
|
|
15835
|
-
className: styles$
|
|
15835
|
+
className: styles$Q['action-list__title']
|
|
15836
15836
|
}, title), hasChildren ? children : React__default.createElement("div", {
|
|
15837
|
-
className: styles$
|
|
15837
|
+
className: styles$Q['action-list__empty-state']
|
|
15838
15838
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
15839
15839
|
title: (emptyState == null ? void 0 : emptyState.title) || translate('emptyStateTitle'),
|
|
15840
15840
|
mediaUrl: emptyState == null ? void 0 : emptyState.image,
|
|
@@ -15947,7 +15947,7 @@ const ActionListItem = ({
|
|
|
15947
15947
|
})))));
|
|
15948
15948
|
};
|
|
15949
15949
|
|
|
15950
|
-
var styles$
|
|
15950
|
+
var styles$P = {"basic-table":"_Yc9AH","basic-table--card":"_nDE02","basic-table--vertical-borders":"_pIpwY","basic-table--compact":"_-Orch","basic-table--loose":"_aNKE9","basic-table__table":"_eG7xY","basic-table__caption":"_wGxgK"};
|
|
15951
15951
|
|
|
15952
15952
|
const useIsOverflowing = containerRef => {
|
|
15953
15953
|
const [isOverflowing, setIsOverflowing] = useState(false);
|
|
@@ -16009,11 +16009,11 @@ const BasicTable = _ref => {
|
|
|
16009
16009
|
const isOverflowing = useIsOverflowing(containerRef);
|
|
16010
16010
|
return React__default.createElement("div", {
|
|
16011
16011
|
ref: containerRef,
|
|
16012
|
-
className: classnames(styles$
|
|
16013
|
-
[styles$
|
|
16014
|
-
[styles$
|
|
16015
|
-
[styles$
|
|
16016
|
-
[styles$
|
|
16012
|
+
className: classnames(styles$P['basic-table'], {
|
|
16013
|
+
[styles$P['basic-table--card']]: theme === BASIC_TABLE_THEME.CARD,
|
|
16014
|
+
[styles$P['basic-table--vertical-borders']]: hasVerticalBorders,
|
|
16015
|
+
[styles$P['basic-table--compact']]: size === BASIC_TABLE_SIZE.COMPACT,
|
|
16016
|
+
[styles$P['basic-table--loose']]: size === BASIC_TABLE_SIZE.LOOSE
|
|
16017
16017
|
}),
|
|
16018
16018
|
style: positionStyles,
|
|
16019
16019
|
// Lets keyboard users scroll the table when it overflows and has nothing focusable inside
|
|
@@ -16021,10 +16021,10 @@ const BasicTable = _ref => {
|
|
|
16021
16021
|
role: isOverflowing && caption ? 'region' : undefined,
|
|
16022
16022
|
"aria-label": isOverflowing ? caption : undefined
|
|
16023
16023
|
}, React__default.createElement("table", _extends({
|
|
16024
|
-
className: styles$
|
|
16024
|
+
className: styles$P['basic-table__table'],
|
|
16025
16025
|
"data-testid": testId
|
|
16026
16026
|
}, dataProps), caption && React__default.createElement("caption", {
|
|
16027
|
-
className: styles$
|
|
16027
|
+
className: styles$P['basic-table__caption']
|
|
16028
16028
|
}, caption), children));
|
|
16029
16029
|
};
|
|
16030
16030
|
|
|
@@ -16051,17 +16051,17 @@ const BasicTableBody = ({
|
|
|
16051
16051
|
"data-testid": testId
|
|
16052
16052
|
}, children));
|
|
16053
16053
|
|
|
16054
|
-
var styles$
|
|
16054
|
+
var styles$O = {"basic-table-row":"_CYaKT"};
|
|
16055
16055
|
|
|
16056
16056
|
const BasicTableRow = ({
|
|
16057
16057
|
children,
|
|
16058
16058
|
testId
|
|
16059
16059
|
}) => React__default.createElement("tr", {
|
|
16060
|
-
className: styles$
|
|
16060
|
+
className: styles$O['basic-table-row'],
|
|
16061
16061
|
"data-testid": testId
|
|
16062
16062
|
}, children);
|
|
16063
16063
|
|
|
16064
|
-
var styles$
|
|
16064
|
+
var styles$N = {"basic-table-cell":"_W0TbP","basic-table-cell--column-header":"_oipWH","basic-table-cell--right-align":"_uWC8O"};
|
|
16065
16065
|
|
|
16066
16066
|
const BasicTableCell = ({
|
|
16067
16067
|
children,
|
|
@@ -16072,9 +16072,9 @@ const BasicTableCell = ({
|
|
|
16072
16072
|
}) => {
|
|
16073
16073
|
const section = useBasicTableSection();
|
|
16074
16074
|
const isColumnHeader = section === BASIC_TABLE_SECTION.HEADER;
|
|
16075
|
-
const className = classnames(styles$
|
|
16076
|
-
[styles$
|
|
16077
|
-
[styles$
|
|
16075
|
+
const className = classnames(styles$N['basic-table-cell'], {
|
|
16076
|
+
[styles$N['basic-table-cell--column-header']]: isColumnHeader,
|
|
16077
|
+
[styles$N['basic-table-cell--right-align']]: _align === 'right'
|
|
16078
16078
|
});
|
|
16079
16079
|
if (isColumnHeader || _isRowHeader) {
|
|
16080
16080
|
return React__default.createElement("th", {
|
|
@@ -16156,7 +16156,7 @@ const useSelectFieldControllers = ({
|
|
|
16156
16156
|
return controllers;
|
|
16157
16157
|
};
|
|
16158
16158
|
|
|
16159
|
-
var styles$
|
|
16159
|
+
var styles$M = {"custom-control":"_pXQqq"};
|
|
16160
16160
|
|
|
16161
16161
|
const _excluded$ba = ["children"];
|
|
16162
16162
|
function CustomControl(_ref) {
|
|
@@ -16170,7 +16170,7 @@ function CustomControl(_ref) {
|
|
|
16170
16170
|
} = props.selectProps.componentsProps;
|
|
16171
16171
|
const selectedOption = (_props$getValue = props.getValue()) == null ? void 0 : _props$getValue[0];
|
|
16172
16172
|
return React__default.createElement(components.Control, _extends({}, props), SelectedOptionPrefix && selectedOption ? React__default.createElement("div", {
|
|
16173
|
-
className: styles$
|
|
16173
|
+
className: styles$M['custom-control'],
|
|
16174
16174
|
style: {
|
|
16175
16175
|
paddingLeft: selectedOption ? 8 : 0
|
|
16176
16176
|
}
|
|
@@ -16349,9 +16349,9 @@ const CustomContainer = props => {
|
|
|
16349
16349
|
}));
|
|
16350
16350
|
};
|
|
16351
16351
|
|
|
16352
|
-
var styles$
|
|
16352
|
+
var styles$L = {"custom-menu-text-field":"_AAUjm","custom-menu-hr":"_mFLK9","custom-menu-div":"_1XpI4"};
|
|
16353
16353
|
|
|
16354
|
-
var styles$
|
|
16354
|
+
var styles$K = {"creatable-button--align-left":"_Qw267","creatable-button":"_f9V5D"};
|
|
16355
16355
|
|
|
16356
16356
|
/**
|
|
16357
16357
|
* Shared creatable button component used in CustomMenu and CustomGroupWithCreate.
|
|
@@ -16375,8 +16375,8 @@ const CreatableButton = ({
|
|
|
16375
16375
|
};
|
|
16376
16376
|
if (!button || typeof button === 'string') {
|
|
16377
16377
|
return React__default.createElement("div", {
|
|
16378
|
-
className: classnames(styles$
|
|
16379
|
-
[styles$
|
|
16378
|
+
className: classnames(styles$K['creatable-button'], {
|
|
16379
|
+
[styles$K['creatable-button--align-left']]: _alignLeft
|
|
16380
16380
|
})
|
|
16381
16381
|
}, React__default.createElement(Button, {
|
|
16382
16382
|
theme: "link-primary",
|
|
@@ -16401,8 +16401,8 @@ const CreatableButton = ({
|
|
|
16401
16401
|
overrideProps.theme = 'link-primary';
|
|
16402
16402
|
}
|
|
16403
16403
|
return React__default.createElement("div", {
|
|
16404
|
-
className: classnames(styles$
|
|
16405
|
-
[styles$
|
|
16404
|
+
className: classnames(styles$K['creatable-button'], {
|
|
16405
|
+
[styles$K['creatable-button--align-left']]: _alignLeft
|
|
16406
16406
|
})
|
|
16407
16407
|
}, React__default.cloneElement(button, overrideProps));
|
|
16408
16408
|
};
|
|
@@ -16428,7 +16428,7 @@ const CreateInputForm = ({
|
|
|
16428
16428
|
flex: [1],
|
|
16429
16429
|
flexItems: true
|
|
16430
16430
|
}, React__default.createElement("input", {
|
|
16431
|
-
className: classnames(styles$
|
|
16431
|
+
className: classnames(styles$1z['text-field'], inputClassName),
|
|
16432
16432
|
autoCorrect: "off",
|
|
16433
16433
|
autoComplete: "off",
|
|
16434
16434
|
spellCheck: "false",
|
|
@@ -16494,7 +16494,7 @@ function CustomMenu(_ref) {
|
|
|
16494
16494
|
return React__default.createElement(components.Menu, _extends({}, props), React__default.createElement("div", {
|
|
16495
16495
|
ref: containerRef
|
|
16496
16496
|
}, children, React__default.createElement("hr", {
|
|
16497
|
-
className: styles$
|
|
16497
|
+
className: styles$L['custom-menu-hr']
|
|
16498
16498
|
}), !showFooter ? React__default.createElement(CreatableButton, {
|
|
16499
16499
|
creatableButton: creatableButton,
|
|
16500
16500
|
onClick: () => setShowFooter(true),
|
|
@@ -16505,13 +16505,13 @@ function CustomMenu(_ref) {
|
|
|
16505
16505
|
onMenuInputFocus: onMenuInputFocus,
|
|
16506
16506
|
onSubmit: onCreateButton,
|
|
16507
16507
|
defaultValue: inputDefaultValue,
|
|
16508
|
-
wrapperClassName: styles$
|
|
16509
|
-
inputClassName: styles$
|
|
16508
|
+
wrapperClassName: styles$L['custom-menu-div'],
|
|
16509
|
+
inputClassName: styles$L['custom-menu-text-field'],
|
|
16510
16510
|
testId: "select-create-option-input"
|
|
16511
16511
|
})));
|
|
16512
16512
|
}
|
|
16513
16513
|
|
|
16514
|
-
var styles$
|
|
16514
|
+
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"};
|
|
16515
16515
|
|
|
16516
16516
|
function CustomGroupWithCreate(props) {
|
|
16517
16517
|
const {
|
|
@@ -16545,7 +16545,7 @@ function CustomGroupWithCreate(props) {
|
|
|
16545
16545
|
return React__default.createElement("div", {
|
|
16546
16546
|
ref: containerRef
|
|
16547
16547
|
}, React__default.createElement(components.Group, _extends({}, props)), !isInputActive ? React__default.createElement("div", {
|
|
16548
|
-
className: styles$
|
|
16548
|
+
className: styles$J['custom-group-with-create-button-wrapper']
|
|
16549
16549
|
}, React__default.createElement(CreatableButton, {
|
|
16550
16550
|
creatableButton: creatableButton,
|
|
16551
16551
|
onClick: () => setActiveGroupLabel(groupLabel),
|
|
@@ -16557,8 +16557,8 @@ function CustomGroupWithCreate(props) {
|
|
|
16557
16557
|
onMenuInputFocus: onMenuInputFocus,
|
|
16558
16558
|
onSubmit: onCreateButton,
|
|
16559
16559
|
defaultValue: inputDefaultValue,
|
|
16560
|
-
wrapperClassName: styles$
|
|
16561
|
-
inputClassName: styles$
|
|
16560
|
+
wrapperClassName: styles$J['custom-group-with-create-input-wrapper'],
|
|
16561
|
+
inputClassName: styles$J['custom-group-with-create-text-field'],
|
|
16562
16562
|
testId: `select-create-option-input-${groupLabel}`
|
|
16563
16563
|
}));
|
|
16564
16564
|
}
|
|
@@ -16667,7 +16667,7 @@ const useSelectField = _ref => {
|
|
|
16667
16667
|
};
|
|
16668
16668
|
};
|
|
16669
16669
|
|
|
16670
|
-
var styles$
|
|
16670
|
+
var styles$I = {"select-field__suffix":"_vqC1M"};
|
|
16671
16671
|
|
|
16672
16672
|
/** Simple dropdown field where the user chooses one option from a predefined list. */
|
|
16673
16673
|
const SelectField = props => {
|
|
@@ -16677,7 +16677,7 @@ const SelectField = props => {
|
|
|
16677
16677
|
} = useSelectField(props);
|
|
16678
16678
|
//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
|
|
16679
16679
|
const suffixWithMargin = props.suffix ? React__default.createElement("div", {
|
|
16680
|
-
className: styles$
|
|
16680
|
+
className: styles$I['select-field__suffix']
|
|
16681
16681
|
}, props.suffix) : undefined;
|
|
16682
16682
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
16683
16683
|
prefix: props.prefix,
|
|
@@ -16722,9 +16722,9 @@ const ToolbarSelect = _ref => {
|
|
|
16722
16722
|
}, rest));
|
|
16723
16723
|
};
|
|
16724
16724
|
|
|
16725
|
-
var styles$
|
|
16725
|
+
var styles$H = {"date-filter":"_PyXfe","date-filter--wide":"_P6ttU"};
|
|
16726
16726
|
|
|
16727
|
-
var styles$
|
|
16727
|
+
var styles$G = {"date-filter-display":"_N37zE","date-filter-display--non-interactive":"_42Bvz","date-filter-display--wide":"_h8n2w","date-filter-display__display-icon":"_i08yV"};
|
|
16728
16728
|
|
|
16729
16729
|
const DATE_FILTER_MODE = {
|
|
16730
16730
|
DAY: 'day',
|
|
@@ -16778,8 +16778,8 @@ const DateFilterDisplay = forwardRef(({
|
|
|
16778
16778
|
onClick
|
|
16779
16779
|
}, ref) => {
|
|
16780
16780
|
return React__default.createElement("button", {
|
|
16781
|
-
className: classnames(styles$
|
|
16782
|
-
[styles$
|
|
16781
|
+
className: classnames(styles$G['date-filter-display'], {
|
|
16782
|
+
[styles$G['date-filter-display--wide']]: mode === DATE_FILTER_MODE.WEEK
|
|
16783
16783
|
}),
|
|
16784
16784
|
onClick: onClick,
|
|
16785
16785
|
tabIndex: mode === DATE_FILTER_MODE.MONTH ? -1 : undefined,
|
|
@@ -16788,7 +16788,7 @@ const DateFilterDisplay = forwardRef(({
|
|
|
16788
16788
|
space: 12,
|
|
16789
16789
|
alignItems: "center"
|
|
16790
16790
|
}, React__default.createElement("div", {
|
|
16791
|
-
className: classnames(styles$
|
|
16791
|
+
className: classnames(styles$G['date-filter-display__display-icon'])
|
|
16792
16792
|
}, React__default.createElement(IconCalendarAlt, {
|
|
16793
16793
|
size: "flexible",
|
|
16794
16794
|
color: "surface-on-color-subtle"
|
|
@@ -16799,7 +16799,7 @@ const DateFilterDisplay = forwardRef(({
|
|
|
16799
16799
|
})));
|
|
16800
16800
|
});
|
|
16801
16801
|
|
|
16802
|
-
var styles$
|
|
16802
|
+
var styles$F = {"date-stepper":"_9wFtw","date-stepper--backward":"_OrtcR","date-stepper--forward":"_oYoUt"};
|
|
16803
16803
|
|
|
16804
16804
|
const handleDateStepper = (date, mode, stepDirection, onChange) => {
|
|
16805
16805
|
const step = stepDirection === STEP_DIRECTION.FORWARD ? 1 : -1;
|
|
@@ -16828,9 +16828,9 @@ const DateFilterStepper = ({
|
|
|
16828
16828
|
date
|
|
16829
16829
|
}) => {
|
|
16830
16830
|
return React__default.createElement("button", {
|
|
16831
|
-
className: classnames(styles$
|
|
16832
|
-
[styles$
|
|
16833
|
-
[styles$
|
|
16831
|
+
className: classnames(styles$F['date-stepper'], {
|
|
16832
|
+
[styles$F['date-stepper--backward']]: stepDirection === STEP_DIRECTION.BACKWARD,
|
|
16833
|
+
[styles$F['date-stepper--forward']]: stepDirection === STEP_DIRECTION.FORWARD
|
|
16834
16834
|
}),
|
|
16835
16835
|
onClick: () => handleDateStepper(date, mode, stepDirection, onChange)
|
|
16836
16836
|
}, children);
|
|
@@ -16895,9 +16895,9 @@ const CalendarMonth = ({
|
|
|
16895
16895
|
}
|
|
16896
16896
|
const MONTHS = [...Array(12).keys()];
|
|
16897
16897
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
16898
|
-
className: styles$
|
|
16898
|
+
className: styles$1f['calendar']
|
|
16899
16899
|
}, React__default.createElement("div", {
|
|
16900
|
-
className: styles$
|
|
16900
|
+
className: styles$1f['calendar__overlay'],
|
|
16901
16901
|
ref: ref => setCalendarRef(ref),
|
|
16902
16902
|
style: _extends({}, calendarPosition, {
|
|
16903
16903
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -16978,8 +16978,8 @@ const DateFilter = ({
|
|
|
16978
16978
|
const onClickOutside = useCallback(() => setCalendarOpen(false), [setCalendarOpen]);
|
|
16979
16979
|
return React__default.createElement("div", {
|
|
16980
16980
|
"data-testid": testId,
|
|
16981
|
-
className: classnames(styles$
|
|
16982
|
-
[styles$
|
|
16981
|
+
className: classnames(styles$H['date-filter'], {
|
|
16982
|
+
[styles$H['date-filter--wide']]: _mode === DATE_FILTER_MODE.WEEK
|
|
16983
16983
|
})
|
|
16984
16984
|
}, React__default.createElement(Inline, {
|
|
16985
16985
|
space: 0
|
|
@@ -17023,7 +17023,7 @@ const DateFilter = ({
|
|
|
17023
17023
|
}));
|
|
17024
17024
|
};
|
|
17025
17025
|
|
|
17026
|
-
var styles$
|
|
17026
|
+
var styles$E = {"segmented-control":"_RezMY","segmented-control__button":"_lehFG","segmented-control__button--selected":"_Fr5kb"};
|
|
17027
17027
|
|
|
17028
17028
|
/**
|
|
17029
17029
|
* Segmented Control is typically used in a toolbar to switch between different views. It can have as many options as needed. It is controlled: keep the selected option in state and pass it back through `value`.
|
|
@@ -17038,21 +17038,21 @@ const SegmentedControl = ({
|
|
|
17038
17038
|
return option === value;
|
|
17039
17039
|
};
|
|
17040
17040
|
return React__default.createElement("div", {
|
|
17041
|
-
className: styles$
|
|
17041
|
+
className: styles$E['segmented-control'],
|
|
17042
17042
|
"data-testid": testId
|
|
17043
17043
|
}, options.map(option => React__default.createElement(React__default.Fragment, {
|
|
17044
17044
|
key: option
|
|
17045
17045
|
}, React__default.createElement("button", {
|
|
17046
17046
|
onClick: () => onChange(option),
|
|
17047
|
-
className: classnames(styles$
|
|
17048
|
-
[styles$
|
|
17047
|
+
className: classnames(styles$E['segmented-control__button'], {
|
|
17048
|
+
[styles$E['segmented-control__button--selected']]: isSelected(option)
|
|
17049
17049
|
})
|
|
17050
17050
|
}, option))));
|
|
17051
17051
|
};
|
|
17052
17052
|
|
|
17053
|
-
var styles$
|
|
17053
|
+
var styles$D = {"form--standard-size":"_8-Ykj"};
|
|
17054
17054
|
|
|
17055
|
-
var styles$
|
|
17055
|
+
var styles$C = {"form-section":"_3uYIj","form-section__title":"_2WdOf","form-section__subtitle":"_zybxx","form-section--no-margin":"_xT-U1"};
|
|
17056
17056
|
|
|
17057
17057
|
/**
|
|
17058
17058
|
* 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.
|
|
@@ -17068,13 +17068,13 @@ const FormSection = ({
|
|
|
17068
17068
|
const content = React__default.createElement(Stack, null, (title || subtitle) && React__default.createElement(Stack, {
|
|
17069
17069
|
space: 8
|
|
17070
17070
|
}, title && React__default.createElement("h2", {
|
|
17071
|
-
className: classnames(styles$
|
|
17071
|
+
className: classnames(styles$C['form-section__title'])
|
|
17072
17072
|
}, title), subtitle && React__default.createElement("h3", {
|
|
17073
|
-
className: classnames(styles$
|
|
17073
|
+
className: classnames(styles$C['form-section__subtitle'])
|
|
17074
17074
|
}, subtitle)), children);
|
|
17075
17075
|
return React__default.createElement("div", {
|
|
17076
|
-
className: classnames(styles$
|
|
17077
|
-
[styles$
|
|
17076
|
+
className: classnames(styles$C['form-section'], {
|
|
17077
|
+
[styles$C['form-section--no-margin']]: _noMargin || as === 'card'
|
|
17078
17078
|
}),
|
|
17079
17079
|
"data-testid": testId
|
|
17080
17080
|
}, as === 'card' ? React__default.createElement(Card, {
|
|
@@ -17094,7 +17094,7 @@ const updateButtonProps = (child, newProps) => {
|
|
|
17094
17094
|
}, newProps, child.props));
|
|
17095
17095
|
};
|
|
17096
17096
|
|
|
17097
|
-
var styles$
|
|
17097
|
+
var styles$B = {"form-footer":"_4ksfB"};
|
|
17098
17098
|
|
|
17099
17099
|
const FormFooterActions = ({
|
|
17100
17100
|
actions
|
|
@@ -17133,7 +17133,7 @@ const FormFooter = ({
|
|
|
17133
17133
|
});
|
|
17134
17134
|
const isInlineChildren = React__default.Children.count(children) === 1 && React__default.isValidElement(children) && children.type === Inline;
|
|
17135
17135
|
return React__default.createElement("div", {
|
|
17136
|
-
className: classnames(styles$
|
|
17136
|
+
className: classnames(styles$B['form-footer']),
|
|
17137
17137
|
"data-testid": testId
|
|
17138
17138
|
}, actions && React__default.createElement(FormFooterActions, {
|
|
17139
17139
|
actions: actions
|
|
@@ -17178,13 +17178,13 @@ const Form = ({
|
|
|
17178
17178
|
}, React__default.createElement("form", {
|
|
17179
17179
|
onSubmit: onSubmit || formik ? handleSubmit : undefined,
|
|
17180
17180
|
className: classnames({
|
|
17181
|
-
[styles$
|
|
17181
|
+
[styles$D['form--standard-size']]: !_wide
|
|
17182
17182
|
}),
|
|
17183
17183
|
"data-testid": testId
|
|
17184
17184
|
}, _stackContent ? React__default.createElement(Stack, null, formattedChildren) : formattedChildren));
|
|
17185
17185
|
};
|
|
17186
17186
|
|
|
17187
|
-
var styles$
|
|
17187
|
+
var styles$A = {"form-row":"_xX-RS"};
|
|
17188
17188
|
|
|
17189
17189
|
const SIZE_25_PERCENT = '25%';
|
|
17190
17190
|
const SIZE_33_PERCENT = '33.333%';
|
|
@@ -17211,14 +17211,14 @@ const FormRow = ({
|
|
|
17211
17211
|
space: _space,
|
|
17212
17212
|
testId: testId,
|
|
17213
17213
|
alignItems: "stretch",
|
|
17214
|
-
extraClass: styles$
|
|
17214
|
+
extraClass: styles$A['form-row']
|
|
17215
17215
|
}, children, additionalColumns.map((_, index) => React__default.createElement("span", {
|
|
17216
17216
|
key: index,
|
|
17217
17217
|
"data-testid": "empty-cell"
|
|
17218
17218
|
})));
|
|
17219
17219
|
};
|
|
17220
17220
|
|
|
17221
|
-
var styles$
|
|
17221
|
+
var styles$z = {"text-field":"_JaB08","text-field--focus":"_62RIR","text-field--disabled":"_CDt23","text-field--invalid":"_wf4XP","text-field__toolbar":"_7xVsj"};
|
|
17222
17222
|
|
|
17223
17223
|
const useGrowTextAreaRef = (minHeight, maxHeight, autoGrow, forwardedRef) => {
|
|
17224
17224
|
const textareaRef = useRef(null);
|
|
@@ -17290,10 +17290,10 @@ const TextAreaField = ({
|
|
|
17290
17290
|
return React__default.createElement(Field, _extends({}, fieldProps, {
|
|
17291
17291
|
characterCount: controllers.value !== undefined && maxLength ? maxLength - controllers.value.length : undefined
|
|
17292
17292
|
}), React__default.createElement("div", {
|
|
17293
|
-
className: classnames(styles$
|
|
17294
|
-
[styles$
|
|
17295
|
-
[styles$
|
|
17296
|
-
[styles$
|
|
17293
|
+
className: classnames(styles$z['text-field'], {
|
|
17294
|
+
[styles$z['text-field--invalid']]: hasError,
|
|
17295
|
+
[styles$z['text-field--disabled']]: disabled,
|
|
17296
|
+
[styles$z['text-field--focus']]: hasFocus
|
|
17297
17297
|
}),
|
|
17298
17298
|
ref: containerRef,
|
|
17299
17299
|
onClick: event => {
|
|
@@ -17325,7 +17325,7 @@ const TextAreaField = ({
|
|
|
17325
17325
|
ref: textAreaRef,
|
|
17326
17326
|
maxLength: maxLength
|
|
17327
17327
|
}), toolbar && React__default.createElement("div", {
|
|
17328
|
-
className: styles$
|
|
17328
|
+
className: styles$z['text-field__toolbar'],
|
|
17329
17329
|
id: `${controllers.id}-toolbar`,
|
|
17330
17330
|
ref: toolbarRef,
|
|
17331
17331
|
onClick: event => {
|
|
@@ -17362,7 +17362,7 @@ const TextFieldElement = (_ref, ref) => {
|
|
|
17362
17362
|
*/
|
|
17363
17363
|
const TextField = forwardRef(TextFieldElement);
|
|
17364
17364
|
|
|
17365
|
-
var styles$
|
|
17365
|
+
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"};
|
|
17366
17366
|
|
|
17367
17367
|
const useMultiSelectFieldControllers = ({
|
|
17368
17368
|
name,
|
|
@@ -17427,10 +17427,10 @@ const CreatableOption = ({
|
|
|
17427
17427
|
};
|
|
17428
17428
|
return React__default.createElement(React__default.Fragment, null, !isCreatingOption && React__default.createElement("div", {
|
|
17429
17429
|
key: 'pill-select-field-create-option',
|
|
17430
|
-
className: styles$
|
|
17430
|
+
className: styles$y['pill-select-field']
|
|
17431
17431
|
}, React__default.createElement("button", {
|
|
17432
17432
|
"data-testid": testId ? `${testId}-create-option` : undefined,
|
|
17433
|
-
className: styles$
|
|
17433
|
+
className: styles$y['pill-select-field__add-new-input'],
|
|
17434
17434
|
onClick: () => {
|
|
17435
17435
|
setIsCreatingOption(true);
|
|
17436
17436
|
setNewOptionLabel('');
|
|
@@ -17439,9 +17439,9 @@ const CreatableOption = ({
|
|
|
17439
17439
|
size: "small"
|
|
17440
17440
|
}), createOptionLabel)), isCreatingOption && React__default.createElement("div", {
|
|
17441
17441
|
key: 'pill-select-field-creating-option',
|
|
17442
|
-
className: styles$
|
|
17442
|
+
className: styles$y['pill-select-field']
|
|
17443
17443
|
}, React__default.createElement("input", {
|
|
17444
|
-
className: styles$
|
|
17444
|
+
className: styles$y['pill-select-field__creating-input'],
|
|
17445
17445
|
name: `${name}-pill-select-field-creating-option`,
|
|
17446
17446
|
id: 'pill-select-field-creating-option',
|
|
17447
17447
|
type: "text",
|
|
@@ -17462,7 +17462,7 @@ const CreatableOption = ({
|
|
|
17462
17462
|
}
|
|
17463
17463
|
}
|
|
17464
17464
|
}), React__default.createElement("span", {
|
|
17465
|
-
className: styles$
|
|
17465
|
+
className: styles$y['pill-select-field__creating-custom-input']
|
|
17466
17466
|
}, !newOptionLabel && React__default.createElement(Text, {
|
|
17467
17467
|
as: "body",
|
|
17468
17468
|
color: "surface-on-color-disabled"
|
|
@@ -17513,7 +17513,7 @@ const PillSelectField = ({
|
|
|
17513
17513
|
}
|
|
17514
17514
|
};
|
|
17515
17515
|
return React__default.createElement("button", {
|
|
17516
|
-
className: styles$
|
|
17516
|
+
className: styles$y['pill-select-field__removable-icon'],
|
|
17517
17517
|
onClick: handleClick,
|
|
17518
17518
|
disabled: disabled
|
|
17519
17519
|
}, React__default.createElement(IconTimes, {
|
|
@@ -17530,7 +17530,7 @@ const PillSelectField = ({
|
|
|
17530
17530
|
const itemId = `${controllers.id}-${itemIdentifier}`;
|
|
17531
17531
|
return React__default.createElement("div", {
|
|
17532
17532
|
key: itemIdentifier,
|
|
17533
|
-
className: styles$
|
|
17533
|
+
className: styles$y['pill-select-field']
|
|
17534
17534
|
}, React__default.createElement("input", {
|
|
17535
17535
|
name: `${name}-${itemIdentifier}`,
|
|
17536
17536
|
id: itemId,
|
|
@@ -17550,7 +17550,7 @@ const PillSelectField = ({
|
|
|
17550
17550
|
controllers.onChange(newValue);
|
|
17551
17551
|
}
|
|
17552
17552
|
}), React__default.createElement("span", {
|
|
17553
|
-
className: styles$
|
|
17553
|
+
className: styles$y['pill-select-field__custom-input']
|
|
17554
17554
|
}, option.label, option.isRemovable && React__default.createElement(RemoveButton, {
|
|
17555
17555
|
option: option
|
|
17556
17556
|
})));
|
|
@@ -17562,7 +17562,7 @@ const PillSelectField = ({
|
|
|
17562
17562
|
})));
|
|
17563
17563
|
};
|
|
17564
17564
|
|
|
17565
|
-
var styles$
|
|
17565
|
+
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"};
|
|
17566
17566
|
|
|
17567
17567
|
const toKey = d => `${d.getFullYear()}-${d.getMonth()}-${d.getDate()}`;
|
|
17568
17568
|
/**
|
|
@@ -17607,14 +17607,14 @@ const WeekSelectField = ({
|
|
|
17607
17607
|
caption: caption,
|
|
17608
17608
|
error: error
|
|
17609
17609
|
}, React__default.createElement("div", {
|
|
17610
|
-
className: styles$
|
|
17610
|
+
className: styles$x['week-select-field']
|
|
17611
17611
|
}, days.map((day, index) => {
|
|
17612
17612
|
const key = toKey(day);
|
|
17613
17613
|
const isChecked = selectedKeys.has(key);
|
|
17614
17614
|
const itemId = `${id}-${key}`;
|
|
17615
17615
|
return React__default.createElement("div", {
|
|
17616
17616
|
key: key,
|
|
17617
|
-
className: styles$
|
|
17617
|
+
className: styles$x['week-select-field__day']
|
|
17618
17618
|
}, React__default.createElement("input", {
|
|
17619
17619
|
type: "checkbox",
|
|
17620
17620
|
id: itemId,
|
|
@@ -17629,11 +17629,11 @@ const WeekSelectField = ({
|
|
|
17629
17629
|
handleChange(newValue);
|
|
17630
17630
|
}
|
|
17631
17631
|
}), React__default.createElement("span", {
|
|
17632
|
-
className: styles$
|
|
17632
|
+
className: styles$x['week-select-field__day-pill']
|
|
17633
17633
|
}, React__default.createElement("span", {
|
|
17634
|
-
className: styles$
|
|
17634
|
+
className: styles$x['week-select-field__day-abbr']
|
|
17635
17635
|
}, _displayFormat === 'month' ? monthAbbr[day.getMonth()] : dayAbbr[day.getDay()]), React__default.createElement("span", {
|
|
17636
|
-
className: styles$
|
|
17636
|
+
className: styles$x['week-select-field__day-num']
|
|
17637
17637
|
}, day.getDate())));
|
|
17638
17638
|
})));
|
|
17639
17639
|
};
|
|
@@ -17675,9 +17675,9 @@ const useRadioGroupFieldContext = () => {
|
|
|
17675
17675
|
return context;
|
|
17676
17676
|
};
|
|
17677
17677
|
|
|
17678
|
-
var styles$
|
|
17678
|
+
var styles$w = {"label":"_xzukU","label--truncate":"_iVWRB","caption":"_JNfQO","radio-group-field__label":"_2KvuU","radio-group-field__caption":"_ZeIOd"};
|
|
17679
17679
|
|
|
17680
|
-
var styles$
|
|
17680
|
+
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"};
|
|
17681
17681
|
|
|
17682
17682
|
/** A radio option shown as a selectable box, used as a child of `RadioGroupField`. Use it instead of `RadioGroupOption` when each option needs more room, such as an icon or illustration (`children`) above a `label` and `caption`. Its `value` is what the group reports in `onChange` when the option is selected. */
|
|
17683
17683
|
const RadioGroupBoxOption = ({
|
|
@@ -17695,7 +17695,7 @@ const RadioGroupBoxOption = ({
|
|
|
17695
17695
|
id: inputId
|
|
17696
17696
|
});
|
|
17697
17697
|
return React__default.createElement("label", {
|
|
17698
|
-
className: styles$
|
|
17698
|
+
className: styles$v['radio-group-box-option'],
|
|
17699
17699
|
"data-testid": testId
|
|
17700
17700
|
}, React__default.createElement("input", {
|
|
17701
17701
|
type: "radio",
|
|
@@ -17706,8 +17706,8 @@ const RadioGroupBoxOption = ({
|
|
|
17706
17706
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
17707
17707
|
disabled: radioGroupContext.disabled || disabled
|
|
17708
17708
|
}), React__default.createElement("div", {
|
|
17709
|
-
className: classnames(styles$
|
|
17710
|
-
[styles$
|
|
17709
|
+
className: classnames(styles$v['radio-group-box-option__box'], {
|
|
17710
|
+
[styles$v['radio-group-box-option__box--disabled']]: radioGroupContext.disabled || disabled
|
|
17711
17711
|
})
|
|
17712
17712
|
}, React__default.createElement(Stack, {
|
|
17713
17713
|
space: 16,
|
|
@@ -17717,17 +17717,17 @@ const RadioGroupBoxOption = ({
|
|
|
17717
17717
|
space: 8,
|
|
17718
17718
|
alignItems: "center"
|
|
17719
17719
|
}, label && React__default.createElement("div", {
|
|
17720
|
-
className: classnames(styles$
|
|
17721
|
-
[styles$
|
|
17720
|
+
className: classnames(styles$v['radio-group-box-option__label'], {
|
|
17721
|
+
[styles$v['radio-group-box-option__label--disabled']]: radioGroupContext.disabled || disabled
|
|
17722
17722
|
})
|
|
17723
17723
|
}, label), caption && React__default.createElement("div", {
|
|
17724
|
-
className: classnames(styles$
|
|
17725
|
-
[styles$
|
|
17724
|
+
className: classnames(styles$v['radio-group-box-option__caption'], {
|
|
17725
|
+
[styles$v['radio-group-box-option__caption--disabled']]: radioGroupContext.disabled || disabled
|
|
17726
17726
|
})
|
|
17727
17727
|
}, caption)))));
|
|
17728
17728
|
};
|
|
17729
17729
|
|
|
17730
|
-
var styles$
|
|
17730
|
+
var styles$u = {"radio-group-option":"_7fVpn","radio-group-option__caption":"_VD7SO","radio-group-option__custom-input":"_Yfxkl"};
|
|
17731
17731
|
|
|
17732
17732
|
/** A single radio button option, used as a child of `RadioGroupField`. Its `value` is what the group reports in `onChange` when the option is selected. */
|
|
17733
17733
|
const RadioGroupOption = ({
|
|
@@ -17749,7 +17749,7 @@ const RadioGroupOption = ({
|
|
|
17749
17749
|
space: 8,
|
|
17750
17750
|
alignItems: "center"
|
|
17751
17751
|
}, React__default.createElement("div", {
|
|
17752
|
-
className: styles$
|
|
17752
|
+
className: styles$u['radio-group-option']
|
|
17753
17753
|
}, React__default.createElement("input", {
|
|
17754
17754
|
type: "radio",
|
|
17755
17755
|
"data-testid": testId,
|
|
@@ -17760,11 +17760,11 @@ const RadioGroupOption = ({
|
|
|
17760
17760
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
17761
17761
|
disabled: radioGroupContext.disabled || disabled
|
|
17762
17762
|
}), React__default.createElement("span", {
|
|
17763
|
-
className: styles$
|
|
17763
|
+
className: styles$u['radio-group-option__custom-input']
|
|
17764
17764
|
})), label && React__default.createElement(Label, {
|
|
17765
17765
|
htmlFor: id
|
|
17766
17766
|
}, label)), caption && React__default.createElement("div", {
|
|
17767
|
-
className: styles$
|
|
17767
|
+
className: styles$u['radio-group-option__caption']
|
|
17768
17768
|
}, React__default.createElement(Caption, {
|
|
17769
17769
|
fieldId: id
|
|
17770
17770
|
}, caption)));
|
|
@@ -17901,7 +17901,7 @@ const RadioGroupField = ({
|
|
|
17901
17901
|
}, React__default.createElement(Stack, {
|
|
17902
17902
|
space: _space
|
|
17903
17903
|
}, label && React__default.createElement("div", {
|
|
17904
|
-
className: styles$
|
|
17904
|
+
className: styles$w['radio-group-field__label']
|
|
17905
17905
|
}, label), React__default.createElement(Stack, {
|
|
17906
17906
|
space: 8
|
|
17907
17907
|
}, optionsType === OPTION_TYPES.RADIO ? React__default.createElement(RadioOptions, {
|
|
@@ -17913,21 +17913,21 @@ const RadioGroupField = ({
|
|
|
17913
17913
|
testId: testId,
|
|
17914
17914
|
space: _space
|
|
17915
17915
|
}, children), caption && React__default.createElement("div", {
|
|
17916
|
-
className: styles$
|
|
17916
|
+
className: styles$w['radio-group-caption']
|
|
17917
17917
|
}, caption), controllers.error && React__default.createElement(ErrorMessage, null, controllers.error))));
|
|
17918
17918
|
};
|
|
17919
17919
|
|
|
17920
|
-
var styles$
|
|
17920
|
+
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"};
|
|
17921
17921
|
|
|
17922
|
-
var styles$
|
|
17922
|
+
var styles$s = {"password-criteria":"_1ruWK","password-criteria--invalid":"_xR7tb"};
|
|
17923
17923
|
|
|
17924
17924
|
const PasswordCriteria = ({
|
|
17925
17925
|
met,
|
|
17926
17926
|
children
|
|
17927
17927
|
}) => {
|
|
17928
17928
|
return React__default.createElement("span", {
|
|
17929
|
-
className: classnames(styles$
|
|
17930
|
-
[styles$
|
|
17929
|
+
className: classnames(styles$s['password-criteria'], {
|
|
17930
|
+
[styles$s['password-criteria--invalid']]: !met
|
|
17931
17931
|
})
|
|
17932
17932
|
}, React__default.createElement(Inline, {
|
|
17933
17933
|
space: met ? 4 : 8
|
|
@@ -18001,12 +18001,12 @@ const PasswordField = ({
|
|
|
18001
18001
|
error: controllers.error
|
|
18002
18002
|
};
|
|
18003
18003
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
18004
|
-
className: styles$
|
|
18004
|
+
className: styles$t['password-container']
|
|
18005
18005
|
}, React__default.createElement("input", {
|
|
18006
18006
|
name: name,
|
|
18007
18007
|
id: controllers.id,
|
|
18008
|
-
className: classnames(styles$
|
|
18009
|
-
[styles$
|
|
18008
|
+
className: classnames(styles$t['text-field'], {
|
|
18009
|
+
[styles$t['text-field--invalid']]: hasError
|
|
18010
18010
|
}),
|
|
18011
18011
|
type: type,
|
|
18012
18012
|
"data-testid": testId,
|
|
@@ -18020,8 +18020,8 @@ const PasswordField = ({
|
|
|
18020
18020
|
onChange: controllers.onChange,
|
|
18021
18021
|
onBlur: controllers.onBlur
|
|
18022
18022
|
}), React__default.createElement("div", {
|
|
18023
|
-
className: classnames(styles$
|
|
18024
|
-
[styles$
|
|
18023
|
+
className: classnames(styles$t['password-toggle'], {
|
|
18024
|
+
[styles$t['password-toggle--disabled']]: disabled
|
|
18025
18025
|
}),
|
|
18026
18026
|
onClick: toggleType,
|
|
18027
18027
|
onKeyPress: toggleType,
|
|
@@ -18123,7 +18123,7 @@ const MultiSelectField = ({
|
|
|
18123
18123
|
})));
|
|
18124
18124
|
};
|
|
18125
18125
|
|
|
18126
|
-
var styles$
|
|
18126
|
+
var styles$r = {"custom-list":"_cSkvD"};
|
|
18127
18127
|
|
|
18128
18128
|
const _excluded$b4 = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad", "isLoadingMore"];
|
|
18129
18129
|
const CustomList = _ref => {
|
|
@@ -18146,7 +18146,7 @@ const CustomList = _ref => {
|
|
|
18146
18146
|
})) : showFooter && props.options.length > 0 && React__default.createElement(Inline, {
|
|
18147
18147
|
justifyContent: "center"
|
|
18148
18148
|
}, React__default.createElement("div", {
|
|
18149
|
-
className: styles$
|
|
18149
|
+
className: styles$r['custom-list']
|
|
18150
18150
|
}, __('moreOptionsPlaceholder')))));
|
|
18151
18151
|
};
|
|
18152
18152
|
|
|
@@ -18505,7 +18505,7 @@ const getFormikError = error => {
|
|
|
18505
18505
|
return undefined;
|
|
18506
18506
|
};
|
|
18507
18507
|
|
|
18508
|
-
var styles$
|
|
18508
|
+
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"};
|
|
18509
18509
|
|
|
18510
18510
|
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"};
|
|
18511
18511
|
|
|
@@ -18571,9 +18571,9 @@ const DateRangeCalendar = ({
|
|
|
18571
18571
|
const MONTH_NAMES = getMonths(translate);
|
|
18572
18572
|
const highlight = buildHighlightDayPickerProps(highlightedDays);
|
|
18573
18573
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
18574
|
-
className: styles$
|
|
18574
|
+
className: styles$1f['calendar']
|
|
18575
18575
|
}, React__default.createElement("div", {
|
|
18576
|
-
className: styles$
|
|
18576
|
+
className: styles$1f['calendar__overlay'],
|
|
18577
18577
|
ref: ref => setCalendarRef(ref),
|
|
18578
18578
|
style: _extends({}, calendarPosition, {
|
|
18579
18579
|
zIndex: getZIndex('dropdown')
|
|
@@ -18773,9 +18773,9 @@ const DateRangeField = ({
|
|
|
18773
18773
|
end
|
|
18774
18774
|
} = controllers.value;
|
|
18775
18775
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
18776
|
-
className: classnames(styles$
|
|
18777
|
-
[styles$
|
|
18778
|
-
[styles$
|
|
18776
|
+
className: classnames(styles$q['date-range-field'], {
|
|
18777
|
+
[styles$q['date-range-field--invalid']]: hasError,
|
|
18778
|
+
[styles$q['date-range-field--disabled']]: disabled
|
|
18779
18779
|
}),
|
|
18780
18780
|
"data-testid": testId
|
|
18781
18781
|
}, React__default.createElement(IconCalendarAlt, {
|
|
@@ -19103,7 +19103,7 @@ const TimeRangeSelector = forwardRef(TimeFieldElement);
|
|
|
19103
19103
|
*/
|
|
19104
19104
|
const TimeField = forwardRef(TimeFieldElement);
|
|
19105
19105
|
|
|
19106
|
-
var styles$
|
|
19106
|
+
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"};
|
|
19107
19107
|
|
|
19108
19108
|
const TimeRangeEnd = ({
|
|
19109
19109
|
startTime,
|
|
@@ -19225,9 +19225,9 @@ const TimeRangeField = ({
|
|
|
19225
19225
|
end
|
|
19226
19226
|
}) : getDuration(end, start, subtractDuration);
|
|
19227
19227
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
19228
|
-
className: classnames(styles$
|
|
19229
|
-
[styles$
|
|
19230
|
-
[styles$
|
|
19228
|
+
className: classnames(styles$p['time-range-field'], {
|
|
19229
|
+
[styles$p['time-range-field--invalid']]: hasError,
|
|
19230
|
+
[styles$p['time-range-field--disabled']]: disabled
|
|
19231
19231
|
}),
|
|
19232
19232
|
"data-testid": testId
|
|
19233
19233
|
}, React__default.createElement(TimeRangeStart, {
|
|
@@ -19255,7 +19255,7 @@ const TimeRangeField = ({
|
|
|
19255
19255
|
})));
|
|
19256
19256
|
};
|
|
19257
19257
|
|
|
19258
|
-
var styles$
|
|
19258
|
+
var styles$o = {"currency-field":"_GyYnE","currency-field--with-mask":"_NfdKk","currency-field__mask-display":"_ddacu","currency-field__mask-display--disabled":"_o1-zA"};
|
|
19259
19259
|
|
|
19260
19260
|
const CURRENCY_DISPLAY_DEFAULT_MARGIN = 8;
|
|
19261
19261
|
const CURRENCY_DISPLAY_MARGIN_BUFFER = 1;
|
|
@@ -19321,12 +19321,12 @@ const CurrencyFieldElement = (_ref, forwardedRef) => {
|
|
|
19321
19321
|
setShowMask(false);
|
|
19322
19322
|
inputProps.onFocus(e);
|
|
19323
19323
|
},
|
|
19324
|
-
className: classnames(inputProps.className, styles$
|
|
19325
|
-
[styles$
|
|
19324
|
+
className: classnames(inputProps.className, styles$o['currency-field'], {
|
|
19325
|
+
[styles$o['currency-field--with-mask']]: showMask && !!inputProps.value
|
|
19326
19326
|
})
|
|
19327
19327
|
}))), showMask && !!inputProps.value && React__default.createElement("div", {
|
|
19328
|
-
className: classnames(styles$
|
|
19329
|
-
[styles$
|
|
19328
|
+
className: classnames(styles$o['currency-field__mask-display'], {
|
|
19329
|
+
[styles$o['currency-field__mask-display--disabled']]: inputProps.disabled
|
|
19330
19330
|
}),
|
|
19331
19331
|
style: {
|
|
19332
19332
|
marginLeft: displayPadding
|
|
@@ -19455,7 +19455,7 @@ const FormFeedback = ({
|
|
|
19455
19455
|
}, children);
|
|
19456
19456
|
};
|
|
19457
19457
|
|
|
19458
|
-
var styles$
|
|
19458
|
+
var styles$n = {"phone-field":"_Q0GfJ","phone-field__flag":"_-uOqW","phone-field__input":"_Hes9b","phone-field__input--with-square-borders":"_TEU6N"};
|
|
19459
19459
|
|
|
19460
19460
|
const usePhoneFieldControllers = ({
|
|
19461
19461
|
name,
|
|
@@ -19598,8 +19598,8 @@ const usePhoneField = ({
|
|
|
19598
19598
|
'aria-describedby': hasError ? `${controllers.id}-error-message` : `${controllers.id}-describer`,
|
|
19599
19599
|
'aria-invalid': hasError,
|
|
19600
19600
|
autoFocus,
|
|
19601
|
-
className: classnames(styles$
|
|
19602
|
-
[styles$
|
|
19601
|
+
className: classnames(styles$1z['text-field'], {
|
|
19602
|
+
[styles$1z['text-field--invalid']]: hasError
|
|
19603
19603
|
}),
|
|
19604
19604
|
'data-testid': testId,
|
|
19605
19605
|
disabled,
|
|
@@ -20369,7 +20369,7 @@ const COUNTRIES = {
|
|
|
20369
20369
|
};
|
|
20370
20370
|
const COUNTRY_CODES = Object.keys(COUNTRIES);
|
|
20371
20371
|
|
|
20372
|
-
var styles$
|
|
20372
|
+
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"};
|
|
20373
20373
|
|
|
20374
20374
|
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"};
|
|
20375
20375
|
|
|
@@ -20383,21 +20383,21 @@ const CountrySelector = ({
|
|
|
20383
20383
|
}) => {
|
|
20384
20384
|
const resolvedPriorityCountries = [country, ..._priorityCountries].filter((code, index, arr) => arr.indexOf(code) === index && code in COUNTRIES);
|
|
20385
20385
|
return React__default.createElement("div", {
|
|
20386
|
-
className: classnames(styles$
|
|
20387
|
-
[styles$
|
|
20388
|
-
[styles$
|
|
20386
|
+
className: classnames(styles$m['country-selector'], {
|
|
20387
|
+
[styles$m['country-selector--with-error']]: hasError,
|
|
20388
|
+
[styles$m['country-selector--disabled']]: disabled
|
|
20389
20389
|
})
|
|
20390
20390
|
}, React__default.createElement(Dropdown, {
|
|
20391
20391
|
trigger: React__default.createElement("div", {
|
|
20392
|
-
className: classnames(styles$
|
|
20393
|
-
[styles$
|
|
20394
|
-
[styles$
|
|
20392
|
+
className: classnames(styles$m['country-selector__trigger'], {
|
|
20393
|
+
[styles$m['country-selector__trigger--with-error']]: hasError,
|
|
20394
|
+
[styles$m['country-selector__trigger--disabled']]: disabled
|
|
20395
20395
|
})
|
|
20396
20396
|
}, React__default.createElement(Inline, {
|
|
20397
20397
|
space: 8,
|
|
20398
20398
|
alignItems: "center"
|
|
20399
20399
|
}, React__default.createElement("span", {
|
|
20400
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLowerCase()}`], styles$
|
|
20400
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLowerCase()}`], styles$m['country-selector__trigger-flag'])
|
|
20401
20401
|
}), React__default.createElement(IconChevronDown, {
|
|
20402
20402
|
color: "currentColor",
|
|
20403
20403
|
size: "medium"
|
|
@@ -20411,7 +20411,7 @@ const CountrySelector = ({
|
|
|
20411
20411
|
alignItems: "center",
|
|
20412
20412
|
space: 12
|
|
20413
20413
|
}, React__default.createElement("span", {
|
|
20414
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$
|
|
20414
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$m['country-selector__flag'])
|
|
20415
20415
|
}), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)))), React__default.createElement(DropdownListDivider, null), COUNTRY_CODES.map(countryCode => React__default.createElement(DropdownListItem, {
|
|
20416
20416
|
onClick: () => onChange(countryCode),
|
|
20417
20417
|
key: countryCode
|
|
@@ -20419,7 +20419,7 @@ const CountrySelector = ({
|
|
|
20419
20419
|
alignItems: "center",
|
|
20420
20420
|
space: 12
|
|
20421
20421
|
}, React__default.createElement("span", {
|
|
20422
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$
|
|
20422
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$m['country-selector__flag'])
|
|
20423
20423
|
}), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)))))));
|
|
20424
20424
|
};
|
|
20425
20425
|
|
|
@@ -20496,7 +20496,7 @@ const PhoneField = _ref => {
|
|
|
20496
20496
|
}
|
|
20497
20497
|
};
|
|
20498
20498
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
20499
|
-
className: styles$
|
|
20499
|
+
className: styles$n['phone-field']
|
|
20500
20500
|
}, !disabledCountry && React__default.createElement(CountrySelector, {
|
|
20501
20501
|
country: selectedCountry,
|
|
20502
20502
|
onChange: handleCountryChange,
|
|
@@ -20508,19 +20508,19 @@ const PhoneField = _ref => {
|
|
|
20508
20508
|
space: 4,
|
|
20509
20509
|
alignItems: "center"
|
|
20510
20510
|
}, React__default.createElement("span", {
|
|
20511
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$
|
|
20511
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$n['country-selector__flag'])
|
|
20512
20512
|
}), React__default.createElement("span", null, "+", getCountryCallingCode(selectedCountry))) : `+${getCountryCallingCode(selectedCountry)}`
|
|
20513
20513
|
}, React__default.createElement("input", _extends({}, inputProps, {
|
|
20514
20514
|
type: "tel",
|
|
20515
|
-
className: classnames(inputProps.className, styles$
|
|
20516
|
-
[styles$
|
|
20515
|
+
className: classnames(inputProps.className, styles$n['phone-field__input'], {
|
|
20516
|
+
[styles$n['phone-field__input--with-square-borders']]: !disabledCountry
|
|
20517
20517
|
}),
|
|
20518
20518
|
onChange: handlePhoneChange,
|
|
20519
20519
|
onBlur: handlePhoneBlur
|
|
20520
20520
|
})))));
|
|
20521
20521
|
};
|
|
20522
20522
|
|
|
20523
|
-
var styles$
|
|
20523
|
+
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"};
|
|
20524
20524
|
|
|
20525
20525
|
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'];
|
|
20526
20526
|
|
|
@@ -20734,7 +20734,7 @@ const OverlayContent = ({
|
|
|
20734
20734
|
return React__default.createElement("div", {
|
|
20735
20735
|
style: overlayStyle,
|
|
20736
20736
|
ref: overlayRef,
|
|
20737
|
-
className: styles$
|
|
20737
|
+
className: styles$l['color-overlay'],
|
|
20738
20738
|
role: "dialog"
|
|
20739
20739
|
}, SEQUENTIAL_COLORS.map((color, index) => React__default.createElement(ColorDisplay, {
|
|
20740
20740
|
key: color,
|
|
@@ -20744,7 +20744,7 @@ const OverlayContent = ({
|
|
|
20744
20744
|
onClick: () => onSelect(color),
|
|
20745
20745
|
onHover: () => setSelectedColorIndex(null)
|
|
20746
20746
|
})), allowCustomColor && React__default.createElement("div", {
|
|
20747
|
-
className: styles$
|
|
20747
|
+
className: styles$l['color-overlay__custom-color']
|
|
20748
20748
|
}, React__default.createElement(Button, {
|
|
20749
20749
|
ref: customButtonRef,
|
|
20750
20750
|
size: "full-width",
|
|
@@ -20758,12 +20758,12 @@ const ColorDisplay = ({
|
|
|
20758
20758
|
onClick,
|
|
20759
20759
|
onHover
|
|
20760
20760
|
}) => React__default.createElement("button", {
|
|
20761
|
-
className: styles$
|
|
20761
|
+
className: styles$l['color-overlay__color-display-container'],
|
|
20762
20762
|
onClick: () => onClick(color)
|
|
20763
20763
|
}, React__default.createElement("div", {
|
|
20764
|
-
className: classnames(styles$
|
|
20765
|
-
[styles$
|
|
20766
|
-
[styles$
|
|
20764
|
+
className: classnames(styles$l['color-overlay__color-display-circle'], {
|
|
20765
|
+
[styles$l['color-overlay__color-display-circle--selected']]: isSelected,
|
|
20766
|
+
[styles$l['color-overlay__color-display-circle--focused']]: isFocused
|
|
20767
20767
|
}),
|
|
20768
20768
|
onMouseEnter: onHover,
|
|
20769
20769
|
style: {
|
|
@@ -20771,13 +20771,13 @@ const ColorDisplay = ({
|
|
|
20771
20771
|
}
|
|
20772
20772
|
}));
|
|
20773
20773
|
|
|
20774
|
-
var styles$
|
|
20774
|
+
var styles$k = {"color-swatch":"_UUuiJ"};
|
|
20775
20775
|
|
|
20776
20776
|
const ColorSwatch = ({
|
|
20777
20777
|
color
|
|
20778
20778
|
}) => {
|
|
20779
20779
|
return React__default.createElement("div", {
|
|
20780
|
-
className: styles$
|
|
20780
|
+
className: styles$k['color-swatch'],
|
|
20781
20781
|
style: {
|
|
20782
20782
|
backgroundColor: color
|
|
20783
20783
|
}
|
|
@@ -20857,7 +20857,7 @@ const findSeqTokenByHex = value => {
|
|
|
20857
20857
|
return SEQUENTIAL_COLORS.find(token => normalizeHex(SEQUENTIAL_COLOR_CODES.light[token]) === target || normalizeHex(SEQUENTIAL_COLOR_CODES.dark[token]) === target);
|
|
20858
20858
|
};
|
|
20859
20859
|
|
|
20860
|
-
var styles$
|
|
20860
|
+
var styles$j = {"custom-color-picker":"_OHgPk"};
|
|
20861
20861
|
|
|
20862
20862
|
/**
|
|
20863
20863
|
* A visually hidden native color input. It is kept mounted on the field (not
|
|
@@ -20908,12 +20908,12 @@ const CustomColorPicker = forwardRef(({
|
|
|
20908
20908
|
type: "color",
|
|
20909
20909
|
"aria-hidden": "true",
|
|
20910
20910
|
tabIndex: -1,
|
|
20911
|
-
className: styles$
|
|
20911
|
+
className: styles$j['custom-color-picker'],
|
|
20912
20912
|
defaultValue: safeColor
|
|
20913
20913
|
});
|
|
20914
20914
|
});
|
|
20915
20915
|
|
|
20916
|
-
var styles$
|
|
20916
|
+
var styles$i = {"color-field":"_KJawn"};
|
|
20917
20917
|
|
|
20918
20918
|
const ColorFieldElement = (props, ref) => {
|
|
20919
20919
|
const {
|
|
@@ -20951,7 +20951,7 @@ const ColorFieldElement = (props, ref) => {
|
|
|
20951
20951
|
(_customPickerRef$curr = customPickerRef.current) == null || _customPickerRef$curr.open();
|
|
20952
20952
|
};
|
|
20953
20953
|
return React__default.createElement(Fragment, null, React__default.createElement("div", {
|
|
20954
|
-
className: styles$
|
|
20954
|
+
className: styles$i['color-field']
|
|
20955
20955
|
}, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
20956
20956
|
prefix: React__default.createElement(ColorSwatch, {
|
|
20957
20957
|
color: getCurrentColor()
|
|
@@ -21050,73 +21050,70 @@ const lastOfMonth = () => {
|
|
|
21050
21050
|
|
|
21051
21051
|
const isValidPhoneNumber = value => !value || isValidPhoneNumber$1(value);
|
|
21052
21052
|
|
|
21053
|
-
var styles$
|
|
21053
|
+
var styles$h = {"avatar":"_V1U8v","avatar__shape":"_kXZcd","avatar__image":"_yVrzx","avatar__silhouette":"_qxYaK","avatar__initial":"_dGbVJ","avatar__badge":"_uViot","avatar--user":"_p32jZ","avatar--role":"_QeFvY","avatar--department":"_JNU79","avatar--location":"_h9Wpo","avatar--company":"_d2rED","avatar--enterprise":"_Ny5zo","avatar__shape--loading-image":"_Cxuzf","avatar--small":"_9g-tn","avatar--medium":"_vNXJW","avatar--large":"_9ZKAB","avatar--extra-large":"_uv14Y"};
|
|
21054
21054
|
|
|
21055
|
-
|
|
21056
|
-
|
|
21057
|
-
|
|
21058
|
-
|
|
21059
|
-
|
|
21060
|
-
|
|
21061
|
-
|
|
21062
|
-
|
|
21063
|
-
|
|
21064
|
-
|
|
21065
|
-
|
|
21066
|
-
|
|
21067
|
-
|
|
21068
|
-
|
|
21069
|
-
|
|
21070
|
-
|
|
21071
|
-
|
|
21072
|
-
|
|
21055
|
+
/**
|
|
21056
|
+
* User placeholder colours: a background and a silhouette colour per pair.
|
|
21057
|
+
*
|
|
21058
|
+
* These are intentionally hardcoded hex values, not design tokens. They pre-date
|
|
21059
|
+
* the Sous Chef design system and are kept unchanged on purpose, so a user's
|
|
21060
|
+
* placeholder looks the same as it always has. Don't map them to tokens.
|
|
21061
|
+
*/
|
|
21062
|
+
const USER_PLACEHOLDER_COLORS = {
|
|
21063
|
+
'basil-dark': {
|
|
21064
|
+
background: '#8dc3b9',
|
|
21065
|
+
silhouette: '#e1f3ef'
|
|
21066
|
+
},
|
|
21067
|
+
'basil-light': {
|
|
21068
|
+
background: '#e1f3ef',
|
|
21069
|
+
silhouette: '#8dc3b9'
|
|
21070
|
+
},
|
|
21071
|
+
'plum-dark': {
|
|
21072
|
+
background: '#aa6589',
|
|
21073
|
+
silhouette: '#ead3e3'
|
|
21074
|
+
},
|
|
21075
|
+
'plum-light': {
|
|
21076
|
+
background: '#ead3e3',
|
|
21077
|
+
silhouette: '#aa6589'
|
|
21078
|
+
},
|
|
21079
|
+
'strawberry-dark': {
|
|
21080
|
+
background: '#f3a097',
|
|
21081
|
+
silhouette: '#fbebe6'
|
|
21082
|
+
},
|
|
21083
|
+
'strawberry-light': {
|
|
21084
|
+
background: '#fbebe6',
|
|
21085
|
+
silhouette: '#f3a097'
|
|
21086
|
+
},
|
|
21087
|
+
'blackberry-dark': {
|
|
21088
|
+
background: '#9ea9d3',
|
|
21089
|
+
silhouette: '#f4f6fc'
|
|
21090
|
+
},
|
|
21091
|
+
'blackberry-light': {
|
|
21092
|
+
background: '#f4f6fc',
|
|
21093
|
+
silhouette: '#9ea9d3'
|
|
21094
|
+
},
|
|
21095
|
+
'oregano-dark': {
|
|
21096
|
+
background: '#bbca94',
|
|
21097
|
+
silhouette: '#f7faf2'
|
|
21098
|
+
},
|
|
21099
|
+
'oregano-light': {
|
|
21100
|
+
background: '#f7faf2',
|
|
21101
|
+
silhouette: '#bbca94'
|
|
21102
|
+
},
|
|
21103
|
+
'mustard-dark': {
|
|
21104
|
+
background: '#a98146',
|
|
21105
|
+
silhouette: '#f2dcbd'
|
|
21106
|
+
},
|
|
21107
|
+
'mustard-light': {
|
|
21108
|
+
background: '#f2dcbd',
|
|
21109
|
+
silhouette: '#a98146'
|
|
21073
21110
|
}
|
|
21074
|
-
return React__default.createElement("div", {
|
|
21075
|
-
className: styles$h['avatar-image']
|
|
21076
|
-
}, React__default.createElement(IconUser, {
|
|
21077
|
-
size: "flexible",
|
|
21078
|
-
color: color,
|
|
21079
|
-
variant: "solid"
|
|
21080
|
-
}));
|
|
21081
21111
|
};
|
|
21082
|
-
|
|
21083
|
-
|
|
21084
|
-
|
|
21085
|
-
|
|
21086
|
-
|
|
21087
|
-
backgroundColor: '#F4F6FC',
|
|
21088
|
-
avatarColor: '#9EA9D3'
|
|
21089
|
-
}, {
|
|
21090
|
-
backgroundColor: '#FBEBE6',
|
|
21091
|
-
avatarColor: '#F3A097'
|
|
21092
|
-
}, {
|
|
21093
|
-
backgroundColor: '#F7FAF2',
|
|
21094
|
-
avatarColor: '#BBCA94'
|
|
21095
|
-
}, {
|
|
21096
|
-
backgroundColor: '#E1F3EF',
|
|
21097
|
-
avatarColor: '#8DC3B9'
|
|
21098
|
-
}, {
|
|
21099
|
-
backgroundColor: '#F2DCBD',
|
|
21100
|
-
avatarColor: '#A98146'
|
|
21101
|
-
}, {
|
|
21102
|
-
backgroundColor: '#AA6589',
|
|
21103
|
-
avatarColor: '#EAD3E3'
|
|
21104
|
-
}, {
|
|
21105
|
-
backgroundColor: '#9EA9D3',
|
|
21106
|
-
avatarColor: '#F4F6FC'
|
|
21107
|
-
}, {
|
|
21108
|
-
backgroundColor: '#F3A097',
|
|
21109
|
-
avatarColor: '#FBEBE6'
|
|
21110
|
-
}, {
|
|
21111
|
-
backgroundColor: '#BBCA94',
|
|
21112
|
-
avatarColor: '#F7FAF2'
|
|
21113
|
-
}, {
|
|
21114
|
-
backgroundColor: '#8DC3B9',
|
|
21115
|
-
avatarColor: '#E1F3EF'
|
|
21116
|
-
}, {
|
|
21117
|
-
backgroundColor: '#A98146',
|
|
21118
|
-
avatarColor: '#F2DCBD'
|
|
21119
|
-
}];
|
|
21112
|
+
const USER_PLACEHOLDER_COLOR_NAMES = Object.keys(USER_PLACEHOLDER_COLORS);
|
|
21113
|
+
/** Types that can show an image. For every other type `url` is ignored. */
|
|
21114
|
+
const IMAGE_AVATAR_TYPES = ['user', 'company', 'enterprise'];
|
|
21115
|
+
/** Sizes that always render the badge as a dot, whatever was passed. */
|
|
21116
|
+
const DOT_BADGE_SIZES = ['small', 'medium'];
|
|
21120
21117
|
|
|
21121
21118
|
let elementCallbackMap = null;
|
|
21122
21119
|
function getElementCallbackMap() {
|
|
@@ -21197,16 +21194,32 @@ function useIsVisibleInViewPort() {
|
|
|
21197
21194
|
};
|
|
21198
21195
|
}
|
|
21199
21196
|
|
|
21197
|
+
const ENTITY_ICONS = {
|
|
21198
|
+
department: IconSitemap,
|
|
21199
|
+
location: IconMapMarker,
|
|
21200
|
+
company: IconKnifeFork,
|
|
21201
|
+
enterprise: IconBarsV
|
|
21202
|
+
};
|
|
21203
|
+
const ENTITY_ICON_SIZES = {
|
|
21204
|
+
small: 'small',
|
|
21205
|
+
medium: 'medium',
|
|
21206
|
+
large: 'default',
|
|
21207
|
+
'extra-large': 'extra-large'
|
|
21208
|
+
};
|
|
21209
|
+
const getRoleInitial = name => {
|
|
21210
|
+
var _name$trim$charAt$toU;
|
|
21211
|
+
return (_name$trim$charAt$toU = name == null ? void 0 : name.trim().charAt(0).toUpperCase()) != null ? _name$trim$charAt$toU : '';
|
|
21212
|
+
};
|
|
21200
21213
|
/**
|
|
21201
|
-
* Avatar
|
|
21214
|
+
* Avatar shows a photo, initials or an icon for a person or entity, such as a company, location, department or role.
|
|
21202
21215
|
*/
|
|
21203
21216
|
const Avatar = ({
|
|
21204
|
-
|
|
21205
|
-
color: _color = COLORS['surface-on-color-subtle'],
|
|
21217
|
+
type,
|
|
21206
21218
|
size: _size = 'medium',
|
|
21207
|
-
|
|
21219
|
+
name,
|
|
21220
|
+
url,
|
|
21221
|
+
color: _color = COLORS['surface-on-color-subtle'],
|
|
21208
21222
|
badge,
|
|
21209
|
-
alt,
|
|
21210
21223
|
testId
|
|
21211
21224
|
}) => {
|
|
21212
21225
|
const {
|
|
@@ -21214,41 +21227,95 @@ const Avatar = ({
|
|
|
21214
21227
|
elementRef
|
|
21215
21228
|
} = useIsVisibleInViewPort();
|
|
21216
21229
|
// Latch visibility: unloading the image when the avatar leaves the
|
|
21217
|
-
// viewport makes it flash the fallback
|
|
21218
|
-
//
|
|
21230
|
+
// viewport makes it flash the fallback when it re-enters (e.g. inside a
|
|
21231
|
+
// scroll-away nav bar).
|
|
21219
21232
|
const [hasBeenVisible, setHasBeenVisible] = useState(false);
|
|
21220
21233
|
useEffect(() => {
|
|
21221
21234
|
if (isVisible && !hasBeenVisible) {
|
|
21222
21235
|
setHasBeenVisible(true);
|
|
21223
21236
|
}
|
|
21224
21237
|
}, [isVisible, hasBeenVisible]);
|
|
21225
|
-
const
|
|
21226
|
-
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21238
|
+
const [hasImageError, setHasImageError] = useState(false);
|
|
21239
|
+
useEffect(() => {
|
|
21240
|
+
setHasImageError(false);
|
|
21241
|
+
}, [url]);
|
|
21242
|
+
// A user without an image gets one of the 12 placeholder colours, picked
|
|
21243
|
+
// once per mount
|
|
21244
|
+
const [placeholderColor] = useState(() => USER_PLACEHOLDER_COLOR_NAMES[Math.floor(Math.random() * USER_PLACEHOLDER_COLOR_NAMES.length)]);
|
|
21245
|
+
const showsImage = IMAGE_AVATAR_TYPES.includes(type) && !!url && !hasImageError;
|
|
21246
|
+
const renderContent = () => {
|
|
21247
|
+
if (showsImage) {
|
|
21248
|
+
return hasBeenVisible ? React__default.createElement("img", {
|
|
21249
|
+
className: styles$h['avatar__image'],
|
|
21250
|
+
src: url,
|
|
21251
|
+
alt: "",
|
|
21252
|
+
onError: () => setHasImageError(true)
|
|
21253
|
+
}) : null;
|
|
21254
|
+
}
|
|
21255
|
+
if (type === 'user') {
|
|
21256
|
+
const {
|
|
21257
|
+
silhouette
|
|
21258
|
+
} = USER_PLACEHOLDER_COLORS[placeholderColor];
|
|
21259
|
+
return React__default.createElement(IconUser, {
|
|
21260
|
+
className: styles$h['avatar__silhouette'],
|
|
21261
|
+
size: "flexible",
|
|
21262
|
+
color: silhouette,
|
|
21263
|
+
variant: "solid",
|
|
21264
|
+
"aria-hidden": "true"
|
|
21265
|
+
});
|
|
21266
|
+
}
|
|
21267
|
+
if (type === 'role') {
|
|
21268
|
+
return React__default.createElement("span", {
|
|
21269
|
+
className: styles$h['avatar__initial'],
|
|
21270
|
+
"aria-hidden": "true"
|
|
21271
|
+
}, getRoleInitial(name));
|
|
21272
|
+
}
|
|
21273
|
+
const Icon = ENTITY_ICONS[type];
|
|
21274
|
+
return React__default.createElement(Icon, {
|
|
21275
|
+
size: ENTITY_ICON_SIZES[_size],
|
|
21276
|
+
variant: "solid",
|
|
21277
|
+
"aria-hidden": "true"
|
|
21278
|
+
});
|
|
21279
|
+
};
|
|
21280
|
+
const getShapeBackground = () => {
|
|
21281
|
+
if (showsImage) {
|
|
21282
|
+
return undefined;
|
|
21283
|
+
}
|
|
21284
|
+
if (type === 'user') {
|
|
21285
|
+
return USER_PLACEHOLDER_COLORS[placeholderColor].background;
|
|
21286
|
+
}
|
|
21287
|
+
if (type === 'role') {
|
|
21288
|
+
return getColor(_color);
|
|
21289
|
+
}
|
|
21290
|
+
return undefined;
|
|
21291
|
+
};
|
|
21292
|
+
const renderBadge = () => {
|
|
21293
|
+
if (!badge) {
|
|
21294
|
+
return null;
|
|
21295
|
+
}
|
|
21296
|
+
const isDot = DOT_BADGE_SIZES.includes(_size);
|
|
21297
|
+
return React__default.createElement("div", {
|
|
21298
|
+
className: styles$h['avatar__badge']
|
|
21299
|
+
}, React__default.isValidElement(badge) ? React__default.cloneElement(badge, _extends({
|
|
21300
|
+
hasBorder: true
|
|
21301
|
+
}, isDot ? {
|
|
21302
|
+
size: 'small'
|
|
21303
|
+
} : {})) : badge);
|
|
21304
|
+
};
|
|
21230
21305
|
return React__default.createElement("div", {
|
|
21231
|
-
className: classnames(styles$
|
|
21232
|
-
ref: elementRef
|
|
21306
|
+
className: classnames(styles$h['avatar'], styles$h[`avatar--${type}`], styles$h[`avatar--${_size}`]),
|
|
21307
|
+
ref: elementRef,
|
|
21308
|
+
"data-testid": testId
|
|
21233
21309
|
}, React__default.createElement("div", {
|
|
21234
|
-
className: classnames(styles$
|
|
21235
|
-
[styles$
|
|
21236
|
-
[styles$i['avatar--medium']]: _size === 'medium',
|
|
21237
|
-
[styles$i['avatar--large']]: _size === 'large',
|
|
21238
|
-
[styles$i['avatar--extra-large']]: _size === 'extra-large'
|
|
21310
|
+
className: classnames(styles$h['avatar__shape'], {
|
|
21311
|
+
[styles$h['avatar__shape--loading-image']]: showsImage
|
|
21239
21312
|
}),
|
|
21240
21313
|
style: {
|
|
21241
|
-
backgroundColor:
|
|
21314
|
+
backgroundColor: getShapeBackground()
|
|
21242
21315
|
},
|
|
21243
|
-
|
|
21244
|
-
|
|
21245
|
-
|
|
21246
|
-
color: defaultProfilePictureColors.avatarColor,
|
|
21247
|
-
alt: alt,
|
|
21248
|
-
onImageFallbackError: () => setShowIconInsteadOfImage(true)
|
|
21249
|
-
}), badge && _size !== 'small' && React__default.createElement("div", {
|
|
21250
|
-
className: styles$i['avatar__badge']
|
|
21251
|
-
}, badge)));
|
|
21316
|
+
role: name ? 'img' : undefined,
|
|
21317
|
+
"aria-label": name || undefined
|
|
21318
|
+
}, renderContent()), renderBadge());
|
|
21252
21319
|
};
|
|
21253
21320
|
|
|
21254
21321
|
var styles$g = {"bullet":"_7IGsx","bullet--default-bold":"_9KuIo","bullet--default-subtle":"_WLbgK","bullet--primary-bold":"_ajkV5","bullet--primary-subtle":"_nejbT","bullet--secondary-bold":"_2ltav","bullet--secondary-subtle":"_oKMhs","bullet--neutral-bold":"_ICojd","bullet--neutral-subtle":"_oX8mX","bullet--success-bold":"_KVVyt","bullet--success-subtle":"_1styt","bullet--info-bold":"_EuRzL","bullet--info-subtle":"_XjG-b","bullet--warning-bold":"_wFH6M","bullet--warning-subtle":"_emEgs","bullet--danger-bold":"_19BDU","bullet--danger-subtle":"_byHod","bullet--upsell-bold":"_Qs-70","bullet--upsell-subtle":"_hxJhf","bullet--small":"_r72Sq","bullet--medium":"_70-Zq","bullet--large":"_0wj-C","bullet--extra-large":"_YDZvZ"};
|