@kaizen/components 1.7.10 → 1.7.11
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/CHANGELOG.md +8 -0
- package/dist/cjs/future.js +1 -1
- package/dist/cjs/{index-05670f16.js → index-7f3aa247.js} +1 -1
- package/dist/cjs/{index-05670f16.js.map → index-7f3aa247.js.map} +1 -1
- package/dist/cjs/index.js +1229 -140
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/future.js +1 -1
- package/dist/esm/{index-8eb84ea0.js → index-cce2ecd8.js} +1 -1
- package/dist/esm/{index-8eb84ea0.js.map → index-cce2ecd8.js.map} +1 -1
- package/dist/esm/index.js +1229 -140
- package/dist/esm/index.js.map +1 -1
- package/package.json +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-7f3aa247.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var designTokens = require('@kaizen/design-tokens');
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
|
26
26
|
const ORIGIN_BASE_URL = "https://d1e7r7b0lb8p4d.cloudfront.net";
|
|
27
27
|
const assetUrl = (path) => [ORIGIN_BASE_URL, path].join("/");
|
|
28
28
|
|
|
29
|
-
var styles$
|
|
29
|
+
var styles$e = {"img":"Brand-module_img__uWvra"};
|
|
30
30
|
|
|
31
31
|
var Brand = function(_a) {
|
|
32
32
|
var variant = _a.variant, alt = _a.alt, _b = _a.reversed, reversed = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["variant", "alt", "reversed", "classNameOverride"]);
|
|
@@ -36,7 +36,7 @@ var Brand = function(_a) {
|
|
|
36
36
|
index.__assign({ className: classNameOverride }, restProps),
|
|
37
37
|
React.createElement("source", { srcSet: assetUrl("brand/".concat(variant, "-reversed.svg")), media: "(forced-colors: active) and (prefers-color-scheme: dark)" }),
|
|
38
38
|
React.createElement("source", { srcSet: assetUrl("brand/".concat(variant, "-default.svg")), media: "(forced-colors: active) and (prefers-color-scheme: light)" }),
|
|
39
|
-
React.createElement("img", { src: assetUrl("brand/".concat(variant).concat(brandTheme, ".svg")), alt, className: styles$
|
|
39
|
+
React.createElement("img", { src: assetUrl("brand/".concat(variant).concat(brandTheme, ".svg")), alt, className: styles$e.img })
|
|
40
40
|
);
|
|
41
41
|
};
|
|
42
42
|
Brand.displayName = "Brand";
|
|
@@ -3388,8 +3388,8 @@ var hideOthers = function (originalTarget, parentNode, markerName) {
|
|
|
3388
3388
|
};
|
|
3389
3389
|
|
|
3390
3390
|
var Style = styleSingleton();
|
|
3391
|
-
var styles$
|
|
3392
|
-
var InteractivityDisabler = function () { return React__namespace.createElement(Style, { styles: styles$
|
|
3391
|
+
var styles$d = "\n [" + focusHiddenMarker + "] {\n pointer-events: none !important;\n }\n";
|
|
3392
|
+
var InteractivityDisabler = function () { return React__namespace.createElement(Style, { styles: styles$d }); };
|
|
3393
3393
|
|
|
3394
3394
|
var extractRef = function (ref) {
|
|
3395
3395
|
return 'current' in ref ? ref.current : ref;
|
|
@@ -36870,7 +36870,7 @@ var esm = /*#__PURE__*/Object.freeze({
|
|
|
36870
36870
|
usePopper: usePopper
|
|
36871
36871
|
});
|
|
36872
36872
|
|
|
36873
|
-
var styles$
|
|
36873
|
+
var styles$c = {"filterPopover":"FilterPopover-module_filterPopover__OgOEM"};
|
|
36874
36874
|
|
|
36875
36875
|
var FilterPopover = function(_a) {
|
|
36876
36876
|
var children = _a.children, referenceElement = _a.referenceElement, popperOptions = _a.popperOptions, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "referenceElement", "popperOptions", "classNameOverride"]);
|
|
@@ -36883,7 +36883,7 @@ var FilterPopover = function(_a) {
|
|
|
36883
36883
|
}
|
|
36884
36884
|
}
|
|
36885
36885
|
], placement: "bottom-start", strategy: "fixed" }, popperOptions)), popperStyles = _c.styles, popperAttributes = _c.attributes;
|
|
36886
|
-
return React.createElement("div", index.__assign({ ref: setPopperElement, style: popperStyles === null || popperStyles === void 0 ? void 0 : popperStyles.popper }, popperAttributes === null || popperAttributes === void 0 ? void 0 : popperAttributes.popper, { className: index.classNames(styles$
|
|
36886
|
+
return React.createElement("div", index.__assign({ ref: setPopperElement, style: popperStyles === null || popperStyles === void 0 ? void 0 : popperStyles.popper }, popperAttributes === null || popperAttributes === void 0 ? void 0 : popperAttributes.popper, { className: index.classNames(styles$c.filterPopover, classNameOverride), role: "dialog", "aria-modal": "true" }, restProps), children);
|
|
36887
36887
|
};
|
|
36888
36888
|
FilterPopover.displayName = "FilterPopover";
|
|
36889
36889
|
|
|
@@ -36928,31 +36928,31 @@ var Filter = function(_a) {
|
|
|
36928
36928
|
};
|
|
36929
36929
|
Filter.displayName = "Filter";
|
|
36930
36930
|
|
|
36931
|
-
var styles$
|
|
36931
|
+
var styles$b = {"filterContents":"FilterContents-module_filterContents__uNUpd"};
|
|
36932
36932
|
|
|
36933
36933
|
var FilterContents = function(_a) {
|
|
36934
36934
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
36935
|
-
return React.createElement("div", index.__assign({ className: index.classNames(styles$
|
|
36935
|
+
return React.createElement("div", index.__assign({ className: index.classNames(styles$b.filterContents, classNameOverride) }, restProps), children);
|
|
36936
36936
|
};
|
|
36937
36937
|
FilterContents.displayName = "FilterContents";
|
|
36938
36938
|
|
|
36939
|
-
var yellow
|
|
36940
|
-
var reset
|
|
36941
|
-
var warn
|
|
36942
|
-
console.warn("".concat(yellow
|
|
36939
|
+
var yellow = "\x1B[33m ";
|
|
36940
|
+
var reset = "\x1B[0m ";
|
|
36941
|
+
var warn = function(message) {
|
|
36942
|
+
console.warn("".concat(yellow, "\nKAIZEN WARNING:\n").concat(singleLine(message)).concat(reset, "\n"));
|
|
36943
36943
|
};
|
|
36944
|
-
var singleLine
|
|
36944
|
+
var singleLine = function(message) {
|
|
36945
36945
|
return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
36946
36946
|
};
|
|
36947
36947
|
|
|
36948
|
-
var styles$
|
|
36948
|
+
var styles$a = {"icon":"SVG-module_icon__FE6iP","inheritSize":"SVG-module_inheritSize__wiKMe","interactiveIconWrapper":"SVG-module_interactiveIconWrapper__ACcob","disabled":"SVG-module_disabled__WB5BU","hover":"SVG-module_hover__QivVO","active":"SVG-module_active__R9jic","reversedInteractiveIconWrapper":"SVG-module_reversedInteractiveIconWrapper__hTsnf SVG-module_interactiveIconWrapper__ACcob"};
|
|
36949
36949
|
|
|
36950
36950
|
var SVG = function(_a) {
|
|
36951
36951
|
var _b, _c;
|
|
36952
36952
|
var _d = _a.inheritSize, inheritSize = _d === void 0 ? false : _d, _e = _a.role, role = _e === void 0 ? "img" : _e, _f = _a.title, title = _f === void 0 ? "" : _f, _g = _a.desc, desc = _g === void 0 ? "" : _g, _h = _a.viewBox, viewBox = _h === void 0 ? "0 0 20 20" : _h, classNameOverride = _a.classNameOverride, children = _a.children, props = index.__rest(_a, ["inheritSize", "role", "title", "desc", "viewBox", "classNameOverride", "children"]);
|
|
36953
36953
|
var isMeaningfulImg = role === "img";
|
|
36954
36954
|
if (isMeaningfulImg && !title) {
|
|
36955
|
-
warn
|
|
36955
|
+
warn(`
|
|
36956
36956
|
Icon with role "img" missing a title attribute.
|
|
36957
36957
|
|
|
36958
36958
|
Assistive technologies that enable vision-impaired users to read web pages
|
|
@@ -36977,7 +36977,7 @@ var SVG = function(_a) {
|
|
|
36977
36977
|
return React.createElement(
|
|
36978
36978
|
"svg",
|
|
36979
36979
|
index.__assign({
|
|
36980
|
-
className: index.classNames(styles$
|
|
36980
|
+
className: index.classNames(styles$a.icon, classNameOverride, (_c = {}, _c[styles$a.inheritSize] = inheritSize, _c)),
|
|
36981
36981
|
viewBox,
|
|
36982
36982
|
// Work around IE11 making all SVGs focusable.
|
|
36983
36983
|
// See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
|
|
@@ -37046,15 +37046,15 @@ var isRefObject = function(ref) {
|
|
|
37046
37046
|
return ref !== null && "current" in ref;
|
|
37047
37047
|
};
|
|
37048
37048
|
|
|
37049
|
-
var styles$
|
|
37049
|
+
var styles$9 = {"filterButtonBase":"FilterButtonBase-module_filterButtonBase__I8mV-"};
|
|
37050
37050
|
|
|
37051
37051
|
var FilterButtonBase = React.forwardRef(function(_a, ref) {
|
|
37052
37052
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
37053
|
-
return React.createElement("button", index.__assign({ ref, className: index.classNames(styles$
|
|
37053
|
+
return React.createElement("button", index.__assign({ ref, className: index.classNames(styles$9.filterButtonBase, classNameOverride) }, restProps), children);
|
|
37054
37054
|
});
|
|
37055
37055
|
FilterButtonBase.displayName = "FilterButtonBase";
|
|
37056
37056
|
|
|
37057
|
-
var styles$
|
|
37057
|
+
var styles$8 = {"filterButton":"FilterButton-module_filterButton__Q2dMX","labelContainer":"FilterButton-module_labelContainer__5G-MD","hasSelectedValues":"FilterButton-module_hasSelectedValues__dyQkL","labelSeparator":"FilterButton-module_labelSeparator__xrkAx"};
|
|
37058
37058
|
|
|
37059
37059
|
var FilterButton = React.forwardRef(function(_a, ref) {
|
|
37060
37060
|
var label = _a.label, selectedValue = _a.selectedValue, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["label", "selectedValue", "isOpen", "classNameOverride"]);
|
|
@@ -37063,15 +37063,15 @@ var FilterButton = React.forwardRef(function(_a, ref) {
|
|
|
37063
37063
|
var selectedValuesLabel = selectedValue;
|
|
37064
37064
|
return React.createElement(
|
|
37065
37065
|
FilterButtonBase,
|
|
37066
|
-
index.__assign({ ref: triggerRef, classNameOverride: index.classNames(styles$
|
|
37067
|
-
React.createElement("span", { className: styles$
|
|
37066
|
+
index.__assign({ ref: triggerRef, classNameOverride: index.classNames(styles$8.filterButton, classNameOverride), "aria-haspopup": "true", "aria-expanded": isOpen }, restProps),
|
|
37067
|
+
React.createElement("span", { className: styles$8.labelContainer }, selectedValuesLabel ? React.createElement(
|
|
37068
37068
|
React.Fragment,
|
|
37069
37069
|
null,
|
|
37070
37070
|
React.createElement(
|
|
37071
37071
|
"span",
|
|
37072
|
-
{ className: styles$
|
|
37072
|
+
{ className: styles$8.hasSelectedValues },
|
|
37073
37073
|
React.createElement("span", null, label),
|
|
37074
|
-
React.createElement("span", { className: styles$
|
|
37074
|
+
React.createElement("span", { className: styles$8.labelSeparator }, ":")
|
|
37075
37075
|
),
|
|
37076
37076
|
React.createElement("span", null, selectedValuesLabel)
|
|
37077
37077
|
) : label),
|
|
@@ -37086,7 +37086,7 @@ var Tooltip$1 = {};
|
|
|
37086
37086
|
|
|
37087
37087
|
var Tooltip = {};
|
|
37088
37088
|
|
|
37089
|
-
var require$$3 = /*@__PURE__*/getAugmentedNamespace(esm);
|
|
37089
|
+
var require$$3$2 = /*@__PURE__*/getAugmentedNamespace(esm);
|
|
37090
37090
|
|
|
37091
37091
|
var AppearanceAnim = {};
|
|
37092
37092
|
|
|
@@ -37099,7 +37099,7 @@ var index_module = /*#__PURE__*/Object.freeze({
|
|
|
37099
37099
|
useThrottledCallback: f$1
|
|
37100
37100
|
});
|
|
37101
37101
|
|
|
37102
|
-
var require$$1$
|
|
37102
|
+
var require$$1$5 = /*@__PURE__*/getAugmentedNamespace(index_module);
|
|
37103
37103
|
|
|
37104
37104
|
(function(exports) {
|
|
37105
37105
|
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
@@ -37161,7 +37161,7 @@ var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(index_module);
|
|
|
37161
37161
|
exports.__esModule = true;
|
|
37162
37162
|
exports.useAnimation = exports.AnimationProvider = exports.AnimationContext = void 0;
|
|
37163
37163
|
var react_1 = __importStar(React);
|
|
37164
|
-
var use_debounce_1 = require$$1$
|
|
37164
|
+
var use_debounce_1 = require$$1$5;
|
|
37165
37165
|
var ANIM_DURATION_MS = 400;
|
|
37166
37166
|
exports.AnimationContext = react_1["default"].createContext({
|
|
37167
37167
|
isVisible: false,
|
|
@@ -37821,12 +37821,12 @@ var esmBrowser = /*#__PURE__*/Object.freeze({
|
|
|
37821
37821
|
version: version
|
|
37822
37822
|
});
|
|
37823
37823
|
|
|
37824
|
-
var require$$1 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
|
|
37824
|
+
var require$$1$4 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
|
|
37825
37825
|
|
|
37826
37826
|
useUuid$1.__esModule = true;
|
|
37827
37827
|
useUuid$1.useUuid = void 0;
|
|
37828
37828
|
var react_1 = React;
|
|
37829
|
-
var uuid_1 = require$$1;
|
|
37829
|
+
var uuid_1 = require$$1$4;
|
|
37830
37830
|
var useUuid = function() {
|
|
37831
37831
|
return (0, react_1.useMemo)(function() {
|
|
37832
37832
|
return (0, uuid_1.v4)();
|
|
@@ -37841,7 +37841,7 @@ var Tooltip_module$1 = /*#__PURE__*/Object.freeze({
|
|
|
37841
37841
|
default: Tooltip_module
|
|
37842
37842
|
});
|
|
37843
37843
|
|
|
37844
|
-
var require$$6 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
37844
|
+
var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
37845
37845
|
|
|
37846
37846
|
(function(exports) {
|
|
37847
37847
|
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
@@ -37896,10 +37896,10 @@ var require$$6 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
|
37896
37896
|
var react_1 = __importStar(React);
|
|
37897
37897
|
var react_dom_1 = __importDefault(reactDomExports);
|
|
37898
37898
|
var classnames_1 = __importDefault(index.classnamesExports);
|
|
37899
|
-
var react_popper_1 = require$$3;
|
|
37899
|
+
var react_popper_1 = require$$3$2;
|
|
37900
37900
|
var AppearanceAnim_1 = AppearanceAnim;
|
|
37901
37901
|
var useUuid_1 = useUuid$1;
|
|
37902
|
-
var Tooltip_module_scss_1 = __importDefault(require$$6);
|
|
37902
|
+
var Tooltip_module_scss_1 = __importDefault(require$$6$1);
|
|
37903
37903
|
var positionToPlacement = /* @__PURE__ */ new Map([
|
|
37904
37904
|
["above", "top"],
|
|
37905
37905
|
["below", "bottom"],
|
|
@@ -38085,7 +38085,7 @@ var ClearIcon = function(props) {
|
|
|
38085
38085
|
);
|
|
38086
38086
|
};
|
|
38087
38087
|
|
|
38088
|
-
var styles$
|
|
38088
|
+
var styles$7 = {"buttonGroup":"ButtonGroup-module_buttonGroup__bsy2X","child":"ButtonGroup-module_child__K6AP-","firstChild":"ButtonGroup-module_firstChild__uEn1j","lastChild":"ButtonGroup-module_lastChild__Vicsx"};
|
|
38089
38089
|
|
|
38090
38090
|
var isFilterButton = function(node) {
|
|
38091
38091
|
return React.isValidElement(node) && node.type === FilterButtonBase;
|
|
@@ -38093,11 +38093,11 @@ var isFilterButton = function(node) {
|
|
|
38093
38093
|
var ButtonGroup = function(_a) {
|
|
38094
38094
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
38095
38095
|
var childCount = React.Children.count(children);
|
|
38096
|
-
var containerProps = index.__assign({ role: "group", className: index.classNames(styles$
|
|
38096
|
+
var containerProps = index.__assign({ role: "group", className: index.classNames(styles$7.buttonGroup, classNameOverride) }, restProps);
|
|
38097
38097
|
if (childCount === 1)
|
|
38098
38098
|
return React.createElement("div", index.__assign({}, containerProps), children);
|
|
38099
38099
|
return React.createElement("div", index.__assign({}, containerProps), React.Children.map(children, function(child, index$1) {
|
|
38100
|
-
var buttonClassNames = index.classNames(styles$
|
|
38100
|
+
var buttonClassNames = index.classNames(styles$7.child, index$1 === 0 && styles$7.firstChild, index$1 === childCount - 1 && styles$7.lastChild, child.props.classNameOverride);
|
|
38101
38101
|
if (child.type === tooltip.Tooltip) {
|
|
38102
38102
|
var button = child.props.children;
|
|
38103
38103
|
if (isFilterButton(button)) {
|
|
@@ -44625,46 +44625,46 @@ function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
|
|
|
44625
44625
|
};
|
|
44626
44626
|
}
|
|
44627
44627
|
|
|
44628
|
-
var styles$
|
|
44628
|
+
var styles$6 = {"listBox":"ListBox-module_listBox__FQ9sQ","focus":"ListBox-module_focus__Tm-jn"};
|
|
44629
44629
|
|
|
44630
44630
|
var ListBox = function(_a) {
|
|
44631
44631
|
var children = _a.children, menuProps = _a.menuProps, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "menuProps", "classNameOverride"]);
|
|
44632
44632
|
var state = useSelectContext().state;
|
|
44633
44633
|
var ref = React.useRef(null);
|
|
44634
44634
|
var listBoxProps = $c132121280ec012d$export$50eacbbf140a3141(index.__assign(index.__assign({}, menuProps), { disallowEmptySelection: true, autoFocus: "first" }), state, ref).listBoxProps;
|
|
44635
|
-
return React.createElement("ul", index.__assign({ ref, className: index.classNames(styles$
|
|
44635
|
+
return React.createElement("ul", index.__assign({ ref, className: index.classNames(styles$6.listBox, classNameOverride) }, listBoxProps, restProps), children);
|
|
44636
44636
|
};
|
|
44637
44637
|
ListBox.displayName = "ListBox";
|
|
44638
44638
|
|
|
44639
|
-
var styles$
|
|
44639
|
+
var styles$5 = {"heading":"Heading-module_heading__Fe11y","display-0":"Heading-module_display-0__As5Ny","heading-1":"Heading-module_heading-1__fMzkm","heading-2":"Heading-module_heading-2__bgkcr","heading-3":"Heading-module_heading-3__ZRUkC","heading-4":"Heading-module_heading-4__XbONZ","heading-5":"Heading-module_heading-5__fj2Gb","heading-6":"Heading-module_heading-6__Cmand","dark":"Heading-module_dark__9m1Av","dark-reduced-opacity":"Heading-module_dark-reduced-opacity__APHzM","white":"Heading-module_white__6Flbw","white-reduced-opacity":"Heading-module_white-reduced-opacity__-3jNg","positive":"Heading-module_positive__uTfoL","small":"Heading-module_small__I8UMW","large":"Heading-module_large__wKrUS","negative":"Heading-module_negative__hcnMm"};
|
|
44640
44640
|
|
|
44641
|
-
var __defProp$
|
|
44641
|
+
var __defProp$1 = Object.defineProperty;
|
|
44642
44642
|
var __defProps = Object.defineProperties;
|
|
44643
44643
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
44644
|
-
var __getOwnPropSymbols$
|
|
44645
|
-
var __hasOwnProp$
|
|
44646
|
-
var __propIsEnum$
|
|
44647
|
-
var __defNormalProp$
|
|
44648
|
-
var __spreadValues$
|
|
44644
|
+
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
44645
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
44646
|
+
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
44647
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
44648
|
+
var __spreadValues$1 = (a, b) => {
|
|
44649
44649
|
for (var prop in b || (b = {}))
|
|
44650
|
-
if (__hasOwnProp$
|
|
44651
|
-
__defNormalProp$
|
|
44652
|
-
if (__getOwnPropSymbols$
|
|
44653
|
-
for (var prop of __getOwnPropSymbols$
|
|
44654
|
-
if (__propIsEnum$
|
|
44655
|
-
__defNormalProp$
|
|
44650
|
+
if (__hasOwnProp$1.call(b, prop))
|
|
44651
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
44652
|
+
if (__getOwnPropSymbols$1)
|
|
44653
|
+
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
44654
|
+
if (__propIsEnum$1.call(b, prop))
|
|
44655
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
44656
44656
|
}
|
|
44657
44657
|
return a;
|
|
44658
44658
|
};
|
|
44659
44659
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
44660
|
-
var __objRest$
|
|
44660
|
+
var __objRest$1 = (source, exclude) => {
|
|
44661
44661
|
var target = {};
|
|
44662
44662
|
for (var prop in source)
|
|
44663
|
-
if (__hasOwnProp$
|
|
44663
|
+
if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
44664
44664
|
target[prop] = source[prop];
|
|
44665
|
-
if (source != null && __getOwnPropSymbols$
|
|
44666
|
-
for (var prop of __getOwnPropSymbols$
|
|
44667
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
44665
|
+
if (source != null && __getOwnPropSymbols$1)
|
|
44666
|
+
for (var prop of __getOwnPropSymbols$1(source)) {
|
|
44667
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
|
|
44668
44668
|
target[prop] = source[prop];
|
|
44669
44669
|
}
|
|
44670
44670
|
return target;
|
|
@@ -44677,7 +44677,7 @@ const Heading = (_a) => {
|
|
|
44677
44677
|
variant,
|
|
44678
44678
|
color = "dark",
|
|
44679
44679
|
classNameOverride
|
|
44680
|
-
} = _b, restProps = __objRest$
|
|
44680
|
+
} = _b, restProps = __objRest$1(_b, [
|
|
44681
44681
|
"children",
|
|
44682
44682
|
"tag",
|
|
44683
44683
|
"variant",
|
|
@@ -44686,13 +44686,13 @@ const Heading = (_a) => {
|
|
|
44686
44686
|
]);
|
|
44687
44687
|
const inferredTag = tag === void 0 ? translateHeadingLevelToTag(variant) : tag;
|
|
44688
44688
|
const className = index.classNames([
|
|
44689
|
-
styles$
|
|
44690
|
-
styles$
|
|
44689
|
+
styles$5.heading,
|
|
44690
|
+
styles$5[variant],
|
|
44691
44691
|
classNameOverride,
|
|
44692
|
-
styles$
|
|
44693
|
-
VARIANTS_24PX_OR_GREATER.includes(variant) ? styles$
|
|
44692
|
+
styles$5[color],
|
|
44693
|
+
VARIANTS_24PX_OR_GREATER.includes(variant) ? styles$5.large : styles$5.small
|
|
44694
44694
|
]);
|
|
44695
|
-
return React.createElement(inferredTag, __spreadProps(__spreadValues$
|
|
44695
|
+
return React.createElement(inferredTag, __spreadProps(__spreadValues$1({}, restProps), { className }), children);
|
|
44696
44696
|
};
|
|
44697
44697
|
Heading.displayName = "Heading";
|
|
44698
44698
|
const translateHeadingLevelToTag = (headingLevel) => {
|
|
@@ -44714,67 +44714,107 @@ const translateHeadingLevelToTag = (headingLevel) => {
|
|
|
44714
44714
|
}
|
|
44715
44715
|
};
|
|
44716
44716
|
|
|
44717
|
-
|
|
44718
|
-
const reset = "\x1B[0m ";
|
|
44719
|
-
const warn = (message) => {
|
|
44720
|
-
console.warn(
|
|
44721
|
-
`${yellow}
|
|
44722
|
-
CULTUREAMP UI WARNING:
|
|
44723
|
-
${singleLine(message)}${reset}
|
|
44724
|
-
`
|
|
44725
|
-
);
|
|
44726
|
-
};
|
|
44727
|
-
const singleLine = (message) => message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
44717
|
+
var componentLibrary = {};
|
|
44728
44718
|
|
|
44729
|
-
var
|
|
44719
|
+
var components = {};
|
|
44730
44720
|
|
|
44731
|
-
var
|
|
44732
|
-
|
|
44733
|
-
var
|
|
44734
|
-
|
|
44735
|
-
var
|
|
44736
|
-
|
|
44737
|
-
|
|
44738
|
-
|
|
44739
|
-
|
|
44740
|
-
|
|
44741
|
-
|
|
44742
|
-
|
|
44743
|
-
|
|
44744
|
-
|
|
44745
|
-
|
|
44746
|
-
|
|
44747
|
-
|
|
44748
|
-
|
|
44749
|
-
|
|
44750
|
-
|
|
44751
|
-
|
|
44752
|
-
|
|
44753
|
-
|
|
44754
|
-
|
|
44755
|
-
|
|
44756
|
-
|
|
44757
|
-
|
|
44758
|
-
|
|
44759
|
-
|
|
44760
|
-
|
|
44761
|
-
|
|
44762
|
-
|
|
44763
|
-
|
|
44764
|
-
|
|
44765
|
-
|
|
44766
|
-
|
|
44767
|
-
}
|
|
44768
|
-
|
|
44769
|
-
|
|
44770
|
-
"
|
|
44771
|
-
|
|
44772
|
-
|
|
44773
|
-
|
|
44774
|
-
|
|
44775
|
-
|
|
44776
|
-
|
|
44777
|
-
|
|
44721
|
+
var Dropdown$1 = {};
|
|
44722
|
+
|
|
44723
|
+
var Dropdown = {};
|
|
44724
|
+
|
|
44725
|
+
var img$2 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 44.1 (41455) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3eIcons/Directional/chevron-down%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpolygon id='path-1' points='6.17916667 6.84500003 10 10.746733 13.8208333 6.84500003 15 8.04913353 10 13.155 5 8.04913353'%3e%3c/polygon%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='Icons/Directional/chevron-down'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
44726
|
+
|
|
44727
|
+
var chevronDown_icon = /*#__PURE__*/Object.freeze({
|
|
44728
|
+
__proto__: null,
|
|
44729
|
+
default: img$2
|
|
44730
|
+
});
|
|
44731
|
+
|
|
44732
|
+
var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(chevronDown_icon);
|
|
44733
|
+
|
|
44734
|
+
var img$1 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3emeatballs%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M4%2c8 C2.9%2c8 2%2c8.9 2%2c10 C2%2c11.1 2.9%2c12 4%2c12 C5.1%2c12 6%2c11.1 6%2c10 C6%2c8.9 5.1%2c8 4%2c8 L4%2c8 Z M16%2c8 C14.9%2c8 14%2c8.9 14%2c10 C14%2c11.1 14.9%2c12 16%2c12 C17.1%2c12 18%2c11.1 18%2c10 C18%2c8.9 17.1%2c8 16%2c8 L16%2c8 Z M10%2c8 C8.9%2c8 8%2c8.9 8%2c10 C8%2c11.1 8.9%2c12 10%2c12 C11.1%2c12 12%2c11.1 12%2c10 C12%2c8.9 11.1%2c8 10%2c8 L10%2c8 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='meatballs'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Icons/Actions/metballs' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
44735
|
+
|
|
44736
|
+
var ellipsis_icon = /*#__PURE__*/Object.freeze({
|
|
44737
|
+
__proto__: null,
|
|
44738
|
+
default: img$1
|
|
44739
|
+
});
|
|
44740
|
+
|
|
44741
|
+
var require$$3$1 = /*@__PURE__*/getAugmentedNamespace(ellipsis_icon);
|
|
44742
|
+
|
|
44743
|
+
var Icon$1 = {};
|
|
44744
|
+
|
|
44745
|
+
var Icon = {};
|
|
44746
|
+
|
|
44747
|
+
var console$1 = {};
|
|
44748
|
+
|
|
44749
|
+
(function(exports) {
|
|
44750
|
+
exports.__esModule = true;
|
|
44751
|
+
exports.singleLine = exports.warn = exports.error = void 0;
|
|
44752
|
+
var red = "\x1B[31m ";
|
|
44753
|
+
var yellow = "\x1B[33m ";
|
|
44754
|
+
var reset = "\x1B[0m ";
|
|
44755
|
+
var error = function(message) {
|
|
44756
|
+
throw new Error("".concat(red, "\nCULTUREAMP UI ERROR:\n").concat((0, exports.singleLine)(message)).concat(reset, "\n"));
|
|
44757
|
+
};
|
|
44758
|
+
exports.error = error;
|
|
44759
|
+
var warn = function(message) {
|
|
44760
|
+
console.warn("".concat(yellow, "\nCULTUREAMP UI WARNING:\n").concat((0, exports.singleLine)(message)).concat(reset, "\n"));
|
|
44761
|
+
};
|
|
44762
|
+
exports.warn = warn;
|
|
44763
|
+
var singleLine = function(message) {
|
|
44764
|
+
return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
44765
|
+
};
|
|
44766
|
+
exports.singleLine = singleLine;
|
|
44767
|
+
})(console$1);
|
|
44768
|
+
|
|
44769
|
+
var Icon_module = {"icon":"Icon-module_icon__1r20x","inheritSize":"Icon-module_inheritSize__xtkKA","interactiveIconWrapper":"Icon-module_interactiveIconWrapper__ieTrE","disabled":"Icon-module_disabled__bqMQV","hover":"Icon-module_hover__EdRCd","active":"Icon-module_active__d47mz","reversedInteractiveIconWrapper":"Icon-module_reversedInteractiveIconWrapper__sZ6CO Icon-module_interactiveIconWrapper__ieTrE"};
|
|
44770
|
+
|
|
44771
|
+
var Icon_module$1 = /*#__PURE__*/Object.freeze({
|
|
44772
|
+
__proto__: null,
|
|
44773
|
+
default: Icon_module
|
|
44774
|
+
});
|
|
44775
|
+
|
|
44776
|
+
var require$$3 = /*@__PURE__*/getAugmentedNamespace(Icon_module$1);
|
|
44777
|
+
|
|
44778
|
+
(function(exports) {
|
|
44779
|
+
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
44780
|
+
__assign = Object.assign || function(t) {
|
|
44781
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
44782
|
+
s = arguments[i];
|
|
44783
|
+
for (var p in s)
|
|
44784
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
44785
|
+
t[p] = s[p];
|
|
44786
|
+
}
|
|
44787
|
+
return t;
|
|
44788
|
+
};
|
|
44789
|
+
return __assign.apply(this, arguments);
|
|
44790
|
+
};
|
|
44791
|
+
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
44792
|
+
var t = {};
|
|
44793
|
+
for (var p in s)
|
|
44794
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
44795
|
+
t[p] = s[p];
|
|
44796
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
44797
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
44798
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
44799
|
+
t[p[i]] = s[p[i]];
|
|
44800
|
+
}
|
|
44801
|
+
return t;
|
|
44802
|
+
};
|
|
44803
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
44804
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
44805
|
+
};
|
|
44806
|
+
exports.__esModule = true;
|
|
44807
|
+
exports.Icon = void 0;
|
|
44808
|
+
var react_1 = __importDefault(React);
|
|
44809
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
44810
|
+
var console_1 = console$1;
|
|
44811
|
+
var Icon_module_scss_1 = __importDefault(require$$3);
|
|
44812
|
+
var Icon = function(_a) {
|
|
44813
|
+
var _b, _c;
|
|
44814
|
+
var icon = _a.icon, _d = _a.inheritSize, inheritSize = _d === void 0 ? false : _d, _e = _a.role, role = _e === void 0 ? "img" : _e, _f = _a.title, title = _f === void 0 ? "" : _f, _g = _a.desc, desc = _g === void 0 ? "" : _g, classNameOverride = _a.classNameOverride, props = __rest(_a, ["icon", "inheritSize", "role", "title", "desc", "classNameOverride"]);
|
|
44815
|
+
var isMeaningfulImg = role === "img";
|
|
44816
|
+
if (isMeaningfulImg && !title) {
|
|
44817
|
+
(0, console_1.warn)(`
|
|
44778
44818
|
Icon with role "img" missing a title attribute.
|
|
44779
44819
|
|
|
44780
44820
|
Assistive technologies that enable vision-impaired users to read web pages
|
|
@@ -44786,28 +44826,1077 @@ const Icon = (_a) => {
|
|
|
44786
44826
|
Either add the missing title prop, or set this icon's role to
|
|
44787
44827
|
"presentation" to indicate it is not meaningful.
|
|
44788
44828
|
`);
|
|
44789
|
-
|
|
44790
|
-
|
|
44791
|
-
|
|
44792
|
-
|
|
44793
|
-
|
|
44794
|
-
|
|
44829
|
+
}
|
|
44830
|
+
var renderTitle = function() {
|
|
44831
|
+
return isMeaningfulImg && !!title && react_1["default"].createElement("title", null, title);
|
|
44832
|
+
};
|
|
44833
|
+
var renderDesc = function() {
|
|
44834
|
+
return isMeaningfulImg && !!desc && react_1["default"].createElement("desc", null, desc);
|
|
44835
|
+
};
|
|
44836
|
+
var accessibilityProps = (_b = {
|
|
44837
|
+
role
|
|
44838
|
+
}, _b["aria-hidden"] = isMeaningfulImg ? void 0 : true, _b);
|
|
44839
|
+
return react_1["default"].createElement(
|
|
44840
|
+
"svg",
|
|
44841
|
+
__assign({
|
|
44842
|
+
className: (0, classnames_1["default"])(Icon_module_scss_1["default"].icon, classNameOverride, (_c = {}, _c[Icon_module_scss_1["default"].inheritSize] = inheritSize, _c)),
|
|
44843
|
+
viewBox: icon.viewBox,
|
|
44844
|
+
// Work around IE11 making all SVGs focusable.
|
|
44845
|
+
// See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
|
|
44846
|
+
focusable: "false"
|
|
44847
|
+
}, accessibilityProps, props),
|
|
44848
|
+
renderTitle(),
|
|
44849
|
+
renderDesc(),
|
|
44850
|
+
react_1["default"].createElement("use", { xlinkHref: "#".concat(icon.id) })
|
|
44851
|
+
);
|
|
44795
44852
|
};
|
|
44796
|
-
|
|
44797
|
-
|
|
44798
|
-
|
|
44799
|
-
|
|
44800
|
-
|
|
44801
|
-
|
|
44802
|
-
|
|
44803
|
-
|
|
44804
|
-
|
|
44805
|
-
|
|
44806
|
-
|
|
44807
|
-
|
|
44853
|
+
exports.Icon = Icon;
|
|
44854
|
+
exports.Icon.displayName = "Icon";
|
|
44855
|
+
})(Icon);
|
|
44856
|
+
|
|
44857
|
+
(function(exports) {
|
|
44858
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
44859
|
+
if (k2 === void 0)
|
|
44860
|
+
k2 = k;
|
|
44861
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
44862
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
44863
|
+
desc = { enumerable: true, get: function() {
|
|
44864
|
+
return m[k];
|
|
44865
|
+
} };
|
|
44866
|
+
}
|
|
44867
|
+
Object.defineProperty(o, k2, desc);
|
|
44868
|
+
} : function(o, m, k, k2) {
|
|
44869
|
+
if (k2 === void 0)
|
|
44870
|
+
k2 = k;
|
|
44871
|
+
o[k2] = m[k];
|
|
44872
|
+
});
|
|
44873
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
44874
|
+
for (var p in m)
|
|
44875
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
44876
|
+
__createBinding(exports2, m, p);
|
|
44877
|
+
};
|
|
44878
|
+
exports.__esModule = true;
|
|
44879
|
+
__exportStar(Icon, exports);
|
|
44880
|
+
})(Icon$1);
|
|
44881
|
+
|
|
44882
|
+
var DropdownMenu = {};
|
|
44883
|
+
|
|
44884
|
+
var Dropdown_module = {"dropdown":"Dropdown-module_dropdown__09sgL","buttonReset":"Dropdown-module_buttonReset__O69sc","dropdownButton":"Dropdown-module_dropdownButton__FiRVW Dropdown-module_buttonReset__O69sc","dropdownControlAction":"Dropdown-module_dropdownControlAction__iWJog","dropdownIcon":"Dropdown-module_dropdownIcon__tZfDQ","dropdownLabel":"Dropdown-module_dropdownLabel__bpY-X","dropdownHoverArea":"Dropdown-module_dropdownHoverArea__M-Y-K","isOpen":"Dropdown-module_isOpen__Kf4XR","chevronIcon":"Dropdown-module_chevronIcon__Ieh4i","menuContainer":"Dropdown-module_menuContainer__xl9MT","reversedColor":"Dropdown-module_reversedColor__rGeiB"};
|
|
44885
|
+
|
|
44886
|
+
var Dropdown_module$1 = /*#__PURE__*/Object.freeze({
|
|
44887
|
+
__proto__: null,
|
|
44888
|
+
default: Dropdown_module
|
|
44889
|
+
});
|
|
44890
|
+
|
|
44891
|
+
var require$$6 = /*@__PURE__*/getAugmentedNamespace(Dropdown_module$1);
|
|
44892
|
+
|
|
44893
|
+
(function(exports) {
|
|
44894
|
+
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
44895
|
+
var extendStatics = function(d, b) {
|
|
44896
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
44897
|
+
d2.__proto__ = b2;
|
|
44898
|
+
} || function(d2, b2) {
|
|
44899
|
+
for (var p in b2)
|
|
44900
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
44901
|
+
d2[p] = b2[p];
|
|
44902
|
+
};
|
|
44903
|
+
return extendStatics(d, b);
|
|
44904
|
+
};
|
|
44905
|
+
return function(d, b) {
|
|
44906
|
+
if (typeof b !== "function" && b !== null)
|
|
44907
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
44908
|
+
extendStatics(d, b);
|
|
44909
|
+
function __() {
|
|
44910
|
+
this.constructor = d;
|
|
44911
|
+
}
|
|
44912
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
44913
|
+
};
|
|
44914
|
+
}();
|
|
44915
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
44916
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
44917
|
+
};
|
|
44918
|
+
exports.__esModule = true;
|
|
44919
|
+
var react_1 = __importDefault(React);
|
|
44920
|
+
var Dropdown_module_scss_1 = __importDefault(require$$6);
|
|
44921
|
+
var DropdownMenu = (
|
|
44922
|
+
/** @class */
|
|
44923
|
+
function(_super) {
|
|
44924
|
+
__extends(DropdownMenu2, _super);
|
|
44925
|
+
function DropdownMenu2() {
|
|
44926
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
44927
|
+
_this.menu = react_1["default"].createRef();
|
|
44928
|
+
_this.handleDocumentClick = function(e) {
|
|
44929
|
+
if (_this.menu && _this.menu.current && e.target instanceof Node && !_this.menu.current.contains(e.target)) {
|
|
44930
|
+
_this.props.hideDropdownMenu();
|
|
44931
|
+
}
|
|
44932
|
+
};
|
|
44933
|
+
_this.handleDocumentResize = function() {
|
|
44934
|
+
_this.props.hideDropdownMenu();
|
|
44935
|
+
};
|
|
44936
|
+
return _this;
|
|
44937
|
+
}
|
|
44938
|
+
DropdownMenu2.prototype.componentDidMount = function() {
|
|
44939
|
+
document.addEventListener("click", this.handleDocumentClick, false);
|
|
44940
|
+
window.addEventListener("resize", this.handleDocumentResize, false);
|
|
44941
|
+
this.positionMenu();
|
|
44942
|
+
};
|
|
44943
|
+
DropdownMenu2.prototype.componentWillUnmount = function() {
|
|
44944
|
+
document.removeEventListener("click", this.handleDocumentClick, false);
|
|
44945
|
+
window.removeEventListener("resize", this.handleDocumentResize, false);
|
|
44946
|
+
};
|
|
44947
|
+
DropdownMenu2.prototype.render = function() {
|
|
44948
|
+
var _a = this.props, hideDropdownMenu = _a.hideDropdownMenu, children = _a.children;
|
|
44949
|
+
return (
|
|
44950
|
+
// Disabling instead of addressing because this component is deprecated
|
|
44951
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
44952
|
+
react_1["default"].createElement("div", { className: Dropdown_module_scss_1["default"].menuContainer, ref: this.menu, onClick: hideDropdownMenu }, children)
|
|
44953
|
+
);
|
|
44954
|
+
};
|
|
44955
|
+
DropdownMenu2.prototype.positionMenu = function() {
|
|
44956
|
+
var menu = this.menu;
|
|
44957
|
+
if (!this.props.position || !menu) {
|
|
44958
|
+
return;
|
|
44959
|
+
}
|
|
44960
|
+
if (menu.current) {
|
|
44961
|
+
var pos = this.props.position;
|
|
44962
|
+
var innerHeight_1 = window.innerHeight;
|
|
44963
|
+
var rect = menu.current.getBoundingClientRect();
|
|
44964
|
+
if (pos.bottom > innerHeight_1 - rect.height) {
|
|
44965
|
+
menu.current.style.bottom = "24px";
|
|
44966
|
+
menu.current.style.top = "auto";
|
|
44967
|
+
} else {
|
|
44968
|
+
menu.current.style.top = "24px";
|
|
44969
|
+
menu.current.style.bottom = "auto";
|
|
44970
|
+
}
|
|
44971
|
+
}
|
|
44972
|
+
};
|
|
44973
|
+
DropdownMenu2.displayName = "DropdownMenu";
|
|
44974
|
+
return DropdownMenu2;
|
|
44975
|
+
}(react_1["default"].Component)
|
|
44808
44976
|
);
|
|
44977
|
+
exports["default"] = DropdownMenu;
|
|
44978
|
+
})(DropdownMenu);
|
|
44979
|
+
|
|
44980
|
+
(function(exports) {
|
|
44981
|
+
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
44982
|
+
var extendStatics = function(d, b) {
|
|
44983
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
44984
|
+
d2.__proto__ = b2;
|
|
44985
|
+
} || function(d2, b2) {
|
|
44986
|
+
for (var p in b2)
|
|
44987
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
44988
|
+
d2[p] = b2[p];
|
|
44989
|
+
};
|
|
44990
|
+
return extendStatics(d, b);
|
|
44991
|
+
};
|
|
44992
|
+
return function(d, b) {
|
|
44993
|
+
if (typeof b !== "function" && b !== null)
|
|
44994
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
44995
|
+
extendStatics(d, b);
|
|
44996
|
+
function __() {
|
|
44997
|
+
this.constructor = d;
|
|
44998
|
+
}
|
|
44999
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45000
|
+
};
|
|
45001
|
+
}();
|
|
45002
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45003
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45004
|
+
};
|
|
45005
|
+
exports.__esModule = true;
|
|
45006
|
+
var react_1 = __importDefault(React);
|
|
45007
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45008
|
+
var chevron_down_icon_svg_1 = __importDefault(require$$2$1);
|
|
45009
|
+
var ellipsis_icon_svg_1 = __importDefault(require$$3$1);
|
|
45010
|
+
var Icon_1 = Icon$1;
|
|
45011
|
+
var DropdownMenu_1 = __importDefault(DropdownMenu);
|
|
45012
|
+
var Dropdown_module_scss_1 = __importDefault(require$$6);
|
|
45013
|
+
var Dropdown = (
|
|
45014
|
+
/** @class */
|
|
45015
|
+
function(_super) {
|
|
45016
|
+
__extends(Dropdown2, _super);
|
|
45017
|
+
function Dropdown2(props) {
|
|
45018
|
+
var _this = _super.call(this, props) || this;
|
|
45019
|
+
_this.dropdownButton = react_1["default"].createRef();
|
|
45020
|
+
_this.toggleDropdownMenu = function(e) {
|
|
45021
|
+
e.stopPropagation();
|
|
45022
|
+
var currentState = _this.state.isMenuVisible;
|
|
45023
|
+
_this.setState({
|
|
45024
|
+
isMenuVisible: !currentState
|
|
45025
|
+
});
|
|
45026
|
+
};
|
|
45027
|
+
_this.hideDropdownMenu = function() {
|
|
45028
|
+
_this.setState({
|
|
45029
|
+
isMenuVisible: false
|
|
45030
|
+
});
|
|
45031
|
+
};
|
|
45032
|
+
_this.renderIcon = function(icon) {
|
|
45033
|
+
if (!icon)
|
|
45034
|
+
return;
|
|
45035
|
+
return react_1["default"].createElement(
|
|
45036
|
+
"span",
|
|
45037
|
+
{ className: Dropdown_module_scss_1["default"].dropdownIcon },
|
|
45038
|
+
react_1["default"].createElement(Icon_1.Icon, { icon, role: "img", title: "Open menu" })
|
|
45039
|
+
);
|
|
45040
|
+
};
|
|
45041
|
+
_this.renderDownArrow = function() {
|
|
45042
|
+
var _a = _this.props, label = _a.label, controlAction = _a.controlAction;
|
|
45043
|
+
if (!label || !controlAction)
|
|
45044
|
+
return;
|
|
45045
|
+
return react_1["default"].createElement(
|
|
45046
|
+
"span",
|
|
45047
|
+
{ className: Dropdown_module_scss_1["default"].chevronIcon },
|
|
45048
|
+
react_1["default"].createElement(Icon_1.Icon, { icon: chevron_down_icon_svg_1["default"], role: "img", title: "Open menu" })
|
|
45049
|
+
);
|
|
45050
|
+
};
|
|
45051
|
+
_this.renderButtonContent = function() {
|
|
45052
|
+
var label = _this.props.label;
|
|
45053
|
+
var icon = _this.props.icon;
|
|
45054
|
+
if (!icon && !label) {
|
|
45055
|
+
icon = ellipsis_icon_svg_1["default"];
|
|
45056
|
+
}
|
|
45057
|
+
return react_1["default"].createElement(
|
|
45058
|
+
react_1["default"].Fragment,
|
|
45059
|
+
null,
|
|
45060
|
+
_this.renderIcon(icon),
|
|
45061
|
+
label && react_1["default"].createElement("span", { className: Dropdown_module_scss_1["default"].dropdownLabel }, label),
|
|
45062
|
+
_this.renderDownArrow()
|
|
45063
|
+
);
|
|
45064
|
+
};
|
|
45065
|
+
_this.renderReversedButtonContent = function() {
|
|
45066
|
+
var _a = _this.props, icon = _a.icon, label = _a.label;
|
|
45067
|
+
return react_1["default"].createElement(
|
|
45068
|
+
react_1["default"].Fragment,
|
|
45069
|
+
null,
|
|
45070
|
+
_this.renderDownArrow(),
|
|
45071
|
+
label && react_1["default"].createElement("span", { className: Dropdown_module_scss_1["default"].dropdownLabel }, label),
|
|
45072
|
+
_this.renderIcon(icon)
|
|
45073
|
+
);
|
|
45074
|
+
};
|
|
45075
|
+
_this.state = {
|
|
45076
|
+
isMenuVisible: Boolean(props.menuVisible)
|
|
45077
|
+
};
|
|
45078
|
+
return _this;
|
|
45079
|
+
}
|
|
45080
|
+
Dropdown2.prototype.getPosition = function() {
|
|
45081
|
+
return this.dropdownButton && this.dropdownButton.current ? this.dropdownButton.current.getBoundingClientRect() : null;
|
|
45082
|
+
};
|
|
45083
|
+
Dropdown2.prototype.renderDropdownMenu = function() {
|
|
45084
|
+
return react_1["default"].createElement(DropdownMenu_1["default"], { hideDropdownMenu: this.hideDropdownMenu, position: this.getPosition() }, this.props.children);
|
|
45085
|
+
};
|
|
45086
|
+
Dropdown2.prototype.render = function() {
|
|
45087
|
+
var _a;
|
|
45088
|
+
var _b = this.props, controlAction = _b.controlAction, automationId = _b.automationId, iconPosition = _b.iconPosition, reversedColor = _b.reversedColor;
|
|
45089
|
+
var reverseIcon = iconPosition === "end";
|
|
45090
|
+
var btnClass = (0, classnames_1["default"])(Dropdown_module_scss_1["default"].dropdownButton, (_a = {}, _a[Dropdown_module_scss_1["default"].dropdownControlAction] = controlAction, _a[Dropdown_module_scss_1["default"].isOpen] = this.state.isMenuVisible, _a[Dropdown_module_scss_1["default"].reversedColor] = reversedColor, _a));
|
|
45091
|
+
return react_1["default"].createElement(
|
|
45092
|
+
"div",
|
|
45093
|
+
{ className: Dropdown_module_scss_1["default"].dropdown },
|
|
45094
|
+
react_1["default"].createElement(
|
|
45095
|
+
"button",
|
|
45096
|
+
{ className: btnClass, onClick: this.toggleDropdownMenu, onMouseDown: function(e) {
|
|
45097
|
+
return e.preventDefault();
|
|
45098
|
+
}, ref: this.dropdownButton, "data-automation-id": automationId },
|
|
45099
|
+
!reverseIcon && this.renderButtonContent(),
|
|
45100
|
+
reverseIcon && this.renderReversedButtonContent()
|
|
45101
|
+
),
|
|
45102
|
+
this.state.isMenuVisible && this.renderDropdownMenu()
|
|
45103
|
+
);
|
|
45104
|
+
};
|
|
45105
|
+
Dropdown2.displayName = "Dropdown";
|
|
45106
|
+
Dropdown2.defaultProps = {
|
|
45107
|
+
iconPosition: "start"
|
|
45108
|
+
};
|
|
45109
|
+
return Dropdown2;
|
|
45110
|
+
}(react_1["default"].Component)
|
|
45111
|
+
);
|
|
45112
|
+
exports["default"] = Dropdown;
|
|
45113
|
+
})(Dropdown);
|
|
45114
|
+
|
|
45115
|
+
(function(exports) {
|
|
45116
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45117
|
+
if (k2 === void 0)
|
|
45118
|
+
k2 = k;
|
|
45119
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45120
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45121
|
+
desc = { enumerable: true, get: function() {
|
|
45122
|
+
return m[k];
|
|
45123
|
+
} };
|
|
45124
|
+
}
|
|
45125
|
+
Object.defineProperty(o, k2, desc);
|
|
45126
|
+
} : function(o, m, k, k2) {
|
|
45127
|
+
if (k2 === void 0)
|
|
45128
|
+
k2 = k;
|
|
45129
|
+
o[k2] = m[k];
|
|
45130
|
+
});
|
|
45131
|
+
exports.__esModule = true;
|
|
45132
|
+
exports.Dropdown = void 0;
|
|
45133
|
+
var Dropdown_1 = Dropdown;
|
|
45134
|
+
__createBinding(exports, Dropdown_1, "default", "Dropdown");
|
|
45135
|
+
})(Dropdown$1);
|
|
45136
|
+
|
|
45137
|
+
var Layout$1 = {};
|
|
45138
|
+
|
|
45139
|
+
var Layout = {};
|
|
45140
|
+
|
|
45141
|
+
var Layout_module = {"root":"Layout-module_root__SgXZT","navigationBar":"Layout-module_navigationBar__1xbfp","page":"Layout-module_page__ZSTUO","header":"Layout-module_header__X1E96","footer":"Layout-module_footer__wFknz","body":"Layout-module_body__r1d-M","bodyInner":"Layout-module_bodyInner__e5WA6","sidebar":"Layout-module_sidebar__FSH-B","content":"Layout-module_content__6gaoR","toasts":"Layout-module_toasts__ZDy2G","announcers":"Layout-module_announcers__fAmmq"};
|
|
45142
|
+
|
|
45143
|
+
var Layout_module$1 = /*#__PURE__*/Object.freeze({
|
|
45144
|
+
__proto__: null,
|
|
45145
|
+
default: Layout_module
|
|
45146
|
+
});
|
|
45147
|
+
|
|
45148
|
+
var require$$1$3 = /*@__PURE__*/getAugmentedNamespace(Layout_module$1);
|
|
45149
|
+
|
|
45150
|
+
(function(exports) {
|
|
45151
|
+
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
45152
|
+
var extendStatics = function(d, b) {
|
|
45153
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
45154
|
+
d2.__proto__ = b2;
|
|
45155
|
+
} || function(d2, b2) {
|
|
45156
|
+
for (var p in b2)
|
|
45157
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
45158
|
+
d2[p] = b2[p];
|
|
45159
|
+
};
|
|
45160
|
+
return extendStatics(d, b);
|
|
45161
|
+
};
|
|
45162
|
+
return function(d, b) {
|
|
45163
|
+
if (typeof b !== "function" && b !== null)
|
|
45164
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
45165
|
+
extendStatics(d, b);
|
|
45166
|
+
function __() {
|
|
45167
|
+
this.constructor = d;
|
|
45168
|
+
}
|
|
45169
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45170
|
+
};
|
|
45171
|
+
}();
|
|
45172
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45173
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45174
|
+
};
|
|
45175
|
+
exports.__esModule = true;
|
|
45176
|
+
var react_1 = __importDefault(React);
|
|
45177
|
+
var Layout_module_scss_1 = __importDefault(require$$1$3);
|
|
45178
|
+
var NavigationBar = function(_a) {
|
|
45179
|
+
var children = _a.children;
|
|
45180
|
+
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].navigationBar }, children);
|
|
45181
|
+
};
|
|
45182
|
+
NavigationBar.displayName = "NavigationBar";
|
|
45183
|
+
var Sidebar = function(_a) {
|
|
45184
|
+
var children = _a.children;
|
|
45185
|
+
return react_1["default"].createElement(
|
|
45186
|
+
"div",
|
|
45187
|
+
{ className: Layout_module_scss_1["default"].sidebar },
|
|
45188
|
+
react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].sidebarInner }, children)
|
|
45189
|
+
);
|
|
45190
|
+
};
|
|
45191
|
+
Sidebar.displayName = "Sidebar";
|
|
45192
|
+
var Header = function(_a) {
|
|
45193
|
+
var children = _a.children;
|
|
45194
|
+
return react_1["default"].createElement("aside", { className: Layout_module_scss_1["default"].header }, children);
|
|
45195
|
+
};
|
|
45196
|
+
Header.displayName = "Header";
|
|
45197
|
+
var Footer = function(_a) {
|
|
45198
|
+
var children = _a.children;
|
|
45199
|
+
return react_1["default"].createElement("footer", { className: Layout_module_scss_1["default"].footer }, children);
|
|
45200
|
+
};
|
|
45201
|
+
Footer.displayName = "Footer";
|
|
45202
|
+
var Toasts = function(_a) {
|
|
45203
|
+
var children = _a.children;
|
|
45204
|
+
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].toasts, "aria-live": "assertive" }, children);
|
|
45205
|
+
};
|
|
45206
|
+
Toasts.displayName = "Toasts";
|
|
45207
|
+
var Announcers = function(_a) {
|
|
45208
|
+
var children = _a.children;
|
|
45209
|
+
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].announcers, "aria-live": "assertive" }, children);
|
|
45210
|
+
};
|
|
45211
|
+
Announcers.displayName = "Announcers";
|
|
45212
|
+
var Layout = (
|
|
45213
|
+
/** @class */
|
|
45214
|
+
function(_super) {
|
|
45215
|
+
__extends(Layout2, _super);
|
|
45216
|
+
function Layout2() {
|
|
45217
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
45218
|
+
}
|
|
45219
|
+
Layout2.prototype.render = function() {
|
|
45220
|
+
var content = react_1["default"].Children.toArray(this.props.children);
|
|
45221
|
+
var navbar = extractChildOfType(content, NavigationBar);
|
|
45222
|
+
var header = extractChildOfType(content, Header);
|
|
45223
|
+
var sidebar = extractChildOfType(content, Sidebar);
|
|
45224
|
+
var footer = extractChildOfType(content, Footer);
|
|
45225
|
+
var announcers = extractChildOfType(content, Announcers);
|
|
45226
|
+
var toasts = extractChildOfType(content, Toasts);
|
|
45227
|
+
return react_1["default"].createElement(
|
|
45228
|
+
"div",
|
|
45229
|
+
{ className: Layout_module_scss_1["default"].root },
|
|
45230
|
+
navbar,
|
|
45231
|
+
announcers,
|
|
45232
|
+
react_1["default"].createElement(
|
|
45233
|
+
"div",
|
|
45234
|
+
{ className: Layout_module_scss_1["default"].page },
|
|
45235
|
+
header,
|
|
45236
|
+
toasts,
|
|
45237
|
+
react_1["default"].createElement(
|
|
45238
|
+
"div",
|
|
45239
|
+
{ className: Layout_module_scss_1["default"].body },
|
|
45240
|
+
react_1["default"].createElement(
|
|
45241
|
+
"div",
|
|
45242
|
+
{ className: Layout_module_scss_1["default"].bodyInner },
|
|
45243
|
+
sidebar,
|
|
45244
|
+
react_1["default"].createElement("main", { className: Layout_module_scss_1["default"].content }, content)
|
|
45245
|
+
)
|
|
45246
|
+
),
|
|
45247
|
+
footer
|
|
45248
|
+
)
|
|
45249
|
+
);
|
|
45250
|
+
};
|
|
45251
|
+
Layout2.displayName = "Layout";
|
|
45252
|
+
Layout2.NavigationBar = NavigationBar;
|
|
45253
|
+
Layout2.Sidebar = Sidebar;
|
|
45254
|
+
Layout2.Header = Header;
|
|
45255
|
+
Layout2.Footer = Footer;
|
|
45256
|
+
Layout2.Toasts = Toasts;
|
|
45257
|
+
Layout2.Announcers = Announcers;
|
|
45258
|
+
return Layout2;
|
|
45259
|
+
}(react_1["default"].Component)
|
|
45260
|
+
);
|
|
45261
|
+
var extractChildOfType = function(children, type) {
|
|
45262
|
+
var match = children.find(function(child) {
|
|
45263
|
+
if (react_1["default"].isValidElement(child) && typeof child.type === "function") {
|
|
45264
|
+
return child.type.displayName === type.displayName;
|
|
45265
|
+
}
|
|
45266
|
+
return false;
|
|
45267
|
+
});
|
|
45268
|
+
if (match) {
|
|
45269
|
+
var index = children.indexOf(match);
|
|
45270
|
+
children.splice(index, 1);
|
|
45271
|
+
}
|
|
45272
|
+
return match;
|
|
45273
|
+
};
|
|
45274
|
+
exports["default"] = Layout;
|
|
45275
|
+
})(Layout);
|
|
45276
|
+
|
|
45277
|
+
(function(exports) {
|
|
45278
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45279
|
+
if (k2 === void 0)
|
|
45280
|
+
k2 = k;
|
|
45281
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45282
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45283
|
+
desc = { enumerable: true, get: function() {
|
|
45284
|
+
return m[k];
|
|
45285
|
+
} };
|
|
45286
|
+
}
|
|
45287
|
+
Object.defineProperty(o, k2, desc);
|
|
45288
|
+
} : function(o, m, k, k2) {
|
|
45289
|
+
if (k2 === void 0)
|
|
45290
|
+
k2 = k;
|
|
45291
|
+
o[k2] = m[k];
|
|
45292
|
+
});
|
|
45293
|
+
exports.__esModule = true;
|
|
45294
|
+
exports.Layout = void 0;
|
|
45295
|
+
var Layout_1 = Layout;
|
|
45296
|
+
__createBinding(exports, Layout_1, "default", "Layout");
|
|
45297
|
+
})(Layout$1);
|
|
45298
|
+
|
|
45299
|
+
var MenuList$1 = {};
|
|
45300
|
+
|
|
45301
|
+
var MenuList = {};
|
|
45302
|
+
|
|
45303
|
+
var Menu_module = {"menuList":"Menu-module_menuList__behqY","header":"Menu-module_header__MMpNm","header__title":"Menu-module_header__title__4QK0E","menuItem":"Menu-module_menuItem__0rlZg Icon-module_interactiveIconWrapper__ieTrE","menuItem--active":"Menu-module_menuItem--active__xr3IS Icon-module_active__d47mz","menuItem__Icon":"Menu-module_menuItem__Icon__SEvH-","menuItem--destructive":"Menu-module_menuItem--destructive__bg0qx","menuItem__Label":"Menu-module_menuItem__Label__KPrkg","hoverIcon":"Menu-module_hoverIcon__WCsbC","separator":"Menu-module_separator__RCRVm"};
|
|
45304
|
+
|
|
45305
|
+
var Menu_module$1 = /*#__PURE__*/Object.freeze({
|
|
45306
|
+
__proto__: null,
|
|
45307
|
+
default: Menu_module
|
|
45308
|
+
});
|
|
45309
|
+
|
|
45310
|
+
var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(Menu_module$1);
|
|
45311
|
+
|
|
45312
|
+
(function(exports) {
|
|
45313
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45314
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45315
|
+
};
|
|
45316
|
+
exports.__esModule = true;
|
|
45317
|
+
var react_1 = __importDefault(React);
|
|
45318
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45319
|
+
var MenuList = function(props) {
|
|
45320
|
+
return react_1["default"].createElement("div", { className: Menu_module_scss_1["default"].menuList }, props.children);
|
|
45321
|
+
};
|
|
45322
|
+
MenuList.displayName = "MenuList";
|
|
45323
|
+
exports["default"] = MenuList;
|
|
45324
|
+
})(MenuList);
|
|
45325
|
+
|
|
45326
|
+
var MenuHeader = {};
|
|
45327
|
+
|
|
45328
|
+
(function(exports) {
|
|
45329
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45330
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45331
|
+
};
|
|
45332
|
+
exports.__esModule = true;
|
|
45333
|
+
var react_1 = __importDefault(React);
|
|
45334
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45335
|
+
var MenuHeader = function(props) {
|
|
45336
|
+
return react_1["default"].createElement(
|
|
45337
|
+
"div",
|
|
45338
|
+
{ className: Menu_module_scss_1["default"].header },
|
|
45339
|
+
react_1["default"].createElement("span", { className: Menu_module_scss_1["default"].header__title }, props.title)
|
|
45340
|
+
);
|
|
45341
|
+
};
|
|
45342
|
+
MenuHeader.displayName = "MenuHeader";
|
|
45343
|
+
exports["default"] = MenuHeader;
|
|
45344
|
+
})(MenuHeader);
|
|
45345
|
+
|
|
45346
|
+
var MenuItem = {};
|
|
45347
|
+
|
|
45348
|
+
(function(exports) {
|
|
45349
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45350
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45351
|
+
};
|
|
45352
|
+
exports.__esModule = true;
|
|
45353
|
+
var react_1 = __importDefault(React);
|
|
45354
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45355
|
+
var Icon_1 = Icon$1;
|
|
45356
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45357
|
+
var MenuItem = function(props) {
|
|
45358
|
+
var _a;
|
|
45359
|
+
var icon = props.icon, hoverIcon = props.hoverIcon, children = props.children, action = props.action, active = props.active, destructive = props.destructive, automationId = props.automationId;
|
|
45360
|
+
var isLink = typeof action === "string";
|
|
45361
|
+
var label = react_1["default"].createElement(
|
|
45362
|
+
"span",
|
|
45363
|
+
{ className: Menu_module_scss_1["default"].menuItem__Label },
|
|
45364
|
+
children,
|
|
45365
|
+
isLink && "\u2026"
|
|
45366
|
+
);
|
|
45367
|
+
var iconNode = icon && react_1["default"].createElement(
|
|
45368
|
+
"span",
|
|
45369
|
+
{ className: Menu_module_scss_1["default"].menuItem__Icon },
|
|
45370
|
+
react_1["default"].createElement(Icon_1.Icon, { icon, role: "presentation" })
|
|
45371
|
+
);
|
|
45372
|
+
var className = (0, classnames_1["default"])((_a = {}, _a[Menu_module_scss_1["default"].menuItem] = true, _a[Menu_module_scss_1["default"].hoverIcon] = icon && hoverIcon, _a[Menu_module_scss_1["default"]["menuItem--active"]] = active, _a[Menu_module_scss_1["default"]["menuItem--destructive"]] = destructive, _a));
|
|
45373
|
+
if (typeof action === "string") {
|
|
45374
|
+
return react_1["default"].createElement(
|
|
45375
|
+
"a",
|
|
45376
|
+
{ href: action, className, "data-automation-id": automationId },
|
|
45377
|
+
label,
|
|
45378
|
+
iconNode
|
|
45379
|
+
);
|
|
45380
|
+
}
|
|
45381
|
+
return (
|
|
45382
|
+
// Disabling instead of addressing because this component is deprecated.
|
|
45383
|
+
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
45384
|
+
react_1["default"].createElement(
|
|
45385
|
+
"a",
|
|
45386
|
+
{ href: "#", onClick: action, className, "data-automation-id": automationId },
|
|
45387
|
+
label,
|
|
45388
|
+
iconNode
|
|
45389
|
+
)
|
|
45390
|
+
);
|
|
45391
|
+
};
|
|
45392
|
+
MenuItem.displayName = "MenuItem";
|
|
45393
|
+
exports["default"] = MenuItem;
|
|
45394
|
+
})(MenuItem);
|
|
45395
|
+
|
|
45396
|
+
var MenuSeparator = {};
|
|
45397
|
+
|
|
45398
|
+
(function(exports) {
|
|
45399
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45400
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45401
|
+
};
|
|
45402
|
+
exports.__esModule = true;
|
|
45403
|
+
var react_1 = __importDefault(React);
|
|
45404
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45405
|
+
var MenuSeparator = function() {
|
|
45406
|
+
return react_1["default"].createElement("hr", { className: Menu_module_scss_1["default"].separator });
|
|
45407
|
+
};
|
|
45408
|
+
MenuSeparator.displayName = "MenuSeparator";
|
|
45409
|
+
exports["default"] = MenuSeparator;
|
|
45410
|
+
})(MenuSeparator);
|
|
45411
|
+
|
|
45412
|
+
(function(exports) {
|
|
45413
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45414
|
+
if (k2 === void 0)
|
|
45415
|
+
k2 = k;
|
|
45416
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45417
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45418
|
+
desc = { enumerable: true, get: function() {
|
|
45419
|
+
return m[k];
|
|
45420
|
+
} };
|
|
45421
|
+
}
|
|
45422
|
+
Object.defineProperty(o, k2, desc);
|
|
45423
|
+
} : function(o, m, k, k2) {
|
|
45424
|
+
if (k2 === void 0)
|
|
45425
|
+
k2 = k;
|
|
45426
|
+
o[k2] = m[k];
|
|
45427
|
+
});
|
|
45428
|
+
exports.__esModule = true;
|
|
45429
|
+
exports.MenuSeparator = exports.MenuItem = exports.MenuHeader = exports.MenuList = void 0;
|
|
45430
|
+
var MenuList_1 = MenuList;
|
|
45431
|
+
__createBinding(exports, MenuList_1, "default", "MenuList");
|
|
45432
|
+
var MenuHeader_1 = MenuHeader;
|
|
45433
|
+
__createBinding(exports, MenuHeader_1, "default", "MenuHeader");
|
|
45434
|
+
var MenuItem_1 = MenuItem;
|
|
45435
|
+
__createBinding(exports, MenuItem_1, "default", "MenuItem");
|
|
45436
|
+
var MenuSeparator_1 = MenuSeparator;
|
|
45437
|
+
__createBinding(exports, MenuSeparator_1, "default", "MenuSeparator");
|
|
45438
|
+
})(MenuList$1);
|
|
45439
|
+
|
|
45440
|
+
var Text$1 = {};
|
|
45441
|
+
|
|
45442
|
+
var Text = {};
|
|
45443
|
+
|
|
45444
|
+
var Text_module = {"page-title":"Text-module_page-title__LPGyH","default-style":"Text-module_default-style__wxvqC","title":"Text-module_title__zDZi1","display":"Text-module_display__4XAjg","heading":"Text-module_heading__bdw3r","lede":"Text-module_lede__rvztp","paragraph":"Text-module_paragraph__65c7w","body":"Text-module_body__5HknB","body-bold":"Text-module_body-bold__M2YFx","small":"Text-module_small__VBWdb","small-bold":"Text-module_small-bold__IFUAu","notification":"Text-module_notification__jl725","label":"Text-module_label__gUBTw","control-action":"Text-module_control-action__BErPr","button":"Text-module_button__nPbRH","inheritBaseline":"Text-module_inheritBaseline__D0Lfs","inline":"Text-module_inline__KlYw2","defaultStyle":"Text-module_defaultStyle__Tka8v Text-module_default-style__wxvqC","pageTitle":"Text-module_pageTitle__-NMTK Text-module_page-title__LPGyH","bodyBold":"Text-module_bodyBold__CCDF7 Text-module_body-bold__M2YFx","smallBold":"Text-module_smallBold__TdPug Text-module_small-bold__IFUAu","controlAction":"Text-module_controlAction__WB-Pz Text-module_control-action__BErPr","zen-display-0":"Text-module_zen-display-0__s1w7g","zen-heading-1":"Text-module_zen-heading-1__YX01A","zen-heading-2":"Text-module_zen-heading-2__JVOtq","zen-heading-3":"Text-module_zen-heading-3__JOT3q","zen-data-large":"Text-module_zen-data-large__EgwWh","zen-data-large-units":"Text-module_zen-data-large-units__lZjpK","zen-data-medium":"Text-module_zen-data-medium__wKodD","zen-data-medium-units":"Text-module_zen-data-medium-units__zh-e8","zen-data-small":"Text-module_zen-data-small__LtxHR","zen-data-small-units":"Text-module_zen-data-small-units__0RtFJ"};
|
|
45445
|
+
|
|
45446
|
+
var Text_module$1 = /*#__PURE__*/Object.freeze({
|
|
45447
|
+
__proto__: null,
|
|
45448
|
+
default: Text_module
|
|
45449
|
+
});
|
|
45450
|
+
|
|
45451
|
+
var require$$2 = /*@__PURE__*/getAugmentedNamespace(Text_module$1);
|
|
45452
|
+
|
|
45453
|
+
(function(exports) {
|
|
45454
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45455
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45456
|
+
};
|
|
45457
|
+
exports.__esModule = true;
|
|
45458
|
+
var react_1 = __importDefault(React);
|
|
45459
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45460
|
+
var Text_module_scss_1 = __importDefault(require$$2);
|
|
45461
|
+
var Text = function(_a) {
|
|
45462
|
+
var _b;
|
|
45463
|
+
var tag = _a.tag, children = _a.children, _c = _a.inheritBaseline, inheritBaseline = _c === void 0 ? false : _c, _d = _a.inline, inline = _d === void 0 ? false : _d, _e = _a.style, style = _e === void 0 ? "default-style" : _e;
|
|
45464
|
+
return react_1["default"].createElement(tag, {
|
|
45465
|
+
className: (0, classnames_1["default"])(Text_module_scss_1["default"][style], (_b = {}, _b[Text_module_scss_1["default"].inheritBaseline] = inheritBaseline, _b[Text_module_scss_1["default"].inline] = inline, _b))
|
|
45466
|
+
}, children);
|
|
45467
|
+
};
|
|
45468
|
+
Text.displayName = "Text";
|
|
45469
|
+
exports["default"] = Text;
|
|
45470
|
+
})(Text);
|
|
45471
|
+
|
|
45472
|
+
(function(exports) {
|
|
45473
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45474
|
+
if (k2 === void 0)
|
|
45475
|
+
k2 = k;
|
|
45476
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45477
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45478
|
+
desc = { enumerable: true, get: function() {
|
|
45479
|
+
return m[k];
|
|
45480
|
+
} };
|
|
45481
|
+
}
|
|
45482
|
+
Object.defineProperty(o, k2, desc);
|
|
45483
|
+
} : function(o, m, k, k2) {
|
|
45484
|
+
if (k2 === void 0)
|
|
45485
|
+
k2 = k;
|
|
45486
|
+
o[k2] = m[k];
|
|
45487
|
+
});
|
|
45488
|
+
exports.__esModule = true;
|
|
45489
|
+
exports.Text = void 0;
|
|
45490
|
+
var Text_1 = Text;
|
|
45491
|
+
__createBinding(exports, Text_1, "default", "Text");
|
|
45492
|
+
})(Text$1);
|
|
45493
|
+
|
|
45494
|
+
var Spacing = {};
|
|
45495
|
+
|
|
45496
|
+
var padding = {};
|
|
45497
|
+
|
|
45498
|
+
var util = {};
|
|
45499
|
+
|
|
45500
|
+
util.__esModule = true;
|
|
45501
|
+
util.convertFractionToString = void 0;
|
|
45502
|
+
var convertFractionToString = function(fraction) {
|
|
45503
|
+
switch (fraction) {
|
|
45504
|
+
case 0:
|
|
45505
|
+
default:
|
|
45506
|
+
return "0";
|
|
45507
|
+
case 0.25:
|
|
45508
|
+
return "0-point-25";
|
|
45509
|
+
case 0.5:
|
|
45510
|
+
return "0-point-5";
|
|
45511
|
+
case 0.75:
|
|
45512
|
+
return "0-point-75";
|
|
45513
|
+
case 1:
|
|
45514
|
+
return "1";
|
|
45515
|
+
case 1.25:
|
|
45516
|
+
return "1-point-25";
|
|
45517
|
+
case 1.5:
|
|
45518
|
+
return "1-point-5";
|
|
45519
|
+
case 1.75:
|
|
45520
|
+
return "1-point-75";
|
|
45521
|
+
case 2:
|
|
45522
|
+
return "2";
|
|
45523
|
+
case 2.5:
|
|
45524
|
+
return "2-point-5";
|
|
45525
|
+
case 3:
|
|
45526
|
+
return "3";
|
|
45527
|
+
case 3.5:
|
|
45528
|
+
return "3-point-5";
|
|
45529
|
+
case 4:
|
|
45530
|
+
return "4";
|
|
45531
|
+
}
|
|
44809
45532
|
};
|
|
44810
|
-
|
|
45533
|
+
util.convertFractionToString = convertFractionToString;
|
|
45534
|
+
|
|
45535
|
+
var Padding_module = {"p-0":"Padding-module_p-0__MEDlm","pt-0":"Padding-module_pt-0__2lPMY","pr-0":"Padding-module_pr-0__tgwOG","pb-0":"Padding-module_pb-0__h-og-","pl-0":"Padding-module_pl-0__KQQIN","p-0-point-25":"Padding-module_p-0-point-25__WR6Pl","pt-0-point-25":"Padding-module_pt-0-point-25__OHxwL","pr-0-point-25":"Padding-module_pr-0-point-25__dw3lt","pb-0-point-25":"Padding-module_pb-0-point-25__R-G37","pl-0-point-25":"Padding-module_pl-0-point-25__4H6f8","p-0-point-5":"Padding-module_p-0-point-5__5z-Tg","pt-0-point-5":"Padding-module_pt-0-point-5__BILAZ","pr-0-point-5":"Padding-module_pr-0-point-5__Qdc6L","pb-0-point-5":"Padding-module_pb-0-point-5__FJOcg","pl-0-point-5":"Padding-module_pl-0-point-5__gctiZ","p-0-point-75":"Padding-module_p-0-point-75__SCNgd","pt-0-point-75":"Padding-module_pt-0-point-75__Cve0I","pr-0-point-75":"Padding-module_pr-0-point-75__11l9x","pb-0-point-75":"Padding-module_pb-0-point-75__WfgDh","pl-0-point-75":"Padding-module_pl-0-point-75__YKbVF","p-1":"Padding-module_p-1__jIDUT","pt-1":"Padding-module_pt-1__r358b","pr-1":"Padding-module_pr-1__fdsMH","pb-1":"Padding-module_pb-1__gkHqH","pl-1":"Padding-module_pl-1__1fvrt","p-1-point-25":"Padding-module_p-1-point-25__9q2Tk","pt-1-point-25":"Padding-module_pt-1-point-25__uYpt3","pr-1-point-25":"Padding-module_pr-1-point-25__8xYeA","pb-1-point-25":"Padding-module_pb-1-point-25__JwIfB","pl-1-point-25":"Padding-module_pl-1-point-25__-w5XU","p-1-point-5":"Padding-module_p-1-point-5__LICS6","pt-1-point-5":"Padding-module_pt-1-point-5__p9H7t","pr-1-point-5":"Padding-module_pr-1-point-5__agJTp","pb-1-point-5":"Padding-module_pb-1-point-5__Ig7SW","pl-1-point-5":"Padding-module_pl-1-point-5__iBcnI","p-1-point-75":"Padding-module_p-1-point-75__lctpg","pt-1-point-75":"Padding-module_pt-1-point-75__MVIUz","pr-1-point-75":"Padding-module_pr-1-point-75__A-Ur-","pb-1-point-75":"Padding-module_pb-1-point-75__TctUk","pl-1-point-75":"Padding-module_pl-1-point-75__ahplz","p-2":"Padding-module_p-2__iEsEq","pt-2":"Padding-module_pt-2__-uaDE","pr-2":"Padding-module_pr-2__py781","pb-2":"Padding-module_pb-2__75eso","pl-2":"Padding-module_pl-2__4L8zZ","p-2-point-5":"Padding-module_p-2-point-5__fFM5N","pt-2-point-5":"Padding-module_pt-2-point-5__aDZvm","pr-2-point-5":"Padding-module_pr-2-point-5__H-fJW","pb-2-point-5":"Padding-module_pb-2-point-5__0oSvZ","pl-2-point-5":"Padding-module_pl-2-point-5__BGKgq","p-3":"Padding-module_p-3__LltVV","pt-3":"Padding-module_pt-3__Ew6IB","pr-3":"Padding-module_pr-3__ehVq5","pb-3":"Padding-module_pb-3__u8K7J","pl-3":"Padding-module_pl-3__GLx74","p-3-point-5":"Padding-module_p-3-point-5__PyzuE","pt-3-point-5":"Padding-module_pt-3-point-5__qKa2E","pr-3-point-5":"Padding-module_pr-3-point-5__xJlsH","pb-3-point-5":"Padding-module_pb-3-point-5__H4D4H","pl-3-point-5":"Padding-module_pl-3-point-5__krW-a","p-4":"Padding-module_p-4__boMST","pt-4":"Padding-module_pt-4__lHX5n","pr-4":"Padding-module_pr-4__sl2rR","pb-4":"Padding-module_pb-4__ffDeO","pl-4":"Padding-module_pl-4__mRkKo"};
|
|
45536
|
+
|
|
45537
|
+
var Padding_module$1 = /*#__PURE__*/Object.freeze({
|
|
45538
|
+
__proto__: null,
|
|
45539
|
+
default: Padding_module
|
|
45540
|
+
});
|
|
45541
|
+
|
|
45542
|
+
var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(Padding_module$1);
|
|
45543
|
+
|
|
45544
|
+
(function(exports) {
|
|
45545
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45546
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45547
|
+
};
|
|
45548
|
+
exports.__esModule = true;
|
|
45549
|
+
exports.paddingClasses = exports.p = exports.py = exports.px = exports.pl = exports.pb = exports.pr = exports.pt = void 0;
|
|
45550
|
+
var util_1 = util;
|
|
45551
|
+
var Padding_module_scss_1 = __importDefault(require$$1$1);
|
|
45552
|
+
var pt = function(unit) {
|
|
45553
|
+
return [
|
|
45554
|
+
Padding_module_scss_1["default"]["pt-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45555
|
+
];
|
|
45556
|
+
};
|
|
45557
|
+
exports.pt = pt;
|
|
45558
|
+
var pr = function(unit) {
|
|
45559
|
+
return [
|
|
45560
|
+
Padding_module_scss_1["default"]["pr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45561
|
+
];
|
|
45562
|
+
};
|
|
45563
|
+
exports.pr = pr;
|
|
45564
|
+
var pb = function(unit) {
|
|
45565
|
+
return [
|
|
45566
|
+
Padding_module_scss_1["default"]["pb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45567
|
+
];
|
|
45568
|
+
};
|
|
45569
|
+
exports.pb = pb;
|
|
45570
|
+
var pl = function(unit) {
|
|
45571
|
+
return [
|
|
45572
|
+
Padding_module_scss_1["default"]["pl-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45573
|
+
];
|
|
45574
|
+
};
|
|
45575
|
+
exports.pl = pl;
|
|
45576
|
+
var px = function(unit) {
|
|
45577
|
+
return [
|
|
45578
|
+
Padding_module_scss_1["default"]["pl-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45579
|
+
Padding_module_scss_1["default"]["pr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45580
|
+
];
|
|
45581
|
+
};
|
|
45582
|
+
exports.px = px;
|
|
45583
|
+
var py = function(unit) {
|
|
45584
|
+
return [
|
|
45585
|
+
Padding_module_scss_1["default"]["pt-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45586
|
+
Padding_module_scss_1["default"]["pb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45587
|
+
];
|
|
45588
|
+
};
|
|
45589
|
+
exports.py = py;
|
|
45590
|
+
var p = function(unit) {
|
|
45591
|
+
var classes = [];
|
|
45592
|
+
if (typeof unit === "number") {
|
|
45593
|
+
classes.push(Padding_module_scss_1["default"]["p-".concat((0, util_1.convertFractionToString)(unit))]);
|
|
45594
|
+
} else {
|
|
45595
|
+
Object.keys(unit).forEach(function(key) {
|
|
45596
|
+
classes.push(Padding_module_scss_1["default"]["p-".concat((0, util_1.convertFractionToString)(unit[key]), "--").concat(key)]);
|
|
45597
|
+
});
|
|
45598
|
+
}
|
|
45599
|
+
return classes;
|
|
45600
|
+
};
|
|
45601
|
+
exports.p = p;
|
|
45602
|
+
var paddingClasses = function(_a) {
|
|
45603
|
+
var padding2 = _a.p, paddingTop = _a.pt, paddingRight = _a.pr, paddingBottom = _a.pb, paddingLeft = _a.pl, paddingXAxis = _a.px, paddingYAxis = _a.py, _b = _a.rtl, rtl = _b === void 0 ? false : _b;
|
|
45604
|
+
var classes = [];
|
|
45605
|
+
if (padding2 !== void 0)
|
|
45606
|
+
classes.push.apply(classes, (0, exports.p)(padding2));
|
|
45607
|
+
if (paddingTop !== void 0)
|
|
45608
|
+
classes.push.apply(classes, (0, exports.pt)(paddingTop));
|
|
45609
|
+
if (paddingBottom !== void 0)
|
|
45610
|
+
classes.push.apply(classes, (0, exports.pb)(paddingBottom));
|
|
45611
|
+
if (paddingXAxis !== void 0)
|
|
45612
|
+
classes.push.apply(classes, (0, exports.px)(paddingXAxis));
|
|
45613
|
+
if (paddingYAxis !== void 0)
|
|
45614
|
+
classes.push.apply(classes, (0, exports.py)(paddingYAxis));
|
|
45615
|
+
if (rtl) {
|
|
45616
|
+
if (paddingRight !== void 0)
|
|
45617
|
+
classes.push.apply(classes, (0, exports.pl)(paddingRight));
|
|
45618
|
+
if (paddingLeft !== void 0)
|
|
45619
|
+
classes.push.apply(classes, (0, exports.pr)(paddingLeft));
|
|
45620
|
+
} else {
|
|
45621
|
+
if (paddingRight !== void 0)
|
|
45622
|
+
classes.push.apply(classes, (0, exports.pr)(paddingRight));
|
|
45623
|
+
if (paddingLeft !== void 0)
|
|
45624
|
+
classes.push.apply(classes, (0, exports.pl)(paddingLeft));
|
|
45625
|
+
}
|
|
45626
|
+
if (padding2 === void 0 && paddingTop === void 0 && paddingRight === void 0 && paddingBottom === void 0 && paddingLeft === void 0 && paddingXAxis === void 0 && paddingYAxis === void 0) {
|
|
45627
|
+
classes.push.apply(classes, (0, exports.p)(0));
|
|
45628
|
+
}
|
|
45629
|
+
return classes;
|
|
45630
|
+
};
|
|
45631
|
+
exports.paddingClasses = paddingClasses;
|
|
45632
|
+
})(padding);
|
|
45633
|
+
|
|
45634
|
+
var margin = {};
|
|
45635
|
+
|
|
45636
|
+
var Margin_module = {"m-0":"Margin-module_m-0__hSA96","mt-0":"Margin-module_mt-0__7WGbv","mr-0":"Margin-module_mr-0__CX8k-","mb-0":"Margin-module_mb-0__LjHy2","ml-0":"Margin-module_ml-0__Ffq2J","m-0-point-25":"Margin-module_m-0-point-25__RrkvF","mt-0-point-25":"Margin-module_mt-0-point-25__lOnmq","mr-0-point-25":"Margin-module_mr-0-point-25__JYjnr","mb-0-point-25":"Margin-module_mb-0-point-25__aSIWe","ml-0-point-25":"Margin-module_ml-0-point-25__UIx-6","m-0-point-5":"Margin-module_m-0-point-5__o1ClI","mt-0-point-5":"Margin-module_mt-0-point-5__Hlw6J","mr-0-point-5":"Margin-module_mr-0-point-5__lTVga","mb-0-point-5":"Margin-module_mb-0-point-5__09Kv0","ml-0-point-5":"Margin-module_ml-0-point-5__IyBy5","m-0-point-75":"Margin-module_m-0-point-75__IttHs","mt-0-point-75":"Margin-module_mt-0-point-75__8aL1j","mr-0-point-75":"Margin-module_mr-0-point-75__1iTsr","mb-0-point-75":"Margin-module_mb-0-point-75__bcGVL","ml-0-point-75":"Margin-module_ml-0-point-75__UoIM3","m-1":"Margin-module_m-1__WoH7S","mt-1":"Margin-module_mt-1__rmDMg","mr-1":"Margin-module_mr-1__bFRhS","mb-1":"Margin-module_mb-1__6Siyc","ml-1":"Margin-module_ml-1__j3WF6","m-1-point-25":"Margin-module_m-1-point-25__aslNk","mt-1-point-25":"Margin-module_mt-1-point-25__l-Kna","mr-1-point-25":"Margin-module_mr-1-point-25__yKHfB","mb-1-point-25":"Margin-module_mb-1-point-25__k7Wnb","ml-1-point-25":"Margin-module_ml-1-point-25__tKCHD","m-1-point-5":"Margin-module_m-1-point-5__e5RRa","mt-1-point-5":"Margin-module_mt-1-point-5__0oleV","mr-1-point-5":"Margin-module_mr-1-point-5__UV2Ds","mb-1-point-5":"Margin-module_mb-1-point-5__DgIcA","ml-1-point-5":"Margin-module_ml-1-point-5__-a31T","m-1-point-75":"Margin-module_m-1-point-75__IxxDx","mt-1-point-75":"Margin-module_mt-1-point-75__zBEJc","mr-1-point-75":"Margin-module_mr-1-point-75__7oQH3","mb-1-point-75":"Margin-module_mb-1-point-75__CyezZ","ml-1-point-75":"Margin-module_ml-1-point-75__8AcEE","m-2":"Margin-module_m-2__xDAX5","mt-2":"Margin-module_mt-2__BaPgk","mr-2":"Margin-module_mr-2__-8KSg","mb-2":"Margin-module_mb-2__lqKMm","ml-2":"Margin-module_ml-2__y6zUv","m-2-point-5":"Margin-module_m-2-point-5__nPaB6","mt-2-point-5":"Margin-module_mt-2-point-5__NtVq0","mr-2-point-5":"Margin-module_mr-2-point-5__u5ycP","mb-2-point-5":"Margin-module_mb-2-point-5__KoWcH","ml-2-point-5":"Margin-module_ml-2-point-5__rKkfV","m-3":"Margin-module_m-3__3Xx0F","mt-3":"Margin-module_mt-3__M2Jx3","mr-3":"Margin-module_mr-3__Ydznr","mb-3":"Margin-module_mb-3__-jI8t","ml-3":"Margin-module_ml-3__GKa-l","m-3-point-5":"Margin-module_m-3-point-5__3ZDkz","mt-3-point-5":"Margin-module_mt-3-point-5__VBSF-","mr-3-point-5":"Margin-module_mr-3-point-5__wf0U2","mb-3-point-5":"Margin-module_mb-3-point-5__OMror","ml-3-point-5":"Margin-module_ml-3-point-5__ootW1","m-4":"Margin-module_m-4__dZ985","mt-4":"Margin-module_mt-4__BUm9K","mr-4":"Margin-module_mr-4__mKUUj","mb-4":"Margin-module_mb-4__dO-YX","ml-4":"Margin-module_ml-4__EE62n"};
|
|
45637
|
+
|
|
45638
|
+
var Margin_module$1 = /*#__PURE__*/Object.freeze({
|
|
45639
|
+
__proto__: null,
|
|
45640
|
+
default: Margin_module
|
|
45641
|
+
});
|
|
45642
|
+
|
|
45643
|
+
var require$$1 = /*@__PURE__*/getAugmentedNamespace(Margin_module$1);
|
|
45644
|
+
|
|
45645
|
+
(function(exports) {
|
|
45646
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45647
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45648
|
+
};
|
|
45649
|
+
exports.__esModule = true;
|
|
45650
|
+
exports.marginClasses = exports.m = exports.my = exports.mx = exports.ml = exports.mb = exports.mr = exports.mt = void 0;
|
|
45651
|
+
var util_1 = util;
|
|
45652
|
+
var Margin_module_scss_1 = __importDefault(require$$1);
|
|
45653
|
+
var mt = function(unit) {
|
|
45654
|
+
return [
|
|
45655
|
+
Margin_module_scss_1["default"]["mt-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45656
|
+
];
|
|
45657
|
+
};
|
|
45658
|
+
exports.mt = mt;
|
|
45659
|
+
var mr = function(unit) {
|
|
45660
|
+
return [
|
|
45661
|
+
Margin_module_scss_1["default"]["mr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45662
|
+
];
|
|
45663
|
+
};
|
|
45664
|
+
exports.mr = mr;
|
|
45665
|
+
var mb = function(unit) {
|
|
45666
|
+
return [
|
|
45667
|
+
Margin_module_scss_1["default"]["mb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45668
|
+
];
|
|
45669
|
+
};
|
|
45670
|
+
exports.mb = mb;
|
|
45671
|
+
var ml = function(unit) {
|
|
45672
|
+
return [
|
|
45673
|
+
Margin_module_scss_1["default"]["ml-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45674
|
+
];
|
|
45675
|
+
};
|
|
45676
|
+
exports.ml = ml;
|
|
45677
|
+
var mx = function(unit) {
|
|
45678
|
+
return [
|
|
45679
|
+
Margin_module_scss_1["default"]["ml-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45680
|
+
Margin_module_scss_1["default"]["mr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45681
|
+
];
|
|
45682
|
+
};
|
|
45683
|
+
exports.mx = mx;
|
|
45684
|
+
var my = function(unit) {
|
|
45685
|
+
return [
|
|
45686
|
+
Margin_module_scss_1["default"]["mt-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45687
|
+
Margin_module_scss_1["default"]["mb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45688
|
+
];
|
|
45689
|
+
};
|
|
45690
|
+
exports.my = my;
|
|
45691
|
+
var m = function(unit) {
|
|
45692
|
+
var classes = [];
|
|
45693
|
+
if (typeof unit === "number") {
|
|
45694
|
+
classes.push(Margin_module_scss_1["default"]["m-".concat((0, util_1.convertFractionToString)(unit))]);
|
|
45695
|
+
} else {
|
|
45696
|
+
Object.keys(unit).forEach(function(key) {
|
|
45697
|
+
classes.push(Margin_module_scss_1["default"]["m-".concat((0, util_1.convertFractionToString)(unit[key]), "--").concat(key)]);
|
|
45698
|
+
});
|
|
45699
|
+
}
|
|
45700
|
+
return classes;
|
|
45701
|
+
};
|
|
45702
|
+
exports.m = m;
|
|
45703
|
+
var marginClasses = function(_a) {
|
|
45704
|
+
var margin2 = _a.m, marginTop = _a.mt, marginRight = _a.mr, marginBottom = _a.mb, marginLeft = _a.ml, marginXAxis = _a.mx, marginYAxis = _a.my, _b = _a.rtl, rtl = _b === void 0 ? false : _b;
|
|
45705
|
+
var classes = [];
|
|
45706
|
+
if (margin2 !== void 0)
|
|
45707
|
+
classes.push.apply(classes, (0, exports.m)(margin2));
|
|
45708
|
+
if (marginTop !== void 0)
|
|
45709
|
+
classes.push.apply(classes, (0, exports.mt)(marginTop));
|
|
45710
|
+
if (marginBottom !== void 0)
|
|
45711
|
+
classes.push.apply(classes, (0, exports.mb)(marginBottom));
|
|
45712
|
+
if (marginXAxis !== void 0)
|
|
45713
|
+
classes.push.apply(classes, (0, exports.mx)(marginXAxis));
|
|
45714
|
+
if (marginYAxis !== void 0)
|
|
45715
|
+
classes.push.apply(classes, (0, exports.my)(marginYAxis));
|
|
45716
|
+
if (rtl) {
|
|
45717
|
+
if (marginRight !== void 0)
|
|
45718
|
+
classes.push.apply(classes, (0, exports.ml)(marginRight));
|
|
45719
|
+
if (marginLeft !== void 0)
|
|
45720
|
+
classes.push.apply(classes, (0, exports.mr)(marginLeft));
|
|
45721
|
+
} else {
|
|
45722
|
+
if (marginRight !== void 0)
|
|
45723
|
+
classes.push.apply(classes, (0, exports.mr)(marginRight));
|
|
45724
|
+
if (marginLeft !== void 0)
|
|
45725
|
+
classes.push.apply(classes, (0, exports.ml)(marginLeft));
|
|
45726
|
+
}
|
|
45727
|
+
if (margin2 === void 0 && marginTop === void 0 && marginRight === void 0 && marginBottom === void 0 && marginLeft === void 0 && marginXAxis === void 0 && marginYAxis === void 0) {
|
|
45728
|
+
classes.push.apply(classes, (0, exports.m)(0));
|
|
45729
|
+
}
|
|
45730
|
+
return classes;
|
|
45731
|
+
};
|
|
45732
|
+
exports.marginClasses = marginClasses;
|
|
45733
|
+
})(margin);
|
|
45734
|
+
|
|
45735
|
+
var types = {};
|
|
45736
|
+
|
|
45737
|
+
types.__esModule = true;
|
|
45738
|
+
|
|
45739
|
+
(function(exports) {
|
|
45740
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45741
|
+
if (k2 === void 0)
|
|
45742
|
+
k2 = k;
|
|
45743
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45744
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45745
|
+
desc = { enumerable: true, get: function() {
|
|
45746
|
+
return m[k];
|
|
45747
|
+
} };
|
|
45748
|
+
}
|
|
45749
|
+
Object.defineProperty(o, k2, desc);
|
|
45750
|
+
} : function(o, m, k, k2) {
|
|
45751
|
+
if (k2 === void 0)
|
|
45752
|
+
k2 = k;
|
|
45753
|
+
o[k2] = m[k];
|
|
45754
|
+
});
|
|
45755
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
45756
|
+
for (var p in m)
|
|
45757
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
45758
|
+
__createBinding(exports2, m, p);
|
|
45759
|
+
};
|
|
45760
|
+
exports.__esModule = true;
|
|
45761
|
+
__exportStar(padding, exports);
|
|
45762
|
+
__exportStar(margin, exports);
|
|
45763
|
+
__exportStar(types, exports);
|
|
45764
|
+
})(Spacing);
|
|
45765
|
+
|
|
45766
|
+
var Box$1 = {};
|
|
45767
|
+
|
|
45768
|
+
var Box = {};
|
|
45769
|
+
|
|
45770
|
+
(function(exports) {
|
|
45771
|
+
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
45772
|
+
__assign = Object.assign || function(t) {
|
|
45773
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
45774
|
+
s = arguments[i];
|
|
45775
|
+
for (var p in s)
|
|
45776
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
45777
|
+
t[p] = s[p];
|
|
45778
|
+
}
|
|
45779
|
+
return t;
|
|
45780
|
+
};
|
|
45781
|
+
return __assign.apply(this, arguments);
|
|
45782
|
+
};
|
|
45783
|
+
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
45784
|
+
var t = {};
|
|
45785
|
+
for (var p in s)
|
|
45786
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
45787
|
+
t[p] = s[p];
|
|
45788
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
45789
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
45790
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
45791
|
+
t[p[i]] = s[p[i]];
|
|
45792
|
+
}
|
|
45793
|
+
return t;
|
|
45794
|
+
};
|
|
45795
|
+
var __spreadArray = commonjsGlobal && commonjsGlobal.__spreadArray || function(to, from, pack) {
|
|
45796
|
+
if (pack || arguments.length === 2)
|
|
45797
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
45798
|
+
if (ar || !(i in from)) {
|
|
45799
|
+
if (!ar)
|
|
45800
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
45801
|
+
ar[i] = from[i];
|
|
45802
|
+
}
|
|
45803
|
+
}
|
|
45804
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
45805
|
+
};
|
|
45806
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45807
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45808
|
+
};
|
|
45809
|
+
exports.__esModule = true;
|
|
45810
|
+
exports.Box = void 0;
|
|
45811
|
+
var react_1 = __importDefault(React);
|
|
45812
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45813
|
+
var Spacing_1 = Spacing;
|
|
45814
|
+
var Box = function(_a) {
|
|
45815
|
+
var children = _a.children, _b = _a.rtl, rtl = _b === void 0 ? false : _b, m = _a.m, mt = _a.mt, mr = _a.mr, mb = _a.mb, ml = _a.ml, mx = _a.mx, my = _a.my, p = _a.p, pt = _a.pt, pr = _a.pr, pb = _a.pb, pl = _a.pl, px = _a.px, py = _a.py, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "rtl", "m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "classNameOverride"]);
|
|
45816
|
+
var classes = __spreadArray(__spreadArray([], (0, Spacing_1.paddingClasses)({ p, pt, pr, pb, pl, px, py, rtl }), true), (0, Spacing_1.marginClasses)({ m, mt, mr, mb, ml, mx, my, rtl }), true);
|
|
45817
|
+
return react_1["default"].createElement("div", __assign({ className: (0, classnames_1["default"])(classes, classNameOverride) }, restProps), children);
|
|
45818
|
+
};
|
|
45819
|
+
exports.Box = Box;
|
|
45820
|
+
exports.Box.displayName = "Box";
|
|
45821
|
+
})(Box);
|
|
45822
|
+
|
|
45823
|
+
(function(exports) {
|
|
45824
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45825
|
+
if (k2 === void 0)
|
|
45826
|
+
k2 = k;
|
|
45827
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45828
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45829
|
+
desc = { enumerable: true, get: function() {
|
|
45830
|
+
return m[k];
|
|
45831
|
+
} };
|
|
45832
|
+
}
|
|
45833
|
+
Object.defineProperty(o, k2, desc);
|
|
45834
|
+
} : function(o, m, k, k2) {
|
|
45835
|
+
if (k2 === void 0)
|
|
45836
|
+
k2 = k;
|
|
45837
|
+
o[k2] = m[k];
|
|
45838
|
+
});
|
|
45839
|
+
exports.__esModule = true;
|
|
45840
|
+
exports.Box = void 0;
|
|
45841
|
+
var Box_1 = Box;
|
|
45842
|
+
__createBinding(exports, Box_1, "Box");
|
|
45843
|
+
})(Box$1);
|
|
45844
|
+
|
|
45845
|
+
(function(exports) {
|
|
45846
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45847
|
+
if (k2 === void 0)
|
|
45848
|
+
k2 = k;
|
|
45849
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45850
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45851
|
+
desc = { enumerable: true, get: function() {
|
|
45852
|
+
return m[k];
|
|
45853
|
+
} };
|
|
45854
|
+
}
|
|
45855
|
+
Object.defineProperty(o, k2, desc);
|
|
45856
|
+
} : function(o, m, k, k2) {
|
|
45857
|
+
if (k2 === void 0)
|
|
45858
|
+
k2 = k;
|
|
45859
|
+
o[k2] = m[k];
|
|
45860
|
+
});
|
|
45861
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
45862
|
+
for (var p in m)
|
|
45863
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
45864
|
+
__createBinding(exports2, m, p);
|
|
45865
|
+
};
|
|
45866
|
+
exports.__esModule = true;
|
|
45867
|
+
__exportStar(Dropdown$1, exports);
|
|
45868
|
+
__exportStar(Layout$1, exports);
|
|
45869
|
+
__exportStar(Icon$1, exports);
|
|
45870
|
+
__exportStar(MenuList$1, exports);
|
|
45871
|
+
__exportStar(Text$1, exports);
|
|
45872
|
+
__exportStar(Spacing, exports);
|
|
45873
|
+
__exportStar(Box$1, exports);
|
|
45874
|
+
})(components);
|
|
45875
|
+
|
|
45876
|
+
(function(exports) {
|
|
45877
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45878
|
+
if (k2 === void 0)
|
|
45879
|
+
k2 = k;
|
|
45880
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45881
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45882
|
+
desc = { enumerable: true, get: function() {
|
|
45883
|
+
return m[k];
|
|
45884
|
+
} };
|
|
45885
|
+
}
|
|
45886
|
+
Object.defineProperty(o, k2, desc);
|
|
45887
|
+
} : function(o, m, k, k2) {
|
|
45888
|
+
if (k2 === void 0)
|
|
45889
|
+
k2 = k;
|
|
45890
|
+
o[k2] = m[k];
|
|
45891
|
+
});
|
|
45892
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
45893
|
+
for (var p in m)
|
|
45894
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
45895
|
+
__createBinding(exports2, m, p);
|
|
45896
|
+
};
|
|
45897
|
+
exports.__esModule = true;
|
|
45898
|
+
__exportStar(components, exports);
|
|
45899
|
+
})(componentLibrary);
|
|
44811
45900
|
|
|
44812
45901
|
var img = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 44.1 (41455) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3eIcons/Informational/check%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpolygon id='path-1' points='8.33333333 14.3416667 4.16666667 10.175 5.34166667 9 8.33333333 11.9833333 14.6583333 5.65833333 15.8333333 6.84166667'%3e%3c/polygon%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='Icons/Informational/check'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
44813
45902
|
var check = img;
|
|
@@ -44830,7 +45919,7 @@ var Option = function(_a) {
|
|
|
44830
45919
|
classNameOverride
|
|
44831
45920
|
]), "aria-label": item.textValue }),
|
|
44832
45921
|
item.rendered,
|
|
44833
|
-
React.createElement("span", { className: index.classNames([styles$4.icon, isSelected && styles$4.isSelected]) }, isSelected && React.createElement(Icon, { icon: check, role: "presentation" }))
|
|
45922
|
+
React.createElement("span", { className: index.classNames([styles$4.icon, isSelected && styles$4.isSelected]) }, isSelected && React.createElement(componentLibrary.Icon, { icon: check, role: "presentation" }))
|
|
44834
45923
|
);
|
|
44835
45924
|
};
|
|
44836
45925
|
Option.displayName = "Option";
|