@kaizen/components 1.7.1 → 1.7.3
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 +16 -0
- package/dist/cjs/future.js +1 -1
- package/dist/cjs/{index-ac63d1b4.js → index-7202af91.js} +1 -1
- package/dist/cjs/{index-ac63d1b4.js.map → index-7202af91.js.map} +1 -1
- package/dist/cjs/index.js +1230 -142
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/future.js +1 -1
- package/dist/esm/{index-db57427c.js → index-e494c34a.js} +1 -1
- package/dist/esm/{index-db57427c.js.map → index-e494c34a.js.map} +1 -1
- package/dist/esm/index.js +1230 -142
- package/dist/esm/index.js.map +1 -1
- package/package.json +8 -8
package/dist/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-7202af91.js');
|
|
5
5
|
var designTokens = require('@kaizen/design-tokens');
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
@@ -3792,8 +3792,8 @@ var hideOthers = function (originalTarget, parentNode, markerName) {
|
|
|
3792
3792
|
};
|
|
3793
3793
|
|
|
3794
3794
|
var Style = styleSingleton();
|
|
3795
|
-
var styles$
|
|
3796
|
-
var InteractivityDisabler = function () { return React__namespace.createElement(Style, { styles: styles$
|
|
3795
|
+
var styles$d = "\n [" + focusHiddenMarker + "] {\n pointer-events: none !important;\n }\n";
|
|
3796
|
+
var InteractivityDisabler = function () { return React__namespace.createElement(Style, { styles: styles$d }); };
|
|
3797
3797
|
|
|
3798
3798
|
var extractRef = function (ref) {
|
|
3799
3799
|
return 'current' in ref ? ref.current : ref;
|
|
@@ -35059,7 +35059,7 @@ var round = Math.round;
|
|
|
35059
35059
|
function getUAString() {
|
|
35060
35060
|
var uaData = navigator.userAgentData;
|
|
35061
35061
|
|
|
35062
|
-
if (uaData != null && uaData.brands) {
|
|
35062
|
+
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
|
|
35063
35063
|
return uaData.brands.map(function (item) {
|
|
35064
35064
|
return item.brand + "/" + item.version;
|
|
35065
35065
|
}).join(' ');
|
|
@@ -35387,10 +35387,9 @@ var unsetSides = {
|
|
|
35387
35387
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
35388
35388
|
// cleanly divide the values into the appropriate subpixels.
|
|
35389
35389
|
|
|
35390
|
-
function roundOffsetsByDPR(_ref) {
|
|
35390
|
+
function roundOffsetsByDPR(_ref, win) {
|
|
35391
35391
|
var x = _ref.x,
|
|
35392
35392
|
y = _ref.y;
|
|
35393
|
-
var win = window;
|
|
35394
35393
|
var dpr = win.devicePixelRatio || 1;
|
|
35395
35394
|
return {
|
|
35396
35395
|
x: round(x * dpr) / dpr || 0,
|
|
@@ -35473,7 +35472,7 @@ function mapToStyles(_ref2) {
|
|
|
35473
35472
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
35474
35473
|
x: x,
|
|
35475
35474
|
y: y
|
|
35476
|
-
}) : {
|
|
35475
|
+
}, getWindow(popper)) : {
|
|
35477
35476
|
x: x,
|
|
35478
35477
|
y: y
|
|
35479
35478
|
};
|
|
@@ -37275,7 +37274,7 @@ var esm = /*#__PURE__*/Object.freeze({
|
|
|
37275
37274
|
usePopper: usePopper
|
|
37276
37275
|
});
|
|
37277
37276
|
|
|
37278
|
-
var styles$
|
|
37277
|
+
var styles$c = {"filterPopover":"FilterPopover-module_filterPopover__OgOEM"};
|
|
37279
37278
|
|
|
37280
37279
|
var FilterPopover = function(_a) {
|
|
37281
37280
|
var children = _a.children, referenceElement = _a.referenceElement, popperOptions = _a.popperOptions, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "referenceElement", "popperOptions", "classNameOverride"]);
|
|
@@ -37288,7 +37287,7 @@ var FilterPopover = function(_a) {
|
|
|
37288
37287
|
}
|
|
37289
37288
|
}
|
|
37290
37289
|
], placement: "bottom-start", strategy: "fixed" }, popperOptions)), popperStyles = _c.styles, popperAttributes = _c.attributes;
|
|
37291
|
-
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$
|
|
37290
|
+
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);
|
|
37292
37291
|
};
|
|
37293
37292
|
FilterPopover.displayName = "FilterPopover";
|
|
37294
37293
|
|
|
@@ -37333,31 +37332,31 @@ var Filter = function(_a) {
|
|
|
37333
37332
|
};
|
|
37334
37333
|
Filter.displayName = "Filter";
|
|
37335
37334
|
|
|
37336
|
-
var styles$
|
|
37335
|
+
var styles$b = {"filterContents":"FilterContents-module_filterContents__uNUpd"};
|
|
37337
37336
|
|
|
37338
37337
|
var FilterContents = function(_a) {
|
|
37339
37338
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
37340
|
-
return React.createElement("div", index.__assign({ className: index.classNames(styles$
|
|
37339
|
+
return React.createElement("div", index.__assign({ className: index.classNames(styles$b.filterContents, classNameOverride) }, restProps), children);
|
|
37341
37340
|
};
|
|
37342
37341
|
FilterContents.displayName = "FilterContents";
|
|
37343
37342
|
|
|
37344
|
-
var yellow
|
|
37345
|
-
var reset
|
|
37346
|
-
var warn
|
|
37347
|
-
console.warn("".concat(yellow
|
|
37343
|
+
var yellow = "\x1B[33m ";
|
|
37344
|
+
var reset = "\x1B[0m ";
|
|
37345
|
+
var warn = function(message) {
|
|
37346
|
+
console.warn("".concat(yellow, "\nKAIZEN WARNING:\n").concat(singleLine(message)).concat(reset, "\n"));
|
|
37348
37347
|
};
|
|
37349
|
-
var singleLine
|
|
37348
|
+
var singleLine = function(message) {
|
|
37350
37349
|
return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
37351
37350
|
};
|
|
37352
37351
|
|
|
37353
|
-
var styles$
|
|
37352
|
+
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"};
|
|
37354
37353
|
|
|
37355
37354
|
var SVG = function(_a) {
|
|
37356
37355
|
var _b, _c;
|
|
37357
37356
|
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"]);
|
|
37358
37357
|
var isMeaningfulImg = role === "img";
|
|
37359
37358
|
if (isMeaningfulImg && !title) {
|
|
37360
|
-
warn
|
|
37359
|
+
warn(`
|
|
37361
37360
|
Icon with role "img" missing a title attribute.
|
|
37362
37361
|
|
|
37363
37362
|
Assistive technologies that enable vision-impaired users to read web pages
|
|
@@ -37382,7 +37381,7 @@ var SVG = function(_a) {
|
|
|
37382
37381
|
return React.createElement(
|
|
37383
37382
|
"svg",
|
|
37384
37383
|
index.__assign({
|
|
37385
|
-
className: index.classNames(styles$
|
|
37384
|
+
className: index.classNames(styles$a.icon, classNameOverride, (_c = {}, _c[styles$a.inheritSize] = inheritSize, _c)),
|
|
37386
37385
|
viewBox,
|
|
37387
37386
|
// Work around IE11 making all SVGs focusable.
|
|
37388
37387
|
// See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
|
|
@@ -37451,15 +37450,15 @@ var isRefObject = function(ref) {
|
|
|
37451
37450
|
return ref !== null && "current" in ref;
|
|
37452
37451
|
};
|
|
37453
37452
|
|
|
37454
|
-
var styles$
|
|
37453
|
+
var styles$9 = {"filterButtonBase":"FilterButtonBase-module_filterButtonBase__I8mV-"};
|
|
37455
37454
|
|
|
37456
37455
|
var FilterButtonBase = React.forwardRef(function(_a, ref) {
|
|
37457
37456
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
37458
|
-
return React.createElement("button", index.__assign({ ref, className: index.classNames(styles$
|
|
37457
|
+
return React.createElement("button", index.__assign({ ref, className: index.classNames(styles$9.filterButtonBase, classNameOverride) }, restProps), children);
|
|
37459
37458
|
});
|
|
37460
37459
|
FilterButtonBase.displayName = "FilterButtonBase";
|
|
37461
37460
|
|
|
37462
|
-
var styles$
|
|
37461
|
+
var styles$8 = {"filterButton":"FilterButton-module_filterButton__Q2dMX","labelContainer":"FilterButton-module_labelContainer__5G-MD","hasSelectedValues":"FilterButton-module_hasSelectedValues__dyQkL","labelSeparator":"FilterButton-module_labelSeparator__xrkAx"};
|
|
37463
37462
|
|
|
37464
37463
|
var FilterButton = React.forwardRef(function(_a, ref) {
|
|
37465
37464
|
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"]);
|
|
@@ -37468,15 +37467,15 @@ var FilterButton = React.forwardRef(function(_a, ref) {
|
|
|
37468
37467
|
var selectedValuesLabel = selectedValue;
|
|
37469
37468
|
return React.createElement(
|
|
37470
37469
|
FilterButtonBase,
|
|
37471
|
-
index.__assign({ ref: triggerRef, classNameOverride: index.classNames(styles$
|
|
37472
|
-
React.createElement("span", { className: styles$
|
|
37470
|
+
index.__assign({ ref: triggerRef, classNameOverride: index.classNames(styles$8.filterButton, classNameOverride), "aria-haspopup": "true", "aria-expanded": isOpen }, restProps),
|
|
37471
|
+
React.createElement("span", { className: styles$8.labelContainer }, selectedValuesLabel ? React.createElement(
|
|
37473
37472
|
React.Fragment,
|
|
37474
37473
|
null,
|
|
37475
37474
|
React.createElement(
|
|
37476
37475
|
"span",
|
|
37477
|
-
{ className: styles$
|
|
37476
|
+
{ className: styles$8.hasSelectedValues },
|
|
37478
37477
|
React.createElement("span", null, label),
|
|
37479
|
-
React.createElement("span", { className: styles$
|
|
37478
|
+
React.createElement("span", { className: styles$8.labelSeparator }, ":")
|
|
37480
37479
|
),
|
|
37481
37480
|
React.createElement("span", null, selectedValuesLabel)
|
|
37482
37481
|
) : label),
|
|
@@ -37491,7 +37490,7 @@ var Tooltip$1 = {};
|
|
|
37491
37490
|
|
|
37492
37491
|
var Tooltip = {};
|
|
37493
37492
|
|
|
37494
|
-
var require$$3 = /*@__PURE__*/getAugmentedNamespace(esm);
|
|
37493
|
+
var require$$3$2 = /*@__PURE__*/getAugmentedNamespace(esm);
|
|
37495
37494
|
|
|
37496
37495
|
var AppearanceAnim = {};
|
|
37497
37496
|
|
|
@@ -37504,7 +37503,7 @@ var index_module = /*#__PURE__*/Object.freeze({
|
|
|
37504
37503
|
useThrottledCallback: f$1
|
|
37505
37504
|
});
|
|
37506
37505
|
|
|
37507
|
-
var require$$1$
|
|
37506
|
+
var require$$1$5 = /*@__PURE__*/getAugmentedNamespace(index_module);
|
|
37508
37507
|
|
|
37509
37508
|
(function(exports) {
|
|
37510
37509
|
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
@@ -37566,7 +37565,7 @@ var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(index_module);
|
|
|
37566
37565
|
exports.__esModule = true;
|
|
37567
37566
|
exports.useAnimation = exports.AnimationProvider = exports.AnimationContext = void 0;
|
|
37568
37567
|
var react_1 = __importStar(React);
|
|
37569
|
-
var use_debounce_1 = require$$1$
|
|
37568
|
+
var use_debounce_1 = require$$1$5;
|
|
37570
37569
|
var ANIM_DURATION_MS = 400;
|
|
37571
37570
|
exports.AnimationContext = react_1["default"].createContext({
|
|
37572
37571
|
isVisible: false,
|
|
@@ -38226,12 +38225,12 @@ var esmBrowser = /*#__PURE__*/Object.freeze({
|
|
|
38226
38225
|
version: version
|
|
38227
38226
|
});
|
|
38228
38227
|
|
|
38229
|
-
var require$$1 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
|
|
38228
|
+
var require$$1$4 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
|
|
38230
38229
|
|
|
38231
38230
|
useUuid$1.__esModule = true;
|
|
38232
38231
|
useUuid$1.useUuid = void 0;
|
|
38233
38232
|
var react_1 = React;
|
|
38234
|
-
var uuid_1 = require$$1;
|
|
38233
|
+
var uuid_1 = require$$1$4;
|
|
38235
38234
|
var useUuid = function() {
|
|
38236
38235
|
return (0, react_1.useMemo)(function() {
|
|
38237
38236
|
return (0, uuid_1.v4)();
|
|
@@ -38246,7 +38245,7 @@ var Tooltip_module$1 = /*#__PURE__*/Object.freeze({
|
|
|
38246
38245
|
default: Tooltip_module
|
|
38247
38246
|
});
|
|
38248
38247
|
|
|
38249
|
-
var require$$6 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
38248
|
+
var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
38250
38249
|
|
|
38251
38250
|
(function(exports) {
|
|
38252
38251
|
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
@@ -38301,10 +38300,10 @@ var require$$6 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
|
38301
38300
|
var react_1 = __importStar(React);
|
|
38302
38301
|
var react_dom_1 = __importDefault(reactDomExports);
|
|
38303
38302
|
var classnames_1 = __importDefault(index.classnamesExports);
|
|
38304
|
-
var react_popper_1 = require$$3;
|
|
38303
|
+
var react_popper_1 = require$$3$2;
|
|
38305
38304
|
var AppearanceAnim_1 = AppearanceAnim;
|
|
38306
38305
|
var useUuid_1 = useUuid$1;
|
|
38307
|
-
var Tooltip_module_scss_1 = __importDefault(require$$6);
|
|
38306
|
+
var Tooltip_module_scss_1 = __importDefault(require$$6$1);
|
|
38308
38307
|
var positionToPlacement = /* @__PURE__ */ new Map([
|
|
38309
38308
|
["above", "top"],
|
|
38310
38309
|
["below", "bottom"],
|
|
@@ -38490,7 +38489,7 @@ var ClearIcon = function(props) {
|
|
|
38490
38489
|
);
|
|
38491
38490
|
};
|
|
38492
38491
|
|
|
38493
|
-
var styles$
|
|
38492
|
+
var styles$7 = {"buttonGroup":"ButtonGroup-module_buttonGroup__bsy2X","child":"ButtonGroup-module_child__K6AP-","firstChild":"ButtonGroup-module_firstChild__uEn1j","lastChild":"ButtonGroup-module_lastChild__Vicsx"};
|
|
38494
38493
|
|
|
38495
38494
|
var isFilterButton = function(node) {
|
|
38496
38495
|
return React.isValidElement(node) && node.type === FilterButtonBase;
|
|
@@ -38498,11 +38497,11 @@ var isFilterButton = function(node) {
|
|
|
38498
38497
|
var ButtonGroup = function(_a) {
|
|
38499
38498
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
38500
38499
|
var childCount = React.Children.count(children);
|
|
38501
|
-
var containerProps = index.__assign({ role: "group", className: index.classNames(styles$
|
|
38500
|
+
var containerProps = index.__assign({ role: "group", className: index.classNames(styles$7.buttonGroup, classNameOverride) }, restProps);
|
|
38502
38501
|
if (childCount === 1)
|
|
38503
38502
|
return React.createElement("div", index.__assign({}, containerProps), children);
|
|
38504
38503
|
return React.createElement("div", index.__assign({}, containerProps), React.Children.map(children, function(child, index$1) {
|
|
38505
|
-
var buttonClassNames = index.classNames(styles$
|
|
38504
|
+
var buttonClassNames = index.classNames(styles$7.child, index$1 === 0 && styles$7.firstChild, index$1 === childCount - 1 && styles$7.lastChild, child.props.classNameOverride);
|
|
38506
38505
|
if (child.type === tooltip.Tooltip) {
|
|
38507
38506
|
var button = child.props.children;
|
|
38508
38507
|
if (isFilterButton(button)) {
|
|
@@ -45030,46 +45029,46 @@ function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
|
|
|
45030
45029
|
};
|
|
45031
45030
|
}
|
|
45032
45031
|
|
|
45033
|
-
var styles$
|
|
45032
|
+
var styles$6 = {"listBox":"ListBox-module_listBox__FQ9sQ","focus":"ListBox-module_focus__Tm-jn"};
|
|
45034
45033
|
|
|
45035
45034
|
var ListBox = function(_a) {
|
|
45036
45035
|
var children = _a.children, menuProps = _a.menuProps, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "menuProps", "classNameOverride"]);
|
|
45037
45036
|
var state = useSelectContext().state;
|
|
45038
45037
|
var ref = React.useRef(null);
|
|
45039
45038
|
var listBoxProps = $c132121280ec012d$export$50eacbbf140a3141(index.__assign(index.__assign({}, menuProps), { disallowEmptySelection: true, autoFocus: "first" }), state, ref).listBoxProps;
|
|
45040
|
-
return React.createElement("ul", index.__assign({ ref, className: index.classNames(styles$
|
|
45039
|
+
return React.createElement("ul", index.__assign({ ref, className: index.classNames(styles$6.listBox, classNameOverride) }, listBoxProps, restProps), children);
|
|
45041
45040
|
};
|
|
45042
45041
|
ListBox.displayName = "ListBox";
|
|
45043
45042
|
|
|
45044
|
-
var styles$
|
|
45043
|
+
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"};
|
|
45045
45044
|
|
|
45046
|
-
var __defProp$
|
|
45045
|
+
var __defProp$1 = Object.defineProperty;
|
|
45047
45046
|
var __defProps = Object.defineProperties;
|
|
45048
45047
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
45049
|
-
var __getOwnPropSymbols$
|
|
45050
|
-
var __hasOwnProp$
|
|
45051
|
-
var __propIsEnum$
|
|
45052
|
-
var __defNormalProp$
|
|
45053
|
-
var __spreadValues$
|
|
45048
|
+
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
45049
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
45050
|
+
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
45051
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
45052
|
+
var __spreadValues$1 = (a, b) => {
|
|
45054
45053
|
for (var prop in b || (b = {}))
|
|
45055
|
-
if (__hasOwnProp$
|
|
45056
|
-
__defNormalProp$
|
|
45057
|
-
if (__getOwnPropSymbols$
|
|
45058
|
-
for (var prop of __getOwnPropSymbols$
|
|
45059
|
-
if (__propIsEnum$
|
|
45060
|
-
__defNormalProp$
|
|
45054
|
+
if (__hasOwnProp$1.call(b, prop))
|
|
45055
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
45056
|
+
if (__getOwnPropSymbols$1)
|
|
45057
|
+
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
45058
|
+
if (__propIsEnum$1.call(b, prop))
|
|
45059
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
45061
45060
|
}
|
|
45062
45061
|
return a;
|
|
45063
45062
|
};
|
|
45064
45063
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
45065
|
-
var __objRest$
|
|
45064
|
+
var __objRest$1 = (source, exclude) => {
|
|
45066
45065
|
var target = {};
|
|
45067
45066
|
for (var prop in source)
|
|
45068
|
-
if (__hasOwnProp$
|
|
45067
|
+
if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
45069
45068
|
target[prop] = source[prop];
|
|
45070
|
-
if (source != null && __getOwnPropSymbols$
|
|
45071
|
-
for (var prop of __getOwnPropSymbols$
|
|
45072
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
45069
|
+
if (source != null && __getOwnPropSymbols$1)
|
|
45070
|
+
for (var prop of __getOwnPropSymbols$1(source)) {
|
|
45071
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
|
|
45073
45072
|
target[prop] = source[prop];
|
|
45074
45073
|
}
|
|
45075
45074
|
return target;
|
|
@@ -45082,7 +45081,7 @@ const Heading = (_a) => {
|
|
|
45082
45081
|
variant,
|
|
45083
45082
|
color = "dark",
|
|
45084
45083
|
classNameOverride
|
|
45085
|
-
} = _b, restProps = __objRest$
|
|
45084
|
+
} = _b, restProps = __objRest$1(_b, [
|
|
45086
45085
|
"children",
|
|
45087
45086
|
"tag",
|
|
45088
45087
|
"variant",
|
|
@@ -45091,13 +45090,13 @@ const Heading = (_a) => {
|
|
|
45091
45090
|
]);
|
|
45092
45091
|
const inferredTag = tag === void 0 ? translateHeadingLevelToTag(variant) : tag;
|
|
45093
45092
|
const className = index.classNames([
|
|
45094
|
-
styles$
|
|
45095
|
-
styles$
|
|
45093
|
+
styles$5.heading,
|
|
45094
|
+
styles$5[variant],
|
|
45096
45095
|
classNameOverride,
|
|
45097
|
-
styles$
|
|
45098
|
-
VARIANTS_24PX_OR_GREATER.includes(variant) ? styles$
|
|
45096
|
+
styles$5[color],
|
|
45097
|
+
VARIANTS_24PX_OR_GREATER.includes(variant) ? styles$5.large : styles$5.small
|
|
45099
45098
|
]);
|
|
45100
|
-
return React.createElement(inferredTag, __spreadProps(__spreadValues$
|
|
45099
|
+
return React.createElement(inferredTag, __spreadProps(__spreadValues$1({}, restProps), { className }), children);
|
|
45101
45100
|
};
|
|
45102
45101
|
Heading.displayName = "Heading";
|
|
45103
45102
|
const translateHeadingLevelToTag = (headingLevel) => {
|
|
@@ -45119,67 +45118,107 @@ const translateHeadingLevelToTag = (headingLevel) => {
|
|
|
45119
45118
|
}
|
|
45120
45119
|
};
|
|
45121
45120
|
|
|
45122
|
-
|
|
45123
|
-
const reset = "\x1B[0m ";
|
|
45124
|
-
const warn = (message) => {
|
|
45125
|
-
console.warn(
|
|
45126
|
-
`${yellow}
|
|
45127
|
-
CULTUREAMP UI WARNING:
|
|
45128
|
-
${singleLine(message)}${reset}
|
|
45129
|
-
`
|
|
45130
|
-
);
|
|
45131
|
-
};
|
|
45132
|
-
const singleLine = (message) => message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
45121
|
+
var componentLibrary = {};
|
|
45133
45122
|
|
|
45134
|
-
var
|
|
45123
|
+
var components = {};
|
|
45135
45124
|
|
|
45136
|
-
var
|
|
45137
|
-
|
|
45138
|
-
var
|
|
45139
|
-
|
|
45140
|
-
var
|
|
45141
|
-
|
|
45142
|
-
|
|
45143
|
-
|
|
45144
|
-
|
|
45145
|
-
|
|
45146
|
-
|
|
45147
|
-
|
|
45148
|
-
|
|
45149
|
-
|
|
45150
|
-
|
|
45151
|
-
|
|
45152
|
-
|
|
45153
|
-
|
|
45154
|
-
|
|
45155
|
-
|
|
45156
|
-
|
|
45157
|
-
|
|
45158
|
-
|
|
45159
|
-
|
|
45160
|
-
|
|
45161
|
-
|
|
45162
|
-
|
|
45163
|
-
|
|
45164
|
-
|
|
45165
|
-
|
|
45166
|
-
|
|
45167
|
-
|
|
45168
|
-
|
|
45169
|
-
|
|
45170
|
-
|
|
45171
|
-
|
|
45172
|
-
}
|
|
45173
|
-
|
|
45174
|
-
|
|
45175
|
-
"
|
|
45176
|
-
|
|
45177
|
-
|
|
45178
|
-
|
|
45179
|
-
|
|
45180
|
-
|
|
45181
|
-
|
|
45182
|
-
|
|
45125
|
+
var Dropdown$1 = {};
|
|
45126
|
+
|
|
45127
|
+
var Dropdown = {};
|
|
45128
|
+
|
|
45129
|
+
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";
|
|
45130
|
+
|
|
45131
|
+
var chevronDown_icon = /*#__PURE__*/Object.freeze({
|
|
45132
|
+
__proto__: null,
|
|
45133
|
+
default: img$2
|
|
45134
|
+
});
|
|
45135
|
+
|
|
45136
|
+
var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(chevronDown_icon);
|
|
45137
|
+
|
|
45138
|
+
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";
|
|
45139
|
+
|
|
45140
|
+
var ellipsis_icon = /*#__PURE__*/Object.freeze({
|
|
45141
|
+
__proto__: null,
|
|
45142
|
+
default: img$1
|
|
45143
|
+
});
|
|
45144
|
+
|
|
45145
|
+
var require$$3$1 = /*@__PURE__*/getAugmentedNamespace(ellipsis_icon);
|
|
45146
|
+
|
|
45147
|
+
var Icon$1 = {};
|
|
45148
|
+
|
|
45149
|
+
var Icon = {};
|
|
45150
|
+
|
|
45151
|
+
var console$1 = {};
|
|
45152
|
+
|
|
45153
|
+
(function(exports) {
|
|
45154
|
+
exports.__esModule = true;
|
|
45155
|
+
exports.singleLine = exports.warn = exports.error = void 0;
|
|
45156
|
+
var red = "\x1B[31m ";
|
|
45157
|
+
var yellow = "\x1B[33m ";
|
|
45158
|
+
var reset = "\x1B[0m ";
|
|
45159
|
+
var error = function(message) {
|
|
45160
|
+
throw new Error("".concat(red, "\nCULTUREAMP UI ERROR:\n").concat((0, exports.singleLine)(message)).concat(reset, "\n"));
|
|
45161
|
+
};
|
|
45162
|
+
exports.error = error;
|
|
45163
|
+
var warn = function(message) {
|
|
45164
|
+
console.warn("".concat(yellow, "\nCULTUREAMP UI WARNING:\n").concat((0, exports.singleLine)(message)).concat(reset, "\n"));
|
|
45165
|
+
};
|
|
45166
|
+
exports.warn = warn;
|
|
45167
|
+
var singleLine = function(message) {
|
|
45168
|
+
return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
45169
|
+
};
|
|
45170
|
+
exports.singleLine = singleLine;
|
|
45171
|
+
})(console$1);
|
|
45172
|
+
|
|
45173
|
+
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"};
|
|
45174
|
+
|
|
45175
|
+
var Icon_module$1 = /*#__PURE__*/Object.freeze({
|
|
45176
|
+
__proto__: null,
|
|
45177
|
+
default: Icon_module
|
|
45178
|
+
});
|
|
45179
|
+
|
|
45180
|
+
var require$$3 = /*@__PURE__*/getAugmentedNamespace(Icon_module$1);
|
|
45181
|
+
|
|
45182
|
+
(function(exports) {
|
|
45183
|
+
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
45184
|
+
__assign = Object.assign || function(t) {
|
|
45185
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
45186
|
+
s = arguments[i];
|
|
45187
|
+
for (var p in s)
|
|
45188
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
45189
|
+
t[p] = s[p];
|
|
45190
|
+
}
|
|
45191
|
+
return t;
|
|
45192
|
+
};
|
|
45193
|
+
return __assign.apply(this, arguments);
|
|
45194
|
+
};
|
|
45195
|
+
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
45196
|
+
var t = {};
|
|
45197
|
+
for (var p in s)
|
|
45198
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
45199
|
+
t[p] = s[p];
|
|
45200
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
45201
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
45202
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
45203
|
+
t[p[i]] = s[p[i]];
|
|
45204
|
+
}
|
|
45205
|
+
return t;
|
|
45206
|
+
};
|
|
45207
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45208
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45209
|
+
};
|
|
45210
|
+
exports.__esModule = true;
|
|
45211
|
+
exports.Icon = void 0;
|
|
45212
|
+
var react_1 = __importDefault(React);
|
|
45213
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45214
|
+
var console_1 = console$1;
|
|
45215
|
+
var Icon_module_scss_1 = __importDefault(require$$3);
|
|
45216
|
+
var Icon = function(_a) {
|
|
45217
|
+
var _b, _c;
|
|
45218
|
+
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"]);
|
|
45219
|
+
var isMeaningfulImg = role === "img";
|
|
45220
|
+
if (isMeaningfulImg && !title) {
|
|
45221
|
+
(0, console_1.warn)(`
|
|
45183
45222
|
Icon with role "img" missing a title attribute.
|
|
45184
45223
|
|
|
45185
45224
|
Assistive technologies that enable vision-impaired users to read web pages
|
|
@@ -45191,28 +45230,1077 @@ const Icon = (_a) => {
|
|
|
45191
45230
|
Either add the missing title prop, or set this icon's role to
|
|
45192
45231
|
"presentation" to indicate it is not meaningful.
|
|
45193
45232
|
`);
|
|
45194
|
-
|
|
45195
|
-
|
|
45196
|
-
|
|
45197
|
-
|
|
45198
|
-
|
|
45199
|
-
|
|
45233
|
+
}
|
|
45234
|
+
var renderTitle = function() {
|
|
45235
|
+
return isMeaningfulImg && !!title && react_1["default"].createElement("title", null, title);
|
|
45236
|
+
};
|
|
45237
|
+
var renderDesc = function() {
|
|
45238
|
+
return isMeaningfulImg && !!desc && react_1["default"].createElement("desc", null, desc);
|
|
45239
|
+
};
|
|
45240
|
+
var accessibilityProps = (_b = {
|
|
45241
|
+
role
|
|
45242
|
+
}, _b["aria-hidden"] = isMeaningfulImg ? void 0 : true, _b);
|
|
45243
|
+
return react_1["default"].createElement(
|
|
45244
|
+
"svg",
|
|
45245
|
+
__assign({
|
|
45246
|
+
className: (0, classnames_1["default"])(Icon_module_scss_1["default"].icon, classNameOverride, (_c = {}, _c[Icon_module_scss_1["default"].inheritSize] = inheritSize, _c)),
|
|
45247
|
+
viewBox: icon.viewBox,
|
|
45248
|
+
// Work around IE11 making all SVGs focusable.
|
|
45249
|
+
// See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
|
|
45250
|
+
focusable: "false"
|
|
45251
|
+
}, accessibilityProps, props),
|
|
45252
|
+
renderTitle(),
|
|
45253
|
+
renderDesc(),
|
|
45254
|
+
react_1["default"].createElement("use", { xlinkHref: "#".concat(icon.id) })
|
|
45255
|
+
);
|
|
45200
45256
|
};
|
|
45201
|
-
|
|
45202
|
-
|
|
45203
|
-
|
|
45204
|
-
|
|
45205
|
-
|
|
45206
|
-
|
|
45207
|
-
|
|
45208
|
-
|
|
45209
|
-
|
|
45210
|
-
|
|
45211
|
-
|
|
45212
|
-
|
|
45257
|
+
exports.Icon = Icon;
|
|
45258
|
+
exports.Icon.displayName = "Icon";
|
|
45259
|
+
})(Icon);
|
|
45260
|
+
|
|
45261
|
+
(function(exports) {
|
|
45262
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45263
|
+
if (k2 === void 0)
|
|
45264
|
+
k2 = k;
|
|
45265
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45266
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45267
|
+
desc = { enumerable: true, get: function() {
|
|
45268
|
+
return m[k];
|
|
45269
|
+
} };
|
|
45270
|
+
}
|
|
45271
|
+
Object.defineProperty(o, k2, desc);
|
|
45272
|
+
} : function(o, m, k, k2) {
|
|
45273
|
+
if (k2 === void 0)
|
|
45274
|
+
k2 = k;
|
|
45275
|
+
o[k2] = m[k];
|
|
45276
|
+
});
|
|
45277
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
45278
|
+
for (var p in m)
|
|
45279
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
45280
|
+
__createBinding(exports2, m, p);
|
|
45281
|
+
};
|
|
45282
|
+
exports.__esModule = true;
|
|
45283
|
+
__exportStar(Icon, exports);
|
|
45284
|
+
})(Icon$1);
|
|
45285
|
+
|
|
45286
|
+
var DropdownMenu = {};
|
|
45287
|
+
|
|
45288
|
+
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"};
|
|
45289
|
+
|
|
45290
|
+
var Dropdown_module$1 = /*#__PURE__*/Object.freeze({
|
|
45291
|
+
__proto__: null,
|
|
45292
|
+
default: Dropdown_module
|
|
45293
|
+
});
|
|
45294
|
+
|
|
45295
|
+
var require$$6 = /*@__PURE__*/getAugmentedNamespace(Dropdown_module$1);
|
|
45296
|
+
|
|
45297
|
+
(function(exports) {
|
|
45298
|
+
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
45299
|
+
var extendStatics = function(d, b) {
|
|
45300
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
45301
|
+
d2.__proto__ = b2;
|
|
45302
|
+
} || function(d2, b2) {
|
|
45303
|
+
for (var p in b2)
|
|
45304
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
45305
|
+
d2[p] = b2[p];
|
|
45306
|
+
};
|
|
45307
|
+
return extendStatics(d, b);
|
|
45308
|
+
};
|
|
45309
|
+
return function(d, b) {
|
|
45310
|
+
if (typeof b !== "function" && b !== null)
|
|
45311
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
45312
|
+
extendStatics(d, b);
|
|
45313
|
+
function __() {
|
|
45314
|
+
this.constructor = d;
|
|
45315
|
+
}
|
|
45316
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45317
|
+
};
|
|
45318
|
+
}();
|
|
45319
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45320
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45321
|
+
};
|
|
45322
|
+
exports.__esModule = true;
|
|
45323
|
+
var react_1 = __importDefault(React);
|
|
45324
|
+
var Dropdown_module_scss_1 = __importDefault(require$$6);
|
|
45325
|
+
var DropdownMenu = (
|
|
45326
|
+
/** @class */
|
|
45327
|
+
function(_super) {
|
|
45328
|
+
__extends(DropdownMenu2, _super);
|
|
45329
|
+
function DropdownMenu2() {
|
|
45330
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
45331
|
+
_this.menu = react_1["default"].createRef();
|
|
45332
|
+
_this.handleDocumentClick = function(e) {
|
|
45333
|
+
if (_this.menu && _this.menu.current && e.target instanceof Node && !_this.menu.current.contains(e.target)) {
|
|
45334
|
+
_this.props.hideDropdownMenu();
|
|
45335
|
+
}
|
|
45336
|
+
};
|
|
45337
|
+
_this.handleDocumentResize = function() {
|
|
45338
|
+
_this.props.hideDropdownMenu();
|
|
45339
|
+
};
|
|
45340
|
+
return _this;
|
|
45341
|
+
}
|
|
45342
|
+
DropdownMenu2.prototype.componentDidMount = function() {
|
|
45343
|
+
document.addEventListener("click", this.handleDocumentClick, false);
|
|
45344
|
+
window.addEventListener("resize", this.handleDocumentResize, false);
|
|
45345
|
+
this.positionMenu();
|
|
45346
|
+
};
|
|
45347
|
+
DropdownMenu2.prototype.componentWillUnmount = function() {
|
|
45348
|
+
document.removeEventListener("click", this.handleDocumentClick, false);
|
|
45349
|
+
window.removeEventListener("resize", this.handleDocumentResize, false);
|
|
45350
|
+
};
|
|
45351
|
+
DropdownMenu2.prototype.render = function() {
|
|
45352
|
+
var _a = this.props, hideDropdownMenu = _a.hideDropdownMenu, children = _a.children;
|
|
45353
|
+
return (
|
|
45354
|
+
// Disabling instead of addressing because this component is deprecated
|
|
45355
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
45356
|
+
react_1["default"].createElement("div", { className: Dropdown_module_scss_1["default"].menuContainer, ref: this.menu, onClick: hideDropdownMenu }, children)
|
|
45357
|
+
);
|
|
45358
|
+
};
|
|
45359
|
+
DropdownMenu2.prototype.positionMenu = function() {
|
|
45360
|
+
var menu = this.menu;
|
|
45361
|
+
if (!this.props.position || !menu) {
|
|
45362
|
+
return;
|
|
45363
|
+
}
|
|
45364
|
+
if (menu.current) {
|
|
45365
|
+
var pos = this.props.position;
|
|
45366
|
+
var innerHeight_1 = window.innerHeight;
|
|
45367
|
+
var rect = menu.current.getBoundingClientRect();
|
|
45368
|
+
if (pos.bottom > innerHeight_1 - rect.height) {
|
|
45369
|
+
menu.current.style.bottom = "24px";
|
|
45370
|
+
menu.current.style.top = "auto";
|
|
45371
|
+
} else {
|
|
45372
|
+
menu.current.style.top = "24px";
|
|
45373
|
+
menu.current.style.bottom = "auto";
|
|
45374
|
+
}
|
|
45375
|
+
}
|
|
45376
|
+
};
|
|
45377
|
+
DropdownMenu2.displayName = "DropdownMenu";
|
|
45378
|
+
return DropdownMenu2;
|
|
45379
|
+
}(react_1["default"].Component)
|
|
45213
45380
|
);
|
|
45381
|
+
exports["default"] = DropdownMenu;
|
|
45382
|
+
})(DropdownMenu);
|
|
45383
|
+
|
|
45384
|
+
(function(exports) {
|
|
45385
|
+
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
45386
|
+
var extendStatics = function(d, b) {
|
|
45387
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
45388
|
+
d2.__proto__ = b2;
|
|
45389
|
+
} || function(d2, b2) {
|
|
45390
|
+
for (var p in b2)
|
|
45391
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
45392
|
+
d2[p] = b2[p];
|
|
45393
|
+
};
|
|
45394
|
+
return extendStatics(d, b);
|
|
45395
|
+
};
|
|
45396
|
+
return function(d, b) {
|
|
45397
|
+
if (typeof b !== "function" && b !== null)
|
|
45398
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
45399
|
+
extendStatics(d, b);
|
|
45400
|
+
function __() {
|
|
45401
|
+
this.constructor = d;
|
|
45402
|
+
}
|
|
45403
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45404
|
+
};
|
|
45405
|
+
}();
|
|
45406
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45407
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45408
|
+
};
|
|
45409
|
+
exports.__esModule = true;
|
|
45410
|
+
var react_1 = __importDefault(React);
|
|
45411
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45412
|
+
var chevron_down_icon_svg_1 = __importDefault(require$$2$1);
|
|
45413
|
+
var ellipsis_icon_svg_1 = __importDefault(require$$3$1);
|
|
45414
|
+
var Icon_1 = Icon$1;
|
|
45415
|
+
var DropdownMenu_1 = __importDefault(DropdownMenu);
|
|
45416
|
+
var Dropdown_module_scss_1 = __importDefault(require$$6);
|
|
45417
|
+
var Dropdown = (
|
|
45418
|
+
/** @class */
|
|
45419
|
+
function(_super) {
|
|
45420
|
+
__extends(Dropdown2, _super);
|
|
45421
|
+
function Dropdown2(props) {
|
|
45422
|
+
var _this = _super.call(this, props) || this;
|
|
45423
|
+
_this.dropdownButton = react_1["default"].createRef();
|
|
45424
|
+
_this.toggleDropdownMenu = function(e) {
|
|
45425
|
+
e.stopPropagation();
|
|
45426
|
+
var currentState = _this.state.isMenuVisible;
|
|
45427
|
+
_this.setState({
|
|
45428
|
+
isMenuVisible: !currentState
|
|
45429
|
+
});
|
|
45430
|
+
};
|
|
45431
|
+
_this.hideDropdownMenu = function() {
|
|
45432
|
+
_this.setState({
|
|
45433
|
+
isMenuVisible: false
|
|
45434
|
+
});
|
|
45435
|
+
};
|
|
45436
|
+
_this.renderIcon = function(icon) {
|
|
45437
|
+
if (!icon)
|
|
45438
|
+
return;
|
|
45439
|
+
return react_1["default"].createElement(
|
|
45440
|
+
"span",
|
|
45441
|
+
{ className: Dropdown_module_scss_1["default"].dropdownIcon },
|
|
45442
|
+
react_1["default"].createElement(Icon_1.Icon, { icon, role: "img", title: "Open menu" })
|
|
45443
|
+
);
|
|
45444
|
+
};
|
|
45445
|
+
_this.renderDownArrow = function() {
|
|
45446
|
+
var _a = _this.props, label = _a.label, controlAction = _a.controlAction;
|
|
45447
|
+
if (!label || !controlAction)
|
|
45448
|
+
return;
|
|
45449
|
+
return react_1["default"].createElement(
|
|
45450
|
+
"span",
|
|
45451
|
+
{ className: Dropdown_module_scss_1["default"].chevronIcon },
|
|
45452
|
+
react_1["default"].createElement(Icon_1.Icon, { icon: chevron_down_icon_svg_1["default"], role: "img", title: "Open menu" })
|
|
45453
|
+
);
|
|
45454
|
+
};
|
|
45455
|
+
_this.renderButtonContent = function() {
|
|
45456
|
+
var label = _this.props.label;
|
|
45457
|
+
var icon = _this.props.icon;
|
|
45458
|
+
if (!icon && !label) {
|
|
45459
|
+
icon = ellipsis_icon_svg_1["default"];
|
|
45460
|
+
}
|
|
45461
|
+
return react_1["default"].createElement(
|
|
45462
|
+
react_1["default"].Fragment,
|
|
45463
|
+
null,
|
|
45464
|
+
_this.renderIcon(icon),
|
|
45465
|
+
label && react_1["default"].createElement("span", { className: Dropdown_module_scss_1["default"].dropdownLabel }, label),
|
|
45466
|
+
_this.renderDownArrow()
|
|
45467
|
+
);
|
|
45468
|
+
};
|
|
45469
|
+
_this.renderReversedButtonContent = function() {
|
|
45470
|
+
var _a = _this.props, icon = _a.icon, label = _a.label;
|
|
45471
|
+
return react_1["default"].createElement(
|
|
45472
|
+
react_1["default"].Fragment,
|
|
45473
|
+
null,
|
|
45474
|
+
_this.renderDownArrow(),
|
|
45475
|
+
label && react_1["default"].createElement("span", { className: Dropdown_module_scss_1["default"].dropdownLabel }, label),
|
|
45476
|
+
_this.renderIcon(icon)
|
|
45477
|
+
);
|
|
45478
|
+
};
|
|
45479
|
+
_this.state = {
|
|
45480
|
+
isMenuVisible: Boolean(props.menuVisible)
|
|
45481
|
+
};
|
|
45482
|
+
return _this;
|
|
45483
|
+
}
|
|
45484
|
+
Dropdown2.prototype.getPosition = function() {
|
|
45485
|
+
return this.dropdownButton && this.dropdownButton.current ? this.dropdownButton.current.getBoundingClientRect() : null;
|
|
45486
|
+
};
|
|
45487
|
+
Dropdown2.prototype.renderDropdownMenu = function() {
|
|
45488
|
+
return react_1["default"].createElement(DropdownMenu_1["default"], { hideDropdownMenu: this.hideDropdownMenu, position: this.getPosition() }, this.props.children);
|
|
45489
|
+
};
|
|
45490
|
+
Dropdown2.prototype.render = function() {
|
|
45491
|
+
var _a;
|
|
45492
|
+
var _b = this.props, controlAction = _b.controlAction, automationId = _b.automationId, iconPosition = _b.iconPosition, reversedColor = _b.reversedColor;
|
|
45493
|
+
var reverseIcon = iconPosition === "end";
|
|
45494
|
+
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));
|
|
45495
|
+
return react_1["default"].createElement(
|
|
45496
|
+
"div",
|
|
45497
|
+
{ className: Dropdown_module_scss_1["default"].dropdown },
|
|
45498
|
+
react_1["default"].createElement(
|
|
45499
|
+
"button",
|
|
45500
|
+
{ className: btnClass, onClick: this.toggleDropdownMenu, onMouseDown: function(e) {
|
|
45501
|
+
return e.preventDefault();
|
|
45502
|
+
}, ref: this.dropdownButton, "data-automation-id": automationId },
|
|
45503
|
+
!reverseIcon && this.renderButtonContent(),
|
|
45504
|
+
reverseIcon && this.renderReversedButtonContent()
|
|
45505
|
+
),
|
|
45506
|
+
this.state.isMenuVisible && this.renderDropdownMenu()
|
|
45507
|
+
);
|
|
45508
|
+
};
|
|
45509
|
+
Dropdown2.displayName = "Dropdown";
|
|
45510
|
+
Dropdown2.defaultProps = {
|
|
45511
|
+
iconPosition: "start"
|
|
45512
|
+
};
|
|
45513
|
+
return Dropdown2;
|
|
45514
|
+
}(react_1["default"].Component)
|
|
45515
|
+
);
|
|
45516
|
+
exports["default"] = Dropdown;
|
|
45517
|
+
})(Dropdown);
|
|
45518
|
+
|
|
45519
|
+
(function(exports) {
|
|
45520
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45521
|
+
if (k2 === void 0)
|
|
45522
|
+
k2 = k;
|
|
45523
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45524
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45525
|
+
desc = { enumerable: true, get: function() {
|
|
45526
|
+
return m[k];
|
|
45527
|
+
} };
|
|
45528
|
+
}
|
|
45529
|
+
Object.defineProperty(o, k2, desc);
|
|
45530
|
+
} : function(o, m, k, k2) {
|
|
45531
|
+
if (k2 === void 0)
|
|
45532
|
+
k2 = k;
|
|
45533
|
+
o[k2] = m[k];
|
|
45534
|
+
});
|
|
45535
|
+
exports.__esModule = true;
|
|
45536
|
+
exports.Dropdown = void 0;
|
|
45537
|
+
var Dropdown_1 = Dropdown;
|
|
45538
|
+
__createBinding(exports, Dropdown_1, "default", "Dropdown");
|
|
45539
|
+
})(Dropdown$1);
|
|
45540
|
+
|
|
45541
|
+
var Layout$1 = {};
|
|
45542
|
+
|
|
45543
|
+
var Layout = {};
|
|
45544
|
+
|
|
45545
|
+
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"};
|
|
45546
|
+
|
|
45547
|
+
var Layout_module$1 = /*#__PURE__*/Object.freeze({
|
|
45548
|
+
__proto__: null,
|
|
45549
|
+
default: Layout_module
|
|
45550
|
+
});
|
|
45551
|
+
|
|
45552
|
+
var require$$1$3 = /*@__PURE__*/getAugmentedNamespace(Layout_module$1);
|
|
45553
|
+
|
|
45554
|
+
(function(exports) {
|
|
45555
|
+
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
45556
|
+
var extendStatics = function(d, b) {
|
|
45557
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
45558
|
+
d2.__proto__ = b2;
|
|
45559
|
+
} || function(d2, b2) {
|
|
45560
|
+
for (var p in b2)
|
|
45561
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
45562
|
+
d2[p] = b2[p];
|
|
45563
|
+
};
|
|
45564
|
+
return extendStatics(d, b);
|
|
45565
|
+
};
|
|
45566
|
+
return function(d, b) {
|
|
45567
|
+
if (typeof b !== "function" && b !== null)
|
|
45568
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
45569
|
+
extendStatics(d, b);
|
|
45570
|
+
function __() {
|
|
45571
|
+
this.constructor = d;
|
|
45572
|
+
}
|
|
45573
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45574
|
+
};
|
|
45575
|
+
}();
|
|
45576
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45577
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45578
|
+
};
|
|
45579
|
+
exports.__esModule = true;
|
|
45580
|
+
var react_1 = __importDefault(React);
|
|
45581
|
+
var Layout_module_scss_1 = __importDefault(require$$1$3);
|
|
45582
|
+
var NavigationBar = function(_a) {
|
|
45583
|
+
var children = _a.children;
|
|
45584
|
+
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].navigationBar }, children);
|
|
45585
|
+
};
|
|
45586
|
+
NavigationBar.displayName = "NavigationBar";
|
|
45587
|
+
var Sidebar = function(_a) {
|
|
45588
|
+
var children = _a.children;
|
|
45589
|
+
return react_1["default"].createElement(
|
|
45590
|
+
"div",
|
|
45591
|
+
{ className: Layout_module_scss_1["default"].sidebar },
|
|
45592
|
+
react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].sidebarInner }, children)
|
|
45593
|
+
);
|
|
45594
|
+
};
|
|
45595
|
+
Sidebar.displayName = "Sidebar";
|
|
45596
|
+
var Header = function(_a) {
|
|
45597
|
+
var children = _a.children;
|
|
45598
|
+
return react_1["default"].createElement("aside", { className: Layout_module_scss_1["default"].header }, children);
|
|
45599
|
+
};
|
|
45600
|
+
Header.displayName = "Header";
|
|
45601
|
+
var Footer = function(_a) {
|
|
45602
|
+
var children = _a.children;
|
|
45603
|
+
return react_1["default"].createElement("footer", { className: Layout_module_scss_1["default"].footer }, children);
|
|
45604
|
+
};
|
|
45605
|
+
Footer.displayName = "Footer";
|
|
45606
|
+
var Toasts = function(_a) {
|
|
45607
|
+
var children = _a.children;
|
|
45608
|
+
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].toasts, "aria-live": "assertive" }, children);
|
|
45609
|
+
};
|
|
45610
|
+
Toasts.displayName = "Toasts";
|
|
45611
|
+
var Announcers = function(_a) {
|
|
45612
|
+
var children = _a.children;
|
|
45613
|
+
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].announcers, "aria-live": "assertive" }, children);
|
|
45614
|
+
};
|
|
45615
|
+
Announcers.displayName = "Announcers";
|
|
45616
|
+
var Layout = (
|
|
45617
|
+
/** @class */
|
|
45618
|
+
function(_super) {
|
|
45619
|
+
__extends(Layout2, _super);
|
|
45620
|
+
function Layout2() {
|
|
45621
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
45622
|
+
}
|
|
45623
|
+
Layout2.prototype.render = function() {
|
|
45624
|
+
var content = react_1["default"].Children.toArray(this.props.children);
|
|
45625
|
+
var navbar = extractChildOfType(content, NavigationBar);
|
|
45626
|
+
var header = extractChildOfType(content, Header);
|
|
45627
|
+
var sidebar = extractChildOfType(content, Sidebar);
|
|
45628
|
+
var footer = extractChildOfType(content, Footer);
|
|
45629
|
+
var announcers = extractChildOfType(content, Announcers);
|
|
45630
|
+
var toasts = extractChildOfType(content, Toasts);
|
|
45631
|
+
return react_1["default"].createElement(
|
|
45632
|
+
"div",
|
|
45633
|
+
{ className: Layout_module_scss_1["default"].root },
|
|
45634
|
+
navbar,
|
|
45635
|
+
announcers,
|
|
45636
|
+
react_1["default"].createElement(
|
|
45637
|
+
"div",
|
|
45638
|
+
{ className: Layout_module_scss_1["default"].page },
|
|
45639
|
+
header,
|
|
45640
|
+
toasts,
|
|
45641
|
+
react_1["default"].createElement(
|
|
45642
|
+
"div",
|
|
45643
|
+
{ className: Layout_module_scss_1["default"].body },
|
|
45644
|
+
react_1["default"].createElement(
|
|
45645
|
+
"div",
|
|
45646
|
+
{ className: Layout_module_scss_1["default"].bodyInner },
|
|
45647
|
+
sidebar,
|
|
45648
|
+
react_1["default"].createElement("main", { className: Layout_module_scss_1["default"].content }, content)
|
|
45649
|
+
)
|
|
45650
|
+
),
|
|
45651
|
+
footer
|
|
45652
|
+
)
|
|
45653
|
+
);
|
|
45654
|
+
};
|
|
45655
|
+
Layout2.displayName = "Layout";
|
|
45656
|
+
Layout2.NavigationBar = NavigationBar;
|
|
45657
|
+
Layout2.Sidebar = Sidebar;
|
|
45658
|
+
Layout2.Header = Header;
|
|
45659
|
+
Layout2.Footer = Footer;
|
|
45660
|
+
Layout2.Toasts = Toasts;
|
|
45661
|
+
Layout2.Announcers = Announcers;
|
|
45662
|
+
return Layout2;
|
|
45663
|
+
}(react_1["default"].Component)
|
|
45664
|
+
);
|
|
45665
|
+
var extractChildOfType = function(children, type) {
|
|
45666
|
+
var match = children.find(function(child) {
|
|
45667
|
+
if (react_1["default"].isValidElement(child) && typeof child.type === "function") {
|
|
45668
|
+
return child.type.displayName === type.displayName;
|
|
45669
|
+
}
|
|
45670
|
+
return false;
|
|
45671
|
+
});
|
|
45672
|
+
if (match) {
|
|
45673
|
+
var index = children.indexOf(match);
|
|
45674
|
+
children.splice(index, 1);
|
|
45675
|
+
}
|
|
45676
|
+
return match;
|
|
45677
|
+
};
|
|
45678
|
+
exports["default"] = Layout;
|
|
45679
|
+
})(Layout);
|
|
45680
|
+
|
|
45681
|
+
(function(exports) {
|
|
45682
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45683
|
+
if (k2 === void 0)
|
|
45684
|
+
k2 = k;
|
|
45685
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45686
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45687
|
+
desc = { enumerable: true, get: function() {
|
|
45688
|
+
return m[k];
|
|
45689
|
+
} };
|
|
45690
|
+
}
|
|
45691
|
+
Object.defineProperty(o, k2, desc);
|
|
45692
|
+
} : function(o, m, k, k2) {
|
|
45693
|
+
if (k2 === void 0)
|
|
45694
|
+
k2 = k;
|
|
45695
|
+
o[k2] = m[k];
|
|
45696
|
+
});
|
|
45697
|
+
exports.__esModule = true;
|
|
45698
|
+
exports.Layout = void 0;
|
|
45699
|
+
var Layout_1 = Layout;
|
|
45700
|
+
__createBinding(exports, Layout_1, "default", "Layout");
|
|
45701
|
+
})(Layout$1);
|
|
45702
|
+
|
|
45703
|
+
var MenuList$1 = {};
|
|
45704
|
+
|
|
45705
|
+
var MenuList = {};
|
|
45706
|
+
|
|
45707
|
+
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"};
|
|
45708
|
+
|
|
45709
|
+
var Menu_module$1 = /*#__PURE__*/Object.freeze({
|
|
45710
|
+
__proto__: null,
|
|
45711
|
+
default: Menu_module
|
|
45712
|
+
});
|
|
45713
|
+
|
|
45714
|
+
var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(Menu_module$1);
|
|
45715
|
+
|
|
45716
|
+
(function(exports) {
|
|
45717
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45718
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45719
|
+
};
|
|
45720
|
+
exports.__esModule = true;
|
|
45721
|
+
var react_1 = __importDefault(React);
|
|
45722
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45723
|
+
var MenuList = function(props) {
|
|
45724
|
+
return react_1["default"].createElement("div", { className: Menu_module_scss_1["default"].menuList }, props.children);
|
|
45725
|
+
};
|
|
45726
|
+
MenuList.displayName = "MenuList";
|
|
45727
|
+
exports["default"] = MenuList;
|
|
45728
|
+
})(MenuList);
|
|
45729
|
+
|
|
45730
|
+
var MenuHeader = {};
|
|
45731
|
+
|
|
45732
|
+
(function(exports) {
|
|
45733
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45734
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45735
|
+
};
|
|
45736
|
+
exports.__esModule = true;
|
|
45737
|
+
var react_1 = __importDefault(React);
|
|
45738
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45739
|
+
var MenuHeader = function(props) {
|
|
45740
|
+
return react_1["default"].createElement(
|
|
45741
|
+
"div",
|
|
45742
|
+
{ className: Menu_module_scss_1["default"].header },
|
|
45743
|
+
react_1["default"].createElement("span", { className: Menu_module_scss_1["default"].header__title }, props.title)
|
|
45744
|
+
);
|
|
45745
|
+
};
|
|
45746
|
+
MenuHeader.displayName = "MenuHeader";
|
|
45747
|
+
exports["default"] = MenuHeader;
|
|
45748
|
+
})(MenuHeader);
|
|
45749
|
+
|
|
45750
|
+
var MenuItem = {};
|
|
45751
|
+
|
|
45752
|
+
(function(exports) {
|
|
45753
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45754
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45755
|
+
};
|
|
45756
|
+
exports.__esModule = true;
|
|
45757
|
+
var react_1 = __importDefault(React);
|
|
45758
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45759
|
+
var Icon_1 = Icon$1;
|
|
45760
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45761
|
+
var MenuItem = function(props) {
|
|
45762
|
+
var _a;
|
|
45763
|
+
var icon = props.icon, hoverIcon = props.hoverIcon, children = props.children, action = props.action, active = props.active, destructive = props.destructive, automationId = props.automationId;
|
|
45764
|
+
var isLink = typeof action === "string";
|
|
45765
|
+
var label = react_1["default"].createElement(
|
|
45766
|
+
"span",
|
|
45767
|
+
{ className: Menu_module_scss_1["default"].menuItem__Label },
|
|
45768
|
+
children,
|
|
45769
|
+
isLink && "\u2026"
|
|
45770
|
+
);
|
|
45771
|
+
var iconNode = icon && react_1["default"].createElement(
|
|
45772
|
+
"span",
|
|
45773
|
+
{ className: Menu_module_scss_1["default"].menuItem__Icon },
|
|
45774
|
+
react_1["default"].createElement(Icon_1.Icon, { icon, role: "presentation" })
|
|
45775
|
+
);
|
|
45776
|
+
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));
|
|
45777
|
+
if (typeof action === "string") {
|
|
45778
|
+
return react_1["default"].createElement(
|
|
45779
|
+
"a",
|
|
45780
|
+
{ href: action, className, "data-automation-id": automationId },
|
|
45781
|
+
label,
|
|
45782
|
+
iconNode
|
|
45783
|
+
);
|
|
45784
|
+
}
|
|
45785
|
+
return (
|
|
45786
|
+
// Disabling instead of addressing because this component is deprecated.
|
|
45787
|
+
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
45788
|
+
react_1["default"].createElement(
|
|
45789
|
+
"a",
|
|
45790
|
+
{ href: "#", onClick: action, className, "data-automation-id": automationId },
|
|
45791
|
+
label,
|
|
45792
|
+
iconNode
|
|
45793
|
+
)
|
|
45794
|
+
);
|
|
45795
|
+
};
|
|
45796
|
+
MenuItem.displayName = "MenuItem";
|
|
45797
|
+
exports["default"] = MenuItem;
|
|
45798
|
+
})(MenuItem);
|
|
45799
|
+
|
|
45800
|
+
var MenuSeparator = {};
|
|
45801
|
+
|
|
45802
|
+
(function(exports) {
|
|
45803
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45804
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45805
|
+
};
|
|
45806
|
+
exports.__esModule = true;
|
|
45807
|
+
var react_1 = __importDefault(React);
|
|
45808
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45809
|
+
var MenuSeparator = function() {
|
|
45810
|
+
return react_1["default"].createElement("hr", { className: Menu_module_scss_1["default"].separator });
|
|
45811
|
+
};
|
|
45812
|
+
MenuSeparator.displayName = "MenuSeparator";
|
|
45813
|
+
exports["default"] = MenuSeparator;
|
|
45814
|
+
})(MenuSeparator);
|
|
45815
|
+
|
|
45816
|
+
(function(exports) {
|
|
45817
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45818
|
+
if (k2 === void 0)
|
|
45819
|
+
k2 = k;
|
|
45820
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45821
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45822
|
+
desc = { enumerable: true, get: function() {
|
|
45823
|
+
return m[k];
|
|
45824
|
+
} };
|
|
45825
|
+
}
|
|
45826
|
+
Object.defineProperty(o, k2, desc);
|
|
45827
|
+
} : function(o, m, k, k2) {
|
|
45828
|
+
if (k2 === void 0)
|
|
45829
|
+
k2 = k;
|
|
45830
|
+
o[k2] = m[k];
|
|
45831
|
+
});
|
|
45832
|
+
exports.__esModule = true;
|
|
45833
|
+
exports.MenuSeparator = exports.MenuItem = exports.MenuHeader = exports.MenuList = void 0;
|
|
45834
|
+
var MenuList_1 = MenuList;
|
|
45835
|
+
__createBinding(exports, MenuList_1, "default", "MenuList");
|
|
45836
|
+
var MenuHeader_1 = MenuHeader;
|
|
45837
|
+
__createBinding(exports, MenuHeader_1, "default", "MenuHeader");
|
|
45838
|
+
var MenuItem_1 = MenuItem;
|
|
45839
|
+
__createBinding(exports, MenuItem_1, "default", "MenuItem");
|
|
45840
|
+
var MenuSeparator_1 = MenuSeparator;
|
|
45841
|
+
__createBinding(exports, MenuSeparator_1, "default", "MenuSeparator");
|
|
45842
|
+
})(MenuList$1);
|
|
45843
|
+
|
|
45844
|
+
var Text$1 = {};
|
|
45845
|
+
|
|
45846
|
+
var Text = {};
|
|
45847
|
+
|
|
45848
|
+
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"};
|
|
45849
|
+
|
|
45850
|
+
var Text_module$1 = /*#__PURE__*/Object.freeze({
|
|
45851
|
+
__proto__: null,
|
|
45852
|
+
default: Text_module
|
|
45853
|
+
});
|
|
45854
|
+
|
|
45855
|
+
var require$$2 = /*@__PURE__*/getAugmentedNamespace(Text_module$1);
|
|
45856
|
+
|
|
45857
|
+
(function(exports) {
|
|
45858
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45859
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45860
|
+
};
|
|
45861
|
+
exports.__esModule = true;
|
|
45862
|
+
var react_1 = __importDefault(React);
|
|
45863
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45864
|
+
var Text_module_scss_1 = __importDefault(require$$2);
|
|
45865
|
+
var Text = function(_a) {
|
|
45866
|
+
var _b;
|
|
45867
|
+
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;
|
|
45868
|
+
return react_1["default"].createElement(tag, {
|
|
45869
|
+
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))
|
|
45870
|
+
}, children);
|
|
45871
|
+
};
|
|
45872
|
+
Text.displayName = "Text";
|
|
45873
|
+
exports["default"] = Text;
|
|
45874
|
+
})(Text);
|
|
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
|
+
exports.__esModule = true;
|
|
45893
|
+
exports.Text = void 0;
|
|
45894
|
+
var Text_1 = Text;
|
|
45895
|
+
__createBinding(exports, Text_1, "default", "Text");
|
|
45896
|
+
})(Text$1);
|
|
45897
|
+
|
|
45898
|
+
var Spacing = {};
|
|
45899
|
+
|
|
45900
|
+
var padding = {};
|
|
45901
|
+
|
|
45902
|
+
var util = {};
|
|
45903
|
+
|
|
45904
|
+
util.__esModule = true;
|
|
45905
|
+
util.convertFractionToString = void 0;
|
|
45906
|
+
var convertFractionToString = function(fraction) {
|
|
45907
|
+
switch (fraction) {
|
|
45908
|
+
case 0:
|
|
45909
|
+
default:
|
|
45910
|
+
return "0";
|
|
45911
|
+
case 0.25:
|
|
45912
|
+
return "0-point-25";
|
|
45913
|
+
case 0.5:
|
|
45914
|
+
return "0-point-5";
|
|
45915
|
+
case 0.75:
|
|
45916
|
+
return "0-point-75";
|
|
45917
|
+
case 1:
|
|
45918
|
+
return "1";
|
|
45919
|
+
case 1.25:
|
|
45920
|
+
return "1-point-25";
|
|
45921
|
+
case 1.5:
|
|
45922
|
+
return "1-point-5";
|
|
45923
|
+
case 1.75:
|
|
45924
|
+
return "1-point-75";
|
|
45925
|
+
case 2:
|
|
45926
|
+
return "2";
|
|
45927
|
+
case 2.5:
|
|
45928
|
+
return "2-point-5";
|
|
45929
|
+
case 3:
|
|
45930
|
+
return "3";
|
|
45931
|
+
case 3.5:
|
|
45932
|
+
return "3-point-5";
|
|
45933
|
+
case 4:
|
|
45934
|
+
return "4";
|
|
45935
|
+
}
|
|
45214
45936
|
};
|
|
45215
|
-
|
|
45937
|
+
util.convertFractionToString = convertFractionToString;
|
|
45938
|
+
|
|
45939
|
+
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"};
|
|
45940
|
+
|
|
45941
|
+
var Padding_module$1 = /*#__PURE__*/Object.freeze({
|
|
45942
|
+
__proto__: null,
|
|
45943
|
+
default: Padding_module
|
|
45944
|
+
});
|
|
45945
|
+
|
|
45946
|
+
var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(Padding_module$1);
|
|
45947
|
+
|
|
45948
|
+
(function(exports) {
|
|
45949
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45950
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45951
|
+
};
|
|
45952
|
+
exports.__esModule = true;
|
|
45953
|
+
exports.paddingClasses = exports.p = exports.py = exports.px = exports.pl = exports.pb = exports.pr = exports.pt = void 0;
|
|
45954
|
+
var util_1 = util;
|
|
45955
|
+
var Padding_module_scss_1 = __importDefault(require$$1$1);
|
|
45956
|
+
var pt = function(unit) {
|
|
45957
|
+
return [
|
|
45958
|
+
Padding_module_scss_1["default"]["pt-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45959
|
+
];
|
|
45960
|
+
};
|
|
45961
|
+
exports.pt = pt;
|
|
45962
|
+
var pr = function(unit) {
|
|
45963
|
+
return [
|
|
45964
|
+
Padding_module_scss_1["default"]["pr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45965
|
+
];
|
|
45966
|
+
};
|
|
45967
|
+
exports.pr = pr;
|
|
45968
|
+
var pb = function(unit) {
|
|
45969
|
+
return [
|
|
45970
|
+
Padding_module_scss_1["default"]["pb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45971
|
+
];
|
|
45972
|
+
};
|
|
45973
|
+
exports.pb = pb;
|
|
45974
|
+
var pl = function(unit) {
|
|
45975
|
+
return [
|
|
45976
|
+
Padding_module_scss_1["default"]["pl-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45977
|
+
];
|
|
45978
|
+
};
|
|
45979
|
+
exports.pl = pl;
|
|
45980
|
+
var px = function(unit) {
|
|
45981
|
+
return [
|
|
45982
|
+
Padding_module_scss_1["default"]["pl-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45983
|
+
Padding_module_scss_1["default"]["pr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45984
|
+
];
|
|
45985
|
+
};
|
|
45986
|
+
exports.px = px;
|
|
45987
|
+
var py = function(unit) {
|
|
45988
|
+
return [
|
|
45989
|
+
Padding_module_scss_1["default"]["pt-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45990
|
+
Padding_module_scss_1["default"]["pb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45991
|
+
];
|
|
45992
|
+
};
|
|
45993
|
+
exports.py = py;
|
|
45994
|
+
var p = function(unit) {
|
|
45995
|
+
var classes = [];
|
|
45996
|
+
if (typeof unit === "number") {
|
|
45997
|
+
classes.push(Padding_module_scss_1["default"]["p-".concat((0, util_1.convertFractionToString)(unit))]);
|
|
45998
|
+
} else {
|
|
45999
|
+
Object.keys(unit).forEach(function(key) {
|
|
46000
|
+
classes.push(Padding_module_scss_1["default"]["p-".concat((0, util_1.convertFractionToString)(unit[key]), "--").concat(key)]);
|
|
46001
|
+
});
|
|
46002
|
+
}
|
|
46003
|
+
return classes;
|
|
46004
|
+
};
|
|
46005
|
+
exports.p = p;
|
|
46006
|
+
var paddingClasses = function(_a) {
|
|
46007
|
+
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;
|
|
46008
|
+
var classes = [];
|
|
46009
|
+
if (padding2 !== void 0)
|
|
46010
|
+
classes.push.apply(classes, (0, exports.p)(padding2));
|
|
46011
|
+
if (paddingTop !== void 0)
|
|
46012
|
+
classes.push.apply(classes, (0, exports.pt)(paddingTop));
|
|
46013
|
+
if (paddingBottom !== void 0)
|
|
46014
|
+
classes.push.apply(classes, (0, exports.pb)(paddingBottom));
|
|
46015
|
+
if (paddingXAxis !== void 0)
|
|
46016
|
+
classes.push.apply(classes, (0, exports.px)(paddingXAxis));
|
|
46017
|
+
if (paddingYAxis !== void 0)
|
|
46018
|
+
classes.push.apply(classes, (0, exports.py)(paddingYAxis));
|
|
46019
|
+
if (rtl) {
|
|
46020
|
+
if (paddingRight !== void 0)
|
|
46021
|
+
classes.push.apply(classes, (0, exports.pl)(paddingRight));
|
|
46022
|
+
if (paddingLeft !== void 0)
|
|
46023
|
+
classes.push.apply(classes, (0, exports.pr)(paddingLeft));
|
|
46024
|
+
} else {
|
|
46025
|
+
if (paddingRight !== void 0)
|
|
46026
|
+
classes.push.apply(classes, (0, exports.pr)(paddingRight));
|
|
46027
|
+
if (paddingLeft !== void 0)
|
|
46028
|
+
classes.push.apply(classes, (0, exports.pl)(paddingLeft));
|
|
46029
|
+
}
|
|
46030
|
+
if (padding2 === void 0 && paddingTop === void 0 && paddingRight === void 0 && paddingBottom === void 0 && paddingLeft === void 0 && paddingXAxis === void 0 && paddingYAxis === void 0) {
|
|
46031
|
+
classes.push.apply(classes, (0, exports.p)(0));
|
|
46032
|
+
}
|
|
46033
|
+
return classes;
|
|
46034
|
+
};
|
|
46035
|
+
exports.paddingClasses = paddingClasses;
|
|
46036
|
+
})(padding);
|
|
46037
|
+
|
|
46038
|
+
var margin = {};
|
|
46039
|
+
|
|
46040
|
+
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"};
|
|
46041
|
+
|
|
46042
|
+
var Margin_module$1 = /*#__PURE__*/Object.freeze({
|
|
46043
|
+
__proto__: null,
|
|
46044
|
+
default: Margin_module
|
|
46045
|
+
});
|
|
46046
|
+
|
|
46047
|
+
var require$$1 = /*@__PURE__*/getAugmentedNamespace(Margin_module$1);
|
|
46048
|
+
|
|
46049
|
+
(function(exports) {
|
|
46050
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
46051
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
46052
|
+
};
|
|
46053
|
+
exports.__esModule = true;
|
|
46054
|
+
exports.marginClasses = exports.m = exports.my = exports.mx = exports.ml = exports.mb = exports.mr = exports.mt = void 0;
|
|
46055
|
+
var util_1 = util;
|
|
46056
|
+
var Margin_module_scss_1 = __importDefault(require$$1);
|
|
46057
|
+
var mt = function(unit) {
|
|
46058
|
+
return [
|
|
46059
|
+
Margin_module_scss_1["default"]["mt-".concat((0, util_1.convertFractionToString)(unit))]
|
|
46060
|
+
];
|
|
46061
|
+
};
|
|
46062
|
+
exports.mt = mt;
|
|
46063
|
+
var mr = function(unit) {
|
|
46064
|
+
return [
|
|
46065
|
+
Margin_module_scss_1["default"]["mr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
46066
|
+
];
|
|
46067
|
+
};
|
|
46068
|
+
exports.mr = mr;
|
|
46069
|
+
var mb = function(unit) {
|
|
46070
|
+
return [
|
|
46071
|
+
Margin_module_scss_1["default"]["mb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
46072
|
+
];
|
|
46073
|
+
};
|
|
46074
|
+
exports.mb = mb;
|
|
46075
|
+
var ml = function(unit) {
|
|
46076
|
+
return [
|
|
46077
|
+
Margin_module_scss_1["default"]["ml-".concat((0, util_1.convertFractionToString)(unit))]
|
|
46078
|
+
];
|
|
46079
|
+
};
|
|
46080
|
+
exports.ml = ml;
|
|
46081
|
+
var mx = function(unit) {
|
|
46082
|
+
return [
|
|
46083
|
+
Margin_module_scss_1["default"]["ml-".concat((0, util_1.convertFractionToString)(unit))],
|
|
46084
|
+
Margin_module_scss_1["default"]["mr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
46085
|
+
];
|
|
46086
|
+
};
|
|
46087
|
+
exports.mx = mx;
|
|
46088
|
+
var my = function(unit) {
|
|
46089
|
+
return [
|
|
46090
|
+
Margin_module_scss_1["default"]["mt-".concat((0, util_1.convertFractionToString)(unit))],
|
|
46091
|
+
Margin_module_scss_1["default"]["mb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
46092
|
+
];
|
|
46093
|
+
};
|
|
46094
|
+
exports.my = my;
|
|
46095
|
+
var m = function(unit) {
|
|
46096
|
+
var classes = [];
|
|
46097
|
+
if (typeof unit === "number") {
|
|
46098
|
+
classes.push(Margin_module_scss_1["default"]["m-".concat((0, util_1.convertFractionToString)(unit))]);
|
|
46099
|
+
} else {
|
|
46100
|
+
Object.keys(unit).forEach(function(key) {
|
|
46101
|
+
classes.push(Margin_module_scss_1["default"]["m-".concat((0, util_1.convertFractionToString)(unit[key]), "--").concat(key)]);
|
|
46102
|
+
});
|
|
46103
|
+
}
|
|
46104
|
+
return classes;
|
|
46105
|
+
};
|
|
46106
|
+
exports.m = m;
|
|
46107
|
+
var marginClasses = function(_a) {
|
|
46108
|
+
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;
|
|
46109
|
+
var classes = [];
|
|
46110
|
+
if (margin2 !== void 0)
|
|
46111
|
+
classes.push.apply(classes, (0, exports.m)(margin2));
|
|
46112
|
+
if (marginTop !== void 0)
|
|
46113
|
+
classes.push.apply(classes, (0, exports.mt)(marginTop));
|
|
46114
|
+
if (marginBottom !== void 0)
|
|
46115
|
+
classes.push.apply(classes, (0, exports.mb)(marginBottom));
|
|
46116
|
+
if (marginXAxis !== void 0)
|
|
46117
|
+
classes.push.apply(classes, (0, exports.mx)(marginXAxis));
|
|
46118
|
+
if (marginYAxis !== void 0)
|
|
46119
|
+
classes.push.apply(classes, (0, exports.my)(marginYAxis));
|
|
46120
|
+
if (rtl) {
|
|
46121
|
+
if (marginRight !== void 0)
|
|
46122
|
+
classes.push.apply(classes, (0, exports.ml)(marginRight));
|
|
46123
|
+
if (marginLeft !== void 0)
|
|
46124
|
+
classes.push.apply(classes, (0, exports.mr)(marginLeft));
|
|
46125
|
+
} else {
|
|
46126
|
+
if (marginRight !== void 0)
|
|
46127
|
+
classes.push.apply(classes, (0, exports.mr)(marginRight));
|
|
46128
|
+
if (marginLeft !== void 0)
|
|
46129
|
+
classes.push.apply(classes, (0, exports.ml)(marginLeft));
|
|
46130
|
+
}
|
|
46131
|
+
if (margin2 === void 0 && marginTop === void 0 && marginRight === void 0 && marginBottom === void 0 && marginLeft === void 0 && marginXAxis === void 0 && marginYAxis === void 0) {
|
|
46132
|
+
classes.push.apply(classes, (0, exports.m)(0));
|
|
46133
|
+
}
|
|
46134
|
+
return classes;
|
|
46135
|
+
};
|
|
46136
|
+
exports.marginClasses = marginClasses;
|
|
46137
|
+
})(margin);
|
|
46138
|
+
|
|
46139
|
+
var types = {};
|
|
46140
|
+
|
|
46141
|
+
types.__esModule = true;
|
|
46142
|
+
|
|
46143
|
+
(function(exports) {
|
|
46144
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
46145
|
+
if (k2 === void 0)
|
|
46146
|
+
k2 = k;
|
|
46147
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
46148
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
46149
|
+
desc = { enumerable: true, get: function() {
|
|
46150
|
+
return m[k];
|
|
46151
|
+
} };
|
|
46152
|
+
}
|
|
46153
|
+
Object.defineProperty(o, k2, desc);
|
|
46154
|
+
} : function(o, m, k, k2) {
|
|
46155
|
+
if (k2 === void 0)
|
|
46156
|
+
k2 = k;
|
|
46157
|
+
o[k2] = m[k];
|
|
46158
|
+
});
|
|
46159
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
46160
|
+
for (var p in m)
|
|
46161
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
46162
|
+
__createBinding(exports2, m, p);
|
|
46163
|
+
};
|
|
46164
|
+
exports.__esModule = true;
|
|
46165
|
+
__exportStar(padding, exports);
|
|
46166
|
+
__exportStar(margin, exports);
|
|
46167
|
+
__exportStar(types, exports);
|
|
46168
|
+
})(Spacing);
|
|
46169
|
+
|
|
46170
|
+
var Box$1 = {};
|
|
46171
|
+
|
|
46172
|
+
var Box = {};
|
|
46173
|
+
|
|
46174
|
+
(function(exports) {
|
|
46175
|
+
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
46176
|
+
__assign = Object.assign || function(t) {
|
|
46177
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
46178
|
+
s = arguments[i];
|
|
46179
|
+
for (var p in s)
|
|
46180
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
46181
|
+
t[p] = s[p];
|
|
46182
|
+
}
|
|
46183
|
+
return t;
|
|
46184
|
+
};
|
|
46185
|
+
return __assign.apply(this, arguments);
|
|
46186
|
+
};
|
|
46187
|
+
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
46188
|
+
var t = {};
|
|
46189
|
+
for (var p in s)
|
|
46190
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
46191
|
+
t[p] = s[p];
|
|
46192
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
46193
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
46194
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
46195
|
+
t[p[i]] = s[p[i]];
|
|
46196
|
+
}
|
|
46197
|
+
return t;
|
|
46198
|
+
};
|
|
46199
|
+
var __spreadArray = commonjsGlobal && commonjsGlobal.__spreadArray || function(to, from, pack) {
|
|
46200
|
+
if (pack || arguments.length === 2)
|
|
46201
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
46202
|
+
if (ar || !(i in from)) {
|
|
46203
|
+
if (!ar)
|
|
46204
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
46205
|
+
ar[i] = from[i];
|
|
46206
|
+
}
|
|
46207
|
+
}
|
|
46208
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
46209
|
+
};
|
|
46210
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
46211
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
46212
|
+
};
|
|
46213
|
+
exports.__esModule = true;
|
|
46214
|
+
exports.Box = void 0;
|
|
46215
|
+
var react_1 = __importDefault(React);
|
|
46216
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
46217
|
+
var Spacing_1 = Spacing;
|
|
46218
|
+
var Box = function(_a) {
|
|
46219
|
+
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"]);
|
|
46220
|
+
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);
|
|
46221
|
+
return react_1["default"].createElement("div", __assign({ className: (0, classnames_1["default"])(classes, classNameOverride) }, restProps), children);
|
|
46222
|
+
};
|
|
46223
|
+
exports.Box = Box;
|
|
46224
|
+
exports.Box.displayName = "Box";
|
|
46225
|
+
})(Box);
|
|
46226
|
+
|
|
46227
|
+
(function(exports) {
|
|
46228
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
46229
|
+
if (k2 === void 0)
|
|
46230
|
+
k2 = k;
|
|
46231
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
46232
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
46233
|
+
desc = { enumerable: true, get: function() {
|
|
46234
|
+
return m[k];
|
|
46235
|
+
} };
|
|
46236
|
+
}
|
|
46237
|
+
Object.defineProperty(o, k2, desc);
|
|
46238
|
+
} : function(o, m, k, k2) {
|
|
46239
|
+
if (k2 === void 0)
|
|
46240
|
+
k2 = k;
|
|
46241
|
+
o[k2] = m[k];
|
|
46242
|
+
});
|
|
46243
|
+
exports.__esModule = true;
|
|
46244
|
+
exports.Box = void 0;
|
|
46245
|
+
var Box_1 = Box;
|
|
46246
|
+
__createBinding(exports, Box_1, "Box");
|
|
46247
|
+
})(Box$1);
|
|
46248
|
+
|
|
46249
|
+
(function(exports) {
|
|
46250
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
46251
|
+
if (k2 === void 0)
|
|
46252
|
+
k2 = k;
|
|
46253
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
46254
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
46255
|
+
desc = { enumerable: true, get: function() {
|
|
46256
|
+
return m[k];
|
|
46257
|
+
} };
|
|
46258
|
+
}
|
|
46259
|
+
Object.defineProperty(o, k2, desc);
|
|
46260
|
+
} : function(o, m, k, k2) {
|
|
46261
|
+
if (k2 === void 0)
|
|
46262
|
+
k2 = k;
|
|
46263
|
+
o[k2] = m[k];
|
|
46264
|
+
});
|
|
46265
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
46266
|
+
for (var p in m)
|
|
46267
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
46268
|
+
__createBinding(exports2, m, p);
|
|
46269
|
+
};
|
|
46270
|
+
exports.__esModule = true;
|
|
46271
|
+
__exportStar(Dropdown$1, exports);
|
|
46272
|
+
__exportStar(Layout$1, exports);
|
|
46273
|
+
__exportStar(Icon$1, exports);
|
|
46274
|
+
__exportStar(MenuList$1, exports);
|
|
46275
|
+
__exportStar(Text$1, exports);
|
|
46276
|
+
__exportStar(Spacing, exports);
|
|
46277
|
+
__exportStar(Box$1, exports);
|
|
46278
|
+
})(components);
|
|
46279
|
+
|
|
46280
|
+
(function(exports) {
|
|
46281
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
46282
|
+
if (k2 === void 0)
|
|
46283
|
+
k2 = k;
|
|
46284
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
46285
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
46286
|
+
desc = { enumerable: true, get: function() {
|
|
46287
|
+
return m[k];
|
|
46288
|
+
} };
|
|
46289
|
+
}
|
|
46290
|
+
Object.defineProperty(o, k2, desc);
|
|
46291
|
+
} : function(o, m, k, k2) {
|
|
46292
|
+
if (k2 === void 0)
|
|
46293
|
+
k2 = k;
|
|
46294
|
+
o[k2] = m[k];
|
|
46295
|
+
});
|
|
46296
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
46297
|
+
for (var p in m)
|
|
46298
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
46299
|
+
__createBinding(exports2, m, p);
|
|
46300
|
+
};
|
|
46301
|
+
exports.__esModule = true;
|
|
46302
|
+
__exportStar(components, exports);
|
|
46303
|
+
})(componentLibrary);
|
|
45216
46304
|
|
|
45217
46305
|
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";
|
|
45218
46306
|
var check = img;
|
|
@@ -45235,7 +46323,7 @@ var Option = function(_a) {
|
|
|
45235
46323
|
classNameOverride
|
|
45236
46324
|
]), "aria-label": item.textValue }),
|
|
45237
46325
|
item.rendered,
|
|
45238
|
-
React.createElement("span", { className: index.classNames([styles$4.icon, isSelected && styles$4.isSelected]) }, isSelected && React.createElement(Icon, { icon: check, role: "presentation" }))
|
|
46326
|
+
React.createElement("span", { className: index.classNames([styles$4.icon, isSelected && styles$4.isSelected]) }, isSelected && React.createElement(componentLibrary.Icon, { icon: check, role: "presentation" }))
|
|
45239
46327
|
);
|
|
45240
46328
|
};
|
|
45241
46329
|
Option.displayName = "Option";
|