@kaizen/components 1.8.7 → 1.10.1
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/dist/cjs/dts/SVG/icons/IndicatorActiveIcon.d.ts +3 -0
- package/dist/cjs/dts/SVG/icons/IndicatorInactiveIcon.d.ts +3 -0
- package/dist/cjs/dts/SVG/icons/SuccessIcon.d.ts +3 -0
- package/dist/cjs/dts/Workflow/Workflow.d.ts +26 -0
- package/dist/cjs/dts/Workflow/_docs/controls/controls.d.ts +35 -0
- package/dist/cjs/dts/Workflow/_docs/controls/index.d.ts +1 -0
- package/dist/cjs/dts/Workflow/index.d.ts +1 -0
- package/dist/cjs/dts/Workflow/subcomponents/Footer/Footer.d.ts +13 -0
- package/dist/cjs/dts/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.d.ts +12 -0
- package/dist/cjs/dts/Workflow/subcomponents/Footer/components/FooterActions/index.d.ts +1 -0
- package/dist/cjs/dts/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.d.ts +10 -0
- package/dist/cjs/dts/Workflow/subcomponents/Footer/components/ProgressStepper/index.d.ts +1 -0
- package/dist/cjs/dts/Workflow/subcomponents/Footer/components/Root/Root.d.ts +7 -0
- package/dist/cjs/dts/Workflow/subcomponents/Footer/components/Root/index.d.ts +1 -0
- package/dist/cjs/dts/Workflow/subcomponents/Footer/components/index.d.ts +3 -0
- package/dist/cjs/dts/Workflow/subcomponents/Footer/index.d.ts +2 -0
- package/dist/cjs/dts/Workflow/subcomponents/Header/Header.d.ts +7 -0
- package/dist/cjs/dts/Workflow/subcomponents/Header/components/Actions/Actions.d.ts +13 -0
- package/dist/cjs/dts/Workflow/subcomponents/Header/components/Actions/index.d.ts +1 -0
- package/dist/cjs/dts/Workflow/subcomponents/Header/components/Branding/Branding.d.ts +12 -0
- package/dist/cjs/dts/Workflow/subcomponents/Header/components/Branding/index.d.ts +1 -0
- package/dist/cjs/dts/Workflow/subcomponents/Header/components/Root/Root.d.ts +7 -0
- package/dist/cjs/dts/Workflow/subcomponents/Header/components/Root/index.d.ts +1 -0
- package/dist/cjs/dts/Workflow/subcomponents/Header/components/Titles/Titles.d.ts +17 -0
- package/dist/cjs/dts/Workflow/subcomponents/Header/components/Titles/index.d.ts +1 -0
- package/dist/cjs/dts/Workflow/subcomponents/Header/components/index.d.ts +4 -0
- package/dist/cjs/dts/Workflow/subcomponents/Header/index.d.ts +2 -0
- package/dist/cjs/dts/Workflow/subcomponents/Main/Main.d.ts +9 -0
- package/dist/cjs/dts/Workflow/subcomponents/Main/index.d.ts +1 -0
- package/dist/cjs/dts/Workflow/subcomponents/Wrapper/Wrapper.d.ts +9 -0
- package/dist/cjs/dts/Workflow/subcomponents/Wrapper/index.d.ts +1 -0
- package/dist/cjs/dts/Workflow/subcomponents/index.d.ts +4 -0
- package/dist/cjs/dts/index.d.ts +1 -0
- package/dist/cjs/future.js +1 -1
- package/dist/cjs/{index-18831222.js → index-f4dd8d10.js} +1 -1
- package/dist/cjs/index-f4dd8d10.js.map +1 -0
- package/dist/cjs/index.css +451 -4
- package/dist/cjs/index.js +2030 -638
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/dts/SVG/icons/IndicatorActiveIcon.d.ts +3 -0
- package/dist/esm/dts/SVG/icons/IndicatorInactiveIcon.d.ts +3 -0
- package/dist/esm/dts/SVG/icons/SuccessIcon.d.ts +3 -0
- package/dist/esm/dts/Workflow/Workflow.d.ts +26 -0
- package/dist/esm/dts/Workflow/_docs/controls/controls.d.ts +35 -0
- package/dist/esm/dts/Workflow/_docs/controls/index.d.ts +1 -0
- package/dist/esm/dts/Workflow/index.d.ts +1 -0
- package/dist/esm/dts/Workflow/subcomponents/Footer/Footer.d.ts +13 -0
- package/dist/esm/dts/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.d.ts +12 -0
- package/dist/esm/dts/Workflow/subcomponents/Footer/components/FooterActions/index.d.ts +1 -0
- package/dist/esm/dts/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.d.ts +10 -0
- package/dist/esm/dts/Workflow/subcomponents/Footer/components/ProgressStepper/index.d.ts +1 -0
- package/dist/esm/dts/Workflow/subcomponents/Footer/components/Root/Root.d.ts +7 -0
- package/dist/esm/dts/Workflow/subcomponents/Footer/components/Root/index.d.ts +1 -0
- package/dist/esm/dts/Workflow/subcomponents/Footer/components/index.d.ts +3 -0
- package/dist/esm/dts/Workflow/subcomponents/Footer/index.d.ts +2 -0
- package/dist/esm/dts/Workflow/subcomponents/Header/Header.d.ts +7 -0
- package/dist/esm/dts/Workflow/subcomponents/Header/components/Actions/Actions.d.ts +13 -0
- package/dist/esm/dts/Workflow/subcomponents/Header/components/Actions/index.d.ts +1 -0
- package/dist/esm/dts/Workflow/subcomponents/Header/components/Branding/Branding.d.ts +12 -0
- package/dist/esm/dts/Workflow/subcomponents/Header/components/Branding/index.d.ts +1 -0
- package/dist/esm/dts/Workflow/subcomponents/Header/components/Root/Root.d.ts +7 -0
- package/dist/esm/dts/Workflow/subcomponents/Header/components/Root/index.d.ts +1 -0
- package/dist/esm/dts/Workflow/subcomponents/Header/components/Titles/Titles.d.ts +17 -0
- package/dist/esm/dts/Workflow/subcomponents/Header/components/Titles/index.d.ts +1 -0
- package/dist/esm/dts/Workflow/subcomponents/Header/components/index.d.ts +4 -0
- package/dist/esm/dts/Workflow/subcomponents/Header/index.d.ts +2 -0
- package/dist/esm/dts/Workflow/subcomponents/Main/Main.d.ts +9 -0
- package/dist/esm/dts/Workflow/subcomponents/Main/index.d.ts +1 -0
- package/dist/esm/dts/Workflow/subcomponents/Wrapper/Wrapper.d.ts +9 -0
- package/dist/esm/dts/Workflow/subcomponents/Wrapper/index.d.ts +1 -0
- package/dist/esm/dts/Workflow/subcomponents/index.d.ts +4 -0
- package/dist/esm/dts/index.d.ts +1 -0
- package/dist/esm/future.js +1 -1
- package/dist/esm/{index-3e73eeed.js → index-55bf6f2f.js} +1 -1
- package/dist/esm/index-55bf6f2f.js.map +1 -0
- package/dist/esm/index.css +451 -4
- package/dist/esm/index.js +2071 -680
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +68 -2
- package/dist/styles.css +1 -1
- package/icons/empty.icon.svg +4 -14
- package/icons/full.icon.svg +3 -16
- package/icons/success.icon.svg +7 -15
- package/package.json +18 -15
- package/dist/cjs/index-18831222.js.map +0 -1
- package/dist/esm/index-3e73eeed.js.map +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-f4dd8d10.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var designTokens = require('@kaizen/design-tokens');
|
|
6
|
+
var require$$0 = require('process');
|
|
6
7
|
|
|
7
8
|
function _interopNamespaceDefault(e) {
|
|
8
9
|
var n = Object.create(null);
|
|
@@ -240,8 +241,8 @@ RemoveScroll.classNames = {
|
|
|
240
241
|
zeroRight: zeroRightClassName,
|
|
241
242
|
};
|
|
242
243
|
|
|
243
|
-
function _extends() {
|
|
244
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
244
|
+
function _extends$1() {
|
|
245
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
245
246
|
for (var i = 1; i < arguments.length; i++) {
|
|
246
247
|
var source = arguments[i];
|
|
247
248
|
for (var key in source) {
|
|
@@ -252,7 +253,7 @@ function _extends() {
|
|
|
252
253
|
}
|
|
253
254
|
return target;
|
|
254
255
|
};
|
|
255
|
-
return _extends.apply(this, arguments);
|
|
256
|
+
return _extends$1.apply(this, arguments);
|
|
256
257
|
}
|
|
257
258
|
|
|
258
259
|
var propTypes = {exports: {}};
|
|
@@ -1606,7 +1607,7 @@ var FocusLock = /*#__PURE__*/React__namespace.forwardRef(function FocusLockUI(pr
|
|
|
1606
1607
|
}, []);
|
|
1607
1608
|
}
|
|
1608
1609
|
|
|
1609
|
-
var lockProps = _extends((_extends2 = {}, _extends2[FOCUS_DISABLED] = disabled && 'disabled', _extends2[FOCUS_GROUP] = group, _extends2), containerProps);
|
|
1610
|
+
var lockProps = _extends$1((_extends2 = {}, _extends2[FOCUS_DISABLED] = disabled && 'disabled', _extends2[FOCUS_GROUP] = group, _extends2), containerProps);
|
|
1610
1611
|
|
|
1611
1612
|
var hasLeadingGuards = noFocusGuards !== true;
|
|
1612
1613
|
var hasTailingGuards = hasLeadingGuards && noFocusGuards !== 'tail';
|
|
@@ -1639,7 +1640,7 @@ var FocusLock = /*#__PURE__*/React__namespace.forwardRef(function FocusLockUI(pr
|
|
|
1639
1640
|
onDeactivation: onDeactivation,
|
|
1640
1641
|
returnFocus: returnFocus,
|
|
1641
1642
|
focusOptions: focusOptions
|
|
1642
|
-
}), /*#__PURE__*/React__namespace.createElement(Container, _extends({
|
|
1643
|
+
}), /*#__PURE__*/React__namespace.createElement(Container, _extends$1({
|
|
1643
1644
|
ref: mergedRef
|
|
1644
1645
|
}, lockProps, {
|
|
1645
1646
|
className: className,
|
|
@@ -3334,8 +3335,8 @@ var hideOthers = function (originalTarget, parentNode, markerName) {
|
|
|
3334
3335
|
};
|
|
3335
3336
|
|
|
3336
3337
|
var Style = styleSingleton();
|
|
3337
|
-
var styles$
|
|
3338
|
-
var InteractivityDisabler = function () { return React__namespace.createElement(Style, { styles: styles$
|
|
3338
|
+
var styles$j = "\n [" + focusHiddenMarker + "] {\n pointer-events: none !important;\n }\n";
|
|
3339
|
+
var InteractivityDisabler = function () { return React__namespace.createElement(Style, { styles: styles$j }); };
|
|
3339
3340
|
|
|
3340
3341
|
var extractRef = function (ref) {
|
|
3341
3342
|
return 'current' in ref ? ref.current : ref;
|
|
@@ -34877,17 +34878,7 @@ function effect$1(_ref2) {
|
|
|
34877
34878
|
}
|
|
34878
34879
|
}
|
|
34879
34880
|
|
|
34880
|
-
if (process.env.NODE_ENV !== "production") {
|
|
34881
|
-
if (!isHTMLElement(arrowElement)) {
|
|
34882
|
-
console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
|
|
34883
|
-
}
|
|
34884
|
-
}
|
|
34885
|
-
|
|
34886
34881
|
if (!contains(state.elements.popper, arrowElement)) {
|
|
34887
|
-
if (process.env.NODE_ENV !== "production") {
|
|
34888
|
-
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
34889
|
-
}
|
|
34890
|
-
|
|
34891
34882
|
return;
|
|
34892
34883
|
}
|
|
34893
34884
|
|
|
@@ -35029,17 +35020,6 @@ function computeStyles(_ref5) {
|
|
|
35029
35020
|
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
35030
35021
|
_options$roundOffsets = options.roundOffsets,
|
|
35031
35022
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
35032
|
-
|
|
35033
|
-
if (process.env.NODE_ENV !== "production") {
|
|
35034
|
-
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
|
|
35035
|
-
|
|
35036
|
-
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
35037
|
-
return transitionProperty.indexOf(property) >= 0;
|
|
35038
|
-
})) {
|
|
35039
|
-
console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));
|
|
35040
|
-
}
|
|
35041
|
-
}
|
|
35042
|
-
|
|
35043
35023
|
var commonStyles = {
|
|
35044
35024
|
placement: getBasePlacement(state.placement),
|
|
35045
35025
|
variation: getVariation(state.placement),
|
|
@@ -35480,10 +35460,6 @@ function computeAutoPlacement(state, options) {
|
|
|
35480
35460
|
|
|
35481
35461
|
if (allowedPlacements.length === 0) {
|
|
35482
35462
|
allowedPlacements = placements$1;
|
|
35483
|
-
|
|
35484
|
-
if (process.env.NODE_ENV !== "production") {
|
|
35485
|
-
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
35486
|
-
}
|
|
35487
35463
|
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
35488
35464
|
|
|
35489
35465
|
|
|
@@ -36035,108 +36011,6 @@ function debounce(fn) {
|
|
|
36035
36011
|
};
|
|
36036
36012
|
}
|
|
36037
36013
|
|
|
36038
|
-
function format(str) {
|
|
36039
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
36040
|
-
args[_key - 1] = arguments[_key];
|
|
36041
|
-
}
|
|
36042
|
-
|
|
36043
|
-
return [].concat(args).reduce(function (p, c) {
|
|
36044
|
-
return p.replace(/%s/, c);
|
|
36045
|
-
}, str);
|
|
36046
|
-
}
|
|
36047
|
-
|
|
36048
|
-
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
|
|
36049
|
-
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
|
|
36050
|
-
var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
|
|
36051
|
-
function validateModifiers(modifiers) {
|
|
36052
|
-
modifiers.forEach(function (modifier) {
|
|
36053
|
-
[].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
|
|
36054
|
-
.filter(function (value, index, self) {
|
|
36055
|
-
return self.indexOf(value) === index;
|
|
36056
|
-
}).forEach(function (key) {
|
|
36057
|
-
switch (key) {
|
|
36058
|
-
case 'name':
|
|
36059
|
-
if (typeof modifier.name !== 'string') {
|
|
36060
|
-
console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
|
|
36061
|
-
}
|
|
36062
|
-
|
|
36063
|
-
break;
|
|
36064
|
-
|
|
36065
|
-
case 'enabled':
|
|
36066
|
-
if (typeof modifier.enabled !== 'boolean') {
|
|
36067
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
|
|
36068
|
-
}
|
|
36069
|
-
|
|
36070
|
-
break;
|
|
36071
|
-
|
|
36072
|
-
case 'phase':
|
|
36073
|
-
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
36074
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
|
|
36075
|
-
}
|
|
36076
|
-
|
|
36077
|
-
break;
|
|
36078
|
-
|
|
36079
|
-
case 'fn':
|
|
36080
|
-
if (typeof modifier.fn !== 'function') {
|
|
36081
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
36082
|
-
}
|
|
36083
|
-
|
|
36084
|
-
break;
|
|
36085
|
-
|
|
36086
|
-
case 'effect':
|
|
36087
|
-
if (modifier.effect != null && typeof modifier.effect !== 'function') {
|
|
36088
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
36089
|
-
}
|
|
36090
|
-
|
|
36091
|
-
break;
|
|
36092
|
-
|
|
36093
|
-
case 'requires':
|
|
36094
|
-
if (modifier.requires != null && !Array.isArray(modifier.requires)) {
|
|
36095
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
|
|
36096
|
-
}
|
|
36097
|
-
|
|
36098
|
-
break;
|
|
36099
|
-
|
|
36100
|
-
case 'requiresIfExists':
|
|
36101
|
-
if (!Array.isArray(modifier.requiresIfExists)) {
|
|
36102
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
|
|
36103
|
-
}
|
|
36104
|
-
|
|
36105
|
-
break;
|
|
36106
|
-
|
|
36107
|
-
case 'options':
|
|
36108
|
-
case 'data':
|
|
36109
|
-
break;
|
|
36110
|
-
|
|
36111
|
-
default:
|
|
36112
|
-
console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
|
|
36113
|
-
return "\"" + s + "\"";
|
|
36114
|
-
}).join(', ') + "; but \"" + key + "\" was provided.");
|
|
36115
|
-
}
|
|
36116
|
-
|
|
36117
|
-
modifier.requires && modifier.requires.forEach(function (requirement) {
|
|
36118
|
-
if (modifiers.find(function (mod) {
|
|
36119
|
-
return mod.name === requirement;
|
|
36120
|
-
}) == null) {
|
|
36121
|
-
console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
|
|
36122
|
-
}
|
|
36123
|
-
});
|
|
36124
|
-
});
|
|
36125
|
-
});
|
|
36126
|
-
}
|
|
36127
|
-
|
|
36128
|
-
function uniqueBy(arr, fn) {
|
|
36129
|
-
var identifiers = new Set();
|
|
36130
|
-
return arr.filter(function (item) {
|
|
36131
|
-
var identifier = fn(item);
|
|
36132
|
-
|
|
36133
|
-
if (!identifiers.has(identifier)) {
|
|
36134
|
-
identifiers.add(identifier);
|
|
36135
|
-
return true;
|
|
36136
|
-
}
|
|
36137
|
-
});
|
|
36138
|
-
}
|
|
36139
|
-
|
|
36140
36014
|
function mergeByName(modifiers) {
|
|
36141
36015
|
var merged = modifiers.reduce(function (merged, current) {
|
|
36142
36016
|
var existing = merged[current.name];
|
|
@@ -36152,8 +36026,6 @@ function mergeByName(modifiers) {
|
|
|
36152
36026
|
});
|
|
36153
36027
|
}
|
|
36154
36028
|
|
|
36155
|
-
var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
|
|
36156
|
-
var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
|
|
36157
36029
|
var DEFAULT_OPTIONS = {
|
|
36158
36030
|
placement: 'bottom',
|
|
36159
36031
|
modifiers: [],
|
|
@@ -36215,42 +36087,7 @@ function popperGenerator(generatorOptions) {
|
|
|
36215
36087
|
|
|
36216
36088
|
state.orderedModifiers = orderedModifiers.filter(function (m) {
|
|
36217
36089
|
return m.enabled;
|
|
36218
|
-
});
|
|
36219
|
-
// if one of the modifiers is invalid for any reason
|
|
36220
|
-
|
|
36221
|
-
if (process.env.NODE_ENV !== "production") {
|
|
36222
|
-
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
|
|
36223
|
-
var name = _ref.name;
|
|
36224
|
-
return name;
|
|
36225
|
-
});
|
|
36226
|
-
validateModifiers(modifiers);
|
|
36227
|
-
|
|
36228
|
-
if (getBasePlacement(state.options.placement) === auto) {
|
|
36229
|
-
var flipModifier = state.orderedModifiers.find(function (_ref2) {
|
|
36230
|
-
var name = _ref2.name;
|
|
36231
|
-
return name === 'flip';
|
|
36232
|
-
});
|
|
36233
|
-
|
|
36234
|
-
if (!flipModifier) {
|
|
36235
|
-
console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
|
|
36236
|
-
}
|
|
36237
|
-
}
|
|
36238
|
-
|
|
36239
|
-
var _getComputedStyle = getComputedStyle$1(popper),
|
|
36240
|
-
marginTop = _getComputedStyle.marginTop,
|
|
36241
|
-
marginRight = _getComputedStyle.marginRight,
|
|
36242
|
-
marginBottom = _getComputedStyle.marginBottom,
|
|
36243
|
-
marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
|
|
36244
|
-
// cause bugs with positioning, so we'll warn the consumer
|
|
36245
|
-
|
|
36246
|
-
|
|
36247
|
-
if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
|
|
36248
|
-
return parseFloat(margin);
|
|
36249
|
-
})) {
|
|
36250
|
-
console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
|
|
36251
|
-
}
|
|
36252
|
-
}
|
|
36253
|
-
|
|
36090
|
+
});
|
|
36254
36091
|
runModifierEffects();
|
|
36255
36092
|
return instance.update();
|
|
36256
36093
|
},
|
|
@@ -36270,10 +36107,6 @@ function popperGenerator(generatorOptions) {
|
|
|
36270
36107
|
// anymore
|
|
36271
36108
|
|
|
36272
36109
|
if (!areValidElements(reference, popper)) {
|
|
36273
|
-
if (process.env.NODE_ENV !== "production") {
|
|
36274
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
36275
|
-
}
|
|
36276
|
-
|
|
36277
36110
|
return;
|
|
36278
36111
|
} // Store the reference and popper rects to be read by modifiers
|
|
36279
36112
|
|
|
@@ -36296,18 +36129,8 @@ function popperGenerator(generatorOptions) {
|
|
|
36296
36129
|
state.orderedModifiers.forEach(function (modifier) {
|
|
36297
36130
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
36298
36131
|
});
|
|
36299
|
-
var __debug_loops__ = 0;
|
|
36300
36132
|
|
|
36301
36133
|
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
36302
|
-
if (process.env.NODE_ENV !== "production") {
|
|
36303
|
-
__debug_loops__ += 1;
|
|
36304
|
-
|
|
36305
|
-
if (__debug_loops__ > 100) {
|
|
36306
|
-
console.error(INFINITE_LOOP_ERROR);
|
|
36307
|
-
break;
|
|
36308
|
-
}
|
|
36309
|
-
}
|
|
36310
|
-
|
|
36311
36134
|
if (state.reset === true) {
|
|
36312
36135
|
state.reset = false;
|
|
36313
36136
|
index = -1;
|
|
@@ -36345,10 +36168,6 @@ function popperGenerator(generatorOptions) {
|
|
|
36345
36168
|
};
|
|
36346
36169
|
|
|
36347
36170
|
if (!areValidElements(reference, popper)) {
|
|
36348
|
-
if (process.env.NODE_ENV !== "production") {
|
|
36349
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
36350
|
-
}
|
|
36351
|
-
|
|
36352
36171
|
return instance;
|
|
36353
36172
|
}
|
|
36354
36173
|
|
|
@@ -36363,11 +36182,11 @@ function popperGenerator(generatorOptions) {
|
|
|
36363
36182
|
// one.
|
|
36364
36183
|
|
|
36365
36184
|
function runModifierEffects() {
|
|
36366
|
-
state.orderedModifiers.forEach(function (
|
|
36367
|
-
var name =
|
|
36368
|
-
|
|
36369
|
-
options =
|
|
36370
|
-
effect =
|
|
36185
|
+
state.orderedModifiers.forEach(function (_ref) {
|
|
36186
|
+
var name = _ref.name,
|
|
36187
|
+
_ref$options = _ref.options,
|
|
36188
|
+
options = _ref$options === void 0 ? {} : _ref$options,
|
|
36189
|
+
effect = _ref.effect;
|
|
36371
36190
|
|
|
36372
36191
|
if (typeof effect === 'function') {
|
|
36373
36192
|
var cleanupFn = effect({
|
|
@@ -36809,7 +36628,7 @@ var esm = /*#__PURE__*/Object.freeze({
|
|
|
36809
36628
|
usePopper: usePopper
|
|
36810
36629
|
});
|
|
36811
36630
|
|
|
36812
|
-
var styles$
|
|
36631
|
+
var styles$i = {"filterPopover":"FilterPopover-module_filterPopover__OgOEM"};
|
|
36813
36632
|
|
|
36814
36633
|
var FilterPopover = function(_a) {
|
|
36815
36634
|
var children = _a.children, referenceElement = _a.referenceElement, popperOptions = _a.popperOptions, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "referenceElement", "popperOptions", "classNameOverride"]);
|
|
@@ -36822,7 +36641,7 @@ var FilterPopover = function(_a) {
|
|
|
36822
36641
|
}
|
|
36823
36642
|
}
|
|
36824
36643
|
], placement: "bottom-start", strategy: "fixed" }, popperOptions)), popperStyles = _c.styles, popperAttributes = _c.attributes;
|
|
36825
|
-
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$
|
|
36644
|
+
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$i.filterPopover, classNameOverride), role: "dialog", "aria-modal": "true" }, restProps), children);
|
|
36826
36645
|
};
|
|
36827
36646
|
FilterPopover.displayName = "FilterPopover";
|
|
36828
36647
|
|
|
@@ -36867,11 +36686,11 @@ var Filter = function(_a) {
|
|
|
36867
36686
|
};
|
|
36868
36687
|
Filter.displayName = "Filter";
|
|
36869
36688
|
|
|
36870
|
-
var styles$
|
|
36689
|
+
var styles$h = {"filterContents":"FilterContents-module_filterContents__uNUpd"};
|
|
36871
36690
|
|
|
36872
36691
|
var FilterContents = function(_a) {
|
|
36873
36692
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
36874
|
-
return React.createElement("div", index.__assign({ className: index.classnames(styles$
|
|
36693
|
+
return React.createElement("div", index.__assign({ className: index.classnames(styles$h.filterContents, classNameOverride) }, restProps), children);
|
|
36875
36694
|
};
|
|
36876
36695
|
FilterContents.displayName = "FilterContents";
|
|
36877
36696
|
|
|
@@ -36884,7 +36703,7 @@ var singleLine = function(message) {
|
|
|
36884
36703
|
return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
36885
36704
|
};
|
|
36886
36705
|
|
|
36887
|
-
var styles$
|
|
36706
|
+
var styles$g = {"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"};
|
|
36888
36707
|
|
|
36889
36708
|
var SVG = function(_a) {
|
|
36890
36709
|
var _b;
|
|
@@ -36916,7 +36735,7 @@ var SVG = function(_a) {
|
|
|
36916
36735
|
return React.createElement(
|
|
36917
36736
|
"svg",
|
|
36918
36737
|
index.__assign({
|
|
36919
|
-
className: index.classnames(styles$
|
|
36738
|
+
className: index.classnames(styles$g.icon, classNameOverride, inheritSize && styles$g.inheritSize),
|
|
36920
36739
|
viewBox,
|
|
36921
36740
|
// Work around IE11 making all SVGs focusable.
|
|
36922
36741
|
// See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
|
|
@@ -36985,15 +36804,15 @@ var isRefObject = function(ref) {
|
|
|
36985
36804
|
return ref !== null && "current" in ref;
|
|
36986
36805
|
};
|
|
36987
36806
|
|
|
36988
|
-
var styles$
|
|
36807
|
+
var styles$f = {"filterButtonBase":"FilterButtonBase-module_filterButtonBase__505sK"};
|
|
36989
36808
|
|
|
36990
36809
|
var FilterButtonBase = React.forwardRef(function(_a, ref) {
|
|
36991
36810
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
36992
|
-
return React.createElement("button", index.__assign({ ref, type: "button", className: index.classnames(styles$
|
|
36811
|
+
return React.createElement("button", index.__assign({ ref, type: "button", className: index.classnames(styles$f.filterButtonBase, classNameOverride) }, restProps), children);
|
|
36993
36812
|
});
|
|
36994
36813
|
FilterButtonBase.displayName = "FilterButtonBase";
|
|
36995
36814
|
|
|
36996
|
-
var styles$
|
|
36815
|
+
var styles$e = {"filterButton":"FilterButton-module_filterButton__Q2dMX","labelContainer":"FilterButton-module_labelContainer__5G-MD","hasSelectedValues":"FilterButton-module_hasSelectedValues__dyQkL","labelSeparator":"FilterButton-module_labelSeparator__xrkAx"};
|
|
36997
36816
|
|
|
36998
36817
|
var FilterButton = React.forwardRef(function(_a, ref) {
|
|
36999
36818
|
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"]);
|
|
@@ -37002,15 +36821,15 @@ var FilterButton = React.forwardRef(function(_a, ref) {
|
|
|
37002
36821
|
var selectedValuesLabel = selectedValue;
|
|
37003
36822
|
return React.createElement(
|
|
37004
36823
|
FilterButtonBase,
|
|
37005
|
-
index.__assign({ ref: triggerRef, classNameOverride: index.classnames(styles$
|
|
37006
|
-
React.createElement("span", { className: styles$
|
|
36824
|
+
index.__assign({ ref: triggerRef, classNameOverride: index.classnames(styles$e.filterButton, classNameOverride), "aria-haspopup": "true", "aria-expanded": isOpen }, restProps),
|
|
36825
|
+
React.createElement("span", { className: styles$e.labelContainer }, selectedValuesLabel ? React.createElement(
|
|
37007
36826
|
React.Fragment,
|
|
37008
36827
|
null,
|
|
37009
36828
|
React.createElement(
|
|
37010
36829
|
"span",
|
|
37011
|
-
{ className: styles$
|
|
36830
|
+
{ className: styles$e.hasSelectedValues },
|
|
37012
36831
|
React.createElement("span", null, label),
|
|
37013
|
-
React.createElement("span", { className: styles$
|
|
36832
|
+
React.createElement("span", { className: styles$e.labelSeparator }, ":")
|
|
37014
36833
|
),
|
|
37015
36834
|
React.createElement("span", null, selectedValuesLabel)
|
|
37016
36835
|
) : label),
|
|
@@ -37025,7 +36844,7 @@ var Tooltip$1 = {};
|
|
|
37025
36844
|
|
|
37026
36845
|
var Tooltip = {};
|
|
37027
36846
|
|
|
37028
|
-
var require$$3$
|
|
36847
|
+
var require$$3$4 = /*@__PURE__*/index.getAugmentedNamespace(esm);
|
|
37029
36848
|
|
|
37030
36849
|
var AppearanceAnim = {};
|
|
37031
36850
|
|
|
@@ -37764,10 +37583,10 @@ var require$$1$4 = /*@__PURE__*/index.getAugmentedNamespace(esmBrowser);
|
|
|
37764
37583
|
|
|
37765
37584
|
useUuid$1.__esModule = true;
|
|
37766
37585
|
useUuid$1.useUuid = void 0;
|
|
37767
|
-
var react_1$
|
|
37586
|
+
var react_1$3 = React;
|
|
37768
37587
|
var uuid_1 = require$$1$4;
|
|
37769
37588
|
var useUuid = function() {
|
|
37770
|
-
return (0, react_1$
|
|
37589
|
+
return (0, react_1$3.useMemo)(function() {
|
|
37771
37590
|
return (0, uuid_1.v4)();
|
|
37772
37591
|
}, []);
|
|
37773
37592
|
};
|
|
@@ -37780,7 +37599,7 @@ var Tooltip_module$1 = /*#__PURE__*/Object.freeze({
|
|
|
37780
37599
|
default: Tooltip_module
|
|
37781
37600
|
});
|
|
37782
37601
|
|
|
37783
|
-
var require$$6$
|
|
37602
|
+
var require$$6$2 = /*@__PURE__*/index.getAugmentedNamespace(Tooltip_module$1);
|
|
37784
37603
|
|
|
37785
37604
|
(function(exports) {
|
|
37786
37605
|
var __assign = index.commonjsGlobal && index.commonjsGlobal.__assign || function() {
|
|
@@ -37835,10 +37654,10 @@ var require$$6$1 = /*@__PURE__*/index.getAugmentedNamespace(Tooltip_module$1);
|
|
|
37835
37654
|
var react_1 = __importStar(React);
|
|
37836
37655
|
var react_dom_1 = __importDefault(reactDomExports);
|
|
37837
37656
|
var classnames_1 = __importDefault(index.classnamesExports);
|
|
37838
|
-
var react_popper_1 = require$$3$
|
|
37657
|
+
var react_popper_1 = require$$3$4;
|
|
37839
37658
|
var AppearanceAnim_1 = AppearanceAnim;
|
|
37840
37659
|
var useUuid_1 = useUuid$1;
|
|
37841
|
-
var Tooltip_module_scss_1 = __importDefault(require$$6$
|
|
37660
|
+
var Tooltip_module_scss_1 = __importDefault(require$$6$2);
|
|
37842
37661
|
var positionToPlacement = /* @__PURE__ */ new Map([
|
|
37843
37662
|
["above", "top"],
|
|
37844
37663
|
["below", "bottom"],
|
|
@@ -38039,7 +37858,7 @@ var ClearIcon = function(props) {
|
|
|
38039
37858
|
);
|
|
38040
37859
|
};
|
|
38041
37860
|
|
|
38042
|
-
var styles$
|
|
37861
|
+
var styles$d = {"buttonGroup":"ButtonGroup-module_buttonGroup__bsy2X","child":"ButtonGroup-module_child__K6AP-","firstChild":"ButtonGroup-module_firstChild__uEn1j","lastChild":"ButtonGroup-module_lastChild__Vicsx"};
|
|
38043
37862
|
|
|
38044
37863
|
var isFilterButton = function(node) {
|
|
38045
37864
|
return React.isValidElement(node) && node.type === FilterButtonBase;
|
|
@@ -38047,11 +37866,11 @@ var isFilterButton = function(node) {
|
|
|
38047
37866
|
var ButtonGroup = function(_a) {
|
|
38048
37867
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
38049
37868
|
var childCount = React.Children.count(children);
|
|
38050
|
-
var containerProps = index.__assign({ role: "group", className: index.classnames(styles$
|
|
37869
|
+
var containerProps = index.__assign({ role: "group", className: index.classnames(styles$d.buttonGroup, classNameOverride) }, restProps);
|
|
38051
37870
|
if (childCount === 1)
|
|
38052
37871
|
return React.createElement("div", index.__assign({}, containerProps), children);
|
|
38053
37872
|
return React.createElement("div", index.__assign({}, containerProps), React.Children.map(children, function(child, index$1) {
|
|
38054
|
-
var buttonClassNames = index.classnames(styles$
|
|
37873
|
+
var buttonClassNames = index.classnames(styles$d.child, index$1 === 0 && styles$d.firstChild, index$1 === childCount - 1 && styles$d.lastChild, child.props.classNameOverride);
|
|
38055
37874
|
if (child.type === tooltip.Tooltip) {
|
|
38056
37875
|
var button = child.props.children;
|
|
38057
37876
|
if (isFilterButton(button)) {
|
|
@@ -38300,34 +38119,45 @@ function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
|
|
|
38300
38119
|
let [value, setValue] = (React.useState)(defaultValue);
|
|
38301
38120
|
let valueRef = (React.useRef)(value);
|
|
38302
38121
|
let effect = (React.useRef)(null);
|
|
38303
|
-
|
|
38304
|
-
|
|
38305
|
-
// which has the proper `value` in scope.
|
|
38306
|
-
let nextRef = (React.useRef)(null);
|
|
38307
|
-
nextRef.current = ()=>{
|
|
38122
|
+
// Must be stable so that `queue` is stable.
|
|
38123
|
+
let nextIter = (React.useCallback)(()=>{
|
|
38308
38124
|
// Run the generator to the next yield.
|
|
38309
38125
|
let newValue = effect.current.next();
|
|
38126
|
+
while(!newValue.done && valueRef.current === newValue.value)// If the value is the same as the current value,
|
|
38127
|
+
// then continue to the next yield. Otherwise,
|
|
38128
|
+
// set the value in state and wait for the next layout effect.
|
|
38129
|
+
newValue = effect.current.next();
|
|
38310
38130
|
// If the generator is done, reset the effect.
|
|
38311
38131
|
if (newValue.done) {
|
|
38312
38132
|
effect.current = null;
|
|
38313
38133
|
return;
|
|
38314
38134
|
}
|
|
38315
|
-
//
|
|
38316
|
-
//
|
|
38317
|
-
//
|
|
38318
|
-
|
|
38319
|
-
|
|
38320
|
-
|
|
38135
|
+
// Always update valueRef when setting the state.
|
|
38136
|
+
// This is needed because the function is not regenerated with the new state value since
|
|
38137
|
+
// they must be stable across renders. Instead, it gets carried in the ref, but the setState
|
|
38138
|
+
// is also needed in order to cause a rerender.
|
|
38139
|
+
setValue(newValue.value);
|
|
38140
|
+
valueRef.current = newValue.value;
|
|
38141
|
+
// this list of dependencies is stable, setState and refs never change after first render.
|
|
38142
|
+
}, [
|
|
38143
|
+
setValue,
|
|
38144
|
+
valueRef,
|
|
38145
|
+
effect
|
|
38146
|
+
]);
|
|
38321
38147
|
($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
|
|
38322
38148
|
// If there is an effect currently running, continue to the next yield.
|
|
38323
|
-
if (effect.current)
|
|
38149
|
+
if (effect.current) nextIter();
|
|
38324
38150
|
});
|
|
38151
|
+
// queue must be a stable function, much like setState.
|
|
38325
38152
|
let queue = (React.useCallback)((fn)=>{
|
|
38326
38153
|
effect.current = fn(valueRef.current);
|
|
38327
|
-
|
|
38154
|
+
nextIter();
|
|
38155
|
+
// this list of dependencies is stable, setState and refs never change after first render.
|
|
38156
|
+
// in addition, nextIter is stable as outlined above
|
|
38328
38157
|
}, [
|
|
38158
|
+
nextIter,
|
|
38329
38159
|
effect,
|
|
38330
|
-
|
|
38160
|
+
valueRef
|
|
38331
38161
|
]);
|
|
38332
38162
|
return [
|
|
38333
38163
|
value,
|
|
@@ -38336,7 +38166,7 @@ function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
|
|
|
38336
38166
|
}
|
|
38337
38167
|
|
|
38338
38168
|
|
|
38339
|
-
let $bdb11010cef70236$var$idsUpdaterMap = new Map();
|
|
38169
|
+
let $bdb11010cef70236$var$idsUpdaterMap$1 = new Map();
|
|
38340
38170
|
function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
38341
38171
|
let [value, setValue] = (React.useState)(defaultId);
|
|
38342
38172
|
let nextId = (React.useRef)(null);
|
|
@@ -38344,11 +38174,11 @@ function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
|
38344
38174
|
let updateValue = (React.useCallback)((val)=>{
|
|
38345
38175
|
nextId.current = val;
|
|
38346
38176
|
}, []);
|
|
38347
|
-
$bdb11010cef70236$var$idsUpdaterMap.set(res, updateValue);
|
|
38177
|
+
$bdb11010cef70236$var$idsUpdaterMap$1.set(res, updateValue);
|
|
38348
38178
|
($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
|
|
38349
38179
|
let r = res;
|
|
38350
38180
|
return ()=>{
|
|
38351
|
-
$bdb11010cef70236$var$idsUpdaterMap.delete(r);
|
|
38181
|
+
$bdb11010cef70236$var$idsUpdaterMap$1.delete(r);
|
|
38352
38182
|
};
|
|
38353
38183
|
}, [
|
|
38354
38184
|
res
|
|
@@ -38364,14 +38194,14 @@ function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
|
38364
38194
|
});
|
|
38365
38195
|
return res;
|
|
38366
38196
|
}
|
|
38367
|
-
function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
|
|
38197
|
+
function $bdb11010cef70236$export$cd8c9cb68f842629$1(idA, idB) {
|
|
38368
38198
|
if (idA === idB) return idA;
|
|
38369
|
-
let setIdA = $bdb11010cef70236$var$idsUpdaterMap.get(idA);
|
|
38199
|
+
let setIdA = $bdb11010cef70236$var$idsUpdaterMap$1.get(idA);
|
|
38370
38200
|
if (setIdA) {
|
|
38371
38201
|
setIdA(idB);
|
|
38372
38202
|
return idB;
|
|
38373
38203
|
}
|
|
38374
|
-
let setIdB = $bdb11010cef70236$var$idsUpdaterMap.get(idB);
|
|
38204
|
+
let setIdB = $bdb11010cef70236$var$idsUpdaterMap$1.get(idB);
|
|
38375
38205
|
if (setIdB) {
|
|
38376
38206
|
setIdB(idA);
|
|
38377
38207
|
return idA;
|
|
@@ -38411,7 +38241,7 @@ function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {
|
|
|
38411
38241
|
* governing permissions and limitations under the License.
|
|
38412
38242
|
*/ /**
|
|
38413
38243
|
* Calls all functions in the order they were chained with the same arguments.
|
|
38414
|
-
*/ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
|
|
38244
|
+
*/ function $ff5963eb1fccf552$export$e08e3b67e392101e$1(...callbacks) {
|
|
38415
38245
|
return (...args)=>{
|
|
38416
38246
|
for (let callback of callbacks)if (typeof callback === "function") callback(...args);
|
|
38417
38247
|
};
|
|
@@ -38431,7 +38261,7 @@ function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {
|
|
|
38431
38261
|
*/
|
|
38432
38262
|
|
|
38433
38263
|
|
|
38434
|
-
function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
|
|
38264
|
+
function $3ef42575df84b30b$export$9d1611c77c2fe928$1(...args) {
|
|
38435
38265
|
// Start with a base clone of the first argument. This is a lot faster than starting
|
|
38436
38266
|
// with an empty object and adding properties as we go.
|
|
38437
38267
|
let result = {
|
|
@@ -38444,9 +38274,9 @@ function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
|
|
|
38444
38274
|
let b = props[key];
|
|
38445
38275
|
// Chain events
|
|
38446
38276
|
if (typeof a === "function" && typeof b === "function" && // This is a lot faster than a regex.
|
|
38447
|
-
key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = ($ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);
|
|
38277
|
+
key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = ($ff5963eb1fccf552$export$e08e3b67e392101e$1)(a, b);
|
|
38448
38278
|
else if ((key === "className" || key === "UNSAFE_className") && typeof a === "string" && typeof b === "string") result[key] = (clsx)(a, b);
|
|
38449
|
-
else if (key === "id" && a && b) result.id = ($bdb11010cef70236$export$cd8c9cb68f842629)(a, b);
|
|
38279
|
+
else if (key === "id" && a && b) result.id = ($bdb11010cef70236$export$cd8c9cb68f842629$1)(a, b);
|
|
38450
38280
|
else result[key] = b !== undefined ? b : a;
|
|
38451
38281
|
}
|
|
38452
38282
|
}
|
|
@@ -38563,17 +38393,17 @@ function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
|
|
|
38563
38393
|
// bugs, e.g. Chrome sometimes fires both transitionend and transitioncancel rather
|
|
38564
38394
|
// than one or the other. So we need to track what's actually transitioning so that
|
|
38565
38395
|
// we can ignore these duplicate events.
|
|
38566
|
-
let $bbed8b41f857bcc0$var$transitionsByElement = new Map();
|
|
38396
|
+
let $bbed8b41f857bcc0$var$transitionsByElement$1 = new Map();
|
|
38567
38397
|
// A list of callbacks to call once there are no transitioning elements.
|
|
38568
|
-
let $bbed8b41f857bcc0$var$transitionCallbacks = new Set();
|
|
38569
|
-
function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
38398
|
+
let $bbed8b41f857bcc0$var$transitionCallbacks$1 = new Set();
|
|
38399
|
+
function $bbed8b41f857bcc0$var$setupGlobalEvents$1() {
|
|
38570
38400
|
if (typeof window === "undefined") return;
|
|
38571
38401
|
let onTransitionStart = (e)=>{
|
|
38572
38402
|
// Add the transitioning property to the list for this element.
|
|
38573
|
-
let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
|
|
38403
|
+
let transitions = $bbed8b41f857bcc0$var$transitionsByElement$1.get(e.target);
|
|
38574
38404
|
if (!transitions) {
|
|
38575
38405
|
transitions = new Set();
|
|
38576
|
-
$bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);
|
|
38406
|
+
$bbed8b41f857bcc0$var$transitionsByElement$1.set(e.target, transitions);
|
|
38577
38407
|
// The transitioncancel event must be registered on the element itself, rather than as a global
|
|
38578
38408
|
// event. This enables us to handle when the node is deleted from the document while it is transitioning.
|
|
38579
38409
|
// In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.
|
|
@@ -38583,34 +38413,34 @@ function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
|
38583
38413
|
};
|
|
38584
38414
|
let onTransitionEnd = (e)=>{
|
|
38585
38415
|
// Remove property from list of transitioning properties.
|
|
38586
|
-
let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
|
|
38416
|
+
let properties = $bbed8b41f857bcc0$var$transitionsByElement$1.get(e.target);
|
|
38587
38417
|
if (!properties) return;
|
|
38588
38418
|
properties.delete(e.propertyName);
|
|
38589
38419
|
// If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.
|
|
38590
38420
|
if (properties.size === 0) {
|
|
38591
38421
|
e.target.removeEventListener("transitioncancel", onTransitionEnd);
|
|
38592
|
-
$bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);
|
|
38422
|
+
$bbed8b41f857bcc0$var$transitionsByElement$1.delete(e.target);
|
|
38593
38423
|
}
|
|
38594
38424
|
// If no transitioning elements, call all of the queued callbacks.
|
|
38595
|
-
if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {
|
|
38596
|
-
for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();
|
|
38597
|
-
$bbed8b41f857bcc0$var$transitionCallbacks.clear();
|
|
38425
|
+
if ($bbed8b41f857bcc0$var$transitionsByElement$1.size === 0) {
|
|
38426
|
+
for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks$1)cb();
|
|
38427
|
+
$bbed8b41f857bcc0$var$transitionCallbacks$1.clear();
|
|
38598
38428
|
}
|
|
38599
38429
|
};
|
|
38600
38430
|
document.body.addEventListener("transitionrun", onTransitionStart);
|
|
38601
38431
|
document.body.addEventListener("transitionend", onTransitionEnd);
|
|
38602
38432
|
}
|
|
38603
38433
|
if (typeof document !== "undefined") {
|
|
38604
|
-
if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents();
|
|
38605
|
-
else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
|
|
38434
|
+
if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents$1();
|
|
38435
|
+
else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents$1);
|
|
38606
38436
|
}
|
|
38607
38437
|
function $bbed8b41f857bcc0$export$24490316f764c430(fn) {
|
|
38608
38438
|
// Wait one frame to see if an animation starts, e.g. a transition on mount.
|
|
38609
38439
|
requestAnimationFrame(()=>{
|
|
38610
38440
|
// If no transitions are running, call the function immediately.
|
|
38611
38441
|
// Otherwise, add it to a list of callbacks to run at the end of the animation.
|
|
38612
|
-
if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) fn();
|
|
38613
|
-
else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);
|
|
38442
|
+
if ($bbed8b41f857bcc0$var$transitionsByElement$1.size === 0) fn();
|
|
38443
|
+
else $bbed8b41f857bcc0$var$transitionCallbacks$1.add(fn);
|
|
38614
38444
|
});
|
|
38615
38445
|
}
|
|
38616
38446
|
|
|
@@ -39135,7 +38965,7 @@ function $f6c31cce2adf654f$var$usePressResponderContext(props) {
|
|
|
39135
38965
|
let context = (React.useContext)(($ae1eeba8b9eafd08$export$5165eccb35aaadb5));
|
|
39136
38966
|
if (context) {
|
|
39137
38967
|
let { register: register , ...contextProps } = context;
|
|
39138
|
-
props = ($3ef42575df84b30b$export$9d1611c77c2fe928)(contextProps, props);
|
|
38968
|
+
props = ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(contextProps, props);
|
|
39139
38969
|
register();
|
|
39140
38970
|
}
|
|
39141
38971
|
($e7801be82b4b2a53$export$4debdb1a3f0fa79e)(context, props.ref);
|
|
@@ -39514,7 +39344,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
39514
39344
|
]);
|
|
39515
39345
|
return {
|
|
39516
39346
|
isPressed: isPressedProp || isPressed,
|
|
39517
|
-
pressProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, pressProps)
|
|
39347
|
+
pressProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(domProps, pressProps)
|
|
39518
39348
|
};
|
|
39519
39349
|
}
|
|
39520
39350
|
function $f6c31cce2adf654f$var$isHTMLAnchorLink(target) {
|
|
@@ -40319,7 +40149,7 @@ function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
|
40319
40149
|
});
|
|
40320
40150
|
let descriptionProps = ($ef06256079686ba0$export$f8aeda7b10753fa1)(onLongPress && !isDisabled ? accessibilityDescription : null);
|
|
40321
40151
|
return {
|
|
40322
|
-
longPressProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(pressProps, descriptionProps)
|
|
40152
|
+
longPressProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(pressProps, descriptionProps)
|
|
40323
40153
|
};
|
|
40324
40154
|
}
|
|
40325
40155
|
|
|
@@ -40787,7 +40617,7 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
|
|
|
40787
40617
|
let onFocus = ()=>{
|
|
40788
40618
|
// If focusing an element in a child scope of the currently active scope, the child becomes active.
|
|
40789
40619
|
// Moving out of the active scope to an ancestor is not allowed.
|
|
40790
|
-
if (!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) $9bf71ea28793e738$var$activeScope = scopeRef;
|
|
40620
|
+
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(document.activeElement, scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
|
|
40791
40621
|
};
|
|
40792
40622
|
document.addEventListener("focusin", onFocus, false);
|
|
40793
40623
|
scope.forEach((element)=>element.addEventListener("focusin", onFocus, false));
|
|
@@ -41044,7 +40874,7 @@ function $e6afbd83fe6ebbd2$var$useFocusableContext(ref) {
|
|
|
41044
40874
|
function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, domRef) {
|
|
41045
40875
|
let { focusProps: focusProps } = ($a1ea59d68270f0dd$export$f8168d8dd8fd66e6)(props);
|
|
41046
40876
|
let { keyboardProps: keyboardProps } = ($46d819fcbaf35654$export$8f71654801c2f7cd)(props);
|
|
41047
|
-
let interactions = ($3ef42575df84b30b$export$9d1611c77c2fe928)(focusProps, keyboardProps);
|
|
40877
|
+
let interactions = ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(focusProps, keyboardProps);
|
|
41048
40878
|
let domProps = $e6afbd83fe6ebbd2$var$useFocusableContext(domRef);
|
|
41049
40879
|
let interactionProps = props.isDisabled ? {} : domProps;
|
|
41050
40880
|
let autoFocusRef = (React.useRef)(props.autoFocus);
|
|
@@ -41055,7 +40885,7 @@ function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, domRef) {
|
|
|
41055
40885
|
domRef
|
|
41056
40886
|
]);
|
|
41057
40887
|
return {
|
|
41058
|
-
focusableProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)({
|
|
40888
|
+
focusableProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)({
|
|
41059
40889
|
...interactions,
|
|
41060
40890
|
tabIndex: props.excludeFromTabOrder && !props.isDisabled ? -1 : undefined
|
|
41061
40891
|
}, interactionProps)
|
|
@@ -41117,12 +40947,12 @@ function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
|
41117
40947
|
});
|
|
41118
40948
|
let { focusableProps: focusableProps } = ($e6afbd83fe6ebbd2$export$4c014de7c8940b4c)(props, ref);
|
|
41119
40949
|
if (allowFocusWhenDisabled) focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;
|
|
41120
|
-
let buttonProps = ($3ef42575df84b30b$export$9d1611c77c2fe928)(focusableProps, pressProps, ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props, {
|
|
40950
|
+
let buttonProps = ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(focusableProps, pressProps, ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props, {
|
|
41121
40951
|
labelable: true
|
|
41122
40952
|
}));
|
|
41123
40953
|
return {
|
|
41124
40954
|
isPressed: isPressed,
|
|
41125
|
-
buttonProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(additionalProps, buttonProps, {
|
|
40955
|
+
buttonProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(additionalProps, buttonProps, {
|
|
41126
40956
|
"aria-haspopup": props["aria-haspopup"],
|
|
41127
40957
|
"aria-expanded": props["aria-expanded"],
|
|
41128
40958
|
"aria-controls": props["aria-controls"],
|
|
@@ -41519,7 +41349,7 @@ function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
|
|
|
41519
41349
|
}).current;
|
|
41520
41350
|
let onKeyDown = (e)=>{
|
|
41521
41351
|
let character = $fb3050f43d946246$var$getStringForKey(e.key);
|
|
41522
|
-
if (!character || e.ctrlKey || e.metaKey) return;
|
|
41352
|
+
if (!character || e.ctrlKey || e.metaKey || !e.currentTarget.contains(e.target)) return;
|
|
41523
41353
|
// Do not propagate the Spacebar event if it's meant to be part of the search.
|
|
41524
41354
|
// When we time out, the search term becomes empty, hence the check on length.
|
|
41525
41355
|
// Trimming is to account for the case of pressing the Spacebar more than once,
|
|
@@ -41599,15 +41429,19 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
41599
41429
|
break;
|
|
41600
41430
|
case "ArrowLeft":
|
|
41601
41431
|
if (delegate.getKeyLeftOf) {
|
|
41432
|
+
var _delegate_getFirstKey2, _delegate_getLastKey2;
|
|
41602
41433
|
e.preventDefault();
|
|
41603
41434
|
let nextKey2 = delegate.getKeyLeftOf(manager.focusedKey);
|
|
41435
|
+
if (nextKey2 == null && shouldFocusWrap) nextKey2 = direction === "rtl" ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey);
|
|
41604
41436
|
navigateToKey(nextKey2, direction === "rtl" ? "first" : "last");
|
|
41605
41437
|
}
|
|
41606
41438
|
break;
|
|
41607
41439
|
case "ArrowRight":
|
|
41608
41440
|
if (delegate.getKeyRightOf) {
|
|
41441
|
+
var _delegate_getLastKey3, _delegate_getFirstKey3;
|
|
41609
41442
|
e.preventDefault();
|
|
41610
41443
|
let nextKey3 = delegate.getKeyRightOf(manager.focusedKey);
|
|
41444
|
+
if (nextKey3 == null && shouldFocusWrap) nextKey3 = direction === "rtl" ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey);
|
|
41611
41445
|
navigateToKey(nextKey3, direction === "rtl" ? "last" : "first");
|
|
41612
41446
|
}
|
|
41613
41447
|
break;
|
|
@@ -41783,7 +41617,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
41783
41617
|
keyboardDelegate: delegate,
|
|
41784
41618
|
selectionManager: manager
|
|
41785
41619
|
});
|
|
41786
|
-
if (!disallowTypeAhead) handlers = ($3ef42575df84b30b$export$9d1611c77c2fe928)(typeSelectProps, handlers);
|
|
41620
|
+
if (!disallowTypeAhead) handlers = ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(typeSelectProps, handlers);
|
|
41787
41621
|
// If nothing is focused within the collection, make the collection itself tabbable.
|
|
41788
41622
|
// This will be marshalled to either the first or last item depending on where focus came from.
|
|
41789
41623
|
// If using virtual focus, don't set a tabIndex at all so that VoiceOver on iOS 14 doesn't try
|
|
@@ -41952,7 +41786,7 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
41952
41786
|
if (modality.current === "touch" && longPressEnabledOnPressStart.current) e.preventDefault();
|
|
41953
41787
|
};
|
|
41954
41788
|
return {
|
|
41955
|
-
itemProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(itemProps, allowsSelection || hasPrimaryAction ? pressProps : {}, longPressEnabled ? longPressProps : {}, {
|
|
41789
|
+
itemProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(itemProps, allowsSelection || hasPrimaryAction ? pressProps : {}, longPressEnabled ? longPressProps : {}, {
|
|
41956
41790
|
onDoubleClick: onDoubleClick,
|
|
41957
41791
|
onDragStartCapture: onDragStartCapture
|
|
41958
41792
|
}),
|
|
@@ -41995,7 +41829,8 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
|
|
|
41995
41829
|
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
41996
41830
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
41997
41831
|
* governing permissions and limitations under the License.
|
|
41998
|
-
*/
|
|
41832
|
+
*/
|
|
41833
|
+
class $2a25aae57d74318e$export$a05409b8bb224a5a {
|
|
41999
41834
|
getKeyBelow(key) {
|
|
42000
41835
|
key = this.collection.getKeyAfter(key);
|
|
42001
41836
|
while(key != null){
|
|
@@ -42014,6 +41849,14 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
|
|
|
42014
41849
|
}
|
|
42015
41850
|
return null;
|
|
42016
41851
|
}
|
|
41852
|
+
getKeyRightOf(key) {
|
|
41853
|
+
if (this.orientation === "horizontal") return this.direction === "rtl" ? this.getKeyAbove(key) : this.getKeyBelow(key);
|
|
41854
|
+
return null;
|
|
41855
|
+
}
|
|
41856
|
+
getKeyLeftOf(key) {
|
|
41857
|
+
if (this.orientation === "horizontal") return this.direction === "rtl" ? this.getKeyBelow(key) : this.getKeyAbove(key);
|
|
41858
|
+
return null;
|
|
41859
|
+
}
|
|
42017
41860
|
getFirstKey() {
|
|
42018
41861
|
let key = this.collection.getFirstKey();
|
|
42019
41862
|
while(key != null){
|
|
@@ -42039,23 +41882,53 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
|
|
|
42039
41882
|
let menu = this.ref.current;
|
|
42040
41883
|
let item = this.getItem(key);
|
|
42041
41884
|
if (!item) return null;
|
|
42042
|
-
|
|
42043
|
-
|
|
42044
|
-
|
|
42045
|
-
|
|
41885
|
+
if (!($62d8ded9296f3872$export$2bb74740c4e19def)(menu)) return this.getFirstKey();
|
|
41886
|
+
let containerRect = menu.getBoundingClientRect();
|
|
41887
|
+
let itemRect = item.getBoundingClientRect();
|
|
41888
|
+
if (this.orientation === "horizontal") {
|
|
41889
|
+
let containerX = containerRect.x - menu.scrollLeft;
|
|
41890
|
+
let pageX = Math.max(0, itemRect.x - containerX + itemRect.width - containerRect.width);
|
|
41891
|
+
while(item && itemRect.x - containerX > pageX){
|
|
41892
|
+
key = this.getKeyAbove(key);
|
|
41893
|
+
item = key == null ? null : this.getItem(key);
|
|
41894
|
+
itemRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
|
|
41895
|
+
}
|
|
41896
|
+
} else {
|
|
41897
|
+
let containerY = containerRect.y - menu.scrollTop;
|
|
41898
|
+
let pageY = Math.max(0, itemRect.y - containerY + itemRect.height - containerRect.height);
|
|
41899
|
+
while(item && itemRect.y - containerY > pageY){
|
|
41900
|
+
key = this.getKeyAbove(key);
|
|
41901
|
+
item = key == null ? null : this.getItem(key);
|
|
41902
|
+
itemRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
|
|
41903
|
+
}
|
|
42046
41904
|
}
|
|
42047
|
-
return key;
|
|
41905
|
+
return key !== null && key !== void 0 ? key : this.getFirstKey();
|
|
42048
41906
|
}
|
|
42049
41907
|
getKeyPageBelow(key) {
|
|
42050
41908
|
let menu = this.ref.current;
|
|
42051
41909
|
let item = this.getItem(key);
|
|
42052
41910
|
if (!item) return null;
|
|
42053
|
-
|
|
42054
|
-
|
|
42055
|
-
|
|
42056
|
-
|
|
41911
|
+
if (!($62d8ded9296f3872$export$2bb74740c4e19def)(menu)) return this.getLastKey();
|
|
41912
|
+
let containerRect = menu.getBoundingClientRect();
|
|
41913
|
+
let itemRect = item.getBoundingClientRect();
|
|
41914
|
+
if (this.orientation === "horizontal") {
|
|
41915
|
+
let containerX = containerRect.x - menu.scrollLeft;
|
|
41916
|
+
let pageX = Math.min(menu.scrollWidth, itemRect.x - containerX - itemRect.width + containerRect.width);
|
|
41917
|
+
while(item && itemRect.x - containerX < pageX){
|
|
41918
|
+
key = this.getKeyBelow(key);
|
|
41919
|
+
item = key == null ? null : this.getItem(key);
|
|
41920
|
+
itemRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
|
|
41921
|
+
}
|
|
41922
|
+
} else {
|
|
41923
|
+
let containerY = containerRect.y - menu.scrollTop;
|
|
41924
|
+
let pageY = Math.min(menu.scrollHeight, itemRect.y - containerY - itemRect.height + containerRect.height);
|
|
41925
|
+
while(item && itemRect.y - containerY < pageY){
|
|
41926
|
+
key = this.getKeyBelow(key);
|
|
41927
|
+
item = key == null ? null : this.getItem(key);
|
|
41928
|
+
itemRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
|
|
41929
|
+
}
|
|
42057
41930
|
}
|
|
42058
|
-
return key;
|
|
41931
|
+
return key !== null && key !== void 0 ? key : this.getLastKey();
|
|
42059
41932
|
}
|
|
42060
41933
|
getKeyForSearch(search, fromKey) {
|
|
42061
41934
|
if (!this.collator) return null;
|
|
@@ -42069,11 +41942,20 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
|
|
|
42069
41942
|
}
|
|
42070
41943
|
return null;
|
|
42071
41944
|
}
|
|
42072
|
-
constructor(
|
|
42073
|
-
|
|
42074
|
-
|
|
42075
|
-
|
|
42076
|
-
|
|
41945
|
+
constructor(...args){
|
|
41946
|
+
if (args.length === 1) {
|
|
41947
|
+
let opts = args[0];
|
|
41948
|
+
this.collection = opts.collection;
|
|
41949
|
+
this.ref = opts.ref;
|
|
41950
|
+
this.disabledKeys = opts.disabledKeys || new Set();
|
|
41951
|
+
this.orientation = opts.orientation;
|
|
41952
|
+
this.direction = opts.direction;
|
|
41953
|
+
} else {
|
|
41954
|
+
this.collection = args[0];
|
|
41955
|
+
this.disabledKeys = args[1];
|
|
41956
|
+
this.ref = args[2];
|
|
41957
|
+
this.collator = args[3];
|
|
41958
|
+
}
|
|
42077
41959
|
}
|
|
42078
41960
|
}
|
|
42079
41961
|
|
|
@@ -42185,7 +42067,7 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
|
42185
42067
|
Boolean(errorMessage),
|
|
42186
42068
|
validationState
|
|
42187
42069
|
]);
|
|
42188
|
-
fieldProps = ($3ef42575df84b30b$export$9d1611c77c2fe928)(fieldProps, {
|
|
42070
|
+
fieldProps = ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(fieldProps, {
|
|
42189
42071
|
"aria-describedby": [
|
|
42190
42072
|
descriptionId,
|
|
42191
42073
|
// Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
|
|
@@ -42270,7 +42152,7 @@ function $5c3e21d68f1c4674$export$439d29a4e110a164(props) {
|
|
|
42270
42152
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
42271
42153
|
let { children: children , elementType: Element = "div" , isFocusable: isFocusable , style: style , ...otherProps } = props;
|
|
42272
42154
|
let { visuallyHiddenProps: visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props);
|
|
42273
|
-
return /*#__PURE__*/ (React).createElement(Element, ($3ef42575df84b30b$export$9d1611c77c2fe928)(otherProps, visuallyHiddenProps), children);
|
|
42155
|
+
return /*#__PURE__*/ (React).createElement(Element, ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(otherProps, visuallyHiddenProps), children);
|
|
42274
42156
|
}
|
|
42275
42157
|
|
|
42276
42158
|
function $parcel$interopDefault$1(a) {
|
|
@@ -42743,308 +42625,197 @@ new WeakMap();
|
|
|
42743
42625
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
42744
42626
|
* governing permissions and limitations under the License.
|
|
42745
42627
|
*/
|
|
42746
|
-
|
|
42747
|
-
|
|
42628
|
+
|
|
42629
|
+
class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
|
|
42630
|
+
build(props, context) {
|
|
42631
|
+
this.context = context;
|
|
42632
|
+
return $eb2240fc39a57fa5$var$iterable(()=>this.iterateCollection(props));
|
|
42633
|
+
}
|
|
42634
|
+
*iterateCollection(props) {
|
|
42635
|
+
let { children: children , items: items } = props;
|
|
42636
|
+
if (typeof children === "function") {
|
|
42637
|
+
if (!items) throw new Error("props.children was a function but props.items is missing");
|
|
42638
|
+
for (let item of props.items)yield* this.getFullNode({
|
|
42639
|
+
value: item
|
|
42640
|
+
}, {
|
|
42641
|
+
renderer: children
|
|
42642
|
+
});
|
|
42643
|
+
} else {
|
|
42644
|
+
let items1 = [];
|
|
42645
|
+
(React).Children.forEach(children, (child)=>{
|
|
42646
|
+
items1.push(child);
|
|
42647
|
+
});
|
|
42648
|
+
let index = 0;
|
|
42649
|
+
for (let item1 of items1){
|
|
42650
|
+
let nodes = this.getFullNode({
|
|
42651
|
+
element: item1,
|
|
42652
|
+
index: index
|
|
42653
|
+
}, {});
|
|
42654
|
+
for (let node of nodes){
|
|
42655
|
+
index++;
|
|
42656
|
+
yield node;
|
|
42657
|
+
}
|
|
42658
|
+
}
|
|
42659
|
+
}
|
|
42660
|
+
}
|
|
42661
|
+
getKey(item, partialNode, state, parentKey) {
|
|
42662
|
+
if (item.key != null) return item.key;
|
|
42663
|
+
if (partialNode.type === "cell" && partialNode.key != null) return `${parentKey}${partialNode.key}`;
|
|
42664
|
+
let v = partialNode.value;
|
|
42665
|
+
if (v != null) {
|
|
42666
|
+
var _v_key;
|
|
42667
|
+
let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;
|
|
42668
|
+
if (key == null) throw new Error("No key found for item");
|
|
42669
|
+
return key;
|
|
42670
|
+
}
|
|
42671
|
+
return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`;
|
|
42672
|
+
}
|
|
42673
|
+
getChildState(state, partialNode) {
|
|
42674
|
+
return {
|
|
42675
|
+
renderer: partialNode.renderer || state.renderer
|
|
42676
|
+
};
|
|
42677
|
+
}
|
|
42678
|
+
*getFullNode(partialNode, state, parentKey, parentNode) {
|
|
42679
|
+
// If there's a value instead of an element on the node, and a parent renderer function is available,
|
|
42680
|
+
// use it to render an element for the value.
|
|
42681
|
+
let element = partialNode.element;
|
|
42682
|
+
if (!element && partialNode.value && state && state.renderer) {
|
|
42683
|
+
let cached = this.cache.get(partialNode.value);
|
|
42684
|
+
if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) {
|
|
42685
|
+
cached.index = partialNode.index;
|
|
42686
|
+
cached.parentKey = parentNode ? parentNode.key : null;
|
|
42687
|
+
yield cached;
|
|
42688
|
+
return;
|
|
42689
|
+
}
|
|
42690
|
+
element = state.renderer(partialNode.value);
|
|
42691
|
+
}
|
|
42692
|
+
// If there's an element with a getCollectionNode function on its type, then it's a supported component.
|
|
42693
|
+
// Call this function to get a partial node, and recursively build a full node from there.
|
|
42694
|
+
if ((React).isValidElement(element)) {
|
|
42695
|
+
let type = element.type;
|
|
42696
|
+
if (typeof type !== "function" && typeof type.getCollectionNode !== "function") {
|
|
42697
|
+
let name = typeof element.type === "function" ? element.type.name : element.type;
|
|
42698
|
+
throw new Error(`Unknown element <${name}> in collection.`);
|
|
42699
|
+
}
|
|
42700
|
+
let childNodes = type.getCollectionNode(element.props, this.context);
|
|
42701
|
+
let index = partialNode.index;
|
|
42702
|
+
let result = childNodes.next();
|
|
42703
|
+
while(!result.done && result.value){
|
|
42704
|
+
let childNode = result.value;
|
|
42705
|
+
partialNode.index = index;
|
|
42706
|
+
let nodeKey = childNode.key;
|
|
42707
|
+
if (!nodeKey) nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey);
|
|
42708
|
+
let nodes = this.getFullNode({
|
|
42709
|
+
...childNode,
|
|
42710
|
+
key: nodeKey,
|
|
42711
|
+
index: index,
|
|
42712
|
+
wrapper: $eb2240fc39a57fa5$var$compose(partialNode.wrapper, childNode.wrapper)
|
|
42713
|
+
}, this.getChildState(state, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode);
|
|
42714
|
+
let children = [
|
|
42715
|
+
...nodes
|
|
42716
|
+
];
|
|
42717
|
+
for (let node of children){
|
|
42718
|
+
// Cache the node based on its value
|
|
42719
|
+
node.value = childNode.value || partialNode.value;
|
|
42720
|
+
if (node.value) this.cache.set(node.value, node);
|
|
42721
|
+
// The partial node may have specified a type for the child in order to specify a constraint.
|
|
42722
|
+
// Verify that the full node that was built recursively matches this type.
|
|
42723
|
+
if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize(parentNode.type)}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);
|
|
42724
|
+
index++;
|
|
42725
|
+
yield node;
|
|
42726
|
+
}
|
|
42727
|
+
result = childNodes.next(children);
|
|
42728
|
+
}
|
|
42729
|
+
return;
|
|
42730
|
+
}
|
|
42731
|
+
// Ignore invalid elements
|
|
42732
|
+
if (partialNode.key == null) return;
|
|
42733
|
+
// Create full node
|
|
42734
|
+
let builder = this;
|
|
42735
|
+
let node1 = {
|
|
42736
|
+
type: partialNode.type,
|
|
42737
|
+
props: partialNode.props,
|
|
42738
|
+
key: partialNode.key,
|
|
42739
|
+
parentKey: parentNode ? parentNode.key : null,
|
|
42740
|
+
value: partialNode.value,
|
|
42741
|
+
level: parentNode ? parentNode.level + 1 : 0,
|
|
42742
|
+
index: partialNode.index,
|
|
42743
|
+
rendered: partialNode.rendered,
|
|
42744
|
+
textValue: partialNode.textValue,
|
|
42745
|
+
"aria-label": partialNode["aria-label"],
|
|
42746
|
+
wrapper: partialNode.wrapper,
|
|
42747
|
+
shouldInvalidate: partialNode.shouldInvalidate,
|
|
42748
|
+
hasChildNodes: partialNode.hasChildNodes,
|
|
42749
|
+
childNodes: $eb2240fc39a57fa5$var$iterable(function*() {
|
|
42750
|
+
if (!partialNode.hasChildNodes) return;
|
|
42751
|
+
let index = 0;
|
|
42752
|
+
for (let child of partialNode.childNodes()){
|
|
42753
|
+
// Ensure child keys are globally unique by prepending the parent node's key
|
|
42754
|
+
if (child.key != null) // TODO: Remove this line entirely and enforce that users always provide unique keys.
|
|
42755
|
+
// Currently this line will have issues when a parent has a key `a` and a child with key `bc`
|
|
42756
|
+
// but another parent has key `ab` and its child has a key `c`. The combined keys would result in both
|
|
42757
|
+
// children having a key of `abc`.
|
|
42758
|
+
child.key = `${node1.key}${child.key}`;
|
|
42759
|
+
child.index = index;
|
|
42760
|
+
let nodes = builder.getFullNode(child, builder.getChildState(state, child), node1.key, node1);
|
|
42761
|
+
for (let node of nodes){
|
|
42762
|
+
index++;
|
|
42763
|
+
yield node;
|
|
42764
|
+
}
|
|
42765
|
+
}
|
|
42766
|
+
})
|
|
42767
|
+
};
|
|
42768
|
+
yield node1;
|
|
42769
|
+
}
|
|
42770
|
+
constructor(){
|
|
42771
|
+
(_defineProperty)(this, "cache", new WeakMap());
|
|
42772
|
+
}
|
|
42748
42773
|
}
|
|
42749
|
-
|
|
42750
|
-
|
|
42751
|
-
let
|
|
42752
|
-
let
|
|
42753
|
-
|
|
42754
|
-
|
|
42755
|
-
|
|
42756
|
-
|
|
42757
|
-
|
|
42758
|
-
|
|
42759
|
-
|
|
42760
|
-
"aria-label": props["aria-label"],
|
|
42761
|
-
hasChildNodes: $c1d7fb2ec91bae71$var$hasChildItems(props),
|
|
42762
|
-
*childNodes () {
|
|
42763
|
-
if (childItems) for (let child of childItems)yield {
|
|
42764
|
-
type: "item",
|
|
42765
|
-
value: child
|
|
42766
|
-
};
|
|
42767
|
-
else if (title) {
|
|
42768
|
-
let items = [];
|
|
42769
|
-
(React).Children.forEach(children, (child)=>{
|
|
42770
|
-
items.push({
|
|
42771
|
-
type: "item",
|
|
42772
|
-
element: child
|
|
42773
|
-
});
|
|
42774
|
-
});
|
|
42775
|
-
yield* items;
|
|
42774
|
+
// Wraps an iterator function as an iterable object, and caches the results.
|
|
42775
|
+
function $eb2240fc39a57fa5$var$iterable(iterator) {
|
|
42776
|
+
let cache = [];
|
|
42777
|
+
let iterable = null;
|
|
42778
|
+
return {
|
|
42779
|
+
*[Symbol.iterator] () {
|
|
42780
|
+
for (let item of cache)yield item;
|
|
42781
|
+
if (!iterable) iterable = iterator();
|
|
42782
|
+
for (let item1 of iterable){
|
|
42783
|
+
cache.push(item1);
|
|
42784
|
+
yield item1;
|
|
42776
42785
|
}
|
|
42777
42786
|
}
|
|
42778
42787
|
};
|
|
42779
|
-
};
|
|
42780
|
-
function $c1d7fb2ec91bae71$var$hasChildItems(props) {
|
|
42781
|
-
if (props.hasChildItems != null) return props.hasChildItems;
|
|
42782
|
-
if (props.childItems) return true;
|
|
42783
|
-
if (props.title && (React).Children.count(props.children) > 0) return true;
|
|
42784
|
-
return false;
|
|
42785
42788
|
}
|
|
42786
|
-
|
|
42787
|
-
|
|
42789
|
+
function $eb2240fc39a57fa5$var$compose(outer, inner) {
|
|
42790
|
+
if (outer && inner) return (element)=>outer(inner(element));
|
|
42791
|
+
if (outer) return outer;
|
|
42792
|
+
if (inner) return inner;
|
|
42793
|
+
}
|
|
42794
|
+
function $eb2240fc39a57fa5$var$capitalize(str) {
|
|
42795
|
+
return str[0].toUpperCase() + str.slice(1);
|
|
42796
|
+
}
|
|
42788
42797
|
|
|
42789
42798
|
|
|
42790
|
-
|
|
42791
|
-
|
|
42792
|
-
|
|
42793
|
-
|
|
42794
|
-
|
|
42795
|
-
|
|
42796
|
-
|
|
42797
|
-
|
|
42798
|
-
|
|
42799
|
-
|
|
42800
|
-
|
|
42801
|
-
|
|
42802
|
-
|
|
42803
|
-
|
|
42804
|
-
|
|
42805
|
-
|
|
42806
|
-
|
|
42807
|
-
|
|
42808
|
-
|
|
42809
|
-
|
|
42810
|
-
rendered: title,
|
|
42811
|
-
"aria-label": props["aria-label"],
|
|
42812
|
-
*childNodes () {
|
|
42813
|
-
if (typeof children === "function") {
|
|
42814
|
-
if (!items) throw new Error("props.children was a function but props.items is missing");
|
|
42815
|
-
for (let item of items)yield {
|
|
42816
|
-
type: "item",
|
|
42817
|
-
value: item,
|
|
42818
|
-
renderer: children
|
|
42819
|
-
};
|
|
42820
|
-
} else {
|
|
42821
|
-
let items1 = [];
|
|
42822
|
-
(React).Children.forEach(children, (child)=>{
|
|
42823
|
-
items1.push({
|
|
42824
|
-
type: "item",
|
|
42825
|
-
element: child
|
|
42826
|
-
});
|
|
42827
|
-
});
|
|
42828
|
-
yield* items1;
|
|
42829
|
-
}
|
|
42830
|
-
}
|
|
42831
|
-
};
|
|
42832
|
-
};
|
|
42833
|
-
// We don't want getCollectionNode to show up in the type definition
|
|
42834
|
-
let $9fc4852771d079eb$export$6e2c8f0811a474ce = $9fc4852771d079eb$var$Section;
|
|
42835
|
-
|
|
42836
|
-
|
|
42837
|
-
/*
|
|
42838
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
42839
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
42840
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
42841
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
42842
|
-
*
|
|
42843
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
42844
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
42845
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
42846
|
-
* governing permissions and limitations under the License.
|
|
42847
|
-
*/ /*
|
|
42848
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
42849
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
42850
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
42851
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
42852
|
-
*
|
|
42853
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
42854
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
42855
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
42856
|
-
* governing permissions and limitations under the License.
|
|
42857
|
-
*/
|
|
42858
|
-
|
|
42859
|
-
class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
|
|
42860
|
-
build(props, context) {
|
|
42861
|
-
this.context = context;
|
|
42862
|
-
return $eb2240fc39a57fa5$var$iterable(()=>this.iterateCollection(props));
|
|
42863
|
-
}
|
|
42864
|
-
*iterateCollection(props) {
|
|
42865
|
-
let { children: children , items: items } = props;
|
|
42866
|
-
if (typeof children === "function") {
|
|
42867
|
-
if (!items) throw new Error("props.children was a function but props.items is missing");
|
|
42868
|
-
for (let item of props.items)yield* this.getFullNode({
|
|
42869
|
-
value: item
|
|
42870
|
-
}, {
|
|
42871
|
-
renderer: children
|
|
42872
|
-
});
|
|
42873
|
-
} else {
|
|
42874
|
-
let items1 = [];
|
|
42875
|
-
(React).Children.forEach(children, (child)=>{
|
|
42876
|
-
items1.push(child);
|
|
42877
|
-
});
|
|
42878
|
-
let index = 0;
|
|
42879
|
-
for (let item1 of items1){
|
|
42880
|
-
let nodes = this.getFullNode({
|
|
42881
|
-
element: item1,
|
|
42882
|
-
index: index
|
|
42883
|
-
}, {});
|
|
42884
|
-
for (let node of nodes){
|
|
42885
|
-
index++;
|
|
42886
|
-
yield node;
|
|
42887
|
-
}
|
|
42888
|
-
}
|
|
42889
|
-
}
|
|
42890
|
-
}
|
|
42891
|
-
getKey(item, partialNode, state, parentKey) {
|
|
42892
|
-
if (item.key != null) return item.key;
|
|
42893
|
-
if (partialNode.type === "cell" && partialNode.key != null) return `${parentKey}${partialNode.key}`;
|
|
42894
|
-
let v = partialNode.value;
|
|
42895
|
-
if (v != null) {
|
|
42896
|
-
var _v_key;
|
|
42897
|
-
let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;
|
|
42898
|
-
if (key == null) throw new Error("No key found for item");
|
|
42899
|
-
return key;
|
|
42900
|
-
}
|
|
42901
|
-
return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`;
|
|
42902
|
-
}
|
|
42903
|
-
getChildState(state, partialNode) {
|
|
42904
|
-
return {
|
|
42905
|
-
renderer: partialNode.renderer || state.renderer
|
|
42906
|
-
};
|
|
42907
|
-
}
|
|
42908
|
-
*getFullNode(partialNode, state, parentKey, parentNode) {
|
|
42909
|
-
// If there's a value instead of an element on the node, and a parent renderer function is available,
|
|
42910
|
-
// use it to render an element for the value.
|
|
42911
|
-
let element = partialNode.element;
|
|
42912
|
-
if (!element && partialNode.value && state && state.renderer) {
|
|
42913
|
-
let cached = this.cache.get(partialNode.value);
|
|
42914
|
-
if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) {
|
|
42915
|
-
cached.index = partialNode.index;
|
|
42916
|
-
cached.parentKey = parentNode ? parentNode.key : null;
|
|
42917
|
-
yield cached;
|
|
42918
|
-
return;
|
|
42919
|
-
}
|
|
42920
|
-
element = state.renderer(partialNode.value);
|
|
42921
|
-
}
|
|
42922
|
-
// If there's an element with a getCollectionNode function on its type, then it's a supported component.
|
|
42923
|
-
// Call this function to get a partial node, and recursively build a full node from there.
|
|
42924
|
-
if ((React).isValidElement(element)) {
|
|
42925
|
-
let type = element.type;
|
|
42926
|
-
if (typeof type !== "function" && typeof type.getCollectionNode !== "function") {
|
|
42927
|
-
let name = typeof element.type === "function" ? element.type.name : element.type;
|
|
42928
|
-
throw new Error(`Unknown element <${name}> in collection.`);
|
|
42929
|
-
}
|
|
42930
|
-
let childNodes = type.getCollectionNode(element.props, this.context);
|
|
42931
|
-
let index = partialNode.index;
|
|
42932
|
-
let result = childNodes.next();
|
|
42933
|
-
while(!result.done && result.value){
|
|
42934
|
-
let childNode = result.value;
|
|
42935
|
-
partialNode.index = index;
|
|
42936
|
-
let nodeKey = childNode.key;
|
|
42937
|
-
if (!nodeKey) nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey);
|
|
42938
|
-
let nodes = this.getFullNode({
|
|
42939
|
-
...childNode,
|
|
42940
|
-
key: nodeKey,
|
|
42941
|
-
index: index,
|
|
42942
|
-
wrapper: $eb2240fc39a57fa5$var$compose(partialNode.wrapper, childNode.wrapper)
|
|
42943
|
-
}, this.getChildState(state, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode);
|
|
42944
|
-
let children = [
|
|
42945
|
-
...nodes
|
|
42946
|
-
];
|
|
42947
|
-
for (let node of children){
|
|
42948
|
-
// Cache the node based on its value
|
|
42949
|
-
node.value = childNode.value || partialNode.value;
|
|
42950
|
-
if (node.value) this.cache.set(node.value, node);
|
|
42951
|
-
// The partial node may have specified a type for the child in order to specify a constraint.
|
|
42952
|
-
// Verify that the full node that was built recursively matches this type.
|
|
42953
|
-
if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize(parentNode.type)}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);
|
|
42954
|
-
index++;
|
|
42955
|
-
yield node;
|
|
42956
|
-
}
|
|
42957
|
-
result = childNodes.next(children);
|
|
42958
|
-
}
|
|
42959
|
-
return;
|
|
42960
|
-
}
|
|
42961
|
-
// Ignore invalid elements
|
|
42962
|
-
if (partialNode.key == null) return;
|
|
42963
|
-
// Create full node
|
|
42964
|
-
let builder = this;
|
|
42965
|
-
let node1 = {
|
|
42966
|
-
type: partialNode.type,
|
|
42967
|
-
props: partialNode.props,
|
|
42968
|
-
key: partialNode.key,
|
|
42969
|
-
parentKey: parentNode ? parentNode.key : null,
|
|
42970
|
-
value: partialNode.value,
|
|
42971
|
-
level: parentNode ? parentNode.level + 1 : 0,
|
|
42972
|
-
index: partialNode.index,
|
|
42973
|
-
rendered: partialNode.rendered,
|
|
42974
|
-
textValue: partialNode.textValue,
|
|
42975
|
-
"aria-label": partialNode["aria-label"],
|
|
42976
|
-
wrapper: partialNode.wrapper,
|
|
42977
|
-
shouldInvalidate: partialNode.shouldInvalidate,
|
|
42978
|
-
hasChildNodes: partialNode.hasChildNodes,
|
|
42979
|
-
childNodes: $eb2240fc39a57fa5$var$iterable(function*() {
|
|
42980
|
-
if (!partialNode.hasChildNodes) return;
|
|
42981
|
-
let index = 0;
|
|
42982
|
-
for (let child of partialNode.childNodes()){
|
|
42983
|
-
// Ensure child keys are globally unique by prepending the parent node's key
|
|
42984
|
-
if (child.key != null) // TODO: Remove this line entirely and enforce that users always provide unique keys.
|
|
42985
|
-
// Currently this line will have issues when a parent has a key `a` and a child with key `bc`
|
|
42986
|
-
// but another parent has key `ab` and its child has a key `c`. The combined keys would result in both
|
|
42987
|
-
// children having a key of `abc`.
|
|
42988
|
-
child.key = `${node1.key}${child.key}`;
|
|
42989
|
-
child.index = index;
|
|
42990
|
-
let nodes = builder.getFullNode(child, builder.getChildState(state, child), node1.key, node1);
|
|
42991
|
-
for (let node of nodes){
|
|
42992
|
-
index++;
|
|
42993
|
-
yield node;
|
|
42994
|
-
}
|
|
42995
|
-
}
|
|
42996
|
-
})
|
|
42997
|
-
};
|
|
42998
|
-
yield node1;
|
|
42999
|
-
}
|
|
43000
|
-
constructor(){
|
|
43001
|
-
(_defineProperty)(this, "cache", new WeakMap());
|
|
43002
|
-
}
|
|
43003
|
-
}
|
|
43004
|
-
// Wraps an iterator function as an iterable object, and caches the results.
|
|
43005
|
-
function $eb2240fc39a57fa5$var$iterable(iterator) {
|
|
43006
|
-
let cache = [];
|
|
43007
|
-
let iterable = null;
|
|
43008
|
-
return {
|
|
43009
|
-
*[Symbol.iterator] () {
|
|
43010
|
-
for (let item of cache)yield item;
|
|
43011
|
-
if (!iterable) iterable = iterator();
|
|
43012
|
-
for (let item1 of iterable){
|
|
43013
|
-
cache.push(item1);
|
|
43014
|
-
yield item1;
|
|
43015
|
-
}
|
|
43016
|
-
}
|
|
43017
|
-
};
|
|
43018
|
-
}
|
|
43019
|
-
function $eb2240fc39a57fa5$var$compose(outer, inner) {
|
|
43020
|
-
if (outer && inner) return (element)=>outer(inner(element));
|
|
43021
|
-
if (outer) return outer;
|
|
43022
|
-
if (inner) return inner;
|
|
43023
|
-
}
|
|
43024
|
-
function $eb2240fc39a57fa5$var$capitalize(str) {
|
|
43025
|
-
return str[0].toUpperCase() + str.slice(1);
|
|
43026
|
-
}
|
|
43027
|
-
|
|
43028
|
-
|
|
43029
|
-
|
|
43030
|
-
function $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context, invalidators = []) {
|
|
43031
|
-
let builder = (React.useMemo)(()=>new ($eb2240fc39a57fa5$export$bf788dd355e3a401)(), []);
|
|
43032
|
-
let prev = (React.useRef)(null);
|
|
43033
|
-
return (React.useMemo)(()=>{
|
|
43034
|
-
if (props.collection) return props.collection;
|
|
43035
|
-
let nodes = builder.build(props, context);
|
|
43036
|
-
prev.current = factory(nodes, prev.current);
|
|
43037
|
-
return prev.current;
|
|
43038
|
-
// Don't invalidate when any prop changes, just the two we care about.
|
|
43039
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
43040
|
-
}, [
|
|
43041
|
-
builder,
|
|
43042
|
-
props.children,
|
|
43043
|
-
props.items,
|
|
43044
|
-
props.collection,
|
|
43045
|
-
context,
|
|
43046
|
-
...invalidators
|
|
43047
|
-
]);
|
|
42799
|
+
|
|
42800
|
+
function $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context) {
|
|
42801
|
+
let builder = (React.useMemo)(()=>new ($eb2240fc39a57fa5$export$bf788dd355e3a401)(), []);
|
|
42802
|
+
let { children: children , items: items , collection: collection } = props;
|
|
42803
|
+
let result = (React.useMemo)(()=>{
|
|
42804
|
+
if (collection) return collection;
|
|
42805
|
+
let nodes = builder.build({
|
|
42806
|
+
children: children,
|
|
42807
|
+
items: items
|
|
42808
|
+
}, context);
|
|
42809
|
+
return factory(nodes);
|
|
42810
|
+
}, [
|
|
42811
|
+
builder,
|
|
42812
|
+
children,
|
|
42813
|
+
items,
|
|
42814
|
+
collection,
|
|
42815
|
+
context,
|
|
42816
|
+
factory
|
|
42817
|
+
]);
|
|
42818
|
+
return result;
|
|
43048
42819
|
}
|
|
43049
42820
|
|
|
43050
42821
|
|
|
@@ -43558,7 +43329,7 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
|
|
|
43558
43329
|
let domProps = ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props, {
|
|
43559
43330
|
labelable: true
|
|
43560
43331
|
});
|
|
43561
|
-
let triggerProps = ($3ef42575df84b30b$export$9d1611c77c2fe928)(typeSelectProps, menuTriggerProps, fieldProps);
|
|
43332
|
+
let triggerProps = ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(typeSelectProps, menuTriggerProps, fieldProps);
|
|
43562
43333
|
let valueId = ($bdb11010cef70236$export$f680877a34711e37)();
|
|
43563
43334
|
return {
|
|
43564
43335
|
labelProps: {
|
|
@@ -43571,10 +43342,10 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
|
|
|
43571
43342
|
}
|
|
43572
43343
|
}
|
|
43573
43344
|
},
|
|
43574
|
-
triggerProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, {
|
|
43345
|
+
triggerProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(domProps, {
|
|
43575
43346
|
...triggerProps,
|
|
43576
43347
|
isDisabled: isDisabled,
|
|
43577
|
-
onKeyDown: ($ff5963eb1fccf552$export$e08e3b67e392101e)(triggerProps.onKeyDown, onKeyDown, props.onKeyDown),
|
|
43348
|
+
onKeyDown: ($ff5963eb1fccf552$export$e08e3b67e392101e$1)(triggerProps.onKeyDown, onKeyDown, props.onKeyDown),
|
|
43578
43349
|
onKeyUp: props.onKeyUp,
|
|
43579
43350
|
"aria-labelledby": [
|
|
43580
43351
|
triggerProps["aria-labelledby"],
|
|
@@ -44137,7 +43908,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
|
44137
43908
|
/**
|
|
44138
43909
|
* Selects all items in the collection.
|
|
44139
43910
|
*/ selectAll() {
|
|
44140
|
-
if (this.selectionMode === "multiple") this.state.setSelectedKeys("all");
|
|
43911
|
+
if (!this.isSelectAll && this.selectionMode === "multiple") this.state.setSelectedKeys("all");
|
|
44141
43912
|
}
|
|
44142
43913
|
/**
|
|
44143
43914
|
* Removes all keys from the selection.
|
|
@@ -44299,15 +44070,15 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
|
|
|
44299
44070
|
let disabledKeys = (React.useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [
|
|
44300
44071
|
props.disabledKeys
|
|
44301
44072
|
]);
|
|
44302
|
-
let factory = (nodes)=>filter ? new ($a02d57049d202695$export$d085fb9e920b5ca7)(filter(nodes)) : new ($a02d57049d202695$export$d085fb9e920b5ca7)(nodes)
|
|
44073
|
+
let factory = (React.useCallback)((nodes)=>filter ? new ($a02d57049d202695$export$d085fb9e920b5ca7)(filter(nodes)) : new ($a02d57049d202695$export$d085fb9e920b5ca7)(nodes), [
|
|
44074
|
+
filter
|
|
44075
|
+
]);
|
|
44303
44076
|
let context = (React.useMemo)(()=>({
|
|
44304
44077
|
suppressTextValueWarning: props.suppressTextValueWarning
|
|
44305
44078
|
}), [
|
|
44306
44079
|
props.suppressTextValueWarning
|
|
44307
44080
|
]);
|
|
44308
|
-
let collection = ($7613b1592d41b092$export$6cd28814d92fa9c9)(props, factory, context
|
|
44309
|
-
filter
|
|
44310
|
-
]);
|
|
44081
|
+
let collection = ($7613b1592d41b092$export$6cd28814d92fa9c9)(props, factory, context);
|
|
44311
44082
|
let selectionManager = (React.useMemo)(()=>new ($d496c0a20b6e58ec$export$6c8a5aaad13c9852)(collection, selectionState), [
|
|
44312
44083
|
collection,
|
|
44313
44084
|
selectionState
|
|
@@ -44412,7 +44183,7 @@ function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
|
|
|
44412
44183
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
44413
44184
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
44414
44185
|
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
44415
|
-
*
|
|
44186
|
+
*
|
|
44416
44187
|
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
44417
44188
|
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
44418
44189
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
@@ -44550,11 +44321,11 @@ function $c132121280ec012d$export$50eacbbf140a3141(props, state, ref) {
|
|
|
44550
44321
|
});
|
|
44551
44322
|
return {
|
|
44552
44323
|
labelProps: labelProps,
|
|
44553
|
-
listBoxProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, focusWithinProps, state.selectionManager.selectionMode === "multiple" ? {
|
|
44324
|
+
listBoxProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(domProps, focusWithinProps, state.selectionManager.selectionMode === "multiple" ? {
|
|
44554
44325
|
"aria-multiselectable": "true"
|
|
44555
44326
|
} : {}, {
|
|
44556
44327
|
role: "listbox",
|
|
44557
|
-
...($3ef42575df84b30b$export$9d1611c77c2fe928)(fieldProps, listProps)
|
|
44328
|
+
...($3ef42575df84b30b$export$9d1611c77c2fe928$1)(fieldProps, listProps)
|
|
44558
44329
|
})
|
|
44559
44330
|
};
|
|
44560
44331
|
}
|
|
@@ -44637,7 +44408,7 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
|
|
|
44637
44408
|
return {
|
|
44638
44409
|
optionProps: {
|
|
44639
44410
|
...optionProps,
|
|
44640
|
-
...($3ef42575df84b30b$export$9d1611c77c2fe928)(itemProps, hoverProps),
|
|
44411
|
+
...($3ef42575df84b30b$export$9d1611c77c2fe928$1)(itemProps, hoverProps),
|
|
44641
44412
|
id: ($b1f0cad8af73213b$export$9145995848b05025)(state, key)
|
|
44642
44413
|
},
|
|
44643
44414
|
labelProps: {
|
|
@@ -44690,14 +44461,14 @@ function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
|
|
|
44690
44461
|
};
|
|
44691
44462
|
}
|
|
44692
44463
|
|
|
44693
|
-
var styles$
|
|
44464
|
+
var styles$c = {"listBox":"ListBox-module_listBox__FQ9sQ","focus":"ListBox-module_focus__Tm-jn"};
|
|
44694
44465
|
|
|
44695
44466
|
var ListBox = function(_a) {
|
|
44696
44467
|
var children = _a.children, menuProps = _a.menuProps, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "menuProps", "classNameOverride"]);
|
|
44697
44468
|
var state = useSelectContext().state;
|
|
44698
44469
|
var ref = React.useRef(null);
|
|
44699
44470
|
var listBoxProps = $c132121280ec012d$export$50eacbbf140a3141(index.__assign(index.__assign({}, menuProps), { disallowEmptySelection: true, autoFocus: "first" }), state, ref).listBoxProps;
|
|
44700
|
-
return React.createElement("ul", index.__assign({ ref, className: index.classnames(styles$
|
|
44471
|
+
return React.createElement("ul", index.__assign({ ref, className: index.classnames(styles$c.listBox, classNameOverride) }, listBoxProps, restProps), children);
|
|
44701
44472
|
};
|
|
44702
44473
|
ListBox.displayName = "ListBox";
|
|
44703
44474
|
|
|
@@ -44714,7 +44485,7 @@ var Heading_module$1 = /*#__PURE__*/Object.freeze({
|
|
|
44714
44485
|
default: Heading_module
|
|
44715
44486
|
});
|
|
44716
44487
|
|
|
44717
|
-
var require$$2$
|
|
44488
|
+
var require$$2$5 = /*@__PURE__*/index.getAugmentedNamespace(Heading_module$1);
|
|
44718
44489
|
|
|
44719
44490
|
(function(exports) {
|
|
44720
44491
|
var __assign = index.commonjsGlobal && index.commonjsGlobal.__assign || function() {
|
|
@@ -44748,7 +44519,7 @@ var require$$2$4 = /*@__PURE__*/index.getAugmentedNamespace(Heading_module$1);
|
|
|
44748
44519
|
exports.Heading = void 0;
|
|
44749
44520
|
var react_1 = React;
|
|
44750
44521
|
var classnames_1 = __importDefault(index.classnamesExports);
|
|
44751
|
-
var Heading_module_scss_1 = __importDefault(require$$2$
|
|
44522
|
+
var Heading_module_scss_1 = __importDefault(require$$2$5);
|
|
44752
44523
|
var VARIANTS_24PX_OR_GREATER = ["display-0", "heading-1", "heading-2"];
|
|
44753
44524
|
var Heading = function(_a) {
|
|
44754
44525
|
var children = _a.children, tag = _a.tag, variant = _a.variant, _b = _a.color, color = _b === void 0 ? "dark" : _b, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "tag", "variant", "color", "classNameOverride"]);
|
|
@@ -44814,10 +44585,10 @@ var Paragraph_module$1 = /*#__PURE__*/Object.freeze({
|
|
|
44814
44585
|
default: Paragraph_module
|
|
44815
44586
|
});
|
|
44816
44587
|
|
|
44817
|
-
var require$$2$
|
|
44588
|
+
var require$$2$4 = /*@__PURE__*/index.getAugmentedNamespace(Paragraph_module$1);
|
|
44818
44589
|
|
|
44819
|
-
var __assign = index.commonjsGlobal && index.commonjsGlobal.__assign || function() {
|
|
44820
|
-
__assign = Object.assign || function(t) {
|
|
44590
|
+
var __assign$2 = index.commonjsGlobal && index.commonjsGlobal.__assign || function() {
|
|
44591
|
+
__assign$2 = Object.assign || function(t) {
|
|
44821
44592
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
44822
44593
|
s = arguments[i];
|
|
44823
44594
|
for (var p in s)
|
|
@@ -44826,9 +44597,9 @@ var __assign = index.commonjsGlobal && index.commonjsGlobal.__assign || function
|
|
|
44826
44597
|
}
|
|
44827
44598
|
return t;
|
|
44828
44599
|
};
|
|
44829
|
-
return __assign.apply(this, arguments);
|
|
44600
|
+
return __assign$2.apply(this, arguments);
|
|
44830
44601
|
};
|
|
44831
|
-
var __rest = index.commonjsGlobal && index.commonjsGlobal.__rest || function(s, e) {
|
|
44602
|
+
var __rest$2 = index.commonjsGlobal && index.commonjsGlobal.__rest || function(s, e) {
|
|
44832
44603
|
var t = {};
|
|
44833
44604
|
for (var p in s)
|
|
44834
44605
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -44840,18 +44611,18 @@ var __rest = index.commonjsGlobal && index.commonjsGlobal.__rest || function(s,
|
|
|
44840
44611
|
}
|
|
44841
44612
|
return t;
|
|
44842
44613
|
};
|
|
44843
|
-
var __importDefault = index.commonjsGlobal && index.commonjsGlobal.__importDefault || function(mod) {
|
|
44614
|
+
var __importDefault$2 = index.commonjsGlobal && index.commonjsGlobal.__importDefault || function(mod) {
|
|
44844
44615
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
44845
44616
|
};
|
|
44846
44617
|
Paragraph$1.__esModule = true;
|
|
44847
44618
|
Paragraph$1.Paragraph = void 0;
|
|
44848
|
-
var react_1 = React;
|
|
44849
|
-
var classnames_1 = __importDefault(index.classnamesExports);
|
|
44850
|
-
var Paragraph_module_scss_1 = __importDefault(require$$2$
|
|
44619
|
+
var react_1$2 = React;
|
|
44620
|
+
var classnames_1$2 = __importDefault$2(index.classnamesExports);
|
|
44621
|
+
var Paragraph_module_scss_1 = __importDefault$2(require$$2$4);
|
|
44851
44622
|
var Paragraph = function(_a) {
|
|
44852
|
-
var children = _a.children, tag = _a.tag, variant = _a.variant, _b = _a.color, color = _b === void 0 ? "dark" : _b, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "tag", "variant", "color", "classNameOverride"]);
|
|
44853
|
-
var className = (0, classnames_1["default"])(Paragraph_module_scss_1["default"].paragraph, Paragraph_module_scss_1["default"][variant], Paragraph_module_scss_1["default"][color], classNameOverride);
|
|
44854
|
-
return (0, react_1.createElement)(tag === void 0 ? "p" : tag, __assign(__assign({}, restProps), { className }), children);
|
|
44623
|
+
var children = _a.children, tag = _a.tag, variant = _a.variant, _b = _a.color, color = _b === void 0 ? "dark" : _b, classNameOverride = _a.classNameOverride, restProps = __rest$2(_a, ["children", "tag", "variant", "color", "classNameOverride"]);
|
|
44624
|
+
var className = (0, classnames_1$2["default"])(Paragraph_module_scss_1["default"].paragraph, Paragraph_module_scss_1["default"][variant], Paragraph_module_scss_1["default"][color], classNameOverride);
|
|
44625
|
+
return (0, react_1$2.createElement)(tag === void 0 ? "p" : tag, __assign$2(__assign$2({}, restProps), { className }), children);
|
|
44855
44626
|
};
|
|
44856
44627
|
Paragraph$1.Paragraph = Paragraph;
|
|
44857
44628
|
|
|
@@ -44906,6 +44677,193 @@ Paragraph$1.Paragraph = Paragraph;
|
|
|
44906
44677
|
__exportStar(Paragraph$2, exports);
|
|
44907
44678
|
})(typography);
|
|
44908
44679
|
|
|
44680
|
+
/*
|
|
44681
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
44682
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
44683
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
44684
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
44685
|
+
*
|
|
44686
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
44687
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
44688
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
44689
|
+
* governing permissions and limitations under the License.
|
|
44690
|
+
*/ /*
|
|
44691
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
44692
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
44693
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
44694
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
44695
|
+
*
|
|
44696
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
44697
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
44698
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
44699
|
+
* governing permissions and limitations under the License.
|
|
44700
|
+
*/
|
|
44701
|
+
/*
|
|
44702
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
44703
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
44704
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
44705
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
44706
|
+
*
|
|
44707
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
44708
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
44709
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
44710
|
+
* governing permissions and limitations under the License.
|
|
44711
|
+
*/
|
|
44712
|
+
typeof window !== "undefined" ? (React).useLayoutEffect : ()=>{};
|
|
44713
|
+
|
|
44714
|
+
|
|
44715
|
+
let $bdb11010cef70236$var$idsUpdaterMap = new Map();
|
|
44716
|
+
function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
|
|
44717
|
+
if (idA === idB) return idA;
|
|
44718
|
+
let setIdA = $bdb11010cef70236$var$idsUpdaterMap.get(idA);
|
|
44719
|
+
if (setIdA) {
|
|
44720
|
+
setIdA(idB);
|
|
44721
|
+
return idB;
|
|
44722
|
+
}
|
|
44723
|
+
let setIdB = $bdb11010cef70236$var$idsUpdaterMap.get(idB);
|
|
44724
|
+
if (setIdB) {
|
|
44725
|
+
setIdB(idA);
|
|
44726
|
+
return idA;
|
|
44727
|
+
}
|
|
44728
|
+
return idB;
|
|
44729
|
+
}
|
|
44730
|
+
|
|
44731
|
+
|
|
44732
|
+
/*
|
|
44733
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
44734
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
44735
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
44736
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
44737
|
+
*
|
|
44738
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
44739
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
44740
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
44741
|
+
* governing permissions and limitations under the License.
|
|
44742
|
+
*/ /**
|
|
44743
|
+
* Calls all functions in the order they were chained with the same arguments.
|
|
44744
|
+
*/ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
|
|
44745
|
+
return (...args)=>{
|
|
44746
|
+
for (let callback of callbacks)if (typeof callback === "function") callback(...args);
|
|
44747
|
+
};
|
|
44748
|
+
}
|
|
44749
|
+
|
|
44750
|
+
|
|
44751
|
+
/*
|
|
44752
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
44753
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
44754
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
44755
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
44756
|
+
*
|
|
44757
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
44758
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
44759
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
44760
|
+
* governing permissions and limitations under the License.
|
|
44761
|
+
*/
|
|
44762
|
+
|
|
44763
|
+
|
|
44764
|
+
function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
|
|
44765
|
+
// Start with a base clone of the first argument. This is a lot faster than starting
|
|
44766
|
+
// with an empty object and adding properties as we go.
|
|
44767
|
+
let result = {
|
|
44768
|
+
...args[0]
|
|
44769
|
+
};
|
|
44770
|
+
for(let i = 1; i < args.length; i++){
|
|
44771
|
+
let props = args[i];
|
|
44772
|
+
for(let key in props){
|
|
44773
|
+
let a = result[key];
|
|
44774
|
+
let b = props[key];
|
|
44775
|
+
// Chain events
|
|
44776
|
+
if (typeof a === "function" && typeof b === "function" && // This is a lot faster than a regex.
|
|
44777
|
+
key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = ($ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);
|
|
44778
|
+
else if ((key === "className" || key === "UNSAFE_className") && typeof a === "string" && typeof b === "string") result[key] = (clsx)(a, b);
|
|
44779
|
+
else if (key === "id" && a && b) result.id = ($bdb11010cef70236$export$cd8c9cb68f842629)(a, b);
|
|
44780
|
+
else result[key] = b !== undefined ? b : a;
|
|
44781
|
+
}
|
|
44782
|
+
}
|
|
44783
|
+
return result;
|
|
44784
|
+
}
|
|
44785
|
+
|
|
44786
|
+
|
|
44787
|
+
/*
|
|
44788
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
44789
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
44790
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
44791
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
44792
|
+
*
|
|
44793
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
44794
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
44795
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
44796
|
+
* governing permissions and limitations under the License.
|
|
44797
|
+
*/ new Set([
|
|
44798
|
+
"id"
|
|
44799
|
+
]);
|
|
44800
|
+
new Set([
|
|
44801
|
+
"aria-label",
|
|
44802
|
+
"aria-labelledby",
|
|
44803
|
+
"aria-describedby",
|
|
44804
|
+
"aria-details"
|
|
44805
|
+
]);
|
|
44806
|
+
|
|
44807
|
+
|
|
44808
|
+
/*
|
|
44809
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
44810
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
44811
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
44812
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
44813
|
+
*
|
|
44814
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
44815
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
44816
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
44817
|
+
* governing permissions and limitations under the License.
|
|
44818
|
+
*/ // We store a global list of elements that are currently transitioning,
|
|
44819
|
+
// mapped to a set of CSS properties that are transitioning for that element.
|
|
44820
|
+
// This is necessary rather than a simple count of transitions because of browser
|
|
44821
|
+
// bugs, e.g. Chrome sometimes fires both transitionend and transitioncancel rather
|
|
44822
|
+
// than one or the other. So we need to track what's actually transitioning so that
|
|
44823
|
+
// we can ignore these duplicate events.
|
|
44824
|
+
let $bbed8b41f857bcc0$var$transitionsByElement = new Map();
|
|
44825
|
+
// A list of callbacks to call once there are no transitioning elements.
|
|
44826
|
+
let $bbed8b41f857bcc0$var$transitionCallbacks = new Set();
|
|
44827
|
+
function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
44828
|
+
if (typeof window === "undefined") return;
|
|
44829
|
+
let onTransitionStart = (e)=>{
|
|
44830
|
+
// Add the transitioning property to the list for this element.
|
|
44831
|
+
let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
|
|
44832
|
+
if (!transitions) {
|
|
44833
|
+
transitions = new Set();
|
|
44834
|
+
$bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);
|
|
44835
|
+
// The transitioncancel event must be registered on the element itself, rather than as a global
|
|
44836
|
+
// event. This enables us to handle when the node is deleted from the document while it is transitioning.
|
|
44837
|
+
// In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.
|
|
44838
|
+
e.target.addEventListener("transitioncancel", onTransitionEnd);
|
|
44839
|
+
}
|
|
44840
|
+
transitions.add(e.propertyName);
|
|
44841
|
+
};
|
|
44842
|
+
let onTransitionEnd = (e)=>{
|
|
44843
|
+
// Remove property from list of transitioning properties.
|
|
44844
|
+
let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
|
|
44845
|
+
if (!properties) return;
|
|
44846
|
+
properties.delete(e.propertyName);
|
|
44847
|
+
// If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.
|
|
44848
|
+
if (properties.size === 0) {
|
|
44849
|
+
e.target.removeEventListener("transitioncancel", onTransitionEnd);
|
|
44850
|
+
$bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);
|
|
44851
|
+
}
|
|
44852
|
+
// If no transitioning elements, call all of the queued callbacks.
|
|
44853
|
+
if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {
|
|
44854
|
+
for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();
|
|
44855
|
+
$bbed8b41f857bcc0$var$transitionCallbacks.clear();
|
|
44856
|
+
}
|
|
44857
|
+
};
|
|
44858
|
+
document.body.addEventListener("transitionrun", onTransitionStart);
|
|
44859
|
+
document.body.addEventListener("transitionend", onTransitionEnd);
|
|
44860
|
+
}
|
|
44861
|
+
if (typeof document !== "undefined") {
|
|
44862
|
+
if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents();
|
|
44863
|
+
else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
|
|
44864
|
+
}
|
|
44865
|
+
new Map();
|
|
44866
|
+
|
|
44909
44867
|
var componentLibrary = {};
|
|
44910
44868
|
|
|
44911
44869
|
var components = {};
|
|
@@ -44914,23 +44872,23 @@ var Dropdown$1 = {};
|
|
|
44914
44872
|
|
|
44915
44873
|
var Dropdown = {};
|
|
44916
44874
|
|
|
44917
|
-
var img$
|
|
44875
|
+
var img$8 = "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";
|
|
44918
44876
|
|
|
44919
44877
|
var chevronDown_icon = /*#__PURE__*/Object.freeze({
|
|
44920
44878
|
__proto__: null,
|
|
44921
|
-
default: img$
|
|
44879
|
+
default: img$8
|
|
44922
44880
|
});
|
|
44923
44881
|
|
|
44924
|
-
var require$$2$
|
|
44882
|
+
var require$$2$3 = /*@__PURE__*/index.getAugmentedNamespace(chevronDown_icon);
|
|
44925
44883
|
|
|
44926
|
-
var img$
|
|
44884
|
+
var img$7 = "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";
|
|
44927
44885
|
|
|
44928
44886
|
var ellipsis_icon = /*#__PURE__*/Object.freeze({
|
|
44929
44887
|
__proto__: null,
|
|
44930
|
-
default: img$
|
|
44888
|
+
default: img$7
|
|
44931
44889
|
});
|
|
44932
44890
|
|
|
44933
|
-
var require$$3$
|
|
44891
|
+
var require$$3$3 = /*@__PURE__*/index.getAugmentedNamespace(ellipsis_icon);
|
|
44934
44892
|
|
|
44935
44893
|
var Icon$1 = {};
|
|
44936
44894
|
|
|
@@ -44965,7 +44923,7 @@ var Icon_module$1 = /*#__PURE__*/Object.freeze({
|
|
|
44965
44923
|
default: Icon_module
|
|
44966
44924
|
});
|
|
44967
44925
|
|
|
44968
|
-
var require$$3 = /*@__PURE__*/index.getAugmentedNamespace(Icon_module$1);
|
|
44926
|
+
var require$$3$2 = /*@__PURE__*/index.getAugmentedNamespace(Icon_module$1);
|
|
44969
44927
|
|
|
44970
44928
|
(function(exports) {
|
|
44971
44929
|
var __assign = index.commonjsGlobal && index.commonjsGlobal.__assign || function() {
|
|
@@ -45000,7 +44958,7 @@ var require$$3 = /*@__PURE__*/index.getAugmentedNamespace(Icon_module$1);
|
|
|
45000
44958
|
var react_1 = __importDefault(React);
|
|
45001
44959
|
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45002
44960
|
var console_1 = console$1;
|
|
45003
|
-
var Icon_module_scss_1 = __importDefault(require$$3);
|
|
44961
|
+
var Icon_module_scss_1 = __importDefault(require$$3$2);
|
|
45004
44962
|
var Icon = function(_a) {
|
|
45005
44963
|
var _b;
|
|
45006
44964
|
var icon = _a.icon, _c = _a.inheritSize, inheritSize = _c === void 0 ? false : _c, _d = _a.role, role = _d === void 0 ? "img" : _d, _e = _a.title, title = _e === void 0 ? "" : _e, _f = _a.desc, desc = _f === void 0 ? "" : _f, classNameOverride = _a.classNameOverride, props = __rest(_a, ["icon", "inheritSize", "role", "title", "desc", "classNameOverride"]);
|
|
@@ -45073,7 +45031,7 @@ var Dropdown_module$1 = /*#__PURE__*/Object.freeze({
|
|
|
45073
45031
|
default: Dropdown_module
|
|
45074
45032
|
});
|
|
45075
45033
|
|
|
45076
|
-
var require$$6 = /*@__PURE__*/index.getAugmentedNamespace(Dropdown_module$1);
|
|
45034
|
+
var require$$6$1 = /*@__PURE__*/index.getAugmentedNamespace(Dropdown_module$1);
|
|
45077
45035
|
|
|
45078
45036
|
(function(exports) {
|
|
45079
45037
|
var __extends = index.commonjsGlobal && index.commonjsGlobal.__extends || function() {
|
|
@@ -45102,7 +45060,7 @@ var require$$6 = /*@__PURE__*/index.getAugmentedNamespace(Dropdown_module$1);
|
|
|
45102
45060
|
};
|
|
45103
45061
|
exports.__esModule = true;
|
|
45104
45062
|
var react_1 = __importDefault(React);
|
|
45105
|
-
var Dropdown_module_scss_1 = __importDefault(require$$6);
|
|
45063
|
+
var Dropdown_module_scss_1 = __importDefault(require$$6$1);
|
|
45106
45064
|
var DropdownMenu = (
|
|
45107
45065
|
/** @class */
|
|
45108
45066
|
function(_super) {
|
|
@@ -45190,11 +45148,11 @@ var require$$6 = /*@__PURE__*/index.getAugmentedNamespace(Dropdown_module$1);
|
|
|
45190
45148
|
exports.__esModule = true;
|
|
45191
45149
|
var react_1 = __importDefault(React);
|
|
45192
45150
|
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45193
|
-
var chevron_down_icon_svg_1 = __importDefault(require$$2$
|
|
45194
|
-
var ellipsis_icon_svg_1 = __importDefault(require$$3$
|
|
45151
|
+
var chevron_down_icon_svg_1 = __importDefault(require$$2$3);
|
|
45152
|
+
var ellipsis_icon_svg_1 = __importDefault(require$$3$3);
|
|
45195
45153
|
var Icon_1 = Icon$1;
|
|
45196
45154
|
var DropdownMenu_1 = __importDefault(DropdownMenu);
|
|
45197
|
-
var Dropdown_module_scss_1 = __importDefault(require$$6);
|
|
45155
|
+
var Dropdown_module_scss_1 = __importDefault(require$$6$1);
|
|
45198
45156
|
var Dropdown = (
|
|
45199
45157
|
/** @class */
|
|
45200
45158
|
function(_super) {
|
|
@@ -45631,7 +45589,7 @@ var Text_module$1 = /*#__PURE__*/Object.freeze({
|
|
|
45631
45589
|
default: Text_module
|
|
45632
45590
|
});
|
|
45633
45591
|
|
|
45634
|
-
var require$$2$
|
|
45592
|
+
var require$$2$2 = /*@__PURE__*/index.getAugmentedNamespace(Text_module$1);
|
|
45635
45593
|
|
|
45636
45594
|
(function(exports) {
|
|
45637
45595
|
var __importDefault = index.commonjsGlobal && index.commonjsGlobal.__importDefault || function(mod) {
|
|
@@ -45640,7 +45598,7 @@ var require$$2$1 = /*@__PURE__*/index.getAugmentedNamespace(Text_module$1);
|
|
|
45640
45598
|
exports.__esModule = true;
|
|
45641
45599
|
var react_1 = __importDefault(React);
|
|
45642
45600
|
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45643
|
-
var Text_module_scss_1 = __importDefault(require$$2$
|
|
45601
|
+
var Text_module_scss_1 = __importDefault(require$$2$2);
|
|
45644
45602
|
var Text = function(_a) {
|
|
45645
45603
|
var tag = _a.tag, children = _a.children, _b = _a.inheritBaseline, inheritBaseline = _b === void 0 ? false : _b, _c = _a.inline, inline = _c === void 0 ? false : _c, _d = _a.style, style = _d === void 0 ? "default-style" : _d;
|
|
45646
45604
|
return react_1["default"].createElement(tag, {
|
|
@@ -46080,10 +46038,10 @@ var Box = {};
|
|
|
46080
46038
|
__exportStar(components, exports);
|
|
46081
46039
|
})(componentLibrary);
|
|
46082
46040
|
|
|
46083
|
-
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";
|
|
46084
|
-
var check = img;
|
|
46041
|
+
var img$6 = "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";
|
|
46042
|
+
var check = img$6;
|
|
46085
46043
|
|
|
46086
|
-
var styles$
|
|
46044
|
+
var styles$b = {"icon":"Option-module_icon__0ECp6","option":"Option-module_option__U-MsL","isFocusVisible":"Option-module_isFocusVisible__yYC7y","disabled":"Option-module_disabled__RV081","isSelected":"Option-module_isSelected__L3nhB"};
|
|
46087
46045
|
|
|
46088
46046
|
var Option = function(_a) {
|
|
46089
46047
|
var item = _a.item, classNameOverride = _a.classNameOverride, props = index.__rest(_a, ["item", "classNameOverride"]);
|
|
@@ -46093,14 +46051,14 @@ var Option = function(_a) {
|
|
|
46093
46051
|
var _c = $f7dceffc5ad7768b$export$4e328f61c538687f(), isFocusVisible = _c.isFocusVisible, focusProps = _c.focusProps;
|
|
46094
46052
|
return React.createElement(
|
|
46095
46053
|
"li",
|
|
46096
|
-
index.__assign({}, $3ef42575df84b30b$export$9d1611c77c2fe928(optionProps, focusProps, props), { ref, className: index.classnames(styles$
|
|
46054
|
+
index.__assign({}, $3ef42575df84b30b$export$9d1611c77c2fe928(optionProps, focusProps, props), { ref, className: index.classnames(styles$b.option, isSelected && styles$b.isSelected, isFocusVisible && styles$b.isFocusVisible, isDisabled && styles$b.disabled, classNameOverride), "aria-label": item.textValue }),
|
|
46097
46055
|
item.rendered,
|
|
46098
|
-
React.createElement("span", { className: index.classnames(styles$
|
|
46056
|
+
React.createElement("span", { className: index.classnames(styles$b.icon, isSelected && styles$b.isSelected) }, isSelected && React.createElement(componentLibrary.Icon, { icon: check, role: "presentation" }))
|
|
46099
46057
|
);
|
|
46100
46058
|
};
|
|
46101
46059
|
Option.displayName = "Option";
|
|
46102
46060
|
|
|
46103
|
-
var styles$
|
|
46061
|
+
var styles$a = {"sectionWrapper":"ListBoxSection-module_sectionWrapper__NYQwa","sectionHeading":"ListBoxSection-module_sectionHeading__KiOi1","sectionList":"ListBoxSection-module_sectionList__xiPZY"};
|
|
46104
46062
|
|
|
46105
46063
|
var ListBoxSection = function(_a) {
|
|
46106
46064
|
var section = _a.section;
|
|
@@ -46113,9 +46071,9 @@ var ListBoxSection = function(_a) {
|
|
|
46113
46071
|
null,
|
|
46114
46072
|
React.createElement(
|
|
46115
46073
|
"li",
|
|
46116
|
-
index.__assign({}, itemProps, { className: styles$
|
|
46117
|
-
section.rendered && React.createElement(typography.Heading, index.__assign({ tag: "span", variant: "heading-6" }, headingProps, { classNameOverride: styles$
|
|
46118
|
-
React.createElement("ul", index.__assign({}, groupProps, { className: styles$
|
|
46074
|
+
index.__assign({}, itemProps, { className: styles$a.sectionWrapper }),
|
|
46075
|
+
section.rendered && React.createElement(typography.Heading, index.__assign({ tag: "span", variant: "heading-6" }, headingProps, { classNameOverride: styles$a.sectionHeading }), section.rendered),
|
|
46076
|
+
React.createElement("ul", index.__assign({}, groupProps, { className: styles$a.sectionList }), Array.from(section.childNodes).map(function(item) {
|
|
46119
46077
|
return React.createElement(Option, { key: item.key, item });
|
|
46120
46078
|
}))
|
|
46121
46079
|
)
|
|
@@ -46167,7 +46125,7 @@ var Divider_module$1 = /*#__PURE__*/Object.freeze({
|
|
|
46167
46125
|
default: Divider_module
|
|
46168
46126
|
});
|
|
46169
46127
|
|
|
46170
|
-
var require$$2 = /*@__PURE__*/index.getAugmentedNamespace(Divider_module$1);
|
|
46128
|
+
var require$$2$1 = /*@__PURE__*/index.getAugmentedNamespace(Divider_module$1);
|
|
46171
46129
|
|
|
46172
46130
|
(function(exports) {
|
|
46173
46131
|
var __assign = index.commonjsGlobal && index.commonjsGlobal.__assign || function() {
|
|
@@ -46201,7 +46159,7 @@ var require$$2 = /*@__PURE__*/index.getAugmentedNamespace(Divider_module$1);
|
|
|
46201
46159
|
exports.Divider = void 0;
|
|
46202
46160
|
var react_1 = __importDefault(React);
|
|
46203
46161
|
var classnames_1 = __importDefault(index.classnamesExports);
|
|
46204
|
-
var Divider_module_scss_1 = __importDefault(require$$2);
|
|
46162
|
+
var Divider_module_scss_1 = __importDefault(require$$2$1);
|
|
46205
46163
|
var Divider = function(_a) {
|
|
46206
46164
|
var variant = _a.variant, _b = _a.isReversed, isReversed = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, props = __rest(_a, ["variant", "isReversed", "classNameOverride"]);
|
|
46207
46165
|
return react_1["default"].createElement("hr", __assign({ "aria-hidden": "true", className: (0, classnames_1["default"])(Divider_module_scss_1["default"].wrapper, classNameOverride, isReversed && Divider_module_scss_1["default"].reversed, Divider_module_scss_1["default"][variant]) }, props));
|
|
@@ -46235,10 +46193,10 @@ var require$$2 = /*@__PURE__*/index.getAugmentedNamespace(Divider_module$1);
|
|
|
46235
46193
|
__exportStar(Divider, exports);
|
|
46236
46194
|
})(divider);
|
|
46237
46195
|
|
|
46238
|
-
var styles$
|
|
46196
|
+
var styles$9 = {"divider":"SectionDivider-module_divider__-idrC"};
|
|
46239
46197
|
|
|
46240
46198
|
var SectionDivider = function() {
|
|
46241
|
-
return React.createElement(divider.Divider, { classNameOverride: styles$
|
|
46199
|
+
return React.createElement(divider.Divider, { classNameOverride: styles$9.divider, variant: "canvas" });
|
|
46242
46200
|
};
|
|
46243
46201
|
SectionDivider.displayName = "SectionDivider";
|
|
46244
46202
|
|
|
@@ -46246,13 +46204,127 @@ var isSelectOptionGroup = function(item) {
|
|
|
46246
46204
|
return item.hasOwnProperty("options") && Array.isArray(item.options);
|
|
46247
46205
|
};
|
|
46248
46206
|
|
|
46207
|
+
/*
|
|
46208
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
46209
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
46210
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
46211
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
46212
|
+
*
|
|
46213
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
46214
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
46215
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
46216
|
+
* governing permissions and limitations under the License.
|
|
46217
|
+
*/ /*
|
|
46218
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
46219
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
46220
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
46221
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
46222
|
+
*
|
|
46223
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
46224
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
46225
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
46226
|
+
* governing permissions and limitations under the License.
|
|
46227
|
+
*/
|
|
46228
|
+
function $c1d7fb2ec91bae71$var$Item(props) {
|
|
46229
|
+
return null;
|
|
46230
|
+
}
|
|
46231
|
+
$c1d7fb2ec91bae71$var$Item.getCollectionNode = function* getCollectionNode(props, context) {
|
|
46232
|
+
let { childItems: childItems , title: title , children: children } = props;
|
|
46233
|
+
let rendered = props.title || props.children;
|
|
46234
|
+
let textValue = props.textValue || (typeof rendered === "string" ? rendered : "") || props["aria-label"] || "";
|
|
46235
|
+
// suppressTextValueWarning is used in components like Tabs, which don't have type to select support.
|
|
46236
|
+
if (!textValue && !(context === null || context === void 0 ? void 0 : context.suppressTextValueWarning)) console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.");
|
|
46237
|
+
yield {
|
|
46238
|
+
type: "item",
|
|
46239
|
+
props: props,
|
|
46240
|
+
rendered: rendered,
|
|
46241
|
+
textValue: textValue,
|
|
46242
|
+
"aria-label": props["aria-label"],
|
|
46243
|
+
hasChildNodes: $c1d7fb2ec91bae71$var$hasChildItems(props),
|
|
46244
|
+
*childNodes () {
|
|
46245
|
+
if (childItems) for (let child of childItems)yield {
|
|
46246
|
+
type: "item",
|
|
46247
|
+
value: child
|
|
46248
|
+
};
|
|
46249
|
+
else if (title) {
|
|
46250
|
+
let items = [];
|
|
46251
|
+
(React).Children.forEach(children, (child)=>{
|
|
46252
|
+
items.push({
|
|
46253
|
+
type: "item",
|
|
46254
|
+
element: child
|
|
46255
|
+
});
|
|
46256
|
+
});
|
|
46257
|
+
yield* items;
|
|
46258
|
+
}
|
|
46259
|
+
}
|
|
46260
|
+
};
|
|
46261
|
+
};
|
|
46262
|
+
function $c1d7fb2ec91bae71$var$hasChildItems(props) {
|
|
46263
|
+
if (props.hasChildItems != null) return props.hasChildItems;
|
|
46264
|
+
if (props.childItems) return true;
|
|
46265
|
+
if (props.title && (React).Children.count(props.children) > 0) return true;
|
|
46266
|
+
return false;
|
|
46267
|
+
}
|
|
46268
|
+
// We don't want getCollectionNode to show up in the type definition
|
|
46269
|
+
let $c1d7fb2ec91bae71$export$6d08773d2e66f8f2 = $c1d7fb2ec91bae71$var$Item;
|
|
46270
|
+
|
|
46271
|
+
|
|
46272
|
+
/*
|
|
46273
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
46274
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
46275
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
46276
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
46277
|
+
*
|
|
46278
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
46279
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
46280
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
46281
|
+
* governing permissions and limitations under the License.
|
|
46282
|
+
*/
|
|
46283
|
+
function $9fc4852771d079eb$var$Section(props) {
|
|
46284
|
+
return null;
|
|
46285
|
+
}
|
|
46286
|
+
$9fc4852771d079eb$var$Section.getCollectionNode = function* getCollectionNode(props) {
|
|
46287
|
+
let { children: children , title: title , items: items } = props;
|
|
46288
|
+
yield {
|
|
46289
|
+
type: "section",
|
|
46290
|
+
props: props,
|
|
46291
|
+
hasChildNodes: true,
|
|
46292
|
+
rendered: title,
|
|
46293
|
+
"aria-label": props["aria-label"],
|
|
46294
|
+
*childNodes () {
|
|
46295
|
+
if (typeof children === "function") {
|
|
46296
|
+
if (!items) throw new Error("props.children was a function but props.items is missing");
|
|
46297
|
+
for (let item of items)yield {
|
|
46298
|
+
type: "item",
|
|
46299
|
+
value: item,
|
|
46300
|
+
renderer: children
|
|
46301
|
+
};
|
|
46302
|
+
} else {
|
|
46303
|
+
let items1 = [];
|
|
46304
|
+
(React).Children.forEach(children, (child)=>{
|
|
46305
|
+
items1.push({
|
|
46306
|
+
type: "item",
|
|
46307
|
+
element: child
|
|
46308
|
+
});
|
|
46309
|
+
});
|
|
46310
|
+
yield* items1;
|
|
46311
|
+
}
|
|
46312
|
+
}
|
|
46313
|
+
};
|
|
46314
|
+
};
|
|
46315
|
+
// We don't want getCollectionNode to show up in the type definition
|
|
46316
|
+
let $9fc4852771d079eb$export$6e2c8f0811a474ce = $9fc4852771d079eb$var$Section;
|
|
46317
|
+
|
|
46318
|
+
|
|
46319
|
+
new WeakMap();
|
|
46320
|
+
|
|
46249
46321
|
var transformSelectItemToCollectionElement = function(item) {
|
|
46250
46322
|
return isSelectOptionGroup(item) ? React.createElement($9fc4852771d079eb$export$6e2c8f0811a474ce, { key: item.label, title: item.label, items: item.options }, function(child) {
|
|
46251
46323
|
return React.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: child.value }, child.label);
|
|
46252
46324
|
}) : React.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: item.value }, item.label);
|
|
46253
46325
|
};
|
|
46254
46326
|
|
|
46255
|
-
var styles = {"filterContents":"FilterSelect-module_filterContents__2LknZ"};
|
|
46327
|
+
var styles$8 = {"filterContents":"FilterSelect-module_filterContents__2LknZ"};
|
|
46256
46328
|
|
|
46257
46329
|
var FilterSelect = function(_a) {
|
|
46258
46330
|
var isOpen = _a.isOpen, setIsOpen = _a.setIsOpen, renderTrigger = _a.renderTrigger, label = _a.label, children = _a.children, items = _a.items, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["isOpen", "setIsOpen", "renderTrigger", "label", "children", "items", "classNameOverride"]);
|
|
@@ -46285,7 +46357,7 @@ var FilterSelect = function(_a) {
|
|
|
46285
46357
|
}, onMount: setTriggerRef, classNameOverride },
|
|
46286
46358
|
React.createElement(
|
|
46287
46359
|
FilterContents,
|
|
46288
|
-
{ classNameOverride: styles.filterContents },
|
|
46360
|
+
{ classNameOverride: styles$8.filterContents },
|
|
46289
46361
|
React.createElement(
|
|
46290
46362
|
SelectProvider,
|
|
46291
46363
|
{ state },
|
|
@@ -46727,6 +46799,1325 @@ var KaizenProvider = function(_a) {
|
|
|
46727
46799
|
};
|
|
46728
46800
|
KaizenProvider.displayName = "KaizenProvider";
|
|
46729
46801
|
|
|
46802
|
+
var styles$7 = {"footerRoot":"FooterRoot-module_footerRoot__bvMSa"};
|
|
46803
|
+
|
|
46804
|
+
var FooterRoot = function(_a) {
|
|
46805
|
+
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
46806
|
+
return React.createElement("footer", index.__assign({ className: index.classnames(styles$7.footerRoot, classNameOverride) }, restProps), children);
|
|
46807
|
+
};
|
|
46808
|
+
FooterRoot.displayName = "Workflow.FooterRoot";
|
|
46809
|
+
|
|
46810
|
+
var IndicatorActiveIcon = function(props) {
|
|
46811
|
+
return React.createElement(
|
|
46812
|
+
SVG,
|
|
46813
|
+
index.__assign({}, props),
|
|
46814
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 2C5.584 2 2 5.584 2 10C2 14.416 5.584 18 10 18C14.416 18 18 14.416 18 10C18 5.584 14.416 2 10 2ZM10 16.4C6.464 16.4 3.6 13.536 3.6 10C3.6 6.464 6.464 3.6 10 3.6C13.536 3.6 16.4 6.464 16.4 10C16.4 13.536 13.536 16.4 10 16.4ZM10 13.5C11.933 13.5 13.5 11.933 13.5 10C13.5 8.067 11.933 6.5 10 6.5C8.067 6.5 6.5 8.067 6.5 10C6.5 11.933 8.067 13.5 10 13.5Z", fill: "currentColor" })
|
|
46815
|
+
);
|
|
46816
|
+
};
|
|
46817
|
+
|
|
46818
|
+
var IndicatorInactiveIcon = function(props) {
|
|
46819
|
+
return React.createElement(
|
|
46820
|
+
SVG,
|
|
46821
|
+
index.__assign({}, props),
|
|
46822
|
+
React.createElement("path", { d: "M2 10c0-4.416 3.584-8 8-8s8 3.584 8 8-3.584 8-8 8-8-3.584-8-8Zm8 6.4c3.536 0 6.4-2.864 6.4-6.4 0-3.536-2.864-6.4-6.4-6.4A6.398 6.398 0 0 0 3.6 10c0 3.536 2.864 6.4 6.4 6.4Z", fill: "currentColor" })
|
|
46823
|
+
);
|
|
46824
|
+
};
|
|
46825
|
+
|
|
46826
|
+
var SuccessIcon = function(props) {
|
|
46827
|
+
return React.createElement(
|
|
46828
|
+
SVG,
|
|
46829
|
+
index.__assign({}, props),
|
|
46830
|
+
React.createElement("path", { fill: "currentColor", id: "a", d: "M10 2c4.416 0 8 3.584 8 8s-3.584 8-8 8-8-3.584-8-8 3.584-8 8-8ZM8.4 14l7.2-7.2-1.128-1.136L8.4 11.736 5.528 8.872 4.4 10l4 4Z" })
|
|
46831
|
+
);
|
|
46832
|
+
};
|
|
46833
|
+
|
|
46834
|
+
var styles$6 = {"stepsContainer":"ProgressStepper-module_stepsContainer__kh4S2","stepList":"ProgressStepper-module_stepList__ToKVO","step":"ProgressStepper-module_step__5Zakx","stepContent":"ProgressStepper-module_stepContent__brp8m","stepIndicator":"ProgressStepper-module_stepIndicator__vAWW6","stepName":"ProgressStepper-module_stepName__21rPP","stepIcon":"ProgressStepper-module_stepIcon__eW-Ps","stepDivider":"ProgressStepper-module_stepDivider__SaO4y","stepperDescription":"ProgressStepper-module_stepperDescription__XT8Ra"};
|
|
46835
|
+
|
|
46836
|
+
var getStepStatus = function(isComplete, isCurrentStep, step, index) {
|
|
46837
|
+
if (isComplete) {
|
|
46838
|
+
return {
|
|
46839
|
+
icon: React.createElement(SuccessIcon, { key: index, inheritSize: true, role: "presentation", classNameOverride: "success" }),
|
|
46840
|
+
accessibleName: "Completed: ".concat(step)
|
|
46841
|
+
};
|
|
46842
|
+
}
|
|
46843
|
+
if (isCurrentStep) {
|
|
46844
|
+
return {
|
|
46845
|
+
icon: React.createElement(IndicatorActiveIcon, { key: index, inheritSize: true, role: "presentation", classNameOverride: "active" }),
|
|
46846
|
+
accessibleName: "Current: ".concat(step)
|
|
46847
|
+
};
|
|
46848
|
+
}
|
|
46849
|
+
return {
|
|
46850
|
+
icon: React.createElement(IndicatorInactiveIcon, { key: index, inheritSize: true, classNameOverride: "incomplete", role: "presentation" }),
|
|
46851
|
+
accessibleName: "Not started: ".concat(step)
|
|
46852
|
+
};
|
|
46853
|
+
};
|
|
46854
|
+
var ProgressStepper = function(_a) {
|
|
46855
|
+
var stepName = _a.stepName, steps = _a.steps, _b = _a.isComplete, isComplete = _b === void 0 ? false : _b, restprops = index.__rest(_a, ["stepName", "steps", "isComplete"]);
|
|
46856
|
+
var currentStepIndex = steps.indexOf(stepName);
|
|
46857
|
+
return React.createElement(
|
|
46858
|
+
"div",
|
|
46859
|
+
{ className: styles$6.stepsContainer },
|
|
46860
|
+
React.createElement("ol", index.__assign({ className: styles$6.stepList }, restprops, { "aria-labelledby": "stepper-description" }), steps.map(function(step, index$1) {
|
|
46861
|
+
var isCurrentStep = currentStepIndex === index$1;
|
|
46862
|
+
var isCompletedStep = index$1 < currentStepIndex || isComplete;
|
|
46863
|
+
var _a2 = getStepStatus(isCompletedStep, isCurrentStep, step, index$1), accessibleName = _a2.accessibleName, Icon = _a2.icon;
|
|
46864
|
+
return React.createElement(
|
|
46865
|
+
"li",
|
|
46866
|
+
{ className: styles$6.step, key: "".concat(index$1, "-").concat(step), "aria-current": isCurrentStep },
|
|
46867
|
+
React.createElement(
|
|
46868
|
+
"div",
|
|
46869
|
+
{ className: styles$6.stepContent },
|
|
46870
|
+
React.createElement("span", { className: "sr-only" }, accessibleName),
|
|
46871
|
+
React.createElement(typography.Paragraph, { classNameOverride: styles$6.stepName, variant: "small", color: "white", "aria-hidden": true }, step),
|
|
46872
|
+
React.createElement(
|
|
46873
|
+
"div",
|
|
46874
|
+
{ className: styles$6.stepIndicator },
|
|
46875
|
+
React.createElement("span", { className: styles$6.stepIcon }, Icon)
|
|
46876
|
+
),
|
|
46877
|
+
index$1 < steps.length - 1 && React.createElement("div", { className: index.classnames([
|
|
46878
|
+
styles$6.stepDivider,
|
|
46879
|
+
isCompletedStep && styles$6.completedStep
|
|
46880
|
+
]) })
|
|
46881
|
+
)
|
|
46882
|
+
);
|
|
46883
|
+
})),
|
|
46884
|
+
React.createElement(
|
|
46885
|
+
typography.Paragraph,
|
|
46886
|
+
{ classNameOverride: styles$6.stepperDescription, variant: "small", color: "white", id: "stepper-description" },
|
|
46887
|
+
"Step ",
|
|
46888
|
+
currentStepIndex + 1,
|
|
46889
|
+
" of ",
|
|
46890
|
+
steps.length
|
|
46891
|
+
)
|
|
46892
|
+
);
|
|
46893
|
+
};
|
|
46894
|
+
ProgressStepper.displayName = "Workflow.ProgressStepper";
|
|
46895
|
+
|
|
46896
|
+
var styles$5 = {"footerAction":"FooterActions-module_footerAction__H-bdq","footerActionPrevious":"FooterActions-module_footerActionPrevious__yyzsX","footerActionNext":"FooterActions-module_footerActionNext__GIowc"};
|
|
46897
|
+
|
|
46898
|
+
var FooterAction = function(_a) {
|
|
46899
|
+
var _b = _a.actionType, actionType = _b === void 0 ? "Previous" : _b, action = _a.action, restProps = index.__rest(_a, ["actionType", "action"]);
|
|
46900
|
+
return React.createElement("div", index.__assign({ className: index.classnames([
|
|
46901
|
+
styles$5.footerAction,
|
|
46902
|
+
styles$5["footerAction".concat(actionType)]
|
|
46903
|
+
]) }, restProps), action);
|
|
46904
|
+
};
|
|
46905
|
+
FooterAction.displayName = "Workflow.FooterActions";
|
|
46906
|
+
|
|
46907
|
+
var Footer = function(_a) {
|
|
46908
|
+
var steps = _a.steps, stepName = _a.stepName, isComplete = _a.isComplete, previousAction = _a.previousAction, nextAction = _a.nextAction, restProps = index.__rest(_a, ["steps", "stepName", "isComplete", "previousAction", "nextAction"]);
|
|
46909
|
+
return React.createElement(
|
|
46910
|
+
FooterRoot,
|
|
46911
|
+
index.__assign({}, restProps),
|
|
46912
|
+
React.createElement(FooterAction, { action: previousAction, actionType: "Previous" }),
|
|
46913
|
+
React.createElement(ProgressStepper, { steps, stepName, isComplete }),
|
|
46914
|
+
React.createElement(FooterAction, { action: nextAction, actionType: "Next" })
|
|
46915
|
+
);
|
|
46916
|
+
};
|
|
46917
|
+
Footer.displayName = "Workflow.Footer";
|
|
46918
|
+
|
|
46919
|
+
var tag = {};
|
|
46920
|
+
|
|
46921
|
+
var Tag$1 = {};
|
|
46922
|
+
|
|
46923
|
+
var Tag = {};
|
|
46924
|
+
|
|
46925
|
+
var img$5 = "data:image/svg+xml,%3csvg width='20' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8.67 2.822 2.16 15.849A1.486 1.486 0 0 0 3.488 18h13.024a1.486 1.486 0 0 0 1.33-2.151L11.328 2.822c-.548-1.096-2.11-1.096-2.658 0Z' fill='black'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.8 15H9.2v-1.6h1.6V15Zm0-3.2H9.2V7h1.6v4.8Z' fill='white'/%3e%3c/svg%3e";
|
|
46926
|
+
|
|
46927
|
+
var cautionWhite_icon = /*#__PURE__*/Object.freeze({
|
|
46928
|
+
__proto__: null,
|
|
46929
|
+
default: img$5
|
|
46930
|
+
});
|
|
46931
|
+
|
|
46932
|
+
var require$$3$1 = /*@__PURE__*/index.getAugmentedNamespace(cautionWhite_icon);
|
|
46933
|
+
|
|
46934
|
+
var img$4 = "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 47.1 (45422) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3eclear%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c2 C5.576%2c2 2%2c5.576 2%2c10 C2%2c14.424 5.576%2c18 10%2c18 C14.424%2c18 18%2c14.424 18%2c10 C18%2c5.576 14.424%2c2 10%2c2 L10%2c2 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='clear'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Icons/Actions/clear' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3cpolygon id='Path' fill='white' points='14 12.872 12.872 14 10 11.128 7.128 14 6 12.872 8.872 10 6 7.128 7.128 6 10 8.872 12.872 6 14 7.128 11.128 10'%3e%3c/polygon%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
46935
|
+
|
|
46936
|
+
var clearWhite_icon = /*#__PURE__*/Object.freeze({
|
|
46937
|
+
__proto__: null,
|
|
46938
|
+
default: img$4
|
|
46939
|
+
});
|
|
46940
|
+
|
|
46941
|
+
var require$$4$1 = /*@__PURE__*/index.getAugmentedNamespace(clearWhite_icon);
|
|
46942
|
+
|
|
46943
|
+
var img$3 = "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 48.2 (47327) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3e2. Atoms/Icons/Informational/warning%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c18 C14.418278%2c18 18%2c14.418278 18%2c10 C18%2c5.581722 14.418278%2c2 10%2c2 C5.581722%2c2 2%2c5.581722 2%2c10 C2%2c14.418278 5.581722%2c18 10%2c18 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='2.-Atoms/Icons/Informational/warning'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Oval' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3cpolygon id='Path' fill='white' points='10.8 14 9.2 14 9.2 12.4 10.8 12.4'%3e%3c/polygon%3e %3cpolygon id='Path' fill='white' points='10.8 10.8 9.2 10.8 9.2 6 10.8 6'%3e%3c/polygon%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
46944
|
+
|
|
46945
|
+
var exclamationWhite_icon = /*#__PURE__*/Object.freeze({
|
|
46946
|
+
__proto__: null,
|
|
46947
|
+
default: img$3
|
|
46948
|
+
});
|
|
46949
|
+
|
|
46950
|
+
var require$$5$1 = /*@__PURE__*/index.getAugmentedNamespace(exclamationWhite_icon);
|
|
46951
|
+
|
|
46952
|
+
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 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3einformation-white%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c2 C14.42%2c2 18%2c5.58 18%2c10 C18%2c14.42 14.42%2c18 10%2c18 C5.58%2c18 2%2c14.42 2%2c10 C2%2c5.58 5.58%2c2 10%2c2 Z M9.2%2c7.6 L10.8%2c7.6 L10.8%2c6 L9.2%2c6 L9.2%2c7.6 Z M9.2%2c14 L10.8%2c14 L10.8%2c9.2 L9.2%2c9.2 L9.2%2c14 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='information-white'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Combined-Shape' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
46953
|
+
|
|
46954
|
+
var information_icon = /*#__PURE__*/Object.freeze({
|
|
46955
|
+
__proto__: null,
|
|
46956
|
+
default: img$2
|
|
46957
|
+
});
|
|
46958
|
+
|
|
46959
|
+
var require$$6 = /*@__PURE__*/index.getAugmentedNamespace(information_icon);
|
|
46960
|
+
|
|
46961
|
+
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%3esuccess%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c2 C14.416%2c2 18%2c5.584 18%2c10 C18%2c14.416 14.416%2c18 10%2c18 C5.584%2c18 2%2c14.416 2%2c10 C2%2c5.584 5.584%2c2 10%2c2 Z M8.4%2c14 L15.6%2c6.8 L14.472%2c5.664 L8.4%2c11.736 L5.528%2c8.872 L4.4%2c10 L8.4%2c14 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='success'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Combined-Shape' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
46962
|
+
|
|
46963
|
+
var success_icon = /*#__PURE__*/Object.freeze({
|
|
46964
|
+
__proto__: null,
|
|
46965
|
+
default: img$1
|
|
46966
|
+
});
|
|
46967
|
+
|
|
46968
|
+
var require$$7 = /*@__PURE__*/index.getAugmentedNamespace(success_icon);
|
|
46969
|
+
|
|
46970
|
+
var avatar = {};
|
|
46971
|
+
|
|
46972
|
+
var Avatar$2 = {};
|
|
46973
|
+
|
|
46974
|
+
var Avatar$1 = {};
|
|
46975
|
+
|
|
46976
|
+
var lib = {};
|
|
46977
|
+
|
|
46978
|
+
var Textfit = {};
|
|
46979
|
+
|
|
46980
|
+
var shallowEqual$1 = {};
|
|
46981
|
+
|
|
46982
|
+
Object.defineProperty(shallowEqual$1, "__esModule", {
|
|
46983
|
+
value: true
|
|
46984
|
+
});
|
|
46985
|
+
shallowEqual$1.default = shallowEqual;
|
|
46986
|
+
function shallowEqual(objA, objB) {
|
|
46987
|
+
if (objA === objB) {
|
|
46988
|
+
return true;
|
|
46989
|
+
}
|
|
46990
|
+
|
|
46991
|
+
var keysA = Object.keys(objA);
|
|
46992
|
+
var keysB = Object.keys(objB);
|
|
46993
|
+
|
|
46994
|
+
if (keysA.length !== keysB.length) {
|
|
46995
|
+
return false;
|
|
46996
|
+
}
|
|
46997
|
+
|
|
46998
|
+
// Test for A's keys different from B.
|
|
46999
|
+
var hasOwn = Object.prototype.hasOwnProperty;
|
|
47000
|
+
for (var i = 0; i < keysA.length; i++) {
|
|
47001
|
+
if (!hasOwn.call(objB, keysA[i]) || objA[keysA[i]] !== objB[keysA[i]]) {
|
|
47002
|
+
return false;
|
|
47003
|
+
}
|
|
47004
|
+
}
|
|
47005
|
+
|
|
47006
|
+
return true;
|
|
47007
|
+
}
|
|
47008
|
+
|
|
47009
|
+
var series$1 = {};
|
|
47010
|
+
|
|
47011
|
+
Object.defineProperty(series$1, "__esModule", {
|
|
47012
|
+
value: true
|
|
47013
|
+
});
|
|
47014
|
+
series$1.default = series;
|
|
47015
|
+
|
|
47016
|
+
var _process = require$$0;
|
|
47017
|
+
|
|
47018
|
+
var _process2 = _interopRequireDefault$2(_process);
|
|
47019
|
+
|
|
47020
|
+
function _interopRequireDefault$2(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
47021
|
+
|
|
47022
|
+
function series(tasks, cb) {
|
|
47023
|
+
var results = [];
|
|
47024
|
+
var current = 0;
|
|
47025
|
+
var isSync = true;
|
|
47026
|
+
|
|
47027
|
+
function done(err) {
|
|
47028
|
+
function end() {
|
|
47029
|
+
if (cb) cb(err, results);
|
|
47030
|
+
}
|
|
47031
|
+
if (isSync) _process2.default.nextTick(end);else end();
|
|
47032
|
+
}
|
|
47033
|
+
|
|
47034
|
+
function each(err, result) {
|
|
47035
|
+
results.push(result);
|
|
47036
|
+
if (++current >= tasks.length || err) done(err);else tasks[current](each);
|
|
47037
|
+
}
|
|
47038
|
+
|
|
47039
|
+
if (tasks.length > 0) tasks[0](each);else done(null);
|
|
47040
|
+
|
|
47041
|
+
isSync = false;
|
|
47042
|
+
} /**
|
|
47043
|
+
* Run the functions in the tasks array in series, each one running once the previous function has completed.
|
|
47044
|
+
* If any functions in the series pass an error to its callback, no more functions are run,
|
|
47045
|
+
* and callback is immediately called with the value of the error. Otherwise, callback receives an array of results
|
|
47046
|
+
* when tasks have completed.
|
|
47047
|
+
* Taken from https://github.com/feross/run-series
|
|
47048
|
+
*
|
|
47049
|
+
* @params {Array} tasks An array containing functions to run, each function is passed a callback(err, result) which it must call on completion with an error err (which can be null) and an optional result value.
|
|
47050
|
+
* @params {Function} callback(err, results) - An optional callback to run once all the functions have completed. This function gets a results array containing all the result arguments passed to the task callbacks.
|
|
47051
|
+
*/
|
|
47052
|
+
|
|
47053
|
+
var whilst$1 = {};
|
|
47054
|
+
|
|
47055
|
+
Object.defineProperty(whilst$1, "__esModule", {
|
|
47056
|
+
value: true
|
|
47057
|
+
});
|
|
47058
|
+
whilst$1.default = whilst;
|
|
47059
|
+
var noop$1 = function noop() {};
|
|
47060
|
+
|
|
47061
|
+
/**
|
|
47062
|
+
* Repeatedly call fn, while test returns true. Calls callback when stopped, or an error occurs.
|
|
47063
|
+
*
|
|
47064
|
+
* @param {Function} test Synchronous truth test to perform before each execution of fn.
|
|
47065
|
+
* @param {Function} fn A function which is called each time test passes. The function is passed a callback(err), which must be called once it has completed with an optional err argument.
|
|
47066
|
+
* @param {Function} callback A callback which is called after the test fails and repeated execution of fn has stopped.
|
|
47067
|
+
*/
|
|
47068
|
+
|
|
47069
|
+
function whilst(test, iterator) {
|
|
47070
|
+
var callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : noop$1;
|
|
47071
|
+
|
|
47072
|
+
if (test()) {
|
|
47073
|
+
iterator(function next(err) {
|
|
47074
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
47075
|
+
args[_key - 1] = arguments[_key];
|
|
47076
|
+
}
|
|
47077
|
+
|
|
47078
|
+
if (err) {
|
|
47079
|
+
callback(err);
|
|
47080
|
+
} else if (test.apply(this, args)) {
|
|
47081
|
+
iterator(next);
|
|
47082
|
+
} else {
|
|
47083
|
+
callback(null);
|
|
47084
|
+
}
|
|
47085
|
+
});
|
|
47086
|
+
} else {
|
|
47087
|
+
callback(null);
|
|
47088
|
+
}
|
|
47089
|
+
}
|
|
47090
|
+
|
|
47091
|
+
var throttle$1 = {};
|
|
47092
|
+
|
|
47093
|
+
Object.defineProperty(throttle$1, "__esModule", {
|
|
47094
|
+
value: true
|
|
47095
|
+
});
|
|
47096
|
+
throttle$1.default = throttle;
|
|
47097
|
+
/**
|
|
47098
|
+
* Returns a new function that, when invoked, invokes `func` at most once per `wait` milliseconds.
|
|
47099
|
+
* Taken from https://github.com/component/throttle v1.0.0
|
|
47100
|
+
*
|
|
47101
|
+
* @param {Function} func Function to wrap.
|
|
47102
|
+
* @param {Number} wait Number of milliseconds that must elapse between `func` invocations.
|
|
47103
|
+
* @return {Function} A new function that wraps the `func` function passed in.
|
|
47104
|
+
*/
|
|
47105
|
+
|
|
47106
|
+
function throttle(func, wait) {
|
|
47107
|
+
var ctx = void 0;
|
|
47108
|
+
var args = void 0;
|
|
47109
|
+
var rtn = void 0;
|
|
47110
|
+
var timeoutID = void 0;
|
|
47111
|
+
var last = 0;
|
|
47112
|
+
|
|
47113
|
+
function call() {
|
|
47114
|
+
timeoutID = 0;
|
|
47115
|
+
last = +new Date();
|
|
47116
|
+
rtn = func.apply(ctx, args);
|
|
47117
|
+
ctx = null;
|
|
47118
|
+
args = null;
|
|
47119
|
+
}
|
|
47120
|
+
|
|
47121
|
+
return function throttled() {
|
|
47122
|
+
ctx = this;
|
|
47123
|
+
args = arguments;
|
|
47124
|
+
var delta = new Date() - last;
|
|
47125
|
+
if (!timeoutID) {
|
|
47126
|
+
if (delta >= wait) call();else timeoutID = setTimeout(call, wait - delta);
|
|
47127
|
+
}
|
|
47128
|
+
return rtn;
|
|
47129
|
+
};
|
|
47130
|
+
}
|
|
47131
|
+
|
|
47132
|
+
var uniqueId$1 = {};
|
|
47133
|
+
|
|
47134
|
+
Object.defineProperty(uniqueId$1, "__esModule", {
|
|
47135
|
+
value: true
|
|
47136
|
+
});
|
|
47137
|
+
uniqueId$1.default = uniqueId;
|
|
47138
|
+
var uid = 0;
|
|
47139
|
+
|
|
47140
|
+
function uniqueId() {
|
|
47141
|
+
return uid++;
|
|
47142
|
+
}
|
|
47143
|
+
|
|
47144
|
+
var innerSize = {};
|
|
47145
|
+
|
|
47146
|
+
Object.defineProperty(innerSize, "__esModule", {
|
|
47147
|
+
value: true
|
|
47148
|
+
});
|
|
47149
|
+
innerSize.innerHeight = innerHeight;
|
|
47150
|
+
innerSize.innerWidth = innerWidth;
|
|
47151
|
+
// Calculate height without padding.
|
|
47152
|
+
function innerHeight(el) {
|
|
47153
|
+
var style = window.getComputedStyle(el, null);
|
|
47154
|
+
// Hidden iframe in Firefox returns null, https://github.com/malte-wessel/react-textfit/pull/34
|
|
47155
|
+
if (!style) return el.clientHeight;
|
|
47156
|
+
return el.clientHeight - parseInt(style.getPropertyValue("padding-top"), 10) - parseInt(style.getPropertyValue("padding-bottom"), 10);
|
|
47157
|
+
}
|
|
47158
|
+
|
|
47159
|
+
// Calculate width without padding.
|
|
47160
|
+
function innerWidth(el) {
|
|
47161
|
+
var style = window.getComputedStyle(el, null);
|
|
47162
|
+
// Hidden iframe in Firefox returns null, https://github.com/malte-wessel/react-textfit/pull/34
|
|
47163
|
+
if (!style) return el.clientWidth;
|
|
47164
|
+
return el.clientWidth - parseInt(style.getPropertyValue("padding-left"), 10) - parseInt(style.getPropertyValue("padding-right"), 10);
|
|
47165
|
+
}
|
|
47166
|
+
|
|
47167
|
+
Object.defineProperty(Textfit, "__esModule", {
|
|
47168
|
+
value: true
|
|
47169
|
+
});
|
|
47170
|
+
|
|
47171
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
47172
|
+
|
|
47173
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
47174
|
+
|
|
47175
|
+
var _react = React;
|
|
47176
|
+
|
|
47177
|
+
var _react2 = _interopRequireDefault$1(_react);
|
|
47178
|
+
|
|
47179
|
+
var _propTypes = propTypesExports;
|
|
47180
|
+
|
|
47181
|
+
var _propTypes2 = _interopRequireDefault$1(_propTypes);
|
|
47182
|
+
|
|
47183
|
+
var _shallowEqual = shallowEqual$1;
|
|
47184
|
+
|
|
47185
|
+
var _shallowEqual2 = _interopRequireDefault$1(_shallowEqual);
|
|
47186
|
+
|
|
47187
|
+
var _series = series$1;
|
|
47188
|
+
|
|
47189
|
+
var _series2 = _interopRequireDefault$1(_series);
|
|
47190
|
+
|
|
47191
|
+
var _whilst = whilst$1;
|
|
47192
|
+
|
|
47193
|
+
var _whilst2 = _interopRequireDefault$1(_whilst);
|
|
47194
|
+
|
|
47195
|
+
var _throttle = throttle$1;
|
|
47196
|
+
|
|
47197
|
+
var _throttle2 = _interopRequireDefault$1(_throttle);
|
|
47198
|
+
|
|
47199
|
+
var _uniqueId = uniqueId$1;
|
|
47200
|
+
|
|
47201
|
+
var _uniqueId2 = _interopRequireDefault$1(_uniqueId);
|
|
47202
|
+
|
|
47203
|
+
var _innerSize = innerSize;
|
|
47204
|
+
|
|
47205
|
+
function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
47206
|
+
|
|
47207
|
+
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
47208
|
+
|
|
47209
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
47210
|
+
|
|
47211
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
47212
|
+
|
|
47213
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
47214
|
+
|
|
47215
|
+
function assertElementFitsWidth(el, width) {
|
|
47216
|
+
// -1: temporary bugfix, will be refactored soon
|
|
47217
|
+
return el.scrollWidth - 1 <= width;
|
|
47218
|
+
}
|
|
47219
|
+
|
|
47220
|
+
function assertElementFitsHeight(el, height) {
|
|
47221
|
+
// -1: temporary bugfix, will be refactored soon
|
|
47222
|
+
return el.scrollHeight - 1 <= height;
|
|
47223
|
+
}
|
|
47224
|
+
|
|
47225
|
+
function noop() {}
|
|
47226
|
+
|
|
47227
|
+
var TextFit = function (_React$Component) {
|
|
47228
|
+
_inherits(TextFit, _React$Component);
|
|
47229
|
+
|
|
47230
|
+
function TextFit(props) {
|
|
47231
|
+
_classCallCheck(this, TextFit);
|
|
47232
|
+
|
|
47233
|
+
var _this = _possibleConstructorReturn(this, (TextFit.__proto__ || Object.getPrototypeOf(TextFit)).call(this, props));
|
|
47234
|
+
|
|
47235
|
+
_this.state = {
|
|
47236
|
+
fontSize: null,
|
|
47237
|
+
ready: false
|
|
47238
|
+
};
|
|
47239
|
+
|
|
47240
|
+
_this.handleWindowResize = function () {
|
|
47241
|
+
_this.process();
|
|
47242
|
+
};
|
|
47243
|
+
|
|
47244
|
+
if ('perfectFit' in props) {
|
|
47245
|
+
console.warn('TextFit property perfectFit has been removed.');
|
|
47246
|
+
}
|
|
47247
|
+
|
|
47248
|
+
_this.handleWindowResize = (0, _throttle2.default)(_this.handleWindowResize, props.throttle);
|
|
47249
|
+
return _this;
|
|
47250
|
+
}
|
|
47251
|
+
|
|
47252
|
+
_createClass(TextFit, [{
|
|
47253
|
+
key: 'componentDidMount',
|
|
47254
|
+
value: function componentDidMount() {
|
|
47255
|
+
var autoResize = this.props.autoResize;
|
|
47256
|
+
|
|
47257
|
+
if (autoResize) {
|
|
47258
|
+
window.addEventListener('resize', this.handleWindowResize);
|
|
47259
|
+
}
|
|
47260
|
+
this.process();
|
|
47261
|
+
}
|
|
47262
|
+
}, {
|
|
47263
|
+
key: 'componentDidUpdate',
|
|
47264
|
+
value: function componentDidUpdate(prevProps) {
|
|
47265
|
+
var ready = this.state.ready;
|
|
47266
|
+
|
|
47267
|
+
if (!ready) return;
|
|
47268
|
+
if ((0, _shallowEqual2.default)(this.props, prevProps)) return;
|
|
47269
|
+
this.process();
|
|
47270
|
+
}
|
|
47271
|
+
}, {
|
|
47272
|
+
key: 'componentWillUnmount',
|
|
47273
|
+
value: function componentWillUnmount() {
|
|
47274
|
+
var autoResize = this.props.autoResize;
|
|
47275
|
+
|
|
47276
|
+
if (autoResize) {
|
|
47277
|
+
window.removeEventListener('resize', this.handleWindowResize);
|
|
47278
|
+
}
|
|
47279
|
+
// Setting a new pid will cancel all running processes
|
|
47280
|
+
this.pid = (0, _uniqueId2.default)();
|
|
47281
|
+
}
|
|
47282
|
+
}, {
|
|
47283
|
+
key: 'process',
|
|
47284
|
+
value: function process() {
|
|
47285
|
+
var _this2 = this;
|
|
47286
|
+
|
|
47287
|
+
var _props = this.props,
|
|
47288
|
+
min = _props.min,
|
|
47289
|
+
max = _props.max,
|
|
47290
|
+
mode = _props.mode,
|
|
47291
|
+
forceSingleModeWidth = _props.forceSingleModeWidth,
|
|
47292
|
+
onReady = _props.onReady;
|
|
47293
|
+
|
|
47294
|
+
var el = this._parent;
|
|
47295
|
+
var wrapper = this._child;
|
|
47296
|
+
|
|
47297
|
+
var originalWidth = (0, _innerSize.innerWidth)(el);
|
|
47298
|
+
var originalHeight = (0, _innerSize.innerHeight)(el);
|
|
47299
|
+
|
|
47300
|
+
if (originalHeight <= 0 || isNaN(originalHeight)) {
|
|
47301
|
+
console.warn('Can not process element without height. Make sure the element is displayed and has a static height.');
|
|
47302
|
+
return;
|
|
47303
|
+
}
|
|
47304
|
+
|
|
47305
|
+
if (originalWidth <= 0 || isNaN(originalWidth)) {
|
|
47306
|
+
console.warn('Can not process element without width. Make sure the element is displayed and has a static width.');
|
|
47307
|
+
return;
|
|
47308
|
+
}
|
|
47309
|
+
|
|
47310
|
+
var pid = (0, _uniqueId2.default)();
|
|
47311
|
+
this.pid = pid;
|
|
47312
|
+
|
|
47313
|
+
var shouldCancelProcess = function shouldCancelProcess() {
|
|
47314
|
+
return pid !== _this2.pid;
|
|
47315
|
+
};
|
|
47316
|
+
|
|
47317
|
+
var testPrimary = mode === 'multi' ? function () {
|
|
47318
|
+
return assertElementFitsHeight(wrapper, originalHeight);
|
|
47319
|
+
} : function () {
|
|
47320
|
+
return assertElementFitsWidth(wrapper, originalWidth);
|
|
47321
|
+
};
|
|
47322
|
+
|
|
47323
|
+
var testSecondary = mode === 'multi' ? function () {
|
|
47324
|
+
return assertElementFitsWidth(wrapper, originalWidth);
|
|
47325
|
+
} : function () {
|
|
47326
|
+
return assertElementFitsHeight(wrapper, originalHeight);
|
|
47327
|
+
};
|
|
47328
|
+
|
|
47329
|
+
var mid = void 0;
|
|
47330
|
+
var low = min;
|
|
47331
|
+
var high = max;
|
|
47332
|
+
|
|
47333
|
+
this.setState({ ready: false });
|
|
47334
|
+
|
|
47335
|
+
(0, _series2.default)([
|
|
47336
|
+
// Step 1:
|
|
47337
|
+
// Binary search to fit the element's height (multi line) / width (single line)
|
|
47338
|
+
function (stepCallback) {
|
|
47339
|
+
return (0, _whilst2.default)(function () {
|
|
47340
|
+
return low <= high;
|
|
47341
|
+
}, function (whilstCallback) {
|
|
47342
|
+
if (shouldCancelProcess()) return whilstCallback(true);
|
|
47343
|
+
mid = parseInt((low + high) / 2, 10);
|
|
47344
|
+
_this2.setState({ fontSize: mid }, function () {
|
|
47345
|
+
if (shouldCancelProcess()) return whilstCallback(true);
|
|
47346
|
+
if (testPrimary()) low = mid + 1;else high = mid - 1;
|
|
47347
|
+
return whilstCallback();
|
|
47348
|
+
});
|
|
47349
|
+
}, stepCallback);
|
|
47350
|
+
},
|
|
47351
|
+
// Step 2:
|
|
47352
|
+
// Binary search to fit the element's width (multi line) / height (single line)
|
|
47353
|
+
// If mode is single and forceSingleModeWidth is true, skip this step
|
|
47354
|
+
// in order to not fit the elements height and decrease the width
|
|
47355
|
+
function (stepCallback) {
|
|
47356
|
+
if (mode === 'single' && forceSingleModeWidth) return stepCallback();
|
|
47357
|
+
if (testSecondary()) return stepCallback();
|
|
47358
|
+
low = min;
|
|
47359
|
+
high = mid;
|
|
47360
|
+
return (0, _whilst2.default)(function () {
|
|
47361
|
+
return low < high;
|
|
47362
|
+
}, function (whilstCallback) {
|
|
47363
|
+
if (shouldCancelProcess()) return whilstCallback(true);
|
|
47364
|
+
mid = parseInt((low + high) / 2, 10);
|
|
47365
|
+
_this2.setState({ fontSize: mid }, function () {
|
|
47366
|
+
if (pid !== _this2.pid) return whilstCallback(true);
|
|
47367
|
+
if (testSecondary()) low = mid + 1;else high = mid - 1;
|
|
47368
|
+
return whilstCallback();
|
|
47369
|
+
});
|
|
47370
|
+
}, stepCallback);
|
|
47371
|
+
},
|
|
47372
|
+
// Step 3
|
|
47373
|
+
// Limits
|
|
47374
|
+
function (stepCallback) {
|
|
47375
|
+
// We break the previous loop without updating mid for the final time,
|
|
47376
|
+
// so we do it here:
|
|
47377
|
+
mid = Math.min(low, high);
|
|
47378
|
+
|
|
47379
|
+
// Ensure we hit the user-supplied limits
|
|
47380
|
+
mid = Math.max(mid, min);
|
|
47381
|
+
mid = Math.min(mid, max);
|
|
47382
|
+
|
|
47383
|
+
// Sanity check:
|
|
47384
|
+
mid = Math.max(mid, 0);
|
|
47385
|
+
|
|
47386
|
+
if (shouldCancelProcess()) return stepCallback(true);
|
|
47387
|
+
_this2.setState({ fontSize: mid }, stepCallback);
|
|
47388
|
+
}], function (err) {
|
|
47389
|
+
// err will be true, if another process was triggered
|
|
47390
|
+
if (err || shouldCancelProcess()) return;
|
|
47391
|
+
_this2.setState({ ready: true }, function () {
|
|
47392
|
+
return onReady(mid);
|
|
47393
|
+
});
|
|
47394
|
+
});
|
|
47395
|
+
}
|
|
47396
|
+
}, {
|
|
47397
|
+
key: 'render',
|
|
47398
|
+
value: function render() {
|
|
47399
|
+
var _this3 = this;
|
|
47400
|
+
|
|
47401
|
+
var _props2 = this.props,
|
|
47402
|
+
children = _props2.children,
|
|
47403
|
+
text = _props2.text,
|
|
47404
|
+
style = _props2.style;
|
|
47405
|
+
_props2.min;
|
|
47406
|
+
_props2.max;
|
|
47407
|
+
var mode = _props2.mode;
|
|
47408
|
+
_props2.forceWidth;
|
|
47409
|
+
_props2.forceSingleModeWidth;
|
|
47410
|
+
_props2.throttle;
|
|
47411
|
+
_props2.autoResize;
|
|
47412
|
+
_props2.onReady;
|
|
47413
|
+
var props = _objectWithoutProperties(_props2, ['children', 'text', 'style', 'min', 'max', 'mode', 'forceWidth', 'forceSingleModeWidth', 'throttle', 'autoResize', 'onReady']);
|
|
47414
|
+
|
|
47415
|
+
var _state = this.state,
|
|
47416
|
+
fontSize = _state.fontSize,
|
|
47417
|
+
ready = _state.ready;
|
|
47418
|
+
|
|
47419
|
+
var finalStyle = _extends({}, style, {
|
|
47420
|
+
fontSize: fontSize
|
|
47421
|
+
});
|
|
47422
|
+
|
|
47423
|
+
var wrapperStyle = {
|
|
47424
|
+
display: ready ? 'block' : 'inline-block'
|
|
47425
|
+
};
|
|
47426
|
+
if (mode === 'single') wrapperStyle.whiteSpace = 'nowrap';
|
|
47427
|
+
|
|
47428
|
+
return _react2.default.createElement(
|
|
47429
|
+
'div',
|
|
47430
|
+
_extends({ ref: function ref(c) {
|
|
47431
|
+
return _this3._parent = c;
|
|
47432
|
+
}, style: finalStyle }, props),
|
|
47433
|
+
_react2.default.createElement(
|
|
47434
|
+
'div',
|
|
47435
|
+
{ ref: function ref(c) {
|
|
47436
|
+
return _this3._child = c;
|
|
47437
|
+
}, style: wrapperStyle },
|
|
47438
|
+
text && typeof children === 'function' ? ready ? children(text) : text : children
|
|
47439
|
+
)
|
|
47440
|
+
);
|
|
47441
|
+
}
|
|
47442
|
+
}]);
|
|
47443
|
+
|
|
47444
|
+
return TextFit;
|
|
47445
|
+
}(_react2.default.Component);
|
|
47446
|
+
|
|
47447
|
+
TextFit.propTypes = {
|
|
47448
|
+
children: _propTypes2.default.node,
|
|
47449
|
+
text: _propTypes2.default.string,
|
|
47450
|
+
min: _propTypes2.default.number,
|
|
47451
|
+
max: _propTypes2.default.number,
|
|
47452
|
+
mode: _propTypes2.default.oneOf(['single', 'multi']),
|
|
47453
|
+
forceSingleModeWidth: _propTypes2.default.bool,
|
|
47454
|
+
throttle: _propTypes2.default.number,
|
|
47455
|
+
onReady: _propTypes2.default.func
|
|
47456
|
+
};
|
|
47457
|
+
TextFit.defaultProps = {
|
|
47458
|
+
min: 1,
|
|
47459
|
+
max: 100,
|
|
47460
|
+
mode: 'multi',
|
|
47461
|
+
forceSingleModeWidth: true,
|
|
47462
|
+
throttle: 50,
|
|
47463
|
+
autoResize: true,
|
|
47464
|
+
onReady: noop
|
|
47465
|
+
};
|
|
47466
|
+
Textfit.default = TextFit;
|
|
47467
|
+
|
|
47468
|
+
Object.defineProperty(lib, "__esModule", {
|
|
47469
|
+
value: true
|
|
47470
|
+
});
|
|
47471
|
+
lib.Textfit = undefined;
|
|
47472
|
+
|
|
47473
|
+
var _Textfit = Textfit;
|
|
47474
|
+
|
|
47475
|
+
var _Textfit2 = _interopRequireDefault(_Textfit);
|
|
47476
|
+
|
|
47477
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
47478
|
+
|
|
47479
|
+
lib.Textfit = _Textfit2.default;
|
|
47480
|
+
lib.default = _Textfit2.default;
|
|
47481
|
+
|
|
47482
|
+
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 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3euser%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c12 C7.33%2c12 2%2c13.34 2%2c16 L2%2c18 L18%2c18 L18%2c16 C18%2c13.34 12.67%2c12 10%2c12 M10%2c10 C12.21%2c10 14%2c8.21 14%2c6 C14%2c3.79 12.21%2c2 10%2c2 C7.79%2c2 6%2c3.79 6%2c6 C6%2c8.21 7.79%2c10 10%2c10' 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='user'%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";
|
|
47483
|
+
|
|
47484
|
+
var user_icon = /*#__PURE__*/Object.freeze({
|
|
47485
|
+
__proto__: null,
|
|
47486
|
+
default: img
|
|
47487
|
+
});
|
|
47488
|
+
|
|
47489
|
+
var require$$4 = /*@__PURE__*/index.getAugmentedNamespace(user_icon);
|
|
47490
|
+
|
|
47491
|
+
var Avatar_module = {"wrapper":"Avatar-module_wrapper__Z0f9l","small":"Avatar-module_small__jGh0-","personal":"Avatar-module_personal__dF-Ou","otherUser":"Avatar-module_otherUser__p-EP2","company":"Avatar-module_company__cX7Yd","initials":"Avatar-module_initials__KqQwi","medium":"Avatar-module_medium__1NEXg","large":"Avatar-module_large__HEyf8","xlarge":"Avatar-module_xlarge__efxpR","xxlarge":"Avatar-module_xxlarge__2Pd9d","avatarImage":"Avatar-module_avatarImage__3BogQ","loading":"Avatar-module_loading__pRyVI","companyAvatarImage":"Avatar-module_companyAvatarImage__QAPBc","fallbackIcon":"Avatar-module_fallbackIcon__wsRF7","longName":"Avatar-module_longName__E6V7H"};
|
|
47492
|
+
|
|
47493
|
+
var Avatar_module$1 = /*#__PURE__*/Object.freeze({
|
|
47494
|
+
__proto__: null,
|
|
47495
|
+
default: Avatar_module
|
|
47496
|
+
});
|
|
47497
|
+
|
|
47498
|
+
var require$$5 = /*@__PURE__*/index.getAugmentedNamespace(Avatar_module$1);
|
|
47499
|
+
|
|
47500
|
+
var __assign$1 = index.commonjsGlobal && index.commonjsGlobal.__assign || function() {
|
|
47501
|
+
__assign$1 = Object.assign || function(t) {
|
|
47502
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
47503
|
+
s = arguments[i];
|
|
47504
|
+
for (var p in s)
|
|
47505
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
47506
|
+
t[p] = s[p];
|
|
47507
|
+
}
|
|
47508
|
+
return t;
|
|
47509
|
+
};
|
|
47510
|
+
return __assign$1.apply(this, arguments);
|
|
47511
|
+
};
|
|
47512
|
+
var __createBinding = index.commonjsGlobal && index.commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
47513
|
+
if (k2 === void 0)
|
|
47514
|
+
k2 = k;
|
|
47515
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
47516
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
47517
|
+
desc = { enumerable: true, get: function() {
|
|
47518
|
+
return m[k];
|
|
47519
|
+
} };
|
|
47520
|
+
}
|
|
47521
|
+
Object.defineProperty(o, k2, desc);
|
|
47522
|
+
} : function(o, m, k, k2) {
|
|
47523
|
+
if (k2 === void 0)
|
|
47524
|
+
k2 = k;
|
|
47525
|
+
o[k2] = m[k];
|
|
47526
|
+
});
|
|
47527
|
+
var __setModuleDefault = index.commonjsGlobal && index.commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v) {
|
|
47528
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
47529
|
+
} : function(o, v) {
|
|
47530
|
+
o["default"] = v;
|
|
47531
|
+
});
|
|
47532
|
+
var __importStar = index.commonjsGlobal && index.commonjsGlobal.__importStar || function(mod) {
|
|
47533
|
+
if (mod && mod.__esModule)
|
|
47534
|
+
return mod;
|
|
47535
|
+
var result = {};
|
|
47536
|
+
if (mod != null) {
|
|
47537
|
+
for (var k in mod)
|
|
47538
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
47539
|
+
__createBinding(result, mod, k);
|
|
47540
|
+
}
|
|
47541
|
+
__setModuleDefault(result, mod);
|
|
47542
|
+
return result;
|
|
47543
|
+
};
|
|
47544
|
+
var __rest$1 = index.commonjsGlobal && index.commonjsGlobal.__rest || function(s, e) {
|
|
47545
|
+
var t = {};
|
|
47546
|
+
for (var p in s)
|
|
47547
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
47548
|
+
t[p] = s[p];
|
|
47549
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
47550
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
47551
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
47552
|
+
t[p[i]] = s[p[i]];
|
|
47553
|
+
}
|
|
47554
|
+
return t;
|
|
47555
|
+
};
|
|
47556
|
+
var __importDefault$1 = index.commonjsGlobal && index.commonjsGlobal.__importDefault || function(mod) {
|
|
47557
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
47558
|
+
};
|
|
47559
|
+
Avatar$1.__esModule = true;
|
|
47560
|
+
Avatar$1.Avatar = void 0;
|
|
47561
|
+
var react_1$1 = __importStar(React);
|
|
47562
|
+
var classnames_1$1 = __importDefault$1(index.classnamesExports);
|
|
47563
|
+
var react_textfit_1 = lib;
|
|
47564
|
+
var component_library_1 = componentLibrary;
|
|
47565
|
+
var user_icon_svg_1 = __importDefault$1(require$$4);
|
|
47566
|
+
var Avatar_module_scss_1 = __importDefault$1(require$$5);
|
|
47567
|
+
var getInitials = function(fullName, max2Characters) {
|
|
47568
|
+
if (max2Characters === void 0) {
|
|
47569
|
+
max2Characters = false;
|
|
47570
|
+
}
|
|
47571
|
+
return fullName == null ? "" : fullName.split(/\s/).reduce(function(acc, name) {
|
|
47572
|
+
return "".concat(acc).concat(name.slice(0, 1));
|
|
47573
|
+
}, "").toUpperCase().substring(0, max2Characters ? 2 : 8);
|
|
47574
|
+
};
|
|
47575
|
+
var getMaxFontSizePixels = function(size) {
|
|
47576
|
+
if (size === "small")
|
|
47577
|
+
return 8;
|
|
47578
|
+
if (size === "medium")
|
|
47579
|
+
return 16;
|
|
47580
|
+
if (size === "xlarge" || size === "xxlarge")
|
|
47581
|
+
return 34;
|
|
47582
|
+
return 22;
|
|
47583
|
+
};
|
|
47584
|
+
var fallbackIcon = function(fullName) {
|
|
47585
|
+
return react_1$1["default"].createElement(
|
|
47586
|
+
"span",
|
|
47587
|
+
{ className: Avatar_module_scss_1["default"].fallbackIcon },
|
|
47588
|
+
react_1$1["default"].createElement(component_library_1.Icon, { inheritSize: true, role: fullName ? "img" : "presentation", title: fullName, icon: user_icon_svg_1["default"] })
|
|
47589
|
+
);
|
|
47590
|
+
};
|
|
47591
|
+
var renderInitials = function(fullName, size, disableInitials) {
|
|
47592
|
+
if (fullName === void 0) {
|
|
47593
|
+
fullName = "";
|
|
47594
|
+
}
|
|
47595
|
+
if (disableInitials === void 0) {
|
|
47596
|
+
disableInitials = false;
|
|
47597
|
+
}
|
|
47598
|
+
var initials = getInitials(fullName);
|
|
47599
|
+
var isLongName = initials.length > 2 && size !== "small";
|
|
47600
|
+
var renderFallback = disableInitials || initials === "";
|
|
47601
|
+
return renderFallback ? fallbackIcon(fullName) : react_1$1["default"].createElement("abbr", { className: (0, classnames_1$1["default"])(Avatar_module_scss_1["default"].initials, isLongName && Avatar_module_scss_1["default"].longName), title: fullName || "" }, isLongName ? (
|
|
47602
|
+
// Only called if 3 or more initials, fits text width for long names
|
|
47603
|
+
react_1$1["default"].createElement(react_textfit_1.Textfit, { mode: "single", max: getMaxFontSizePixels(size) }, initials)
|
|
47604
|
+
) : getInitials(fullName, size === "small"));
|
|
47605
|
+
};
|
|
47606
|
+
var Avatar = function(_a) {
|
|
47607
|
+
var fullName = _a.fullName, _b = _a.size, size = _b === void 0 ? "medium" : _b, avatarSrc = _a.avatarSrc, _c = _a.disableInitials, disableInitials = _c === void 0 ? false : _c, _d = _a.isCompany, isCompany = _d === void 0 ? false : _d, _e = _a.isCurrentUser, isCurrentUser = _e === void 0 ? true : _e, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["fullName", "size", "avatarSrc", "disableInitials", "isCompany", "isCurrentUser", "classNameOverride"]);
|
|
47608
|
+
var _f = (0, react_1$1.useState)(avatarSrc ? "loading" : "none"), avatarState = _f[0], setAvatarState = _f[1];
|
|
47609
|
+
var image = (0, react_1$1.useRef)(null);
|
|
47610
|
+
var renderInitialAvatar = !isCompany && (avatarState === "none" || avatarState === "error");
|
|
47611
|
+
(0, react_1$1.useEffect)(function() {
|
|
47612
|
+
setAvatarState(avatarSrc ? "loading" : "none");
|
|
47613
|
+
}, [avatarSrc]);
|
|
47614
|
+
var onImageFailure = function() {
|
|
47615
|
+
return setAvatarState("error");
|
|
47616
|
+
};
|
|
47617
|
+
var onImageSuccess = function() {
|
|
47618
|
+
return setAvatarState("success");
|
|
47619
|
+
};
|
|
47620
|
+
(0, react_1$1.useEffect)(function() {
|
|
47621
|
+
var _a2;
|
|
47622
|
+
if ((_a2 = image === null || image === void 0 ? void 0 : image.current) === null || _a2 === void 0 ? void 0 : _a2.complete)
|
|
47623
|
+
onImageSuccess();
|
|
47624
|
+
}, [image]);
|
|
47625
|
+
var isNoneOrError = avatarState === "none" || avatarState === "error";
|
|
47626
|
+
var isPersonal = isNoneOrError && isCurrentUser;
|
|
47627
|
+
var isOtherUser = isNoneOrError && !isCurrentUser;
|
|
47628
|
+
return react_1$1["default"].createElement(
|
|
47629
|
+
"span",
|
|
47630
|
+
__assign$1({ className: (0, classnames_1$1["default"])(Avatar_module_scss_1["default"].wrapper, Avatar_module_scss_1["default"][size], classNameOverride, isCompany && Avatar_module_scss_1["default"].company, isPersonal && Avatar_module_scss_1["default"].personal, isOtherUser && Avatar_module_scss_1["default"].otherUser, (avatarState === "loading" || avatarState === "error") && Avatar_module_scss_1["default"].loading) }, restProps),
|
|
47631
|
+
avatarState !== "none" && react_1$1["default"].createElement("img", { ref: image, className: (0, classnames_1$1["default"])(Avatar_module_scss_1["default"].avatarImage, isCompany && Avatar_module_scss_1["default"].companyAvatarImage), src: avatarSrc, onError: onImageFailure, onLoad: onImageSuccess, alt: fullName || "" }),
|
|
47632
|
+
renderInitialAvatar && renderInitials(fullName, size, disableInitials)
|
|
47633
|
+
);
|
|
47634
|
+
};
|
|
47635
|
+
Avatar$1.Avatar = Avatar;
|
|
47636
|
+
|
|
47637
|
+
var AvatarGroup$1 = {};
|
|
47638
|
+
|
|
47639
|
+
var AvatarGroup_module = {"AvatarGroup":"AvatarGroup-module_AvatarGroup__yyC2u","small":"AvatarGroup-module_small__026qy","AvatarGroupItem":"AvatarGroup-module_AvatarGroupItem__tVQsT","medium":"AvatarGroup-module_medium__na3GI","large":"AvatarGroup-module_large__prOGN","AvatarCounter":"AvatarGroup-module_AvatarCounter__w0QVP"};
|
|
47640
|
+
|
|
47641
|
+
var AvatarGroup_module$1 = /*#__PURE__*/Object.freeze({
|
|
47642
|
+
__proto__: null,
|
|
47643
|
+
default: AvatarGroup_module
|
|
47644
|
+
});
|
|
47645
|
+
|
|
47646
|
+
var require$$3 = /*@__PURE__*/index.getAugmentedNamespace(AvatarGroup_module$1);
|
|
47647
|
+
|
|
47648
|
+
var __assign = index.commonjsGlobal && index.commonjsGlobal.__assign || function() {
|
|
47649
|
+
__assign = Object.assign || function(t) {
|
|
47650
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
47651
|
+
s = arguments[i];
|
|
47652
|
+
for (var p in s)
|
|
47653
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
47654
|
+
t[p] = s[p];
|
|
47655
|
+
}
|
|
47656
|
+
return t;
|
|
47657
|
+
};
|
|
47658
|
+
return __assign.apply(this, arguments);
|
|
47659
|
+
};
|
|
47660
|
+
var __rest = index.commonjsGlobal && index.commonjsGlobal.__rest || function(s, e) {
|
|
47661
|
+
var t = {};
|
|
47662
|
+
for (var p in s)
|
|
47663
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
47664
|
+
t[p] = s[p];
|
|
47665
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
47666
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
47667
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
47668
|
+
t[p[i]] = s[p[i]];
|
|
47669
|
+
}
|
|
47670
|
+
return t;
|
|
47671
|
+
};
|
|
47672
|
+
var __importDefault = index.commonjsGlobal && index.commonjsGlobal.__importDefault || function(mod) {
|
|
47673
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
47674
|
+
};
|
|
47675
|
+
AvatarGroup$1.__esModule = true;
|
|
47676
|
+
AvatarGroup$1.AvatarGroup = void 0;
|
|
47677
|
+
var react_1 = __importDefault(React);
|
|
47678
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
47679
|
+
var Avatar_1 = Avatar$1;
|
|
47680
|
+
var AvatarGroup_module_scss_1 = __importDefault(require$$3);
|
|
47681
|
+
var renderCounter = function(remainingAvatars) {
|
|
47682
|
+
if (remainingAvatars <= 0)
|
|
47683
|
+
return;
|
|
47684
|
+
return react_1["default"].createElement(
|
|
47685
|
+
"li",
|
|
47686
|
+
{ "aria-label": "There ".concat(remainingAvatars > 1 ? "are ".concat(remainingAvatars, " other members") : "is ".concat(remainingAvatars, " other member"), " of this group"), className: AvatarGroup_module_scss_1["default"].AvatarGroupItem },
|
|
47687
|
+
react_1["default"].createElement("span", { className: AvatarGroup_module_scss_1["default"].AvatarCounter, "aria-hidden": true }, "+".concat(remainingAvatars))
|
|
47688
|
+
);
|
|
47689
|
+
};
|
|
47690
|
+
var renderAvatars = function(avatars, maxVisible, size) {
|
|
47691
|
+
return react_1["default"].createElement(
|
|
47692
|
+
react_1["default"].Fragment,
|
|
47693
|
+
null,
|
|
47694
|
+
avatars === null || avatars === void 0 ? void 0 : avatars.map(function(avatarProps, index) {
|
|
47695
|
+
return index < maxVisible && react_1["default"].createElement(
|
|
47696
|
+
"li",
|
|
47697
|
+
{ key: "avatar-".concat(index), className: AvatarGroup_module_scss_1["default"].AvatarGroupItem },
|
|
47698
|
+
react_1["default"].createElement(Avatar_1.Avatar, __assign({}, avatarProps, { size }))
|
|
47699
|
+
);
|
|
47700
|
+
}),
|
|
47701
|
+
renderCounter((avatars === null || avatars === void 0 ? void 0 : avatars.length) - maxVisible)
|
|
47702
|
+
);
|
|
47703
|
+
};
|
|
47704
|
+
var AvatarGroup = function(_a) {
|
|
47705
|
+
var _b = _a.size, size = _b === void 0 ? "medium" : _b, _c = _a.maxVisible, maxVisible = _c === void 0 ? 2 : _c, avatars = _a.avatars, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["size", "maxVisible", "avatars", "classNameOverride"]);
|
|
47706
|
+
return react_1["default"].createElement("ul", __assign({ className: (0, classnames_1["default"])(AvatarGroup_module_scss_1["default"].AvatarGroup, AvatarGroup_module_scss_1["default"][size], classNameOverride), "aria-label": "Avatar Group" }, restProps), renderAvatars(avatars, maxVisible, size));
|
|
47707
|
+
};
|
|
47708
|
+
AvatarGroup$1.AvatarGroup = AvatarGroup;
|
|
47709
|
+
|
|
47710
|
+
(function(exports) {
|
|
47711
|
+
var __createBinding = index.commonjsGlobal && index.commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
47712
|
+
if (k2 === void 0)
|
|
47713
|
+
k2 = k;
|
|
47714
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
47715
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
47716
|
+
desc = { enumerable: true, get: function() {
|
|
47717
|
+
return m[k];
|
|
47718
|
+
} };
|
|
47719
|
+
}
|
|
47720
|
+
Object.defineProperty(o, k2, desc);
|
|
47721
|
+
} : function(o, m, k, k2) {
|
|
47722
|
+
if (k2 === void 0)
|
|
47723
|
+
k2 = k;
|
|
47724
|
+
o[k2] = m[k];
|
|
47725
|
+
});
|
|
47726
|
+
var __exportStar = index.commonjsGlobal && index.commonjsGlobal.__exportStar || function(m, exports2) {
|
|
47727
|
+
for (var p in m)
|
|
47728
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
47729
|
+
__createBinding(exports2, m, p);
|
|
47730
|
+
};
|
|
47731
|
+
exports.__esModule = true;
|
|
47732
|
+
__exportStar(Avatar$1, exports);
|
|
47733
|
+
__exportStar(AvatarGroup$1, exports);
|
|
47734
|
+
})(Avatar$2);
|
|
47735
|
+
|
|
47736
|
+
(function(exports) {
|
|
47737
|
+
var __createBinding = index.commonjsGlobal && index.commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
47738
|
+
if (k2 === void 0)
|
|
47739
|
+
k2 = k;
|
|
47740
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
47741
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
47742
|
+
desc = { enumerable: true, get: function() {
|
|
47743
|
+
return m[k];
|
|
47744
|
+
} };
|
|
47745
|
+
}
|
|
47746
|
+
Object.defineProperty(o, k2, desc);
|
|
47747
|
+
} : function(o, m, k, k2) {
|
|
47748
|
+
if (k2 === void 0)
|
|
47749
|
+
k2 = k;
|
|
47750
|
+
o[k2] = m[k];
|
|
47751
|
+
});
|
|
47752
|
+
var __exportStar = index.commonjsGlobal && index.commonjsGlobal.__exportStar || function(m, exports2) {
|
|
47753
|
+
for (var p in m)
|
|
47754
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
47755
|
+
__createBinding(exports2, m, p);
|
|
47756
|
+
};
|
|
47757
|
+
exports.__esModule = true;
|
|
47758
|
+
__exportStar(Avatar$2, exports);
|
|
47759
|
+
})(avatar);
|
|
47760
|
+
|
|
47761
|
+
var Tag_module = {"root":"Tag-module_root__ZoDW8","profile":"Tag-module_profile__Ehf-K","layoutContainer":"Tag-module_layoutContainer__LWT-U","validationIcon":"Tag-module_validationIcon__s6PsN","textContent":"Tag-module_textContent__I6Xpa","iconWrapper":"Tag-module_iconWrapper__18lT7","dismissButton":"Tag-module_dismissButton__LdCmP","background":"Tag-module_background__0uo93","truncate":"Tag-module_truncate__-LIzQ","inline":"Tag-module_inline__eXwDM","medium":"Tag-module_medium__Eu-Al","small":"Tag-module_small__N9Fgj","default":"Tag-module_default__ktMsS","sentimentPositive":"Tag-module_sentimentPositive__P9FK6","sentimentNeutral":"Tag-module_sentimentNeutral__sHWK8","sentimentNegative":"Tag-module_sentimentNegative__AtFz2","sentimentNone":"Tag-module_sentimentNone__djSUk","validationPositive":"Tag-module_validationPositive__uG3EH","validationInformative":"Tag-module_validationInformative__dfOBN","validationNegative":"Tag-module_validationNegative__VH5WS","validationCautionary":"Tag-module_validationCautionary__0y7aC","statusLive":"Tag-module_statusLive__UdadP","statusAction":"Tag-module_statusAction__MY6Yl","statusClosed":"Tag-module_statusClosed__7bQU3","statusDraft":"Tag-module_statusDraft__c-z-g","pulse":"Tag-module_pulse__e1HBQ","pulseRing":"Tag-module_pulseRing__DEU34","pulsate":"Tag-module_pulsate__a0hjU"};
|
|
47762
|
+
|
|
47763
|
+
var Tag_module$1 = /*#__PURE__*/Object.freeze({
|
|
47764
|
+
__proto__: null,
|
|
47765
|
+
default: Tag_module
|
|
47766
|
+
});
|
|
47767
|
+
|
|
47768
|
+
var require$$9 = /*@__PURE__*/index.getAugmentedNamespace(Tag_module$1);
|
|
47769
|
+
|
|
47770
|
+
(function(exports) {
|
|
47771
|
+
var __assign = index.commonjsGlobal && index.commonjsGlobal.__assign || function() {
|
|
47772
|
+
__assign = Object.assign || function(t) {
|
|
47773
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
47774
|
+
s = arguments[i];
|
|
47775
|
+
for (var p in s)
|
|
47776
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
47777
|
+
t[p] = s[p];
|
|
47778
|
+
}
|
|
47779
|
+
return t;
|
|
47780
|
+
};
|
|
47781
|
+
return __assign.apply(this, arguments);
|
|
47782
|
+
};
|
|
47783
|
+
var __importDefault = index.commonjsGlobal && index.commonjsGlobal.__importDefault || function(mod) {
|
|
47784
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
47785
|
+
};
|
|
47786
|
+
exports.__esModule = true;
|
|
47787
|
+
exports.Tag = void 0;
|
|
47788
|
+
var react_1 = __importDefault(React);
|
|
47789
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
47790
|
+
var component_library_1 = componentLibrary;
|
|
47791
|
+
var caution_white_icon_svg_1 = __importDefault(require$$3$1);
|
|
47792
|
+
var clear_white_icon_svg_1 = __importDefault(require$$4$1);
|
|
47793
|
+
var exclamation_white_icon_svg_1 = __importDefault(require$$5$1);
|
|
47794
|
+
var information_icon_svg_1 = __importDefault(require$$6);
|
|
47795
|
+
var success_icon_svg_1 = __importDefault(require$$7);
|
|
47796
|
+
var draft_avatar_1 = avatar;
|
|
47797
|
+
var Tag_module_scss_1 = __importDefault(require$$9);
|
|
47798
|
+
var isJSXElement = function(imageElementOrAvatarProps) {
|
|
47799
|
+
return "props" in imageElementOrAvatarProps;
|
|
47800
|
+
};
|
|
47801
|
+
var renderAvatar = function(imageElementOrAvatarProps) {
|
|
47802
|
+
return isJSXElement(imageElementOrAvatarProps) ? react_1["default"].createElement(react_1["default"].Fragment, null, imageElementOrAvatarProps) : react_1["default"].createElement(draft_avatar_1.Avatar, __assign({}, imageElementOrAvatarProps, { size: "small" }));
|
|
47803
|
+
};
|
|
47804
|
+
var Tag = function(props) {
|
|
47805
|
+
var children = props.children, _a = props.variant, variant = _a === void 0 ? "default" : _a, _b = props.size, size = _b === void 0 ? "medium" : _b, _c = props.inline, inline = _c === void 0 ? false : _c, _d = props.dismissible, dismissible = _d === void 0 ? false : _d, onDismiss = props.onDismiss, onMouseDown = props.onMouseDown, onMouseLeave = props.onMouseLeave, truncateWidth = props.truncateWidth;
|
|
47806
|
+
var isTruncated = truncateWidth && truncateWidth > 0;
|
|
47807
|
+
var canShowIcon = size === "medium";
|
|
47808
|
+
return react_1["default"].createElement(
|
|
47809
|
+
"div",
|
|
47810
|
+
{ className: (0, classnames_1["default"])(Tag_module_scss_1["default"].root, Tag_module_scss_1["default"][variant], variant === "profile" && Tag_module_scss_1["default"]["default"], Tag_module_scss_1["default"][size], inline && Tag_module_scss_1["default"].inline, dismissible && Tag_module_scss_1["default"].dismissible) },
|
|
47811
|
+
react_1["default"].createElement(
|
|
47812
|
+
"div",
|
|
47813
|
+
{ className: Tag_module_scss_1["default"].layoutContainer },
|
|
47814
|
+
react_1["default"].createElement(
|
|
47815
|
+
react_1["default"].Fragment,
|
|
47816
|
+
null,
|
|
47817
|
+
canShowIcon && function() {
|
|
47818
|
+
switch (props.variant) {
|
|
47819
|
+
case "validationPositive":
|
|
47820
|
+
return react_1["default"].createElement(
|
|
47821
|
+
"span",
|
|
47822
|
+
{ className: Tag_module_scss_1["default"].validationIcon },
|
|
47823
|
+
react_1["default"].createElement(component_library_1.Icon, { icon: success_icon_svg_1["default"], role: "presentation" })
|
|
47824
|
+
);
|
|
47825
|
+
case "validationNegative":
|
|
47826
|
+
return react_1["default"].createElement(
|
|
47827
|
+
"span",
|
|
47828
|
+
{ className: Tag_module_scss_1["default"].validationIcon },
|
|
47829
|
+
react_1["default"].createElement(component_library_1.Icon, { icon: exclamation_white_icon_svg_1["default"], role: "presentation" })
|
|
47830
|
+
);
|
|
47831
|
+
case "validationCautionary":
|
|
47832
|
+
return react_1["default"].createElement(
|
|
47833
|
+
"span",
|
|
47834
|
+
{ className: Tag_module_scss_1["default"].validationIcon },
|
|
47835
|
+
react_1["default"].createElement(component_library_1.Icon, { icon: caution_white_icon_svg_1["default"], role: "presentation" })
|
|
47836
|
+
);
|
|
47837
|
+
case "validationInformative":
|
|
47838
|
+
return react_1["default"].createElement(
|
|
47839
|
+
"span",
|
|
47840
|
+
{ className: Tag_module_scss_1["default"].validationIcon },
|
|
47841
|
+
react_1["default"].createElement(component_library_1.Icon, { icon: information_icon_svg_1["default"], role: "presentation" })
|
|
47842
|
+
);
|
|
47843
|
+
case "profile":
|
|
47844
|
+
return react_1["default"].createElement("span", { className: Tag_module_scss_1["default"].profile }, props.avatar && renderAvatar(props.avatar));
|
|
47845
|
+
default:
|
|
47846
|
+
return;
|
|
47847
|
+
}
|
|
47848
|
+
}(),
|
|
47849
|
+
react_1["default"].createElement("span", { className: (0, classnames_1["default"])(Tag_module_scss_1["default"].textContent, isTruncated && Tag_module_scss_1["default"].truncate), style: {
|
|
47850
|
+
maxWidth: isTruncated ? truncateWidth : void 0
|
|
47851
|
+
} }, children),
|
|
47852
|
+
dismissible && react_1["default"].createElement(
|
|
47853
|
+
react_1["default"].Fragment,
|
|
47854
|
+
null,
|
|
47855
|
+
react_1["default"].createElement(
|
|
47856
|
+
"button",
|
|
47857
|
+
{ type: "button", className: Tag_module_scss_1["default"].dismissButton, onClick: onDismiss, onMouseDown, onMouseLeave },
|
|
47858
|
+
react_1["default"].createElement(
|
|
47859
|
+
"div",
|
|
47860
|
+
{ className: Tag_module_scss_1["default"].iconWrapper },
|
|
47861
|
+
react_1["default"].createElement(component_library_1.Icon, { icon: clear_white_icon_svg_1["default"], inheritSize: true, role: "img", title: "Dismiss" })
|
|
47862
|
+
)
|
|
47863
|
+
)
|
|
47864
|
+
),
|
|
47865
|
+
variant === "statusLive" && react_1["default"].createElement(
|
|
47866
|
+
"span",
|
|
47867
|
+
{ className: Tag_module_scss_1["default"].pulse },
|
|
47868
|
+
react_1["default"].createElement("span", { className: Tag_module_scss_1["default"].pulseRing })
|
|
47869
|
+
)
|
|
47870
|
+
)
|
|
47871
|
+
)
|
|
47872
|
+
);
|
|
47873
|
+
};
|
|
47874
|
+
exports.Tag = Tag;
|
|
47875
|
+
exports.Tag.displayName = "Tag";
|
|
47876
|
+
})(Tag);
|
|
47877
|
+
|
|
47878
|
+
(function(exports) {
|
|
47879
|
+
var __createBinding = index.commonjsGlobal && index.commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
47880
|
+
if (k2 === void 0)
|
|
47881
|
+
k2 = k;
|
|
47882
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
47883
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
47884
|
+
desc = { enumerable: true, get: function() {
|
|
47885
|
+
return m[k];
|
|
47886
|
+
} };
|
|
47887
|
+
}
|
|
47888
|
+
Object.defineProperty(o, k2, desc);
|
|
47889
|
+
} : function(o, m, k, k2) {
|
|
47890
|
+
if (k2 === void 0)
|
|
47891
|
+
k2 = k;
|
|
47892
|
+
o[k2] = m[k];
|
|
47893
|
+
});
|
|
47894
|
+
var __exportStar = index.commonjsGlobal && index.commonjsGlobal.__exportStar || function(m, exports2) {
|
|
47895
|
+
for (var p in m)
|
|
47896
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
47897
|
+
__createBinding(exports2, m, p);
|
|
47898
|
+
};
|
|
47899
|
+
exports.__esModule = true;
|
|
47900
|
+
__exportStar(Tag, exports);
|
|
47901
|
+
})(Tag$1);
|
|
47902
|
+
|
|
47903
|
+
(function(exports) {
|
|
47904
|
+
var __createBinding = index.commonjsGlobal && index.commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
47905
|
+
if (k2 === void 0)
|
|
47906
|
+
k2 = k;
|
|
47907
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
47908
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
47909
|
+
desc = { enumerable: true, get: function() {
|
|
47910
|
+
return m[k];
|
|
47911
|
+
} };
|
|
47912
|
+
}
|
|
47913
|
+
Object.defineProperty(o, k2, desc);
|
|
47914
|
+
} : function(o, m, k, k2) {
|
|
47915
|
+
if (k2 === void 0)
|
|
47916
|
+
k2 = k;
|
|
47917
|
+
o[k2] = m[k];
|
|
47918
|
+
});
|
|
47919
|
+
var __exportStar = index.commonjsGlobal && index.commonjsGlobal.__exportStar || function(m, exports2) {
|
|
47920
|
+
for (var p in m)
|
|
47921
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
47922
|
+
__createBinding(exports2, m, p);
|
|
47923
|
+
};
|
|
47924
|
+
exports.__esModule = true;
|
|
47925
|
+
__exportStar(Tag$1, exports);
|
|
47926
|
+
})(tag);
|
|
47927
|
+
|
|
47928
|
+
var styles$4 = {"titles":"Titles-module_titles__tO9dZ","pageTitle":"Titles-module_pageTitle__7-ui0","prefix":"Titles-module_prefix__vV-WW","status":"Titles-module_status__RvbTg"};
|
|
47929
|
+
|
|
47930
|
+
var Titles = function(_a) {
|
|
47931
|
+
var workflowName = _a.workflowName, stepName = _a.stepName, status = _a.status, restProps = index.__rest(_a, ["workflowName", "stepName", "status"]);
|
|
47932
|
+
return React.createElement(
|
|
47933
|
+
"div",
|
|
47934
|
+
index.__assign({ className: styles$4.titles }, restProps),
|
|
47935
|
+
React.createElement(
|
|
47936
|
+
typography.Heading,
|
|
47937
|
+
{ variant: "heading-1", tag: "h1", color: "dark", classNameOverride: styles$4.pageTitle },
|
|
47938
|
+
React.createElement(typography.Heading, { classNameOverride: styles$4.prefix, variant: "heading-6", tag: "span", color: "dark-reduced-opacity" }, workflowName),
|
|
47939
|
+
React.createElement("span", null, stepName)
|
|
47940
|
+
),
|
|
47941
|
+
status && // status may need to be update by a fetch
|
|
47942
|
+
React.createElement(
|
|
47943
|
+
"div",
|
|
47944
|
+
{ className: styles$4.status },
|
|
47945
|
+
React.createElement(tag.Tag, { inline: true, variant: (status === null || status === void 0 ? void 0 : status.variant) || "statusDraft" }, status === null || status === void 0 ? void 0 : status.content)
|
|
47946
|
+
)
|
|
47947
|
+
);
|
|
47948
|
+
};
|
|
47949
|
+
Titles.displayName = "Workflow.Titles";
|
|
47950
|
+
|
|
47951
|
+
var styles$3 = {"actions":"Actions-module_actions__2Zdtd"};
|
|
47952
|
+
|
|
47953
|
+
var Actions = function(_a) {
|
|
47954
|
+
var headerActions = _a.headerActions, restProps = index.__rest(_a, ["headerActions"]);
|
|
47955
|
+
return React.createElement("div", index.__assign({ className: styles$3.actions }, restProps), headerActions === null || headerActions === void 0 ? void 0 : headerActions.map(function(action, index$1) {
|
|
47956
|
+
return React.createElement(action.type, index.__assign({ key: "header-actions ".concat(index$1) }, action.props));
|
|
47957
|
+
}));
|
|
47958
|
+
};
|
|
47959
|
+
Actions.displayName = "Workflow.Actions";
|
|
47960
|
+
|
|
47961
|
+
var brand = {};
|
|
47962
|
+
|
|
47963
|
+
var Brand = {};
|
|
47964
|
+
|
|
47965
|
+
var dist = {};
|
|
47966
|
+
|
|
47967
|
+
dist.__esModule = true;
|
|
47968
|
+
dist.assetUrl = void 0;
|
|
47969
|
+
var ORIGIN_BASE_URL = "https://d1e7r7b0lb8p4d.cloudfront.net";
|
|
47970
|
+
var assetUrl = function(path) {
|
|
47971
|
+
return [ORIGIN_BASE_URL, path].join("/");
|
|
47972
|
+
};
|
|
47973
|
+
dist.assetUrl = assetUrl;
|
|
47974
|
+
|
|
47975
|
+
var Brand_module = {"img":"Brand-module_img__YE-W7"};
|
|
47976
|
+
|
|
47977
|
+
var Brand_module$1 = /*#__PURE__*/Object.freeze({
|
|
47978
|
+
__proto__: null,
|
|
47979
|
+
default: Brand_module
|
|
47980
|
+
});
|
|
47981
|
+
|
|
47982
|
+
var require$$2 = /*@__PURE__*/index.getAugmentedNamespace(Brand_module$1);
|
|
47983
|
+
|
|
47984
|
+
(function(exports) {
|
|
47985
|
+
var __assign = index.commonjsGlobal && index.commonjsGlobal.__assign || function() {
|
|
47986
|
+
__assign = Object.assign || function(t) {
|
|
47987
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
47988
|
+
s = arguments[i];
|
|
47989
|
+
for (var p in s)
|
|
47990
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
47991
|
+
t[p] = s[p];
|
|
47992
|
+
}
|
|
47993
|
+
return t;
|
|
47994
|
+
};
|
|
47995
|
+
return __assign.apply(this, arguments);
|
|
47996
|
+
};
|
|
47997
|
+
var __rest = index.commonjsGlobal && index.commonjsGlobal.__rest || function(s, e) {
|
|
47998
|
+
var t = {};
|
|
47999
|
+
for (var p in s)
|
|
48000
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48001
|
+
t[p] = s[p];
|
|
48002
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
48003
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
48004
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
48005
|
+
t[p[i]] = s[p[i]];
|
|
48006
|
+
}
|
|
48007
|
+
return t;
|
|
48008
|
+
};
|
|
48009
|
+
var __importDefault = index.commonjsGlobal && index.commonjsGlobal.__importDefault || function(mod) {
|
|
48010
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
48011
|
+
};
|
|
48012
|
+
exports.__esModule = true;
|
|
48013
|
+
exports.Brand = void 0;
|
|
48014
|
+
var react_1 = __importDefault(React);
|
|
48015
|
+
var hosted_assets_1 = dist;
|
|
48016
|
+
var Brand_module_scss_1 = __importDefault(require$$2);
|
|
48017
|
+
var Brand = function(_a) {
|
|
48018
|
+
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"]);
|
|
48019
|
+
var brandTheme = reversed ? "-reversed" : "-default";
|
|
48020
|
+
return react_1["default"].createElement(
|
|
48021
|
+
"picture",
|
|
48022
|
+
__assign({ className: classNameOverride }, restProps),
|
|
48023
|
+
react_1["default"].createElement("source", { srcSet: (0, hosted_assets_1.assetUrl)("brand/".concat(variant, "-reversed.svg")), media: "(forced-colors: active) and (prefers-color-scheme: dark)" }),
|
|
48024
|
+
react_1["default"].createElement("source", { srcSet: (0, hosted_assets_1.assetUrl)("brand/".concat(variant, "-default.svg")), media: "(forced-colors: active) and (prefers-color-scheme: light)" }),
|
|
48025
|
+
react_1["default"].createElement("img", { src: (0, hosted_assets_1.assetUrl)("brand/".concat(variant).concat(brandTheme, ".svg")), alt, className: Brand_module_scss_1["default"].img })
|
|
48026
|
+
);
|
|
48027
|
+
};
|
|
48028
|
+
exports.Brand = Brand;
|
|
48029
|
+
exports.Brand.displayName = "Brand";
|
|
48030
|
+
})(Brand);
|
|
48031
|
+
|
|
48032
|
+
(function(exports) {
|
|
48033
|
+
var __createBinding = index.commonjsGlobal && index.commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
48034
|
+
if (k2 === void 0)
|
|
48035
|
+
k2 = k;
|
|
48036
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
48037
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
48038
|
+
desc = { enumerable: true, get: function() {
|
|
48039
|
+
return m[k];
|
|
48040
|
+
} };
|
|
48041
|
+
}
|
|
48042
|
+
Object.defineProperty(o, k2, desc);
|
|
48043
|
+
} : function(o, m, k, k2) {
|
|
48044
|
+
if (k2 === void 0)
|
|
48045
|
+
k2 = k;
|
|
48046
|
+
o[k2] = m[k];
|
|
48047
|
+
});
|
|
48048
|
+
var __exportStar = index.commonjsGlobal && index.commonjsGlobal.__exportStar || function(m, exports2) {
|
|
48049
|
+
for (var p in m)
|
|
48050
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
48051
|
+
__createBinding(exports2, m, p);
|
|
48052
|
+
};
|
|
48053
|
+
exports.__esModule = true;
|
|
48054
|
+
__exportStar(Brand, exports);
|
|
48055
|
+
})(brand);
|
|
48056
|
+
|
|
48057
|
+
var styles$2 = {"branding":"Branding-module_branding__Oayqr","logo":"Branding-module_logo__rTXU9"};
|
|
48058
|
+
|
|
48059
|
+
var Branding = function(_a) {
|
|
48060
|
+
var _b = _a.variant, variant = _b === void 0 ? "logo-horizontal" : _b, alt = _a.alt;
|
|
48061
|
+
return React.createElement(
|
|
48062
|
+
"div",
|
|
48063
|
+
{ className: styles$2.branding },
|
|
48064
|
+
React.createElement(brand.Brand, { classNameOverride: styles$2.logo, variant, alt })
|
|
48065
|
+
);
|
|
48066
|
+
};
|
|
48067
|
+
Branding.displayName = "Workflow.Branding";
|
|
48068
|
+
|
|
48069
|
+
var styles$1 = {"root":"Root-module_root__cfRZi"};
|
|
48070
|
+
|
|
48071
|
+
var HeaderRoot = function(_a) {
|
|
48072
|
+
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
48073
|
+
return React.createElement("header", index.__assign({ className: index.classnames(styles$1.root, classNameOverride) }, restProps), children);
|
|
48074
|
+
};
|
|
48075
|
+
HeaderRoot.displayName = "Workflow.HeaderRoot";
|
|
48076
|
+
|
|
48077
|
+
var Header = function(_a) {
|
|
48078
|
+
var workflowName = _a.workflowName, stepName = _a.stepName, status = _a.status, headerActions = _a.headerActions, restProps = index.__rest(_a, ["workflowName", "stepName", "status", "headerActions"]);
|
|
48079
|
+
return React.createElement(
|
|
48080
|
+
HeaderRoot,
|
|
48081
|
+
index.__assign({}, restProps),
|
|
48082
|
+
React.createElement(Branding, { alt: "Cultureamp" }),
|
|
48083
|
+
React.createElement(Titles, { workflowName, stepName, status }),
|
|
48084
|
+
React.createElement(Actions, { headerActions })
|
|
48085
|
+
);
|
|
48086
|
+
};
|
|
48087
|
+
Header.displayName = "Workflow.Header";
|
|
48088
|
+
|
|
48089
|
+
var Main = function(_a) {
|
|
48090
|
+
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
48091
|
+
return React.createElement("main", index.__assign({ className: index.classnames([classNameOverride]) }, restProps), children);
|
|
48092
|
+
};
|
|
48093
|
+
Main.displayName = "Workflow.Main";
|
|
48094
|
+
|
|
48095
|
+
var styles = {"wrapper":"Wrapper-module_wrapper__EUUEZ"};
|
|
48096
|
+
|
|
48097
|
+
var Wrapper = function(_a) {
|
|
48098
|
+
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
48099
|
+
return React.createElement("div", index.__assign({ className: index.classnames(styles.wrapper, classNameOverride) }, restProps), children);
|
|
48100
|
+
};
|
|
48101
|
+
Wrapper.displayName = "Workflow.Wrapper";
|
|
48102
|
+
|
|
48103
|
+
var WorkflowComponent = function(_a) {
|
|
48104
|
+
var stepName = _a.stepName, steps = _a.steps, isComplete = _a.isComplete, workflowName = _a.workflowName, status = _a.status, headerActions = _a.headerActions, children = _a.children, nextAction = _a.nextAction, previousAction = _a.previousAction, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["stepName", "steps", "isComplete", "workflowName", "status", "headerActions", "children", "nextAction", "previousAction", "classNameOverride"]);
|
|
48105
|
+
return React.createElement(
|
|
48106
|
+
Workflow.Wrapper,
|
|
48107
|
+
index.__assign({ classNameOverride }, restProps),
|
|
48108
|
+
React.createElement(Workflow.Header, { workflowName, stepName, status, headerActions }),
|
|
48109
|
+
React.createElement(Workflow.Main, null, children),
|
|
48110
|
+
React.createElement(Workflow.Footer, { stepName, steps, isComplete, nextAction, previousAction })
|
|
48111
|
+
);
|
|
48112
|
+
};
|
|
48113
|
+
var Workflow = Object.assign(WorkflowComponent, {
|
|
48114
|
+
Header,
|
|
48115
|
+
Footer,
|
|
48116
|
+
Main,
|
|
48117
|
+
ProgressStepper,
|
|
48118
|
+
Wrapper
|
|
48119
|
+
});
|
|
48120
|
+
|
|
46730
48121
|
exports.Filter = Filter;
|
|
46731
48122
|
exports.FilterButton = FilterButton;
|
|
46732
48123
|
exports.FilterButtonRemovable = FilterButtonRemovable;
|
|
@@ -46736,6 +48127,7 @@ exports.KaizenProvider = KaizenProvider;
|
|
|
46736
48127
|
exports.ThemeContext = ThemeContext;
|
|
46737
48128
|
exports.ThemeManager = ThemeManager;
|
|
46738
48129
|
exports.ThemeProvider = ThemeProvider;
|
|
48130
|
+
exports.Workflow = Workflow;
|
|
46739
48131
|
exports.defaultTheme = defaultTheme;
|
|
46740
48132
|
exports.heartTheme = heartTheme;
|
|
46741
48133
|
exports.useTheme = useTheme;
|