@7shifts/sous-chef 3.89.5 → 3.90.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/forms/ColorField/ColorField.d.ts +5 -0
- package/dist/forms/ColorField/ColorOverlay/ColorOverlay.d.ts +9 -0
- package/dist/forms/ColorField/ColorOverlay/index.d.ts +1 -0
- package/dist/forms/ColorField/ColorOverlay/useColorKeyboardNavigation.d.ts +4 -0
- package/dist/forms/ColorField/ColorSwatch/ColorSwatch.d.ts +6 -0
- package/dist/forms/ColorField/ColorSwatch/index.d.ts +1 -0
- package/dist/forms/ColorField/constants.d.ts +1 -0
- package/dist/forms/ColorField/index.d.ts +1 -0
- package/dist/forms/index.d.ts +2 -1
- package/dist/icons/components/IconCheckCircle.d.ts +9 -0
- package/dist/icons/components/IconCircleHalfStroke.d.ts +9 -0
- package/dist/icons/components/index.d.ts +2 -0
- package/dist/index.css +92 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +940 -503
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1093 -669
- package/dist/index.modern.js.map +1 -1
- package/dist/overlay/Dropdown/Dropdown.d.ts +1 -0
- package/dist/overlay/DropdownListItem/DropdownListItem.d.ts +2 -1
- package/dist/overlay/DropdownListItemSelectable/DropdownListItemSelectable.d.ts +11 -0
- package/dist/overlay/DropdownListItemSelectable/index.d.ts +1 -0
- package/dist/overlay/DropdownSubmenu/DropdownSubmenu.d.ts +12 -0
- package/dist/overlay/DropdownSubmenu/index.d.ts +1 -0
- package/dist/overlay/hooks/useListKeyboardNavigation/types.d.ts +1 -0
- package/dist/overlay/hooks/useSubmenu.d.ts +18 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -244,7 +244,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
244
244
|
return t;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
var styles$
|
|
247
|
+
var styles$1t = {"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"};
|
|
248
248
|
|
|
249
249
|
const usePositionStyles = ({
|
|
250
250
|
m,
|
|
@@ -282,7 +282,7 @@ const capitalizeFirstLetter = text => {
|
|
|
282
282
|
};
|
|
283
283
|
const kebabize = str => str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? '-' : '') + $.toLowerCase());
|
|
284
284
|
|
|
285
|
-
const _excluded$
|
|
285
|
+
const _excluded$33 = ["m", "margin", "mt", "marginTop", "mr", "marginRight", "mb", "marginBottom", "ml", "marginLeft"];
|
|
286
286
|
const getPositionProps = _ref => {
|
|
287
287
|
let {
|
|
288
288
|
m,
|
|
@@ -296,7 +296,7 @@ const getPositionProps = _ref => {
|
|
|
296
296
|
ml,
|
|
297
297
|
marginLeft
|
|
298
298
|
} = _ref,
|
|
299
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
299
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$33);
|
|
300
300
|
return {
|
|
301
301
|
positionProps: {
|
|
302
302
|
m,
|
|
@@ -332,7 +332,7 @@ const getDataProps = (props, config) => {
|
|
|
332
332
|
});
|
|
333
333
|
};
|
|
334
334
|
|
|
335
|
-
const _excluded$
|
|
335
|
+
const _excluded$32 = ["children", "space", "flex", "alignItems", "justifyContent", "inlineFlex", "direction", "flexItems", "flexWrap", "flexGrow", "testId", "extraClass"];
|
|
336
336
|
/**
|
|
337
337
|
* Flex is a internal component used by Stack and Inline. DON'T use this component outside of Sous Chef
|
|
338
338
|
*/
|
|
@@ -351,7 +351,7 @@ const Flex = _ref => {
|
|
|
351
351
|
testId,
|
|
352
352
|
extraClass
|
|
353
353
|
} = _ref,
|
|
354
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
354
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$32);
|
|
355
355
|
const {
|
|
356
356
|
positionProps,
|
|
357
357
|
otherProps
|
|
@@ -360,15 +360,15 @@ const Flex = _ref => {
|
|
|
360
360
|
dataProps
|
|
361
361
|
} = getDataProps(otherProps);
|
|
362
362
|
const positionStyles = usePositionStyles(positionProps);
|
|
363
|
-
const className = classnames(styles$
|
|
364
|
-
[styles$
|
|
365
|
-
[styles$
|
|
366
|
-
[styles$
|
|
367
|
-
[styles$
|
|
368
|
-
[styles$
|
|
369
|
-
[styles$
|
|
370
|
-
[styles$
|
|
371
|
-
[styles$
|
|
363
|
+
const className = classnames(styles$1t['flex'], extraClass, {
|
|
364
|
+
[styles$1t['align-start']]: alignItems === 'flex-start',
|
|
365
|
+
[styles$1t['align-end']]: alignItems === 'flex-end',
|
|
366
|
+
[styles$1t['align-center']]: alignItems === 'center',
|
|
367
|
+
[styles$1t['justify-start']]: justifyContent === 'start',
|
|
368
|
+
[styles$1t['justify-end']]: justifyContent === 'end',
|
|
369
|
+
[styles$1t['justify-center']]: justifyContent === 'center',
|
|
370
|
+
[styles$1t['justify-space-between']]: justifyContent === 'space-between',
|
|
371
|
+
[styles$1t['inline-flex']]: inlineFlex
|
|
372
372
|
});
|
|
373
373
|
const items = React__default.Children.toArray(children).filter(Boolean);
|
|
374
374
|
const gap = typeof space === 'object' ? `${space.row}px ${space.column}px` : space;
|
|
@@ -383,8 +383,8 @@ const Flex = _ref => {
|
|
|
383
383
|
"data-testid": testId
|
|
384
384
|
}, dataProps), items.map((child, i) => React__default.createElement("div", {
|
|
385
385
|
key: i,
|
|
386
|
-
className: classnames(styles$
|
|
387
|
-
[styles$
|
|
386
|
+
className: classnames(styles$1t['flex__item'], {
|
|
387
|
+
[styles$1t['flex__item--flexible']]: flexItems
|
|
388
388
|
}),
|
|
389
389
|
style: {
|
|
390
390
|
flex: flex ? flex[i] || '0 1 auto' : '0 1 auto'
|
|
@@ -392,7 +392,7 @@ const Flex = _ref => {
|
|
|
392
392
|
}, child)));
|
|
393
393
|
};
|
|
394
394
|
|
|
395
|
-
const _excluded$
|
|
395
|
+
const _excluded$31 = ["alignItems"];
|
|
396
396
|
/**
|
|
397
397
|
* Layout component to easily stack elements up in a column.
|
|
398
398
|
*/
|
|
@@ -400,16 +400,16 @@ const Stack = _ref => {
|
|
|
400
400
|
let {
|
|
401
401
|
alignItems = 'stretch'
|
|
402
402
|
} = _ref,
|
|
403
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
403
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$31);
|
|
404
404
|
return React.createElement(Flex, _extends({}, props, {
|
|
405
405
|
alignItems: alignItems,
|
|
406
406
|
direction: "column"
|
|
407
407
|
}));
|
|
408
408
|
};
|
|
409
409
|
|
|
410
|
-
var styles$
|
|
410
|
+
var styles$1s = {"caption":"_tMhXr","label":"_NfOw5","label--truncate":"_M3aFK","toggle":"_QDQZ1","toggle__label":"_52dky","toggle__caption":"_A-tgL","toggle__switch":"_kBjjH"};
|
|
411
411
|
|
|
412
|
-
const _excluded$
|
|
412
|
+
const _excluded$30 = ["checked", "label", "caption", "onChange", "disabled", "id", "testId"];
|
|
413
413
|
/**
|
|
414
414
|
* Used when you want to allow the user to turn some information ON and OFF.
|
|
415
415
|
*
|
|
@@ -425,14 +425,14 @@ const Toggle = _ref => {
|
|
|
425
425
|
id,
|
|
426
426
|
testId
|
|
427
427
|
} = _ref,
|
|
428
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
428
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$30);
|
|
429
429
|
const {
|
|
430
430
|
dataProps
|
|
431
431
|
} = getDataProps(otherProps);
|
|
432
432
|
return React__default.createElement(Stack, {
|
|
433
433
|
space: 8
|
|
434
434
|
}, React__default.createElement("label", _extends({}, dataProps, {
|
|
435
|
-
className: styles$
|
|
435
|
+
className: styles$1s['toggle']
|
|
436
436
|
}), React__default.createElement("input", {
|
|
437
437
|
type: "checkbox",
|
|
438
438
|
checked: checked,
|
|
@@ -441,11 +441,11 @@ const Toggle = _ref => {
|
|
|
441
441
|
id: id,
|
|
442
442
|
"data-testid": testId
|
|
443
443
|
}), React__default.createElement("span", {
|
|
444
|
-
className: styles$
|
|
444
|
+
className: styles$1s['toggle__switch']
|
|
445
445
|
}), label && React__default.createElement("span", {
|
|
446
|
-
className: styles$
|
|
446
|
+
className: styles$1s['toggle__label']
|
|
447
447
|
}, label)), caption && React__default.createElement("span", {
|
|
448
|
-
className: styles$
|
|
448
|
+
className: styles$1s['toggle__caption']
|
|
449
449
|
}, caption));
|
|
450
450
|
};
|
|
451
451
|
|
|
@@ -463,7 +463,7 @@ const SPINNER_THEMES = {
|
|
|
463
463
|
PRIDE: 'pride'
|
|
464
464
|
};
|
|
465
465
|
|
|
466
|
-
var styles$
|
|
466
|
+
var styles$1r = {"spinner":"_memxT","rotator":"_QieGp","spinner--block":"_VoFzz","path":"_KSRP9","dash":"_RyBY2","path--mint":"_-sIZJ","path--disabled":"_3fox0","path--contrast":"_VteKz","path--pride":"_7rzsv"};
|
|
467
467
|
|
|
468
468
|
const Spinner = ({
|
|
469
469
|
size: _size = 28,
|
|
@@ -473,10 +473,10 @@ const Spinner = ({
|
|
|
473
473
|
}) => {
|
|
474
474
|
return React__default.createElement("div", {
|
|
475
475
|
className: classnames({
|
|
476
|
-
[styles$
|
|
476
|
+
[styles$1r['spinner--block']]: _block
|
|
477
477
|
})
|
|
478
478
|
}, React__default.createElement("svg", {
|
|
479
|
-
className: styles$
|
|
479
|
+
className: styles$1r['spinner'],
|
|
480
480
|
xmlns: "http://www.w3.org/2000/svg",
|
|
481
481
|
width: _size,
|
|
482
482
|
height: _size,
|
|
@@ -551,7 +551,7 @@ const Spinner = ({
|
|
|
551
551
|
offset: "1",
|
|
552
552
|
stopColor: "#760088"
|
|
553
553
|
}))), React__default.createElement("circle", {
|
|
554
|
-
className: classnames(styles$
|
|
554
|
+
className: classnames(styles$1r['path'], styles$1r[`path--${_theme}`]),
|
|
555
555
|
fill: "none",
|
|
556
556
|
strokeWidth: "6",
|
|
557
557
|
strokeLinecap: "round",
|
|
@@ -561,9 +561,9 @@ const Spinner = ({
|
|
|
561
561
|
})));
|
|
562
562
|
};
|
|
563
563
|
|
|
564
|
-
var styles$
|
|
564
|
+
var styles$1q = {"tooltip":"_Ydu2O"};
|
|
565
565
|
|
|
566
|
-
var styles$
|
|
566
|
+
var styles$1p = {"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"};
|
|
567
567
|
|
|
568
568
|
const TOOLTIP_THEME = {
|
|
569
569
|
BLACK: 'black',
|
|
@@ -757,24 +757,24 @@ const TooltipOverlay = ({
|
|
|
757
757
|
maxHeight,
|
|
758
758
|
zIndex: getZIndex('tooltip')
|
|
759
759
|
}),
|
|
760
|
-
className: classnames(styles$
|
|
761
|
-
[styles$
|
|
762
|
-
[styles$
|
|
763
|
-
[styles$
|
|
760
|
+
className: classnames(styles$1p['tooltip-overlay'], extraClass, {
|
|
761
|
+
[styles$1p['tooltip-overlay--visible']]: isVisible,
|
|
762
|
+
[styles$1p['tooltip-overlay--black-theme']]: theme === TOOLTIP_THEME.BLACK,
|
|
763
|
+
[styles$1p['tooltip-overlay--white-theme']]: theme === TOOLTIP_THEME.WHITE
|
|
764
764
|
}),
|
|
765
765
|
onMouseEnter: onFocusIn,
|
|
766
766
|
onMouseLeave: onFocusOut
|
|
767
767
|
}, React__default.createElement(Stack, {
|
|
768
768
|
space: 8
|
|
769
769
|
}, header && React__default.createElement("div", {
|
|
770
|
-
className: styles$
|
|
770
|
+
className: styles$1p['tooltip-overlay__header']
|
|
771
771
|
}, header), children)), React__default.createElement("div", {
|
|
772
|
-
className: classnames(styles$
|
|
773
|
-
[styles$
|
|
774
|
-
[styles$
|
|
775
|
-
[styles$
|
|
776
|
-
[styles$
|
|
777
|
-
[styles$
|
|
772
|
+
className: classnames(styles$1p['tooltip-overlay-arrow'], extraClass, {
|
|
773
|
+
[styles$1p['tooltip-overlay-arrow--visible']]: isVisible,
|
|
774
|
+
[styles$1p['tooltip-overlay-arrow--top']]: position.actualPlacement.placement === TOOLTIP_PLACEMENT.TOP,
|
|
775
|
+
[styles$1p['tooltip-overlay-arrow--bottom']]: position.actualPlacement.placement === TOOLTIP_PLACEMENT.BOTTOM,
|
|
776
|
+
[styles$1p['tooltip-overlay-arrow--black-theme']]: theme === TOOLTIP_THEME.BLACK,
|
|
777
|
+
[styles$1p['tooltip-overlay-arrow--white-theme']]: theme === TOOLTIP_THEME.WHITE
|
|
778
778
|
}),
|
|
779
779
|
style: _extends({}, position.arrow, {
|
|
780
780
|
zIndex: getZIndex('tooltip')
|
|
@@ -886,7 +886,7 @@ const TooltipElement = ({
|
|
|
886
886
|
}), overlayElement);
|
|
887
887
|
}
|
|
888
888
|
return React__default.createElement("div", _extends({
|
|
889
|
-
className: classnames(styles$
|
|
889
|
+
className: classnames(styles$1q['tooltip'])
|
|
890
890
|
}, commonProps, {
|
|
891
891
|
ref: containerRef
|
|
892
892
|
}), children, overlayElement);
|
|
@@ -896,7 +896,7 @@ const isTooltipCompatible = element => {
|
|
|
896
896
|
return React__default.isValidElement(element) && typeof element.type === 'string';
|
|
897
897
|
};
|
|
898
898
|
|
|
899
|
-
var styles$
|
|
899
|
+
var styles$1o = {"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"};
|
|
900
900
|
|
|
901
901
|
const BUTTON_SIZES = {
|
|
902
902
|
FULL_WIDTH: 'full-width',
|
|
@@ -950,7 +950,7 @@ const COMPONENT_NAMES = {
|
|
|
950
950
|
BUTTON: 'BUTTON'
|
|
951
951
|
};
|
|
952
952
|
|
|
953
|
-
const _excluded$
|
|
953
|
+
const _excluded$2$ = ["children", "type", "theme", "disabled", "onClick", "onMouseEnter", "onMouseLeave", "onBlur", "onFocus", "onKeyDown", "id", "loading", "title", "href", "target", "testId", "size"],
|
|
954
954
|
_excluded2 = ["id", "onClick", "onMouseEnter", "onMouseLeave", "onBlur", "onFocus", "onKeyDown", "className", "type", "disabled", "href", "target", "children", "position", "dataProps"];
|
|
955
955
|
const ButtonComponent = (_ref, ref) => {
|
|
956
956
|
let {
|
|
@@ -972,7 +972,7 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
972
972
|
testId,
|
|
973
973
|
size
|
|
974
974
|
} = _ref,
|
|
975
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
975
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2$);
|
|
976
976
|
const {
|
|
977
977
|
positionProps,
|
|
978
978
|
otherProps
|
|
@@ -991,24 +991,24 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
991
991
|
onBlur: onBlur,
|
|
992
992
|
onFocus: onFocus,
|
|
993
993
|
onKeyDown: onKeyDown,
|
|
994
|
-
className: classnames(styles$
|
|
995
|
-
[styles$
|
|
996
|
-
[styles$
|
|
997
|
-
[styles$
|
|
998
|
-
[styles$
|
|
999
|
-
[styles$
|
|
1000
|
-
[styles$
|
|
1001
|
-
[styles$
|
|
1002
|
-
[styles$
|
|
1003
|
-
[styles$
|
|
1004
|
-
[styles$
|
|
1005
|
-
[styles$
|
|
1006
|
-
[styles$
|
|
1007
|
-
[styles$
|
|
1008
|
-
[styles$
|
|
1009
|
-
[styles$
|
|
1010
|
-
[styles$
|
|
1011
|
-
[styles$
|
|
994
|
+
className: classnames(styles$1o['button'], {
|
|
995
|
+
[styles$1o['button--default']]: theme === BUTTON_THEMES.DEFAULT,
|
|
996
|
+
[styles$1o['button--primary']]: theme === BUTTON_THEMES.PRIMARY,
|
|
997
|
+
[styles$1o['button--danger']]: theme === BUTTON_THEMES.DANGER,
|
|
998
|
+
[styles$1o['button--upsell']]: theme === BUTTON_THEMES.UPSELL,
|
|
999
|
+
[styles$1o['button--marketing']]: theme === BUTTON_THEMES.MARKETING,
|
|
1000
|
+
[styles$1o['button--hollow']]: theme === BUTTON_THEMES.HOLLOW,
|
|
1001
|
+
[styles$1o['button--hollow-contrast']]: theme === BUTTON_THEMES.HOLLOW_CONTRAST,
|
|
1002
|
+
[styles$1o['button--link-primary']]: theme === BUTTON_THEMES.LINK_PRIMARY,
|
|
1003
|
+
[styles$1o['button--link-danger']]: theme === BUTTON_THEMES.LINK_DANGER,
|
|
1004
|
+
[styles$1o['button--link-upsell']]: theme === BUTTON_THEMES.LINK_UPSELL,
|
|
1005
|
+
[styles$1o['button--link-toolbar']]: theme === BUTTON_THEMES.LINK_TOOLBAR,
|
|
1006
|
+
[styles$1o['button--link-contrast']]: theme === BUTTON_THEMES.LINK_CONTRAST,
|
|
1007
|
+
[styles$1o['button--link-icon']]: theme === BUTTON_THEMES.LINK_ICON,
|
|
1008
|
+
[styles$1o['button--loading']]: loading,
|
|
1009
|
+
[styles$1o['button--icon-only']]: isIconOnly,
|
|
1010
|
+
[styles$1o['button--size-min-width-100']]: size === BUTTON_SIZES.MIN_WIDTH_100,
|
|
1011
|
+
[styles$1o['button--size-full-width']]: size === BUTTON_SIZES.FULL_WIDTH
|
|
1012
1012
|
}),
|
|
1013
1013
|
type: type,
|
|
1014
1014
|
disabled: disabled || loading,
|
|
@@ -1022,7 +1022,7 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1022
1022
|
space: 8,
|
|
1023
1023
|
alignItems: "center"
|
|
1024
1024
|
}, children), loading && React__default.createElement("div", {
|
|
1025
|
-
className: styles$
|
|
1025
|
+
className: styles$1o['button__spinner']
|
|
1026
1026
|
}, React__default.createElement(Spinner, {
|
|
1027
1027
|
theme: contrastSpinner.includes(theme) ? SPINNER_THEMES.CONTRAST : SPINNER_THEMES.DISABLED
|
|
1028
1028
|
})));
|
|
@@ -1032,7 +1032,7 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1032
1032
|
overlay: title,
|
|
1033
1033
|
ref: ref
|
|
1034
1034
|
}, title && disabled ? React__default.createElement("div", {
|
|
1035
|
-
className: styles$
|
|
1035
|
+
className: styles$1o['disabled-button-wrapper']
|
|
1036
1036
|
}, ButtonElementResult) : ButtonElementResult)
|
|
1037
1037
|
);
|
|
1038
1038
|
};
|
|
@@ -1115,7 +1115,7 @@ const useIsInsideComponent = parentComponentName => {
|
|
|
1115
1115
|
return componentName === parentComponentName;
|
|
1116
1116
|
};
|
|
1117
1117
|
|
|
1118
|
-
const _excluded$
|
|
1118
|
+
const _excluded$2_ = ["testId", "size", "color", "style"];
|
|
1119
1119
|
const IconInfoCircle = forwardRef((_ref, ref) => {
|
|
1120
1120
|
let {
|
|
1121
1121
|
testId = 'icon-info-circle',
|
|
@@ -1123,7 +1123,7 @@ const IconInfoCircle = forwardRef((_ref, ref) => {
|
|
|
1123
1123
|
color,
|
|
1124
1124
|
style
|
|
1125
1125
|
} = _ref,
|
|
1126
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1126
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2_);
|
|
1127
1127
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1128
1128
|
const styleProps = {
|
|
1129
1129
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1146,7 +1146,7 @@ const IconInfoCircle = forwardRef((_ref, ref) => {
|
|
|
1146
1146
|
});
|
|
1147
1147
|
IconInfoCircle.displayName = 'IconInfoCircle';
|
|
1148
1148
|
|
|
1149
|
-
const _excluded$
|
|
1149
|
+
const _excluded$2Z = ["testId", "size", "color", "style"];
|
|
1150
1150
|
const IconAnalytics = forwardRef((_ref, ref) => {
|
|
1151
1151
|
let {
|
|
1152
1152
|
testId = 'icon-analytics',
|
|
@@ -1154,7 +1154,7 @@ const IconAnalytics = forwardRef((_ref, ref) => {
|
|
|
1154
1154
|
color,
|
|
1155
1155
|
style
|
|
1156
1156
|
} = _ref,
|
|
1157
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1157
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2Z);
|
|
1158
1158
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1159
1159
|
const styleProps = {
|
|
1160
1160
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1177,7 +1177,7 @@ const IconAnalytics = forwardRef((_ref, ref) => {
|
|
|
1177
1177
|
});
|
|
1178
1178
|
IconAnalytics.displayName = 'IconAnalytics';
|
|
1179
1179
|
|
|
1180
|
-
const _excluded$
|
|
1180
|
+
const _excluded$2Y = ["testId", "size", "color", "style"];
|
|
1181
1181
|
const IconArrowDownWideShort = forwardRef((_ref, ref) => {
|
|
1182
1182
|
let {
|
|
1183
1183
|
testId = 'icon-arrow-down-wide-short',
|
|
@@ -1185,7 +1185,7 @@ const IconArrowDownWideShort = forwardRef((_ref, ref) => {
|
|
|
1185
1185
|
color,
|
|
1186
1186
|
style
|
|
1187
1187
|
} = _ref,
|
|
1188
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1188
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2Y);
|
|
1189
1189
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1190
1190
|
const styleProps = {
|
|
1191
1191
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1206,7 +1206,7 @@ const IconArrowDownWideShort = forwardRef((_ref, ref) => {
|
|
|
1206
1206
|
});
|
|
1207
1207
|
IconArrowDownWideShort.displayName = 'IconArrowDownWideShort';
|
|
1208
1208
|
|
|
1209
|
-
const _excluded$
|
|
1209
|
+
const _excluded$2X = ["testId", "size", "color", "style"];
|
|
1210
1210
|
const IconArrowDown = forwardRef((_ref, ref) => {
|
|
1211
1211
|
let {
|
|
1212
1212
|
testId = 'icon-arrow-down',
|
|
@@ -1214,7 +1214,7 @@ const IconArrowDown = forwardRef((_ref, ref) => {
|
|
|
1214
1214
|
color,
|
|
1215
1215
|
style
|
|
1216
1216
|
} = _ref,
|
|
1217
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1217
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2X);
|
|
1218
1218
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1219
1219
|
const styleProps = {
|
|
1220
1220
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1237,7 +1237,7 @@ const IconArrowDown = forwardRef((_ref, ref) => {
|
|
|
1237
1237
|
});
|
|
1238
1238
|
IconArrowDown.displayName = 'IconArrowDown';
|
|
1239
1239
|
|
|
1240
|
-
const _excluded$
|
|
1240
|
+
const _excluded$2W = ["testId", "size", "color", "style"];
|
|
1241
1241
|
const IconArrowLeft = forwardRef((_ref, ref) => {
|
|
1242
1242
|
let {
|
|
1243
1243
|
testId = 'icon-arrow-left',
|
|
@@ -1245,7 +1245,7 @@ const IconArrowLeft = forwardRef((_ref, ref) => {
|
|
|
1245
1245
|
color,
|
|
1246
1246
|
style
|
|
1247
1247
|
} = _ref,
|
|
1248
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1248
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2W);
|
|
1249
1249
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1250
1250
|
const styleProps = {
|
|
1251
1251
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1268,7 +1268,7 @@ const IconArrowLeft = forwardRef((_ref, ref) => {
|
|
|
1268
1268
|
});
|
|
1269
1269
|
IconArrowLeft.displayName = 'IconArrowLeft';
|
|
1270
1270
|
|
|
1271
|
-
const _excluded$
|
|
1271
|
+
const _excluded$2V = ["testId", "size", "color", "style"];
|
|
1272
1272
|
const IconArrowRight = forwardRef((_ref, ref) => {
|
|
1273
1273
|
let {
|
|
1274
1274
|
testId = 'icon-arrow-right',
|
|
@@ -1276,7 +1276,7 @@ const IconArrowRight = forwardRef((_ref, ref) => {
|
|
|
1276
1276
|
color,
|
|
1277
1277
|
style
|
|
1278
1278
|
} = _ref,
|
|
1279
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1279
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2V);
|
|
1280
1280
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1281
1281
|
const styleProps = {
|
|
1282
1282
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1299,7 +1299,7 @@ const IconArrowRight = forwardRef((_ref, ref) => {
|
|
|
1299
1299
|
});
|
|
1300
1300
|
IconArrowRight.displayName = 'IconArrowRight';
|
|
1301
1301
|
|
|
1302
|
-
const _excluded$
|
|
1302
|
+
const _excluded$2U = ["testId", "size", "color", "style"];
|
|
1303
1303
|
const IconArrowToTop = forwardRef((_ref, ref) => {
|
|
1304
1304
|
let {
|
|
1305
1305
|
testId = 'icon-arrow-to-top',
|
|
@@ -1307,7 +1307,7 @@ const IconArrowToTop = forwardRef((_ref, ref) => {
|
|
|
1307
1307
|
color,
|
|
1308
1308
|
style
|
|
1309
1309
|
} = _ref,
|
|
1310
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1310
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2U);
|
|
1311
1311
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1312
1312
|
const styleProps = {
|
|
1313
1313
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1328,7 +1328,7 @@ const IconArrowToTop = forwardRef((_ref, ref) => {
|
|
|
1328
1328
|
});
|
|
1329
1329
|
IconArrowToTop.displayName = 'IconArrowToTop';
|
|
1330
1330
|
|
|
1331
|
-
const _excluded$
|
|
1331
|
+
const _excluded$2T = ["testId", "size", "color", "style"];
|
|
1332
1332
|
const IconArrowTurnDownRight = forwardRef((_ref, ref) => {
|
|
1333
1333
|
let {
|
|
1334
1334
|
testId = 'icon-arrow-turn-down-right',
|
|
@@ -1336,7 +1336,7 @@ const IconArrowTurnDownRight = forwardRef((_ref, ref) => {
|
|
|
1336
1336
|
color,
|
|
1337
1337
|
style
|
|
1338
1338
|
} = _ref,
|
|
1339
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1339
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2T);
|
|
1340
1340
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1341
1341
|
const styleProps = {
|
|
1342
1342
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1365,7 +1365,7 @@ const IconArrowTurnDownRight = forwardRef((_ref, ref) => {
|
|
|
1365
1365
|
});
|
|
1366
1366
|
IconArrowTurnDownRight.displayName = 'IconArrowTurnDownRight';
|
|
1367
1367
|
|
|
1368
|
-
const _excluded$
|
|
1368
|
+
const _excluded$2S = ["testId", "size", "color", "style"];
|
|
1369
1369
|
const IconArrowUp = forwardRef((_ref, ref) => {
|
|
1370
1370
|
let {
|
|
1371
1371
|
testId = 'icon-arrow-up',
|
|
@@ -1373,7 +1373,7 @@ const IconArrowUp = forwardRef((_ref, ref) => {
|
|
|
1373
1373
|
color,
|
|
1374
1374
|
style
|
|
1375
1375
|
} = _ref,
|
|
1376
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1376
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2S);
|
|
1377
1377
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1378
1378
|
const styleProps = {
|
|
1379
1379
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1396,7 +1396,7 @@ const IconArrowUp = forwardRef((_ref, ref) => {
|
|
|
1396
1396
|
});
|
|
1397
1397
|
IconArrowUp.displayName = 'IconArrowUp';
|
|
1398
1398
|
|
|
1399
|
-
const _excluded$
|
|
1399
|
+
const _excluded$2R = ["testId", "size", "color", "style"];
|
|
1400
1400
|
const IconAward = forwardRef((_ref, ref) => {
|
|
1401
1401
|
let {
|
|
1402
1402
|
testId = 'icon-award',
|
|
@@ -1404,7 +1404,7 @@ const IconAward = forwardRef((_ref, ref) => {
|
|
|
1404
1404
|
color,
|
|
1405
1405
|
style
|
|
1406
1406
|
} = _ref,
|
|
1407
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1407
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2R);
|
|
1408
1408
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1409
1409
|
const styleProps = {
|
|
1410
1410
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1427,7 +1427,7 @@ const IconAward = forwardRef((_ref, ref) => {
|
|
|
1427
1427
|
});
|
|
1428
1428
|
IconAward.displayName = 'IconAward';
|
|
1429
1429
|
|
|
1430
|
-
const _excluded$
|
|
1430
|
+
const _excluded$2Q = ["testId", "size", "color", "style"];
|
|
1431
1431
|
const IconAwfulMonochromatic = forwardRef((_ref, ref) => {
|
|
1432
1432
|
let {
|
|
1433
1433
|
testId = 'icon-awful-monochromatic',
|
|
@@ -1435,7 +1435,7 @@ const IconAwfulMonochromatic = forwardRef((_ref, ref) => {
|
|
|
1435
1435
|
color,
|
|
1436
1436
|
style
|
|
1437
1437
|
} = _ref,
|
|
1438
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1438
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2Q);
|
|
1439
1439
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1440
1440
|
const styleProps = {
|
|
1441
1441
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1488,7 +1488,7 @@ const IconAwfulMonochromatic = forwardRef((_ref, ref) => {
|
|
|
1488
1488
|
});
|
|
1489
1489
|
IconAwfulMonochromatic.displayName = 'IconAwfulMonochromatic';
|
|
1490
1490
|
|
|
1491
|
-
const _excluded$
|
|
1491
|
+
const _excluded$2P = ["testId", "size", "color", "style"];
|
|
1492
1492
|
const IconAwful = forwardRef((_ref, ref) => {
|
|
1493
1493
|
let {
|
|
1494
1494
|
testId = 'icon-awful',
|
|
@@ -1496,7 +1496,7 @@ const IconAwful = forwardRef((_ref, ref) => {
|
|
|
1496
1496
|
color,
|
|
1497
1497
|
style
|
|
1498
1498
|
} = _ref,
|
|
1499
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1499
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2P);
|
|
1500
1500
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1501
1501
|
const styleProps = {
|
|
1502
1502
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1537,7 +1537,7 @@ const IconAwful = forwardRef((_ref, ref) => {
|
|
|
1537
1537
|
});
|
|
1538
1538
|
IconAwful.displayName = 'IconAwful';
|
|
1539
1539
|
|
|
1540
|
-
const _excluded$
|
|
1540
|
+
const _excluded$2O = ["testId", "size", "color", "style"];
|
|
1541
1541
|
const IconBadMonochromatic = forwardRef((_ref, ref) => {
|
|
1542
1542
|
let {
|
|
1543
1543
|
testId = 'icon-bad-monochromatic',
|
|
@@ -1545,7 +1545,7 @@ const IconBadMonochromatic = forwardRef((_ref, ref) => {
|
|
|
1545
1545
|
color,
|
|
1546
1546
|
style
|
|
1547
1547
|
} = _ref,
|
|
1548
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1548
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2O);
|
|
1549
1549
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1550
1550
|
const styleProps = {
|
|
1551
1551
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1584,7 +1584,7 @@ const IconBadMonochromatic = forwardRef((_ref, ref) => {
|
|
|
1584
1584
|
});
|
|
1585
1585
|
IconBadMonochromatic.displayName = 'IconBadMonochromatic';
|
|
1586
1586
|
|
|
1587
|
-
const _excluded$
|
|
1587
|
+
const _excluded$2N = ["testId", "size", "color", "style"];
|
|
1588
1588
|
const IconBad = forwardRef((_ref, ref) => {
|
|
1589
1589
|
let {
|
|
1590
1590
|
testId = 'icon-bad',
|
|
@@ -1592,7 +1592,7 @@ const IconBad = forwardRef((_ref, ref) => {
|
|
|
1592
1592
|
color,
|
|
1593
1593
|
style
|
|
1594
1594
|
} = _ref,
|
|
1595
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1595
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2N);
|
|
1596
1596
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1597
1597
|
const styleProps = {
|
|
1598
1598
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1619,7 +1619,7 @@ const IconBad = forwardRef((_ref, ref) => {
|
|
|
1619
1619
|
});
|
|
1620
1620
|
IconBad.displayName = 'IconBad';
|
|
1621
1621
|
|
|
1622
|
-
const _excluded$
|
|
1622
|
+
const _excluded$2M = ["testId", "size", "color", "style"];
|
|
1623
1623
|
const IconBalanceScaleLeft = forwardRef((_ref, ref) => {
|
|
1624
1624
|
let {
|
|
1625
1625
|
testId = 'icon-balance-scale-left',
|
|
@@ -1627,7 +1627,7 @@ const IconBalanceScaleLeft = forwardRef((_ref, ref) => {
|
|
|
1627
1627
|
color,
|
|
1628
1628
|
style
|
|
1629
1629
|
} = _ref,
|
|
1630
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1630
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2M);
|
|
1631
1631
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1632
1632
|
const styleProps = {
|
|
1633
1633
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1655,7 +1655,7 @@ const IconBalanceScaleLeft = forwardRef((_ref, ref) => {
|
|
|
1655
1655
|
});
|
|
1656
1656
|
IconBalanceScaleLeft.displayName = 'IconBalanceScaleLeft';
|
|
1657
1657
|
|
|
1658
|
-
const _excluded$
|
|
1658
|
+
const _excluded$2L = ["testId", "size", "color", "style"];
|
|
1659
1659
|
const IconBalanceScale = forwardRef((_ref, ref) => {
|
|
1660
1660
|
let {
|
|
1661
1661
|
testId = 'icon-balance-scale',
|
|
@@ -1663,7 +1663,7 @@ const IconBalanceScale = forwardRef((_ref, ref) => {
|
|
|
1663
1663
|
color,
|
|
1664
1664
|
style
|
|
1665
1665
|
} = _ref,
|
|
1666
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1666
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2L);
|
|
1667
1667
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1668
1668
|
const styleProps = {
|
|
1669
1669
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1691,7 +1691,7 @@ const IconBalanceScale = forwardRef((_ref, ref) => {
|
|
|
1691
1691
|
});
|
|
1692
1692
|
IconBalanceScale.displayName = 'IconBalanceScale';
|
|
1693
1693
|
|
|
1694
|
-
const _excluded$
|
|
1694
|
+
const _excluded$2K = ["testId", "size", "color", "style"];
|
|
1695
1695
|
const IconBan = forwardRef((_ref, ref) => {
|
|
1696
1696
|
let {
|
|
1697
1697
|
testId = 'icon-ban',
|
|
@@ -1699,7 +1699,7 @@ const IconBan = forwardRef((_ref, ref) => {
|
|
|
1699
1699
|
color,
|
|
1700
1700
|
style
|
|
1701
1701
|
} = _ref,
|
|
1702
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1702
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2K);
|
|
1703
1703
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1704
1704
|
const styleProps = {
|
|
1705
1705
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1720,7 +1720,7 @@ const IconBan = forwardRef((_ref, ref) => {
|
|
|
1720
1720
|
});
|
|
1721
1721
|
IconBan.displayName = 'IconBan';
|
|
1722
1722
|
|
|
1723
|
-
const _excluded$
|
|
1723
|
+
const _excluded$2J = ["testId", "size", "color", "style"];
|
|
1724
1724
|
const IconBarsH = forwardRef((_ref, ref) => {
|
|
1725
1725
|
let {
|
|
1726
1726
|
testId = 'icon-bars-h',
|
|
@@ -1728,7 +1728,7 @@ const IconBarsH = forwardRef((_ref, ref) => {
|
|
|
1728
1728
|
color,
|
|
1729
1729
|
style
|
|
1730
1730
|
} = _ref,
|
|
1731
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1731
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2J);
|
|
1732
1732
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1733
1733
|
const styleProps = {
|
|
1734
1734
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1751,7 +1751,7 @@ const IconBarsH = forwardRef((_ref, ref) => {
|
|
|
1751
1751
|
});
|
|
1752
1752
|
IconBarsH.displayName = 'IconBarsH';
|
|
1753
1753
|
|
|
1754
|
-
const _excluded$
|
|
1754
|
+
const _excluded$2I = ["testId", "size", "color", "style"];
|
|
1755
1755
|
const IconBarsV = forwardRef((_ref, ref) => {
|
|
1756
1756
|
let {
|
|
1757
1757
|
testId = 'icon-bars-v',
|
|
@@ -1759,7 +1759,7 @@ const IconBarsV = forwardRef((_ref, ref) => {
|
|
|
1759
1759
|
color,
|
|
1760
1760
|
style
|
|
1761
1761
|
} = _ref,
|
|
1762
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1762
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2I);
|
|
1763
1763
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1764
1764
|
const styleProps = {
|
|
1765
1765
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1780,7 +1780,7 @@ const IconBarsV = forwardRef((_ref, ref) => {
|
|
|
1780
1780
|
});
|
|
1781
1781
|
IconBarsV.displayName = 'IconBarsV';
|
|
1782
1782
|
|
|
1783
|
-
const _excluded$
|
|
1783
|
+
const _excluded$2H = ["testId", "size", "color", "style"];
|
|
1784
1784
|
const IconBell = forwardRef((_ref, ref) => {
|
|
1785
1785
|
let {
|
|
1786
1786
|
testId = 'icon-bell',
|
|
@@ -1788,7 +1788,7 @@ const IconBell = forwardRef((_ref, ref) => {
|
|
|
1788
1788
|
color,
|
|
1789
1789
|
style
|
|
1790
1790
|
} = _ref,
|
|
1791
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1791
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2H);
|
|
1792
1792
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1793
1793
|
const styleProps = {
|
|
1794
1794
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1811,7 +1811,7 @@ const IconBell = forwardRef((_ref, ref) => {
|
|
|
1811
1811
|
});
|
|
1812
1812
|
IconBell.displayName = 'IconBell';
|
|
1813
1813
|
|
|
1814
|
-
const _excluded$
|
|
1814
|
+
const _excluded$2G = ["testId", "size", "color", "style"];
|
|
1815
1815
|
const IconBirthdayCake = forwardRef((_ref, ref) => {
|
|
1816
1816
|
let {
|
|
1817
1817
|
testId = 'icon-birthday-cake',
|
|
@@ -1819,7 +1819,7 @@ const IconBirthdayCake = forwardRef((_ref, ref) => {
|
|
|
1819
1819
|
color,
|
|
1820
1820
|
style
|
|
1821
1821
|
} = _ref,
|
|
1822
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1822
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2G);
|
|
1823
1823
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1824
1824
|
const styleProps = {
|
|
1825
1825
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1840,7 +1840,7 @@ const IconBirthdayCake = forwardRef((_ref, ref) => {
|
|
|
1840
1840
|
});
|
|
1841
1841
|
IconBirthdayCake.displayName = 'IconBirthdayCake';
|
|
1842
1842
|
|
|
1843
|
-
const _excluded$
|
|
1843
|
+
const _excluded$2F = ["testId", "size", "color", "style"];
|
|
1844
1844
|
const IconBold = forwardRef((_ref, ref) => {
|
|
1845
1845
|
let {
|
|
1846
1846
|
testId = 'icon-bold',
|
|
@@ -1848,7 +1848,7 @@ const IconBold = forwardRef((_ref, ref) => {
|
|
|
1848
1848
|
color,
|
|
1849
1849
|
style
|
|
1850
1850
|
} = _ref,
|
|
1851
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1851
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2F);
|
|
1852
1852
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1853
1853
|
const styleProps = {
|
|
1854
1854
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1869,7 +1869,7 @@ const IconBold = forwardRef((_ref, ref) => {
|
|
|
1869
1869
|
});
|
|
1870
1870
|
IconBold.displayName = 'IconBold';
|
|
1871
1871
|
|
|
1872
|
-
const _excluded$
|
|
1872
|
+
const _excluded$2E = ["testId", "size", "color", "style"];
|
|
1873
1873
|
const IconBolt = forwardRef((_ref, ref) => {
|
|
1874
1874
|
let {
|
|
1875
1875
|
testId = 'icon-bolt',
|
|
@@ -1877,7 +1877,7 @@ const IconBolt = forwardRef((_ref, ref) => {
|
|
|
1877
1877
|
color,
|
|
1878
1878
|
style
|
|
1879
1879
|
} = _ref,
|
|
1880
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1880
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2E);
|
|
1881
1881
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1882
1882
|
const styleProps = {
|
|
1883
1883
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1905,7 +1905,7 @@ const IconBolt = forwardRef((_ref, ref) => {
|
|
|
1905
1905
|
});
|
|
1906
1906
|
IconBolt.displayName = 'IconBolt';
|
|
1907
1907
|
|
|
1908
|
-
const _excluded$
|
|
1908
|
+
const _excluded$2D = ["testId", "size", "color", "style"];
|
|
1909
1909
|
const IconBook = forwardRef((_ref, ref) => {
|
|
1910
1910
|
let {
|
|
1911
1911
|
testId = 'icon-book',
|
|
@@ -1913,7 +1913,7 @@ const IconBook = forwardRef((_ref, ref) => {
|
|
|
1913
1913
|
color,
|
|
1914
1914
|
style
|
|
1915
1915
|
} = _ref,
|
|
1916
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1916
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2D);
|
|
1917
1917
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1918
1918
|
const styleProps = {
|
|
1919
1919
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1936,7 +1936,7 @@ const IconBook = forwardRef((_ref, ref) => {
|
|
|
1936
1936
|
});
|
|
1937
1937
|
IconBook.displayName = 'IconBook';
|
|
1938
1938
|
|
|
1939
|
-
const _excluded$
|
|
1939
|
+
const _excluded$2C = ["testId", "size", "color", "style"];
|
|
1940
1940
|
const IconBriefcase = forwardRef((_ref, ref) => {
|
|
1941
1941
|
let {
|
|
1942
1942
|
testId = 'icon-briefcase',
|
|
@@ -1944,7 +1944,7 @@ const IconBriefcase = forwardRef((_ref, ref) => {
|
|
|
1944
1944
|
color,
|
|
1945
1945
|
style
|
|
1946
1946
|
} = _ref,
|
|
1947
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1947
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2C);
|
|
1948
1948
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1949
1949
|
const styleProps = {
|
|
1950
1950
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1965,7 +1965,7 @@ const IconBriefcase = forwardRef((_ref, ref) => {
|
|
|
1965
1965
|
});
|
|
1966
1966
|
IconBriefcase.displayName = 'IconBriefcase';
|
|
1967
1967
|
|
|
1968
|
-
const _excluded$
|
|
1968
|
+
const _excluded$2B = ["testId", "size", "color", "style"];
|
|
1969
1969
|
const IconBullseyeArrow = forwardRef((_ref, ref) => {
|
|
1970
1970
|
let {
|
|
1971
1971
|
testId = 'icon-bullseye-arrow',
|
|
@@ -1973,7 +1973,7 @@ const IconBullseyeArrow = forwardRef((_ref, ref) => {
|
|
|
1973
1973
|
color,
|
|
1974
1974
|
style
|
|
1975
1975
|
} = _ref,
|
|
1976
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1976
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2B);
|
|
1977
1977
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1978
1978
|
const styleProps = {
|
|
1979
1979
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -1996,7 +1996,7 @@ const IconBullseyeArrow = forwardRef((_ref, ref) => {
|
|
|
1996
1996
|
});
|
|
1997
1997
|
IconBullseyeArrow.displayName = 'IconBullseyeArrow';
|
|
1998
1998
|
|
|
1999
|
-
const _excluded$
|
|
1999
|
+
const _excluded$2A = ["testId", "size", "color", "style"];
|
|
2000
2000
|
const IconCalculator = forwardRef((_ref, ref) => {
|
|
2001
2001
|
let {
|
|
2002
2002
|
testId = 'icon-calculator',
|
|
@@ -2004,7 +2004,7 @@ const IconCalculator = forwardRef((_ref, ref) => {
|
|
|
2004
2004
|
color,
|
|
2005
2005
|
style
|
|
2006
2006
|
} = _ref,
|
|
2007
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2007
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2A);
|
|
2008
2008
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2009
2009
|
const styleProps = {
|
|
2010
2010
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2027,7 +2027,7 @@ const IconCalculator = forwardRef((_ref, ref) => {
|
|
|
2027
2027
|
});
|
|
2028
2028
|
IconCalculator.displayName = 'IconCalculator';
|
|
2029
2029
|
|
|
2030
|
-
const _excluded$
|
|
2030
|
+
const _excluded$2z = ["testId", "size", "color", "style"];
|
|
2031
2031
|
const IconCalendarAlt = forwardRef((_ref, ref) => {
|
|
2032
2032
|
let {
|
|
2033
2033
|
testId = 'icon-calendar-alt',
|
|
@@ -2035,7 +2035,7 @@ const IconCalendarAlt = forwardRef((_ref, ref) => {
|
|
|
2035
2035
|
color,
|
|
2036
2036
|
style
|
|
2037
2037
|
} = _ref,
|
|
2038
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2038
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2z);
|
|
2039
2039
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2040
2040
|
const styleProps = {
|
|
2041
2041
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2058,7 +2058,7 @@ const IconCalendarAlt = forwardRef((_ref, ref) => {
|
|
|
2058
2058
|
});
|
|
2059
2059
|
IconCalendarAlt.displayName = 'IconCalendarAlt';
|
|
2060
2060
|
|
|
2061
|
-
const _excluded$
|
|
2061
|
+
const _excluded$2y = ["testId", "size", "color", "style"];
|
|
2062
2062
|
const IconCalendarCheck = forwardRef((_ref, ref) => {
|
|
2063
2063
|
let {
|
|
2064
2064
|
testId = 'icon-calendar-check',
|
|
@@ -2066,7 +2066,7 @@ const IconCalendarCheck = forwardRef((_ref, ref) => {
|
|
|
2066
2066
|
color,
|
|
2067
2067
|
style
|
|
2068
2068
|
} = _ref,
|
|
2069
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2069
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2y);
|
|
2070
2070
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2071
2071
|
const styleProps = {
|
|
2072
2072
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2089,7 +2089,7 @@ const IconCalendarCheck = forwardRef((_ref, ref) => {
|
|
|
2089
2089
|
});
|
|
2090
2090
|
IconCalendarCheck.displayName = 'IconCalendarCheck';
|
|
2091
2091
|
|
|
2092
|
-
const _excluded$
|
|
2092
|
+
const _excluded$2x = ["testId", "size", "color", "style"];
|
|
2093
2093
|
const IconCalendarDay = forwardRef((_ref, ref) => {
|
|
2094
2094
|
let {
|
|
2095
2095
|
testId = 'icon-calendar-day',
|
|
@@ -2097,7 +2097,7 @@ const IconCalendarDay = forwardRef((_ref, ref) => {
|
|
|
2097
2097
|
color,
|
|
2098
2098
|
style
|
|
2099
2099
|
} = _ref,
|
|
2100
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2100
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2x);
|
|
2101
2101
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2102
2102
|
const styleProps = {
|
|
2103
2103
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2125,7 +2125,7 @@ const IconCalendarDay = forwardRef((_ref, ref) => {
|
|
|
2125
2125
|
});
|
|
2126
2126
|
IconCalendarDay.displayName = 'IconCalendarDay';
|
|
2127
2127
|
|
|
2128
|
-
const _excluded$
|
|
2128
|
+
const _excluded$2w = ["testId", "size", "color", "style"];
|
|
2129
2129
|
const IconCalendarExclamation = forwardRef((_ref, ref) => {
|
|
2130
2130
|
let {
|
|
2131
2131
|
testId = 'icon-calendar-exclamation',
|
|
@@ -2133,7 +2133,7 @@ const IconCalendarExclamation = forwardRef((_ref, ref) => {
|
|
|
2133
2133
|
color,
|
|
2134
2134
|
style
|
|
2135
2135
|
} = _ref,
|
|
2136
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2136
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2w);
|
|
2137
2137
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2138
2138
|
const styleProps = {
|
|
2139
2139
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2154,7 +2154,7 @@ const IconCalendarExclamation = forwardRef((_ref, ref) => {
|
|
|
2154
2154
|
});
|
|
2155
2155
|
IconCalendarExclamation.displayName = 'IconCalendarExclamation';
|
|
2156
2156
|
|
|
2157
|
-
const _excluded$
|
|
2157
|
+
const _excluded$2v = ["testId", "size", "color", "style"];
|
|
2158
2158
|
const IconCalendarStar = forwardRef((_ref, ref) => {
|
|
2159
2159
|
let {
|
|
2160
2160
|
testId = 'icon-calendar-star',
|
|
@@ -2162,7 +2162,7 @@ const IconCalendarStar = forwardRef((_ref, ref) => {
|
|
|
2162
2162
|
color,
|
|
2163
2163
|
style
|
|
2164
2164
|
} = _ref,
|
|
2165
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2165
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2v);
|
|
2166
2166
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2167
2167
|
const styleProps = {
|
|
2168
2168
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2183,7 +2183,7 @@ const IconCalendarStar = forwardRef((_ref, ref) => {
|
|
|
2183
2183
|
});
|
|
2184
2184
|
IconCalendarStar.displayName = 'IconCalendarStar';
|
|
2185
2185
|
|
|
2186
|
-
const _excluded$
|
|
2186
|
+
const _excluded$2u = ["testId", "size", "color", "style"];
|
|
2187
2187
|
const IconCalendarTomorrow = forwardRef((_ref, ref) => {
|
|
2188
2188
|
let {
|
|
2189
2189
|
testId = 'icon-calendar-tomorrow',
|
|
@@ -2191,7 +2191,7 @@ const IconCalendarTomorrow = forwardRef((_ref, ref) => {
|
|
|
2191
2191
|
color,
|
|
2192
2192
|
style
|
|
2193
2193
|
} = _ref,
|
|
2194
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2194
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2u);
|
|
2195
2195
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2196
2196
|
const styleProps = {
|
|
2197
2197
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2221,7 +2221,7 @@ const IconCalendarTomorrow = forwardRef((_ref, ref) => {
|
|
|
2221
2221
|
});
|
|
2222
2222
|
IconCalendarTomorrow.displayName = 'IconCalendarTomorrow';
|
|
2223
2223
|
|
|
2224
|
-
const _excluded$
|
|
2224
|
+
const _excluded$2t = ["testId", "size", "color", "style"];
|
|
2225
2225
|
const IconCalendar = forwardRef((_ref, ref) => {
|
|
2226
2226
|
let {
|
|
2227
2227
|
testId = 'icon-calendar',
|
|
@@ -2229,7 +2229,7 @@ const IconCalendar = forwardRef((_ref, ref) => {
|
|
|
2229
2229
|
color,
|
|
2230
2230
|
style
|
|
2231
2231
|
} = _ref,
|
|
2232
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2232
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2t);
|
|
2233
2233
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2234
2234
|
const styleProps = {
|
|
2235
2235
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2252,7 +2252,7 @@ const IconCalendar = forwardRef((_ref, ref) => {
|
|
|
2252
2252
|
});
|
|
2253
2253
|
IconCalendar.displayName = 'IconCalendar';
|
|
2254
2254
|
|
|
2255
|
-
const _excluded$
|
|
2255
|
+
const _excluded$2s = ["testId", "size", "color", "style"];
|
|
2256
2256
|
const IconCameraSlash = forwardRef((_ref, ref) => {
|
|
2257
2257
|
let {
|
|
2258
2258
|
testId = 'icon-camera-slash',
|
|
@@ -2260,7 +2260,7 @@ const IconCameraSlash = forwardRef((_ref, ref) => {
|
|
|
2260
2260
|
color,
|
|
2261
2261
|
style
|
|
2262
2262
|
} = _ref,
|
|
2263
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2263
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2s);
|
|
2264
2264
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2265
2265
|
const styleProps = {
|
|
2266
2266
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2284,7 +2284,7 @@ const IconCameraSlash = forwardRef((_ref, ref) => {
|
|
|
2284
2284
|
});
|
|
2285
2285
|
IconCameraSlash.displayName = 'IconCameraSlash';
|
|
2286
2286
|
|
|
2287
|
-
const _excluded$
|
|
2287
|
+
const _excluded$2r = ["testId", "size", "color", "style"];
|
|
2288
2288
|
const IconCamera = forwardRef((_ref, ref) => {
|
|
2289
2289
|
let {
|
|
2290
2290
|
testId = 'icon-camera',
|
|
@@ -2292,7 +2292,7 @@ const IconCamera = forwardRef((_ref, ref) => {
|
|
|
2292
2292
|
color,
|
|
2293
2293
|
style
|
|
2294
2294
|
} = _ref,
|
|
2295
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2295
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2r);
|
|
2296
2296
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2297
2297
|
const styleProps = {
|
|
2298
2298
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2313,7 +2313,7 @@ const IconCamera = forwardRef((_ref, ref) => {
|
|
|
2313
2313
|
});
|
|
2314
2314
|
IconCamera.displayName = 'IconCamera';
|
|
2315
2315
|
|
|
2316
|
-
const _excluded$
|
|
2316
|
+
const _excluded$2q = ["testId", "size", "color", "style"];
|
|
2317
2317
|
const IconCashRegister = forwardRef((_ref, ref) => {
|
|
2318
2318
|
let {
|
|
2319
2319
|
testId = 'icon-cash-register',
|
|
@@ -2321,7 +2321,7 @@ const IconCashRegister = forwardRef((_ref, ref) => {
|
|
|
2321
2321
|
color,
|
|
2322
2322
|
style
|
|
2323
2323
|
} = _ref,
|
|
2324
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2324
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2q);
|
|
2325
2325
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2326
2326
|
const styleProps = {
|
|
2327
2327
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2342,7 +2342,7 @@ const IconCashRegister = forwardRef((_ref, ref) => {
|
|
|
2342
2342
|
});
|
|
2343
2343
|
IconCashRegister.displayName = 'IconCashRegister';
|
|
2344
2344
|
|
|
2345
|
-
const _excluded$
|
|
2345
|
+
const _excluded$2p = ["testId", "size", "color", "style"];
|
|
2346
2346
|
const IconChartBar = forwardRef((_ref, ref) => {
|
|
2347
2347
|
let {
|
|
2348
2348
|
testId = 'icon-chart-bar',
|
|
@@ -2350,7 +2350,7 @@ const IconChartBar = forwardRef((_ref, ref) => {
|
|
|
2350
2350
|
color,
|
|
2351
2351
|
style
|
|
2352
2352
|
} = _ref,
|
|
2353
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2353
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2p);
|
|
2354
2354
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2355
2355
|
const styleProps = {
|
|
2356
2356
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2373,7 +2373,7 @@ const IconChartBar = forwardRef((_ref, ref) => {
|
|
|
2373
2373
|
});
|
|
2374
2374
|
IconChartBar.displayName = 'IconChartBar';
|
|
2375
2375
|
|
|
2376
|
-
const _excluded$
|
|
2376
|
+
const _excluded$2o = ["testId", "size", "color", "style"];
|
|
2377
2377
|
const IconCheckCircleIncomplete = forwardRef((_ref, ref) => {
|
|
2378
2378
|
let {
|
|
2379
2379
|
testId = 'icon-check-circle-incomplete',
|
|
@@ -2381,7 +2381,7 @@ const IconCheckCircleIncomplete = forwardRef((_ref, ref) => {
|
|
|
2381
2381
|
color,
|
|
2382
2382
|
style
|
|
2383
2383
|
} = _ref,
|
|
2384
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2384
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2o);
|
|
2385
2385
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2386
2386
|
const styleProps = {
|
|
2387
2387
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2402,7 +2402,36 @@ const IconCheckCircleIncomplete = forwardRef((_ref, ref) => {
|
|
|
2402
2402
|
});
|
|
2403
2403
|
IconCheckCircleIncomplete.displayName = 'IconCheckCircleIncomplete';
|
|
2404
2404
|
|
|
2405
|
-
const _excluded$
|
|
2405
|
+
const _excluded$2n = ["testId", "size", "color", "style"];
|
|
2406
|
+
const IconCheckCircle = forwardRef((_ref, ref) => {
|
|
2407
|
+
let {
|
|
2408
|
+
testId = 'icon-check-circle',
|
|
2409
|
+
size,
|
|
2410
|
+
color,
|
|
2411
|
+
style
|
|
2412
|
+
} = _ref,
|
|
2413
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2n);
|
|
2414
|
+
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2415
|
+
const styleProps = {
|
|
2416
|
+
size: !size && isInsideButton ? 'medium' : size,
|
|
2417
|
+
color,
|
|
2418
|
+
style
|
|
2419
|
+
};
|
|
2420
|
+
return React__default.createElement("svg", _extends({
|
|
2421
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2422
|
+
fill: "none",
|
|
2423
|
+
viewBox: "0 0 20 20",
|
|
2424
|
+
style: getIconStyles(styleProps),
|
|
2425
|
+
"data-testid": testId,
|
|
2426
|
+
ref: ref
|
|
2427
|
+
}, props), React__default.createElement("path", {
|
|
2428
|
+
fill: "currentColor",
|
|
2429
|
+
d: "M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10Zm4.61-14.309a.937.937 0 0 0-1.31.207l-4.663 6.415-2.035-2.036a.937.937 0 0 0-1.324 1.324l2.812 2.813c.195.195.46.293.734.274a.923.923 0 0 0 .684-.383L14.816 7a.937.937 0 0 0-.207-1.309Z"
|
|
2430
|
+
}));
|
|
2431
|
+
});
|
|
2432
|
+
IconCheckCircle.displayName = 'IconCheckCircle';
|
|
2433
|
+
|
|
2434
|
+
const _excluded$2m = ["testId", "size", "color", "style"];
|
|
2406
2435
|
const IconCheck = forwardRef((_ref, ref) => {
|
|
2407
2436
|
let {
|
|
2408
2437
|
testId = 'icon-check',
|
|
@@ -2410,7 +2439,7 @@ const IconCheck = forwardRef((_ref, ref) => {
|
|
|
2410
2439
|
color,
|
|
2411
2440
|
style
|
|
2412
2441
|
} = _ref,
|
|
2413
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2442
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2m);
|
|
2414
2443
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2415
2444
|
const styleProps = {
|
|
2416
2445
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2433,7 +2462,7 @@ const IconCheck = forwardRef((_ref, ref) => {
|
|
|
2433
2462
|
});
|
|
2434
2463
|
IconCheck.displayName = 'IconCheck';
|
|
2435
2464
|
|
|
2436
|
-
const _excluded$
|
|
2465
|
+
const _excluded$2l = ["testId", "size", "color", "style"];
|
|
2437
2466
|
const IconChevronDown = forwardRef((_ref, ref) => {
|
|
2438
2467
|
let {
|
|
2439
2468
|
testId = 'icon-chevron-down',
|
|
@@ -2441,7 +2470,7 @@ const IconChevronDown = forwardRef((_ref, ref) => {
|
|
|
2441
2470
|
color,
|
|
2442
2471
|
style
|
|
2443
2472
|
} = _ref,
|
|
2444
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2473
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2l);
|
|
2445
2474
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2446
2475
|
const styleProps = {
|
|
2447
2476
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2464,7 +2493,7 @@ const IconChevronDown = forwardRef((_ref, ref) => {
|
|
|
2464
2493
|
});
|
|
2465
2494
|
IconChevronDown.displayName = 'IconChevronDown';
|
|
2466
2495
|
|
|
2467
|
-
const _excluded$
|
|
2496
|
+
const _excluded$2k = ["testId", "size", "color", "style"];
|
|
2468
2497
|
const IconChevronLeft = forwardRef((_ref, ref) => {
|
|
2469
2498
|
let {
|
|
2470
2499
|
testId = 'icon-chevron-left',
|
|
@@ -2472,7 +2501,7 @@ const IconChevronLeft = forwardRef((_ref, ref) => {
|
|
|
2472
2501
|
color,
|
|
2473
2502
|
style
|
|
2474
2503
|
} = _ref,
|
|
2475
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2504
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2k);
|
|
2476
2505
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2477
2506
|
const styleProps = {
|
|
2478
2507
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2495,7 +2524,7 @@ const IconChevronLeft = forwardRef((_ref, ref) => {
|
|
|
2495
2524
|
});
|
|
2496
2525
|
IconChevronLeft.displayName = 'IconChevronLeft';
|
|
2497
2526
|
|
|
2498
|
-
const _excluded$
|
|
2527
|
+
const _excluded$2j = ["testId", "size", "color", "style"];
|
|
2499
2528
|
const IconChevronRight = forwardRef((_ref, ref) => {
|
|
2500
2529
|
let {
|
|
2501
2530
|
testId = 'icon-chevron-right',
|
|
@@ -2503,7 +2532,7 @@ const IconChevronRight = forwardRef((_ref, ref) => {
|
|
|
2503
2532
|
color,
|
|
2504
2533
|
style
|
|
2505
2534
|
} = _ref,
|
|
2506
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2535
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2j);
|
|
2507
2536
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2508
2537
|
const styleProps = {
|
|
2509
2538
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2526,7 +2555,7 @@ const IconChevronRight = forwardRef((_ref, ref) => {
|
|
|
2526
2555
|
});
|
|
2527
2556
|
IconChevronRight.displayName = 'IconChevronRight';
|
|
2528
2557
|
|
|
2529
|
-
const _excluded$
|
|
2558
|
+
const _excluded$2i = ["testId", "size", "color", "style"];
|
|
2530
2559
|
const IconChevronUp = forwardRef((_ref, ref) => {
|
|
2531
2560
|
let {
|
|
2532
2561
|
testId = 'icon-chevron-up',
|
|
@@ -2534,7 +2563,7 @@ const IconChevronUp = forwardRef((_ref, ref) => {
|
|
|
2534
2563
|
color,
|
|
2535
2564
|
style
|
|
2536
2565
|
} = _ref,
|
|
2537
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2566
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2i);
|
|
2538
2567
|
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2539
2568
|
const styleProps = {
|
|
2540
2569
|
size: !size && isInsideButton ? 'medium' : size,
|
|
@@ -2557,6 +2586,35 @@ const IconChevronUp = forwardRef((_ref, ref) => {
|
|
|
2557
2586
|
});
|
|
2558
2587
|
IconChevronUp.displayName = 'IconChevronUp';
|
|
2559
2588
|
|
|
2589
|
+
const _excluded$2h = ["testId", "size", "color", "style"];
|
|
2590
|
+
const IconCircleHalfStroke = forwardRef((_ref, ref) => {
|
|
2591
|
+
let {
|
|
2592
|
+
testId = 'icon-circle-half-stroke',
|
|
2593
|
+
size,
|
|
2594
|
+
color,
|
|
2595
|
+
style
|
|
2596
|
+
} = _ref,
|
|
2597
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2h);
|
|
2598
|
+
const isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
2599
|
+
const styleProps = {
|
|
2600
|
+
size: !size && isInsideButton ? 'medium' : size,
|
|
2601
|
+
color,
|
|
2602
|
+
style
|
|
2603
|
+
};
|
|
2604
|
+
return React__default.createElement("svg", _extends({
|
|
2605
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2606
|
+
fill: "none",
|
|
2607
|
+
viewBox: "0 0 20 20",
|
|
2608
|
+
style: getIconStyles(styleProps),
|
|
2609
|
+
"data-testid": testId,
|
|
2610
|
+
ref: ref
|
|
2611
|
+
}, props), React__default.createElement("path", {
|
|
2612
|
+
fill: "currentColor",
|
|
2613
|
+
d: "M17.5 10c0-4.14-3.36-7.5-7.5-7.5v15c4.14 0 7.5-3.36 7.5-7.5ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Z"
|
|
2614
|
+
}));
|
|
2615
|
+
});
|
|
2616
|
+
IconCircleHalfStroke.displayName = 'IconCircleHalfStroke';
|
|
2617
|
+
|
|
2560
2618
|
const _excluded$2g = ["testId", "size", "color", "style"];
|
|
2561
2619
|
const IconClipboardList = forwardRef((_ref, ref) => {
|
|
2562
2620
|
let {
|
|
@@ -6296,20 +6354,20 @@ const IconWrench = forwardRef((_ref, ref) => {
|
|
|
6296
6354
|
});
|
|
6297
6355
|
IconWrench.displayName = 'IconWrench';
|
|
6298
6356
|
|
|
6299
|
-
var styles$
|
|
6357
|
+
var styles$1n = {"pagination-controls":"_S1co-"};
|
|
6300
6358
|
|
|
6301
|
-
var styles$
|
|
6359
|
+
var styles$1m = {"keyboard-key":"_sgd9a","keyboard-key--light":"_8zg4j","keyboard-key__character":"_GAIig"};
|
|
6302
6360
|
|
|
6303
6361
|
const KeyboardKey = ({
|
|
6304
6362
|
children,
|
|
6305
6363
|
theme: _theme = 'dark'
|
|
6306
6364
|
}) => {
|
|
6307
6365
|
return React__default.createElement("span", {
|
|
6308
|
-
className: classnames(styles$
|
|
6309
|
-
[styles$
|
|
6366
|
+
className: classnames(styles$1m['keyboard-key'], {
|
|
6367
|
+
[styles$1m['keyboard-key--light']]: _theme === 'light'
|
|
6310
6368
|
})
|
|
6311
6369
|
}, React__default.createElement("span", {
|
|
6312
|
-
className: styles$
|
|
6370
|
+
className: styles$1m['keyboard-key__character']
|
|
6313
6371
|
}, children));
|
|
6314
6372
|
};
|
|
6315
6373
|
|
|
@@ -6517,7 +6575,7 @@ const PaginationControls = _ref => {
|
|
|
6517
6575
|
}
|
|
6518
6576
|
});
|
|
6519
6577
|
return React__default.createElement("div", _extends({}, dataProps, {
|
|
6520
|
-
className: styles$
|
|
6578
|
+
className: styles$1n['pagination-controls'],
|
|
6521
6579
|
"data-testid": testId
|
|
6522
6580
|
}), React__default.createElement(Button, {
|
|
6523
6581
|
disabled: !hasPrevious,
|
|
@@ -6547,82 +6605,14 @@ const LINK_TARGET = {
|
|
|
6547
6605
|
BLANK: '_blank'
|
|
6548
6606
|
};
|
|
6549
6607
|
|
|
6550
|
-
var styles$
|
|
6551
|
-
|
|
6552
|
-
/**
|
|
6553
|
-
* This hook checks the background color of the container element
|
|
6554
|
-
* and determines if it's dark or light. It climbs up the DOM tree
|
|
6555
|
-
* to find the first ancestor with a non-transparent background color.
|
|
6556
|
-
*
|
|
6557
|
-
* NOTE: Use this hook only when necessary, as it involves DOM access
|
|
6558
|
-
* and may impact performance.
|
|
6559
|
-
*/
|
|
6560
|
-
const useContainerBackgroundColorCheck = ({
|
|
6561
|
-
ref,
|
|
6562
|
-
shouldCheck
|
|
6563
|
-
}) => {
|
|
6564
|
-
const [background, setBackground] = useState();
|
|
6565
|
-
// Walk up the DOM tree to find the first ancestor with a
|
|
6566
|
-
// non-transparent background color. Fallback to body color.
|
|
6567
|
-
const getEffectiveBackgroundColor = el => {
|
|
6568
|
-
let node = el == null ? void 0 : el.parentElement;
|
|
6569
|
-
while (node) {
|
|
6570
|
-
const bg = window.getComputedStyle(node).getPropertyValue('background-color');
|
|
6571
|
-
// "transparent" or rgba(..., 0) should be ignored
|
|
6572
|
-
const isTransparent = bg === 'transparent' || /rgba\([^)]*,\s*0\)/.test(bg);
|
|
6573
|
-
if (!isTransparent) {
|
|
6574
|
-
return bg;
|
|
6575
|
-
}
|
|
6576
|
-
// Stop climbing at <body> and use its color
|
|
6577
|
-
if (node.tagName.toLowerCase() === 'body') {
|
|
6578
|
-
break;
|
|
6579
|
-
}
|
|
6580
|
-
node = node.parentElement;
|
|
6581
|
-
}
|
|
6582
|
-
const bodyBg = window.getComputedStyle(document.body).getPropertyValue('background-color');
|
|
6583
|
-
return bodyBg;
|
|
6584
|
-
};
|
|
6585
|
-
useLayoutEffect(() => {
|
|
6586
|
-
const element = ref.current;
|
|
6587
|
-
if (!shouldCheck || !element) {
|
|
6588
|
-
return;
|
|
6589
|
-
}
|
|
6590
|
-
const bg = getEffectiveBackgroundColor(element);
|
|
6591
|
-
const rgb = bg.replace(/^rgba?\(|\s+|\)$/g, '').split(',').slice(0, 3).map(Number);
|
|
6592
|
-
const luminance = 0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2];
|
|
6593
|
-
setBackground(luminance < 128 ? 'dark' : 'light');
|
|
6594
|
-
}, [ref, shouldCheck]);
|
|
6595
|
-
return background;
|
|
6596
|
-
};
|
|
6597
|
-
|
|
6598
|
-
const TIME_FORMAT = {
|
|
6599
|
-
FORMAT_24H: '24h',
|
|
6600
|
-
FORMAT_AMPM: 'ampm'
|
|
6601
|
-
};
|
|
6602
|
-
|
|
6603
|
-
const initialValue$1 = {
|
|
6604
|
-
// This country prop is currently used to configure the phone number field
|
|
6605
|
-
country: 'US',
|
|
6606
|
-
// This timeFormat prop is currently used to configure the time format for time fields
|
|
6607
|
-
timeFormat: TIME_FORMAT.FORMAT_AMPM,
|
|
6608
|
-
// Default theme is light, but it will be overridden by the useTheme hook in the SousChefProvider
|
|
6609
|
-
theme: 'light'
|
|
6610
|
-
};
|
|
6611
|
-
const ProviderConfigContext = createContext(initialValue$1);
|
|
6612
|
-
const useProviderConfig = () => {
|
|
6613
|
-
const context = useContext(ProviderConfigContext);
|
|
6614
|
-
if (!context) {
|
|
6615
|
-
throw Error('The `<SousChefProvider>` is not set. Please wrap your application with `<SousChefProvider>`');
|
|
6616
|
-
}
|
|
6617
|
-
return context;
|
|
6618
|
-
};
|
|
6608
|
+
var styles$1l = {"link":"_EiQ4c","link--contrast":"_weJDR"};
|
|
6619
6609
|
|
|
6620
6610
|
const _excluded$t = ["href", "target", "theme", "onClick", "children"];
|
|
6621
6611
|
const Link = _ref => {
|
|
6622
6612
|
let {
|
|
6623
6613
|
href,
|
|
6624
6614
|
target = LINK_TARGET.BLANK,
|
|
6625
|
-
theme,
|
|
6615
|
+
theme = LINK_THEME.PRIMARY,
|
|
6626
6616
|
onClick,
|
|
6627
6617
|
children
|
|
6628
6618
|
} = _ref,
|
|
@@ -6631,24 +6621,10 @@ const Link = _ref => {
|
|
|
6631
6621
|
dataProps
|
|
6632
6622
|
} = getDataProps(otherProps);
|
|
6633
6623
|
const ref = React__default.useRef(null);
|
|
6634
|
-
const {
|
|
6635
|
-
theme: appTheme
|
|
6636
|
-
} = useProviderConfig();
|
|
6637
|
-
const background = useContainerBackgroundColorCheck({
|
|
6638
|
-
ref,
|
|
6639
|
-
// It only needs to check the background when theme is not provided
|
|
6640
|
-
shouldCheck: !theme
|
|
6641
|
-
});
|
|
6642
|
-
let defaultTheme = LINK_THEME.PRIMARY;
|
|
6643
|
-
// If it is light mode and the background is dark we want to use the contrast theme to make sure the link is visible
|
|
6644
|
-
if (appTheme === 'light' && background === 'dark') {
|
|
6645
|
-
defaultTheme = LINK_THEME.CONTRAST;
|
|
6646
|
-
}
|
|
6647
|
-
const currentTheme = theme || defaultTheme;
|
|
6648
6624
|
return React__default.createElement("a", _extends({}, dataProps, {
|
|
6649
|
-
className: classnames(styles$
|
|
6650
|
-
[styles$
|
|
6651
|
-
[styles$
|
|
6625
|
+
className: classnames(styles$1l['link'], {
|
|
6626
|
+
[styles$1l['link--primary']]: theme === LINK_THEME.PRIMARY,
|
|
6627
|
+
[styles$1l['link--contrast']]: theme === LINK_THEME.CONTRAST
|
|
6652
6628
|
}),
|
|
6653
6629
|
href: href,
|
|
6654
6630
|
target: target,
|
|
@@ -6670,7 +6646,7 @@ const DropdownContext = React__default.createContext({
|
|
|
6670
6646
|
});
|
|
6671
6647
|
const useDropdownContext = () => React__default.useContext(DropdownContext);
|
|
6672
6648
|
|
|
6673
|
-
var styles$
|
|
6649
|
+
var styles$1k = {"dropdown-pane":"_sp-pT"};
|
|
6674
6650
|
|
|
6675
6651
|
const DROPDOWN_PANE_PADDING = 14;
|
|
6676
6652
|
const calculateOverlayPosition = (triggerPosition, triggerOffsetHeight, panePosition, alignment) => {
|
|
@@ -6806,8 +6782,8 @@ const PaneOverlay = ({
|
|
|
6806
6782
|
useKeyPress(['Escape'], onToggleDropdown);
|
|
6807
6783
|
const overflow = maxHeight ? 'auto' : undefined;
|
|
6808
6784
|
return React__default.createElement("div", {
|
|
6809
|
-
className: classnames(styles$
|
|
6810
|
-
[styles$
|
|
6785
|
+
className: classnames(styles$1k['dropdown-pane'], {
|
|
6786
|
+
[styles$1k['dropdown-pane--with-padding']]: true
|
|
6811
6787
|
}),
|
|
6812
6788
|
style: _extends({}, position, {
|
|
6813
6789
|
width,
|
|
@@ -6837,7 +6813,7 @@ const getKeyboardFocusableElements = element => {
|
|
|
6837
6813
|
});
|
|
6838
6814
|
};
|
|
6839
6815
|
|
|
6840
|
-
var styles$
|
|
6816
|
+
var styles$1j = {"dropdown__trigger":"_AktVc"};
|
|
6841
6817
|
|
|
6842
6818
|
const DROPDOWN_ALIGNEMNT = {
|
|
6843
6819
|
LEFT: 'left',
|
|
@@ -6848,7 +6824,7 @@ const DROPDOWN_TRIGGER = {
|
|
|
6848
6824
|
CLICK: 'click'
|
|
6849
6825
|
};
|
|
6850
6826
|
|
|
6851
|
-
var styles$
|
|
6827
|
+
var styles$1i = {"label":"_zv4ua","label--truncate":"_FPyID"};
|
|
6852
6828
|
|
|
6853
6829
|
const isEllipsisActive = e => {
|
|
6854
6830
|
return e.offsetWidth < e.scrollWidth;
|
|
@@ -6897,8 +6873,8 @@ const Label = ({
|
|
|
6897
6873
|
const LabelElement = React__default.createElement("label", {
|
|
6898
6874
|
htmlFor: htmlFor,
|
|
6899
6875
|
id: labelId,
|
|
6900
|
-
className: classnames(styles$
|
|
6901
|
-
[styles$
|
|
6876
|
+
className: classnames(styles$1i['label'], {
|
|
6877
|
+
[styles$1i['label--truncate']]: shouldTruncate
|
|
6902
6878
|
})
|
|
6903
6879
|
}, children);
|
|
6904
6880
|
if (showTooltip) {
|
|
@@ -6910,7 +6886,7 @@ const Label = ({
|
|
|
6910
6886
|
return LabelElement;
|
|
6911
6887
|
};
|
|
6912
6888
|
|
|
6913
|
-
var styles$
|
|
6889
|
+
var styles$1h = {"caption":"_Qrxg5"};
|
|
6914
6890
|
|
|
6915
6891
|
const Caption = ({
|
|
6916
6892
|
fieldId,
|
|
@@ -6918,11 +6894,11 @@ const Caption = ({
|
|
|
6918
6894
|
}) => {
|
|
6919
6895
|
return React__default.createElement("div", {
|
|
6920
6896
|
id: fieldId && `${fieldId}-describer`,
|
|
6921
|
-
className: styles$
|
|
6897
|
+
className: styles$1h['caption']
|
|
6922
6898
|
}, children);
|
|
6923
6899
|
};
|
|
6924
6900
|
|
|
6925
|
-
var styles$
|
|
6901
|
+
var styles$1g = {"error-message":"_eS4YO"};
|
|
6926
6902
|
|
|
6927
6903
|
const ErrorMessage = ({
|
|
6928
6904
|
fieldId,
|
|
@@ -6931,7 +6907,7 @@ const ErrorMessage = ({
|
|
|
6931
6907
|
}) => {
|
|
6932
6908
|
return React__default.createElement("div", {
|
|
6933
6909
|
id: fieldId && `${fieldId}-error-message`,
|
|
6934
|
-
className: styles$
|
|
6910
|
+
className: styles$1g['error-message'],
|
|
6935
6911
|
"data-testid": testId
|
|
6936
6912
|
}, React__default.createElement(Inline, {
|
|
6937
6913
|
space: 8,
|
|
@@ -6968,7 +6944,7 @@ const ALIGNMENTS = {
|
|
|
6968
6944
|
JUSTIFY: 'justify'
|
|
6969
6945
|
};
|
|
6970
6946
|
|
|
6971
|
-
var styles$
|
|
6947
|
+
var styles$1f = {"text":"_6SgoN","text--bold":"_i2LHD","text__body":"_SF95f","text__caption":"_HHohB","text__insight":"_xdhK0","text__span":"_yZbuO","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"};
|
|
6972
6948
|
|
|
6973
6949
|
const _excluded$s = ["children", "as", "emphasis", "alignment", "color", "testId", "textWrap"];
|
|
6974
6950
|
const TextComponent = (_ref, ref) => {
|
|
@@ -6996,21 +6972,21 @@ const TextComponent = (_ref, ref) => {
|
|
|
6996
6972
|
color: getColor(color),
|
|
6997
6973
|
textWrap
|
|
6998
6974
|
}, positionStyles),
|
|
6999
|
-
className: classnames(styles$
|
|
7000
|
-
[styles$
|
|
7001
|
-
[styles$
|
|
7002
|
-
[styles$
|
|
7003
|
-
[styles$
|
|
7004
|
-
[styles$
|
|
7005
|
-
[styles$
|
|
7006
|
-
[styles$
|
|
7007
|
-
[styles$
|
|
7008
|
-
[styles$
|
|
7009
|
-
[styles$
|
|
7010
|
-
[styles$
|
|
7011
|
-
[styles$
|
|
7012
|
-
[styles$
|
|
7013
|
-
[styles$
|
|
6975
|
+
className: classnames(styles$1f['text'], {
|
|
6976
|
+
[styles$1f['text--bold']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.BOLD),
|
|
6977
|
+
[styles$1f['text--italic']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.ITALIC),
|
|
6978
|
+
[styles$1f['text--underline']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.UNDERLINE),
|
|
6979
|
+
[styles$1f['text--dotted-underline']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.DOTTED_UNDERLINE),
|
|
6980
|
+
[styles$1f['text--monospace']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.MONOSPACE),
|
|
6981
|
+
[styles$1f['text--line-through']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.STRIKETHROUGH),
|
|
6982
|
+
[styles$1f['text--align-left']]: alignment === ALIGNMENTS.LEFT,
|
|
6983
|
+
[styles$1f['text--align-right']]: alignment === ALIGNMENTS.RIGHT,
|
|
6984
|
+
[styles$1f['text--align-center']]: alignment === ALIGNMENTS.CENTER,
|
|
6985
|
+
[styles$1f['text--align-justify']]: alignment === ALIGNMENTS.JUSTIFY,
|
|
6986
|
+
[styles$1f['text__body']]: as === TEXT_TYPES.BODY,
|
|
6987
|
+
[styles$1f['text__insight']]: as === TEXT_TYPES.INSIGHT,
|
|
6988
|
+
[styles$1f['text__caption']]: as === TEXT_TYPES.CAPTION,
|
|
6989
|
+
[styles$1f['text__span']]: as === TEXT_TYPES.SPAN
|
|
7014
6990
|
}),
|
|
7015
6991
|
'data-testid': testId
|
|
7016
6992
|
}, dataProps, other, {
|
|
@@ -7027,7 +7003,7 @@ const Bold = ({
|
|
|
7027
7003
|
children
|
|
7028
7004
|
}) => {
|
|
7029
7005
|
return React__default.createElement("span", {
|
|
7030
|
-
className: classnames(styles$
|
|
7006
|
+
className: classnames(styles$1f['text--bold'], styles$1f['text'])
|
|
7031
7007
|
}, children);
|
|
7032
7008
|
};
|
|
7033
7009
|
|
|
@@ -7035,7 +7011,7 @@ const Underline = ({
|
|
|
7035
7011
|
children
|
|
7036
7012
|
}) => {
|
|
7037
7013
|
return React__default.createElement("span", {
|
|
7038
|
-
className: classnames(styles$
|
|
7014
|
+
className: classnames(styles$1f['text--underline'], styles$1f['text'])
|
|
7039
7015
|
}, children);
|
|
7040
7016
|
};
|
|
7041
7017
|
|
|
@@ -7043,7 +7019,7 @@ const Italic = ({
|
|
|
7043
7019
|
children
|
|
7044
7020
|
}) => {
|
|
7045
7021
|
return React__default.createElement("span", {
|
|
7046
|
-
className: classnames(styles$
|
|
7022
|
+
className: classnames(styles$1f['text--italic'], styles$1f['text'])
|
|
7047
7023
|
}, children);
|
|
7048
7024
|
};
|
|
7049
7025
|
|
|
@@ -7180,7 +7156,7 @@ const useFieldControllers = ({
|
|
|
7180
7156
|
return controllers;
|
|
7181
7157
|
};
|
|
7182
7158
|
|
|
7183
|
-
var styles$
|
|
7159
|
+
var styles$1e = {"text-field":"_G6LsE","text-field--invalid":"_2ZYtt","text-field--prefixed":"_rWp7H","text-field--suffixed":"_Xq8xX"};
|
|
7184
7160
|
|
|
7185
7161
|
const _excluded$q = ["autoComplete", "autoFocus", "defaultValue", "disabled", "error", "id", "maxLength", "name", "caption", "label", "onBlur", "onChange", "onFocus", "onKeyDown", "placeholder", "value", "ref", "testId"];
|
|
7186
7162
|
const useTextField = _ref => {
|
|
@@ -7221,8 +7197,8 @@ const useTextField = _ref => {
|
|
|
7221
7197
|
'aria-invalid': hasError,
|
|
7222
7198
|
autoComplete,
|
|
7223
7199
|
autoFocus,
|
|
7224
|
-
className: classnames(styles$
|
|
7225
|
-
[styles$
|
|
7200
|
+
className: classnames(styles$1e['text-field'], {
|
|
7201
|
+
[styles$1e['text-field--invalid']]: hasError
|
|
7226
7202
|
}),
|
|
7227
7203
|
'data-testid': testId,
|
|
7228
7204
|
disabled,
|
|
@@ -7253,7 +7229,7 @@ const useTextField = _ref => {
|
|
|
7253
7229
|
};
|
|
7254
7230
|
};
|
|
7255
7231
|
|
|
7256
|
-
var styles$
|
|
7232
|
+
var styles$1d = {"affix-container":"_F8QOB","prefix":"_yPPIy","suffix":"_Y3yFd","affix-container--prefixed":"_vU4SU","affix-container--suffixed":"_4rDXi"};
|
|
7257
7233
|
|
|
7258
7234
|
const AffixContainer = ({
|
|
7259
7235
|
prefix,
|
|
@@ -7288,23 +7264,28 @@ const AffixContainer = ({
|
|
|
7288
7264
|
if (!hasPrefix && !hasSuffix) {
|
|
7289
7265
|
return children;
|
|
7290
7266
|
}
|
|
7291
|
-
const classes = classnames(styles$
|
|
7292
|
-
[styles$
|
|
7293
|
-
[styles$
|
|
7267
|
+
const classes = classnames(styles$1d['affix-container'], {
|
|
7268
|
+
[styles$1d['affix-container--prefixed']]: hasPrefix,
|
|
7269
|
+
[styles$1d['affix-container--suffixed']]: hasSuffix
|
|
7294
7270
|
});
|
|
7295
7271
|
return React__default.createElement("div", {
|
|
7296
7272
|
className: classes,
|
|
7297
7273
|
ref: container,
|
|
7298
7274
|
"data-testid": testId
|
|
7299
7275
|
}, hasPrefix && React__default.createElement("div", {
|
|
7300
|
-
className: styles$
|
|
7276
|
+
className: styles$1d['prefix'],
|
|
7301
7277
|
ref: prefixElement
|
|
7302
7278
|
}, prefix), children, hasSuffix && React__default.createElement("div", {
|
|
7303
|
-
className: styles$
|
|
7279
|
+
className: styles$1d['suffix'],
|
|
7304
7280
|
ref: suffixElement
|
|
7305
7281
|
}, suffix));
|
|
7306
7282
|
};
|
|
7307
7283
|
|
|
7284
|
+
const TIME_FORMAT = {
|
|
7285
|
+
FORMAT_24H: '24h',
|
|
7286
|
+
FORMAT_AMPM: 'ampm'
|
|
7287
|
+
};
|
|
7288
|
+
|
|
7308
7289
|
const TimeFieldInput = ({
|
|
7309
7290
|
inputProps,
|
|
7310
7291
|
allOtherProps,
|
|
@@ -7502,7 +7483,7 @@ const Dropdown = ({
|
|
|
7502
7483
|
paneRef
|
|
7503
7484
|
}
|
|
7504
7485
|
}, triggerIsKnownButton ? React__default.cloneElement(trigger, _extends({}, trigger.props, triggerProps)) : React__default.createElement("button", _extends({}, triggerProps, {
|
|
7505
|
-
className: styles$
|
|
7486
|
+
className: styles$1j['dropdown__trigger'],
|
|
7506
7487
|
ref: updatedRef,
|
|
7507
7488
|
onFocus: handleFocus
|
|
7508
7489
|
}), trigger), React__default.createElement(DropdownPane, {
|
|
@@ -7516,7 +7497,7 @@ const Dropdown = ({
|
|
|
7516
7497
|
}, children));
|
|
7517
7498
|
};
|
|
7518
7499
|
|
|
7519
|
-
var styles$
|
|
7500
|
+
var styles$1c = {"dropdown-list":"_91hvH","dropdown-list__item":"_NrB4V","dropdown-list__item--hover":"_aMs9c"};
|
|
7520
7501
|
|
|
7521
7502
|
const findNextActiveIndex = (items, startAt) => {
|
|
7522
7503
|
let startIndex = 0;
|
|
@@ -7557,16 +7538,16 @@ const findPreviousEnabledIndex = (items, startAt) => {
|
|
|
7557
7538
|
|
|
7558
7539
|
const useListKeyboardNavigation = (listItems, listReference, actions) => {
|
|
7559
7540
|
const [focusedItem, setFocusedItem] = useState(null);
|
|
7560
|
-
const focusOnNextItem = callback => {
|
|
7541
|
+
const focusOnNextItem = useCallback(callback => {
|
|
7561
7542
|
const nextFocusItem = findNextActiveIndex(listItems, focusedItem);
|
|
7562
7543
|
setFocusedItem(nextFocusItem);
|
|
7563
7544
|
callback(nextFocusItem);
|
|
7564
|
-
};
|
|
7565
|
-
const focusOnPrevItem = callback => {
|
|
7545
|
+
}, [listItems, focusedItem]);
|
|
7546
|
+
const focusOnPrevItem = useCallback(callback => {
|
|
7566
7547
|
const prevFocusItem = findPreviousEnabledIndex(listItems, focusedItem || 0);
|
|
7567
7548
|
setFocusedItem(prevFocusItem);
|
|
7568
7549
|
callback(prevFocusItem);
|
|
7569
|
-
};
|
|
7550
|
+
}, [listItems, focusedItem]);
|
|
7570
7551
|
const setFocusOnItem = index => {
|
|
7571
7552
|
if (index < 0) {
|
|
7572
7553
|
setFocusedItem(null);
|
|
@@ -7578,28 +7559,78 @@ const useListKeyboardNavigation = (listItems, listReference, actions) => {
|
|
|
7578
7559
|
setFocusedItem(index);
|
|
7579
7560
|
};
|
|
7580
7561
|
const handleKeyPress = useCallback(event => {
|
|
7581
|
-
|
|
7562
|
+
const getSubmenuStatus = () => {
|
|
7563
|
+
var _listReference$curren;
|
|
7564
|
+
if (focusedItem === null) {
|
|
7565
|
+
return 'closed';
|
|
7566
|
+
}
|
|
7567
|
+
const itemElement = (_listReference$curren = listReference.current) == null || (_listReference$curren = _listReference$curren.children.item(focusedItem)) == null ? void 0 : _listReference$curren.firstElementChild;
|
|
7568
|
+
if ((itemElement == null ? void 0 : itemElement.getAttribute('data-submenu-status')) === 'open') {
|
|
7569
|
+
return 'open';
|
|
7570
|
+
}
|
|
7571
|
+
return 'closed';
|
|
7572
|
+
};
|
|
7573
|
+
const submenuStatus = getSubmenuStatus();
|
|
7574
|
+
if (event.key === 'ArrowDown' && submenuStatus === 'closed') {
|
|
7582
7575
|
focusOnNextItem(focusItem => actions == null || actions.onNavigate == null ? void 0 : actions.onNavigate(focusItem));
|
|
7583
7576
|
}
|
|
7584
|
-
if (event.key === 'ArrowUp') {
|
|
7577
|
+
if (event.key === 'ArrowUp' && submenuStatus === 'closed') {
|
|
7585
7578
|
focusOnPrevItem(focusItem => actions == null || actions.onNavigate == null ? void 0 : actions.onNavigate(focusItem));
|
|
7586
7579
|
}
|
|
7580
|
+
if (event.key === 'ArrowRight' && focusedItem !== null) {
|
|
7581
|
+
const {
|
|
7582
|
+
submenu
|
|
7583
|
+
} = listItems[focusedItem];
|
|
7584
|
+
if (submenu) {
|
|
7585
|
+
var _listReference$curren2, _itemElement$firstEle;
|
|
7586
|
+
const itemElement = (_listReference$curren2 = listReference.current) == null ? void 0 : _listReference$curren2.children.item(focusedItem);
|
|
7587
|
+
itemElement == null || (_itemElement$firstEle = itemElement.firstElementChild) == null || _itemElement$firstEle.click();
|
|
7588
|
+
}
|
|
7589
|
+
}
|
|
7590
|
+
if (event.key === 'ArrowLeft' && focusedItem !== null) {
|
|
7591
|
+
const {
|
|
7592
|
+
submenu
|
|
7593
|
+
} = listItems[focusedItem];
|
|
7594
|
+
if (submenu) {
|
|
7595
|
+
var _listReference$curren3;
|
|
7596
|
+
const itemElement = (_listReference$curren3 = listReference.current) == null ? void 0 : _listReference$curren3.children.item(focusedItem);
|
|
7597
|
+
const openSubmenus = itemElement.querySelectorAll('[data-submenu-status="open"]');
|
|
7598
|
+
// It should close the submenu if there is only one open submenu, otherwise it should focus on the parent item
|
|
7599
|
+
if (openSubmenus.length === 1) {
|
|
7600
|
+
var _itemElement$firstEle2;
|
|
7601
|
+
itemElement == null || (_itemElement$firstEle2 = itemElement.firstElementChild) == null || _itemElement$firstEle2.dispatchEvent(new CustomEvent('closeSubmenu', {
|
|
7602
|
+
bubbles: true
|
|
7603
|
+
}));
|
|
7604
|
+
}
|
|
7605
|
+
}
|
|
7606
|
+
}
|
|
7587
7607
|
if (event.key === 'Enter' && focusedItem !== null) {
|
|
7608
|
+
var _listReference$curren4;
|
|
7588
7609
|
const {
|
|
7589
7610
|
onClick,
|
|
7590
|
-
href
|
|
7611
|
+
href,
|
|
7612
|
+
submenu
|
|
7591
7613
|
} = listItems[focusedItem];
|
|
7592
7614
|
onClick && onClick(event);
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7615
|
+
const itemElement = (_listReference$curren4 = listReference.current) == null ? void 0 : _listReference$curren4.children.item(focusedItem);
|
|
7616
|
+
if (submenu) {
|
|
7617
|
+
var _itemElement$firstEle3;
|
|
7618
|
+
itemElement == null || (_itemElement$firstEle3 = itemElement.firstElementChild) == null || _itemElement$firstEle3.click();
|
|
7619
|
+
} else {
|
|
7620
|
+
var _itemElement$firstEle4;
|
|
7621
|
+
if (href && listReference.current) {
|
|
7622
|
+
var _listReference$curren5;
|
|
7623
|
+
const linkItem = (_listReference$curren5 = listReference.current.children.item(focusedItem)) == null ? void 0 : _listReference$curren5.querySelector('a');
|
|
7624
|
+
linkItem && linkItem.click();
|
|
7625
|
+
}
|
|
7626
|
+
if ((itemElement == null || (_itemElement$firstEle4 = itemElement.firstElementChild) == null ? void 0 : _itemElement$firstEle4.getAttribute('data-selectable')) === 'false') {
|
|
7627
|
+
actions && (actions.onPressEnter == null ? void 0 : actions.onPressEnter());
|
|
7628
|
+
}
|
|
7597
7629
|
}
|
|
7598
|
-
actions && (actions.onPressEnter == null ? void 0 : actions.onPressEnter());
|
|
7599
7630
|
}
|
|
7600
7631
|
event.preventDefault();
|
|
7601
|
-
}, [focusedItem]);
|
|
7602
|
-
useKeyPress(['ArrowDown', 'ArrowUp', 'Enter'], handleKeyPress);
|
|
7632
|
+
}, [actions, focusOnNextItem, focusOnPrevItem, focusedItem, listItems, listReference]);
|
|
7633
|
+
useKeyPress(['ArrowDown', 'ArrowUp', 'ArrowRight', 'ArrowLeft', 'Enter'], handleKeyPress);
|
|
7603
7634
|
return {
|
|
7604
7635
|
focusedItem,
|
|
7605
7636
|
setFocusOnItem
|
|
@@ -7616,18 +7647,136 @@ const checkIsComponent = (element, config) => {
|
|
|
7616
7647
|
return isComponent;
|
|
7617
7648
|
};
|
|
7618
7649
|
|
|
7619
|
-
var styles$
|
|
7650
|
+
var styles$1b = {"dropdown-list-divider":"_ISJ4M"};
|
|
7620
7651
|
|
|
7621
7652
|
const DropdownListDivider = ({
|
|
7622
7653
|
testId
|
|
7623
7654
|
}) => {
|
|
7624
7655
|
return React__default.createElement("div", {
|
|
7625
|
-
className: styles$
|
|
7656
|
+
className: styles$1b['dropdown-list-divider'],
|
|
7626
7657
|
"data-testid": testId
|
|
7627
7658
|
});
|
|
7628
7659
|
};
|
|
7629
7660
|
|
|
7630
|
-
var styles$
|
|
7661
|
+
var styles$1a = {"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"};
|
|
7662
|
+
|
|
7663
|
+
var styles$19 = {"dropdown-submenu":"_X4fIx"};
|
|
7664
|
+
|
|
7665
|
+
const DropdownSubmenu = forwardRef(({
|
|
7666
|
+
children,
|
|
7667
|
+
direction,
|
|
7668
|
+
openSubmenu,
|
|
7669
|
+
position
|
|
7670
|
+
}, ref) => {
|
|
7671
|
+
const DEFAULT_POSITION = {
|
|
7672
|
+
top: -9999,
|
|
7673
|
+
left: -9999,
|
|
7674
|
+
visibility: 'hidden'
|
|
7675
|
+
};
|
|
7676
|
+
return React__default.createElement("div", {
|
|
7677
|
+
className: styles$19['dropdown-submenu'],
|
|
7678
|
+
"data-submenu-direction": direction,
|
|
7679
|
+
style: position || DEFAULT_POSITION,
|
|
7680
|
+
onMouseEnter: openSubmenu,
|
|
7681
|
+
onFocus: openSubmenu,
|
|
7682
|
+
ref: ref
|
|
7683
|
+
}, children);
|
|
7684
|
+
});
|
|
7685
|
+
|
|
7686
|
+
const useSubmenu = ({
|
|
7687
|
+
hasSubmenu,
|
|
7688
|
+
disabled
|
|
7689
|
+
}) => {
|
|
7690
|
+
const [isSubmenuOpen, setIsSubmenuOpen] = useState(false);
|
|
7691
|
+
const [submenuDirection, setSubmenuDirection] = useState('right');
|
|
7692
|
+
const [submenuPosition, setSubmenuPosition] = useState(null);
|
|
7693
|
+
const itemRef = useRef(null);
|
|
7694
|
+
const submenuRef = useRef(null);
|
|
7695
|
+
const closeSubmenuTimeoutRef = useRef(null);
|
|
7696
|
+
const clearCloseSubmenuTimer = () => {
|
|
7697
|
+
if (closeSubmenuTimeoutRef.current !== null) {
|
|
7698
|
+
window.clearTimeout(closeSubmenuTimeoutRef.current);
|
|
7699
|
+
closeSubmenuTimeoutRef.current = null;
|
|
7700
|
+
}
|
|
7701
|
+
};
|
|
7702
|
+
const scheduleCloseSubmenu = useCallback(() => {
|
|
7703
|
+
clearCloseSubmenuTimer();
|
|
7704
|
+
closeSubmenuTimeoutRef.current = window.setTimeout(() => {
|
|
7705
|
+
setIsSubmenuOpen(false);
|
|
7706
|
+
}, 120);
|
|
7707
|
+
}, []);
|
|
7708
|
+
const closePreviouslyOpenSubmenus = () => {
|
|
7709
|
+
var _itemRef$current;
|
|
7710
|
+
const parent = (_itemRef$current = itemRef.current) == null || (_itemRef$current = _itemRef$current.parentElement) == null ? void 0 : _itemRef$current.parentElement;
|
|
7711
|
+
if (!parent) {
|
|
7712
|
+
return;
|
|
7713
|
+
}
|
|
7714
|
+
const openSubmenus = parent.querySelectorAll('[data-submenu-status="open"]');
|
|
7715
|
+
if (openSubmenus.length > 0) {
|
|
7716
|
+
const firstOpenSubmenu = openSubmenus[0];
|
|
7717
|
+
firstOpenSubmenu.dispatchEvent(new CustomEvent('closeSubmenu', {
|
|
7718
|
+
bubbles: false
|
|
7719
|
+
}));
|
|
7720
|
+
}
|
|
7721
|
+
};
|
|
7722
|
+
const setSubmenuOpen = () => {
|
|
7723
|
+
closePreviouslyOpenSubmenus();
|
|
7724
|
+
if (!hasSubmenu || disabled) {
|
|
7725
|
+
return;
|
|
7726
|
+
}
|
|
7727
|
+
clearCloseSubmenuTimer();
|
|
7728
|
+
setIsSubmenuOpen(true);
|
|
7729
|
+
};
|
|
7730
|
+
const updateSubmenuPosition = useCallback(() => {
|
|
7731
|
+
var _itemRef$current$pare;
|
|
7732
|
+
if (!isSubmenuOpen || !itemRef.current || !submenuRef.current) {
|
|
7733
|
+
return;
|
|
7734
|
+
}
|
|
7735
|
+
const VIEWPORT_PADDING = 8;
|
|
7736
|
+
const SUBMENU_GAP = 16;
|
|
7737
|
+
const itemRect = itemRef.current.getBoundingClientRect();
|
|
7738
|
+
const submenuRect = submenuRef.current.getBoundingClientRect();
|
|
7739
|
+
const inheritedDirection = (_itemRef$current$pare = itemRef.current.parentElement) == null || (_itemRef$current$pare = _itemRef$current$pare.closest('[data-submenu-direction]')) == null ? void 0 : _itemRef$current$pare.getAttribute('data-submenu-direction');
|
|
7740
|
+
const preferredDirection = inheritedDirection === 'left' ? 'left' : 'right';
|
|
7741
|
+
const canOpenOnRight = itemRect.right + SUBMENU_GAP + submenuRect.width <= window.innerWidth - VIEWPORT_PADDING;
|
|
7742
|
+
const canOpenOnLeft = itemRect.left - SUBMENU_GAP - submenuRect.width >= VIEWPORT_PADDING;
|
|
7743
|
+
const shouldOpenOnRight = preferredDirection === 'right' ? canOpenOnRight : !canOpenOnLeft;
|
|
7744
|
+
setSubmenuDirection(shouldOpenOnRight ? 'right' : 'left');
|
|
7745
|
+
const left = shouldOpenOnRight ? itemRect.right + SUBMENU_GAP : Math.max(VIEWPORT_PADDING, itemRect.left - submenuRect.width - SUBMENU_GAP);
|
|
7746
|
+
const maxTop = Math.max(VIEWPORT_PADDING, window.innerHeight - submenuRect.height - VIEWPORT_PADDING);
|
|
7747
|
+
const top = Math.min(Math.max(VIEWPORT_PADDING, itemRect.top - VIEWPORT_PADDING), maxTop);
|
|
7748
|
+
setSubmenuPosition({
|
|
7749
|
+
top,
|
|
7750
|
+
left
|
|
7751
|
+
});
|
|
7752
|
+
}, [isSubmenuOpen]);
|
|
7753
|
+
useLayoutEffect(() => {
|
|
7754
|
+
if (!isSubmenuOpen) {
|
|
7755
|
+
return;
|
|
7756
|
+
}
|
|
7757
|
+
updateSubmenuPosition();
|
|
7758
|
+
window.addEventListener('resize', updateSubmenuPosition);
|
|
7759
|
+
window.addEventListener('scroll', updateSubmenuPosition, true);
|
|
7760
|
+
return () => {
|
|
7761
|
+
window.removeEventListener('resize', updateSubmenuPosition);
|
|
7762
|
+
window.removeEventListener('scroll', updateSubmenuPosition, true);
|
|
7763
|
+
};
|
|
7764
|
+
}, [isSubmenuOpen, updateSubmenuPosition]);
|
|
7765
|
+
useEffect(() => {
|
|
7766
|
+
return () => {
|
|
7767
|
+
clearCloseSubmenuTimer();
|
|
7768
|
+
};
|
|
7769
|
+
}, []);
|
|
7770
|
+
return {
|
|
7771
|
+
submenuPosition,
|
|
7772
|
+
submenuDirection,
|
|
7773
|
+
closeSubmenu: scheduleCloseSubmenu,
|
|
7774
|
+
openSubmenu: setSubmenuOpen,
|
|
7775
|
+
itemRef,
|
|
7776
|
+
submenuRef,
|
|
7777
|
+
isOpen: isSubmenuOpen
|
|
7778
|
+
};
|
|
7779
|
+
};
|
|
7631
7780
|
|
|
7632
7781
|
const DropdownListItem = ({
|
|
7633
7782
|
onClick,
|
|
@@ -7640,42 +7789,80 @@ const DropdownListItem = ({
|
|
|
7640
7789
|
children,
|
|
7641
7790
|
href,
|
|
7642
7791
|
target: _target = LINK_TARGET.SELF,
|
|
7643
|
-
reloadDocument: _reloadDocument = false
|
|
7792
|
+
reloadDocument: _reloadDocument = false,
|
|
7793
|
+
submenu,
|
|
7794
|
+
// @ts-expect-error - This is an internal prop used to determine if the DropdownListItem is being used within a DropdownListItemSelectable, it is not meant to be set by users of the component
|
|
7795
|
+
isSelectable: _isSelectable = false
|
|
7644
7796
|
}) => {
|
|
7645
7797
|
const {
|
|
7646
7798
|
onToggleDropdown
|
|
7647
7799
|
} = useDropdownContext();
|
|
7800
|
+
const {
|
|
7801
|
+
closeSubmenu,
|
|
7802
|
+
openSubmenu,
|
|
7803
|
+
submenuPosition,
|
|
7804
|
+
submenuDirection,
|
|
7805
|
+
itemRef,
|
|
7806
|
+
submenuRef,
|
|
7807
|
+
isOpen
|
|
7808
|
+
} = useSubmenu({
|
|
7809
|
+
hasSubmenu: !!submenu,
|
|
7810
|
+
disabled
|
|
7811
|
+
});
|
|
7812
|
+
useEffect(() => {
|
|
7813
|
+
const itemElement = itemRef.current;
|
|
7814
|
+
if (!itemElement) {
|
|
7815
|
+
return;
|
|
7816
|
+
}
|
|
7817
|
+
const handleCloseSubmenu = () => {
|
|
7818
|
+
closeSubmenu();
|
|
7819
|
+
};
|
|
7820
|
+
itemElement.addEventListener('closeSubmenu', handleCloseSubmenu);
|
|
7821
|
+
return () => {
|
|
7822
|
+
itemElement.removeEventListener('closeSubmenu', handleCloseSubmenu);
|
|
7823
|
+
};
|
|
7824
|
+
}, [itemRef, closeSubmenu]);
|
|
7648
7825
|
const handleClick = e => {
|
|
7649
7826
|
e.stopPropagation();
|
|
7650
7827
|
if (disabled) {
|
|
7651
7828
|
return;
|
|
7652
7829
|
}
|
|
7653
|
-
|
|
7830
|
+
if (!!submenu) {
|
|
7831
|
+
openSubmenu();
|
|
7832
|
+
return;
|
|
7833
|
+
}
|
|
7834
|
+
if (!_isSelectable) {
|
|
7835
|
+
onToggleDropdown();
|
|
7836
|
+
}
|
|
7654
7837
|
onClick && onClick(e);
|
|
7655
7838
|
};
|
|
7656
7839
|
const childrenContainer = React__default.createElement("div", {
|
|
7657
|
-
className: styles$
|
|
7840
|
+
className: styles$1a['dropdown-list-item__container']
|
|
7658
7841
|
}, prefix && React__default.createElement("div", {
|
|
7659
|
-
className: styles$
|
|
7842
|
+
className: styles$1a['dropdown-list-item__prefix']
|
|
7660
7843
|
}, prefix), React__default.createElement("div", {
|
|
7661
|
-
className: styles$
|
|
7844
|
+
className: styles$1a['dropdown-list-item__content']
|
|
7662
7845
|
}, React__default.createElement(Stack, {
|
|
7663
|
-
space:
|
|
7846
|
+
space: 0,
|
|
7664
7847
|
flex: [1]
|
|
7665
7848
|
}, children, caption && React__default.createElement("div", {
|
|
7666
|
-
className: styles$
|
|
7667
|
-
}, caption))), suffix && React__default.createElement("div", {
|
|
7668
|
-
className: styles$
|
|
7669
|
-
}, suffix
|
|
7849
|
+
className: styles$1a['dropdown-list-item__caption']
|
|
7850
|
+
}, caption))), (suffix || submenu) && React__default.createElement("div", {
|
|
7851
|
+
className: styles$1a['dropdown-list-item__suffix']
|
|
7852
|
+
}, suffix, submenu && !suffix && React__default.createElement("div", {
|
|
7853
|
+
className: styles$1a['dropdown-list-item__suffix-spot']
|
|
7854
|
+
}), submenu && React__default.createElement(IconChevronRight, {
|
|
7855
|
+
size: "small"
|
|
7856
|
+
})));
|
|
7670
7857
|
const linkItem = href && (_reloadDocument ? React__default.createElement("a", {
|
|
7671
7858
|
href: href,
|
|
7672
|
-
className: styles$
|
|
7859
|
+
className: styles$1a['dropdown-list-item__link'],
|
|
7673
7860
|
target: _target,
|
|
7674
7861
|
tabIndex: -1
|
|
7675
7862
|
}, childrenContainer) : React__default.createElement(Link$1, {
|
|
7676
7863
|
to: href,
|
|
7677
7864
|
target: _target,
|
|
7678
|
-
className: styles$
|
|
7865
|
+
className: styles$1a['dropdown-list-item__link'],
|
|
7679
7866
|
reloadDocument: false,
|
|
7680
7867
|
tabIndex: -1,
|
|
7681
7868
|
"data-testid": testId
|
|
@@ -7683,18 +7870,56 @@ const DropdownListItem = ({
|
|
|
7683
7870
|
return (
|
|
7684
7871
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
7685
7872
|
React__default.createElement("div", {
|
|
7686
|
-
className: classnames(styles$
|
|
7687
|
-
[styles$
|
|
7688
|
-
[styles$
|
|
7873
|
+
className: classnames(styles$1a['dropdown-list-item'], {
|
|
7874
|
+
[styles$1a['dropdown-list-item--selected']]: selected,
|
|
7875
|
+
[styles$1a['dropdown-list-item--disabled']]: disabled
|
|
7689
7876
|
}),
|
|
7690
7877
|
onMouseDown: e => e.preventDefault(),
|
|
7691
7878
|
onClick: handleClick,
|
|
7692
7879
|
onKeyPress: handleClick,
|
|
7693
|
-
|
|
7694
|
-
|
|
7880
|
+
onMouseEnter: openSubmenu,
|
|
7881
|
+
"data-testid": testId,
|
|
7882
|
+
ref: itemRef,
|
|
7883
|
+
"data-submenu-status": submenu && isOpen && !disabled ? 'open' : 'closed',
|
|
7884
|
+
"data-selectable": _isSelectable ? 'true' : 'false'
|
|
7885
|
+
}, href ? linkItem : childrenContainer, submenu && isOpen && !disabled && React__default.createElement(DropdownSubmenu, {
|
|
7886
|
+
position: submenuPosition,
|
|
7887
|
+
direction: submenuDirection,
|
|
7888
|
+
openSubmenu: openSubmenu,
|
|
7889
|
+
ref: submenuRef
|
|
7890
|
+
}, submenu))
|
|
7695
7891
|
);
|
|
7696
7892
|
};
|
|
7697
7893
|
|
|
7894
|
+
const DropdownListItemSelectable = ({
|
|
7895
|
+
onClick,
|
|
7896
|
+
caption,
|
|
7897
|
+
selected,
|
|
7898
|
+
disabled,
|
|
7899
|
+
testId,
|
|
7900
|
+
children
|
|
7901
|
+
}) => {
|
|
7902
|
+
return React__default.createElement(DropdownListItem, {
|
|
7903
|
+
onClick: onClick,
|
|
7904
|
+
caption: caption,
|
|
7905
|
+
selected: selected,
|
|
7906
|
+
disabled: disabled,
|
|
7907
|
+
testId: testId,
|
|
7908
|
+
prefix: selected ? React__default.createElement(IconCheckCircle, {
|
|
7909
|
+
size: "medium",
|
|
7910
|
+
color: COLORS['primary-color']
|
|
7911
|
+
}) : React__default.createElement("div", {
|
|
7912
|
+
style: {
|
|
7913
|
+
visibility: 'hidden'
|
|
7914
|
+
}
|
|
7915
|
+
}, React__default.createElement(IconMinus, {
|
|
7916
|
+
size: "medium"
|
|
7917
|
+
})),
|
|
7918
|
+
// @ts-expect-error - This is an internal prop used to determine if the DropdownListItem is being used within a DropdownListItemSelectable, it is not meant to be set by users of the component
|
|
7919
|
+
isSelectable: true
|
|
7920
|
+
}, children);
|
|
7921
|
+
};
|
|
7922
|
+
|
|
7698
7923
|
const canInteractWithItem = child => {
|
|
7699
7924
|
const itemType = getItemType(child);
|
|
7700
7925
|
if (itemType === 'DropdownListDivider') {
|
|
@@ -7711,13 +7936,20 @@ const getItemType = child => {
|
|
|
7711
7936
|
component: DropdownListItem,
|
|
7712
7937
|
displayName: 'DropdownListItem'
|
|
7713
7938
|
});
|
|
7939
|
+
const isDropdownListItemSelectable = checkIsComponent(child, {
|
|
7940
|
+
component: DropdownListItemSelectable,
|
|
7941
|
+
displayName: 'DropdownListItemSelectable'
|
|
7942
|
+
});
|
|
7714
7943
|
if (isDropdownListDivider) {
|
|
7715
7944
|
return 'DropdownListDivider';
|
|
7716
7945
|
}
|
|
7717
7946
|
if (isDropdownListItem) {
|
|
7718
7947
|
return 'DropdownListItem';
|
|
7719
7948
|
}
|
|
7720
|
-
|
|
7949
|
+
if (isDropdownListItemSelectable) {
|
|
7950
|
+
return 'DropdownListItemSelectable';
|
|
7951
|
+
}
|
|
7952
|
+
throw new Error('DropdownList - dropdown items should be using DropdownListDivider, DropdownListItem or DropdownListItemSelectable components');
|
|
7721
7953
|
};
|
|
7722
7954
|
|
|
7723
7955
|
const DropdownList = ({
|
|
@@ -7735,7 +7967,8 @@ const DropdownList = ({
|
|
|
7735
7967
|
return {
|
|
7736
7968
|
disabled: !canInteractWithItem(child),
|
|
7737
7969
|
onClick: child.props.onClick,
|
|
7738
|
-
href: child.props.href
|
|
7970
|
+
href: child.props.href,
|
|
7971
|
+
submenu: child.props.submenu
|
|
7739
7972
|
};
|
|
7740
7973
|
});
|
|
7741
7974
|
const listRef = useRef(null);
|
|
@@ -7744,7 +7977,13 @@ const DropdownList = ({
|
|
|
7744
7977
|
// get the nth list item in the dropdown
|
|
7745
7978
|
const element = listRef.current.querySelector(`:nth-child(${newFocusItem + 1})`);
|
|
7746
7979
|
const parentList = listRef.current.parentNode;
|
|
7747
|
-
|
|
7980
|
+
if (!element) return;
|
|
7981
|
+
// JSDOM does not implement element.scrollTo; fall back to scrollTop.
|
|
7982
|
+
if (typeof parentList.scrollTo === 'function') {
|
|
7983
|
+
parentList.scrollTo(0, element.offsetTop);
|
|
7984
|
+
} else {
|
|
7985
|
+
parentList.scrollTop = element.offsetTop;
|
|
7986
|
+
}
|
|
7748
7987
|
}
|
|
7749
7988
|
};
|
|
7750
7989
|
const {
|
|
@@ -7761,16 +8000,16 @@ const DropdownList = ({
|
|
|
7761
8000
|
scrollToItem(highlightItemIndex);
|
|
7762
8001
|
}
|
|
7763
8002
|
}
|
|
7764
|
-
}, [highlightItemIndex]);
|
|
8003
|
+
}, [highlightItemIndex, setFocusOnItem]);
|
|
7765
8004
|
return React__default.createElement("ul", {
|
|
7766
|
-
className: styles$
|
|
8005
|
+
className: styles$1c['dropdown-list'],
|
|
7767
8006
|
"data-testid": testId,
|
|
7768
8007
|
ref: listRef
|
|
7769
8008
|
}, React__default.Children.toArray(children).filter(Boolean).map((child, index) => {
|
|
7770
8009
|
return React__default.createElement("li", {
|
|
7771
8010
|
key: index,
|
|
7772
|
-
className: classnames(styles$
|
|
7773
|
-
[styles$
|
|
8011
|
+
className: classnames(styles$1c['dropdown-list__item'], {
|
|
8012
|
+
[styles$1c['dropdown-list__item--hover']]: focusedItem === index
|
|
7774
8013
|
}),
|
|
7775
8014
|
onMouseEnter: () => setFocusOnItem(index),
|
|
7776
8015
|
role: "menuitem"
|
|
@@ -7794,7 +8033,7 @@ const KebabMenu = ({
|
|
|
7794
8033
|
}, action.label))));
|
|
7795
8034
|
};
|
|
7796
8035
|
|
|
7797
|
-
var styles$
|
|
8036
|
+
var styles$18 = {"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"};
|
|
7798
8037
|
|
|
7799
8038
|
const CardContext = createContext({
|
|
7800
8039
|
isCardMounted: false
|
|
@@ -7830,28 +8069,28 @@ const Card = _ref => {
|
|
|
7830
8069
|
isCardMounted: true
|
|
7831
8070
|
}
|
|
7832
8071
|
}, React__default.createElement("div", _extends({
|
|
7833
|
-
className: classnames(styles$
|
|
8072
|
+
className: classnames(styles$18['card']),
|
|
7834
8073
|
style: positionStyles
|
|
7835
8074
|
}, dataProps), onClick ? React__default.createElement("button", {
|
|
7836
|
-
className: classnames(styles$
|
|
7837
|
-
[styles$
|
|
7838
|
-
[styles$
|
|
7839
|
-
[styles$
|
|
8075
|
+
className: classnames(styles$18['card__body'], styles$18['card__body--interactive'], {
|
|
8076
|
+
[styles$18['card__body--disabled']]: disabled,
|
|
8077
|
+
[styles$18['card__body--focus']]: isSelected,
|
|
8078
|
+
[styles$18['card__body--with-kebab']]: actions
|
|
7840
8079
|
}),
|
|
7841
8080
|
"data-testid": testId,
|
|
7842
8081
|
tabIndex: 0,
|
|
7843
8082
|
onClick: onClick,
|
|
7844
8083
|
disabled: disabled
|
|
7845
8084
|
}, children) : React__default.createElement("div", {
|
|
7846
|
-
className: classnames(styles$
|
|
7847
|
-
[styles$
|
|
7848
|
-
[styles$
|
|
7849
|
-
[styles$
|
|
8085
|
+
className: classnames(styles$18['card__body'], {
|
|
8086
|
+
[styles$18['card__body--disabled']]: disabled,
|
|
8087
|
+
[styles$18['card__body--focus']]: isSelected,
|
|
8088
|
+
[styles$18['card__body--with-kebab']]: actions
|
|
7850
8089
|
}),
|
|
7851
8090
|
"data-testid": testId
|
|
7852
8091
|
}, children), actions && React__default.createElement("div", {
|
|
7853
|
-
className: classnames(styles$
|
|
7854
|
-
[styles$
|
|
8092
|
+
className: classnames(styles$18['card__kebab'], {
|
|
8093
|
+
[styles$18['card__kebab--disabled']]: disabled
|
|
7855
8094
|
})
|
|
7856
8095
|
}, React__default.createElement(KebabMenu, {
|
|
7857
8096
|
actions: onClose ? actions.concat({
|
|
@@ -7860,8 +8099,8 @@ const Card = _ref => {
|
|
|
7860
8099
|
onAction: onClose
|
|
7861
8100
|
}) : actions
|
|
7862
8101
|
})), !actions && onClose && React__default.createElement("div", {
|
|
7863
|
-
className: classnames(styles$
|
|
7864
|
-
[styles$
|
|
8102
|
+
className: classnames(styles$18['card__close'], {
|
|
8103
|
+
[styles$18['card__close--disabled']]: disabled
|
|
7865
8104
|
})
|
|
7866
8105
|
}, React__default.createElement(Button, {
|
|
7867
8106
|
theme: "link-icon",
|
|
@@ -7869,7 +8108,7 @@ const Card = _ref => {
|
|
|
7869
8108
|
}, React__default.createElement(IconTimes, null)))));
|
|
7870
8109
|
};
|
|
7871
8110
|
|
|
7872
|
-
var styles$
|
|
8111
|
+
var styles$17 = {"callout-card__close":"_VxmQm","callout-card__header":"_3RrQI"};
|
|
7873
8112
|
|
|
7874
8113
|
/**
|
|
7875
8114
|
* @deprecated Use `<EmptyState as='card' />` instead
|
|
@@ -7890,7 +8129,7 @@ const CalloutCard = ({
|
|
|
7890
8129
|
}, React__default.createElement(Stack, {
|
|
7891
8130
|
space: 12
|
|
7892
8131
|
}, React__default.createElement("div", {
|
|
7893
|
-
className: styles$
|
|
8132
|
+
className: styles$17['callout-card__header']
|
|
7894
8133
|
}, React__default.createElement(Text, {
|
|
7895
8134
|
as: "body",
|
|
7896
8135
|
color: "primary-color"
|
|
@@ -7905,7 +8144,7 @@ const CalloutCard = ({
|
|
|
7905
8144
|
alt: String(title) + String(header),
|
|
7906
8145
|
width: "354px"
|
|
7907
8146
|
})), onClose && React__default.createElement("div", {
|
|
7908
|
-
className: styles$
|
|
8147
|
+
className: styles$17['callout-card__close']
|
|
7909
8148
|
}, React__default.createElement(Button, {
|
|
7910
8149
|
theme: "link-icon",
|
|
7911
8150
|
onClick: onClose
|
|
@@ -7921,7 +8160,7 @@ const Breadcrumbs = ({
|
|
|
7921
8160
|
}, children);
|
|
7922
8161
|
};
|
|
7923
8162
|
|
|
7924
|
-
var styles$
|
|
8163
|
+
var styles$16 = {"breadcrumb-item":"_fo7-A"};
|
|
7925
8164
|
|
|
7926
8165
|
const BreadcrumbItem = ({
|
|
7927
8166
|
href,
|
|
@@ -7935,25 +8174,25 @@ const BreadcrumbItem = ({
|
|
|
7935
8174
|
// This is neessary to support older versions of react-router-dom
|
|
7936
8175
|
return _reloadDocument ? React__default.createElement("a", {
|
|
7937
8176
|
href: href,
|
|
7938
|
-
className: styles$
|
|
8177
|
+
className: styles$16['breadcrumb-item'],
|
|
7939
8178
|
"data-testid": testId
|
|
7940
8179
|
}, content) : React__default.createElement(Link$1, {
|
|
7941
8180
|
to: href,
|
|
7942
|
-
className: styles$
|
|
8181
|
+
className: styles$16['breadcrumb-item'],
|
|
7943
8182
|
relative: "path",
|
|
7944
8183
|
reloadDocument: _reloadDocument,
|
|
7945
8184
|
"data-testid": testId
|
|
7946
8185
|
}, content);
|
|
7947
8186
|
};
|
|
7948
8187
|
|
|
7949
|
-
var styles$
|
|
8188
|
+
var styles$15 = {"page-breadcrumbs":"_QjIgc"};
|
|
7950
8189
|
|
|
7951
8190
|
const PageBreadcrumbs = ({
|
|
7952
8191
|
breadcrumbs
|
|
7953
8192
|
}) => {
|
|
7954
8193
|
const items = getBreadbrumbItems(breadcrumbs);
|
|
7955
8194
|
return React__default.createElement("div", {
|
|
7956
|
-
className: styles$
|
|
8195
|
+
className: styles$15['page-breadcrumbs']
|
|
7957
8196
|
}, React__default.createElement(Breadcrumbs, null, items));
|
|
7958
8197
|
};
|
|
7959
8198
|
const getBreadbrumbItems = breadcrumbs => {
|
|
@@ -7973,7 +8212,7 @@ const getBreadbrumbItems = breadcrumbs => {
|
|
|
7973
8212
|
}, breadcrumbs.label);
|
|
7974
8213
|
};
|
|
7975
8214
|
|
|
7976
|
-
var styles$
|
|
8215
|
+
var styles$14 = {"page":"_QB6yF","page--fullwidth":"_g7MTf","page--restricted":"_LRq4j"};
|
|
7977
8216
|
|
|
7978
8217
|
const PAGE_SIZES = {
|
|
7979
8218
|
FULL_WIDTH: 'fullwidth',
|
|
@@ -7994,9 +8233,9 @@ const Page = ({
|
|
|
7994
8233
|
const hasHeader = title || actions;
|
|
7995
8234
|
const hasPageBlocks = hasHeader || banner || filterBar;
|
|
7996
8235
|
return React__default.createElement("div", {
|
|
7997
|
-
className: classnames(styles$
|
|
7998
|
-
[styles$
|
|
7999
|
-
[styles$
|
|
8236
|
+
className: classnames(styles$14['page'], {
|
|
8237
|
+
[styles$14['page--restricted']]: _size === PAGE_SIZES.RESTRICTED,
|
|
8238
|
+
[styles$14['page--fullwidth']]: _size === PAGE_SIZES.FULL_WIDTH
|
|
8000
8239
|
}),
|
|
8001
8240
|
"data-testid": testId
|
|
8002
8241
|
}, React__default.createElement(Stack, {
|
|
@@ -8017,15 +8256,15 @@ const Page = ({
|
|
|
8017
8256
|
}, title), actions), subtitle && React__default.createElement(Text, null, subtitle)), banner, filterBar)), children));
|
|
8018
8257
|
};
|
|
8019
8258
|
|
|
8020
|
-
var styles$
|
|
8259
|
+
var styles$13 = {"page-layout":"_Scw7-","page-layout__nav-container":"_v--DF","page-layout__nav-list":"_dJeZe","page-layout__content":"_hHi70","page-layout__side-nav-content":"_vTMjp"};
|
|
8021
8260
|
|
|
8022
|
-
var styles$
|
|
8261
|
+
var styles$12 = {"menu-item":"_SebbU","menu-item--active":"_CDEVl","menu-item--with-badge":"_VudDE","menu-item__badge":"_vErBS"};
|
|
8023
8262
|
|
|
8024
|
-
var styles
|
|
8263
|
+
var styles$11 = {"badge":"_RXV4h","badge--warning":"_2An1I","badge--danger":"_-Bw8L","badge--success":"_RxlMz","badge--info":"_dzCH-","badge--numeric":"_Ix9tP"};
|
|
8025
8264
|
|
|
8026
|
-
var styles$
|
|
8265
|
+
var styles$10 = {"overlay":"_0yTe8","overlay--after-open":"_yJBtA","overlay--before-close":"_iWogn","content":"_ntozd","content--after-open":"_EQjDq","content--before-close":"_ZTY3B"};
|
|
8027
8266
|
|
|
8028
|
-
var styles
|
|
8267
|
+
var styles$$ = {"header":"_tgpG9","header__close-button":"_b1dgU","sub-header":"_c2nm4"};
|
|
8029
8268
|
|
|
8030
8269
|
const ModalHeader = ({
|
|
8031
8270
|
header,
|
|
@@ -8035,7 +8274,7 @@ const ModalHeader = ({
|
|
|
8035
8274
|
}) => {
|
|
8036
8275
|
if (!header && !subHeader) {
|
|
8037
8276
|
return onClose ? React__default.createElement("div", {
|
|
8038
|
-
className: styles
|
|
8277
|
+
className: styles$$['header__close-button']
|
|
8039
8278
|
}, React__default.createElement(Button, {
|
|
8040
8279
|
theme: "link-icon",
|
|
8041
8280
|
onClick: onClose,
|
|
@@ -8051,13 +8290,13 @@ const ModalHeader = ({
|
|
|
8051
8290
|
flex: [1],
|
|
8052
8291
|
alignItems: "center"
|
|
8053
8292
|
}, React__default.createElement("span", {
|
|
8054
|
-
className: styles
|
|
8293
|
+
className: styles$$['header']
|
|
8055
8294
|
}, header), onClose && React__default.createElement(Button, {
|
|
8056
8295
|
theme: "link-icon",
|
|
8057
8296
|
onClick: onClose,
|
|
8058
8297
|
disabled: loading
|
|
8059
8298
|
}, React__default.createElement(IconTimes, null))), subHeader && React__default.createElement("div", {
|
|
8060
|
-
className: styles
|
|
8299
|
+
className: styles$$['sub-header']
|
|
8061
8300
|
}, subHeader));
|
|
8062
8301
|
};
|
|
8063
8302
|
|
|
@@ -8115,14 +8354,14 @@ const Modal = _ref => {
|
|
|
8115
8354
|
contentLabel: "Modal",
|
|
8116
8355
|
appElement: rootElementId && document.getElementById(rootElementId) || undefined,
|
|
8117
8356
|
overlayClassName: {
|
|
8118
|
-
base: styles$
|
|
8119
|
-
afterOpen: styles$
|
|
8120
|
-
beforeClose: styles$
|
|
8357
|
+
base: styles$10['overlay'],
|
|
8358
|
+
afterOpen: styles$10['overlay--after-open'],
|
|
8359
|
+
beforeClose: styles$10['overlay--before-close']
|
|
8121
8360
|
},
|
|
8122
8361
|
className: {
|
|
8123
|
-
base: styles$
|
|
8124
|
-
afterOpen: styles$
|
|
8125
|
-
beforeClose: styles$
|
|
8362
|
+
base: styles$10['content'],
|
|
8363
|
+
afterOpen: styles$10['content--after-open'],
|
|
8364
|
+
beforeClose: styles$10['content--before-close']
|
|
8126
8365
|
},
|
|
8127
8366
|
data: dataProps
|
|
8128
8367
|
}, React__default.createElement(ModalHeader, {
|
|
@@ -8164,7 +8403,7 @@ const useScrollShadow = () => {
|
|
|
8164
8403
|
};
|
|
8165
8404
|
};
|
|
8166
8405
|
|
|
8167
|
-
var styles$
|
|
8406
|
+
var styles$_ = {"modal-body":"_4YK4k","modal-body--with-scroll-shadow":"_wo1vv","modal-body__inner-div":"_9u6xC"};
|
|
8168
8407
|
|
|
8169
8408
|
const ModalBody = ({
|
|
8170
8409
|
children,
|
|
@@ -8175,17 +8414,17 @@ const ModalBody = ({
|
|
|
8175
8414
|
showScrollShadow
|
|
8176
8415
|
} = useScrollShadow();
|
|
8177
8416
|
return React__default.createElement("div", {
|
|
8178
|
-
className: classnames(styles$
|
|
8179
|
-
[styles$
|
|
8417
|
+
className: classnames(styles$_['modal-body'], {
|
|
8418
|
+
[styles$_['modal-body--with-scroll-shadow']]: showScrollShadow
|
|
8180
8419
|
}),
|
|
8181
8420
|
ref: ref,
|
|
8182
8421
|
"data-testid": testId
|
|
8183
8422
|
}, React__default.createElement("div", {
|
|
8184
|
-
className: styles$
|
|
8423
|
+
className: styles$_['modal-body__inner-div']
|
|
8185
8424
|
}, children));
|
|
8186
8425
|
};
|
|
8187
8426
|
|
|
8188
|
-
var styles$
|
|
8427
|
+
var styles$Z = {"modal-footer":"_bezlP","tertiary-container":"_EdqHx"};
|
|
8189
8428
|
|
|
8190
8429
|
const updateButtonProps$1 = (button, newProps) => {
|
|
8191
8430
|
if (!button) {
|
|
@@ -8222,7 +8461,7 @@ const ModalFooter = ({
|
|
|
8222
8461
|
justifyContent: "space-between"
|
|
8223
8462
|
}, React__default.createElement("div", {
|
|
8224
8463
|
className: classnames({
|
|
8225
|
-
[styles$
|
|
8464
|
+
[styles$Z['tertiary-container']]: tertiaryButton && tertiaryButton.props.theme.startsWith('link')
|
|
8226
8465
|
})
|
|
8227
8466
|
}, tertiaryButton || React__default.createElement("div", null)), React__default.createElement(Inline, {
|
|
8228
8467
|
space: 12
|
|
@@ -8240,7 +8479,7 @@ const FooterContainer = ({
|
|
|
8240
8479
|
displayName: 'Inline'
|
|
8241
8480
|
});
|
|
8242
8481
|
return React__default.createElement("div", {
|
|
8243
|
-
className: styles$
|
|
8482
|
+
className: styles$Z['modal-footer'],
|
|
8244
8483
|
"data-testid": testId
|
|
8245
8484
|
}, React__default.createElement(Inline, {
|
|
8246
8485
|
justifyContent: "end",
|
|
@@ -8253,7 +8492,7 @@ var dayOverridesStyles = {"root":"_et9Fs","table":"_l7Mis","caption":"_XGu8K","h
|
|
|
8253
8492
|
|
|
8254
8493
|
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"};
|
|
8255
8494
|
|
|
8256
|
-
var styles$
|
|
8495
|
+
var styles$Y = {"calendar":"_YPyZ6","calendar__overlay":"_-cw0A"};
|
|
8257
8496
|
|
|
8258
8497
|
function parseDate(str, format, locale) {
|
|
8259
8498
|
const parsed = dateFnsParse(str, format, new Date(), {
|
|
@@ -8489,9 +8728,9 @@ const Calendar = ({
|
|
|
8489
8728
|
}
|
|
8490
8729
|
};
|
|
8491
8730
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
8492
|
-
className: styles$
|
|
8731
|
+
className: styles$Y['calendar']
|
|
8493
8732
|
}, React__default.createElement("div", {
|
|
8494
|
-
className: styles$
|
|
8733
|
+
className: styles$Y['calendar__overlay'],
|
|
8495
8734
|
ref: ref => setCalendarRef(ref),
|
|
8496
8735
|
style: _extends({}, calendarPosition, {
|
|
8497
8736
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -8549,7 +8788,7 @@ const useCheckBoxFieldControllers = ({
|
|
|
8549
8788
|
return controllers;
|
|
8550
8789
|
};
|
|
8551
8790
|
|
|
8552
|
-
var styles$
|
|
8791
|
+
var styles$X = {"check-box-field":"_Id4qm","check-box-field__caption":"_s9d-m","check-box-field__custom-input":"_kmvBP"};
|
|
8553
8792
|
|
|
8554
8793
|
const _excluded$m = ["name", "id", "checked", "onChange", "onBlur", "label", "caption", "error", "disabled", "testId"];
|
|
8555
8794
|
/** CheckboxField form element. */
|
|
@@ -8584,7 +8823,7 @@ const CheckboxField = _ref => {
|
|
|
8584
8823
|
flexItems: true,
|
|
8585
8824
|
flex: ['0 0 auto']
|
|
8586
8825
|
}, otherProps), React__default.createElement("div", {
|
|
8587
|
-
className: styles$
|
|
8826
|
+
className: styles$X['check-box-field']
|
|
8588
8827
|
}, React__default.createElement("input", {
|
|
8589
8828
|
name: name,
|
|
8590
8829
|
id: controllers.id,
|
|
@@ -8597,12 +8836,12 @@ const CheckboxField = _ref => {
|
|
|
8597
8836
|
onChange: controllers.onChange,
|
|
8598
8837
|
onBlur: controllers.onBlur
|
|
8599
8838
|
}), React__default.createElement("span", {
|
|
8600
|
-
className: styles$
|
|
8839
|
+
className: styles$X['check-box-field__custom-input']
|
|
8601
8840
|
})), label && React__default.createElement(Label, {
|
|
8602
8841
|
htmlFor: controllers.id,
|
|
8603
8842
|
truncate: false
|
|
8604
8843
|
}, label)), caption && React__default.createElement("div", {
|
|
8605
|
-
className: styles$
|
|
8844
|
+
className: styles$X['check-box-field__caption']
|
|
8606
8845
|
}, React__default.createElement(Caption, {
|
|
8607
8846
|
fieldId: controllers.id
|
|
8608
8847
|
}, caption)), controllers.error && React__default.createElement(ErrorMessage, {
|
|
@@ -8640,7 +8879,7 @@ const useLocalStorage = (key, initialValue) => {
|
|
|
8640
8879
|
return [storedValue, setValue];
|
|
8641
8880
|
};
|
|
8642
8881
|
|
|
8643
|
-
var styles$
|
|
8882
|
+
var styles$W = {"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"};
|
|
8644
8883
|
|
|
8645
8884
|
const _excluded$l = ["header", "children", "mediaUrl", "onClose", "modalId", "primaryButton", "secondaryButton", "testId", "onSetDoNotShowAgainStatus"];
|
|
8646
8885
|
const HintModal = _ref => {
|
|
@@ -8703,22 +8942,22 @@ const HintModal = _ref => {
|
|
|
8703
8942
|
closeTimeoutMS: 200,
|
|
8704
8943
|
contentLabel: "Modal",
|
|
8705
8944
|
className: {
|
|
8706
|
-
base: styles$
|
|
8707
|
-
afterOpen: styles$
|
|
8708
|
-
beforeClose: styles$
|
|
8945
|
+
base: styles$W['hint-modal'],
|
|
8946
|
+
afterOpen: styles$W['hint-modal--after-open'],
|
|
8947
|
+
beforeClose: styles$W['hint-modal--before-close']
|
|
8709
8948
|
},
|
|
8710
|
-
overlayClassName: styles$
|
|
8949
|
+
overlayClassName: styles$W['hint-modal__overlay']
|
|
8711
8950
|
}, React__default.createElement("div", {
|
|
8712
|
-
className: styles$
|
|
8951
|
+
className: styles$W['hint-modal__close-button']
|
|
8713
8952
|
}, React__default.createElement(Button, {
|
|
8714
8953
|
theme: "link-icon",
|
|
8715
8954
|
onClick: handleOnClose
|
|
8716
8955
|
}, React__default.createElement(IconTimes, null))), mediaUrl && React__default.createElement("img", {
|
|
8717
|
-
className: styles$
|
|
8956
|
+
className: styles$W['hint-modal__image'],
|
|
8718
8957
|
src: mediaUrl,
|
|
8719
8958
|
alt: String(header)
|
|
8720
8959
|
}), React__default.createElement("div", {
|
|
8721
|
-
className: styles$
|
|
8960
|
+
className: styles$W['hint-modal__body']
|
|
8722
8961
|
}, React__default.createElement(Stack, {
|
|
8723
8962
|
justifyContent: "space-between"
|
|
8724
8963
|
}, React__default.createElement(Stack, {
|
|
@@ -8759,12 +8998,12 @@ const BadgeElement = (_ref, forwardedRef) => {
|
|
|
8759
8998
|
overlay: title,
|
|
8760
8999
|
ref: ref
|
|
8761
9000
|
}, React__default.createElement("div", _extends({
|
|
8762
|
-
className: classnames(styles
|
|
8763
|
-
[styles
|
|
8764
|
-
[styles
|
|
8765
|
-
[styles
|
|
8766
|
-
[styles
|
|
8767
|
-
[styles
|
|
9001
|
+
className: classnames(styles$11['badge'], {
|
|
9002
|
+
[styles$11['badge--success']]: theme === 'success',
|
|
9003
|
+
[styles$11['badge--danger']]: theme === 'danger',
|
|
9004
|
+
[styles$11['badge--info']]: theme === 'info',
|
|
9005
|
+
[styles$11['badge--warning']]: theme === 'warning',
|
|
9006
|
+
[styles$11['badge--numeric']]: Number.isFinite(children)
|
|
8768
9007
|
}),
|
|
8769
9008
|
ref: ref,
|
|
8770
9009
|
"data-testid": testId
|
|
@@ -8776,28 +9015,28 @@ const MenuItem = ({
|
|
|
8776
9015
|
menu
|
|
8777
9016
|
}) => {
|
|
8778
9017
|
return React__default.createElement("li", {
|
|
8779
|
-
className: classnames(styles$
|
|
8780
|
-
[styles$
|
|
9018
|
+
className: classnames(styles$12['menu-item'], {
|
|
9019
|
+
[styles$12['menu-item--with-badge']]: !!menu.suffix
|
|
8781
9020
|
})
|
|
8782
9021
|
}, menu.reloadDocument ? React__default.createElement("a", {
|
|
8783
9022
|
href: menu.to,
|
|
8784
9023
|
className: classnames({
|
|
8785
|
-
[styles$
|
|
9024
|
+
[styles$12['menu-item--active']]: menu.isActive
|
|
8786
9025
|
})
|
|
8787
9026
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
8788
|
-
className: styles$
|
|
9027
|
+
className: styles$12['menu-item__badge']
|
|
8789
9028
|
}, React__default.createElement(Badge, null, menu.suffix))) : React__default.createElement(NavLink, {
|
|
8790
9029
|
to: menu.to,
|
|
8791
9030
|
// @ts-expect-error This is only available on v5
|
|
8792
|
-
activeClassName: styles$
|
|
9031
|
+
activeClassName: styles$12['menu-item--active'],
|
|
8793
9032
|
className: ({
|
|
8794
9033
|
isActive
|
|
8795
9034
|
}) => {
|
|
8796
|
-
return isActive ? styles$
|
|
9035
|
+
return isActive ? styles$12['menu-item--active'] : '';
|
|
8797
9036
|
},
|
|
8798
9037
|
exact: true
|
|
8799
9038
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
8800
|
-
className: styles$
|
|
9039
|
+
className: styles$12['menu-item__badge']
|
|
8801
9040
|
}, React__default.createElement(Badge, null, menu.suffix))));
|
|
8802
9041
|
};
|
|
8803
9042
|
|
|
@@ -8808,9 +9047,9 @@ const PageLayout = ({
|
|
|
8808
9047
|
sideNavContent
|
|
8809
9048
|
}) => {
|
|
8810
9049
|
return React__default.createElement("div", {
|
|
8811
|
-
className: styles$
|
|
9050
|
+
className: styles$13['page-layout']
|
|
8812
9051
|
}, React__default.createElement("div", {
|
|
8813
|
-
className: styles$
|
|
9052
|
+
className: styles$13['page-layout__nav-container']
|
|
8814
9053
|
}, React__default.createElement(Stack, {
|
|
8815
9054
|
space: 12
|
|
8816
9055
|
}, React__default.createElement(Text, {
|
|
@@ -8819,14 +9058,14 @@ const PageLayout = ({
|
|
|
8819
9058
|
ml: 20,
|
|
8820
9059
|
mr: 35
|
|
8821
9060
|
}, title), React__default.createElement("ul", {
|
|
8822
|
-
className: styles$
|
|
9061
|
+
className: styles$13['page-layout__nav-list']
|
|
8823
9062
|
}, menu.filter(menu => !('isVisible' in menu) || (menu == null ? void 0 : menu.isVisible) === true).map((menuItem, index) => React__default.createElement(MenuItem, {
|
|
8824
9063
|
key: menuItem.name || index,
|
|
8825
9064
|
menu: menuItem
|
|
8826
9065
|
}))), sideNavContent && React__default.createElement("div", {
|
|
8827
|
-
className: styles$
|
|
9066
|
+
className: styles$13['page-layout__side-nav-content']
|
|
8828
9067
|
}, sideNavContent))), React__default.createElement("div", {
|
|
8829
|
-
className: styles$
|
|
9068
|
+
className: styles$13['page-layout__content']
|
|
8830
9069
|
}, children));
|
|
8831
9070
|
};
|
|
8832
9071
|
|
|
@@ -8836,7 +9075,7 @@ const TOAST_THEME = {
|
|
|
8836
9075
|
};
|
|
8837
9076
|
const TOAST_CONTAINER_ID = 'sous-chef-toast';
|
|
8838
9077
|
|
|
8839
|
-
var styles$
|
|
9078
|
+
var styles$V = {"toast":"_iSC5P","toast--danger":"_OWpOG","toast__text":"_4JJwF"};
|
|
8840
9079
|
|
|
8841
9080
|
const toast = (text, theme = TOAST_THEME.DEFAULT, options = {}) => {
|
|
8842
9081
|
if (typeof text !== 'string') {
|
|
@@ -8853,8 +9092,8 @@ const toast = (text, theme = TOAST_THEME.DEFAULT, options = {}) => {
|
|
|
8853
9092
|
onActionClick: onActionClick
|
|
8854
9093
|
}) : text;
|
|
8855
9094
|
toast$1(content, _extends({
|
|
8856
|
-
className: classnames(styles$
|
|
8857
|
-
[styles$
|
|
9095
|
+
className: classnames(styles$V['toast'], {
|
|
9096
|
+
[styles$V['toast--danger']]: theme === TOAST_THEME.DANGER
|
|
8858
9097
|
}),
|
|
8859
9098
|
containerId: TOAST_CONTAINER_ID
|
|
8860
9099
|
}, options));
|
|
@@ -8880,7 +9119,7 @@ const ToastBodyWithAction = ({
|
|
|
8880
9119
|
const ToastContainer = ({
|
|
8881
9120
|
containerId: _containerId = TOAST_CONTAINER_ID
|
|
8882
9121
|
}) => React__default.createElement(ToastContainer$1, {
|
|
8883
|
-
bodyClassName: styles$
|
|
9122
|
+
bodyClassName: styles$V['toast__text'],
|
|
8884
9123
|
hideProgressBar: true,
|
|
8885
9124
|
draggable: false,
|
|
8886
9125
|
transition: Slide,
|
|
@@ -8890,6 +9129,23 @@ const ToastContainer = ({
|
|
|
8890
9129
|
enableMultiContainer: true
|
|
8891
9130
|
});
|
|
8892
9131
|
|
|
9132
|
+
const initialValue$1 = {
|
|
9133
|
+
// This country prop is currently used to configure the phone number field
|
|
9134
|
+
country: 'US',
|
|
9135
|
+
// This timeFormat prop is currently used to configure the time format for time fields
|
|
9136
|
+
timeFormat: TIME_FORMAT.FORMAT_AMPM,
|
|
9137
|
+
// Default theme is light, but it will be overridden by the useTheme hook in the SousChefProvider
|
|
9138
|
+
theme: 'light'
|
|
9139
|
+
};
|
|
9140
|
+
const ProviderConfigContext = createContext(initialValue$1);
|
|
9141
|
+
const useProviderConfig = () => {
|
|
9142
|
+
const context = useContext(ProviderConfigContext);
|
|
9143
|
+
if (!context) {
|
|
9144
|
+
throw Error('The `<SousChefProvider>` is not set. Please wrap your application with `<SousChefProvider>`');
|
|
9145
|
+
}
|
|
9146
|
+
return context;
|
|
9147
|
+
};
|
|
9148
|
+
|
|
8893
9149
|
/**
|
|
8894
9150
|
* Don't use this hook directly. This is meant to be used internally by the SousChefProvider
|
|
8895
9151
|
* To access the current theme, use the useProviderConfig hook instead
|
|
@@ -8938,7 +9194,7 @@ const SousChefProvider = ({
|
|
|
8938
9194
|
}, React__default.createElement(ToastContainer, null), children));
|
|
8939
9195
|
};
|
|
8940
9196
|
|
|
8941
|
-
var styles$
|
|
9197
|
+
var styles$U = {"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"};
|
|
8942
9198
|
|
|
8943
9199
|
const SORT_ORDER = {
|
|
8944
9200
|
ASC: 'asc',
|
|
@@ -9111,7 +9367,7 @@ const DataTableHeader = ({
|
|
|
9111
9367
|
},
|
|
9112
9368
|
id: `${tableId}-header`
|
|
9113
9369
|
}, React__default.createElement("tr", {
|
|
9114
|
-
className: styles$
|
|
9370
|
+
className: styles$U['data-table-header']
|
|
9115
9371
|
}, columns.filter(column => !column.hidden).map(column => {
|
|
9116
9372
|
const isSortable = column.isSortable;
|
|
9117
9373
|
const sortDir = column.currentSort;
|
|
@@ -9119,8 +9375,8 @@ const DataTableHeader = ({
|
|
|
9119
9375
|
const hasDescription = !!column.description;
|
|
9120
9376
|
return React__default.createElement("th", {
|
|
9121
9377
|
className: classnames({
|
|
9122
|
-
[styles$
|
|
9123
|
-
[styles$
|
|
9378
|
+
[styles$U['data-table-header__item']]: true,
|
|
9379
|
+
[styles$U['data-table-header__item--sortable']]: isSortable
|
|
9124
9380
|
}),
|
|
9125
9381
|
style: {
|
|
9126
9382
|
flex: column.size || 1,
|
|
@@ -9132,18 +9388,18 @@ const DataTableHeader = ({
|
|
|
9132
9388
|
role: "columnheader",
|
|
9133
9389
|
tabIndex: 0
|
|
9134
9390
|
}, React__default.createElement("div", {
|
|
9135
|
-
className: classnames(styles$
|
|
9136
|
-
[styles$
|
|
9391
|
+
className: classnames(styles$U['data-table-header__item-content'], {
|
|
9392
|
+
[styles$U['data-table-header__item-content--right-align']]: isRightAligned
|
|
9137
9393
|
}, {
|
|
9138
|
-
[styles$
|
|
9394
|
+
[styles$U['data-table-header__item-content--has-description']]: hasDescription
|
|
9139
9395
|
})
|
|
9140
9396
|
}, wrapWithTooltip(column), isSortable && React__default.createElement("span", {
|
|
9141
|
-
className: styles$
|
|
9397
|
+
className: styles$U['data-table-header__sort-icon']
|
|
9142
9398
|
}, React__default.createElement(HeaderSortIcon, {
|
|
9143
9399
|
sortDirection: sortDir
|
|
9144
9400
|
}))));
|
|
9145
9401
|
}), showActionMenu && React__default.createElement("th", {
|
|
9146
|
-
className: classnames(styles$
|
|
9402
|
+
className: classnames(styles$U['data-table-header__item'], styles$U['data-table-header__item--action'])
|
|
9147
9403
|
}))));
|
|
9148
9404
|
};
|
|
9149
9405
|
const wrapWithTooltip = column => {
|
|
@@ -9157,9 +9413,9 @@ const wrapWithTooltip = column => {
|
|
|
9157
9413
|
return column.label;
|
|
9158
9414
|
};
|
|
9159
9415
|
|
|
9160
|
-
var styles$
|
|
9416
|
+
var styles$T = {"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"};
|
|
9161
9417
|
|
|
9162
|
-
var styles$
|
|
9418
|
+
var styles$S = {"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"};
|
|
9163
9419
|
|
|
9164
9420
|
const useTableHeaderHeight = isShowingColumns => {
|
|
9165
9421
|
const {
|
|
@@ -9211,10 +9467,10 @@ const DataTableScrollFakeBorder = ({
|
|
|
9211
9467
|
const hasFixedScroll = useDetectFixedScroll();
|
|
9212
9468
|
const backgroundColor = useBackgroundColor();
|
|
9213
9469
|
return React__default.createElement("div", {
|
|
9214
|
-
className: classnames(styles$
|
|
9215
|
-
[styles$
|
|
9216
|
-
[styles$
|
|
9217
|
-
[styles$
|
|
9470
|
+
className: classnames(styles$S['data-table-scroll-fake-border'], {
|
|
9471
|
+
[styles$S['data-table-scroll-fake-border--top']]: placement === 'top',
|
|
9472
|
+
[styles$S['data-table-scroll-fake-border--bottom']]: placement === 'bottom',
|
|
9473
|
+
[styles$S['data-table-scroll-fake-border--fixed-scroll']]: hasFixedScroll
|
|
9218
9474
|
}),
|
|
9219
9475
|
style: {
|
|
9220
9476
|
// @ts-expect-error This difines a custom CSS variable
|
|
@@ -9222,14 +9478,14 @@ const DataTableScrollFakeBorder = ({
|
|
|
9222
9478
|
top: placement === 'top' ? headerHeight : undefined
|
|
9223
9479
|
}
|
|
9224
9480
|
}, React__default.createElement("div", {
|
|
9225
|
-
className: classnames(styles$
|
|
9226
|
-
[styles$
|
|
9227
|
-
[styles$
|
|
9481
|
+
className: classnames(styles$S['data-table-scroll-fake-border__left'], {
|
|
9482
|
+
[styles$S['data-table-scroll-fake-border__left--top']]: placement === 'top',
|
|
9483
|
+
[styles$S['data-table-scroll-fake-border__left--bottom']]: placement === 'bottom'
|
|
9228
9484
|
})
|
|
9229
9485
|
}), React__default.createElement("div", {
|
|
9230
|
-
className: classnames(styles$
|
|
9231
|
-
[styles$
|
|
9232
|
-
[styles$
|
|
9486
|
+
className: classnames(styles$S['data-table-scroll-fake-border__right'], {
|
|
9487
|
+
[styles$S['data-table-scroll-fake-border__right--top']]: placement === 'top',
|
|
9488
|
+
[styles$S['data-table-scroll-fake-border__right--bottom']]: placement === 'bottom'
|
|
9233
9489
|
}),
|
|
9234
9490
|
"data-background-color": "red"
|
|
9235
9491
|
}));
|
|
@@ -9247,7 +9503,7 @@ const BUTTON_THEME = {
|
|
|
9247
9503
|
UPSELL: 'upsell'
|
|
9248
9504
|
};
|
|
9249
9505
|
|
|
9250
|
-
var styles$
|
|
9506
|
+
var styles$R = {"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"};
|
|
9251
9507
|
|
|
9252
9508
|
/** Infers theme prop for Sous Chef Button CTAs if not explicitly passed, default is hollow, primaryCTA is Upsell if banner theme is Upsell*/
|
|
9253
9509
|
const ButtonCTA$1 = ({
|
|
@@ -9268,7 +9524,7 @@ const ButtonCTA$1 = ({
|
|
|
9268
9524
|
}, button.props));
|
|
9269
9525
|
};
|
|
9270
9526
|
|
|
9271
|
-
var styles$
|
|
9527
|
+
var styles$Q = {"banner__caption":"_S--Ce"};
|
|
9272
9528
|
|
|
9273
9529
|
const InlineBannerCTA = ({
|
|
9274
9530
|
primaryButton,
|
|
@@ -9300,7 +9556,7 @@ const InlineBannerCTA = ({
|
|
|
9300
9556
|
bannerTheme: bannerTheme,
|
|
9301
9557
|
primaryCTA: true
|
|
9302
9558
|
})), caption && multiLine && React__default.createElement("div", {
|
|
9303
|
-
className: styles$
|
|
9559
|
+
className: styles$Q['banner__caption']
|
|
9304
9560
|
}, caption));
|
|
9305
9561
|
};
|
|
9306
9562
|
|
|
@@ -9341,21 +9597,21 @@ const InlineBanner = _ref => {
|
|
|
9341
9597
|
const Layout = multiLine ? Stack : Inline;
|
|
9342
9598
|
return React__default.createElement("div", {
|
|
9343
9599
|
"data-testid": testId,
|
|
9344
|
-
className: classnames(styles$
|
|
9345
|
-
[styles$
|
|
9346
|
-
[styles$
|
|
9347
|
-
[styles$
|
|
9348
|
-
[styles$
|
|
9349
|
-
[styles$
|
|
9350
|
-
[styles$
|
|
9600
|
+
className: classnames(styles$R['banner'], {
|
|
9601
|
+
[styles$R['banner--info']]: theme === BANNER_THEME.INFO,
|
|
9602
|
+
[styles$R['banner--warning']]: theme === BANNER_THEME.WARNING,
|
|
9603
|
+
[styles$R['banner--success']]: theme === BANNER_THEME.SUCCESS,
|
|
9604
|
+
[styles$R['banner--danger']]: theme === BANNER_THEME.DANGER,
|
|
9605
|
+
[styles$R['banner--upsell']]: theme === BANNER_THEME.UPSELL,
|
|
9606
|
+
[styles$R['banner--single-line']]: !multiLine
|
|
9351
9607
|
}),
|
|
9352
9608
|
style: positionStyles
|
|
9353
9609
|
}, React__default.createElement(Inline, {
|
|
9354
9610
|
flex: ['0 1 auto', 1],
|
|
9355
9611
|
space: 12
|
|
9356
9612
|
}, React__default.createElement("div", {
|
|
9357
|
-
className: classnames(styles$
|
|
9358
|
-
[styles$
|
|
9613
|
+
className: classnames(styles$R['banner__icon'], {
|
|
9614
|
+
[styles$R['banner__icon--multiline']]: multiLine
|
|
9359
9615
|
})
|
|
9360
9616
|
}, icon != null ? icon : React__default.createElement(InlineBannerIcon, {
|
|
9361
9617
|
theme: theme
|
|
@@ -9366,10 +9622,10 @@ const InlineBanner = _ref => {
|
|
|
9366
9622
|
flex: ['min-content'],
|
|
9367
9623
|
flexWrap: multiLine ? undefined : 'wrap'
|
|
9368
9624
|
}, title && React__default.createElement("div", {
|
|
9369
|
-
className: styles$
|
|
9625
|
+
className: styles$R['banner__title']
|
|
9370
9626
|
}, title), React__default.createElement("div", {
|
|
9371
|
-
className: classnames(styles$
|
|
9372
|
-
[styles$
|
|
9627
|
+
className: classnames(styles$R['banner__body'], {
|
|
9628
|
+
[styles$R['banner__body--multilineCTA']]: primaryButton && multiLine
|
|
9373
9629
|
})
|
|
9374
9630
|
}, children), primaryButton && React__default.createElement(InlineBannerCTA, {
|
|
9375
9631
|
primaryButton: primaryButton,
|
|
@@ -9378,7 +9634,7 @@ const InlineBanner = _ref => {
|
|
|
9378
9634
|
multiLine: multiLine,
|
|
9379
9635
|
bannerTheme: theme
|
|
9380
9636
|
})), dismissable && React__default.createElement("div", {
|
|
9381
|
-
className: styles$
|
|
9637
|
+
className: styles$R['banner__close']
|
|
9382
9638
|
}, React__default.createElement(Button, {
|
|
9383
9639
|
theme: "link-icon",
|
|
9384
9640
|
type: "button",
|
|
@@ -9394,7 +9650,7 @@ const MICRO_BANNER_THEME = {
|
|
|
9394
9650
|
UPSELL: 'upsell'
|
|
9395
9651
|
};
|
|
9396
9652
|
|
|
9397
|
-
var styles$
|
|
9653
|
+
var styles$P = {"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"};
|
|
9398
9654
|
|
|
9399
9655
|
const MicroBannerIcon = ({
|
|
9400
9656
|
theme
|
|
@@ -9444,14 +9700,14 @@ const MicroBanner = _ref => {
|
|
|
9444
9700
|
} = _ref,
|
|
9445
9701
|
positionProps = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
9446
9702
|
const positionStyles = usePositionStyles(positionProps);
|
|
9447
|
-
const themeClass = styles$
|
|
9448
|
-
const contentClass = classnames(styles$
|
|
9703
|
+
const themeClass = styles$P[`micro-banner--${theme}`];
|
|
9704
|
+
const contentClass = classnames(styles$P['micro-banner__content'], hideIcon && styles$P['micro-banner__content--no-icon'], !primaryButton && styles$P['micro-banner__content--no-button']);
|
|
9449
9705
|
return React__default.createElement("div", {
|
|
9450
9706
|
"data-testid": testId,
|
|
9451
|
-
className: classnames(styles$
|
|
9707
|
+
className: classnames(styles$P['micro-banner'], themeClass),
|
|
9452
9708
|
style: positionStyles
|
|
9453
9709
|
}, !hideIcon && React__default.createElement("div", {
|
|
9454
|
-
className: styles$
|
|
9710
|
+
className: styles$P['micro-banner__icon'],
|
|
9455
9711
|
"data-testid": `${testId || 'micro-banner'}-icon`
|
|
9456
9712
|
}, icon != null ? icon : React__default.createElement(MicroBannerIcon, {
|
|
9457
9713
|
theme: theme
|
|
@@ -9462,7 +9718,7 @@ const MicroBanner = _ref => {
|
|
|
9462
9718
|
}, title), React__default.createElement(Text, {
|
|
9463
9719
|
as: 'caption'
|
|
9464
9720
|
}, children)), primaryButton && React__default.createElement("div", {
|
|
9465
|
-
className: styles$
|
|
9721
|
+
className: styles$P['micro-banner__button']
|
|
9466
9722
|
}, React__default.createElement(ButtonCTA, {
|
|
9467
9723
|
button: primaryButton,
|
|
9468
9724
|
bannerTheme: theme
|
|
@@ -9476,7 +9732,7 @@ const PERSISTENT_BANNER_THEME = {
|
|
|
9476
9732
|
WARNING: 'warning'
|
|
9477
9733
|
};
|
|
9478
9734
|
|
|
9479
|
-
var styles$
|
|
9735
|
+
var styles$O = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR","persistent-banner--warning":"_9eFhn"};
|
|
9480
9736
|
|
|
9481
9737
|
const PersistentBanner = ({
|
|
9482
9738
|
theme: _theme = PERSISTENT_BANNER_THEME.INFO,
|
|
@@ -9505,11 +9761,11 @@ const PersistentBanner = ({
|
|
|
9505
9761
|
theme: _theme === PERSISTENT_BANNER_THEME.WARNING ? BUTTON_THEMES.LINK_PRIMARY : BUTTON_THEMES.LINK_CONTRAST
|
|
9506
9762
|
}, secondaryButton.props))));
|
|
9507
9763
|
return React__default.createElement("div", {
|
|
9508
|
-
className: classnames(styles$
|
|
9509
|
-
[styles$
|
|
9510
|
-
[styles$
|
|
9511
|
-
[styles$
|
|
9512
|
-
[styles$
|
|
9764
|
+
className: classnames(styles$O['persistent-banner'], {
|
|
9765
|
+
[styles$O['persistent-banner--info']]: _theme === PERSISTENT_BANNER_THEME.INFO,
|
|
9766
|
+
[styles$O['persistent-banner--danger']]: _theme === PERSISTENT_BANNER_THEME.DANGER,
|
|
9767
|
+
[styles$O['persistent-banner--upsell']]: _theme === PERSISTENT_BANNER_THEME.UPSELL,
|
|
9768
|
+
[styles$O['persistent-banner--warning']]: _theme === PERSISTENT_BANNER_THEME.WARNING
|
|
9513
9769
|
}),
|
|
9514
9770
|
"data-testid": testId
|
|
9515
9771
|
}, onDismiss ? React__default.createElement(Inline, {
|
|
@@ -9574,7 +9830,7 @@ const useProgress = (progress, maxValue, getMetric = getProgressMetric) => {
|
|
|
9574
9830
|
};
|
|
9575
9831
|
};
|
|
9576
9832
|
|
|
9577
|
-
var styles$
|
|
9833
|
+
var styles$N = {"circular-progress":"_UI0Fo","circular-progress__label":"_6PNwZ","circular-progress__track":"_alBLB","circular-progress__indicator":"_VADa6"};
|
|
9578
9834
|
|
|
9579
9835
|
const CircularProgress = ({
|
|
9580
9836
|
progress,
|
|
@@ -9588,7 +9844,7 @@ const CircularProgress = ({
|
|
|
9588
9844
|
} = useProgress(progress, _maxValue);
|
|
9589
9845
|
const determinant = metric.percentage * 2.79;
|
|
9590
9846
|
return React__default.createElement("div", _extends({}, elementProps, {
|
|
9591
|
-
className: styles$
|
|
9847
|
+
className: styles$N['circular-progress'],
|
|
9592
9848
|
"data-testid": testId
|
|
9593
9849
|
}), React__default.createElement("svg", {
|
|
9594
9850
|
viewBox: "0 0 100 100"
|
|
@@ -9597,21 +9853,21 @@ const CircularProgress = ({
|
|
|
9597
9853
|
cy: 50,
|
|
9598
9854
|
r: 45,
|
|
9599
9855
|
strokeWidth: "10px",
|
|
9600
|
-
className: styles$
|
|
9856
|
+
className: styles$N['circular-progress__track']
|
|
9601
9857
|
}), React__default.createElement("circle", {
|
|
9602
9858
|
cx: 50,
|
|
9603
9859
|
cy: 50,
|
|
9604
9860
|
r: 45,
|
|
9605
9861
|
strokeWidth: "10px",
|
|
9606
|
-
className: styles$
|
|
9862
|
+
className: styles$N['circular-progress__indicator'],
|
|
9607
9863
|
strokeDashoffset: "66",
|
|
9608
9864
|
strokeDasharray: `${determinant} ${279 - determinant}`
|
|
9609
9865
|
})), React__default.createElement("div", {
|
|
9610
|
-
className: styles$
|
|
9866
|
+
className: styles$N['circular-progress__label']
|
|
9611
9867
|
}, children || `${metric.progress}/${metric.maxValue}`));
|
|
9612
9868
|
};
|
|
9613
9869
|
|
|
9614
|
-
var styles$
|
|
9870
|
+
var styles$M = {"progress-bar":"_fWvQF","progress-bar__indicator":"_vd0xc","progress-bar__steps":"_8kdeO"};
|
|
9615
9871
|
|
|
9616
9872
|
const ProgressBar = ({
|
|
9617
9873
|
progress,
|
|
@@ -9626,21 +9882,21 @@ const ProgressBar = ({
|
|
|
9626
9882
|
metric
|
|
9627
9883
|
} = useProgress(progress, inferedMaxValue || 100, isUsingStepsAsMaxValue ? getProgressMetricWithSteps : getProgressMetric);
|
|
9628
9884
|
return React__default.createElement(Stack, null, React__default.createElement("div", _extends({}, elementProps, {
|
|
9629
|
-
className: styles$
|
|
9885
|
+
className: styles$M['progress-bar'],
|
|
9630
9886
|
"data-testid": testId
|
|
9631
9887
|
}), React__default.createElement("div", {
|
|
9632
|
-
className: styles$
|
|
9888
|
+
className: styles$M['progress-bar__indicator'],
|
|
9633
9889
|
style: {
|
|
9634
9890
|
width: `${metric.percentage}%`
|
|
9635
9891
|
}
|
|
9636
9892
|
})), steps && steps.length > 0 && React__default.createElement("div", {
|
|
9637
|
-
className: styles$
|
|
9893
|
+
className: styles$M['progress-bar__steps']
|
|
9638
9894
|
}, steps.map(step => React__default.createElement(Text, {
|
|
9639
9895
|
key: step
|
|
9640
9896
|
}, step))));
|
|
9641
9897
|
};
|
|
9642
9898
|
|
|
9643
|
-
var styles$
|
|
9899
|
+
var styles$L = {"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"};
|
|
9644
9900
|
|
|
9645
9901
|
const SKELETON_COMPONENT = {
|
|
9646
9902
|
AVATAR: 'avatar',
|
|
@@ -9664,14 +9920,14 @@ const Skeleton = _ref => {
|
|
|
9664
9920
|
const positioning = usePositionStyles(positionStyles);
|
|
9665
9921
|
return React__default.createElement("div", {
|
|
9666
9922
|
"data-testid": testId,
|
|
9667
|
-
className: classnames(styles$
|
|
9668
|
-
[styles$
|
|
9669
|
-
[styles$
|
|
9670
|
-
[styles$
|
|
9671
|
-
[styles$
|
|
9672
|
-
[styles$
|
|
9673
|
-
[styles$
|
|
9674
|
-
[styles$
|
|
9923
|
+
className: classnames(styles$L['skeleton'], {
|
|
9924
|
+
[styles$L['skeleton__avatar']]: as === SKELETON_COMPONENT.AVATAR,
|
|
9925
|
+
[styles$L['skeleton__avatar--small']]: as === SKELETON_COMPONENT.AVATAR_SMALL,
|
|
9926
|
+
[styles$L['skeleton__avatar--medium']]: as === SKELETON_COMPONENT.AVATAR_MEDIUM,
|
|
9927
|
+
[styles$L['skeleton__avatar--large']]: as === SKELETON_COMPONENT.AVATAR_LARGE,
|
|
9928
|
+
[styles$L['skeleton__avatar--xlarge']]: as === SKELETON_COMPONENT.AVATAR_XLARGE,
|
|
9929
|
+
[styles$L['skeleton__button']]: as === SKELETON_COMPONENT.BUTTON,
|
|
9930
|
+
[styles$L['skeleton__pill']]: as === SKELETON_COMPONENT.PILL
|
|
9675
9931
|
}),
|
|
9676
9932
|
style: _extends({}, positioning, {
|
|
9677
9933
|
width: width,
|
|
@@ -9680,11 +9936,11 @@ const Skeleton = _ref => {
|
|
|
9680
9936
|
});
|
|
9681
9937
|
};
|
|
9682
9938
|
|
|
9683
|
-
var styles$
|
|
9939
|
+
var styles$K = {"data-table-row":"_hhDnr","data-table-row--clickable":"_ej5Ke","data-table-row--selected":"_qDTAh"};
|
|
9684
9940
|
|
|
9685
|
-
var styles$
|
|
9941
|
+
var styles$J = {"actions":"_ffXgN"};
|
|
9686
9942
|
|
|
9687
|
-
var styles$
|
|
9943
|
+
var styles$I = {"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-"};
|
|
9688
9944
|
|
|
9689
9945
|
const DataTableCellElement = ({
|
|
9690
9946
|
children,
|
|
@@ -9708,9 +9964,9 @@ const DataTableCellElement = ({
|
|
|
9708
9964
|
const hasError = !!error;
|
|
9709
9965
|
const errorMessage = error;
|
|
9710
9966
|
const icon = hasError && React__default.createElement("div", {
|
|
9711
|
-
className: classnames(styles$
|
|
9712
|
-
[styles$
|
|
9713
|
-
[styles$
|
|
9967
|
+
className: classnames(styles$I['data-table-cell__error-icon'], {
|
|
9968
|
+
[styles$I['data-table-cell__error-icon--right-align']]: isRightAligned,
|
|
9969
|
+
[styles$I['data-table-cell__error-icon--left-align']]: !isRightAligned
|
|
9714
9970
|
})
|
|
9715
9971
|
}, React__default.createElement(IconTimesOctagon, {
|
|
9716
9972
|
size: "medium",
|
|
@@ -9718,17 +9974,17 @@ const DataTableCellElement = ({
|
|
|
9718
9974
|
}));
|
|
9719
9975
|
const TableCell = React__default.createElement("td", {
|
|
9720
9976
|
className: classnames({
|
|
9721
|
-
[styles$
|
|
9722
|
-
[styles$
|
|
9723
|
-
[styles$
|
|
9724
|
-
}, styles$
|
|
9977
|
+
[styles$I['data-table-cell--invalid']]: hasError,
|
|
9978
|
+
[styles$I['data-table-cell--no-padding']]: _noPadding,
|
|
9979
|
+
[styles$I['data-table-cell--vertical-border']]: hasVerticalBorders
|
|
9980
|
+
}, styles$I['data-table-cell']),
|
|
9725
9981
|
colSpan: colSpan,
|
|
9726
9982
|
ref: ref
|
|
9727
9983
|
}, React__default.createElement("div", {
|
|
9728
|
-
className: classnames(styles$
|
|
9729
|
-
[styles$
|
|
9730
|
-
[styles$
|
|
9731
|
-
[styles$
|
|
9984
|
+
className: classnames(styles$I['data-table-cell__content'], {
|
|
9985
|
+
[styles$I['data-table-cell__content--with-error']]: hasError,
|
|
9986
|
+
[styles$I['data-table-cell__content--right-align']]: isRightAligned,
|
|
9987
|
+
[styles$I['data-table-cell__content--loading']]: state === DATA_TABLE_STATES.BACKGROUND_LOADING
|
|
9732
9988
|
})
|
|
9733
9989
|
}, isRightAligned && icon, children, !isRightAligned && icon));
|
|
9734
9990
|
return React__default.createElement(Tooltip, {
|
|
@@ -9752,7 +10008,7 @@ const DataTableRowActions = ({
|
|
|
9752
10008
|
return React__default.createElement(DataTableCell, {
|
|
9753
10009
|
columnIndex: columnIndex
|
|
9754
10010
|
}, React__default.createElement("div", {
|
|
9755
|
-
className: styles$
|
|
10011
|
+
className: styles$J['actions'],
|
|
9756
10012
|
"data-testid": "data-table-dropdown-menu"
|
|
9757
10013
|
}, state === 'SKELETON_LOADING' && React__default.createElement(Skeleton, {
|
|
9758
10014
|
width: 45
|
|
@@ -9765,7 +10021,7 @@ const DataTableRowActions = ({
|
|
|
9765
10021
|
})));
|
|
9766
10022
|
};
|
|
9767
10023
|
|
|
9768
|
-
var styles$
|
|
10024
|
+
var styles$H = {"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"};
|
|
9769
10025
|
|
|
9770
10026
|
const DataTableEditableCellElement = ({
|
|
9771
10027
|
name,
|
|
@@ -9814,8 +10070,8 @@ const DataTableEditableCellElement = ({
|
|
|
9814
10070
|
};
|
|
9815
10071
|
const EditableCell = React__default.createElement("div", {
|
|
9816
10072
|
className: classnames({
|
|
9817
|
-
[styles$
|
|
9818
|
-
}, styles$
|
|
10073
|
+
[styles$H['data-table-editable-cell--currency']]: _type === 'currency'
|
|
10074
|
+
}, styles$H['data-table-editable-cell']),
|
|
9819
10075
|
"data-testid": testId,
|
|
9820
10076
|
role: "cell"
|
|
9821
10077
|
}, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
@@ -9825,12 +10081,12 @@ const DataTableEditableCellElement = ({
|
|
|
9825
10081
|
name: name,
|
|
9826
10082
|
id: controllers.id,
|
|
9827
10083
|
className: classnames({
|
|
9828
|
-
[styles$
|
|
9829
|
-
[styles$
|
|
9830
|
-
[styles$
|
|
9831
|
-
[styles$
|
|
9832
|
-
[styles$
|
|
9833
|
-
[styles$
|
|
10084
|
+
[styles$H['data-table-editable-cell--right-aligned']]: isRightAligned,
|
|
10085
|
+
[styles$H['data-table-editable-cell--top-left']]: isTopLeftCell,
|
|
10086
|
+
[styles$H['data-table-editable-cell--top-right']]: isTopRightCell,
|
|
10087
|
+
[styles$H['data-table-editable-cell--bottom-left']]: isBottomLeftCell,
|
|
10088
|
+
[styles$H['data-table-editable-cell--bottom-right']]: isBottomRightCell,
|
|
10089
|
+
[styles$H['data-table-editable-cell--invalid']]: hasError
|
|
9834
10090
|
}),
|
|
9835
10091
|
type: _type === 'currency' ? 'number' : 'text',
|
|
9836
10092
|
step: _type === 'currency' ? 'any' : '',
|
|
@@ -9875,9 +10131,9 @@ const DataTableRowComponent = (_ref, ref) => {
|
|
|
9875
10131
|
const {
|
|
9876
10132
|
showActionMenu
|
|
9877
10133
|
} = useDataTableContext();
|
|
9878
|
-
const styleNames = classnames(styles$
|
|
9879
|
-
[styles$
|
|
9880
|
-
[styles$
|
|
10134
|
+
const styleNames = classnames(styles$K['data-table-row'], {
|
|
10135
|
+
[styles$K['data-table-row--clickable']]: onClick,
|
|
10136
|
+
[styles$K['data-table-row--selected']]: isSelected
|
|
9881
10137
|
});
|
|
9882
10138
|
const renderColumn = (columnElement, index) => {
|
|
9883
10139
|
const isUsingDataTableCell = columnElement && typeof columnElement === 'object' && 'type' in columnElement && (columnElement == null ? void 0 : columnElement.type) === DataTableCell;
|
|
@@ -9968,7 +10224,7 @@ const calculateScrollState = scrollContainer => {
|
|
|
9968
10224
|
return DATA_TABLE_SCROLL_STATES.NO_SCROLL;
|
|
9969
10225
|
};
|
|
9970
10226
|
|
|
9971
|
-
var styles$
|
|
10227
|
+
var styles$G = {"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"};
|
|
9972
10228
|
|
|
9973
10229
|
const useDataTableScrollState = stickyColumns => {
|
|
9974
10230
|
const scrollContainerRef = useRef(null);
|
|
@@ -10010,7 +10266,7 @@ const useDataTableScrollState = stickyColumns => {
|
|
|
10010
10266
|
};
|
|
10011
10267
|
};
|
|
10012
10268
|
|
|
10013
|
-
var styles$
|
|
10269
|
+
var styles$F = {"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"};
|
|
10014
10270
|
|
|
10015
10271
|
const DataTableCoverShadow = ({
|
|
10016
10272
|
isShowingColumns,
|
|
@@ -10028,11 +10284,11 @@ const DataTableCoverShadow = ({
|
|
|
10028
10284
|
return `calc(100% - ${headerHeight})`;
|
|
10029
10285
|
};
|
|
10030
10286
|
return React__default.createElement("div", {
|
|
10031
|
-
className: classnames(styles$
|
|
10032
|
-
[styles$
|
|
10033
|
-
[styles$
|
|
10034
|
-
[styles$
|
|
10035
|
-
[styles$
|
|
10287
|
+
className: classnames(styles$F['data-table-cover-shadow'], {
|
|
10288
|
+
[styles$F['data-table-cover-shadow--left']]: direction === 'left',
|
|
10289
|
+
[styles$F['data-table-cover-shadow--left-shadow']]: direction === 'left' && showShadow,
|
|
10290
|
+
[styles$F['data-table-cover-shadow--right']]: direction === 'right',
|
|
10291
|
+
[styles$F['data-table-cover-shadow--right-shadow']]: direction === 'right' && showShadow
|
|
10036
10292
|
}),
|
|
10037
10293
|
style: {
|
|
10038
10294
|
// @ts-expect-error This difines a custom CSS variable
|
|
@@ -10094,13 +10350,13 @@ const DataTableStickyColumnsContainer = ({
|
|
|
10094
10350
|
isShowingColumns: !!isShowingColumns,
|
|
10095
10351
|
showShadow: state === 'EMPTY' ? false : stickyColumns === 'left'
|
|
10096
10352
|
})), React__default.createElement("div", {
|
|
10097
|
-
className: classnames(styles$
|
|
10098
|
-
[styles$
|
|
10099
|
-
[styles$
|
|
10100
|
-
[styles$
|
|
10101
|
-
[styles$
|
|
10102
|
-
[styles$
|
|
10103
|
-
[styles$
|
|
10353
|
+
className: classnames(styles$G[containerClassName], {
|
|
10354
|
+
[styles$G[`${containerClassName}--with-footer`]]: isShowingFooter,
|
|
10355
|
+
[styles$G[`${containerClassName}--with-left-sticky-columns`]]: hasLeftColumnSticky,
|
|
10356
|
+
[styles$G[`${containerClassName}--with-left-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasLeftColumnSticky && hasScrollOnLeft : false,
|
|
10357
|
+
[styles$G[`${containerClassName}--with-right-sticky-columns`]]: hasRightColumnSticky,
|
|
10358
|
+
[styles$G[`${containerClassName}--with-right-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasRightColumnSticky && hasScrollOnRight : false,
|
|
10359
|
+
[styles$G[`${containerClassName}--no-shadow`]]: noShadow
|
|
10104
10360
|
}),
|
|
10105
10361
|
onScroll: onScroll,
|
|
10106
10362
|
ref: scrollContainerRef,
|
|
@@ -10108,11 +10364,11 @@ const DataTableStickyColumnsContainer = ({
|
|
|
10108
10364
|
}, children));
|
|
10109
10365
|
};
|
|
10110
10366
|
|
|
10111
|
-
var styles$
|
|
10367
|
+
var styles$E = {"data-table-empty-state":"_fCHjG"};
|
|
10112
10368
|
|
|
10113
|
-
var styles$
|
|
10369
|
+
var styles$D = {"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"};
|
|
10114
10370
|
|
|
10115
|
-
var styles$
|
|
10371
|
+
var styles$C = {"empty-state-container-cta":"_X-dEs","empty-state-container-cta--inside-modal":"_63-SX"};
|
|
10116
10372
|
|
|
10117
10373
|
const EmptyStateContainerCTA = ({
|
|
10118
10374
|
isPaywall,
|
|
@@ -10129,8 +10385,8 @@ const EmptyStateContainerCTA = ({
|
|
|
10129
10385
|
size: BUTTON_SIZES.MIN_WIDTH_100
|
|
10130
10386
|
});
|
|
10131
10387
|
return React__default.createElement("div", {
|
|
10132
|
-
className: classnames(styles$
|
|
10133
|
-
[styles$
|
|
10388
|
+
className: classnames(styles$C['empty-state-container-cta'], {
|
|
10389
|
+
[styles$C['empty-state-container-cta--inside-modal']]: _isInsideModal
|
|
10134
10390
|
})
|
|
10135
10391
|
}, primaryButton, secondaryButton);
|
|
10136
10392
|
};
|
|
@@ -10154,7 +10410,7 @@ const EmptyStateContainerStack = ({
|
|
|
10154
10410
|
mediaComponent
|
|
10155
10411
|
}) => {
|
|
10156
10412
|
return React__default.createElement("div", {
|
|
10157
|
-
className: styles$
|
|
10413
|
+
className: styles$D['empty-state-container-stack'],
|
|
10158
10414
|
"data-testid": testId
|
|
10159
10415
|
}, mediaComponent ? mediaComponent : mediaUrl && React__default.createElement("img", {
|
|
10160
10416
|
src: mediaUrl,
|
|
@@ -10171,7 +10427,7 @@ const EmptyStateContainerStack = ({
|
|
|
10171
10427
|
as: "body",
|
|
10172
10428
|
alignment: "center"
|
|
10173
10429
|
}, title), React__default.createElement("div", {
|
|
10174
|
-
className: styles$
|
|
10430
|
+
className: styles$D['empty-state-container-stack__body']
|
|
10175
10431
|
}, children)), React__default.createElement(Stack, {
|
|
10176
10432
|
space: 8,
|
|
10177
10433
|
alignItems: "center"
|
|
@@ -10283,7 +10539,7 @@ const DataTableEmptyState = ({
|
|
|
10283
10539
|
columnIndex: shouldRenderStickyLeftCell ? 1 : 0,
|
|
10284
10540
|
colSpan: colSpan
|
|
10285
10541
|
}, React__default.createElement("div", {
|
|
10286
|
-
className: styles$
|
|
10542
|
+
className: styles$E['data-table-empty-state']
|
|
10287
10543
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
10288
10544
|
mediaUrl: customImage,
|
|
10289
10545
|
mediaComponent: customImage === '' ? React__default.createElement(MagnifyingGlassIllustration, null) : undefined,
|
|
@@ -10367,7 +10623,7 @@ const DataTable = _ref => {
|
|
|
10367
10623
|
return null;
|
|
10368
10624
|
}
|
|
10369
10625
|
return React__default.createElement("div", {
|
|
10370
|
-
className: styles$
|
|
10626
|
+
className: styles$T['data-table__pagination-controls'],
|
|
10371
10627
|
"data-testid": testId && `${testId}-pagination-controls`
|
|
10372
10628
|
}, React__default.createElement(PaginationControls, {
|
|
10373
10629
|
hasPrevious: isLoading ? false : hasPrevious,
|
|
@@ -10390,7 +10646,7 @@ const DataTable = _ref => {
|
|
|
10390
10646
|
tableId
|
|
10391
10647
|
}
|
|
10392
10648
|
}, React__default.createElement("div", {
|
|
10393
|
-
className: classnames(styles$
|
|
10649
|
+
className: classnames(styles$T['data-table']),
|
|
10394
10650
|
ref: tableRef,
|
|
10395
10651
|
style: positionStyles
|
|
10396
10652
|
}, React__default.createElement(DataTableStickyColumnsContainer, {
|
|
@@ -10401,24 +10657,24 @@ const DataTable = _ref => {
|
|
|
10401
10657
|
placement: "top",
|
|
10402
10658
|
isShowingColumns: !!isShowingColumns
|
|
10403
10659
|
}), React__default.createElement("div", {
|
|
10404
|
-
className: classnames(styles$
|
|
10405
|
-
[styles$
|
|
10660
|
+
className: classnames(styles$T['data-table__content'], {
|
|
10661
|
+
[styles$T['data-table__content--with-scroll']]: isScrollableTable
|
|
10406
10662
|
}),
|
|
10407
10663
|
style: conditionalStyles,
|
|
10408
10664
|
id: `${tableId}-content`
|
|
10409
10665
|
}, state === DATA_TABLE_STATES.BACKGROUND_LOADING && React__default.createElement("div", {
|
|
10410
|
-
className: styles$
|
|
10666
|
+
className: styles$T['data-table__background-loading']
|
|
10411
10667
|
}, React__default.createElement(Spinner, null)), React__default.createElement("table", _extends({
|
|
10412
|
-
className: classnames(styles$
|
|
10413
|
-
[styles$
|
|
10668
|
+
className: classnames(styles$T['data-table__table'], {
|
|
10669
|
+
[styles$T['data-table__table--no-columns']]: !isShowingColumns
|
|
10414
10670
|
})
|
|
10415
10671
|
}, dataProps), columns && isShowingColumns && React__default.createElement(DataTableHeader, {
|
|
10416
10672
|
columns: columns,
|
|
10417
10673
|
onSort: onSort,
|
|
10418
10674
|
showActionMenu: isShowingContent && showActionMenu
|
|
10419
10675
|
}), React__default.createElement("tbody", {
|
|
10420
|
-
className: classnames(styles$
|
|
10421
|
-
[styles$
|
|
10676
|
+
className: classnames(styles$T['data-table__body'], {
|
|
10677
|
+
[styles$T['data-table__body--no-bottom-radius']]: isShowingFooter && isShowingContent
|
|
10422
10678
|
}),
|
|
10423
10679
|
"data-testid": testId
|
|
10424
10680
|
}, isShowingContent && content.map((item, index) => {
|
|
@@ -10437,7 +10693,7 @@ const DataTable = _ref => {
|
|
|
10437
10693
|
}), state === DATA_TABLE_STATES.SKELETON_LOADING && React__default.createElement(React__default.Fragment, null, skeletonRows.map((_, index) => React__default.createElement(SkeletonRow, {
|
|
10438
10694
|
key: index
|
|
10439
10695
|
})))), isShowingFooter && isShowingContent && React__default.createElement("tfoot", {
|
|
10440
|
-
className: styles$
|
|
10696
|
+
className: styles$T['data-table__footer'],
|
|
10441
10697
|
"data-testid": testId && `${testId}-footer`
|
|
10442
10698
|
}, footerComponent)))), !isShowingFooter && isScrollableTable && React__default.createElement(DataTableScrollFakeBorder, {
|
|
10443
10699
|
placement: "bottom",
|
|
@@ -10445,7 +10701,7 @@ const DataTable = _ref => {
|
|
|
10445
10701
|
})), React__default.createElement(Pagination, null));
|
|
10446
10702
|
};
|
|
10447
10703
|
|
|
10448
|
-
var styles$
|
|
10704
|
+
var styles$B = {"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"};
|
|
10449
10705
|
|
|
10450
10706
|
const AccordionItem = props => {
|
|
10451
10707
|
const {
|
|
@@ -10460,9 +10716,9 @@ const AccordionItem = props => {
|
|
|
10460
10716
|
} = item;
|
|
10461
10717
|
const isFocusedByClickRef = React__default.useRef(false);
|
|
10462
10718
|
return React__default.createElement("div", {
|
|
10463
|
-
className: styles$
|
|
10719
|
+
className: styles$B['accordion-item']
|
|
10464
10720
|
}, React__default.createElement("button", {
|
|
10465
|
-
className: styles$
|
|
10721
|
+
className: styles$B['accordion-item__header'],
|
|
10466
10722
|
onClick: () => {
|
|
10467
10723
|
if (isOpen) {
|
|
10468
10724
|
handleAccordionItemOpen(null);
|
|
@@ -10489,15 +10745,15 @@ const AccordionItem = props => {
|
|
|
10489
10745
|
}, typeof title === 'string' ? React__default.createElement(Text, {
|
|
10490
10746
|
emphasis: "bold"
|
|
10491
10747
|
}, title) : title, React__default.createElement(IconChevronDown, {
|
|
10492
|
-
className: styles$
|
|
10748
|
+
className: styles$B[`accordion-item__icon${isOpen ? '--active' : ''}`],
|
|
10493
10749
|
color: 'surface-on-color-subtle'
|
|
10494
10750
|
}))), React__default.createElement("div", {
|
|
10495
10751
|
"data-testid": `${isOpen ? 'accordion-item-' + id + '-open' : 'accordion-item-' + id + '-closed'}`,
|
|
10496
|
-
className: styles$
|
|
10752
|
+
className: styles$B[`accordion-item__content${isOpen ? '--active' : ''}`]
|
|
10497
10753
|
}, isOpen && React__default.createElement(Text, null, content)));
|
|
10498
10754
|
};
|
|
10499
10755
|
|
|
10500
|
-
var styles$
|
|
10756
|
+
var styles$A = {"accordion":"_058SP"};
|
|
10501
10757
|
|
|
10502
10758
|
const _excluded$e = ["items", "onExpand", "defaultOpenId"];
|
|
10503
10759
|
const Accordion = _ref => {
|
|
@@ -10525,7 +10781,7 @@ const Accordion = _ref => {
|
|
|
10525
10781
|
isAccordionMounted: true
|
|
10526
10782
|
}
|
|
10527
10783
|
}, React__default.createElement("div", _extends({
|
|
10528
|
-
className: styles$
|
|
10784
|
+
className: styles$A['accordion']
|
|
10529
10785
|
}, dataProps), items.map((item, index) => {
|
|
10530
10786
|
const id = item.id || index.toString();
|
|
10531
10787
|
return React__default.createElement(AccordionItem, {
|
|
@@ -10539,7 +10795,7 @@ const Accordion = _ref => {
|
|
|
10539
10795
|
})));
|
|
10540
10796
|
};
|
|
10541
10797
|
|
|
10542
|
-
var styles$
|
|
10798
|
+
var styles$z = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
|
|
10543
10799
|
|
|
10544
10800
|
const ActionList = ({
|
|
10545
10801
|
children,
|
|
@@ -10551,15 +10807,15 @@ const ActionList = ({
|
|
|
10551
10807
|
const translate = useTranslation('ActionList');
|
|
10552
10808
|
const hasChildren = React__default.Children.count(children) > 0;
|
|
10553
10809
|
return React__default.createElement("div", {
|
|
10554
|
-
className: styles$
|
|
10810
|
+
className: styles$z['action-list'],
|
|
10555
10811
|
"data-testid": testId,
|
|
10556
10812
|
style: {
|
|
10557
10813
|
maxHeight: maxHeight
|
|
10558
10814
|
}
|
|
10559
10815
|
}, title && React__default.createElement("div", {
|
|
10560
|
-
className: styles$
|
|
10816
|
+
className: styles$z['action-list__title']
|
|
10561
10817
|
}, title), hasChildren ? children : React__default.createElement("div", {
|
|
10562
|
-
className: styles$
|
|
10818
|
+
className: styles$z['action-list__empty-state']
|
|
10563
10819
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
10564
10820
|
title: (emptyState == null ? void 0 : emptyState.title) || translate('emptyStateTitle'),
|
|
10565
10821
|
mediaUrl: emptyState == null ? void 0 : emptyState.image,
|
|
@@ -10737,7 +10993,7 @@ const useSelectFieldControllers = ({
|
|
|
10737
10993
|
return controllers;
|
|
10738
10994
|
};
|
|
10739
10995
|
|
|
10740
|
-
var styles$
|
|
10996
|
+
var styles$y = {"custom-control":"_pXQqq"};
|
|
10741
10997
|
|
|
10742
10998
|
const _excluded$d = ["children"];
|
|
10743
10999
|
function CustomControl(_ref) {
|
|
@@ -10751,7 +11007,7 @@ function CustomControl(_ref) {
|
|
|
10751
11007
|
} = props.selectProps.componentsProps;
|
|
10752
11008
|
const selectedOption = (_props$getValue = props.getValue()) == null ? void 0 : _props$getValue[0];
|
|
10753
11009
|
return React__default.createElement(components.Control, _extends({}, props), SelectedOptionPrefix && selectedOption ? React__default.createElement("div", {
|
|
10754
|
-
className: styles$
|
|
11010
|
+
className: styles$y['custom-control'],
|
|
10755
11011
|
style: {
|
|
10756
11012
|
paddingLeft: selectedOption ? 8 : 0
|
|
10757
11013
|
}
|
|
@@ -10930,9 +11186,9 @@ const CustomContainer = props => {
|
|
|
10930
11186
|
}));
|
|
10931
11187
|
};
|
|
10932
11188
|
|
|
10933
|
-
var styles$
|
|
11189
|
+
var styles$x = {"custom-menu-text-field":"_AAUjm","custom-menu-hr":"_mFLK9","custom-menu-div":"_1XpI4"};
|
|
10934
11190
|
|
|
10935
|
-
var styles$
|
|
11191
|
+
var styles$w = {"creatable-button--align-left":"_Qw267","creatable-button":"_f9V5D"};
|
|
10936
11192
|
|
|
10937
11193
|
/**
|
|
10938
11194
|
* Shared creatable button component used in CustomMenu and CustomGroupWithCreate.
|
|
@@ -10956,8 +11212,8 @@ const CreatableButton = ({
|
|
|
10956
11212
|
};
|
|
10957
11213
|
if (!button || typeof button === 'string') {
|
|
10958
11214
|
return React__default.createElement("div", {
|
|
10959
|
-
className: classnames(styles$
|
|
10960
|
-
[styles$
|
|
11215
|
+
className: classnames(styles$w['creatable-button'], {
|
|
11216
|
+
[styles$w['creatable-button--align-left']]: _alignLeft
|
|
10961
11217
|
})
|
|
10962
11218
|
}, React__default.createElement(Button, {
|
|
10963
11219
|
theme: "link-primary",
|
|
@@ -10982,8 +11238,8 @@ const CreatableButton = ({
|
|
|
10982
11238
|
overrideProps.theme = 'link-primary';
|
|
10983
11239
|
}
|
|
10984
11240
|
return React__default.createElement("div", {
|
|
10985
|
-
className: classnames(styles$
|
|
10986
|
-
[styles$
|
|
11241
|
+
className: classnames(styles$w['creatable-button'], {
|
|
11242
|
+
[styles$w['creatable-button--align-left']]: _alignLeft
|
|
10987
11243
|
})
|
|
10988
11244
|
}, React__default.cloneElement(button, overrideProps));
|
|
10989
11245
|
};
|
|
@@ -11009,7 +11265,7 @@ const CreateInputForm = ({
|
|
|
11009
11265
|
flex: [1],
|
|
11010
11266
|
flexItems: true
|
|
11011
11267
|
}, React__default.createElement("input", {
|
|
11012
|
-
className: classnames(styles$
|
|
11268
|
+
className: classnames(styles$1e['text-field'], inputClassName),
|
|
11013
11269
|
autoCorrect: "off",
|
|
11014
11270
|
autoComplete: "off",
|
|
11015
11271
|
spellCheck: "false",
|
|
@@ -11075,7 +11331,7 @@ function CustomMenu(_ref) {
|
|
|
11075
11331
|
return React__default.createElement(components.Menu, _extends({}, props), React__default.createElement("div", {
|
|
11076
11332
|
ref: containerRef
|
|
11077
11333
|
}, children, React__default.createElement("hr", {
|
|
11078
|
-
className: styles$
|
|
11334
|
+
className: styles$x['custom-menu-hr']
|
|
11079
11335
|
}), !showFooter ? React__default.createElement(CreatableButton, {
|
|
11080
11336
|
creatableButton: creatableButton,
|
|
11081
11337
|
onClick: () => setShowFooter(true),
|
|
@@ -11086,13 +11342,13 @@ function CustomMenu(_ref) {
|
|
|
11086
11342
|
onMenuInputFocus: onMenuInputFocus,
|
|
11087
11343
|
onSubmit: onCreateButton,
|
|
11088
11344
|
defaultValue: inputDefaultValue,
|
|
11089
|
-
wrapperClassName: styles$
|
|
11090
|
-
inputClassName: styles$
|
|
11345
|
+
wrapperClassName: styles$x['custom-menu-div'],
|
|
11346
|
+
inputClassName: styles$x['custom-menu-text-field'],
|
|
11091
11347
|
testId: "select-create-option-input"
|
|
11092
11348
|
})));
|
|
11093
11349
|
}
|
|
11094
11350
|
|
|
11095
|
-
var styles$
|
|
11351
|
+
var styles$v = {"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"};
|
|
11096
11352
|
|
|
11097
11353
|
function CustomGroupWithCreate(props) {
|
|
11098
11354
|
const {
|
|
@@ -11126,7 +11382,7 @@ function CustomGroupWithCreate(props) {
|
|
|
11126
11382
|
return React__default.createElement("div", {
|
|
11127
11383
|
ref: containerRef
|
|
11128
11384
|
}, React__default.createElement(components.Group, _extends({}, props)), !isInputActive ? React__default.createElement("div", {
|
|
11129
|
-
className: styles$
|
|
11385
|
+
className: styles$v['custom-group-with-create-button-wrapper']
|
|
11130
11386
|
}, React__default.createElement(CreatableButton, {
|
|
11131
11387
|
creatableButton: creatableButton,
|
|
11132
11388
|
onClick: () => setActiveGroupLabel(groupLabel),
|
|
@@ -11138,8 +11394,8 @@ function CustomGroupWithCreate(props) {
|
|
|
11138
11394
|
onMenuInputFocus: onMenuInputFocus,
|
|
11139
11395
|
onSubmit: onCreateButton,
|
|
11140
11396
|
defaultValue: inputDefaultValue,
|
|
11141
|
-
wrapperClassName: styles$
|
|
11142
|
-
inputClassName: styles$
|
|
11397
|
+
wrapperClassName: styles$v['custom-group-with-create-input-wrapper'],
|
|
11398
|
+
inputClassName: styles$v['custom-group-with-create-text-field'],
|
|
11143
11399
|
testId: `select-create-option-input-${groupLabel}`
|
|
11144
11400
|
}));
|
|
11145
11401
|
}
|
|
@@ -11248,7 +11504,7 @@ const useSelectField = _ref => {
|
|
|
11248
11504
|
};
|
|
11249
11505
|
};
|
|
11250
11506
|
|
|
11251
|
-
var styles$
|
|
11507
|
+
var styles$u = {"select-field__suffix":"_vqC1M"};
|
|
11252
11508
|
|
|
11253
11509
|
/** Component to make possible choose from a predefined options. */
|
|
11254
11510
|
const SelectField = props => {
|
|
@@ -11258,7 +11514,7 @@ const SelectField = props => {
|
|
|
11258
11514
|
} = useSelectField(props);
|
|
11259
11515
|
//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
|
|
11260
11516
|
const suffixWithMargin = props.suffix ? React__default.createElement("div", {
|
|
11261
|
-
className: styles$
|
|
11517
|
+
className: styles$u['select-field__suffix']
|
|
11262
11518
|
}, props.suffix) : undefined;
|
|
11263
11519
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
11264
11520
|
prefix: props.prefix,
|
|
@@ -11303,9 +11559,9 @@ const ToolbarSelect = _ref => {
|
|
|
11303
11559
|
}, rest));
|
|
11304
11560
|
};
|
|
11305
11561
|
|
|
11306
|
-
var styles$
|
|
11562
|
+
var styles$t = {"date-filter":"_PyXfe","date-filter--wide":"_P6ttU"};
|
|
11307
11563
|
|
|
11308
|
-
var styles$
|
|
11564
|
+
var styles$s = {"date-filter-display":"_N37zE","date-filter-display--non-interactive":"_42Bvz","date-filter-display--wide":"_h8n2w","date-filter-display__display-icon":"_i08yV"};
|
|
11309
11565
|
|
|
11310
11566
|
const DATE_FILTER_MODE = {
|
|
11311
11567
|
DAY: 'day',
|
|
@@ -11359,8 +11615,8 @@ const DateFilterDisplay = forwardRef(({
|
|
|
11359
11615
|
onClick
|
|
11360
11616
|
}, ref) => {
|
|
11361
11617
|
return React__default.createElement("button", {
|
|
11362
|
-
className: classnames(styles$
|
|
11363
|
-
[styles$
|
|
11618
|
+
className: classnames(styles$s['date-filter-display'], {
|
|
11619
|
+
[styles$s['date-filter-display--wide']]: mode === DATE_FILTER_MODE.WEEK
|
|
11364
11620
|
}),
|
|
11365
11621
|
onClick: onClick,
|
|
11366
11622
|
tabIndex: mode === DATE_FILTER_MODE.MONTH ? -1 : undefined,
|
|
@@ -11369,7 +11625,7 @@ const DateFilterDisplay = forwardRef(({
|
|
|
11369
11625
|
space: 12,
|
|
11370
11626
|
alignItems: "center"
|
|
11371
11627
|
}, React__default.createElement("div", {
|
|
11372
|
-
className: classnames(styles$
|
|
11628
|
+
className: classnames(styles$s['date-filter-display__display-icon'])
|
|
11373
11629
|
}, React__default.createElement(IconCalendarAlt, {
|
|
11374
11630
|
size: "flexible",
|
|
11375
11631
|
color: "surface-on-color-subtle"
|
|
@@ -11380,7 +11636,7 @@ const DateFilterDisplay = forwardRef(({
|
|
|
11380
11636
|
})));
|
|
11381
11637
|
});
|
|
11382
11638
|
|
|
11383
|
-
var styles$
|
|
11639
|
+
var styles$r = {"date-stepper":"_9wFtw","date-stepper--backward":"_OrtcR","date-stepper--forward":"_oYoUt"};
|
|
11384
11640
|
|
|
11385
11641
|
const handleDateStepper = (date, mode, stepDirection, onChange) => {
|
|
11386
11642
|
const step = stepDirection === STEP_DIRECTION.FORWARD ? 1 : -1;
|
|
@@ -11409,9 +11665,9 @@ const DateFilterStepper = ({
|
|
|
11409
11665
|
date
|
|
11410
11666
|
}) => {
|
|
11411
11667
|
return React__default.createElement("button", {
|
|
11412
|
-
className: classnames(styles$
|
|
11413
|
-
[styles$
|
|
11414
|
-
[styles$
|
|
11668
|
+
className: classnames(styles$r['date-stepper'], {
|
|
11669
|
+
[styles$r['date-stepper--backward']]: stepDirection === STEP_DIRECTION.BACKWARD,
|
|
11670
|
+
[styles$r['date-stepper--forward']]: stepDirection === STEP_DIRECTION.FORWARD
|
|
11415
11671
|
}),
|
|
11416
11672
|
onClick: () => handleDateStepper(date, mode, stepDirection, onChange)
|
|
11417
11673
|
}, children);
|
|
@@ -11476,9 +11732,9 @@ const CalendarMonth = ({
|
|
|
11476
11732
|
}
|
|
11477
11733
|
const MONTHS = [...Array(12).keys()];
|
|
11478
11734
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
11479
|
-
className: styles$
|
|
11735
|
+
className: styles$Y['calendar']
|
|
11480
11736
|
}, React__default.createElement("div", {
|
|
11481
|
-
className: styles$
|
|
11737
|
+
className: styles$Y['calendar__overlay'],
|
|
11482
11738
|
ref: ref => setCalendarRef(ref),
|
|
11483
11739
|
style: _extends({}, calendarPosition, {
|
|
11484
11740
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -11555,8 +11811,8 @@ const DateFilter = ({
|
|
|
11555
11811
|
const onClickOutside = useCallback(() => setCalendarOpen(false), [setCalendarOpen]);
|
|
11556
11812
|
return React__default.createElement("div", {
|
|
11557
11813
|
"data-testid": testId,
|
|
11558
|
-
className: classnames(styles$
|
|
11559
|
-
[styles$
|
|
11814
|
+
className: classnames(styles$t['date-filter'], {
|
|
11815
|
+
[styles$t['date-filter--wide']]: _mode === DATE_FILTER_MODE.WEEK
|
|
11560
11816
|
})
|
|
11561
11817
|
}, React__default.createElement(Inline, {
|
|
11562
11818
|
space: 0
|
|
@@ -11599,7 +11855,7 @@ const DateFilter = ({
|
|
|
11599
11855
|
}));
|
|
11600
11856
|
};
|
|
11601
11857
|
|
|
11602
|
-
var styles$
|
|
11858
|
+
var styles$q = {"segmented-control":"_RezMY","segmented-control__button":"_lehFG","segmented-control__button--selected":"_Fr5kb"};
|
|
11603
11859
|
|
|
11604
11860
|
const SegmentedControl = ({
|
|
11605
11861
|
options,
|
|
@@ -11611,21 +11867,21 @@ const SegmentedControl = ({
|
|
|
11611
11867
|
return option === value;
|
|
11612
11868
|
};
|
|
11613
11869
|
return React__default.createElement("div", {
|
|
11614
|
-
className: styles$
|
|
11870
|
+
className: styles$q['segmented-control'],
|
|
11615
11871
|
"data-testid": testId
|
|
11616
11872
|
}, options.map(option => React__default.createElement(React__default.Fragment, {
|
|
11617
11873
|
key: option
|
|
11618
11874
|
}, React__default.createElement("button", {
|
|
11619
11875
|
onClick: () => onChange(option),
|
|
11620
|
-
className: classnames(styles$
|
|
11621
|
-
[styles$
|
|
11876
|
+
className: classnames(styles$q['segmented-control__button'], {
|
|
11877
|
+
[styles$q['segmented-control__button--selected']]: isSelected(option)
|
|
11622
11878
|
})
|
|
11623
11879
|
}, option))));
|
|
11624
11880
|
};
|
|
11625
11881
|
|
|
11626
|
-
var styles$
|
|
11882
|
+
var styles$p = {"form--standard-size":"_8-Ykj"};
|
|
11627
11883
|
|
|
11628
|
-
var styles$
|
|
11884
|
+
var styles$o = {"form-section":"_3uYIj","form-section__title":"_2WdOf","form-section__subtitle":"_zybxx","form-section--no-margin":"_xT-U1"};
|
|
11629
11885
|
|
|
11630
11886
|
const FormSection = ({
|
|
11631
11887
|
children,
|
|
@@ -11638,13 +11894,13 @@ const FormSection = ({
|
|
|
11638
11894
|
const content = React__default.createElement(Stack, null, (title || subtitle) && React__default.createElement(Stack, {
|
|
11639
11895
|
space: 8
|
|
11640
11896
|
}, title && React__default.createElement("h2", {
|
|
11641
|
-
className: classnames(styles$
|
|
11897
|
+
className: classnames(styles$o['form-section__title'])
|
|
11642
11898
|
}, title), subtitle && React__default.createElement("h3", {
|
|
11643
|
-
className: classnames(styles$
|
|
11899
|
+
className: classnames(styles$o['form-section__subtitle'])
|
|
11644
11900
|
}, subtitle)), children);
|
|
11645
11901
|
return React__default.createElement("div", {
|
|
11646
|
-
className: classnames(styles$
|
|
11647
|
-
[styles$
|
|
11902
|
+
className: classnames(styles$o['form-section'], {
|
|
11903
|
+
[styles$o['form-section--no-margin']]: _noMargin || as === 'card'
|
|
11648
11904
|
}),
|
|
11649
11905
|
"data-testid": testId
|
|
11650
11906
|
}, as === 'card' ? React__default.createElement(Card, {
|
|
@@ -11664,7 +11920,7 @@ const updateButtonProps = (child, newProps) => {
|
|
|
11664
11920
|
}, newProps, child.props));
|
|
11665
11921
|
};
|
|
11666
11922
|
|
|
11667
|
-
var styles$
|
|
11923
|
+
var styles$n = {"form-footer":"_4ksfB"};
|
|
11668
11924
|
|
|
11669
11925
|
const FormFooterActions = ({
|
|
11670
11926
|
actions
|
|
@@ -11700,7 +11956,7 @@ const FormFooter = ({
|
|
|
11700
11956
|
});
|
|
11701
11957
|
const isInlineChildren = React__default.Children.count(children) === 1 && React__default.isValidElement(children) && children.type === Inline;
|
|
11702
11958
|
return React__default.createElement("div", {
|
|
11703
|
-
className: classnames(styles$
|
|
11959
|
+
className: classnames(styles$n['form-footer']),
|
|
11704
11960
|
"data-testid": testId
|
|
11705
11961
|
}, actions && React__default.createElement(FormFooterActions, {
|
|
11706
11962
|
actions: actions
|
|
@@ -11738,13 +11994,13 @@ const Form = ({
|
|
|
11738
11994
|
}, React__default.createElement("form", {
|
|
11739
11995
|
onSubmit: onSubmit ? handleSubmit : formik == null ? void 0 : formik.handleSubmit,
|
|
11740
11996
|
className: classnames({
|
|
11741
|
-
[styles$
|
|
11997
|
+
[styles$p['form--standard-size']]: !_wide
|
|
11742
11998
|
}),
|
|
11743
11999
|
"data-testid": testId
|
|
11744
12000
|
}, _stackContent ? React__default.createElement(Stack, null, formattedChildren) : formattedChildren));
|
|
11745
12001
|
};
|
|
11746
12002
|
|
|
11747
|
-
var styles$
|
|
12003
|
+
var styles$m = {"form-row":"_xX-RS"};
|
|
11748
12004
|
|
|
11749
12005
|
const SIZE_25_PERCENT = '25%';
|
|
11750
12006
|
const SIZE_33_PERCENT = '33.333%';
|
|
@@ -11771,14 +12027,14 @@ const FormRow = ({
|
|
|
11771
12027
|
space: _space,
|
|
11772
12028
|
testId: testId,
|
|
11773
12029
|
alignItems: "stretch",
|
|
11774
|
-
extraClass: styles$
|
|
12030
|
+
extraClass: styles$m['form-row']
|
|
11775
12031
|
}, children, additionalColumns.map((_, index) => React__default.createElement("span", {
|
|
11776
12032
|
key: index,
|
|
11777
12033
|
"data-testid": "empty-cell"
|
|
11778
12034
|
})));
|
|
11779
12035
|
};
|
|
11780
12036
|
|
|
11781
|
-
var styles$
|
|
12037
|
+
var styles$l = {"text-field":"_JaB08","text-field--focus":"_62RIR","text-field--disabled":"_CDt23","text-field--invalid":"_wf4XP","text-field__toolbar":"_7xVsj"};
|
|
11782
12038
|
|
|
11783
12039
|
const useGrowTextAreaRef = (minHeight, maxHeight, autoGrow, forwardedRef) => {
|
|
11784
12040
|
const textareaRef = useRef(null);
|
|
@@ -11847,10 +12103,10 @@ const TextAreaField = ({
|
|
|
11847
12103
|
return React__default.createElement(Field, _extends({}, fieldProps, {
|
|
11848
12104
|
characterCount: controllers.value !== undefined && maxLength ? maxLength - controllers.value.length : undefined
|
|
11849
12105
|
}), React__default.createElement("div", {
|
|
11850
|
-
className: classnames(styles$
|
|
11851
|
-
[styles$
|
|
11852
|
-
[styles$
|
|
11853
|
-
[styles$
|
|
12106
|
+
className: classnames(styles$l['text-field'], {
|
|
12107
|
+
[styles$l['text-field--invalid']]: hasError,
|
|
12108
|
+
[styles$l['text-field--disabled']]: disabled,
|
|
12109
|
+
[styles$l['text-field--focus']]: hasFocus
|
|
11854
12110
|
}),
|
|
11855
12111
|
ref: containerRef,
|
|
11856
12112
|
onClick: event => {
|
|
@@ -11882,7 +12138,7 @@ const TextAreaField = ({
|
|
|
11882
12138
|
ref: textAreaRef,
|
|
11883
12139
|
maxLength: maxLength
|
|
11884
12140
|
}), toolbar && React__default.createElement("div", {
|
|
11885
|
-
className: styles$
|
|
12141
|
+
className: styles$l['text-field__toolbar'],
|
|
11886
12142
|
id: `${controllers.id}-toolbar`,
|
|
11887
12143
|
ref: toolbarRef,
|
|
11888
12144
|
onClick: event => {
|
|
@@ -11916,7 +12172,7 @@ const TextFieldElement = (_ref, ref) => {
|
|
|
11916
12172
|
};
|
|
11917
12173
|
const TextField = forwardRef(TextFieldElement);
|
|
11918
12174
|
|
|
11919
|
-
var styles$
|
|
12175
|
+
var styles$k = {"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"};
|
|
11920
12176
|
|
|
11921
12177
|
const useMultiSelectFieldControllers = ({
|
|
11922
12178
|
name,
|
|
@@ -11981,10 +12237,10 @@ const CreatableOption = ({
|
|
|
11981
12237
|
};
|
|
11982
12238
|
return React__default.createElement(React__default.Fragment, null, !isCreatingOption && React__default.createElement("div", {
|
|
11983
12239
|
key: 'pill-select-field-create-option',
|
|
11984
|
-
className: styles$
|
|
12240
|
+
className: styles$k['pill-select-field']
|
|
11985
12241
|
}, React__default.createElement("button", {
|
|
11986
12242
|
"data-testid": testId ? `${testId}-create-option` : undefined,
|
|
11987
|
-
className: styles$
|
|
12243
|
+
className: styles$k['pill-select-field__add-new-input'],
|
|
11988
12244
|
onClick: () => {
|
|
11989
12245
|
setIsCreatingOption(true);
|
|
11990
12246
|
setNewOptionLabel('');
|
|
@@ -11993,9 +12249,9 @@ const CreatableOption = ({
|
|
|
11993
12249
|
size: "small"
|
|
11994
12250
|
}), createOptionLabel)), isCreatingOption && React__default.createElement("div", {
|
|
11995
12251
|
key: 'pill-select-field-creating-option',
|
|
11996
|
-
className: styles$
|
|
12252
|
+
className: styles$k['pill-select-field']
|
|
11997
12253
|
}, React__default.createElement("input", {
|
|
11998
|
-
className: styles$
|
|
12254
|
+
className: styles$k['pill-select-field__creating-input'],
|
|
11999
12255
|
name: `${name}-pill-select-field-creating-option`,
|
|
12000
12256
|
id: 'pill-select-field-creating-option',
|
|
12001
12257
|
type: "text",
|
|
@@ -12016,7 +12272,7 @@ const CreatableOption = ({
|
|
|
12016
12272
|
}
|
|
12017
12273
|
}
|
|
12018
12274
|
}), React__default.createElement("span", {
|
|
12019
|
-
className: styles$
|
|
12275
|
+
className: styles$k['pill-select-field__creating-custom-input']
|
|
12020
12276
|
}, !newOptionLabel && React__default.createElement(Text, {
|
|
12021
12277
|
as: "body",
|
|
12022
12278
|
color: "surface-on-color-disabled"
|
|
@@ -12067,7 +12323,7 @@ const PillSelectField = ({
|
|
|
12067
12323
|
}
|
|
12068
12324
|
};
|
|
12069
12325
|
return React__default.createElement("button", {
|
|
12070
|
-
className: styles$
|
|
12326
|
+
className: styles$k['pill-select-field__removable-icon'],
|
|
12071
12327
|
onClick: handleClick,
|
|
12072
12328
|
disabled: disabled
|
|
12073
12329
|
}, React__default.createElement(IconTimes, {
|
|
@@ -12084,7 +12340,7 @@ const PillSelectField = ({
|
|
|
12084
12340
|
const itemId = `${controllers.id}-${itemIdentifier}`;
|
|
12085
12341
|
return React__default.createElement("div", {
|
|
12086
12342
|
key: itemIdentifier,
|
|
12087
|
-
className: styles$
|
|
12343
|
+
className: styles$k['pill-select-field']
|
|
12088
12344
|
}, React__default.createElement("input", {
|
|
12089
12345
|
name: `${name}-${itemIdentifier}`,
|
|
12090
12346
|
id: itemId,
|
|
@@ -12104,7 +12360,7 @@ const PillSelectField = ({
|
|
|
12104
12360
|
controllers.onChange(newValue);
|
|
12105
12361
|
}
|
|
12106
12362
|
}), React__default.createElement("span", {
|
|
12107
|
-
className: styles$
|
|
12363
|
+
className: styles$k['pill-select-field__custom-input']
|
|
12108
12364
|
}, option.label, option.isRemovable && React__default.createElement(RemoveButton, {
|
|
12109
12365
|
option: option
|
|
12110
12366
|
})));
|
|
@@ -12153,9 +12409,9 @@ const useRadioGroupFieldContext = () => {
|
|
|
12153
12409
|
return context;
|
|
12154
12410
|
};
|
|
12155
12411
|
|
|
12156
|
-
var styles$
|
|
12412
|
+
var styles$j = {"label":"_xzukU","label--truncate":"_iVWRB","caption":"_JNfQO","radio-group-field__label":"_2KvuU","radio-group-field__caption":"_ZeIOd"};
|
|
12157
12413
|
|
|
12158
|
-
var styles$
|
|
12414
|
+
var styles$i = {"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"};
|
|
12159
12415
|
|
|
12160
12416
|
const RadioGroupBoxOption = ({
|
|
12161
12417
|
value,
|
|
@@ -12172,7 +12428,7 @@ const RadioGroupBoxOption = ({
|
|
|
12172
12428
|
id: inputId
|
|
12173
12429
|
});
|
|
12174
12430
|
return React__default.createElement("label", {
|
|
12175
|
-
className: styles$
|
|
12431
|
+
className: styles$i['radio-group-box-option']
|
|
12176
12432
|
}, React__default.createElement("input", {
|
|
12177
12433
|
type: "radio",
|
|
12178
12434
|
"data-testid": testId,
|
|
@@ -12183,8 +12439,8 @@ const RadioGroupBoxOption = ({
|
|
|
12183
12439
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
12184
12440
|
disabled: radioGroupContext.disabled || disabled
|
|
12185
12441
|
}), React__default.createElement("div", {
|
|
12186
|
-
className: classnames(styles$
|
|
12187
|
-
[styles$
|
|
12442
|
+
className: classnames(styles$i['radio-group-box-option__box'], {
|
|
12443
|
+
[styles$i['radio-group-box-option__box--disabled']]: radioGroupContext.disabled || disabled
|
|
12188
12444
|
})
|
|
12189
12445
|
}, React__default.createElement(Stack, {
|
|
12190
12446
|
space: 16,
|
|
@@ -12194,17 +12450,17 @@ const RadioGroupBoxOption = ({
|
|
|
12194
12450
|
space: 8,
|
|
12195
12451
|
alignItems: "center"
|
|
12196
12452
|
}, label && React__default.createElement("div", {
|
|
12197
|
-
className: classnames(styles$
|
|
12198
|
-
[styles$
|
|
12453
|
+
className: classnames(styles$i['radio-group-box-option__label'], {
|
|
12454
|
+
[styles$i['radio-group-box-option__label--disabled']]: radioGroupContext.disabled || disabled
|
|
12199
12455
|
})
|
|
12200
12456
|
}, label), caption && React__default.createElement("div", {
|
|
12201
|
-
className: classnames(styles$
|
|
12202
|
-
[styles$
|
|
12457
|
+
className: classnames(styles$i['radio-group-box-option__caption'], {
|
|
12458
|
+
[styles$i['radio-group-box-option__caption--disabled']]: radioGroupContext.disabled || disabled
|
|
12203
12459
|
})
|
|
12204
12460
|
}, caption)))));
|
|
12205
12461
|
};
|
|
12206
12462
|
|
|
12207
|
-
var styles$
|
|
12463
|
+
var styles$h = {"radio-group-option":"_7fVpn","radio-group-option__caption":"_VD7SO","radio-group-option__custom-input":"_Yfxkl"};
|
|
12208
12464
|
|
|
12209
12465
|
/** RadioGroupField form element. */
|
|
12210
12466
|
const RadioGroupOption = ({
|
|
@@ -12226,7 +12482,7 @@ const RadioGroupOption = ({
|
|
|
12226
12482
|
space: 8,
|
|
12227
12483
|
alignItems: "center"
|
|
12228
12484
|
}, React__default.createElement("div", {
|
|
12229
|
-
className: styles$
|
|
12485
|
+
className: styles$h['radio-group-option']
|
|
12230
12486
|
}, React__default.createElement("input", {
|
|
12231
12487
|
type: "radio",
|
|
12232
12488
|
"data-testid": testId,
|
|
@@ -12237,11 +12493,11 @@ const RadioGroupOption = ({
|
|
|
12237
12493
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
12238
12494
|
disabled: radioGroupContext.disabled || disabled
|
|
12239
12495
|
}), React__default.createElement("span", {
|
|
12240
|
-
className: styles$
|
|
12496
|
+
className: styles$h['radio-group-option__custom-input']
|
|
12241
12497
|
})), label && React__default.createElement(Label, {
|
|
12242
12498
|
htmlFor: id
|
|
12243
12499
|
}, label)), caption && React__default.createElement("div", {
|
|
12244
|
-
className: styles$
|
|
12500
|
+
className: styles$h['radio-group-option__caption']
|
|
12245
12501
|
}, React__default.createElement(Caption, {
|
|
12246
12502
|
fieldId: id
|
|
12247
12503
|
}, caption)));
|
|
@@ -12372,7 +12628,7 @@ const RadioGroupField = ({
|
|
|
12372
12628
|
}, React__default.createElement(Stack, {
|
|
12373
12629
|
space: _space
|
|
12374
12630
|
}, label && React__default.createElement("div", {
|
|
12375
|
-
className: styles$
|
|
12631
|
+
className: styles$j['radio-group-field__label']
|
|
12376
12632
|
}, label), React__default.createElement(Stack, {
|
|
12377
12633
|
space: 8
|
|
12378
12634
|
}, optionsType === OPTION_TYPES.RADIO ? React__default.createElement(RadioOptions, {
|
|
@@ -12384,21 +12640,21 @@ const RadioGroupField = ({
|
|
|
12384
12640
|
testId: testId,
|
|
12385
12641
|
space: _space
|
|
12386
12642
|
}, children), caption && React__default.createElement("div", {
|
|
12387
|
-
className: styles$
|
|
12643
|
+
className: styles$j['radio-group-caption']
|
|
12388
12644
|
}, caption), controllers.error && React__default.createElement(ErrorMessage, null, controllers.error))));
|
|
12389
12645
|
};
|
|
12390
12646
|
|
|
12391
|
-
var styles$
|
|
12647
|
+
var styles$g = {"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"};
|
|
12392
12648
|
|
|
12393
|
-
var styles$
|
|
12649
|
+
var styles$f = {"password-criteria":"_1ruWK","password-criteria--invalid":"_xR7tb"};
|
|
12394
12650
|
|
|
12395
12651
|
const PasswordCriteria = ({
|
|
12396
12652
|
met,
|
|
12397
12653
|
children
|
|
12398
12654
|
}) => {
|
|
12399
12655
|
return React__default.createElement("span", {
|
|
12400
|
-
className: classnames(styles$
|
|
12401
|
-
[styles$
|
|
12656
|
+
className: classnames(styles$f['password-criteria'], {
|
|
12657
|
+
[styles$f['password-criteria--invalid']]: !met
|
|
12402
12658
|
})
|
|
12403
12659
|
}, React__default.createElement(Inline, {
|
|
12404
12660
|
space: met ? 4 : 8
|
|
@@ -12471,12 +12727,12 @@ const PasswordField = ({
|
|
|
12471
12727
|
error: controllers.error
|
|
12472
12728
|
};
|
|
12473
12729
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
12474
|
-
className: styles$
|
|
12730
|
+
className: styles$g['password-container']
|
|
12475
12731
|
}, React__default.createElement("input", {
|
|
12476
12732
|
name: name,
|
|
12477
12733
|
id: controllers.id,
|
|
12478
|
-
className: classnames(styles$
|
|
12479
|
-
[styles$
|
|
12734
|
+
className: classnames(styles$g['text-field'], {
|
|
12735
|
+
[styles$g['text-field--invalid']]: hasError
|
|
12480
12736
|
}),
|
|
12481
12737
|
type: type,
|
|
12482
12738
|
"data-testid": testId,
|
|
@@ -12489,8 +12745,8 @@ const PasswordField = ({
|
|
|
12489
12745
|
onChange: controllers.onChange,
|
|
12490
12746
|
onBlur: controllers.onBlur
|
|
12491
12747
|
}), React__default.createElement("div", {
|
|
12492
|
-
className: classnames(styles$
|
|
12493
|
-
[styles$
|
|
12748
|
+
className: classnames(styles$g['password-toggle'], {
|
|
12749
|
+
[styles$g['password-toggle--disabled']]: disabled
|
|
12494
12750
|
}),
|
|
12495
12751
|
onClick: toggleType,
|
|
12496
12752
|
onKeyPress: toggleType,
|
|
@@ -12592,7 +12848,7 @@ const MultiSelectField = ({
|
|
|
12592
12848
|
})));
|
|
12593
12849
|
};
|
|
12594
12850
|
|
|
12595
|
-
var styles$
|
|
12851
|
+
var styles$e = {"custom-list":"_cSkvD"};
|
|
12596
12852
|
|
|
12597
12853
|
const _excluded$7 = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad"];
|
|
12598
12854
|
const CustomList = _ref => {
|
|
@@ -12610,7 +12866,7 @@ const CustomList = _ref => {
|
|
|
12610
12866
|
return React__default.createElement(components.MenuList, _extends({}, props), React__default.createElement(Fragment, null, children, showFooter && props.options.length > 0 && React__default.createElement(Inline, {
|
|
12611
12867
|
justifyContent: "center"
|
|
12612
12868
|
}, React__default.createElement("div", {
|
|
12613
|
-
className: styles$
|
|
12869
|
+
className: styles$e['custom-list']
|
|
12614
12870
|
}, __('moreOptionsPlaceholder')))));
|
|
12615
12871
|
};
|
|
12616
12872
|
|
|
@@ -12903,7 +13159,7 @@ const getFormikError = error => {
|
|
|
12903
13159
|
return undefined;
|
|
12904
13160
|
};
|
|
12905
13161
|
|
|
12906
|
-
var styles$
|
|
13162
|
+
var styles$d = {"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"};
|
|
12907
13163
|
|
|
12908
13164
|
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"};
|
|
12909
13165
|
|
|
@@ -12967,9 +13223,9 @@ const DateRangeCalendar = ({
|
|
|
12967
13223
|
const DAYS = getDays(translate);
|
|
12968
13224
|
const MONTH_NAMES = getMonths(translate);
|
|
12969
13225
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
12970
|
-
className: styles$
|
|
13226
|
+
className: styles$Y['calendar']
|
|
12971
13227
|
}, React__default.createElement("div", {
|
|
12972
|
-
className: styles$
|
|
13228
|
+
className: styles$Y['calendar__overlay'],
|
|
12973
13229
|
ref: ref => setCalendarRef(ref),
|
|
12974
13230
|
style: _extends({}, calendarPosition, {
|
|
12975
13231
|
zIndex: getZIndex('dropdown')
|
|
@@ -13160,9 +13416,9 @@ const DateRangeField = ({
|
|
|
13160
13416
|
end
|
|
13161
13417
|
} = controllers.value;
|
|
13162
13418
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
13163
|
-
className: classnames(styles$
|
|
13164
|
-
[styles$
|
|
13165
|
-
[styles$
|
|
13419
|
+
className: classnames(styles$d['date-range-field'], {
|
|
13420
|
+
[styles$d['date-range-field--invalid']]: hasError,
|
|
13421
|
+
[styles$d['date-range-field--disabled']]: disabled
|
|
13166
13422
|
}),
|
|
13167
13423
|
"data-testid": testId
|
|
13168
13424
|
}, React__default.createElement(IconCalendarAlt, {
|
|
@@ -13484,7 +13740,7 @@ const TimeRangeSelector = forwardRef(TimeFieldElement);
|
|
|
13484
13740
|
*/
|
|
13485
13741
|
const TimeField = forwardRef(TimeFieldElement);
|
|
13486
13742
|
|
|
13487
|
-
var styles$
|
|
13743
|
+
var styles$c = {"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"};
|
|
13488
13744
|
|
|
13489
13745
|
const TimeRangeEnd = ({
|
|
13490
13746
|
startTime,
|
|
@@ -13605,9 +13861,9 @@ const TimeRangeField = ({
|
|
|
13605
13861
|
end
|
|
13606
13862
|
}) : getDuration(end, start, subtractDuration);
|
|
13607
13863
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
13608
|
-
className: classnames(styles$
|
|
13609
|
-
[styles$
|
|
13610
|
-
[styles$
|
|
13864
|
+
className: classnames(styles$c['time-range-field'], {
|
|
13865
|
+
[styles$c['time-range-field--invalid']]: hasError,
|
|
13866
|
+
[styles$c['time-range-field--disabled']]: disabled
|
|
13611
13867
|
}),
|
|
13612
13868
|
"data-testid": testId
|
|
13613
13869
|
}, React__default.createElement(TimeRangeStart, {
|
|
@@ -13635,7 +13891,7 @@ const TimeRangeField = ({
|
|
|
13635
13891
|
})));
|
|
13636
13892
|
};
|
|
13637
13893
|
|
|
13638
|
-
var styles$
|
|
13894
|
+
var styles$b = {"currency-field":"_GyYnE","currency-field--with-mask":"_NfdKk","currency-field__mask-display":"_ddacu","currency-field__mask-display--disabled":"_o1-zA"};
|
|
13639
13895
|
|
|
13640
13896
|
const CURRENCY_DISPLAY_DEFAULT_MARGIN = 8;
|
|
13641
13897
|
const CURRENCY_DISPLAY_MARGIN_BUFFER = 1;
|
|
@@ -13701,12 +13957,12 @@ const CurrencyFieldElement = (_ref, forwardedRef) => {
|
|
|
13701
13957
|
setShowMask(false);
|
|
13702
13958
|
inputProps.onFocus(e);
|
|
13703
13959
|
},
|
|
13704
|
-
className: classnames(inputProps.className, styles$
|
|
13705
|
-
[styles$
|
|
13960
|
+
className: classnames(inputProps.className, styles$b['currency-field'], {
|
|
13961
|
+
[styles$b['currency-field--with-mask']]: showMask && !!inputProps.value
|
|
13706
13962
|
})
|
|
13707
13963
|
}))), showMask && !!inputProps.value && React__default.createElement("div", {
|
|
13708
|
-
className: classnames(styles$
|
|
13709
|
-
[styles$
|
|
13964
|
+
className: classnames(styles$b['currency-field__mask-display'], {
|
|
13965
|
+
[styles$b['currency-field__mask-display--disabled']]: inputProps.disabled
|
|
13710
13966
|
}),
|
|
13711
13967
|
style: {
|
|
13712
13968
|
marginLeft: displayPadding
|
|
@@ -13834,7 +14090,7 @@ const FormFeedback = ({
|
|
|
13834
14090
|
}, children);
|
|
13835
14091
|
};
|
|
13836
14092
|
|
|
13837
|
-
var styles$
|
|
14093
|
+
var styles$a = {"phone-field":"_Q0GfJ","phone-field__flag":"_-uOqW","phone-field__input":"_Hes9b","phone-field__input--with-square-borders":"_TEU6N"};
|
|
13838
14094
|
|
|
13839
14095
|
const usePhoneFieldControllers = ({
|
|
13840
14096
|
name,
|
|
@@ -13977,8 +14233,8 @@ const usePhoneField = ({
|
|
|
13977
14233
|
'aria-describedby': hasError ? `${controllers.id}-error-message` : `${controllers.id}-describer`,
|
|
13978
14234
|
'aria-invalid': hasError,
|
|
13979
14235
|
autoFocus,
|
|
13980
|
-
className: classnames(styles$
|
|
13981
|
-
[styles$
|
|
14236
|
+
className: classnames(styles$1e['text-field'], {
|
|
14237
|
+
[styles$1e['text-field--invalid']]: hasError
|
|
13982
14238
|
}),
|
|
13983
14239
|
'data-testid': testId,
|
|
13984
14240
|
disabled,
|
|
@@ -14748,7 +15004,7 @@ const COUNTRIES = {
|
|
|
14748
15004
|
};
|
|
14749
15005
|
const COUNTRY_CODES = Object.keys(COUNTRIES);
|
|
14750
15006
|
|
|
14751
|
-
var styles$
|
|
15007
|
+
var styles$9 = {"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"};
|
|
14752
15008
|
|
|
14753
15009
|
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"};
|
|
14754
15010
|
|
|
@@ -14759,21 +15015,21 @@ const CountrySelector = ({
|
|
|
14759
15015
|
disabled
|
|
14760
15016
|
}) => {
|
|
14761
15017
|
return React__default.createElement("div", {
|
|
14762
|
-
className: classnames(styles$
|
|
14763
|
-
[styles$
|
|
14764
|
-
[styles$
|
|
15018
|
+
className: classnames(styles$9['country-selector'], {
|
|
15019
|
+
[styles$9['country-selector--with-error']]: hasError,
|
|
15020
|
+
[styles$9['country-selector--disabled']]: disabled
|
|
14765
15021
|
})
|
|
14766
15022
|
}, React__default.createElement(Dropdown, {
|
|
14767
15023
|
trigger: React__default.createElement("div", {
|
|
14768
|
-
className: classnames(styles$
|
|
14769
|
-
[styles$
|
|
14770
|
-
[styles$
|
|
15024
|
+
className: classnames(styles$9['country-selector__trigger'], {
|
|
15025
|
+
[styles$9['country-selector__trigger--with-error']]: hasError,
|
|
15026
|
+
[styles$9['country-selector__trigger--disabled']]: disabled
|
|
14771
15027
|
})
|
|
14772
15028
|
}, React__default.createElement(Inline, {
|
|
14773
15029
|
space: 8,
|
|
14774
15030
|
alignItems: "center"
|
|
14775
15031
|
}, React__default.createElement("span", {
|
|
14776
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLocaleLowerCase()}`], styles$
|
|
15032
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLocaleLowerCase()}`], styles$9['country-selector__trigger-flag'])
|
|
14777
15033
|
}), React__default.createElement(IconChevronDown, {
|
|
14778
15034
|
color: "currentColor",
|
|
14779
15035
|
size: "medium"
|
|
@@ -14787,7 +15043,7 @@ const CountrySelector = ({
|
|
|
14787
15043
|
alignItems: "center",
|
|
14788
15044
|
space: 12
|
|
14789
15045
|
}, React__default.createElement("span", {
|
|
14790
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLocaleLowerCase()}`], styles$
|
|
15046
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLocaleLowerCase()}`], styles$9['country-selector__flag'])
|
|
14791
15047
|
}), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)))))));
|
|
14792
15048
|
};
|
|
14793
15049
|
|
|
@@ -14860,7 +15116,7 @@ const PhoneField = _ref => {
|
|
|
14860
15116
|
}
|
|
14861
15117
|
};
|
|
14862
15118
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
14863
|
-
className: styles$
|
|
15119
|
+
className: styles$a['phone-field']
|
|
14864
15120
|
}, !disabledCountry && React__default.createElement(CountrySelector, {
|
|
14865
15121
|
country: selectedCountry,
|
|
14866
15122
|
onChange: handleCountryChange,
|
|
@@ -14871,18 +15127,186 @@ const PhoneField = _ref => {
|
|
|
14871
15127
|
space: 4,
|
|
14872
15128
|
alignItems: "center"
|
|
14873
15129
|
}, React__default.createElement("span", {
|
|
14874
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$
|
|
15130
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$a['country-selector__flag'])
|
|
14875
15131
|
}), React__default.createElement("span", null, "+", getCountryCallingCode(selectedCountry))) : `+${getCountryCallingCode(selectedCountry)}`
|
|
14876
15132
|
}, React__default.createElement("input", _extends({}, inputProps, {
|
|
14877
15133
|
type: "tel",
|
|
14878
|
-
className: classnames(inputProps.className, styles$
|
|
14879
|
-
[styles$
|
|
15134
|
+
className: classnames(inputProps.className, styles$a['phone-field__input'], {
|
|
15135
|
+
[styles$a['phone-field__input--with-square-borders']]: !disabledCountry
|
|
14880
15136
|
}),
|
|
14881
15137
|
onChange: handlePhoneChange,
|
|
14882
15138
|
onBlur: handlePhoneBlur
|
|
14883
15139
|
})))));
|
|
14884
15140
|
};
|
|
14885
15141
|
|
|
15142
|
+
var styles$8 = {"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"};
|
|
15143
|
+
|
|
15144
|
+
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'];
|
|
15145
|
+
|
|
15146
|
+
const useColorKeyboardNavigation = selectedColor => {
|
|
15147
|
+
const [selectedColorIndex, setSelectedColorIndex] = useState(null);
|
|
15148
|
+
const amountOfColors = SEQUENTIAL_COLORS.length;
|
|
15149
|
+
const handleArrowNavigation = event => {
|
|
15150
|
+
const keyPressed = event.key;
|
|
15151
|
+
const currentIndex = selectedColorIndex !== null ? selectedColorIndex : SEQUENTIAL_COLORS.findIndex(color => color === selectedColor);
|
|
15152
|
+
switch (keyPressed) {
|
|
15153
|
+
case 'ArrowRight':
|
|
15154
|
+
case 'Tab':
|
|
15155
|
+
const nextIndex = (currentIndex + 1) % amountOfColors;
|
|
15156
|
+
setSelectedColorIndex(nextIndex);
|
|
15157
|
+
break;
|
|
15158
|
+
case 'ArrowLeft':
|
|
15159
|
+
const prevIndex = (currentIndex - 1 + amountOfColors) % amountOfColors;
|
|
15160
|
+
setSelectedColorIndex(prevIndex);
|
|
15161
|
+
break;
|
|
15162
|
+
case 'ArrowDown':
|
|
15163
|
+
const downIndex = (currentIndex + 5) % amountOfColors;
|
|
15164
|
+
setSelectedColorIndex(downIndex);
|
|
15165
|
+
break;
|
|
15166
|
+
case 'ArrowUp':
|
|
15167
|
+
const upIndex = (currentIndex - 5 + amountOfColors) % amountOfColors;
|
|
15168
|
+
setSelectedColorIndex(upIndex);
|
|
15169
|
+
break;
|
|
15170
|
+
}
|
|
15171
|
+
event.preventDefault();
|
|
15172
|
+
};
|
|
15173
|
+
useKeyPress(['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Tab'], handleArrowNavigation);
|
|
15174
|
+
return {
|
|
15175
|
+
selectedColorIndex,
|
|
15176
|
+
setSelectedColorIndex
|
|
15177
|
+
};
|
|
15178
|
+
};
|
|
15179
|
+
|
|
15180
|
+
const ColorsOverlay = ({
|
|
15181
|
+
onClose,
|
|
15182
|
+
triggerRef,
|
|
15183
|
+
selectedColor,
|
|
15184
|
+
onSelect
|
|
15185
|
+
}) => {
|
|
15186
|
+
var _triggerRef$current;
|
|
15187
|
+
const overlayRef = useRef(null);
|
|
15188
|
+
const GAP = 8; // Gap between the trigger and the overlay
|
|
15189
|
+
const triggerRect = (_triggerRef$current = triggerRef.current) == null ? void 0 : _triggerRef$current.getBoundingClientRect();
|
|
15190
|
+
const overlayStyle = triggerRect ? {
|
|
15191
|
+
top: triggerRect.bottom + window.scrollY + GAP,
|
|
15192
|
+
left: triggerRect.left + window.scrollX
|
|
15193
|
+
} : {
|
|
15194
|
+
display: 'none'
|
|
15195
|
+
};
|
|
15196
|
+
const {
|
|
15197
|
+
selectedColorIndex,
|
|
15198
|
+
setSelectedColorIndex
|
|
15199
|
+
} = useColorKeyboardNavigation(selectedColor || '');
|
|
15200
|
+
useOnClickOutside(overlayRef, onClose);
|
|
15201
|
+
const selectedColorByIndex = selectedColorIndex !== null ? SEQUENTIAL_COLORS[selectedColorIndex] : undefined;
|
|
15202
|
+
const handleEnterPress = useCallback(() => {
|
|
15203
|
+
if (selectedColorByIndex) {
|
|
15204
|
+
onSelect(selectedColorByIndex);
|
|
15205
|
+
}
|
|
15206
|
+
}, [selectedColorByIndex, onSelect]);
|
|
15207
|
+
useKeyPress(['Escape'], onClose);
|
|
15208
|
+
useKeyPress(['Enter'], handleEnterPress);
|
|
15209
|
+
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
15210
|
+
style: overlayStyle,
|
|
15211
|
+
ref: overlayRef,
|
|
15212
|
+
className: styles$8['color-overlay'],
|
|
15213
|
+
role: "dialog"
|
|
15214
|
+
}, SEQUENTIAL_COLORS.map((color, index) => React__default.createElement(ColorDisplay, {
|
|
15215
|
+
key: color,
|
|
15216
|
+
color: color,
|
|
15217
|
+
isSelected: color === selectedColor,
|
|
15218
|
+
isFocused: index === selectedColorIndex,
|
|
15219
|
+
onClick: () => onSelect(color),
|
|
15220
|
+
onHover: () => setSelectedColorIndex(null)
|
|
15221
|
+
}))));
|
|
15222
|
+
};
|
|
15223
|
+
const ColorDisplay = ({
|
|
15224
|
+
color,
|
|
15225
|
+
isSelected,
|
|
15226
|
+
isFocused,
|
|
15227
|
+
onClick,
|
|
15228
|
+
onHover
|
|
15229
|
+
}) => React__default.createElement("button", {
|
|
15230
|
+
className: styles$8['color-overlay__color-display-container'],
|
|
15231
|
+
onClick: () => onClick(color)
|
|
15232
|
+
}, React__default.createElement("div", {
|
|
15233
|
+
className: classnames(styles$8['color-overlay__color-display-circle'], {
|
|
15234
|
+
[styles$8['color-overlay__color-display-circle--selected']]: isSelected,
|
|
15235
|
+
[styles$8['color-overlay__color-display-circle--focused']]: isFocused
|
|
15236
|
+
}),
|
|
15237
|
+
onMouseEnter: onHover,
|
|
15238
|
+
style: {
|
|
15239
|
+
backgroundColor: COLORS[color]
|
|
15240
|
+
}
|
|
15241
|
+
}));
|
|
15242
|
+
|
|
15243
|
+
var styles$7 = {"color-swatch":"_UUuiJ"};
|
|
15244
|
+
|
|
15245
|
+
const ColorSwatch = ({
|
|
15246
|
+
color
|
|
15247
|
+
}) => {
|
|
15248
|
+
return React__default.createElement("div", {
|
|
15249
|
+
className: styles$7['color-swatch'],
|
|
15250
|
+
style: {
|
|
15251
|
+
backgroundColor: color
|
|
15252
|
+
}
|
|
15253
|
+
});
|
|
15254
|
+
};
|
|
15255
|
+
|
|
15256
|
+
const ColorFieldElement = (props, ref) => {
|
|
15257
|
+
const {
|
|
15258
|
+
inputProps,
|
|
15259
|
+
fieldProps
|
|
15260
|
+
} = useTextField(_extends({}, props, {
|
|
15261
|
+
ref
|
|
15262
|
+
}));
|
|
15263
|
+
const triggerRef = useRef(null);
|
|
15264
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
15265
|
+
const colorKeys = Object.keys(COLORS);
|
|
15266
|
+
const getCurrentColor = () => {
|
|
15267
|
+
if (inputProps.value && colorKeys.includes(inputProps.value)) {
|
|
15268
|
+
return COLORS[inputProps.value];
|
|
15269
|
+
}
|
|
15270
|
+
return inputProps.value || 'transparent';
|
|
15271
|
+
};
|
|
15272
|
+
return React__default.createElement(Fragment, null, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
15273
|
+
prefix: React__default.createElement(ColorSwatch, {
|
|
15274
|
+
color: getCurrentColor()
|
|
15275
|
+
}),
|
|
15276
|
+
suffix: React__default.createElement(IconChevronDown, {
|
|
15277
|
+
size: "medium"
|
|
15278
|
+
})
|
|
15279
|
+
}, React__default.createElement("input", _extends({}, inputProps, {
|
|
15280
|
+
readOnly: true,
|
|
15281
|
+
onClick: () => {
|
|
15282
|
+
if (triggerRef.current) {
|
|
15283
|
+
setIsOpen(prev => !prev);
|
|
15284
|
+
}
|
|
15285
|
+
},
|
|
15286
|
+
ref: triggerRef,
|
|
15287
|
+
value: "",
|
|
15288
|
+
onKeyDown: e => {
|
|
15289
|
+
if (e.key === 'Enter' && !isOpen) {
|
|
15290
|
+
e.preventDefault();
|
|
15291
|
+
setIsOpen(true);
|
|
15292
|
+
}
|
|
15293
|
+
}
|
|
15294
|
+
})))), isOpen && React__default.createElement(ColorsOverlay, {
|
|
15295
|
+
onClose: () => setIsOpen(false),
|
|
15296
|
+
triggerRef: triggerRef,
|
|
15297
|
+
selectedColor: inputProps.value,
|
|
15298
|
+
onSelect: color => {
|
|
15299
|
+
inputProps.onChange({
|
|
15300
|
+
target: {
|
|
15301
|
+
value: color
|
|
15302
|
+
}
|
|
15303
|
+
});
|
|
15304
|
+
setIsOpen(false);
|
|
15305
|
+
}
|
|
15306
|
+
}));
|
|
15307
|
+
};
|
|
15308
|
+
const ColorField = forwardRef(ColorFieldElement);
|
|
15309
|
+
|
|
14886
15310
|
var styles$6 = {"avatar":"_V1U8v","avatar__container":"_peAaI","avatar--small":"_9g-tn","avatar__badge":"_uViot","avatar--medium":"_vNXJW","avatar--large":"_9ZKAB","avatar--extra-large":"_uv14Y"};
|
|
14887
15311
|
|
|
14888
15312
|
var styles$5 = {"avatar-image":"_iDN1j"};
|
|
@@ -15357,5 +15781,5 @@ const EmptyState = props => {
|
|
|
15357
15781
|
return emptyStateContainer;
|
|
15358
15782
|
};
|
|
15359
15783
|
|
|
15360
|
-
export { Accordion, ActionList, ActionListItem, AsyncSelectField, Avatar, Badge, Bold, BreadcrumbItem, Breadcrumbs, Button, COLORS, Calendar, CalloutCard, Card, CheckboxField, Chip, CircularProgress, CurrencyField, DataTable, DataTableCell, DataTableEditableCell, DataTableRow, DateField, DateFilter, DateRangeField, Dropdown, DropdownList, DropdownListDivider, DropdownListItem, EmptyState, Form, FormFeedback, FormFooter, FormRow, FormSection, HintModal, IconAnalytics, IconArrowDown, IconArrowDownWideShort, IconArrowLeft, IconArrowRight, IconArrowToTop, IconArrowTurnDownRight, IconArrowUp, IconAward, IconAwful, IconAwfulMonochromatic, IconBad, IconBadMonochromatic, IconBalanceScale, IconBalanceScaleLeft, IconBan, IconBarsH, IconBarsV, IconBell, IconBirthdayCake, IconBold, IconBolt, IconBook, IconBriefcase, IconBullseyeArrow, IconCalculator, IconCalendar, IconCalendarAlt, IconCalendarCheck, IconCalendarDay, IconCalendarExclamation, IconCalendarStar, IconCalendarTomorrow, IconCamera, IconCameraSlash, IconCashRegister, IconChartBar, IconCheck, IconCheckCircleIncomplete, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconClipboardList, IconClock, IconClockExclamation, IconClockRewind, IconCog, IconComment, IconCommentLines, IconCopy, IconCreditCard, IconCreditCardPlus, IconDecent, IconDecentMonochromatic, IconDollarSign, IconDownload, IconEdit, IconEllipsisV, IconEnvelope, IconEnvelopeOpenDollar, IconExclaimation, IconExclaimationTriangle, IconExpand, IconExternalLink, IconEye, IconEyeSlash, IconFaceSmileRelaxed, IconFile, IconFilePdf, IconFlag, IconFourDotsCircle, IconFourSquares, IconGavel, IconGif, IconGift, IconGood, IconGoodMonochromatic, IconGreat, IconGreatMonochromatic, IconGrinBeam, IconGripVertical, IconHandHoldingDollar, IconHandPointRight, IconHandshake, IconHatChef, IconImage, IconInfoCircle, IconIslandTropical, IconItalic, IconLaptopSearch, IconLink, IconList, IconListOI as IconListOi, IconLock, IconMagicSolid, IconMapMarker, IconMedal, IconMegaphone, IconMessages, IconMinus, IconMinusCircle, IconMoneyBill, IconMugSaucerSolid, IconNotesMedical, IconOvertime, IconPaperPlane, IconPaperPlaneClock, IconPaperclip, IconPencil, IconPercentage, IconPhone, IconPlateUtensils, IconPlug, IconPlus, IconPrint, IconQuestionCircle, IconRepeat, IconReply, IconRocket, IconSearch, IconSignOut, IconSitemap, IconSlidersH, IconSort, IconSparkle, IconStar, IconStarSolid, IconStickyNoteLines, IconStopwatch, IconStrikethrough, IconSync, IconSyncExclaimation, IconTable, IconTachometer, IconThumbsDown, IconThumbsUp, IconTimes, IconTimesOctagon, IconTrash, IconUnderline, IconUndo, IconUniversity, IconUnlock, IconUserComputer, IconUserFriends, IconUserLight, IconUserPlus, IconUserSearch, IconUserSlash, IconUserSolid, IconUserTag, IconUserTie, IconUsers, IconVideo, IconVolume, IconVolumeMute, IconWrench, Inline, InlineBanner, Italic, Link, MicroBanner, Modal, ModalBody, ModalFooter, MultiSelectField, NumberField, Page, PageLayout, PaginationControls, PasswordField, Paywall, PercentageField, PersistentBanner, PhoneField, Pill, PillSelectField, ProgressBar, RadioGroupBoxOption, RadioGroupField, RadioGroupOption, SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PERCENT, SIZE_75_PERCENT, SegmentedControl, SelectField, Skeleton, SousChefProvider, Spinner, Stack, Text, TextAreaField, TextField, TimeField, TimeRangeField, Toggle, ToolbarSelect, Tooltip, Underline, WeekField, ZINDEX, toast, useDataTableContext };
|
|
15784
|
+
export { Accordion, ActionList, ActionListItem, AsyncSelectField, Avatar, Badge, Bold, BreadcrumbItem, Breadcrumbs, Button, COLORS, Calendar, CalloutCard, Card, CheckboxField, Chip, CircularProgress, ColorField, CurrencyField, DataTable, DataTableCell, DataTableEditableCell, DataTableRow, DateField, DateFilter, DateRangeField, Dropdown, DropdownList, DropdownListDivider, DropdownListItem, EmptyState, Form, FormFeedback, FormFooter, FormRow, FormSection, HintModal, IconAnalytics, IconArrowDown, IconArrowDownWideShort, IconArrowLeft, IconArrowRight, IconArrowToTop, IconArrowTurnDownRight, IconArrowUp, IconAward, IconAwful, IconAwfulMonochromatic, IconBad, IconBadMonochromatic, IconBalanceScale, IconBalanceScaleLeft, IconBan, IconBarsH, IconBarsV, IconBell, IconBirthdayCake, IconBold, IconBolt, IconBook, IconBriefcase, IconBullseyeArrow, IconCalculator, IconCalendar, IconCalendarAlt, IconCalendarCheck, IconCalendarDay, IconCalendarExclamation, IconCalendarStar, IconCalendarTomorrow, IconCamera, IconCameraSlash, IconCashRegister, IconChartBar, IconCheck, IconCheckCircle, IconCheckCircleIncomplete, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconCircleHalfStroke, IconClipboardList, IconClock, IconClockExclamation, IconClockRewind, IconCog, IconComment, IconCommentLines, IconCopy, IconCreditCard, IconCreditCardPlus, IconDecent, IconDecentMonochromatic, IconDollarSign, IconDownload, IconEdit, IconEllipsisV, IconEnvelope, IconEnvelopeOpenDollar, IconExclaimation, IconExclaimationTriangle, IconExpand, IconExternalLink, IconEye, IconEyeSlash, IconFaceSmileRelaxed, IconFile, IconFilePdf, IconFlag, IconFourDotsCircle, IconFourSquares, IconGavel, IconGif, IconGift, IconGood, IconGoodMonochromatic, IconGreat, IconGreatMonochromatic, IconGrinBeam, IconGripVertical, IconHandHoldingDollar, IconHandPointRight, IconHandshake, IconHatChef, IconImage, IconInfoCircle, IconIslandTropical, IconItalic, IconLaptopSearch, IconLink, IconList, IconListOI as IconListOi, IconLock, IconMagicSolid, IconMapMarker, IconMedal, IconMegaphone, IconMessages, IconMinus, IconMinusCircle, IconMoneyBill, IconMugSaucerSolid, IconNotesMedical, IconOvertime, IconPaperPlane, IconPaperPlaneClock, IconPaperclip, IconPencil, IconPercentage, IconPhone, IconPlateUtensils, IconPlug, IconPlus, IconPrint, IconQuestionCircle, IconRepeat, IconReply, IconRocket, IconSearch, IconSignOut, IconSitemap, IconSlidersH, IconSort, IconSparkle, IconStar, IconStarSolid, IconStickyNoteLines, IconStopwatch, IconStrikethrough, IconSync, IconSyncExclaimation, IconTable, IconTachometer, IconThumbsDown, IconThumbsUp, IconTimes, IconTimesOctagon, IconTrash, IconUnderline, IconUndo, IconUniversity, IconUnlock, IconUserComputer, IconUserFriends, IconUserLight, IconUserPlus, IconUserSearch, IconUserSlash, IconUserSolid, IconUserTag, IconUserTie, IconUsers, IconVideo, IconVolume, IconVolumeMute, IconWrench, Inline, InlineBanner, Italic, Link, MicroBanner, Modal, ModalBody, ModalFooter, MultiSelectField, NumberField, Page, PageLayout, PaginationControls, PasswordField, Paywall, PercentageField, PersistentBanner, PhoneField, Pill, PillSelectField, ProgressBar, RadioGroupBoxOption, RadioGroupField, RadioGroupOption, SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PERCENT, SIZE_75_PERCENT, SegmentedControl, SelectField, Skeleton, SousChefProvider, Spinner, Stack, Text, TextAreaField, TextField, TimeField, TimeRangeField, Toggle, ToolbarSelect, Tooltip, Underline, WeekField, ZINDEX, toast, useDataTableContext };
|
|
15361
15785
|
//# sourceMappingURL=index.modern.mjs.map
|