@kaizen/components 1.7.10 → 1.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/future.js +1 -1
- package/dist/cjs/{index-05670f16.js → index-7f3aa247.js} +1 -1
- package/dist/cjs/{index-05670f16.js.map → index-7f3aa247.js.map} +1 -1
- package/dist/cjs/index.js +1229 -140
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/future.js +1 -1
- package/dist/esm/{index-8eb84ea0.js → index-cce2ecd8.js} +1 -1
- package/dist/esm/{index-8eb84ea0.js.map → index-cce2ecd8.js.map} +1 -1
- package/dist/esm/index.js +1229 -140
- package/dist/esm/index.js.map +1 -1
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, b as __spreadArray, c as __spreadArrays, d as classNames, e as classnamesExports } from './index-
|
|
1
|
+
import { _ as __rest, a as __assign, b as __spreadArray, c as __spreadArrays, d as classNames, e as classnamesExports } from './index-cce2ecd8.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useState, useEffect, PureComponent, useRef, forwardRef, useMemo, useCallback, useContext, useLayoutEffect, createElement, createContext } from 'react';
|
|
4
4
|
import { makeCssVariableDefinitionsMap } from '@kaizen/design-tokens';
|
|
@@ -6,7 +6,7 @@ import { makeCssVariableDefinitionsMap } from '@kaizen/design-tokens';
|
|
|
6
6
|
const ORIGIN_BASE_URL = "https://d1e7r7b0lb8p4d.cloudfront.net";
|
|
7
7
|
const assetUrl = (path) => [ORIGIN_BASE_URL, path].join("/");
|
|
8
8
|
|
|
9
|
-
var styles$
|
|
9
|
+
var styles$e = {"img":"Brand-module_img__uWvra"};
|
|
10
10
|
|
|
11
11
|
var Brand = function(_a) {
|
|
12
12
|
var variant = _a.variant, alt = _a.alt, _b = _a.reversed, reversed = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["variant", "alt", "reversed", "classNameOverride"]);
|
|
@@ -16,7 +16,7 @@ var Brand = function(_a) {
|
|
|
16
16
|
__assign({ className: classNameOverride }, restProps),
|
|
17
17
|
React__default.createElement("source", { srcSet: assetUrl("brand/".concat(variant, "-reversed.svg")), media: "(forced-colors: active) and (prefers-color-scheme: dark)" }),
|
|
18
18
|
React__default.createElement("source", { srcSet: assetUrl("brand/".concat(variant, "-default.svg")), media: "(forced-colors: active) and (prefers-color-scheme: light)" }),
|
|
19
|
-
React__default.createElement("img", { src: assetUrl("brand/".concat(variant).concat(brandTheme, ".svg")), alt, className: styles$
|
|
19
|
+
React__default.createElement("img", { src: assetUrl("brand/".concat(variant).concat(brandTheme, ".svg")), alt, className: styles$e.img })
|
|
20
20
|
);
|
|
21
21
|
};
|
|
22
22
|
Brand.displayName = "Brand";
|
|
@@ -3368,8 +3368,8 @@ var hideOthers = function (originalTarget, parentNode, markerName) {
|
|
|
3368
3368
|
};
|
|
3369
3369
|
|
|
3370
3370
|
var Style = styleSingleton();
|
|
3371
|
-
var styles$
|
|
3372
|
-
var InteractivityDisabler = function () { return React.createElement(Style, { styles: styles$
|
|
3371
|
+
var styles$d = "\n [" + focusHiddenMarker + "] {\n pointer-events: none !important;\n }\n";
|
|
3372
|
+
var InteractivityDisabler = function () { return React.createElement(Style, { styles: styles$d }); };
|
|
3373
3373
|
|
|
3374
3374
|
var extractRef = function (ref) {
|
|
3375
3375
|
return 'current' in ref ? ref.current : ref;
|
|
@@ -36850,7 +36850,7 @@ var esm = /*#__PURE__*/Object.freeze({
|
|
|
36850
36850
|
usePopper: usePopper
|
|
36851
36851
|
});
|
|
36852
36852
|
|
|
36853
|
-
var styles$
|
|
36853
|
+
var styles$c = {"filterPopover":"FilterPopover-module_filterPopover__OgOEM"};
|
|
36854
36854
|
|
|
36855
36855
|
var FilterPopover = function(_a) {
|
|
36856
36856
|
var children = _a.children, referenceElement = _a.referenceElement, popperOptions = _a.popperOptions, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "referenceElement", "popperOptions", "classNameOverride"]);
|
|
@@ -36863,7 +36863,7 @@ var FilterPopover = function(_a) {
|
|
|
36863
36863
|
}
|
|
36864
36864
|
}
|
|
36865
36865
|
], placement: "bottom-start", strategy: "fixed" }, popperOptions)), popperStyles = _c.styles, popperAttributes = _c.attributes;
|
|
36866
|
-
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$
|
|
36866
|
+
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);
|
|
36867
36867
|
};
|
|
36868
36868
|
FilterPopover.displayName = "FilterPopover";
|
|
36869
36869
|
|
|
@@ -36908,31 +36908,31 @@ var Filter = function(_a) {
|
|
|
36908
36908
|
};
|
|
36909
36909
|
Filter.displayName = "Filter";
|
|
36910
36910
|
|
|
36911
|
-
var styles$
|
|
36911
|
+
var styles$b = {"filterContents":"FilterContents-module_filterContents__uNUpd"};
|
|
36912
36912
|
|
|
36913
36913
|
var FilterContents = function(_a) {
|
|
36914
36914
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "classNameOverride"]);
|
|
36915
|
-
return React__default.createElement("div", __assign({ className: classNames(styles$
|
|
36915
|
+
return React__default.createElement("div", __assign({ className: classNames(styles$b.filterContents, classNameOverride) }, restProps), children);
|
|
36916
36916
|
};
|
|
36917
36917
|
FilterContents.displayName = "FilterContents";
|
|
36918
36918
|
|
|
36919
|
-
var yellow
|
|
36920
|
-
var reset
|
|
36921
|
-
var warn
|
|
36922
|
-
console.warn("".concat(yellow
|
|
36919
|
+
var yellow = "\x1B[33m ";
|
|
36920
|
+
var reset = "\x1B[0m ";
|
|
36921
|
+
var warn = function(message) {
|
|
36922
|
+
console.warn("".concat(yellow, "\nKAIZEN WARNING:\n").concat(singleLine(message)).concat(reset, "\n"));
|
|
36923
36923
|
};
|
|
36924
|
-
var singleLine
|
|
36924
|
+
var singleLine = function(message) {
|
|
36925
36925
|
return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
36926
36926
|
};
|
|
36927
36927
|
|
|
36928
|
-
var styles$
|
|
36928
|
+
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"};
|
|
36929
36929
|
|
|
36930
36930
|
var SVG = function(_a) {
|
|
36931
36931
|
var _b, _c;
|
|
36932
36932
|
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"]);
|
|
36933
36933
|
var isMeaningfulImg = role === "img";
|
|
36934
36934
|
if (isMeaningfulImg && !title) {
|
|
36935
|
-
warn
|
|
36935
|
+
warn(`
|
|
36936
36936
|
Icon with role "img" missing a title attribute.
|
|
36937
36937
|
|
|
36938
36938
|
Assistive technologies that enable vision-impaired users to read web pages
|
|
@@ -36957,7 +36957,7 @@ var SVG = function(_a) {
|
|
|
36957
36957
|
return React__default.createElement(
|
|
36958
36958
|
"svg",
|
|
36959
36959
|
__assign({
|
|
36960
|
-
className: classNames(styles$
|
|
36960
|
+
className: classNames(styles$a.icon, classNameOverride, (_c = {}, _c[styles$a.inheritSize] = inheritSize, _c)),
|
|
36961
36961
|
viewBox,
|
|
36962
36962
|
// Work around IE11 making all SVGs focusable.
|
|
36963
36963
|
// See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
|
|
@@ -37026,15 +37026,15 @@ var isRefObject = function(ref) {
|
|
|
37026
37026
|
return ref !== null && "current" in ref;
|
|
37027
37027
|
};
|
|
37028
37028
|
|
|
37029
|
-
var styles$
|
|
37029
|
+
var styles$9 = {"filterButtonBase":"FilterButtonBase-module_filterButtonBase__I8mV-"};
|
|
37030
37030
|
|
|
37031
37031
|
var FilterButtonBase = forwardRef(function(_a, ref) {
|
|
37032
37032
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "classNameOverride"]);
|
|
37033
|
-
return React__default.createElement("button", __assign({ ref, className: classNames(styles$
|
|
37033
|
+
return React__default.createElement("button", __assign({ ref, className: classNames(styles$9.filterButtonBase, classNameOverride) }, restProps), children);
|
|
37034
37034
|
});
|
|
37035
37035
|
FilterButtonBase.displayName = "FilterButtonBase";
|
|
37036
37036
|
|
|
37037
|
-
var styles$
|
|
37037
|
+
var styles$8 = {"filterButton":"FilterButton-module_filterButton__Q2dMX","labelContainer":"FilterButton-module_labelContainer__5G-MD","hasSelectedValues":"FilterButton-module_hasSelectedValues__dyQkL","labelSeparator":"FilterButton-module_labelSeparator__xrkAx"};
|
|
37038
37038
|
|
|
37039
37039
|
var FilterButton = forwardRef(function(_a, ref) {
|
|
37040
37040
|
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"]);
|
|
@@ -37043,15 +37043,15 @@ var FilterButton = forwardRef(function(_a, ref) {
|
|
|
37043
37043
|
var selectedValuesLabel = selectedValue;
|
|
37044
37044
|
return React__default.createElement(
|
|
37045
37045
|
FilterButtonBase,
|
|
37046
|
-
__assign({ ref: triggerRef, classNameOverride: classNames(styles$
|
|
37047
|
-
React__default.createElement("span", { className: styles$
|
|
37046
|
+
__assign({ ref: triggerRef, classNameOverride: classNames(styles$8.filterButton, classNameOverride), "aria-haspopup": "true", "aria-expanded": isOpen }, restProps),
|
|
37047
|
+
React__default.createElement("span", { className: styles$8.labelContainer }, selectedValuesLabel ? React__default.createElement(
|
|
37048
37048
|
React__default.Fragment,
|
|
37049
37049
|
null,
|
|
37050
37050
|
React__default.createElement(
|
|
37051
37051
|
"span",
|
|
37052
|
-
{ className: styles$
|
|
37052
|
+
{ className: styles$8.hasSelectedValues },
|
|
37053
37053
|
React__default.createElement("span", null, label),
|
|
37054
|
-
React__default.createElement("span", { className: styles$
|
|
37054
|
+
React__default.createElement("span", { className: styles$8.labelSeparator }, ":")
|
|
37055
37055
|
),
|
|
37056
37056
|
React__default.createElement("span", null, selectedValuesLabel)
|
|
37057
37057
|
) : label),
|
|
@@ -37066,7 +37066,7 @@ var Tooltip$1 = {};
|
|
|
37066
37066
|
|
|
37067
37067
|
var Tooltip = {};
|
|
37068
37068
|
|
|
37069
|
-
var require$$3 = /*@__PURE__*/getAugmentedNamespace(esm);
|
|
37069
|
+
var require$$3$2 = /*@__PURE__*/getAugmentedNamespace(esm);
|
|
37070
37070
|
|
|
37071
37071
|
var AppearanceAnim = {};
|
|
37072
37072
|
|
|
@@ -37079,7 +37079,7 @@ var index_module = /*#__PURE__*/Object.freeze({
|
|
|
37079
37079
|
useThrottledCallback: f$1
|
|
37080
37080
|
});
|
|
37081
37081
|
|
|
37082
|
-
var require$$1$
|
|
37082
|
+
var require$$1$5 = /*@__PURE__*/getAugmentedNamespace(index_module);
|
|
37083
37083
|
|
|
37084
37084
|
(function(exports) {
|
|
37085
37085
|
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
@@ -37141,7 +37141,7 @@ var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(index_module);
|
|
|
37141
37141
|
exports.__esModule = true;
|
|
37142
37142
|
exports.useAnimation = exports.AnimationProvider = exports.AnimationContext = void 0;
|
|
37143
37143
|
var react_1 = __importStar(React__default);
|
|
37144
|
-
var use_debounce_1 = require$$1$
|
|
37144
|
+
var use_debounce_1 = require$$1$5;
|
|
37145
37145
|
var ANIM_DURATION_MS = 400;
|
|
37146
37146
|
exports.AnimationContext = react_1["default"].createContext({
|
|
37147
37147
|
isVisible: false,
|
|
@@ -37801,12 +37801,12 @@ var esmBrowser = /*#__PURE__*/Object.freeze({
|
|
|
37801
37801
|
version: version
|
|
37802
37802
|
});
|
|
37803
37803
|
|
|
37804
|
-
var require$$1 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
|
|
37804
|
+
var require$$1$4 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
|
|
37805
37805
|
|
|
37806
37806
|
useUuid$1.__esModule = true;
|
|
37807
37807
|
useUuid$1.useUuid = void 0;
|
|
37808
37808
|
var react_1 = React__default;
|
|
37809
|
-
var uuid_1 = require$$1;
|
|
37809
|
+
var uuid_1 = require$$1$4;
|
|
37810
37810
|
var useUuid = function() {
|
|
37811
37811
|
return (0, react_1.useMemo)(function() {
|
|
37812
37812
|
return (0, uuid_1.v4)();
|
|
@@ -37821,7 +37821,7 @@ var Tooltip_module$1 = /*#__PURE__*/Object.freeze({
|
|
|
37821
37821
|
default: Tooltip_module
|
|
37822
37822
|
});
|
|
37823
37823
|
|
|
37824
|
-
var require$$6 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
37824
|
+
var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
37825
37825
|
|
|
37826
37826
|
(function(exports) {
|
|
37827
37827
|
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
@@ -37876,10 +37876,10 @@ var require$$6 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
|
37876
37876
|
var react_1 = __importStar(React__default);
|
|
37877
37877
|
var react_dom_1 = __importDefault(reactDomExports);
|
|
37878
37878
|
var classnames_1 = __importDefault(classnamesExports);
|
|
37879
|
-
var react_popper_1 = require$$3;
|
|
37879
|
+
var react_popper_1 = require$$3$2;
|
|
37880
37880
|
var AppearanceAnim_1 = AppearanceAnim;
|
|
37881
37881
|
var useUuid_1 = useUuid$1;
|
|
37882
|
-
var Tooltip_module_scss_1 = __importDefault(require$$6);
|
|
37882
|
+
var Tooltip_module_scss_1 = __importDefault(require$$6$1);
|
|
37883
37883
|
var positionToPlacement = /* @__PURE__ */ new Map([
|
|
37884
37884
|
["above", "top"],
|
|
37885
37885
|
["below", "bottom"],
|
|
@@ -38065,7 +38065,7 @@ var ClearIcon = function(props) {
|
|
|
38065
38065
|
);
|
|
38066
38066
|
};
|
|
38067
38067
|
|
|
38068
|
-
var styles$
|
|
38068
|
+
var styles$7 = {"buttonGroup":"ButtonGroup-module_buttonGroup__bsy2X","child":"ButtonGroup-module_child__K6AP-","firstChild":"ButtonGroup-module_firstChild__uEn1j","lastChild":"ButtonGroup-module_lastChild__Vicsx"};
|
|
38069
38069
|
|
|
38070
38070
|
var isFilterButton = function(node) {
|
|
38071
38071
|
return React__default.isValidElement(node) && node.type === FilterButtonBase;
|
|
@@ -38073,11 +38073,11 @@ var isFilterButton = function(node) {
|
|
|
38073
38073
|
var ButtonGroup = function(_a) {
|
|
38074
38074
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "classNameOverride"]);
|
|
38075
38075
|
var childCount = React__default.Children.count(children);
|
|
38076
|
-
var containerProps = __assign({ role: "group", className: classNames(styles$
|
|
38076
|
+
var containerProps = __assign({ role: "group", className: classNames(styles$7.buttonGroup, classNameOverride) }, restProps);
|
|
38077
38077
|
if (childCount === 1)
|
|
38078
38078
|
return React__default.createElement("div", __assign({}, containerProps), children);
|
|
38079
38079
|
return React__default.createElement("div", __assign({}, containerProps), React__default.Children.map(children, function(child, index) {
|
|
38080
|
-
var buttonClassNames = classNames(styles$
|
|
38080
|
+
var buttonClassNames = classNames(styles$7.child, index === 0 && styles$7.firstChild, index === childCount - 1 && styles$7.lastChild, child.props.classNameOverride);
|
|
38081
38081
|
if (child.type === tooltip.Tooltip) {
|
|
38082
38082
|
var button = child.props.children;
|
|
38083
38083
|
if (isFilterButton(button)) {
|
|
@@ -44605,46 +44605,46 @@ function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
|
|
|
44605
44605
|
};
|
|
44606
44606
|
}
|
|
44607
44607
|
|
|
44608
|
-
var styles$
|
|
44608
|
+
var styles$6 = {"listBox":"ListBox-module_listBox__FQ9sQ","focus":"ListBox-module_focus__Tm-jn"};
|
|
44609
44609
|
|
|
44610
44610
|
var ListBox = function(_a) {
|
|
44611
44611
|
var children = _a.children, menuProps = _a.menuProps, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "menuProps", "classNameOverride"]);
|
|
44612
44612
|
var state = useSelectContext().state;
|
|
44613
44613
|
var ref = React__default.useRef(null);
|
|
44614
44614
|
var listBoxProps = $c132121280ec012d$export$50eacbbf140a3141(__assign(__assign({}, menuProps), { disallowEmptySelection: true, autoFocus: "first" }), state, ref).listBoxProps;
|
|
44615
|
-
return React__default.createElement("ul", __assign({ ref, className: classNames(styles$
|
|
44615
|
+
return React__default.createElement("ul", __assign({ ref, className: classNames(styles$6.listBox, classNameOverride) }, listBoxProps, restProps), children);
|
|
44616
44616
|
};
|
|
44617
44617
|
ListBox.displayName = "ListBox";
|
|
44618
44618
|
|
|
44619
|
-
var styles$
|
|
44619
|
+
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"};
|
|
44620
44620
|
|
|
44621
|
-
var __defProp$
|
|
44621
|
+
var __defProp$1 = Object.defineProperty;
|
|
44622
44622
|
var __defProps = Object.defineProperties;
|
|
44623
44623
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
44624
|
-
var __getOwnPropSymbols$
|
|
44625
|
-
var __hasOwnProp$
|
|
44626
|
-
var __propIsEnum$
|
|
44627
|
-
var __defNormalProp$
|
|
44628
|
-
var __spreadValues$
|
|
44624
|
+
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
44625
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
44626
|
+
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
44627
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
44628
|
+
var __spreadValues$1 = (a, b) => {
|
|
44629
44629
|
for (var prop in b || (b = {}))
|
|
44630
|
-
if (__hasOwnProp$
|
|
44631
|
-
__defNormalProp$
|
|
44632
|
-
if (__getOwnPropSymbols$
|
|
44633
|
-
for (var prop of __getOwnPropSymbols$
|
|
44634
|
-
if (__propIsEnum$
|
|
44635
|
-
__defNormalProp$
|
|
44630
|
+
if (__hasOwnProp$1.call(b, prop))
|
|
44631
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
44632
|
+
if (__getOwnPropSymbols$1)
|
|
44633
|
+
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
44634
|
+
if (__propIsEnum$1.call(b, prop))
|
|
44635
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
44636
44636
|
}
|
|
44637
44637
|
return a;
|
|
44638
44638
|
};
|
|
44639
44639
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
44640
|
-
var __objRest$
|
|
44640
|
+
var __objRest$1 = (source, exclude) => {
|
|
44641
44641
|
var target = {};
|
|
44642
44642
|
for (var prop in source)
|
|
44643
|
-
if (__hasOwnProp$
|
|
44643
|
+
if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
44644
44644
|
target[prop] = source[prop];
|
|
44645
|
-
if (source != null && __getOwnPropSymbols$
|
|
44646
|
-
for (var prop of __getOwnPropSymbols$
|
|
44647
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
44645
|
+
if (source != null && __getOwnPropSymbols$1)
|
|
44646
|
+
for (var prop of __getOwnPropSymbols$1(source)) {
|
|
44647
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
|
|
44648
44648
|
target[prop] = source[prop];
|
|
44649
44649
|
}
|
|
44650
44650
|
return target;
|
|
@@ -44657,7 +44657,7 @@ const Heading = (_a) => {
|
|
|
44657
44657
|
variant,
|
|
44658
44658
|
color = "dark",
|
|
44659
44659
|
classNameOverride
|
|
44660
|
-
} = _b, restProps = __objRest$
|
|
44660
|
+
} = _b, restProps = __objRest$1(_b, [
|
|
44661
44661
|
"children",
|
|
44662
44662
|
"tag",
|
|
44663
44663
|
"variant",
|
|
@@ -44666,13 +44666,13 @@ const Heading = (_a) => {
|
|
|
44666
44666
|
]);
|
|
44667
44667
|
const inferredTag = tag === void 0 ? translateHeadingLevelToTag(variant) : tag;
|
|
44668
44668
|
const className = classNames([
|
|
44669
|
-
styles$
|
|
44670
|
-
styles$
|
|
44669
|
+
styles$5.heading,
|
|
44670
|
+
styles$5[variant],
|
|
44671
44671
|
classNameOverride,
|
|
44672
|
-
styles$
|
|
44673
|
-
VARIANTS_24PX_OR_GREATER.includes(variant) ? styles$
|
|
44672
|
+
styles$5[color],
|
|
44673
|
+
VARIANTS_24PX_OR_GREATER.includes(variant) ? styles$5.large : styles$5.small
|
|
44674
44674
|
]);
|
|
44675
|
-
return createElement(inferredTag, __spreadProps(__spreadValues$
|
|
44675
|
+
return createElement(inferredTag, __spreadProps(__spreadValues$1({}, restProps), { className }), children);
|
|
44676
44676
|
};
|
|
44677
44677
|
Heading.displayName = "Heading";
|
|
44678
44678
|
const translateHeadingLevelToTag = (headingLevel) => {
|
|
@@ -44694,67 +44694,107 @@ const translateHeadingLevelToTag = (headingLevel) => {
|
|
|
44694
44694
|
}
|
|
44695
44695
|
};
|
|
44696
44696
|
|
|
44697
|
-
|
|
44698
|
-
const reset = "\x1B[0m ";
|
|
44699
|
-
const warn = (message) => {
|
|
44700
|
-
console.warn(
|
|
44701
|
-
`${yellow}
|
|
44702
|
-
CULTUREAMP UI WARNING:
|
|
44703
|
-
${singleLine(message)}${reset}
|
|
44704
|
-
`
|
|
44705
|
-
);
|
|
44706
|
-
};
|
|
44707
|
-
const singleLine = (message) => message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
44697
|
+
var componentLibrary = {};
|
|
44708
44698
|
|
|
44709
|
-
var
|
|
44699
|
+
var components = {};
|
|
44710
44700
|
|
|
44711
|
-
var
|
|
44712
|
-
|
|
44713
|
-
var
|
|
44714
|
-
|
|
44715
|
-
var
|
|
44716
|
-
|
|
44717
|
-
|
|
44718
|
-
|
|
44719
|
-
|
|
44720
|
-
|
|
44721
|
-
|
|
44722
|
-
|
|
44723
|
-
|
|
44724
|
-
|
|
44725
|
-
|
|
44726
|
-
|
|
44727
|
-
|
|
44728
|
-
|
|
44729
|
-
|
|
44730
|
-
|
|
44731
|
-
|
|
44732
|
-
|
|
44733
|
-
|
|
44734
|
-
|
|
44735
|
-
|
|
44736
|
-
|
|
44737
|
-
|
|
44738
|
-
|
|
44739
|
-
|
|
44740
|
-
|
|
44741
|
-
|
|
44742
|
-
|
|
44743
|
-
|
|
44744
|
-
|
|
44745
|
-
|
|
44746
|
-
|
|
44747
|
-
}
|
|
44748
|
-
|
|
44749
|
-
|
|
44750
|
-
"
|
|
44751
|
-
|
|
44752
|
-
|
|
44753
|
-
|
|
44754
|
-
|
|
44755
|
-
|
|
44756
|
-
|
|
44757
|
-
|
|
44701
|
+
var Dropdown$1 = {};
|
|
44702
|
+
|
|
44703
|
+
var Dropdown = {};
|
|
44704
|
+
|
|
44705
|
+
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";
|
|
44706
|
+
|
|
44707
|
+
var chevronDown_icon = /*#__PURE__*/Object.freeze({
|
|
44708
|
+
__proto__: null,
|
|
44709
|
+
default: img$2
|
|
44710
|
+
});
|
|
44711
|
+
|
|
44712
|
+
var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(chevronDown_icon);
|
|
44713
|
+
|
|
44714
|
+
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";
|
|
44715
|
+
|
|
44716
|
+
var ellipsis_icon = /*#__PURE__*/Object.freeze({
|
|
44717
|
+
__proto__: null,
|
|
44718
|
+
default: img$1
|
|
44719
|
+
});
|
|
44720
|
+
|
|
44721
|
+
var require$$3$1 = /*@__PURE__*/getAugmentedNamespace(ellipsis_icon);
|
|
44722
|
+
|
|
44723
|
+
var Icon$1 = {};
|
|
44724
|
+
|
|
44725
|
+
var Icon = {};
|
|
44726
|
+
|
|
44727
|
+
var console$1 = {};
|
|
44728
|
+
|
|
44729
|
+
(function(exports) {
|
|
44730
|
+
exports.__esModule = true;
|
|
44731
|
+
exports.singleLine = exports.warn = exports.error = void 0;
|
|
44732
|
+
var red = "\x1B[31m ";
|
|
44733
|
+
var yellow = "\x1B[33m ";
|
|
44734
|
+
var reset = "\x1B[0m ";
|
|
44735
|
+
var error = function(message) {
|
|
44736
|
+
throw new Error("".concat(red, "\nCULTUREAMP UI ERROR:\n").concat((0, exports.singleLine)(message)).concat(reset, "\n"));
|
|
44737
|
+
};
|
|
44738
|
+
exports.error = error;
|
|
44739
|
+
var warn = function(message) {
|
|
44740
|
+
console.warn("".concat(yellow, "\nCULTUREAMP UI WARNING:\n").concat((0, exports.singleLine)(message)).concat(reset, "\n"));
|
|
44741
|
+
};
|
|
44742
|
+
exports.warn = warn;
|
|
44743
|
+
var singleLine = function(message) {
|
|
44744
|
+
return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
44745
|
+
};
|
|
44746
|
+
exports.singleLine = singleLine;
|
|
44747
|
+
})(console$1);
|
|
44748
|
+
|
|
44749
|
+
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"};
|
|
44750
|
+
|
|
44751
|
+
var Icon_module$1 = /*#__PURE__*/Object.freeze({
|
|
44752
|
+
__proto__: null,
|
|
44753
|
+
default: Icon_module
|
|
44754
|
+
});
|
|
44755
|
+
|
|
44756
|
+
var require$$3 = /*@__PURE__*/getAugmentedNamespace(Icon_module$1);
|
|
44757
|
+
|
|
44758
|
+
(function(exports) {
|
|
44759
|
+
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
44760
|
+
__assign = Object.assign || function(t) {
|
|
44761
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
44762
|
+
s = arguments[i];
|
|
44763
|
+
for (var p in s)
|
|
44764
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
44765
|
+
t[p] = s[p];
|
|
44766
|
+
}
|
|
44767
|
+
return t;
|
|
44768
|
+
};
|
|
44769
|
+
return __assign.apply(this, arguments);
|
|
44770
|
+
};
|
|
44771
|
+
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
44772
|
+
var t = {};
|
|
44773
|
+
for (var p in s)
|
|
44774
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
44775
|
+
t[p] = s[p];
|
|
44776
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
44777
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
44778
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
44779
|
+
t[p[i]] = s[p[i]];
|
|
44780
|
+
}
|
|
44781
|
+
return t;
|
|
44782
|
+
};
|
|
44783
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
44784
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
44785
|
+
};
|
|
44786
|
+
exports.__esModule = true;
|
|
44787
|
+
exports.Icon = void 0;
|
|
44788
|
+
var react_1 = __importDefault(React__default);
|
|
44789
|
+
var classnames_1 = __importDefault(classnamesExports);
|
|
44790
|
+
var console_1 = console$1;
|
|
44791
|
+
var Icon_module_scss_1 = __importDefault(require$$3);
|
|
44792
|
+
var Icon = function(_a) {
|
|
44793
|
+
var _b, _c;
|
|
44794
|
+
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"]);
|
|
44795
|
+
var isMeaningfulImg = role === "img";
|
|
44796
|
+
if (isMeaningfulImg && !title) {
|
|
44797
|
+
(0, console_1.warn)(`
|
|
44758
44798
|
Icon with role "img" missing a title attribute.
|
|
44759
44799
|
|
|
44760
44800
|
Assistive technologies that enable vision-impaired users to read web pages
|
|
@@ -44766,28 +44806,1077 @@ const Icon = (_a) => {
|
|
|
44766
44806
|
Either add the missing title prop, or set this icon's role to
|
|
44767
44807
|
"presentation" to indicate it is not meaningful.
|
|
44768
44808
|
`);
|
|
44769
|
-
|
|
44770
|
-
|
|
44771
|
-
|
|
44772
|
-
|
|
44773
|
-
|
|
44774
|
-
|
|
44809
|
+
}
|
|
44810
|
+
var renderTitle = function() {
|
|
44811
|
+
return isMeaningfulImg && !!title && react_1["default"].createElement("title", null, title);
|
|
44812
|
+
};
|
|
44813
|
+
var renderDesc = function() {
|
|
44814
|
+
return isMeaningfulImg && !!desc && react_1["default"].createElement("desc", null, desc);
|
|
44815
|
+
};
|
|
44816
|
+
var accessibilityProps = (_b = {
|
|
44817
|
+
role
|
|
44818
|
+
}, _b["aria-hidden"] = isMeaningfulImg ? void 0 : true, _b);
|
|
44819
|
+
return react_1["default"].createElement(
|
|
44820
|
+
"svg",
|
|
44821
|
+
__assign({
|
|
44822
|
+
className: (0, classnames_1["default"])(Icon_module_scss_1["default"].icon, classNameOverride, (_c = {}, _c[Icon_module_scss_1["default"].inheritSize] = inheritSize, _c)),
|
|
44823
|
+
viewBox: icon.viewBox,
|
|
44824
|
+
// Work around IE11 making all SVGs focusable.
|
|
44825
|
+
// See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
|
|
44826
|
+
focusable: "false"
|
|
44827
|
+
}, accessibilityProps, props),
|
|
44828
|
+
renderTitle(),
|
|
44829
|
+
renderDesc(),
|
|
44830
|
+
react_1["default"].createElement("use", { xlinkHref: "#".concat(icon.id) })
|
|
44831
|
+
);
|
|
44775
44832
|
};
|
|
44776
|
-
|
|
44777
|
-
|
|
44778
|
-
|
|
44779
|
-
|
|
44780
|
-
|
|
44781
|
-
|
|
44782
|
-
|
|
44783
|
-
|
|
44784
|
-
|
|
44785
|
-
|
|
44786
|
-
|
|
44787
|
-
|
|
44833
|
+
exports.Icon = Icon;
|
|
44834
|
+
exports.Icon.displayName = "Icon";
|
|
44835
|
+
})(Icon);
|
|
44836
|
+
|
|
44837
|
+
(function(exports) {
|
|
44838
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
44839
|
+
if (k2 === void 0)
|
|
44840
|
+
k2 = k;
|
|
44841
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
44842
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
44843
|
+
desc = { enumerable: true, get: function() {
|
|
44844
|
+
return m[k];
|
|
44845
|
+
} };
|
|
44846
|
+
}
|
|
44847
|
+
Object.defineProperty(o, k2, desc);
|
|
44848
|
+
} : function(o, m, k, k2) {
|
|
44849
|
+
if (k2 === void 0)
|
|
44850
|
+
k2 = k;
|
|
44851
|
+
o[k2] = m[k];
|
|
44852
|
+
});
|
|
44853
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
44854
|
+
for (var p in m)
|
|
44855
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
44856
|
+
__createBinding(exports2, m, p);
|
|
44857
|
+
};
|
|
44858
|
+
exports.__esModule = true;
|
|
44859
|
+
__exportStar(Icon, exports);
|
|
44860
|
+
})(Icon$1);
|
|
44861
|
+
|
|
44862
|
+
var DropdownMenu = {};
|
|
44863
|
+
|
|
44864
|
+
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"};
|
|
44865
|
+
|
|
44866
|
+
var Dropdown_module$1 = /*#__PURE__*/Object.freeze({
|
|
44867
|
+
__proto__: null,
|
|
44868
|
+
default: Dropdown_module
|
|
44869
|
+
});
|
|
44870
|
+
|
|
44871
|
+
var require$$6 = /*@__PURE__*/getAugmentedNamespace(Dropdown_module$1);
|
|
44872
|
+
|
|
44873
|
+
(function(exports) {
|
|
44874
|
+
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
44875
|
+
var extendStatics = function(d, b) {
|
|
44876
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
44877
|
+
d2.__proto__ = b2;
|
|
44878
|
+
} || function(d2, b2) {
|
|
44879
|
+
for (var p in b2)
|
|
44880
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
44881
|
+
d2[p] = b2[p];
|
|
44882
|
+
};
|
|
44883
|
+
return extendStatics(d, b);
|
|
44884
|
+
};
|
|
44885
|
+
return function(d, b) {
|
|
44886
|
+
if (typeof b !== "function" && b !== null)
|
|
44887
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
44888
|
+
extendStatics(d, b);
|
|
44889
|
+
function __() {
|
|
44890
|
+
this.constructor = d;
|
|
44891
|
+
}
|
|
44892
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
44893
|
+
};
|
|
44894
|
+
}();
|
|
44895
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
44896
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
44897
|
+
};
|
|
44898
|
+
exports.__esModule = true;
|
|
44899
|
+
var react_1 = __importDefault(React__default);
|
|
44900
|
+
var Dropdown_module_scss_1 = __importDefault(require$$6);
|
|
44901
|
+
var DropdownMenu = (
|
|
44902
|
+
/** @class */
|
|
44903
|
+
function(_super) {
|
|
44904
|
+
__extends(DropdownMenu2, _super);
|
|
44905
|
+
function DropdownMenu2() {
|
|
44906
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
44907
|
+
_this.menu = react_1["default"].createRef();
|
|
44908
|
+
_this.handleDocumentClick = function(e) {
|
|
44909
|
+
if (_this.menu && _this.menu.current && e.target instanceof Node && !_this.menu.current.contains(e.target)) {
|
|
44910
|
+
_this.props.hideDropdownMenu();
|
|
44911
|
+
}
|
|
44912
|
+
};
|
|
44913
|
+
_this.handleDocumentResize = function() {
|
|
44914
|
+
_this.props.hideDropdownMenu();
|
|
44915
|
+
};
|
|
44916
|
+
return _this;
|
|
44917
|
+
}
|
|
44918
|
+
DropdownMenu2.prototype.componentDidMount = function() {
|
|
44919
|
+
document.addEventListener("click", this.handleDocumentClick, false);
|
|
44920
|
+
window.addEventListener("resize", this.handleDocumentResize, false);
|
|
44921
|
+
this.positionMenu();
|
|
44922
|
+
};
|
|
44923
|
+
DropdownMenu2.prototype.componentWillUnmount = function() {
|
|
44924
|
+
document.removeEventListener("click", this.handleDocumentClick, false);
|
|
44925
|
+
window.removeEventListener("resize", this.handleDocumentResize, false);
|
|
44926
|
+
};
|
|
44927
|
+
DropdownMenu2.prototype.render = function() {
|
|
44928
|
+
var _a = this.props, hideDropdownMenu = _a.hideDropdownMenu, children = _a.children;
|
|
44929
|
+
return (
|
|
44930
|
+
// Disabling instead of addressing because this component is deprecated
|
|
44931
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
44932
|
+
react_1["default"].createElement("div", { className: Dropdown_module_scss_1["default"].menuContainer, ref: this.menu, onClick: hideDropdownMenu }, children)
|
|
44933
|
+
);
|
|
44934
|
+
};
|
|
44935
|
+
DropdownMenu2.prototype.positionMenu = function() {
|
|
44936
|
+
var menu = this.menu;
|
|
44937
|
+
if (!this.props.position || !menu) {
|
|
44938
|
+
return;
|
|
44939
|
+
}
|
|
44940
|
+
if (menu.current) {
|
|
44941
|
+
var pos = this.props.position;
|
|
44942
|
+
var innerHeight_1 = window.innerHeight;
|
|
44943
|
+
var rect = menu.current.getBoundingClientRect();
|
|
44944
|
+
if (pos.bottom > innerHeight_1 - rect.height) {
|
|
44945
|
+
menu.current.style.bottom = "24px";
|
|
44946
|
+
menu.current.style.top = "auto";
|
|
44947
|
+
} else {
|
|
44948
|
+
menu.current.style.top = "24px";
|
|
44949
|
+
menu.current.style.bottom = "auto";
|
|
44950
|
+
}
|
|
44951
|
+
}
|
|
44952
|
+
};
|
|
44953
|
+
DropdownMenu2.displayName = "DropdownMenu";
|
|
44954
|
+
return DropdownMenu2;
|
|
44955
|
+
}(react_1["default"].Component)
|
|
44788
44956
|
);
|
|
44957
|
+
exports["default"] = DropdownMenu;
|
|
44958
|
+
})(DropdownMenu);
|
|
44959
|
+
|
|
44960
|
+
(function(exports) {
|
|
44961
|
+
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
44962
|
+
var extendStatics = function(d, b) {
|
|
44963
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
44964
|
+
d2.__proto__ = b2;
|
|
44965
|
+
} || function(d2, b2) {
|
|
44966
|
+
for (var p in b2)
|
|
44967
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
44968
|
+
d2[p] = b2[p];
|
|
44969
|
+
};
|
|
44970
|
+
return extendStatics(d, b);
|
|
44971
|
+
};
|
|
44972
|
+
return function(d, b) {
|
|
44973
|
+
if (typeof b !== "function" && b !== null)
|
|
44974
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
44975
|
+
extendStatics(d, b);
|
|
44976
|
+
function __() {
|
|
44977
|
+
this.constructor = d;
|
|
44978
|
+
}
|
|
44979
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
44980
|
+
};
|
|
44981
|
+
}();
|
|
44982
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
44983
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
44984
|
+
};
|
|
44985
|
+
exports.__esModule = true;
|
|
44986
|
+
var react_1 = __importDefault(React__default);
|
|
44987
|
+
var classnames_1 = __importDefault(classnamesExports);
|
|
44988
|
+
var chevron_down_icon_svg_1 = __importDefault(require$$2$1);
|
|
44989
|
+
var ellipsis_icon_svg_1 = __importDefault(require$$3$1);
|
|
44990
|
+
var Icon_1 = Icon$1;
|
|
44991
|
+
var DropdownMenu_1 = __importDefault(DropdownMenu);
|
|
44992
|
+
var Dropdown_module_scss_1 = __importDefault(require$$6);
|
|
44993
|
+
var Dropdown = (
|
|
44994
|
+
/** @class */
|
|
44995
|
+
function(_super) {
|
|
44996
|
+
__extends(Dropdown2, _super);
|
|
44997
|
+
function Dropdown2(props) {
|
|
44998
|
+
var _this = _super.call(this, props) || this;
|
|
44999
|
+
_this.dropdownButton = react_1["default"].createRef();
|
|
45000
|
+
_this.toggleDropdownMenu = function(e) {
|
|
45001
|
+
e.stopPropagation();
|
|
45002
|
+
var currentState = _this.state.isMenuVisible;
|
|
45003
|
+
_this.setState({
|
|
45004
|
+
isMenuVisible: !currentState
|
|
45005
|
+
});
|
|
45006
|
+
};
|
|
45007
|
+
_this.hideDropdownMenu = function() {
|
|
45008
|
+
_this.setState({
|
|
45009
|
+
isMenuVisible: false
|
|
45010
|
+
});
|
|
45011
|
+
};
|
|
45012
|
+
_this.renderIcon = function(icon) {
|
|
45013
|
+
if (!icon)
|
|
45014
|
+
return;
|
|
45015
|
+
return react_1["default"].createElement(
|
|
45016
|
+
"span",
|
|
45017
|
+
{ className: Dropdown_module_scss_1["default"].dropdownIcon },
|
|
45018
|
+
react_1["default"].createElement(Icon_1.Icon, { icon, role: "img", title: "Open menu" })
|
|
45019
|
+
);
|
|
45020
|
+
};
|
|
45021
|
+
_this.renderDownArrow = function() {
|
|
45022
|
+
var _a = _this.props, label = _a.label, controlAction = _a.controlAction;
|
|
45023
|
+
if (!label || !controlAction)
|
|
45024
|
+
return;
|
|
45025
|
+
return react_1["default"].createElement(
|
|
45026
|
+
"span",
|
|
45027
|
+
{ className: Dropdown_module_scss_1["default"].chevronIcon },
|
|
45028
|
+
react_1["default"].createElement(Icon_1.Icon, { icon: chevron_down_icon_svg_1["default"], role: "img", title: "Open menu" })
|
|
45029
|
+
);
|
|
45030
|
+
};
|
|
45031
|
+
_this.renderButtonContent = function() {
|
|
45032
|
+
var label = _this.props.label;
|
|
45033
|
+
var icon = _this.props.icon;
|
|
45034
|
+
if (!icon && !label) {
|
|
45035
|
+
icon = ellipsis_icon_svg_1["default"];
|
|
45036
|
+
}
|
|
45037
|
+
return react_1["default"].createElement(
|
|
45038
|
+
react_1["default"].Fragment,
|
|
45039
|
+
null,
|
|
45040
|
+
_this.renderIcon(icon),
|
|
45041
|
+
label && react_1["default"].createElement("span", { className: Dropdown_module_scss_1["default"].dropdownLabel }, label),
|
|
45042
|
+
_this.renderDownArrow()
|
|
45043
|
+
);
|
|
45044
|
+
};
|
|
45045
|
+
_this.renderReversedButtonContent = function() {
|
|
45046
|
+
var _a = _this.props, icon = _a.icon, label = _a.label;
|
|
45047
|
+
return react_1["default"].createElement(
|
|
45048
|
+
react_1["default"].Fragment,
|
|
45049
|
+
null,
|
|
45050
|
+
_this.renderDownArrow(),
|
|
45051
|
+
label && react_1["default"].createElement("span", { className: Dropdown_module_scss_1["default"].dropdownLabel }, label),
|
|
45052
|
+
_this.renderIcon(icon)
|
|
45053
|
+
);
|
|
45054
|
+
};
|
|
45055
|
+
_this.state = {
|
|
45056
|
+
isMenuVisible: Boolean(props.menuVisible)
|
|
45057
|
+
};
|
|
45058
|
+
return _this;
|
|
45059
|
+
}
|
|
45060
|
+
Dropdown2.prototype.getPosition = function() {
|
|
45061
|
+
return this.dropdownButton && this.dropdownButton.current ? this.dropdownButton.current.getBoundingClientRect() : null;
|
|
45062
|
+
};
|
|
45063
|
+
Dropdown2.prototype.renderDropdownMenu = function() {
|
|
45064
|
+
return react_1["default"].createElement(DropdownMenu_1["default"], { hideDropdownMenu: this.hideDropdownMenu, position: this.getPosition() }, this.props.children);
|
|
45065
|
+
};
|
|
45066
|
+
Dropdown2.prototype.render = function() {
|
|
45067
|
+
var _a;
|
|
45068
|
+
var _b = this.props, controlAction = _b.controlAction, automationId = _b.automationId, iconPosition = _b.iconPosition, reversedColor = _b.reversedColor;
|
|
45069
|
+
var reverseIcon = iconPosition === "end";
|
|
45070
|
+
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));
|
|
45071
|
+
return react_1["default"].createElement(
|
|
45072
|
+
"div",
|
|
45073
|
+
{ className: Dropdown_module_scss_1["default"].dropdown },
|
|
45074
|
+
react_1["default"].createElement(
|
|
45075
|
+
"button",
|
|
45076
|
+
{ className: btnClass, onClick: this.toggleDropdownMenu, onMouseDown: function(e) {
|
|
45077
|
+
return e.preventDefault();
|
|
45078
|
+
}, ref: this.dropdownButton, "data-automation-id": automationId },
|
|
45079
|
+
!reverseIcon && this.renderButtonContent(),
|
|
45080
|
+
reverseIcon && this.renderReversedButtonContent()
|
|
45081
|
+
),
|
|
45082
|
+
this.state.isMenuVisible && this.renderDropdownMenu()
|
|
45083
|
+
);
|
|
45084
|
+
};
|
|
45085
|
+
Dropdown2.displayName = "Dropdown";
|
|
45086
|
+
Dropdown2.defaultProps = {
|
|
45087
|
+
iconPosition: "start"
|
|
45088
|
+
};
|
|
45089
|
+
return Dropdown2;
|
|
45090
|
+
}(react_1["default"].Component)
|
|
45091
|
+
);
|
|
45092
|
+
exports["default"] = Dropdown;
|
|
45093
|
+
})(Dropdown);
|
|
45094
|
+
|
|
45095
|
+
(function(exports) {
|
|
45096
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45097
|
+
if (k2 === void 0)
|
|
45098
|
+
k2 = k;
|
|
45099
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45100
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45101
|
+
desc = { enumerable: true, get: function() {
|
|
45102
|
+
return m[k];
|
|
45103
|
+
} };
|
|
45104
|
+
}
|
|
45105
|
+
Object.defineProperty(o, k2, desc);
|
|
45106
|
+
} : function(o, m, k, k2) {
|
|
45107
|
+
if (k2 === void 0)
|
|
45108
|
+
k2 = k;
|
|
45109
|
+
o[k2] = m[k];
|
|
45110
|
+
});
|
|
45111
|
+
exports.__esModule = true;
|
|
45112
|
+
exports.Dropdown = void 0;
|
|
45113
|
+
var Dropdown_1 = Dropdown;
|
|
45114
|
+
__createBinding(exports, Dropdown_1, "default", "Dropdown");
|
|
45115
|
+
})(Dropdown$1);
|
|
45116
|
+
|
|
45117
|
+
var Layout$1 = {};
|
|
45118
|
+
|
|
45119
|
+
var Layout = {};
|
|
45120
|
+
|
|
45121
|
+
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"};
|
|
45122
|
+
|
|
45123
|
+
var Layout_module$1 = /*#__PURE__*/Object.freeze({
|
|
45124
|
+
__proto__: null,
|
|
45125
|
+
default: Layout_module
|
|
45126
|
+
});
|
|
45127
|
+
|
|
45128
|
+
var require$$1$3 = /*@__PURE__*/getAugmentedNamespace(Layout_module$1);
|
|
45129
|
+
|
|
45130
|
+
(function(exports) {
|
|
45131
|
+
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
45132
|
+
var extendStatics = function(d, b) {
|
|
45133
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
45134
|
+
d2.__proto__ = b2;
|
|
45135
|
+
} || function(d2, b2) {
|
|
45136
|
+
for (var p in b2)
|
|
45137
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
45138
|
+
d2[p] = b2[p];
|
|
45139
|
+
};
|
|
45140
|
+
return extendStatics(d, b);
|
|
45141
|
+
};
|
|
45142
|
+
return function(d, b) {
|
|
45143
|
+
if (typeof b !== "function" && b !== null)
|
|
45144
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
45145
|
+
extendStatics(d, b);
|
|
45146
|
+
function __() {
|
|
45147
|
+
this.constructor = d;
|
|
45148
|
+
}
|
|
45149
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45150
|
+
};
|
|
45151
|
+
}();
|
|
45152
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45153
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45154
|
+
};
|
|
45155
|
+
exports.__esModule = true;
|
|
45156
|
+
var react_1 = __importDefault(React__default);
|
|
45157
|
+
var Layout_module_scss_1 = __importDefault(require$$1$3);
|
|
45158
|
+
var NavigationBar = function(_a) {
|
|
45159
|
+
var children = _a.children;
|
|
45160
|
+
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].navigationBar }, children);
|
|
45161
|
+
};
|
|
45162
|
+
NavigationBar.displayName = "NavigationBar";
|
|
45163
|
+
var Sidebar = function(_a) {
|
|
45164
|
+
var children = _a.children;
|
|
45165
|
+
return react_1["default"].createElement(
|
|
45166
|
+
"div",
|
|
45167
|
+
{ className: Layout_module_scss_1["default"].sidebar },
|
|
45168
|
+
react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].sidebarInner }, children)
|
|
45169
|
+
);
|
|
45170
|
+
};
|
|
45171
|
+
Sidebar.displayName = "Sidebar";
|
|
45172
|
+
var Header = function(_a) {
|
|
45173
|
+
var children = _a.children;
|
|
45174
|
+
return react_1["default"].createElement("aside", { className: Layout_module_scss_1["default"].header }, children);
|
|
45175
|
+
};
|
|
45176
|
+
Header.displayName = "Header";
|
|
45177
|
+
var Footer = function(_a) {
|
|
45178
|
+
var children = _a.children;
|
|
45179
|
+
return react_1["default"].createElement("footer", { className: Layout_module_scss_1["default"].footer }, children);
|
|
45180
|
+
};
|
|
45181
|
+
Footer.displayName = "Footer";
|
|
45182
|
+
var Toasts = function(_a) {
|
|
45183
|
+
var children = _a.children;
|
|
45184
|
+
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].toasts, "aria-live": "assertive" }, children);
|
|
45185
|
+
};
|
|
45186
|
+
Toasts.displayName = "Toasts";
|
|
45187
|
+
var Announcers = function(_a) {
|
|
45188
|
+
var children = _a.children;
|
|
45189
|
+
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].announcers, "aria-live": "assertive" }, children);
|
|
45190
|
+
};
|
|
45191
|
+
Announcers.displayName = "Announcers";
|
|
45192
|
+
var Layout = (
|
|
45193
|
+
/** @class */
|
|
45194
|
+
function(_super) {
|
|
45195
|
+
__extends(Layout2, _super);
|
|
45196
|
+
function Layout2() {
|
|
45197
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
45198
|
+
}
|
|
45199
|
+
Layout2.prototype.render = function() {
|
|
45200
|
+
var content = react_1["default"].Children.toArray(this.props.children);
|
|
45201
|
+
var navbar = extractChildOfType(content, NavigationBar);
|
|
45202
|
+
var header = extractChildOfType(content, Header);
|
|
45203
|
+
var sidebar = extractChildOfType(content, Sidebar);
|
|
45204
|
+
var footer = extractChildOfType(content, Footer);
|
|
45205
|
+
var announcers = extractChildOfType(content, Announcers);
|
|
45206
|
+
var toasts = extractChildOfType(content, Toasts);
|
|
45207
|
+
return react_1["default"].createElement(
|
|
45208
|
+
"div",
|
|
45209
|
+
{ className: Layout_module_scss_1["default"].root },
|
|
45210
|
+
navbar,
|
|
45211
|
+
announcers,
|
|
45212
|
+
react_1["default"].createElement(
|
|
45213
|
+
"div",
|
|
45214
|
+
{ className: Layout_module_scss_1["default"].page },
|
|
45215
|
+
header,
|
|
45216
|
+
toasts,
|
|
45217
|
+
react_1["default"].createElement(
|
|
45218
|
+
"div",
|
|
45219
|
+
{ className: Layout_module_scss_1["default"].body },
|
|
45220
|
+
react_1["default"].createElement(
|
|
45221
|
+
"div",
|
|
45222
|
+
{ className: Layout_module_scss_1["default"].bodyInner },
|
|
45223
|
+
sidebar,
|
|
45224
|
+
react_1["default"].createElement("main", { className: Layout_module_scss_1["default"].content }, content)
|
|
45225
|
+
)
|
|
45226
|
+
),
|
|
45227
|
+
footer
|
|
45228
|
+
)
|
|
45229
|
+
);
|
|
45230
|
+
};
|
|
45231
|
+
Layout2.displayName = "Layout";
|
|
45232
|
+
Layout2.NavigationBar = NavigationBar;
|
|
45233
|
+
Layout2.Sidebar = Sidebar;
|
|
45234
|
+
Layout2.Header = Header;
|
|
45235
|
+
Layout2.Footer = Footer;
|
|
45236
|
+
Layout2.Toasts = Toasts;
|
|
45237
|
+
Layout2.Announcers = Announcers;
|
|
45238
|
+
return Layout2;
|
|
45239
|
+
}(react_1["default"].Component)
|
|
45240
|
+
);
|
|
45241
|
+
var extractChildOfType = function(children, type) {
|
|
45242
|
+
var match = children.find(function(child) {
|
|
45243
|
+
if (react_1["default"].isValidElement(child) && typeof child.type === "function") {
|
|
45244
|
+
return child.type.displayName === type.displayName;
|
|
45245
|
+
}
|
|
45246
|
+
return false;
|
|
45247
|
+
});
|
|
45248
|
+
if (match) {
|
|
45249
|
+
var index = children.indexOf(match);
|
|
45250
|
+
children.splice(index, 1);
|
|
45251
|
+
}
|
|
45252
|
+
return match;
|
|
45253
|
+
};
|
|
45254
|
+
exports["default"] = Layout;
|
|
45255
|
+
})(Layout);
|
|
45256
|
+
|
|
45257
|
+
(function(exports) {
|
|
45258
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45259
|
+
if (k2 === void 0)
|
|
45260
|
+
k2 = k;
|
|
45261
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45262
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45263
|
+
desc = { enumerable: true, get: function() {
|
|
45264
|
+
return m[k];
|
|
45265
|
+
} };
|
|
45266
|
+
}
|
|
45267
|
+
Object.defineProperty(o, k2, desc);
|
|
45268
|
+
} : function(o, m, k, k2) {
|
|
45269
|
+
if (k2 === void 0)
|
|
45270
|
+
k2 = k;
|
|
45271
|
+
o[k2] = m[k];
|
|
45272
|
+
});
|
|
45273
|
+
exports.__esModule = true;
|
|
45274
|
+
exports.Layout = void 0;
|
|
45275
|
+
var Layout_1 = Layout;
|
|
45276
|
+
__createBinding(exports, Layout_1, "default", "Layout");
|
|
45277
|
+
})(Layout$1);
|
|
45278
|
+
|
|
45279
|
+
var MenuList$1 = {};
|
|
45280
|
+
|
|
45281
|
+
var MenuList = {};
|
|
45282
|
+
|
|
45283
|
+
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"};
|
|
45284
|
+
|
|
45285
|
+
var Menu_module$1 = /*#__PURE__*/Object.freeze({
|
|
45286
|
+
__proto__: null,
|
|
45287
|
+
default: Menu_module
|
|
45288
|
+
});
|
|
45289
|
+
|
|
45290
|
+
var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(Menu_module$1);
|
|
45291
|
+
|
|
45292
|
+
(function(exports) {
|
|
45293
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45294
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45295
|
+
};
|
|
45296
|
+
exports.__esModule = true;
|
|
45297
|
+
var react_1 = __importDefault(React__default);
|
|
45298
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45299
|
+
var MenuList = function(props) {
|
|
45300
|
+
return react_1["default"].createElement("div", { className: Menu_module_scss_1["default"].menuList }, props.children);
|
|
45301
|
+
};
|
|
45302
|
+
MenuList.displayName = "MenuList";
|
|
45303
|
+
exports["default"] = MenuList;
|
|
45304
|
+
})(MenuList);
|
|
45305
|
+
|
|
45306
|
+
var MenuHeader = {};
|
|
45307
|
+
|
|
45308
|
+
(function(exports) {
|
|
45309
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45310
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45311
|
+
};
|
|
45312
|
+
exports.__esModule = true;
|
|
45313
|
+
var react_1 = __importDefault(React__default);
|
|
45314
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45315
|
+
var MenuHeader = function(props) {
|
|
45316
|
+
return react_1["default"].createElement(
|
|
45317
|
+
"div",
|
|
45318
|
+
{ className: Menu_module_scss_1["default"].header },
|
|
45319
|
+
react_1["default"].createElement("span", { className: Menu_module_scss_1["default"].header__title }, props.title)
|
|
45320
|
+
);
|
|
45321
|
+
};
|
|
45322
|
+
MenuHeader.displayName = "MenuHeader";
|
|
45323
|
+
exports["default"] = MenuHeader;
|
|
45324
|
+
})(MenuHeader);
|
|
45325
|
+
|
|
45326
|
+
var MenuItem = {};
|
|
45327
|
+
|
|
45328
|
+
(function(exports) {
|
|
45329
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45330
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45331
|
+
};
|
|
45332
|
+
exports.__esModule = true;
|
|
45333
|
+
var react_1 = __importDefault(React__default);
|
|
45334
|
+
var classnames_1 = __importDefault(classnamesExports);
|
|
45335
|
+
var Icon_1 = Icon$1;
|
|
45336
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45337
|
+
var MenuItem = function(props) {
|
|
45338
|
+
var _a;
|
|
45339
|
+
var icon = props.icon, hoverIcon = props.hoverIcon, children = props.children, action = props.action, active = props.active, destructive = props.destructive, automationId = props.automationId;
|
|
45340
|
+
var isLink = typeof action === "string";
|
|
45341
|
+
var label = react_1["default"].createElement(
|
|
45342
|
+
"span",
|
|
45343
|
+
{ className: Menu_module_scss_1["default"].menuItem__Label },
|
|
45344
|
+
children,
|
|
45345
|
+
isLink && "\u2026"
|
|
45346
|
+
);
|
|
45347
|
+
var iconNode = icon && react_1["default"].createElement(
|
|
45348
|
+
"span",
|
|
45349
|
+
{ className: Menu_module_scss_1["default"].menuItem__Icon },
|
|
45350
|
+
react_1["default"].createElement(Icon_1.Icon, { icon, role: "presentation" })
|
|
45351
|
+
);
|
|
45352
|
+
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));
|
|
45353
|
+
if (typeof action === "string") {
|
|
45354
|
+
return react_1["default"].createElement(
|
|
45355
|
+
"a",
|
|
45356
|
+
{ href: action, className, "data-automation-id": automationId },
|
|
45357
|
+
label,
|
|
45358
|
+
iconNode
|
|
45359
|
+
);
|
|
45360
|
+
}
|
|
45361
|
+
return (
|
|
45362
|
+
// Disabling instead of addressing because this component is deprecated.
|
|
45363
|
+
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
45364
|
+
react_1["default"].createElement(
|
|
45365
|
+
"a",
|
|
45366
|
+
{ href: "#", onClick: action, className, "data-automation-id": automationId },
|
|
45367
|
+
label,
|
|
45368
|
+
iconNode
|
|
45369
|
+
)
|
|
45370
|
+
);
|
|
45371
|
+
};
|
|
45372
|
+
MenuItem.displayName = "MenuItem";
|
|
45373
|
+
exports["default"] = MenuItem;
|
|
45374
|
+
})(MenuItem);
|
|
45375
|
+
|
|
45376
|
+
var MenuSeparator = {};
|
|
45377
|
+
|
|
45378
|
+
(function(exports) {
|
|
45379
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45380
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45381
|
+
};
|
|
45382
|
+
exports.__esModule = true;
|
|
45383
|
+
var react_1 = __importDefault(React__default);
|
|
45384
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45385
|
+
var MenuSeparator = function() {
|
|
45386
|
+
return react_1["default"].createElement("hr", { className: Menu_module_scss_1["default"].separator });
|
|
45387
|
+
};
|
|
45388
|
+
MenuSeparator.displayName = "MenuSeparator";
|
|
45389
|
+
exports["default"] = MenuSeparator;
|
|
45390
|
+
})(MenuSeparator);
|
|
45391
|
+
|
|
45392
|
+
(function(exports) {
|
|
45393
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45394
|
+
if (k2 === void 0)
|
|
45395
|
+
k2 = k;
|
|
45396
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45397
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45398
|
+
desc = { enumerable: true, get: function() {
|
|
45399
|
+
return m[k];
|
|
45400
|
+
} };
|
|
45401
|
+
}
|
|
45402
|
+
Object.defineProperty(o, k2, desc);
|
|
45403
|
+
} : function(o, m, k, k2) {
|
|
45404
|
+
if (k2 === void 0)
|
|
45405
|
+
k2 = k;
|
|
45406
|
+
o[k2] = m[k];
|
|
45407
|
+
});
|
|
45408
|
+
exports.__esModule = true;
|
|
45409
|
+
exports.MenuSeparator = exports.MenuItem = exports.MenuHeader = exports.MenuList = void 0;
|
|
45410
|
+
var MenuList_1 = MenuList;
|
|
45411
|
+
__createBinding(exports, MenuList_1, "default", "MenuList");
|
|
45412
|
+
var MenuHeader_1 = MenuHeader;
|
|
45413
|
+
__createBinding(exports, MenuHeader_1, "default", "MenuHeader");
|
|
45414
|
+
var MenuItem_1 = MenuItem;
|
|
45415
|
+
__createBinding(exports, MenuItem_1, "default", "MenuItem");
|
|
45416
|
+
var MenuSeparator_1 = MenuSeparator;
|
|
45417
|
+
__createBinding(exports, MenuSeparator_1, "default", "MenuSeparator");
|
|
45418
|
+
})(MenuList$1);
|
|
45419
|
+
|
|
45420
|
+
var Text$1 = {};
|
|
45421
|
+
|
|
45422
|
+
var Text = {};
|
|
45423
|
+
|
|
45424
|
+
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"};
|
|
45425
|
+
|
|
45426
|
+
var Text_module$1 = /*#__PURE__*/Object.freeze({
|
|
45427
|
+
__proto__: null,
|
|
45428
|
+
default: Text_module
|
|
45429
|
+
});
|
|
45430
|
+
|
|
45431
|
+
var require$$2 = /*@__PURE__*/getAugmentedNamespace(Text_module$1);
|
|
45432
|
+
|
|
45433
|
+
(function(exports) {
|
|
45434
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45435
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45436
|
+
};
|
|
45437
|
+
exports.__esModule = true;
|
|
45438
|
+
var react_1 = __importDefault(React__default);
|
|
45439
|
+
var classnames_1 = __importDefault(classnamesExports);
|
|
45440
|
+
var Text_module_scss_1 = __importDefault(require$$2);
|
|
45441
|
+
var Text = function(_a) {
|
|
45442
|
+
var _b;
|
|
45443
|
+
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;
|
|
45444
|
+
return react_1["default"].createElement(tag, {
|
|
45445
|
+
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))
|
|
45446
|
+
}, children);
|
|
45447
|
+
};
|
|
45448
|
+
Text.displayName = "Text";
|
|
45449
|
+
exports["default"] = Text;
|
|
45450
|
+
})(Text);
|
|
45451
|
+
|
|
45452
|
+
(function(exports) {
|
|
45453
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45454
|
+
if (k2 === void 0)
|
|
45455
|
+
k2 = k;
|
|
45456
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45457
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45458
|
+
desc = { enumerable: true, get: function() {
|
|
45459
|
+
return m[k];
|
|
45460
|
+
} };
|
|
45461
|
+
}
|
|
45462
|
+
Object.defineProperty(o, k2, desc);
|
|
45463
|
+
} : function(o, m, k, k2) {
|
|
45464
|
+
if (k2 === void 0)
|
|
45465
|
+
k2 = k;
|
|
45466
|
+
o[k2] = m[k];
|
|
45467
|
+
});
|
|
45468
|
+
exports.__esModule = true;
|
|
45469
|
+
exports.Text = void 0;
|
|
45470
|
+
var Text_1 = Text;
|
|
45471
|
+
__createBinding(exports, Text_1, "default", "Text");
|
|
45472
|
+
})(Text$1);
|
|
45473
|
+
|
|
45474
|
+
var Spacing = {};
|
|
45475
|
+
|
|
45476
|
+
var padding = {};
|
|
45477
|
+
|
|
45478
|
+
var util = {};
|
|
45479
|
+
|
|
45480
|
+
util.__esModule = true;
|
|
45481
|
+
util.convertFractionToString = void 0;
|
|
45482
|
+
var convertFractionToString = function(fraction) {
|
|
45483
|
+
switch (fraction) {
|
|
45484
|
+
case 0:
|
|
45485
|
+
default:
|
|
45486
|
+
return "0";
|
|
45487
|
+
case 0.25:
|
|
45488
|
+
return "0-point-25";
|
|
45489
|
+
case 0.5:
|
|
45490
|
+
return "0-point-5";
|
|
45491
|
+
case 0.75:
|
|
45492
|
+
return "0-point-75";
|
|
45493
|
+
case 1:
|
|
45494
|
+
return "1";
|
|
45495
|
+
case 1.25:
|
|
45496
|
+
return "1-point-25";
|
|
45497
|
+
case 1.5:
|
|
45498
|
+
return "1-point-5";
|
|
45499
|
+
case 1.75:
|
|
45500
|
+
return "1-point-75";
|
|
45501
|
+
case 2:
|
|
45502
|
+
return "2";
|
|
45503
|
+
case 2.5:
|
|
45504
|
+
return "2-point-5";
|
|
45505
|
+
case 3:
|
|
45506
|
+
return "3";
|
|
45507
|
+
case 3.5:
|
|
45508
|
+
return "3-point-5";
|
|
45509
|
+
case 4:
|
|
45510
|
+
return "4";
|
|
45511
|
+
}
|
|
44789
45512
|
};
|
|
44790
|
-
|
|
45513
|
+
util.convertFractionToString = convertFractionToString;
|
|
45514
|
+
|
|
45515
|
+
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"};
|
|
45516
|
+
|
|
45517
|
+
var Padding_module$1 = /*#__PURE__*/Object.freeze({
|
|
45518
|
+
__proto__: null,
|
|
45519
|
+
default: Padding_module
|
|
45520
|
+
});
|
|
45521
|
+
|
|
45522
|
+
var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(Padding_module$1);
|
|
45523
|
+
|
|
45524
|
+
(function(exports) {
|
|
45525
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45526
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45527
|
+
};
|
|
45528
|
+
exports.__esModule = true;
|
|
45529
|
+
exports.paddingClasses = exports.p = exports.py = exports.px = exports.pl = exports.pb = exports.pr = exports.pt = void 0;
|
|
45530
|
+
var util_1 = util;
|
|
45531
|
+
var Padding_module_scss_1 = __importDefault(require$$1$1);
|
|
45532
|
+
var pt = function(unit) {
|
|
45533
|
+
return [
|
|
45534
|
+
Padding_module_scss_1["default"]["pt-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45535
|
+
];
|
|
45536
|
+
};
|
|
45537
|
+
exports.pt = pt;
|
|
45538
|
+
var pr = function(unit) {
|
|
45539
|
+
return [
|
|
45540
|
+
Padding_module_scss_1["default"]["pr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45541
|
+
];
|
|
45542
|
+
};
|
|
45543
|
+
exports.pr = pr;
|
|
45544
|
+
var pb = function(unit) {
|
|
45545
|
+
return [
|
|
45546
|
+
Padding_module_scss_1["default"]["pb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45547
|
+
];
|
|
45548
|
+
};
|
|
45549
|
+
exports.pb = pb;
|
|
45550
|
+
var pl = function(unit) {
|
|
45551
|
+
return [
|
|
45552
|
+
Padding_module_scss_1["default"]["pl-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45553
|
+
];
|
|
45554
|
+
};
|
|
45555
|
+
exports.pl = pl;
|
|
45556
|
+
var px = function(unit) {
|
|
45557
|
+
return [
|
|
45558
|
+
Padding_module_scss_1["default"]["pl-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45559
|
+
Padding_module_scss_1["default"]["pr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45560
|
+
];
|
|
45561
|
+
};
|
|
45562
|
+
exports.px = px;
|
|
45563
|
+
var py = function(unit) {
|
|
45564
|
+
return [
|
|
45565
|
+
Padding_module_scss_1["default"]["pt-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45566
|
+
Padding_module_scss_1["default"]["pb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45567
|
+
];
|
|
45568
|
+
};
|
|
45569
|
+
exports.py = py;
|
|
45570
|
+
var p = function(unit) {
|
|
45571
|
+
var classes = [];
|
|
45572
|
+
if (typeof unit === "number") {
|
|
45573
|
+
classes.push(Padding_module_scss_1["default"]["p-".concat((0, util_1.convertFractionToString)(unit))]);
|
|
45574
|
+
} else {
|
|
45575
|
+
Object.keys(unit).forEach(function(key) {
|
|
45576
|
+
classes.push(Padding_module_scss_1["default"]["p-".concat((0, util_1.convertFractionToString)(unit[key]), "--").concat(key)]);
|
|
45577
|
+
});
|
|
45578
|
+
}
|
|
45579
|
+
return classes;
|
|
45580
|
+
};
|
|
45581
|
+
exports.p = p;
|
|
45582
|
+
var paddingClasses = function(_a) {
|
|
45583
|
+
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;
|
|
45584
|
+
var classes = [];
|
|
45585
|
+
if (padding2 !== void 0)
|
|
45586
|
+
classes.push.apply(classes, (0, exports.p)(padding2));
|
|
45587
|
+
if (paddingTop !== void 0)
|
|
45588
|
+
classes.push.apply(classes, (0, exports.pt)(paddingTop));
|
|
45589
|
+
if (paddingBottom !== void 0)
|
|
45590
|
+
classes.push.apply(classes, (0, exports.pb)(paddingBottom));
|
|
45591
|
+
if (paddingXAxis !== void 0)
|
|
45592
|
+
classes.push.apply(classes, (0, exports.px)(paddingXAxis));
|
|
45593
|
+
if (paddingYAxis !== void 0)
|
|
45594
|
+
classes.push.apply(classes, (0, exports.py)(paddingYAxis));
|
|
45595
|
+
if (rtl) {
|
|
45596
|
+
if (paddingRight !== void 0)
|
|
45597
|
+
classes.push.apply(classes, (0, exports.pl)(paddingRight));
|
|
45598
|
+
if (paddingLeft !== void 0)
|
|
45599
|
+
classes.push.apply(classes, (0, exports.pr)(paddingLeft));
|
|
45600
|
+
} else {
|
|
45601
|
+
if (paddingRight !== void 0)
|
|
45602
|
+
classes.push.apply(classes, (0, exports.pr)(paddingRight));
|
|
45603
|
+
if (paddingLeft !== void 0)
|
|
45604
|
+
classes.push.apply(classes, (0, exports.pl)(paddingLeft));
|
|
45605
|
+
}
|
|
45606
|
+
if (padding2 === void 0 && paddingTop === void 0 && paddingRight === void 0 && paddingBottom === void 0 && paddingLeft === void 0 && paddingXAxis === void 0 && paddingYAxis === void 0) {
|
|
45607
|
+
classes.push.apply(classes, (0, exports.p)(0));
|
|
45608
|
+
}
|
|
45609
|
+
return classes;
|
|
45610
|
+
};
|
|
45611
|
+
exports.paddingClasses = paddingClasses;
|
|
45612
|
+
})(padding);
|
|
45613
|
+
|
|
45614
|
+
var margin = {};
|
|
45615
|
+
|
|
45616
|
+
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"};
|
|
45617
|
+
|
|
45618
|
+
var Margin_module$1 = /*#__PURE__*/Object.freeze({
|
|
45619
|
+
__proto__: null,
|
|
45620
|
+
default: Margin_module
|
|
45621
|
+
});
|
|
45622
|
+
|
|
45623
|
+
var require$$1 = /*@__PURE__*/getAugmentedNamespace(Margin_module$1);
|
|
45624
|
+
|
|
45625
|
+
(function(exports) {
|
|
45626
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45627
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45628
|
+
};
|
|
45629
|
+
exports.__esModule = true;
|
|
45630
|
+
exports.marginClasses = exports.m = exports.my = exports.mx = exports.ml = exports.mb = exports.mr = exports.mt = void 0;
|
|
45631
|
+
var util_1 = util;
|
|
45632
|
+
var Margin_module_scss_1 = __importDefault(require$$1);
|
|
45633
|
+
var mt = function(unit) {
|
|
45634
|
+
return [
|
|
45635
|
+
Margin_module_scss_1["default"]["mt-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45636
|
+
];
|
|
45637
|
+
};
|
|
45638
|
+
exports.mt = mt;
|
|
45639
|
+
var mr = function(unit) {
|
|
45640
|
+
return [
|
|
45641
|
+
Margin_module_scss_1["default"]["mr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45642
|
+
];
|
|
45643
|
+
};
|
|
45644
|
+
exports.mr = mr;
|
|
45645
|
+
var mb = function(unit) {
|
|
45646
|
+
return [
|
|
45647
|
+
Margin_module_scss_1["default"]["mb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45648
|
+
];
|
|
45649
|
+
};
|
|
45650
|
+
exports.mb = mb;
|
|
45651
|
+
var ml = function(unit) {
|
|
45652
|
+
return [
|
|
45653
|
+
Margin_module_scss_1["default"]["ml-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45654
|
+
];
|
|
45655
|
+
};
|
|
45656
|
+
exports.ml = ml;
|
|
45657
|
+
var mx = function(unit) {
|
|
45658
|
+
return [
|
|
45659
|
+
Margin_module_scss_1["default"]["ml-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45660
|
+
Margin_module_scss_1["default"]["mr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45661
|
+
];
|
|
45662
|
+
};
|
|
45663
|
+
exports.mx = mx;
|
|
45664
|
+
var my = function(unit) {
|
|
45665
|
+
return [
|
|
45666
|
+
Margin_module_scss_1["default"]["mt-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45667
|
+
Margin_module_scss_1["default"]["mb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45668
|
+
];
|
|
45669
|
+
};
|
|
45670
|
+
exports.my = my;
|
|
45671
|
+
var m = function(unit) {
|
|
45672
|
+
var classes = [];
|
|
45673
|
+
if (typeof unit === "number") {
|
|
45674
|
+
classes.push(Margin_module_scss_1["default"]["m-".concat((0, util_1.convertFractionToString)(unit))]);
|
|
45675
|
+
} else {
|
|
45676
|
+
Object.keys(unit).forEach(function(key) {
|
|
45677
|
+
classes.push(Margin_module_scss_1["default"]["m-".concat((0, util_1.convertFractionToString)(unit[key]), "--").concat(key)]);
|
|
45678
|
+
});
|
|
45679
|
+
}
|
|
45680
|
+
return classes;
|
|
45681
|
+
};
|
|
45682
|
+
exports.m = m;
|
|
45683
|
+
var marginClasses = function(_a) {
|
|
45684
|
+
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;
|
|
45685
|
+
var classes = [];
|
|
45686
|
+
if (margin2 !== void 0)
|
|
45687
|
+
classes.push.apply(classes, (0, exports.m)(margin2));
|
|
45688
|
+
if (marginTop !== void 0)
|
|
45689
|
+
classes.push.apply(classes, (0, exports.mt)(marginTop));
|
|
45690
|
+
if (marginBottom !== void 0)
|
|
45691
|
+
classes.push.apply(classes, (0, exports.mb)(marginBottom));
|
|
45692
|
+
if (marginXAxis !== void 0)
|
|
45693
|
+
classes.push.apply(classes, (0, exports.mx)(marginXAxis));
|
|
45694
|
+
if (marginYAxis !== void 0)
|
|
45695
|
+
classes.push.apply(classes, (0, exports.my)(marginYAxis));
|
|
45696
|
+
if (rtl) {
|
|
45697
|
+
if (marginRight !== void 0)
|
|
45698
|
+
classes.push.apply(classes, (0, exports.ml)(marginRight));
|
|
45699
|
+
if (marginLeft !== void 0)
|
|
45700
|
+
classes.push.apply(classes, (0, exports.mr)(marginLeft));
|
|
45701
|
+
} else {
|
|
45702
|
+
if (marginRight !== void 0)
|
|
45703
|
+
classes.push.apply(classes, (0, exports.mr)(marginRight));
|
|
45704
|
+
if (marginLeft !== void 0)
|
|
45705
|
+
classes.push.apply(classes, (0, exports.ml)(marginLeft));
|
|
45706
|
+
}
|
|
45707
|
+
if (margin2 === void 0 && marginTop === void 0 && marginRight === void 0 && marginBottom === void 0 && marginLeft === void 0 && marginXAxis === void 0 && marginYAxis === void 0) {
|
|
45708
|
+
classes.push.apply(classes, (0, exports.m)(0));
|
|
45709
|
+
}
|
|
45710
|
+
return classes;
|
|
45711
|
+
};
|
|
45712
|
+
exports.marginClasses = marginClasses;
|
|
45713
|
+
})(margin);
|
|
45714
|
+
|
|
45715
|
+
var types = {};
|
|
45716
|
+
|
|
45717
|
+
types.__esModule = true;
|
|
45718
|
+
|
|
45719
|
+
(function(exports) {
|
|
45720
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45721
|
+
if (k2 === void 0)
|
|
45722
|
+
k2 = k;
|
|
45723
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45724
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45725
|
+
desc = { enumerable: true, get: function() {
|
|
45726
|
+
return m[k];
|
|
45727
|
+
} };
|
|
45728
|
+
}
|
|
45729
|
+
Object.defineProperty(o, k2, desc);
|
|
45730
|
+
} : function(o, m, k, k2) {
|
|
45731
|
+
if (k2 === void 0)
|
|
45732
|
+
k2 = k;
|
|
45733
|
+
o[k2] = m[k];
|
|
45734
|
+
});
|
|
45735
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
45736
|
+
for (var p in m)
|
|
45737
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
45738
|
+
__createBinding(exports2, m, p);
|
|
45739
|
+
};
|
|
45740
|
+
exports.__esModule = true;
|
|
45741
|
+
__exportStar(padding, exports);
|
|
45742
|
+
__exportStar(margin, exports);
|
|
45743
|
+
__exportStar(types, exports);
|
|
45744
|
+
})(Spacing);
|
|
45745
|
+
|
|
45746
|
+
var Box$1 = {};
|
|
45747
|
+
|
|
45748
|
+
var Box = {};
|
|
45749
|
+
|
|
45750
|
+
(function(exports) {
|
|
45751
|
+
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
45752
|
+
__assign = Object.assign || function(t) {
|
|
45753
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
45754
|
+
s = arguments[i];
|
|
45755
|
+
for (var p in s)
|
|
45756
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
45757
|
+
t[p] = s[p];
|
|
45758
|
+
}
|
|
45759
|
+
return t;
|
|
45760
|
+
};
|
|
45761
|
+
return __assign.apply(this, arguments);
|
|
45762
|
+
};
|
|
45763
|
+
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
45764
|
+
var t = {};
|
|
45765
|
+
for (var p in s)
|
|
45766
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
45767
|
+
t[p] = s[p];
|
|
45768
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
45769
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
45770
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
45771
|
+
t[p[i]] = s[p[i]];
|
|
45772
|
+
}
|
|
45773
|
+
return t;
|
|
45774
|
+
};
|
|
45775
|
+
var __spreadArray = commonjsGlobal && commonjsGlobal.__spreadArray || function(to, from, pack) {
|
|
45776
|
+
if (pack || arguments.length === 2)
|
|
45777
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
45778
|
+
if (ar || !(i in from)) {
|
|
45779
|
+
if (!ar)
|
|
45780
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
45781
|
+
ar[i] = from[i];
|
|
45782
|
+
}
|
|
45783
|
+
}
|
|
45784
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
45785
|
+
};
|
|
45786
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45787
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45788
|
+
};
|
|
45789
|
+
exports.__esModule = true;
|
|
45790
|
+
exports.Box = void 0;
|
|
45791
|
+
var react_1 = __importDefault(React__default);
|
|
45792
|
+
var classnames_1 = __importDefault(classnamesExports);
|
|
45793
|
+
var Spacing_1 = Spacing;
|
|
45794
|
+
var Box = function(_a) {
|
|
45795
|
+
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"]);
|
|
45796
|
+
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);
|
|
45797
|
+
return react_1["default"].createElement("div", __assign({ className: (0, classnames_1["default"])(classes, classNameOverride) }, restProps), children);
|
|
45798
|
+
};
|
|
45799
|
+
exports.Box = Box;
|
|
45800
|
+
exports.Box.displayName = "Box";
|
|
45801
|
+
})(Box);
|
|
45802
|
+
|
|
45803
|
+
(function(exports) {
|
|
45804
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45805
|
+
if (k2 === void 0)
|
|
45806
|
+
k2 = k;
|
|
45807
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45808
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45809
|
+
desc = { enumerable: true, get: function() {
|
|
45810
|
+
return m[k];
|
|
45811
|
+
} };
|
|
45812
|
+
}
|
|
45813
|
+
Object.defineProperty(o, k2, desc);
|
|
45814
|
+
} : function(o, m, k, k2) {
|
|
45815
|
+
if (k2 === void 0)
|
|
45816
|
+
k2 = k;
|
|
45817
|
+
o[k2] = m[k];
|
|
45818
|
+
});
|
|
45819
|
+
exports.__esModule = true;
|
|
45820
|
+
exports.Box = void 0;
|
|
45821
|
+
var Box_1 = Box;
|
|
45822
|
+
__createBinding(exports, Box_1, "Box");
|
|
45823
|
+
})(Box$1);
|
|
45824
|
+
|
|
45825
|
+
(function(exports) {
|
|
45826
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45827
|
+
if (k2 === void 0)
|
|
45828
|
+
k2 = k;
|
|
45829
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45830
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45831
|
+
desc = { enumerable: true, get: function() {
|
|
45832
|
+
return m[k];
|
|
45833
|
+
} };
|
|
45834
|
+
}
|
|
45835
|
+
Object.defineProperty(o, k2, desc);
|
|
45836
|
+
} : function(o, m, k, k2) {
|
|
45837
|
+
if (k2 === void 0)
|
|
45838
|
+
k2 = k;
|
|
45839
|
+
o[k2] = m[k];
|
|
45840
|
+
});
|
|
45841
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
45842
|
+
for (var p in m)
|
|
45843
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
45844
|
+
__createBinding(exports2, m, p);
|
|
45845
|
+
};
|
|
45846
|
+
exports.__esModule = true;
|
|
45847
|
+
__exportStar(Dropdown$1, exports);
|
|
45848
|
+
__exportStar(Layout$1, exports);
|
|
45849
|
+
__exportStar(Icon$1, exports);
|
|
45850
|
+
__exportStar(MenuList$1, exports);
|
|
45851
|
+
__exportStar(Text$1, exports);
|
|
45852
|
+
__exportStar(Spacing, exports);
|
|
45853
|
+
__exportStar(Box$1, exports);
|
|
45854
|
+
})(components);
|
|
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
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
45873
|
+
for (var p in m)
|
|
45874
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
45875
|
+
__createBinding(exports2, m, p);
|
|
45876
|
+
};
|
|
45877
|
+
exports.__esModule = true;
|
|
45878
|
+
__exportStar(components, exports);
|
|
45879
|
+
})(componentLibrary);
|
|
44791
45880
|
|
|
44792
45881
|
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";
|
|
44793
45882
|
var check = img;
|
|
@@ -44810,7 +45899,7 @@ var Option = function(_a) {
|
|
|
44810
45899
|
classNameOverride
|
|
44811
45900
|
]), "aria-label": item.textValue }),
|
|
44812
45901
|
item.rendered,
|
|
44813
|
-
React__default.createElement("span", { className: classNames([styles$4.icon, isSelected && styles$4.isSelected]) }, isSelected && React__default.createElement(Icon, { icon: check, role: "presentation" }))
|
|
45902
|
+
React__default.createElement("span", { className: classNames([styles$4.icon, isSelected && styles$4.isSelected]) }, isSelected && React__default.createElement(componentLibrary.Icon, { icon: check, role: "presentation" }))
|
|
44814
45903
|
);
|
|
44815
45904
|
};
|
|
44816
45905
|
Option.displayName = "Option";
|