@qualtrics/ui-react 2.23.0 → 2.23.1-alpha.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/__shared/cjs/{index-10d6f3f3.js → index-cf860ea0.js} +232 -204
- package/dist/components/Checkbox/Check.js +1 -1
- package/dist/components/Checkbox/VisualCheckbox.js +2 -2
- package/dist/components/Divider/Divider.js +2 -1
- package/dist/components/IconButton/IconButton.js +3 -3
- package/dist/components/IconButton/IconButton2.js +2 -2
- package/dist/components/LogicEditor/ConditionSet.js +10 -11
- package/dist/components/LogicEditor/Controls.js +28 -14
- package/dist/components/LogicEditor/LogicEditor.js +51 -40
- package/dist/components/Tooltip/Tooltip.js +2 -1
- package/dist/index.js +1 -1
- package/dist/next/AdvancedTable/AdvancedTable.js +43 -50
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +21 -27
- package/dist/next/AdvancedTable/AdvancedTableRow.js +1 -3
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +10 -15
- package/dist/next/Menu/Menu2.js +2 -2
- package/dist/next/Menu/MenuPane.js +10 -2
- package/dist/next/Menu/SubMenu.js +10 -4
- package/dist/next/Menu/useCSSVariable.js +10 -0
- package/dist/next/index.d.ts +1 -0
- package/dist/next/index.js +100 -103
- package/dist/utils/Flyout/FlyoutHeader.js +1 -1
- package/package.json +1 -1
|
@@ -118,12 +118,12 @@ function filterChildren(children, queries) {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
var css_248z$I = "._cCUHT{background-color:#fff;border-radius:4px;border:4px solid transparent;border-right:none;border-left:none;box-shadow:0 0 0 1px #eee,0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;max-width:500px;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._I2n56{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;cursor:pointer;font-size:14px;color:#32363a;word-break:break-word;outline:none}._I2n56._9tFGg,._I2n56._dEAlt._I2n56:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._I2n56._2hWs3{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._I2n56._2hWs3._9tFGg,._I2n56._2hWs3._dEAlt._I2n56._2hWs3:hover{background-color:#e4effa}._I2n56:active:not(._2hWs3):not([aria-disabled=true]){background-color:#e8e9e9}._Akvdv ._Gqk5K{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;font-size:12px;color:#32363a;font-weight:700;word-break:break-word}._Akvdv ._HTPLp{display:none}._Akvdv:not(:first-child) ._HTPLp{display:block;margin:3.5px 0}._KtEJ2{width:100%;height:40px}";
|
|
121
|
-
var styles$
|
|
121
|
+
var styles$B = {"flyout":"_cCUHT","flyoutOption":"_I2n56","highlighted":"_9tFGg","hoverHighlight":"_dEAlt","selected":"_2hWs3","flyoutHeader":"_Akvdv","headerContent":"_Gqk5K","headerDivider":"_HTPLp","flyoutSpinner":"_KtEJ2"};
|
|
122
122
|
var stylesheet$I="._cCUHT{background-color:#fff;border-radius:4px;border:4px solid transparent;border-right:none;border-left:none;box-shadow:0 0 0 1px #eee,0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;max-width:500px;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._I2n56{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;cursor:pointer;font-size:14px;color:#32363a;word-break:break-word;outline:none}._I2n56._9tFGg,._I2n56._dEAlt._I2n56:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._I2n56._2hWs3{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._I2n56._2hWs3._9tFGg,._I2n56._2hWs3._dEAlt._I2n56._2hWs3:hover{background-color:#e4effa}._I2n56:active:not(._2hWs3):not([aria-disabled=true]){background-color:#e8e9e9}._Akvdv ._Gqk5K{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;font-size:12px;color:#32363a;font-weight:700;word-break:break-word}._Akvdv ._HTPLp{display:none}._Akvdv:not(:first-child) ._HTPLp{display:block;margin:3.5px 0}._KtEJ2{width:100%;height:40px}";
|
|
123
123
|
icons_index.styleInject(css_248z$I);
|
|
124
124
|
|
|
125
125
|
var css_248z$H = "._VJaBL{position:relative;display:inline-block}._VJaBL._ZArMM{min-height:20px;min-width:20px}._VJaBL._lYElI{min-height:25px;min-width:25px}._VJaBL._mCqWR{min-height:40px;min-width:40px}._VJaBL._E6k-m{min-height:64px;min-width:64px}._VJaBL ._VEPxj{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._VJaBL ._VEPxj._4BTJY{visibility:hidden}._VJaBL ._VEPxj div{position:absolute;transform:rotate(20deg)}._VJaBL ._VEPxj div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_VEPxj .8s linear infinite}._VJaBL ._VEPxj div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._VJaBL ._VEPxj div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._VJaBL ._VEPxj div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._VJaBL ._VEPxj div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._VJaBL ._VEPxj div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._VJaBL ._VEPxj div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._VJaBL ._VEPxj div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._VJaBL ._VEPxj div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._VJaBL ._VEPxj div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._VJaBL ._VEPxj div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._VJaBL ._E6k-m div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._VJaBL ._ZArMM div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._VJaBL ._lYElI div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._VJaBL ._RVYaq div div:nth-child(-n+9):after{background:#fff}._VJaBL ._wM5dY{width:100%;height:100%}._VJaBL ._wM5dY._5BLtd{pointer-events:none}._VJaBL ._wM5dY._4BTJY{opacity:0}._VJaBL ._wM5dY._-3-iC{opacity:.5}@keyframes _VEPxj{0%{opacity:1}to{opacity:0}}";
|
|
126
|
-
var styles$
|
|
126
|
+
var styles$A = {"spinnerContainer":"_VJaBL","xs":"_ZArMM","small":"_lYElI","medium":"_mCqWR","large":"_E6k-m","spinnerComponent":"_VEPxj","hide":"_4BTJY","inverted":"_RVYaq","spinnerContent":"_wM5dY","disablePointerEvents":"_5BLtd","fade":"_-3-iC"};
|
|
127
127
|
var stylesheet$H="._VJaBL{position:relative;display:inline-block}._VJaBL._ZArMM{min-height:20px;min-width:20px}._VJaBL._lYElI{min-height:25px;min-width:25px}._VJaBL._mCqWR{min-height:40px;min-width:40px}._VJaBL._E6k-m{min-height:64px;min-width:64px}._VJaBL ._VEPxj{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._VJaBL ._VEPxj._4BTJY{visibility:hidden}._VJaBL ._VEPxj div{position:absolute;transform:rotate(20deg)}._VJaBL ._VEPxj div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_VEPxj .8s linear infinite}._VJaBL ._VEPxj div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._VJaBL ._VEPxj div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._VJaBL ._VEPxj div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._VJaBL ._VEPxj div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._VJaBL ._VEPxj div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._VJaBL ._VEPxj div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._VJaBL ._VEPxj div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._VJaBL ._VEPxj div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._VJaBL ._VEPxj div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._VJaBL ._VEPxj div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._VJaBL ._E6k-m div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._VJaBL ._ZArMM div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._VJaBL ._lYElI div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._VJaBL ._RVYaq div div:nth-child(-n+9):after{background:#fff}._VJaBL ._wM5dY{width:100%;height:100%}._VJaBL ._wM5dY._5BLtd{pointer-events:none}._VJaBL ._wM5dY._4BTJY{opacity:0}._VJaBL ._wM5dY._-3-iC{opacity:.5}@keyframes _VEPxj{0%{opacity:1}to{opacity:0}}";
|
|
128
128
|
icons_index.styleInject(css_248z$H);
|
|
129
129
|
|
|
@@ -386,13 +386,13 @@ const LoadingSpinner = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
386
386
|
const defaultAriaLabel = translate('loading');
|
|
387
387
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
388
388
|
ref: ref,
|
|
389
|
-
className: classNames__default["default"](className, styles$
|
|
390
|
-
[styles$
|
|
389
|
+
className: classNames__default["default"](className, styles$A.spinnerContainer, {
|
|
390
|
+
[styles$A[size]]: !children
|
|
391
391
|
})
|
|
392
392
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
393
|
-
className: classNames__default["default"](styles$
|
|
394
|
-
[styles$
|
|
395
|
-
[styles$
|
|
393
|
+
className: classNames__default["default"](styles$A.spinnerComponent, styles$A[size], {
|
|
394
|
+
[styles$A.inverted]: inverted,
|
|
395
|
+
[styles$A.hide]: !show
|
|
396
396
|
}),
|
|
397
397
|
"data-loadingspinner": show || undefined,
|
|
398
398
|
role: role,
|
|
@@ -401,9 +401,9 @@ const LoadingSpinner = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
401
401
|
"aria-live": ariaLive,
|
|
402
402
|
"aria-hidden": ariaHidden
|
|
403
403
|
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
404
|
-
className: classNames__default["default"](styles$
|
|
405
|
-
[styles$
|
|
406
|
-
[styles$
|
|
404
|
+
className: classNames__default["default"](styles$A.spinnerContent, {
|
|
405
|
+
[styles$A[background]]: show,
|
|
406
|
+
[styles$A.disablePointerEvents]: show
|
|
407
407
|
})
|
|
408
408
|
}, children));
|
|
409
409
|
});
|
|
@@ -455,7 +455,7 @@ const Flyout = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
455
455
|
role: "option" // `aria-selected` is omitted because this option is not selectable
|
|
456
456
|
}, /*#__PURE__*/React__default["default"].createElement(LoadingSpinner, {
|
|
457
457
|
"aria-label": translate('loading'),
|
|
458
|
-
className: styles$
|
|
458
|
+
className: styles$B.flyoutSpinner,
|
|
459
459
|
show: true,
|
|
460
460
|
size: "small"
|
|
461
461
|
}));
|
|
@@ -465,7 +465,7 @@ const Flyout = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
465
465
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
466
466
|
id: id,
|
|
467
467
|
className: classNames__default["default"](className, {
|
|
468
|
-
[styles$
|
|
468
|
+
[styles$B.flyout]: !!content
|
|
469
469
|
}),
|
|
470
470
|
ref: ref,
|
|
471
471
|
role: role,
|
|
@@ -488,12 +488,12 @@ const FlyoutHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
488
488
|
} = _ref;
|
|
489
489
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
490
490
|
ref: ref,
|
|
491
|
-
className: classNames__default["default"](className, styles$
|
|
491
|
+
className: classNames__default["default"](className, styles$B.flyoutHeader),
|
|
492
492
|
role: "group",
|
|
493
493
|
"aria-label": title
|
|
494
494
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
495
|
-
|
|
496
|
-
className: styles$
|
|
495
|
+
role: "presentation",
|
|
496
|
+
className: styles$B.headerContent
|
|
497
497
|
}, title), children);
|
|
498
498
|
});
|
|
499
499
|
|
|
@@ -511,10 +511,10 @@ const FlyoutOption = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
511
511
|
// eslint-disable-next-line jsx-a11y/interactive-supports-focus
|
|
512
512
|
React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
513
513
|
ref: ref,
|
|
514
|
-
className: classNames__default["default"](className, styles$
|
|
515
|
-
[styles$
|
|
516
|
-
[styles$
|
|
517
|
-
[styles$
|
|
514
|
+
className: classNames__default["default"](className, styles$B.flyoutOption, {
|
|
515
|
+
[styles$B.hoverHighlight]: isHighlightedOnHover,
|
|
516
|
+
[styles$B.highlighted]: isHighlighted,
|
|
517
|
+
[styles$B.selected]: isSelected
|
|
518
518
|
}),
|
|
519
519
|
role: "option",
|
|
520
520
|
"aria-selected": isSelected
|
|
@@ -826,7 +826,7 @@ function wrapEvent(theirHandler, ourHandler) {
|
|
|
826
826
|
}
|
|
827
827
|
|
|
828
828
|
var css_248z$F = "._vuV2e{position:absolute;z-index:2000;max-width:240px;padding:8px 16px;color:#fff;text-align:center;text-decoration:none;background-color:#222;border-radius:4px;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);font-size:14px;opacity:0;pointer-events:none;overflow-wrap:break-word;border:1px solid #898989}._vuV2e._Ah2Xh{color:#32363a;background-color:#fff}._s-bw9{opacity:1;pointer-events:all}._qBdgN,._qBdgN>div{position:absolute;width:8px;height:8px;background:inherit}._qBdgN{visibility:hidden;z-index:2000}._qBdgN>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._qBdgN{bottom:-4px}[data-popper-placement^=top]>._qBdgN>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._qBdgN{left:-5px}[data-popper-placement^=right]>._qBdgN>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._qBdgN{top:-5px}[data-popper-placement^=bottom]>._qBdgN>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._qBdgN{right:-4px}[data-popper-placement^=left]>._qBdgN>div{border-bottom-color:transparent;border-left-color:transparent}._hOFGH{position:absolute}[data-popper-placement^=top]>._hOFGH{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._hOFGH{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._hOFGH{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._hOFGH{top:0;right:-13px;width:17px;height:100%}";
|
|
829
|
-
var styles$
|
|
829
|
+
var styles$z = {"tooltip":"_vuV2e","lightTheme":"_Ah2Xh","visible":"_s-bw9","arrow":"_qBdgN","offsetBackplate":"_hOFGH"};
|
|
830
830
|
var stylesheet$F="._vuV2e{position:absolute;z-index:2000;max-width:240px;padding:8px 16px;color:#fff;text-align:center;text-decoration:none;background-color:#222;border-radius:4px;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);font-size:14px;opacity:0;pointer-events:none;overflow-wrap:break-word;border:1px solid #898989}._vuV2e._Ah2Xh{color:#32363a;background-color:#fff}._s-bw9{opacity:1;pointer-events:all}._qBdgN,._qBdgN>div{position:absolute;width:8px;height:8px;background:inherit}._qBdgN{visibility:hidden;z-index:2000}._qBdgN>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._qBdgN{bottom:-4px}[data-popper-placement^=top]>._qBdgN>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._qBdgN{left:-5px}[data-popper-placement^=right]>._qBdgN>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._qBdgN{top:-5px}[data-popper-placement^=bottom]>._qBdgN>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._qBdgN{right:-4px}[data-popper-placement^=left]>._qBdgN>div{border-bottom-color:transparent;border-left-color:transparent}._hOFGH{position:absolute}[data-popper-placement^=top]>._hOFGH{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._hOFGH{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._hOFGH{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._hOFGH{top:0;right:-13px;width:17px;height:100%}";
|
|
831
831
|
icons_index.styleInject(css_248z$F);
|
|
832
832
|
|
|
@@ -1641,7 +1641,8 @@ const Tooltip = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
1641
1641
|
// Allows the user to press the `Escape` key to close the flyout even if the anchor element is not focused
|
|
1642
1642
|
// handle in capture so that it runs before modal or popover event handlers
|
|
1643
1643
|
useEventListener(document, 'keydown', handleKeyDown, {
|
|
1644
|
-
isCaptureEvent: true
|
|
1644
|
+
isCaptureEvent: true,
|
|
1645
|
+
isDisabled: !isInDOM
|
|
1645
1646
|
});
|
|
1646
1647
|
useEventListener(anchorRef, 'mouseenter', handleMouseEnter);
|
|
1647
1648
|
useEventListener(anchorRef, 'mouseleave', handleMouseLeave);
|
|
@@ -1664,9 +1665,9 @@ const Tooltip = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
1664
1665
|
id: flyoutContainerId,
|
|
1665
1666
|
key: contentKey,
|
|
1666
1667
|
ref: mergeRefs(ref, flyoutRef),
|
|
1667
|
-
className: classNames__default["default"](className, styles$
|
|
1668
|
-
[styles$
|
|
1669
|
-
[styles$
|
|
1668
|
+
className: classNames__default["default"](className, styles$z.tooltip, {
|
|
1669
|
+
[styles$z.visible]: isVisible,
|
|
1670
|
+
[styles$z.lightTheme]: lightTheme
|
|
1670
1671
|
}),
|
|
1671
1672
|
style: {
|
|
1672
1673
|
zIndex,
|
|
@@ -1676,7 +1677,7 @@ const Tooltip = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
1676
1677
|
"aria-hidden": ariaHidden
|
|
1677
1678
|
}), content, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1678
1679
|
"aria-hidden": true,
|
|
1679
|
-
className: styles$
|
|
1680
|
+
className: styles$z.offsetBackplate,
|
|
1680
1681
|
ref: flyoutOffsetBackplateRef
|
|
1681
1682
|
})),
|
|
1682
1683
|
modifiers: [{
|
|
@@ -1691,7 +1692,7 @@ const Tooltip = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
1691
1692
|
}
|
|
1692
1693
|
}],
|
|
1693
1694
|
arrow: isArrowRemoved ? undefined : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1694
|
-
className: styles$
|
|
1695
|
+
className: styles$z.arrow
|
|
1695
1696
|
}, /*#__PURE__*/React__default["default"].createElement("div", null)),
|
|
1696
1697
|
portalTarget: portalTarget
|
|
1697
1698
|
});
|
|
@@ -2206,7 +2207,7 @@ const Button = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
2206
2207
|
});
|
|
2207
2208
|
|
|
2208
2209
|
var css_248z$B = "._8XG42{display:inline-flex;align-items:stretch}._8XG42._Obne8{width:100%}._8XG42 ._xsRu-{margin:0;min-width:0}._8XG42 ._xsRu-:focus{z-index:20}._8XG42 ._xsRu-:hover{z-index:10}._8XG42 ._xsRu-._BmWUW{border:none}._8XG42 ._xsRu-._Obne8{display:inline-flex;width:auto;flex-grow:1}._8XG42 ._xsRu-:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._8XG42 ._xsRu-:first-child._BmWUW{border-right:1px solid #fff}._8XG42 ._xsRu-:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._8XG42 ._xsRu-:not(:last-child):not(:first-child)._BmWUW{border-left:1px solid #fff;border-right:1px solid #fff}._8XG42 ._xsRu-:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._8XG42 ._xsRu-:last-child._BmWUW{border-left:1px solid #fff}._8XG42 ._xsRu-:only-child{margin:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px}";
|
|
2209
|
-
var styles$
|
|
2210
|
+
var styles$y = {"buttonGroup":"_8XG42","full":"_Obne8","buttonGroupElement":"_xsRu-","primary":"_BmWUW"};
|
|
2210
2211
|
var stylesheet$B="._8XG42{display:inline-flex;align-items:stretch}._8XG42._Obne8{width:100%}._8XG42 ._xsRu-{margin:0;min-width:0}._8XG42 ._xsRu-:focus{z-index:20}._8XG42 ._xsRu-:hover{z-index:10}._8XG42 ._xsRu-._BmWUW{border:none}._8XG42 ._xsRu-._Obne8{display:inline-flex;width:auto;flex-grow:1}._8XG42 ._xsRu-:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._8XG42 ._xsRu-:first-child._BmWUW{border-right:1px solid #fff}._8XG42 ._xsRu-:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._8XG42 ._xsRu-:not(:last-child):not(:first-child)._BmWUW{border-left:1px solid #fff;border-right:1px solid #fff}._8XG42 ._xsRu-:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._8XG42 ._xsRu-:last-child._BmWUW{border-left:1px solid #fff}._8XG42 ._xsRu-:only-child{margin:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px}";
|
|
2211
2212
|
icons_index.styleInject(css_248z$B);
|
|
2212
2213
|
|
|
@@ -2222,8 +2223,8 @@ const ButtonGroup = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
2222
2223
|
role: "group"
|
|
2223
2224
|
}, rest, {
|
|
2224
2225
|
ref: ref,
|
|
2225
|
-
className: classNames__default["default"](className, styles$
|
|
2226
|
-
[styles$
|
|
2226
|
+
className: classNames__default["default"](className, styles$y.buttonGroup, {
|
|
2227
|
+
[styles$y.full]: full
|
|
2227
2228
|
})
|
|
2228
2229
|
}), React__default["default"].Children.map(children, child => {
|
|
2229
2230
|
if (! /*#__PURE__*/React__default["default"].isValidElement(child)) {
|
|
@@ -2231,9 +2232,9 @@ const ButtonGroup = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
2231
2232
|
console.warn("Warning: \"".concat(child, "\" is invalid child of ButtonGroup!"));
|
|
2232
2233
|
return null;
|
|
2233
2234
|
}
|
|
2234
|
-
const buttonElementClasses = classNames__default["default"](child.props.className, styles$
|
|
2235
|
-
[styles$
|
|
2236
|
-
[styles$
|
|
2235
|
+
const buttonElementClasses = classNames__default["default"](child.props.className, styles$y.buttonGroupElement, {
|
|
2236
|
+
[styles$y.full]: full,
|
|
2237
|
+
[styles$y.primary]: child.props.kind === 'primary'
|
|
2237
2238
|
});
|
|
2238
2239
|
const buttonElementProps = {
|
|
2239
2240
|
className: buttonElementClasses,
|
|
@@ -2245,7 +2246,7 @@ const ButtonGroup = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
2245
2246
|
});
|
|
2246
2247
|
|
|
2247
2248
|
var css_248z$A = "._vBjYL{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._jYKw-,._vBjYL{cursor:pointer;height:16px;width:16px}._jYKw-{position:absolute;opacity:0;z-index:10}._jYKw-:checked~._mIX2N>._GYv1J{fill-opacity:1}._jYKw-:checked:enabled~._mIX2N{border-color:transparent;background-color:#0b6ed0}._jYKw-:checked:enabled~._mIX2N>._GYv1J{fill:#fff}._jYKw-:checked:enabled:hover~._mIX2N{background-color:#085caf}._jYKw-:not(:checked):enabled:hover~._mIX2N{border-color:#0b6ed0}._jYKw-:disabled{cursor:not-allowed}._jYKw-:disabled~._mIX2N{opacity:.4}._VTFRR{color:#32363a;display:flex;align-items:center;cursor:pointer}._zjMYe{cursor:auto;color:hsla(0,0%,53.7%,.4)}._8-E5o{margin-right:12px;flex-shrink:0}._mIX2N{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._GYv1J{fill:#0b6ed0;fill-opacity:0}._jYKw-.focus-visible~._mIX2N,._jYKw-:focus-visible~._mIX2N{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
2248
|
-
var styles$
|
|
2249
|
+
var styles$x = {"checkbox":"_vBjYL","input":"_jYKw-","check":"_mIX2N","checkIcon":"_GYv1J","label":"_VTFRR","labelDisabled":"_zjMYe","wrappedInput":"_8-E5o"};
|
|
2249
2250
|
var stylesheet$A="._vBjYL{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._jYKw-,._vBjYL{cursor:pointer;height:16px;width:16px}._jYKw-{position:absolute;opacity:0;z-index:10}._jYKw-:checked~._mIX2N>._GYv1J{fill-opacity:1}._jYKw-:checked:enabled~._mIX2N{border-color:transparent;background-color:#0b6ed0}._jYKw-:checked:enabled~._mIX2N>._GYv1J{fill:#fff}._jYKw-:checked:enabled:hover~._mIX2N{background-color:#085caf}._jYKw-:not(:checked):enabled:hover~._mIX2N{border-color:#0b6ed0}._jYKw-:disabled{cursor:not-allowed}._jYKw-:disabled~._mIX2N{opacity:.4}._VTFRR{color:#32363a;display:flex;align-items:center;cursor:pointer}._zjMYe{cursor:auto;color:hsla(0,0%,53.7%,.4)}._8-E5o{margin-right:12px;flex-shrink:0}._mIX2N{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._GYv1J{fill:#0b6ed0;fill-opacity:0}._jYKw-.focus-visible~._mIX2N,._jYKw-:focus-visible~._mIX2N{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
2250
2251
|
icons_index.styleInject(css_248z$A);
|
|
2251
2252
|
|
|
@@ -2253,7 +2254,7 @@ const Check = props => /*#__PURE__*/React__default["default"].createElement("svg
|
|
|
2253
2254
|
width: "16",
|
|
2254
2255
|
height: "16",
|
|
2255
2256
|
focusable: "false",
|
|
2256
|
-
|
|
2257
|
+
role: "presentation",
|
|
2257
2258
|
viewBox: "0 0 16 16",
|
|
2258
2259
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2259
2260
|
"data-icontype": "Check"
|
|
@@ -2321,10 +2322,10 @@ const Checkbox = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
2321
2322
|
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId, inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-describedby']);
|
|
2322
2323
|
return /*#__PURE__*/React__default["default"].createElement("span", _extends__default["default"]({}, rest, {
|
|
2323
2324
|
ref: ref,
|
|
2324
|
-
className: classNames__default["default"](className, styles$
|
|
2325
|
+
className: classNames__default["default"](className, styles$x.checkbox)
|
|
2325
2326
|
}), /*#__PURE__*/React__default["default"].createElement("input", _extends__default["default"]({}, inputProps, {
|
|
2326
2327
|
name: name !== null && name !== void 0 ? name : inputProps === null || inputProps === void 0 ? void 0 : inputProps.name,
|
|
2327
|
-
className: classNames__default["default"](styles$
|
|
2328
|
+
className: classNames__default["default"](styles$x.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className),
|
|
2328
2329
|
type: "checkbox",
|
|
2329
2330
|
id: id !== null && id !== void 0 ? id : inputProps === null || inputProps === void 0 ? void 0 : inputProps.id,
|
|
2330
2331
|
checked: checked !== null && checked !== void 0 ? checked : inputProps === null || inputProps === void 0 ? void 0 : inputProps.checked,
|
|
@@ -2336,14 +2337,14 @@ const Checkbox = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
2336
2337
|
"aria-labelledby": externalAriaLabelledBy !== null && externalAriaLabelledBy !== void 0 ? externalAriaLabelledBy : inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-labelledby'],
|
|
2337
2338
|
"aria-describedby": internalAriaDescribedby
|
|
2338
2339
|
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2339
|
-
className: styles$
|
|
2340
|
+
className: styles$x.check
|
|
2340
2341
|
}, /*#__PURE__*/React__default["default"].createElement(Check, {
|
|
2341
|
-
className: styles$
|
|
2342
|
+
className: styles$x.checkIcon
|
|
2342
2343
|
})));
|
|
2343
2344
|
});
|
|
2344
2345
|
|
|
2345
2346
|
var css_248z$z = "._jfwgH{font-size:14px}._zw-Ib{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._aAMaL{color:#0b6ed0}";
|
|
2346
|
-
var styles$
|
|
2347
|
+
var styles$w = {"label":"_jfwgH","control":"_zw-Ib","focused":"_aAMaL"};
|
|
2347
2348
|
var stylesheet$z="._jfwgH{font-size:14px}._zw-Ib{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._aAMaL{color:#0b6ed0}";
|
|
2348
2349
|
icons_index.styleInject(css_248z$z);
|
|
2349
2350
|
|
|
@@ -2357,9 +2358,9 @@ const Label = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
|
2357
2358
|
isFocused,
|
|
2358
2359
|
hasControl
|
|
2359
2360
|
} = useFormFieldLabel();
|
|
2360
|
-
const classes = classNames__default["default"](styles$
|
|
2361
|
-
[styles$
|
|
2362
|
-
[styles$
|
|
2361
|
+
const classes = classNames__default["default"](styles$w.label, className, {
|
|
2362
|
+
[styles$w.control]: hasControl,
|
|
2363
|
+
[styles$w.focused]: isFocused
|
|
2363
2364
|
});
|
|
2364
2365
|
return /*#__PURE__*/React__default["default"].createElement("label", _extends__default["default"]({}, rest, {
|
|
2365
2366
|
ref: ref,
|
|
@@ -2384,12 +2385,12 @@ const CheckboxField = /*#__PURE__*/React__default["default"].forwardRef((_ref, r
|
|
|
2384
2385
|
return /*#__PURE__*/React__default["default"].createElement(Label, _extends__default["default"]({}, rest, {
|
|
2385
2386
|
ref: ref,
|
|
2386
2387
|
htmlFor: id,
|
|
2387
|
-
className: classNames__default["default"](className, styles$
|
|
2388
|
-
[styles$
|
|
2388
|
+
className: classNames__default["default"](className, styles$x.label, {
|
|
2389
|
+
[styles$x.labelDisabled]: disabled
|
|
2389
2390
|
})
|
|
2390
2391
|
}), /*#__PURE__*/React__default["default"].createElement(Checkbox, {
|
|
2391
2392
|
inputProps: inputProps,
|
|
2392
|
-
className: styles$
|
|
2393
|
+
className: styles$x.wrappedInput,
|
|
2393
2394
|
id: id,
|
|
2394
2395
|
checked: checked,
|
|
2395
2396
|
defaultChecked: defaultChecked,
|
|
@@ -2401,7 +2402,7 @@ const CheckboxField = /*#__PURE__*/React__default["default"].forwardRef((_ref, r
|
|
|
2401
2402
|
});
|
|
2402
2403
|
|
|
2403
2404
|
var css_248z$y = "._dBcAQ{display:inline-block;height:36px;min-height:36px;padding:8px 12px;line-height:20px;font-size:14px;color:#32363a;caret-color:#32363a;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._dBcAQ::-moz-placeholder{color:#515559;opacity:1}._dBcAQ::placeholder{color:#515559;opacity:1}._dBcAQ:hover{cursor:pointer;background-color:#f5f5f5}._dBcAQ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._dBcAQ._sasde{border-color:#b00}._dBcAQ._sasde:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._dBcAQ:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._dBcAQ:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dBcAQ:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dBcAQ._oAwJ4{height:auto}._dBcAQ._oAwJ4::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._dBcAQ._Ed5IZ{display:block;width:100%}._dBcAQ._4V75M{padding:4px 8px}input._dBcAQ._4V75M{height:26px;min-height:26px}[type=number]._dBcAQ{-moz-appearance:textfield}[type=number]._dBcAQ::-webkit-inner-spin-button,[type=number]._dBcAQ::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._rTC96{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._rTC96:hover{cursor:pointer}._rTC96._4lf4c{color:#0b6ed0}._oxOIL{margin-top:4px}";
|
|
2404
|
-
var styles$
|
|
2405
|
+
var styles$v = {"input":"_dBcAQ","invalid":"_sasde","multiline":"_oAwJ4","full":"_Ed5IZ","small":"_4V75M","label":"_rTC96","focused":"_4lf4c","wrappedInput":"_oxOIL"};
|
|
2405
2406
|
var stylesheet$y="._dBcAQ{display:inline-block;height:36px;min-height:36px;padding:8px 12px;line-height:20px;font-size:14px;color:#32363a;caret-color:#32363a;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._dBcAQ::-moz-placeholder{color:#515559;opacity:1}._dBcAQ::placeholder{color:#515559;opacity:1}._dBcAQ:hover{cursor:pointer;background-color:#f5f5f5}._dBcAQ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._dBcAQ._sasde{border-color:#b00}._dBcAQ._sasde:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._dBcAQ:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._dBcAQ:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dBcAQ:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dBcAQ._oAwJ4{height:auto}._dBcAQ._oAwJ4::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._dBcAQ._Ed5IZ{display:block;width:100%}._dBcAQ._4V75M{padding:4px 8px}input._dBcAQ._4V75M{height:26px;min-height:26px}[type=number]._dBcAQ{-moz-appearance:textfield}[type=number]._dBcAQ::-webkit-inner-spin-button,[type=number]._dBcAQ::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._rTC96{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._rTC96:hover{cursor:pointer}._rTC96._4lf4c{color:#0b6ed0}._oxOIL{margin-top:4px}";
|
|
2406
2407
|
icons_index.styleInject(css_248z$y);
|
|
2407
2408
|
|
|
@@ -2429,11 +2430,11 @@ const Input$1 = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
2429
2430
|
isReadOnly: formFieldIsReadOnly
|
|
2430
2431
|
} = useFormFieldContext();
|
|
2431
2432
|
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId);
|
|
2432
|
-
const classes = classNames__default["default"](styles$
|
|
2433
|
-
[styles$
|
|
2434
|
-
[styles$
|
|
2435
|
-
[styles$
|
|
2436
|
-
[styles$
|
|
2433
|
+
const classes = classNames__default["default"](styles$v.input, inputGroupContext.className, inputGroupContext.inputClassName, {
|
|
2434
|
+
[styles$v.full]: inputGroupContext.applyFull(full),
|
|
2435
|
+
[styles$v.invalid]: invalid,
|
|
2436
|
+
[styles$v.small]: inputGroupContext.applySmall(small),
|
|
2437
|
+
[styles$v.multiline]: multiline
|
|
2437
2438
|
}, className);
|
|
2438
2439
|
const commonProps = {
|
|
2439
2440
|
...rest,
|
|
@@ -2488,21 +2489,21 @@ const InputField = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
2488
2489
|
return /*#__PURE__*/React__default["default"].createElement(Label, _extends__default["default"]({
|
|
2489
2490
|
htmlFor: id,
|
|
2490
2491
|
"data-testid": dataTestId,
|
|
2491
|
-
className: classNames__default["default"](className, styles$
|
|
2492
|
-
[styles$
|
|
2492
|
+
className: classNames__default["default"](className, styles$v.label, labelClassName, {
|
|
2493
|
+
[styles$v.focused]: focused
|
|
2493
2494
|
}),
|
|
2494
2495
|
style: style
|
|
2495
2496
|
}, labelPropsWithoutClass), label, /*#__PURE__*/React__default["default"].createElement(Input$1, _extends__default["default"]({
|
|
2496
2497
|
id: id,
|
|
2497
2498
|
ref: ref,
|
|
2498
|
-
className: classNames__default["default"](styles$
|
|
2499
|
+
className: classNames__default["default"](styles$v.wrappedInput, inputClassName),
|
|
2499
2500
|
onBlur: handleBlur,
|
|
2500
2501
|
onFocus: handleFocus
|
|
2501
2502
|
}, rest, inputPropsWithoutClass)));
|
|
2502
2503
|
});
|
|
2503
2504
|
|
|
2504
2505
|
var css_248z$x = "._5Dipe{display:flex;line-height:1.15}._5Dipe ._CpUpZ{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._5Dipe ._CpUpZ:hover:not(._ndNE-){background-color:#f5f5f5}._5Dipe ._CpUpZ._ndNE-{cursor:not-allowed;fill:rgba(81,85,89,.4)}._5Dipe ._CpUpZ:active:not(._ndNE-){background-color:#eee}._5Dipe ._FQrBu{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._5Dipe ._FQrBu._ndNE-{border-color:#d9d9d9}._5Dipe ._PWpU3{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:18px 18px;background-position:0 0,9px 0,9px -9px,0 9px}._5Dipe ._BgXd9{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._5Dipe ._BgXd9._ndNE-{border-color:#d9d9d9}._5Dipe ._NACcE{height:36px;border:1px solid #898989;border-width:1px 0}._5Dipe ._NACcE._ndNE-{border-color:#d9d9d9}._5Dipe ._wQz1Y{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._5Dipe ._oqG25{position:absolute;top:10px;left:13px;font-size:14px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._5Dipe ._oqG25._NJwB5{color:#9d9fa1}._CpUpZ.focus-visible,._CpUpZ:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._Z0-ZG{width:264px;padding:8px;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1);line-height:1.15}._Z0-ZG ._phMPv{position:relative;width:246px;height:150px;border-radius:4px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent);background-origin:border-box}._Z0-ZG ._0EihH{position:absolute;width:12px;height:12px;border-radius:50%;border:1px solid #fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.5);outline:none;cursor:pointer}._Z0-ZG ._JTXBc{display:flex;justify-content:space-between;margin:12px 0}._Z0-ZG ._JTXBc._357M8{margin-bottom:0}._Z0-ZG ._7ga00{display:flex}._Z0-ZG ._oH-Ok{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._Z0-ZG ._QFcA6{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._Z0-ZG ._Mr7-v{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:19px 19px;background-position:0 0,9.5px 0,9.5px -9.5px,0 9.5px;border-radius:0 2px 2px 0}._Z0-ZG ._0GNH1{width:202px;height:38px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(90deg,red,red 2%,#ff0 18%,#0f0 34%,#0ff 50%,#00f 66%,#f0f 82%,red 98%,red)}._Z0-ZG ._0GNH1._DABfi{height:16px;margin-bottom:6px}._Z0-ZG ._owMEI{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:38px;outline:none;cursor:pointer;top:-1px}._Z0-ZG ._owMEI._DABfi{height:16px}._Z0-ZG ._9Ni7S{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:16px 16px;background-position:0 0,8px 0,8px -8px,0 8px;border-radius:1px}._Z0-ZG ._oZJ7P{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._Z0-ZG ._DAvnm{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:16px;outline:none;cursor:pointer;top:-1px}._Z0-ZG ._Gec-3{display:flex;justify-content:space-between}._Z0-ZG ._SB-2v{display:flex;flex-direction:column;align-items:center}._Z0-ZG ._SB-2v._4ZI0-{margin-left:4px}._Z0-ZG ._IyWEY{position:absolute;top:3px;left:5px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._Z0-ZG ._xTtw1{padding:3px 4px 3px 13px!important;width:78px}._Z0-ZG ._MtYQw{text-align:right;padding:3px 4px 3px 0!important;width:34px}._Z0-ZG ._Yxtqv{text-align:right;padding:3px 16px 3px 0!important;width:46px}._Z0-ZG ._dcNZm{position:absolute;top:3px;right:4px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._Z0-ZG ._Xhwvi{line-height:22px}._Z0-ZG ._uEq7p{display:flex}._Z0-ZG ._0MLL3{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._Z0-ZG ._0MLL3._xLRZN{margin-top:0}._Z0-ZG ._xKUA5{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._pphZN{position:relative}._2V8Vj{display:none}._699ZZ{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._0EihH.focus-visible,._0EihH:focus-visible{box-shadow:inset 0 0 0 1px rgba(0,0,0,.5),0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fff}._DAvnm.focus-visible,._DAvnm:focus-visible,._owMEI.focus-visible,._owMEI:focus-visible,._xKUA5.focus-visible,._xKUA5:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
2505
|
-
var styles$
|
|
2506
|
+
var styles$u = {"colorPicker":"_5Dipe","colorPickerButton":"_CpUpZ","disabledButton":"_ndNE-","colorPickerButtonPreview":"_FQrBu","alphaBackground":"_PWpU3","colorPickerButtonAlphaPreview":"_BgXd9","caretIcon":"_NACcE","colorPickerInput":"_wQz1Y","colorPickerInputDecoration":"_oqG25","disabledDecoration":"_NJwB5","colorPickerFlyout":"_Z0-ZG","saturationGrid":"_phMPv","saturationLoop":"_0EihH","sliderGroup":"_JTXBc","removeBottomMargin":"_357M8","sliderPreviewContainer":"_7ga00","sliderPreview":"_oH-Ok","sliderPreviewAlpha":"_QFcA6","sliderPreviewAlphaBackground":"_Mr7-v","hueSliderRail":"_0GNH1","alphaEnabled":"_DABfi","hueSliderThumb":"_owMEI","alphaSliderRailBackground":"_9Ni7S","alphaSliderRail":"_oZJ7P","alphaSliderThumb":"_DAvnm","hexInputGroup":"_Gec-3","hexInputContainer":"_SB-2v","rgbInputContainer":"_4ZI0-","hexInputDecoration":"_IyWEY","hexInput":"_xTtw1","rgbInput":"_MtYQw","alphaInput":"_Yxtqv","alphaInputDecoration":"_dcNZm","inputLabel":"_Xhwvi","rgbContainer":"_uEq7p","palette":"_0MLL3","removeUpperMargin":"_xLRZN","swatch":"_xKUA5","relativePositionContainer":"_pphZN","hidden":"_2V8Vj","hiddenLiveRegion":"_699ZZ"};
|
|
2506
2507
|
var stylesheet$x="._5Dipe{display:flex;line-height:1.15}._5Dipe ._CpUpZ{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._5Dipe ._CpUpZ:hover:not(._ndNE-){background-color:#f5f5f5}._5Dipe ._CpUpZ._ndNE-{cursor:not-allowed;fill:rgba(81,85,89,.4)}._5Dipe ._CpUpZ:active:not(._ndNE-){background-color:#eee}._5Dipe ._FQrBu{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._5Dipe ._FQrBu._ndNE-{border-color:#d9d9d9}._5Dipe ._PWpU3{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:18px 18px;background-position:0 0,9px 0,9px -9px,0 9px}._5Dipe ._BgXd9{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._5Dipe ._BgXd9._ndNE-{border-color:#d9d9d9}._5Dipe ._NACcE{height:36px;border:1px solid #898989;border-width:1px 0}._5Dipe ._NACcE._ndNE-{border-color:#d9d9d9}._5Dipe ._wQz1Y{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._5Dipe ._oqG25{position:absolute;top:10px;left:13px;font-size:14px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._5Dipe ._oqG25._NJwB5{color:#9d9fa1}._CpUpZ.focus-visible,._CpUpZ:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._Z0-ZG{width:264px;padding:8px;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1);line-height:1.15}._Z0-ZG ._phMPv{position:relative;width:246px;height:150px;border-radius:4px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent);background-origin:border-box}._Z0-ZG ._0EihH{position:absolute;width:12px;height:12px;border-radius:50%;border:1px solid #fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.5);outline:none;cursor:pointer}._Z0-ZG ._JTXBc{display:flex;justify-content:space-between;margin:12px 0}._Z0-ZG ._JTXBc._357M8{margin-bottom:0}._Z0-ZG ._7ga00{display:flex}._Z0-ZG ._oH-Ok{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._Z0-ZG ._QFcA6{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._Z0-ZG ._Mr7-v{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:19px 19px;background-position:0 0,9.5px 0,9.5px -9.5px,0 9.5px;border-radius:0 2px 2px 0}._Z0-ZG ._0GNH1{width:202px;height:38px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(90deg,red,red 2%,#ff0 18%,#0f0 34%,#0ff 50%,#00f 66%,#f0f 82%,red 98%,red)}._Z0-ZG ._0GNH1._DABfi{height:16px;margin-bottom:6px}._Z0-ZG ._owMEI{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:38px;outline:none;cursor:pointer;top:-1px}._Z0-ZG ._owMEI._DABfi{height:16px}._Z0-ZG ._9Ni7S{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:16px 16px;background-position:0 0,8px 0,8px -8px,0 8px;border-radius:1px}._Z0-ZG ._oZJ7P{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._Z0-ZG ._DAvnm{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:16px;outline:none;cursor:pointer;top:-1px}._Z0-ZG ._Gec-3{display:flex;justify-content:space-between}._Z0-ZG ._SB-2v{display:flex;flex-direction:column;align-items:center}._Z0-ZG ._SB-2v._4ZI0-{margin-left:4px}._Z0-ZG ._IyWEY{position:absolute;top:3px;left:5px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._Z0-ZG ._xTtw1{padding:3px 4px 3px 13px!important;width:78px}._Z0-ZG ._MtYQw{text-align:right;padding:3px 4px 3px 0!important;width:34px}._Z0-ZG ._Yxtqv{text-align:right;padding:3px 16px 3px 0!important;width:46px}._Z0-ZG ._dcNZm{position:absolute;top:3px;right:4px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._Z0-ZG ._Xhwvi{line-height:22px}._Z0-ZG ._uEq7p{display:flex}._Z0-ZG ._0MLL3{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._Z0-ZG ._0MLL3._xLRZN{margin-top:0}._Z0-ZG ._xKUA5{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._pphZN{position:relative}._2V8Vj{display:none}._699ZZ{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._0EihH.focus-visible,._0EihH:focus-visible{box-shadow:inset 0 0 0 1px rgba(0,0,0,.5),0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fff}._DAvnm.focus-visible,._DAvnm:focus-visible,._owMEI.focus-visible,._owMEI:focus-visible,._xKUA5.focus-visible,._xKUA5:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
2507
2508
|
icons_index.styleInject(css_248z$x);
|
|
2508
2509
|
|
|
@@ -2864,7 +2865,7 @@ function Saturation$1(_ref) {
|
|
|
2864
2865
|
}
|
|
2865
2866
|
}
|
|
2866
2867
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2867
|
-
className: styles$
|
|
2868
|
+
className: styles$u.saturationGrid,
|
|
2868
2869
|
style: {
|
|
2869
2870
|
backgroundColor: "".concat(hsvToHex({
|
|
2870
2871
|
h: hsv.h,
|
|
@@ -2883,15 +2884,15 @@ function Saturation$1(_ref) {
|
|
|
2883
2884
|
ref: gridRef
|
|
2884
2885
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2885
2886
|
id: "".concat(saturationId, "-saturation-desc"),
|
|
2886
|
-
className: styles$
|
|
2887
|
+
className: styles$u.hidden
|
|
2887
2888
|
}, saturationAriaDesc), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2888
2889
|
"aria-live": loopRef.current === document.activeElement ? 'assertive' : 'off',
|
|
2889
|
-
className: styles$
|
|
2890
|
+
className: styles$u.hiddenLiveRegion
|
|
2890
2891
|
}, saturationAriaLive), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2891
2892
|
"aria-live": loopRef.current === document.activeElement ? 'assertive' : 'off',
|
|
2892
|
-
className: styles$
|
|
2893
|
+
className: styles$u.hiddenLiveRegion
|
|
2893
2894
|
}, valueAriaLive), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2894
|
-
className: styles$
|
|
2895
|
+
className: styles$u.saturationLoop,
|
|
2895
2896
|
style: {
|
|
2896
2897
|
left: "calc(".concat(hsv.s * 100, "% - ").concat(hsv.s * 12, "px)"),
|
|
2897
2898
|
bottom: "calc(".concat(hsv.v * 100, "% - ").concat(hsv.v * 12, "px)")
|
|
@@ -2965,8 +2966,8 @@ function Hue$1(_ref) {
|
|
|
2965
2966
|
}
|
|
2966
2967
|
}
|
|
2967
2968
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2968
|
-
className: classNames__default["default"](styles$
|
|
2969
|
-
[styles$
|
|
2969
|
+
className: classNames__default["default"](styles$u.hueSliderRail, {
|
|
2970
|
+
[styles$u.alphaEnabled]: isAlphaEnabled
|
|
2970
2971
|
}),
|
|
2971
2972
|
onMouseDown: e => {
|
|
2972
2973
|
var _thumbRef$current;
|
|
@@ -2979,8 +2980,8 @@ function Hue$1(_ref) {
|
|
|
2979
2980
|
ref: railRef
|
|
2980
2981
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2981
2982
|
role: "slider",
|
|
2982
|
-
className: classNames__default["default"](styles$
|
|
2983
|
-
[styles$
|
|
2983
|
+
className: classNames__default["default"](styles$u.hueSliderThumb, {
|
|
2984
|
+
[styles$u.alphaEnabled]: isAlphaEnabled
|
|
2984
2985
|
}),
|
|
2985
2986
|
style: {
|
|
2986
2987
|
left: "calc(".concat(hue / 359 * 100, "% - 4px)")
|
|
@@ -3057,9 +3058,9 @@ function Alpha$1(_ref) {
|
|
|
3057
3058
|
}
|
|
3058
3059
|
}
|
|
3059
3060
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3060
|
-
className: styles$
|
|
3061
|
+
className: styles$u.alphaSliderRailBackground
|
|
3061
3062
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3062
|
-
className: styles$
|
|
3063
|
+
className: styles$u.alphaSliderRail,
|
|
3063
3064
|
style: {
|
|
3064
3065
|
background: "linear-gradient(90deg, ".concat(color.hex, ", transparent)")
|
|
3065
3066
|
},
|
|
@@ -3074,7 +3075,7 @@ function Alpha$1(_ref) {
|
|
|
3074
3075
|
ref: railRef
|
|
3075
3076
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3076
3077
|
role: "slider",
|
|
3077
|
-
className: styles$
|
|
3078
|
+
className: styles$u.alphaSliderThumb,
|
|
3078
3079
|
style: {
|
|
3079
3080
|
left: "calc(".concat(MAX_ALPHA - ((_color$alpha5 = color.alpha) !== null && _color$alpha5 !== void 0 ? _color$alpha5 : MAX_ALPHA), "% - 4px)")
|
|
3080
3081
|
},
|
|
@@ -3109,7 +3110,7 @@ const Swatch$1 = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3109
3110
|
role: "gridcell"
|
|
3110
3111
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3111
3112
|
type: "button",
|
|
3112
|
-
className: styles$
|
|
3113
|
+
className: styles$u.swatch,
|
|
3113
3114
|
style: {
|
|
3114
3115
|
backgroundColor: "".concat(color.hex)
|
|
3115
3116
|
},
|
|
@@ -3183,14 +3184,14 @@ function Palette(_ref2) {
|
|
|
3183
3184
|
React__default["default"].createElement("div", {
|
|
3184
3185
|
role: "grid",
|
|
3185
3186
|
"aria-label": paletteAriaLabel,
|
|
3186
|
-
className: classNames__default["default"](styles$
|
|
3187
|
-
[styles$
|
|
3187
|
+
className: classNames__default["default"](styles$u.palette, {
|
|
3188
|
+
[styles$u.removeUpperMargin]: removeUpperMargin
|
|
3188
3189
|
}),
|
|
3189
3190
|
onKeyDown: handleKeyDown,
|
|
3190
3191
|
"data-testid": getSubDataTestId(dataTestId, 'palette')
|
|
3191
3192
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3192
3193
|
id: swatchDescriptionId,
|
|
3193
|
-
className: styles$
|
|
3194
|
+
className: styles$u.hidden
|
|
3194
3195
|
}, swatchAriaDesc), paletteRows.map((row, rowIndex) =>
|
|
3195
3196
|
/*#__PURE__*/
|
|
3196
3197
|
/* eslint-disable react/no-array-index-key */
|
|
@@ -3231,11 +3232,11 @@ function RGBInput(_ref) {
|
|
|
3231
3232
|
setInternalValue(externalValue);
|
|
3232
3233
|
}, [externalValue]);
|
|
3233
3234
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3234
|
-
className: classNames__default["default"](styles$
|
|
3235
|
+
className: classNames__default["default"](styles$u.hexInputContainer, styles$u.rgbInputContainer)
|
|
3235
3236
|
}, /*#__PURE__*/React__default["default"].createElement(Input$1, {
|
|
3236
3237
|
id: inputId,
|
|
3237
3238
|
type: "number",
|
|
3238
|
-
className: styles$
|
|
3239
|
+
className: styles$u.rgbInput,
|
|
3239
3240
|
small: true,
|
|
3240
3241
|
min: 0,
|
|
3241
3242
|
max: 255,
|
|
@@ -3246,7 +3247,7 @@ function RGBInput(_ref) {
|
|
|
3246
3247
|
"data-testid": getSubDataTestId(dataTestId, "".concat(label, "-channel"))
|
|
3247
3248
|
}), /*#__PURE__*/React__default["default"].createElement(Label, {
|
|
3248
3249
|
htmlFor: inputId,
|
|
3249
|
-
className: styles$
|
|
3250
|
+
className: styles$u.inputLabel
|
|
3250
3251
|
}, label));
|
|
3251
3252
|
}
|
|
3252
3253
|
const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
@@ -3299,17 +3300,17 @@ const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
|
3299
3300
|
setInternalAlpha(parseInt(newAlpha, 10));
|
|
3300
3301
|
}
|
|
3301
3302
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3302
|
-
className: styles$
|
|
3303
|
+
className: styles$u.hexInputGroup
|
|
3303
3304
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3304
|
-
className: styles$
|
|
3305
|
+
className: styles$u.hexInputContainer
|
|
3305
3306
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3306
|
-
className: styles$
|
|
3307
|
+
className: styles$u.relativePositionContainer
|
|
3307
3308
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3308
|
-
className: styles$
|
|
3309
|
+
className: styles$u.hexInputDecoration,
|
|
3309
3310
|
"aria-hidden": true
|
|
3310
3311
|
}, "#"), /*#__PURE__*/React__default["default"].createElement(Input$1, {
|
|
3311
3312
|
id: hexInputId,
|
|
3312
|
-
className: styles$
|
|
3313
|
+
className: styles$u.hexInput,
|
|
3313
3314
|
small: true,
|
|
3314
3315
|
value: internalHex.toUpperCase(),
|
|
3315
3316
|
onChange: handleHexInputChange,
|
|
@@ -3318,9 +3319,9 @@ const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
|
3318
3319
|
"data-testid": getSubDataTestId(dataTestId, 'flyout-hex-input')
|
|
3319
3320
|
})), /*#__PURE__*/React__default["default"].createElement(Label, {
|
|
3320
3321
|
htmlFor: hexInputId,
|
|
3321
|
-
className: styles$
|
|
3322
|
+
className: styles$u.inputLabel
|
|
3322
3323
|
}, "Hex")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3323
|
-
className: styles$
|
|
3324
|
+
className: styles$u.rgbContainer
|
|
3324
3325
|
}, /*#__PURE__*/React__default["default"].createElement(RGBInput
|
|
3325
3326
|
// if hex is incomplete, fill color channel value with 0
|
|
3326
3327
|
, {
|
|
@@ -3379,13 +3380,13 @@ const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
|
3379
3380
|
containerId: containerId,
|
|
3380
3381
|
dataTestId: dataTestId
|
|
3381
3382
|
}), isAlphaEnabled && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3382
|
-
className: classNames__default["default"](styles$
|
|
3383
|
+
className: classNames__default["default"](styles$u.hexInputContainer, styles$u.rgbInputContainer)
|
|
3383
3384
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3384
|
-
className: styles$
|
|
3385
|
+
className: styles$u.relativePositionContainer
|
|
3385
3386
|
}, /*#__PURE__*/React__default["default"].createElement(Input$1, {
|
|
3386
3387
|
type: "number",
|
|
3387
3388
|
small: true,
|
|
3388
|
-
className: styles$
|
|
3389
|
+
className: styles$u.alphaInput,
|
|
3389
3390
|
id: alphaInputId,
|
|
3390
3391
|
value: internalAlpha,
|
|
3391
3392
|
onChange: handleInternalAlphaChange,
|
|
@@ -3395,11 +3396,11 @@ const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
|
3395
3396
|
"aria-label": alphaInputAriaLabel,
|
|
3396
3397
|
"data-testid": getSubDataTestId(dataTestId, 'alpha-channel')
|
|
3397
3398
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3398
|
-
className: styles$
|
|
3399
|
+
className: styles$u.alphaInputDecoration,
|
|
3399
3400
|
"aria-hidden": true
|
|
3400
3401
|
}, "%")), /*#__PURE__*/React__default["default"].createElement(Label, {
|
|
3401
3402
|
htmlFor: alphaInputId,
|
|
3402
|
-
className: styles$
|
|
3403
|
+
className: styles$u.inputLabel
|
|
3403
3404
|
}, "A"))));
|
|
3404
3405
|
};
|
|
3405
3406
|
|
|
@@ -3430,7 +3431,7 @@ const ColorPickerFlyout = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3430
3431
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
3431
3432
|
role: "dialog",
|
|
3432
3433
|
"aria-label": flyoutAriaLabel,
|
|
3433
|
-
className: classNames__default["default"](className, styles$
|
|
3434
|
+
className: classNames__default["default"](className, styles$u.colorPickerFlyout),
|
|
3434
3435
|
ref: ref,
|
|
3435
3436
|
style: {
|
|
3436
3437
|
...style,
|
|
@@ -3443,21 +3444,21 @@ const ColorPickerFlyout = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3443
3444
|
containerId: containerId,
|
|
3444
3445
|
dataTestId: dataTestId
|
|
3445
3446
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3446
|
-
className: classNames__default["default"](styles$
|
|
3447
|
-
[styles$
|
|
3447
|
+
className: classNames__default["default"](styles$u.sliderGroup, {
|
|
3448
|
+
[styles$u.removeBottomMargin]: hideFlyoutInputs && !palette.length
|
|
3448
3449
|
})
|
|
3449
3450
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3450
|
-
className: styles$
|
|
3451
|
+
className: styles$u.sliderPreviewContainer,
|
|
3451
3452
|
"data-testid": getSubDataTestId(dataTestId, 'flyout-color-preview')
|
|
3452
3453
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3453
|
-
className: styles$
|
|
3454
|
+
className: styles$u.sliderPreview,
|
|
3454
3455
|
style: {
|
|
3455
3456
|
backgroundColor: color.hex
|
|
3456
3457
|
}
|
|
3457
3458
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3458
|
-
className: styles$
|
|
3459
|
+
className: styles$u.sliderPreviewAlphaBackground
|
|
3459
3460
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3460
|
-
className: styles$
|
|
3461
|
+
className: styles$u.sliderPreviewAlpha,
|
|
3461
3462
|
style: {
|
|
3462
3463
|
backgroundColor: isAlphaEnabled ? hexToRgbaString(color) : color.hex
|
|
3463
3464
|
}
|
|
@@ -3670,7 +3671,7 @@ function ColorPicker$1(_ref) {
|
|
|
3670
3671
|
}
|
|
3671
3672
|
}
|
|
3672
3673
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3673
|
-
className: styles$
|
|
3674
|
+
className: styles$u.colorPicker,
|
|
3674
3675
|
id: containerId,
|
|
3675
3676
|
role: "group",
|
|
3676
3677
|
"data-testid": dataTestId
|
|
@@ -3702,8 +3703,8 @@ function ColorPicker$1(_ref) {
|
|
|
3702
3703
|
}),
|
|
3703
3704
|
anchor: /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3704
3705
|
type: "button",
|
|
3705
|
-
className: classNames__default["default"](styles$
|
|
3706
|
-
[styles$
|
|
3706
|
+
className: classNames__default["default"](styles$u.colorPickerButton, {
|
|
3707
|
+
[styles$u.disabledButton]: isDisabled
|
|
3707
3708
|
}),
|
|
3708
3709
|
disabled: isDisabled,
|
|
3709
3710
|
onClick: handleAnchorClick,
|
|
@@ -3716,24 +3717,24 @@ function ColorPicker$1(_ref) {
|
|
|
3716
3717
|
ref: mergeRefs(anchorRef, externalButtonRef !== null && externalButtonRef !== void 0 ? externalButtonRef : null),
|
|
3717
3718
|
"data-testid": getSubDataTestId(dataTestId, 'anchor-button')
|
|
3718
3719
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3719
|
-
className: classNames__default["default"](styles$
|
|
3720
|
-
[styles$
|
|
3720
|
+
className: classNames__default["default"](styles$u.colorPickerButtonPreview, {
|
|
3721
|
+
[styles$u.disabledButton]: isDisabled
|
|
3721
3722
|
}),
|
|
3722
3723
|
style: {
|
|
3723
3724
|
backgroundColor: color.hex
|
|
3724
3725
|
}
|
|
3725
3726
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3726
|
-
className: styles$
|
|
3727
|
+
className: styles$u.alphaBackground
|
|
3727
3728
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3728
|
-
className: classNames__default["default"](styles$
|
|
3729
|
-
[styles$
|
|
3729
|
+
className: classNames__default["default"](styles$u.colorPickerButtonAlphaPreview, {
|
|
3730
|
+
[styles$u.disabledButton]: isDisabled
|
|
3730
3731
|
}),
|
|
3731
3732
|
style: {
|
|
3732
3733
|
backgroundColor: isAlphaEnabled ? hexToRgbaString(color) : color.hex
|
|
3733
3734
|
}
|
|
3734
3735
|
})), /*#__PURE__*/React__default["default"].createElement(icons_index.CaretDownIcon, {
|
|
3735
|
-
className: classNames__default["default"](styles$
|
|
3736
|
-
[styles$
|
|
3736
|
+
className: classNames__default["default"](styles$u.caretIcon, {
|
|
3737
|
+
[styles$u.disabledButton]: isDisabled
|
|
3737
3738
|
}),
|
|
3738
3739
|
size: "small"
|
|
3739
3740
|
})),
|
|
@@ -3744,14 +3745,14 @@ function ColorPicker$1(_ref) {
|
|
|
3744
3745
|
}
|
|
3745
3746
|
}]
|
|
3746
3747
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3747
|
-
className: styles$
|
|
3748
|
+
className: styles$u.relativePositionContainer
|
|
3748
3749
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3749
|
-
className: classNames__default["default"](styles$
|
|
3750
|
-
[styles$
|
|
3750
|
+
className: classNames__default["default"](styles$u.colorPickerInputDecoration, {
|
|
3751
|
+
[styles$u.disabledDecoration]: isDisabled
|
|
3751
3752
|
}),
|
|
3752
3753
|
"aria-hidden": true
|
|
3753
3754
|
}, "#"), /*#__PURE__*/React__default["default"].createElement(Input$1, {
|
|
3754
|
-
className: styles$
|
|
3755
|
+
className: styles$u.colorPickerInput,
|
|
3755
3756
|
"aria-label": inputAriaLabel,
|
|
3756
3757
|
value: inputHex.toUpperCase(),
|
|
3757
3758
|
onChange: handleInputHexChange,
|
|
@@ -3763,7 +3764,7 @@ function ColorPicker$1(_ref) {
|
|
|
3763
3764
|
}
|
|
3764
3765
|
|
|
3765
3766
|
var css_248z$w = "._hZ0fz{position:relative;display:inline-block}._DoMPa{padding-right:36px}._DoMPa._ha6t9{box-shadow:none!important;border:1px solid #898989!important}._7aDdD{margin-top:4px}._vaAKv{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._vaAKv:hover{background-color:rgba(50,54,58,.08)}._vaAKv:active{background-color:rgba(50,54,58,.11)}._vaAKv._vTqib{transform:rotate(-180deg)}._vaAKv._uwm7Y{opacity:.4}._lJfFF{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._uwm7Y{cursor:not-allowed}._uwm7Y:hover{background-color:transparent}";
|
|
3766
|
-
var styles$
|
|
3767
|
+
var styles$t = {"combobox":"_hZ0fz","comboboxInput":"_DoMPa","ignoreFocusStyle":"_ha6t9","labelledInput":"_7aDdD","comboboxIcon":"_vaAKv","open":"_vTqib","disabled":"_uwm7Y","comboboxEmpty":"_lJfFF"};
|
|
3767
3768
|
var stylesheet$w="._hZ0fz{position:relative;display:inline-block}._DoMPa{padding-right:36px}._DoMPa._ha6t9{box-shadow:none!important;border:1px solid #898989!important}._7aDdD{margin-top:4px}._vaAKv{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._vaAKv:hover{background-color:rgba(50,54,58,.08)}._vaAKv:active{background-color:rgba(50,54,58,.11)}._vaAKv._vTqib{transform:rotate(-180deg)}._vaAKv._uwm7Y{opacity:.4}._lJfFF{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._uwm7Y{cursor:not-allowed}._uwm7Y:hover{background-color:transparent}";
|
|
3768
3769
|
icons_index.styleInject(css_248z$w);
|
|
3769
3770
|
|
|
@@ -3820,9 +3821,9 @@ const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3820
3821
|
full: full,
|
|
3821
3822
|
autoComplete: autoComplete,
|
|
3822
3823
|
value: inputValue,
|
|
3823
|
-
className: classNames__default["default"](className, styles$
|
|
3824
|
-
[styles$
|
|
3825
|
-
[styles$
|
|
3824
|
+
className: classNames__default["default"](className, styles$t.comboboxInput, {
|
|
3825
|
+
[styles$t.labelledInput]: hasLabel,
|
|
3826
|
+
[styles$t.ignoreFocusStyle]: highlightedIndex !== -1
|
|
3826
3827
|
}),
|
|
3827
3828
|
disabled: externalDisabled === undefined ? disabled : externalDisabled,
|
|
3828
3829
|
invalid: externalInvalid === undefined ? isInvalid : externalInvalid,
|
|
@@ -3945,9 +3946,9 @@ const ComboboxIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3945
3946
|
} = useComboboxContext();
|
|
3946
3947
|
return /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, _extends__default["default"]({}, rest, {
|
|
3947
3948
|
size: size,
|
|
3948
|
-
className: classNames__default["default"](styles$
|
|
3949
|
-
[styles$
|
|
3950
|
-
[styles$
|
|
3949
|
+
className: classNames__default["default"](styles$t.comboboxIcon, className, {
|
|
3950
|
+
[styles$t.open]: isOpen,
|
|
3951
|
+
[styles$t.disabled]: disabled
|
|
3951
3952
|
}),
|
|
3952
3953
|
onClick: !disabled ? wrapEvent(onClick, () => {
|
|
3953
3954
|
if (inputRef.current === document.activeElement) {
|
|
@@ -4384,10 +4385,10 @@ const Combobox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
4384
4385
|
ariaLabelledby
|
|
4385
4386
|
}
|
|
4386
4387
|
}, /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
4387
|
-
className: classNames__default["default"](styles$
|
|
4388
|
+
className: classNames__default["default"](styles$t.combobox, className),
|
|
4388
4389
|
ref: ref
|
|
4389
4390
|
}), comboboxInput, /*#__PURE__*/React__default["default"].createElement(ComboboxIcon, null), /*#__PURE__*/React__default["default"].cloneElement(comboboxList, {}, filteredOptions.length === 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4390
|
-
className: styles$
|
|
4391
|
+
className: styles$t.comboboxEmpty,
|
|
4391
4392
|
id: noMatchesFoundContainerId
|
|
4392
4393
|
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
4393
4394
|
,
|
|
@@ -4398,12 +4399,12 @@ const Combobox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
4398
4399
|
});
|
|
4399
4400
|
|
|
4400
4401
|
var css_248z$v = "._E2GIe{grid-area:configPane;position:relative;height:100%}._vuJmA{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._4qVIz._ZJXIG ._vuJmA,._4qVIz:not(._P1Yh4) ._vuJmA{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._P1Yh4 ._vuJmA{width:0}._ZJXIG._P1Yh4 ._vuJmA{width:30px;cursor:pointer}._eVUlX ._vuJmA{border-right-color:#eee}._N5Rpk{height:100%;position:relative;width:292px}._4qVIz ._N5Rpk,._P1Yh4 ._N5Rpk{width:0}._ZJXIG._4qVIz ._N5Rpk,._ZJXIG._P1Yh4 ._N5Rpk{width:30px}._XhiCy ._N5Rpk{transition:width .5s}._Ka6Wn{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._P1Yh4 ._Ka6Wn{visibility:hidden}._XhiCy ._Ka6Wn{visibility:visible}._Ka6Wn ._XrvX4{width:252px;margin-left:20px}._aIUXR{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._LaAU4{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._LaAU4 *{font-weight:400;font-size:16px;margin:0}._Dhg74{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._P1Yh4 ._Dhg74{left:0}._ZJXIG._P1Yh4 ._Dhg74{left:30px}._Dhg74 ._cncQ4{width:4px;height:100%}._Dhg74:hover ._cncQ4,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._cncQ4{background-color:#9dc5ed}._Dhg74:hover ._kqMgw>span,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw>span{background-color:#0b6ed0;border-color:#0b6ed0}._Dhg74:hover ._kqMgw>span>svg,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw>span>svg{fill:#fff}._Dhg74:hover ._kqMgw:active>span,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw:active>span{background-color:#0854a1;border-color:#0854a1}._Dhg74:hover ._kqMgw:active>span>svg,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw:active>span>svg{fill:#fff}._Dhg74 ._kqMgw{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._Dhg74 ._kqMgw._r6PkM._r6PkM._r6PkM{opacity:1}._Dhg74 ._kqMgw._kkWEP._kkWEP._kkWEP{opacity:0}._Dhg74 ._kqMgw:active>span{background-color:#0854a1;border-color:#0854a1}._Dhg74 ._kqMgw:active>span>svg{fill:#fff}._Dhg74 ._kqMgw>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._Dhg74 ._kqMgw>span>svg{fill:#515559;border-radius:50%}._Dhg74:hover ._kqMgw,._P1Yh4 ._Dhg74 ._kqMgw,._vuJmA:hover+._Dhg74 ._kqMgw{opacity:1}._kqMgw.focus-visible,._kqMgw:focus-visible{opacity:1;border-color:#0a3f88}";
|
|
4401
|
-
var styles$
|
|
4402
|
+
var styles$s = {"paneContainer":"_E2GIe","paneContentContainer":"_vuJmA","unpinned":"_4qVIz","hidden":"_P1Yh4","preview":"_ZJXIG","openHidden":"_eVUlX","spacer":"_N5Rpk","transitioning":"_XhiCy","paneContent":"_Ka6Wn","paneContentInner":"_XrvX4","header":"_aIUXR","title":"_LaAU4","clickableArea":"_Dhg74","hoverBorder":"_cncQ4","toolbarPanelExpandCollapseButton":"_kqMgw","overrideShow":"_r6PkM","overrideHide":"_kkWEP"};
|
|
4402
4403
|
var stylesheet$v="._E2GIe{grid-area:configPane;position:relative;height:100%}._vuJmA{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._4qVIz._ZJXIG ._vuJmA,._4qVIz:not(._P1Yh4) ._vuJmA{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._P1Yh4 ._vuJmA{width:0}._ZJXIG._P1Yh4 ._vuJmA{width:30px;cursor:pointer}._eVUlX ._vuJmA{border-right-color:#eee}._N5Rpk{height:100%;position:relative;width:292px}._4qVIz ._N5Rpk,._P1Yh4 ._N5Rpk{width:0}._ZJXIG._4qVIz ._N5Rpk,._ZJXIG._P1Yh4 ._N5Rpk{width:30px}._XhiCy ._N5Rpk{transition:width .5s}._Ka6Wn{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._P1Yh4 ._Ka6Wn{visibility:hidden}._XhiCy ._Ka6Wn{visibility:visible}._Ka6Wn ._XrvX4{width:252px;margin-left:20px}._aIUXR{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._LaAU4{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._LaAU4 *{font-weight:400;font-size:16px;margin:0}._Dhg74{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._P1Yh4 ._Dhg74{left:0}._ZJXIG._P1Yh4 ._Dhg74{left:30px}._Dhg74 ._cncQ4{width:4px;height:100%}._Dhg74:hover ._cncQ4,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._cncQ4{background-color:#9dc5ed}._Dhg74:hover ._kqMgw>span,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw>span{background-color:#0b6ed0;border-color:#0b6ed0}._Dhg74:hover ._kqMgw>span>svg,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw>span>svg{fill:#fff}._Dhg74:hover ._kqMgw:active>span,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw:active>span{background-color:#0854a1;border-color:#0854a1}._Dhg74:hover ._kqMgw:active>span>svg,._ZJXIG._P1Yh4 ._vuJmA:hover+._Dhg74 ._kqMgw:active>span>svg{fill:#fff}._Dhg74 ._kqMgw{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._Dhg74 ._kqMgw._r6PkM._r6PkM._r6PkM{opacity:1}._Dhg74 ._kqMgw._kkWEP._kkWEP._kkWEP{opacity:0}._Dhg74 ._kqMgw:active>span{background-color:#0854a1;border-color:#0854a1}._Dhg74 ._kqMgw:active>span>svg{fill:#fff}._Dhg74 ._kqMgw>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._Dhg74 ._kqMgw>span>svg{fill:#515559;border-radius:50%}._Dhg74:hover ._kqMgw,._P1Yh4 ._Dhg74 ._kqMgw,._vuJmA:hover+._Dhg74 ._kqMgw{opacity:1}._kqMgw.focus-visible,._kqMgw:focus-visible{opacity:1;border-color:#0a3f88}";
|
|
4403
4404
|
icons_index.styleInject(css_248z$v);
|
|
4404
4405
|
|
|
4405
4406
|
var css_248z$u = "._X5ZnV{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._X5ZnV:focus{outline:none}._X5ZnV:hover:not(._quipx){background-color:rgba(50,54,58,.08)}._X5ZnV:active:not(._quipx){background-color:rgba(50,54,58,.11);stroke-width:2}._X5ZnV._quipx{cursor:not-allowed;fill:rgba(81,85,89,.6)}._X5ZnV.focus-visible,._X5ZnV:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4406
|
-
var
|
|
4407
|
+
var iconButtonStyles = {"button":"_X5ZnV","disabled":"_quipx"};
|
|
4407
4408
|
var stylesheet$u="._X5ZnV{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._X5ZnV:focus{outline:none}._X5ZnV:hover:not(._quipx){background-color:rgba(50,54,58,.08)}._X5ZnV:active:not(._quipx){background-color:rgba(50,54,58,.11);stroke-width:2}._X5ZnV._quipx{cursor:not-allowed;fill:rgba(81,85,89,.6)}._X5ZnV.focus-visible,._X5ZnV:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4408
4409
|
icons_index.styleInject(css_248z$u);
|
|
4409
4410
|
|
|
@@ -4422,8 +4423,8 @@ const IconButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
4422
4423
|
onKeyDown,
|
|
4423
4424
|
...rest
|
|
4424
4425
|
} = _ref;
|
|
4425
|
-
const classes = classNames__default["default"](className,
|
|
4426
|
-
[
|
|
4426
|
+
const classes = classNames__default["default"](className, iconButtonStyles.button, {
|
|
4427
|
+
[iconButtonStyles.disabled]: disabled
|
|
4427
4428
|
});
|
|
4428
4429
|
if (children.props.size) {
|
|
4429
4430
|
// eslint-disable-next-line no-console
|
|
@@ -4505,9 +4506,9 @@ const ExpandCollapseButton$2 = _ref => {
|
|
|
4505
4506
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
4506
4507
|
type: "button",
|
|
4507
4508
|
"aria-label": isOpen ? hidePanelLabel : showPanelLabel,
|
|
4508
|
-
className: classNames__default["default"](styles$
|
|
4509
|
-
[styles$
|
|
4510
|
-
[styles$
|
|
4509
|
+
className: classNames__default["default"](styles$s.toolbarPanelExpandCollapseButton, {
|
|
4510
|
+
[styles$s.overrideShow]: isTooltipVisible,
|
|
4511
|
+
[styles$s.overrideHide]: isHiddenByEscape
|
|
4511
4512
|
}),
|
|
4512
4513
|
"aria-expanded": isOpen,
|
|
4513
4514
|
"aria-controls": panelId,
|
|
@@ -4554,19 +4555,19 @@ const ConfigPane = _ref2 => {
|
|
|
4554
4555
|
const toggleOpen = () => setIsOpen(currentIsOpen => !currentIsOpen);
|
|
4555
4556
|
const [isContainerHoveredRef, isContainerHovered] = useIsHovered();
|
|
4556
4557
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4557
|
-
className: classNames__default["default"](styles$
|
|
4558
|
-
[styles$
|
|
4559
|
-
[styles$
|
|
4560
|
-
[styles$
|
|
4561
|
-
[styles$
|
|
4562
|
-
[styles$
|
|
4558
|
+
className: classNames__default["default"](styles$s.paneContainer, {
|
|
4559
|
+
[styles$s.hidden]: !isOpen,
|
|
4560
|
+
[styles$s.unpinned]: !isPinned,
|
|
4561
|
+
[styles$s.transitioning]: isTransitioning,
|
|
4562
|
+
[styles$s.preview]: shouldShowPanelPreview,
|
|
4563
|
+
[styles$s.openHidden]: hideOpenButton
|
|
4563
4564
|
}),
|
|
4564
4565
|
onTransitionEnd: () => setIsTransitioning(false),
|
|
4565
4566
|
ref: isContainerHoveredRef
|
|
4566
4567
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4567
|
-
className: styles$
|
|
4568
|
+
className: styles$s.spacer
|
|
4568
4569
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4569
|
-
className: styles$
|
|
4570
|
+
className: styles$s.paneContentContainer,
|
|
4570
4571
|
onClick: shouldShowPanelPreview && !isOpen ? toggleOpen : undefined
|
|
4571
4572
|
}, /*#__PURE__*/React__default["default"].createElement("aside", {
|
|
4572
4573
|
"aria-label": ariaLabel,
|
|
@@ -4574,16 +4575,16 @@ const ConfigPane = _ref2 => {
|
|
|
4574
4575
|
"aria-describedby": ariaDescribedBy,
|
|
4575
4576
|
"data-testid": dataTestId,
|
|
4576
4577
|
id: panelId,
|
|
4577
|
-
className: styles$
|
|
4578
|
+
className: styles$s.paneContent
|
|
4578
4579
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4579
|
-
className: styles$
|
|
4580
|
+
className: styles$s.paneContentInner
|
|
4580
4581
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4581
|
-
className: styles$
|
|
4582
|
+
className: styles$s.header
|
|
4582
4583
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4583
|
-
className: styles$
|
|
4584
|
+
className: styles$s.title,
|
|
4584
4585
|
"data-testid": getSubDataTestId(dataTestId, DATA_TESTID_SUFFIXES$1.TITLE)
|
|
4585
4586
|
}, title), !hidePinButton && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4586
|
-
className: styles$
|
|
4587
|
+
className: styles$s.pinButton
|
|
4587
4588
|
}, /*#__PURE__*/React__default["default"].createElement(Tooltip, {
|
|
4588
4589
|
content: isPinned ? unpinPanelLabel : pinPanelLabel,
|
|
4589
4590
|
delayMs: 500,
|
|
@@ -4594,7 +4595,7 @@ const ConfigPane = _ref2 => {
|
|
|
4594
4595
|
onClick: () => setIsPinned(currentIsPinned => !currentIsPinned),
|
|
4595
4596
|
"data-testid": getSubDataTestId(dataTestId, DATA_TESTID_SUFFIXES$1.PIN_UNPIN_BUTTON)
|
|
4596
4597
|
}, isPinned ? /*#__PURE__*/React__default["default"].createElement(icons_index.UnpinIcon, null) : /*#__PURE__*/React__default["default"].createElement(icons_index.PinIcon, null))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4597
|
-
className: styles$
|
|
4598
|
+
className: styles$s.body,
|
|
4598
4599
|
"data-testid": getSubDataTestId(dataTestId, DATA_TESTID_SUFFIXES$1.BODY)
|
|
4599
4600
|
}, children)))), !hideOpenButton &&
|
|
4600
4601
|
/*#__PURE__*/
|
|
@@ -4605,10 +4606,10 @@ const ConfigPane = _ref2 => {
|
|
|
4605
4606
|
*/
|
|
4606
4607
|
/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
|
|
4607
4608
|
React__default["default"].createElement("div", {
|
|
4608
|
-
className: styles$
|
|
4609
|
+
className: styles$s.clickableArea,
|
|
4609
4610
|
onClick: toggleOpen
|
|
4610
4611
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4611
|
-
className: styles$
|
|
4612
|
+
className: styles$s.hoverBorder
|
|
4612
4613
|
}), /*#__PURE__*/React__default["default"].createElement(ExpandCollapseButton$2, {
|
|
4613
4614
|
isOpen: isOpen,
|
|
4614
4615
|
onClick: toggleOpen,
|
|
@@ -4631,7 +4632,8 @@ const Divider = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4631
4632
|
} = _ref;
|
|
4632
4633
|
return /*#__PURE__*/React__default["default"].createElement("hr", _extends__default["default"]({
|
|
4633
4634
|
ref: ref,
|
|
4634
|
-
className: classNames__default["default"](className, styles$r.divider)
|
|
4635
|
+
className: classNames__default["default"](className, styles$r.divider),
|
|
4636
|
+
role: "presentation"
|
|
4635
4637
|
}, rest));
|
|
4636
4638
|
});
|
|
4637
4639
|
|
|
@@ -5558,11 +5560,11 @@ const VisualCheckbox = _ref => {
|
|
|
5558
5560
|
let {
|
|
5559
5561
|
className,
|
|
5560
5562
|
checked,
|
|
5561
|
-
disabled
|
|
5563
|
+
disabled = false
|
|
5562
5564
|
} = _ref;
|
|
5563
5565
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5564
5566
|
className: classNames__default["default"](className, styles$p.checkbox),
|
|
5565
|
-
"
|
|
5567
|
+
role: "presentation"
|
|
5566
5568
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5567
5569
|
className: classNames__default["default"](styles$p.input, {
|
|
5568
5570
|
[styles$p.checked]: checked,
|
|
@@ -7631,9 +7633,8 @@ const SelectMenu = /*#__PURE__*/React__default["default"].forwardRef(function Se
|
|
|
7631
7633
|
const Controls = function Controls(_ref) {
|
|
7632
7634
|
let {
|
|
7633
7635
|
handleNewLogicItem,
|
|
7634
|
-
level,
|
|
7635
7636
|
itemType,
|
|
7636
|
-
|
|
7637
|
+
parent,
|
|
7637
7638
|
itemIndex,
|
|
7638
7639
|
itemLevel,
|
|
7639
7640
|
itemId,
|
|
@@ -7649,11 +7650,14 @@ const Controls = function Controls(_ref) {
|
|
|
7649
7650
|
maxConditions,
|
|
7650
7651
|
controlsRef
|
|
7651
7652
|
} = useLogicEditorContext();
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7653
|
+
const canAddNewSet = React.useMemo(() => {
|
|
7654
|
+
// If "insert condition set below" is clicked on a logic item's control, it's added at the same level.
|
|
7655
|
+
// If "insert condition set below" is clicked on a logic set's control, it's added a level deeper.
|
|
7656
|
+
const levelOfNewSet = itemType === LOGIC_TYPE_CONDITION ? itemLevel : itemLevel + 1;
|
|
7657
|
+
return !fixedSet && levelOfNewSet <= maxNestedSets;
|
|
7658
|
+
}, [fixedSet, itemLevel, maxNestedSets, itemType]);
|
|
7659
|
+
const indexOfNewItem = React.useMemo(() => itemType === LOGIC_TYPE_SET ? 0 : itemIndex + 1, [itemType, itemIndex]);
|
|
7660
|
+
const menu = React.useMemo(() => /*#__PURE__*/React__default["default"].createElement(Menu, {
|
|
7657
7661
|
anchor: /*#__PURE__*/React__default["default"].createElement(IconButton$1, {
|
|
7658
7662
|
"aria-label": translations.conditionActions,
|
|
7659
7663
|
className: styles$i.controls,
|
|
@@ -7668,14 +7672,14 @@ const Controls = function Controls(_ref) {
|
|
|
7668
7672
|
}
|
|
7669
7673
|
}, !(fixedSet && maxConditions && numberOfSetItems >= maxConditions) && /*#__PURE__*/React__default["default"].createElement(MenuItem, {
|
|
7670
7674
|
value: "add-condition",
|
|
7671
|
-
onSelect: handleNewLogicItem(newCondition(),
|
|
7675
|
+
onSelect: () => handleNewLogicItem(newCondition(), indexOfNewItem)
|
|
7672
7676
|
}, /*#__PURE__*/React__default["default"].createElement(icons_index.AddItemIcon, {
|
|
7673
7677
|
"aria-hidden": "true"
|
|
7674
7678
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7675
7679
|
className: styles$i.controlMenuItem
|
|
7676
|
-
}, translations.insertConditionBelow)),
|
|
7680
|
+
}, translations.insertConditionBelow)), canAddNewSet && /*#__PURE__*/React__default["default"].createElement(MenuItem, {
|
|
7677
7681
|
value: "add-set",
|
|
7678
|
-
onSelect: handleNewLogicItem(newConditionSet(defaultSetValue),
|
|
7682
|
+
onSelect: () => handleNewLogicItem(newConditionSet(defaultSetValue), indexOfNewItem)
|
|
7679
7683
|
}, /*#__PURE__*/React__default["default"].createElement(icons_index.FilterIcon, {
|
|
7680
7684
|
"aria-hidden": "true"
|
|
7681
7685
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -7683,7 +7687,10 @@ const Controls = function Controls(_ref) {
|
|
|
7683
7687
|
}, translations.insertSetBelow)), (fixedSet && numberOfSetItems > 1 || !fixedSet && itemLevel > 0) && /*#__PURE__*/React__default["default"].createElement(MenuItem, {
|
|
7684
7688
|
value: "delete",
|
|
7685
7689
|
onSelect: e => {
|
|
7686
|
-
onDelete(
|
|
7690
|
+
onDelete({
|
|
7691
|
+
parent,
|
|
7692
|
+
index: itemIndex
|
|
7693
|
+
});
|
|
7687
7694
|
// We want to move focus to the previous control
|
|
7688
7695
|
// item when this one is deleted, so we need to
|
|
7689
7696
|
// prevent Menu's default focus behavior
|
|
@@ -7693,7 +7700,16 @@ const Controls = function Controls(_ref) {
|
|
|
7693
7700
|
"aria-hidden": "true"
|
|
7694
7701
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7695
7702
|
className: styles$i.controlMenuItem
|
|
7696
|
-
}, translations.delete)))
|
|
7703
|
+
}, translations.delete))), [
|
|
7704
|
+
// context
|
|
7705
|
+
translations, fixedSet, onDelete, defaultSetValue, maxConditions, controlsRef,
|
|
7706
|
+
// props
|
|
7707
|
+
handleNewLogicItem, parent, itemIndex, itemLevel, itemId, numberOfSetItems, dataTestId, canAddNewSet, indexOfNewItem]);
|
|
7708
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7709
|
+
className: classNames__default["default"]({
|
|
7710
|
+
[styles$i.conditionControlsContainer]: itemType === LOGIC_TYPE_CONDITION
|
|
7711
|
+
})
|
|
7712
|
+
}, menu);
|
|
7697
7713
|
};
|
|
7698
7714
|
|
|
7699
7715
|
const ConditionSet = function ConditionSet(_ref) {
|
|
@@ -7712,10 +7728,10 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
7712
7728
|
readOnly,
|
|
7713
7729
|
rootDataTestId
|
|
7714
7730
|
} = useLogicEditorContext();
|
|
7715
|
-
const position = {
|
|
7731
|
+
const position = React.useMemo(() => ({
|
|
7716
7732
|
parent,
|
|
7717
7733
|
index
|
|
7718
|
-
};
|
|
7734
|
+
}), [parent, index]);
|
|
7719
7735
|
const conditionRef = React__default["default"].useRef(null);
|
|
7720
7736
|
const lastConnectionRef = React__default["default"].useRef();
|
|
7721
7737
|
const lastItemRef = React__default["default"].useRef();
|
|
@@ -7744,12 +7760,12 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
7744
7760
|
}
|
|
7745
7761
|
useEventListener(window, 'resize', setupLastLine);
|
|
7746
7762
|
React__default["default"].useLayoutEffect(setupLastLine);
|
|
7747
|
-
const handleNewLogicItem = (item, newItemIndex) =>
|
|
7763
|
+
const handleNewLogicItem = React.useCallback((item, newItemIndex) => {
|
|
7748
7764
|
onNewLogicItem(item, {
|
|
7749
7765
|
parent: position,
|
|
7750
7766
|
index: newItemIndex
|
|
7751
7767
|
});
|
|
7752
|
-
};
|
|
7768
|
+
}, [position, onNewLogicItem]);
|
|
7753
7769
|
|
|
7754
7770
|
/**
|
|
7755
7771
|
* Returns a data-testid unique to the current position in the tree.
|
|
@@ -7770,13 +7786,12 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
7770
7786
|
}
|
|
7771
7787
|
return getSubDataTestId(rootDataTestId, "".concat(prefix, "-").concat(indices.join('-')));
|
|
7772
7788
|
}, [fixedSet, rootDataTestId]);
|
|
7773
|
-
function renderControls(itemType, itemPosition,
|
|
7789
|
+
function renderControls(itemType, itemPosition, itemLevel, numberOfSetItems, itemId) {
|
|
7774
7790
|
return /*#__PURE__*/React__default["default"].createElement(Controls, {
|
|
7775
7791
|
handleNewLogicItem: handleNewLogicItem,
|
|
7776
|
-
level: level,
|
|
7777
7792
|
itemType: itemType,
|
|
7778
|
-
|
|
7779
|
-
itemIndex:
|
|
7793
|
+
parent: itemPosition.parent,
|
|
7794
|
+
itemIndex: itemPosition.index,
|
|
7780
7795
|
itemLevel: itemLevel,
|
|
7781
7796
|
numberOfSetItems: numberOfSetItems,
|
|
7782
7797
|
itemId: itemId,
|
|
@@ -7812,7 +7827,7 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
7812
7827
|
position: conditionPosition,
|
|
7813
7828
|
condition: item,
|
|
7814
7829
|
firstFocusableElementRef: fixedSet && firstFocusableElementRef && i === 0 ? firstFocusableElementRef : undefined,
|
|
7815
|
-
conditionControls: !readOnly ? renderControls(LOGIC_TYPE_CONDITION, conditionPosition,
|
|
7830
|
+
conditionControls: !readOnly ? renderControls(LOGIC_TYPE_CONDITION, conditionPosition, level + 1, value.conditions.length, item.id) : undefined
|
|
7816
7831
|
}));
|
|
7817
7832
|
}
|
|
7818
7833
|
if (item.logicType === LOGIC_TYPE_SET) {
|
|
@@ -7854,7 +7869,7 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
7854
7869
|
}), /*#__PURE__*/React__default["default"].createElement(DropdownOption, {
|
|
7855
7870
|
value: SET_VALUE_ALL,
|
|
7856
7871
|
label: String(translations.all)
|
|
7857
|
-
}))), !readOnly && renderControls(LOGIC_TYPE_SET, position,
|
|
7872
|
+
}))), !readOnly && renderControls(LOGIC_TYPE_SET, position, level, value.conditions.length, value.id)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7858
7873
|
role: "group",
|
|
7859
7874
|
ref: conditionRef
|
|
7860
7875
|
}, renderSetChildren()));
|
|
@@ -7878,63 +7893,74 @@ const LogicEditor = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
7878
7893
|
const {
|
|
7879
7894
|
translate
|
|
7880
7895
|
} = useTranslation();
|
|
7881
|
-
const translations = {
|
|
7896
|
+
const translations = React.useMemo(() => ({
|
|
7882
7897
|
any: translate('logicEditor.any'),
|
|
7883
7898
|
all: translate('logicEditor.all'),
|
|
7884
7899
|
insertConditionBelow: translate('logicEditor.insertConditionBelow'),
|
|
7885
7900
|
insertSetBelow: translate('logicEditor.insertSetBelow'),
|
|
7886
7901
|
delete: translate('logicEditor.delete'),
|
|
7887
7902
|
conditionActions: translate('logicEditor.conditionActions')
|
|
7888
|
-
};
|
|
7889
|
-
const [state, setState] =
|
|
7903
|
+
}), [translate]);
|
|
7904
|
+
const [state, setState] = React.useState(constructValidDefaultState({
|
|
7890
7905
|
defaultValue,
|
|
7891
7906
|
defaultSetValue,
|
|
7892
7907
|
fixedSet,
|
|
7893
7908
|
maxNestedSets
|
|
7894
7909
|
}));
|
|
7895
7910
|
const classes = classNames__default["default"](className, styles$i.editor);
|
|
7896
|
-
|
|
7897
|
-
setState(
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
update(
|
|
7905
|
-
|
|
7911
|
+
const update = React.useCallback(setStateCallback => {
|
|
7912
|
+
setState(prevState => {
|
|
7913
|
+
const newState = setStateCallback(prevState);
|
|
7914
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newState);
|
|
7915
|
+
return newState;
|
|
7916
|
+
});
|
|
7917
|
+
}, [onChange]);
|
|
7918
|
+
const handleNewLogicItem = React.useCallback((item, position) => {
|
|
7919
|
+
update(prevState => {
|
|
7920
|
+
const newState = shallowCopy(prevState);
|
|
7921
|
+
const parent = getParentSet(newState, position);
|
|
7922
|
+
parent.conditions.splice(position.index, 0, item);
|
|
7923
|
+
return newState;
|
|
7924
|
+
});
|
|
7925
|
+
}, [update]);
|
|
7906
7926
|
const handleSetChange = (newSetValue, position) => {
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7927
|
+
update(prevState => {
|
|
7928
|
+
const rootState = shallowCopy(prevState);
|
|
7929
|
+
const parent = getParentSet(rootState, position);
|
|
7930
|
+
if (!position.parent) {
|
|
7931
|
+
// root set
|
|
7932
|
+
parent.value = newSetValue;
|
|
7933
|
+
} else {
|
|
7934
|
+
parent.conditions[position.index].value = newSetValue;
|
|
7935
|
+
}
|
|
7936
|
+
return rootState;
|
|
7937
|
+
});
|
|
7916
7938
|
};
|
|
7917
7939
|
const handleConditionChange = (newCondition, position) => {
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7940
|
+
update(prevState => {
|
|
7941
|
+
const newState = shallowCopy(prevState);
|
|
7942
|
+
const parent = getParentSet(newState, position);
|
|
7943
|
+
parent.conditions[position.index] = newCondition;
|
|
7944
|
+
return newState;
|
|
7945
|
+
});
|
|
7922
7946
|
};
|
|
7923
7947
|
const controlsRef = React.useRef({});
|
|
7924
|
-
const handleDelete = position => {
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7948
|
+
const handleDelete = React.useCallback(position => {
|
|
7949
|
+
update(prevState => {
|
|
7950
|
+
let previousItemId = getPreviousItemId(prevState, position);
|
|
7951
|
+
const newState = shallowCopy(prevState);
|
|
7952
|
+
const parent = getParentSet(newState, position);
|
|
7953
|
+
parent.conditions.splice(position.index, 1);
|
|
7954
|
+
|
|
7955
|
+
// If the last condition in a set was deleted, also delete the set.
|
|
7956
|
+
if (parent.conditions.length === 0) {
|
|
7957
|
+
previousItemId = getPreviousItemId(newState, position.parent);
|
|
7958
|
+
getParentSet(newState, position.parent).conditions.splice(position.parent.index, 1);
|
|
7959
|
+
}
|
|
7960
|
+
controlsRef.current[previousItemId].focus();
|
|
7961
|
+
return newState;
|
|
7962
|
+
});
|
|
7963
|
+
}, [update, controlsRef]);
|
|
7938
7964
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
7939
7965
|
role: "group",
|
|
7940
7966
|
className: classes,
|
|
@@ -12452,10 +12478,12 @@ exports.ToolbarTab = ToolbarTab;
|
|
|
12452
12478
|
exports.ToolbarTabs = ToolbarTabs;
|
|
12453
12479
|
exports.Tooltip = Tooltip;
|
|
12454
12480
|
exports.UIProvider = UIProvider;
|
|
12481
|
+
exports.VisualCheckbox = VisualCheckbox;
|
|
12455
12482
|
exports.buttonStyles = buttonStyles;
|
|
12456
12483
|
exports.concatIds = concatIds;
|
|
12457
12484
|
exports.createContextUtilities = createContextUtilities;
|
|
12458
12485
|
exports.getSubDataTestId = getSubDataTestId;
|
|
12486
|
+
exports.iconButtonStyles = iconButtonStyles;
|
|
12459
12487
|
exports.mergeRefs = mergeRefs;
|
|
12460
12488
|
exports.useBreakpoints = useBreakpoints;
|
|
12461
12489
|
exports.useChildIndex = useChildIndex;
|