@doist/reactist 10.0.0-beta.7 → 11.0.0
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/reactist.cjs.development.js +253 -411
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +34 -20
- package/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/es/components/deprecated-button/deprecated-button.js +2 -1
- package/es/components/deprecated-button/deprecated-button.js.map +1 -1
- package/es/components/deprecated-modal/deprecated-modal.js +1 -1
- package/es/components/deprecated-modal/deprecated-modal.js.map +1 -1
- package/es/components/dropdown/dropdown.js +3 -1
- package/es/components/dropdown/dropdown.js.map +1 -1
- package/es/components/key-capturer/key-capturer.js.map +1 -1
- package/es/components/keyboard-shortcut/keyboard-shortcut.js +2 -1
- package/es/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/es/components/menu/menu.js +32 -12
- package/es/components/menu/menu.js.map +1 -1
- package/es/components/notification/notification.js +8 -3
- package/es/components/notification/notification.js.map +1 -1
- package/es/components/popover/popover.js.map +1 -1
- package/es/components/popover/positioning-utils.js.map +1 -1
- package/es/components/progress-bar/progress-bar.js +8 -2
- package/es/components/progress-bar/progress-bar.js.map +1 -1
- package/es/components/select/select.js +3 -1
- package/es/components/select/select.js.map +1 -1
- package/es/components/time/time-utils.js.map +1 -1
- package/es/components/time/time.js.map +1 -1
- package/es/components/tooltip/tooltip.js +3 -1
- package/es/components/tooltip/tooltip.js.map +1 -1
- package/es/index.js +0 -4
- package/es/index.js.map +1 -1
- package/es/new-components/base-button/base-button.js +3 -1
- package/es/new-components/base-button/base-button.js.map +1 -1
- package/es/new-components/base-button/base-button.module.css.js +1 -1
- package/es/new-components/box/box.js +5 -3
- package/es/new-components/box/box.js.map +1 -1
- package/es/new-components/box/box.module.css.js +1 -1
- package/es/new-components/box/width.module.css.js +4 -0
- package/es/new-components/box/width.module.css.js.map +1 -0
- package/es/new-components/button/button.js +2 -1
- package/es/new-components/button/button.js.map +1 -1
- package/es/new-components/button-link/button-link.js +2 -1
- package/es/new-components/button-link/button-link.js.map +1 -1
- package/es/new-components/checkbox-field/checkbox-field.js +27 -10
- package/es/new-components/checkbox-field/checkbox-field.js.map +1 -1
- package/es/new-components/checkbox-field/checkbox-field.module.css.js +1 -1
- package/es/new-components/checkbox-field/checkbox-icon.js +2 -1
- package/es/new-components/checkbox-field/checkbox-icon.js.map +1 -1
- package/es/new-components/columns/columns.js +4 -2
- package/es/new-components/columns/columns.js.map +1 -1
- package/es/new-components/divider/divider.js +5 -3
- package/es/new-components/divider/divider.js.map +1 -1
- package/es/new-components/divider/divider.module.css.js +1 -1
- package/es/new-components/heading/heading.js +2 -1
- package/es/new-components/heading/heading.js.map +1 -1
- package/es/new-components/hidden/hidden.js +2 -1
- package/es/new-components/hidden/hidden.js.map +1 -1
- package/es/new-components/icons/alert-icon.js +2 -1
- package/es/new-components/icons/alert-icon.js.map +1 -1
- package/es/new-components/inline/inline.js +2 -1
- package/es/new-components/inline/inline.js.map +1 -1
- package/es/new-components/loading/loading.js +6 -2
- package/es/new-components/loading/loading.js.map +1 -1
- package/es/new-components/modal/modal.js +32 -9
- package/es/new-components/modal/modal.js.map +1 -1
- package/es/new-components/modal/modal.module.css.js +1 -1
- package/es/new-components/password-field/password-field.js +2 -1
- package/es/new-components/password-field/password-field.js.map +1 -1
- package/es/new-components/select-field/select-field.js +2 -1
- package/es/new-components/select-field/select-field.js.map +1 -1
- package/es/new-components/select-field/select-field.module.css.js +1 -1
- package/es/new-components/stack/stack.js +5 -4
- package/es/new-components/stack/stack.js.map +1 -1
- package/es/new-components/switch-field/switch-field.js +28 -5
- package/es/new-components/switch-field/switch-field.js.map +1 -1
- package/es/new-components/switch-field/switch-field.module.css.js +1 -1
- package/es/new-components/tabs/tabs.js +10 -5
- package/es/new-components/tabs/tabs.js.map +1 -1
- package/es/new-components/tabs/tabs.module.css.js +1 -1
- package/es/new-components/text/text.js +2 -1
- package/es/new-components/text/text.js.map +1 -1
- package/es/new-components/text-area/text-area.js +3 -1
- package/es/new-components/text-area/text-area.js.map +1 -1
- package/es/new-components/text-area/text-area.module.css.js +1 -1
- package/es/new-components/text-field/text-field.js +2 -1
- package/es/new-components/text-field/text-field.js.map +1 -1
- package/es/new-components/text-field/text-field.module.css.js +1 -1
- package/es/new-components/text-link/text-link.js +2 -1
- package/es/new-components/text-link/text-link.js.map +1 -1
- package/lib/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/lib/components/deprecated-button/deprecated-button.js +1 -1
- package/lib/components/deprecated-button/deprecated-button.js.map +1 -1
- package/lib/components/deprecated-modal/deprecated-modal.js +1 -1
- package/lib/components/deprecated-modal/deprecated-modal.js.map +1 -1
- package/lib/components/dropdown/dropdown.js +1 -1
- package/lib/components/dropdown/dropdown.js.map +1 -1
- package/lib/components/keyboard-shortcut/keyboard-shortcut.js +1 -1
- package/lib/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/lib/components/menu/menu.js +1 -1
- package/lib/components/menu/menu.js.map +1 -1
- package/lib/components/notification/notification.d.ts +4 -2
- package/lib/components/notification/notification.js +1 -1
- package/lib/components/notification/notification.js.map +1 -1
- package/lib/components/progress-bar/progress-bar.d.ts +3 -1
- package/lib/components/progress-bar/progress-bar.js +1 -1
- package/lib/components/progress-bar/progress-bar.js.map +1 -1
- package/lib/components/select/select.js +1 -1
- package/lib/components/select/select.js.map +1 -1
- package/lib/components/tooltip/tooltip.js +1 -1
- package/lib/components/tooltip/tooltip.js.map +1 -1
- package/lib/index.d.ts +0 -4
- package/lib/index.js +1 -1
- package/lib/new-components/base-button/base-button.js +1 -1
- package/lib/new-components/base-button/base-button.js.map +1 -1
- package/lib/new-components/base-button/base-button.module.css.js +1 -1
- package/lib/new-components/box/box.d.ts +10 -9
- package/lib/new-components/box/box.js +1 -1
- package/lib/new-components/box/box.js.map +1 -1
- package/lib/new-components/box/box.module.css.js +1 -1
- package/lib/new-components/box/width.module.css.js +2 -0
- package/lib/new-components/box/width.module.css.js.map +1 -0
- package/lib/new-components/button/button.js +1 -1
- package/lib/new-components/button/button.js.map +1 -1
- package/lib/new-components/button-link/button-link.js +1 -1
- package/lib/new-components/button-link/button-link.js.map +1 -1
- package/lib/new-components/checkbox-field/checkbox-field.d.ts +15 -2
- package/lib/new-components/checkbox-field/checkbox-field.js +1 -1
- package/lib/new-components/checkbox-field/checkbox-field.js.map +1 -1
- package/lib/new-components/checkbox-field/checkbox-field.module.css.js +1 -1
- package/lib/new-components/checkbox-field/checkbox-icon.js +1 -1
- package/lib/new-components/checkbox-field/checkbox-icon.js.map +1 -1
- package/lib/new-components/columns/columns.js +1 -1
- package/lib/new-components/columns/columns.js.map +1 -1
- package/lib/new-components/common-types.d.ts +1 -0
- package/lib/new-components/divider/divider.d.ts +2 -2
- package/lib/new-components/divider/divider.js +1 -1
- package/lib/new-components/divider/divider.js.map +1 -1
- package/lib/new-components/divider/divider.module.css.js +1 -1
- package/lib/new-components/heading/heading.js +1 -1
- package/lib/new-components/heading/heading.js.map +1 -1
- package/lib/new-components/hidden/hidden.js +1 -1
- package/lib/new-components/hidden/hidden.js.map +1 -1
- package/lib/new-components/icons/alert-icon.js +1 -1
- package/lib/new-components/icons/alert-icon.js.map +1 -1
- package/lib/new-components/inline/inline.js +1 -1
- package/lib/new-components/inline/inline.js.map +1 -1
- package/lib/new-components/loading/loading.d.ts +8 -7
- package/lib/new-components/loading/loading.js +1 -1
- package/lib/new-components/loading/loading.js.map +1 -1
- package/lib/new-components/modal/modal.d.ts +7 -3
- package/lib/new-components/modal/modal.js +1 -1
- package/lib/new-components/modal/modal.js.map +1 -1
- package/lib/new-components/modal/modal.module.css.js +1 -1
- package/lib/new-components/password-field/password-field.js +1 -1
- package/lib/new-components/password-field/password-field.js.map +1 -1
- package/lib/new-components/select-field/select-field.js +1 -1
- package/lib/new-components/select-field/select-field.js.map +1 -1
- package/lib/new-components/select-field/select-field.module.css.js +1 -1
- package/lib/new-components/stack/stack.d.ts +3 -4
- package/lib/new-components/stack/stack.js +1 -1
- package/lib/new-components/stack/stack.js.map +1 -1
- package/lib/new-components/switch-field/switch-field.d.ts +9 -2
- package/lib/new-components/switch-field/switch-field.js +1 -1
- package/lib/new-components/switch-field/switch-field.js.map +1 -1
- package/lib/new-components/switch-field/switch-field.module.css.js +1 -1
- package/lib/new-components/tabs/tabs.js +1 -1
- package/lib/new-components/tabs/tabs.js.map +1 -1
- package/lib/new-components/tabs/tabs.module.css.js +1 -1
- package/lib/new-components/text/text.js +1 -1
- package/lib/new-components/text/text.js.map +1 -1
- package/lib/new-components/text-area/text-area.js +1 -1
- package/lib/new-components/text-area/text-area.js.map +1 -1
- package/lib/new-components/text-area/text-area.module.css.js +1 -1
- package/lib/new-components/text-field/text-field.js +1 -1
- package/lib/new-components/text-field/text-field.js.map +1 -1
- package/lib/new-components/text-field/text-field.module.css.js +1 -1
- package/lib/new-components/text-link/text-link.js +1 -1
- package/lib/new-components/text-link/text-link.js.map +1 -1
- package/package.json +15 -12
- package/styles/alert.css +2 -1
- package/styles/base-button.css +4 -3
- package/styles/base-button.module.css.css +1 -1
- package/styles/base-field.css +3 -2
- package/styles/box.css +3 -2
- package/styles/box.module.css.css +1 -1
- package/styles/checkbox-field.css +3 -3
- package/styles/checkbox-field.module.css.css +1 -1
- package/styles/color-picker.css +1 -1
- package/styles/columns.css +2 -1
- package/styles/deprecated-button.css +1 -1
- package/styles/deprecated-loading.css +1 -1
- package/styles/deprecated-modal.css +1 -1
- package/styles/divider.css +3 -2
- package/styles/divider.module.css.css +1 -1
- package/styles/dropdown.css +1 -1
- package/styles/heading.css +2 -1
- package/styles/hidden-visually.css +2 -1
- package/styles/hidden.css +2 -1
- package/styles/inline.css +2 -1
- package/styles/loading.css +3 -2
- package/styles/modal.css +6 -5
- package/styles/modal.module.css.css +1 -1
- package/styles/notice.css +2 -1
- package/styles/password-field.css +4 -3
- package/styles/progress-bar.css +5 -0
- package/styles/reactist.css +16 -19
- package/styles/select-field.css +4 -3
- package/styles/select-field.module.css.css +1 -1
- package/styles/spinner.module.css.css +1 -1
- package/styles/stack.css +3 -2
- package/styles/switch-field.css +4 -3
- package/styles/switch-field.module.css.css +1 -1
- package/styles/tabs.css +3 -2
- package/styles/tabs.module.css.css +1 -1
- package/styles/text-area.css +4 -3
- package/styles/text-area.module.css.css +1 -1
- package/styles/text-field.css +4 -3
- package/styles/text-field.module.css.css +1 -1
- package/styles/text-link.css +2 -1
- package/styles/text.css +2 -1
- package/styles/width.module.css.css +1 -0
- package/es/components/error-message/error-message.js +0 -90
- package/es/components/error-message/error-message.js.map +0 -1
- package/es/components/error-message/index.js +0 -6
- package/es/components/error-message/index.js.map +0 -1
- package/es/components/icon/icon.js +0 -96
- package/es/components/icon/icon.js.map +0 -1
- package/es/components/icon/index.js +0 -6
- package/es/components/icon/index.js.map +0 -1
- package/es/components/icons/ThinQuestionMarkIcon.svg.js +0 -24
- package/es/components/icons/ThinQuestionMarkIcon.svg.js.map +0 -1
- package/es/components/icons/ThreeDotsIcon.svg.js +0 -40
- package/es/components/icons/ThreeDotsIcon.svg.js.map +0 -1
- package/es/components/range-input/index.js +0 -6
- package/es/components/range-input/index.js.map +0 -1
- package/es/components/range-input/range-input.js +0 -55
- package/es/components/range-input/range-input.js.map +0 -1
- package/es/components/tip/index.js +0 -6
- package/es/components/tip/index.js.map +0 -1
- package/es/components/tip/tip.js +0 -30
- package/es/components/tip/tip.js.map +0 -1
- package/lib/components/error-message/error-message.d.ts +0 -23
- package/lib/components/error-message/error-message.js +0 -2
- package/lib/components/error-message/error-message.js.map +0 -1
- package/lib/components/error-message/error-message.test.d.ts +0 -1
- package/lib/components/error-message/index.d.ts +0 -2
- package/lib/components/error-message/index.js +0 -2
- package/lib/components/error-message/index.js.map +0 -1
- package/lib/components/icon/icon.d.ts +0 -31
- package/lib/components/icon/icon.js +0 -2
- package/lib/components/icon/icon.js.map +0 -1
- package/lib/components/icon/icon.test.d.ts +0 -1
- package/lib/components/icon/index.d.ts +0 -2
- package/lib/components/icon/index.js +0 -2
- package/lib/components/icon/index.js.map +0 -1
- package/lib/components/icons/ThinQuestionMarkIcon.svg.js +0 -2
- package/lib/components/icons/ThinQuestionMarkIcon.svg.js.map +0 -1
- package/lib/components/icons/ThreeDotsIcon.svg.js +0 -2
- package/lib/components/icons/ThreeDotsIcon.svg.js.map +0 -1
- package/lib/components/range-input/index.d.ts +0 -2
- package/lib/components/range-input/index.js +0 -2
- package/lib/components/range-input/index.js.map +0 -1
- package/lib/components/range-input/range-input.d.ts +0 -25
- package/lib/components/range-input/range-input.js +0 -2
- package/lib/components/range-input/range-input.js.map +0 -1
- package/lib/components/range-input/range-input.test.d.ts +0 -1
- package/lib/components/tip/index.d.ts +0 -2
- package/lib/components/tip/index.js +0 -2
- package/lib/components/tip/index.js.map +0 -1
- package/lib/components/tip/tip.d.ts +0 -20
- package/lib/components/tip/tip.js +0 -2
- package/lib/components/tip/tip.js.map +0 -1
- package/lib/components/tip/tip.test.d.ts +0 -1
- package/styles/error-message.css +0 -1
- package/styles/icon.css +0 -2
- package/styles/range-input.css +0 -1
- package/styles/tip.css +0 -4
|
@@ -14,35 +14,23 @@ var Tab$1 = require('reakit/Tab');
|
|
|
14
14
|
var dialog = require('@reach/dialog');
|
|
15
15
|
var FocusLock = _interopDefault(require('react-focus-lock'));
|
|
16
16
|
var ReactDOM = _interopDefault(require('react-dom'));
|
|
17
|
-
var PropTypes = _interopDefault(require('prop-types'));
|
|
18
17
|
var dayjs = _interopDefault(require('dayjs'));
|
|
19
18
|
var LocalizedFormat = _interopDefault(require('dayjs/plugin/localizedFormat'));
|
|
20
19
|
var Reakit = require('reakit/Menu');
|
|
21
20
|
var Popover$1 = require('reakit/Popover');
|
|
22
21
|
|
|
23
|
-
function _defineProperty(obj, key, value) {
|
|
24
|
-
if (key in obj) {
|
|
25
|
-
Object.defineProperty(obj, key, {
|
|
26
|
-
value: value,
|
|
27
|
-
enumerable: true,
|
|
28
|
-
configurable: true,
|
|
29
|
-
writable: true
|
|
30
|
-
});
|
|
31
|
-
} else {
|
|
32
|
-
obj[key] = value;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return obj;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
22
|
function ownKeys(object, enumerableOnly) {
|
|
39
23
|
var keys = Object.keys(object);
|
|
40
24
|
|
|
41
25
|
if (Object.getOwnPropertySymbols) {
|
|
42
26
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
27
|
+
|
|
28
|
+
if (enumerableOnly) {
|
|
29
|
+
symbols = symbols.filter(function (sym) {
|
|
30
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
46
34
|
keys.push.apply(keys, symbols);
|
|
47
35
|
}
|
|
48
36
|
|
|
@@ -69,10 +57,35 @@ function _objectSpread2(target) {
|
|
|
69
57
|
return target;
|
|
70
58
|
}
|
|
71
59
|
|
|
60
|
+
function _defineProperty(obj, key, value) {
|
|
61
|
+
if (key in obj) {
|
|
62
|
+
Object.defineProperty(obj, key, {
|
|
63
|
+
value: value,
|
|
64
|
+
enumerable: true,
|
|
65
|
+
configurable: true,
|
|
66
|
+
writable: true
|
|
67
|
+
});
|
|
68
|
+
} else {
|
|
69
|
+
obj[key] = value;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
|
|
72
75
|
function _inheritsLoose(subClass, superClass) {
|
|
73
76
|
subClass.prototype = Object.create(superClass.prototype);
|
|
74
77
|
subClass.prototype.constructor = subClass;
|
|
75
|
-
|
|
78
|
+
|
|
79
|
+
_setPrototypeOf(subClass, superClass);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function _setPrototypeOf(o, p) {
|
|
83
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
84
|
+
o.__proto__ = p;
|
|
85
|
+
return o;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
return _setPrototypeOf(o, p);
|
|
76
89
|
}
|
|
77
90
|
|
|
78
91
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -183,12 +196,15 @@ function mapResponsiveProp(fromValue, mapper) {
|
|
|
183
196
|
};
|
|
184
197
|
}
|
|
185
198
|
|
|
186
|
-
var modules_54d944f2 = {"box":"
|
|
199
|
+
var modules_54d944f2 = {"box":"_2a8ae321","position-absolute":"_29e047b9","position-fixed":"fe54fea9","position-relative":"_6a95a38d","position-sticky":"ccc689fe","tablet-position-absolute":"aad88ae1","tablet-position-fixed":"_2044ccd3","tablet-position-relative":"a0904035","tablet-position-sticky":"_770506a5","desktop-position-absolute":"_5a954855","desktop-position-fixed":"_2dc73359","desktop-position-relative":"_6ab005ed","desktop-position-sticky":"fa60c726","display-block":"_221ad6a3","display-flex":"_6764f5bc","display-inline":"_50c37dba","display-inlineBlock":"_16546fe0","display-inlineFlex":"_2782a687","display-none":"b70b4fb7","tablet-display-block":"_5b3547cc","tablet-display-flex":"_099432e6","tablet-display-inline":"d99fcd80","tablet-display-inlineBlock":"_8f160568","tablet-display-inlineFlex":"_5b7b4be4","tablet-display-none":"_553721f8","desktop-display-block":"_6b86b317","desktop-display-flex":"eb20eda4","desktop-display-inline":"be19d1e9","desktop-display-inlineBlock":"dcf7c80a","desktop-display-inlineFlex":"e4f02b1f","desktop-display-none":"_3974e6d8","flexDirection-column":"daf5e366","flexDirection-row":"_47f2ddb7","tablet-flexDirection-column":"_27490d54","tablet-flexDirection-row":"_0317f51b","desktop-flexDirection-column":"_97590faa","desktop-flexDirection-row":"bf5d416e","flexWrap-wrap":"_210c1f9e","flexWrap-nowrap":"_2c775d07","flexShrink-0":"_25cae61d","flexGrow-0":"_6068a9cf","flexGrow-1":"c63f682c","alignItems-flexStart":"_0e774dfc","alignItems-center":"_5695a5d5","alignItems-flexEnd":"_139515d8","alignItems-baseline":"cea92f0a","tablet-alignItems-flexStart":"_3dc7ec16","tablet-alignItems-center":"_7993a7fa","tablet-alignItems-flexEnd":"b90d7edc","tablet-alignItems-baseline":"_7bd633f1","desktop-alignItems-flexStart":"_260d232b","desktop-alignItems-center":"_9e2e0a07","desktop-alignItems-flexEnd":"fc97448b","desktop-alignItems-baseline":"_0f76a529","justifyContent-flexStart":"_21d759bf","justifyContent-center":"ff70e049","justifyContent-flexEnd":"ae15d5ad","justifyContent-spaceAround":"_84374266","justifyContent-spaceBetween":"e72a8ca2","justifyContent-spaceEvenly":"_86224cb5","tablet-justifyContent-flexStart":"dceedee0","tablet-justifyContent-center":"_34ab3dab","tablet-justifyContent-flexEnd":"d5da2eb9","tablet-justifyContent-spaceAround":"_1677560d","tablet-justifyContent-spaceBetween":"ef77b2e7","tablet-justifyContent-spaceEvenly":"_685ef848","desktop-justifyContent-flexStart":"_695667f2","desktop-justifyContent-center":"ebb180cc","desktop-justifyContent-flexEnd":"bd5bb675","desktop-justifyContent-spaceBetween":"ae08a70c","overflow-hidden":"_4afa6fac","overflow-auto":"d8d342e4","overflow-visible":"c104da68","overflow-scroll":"_2d6bc0d0","height-full":"_99458759","bg-default":"aadb417c","bg-aside":"_36dca662","bg-highlight":"a1054115","bg-selected":"d17b4e9a","borderRadius-standard":"e3a3ee05","borderRadius-full":"be0cb60b","border-primary":"b9999f44","border-secondary":"_91063996","border-tertiary":"_0902977e","textAlign-start":"a7c58898","textAlign-center":"_2c9a262a","textAlign-end":"_46f07e93","textAlign-justify":"e526003e","tablet-textAlign-start":"_26864fce","tablet-textAlign-center":"e8f51d21","tablet-textAlign-end":"c1dc8b90","tablet-textAlign-justify":"_36bb3fa9","desktop-textAlign-start":"_942e35b0","desktop-textAlign-center":"_92da5c98","desktop-textAlign-end":"_2b0ecaf6","desktop-textAlign-justify":"_3dd24641"};
|
|
187
200
|
|
|
188
201
|
var modules_b537a8ee = {"paddingTop-xsmall":"c4803194","paddingTop-small":"_4e9ab24b","paddingTop-medium":"_1d226e27","paddingTop-large":"eb6097f1","paddingTop-xlarge":"d3229ba4","paddingTop-xxlarge":"_47978ba4","tablet-paddingTop-xsmall":"f987719c","tablet-paddingTop-small":"_8dbc4b4d","tablet-paddingTop-medium":"ae44fe07","tablet-paddingTop-large":"ffe9548d","tablet-paddingTop-xlarge":"f2b76a44","tablet-paddingTop-xxlarge":"c6eb8f43","desktop-paddingTop-xsmall":"_8699b560","desktop-paddingTop-small":"_02c374b7","desktop-paddingTop-medium":"_0dd0332f","desktop-paddingTop-large":"da55f1f6","desktop-paddingTop-xlarge":"_8ef2a278","desktop-paddingTop-xxlarge":"_8b493b28","paddingRight-xsmall":"_211eebc7","paddingRight-small":"ad0ccf15","paddingRight-medium":"a03e39af","paddingRight-large":"f0941ead","paddingRight-xlarge":"e47c5a43","paddingRight-xxlarge":"e849a5cf","tablet-paddingRight-xsmall":"_85374228","tablet-paddingRight-small":"_89df37b9","tablet-paddingRight-medium":"_1cc50ebe","tablet-paddingRight-large":"_1060982b","tablet-paddingRight-xlarge":"be58847d","tablet-paddingRight-xxlarge":"_45093484","desktop-paddingRight-xsmall":"f8d99d6a","desktop-paddingRight-small":"efa076d9","desktop-paddingRight-medium":"e59caa64","desktop-paddingRight-large":"da42f46a","desktop-paddingRight-xlarge":"b3ee2580","desktop-paddingRight-xxlarge":"_3ef94658","paddingBottom-xsmall":"b0e6eab4","paddingBottom-small":"_9510d053","paddingBottom-medium":"d7af60c9","paddingBottom-large":"b75f86cd","paddingBottom-xlarge":"fbd4ce29","paddingBottom-xxlarge":"_33e3ad63","tablet-paddingBottom-xsmall":"f0302da7","tablet-paddingBottom-small":"_4f9b8012","tablet-paddingBottom-medium":"_4333e20e","tablet-paddingBottom-large":"_30bbc76c","tablet-paddingBottom-xlarge":"ba5a4008","tablet-paddingBottom-xxlarge":"_423a3b1a","desktop-paddingBottom-xsmall":"b40139b7","desktop-paddingBottom-small":"f96071fa","desktop-paddingBottom-medium":"fe803c9a","desktop-paddingBottom-large":"_01686eb9","desktop-paddingBottom-xlarge":"afa763d8","desktop-paddingBottom-xxlarge":"a95785f1","paddingLeft-xsmall":"cad4e2ec","paddingLeft-small":"d70b3c17","paddingLeft-medium":"_8c851bd6","paddingLeft-large":"_078feb3c","paddingLeft-xlarge":"_76ab968c","paddingLeft-xxlarge":"aaca85d7","tablet-paddingLeft-xsmall":"_5eb0e5aa","tablet-paddingLeft-small":"_0384fb4f","tablet-paddingLeft-medium":"edffff6f","tablet-paddingLeft-large":"_873b9a46","tablet-paddingLeft-xlarge":"_89105db5","tablet-paddingLeft-xxlarge":"db1966fe","desktop-paddingLeft-xsmall":"b17f826b","desktop-paddingLeft-small":"_6dc83610","desktop-paddingLeft-medium":"_3421b8b2","desktop-paddingLeft-large":"_68cec7a6","desktop-paddingLeft-xlarge":"_94bde020","desktop-paddingLeft-xxlarge":"b94ee579"};
|
|
189
202
|
|
|
190
203
|
var modules_131405ac = {"marginTop-xsmall":"c7813d79","marginTop-small":"d3449da6","marginTop-medium":"_4ea254c1","marginTop-large":"c0844f64","marginTop-xlarge":"_213145b4","marginTop-xxlarge":"df61c84c","marginTop--xsmall":"efe72b13","marginTop--small":"_870c2768","marginTop--medium":"_0b927c57","marginTop--large":"_461db014","marginTop--xlarge":"_2a3a8cb8","marginTop--xxlarge":"_9bcda921","tablet-marginTop-xsmall":"_6add01e4","tablet-marginTop-small":"_735ef86b","tablet-marginTop-medium":"_0477d068","tablet-marginTop-large":"_2c90af97","tablet-marginTop-xlarge":"_63a82db6","tablet-marginTop-xxlarge":"_03cd7726","tablet-marginTop--xsmall":"c986a62a","tablet-marginTop--small":"be2bdcdd","tablet-marginTop--medium":"_47d2686b","tablet-marginTop--large":"_25e5af9d","tablet-marginTop--xlarge":"ee82f441","tablet-marginTop--xxlarge":"a6f9d404","desktop-marginTop-xsmall":"_4d8d9a36","desktop-marginTop-small":"e813cee7","desktop-marginTop-medium":"_56975b7d","desktop-marginTop-large":"_53b367f6","desktop-marginTop-xlarge":"d69e7311","desktop-marginTop-xxlarge":"_92f57c7e","desktop-marginTop--xsmall":"_96880d3e","desktop-marginTop--small":"dc3f3555","desktop-marginTop--medium":"_86dd06bb","desktop-marginTop--large":"c93ef12e","desktop-marginTop--xlarge":"bc8fd4a2","desktop-marginTop--xxlarge":"b12a9124","marginRight-xsmall":"_6016f4fb","marginRight-small":"b85e3dfa","marginRight-medium":"_297575f4","marginRight-large":"b401ac6c","marginRight-xlarge":"dc3ec387","marginRight-xxlarge":"_24694604","marginRight--xsmall":"_8e9bf2ee","marginRight--small":"ae9d1115","marginRight--medium":"_14e46fc3","marginRight--large":"_3370631b","marginRight--xlarge":"_3f0e9b50","marginRight--xxlarge":"bc13e010","tablet-marginRight-xsmall":"_6fa1aae3","tablet-marginRight-small":"_2976c5cb","tablet-marginRight-medium":"_38d94802","tablet-marginRight-large":"db9569b5","tablet-marginRight-xlarge":"_4a52f06d","tablet-marginRight-xxlarge":"_8a0f0410","tablet-marginRight--xsmall":"e7d40e9d","tablet-marginRight--small":"_680fde91","tablet-marginRight--medium":"_021010ca","tablet-marginRight--large":"_9e52c87c","tablet-marginRight--xlarge":"_4d602613","tablet-marginRight--xxlarge":"_21b1b65a","desktop-marginRight-xsmall":"_7321bc07","desktop-marginRight-small":"fa1721f4","desktop-marginRight-medium":"_3fd7b4b8","desktop-marginRight-large":"_4fdc2f74","desktop-marginRight-xlarge":"c0254761","desktop-marginRight-xxlarge":"_710a5f09","desktop-marginRight--xsmall":"e08bee7f","desktop-marginRight--small":"e5ab73d2","desktop-marginRight--medium":"_5e731477","desktop-marginRight--large":"_0f57a22e","desktop-marginRight--xlarge":"_25f26ed3","desktop-marginRight--xxlarge":"_11a3b4e0","marginBottom-xsmall":"_6a4f69f7","marginBottom-small":"db26b033","marginBottom-medium":"c7313022","marginBottom-large":"a5885889","marginBottom-xlarge":"_33dfbd8e","marginBottom-xxlarge":"_795ad2de","marginBottom--xsmall":"a329dbd3","marginBottom--small":"_85e739fb","marginBottom--medium":"_681f65ff","marginBottom--large":"caf50d8f","marginBottom--xlarge":"_1e084cbf","marginBottom--xxlarge":"_3dfb1c7e","tablet-marginBottom-xsmall":"ef4735be","tablet-marginBottom-small":"de55afba","tablet-marginBottom-medium":"_0e33ce88","tablet-marginBottom-large":"_8ca391fc","tablet-marginBottom-xlarge":"_3a609d23","tablet-marginBottom-xxlarge":"_3e1177e4","tablet-marginBottom--xsmall":"d384884d","tablet-marginBottom--small":"_75254cec","tablet-marginBottom--medium":"_5d9f127d","tablet-marginBottom--large":"_835f1089","tablet-marginBottom--xlarge":"dad52a72","tablet-marginBottom--xxlarge":"_8703a4bf","desktop-marginBottom-xsmall":"_90fd20e9","desktop-marginBottom-small":"f3769191","desktop-marginBottom-medium":"_156410f8","desktop-marginBottom-large":"_7fed74d0","desktop-marginBottom-xlarge":"_477dc10e","desktop-marginBottom-xxlarge":"_85c82d89","desktop-marginBottom--xsmall":"_4f09c1e0","desktop-marginBottom--small":"_9523e048","desktop-marginBottom--medium":"efe10240","desktop-marginBottom--large":"c43971e6","desktop-marginBottom--xlarge":"f9b4da15","desktop-marginBottom--xxlarge":"a10fdf70","marginLeft-xsmall":"f9be90b4","marginLeft-small":"f53218d5","marginLeft-medium":"c4a9b3ab","marginLeft-large":"_5755e2c3","marginLeft-xlarge":"_33fc9354","marginLeft-xxlarge":"_4749a3bf","marginLeft--xsmall":"c76cb3c7","marginLeft--small":"_96003c07","marginLeft--medium":"_09988d07","marginLeft--large":"b4a486f6","marginLeft--xlarge":"f396e75e","marginLeft--xxlarge":"_81d1f26d","tablet-marginLeft-xsmall":"_0a46e8f1","tablet-marginLeft-small":"_57c970af","tablet-marginLeft-medium":"_4b6099d3","tablet-marginLeft-large":"_378fcff5","tablet-marginLeft-xlarge":"f8785663","tablet-marginLeft-xxlarge":"_72f957ee","tablet-marginLeft--xsmall":"_2288c7e1","tablet-marginLeft--small":"b27c1c05","tablet-marginLeft--medium":"_702cbb13","tablet-marginLeft--large":"_1a2748b4","tablet-marginLeft--xlarge":"b8c043a5","tablet-marginLeft--xxlarge":"_8dc8ff63","desktop-marginLeft-xsmall":"c2af646d","desktop-marginLeft-small":"c03d07be","desktop-marginLeft-medium":"_915fb1d3","desktop-marginLeft-large":"_64214ee1","desktop-marginLeft-xlarge":"_7be4a22c","desktop-marginLeft-xxlarge":"_5ec0a401","desktop-marginLeft--xsmall":"ea29f1ee","desktop-marginLeft--small":"c26652c7","desktop-marginLeft--medium":"c24f6af9","desktop-marginLeft--large":"c2671f27","desktop-marginLeft--xlarge":"cc51a04e","desktop-marginLeft--xxlarge":"fd581f54"};
|
|
191
204
|
|
|
205
|
+
var modules_89b7671c = {"minWidth-0":"_68ab48ca","minWidth-xsmall":"_6fa2b565","minWidth-small":"dd50fabd","minWidth-medium":"e7e2c808","minWidth-large":"_6abbe25e","minWidth-xlarge":"_54f479ac","maxWidth-xsmall":"_148492bc","maxWidth-small":"bd023b96","maxWidth-medium":"e102903f","maxWidth-large":"_0e8d76d7","maxWidth-xlarge":"_47a031d0","maxWidth-full":"cd4c8183","width-0":"_5f5959e8","width-full":"_8c75067a","width-auto":"_56a651f6","width-maxContent":"_26f87bb8","width-minContent":"_07a6ab44","width-fitContent":"a87016fa","width-xsmall":"_1a972e50","width-small":"c96d8261","width-medium":"f3829d42","width-large":"_2caef228","width-xlarge":"_069e1491"};
|
|
206
|
+
|
|
207
|
+
var _excluded = ["as", "position", "display", "flexDirection", "flexWrap", "flexGrow", "flexShrink", "alignItems", "justifyContent", "overflow", "width", "height", "background", "border", "borderRadius", "minWidth", "maxWidth", "textAlign", "padding", "paddingY", "paddingX", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "margin", "marginY", "marginX", "marginTop", "marginRight", "marginBottom", "marginLeft", "className", "children"];
|
|
192
208
|
var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
|
|
193
209
|
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
194
210
|
|
|
@@ -230,7 +246,7 @@ var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
|
|
|
230
246
|
marginLeft = _ref.marginLeft,
|
|
231
247
|
className = _ref.className,
|
|
232
248
|
children = _ref.children,
|
|
233
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
249
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
234
250
|
|
|
235
251
|
var resolvedPaddingTop = (_ref2 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : paddingY) !== null && _ref2 !== void 0 ? _ref2 : padding;
|
|
236
252
|
var resolvedPaddingRight = (_ref3 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : paddingX) !== null && _ref3 !== void 0 ? _ref3 : padding;
|
|
@@ -242,23 +258,25 @@ var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
|
|
|
242
258
|
var resolvedMarginLeft = (_ref9 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : marginX) !== null && _ref9 !== void 0 ? _ref9 : margin;
|
|
243
259
|
var omitFlex = !display || typeof display === 'string' && display !== 'flex' && display !== 'inlineFlex';
|
|
244
260
|
return /*#__PURE__*/React.createElement(component, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
245
|
-
className: classNames(className, modules_54d944f2.box, display ? getClassNames(modules_54d944f2, 'display', display) : null, position !== 'static' ? getClassNames(modules_54d944f2, 'position', position) : null, minWidth != null ? getClassNames(
|
|
261
|
+
className: classNames(className, modules_54d944f2.box, display ? getClassNames(modules_54d944f2, 'display', display) : null, position !== 'static' ? getClassNames(modules_54d944f2, 'position', position) : null, minWidth != null ? getClassNames(modules_89b7671c, 'minWidth', String(minWidth)) : null, getClassNames(modules_89b7671c, 'maxWidth', maxWidth), textAlign !== 'start' ? getClassNames(modules_54d944f2, 'textAlign', textAlign) : null, // padding
|
|
246
262
|
getClassNames(modules_b537a8ee, 'paddingTop', resolvedPaddingTop), getClassNames(modules_b537a8ee, 'paddingRight', resolvedPaddingRight), getClassNames(modules_b537a8ee, 'paddingBottom', resolvedPaddingBottom), getClassNames(modules_b537a8ee, 'paddingLeft', resolvedPaddingLeft), // margin
|
|
247
263
|
getClassNames(modules_131405ac, 'marginTop', resolvedMarginTop), getClassNames(modules_131405ac, 'marginRight', resolvedMarginRight), getClassNames(modules_131405ac, 'marginBottom', resolvedMarginBottom), getClassNames(modules_131405ac, 'marginLeft', resolvedMarginLeft), // flex props
|
|
248
264
|
omitFlex ? null : getClassNames(modules_54d944f2, 'flexDirection', flexDirection), omitFlex ? null : getClassNames(modules_54d944f2, 'flexWrap', flexWrap), omitFlex ? null : getClassNames(modules_54d944f2, 'alignItems', alignItems), omitFlex ? null : getClassNames(modules_54d944f2, 'justifyContent', justifyContent), flexShrink != null ? getClassNames(modules_54d944f2, 'flexShrink', String(flexShrink)) : null, flexGrow != null ? getClassNames(modules_54d944f2, 'flexGrow', String(flexGrow)) : null, // other props
|
|
249
|
-
getClassNames(modules_54d944f2, 'overflow', overflow), getClassNames(
|
|
265
|
+
getClassNames(modules_54d944f2, 'overflow', overflow), width != null ? getClassNames(modules_89b7671c, 'width', String(width)) : null, getClassNames(modules_54d944f2, 'height', height), getClassNames(modules_54d944f2, 'bg', background), borderRadius !== 'none' ? getClassNames(modules_54d944f2, 'borderRadius', borderRadius) : null, border !== 'none' ? getClassNames(modules_54d944f2, 'border', border) : null) || undefined,
|
|
250
266
|
ref: ref
|
|
251
267
|
}), children);
|
|
252
268
|
});
|
|
253
269
|
|
|
254
270
|
var modules_67f2d07a = {"space-xsmall":"_6f59c771","column":"_91e05f0f","space-small":"_5a55af26","space-medium":"fa261310","space-large":"_6ebd4e46","space-xlarge":"_55ce4aea","space-xxlarge":"_04c9c3ac","tablet-space-xsmall":"ab76d8cd","tablet-space-small":"_14629bfb","tablet-space-medium":"_5b4e39ea","tablet-space-large":"ba270182","tablet-space-xlarge":"b96e7ec7","tablet-space-xxlarge":"d276612c","desktop-space-xsmall":"d7a73106","desktop-space-small":"_8f5e0e9e","desktop-space-medium":"_3a168411","desktop-space-large":"_0abcc12e","desktop-space-xlarge":"e0bafc60","desktop-space-xxlarge":"d2df9afd","columnWidth-auto":"b18d0b47","columnWidth-1-2":"_102a6b27","columnWidth-1-3":"_829872fe","columnWidth-2-3":"cf5aef9a","columnWidth-1-4":"_931bf714","columnWidth-3-4":"b0303130","columnWidth-1-5":"f6589a6f","columnWidth-2-5":"_2823aed9","columnWidth-3-5":"d00ba3bb","columnWidth-4-5":"_338f2d7c","tablet-tablet-space-xsmall":"_06582234"};
|
|
255
271
|
|
|
272
|
+
var _excluded$1 = ["width", "children", "exceptionallySetClassName"],
|
|
273
|
+
_excluded2 = ["space", "align", "alignY", "collapseBelow", "children", "exceptionallySetClassName"];
|
|
256
274
|
var Column = /*#__PURE__*/polymorphicComponent(function Column(_ref, ref) {
|
|
257
275
|
var _ref$width = _ref.width,
|
|
258
276
|
width = _ref$width === void 0 ? 'auto' : _ref$width,
|
|
259
277
|
children = _ref.children,
|
|
260
278
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
261
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
279
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
262
280
|
|
|
263
281
|
return /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
264
282
|
className: [exceptionallySetClassName, modules_67f2d07a.column, width !== 'content' ? getClassNames(modules_67f2d07a, 'columnWidth', width.replace('/', '-')) : null],
|
|
@@ -278,7 +296,7 @@ var Columns = /*#__PURE__*/polymorphicComponent(function Columns(_ref2, ref) {
|
|
|
278
296
|
collapseBelow = _ref2.collapseBelow,
|
|
279
297
|
children = _ref2.children,
|
|
280
298
|
exceptionallySetClassName = _ref2.exceptionallySetClassName,
|
|
281
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
299
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
282
300
|
|
|
283
301
|
return /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
284
302
|
className: [exceptionallySetClassName, getClassNames(modules_67f2d07a, 'space', space)],
|
|
@@ -301,21 +319,24 @@ var Columns = /*#__PURE__*/polymorphicComponent(function Columns(_ref2, ref) {
|
|
|
301
319
|
}), children);
|
|
302
320
|
});
|
|
303
321
|
|
|
304
|
-
var modules_c742c4d7 = {"
|
|
322
|
+
var modules_c742c4d7 = {"weight-primary":"_3f3a401c","weight-secondary":"_03b05b70","weight-tertiary":"b6f67ff8"};
|
|
323
|
+
|
|
324
|
+
var _excluded$2 = ["weight"];
|
|
305
325
|
|
|
306
326
|
function Divider(_ref) {
|
|
307
327
|
var _ref$weight = _ref.weight,
|
|
308
|
-
weight = _ref$weight === void 0 ? '
|
|
309
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
328
|
+
weight = _ref$weight === void 0 ? 'tertiary' : _ref$weight,
|
|
329
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
310
330
|
|
|
311
331
|
return /*#__PURE__*/React.createElement(Box, Object.assign({
|
|
312
332
|
as: "hr",
|
|
313
|
-
className:
|
|
333
|
+
className: getClassNames(modules_c742c4d7, 'weight', weight)
|
|
314
334
|
}, props));
|
|
315
335
|
}
|
|
316
336
|
|
|
317
337
|
var modules_da5d5c21 = {"space-xsmall":"_6b1279e0","space-small":"_0d82c42d","space-medium":"_556714e1","space-large":"e90b43fb","space-xlarge":"a9c34345","space-xxlarge":"aa102efe","tablet-space-xsmall":"_34d16157","tablet-space-small":"c7e0e54f","tablet-space-medium":"_7f2a4e4b","tablet-space-large":"ae256487","tablet-space-xlarge":"e88be0f7","tablet-space-xxlarge":"dc7bcb18","desktop-space-xsmall":"_853f3012","desktop-space-small":"_3bfaf758","desktop-space-medium":"_36462a93","desktop-space-large":"e73081b7","desktop-space-xlarge":"e22ec9dd","desktop-space-xxlarge":"_4a20bd12"};
|
|
318
338
|
|
|
339
|
+
var _excluded$3 = ["as", "space", "align", "alignY", "children", "exceptionallySetClassName"];
|
|
319
340
|
var Inline = /*#__PURE__*/polymorphicComponent(function Inline(_ref, ref) {
|
|
320
341
|
var as = _ref.as,
|
|
321
342
|
space = _ref.space,
|
|
@@ -325,7 +346,7 @@ var Inline = /*#__PURE__*/polymorphicComponent(function Inline(_ref, ref) {
|
|
|
325
346
|
alignY = _ref$alignY === void 0 ? 'center' : _ref$alignY,
|
|
326
347
|
children = _ref.children,
|
|
327
348
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
328
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
349
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
329
350
|
|
|
330
351
|
return /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
331
352
|
as: as,
|
|
@@ -344,16 +365,17 @@ var Inline = /*#__PURE__*/polymorphicComponent(function Inline(_ref, ref) {
|
|
|
344
365
|
|
|
345
366
|
var modules_3af3b7ac = {"space-xsmall":"_7b475ead","space-small":"_5641699f","space-medium":"_1a1c63e4","space-large":"_560f80a0","space-xlarge":"_84ffebbc","space-xxlarge":"b60a65cb","tablet-space-xsmall":"d808f5c3","tablet-space-small":"a51c76b3","tablet-space-medium":"_7185a7aa","tablet-space-large":"af82e610","tablet-space-xlarge":"_88b4ff46","tablet-space-xxlarge":"_9de15321","desktop-space-xsmall":"_6fb32d20","desktop-space-small":"_07ee315a","desktop-space-medium":"a270d7ec","desktop-space-large":"ea6ebb29","desktop-space-xlarge":"_35b36178","desktop-space-xxlarge":"_56c7dc23"};
|
|
346
367
|
|
|
368
|
+
var _excluded$4 = ["as", "space", "align", "dividers", "children", "exceptionallySetClassName"];
|
|
347
369
|
var Stack = /*#__PURE__*/polymorphicComponent(function Stack(_ref, ref) {
|
|
348
370
|
var as = _ref.as,
|
|
349
371
|
space = _ref.space,
|
|
350
372
|
_ref$align = _ref.align,
|
|
351
373
|
align = _ref$align === void 0 ? 'start' : _ref$align,
|
|
352
374
|
_ref$dividers = _ref.dividers,
|
|
353
|
-
dividers = _ref$dividers === void 0 ?
|
|
375
|
+
dividers = _ref$dividers === void 0 ? 'none' : _ref$dividers,
|
|
354
376
|
children = _ref.children,
|
|
355
377
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
356
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
378
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
357
379
|
|
|
358
380
|
var alignProps = align === 'start' ? undefined : {
|
|
359
381
|
width: 'full',
|
|
@@ -367,15 +389,16 @@ var Stack = /*#__PURE__*/polymorphicComponent(function Stack(_ref, ref) {
|
|
|
367
389
|
as: as,
|
|
368
390
|
className: [exceptionallySetClassName, getClassNames(modules_3af3b7ac, 'space', space)],
|
|
369
391
|
ref: ref
|
|
370
|
-
}), dividers ? React.Children.map(flattenChildren(children), function (child, index) {
|
|
392
|
+
}), dividers !== 'none' ? React.Children.map(flattenChildren(children), function (child, index) {
|
|
371
393
|
return index > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
|
|
372
|
-
weight:
|
|
394
|
+
weight: dividers
|
|
373
395
|
}), child) : child;
|
|
374
396
|
}) : children);
|
|
375
397
|
});
|
|
376
398
|
|
|
377
399
|
var modules_4689e97e = {"hiddenOnPrint":"_0e595dea"};
|
|
378
400
|
|
|
401
|
+
var _excluded$5 = ["display", "children", "exceptionallySetClassName"];
|
|
379
402
|
/**
|
|
380
403
|
* A component that allows to specify how to hide itself on certain responsive screen sizes, or on
|
|
381
404
|
* print media.
|
|
@@ -390,7 +413,7 @@ var Hidden = /*#__PURE__*/polymorphicComponent(function Hidden(_ref, ref) {
|
|
|
390
413
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
391
414
|
children = _ref.children,
|
|
392
415
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
393
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
416
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
394
417
|
|
|
395
418
|
var hiddenOnPrint = 'print' in props && props.print;
|
|
396
419
|
var hiddenOnDesktop = ('above' in props);
|
|
@@ -439,6 +462,7 @@ var HiddenVisually = /*#__PURE__*/polymorphicComponent(function HiddenVisually(p
|
|
|
439
462
|
}));
|
|
440
463
|
});
|
|
441
464
|
|
|
465
|
+
var _excluded$6 = ["tone"];
|
|
442
466
|
var alertIconForTone = {
|
|
443
467
|
info: AlertInfoIcon,
|
|
444
468
|
positive: AlertPositiveIcon,
|
|
@@ -448,7 +472,7 @@ var alertIconForTone = {
|
|
|
448
472
|
|
|
449
473
|
function AlertIcon(_ref) {
|
|
450
474
|
var tone = _ref.tone,
|
|
451
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
475
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
452
476
|
|
|
453
477
|
var Icon = alertIconForTone[tone];
|
|
454
478
|
return Icon ? /*#__PURE__*/React.createElement(Icon, Object.assign({}, props)) : null;
|
|
@@ -574,6 +598,7 @@ function Spinner(_ref) {
|
|
|
574
598
|
})));
|
|
575
599
|
}
|
|
576
600
|
|
|
601
|
+
var _excluded$7 = ["size", "exceptionallySetClassName"];
|
|
577
602
|
var sizeMapping = {
|
|
578
603
|
small: 24,
|
|
579
604
|
medium: 36,
|
|
@@ -586,17 +611,20 @@ function Loading(_ref) {
|
|
|
586
611
|
var _ref$size = _ref.size,
|
|
587
612
|
size = _ref$size === void 0 ? 'small' : _ref$size,
|
|
588
613
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
589
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
614
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
590
615
|
|
|
591
616
|
var numericSize = (_sizeMapping$size = sizeMapping[size]) !== null && _sizeMapping$size !== void 0 ? _sizeMapping$size : sizeMapping.small;
|
|
617
|
+
var ariaLabel = props['aria-label'] ? props['aria-label'] : !props['aria-labelledby'] ? 'Loading…' : undefined;
|
|
592
618
|
return /*#__PURE__*/React__default.createElement(Box, Object.assign({}, props, {
|
|
619
|
+
"aria-label": ariaLabel,
|
|
593
620
|
className: exceptionallySetClassName,
|
|
594
621
|
display: "flex",
|
|
595
622
|
alignItems: "center",
|
|
596
623
|
justifyContent: "center",
|
|
597
624
|
role: "progressbar"
|
|
598
625
|
}), /*#__PURE__*/React__default.createElement(Spinner, {
|
|
599
|
-
size: numericSize
|
|
626
|
+
size: numericSize,
|
|
627
|
+
"aria-hidden": true
|
|
600
628
|
}));
|
|
601
629
|
}
|
|
602
630
|
|
|
@@ -623,6 +651,7 @@ function Notice(_ref) {
|
|
|
623
651
|
|
|
624
652
|
var modules_949d2ff4 = {"heading":"_2f45487c","weight-light":"a20cbde9","tone-secondary":"_75f44518","tone-danger":"_3952cc59","size-largest":"b71d22ef","size-larger":"f15346e2","size-smaller":"_3cae1428","lineClampMultipleLines":"_347f6fcd","lineClamp-1":"_895c0b16","lineClamp-2":"_2e4808bd","lineClamp-3":"_1bdb7bdc","lineClamp-4":"_159943ea","lineClamp-5":"e44e008d"};
|
|
625
653
|
|
|
654
|
+
var _excluded$8 = ["level", "weight", "size", "tone", "children", "lineClamp", "align", "exceptionallySetClassName"];
|
|
626
655
|
var Heading = /*#__PURE__*/React.forwardRef(function Heading(_ref, ref) {
|
|
627
656
|
var level = _ref.level,
|
|
628
657
|
_ref$weight = _ref.weight,
|
|
@@ -634,7 +663,7 @@ var Heading = /*#__PURE__*/React.forwardRef(function Heading(_ref, ref) {
|
|
|
634
663
|
lineClamp = _ref.lineClamp,
|
|
635
664
|
align = _ref.align,
|
|
636
665
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
637
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
666
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
638
667
|
|
|
639
668
|
// In TypeScript v4.1, this would be properly recognized without needing the type assertion
|
|
640
669
|
// https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#template-literal-types
|
|
@@ -653,6 +682,7 @@ var Heading = /*#__PURE__*/React.forwardRef(function Heading(_ref, ref) {
|
|
|
653
682
|
|
|
654
683
|
var modules_a9637dd3 = {"text":"c12d1277","size-caption":"c88e1204","size-copy":"_426d67ec","size-subtitle":"f978d6c7","weight-semibold":"_0c31eccd","weight-bold":"aba17bdd","tone-secondary":"_2767b43d","tone-danger":"e8ae531e","lineClampMultipleLines":"dc839422","lineClamp-1":"e2d23135","lineClamp-2":"_7c778b7e","lineClamp-3":"_5ff41166","lineClamp-4":"b7a4998e","lineClamp-5":"_6a7f8803"};
|
|
655
684
|
|
|
685
|
+
var _excluded$9 = ["as", "size", "weight", "tone", "align", "children", "lineClamp", "exceptionallySetClassName"];
|
|
656
686
|
var Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
|
|
657
687
|
var as = _ref.as,
|
|
658
688
|
_ref$size = _ref.size,
|
|
@@ -665,7 +695,7 @@ var Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
|
|
|
665
695
|
children = _ref.children,
|
|
666
696
|
lineClamp = _ref.lineClamp,
|
|
667
697
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
668
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
698
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
669
699
|
|
|
670
700
|
var lineClampMultipleLines = typeof lineClamp === 'string' ? Number(lineClamp) > 1 : (lineClamp !== null && lineClamp !== void 0 ? lineClamp : 1) > 1;
|
|
671
701
|
return /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
@@ -679,6 +709,8 @@ var Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
|
|
|
679
709
|
}), children);
|
|
680
710
|
});
|
|
681
711
|
|
|
712
|
+
var _excluded$a = ["children", "content", "position", "gapSize", "className"];
|
|
713
|
+
|
|
682
714
|
var SHOW_DELAY = 500;
|
|
683
715
|
var HIDE_DELAY = 100;
|
|
684
716
|
|
|
@@ -705,7 +737,7 @@ function Tooltip(_ref) {
|
|
|
705
737
|
_ref$gapSize = _ref.gapSize,
|
|
706
738
|
gapSize = _ref$gapSize === void 0 ? 3 : _ref$gapSize,
|
|
707
739
|
className = _ref.className,
|
|
708
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
740
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
709
741
|
|
|
710
742
|
var tooltip = useDelayedTooltipState({
|
|
711
743
|
placement: position,
|
|
@@ -790,7 +822,9 @@ function useDelay() {
|
|
|
790
822
|
}, [clearTimeouts]);
|
|
791
823
|
}
|
|
792
824
|
|
|
793
|
-
var modules_b9569bce = {"label":"
|
|
825
|
+
var modules_b9569bce = {"label":"_1f20c88a","baseButton":"_623015f3","size-small":"_062de645","size-normal":"_55e2a6a9","size-large":"cab32a7c","disabled":"e71c191a","iconButton":"_368efc16","startIcon":"d35389c1","endIcon":"_900d41d8","variant-primary":"_7c95e162","variant-secondary":"_9cb889aa","variant-tertiary":"_611b5b28","variant-quaternary":"_80c2bb84","tone-destructive":"ee13c455"};
|
|
826
|
+
|
|
827
|
+
var _excluded$b = ["as", "variant", "tone", "size", "disabled", "loading", "tooltip", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "icon"];
|
|
794
828
|
|
|
795
829
|
function preventDefault(event) {
|
|
796
830
|
event.preventDefault();
|
|
@@ -825,7 +859,7 @@ var BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, ref
|
|
|
825
859
|
startIcon = _ref.startIcon,
|
|
826
860
|
endIcon = _ref.endIcon,
|
|
827
861
|
icon = _ref.icon,
|
|
828
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
862
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
829
863
|
|
|
830
864
|
var isDisabled = loading || disabled;
|
|
831
865
|
var buttonElement = /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
@@ -852,6 +886,7 @@ var BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, ref
|
|
|
852
886
|
}, buttonElement) : buttonElement;
|
|
853
887
|
});
|
|
854
888
|
|
|
889
|
+
var _excluded$c = ["variant", "tone", "size", "type", "disabled", "exceptionallySetClassName"];
|
|
855
890
|
/**
|
|
856
891
|
* A semantic button that also looks like a button, and provides all the necessary visual variants.
|
|
857
892
|
* It follows the [WAI-ARIA Button Pattern](https://www.w3.org/TR/wai-aria-practices/#button).
|
|
@@ -872,7 +907,7 @@ var Button = /*#__PURE__*/React.forwardRef(function Button(_ref, ref) {
|
|
|
872
907
|
_ref$disabled = _ref.disabled,
|
|
873
908
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
874
909
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
875
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
910
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
876
911
|
|
|
877
912
|
return /*#__PURE__*/React.createElement(BaseButton, Object.assign({}, props, {
|
|
878
913
|
as: "button",
|
|
@@ -886,6 +921,7 @@ var Button = /*#__PURE__*/React.forwardRef(function Button(_ref, ref) {
|
|
|
886
921
|
}));
|
|
887
922
|
});
|
|
888
923
|
|
|
924
|
+
var _excluded$d = ["as", "variant", "tone", "size", "exceptionallySetClassName", "openInNewTab"];
|
|
889
925
|
/**
|
|
890
926
|
* A semantic link that looks like a button, exactly matching the `Button` component in all visual
|
|
891
927
|
* aspects.
|
|
@@ -906,7 +942,7 @@ var ButtonLink = /*#__PURE__*/polymorphicComponent(function ButtonLink(_ref, ref
|
|
|
906
942
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
907
943
|
_ref$openInNewTab = _ref.openInNewTab,
|
|
908
944
|
openInNewTab = _ref$openInNewTab === void 0 ? false : _ref$openInNewTab,
|
|
909
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
945
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
910
946
|
|
|
911
947
|
return /*#__PURE__*/React.createElement(BaseButton, Object.assign({}, props, {
|
|
912
948
|
as: as,
|
|
@@ -922,13 +958,14 @@ var ButtonLink = /*#__PURE__*/polymorphicComponent(function ButtonLink(_ref, ref
|
|
|
922
958
|
|
|
923
959
|
var modules_3d05deee = {"container":"_12eda218"};
|
|
924
960
|
|
|
961
|
+
var _excluded$e = ["as", "openInNewTab", "exceptionallySetClassName"];
|
|
925
962
|
var TextLink = /*#__PURE__*/polymorphicComponent(function TextLink(_ref, ref) {
|
|
926
963
|
var _ref$as = _ref.as,
|
|
927
964
|
as = _ref$as === void 0 ? 'a' : _ref$as,
|
|
928
965
|
_ref$openInNewTab = _ref.openInNewTab,
|
|
929
966
|
openInNewTab = _ref$openInNewTab === void 0 ? false : _ref$openInNewTab,
|
|
930
967
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
931
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
968
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
932
969
|
|
|
933
970
|
return /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
934
971
|
as: as,
|
|
@@ -940,6 +977,7 @@ var TextLink = /*#__PURE__*/polymorphicComponent(function TextLink(_ref, ref) {
|
|
|
940
977
|
}));
|
|
941
978
|
});
|
|
942
979
|
|
|
980
|
+
var _excluded$f = ["checked", "indeterminate", "disabled"];
|
|
943
981
|
var svgPath = {
|
|
944
982
|
checked: 'M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm-2.457 4.293l-5.293 5.293-1.793-1.793a1 1 0 1 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.414 0l6-6a1 1 0 1 0-1.414-1.414z',
|
|
945
983
|
unchecked: 'M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm0 1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z',
|
|
@@ -976,7 +1014,7 @@ function CheckboxIcon(_ref2) {
|
|
|
976
1014
|
var checked = _ref2.checked,
|
|
977
1015
|
indeterminate = _ref2.indeterminate,
|
|
978
1016
|
disabled = _ref2.disabled,
|
|
979
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
1017
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$f);
|
|
980
1018
|
|
|
981
1019
|
var pathKey = getPathKey({
|
|
982
1020
|
checked: checked,
|
|
@@ -995,8 +1033,9 @@ function CheckboxIcon(_ref2) {
|
|
|
995
1033
|
}));
|
|
996
1034
|
}
|
|
997
1035
|
|
|
998
|
-
var modules_664a6a80 = {"container":"
|
|
1036
|
+
var modules_664a6a80 = {"container":"_96c4d12f","disabled":"_5048e2a5","checked":"_42187b48","keyFocused":"_3510166f"};
|
|
999
1037
|
|
|
1038
|
+
var _excluded$g = ["label", "disabled", "indeterminate", "defaultChecked", "onChange"];
|
|
1000
1039
|
var CheckboxField = /*#__PURE__*/React.forwardRef(function CheckboxField(_ref, ref) {
|
|
1001
1040
|
var _ref2, _props$checked, _props$checked2;
|
|
1002
1041
|
|
|
@@ -1005,7 +1044,7 @@ var CheckboxField = /*#__PURE__*/React.forwardRef(function CheckboxField(_ref, r
|
|
|
1005
1044
|
indeterminate = _ref.indeterminate,
|
|
1006
1045
|
defaultChecked = _ref.defaultChecked,
|
|
1007
1046
|
_onChange = _ref.onChange,
|
|
1008
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1047
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
1009
1048
|
|
|
1010
1049
|
var isControlledComponent = typeof props.checked === 'boolean';
|
|
1011
1050
|
|
|
@@ -1020,9 +1059,13 @@ var CheckboxField = /*#__PURE__*/React.forwardRef(function CheckboxField(_ref, r
|
|
|
1020
1059
|
console.warn('A Checkbox needs a label');
|
|
1021
1060
|
}
|
|
1022
1061
|
|
|
1023
|
-
var _React$useState = React.useState(
|
|
1024
|
-
|
|
1025
|
-
|
|
1062
|
+
var _React$useState = React.useState(false),
|
|
1063
|
+
keyFocused = _React$useState[0],
|
|
1064
|
+
setKeyFocused = _React$useState[1];
|
|
1065
|
+
|
|
1066
|
+
var _React$useState2 = React.useState((_ref2 = (_props$checked = props.checked) !== null && _props$checked !== void 0 ? _props$checked : defaultChecked) !== null && _ref2 !== void 0 ? _ref2 : false),
|
|
1067
|
+
checkedState = _React$useState2[0],
|
|
1068
|
+
setChecked = _React$useState2[1];
|
|
1026
1069
|
|
|
1027
1070
|
var isChecked = (_props$checked2 = props.checked) !== null && _props$checked2 !== void 0 ? _props$checked2 : checkedState;
|
|
1028
1071
|
var internalRef = React.useRef(null);
|
|
@@ -1036,10 +1079,11 @@ var CheckboxField = /*#__PURE__*/React.forwardRef(function CheckboxField(_ref, r
|
|
|
1036
1079
|
as: "label",
|
|
1037
1080
|
display: "flex",
|
|
1038
1081
|
alignItems: "center",
|
|
1039
|
-
className: [modules_664a6a80.container, disabled ? modules_664a6a80.disabled : null, isChecked ? modules_664a6a80.checked : null,
|
|
1040
|
-
}, /*#__PURE__*/React.createElement(
|
|
1082
|
+
className: [modules_664a6a80.container, disabled ? modules_664a6a80.disabled : null, isChecked ? modules_664a6a80.checked : null, keyFocused ? modules_664a6a80.keyFocused : null]
|
|
1083
|
+
}, /*#__PURE__*/React.createElement("input", Object.assign({}, props, {
|
|
1041
1084
|
ref: combinedRef,
|
|
1042
1085
|
type: "checkbox",
|
|
1086
|
+
"aria-checked": indeterminate ? 'mixed' : isChecked,
|
|
1043
1087
|
checked: isChecked,
|
|
1044
1088
|
disabled: disabled,
|
|
1045
1089
|
onChange: function onChange(event) {
|
|
@@ -1048,12 +1092,24 @@ var CheckboxField = /*#__PURE__*/React.forwardRef(function CheckboxField(_ref, r
|
|
|
1048
1092
|
if (!event.defaultPrevented) {
|
|
1049
1093
|
setChecked(event.currentTarget.checked);
|
|
1050
1094
|
}
|
|
1095
|
+
},
|
|
1096
|
+
onBlur: function onBlur(event) {
|
|
1097
|
+
var _props$onBlur;
|
|
1098
|
+
|
|
1099
|
+
setKeyFocused(false);
|
|
1100
|
+
props === null || props === void 0 ? void 0 : (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call(props, event);
|
|
1101
|
+
},
|
|
1102
|
+
onKeyUp: function onKeyUp(event) {
|
|
1103
|
+
var _props$onKeyUp;
|
|
1104
|
+
|
|
1105
|
+
setKeyFocused(true);
|
|
1106
|
+
props === null || props === void 0 ? void 0 : (_props$onKeyUp = props.onKeyUp) === null || _props$onKeyUp === void 0 ? void 0 : _props$onKeyUp.call(props, event);
|
|
1051
1107
|
}
|
|
1052
|
-
}))
|
|
1053
|
-
"aria-hidden": true,
|
|
1108
|
+
})), /*#__PURE__*/React.createElement(CheckboxIcon, {
|
|
1054
1109
|
checked: isChecked,
|
|
1110
|
+
disabled: disabled,
|
|
1055
1111
|
indeterminate: indeterminate,
|
|
1056
|
-
|
|
1112
|
+
"aria-hidden": true
|
|
1057
1113
|
}), label ? /*#__PURE__*/React.createElement(Text, null, label) : null);
|
|
1058
1114
|
});
|
|
1059
1115
|
|
|
@@ -1180,8 +1236,9 @@ function PasswordHiddenIcon(props) {
|
|
|
1180
1236
|
|
|
1181
1237
|
var modules_3f03ead6 = {"inputWrapper":"_460d581b"};
|
|
1182
1238
|
|
|
1183
|
-
var modules_aaf25250 = {"inputWrapper":"
|
|
1239
|
+
var modules_aaf25250 = {"inputWrapper":"dd9ffeab"};
|
|
1184
1240
|
|
|
1241
|
+
var _excluded$h = ["label", "secondaryLabel", "auxiliaryLabel", "hint", "maxWidth", "togglePasswordLabel", "hidden", "aria-describedby"];
|
|
1185
1242
|
var PasswordField = /*#__PURE__*/React.forwardRef(function PasswordField(_ref, ref) {
|
|
1186
1243
|
var label = _ref.label,
|
|
1187
1244
|
secondaryLabel = _ref.secondaryLabel,
|
|
@@ -1192,7 +1249,7 @@ var PasswordField = /*#__PURE__*/React.forwardRef(function PasswordField(_ref, r
|
|
|
1192
1249
|
togglePasswordLabel = _ref$togglePasswordLa === void 0 ? 'Toggle password visibility' : _ref$togglePasswordLa,
|
|
1193
1250
|
hidden = _ref.hidden,
|
|
1194
1251
|
ariaDescribedBy = _ref['aria-describedby'],
|
|
1195
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1252
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
1196
1253
|
|
|
1197
1254
|
var id = useId(props.id);
|
|
1198
1255
|
var internalRef = React.useRef(null);
|
|
@@ -1243,8 +1300,9 @@ var PasswordField = /*#__PURE__*/React.forwardRef(function PasswordField(_ref, r
|
|
|
1243
1300
|
});
|
|
1244
1301
|
});
|
|
1245
1302
|
|
|
1246
|
-
var modules_1fa9b208 = {"selectWrapper":"
|
|
1303
|
+
var modules_1fa9b208 = {"selectWrapper":"_828e09c5"};
|
|
1247
1304
|
|
|
1305
|
+
var _excluded$i = ["id", "label", "secondaryLabel", "auxiliaryLabel", "hint", "maxWidth", "children", "hidden", "aria-describedby"];
|
|
1248
1306
|
var SelectField = /*#__PURE__*/React.forwardRef(function SelectField(_ref, ref) {
|
|
1249
1307
|
var id = _ref.id,
|
|
1250
1308
|
label = _ref.label,
|
|
@@ -1255,7 +1313,7 @@ var SelectField = /*#__PURE__*/React.forwardRef(function SelectField(_ref, ref)
|
|
|
1255
1313
|
children = _ref.children,
|
|
1256
1314
|
hidden = _ref.hidden,
|
|
1257
1315
|
ariaDescribedBy = _ref['aria-describedby'],
|
|
1258
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1316
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
1259
1317
|
|
|
1260
1318
|
return /*#__PURE__*/React.createElement(BaseField, {
|
|
1261
1319
|
id: id,
|
|
@@ -1289,8 +1347,9 @@ function SelectChevron(props) {
|
|
|
1289
1347
|
}));
|
|
1290
1348
|
}
|
|
1291
1349
|
|
|
1292
|
-
var modules_8e05f7c9 = {"container":"
|
|
1350
|
+
var modules_8e05f7c9 = {"container":"ec63c3f1","disabled":"_7de9c06d","checked":"a37981fc","toggle":"_2a17ac45","label":"_68cc9707","handle":"_91409c7f","keyFocused":"a6490371"};
|
|
1293
1351
|
|
|
1352
|
+
var _excluded$j = ["label", "hint", "disabled", "hidden", "defaultChecked", "id", "aria-describedby", "aria-label", "aria-labelledby", "onChange"];
|
|
1294
1353
|
var SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref) {
|
|
1295
1354
|
var _ref2, _props$checked, _props$checked2;
|
|
1296
1355
|
|
|
@@ -1302,23 +1361,31 @@ var SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref)
|
|
|
1302
1361
|
defaultChecked = _ref.defaultChecked,
|
|
1303
1362
|
originalId = _ref.id,
|
|
1304
1363
|
originalAriaDescribedBy = _ref['aria-describedby'],
|
|
1364
|
+
originalAriaLabel = _ref['aria-label'],
|
|
1365
|
+
originalAriaLabelledby = _ref['aria-labelledby'],
|
|
1305
1366
|
_onChange = _ref.onChange,
|
|
1306
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1367
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
1307
1368
|
|
|
1308
1369
|
var id = useId(originalId);
|
|
1309
1370
|
var hintId = useId();
|
|
1310
1371
|
var ariaDescribedBy = originalAriaDescribedBy !== null && originalAriaDescribedBy !== void 0 ? originalAriaDescribedBy : hint ? hintId : undefined;
|
|
1372
|
+
var ariaLabel = originalAriaLabel !== null && originalAriaLabel !== void 0 ? originalAriaLabel : undefined;
|
|
1373
|
+
var ariaLabelledBy = originalAriaLabelledby !== null && originalAriaLabelledby !== void 0 ? originalAriaLabelledby : undefined;
|
|
1311
1374
|
|
|
1312
|
-
var _React$useState = React.useState(
|
|
1313
|
-
|
|
1314
|
-
|
|
1375
|
+
var _React$useState = React.useState(false),
|
|
1376
|
+
keyFocused = _React$useState[0],
|
|
1377
|
+
setKeyFocused = _React$useState[1];
|
|
1378
|
+
|
|
1379
|
+
var _React$useState2 = React.useState((_ref2 = (_props$checked = props.checked) !== null && _props$checked !== void 0 ? _props$checked : defaultChecked) !== null && _ref2 !== void 0 ? _ref2 : false),
|
|
1380
|
+
checkedState = _React$useState2[0],
|
|
1381
|
+
setChecked = _React$useState2[1];
|
|
1315
1382
|
|
|
1316
1383
|
var isChecked = (_props$checked2 = props.checked) !== null && _props$checked2 !== void 0 ? _props$checked2 : checkedState;
|
|
1317
1384
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
1318
1385
|
space: "small",
|
|
1319
1386
|
hidden: hidden
|
|
1320
1387
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
1321
|
-
className: [modules_8e05f7c9.container, disabled ? modules_8e05f7c9.disabled : null, isChecked ? modules_8e05f7c9.checked : null],
|
|
1388
|
+
className: [modules_8e05f7c9.container, disabled ? modules_8e05f7c9.disabled : null, isChecked ? modules_8e05f7c9.checked : null, keyFocused ? modules_8e05f7c9.keyFocused : null],
|
|
1322
1389
|
as: "label",
|
|
1323
1390
|
display: "flex",
|
|
1324
1391
|
alignItems: "center"
|
|
@@ -1334,6 +1401,8 @@ var SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref)
|
|
|
1334
1401
|
type: "checkbox",
|
|
1335
1402
|
disabled: disabled,
|
|
1336
1403
|
"aria-describedby": ariaDescribedBy,
|
|
1404
|
+
"aria-label": ariaLabel,
|
|
1405
|
+
"aria-labelledby": ariaLabelledBy,
|
|
1337
1406
|
ref: ref,
|
|
1338
1407
|
checked: isChecked,
|
|
1339
1408
|
onChange: function onChange(event) {
|
|
@@ -1342,6 +1411,18 @@ var SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref)
|
|
|
1342
1411
|
if (!event.defaultPrevented) {
|
|
1343
1412
|
setChecked(event.currentTarget.checked);
|
|
1344
1413
|
}
|
|
1414
|
+
},
|
|
1415
|
+
onBlur: function onBlur(event) {
|
|
1416
|
+
var _props$onBlur;
|
|
1417
|
+
|
|
1418
|
+
setKeyFocused(false);
|
|
1419
|
+
props === null || props === void 0 ? void 0 : (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call(props, event);
|
|
1420
|
+
},
|
|
1421
|
+
onKeyUp: function onKeyUp(event) {
|
|
1422
|
+
var _props$onKeyUp;
|
|
1423
|
+
|
|
1424
|
+
setKeyFocused(true);
|
|
1425
|
+
props === null || props === void 0 ? void 0 : (_props$onKeyUp = props.onKeyUp) === null || _props$onKeyUp === void 0 ? void 0 : _props$onKeyUp.call(props, event);
|
|
1345
1426
|
}
|
|
1346
1427
|
}))), /*#__PURE__*/React.createElement("span", {
|
|
1347
1428
|
className: modules_8e05f7c9.handle
|
|
@@ -1352,7 +1433,9 @@ var SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref)
|
|
|
1352
1433
|
}, hint) : null);
|
|
1353
1434
|
});
|
|
1354
1435
|
|
|
1355
|
-
var modules_2728c236 = {"container":"
|
|
1436
|
+
var modules_2728c236 = {"container":"_5a579f96"};
|
|
1437
|
+
|
|
1438
|
+
var _excluded$k = ["id", "label", "secondaryLabel", "auxiliaryLabel", "hint", "maxWidth"];
|
|
1356
1439
|
|
|
1357
1440
|
function TextArea(_ref) {
|
|
1358
1441
|
var id = _ref.id,
|
|
@@ -1361,7 +1444,7 @@ function TextArea(_ref) {
|
|
|
1361
1444
|
auxiliaryLabel = _ref.auxiliaryLabel,
|
|
1362
1445
|
hint = _ref.hint,
|
|
1363
1446
|
maxWidth = _ref.maxWidth,
|
|
1364
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1447
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
1365
1448
|
|
|
1366
1449
|
return /*#__PURE__*/React.createElement(BaseField, {
|
|
1367
1450
|
id: id,
|
|
@@ -1378,6 +1461,7 @@ function TextArea(_ref) {
|
|
|
1378
1461
|
});
|
|
1379
1462
|
}
|
|
1380
1463
|
|
|
1464
|
+
var _excluded$l = ["id", "label", "secondaryLabel", "auxiliaryLabel", "hint", "type", "maxWidth", "hidden", "aria-describedby"];
|
|
1381
1465
|
var TextField = /*#__PURE__*/React.forwardRef(function TextField(_ref, ref) {
|
|
1382
1466
|
var id = _ref.id,
|
|
1383
1467
|
label = _ref.label,
|
|
@@ -1389,7 +1473,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function TextField(_ref, ref) {
|
|
|
1389
1473
|
maxWidth = _ref.maxWidth,
|
|
1390
1474
|
hidden = _ref.hidden,
|
|
1391
1475
|
ariaDescribedBy = _ref['aria-describedby'],
|
|
1392
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1476
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
1393
1477
|
|
|
1394
1478
|
return /*#__PURE__*/React.createElement(BaseField, {
|
|
1395
1479
|
id: id,
|
|
@@ -1432,8 +1516,13 @@ function usePrevious(value) {
|
|
|
1432
1516
|
return ref.current;
|
|
1433
1517
|
}
|
|
1434
1518
|
|
|
1435
|
-
var modules_40c67f5b = {"tab":"
|
|
1519
|
+
var modules_40c67f5b = {"tab":"_7cdcd0b6","tab-normal":"af6705d0","tab-primary":"ad705020","tab-secondary":"_69a2043b","tab-tertiary":"_5b695667","tab-plain":"_88d3dc5e"};
|
|
1436
1520
|
|
|
1521
|
+
var _excluded$m = ["color", "variant"],
|
|
1522
|
+
_excluded2$1 = ["children", "space"],
|
|
1523
|
+
_excluded3 = ["color", "variant"],
|
|
1524
|
+
_excluded4 = ["children", "id", "as", "render"],
|
|
1525
|
+
_excluded5 = ["color", "variant"];
|
|
1437
1526
|
var TabsContext = /*#__PURE__*/React.createContext(null);
|
|
1438
1527
|
/**
|
|
1439
1528
|
* Used to group components that compose a set of tabs. There can only be one active tab within the same `<Tabs>` group.
|
|
@@ -1485,7 +1574,7 @@ function Tab(_ref2) {
|
|
|
1485
1574
|
|
|
1486
1575
|
var color = tabContextValue.color,
|
|
1487
1576
|
variant = tabContextValue.variant,
|
|
1488
|
-
tabState = _objectWithoutPropertiesLoose(tabContextValue,
|
|
1577
|
+
tabState = _objectWithoutPropertiesLoose(tabContextValue, _excluded$m);
|
|
1489
1578
|
|
|
1490
1579
|
return /*#__PURE__*/React.createElement(Tab$1.Tab, Object.assign({
|
|
1491
1580
|
className: classNames(modules_40c67f5b.tab, modules_40c67f5b["tab-" + (variant !== null && variant !== void 0 ? variant : '')], modules_40c67f5b["tab-" + (color !== null && color !== void 0 ? color : '')]),
|
|
@@ -1500,7 +1589,7 @@ function TabList(_ref3) {
|
|
|
1500
1589
|
var children = _ref3.children,
|
|
1501
1590
|
_ref3$space = _ref3.space,
|
|
1502
1591
|
space = _ref3$space === void 0 ? 'medium' : _ref3$space,
|
|
1503
|
-
props = _objectWithoutPropertiesLoose(_ref3,
|
|
1592
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
|
|
1504
1593
|
|
|
1505
1594
|
var tabContextValue = React.useContext(TabsContext);
|
|
1506
1595
|
|
|
@@ -1508,7 +1597,7 @@ function TabList(_ref3) {
|
|
|
1508
1597
|
return null;
|
|
1509
1598
|
}
|
|
1510
1599
|
|
|
1511
|
-
var tabState = _objectWithoutPropertiesLoose(tabContextValue,
|
|
1600
|
+
var tabState = _objectWithoutPropertiesLoose(tabContextValue, _excluded3);
|
|
1512
1601
|
|
|
1513
1602
|
return /*#__PURE__*/React.createElement(Tab$1.TabList, Object.assign({}, props, tabState), /*#__PURE__*/React.createElement(Inline, {
|
|
1514
1603
|
space: space
|
|
@@ -1524,7 +1613,7 @@ var TabPanel = /*#__PURE__*/polymorphicComponent(function TabPanel(_ref4, ref) {
|
|
|
1524
1613
|
as = _ref4.as,
|
|
1525
1614
|
_ref4$render = _ref4.render,
|
|
1526
1615
|
render = _ref4$render === void 0 ? 'always' : _ref4$render,
|
|
1527
|
-
props = _objectWithoutPropertiesLoose(_ref4,
|
|
1616
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
1528
1617
|
|
|
1529
1618
|
var tabContextValue = React.useContext(TabsContext);
|
|
1530
1619
|
|
|
@@ -1543,7 +1632,7 @@ var TabPanel = /*#__PURE__*/polymorphicComponent(function TabPanel(_ref4, ref) {
|
|
|
1543
1632
|
return null;
|
|
1544
1633
|
}
|
|
1545
1634
|
|
|
1546
|
-
var tabState = _objectWithoutPropertiesLoose(tabContextValue,
|
|
1635
|
+
var tabState = _objectWithoutPropertiesLoose(tabContextValue, _excluded5);
|
|
1547
1636
|
|
|
1548
1637
|
return /*#__PURE__*/React.createElement(Tab$1.TabPanel, Object.assign({
|
|
1549
1638
|
tabId: id
|
|
@@ -1565,8 +1654,13 @@ function TabAwareSlot(_ref5) {
|
|
|
1565
1654
|
}) : null;
|
|
1566
1655
|
}
|
|
1567
1656
|
|
|
1568
|
-
var modules_8f59d13b = {"reach-portal":"
|
|
1657
|
+
var modules_8f59d13b = {"reach-portal":"dddb40c3","fadein":"_955f2d73","fitContent":"_95c7550e","container":"_88079712","full":"_4779d078","large":"_5fd86231","medium":"bdfb5931","small":"_4e848a11","xlarge":"d673fba2","overlay":"ea9ae0cc","expand":"a8bf8a4f","buttonContainer":"_44d6850e"};
|
|
1569
1658
|
|
|
1659
|
+
var _excluded$n = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "autoFocus", "children"],
|
|
1660
|
+
_excluded2$2 = ["children", "button", "withDivider", "exceptionallySetClassName"],
|
|
1661
|
+
_excluded3$1 = ["exceptionallySetClassName", "children"],
|
|
1662
|
+
_excluded4$1 = ["exceptionallySetClassName", "withDivider"],
|
|
1663
|
+
_excluded5$1 = ["children"];
|
|
1570
1664
|
var ModalContext = /*#__PURE__*/React.createContext({
|
|
1571
1665
|
onDismiss: undefined,
|
|
1572
1666
|
height: 'fitContent'
|
|
@@ -1597,7 +1691,7 @@ function Modal(_ref) {
|
|
|
1597
1691
|
_ref$autoFocus = _ref.autoFocus,
|
|
1598
1692
|
autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,
|
|
1599
1693
|
children = _ref.children,
|
|
1600
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1694
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
1601
1695
|
|
|
1602
1696
|
var contextValue = React.useMemo(function () {
|
|
1603
1697
|
return {
|
|
@@ -1614,7 +1708,8 @@ function Modal(_ref) {
|
|
|
1614
1708
|
"data-testid": "modal-overlay"
|
|
1615
1709
|
}, /*#__PURE__*/React.createElement(FocusLock, {
|
|
1616
1710
|
autoFocus: autoFocus,
|
|
1617
|
-
whiteList: isNotInternalFrame
|
|
1711
|
+
whiteList: isNotInternalFrame,
|
|
1712
|
+
returnFocus: true
|
|
1618
1713
|
}, /*#__PURE__*/React.createElement(dialog.DialogContent, Object.assign({}, props, {
|
|
1619
1714
|
as: Box,
|
|
1620
1715
|
borderRadius: "full",
|
|
@@ -1640,10 +1735,26 @@ function ModalCloseButton(props) {
|
|
|
1640
1735
|
var _React$useContext = React.useContext(ModalContext),
|
|
1641
1736
|
onDismiss = _React$useContext.onDismiss;
|
|
1642
1737
|
|
|
1738
|
+
var _React$useState = React.useState(false),
|
|
1739
|
+
includeInTabOrder = _React$useState[0],
|
|
1740
|
+
setincludeInTabOrder = _React$useState[1];
|
|
1741
|
+
|
|
1742
|
+
var _React$useState2 = React.useState(false),
|
|
1743
|
+
isMounted = _React$useState2[0],
|
|
1744
|
+
setIsMounted = _React$useState2[1];
|
|
1745
|
+
|
|
1746
|
+
React.useEffect(function skipAutoFocus() {
|
|
1747
|
+
if (isMounted) {
|
|
1748
|
+
setincludeInTabOrder(true);
|
|
1749
|
+
} else {
|
|
1750
|
+
setIsMounted(true);
|
|
1751
|
+
}
|
|
1752
|
+
}, [isMounted]);
|
|
1643
1753
|
return /*#__PURE__*/React.createElement(Button, Object.assign({}, props, {
|
|
1644
1754
|
variant: "quaternary",
|
|
1645
1755
|
onClick: onDismiss,
|
|
1646
|
-
icon: /*#__PURE__*/React.createElement(CloseIcon, null)
|
|
1756
|
+
icon: /*#__PURE__*/React.createElement(CloseIcon, null),
|
|
1757
|
+
tabIndex: includeInTabOrder ? 0 : -1
|
|
1647
1758
|
}));
|
|
1648
1759
|
}
|
|
1649
1760
|
/**
|
|
@@ -1661,7 +1772,7 @@ function ModalHeader(_ref2) {
|
|
|
1661
1772
|
_ref2$withDivider = _ref2.withDivider,
|
|
1662
1773
|
withDivider = _ref2$withDivider === void 0 ? false : _ref2$withDivider,
|
|
1663
1774
|
exceptionallySetClassName = _ref2.exceptionallySetClassName,
|
|
1664
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
1775
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$2);
|
|
1665
1776
|
|
|
1666
1777
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
1667
1778
|
as: "header",
|
|
@@ -1678,7 +1789,8 @@ function ModalHeader(_ref2) {
|
|
|
1678
1789
|
width: "content",
|
|
1679
1790
|
exceptionallySetClassName: modules_8f59d13b.buttonContainer
|
|
1680
1791
|
}, typeof button !== 'boolean' ? button : button === true ? /*#__PURE__*/React.createElement(ModalCloseButton, {
|
|
1681
|
-
"aria-label": "Close modal"
|
|
1792
|
+
"aria-label": "Close modal",
|
|
1793
|
+
autoFocus: false
|
|
1682
1794
|
}) : null))), withDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
|
|
1683
1795
|
}
|
|
1684
1796
|
/**
|
|
@@ -1697,7 +1809,7 @@ function ModalHeader(_ref2) {
|
|
|
1697
1809
|
function ModalBody(_ref3) {
|
|
1698
1810
|
var exceptionallySetClassName = _ref3.exceptionallySetClassName,
|
|
1699
1811
|
children = _ref3.children,
|
|
1700
|
-
props = _objectWithoutPropertiesLoose(_ref3,
|
|
1812
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$1);
|
|
1701
1813
|
|
|
1702
1814
|
var _React$useContext2 = React.useContext(ModalContext),
|
|
1703
1815
|
height = _React$useContext2.height;
|
|
@@ -1724,7 +1836,7 @@ function ModalFooter(_ref4) {
|
|
|
1724
1836
|
var exceptionallySetClassName = _ref4.exceptionallySetClassName,
|
|
1725
1837
|
_ref4$withDivider = _ref4.withDivider,
|
|
1726
1838
|
withDivider = _ref4$withDivider === void 0 ? false : _ref4$withDivider,
|
|
1727
|
-
props = _objectWithoutPropertiesLoose(_ref4,
|
|
1839
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$1);
|
|
1728
1840
|
|
|
1729
1841
|
return /*#__PURE__*/React.createElement(React.Fragment, null, withDivider ? /*#__PURE__*/React.createElement(Divider, null) : null, /*#__PURE__*/React.createElement(Box, Object.assign({
|
|
1730
1842
|
as: "footer"
|
|
@@ -1743,7 +1855,7 @@ function ModalFooter(_ref4) {
|
|
|
1743
1855
|
|
|
1744
1856
|
function ModalActions(_ref5) {
|
|
1745
1857
|
var children = _ref5.children,
|
|
1746
|
-
props = _objectWithoutPropertiesLoose(_ref5,
|
|
1858
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded5$1);
|
|
1747
1859
|
|
|
1748
1860
|
return /*#__PURE__*/React.createElement(ModalFooter, Object.assign({}, props), /*#__PURE__*/React.createElement(Inline, {
|
|
1749
1861
|
align: "right",
|
|
@@ -1827,6 +1939,7 @@ function Checkbox(_ref) {
|
|
|
1827
1939
|
|
|
1828
1940
|
Checkbox.displayName = 'Checkbox';
|
|
1829
1941
|
|
|
1942
|
+
var _excluded$o = ["type", "variant", "size", "loading", "disabled", "tooltip", "onClick", "children"];
|
|
1830
1943
|
/**
|
|
1831
1944
|
* @deprecated
|
|
1832
1945
|
*/
|
|
@@ -1844,7 +1957,7 @@ var Button$1 = /*#__PURE__*/React__default.forwardRef(function Button(_ref, ref)
|
|
|
1844
1957
|
tooltip = _ref.tooltip,
|
|
1845
1958
|
onClick = _ref.onClick,
|
|
1846
1959
|
children = _ref.children,
|
|
1847
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1960
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
1848
1961
|
|
|
1849
1962
|
var className = classNames('reactist_button', variant ? "reactist_button--" + variant : null, size !== 'default' ? "reactist_button--" + size : null, {
|
|
1850
1963
|
'reactist_button--loading': loading
|
|
@@ -1867,6 +1980,8 @@ Button$1.defaultProps = {
|
|
|
1867
1980
|
disabled: false
|
|
1868
1981
|
};
|
|
1869
1982
|
|
|
1983
|
+
var _excluded$p = ["children", "onClick", "tooltip", "className"];
|
|
1984
|
+
|
|
1870
1985
|
var Box$1 = /*#__PURE__*/function (_React$Component) {
|
|
1871
1986
|
_inheritsLoose(Box, _React$Component);
|
|
1872
1987
|
|
|
@@ -2017,7 +2132,7 @@ var Trigger = /*#__PURE__*/React__default.forwardRef(function Trigger(_ref, ref)
|
|
|
2017
2132
|
onClick = _ref.onClick,
|
|
2018
2133
|
tooltip = _ref.tooltip,
|
|
2019
2134
|
className = _ref.className,
|
|
2020
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
2135
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
2021
2136
|
|
|
2022
2137
|
function handleClick(event) {
|
|
2023
2138
|
event.preventDefault();
|
|
@@ -2145,214 +2260,6 @@ function ColorItem(_ref2) {
|
|
|
2145
2260
|
|
|
2146
2261
|
ColorItem.displayName = 'ColorItem';
|
|
2147
2262
|
|
|
2148
|
-
var ErrorMessage = /*#__PURE__*/function (_React$Component) {
|
|
2149
|
-
_inheritsLoose(ErrorMessage, _React$Component);
|
|
2150
|
-
|
|
2151
|
-
function ErrorMessage(props, context) {
|
|
2152
|
-
var _this;
|
|
2153
|
-
|
|
2154
|
-
_this = _React$Component.call(this, props, context) || this;
|
|
2155
|
-
|
|
2156
|
-
_this._clearTimeout = function () {
|
|
2157
|
-
_this.timeout && clearTimeout(_this.timeout);
|
|
2158
|
-
};
|
|
2159
|
-
|
|
2160
|
-
_this._triggerDelayedHide = function () {
|
|
2161
|
-
_this._clearTimeout();
|
|
2162
|
-
|
|
2163
|
-
_this.timeout = setTimeout(_this._hide, _this.props.timeout);
|
|
2164
|
-
};
|
|
2165
|
-
|
|
2166
|
-
_this._hide = function () {
|
|
2167
|
-
var _this$props$onHide, _this$props;
|
|
2168
|
-
|
|
2169
|
-
_this._clearTimeout();
|
|
2170
|
-
|
|
2171
|
-
_this.setState(function () {
|
|
2172
|
-
return {
|
|
2173
|
-
visible: false
|
|
2174
|
-
};
|
|
2175
|
-
});
|
|
2176
|
-
|
|
2177
|
-
(_this$props$onHide = (_this$props = _this.props).onHide) === null || _this$props$onHide === void 0 ? void 0 : _this$props$onHide.call(_this$props);
|
|
2178
|
-
};
|
|
2179
|
-
|
|
2180
|
-
var isValidMessage = _this._isValidMessage(props.message);
|
|
2181
|
-
|
|
2182
|
-
if (isValidMessage) {
|
|
2183
|
-
_this._triggerDelayedHide();
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
_this.state = {
|
|
2187
|
-
visible: isValidMessage
|
|
2188
|
-
};
|
|
2189
|
-
return _this;
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
var _proto = ErrorMessage.prototype;
|
|
2193
|
-
|
|
2194
|
-
_proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
2195
|
-
if (this._isValidMessage(nextProps.message)) {
|
|
2196
|
-
this.setState(function () {
|
|
2197
|
-
return {
|
|
2198
|
-
visible: true
|
|
2199
|
-
};
|
|
2200
|
-
});
|
|
2201
|
-
|
|
2202
|
-
this._triggerDelayedHide();
|
|
2203
|
-
}
|
|
2204
|
-
};
|
|
2205
|
-
|
|
2206
|
-
_proto._isValidMessage = function _isValidMessage(message) {
|
|
2207
|
-
return typeof message === 'string' && message.length > 0;
|
|
2208
|
-
};
|
|
2209
|
-
|
|
2210
|
-
_proto.render = function render() {
|
|
2211
|
-
var message = this.props.message;
|
|
2212
|
-
|
|
2213
|
-
if (!this.state.visible || !this._isValidMessage(message)) {
|
|
2214
|
-
return false;
|
|
2215
|
-
}
|
|
2216
|
-
|
|
2217
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2218
|
-
className: "reactist_error_message"
|
|
2219
|
-
}, /*#__PURE__*/React__default.createElement("p", null, message), /*#__PURE__*/React__default.createElement("div", {
|
|
2220
|
-
onClick: this._hide,
|
|
2221
|
-
className: "dismiss_icon"
|
|
2222
|
-
}));
|
|
2223
|
-
};
|
|
2224
|
-
|
|
2225
|
-
return ErrorMessage;
|
|
2226
|
-
}(React__default.Component);
|
|
2227
|
-
|
|
2228
|
-
ErrorMessage.displayName = 'ErrorMessage';
|
|
2229
|
-
ErrorMessage.defaultProps = {
|
|
2230
|
-
timeout: 2500
|
|
2231
|
-
};
|
|
2232
|
-
|
|
2233
|
-
var ThreeDotsIcon = function ThreeDotsIcon(_ref) {
|
|
2234
|
-
var _ref$color = _ref.color,
|
|
2235
|
-
color = _ref$color === void 0 ? '#A5A5A5' : _ref$color;
|
|
2236
|
-
return /*#__PURE__*/React__default.createElement("svg", {
|
|
2237
|
-
width: "26px",
|
|
2238
|
-
height: "26px",
|
|
2239
|
-
viewBox: "0 0 26 26"
|
|
2240
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
2241
|
-
stroke: "none",
|
|
2242
|
-
strokeWidth: "1",
|
|
2243
|
-
fill: "none",
|
|
2244
|
-
fillRule: "evenodd"
|
|
2245
|
-
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
2246
|
-
fill: color,
|
|
2247
|
-
cx: "19",
|
|
2248
|
-
cy: "13",
|
|
2249
|
-
r: "2"
|
|
2250
|
-
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
2251
|
-
fill: color,
|
|
2252
|
-
cx: "13",
|
|
2253
|
-
cy: "13",
|
|
2254
|
-
r: "2"
|
|
2255
|
-
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
2256
|
-
fill: color,
|
|
2257
|
-
cx: "7",
|
|
2258
|
-
cy: "13",
|
|
2259
|
-
r: "2"
|
|
2260
|
-
})));
|
|
2261
|
-
};
|
|
2262
|
-
|
|
2263
|
-
ThreeDotsIcon.propTypes = {
|
|
2264
|
-
/** Color of the icon. */
|
|
2265
|
-
color: PropTypes.string
|
|
2266
|
-
};
|
|
2267
|
-
|
|
2268
|
-
var Icon = /*#__PURE__*/function (_React$Component) {
|
|
2269
|
-
_inheritsLoose(Icon, _React$Component);
|
|
2270
|
-
|
|
2271
|
-
function Icon(props, context) {
|
|
2272
|
-
var _this;
|
|
2273
|
-
|
|
2274
|
-
_this = _React$Component.call(this, props, context) || this;
|
|
2275
|
-
|
|
2276
|
-
_this._onClick = function (event) {
|
|
2277
|
-
event.preventDefault();
|
|
2278
|
-
|
|
2279
|
-
if (_this.props.onClick && !_this.props.disabled) {
|
|
2280
|
-
_this.props.onClick();
|
|
2281
|
-
}
|
|
2282
|
-
};
|
|
2283
|
-
|
|
2284
|
-
_this._hover = function () {
|
|
2285
|
-
_this.setState(function () {
|
|
2286
|
-
return {
|
|
2287
|
-
hovered: true
|
|
2288
|
-
};
|
|
2289
|
-
});
|
|
2290
|
-
};
|
|
2291
|
-
|
|
2292
|
-
_this._unhover = function () {
|
|
2293
|
-
_this.setState(function () {
|
|
2294
|
-
return {
|
|
2295
|
-
hovered: false
|
|
2296
|
-
};
|
|
2297
|
-
});
|
|
2298
|
-
};
|
|
2299
|
-
|
|
2300
|
-
_this.state = {
|
|
2301
|
-
hovered: false
|
|
2302
|
-
};
|
|
2303
|
-
return _this;
|
|
2304
|
-
}
|
|
2305
|
-
|
|
2306
|
-
var _proto = Icon.prototype;
|
|
2307
|
-
|
|
2308
|
-
_proto.render = function render() {
|
|
2309
|
-
var _this$props = this.props,
|
|
2310
|
-
image = _this$props.image,
|
|
2311
|
-
hoveredImage = _this$props.hoveredImage,
|
|
2312
|
-
icon = _this$props.icon,
|
|
2313
|
-
tooltip = _this$props.tooltip,
|
|
2314
|
-
disabled = _this$props.disabled;
|
|
2315
|
-
var className = classNames('reactist_icon', {
|
|
2316
|
-
'reactist_icon--component': !image,
|
|
2317
|
-
disabled: disabled
|
|
2318
|
-
}, this.props.className);
|
|
2319
|
-
var style = typeof image === 'string' ? this.state.hovered && hoveredImage ? {
|
|
2320
|
-
backgroundImage: "url(" + hoveredImage + ")"
|
|
2321
|
-
} : {
|
|
2322
|
-
backgroundImage: "url(" + image + ")"
|
|
2323
|
-
} : undefined; // only apply style for image components
|
|
2324
|
-
|
|
2325
|
-
var iconComponent = !image && (icon ? icon : /*#__PURE__*/React__default.createElement(ThreeDotsIcon, {
|
|
2326
|
-
color: this.state.hovered ? '#474747' : undefined
|
|
2327
|
-
})); // only set icon component for non-image components
|
|
2328
|
-
|
|
2329
|
-
var component =
|
|
2330
|
-
/*#__PURE__*/
|
|
2331
|
-
|
|
2332
|
-
/* eslint-disable jsx-a11y/anchor-is-valid */
|
|
2333
|
-
React__default.createElement("a", {
|
|
2334
|
-
href: "#",
|
|
2335
|
-
style: style,
|
|
2336
|
-
onClick: this._onClick,
|
|
2337
|
-
className: className,
|
|
2338
|
-
onMouseEnter: this._hover,
|
|
2339
|
-
onMouseLeave: this._unhover
|
|
2340
|
-
}, iconComponent && iconComponent)
|
|
2341
|
-
/* eslint-enable jsx-a11y/anchor-is-valid */
|
|
2342
|
-
;
|
|
2343
|
-
return tooltip ? /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
2344
|
-
content: tooltip
|
|
2345
|
-
}, component) : component;
|
|
2346
|
-
};
|
|
2347
|
-
|
|
2348
|
-
return Icon;
|
|
2349
|
-
}(React__default.Component);
|
|
2350
|
-
|
|
2351
|
-
Icon.displayName = 'Icon';
|
|
2352
|
-
Icon.defaultProps = {
|
|
2353
|
-
disabled: false
|
|
2354
|
-
};
|
|
2355
|
-
|
|
2356
2263
|
var Input = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
2357
2264
|
var className = classNames('reactist_input', props.className);
|
|
2358
2265
|
return /*#__PURE__*/React__default.createElement("input", Object.assign({}, props, {
|
|
@@ -2362,6 +2269,7 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
2362
2269
|
});
|
|
2363
2270
|
Input.displayName = 'Input';
|
|
2364
2271
|
|
|
2272
|
+
var _excluded$q = ["children", "className", "translateKey", "isMac"];
|
|
2365
2273
|
// Support for setting up how to translate modifiers globally.
|
|
2366
2274
|
//
|
|
2367
2275
|
|
|
@@ -2445,7 +2353,7 @@ function KeyboardShortcut(_ref) {
|
|
|
2445
2353
|
translateKey = _ref$translateKey === void 0 ? globalTranslateKey : _ref$translateKey,
|
|
2446
2354
|
_ref$isMac = _ref.isMac,
|
|
2447
2355
|
isMac = _ref$isMac === void 0 ? (_navigator$platform$t = (_navigator$platform = navigator.platform) === null || _navigator$platform === void 0 ? void 0 : _navigator$platform.toUpperCase().includes('MAC')) !== null && _navigator$platform$t !== void 0 ? _navigator$platform$t : false : _ref$isMac,
|
|
2448
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
2356
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
2449
2357
|
|
|
2450
2358
|
var shortcuts = typeof children === 'string' ? [children] : children;
|
|
2451
2359
|
return /*#__PURE__*/React.createElement("span", Object.assign({
|
|
@@ -2968,7 +2876,8 @@ Popover.defaultProps = {
|
|
|
2968
2876
|
function ProgressBar(_ref) {
|
|
2969
2877
|
var _ref$fillPercentage = _ref.fillPercentage,
|
|
2970
2878
|
fillPercentage = _ref$fillPercentage === void 0 ? 0 : _ref$fillPercentage,
|
|
2971
|
-
className = _ref.className
|
|
2879
|
+
className = _ref.className,
|
|
2880
|
+
ariaValuetext = _ref['aria-valuetext'];
|
|
2972
2881
|
var finalClassName = classNames('reactist_progress_bar', className);
|
|
2973
2882
|
var width = fillPercentage < 0 ? 0 : fillPercentage > 100 ? 100 : fillPercentage;
|
|
2974
2883
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -2978,60 +2887,16 @@ function ProgressBar(_ref) {
|
|
|
2978
2887
|
style: {
|
|
2979
2888
|
width: width + "%"
|
|
2980
2889
|
}
|
|
2981
|
-
})
|
|
2890
|
+
}), /*#__PURE__*/React__default.createElement(HiddenVisually, null, /*#__PURE__*/React__default.createElement("progress", {
|
|
2891
|
+
value: width,
|
|
2892
|
+
max: 100,
|
|
2893
|
+
"aria-valuetext": ariaValuetext !== null && ariaValuetext !== void 0 ? ariaValuetext : undefined
|
|
2894
|
+
})));
|
|
2982
2895
|
}
|
|
2983
2896
|
|
|
2984
2897
|
ProgressBar.displayName = 'ProgressBar';
|
|
2985
2898
|
|
|
2986
|
-
|
|
2987
|
-
var _ref$value = _ref.value,
|
|
2988
|
-
value = _ref$value === void 0 ? 0 : _ref$value,
|
|
2989
|
-
_ref$min = _ref.min,
|
|
2990
|
-
min = _ref$min === void 0 ? 0 : _ref$min,
|
|
2991
|
-
_ref$max = _ref.max,
|
|
2992
|
-
max = _ref$max === void 0 ? 100 : _ref$max,
|
|
2993
|
-
_ref$stepSize = _ref.stepSize,
|
|
2994
|
-
stepSize = _ref$stepSize === void 0 ? 1 : _ref$stepSize,
|
|
2995
|
-
onPlus = _ref.onPlus,
|
|
2996
|
-
onMinus = _ref.onMinus,
|
|
2997
|
-
_onChange = _ref.onChange,
|
|
2998
|
-
className = _ref.className;
|
|
2999
|
-
|
|
3000
|
-
if (typeof onPlus !== 'function') {
|
|
3001
|
-
onPlus = _onChange;
|
|
3002
|
-
}
|
|
3003
|
-
|
|
3004
|
-
if (typeof onMinus !== 'function') {
|
|
3005
|
-
onMinus = _onChange;
|
|
3006
|
-
}
|
|
3007
|
-
|
|
3008
|
-
var rangeInputClassName = classNames('reactist_range_input', className);
|
|
3009
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
3010
|
-
className: rangeInputClassName
|
|
3011
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
3012
|
-
className: "range_btn minus",
|
|
3013
|
-
onClick: function onClick() {
|
|
3014
|
-
return value > min && onMinus && onMinus(value - stepSize);
|
|
3015
|
-
}
|
|
3016
|
-
}), /*#__PURE__*/React__default.createElement("input", {
|
|
3017
|
-
value: value,
|
|
3018
|
-
className: "range_slider",
|
|
3019
|
-
type: "range",
|
|
3020
|
-
min: min,
|
|
3021
|
-
max: max,
|
|
3022
|
-
step: stepSize,
|
|
3023
|
-
onChange: function onChange(event) {
|
|
3024
|
-
return _onChange === null || _onChange === void 0 ? void 0 : _onChange(parseInt(event.target.value));
|
|
3025
|
-
}
|
|
3026
|
-
}), /*#__PURE__*/React__default.createElement("span", {
|
|
3027
|
-
className: "range_btn plus",
|
|
3028
|
-
onClick: function onClick() {
|
|
3029
|
-
return value < max && onPlus && onPlus(value + stepSize);
|
|
3030
|
-
}
|
|
3031
|
-
}));
|
|
3032
|
-
}
|
|
3033
|
-
|
|
3034
|
-
RangeInput.displayName = 'RangeInput';
|
|
2899
|
+
var _excluded$r = ["value", "options", "onChange", "disabled", "className", "defaultValue"];
|
|
3035
2900
|
|
|
3036
2901
|
function Select(_ref) {
|
|
3037
2902
|
var value = _ref.value,
|
|
@@ -3043,7 +2908,7 @@ function Select(_ref) {
|
|
|
3043
2908
|
_ref$className = _ref.className,
|
|
3044
2909
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3045
2910
|
defaultValue = _ref.defaultValue,
|
|
3046
|
-
otherProps = _objectWithoutPropertiesLoose(_ref,
|
|
2911
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
3047
2912
|
|
|
3048
2913
|
var selectClassName = classNames('reactist_select', {
|
|
3049
2914
|
disabled: disabled
|
|
@@ -3287,49 +3152,6 @@ Time.defaultProps = {
|
|
|
3287
3152
|
}
|
|
3288
3153
|
};
|
|
3289
3154
|
|
|
3290
|
-
var ThinQuestionMark = function ThinQuestionMark() {
|
|
3291
|
-
return /*#__PURE__*/React__default.createElement("svg", {
|
|
3292
|
-
width: "18px",
|
|
3293
|
-
height: "18px",
|
|
3294
|
-
viewBox: "0 0 18 18"
|
|
3295
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
3296
|
-
stroke: "none",
|
|
3297
|
-
strokeWidth: "1",
|
|
3298
|
-
fill: "none",
|
|
3299
|
-
fillRule: "evenodd"
|
|
3300
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
3301
|
-
fill: "#979797"
|
|
3302
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
3303
|
-
d: "M9,17 C13.418278,17 17,13.418278 17,9 C17,4.581722 13.418278,1 9,1 C4.581722,1 1,4.581722 1,9 C1,13.418278 4.581722,17 9,17 Z M9,18 C4.02943725,18 0,13.9705627 0,9 C0,4.02943725 4.02943725,0 9,0 C13.9705627,0 18,4.02943725 18,9 C18,13.9705627 13.9705627,18 9,18 Z",
|
|
3304
|
-
fillRule: "nonzero"
|
|
3305
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
3306
|
-
d: "M5.625,6.671875 L6.9609375,6.671875 C7.046875,5.5546875 7.796875,4.859375 8.9765625,4.859375 C10.140625,4.859375 10.890625,5.5703125 10.890625,6.5390625 C10.890625,7.375 10.5390625,7.8671875 9.6328125,8.421875 C8.5625,9.0625 8.0625,9.765625 8.0703125,10.796875 L8.0703125,11.515625 L9.4375,11.515625 L9.4375,11.0078125 C9.4375,10.1875 9.71875,9.75 10.7109375,9.1640625 C11.7109375,8.5625 12.34375,7.6953125 12.34375,6.46875 C12.34375,4.859375 11,3.640625 9.03125,3.640625 C6.8359375,3.640625 5.7109375,4.984375 5.625,6.671875 Z M8.859375,15.140625 C9.4921875,15.140625 9.9375,14.6875 9.9375,14.0546875 C9.9375,13.4140625 9.4921875,12.9609375 8.859375,12.9609375 C8.2265625,12.9609375 7.7734375,13.4140625 7.7734375,14.0546875 C7.7734375,14.6875 8.2265625,15.140625 8.859375,15.140625 Z"
|
|
3307
|
-
}))));
|
|
3308
|
-
};
|
|
3309
|
-
|
|
3310
|
-
function Tip(_ref) {
|
|
3311
|
-
var title = _ref.title,
|
|
3312
|
-
message = _ref.message,
|
|
3313
|
-
top = _ref.top,
|
|
3314
|
-
className = _ref.className;
|
|
3315
|
-
var tipClass = classNames('reactist_tip__container', className);
|
|
3316
|
-
return /*#__PURE__*/React__default.createElement(Dropdown.Box, {
|
|
3317
|
-
top: top,
|
|
3318
|
-
className: tipClass
|
|
3319
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown.Trigger, null, /*#__PURE__*/React__default.createElement(ThinQuestionMark, null)), /*#__PURE__*/React__default.createElement(Dropdown.Body, null, /*#__PURE__*/React__default.createElement("div", {
|
|
3320
|
-
className: "reactist_tip"
|
|
3321
|
-
}, /*#__PURE__*/React__default.createElement("p", {
|
|
3322
|
-
className: "reactist_tip--title"
|
|
3323
|
-
}, title), /*#__PURE__*/React__default.createElement("p", {
|
|
3324
|
-
className: "reactist_tip--message"
|
|
3325
|
-
}, message))));
|
|
3326
|
-
}
|
|
3327
|
-
|
|
3328
|
-
Tip.displayName = 'Tip';
|
|
3329
|
-
Tip.defaultProps = {
|
|
3330
|
-
top: false
|
|
3331
|
-
};
|
|
3332
|
-
|
|
3333
3155
|
var CloseIcon$1 = function CloseIcon() {
|
|
3334
3156
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
3335
3157
|
width: "24",
|
|
@@ -3342,6 +3164,8 @@ var CloseIcon$1 = function CloseIcon() {
|
|
|
3342
3164
|
}));
|
|
3343
3165
|
};
|
|
3344
3166
|
|
|
3167
|
+
var _excluded$s = ["id", "icon", "title", "subtitle", "children", "customCloseButton", "onClick", "onClose", "closeAltText", "className", "aria-live"];
|
|
3168
|
+
|
|
3345
3169
|
function Notification(_ref) {
|
|
3346
3170
|
var id = _ref.id,
|
|
3347
3171
|
icon = _ref.icon,
|
|
@@ -3354,7 +3178,9 @@ function Notification(_ref) {
|
|
|
3354
3178
|
_ref$closeAltText = _ref.closeAltText,
|
|
3355
3179
|
closeAltText = _ref$closeAltText === void 0 ? 'Close' : _ref$closeAltText,
|
|
3356
3180
|
className = _ref.className,
|
|
3357
|
-
|
|
3181
|
+
_ref$ariaLive = _ref['aria-live'],
|
|
3182
|
+
ariaLive = _ref$ariaLive === void 0 ? 'polite' : _ref$ariaLive,
|
|
3183
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
3358
3184
|
|
|
3359
3185
|
var titleId = title ? id + "-title" : null;
|
|
3360
3186
|
var titleIdAttribute = titleId ? {
|
|
@@ -3388,11 +3214,12 @@ function Notification(_ref) {
|
|
|
3388
3214
|
}, icon !== null && icon !== void 0 ? icon : null, notificationContent);
|
|
3389
3215
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({
|
|
3390
3216
|
id: id,
|
|
3391
|
-
role: "
|
|
3217
|
+
role: "alert",
|
|
3392
3218
|
className: classNames('reactist-notification', className, {
|
|
3393
3219
|
'reactist-notification--with-button': Boolean(onClick),
|
|
3394
3220
|
'reactist-notification--with-close-button': Boolean(onClose)
|
|
3395
|
-
})
|
|
3221
|
+
}),
|
|
3222
|
+
"aria-live": ariaLive
|
|
3396
3223
|
}, ariaLabelledBy, ariaDescribedBy, rest), onClick ? /*#__PURE__*/React__default.createElement("button", {
|
|
3397
3224
|
className: "reactist-notification__button",
|
|
3398
3225
|
onClick: onClick
|
|
@@ -3403,6 +3230,17 @@ function Notification(_ref) {
|
|
|
3403
3230
|
}, customCloseButton !== null && customCloseButton !== void 0 ? customCloseButton : /*#__PURE__*/React__default.createElement(CloseIcon$1, null)) : null);
|
|
3404
3231
|
}
|
|
3405
3232
|
|
|
3233
|
+
var _excluded$t = ["children", "onItemSelect"],
|
|
3234
|
+
_excluded2$3 = ["exceptionallySetClassName"],
|
|
3235
|
+
_excluded3$2 = ["handleItemSelect"],
|
|
3236
|
+
_excluded4$2 = ["exceptionallySetClassName"],
|
|
3237
|
+
_excluded5$2 = ["handleItemSelect"],
|
|
3238
|
+
_excluded6 = ["value", "children", "onSelect", "hideOnSelect", "onClick", "exceptionallySetClassName"],
|
|
3239
|
+
_excluded7 = ["handleItemSelect"],
|
|
3240
|
+
_excluded8 = ["children", "onItemSelect"],
|
|
3241
|
+
_excluded9 = ["handleItemSelect"],
|
|
3242
|
+
_excluded10 = ["label", "children", "exceptionallySetClassName"],
|
|
3243
|
+
_excluded11 = ["handleItemSelect"];
|
|
3406
3244
|
var MenuContext = /*#__PURE__*/React.createContext( // Reakit gives us no means to obtain a valid initial/default value of type MenuStateReturn
|
|
3407
3245
|
// (it is normally obtained by calling useMenuState but we can't call hooks outside components).
|
|
3408
3246
|
// This is however of little consequence since this value is only used if some of the components
|
|
@@ -3417,7 +3255,7 @@ var MenuContext = /*#__PURE__*/React.createContext( // Reakit gives us no means
|
|
|
3417
3255
|
function Menu(_ref) {
|
|
3418
3256
|
var children = _ref.children,
|
|
3419
3257
|
onItemSelect = _ref.onItemSelect,
|
|
3420
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
3258
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
3421
3259
|
|
|
3422
3260
|
var state = Reakit.useMenuState(_objectSpread2({
|
|
3423
3261
|
loop: true
|
|
@@ -3441,10 +3279,10 @@ function Menu(_ref) {
|
|
|
3441
3279
|
|
|
3442
3280
|
var MenuButton = /*#__PURE__*/polymorphicComponent(function MenuButton(_ref2, ref) {
|
|
3443
3281
|
var exceptionallySetClassName = _ref2.exceptionallySetClassName,
|
|
3444
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
3282
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
3445
3283
|
|
|
3446
3284
|
var _React$useContext = React.useContext(MenuContext),
|
|
3447
|
-
state = _objectWithoutPropertiesLoose(_React$useContext,
|
|
3285
|
+
state = _objectWithoutPropertiesLoose(_React$useContext, _excluded3$2);
|
|
3448
3286
|
|
|
3449
3287
|
return /*#__PURE__*/React.createElement(Reakit.MenuButton, Object.assign({}, props, state, {
|
|
3450
3288
|
ref: ref,
|
|
@@ -3488,11 +3326,19 @@ function MenuBackdrop(_ref3) {
|
|
|
3488
3326
|
|
|
3489
3327
|
var MenuList = /*#__PURE__*/polymorphicComponent(function MenuList(_ref4, ref) {
|
|
3490
3328
|
var exceptionallySetClassName = _ref4.exceptionallySetClassName,
|
|
3491
|
-
props = _objectWithoutPropertiesLoose(_ref4,
|
|
3329
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$2);
|
|
3492
3330
|
|
|
3493
3331
|
var _React$useContext2 = React.useContext(MenuContext),
|
|
3494
|
-
state = _objectWithoutPropertiesLoose(_React$useContext2,
|
|
3332
|
+
state = _objectWithoutPropertiesLoose(_React$useContext2, _excluded5$2);
|
|
3333
|
+
|
|
3334
|
+
var previousVisible = usePrevious(state.visible);
|
|
3335
|
+
React.useEffect(function focusTriggerOnClose() {
|
|
3336
|
+
if (state.visible === false && previousVisible === true) {
|
|
3337
|
+
var _state$unstable_refer, _state$unstable_refer2;
|
|
3495
3338
|
|
|
3339
|
+
(_state$unstable_refer = state.unstable_referenceRef) === null || _state$unstable_refer === void 0 ? void 0 : (_state$unstable_refer2 = _state$unstable_refer.current) === null || _state$unstable_refer2 === void 0 ? void 0 : _state$unstable_refer2.focus();
|
|
3340
|
+
}
|
|
3341
|
+
}, [state.visible, previousVisible, state.unstable_referenceRef]);
|
|
3496
3342
|
return state.visible ? /*#__PURE__*/React.createElement(MenuBackdrop, Object.assign({}, state), /*#__PURE__*/React.createElement(Reakit.Menu, Object.assign({}, props, state, {
|
|
3497
3343
|
ref: ref,
|
|
3498
3344
|
className: classNames('reactist_menulist', exceptionallySetClassName)
|
|
@@ -3511,11 +3357,11 @@ var MenuItem = /*#__PURE__*/polymorphicComponent(function MenuItem(_ref5, ref) {
|
|
|
3511
3357
|
hideOnSelect = _ref5$hideOnSelect === void 0 ? true : _ref5$hideOnSelect,
|
|
3512
3358
|
onClick = _ref5.onClick,
|
|
3513
3359
|
exceptionallySetClassName = _ref5.exceptionallySetClassName,
|
|
3514
|
-
props = _objectWithoutPropertiesLoose(_ref5,
|
|
3360
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded6);
|
|
3515
3361
|
|
|
3516
3362
|
var _React$useContext3 = React.useContext(MenuContext),
|
|
3517
3363
|
handleItemSelect = _React$useContext3.handleItemSelect,
|
|
3518
|
-
state = _objectWithoutPropertiesLoose(_React$useContext3,
|
|
3364
|
+
state = _objectWithoutPropertiesLoose(_React$useContext3, _excluded7);
|
|
3519
3365
|
|
|
3520
3366
|
var hide = state.hide;
|
|
3521
3367
|
var handleClick = React.useCallback(function handleClick(event) {
|
|
@@ -3556,11 +3402,11 @@ var MenuItem = /*#__PURE__*/polymorphicComponent(function MenuItem(_ref5, ref) {
|
|
|
3556
3402
|
var SubMenu = /*#__PURE__*/React.forwardRef(function SubMenu(_ref6, ref) {
|
|
3557
3403
|
var children = _ref6.children,
|
|
3558
3404
|
onItemSelect = _ref6.onItemSelect,
|
|
3559
|
-
props = _objectWithoutPropertiesLoose(_ref6,
|
|
3405
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded8);
|
|
3560
3406
|
|
|
3561
3407
|
var _React$useContext4 = React.useContext(MenuContext),
|
|
3562
3408
|
parentMenuItemSelect = _React$useContext4.handleItemSelect,
|
|
3563
|
-
state = _objectWithoutPropertiesLoose(_React$useContext4,
|
|
3409
|
+
state = _objectWithoutPropertiesLoose(_React$useContext4, _excluded9);
|
|
3564
3410
|
|
|
3565
3411
|
var parentMenuHide = state.hide;
|
|
3566
3412
|
var handleSubItemSelect = React.useCallback(function handleSubItemSelect(value) {
|
|
@@ -3594,10 +3440,10 @@ var MenuGroup = /*#__PURE__*/polymorphicComponent(function MenuGroud(_ref7, ref)
|
|
|
3594
3440
|
var label = _ref7.label,
|
|
3595
3441
|
children = _ref7.children,
|
|
3596
3442
|
exceptionallySetClassName = _ref7.exceptionallySetClassName,
|
|
3597
|
-
props = _objectWithoutPropertiesLoose(_ref7,
|
|
3443
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded10);
|
|
3598
3444
|
|
|
3599
3445
|
var _React$useContext5 = React.useContext(MenuContext),
|
|
3600
|
-
state = _objectWithoutPropertiesLoose(_React$useContext5,
|
|
3446
|
+
state = _objectWithoutPropertiesLoose(_React$useContext5, _excluded11);
|
|
3601
3447
|
|
|
3602
3448
|
return /*#__PURE__*/React.createElement(Reakit.MenuGroup, Object.assign({
|
|
3603
3449
|
ref: ref
|
|
@@ -3820,7 +3666,7 @@ var Actions = /*#__PURE__*/function (_React$Component4) {
|
|
|
3820
3666
|
this.props.children, function (child) {
|
|
3821
3667
|
var _child$props;
|
|
3822
3668
|
|
|
3823
|
-
if (child
|
|
3669
|
+
if (child !== null && child !== void 0 && (_child$props = child.props) !== null && _child$props !== void 0 && _child$props.close) {
|
|
3824
3670
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
3825
3671
|
onClick: function onClick() {
|
|
3826
3672
|
return _this2._onClick(child.props.onClick);
|
|
@@ -3900,11 +3746,9 @@ exports.DeprecatedLoading = Loading$1;
|
|
|
3900
3746
|
exports.DeprecatedModal = index;
|
|
3901
3747
|
exports.Divider = Divider;
|
|
3902
3748
|
exports.Dropdown = Dropdown;
|
|
3903
|
-
exports.ErrorMessage = ErrorMessage;
|
|
3904
3749
|
exports.Heading = Heading;
|
|
3905
3750
|
exports.Hidden = Hidden;
|
|
3906
3751
|
exports.HiddenVisually = HiddenVisually;
|
|
3907
|
-
exports.Icon = Icon;
|
|
3908
3752
|
exports.Inline = Inline;
|
|
3909
3753
|
exports.Input = Input;
|
|
3910
3754
|
exports.KeyCapturer = KeyCapturer;
|
|
@@ -3926,7 +3770,6 @@ exports.Notification = Notification;
|
|
|
3926
3770
|
exports.PasswordField = PasswordField;
|
|
3927
3771
|
exports.Popover = Popover;
|
|
3928
3772
|
exports.ProgressBar = ProgressBar;
|
|
3929
|
-
exports.RangeInput = RangeInput;
|
|
3930
3773
|
exports.SUPPORTED_KEYS = SUPPORTED_KEYS;
|
|
3931
3774
|
exports.Select = Select;
|
|
3932
3775
|
exports.SelectField = SelectField;
|
|
@@ -3943,7 +3786,6 @@ exports.TextArea = TextArea;
|
|
|
3943
3786
|
exports.TextField = TextField;
|
|
3944
3787
|
exports.TextLink = TextLink;
|
|
3945
3788
|
exports.Time = Time;
|
|
3946
|
-
exports.Tip = Tip;
|
|
3947
3789
|
exports.Tooltip = Tooltip;
|
|
3948
3790
|
exports.usePrevious = usePrevious;
|
|
3949
3791
|
//# sourceMappingURL=reactist.cjs.development.js.map
|