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