@7shifts/sous-chef 4.5.1 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controls/DateFilter/DateFilter.d.ts +5 -0
- package/dist/forms/DateField/DateField.d.ts +5 -0
- package/dist/forms/DateRangeField/DateRangeCalendar/DateRangeCalendar.d.ts +4 -0
- package/dist/forms/DateRangeField/DateRangeField.d.ts +6 -0
- package/dist/forms/DateRangeField/FromDate/FromDate.d.ts +3 -1
- package/dist/forms/DateRangeField/ToDate/ToDate.d.ts +2 -0
- package/dist/forms/WeekField/WeekField.d.ts +5 -0
- package/dist/forms/index.d.ts +4 -0
- package/dist/index.css +194 -20
- package/dist/index.css.map +1 -1
- package/dist/index.js +501 -127
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +556 -206
- package/dist/index.modern.js.map +1 -1
- package/dist/overlay/Calendar/Calendar.d.ts +4 -0
- package/dist/overlay/Calendar/CalendarHighlights/CalendarHighlights.d.ts +8 -0
- package/dist/overlay/Calendar/CalendarHighlights/index.d.ts +1 -0
- package/dist/overlay/Calendar/domain.d.ts +16 -0
- package/dist/utils/highlight-patterns.d.ts +25 -0
- package/dist/utils/highlight.d.ts +47 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7,7 +7,7 @@ import { debounce } from 'lodash-es';
|
|
|
7
7
|
import parseTime from 'time-autocomplete/src/core/AMPMParser';
|
|
8
8
|
import { Link as Link$1, NavLink } from 'react-router-dom';
|
|
9
9
|
import ReactModal from 'react-modal';
|
|
10
|
-
import { DayPicker } from 'react-day-picker';
|
|
10
|
+
import { isMatch, DayPicker } from 'react-day-picker';
|
|
11
11
|
import dateFnsFormat from 'date-fns/format';
|
|
12
12
|
import dateFnsParse from 'date-fns/parse';
|
|
13
13
|
import startOfDay from 'date-fns/startOfDay';
|
|
@@ -17,6 +17,10 @@ import { isSupportedCountry, parsePhoneNumber, AsYouType, getCountryCallingCode,
|
|
|
17
17
|
import Select, { components } from 'react-select';
|
|
18
18
|
import AsyncSelect from 'react-select/async';
|
|
19
19
|
import { startOfDay as startOfDay$1, isDate } from 'date-fns';
|
|
20
|
+
import getDay from 'date-fns/getDay';
|
|
21
|
+
import getDate from 'date-fns/getDate';
|
|
22
|
+
import getDaysInMonth from 'date-fns/getDaysInMonth';
|
|
23
|
+
import differenceInCalendarWeeks from 'date-fns/differenceInCalendarWeeks';
|
|
20
24
|
|
|
21
25
|
// This file is automatically generated by 'scripts/tokens/build-colors.sh'
|
|
22
26
|
// Do not edit this file directly, if you need to add a color modify 'src/foundation/tokens/color/_color-tokens.scss'
|
|
@@ -268,7 +272,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
268
272
|
return t;
|
|
269
273
|
}
|
|
270
274
|
|
|
271
|
-
var styles$
|
|
275
|
+
var styles$1C = {"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"};
|
|
272
276
|
|
|
273
277
|
const usePositionStyles = ({
|
|
274
278
|
m,
|
|
@@ -384,15 +388,15 @@ const Flex = _ref => {
|
|
|
384
388
|
dataProps
|
|
385
389
|
} = getDataProps(otherProps);
|
|
386
390
|
const positionStyles = usePositionStyles(positionProps);
|
|
387
|
-
const className = classnames(styles$
|
|
388
|
-
[styles$
|
|
389
|
-
[styles$
|
|
390
|
-
[styles$
|
|
391
|
-
[styles$
|
|
392
|
-
[styles$
|
|
393
|
-
[styles$
|
|
394
|
-
[styles$
|
|
395
|
-
[styles$
|
|
391
|
+
const className = classnames(styles$1C['flex'], extraClass, {
|
|
392
|
+
[styles$1C['align-start']]: alignItems === 'flex-start',
|
|
393
|
+
[styles$1C['align-end']]: alignItems === 'flex-end',
|
|
394
|
+
[styles$1C['align-center']]: alignItems === 'center',
|
|
395
|
+
[styles$1C['justify-start']]: justifyContent === 'start',
|
|
396
|
+
[styles$1C['justify-end']]: justifyContent === 'end',
|
|
397
|
+
[styles$1C['justify-center']]: justifyContent === 'center',
|
|
398
|
+
[styles$1C['justify-space-between']]: justifyContent === 'space-between',
|
|
399
|
+
[styles$1C['inline-flex']]: inlineFlex
|
|
396
400
|
});
|
|
397
401
|
const items = React__default.Children.toArray(children).filter(Boolean);
|
|
398
402
|
const gap = typeof space === 'object' ? `${space.row}px ${space.column}px` : space;
|
|
@@ -407,8 +411,8 @@ const Flex = _ref => {
|
|
|
407
411
|
"data-testid": testId
|
|
408
412
|
}, dataProps), items.map((child, i) => React__default.createElement("div", {
|
|
409
413
|
key: i,
|
|
410
|
-
className: classnames(styles$
|
|
411
|
-
[styles$
|
|
414
|
+
className: classnames(styles$1C['flex__item'], {
|
|
415
|
+
[styles$1C['flex__item--flexible']]: flexItems
|
|
412
416
|
}),
|
|
413
417
|
style: {
|
|
414
418
|
flex: flex ? flex[i] || '0 1 auto' : '0 1 auto'
|
|
@@ -431,7 +435,7 @@ const Stack = _ref => {
|
|
|
431
435
|
}));
|
|
432
436
|
};
|
|
433
437
|
|
|
434
|
-
var styles$
|
|
438
|
+
var styles$1B = {"caption":"_tMhXr","label":"_NfOw5","label--truncate":"_M3aFK","toggle":"_QDQZ1","toggle__label":"_52dky","toggle__caption":"_A-tgL","toggle__switch":"_kBjjH"};
|
|
435
439
|
|
|
436
440
|
const _excluded$ek = ["checked", "label", "caption", "onChange", "disabled", "id", "testId"];
|
|
437
441
|
/**
|
|
@@ -456,7 +460,7 @@ const Toggle = _ref => {
|
|
|
456
460
|
return React__default.createElement(Stack, {
|
|
457
461
|
space: 8
|
|
458
462
|
}, React__default.createElement("label", _extends({}, dataProps, {
|
|
459
|
-
className: styles$
|
|
463
|
+
className: styles$1B['toggle']
|
|
460
464
|
}), React__default.createElement("input", {
|
|
461
465
|
type: "checkbox",
|
|
462
466
|
checked: checked,
|
|
@@ -465,11 +469,11 @@ const Toggle = _ref => {
|
|
|
465
469
|
id: id,
|
|
466
470
|
"data-testid": testId
|
|
467
471
|
}), React__default.createElement("span", {
|
|
468
|
-
className: styles$
|
|
472
|
+
className: styles$1B['toggle__switch']
|
|
469
473
|
}), label && React__default.createElement("span", {
|
|
470
|
-
className: styles$
|
|
474
|
+
className: styles$1B['toggle__label']
|
|
471
475
|
}, label)), caption && React__default.createElement("span", {
|
|
472
|
-
className: styles$
|
|
476
|
+
className: styles$1B['toggle__caption']
|
|
473
477
|
}, caption));
|
|
474
478
|
};
|
|
475
479
|
|
|
@@ -487,7 +491,7 @@ const SPINNER_THEMES = {
|
|
|
487
491
|
PRIDE: 'pride'
|
|
488
492
|
};
|
|
489
493
|
|
|
490
|
-
var styles$
|
|
494
|
+
var styles$1A = {"spinner":"_memxT","rotator":"_QieGp","spinner--block":"_VoFzz","path":"_KSRP9","dash":"_RyBY2","path--mint":"_-sIZJ","path--disabled":"_3fox0","path--contrast":"_VteKz","path--pride":"_7rzsv"};
|
|
491
495
|
|
|
492
496
|
const Spinner = ({
|
|
493
497
|
size: _size = 28,
|
|
@@ -497,10 +501,10 @@ const Spinner = ({
|
|
|
497
501
|
}) => {
|
|
498
502
|
return React__default.createElement("div", {
|
|
499
503
|
className: classnames({
|
|
500
|
-
[styles$
|
|
504
|
+
[styles$1A['spinner--block']]: _block
|
|
501
505
|
})
|
|
502
506
|
}, React__default.createElement("svg", {
|
|
503
|
-
className: styles$
|
|
507
|
+
className: styles$1A['spinner'],
|
|
504
508
|
xmlns: "http://www.w3.org/2000/svg",
|
|
505
509
|
width: _size,
|
|
506
510
|
height: _size,
|
|
@@ -575,7 +579,7 @@ const Spinner = ({
|
|
|
575
579
|
offset: "1",
|
|
576
580
|
stopColor: "#760088"
|
|
577
581
|
}))), React__default.createElement("circle", {
|
|
578
|
-
className: classnames(styles$
|
|
582
|
+
className: classnames(styles$1A['path'], styles$1A[`path--${_theme}`]),
|
|
579
583
|
fill: "none",
|
|
580
584
|
strokeWidth: "6",
|
|
581
585
|
strokeLinecap: "round",
|
|
@@ -585,9 +589,9 @@ const Spinner = ({
|
|
|
585
589
|
})));
|
|
586
590
|
};
|
|
587
591
|
|
|
588
|
-
var styles$
|
|
592
|
+
var styles$1z = {"tooltip":"_Ydu2O"};
|
|
589
593
|
|
|
590
|
-
var styles$
|
|
594
|
+
var styles$1y = {"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"};
|
|
591
595
|
|
|
592
596
|
const TOOLTIP_THEME = {
|
|
593
597
|
BLACK: 'black',
|
|
@@ -781,24 +785,24 @@ const TooltipOverlay = ({
|
|
|
781
785
|
maxHeight,
|
|
782
786
|
zIndex: getZIndex('tooltip')
|
|
783
787
|
}),
|
|
784
|
-
className: classnames(styles$
|
|
785
|
-
[styles$
|
|
786
|
-
[styles$
|
|
787
|
-
[styles$
|
|
788
|
+
className: classnames(styles$1y['tooltip-overlay'], extraClass, {
|
|
789
|
+
[styles$1y['tooltip-overlay--visible']]: isVisible,
|
|
790
|
+
[styles$1y['tooltip-overlay--black-theme']]: theme === TOOLTIP_THEME.BLACK,
|
|
791
|
+
[styles$1y['tooltip-overlay--white-theme']]: theme === TOOLTIP_THEME.WHITE
|
|
788
792
|
}),
|
|
789
793
|
onMouseEnter: onFocusIn,
|
|
790
794
|
onMouseLeave: onFocusOut
|
|
791
795
|
}, React__default.createElement(Stack, {
|
|
792
796
|
space: 8
|
|
793
797
|
}, header && React__default.createElement("div", {
|
|
794
|
-
className: styles$
|
|
798
|
+
className: styles$1y['tooltip-overlay__header']
|
|
795
799
|
}, header), children)), React__default.createElement("div", {
|
|
796
|
-
className: classnames(styles$
|
|
797
|
-
[styles$
|
|
798
|
-
[styles$
|
|
799
|
-
[styles$
|
|
800
|
-
[styles$
|
|
801
|
-
[styles$
|
|
800
|
+
className: classnames(styles$1y['tooltip-overlay-arrow'], extraClass, {
|
|
801
|
+
[styles$1y['tooltip-overlay-arrow--visible']]: isVisible,
|
|
802
|
+
[styles$1y['tooltip-overlay-arrow--top']]: position.actualPlacement.placement === TOOLTIP_PLACEMENT.TOP,
|
|
803
|
+
[styles$1y['tooltip-overlay-arrow--bottom']]: position.actualPlacement.placement === TOOLTIP_PLACEMENT.BOTTOM,
|
|
804
|
+
[styles$1y['tooltip-overlay-arrow--black-theme']]: theme === TOOLTIP_THEME.BLACK,
|
|
805
|
+
[styles$1y['tooltip-overlay-arrow--white-theme']]: theme === TOOLTIP_THEME.WHITE
|
|
802
806
|
}),
|
|
803
807
|
style: _extends({}, position.arrow, {
|
|
804
808
|
zIndex: getZIndex('tooltip')
|
|
@@ -910,7 +914,7 @@ const TooltipElement = ({
|
|
|
910
914
|
}), overlayElement);
|
|
911
915
|
}
|
|
912
916
|
return React__default.createElement("div", _extends({
|
|
913
|
-
className: classnames(styles$
|
|
917
|
+
className: classnames(styles$1z['tooltip'])
|
|
914
918
|
}, commonProps, {
|
|
915
919
|
ref: containerRef
|
|
916
920
|
}), children, overlayElement);
|
|
@@ -920,7 +924,7 @@ const isTooltipCompatible = element => {
|
|
|
920
924
|
return React__default.isValidElement(element) && typeof element.type === 'string';
|
|
921
925
|
};
|
|
922
926
|
|
|
923
|
-
var styles$
|
|
927
|
+
var styles$1x = {"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"};
|
|
924
928
|
|
|
925
929
|
const BUTTON_SIZES = {
|
|
926
930
|
FULL_WIDTH: 'full-width',
|
|
@@ -1015,24 +1019,24 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1015
1019
|
onBlur: onBlur,
|
|
1016
1020
|
onFocus: onFocus,
|
|
1017
1021
|
onKeyDown: onKeyDown,
|
|
1018
|
-
className: classnames(styles$
|
|
1019
|
-
[styles$
|
|
1020
|
-
[styles$
|
|
1021
|
-
[styles$
|
|
1022
|
-
[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$
|
|
1022
|
+
className: classnames(styles$1x['button'], {
|
|
1023
|
+
[styles$1x['button--default']]: theme === BUTTON_THEMES.DEFAULT,
|
|
1024
|
+
[styles$1x['button--primary']]: theme === BUTTON_THEMES.PRIMARY,
|
|
1025
|
+
[styles$1x['button--danger']]: theme === BUTTON_THEMES.DANGER,
|
|
1026
|
+
[styles$1x['button--upsell']]: theme === BUTTON_THEMES.UPSELL,
|
|
1027
|
+
[styles$1x['button--marketing']]: theme === BUTTON_THEMES.MARKETING,
|
|
1028
|
+
[styles$1x['button--hollow']]: theme === BUTTON_THEMES.HOLLOW,
|
|
1029
|
+
[styles$1x['button--hollow-contrast']]: theme === BUTTON_THEMES.HOLLOW_CONTRAST,
|
|
1030
|
+
[styles$1x['button--link-primary']]: theme === BUTTON_THEMES.LINK_PRIMARY,
|
|
1031
|
+
[styles$1x['button--link-danger']]: theme === BUTTON_THEMES.LINK_DANGER,
|
|
1032
|
+
[styles$1x['button--link-upsell']]: theme === BUTTON_THEMES.LINK_UPSELL,
|
|
1033
|
+
[styles$1x['button--link-toolbar']]: theme === BUTTON_THEMES.LINK_TOOLBAR,
|
|
1034
|
+
[styles$1x['button--link-contrast']]: theme === BUTTON_THEMES.LINK_CONTRAST,
|
|
1035
|
+
[styles$1x['button--link-icon']]: theme === BUTTON_THEMES.LINK_ICON,
|
|
1036
|
+
[styles$1x['button--loading']]: loading,
|
|
1037
|
+
[styles$1x['button--icon-only']]: isIconOnly,
|
|
1038
|
+
[styles$1x['button--size-min-width-100']]: size === BUTTON_SIZES.MIN_WIDTH_100,
|
|
1039
|
+
[styles$1x['button--size-full-width']]: size === BUTTON_SIZES.FULL_WIDTH
|
|
1036
1040
|
}),
|
|
1037
1041
|
type: type,
|
|
1038
1042
|
disabled: disabled || loading,
|
|
@@ -1046,7 +1050,7 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1046
1050
|
space: 8,
|
|
1047
1051
|
alignItems: "center"
|
|
1048
1052
|
}, children), loading && React__default.createElement("div", {
|
|
1049
|
-
className: styles$
|
|
1053
|
+
className: styles$1x['button__spinner']
|
|
1050
1054
|
}, React__default.createElement(Spinner, {
|
|
1051
1055
|
theme: contrastSpinner.includes(theme) ? SPINNER_THEMES.CONTRAST : SPINNER_THEMES.DISABLED
|
|
1052
1056
|
})));
|
|
@@ -1056,7 +1060,7 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
1056
1060
|
overlay: title,
|
|
1057
1061
|
ref: ref
|
|
1058
1062
|
}, title && disabled ? React__default.createElement("div", {
|
|
1059
|
-
className: styles$
|
|
1063
|
+
className: styles$1x['disabled-button-wrapper']
|
|
1060
1064
|
}, ButtonElementResult) : ButtonElementResult)
|
|
1061
1065
|
);
|
|
1062
1066
|
};
|
|
@@ -10122,20 +10126,20 @@ const IconGreatMonochromatic = forwardRef((_ref, ref) => {
|
|
|
10122
10126
|
});
|
|
10123
10127
|
IconGreatMonochromatic.displayName = 'IconGreatMonochromatic';
|
|
10124
10128
|
|
|
10125
|
-
var styles$
|
|
10129
|
+
var styles$1w = {"pagination-controls":"_S1co-"};
|
|
10126
10130
|
|
|
10127
|
-
var styles$
|
|
10131
|
+
var styles$1v = {"keyboard-key":"_sgd9a","keyboard-key--light":"_8zg4j","keyboard-key__character":"_GAIig"};
|
|
10128
10132
|
|
|
10129
10133
|
const KeyboardKey = ({
|
|
10130
10134
|
children,
|
|
10131
10135
|
theme: _theme = 'dark'
|
|
10132
10136
|
}) => {
|
|
10133
10137
|
return React__default.createElement("span", {
|
|
10134
|
-
className: classnames(styles$
|
|
10135
|
-
[styles$
|
|
10138
|
+
className: classnames(styles$1v['keyboard-key'], {
|
|
10139
|
+
[styles$1v['keyboard-key--light']]: _theme === 'light'
|
|
10136
10140
|
})
|
|
10137
10141
|
}, React__default.createElement("span", {
|
|
10138
|
-
className: styles$
|
|
10142
|
+
className: styles$1v['keyboard-key__character']
|
|
10139
10143
|
}, children));
|
|
10140
10144
|
};
|
|
10141
10145
|
|
|
@@ -10343,7 +10347,7 @@ const PaginationControls = _ref => {
|
|
|
10343
10347
|
}
|
|
10344
10348
|
});
|
|
10345
10349
|
return React__default.createElement("div", _extends({}, dataProps, {
|
|
10346
|
-
className: styles$
|
|
10350
|
+
className: styles$1w['pagination-controls'],
|
|
10347
10351
|
"data-testid": testId
|
|
10348
10352
|
}), React__default.createElement(Button, {
|
|
10349
10353
|
disabled: !hasPrevious,
|
|
@@ -10373,7 +10377,7 @@ const LINK_TARGET = {
|
|
|
10373
10377
|
BLANK: '_blank'
|
|
10374
10378
|
};
|
|
10375
10379
|
|
|
10376
|
-
var styles$
|
|
10380
|
+
var styles$1u = {"link":"_EiQ4c","link--contrast":"_weJDR"};
|
|
10377
10381
|
|
|
10378
10382
|
const _excluded$bq = ["href", "target", "theme", "onClick", "children"];
|
|
10379
10383
|
const Link = _ref => {
|
|
@@ -10390,9 +10394,9 @@ const Link = _ref => {
|
|
|
10390
10394
|
} = getDataProps(otherProps);
|
|
10391
10395
|
const ref = React__default.useRef(null);
|
|
10392
10396
|
return React__default.createElement("a", _extends({}, dataProps, {
|
|
10393
|
-
className: classnames(styles$
|
|
10394
|
-
[styles$
|
|
10395
|
-
[styles$
|
|
10397
|
+
className: classnames(styles$1u['link'], {
|
|
10398
|
+
[styles$1u['link--primary']]: theme === LINK_THEME.PRIMARY,
|
|
10399
|
+
[styles$1u['link--contrast']]: theme === LINK_THEME.CONTRAST
|
|
10396
10400
|
}),
|
|
10397
10401
|
href: href,
|
|
10398
10402
|
target: target,
|
|
@@ -10414,7 +10418,7 @@ const DropdownContext = React__default.createContext({
|
|
|
10414
10418
|
});
|
|
10415
10419
|
const useDropdownContext = () => React__default.useContext(DropdownContext);
|
|
10416
10420
|
|
|
10417
|
-
var styles$
|
|
10421
|
+
var styles$1t = {"dropdown-pane":"_sp-pT"};
|
|
10418
10422
|
|
|
10419
10423
|
const DROPDOWN_PANE_PADDING = 14;
|
|
10420
10424
|
const calculateOverlayPosition$1 = (triggerPosition, triggerOffsetHeight, panePosition, alignment) => {
|
|
@@ -10550,8 +10554,8 @@ const PaneOverlay = ({
|
|
|
10550
10554
|
useKeyPress(['Escape'], onToggleDropdown);
|
|
10551
10555
|
const overflow = maxHeight ? 'auto' : undefined;
|
|
10552
10556
|
return React__default.createElement("div", {
|
|
10553
|
-
className: classnames(styles$
|
|
10554
|
-
[styles$
|
|
10557
|
+
className: classnames(styles$1t['dropdown-pane'], {
|
|
10558
|
+
[styles$1t['dropdown-pane--with-padding']]: true,
|
|
10555
10559
|
'dropdown-pane--custom-width': width !== undefined
|
|
10556
10560
|
}),
|
|
10557
10561
|
style: _extends({}, position, {
|
|
@@ -10582,7 +10586,7 @@ const getKeyboardFocusableElements = element => {
|
|
|
10582
10586
|
});
|
|
10583
10587
|
};
|
|
10584
10588
|
|
|
10585
|
-
var styles$
|
|
10589
|
+
var styles$1s = {"dropdown__trigger":"_AktVc"};
|
|
10586
10590
|
|
|
10587
10591
|
const DROPDOWN_ALIGNEMNT = {
|
|
10588
10592
|
LEFT: 'left',
|
|
@@ -10593,7 +10597,7 @@ const DROPDOWN_TRIGGER = {
|
|
|
10593
10597
|
CLICK: 'click'
|
|
10594
10598
|
};
|
|
10595
10599
|
|
|
10596
|
-
var styles$
|
|
10600
|
+
var styles$1r = {"label":"_zv4ua","label--truncate":"_FPyID"};
|
|
10597
10601
|
|
|
10598
10602
|
const isEllipsisActive = e => {
|
|
10599
10603
|
return e.offsetWidth < e.scrollWidth;
|
|
@@ -10642,8 +10646,8 @@ const Label = ({
|
|
|
10642
10646
|
const LabelElement = React__default.createElement("label", {
|
|
10643
10647
|
htmlFor: htmlFor,
|
|
10644
10648
|
id: labelId,
|
|
10645
|
-
className: classnames(styles$
|
|
10646
|
-
[styles$
|
|
10649
|
+
className: classnames(styles$1r['label'], {
|
|
10650
|
+
[styles$1r['label--truncate']]: shouldTruncate
|
|
10647
10651
|
})
|
|
10648
10652
|
}, children);
|
|
10649
10653
|
if (showTooltip) {
|
|
@@ -10655,7 +10659,7 @@ const Label = ({
|
|
|
10655
10659
|
return LabelElement;
|
|
10656
10660
|
};
|
|
10657
10661
|
|
|
10658
|
-
var styles$
|
|
10662
|
+
var styles$1q = {"caption":"_Qrxg5"};
|
|
10659
10663
|
|
|
10660
10664
|
const Caption = ({
|
|
10661
10665
|
fieldId,
|
|
@@ -10663,11 +10667,11 @@ const Caption = ({
|
|
|
10663
10667
|
}) => {
|
|
10664
10668
|
return React__default.createElement("div", {
|
|
10665
10669
|
id: fieldId && `${fieldId}-describer`,
|
|
10666
|
-
className: styles$
|
|
10670
|
+
className: styles$1q['caption']
|
|
10667
10671
|
}, children);
|
|
10668
10672
|
};
|
|
10669
10673
|
|
|
10670
|
-
var styles$
|
|
10674
|
+
var styles$1p = {"error-message":"_eS4YO"};
|
|
10671
10675
|
|
|
10672
10676
|
const ErrorMessage = ({
|
|
10673
10677
|
fieldId,
|
|
@@ -10676,7 +10680,7 @@ const ErrorMessage = ({
|
|
|
10676
10680
|
}) => {
|
|
10677
10681
|
return React__default.createElement("div", {
|
|
10678
10682
|
id: fieldId && `${fieldId}-error-message`,
|
|
10679
|
-
className: styles$
|
|
10683
|
+
className: styles$1p['error-message'],
|
|
10680
10684
|
"data-testid": testId
|
|
10681
10685
|
}, React__default.createElement(Inline, {
|
|
10682
10686
|
space: 8,
|
|
@@ -10713,7 +10717,7 @@ const ALIGNMENTS = {
|
|
|
10713
10717
|
JUSTIFY: 'justify'
|
|
10714
10718
|
};
|
|
10715
10719
|
|
|
10716
|
-
var styles$
|
|
10720
|
+
var styles$1o = {"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"};
|
|
10717
10721
|
|
|
10718
10722
|
const _excluded$bp = ["children", "as", "emphasis", "alignment", "color", "testId", "textWrap"];
|
|
10719
10723
|
const TextComponent = (_ref, ref) => {
|
|
@@ -10741,21 +10745,21 @@ const TextComponent = (_ref, ref) => {
|
|
|
10741
10745
|
color: getColor(color),
|
|
10742
10746
|
textWrap
|
|
10743
10747
|
}, positionStyles),
|
|
10744
|
-
className: classnames(styles$
|
|
10745
|
-
[styles$
|
|
10746
|
-
[styles$
|
|
10747
|
-
[styles$
|
|
10748
|
-
[styles$
|
|
10749
|
-
[styles$
|
|
10750
|
-
[styles$
|
|
10751
|
-
[styles$
|
|
10752
|
-
[styles$
|
|
10753
|
-
[styles$
|
|
10754
|
-
[styles$
|
|
10755
|
-
[styles$
|
|
10756
|
-
[styles$
|
|
10757
|
-
[styles$
|
|
10758
|
-
[styles$
|
|
10748
|
+
className: classnames(styles$1o['text'], {
|
|
10749
|
+
[styles$1o['text--bold']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.BOLD),
|
|
10750
|
+
[styles$1o['text--italic']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.ITALIC),
|
|
10751
|
+
[styles$1o['text--underline']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.UNDERLINE),
|
|
10752
|
+
[styles$1o['text--dotted-underline']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.DOTTED_UNDERLINE),
|
|
10753
|
+
[styles$1o['text--monospace']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.MONOSPACE),
|
|
10754
|
+
[styles$1o['text--line-through']]: emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.STRIKETHROUGH),
|
|
10755
|
+
[styles$1o['text--align-left']]: alignment === ALIGNMENTS.LEFT,
|
|
10756
|
+
[styles$1o['text--align-right']]: alignment === ALIGNMENTS.RIGHT,
|
|
10757
|
+
[styles$1o['text--align-center']]: alignment === ALIGNMENTS.CENTER,
|
|
10758
|
+
[styles$1o['text--align-justify']]: alignment === ALIGNMENTS.JUSTIFY,
|
|
10759
|
+
[styles$1o['text__body']]: as === TEXT_TYPES.BODY,
|
|
10760
|
+
[styles$1o['text__insight']]: as === TEXT_TYPES.INSIGHT,
|
|
10761
|
+
[styles$1o['text__caption']]: as === TEXT_TYPES.CAPTION,
|
|
10762
|
+
[styles$1o['text__span']]: as === TEXT_TYPES.SPAN
|
|
10759
10763
|
}),
|
|
10760
10764
|
'data-testid': testId
|
|
10761
10765
|
}, dataProps, other, {
|
|
@@ -10772,7 +10776,7 @@ const Bold = ({
|
|
|
10772
10776
|
children
|
|
10773
10777
|
}) => {
|
|
10774
10778
|
return React__default.createElement("span", {
|
|
10775
|
-
className: classnames(styles$
|
|
10779
|
+
className: classnames(styles$1o['text--bold'], styles$1o['text'])
|
|
10776
10780
|
}, children);
|
|
10777
10781
|
};
|
|
10778
10782
|
|
|
@@ -10780,7 +10784,7 @@ const Underline = ({
|
|
|
10780
10784
|
children
|
|
10781
10785
|
}) => {
|
|
10782
10786
|
return React__default.createElement("span", {
|
|
10783
|
-
className: classnames(styles$
|
|
10787
|
+
className: classnames(styles$1o['text--underline'], styles$1o['text'])
|
|
10784
10788
|
}, children);
|
|
10785
10789
|
};
|
|
10786
10790
|
|
|
@@ -10788,7 +10792,7 @@ const Italic = ({
|
|
|
10788
10792
|
children
|
|
10789
10793
|
}) => {
|
|
10790
10794
|
return React__default.createElement("span", {
|
|
10791
|
-
className: classnames(styles$
|
|
10795
|
+
className: classnames(styles$1o['text--italic'], styles$1o['text'])
|
|
10792
10796
|
}, children);
|
|
10793
10797
|
};
|
|
10794
10798
|
|
|
@@ -10925,7 +10929,7 @@ const useFieldControllers = ({
|
|
|
10925
10929
|
return controllers;
|
|
10926
10930
|
};
|
|
10927
10931
|
|
|
10928
|
-
var styles$
|
|
10932
|
+
var styles$1n = {"text-field":"_G6LsE","text-field--invalid":"_2ZYtt","text-field--prefixed":"_rWp7H","text-field--suffixed":"_Xq8xX"};
|
|
10929
10933
|
|
|
10930
10934
|
const _excluded$bn = ["autoComplete", "autoFocus", "defaultValue", "disabled", "error", "id", "maxLength", "name", "caption", "label", "onBlur", "onChange", "onFocus", "onKeyDown", "placeholder", "value", "ref", "testId"];
|
|
10931
10935
|
const useTextField = _ref => {
|
|
@@ -10966,8 +10970,8 @@ const useTextField = _ref => {
|
|
|
10966
10970
|
'aria-invalid': hasError,
|
|
10967
10971
|
autoComplete,
|
|
10968
10972
|
autoFocus,
|
|
10969
|
-
className: classnames(styles$
|
|
10970
|
-
[styles$
|
|
10973
|
+
className: classnames(styles$1n['text-field'], {
|
|
10974
|
+
[styles$1n['text-field--invalid']]: hasError
|
|
10971
10975
|
}),
|
|
10972
10976
|
'data-testid': testId,
|
|
10973
10977
|
disabled,
|
|
@@ -10998,7 +11002,7 @@ const useTextField = _ref => {
|
|
|
10998
11002
|
};
|
|
10999
11003
|
};
|
|
11000
11004
|
|
|
11001
|
-
var styles$
|
|
11005
|
+
var styles$1m = {"affix-container":"_F8QOB","prefix":"_yPPIy","suffix":"_Y3yFd","affix-container--prefixed":"_vU4SU","affix-container--suffixed":"_4rDXi"};
|
|
11002
11006
|
|
|
11003
11007
|
const AffixContainer = ({
|
|
11004
11008
|
prefix,
|
|
@@ -11033,19 +11037,19 @@ const AffixContainer = ({
|
|
|
11033
11037
|
if (!hasPrefix && !hasSuffix) {
|
|
11034
11038
|
return children;
|
|
11035
11039
|
}
|
|
11036
|
-
const classes = classnames(styles$
|
|
11037
|
-
[styles$
|
|
11038
|
-
[styles$
|
|
11040
|
+
const classes = classnames(styles$1m['affix-container'], {
|
|
11041
|
+
[styles$1m['affix-container--prefixed']]: hasPrefix,
|
|
11042
|
+
[styles$1m['affix-container--suffixed']]: hasSuffix
|
|
11039
11043
|
});
|
|
11040
11044
|
return React__default.createElement("div", {
|
|
11041
11045
|
className: classes,
|
|
11042
11046
|
ref: container,
|
|
11043
11047
|
"data-testid": testId
|
|
11044
11048
|
}, hasPrefix && React__default.createElement("div", {
|
|
11045
|
-
className: styles$
|
|
11049
|
+
className: styles$1m['prefix'],
|
|
11046
11050
|
ref: prefixElement
|
|
11047
11051
|
}, prefix), children, hasSuffix && React__default.createElement("div", {
|
|
11048
|
-
className: styles$
|
|
11052
|
+
className: styles$1m['suffix'],
|
|
11049
11053
|
ref: suffixElement
|
|
11050
11054
|
}, suffix));
|
|
11051
11055
|
};
|
|
@@ -11252,7 +11256,7 @@ const Dropdown = ({
|
|
|
11252
11256
|
paneRef
|
|
11253
11257
|
}
|
|
11254
11258
|
}, triggerIsKnownButton ? React__default.cloneElement(trigger, _extends({}, trigger.props, triggerProps)) : React__default.createElement("button", _extends({}, triggerProps, {
|
|
11255
|
-
className: styles$
|
|
11259
|
+
className: styles$1s['dropdown__trigger'],
|
|
11256
11260
|
ref: updatedRef,
|
|
11257
11261
|
onFocus: handleFocus
|
|
11258
11262
|
}), trigger), React__default.createElement(DropdownPane, {
|
|
@@ -11266,7 +11270,7 @@ const Dropdown = ({
|
|
|
11266
11270
|
}, children));
|
|
11267
11271
|
};
|
|
11268
11272
|
|
|
11269
|
-
var styles$
|
|
11273
|
+
var styles$1l = {"dropdown-list":"_91hvH","dropdown-list__item":"_NrB4V","dropdown-list__item--hover":"_aMs9c"};
|
|
11270
11274
|
|
|
11271
11275
|
const findNextActiveIndex = (items, startAt) => {
|
|
11272
11276
|
let startIndex = 0;
|
|
@@ -11416,20 +11420,20 @@ const checkIsComponent = (element, config) => {
|
|
|
11416
11420
|
return isComponent;
|
|
11417
11421
|
};
|
|
11418
11422
|
|
|
11419
|
-
var styles$
|
|
11423
|
+
var styles$1k = {"dropdown-list-divider":"_ISJ4M"};
|
|
11420
11424
|
|
|
11421
11425
|
const DropdownListDivider = ({
|
|
11422
11426
|
testId
|
|
11423
11427
|
}) => {
|
|
11424
11428
|
return React__default.createElement("div", {
|
|
11425
|
-
className: styles$
|
|
11429
|
+
className: styles$1k['dropdown-list-divider'],
|
|
11426
11430
|
"data-testid": testId
|
|
11427
11431
|
});
|
|
11428
11432
|
};
|
|
11429
11433
|
|
|
11430
|
-
var styles$
|
|
11434
|
+
var styles$1j = {"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"};
|
|
11431
11435
|
|
|
11432
|
-
var styles$
|
|
11436
|
+
var styles$1i = {"dropdown-submenu":"_X4fIx"};
|
|
11433
11437
|
|
|
11434
11438
|
const DropdownSubmenu = forwardRef(({
|
|
11435
11439
|
children,
|
|
@@ -11449,7 +11453,7 @@ const DropdownSubmenu = forwardRef(({
|
|
|
11449
11453
|
// so no keyboard handler is needed.
|
|
11450
11454
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
11451
11455
|
React__default.createElement("div", {
|
|
11452
|
-
className: styles$
|
|
11456
|
+
className: styles$1i['dropdown-submenu'],
|
|
11453
11457
|
"data-submenu-direction": direction,
|
|
11454
11458
|
style: position || DEFAULT_POSITION,
|
|
11455
11459
|
onMouseEnter: openSubmenu,
|
|
@@ -11642,20 +11646,20 @@ const DropdownListItem = ({
|
|
|
11642
11646
|
onClick && onClick(e);
|
|
11643
11647
|
};
|
|
11644
11648
|
const childrenContainer = React__default.createElement("div", {
|
|
11645
|
-
className: styles$
|
|
11649
|
+
className: styles$1j['dropdown-list-item__container']
|
|
11646
11650
|
}, prefix && React__default.createElement("div", {
|
|
11647
|
-
className: styles$
|
|
11651
|
+
className: styles$1j['dropdown-list-item__prefix']
|
|
11648
11652
|
}, prefix), React__default.createElement("div", {
|
|
11649
|
-
className: styles$
|
|
11653
|
+
className: styles$1j['dropdown-list-item__content']
|
|
11650
11654
|
}, React__default.createElement(Stack, {
|
|
11651
11655
|
space: 0,
|
|
11652
11656
|
flex: [1]
|
|
11653
11657
|
}, children, caption && React__default.createElement("div", {
|
|
11654
|
-
className: styles$
|
|
11658
|
+
className: styles$1j['dropdown-list-item__caption']
|
|
11655
11659
|
}, caption))), (suffix || submenu) && React__default.createElement("div", {
|
|
11656
|
-
className: styles$
|
|
11660
|
+
className: styles$1j['dropdown-list-item__suffix']
|
|
11657
11661
|
}, suffix && _openSubmenuOnSuffixClick && submenu ? React__default.createElement("button", {
|
|
11658
|
-
className: styles$
|
|
11662
|
+
className: styles$1j['dropdown-list-item__suffix-button'],
|
|
11659
11663
|
onClick: e => {
|
|
11660
11664
|
e.preventDefault();
|
|
11661
11665
|
e.stopPropagation();
|
|
@@ -11666,19 +11670,19 @@ const DropdownListItem = ({
|
|
|
11666
11670
|
"aria-label": "Open submenu",
|
|
11667
11671
|
disabled: disabled
|
|
11668
11672
|
}, suffix) : suffix, submenu && !suffix && React__default.createElement("div", {
|
|
11669
|
-
className: styles$
|
|
11673
|
+
className: styles$1j['dropdown-list-item__suffix-spot']
|
|
11670
11674
|
}), submenu && !_openSubmenuOnSuffixClick && React__default.createElement(IconChevronRight, {
|
|
11671
11675
|
size: "small"
|
|
11672
11676
|
})));
|
|
11673
11677
|
const linkItem = href && (_reloadDocument ? React__default.createElement("a", {
|
|
11674
11678
|
href: href,
|
|
11675
|
-
className: styles$
|
|
11679
|
+
className: styles$1j['dropdown-list-item__link'],
|
|
11676
11680
|
target: _target,
|
|
11677
11681
|
tabIndex: -1
|
|
11678
11682
|
}, childrenContainer) : React__default.createElement(Link$1, {
|
|
11679
11683
|
to: href,
|
|
11680
11684
|
target: _target,
|
|
11681
|
-
className: styles$
|
|
11685
|
+
className: styles$1j['dropdown-list-item__link'],
|
|
11682
11686
|
reloadDocument: false,
|
|
11683
11687
|
tabIndex: -1,
|
|
11684
11688
|
"data-testid": testId
|
|
@@ -11686,9 +11690,9 @@ const DropdownListItem = ({
|
|
|
11686
11690
|
return (
|
|
11687
11691
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
11688
11692
|
React__default.createElement("div", {
|
|
11689
|
-
className: classnames(styles$
|
|
11690
|
-
[styles$
|
|
11691
|
-
[styles$
|
|
11693
|
+
className: classnames(styles$1j['dropdown-list-item'], {
|
|
11694
|
+
[styles$1j['dropdown-list-item--selected']]: selected,
|
|
11695
|
+
[styles$1j['dropdown-list-item--disabled']]: disabled
|
|
11692
11696
|
}),
|
|
11693
11697
|
onMouseDown: e => e.preventDefault(),
|
|
11694
11698
|
onClick: handleClick,
|
|
@@ -11831,7 +11835,7 @@ const DropdownList = ({
|
|
|
11831
11835
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11832
11836
|
}, [highlightItemIndex]);
|
|
11833
11837
|
return React__default.createElement("ul", {
|
|
11834
|
-
className: styles$
|
|
11838
|
+
className: styles$1l['dropdown-list'],
|
|
11835
11839
|
"data-testid": testId,
|
|
11836
11840
|
ref: listRef
|
|
11837
11841
|
}, React__default.Children.toArray(children).filter(Boolean).map((child, index) => {
|
|
@@ -11843,8 +11847,8 @@ const DropdownList = ({
|
|
|
11843
11847
|
const divider = (_items$index2 = items[index]) == null ? void 0 : _items$index2.divider;
|
|
11844
11848
|
return React__default.createElement("li", {
|
|
11845
11849
|
key: index,
|
|
11846
|
-
className: classnames(styles$
|
|
11847
|
-
[styles$
|
|
11850
|
+
className: classnames(styles$1l['dropdown-list__item'], {
|
|
11851
|
+
[styles$1l['dropdown-list__item--hover']]: focusedItem === index && isInteractive
|
|
11848
11852
|
}),
|
|
11849
11853
|
onMouseEnter: divider ? undefined : () => setFocusOnItem(index),
|
|
11850
11854
|
role: divider ? 'separator' : 'menuitem'
|
|
@@ -11868,7 +11872,7 @@ const KebabMenu = ({
|
|
|
11868
11872
|
}, action.label))));
|
|
11869
11873
|
};
|
|
11870
11874
|
|
|
11871
|
-
var styles$
|
|
11875
|
+
var styles$1h = {"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"};
|
|
11872
11876
|
|
|
11873
11877
|
const CardContext = createContext({
|
|
11874
11878
|
isCardMounted: false
|
|
@@ -11904,28 +11908,28 @@ const Card = _ref => {
|
|
|
11904
11908
|
isCardMounted: true
|
|
11905
11909
|
}
|
|
11906
11910
|
}, React__default.createElement("div", _extends({
|
|
11907
|
-
className: classnames(styles$
|
|
11911
|
+
className: classnames(styles$1h['card']),
|
|
11908
11912
|
style: positionStyles
|
|
11909
11913
|
}, dataProps), onClick ? React__default.createElement("button", {
|
|
11910
|
-
className: classnames(styles$
|
|
11911
|
-
[styles$
|
|
11912
|
-
[styles$
|
|
11913
|
-
[styles$
|
|
11914
|
+
className: classnames(styles$1h['card__body'], styles$1h['card__body--interactive'], {
|
|
11915
|
+
[styles$1h['card__body--disabled']]: disabled,
|
|
11916
|
+
[styles$1h['card__body--focus']]: isSelected,
|
|
11917
|
+
[styles$1h['card__body--with-kebab']]: actions
|
|
11914
11918
|
}),
|
|
11915
11919
|
"data-testid": testId,
|
|
11916
11920
|
tabIndex: 0,
|
|
11917
11921
|
onClick: onClick,
|
|
11918
11922
|
disabled: disabled
|
|
11919
11923
|
}, children) : React__default.createElement("div", {
|
|
11920
|
-
className: classnames(styles$
|
|
11921
|
-
[styles$
|
|
11922
|
-
[styles$
|
|
11923
|
-
[styles$
|
|
11924
|
+
className: classnames(styles$1h['card__body'], {
|
|
11925
|
+
[styles$1h['card__body--disabled']]: disabled,
|
|
11926
|
+
[styles$1h['card__body--focus']]: isSelected,
|
|
11927
|
+
[styles$1h['card__body--with-kebab']]: actions
|
|
11924
11928
|
}),
|
|
11925
11929
|
"data-testid": testId
|
|
11926
11930
|
}, children), actions && React__default.createElement("div", {
|
|
11927
|
-
className: classnames(styles$
|
|
11928
|
-
[styles$
|
|
11931
|
+
className: classnames(styles$1h['card__kebab'], {
|
|
11932
|
+
[styles$1h['card__kebab--disabled']]: disabled
|
|
11929
11933
|
})
|
|
11930
11934
|
}, React__default.createElement(KebabMenu, {
|
|
11931
11935
|
actions: onClose ? actions.concat({
|
|
@@ -11934,8 +11938,8 @@ const Card = _ref => {
|
|
|
11934
11938
|
onAction: onClose
|
|
11935
11939
|
}) : actions
|
|
11936
11940
|
})), !actions && onClose && React__default.createElement("div", {
|
|
11937
|
-
className: classnames(styles$
|
|
11938
|
-
[styles$
|
|
11941
|
+
className: classnames(styles$1h['card__close'], {
|
|
11942
|
+
[styles$1h['card__close--disabled']]: disabled
|
|
11939
11943
|
})
|
|
11940
11944
|
}, React__default.createElement(Button, {
|
|
11941
11945
|
theme: "link-icon",
|
|
@@ -11943,7 +11947,7 @@ const Card = _ref => {
|
|
|
11943
11947
|
}, React__default.createElement(IconTimes, null)))));
|
|
11944
11948
|
};
|
|
11945
11949
|
|
|
11946
|
-
var styles$
|
|
11950
|
+
var styles$1g = {"callout-card__close":"_VxmQm","callout-card__header":"_3RrQI"};
|
|
11947
11951
|
|
|
11948
11952
|
/**
|
|
11949
11953
|
* @deprecated Use `<EmptyState as='card' />` instead
|
|
@@ -11964,7 +11968,7 @@ const CalloutCard = ({
|
|
|
11964
11968
|
}, React__default.createElement(Stack, {
|
|
11965
11969
|
space: 12
|
|
11966
11970
|
}, React__default.createElement("div", {
|
|
11967
|
-
className: styles$
|
|
11971
|
+
className: styles$1g['callout-card__header']
|
|
11968
11972
|
}, React__default.createElement(Text, {
|
|
11969
11973
|
as: "body",
|
|
11970
11974
|
color: "primary-color"
|
|
@@ -11979,7 +11983,7 @@ const CalloutCard = ({
|
|
|
11979
11983
|
alt: String(title) + String(header),
|
|
11980
11984
|
width: "354px"
|
|
11981
11985
|
})), onClose && React__default.createElement("div", {
|
|
11982
|
-
className: styles$
|
|
11986
|
+
className: styles$1g['callout-card__close']
|
|
11983
11987
|
}, React__default.createElement(Button, {
|
|
11984
11988
|
theme: "link-icon",
|
|
11985
11989
|
onClick: onClose
|
|
@@ -11995,7 +11999,7 @@ const Breadcrumbs = ({
|
|
|
11995
11999
|
}, children);
|
|
11996
12000
|
};
|
|
11997
12001
|
|
|
11998
|
-
var styles$
|
|
12002
|
+
var styles$1f = {"breadcrumb-item":"_fo7-A"};
|
|
11999
12003
|
|
|
12000
12004
|
const BreadcrumbItem = ({
|
|
12001
12005
|
href,
|
|
@@ -12009,25 +12013,25 @@ const BreadcrumbItem = ({
|
|
|
12009
12013
|
// This is neessary to support older versions of react-router-dom
|
|
12010
12014
|
return _reloadDocument ? React__default.createElement("a", {
|
|
12011
12015
|
href: href,
|
|
12012
|
-
className: styles$
|
|
12016
|
+
className: styles$1f['breadcrumb-item'],
|
|
12013
12017
|
"data-testid": testId
|
|
12014
12018
|
}, content) : React__default.createElement(Link$1, {
|
|
12015
12019
|
to: href,
|
|
12016
|
-
className: styles$
|
|
12020
|
+
className: styles$1f['breadcrumb-item'],
|
|
12017
12021
|
relative: "path",
|
|
12018
12022
|
reloadDocument: _reloadDocument,
|
|
12019
12023
|
"data-testid": testId
|
|
12020
12024
|
}, content);
|
|
12021
12025
|
};
|
|
12022
12026
|
|
|
12023
|
-
var styles$
|
|
12027
|
+
var styles$1e = {"page-breadcrumbs":"_QjIgc"};
|
|
12024
12028
|
|
|
12025
12029
|
const PageBreadcrumbs = ({
|
|
12026
12030
|
breadcrumbs
|
|
12027
12031
|
}) => {
|
|
12028
12032
|
const items = getBreadbrumbItems(breadcrumbs);
|
|
12029
12033
|
return React__default.createElement("div", {
|
|
12030
|
-
className: styles$
|
|
12034
|
+
className: styles$1e['page-breadcrumbs']
|
|
12031
12035
|
}, React__default.createElement(Breadcrumbs, null, items));
|
|
12032
12036
|
};
|
|
12033
12037
|
const getBreadbrumbItems = breadcrumbs => {
|
|
@@ -12047,7 +12051,7 @@ const getBreadbrumbItems = breadcrumbs => {
|
|
|
12047
12051
|
}, breadcrumbs.label);
|
|
12048
12052
|
};
|
|
12049
12053
|
|
|
12050
|
-
var styles$
|
|
12054
|
+
var styles$1d = {"page":"_QB6yF","page--fullwidth":"_g7MTf","page--restricted":"_LRq4j"};
|
|
12051
12055
|
|
|
12052
12056
|
const PAGE_SIZES = {
|
|
12053
12057
|
FULL_WIDTH: 'fullwidth',
|
|
@@ -12068,9 +12072,9 @@ const Page = ({
|
|
|
12068
12072
|
const hasHeader = title || actions;
|
|
12069
12073
|
const hasPageBlocks = hasHeader || banner || filterBar;
|
|
12070
12074
|
return React__default.createElement("div", {
|
|
12071
|
-
className: classnames(styles$
|
|
12072
|
-
[styles$
|
|
12073
|
-
[styles$
|
|
12075
|
+
className: classnames(styles$1d['page'], {
|
|
12076
|
+
[styles$1d['page--restricted']]: _size === PAGE_SIZES.RESTRICTED,
|
|
12077
|
+
[styles$1d['page--fullwidth']]: _size === PAGE_SIZES.FULL_WIDTH
|
|
12074
12078
|
}),
|
|
12075
12079
|
"data-testid": testId
|
|
12076
12080
|
}, React__default.createElement(Stack, {
|
|
@@ -12091,15 +12095,15 @@ const Page = ({
|
|
|
12091
12095
|
}, title), actions), subtitle && React__default.createElement(Text, null, subtitle)), banner, filterBar)), children));
|
|
12092
12096
|
};
|
|
12093
12097
|
|
|
12094
|
-
var styles$
|
|
12098
|
+
var styles$1c = {"page-layout":"_Scw7-","page-layout__nav-container":"_v--DF","page-layout__nav-list":"_dJeZe","page-layout__content":"_hHi70","page-layout__side-nav-content":"_vTMjp"};
|
|
12095
12099
|
|
|
12096
|
-
var styles$
|
|
12100
|
+
var styles$1b = {"menu-item":"_SebbU","menu-item--active":"_CDEVl","menu-item--with-badge":"_VudDE","menu-item__badge":"_vErBS"};
|
|
12097
12101
|
|
|
12098
|
-
var styles$
|
|
12102
|
+
var styles$1a = {"badge":"_RXV4h","badge--warning":"_2An1I","badge--danger":"_-Bw8L","badge--success":"_RxlMz","badge--info":"_dzCH-","badge--numeric":"_Ix9tP"};
|
|
12099
12103
|
|
|
12100
|
-
var styles$
|
|
12104
|
+
var styles$19 = {"overlay":"_0yTe8","overlay--after-open":"_yJBtA","overlay--before-close":"_iWogn","content":"_ntozd","content--after-open":"_EQjDq","content--before-close":"_ZTY3B"};
|
|
12101
12105
|
|
|
12102
|
-
var styles$
|
|
12106
|
+
var styles$18 = {"header":"_tgpG9","header__close-button":"_b1dgU","sub-header":"_c2nm4"};
|
|
12103
12107
|
|
|
12104
12108
|
const ModalHeader = ({
|
|
12105
12109
|
header,
|
|
@@ -12109,7 +12113,7 @@ const ModalHeader = ({
|
|
|
12109
12113
|
}) => {
|
|
12110
12114
|
if (!header && !subHeader) {
|
|
12111
12115
|
return onClose ? React__default.createElement("div", {
|
|
12112
|
-
className: styles$
|
|
12116
|
+
className: styles$18['header__close-button']
|
|
12113
12117
|
}, React__default.createElement(Button, {
|
|
12114
12118
|
theme: "link-icon",
|
|
12115
12119
|
onClick: onClose,
|
|
@@ -12125,13 +12129,13 @@ const ModalHeader = ({
|
|
|
12125
12129
|
flex: [1],
|
|
12126
12130
|
alignItems: "center"
|
|
12127
12131
|
}, React__default.createElement("span", {
|
|
12128
|
-
className: styles$
|
|
12132
|
+
className: styles$18['header']
|
|
12129
12133
|
}, header), onClose && React__default.createElement(Button, {
|
|
12130
12134
|
theme: "link-icon",
|
|
12131
12135
|
onClick: onClose,
|
|
12132
12136
|
disabled: loading
|
|
12133
12137
|
}, React__default.createElement(IconTimes, null))), subHeader && React__default.createElement("div", {
|
|
12134
|
-
className: styles$
|
|
12138
|
+
className: styles$18['sub-header']
|
|
12135
12139
|
}, subHeader));
|
|
12136
12140
|
};
|
|
12137
12141
|
|
|
@@ -12189,14 +12193,14 @@ const Modal = _ref => {
|
|
|
12189
12193
|
contentLabel: "Modal",
|
|
12190
12194
|
appElement: rootElementId && document.getElementById(rootElementId) || undefined,
|
|
12191
12195
|
overlayClassName: {
|
|
12192
|
-
base: styles$
|
|
12193
|
-
afterOpen: styles$
|
|
12194
|
-
beforeClose: styles$
|
|
12196
|
+
base: styles$19['overlay'],
|
|
12197
|
+
afterOpen: styles$19['overlay--after-open'],
|
|
12198
|
+
beforeClose: styles$19['overlay--before-close']
|
|
12195
12199
|
},
|
|
12196
12200
|
className: {
|
|
12197
|
-
base: styles$
|
|
12198
|
-
afterOpen: styles$
|
|
12199
|
-
beforeClose: styles$
|
|
12201
|
+
base: styles$19['content'],
|
|
12202
|
+
afterOpen: styles$19['content--after-open'],
|
|
12203
|
+
beforeClose: styles$19['content--before-close']
|
|
12200
12204
|
},
|
|
12201
12205
|
data: dataProps
|
|
12202
12206
|
}, React__default.createElement(ModalHeader, {
|
|
@@ -12238,7 +12242,7 @@ const useScrollShadow = () => {
|
|
|
12238
12242
|
};
|
|
12239
12243
|
};
|
|
12240
12244
|
|
|
12241
|
-
var styles$
|
|
12245
|
+
var styles$17 = {"modal-body":"_4YK4k","modal-body--with-scroll-shadow":"_wo1vv","modal-body__inner-div":"_9u6xC"};
|
|
12242
12246
|
|
|
12243
12247
|
const ModalBody = ({
|
|
12244
12248
|
children,
|
|
@@ -12249,17 +12253,17 @@ const ModalBody = ({
|
|
|
12249
12253
|
showScrollShadow
|
|
12250
12254
|
} = useScrollShadow();
|
|
12251
12255
|
return React__default.createElement("div", {
|
|
12252
|
-
className: classnames(styles$
|
|
12253
|
-
[styles$
|
|
12256
|
+
className: classnames(styles$17['modal-body'], {
|
|
12257
|
+
[styles$17['modal-body--with-scroll-shadow']]: showScrollShadow
|
|
12254
12258
|
}),
|
|
12255
12259
|
ref: ref,
|
|
12256
12260
|
"data-testid": testId
|
|
12257
12261
|
}, React__default.createElement("div", {
|
|
12258
|
-
className: styles$
|
|
12262
|
+
className: styles$17['modal-body__inner-div']
|
|
12259
12263
|
}, children));
|
|
12260
12264
|
};
|
|
12261
12265
|
|
|
12262
|
-
var styles$
|
|
12266
|
+
var styles$16 = {"modal-footer":"_bezlP","tertiary-container":"_EdqHx"};
|
|
12263
12267
|
|
|
12264
12268
|
const updateButtonProps$1 = (button, newProps) => {
|
|
12265
12269
|
if (!button) {
|
|
@@ -12303,7 +12307,7 @@ const ModalFooter = ({
|
|
|
12303
12307
|
justifyContent: "space-between"
|
|
12304
12308
|
}, React__default.createElement("div", {
|
|
12305
12309
|
className: classnames({
|
|
12306
|
-
[styles$
|
|
12310
|
+
[styles$16['tertiary-container']]: tertiaryButton && tertiaryButton.props.theme.startsWith('link')
|
|
12307
12311
|
})
|
|
12308
12312
|
}, tertiaryButton || React__default.createElement("div", null)), React__default.createElement(Inline, {
|
|
12309
12313
|
space: 12
|
|
@@ -12321,7 +12325,7 @@ const FooterContainer = ({
|
|
|
12321
12325
|
displayName: 'Inline'
|
|
12322
12326
|
});
|
|
12323
12327
|
return React__default.createElement("div", {
|
|
12324
|
-
className: styles$
|
|
12328
|
+
className: styles$16['modal-footer'],
|
|
12325
12329
|
"data-testid": testId
|
|
12326
12330
|
}, React__default.createElement(Inline, {
|
|
12327
12331
|
justifyContent: "end",
|
|
@@ -12334,7 +12338,7 @@ var dayOverridesStyles = {"root":"_et9Fs","table":"_l7Mis","caption":"_XGu8K","h
|
|
|
12334
12338
|
|
|
12335
12339
|
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"};
|
|
12336
12340
|
|
|
12337
|
-
var styles$
|
|
12341
|
+
var styles$15 = {"calendar":"_YPyZ6","calendar__overlay":"_-cw0A"};
|
|
12338
12342
|
|
|
12339
12343
|
function parseDate(str, format, locale) {
|
|
12340
12344
|
const parsed = dateFnsParse(str, format, new Date(), {
|
|
@@ -12427,6 +12431,44 @@ const CALENDAR_PLACEMENT = {
|
|
|
12427
12431
|
TOP: 'top'
|
|
12428
12432
|
};
|
|
12429
12433
|
|
|
12434
|
+
const HIGHLIGHT_SHAPE = {
|
|
12435
|
+
CIRCLE: 'circle',
|
|
12436
|
+
CIRCLE_DASHED: 'circle-dashed',
|
|
12437
|
+
SQUARE: 'square',
|
|
12438
|
+
SQUARE_DASHED: 'square-dashed',
|
|
12439
|
+
OCTAGON: 'octagon',
|
|
12440
|
+
STAR: 'star'
|
|
12441
|
+
};
|
|
12442
|
+
const DEFAULT_HIGHLIGHT_THEME = 'success';
|
|
12443
|
+
const DEFAULT_HIGHLIGHT_SHAPE = 'circle';
|
|
12444
|
+
const toMatcherArray = dates => Array.isArray(dates) ? dates : [dates];
|
|
12445
|
+
/**
|
|
12446
|
+
* Turns the public `highlightedDays` array into per-group react-day-picker
|
|
12447
|
+
* modifiers. When a day matches more than one group, the earliest group in
|
|
12448
|
+
* the array wins its indicator (later groups' matchers exclude days already
|
|
12449
|
+
* owned by an earlier group), so each day renders a single shape.
|
|
12450
|
+
*/
|
|
12451
|
+
const getHighlightModifiers = groups => {
|
|
12452
|
+
const priorMatchers = [];
|
|
12453
|
+
return groups.map((group, index) => {
|
|
12454
|
+
var _group$shape, _group$theme;
|
|
12455
|
+
const ownMatchers = toMatcherArray(group.dates);
|
|
12456
|
+
// Snapshot of every earlier group's matchers, used to enforce
|
|
12457
|
+
// first-group-wins precedence on overlapping days.
|
|
12458
|
+
const earlier = priorMatchers.slice();
|
|
12459
|
+
priorMatchers.push(ownMatchers);
|
|
12460
|
+
return {
|
|
12461
|
+
key: `highlighted-${index}`,
|
|
12462
|
+
matcher: date => isMatch(date, ownMatchers) && !earlier.some(matchers => isMatch(date, matchers)),
|
|
12463
|
+
shape: (_group$shape = group.shape) != null ? _group$shape : DEFAULT_HIGHLIGHT_SHAPE,
|
|
12464
|
+
theme: (_group$theme = group.theme) != null ? _group$theme : DEFAULT_HIGHLIGHT_THEME,
|
|
12465
|
+
label: group.label
|
|
12466
|
+
};
|
|
12467
|
+
});
|
|
12468
|
+
};
|
|
12469
|
+
|
|
12470
|
+
var styles$14 = {"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
|
+
|
|
12430
12472
|
const calculateCalendarPosition = (placement, anchorPosition, calendarDimensions) => {
|
|
12431
12473
|
if (!calendarDimensions) {
|
|
12432
12474
|
return {
|
|
@@ -12478,6 +12520,236 @@ const getVerticalPosition = (anchorPosition, placement, calendarDimensions) => {
|
|
|
12478
12520
|
};
|
|
12479
12521
|
}
|
|
12480
12522
|
};
|
|
12523
|
+
/**
|
|
12524
|
+
* Builds the DayPicker `modifiers`/`modifiersClassNames` for the given
|
|
12525
|
+
* highlight groups, plus the resolved items for the legend. Shared by every
|
|
12526
|
+
* calendar component so highlights look and behave identically.
|
|
12527
|
+
*/
|
|
12528
|
+
const buildHighlightDayPickerProps = highlightedDays => {
|
|
12529
|
+
const items = highlightedDays ? getHighlightModifiers(Array.isArray(highlightedDays) ? highlightedDays : [highlightedDays]) : [];
|
|
12530
|
+
if (!items.length) {
|
|
12531
|
+
return {
|
|
12532
|
+
items
|
|
12533
|
+
};
|
|
12534
|
+
}
|
|
12535
|
+
const modifiers = {};
|
|
12536
|
+
const modifiersClassNames = {};
|
|
12537
|
+
items.forEach(({
|
|
12538
|
+
key,
|
|
12539
|
+
matcher,
|
|
12540
|
+
shape,
|
|
12541
|
+
theme
|
|
12542
|
+
}) => {
|
|
12543
|
+
modifiers[key] = matcher;
|
|
12544
|
+
modifiersClassNames[key] = classnames(styles$14.day_highlight, styles$14[`shape-${shape}`], styles$14[`theme-${theme}`]);
|
|
12545
|
+
});
|
|
12546
|
+
return {
|
|
12547
|
+
modifiers,
|
|
12548
|
+
modifiersClassNames,
|
|
12549
|
+
items
|
|
12550
|
+
};
|
|
12551
|
+
};
|
|
12552
|
+
|
|
12553
|
+
var styles$13 = {"calendar-highlights":"_TjAon","calendar-highlights__item":"_BbYmq","calendar-highlights__shape":"_utSi-","calendar-highlights__shape--square":"_mP9vd","calendar-highlights__shape--circle":"_6zlZT"};
|
|
12554
|
+
|
|
12555
|
+
/** Legend rendered beneath a calendar, one row item per highlight group. */
|
|
12556
|
+
const CalendarHighlights = ({
|
|
12557
|
+
highlights
|
|
12558
|
+
}) => {
|
|
12559
|
+
if (!highlights.length) {
|
|
12560
|
+
return null;
|
|
12561
|
+
}
|
|
12562
|
+
return React__default.createElement("div", {
|
|
12563
|
+
className: styles$13['calendar-highlights']
|
|
12564
|
+
}, React__default.createElement(Inline, {
|
|
12565
|
+
flexWrap: "wrap",
|
|
12566
|
+
space: {
|
|
12567
|
+
column: 12,
|
|
12568
|
+
row: 8
|
|
12569
|
+
},
|
|
12570
|
+
alignItems: "center",
|
|
12571
|
+
justifyContent: "center"
|
|
12572
|
+
}, highlights.map(({
|
|
12573
|
+
label,
|
|
12574
|
+
shape,
|
|
12575
|
+
theme
|
|
12576
|
+
}) => React__default.createElement("div", {
|
|
12577
|
+
key: label,
|
|
12578
|
+
className: styles$13['calendar-highlights__item']
|
|
12579
|
+
}, React__default.createElement(Shape, {
|
|
12580
|
+
shape: shape,
|
|
12581
|
+
theme: theme
|
|
12582
|
+
}), React__default.createElement("span", null, label)))));
|
|
12583
|
+
};
|
|
12584
|
+
const Shape = ({
|
|
12585
|
+
shape,
|
|
12586
|
+
theme
|
|
12587
|
+
}) => {
|
|
12588
|
+
switch (shape) {
|
|
12589
|
+
case 'square':
|
|
12590
|
+
return React__default.createElement("div", {
|
|
12591
|
+
className: classnames(styles$13['calendar-highlights__shape'], styles$13['calendar-highlights__shape--square']),
|
|
12592
|
+
style: {
|
|
12593
|
+
borderColor: COLORS[`${theme}-color`]
|
|
12594
|
+
}
|
|
12595
|
+
});
|
|
12596
|
+
case 'square-dashed':
|
|
12597
|
+
return React__default.createElement("div", {
|
|
12598
|
+
className: styles$13['calendar-highlights__shape']
|
|
12599
|
+
}, React__default.createElement(SquareDashedShape, {
|
|
12600
|
+
theme: theme
|
|
12601
|
+
}));
|
|
12602
|
+
case 'circle':
|
|
12603
|
+
return React__default.createElement("div", {
|
|
12604
|
+
className: classnames(styles$13['calendar-highlights__shape'], styles$13['calendar-highlights__shape--circle']),
|
|
12605
|
+
style: {
|
|
12606
|
+
borderColor: COLORS[`${theme}-color`]
|
|
12607
|
+
}
|
|
12608
|
+
});
|
|
12609
|
+
case 'circle-dashed':
|
|
12610
|
+
return React__default.createElement("div", {
|
|
12611
|
+
className: `${styles$13['calendar-highlights__shape']}`
|
|
12612
|
+
}, React__default.createElement(CircleDashedShape, {
|
|
12613
|
+
theme: theme
|
|
12614
|
+
}));
|
|
12615
|
+
case 'octagon':
|
|
12616
|
+
return React__default.createElement("div", {
|
|
12617
|
+
className: `${styles$13['calendar-highlights__shape']}`
|
|
12618
|
+
}, React__default.createElement(OctagonShape, {
|
|
12619
|
+
theme: theme
|
|
12620
|
+
}));
|
|
12621
|
+
case 'star':
|
|
12622
|
+
return React__default.createElement("div", {
|
|
12623
|
+
className: `${styles$13['calendar-highlights__shape']}`
|
|
12624
|
+
}, React__default.createElement(StarShape, {
|
|
12625
|
+
theme: theme
|
|
12626
|
+
}));
|
|
12627
|
+
default:
|
|
12628
|
+
return React__default.createElement("div", {
|
|
12629
|
+
className: styles$13['calendar-highlight__shape']
|
|
12630
|
+
}, shape);
|
|
12631
|
+
}
|
|
12632
|
+
};
|
|
12633
|
+
const SquareDashedShape = ({
|
|
12634
|
+
theme
|
|
12635
|
+
}) => React__default.createElement("svg", {
|
|
12636
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12637
|
+
width: "12",
|
|
12638
|
+
height: "12",
|
|
12639
|
+
viewBox: "0 0 12 12"
|
|
12640
|
+
}, React__default.createElement("rect", {
|
|
12641
|
+
x: "0",
|
|
12642
|
+
y: "0",
|
|
12643
|
+
width: "5",
|
|
12644
|
+
height: "5",
|
|
12645
|
+
fill: COLORS[`${theme}-color`]
|
|
12646
|
+
}), React__default.createElement("rect", {
|
|
12647
|
+
x: "3",
|
|
12648
|
+
y: "3",
|
|
12649
|
+
width: "2",
|
|
12650
|
+
height: "2",
|
|
12651
|
+
fill: COLORS['surface-container']
|
|
12652
|
+
}), React__default.createElement("rect", {
|
|
12653
|
+
x: "7",
|
|
12654
|
+
y: "0",
|
|
12655
|
+
width: "5",
|
|
12656
|
+
height: "5",
|
|
12657
|
+
fill: COLORS[`${theme}-color`]
|
|
12658
|
+
}), React__default.createElement("rect", {
|
|
12659
|
+
x: "7",
|
|
12660
|
+
y: "3",
|
|
12661
|
+
width: "2",
|
|
12662
|
+
height: "2",
|
|
12663
|
+
fill: COLORS['surface-container']
|
|
12664
|
+
}), React__default.createElement("rect", {
|
|
12665
|
+
x: "0",
|
|
12666
|
+
y: "7",
|
|
12667
|
+
width: "5",
|
|
12668
|
+
height: "5",
|
|
12669
|
+
fill: COLORS[`${theme}-color`]
|
|
12670
|
+
}), React__default.createElement("rect", {
|
|
12671
|
+
x: "3",
|
|
12672
|
+
y: "7",
|
|
12673
|
+
width: "2",
|
|
12674
|
+
height: "2",
|
|
12675
|
+
fill: COLORS['surface-container']
|
|
12676
|
+
}), React__default.createElement("rect", {
|
|
12677
|
+
x: "7",
|
|
12678
|
+
y: "7",
|
|
12679
|
+
width: "5",
|
|
12680
|
+
height: "5",
|
|
12681
|
+
fill: COLORS[`${theme}-color`]
|
|
12682
|
+
}), React__default.createElement("rect", {
|
|
12683
|
+
x: "7",
|
|
12684
|
+
y: "7",
|
|
12685
|
+
width: "2",
|
|
12686
|
+
height: "2",
|
|
12687
|
+
fill: COLORS['surface-container']
|
|
12688
|
+
}));
|
|
12689
|
+
const CircleDashedShape = ({
|
|
12690
|
+
theme
|
|
12691
|
+
}) => React__default.createElement("svg", {
|
|
12692
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12693
|
+
width: "12",
|
|
12694
|
+
height: "12",
|
|
12695
|
+
viewBox: "0 0 12 12"
|
|
12696
|
+
}, React__default.createElement("path", {
|
|
12697
|
+
d: "M 6.000 3.000 L 6.000 0.500 A 5.5 5.5 0 0 1 7.700 0.769 L 6.927 3.147 A 3.0 3.0 0 0 0 6.000 3.000 Z",
|
|
12698
|
+
fill: COLORS[`${theme}-color`]
|
|
12699
|
+
}), React__default.createElement("path", {
|
|
12700
|
+
d: "M 7.763 3.573 L 9.233 1.550 A 5.5 5.5 0 0 1 10.450 2.767 L 8.427 4.237 A 3.0 3.0 0 0 0 7.763 3.573 Z",
|
|
12701
|
+
fill: COLORS[`${theme}-color`]
|
|
12702
|
+
}), React__default.createElement("path", {
|
|
12703
|
+
d: "M 8.853 5.073 L 11.231 4.300 A 5.5 5.5 0 0 1 11.500 6.000 L 9.000 6.000 A 3.0 3.0 0 0 0 8.853 5.073 Z",
|
|
12704
|
+
fill: COLORS[`${theme}-color`]
|
|
12705
|
+
}), React__default.createElement("path", {
|
|
12706
|
+
d: "M 8.853 6.927 L 11.231 7.700 A 5.5 5.5 0 0 1 10.450 9.233 L 8.427 7.763 A 3.0 3.0 0 0 0 8.853 6.927 Z",
|
|
12707
|
+
fill: COLORS[`${theme}-color`]
|
|
12708
|
+
}), React__default.createElement("path", {
|
|
12709
|
+
d: "M 7.763 8.427 L 9.233 10.450 A 5.5 5.5 0 0 1 7.700 11.231 L 6.927 8.853 A 3.0 3.0 0 0 0 7.763 8.427 Z",
|
|
12710
|
+
fill: COLORS[`${theme}-color`]
|
|
12711
|
+
}), React__default.createElement("path", {
|
|
12712
|
+
d: "M 6.000 9.000 L 6.000 11.500 A 5.5 5.5 0 0 1 4.300 11.231 L 5.073 8.853 A 3.0 3.0 0 0 0 6.000 9.000 Z",
|
|
12713
|
+
fill: COLORS[`${theme}-color`]
|
|
12714
|
+
}), React__default.createElement("path", {
|
|
12715
|
+
d: "M 4.237 8.427 L 2.767 10.450 A 5.5 5.5 0 0 1 1.550 9.233 L 3.573 7.763 A 3.0 3.0 0 0 0 4.237 8.427 Z",
|
|
12716
|
+
fill: COLORS[`${theme}-color`]
|
|
12717
|
+
}), React__default.createElement("path", {
|
|
12718
|
+
d: "M 3.147 6.927 L 0.769 7.700 A 5.5 5.5 0 0 1 0.500 6.000 L 3.000 6.000 A 3.0 3.0 0 0 0 3.147 6.927 Z",
|
|
12719
|
+
fill: COLORS[`${theme}-color`]
|
|
12720
|
+
}), React__default.createElement("path", {
|
|
12721
|
+
d: "M 3.147 5.073 L 0.769 4.300 A 5.5 5.5 0 0 1 1.550 2.767 L 3.573 4.237 A 3.0 3.0 0 0 0 3.147 5.073 Z",
|
|
12722
|
+
fill: COLORS[`${theme}-color`]
|
|
12723
|
+
}), React__default.createElement("path", {
|
|
12724
|
+
d: "M 4.237 3.573 L 2.767 1.550 A 5.5 5.5 0 0 1 4.300 0.769 L 5.073 3.147 A 3.0 3.0 0 0 0 4.237 3.573 Z",
|
|
12725
|
+
fill: COLORS[`${theme}-color`]
|
|
12726
|
+
}));
|
|
12727
|
+
const OctagonShape = ({
|
|
12728
|
+
theme
|
|
12729
|
+
}) => React__default.createElement("svg", {
|
|
12730
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12731
|
+
width: "12",
|
|
12732
|
+
height: "12",
|
|
12733
|
+
viewBox: "0 0 12 12",
|
|
12734
|
+
fill: "none"
|
|
12735
|
+
}, React__default.createElement("path", {
|
|
12736
|
+
d: "M10.4971 4.13281L10.499 7.86035L7.86621 10.4971L4.13867 10.499L1.50195 7.86621L1.5 4.13867L4.13281 1.50195L7.86035 1.5L10.4971 4.13281Z",
|
|
12737
|
+
stroke: COLORS[`${theme}-color`],
|
|
12738
|
+
strokeWidth: "3"
|
|
12739
|
+
}));
|
|
12740
|
+
const StarShape = ({
|
|
12741
|
+
theme
|
|
12742
|
+
}) => React__default.createElement("svg", {
|
|
12743
|
+
width: "12",
|
|
12744
|
+
height: "12",
|
|
12745
|
+
viewBox: "0 0 12 12",
|
|
12746
|
+
fill: "none",
|
|
12747
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12748
|
+
}, React__default.createElement("path", {
|
|
12749
|
+
d: "M6.72168 2.82812L7.09082 3.36719L7.73242 3.24707L8.98926 3.00977L8.75293 4.26758L8.63281 4.90918L9.17188 5.27832L10.2275 6L9.17188 6.72168L8.63281 7.09082L8.75293 7.73242L8.98926 8.98926L7.73242 8.75293L7.09082 8.63281L6.72168 9.17188L6 10.2275L5.27832 9.17188L4.90918 8.63281L4.26758 8.75293L3.00977 8.98926L3.24707 7.73242L3.36719 7.09082L2.82812 6.72168L1.77148 6L2.82812 5.27832L3.36719 4.90918L3.24707 4.26758L3.00977 3.00977L4.26758 3.24707L4.90918 3.36719L5.27832 2.82812L6 1.77148L6.72168 2.82812Z",
|
|
12750
|
+
stroke: COLORS[`${theme}-color`],
|
|
12751
|
+
strokeWidth: "2"
|
|
12752
|
+
}));
|
|
12481
12753
|
|
|
12482
12754
|
/**Calendar overlay component*/
|
|
12483
12755
|
const Calendar = ({
|
|
@@ -12489,6 +12761,7 @@ const Calendar = ({
|
|
|
12489
12761
|
onSelect,
|
|
12490
12762
|
onClickOutside,
|
|
12491
12763
|
disabledDays,
|
|
12764
|
+
highlightedDays,
|
|
12492
12765
|
anchorRef,
|
|
12493
12766
|
testId,
|
|
12494
12767
|
onMonthChange
|
|
@@ -12542,8 +12815,11 @@ const Calendar = ({
|
|
|
12542
12815
|
const styleOverrides = _mode === CALENDAR_MODE.WEEK ? weekOverridesStyles : dayOverridesStyles;
|
|
12543
12816
|
const MONTH_NAMES = getMonths(translate);
|
|
12544
12817
|
const DAYS = getDays(translate);
|
|
12818
|
+
const highlight = buildHighlightDayPickerProps(highlightedDays);
|
|
12545
12819
|
const defaultProps = {
|
|
12546
12820
|
classNames: _extends({}, originalStylers, styleOverrides),
|
|
12821
|
+
modifiers: highlight.modifiers,
|
|
12822
|
+
modifiersClassNames: highlight.modifiersClassNames,
|
|
12547
12823
|
onDayClick: (day, activeModifiers) => {
|
|
12548
12824
|
const isDateDisabled = Object.keys(activeModifiers).find(modifier => modifier.includes('disabled'));
|
|
12549
12825
|
if (!Boolean(isDateDisabled)) {
|
|
@@ -12570,9 +12846,9 @@ const Calendar = ({
|
|
|
12570
12846
|
}
|
|
12571
12847
|
};
|
|
12572
12848
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
12573
|
-
className: styles$
|
|
12849
|
+
className: styles$15['calendar']
|
|
12574
12850
|
}, React__default.createElement("div", {
|
|
12575
|
-
className: styles$
|
|
12851
|
+
className: styles$15['calendar__overlay'],
|
|
12576
12852
|
ref: ref => setCalendarRef(ref),
|
|
12577
12853
|
style: _extends({}, calendarPosition, {
|
|
12578
12854
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -12587,7 +12863,9 @@ const Calendar = ({
|
|
|
12587
12863
|
mode: "range",
|
|
12588
12864
|
selected: selectedRange,
|
|
12589
12865
|
captionLayout: "dropdown-buttons"
|
|
12590
|
-
}, defaultProps))
|
|
12866
|
+
}, defaultProps)), React__default.createElement(CalendarHighlights, {
|
|
12867
|
+
highlights: highlight.items
|
|
12868
|
+
}))));
|
|
12591
12869
|
};
|
|
12592
12870
|
|
|
12593
12871
|
const useCheckBoxFieldControllers = ({
|
|
@@ -12848,12 +13126,12 @@ const BadgeElement = (_ref, forwardedRef) => {
|
|
|
12848
13126
|
overlay: title,
|
|
12849
13127
|
ref: ref
|
|
12850
13128
|
}, React__default.createElement("div", _extends({
|
|
12851
|
-
className: classnames(styles$
|
|
12852
|
-
[styles$
|
|
12853
|
-
[styles$
|
|
12854
|
-
[styles$
|
|
12855
|
-
[styles$
|
|
12856
|
-
[styles$
|
|
13129
|
+
className: classnames(styles$1a['badge'], {
|
|
13130
|
+
[styles$1a['badge--success']]: theme === 'success',
|
|
13131
|
+
[styles$1a['badge--danger']]: theme === 'danger',
|
|
13132
|
+
[styles$1a['badge--info']]: theme === 'info',
|
|
13133
|
+
[styles$1a['badge--warning']]: theme === 'warning',
|
|
13134
|
+
[styles$1a['badge--numeric']]: Number.isFinite(children)
|
|
12857
13135
|
}),
|
|
12858
13136
|
ref: ref,
|
|
12859
13137
|
"data-testid": testId
|
|
@@ -12865,28 +13143,28 @@ const MenuItem = ({
|
|
|
12865
13143
|
menu
|
|
12866
13144
|
}) => {
|
|
12867
13145
|
return React__default.createElement("li", {
|
|
12868
|
-
className: classnames(styles$
|
|
12869
|
-
[styles$
|
|
13146
|
+
className: classnames(styles$1b['menu-item'], {
|
|
13147
|
+
[styles$1b['menu-item--with-badge']]: !!menu.suffix
|
|
12870
13148
|
})
|
|
12871
13149
|
}, menu.reloadDocument ? React__default.createElement("a", {
|
|
12872
13150
|
href: menu.to,
|
|
12873
13151
|
className: classnames({
|
|
12874
|
-
[styles$
|
|
13152
|
+
[styles$1b['menu-item--active']]: menu.isActive
|
|
12875
13153
|
})
|
|
12876
13154
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
12877
|
-
className: styles$
|
|
13155
|
+
className: styles$1b['menu-item__badge']
|
|
12878
13156
|
}, React__default.createElement(Badge, null, menu.suffix))) : React__default.createElement(NavLink, {
|
|
12879
13157
|
to: menu.to,
|
|
12880
13158
|
// @ts-expect-error This is only available on v5
|
|
12881
|
-
activeClassName: styles$
|
|
13159
|
+
activeClassName: styles$1b['menu-item--active'],
|
|
12882
13160
|
className: ({
|
|
12883
13161
|
isActive
|
|
12884
13162
|
}) => {
|
|
12885
|
-
return isActive ? styles$
|
|
13163
|
+
return isActive ? styles$1b['menu-item--active'] : '';
|
|
12886
13164
|
},
|
|
12887
13165
|
exact: true
|
|
12888
13166
|
}, menu.label, !!menu.suffix && React__default.createElement("div", {
|
|
12889
|
-
className: styles$
|
|
13167
|
+
className: styles$1b['menu-item__badge']
|
|
12890
13168
|
}, React__default.createElement(Badge, null, menu.suffix))));
|
|
12891
13169
|
};
|
|
12892
13170
|
|
|
@@ -12897,9 +13175,9 @@ const PageLayout = ({
|
|
|
12897
13175
|
sideNavContent
|
|
12898
13176
|
}) => {
|
|
12899
13177
|
return React__default.createElement("div", {
|
|
12900
|
-
className: styles$
|
|
13178
|
+
className: styles$1c['page-layout']
|
|
12901
13179
|
}, React__default.createElement("div", {
|
|
12902
|
-
className: styles$
|
|
13180
|
+
className: styles$1c['page-layout__nav-container']
|
|
12903
13181
|
}, React__default.createElement(Stack, {
|
|
12904
13182
|
space: 12
|
|
12905
13183
|
}, React__default.createElement(Text, {
|
|
@@ -12908,14 +13186,14 @@ const PageLayout = ({
|
|
|
12908
13186
|
ml: 20,
|
|
12909
13187
|
mr: 35
|
|
12910
13188
|
}, title), React__default.createElement("ul", {
|
|
12911
|
-
className: styles$
|
|
13189
|
+
className: styles$1c['page-layout__nav-list']
|
|
12912
13190
|
}, menu.filter(menu => !('isVisible' in menu) || (menu == null ? void 0 : menu.isVisible) === true).map((menuItem, index) => React__default.createElement(MenuItem, {
|
|
12913
13191
|
key: menuItem.name || index,
|
|
12914
13192
|
menu: menuItem
|
|
12915
13193
|
}))), sideNavContent && React__default.createElement("div", {
|
|
12916
|
-
className: styles$
|
|
13194
|
+
className: styles$1c['page-layout__side-nav-content']
|
|
12917
13195
|
}, sideNavContent))), React__default.createElement("div", {
|
|
12918
|
-
className: styles$
|
|
13196
|
+
className: styles$1c['page-layout__content']
|
|
12919
13197
|
}, children));
|
|
12920
13198
|
};
|
|
12921
13199
|
|
|
@@ -15158,7 +15436,7 @@ const CreateInputForm = ({
|
|
|
15158
15436
|
flex: [1],
|
|
15159
15437
|
flexItems: true
|
|
15160
15438
|
}, React__default.createElement("input", {
|
|
15161
|
-
className: classnames(styles$
|
|
15439
|
+
className: classnames(styles$1n['text-field'], inputClassName),
|
|
15162
15440
|
autoCorrect: "off",
|
|
15163
15441
|
autoComplete: "off",
|
|
15164
15442
|
spellCheck: "false",
|
|
@@ -15625,9 +15903,9 @@ const CalendarMonth = ({
|
|
|
15625
15903
|
}
|
|
15626
15904
|
const MONTHS = [...Array(12).keys()];
|
|
15627
15905
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
15628
|
-
className: styles$
|
|
15906
|
+
className: styles$15['calendar']
|
|
15629
15907
|
}, React__default.createElement("div", {
|
|
15630
|
-
className: styles$
|
|
15908
|
+
className: styles$15['calendar__overlay'],
|
|
15631
15909
|
ref: ref => setCalendarRef(ref),
|
|
15632
15910
|
style: _extends({}, calendarPosition, {
|
|
15633
15911
|
zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
|
|
@@ -15693,6 +15971,7 @@ const DateFilter = ({
|
|
|
15693
15971
|
weekStart: _weekStart = 0,
|
|
15694
15972
|
value,
|
|
15695
15973
|
onChange,
|
|
15974
|
+
highlightedDays,
|
|
15696
15975
|
testId
|
|
15697
15976
|
}) => {
|
|
15698
15977
|
const calendarAnchorRef = useRef(null);
|
|
@@ -15744,6 +16023,7 @@ const DateFilter = ({
|
|
|
15744
16023
|
anchorRef: calendarAnchorRef,
|
|
15745
16024
|
weekStart: _weekStart,
|
|
15746
16025
|
mode: _mode,
|
|
16026
|
+
highlightedDays: highlightedDays,
|
|
15747
16027
|
position: "bottom"
|
|
15748
16028
|
}));
|
|
15749
16029
|
};
|
|
@@ -16886,6 +17166,7 @@ const DateField = ({
|
|
|
16886
17166
|
id: inputId,
|
|
16887
17167
|
value,
|
|
16888
17168
|
disabledDays,
|
|
17169
|
+
highlightedDays,
|
|
16889
17170
|
initialMonth,
|
|
16890
17171
|
format: _format = 'MM/dd/yyyy',
|
|
16891
17172
|
onChange,
|
|
@@ -16994,6 +17275,7 @@ const DateField = ({
|
|
|
16994
17275
|
anchorRef: inputRef,
|
|
16995
17276
|
onClickOutside: onClickOutside,
|
|
16996
17277
|
disabledDays: day => disabledDays ? disabledDays(setToMidnight(day)) : false,
|
|
17278
|
+
highlightedDays: highlightedDays,
|
|
16997
17279
|
initialMonth: initialMonth,
|
|
16998
17280
|
onMonthChange: onMonthChange,
|
|
16999
17281
|
weekStart: weekStart
|
|
@@ -17068,6 +17350,7 @@ const DateRangeCalendar = ({
|
|
|
17068
17350
|
onSelect,
|
|
17069
17351
|
onClickOutside,
|
|
17070
17352
|
disabledDays,
|
|
17353
|
+
highlightedDays,
|
|
17071
17354
|
anchorRef,
|
|
17072
17355
|
testId,
|
|
17073
17356
|
onMonthChange,
|
|
@@ -17117,10 +17400,11 @@ const DateRangeCalendar = ({
|
|
|
17117
17400
|
const datePickerProps = mode === 'start-date' ? startDateProps : endDateProps;
|
|
17118
17401
|
const DAYS = getDays(translate);
|
|
17119
17402
|
const MONTH_NAMES = getMonths(translate);
|
|
17403
|
+
const highlight = buildHighlightDayPickerProps(highlightedDays);
|
|
17120
17404
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
17121
|
-
className: styles$
|
|
17405
|
+
className: styles$15['calendar']
|
|
17122
17406
|
}, React__default.createElement("div", {
|
|
17123
|
-
className: styles$
|
|
17407
|
+
className: styles$15['calendar__overlay'],
|
|
17124
17408
|
ref: ref => setCalendarRef(ref),
|
|
17125
17409
|
style: _extends({}, calendarPosition, {
|
|
17126
17410
|
zIndex: getZIndex('dropdown')
|
|
@@ -17140,6 +17424,8 @@ const DateRangeCalendar = ({
|
|
|
17140
17424
|
to: end
|
|
17141
17425
|
},
|
|
17142
17426
|
disabled: disabledDays,
|
|
17427
|
+
modifiers: highlight.modifiers,
|
|
17428
|
+
modifiersClassNames: highlight.modifiersClassNames,
|
|
17143
17429
|
showOutsideDays: true,
|
|
17144
17430
|
weekStartsOn: _weekStart,
|
|
17145
17431
|
max: maxDays,
|
|
@@ -17155,7 +17441,9 @@ const DateRangeCalendar = ({
|
|
|
17155
17441
|
return DAYS[date.getDay()].substring(0, 2);
|
|
17156
17442
|
}
|
|
17157
17443
|
}
|
|
17158
|
-
}, datePickerProps))
|
|
17444
|
+
}, datePickerProps)), React__default.createElement(CalendarHighlights, {
|
|
17445
|
+
highlights: highlight.items
|
|
17446
|
+
}))));
|
|
17159
17447
|
};
|
|
17160
17448
|
|
|
17161
17449
|
const FromDate = ({
|
|
@@ -17163,6 +17451,7 @@ const FromDate = ({
|
|
|
17163
17451
|
id,
|
|
17164
17452
|
format,
|
|
17165
17453
|
disabledDays,
|
|
17454
|
+
highlightedDays,
|
|
17166
17455
|
start,
|
|
17167
17456
|
end,
|
|
17168
17457
|
placeholder,
|
|
@@ -17210,6 +17499,7 @@ const FromDate = ({
|
|
|
17210
17499
|
start: start,
|
|
17211
17500
|
end: end,
|
|
17212
17501
|
disabledDays: disabledDaysChecks,
|
|
17502
|
+
highlightedDays: highlightedDays,
|
|
17213
17503
|
weekStart: weekStart,
|
|
17214
17504
|
maxDays: maxDays,
|
|
17215
17505
|
mode: "start-date"
|
|
@@ -17220,6 +17510,7 @@ const ToDateElement = ({
|
|
|
17220
17510
|
name,
|
|
17221
17511
|
format,
|
|
17222
17512
|
disabledDays,
|
|
17513
|
+
highlightedDays,
|
|
17223
17514
|
start,
|
|
17224
17515
|
end,
|
|
17225
17516
|
placeholder,
|
|
@@ -17262,6 +17553,7 @@ const ToDateElement = ({
|
|
|
17262
17553
|
start: start,
|
|
17263
17554
|
end: end,
|
|
17264
17555
|
disabledDays: disabledDaysChecks,
|
|
17556
|
+
highlightedDays: highlightedDays,
|
|
17265
17557
|
weekStart: weekStart,
|
|
17266
17558
|
maxDays: maxDays,
|
|
17267
17559
|
mode: "end-date"
|
|
@@ -17275,6 +17567,7 @@ const DateRangeField = ({
|
|
|
17275
17567
|
id: inputId,
|
|
17276
17568
|
value,
|
|
17277
17569
|
disabledDays,
|
|
17570
|
+
highlightedDays,
|
|
17278
17571
|
format: _format = 'MM/dd/yyyy',
|
|
17279
17572
|
onChange,
|
|
17280
17573
|
onBlur,
|
|
@@ -17330,6 +17623,7 @@ const DateRangeField = ({
|
|
|
17330
17623
|
maxDays: maxDays,
|
|
17331
17624
|
disabled: disabled,
|
|
17332
17625
|
disabledDays: typeof disabledDays === 'object' && ('start' in disabledDays || 'end' in disabledDays) ? (_disabledDays$start = disabledDays.start) != null ? _disabledDays$start : undefined : disabledDays,
|
|
17626
|
+
highlightedDays: highlightedDays,
|
|
17333
17627
|
readOnly: _readOnly,
|
|
17334
17628
|
onChange: val => controllers.onChange({
|
|
17335
17629
|
start: val,
|
|
@@ -17353,6 +17647,7 @@ const DateRangeField = ({
|
|
|
17353
17647
|
maxDays: maxDays,
|
|
17354
17648
|
disabled: disabled,
|
|
17355
17649
|
disabledDays: typeof disabledDays === 'object' && ('start' in disabledDays || 'end' in disabledDays) ? (_disabledDays$end = disabledDays.end) != null ? _disabledDays$end : undefined : disabledDays,
|
|
17650
|
+
highlightedDays: highlightedDays,
|
|
17356
17651
|
readOnly: _readOnly,
|
|
17357
17652
|
onBlur: controllers.onBlur,
|
|
17358
17653
|
onChange: val => controllers.onChange({
|
|
@@ -17370,6 +17665,7 @@ const WeekField = ({
|
|
|
17370
17665
|
id: inputId,
|
|
17371
17666
|
value,
|
|
17372
17667
|
disabledDays,
|
|
17668
|
+
highlightedDays,
|
|
17373
17669
|
initialMonth,
|
|
17374
17670
|
format: _format = 'MM/dd/yyyy',
|
|
17375
17671
|
onChange,
|
|
@@ -17446,6 +17742,7 @@ const WeekField = ({
|
|
|
17446
17742
|
anchorRef: inputRef,
|
|
17447
17743
|
onClickOutside: onClickOutside,
|
|
17448
17744
|
disabledDays: day => disabledDays ? disabledDays(setToMidnight(day)) : false,
|
|
17745
|
+
highlightedDays: highlightedDays,
|
|
17449
17746
|
initialMonth: initialMonth,
|
|
17450
17747
|
mode: "week",
|
|
17451
17748
|
weekStart: _weekStart
|
|
@@ -18127,8 +18424,8 @@ const usePhoneField = ({
|
|
|
18127
18424
|
'aria-describedby': hasError ? `${controllers.id}-error-message` : `${controllers.id}-describer`,
|
|
18128
18425
|
'aria-invalid': hasError,
|
|
18129
18426
|
autoFocus,
|
|
18130
|
-
className: classnames(styles$
|
|
18131
|
-
[styles$
|
|
18427
|
+
className: classnames(styles$1n['text-field'], {
|
|
18428
|
+
[styles$1n['text-field--invalid']]: hasError
|
|
18132
18429
|
}),
|
|
18133
18430
|
'data-testid': testId,
|
|
18134
18431
|
disabled,
|
|
@@ -19293,6 +19590,59 @@ const ColorFieldElement = (props, ref) => {
|
|
|
19293
19590
|
};
|
|
19294
19591
|
const ColorField = forwardRef(ColorFieldElement);
|
|
19295
19592
|
|
|
19593
|
+
/**
|
|
19594
|
+
* Matches the nth occurrence of a weekday within its month.
|
|
19595
|
+
*
|
|
19596
|
+
* @example nthWeekdayOfMonth(1, 1) // first Monday of every month
|
|
19597
|
+
* @example nthWeekdayOfMonth(5, 'last') // last Friday of every month
|
|
19598
|
+
*/
|
|
19599
|
+
const nthWeekdayOfMonth = (weekday, nth) => {
|
|
19600
|
+
return date => {
|
|
19601
|
+
if (getDay(date) !== weekday) {
|
|
19602
|
+
return false;
|
|
19603
|
+
}
|
|
19604
|
+
const dayOfMonth = getDate(date);
|
|
19605
|
+
if (nth === 'last') {
|
|
19606
|
+
// No further occurrence of this weekday fits in the month.
|
|
19607
|
+
return dayOfMonth + 7 > getDaysInMonth(date);
|
|
19608
|
+
}
|
|
19609
|
+
const occurrence = Math.floor((dayOfMonth - 1) / 7) + 1;
|
|
19610
|
+
return occurrence === nth;
|
|
19611
|
+
};
|
|
19612
|
+
};
|
|
19613
|
+
/**
|
|
19614
|
+
* Matches a weekday on a repeating week interval, aligned to `from`.
|
|
19615
|
+
*
|
|
19616
|
+
* @example everyOtherWeekday(5, { from: firstPayDay }) // every other Friday
|
|
19617
|
+
* @example everyOtherWeekday(1, { interval: 3 }) // every third Monday
|
|
19618
|
+
*/
|
|
19619
|
+
const everyOtherWeekday = (weekday, options = {}) => {
|
|
19620
|
+
const {
|
|
19621
|
+
from,
|
|
19622
|
+
interval = 2
|
|
19623
|
+
} = options;
|
|
19624
|
+
return date => {
|
|
19625
|
+
if (getDay(date) !== weekday) {
|
|
19626
|
+
return false;
|
|
19627
|
+
}
|
|
19628
|
+
if (!from) {
|
|
19629
|
+
return true;
|
|
19630
|
+
}
|
|
19631
|
+
const weeks = differenceInCalendarWeeks(startOfDay(date), startOfDay(from));
|
|
19632
|
+
// Normalise to a non-negative remainder so dates before `from`
|
|
19633
|
+
// still align correctly.
|
|
19634
|
+
return (weeks % interval + interval) % interval === 0;
|
|
19635
|
+
};
|
|
19636
|
+
};
|
|
19637
|
+
/** Matches the first day of every month. */
|
|
19638
|
+
const firstOfMonth = () => {
|
|
19639
|
+
return date => getDate(date) === 1;
|
|
19640
|
+
};
|
|
19641
|
+
/** Matches the last day of every month. */
|
|
19642
|
+
const lastOfMonth = () => {
|
|
19643
|
+
return date => getDate(date) === getDaysInMonth(date);
|
|
19644
|
+
};
|
|
19645
|
+
|
|
19296
19646
|
const isValidPhoneNumber = value => !value || isValidPhoneNumber$1(value);
|
|
19297
19647
|
|
|
19298
19648
|
var styles$d = {"avatar":"_V1U8v","avatar__container":"_peAaI","avatar--small":"_9g-tn","avatar__badge":"_uViot","avatar--medium":"_vNXJW","avatar--large":"_9ZKAB","avatar--extra-large":"_uv14Y"};
|
|
@@ -64582,5 +64932,5 @@ const EmptyState = props => {
|
|
|
64582
64932
|
return emptyStateContainer;
|
|
64583
64933
|
};
|
|
64584
64934
|
|
|
64585
|
-
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, 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, isValidPhoneNumber, toast, useDataTableContext };
|
|
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 };
|
|
64586
64936
|
//# sourceMappingURL=index.modern.mjs.map
|