@devtron-labs/devtron-fe-common-lib 0.0.53 → 0.0.54-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Common/Common.service.d.ts +2 -2
- package/dist/Common/CustomInput/CustomInput.d.ts +1 -1
- package/dist/Common/CustomInput/Types.d.ts +1 -0
- package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +2 -0
- package/dist/Common/Helper.d.ts +4 -0
- package/dist/Common/SearchBar/SearchBar.component.d.ts +39 -0
- package/dist/Common/SearchBar/index.d.ts +2 -0
- package/dist/Common/SearchBar/types.d.ts +35 -0
- package/dist/Common/Types.d.ts +15 -2
- package/dist/Common/index.d.ts +1 -0
- package/dist/index.js +263 -146
- package/package.json +1 -1
- package/src/Assets/Icon/ic-search.svg +6 -0
- package/src/Common/CustomInput/CustomInput.tsx +3 -2
- package/src/Common/CustomInput/Types.ts +1 -0
- package/src/Common/DebouncedSearch/DebouncedSearch.tsx +2 -0
- package/src/Common/Helper.tsx +15 -0
- package/src/Common/SearchBar/SearchBar.component.tsx +120 -0
- package/src/Common/SearchBar/index.ts +2 -0
- package/src/Common/SearchBar/searchBar.scss +31 -0
- package/src/Common/SearchBar/types.ts +36 -0
- package/src/Common/Types.ts +15 -2
- package/src/Common/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -752,18 +752,18 @@ function styleInject(css, ref) {
|
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
754
|
|
|
755
|
-
var css_248z$
|
|
756
|
-
styleInject(css_248z$
|
|
755
|
+
var css_248z$8 = ".empty-state {\n height: 100%;\n}\n.empty-state img {\n height: 40%;\n max-height: 200px;\n width: auto;\n max-width: 250px;\n}\n.empty-state svg {\n height: 40%;\n max-height: 200px;\n width: auto;\n}\n.empty-state h1,\n.empty-state h2,\n.empty-state h3,\n.empty-state h4,\n.empty-state h5,\n.empty-state h6 {\n color: var(--N900);\n}\n.empty-state .subtitle {\n font-size: 13px;\n font-weight: 400;\n text-align: center;\n line-height: 1.5;\n margin-bottom: 6px;\n}\n.empty-state .subtitle--text-start {\n text-align: start;\n}\n.empty-state .cta {\n height: 36px;\n}\n.empty-state p {\n text-align: center;\n font-size: 13px;\n color: var(--N700);\n}\n.empty-state strong {\n font-size: 16px;\n margin-bottom: 4px;\n color: var(--N900);\n font-weight: normal;\n}\n.empty-state .select-popup {\n height: min-content;\n max-height: 250px;\n overflow: auto;\n padding: 8px 0;\n}\n.empty-state .empty-state__loader {\n width: 34px;\n height: 34px;\n margin-bottom: 16px;\n}\n.empty-state .empty-state__loading-text {\n font-size: 12px;\n width: 200px;\n font-weight: normal;\n font-stretch: normal;\n font-style: normal;\n line-height: 1.5;\n letter-spacing: normal;\n text-align: center;\n color: var(--N900);\n}\n.empty-state .button__icon {\n width: 16px;\n height: 16px;\n margin-left: 8px;\n}";
|
|
756
|
+
styleInject(css_248z$8);
|
|
757
757
|
|
|
758
|
-
var _g$
|
|
759
|
-
function _extends$
|
|
758
|
+
var _g$7;
|
|
759
|
+
function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
|
|
760
760
|
var SvgIcProgressing = function SvgIcProgressing(props) {
|
|
761
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
761
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
762
762
|
xmlns: "http://www.w3.org/2000/svg",
|
|
763
763
|
viewBox: "0 0 24 24",
|
|
764
764
|
width: "1em",
|
|
765
765
|
height: "1em"
|
|
766
|
-
}, props), _g$
|
|
766
|
+
}, props), _g$7 || (_g$7 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
767
767
|
fill: "none"
|
|
768
768
|
}, /*#__PURE__*/React__namespace.createElement("animateTransform", {
|
|
769
769
|
attributeName: "transform",
|
|
@@ -810,8 +810,8 @@ EmptyState.Loading = Loading;
|
|
|
810
810
|
|
|
811
811
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
812
812
|
|
|
813
|
-
function _extends$
|
|
814
|
-
_extends$
|
|
813
|
+
function _extends$n() {
|
|
814
|
+
_extends$n = Object.assign || function (target) {
|
|
815
815
|
for (var i = 1; i < arguments.length; i++) {
|
|
816
816
|
var source = arguments[i];
|
|
817
817
|
|
|
@@ -825,7 +825,7 @@ function _extends$m() {
|
|
|
825
825
|
return target;
|
|
826
826
|
};
|
|
827
827
|
|
|
828
|
-
return _extends$
|
|
828
|
+
return _extends$n.apply(this, arguments);
|
|
829
829
|
}
|
|
830
830
|
|
|
831
831
|
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
@@ -1551,7 +1551,7 @@ function ProgressBar(_ref) {
|
|
|
1551
1551
|
isIn = _ref.isIn,
|
|
1552
1552
|
theme = _ref.theme;
|
|
1553
1553
|
|
|
1554
|
-
var style = _extends$
|
|
1554
|
+
var style = _extends$n({}, userStyle, {
|
|
1555
1555
|
animationDuration: delay + "ms",
|
|
1556
1556
|
animationPlayState: isRunning ? 'running' : 'paused',
|
|
1557
1557
|
opacity: hide ? 0 : 1
|
|
@@ -1828,9 +1828,9 @@ var ToastContainer = function ToastContainer(props) {
|
|
|
1828
1828
|
,
|
|
1829
1829
|
id: containerId
|
|
1830
1830
|
}, getToastToRender(function (position, toastList) {
|
|
1831
|
-
var containerStyle = !toastList.length ? _extends$
|
|
1831
|
+
var containerStyle = !toastList.length ? _extends$n({}, style, {
|
|
1832
1832
|
pointerEvents: 'none'
|
|
1833
|
-
}) : _extends$
|
|
1833
|
+
}) : _extends$n({}, style);
|
|
1834
1834
|
return React.createElement("div", {
|
|
1835
1835
|
className: getClassName(position),
|
|
1836
1836
|
style: containerStyle,
|
|
@@ -1937,7 +1937,7 @@ function dispatchToast(content, options) {
|
|
|
1937
1937
|
|
|
1938
1938
|
|
|
1939
1939
|
function mergeOptions(type, options) {
|
|
1940
|
-
return _extends$
|
|
1940
|
+
return _extends$n({}, options, {
|
|
1941
1941
|
type: options && options.type || type,
|
|
1942
1942
|
toastId: getToastId(options)
|
|
1943
1943
|
});
|
|
@@ -1954,7 +1954,7 @@ function toast(content, options) {
|
|
|
1954
1954
|
}
|
|
1955
1955
|
|
|
1956
1956
|
toast.loading = function (content, options) {
|
|
1957
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
1957
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$n({
|
|
1958
1958
|
isLoading: true,
|
|
1959
1959
|
autoClose: false,
|
|
1960
1960
|
closeOnClick: false,
|
|
@@ -1970,7 +1970,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1970
1970
|
var id;
|
|
1971
1971
|
|
|
1972
1972
|
if (pending) {
|
|
1973
|
-
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$
|
|
1973
|
+
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$n({}, options, pending));
|
|
1974
1974
|
}
|
|
1975
1975
|
|
|
1976
1976
|
var resetParams = {
|
|
@@ -1989,7 +1989,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1989
1989
|
return;
|
|
1990
1990
|
}
|
|
1991
1991
|
|
|
1992
|
-
var baseParams = _extends$
|
|
1992
|
+
var baseParams = _extends$n({
|
|
1993
1993
|
type: type
|
|
1994
1994
|
}, resetParams, options, {
|
|
1995
1995
|
data: result
|
|
@@ -2000,10 +2000,10 @@ function handlePromise(promise, _ref2, options) {
|
|
|
2000
2000
|
} : input; // if the id is set we know that it's an update
|
|
2001
2001
|
|
|
2002
2002
|
if (id) {
|
|
2003
|
-
toast.update(id, _extends$
|
|
2003
|
+
toast.update(id, _extends$n({}, baseParams, params));
|
|
2004
2004
|
} else {
|
|
2005
2005
|
// using toast.promise without loading
|
|
2006
|
-
toast(params.render, _extends$
|
|
2006
|
+
toast(params.render, _extends$n({}, baseParams, params));
|
|
2007
2007
|
}
|
|
2008
2008
|
|
|
2009
2009
|
return result;
|
|
@@ -2027,7 +2027,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
|
|
|
2027
2027
|
toast.warn = toast.warning;
|
|
2028
2028
|
|
|
2029
2029
|
toast.dark = function (content, options) {
|
|
2030
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
2030
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$n({
|
|
2031
2031
|
theme: 'dark'
|
|
2032
2032
|
}, options)));
|
|
2033
2033
|
};
|
|
@@ -2084,7 +2084,7 @@ toast.update = function (toastId, options) {
|
|
|
2084
2084
|
var oldOptions = toast.props,
|
|
2085
2085
|
oldContent = toast.content;
|
|
2086
2086
|
|
|
2087
|
-
var nextOptions = _extends$
|
|
2087
|
+
var nextOptions = _extends$n({}, oldOptions, options, {
|
|
2088
2088
|
toastId: options.toastId || toastId,
|
|
2089
2089
|
updateId: generateToastId()
|
|
2090
2090
|
});
|
|
@@ -11846,7 +11846,27 @@ function getLockedJSON(json, jsonPathArray) {
|
|
|
11846
11846
|
});
|
|
11847
11847
|
});
|
|
11848
11848
|
return resultJson['$'];
|
|
11849
|
-
}
|
|
11849
|
+
}
|
|
11850
|
+
/**
|
|
11851
|
+
* Returns a debounced variant of the function
|
|
11852
|
+
*/
|
|
11853
|
+
var debounce$2 = function (func, timeout) {
|
|
11854
|
+
if (timeout === void 0) { timeout = 500; }
|
|
11855
|
+
var timer;
|
|
11856
|
+
return function () {
|
|
11857
|
+
var args = [];
|
|
11858
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
11859
|
+
args[_i] = arguments[_i];
|
|
11860
|
+
}
|
|
11861
|
+
var context = this;
|
|
11862
|
+
if (timer)
|
|
11863
|
+
clearTimeout(timer);
|
|
11864
|
+
timer = setTimeout(function () {
|
|
11865
|
+
timer = null;
|
|
11866
|
+
func.apply(context, args);
|
|
11867
|
+
}, timeout);
|
|
11868
|
+
};
|
|
11869
|
+
};
|
|
11850
11870
|
|
|
11851
11871
|
function Progressing(_a) {
|
|
11852
11872
|
var pageLoader = _a.pageLoader, size = _a.size, theme = _a.theme, styles = _a.styles, fillColor = _a.fillColor;
|
|
@@ -11898,8 +11918,8 @@ var VisibleModal = /** @class */ (function (_super) {
|
|
|
11898
11918
|
return VisibleModal;
|
|
11899
11919
|
}(React.Component));
|
|
11900
11920
|
|
|
11901
|
-
var css_248z$
|
|
11902
|
-
styleInject(css_248z$
|
|
11921
|
+
var css_248z$7 = ".drawer {\n position: absolute;\n overflow: hidden;\n}\n.drawer.left, .drawer.right {\n top: 0;\n bottom: 0;\n width: 0;\n transition: width 200ms;\n}\n.drawer.left.show, .drawer.right.show {\n min-width: var(--minWidth);\n width: var(--width);\n max-width: var(--maxWidth);\n}\n.drawer.top, .drawer.bottom {\n left: 0;\n right: 0;\n height: 0;\n transition: height 200ms;\n}\n.drawer.top.show, .drawer.bottom.show {\n height: var(--height);\n}\n.drawer.right {\n right: 0;\n}\n.drawer.left {\n left: 0;\n}\n.drawer.top {\n top: 0;\n}\n.drawer.bottom {\n bottom: 0;\n}";
|
|
11922
|
+
styleInject(css_248z$7);
|
|
11903
11923
|
|
|
11904
11924
|
var Drawer = function (_a) {
|
|
11905
11925
|
var children = _a.children, position = _a.position, height = _a.height, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, parentClassName = _a.parentClassName, onEscape = _a.onEscape;
|
|
@@ -11974,9 +11994,9 @@ var Modal = function (_a) {
|
|
|
11974
11994
|
};
|
|
11975
11995
|
|
|
11976
11996
|
var _path$d;
|
|
11977
|
-
function _extends$
|
|
11997
|
+
function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
|
|
11978
11998
|
var SvgIcCross = function SvgIcCross(props) {
|
|
11979
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
11999
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
11980
12000
|
width: "1em",
|
|
11981
12001
|
height: "1em",
|
|
11982
12002
|
viewBox: "0 0 24 24",
|
|
@@ -16282,9 +16302,9 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
|
|
|
16282
16302
|
var Tippy = index;
|
|
16283
16303
|
|
|
16284
16304
|
var _path$c;
|
|
16285
|
-
function _extends$
|
|
16305
|
+
function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
|
|
16286
16306
|
var SvgIcHelp = function SvgIcHelp(props) {
|
|
16287
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16307
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
16288
16308
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16289
16309
|
width: "1em",
|
|
16290
16310
|
height: "1em",
|
|
@@ -16297,9 +16317,9 @@ var SvgIcHelp = function SvgIcHelp(props) {
|
|
|
16297
16317
|
};
|
|
16298
16318
|
|
|
16299
16319
|
var _path$b;
|
|
16300
|
-
function _extends$
|
|
16320
|
+
function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
16301
16321
|
var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
|
|
16302
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16322
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
16303
16323
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16304
16324
|
viewBox: "0 0 17 16",
|
|
16305
16325
|
width: "1em",
|
|
@@ -16311,8 +16331,8 @@ var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
|
|
|
16311
16331
|
})));
|
|
16312
16332
|
};
|
|
16313
16333
|
|
|
16314
|
-
var css_248z$
|
|
16315
|
-
styleInject(css_248z$
|
|
16334
|
+
var css_248z$6 = ".tippy-box[data-animation=shift-toward-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=top][data-state=hidden]{transform:translateY(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=bottom][data-state=hidden]{transform:translateY(5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=left][data-state=hidden]{transform:translateX(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=right][data-state=hidden]{transform:translateX(5px)}";
|
|
16335
|
+
styleInject(css_248z$6);
|
|
16316
16336
|
|
|
16317
16337
|
// This component will handle some of the new tippy designs and interactions
|
|
16318
16338
|
// So this can be updated to support further for new features or interactions
|
|
@@ -16357,9 +16377,9 @@ function TippyCustomized(props) {
|
|
|
16357
16377
|
}
|
|
16358
16378
|
|
|
16359
16379
|
var _path$a, _circle, _path2$1;
|
|
16360
|
-
function _extends$
|
|
16380
|
+
function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
16361
16381
|
var SvgInjectTag = function SvgInjectTag(props) {
|
|
16362
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16382
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
16363
16383
|
width: "1em",
|
|
16364
16384
|
height: "1em",
|
|
16365
16385
|
viewBox: "0 0 20 20",
|
|
@@ -16394,9 +16414,9 @@ function PropagateTagInfo(_a) {
|
|
|
16394
16414
|
}
|
|
16395
16415
|
|
|
16396
16416
|
var _path$9;
|
|
16397
|
-
function _extends$
|
|
16417
|
+
function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
16398
16418
|
var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
|
|
16399
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16419
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
16400
16420
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16401
16421
|
width: "1em",
|
|
16402
16422
|
height: "1em",
|
|
@@ -16636,9 +16656,9 @@ var TagDetails = function (_a) {
|
|
|
16636
16656
|
};
|
|
16637
16657
|
|
|
16638
16658
|
var _path$8;
|
|
16639
|
-
function _extends$
|
|
16659
|
+
function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
|
|
16640
16660
|
var SvgIcAdd = function SvgIcAdd(props) {
|
|
16641
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16661
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
16642
16662
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16643
16663
|
width: "1em",
|
|
16644
16664
|
height: "1em",
|
|
@@ -16773,8 +16793,8 @@ function ForceDeleteDialog(_a) {
|
|
|
16773
16793
|
return (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(DeleteDialog, __assign({ title: forceDeleteDialogTitle, delete: onClickDelete, closeDelete: closeDeleteModal, deletePrefix: "Force " }, { children: jsxRuntime.jsxs(DeleteDialog.Description, { children: [jsxRuntime.jsxs("p", __assign({ className: "mt-12 mb-12 p-8 dc__break-word dc__window-bg" }, { children: ["Error: ", forceDeleteDialogMessage] })), jsxRuntime.jsx("p", { children: "Do you want to force delete?" })] }) })) }));
|
|
16774
16794
|
}
|
|
16775
16795
|
|
|
16776
|
-
function _extends$
|
|
16777
|
-
_extends$
|
|
16796
|
+
function _extends$g() {
|
|
16797
|
+
_extends$g = Object.assign ? Object.assign.bind() : function (target) {
|
|
16778
16798
|
for (var i = 1; i < arguments.length; i++) {
|
|
16779
16799
|
var source = arguments[i];
|
|
16780
16800
|
for (var key in source) {
|
|
@@ -16785,7 +16805,7 @@ function _extends$f() {
|
|
|
16785
16805
|
}
|
|
16786
16806
|
return target;
|
|
16787
16807
|
};
|
|
16788
|
-
return _extends$
|
|
16808
|
+
return _extends$g.apply(this, arguments);
|
|
16789
16809
|
}
|
|
16790
16810
|
|
|
16791
16811
|
/*
|
|
@@ -20326,7 +20346,7 @@ var Menu = function Menu(props) {
|
|
|
20326
20346
|
getStyles = props.getStyles,
|
|
20327
20347
|
innerRef = props.innerRef,
|
|
20328
20348
|
innerProps = props.innerProps;
|
|
20329
|
-
return jsx("div", _extends$
|
|
20349
|
+
return jsx("div", _extends$g({
|
|
20330
20350
|
css: getStyles('menu', props),
|
|
20331
20351
|
className: cx({
|
|
20332
20352
|
menu: true
|
|
@@ -20358,7 +20378,7 @@ var MenuList$1 = function MenuList(props) {
|
|
|
20358
20378
|
innerProps = props.innerProps,
|
|
20359
20379
|
innerRef = props.innerRef,
|
|
20360
20380
|
isMulti = props.isMulti;
|
|
20361
|
-
return jsx("div", _extends$
|
|
20381
|
+
return jsx("div", _extends$g({
|
|
20362
20382
|
css: getStyles('menuList', props),
|
|
20363
20383
|
className: cx({
|
|
20364
20384
|
'menu-list': true,
|
|
@@ -20389,7 +20409,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
|
20389
20409
|
cx = props.cx,
|
|
20390
20410
|
getStyles = props.getStyles,
|
|
20391
20411
|
innerProps = props.innerProps;
|
|
20392
|
-
return jsx("div", _extends$
|
|
20412
|
+
return jsx("div", _extends$g({
|
|
20393
20413
|
css: getStyles('noOptionsMessage', props),
|
|
20394
20414
|
className: cx({
|
|
20395
20415
|
'menu-notice': true,
|
|
@@ -20406,7 +20426,7 @@ var LoadingMessage = function LoadingMessage(props) {
|
|
|
20406
20426
|
cx = props.cx,
|
|
20407
20427
|
getStyles = props.getStyles,
|
|
20408
20428
|
innerProps = props.innerProps;
|
|
20409
|
-
return jsx("div", _extends$
|
|
20429
|
+
return jsx("div", _extends$g({
|
|
20410
20430
|
css: getStyles('loadingMessage', props),
|
|
20411
20431
|
className: cx({
|
|
20412
20432
|
'menu-notice': true,
|
|
@@ -20494,7 +20514,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
|
|
|
20494
20514
|
rect: rect
|
|
20495
20515
|
}; // same wrapper element whether fixed or portalled
|
|
20496
20516
|
|
|
20497
|
-
var menuWrapper = jsx("div", _extends$
|
|
20517
|
+
var menuWrapper = jsx("div", _extends$g({
|
|
20498
20518
|
css: getStyles('menuPortal', state),
|
|
20499
20519
|
className: cx({
|
|
20500
20520
|
'menu-portal': true
|
|
@@ -20530,7 +20550,7 @@ var SelectContainer = function SelectContainer(props) {
|
|
|
20530
20550
|
innerProps = props.innerProps,
|
|
20531
20551
|
isDisabled = props.isDisabled,
|
|
20532
20552
|
isRtl = props.isRtl;
|
|
20533
|
-
return jsx("div", _extends$
|
|
20553
|
+
return jsx("div", _extends$g({
|
|
20534
20554
|
css: getStyles('container', props),
|
|
20535
20555
|
className: cx({
|
|
20536
20556
|
'--is-disabled': isDisabled,
|
|
@@ -20565,7 +20585,7 @@ var ValueContainer = function ValueContainer(props) {
|
|
|
20565
20585
|
isMulti = props.isMulti,
|
|
20566
20586
|
getStyles = props.getStyles,
|
|
20567
20587
|
hasValue = props.hasValue;
|
|
20568
|
-
return jsx("div", _extends$
|
|
20588
|
+
return jsx("div", _extends$g({
|
|
20569
20589
|
css: getStyles('valueContainer', props),
|
|
20570
20590
|
className: cx({
|
|
20571
20591
|
'value-container': true,
|
|
@@ -20591,7 +20611,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
|
20591
20611
|
cx = props.cx,
|
|
20592
20612
|
innerProps = props.innerProps,
|
|
20593
20613
|
getStyles = props.getStyles;
|
|
20594
|
-
return jsx("div", _extends$
|
|
20614
|
+
return jsx("div", _extends$g({
|
|
20595
20615
|
css: getStyles('indicatorsContainer', props),
|
|
20596
20616
|
className: cx({
|
|
20597
20617
|
indicators: true
|
|
@@ -20622,7 +20642,7 @@ var Svg = function Svg(_ref) {
|
|
|
20622
20642
|
var size = _ref.size,
|
|
20623
20643
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
20624
20644
|
|
|
20625
|
-
return jsx("svg", _extends$
|
|
20645
|
+
return jsx("svg", _extends$g({
|
|
20626
20646
|
height: size,
|
|
20627
20647
|
width: size,
|
|
20628
20648
|
viewBox: "0 0 20 20",
|
|
@@ -20633,14 +20653,14 @@ var Svg = function Svg(_ref) {
|
|
|
20633
20653
|
};
|
|
20634
20654
|
|
|
20635
20655
|
var CrossIcon = function CrossIcon(props) {
|
|
20636
|
-
return jsx(Svg, _extends$
|
|
20656
|
+
return jsx(Svg, _extends$g({
|
|
20637
20657
|
size: 20
|
|
20638
20658
|
}, props), jsx("path", {
|
|
20639
20659
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
20640
20660
|
}));
|
|
20641
20661
|
};
|
|
20642
20662
|
var DownChevron = function DownChevron(props) {
|
|
20643
|
-
return jsx(Svg, _extends$
|
|
20663
|
+
return jsx(Svg, _extends$g({
|
|
20644
20664
|
size: 20
|
|
20645
20665
|
}, props), jsx("path", {
|
|
20646
20666
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
@@ -20673,7 +20693,7 @@ var DropdownIndicator$1 = function DropdownIndicator(props) {
|
|
|
20673
20693
|
cx = props.cx,
|
|
20674
20694
|
getStyles = props.getStyles,
|
|
20675
20695
|
innerProps = props.innerProps;
|
|
20676
|
-
return jsx("div", _extends$
|
|
20696
|
+
return jsx("div", _extends$g({
|
|
20677
20697
|
css: getStyles('dropdownIndicator', props),
|
|
20678
20698
|
className: cx({
|
|
20679
20699
|
indicator: true,
|
|
@@ -20688,7 +20708,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
|
|
|
20688
20708
|
cx = props.cx,
|
|
20689
20709
|
getStyles = props.getStyles,
|
|
20690
20710
|
innerProps = props.innerProps;
|
|
20691
|
-
return jsx("div", _extends$
|
|
20711
|
+
return jsx("div", _extends$g({
|
|
20692
20712
|
css: getStyles('clearIndicator', props),
|
|
20693
20713
|
className: cx({
|
|
20694
20714
|
indicator: true,
|
|
@@ -20718,7 +20738,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
|
20718
20738
|
cx = props.cx,
|
|
20719
20739
|
getStyles = props.getStyles,
|
|
20720
20740
|
innerProps = props.innerProps;
|
|
20721
|
-
return jsx("span", _extends$
|
|
20741
|
+
return jsx("span", _extends$g({}, innerProps, {
|
|
20722
20742
|
css: getStyles('indicatorSeparator', props),
|
|
20723
20743
|
className: cx({
|
|
20724
20744
|
'indicator-separator': true
|
|
@@ -20773,7 +20793,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
20773
20793
|
getStyles = props.getStyles,
|
|
20774
20794
|
innerProps = props.innerProps,
|
|
20775
20795
|
isRtl = props.isRtl;
|
|
20776
|
-
return jsx("div", _extends$
|
|
20796
|
+
return jsx("div", _extends$g({
|
|
20777
20797
|
css: getStyles('loadingIndicator', props),
|
|
20778
20798
|
className: cx({
|
|
20779
20799
|
indicator: true,
|
|
@@ -20834,7 +20854,7 @@ var Control = function Control(props) {
|
|
|
20834
20854
|
innerRef = props.innerRef,
|
|
20835
20855
|
innerProps = props.innerProps,
|
|
20836
20856
|
menuIsOpen = props.menuIsOpen;
|
|
20837
|
-
return jsx("div", _extends$
|
|
20857
|
+
return jsx("div", _extends$g({
|
|
20838
20858
|
ref: innerRef,
|
|
20839
20859
|
css: getStyles('control', props),
|
|
20840
20860
|
className: cx({
|
|
@@ -20866,12 +20886,12 @@ var Group = function Group(props) {
|
|
|
20866
20886
|
label = props.label,
|
|
20867
20887
|
theme = props.theme,
|
|
20868
20888
|
selectProps = props.selectProps;
|
|
20869
|
-
return jsx("div", _extends$
|
|
20889
|
+
return jsx("div", _extends$g({
|
|
20870
20890
|
css: getStyles('group', props),
|
|
20871
20891
|
className: cx({
|
|
20872
20892
|
group: true
|
|
20873
20893
|
}, className)
|
|
20874
|
-
}, innerProps), jsx(Heading, _extends$
|
|
20894
|
+
}, innerProps), jsx(Heading, _extends$g({}, headingProps, {
|
|
20875
20895
|
selectProps: selectProps,
|
|
20876
20896
|
theme: theme,
|
|
20877
20897
|
getStyles: getStyles,
|
|
@@ -20903,7 +20923,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
20903
20923
|
_cleanCommonProps.data;
|
|
20904
20924
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
|
|
20905
20925
|
|
|
20906
|
-
return jsx("div", _extends$
|
|
20926
|
+
return jsx("div", _extends$g({
|
|
20907
20927
|
css: getStyles('groupHeading', props),
|
|
20908
20928
|
className: cx({
|
|
20909
20929
|
'group-heading': true
|
|
@@ -20979,7 +20999,7 @@ var Input = function Input(props) {
|
|
|
20979
20999
|
}, className),
|
|
20980
21000
|
css: getStyles('input', props),
|
|
20981
21001
|
"data-value": value || ''
|
|
20982
|
-
}, jsx("input", _extends$
|
|
21002
|
+
}, jsx("input", _extends$g({
|
|
20983
21003
|
className: cx({
|
|
20984
21004
|
input: true
|
|
20985
21005
|
}, inputClassName),
|
|
@@ -21049,7 +21069,7 @@ var MultiValueLabel = MultiValueGeneric;
|
|
|
21049
21069
|
function MultiValueRemove$1(_ref5) {
|
|
21050
21070
|
var children = _ref5.children,
|
|
21051
21071
|
innerProps = _ref5.innerProps;
|
|
21052
|
-
return jsx("div", _extends$
|
|
21072
|
+
return jsx("div", _extends$g({
|
|
21053
21073
|
role: "button"
|
|
21054
21074
|
}, innerProps), children || jsx(CrossIcon, {
|
|
21055
21075
|
size: 14
|
|
@@ -21138,7 +21158,7 @@ var Option$1 = function Option(props) {
|
|
|
21138
21158
|
isSelected = props.isSelected,
|
|
21139
21159
|
innerRef = props.innerRef,
|
|
21140
21160
|
innerProps = props.innerProps;
|
|
21141
|
-
return jsx("div", _extends$
|
|
21161
|
+
return jsx("div", _extends$g({
|
|
21142
21162
|
css: getStyles('option', props),
|
|
21143
21163
|
className: cx({
|
|
21144
21164
|
option: true,
|
|
@@ -21170,7 +21190,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
21170
21190
|
cx = props.cx,
|
|
21171
21191
|
getStyles = props.getStyles,
|
|
21172
21192
|
innerProps = props.innerProps;
|
|
21173
|
-
return jsx("div", _extends$
|
|
21193
|
+
return jsx("div", _extends$g({
|
|
21174
21194
|
css: getStyles('placeholder', props),
|
|
21175
21195
|
className: cx({
|
|
21176
21196
|
placeholder: true
|
|
@@ -21203,7 +21223,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
21203
21223
|
getStyles = props.getStyles,
|
|
21204
21224
|
isDisabled = props.isDisabled,
|
|
21205
21225
|
innerProps = props.innerProps;
|
|
21206
|
-
return jsx("div", _extends$
|
|
21226
|
+
return jsx("div", _extends$g({
|
|
21207
21227
|
css: getStyles('singleValue', props),
|
|
21208
21228
|
className: cx({
|
|
21209
21229
|
'single-value': true,
|
|
@@ -21451,7 +21471,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
21451
21471
|
};
|
|
21452
21472
|
|
|
21453
21473
|
var A11yText = function A11yText(props) {
|
|
21454
|
-
return jsx("span", _extends$
|
|
21474
|
+
return jsx("span", _extends$g({
|
|
21455
21475
|
css: _ref
|
|
21456
21476
|
}, props));
|
|
21457
21477
|
};
|
|
@@ -21987,7 +22007,7 @@ function DummyInput(_ref) {
|
|
|
21987
22007
|
var innerRef = _ref.innerRef,
|
|
21988
22008
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
21989
22009
|
|
|
21990
|
-
return jsx("input", _extends$
|
|
22010
|
+
return jsx("input", _extends$g({
|
|
21991
22011
|
ref: innerRef
|
|
21992
22012
|
}, props, {
|
|
21993
22013
|
css: /*#__PURE__*/css$2({
|
|
@@ -23622,7 +23642,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23622
23642
|
|
|
23623
23643
|
if (!isSearchable) {
|
|
23624
23644
|
// use a dummy input to maintain focus/blur functionality
|
|
23625
|
-
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$
|
|
23645
|
+
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$g({
|
|
23626
23646
|
id: id,
|
|
23627
23647
|
innerRef: this.getInputRef,
|
|
23628
23648
|
onBlur: this.onInputBlur,
|
|
@@ -23636,7 +23656,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23636
23656
|
}, ariaAttributes));
|
|
23637
23657
|
}
|
|
23638
23658
|
|
|
23639
|
-
return /*#__PURE__*/React__namespace.createElement(Input, _extends$
|
|
23659
|
+
return /*#__PURE__*/React__namespace.createElement(Input, _extends$g({}, commonProps, {
|
|
23640
23660
|
autoCapitalize: "none",
|
|
23641
23661
|
autoComplete: "off",
|
|
23642
23662
|
autoCorrect: "off",
|
|
@@ -23680,7 +23700,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23680
23700
|
isFocused = _this$state5.isFocused;
|
|
23681
23701
|
|
|
23682
23702
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
23683
|
-
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$
|
|
23703
|
+
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$g({}, commonProps, {
|
|
23684
23704
|
key: "placeholder",
|
|
23685
23705
|
isDisabled: isDisabled,
|
|
23686
23706
|
isFocused: isFocused,
|
|
@@ -23694,7 +23714,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23694
23714
|
return selectValue.map(function (opt, index) {
|
|
23695
23715
|
var isOptionFocused = opt === focusedValue;
|
|
23696
23716
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
23697
|
-
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$
|
|
23717
|
+
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$g({}, commonProps, {
|
|
23698
23718
|
components: {
|
|
23699
23719
|
Container: MultiValueContainer,
|
|
23700
23720
|
Label: MultiValueLabel,
|
|
@@ -23726,7 +23746,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23726
23746
|
}
|
|
23727
23747
|
|
|
23728
23748
|
var singleValue = selectValue[0];
|
|
23729
|
-
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$
|
|
23749
|
+
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$g({}, commonProps, {
|
|
23730
23750
|
data: singleValue,
|
|
23731
23751
|
isDisabled: isDisabled
|
|
23732
23752
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -23752,7 +23772,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23752
23772
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
23753
23773
|
'aria-hidden': 'true'
|
|
23754
23774
|
};
|
|
23755
|
-
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$
|
|
23775
|
+
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$g({}, commonProps, {
|
|
23756
23776
|
innerProps: innerProps,
|
|
23757
23777
|
isFocused: isFocused
|
|
23758
23778
|
}));
|
|
@@ -23772,7 +23792,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23772
23792
|
var innerProps = {
|
|
23773
23793
|
'aria-hidden': 'true'
|
|
23774
23794
|
};
|
|
23775
|
-
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$
|
|
23795
|
+
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$g({}, commonProps, {
|
|
23776
23796
|
innerProps: innerProps,
|
|
23777
23797
|
isDisabled: isDisabled,
|
|
23778
23798
|
isFocused: isFocused
|
|
@@ -23790,7 +23810,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23790
23810
|
var commonProps = this.commonProps;
|
|
23791
23811
|
var isDisabled = this.props.isDisabled;
|
|
23792
23812
|
var isFocused = this.state.isFocused;
|
|
23793
|
-
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$
|
|
23813
|
+
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$g({}, commonProps, {
|
|
23794
23814
|
isDisabled: isDisabled,
|
|
23795
23815
|
isFocused: isFocused
|
|
23796
23816
|
}));
|
|
@@ -23810,7 +23830,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23810
23830
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
23811
23831
|
'aria-hidden': 'true'
|
|
23812
23832
|
};
|
|
23813
|
-
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$
|
|
23833
|
+
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$g({}, commonProps, {
|
|
23814
23834
|
innerProps: innerProps,
|
|
23815
23835
|
isDisabled: isDisabled,
|
|
23816
23836
|
isFocused: isFocused
|
|
@@ -23873,7 +23893,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23873
23893
|
onMouseOver: onHover,
|
|
23874
23894
|
tabIndex: -1
|
|
23875
23895
|
};
|
|
23876
|
-
return /*#__PURE__*/React__namespace.createElement(Option, _extends$
|
|
23896
|
+
return /*#__PURE__*/React__namespace.createElement(Option, _extends$g({}, commonProps, {
|
|
23877
23897
|
innerProps: innerProps,
|
|
23878
23898
|
data: data,
|
|
23879
23899
|
isDisabled: isDisabled,
|
|
@@ -23897,7 +23917,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23897
23917
|
groupIndex = item.index;
|
|
23898
23918
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
23899
23919
|
var headingId = "".concat(groupId, "-heading");
|
|
23900
|
-
return /*#__PURE__*/React__namespace.createElement(Group, _extends$
|
|
23920
|
+
return /*#__PURE__*/React__namespace.createElement(Group, _extends$g({}, commonProps, {
|
|
23901
23921
|
key: groupId,
|
|
23902
23922
|
data: _data,
|
|
23903
23923
|
options: options,
|
|
@@ -23936,12 +23956,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23936
23956
|
menuPosition: menuPosition,
|
|
23937
23957
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
23938
23958
|
};
|
|
23939
|
-
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$
|
|
23959
|
+
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$g({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
23940
23960
|
var ref = _ref4.ref,
|
|
23941
23961
|
_ref4$placerProps = _ref4.placerProps,
|
|
23942
23962
|
placement = _ref4$placerProps.placement,
|
|
23943
23963
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
23944
|
-
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$
|
|
23964
|
+
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$g({}, commonProps, menuPlacementProps, {
|
|
23945
23965
|
innerRef: ref,
|
|
23946
23966
|
innerProps: {
|
|
23947
23967
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -23956,7 +23976,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23956
23976
|
onBottomArrive: onMenuScrollToBottom,
|
|
23957
23977
|
lockEnabled: menuShouldBlockScroll
|
|
23958
23978
|
}, function (scrollTargetRef) {
|
|
23959
|
-
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$
|
|
23979
|
+
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$g({}, commonProps, {
|
|
23960
23980
|
innerRef: function innerRef(instance) {
|
|
23961
23981
|
_this4.getMenuListRef(instance);
|
|
23962
23982
|
|
|
@@ -23971,7 +23991,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
23971
23991
|
// so we use the same component. the actual portalling logic is forked
|
|
23972
23992
|
// within the component based on `menuPosition`
|
|
23973
23993
|
|
|
23974
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$
|
|
23994
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$g({}, commonProps, {
|
|
23975
23995
|
appendTo: menuPortalTarget,
|
|
23976
23996
|
controlElement: this.controlRef,
|
|
23977
23997
|
menuPlacement: menuPlacement,
|
|
@@ -24036,7 +24056,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24036
24056
|
isFocused = _this$state6.isFocused,
|
|
24037
24057
|
selectValue = _this$state6.selectValue;
|
|
24038
24058
|
var focusableOptions = this.getFocusableOptions();
|
|
24039
|
-
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$
|
|
24059
|
+
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$g({}, commonProps, {
|
|
24040
24060
|
id: this.getElementId('live-region'),
|
|
24041
24061
|
ariaSelection: ariaSelection,
|
|
24042
24062
|
focusedOption: focusedOption,
|
|
@@ -24062,7 +24082,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24062
24082
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
24063
24083
|
var isFocused = this.state.isFocused;
|
|
24064
24084
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
24065
|
-
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$
|
|
24085
|
+
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$g({}, commonProps, {
|
|
24066
24086
|
className: className,
|
|
24067
24087
|
innerProps: {
|
|
24068
24088
|
id: id,
|
|
@@ -24070,7 +24090,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24070
24090
|
},
|
|
24071
24091
|
isDisabled: isDisabled,
|
|
24072
24092
|
isFocused: isFocused
|
|
24073
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$
|
|
24093
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$g({}, commonProps, {
|
|
24074
24094
|
innerRef: this.getControlRef,
|
|
24075
24095
|
innerProps: {
|
|
24076
24096
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -24079,9 +24099,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
24079
24099
|
isDisabled: isDisabled,
|
|
24080
24100
|
isFocused: isFocused,
|
|
24081
24101
|
menuIsOpen: menuIsOpen
|
|
24082
|
-
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$
|
|
24102
|
+
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$g({}, commonProps, {
|
|
24083
24103
|
isDisabled: isDisabled
|
|
24084
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$
|
|
24104
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$g({}, commonProps, {
|
|
24085
24105
|
isDisabled: isDisabled
|
|
24086
24106
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
24087
24107
|
}
|
|
@@ -24154,22 +24174,22 @@ Select$1.defaultProps = defaultProps;
|
|
|
24154
24174
|
|
|
24155
24175
|
var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
24156
24176
|
var baseSelectProps = useStateManager(props);
|
|
24157
|
-
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$
|
|
24177
|
+
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$g({
|
|
24158
24178
|
ref: ref
|
|
24159
24179
|
}, baseSelectProps));
|
|
24160
24180
|
});
|
|
24161
24181
|
|
|
24162
24182
|
var ReactSelect = StateManagedSelect;
|
|
24163
24183
|
|
|
24164
|
-
var _g$
|
|
24165
|
-
function _extends$
|
|
24184
|
+
var _g$6;
|
|
24185
|
+
function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
24166
24186
|
var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
24167
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24187
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
24168
24188
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24169
24189
|
viewBox: "0 0 28 28",
|
|
24170
24190
|
width: "1em",
|
|
24171
24191
|
height: "1em"
|
|
24172
|
-
}, props), _g$
|
|
24192
|
+
}, props), _g$6 || (_g$6 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24173
24193
|
fill: "none",
|
|
24174
24194
|
fillRule: "evenodd",
|
|
24175
24195
|
transform: "translate(2 2)"
|
|
@@ -24186,9 +24206,9 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
|
24186
24206
|
};
|
|
24187
24207
|
|
|
24188
24208
|
var _path$7;
|
|
24189
|
-
function _extends$
|
|
24209
|
+
function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
24190
24210
|
var SvgIcCheck = function SvgIcCheck(props) {
|
|
24191
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24211
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
24192
24212
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24193
24213
|
width: "1em",
|
|
24194
24214
|
height: "1em",
|
|
@@ -24204,15 +24224,15 @@ var SvgIcCheck = function SvgIcCheck(props) {
|
|
|
24204
24224
|
})));
|
|
24205
24225
|
};
|
|
24206
24226
|
|
|
24207
|
-
var _g$
|
|
24208
|
-
function _extends$
|
|
24227
|
+
var _g$5;
|
|
24228
|
+
function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
24209
24229
|
var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
|
|
24210
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24230
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
24211
24231
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24212
24232
|
width: "1em",
|
|
24213
24233
|
height: "1em",
|
|
24214
24234
|
viewBox: "0 0 20 21"
|
|
24215
|
-
}, props), _g$
|
|
24235
|
+
}, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24216
24236
|
fill: "none",
|
|
24217
24237
|
fillRule: "evenodd"
|
|
24218
24238
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -24272,8 +24292,8 @@ var CustomSelect = function (props) {
|
|
|
24272
24292
|
return jsxRuntime.jsx(ReactSelect, __assign({}, props));
|
|
24273
24293
|
};
|
|
24274
24294
|
|
|
24275
|
-
var css_248z$
|
|
24276
|
-
styleInject(css_248z$
|
|
24295
|
+
var css_248z$5 = ".info-bar-container .info_text .success {\n background-color: var(--G100);\n}\n.info-bar-container .warn {\n background: var(--Y100);\n border: solid var(--Y200);\n}\n.info-bar-container .warn .warning-icon path:nth-child(2) {\n fill: var(--Y700);\n}\n.info-bar-container .info_bar {\n background-color: var(--B100);\n border: 1px solid var(--B200);\n}\n.info-bar-container .error_bar {\n background-color: var(--R100);\n border: 1px solid var(--R200);\n}\n.info-bar-container .question-bar {\n background-color: var(--V100);\n border: 1px solid var(--V200);\n}";
|
|
24296
|
+
styleInject(css_248z$5);
|
|
24277
24297
|
|
|
24278
24298
|
function InfoColourBar(_a) {
|
|
24279
24299
|
var message = _a.message, classname = _a.classname, Icon = _a.Icon, iconClass = _a.iconClass, iconSize = _a.iconSize, renderActionButton = _a.renderActionButton, linkText = _a.linkText, redirectLink = _a.redirectLink, linkOnClick = _a.linkOnClick, linkClass = _a.linkClass, internalLink = _a.internalLink, styles = _a.styles;
|
|
@@ -24549,6 +24569,124 @@ var Checkbox$1 = /** @class */ (function (_super) {
|
|
|
24549
24569
|
return Checkbox;
|
|
24550
24570
|
}(React.Component));
|
|
24551
24571
|
|
|
24572
|
+
var _g$4;
|
|
24573
|
+
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
24574
|
+
var SvgIcSearch = function SvgIcSearch(props) {
|
|
24575
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
24576
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24577
|
+
viewBox: "0 0 24 24",
|
|
24578
|
+
width: "1em",
|
|
24579
|
+
height: "1em"
|
|
24580
|
+
}, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24581
|
+
fill: "none",
|
|
24582
|
+
fillRule: "evenodd"
|
|
24583
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
24584
|
+
d: "M0 0h24v24H0z"
|
|
24585
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
24586
|
+
fill: "#959BA1",
|
|
24587
|
+
d: "M10 2a8 8 0 0 1 6.32 12.905l5.044 5.045a1 1 0 1 1-1.414 1.414l-5.045-5.043A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z"
|
|
24588
|
+
}))));
|
|
24589
|
+
};
|
|
24590
|
+
|
|
24591
|
+
var _g$3;
|
|
24592
|
+
function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
24593
|
+
var SvgIcErrorCross = function SvgIcErrorCross(props) {
|
|
24594
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
24595
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24596
|
+
width: "1em",
|
|
24597
|
+
height: "1em",
|
|
24598
|
+
viewBox: "0 0 32 32"
|
|
24599
|
+
}, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24600
|
+
transform: "translate(2.667 2.667)",
|
|
24601
|
+
fill: "none",
|
|
24602
|
+
fillRule: "evenodd"
|
|
24603
|
+
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
24604
|
+
width: 26.667,
|
|
24605
|
+
height: 26.667,
|
|
24606
|
+
className: "ic-error-cross_svg__fill-color",
|
|
24607
|
+
fill: "#596168",
|
|
24608
|
+
rx: 13.333
|
|
24609
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
24610
|
+
fill: "#FFF",
|
|
24611
|
+
fillRule: "nonzero",
|
|
24612
|
+
d: "M8.62 8.62a1.332 1.332 0 0 1 1.885 0l2.828 2.827 2.829-2.828a1.334 1.334 0 0 1 1.777-.097l.108.097a1.333 1.333 0 0 1 0 1.886l-2.828 2.828 2.828 2.829c.486.486.519 1.254.098 1.777l-.098.108a1.332 1.332 0 0 1-1.885 0l-2.83-2.828-2.827 2.828a1.334 1.334 0 0 1-1.777.098l-.109-.098a1.333 1.333 0 0 1 0-1.885l2.828-2.83-2.828-2.827a1.334 1.334 0 0 1-.097-1.777z"
|
|
24613
|
+
}))));
|
|
24614
|
+
};
|
|
24615
|
+
|
|
24616
|
+
var css_248z$4 = ".search-bar:focus, .search-bar:focus-within {\n outline: none;\n border: solid 1px var(--B500);\n}\n.search-bar__input:focus, .search-bar__input:focus-visible {\n border: none;\n outline: none;\n}\n.search-bar__icon {\n z-index: 1;\n top: 50%;\n left: 8px;\n transform: translateY(-50%);\n}\n.search-bar__clear-button {\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n}";
|
|
24617
|
+
styleInject(css_248z$4);
|
|
24618
|
+
|
|
24619
|
+
/**
|
|
24620
|
+
* Generic search input component with support for enter based and debounced search
|
|
24621
|
+
* Note: The component is uncontrolled
|
|
24622
|
+
*
|
|
24623
|
+
* @example Usage with default debounced search
|
|
24624
|
+
* ```tsx
|
|
24625
|
+
* <SearchBar handleSearchChange={triggerSearchApi} shouldDebounce />
|
|
24626
|
+
* ```
|
|
24627
|
+
*
|
|
24628
|
+
* @example Initial search text
|
|
24629
|
+
* ```tsx
|
|
24630
|
+
* <SearchBar initialSearchText="Keyword" />
|
|
24631
|
+
* ```
|
|
24632
|
+
*
|
|
24633
|
+
* @example Custom width
|
|
24634
|
+
* ```tsx
|
|
24635
|
+
* <SearchBar containerClassName="w-300" />
|
|
24636
|
+
* ```
|
|
24637
|
+
*
|
|
24638
|
+
* @example Trigger search on enter key press
|
|
24639
|
+
* ```tsx
|
|
24640
|
+
* <SearchBar handleEnter={triggerSearchApi} />
|
|
24641
|
+
* ```
|
|
24642
|
+
*
|
|
24643
|
+
* @example Custom timeout for debounced search
|
|
24644
|
+
* ```tsx
|
|
24645
|
+
* <SearchBar handleSearchChange={triggerSearchApi} shouldDebounce debounceTimeout={500} />
|
|
24646
|
+
* ```
|
|
24647
|
+
*
|
|
24648
|
+
* @example Placeholder for the search
|
|
24649
|
+
* ```tsx
|
|
24650
|
+
* <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
|
|
24651
|
+
* ```
|
|
24652
|
+
*/
|
|
24653
|
+
var SearchBar = function (_a) {
|
|
24654
|
+
var _b = _a.initialSearchText, initialSearchText = _b === void 0 ? '' : _b, _c = _a.handleSearchChange, handleSearchChange = _c === void 0 ? function () { } : _c, _d = _a.handleEnter, handleEnter = _d === void 0 ? function () { } : _d, _e = _a.inputProps, inputProps = _e === void 0 ? {} : _e, containerClassName = _a.containerClassName, _f = _a.shouldDebounce, shouldDebounce = _f === void 0 ? false : _f, _g = _a.debounceTimeout, debounceTimeout = _g === void 0 ? 300 : _g;
|
|
24655
|
+
var _h = __read(React.useState(!!initialSearchText), 2), showClearButton = _h[0], setShowClearButton = _h[1];
|
|
24656
|
+
var inputRef = React.useRef();
|
|
24657
|
+
var debouncedSearchChange = React.useCallback(debounce$2(handleSearchChange, debounceTimeout), [
|
|
24658
|
+
handleSearchChange,
|
|
24659
|
+
debounceTimeout,
|
|
24660
|
+
]);
|
|
24661
|
+
var handleChange = function (e) {
|
|
24662
|
+
var value = e.target.value;
|
|
24663
|
+
setShowClearButton(!!value);
|
|
24664
|
+
if (shouldDebounce) {
|
|
24665
|
+
debouncedSearchChange(value);
|
|
24666
|
+
}
|
|
24667
|
+
else {
|
|
24668
|
+
handleSearchChange(value);
|
|
24669
|
+
}
|
|
24670
|
+
};
|
|
24671
|
+
var _applySearch = function (value) {
|
|
24672
|
+
handleSearchChange(value);
|
|
24673
|
+
handleEnter(value);
|
|
24674
|
+
};
|
|
24675
|
+
var handleKeyDown = function (e) {
|
|
24676
|
+
var key = e.key;
|
|
24677
|
+
if (key === 'Enter') {
|
|
24678
|
+
var inputTarget = e.target;
|
|
24679
|
+
var value = inputTarget.value.trim();
|
|
24680
|
+
_applySearch(value);
|
|
24681
|
+
}
|
|
24682
|
+
};
|
|
24683
|
+
var clearSearch = function () {
|
|
24684
|
+
inputRef.current.value = '';
|
|
24685
|
+
_applySearch('');
|
|
24686
|
+
};
|
|
24687
|
+
return (jsxRuntime.jsx("div", __assign({ className: containerClassName }, { children: jsxRuntime.jsxs("div", __assign({ className: "search-bar bcn-0 dc__block w-100 min-w-200 dc__position-rel en-2 bw-1 br-4 h-32" }, { children: [jsxRuntime.jsx(SvgIcSearch, { className: "search-bar__icon dc__position-abs icon-color-n6 icon-dim-18" }), jsxRuntime.jsx("input", __assign({ placeholder: "Search", "data-testid": "search-bar", type: "text" }, inputProps, { defaultValue: initialSearchText, className: "search-bar__input bcn-0 dc__position-abs w-100 h-100 br-4 dc__no-border pt-6 pr-10 pb-6 pl-30 fs-13 lh-20 fw-4 cn-9 placeholder-cn5 ".concat(showClearButton ? 'pr-30' : 'pr-10'), onChange: handleChange, onKeyDown: handleKeyDown, ref: inputRef })), showClearButton && (jsxRuntime.jsx("button", __assign({ className: "flex search-bar__clear-button dc__position-abs dc__transparent mt-0 mb-0 mr-5 ml-5", type: "button", onClick: clearSearch, "aria-label": "Clear search" }, { children: jsxRuntime.jsx(SvgIcErrorCross, { className: "icon-dim-18 icon-n4 dc__vertical-align-middle" }) })))] })) })));
|
|
24688
|
+
};
|
|
24689
|
+
|
|
24552
24690
|
var css_248z$3 = ".toggle__switch {\n position: relative;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.toggle__switch.disabled {\n cursor: not-allowed;\n}\n.toggle__switch.disabled .toggle__slider {\n cursor: not-allowed;\n}\n\n/* Hide default HTML checkbox */\n.toggle__switch input {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n/* The slider */\n.toggle__slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n transition: all 0.4s ease;\n}\n.toggle__slider.round {\n border-radius: 34px;\n}\n.toggle__slider.round:before {\n border-radius: 50%;\n}\n.toggle__slider:before {\n position: absolute;\n content: \"\";\n height: calc(100% - 8px);\n width: calc(50% - 4px);\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: all 0.4s ease;\n}\n.toggle__slider.with-icon {\n background-color: var(--N000) !important;\n}\n.toggle__slider.with-icon svg {\n position: absolute;\n content: \"\";\n top: -1px;\n left: -1px;\n background-color: var(--N300);\n transition: all 0.4s ease;\n}\n\ninput:checked + .toggle__slider {\n background-color: var(--color);\n}\ninput:checked + .toggle__slider:before {\n transform: translateX(100%);\n}\ninput:checked + .toggle__slider.with-icon svg {\n transform: translateX(100%);\n background-color: var(--color);\n}\n\ninput:focus + .toggle__slider {\n box-shadow: 0 0 1px var(--color);\n}";
|
|
24553
24691
|
styleInject(css_248z$3);
|
|
24554
24692
|
|
|
@@ -24684,15 +24822,15 @@ exports.ConsequenceAction = void 0;
|
|
|
24684
24822
|
ConsequenceAction["ALLOW_FOREVER"] = "ALLOW_FOREVER";
|
|
24685
24823
|
})(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
|
|
24686
24824
|
|
|
24687
|
-
var _g$
|
|
24688
|
-
function _extends$
|
|
24825
|
+
var _g$2;
|
|
24826
|
+
function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
24689
24827
|
var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
|
|
24690
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24828
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
24691
24829
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24692
24830
|
width: "1em",
|
|
24693
24831
|
height: "1em",
|
|
24694
24832
|
viewBox: "0 0 32 32"
|
|
24695
|
-
}, props), _g$
|
|
24833
|
+
}, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24696
24834
|
fill: "none",
|
|
24697
24835
|
fillRule: "evenodd"
|
|
24698
24836
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -24767,9 +24905,9 @@ function DeleteComponent(_a) {
|
|
|
24767
24905
|
}
|
|
24768
24906
|
|
|
24769
24907
|
var _path$6;
|
|
24770
|
-
function _extends$
|
|
24908
|
+
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
24771
24909
|
var SvgIcPencil = function SvgIcPencil(props) {
|
|
24772
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24910
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
24773
24911
|
width: "1em",
|
|
24774
24912
|
height: "1em",
|
|
24775
24913
|
viewBox: "0 0 20 20",
|
|
@@ -24785,9 +24923,9 @@ var SvgIcPencil = function SvgIcPencil(props) {
|
|
|
24785
24923
|
};
|
|
24786
24924
|
|
|
24787
24925
|
var _path$5, _path2, _path3;
|
|
24788
|
-
function _extends$
|
|
24926
|
+
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
24789
24927
|
var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
24790
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24928
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
24791
24929
|
width: "1em",
|
|
24792
24930
|
height: "1em",
|
|
24793
24931
|
viewBox: "0 0 12 12",
|
|
@@ -24812,9 +24950,9 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
|
24812
24950
|
};
|
|
24813
24951
|
|
|
24814
24952
|
var _path$4;
|
|
24815
|
-
function _extends$
|
|
24953
|
+
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
24816
24954
|
var SvgIcMinus = function SvgIcMinus(props) {
|
|
24817
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24955
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
24818
24956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24819
24957
|
width: "1em",
|
|
24820
24958
|
height: "1em",
|
|
@@ -24827,15 +24965,15 @@ var SvgIcMinus = function SvgIcMinus(props) {
|
|
|
24827
24965
|
})));
|
|
24828
24966
|
};
|
|
24829
24967
|
|
|
24830
|
-
var _g$
|
|
24831
|
-
function _extends$
|
|
24968
|
+
var _g$1;
|
|
24969
|
+
function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
|
24832
24970
|
var SvgIcWarning = function SvgIcWarning(props) {
|
|
24833
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24971
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
24834
24972
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24835
24973
|
width: "1em",
|
|
24836
24974
|
height: "1em",
|
|
24837
24975
|
viewBox: "0 0 32 32"
|
|
24838
|
-
}, props), _g$
|
|
24976
|
+
}, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24839
24977
|
fill: "none",
|
|
24840
24978
|
fillRule: "evenodd"
|
|
24841
24979
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -24849,15 +24987,15 @@ var SvgIcWarning = function SvgIcWarning(props) {
|
|
|
24849
24987
|
}))));
|
|
24850
24988
|
};
|
|
24851
24989
|
|
|
24852
|
-
var _g
|
|
24853
|
-
function _extends$
|
|
24990
|
+
var _g;
|
|
24991
|
+
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
24854
24992
|
var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
24855
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
24993
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
24856
24994
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24857
24995
|
width: "1em",
|
|
24858
24996
|
height: "1em",
|
|
24859
24997
|
viewBox: "0 0 20 20"
|
|
24860
|
-
}, props), _g
|
|
24998
|
+
}, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
24861
24999
|
fill: "none",
|
|
24862
25000
|
fillRule: "evenodd"
|
|
24863
25001
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -24870,9 +25008,9 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
|
24870
25008
|
};
|
|
24871
25009
|
|
|
24872
25010
|
var _path$3;
|
|
24873
|
-
function _extends$
|
|
25011
|
+
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
24874
25012
|
var SvgIcEnter = function SvgIcEnter(props) {
|
|
24875
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
25013
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
24876
25014
|
width: "1em",
|
|
24877
25015
|
height: "1em",
|
|
24878
25016
|
viewBox: "0 0 16 16",
|
|
@@ -25236,32 +25374,9 @@ function useDebouncedEffect(callback, delay, deps) {
|
|
|
25236
25374
|
}, __spreadArray([delay], __read(deps), false));
|
|
25237
25375
|
}
|
|
25238
25376
|
|
|
25239
|
-
var _g;
|
|
25240
|
-
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
25241
|
-
var SvgIcErrorCross = function SvgIcErrorCross(props) {
|
|
25242
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
25243
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
25244
|
-
width: "1em",
|
|
25245
|
-
height: "1em",
|
|
25246
|
-
viewBox: "0 0 32 32"
|
|
25247
|
-
}, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
25248
|
-
transform: "translate(2.667 2.667)",
|
|
25249
|
-
fill: "none",
|
|
25250
|
-
fillRule: "evenodd"
|
|
25251
|
-
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
25252
|
-
width: 26.667,
|
|
25253
|
-
height: 26.667,
|
|
25254
|
-
className: "ic-error-cross_svg__fill-color",
|
|
25255
|
-
fill: "#596168",
|
|
25256
|
-
rx: 13.333
|
|
25257
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
25258
|
-
fill: "#FFF",
|
|
25259
|
-
fillRule: "nonzero",
|
|
25260
|
-
d: "M8.62 8.62a1.332 1.332 0 0 1 1.885 0l2.828 2.827 2.829-2.828a1.334 1.334 0 0 1 1.777-.097l.108.097a1.333 1.333 0 0 1 0 1.886l-2.828 2.828 2.828 2.829c.486.486.519 1.254.098 1.777l-.098.108a1.332 1.332 0 0 1-1.885 0l-2.83-2.828-2.827 2.828a1.334 1.334 0 0 1-1.777.098l-.109-.098a1.333 1.333 0 0 1 0-1.885l2.828-2.83-2.828-2.827a1.334 1.334 0 0 1-.097-1.777z"
|
|
25261
|
-
}))));
|
|
25262
|
-
};
|
|
25263
|
-
|
|
25264
25377
|
/**
|
|
25378
|
+
* @deprecated Use `SearchBar` component instead.
|
|
25379
|
+
*
|
|
25265
25380
|
* @param onSearch - Callback function to be called on search
|
|
25266
25381
|
* @param Icon - (Optional) Icon to be shown before the input
|
|
25267
25382
|
* @param iconClass - (Optional) Class for the icon
|
|
@@ -28353,7 +28468,7 @@ var handleAddCD = function (_a) {
|
|
|
28353
28468
|
};
|
|
28354
28469
|
|
|
28355
28470
|
function CustomInput(_a) {
|
|
28356
|
-
var name = _a.name, value = _a.value, error = _a.error, onChange = _a.onChange, _b = _a.onFocus, onFocus = _b === void 0 ? function (e) { } : _b, label = _a.label, _c = _a.type, type = _c === void 0 ? 'text' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.labelClassName, labelClassName = _e === void 0 ? '' : _e, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.tabIndex, tabIndex = _g === void 0 ? 1 : _g, _h = _a.dataTestid, dataTestid = _h === void 0 ? '' : _h, _j = _a.isRequiredField, isRequiredField = _j === void 0 ? false : _j, _k = _a.autoFocus, autoFocus = _k === void 0 ? false : _k, _l = _a.rootClassName, rootClassName = _l === void 0 ? '' : _l, _m = _a.autoComplete, autoComplete = _m === void 0 ? 'off' : _m, _o = _a.helperText, helperText = _o === void 0 ? '' : _o, handleOnBlur = _a.handleOnBlur, _p = _a.readOnly, readOnly = _p === void 0 ? false : _p, _q = _a.noTrim, noTrim = _q === void 0 ? false : _q, ref = _a.ref, onKeyPress = _a.onKeyPress, defaultValue = _a.defaultValue, onKeyDown = _a.onKeyDown, required = _a.required, additionalErrorInfo = _a.additionalErrorInfo;
|
|
28471
|
+
var name = _a.name, value = _a.value, error = _a.error, onChange = _a.onChange, _b = _a.onFocus, onFocus = _b === void 0 ? function (e) { } : _b, label = _a.label, _c = _a.type, type = _c === void 0 ? 'text' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.labelClassName, labelClassName = _e === void 0 ? '' : _e, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.tabIndex, tabIndex = _g === void 0 ? 1 : _g, _h = _a.dataTestid, dataTestid = _h === void 0 ? '' : _h, _j = _a.isRequiredField, isRequiredField = _j === void 0 ? false : _j, _k = _a.autoFocus, autoFocus = _k === void 0 ? false : _k, _l = _a.rootClassName, rootClassName = _l === void 0 ? '' : _l, _m = _a.autoComplete, autoComplete = _m === void 0 ? 'off' : _m, _o = _a.helperText, helperText = _o === void 0 ? '' : _o, handleOnBlur = _a.handleOnBlur, _p = _a.readOnly, readOnly = _p === void 0 ? false : _p, _q = _a.noTrim, noTrim = _q === void 0 ? false : _q, ref = _a.ref, onKeyPress = _a.onKeyPress, defaultValue = _a.defaultValue, onKeyDown = _a.onKeyDown, required = _a.required, additionalErrorInfo = _a.additionalErrorInfo, _r = _a.inputWrapperClassName, inputWrapperClassName = _r === void 0 ? '' : _r;
|
|
28357
28472
|
function handleError(error) {
|
|
28358
28473
|
if (!Array.isArray(error)) {
|
|
28359
28474
|
return [error];
|
|
@@ -28402,7 +28517,7 @@ function CustomInput(_a) {
|
|
|
28402
28517
|
return (jsxRuntime.jsx("label", __assign({ className: "form__label ".concat(labelClassName), "data-testid": "label-".concat(dataTestid) }, { children: renderInputLabelConditionally() })));
|
|
28403
28518
|
}
|
|
28404
28519
|
};
|
|
28405
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "flex column left top" }, { children: [renderInputLabel(), jsxRuntime.jsx("input", { "data-testid": dataTestid, type: type, name: name, autoComplete: autoComplete, className: "form__input ".concat(rootClassName), onChange: function (e) {
|
|
28520
|
+
return (jsxRuntime.jsxs("div", __assign({ className: "flex column left top ".concat(inputWrapperClassName) }, { children: [renderInputLabel(), jsxRuntime.jsx("input", { "data-testid": dataTestid, type: type, name: name, autoComplete: autoComplete, className: "form__input ".concat(rootClassName), onChange: function (e) {
|
|
28406
28521
|
e.persist();
|
|
28407
28522
|
onChange(e);
|
|
28408
28523
|
}, onBlur: onBlur, onFocus: onFocus, placeholder: placeholder, value: value, disabled: disabled, tabIndex: tabIndex, autoFocus: autoFocus, readOnly: readOnly, ref: ref, onKeyPress: onKeyPress, defaultValue: defaultValue, onKeyDown: onKeyDown, required: required }), getInputError(), helperText && (jsxRuntime.jsxs("div", __assign({ className: "form__text-field-info" }, { children: [jsxRuntime.jsx(SvgIcInfoFilled, { className: "form__icon form__icon--info" }), jsxRuntime.jsx("p", __assign({ className: "sentence-case" }, { children: helperText }))] })))] })));
|
|
@@ -28571,6 +28686,7 @@ exports.RepositoryAction = RepositoryAction;
|
|
|
28571
28686
|
exports.ResizableTagTextArea = ResizableTagTextArea;
|
|
28572
28687
|
exports.ResizableTextarea = ResizableTextarea;
|
|
28573
28688
|
exports.ScanVulnerabilitiesTable = ScanVulnerabilitiesTable;
|
|
28689
|
+
exports.SearchBar = SearchBar;
|
|
28574
28690
|
exports.ServerError = ServerError;
|
|
28575
28691
|
exports.ServerErrors = ServerErrors;
|
|
28576
28692
|
exports.SingleSelectOption = SingleSelectOption;
|
|
@@ -28594,6 +28710,7 @@ exports.closeOnEscKeyPressed = closeOnEscKeyPressed;
|
|
|
28594
28710
|
exports.copyToClipboard = copyToClipboard;
|
|
28595
28711
|
exports.createGitCommitUrl = createGitCommitUrl;
|
|
28596
28712
|
exports.customStyles = customStyles;
|
|
28713
|
+
exports.debounce = debounce$2;
|
|
28597
28714
|
exports.extractImage = extractImage;
|
|
28598
28715
|
exports.fetchChartTemplateVersions = fetchChartTemplateVersions;
|
|
28599
28716
|
exports.genericCDMaterialsService = genericCDMaterialsService;
|