@7shifts/sous-chef 3.89.4 → 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/core/SousChefProvider/context/ProviderConfigContext.d.ts +1 -0
- 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/hooks/useTheme.d.ts +5 -0
- 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 +101 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +959 -477
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1110 -642
- 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,60 +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
|
-
};
|
|
6608
|
+
var styles$1l = {"link":"_EiQ4c","link--contrast":"_weJDR"};
|
|
6597
6609
|
|
|
6598
6610
|
const _excluded$t = ["href", "target", "theme", "onClick", "children"];
|
|
6599
6611
|
const Link = _ref => {
|
|
6600
6612
|
let {
|
|
6601
6613
|
href,
|
|
6602
6614
|
target = LINK_TARGET.BLANK,
|
|
6603
|
-
theme,
|
|
6615
|
+
theme = LINK_THEME.PRIMARY,
|
|
6604
6616
|
onClick,
|
|
6605
6617
|
children
|
|
6606
6618
|
} = _ref,
|
|
@@ -6609,17 +6621,10 @@ const Link = _ref => {
|
|
|
6609
6621
|
dataProps
|
|
6610
6622
|
} = getDataProps(otherProps);
|
|
6611
6623
|
const ref = React__default.useRef(null);
|
|
6612
|
-
const background = useContainerBackgroundColorCheck({
|
|
6613
|
-
ref,
|
|
6614
|
-
// It only needs to check the background when theme is not provided
|
|
6615
|
-
shouldCheck: !theme
|
|
6616
|
-
});
|
|
6617
|
-
// If there is no theme provided, determine it based on the container background
|
|
6618
|
-
const currentTheme = theme || (background === 'dark' ? LINK_THEME.CONTRAST : LINK_THEME.PRIMARY);
|
|
6619
6624
|
return React__default.createElement("a", _extends({}, dataProps, {
|
|
6620
|
-
className: classnames(styles$
|
|
6621
|
-
[styles$
|
|
6622
|
-
[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
|
|
6623
6628
|
}),
|
|
6624
6629
|
href: href,
|
|
6625
6630
|
target: target,
|
|
@@ -6641,7 +6646,7 @@ const DropdownContext = React__default.createContext({
|
|
|
6641
6646
|
});
|
|
6642
6647
|
const useDropdownContext = () => React__default.useContext(DropdownContext);
|
|
6643
6648
|
|
|
6644
|
-
var styles$
|
|
6649
|
+
var styles$1k = {"dropdown-pane":"_sp-pT"};
|
|
6645
6650
|
|
|
6646
6651
|
const DROPDOWN_PANE_PADDING = 14;
|
|
6647
6652
|
const calculateOverlayPosition = (triggerPosition, triggerOffsetHeight, panePosition, alignment) => {
|
|
@@ -6777,8 +6782,8 @@ const PaneOverlay = ({
|
|
|
6777
6782
|
useKeyPress(['Escape'], onToggleDropdown);
|
|
6778
6783
|
const overflow = maxHeight ? 'auto' : undefined;
|
|
6779
6784
|
return React__default.createElement("div", {
|
|
6780
|
-
className: classnames(styles$
|
|
6781
|
-
[styles$
|
|
6785
|
+
className: classnames(styles$1k['dropdown-pane'], {
|
|
6786
|
+
[styles$1k['dropdown-pane--with-padding']]: true
|
|
6782
6787
|
}),
|
|
6783
6788
|
style: _extends({}, position, {
|
|
6784
6789
|
width,
|
|
@@ -6808,7 +6813,7 @@ const getKeyboardFocusableElements = element => {
|
|
|
6808
6813
|
});
|
|
6809
6814
|
};
|
|
6810
6815
|
|
|
6811
|
-
var styles$
|
|
6816
|
+
var styles$1j = {"dropdown__trigger":"_AktVc"};
|
|
6812
6817
|
|
|
6813
6818
|
const DROPDOWN_ALIGNEMNT = {
|
|
6814
6819
|
LEFT: 'left',
|
|
@@ -6819,7 +6824,7 @@ const DROPDOWN_TRIGGER = {
|
|
|
6819
6824
|
CLICK: 'click'
|
|
6820
6825
|
};
|
|
6821
6826
|
|
|
6822
|
-
var styles$
|
|
6827
|
+
var styles$1i = {"label":"_zv4ua","label--truncate":"_FPyID"};
|
|
6823
6828
|
|
|
6824
6829
|
const isEllipsisActive = e => {
|
|
6825
6830
|
return e.offsetWidth < e.scrollWidth;
|
|
@@ -6868,8 +6873,8 @@ const Label = ({
|
|
|
6868
6873
|
const LabelElement = React__default.createElement("label", {
|
|
6869
6874
|
htmlFor: htmlFor,
|
|
6870
6875
|
id: labelId,
|
|
6871
|
-
className: classnames(styles$
|
|
6872
|
-
[styles$
|
|
6876
|
+
className: classnames(styles$1i['label'], {
|
|
6877
|
+
[styles$1i['label--truncate']]: shouldTruncate
|
|
6873
6878
|
})
|
|
6874
6879
|
}, children);
|
|
6875
6880
|
if (showTooltip) {
|
|
@@ -6881,7 +6886,7 @@ const Label = ({
|
|
|
6881
6886
|
return LabelElement;
|
|
6882
6887
|
};
|
|
6883
6888
|
|
|
6884
|
-
var styles$
|
|
6889
|
+
var styles$1h = {"caption":"_Qrxg5"};
|
|
6885
6890
|
|
|
6886
6891
|
const Caption = ({
|
|
6887
6892
|
fieldId,
|
|
@@ -6889,11 +6894,11 @@ const Caption = ({
|
|
|
6889
6894
|
}) => {
|
|
6890
6895
|
return React__default.createElement("div", {
|
|
6891
6896
|
id: fieldId && `${fieldId}-describer`,
|
|
6892
|
-
className: styles$
|
|
6897
|
+
className: styles$1h['caption']
|
|
6893
6898
|
}, children);
|
|
6894
6899
|
};
|
|
6895
6900
|
|
|
6896
|
-
var styles$
|
|
6901
|
+
var styles$1g = {"error-message":"_eS4YO"};
|
|
6897
6902
|
|
|
6898
6903
|
const ErrorMessage = ({
|
|
6899
6904
|
fieldId,
|
|
@@ -6902,7 +6907,7 @@ const ErrorMessage = ({
|
|
|
6902
6907
|
}) => {
|
|
6903
6908
|
return React__default.createElement("div", {
|
|
6904
6909
|
id: fieldId && `${fieldId}-error-message`,
|
|
6905
|
-
className: styles$
|
|
6910
|
+
className: styles$1g['error-message'],
|
|
6906
6911
|
"data-testid": testId
|
|
6907
6912
|
}, React__default.createElement(Inline, {
|
|
6908
6913
|
space: 8,
|
|
@@ -6939,7 +6944,7 @@ const ALIGNMENTS = {
|
|
|
6939
6944
|
JUSTIFY: 'justify'
|
|
6940
6945
|
};
|
|
6941
6946
|
|
|
6942
|
-
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"};
|
|
6943
6948
|
|
|
6944
6949
|
const _excluded$s = ["children", "as", "emphasis", "alignment", "color", "testId", "textWrap"];
|
|
6945
6950
|
const TextComponent = (_ref, ref) => {
|
|
@@ -6967,21 +6972,21 @@ const TextComponent = (_ref, ref) => {
|
|
|
6967
6972
|
color: getColor(color),
|
|
6968
6973
|
textWrap
|
|
6969
6974
|
}, positionStyles),
|
|
6970
|
-
className: classnames(styles$
|
|
6971
|
-
[styles$
|
|
6972
|
-
[styles$
|
|
6973
|
-
[styles$
|
|
6974
|
-
[styles$
|
|
6975
|
-
[styles$
|
|
6976
|
-
[styles$
|
|
6977
|
-
[styles$
|
|
6978
|
-
[styles$
|
|
6979
|
-
[styles$
|
|
6980
|
-
[styles$
|
|
6981
|
-
[styles$
|
|
6982
|
-
[styles$
|
|
6983
|
-
[styles$
|
|
6984
|
-
[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
|
|
6985
6990
|
}),
|
|
6986
6991
|
'data-testid': testId
|
|
6987
6992
|
}, dataProps, other, {
|
|
@@ -6998,7 +7003,7 @@ const Bold = ({
|
|
|
6998
7003
|
children
|
|
6999
7004
|
}) => {
|
|
7000
7005
|
return React__default.createElement("span", {
|
|
7001
|
-
className: classnames(styles$
|
|
7006
|
+
className: classnames(styles$1f['text--bold'], styles$1f['text'])
|
|
7002
7007
|
}, children);
|
|
7003
7008
|
};
|
|
7004
7009
|
|
|
@@ -7006,7 +7011,7 @@ const Underline = ({
|
|
|
7006
7011
|
children
|
|
7007
7012
|
}) => {
|
|
7008
7013
|
return React__default.createElement("span", {
|
|
7009
|
-
className: classnames(styles$
|
|
7014
|
+
className: classnames(styles$1f['text--underline'], styles$1f['text'])
|
|
7010
7015
|
}, children);
|
|
7011
7016
|
};
|
|
7012
7017
|
|
|
@@ -7014,7 +7019,7 @@ const Italic = ({
|
|
|
7014
7019
|
children
|
|
7015
7020
|
}) => {
|
|
7016
7021
|
return React__default.createElement("span", {
|
|
7017
|
-
className: classnames(styles$
|
|
7022
|
+
className: classnames(styles$1f['text--italic'], styles$1f['text'])
|
|
7018
7023
|
}, children);
|
|
7019
7024
|
};
|
|
7020
7025
|
|
|
@@ -7151,7 +7156,7 @@ const useFieldControllers = ({
|
|
|
7151
7156
|
return controllers;
|
|
7152
7157
|
};
|
|
7153
7158
|
|
|
7154
|
-
var styles$
|
|
7159
|
+
var styles$1e = {"text-field":"_G6LsE","text-field--invalid":"_2ZYtt","text-field--prefixed":"_rWp7H","text-field--suffixed":"_Xq8xX"};
|
|
7155
7160
|
|
|
7156
7161
|
const _excluded$q = ["autoComplete", "autoFocus", "defaultValue", "disabled", "error", "id", "maxLength", "name", "caption", "label", "onBlur", "onChange", "onFocus", "onKeyDown", "placeholder", "value", "ref", "testId"];
|
|
7157
7162
|
const useTextField = _ref => {
|
|
@@ -7192,8 +7197,8 @@ const useTextField = _ref => {
|
|
|
7192
7197
|
'aria-invalid': hasError,
|
|
7193
7198
|
autoComplete,
|
|
7194
7199
|
autoFocus,
|
|
7195
|
-
className: classnames(styles$
|
|
7196
|
-
[styles$
|
|
7200
|
+
className: classnames(styles$1e['text-field'], {
|
|
7201
|
+
[styles$1e['text-field--invalid']]: hasError
|
|
7197
7202
|
}),
|
|
7198
7203
|
'data-testid': testId,
|
|
7199
7204
|
disabled,
|
|
@@ -7224,7 +7229,7 @@ const useTextField = _ref => {
|
|
|
7224
7229
|
};
|
|
7225
7230
|
};
|
|
7226
7231
|
|
|
7227
|
-
var styles$
|
|
7232
|
+
var styles$1d = {"affix-container":"_F8QOB","prefix":"_yPPIy","suffix":"_Y3yFd","affix-container--prefixed":"_vU4SU","affix-container--suffixed":"_4rDXi"};
|
|
7228
7233
|
|
|
7229
7234
|
const AffixContainer = ({
|
|
7230
7235
|
prefix,
|
|
@@ -7259,19 +7264,19 @@ const AffixContainer = ({
|
|
|
7259
7264
|
if (!hasPrefix && !hasSuffix) {
|
|
7260
7265
|
return children;
|
|
7261
7266
|
}
|
|
7262
|
-
const classes = classnames(styles$
|
|
7263
|
-
[styles$
|
|
7264
|
-
[styles$
|
|
7267
|
+
const classes = classnames(styles$1d['affix-container'], {
|
|
7268
|
+
[styles$1d['affix-container--prefixed']]: hasPrefix,
|
|
7269
|
+
[styles$1d['affix-container--suffixed']]: hasSuffix
|
|
7265
7270
|
});
|
|
7266
7271
|
return React__default.createElement("div", {
|
|
7267
7272
|
className: classes,
|
|
7268
7273
|
ref: container,
|
|
7269
7274
|
"data-testid": testId
|
|
7270
7275
|
}, hasPrefix && React__default.createElement("div", {
|
|
7271
|
-
className: styles$
|
|
7276
|
+
className: styles$1d['prefix'],
|
|
7272
7277
|
ref: prefixElement
|
|
7273
7278
|
}, prefix), children, hasSuffix && React__default.createElement("div", {
|
|
7274
|
-
className: styles$
|
|
7279
|
+
className: styles$1d['suffix'],
|
|
7275
7280
|
ref: suffixElement
|
|
7276
7281
|
}, suffix));
|
|
7277
7282
|
};
|
|
@@ -7478,7 +7483,7 @@ const Dropdown = ({
|
|
|
7478
7483
|
paneRef
|
|
7479
7484
|
}
|
|
7480
7485
|
}, triggerIsKnownButton ? React__default.cloneElement(trigger, _extends({}, trigger.props, triggerProps)) : React__default.createElement("button", _extends({}, triggerProps, {
|
|
7481
|
-
className: styles$
|
|
7486
|
+
className: styles$1j['dropdown__trigger'],
|
|
7482
7487
|
ref: updatedRef,
|
|
7483
7488
|
onFocus: handleFocus
|
|
7484
7489
|
}), trigger), React__default.createElement(DropdownPane, {
|
|
@@ -7492,7 +7497,7 @@ const Dropdown = ({
|
|
|
7492
7497
|
}, children));
|
|
7493
7498
|
};
|
|
7494
7499
|
|
|
7495
|
-
var styles$
|
|
7500
|
+
var styles$1c = {"dropdown-list":"_91hvH","dropdown-list__item":"_NrB4V","dropdown-list__item--hover":"_aMs9c"};
|
|
7496
7501
|
|
|
7497
7502
|
const findNextActiveIndex = (items, startAt) => {
|
|
7498
7503
|
let startIndex = 0;
|
|
@@ -7533,16 +7538,16 @@ const findPreviousEnabledIndex = (items, startAt) => {
|
|
|
7533
7538
|
|
|
7534
7539
|
const useListKeyboardNavigation = (listItems, listReference, actions) => {
|
|
7535
7540
|
const [focusedItem, setFocusedItem] = useState(null);
|
|
7536
|
-
const focusOnNextItem = callback => {
|
|
7541
|
+
const focusOnNextItem = useCallback(callback => {
|
|
7537
7542
|
const nextFocusItem = findNextActiveIndex(listItems, focusedItem);
|
|
7538
7543
|
setFocusedItem(nextFocusItem);
|
|
7539
7544
|
callback(nextFocusItem);
|
|
7540
|
-
};
|
|
7541
|
-
const focusOnPrevItem = callback => {
|
|
7545
|
+
}, [listItems, focusedItem]);
|
|
7546
|
+
const focusOnPrevItem = useCallback(callback => {
|
|
7542
7547
|
const prevFocusItem = findPreviousEnabledIndex(listItems, focusedItem || 0);
|
|
7543
7548
|
setFocusedItem(prevFocusItem);
|
|
7544
7549
|
callback(prevFocusItem);
|
|
7545
|
-
};
|
|
7550
|
+
}, [listItems, focusedItem]);
|
|
7546
7551
|
const setFocusOnItem = index => {
|
|
7547
7552
|
if (index < 0) {
|
|
7548
7553
|
setFocusedItem(null);
|
|
@@ -7554,28 +7559,78 @@ const useListKeyboardNavigation = (listItems, listReference, actions) => {
|
|
|
7554
7559
|
setFocusedItem(index);
|
|
7555
7560
|
};
|
|
7556
7561
|
const handleKeyPress = useCallback(event => {
|
|
7557
|
-
|
|
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') {
|
|
7558
7575
|
focusOnNextItem(focusItem => actions == null || actions.onNavigate == null ? void 0 : actions.onNavigate(focusItem));
|
|
7559
7576
|
}
|
|
7560
|
-
if (event.key === 'ArrowUp') {
|
|
7577
|
+
if (event.key === 'ArrowUp' && submenuStatus === 'closed') {
|
|
7561
7578
|
focusOnPrevItem(focusItem => actions == null || actions.onNavigate == null ? void 0 : actions.onNavigate(focusItem));
|
|
7562
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
|
+
}
|
|
7563
7607
|
if (event.key === 'Enter' && focusedItem !== null) {
|
|
7608
|
+
var _listReference$curren4;
|
|
7564
7609
|
const {
|
|
7565
7610
|
onClick,
|
|
7566
|
-
href
|
|
7611
|
+
href,
|
|
7612
|
+
submenu
|
|
7567
7613
|
} = listItems[focusedItem];
|
|
7568
7614
|
onClick && onClick(event);
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
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
|
+
}
|
|
7573
7629
|
}
|
|
7574
|
-
actions && (actions.onPressEnter == null ? void 0 : actions.onPressEnter());
|
|
7575
7630
|
}
|
|
7576
7631
|
event.preventDefault();
|
|
7577
|
-
}, [focusedItem]);
|
|
7578
|
-
useKeyPress(['ArrowDown', 'ArrowUp', 'Enter'], handleKeyPress);
|
|
7632
|
+
}, [actions, focusOnNextItem, focusOnPrevItem, focusedItem, listItems, listReference]);
|
|
7633
|
+
useKeyPress(['ArrowDown', 'ArrowUp', 'ArrowRight', 'ArrowLeft', 'Enter'], handleKeyPress);
|
|
7579
7634
|
return {
|
|
7580
7635
|
focusedItem,
|
|
7581
7636
|
setFocusOnItem
|
|
@@ -7592,18 +7647,136 @@ const checkIsComponent = (element, config) => {
|
|
|
7592
7647
|
return isComponent;
|
|
7593
7648
|
};
|
|
7594
7649
|
|
|
7595
|
-
var styles$
|
|
7650
|
+
var styles$1b = {"dropdown-list-divider":"_ISJ4M"};
|
|
7596
7651
|
|
|
7597
7652
|
const DropdownListDivider = ({
|
|
7598
7653
|
testId
|
|
7599
7654
|
}) => {
|
|
7600
7655
|
return React__default.createElement("div", {
|
|
7601
|
-
className: styles$
|
|
7656
|
+
className: styles$1b['dropdown-list-divider'],
|
|
7602
7657
|
"data-testid": testId
|
|
7603
7658
|
});
|
|
7604
7659
|
};
|
|
7605
7660
|
|
|
7606
|
-
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
|
+
};
|
|
7607
7780
|
|
|
7608
7781
|
const DropdownListItem = ({
|
|
7609
7782
|
onClick,
|
|
@@ -7616,42 +7789,80 @@ const DropdownListItem = ({
|
|
|
7616
7789
|
children,
|
|
7617
7790
|
href,
|
|
7618
7791
|
target: _target = LINK_TARGET.SELF,
|
|
7619
|
-
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
|
|
7620
7796
|
}) => {
|
|
7621
7797
|
const {
|
|
7622
7798
|
onToggleDropdown
|
|
7623
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]);
|
|
7624
7825
|
const handleClick = e => {
|
|
7625
7826
|
e.stopPropagation();
|
|
7626
7827
|
if (disabled) {
|
|
7627
7828
|
return;
|
|
7628
7829
|
}
|
|
7629
|
-
|
|
7830
|
+
if (!!submenu) {
|
|
7831
|
+
openSubmenu();
|
|
7832
|
+
return;
|
|
7833
|
+
}
|
|
7834
|
+
if (!_isSelectable) {
|
|
7835
|
+
onToggleDropdown();
|
|
7836
|
+
}
|
|
7630
7837
|
onClick && onClick(e);
|
|
7631
7838
|
};
|
|
7632
7839
|
const childrenContainer = React__default.createElement("div", {
|
|
7633
|
-
className: styles$
|
|
7840
|
+
className: styles$1a['dropdown-list-item__container']
|
|
7634
7841
|
}, prefix && React__default.createElement("div", {
|
|
7635
|
-
className: styles$
|
|
7842
|
+
className: styles$1a['dropdown-list-item__prefix']
|
|
7636
7843
|
}, prefix), React__default.createElement("div", {
|
|
7637
|
-
className: styles$
|
|
7844
|
+
className: styles$1a['dropdown-list-item__content']
|
|
7638
7845
|
}, React__default.createElement(Stack, {
|
|
7639
|
-
space:
|
|
7846
|
+
space: 0,
|
|
7640
7847
|
flex: [1]
|
|
7641
7848
|
}, children, caption && React__default.createElement("div", {
|
|
7642
|
-
className: styles$
|
|
7643
|
-
}, caption))), suffix && React__default.createElement("div", {
|
|
7644
|
-
className: styles$
|
|
7645
|
-
}, 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
|
+
})));
|
|
7646
7857
|
const linkItem = href && (_reloadDocument ? React__default.createElement("a", {
|
|
7647
7858
|
href: href,
|
|
7648
|
-
className: styles$
|
|
7859
|
+
className: styles$1a['dropdown-list-item__link'],
|
|
7649
7860
|
target: _target,
|
|
7650
7861
|
tabIndex: -1
|
|
7651
7862
|
}, childrenContainer) : React__default.createElement(Link$1, {
|
|
7652
7863
|
to: href,
|
|
7653
7864
|
target: _target,
|
|
7654
|
-
className: styles$
|
|
7865
|
+
className: styles$1a['dropdown-list-item__link'],
|
|
7655
7866
|
reloadDocument: false,
|
|
7656
7867
|
tabIndex: -1,
|
|
7657
7868
|
"data-testid": testId
|
|
@@ -7659,18 +7870,56 @@ const DropdownListItem = ({
|
|
|
7659
7870
|
return (
|
|
7660
7871
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
7661
7872
|
React__default.createElement("div", {
|
|
7662
|
-
className: classnames(styles$
|
|
7663
|
-
[styles$
|
|
7664
|
-
[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
|
|
7665
7876
|
}),
|
|
7666
7877
|
onMouseDown: e => e.preventDefault(),
|
|
7667
7878
|
onClick: handleClick,
|
|
7668
7879
|
onKeyPress: handleClick,
|
|
7669
|
-
|
|
7670
|
-
|
|
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))
|
|
7671
7891
|
);
|
|
7672
7892
|
};
|
|
7673
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
|
+
|
|
7674
7923
|
const canInteractWithItem = child => {
|
|
7675
7924
|
const itemType = getItemType(child);
|
|
7676
7925
|
if (itemType === 'DropdownListDivider') {
|
|
@@ -7687,13 +7936,20 @@ const getItemType = child => {
|
|
|
7687
7936
|
component: DropdownListItem,
|
|
7688
7937
|
displayName: 'DropdownListItem'
|
|
7689
7938
|
});
|
|
7939
|
+
const isDropdownListItemSelectable = checkIsComponent(child, {
|
|
7940
|
+
component: DropdownListItemSelectable,
|
|
7941
|
+
displayName: 'DropdownListItemSelectable'
|
|
7942
|
+
});
|
|
7690
7943
|
if (isDropdownListDivider) {
|
|
7691
7944
|
return 'DropdownListDivider';
|
|
7692
7945
|
}
|
|
7693
7946
|
if (isDropdownListItem) {
|
|
7694
7947
|
return 'DropdownListItem';
|
|
7695
7948
|
}
|
|
7696
|
-
|
|
7949
|
+
if (isDropdownListItemSelectable) {
|
|
7950
|
+
return 'DropdownListItemSelectable';
|
|
7951
|
+
}
|
|
7952
|
+
throw new Error('DropdownList - dropdown items should be using DropdownListDivider, DropdownListItem or DropdownListItemSelectable components');
|
|
7697
7953
|
};
|
|
7698
7954
|
|
|
7699
7955
|
const DropdownList = ({
|
|
@@ -7711,7 +7967,8 @@ const DropdownList = ({
|
|
|
7711
7967
|
return {
|
|
7712
7968
|
disabled: !canInteractWithItem(child),
|
|
7713
7969
|
onClick: child.props.onClick,
|
|
7714
|
-
href: child.props.href
|
|
7970
|
+
href: child.props.href,
|
|
7971
|
+
submenu: child.props.submenu
|
|
7715
7972
|
};
|
|
7716
7973
|
});
|
|
7717
7974
|
const listRef = useRef(null);
|
|
@@ -7720,7 +7977,13 @@ const DropdownList = ({
|
|
|
7720
7977
|
// get the nth list item in the dropdown
|
|
7721
7978
|
const element = listRef.current.querySelector(`:nth-child(${newFocusItem + 1})`);
|
|
7722
7979
|
const parentList = listRef.current.parentNode;
|
|
7723
|
-
|
|
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
|
+
}
|
|
7724
7987
|
}
|
|
7725
7988
|
};
|
|
7726
7989
|
const {
|
|
@@ -7737,16 +8000,16 @@ const DropdownList = ({
|
|
|
7737
8000
|
scrollToItem(highlightItemIndex);
|
|
7738
8001
|
}
|
|
7739
8002
|
}
|
|
7740
|
-
}, [highlightItemIndex]);
|
|
8003
|
+
}, [highlightItemIndex, setFocusOnItem]);
|
|
7741
8004
|
return React__default.createElement("ul", {
|
|
7742
|
-
className: styles$
|
|
8005
|
+
className: styles$1c['dropdown-list'],
|
|
7743
8006
|
"data-testid": testId,
|
|
7744
8007
|
ref: listRef
|
|
7745
8008
|
}, React__default.Children.toArray(children).filter(Boolean).map((child, index) => {
|
|
7746
8009
|
return React__default.createElement("li", {
|
|
7747
8010
|
key: index,
|
|
7748
|
-
className: classnames(styles$
|
|
7749
|
-
[styles$
|
|
8011
|
+
className: classnames(styles$1c['dropdown-list__item'], {
|
|
8012
|
+
[styles$1c['dropdown-list__item--hover']]: focusedItem === index
|
|
7750
8013
|
}),
|
|
7751
8014
|
onMouseEnter: () => setFocusOnItem(index),
|
|
7752
8015
|
role: "menuitem"
|
|
@@ -7770,7 +8033,7 @@ const KebabMenu = ({
|
|
|
7770
8033
|
}, action.label))));
|
|
7771
8034
|
};
|
|
7772
8035
|
|
|
7773
|
-
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"};
|
|
7774
8037
|
|
|
7775
8038
|
const CardContext = createContext({
|
|
7776
8039
|
isCardMounted: false
|
|
@@ -7806,28 +8069,28 @@ const Card = _ref => {
|
|
|
7806
8069
|
isCardMounted: true
|
|
7807
8070
|
}
|
|
7808
8071
|
}, React__default.createElement("div", _extends({
|
|
7809
|
-
className: classnames(styles$
|
|
8072
|
+
className: classnames(styles$18['card']),
|
|
7810
8073
|
style: positionStyles
|
|
7811
8074
|
}, dataProps), onClick ? React__default.createElement("button", {
|
|
7812
|
-
className: classnames(styles$
|
|
7813
|
-
[styles$
|
|
7814
|
-
[styles$
|
|
7815
|
-
[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
|
|
7816
8079
|
}),
|
|
7817
8080
|
"data-testid": testId,
|
|
7818
8081
|
tabIndex: 0,
|
|
7819
8082
|
onClick: onClick,
|
|
7820
8083
|
disabled: disabled
|
|
7821
8084
|
}, children) : React__default.createElement("div", {
|
|
7822
|
-
className: classnames(styles$
|
|
7823
|
-
[styles$
|
|
7824
|
-
[styles$
|
|
7825
|
-
[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
|
|
7826
8089
|
}),
|
|
7827
8090
|
"data-testid": testId
|
|
7828
8091
|
}, children), actions && React__default.createElement("div", {
|
|
7829
|
-
className: classnames(styles$
|
|
7830
|
-
[styles$
|
|
8092
|
+
className: classnames(styles$18['card__kebab'], {
|
|
8093
|
+
[styles$18['card__kebab--disabled']]: disabled
|
|
7831
8094
|
})
|
|
7832
8095
|
}, React__default.createElement(KebabMenu, {
|
|
7833
8096
|
actions: onClose ? actions.concat({
|
|
@@ -7836,8 +8099,8 @@ const Card = _ref => {
|
|
|
7836
8099
|
onAction: onClose
|
|
7837
8100
|
}) : actions
|
|
7838
8101
|
})), !actions && onClose && React__default.createElement("div", {
|
|
7839
|
-
className: classnames(styles$
|
|
7840
|
-
[styles$
|
|
8102
|
+
className: classnames(styles$18['card__close'], {
|
|
8103
|
+
[styles$18['card__close--disabled']]: disabled
|
|
7841
8104
|
})
|
|
7842
8105
|
}, React__default.createElement(Button, {
|
|
7843
8106
|
theme: "link-icon",
|
|
@@ -7845,7 +8108,7 @@ const Card = _ref => {
|
|
|
7845
8108
|
}, React__default.createElement(IconTimes, null)))));
|
|
7846
8109
|
};
|
|
7847
8110
|
|
|
7848
|
-
var styles$
|
|
8111
|
+
var styles$17 = {"callout-card__close":"_VxmQm","callout-card__header":"_3RrQI"};
|
|
7849
8112
|
|
|
7850
8113
|
/**
|
|
7851
8114
|
* @deprecated Use `<EmptyState as='card' />` instead
|
|
@@ -7866,7 +8129,7 @@ const CalloutCard = ({
|
|
|
7866
8129
|
}, React__default.createElement(Stack, {
|
|
7867
8130
|
space: 12
|
|
7868
8131
|
}, React__default.createElement("div", {
|
|
7869
|
-
className: styles$
|
|
8132
|
+
className: styles$17['callout-card__header']
|
|
7870
8133
|
}, React__default.createElement(Text, {
|
|
7871
8134
|
as: "body",
|
|
7872
8135
|
color: "primary-color"
|
|
@@ -7881,7 +8144,7 @@ const CalloutCard = ({
|
|
|
7881
8144
|
alt: String(title) + String(header),
|
|
7882
8145
|
width: "354px"
|
|
7883
8146
|
})), onClose && React__default.createElement("div", {
|
|
7884
|
-
className: styles$
|
|
8147
|
+
className: styles$17['callout-card__close']
|
|
7885
8148
|
}, React__default.createElement(Button, {
|
|
7886
8149
|
theme: "link-icon",
|
|
7887
8150
|
onClick: onClose
|
|
@@ -7897,7 +8160,7 @@ const Breadcrumbs = ({
|
|
|
7897
8160
|
}, children);
|
|
7898
8161
|
};
|
|
7899
8162
|
|
|
7900
|
-
var styles$
|
|
8163
|
+
var styles$16 = {"breadcrumb-item":"_fo7-A"};
|
|
7901
8164
|
|
|
7902
8165
|
const BreadcrumbItem = ({
|
|
7903
8166
|
href,
|
|
@@ -7911,25 +8174,25 @@ const BreadcrumbItem = ({
|
|
|
7911
8174
|
// This is neessary to support older versions of react-router-dom
|
|
7912
8175
|
return _reloadDocument ? React__default.createElement("a", {
|
|
7913
8176
|
href: href,
|
|
7914
|
-
className: styles$
|
|
8177
|
+
className: styles$16['breadcrumb-item'],
|
|
7915
8178
|
"data-testid": testId
|
|
7916
8179
|
}, content) : React__default.createElement(Link$1, {
|
|
7917
8180
|
to: href,
|
|
7918
|
-
className: styles$
|
|
8181
|
+
className: styles$16['breadcrumb-item'],
|
|
7919
8182
|
relative: "path",
|
|
7920
8183
|
reloadDocument: _reloadDocument,
|
|
7921
8184
|
"data-testid": testId
|
|
7922
8185
|
}, content);
|
|
7923
8186
|
};
|
|
7924
8187
|
|
|
7925
|
-
var styles$
|
|
8188
|
+
var styles$15 = {"page-breadcrumbs":"_QjIgc"};
|
|
7926
8189
|
|
|
7927
8190
|
const PageBreadcrumbs = ({
|
|
7928
8191
|
breadcrumbs
|
|
7929
8192
|
}) => {
|
|
7930
8193
|
const items = getBreadbrumbItems(breadcrumbs);
|
|
7931
8194
|
return React__default.createElement("div", {
|
|
7932
|
-
className: styles$
|
|
8195
|
+
className: styles$15['page-breadcrumbs']
|
|
7933
8196
|
}, React__default.createElement(Breadcrumbs, null, items));
|
|
7934
8197
|
};
|
|
7935
8198
|
const getBreadbrumbItems = breadcrumbs => {
|
|
@@ -7949,7 +8212,7 @@ const getBreadbrumbItems = breadcrumbs => {
|
|
|
7949
8212
|
}, breadcrumbs.label);
|
|
7950
8213
|
};
|
|
7951
8214
|
|
|
7952
|
-
var styles$
|
|
8215
|
+
var styles$14 = {"page":"_QB6yF","page--fullwidth":"_g7MTf","page--restricted":"_LRq4j"};
|
|
7953
8216
|
|
|
7954
8217
|
const PAGE_SIZES = {
|
|
7955
8218
|
FULL_WIDTH: 'fullwidth',
|
|
@@ -7970,9 +8233,9 @@ const Page = ({
|
|
|
7970
8233
|
const hasHeader = title || actions;
|
|
7971
8234
|
const hasPageBlocks = hasHeader || banner || filterBar;
|
|
7972
8235
|
return React__default.createElement("div", {
|
|
7973
|
-
className: classnames(styles$
|
|
7974
|
-
[styles$
|
|
7975
|
-
[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
|
|
7976
8239
|
}),
|
|
7977
8240
|
"data-testid": testId
|
|
7978
8241
|
}, React__default.createElement(Stack, {
|
|
@@ -7993,15 +8256,15 @@ const Page = ({
|
|
|
7993
8256
|
}, title), actions), subtitle && React__default.createElement(Text, null, subtitle)), banner, filterBar)), children));
|
|
7994
8257
|
};
|
|
7995
8258
|
|
|
7996
|
-
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"};
|
|
7997
8260
|
|
|
7998
|
-
var styles$
|
|
8261
|
+
var styles$12 = {"menu-item":"_SebbU","menu-item--active":"_CDEVl","menu-item--with-badge":"_VudDE","menu-item__badge":"_vErBS"};
|
|
7999
8262
|
|
|
8000
|
-
var styles
|
|
8263
|
+
var styles$11 = {"badge":"_RXV4h","badge--warning":"_2An1I","badge--danger":"_-Bw8L","badge--success":"_RxlMz","badge--info":"_dzCH-","badge--numeric":"_Ix9tP"};
|
|
8001
8264
|
|
|
8002
|
-
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"};
|
|
8003
8266
|
|
|
8004
|
-
var styles
|
|
8267
|
+
var styles$$ = {"header":"_tgpG9","header__close-button":"_b1dgU","sub-header":"_c2nm4"};
|
|
8005
8268
|
|
|
8006
8269
|
const ModalHeader = ({
|
|
8007
8270
|
header,
|
|
@@ -8011,7 +8274,7 @@ const ModalHeader = ({
|
|
|
8011
8274
|
}) => {
|
|
8012
8275
|
if (!header && !subHeader) {
|
|
8013
8276
|
return onClose ? React__default.createElement("div", {
|
|
8014
|
-
className: styles
|
|
8277
|
+
className: styles$$['header__close-button']
|
|
8015
8278
|
}, React__default.createElement(Button, {
|
|
8016
8279
|
theme: "link-icon",
|
|
8017
8280
|
onClick: onClose,
|
|
@@ -8027,13 +8290,13 @@ const ModalHeader = ({
|
|
|
8027
8290
|
flex: [1],
|
|
8028
8291
|
alignItems: "center"
|
|
8029
8292
|
}, React__default.createElement("span", {
|
|
8030
|
-
className: styles
|
|
8293
|
+
className: styles$$['header']
|
|
8031
8294
|
}, header), onClose && React__default.createElement(Button, {
|
|
8032
8295
|
theme: "link-icon",
|
|
8033
8296
|
onClick: onClose,
|
|
8034
8297
|
disabled: loading
|
|
8035
8298
|
}, React__default.createElement(IconTimes, null))), subHeader && React__default.createElement("div", {
|
|
8036
|
-
className: styles
|
|
8299
|
+
className: styles$$['sub-header']
|
|
8037
8300
|
}, subHeader));
|
|
8038
8301
|
};
|
|
8039
8302
|
|
|
@@ -8091,14 +8354,14 @@ const Modal = _ref => {
|
|
|
8091
8354
|
contentLabel: "Modal",
|
|
8092
8355
|
appElement: rootElementId && document.getElementById(rootElementId) || undefined,
|
|
8093
8356
|
overlayClassName: {
|
|
8094
|
-
base: styles$
|
|
8095
|
-
afterOpen: styles$
|
|
8096
|
-
beforeClose: styles$
|
|
8357
|
+
base: styles$10['overlay'],
|
|
8358
|
+
afterOpen: styles$10['overlay--after-open'],
|
|
8359
|
+
beforeClose: styles$10['overlay--before-close']
|
|
8097
8360
|
},
|
|
8098
8361
|
className: {
|
|
8099
|
-
base: styles$
|
|
8100
|
-
afterOpen: styles$
|
|
8101
|
-
beforeClose: styles$
|
|
8362
|
+
base: styles$10['content'],
|
|
8363
|
+
afterOpen: styles$10['content--after-open'],
|
|
8364
|
+
beforeClose: styles$10['content--before-close']
|
|
8102
8365
|
},
|
|
8103
8366
|
data: dataProps
|
|
8104
8367
|
}, React__default.createElement(ModalHeader, {
|
|
@@ -8140,7 +8403,7 @@ const useScrollShadow = () => {
|
|
|
8140
8403
|
};
|
|
8141
8404
|
};
|
|
8142
8405
|
|
|
8143
|
-
var styles$
|
|
8406
|
+
var styles$_ = {"modal-body":"_4YK4k","modal-body--with-scroll-shadow":"_wo1vv","modal-body__inner-div":"_9u6xC"};
|
|
8144
8407
|
|
|
8145
8408
|
const ModalBody = ({
|
|
8146
8409
|
children,
|
|
@@ -8151,17 +8414,17 @@ const ModalBody = ({
|
|
|
8151
8414
|
showScrollShadow
|
|
8152
8415
|
} = useScrollShadow();
|
|
8153
8416
|
return React__default.createElement("div", {
|
|
8154
|
-
className: classnames(styles$
|
|
8155
|
-
[styles$
|
|
8417
|
+
className: classnames(styles$_['modal-body'], {
|
|
8418
|
+
[styles$_['modal-body--with-scroll-shadow']]: showScrollShadow
|
|
8156
8419
|
}),
|
|
8157
8420
|
ref: ref,
|
|
8158
8421
|
"data-testid": testId
|
|
8159
8422
|
}, React__default.createElement("div", {
|
|
8160
|
-
className: styles$
|
|
8423
|
+
className: styles$_['modal-body__inner-div']
|
|
8161
8424
|
}, children));
|
|
8162
8425
|
};
|
|
8163
8426
|
|
|
8164
|
-
var styles$
|
|
8427
|
+
var styles$Z = {"modal-footer":"_bezlP","tertiary-container":"_EdqHx"};
|
|
8165
8428
|
|
|
8166
8429
|
const updateButtonProps$1 = (button, newProps) => {
|
|
8167
8430
|
if (!button) {
|
|
@@ -8198,7 +8461,7 @@ const ModalFooter = ({
|
|
|
8198
8461
|
justifyContent: "space-between"
|
|
8199
8462
|
}, React__default.createElement("div", {
|
|
8200
8463
|
className: classnames({
|
|
8201
|
-
[styles$
|
|
8464
|
+
[styles$Z['tertiary-container']]: tertiaryButton && tertiaryButton.props.theme.startsWith('link')
|
|
8202
8465
|
})
|
|
8203
8466
|
}, tertiaryButton || React__default.createElement("div", null)), React__default.createElement(Inline, {
|
|
8204
8467
|
space: 12
|
|
@@ -8216,7 +8479,7 @@ const FooterContainer = ({
|
|
|
8216
8479
|
displayName: 'Inline'
|
|
8217
8480
|
});
|
|
8218
8481
|
return React__default.createElement("div", {
|
|
8219
|
-
className: styles$
|
|
8482
|
+
className: styles$Z['modal-footer'],
|
|
8220
8483
|
"data-testid": testId
|
|
8221
8484
|
}, React__default.createElement(Inline, {
|
|
8222
8485
|
justifyContent: "end",
|
|
@@ -8229,7 +8492,7 @@ var dayOverridesStyles = {"root":"_et9Fs","table":"_l7Mis","caption":"_XGu8K","h
|
|
|
8229
8492
|
|
|
8230
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"};
|
|
8231
8494
|
|
|
8232
|
-
var styles$
|
|
8495
|
+
var styles$Y = {"calendar":"_YPyZ6","calendar__overlay":"_-cw0A"};
|
|
8233
8496
|
|
|
8234
8497
|
function parseDate(str, format, locale) {
|
|
8235
8498
|
const parsed = dateFnsParse(str, format, new Date(), {
|
|
@@ -8465,9 +8728,9 @@ const Calendar = ({
|
|
|
8465
8728
|
}
|
|
8466
8729
|
};
|
|
8467
8730
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
8468
|
-
className: styles$
|
|
8731
|
+
className: styles$Y['calendar']
|
|
8469
8732
|
}, React__default.createElement("div", {
|
|
8470
|
-
className: styles$
|
|
8733
|
+
className: styles$Y['calendar__overlay'],
|
|
8471
8734
|
ref: ref => setCalendarRef(ref),
|
|
8472
8735
|
style: _extends({}, calendarPosition, {
|
|
8473
8736
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -8525,7 +8788,7 @@ const useCheckBoxFieldControllers = ({
|
|
|
8525
8788
|
return controllers;
|
|
8526
8789
|
};
|
|
8527
8790
|
|
|
8528
|
-
var styles$
|
|
8791
|
+
var styles$X = {"check-box-field":"_Id4qm","check-box-field__caption":"_s9d-m","check-box-field__custom-input":"_kmvBP"};
|
|
8529
8792
|
|
|
8530
8793
|
const _excluded$m = ["name", "id", "checked", "onChange", "onBlur", "label", "caption", "error", "disabled", "testId"];
|
|
8531
8794
|
/** CheckboxField form element. */
|
|
@@ -8560,7 +8823,7 @@ const CheckboxField = _ref => {
|
|
|
8560
8823
|
flexItems: true,
|
|
8561
8824
|
flex: ['0 0 auto']
|
|
8562
8825
|
}, otherProps), React__default.createElement("div", {
|
|
8563
|
-
className: styles$
|
|
8826
|
+
className: styles$X['check-box-field']
|
|
8564
8827
|
}, React__default.createElement("input", {
|
|
8565
8828
|
name: name,
|
|
8566
8829
|
id: controllers.id,
|
|
@@ -8573,12 +8836,12 @@ const CheckboxField = _ref => {
|
|
|
8573
8836
|
onChange: controllers.onChange,
|
|
8574
8837
|
onBlur: controllers.onBlur
|
|
8575
8838
|
}), React__default.createElement("span", {
|
|
8576
|
-
className: styles$
|
|
8839
|
+
className: styles$X['check-box-field__custom-input']
|
|
8577
8840
|
})), label && React__default.createElement(Label, {
|
|
8578
8841
|
htmlFor: controllers.id,
|
|
8579
8842
|
truncate: false
|
|
8580
8843
|
}, label)), caption && React__default.createElement("div", {
|
|
8581
|
-
className: styles$
|
|
8844
|
+
className: styles$X['check-box-field__caption']
|
|
8582
8845
|
}, React__default.createElement(Caption, {
|
|
8583
8846
|
fieldId: controllers.id
|
|
8584
8847
|
}, caption)), controllers.error && React__default.createElement(ErrorMessage, {
|
|
@@ -8616,7 +8879,7 @@ const useLocalStorage = (key, initialValue) => {
|
|
|
8616
8879
|
return [storedValue, setValue];
|
|
8617
8880
|
};
|
|
8618
8881
|
|
|
8619
|
-
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"};
|
|
8620
8883
|
|
|
8621
8884
|
const _excluded$l = ["header", "children", "mediaUrl", "onClose", "modalId", "primaryButton", "secondaryButton", "testId", "onSetDoNotShowAgainStatus"];
|
|
8622
8885
|
const HintModal = _ref => {
|
|
@@ -8679,22 +8942,22 @@ const HintModal = _ref => {
|
|
|
8679
8942
|
closeTimeoutMS: 200,
|
|
8680
8943
|
contentLabel: "Modal",
|
|
8681
8944
|
className: {
|
|
8682
|
-
base: styles$
|
|
8683
|
-
afterOpen: styles$
|
|
8684
|
-
beforeClose: styles$
|
|
8945
|
+
base: styles$W['hint-modal'],
|
|
8946
|
+
afterOpen: styles$W['hint-modal--after-open'],
|
|
8947
|
+
beforeClose: styles$W['hint-modal--before-close']
|
|
8685
8948
|
},
|
|
8686
|
-
overlayClassName: styles$
|
|
8949
|
+
overlayClassName: styles$W['hint-modal__overlay']
|
|
8687
8950
|
}, React__default.createElement("div", {
|
|
8688
|
-
className: styles$
|
|
8951
|
+
className: styles$W['hint-modal__close-button']
|
|
8689
8952
|
}, React__default.createElement(Button, {
|
|
8690
8953
|
theme: "link-icon",
|
|
8691
8954
|
onClick: handleOnClose
|
|
8692
8955
|
}, React__default.createElement(IconTimes, null))), mediaUrl && React__default.createElement("img", {
|
|
8693
|
-
className: styles$
|
|
8956
|
+
className: styles$W['hint-modal__image'],
|
|
8694
8957
|
src: mediaUrl,
|
|
8695
8958
|
alt: String(header)
|
|
8696
8959
|
}), React__default.createElement("div", {
|
|
8697
|
-
className: styles$
|
|
8960
|
+
className: styles$W['hint-modal__body']
|
|
8698
8961
|
}, React__default.createElement(Stack, {
|
|
8699
8962
|
justifyContent: "space-between"
|
|
8700
8963
|
}, React__default.createElement(Stack, {
|
|
@@ -8735,12 +8998,12 @@ const BadgeElement = (_ref, forwardedRef) => {
|
|
|
8735
8998
|
overlay: title,
|
|
8736
8999
|
ref: ref
|
|
8737
9000
|
}, React__default.createElement("div", _extends({
|
|
8738
|
-
className: classnames(styles
|
|
8739
|
-
[styles
|
|
8740
|
-
[styles
|
|
8741
|
-
[styles
|
|
8742
|
-
[styles
|
|
8743
|
-
[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)
|
|
8744
9007
|
}),
|
|
8745
9008
|
ref: ref,
|
|
8746
9009
|
"data-testid": testId
|
|
@@ -8752,28 +9015,28 @@ const MenuItem = ({
|
|
|
8752
9015
|
menu
|
|
8753
9016
|
}) => {
|
|
8754
9017
|
return React__default.createElement("li", {
|
|
8755
|
-
className: classnames(styles$
|
|
8756
|
-
[styles$
|
|
9018
|
+
className: classnames(styles$12['menu-item'], {
|
|
9019
|
+
[styles$12['menu-item--with-badge']]: !!menu.suffix
|
|
8757
9020
|
})
|
|
8758
9021
|
}, menu.reloadDocument ? React__default.createElement("a", {
|
|
8759
9022
|
href: menu.to,
|
|
8760
9023
|
className: classnames({
|
|
8761
|
-
[styles$
|
|
9024
|
+
[styles$12['menu-item--active']]: menu.isActive
|
|
8762
9025
|
})
|
|
8763
9026
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
8764
|
-
className: styles$
|
|
9027
|
+
className: styles$12['menu-item__badge']
|
|
8765
9028
|
}, React__default.createElement(Badge, null, menu.suffix))) : React__default.createElement(NavLink, {
|
|
8766
9029
|
to: menu.to,
|
|
8767
9030
|
// @ts-expect-error This is only available on v5
|
|
8768
|
-
activeClassName: styles$
|
|
9031
|
+
activeClassName: styles$12['menu-item--active'],
|
|
8769
9032
|
className: ({
|
|
8770
9033
|
isActive
|
|
8771
9034
|
}) => {
|
|
8772
|
-
return isActive ? styles$
|
|
9035
|
+
return isActive ? styles$12['menu-item--active'] : '';
|
|
8773
9036
|
},
|
|
8774
9037
|
exact: true
|
|
8775
9038
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
8776
|
-
className: styles$
|
|
9039
|
+
className: styles$12['menu-item__badge']
|
|
8777
9040
|
}, React__default.createElement(Badge, null, menu.suffix))));
|
|
8778
9041
|
};
|
|
8779
9042
|
|
|
@@ -8784,9 +9047,9 @@ const PageLayout = ({
|
|
|
8784
9047
|
sideNavContent
|
|
8785
9048
|
}) => {
|
|
8786
9049
|
return React__default.createElement("div", {
|
|
8787
|
-
className: styles$
|
|
9050
|
+
className: styles$13['page-layout']
|
|
8788
9051
|
}, React__default.createElement("div", {
|
|
8789
|
-
className: styles$
|
|
9052
|
+
className: styles$13['page-layout__nav-container']
|
|
8790
9053
|
}, React__default.createElement(Stack, {
|
|
8791
9054
|
space: 12
|
|
8792
9055
|
}, React__default.createElement(Text, {
|
|
@@ -8795,14 +9058,14 @@ const PageLayout = ({
|
|
|
8795
9058
|
ml: 20,
|
|
8796
9059
|
mr: 35
|
|
8797
9060
|
}, title), React__default.createElement("ul", {
|
|
8798
|
-
className: styles$
|
|
9061
|
+
className: styles$13['page-layout__nav-list']
|
|
8799
9062
|
}, menu.filter(menu => !('isVisible' in menu) || (menu == null ? void 0 : menu.isVisible) === true).map((menuItem, index) => React__default.createElement(MenuItem, {
|
|
8800
9063
|
key: menuItem.name || index,
|
|
8801
9064
|
menu: menuItem
|
|
8802
9065
|
}))), sideNavContent && React__default.createElement("div", {
|
|
8803
|
-
className: styles$
|
|
9066
|
+
className: styles$13['page-layout__side-nav-content']
|
|
8804
9067
|
}, sideNavContent))), React__default.createElement("div", {
|
|
8805
|
-
className: styles$
|
|
9068
|
+
className: styles$13['page-layout__content']
|
|
8806
9069
|
}, children));
|
|
8807
9070
|
};
|
|
8808
9071
|
|
|
@@ -8812,7 +9075,7 @@ const TOAST_THEME = {
|
|
|
8812
9075
|
};
|
|
8813
9076
|
const TOAST_CONTAINER_ID = 'sous-chef-toast';
|
|
8814
9077
|
|
|
8815
|
-
var styles$
|
|
9078
|
+
var styles$V = {"toast":"_iSC5P","toast--danger":"_OWpOG","toast__text":"_4JJwF"};
|
|
8816
9079
|
|
|
8817
9080
|
const toast = (text, theme = TOAST_THEME.DEFAULT, options = {}) => {
|
|
8818
9081
|
if (typeof text !== 'string') {
|
|
@@ -8829,8 +9092,8 @@ const toast = (text, theme = TOAST_THEME.DEFAULT, options = {}) => {
|
|
|
8829
9092
|
onActionClick: onActionClick
|
|
8830
9093
|
}) : text;
|
|
8831
9094
|
toast$1(content, _extends({
|
|
8832
|
-
className: classnames(styles$
|
|
8833
|
-
[styles$
|
|
9095
|
+
className: classnames(styles$V['toast'], {
|
|
9096
|
+
[styles$V['toast--danger']]: theme === TOAST_THEME.DANGER
|
|
8834
9097
|
}),
|
|
8835
9098
|
containerId: TOAST_CONTAINER_ID
|
|
8836
9099
|
}, options));
|
|
@@ -8856,7 +9119,7 @@ const ToastBodyWithAction = ({
|
|
|
8856
9119
|
const ToastContainer = ({
|
|
8857
9120
|
containerId: _containerId = TOAST_CONTAINER_ID
|
|
8858
9121
|
}) => React__default.createElement(ToastContainer$1, {
|
|
8859
|
-
bodyClassName: styles$
|
|
9122
|
+
bodyClassName: styles$V['toast__text'],
|
|
8860
9123
|
hideProgressBar: true,
|
|
8861
9124
|
draggable: false,
|
|
8862
9125
|
transition: Slide,
|
|
@@ -8870,7 +9133,9 @@ const initialValue$1 = {
|
|
|
8870
9133
|
// This country prop is currently used to configure the phone number field
|
|
8871
9134
|
country: 'US',
|
|
8872
9135
|
// This timeFormat prop is currently used to configure the time format for time fields
|
|
8873
|
-
timeFormat: TIME_FORMAT.FORMAT_AMPM
|
|
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'
|
|
8874
9139
|
};
|
|
8875
9140
|
const ProviderConfigContext = createContext(initialValue$1);
|
|
8876
9141
|
const useProviderConfig = () => {
|
|
@@ -8881,16 +9146,46 @@ const useProviderConfig = () => {
|
|
|
8881
9146
|
return context;
|
|
8882
9147
|
};
|
|
8883
9148
|
|
|
9149
|
+
/**
|
|
9150
|
+
* Don't use this hook directly. This is meant to be used internally by the SousChefProvider
|
|
9151
|
+
* To access the current theme, use the useProviderConfig hook instead
|
|
9152
|
+
*/
|
|
9153
|
+
const useTheme = () => {
|
|
9154
|
+
const [theme, setTheme] = useState(() => {
|
|
9155
|
+
const isDark = document.documentElement.classList.contains('theme-dark');
|
|
9156
|
+
return isDark ? 'dark' : 'light';
|
|
9157
|
+
});
|
|
9158
|
+
useEffect(() => {
|
|
9159
|
+
const observer = new MutationObserver(mutations => {
|
|
9160
|
+
mutations.forEach(mutation => {
|
|
9161
|
+
if (mutation.attributeName === 'class') {
|
|
9162
|
+
const isDark = document.documentElement.classList.contains('theme-dark');
|
|
9163
|
+
setTheme(isDark ? 'dark' : 'light');
|
|
9164
|
+
}
|
|
9165
|
+
});
|
|
9166
|
+
});
|
|
9167
|
+
observer.observe(document.documentElement, {
|
|
9168
|
+
attributes: true
|
|
9169
|
+
});
|
|
9170
|
+
return () => {
|
|
9171
|
+
observer.disconnect();
|
|
9172
|
+
};
|
|
9173
|
+
}, []);
|
|
9174
|
+
return theme;
|
|
9175
|
+
};
|
|
9176
|
+
|
|
8884
9177
|
const SousChefProvider = ({
|
|
8885
9178
|
children,
|
|
8886
9179
|
i18n: _i18n = en,
|
|
8887
9180
|
country: _country = 'US',
|
|
8888
9181
|
timeFormat: _timeFormat = TIME_FORMAT.FORMAT_AMPM
|
|
8889
9182
|
}) => {
|
|
9183
|
+
const theme = useTheme();
|
|
8890
9184
|
return React__default.createElement(ProviderConfigContext.Provider, {
|
|
8891
9185
|
value: {
|
|
8892
9186
|
country: isSupportedCountry(_country) ? _country : 'US',
|
|
8893
|
-
timeFormat: _timeFormat
|
|
9187
|
+
timeFormat: _timeFormat,
|
|
9188
|
+
theme
|
|
8894
9189
|
}
|
|
8895
9190
|
}, React__default.createElement(TranslationsContext.Provider, {
|
|
8896
9191
|
value: {
|
|
@@ -8899,7 +9194,7 @@ const SousChefProvider = ({
|
|
|
8899
9194
|
}, React__default.createElement(ToastContainer, null), children));
|
|
8900
9195
|
};
|
|
8901
9196
|
|
|
8902
|
-
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"};
|
|
8903
9198
|
|
|
8904
9199
|
const SORT_ORDER = {
|
|
8905
9200
|
ASC: 'asc',
|
|
@@ -9072,7 +9367,7 @@ const DataTableHeader = ({
|
|
|
9072
9367
|
},
|
|
9073
9368
|
id: `${tableId}-header`
|
|
9074
9369
|
}, React__default.createElement("tr", {
|
|
9075
|
-
className: styles$
|
|
9370
|
+
className: styles$U['data-table-header']
|
|
9076
9371
|
}, columns.filter(column => !column.hidden).map(column => {
|
|
9077
9372
|
const isSortable = column.isSortable;
|
|
9078
9373
|
const sortDir = column.currentSort;
|
|
@@ -9080,8 +9375,8 @@ const DataTableHeader = ({
|
|
|
9080
9375
|
const hasDescription = !!column.description;
|
|
9081
9376
|
return React__default.createElement("th", {
|
|
9082
9377
|
className: classnames({
|
|
9083
|
-
[styles$
|
|
9084
|
-
[styles$
|
|
9378
|
+
[styles$U['data-table-header__item']]: true,
|
|
9379
|
+
[styles$U['data-table-header__item--sortable']]: isSortable
|
|
9085
9380
|
}),
|
|
9086
9381
|
style: {
|
|
9087
9382
|
flex: column.size || 1,
|
|
@@ -9093,18 +9388,18 @@ const DataTableHeader = ({
|
|
|
9093
9388
|
role: "columnheader",
|
|
9094
9389
|
tabIndex: 0
|
|
9095
9390
|
}, React__default.createElement("div", {
|
|
9096
|
-
className: classnames(styles$
|
|
9097
|
-
[styles$
|
|
9391
|
+
className: classnames(styles$U['data-table-header__item-content'], {
|
|
9392
|
+
[styles$U['data-table-header__item-content--right-align']]: isRightAligned
|
|
9098
9393
|
}, {
|
|
9099
|
-
[styles$
|
|
9394
|
+
[styles$U['data-table-header__item-content--has-description']]: hasDescription
|
|
9100
9395
|
})
|
|
9101
9396
|
}, wrapWithTooltip(column), isSortable && React__default.createElement("span", {
|
|
9102
|
-
className: styles$
|
|
9397
|
+
className: styles$U['data-table-header__sort-icon']
|
|
9103
9398
|
}, React__default.createElement(HeaderSortIcon, {
|
|
9104
9399
|
sortDirection: sortDir
|
|
9105
9400
|
}))));
|
|
9106
9401
|
}), showActionMenu && React__default.createElement("th", {
|
|
9107
|
-
className: classnames(styles$
|
|
9402
|
+
className: classnames(styles$U['data-table-header__item'], styles$U['data-table-header__item--action'])
|
|
9108
9403
|
}))));
|
|
9109
9404
|
};
|
|
9110
9405
|
const wrapWithTooltip = column => {
|
|
@@ -9118,9 +9413,9 @@ const wrapWithTooltip = column => {
|
|
|
9118
9413
|
return column.label;
|
|
9119
9414
|
};
|
|
9120
9415
|
|
|
9121
|
-
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"};
|
|
9122
9417
|
|
|
9123
|
-
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"};
|
|
9124
9419
|
|
|
9125
9420
|
const useTableHeaderHeight = isShowingColumns => {
|
|
9126
9421
|
const {
|
|
@@ -9172,10 +9467,10 @@ const DataTableScrollFakeBorder = ({
|
|
|
9172
9467
|
const hasFixedScroll = useDetectFixedScroll();
|
|
9173
9468
|
const backgroundColor = useBackgroundColor();
|
|
9174
9469
|
return React__default.createElement("div", {
|
|
9175
|
-
className: classnames(styles$
|
|
9176
|
-
[styles$
|
|
9177
|
-
[styles$
|
|
9178
|
-
[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
|
|
9179
9474
|
}),
|
|
9180
9475
|
style: {
|
|
9181
9476
|
// @ts-expect-error This difines a custom CSS variable
|
|
@@ -9183,14 +9478,14 @@ const DataTableScrollFakeBorder = ({
|
|
|
9183
9478
|
top: placement === 'top' ? headerHeight : undefined
|
|
9184
9479
|
}
|
|
9185
9480
|
}, React__default.createElement("div", {
|
|
9186
|
-
className: classnames(styles$
|
|
9187
|
-
[styles$
|
|
9188
|
-
[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'
|
|
9189
9484
|
})
|
|
9190
9485
|
}), React__default.createElement("div", {
|
|
9191
|
-
className: classnames(styles$
|
|
9192
|
-
[styles$
|
|
9193
|
-
[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'
|
|
9194
9489
|
}),
|
|
9195
9490
|
"data-background-color": "red"
|
|
9196
9491
|
}));
|
|
@@ -9208,7 +9503,7 @@ const BUTTON_THEME = {
|
|
|
9208
9503
|
UPSELL: 'upsell'
|
|
9209
9504
|
};
|
|
9210
9505
|
|
|
9211
|
-
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"};
|
|
9212
9507
|
|
|
9213
9508
|
/** Infers theme prop for Sous Chef Button CTAs if not explicitly passed, default is hollow, primaryCTA is Upsell if banner theme is Upsell*/
|
|
9214
9509
|
const ButtonCTA$1 = ({
|
|
@@ -9229,7 +9524,7 @@ const ButtonCTA$1 = ({
|
|
|
9229
9524
|
}, button.props));
|
|
9230
9525
|
};
|
|
9231
9526
|
|
|
9232
|
-
var styles$
|
|
9527
|
+
var styles$Q = {"banner__caption":"_S--Ce"};
|
|
9233
9528
|
|
|
9234
9529
|
const InlineBannerCTA = ({
|
|
9235
9530
|
primaryButton,
|
|
@@ -9261,7 +9556,7 @@ const InlineBannerCTA = ({
|
|
|
9261
9556
|
bannerTheme: bannerTheme,
|
|
9262
9557
|
primaryCTA: true
|
|
9263
9558
|
})), caption && multiLine && React__default.createElement("div", {
|
|
9264
|
-
className: styles$
|
|
9559
|
+
className: styles$Q['banner__caption']
|
|
9265
9560
|
}, caption));
|
|
9266
9561
|
};
|
|
9267
9562
|
|
|
@@ -9302,21 +9597,21 @@ const InlineBanner = _ref => {
|
|
|
9302
9597
|
const Layout = multiLine ? Stack : Inline;
|
|
9303
9598
|
return React__default.createElement("div", {
|
|
9304
9599
|
"data-testid": testId,
|
|
9305
|
-
className: classnames(styles$
|
|
9306
|
-
[styles$
|
|
9307
|
-
[styles$
|
|
9308
|
-
[styles$
|
|
9309
|
-
[styles$
|
|
9310
|
-
[styles$
|
|
9311
|
-
[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
|
|
9312
9607
|
}),
|
|
9313
9608
|
style: positionStyles
|
|
9314
9609
|
}, React__default.createElement(Inline, {
|
|
9315
9610
|
flex: ['0 1 auto', 1],
|
|
9316
9611
|
space: 12
|
|
9317
9612
|
}, React__default.createElement("div", {
|
|
9318
|
-
className: classnames(styles$
|
|
9319
|
-
[styles$
|
|
9613
|
+
className: classnames(styles$R['banner__icon'], {
|
|
9614
|
+
[styles$R['banner__icon--multiline']]: multiLine
|
|
9320
9615
|
})
|
|
9321
9616
|
}, icon != null ? icon : React__default.createElement(InlineBannerIcon, {
|
|
9322
9617
|
theme: theme
|
|
@@ -9327,10 +9622,10 @@ const InlineBanner = _ref => {
|
|
|
9327
9622
|
flex: ['min-content'],
|
|
9328
9623
|
flexWrap: multiLine ? undefined : 'wrap'
|
|
9329
9624
|
}, title && React__default.createElement("div", {
|
|
9330
|
-
className: styles$
|
|
9625
|
+
className: styles$R['banner__title']
|
|
9331
9626
|
}, title), React__default.createElement("div", {
|
|
9332
|
-
className: classnames(styles$
|
|
9333
|
-
[styles$
|
|
9627
|
+
className: classnames(styles$R['banner__body'], {
|
|
9628
|
+
[styles$R['banner__body--multilineCTA']]: primaryButton && multiLine
|
|
9334
9629
|
})
|
|
9335
9630
|
}, children), primaryButton && React__default.createElement(InlineBannerCTA, {
|
|
9336
9631
|
primaryButton: primaryButton,
|
|
@@ -9339,7 +9634,7 @@ const InlineBanner = _ref => {
|
|
|
9339
9634
|
multiLine: multiLine,
|
|
9340
9635
|
bannerTheme: theme
|
|
9341
9636
|
})), dismissable && React__default.createElement("div", {
|
|
9342
|
-
className: styles$
|
|
9637
|
+
className: styles$R['banner__close']
|
|
9343
9638
|
}, React__default.createElement(Button, {
|
|
9344
9639
|
theme: "link-icon",
|
|
9345
9640
|
type: "button",
|
|
@@ -9355,7 +9650,7 @@ const MICRO_BANNER_THEME = {
|
|
|
9355
9650
|
UPSELL: 'upsell'
|
|
9356
9651
|
};
|
|
9357
9652
|
|
|
9358
|
-
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"};
|
|
9359
9654
|
|
|
9360
9655
|
const MicroBannerIcon = ({
|
|
9361
9656
|
theme
|
|
@@ -9405,14 +9700,14 @@ const MicroBanner = _ref => {
|
|
|
9405
9700
|
} = _ref,
|
|
9406
9701
|
positionProps = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
9407
9702
|
const positionStyles = usePositionStyles(positionProps);
|
|
9408
|
-
const themeClass = styles$
|
|
9409
|
-
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']);
|
|
9410
9705
|
return React__default.createElement("div", {
|
|
9411
9706
|
"data-testid": testId,
|
|
9412
|
-
className: classnames(styles$
|
|
9707
|
+
className: classnames(styles$P['micro-banner'], themeClass),
|
|
9413
9708
|
style: positionStyles
|
|
9414
9709
|
}, !hideIcon && React__default.createElement("div", {
|
|
9415
|
-
className: styles$
|
|
9710
|
+
className: styles$P['micro-banner__icon'],
|
|
9416
9711
|
"data-testid": `${testId || 'micro-banner'}-icon`
|
|
9417
9712
|
}, icon != null ? icon : React__default.createElement(MicroBannerIcon, {
|
|
9418
9713
|
theme: theme
|
|
@@ -9423,7 +9718,7 @@ const MicroBanner = _ref => {
|
|
|
9423
9718
|
}, title), React__default.createElement(Text, {
|
|
9424
9719
|
as: 'caption'
|
|
9425
9720
|
}, children)), primaryButton && React__default.createElement("div", {
|
|
9426
|
-
className: styles$
|
|
9721
|
+
className: styles$P['micro-banner__button']
|
|
9427
9722
|
}, React__default.createElement(ButtonCTA, {
|
|
9428
9723
|
button: primaryButton,
|
|
9429
9724
|
bannerTheme: theme
|
|
@@ -9437,7 +9732,7 @@ const PERSISTENT_BANNER_THEME = {
|
|
|
9437
9732
|
WARNING: 'warning'
|
|
9438
9733
|
};
|
|
9439
9734
|
|
|
9440
|
-
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"};
|
|
9441
9736
|
|
|
9442
9737
|
const PersistentBanner = ({
|
|
9443
9738
|
theme: _theme = PERSISTENT_BANNER_THEME.INFO,
|
|
@@ -9466,11 +9761,11 @@ const PersistentBanner = ({
|
|
|
9466
9761
|
theme: _theme === PERSISTENT_BANNER_THEME.WARNING ? BUTTON_THEMES.LINK_PRIMARY : BUTTON_THEMES.LINK_CONTRAST
|
|
9467
9762
|
}, secondaryButton.props))));
|
|
9468
9763
|
return React__default.createElement("div", {
|
|
9469
|
-
className: classnames(styles$
|
|
9470
|
-
[styles$
|
|
9471
|
-
[styles$
|
|
9472
|
-
[styles$
|
|
9473
|
-
[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
|
|
9474
9769
|
}),
|
|
9475
9770
|
"data-testid": testId
|
|
9476
9771
|
}, onDismiss ? React__default.createElement(Inline, {
|
|
@@ -9535,7 +9830,7 @@ const useProgress = (progress, maxValue, getMetric = getProgressMetric) => {
|
|
|
9535
9830
|
};
|
|
9536
9831
|
};
|
|
9537
9832
|
|
|
9538
|
-
var styles$
|
|
9833
|
+
var styles$N = {"circular-progress":"_UI0Fo","circular-progress__label":"_6PNwZ","circular-progress__track":"_alBLB","circular-progress__indicator":"_VADa6"};
|
|
9539
9834
|
|
|
9540
9835
|
const CircularProgress = ({
|
|
9541
9836
|
progress,
|
|
@@ -9549,7 +9844,7 @@ const CircularProgress = ({
|
|
|
9549
9844
|
} = useProgress(progress, _maxValue);
|
|
9550
9845
|
const determinant = metric.percentage * 2.79;
|
|
9551
9846
|
return React__default.createElement("div", _extends({}, elementProps, {
|
|
9552
|
-
className: styles$
|
|
9847
|
+
className: styles$N['circular-progress'],
|
|
9553
9848
|
"data-testid": testId
|
|
9554
9849
|
}), React__default.createElement("svg", {
|
|
9555
9850
|
viewBox: "0 0 100 100"
|
|
@@ -9558,21 +9853,21 @@ const CircularProgress = ({
|
|
|
9558
9853
|
cy: 50,
|
|
9559
9854
|
r: 45,
|
|
9560
9855
|
strokeWidth: "10px",
|
|
9561
|
-
className: styles$
|
|
9856
|
+
className: styles$N['circular-progress__track']
|
|
9562
9857
|
}), React__default.createElement("circle", {
|
|
9563
9858
|
cx: 50,
|
|
9564
9859
|
cy: 50,
|
|
9565
9860
|
r: 45,
|
|
9566
9861
|
strokeWidth: "10px",
|
|
9567
|
-
className: styles$
|
|
9862
|
+
className: styles$N['circular-progress__indicator'],
|
|
9568
9863
|
strokeDashoffset: "66",
|
|
9569
9864
|
strokeDasharray: `${determinant} ${279 - determinant}`
|
|
9570
9865
|
})), React__default.createElement("div", {
|
|
9571
|
-
className: styles$
|
|
9866
|
+
className: styles$N['circular-progress__label']
|
|
9572
9867
|
}, children || `${metric.progress}/${metric.maxValue}`));
|
|
9573
9868
|
};
|
|
9574
9869
|
|
|
9575
|
-
var styles$
|
|
9870
|
+
var styles$M = {"progress-bar":"_fWvQF","progress-bar__indicator":"_vd0xc","progress-bar__steps":"_8kdeO"};
|
|
9576
9871
|
|
|
9577
9872
|
const ProgressBar = ({
|
|
9578
9873
|
progress,
|
|
@@ -9587,21 +9882,21 @@ const ProgressBar = ({
|
|
|
9587
9882
|
metric
|
|
9588
9883
|
} = useProgress(progress, inferedMaxValue || 100, isUsingStepsAsMaxValue ? getProgressMetricWithSteps : getProgressMetric);
|
|
9589
9884
|
return React__default.createElement(Stack, null, React__default.createElement("div", _extends({}, elementProps, {
|
|
9590
|
-
className: styles$
|
|
9885
|
+
className: styles$M['progress-bar'],
|
|
9591
9886
|
"data-testid": testId
|
|
9592
9887
|
}), React__default.createElement("div", {
|
|
9593
|
-
className: styles$
|
|
9888
|
+
className: styles$M['progress-bar__indicator'],
|
|
9594
9889
|
style: {
|
|
9595
9890
|
width: `${metric.percentage}%`
|
|
9596
9891
|
}
|
|
9597
9892
|
})), steps && steps.length > 0 && React__default.createElement("div", {
|
|
9598
|
-
className: styles$
|
|
9893
|
+
className: styles$M['progress-bar__steps']
|
|
9599
9894
|
}, steps.map(step => React__default.createElement(Text, {
|
|
9600
9895
|
key: step
|
|
9601
9896
|
}, step))));
|
|
9602
9897
|
};
|
|
9603
9898
|
|
|
9604
|
-
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"};
|
|
9605
9900
|
|
|
9606
9901
|
const SKELETON_COMPONENT = {
|
|
9607
9902
|
AVATAR: 'avatar',
|
|
@@ -9625,14 +9920,14 @@ const Skeleton = _ref => {
|
|
|
9625
9920
|
const positioning = usePositionStyles(positionStyles);
|
|
9626
9921
|
return React__default.createElement("div", {
|
|
9627
9922
|
"data-testid": testId,
|
|
9628
|
-
className: classnames(styles$
|
|
9629
|
-
[styles$
|
|
9630
|
-
[styles$
|
|
9631
|
-
[styles$
|
|
9632
|
-
[styles$
|
|
9633
|
-
[styles$
|
|
9634
|
-
[styles$
|
|
9635
|
-
[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
|
|
9636
9931
|
}),
|
|
9637
9932
|
style: _extends({}, positioning, {
|
|
9638
9933
|
width: width,
|
|
@@ -9641,11 +9936,11 @@ const Skeleton = _ref => {
|
|
|
9641
9936
|
});
|
|
9642
9937
|
};
|
|
9643
9938
|
|
|
9644
|
-
var styles$
|
|
9939
|
+
var styles$K = {"data-table-row":"_hhDnr","data-table-row--clickable":"_ej5Ke","data-table-row--selected":"_qDTAh"};
|
|
9645
9940
|
|
|
9646
|
-
var styles$
|
|
9941
|
+
var styles$J = {"actions":"_ffXgN"};
|
|
9647
9942
|
|
|
9648
|
-
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-"};
|
|
9649
9944
|
|
|
9650
9945
|
const DataTableCellElement = ({
|
|
9651
9946
|
children,
|
|
@@ -9669,9 +9964,9 @@ const DataTableCellElement = ({
|
|
|
9669
9964
|
const hasError = !!error;
|
|
9670
9965
|
const errorMessage = error;
|
|
9671
9966
|
const icon = hasError && React__default.createElement("div", {
|
|
9672
|
-
className: classnames(styles$
|
|
9673
|
-
[styles$
|
|
9674
|
-
[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
|
|
9675
9970
|
})
|
|
9676
9971
|
}, React__default.createElement(IconTimesOctagon, {
|
|
9677
9972
|
size: "medium",
|
|
@@ -9679,17 +9974,17 @@ const DataTableCellElement = ({
|
|
|
9679
9974
|
}));
|
|
9680
9975
|
const TableCell = React__default.createElement("td", {
|
|
9681
9976
|
className: classnames({
|
|
9682
|
-
[styles$
|
|
9683
|
-
[styles$
|
|
9684
|
-
[styles$
|
|
9685
|
-
}, 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']),
|
|
9686
9981
|
colSpan: colSpan,
|
|
9687
9982
|
ref: ref
|
|
9688
9983
|
}, React__default.createElement("div", {
|
|
9689
|
-
className: classnames(styles$
|
|
9690
|
-
[styles$
|
|
9691
|
-
[styles$
|
|
9692
|
-
[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
|
|
9693
9988
|
})
|
|
9694
9989
|
}, isRightAligned && icon, children, !isRightAligned && icon));
|
|
9695
9990
|
return React__default.createElement(Tooltip, {
|
|
@@ -9713,7 +10008,7 @@ const DataTableRowActions = ({
|
|
|
9713
10008
|
return React__default.createElement(DataTableCell, {
|
|
9714
10009
|
columnIndex: columnIndex
|
|
9715
10010
|
}, React__default.createElement("div", {
|
|
9716
|
-
className: styles$
|
|
10011
|
+
className: styles$J['actions'],
|
|
9717
10012
|
"data-testid": "data-table-dropdown-menu"
|
|
9718
10013
|
}, state === 'SKELETON_LOADING' && React__default.createElement(Skeleton, {
|
|
9719
10014
|
width: 45
|
|
@@ -9726,7 +10021,7 @@ const DataTableRowActions = ({
|
|
|
9726
10021
|
})));
|
|
9727
10022
|
};
|
|
9728
10023
|
|
|
9729
|
-
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"};
|
|
9730
10025
|
|
|
9731
10026
|
const DataTableEditableCellElement = ({
|
|
9732
10027
|
name,
|
|
@@ -9775,8 +10070,8 @@ const DataTableEditableCellElement = ({
|
|
|
9775
10070
|
};
|
|
9776
10071
|
const EditableCell = React__default.createElement("div", {
|
|
9777
10072
|
className: classnames({
|
|
9778
|
-
[styles$
|
|
9779
|
-
}, styles$
|
|
10073
|
+
[styles$H['data-table-editable-cell--currency']]: _type === 'currency'
|
|
10074
|
+
}, styles$H['data-table-editable-cell']),
|
|
9780
10075
|
"data-testid": testId,
|
|
9781
10076
|
role: "cell"
|
|
9782
10077
|
}, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
@@ -9786,12 +10081,12 @@ const DataTableEditableCellElement = ({
|
|
|
9786
10081
|
name: name,
|
|
9787
10082
|
id: controllers.id,
|
|
9788
10083
|
className: classnames({
|
|
9789
|
-
[styles$
|
|
9790
|
-
[styles$
|
|
9791
|
-
[styles$
|
|
9792
|
-
[styles$
|
|
9793
|
-
[styles$
|
|
9794
|
-
[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
|
|
9795
10090
|
}),
|
|
9796
10091
|
type: _type === 'currency' ? 'number' : 'text',
|
|
9797
10092
|
step: _type === 'currency' ? 'any' : '',
|
|
@@ -9836,9 +10131,9 @@ const DataTableRowComponent = (_ref, ref) => {
|
|
|
9836
10131
|
const {
|
|
9837
10132
|
showActionMenu
|
|
9838
10133
|
} = useDataTableContext();
|
|
9839
|
-
const styleNames = classnames(styles$
|
|
9840
|
-
[styles$
|
|
9841
|
-
[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
|
|
9842
10137
|
});
|
|
9843
10138
|
const renderColumn = (columnElement, index) => {
|
|
9844
10139
|
const isUsingDataTableCell = columnElement && typeof columnElement === 'object' && 'type' in columnElement && (columnElement == null ? void 0 : columnElement.type) === DataTableCell;
|
|
@@ -9929,7 +10224,7 @@ const calculateScrollState = scrollContainer => {
|
|
|
9929
10224
|
return DATA_TABLE_SCROLL_STATES.NO_SCROLL;
|
|
9930
10225
|
};
|
|
9931
10226
|
|
|
9932
|
-
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"};
|
|
9933
10228
|
|
|
9934
10229
|
const useDataTableScrollState = stickyColumns => {
|
|
9935
10230
|
const scrollContainerRef = useRef(null);
|
|
@@ -9971,7 +10266,7 @@ const useDataTableScrollState = stickyColumns => {
|
|
|
9971
10266
|
};
|
|
9972
10267
|
};
|
|
9973
10268
|
|
|
9974
|
-
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"};
|
|
9975
10270
|
|
|
9976
10271
|
const DataTableCoverShadow = ({
|
|
9977
10272
|
isShowingColumns,
|
|
@@ -9989,11 +10284,11 @@ const DataTableCoverShadow = ({
|
|
|
9989
10284
|
return `calc(100% - ${headerHeight})`;
|
|
9990
10285
|
};
|
|
9991
10286
|
return React__default.createElement("div", {
|
|
9992
|
-
className: classnames(styles$
|
|
9993
|
-
[styles$
|
|
9994
|
-
[styles$
|
|
9995
|
-
[styles$
|
|
9996
|
-
[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
|
|
9997
10292
|
}),
|
|
9998
10293
|
style: {
|
|
9999
10294
|
// @ts-expect-error This difines a custom CSS variable
|
|
@@ -10055,13 +10350,13 @@ const DataTableStickyColumnsContainer = ({
|
|
|
10055
10350
|
isShowingColumns: !!isShowingColumns,
|
|
10056
10351
|
showShadow: state === 'EMPTY' ? false : stickyColumns === 'left'
|
|
10057
10352
|
})), React__default.createElement("div", {
|
|
10058
|
-
className: classnames(styles$
|
|
10059
|
-
[styles$
|
|
10060
|
-
[styles$
|
|
10061
|
-
[styles$
|
|
10062
|
-
[styles$
|
|
10063
|
-
[styles$
|
|
10064
|
-
[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
|
|
10065
10360
|
}),
|
|
10066
10361
|
onScroll: onScroll,
|
|
10067
10362
|
ref: scrollContainerRef,
|
|
@@ -10069,11 +10364,11 @@ const DataTableStickyColumnsContainer = ({
|
|
|
10069
10364
|
}, children));
|
|
10070
10365
|
};
|
|
10071
10366
|
|
|
10072
|
-
var styles$
|
|
10367
|
+
var styles$E = {"data-table-empty-state":"_fCHjG"};
|
|
10073
10368
|
|
|
10074
|
-
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"};
|
|
10075
10370
|
|
|
10076
|
-
var styles$
|
|
10371
|
+
var styles$C = {"empty-state-container-cta":"_X-dEs","empty-state-container-cta--inside-modal":"_63-SX"};
|
|
10077
10372
|
|
|
10078
10373
|
const EmptyStateContainerCTA = ({
|
|
10079
10374
|
isPaywall,
|
|
@@ -10090,8 +10385,8 @@ const EmptyStateContainerCTA = ({
|
|
|
10090
10385
|
size: BUTTON_SIZES.MIN_WIDTH_100
|
|
10091
10386
|
});
|
|
10092
10387
|
return React__default.createElement("div", {
|
|
10093
|
-
className: classnames(styles$
|
|
10094
|
-
[styles$
|
|
10388
|
+
className: classnames(styles$C['empty-state-container-cta'], {
|
|
10389
|
+
[styles$C['empty-state-container-cta--inside-modal']]: _isInsideModal
|
|
10095
10390
|
})
|
|
10096
10391
|
}, primaryButton, secondaryButton);
|
|
10097
10392
|
};
|
|
@@ -10115,7 +10410,7 @@ const EmptyStateContainerStack = ({
|
|
|
10115
10410
|
mediaComponent
|
|
10116
10411
|
}) => {
|
|
10117
10412
|
return React__default.createElement("div", {
|
|
10118
|
-
className: styles$
|
|
10413
|
+
className: styles$D['empty-state-container-stack'],
|
|
10119
10414
|
"data-testid": testId
|
|
10120
10415
|
}, mediaComponent ? mediaComponent : mediaUrl && React__default.createElement("img", {
|
|
10121
10416
|
src: mediaUrl,
|
|
@@ -10132,7 +10427,7 @@ const EmptyStateContainerStack = ({
|
|
|
10132
10427
|
as: "body",
|
|
10133
10428
|
alignment: "center"
|
|
10134
10429
|
}, title), React__default.createElement("div", {
|
|
10135
|
-
className: styles$
|
|
10430
|
+
className: styles$D['empty-state-container-stack__body']
|
|
10136
10431
|
}, children)), React__default.createElement(Stack, {
|
|
10137
10432
|
space: 8,
|
|
10138
10433
|
alignItems: "center"
|
|
@@ -10244,7 +10539,7 @@ const DataTableEmptyState = ({
|
|
|
10244
10539
|
columnIndex: shouldRenderStickyLeftCell ? 1 : 0,
|
|
10245
10540
|
colSpan: colSpan
|
|
10246
10541
|
}, React__default.createElement("div", {
|
|
10247
|
-
className: styles$
|
|
10542
|
+
className: styles$E['data-table-empty-state']
|
|
10248
10543
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
10249
10544
|
mediaUrl: customImage,
|
|
10250
10545
|
mediaComponent: customImage === '' ? React__default.createElement(MagnifyingGlassIllustration, null) : undefined,
|
|
@@ -10328,7 +10623,7 @@ const DataTable = _ref => {
|
|
|
10328
10623
|
return null;
|
|
10329
10624
|
}
|
|
10330
10625
|
return React__default.createElement("div", {
|
|
10331
|
-
className: styles$
|
|
10626
|
+
className: styles$T['data-table__pagination-controls'],
|
|
10332
10627
|
"data-testid": testId && `${testId}-pagination-controls`
|
|
10333
10628
|
}, React__default.createElement(PaginationControls, {
|
|
10334
10629
|
hasPrevious: isLoading ? false : hasPrevious,
|
|
@@ -10351,7 +10646,7 @@ const DataTable = _ref => {
|
|
|
10351
10646
|
tableId
|
|
10352
10647
|
}
|
|
10353
10648
|
}, React__default.createElement("div", {
|
|
10354
|
-
className: classnames(styles$
|
|
10649
|
+
className: classnames(styles$T['data-table']),
|
|
10355
10650
|
ref: tableRef,
|
|
10356
10651
|
style: positionStyles
|
|
10357
10652
|
}, React__default.createElement(DataTableStickyColumnsContainer, {
|
|
@@ -10362,24 +10657,24 @@ const DataTable = _ref => {
|
|
|
10362
10657
|
placement: "top",
|
|
10363
10658
|
isShowingColumns: !!isShowingColumns
|
|
10364
10659
|
}), React__default.createElement("div", {
|
|
10365
|
-
className: classnames(styles$
|
|
10366
|
-
[styles$
|
|
10660
|
+
className: classnames(styles$T['data-table__content'], {
|
|
10661
|
+
[styles$T['data-table__content--with-scroll']]: isScrollableTable
|
|
10367
10662
|
}),
|
|
10368
10663
|
style: conditionalStyles,
|
|
10369
10664
|
id: `${tableId}-content`
|
|
10370
10665
|
}, state === DATA_TABLE_STATES.BACKGROUND_LOADING && React__default.createElement("div", {
|
|
10371
|
-
className: styles$
|
|
10666
|
+
className: styles$T['data-table__background-loading']
|
|
10372
10667
|
}, React__default.createElement(Spinner, null)), React__default.createElement("table", _extends({
|
|
10373
|
-
className: classnames(styles$
|
|
10374
|
-
[styles$
|
|
10668
|
+
className: classnames(styles$T['data-table__table'], {
|
|
10669
|
+
[styles$T['data-table__table--no-columns']]: !isShowingColumns
|
|
10375
10670
|
})
|
|
10376
10671
|
}, dataProps), columns && isShowingColumns && React__default.createElement(DataTableHeader, {
|
|
10377
10672
|
columns: columns,
|
|
10378
10673
|
onSort: onSort,
|
|
10379
10674
|
showActionMenu: isShowingContent && showActionMenu
|
|
10380
10675
|
}), React__default.createElement("tbody", {
|
|
10381
|
-
className: classnames(styles$
|
|
10382
|
-
[styles$
|
|
10676
|
+
className: classnames(styles$T['data-table__body'], {
|
|
10677
|
+
[styles$T['data-table__body--no-bottom-radius']]: isShowingFooter && isShowingContent
|
|
10383
10678
|
}),
|
|
10384
10679
|
"data-testid": testId
|
|
10385
10680
|
}, isShowingContent && content.map((item, index) => {
|
|
@@ -10398,7 +10693,7 @@ const DataTable = _ref => {
|
|
|
10398
10693
|
}), state === DATA_TABLE_STATES.SKELETON_LOADING && React__default.createElement(React__default.Fragment, null, skeletonRows.map((_, index) => React__default.createElement(SkeletonRow, {
|
|
10399
10694
|
key: index
|
|
10400
10695
|
})))), isShowingFooter && isShowingContent && React__default.createElement("tfoot", {
|
|
10401
|
-
className: styles$
|
|
10696
|
+
className: styles$T['data-table__footer'],
|
|
10402
10697
|
"data-testid": testId && `${testId}-footer`
|
|
10403
10698
|
}, footerComponent)))), !isShowingFooter && isScrollableTable && React__default.createElement(DataTableScrollFakeBorder, {
|
|
10404
10699
|
placement: "bottom",
|
|
@@ -10406,7 +10701,7 @@ const DataTable = _ref => {
|
|
|
10406
10701
|
})), React__default.createElement(Pagination, null));
|
|
10407
10702
|
};
|
|
10408
10703
|
|
|
10409
|
-
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"};
|
|
10410
10705
|
|
|
10411
10706
|
const AccordionItem = props => {
|
|
10412
10707
|
const {
|
|
@@ -10421,9 +10716,9 @@ const AccordionItem = props => {
|
|
|
10421
10716
|
} = item;
|
|
10422
10717
|
const isFocusedByClickRef = React__default.useRef(false);
|
|
10423
10718
|
return React__default.createElement("div", {
|
|
10424
|
-
className: styles$
|
|
10719
|
+
className: styles$B['accordion-item']
|
|
10425
10720
|
}, React__default.createElement("button", {
|
|
10426
|
-
className: styles$
|
|
10721
|
+
className: styles$B['accordion-item__header'],
|
|
10427
10722
|
onClick: () => {
|
|
10428
10723
|
if (isOpen) {
|
|
10429
10724
|
handleAccordionItemOpen(null);
|
|
@@ -10450,15 +10745,15 @@ const AccordionItem = props => {
|
|
|
10450
10745
|
}, typeof title === 'string' ? React__default.createElement(Text, {
|
|
10451
10746
|
emphasis: "bold"
|
|
10452
10747
|
}, title) : title, React__default.createElement(IconChevronDown, {
|
|
10453
|
-
className: styles$
|
|
10748
|
+
className: styles$B[`accordion-item__icon${isOpen ? '--active' : ''}`],
|
|
10454
10749
|
color: 'surface-on-color-subtle'
|
|
10455
10750
|
}))), React__default.createElement("div", {
|
|
10456
10751
|
"data-testid": `${isOpen ? 'accordion-item-' + id + '-open' : 'accordion-item-' + id + '-closed'}`,
|
|
10457
|
-
className: styles$
|
|
10752
|
+
className: styles$B[`accordion-item__content${isOpen ? '--active' : ''}`]
|
|
10458
10753
|
}, isOpen && React__default.createElement(Text, null, content)));
|
|
10459
10754
|
};
|
|
10460
10755
|
|
|
10461
|
-
var styles$
|
|
10756
|
+
var styles$A = {"accordion":"_058SP"};
|
|
10462
10757
|
|
|
10463
10758
|
const _excluded$e = ["items", "onExpand", "defaultOpenId"];
|
|
10464
10759
|
const Accordion = _ref => {
|
|
@@ -10486,7 +10781,7 @@ const Accordion = _ref => {
|
|
|
10486
10781
|
isAccordionMounted: true
|
|
10487
10782
|
}
|
|
10488
10783
|
}, React__default.createElement("div", _extends({
|
|
10489
|
-
className: styles$
|
|
10784
|
+
className: styles$A['accordion']
|
|
10490
10785
|
}, dataProps), items.map((item, index) => {
|
|
10491
10786
|
const id = item.id || index.toString();
|
|
10492
10787
|
return React__default.createElement(AccordionItem, {
|
|
@@ -10500,7 +10795,7 @@ const Accordion = _ref => {
|
|
|
10500
10795
|
})));
|
|
10501
10796
|
};
|
|
10502
10797
|
|
|
10503
|
-
var styles$
|
|
10798
|
+
var styles$z = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
|
|
10504
10799
|
|
|
10505
10800
|
const ActionList = ({
|
|
10506
10801
|
children,
|
|
@@ -10512,15 +10807,15 @@ const ActionList = ({
|
|
|
10512
10807
|
const translate = useTranslation('ActionList');
|
|
10513
10808
|
const hasChildren = React__default.Children.count(children) > 0;
|
|
10514
10809
|
return React__default.createElement("div", {
|
|
10515
|
-
className: styles$
|
|
10810
|
+
className: styles$z['action-list'],
|
|
10516
10811
|
"data-testid": testId,
|
|
10517
10812
|
style: {
|
|
10518
10813
|
maxHeight: maxHeight
|
|
10519
10814
|
}
|
|
10520
10815
|
}, title && React__default.createElement("div", {
|
|
10521
|
-
className: styles$
|
|
10816
|
+
className: styles$z['action-list__title']
|
|
10522
10817
|
}, title), hasChildren ? children : React__default.createElement("div", {
|
|
10523
|
-
className: styles$
|
|
10818
|
+
className: styles$z['action-list__empty-state']
|
|
10524
10819
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
10525
10820
|
title: (emptyState == null ? void 0 : emptyState.title) || translate('emptyStateTitle'),
|
|
10526
10821
|
mediaUrl: emptyState == null ? void 0 : emptyState.image,
|
|
@@ -10698,7 +10993,7 @@ const useSelectFieldControllers = ({
|
|
|
10698
10993
|
return controllers;
|
|
10699
10994
|
};
|
|
10700
10995
|
|
|
10701
|
-
var styles$
|
|
10996
|
+
var styles$y = {"custom-control":"_pXQqq"};
|
|
10702
10997
|
|
|
10703
10998
|
const _excluded$d = ["children"];
|
|
10704
10999
|
function CustomControl(_ref) {
|
|
@@ -10712,7 +11007,7 @@ function CustomControl(_ref) {
|
|
|
10712
11007
|
} = props.selectProps.componentsProps;
|
|
10713
11008
|
const selectedOption = (_props$getValue = props.getValue()) == null ? void 0 : _props$getValue[0];
|
|
10714
11009
|
return React__default.createElement(components.Control, _extends({}, props), SelectedOptionPrefix && selectedOption ? React__default.createElement("div", {
|
|
10715
|
-
className: styles$
|
|
11010
|
+
className: styles$y['custom-control'],
|
|
10716
11011
|
style: {
|
|
10717
11012
|
paddingLeft: selectedOption ? 8 : 0
|
|
10718
11013
|
}
|
|
@@ -10779,6 +11074,11 @@ const getSelectStyles = ({
|
|
|
10779
11074
|
} : 'none'
|
|
10780
11075
|
});
|
|
10781
11076
|
},
|
|
11077
|
+
input: base => {
|
|
11078
|
+
return Object.assign({}, base, {
|
|
11079
|
+
color: COLORS['surface-on-color']
|
|
11080
|
+
});
|
|
11081
|
+
},
|
|
10782
11082
|
indicatorSeparator: () => ({
|
|
10783
11083
|
display: 'none'
|
|
10784
11084
|
}),
|
|
@@ -10886,9 +11186,9 @@ const CustomContainer = props => {
|
|
|
10886
11186
|
}));
|
|
10887
11187
|
};
|
|
10888
11188
|
|
|
10889
|
-
var styles$
|
|
11189
|
+
var styles$x = {"custom-menu-text-field":"_AAUjm","custom-menu-hr":"_mFLK9","custom-menu-div":"_1XpI4"};
|
|
10890
11190
|
|
|
10891
|
-
var styles$
|
|
11191
|
+
var styles$w = {"creatable-button--align-left":"_Qw267","creatable-button":"_f9V5D"};
|
|
10892
11192
|
|
|
10893
11193
|
/**
|
|
10894
11194
|
* Shared creatable button component used in CustomMenu and CustomGroupWithCreate.
|
|
@@ -10912,8 +11212,8 @@ const CreatableButton = ({
|
|
|
10912
11212
|
};
|
|
10913
11213
|
if (!button || typeof button === 'string') {
|
|
10914
11214
|
return React__default.createElement("div", {
|
|
10915
|
-
className: classnames(styles$
|
|
10916
|
-
[styles$
|
|
11215
|
+
className: classnames(styles$w['creatable-button'], {
|
|
11216
|
+
[styles$w['creatable-button--align-left']]: _alignLeft
|
|
10917
11217
|
})
|
|
10918
11218
|
}, React__default.createElement(Button, {
|
|
10919
11219
|
theme: "link-primary",
|
|
@@ -10938,8 +11238,8 @@ const CreatableButton = ({
|
|
|
10938
11238
|
overrideProps.theme = 'link-primary';
|
|
10939
11239
|
}
|
|
10940
11240
|
return React__default.createElement("div", {
|
|
10941
|
-
className: classnames(styles$
|
|
10942
|
-
[styles$
|
|
11241
|
+
className: classnames(styles$w['creatable-button'], {
|
|
11242
|
+
[styles$w['creatable-button--align-left']]: _alignLeft
|
|
10943
11243
|
})
|
|
10944
11244
|
}, React__default.cloneElement(button, overrideProps));
|
|
10945
11245
|
};
|
|
@@ -10965,7 +11265,7 @@ const CreateInputForm = ({
|
|
|
10965
11265
|
flex: [1],
|
|
10966
11266
|
flexItems: true
|
|
10967
11267
|
}, React__default.createElement("input", {
|
|
10968
|
-
className: classnames(styles$
|
|
11268
|
+
className: classnames(styles$1e['text-field'], inputClassName),
|
|
10969
11269
|
autoCorrect: "off",
|
|
10970
11270
|
autoComplete: "off",
|
|
10971
11271
|
spellCheck: "false",
|
|
@@ -11031,7 +11331,7 @@ function CustomMenu(_ref) {
|
|
|
11031
11331
|
return React__default.createElement(components.Menu, _extends({}, props), React__default.createElement("div", {
|
|
11032
11332
|
ref: containerRef
|
|
11033
11333
|
}, children, React__default.createElement("hr", {
|
|
11034
|
-
className: styles$
|
|
11334
|
+
className: styles$x['custom-menu-hr']
|
|
11035
11335
|
}), !showFooter ? React__default.createElement(CreatableButton, {
|
|
11036
11336
|
creatableButton: creatableButton,
|
|
11037
11337
|
onClick: () => setShowFooter(true),
|
|
@@ -11042,13 +11342,13 @@ function CustomMenu(_ref) {
|
|
|
11042
11342
|
onMenuInputFocus: onMenuInputFocus,
|
|
11043
11343
|
onSubmit: onCreateButton,
|
|
11044
11344
|
defaultValue: inputDefaultValue,
|
|
11045
|
-
wrapperClassName: styles$
|
|
11046
|
-
inputClassName: styles$
|
|
11345
|
+
wrapperClassName: styles$x['custom-menu-div'],
|
|
11346
|
+
inputClassName: styles$x['custom-menu-text-field'],
|
|
11047
11347
|
testId: "select-create-option-input"
|
|
11048
11348
|
})));
|
|
11049
11349
|
}
|
|
11050
11350
|
|
|
11051
|
-
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"};
|
|
11052
11352
|
|
|
11053
11353
|
function CustomGroupWithCreate(props) {
|
|
11054
11354
|
const {
|
|
@@ -11082,7 +11382,7 @@ function CustomGroupWithCreate(props) {
|
|
|
11082
11382
|
return React__default.createElement("div", {
|
|
11083
11383
|
ref: containerRef
|
|
11084
11384
|
}, React__default.createElement(components.Group, _extends({}, props)), !isInputActive ? React__default.createElement("div", {
|
|
11085
|
-
className: styles$
|
|
11385
|
+
className: styles$v['custom-group-with-create-button-wrapper']
|
|
11086
11386
|
}, React__default.createElement(CreatableButton, {
|
|
11087
11387
|
creatableButton: creatableButton,
|
|
11088
11388
|
onClick: () => setActiveGroupLabel(groupLabel),
|
|
@@ -11094,8 +11394,8 @@ function CustomGroupWithCreate(props) {
|
|
|
11094
11394
|
onMenuInputFocus: onMenuInputFocus,
|
|
11095
11395
|
onSubmit: onCreateButton,
|
|
11096
11396
|
defaultValue: inputDefaultValue,
|
|
11097
|
-
wrapperClassName: styles$
|
|
11098
|
-
inputClassName: styles$
|
|
11397
|
+
wrapperClassName: styles$v['custom-group-with-create-input-wrapper'],
|
|
11398
|
+
inputClassName: styles$v['custom-group-with-create-text-field'],
|
|
11099
11399
|
testId: `select-create-option-input-${groupLabel}`
|
|
11100
11400
|
}));
|
|
11101
11401
|
}
|
|
@@ -11204,7 +11504,7 @@ const useSelectField = _ref => {
|
|
|
11204
11504
|
};
|
|
11205
11505
|
};
|
|
11206
11506
|
|
|
11207
|
-
var styles$
|
|
11507
|
+
var styles$u = {"select-field__suffix":"_vqC1M"};
|
|
11208
11508
|
|
|
11209
11509
|
/** Component to make possible choose from a predefined options. */
|
|
11210
11510
|
const SelectField = props => {
|
|
@@ -11214,7 +11514,7 @@ const SelectField = props => {
|
|
|
11214
11514
|
} = useSelectField(props);
|
|
11215
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
|
|
11216
11516
|
const suffixWithMargin = props.suffix ? React__default.createElement("div", {
|
|
11217
|
-
className: styles$
|
|
11517
|
+
className: styles$u['select-field__suffix']
|
|
11218
11518
|
}, props.suffix) : undefined;
|
|
11219
11519
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
11220
11520
|
prefix: props.prefix,
|
|
@@ -11259,9 +11559,9 @@ const ToolbarSelect = _ref => {
|
|
|
11259
11559
|
}, rest));
|
|
11260
11560
|
};
|
|
11261
11561
|
|
|
11262
|
-
var styles$
|
|
11562
|
+
var styles$t = {"date-filter":"_PyXfe","date-filter--wide":"_P6ttU"};
|
|
11263
11563
|
|
|
11264
|
-
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"};
|
|
11265
11565
|
|
|
11266
11566
|
const DATE_FILTER_MODE = {
|
|
11267
11567
|
DAY: 'day',
|
|
@@ -11315,8 +11615,8 @@ const DateFilterDisplay = forwardRef(({
|
|
|
11315
11615
|
onClick
|
|
11316
11616
|
}, ref) => {
|
|
11317
11617
|
return React__default.createElement("button", {
|
|
11318
|
-
className: classnames(styles$
|
|
11319
|
-
[styles$
|
|
11618
|
+
className: classnames(styles$s['date-filter-display'], {
|
|
11619
|
+
[styles$s['date-filter-display--wide']]: mode === DATE_FILTER_MODE.WEEK
|
|
11320
11620
|
}),
|
|
11321
11621
|
onClick: onClick,
|
|
11322
11622
|
tabIndex: mode === DATE_FILTER_MODE.MONTH ? -1 : undefined,
|
|
@@ -11325,7 +11625,7 @@ const DateFilterDisplay = forwardRef(({
|
|
|
11325
11625
|
space: 12,
|
|
11326
11626
|
alignItems: "center"
|
|
11327
11627
|
}, React__default.createElement("div", {
|
|
11328
|
-
className: classnames(styles$
|
|
11628
|
+
className: classnames(styles$s['date-filter-display__display-icon'])
|
|
11329
11629
|
}, React__default.createElement(IconCalendarAlt, {
|
|
11330
11630
|
size: "flexible",
|
|
11331
11631
|
color: "surface-on-color-subtle"
|
|
@@ -11336,7 +11636,7 @@ const DateFilterDisplay = forwardRef(({
|
|
|
11336
11636
|
})));
|
|
11337
11637
|
});
|
|
11338
11638
|
|
|
11339
|
-
var styles$
|
|
11639
|
+
var styles$r = {"date-stepper":"_9wFtw","date-stepper--backward":"_OrtcR","date-stepper--forward":"_oYoUt"};
|
|
11340
11640
|
|
|
11341
11641
|
const handleDateStepper = (date, mode, stepDirection, onChange) => {
|
|
11342
11642
|
const step = stepDirection === STEP_DIRECTION.FORWARD ? 1 : -1;
|
|
@@ -11365,9 +11665,9 @@ const DateFilterStepper = ({
|
|
|
11365
11665
|
date
|
|
11366
11666
|
}) => {
|
|
11367
11667
|
return React__default.createElement("button", {
|
|
11368
|
-
className: classnames(styles$
|
|
11369
|
-
[styles$
|
|
11370
|
-
[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
|
|
11371
11671
|
}),
|
|
11372
11672
|
onClick: () => handleDateStepper(date, mode, stepDirection, onChange)
|
|
11373
11673
|
}, children);
|
|
@@ -11432,9 +11732,9 @@ const CalendarMonth = ({
|
|
|
11432
11732
|
}
|
|
11433
11733
|
const MONTHS = [...Array(12).keys()];
|
|
11434
11734
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
11435
|
-
className: styles$
|
|
11735
|
+
className: styles$Y['calendar']
|
|
11436
11736
|
}, React__default.createElement("div", {
|
|
11437
|
-
className: styles$
|
|
11737
|
+
className: styles$Y['calendar__overlay'],
|
|
11438
11738
|
ref: ref => setCalendarRef(ref),
|
|
11439
11739
|
style: _extends({}, calendarPosition, {
|
|
11440
11740
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -11511,8 +11811,8 @@ const DateFilter = ({
|
|
|
11511
11811
|
const onClickOutside = useCallback(() => setCalendarOpen(false), [setCalendarOpen]);
|
|
11512
11812
|
return React__default.createElement("div", {
|
|
11513
11813
|
"data-testid": testId,
|
|
11514
|
-
className: classnames(styles$
|
|
11515
|
-
[styles$
|
|
11814
|
+
className: classnames(styles$t['date-filter'], {
|
|
11815
|
+
[styles$t['date-filter--wide']]: _mode === DATE_FILTER_MODE.WEEK
|
|
11516
11816
|
})
|
|
11517
11817
|
}, React__default.createElement(Inline, {
|
|
11518
11818
|
space: 0
|
|
@@ -11555,7 +11855,7 @@ const DateFilter = ({
|
|
|
11555
11855
|
}));
|
|
11556
11856
|
};
|
|
11557
11857
|
|
|
11558
|
-
var styles$
|
|
11858
|
+
var styles$q = {"segmented-control":"_RezMY","segmented-control__button":"_lehFG","segmented-control__button--selected":"_Fr5kb"};
|
|
11559
11859
|
|
|
11560
11860
|
const SegmentedControl = ({
|
|
11561
11861
|
options,
|
|
@@ -11567,21 +11867,21 @@ const SegmentedControl = ({
|
|
|
11567
11867
|
return option === value;
|
|
11568
11868
|
};
|
|
11569
11869
|
return React__default.createElement("div", {
|
|
11570
|
-
className: styles$
|
|
11870
|
+
className: styles$q['segmented-control'],
|
|
11571
11871
|
"data-testid": testId
|
|
11572
11872
|
}, options.map(option => React__default.createElement(React__default.Fragment, {
|
|
11573
11873
|
key: option
|
|
11574
11874
|
}, React__default.createElement("button", {
|
|
11575
11875
|
onClick: () => onChange(option),
|
|
11576
|
-
className: classnames(styles$
|
|
11577
|
-
[styles$
|
|
11876
|
+
className: classnames(styles$q['segmented-control__button'], {
|
|
11877
|
+
[styles$q['segmented-control__button--selected']]: isSelected(option)
|
|
11578
11878
|
})
|
|
11579
11879
|
}, option))));
|
|
11580
11880
|
};
|
|
11581
11881
|
|
|
11582
|
-
var styles$
|
|
11882
|
+
var styles$p = {"form--standard-size":"_8-Ykj"};
|
|
11583
11883
|
|
|
11584
|
-
var styles$
|
|
11884
|
+
var styles$o = {"form-section":"_3uYIj","form-section__title":"_2WdOf","form-section__subtitle":"_zybxx","form-section--no-margin":"_xT-U1"};
|
|
11585
11885
|
|
|
11586
11886
|
const FormSection = ({
|
|
11587
11887
|
children,
|
|
@@ -11594,13 +11894,13 @@ const FormSection = ({
|
|
|
11594
11894
|
const content = React__default.createElement(Stack, null, (title || subtitle) && React__default.createElement(Stack, {
|
|
11595
11895
|
space: 8
|
|
11596
11896
|
}, title && React__default.createElement("h2", {
|
|
11597
|
-
className: classnames(styles$
|
|
11897
|
+
className: classnames(styles$o['form-section__title'])
|
|
11598
11898
|
}, title), subtitle && React__default.createElement("h3", {
|
|
11599
|
-
className: classnames(styles$
|
|
11899
|
+
className: classnames(styles$o['form-section__subtitle'])
|
|
11600
11900
|
}, subtitle)), children);
|
|
11601
11901
|
return React__default.createElement("div", {
|
|
11602
|
-
className: classnames(styles$
|
|
11603
|
-
[styles$
|
|
11902
|
+
className: classnames(styles$o['form-section'], {
|
|
11903
|
+
[styles$o['form-section--no-margin']]: _noMargin || as === 'card'
|
|
11604
11904
|
}),
|
|
11605
11905
|
"data-testid": testId
|
|
11606
11906
|
}, as === 'card' ? React__default.createElement(Card, {
|
|
@@ -11620,7 +11920,7 @@ const updateButtonProps = (child, newProps) => {
|
|
|
11620
11920
|
}, newProps, child.props));
|
|
11621
11921
|
};
|
|
11622
11922
|
|
|
11623
|
-
var styles$
|
|
11923
|
+
var styles$n = {"form-footer":"_4ksfB"};
|
|
11624
11924
|
|
|
11625
11925
|
const FormFooterActions = ({
|
|
11626
11926
|
actions
|
|
@@ -11656,7 +11956,7 @@ const FormFooter = ({
|
|
|
11656
11956
|
});
|
|
11657
11957
|
const isInlineChildren = React__default.Children.count(children) === 1 && React__default.isValidElement(children) && children.type === Inline;
|
|
11658
11958
|
return React__default.createElement("div", {
|
|
11659
|
-
className: classnames(styles$
|
|
11959
|
+
className: classnames(styles$n['form-footer']),
|
|
11660
11960
|
"data-testid": testId
|
|
11661
11961
|
}, actions && React__default.createElement(FormFooterActions, {
|
|
11662
11962
|
actions: actions
|
|
@@ -11694,13 +11994,13 @@ const Form = ({
|
|
|
11694
11994
|
}, React__default.createElement("form", {
|
|
11695
11995
|
onSubmit: onSubmit ? handleSubmit : formik == null ? void 0 : formik.handleSubmit,
|
|
11696
11996
|
className: classnames({
|
|
11697
|
-
[styles$
|
|
11997
|
+
[styles$p['form--standard-size']]: !_wide
|
|
11698
11998
|
}),
|
|
11699
11999
|
"data-testid": testId
|
|
11700
12000
|
}, _stackContent ? React__default.createElement(Stack, null, formattedChildren) : formattedChildren));
|
|
11701
12001
|
};
|
|
11702
12002
|
|
|
11703
|
-
var styles$
|
|
12003
|
+
var styles$m = {"form-row":"_xX-RS"};
|
|
11704
12004
|
|
|
11705
12005
|
const SIZE_25_PERCENT = '25%';
|
|
11706
12006
|
const SIZE_33_PERCENT = '33.333%';
|
|
@@ -11727,14 +12027,14 @@ const FormRow = ({
|
|
|
11727
12027
|
space: _space,
|
|
11728
12028
|
testId: testId,
|
|
11729
12029
|
alignItems: "stretch",
|
|
11730
|
-
extraClass: styles$
|
|
12030
|
+
extraClass: styles$m['form-row']
|
|
11731
12031
|
}, children, additionalColumns.map((_, index) => React__default.createElement("span", {
|
|
11732
12032
|
key: index,
|
|
11733
12033
|
"data-testid": "empty-cell"
|
|
11734
12034
|
})));
|
|
11735
12035
|
};
|
|
11736
12036
|
|
|
11737
|
-
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"};
|
|
11738
12038
|
|
|
11739
12039
|
const useGrowTextAreaRef = (minHeight, maxHeight, autoGrow, forwardedRef) => {
|
|
11740
12040
|
const textareaRef = useRef(null);
|
|
@@ -11803,10 +12103,10 @@ const TextAreaField = ({
|
|
|
11803
12103
|
return React__default.createElement(Field, _extends({}, fieldProps, {
|
|
11804
12104
|
characterCount: controllers.value !== undefined && maxLength ? maxLength - controllers.value.length : undefined
|
|
11805
12105
|
}), React__default.createElement("div", {
|
|
11806
|
-
className: classnames(styles$
|
|
11807
|
-
[styles$
|
|
11808
|
-
[styles$
|
|
11809
|
-
[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
|
|
11810
12110
|
}),
|
|
11811
12111
|
ref: containerRef,
|
|
11812
12112
|
onClick: event => {
|
|
@@ -11838,7 +12138,7 @@ const TextAreaField = ({
|
|
|
11838
12138
|
ref: textAreaRef,
|
|
11839
12139
|
maxLength: maxLength
|
|
11840
12140
|
}), toolbar && React__default.createElement("div", {
|
|
11841
|
-
className: styles$
|
|
12141
|
+
className: styles$l['text-field__toolbar'],
|
|
11842
12142
|
id: `${controllers.id}-toolbar`,
|
|
11843
12143
|
ref: toolbarRef,
|
|
11844
12144
|
onClick: event => {
|
|
@@ -11872,7 +12172,7 @@ const TextFieldElement = (_ref, ref) => {
|
|
|
11872
12172
|
};
|
|
11873
12173
|
const TextField = forwardRef(TextFieldElement);
|
|
11874
12174
|
|
|
11875
|
-
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"};
|
|
11876
12176
|
|
|
11877
12177
|
const useMultiSelectFieldControllers = ({
|
|
11878
12178
|
name,
|
|
@@ -11937,10 +12237,10 @@ const CreatableOption = ({
|
|
|
11937
12237
|
};
|
|
11938
12238
|
return React__default.createElement(React__default.Fragment, null, !isCreatingOption && React__default.createElement("div", {
|
|
11939
12239
|
key: 'pill-select-field-create-option',
|
|
11940
|
-
className: styles$
|
|
12240
|
+
className: styles$k['pill-select-field']
|
|
11941
12241
|
}, React__default.createElement("button", {
|
|
11942
12242
|
"data-testid": testId ? `${testId}-create-option` : undefined,
|
|
11943
|
-
className: styles$
|
|
12243
|
+
className: styles$k['pill-select-field__add-new-input'],
|
|
11944
12244
|
onClick: () => {
|
|
11945
12245
|
setIsCreatingOption(true);
|
|
11946
12246
|
setNewOptionLabel('');
|
|
@@ -11949,9 +12249,9 @@ const CreatableOption = ({
|
|
|
11949
12249
|
size: "small"
|
|
11950
12250
|
}), createOptionLabel)), isCreatingOption && React__default.createElement("div", {
|
|
11951
12251
|
key: 'pill-select-field-creating-option',
|
|
11952
|
-
className: styles$
|
|
12252
|
+
className: styles$k['pill-select-field']
|
|
11953
12253
|
}, React__default.createElement("input", {
|
|
11954
|
-
className: styles$
|
|
12254
|
+
className: styles$k['pill-select-field__creating-input'],
|
|
11955
12255
|
name: `${name}-pill-select-field-creating-option`,
|
|
11956
12256
|
id: 'pill-select-field-creating-option',
|
|
11957
12257
|
type: "text",
|
|
@@ -11972,7 +12272,7 @@ const CreatableOption = ({
|
|
|
11972
12272
|
}
|
|
11973
12273
|
}
|
|
11974
12274
|
}), React__default.createElement("span", {
|
|
11975
|
-
className: styles$
|
|
12275
|
+
className: styles$k['pill-select-field__creating-custom-input']
|
|
11976
12276
|
}, !newOptionLabel && React__default.createElement(Text, {
|
|
11977
12277
|
as: "body",
|
|
11978
12278
|
color: "surface-on-color-disabled"
|
|
@@ -12023,7 +12323,7 @@ const PillSelectField = ({
|
|
|
12023
12323
|
}
|
|
12024
12324
|
};
|
|
12025
12325
|
return React__default.createElement("button", {
|
|
12026
|
-
className: styles$
|
|
12326
|
+
className: styles$k['pill-select-field__removable-icon'],
|
|
12027
12327
|
onClick: handleClick,
|
|
12028
12328
|
disabled: disabled
|
|
12029
12329
|
}, React__default.createElement(IconTimes, {
|
|
@@ -12040,7 +12340,7 @@ const PillSelectField = ({
|
|
|
12040
12340
|
const itemId = `${controllers.id}-${itemIdentifier}`;
|
|
12041
12341
|
return React__default.createElement("div", {
|
|
12042
12342
|
key: itemIdentifier,
|
|
12043
|
-
className: styles$
|
|
12343
|
+
className: styles$k['pill-select-field']
|
|
12044
12344
|
}, React__default.createElement("input", {
|
|
12045
12345
|
name: `${name}-${itemIdentifier}`,
|
|
12046
12346
|
id: itemId,
|
|
@@ -12060,7 +12360,7 @@ const PillSelectField = ({
|
|
|
12060
12360
|
controllers.onChange(newValue);
|
|
12061
12361
|
}
|
|
12062
12362
|
}), React__default.createElement("span", {
|
|
12063
|
-
className: styles$
|
|
12363
|
+
className: styles$k['pill-select-field__custom-input']
|
|
12064
12364
|
}, option.label, option.isRemovable && React__default.createElement(RemoveButton, {
|
|
12065
12365
|
option: option
|
|
12066
12366
|
})));
|
|
@@ -12109,9 +12409,9 @@ const useRadioGroupFieldContext = () => {
|
|
|
12109
12409
|
return context;
|
|
12110
12410
|
};
|
|
12111
12411
|
|
|
12112
|
-
var styles$
|
|
12412
|
+
var styles$j = {"label":"_xzukU","label--truncate":"_iVWRB","caption":"_JNfQO","radio-group-field__label":"_2KvuU","radio-group-field__caption":"_ZeIOd"};
|
|
12113
12413
|
|
|
12114
|
-
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"};
|
|
12115
12415
|
|
|
12116
12416
|
const RadioGroupBoxOption = ({
|
|
12117
12417
|
value,
|
|
@@ -12128,7 +12428,7 @@ const RadioGroupBoxOption = ({
|
|
|
12128
12428
|
id: inputId
|
|
12129
12429
|
});
|
|
12130
12430
|
return React__default.createElement("label", {
|
|
12131
|
-
className: styles$
|
|
12431
|
+
className: styles$i['radio-group-box-option']
|
|
12132
12432
|
}, React__default.createElement("input", {
|
|
12133
12433
|
type: "radio",
|
|
12134
12434
|
"data-testid": testId,
|
|
@@ -12139,8 +12439,8 @@ const RadioGroupBoxOption = ({
|
|
|
12139
12439
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
12140
12440
|
disabled: radioGroupContext.disabled || disabled
|
|
12141
12441
|
}), React__default.createElement("div", {
|
|
12142
|
-
className: classnames(styles$
|
|
12143
|
-
[styles$
|
|
12442
|
+
className: classnames(styles$i['radio-group-box-option__box'], {
|
|
12443
|
+
[styles$i['radio-group-box-option__box--disabled']]: radioGroupContext.disabled || disabled
|
|
12144
12444
|
})
|
|
12145
12445
|
}, React__default.createElement(Stack, {
|
|
12146
12446
|
space: 16,
|
|
@@ -12150,17 +12450,17 @@ const RadioGroupBoxOption = ({
|
|
|
12150
12450
|
space: 8,
|
|
12151
12451
|
alignItems: "center"
|
|
12152
12452
|
}, label && React__default.createElement("div", {
|
|
12153
|
-
className: classnames(styles$
|
|
12154
|
-
[styles$
|
|
12453
|
+
className: classnames(styles$i['radio-group-box-option__label'], {
|
|
12454
|
+
[styles$i['radio-group-box-option__label--disabled']]: radioGroupContext.disabled || disabled
|
|
12155
12455
|
})
|
|
12156
12456
|
}, label), caption && React__default.createElement("div", {
|
|
12157
|
-
className: classnames(styles$
|
|
12158
|
-
[styles$
|
|
12457
|
+
className: classnames(styles$i['radio-group-box-option__caption'], {
|
|
12458
|
+
[styles$i['radio-group-box-option__caption--disabled']]: radioGroupContext.disabled || disabled
|
|
12159
12459
|
})
|
|
12160
12460
|
}, caption)))));
|
|
12161
12461
|
};
|
|
12162
12462
|
|
|
12163
|
-
var styles$
|
|
12463
|
+
var styles$h = {"radio-group-option":"_7fVpn","radio-group-option__caption":"_VD7SO","radio-group-option__custom-input":"_Yfxkl"};
|
|
12164
12464
|
|
|
12165
12465
|
/** RadioGroupField form element. */
|
|
12166
12466
|
const RadioGroupOption = ({
|
|
@@ -12182,7 +12482,7 @@ const RadioGroupOption = ({
|
|
|
12182
12482
|
space: 8,
|
|
12183
12483
|
alignItems: "center"
|
|
12184
12484
|
}, React__default.createElement("div", {
|
|
12185
|
-
className: styles$
|
|
12485
|
+
className: styles$h['radio-group-option']
|
|
12186
12486
|
}, React__default.createElement("input", {
|
|
12187
12487
|
type: "radio",
|
|
12188
12488
|
"data-testid": testId,
|
|
@@ -12193,11 +12493,11 @@ const RadioGroupOption = ({
|
|
|
12193
12493
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
12194
12494
|
disabled: radioGroupContext.disabled || disabled
|
|
12195
12495
|
}), React__default.createElement("span", {
|
|
12196
|
-
className: styles$
|
|
12496
|
+
className: styles$h['radio-group-option__custom-input']
|
|
12197
12497
|
})), label && React__default.createElement(Label, {
|
|
12198
12498
|
htmlFor: id
|
|
12199
12499
|
}, label)), caption && React__default.createElement("div", {
|
|
12200
|
-
className: styles$
|
|
12500
|
+
className: styles$h['radio-group-option__caption']
|
|
12201
12501
|
}, React__default.createElement(Caption, {
|
|
12202
12502
|
fieldId: id
|
|
12203
12503
|
}, caption)));
|
|
@@ -12328,7 +12628,7 @@ const RadioGroupField = ({
|
|
|
12328
12628
|
}, React__default.createElement(Stack, {
|
|
12329
12629
|
space: _space
|
|
12330
12630
|
}, label && React__default.createElement("div", {
|
|
12331
|
-
className: styles$
|
|
12631
|
+
className: styles$j['radio-group-field__label']
|
|
12332
12632
|
}, label), React__default.createElement(Stack, {
|
|
12333
12633
|
space: 8
|
|
12334
12634
|
}, optionsType === OPTION_TYPES.RADIO ? React__default.createElement(RadioOptions, {
|
|
@@ -12340,21 +12640,21 @@ const RadioGroupField = ({
|
|
|
12340
12640
|
testId: testId,
|
|
12341
12641
|
space: _space
|
|
12342
12642
|
}, children), caption && React__default.createElement("div", {
|
|
12343
|
-
className: styles$
|
|
12643
|
+
className: styles$j['radio-group-caption']
|
|
12344
12644
|
}, caption), controllers.error && React__default.createElement(ErrorMessage, null, controllers.error))));
|
|
12345
12645
|
};
|
|
12346
12646
|
|
|
12347
|
-
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"};
|
|
12348
12648
|
|
|
12349
|
-
var styles$
|
|
12649
|
+
var styles$f = {"password-criteria":"_1ruWK","password-criteria--invalid":"_xR7tb"};
|
|
12350
12650
|
|
|
12351
12651
|
const PasswordCriteria = ({
|
|
12352
12652
|
met,
|
|
12353
12653
|
children
|
|
12354
12654
|
}) => {
|
|
12355
12655
|
return React__default.createElement("span", {
|
|
12356
|
-
className: classnames(styles$
|
|
12357
|
-
[styles$
|
|
12656
|
+
className: classnames(styles$f['password-criteria'], {
|
|
12657
|
+
[styles$f['password-criteria--invalid']]: !met
|
|
12358
12658
|
})
|
|
12359
12659
|
}, React__default.createElement(Inline, {
|
|
12360
12660
|
space: met ? 4 : 8
|
|
@@ -12427,12 +12727,12 @@ const PasswordField = ({
|
|
|
12427
12727
|
error: controllers.error
|
|
12428
12728
|
};
|
|
12429
12729
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
12430
|
-
className: styles$
|
|
12730
|
+
className: styles$g['password-container']
|
|
12431
12731
|
}, React__default.createElement("input", {
|
|
12432
12732
|
name: name,
|
|
12433
12733
|
id: controllers.id,
|
|
12434
|
-
className: classnames(styles$
|
|
12435
|
-
[styles$
|
|
12734
|
+
className: classnames(styles$g['text-field'], {
|
|
12735
|
+
[styles$g['text-field--invalid']]: hasError
|
|
12436
12736
|
}),
|
|
12437
12737
|
type: type,
|
|
12438
12738
|
"data-testid": testId,
|
|
@@ -12445,8 +12745,8 @@ const PasswordField = ({
|
|
|
12445
12745
|
onChange: controllers.onChange,
|
|
12446
12746
|
onBlur: controllers.onBlur
|
|
12447
12747
|
}), React__default.createElement("div", {
|
|
12448
|
-
className: classnames(styles$
|
|
12449
|
-
[styles$
|
|
12748
|
+
className: classnames(styles$g['password-toggle'], {
|
|
12749
|
+
[styles$g['password-toggle--disabled']]: disabled
|
|
12450
12750
|
}),
|
|
12451
12751
|
onClick: toggleType,
|
|
12452
12752
|
onKeyPress: toggleType,
|
|
@@ -12548,7 +12848,7 @@ const MultiSelectField = ({
|
|
|
12548
12848
|
})));
|
|
12549
12849
|
};
|
|
12550
12850
|
|
|
12551
|
-
var styles$
|
|
12851
|
+
var styles$e = {"custom-list":"_cSkvD"};
|
|
12552
12852
|
|
|
12553
12853
|
const _excluded$7 = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad"];
|
|
12554
12854
|
const CustomList = _ref => {
|
|
@@ -12566,7 +12866,7 @@ const CustomList = _ref => {
|
|
|
12566
12866
|
return React__default.createElement(components.MenuList, _extends({}, props), React__default.createElement(Fragment, null, children, showFooter && props.options.length > 0 && React__default.createElement(Inline, {
|
|
12567
12867
|
justifyContent: "center"
|
|
12568
12868
|
}, React__default.createElement("div", {
|
|
12569
|
-
className: styles$
|
|
12869
|
+
className: styles$e['custom-list']
|
|
12570
12870
|
}, __('moreOptionsPlaceholder')))));
|
|
12571
12871
|
};
|
|
12572
12872
|
|
|
@@ -12859,7 +13159,7 @@ const getFormikError = error => {
|
|
|
12859
13159
|
return undefined;
|
|
12860
13160
|
};
|
|
12861
13161
|
|
|
12862
|
-
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"};
|
|
12863
13163
|
|
|
12864
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"};
|
|
12865
13165
|
|
|
@@ -12923,9 +13223,9 @@ const DateRangeCalendar = ({
|
|
|
12923
13223
|
const DAYS = getDays(translate);
|
|
12924
13224
|
const MONTH_NAMES = getMonths(translate);
|
|
12925
13225
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
12926
|
-
className: styles$
|
|
13226
|
+
className: styles$Y['calendar']
|
|
12927
13227
|
}, React__default.createElement("div", {
|
|
12928
|
-
className: styles$
|
|
13228
|
+
className: styles$Y['calendar__overlay'],
|
|
12929
13229
|
ref: ref => setCalendarRef(ref),
|
|
12930
13230
|
style: _extends({}, calendarPosition, {
|
|
12931
13231
|
zIndex: getZIndex('dropdown')
|
|
@@ -13116,9 +13416,9 @@ const DateRangeField = ({
|
|
|
13116
13416
|
end
|
|
13117
13417
|
} = controllers.value;
|
|
13118
13418
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
13119
|
-
className: classnames(styles$
|
|
13120
|
-
[styles$
|
|
13121
|
-
[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
|
|
13122
13422
|
}),
|
|
13123
13423
|
"data-testid": testId
|
|
13124
13424
|
}, React__default.createElement(IconCalendarAlt, {
|
|
@@ -13440,7 +13740,7 @@ const TimeRangeSelector = forwardRef(TimeFieldElement);
|
|
|
13440
13740
|
*/
|
|
13441
13741
|
const TimeField = forwardRef(TimeFieldElement);
|
|
13442
13742
|
|
|
13443
|
-
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"};
|
|
13444
13744
|
|
|
13445
13745
|
const TimeRangeEnd = ({
|
|
13446
13746
|
startTime,
|
|
@@ -13561,9 +13861,9 @@ const TimeRangeField = ({
|
|
|
13561
13861
|
end
|
|
13562
13862
|
}) : getDuration(end, start, subtractDuration);
|
|
13563
13863
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
13564
|
-
className: classnames(styles$
|
|
13565
|
-
[styles$
|
|
13566
|
-
[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
|
|
13567
13867
|
}),
|
|
13568
13868
|
"data-testid": testId
|
|
13569
13869
|
}, React__default.createElement(TimeRangeStart, {
|
|
@@ -13591,7 +13891,7 @@ const TimeRangeField = ({
|
|
|
13591
13891
|
})));
|
|
13592
13892
|
};
|
|
13593
13893
|
|
|
13594
|
-
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"};
|
|
13595
13895
|
|
|
13596
13896
|
const CURRENCY_DISPLAY_DEFAULT_MARGIN = 8;
|
|
13597
13897
|
const CURRENCY_DISPLAY_MARGIN_BUFFER = 1;
|
|
@@ -13657,12 +13957,12 @@ const CurrencyFieldElement = (_ref, forwardedRef) => {
|
|
|
13657
13957
|
setShowMask(false);
|
|
13658
13958
|
inputProps.onFocus(e);
|
|
13659
13959
|
},
|
|
13660
|
-
className: classnames(inputProps.className, styles$
|
|
13661
|
-
[styles$
|
|
13960
|
+
className: classnames(inputProps.className, styles$b['currency-field'], {
|
|
13961
|
+
[styles$b['currency-field--with-mask']]: showMask && !!inputProps.value
|
|
13662
13962
|
})
|
|
13663
13963
|
}))), showMask && !!inputProps.value && React__default.createElement("div", {
|
|
13664
|
-
className: classnames(styles$
|
|
13665
|
-
[styles$
|
|
13964
|
+
className: classnames(styles$b['currency-field__mask-display'], {
|
|
13965
|
+
[styles$b['currency-field__mask-display--disabled']]: inputProps.disabled
|
|
13666
13966
|
}),
|
|
13667
13967
|
style: {
|
|
13668
13968
|
marginLeft: displayPadding
|
|
@@ -13790,7 +14090,7 @@ const FormFeedback = ({
|
|
|
13790
14090
|
}, children);
|
|
13791
14091
|
};
|
|
13792
14092
|
|
|
13793
|
-
var styles$
|
|
14093
|
+
var styles$a = {"phone-field":"_Q0GfJ","phone-field__flag":"_-uOqW","phone-field__input":"_Hes9b","phone-field__input--with-square-borders":"_TEU6N"};
|
|
13794
14094
|
|
|
13795
14095
|
const usePhoneFieldControllers = ({
|
|
13796
14096
|
name,
|
|
@@ -13933,8 +14233,8 @@ const usePhoneField = ({
|
|
|
13933
14233
|
'aria-describedby': hasError ? `${controllers.id}-error-message` : `${controllers.id}-describer`,
|
|
13934
14234
|
'aria-invalid': hasError,
|
|
13935
14235
|
autoFocus,
|
|
13936
|
-
className: classnames(styles$
|
|
13937
|
-
[styles$
|
|
14236
|
+
className: classnames(styles$1e['text-field'], {
|
|
14237
|
+
[styles$1e['text-field--invalid']]: hasError
|
|
13938
14238
|
}),
|
|
13939
14239
|
'data-testid': testId,
|
|
13940
14240
|
disabled,
|
|
@@ -14704,7 +15004,7 @@ const COUNTRIES = {
|
|
|
14704
15004
|
};
|
|
14705
15005
|
const COUNTRY_CODES = Object.keys(COUNTRIES);
|
|
14706
15006
|
|
|
14707
|
-
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"};
|
|
14708
15008
|
|
|
14709
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"};
|
|
14710
15010
|
|
|
@@ -14715,21 +15015,21 @@ const CountrySelector = ({
|
|
|
14715
15015
|
disabled
|
|
14716
15016
|
}) => {
|
|
14717
15017
|
return React__default.createElement("div", {
|
|
14718
|
-
className: classnames(styles$
|
|
14719
|
-
[styles$
|
|
14720
|
-
[styles$
|
|
15018
|
+
className: classnames(styles$9['country-selector'], {
|
|
15019
|
+
[styles$9['country-selector--with-error']]: hasError,
|
|
15020
|
+
[styles$9['country-selector--disabled']]: disabled
|
|
14721
15021
|
})
|
|
14722
15022
|
}, React__default.createElement(Dropdown, {
|
|
14723
15023
|
trigger: React__default.createElement("div", {
|
|
14724
|
-
className: classnames(styles$
|
|
14725
|
-
[styles$
|
|
14726
|
-
[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
|
|
14727
15027
|
})
|
|
14728
15028
|
}, React__default.createElement(Inline, {
|
|
14729
15029
|
space: 8,
|
|
14730
15030
|
alignItems: "center"
|
|
14731
15031
|
}, React__default.createElement("span", {
|
|
14732
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLocaleLowerCase()}`], styles$
|
|
15032
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLocaleLowerCase()}`], styles$9['country-selector__trigger-flag'])
|
|
14733
15033
|
}), React__default.createElement(IconChevronDown, {
|
|
14734
15034
|
color: "currentColor",
|
|
14735
15035
|
size: "medium"
|
|
@@ -14743,7 +15043,7 @@ const CountrySelector = ({
|
|
|
14743
15043
|
alignItems: "center",
|
|
14744
15044
|
space: 12
|
|
14745
15045
|
}, React__default.createElement("span", {
|
|
14746
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLocaleLowerCase()}`], styles$
|
|
15046
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLocaleLowerCase()}`], styles$9['country-selector__flag'])
|
|
14747
15047
|
}), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)))))));
|
|
14748
15048
|
};
|
|
14749
15049
|
|
|
@@ -14816,7 +15116,7 @@ const PhoneField = _ref => {
|
|
|
14816
15116
|
}
|
|
14817
15117
|
};
|
|
14818
15118
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
14819
|
-
className: styles$
|
|
15119
|
+
className: styles$a['phone-field']
|
|
14820
15120
|
}, !disabledCountry && React__default.createElement(CountrySelector, {
|
|
14821
15121
|
country: selectedCountry,
|
|
14822
15122
|
onChange: handleCountryChange,
|
|
@@ -14827,18 +15127,186 @@ const PhoneField = _ref => {
|
|
|
14827
15127
|
space: 4,
|
|
14828
15128
|
alignItems: "center"
|
|
14829
15129
|
}, React__default.createElement("span", {
|
|
14830
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$
|
|
15130
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$a['country-selector__flag'])
|
|
14831
15131
|
}), React__default.createElement("span", null, "+", getCountryCallingCode(selectedCountry))) : `+${getCountryCallingCode(selectedCountry)}`
|
|
14832
15132
|
}, React__default.createElement("input", _extends({}, inputProps, {
|
|
14833
15133
|
type: "tel",
|
|
14834
|
-
className: classnames(inputProps.className, styles$
|
|
14835
|
-
[styles$
|
|
15134
|
+
className: classnames(inputProps.className, styles$a['phone-field__input'], {
|
|
15135
|
+
[styles$a['phone-field__input--with-square-borders']]: !disabledCountry
|
|
14836
15136
|
}),
|
|
14837
15137
|
onChange: handlePhoneChange,
|
|
14838
15138
|
onBlur: handlePhoneBlur
|
|
14839
15139
|
})))));
|
|
14840
15140
|
};
|
|
14841
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
|
+
|
|
14842
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"};
|
|
14843
15311
|
|
|
14844
15312
|
var styles$5 = {"avatar-image":"_iDN1j"};
|
|
@@ -15313,5 +15781,5 @@ const EmptyState = props => {
|
|
|
15313
15781
|
return emptyStateContainer;
|
|
15314
15782
|
};
|
|
15315
15783
|
|
|
15316
|
-
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 };
|
|
15317
15785
|
//# sourceMappingURL=index.modern.mjs.map
|