@7shifts/sous-chef 4.6.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/forms/ColorField/ColorField.d.ts +4 -2
- package/dist/forms/ColorField/ColorOverlay/ColorOverlay.d.ts +4 -1
- package/dist/forms/ColorField/ColorOverlay/useColorKeyboardNavigation.d.ts +2 -1
- package/dist/forms/ColorField/CustomColorPicker/CustomColorPicker.d.ts +18 -0
- package/dist/forms/ColorField/CustomColorPicker/index.d.ts +2 -0
- package/dist/forms/ColorField/constants.d.ts +1 -0
- package/dist/forms/ColorField/domain.d.ts +14 -0
- package/dist/foundation/tokens/color/color-codes.d.ts +46 -0
- package/dist/i18n/locales/en.json +3 -0
- package/dist/i18n/locales/es.json +3 -0
- package/dist/i18n/locales/fr.json +3 -0
- package/dist/index.css +105 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +825 -401
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1010 -603
- package/dist/index.modern.js.map +1 -1
- package/dist/navigation/Tab/Tab.d.ts +10 -0
- package/dist/navigation/Tab/index.d.ts +1 -0
- package/dist/navigation/TabList/TabList.d.ts +7 -0
- package/dist/navigation/TabList/index.d.ts +1 -0
- package/dist/navigation/TabPanel/TabPanel.d.ts +9 -0
- package/dist/navigation/TabPanel/index.d.ts +1 -0
- package/dist/navigation/Tabs/Tabs.d.ts +9 -0
- package/dist/navigation/Tabs/TabsContext.d.ts +15 -0
- package/dist/navigation/Tabs/index.d.ts +1 -0
- package/dist/navigation/index.d.ts +5 -1
- package/dist/overlay/Tooltip/Tooltip.d.ts +2 -0
- package/dist/utils/elements.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { useRef, useEffect, useCallback, useState, forwardRef, Fragment, createContext, Children, useContext, useLayoutEffect, useMemo } from 'react';
|
|
2
|
+
import React__default, { useRef, useEffect, useCallback, useState, forwardRef, Fragment, createContext, Children, useContext, useLayoutEffect, useMemo, useImperativeHandle } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { toast as toast$1, ToastContainer as ToastContainer$1, Slide } from 'react-toastify';
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
@@ -272,7 +272,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
272
272
|
return t;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
var styles$
|
|
275
|
+
var styles$1H = {"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"};
|
|
276
276
|
|
|
277
277
|
const usePositionStyles = ({
|
|
278
278
|
m,
|
|
@@ -388,15 +388,15 @@ const Flex = _ref => {
|
|
|
388
388
|
dataProps
|
|
389
389
|
} = getDataProps(otherProps);
|
|
390
390
|
const positionStyles = usePositionStyles(positionProps);
|
|
391
|
-
const className = classnames(styles$
|
|
392
|
-
[styles$
|
|
393
|
-
[styles$
|
|
394
|
-
[styles$
|
|
395
|
-
[styles$
|
|
396
|
-
[styles$
|
|
397
|
-
[styles$
|
|
398
|
-
[styles$
|
|
399
|
-
[styles$
|
|
391
|
+
const className = classnames(styles$1H['flex'], extraClass, {
|
|
392
|
+
[styles$1H['align-start']]: alignItems === 'flex-start',
|
|
393
|
+
[styles$1H['align-end']]: alignItems === 'flex-end',
|
|
394
|
+
[styles$1H['align-center']]: alignItems === 'center',
|
|
395
|
+
[styles$1H['justify-start']]: justifyContent === 'start',
|
|
396
|
+
[styles$1H['justify-end']]: justifyContent === 'end',
|
|
397
|
+
[styles$1H['justify-center']]: justifyContent === 'center',
|
|
398
|
+
[styles$1H['justify-space-between']]: justifyContent === 'space-between',
|
|
399
|
+
[styles$1H['inline-flex']]: inlineFlex
|
|
400
400
|
});
|
|
401
401
|
const items = React__default.Children.toArray(children).filter(Boolean);
|
|
402
402
|
const gap = typeof space === 'object' ? `${space.row}px ${space.column}px` : space;
|
|
@@ -411,8 +411,8 @@ const Flex = _ref => {
|
|
|
411
411
|
"data-testid": testId
|
|
412
412
|
}, dataProps), items.map((child, i) => React__default.createElement("div", {
|
|
413
413
|
key: i,
|
|
414
|
-
className: classnames(styles$
|
|
415
|
-
[styles$
|
|
414
|
+
className: classnames(styles$1H['flex__item'], {
|
|
415
|
+
[styles$1H['flex__item--flexible']]: flexItems
|
|
416
416
|
}),
|
|
417
417
|
style: {
|
|
418
418
|
flex: flex ? flex[i] || '0 1 auto' : '0 1 auto'
|
|
@@ -435,7 +435,7 @@ const Stack = _ref => {
|
|
|
435
435
|
}));
|
|
436
436
|
};
|
|
437
437
|
|
|
438
|
-
var styles$
|
|
438
|
+
var styles$1G = {"caption":"_tMhXr","label":"_NfOw5","label--truncate":"_M3aFK","toggle":"_QDQZ1","toggle__label":"_52dky","toggle__caption":"_A-tgL","toggle__switch":"_kBjjH"};
|
|
439
439
|
|
|
440
440
|
const _excluded$ek = ["checked", "label", "caption", "onChange", "disabled", "id", "testId"];
|
|
441
441
|
/**
|
|
@@ -460,7 +460,7 @@ const Toggle = _ref => {
|
|
|
460
460
|
return React__default.createElement(Stack, {
|
|
461
461
|
space: 8
|
|
462
462
|
}, React__default.createElement("label", _extends({}, dataProps, {
|
|
463
|
-
className: styles$
|
|
463
|
+
className: styles$1G['toggle']
|
|
464
464
|
}), React__default.createElement("input", {
|
|
465
465
|
type: "checkbox",
|
|
466
466
|
checked: checked,
|
|
@@ -469,11 +469,11 @@ const Toggle = _ref => {
|
|
|
469
469
|
id: id,
|
|
470
470
|
"data-testid": testId
|
|
471
471
|
}), React__default.createElement("span", {
|
|
472
|
-
className: styles$
|
|
472
|
+
className: styles$1G['toggle__switch']
|
|
473
473
|
}), label && React__default.createElement("span", {
|
|
474
|
-
className: styles$
|
|
474
|
+
className: styles$1G['toggle__label']
|
|
475
475
|
}, label)), caption && React__default.createElement("span", {
|
|
476
|
-
className: styles$
|
|
476
|
+
className: styles$1G['toggle__caption']
|
|
477
477
|
}, caption));
|
|
478
478
|
};
|
|
479
479
|
|
|
@@ -491,7 +491,7 @@ const SPINNER_THEMES = {
|
|
|
491
491
|
PRIDE: 'pride'
|
|
492
492
|
};
|
|
493
493
|
|
|
494
|
-
var styles$
|
|
494
|
+
var styles$1F = {"spinner":"_memxT","rotator":"_QieGp","spinner--block":"_VoFzz","path":"_KSRP9","dash":"_RyBY2","path--mint":"_-sIZJ","path--disabled":"_3fox0","path--contrast":"_VteKz","path--pride":"_7rzsv"};
|
|
495
495
|
|
|
496
496
|
const Spinner = ({
|
|
497
497
|
size: _size = 28,
|
|
@@ -501,10 +501,10 @@ const Spinner = ({
|
|
|
501
501
|
}) => {
|
|
502
502
|
return React__default.createElement("div", {
|
|
503
503
|
className: classnames({
|
|
504
|
-
[styles$
|
|
504
|
+
[styles$1F['spinner--block']]: _block
|
|
505
505
|
})
|
|
506
506
|
}, React__default.createElement("svg", {
|
|
507
|
-
className: styles$
|
|
507
|
+
className: styles$1F['spinner'],
|
|
508
508
|
xmlns: "http://www.w3.org/2000/svg",
|
|
509
509
|
width: _size,
|
|
510
510
|
height: _size,
|
|
@@ -579,7 +579,7 @@ const Spinner = ({
|
|
|
579
579
|
offset: "1",
|
|
580
580
|
stopColor: "#760088"
|
|
581
581
|
}))), React__default.createElement("circle", {
|
|
582
|
-
className: classnames(styles$
|
|
582
|
+
className: classnames(styles$1F['path'], styles$1F[`path--${_theme}`]),
|
|
583
583
|
fill: "none",
|
|
584
584
|
strokeWidth: "6",
|
|
585
585
|
strokeLinecap: "round",
|
|
@@ -589,9 +589,9 @@ const Spinner = ({
|
|
|
589
589
|
})));
|
|
590
590
|
};
|
|
591
591
|
|
|
592
|
-
var styles$
|
|
592
|
+
var styles$1E = {"tooltip":"_Ydu2O"};
|
|
593
593
|
|
|
594
|
-
var styles$
|
|
594
|
+
var styles$1D = {"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"};
|
|
595
595
|
|
|
596
596
|
const TOOLTIP_THEME = {
|
|
597
597
|
BLACK: 'black',
|
|
@@ -785,24 +785,24 @@ const TooltipOverlay = ({
|
|
|
785
785
|
maxHeight,
|
|
786
786
|
zIndex: getZIndex('tooltip')
|
|
787
787
|
}),
|
|
788
|
-
className: classnames(styles$
|
|
789
|
-
[styles$
|
|
790
|
-
[styles$
|
|
791
|
-
[styles$
|
|
788
|
+
className: classnames(styles$1D['tooltip-overlay'], extraClass, {
|
|
789
|
+
[styles$1D['tooltip-overlay--visible']]: isVisible,
|
|
790
|
+
[styles$1D['tooltip-overlay--black-theme']]: theme === TOOLTIP_THEME.BLACK,
|
|
791
|
+
[styles$1D['tooltip-overlay--white-theme']]: theme === TOOLTIP_THEME.WHITE
|
|
792
792
|
}),
|
|
793
793
|
onMouseEnter: onFocusIn,
|
|
794
794
|
onMouseLeave: onFocusOut
|
|
795
795
|
}, React__default.createElement(Stack, {
|
|
796
796
|
space: 8
|
|
797
797
|
}, header && React__default.createElement("div", {
|
|
798
|
-
className: styles$
|
|
798
|
+
className: styles$1D['tooltip-overlay__header']
|
|
799
799
|
}, header), children)), React__default.createElement("div", {
|
|
800
|
-
className: classnames(styles$
|
|
801
|
-
[styles$
|
|
802
|
-
[styles$
|
|
803
|
-
[styles$
|
|
804
|
-
[styles$
|
|
805
|
-
[styles$
|
|
800
|
+
className: classnames(styles$1D['tooltip-overlay-arrow'], extraClass, {
|
|
801
|
+
[styles$1D['tooltip-overlay-arrow--visible']]: isVisible,
|
|
802
|
+
[styles$1D['tooltip-overlay-arrow--top']]: position.actualPlacement.placement === TOOLTIP_PLACEMENT.TOP,
|
|
803
|
+
[styles$1D['tooltip-overlay-arrow--bottom']]: position.actualPlacement.placement === TOOLTIP_PLACEMENT.BOTTOM,
|
|
804
|
+
[styles$1D['tooltip-overlay-arrow--black-theme']]: theme === TOOLTIP_THEME.BLACK,
|
|
805
|
+
[styles$1D['tooltip-overlay-arrow--white-theme']]: theme === TOOLTIP_THEME.WHITE
|
|
806
806
|
}),
|
|
807
807
|
style: _extends({}, position.arrow, {
|
|
808
808
|
zIndex: getZIndex('tooltip')
|
|
@@ -914,7 +914,7 @@ const TooltipElement = ({
|
|
|
914
914
|
}), overlayElement);
|
|
915
915
|
}
|
|
916
916
|
return React__default.createElement("div", _extends({
|
|
917
|
-
className: classnames(styles$
|
|
917
|
+
className: classnames(styles$1E['tooltip'])
|
|
918
918
|
}, commonProps, {
|
|
919
919
|
ref: containerRef
|
|
920
920
|
}), children, overlayElement);
|
|
@@ -924,7 +924,7 @@ const isTooltipCompatible = element => {
|
|
|
924
924
|
return React__default.isValidElement(element) && typeof element.type === 'string';
|
|
925
925
|
};
|
|
926
926
|
|
|
927
|
-
var styles$
|
|
927
|
+
var styles$1C = {"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"};
|
|
928
928
|
|
|
929
929
|
const BUTTON_SIZES = {
|
|
930
930
|
FULL_WIDTH: 'full-width',
|
|
@@ -1019,24 +1019,24 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1019
1019
|
onBlur: onBlur,
|
|
1020
1020
|
onFocus: onFocus,
|
|
1021
1021
|
onKeyDown: onKeyDown,
|
|
1022
|
-
className: classnames(styles$
|
|
1023
|
-
[styles$
|
|
1024
|
-
[styles$
|
|
1025
|
-
[styles$
|
|
1026
|
-
[styles$
|
|
1027
|
-
[styles$
|
|
1028
|
-
[styles$
|
|
1029
|
-
[styles$
|
|
1030
|
-
[styles$
|
|
1031
|
-
[styles$
|
|
1032
|
-
[styles$
|
|
1033
|
-
[styles$
|
|
1034
|
-
[styles$
|
|
1035
|
-
[styles$
|
|
1036
|
-
[styles$
|
|
1037
|
-
[styles$
|
|
1038
|
-
[styles$
|
|
1039
|
-
[styles$
|
|
1022
|
+
className: classnames(styles$1C['button'], {
|
|
1023
|
+
[styles$1C['button--default']]: theme === BUTTON_THEMES.DEFAULT,
|
|
1024
|
+
[styles$1C['button--primary']]: theme === BUTTON_THEMES.PRIMARY,
|
|
1025
|
+
[styles$1C['button--danger']]: theme === BUTTON_THEMES.DANGER,
|
|
1026
|
+
[styles$1C['button--upsell']]: theme === BUTTON_THEMES.UPSELL,
|
|
1027
|
+
[styles$1C['button--marketing']]: theme === BUTTON_THEMES.MARKETING,
|
|
1028
|
+
[styles$1C['button--hollow']]: theme === BUTTON_THEMES.HOLLOW,
|
|
1029
|
+
[styles$1C['button--hollow-contrast']]: theme === BUTTON_THEMES.HOLLOW_CONTRAST,
|
|
1030
|
+
[styles$1C['button--link-primary']]: theme === BUTTON_THEMES.LINK_PRIMARY,
|
|
1031
|
+
[styles$1C['button--link-danger']]: theme === BUTTON_THEMES.LINK_DANGER,
|
|
1032
|
+
[styles$1C['button--link-upsell']]: theme === BUTTON_THEMES.LINK_UPSELL,
|
|
1033
|
+
[styles$1C['button--link-toolbar']]: theme === BUTTON_THEMES.LINK_TOOLBAR,
|
|
1034
|
+
[styles$1C['button--link-contrast']]: theme === BUTTON_THEMES.LINK_CONTRAST,
|
|
1035
|
+
[styles$1C['button--link-icon']]: theme === BUTTON_THEMES.LINK_ICON,
|
|
1036
|
+
[styles$1C['button--loading']]: loading,
|
|
1037
|
+
[styles$1C['button--icon-only']]: isIconOnly,
|
|
1038
|
+
[styles$1C['button--size-min-width-100']]: size === BUTTON_SIZES.MIN_WIDTH_100,
|
|
1039
|
+
[styles$1C['button--size-full-width']]: size === BUTTON_SIZES.FULL_WIDTH
|
|
1040
1040
|
}),
|
|
1041
1041
|
type: type,
|
|
1042
1042
|
disabled: disabled || loading,
|
|
@@ -1050,7 +1050,7 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1050
1050
|
space: 8,
|
|
1051
1051
|
alignItems: "center"
|
|
1052
1052
|
}, children), loading && React__default.createElement("div", {
|
|
1053
|
-
className: styles$
|
|
1053
|
+
className: styles$1C['button__spinner']
|
|
1054
1054
|
}, React__default.createElement(Spinner, {
|
|
1055
1055
|
theme: contrastSpinner.includes(theme) ? SPINNER_THEMES.CONTRAST : SPINNER_THEMES.DISABLED
|
|
1056
1056
|
})));
|
|
@@ -1060,7 +1060,7 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1060
1060
|
overlay: title,
|
|
1061
1061
|
ref: ref
|
|
1062
1062
|
}, title && disabled ? React__default.createElement("div", {
|
|
1063
|
-
className: styles$
|
|
1063
|
+
className: styles$1C['disabled-button-wrapper']
|
|
1064
1064
|
}, ButtonElementResult) : ButtonElementResult)
|
|
1065
1065
|
);
|
|
1066
1066
|
};
|
|
@@ -10126,20 +10126,20 @@ const IconGreatMonochromatic = forwardRef((_ref, ref) => {
|
|
|
10126
10126
|
});
|
|
10127
10127
|
IconGreatMonochromatic.displayName = 'IconGreatMonochromatic';
|
|
10128
10128
|
|
|
10129
|
-
var styles$
|
|
10129
|
+
var styles$1B = {"pagination-controls":"_S1co-"};
|
|
10130
10130
|
|
|
10131
|
-
var styles$
|
|
10131
|
+
var styles$1A = {"keyboard-key":"_sgd9a","keyboard-key--light":"_8zg4j","keyboard-key__character":"_GAIig"};
|
|
10132
10132
|
|
|
10133
10133
|
const KeyboardKey = ({
|
|
10134
10134
|
children,
|
|
10135
10135
|
theme: _theme = 'dark'
|
|
10136
10136
|
}) => {
|
|
10137
10137
|
return React__default.createElement("span", {
|
|
10138
|
-
className: classnames(styles$
|
|
10139
|
-
[styles$
|
|
10138
|
+
className: classnames(styles$1A['keyboard-key'], {
|
|
10139
|
+
[styles$1A['keyboard-key--light']]: _theme === 'light'
|
|
10140
10140
|
})
|
|
10141
10141
|
}, React__default.createElement("span", {
|
|
10142
|
-
className: styles$
|
|
10142
|
+
className: styles$1A['keyboard-key__character']
|
|
10143
10143
|
}, children));
|
|
10144
10144
|
};
|
|
10145
10145
|
|
|
@@ -10259,6 +10259,9 @@ var ActionList$1 = {
|
|
|
10259
10259
|
var PhoneField$1 = {
|
|
10260
10260
|
malformedPhoneNumber: "Please enter a valid phone number."
|
|
10261
10261
|
};
|
|
10262
|
+
var ColorField$1 = {
|
|
10263
|
+
customColorButtonLabel: "Custom color"
|
|
10264
|
+
};
|
|
10262
10265
|
var en = {
|
|
10263
10266
|
PaginationControls: PaginationControls$1,
|
|
10264
10267
|
AsyncSelectField: AsyncSelectField$1,
|
|
@@ -10269,7 +10272,8 @@ var en = {
|
|
|
10269
10272
|
Card: Card$1,
|
|
10270
10273
|
DataTable: DataTable$1,
|
|
10271
10274
|
ActionList: ActionList$1,
|
|
10272
|
-
PhoneField: PhoneField$1
|
|
10275
|
+
PhoneField: PhoneField$1,
|
|
10276
|
+
ColorField: ColorField$1
|
|
10273
10277
|
};
|
|
10274
10278
|
|
|
10275
10279
|
const initialValue$2 = {
|
|
@@ -10347,7 +10351,7 @@ const PaginationControls = _ref => {
|
|
|
10347
10351
|
}
|
|
10348
10352
|
});
|
|
10349
10353
|
return React__default.createElement("div", _extends({}, dataProps, {
|
|
10350
|
-
className: styles$
|
|
10354
|
+
className: styles$1B['pagination-controls'],
|
|
10351
10355
|
"data-testid": testId
|
|
10352
10356
|
}), React__default.createElement(Button, {
|
|
10353
10357
|
disabled: !hasPrevious,
|
|
@@ -10377,7 +10381,7 @@ const LINK_TARGET = {
|
|
|
10377
10381
|
BLANK: '_blank'
|
|
10378
10382
|
};
|
|
10379
10383
|
|
|
10380
|
-
var styles$
|
|
10384
|
+
var styles$1z = {"link":"_EiQ4c","link--contrast":"_weJDR"};
|
|
10381
10385
|
|
|
10382
10386
|
const _excluded$bq = ["href", "target", "theme", "onClick", "children"];
|
|
10383
10387
|
const Link = _ref => {
|
|
@@ -10394,9 +10398,9 @@ const Link = _ref => {
|
|
|
10394
10398
|
} = getDataProps(otherProps);
|
|
10395
10399
|
const ref = React__default.useRef(null);
|
|
10396
10400
|
return React__default.createElement("a", _extends({}, dataProps, {
|
|
10397
|
-
className: classnames(styles$
|
|
10398
|
-
[styles$
|
|
10399
|
-
[styles$
|
|
10401
|
+
className: classnames(styles$1z['link'], {
|
|
10402
|
+
[styles$1z['link--primary']]: theme === LINK_THEME.PRIMARY,
|
|
10403
|
+
[styles$1z['link--contrast']]: theme === LINK_THEME.CONTRAST
|
|
10400
10404
|
}),
|
|
10401
10405
|
href: href,
|
|
10402
10406
|
target: target,
|
|
@@ -10418,7 +10422,7 @@ const DropdownContext = React__default.createContext({
|
|
|
10418
10422
|
});
|
|
10419
10423
|
const useDropdownContext = () => React__default.useContext(DropdownContext);
|
|
10420
10424
|
|
|
10421
|
-
var styles$
|
|
10425
|
+
var styles$1y = {"dropdown-pane":"_sp-pT"};
|
|
10422
10426
|
|
|
10423
10427
|
const DROPDOWN_PANE_PADDING = 14;
|
|
10424
10428
|
const calculateOverlayPosition$1 = (triggerPosition, triggerOffsetHeight, panePosition, alignment) => {
|
|
@@ -10554,8 +10558,8 @@ const PaneOverlay = ({
|
|
|
10554
10558
|
useKeyPress(['Escape'], onToggleDropdown);
|
|
10555
10559
|
const overflow = maxHeight ? 'auto' : undefined;
|
|
10556
10560
|
return React__default.createElement("div", {
|
|
10557
|
-
className: classnames(styles$
|
|
10558
|
-
[styles$
|
|
10561
|
+
className: classnames(styles$1y['dropdown-pane'], {
|
|
10562
|
+
[styles$1y['dropdown-pane--with-padding']]: true,
|
|
10559
10563
|
'dropdown-pane--custom-width': width !== undefined
|
|
10560
10564
|
}),
|
|
10561
10565
|
style: _extends({}, position, {
|
|
@@ -10586,7 +10590,7 @@ const getKeyboardFocusableElements = element => {
|
|
|
10586
10590
|
});
|
|
10587
10591
|
};
|
|
10588
10592
|
|
|
10589
|
-
var styles$
|
|
10593
|
+
var styles$1x = {"dropdown__trigger":"_AktVc"};
|
|
10590
10594
|
|
|
10591
10595
|
const DROPDOWN_ALIGNEMNT = {
|
|
10592
10596
|
LEFT: 'left',
|
|
@@ -10597,7 +10601,7 @@ const DROPDOWN_TRIGGER = {
|
|
|
10597
10601
|
CLICK: 'click'
|
|
10598
10602
|
};
|
|
10599
10603
|
|
|
10600
|
-
var styles$
|
|
10604
|
+
var styles$1w = {"label":"_zv4ua","label--truncate":"_FPyID"};
|
|
10601
10605
|
|
|
10602
10606
|
const isEllipsisActive = e => {
|
|
10603
10607
|
return e.offsetWidth < e.scrollWidth;
|
|
@@ -10646,8 +10650,8 @@ const Label = ({
|
|
|
10646
10650
|
const LabelElement = React__default.createElement("label", {
|
|
10647
10651
|
htmlFor: htmlFor,
|
|
10648
10652
|
id: labelId,
|
|
10649
|
-
className: classnames(styles$
|
|
10650
|
-
[styles$
|
|
10653
|
+
className: classnames(styles$1w['label'], {
|
|
10654
|
+
[styles$1w['label--truncate']]: shouldTruncate
|
|
10651
10655
|
})
|
|
10652
10656
|
}, children);
|
|
10653
10657
|
if (showTooltip) {
|
|
@@ -10659,7 +10663,7 @@ const Label = ({
|
|
|
10659
10663
|
return LabelElement;
|
|
10660
10664
|
};
|
|
10661
10665
|
|
|
10662
|
-
var styles$
|
|
10666
|
+
var styles$1v = {"caption":"_Qrxg5"};
|
|
10663
10667
|
|
|
10664
10668
|
const Caption = ({
|
|
10665
10669
|
fieldId,
|
|
@@ -10667,11 +10671,11 @@ const Caption = ({
|
|
|
10667
10671
|
}) => {
|
|
10668
10672
|
return React__default.createElement("div", {
|
|
10669
10673
|
id: fieldId && `${fieldId}-describer`,
|
|
10670
|
-
className: styles$
|
|
10674
|
+
className: styles$1v['caption']
|
|
10671
10675
|
}, children);
|
|
10672
10676
|
};
|
|
10673
10677
|
|
|
10674
|
-
var styles$
|
|
10678
|
+
var styles$1u = {"error-message":"_eS4YO"};
|
|
10675
10679
|
|
|
10676
10680
|
const ErrorMessage = ({
|
|
10677
10681
|
fieldId,
|
|
@@ -10680,7 +10684,7 @@ const ErrorMessage = ({
|
|
|
10680
10684
|
}) => {
|
|
10681
10685
|
return React__default.createElement("div", {
|
|
10682
10686
|
id: fieldId && `${fieldId}-error-message`,
|
|
10683
|
-
className: styles$
|
|
10687
|
+
className: styles$1u['error-message'],
|
|
10684
10688
|
"data-testid": testId
|
|
10685
10689
|
}, React__default.createElement(Inline, {
|
|
10686
10690
|
space: 8,
|
|
@@ -10717,7 +10721,7 @@ const ALIGNMENTS = {
|
|
|
10717
10721
|
JUSTIFY: 'justify'
|
|
10718
10722
|
};
|
|
10719
10723
|
|
|
10720
|
-
var styles$
|
|
10724
|
+
var styles$1t = {"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"};
|
|
10721
10725
|
|
|
10722
10726
|
const _excluded$bp = ["children", "as", "emphasis", "alignment", "color", "testId", "textWrap"];
|
|
10723
10727
|
const TextComponent = (_ref, ref) => {
|
|
@@ -10745,21 +10749,21 @@ const TextComponent = (_ref, ref) => {
|
|
|
10745
10749
|
color: getColor(color),
|
|
10746
10750
|
textWrap
|
|
10747
10751
|
}, positionStyles),
|
|
10748
|
-
className: classnames(styles$
|
|
10749
|
-
[styles$
|
|
10750
|
-
[styles$
|
|
10751
|
-
[styles$
|
|
10752
|
-
[styles$
|
|
10753
|
-
[styles$
|
|
10754
|
-
[styles$
|
|
10755
|
-
[styles$
|
|
10756
|
-
[styles$
|
|
10757
|
-
[styles$
|
|
10758
|
-
[styles$
|
|
10759
|
-
[styles$
|
|
10760
|
-
[styles$
|
|
10761
|
-
[styles$
|
|
10762
|
-
[styles$
|
|
10752
|
+
className: classnames(styles$1t['text'], {
|
|
10753
|
+
[styles$1t['text--bold']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.BOLD),
|
|
10754
|
+
[styles$1t['text--italic']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.ITALIC),
|
|
10755
|
+
[styles$1t['text--underline']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.UNDERLINE),
|
|
10756
|
+
[styles$1t['text--dotted-underline']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.DOTTED_UNDERLINE),
|
|
10757
|
+
[styles$1t['text--monospace']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.MONOSPACE),
|
|
10758
|
+
[styles$1t['text--line-through']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.STRIKETHROUGH),
|
|
10759
|
+
[styles$1t['text--align-left']]: alignment === ALIGNMENTS.LEFT,
|
|
10760
|
+
[styles$1t['text--align-right']]: alignment === ALIGNMENTS.RIGHT,
|
|
10761
|
+
[styles$1t['text--align-center']]: alignment === ALIGNMENTS.CENTER,
|
|
10762
|
+
[styles$1t['text--align-justify']]: alignment === ALIGNMENTS.JUSTIFY,
|
|
10763
|
+
[styles$1t['text__body']]: as === TEXT_TYPES.BODY,
|
|
10764
|
+
[styles$1t['text__insight']]: as === TEXT_TYPES.INSIGHT,
|
|
10765
|
+
[styles$1t['text__caption']]: as === TEXT_TYPES.CAPTION,
|
|
10766
|
+
[styles$1t['text__span']]: as === TEXT_TYPES.SPAN
|
|
10763
10767
|
}),
|
|
10764
10768
|
'data-testid': testId
|
|
10765
10769
|
}, dataProps, other, {
|
|
@@ -10776,7 +10780,7 @@ const Bold = ({
|
|
|
10776
10780
|
children
|
|
10777
10781
|
}) => {
|
|
10778
10782
|
return React__default.createElement("span", {
|
|
10779
|
-
className: classnames(styles$
|
|
10783
|
+
className: classnames(styles$1t['text--bold'], styles$1t['text'])
|
|
10780
10784
|
}, children);
|
|
10781
10785
|
};
|
|
10782
10786
|
|
|
@@ -10784,7 +10788,7 @@ const Underline = ({
|
|
|
10784
10788
|
children
|
|
10785
10789
|
}) => {
|
|
10786
10790
|
return React__default.createElement("span", {
|
|
10787
|
-
className: classnames(styles$
|
|
10791
|
+
className: classnames(styles$1t['text--underline'], styles$1t['text'])
|
|
10788
10792
|
}, children);
|
|
10789
10793
|
};
|
|
10790
10794
|
|
|
@@ -10792,7 +10796,7 @@ const Italic = ({
|
|
|
10792
10796
|
children
|
|
10793
10797
|
}) => {
|
|
10794
10798
|
return React__default.createElement("span", {
|
|
10795
|
-
className: classnames(styles$
|
|
10799
|
+
className: classnames(styles$1t['text--italic'], styles$1t['text'])
|
|
10796
10800
|
}, children);
|
|
10797
10801
|
};
|
|
10798
10802
|
|
|
@@ -10929,7 +10933,7 @@ const useFieldControllers = ({
|
|
|
10929
10933
|
return controllers;
|
|
10930
10934
|
};
|
|
10931
10935
|
|
|
10932
|
-
var styles$
|
|
10936
|
+
var styles$1s = {"text-field":"_G6LsE","text-field--invalid":"_2ZYtt","text-field--prefixed":"_rWp7H","text-field--suffixed":"_Xq8xX"};
|
|
10933
10937
|
|
|
10934
10938
|
const _excluded$bn = ["autoComplete", "autoFocus", "defaultValue", "disabled", "error", "id", "maxLength", "name", "caption", "label", "onBlur", "onChange", "onFocus", "onKeyDown", "placeholder", "value", "ref", "testId"];
|
|
10935
10939
|
const useTextField = _ref => {
|
|
@@ -10970,8 +10974,8 @@ const useTextField = _ref => {
|
|
|
10970
10974
|
'aria-invalid': hasError,
|
|
10971
10975
|
autoComplete,
|
|
10972
10976
|
autoFocus,
|
|
10973
|
-
className: classnames(styles$
|
|
10974
|
-
[styles$
|
|
10977
|
+
className: classnames(styles$1s['text-field'], {
|
|
10978
|
+
[styles$1s['text-field--invalid']]: hasError
|
|
10975
10979
|
}),
|
|
10976
10980
|
'data-testid': testId,
|
|
10977
10981
|
disabled,
|
|
@@ -11002,7 +11006,7 @@ const useTextField = _ref => {
|
|
|
11002
11006
|
};
|
|
11003
11007
|
};
|
|
11004
11008
|
|
|
11005
|
-
var styles$
|
|
11009
|
+
var styles$1r = {"affix-container":"_F8QOB","prefix":"_yPPIy","suffix":"_Y3yFd","affix-container--prefixed":"_vU4SU","affix-container--suffixed":"_4rDXi"};
|
|
11006
11010
|
|
|
11007
11011
|
const AffixContainer = ({
|
|
11008
11012
|
prefix,
|
|
@@ -11037,19 +11041,19 @@ const AffixContainer = ({
|
|
|
11037
11041
|
if (!hasPrefix && !hasSuffix) {
|
|
11038
11042
|
return children;
|
|
11039
11043
|
}
|
|
11040
|
-
const classes = classnames(styles$
|
|
11041
|
-
[styles$
|
|
11042
|
-
[styles$
|
|
11044
|
+
const classes = classnames(styles$1r['affix-container'], {
|
|
11045
|
+
[styles$1r['affix-container--prefixed']]: hasPrefix,
|
|
11046
|
+
[styles$1r['affix-container--suffixed']]: hasSuffix
|
|
11043
11047
|
});
|
|
11044
11048
|
return React__default.createElement("div", {
|
|
11045
11049
|
className: classes,
|
|
11046
11050
|
ref: container,
|
|
11047
11051
|
"data-testid": testId
|
|
11048
11052
|
}, hasPrefix && React__default.createElement("div", {
|
|
11049
|
-
className: styles$
|
|
11053
|
+
className: styles$1r['prefix'],
|
|
11050
11054
|
ref: prefixElement
|
|
11051
11055
|
}, prefix), children, hasSuffix && React__default.createElement("div", {
|
|
11052
|
-
className: styles$
|
|
11056
|
+
className: styles$1r['suffix'],
|
|
11053
11057
|
ref: suffixElement
|
|
11054
11058
|
}, suffix));
|
|
11055
11059
|
};
|
|
@@ -11223,7 +11227,9 @@ const Dropdown = ({
|
|
|
11223
11227
|
const focusedElement = document.activeElement;
|
|
11224
11228
|
// Set the focus on the first focusable element in the pane if the focus is not already on the pane
|
|
11225
11229
|
if (!((_paneRef$current = paneRef.current) != null && _paneRef$current.contains(focusedElement))) {
|
|
11226
|
-
focusableElements[0].focus(
|
|
11230
|
+
focusableElements[0].focus({
|
|
11231
|
+
preventScroll: true
|
|
11232
|
+
});
|
|
11227
11233
|
}
|
|
11228
11234
|
}, 0);
|
|
11229
11235
|
} else {
|
|
@@ -11256,7 +11262,7 @@ const Dropdown = ({
|
|
|
11256
11262
|
paneRef
|
|
11257
11263
|
}
|
|
11258
11264
|
}, triggerIsKnownButton ? React__default.cloneElement(trigger, _extends({}, trigger.props, triggerProps)) : React__default.createElement("button", _extends({}, triggerProps, {
|
|
11259
|
-
className: styles$
|
|
11265
|
+
className: styles$1x['dropdown__trigger'],
|
|
11260
11266
|
ref: updatedRef,
|
|
11261
11267
|
onFocus: handleFocus
|
|
11262
11268
|
}), trigger), React__default.createElement(DropdownPane, {
|
|
@@ -11270,7 +11276,7 @@ const Dropdown = ({
|
|
|
11270
11276
|
}, children));
|
|
11271
11277
|
};
|
|
11272
11278
|
|
|
11273
|
-
var styles$
|
|
11279
|
+
var styles$1q = {"dropdown-list":"_91hvH","dropdown-list__item":"_NrB4V","dropdown-list__item--hover":"_aMs9c"};
|
|
11274
11280
|
|
|
11275
11281
|
const findNextActiveIndex = (items, startAt) => {
|
|
11276
11282
|
let startIndex = 0;
|
|
@@ -11419,21 +11425,31 @@ const checkIsComponent = (element, config) => {
|
|
|
11419
11425
|
}
|
|
11420
11426
|
return isComponent;
|
|
11421
11427
|
};
|
|
11428
|
+
const updateIconSize = child => {
|
|
11429
|
+
var _child$type$displayNa, _child$type;
|
|
11430
|
+
const isIcon = (_child$type$displayNa = (_child$type = child.type) == null || (_child$type = _child$type.displayName) == null ? void 0 : _child$type.startsWith('Icon')) != null ? _child$type$displayNa : false;
|
|
11431
|
+
if (!isIcon) {
|
|
11432
|
+
return child;
|
|
11433
|
+
}
|
|
11434
|
+
return React__default.cloneElement(child, _extends({}, child.props, {
|
|
11435
|
+
size: 'small'
|
|
11436
|
+
}));
|
|
11437
|
+
};
|
|
11422
11438
|
|
|
11423
|
-
var styles$
|
|
11439
|
+
var styles$1p = {"dropdown-list-divider":"_ISJ4M"};
|
|
11424
11440
|
|
|
11425
11441
|
const DropdownListDivider = ({
|
|
11426
11442
|
testId
|
|
11427
11443
|
}) => {
|
|
11428
11444
|
return React__default.createElement("div", {
|
|
11429
|
-
className: styles$
|
|
11445
|
+
className: styles$1p['dropdown-list-divider'],
|
|
11430
11446
|
"data-testid": testId
|
|
11431
11447
|
});
|
|
11432
11448
|
};
|
|
11433
11449
|
|
|
11434
|
-
var styles$
|
|
11450
|
+
var styles$1o = {"dropdown-list-item":"_W12mF","dropdown-list-item--selected":"_Zu9cD","dropdown-list-item__content":"_xS6fS","dropdown-list-item__caption":"_7EI7m","dropdown-list-item--disabled":"_0OB5b","dropdown-list-item__prefix":"_dpo67","dropdown-list-item__suffix":"_ObP6B","dropdown-list-item__container":"_IBrNj","dropdown-list-item__link":"_vC0uY","dropdown-list-item__suffix-spot":"_UA23u","dropdown-list-item__suffix-button":"_rvaeI"};
|
|
11435
11451
|
|
|
11436
|
-
var styles$
|
|
11452
|
+
var styles$1n = {"dropdown-submenu":"_X4fIx"};
|
|
11437
11453
|
|
|
11438
11454
|
const DropdownSubmenu = forwardRef(({
|
|
11439
11455
|
children,
|
|
@@ -11453,7 +11469,7 @@ const DropdownSubmenu = forwardRef(({
|
|
|
11453
11469
|
// so no keyboard handler is needed.
|
|
11454
11470
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
11455
11471
|
React__default.createElement("div", {
|
|
11456
|
-
className: styles$
|
|
11472
|
+
className: styles$1n['dropdown-submenu'],
|
|
11457
11473
|
"data-submenu-direction": direction,
|
|
11458
11474
|
style: position || DEFAULT_POSITION,
|
|
11459
11475
|
onMouseEnter: openSubmenu,
|
|
@@ -11646,20 +11662,20 @@ const DropdownListItem = ({
|
|
|
11646
11662
|
onClick && onClick(e);
|
|
11647
11663
|
};
|
|
11648
11664
|
const childrenContainer = React__default.createElement("div", {
|
|
11649
|
-
className: styles$
|
|
11665
|
+
className: styles$1o['dropdown-list-item__container']
|
|
11650
11666
|
}, prefix && React__default.createElement("div", {
|
|
11651
|
-
className: styles$
|
|
11667
|
+
className: styles$1o['dropdown-list-item__prefix']
|
|
11652
11668
|
}, prefix), React__default.createElement("div", {
|
|
11653
|
-
className: styles$
|
|
11669
|
+
className: styles$1o['dropdown-list-item__content']
|
|
11654
11670
|
}, React__default.createElement(Stack, {
|
|
11655
11671
|
space: 0,
|
|
11656
11672
|
flex: [1]
|
|
11657
11673
|
}, children, caption && React__default.createElement("div", {
|
|
11658
|
-
className: styles$
|
|
11674
|
+
className: styles$1o['dropdown-list-item__caption']
|
|
11659
11675
|
}, caption))), (suffix || submenu) && React__default.createElement("div", {
|
|
11660
|
-
className: styles$
|
|
11676
|
+
className: styles$1o['dropdown-list-item__suffix']
|
|
11661
11677
|
}, suffix && _openSubmenuOnSuffixClick && submenu ? React__default.createElement("button", {
|
|
11662
|
-
className: styles$
|
|
11678
|
+
className: styles$1o['dropdown-list-item__suffix-button'],
|
|
11663
11679
|
onClick: e => {
|
|
11664
11680
|
e.preventDefault();
|
|
11665
11681
|
e.stopPropagation();
|
|
@@ -11670,19 +11686,19 @@ const DropdownListItem = ({
|
|
|
11670
11686
|
"aria-label": "Open submenu",
|
|
11671
11687
|
disabled: disabled
|
|
11672
11688
|
}, suffix) : suffix, submenu && !suffix && React__default.createElement("div", {
|
|
11673
|
-
className: styles$
|
|
11689
|
+
className: styles$1o['dropdown-list-item__suffix-spot']
|
|
11674
11690
|
}), submenu && !_openSubmenuOnSuffixClick && React__default.createElement(IconChevronRight, {
|
|
11675
11691
|
size: "small"
|
|
11676
11692
|
})));
|
|
11677
11693
|
const linkItem = href && (_reloadDocument ? React__default.createElement("a", {
|
|
11678
11694
|
href: href,
|
|
11679
|
-
className: styles$
|
|
11695
|
+
className: styles$1o['dropdown-list-item__link'],
|
|
11680
11696
|
target: _target,
|
|
11681
11697
|
tabIndex: -1
|
|
11682
11698
|
}, childrenContainer) : React__default.createElement(Link$1, {
|
|
11683
11699
|
to: href,
|
|
11684
11700
|
target: _target,
|
|
11685
|
-
className: styles$
|
|
11701
|
+
className: styles$1o['dropdown-list-item__link'],
|
|
11686
11702
|
reloadDocument: false,
|
|
11687
11703
|
tabIndex: -1,
|
|
11688
11704
|
"data-testid": testId
|
|
@@ -11690,9 +11706,9 @@ const DropdownListItem = ({
|
|
|
11690
11706
|
return (
|
|
11691
11707
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
11692
11708
|
React__default.createElement("div", {
|
|
11693
|
-
className: classnames(styles$
|
|
11694
|
-
[styles$
|
|
11695
|
-
[styles$
|
|
11709
|
+
className: classnames(styles$1o['dropdown-list-item'], {
|
|
11710
|
+
[styles$1o['dropdown-list-item--selected']]: selected,
|
|
11711
|
+
[styles$1o['dropdown-list-item--disabled']]: disabled
|
|
11696
11712
|
}),
|
|
11697
11713
|
onMouseDown: e => e.preventDefault(),
|
|
11698
11714
|
onClick: handleClick,
|
|
@@ -11835,7 +11851,7 @@ const DropdownList = ({
|
|
|
11835
11851
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11836
11852
|
}, [highlightItemIndex]);
|
|
11837
11853
|
return React__default.createElement("ul", {
|
|
11838
|
-
className: styles$
|
|
11854
|
+
className: styles$1q['dropdown-list'],
|
|
11839
11855
|
"data-testid": testId,
|
|
11840
11856
|
ref: listRef
|
|
11841
11857
|
}, React__default.Children.toArray(children).filter(Boolean).map((child, index) => {
|
|
@@ -11847,8 +11863,8 @@ const DropdownList = ({
|
|
|
11847
11863
|
const divider = (_items$index2 = items[index]) == null ? void 0 : _items$index2.divider;
|
|
11848
11864
|
return React__default.createElement("li", {
|
|
11849
11865
|
key: index,
|
|
11850
|
-
className: classnames(styles$
|
|
11851
|
-
[styles$
|
|
11866
|
+
className: classnames(styles$1q['dropdown-list__item'], {
|
|
11867
|
+
[styles$1q['dropdown-list__item--hover']]: focusedItem === index && isInteractive
|
|
11852
11868
|
}),
|
|
11853
11869
|
onMouseEnter: divider ? undefined : () => setFocusOnItem(index),
|
|
11854
11870
|
role: divider ? 'separator' : 'menuitem'
|
|
@@ -11872,7 +11888,7 @@ const KebabMenu = ({
|
|
|
11872
11888
|
}, action.label))));
|
|
11873
11889
|
};
|
|
11874
11890
|
|
|
11875
|
-
var styles$
|
|
11891
|
+
var styles$1m = {"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"};
|
|
11876
11892
|
|
|
11877
11893
|
const CardContext = createContext({
|
|
11878
11894
|
isCardMounted: false
|
|
@@ -11908,28 +11924,28 @@ const Card = _ref => {
|
|
|
11908
11924
|
isCardMounted: true
|
|
11909
11925
|
}
|
|
11910
11926
|
}, React__default.createElement("div", _extends({
|
|
11911
|
-
className: classnames(styles$
|
|
11927
|
+
className: classnames(styles$1m['card']),
|
|
11912
11928
|
style: positionStyles
|
|
11913
11929
|
}, dataProps), onClick ? React__default.createElement("button", {
|
|
11914
|
-
className: classnames(styles$
|
|
11915
|
-
[styles$
|
|
11916
|
-
[styles$
|
|
11917
|
-
[styles$
|
|
11930
|
+
className: classnames(styles$1m['card__body'], styles$1m['card__body--interactive'], {
|
|
11931
|
+
[styles$1m['card__body--disabled']]: disabled,
|
|
11932
|
+
[styles$1m['card__body--focus']]: isSelected,
|
|
11933
|
+
[styles$1m['card__body--with-kebab']]: actions
|
|
11918
11934
|
}),
|
|
11919
11935
|
"data-testid": testId,
|
|
11920
11936
|
tabIndex: 0,
|
|
11921
11937
|
onClick: onClick,
|
|
11922
11938
|
disabled: disabled
|
|
11923
11939
|
}, children) : React__default.createElement("div", {
|
|
11924
|
-
className: classnames(styles$
|
|
11925
|
-
[styles$
|
|
11926
|
-
[styles$
|
|
11927
|
-
[styles$
|
|
11940
|
+
className: classnames(styles$1m['card__body'], {
|
|
11941
|
+
[styles$1m['card__body--disabled']]: disabled,
|
|
11942
|
+
[styles$1m['card__body--focus']]: isSelected,
|
|
11943
|
+
[styles$1m['card__body--with-kebab']]: actions
|
|
11928
11944
|
}),
|
|
11929
11945
|
"data-testid": testId
|
|
11930
11946
|
}, children), actions && React__default.createElement("div", {
|
|
11931
|
-
className: classnames(styles$
|
|
11932
|
-
[styles$
|
|
11947
|
+
className: classnames(styles$1m['card__kebab'], {
|
|
11948
|
+
[styles$1m['card__kebab--disabled']]: disabled
|
|
11933
11949
|
})
|
|
11934
11950
|
}, React__default.createElement(KebabMenu, {
|
|
11935
11951
|
actions: onClose ? actions.concat({
|
|
@@ -11938,8 +11954,8 @@ const Card = _ref => {
|
|
|
11938
11954
|
onAction: onClose
|
|
11939
11955
|
}) : actions
|
|
11940
11956
|
})), !actions && onClose && React__default.createElement("div", {
|
|
11941
|
-
className: classnames(styles$
|
|
11942
|
-
[styles$
|
|
11957
|
+
className: classnames(styles$1m['card__close'], {
|
|
11958
|
+
[styles$1m['card__close--disabled']]: disabled
|
|
11943
11959
|
})
|
|
11944
11960
|
}, React__default.createElement(Button, {
|
|
11945
11961
|
theme: "link-icon",
|
|
@@ -11947,7 +11963,7 @@ const Card = _ref => {
|
|
|
11947
11963
|
}, React__default.createElement(IconTimes, null)))));
|
|
11948
11964
|
};
|
|
11949
11965
|
|
|
11950
|
-
var styles$
|
|
11966
|
+
var styles$1l = {"callout-card__close":"_VxmQm","callout-card__header":"_3RrQI"};
|
|
11951
11967
|
|
|
11952
11968
|
/**
|
|
11953
11969
|
* @deprecated Use `<EmptyState as='card' />` instead
|
|
@@ -11968,7 +11984,7 @@ const CalloutCard = ({
|
|
|
11968
11984
|
}, React__default.createElement(Stack, {
|
|
11969
11985
|
space: 12
|
|
11970
11986
|
}, React__default.createElement("div", {
|
|
11971
|
-
className: styles$
|
|
11987
|
+
className: styles$1l['callout-card__header']
|
|
11972
11988
|
}, React__default.createElement(Text, {
|
|
11973
11989
|
as: "body",
|
|
11974
11990
|
color: "primary-color"
|
|
@@ -11983,7 +11999,7 @@ const CalloutCard = ({
|
|
|
11983
11999
|
alt: String(title) + String(header),
|
|
11984
12000
|
width: "354px"
|
|
11985
12001
|
})), onClose && React__default.createElement("div", {
|
|
11986
|
-
className: styles$
|
|
12002
|
+
className: styles$1l['callout-card__close']
|
|
11987
12003
|
}, React__default.createElement(Button, {
|
|
11988
12004
|
theme: "link-icon",
|
|
11989
12005
|
onClick: onClose
|
|
@@ -11999,7 +12015,7 @@ const Breadcrumbs = ({
|
|
|
11999
12015
|
}, children);
|
|
12000
12016
|
};
|
|
12001
12017
|
|
|
12002
|
-
var styles$
|
|
12018
|
+
var styles$1k = {"breadcrumb-item":"_fo7-A"};
|
|
12003
12019
|
|
|
12004
12020
|
const BreadcrumbItem = ({
|
|
12005
12021
|
href,
|
|
@@ -12013,25 +12029,25 @@ const BreadcrumbItem = ({
|
|
|
12013
12029
|
// This is neessary to support older versions of react-router-dom
|
|
12014
12030
|
return _reloadDocument ? React__default.createElement("a", {
|
|
12015
12031
|
href: href,
|
|
12016
|
-
className: styles$
|
|
12032
|
+
className: styles$1k['breadcrumb-item'],
|
|
12017
12033
|
"data-testid": testId
|
|
12018
12034
|
}, content) : React__default.createElement(Link$1, {
|
|
12019
12035
|
to: href,
|
|
12020
|
-
className: styles$
|
|
12036
|
+
className: styles$1k['breadcrumb-item'],
|
|
12021
12037
|
relative: "path",
|
|
12022
12038
|
reloadDocument: _reloadDocument,
|
|
12023
12039
|
"data-testid": testId
|
|
12024
12040
|
}, content);
|
|
12025
12041
|
};
|
|
12026
12042
|
|
|
12027
|
-
var styles$
|
|
12043
|
+
var styles$1j = {"page-breadcrumbs":"_QjIgc"};
|
|
12028
12044
|
|
|
12029
12045
|
const PageBreadcrumbs = ({
|
|
12030
12046
|
breadcrumbs
|
|
12031
12047
|
}) => {
|
|
12032
12048
|
const items = getBreadbrumbItems(breadcrumbs);
|
|
12033
12049
|
return React__default.createElement("div", {
|
|
12034
|
-
className: styles$
|
|
12050
|
+
className: styles$1j['page-breadcrumbs']
|
|
12035
12051
|
}, React__default.createElement(Breadcrumbs, null, items));
|
|
12036
12052
|
};
|
|
12037
12053
|
const getBreadbrumbItems = breadcrumbs => {
|
|
@@ -12051,7 +12067,7 @@ const getBreadbrumbItems = breadcrumbs => {
|
|
|
12051
12067
|
}, breadcrumbs.label);
|
|
12052
12068
|
};
|
|
12053
12069
|
|
|
12054
|
-
var styles$
|
|
12070
|
+
var styles$1i = {"page":"_QB6yF","page--fullwidth":"_g7MTf","page--restricted":"_LRq4j"};
|
|
12055
12071
|
|
|
12056
12072
|
const PAGE_SIZES = {
|
|
12057
12073
|
FULL_WIDTH: 'fullwidth',
|
|
@@ -12072,9 +12088,9 @@ const Page = ({
|
|
|
12072
12088
|
const hasHeader = title || actions;
|
|
12073
12089
|
const hasPageBlocks = hasHeader || banner || filterBar;
|
|
12074
12090
|
return React__default.createElement("div", {
|
|
12075
|
-
className: classnames(styles$
|
|
12076
|
-
[styles$
|
|
12077
|
-
[styles$
|
|
12091
|
+
className: classnames(styles$1i['page'], {
|
|
12092
|
+
[styles$1i['page--restricted']]: _size === PAGE_SIZES.RESTRICTED,
|
|
12093
|
+
[styles$1i['page--fullwidth']]: _size === PAGE_SIZES.FULL_WIDTH
|
|
12078
12094
|
}),
|
|
12079
12095
|
"data-testid": testId
|
|
12080
12096
|
}, React__default.createElement(Stack, {
|
|
@@ -12095,15 +12111,15 @@ const Page = ({
|
|
|
12095
12111
|
}, title), actions), subtitle && React__default.createElement(Text, null, subtitle)), banner, filterBar)), children));
|
|
12096
12112
|
};
|
|
12097
12113
|
|
|
12098
|
-
var styles$
|
|
12114
|
+
var styles$1h = {"page-layout":"_Scw7-","page-layout__nav-container":"_v--DF","page-layout__nav-list":"_dJeZe","page-layout__content":"_hHi70","page-layout__side-nav-content":"_vTMjp"};
|
|
12099
12115
|
|
|
12100
|
-
var styles$
|
|
12116
|
+
var styles$1g = {"menu-item":"_SebbU","menu-item--active":"_CDEVl","menu-item--with-badge":"_VudDE","menu-item__badge":"_vErBS"};
|
|
12101
12117
|
|
|
12102
|
-
var styles$
|
|
12118
|
+
var styles$1f = {"badge":"_RXV4h","badge--warning":"_2An1I","badge--danger":"_-Bw8L","badge--success":"_RxlMz","badge--info":"_dzCH-","badge--numeric":"_Ix9tP"};
|
|
12103
12119
|
|
|
12104
|
-
var styles$
|
|
12120
|
+
var styles$1e = {"overlay":"_0yTe8","overlay--after-open":"_yJBtA","overlay--before-close":"_iWogn","content":"_ntozd","content--after-open":"_EQjDq","content--before-close":"_ZTY3B"};
|
|
12105
12121
|
|
|
12106
|
-
var styles$
|
|
12122
|
+
var styles$1d = {"header":"_tgpG9","header__close-button":"_b1dgU","sub-header":"_c2nm4"};
|
|
12107
12123
|
|
|
12108
12124
|
const ModalHeader = ({
|
|
12109
12125
|
header,
|
|
@@ -12113,7 +12129,7 @@ const ModalHeader = ({
|
|
|
12113
12129
|
}) => {
|
|
12114
12130
|
if (!header && !subHeader) {
|
|
12115
12131
|
return onClose ? React__default.createElement("div", {
|
|
12116
|
-
className: styles$
|
|
12132
|
+
className: styles$1d['header__close-button']
|
|
12117
12133
|
}, React__default.createElement(Button, {
|
|
12118
12134
|
theme: "link-icon",
|
|
12119
12135
|
onClick: onClose,
|
|
@@ -12129,13 +12145,13 @@ const ModalHeader = ({
|
|
|
12129
12145
|
flex: [1],
|
|
12130
12146
|
alignItems: "center"
|
|
12131
12147
|
}, React__default.createElement("span", {
|
|
12132
|
-
className: styles$
|
|
12148
|
+
className: styles$1d['header']
|
|
12133
12149
|
}, header), onClose && React__default.createElement(Button, {
|
|
12134
12150
|
theme: "link-icon",
|
|
12135
12151
|
onClick: onClose,
|
|
12136
12152
|
disabled: loading
|
|
12137
12153
|
}, React__default.createElement(IconTimes, null))), subHeader && React__default.createElement("div", {
|
|
12138
|
-
className: styles$
|
|
12154
|
+
className: styles$1d['sub-header']
|
|
12139
12155
|
}, subHeader));
|
|
12140
12156
|
};
|
|
12141
12157
|
|
|
@@ -12193,14 +12209,14 @@ const Modal = _ref => {
|
|
|
12193
12209
|
contentLabel: "Modal",
|
|
12194
12210
|
appElement: rootElementId && document.getElementById(rootElementId) || undefined,
|
|
12195
12211
|
overlayClassName: {
|
|
12196
|
-
base: styles$
|
|
12197
|
-
afterOpen: styles$
|
|
12198
|
-
beforeClose: styles$
|
|
12212
|
+
base: styles$1e['overlay'],
|
|
12213
|
+
afterOpen: styles$1e['overlay--after-open'],
|
|
12214
|
+
beforeClose: styles$1e['overlay--before-close']
|
|
12199
12215
|
},
|
|
12200
12216
|
className: {
|
|
12201
|
-
base: styles$
|
|
12202
|
-
afterOpen: styles$
|
|
12203
|
-
beforeClose: styles$
|
|
12217
|
+
base: styles$1e['content'],
|
|
12218
|
+
afterOpen: styles$1e['content--after-open'],
|
|
12219
|
+
beforeClose: styles$1e['content--before-close']
|
|
12204
12220
|
},
|
|
12205
12221
|
data: dataProps
|
|
12206
12222
|
}, React__default.createElement(ModalHeader, {
|
|
@@ -12242,7 +12258,7 @@ const useScrollShadow = () => {
|
|
|
12242
12258
|
};
|
|
12243
12259
|
};
|
|
12244
12260
|
|
|
12245
|
-
var styles$
|
|
12261
|
+
var styles$1c = {"modal-body":"_4YK4k","modal-body--with-scroll-shadow":"_wo1vv","modal-body__inner-div":"_9u6xC"};
|
|
12246
12262
|
|
|
12247
12263
|
const ModalBody = ({
|
|
12248
12264
|
children,
|
|
@@ -12253,17 +12269,17 @@ const ModalBody = ({
|
|
|
12253
12269
|
showScrollShadow
|
|
12254
12270
|
} = useScrollShadow();
|
|
12255
12271
|
return React__default.createElement("div", {
|
|
12256
|
-
className: classnames(styles$
|
|
12257
|
-
[styles$
|
|
12272
|
+
className: classnames(styles$1c['modal-body'], {
|
|
12273
|
+
[styles$1c['modal-body--with-scroll-shadow']]: showScrollShadow
|
|
12258
12274
|
}),
|
|
12259
12275
|
ref: ref,
|
|
12260
12276
|
"data-testid": testId
|
|
12261
12277
|
}, React__default.createElement("div", {
|
|
12262
|
-
className: styles$
|
|
12278
|
+
className: styles$1c['modal-body__inner-div']
|
|
12263
12279
|
}, children));
|
|
12264
12280
|
};
|
|
12265
12281
|
|
|
12266
|
-
var styles$
|
|
12282
|
+
var styles$1b = {"modal-footer":"_bezlP","tertiary-container":"_EdqHx"};
|
|
12267
12283
|
|
|
12268
12284
|
const updateButtonProps$1 = (button, newProps) => {
|
|
12269
12285
|
if (!button) {
|
|
@@ -12307,7 +12323,7 @@ const ModalFooter = ({
|
|
|
12307
12323
|
justifyContent: "space-between"
|
|
12308
12324
|
}, React__default.createElement("div", {
|
|
12309
12325
|
className: classnames({
|
|
12310
|
-
[styles$
|
|
12326
|
+
[styles$1b['tertiary-container']]: tertiaryButton && tertiaryButton.props.theme.startsWith('link')
|
|
12311
12327
|
})
|
|
12312
12328
|
}, tertiaryButton || React__default.createElement("div", null)), React__default.createElement(Inline, {
|
|
12313
12329
|
space: 12
|
|
@@ -12325,7 +12341,7 @@ const FooterContainer = ({
|
|
|
12325
12341
|
displayName: 'Inline'
|
|
12326
12342
|
});
|
|
12327
12343
|
return React__default.createElement("div", {
|
|
12328
|
-
className: styles$
|
|
12344
|
+
className: styles$1b['modal-footer'],
|
|
12329
12345
|
"data-testid": testId
|
|
12330
12346
|
}, React__default.createElement(Inline, {
|
|
12331
12347
|
justifyContent: "end",
|
|
@@ -12338,7 +12354,7 @@ var dayOverridesStyles = {"root":"_et9Fs","table":"_l7Mis","caption":"_XGu8K","h
|
|
|
12338
12354
|
|
|
12339
12355
|
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"};
|
|
12340
12356
|
|
|
12341
|
-
var styles$
|
|
12357
|
+
var styles$1a = {"calendar":"_YPyZ6","calendar__overlay":"_-cw0A"};
|
|
12342
12358
|
|
|
12343
12359
|
function parseDate(str, format, locale) {
|
|
12344
12360
|
const parsed = dateFnsParse(str, format, new Date(), {
|
|
@@ -12467,7 +12483,7 @@ const getHighlightModifiers = groups => {
|
|
|
12467
12483
|
});
|
|
12468
12484
|
};
|
|
12469
12485
|
|
|
12470
|
-
var styles$
|
|
12486
|
+
var styles$19 = {"day_highlight":"_ucr9m","theme-success":"_mLAwT","theme-danger":"_Uji-g","theme-warning":"_pe9ss","theme-info":"_OfzGg","theme-upsell":"_Pywaj","theme-neutral":"_5WRkx","shape-circle":"_0LzN8","legendShape":"_N-Dl4","shape-circle-dashed":"_eCqCU","shape-square":"_-pO-1","shape-square-dashed":"_7PoYh","shape-octagon":"_ywc-V","shape-star":"_vF4Ka","legend":"_iB2Db","legendItem":"_YauE7","legendLabel":"_lMmc7"};
|
|
12471
12487
|
|
|
12472
12488
|
const calculateCalendarPosition = (placement, anchorPosition, calendarDimensions) => {
|
|
12473
12489
|
if (!calendarDimensions) {
|
|
@@ -12541,7 +12557,7 @@ const buildHighlightDayPickerProps = highlightedDays => {
|
|
|
12541
12557
|
theme
|
|
12542
12558
|
}) => {
|
|
12543
12559
|
modifiers[key] = matcher;
|
|
12544
|
-
modifiersClassNames[key] = classnames(styles$
|
|
12560
|
+
modifiersClassNames[key] = classnames(styles$19.day_highlight, styles$19[`shape-${shape}`], styles$19[`theme-${theme}`]);
|
|
12545
12561
|
});
|
|
12546
12562
|
return {
|
|
12547
12563
|
modifiers,
|
|
@@ -12550,7 +12566,7 @@ const buildHighlightDayPickerProps = highlightedDays => {
|
|
|
12550
12566
|
};
|
|
12551
12567
|
};
|
|
12552
12568
|
|
|
12553
|
-
var styles$
|
|
12569
|
+
var styles$18 = {"calendar-highlights":"_TjAon","calendar-highlights__item":"_BbYmq","calendar-highlights__shape":"_utSi-","calendar-highlights__shape--square":"_mP9vd","calendar-highlights__shape--circle":"_6zlZT"};
|
|
12554
12570
|
|
|
12555
12571
|
/** Legend rendered beneath a calendar, one row item per highlight group. */
|
|
12556
12572
|
const CalendarHighlights = ({
|
|
@@ -12560,7 +12576,7 @@ const CalendarHighlights = ({
|
|
|
12560
12576
|
return null;
|
|
12561
12577
|
}
|
|
12562
12578
|
return React__default.createElement("div", {
|
|
12563
|
-
className: styles$
|
|
12579
|
+
className: styles$18['calendar-highlights']
|
|
12564
12580
|
}, React__default.createElement(Inline, {
|
|
12565
12581
|
flexWrap: "wrap",
|
|
12566
12582
|
space: {
|
|
@@ -12575,7 +12591,7 @@ const CalendarHighlights = ({
|
|
|
12575
12591
|
theme
|
|
12576
12592
|
}) => React__default.createElement("div", {
|
|
12577
12593
|
key: label,
|
|
12578
|
-
className: styles$
|
|
12594
|
+
className: styles$18['calendar-highlights__item']
|
|
12579
12595
|
}, React__default.createElement(Shape, {
|
|
12580
12596
|
shape: shape,
|
|
12581
12597
|
theme: theme
|
|
@@ -12588,45 +12604,45 @@ const Shape = ({
|
|
|
12588
12604
|
switch (shape) {
|
|
12589
12605
|
case 'square':
|
|
12590
12606
|
return React__default.createElement("div", {
|
|
12591
|
-
className: classnames(styles$
|
|
12607
|
+
className: classnames(styles$18['calendar-highlights__shape'], styles$18['calendar-highlights__shape--square']),
|
|
12592
12608
|
style: {
|
|
12593
12609
|
borderColor: COLORS[`${theme}-color`]
|
|
12594
12610
|
}
|
|
12595
12611
|
});
|
|
12596
12612
|
case 'square-dashed':
|
|
12597
12613
|
return React__default.createElement("div", {
|
|
12598
|
-
className: styles$
|
|
12614
|
+
className: styles$18['calendar-highlights__shape']
|
|
12599
12615
|
}, React__default.createElement(SquareDashedShape, {
|
|
12600
12616
|
theme: theme
|
|
12601
12617
|
}));
|
|
12602
12618
|
case 'circle':
|
|
12603
12619
|
return React__default.createElement("div", {
|
|
12604
|
-
className: classnames(styles$
|
|
12620
|
+
className: classnames(styles$18['calendar-highlights__shape'], styles$18['calendar-highlights__shape--circle']),
|
|
12605
12621
|
style: {
|
|
12606
12622
|
borderColor: COLORS[`${theme}-color`]
|
|
12607
12623
|
}
|
|
12608
12624
|
});
|
|
12609
12625
|
case 'circle-dashed':
|
|
12610
12626
|
return React__default.createElement("div", {
|
|
12611
|
-
className: `${styles$
|
|
12627
|
+
className: `${styles$18['calendar-highlights__shape']}`
|
|
12612
12628
|
}, React__default.createElement(CircleDashedShape, {
|
|
12613
12629
|
theme: theme
|
|
12614
12630
|
}));
|
|
12615
12631
|
case 'octagon':
|
|
12616
12632
|
return React__default.createElement("div", {
|
|
12617
|
-
className: `${styles$
|
|
12633
|
+
className: `${styles$18['calendar-highlights__shape']}`
|
|
12618
12634
|
}, React__default.createElement(OctagonShape, {
|
|
12619
12635
|
theme: theme
|
|
12620
12636
|
}));
|
|
12621
12637
|
case 'star':
|
|
12622
12638
|
return React__default.createElement("div", {
|
|
12623
|
-
className: `${styles$
|
|
12639
|
+
className: `${styles$18['calendar-highlights__shape']}`
|
|
12624
12640
|
}, React__default.createElement(StarShape, {
|
|
12625
12641
|
theme: theme
|
|
12626
12642
|
}));
|
|
12627
12643
|
default:
|
|
12628
12644
|
return React__default.createElement("div", {
|
|
12629
|
-
className: styles$
|
|
12645
|
+
className: styles$18['calendar-highlight__shape']
|
|
12630
12646
|
}, shape);
|
|
12631
12647
|
}
|
|
12632
12648
|
};
|
|
@@ -12846,9 +12862,9 @@ const Calendar = ({
|
|
|
12846
12862
|
}
|
|
12847
12863
|
};
|
|
12848
12864
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
12849
|
-
className: styles$
|
|
12865
|
+
className: styles$1a['calendar']
|
|
12850
12866
|
}, React__default.createElement("div", {
|
|
12851
|
-
className: styles$
|
|
12867
|
+
className: styles$1a['calendar__overlay'],
|
|
12852
12868
|
ref: ref => setCalendarRef(ref),
|
|
12853
12869
|
style: _extends({}, calendarPosition, {
|
|
12854
12870
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -12908,7 +12924,7 @@ const useCheckBoxFieldControllers = ({
|
|
|
12908
12924
|
return controllers;
|
|
12909
12925
|
};
|
|
12910
12926
|
|
|
12911
|
-
var styles$
|
|
12927
|
+
var styles$17 = {"check-box-field":"_Id4qm","check-box-field__caption":"_s9d-m","check-box-field__custom-input":"_kmvBP"};
|
|
12912
12928
|
|
|
12913
12929
|
const _excluded$bj = ["name", "id", "checked", "onChange", "onBlur", "label", "caption", "error", "disabled", "testId"];
|
|
12914
12930
|
/** A simple check box with an option beside it. Allows the user to confirm a statement or enable an option with a simple boolean action. Use for things like agreeing to terms, or enabling one or more options in a list (where multiple selections are allowed). */
|
|
@@ -12943,7 +12959,7 @@ const CheckboxField = _ref => {
|
|
|
12943
12959
|
flexItems: true,
|
|
12944
12960
|
flex: ['0 0 auto']
|
|
12945
12961
|
}, otherProps), React__default.createElement("div", {
|
|
12946
|
-
className: styles$
|
|
12962
|
+
className: styles$17['check-box-field']
|
|
12947
12963
|
}, React__default.createElement("input", {
|
|
12948
12964
|
name: name,
|
|
12949
12965
|
id: controllers.id,
|
|
@@ -12956,12 +12972,12 @@ const CheckboxField = _ref => {
|
|
|
12956
12972
|
onChange: controllers.onChange,
|
|
12957
12973
|
onBlur: controllers.onBlur
|
|
12958
12974
|
}), React__default.createElement("span", {
|
|
12959
|
-
className: styles$
|
|
12975
|
+
className: styles$17['check-box-field__custom-input']
|
|
12960
12976
|
})), label && React__default.createElement(Label, {
|
|
12961
12977
|
htmlFor: controllers.id,
|
|
12962
12978
|
truncate: false
|
|
12963
12979
|
}, label)), caption && React__default.createElement("div", {
|
|
12964
|
-
className: styles$
|
|
12980
|
+
className: styles$17['check-box-field__caption']
|
|
12965
12981
|
}, React__default.createElement(Caption, {
|
|
12966
12982
|
fieldId: controllers.id
|
|
12967
12983
|
}, caption)), controllers.error && React__default.createElement(ErrorMessage, {
|
|
@@ -12999,7 +13015,7 @@ const useLocalStorage = (key, initialValue) => {
|
|
|
12999
13015
|
return [storedValue, setValue];
|
|
13000
13016
|
};
|
|
13001
13017
|
|
|
13002
|
-
var styles$
|
|
13018
|
+
var styles$16 = {"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"};
|
|
13003
13019
|
|
|
13004
13020
|
const _excluded$bi = ["header", "children", "mediaUrl", "onClose", "modalId", "primaryButton", "secondaryButton", "testId", "onSetDoNotShowAgainStatus"];
|
|
13005
13021
|
const HintModal = _ref => {
|
|
@@ -13062,22 +13078,22 @@ const HintModal = _ref => {
|
|
|
13062
13078
|
closeTimeoutMS: 200,
|
|
13063
13079
|
contentLabel: "Modal",
|
|
13064
13080
|
className: {
|
|
13065
|
-
base: styles$
|
|
13066
|
-
afterOpen: styles$
|
|
13067
|
-
beforeClose: styles$
|
|
13081
|
+
base: styles$16['hint-modal'],
|
|
13082
|
+
afterOpen: styles$16['hint-modal--after-open'],
|
|
13083
|
+
beforeClose: styles$16['hint-modal--before-close']
|
|
13068
13084
|
},
|
|
13069
|
-
overlayClassName: styles$
|
|
13085
|
+
overlayClassName: styles$16['hint-modal__overlay']
|
|
13070
13086
|
}, React__default.createElement("div", {
|
|
13071
|
-
className: styles$
|
|
13087
|
+
className: styles$16['hint-modal__close-button']
|
|
13072
13088
|
}, React__default.createElement(Button, {
|
|
13073
13089
|
theme: "link-icon",
|
|
13074
13090
|
onClick: handleOnClose
|
|
13075
13091
|
}, React__default.createElement(IconTimes, null))), mediaUrl && React__default.createElement("img", {
|
|
13076
|
-
className: styles$
|
|
13092
|
+
className: styles$16['hint-modal__image'],
|
|
13077
13093
|
src: mediaUrl,
|
|
13078
13094
|
alt: String(header)
|
|
13079
13095
|
}), React__default.createElement("div", {
|
|
13080
|
-
className: styles$
|
|
13096
|
+
className: styles$16['hint-modal__body']
|
|
13081
13097
|
}, React__default.createElement(Stack, {
|
|
13082
13098
|
justifyContent: "space-between"
|
|
13083
13099
|
}, React__default.createElement(Stack, {
|
|
@@ -13126,12 +13142,12 @@ const BadgeElement = (_ref, forwardedRef) => {
|
|
|
13126
13142
|
overlay: title,
|
|
13127
13143
|
ref: ref
|
|
13128
13144
|
}, React__default.createElement("div", _extends({
|
|
13129
|
-
className: classnames(styles$
|
|
13130
|
-
[styles$
|
|
13131
|
-
[styles$
|
|
13132
|
-
[styles$
|
|
13133
|
-
[styles$
|
|
13134
|
-
[styles$
|
|
13145
|
+
className: classnames(styles$1f['badge'], {
|
|
13146
|
+
[styles$1f['badge--success']]: theme === 'success',
|
|
13147
|
+
[styles$1f['badge--danger']]: theme === 'danger',
|
|
13148
|
+
[styles$1f['badge--info']]: theme === 'info',
|
|
13149
|
+
[styles$1f['badge--warning']]: theme === 'warning',
|
|
13150
|
+
[styles$1f['badge--numeric']]: Number.isFinite(children)
|
|
13135
13151
|
}),
|
|
13136
13152
|
ref: ref,
|
|
13137
13153
|
"data-testid": testId
|
|
@@ -13143,28 +13159,28 @@ const MenuItem = ({
|
|
|
13143
13159
|
menu
|
|
13144
13160
|
}) => {
|
|
13145
13161
|
return React__default.createElement("li", {
|
|
13146
|
-
className: classnames(styles$
|
|
13147
|
-
[styles$
|
|
13162
|
+
className: classnames(styles$1g['menu-item'], {
|
|
13163
|
+
[styles$1g['menu-item--with-badge']]: !!menu.suffix
|
|
13148
13164
|
})
|
|
13149
13165
|
}, menu.reloadDocument ? React__default.createElement("a", {
|
|
13150
13166
|
href: menu.to,
|
|
13151
13167
|
className: classnames({
|
|
13152
|
-
[styles$
|
|
13168
|
+
[styles$1g['menu-item--active']]: menu.isActive
|
|
13153
13169
|
})
|
|
13154
13170
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
13155
|
-
className: styles$
|
|
13171
|
+
className: styles$1g['menu-item__badge']
|
|
13156
13172
|
}, React__default.createElement(Badge, null, menu.suffix))) : React__default.createElement(NavLink, {
|
|
13157
13173
|
to: menu.to,
|
|
13158
13174
|
// @ts-expect-error This is only available on v5
|
|
13159
|
-
activeClassName: styles$
|
|
13175
|
+
activeClassName: styles$1g['menu-item--active'],
|
|
13160
13176
|
className: ({
|
|
13161
13177
|
isActive
|
|
13162
13178
|
}) => {
|
|
13163
|
-
return isActive ? styles$
|
|
13179
|
+
return isActive ? styles$1g['menu-item--active'] : '';
|
|
13164
13180
|
},
|
|
13165
13181
|
exact: true
|
|
13166
13182
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
13167
|
-
className: styles$
|
|
13183
|
+
className: styles$1g['menu-item__badge']
|
|
13168
13184
|
}, React__default.createElement(Badge, null, menu.suffix))));
|
|
13169
13185
|
};
|
|
13170
13186
|
|
|
@@ -13175,9 +13191,9 @@ const PageLayout = ({
|
|
|
13175
13191
|
sideNavContent
|
|
13176
13192
|
}) => {
|
|
13177
13193
|
return React__default.createElement("div", {
|
|
13178
|
-
className: styles$
|
|
13194
|
+
className: styles$1h['page-layout']
|
|
13179
13195
|
}, React__default.createElement("div", {
|
|
13180
|
-
className: styles$
|
|
13196
|
+
className: styles$1h['page-layout__nav-container']
|
|
13181
13197
|
}, React__default.createElement(Stack, {
|
|
13182
13198
|
space: 12
|
|
13183
13199
|
}, React__default.createElement(Text, {
|
|
@@ -13186,14 +13202,14 @@ const PageLayout = ({
|
|
|
13186
13202
|
ml: 20,
|
|
13187
13203
|
mr: 35
|
|
13188
13204
|
}, title), React__default.createElement("ul", {
|
|
13189
|
-
className: styles$
|
|
13205
|
+
className: styles$1h['page-layout__nav-list']
|
|
13190
13206
|
}, menu.filter(menu => !('isVisible' in menu) || (menu == null ? void 0 : menu.isVisible) === true).map((menuItem, index) => React__default.createElement(MenuItem, {
|
|
13191
13207
|
key: menuItem.name || index,
|
|
13192
13208
|
menu: menuItem
|
|
13193
13209
|
}))), sideNavContent && React__default.createElement("div", {
|
|
13194
|
-
className: styles$
|
|
13210
|
+
className: styles$1h['page-layout__side-nav-content']
|
|
13195
13211
|
}, sideNavContent))), React__default.createElement("div", {
|
|
13196
|
-
className: styles$
|
|
13212
|
+
className: styles$1h['page-layout__content']
|
|
13197
13213
|
}, children));
|
|
13198
13214
|
};
|
|
13199
13215
|
|
|
@@ -13203,7 +13219,7 @@ const TOAST_THEME = {
|
|
|
13203
13219
|
};
|
|
13204
13220
|
const TOAST_CONTAINER_ID = 'sous-chef-toast';
|
|
13205
13221
|
|
|
13206
|
-
var styles$
|
|
13222
|
+
var styles$15 = {"toast":"_iSC5P","toast--danger":"_OWpOG","toast__text":"_4JJwF"};
|
|
13207
13223
|
|
|
13208
13224
|
const toast = (text, theme = TOAST_THEME.DEFAULT, options = {}) => {
|
|
13209
13225
|
if (typeof text !== 'string') {
|
|
@@ -13220,8 +13236,8 @@ const toast = (text, theme = TOAST_THEME.DEFAULT, options = {}) => {
|
|
|
13220
13236
|
onActionClick: onActionClick
|
|
13221
13237
|
}) : text;
|
|
13222
13238
|
toast$1(content, _extends({
|
|
13223
|
-
className: classnames(styles$
|
|
13224
|
-
[styles$
|
|
13239
|
+
className: classnames(styles$15['toast'], {
|
|
13240
|
+
[styles$15['toast--danger']]: theme === TOAST_THEME.DANGER
|
|
13225
13241
|
}),
|
|
13226
13242
|
containerId: TOAST_CONTAINER_ID
|
|
13227
13243
|
}, options));
|
|
@@ -13247,7 +13263,7 @@ const ToastBodyWithAction = ({
|
|
|
13247
13263
|
const ToastContainer = ({
|
|
13248
13264
|
containerId: _containerId = TOAST_CONTAINER_ID
|
|
13249
13265
|
}) => React__default.createElement(ToastContainer$1, {
|
|
13250
|
-
bodyClassName: styles$
|
|
13266
|
+
bodyClassName: styles$15['toast__text'],
|
|
13251
13267
|
hideProgressBar: true,
|
|
13252
13268
|
draggable: false,
|
|
13253
13269
|
transition: Slide,
|
|
@@ -13322,7 +13338,7 @@ const SousChefProvider = ({
|
|
|
13322
13338
|
}, React__default.createElement(ToastContainer, null), children));
|
|
13323
13339
|
};
|
|
13324
13340
|
|
|
13325
|
-
var styles
|
|
13341
|
+
var styles$14 = {"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"};
|
|
13326
13342
|
|
|
13327
13343
|
const SORT_ORDER = {
|
|
13328
13344
|
ASC: 'asc',
|
|
@@ -13508,7 +13524,7 @@ const DataTableHeader = ({
|
|
|
13508
13524
|
},
|
|
13509
13525
|
id: `${tableId}-header`
|
|
13510
13526
|
}, React__default.createElement("tr", {
|
|
13511
|
-
className: styles
|
|
13527
|
+
className: styles$14['data-table-header']
|
|
13512
13528
|
}, columns.filter(column => !column.hidden).map(column => {
|
|
13513
13529
|
const isSortable = column.isSortable;
|
|
13514
13530
|
const sortDir = column.currentSort;
|
|
@@ -13516,8 +13532,8 @@ const DataTableHeader = ({
|
|
|
13516
13532
|
const hasDescription = !!column.description;
|
|
13517
13533
|
return React__default.createElement("th", {
|
|
13518
13534
|
className: classnames({
|
|
13519
|
-
[styles
|
|
13520
|
-
[styles
|
|
13535
|
+
[styles$14['data-table-header__item']]: true,
|
|
13536
|
+
[styles$14['data-table-header__item--sortable']]: isSortable
|
|
13521
13537
|
}),
|
|
13522
13538
|
style: {
|
|
13523
13539
|
flex: column.size || 1,
|
|
@@ -13529,18 +13545,18 @@ const DataTableHeader = ({
|
|
|
13529
13545
|
role: "columnheader",
|
|
13530
13546
|
tabIndex: 0
|
|
13531
13547
|
}, React__default.createElement("div", {
|
|
13532
|
-
className: classnames(styles
|
|
13533
|
-
[styles
|
|
13548
|
+
className: classnames(styles$14['data-table-header__item-content'], {
|
|
13549
|
+
[styles$14['data-table-header__item-content--right-align']]: isRightAligned
|
|
13534
13550
|
}, {
|
|
13535
|
-
[styles
|
|
13551
|
+
[styles$14['data-table-header__item-content--has-description']]: hasDescription
|
|
13536
13552
|
})
|
|
13537
13553
|
}, wrapWithTooltip(column), isSortable && React__default.createElement("span", {
|
|
13538
|
-
className: styles
|
|
13554
|
+
className: styles$14['data-table-header__sort-icon']
|
|
13539
13555
|
}, React__default.createElement(HeaderSortIcon, {
|
|
13540
13556
|
sortDirection: sortDir
|
|
13541
13557
|
}))));
|
|
13542
13558
|
}), showActionMenu && React__default.createElement("th", {
|
|
13543
|
-
className: classnames(styles
|
|
13559
|
+
className: classnames(styles$14['data-table-header__item'], styles$14['data-table-header__item--action'])
|
|
13544
13560
|
}))));
|
|
13545
13561
|
};
|
|
13546
13562
|
const wrapWithTooltip = column => {
|
|
@@ -13554,9 +13570,9 @@ const wrapWithTooltip = column => {
|
|
|
13554
13570
|
return column.label;
|
|
13555
13571
|
};
|
|
13556
13572
|
|
|
13557
|
-
var styles$
|
|
13573
|
+
var styles$13 = {"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"};
|
|
13558
13574
|
|
|
13559
|
-
var styles$
|
|
13575
|
+
var styles$12 = {"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"};
|
|
13560
13576
|
|
|
13561
13577
|
const useTableHeaderHeight = isShowingColumns => {
|
|
13562
13578
|
const {
|
|
@@ -13608,10 +13624,10 @@ const DataTableScrollFakeBorder = ({
|
|
|
13608
13624
|
const hasFixedScroll = useDetectFixedScroll();
|
|
13609
13625
|
const backgroundColor = useBackgroundColor();
|
|
13610
13626
|
return React__default.createElement("div", {
|
|
13611
|
-
className: classnames(styles$
|
|
13612
|
-
[styles$
|
|
13613
|
-
[styles$
|
|
13614
|
-
[styles$
|
|
13627
|
+
className: classnames(styles$12['data-table-scroll-fake-border'], {
|
|
13628
|
+
[styles$12['data-table-scroll-fake-border--top']]: placement === 'top',
|
|
13629
|
+
[styles$12['data-table-scroll-fake-border--bottom']]: placement === 'bottom',
|
|
13630
|
+
[styles$12['data-table-scroll-fake-border--fixed-scroll']]: hasFixedScroll
|
|
13615
13631
|
}),
|
|
13616
13632
|
style: {
|
|
13617
13633
|
// @ts-expect-error This difines a custom CSS variable
|
|
@@ -13619,14 +13635,14 @@ const DataTableScrollFakeBorder = ({
|
|
|
13619
13635
|
top: placement === 'top' ? headerHeight : undefined
|
|
13620
13636
|
}
|
|
13621
13637
|
}, React__default.createElement("div", {
|
|
13622
|
-
className: classnames(styles$
|
|
13623
|
-
[styles$
|
|
13624
|
-
[styles$
|
|
13638
|
+
className: classnames(styles$12['data-table-scroll-fake-border__left'], {
|
|
13639
|
+
[styles$12['data-table-scroll-fake-border__left--top']]: placement === 'top',
|
|
13640
|
+
[styles$12['data-table-scroll-fake-border__left--bottom']]: placement === 'bottom'
|
|
13625
13641
|
})
|
|
13626
13642
|
}), React__default.createElement("div", {
|
|
13627
|
-
className: classnames(styles$
|
|
13628
|
-
[styles$
|
|
13629
|
-
[styles$
|
|
13643
|
+
className: classnames(styles$12['data-table-scroll-fake-border__right'], {
|
|
13644
|
+
[styles$12['data-table-scroll-fake-border__right--top']]: placement === 'top',
|
|
13645
|
+
[styles$12['data-table-scroll-fake-border__right--bottom']]: placement === 'bottom'
|
|
13630
13646
|
}),
|
|
13631
13647
|
"data-background-color": "red"
|
|
13632
13648
|
}));
|
|
@@ -13644,7 +13660,7 @@ const BUTTON_THEME = {
|
|
|
13644
13660
|
UPSELL: 'upsell'
|
|
13645
13661
|
};
|
|
13646
13662
|
|
|
13647
|
-
var styles$
|
|
13663
|
+
var styles$11 = {"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"};
|
|
13648
13664
|
|
|
13649
13665
|
/** Infers theme prop for Sous Chef Button CTAs if not explicitly passed, default is hollow, primaryCTA is Upsell if banner theme is Upsell*/
|
|
13650
13666
|
const ButtonCTA$1 = ({
|
|
@@ -13665,7 +13681,7 @@ const ButtonCTA$1 = ({
|
|
|
13665
13681
|
}, button.props));
|
|
13666
13682
|
};
|
|
13667
13683
|
|
|
13668
|
-
var styles$
|
|
13684
|
+
var styles$10 = {"banner__caption":"_S--Ce"};
|
|
13669
13685
|
|
|
13670
13686
|
const InlineBannerCTA = ({
|
|
13671
13687
|
primaryButton,
|
|
@@ -13697,7 +13713,7 @@ const InlineBannerCTA = ({
|
|
|
13697
13713
|
bannerTheme: bannerTheme,
|
|
13698
13714
|
primaryCTA: true
|
|
13699
13715
|
})), caption && multiLine && React__default.createElement("div", {
|
|
13700
|
-
className: styles$
|
|
13716
|
+
className: styles$10['banner__caption']
|
|
13701
13717
|
}, caption));
|
|
13702
13718
|
};
|
|
13703
13719
|
|
|
@@ -13748,21 +13764,21 @@ const InlineBanner = _ref => {
|
|
|
13748
13764
|
const Layout = multiLine ? Stack : Inline;
|
|
13749
13765
|
return React__default.createElement("div", {
|
|
13750
13766
|
"data-testid": testId,
|
|
13751
|
-
className: classnames(styles$
|
|
13752
|
-
[styles$
|
|
13753
|
-
[styles$
|
|
13754
|
-
[styles$
|
|
13755
|
-
[styles$
|
|
13756
|
-
[styles$
|
|
13757
|
-
[styles$
|
|
13767
|
+
className: classnames(styles$11['banner'], {
|
|
13768
|
+
[styles$11['banner--info']]: theme === BANNER_THEME.INFO,
|
|
13769
|
+
[styles$11['banner--warning']]: theme === BANNER_THEME.WARNING,
|
|
13770
|
+
[styles$11['banner--success']]: theme === BANNER_THEME.SUCCESS,
|
|
13771
|
+
[styles$11['banner--danger']]: theme === BANNER_THEME.DANGER,
|
|
13772
|
+
[styles$11['banner--upsell']]: theme === BANNER_THEME.UPSELL,
|
|
13773
|
+
[styles$11['banner--single-line']]: !multiLine
|
|
13758
13774
|
}),
|
|
13759
13775
|
style: positionStyles
|
|
13760
13776
|
}, React__default.createElement(Inline, {
|
|
13761
13777
|
flex: ['0 1 auto', 1],
|
|
13762
13778
|
space: 12
|
|
13763
13779
|
}, React__default.createElement("div", {
|
|
13764
|
-
className: classnames(styles$
|
|
13765
|
-
[styles$
|
|
13780
|
+
className: classnames(styles$11['banner__icon'], {
|
|
13781
|
+
[styles$11['banner__icon--multiline']]: multiLine
|
|
13766
13782
|
})
|
|
13767
13783
|
}, icon != null ? icon : React__default.createElement(InlineBannerIcon, {
|
|
13768
13784
|
theme: theme
|
|
@@ -13773,10 +13789,10 @@ const InlineBanner = _ref => {
|
|
|
13773
13789
|
flex: ['min-content'],
|
|
13774
13790
|
flexWrap: multiLine ? undefined : 'wrap'
|
|
13775
13791
|
}, title && React__default.createElement("div", {
|
|
13776
|
-
className: styles$
|
|
13792
|
+
className: styles$11['banner__title']
|
|
13777
13793
|
}, title), React__default.createElement("div", {
|
|
13778
|
-
className: classnames(styles$
|
|
13779
|
-
[styles$
|
|
13794
|
+
className: classnames(styles$11['banner__body'], {
|
|
13795
|
+
[styles$11['banner__body--multilineCTA']]: primaryButton && multiLine
|
|
13780
13796
|
})
|
|
13781
13797
|
}, children), primaryButton && React__default.createElement(InlineBannerCTA, {
|
|
13782
13798
|
primaryButton: primaryButton,
|
|
@@ -13785,7 +13801,7 @@ const InlineBanner = _ref => {
|
|
|
13785
13801
|
multiLine: multiLine,
|
|
13786
13802
|
bannerTheme: theme
|
|
13787
13803
|
})), dismissable && React__default.createElement("div", {
|
|
13788
|
-
className: styles$
|
|
13804
|
+
className: styles$11['banner__close']
|
|
13789
13805
|
}, React__default.createElement(Button, {
|
|
13790
13806
|
theme: "link-icon",
|
|
13791
13807
|
type: "button",
|
|
@@ -13801,7 +13817,7 @@ const MICRO_BANNER_THEME = {
|
|
|
13801
13817
|
UPSELL: 'upsell'
|
|
13802
13818
|
};
|
|
13803
13819
|
|
|
13804
|
-
var styles
|
|
13820
|
+
var styles$$ = {"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"};
|
|
13805
13821
|
|
|
13806
13822
|
const MicroBannerIcon = ({
|
|
13807
13823
|
theme
|
|
@@ -13867,14 +13883,14 @@ const MicroBanner = _ref => {
|
|
|
13867
13883
|
const {
|
|
13868
13884
|
dataProps
|
|
13869
13885
|
} = getDataProps(otherProps);
|
|
13870
|
-
const themeClass = styles
|
|
13871
|
-
const contentClass = classnames(styles
|
|
13886
|
+
const themeClass = styles$$[`micro-banner--${theme}`];
|
|
13887
|
+
const contentClass = classnames(styles$$['micro-banner__content'], hideIcon && styles$$['micro-banner__content--no-icon'], !primaryButton && styles$$['micro-banner__content--no-button']);
|
|
13872
13888
|
return React__default.createElement("div", _extends({
|
|
13873
13889
|
"data-testid": testId,
|
|
13874
|
-
className: classnames(styles
|
|
13890
|
+
className: classnames(styles$$['micro-banner'], themeClass),
|
|
13875
13891
|
style: positionProps
|
|
13876
13892
|
}, dataProps), !hideIcon && React__default.createElement("div", {
|
|
13877
|
-
className: styles
|
|
13893
|
+
className: styles$$['micro-banner__icon'],
|
|
13878
13894
|
"data-testid": `${testId || 'micro-banner'}-icon`
|
|
13879
13895
|
}, icon != null ? icon : React__default.createElement(MicroBannerIcon, {
|
|
13880
13896
|
theme: theme
|
|
@@ -13885,7 +13901,7 @@ const MicroBanner = _ref => {
|
|
|
13885
13901
|
}, title), React__default.createElement(Text, {
|
|
13886
13902
|
as: 'caption'
|
|
13887
13903
|
}, children)), primaryButton && React__default.createElement("div", {
|
|
13888
|
-
className: styles
|
|
13904
|
+
className: styles$$['micro-banner__button']
|
|
13889
13905
|
}, React__default.createElement(ButtonCTA, {
|
|
13890
13906
|
button: primaryButton,
|
|
13891
13907
|
bannerTheme: theme
|
|
@@ -13900,7 +13916,7 @@ const PERSISTENT_BANNER_THEME = {
|
|
|
13900
13916
|
SUCCESS: 'success'
|
|
13901
13917
|
};
|
|
13902
13918
|
|
|
13903
|
-
var styles$
|
|
13919
|
+
var styles$_ = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR","persistent-banner--warning":"_9eFhn","persistent-banner--success":"_hU34n"};
|
|
13904
13920
|
|
|
13905
13921
|
const PersistentBanner = ({
|
|
13906
13922
|
theme: _theme = PERSISTENT_BANNER_THEME.INFO,
|
|
@@ -13929,12 +13945,12 @@ const PersistentBanner = ({
|
|
|
13929
13945
|
theme: BUTTON_THEMES.LINK_CONTRAST
|
|
13930
13946
|
}, secondaryButton.props))));
|
|
13931
13947
|
return React__default.createElement("div", {
|
|
13932
|
-
className: classnames(styles$
|
|
13933
|
-
[styles$
|
|
13934
|
-
[styles$
|
|
13935
|
-
[styles$
|
|
13936
|
-
[styles$
|
|
13937
|
-
[styles$
|
|
13948
|
+
className: classnames(styles$_['persistent-banner'], {
|
|
13949
|
+
[styles$_['persistent-banner--info']]: _theme === PERSISTENT_BANNER_THEME.INFO,
|
|
13950
|
+
[styles$_['persistent-banner--danger']]: _theme === PERSISTENT_BANNER_THEME.DANGER,
|
|
13951
|
+
[styles$_['persistent-banner--upsell']]: _theme === PERSISTENT_BANNER_THEME.UPSELL,
|
|
13952
|
+
[styles$_['persistent-banner--warning']]: _theme === PERSISTENT_BANNER_THEME.WARNING,
|
|
13953
|
+
[styles$_['persistent-banner--success']]: _theme === PERSISTENT_BANNER_THEME.SUCCESS
|
|
13938
13954
|
}),
|
|
13939
13955
|
"data-testid": testId
|
|
13940
13956
|
}, onDismiss ? React__default.createElement(Inline, {
|
|
@@ -13999,7 +14015,7 @@ const useProgress = (progress, maxValue, getMetric = getProgressMetric) => {
|
|
|
13999
14015
|
};
|
|
14000
14016
|
};
|
|
14001
14017
|
|
|
14002
|
-
var styles$
|
|
14018
|
+
var styles$Z = {"circular-progress":"_UI0Fo","circular-progress__label":"_6PNwZ","circular-progress__track":"_alBLB","circular-progress__indicator":"_VADa6"};
|
|
14003
14019
|
|
|
14004
14020
|
const CircularProgress = ({
|
|
14005
14021
|
progress,
|
|
@@ -14013,7 +14029,7 @@ const CircularProgress = ({
|
|
|
14013
14029
|
} = useProgress(progress, _maxValue);
|
|
14014
14030
|
const determinant = metric.percentage * 2.79;
|
|
14015
14031
|
return React__default.createElement("div", _extends({}, elementProps, {
|
|
14016
|
-
className: styles$
|
|
14032
|
+
className: styles$Z['circular-progress'],
|
|
14017
14033
|
"data-testid": testId
|
|
14018
14034
|
}), React__default.createElement("svg", {
|
|
14019
14035
|
viewBox: "0 0 100 100"
|
|
@@ -14022,21 +14038,21 @@ const CircularProgress = ({
|
|
|
14022
14038
|
cy: 50,
|
|
14023
14039
|
r: 45,
|
|
14024
14040
|
strokeWidth: "10px",
|
|
14025
|
-
className: styles$
|
|
14041
|
+
className: styles$Z['circular-progress__track']
|
|
14026
14042
|
}), React__default.createElement("circle", {
|
|
14027
14043
|
cx: 50,
|
|
14028
14044
|
cy: 50,
|
|
14029
14045
|
r: 45,
|
|
14030
14046
|
strokeWidth: "10px",
|
|
14031
|
-
className: styles$
|
|
14047
|
+
className: styles$Z['circular-progress__indicator'],
|
|
14032
14048
|
strokeDashoffset: "66",
|
|
14033
14049
|
strokeDasharray: `${determinant} ${279 - determinant}`
|
|
14034
14050
|
})), React__default.createElement("div", {
|
|
14035
|
-
className: styles$
|
|
14051
|
+
className: styles$Z['circular-progress__label']
|
|
14036
14052
|
}, children || `${metric.progress}/${metric.maxValue}`));
|
|
14037
14053
|
};
|
|
14038
14054
|
|
|
14039
|
-
var styles$
|
|
14055
|
+
var styles$Y = {"progress-bar":"_fWvQF","progress-bar__indicator":"_vd0xc","progress-bar__indicator--complete":"_D9yNp","progress-bar__steps":"_8kdeO"};
|
|
14040
14056
|
|
|
14041
14057
|
const ProgressBar = ({
|
|
14042
14058
|
progress,
|
|
@@ -14051,23 +14067,23 @@ const ProgressBar = ({
|
|
|
14051
14067
|
metric
|
|
14052
14068
|
} = useProgress(progress, inferedMaxValue || 100, isUsingStepsAsMaxValue ? getProgressMetricWithSteps : getProgressMetric);
|
|
14053
14069
|
return React__default.createElement(Stack, null, React__default.createElement("div", _extends({}, elementProps, {
|
|
14054
|
-
className: styles$
|
|
14070
|
+
className: styles$Y['progress-bar'],
|
|
14055
14071
|
"data-testid": testId
|
|
14056
14072
|
}), React__default.createElement("div", {
|
|
14057
|
-
className: classnames(styles$
|
|
14058
|
-
[styles$
|
|
14073
|
+
className: classnames(styles$Y['progress-bar__indicator'], {
|
|
14074
|
+
[styles$Y['progress-bar__indicator--complete']]: metric.percentage === 100
|
|
14059
14075
|
}),
|
|
14060
14076
|
style: {
|
|
14061
14077
|
width: `${metric.percentage}%`
|
|
14062
14078
|
}
|
|
14063
14079
|
})), steps && steps.length > 0 && React__default.createElement("div", {
|
|
14064
|
-
className: styles$
|
|
14080
|
+
className: styles$Y['progress-bar__steps']
|
|
14065
14081
|
}, steps.map(step => React__default.createElement(Text, {
|
|
14066
14082
|
key: step
|
|
14067
14083
|
}, step))));
|
|
14068
14084
|
};
|
|
14069
14085
|
|
|
14070
|
-
var styles$
|
|
14086
|
+
var styles$X = {"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"};
|
|
14071
14087
|
|
|
14072
14088
|
const SKELETON_COMPONENT = {
|
|
14073
14089
|
AVATAR: 'avatar',
|
|
@@ -14091,14 +14107,14 @@ const Skeleton = _ref => {
|
|
|
14091
14107
|
const positioning = usePositionStyles(positionStyles);
|
|
14092
14108
|
return React__default.createElement("div", {
|
|
14093
14109
|
"data-testid": testId,
|
|
14094
|
-
className: classnames(styles$
|
|
14095
|
-
[styles$
|
|
14096
|
-
[styles$
|
|
14097
|
-
[styles$
|
|
14098
|
-
[styles$
|
|
14099
|
-
[styles$
|
|
14100
|
-
[styles$
|
|
14101
|
-
[styles$
|
|
14110
|
+
className: classnames(styles$X['skeleton'], {
|
|
14111
|
+
[styles$X['skeleton__avatar']]: as === SKELETON_COMPONENT.AVATAR,
|
|
14112
|
+
[styles$X['skeleton__avatar--small']]: as === SKELETON_COMPONENT.AVATAR_SMALL,
|
|
14113
|
+
[styles$X['skeleton__avatar--medium']]: as === SKELETON_COMPONENT.AVATAR_MEDIUM,
|
|
14114
|
+
[styles$X['skeleton__avatar--large']]: as === SKELETON_COMPONENT.AVATAR_LARGE,
|
|
14115
|
+
[styles$X['skeleton__avatar--xlarge']]: as === SKELETON_COMPONENT.AVATAR_XLARGE,
|
|
14116
|
+
[styles$X['skeleton__button']]: as === SKELETON_COMPONENT.BUTTON,
|
|
14117
|
+
[styles$X['skeleton__pill']]: as === SKELETON_COMPONENT.PILL
|
|
14102
14118
|
}),
|
|
14103
14119
|
style: _extends({}, positioning, {
|
|
14104
14120
|
width: width,
|
|
@@ -14107,11 +14123,11 @@ const Skeleton = _ref => {
|
|
|
14107
14123
|
});
|
|
14108
14124
|
};
|
|
14109
14125
|
|
|
14110
|
-
var styles$
|
|
14126
|
+
var styles$W = {"data-table-row":"_hhDnr","data-table-row--clickable":"_ej5Ke","data-table-row--selected":"_qDTAh"};
|
|
14111
14127
|
|
|
14112
|
-
var styles$
|
|
14128
|
+
var styles$V = {"actions":"_ffXgN"};
|
|
14113
14129
|
|
|
14114
|
-
var styles$
|
|
14130
|
+
var styles$U = {"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-"};
|
|
14115
14131
|
|
|
14116
14132
|
const DataTableCellElement = ({
|
|
14117
14133
|
children,
|
|
@@ -14135,9 +14151,9 @@ const DataTableCellElement = ({
|
|
|
14135
14151
|
const hasError = !!error;
|
|
14136
14152
|
const errorMessage = error;
|
|
14137
14153
|
const icon = hasError && React__default.createElement("div", {
|
|
14138
|
-
className: classnames(styles$
|
|
14139
|
-
[styles$
|
|
14140
|
-
[styles$
|
|
14154
|
+
className: classnames(styles$U['data-table-cell__error-icon'], {
|
|
14155
|
+
[styles$U['data-table-cell__error-icon--right-align']]: isRightAligned,
|
|
14156
|
+
[styles$U['data-table-cell__error-icon--left-align']]: !isRightAligned
|
|
14141
14157
|
})
|
|
14142
14158
|
}, React__default.createElement(IconTimesOctagon, {
|
|
14143
14159
|
size: "medium",
|
|
@@ -14145,17 +14161,17 @@ const DataTableCellElement = ({
|
|
|
14145
14161
|
}));
|
|
14146
14162
|
const TableCell = React__default.createElement("td", {
|
|
14147
14163
|
className: classnames({
|
|
14148
|
-
[styles$
|
|
14149
|
-
[styles$
|
|
14150
|
-
[styles$
|
|
14151
|
-
}, styles$
|
|
14164
|
+
[styles$U['data-table-cell--invalid']]: hasError,
|
|
14165
|
+
[styles$U['data-table-cell--no-padding']]: _noPadding,
|
|
14166
|
+
[styles$U['data-table-cell--vertical-border']]: hasVerticalBorders
|
|
14167
|
+
}, styles$U['data-table-cell']),
|
|
14152
14168
|
colSpan: colSpan,
|
|
14153
14169
|
ref: ref
|
|
14154
14170
|
}, React__default.createElement("div", {
|
|
14155
|
-
className: classnames(styles$
|
|
14156
|
-
[styles$
|
|
14157
|
-
[styles$
|
|
14158
|
-
[styles$
|
|
14171
|
+
className: classnames(styles$U['data-table-cell__content'], {
|
|
14172
|
+
[styles$U['data-table-cell__content--with-error']]: hasError,
|
|
14173
|
+
[styles$U['data-table-cell__content--right-align']]: isRightAligned,
|
|
14174
|
+
[styles$U['data-table-cell__content--loading']]: state === DATA_TABLE_STATES.BACKGROUND_LOADING
|
|
14159
14175
|
})
|
|
14160
14176
|
}, isRightAligned && icon, children, !isRightAligned && icon));
|
|
14161
14177
|
return React__default.createElement(Tooltip, {
|
|
@@ -14179,7 +14195,7 @@ const DataTableRowActions = ({
|
|
|
14179
14195
|
return React__default.createElement(DataTableCell, {
|
|
14180
14196
|
columnIndex: columnIndex
|
|
14181
14197
|
}, React__default.createElement("div", {
|
|
14182
|
-
className: styles$
|
|
14198
|
+
className: styles$V['actions'],
|
|
14183
14199
|
"data-testid": "data-table-dropdown-menu"
|
|
14184
14200
|
}, state === 'SKELETON_LOADING' && React__default.createElement(Skeleton, {
|
|
14185
14201
|
width: 45
|
|
@@ -14192,7 +14208,7 @@ const DataTableRowActions = ({
|
|
|
14192
14208
|
})));
|
|
14193
14209
|
};
|
|
14194
14210
|
|
|
14195
|
-
var styles$
|
|
14211
|
+
var styles$T = {"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"};
|
|
14196
14212
|
|
|
14197
14213
|
const DataTableEditableCellElement = ({
|
|
14198
14214
|
name,
|
|
@@ -14241,8 +14257,8 @@ const DataTableEditableCellElement = ({
|
|
|
14241
14257
|
};
|
|
14242
14258
|
const EditableCell = React__default.createElement("div", {
|
|
14243
14259
|
className: classnames({
|
|
14244
|
-
[styles$
|
|
14245
|
-
}, styles$
|
|
14260
|
+
[styles$T['data-table-editable-cell--currency']]: _type === 'currency'
|
|
14261
|
+
}, styles$T['data-table-editable-cell']),
|
|
14246
14262
|
"data-testid": testId,
|
|
14247
14263
|
role: "cell"
|
|
14248
14264
|
}, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
@@ -14252,12 +14268,12 @@ const DataTableEditableCellElement = ({
|
|
|
14252
14268
|
name: name,
|
|
14253
14269
|
id: controllers.id,
|
|
14254
14270
|
className: classnames({
|
|
14255
|
-
[styles$
|
|
14256
|
-
[styles$
|
|
14257
|
-
[styles$
|
|
14258
|
-
[styles$
|
|
14259
|
-
[styles$
|
|
14260
|
-
[styles$
|
|
14271
|
+
[styles$T['data-table-editable-cell--right-aligned']]: isRightAligned,
|
|
14272
|
+
[styles$T['data-table-editable-cell--top-left']]: isTopLeftCell,
|
|
14273
|
+
[styles$T['data-table-editable-cell--top-right']]: isTopRightCell,
|
|
14274
|
+
[styles$T['data-table-editable-cell--bottom-left']]: isBottomLeftCell,
|
|
14275
|
+
[styles$T['data-table-editable-cell--bottom-right']]: isBottomRightCell,
|
|
14276
|
+
[styles$T['data-table-editable-cell--invalid']]: hasError
|
|
14261
14277
|
}),
|
|
14262
14278
|
type: _type === 'currency' ? 'number' : 'text',
|
|
14263
14279
|
step: _type === 'currency' ? 'any' : '',
|
|
@@ -14302,9 +14318,9 @@ const DataTableRowComponent = (_ref, ref) => {
|
|
|
14302
14318
|
const {
|
|
14303
14319
|
showActionMenu
|
|
14304
14320
|
} = useDataTableContext();
|
|
14305
|
-
const styleNames = classnames(styles$
|
|
14306
|
-
[styles$
|
|
14307
|
-
[styles$
|
|
14321
|
+
const styleNames = classnames(styles$W['data-table-row'], {
|
|
14322
|
+
[styles$W['data-table-row--clickable']]: onClick,
|
|
14323
|
+
[styles$W['data-table-row--selected']]: isSelected
|
|
14308
14324
|
});
|
|
14309
14325
|
const renderColumn = (columnElement, index) => {
|
|
14310
14326
|
const isUsingDataTableCell = columnElement && typeof columnElement === 'object' && 'type' in columnElement && (columnElement == null ? void 0 : columnElement.type) === DataTableCell;
|
|
@@ -14395,7 +14411,7 @@ const calculateScrollState = scrollContainer => {
|
|
|
14395
14411
|
return DATA_TABLE_SCROLL_STATES.NO_SCROLL;
|
|
14396
14412
|
};
|
|
14397
14413
|
|
|
14398
|
-
var styles$
|
|
14414
|
+
var styles$S = {"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"};
|
|
14399
14415
|
|
|
14400
14416
|
const useDataTableScrollState = stickyColumns => {
|
|
14401
14417
|
const scrollContainerRef = useRef(null);
|
|
@@ -14437,7 +14453,7 @@ const useDataTableScrollState = stickyColumns => {
|
|
|
14437
14453
|
};
|
|
14438
14454
|
};
|
|
14439
14455
|
|
|
14440
|
-
var styles$
|
|
14456
|
+
var styles$R = {"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"};
|
|
14441
14457
|
|
|
14442
14458
|
const DataTableCoverShadow = ({
|
|
14443
14459
|
isShowingColumns,
|
|
@@ -14455,11 +14471,11 @@ const DataTableCoverShadow = ({
|
|
|
14455
14471
|
return `calc(100% - ${headerHeight})`;
|
|
14456
14472
|
};
|
|
14457
14473
|
return React__default.createElement("div", {
|
|
14458
|
-
className: classnames(styles$
|
|
14459
|
-
[styles$
|
|
14460
|
-
[styles$
|
|
14461
|
-
[styles$
|
|
14462
|
-
[styles$
|
|
14474
|
+
className: classnames(styles$R['data-table-cover-shadow'], {
|
|
14475
|
+
[styles$R['data-table-cover-shadow--left']]: direction === 'left',
|
|
14476
|
+
[styles$R['data-table-cover-shadow--left-shadow']]: direction === 'left' && showShadow,
|
|
14477
|
+
[styles$R['data-table-cover-shadow--right']]: direction === 'right',
|
|
14478
|
+
[styles$R['data-table-cover-shadow--right-shadow']]: direction === 'right' && showShadow
|
|
14463
14479
|
}),
|
|
14464
14480
|
style: {
|
|
14465
14481
|
// @ts-expect-error This difines a custom CSS variable
|
|
@@ -14521,13 +14537,13 @@ const DataTableStickyColumnsContainer = ({
|
|
|
14521
14537
|
isShowingColumns: !!isShowingColumns,
|
|
14522
14538
|
showShadow: state === 'EMPTY' ? false : stickyColumns === 'left'
|
|
14523
14539
|
})), React__default.createElement("div", {
|
|
14524
|
-
className: classnames(styles$
|
|
14525
|
-
[styles$
|
|
14526
|
-
[styles$
|
|
14527
|
-
[styles$
|
|
14528
|
-
[styles$
|
|
14529
|
-
[styles$
|
|
14530
|
-
[styles$
|
|
14540
|
+
className: classnames(styles$S[containerClassName], {
|
|
14541
|
+
[styles$S[`${containerClassName}--with-footer`]]: isShowingFooter,
|
|
14542
|
+
[styles$S[`${containerClassName}--with-left-sticky-columns`]]: hasLeftColumnSticky,
|
|
14543
|
+
[styles$S[`${containerClassName}--with-left-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasLeftColumnSticky && hasScrollOnLeft : false,
|
|
14544
|
+
[styles$S[`${containerClassName}--with-right-sticky-columns`]]: hasRightColumnSticky,
|
|
14545
|
+
[styles$S[`${containerClassName}--with-right-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasRightColumnSticky && hasScrollOnRight : false,
|
|
14546
|
+
[styles$S[`${containerClassName}--no-shadow`]]: noShadow
|
|
14531
14547
|
}),
|
|
14532
14548
|
onScroll: onScroll,
|
|
14533
14549
|
ref: scrollContainerRef,
|
|
@@ -14535,11 +14551,11 @@ const DataTableStickyColumnsContainer = ({
|
|
|
14535
14551
|
}, children));
|
|
14536
14552
|
};
|
|
14537
14553
|
|
|
14538
|
-
var styles$
|
|
14554
|
+
var styles$Q = {"data-table-empty-state":"_fCHjG"};
|
|
14539
14555
|
|
|
14540
|
-
var styles$
|
|
14556
|
+
var styles$P = {"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"};
|
|
14541
14557
|
|
|
14542
|
-
var styles$
|
|
14558
|
+
var styles$O = {"empty-state-container-cta":"_X-dEs","empty-state-container-cta--inside-modal":"_63-SX"};
|
|
14543
14559
|
|
|
14544
14560
|
const EmptyStateContainerCTA = ({
|
|
14545
14561
|
isPaywall,
|
|
@@ -14556,8 +14572,8 @@ const EmptyStateContainerCTA = ({
|
|
|
14556
14572
|
size: BUTTON_SIZES.MIN_WIDTH_100
|
|
14557
14573
|
});
|
|
14558
14574
|
return React__default.createElement("div", {
|
|
14559
|
-
className: classnames(styles$
|
|
14560
|
-
[styles$
|
|
14575
|
+
className: classnames(styles$O['empty-state-container-cta'], {
|
|
14576
|
+
[styles$O['empty-state-container-cta--inside-modal']]: _isInsideModal
|
|
14561
14577
|
})
|
|
14562
14578
|
}, primaryButton, secondaryButton);
|
|
14563
14579
|
};
|
|
@@ -14581,7 +14597,7 @@ const EmptyStateContainerStack = ({
|
|
|
14581
14597
|
mediaComponent
|
|
14582
14598
|
}) => {
|
|
14583
14599
|
return React__default.createElement("div", {
|
|
14584
|
-
className: styles$
|
|
14600
|
+
className: styles$P['empty-state-container-stack'],
|
|
14585
14601
|
"data-testid": testId
|
|
14586
14602
|
}, mediaComponent ? mediaComponent : mediaUrl && React__default.createElement("img", {
|
|
14587
14603
|
src: mediaUrl,
|
|
@@ -14598,7 +14614,7 @@ const EmptyStateContainerStack = ({
|
|
|
14598
14614
|
as: "body",
|
|
14599
14615
|
alignment: "center"
|
|
14600
14616
|
}, title), React__default.createElement("div", {
|
|
14601
|
-
className: styles$
|
|
14617
|
+
className: styles$P['empty-state-container-stack__body']
|
|
14602
14618
|
}, children)), React__default.createElement(Stack, {
|
|
14603
14619
|
space: 8,
|
|
14604
14620
|
alignItems: "center"
|
|
@@ -14710,7 +14726,7 @@ const DataTableEmptyState = ({
|
|
|
14710
14726
|
columnIndex: shouldRenderStickyLeftCell ? 1 : 0,
|
|
14711
14727
|
colSpan: colSpan
|
|
14712
14728
|
}, React__default.createElement("div", {
|
|
14713
|
-
className: styles$
|
|
14729
|
+
className: styles$Q['data-table-empty-state']
|
|
14714
14730
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
14715
14731
|
mediaUrl: customImage,
|
|
14716
14732
|
mediaComponent: customImage === '' ? React__default.createElement(MagnifyingGlassIllustration, null) : undefined,
|
|
@@ -14794,7 +14810,7 @@ const DataTable = _ref => {
|
|
|
14794
14810
|
return null;
|
|
14795
14811
|
}
|
|
14796
14812
|
return React__default.createElement("div", {
|
|
14797
|
-
className: styles$
|
|
14813
|
+
className: styles$13['data-table__pagination-controls'],
|
|
14798
14814
|
"data-testid": testId && `${testId}-pagination-controls`
|
|
14799
14815
|
}, React__default.createElement(PaginationControls, {
|
|
14800
14816
|
hasPrevious: isLoading ? false : hasPrevious,
|
|
@@ -14817,7 +14833,7 @@ const DataTable = _ref => {
|
|
|
14817
14833
|
tableId
|
|
14818
14834
|
}
|
|
14819
14835
|
}, React__default.createElement("div", {
|
|
14820
|
-
className: classnames(styles$
|
|
14836
|
+
className: classnames(styles$13['data-table']),
|
|
14821
14837
|
ref: tableRef,
|
|
14822
14838
|
style: positionStyles
|
|
14823
14839
|
}, React__default.createElement(DataTableStickyColumnsContainer, {
|
|
@@ -14828,24 +14844,24 @@ const DataTable = _ref => {
|
|
|
14828
14844
|
placement: "top",
|
|
14829
14845
|
isShowingColumns: !!isShowingColumns
|
|
14830
14846
|
}), React__default.createElement("div", {
|
|
14831
|
-
className: classnames(styles$
|
|
14832
|
-
[styles$
|
|
14847
|
+
className: classnames(styles$13['data-table__content'], {
|
|
14848
|
+
[styles$13['data-table__content--with-scroll']]: isScrollableTable
|
|
14833
14849
|
}),
|
|
14834
14850
|
style: conditionalStyles,
|
|
14835
14851
|
id: `${tableId}-content`
|
|
14836
14852
|
}, state === DATA_TABLE_STATES.BACKGROUND_LOADING && React__default.createElement("div", {
|
|
14837
|
-
className: styles$
|
|
14853
|
+
className: styles$13['data-table__background-loading']
|
|
14838
14854
|
}, React__default.createElement(Spinner, null)), React__default.createElement("table", _extends({
|
|
14839
|
-
className: classnames(styles$
|
|
14840
|
-
[styles$
|
|
14855
|
+
className: classnames(styles$13['data-table__table'], {
|
|
14856
|
+
[styles$13['data-table__table--no-columns']]: !isShowingColumns
|
|
14841
14857
|
})
|
|
14842
14858
|
}, dataProps), columns && isShowingColumns && React__default.createElement(DataTableHeader, {
|
|
14843
14859
|
columns: columns,
|
|
14844
14860
|
onSort: onSort,
|
|
14845
14861
|
showActionMenu: isShowingContent && showActionMenu
|
|
14846
14862
|
}), React__default.createElement("tbody", {
|
|
14847
|
-
className: classnames(styles$
|
|
14848
|
-
[styles$
|
|
14863
|
+
className: classnames(styles$13['data-table__body'], {
|
|
14864
|
+
[styles$13['data-table__body--no-bottom-radius']]: isShowingFooter && isShowingContent
|
|
14849
14865
|
}),
|
|
14850
14866
|
"data-testid": testId
|
|
14851
14867
|
}, isShowingContent && content.map((item, index) => {
|
|
@@ -14864,7 +14880,7 @@ const DataTable = _ref => {
|
|
|
14864
14880
|
}), state === DATA_TABLE_STATES.SKELETON_LOADING && React__default.createElement(React__default.Fragment, null, skeletonRows.map((_, index) => React__default.createElement(SkeletonRow, {
|
|
14865
14881
|
key: index
|
|
14866
14882
|
})))), isShowingFooter && isShowingContent && React__default.createElement("tfoot", {
|
|
14867
|
-
className: styles$
|
|
14883
|
+
className: styles$13['data-table__footer'],
|
|
14868
14884
|
"data-testid": testId && `${testId}-footer`
|
|
14869
14885
|
}, footerComponent)))), !isShowingFooter && isScrollableTable && React__default.createElement(DataTableScrollFakeBorder, {
|
|
14870
14886
|
placement: "bottom",
|
|
@@ -14872,7 +14888,7 @@ const DataTable = _ref => {
|
|
|
14872
14888
|
})), React__default.createElement(Pagination, null));
|
|
14873
14889
|
};
|
|
14874
14890
|
|
|
14875
|
-
var styles$
|
|
14891
|
+
var styles$N = {"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"};
|
|
14876
14892
|
|
|
14877
14893
|
const AccordionItem = props => {
|
|
14878
14894
|
const {
|
|
@@ -14887,9 +14903,9 @@ const AccordionItem = props => {
|
|
|
14887
14903
|
} = item;
|
|
14888
14904
|
const isFocusedByClickRef = React__default.useRef(false);
|
|
14889
14905
|
return React__default.createElement("div", {
|
|
14890
|
-
className: styles$
|
|
14906
|
+
className: styles$N['accordion-item']
|
|
14891
14907
|
}, React__default.createElement("button", {
|
|
14892
|
-
className: styles$
|
|
14908
|
+
className: styles$N['accordion-item__header'],
|
|
14893
14909
|
onClick: () => {
|
|
14894
14910
|
if (isOpen) {
|
|
14895
14911
|
handleAccordionItemOpen(null);
|
|
@@ -14916,15 +14932,15 @@ const AccordionItem = props => {
|
|
|
14916
14932
|
}, typeof title === 'string' ? React__default.createElement(Text, {
|
|
14917
14933
|
emphasis: "bold"
|
|
14918
14934
|
}, title) : title, React__default.createElement(IconChevronDown, {
|
|
14919
|
-
className: styles$
|
|
14935
|
+
className: styles$N[`accordion-item__icon${isOpen ? '--active' : ''}`],
|
|
14920
14936
|
color: 'surface-on-color-subtle'
|
|
14921
14937
|
}))), React__default.createElement("div", {
|
|
14922
14938
|
"data-testid": `${isOpen ? 'accordion-item-' + id + '-open' : 'accordion-item-' + id + '-closed'}`,
|
|
14923
|
-
className: styles$
|
|
14939
|
+
className: styles$N[`accordion-item__content${isOpen ? '--active' : ''}`]
|
|
14924
14940
|
}, isOpen && React__default.createElement(Text, null, content)));
|
|
14925
14941
|
};
|
|
14926
14942
|
|
|
14927
|
-
var styles$
|
|
14943
|
+
var styles$M = {"accordion":"_058SP"};
|
|
14928
14944
|
|
|
14929
14945
|
const _excluded$bb = ["items", "onExpand", "defaultOpenId"];
|
|
14930
14946
|
const Accordion = _ref => {
|
|
@@ -14952,7 +14968,7 @@ const Accordion = _ref => {
|
|
|
14952
14968
|
isAccordionMounted: true
|
|
14953
14969
|
}
|
|
14954
14970
|
}, React__default.createElement("div", _extends({
|
|
14955
|
-
className: styles$
|
|
14971
|
+
className: styles$M['accordion']
|
|
14956
14972
|
}, dataProps), items.map((item, index) => {
|
|
14957
14973
|
const id = item.id || index.toString();
|
|
14958
14974
|
return React__default.createElement(AccordionItem, {
|
|
@@ -14966,7 +14982,7 @@ const Accordion = _ref => {
|
|
|
14966
14982
|
})));
|
|
14967
14983
|
};
|
|
14968
14984
|
|
|
14969
|
-
var styles$
|
|
14985
|
+
var styles$L = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
|
|
14970
14986
|
|
|
14971
14987
|
const ActionList = ({
|
|
14972
14988
|
children,
|
|
@@ -14978,15 +14994,15 @@ const ActionList = ({
|
|
|
14978
14994
|
const translate = useTranslation('ActionList');
|
|
14979
14995
|
const hasChildren = React__default.Children.count(children) > 0;
|
|
14980
14996
|
return React__default.createElement("div", {
|
|
14981
|
-
className: styles$
|
|
14997
|
+
className: styles$L['action-list'],
|
|
14982
14998
|
"data-testid": testId,
|
|
14983
14999
|
style: {
|
|
14984
15000
|
maxHeight: maxHeight
|
|
14985
15001
|
}
|
|
14986
15002
|
}, title && React__default.createElement("div", {
|
|
14987
|
-
className: styles$
|
|
15003
|
+
className: styles$L['action-list__title']
|
|
14988
15004
|
}, title), hasChildren ? children : React__default.createElement("div", {
|
|
14989
|
-
className: styles$
|
|
15005
|
+
className: styles$L['action-list__empty-state']
|
|
14990
15006
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
14991
15007
|
title: (emptyState == null ? void 0 : emptyState.title) || translate('emptyStateTitle'),
|
|
14992
15008
|
mediaUrl: emptyState == null ? void 0 : emptyState.image,
|
|
@@ -15164,7 +15180,7 @@ const useSelectFieldControllers = ({
|
|
|
15164
15180
|
return controllers;
|
|
15165
15181
|
};
|
|
15166
15182
|
|
|
15167
|
-
var styles$
|
|
15183
|
+
var styles$K = {"custom-control":"_pXQqq"};
|
|
15168
15184
|
|
|
15169
15185
|
const _excluded$ba = ["children"];
|
|
15170
15186
|
function CustomControl(_ref) {
|
|
@@ -15178,7 +15194,7 @@ function CustomControl(_ref) {
|
|
|
15178
15194
|
} = props.selectProps.componentsProps;
|
|
15179
15195
|
const selectedOption = (_props$getValue = props.getValue()) == null ? void 0 : _props$getValue[0];
|
|
15180
15196
|
return React__default.createElement(components.Control, _extends({}, props), SelectedOptionPrefix && selectedOption ? React__default.createElement("div", {
|
|
15181
|
-
className: styles$
|
|
15197
|
+
className: styles$K['custom-control'],
|
|
15182
15198
|
style: {
|
|
15183
15199
|
paddingLeft: selectedOption ? 8 : 0
|
|
15184
15200
|
}
|
|
@@ -15357,9 +15373,9 @@ const CustomContainer = props => {
|
|
|
15357
15373
|
}));
|
|
15358
15374
|
};
|
|
15359
15375
|
|
|
15360
|
-
var styles$
|
|
15376
|
+
var styles$J = {"custom-menu-text-field":"_AAUjm","custom-menu-hr":"_mFLK9","custom-menu-div":"_1XpI4"};
|
|
15361
15377
|
|
|
15362
|
-
var styles$
|
|
15378
|
+
var styles$I = {"creatable-button--align-left":"_Qw267","creatable-button":"_f9V5D"};
|
|
15363
15379
|
|
|
15364
15380
|
/**
|
|
15365
15381
|
* Shared creatable button component used in CustomMenu and CustomGroupWithCreate.
|
|
@@ -15383,8 +15399,8 @@ const CreatableButton = ({
|
|
|
15383
15399
|
};
|
|
15384
15400
|
if (!button || typeof button === 'string') {
|
|
15385
15401
|
return React__default.createElement("div", {
|
|
15386
|
-
className: classnames(styles$
|
|
15387
|
-
[styles$
|
|
15402
|
+
className: classnames(styles$I['creatable-button'], {
|
|
15403
|
+
[styles$I['creatable-button--align-left']]: _alignLeft
|
|
15388
15404
|
})
|
|
15389
15405
|
}, React__default.createElement(Button, {
|
|
15390
15406
|
theme: "link-primary",
|
|
@@ -15409,8 +15425,8 @@ const CreatableButton = ({
|
|
|
15409
15425
|
overrideProps.theme = 'link-primary';
|
|
15410
15426
|
}
|
|
15411
15427
|
return React__default.createElement("div", {
|
|
15412
|
-
className: classnames(styles$
|
|
15413
|
-
[styles$
|
|
15428
|
+
className: classnames(styles$I['creatable-button'], {
|
|
15429
|
+
[styles$I['creatable-button--align-left']]: _alignLeft
|
|
15414
15430
|
})
|
|
15415
15431
|
}, React__default.cloneElement(button, overrideProps));
|
|
15416
15432
|
};
|
|
@@ -15436,7 +15452,7 @@ const CreateInputForm = ({
|
|
|
15436
15452
|
flex: [1],
|
|
15437
15453
|
flexItems: true
|
|
15438
15454
|
}, React__default.createElement("input", {
|
|
15439
|
-
className: classnames(styles$
|
|
15455
|
+
className: classnames(styles$1s['text-field'], inputClassName),
|
|
15440
15456
|
autoCorrect: "off",
|
|
15441
15457
|
autoComplete: "off",
|
|
15442
15458
|
spellCheck: "false",
|
|
@@ -15502,7 +15518,7 @@ function CustomMenu(_ref) {
|
|
|
15502
15518
|
return React__default.createElement(components.Menu, _extends({}, props), React__default.createElement("div", {
|
|
15503
15519
|
ref: containerRef
|
|
15504
15520
|
}, children, React__default.createElement("hr", {
|
|
15505
|
-
className: styles$
|
|
15521
|
+
className: styles$J['custom-menu-hr']
|
|
15506
15522
|
}), !showFooter ? React__default.createElement(CreatableButton, {
|
|
15507
15523
|
creatableButton: creatableButton,
|
|
15508
15524
|
onClick: () => setShowFooter(true),
|
|
@@ -15513,13 +15529,13 @@ function CustomMenu(_ref) {
|
|
|
15513
15529
|
onMenuInputFocus: onMenuInputFocus,
|
|
15514
15530
|
onSubmit: onCreateButton,
|
|
15515
15531
|
defaultValue: inputDefaultValue,
|
|
15516
|
-
wrapperClassName: styles$
|
|
15517
|
-
inputClassName: styles$
|
|
15532
|
+
wrapperClassName: styles$J['custom-menu-div'],
|
|
15533
|
+
inputClassName: styles$J['custom-menu-text-field'],
|
|
15518
15534
|
testId: "select-create-option-input"
|
|
15519
15535
|
})));
|
|
15520
15536
|
}
|
|
15521
15537
|
|
|
15522
|
-
var styles$
|
|
15538
|
+
var styles$H = {"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"};
|
|
15523
15539
|
|
|
15524
15540
|
function CustomGroupWithCreate(props) {
|
|
15525
15541
|
const {
|
|
@@ -15553,7 +15569,7 @@ function CustomGroupWithCreate(props) {
|
|
|
15553
15569
|
return React__default.createElement("div", {
|
|
15554
15570
|
ref: containerRef
|
|
15555
15571
|
}, React__default.createElement(components.Group, _extends({}, props)), !isInputActive ? React__default.createElement("div", {
|
|
15556
|
-
className: styles$
|
|
15572
|
+
className: styles$H['custom-group-with-create-button-wrapper']
|
|
15557
15573
|
}, React__default.createElement(CreatableButton, {
|
|
15558
15574
|
creatableButton: creatableButton,
|
|
15559
15575
|
onClick: () => setActiveGroupLabel(groupLabel),
|
|
@@ -15565,8 +15581,8 @@ function CustomGroupWithCreate(props) {
|
|
|
15565
15581
|
onMenuInputFocus: onMenuInputFocus,
|
|
15566
15582
|
onSubmit: onCreateButton,
|
|
15567
15583
|
defaultValue: inputDefaultValue,
|
|
15568
|
-
wrapperClassName: styles$
|
|
15569
|
-
inputClassName: styles$
|
|
15584
|
+
wrapperClassName: styles$H['custom-group-with-create-input-wrapper'],
|
|
15585
|
+
inputClassName: styles$H['custom-group-with-create-text-field'],
|
|
15570
15586
|
testId: `select-create-option-input-${groupLabel}`
|
|
15571
15587
|
}));
|
|
15572
15588
|
}
|
|
@@ -15675,7 +15691,7 @@ const useSelectField = _ref => {
|
|
|
15675
15691
|
};
|
|
15676
15692
|
};
|
|
15677
15693
|
|
|
15678
|
-
var styles$
|
|
15694
|
+
var styles$G = {"select-field__suffix":"_vqC1M"};
|
|
15679
15695
|
|
|
15680
15696
|
/** Simple dropdown field where the user chooses one option from a predefined list. */
|
|
15681
15697
|
const SelectField = props => {
|
|
@@ -15685,7 +15701,7 @@ const SelectField = props => {
|
|
|
15685
15701
|
} = useSelectField(props);
|
|
15686
15702
|
//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
|
|
15687
15703
|
const suffixWithMargin = props.suffix ? React__default.createElement("div", {
|
|
15688
|
-
className: styles$
|
|
15704
|
+
className: styles$G['select-field__suffix']
|
|
15689
15705
|
}, props.suffix) : undefined;
|
|
15690
15706
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
15691
15707
|
prefix: props.prefix,
|
|
@@ -15730,9 +15746,9 @@ const ToolbarSelect = _ref => {
|
|
|
15730
15746
|
}, rest));
|
|
15731
15747
|
};
|
|
15732
15748
|
|
|
15733
|
-
var styles$
|
|
15749
|
+
var styles$F = {"date-filter":"_PyXfe","date-filter--wide":"_P6ttU"};
|
|
15734
15750
|
|
|
15735
|
-
var styles$
|
|
15751
|
+
var styles$E = {"date-filter-display":"_N37zE","date-filter-display--non-interactive":"_42Bvz","date-filter-display--wide":"_h8n2w","date-filter-display__display-icon":"_i08yV"};
|
|
15736
15752
|
|
|
15737
15753
|
const DATE_FILTER_MODE = {
|
|
15738
15754
|
DAY: 'day',
|
|
@@ -15786,8 +15802,8 @@ const DateFilterDisplay = forwardRef(({
|
|
|
15786
15802
|
onClick
|
|
15787
15803
|
}, ref) => {
|
|
15788
15804
|
return React__default.createElement("button", {
|
|
15789
|
-
className: classnames(styles$
|
|
15790
|
-
[styles$
|
|
15805
|
+
className: classnames(styles$E['date-filter-display'], {
|
|
15806
|
+
[styles$E['date-filter-display--wide']]: mode === DATE_FILTER_MODE.WEEK
|
|
15791
15807
|
}),
|
|
15792
15808
|
onClick: onClick,
|
|
15793
15809
|
tabIndex: mode === DATE_FILTER_MODE.MONTH ? -1 : undefined,
|
|
@@ -15796,7 +15812,7 @@ const DateFilterDisplay = forwardRef(({
|
|
|
15796
15812
|
space: 12,
|
|
15797
15813
|
alignItems: "center"
|
|
15798
15814
|
}, React__default.createElement("div", {
|
|
15799
|
-
className: classnames(styles$
|
|
15815
|
+
className: classnames(styles$E['date-filter-display__display-icon'])
|
|
15800
15816
|
}, React__default.createElement(IconCalendarAlt, {
|
|
15801
15817
|
size: "flexible",
|
|
15802
15818
|
color: "surface-on-color-subtle"
|
|
@@ -15807,7 +15823,7 @@ const DateFilterDisplay = forwardRef(({
|
|
|
15807
15823
|
})));
|
|
15808
15824
|
});
|
|
15809
15825
|
|
|
15810
|
-
var styles$
|
|
15826
|
+
var styles$D = {"date-stepper":"_9wFtw","date-stepper--backward":"_OrtcR","date-stepper--forward":"_oYoUt"};
|
|
15811
15827
|
|
|
15812
15828
|
const handleDateStepper = (date, mode, stepDirection, onChange) => {
|
|
15813
15829
|
const step = stepDirection === STEP_DIRECTION.FORWARD ? 1 : -1;
|
|
@@ -15836,9 +15852,9 @@ const DateFilterStepper = ({
|
|
|
15836
15852
|
date
|
|
15837
15853
|
}) => {
|
|
15838
15854
|
return React__default.createElement("button", {
|
|
15839
|
-
className: classnames(styles$
|
|
15840
|
-
[styles$
|
|
15841
|
-
[styles$
|
|
15855
|
+
className: classnames(styles$D['date-stepper'], {
|
|
15856
|
+
[styles$D['date-stepper--backward']]: stepDirection === STEP_DIRECTION.BACKWARD,
|
|
15857
|
+
[styles$D['date-stepper--forward']]: stepDirection === STEP_DIRECTION.FORWARD
|
|
15842
15858
|
}),
|
|
15843
15859
|
onClick: () => handleDateStepper(date, mode, stepDirection, onChange)
|
|
15844
15860
|
}, children);
|
|
@@ -15903,9 +15919,9 @@ const CalendarMonth = ({
|
|
|
15903
15919
|
}
|
|
15904
15920
|
const MONTHS = [...Array(12).keys()];
|
|
15905
15921
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
15906
|
-
className: styles$
|
|
15922
|
+
className: styles$1a['calendar']
|
|
15907
15923
|
}, React__default.createElement("div", {
|
|
15908
|
-
className: styles$
|
|
15924
|
+
className: styles$1a['calendar__overlay'],
|
|
15909
15925
|
ref: ref => setCalendarRef(ref),
|
|
15910
15926
|
style: _extends({}, calendarPosition, {
|
|
15911
15927
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -15983,8 +15999,8 @@ const DateFilter = ({
|
|
|
15983
15999
|
const onClickOutside = useCallback(() => setCalendarOpen(false), [setCalendarOpen]);
|
|
15984
16000
|
return React__default.createElement("div", {
|
|
15985
16001
|
"data-testid": testId,
|
|
15986
|
-
className: classnames(styles$
|
|
15987
|
-
[styles$
|
|
16002
|
+
className: classnames(styles$F['date-filter'], {
|
|
16003
|
+
[styles$F['date-filter--wide']]: _mode === DATE_FILTER_MODE.WEEK
|
|
15988
16004
|
})
|
|
15989
16005
|
}, React__default.createElement(Inline, {
|
|
15990
16006
|
space: 0
|
|
@@ -16028,7 +16044,7 @@ const DateFilter = ({
|
|
|
16028
16044
|
}));
|
|
16029
16045
|
};
|
|
16030
16046
|
|
|
16031
|
-
var styles$
|
|
16047
|
+
var styles$C = {"segmented-control":"_RezMY","segmented-control__button":"_lehFG","segmented-control__button--selected":"_Fr5kb"};
|
|
16032
16048
|
|
|
16033
16049
|
const SegmentedControl = ({
|
|
16034
16050
|
options,
|
|
@@ -16040,21 +16056,21 @@ const SegmentedControl = ({
|
|
|
16040
16056
|
return option === value;
|
|
16041
16057
|
};
|
|
16042
16058
|
return React__default.createElement("div", {
|
|
16043
|
-
className: styles$
|
|
16059
|
+
className: styles$C['segmented-control'],
|
|
16044
16060
|
"data-testid": testId
|
|
16045
16061
|
}, options.map(option => React__default.createElement(React__default.Fragment, {
|
|
16046
16062
|
key: option
|
|
16047
16063
|
}, React__default.createElement("button", {
|
|
16048
16064
|
onClick: () => onChange(option),
|
|
16049
|
-
className: classnames(styles$
|
|
16050
|
-
[styles$
|
|
16065
|
+
className: classnames(styles$C['segmented-control__button'], {
|
|
16066
|
+
[styles$C['segmented-control__button--selected']]: isSelected(option)
|
|
16051
16067
|
})
|
|
16052
16068
|
}, option))));
|
|
16053
16069
|
};
|
|
16054
16070
|
|
|
16055
|
-
var styles$
|
|
16071
|
+
var styles$B = {"form--standard-size":"_8-Ykj"};
|
|
16056
16072
|
|
|
16057
|
-
var styles$
|
|
16073
|
+
var styles$A = {"form-section":"_3uYIj","form-section__title":"_2WdOf","form-section__subtitle":"_zybxx","form-section--no-margin":"_xT-U1"};
|
|
16058
16074
|
|
|
16059
16075
|
const FormSection = ({
|
|
16060
16076
|
children,
|
|
@@ -16067,13 +16083,13 @@ const FormSection = ({
|
|
|
16067
16083
|
const content = React__default.createElement(Stack, null, (title || subtitle) && React__default.createElement(Stack, {
|
|
16068
16084
|
space: 8
|
|
16069
16085
|
}, title && React__default.createElement("h2", {
|
|
16070
|
-
className: classnames(styles$
|
|
16086
|
+
className: classnames(styles$A['form-section__title'])
|
|
16071
16087
|
}, title), subtitle && React__default.createElement("h3", {
|
|
16072
|
-
className: classnames(styles$
|
|
16088
|
+
className: classnames(styles$A['form-section__subtitle'])
|
|
16073
16089
|
}, subtitle)), children);
|
|
16074
16090
|
return React__default.createElement("div", {
|
|
16075
|
-
className: classnames(styles$
|
|
16076
|
-
[styles$
|
|
16091
|
+
className: classnames(styles$A['form-section'], {
|
|
16092
|
+
[styles$A['form-section--no-margin']]: _noMargin || as === 'card'
|
|
16077
16093
|
}),
|
|
16078
16094
|
"data-testid": testId
|
|
16079
16095
|
}, as === 'card' ? React__default.createElement(Card, {
|
|
@@ -16093,7 +16109,7 @@ const updateButtonProps = (child, newProps) => {
|
|
|
16093
16109
|
}, newProps, child.props));
|
|
16094
16110
|
};
|
|
16095
16111
|
|
|
16096
|
-
var styles$
|
|
16112
|
+
var styles$z = {"form-footer":"_4ksfB"};
|
|
16097
16113
|
|
|
16098
16114
|
const FormFooterActions = ({
|
|
16099
16115
|
actions
|
|
@@ -16129,7 +16145,7 @@ const FormFooter = ({
|
|
|
16129
16145
|
});
|
|
16130
16146
|
const isInlineChildren = React__default.Children.count(children) === 1 && React__default.isValidElement(children) && children.type === Inline;
|
|
16131
16147
|
return React__default.createElement("div", {
|
|
16132
|
-
className: classnames(styles$
|
|
16148
|
+
className: classnames(styles$z['form-footer']),
|
|
16133
16149
|
"data-testid": testId
|
|
16134
16150
|
}, actions && React__default.createElement(FormFooterActions, {
|
|
16135
16151
|
actions: actions
|
|
@@ -16167,13 +16183,13 @@ const Form = ({
|
|
|
16167
16183
|
}, React__default.createElement("form", {
|
|
16168
16184
|
onSubmit: onSubmit ? handleSubmit : formik == null ? void 0 : formik.handleSubmit,
|
|
16169
16185
|
className: classnames({
|
|
16170
|
-
[styles$
|
|
16186
|
+
[styles$B['form--standard-size']]: !_wide
|
|
16171
16187
|
}),
|
|
16172
16188
|
"data-testid": testId
|
|
16173
16189
|
}, _stackContent ? React__default.createElement(Stack, null, formattedChildren) : formattedChildren));
|
|
16174
16190
|
};
|
|
16175
16191
|
|
|
16176
|
-
var styles$
|
|
16192
|
+
var styles$y = {"form-row":"_xX-RS"};
|
|
16177
16193
|
|
|
16178
16194
|
const SIZE_25_PERCENT = '25%';
|
|
16179
16195
|
const SIZE_33_PERCENT = '33.333%';
|
|
@@ -16200,14 +16216,14 @@ const FormRow = ({
|
|
|
16200
16216
|
space: _space,
|
|
16201
16217
|
testId: testId,
|
|
16202
16218
|
alignItems: "stretch",
|
|
16203
|
-
extraClass: styles$
|
|
16219
|
+
extraClass: styles$y['form-row']
|
|
16204
16220
|
}, children, additionalColumns.map((_, index) => React__default.createElement("span", {
|
|
16205
16221
|
key: index,
|
|
16206
16222
|
"data-testid": "empty-cell"
|
|
16207
16223
|
})));
|
|
16208
16224
|
};
|
|
16209
16225
|
|
|
16210
|
-
var styles$
|
|
16226
|
+
var styles$x = {"text-field":"_JaB08","text-field--focus":"_62RIR","text-field--disabled":"_CDt23","text-field--invalid":"_wf4XP","text-field__toolbar":"_7xVsj"};
|
|
16211
16227
|
|
|
16212
16228
|
const useGrowTextAreaRef = (minHeight, maxHeight, autoGrow, forwardedRef) => {
|
|
16213
16229
|
const textareaRef = useRef(null);
|
|
@@ -16277,10 +16293,10 @@ const TextAreaField = ({
|
|
|
16277
16293
|
return React__default.createElement(Field, _extends({}, fieldProps, {
|
|
16278
16294
|
characterCount: controllers.value !== undefined && maxLength ? maxLength - controllers.value.length : undefined
|
|
16279
16295
|
}), React__default.createElement("div", {
|
|
16280
|
-
className: classnames(styles$
|
|
16281
|
-
[styles$
|
|
16282
|
-
[styles$
|
|
16283
|
-
[styles$
|
|
16296
|
+
className: classnames(styles$x['text-field'], {
|
|
16297
|
+
[styles$x['text-field--invalid']]: hasError,
|
|
16298
|
+
[styles$x['text-field--disabled']]: disabled,
|
|
16299
|
+
[styles$x['text-field--focus']]: hasFocus
|
|
16284
16300
|
}),
|
|
16285
16301
|
ref: containerRef,
|
|
16286
16302
|
onClick: event => {
|
|
@@ -16312,7 +16328,7 @@ const TextAreaField = ({
|
|
|
16312
16328
|
ref: textAreaRef,
|
|
16313
16329
|
maxLength: maxLength
|
|
16314
16330
|
}), toolbar && React__default.createElement("div", {
|
|
16315
|
-
className: styles$
|
|
16331
|
+
className: styles$x['text-field__toolbar'],
|
|
16316
16332
|
id: `${controllers.id}-toolbar`,
|
|
16317
16333
|
ref: toolbarRef,
|
|
16318
16334
|
onClick: event => {
|
|
@@ -16347,7 +16363,7 @@ const TextFieldElement = (_ref, ref) => {
|
|
|
16347
16363
|
/** A basic open input field used to get text from the user, with options to add a prefix or suffix element if necessary. Accepts any characters, so do not use it if you want to limit the format of the input to numbers only. */
|
|
16348
16364
|
const TextField = forwardRef(TextFieldElement);
|
|
16349
16365
|
|
|
16350
|
-
var styles$
|
|
16366
|
+
var styles$w = {"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"};
|
|
16351
16367
|
|
|
16352
16368
|
const useMultiSelectFieldControllers = ({
|
|
16353
16369
|
name,
|
|
@@ -16412,10 +16428,10 @@ const CreatableOption = ({
|
|
|
16412
16428
|
};
|
|
16413
16429
|
return React__default.createElement(React__default.Fragment, null, !isCreatingOption && React__default.createElement("div", {
|
|
16414
16430
|
key: 'pill-select-field-create-option',
|
|
16415
|
-
className: styles$
|
|
16431
|
+
className: styles$w['pill-select-field']
|
|
16416
16432
|
}, React__default.createElement("button", {
|
|
16417
16433
|
"data-testid": testId ? `${testId}-create-option` : undefined,
|
|
16418
|
-
className: styles$
|
|
16434
|
+
className: styles$w['pill-select-field__add-new-input'],
|
|
16419
16435
|
onClick: () => {
|
|
16420
16436
|
setIsCreatingOption(true);
|
|
16421
16437
|
setNewOptionLabel('');
|
|
@@ -16424,9 +16440,9 @@ const CreatableOption = ({
|
|
|
16424
16440
|
size: "small"
|
|
16425
16441
|
}), createOptionLabel)), isCreatingOption && React__default.createElement("div", {
|
|
16426
16442
|
key: 'pill-select-field-creating-option',
|
|
16427
|
-
className: styles$
|
|
16443
|
+
className: styles$w['pill-select-field']
|
|
16428
16444
|
}, React__default.createElement("input", {
|
|
16429
|
-
className: styles$
|
|
16445
|
+
className: styles$w['pill-select-field__creating-input'],
|
|
16430
16446
|
name: `${name}-pill-select-field-creating-option`,
|
|
16431
16447
|
id: 'pill-select-field-creating-option',
|
|
16432
16448
|
type: "text",
|
|
@@ -16447,7 +16463,7 @@ const CreatableOption = ({
|
|
|
16447
16463
|
}
|
|
16448
16464
|
}
|
|
16449
16465
|
}), React__default.createElement("span", {
|
|
16450
|
-
className: styles$
|
|
16466
|
+
className: styles$w['pill-select-field__creating-custom-input']
|
|
16451
16467
|
}, !newOptionLabel && React__default.createElement(Text, {
|
|
16452
16468
|
as: "body",
|
|
16453
16469
|
color: "surface-on-color-disabled"
|
|
@@ -16498,7 +16514,7 @@ const PillSelectField = ({
|
|
|
16498
16514
|
}
|
|
16499
16515
|
};
|
|
16500
16516
|
return React__default.createElement("button", {
|
|
16501
|
-
className: styles$
|
|
16517
|
+
className: styles$w['pill-select-field__removable-icon'],
|
|
16502
16518
|
onClick: handleClick,
|
|
16503
16519
|
disabled: disabled
|
|
16504
16520
|
}, React__default.createElement(IconTimes, {
|
|
@@ -16515,7 +16531,7 @@ const PillSelectField = ({
|
|
|
16515
16531
|
const itemId = `${controllers.id}-${itemIdentifier}`;
|
|
16516
16532
|
return React__default.createElement("div", {
|
|
16517
16533
|
key: itemIdentifier,
|
|
16518
|
-
className: styles$
|
|
16534
|
+
className: styles$w['pill-select-field']
|
|
16519
16535
|
}, React__default.createElement("input", {
|
|
16520
16536
|
name: `${name}-${itemIdentifier}`,
|
|
16521
16537
|
id: itemId,
|
|
@@ -16535,7 +16551,7 @@ const PillSelectField = ({
|
|
|
16535
16551
|
controllers.onChange(newValue);
|
|
16536
16552
|
}
|
|
16537
16553
|
}), React__default.createElement("span", {
|
|
16538
|
-
className: styles$
|
|
16554
|
+
className: styles$w['pill-select-field__custom-input']
|
|
16539
16555
|
}, option.label, option.isRemovable && React__default.createElement(RemoveButton, {
|
|
16540
16556
|
option: option
|
|
16541
16557
|
})));
|
|
@@ -16584,9 +16600,9 @@ const useRadioGroupFieldContext = () => {
|
|
|
16584
16600
|
return context;
|
|
16585
16601
|
};
|
|
16586
16602
|
|
|
16587
|
-
var styles$
|
|
16603
|
+
var styles$v = {"label":"_xzukU","label--truncate":"_iVWRB","caption":"_JNfQO","radio-group-field__label":"_2KvuU","radio-group-field__caption":"_ZeIOd"};
|
|
16588
16604
|
|
|
16589
|
-
var styles$
|
|
16605
|
+
var styles$u = {"label":"_s7mjc","label--truncate":"_dZjDs","caption":"_JIw-5","radio-group-box-option":"_IIX-P","radio-group-box-option__box":"_P588B","radio-group-box-option__box--disabled":"_Ir3Og","radio-group-box-option__label":"_U--9r","radio-group-box-option__label--disabled":"_Lvxmy","radio-group-box-option__caption":"_NC-bO","radio-group-box-option__caption--disabled":"_04Cjp"};
|
|
16590
16606
|
|
|
16591
16607
|
const RadioGroupBoxOption = ({
|
|
16592
16608
|
value,
|
|
@@ -16603,7 +16619,7 @@ const RadioGroupBoxOption = ({
|
|
|
16603
16619
|
id: inputId
|
|
16604
16620
|
});
|
|
16605
16621
|
return React__default.createElement("label", {
|
|
16606
|
-
className: styles$
|
|
16622
|
+
className: styles$u['radio-group-box-option']
|
|
16607
16623
|
}, React__default.createElement("input", {
|
|
16608
16624
|
type: "radio",
|
|
16609
16625
|
"data-testid": testId,
|
|
@@ -16614,8 +16630,8 @@ const RadioGroupBoxOption = ({
|
|
|
16614
16630
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
16615
16631
|
disabled: radioGroupContext.disabled || disabled
|
|
16616
16632
|
}), React__default.createElement("div", {
|
|
16617
|
-
className: classnames(styles$
|
|
16618
|
-
[styles$
|
|
16633
|
+
className: classnames(styles$u['radio-group-box-option__box'], {
|
|
16634
|
+
[styles$u['radio-group-box-option__box--disabled']]: radioGroupContext.disabled || disabled
|
|
16619
16635
|
})
|
|
16620
16636
|
}, React__default.createElement(Stack, {
|
|
16621
16637
|
space: 16,
|
|
@@ -16625,17 +16641,17 @@ const RadioGroupBoxOption = ({
|
|
|
16625
16641
|
space: 8,
|
|
16626
16642
|
alignItems: "center"
|
|
16627
16643
|
}, label && React__default.createElement("div", {
|
|
16628
|
-
className: classnames(styles$
|
|
16629
|
-
[styles$
|
|
16644
|
+
className: classnames(styles$u['radio-group-box-option__label'], {
|
|
16645
|
+
[styles$u['radio-group-box-option__label--disabled']]: radioGroupContext.disabled || disabled
|
|
16630
16646
|
})
|
|
16631
16647
|
}, label), caption && React__default.createElement("div", {
|
|
16632
|
-
className: classnames(styles$
|
|
16633
|
-
[styles$
|
|
16648
|
+
className: classnames(styles$u['radio-group-box-option__caption'], {
|
|
16649
|
+
[styles$u['radio-group-box-option__caption--disabled']]: radioGroupContext.disabled || disabled
|
|
16634
16650
|
})
|
|
16635
16651
|
}, caption)))));
|
|
16636
16652
|
};
|
|
16637
16653
|
|
|
16638
|
-
var styles$
|
|
16654
|
+
var styles$t = {"radio-group-option":"_7fVpn","radio-group-option__caption":"_VD7SO","radio-group-option__custom-input":"_Yfxkl"};
|
|
16639
16655
|
|
|
16640
16656
|
/** RadioGroupField form element. */
|
|
16641
16657
|
const RadioGroupOption = ({
|
|
@@ -16657,7 +16673,7 @@ const RadioGroupOption = ({
|
|
|
16657
16673
|
space: 8,
|
|
16658
16674
|
alignItems: "center"
|
|
16659
16675
|
}, React__default.createElement("div", {
|
|
16660
|
-
className: styles$
|
|
16676
|
+
className: styles$t['radio-group-option']
|
|
16661
16677
|
}, React__default.createElement("input", {
|
|
16662
16678
|
type: "radio",
|
|
16663
16679
|
"data-testid": testId,
|
|
@@ -16668,11 +16684,11 @@ const RadioGroupOption = ({
|
|
|
16668
16684
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
16669
16685
|
disabled: radioGroupContext.disabled || disabled
|
|
16670
16686
|
}), React__default.createElement("span", {
|
|
16671
|
-
className: styles$
|
|
16687
|
+
className: styles$t['radio-group-option__custom-input']
|
|
16672
16688
|
})), label && React__default.createElement(Label, {
|
|
16673
16689
|
htmlFor: id
|
|
16674
16690
|
}, label)), caption && React__default.createElement("div", {
|
|
16675
|
-
className: styles$
|
|
16691
|
+
className: styles$t['radio-group-option__caption']
|
|
16676
16692
|
}, React__default.createElement(Caption, {
|
|
16677
16693
|
fieldId: id
|
|
16678
16694
|
}, caption)));
|
|
@@ -16803,7 +16819,7 @@ const RadioGroupField = ({
|
|
|
16803
16819
|
}, React__default.createElement(Stack, {
|
|
16804
16820
|
space: _space
|
|
16805
16821
|
}, label && React__default.createElement("div", {
|
|
16806
|
-
className: styles$
|
|
16822
|
+
className: styles$v['radio-group-field__label']
|
|
16807
16823
|
}, label), React__default.createElement(Stack, {
|
|
16808
16824
|
space: 8
|
|
16809
16825
|
}, optionsType === OPTION_TYPES.RADIO ? React__default.createElement(RadioOptions, {
|
|
@@ -16815,21 +16831,21 @@ const RadioGroupField = ({
|
|
|
16815
16831
|
testId: testId,
|
|
16816
16832
|
space: _space
|
|
16817
16833
|
}, children), caption && React__default.createElement("div", {
|
|
16818
|
-
className: styles$
|
|
16834
|
+
className: styles$v['radio-group-caption']
|
|
16819
16835
|
}, caption), controllers.error && React__default.createElement(ErrorMessage, null, controllers.error))));
|
|
16820
16836
|
};
|
|
16821
16837
|
|
|
16822
|
-
var styles$
|
|
16838
|
+
var styles$s = {"text-field":"_6Of1F","text-field--invalid":"_NQPNK","text-field--prefixed":"_BpQWQ","text-field--suffixed":"_cpYWb","password-container":"_pAoib","password-toggle":"_WVvS6","password-toggle--disabled":"_G29N3"};
|
|
16823
16839
|
|
|
16824
|
-
var styles$
|
|
16840
|
+
var styles$r = {"password-criteria":"_1ruWK","password-criteria--invalid":"_xR7tb"};
|
|
16825
16841
|
|
|
16826
16842
|
const PasswordCriteria = ({
|
|
16827
16843
|
met,
|
|
16828
16844
|
children
|
|
16829
16845
|
}) => {
|
|
16830
16846
|
return React__default.createElement("span", {
|
|
16831
|
-
className: classnames(styles$
|
|
16832
|
-
[styles$
|
|
16847
|
+
className: classnames(styles$r['password-criteria'], {
|
|
16848
|
+
[styles$r['password-criteria--invalid']]: !met
|
|
16833
16849
|
})
|
|
16834
16850
|
}, React__default.createElement(Inline, {
|
|
16835
16851
|
space: met ? 4 : 8
|
|
@@ -16902,12 +16918,12 @@ const PasswordField = ({
|
|
|
16902
16918
|
error: controllers.error
|
|
16903
16919
|
};
|
|
16904
16920
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
16905
|
-
className: styles$
|
|
16921
|
+
className: styles$s['password-container']
|
|
16906
16922
|
}, React__default.createElement("input", {
|
|
16907
16923
|
name: name,
|
|
16908
16924
|
id: controllers.id,
|
|
16909
|
-
className: classnames(styles$
|
|
16910
|
-
[styles$
|
|
16925
|
+
className: classnames(styles$s['text-field'], {
|
|
16926
|
+
[styles$s['text-field--invalid']]: hasError
|
|
16911
16927
|
}),
|
|
16912
16928
|
type: type,
|
|
16913
16929
|
"data-testid": testId,
|
|
@@ -16920,8 +16936,8 @@ const PasswordField = ({
|
|
|
16920
16936
|
onChange: controllers.onChange,
|
|
16921
16937
|
onBlur: controllers.onBlur
|
|
16922
16938
|
}), React__default.createElement("div", {
|
|
16923
|
-
className: classnames(styles$
|
|
16924
|
-
[styles$
|
|
16939
|
+
className: classnames(styles$s['password-toggle'], {
|
|
16940
|
+
[styles$s['password-toggle--disabled']]: disabled
|
|
16925
16941
|
}),
|
|
16926
16942
|
onClick: toggleType,
|
|
16927
16943
|
onKeyPress: toggleType,
|
|
@@ -17023,7 +17039,7 @@ const MultiSelectField = ({
|
|
|
17023
17039
|
})));
|
|
17024
17040
|
};
|
|
17025
17041
|
|
|
17026
|
-
var styles$
|
|
17042
|
+
var styles$q = {"custom-list":"_cSkvD"};
|
|
17027
17043
|
|
|
17028
17044
|
const _excluded$b4 = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad"];
|
|
17029
17045
|
const CustomList = _ref => {
|
|
@@ -17041,7 +17057,7 @@ const CustomList = _ref => {
|
|
|
17041
17057
|
return React__default.createElement(components.MenuList, _extends({}, props), React__default.createElement(Fragment, null, children, showFooter && props.options.length > 0 && React__default.createElement(Inline, {
|
|
17042
17058
|
justifyContent: "center"
|
|
17043
17059
|
}, React__default.createElement("div", {
|
|
17044
|
-
className: styles$
|
|
17060
|
+
className: styles$q['custom-list']
|
|
17045
17061
|
}, __('moreOptionsPlaceholder')))));
|
|
17046
17062
|
};
|
|
17047
17063
|
|
|
@@ -17336,7 +17352,7 @@ const getFormikError = error => {
|
|
|
17336
17352
|
return undefined;
|
|
17337
17353
|
};
|
|
17338
17354
|
|
|
17339
|
-
var styles$
|
|
17355
|
+
var styles$p = {"text-field":"_6cH4X","date-range-field":"_DMb6M","text-field--invalid":"_eXIiZ","text-field--prefixed":"_Lc6QO","text-field--suffixed":"_VWrJD","date-range-field--invalid":"_ZJ2A5","date-range-field--disabled":"_WkaJQ"};
|
|
17340
17356
|
|
|
17341
17357
|
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"};
|
|
17342
17358
|
|
|
@@ -17402,9 +17418,9 @@ const DateRangeCalendar = ({
|
|
|
17402
17418
|
const MONTH_NAMES = getMonths(translate);
|
|
17403
17419
|
const highlight = buildHighlightDayPickerProps(highlightedDays);
|
|
17404
17420
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
17405
|
-
className: styles$
|
|
17421
|
+
className: styles$1a['calendar']
|
|
17406
17422
|
}, React__default.createElement("div", {
|
|
17407
|
-
className: styles$
|
|
17423
|
+
className: styles$1a['calendar__overlay'],
|
|
17408
17424
|
ref: ref => setCalendarRef(ref),
|
|
17409
17425
|
style: _extends({}, calendarPosition, {
|
|
17410
17426
|
zIndex: getZIndex('dropdown')
|
|
@@ -17604,9 +17620,9 @@ const DateRangeField = ({
|
|
|
17604
17620
|
end
|
|
17605
17621
|
} = controllers.value;
|
|
17606
17622
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
17607
|
-
className: classnames(styles$
|
|
17608
|
-
[styles$
|
|
17609
|
-
[styles$
|
|
17623
|
+
className: classnames(styles$p['date-range-field'], {
|
|
17624
|
+
[styles$p['date-range-field--invalid']]: hasError,
|
|
17625
|
+
[styles$p['date-range-field--disabled']]: disabled
|
|
17610
17626
|
}),
|
|
17611
17627
|
"data-testid": testId
|
|
17612
17628
|
}, React__default.createElement(IconCalendarAlt, {
|
|
@@ -17932,7 +17948,7 @@ const TimeRangeSelector = forwardRef(TimeFieldElement);
|
|
|
17932
17948
|
*/
|
|
17933
17949
|
const TimeField = forwardRef(TimeFieldElement);
|
|
17934
17950
|
|
|
17935
|
-
var styles$
|
|
17951
|
+
var styles$o = {"text-field":"_yV-BZ","time-range-field":"_9i8Lj","text-field--invalid":"_FJVdv","text-field--prefixed":"_B7q-i","text-field--suffixed":"_DvCJW","time-range-field--invalid":"_g2UhP","time-range-field--disabled":"_Yn4T4"};
|
|
17936
17952
|
|
|
17937
17953
|
const TimeRangeEnd = ({
|
|
17938
17954
|
startTime,
|
|
@@ -18054,9 +18070,9 @@ const TimeRangeField = ({
|
|
|
18054
18070
|
end
|
|
18055
18071
|
}) : getDuration(end, start, subtractDuration);
|
|
18056
18072
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
18057
|
-
className: classnames(styles$
|
|
18058
|
-
[styles$
|
|
18059
|
-
[styles$
|
|
18073
|
+
className: classnames(styles$o['time-range-field'], {
|
|
18074
|
+
[styles$o['time-range-field--invalid']]: hasError,
|
|
18075
|
+
[styles$o['time-range-field--disabled']]: disabled
|
|
18060
18076
|
}),
|
|
18061
18077
|
"data-testid": testId
|
|
18062
18078
|
}, React__default.createElement(TimeRangeStart, {
|
|
@@ -18084,7 +18100,7 @@ const TimeRangeField = ({
|
|
|
18084
18100
|
})));
|
|
18085
18101
|
};
|
|
18086
18102
|
|
|
18087
|
-
var styles$
|
|
18103
|
+
var styles$n = {"currency-field":"_GyYnE","currency-field--with-mask":"_NfdKk","currency-field__mask-display":"_ddacu","currency-field__mask-display--disabled":"_o1-zA"};
|
|
18088
18104
|
|
|
18089
18105
|
const CURRENCY_DISPLAY_DEFAULT_MARGIN = 8;
|
|
18090
18106
|
const CURRENCY_DISPLAY_MARGIN_BUFFER = 1;
|
|
@@ -18150,12 +18166,12 @@ const CurrencyFieldElement = (_ref, forwardedRef) => {
|
|
|
18150
18166
|
setShowMask(false);
|
|
18151
18167
|
inputProps.onFocus(e);
|
|
18152
18168
|
},
|
|
18153
|
-
className: classnames(inputProps.className, styles$
|
|
18154
|
-
[styles$
|
|
18169
|
+
className: classnames(inputProps.className, styles$n['currency-field'], {
|
|
18170
|
+
[styles$n['currency-field--with-mask']]: showMask && !!inputProps.value
|
|
18155
18171
|
})
|
|
18156
18172
|
}))), showMask && !!inputProps.value && React__default.createElement("div", {
|
|
18157
|
-
className: classnames(styles$
|
|
18158
|
-
[styles$
|
|
18173
|
+
className: classnames(styles$n['currency-field__mask-display'], {
|
|
18174
|
+
[styles$n['currency-field__mask-display--disabled']]: inputProps.disabled
|
|
18159
18175
|
}),
|
|
18160
18176
|
style: {
|
|
18161
18177
|
marginLeft: displayPadding
|
|
@@ -18281,7 +18297,7 @@ const FormFeedback = ({
|
|
|
18281
18297
|
}, children);
|
|
18282
18298
|
};
|
|
18283
18299
|
|
|
18284
|
-
var styles$
|
|
18300
|
+
var styles$m = {"phone-field":"_Q0GfJ","phone-field__flag":"_-uOqW","phone-field__input":"_Hes9b","phone-field__input--with-square-borders":"_TEU6N"};
|
|
18285
18301
|
|
|
18286
18302
|
const usePhoneFieldControllers = ({
|
|
18287
18303
|
name,
|
|
@@ -18424,8 +18440,8 @@ const usePhoneField = ({
|
|
|
18424
18440
|
'aria-describedby': hasError ? `${controllers.id}-error-message` : `${controllers.id}-describer`,
|
|
18425
18441
|
'aria-invalid': hasError,
|
|
18426
18442
|
autoFocus,
|
|
18427
|
-
className: classnames(styles$
|
|
18428
|
-
[styles$
|
|
18443
|
+
className: classnames(styles$1s['text-field'], {
|
|
18444
|
+
[styles$1s['text-field--invalid']]: hasError
|
|
18429
18445
|
}),
|
|
18430
18446
|
'data-testid': testId,
|
|
18431
18447
|
disabled,
|
|
@@ -19195,7 +19211,7 @@ const COUNTRIES = {
|
|
|
19195
19211
|
};
|
|
19196
19212
|
const COUNTRY_CODES = Object.keys(COUNTRIES);
|
|
19197
19213
|
|
|
19198
|
-
var styles$
|
|
19214
|
+
var styles$l = {"country-selector":"_VYs4A","country-selector--with-error":"_oSxxZ","country-selector__trigger":"_jlyd4","country-selector--disabled":"_tNInT","country-selector__trigger--with-error":"_424HM","country-selector__trigger--disabled":"_0XOFf","country-selector__trigger-flag":"_RfPa1","country-selector__flag":"_uADOl"};
|
|
19199
19215
|
|
|
19200
19216
|
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"};
|
|
19201
19217
|
|
|
@@ -19209,21 +19225,21 @@ const CountrySelector = ({
|
|
|
19209
19225
|
}) => {
|
|
19210
19226
|
const resolvedPriorityCountries = [country, ..._priorityCountries].filter((code, index, arr) => arr.indexOf(code) === index && code in COUNTRIES);
|
|
19211
19227
|
return React__default.createElement("div", {
|
|
19212
|
-
className: classnames(styles$
|
|
19213
|
-
[styles$
|
|
19214
|
-
[styles$
|
|
19228
|
+
className: classnames(styles$l['country-selector'], {
|
|
19229
|
+
[styles$l['country-selector--with-error']]: hasError,
|
|
19230
|
+
[styles$l['country-selector--disabled']]: disabled
|
|
19215
19231
|
})
|
|
19216
19232
|
}, React__default.createElement(Dropdown, {
|
|
19217
19233
|
trigger: React__default.createElement("div", {
|
|
19218
|
-
className: classnames(styles$
|
|
19219
|
-
[styles$
|
|
19220
|
-
[styles$
|
|
19234
|
+
className: classnames(styles$l['country-selector__trigger'], {
|
|
19235
|
+
[styles$l['country-selector__trigger--with-error']]: hasError,
|
|
19236
|
+
[styles$l['country-selector__trigger--disabled']]: disabled
|
|
19221
19237
|
})
|
|
19222
19238
|
}, React__default.createElement(Inline, {
|
|
19223
19239
|
space: 8,
|
|
19224
19240
|
alignItems: "center"
|
|
19225
19241
|
}, React__default.createElement("span", {
|
|
19226
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLowerCase()}`], styles$
|
|
19242
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLowerCase()}`], styles$l['country-selector__trigger-flag'])
|
|
19227
19243
|
}), React__default.createElement(IconChevronDown, {
|
|
19228
19244
|
color: "currentColor",
|
|
19229
19245
|
size: "medium"
|
|
@@ -19237,7 +19253,7 @@ const CountrySelector = ({
|
|
|
19237
19253
|
alignItems: "center",
|
|
19238
19254
|
space: 12
|
|
19239
19255
|
}, React__default.createElement("span", {
|
|
19240
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$
|
|
19256
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$l['country-selector__flag'])
|
|
19241
19257
|
}), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)))), React__default.createElement(DropdownListDivider, null), COUNTRY_CODES.map(countryCode => React__default.createElement(DropdownListItem, {
|
|
19242
19258
|
onClick: () => onChange(countryCode),
|
|
19243
19259
|
key: countryCode
|
|
@@ -19245,7 +19261,7 @@ const CountrySelector = ({
|
|
|
19245
19261
|
alignItems: "center",
|
|
19246
19262
|
space: 12
|
|
19247
19263
|
}, React__default.createElement("span", {
|
|
19248
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$
|
|
19264
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLowerCase()}`], styles$l['country-selector__flag'])
|
|
19249
19265
|
}), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)))))));
|
|
19250
19266
|
};
|
|
19251
19267
|
|
|
@@ -19319,7 +19335,7 @@ const PhoneField = _ref => {
|
|
|
19319
19335
|
}
|
|
19320
19336
|
};
|
|
19321
19337
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
|
|
19322
|
-
className: styles$
|
|
19338
|
+
className: styles$m['phone-field']
|
|
19323
19339
|
}, !disabledCountry && React__default.createElement(CountrySelector, {
|
|
19324
19340
|
country: selectedCountry,
|
|
19325
19341
|
onChange: handleCountryChange,
|
|
@@ -19331,48 +19347,88 @@ const PhoneField = _ref => {
|
|
|
19331
19347
|
space: 4,
|
|
19332
19348
|
alignItems: "center"
|
|
19333
19349
|
}, React__default.createElement("span", {
|
|
19334
|
-
className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$
|
|
19350
|
+
className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$m['country-selector__flag'])
|
|
19335
19351
|
}), React__default.createElement("span", null, "+", getCountryCallingCode(selectedCountry))) : `+${getCountryCallingCode(selectedCountry)}`
|
|
19336
19352
|
}, React__default.createElement("input", _extends({}, inputProps, {
|
|
19337
19353
|
type: "tel",
|
|
19338
|
-
className: classnames(inputProps.className, styles$
|
|
19339
|
-
[styles$
|
|
19354
|
+
className: classnames(inputProps.className, styles$m['phone-field__input'], {
|
|
19355
|
+
[styles$m['phone-field__input--with-square-borders']]: !disabledCountry
|
|
19340
19356
|
}),
|
|
19341
19357
|
onChange: handlePhoneChange,
|
|
19342
19358
|
onBlur: handlePhoneBlur
|
|
19343
19359
|
})))));
|
|
19344
19360
|
};
|
|
19345
19361
|
|
|
19346
|
-
var styles$
|
|
19362
|
+
var styles$k = {"color-overlay":"_LTVgG","color-overlay__color-display-container":"_R1mls","color-overlay__color-display-circle":"_M-8rP","color-overlay__color-display-circle--selected":"_o92fv","color-overlay__color-display-circle--focused":"_QBSCQ","color-overlay__custom-color":"_iQoTb"};
|
|
19347
19363
|
|
|
19348
19364
|
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'];
|
|
19349
19365
|
|
|
19350
|
-
|
|
19366
|
+
// The swatch grid is rendered 5 columns wide (see color-overlay.module.scss).
|
|
19367
|
+
const COLUMNS = 5;
|
|
19368
|
+
// Sentinel "index" for the optional full-width custom-color button that sits in
|
|
19369
|
+
// its own row below the swatch grid. It only joins the navigation cycle when the
|
|
19370
|
+
// button is rendered (allowCustomColor).
|
|
19371
|
+
const CUSTOM_COLOR_INDEX = SEQUENTIAL_COLORS.length;
|
|
19372
|
+
const useColorKeyboardNavigation = (selectedColor, allowCustomColor = false) => {
|
|
19351
19373
|
const [selectedColorIndex, setSelectedColorIndex] = useState(null);
|
|
19374
|
+
// Remember the column the grid was left from so ArrowUp out of the
|
|
19375
|
+
// full-width custom button returns to roughly the same swatch.
|
|
19376
|
+
const gridColumnRef = useRef(0);
|
|
19352
19377
|
const amountOfColors = SEQUENTIAL_COLORS.length;
|
|
19378
|
+
const lastColorIndex = amountOfColors - 1;
|
|
19379
|
+
const lastRowStart = amountOfColors - COLUMNS;
|
|
19353
19380
|
const handleArrowNavigation = event => {
|
|
19354
19381
|
const keyPressed = event.key;
|
|
19382
|
+
event.preventDefault();
|
|
19355
19383
|
const currentIndex = selectedColorIndex !== null ? selectedColorIndex : SEQUENTIAL_COLORS.findIndex(color => color === selectedColor);
|
|
19384
|
+
// Navigation while the custom-color button holds the virtual focus. The
|
|
19385
|
+
// button is its own full-width row, so left/right do nothing; up returns
|
|
19386
|
+
// to the grid and Tab/down continues the cycle back to the top.
|
|
19387
|
+
if (currentIndex === CUSTOM_COLOR_INDEX) {
|
|
19388
|
+
switch (keyPressed) {
|
|
19389
|
+
case 'ArrowUp':
|
|
19390
|
+
setSelectedColorIndex(lastRowStart + gridColumnRef.current);
|
|
19391
|
+
break;
|
|
19392
|
+
case 'ArrowDown':
|
|
19393
|
+
case 'Tab':
|
|
19394
|
+
setSelectedColorIndex(0);
|
|
19395
|
+
break;
|
|
19396
|
+
}
|
|
19397
|
+
return;
|
|
19398
|
+
}
|
|
19399
|
+
const column = (currentIndex % COLUMNS + COLUMNS) % COLUMNS;
|
|
19400
|
+
const isOnLastRow = currentIndex >= lastRowStart;
|
|
19401
|
+
// Step onto the custom button instead of wrapping, keeping the column we
|
|
19402
|
+
// came from so ArrowUp can take us back.
|
|
19403
|
+
const enterCustomButton = () => {
|
|
19404
|
+
gridColumnRef.current = column;
|
|
19405
|
+
setSelectedColorIndex(CUSTOM_COLOR_INDEX);
|
|
19406
|
+
};
|
|
19356
19407
|
switch (keyPressed) {
|
|
19357
19408
|
case 'ArrowRight':
|
|
19409
|
+
setSelectedColorIndex((currentIndex + 1) % amountOfColors);
|
|
19410
|
+
break;
|
|
19358
19411
|
case 'Tab':
|
|
19359
|
-
|
|
19360
|
-
|
|
19412
|
+
if (currentIndex === lastColorIndex && allowCustomColor) {
|
|
19413
|
+
enterCustomButton();
|
|
19414
|
+
} else {
|
|
19415
|
+
setSelectedColorIndex((currentIndex + 1) % amountOfColors);
|
|
19416
|
+
}
|
|
19361
19417
|
break;
|
|
19362
19418
|
case 'ArrowLeft':
|
|
19363
|
-
|
|
19364
|
-
setSelectedColorIndex(prevIndex);
|
|
19419
|
+
setSelectedColorIndex((currentIndex - 1 + amountOfColors) % amountOfColors);
|
|
19365
19420
|
break;
|
|
19366
19421
|
case 'ArrowDown':
|
|
19367
|
-
|
|
19368
|
-
|
|
19422
|
+
if (isOnLastRow && allowCustomColor) {
|
|
19423
|
+
enterCustomButton();
|
|
19424
|
+
} else {
|
|
19425
|
+
setSelectedColorIndex((currentIndex + COLUMNS) % amountOfColors);
|
|
19426
|
+
}
|
|
19369
19427
|
break;
|
|
19370
19428
|
case 'ArrowUp':
|
|
19371
|
-
|
|
19372
|
-
setSelectedColorIndex(upIndex);
|
|
19429
|
+
setSelectedColorIndex((currentIndex - COLUMNS + amountOfColors) % amountOfColors);
|
|
19373
19430
|
break;
|
|
19374
19431
|
}
|
|
19375
|
-
event.preventDefault();
|
|
19376
19432
|
};
|
|
19377
19433
|
useKeyPress(['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Tab'], handleArrowNavigation);
|
|
19378
19434
|
return {
|
|
@@ -19445,9 +19501,13 @@ const OverlayContent = ({
|
|
|
19445
19501
|
onClose,
|
|
19446
19502
|
triggerRef,
|
|
19447
19503
|
selectedColor,
|
|
19448
|
-
onSelect
|
|
19504
|
+
onSelect,
|
|
19505
|
+
onCustomColor,
|
|
19506
|
+
allowCustomColor
|
|
19449
19507
|
}) => {
|
|
19508
|
+
const translate = useTranslation('ColorField');
|
|
19450
19509
|
const overlayRef = useRef(null);
|
|
19510
|
+
const customButtonRef = useRef(null);
|
|
19451
19511
|
const [position, setPosition] = useState(null);
|
|
19452
19512
|
// Measure the overlay once it has rendered and position it within the
|
|
19453
19513
|
// viewport, falling back through bottom/top and left/right placements.
|
|
@@ -19479,20 +19539,41 @@ const OverlayContent = ({
|
|
|
19479
19539
|
const {
|
|
19480
19540
|
selectedColorIndex,
|
|
19481
19541
|
setSelectedColorIndex
|
|
19482
|
-
} = useColorKeyboardNavigation(selectedColor || '');
|
|
19542
|
+
} = useColorKeyboardNavigation(selectedColor || '', allowCustomColor);
|
|
19483
19543
|
useOnClickOutside(overlayRef, onClose);
|
|
19544
|
+
const isCustomColorFocused = selectedColorIndex === CUSTOM_COLOR_INDEX;
|
|
19545
|
+
// Move real DOM focus to the custom button when keyboard navigation lands on
|
|
19546
|
+
// it so the Button renders its own focus state, and release focus when
|
|
19547
|
+
// navigation moves back into the swatch grid.
|
|
19548
|
+
useEffect(() => {
|
|
19549
|
+
if (isCustomColorFocused) {
|
|
19550
|
+
var _customButtonRef$curr;
|
|
19551
|
+
(_customButtonRef$curr = customButtonRef.current) == null || _customButtonRef$curr.focus();
|
|
19552
|
+
} else if (document.activeElement === customButtonRef.current) {
|
|
19553
|
+
var _customButtonRef$curr2;
|
|
19554
|
+
(_customButtonRef$curr2 = customButtonRef.current) == null || _customButtonRef$curr2.blur();
|
|
19555
|
+
}
|
|
19556
|
+
}, [isCustomColorFocused]);
|
|
19484
19557
|
const selectedColorByIndex = selectedColorIndex !== null ? SEQUENTIAL_COLORS[selectedColorIndex] : undefined;
|
|
19485
|
-
const handleEnterPress = useCallback(
|
|
19558
|
+
const handleEnterPress = useCallback(event => {
|
|
19559
|
+
if (isCustomColorFocused) {
|
|
19560
|
+
// The button holds real focus, so the browser would also fire
|
|
19561
|
+
// its native Enter activation — prevent that so onCustomColor
|
|
19562
|
+
// runs exactly once.
|
|
19563
|
+
event.preventDefault();
|
|
19564
|
+
onCustomColor();
|
|
19565
|
+
return;
|
|
19566
|
+
}
|
|
19486
19567
|
if (selectedColorByIndex) {
|
|
19487
19568
|
onSelect(selectedColorByIndex);
|
|
19488
19569
|
}
|
|
19489
|
-
}, [selectedColorByIndex, onSelect]);
|
|
19570
|
+
}, [isCustomColorFocused, selectedColorByIndex, onSelect, onCustomColor]);
|
|
19490
19571
|
useKeyPress(['Escape'], onClose);
|
|
19491
19572
|
useKeyPress(['Enter'], handleEnterPress);
|
|
19492
19573
|
return React__default.createElement("div", {
|
|
19493
19574
|
style: overlayStyle,
|
|
19494
19575
|
ref: overlayRef,
|
|
19495
|
-
className: styles$
|
|
19576
|
+
className: styles$k['color-overlay'],
|
|
19496
19577
|
role: "dialog"
|
|
19497
19578
|
}, SEQUENTIAL_COLORS.map((color, index) => React__default.createElement(ColorDisplay, {
|
|
19498
19579
|
key: color,
|
|
@@ -19501,7 +19582,13 @@ const OverlayContent = ({
|
|
|
19501
19582
|
isFocused: index === selectedColorIndex,
|
|
19502
19583
|
onClick: () => onSelect(color),
|
|
19503
19584
|
onHover: () => setSelectedColorIndex(null)
|
|
19504
|
-
}))
|
|
19585
|
+
})), allowCustomColor && React__default.createElement("div", {
|
|
19586
|
+
className: styles$k['color-overlay__custom-color']
|
|
19587
|
+
}, React__default.createElement(Button, {
|
|
19588
|
+
ref: customButtonRef,
|
|
19589
|
+
size: "full-width",
|
|
19590
|
+
onClick: onCustomColor
|
|
19591
|
+
}, translate('customColorButtonLabel'))));
|
|
19505
19592
|
};
|
|
19506
19593
|
const ColorDisplay = ({
|
|
19507
19594
|
color,
|
|
@@ -19510,12 +19597,12 @@ const ColorDisplay = ({
|
|
|
19510
19597
|
onClick,
|
|
19511
19598
|
onHover
|
|
19512
19599
|
}) => React__default.createElement("button", {
|
|
19513
|
-
className: styles$
|
|
19600
|
+
className: styles$k['color-overlay__color-display-container'],
|
|
19514
19601
|
onClick: () => onClick(color)
|
|
19515
19602
|
}, React__default.createElement("div", {
|
|
19516
|
-
className: classnames(styles$
|
|
19517
|
-
[styles$
|
|
19518
|
-
[styles$
|
|
19603
|
+
className: classnames(styles$k['color-overlay__color-display-circle'], {
|
|
19604
|
+
[styles$k['color-overlay__color-display-circle--selected']]: isSelected,
|
|
19605
|
+
[styles$k['color-overlay__color-display-circle--focused']]: isFocused
|
|
19519
19606
|
}),
|
|
19520
19607
|
onMouseEnter: onHover,
|
|
19521
19608
|
style: {
|
|
@@ -19523,19 +19610,150 @@ const ColorDisplay = ({
|
|
|
19523
19610
|
}
|
|
19524
19611
|
}));
|
|
19525
19612
|
|
|
19526
|
-
var styles$
|
|
19613
|
+
var styles$j = {"color-swatch":"_UUuiJ"};
|
|
19527
19614
|
|
|
19528
19615
|
const ColorSwatch = ({
|
|
19529
19616
|
color
|
|
19530
19617
|
}) => {
|
|
19531
19618
|
return React__default.createElement("div", {
|
|
19532
|
-
className: styles$
|
|
19619
|
+
className: styles$j['color-swatch'],
|
|
19533
19620
|
style: {
|
|
19534
19621
|
backgroundColor: color
|
|
19535
19622
|
}
|
|
19536
19623
|
});
|
|
19537
19624
|
};
|
|
19538
19625
|
|
|
19626
|
+
// This file is automatically generated by 'scripts/tokens/build-colors.sh'
|
|
19627
|
+
const SEQUENTIAL_COLOR_CODES = {
|
|
19628
|
+
light: {
|
|
19629
|
+
'seq-1': '#00b5d8',
|
|
19630
|
+
'seq-2': '#f9922b',
|
|
19631
|
+
'seq-3': '#28cc6d',
|
|
19632
|
+
'seq-4': '#d83f87',
|
|
19633
|
+
'seq-5': '#4359ce',
|
|
19634
|
+
'seq-6': '#ff6f61',
|
|
19635
|
+
'seq-7': '#35e5c6',
|
|
19636
|
+
'seq-8': '#a966e7',
|
|
19637
|
+
'seq-9': '#905642',
|
|
19638
|
+
'seq-10': '#ffb300',
|
|
19639
|
+
'seq-11': '#708238',
|
|
19640
|
+
'seq-12': '#4fc3f7',
|
|
19641
|
+
'seq-13': '#e94057',
|
|
19642
|
+
'seq-14': '#00a896',
|
|
19643
|
+
'seq-15': '#6a4c93',
|
|
19644
|
+
'seq-16': '#a3cb38',
|
|
19645
|
+
'seq-17': '#546e7a',
|
|
19646
|
+
'seq-18': '#fc9999',
|
|
19647
|
+
'seq-19': '#2f80ed',
|
|
19648
|
+
'seq-20': '#be3434'
|
|
19649
|
+
},
|
|
19650
|
+
dark: {
|
|
19651
|
+
'seq-1': '#28d2f3',
|
|
19652
|
+
'seq-2': '#f9ad61',
|
|
19653
|
+
'seq-3': '#31e17b',
|
|
19654
|
+
'seq-4': '#ef5ca1',
|
|
19655
|
+
'seq-5': '#7288ff',
|
|
19656
|
+
'seq-6': '#ff867a',
|
|
19657
|
+
'seq-7': '#43f2d3',
|
|
19658
|
+
'seq-8': '#cb93ff',
|
|
19659
|
+
'seq-9': '#b66d54',
|
|
19660
|
+
'seq-10': '#ffc437',
|
|
19661
|
+
'seq-11': '#8a9c52',
|
|
19662
|
+
'seq-12': '#8adbff',
|
|
19663
|
+
'seq-13': '#fa5c71',
|
|
19664
|
+
'seq-14': '#15c7b4',
|
|
19665
|
+
'seq-15': '#a978ec',
|
|
19666
|
+
'seq-16': '#aed83e',
|
|
19667
|
+
'seq-17': '#82adc0',
|
|
19668
|
+
'seq-18': '#ffa9a9',
|
|
19669
|
+
'seq-19': '#4594ff',
|
|
19670
|
+
'seq-20': '#e45555'
|
|
19671
|
+
}
|
|
19672
|
+
};
|
|
19673
|
+
|
|
19674
|
+
const isSeqToken = value => SEQUENTIAL_COLORS.includes(value.trim());
|
|
19675
|
+
const normalizeHex = value => value.trim().toLowerCase();
|
|
19676
|
+
/**
|
|
19677
|
+
* Whether a value is a 6-digit hex color, which is the only format the native
|
|
19678
|
+
* color picker accepts.
|
|
19679
|
+
*/
|
|
19680
|
+
const isHexColor = value => !!value && /^#[0-9a-f]{6}$/i.test(value);
|
|
19681
|
+
/**
|
|
19682
|
+
* Resolves a stored field value to the sequential color token it represents.
|
|
19683
|
+
* Accepts both a token name directly (e.g. `seq-1`) and a hex color string so
|
|
19684
|
+
* that fields migrated from hex storage continue to resolve correctly.
|
|
19685
|
+
*/
|
|
19686
|
+
const findSeqToken = value => {
|
|
19687
|
+
if (!value) return undefined;
|
|
19688
|
+
if (isSeqToken(value.trim())) return value.trim();
|
|
19689
|
+
return findSeqTokenByHex(value);
|
|
19690
|
+
};
|
|
19691
|
+
const findSeqTokenByHex = value => {
|
|
19692
|
+
if (!value) {
|
|
19693
|
+
return undefined;
|
|
19694
|
+
}
|
|
19695
|
+
const target = normalizeHex(value);
|
|
19696
|
+
return SEQUENTIAL_COLORS.find(token => normalizeHex(SEQUENTIAL_COLOR_CODES.light[token]) === target || normalizeHex(SEQUENTIAL_COLOR_CODES.dark[token]) === target);
|
|
19697
|
+
};
|
|
19698
|
+
|
|
19699
|
+
var styles$i = {"custom-color-picker":"_OHgPk"};
|
|
19700
|
+
|
|
19701
|
+
/**
|
|
19702
|
+
* A visually hidden native color input. It is kept mounted on the field (not
|
|
19703
|
+
* inside the swatch overlay) so the browser's picker survives the overlay
|
|
19704
|
+
* closing, and it is opened imperatively via the `open` handle.
|
|
19705
|
+
*/
|
|
19706
|
+
const CustomColorPicker = forwardRef(({
|
|
19707
|
+
color,
|
|
19708
|
+
onSelect
|
|
19709
|
+
}, ref) => {
|
|
19710
|
+
const inputRef = useRef(null);
|
|
19711
|
+
// The native color input only accepts a 6-digit hex; fall back to black
|
|
19712
|
+
// for any missing or non-hex value.
|
|
19713
|
+
const safeColor = isHexColor(color) ? color : '#000000';
|
|
19714
|
+
// Keep the latest color/callback in refs so the imperative handle and
|
|
19715
|
+
// the native listener stay stable (subscribed once) yet current.
|
|
19716
|
+
const safeColorRef = useRef(safeColor);
|
|
19717
|
+
safeColorRef.current = safeColor;
|
|
19718
|
+
const onSelectRef = useRef(onSelect);
|
|
19719
|
+
onSelectRef.current = onSelect;
|
|
19720
|
+
// React's `onChange` on a color input maps to the native `input` event,
|
|
19721
|
+
// which fires continuously while the user drags. We only want the
|
|
19722
|
+
// committed value, so we listen for the native `change` event (fired
|
|
19723
|
+
// once when the picker closes) instead.
|
|
19724
|
+
useEffect(() => {
|
|
19725
|
+
const picker = inputRef.current;
|
|
19726
|
+
if (!picker) {
|
|
19727
|
+
return;
|
|
19728
|
+
}
|
|
19729
|
+
const handleCommit = event => {
|
|
19730
|
+
onSelectRef.current(event.target.value);
|
|
19731
|
+
};
|
|
19732
|
+
picker.addEventListener('change', handleCommit);
|
|
19733
|
+
return () => picker.removeEventListener('change', handleCommit);
|
|
19734
|
+
}, []);
|
|
19735
|
+
useImperativeHandle(ref, () => ({
|
|
19736
|
+
open: () => {
|
|
19737
|
+
const picker = inputRef.current;
|
|
19738
|
+
if (!picker) {
|
|
19739
|
+
return;
|
|
19740
|
+
}
|
|
19741
|
+
picker.value = safeColorRef.current;
|
|
19742
|
+
picker.click();
|
|
19743
|
+
}
|
|
19744
|
+
}), []);
|
|
19745
|
+
return React__default.createElement("input", {
|
|
19746
|
+
ref: inputRef,
|
|
19747
|
+
type: "color",
|
|
19748
|
+
"aria-hidden": "true",
|
|
19749
|
+
tabIndex: -1,
|
|
19750
|
+
className: styles$i['custom-color-picker'],
|
|
19751
|
+
defaultValue: safeColor
|
|
19752
|
+
});
|
|
19753
|
+
});
|
|
19754
|
+
|
|
19755
|
+
var styles$h = {"color-field":"_KJawn"};
|
|
19756
|
+
|
|
19539
19757
|
const ColorFieldElement = (props, ref) => {
|
|
19540
19758
|
const {
|
|
19541
19759
|
inputProps,
|
|
@@ -19544,15 +19762,36 @@ const ColorFieldElement = (props, ref) => {
|
|
|
19544
19762
|
ref
|
|
19545
19763
|
}));
|
|
19546
19764
|
const triggerRef = useRef(null);
|
|
19765
|
+
const customPickerRef = useRef(null);
|
|
19547
19766
|
const [isOpen, setIsOpen] = useState(false);
|
|
19548
|
-
|
|
19767
|
+
// The stored value is the light-theme hex of a sequential color. Resolve it
|
|
19768
|
+
// back to its token so the swatch can use the theme-aware CSS variable and
|
|
19769
|
+
// the overlay can keep the matching color highlighted.
|
|
19770
|
+
const selectedToken = findSeqToken(inputProps.value);
|
|
19549
19771
|
const getCurrentColor = () => {
|
|
19550
|
-
if (
|
|
19551
|
-
return COLORS[
|
|
19772
|
+
if (selectedToken) {
|
|
19773
|
+
return COLORS[selectedToken];
|
|
19552
19774
|
}
|
|
19553
19775
|
return inputProps.value || 'transparent';
|
|
19554
19776
|
};
|
|
19555
|
-
|
|
19777
|
+
const setColor = color => {
|
|
19778
|
+
inputProps.onChange({
|
|
19779
|
+
target: {
|
|
19780
|
+
value: color
|
|
19781
|
+
}
|
|
19782
|
+
});
|
|
19783
|
+
};
|
|
19784
|
+
// Close the swatch overlay and open the native picker. The picker lives on
|
|
19785
|
+
// the field (not the overlay), so it stays open after the overlay unmounts
|
|
19786
|
+
// and dismisses itself only when the user picks or clicks away.
|
|
19787
|
+
const openCustomColorPicker = () => {
|
|
19788
|
+
var _customPickerRef$curr;
|
|
19789
|
+
setIsOpen(false);
|
|
19790
|
+
(_customPickerRef$curr = customPickerRef.current) == null || _customPickerRef$curr.open();
|
|
19791
|
+
};
|
|
19792
|
+
return React__default.createElement(Fragment, null, React__default.createElement("div", {
|
|
19793
|
+
className: styles$h['color-field']
|
|
19794
|
+
}, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
19556
19795
|
prefix: React__default.createElement(ColorSwatch, {
|
|
19557
19796
|
color: getCurrentColor()
|
|
19558
19797
|
}),
|
|
@@ -19574,18 +19813,20 @@ const ColorFieldElement = (props, ref) => {
|
|
|
19574
19813
|
setIsOpen(true);
|
|
19575
19814
|
}
|
|
19576
19815
|
}
|
|
19577
|
-
})))),
|
|
19816
|
+
})))), React__default.createElement(CustomColorPicker, {
|
|
19817
|
+
ref: customPickerRef,
|
|
19818
|
+
color: selectedToken ? SEQUENTIAL_COLOR_CODES.light[selectedToken] : inputProps.value,
|
|
19819
|
+
onSelect: setColor
|
|
19820
|
+
})), isOpen && React__default.createElement(ColorsOverlay, {
|
|
19578
19821
|
onClose: () => setIsOpen(false),
|
|
19579
19822
|
triggerRef: triggerRef,
|
|
19580
|
-
selectedColor:
|
|
19823
|
+
selectedColor: selectedToken,
|
|
19581
19824
|
onSelect: color => {
|
|
19582
|
-
|
|
19583
|
-
target: {
|
|
19584
|
-
value: color
|
|
19585
|
-
}
|
|
19586
|
-
});
|
|
19825
|
+
setColor(color);
|
|
19587
19826
|
setIsOpen(false);
|
|
19588
|
-
}
|
|
19827
|
+
},
|
|
19828
|
+
onCustomColor: openCustomColorPicker,
|
|
19829
|
+
allowCustomColor: props.allowCustomColor
|
|
19589
19830
|
}));
|
|
19590
19831
|
};
|
|
19591
19832
|
const ColorField = forwardRef(ColorFieldElement);
|
|
@@ -19645,9 +19886,9 @@ const lastOfMonth = () => {
|
|
|
19645
19886
|
|
|
19646
19887
|
const isValidPhoneNumber = value => !value || isValidPhoneNumber$1(value);
|
|
19647
19888
|
|
|
19648
|
-
var styles$
|
|
19889
|
+
var styles$g = {"avatar":"_V1U8v","avatar__container":"_peAaI","avatar--small":"_9g-tn","avatar__badge":"_uViot","avatar--medium":"_vNXJW","avatar--large":"_9ZKAB","avatar--extra-large":"_uv14Y"};
|
|
19649
19890
|
|
|
19650
|
-
var styles$
|
|
19891
|
+
var styles$f = {"avatar-image":"_iDN1j"};
|
|
19651
19892
|
|
|
19652
19893
|
const AvatarImage = ({
|
|
19653
19894
|
url,
|
|
@@ -19667,7 +19908,7 @@ const AvatarImage = ({
|
|
|
19667
19908
|
});
|
|
19668
19909
|
}
|
|
19669
19910
|
return React__default.createElement("div", {
|
|
19670
|
-
className: styles$
|
|
19911
|
+
className: styles$f['avatar-image']
|
|
19671
19912
|
}, React__default.createElement(IconUser, {
|
|
19672
19913
|
size: "flexible",
|
|
19673
19914
|
color: color,
|
|
@@ -19811,14 +20052,14 @@ const Avatar = ({
|
|
|
19811
20052
|
// If passing an url we are defaulting to a lighter grey while the image loads
|
|
19812
20053
|
const backgroundColor = url ? COLORS['surface-container-highest'] : getColor(_color);
|
|
19813
20054
|
return React__default.createElement("div", {
|
|
19814
|
-
className: classnames(styles$
|
|
20055
|
+
className: classnames(styles$g['avatar__container']),
|
|
19815
20056
|
ref: elementRef
|
|
19816
20057
|
}, React__default.createElement("div", {
|
|
19817
|
-
className: classnames(styles$
|
|
19818
|
-
[styles$
|
|
19819
|
-
[styles$
|
|
19820
|
-
[styles$
|
|
19821
|
-
[styles$
|
|
20058
|
+
className: classnames(styles$g['avatar'], {
|
|
20059
|
+
[styles$g['avatar--small']]: _size === 'small',
|
|
20060
|
+
[styles$g['avatar--medium']]: _size === 'medium',
|
|
20061
|
+
[styles$g['avatar--large']]: _size === 'large',
|
|
20062
|
+
[styles$g['avatar--extra-large']]: _size === 'extra-large'
|
|
19822
20063
|
}),
|
|
19823
20064
|
style: {
|
|
19824
20065
|
backgroundColor: children || url && !showIconInsteadOfImage ? backgroundColor : defaultProfilePictureColors.backgroundColor
|
|
@@ -19830,7 +20071,7 @@ const Avatar = ({
|
|
|
19830
20071
|
alt: alt,
|
|
19831
20072
|
onImageFallbackError: () => setShowIconInsteadOfImage(true)
|
|
19832
20073
|
}), badge && _size !== 'small' && React__default.createElement("div", {
|
|
19833
|
-
className: styles$
|
|
20074
|
+
className: styles$g['avatar__badge']
|
|
19834
20075
|
}, badge)));
|
|
19835
20076
|
};
|
|
19836
20077
|
|
|
@@ -19845,7 +20086,7 @@ const CHIP_THEME = {
|
|
|
19845
20086
|
AI: 'ai'
|
|
19846
20087
|
};
|
|
19847
20088
|
|
|
19848
|
-
var styles$
|
|
20089
|
+
var styles$e = {"chip":"_Cg5Nf","chip__children":"_e3zFF","chip--marketing":"_b60R5","chip--success":"_ItVyo","chip--upsell":"_iUCAH","chip--warning":"_RbXoR","chip--info":"_NiP9z","chip--danger":"_2ltep","chip--ai":"_1ZhCH"};
|
|
19849
20090
|
|
|
19850
20091
|
const Chip = ({
|
|
19851
20092
|
children,
|
|
@@ -19864,34 +20105,24 @@ const Chip = ({
|
|
|
19864
20105
|
});
|
|
19865
20106
|
return React__default.createElement("div", {
|
|
19866
20107
|
"data-testid": testId,
|
|
19867
|
-
className: classnames(styles$
|
|
19868
|
-
[styles$
|
|
19869
|
-
[styles$
|
|
19870
|
-
[styles$
|
|
19871
|
-
[styles$
|
|
19872
|
-
[styles$
|
|
19873
|
-
[styles$
|
|
19874
|
-
[styles$
|
|
20108
|
+
className: classnames(styles$e['chip'], {
|
|
20109
|
+
[styles$e['chip--marketing']]: _theme === CHIP_THEME.MARKETING,
|
|
20110
|
+
[styles$e['chip--success']]: _theme === CHIP_THEME.SUCCESS,
|
|
20111
|
+
[styles$e['chip--upsell']]: _theme === CHIP_THEME.UPSELL,
|
|
20112
|
+
[styles$e['chip--warning']]: _theme === CHIP_THEME.WARNING,
|
|
20113
|
+
[styles$e['chip--info']]: _theme === CHIP_THEME.INFO,
|
|
20114
|
+
[styles$e['chip--danger']]: _theme === CHIP_THEME.DANGER,
|
|
20115
|
+
[styles$e['chip--ai']]: _theme === CHIP_THEME.AI
|
|
19875
20116
|
})
|
|
19876
20117
|
}, React__default.createElement("div", {
|
|
19877
|
-
className: styles$
|
|
20118
|
+
className: styles$e['chip__children']
|
|
19878
20119
|
}, _theme === CHIP_THEME.AI && !hasIcon && React__default.createElement(IconSparkle, {
|
|
19879
20120
|
size: "small",
|
|
19880
20121
|
variant: "solid"
|
|
19881
20122
|
}), formattedChildren));
|
|
19882
20123
|
};
|
|
19883
|
-
const updateIconSize = child => {
|
|
19884
|
-
var _child$type$displayNa, _child$type2;
|
|
19885
|
-
const isIcon = (_child$type$displayNa = (_child$type2 = child.type) == null || (_child$type2 = _child$type2.displayName) == null ? void 0 : _child$type2.startsWith('Icon')) != null ? _child$type$displayNa : false;
|
|
19886
|
-
if (!isIcon) {
|
|
19887
|
-
return child;
|
|
19888
|
-
}
|
|
19889
|
-
return React__default.cloneElement(child, _extends({}, child.props, {
|
|
19890
|
-
size: 'small'
|
|
19891
|
-
}));
|
|
19892
|
-
};
|
|
19893
20124
|
|
|
19894
|
-
var styles$
|
|
20125
|
+
var styles$d = {"pill":"_vOTWZ","pill__children":"_fCrWy","pill--default":"_j2h8A","pill--success":"_lFih-","pill--danger":"_sLhtK","pill--warning":"_DKrCl","pill--info":"_8TTGV","pill--upsell":"_0-TG8","pill--alphabetical":"_4M-yZ"};
|
|
19895
20126
|
|
|
19896
20127
|
const PILL_THEME = {
|
|
19897
20128
|
INFO: 'info',
|
|
@@ -19911,19 +20142,27 @@ const PillElement = (_ref, forwardedRef) => {
|
|
|
19911
20142
|
} = _ref,
|
|
19912
20143
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$aZ);
|
|
19913
20144
|
const isAlphabetical = typeof children === 'object' || typeof children === 'string' && isNaN(Number(children));
|
|
20145
|
+
const formattedChildren = React__default.Children.map(children, child => {
|
|
20146
|
+
if (React__default.isValidElement(child)) {
|
|
20147
|
+
return updateIconSize(child);
|
|
20148
|
+
}
|
|
20149
|
+
return child;
|
|
20150
|
+
});
|
|
19914
20151
|
return React__default.createElement("div", _extends({
|
|
19915
20152
|
"data-testid": testId,
|
|
19916
20153
|
ref: forwardedRef,
|
|
19917
|
-
className: classnames(styles$
|
|
19918
|
-
[styles$
|
|
19919
|
-
[styles$
|
|
19920
|
-
[styles$
|
|
19921
|
-
[styles$
|
|
19922
|
-
[styles$
|
|
19923
|
-
[styles$
|
|
19924
|
-
[styles$
|
|
20154
|
+
className: classnames(styles$d['pill'], {
|
|
20155
|
+
[styles$d['pill--default']]: theme === PILL_THEME.DEFAULT,
|
|
20156
|
+
[styles$d['pill--warning']]: theme === PILL_THEME.WARNING,
|
|
20157
|
+
[styles$d['pill--success']]: theme === PILL_THEME.SUCCESS,
|
|
20158
|
+
[styles$d['pill--danger']]: theme === PILL_THEME.DANGER,
|
|
20159
|
+
[styles$d['pill--info']]: theme === PILL_THEME.INFO,
|
|
20160
|
+
[styles$d['pill--upsell']]: theme === PILL_THEME.UPSELL,
|
|
20161
|
+
[styles$d['pill--alphabetical']]: isAlphabetical
|
|
19925
20162
|
})
|
|
19926
|
-
}, rest),
|
|
20163
|
+
}, rest), React__default.createElement("div", {
|
|
20164
|
+
className: styles$d['pill__children']
|
|
20165
|
+
}, formattedChildren));
|
|
19927
20166
|
};
|
|
19928
20167
|
const Pill = forwardRef(PillElement);
|
|
19929
20168
|
|
|
@@ -64308,7 +64547,7 @@ const SevenShiftsLogo = () => {
|
|
|
64308
64547
|
}));
|
|
64309
64548
|
};
|
|
64310
64549
|
|
|
64311
|
-
var styles$
|
|
64550
|
+
var styles$c = {"primary-nav-header":"_6bVLs","primary-nav-header--collapsed":"_AYwpG","primary-nav-header--with-shadow":"_IpBk1","primary-nav-header__toggle":"_lK6PV"};
|
|
64312
64551
|
|
|
64313
64552
|
const SevenShiftsShortLogo = () => {
|
|
64314
64553
|
return React__default.createElement("svg", {
|
|
@@ -64418,16 +64657,16 @@ const PrimaryNavHeader = ({
|
|
|
64418
64657
|
const CollapsedLogo = () => shortLogo || React__default.createElement(SevenShiftsShortLogo, null);
|
|
64419
64658
|
const ExpandedLogo = () => longLogo || React__default.createElement(SevenShiftsLogo, null);
|
|
64420
64659
|
return React__default.createElement("div", {
|
|
64421
|
-
className: classnames(styles$
|
|
64422
|
-
[styles$
|
|
64423
|
-
[styles$
|
|
64660
|
+
className: classnames(styles$c['primary-nav-header'], {
|
|
64661
|
+
[styles$c['primary-nav-header--collapsed']]: !isOpen,
|
|
64662
|
+
[styles$c['primary-nav-header--with-shadow']]: isScrolled
|
|
64424
64663
|
})
|
|
64425
64664
|
}, React__default.createElement(Inline, {
|
|
64426
64665
|
justifyContent: "space-between",
|
|
64427
64666
|
alignItems: "center"
|
|
64428
64667
|
}, isOpen ? React__default.createElement(ExpandedLogo, null) : React__default.createElement(CollapsedLogo, null), isOpen && React__default.createElement("button", {
|
|
64429
64668
|
type: "button",
|
|
64430
|
-
className: styles$
|
|
64669
|
+
className: styles$c['primary-nav-header__toggle'],
|
|
64431
64670
|
"aria-label": isNavExpanded ? 'Collapse navigation' : 'Expand navigation',
|
|
64432
64671
|
"aria-expanded": isNavExpanded,
|
|
64433
64672
|
onClick: () => {
|
|
@@ -64444,7 +64683,7 @@ const PrimaryNavHeader = ({
|
|
|
64444
64683
|
}, isNavExpanded ? React__default.createElement(IconChevronLeft, null) : React__default.createElement(IconChevronRight, null))));
|
|
64445
64684
|
};
|
|
64446
64685
|
|
|
64447
|
-
var styles$
|
|
64686
|
+
var styles$b = {"primary-nav":"_Smo46","primary-nav--dark":"_-6GAa","primary-nav--collapsed":"_w-QAC","primary-nav__content":"_UCA59","primary-nav--expanded":"_B7Nse"};
|
|
64448
64687
|
|
|
64449
64688
|
const PrimaryNav = ({
|
|
64450
64689
|
children,
|
|
@@ -64485,10 +64724,10 @@ const PrimaryNavContent = ({
|
|
|
64485
64724
|
} = useProviderConfig();
|
|
64486
64725
|
return React__default.createElement("nav", {
|
|
64487
64726
|
"aria-label": _ariaLabel,
|
|
64488
|
-
className: classnames(styles$
|
|
64489
|
-
[styles$
|
|
64490
|
-
[styles$
|
|
64491
|
-
[styles$
|
|
64727
|
+
className: classnames(styles$b['primary-nav'], {
|
|
64728
|
+
[styles$b['primary-nav--dark']]: theme === 'dark',
|
|
64729
|
+
[styles$b['primary-nav--collapsed']]: !isOpen,
|
|
64730
|
+
[styles$b['primary-nav--expanded']]: isOpen
|
|
64492
64731
|
}),
|
|
64493
64732
|
onMouseEnter: () => setIsHoveringNav(true),
|
|
64494
64733
|
onMouseLeave: () => setIsHoveringNav(false),
|
|
@@ -64517,13 +64756,13 @@ const PrimaryNavContent = ({
|
|
|
64517
64756
|
longLogo: longLogo
|
|
64518
64757
|
}), React__default.createElement("ul", {
|
|
64519
64758
|
ref: contentRef,
|
|
64520
|
-
className: styles$
|
|
64759
|
+
className: styles$b['primary-nav__content']
|
|
64521
64760
|
}, children), footer);
|
|
64522
64761
|
};
|
|
64523
64762
|
|
|
64524
|
-
var styles$
|
|
64763
|
+
var styles$a = {"primary-nav-item":"_mWULf","primary-nav-item__link":"_PiWFg","primary-nav-item__content":"_GkDWn","primary-nav-item__icon":"_3LYJx","primary-nav-item__label":"_oz5bt","primary-nav-item__label--hidden":"_MFqwx","primary-nav-item__small-badge":"_yCxLl","fade-in":"_aMyIG","primary-nav-item__sub-items":"_SFpch","primary-nav-item--active":"_zfy2L","primary-nav-item--active-subitem":"_els3B","primary-nav-item--has-active-sub-item":"_-RLI8"};
|
|
64525
64764
|
|
|
64526
|
-
var styles$
|
|
64765
|
+
var styles$9 = {"primary-nav-item-badge__small":"_S2i4R","fade-in":"_D9NA6"};
|
|
64527
64766
|
|
|
64528
64767
|
const PrimaryNavItemBadge = ({
|
|
64529
64768
|
badge,
|
|
@@ -64537,7 +64776,7 @@ const PrimaryNavItemBadge = ({
|
|
|
64537
64776
|
const isCounterBadge = typeof badge === 'number' || sumOfSubItemsBadges > 0;
|
|
64538
64777
|
if (isCounterBadge && !isOpen) {
|
|
64539
64778
|
return React__default.createElement("div", {
|
|
64540
|
-
className: styles$
|
|
64779
|
+
className: styles$9['primary-nav-item-badge__small']
|
|
64541
64780
|
});
|
|
64542
64781
|
}
|
|
64543
64782
|
// When the nav is collapsed, we don't show badges. When it's expanded, we show badges for parent items only if they don't have an active sub-item, to avoid redundancy. For sub-items, we always show the badge if it exists.
|
|
@@ -64594,14 +64833,14 @@ const PrimaryNavItem = _ref => {
|
|
|
64594
64833
|
return sum;
|
|
64595
64834
|
}, 0);
|
|
64596
64835
|
const innerContent = React__default.createElement("div", {
|
|
64597
|
-
className: styles$
|
|
64836
|
+
className: styles$a['primary-nav-item__content']
|
|
64598
64837
|
}, React__default.createElement("div", {
|
|
64599
|
-
className: styles$
|
|
64838
|
+
className: styles$a['primary-nav-item__icon'],
|
|
64600
64839
|
"aria-hidden": "true"
|
|
64601
64840
|
}, updatedIcon), React__default.createElement("span", {
|
|
64602
64841
|
ref: labelRef,
|
|
64603
|
-
className: classnames(styles$
|
|
64604
|
-
[styles$
|
|
64842
|
+
className: classnames(styles$a['primary-nav-item__label'], {
|
|
64843
|
+
[styles$a['primary-nav-item__label--hidden']]: !isOpen
|
|
64605
64844
|
}),
|
|
64606
64845
|
title: isOpen && isTruncated ? label : undefined,
|
|
64607
64846
|
onMouseEnter: handleLabelMouseEnter
|
|
@@ -64613,27 +64852,27 @@ const PrimaryNavItem = _ref => {
|
|
|
64613
64852
|
}));
|
|
64614
64853
|
const ariaCurrent = isActive ? 'page' : undefined;
|
|
64615
64854
|
return React__default.createElement("li", {
|
|
64616
|
-
className: classnames(styles$
|
|
64617
|
-
[styles$
|
|
64618
|
-
[styles$
|
|
64619
|
-
[styles$
|
|
64855
|
+
className: classnames(styles$a['primary-nav-item'], {
|
|
64856
|
+
[styles$a['primary-nav-item--active']]: isActive,
|
|
64857
|
+
[styles$a['primary-nav-item--active-subitem']]: hasActiveSubItem,
|
|
64858
|
+
[styles$a['primary-nav-item--has-active-sub-item']]: hasActiveSubItem
|
|
64620
64859
|
})
|
|
64621
64860
|
}, href ? React__default.createElement(Link$1, _extends({
|
|
64622
|
-
className: styles$
|
|
64861
|
+
className: styles$a['primary-nav-item__link'],
|
|
64623
64862
|
onClick: onClick,
|
|
64624
64863
|
to: href,
|
|
64625
64864
|
"aria-current": ariaCurrent
|
|
64626
64865
|
}, dataProps), innerContent) : React__default.createElement("button", _extends({
|
|
64627
64866
|
type: "button",
|
|
64628
|
-
className: styles$
|
|
64867
|
+
className: styles$a['primary-nav-item__link'],
|
|
64629
64868
|
onClick: onClick,
|
|
64630
64869
|
"aria-current": ariaCurrent
|
|
64631
64870
|
}, dataProps), innerContent), hasSubItems && hasActiveSubItem && React__default.createElement("ul", {
|
|
64632
|
-
className: styles$
|
|
64871
|
+
className: styles$a['primary-nav-item__sub-items']
|
|
64633
64872
|
}, children));
|
|
64634
64873
|
};
|
|
64635
64874
|
|
|
64636
|
-
var styles$
|
|
64875
|
+
var styles$8 = {"primary-nav-sub-item":"_kWT6L","primary-nav-sub-item__link":"_KXtsV","primary-nav-sub-item__label--hidden":"_nTZxa","primary-nav-sub-item__content":"_c3utS","primary-nav-sub-item__content--collapsed":"_3IImx","primary-nav-sub-item__content--paywalled":"_WwagZ","primary-nav-sub-item__icon":"_uDuDj","primary-nav-sub-item__label":"_Kg1TF","primary-nav-sub-item__circle":"_uMbkq","fade-in":"_eIHTO","primary-nav-sub-item--active":"_nkaWg"};
|
|
64637
64876
|
|
|
64638
64877
|
const _excluded = ["children", "isActive", "badge", "onClick", "href", "isPaywalled"];
|
|
64639
64878
|
const PrimaryNavSubItem = _ref => {
|
|
@@ -64660,58 +64899,58 @@ const PrimaryNavSubItem = _ref => {
|
|
|
64660
64899
|
}
|
|
64661
64900
|
};
|
|
64662
64901
|
const innerContent = React__default.createElement("div", {
|
|
64663
|
-
className: classnames(styles$
|
|
64664
|
-
[styles$
|
|
64665
|
-
[styles$
|
|
64902
|
+
className: classnames(styles$8['primary-nav-sub-item__content'], {
|
|
64903
|
+
[styles$8['primary-nav-sub-item__content--collapsed']]: !isOpen,
|
|
64904
|
+
[styles$8['primary-nav-sub-item__content--paywalled']]: isPaywalled && isOpen
|
|
64666
64905
|
})
|
|
64667
64906
|
}, !isOpen ? React__default.createElement(Fragment, null, React__default.createElement("div", {
|
|
64668
|
-
className: styles$
|
|
64907
|
+
className: styles$8['primary-nav-sub-item__circle'],
|
|
64669
64908
|
"aria-hidden": "true"
|
|
64670
64909
|
}), React__default.createElement("span", {
|
|
64671
|
-
className: styles$
|
|
64910
|
+
className: styles$8['primary-nav-sub-item__label--hidden']
|
|
64672
64911
|
}, children)) : React__default.createElement(Fragment, null, isPaywalled && React__default.createElement("div", {
|
|
64673
|
-
className: styles$
|
|
64912
|
+
className: styles$8['primary-nav-sub-item__icon'],
|
|
64674
64913
|
"aria-hidden": "true"
|
|
64675
64914
|
}, React__default.createElement(IconAward, {
|
|
64676
64915
|
size: "medium",
|
|
64677
64916
|
color: COLORS['upsell-color']
|
|
64678
64917
|
})), React__default.createElement("div", {
|
|
64679
64918
|
ref: labelRef,
|
|
64680
|
-
className: styles$
|
|
64919
|
+
className: styles$8['primary-nav-sub-item__label'],
|
|
64681
64920
|
onMouseEnter: handleLabelMouseEnter,
|
|
64682
64921
|
title: isTruncated ? children : undefined
|
|
64683
64922
|
}, children)), !!badge && isOpen && React__default.createElement("div", {
|
|
64684
|
-
className: styles$
|
|
64923
|
+
className: styles$8['primary-nav-sub-item__badge']
|
|
64685
64924
|
}, typeof badge === 'number' ? React__default.createElement(Badge, null, badge > 99 ? '99+' : badge) : React__default.createElement(Chip, null, badge)));
|
|
64686
64925
|
const ariaCurrent = isActive ? 'page' : undefined;
|
|
64687
64926
|
return React__default.createElement("li", {
|
|
64688
|
-
className: classnames(styles$
|
|
64689
|
-
[styles$
|
|
64927
|
+
className: classnames(styles$8['primary-nav-sub-item'], {
|
|
64928
|
+
[styles$8['primary-nav-sub-item--active']]: isActive
|
|
64690
64929
|
})
|
|
64691
64930
|
}, href ? React__default.createElement(Link$1, _extends({
|
|
64692
|
-
className: styles$
|
|
64931
|
+
className: styles$8['primary-nav-sub-item__link'],
|
|
64693
64932
|
onClick: onClick,
|
|
64694
64933
|
to: href,
|
|
64695
64934
|
"aria-current": ariaCurrent
|
|
64696
64935
|
}, dataProps), innerContent) : React__default.createElement("button", _extends({
|
|
64697
64936
|
type: "button",
|
|
64698
|
-
className: styles$
|
|
64937
|
+
className: styles$8['primary-nav-sub-item__link'],
|
|
64699
64938
|
onClick: onClick,
|
|
64700
64939
|
"aria-current": ariaCurrent
|
|
64701
64940
|
}, dataProps), innerContent));
|
|
64702
64941
|
};
|
|
64703
64942
|
|
|
64704
|
-
var styles$
|
|
64943
|
+
var styles$7 = {"primary-nav-divider":"_qN8Zl"};
|
|
64705
64944
|
|
|
64706
64945
|
const PrimaryNavDivider = () => {
|
|
64707
64946
|
return React__default.createElement("li", {
|
|
64708
64947
|
role: "separator",
|
|
64709
64948
|
"aria-orientation": "horizontal",
|
|
64710
|
-
className: styles$
|
|
64949
|
+
className: styles$7['primary-nav-divider']
|
|
64711
64950
|
});
|
|
64712
64951
|
};
|
|
64713
64952
|
|
|
64714
|
-
var styles$
|
|
64953
|
+
var styles$6 = {"primary-nav-footer":"_9dbuu","primary-nav-footer--with-shadow":"_Bq3B4"};
|
|
64715
64954
|
|
|
64716
64955
|
const PrimaryNavFooter = ({
|
|
64717
64956
|
children
|
|
@@ -64723,12 +64962,180 @@ const PrimaryNavFooter = ({
|
|
|
64723
64962
|
hasScroll
|
|
64724
64963
|
} = useScrollDetector(contentRef);
|
|
64725
64964
|
return React__default.createElement("ul", {
|
|
64726
|
-
className: classnames(styles$
|
|
64727
|
-
[styles$
|
|
64965
|
+
className: classnames(styles$6['primary-nav-footer'], {
|
|
64966
|
+
[styles$6['primary-nav-footer--with-shadow']]: hasScroll
|
|
64728
64967
|
})
|
|
64729
64968
|
}, children);
|
|
64730
64969
|
};
|
|
64731
64970
|
|
|
64971
|
+
let tabsIdCounter = 0;
|
|
64972
|
+
const TabsContext = React__default.createContext(undefined);
|
|
64973
|
+
const useTabsContext = () => {
|
|
64974
|
+
const context = React__default.useContext(TabsContext);
|
|
64975
|
+
if (!context) {
|
|
64976
|
+
throw new Error('useTabsContext must be used within a <Tabs> component');
|
|
64977
|
+
}
|
|
64978
|
+
return context;
|
|
64979
|
+
};
|
|
64980
|
+
function TabsContextProvider({
|
|
64981
|
+
children,
|
|
64982
|
+
value,
|
|
64983
|
+
defaultValue,
|
|
64984
|
+
onValueChange
|
|
64985
|
+
}) {
|
|
64986
|
+
const [internalValue, setInternalValue] = React__default.useState(defaultValue != null ? defaultValue : '');
|
|
64987
|
+
const isControlled = value !== undefined;
|
|
64988
|
+
const selectedValue = isControlled ? value : internalValue;
|
|
64989
|
+
const handleValueChange = useCallback(newValue => {
|
|
64990
|
+
if (!isControlled) {
|
|
64991
|
+
setInternalValue(newValue);
|
|
64992
|
+
}
|
|
64993
|
+
onValueChange == null || onValueChange(newValue);
|
|
64994
|
+
}, [isControlled, onValueChange]);
|
|
64995
|
+
const [tabsId] = useState(() => `tabs-${tabsIdCounter++}`);
|
|
64996
|
+
const contextValue = useMemo(() => ({
|
|
64997
|
+
selectedValue,
|
|
64998
|
+
onValueChange: handleValueChange,
|
|
64999
|
+
tabsId
|
|
65000
|
+
}), [selectedValue, handleValueChange, tabsId]);
|
|
65001
|
+
return React__default.createElement(TabsContext.Provider, {
|
|
65002
|
+
value: contextValue
|
|
65003
|
+
}, children);
|
|
65004
|
+
}
|
|
65005
|
+
|
|
65006
|
+
const Tabs = ({
|
|
65007
|
+
children,
|
|
65008
|
+
value,
|
|
65009
|
+
defaultValue,
|
|
65010
|
+
onValueChange
|
|
65011
|
+
}) => {
|
|
65012
|
+
return React__default.createElement(TabsContextProvider, {
|
|
65013
|
+
value: value,
|
|
65014
|
+
defaultValue: defaultValue,
|
|
65015
|
+
onValueChange: onValueChange
|
|
65016
|
+
}, children);
|
|
65017
|
+
};
|
|
65018
|
+
|
|
65019
|
+
var styles$5 = {"tab-list":"_j3-Gu"};
|
|
65020
|
+
|
|
65021
|
+
const TabList = ({
|
|
65022
|
+
children,
|
|
65023
|
+
'aria-label': ariaLabel
|
|
65024
|
+
}) => {
|
|
65025
|
+
return React__default.createElement("ul", {
|
|
65026
|
+
role: "tablist",
|
|
65027
|
+
"aria-label": ariaLabel,
|
|
65028
|
+
className: styles$5['tab-list']
|
|
65029
|
+
}, children);
|
|
65030
|
+
};
|
|
65031
|
+
|
|
65032
|
+
var styles$4 = {"tab":"_-BgMZ","tab--active":"_tZ-HE","tab--disabled":"_AyUHY","tab__label":"_WVws4","tab__suffix":"_nQB7q"};
|
|
65033
|
+
|
|
65034
|
+
const Tab = ({
|
|
65035
|
+
children,
|
|
65036
|
+
value,
|
|
65037
|
+
disabled: _disabled = false,
|
|
65038
|
+
suffix,
|
|
65039
|
+
testId
|
|
65040
|
+
}) => {
|
|
65041
|
+
const {
|
|
65042
|
+
selectedValue,
|
|
65043
|
+
onValueChange,
|
|
65044
|
+
tabsId
|
|
65045
|
+
} = useTabsContext();
|
|
65046
|
+
const isActive = selectedValue === value;
|
|
65047
|
+
const handleClick = () => {
|
|
65048
|
+
if (!_disabled) {
|
|
65049
|
+
onValueChange(value);
|
|
65050
|
+
}
|
|
65051
|
+
};
|
|
65052
|
+
const handleKeyDown = e => {
|
|
65053
|
+
const tablistEl = e.currentTarget.closest('[role="tablist"]');
|
|
65054
|
+
if (!tablistEl) return;
|
|
65055
|
+
const tabs = Array.from(tablistEl.querySelectorAll('[role="tab"]:not([disabled])'));
|
|
65056
|
+
const currentIndex = tabs.indexOf(e.currentTarget);
|
|
65057
|
+
const count = tabs.length;
|
|
65058
|
+
let nextIndex;
|
|
65059
|
+
switch (e.key) {
|
|
65060
|
+
case 'ArrowRight':
|
|
65061
|
+
nextIndex = (currentIndex + 1) % count;
|
|
65062
|
+
break;
|
|
65063
|
+
case 'ArrowLeft':
|
|
65064
|
+
nextIndex = (currentIndex - 1 + count) % count;
|
|
65065
|
+
break;
|
|
65066
|
+
case 'Home':
|
|
65067
|
+
nextIndex = 0;
|
|
65068
|
+
break;
|
|
65069
|
+
case 'End':
|
|
65070
|
+
nextIndex = count - 1;
|
|
65071
|
+
break;
|
|
65072
|
+
default:
|
|
65073
|
+
return;
|
|
65074
|
+
}
|
|
65075
|
+
e.preventDefault();
|
|
65076
|
+
const nextTab = tabs[nextIndex];
|
|
65077
|
+
nextTab.focus();
|
|
65078
|
+
const nextValue = nextTab.dataset.value;
|
|
65079
|
+
if (nextValue !== undefined) {
|
|
65080
|
+
onValueChange(nextValue);
|
|
65081
|
+
}
|
|
65082
|
+
};
|
|
65083
|
+
return React__default.createElement("li", {
|
|
65084
|
+
role: "presentation"
|
|
65085
|
+
}, React__default.createElement("button", {
|
|
65086
|
+
type: "button",
|
|
65087
|
+
role: "tab",
|
|
65088
|
+
id: `${tabsId}-tab-${value}`,
|
|
65089
|
+
"aria-controls": `${tabsId}-panel-${value}`,
|
|
65090
|
+
"aria-selected": isActive,
|
|
65091
|
+
disabled: _disabled,
|
|
65092
|
+
tabIndex: isActive ? 0 : -1,
|
|
65093
|
+
"data-value": value,
|
|
65094
|
+
className: classnames(styles$4['tab'], {
|
|
65095
|
+
[styles$4['tab--active']]: isActive,
|
|
65096
|
+
[styles$4['tab--disabled']]: _disabled
|
|
65097
|
+
}),
|
|
65098
|
+
onClick: handleClick,
|
|
65099
|
+
onKeyDown: handleKeyDown,
|
|
65100
|
+
"data-testid": testId
|
|
65101
|
+
}, React__default.createElement("span", {
|
|
65102
|
+
className: styles$4['tab__label'],
|
|
65103
|
+
"data-text": typeof children === 'string' ? children : undefined
|
|
65104
|
+
}, children), suffix && React__default.createElement("span", {
|
|
65105
|
+
className: styles$4['tab__suffix'],
|
|
65106
|
+
"aria-hidden": "true"
|
|
65107
|
+
}, suffix)));
|
|
65108
|
+
};
|
|
65109
|
+
|
|
65110
|
+
var styles$3 = {"tab-panel":"_GW3Wi","tab-panel--hidden":"_DVRRE"};
|
|
65111
|
+
|
|
65112
|
+
const TabPanel = ({
|
|
65113
|
+
children,
|
|
65114
|
+
value,
|
|
65115
|
+
forceMount: _forceMount = false,
|
|
65116
|
+
testId
|
|
65117
|
+
}) => {
|
|
65118
|
+
const {
|
|
65119
|
+
selectedValue,
|
|
65120
|
+
tabsId
|
|
65121
|
+
} = useTabsContext();
|
|
65122
|
+
const isActive = selectedValue === value;
|
|
65123
|
+
if (!_forceMount && !isActive) {
|
|
65124
|
+
return null;
|
|
65125
|
+
}
|
|
65126
|
+
return React__default.createElement("div", {
|
|
65127
|
+
role: "tabpanel",
|
|
65128
|
+
id: `${tabsId}-panel-${value}`,
|
|
65129
|
+
"aria-labelledby": `${tabsId}-tab-${value}`,
|
|
65130
|
+
tabIndex: 0,
|
|
65131
|
+
hidden: _forceMount && !isActive ? true : undefined,
|
|
65132
|
+
className: classnames(styles$3['tab-panel'], {
|
|
65133
|
+
[styles$3['tab-panel--hidden']]: _forceMount && !isActive
|
|
65134
|
+
}),
|
|
65135
|
+
"data-testid": testId
|
|
65136
|
+
}, children);
|
|
65137
|
+
};
|
|
65138
|
+
|
|
64732
65139
|
const EMPTY_STATE_SIZE = {
|
|
64733
65140
|
SMALL: 'small',
|
|
64734
65141
|
MEDIUM: 'medium',
|
|
@@ -64932,5 +65339,5 @@ const EmptyState = props => {
|
|
|
64932
65339
|
return emptyStateContainer;
|
|
64933
65340
|
};
|
|
64934
65341
|
|
|
64935
|
-
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, DropdownListItemSelectable, EmptyState, Form, FormFeedback, FormFooter, FormRow, FormSection, HIGHLIGHT_SHAPE, HintModal, IconAddressBook, IconAnalytics, IconArrowDown, IconArrowDownWideShort, IconArrowLeft, IconArrowRight, IconArrowToTop, IconArrowTurnDownRight, IconArrowUp, IconAward, IconAwardSimple, IconAwful, IconAwfulMonochromatic, IconBad, IconBadMonochromatic, IconBalanceScale, IconBalanceScaleLeft, IconBan, IconBarsH, IconBarsV, IconBell, IconBirthdayCake, IconBold, IconBolt, IconBook, IconBriefcase, IconBullhorn, IconBullseyeArrow, IconCalculator, IconCalendar, IconCalendarAlt, IconCalendarCheck, IconCalendarDay, IconCalendarExclamation, IconCalendarStar, IconCalendarWeek, IconCamera, IconCameraSlash, IconCashRegister, IconChartBar, IconCheck, IconCheckCircle, IconCheckCircleIncomplete, IconCheckCircleIncompleteRole, IconCheckCircleIncompleteUser, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconCircleHalfStroke, IconCircleXMark, IconClipboardList, IconClock, IconClockExclamation, IconClockRewind, IconCog, IconComment, IconCommentLines, IconCopy, IconCreditCard, IconCreditCardPlus, IconDecent, IconDecentMonochromatic, IconDeleteLeft, IconDollarSign, IconDownload, IconEdit, IconEllipsis, IconEllipsisV, IconEnvelope, IconEnvelopeOpenDollar, IconExclamation, IconExclamationTriangle, IconExpand, IconExternalLink, IconEye, IconEyeSlash, IconFaceSmileRelaxed, IconFile, IconFilePdf, IconFileUser, IconFlag, IconFourDotsCircle, IconFourSquares, IconGanttChart, IconGavel, IconGif, IconGift, IconGlobe, IconGood, IconGoodMonochromatic, IconGreat, IconGreatMonochromatic, IconGrinBeam, IconGripVertical, IconHand, IconHandHoldingCoin, IconHandHoldingDollar, IconHandPointRight, IconHandshake, IconHatChef, IconHouse, IconImage, IconInfoCircle, IconIslandTropical, IconItalic, IconLaptopSearch, IconLink, IconList, IconListOl, IconLock, IconMagic, IconMapMarker, IconMedal, IconMemoMagnifyingGlass, IconMessages, IconMicrophone, IconMinus, IconMinusCircle, IconMobile, IconMoneyBill, IconMugSaucer, IconNotesMedical, IconOvertime, IconPaperPlane, IconPaperPlaneClock, IconPaperclip, IconPencil, IconPercentage, IconPhone, IconPlateUtensils, IconPlug, IconPlus, IconPrint, IconQuestionCircle, IconRepeat, IconReply, IconRocket, IconSchool, IconSearch, IconSignIn, IconSignOut, IconSitemap, IconSlidersH, IconSort, IconSortChevron, IconSortChevronDown, IconSortChevronUp, IconSparkle, IconStar, IconStickyNoteLines, IconStopwatch, IconStore, IconStrikethrough, IconSync, IconSyncExclamation, IconTable, IconTachometer, IconThreeSquares, IconThumbsDown, IconThumbsUp, IconTimes, IconTimesOctagon, IconTrash, IconUnderline, IconUndo, IconUniversity, IconUnlock, IconUser, IconUserComputer, IconUserFriends, IconUserPlus, IconUserSearch, IconUserSlash, IconUserTag, IconUserTie, IconUsers, IconVideo, IconVolume, IconVolumeMute, IconWifi, IconWifiSlash, IconWrench, Ink3DGlasses, Ink3DModeling02, Ink3DPrinting, InkAcademicCap, InkAiAutomation, InkAirBalloon, InkAirPlane, InkAirplanePillow, InkAlpinist, InkAmbulance, InkAmericanFootball, InkAmusementPark, InkAnatomy, InkAngryFace, InkAppFolder, InkApps, InkArtistHat, InkArtistPainting, InkAsteroid, InkAstonishedFace, InkAstronaut, InkAudioBook, InkAviatorSunglasses, InkAvocado, InkBackpack, InkBacteria, InkBakingMold, InkBalanceYinYang, InkBallet, InkBamboo, InkBandAid, InkBanjo, InkBarChartUp, InkBarbell, InkBaseball, InkBaseballBatWithBall, InkBasketball, InkBeamingFaceWithSmilingEyes, InkBeverageCola, InkBicycle, InkBigboard, InkBillCheck, InkBirdCage, InkBirdHouse, InkBirthdayCakeSlice, InkBirthdayCap, InkBlackboard, InkBlender, InkBloodBagForTransfusion, InkBonfire, InkBook, InkBookSearch, InkBookShelf, InkBookletBrochure, InkBooks, InkBooksStack, InkBoombox, InkBowl, InkBowling, InkBox, InkBoxInUnfoldedForm, InkBoxOpened, InkBoxing, InkBoxingGloves, InkBrainLearn, InkBreadToast, InkBriefcase, InkBrokenHeart, InkBrush, InkBrushCup, InkBurger, InkBus, InkCabbage, InkCableCar, InkCalculator, InkCallToActionButtons, InkCampingSuv, InkCandies, InkCandy, InkCanoeist, InkCar, InkCarKey1, InkCarKey2, InkCarabine, InkCardGames, InkCardioExerciseAthletePowerlifterWithBarbell, InkCardiogramMonitor, InkCargoShip, InkCarouselWithHorses, InkCarrot, InkCassetteTape, InkCastanets, InkCatFace, InkCatPlaying, InkCatStanding, InkChampagneCheers, InkCheckMark, InkCheese, InkChefHat, InkChemistry, InkCherryBlossoms, InkChestnut, InkChristmasAngel, InkChristmasBells, InkChristmasElf, InkChristmasSack, InkChristmasSnowman, InkChristmasStar, InkChristmasStocking, InkChristmasTree, InkChristmasTreeBall1, InkChristmasTreeBall2, InkChristmasWreath, InkClassicPhone, InkClearNight, InkClosed, InkCloudy, InkCoachWhistle, InkCoctailTropical, InkCodeTerminal, InkCoffeeCup, InkCoffeeCupTakeaway, InkCoffeeMug, InkCogs, InkCoinUsDollar, InkColorPalette, InkColorProfileCmyk, InkCompass, InkComputerMouse, InkCongasDrum, InkContemporaryArtAbstract, InkContentImage, InkContentVideo, InkCookbook, InkCookieMan, InkCookingTongs, InkCorkNoticeBoard, InkCouple01, InkCouple02, InkCouple03, InkCowboyHat, InkCrane, InkCrayfish, InkCreditCard, InkCroissant, InkCrossMark, InkCrossedFingers, InkCrown, InkCruiseShip, InkCrutches, InkCube, InkCupcake, InkCurlingStone, InkCutScissors, InkCutterPaperKnife, InkCuttingBoard, InkCyclistBicycle, InkDataFlow, InkDataReport, InkDeadline, InkDesignSketchOfClothes, InkDeskLamp, InkDiagnosisDocument, InkDicer, InkDigitalPiano, InkDigitalThermometer, InkDiplomaCertificate, InkDirectionSigns, InkDirigible, InkDiscoBall, InkDiscountTag, InkDj, InkDjembeAfricanDrum, InkDna, InkDoNotDisturb, InkDocumentSignature, InkDocumentWithInfographic, InkDocumentsAndMedia, InkDogFace, InkDogHouse, InkDogStanding, InkDogToy, InkDollarBill, InkDolphin, InkDonut, InkDoubleDecker, InkDrawing, InkDrawing1, InkDrawingOnGraphicTablet, InkDrawingPalette, InkDropperContainer, InkDrum, InkDrumSet, InkDuctTape, InkDumbbell, InkEar, InkEarWheat, InkEggSunnySide, InkElectricCoolingFan, InkEmail, InkEmailInbox, InkEmailOpened, InkEmbroidery, InkEmployeeIdBadge, InkEmployeeOfMonth, InkEraser, InkExtensionCableCord, InkExtractorHood, InkEyeDropper, InkEyedropperWithColorPalette, InkFaceBlowingKiss, InkFaceMask, InkFaceWithTearsOfJoy, InkFencerSwordsmanWithSaber, InkFileFolder, InkFingerSnap, InkFingerWalking, InkFireTrending, InkFirecracker, InkFireworks, InkFishAquarium, InkFistRaised, InkFitnessTracker, InkFlag, InkFlashDriveUsb, InkFlashlight, InkFlipFlops, InkFlippers, InkFlowerBouquet, InkFlowerVase, InkFlute, InkFocusEyeHidden, InkFootballPlayer, InkForm, InkFourLeafClover, InkFrenchFries, InkFrisbee, InkFruitBowl, InkFryingPanEggs, InkGardenFence, InkGardenScissors, InkGardenShovel, InkGardeningFork, InkGasStationPump, InkGiftBox, InkGlobalInternational, InkGlobe, InkGoShopping, InkGolfClubSet, InkGolfTennisHatCap, InkGrapes, InkGraphicFileGalleryFrame, InkGrimacingFace, InkGroup7975, InkGroupOnlineTherapy, InkGuidelineBrandBook, InkGuitar, InkHalloweenGhost1, InkHalloweenGhost2, InkHalloweenJack, InkHandBandage, InkHandDrawingWithPencil, InkHandMeasuringHorizontally, InkHandMeasuringVertically, InkHandMeditationGesture, InkHandRaised, InkHandSignCall, InkHandSignChill, InkHandSignHalfHeartLeft, InkHandSignLittle, InkHandSignRock, InkHandSignStop, InkHandThreeFingers, InkHandVictoryLeftHand, InkHandVictoryRightHand, InkHandVulcanSalute, InkHandWaving, InkHandWithCamera, InkHandWithCards, InkHandWithChopsticks, InkHandWithCigarette, InkHandWithCoins, InkHandWithCreditCard, InkHandWithCup, InkHandWithDiamonds, InkHandWithDices, InkHandWithGem, InkHandWithGift, InkHandWithGlass, InkHandWithMagicWand, InkHandWithPaletteknifePainting, InkHandWithPencilDrawing, InkHandWithPhone, InkHandWithPuzzle, InkHandWithRose, InkHandWithSeedsPlanting, InkHandWithSmartPen, InkHandWithSpray, InkHandWithToothBrush, InkHandWithWatches, InkHandWithWipingCloth, InkHanukkah, InkHare, InkHarmonica, InkHarp, InkHazelnut, InkHeadMirror, InkHeadphones, InkHelicopter, InkHighSpeedTrain, InkHockeyPlayer, InkHockeyStickWithPuck, InkHorn, InkHospitalBed, InkHotAirBalloon, InkHotDog, InkHotelSign, InkHumanMoods, InkIceCream, InkIceMold, InkIceSkating, InkIndependenceDayGrill, InkIndexPointingDown, InkIndividualOnlineTherapy, InkInfographics, InkInhaler, InkInstagramPost, InkInteriorDesignHouseBlueprintPaperPlan, InkJoystick, InkJuiceCarton, InkJumpingRopes, InkKalimba, InkKarateMaster, InkKayak, InkKettlebell, InkKey, InkKeyboard, InkKidney, InkKitchenApron, InkKnife, InkLabTest, InkLabTube, InkLabelDesign, InkLadle, InkLandscapeDesign, InkLanguage, InkLaptop, InkLaptopBrowser, InkLawnmower, InkLayers, InkLeaf1, InkLeaf2, InkLifeJacket, InkLightBulb, InkLink, InkLockLocked, InkLockUnlocked, InkLunchBag, InkLungs, InkLuxuryJewellery, InkMagazine, InkMagicStick, InkMagicTricks, InkMagicWand, InkMagnet, InkMakingPhotoOnPhone, InkMaleFemaleSex, InkMan01, InkMan02, InkMan03, InkMan04, InkMan05, InkMan06, InkMan07, InkMan08, InkMan09, InkMan10, InkMan11, InkMan12, InkMan13, InkMan14, InkMan15, InkMan16, InkMan17, InkMaracas, InkMarker, InkMarketingCampaign, InkMascarade, InkMasher, InkMatcha, InkMatches, InkMeasuringJug, InkMedal, InkMedicalKit, InkMessageInformation, InkMessageQuestionsFaq, InkMetronome, InkMicroChips, InkMicrophone, InkMicroscope, InkMicrowaveOven, InkMilkCarton, InkMindDepression, InkMindEnergyLevels, InkMindProblemSolving, InkMindQuestion, InkMindThoughtProcess, InkMixer, InkMixingIngredients, InkMobileMockup, InkMoneyMetricUp, InkMoneySearch, InkMonitorBrowser, InkMoped, InkMotocrossMotorcycle, InkMotorbike, InkMural, InkMuseumPainting, InkMuseumSculpture, InkMushroom, InkNasalSpray, InkNews, InkNewtonsCradle, InkNoodlesWok, InkNoteBook, InkNotepadWithArrow, InkNotesChart, InkNotificationHashtag, InkNuclearEnergy, InkOcarina, InkOfficeChair01, InkOfficeChair02, InkOfficeNotebook, InkOfficePlant1, InkOfficePlant2, InkOfficePlant3, InkOfficeProjector, InkOfficeSnack, InkOintment, InkOliveOil, InkOnlineMeeting, InkOpen, InkOpenAllDay24Hours, InkOven, InkOvenGlove, InkOverlapOverlayIntersectionOpacity, InkPacManWithCursor, InkPackageDiscount, InkPaintTin, InkPaletteForDrawing, InkPalm, InkPanama, InkPanflute, InkPaperClip, InkPaperMap, InkPaperPlane, InkPaperShredder, InkPartlyCloudyDay, InkPartlyCloudyNight, InkPartyHat, InkPassport, InkPen, InkPenCurves, InkPenToolCursorWithBeziers, InkPencil, InkPencilSharpener, InkPepper, InkPerformanceMetric, InkPetBowl, InkPetCollar, InkPetCrate, InkPetFood, InkPetLitterShovel, InkPharmacyStore, InkPiano, InkPieChartDiscount, InkPieChartRevenue, InkPills, InkPillsBlisterPack, InkPillsContainer, InkPizzaSlice, InkPlanet, InkPlantInTube, InkPlantPot1, InkPlantPot2, InkPlantPot3, InkPlantPot4, InkPlantPot5, InkPlantPot6, InkPlates, InkPleadingFace, InkPokemon, InkPolaroidPhotoCard1, InkPolaroidPhotoCard2, InkPoleVaultAthleteJumper, InkPosTerminalMachine, InkPot, InkPottery, InkPowerBoat1, InkPowerBoat2, InkPresentationLive, InkPresentationReport, InkPrinter, InkPrivacyGdpr, InkProfile, InkProjector, InkProtractorRuler, InkPsychiatryNeurons, InkPsychologySymbol, InkPsychotherapistTakingNotes, InkPunchingBoxingBag, InkPushingButton, InkQrCode, InkQrCodeScanMobile, InkQuestionAnswerChat, InkRabbit, InkRainDrops, InkRainbow, InkRainy, InkRakes, InkReedGrass, InkRescueCircle, InkResistanceBand, InkReusableWaterBottle, InkReusableWaterBottleWithEnergyDrink, InkRoadmap, InkRobotics, InkRoller, InkRollerSkates, InkRollerSkating, InkRuler, InkRunning, InkRv, InkSailboat, InkSaltShaker, InkSandglass, InkSanitizer, InkSauceBottle, InkSaucePan, InkSavingMoney, InkSaxophone, InkScaleToolCrop, InkScanner, InkScissors, InkScooter, InkSculptureCarvingChisel, InkSearch, InkSeeds, InkSegway, InkSemi, InkSettings, InkShapes, InkShelfWithBooks, InkShoppingBasket, InkShoppingCart, InkSkateboard, InkSkateboarder, InkSkates, InkSkier, InkSleepingFace, InkSlotMachine, InkSmartphone, InkSmilingFaceWithGlasses, InkSmilingFaceWithHeartEyes, InkSmilingFaceWithHearts, InkSmilingFaceWithSunglasses, InkSmilingFaceWithTear, InkSmirkingFace, InkSnake, InkSnorkeling, InkSnowboarder, InkSnowflake, InkSnowy, InkSoccer, InkSoup, InkSpaceTravel, InkSparkles1, InkSparkles2, InkSparkles3, InkSpatula, InkSportBag, InkSportsHockeyFootballHelmet, InkSprayPaintCan, InkStPatricksDayClover, InkStaircaseUp, InkStapler, InkSteak, InkStethoscope, InkStickerSmileEmoji, InkStickyNotes, InkStomach, InkStoneStacking, InkStopSign, InkStoreShop, InkStrainer, InkStrongWind, InkSubmarine, InkSubwoofer, InkSuitcase, InkSumoWrestler, InkSunBed, InkSunflower, InkSunscreen, InkSurferSurfboard, InkSushi, InkSwimmingGogglesWithCap, InkSwimsuitBikini, InkSwimsuitShorts, InkSwissKnife, InkSyringe, InkSulptureBust as InkSсulptureBust, InkTShirtPrinting, InkTableTennis, InkTabletMockup, InkTaco, InkTambourine, InkTarget, InkTeaPot, InkTelescope, InkTemperatureCold, InkTemperatureHot, InkTemplate, InkTennis, InkTennisShuttlecock, InkTent, InkTestExamGrades, InkTextToolFont, InkTheatre, InkThinkingFace, InkThumbBackDirection, InkThumbsUp, InkThunderstorm, InkTimer, InkToaster, InkTooth, InkTornado, InkTouristBackpack, InkTouristBriefcase, InkTractor, InkTrafficLight, InkTram, InkTransparentBackground, InkTrashBin, InkTree, InkTreeEvergreen, InkTreeStump, InkTriangle, InkTrumpet, InkTuningFork, InkUmbrella, InkUploadToCloud, InkUsbDrive01, InkUsbDrive02, InkUsbHub, InkValentinesDayTeddy, InkVaseWithWildflowers, InkVinylRecord, InkVinylRecordPlayer, InkViolin, InkVirus, InkVocalMicrophone, InkVolleyball, InkWalkingFrame, InkWallCalendar, InkWallClock, InkWallet, InkWaterScooter, InkWateringCan, InkWateringHose, InkWatermelon, InkWebBrowsing1, InkWebBrowsing2, InkWebCamera, InkWebUiElementImageSettings, InkWebWindow, InkWebsiteOnMonitor, InkWhisk, InkWifiRouter, InkWindy, InkWinkingFaceWithTongue, InkWoman01, InkWoman02, InkWoman03, InkWoman04, InkWoman05, InkWoman06, InkWoman07, InkWoman08, InkWoman09, InkWoman10, InkWoman11, InkWoman12, InkWorkflow, InkWorkingByDesk, InkWorkingTable, InkWritingPen, InkXylophone, InkYogaMan, InkYogaWoman, Inline, InlineBanner, Italic, Link, MicroBanner, Modal, ModalBody, ModalFooter, MultiSelectField, NumberField, Page, PageLayout, PaginationControls, PasswordField, Paywall, PercentageField, PersistentBanner, PhoneField, Pill, PillSelectField, Popover, PrimaryNav, PrimaryNavDivider, PrimaryNavFooter, PrimaryNavItem, PrimaryNavSubItem, 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, everyOtherWeekday, firstOfMonth, isValidPhoneNumber, lastOfMonth, nthWeekdayOfMonth, toast, useDataTableContext };
|
|
65342
|
+
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, DropdownListItemSelectable, EmptyState, Form, FormFeedback, FormFooter, FormRow, FormSection, HIGHLIGHT_SHAPE, HintModal, IconAddressBook, IconAnalytics, IconArrowDown, IconArrowDownWideShort, IconArrowLeft, IconArrowRight, IconArrowToTop, IconArrowTurnDownRight, IconArrowUp, IconAward, IconAwardSimple, IconAwful, IconAwfulMonochromatic, IconBad, IconBadMonochromatic, IconBalanceScale, IconBalanceScaleLeft, IconBan, IconBarsH, IconBarsV, IconBell, IconBirthdayCake, IconBold, IconBolt, IconBook, IconBriefcase, IconBullhorn, IconBullseyeArrow, IconCalculator, IconCalendar, IconCalendarAlt, IconCalendarCheck, IconCalendarDay, IconCalendarExclamation, IconCalendarStar, IconCalendarWeek, IconCamera, IconCameraSlash, IconCashRegister, IconChartBar, IconCheck, IconCheckCircle, IconCheckCircleIncomplete, IconCheckCircleIncompleteRole, IconCheckCircleIncompleteUser, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconCircleHalfStroke, IconCircleXMark, IconClipboardList, IconClock, IconClockExclamation, IconClockRewind, IconCog, IconComment, IconCommentLines, IconCopy, IconCreditCard, IconCreditCardPlus, IconDecent, IconDecentMonochromatic, IconDeleteLeft, IconDollarSign, IconDownload, IconEdit, IconEllipsis, IconEllipsisV, IconEnvelope, IconEnvelopeOpenDollar, IconExclamation, IconExclamationTriangle, IconExpand, IconExternalLink, IconEye, IconEyeSlash, IconFaceSmileRelaxed, IconFile, IconFilePdf, IconFileUser, IconFlag, IconFourDotsCircle, IconFourSquares, IconGanttChart, IconGavel, IconGif, IconGift, IconGlobe, IconGood, IconGoodMonochromatic, IconGreat, IconGreatMonochromatic, IconGrinBeam, IconGripVertical, IconHand, IconHandHoldingCoin, IconHandHoldingDollar, IconHandPointRight, IconHandshake, IconHatChef, IconHouse, IconImage, IconInfoCircle, IconIslandTropical, IconItalic, IconLaptopSearch, IconLink, IconList, IconListOl, IconLock, IconMagic, IconMapMarker, IconMedal, IconMemoMagnifyingGlass, IconMessages, IconMicrophone, IconMinus, IconMinusCircle, IconMobile, IconMoneyBill, IconMugSaucer, IconNotesMedical, IconOvertime, IconPaperPlane, IconPaperPlaneClock, IconPaperclip, IconPencil, IconPercentage, IconPhone, IconPlateUtensils, IconPlug, IconPlus, IconPrint, IconQuestionCircle, IconRepeat, IconReply, IconRocket, IconSchool, IconSearch, IconSignIn, IconSignOut, IconSitemap, IconSlidersH, IconSort, IconSortChevron, IconSortChevronDown, IconSortChevronUp, IconSparkle, IconStar, IconStickyNoteLines, IconStopwatch, IconStore, IconStrikethrough, IconSync, IconSyncExclamation, IconTable, IconTachometer, IconThreeSquares, IconThumbsDown, IconThumbsUp, IconTimes, IconTimesOctagon, IconTrash, IconUnderline, IconUndo, IconUniversity, IconUnlock, IconUser, IconUserComputer, IconUserFriends, IconUserPlus, IconUserSearch, IconUserSlash, IconUserTag, IconUserTie, IconUsers, IconVideo, IconVolume, IconVolumeMute, IconWifi, IconWifiSlash, IconWrench, Ink3DGlasses, Ink3DModeling02, Ink3DPrinting, InkAcademicCap, InkAiAutomation, InkAirBalloon, InkAirPlane, InkAirplanePillow, InkAlpinist, InkAmbulance, InkAmericanFootball, InkAmusementPark, InkAnatomy, InkAngryFace, InkAppFolder, InkApps, InkArtistHat, InkArtistPainting, InkAsteroid, InkAstonishedFace, InkAstronaut, InkAudioBook, InkAviatorSunglasses, InkAvocado, InkBackpack, InkBacteria, InkBakingMold, InkBalanceYinYang, InkBallet, InkBamboo, InkBandAid, InkBanjo, InkBarChartUp, InkBarbell, InkBaseball, InkBaseballBatWithBall, InkBasketball, InkBeamingFaceWithSmilingEyes, InkBeverageCola, InkBicycle, InkBigboard, InkBillCheck, InkBirdCage, InkBirdHouse, InkBirthdayCakeSlice, InkBirthdayCap, InkBlackboard, InkBlender, InkBloodBagForTransfusion, InkBonfire, InkBook, InkBookSearch, InkBookShelf, InkBookletBrochure, InkBooks, InkBooksStack, InkBoombox, InkBowl, InkBowling, InkBox, InkBoxInUnfoldedForm, InkBoxOpened, InkBoxing, InkBoxingGloves, InkBrainLearn, InkBreadToast, InkBriefcase, InkBrokenHeart, InkBrush, InkBrushCup, InkBurger, InkBus, InkCabbage, InkCableCar, InkCalculator, InkCallToActionButtons, InkCampingSuv, InkCandies, InkCandy, InkCanoeist, InkCar, InkCarKey1, InkCarKey2, InkCarabine, InkCardGames, InkCardioExerciseAthletePowerlifterWithBarbell, InkCardiogramMonitor, InkCargoShip, InkCarouselWithHorses, InkCarrot, InkCassetteTape, InkCastanets, InkCatFace, InkCatPlaying, InkCatStanding, InkChampagneCheers, InkCheckMark, InkCheese, InkChefHat, InkChemistry, InkCherryBlossoms, InkChestnut, InkChristmasAngel, InkChristmasBells, InkChristmasElf, InkChristmasSack, InkChristmasSnowman, InkChristmasStar, InkChristmasStocking, InkChristmasTree, InkChristmasTreeBall1, InkChristmasTreeBall2, InkChristmasWreath, InkClassicPhone, InkClearNight, InkClosed, InkCloudy, InkCoachWhistle, InkCoctailTropical, InkCodeTerminal, InkCoffeeCup, InkCoffeeCupTakeaway, InkCoffeeMug, InkCogs, InkCoinUsDollar, InkColorPalette, InkColorProfileCmyk, InkCompass, InkComputerMouse, InkCongasDrum, InkContemporaryArtAbstract, InkContentImage, InkContentVideo, InkCookbook, InkCookieMan, InkCookingTongs, InkCorkNoticeBoard, InkCouple01, InkCouple02, InkCouple03, InkCowboyHat, InkCrane, InkCrayfish, InkCreditCard, InkCroissant, InkCrossMark, InkCrossedFingers, InkCrown, InkCruiseShip, InkCrutches, InkCube, InkCupcake, InkCurlingStone, InkCutScissors, InkCutterPaperKnife, InkCuttingBoard, InkCyclistBicycle, InkDataFlow, InkDataReport, InkDeadline, InkDesignSketchOfClothes, InkDeskLamp, InkDiagnosisDocument, InkDicer, InkDigitalPiano, InkDigitalThermometer, InkDiplomaCertificate, InkDirectionSigns, InkDirigible, InkDiscoBall, InkDiscountTag, InkDj, InkDjembeAfricanDrum, InkDna, InkDoNotDisturb, InkDocumentSignature, InkDocumentWithInfographic, InkDocumentsAndMedia, InkDogFace, InkDogHouse, InkDogStanding, InkDogToy, InkDollarBill, InkDolphin, InkDonut, InkDoubleDecker, InkDrawing, InkDrawing1, InkDrawingOnGraphicTablet, InkDrawingPalette, InkDropperContainer, InkDrum, InkDrumSet, InkDuctTape, InkDumbbell, InkEar, InkEarWheat, InkEggSunnySide, InkElectricCoolingFan, InkEmail, InkEmailInbox, InkEmailOpened, InkEmbroidery, InkEmployeeIdBadge, InkEmployeeOfMonth, InkEraser, InkExtensionCableCord, InkExtractorHood, InkEyeDropper, InkEyedropperWithColorPalette, InkFaceBlowingKiss, InkFaceMask, InkFaceWithTearsOfJoy, InkFencerSwordsmanWithSaber, InkFileFolder, InkFingerSnap, InkFingerWalking, InkFireTrending, InkFirecracker, InkFireworks, InkFishAquarium, InkFistRaised, InkFitnessTracker, InkFlag, InkFlashDriveUsb, InkFlashlight, InkFlipFlops, InkFlippers, InkFlowerBouquet, InkFlowerVase, InkFlute, InkFocusEyeHidden, InkFootballPlayer, InkForm, InkFourLeafClover, InkFrenchFries, InkFrisbee, InkFruitBowl, InkFryingPanEggs, InkGardenFence, InkGardenScissors, InkGardenShovel, InkGardeningFork, InkGasStationPump, InkGiftBox, InkGlobalInternational, InkGlobe, InkGoShopping, InkGolfClubSet, InkGolfTennisHatCap, InkGrapes, InkGraphicFileGalleryFrame, InkGrimacingFace, InkGroup7975, InkGroupOnlineTherapy, InkGuidelineBrandBook, InkGuitar, InkHalloweenGhost1, InkHalloweenGhost2, InkHalloweenJack, InkHandBandage, InkHandDrawingWithPencil, InkHandMeasuringHorizontally, InkHandMeasuringVertically, InkHandMeditationGesture, InkHandRaised, InkHandSignCall, InkHandSignChill, InkHandSignHalfHeartLeft, InkHandSignLittle, InkHandSignRock, InkHandSignStop, InkHandThreeFingers, InkHandVictoryLeftHand, InkHandVictoryRightHand, InkHandVulcanSalute, InkHandWaving, InkHandWithCamera, InkHandWithCards, InkHandWithChopsticks, InkHandWithCigarette, InkHandWithCoins, InkHandWithCreditCard, InkHandWithCup, InkHandWithDiamonds, InkHandWithDices, InkHandWithGem, InkHandWithGift, InkHandWithGlass, InkHandWithMagicWand, InkHandWithPaletteknifePainting, InkHandWithPencilDrawing, InkHandWithPhone, InkHandWithPuzzle, InkHandWithRose, InkHandWithSeedsPlanting, InkHandWithSmartPen, InkHandWithSpray, InkHandWithToothBrush, InkHandWithWatches, InkHandWithWipingCloth, InkHanukkah, InkHare, InkHarmonica, InkHarp, InkHazelnut, InkHeadMirror, InkHeadphones, InkHelicopter, InkHighSpeedTrain, InkHockeyPlayer, InkHockeyStickWithPuck, InkHorn, InkHospitalBed, InkHotAirBalloon, InkHotDog, InkHotelSign, InkHumanMoods, InkIceCream, InkIceMold, InkIceSkating, InkIndependenceDayGrill, InkIndexPointingDown, InkIndividualOnlineTherapy, InkInfographics, InkInhaler, InkInstagramPost, InkInteriorDesignHouseBlueprintPaperPlan, InkJoystick, InkJuiceCarton, InkJumpingRopes, InkKalimba, InkKarateMaster, InkKayak, InkKettlebell, InkKey, InkKeyboard, InkKidney, InkKitchenApron, InkKnife, InkLabTest, InkLabTube, InkLabelDesign, InkLadle, InkLandscapeDesign, InkLanguage, InkLaptop, InkLaptopBrowser, InkLawnmower, InkLayers, InkLeaf1, InkLeaf2, InkLifeJacket, InkLightBulb, InkLink, InkLockLocked, InkLockUnlocked, InkLunchBag, InkLungs, InkLuxuryJewellery, InkMagazine, InkMagicStick, InkMagicTricks, InkMagicWand, InkMagnet, InkMakingPhotoOnPhone, InkMaleFemaleSex, InkMan01, InkMan02, InkMan03, InkMan04, InkMan05, InkMan06, InkMan07, InkMan08, InkMan09, InkMan10, InkMan11, InkMan12, InkMan13, InkMan14, InkMan15, InkMan16, InkMan17, InkMaracas, InkMarker, InkMarketingCampaign, InkMascarade, InkMasher, InkMatcha, InkMatches, InkMeasuringJug, InkMedal, InkMedicalKit, InkMessageInformation, InkMessageQuestionsFaq, InkMetronome, InkMicroChips, InkMicrophone, InkMicroscope, InkMicrowaveOven, InkMilkCarton, InkMindDepression, InkMindEnergyLevels, InkMindProblemSolving, InkMindQuestion, InkMindThoughtProcess, InkMixer, InkMixingIngredients, InkMobileMockup, InkMoneyMetricUp, InkMoneySearch, InkMonitorBrowser, InkMoped, InkMotocrossMotorcycle, InkMotorbike, InkMural, InkMuseumPainting, InkMuseumSculpture, InkMushroom, InkNasalSpray, InkNews, InkNewtonsCradle, InkNoodlesWok, InkNoteBook, InkNotepadWithArrow, InkNotesChart, InkNotificationHashtag, InkNuclearEnergy, InkOcarina, InkOfficeChair01, InkOfficeChair02, InkOfficeNotebook, InkOfficePlant1, InkOfficePlant2, InkOfficePlant3, InkOfficeProjector, InkOfficeSnack, InkOintment, InkOliveOil, InkOnlineMeeting, InkOpen, InkOpenAllDay24Hours, InkOven, InkOvenGlove, InkOverlapOverlayIntersectionOpacity, InkPacManWithCursor, InkPackageDiscount, InkPaintTin, InkPaletteForDrawing, InkPalm, InkPanama, InkPanflute, InkPaperClip, InkPaperMap, InkPaperPlane, InkPaperShredder, InkPartlyCloudyDay, InkPartlyCloudyNight, InkPartyHat, InkPassport, InkPen, InkPenCurves, InkPenToolCursorWithBeziers, InkPencil, InkPencilSharpener, InkPepper, InkPerformanceMetric, InkPetBowl, InkPetCollar, InkPetCrate, InkPetFood, InkPetLitterShovel, InkPharmacyStore, InkPiano, InkPieChartDiscount, InkPieChartRevenue, InkPills, InkPillsBlisterPack, InkPillsContainer, InkPizzaSlice, InkPlanet, InkPlantInTube, InkPlantPot1, InkPlantPot2, InkPlantPot3, InkPlantPot4, InkPlantPot5, InkPlantPot6, InkPlates, InkPleadingFace, InkPokemon, InkPolaroidPhotoCard1, InkPolaroidPhotoCard2, InkPoleVaultAthleteJumper, InkPosTerminalMachine, InkPot, InkPottery, InkPowerBoat1, InkPowerBoat2, InkPresentationLive, InkPresentationReport, InkPrinter, InkPrivacyGdpr, InkProfile, InkProjector, InkProtractorRuler, InkPsychiatryNeurons, InkPsychologySymbol, InkPsychotherapistTakingNotes, InkPunchingBoxingBag, InkPushingButton, InkQrCode, InkQrCodeScanMobile, InkQuestionAnswerChat, InkRabbit, InkRainDrops, InkRainbow, InkRainy, InkRakes, InkReedGrass, InkRescueCircle, InkResistanceBand, InkReusableWaterBottle, InkReusableWaterBottleWithEnergyDrink, InkRoadmap, InkRobotics, InkRoller, InkRollerSkates, InkRollerSkating, InkRuler, InkRunning, InkRv, InkSailboat, InkSaltShaker, InkSandglass, InkSanitizer, InkSauceBottle, InkSaucePan, InkSavingMoney, InkSaxophone, InkScaleToolCrop, InkScanner, InkScissors, InkScooter, InkSculptureCarvingChisel, InkSearch, InkSeeds, InkSegway, InkSemi, InkSettings, InkShapes, InkShelfWithBooks, InkShoppingBasket, InkShoppingCart, InkSkateboard, InkSkateboarder, InkSkates, InkSkier, InkSleepingFace, InkSlotMachine, InkSmartphone, InkSmilingFaceWithGlasses, InkSmilingFaceWithHeartEyes, InkSmilingFaceWithHearts, InkSmilingFaceWithSunglasses, InkSmilingFaceWithTear, InkSmirkingFace, InkSnake, InkSnorkeling, InkSnowboarder, InkSnowflake, InkSnowy, InkSoccer, InkSoup, InkSpaceTravel, InkSparkles1, InkSparkles2, InkSparkles3, InkSpatula, InkSportBag, InkSportsHockeyFootballHelmet, InkSprayPaintCan, InkStPatricksDayClover, InkStaircaseUp, InkStapler, InkSteak, InkStethoscope, InkStickerSmileEmoji, InkStickyNotes, InkStomach, InkStoneStacking, InkStopSign, InkStoreShop, InkStrainer, InkStrongWind, InkSubmarine, InkSubwoofer, InkSuitcase, InkSumoWrestler, InkSunBed, InkSunflower, InkSunscreen, InkSurferSurfboard, InkSushi, InkSwimmingGogglesWithCap, InkSwimsuitBikini, InkSwimsuitShorts, InkSwissKnife, InkSyringe, InkSulptureBust as InkSсulptureBust, InkTShirtPrinting, InkTableTennis, InkTabletMockup, InkTaco, InkTambourine, InkTarget, InkTeaPot, InkTelescope, InkTemperatureCold, InkTemperatureHot, InkTemplate, InkTennis, InkTennisShuttlecock, InkTent, InkTestExamGrades, InkTextToolFont, InkTheatre, InkThinkingFace, InkThumbBackDirection, InkThumbsUp, InkThunderstorm, InkTimer, InkToaster, InkTooth, InkTornado, InkTouristBackpack, InkTouristBriefcase, InkTractor, InkTrafficLight, InkTram, InkTransparentBackground, InkTrashBin, InkTree, InkTreeEvergreen, InkTreeStump, InkTriangle, InkTrumpet, InkTuningFork, InkUmbrella, InkUploadToCloud, InkUsbDrive01, InkUsbDrive02, InkUsbHub, InkValentinesDayTeddy, InkVaseWithWildflowers, InkVinylRecord, InkVinylRecordPlayer, InkViolin, InkVirus, InkVocalMicrophone, InkVolleyball, InkWalkingFrame, InkWallCalendar, InkWallClock, InkWallet, InkWaterScooter, InkWateringCan, InkWateringHose, InkWatermelon, InkWebBrowsing1, InkWebBrowsing2, InkWebCamera, InkWebUiElementImageSettings, InkWebWindow, InkWebsiteOnMonitor, InkWhisk, InkWifiRouter, InkWindy, InkWinkingFaceWithTongue, InkWoman01, InkWoman02, InkWoman03, InkWoman04, InkWoman05, InkWoman06, InkWoman07, InkWoman08, InkWoman09, InkWoman10, InkWoman11, InkWoman12, InkWorkflow, InkWorkingByDesk, InkWorkingTable, InkWritingPen, InkXylophone, InkYogaMan, InkYogaWoman, Inline, InlineBanner, Italic, Link, MicroBanner, Modal, ModalBody, ModalFooter, MultiSelectField, NumberField, Page, PageLayout, PaginationControls, PasswordField, Paywall, PercentageField, PersistentBanner, PhoneField, Pill, PillSelectField, Popover, PrimaryNav, PrimaryNavDivider, PrimaryNavFooter, PrimaryNavItem, PrimaryNavSubItem, 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, Tab, TabList, TabPanel, Tabs, Text, TextAreaField, TextField, TimeField, TimeRangeField, Toggle, ToolbarSelect, Tooltip, Underline, WeekField, ZINDEX, everyOtherWeekday, firstOfMonth, isValidPhoneNumber, lastOfMonth, nthWeekdayOfMonth, toast, useDataTableContext };
|
|
64936
65343
|
//# sourceMappingURL=index.modern.mjs.map
|