@kaizen/components 1.7.3 → 1.7.7
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 +6 -6
- package/dist/cjs/future.js +1 -1
- package/dist/cjs/{index-7202af91.js → index-761f3c54.js} +1 -1
- package/dist/cjs/{index-7202af91.js.map → index-761f3c54.js.map} +1 -1
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.js +138 -1227
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/future.js +1 -1
- package/dist/esm/{index-e494c34a.js → index-efbec5b9.js} +1 -1
- package/dist/esm/{index-e494c34a.js.map → index-efbec5b9.js.map} +1 -1
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +138 -1227
- package/dist/esm/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
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-761f3c54.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$e = "\n [" + focusHiddenMarker + "] {\n pointer-events: none !important;\n }\n";
|
|
3796
|
+
var InteractivityDisabler = function () { return React__namespace.createElement(Style, { styles: styles$e }); };
|
|
3797
3797
|
|
|
3798
3798
|
var extractRef = function (ref) {
|
|
3799
3799
|
return 'current' in ref ? ref.current : ref;
|
|
@@ -37274,7 +37274,7 @@ var esm = /*#__PURE__*/Object.freeze({
|
|
|
37274
37274
|
usePopper: usePopper
|
|
37275
37275
|
});
|
|
37276
37276
|
|
|
37277
|
-
var styles$
|
|
37277
|
+
var styles$d = {"filterPopover":"FilterPopover-module_filterPopover__OgOEM"};
|
|
37278
37278
|
|
|
37279
37279
|
var FilterPopover = function(_a) {
|
|
37280
37280
|
var children = _a.children, referenceElement = _a.referenceElement, popperOptions = _a.popperOptions, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "referenceElement", "popperOptions", "classNameOverride"]);
|
|
@@ -37287,7 +37287,7 @@ var FilterPopover = function(_a) {
|
|
|
37287
37287
|
}
|
|
37288
37288
|
}
|
|
37289
37289
|
], placement: "bottom-start", strategy: "fixed" }, popperOptions)), popperStyles = _c.styles, popperAttributes = _c.attributes;
|
|
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$
|
|
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$d.filterPopover, classNameOverride), role: "dialog", "aria-modal": "true" }, restProps), children);
|
|
37291
37291
|
};
|
|
37292
37292
|
FilterPopover.displayName = "FilterPopover";
|
|
37293
37293
|
|
|
@@ -37332,31 +37332,31 @@ var Filter = function(_a) {
|
|
|
37332
37332
|
};
|
|
37333
37333
|
Filter.displayName = "Filter";
|
|
37334
37334
|
|
|
37335
|
-
var styles$
|
|
37335
|
+
var styles$c = {"filterContents":"FilterContents-module_filterContents__uNUpd"};
|
|
37336
37336
|
|
|
37337
37337
|
var FilterContents = function(_a) {
|
|
37338
37338
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
37339
|
-
return React.createElement("div", index.__assign({ className: index.classNames(styles$
|
|
37339
|
+
return React.createElement("div", index.__assign({ className: index.classNames(styles$c.filterContents, classNameOverride) }, restProps), children);
|
|
37340
37340
|
};
|
|
37341
37341
|
FilterContents.displayName = "FilterContents";
|
|
37342
37342
|
|
|
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"));
|
|
37343
|
+
var yellow$1 = "\x1B[33m ";
|
|
37344
|
+
var reset$1 = "\x1B[0m ";
|
|
37345
|
+
var warn$1 = function(message) {
|
|
37346
|
+
console.warn("".concat(yellow$1, "\nKAIZEN WARNING:\n").concat(singleLine$1(message)).concat(reset$1, "\n"));
|
|
37347
37347
|
};
|
|
37348
|
-
var singleLine = function(message) {
|
|
37348
|
+
var singleLine$1 = function(message) {
|
|
37349
37349
|
return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
37350
37350
|
};
|
|
37351
37351
|
|
|
37352
|
-
var styles$
|
|
37352
|
+
var styles$b = {"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"};
|
|
37353
37353
|
|
|
37354
37354
|
var SVG = function(_a) {
|
|
37355
37355
|
var _b, _c;
|
|
37356
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"]);
|
|
37357
37357
|
var isMeaningfulImg = role === "img";
|
|
37358
37358
|
if (isMeaningfulImg && !title) {
|
|
37359
|
-
warn(`
|
|
37359
|
+
warn$1(`
|
|
37360
37360
|
Icon with role "img" missing a title attribute.
|
|
37361
37361
|
|
|
37362
37362
|
Assistive technologies that enable vision-impaired users to read web pages
|
|
@@ -37381,7 +37381,7 @@ var SVG = function(_a) {
|
|
|
37381
37381
|
return React.createElement(
|
|
37382
37382
|
"svg",
|
|
37383
37383
|
index.__assign({
|
|
37384
|
-
className: index.classNames(styles$
|
|
37384
|
+
className: index.classNames(styles$b.icon, classNameOverride, (_c = {}, _c[styles$b.inheritSize] = inheritSize, _c)),
|
|
37385
37385
|
viewBox,
|
|
37386
37386
|
// Work around IE11 making all SVGs focusable.
|
|
37387
37387
|
// See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
|
|
@@ -37450,15 +37450,15 @@ var isRefObject = function(ref) {
|
|
|
37450
37450
|
return ref !== null && "current" in ref;
|
|
37451
37451
|
};
|
|
37452
37452
|
|
|
37453
|
-
var styles$
|
|
37453
|
+
var styles$a = {"filterButtonBase":"FilterButtonBase-module_filterButtonBase__I8mV-"};
|
|
37454
37454
|
|
|
37455
37455
|
var FilterButtonBase = React.forwardRef(function(_a, ref) {
|
|
37456
37456
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
37457
|
-
return React.createElement("button", index.__assign({ ref, className: index.classNames(styles$
|
|
37457
|
+
return React.createElement("button", index.__assign({ ref, className: index.classNames(styles$a.filterButtonBase, classNameOverride) }, restProps), children);
|
|
37458
37458
|
});
|
|
37459
37459
|
FilterButtonBase.displayName = "FilterButtonBase";
|
|
37460
37460
|
|
|
37461
|
-
var styles$
|
|
37461
|
+
var styles$9 = {"filterButton":"FilterButton-module_filterButton__Q2dMX","labelContainer":"FilterButton-module_labelContainer__5G-MD","hasSelectedValues":"FilterButton-module_hasSelectedValues__dyQkL","labelSeparator":"FilterButton-module_labelSeparator__xrkAx"};
|
|
37462
37462
|
|
|
37463
37463
|
var FilterButton = React.forwardRef(function(_a, ref) {
|
|
37464
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"]);
|
|
@@ -37467,15 +37467,15 @@ var FilterButton = React.forwardRef(function(_a, ref) {
|
|
|
37467
37467
|
var selectedValuesLabel = selectedValue;
|
|
37468
37468
|
return React.createElement(
|
|
37469
37469
|
FilterButtonBase,
|
|
37470
|
-
index.__assign({ ref: triggerRef, classNameOverride: index.classNames(styles$
|
|
37471
|
-
React.createElement("span", { className: styles$
|
|
37470
|
+
index.__assign({ ref: triggerRef, classNameOverride: index.classNames(styles$9.filterButton, classNameOverride), "aria-haspopup": "true", "aria-expanded": isOpen }, restProps),
|
|
37471
|
+
React.createElement("span", { className: styles$9.labelContainer }, selectedValuesLabel ? React.createElement(
|
|
37472
37472
|
React.Fragment,
|
|
37473
37473
|
null,
|
|
37474
37474
|
React.createElement(
|
|
37475
37475
|
"span",
|
|
37476
|
-
{ className: styles$
|
|
37476
|
+
{ className: styles$9.hasSelectedValues },
|
|
37477
37477
|
React.createElement("span", null, label),
|
|
37478
|
-
React.createElement("span", { className: styles$
|
|
37478
|
+
React.createElement("span", { className: styles$9.labelSeparator }, ":")
|
|
37479
37479
|
),
|
|
37480
37480
|
React.createElement("span", null, selectedValuesLabel)
|
|
37481
37481
|
) : label),
|
|
@@ -37490,7 +37490,7 @@ var Tooltip$1 = {};
|
|
|
37490
37490
|
|
|
37491
37491
|
var Tooltip = {};
|
|
37492
37492
|
|
|
37493
|
-
var require$$3
|
|
37493
|
+
var require$$3 = /*@__PURE__*/getAugmentedNamespace(esm);
|
|
37494
37494
|
|
|
37495
37495
|
var AppearanceAnim = {};
|
|
37496
37496
|
|
|
@@ -37503,7 +37503,7 @@ var index_module = /*#__PURE__*/Object.freeze({
|
|
|
37503
37503
|
useThrottledCallback: f$1
|
|
37504
37504
|
});
|
|
37505
37505
|
|
|
37506
|
-
var require$$1$
|
|
37506
|
+
var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(index_module);
|
|
37507
37507
|
|
|
37508
37508
|
(function(exports) {
|
|
37509
37509
|
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
@@ -37565,7 +37565,7 @@ var require$$1$5 = /*@__PURE__*/getAugmentedNamespace(index_module);
|
|
|
37565
37565
|
exports.__esModule = true;
|
|
37566
37566
|
exports.useAnimation = exports.AnimationProvider = exports.AnimationContext = void 0;
|
|
37567
37567
|
var react_1 = __importStar(React);
|
|
37568
|
-
var use_debounce_1 = require$$1$
|
|
37568
|
+
var use_debounce_1 = require$$1$1;
|
|
37569
37569
|
var ANIM_DURATION_MS = 400;
|
|
37570
37570
|
exports.AnimationContext = react_1["default"].createContext({
|
|
37571
37571
|
isVisible: false,
|
|
@@ -38225,12 +38225,12 @@ var esmBrowser = /*#__PURE__*/Object.freeze({
|
|
|
38225
38225
|
version: version
|
|
38226
38226
|
});
|
|
38227
38227
|
|
|
38228
|
-
var require$$1
|
|
38228
|
+
var require$$1 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
|
|
38229
38229
|
|
|
38230
38230
|
useUuid$1.__esModule = true;
|
|
38231
38231
|
useUuid$1.useUuid = void 0;
|
|
38232
38232
|
var react_1 = React;
|
|
38233
|
-
var uuid_1 = require$$1
|
|
38233
|
+
var uuid_1 = require$$1;
|
|
38234
38234
|
var useUuid = function() {
|
|
38235
38235
|
return (0, react_1.useMemo)(function() {
|
|
38236
38236
|
return (0, uuid_1.v4)();
|
|
@@ -38245,7 +38245,7 @@ var Tooltip_module$1 = /*#__PURE__*/Object.freeze({
|
|
|
38245
38245
|
default: Tooltip_module
|
|
38246
38246
|
});
|
|
38247
38247
|
|
|
38248
|
-
var require$$6
|
|
38248
|
+
var require$$6 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
38249
38249
|
|
|
38250
38250
|
(function(exports) {
|
|
38251
38251
|
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
@@ -38300,10 +38300,10 @@ var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
|
38300
38300
|
var react_1 = __importStar(React);
|
|
38301
38301
|
var react_dom_1 = __importDefault(reactDomExports);
|
|
38302
38302
|
var classnames_1 = __importDefault(index.classnamesExports);
|
|
38303
|
-
var react_popper_1 = require$$3
|
|
38303
|
+
var react_popper_1 = require$$3;
|
|
38304
38304
|
var AppearanceAnim_1 = AppearanceAnim;
|
|
38305
38305
|
var useUuid_1 = useUuid$1;
|
|
38306
|
-
var Tooltip_module_scss_1 = __importDefault(require$$6
|
|
38306
|
+
var Tooltip_module_scss_1 = __importDefault(require$$6);
|
|
38307
38307
|
var positionToPlacement = /* @__PURE__ */ new Map([
|
|
38308
38308
|
["above", "top"],
|
|
38309
38309
|
["below", "bottom"],
|
|
@@ -38489,7 +38489,7 @@ var ClearIcon = function(props) {
|
|
|
38489
38489
|
);
|
|
38490
38490
|
};
|
|
38491
38491
|
|
|
38492
|
-
var styles$
|
|
38492
|
+
var styles$8 = {"buttonGroup":"ButtonGroup-module_buttonGroup__bsy2X","child":"ButtonGroup-module_child__K6AP-","firstChild":"ButtonGroup-module_firstChild__uEn1j","lastChild":"ButtonGroup-module_lastChild__Vicsx"};
|
|
38493
38493
|
|
|
38494
38494
|
var isFilterButton = function(node) {
|
|
38495
38495
|
return React.isValidElement(node) && node.type === FilterButtonBase;
|
|
@@ -38497,11 +38497,11 @@ var isFilterButton = function(node) {
|
|
|
38497
38497
|
var ButtonGroup = function(_a) {
|
|
38498
38498
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
38499
38499
|
var childCount = React.Children.count(children);
|
|
38500
|
-
var containerProps = index.__assign({ role: "group", className: index.classNames(styles$
|
|
38500
|
+
var containerProps = index.__assign({ role: "group", className: index.classNames(styles$8.buttonGroup, classNameOverride) }, restProps);
|
|
38501
38501
|
if (childCount === 1)
|
|
38502
38502
|
return React.createElement("div", index.__assign({}, containerProps), children);
|
|
38503
38503
|
return React.createElement("div", index.__assign({}, containerProps), React.Children.map(children, function(child, index$1) {
|
|
38504
|
-
var buttonClassNames = index.classNames(styles$
|
|
38504
|
+
var buttonClassNames = index.classNames(styles$8.child, index$1 === 0 && styles$8.firstChild, index$1 === childCount - 1 && styles$8.lastChild, child.props.classNameOverride);
|
|
38505
38505
|
if (child.type === tooltip.Tooltip) {
|
|
38506
38506
|
var button = child.props.children;
|
|
38507
38507
|
if (isFilterButton(button)) {
|
|
@@ -45029,46 +45029,46 @@ function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
|
|
|
45029
45029
|
};
|
|
45030
45030
|
}
|
|
45031
45031
|
|
|
45032
|
-
var styles$
|
|
45032
|
+
var styles$7 = {"listBox":"ListBox-module_listBox__FQ9sQ","focus":"ListBox-module_focus__Tm-jn"};
|
|
45033
45033
|
|
|
45034
45034
|
var ListBox = function(_a) {
|
|
45035
45035
|
var children = _a.children, menuProps = _a.menuProps, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "menuProps", "classNameOverride"]);
|
|
45036
45036
|
var state = useSelectContext().state;
|
|
45037
45037
|
var ref = React.useRef(null);
|
|
45038
45038
|
var listBoxProps = $c132121280ec012d$export$50eacbbf140a3141(index.__assign(index.__assign({}, menuProps), { disallowEmptySelection: true, autoFocus: "first" }), state, ref).listBoxProps;
|
|
45039
|
-
return React.createElement("ul", index.__assign({ ref, className: index.classNames(styles$
|
|
45039
|
+
return React.createElement("ul", index.__assign({ ref, className: index.classNames(styles$7.listBox, classNameOverride) }, listBoxProps, restProps), children);
|
|
45040
45040
|
};
|
|
45041
45041
|
ListBox.displayName = "ListBox";
|
|
45042
45042
|
|
|
45043
|
-
var styles$
|
|
45043
|
+
var styles$6 = {"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"};
|
|
45044
45044
|
|
|
45045
|
-
var __defProp$
|
|
45045
|
+
var __defProp$2 = Object.defineProperty;
|
|
45046
45046
|
var __defProps = Object.defineProperties;
|
|
45047
45047
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
45048
|
-
var __getOwnPropSymbols$
|
|
45049
|
-
var __hasOwnProp$
|
|
45050
|
-
var __propIsEnum$
|
|
45051
|
-
var __defNormalProp$
|
|
45052
|
-
var __spreadValues$
|
|
45048
|
+
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
45049
|
+
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
45050
|
+
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
45051
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
45052
|
+
var __spreadValues$2 = (a, b) => {
|
|
45053
45053
|
for (var prop in b || (b = {}))
|
|
45054
|
-
if (__hasOwnProp$
|
|
45055
|
-
__defNormalProp$
|
|
45056
|
-
if (__getOwnPropSymbols$
|
|
45057
|
-
for (var prop of __getOwnPropSymbols$
|
|
45058
|
-
if (__propIsEnum$
|
|
45059
|
-
__defNormalProp$
|
|
45054
|
+
if (__hasOwnProp$2.call(b, prop))
|
|
45055
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
45056
|
+
if (__getOwnPropSymbols$2)
|
|
45057
|
+
for (var prop of __getOwnPropSymbols$2(b)) {
|
|
45058
|
+
if (__propIsEnum$2.call(b, prop))
|
|
45059
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
45060
45060
|
}
|
|
45061
45061
|
return a;
|
|
45062
45062
|
};
|
|
45063
45063
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
45064
|
-
var __objRest$
|
|
45064
|
+
var __objRest$2 = (source, exclude) => {
|
|
45065
45065
|
var target = {};
|
|
45066
45066
|
for (var prop in source)
|
|
45067
|
-
if (__hasOwnProp$
|
|
45067
|
+
if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
45068
45068
|
target[prop] = source[prop];
|
|
45069
|
-
if (source != null && __getOwnPropSymbols$
|
|
45070
|
-
for (var prop of __getOwnPropSymbols$
|
|
45071
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
45069
|
+
if (source != null && __getOwnPropSymbols$2)
|
|
45070
|
+
for (var prop of __getOwnPropSymbols$2(source)) {
|
|
45071
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
|
|
45072
45072
|
target[prop] = source[prop];
|
|
45073
45073
|
}
|
|
45074
45074
|
return target;
|
|
@@ -45081,7 +45081,7 @@ const Heading = (_a) => {
|
|
|
45081
45081
|
variant,
|
|
45082
45082
|
color = "dark",
|
|
45083
45083
|
classNameOverride
|
|
45084
|
-
} = _b, restProps = __objRest$
|
|
45084
|
+
} = _b, restProps = __objRest$2(_b, [
|
|
45085
45085
|
"children",
|
|
45086
45086
|
"tag",
|
|
45087
45087
|
"variant",
|
|
@@ -45090,13 +45090,13 @@ const Heading = (_a) => {
|
|
|
45090
45090
|
]);
|
|
45091
45091
|
const inferredTag = tag === void 0 ? translateHeadingLevelToTag(variant) : tag;
|
|
45092
45092
|
const className = index.classNames([
|
|
45093
|
-
styles$
|
|
45094
|
-
styles$
|
|
45093
|
+
styles$6.heading,
|
|
45094
|
+
styles$6[variant],
|
|
45095
45095
|
classNameOverride,
|
|
45096
|
-
styles$
|
|
45097
|
-
VARIANTS_24PX_OR_GREATER.includes(variant) ? styles$
|
|
45096
|
+
styles$6[color],
|
|
45097
|
+
VARIANTS_24PX_OR_GREATER.includes(variant) ? styles$6.large : styles$6.small
|
|
45098
45098
|
]);
|
|
45099
|
-
return React.createElement(inferredTag, __spreadProps(__spreadValues$
|
|
45099
|
+
return React.createElement(inferredTag, __spreadProps(__spreadValues$2({}, restProps), { className }), children);
|
|
45100
45100
|
};
|
|
45101
45101
|
Heading.displayName = "Heading";
|
|
45102
45102
|
const translateHeadingLevelToTag = (headingLevel) => {
|
|
@@ -45118,107 +45118,67 @@ const translateHeadingLevelToTag = (headingLevel) => {
|
|
|
45118
45118
|
}
|
|
45119
45119
|
};
|
|
45120
45120
|
|
|
45121
|
-
|
|
45122
|
-
|
|
45123
|
-
|
|
45124
|
-
|
|
45125
|
-
|
|
45126
|
-
|
|
45127
|
-
|
|
45128
|
-
|
|
45129
|
-
|
|
45130
|
-
|
|
45131
|
-
|
|
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
|
-
});
|
|
45121
|
+
const yellow = "\x1B[33m ";
|
|
45122
|
+
const reset = "\x1B[0m ";
|
|
45123
|
+
const warn = (message) => {
|
|
45124
|
+
console.warn(
|
|
45125
|
+
`${yellow}
|
|
45126
|
+
CULTUREAMP UI WARNING:
|
|
45127
|
+
${singleLine(message)}${reset}
|
|
45128
|
+
`
|
|
45129
|
+
);
|
|
45130
|
+
};
|
|
45131
|
+
const singleLine = (message) => message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
45179
45132
|
|
|
45180
|
-
var
|
|
45133
|
+
var styles$5 = {"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"};
|
|
45181
45134
|
|
|
45182
|
-
|
|
45183
|
-
|
|
45184
|
-
|
|
45185
|
-
|
|
45186
|
-
|
|
45187
|
-
|
|
45188
|
-
|
|
45189
|
-
|
|
45190
|
-
|
|
45191
|
-
|
|
45192
|
-
|
|
45193
|
-
|
|
45194
|
-
|
|
45195
|
-
|
|
45196
|
-
|
|
45197
|
-
|
|
45198
|
-
|
|
45199
|
-
|
|
45200
|
-
|
|
45201
|
-
|
|
45202
|
-
|
|
45203
|
-
|
|
45204
|
-
|
|
45205
|
-
|
|
45206
|
-
|
|
45207
|
-
|
|
45208
|
-
|
|
45209
|
-
|
|
45210
|
-
|
|
45211
|
-
|
|
45212
|
-
|
|
45213
|
-
|
|
45214
|
-
|
|
45215
|
-
|
|
45216
|
-
|
|
45217
|
-
|
|
45218
|
-
|
|
45219
|
-
|
|
45220
|
-
|
|
45221
|
-
|
|
45135
|
+
var __defProp$1 = Object.defineProperty;
|
|
45136
|
+
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
45137
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
45138
|
+
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
45139
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
45140
|
+
var __spreadValues$1 = (a, b) => {
|
|
45141
|
+
for (var prop in b || (b = {}))
|
|
45142
|
+
if (__hasOwnProp$1.call(b, prop))
|
|
45143
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
45144
|
+
if (__getOwnPropSymbols$1)
|
|
45145
|
+
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
45146
|
+
if (__propIsEnum$1.call(b, prop))
|
|
45147
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
45148
|
+
}
|
|
45149
|
+
return a;
|
|
45150
|
+
};
|
|
45151
|
+
var __objRest$1 = (source, exclude) => {
|
|
45152
|
+
var target = {};
|
|
45153
|
+
for (var prop in source)
|
|
45154
|
+
if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
45155
|
+
target[prop] = source[prop];
|
|
45156
|
+
if (source != null && __getOwnPropSymbols$1)
|
|
45157
|
+
for (var prop of __getOwnPropSymbols$1(source)) {
|
|
45158
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
|
|
45159
|
+
target[prop] = source[prop];
|
|
45160
|
+
}
|
|
45161
|
+
return target;
|
|
45162
|
+
};
|
|
45163
|
+
const Icon = (_a) => {
|
|
45164
|
+
var _b = _a, {
|
|
45165
|
+
icon,
|
|
45166
|
+
inheritSize = false,
|
|
45167
|
+
role = "img",
|
|
45168
|
+
title = "",
|
|
45169
|
+
desc = "",
|
|
45170
|
+
classNameOverride
|
|
45171
|
+
} = _b, props = __objRest$1(_b, [
|
|
45172
|
+
"icon",
|
|
45173
|
+
"inheritSize",
|
|
45174
|
+
"role",
|
|
45175
|
+
"title",
|
|
45176
|
+
"desc",
|
|
45177
|
+
"classNameOverride"
|
|
45178
|
+
]);
|
|
45179
|
+
const isMeaningfulImg = role === "img";
|
|
45180
|
+
if (isMeaningfulImg && !title) {
|
|
45181
|
+
warn(`
|
|
45222
45182
|
Icon with role "img" missing a title attribute.
|
|
45223
45183
|
|
|
45224
45184
|
Assistive technologies that enable vision-impaired users to read web pages
|
|
@@ -45230,1077 +45190,28 @@ var require$$3 = /*@__PURE__*/getAugmentedNamespace(Icon_module$1);
|
|
|
45230
45190
|
Either add the missing title prop, or set this icon's role to
|
|
45231
45191
|
"presentation" to indicate it is not meaningful.
|
|
45232
45192
|
`);
|
|
45233
|
-
|
|
45234
|
-
|
|
45235
|
-
|
|
45236
|
-
|
|
45237
|
-
|
|
45238
|
-
|
|
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
|
-
);
|
|
45256
|
-
};
|
|
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)
|
|
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);
|
|
45193
|
+
}
|
|
45194
|
+
const renderTitle = () => isMeaningfulImg && !!title && /* @__PURE__ */ React.createElement("title", null, title);
|
|
45195
|
+
const renderDesc = () => isMeaningfulImg && !!desc && /* @__PURE__ */ React.createElement("desc", null, desc);
|
|
45196
|
+
const accessibilityProps = {
|
|
45197
|
+
role,
|
|
45198
|
+
["aria-hidden"]: isMeaningfulImg ? void 0 : true
|
|
45614
45199
|
};
|
|
45615
|
-
|
|
45616
|
-
|
|
45617
|
-
|
|
45618
|
-
|
|
45619
|
-
|
|
45620
|
-
|
|
45621
|
-
|
|
45622
|
-
|
|
45623
|
-
|
|
45624
|
-
|
|
45625
|
-
|
|
45626
|
-
|
|
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)
|
|
45200
|
+
return /* @__PURE__ */ React.createElement(
|
|
45201
|
+
"svg",
|
|
45202
|
+
__spreadValues$1(__spreadValues$1({
|
|
45203
|
+
className: index.classNames(styles$5.icon, classNameOverride, {
|
|
45204
|
+
[styles$5.inheritSize]: inheritSize
|
|
45205
|
+
}),
|
|
45206
|
+
viewBox: icon.viewBox,
|
|
45207
|
+
focusable: "false"
|
|
45208
|
+
}, accessibilityProps), props),
|
|
45209
|
+
renderTitle(),
|
|
45210
|
+
renderDesc(),
|
|
45211
|
+
/* @__PURE__ */ React.createElement("use", { xlinkHref: `#${icon.id}` })
|
|
45664
45212
|
);
|
|
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
|
-
}
|
|
45936
45213
|
};
|
|
45937
|
-
|
|
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);
|
|
45214
|
+
Icon.displayName = "Icon";
|
|
46304
45215
|
|
|
46305
45216
|
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";
|
|
46306
45217
|
var check = img;
|
|
@@ -46323,7 +45234,7 @@ var Option = function(_a) {
|
|
|
46323
45234
|
classNameOverride
|
|
46324
45235
|
]), "aria-label": item.textValue }),
|
|
46325
45236
|
item.rendered,
|
|
46326
|
-
React.createElement("span", { className: index.classNames([styles$4.icon, isSelected && styles$4.isSelected]) }, isSelected && React.createElement(
|
|
45237
|
+
React.createElement("span", { className: index.classNames([styles$4.icon, isSelected && styles$4.isSelected]) }, isSelected && React.createElement(Icon, { icon: check, role: "presentation" }))
|
|
46327
45238
|
);
|
|
46328
45239
|
};
|
|
46329
45240
|
Option.displayName = "Option";
|