orc-shared 1.2.2-dev.0 → 1.2.2
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/actions/applications.js +12 -50
- package/dist/actions/authentication.js +8 -43
- package/dist/actions/countries.js +4 -34
- package/dist/actions/locale.js +12 -52
- package/dist/actions/makeApiAction.js +6 -52
- package/dist/actions/makeOrcApiAction.js +0 -25
- package/dist/actions/metadata.js +60 -171
- package/dist/actions/modules.js +0 -26
- package/dist/actions/navigation.js +0 -32
- package/dist/actions/requestState.js +0 -18
- package/dist/actions/requestsApi.js +0 -17
- package/dist/actions/scopes.js +12 -54
- package/dist/actions/timezones.js +4 -34
- package/dist/actions/toasts.js +3 -23
- package/dist/actions/versionInfo.js +4 -37
- package/dist/actions/view.js +0 -38
- package/dist/buildStore.js +0 -52
- package/dist/components/AppFrame/About.js +3 -67
- package/dist/components/AppFrame/Anchor.js +1 -25
- package/dist/components/AppFrame/AppFrame.js +21 -90
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +4 -35
- package/dist/components/AppFrame/ApplicationSelector/Header.js +2 -32
- package/dist/components/AppFrame/ApplicationSelector/index.js +1 -30
- package/dist/components/AppFrame/ConnectedToastList.js +0 -31
- package/dist/components/AppFrame/Help.js +0 -25
- package/dist/components/AppFrame/MenuItem.js +18 -71
- package/dist/components/AppFrame/Preferences.js +12 -76
- package/dist/components/AppFrame/Sidebar.js +9 -54
- package/dist/components/AppFrame/Topbar.js +9 -65
- package/dist/components/AppFrame/index.js +0 -20
- package/dist/components/AppFrame/useApplicationHelpUrl.js +0 -22
- package/dist/components/ApplicationModuleLoader.js +5 -44
- package/dist/components/Authenticate.js +5 -48
- package/dist/components/Button.js +0 -24
- package/dist/components/CategoryList.js +25 -80
- package/dist/components/Checkbox.js +4 -42
- package/dist/components/ColumnWrapper.js +0 -19
- package/dist/components/Culture.js +0 -29
- package/dist/components/DevPages.js +0 -21
- package/dist/components/DropMenu/Menu.js +4 -36
- package/dist/components/DropMenu/index.js +10 -48
- package/dist/components/ErrorPlaceholder.js +3 -31
- package/dist/components/Form/Combination.js +3 -28
- package/dist/components/Form/Field.js +7 -38
- package/dist/components/Form/FieldElements.js +10 -42
- package/dist/components/Form/FieldList.js +23 -89
- package/dist/components/Form/Fieldset.js +1 -27
- package/dist/components/Form/Form.js +6 -37
- package/dist/components/Form/FormElement.js +1 -20
- package/dist/components/Form/InputField.js +16 -65
- package/dist/components/Form/Inputs/Button.js +6 -36
- package/dist/components/Form/Inputs/Date.js +3 -29
- package/dist/components/Form/Inputs/FieldButtons.js +0 -25
- package/dist/components/Form/Inputs/Number.js +8 -47
- package/dist/components/Form/Inputs/ReadOnly.js +0 -29
- package/dist/components/Form/Inputs/SmallButton.js +7 -39
- package/dist/components/Form/Inputs/Text.js +9 -42
- package/dist/components/Form/Inputs/Time.js +5 -34
- package/dist/components/Form/Inputs/Toggles.js +6 -40
- package/dist/components/Form/Inputs/Translation.js +17 -76
- package/dist/components/Form/Inputs/index.js +0 -28
- package/dist/components/Form/index.js +0 -20
- package/dist/components/Head.js +0 -22
- package/dist/components/I18n.js +1 -29
- package/dist/components/Icon.js +1 -27
- package/dist/components/IconButton.js +2 -32
- package/dist/components/Input.js +3 -43
- package/dist/components/InternetExplorerWarningMessage.js +0 -31
- package/dist/components/List/DataCell.js +4 -43
- package/dist/components/List/HeadCell.js +3 -43
- package/dist/components/List/HeadRow.js +2 -25
- package/dist/components/List/List.js +35 -105
- package/dist/components/List/Row.js +7 -38
- package/dist/components/List/enhanceColumnDefs.js +0 -28
- package/dist/components/List/index.js +0 -20
- package/dist/components/Loader.js +3 -46
- package/dist/components/LoadingIcon.js +0 -24
- package/dist/components/MaterialUI/DataDisplay/Badge.js +2 -31
- package/dist/components/MaterialUI/DataDisplay/Chip.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/CollapsableList.js +5 -49
- package/dist/components/MaterialUI/DataDisplay/Divider.js +0 -30
- package/dist/components/MaterialUI/DataDisplay/Icon.js +3 -29
- package/dist/components/MaterialUI/DataDisplay/List.js +16 -55
- package/dist/components/MaterialUI/DataDisplay/Modal.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/Notification.js +12 -66
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +1 -34
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +1 -23
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +5 -37
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +7 -28
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +2 -32
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +14 -54
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +4 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionTitle.js +0 -25
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +12 -58
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +0 -29
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +11 -57
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +21 -68
- package/dist/components/MaterialUI/DataDisplay/Table.js +33 -122
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +1 -49
- package/dist/components/MaterialUI/DataDisplay/Timeline.js +1 -21
- package/dist/components/MaterialUI/DataDisplay/TimelineItem.js +4 -32
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +6 -45
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +4 -30
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +1 -22
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +28 -95
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +1 -38
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +1 -37
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +1 -41
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +3 -66
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +6 -45
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +3 -38
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +3 -42
- package/dist/components/MaterialUI/Feedback/useNotification.js +0 -21
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +3 -44
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +1 -37
- package/dist/components/MaterialUI/Inputs/Checkbox.js +0 -39
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +0 -42
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +1 -38
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +1 -39
- package/dist/components/MaterialUI/Inputs/DatePicker.js +14 -52
- package/dist/components/MaterialUI/Inputs/InputBase.js +5 -54
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +1 -49
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +10 -63
- package/dist/components/MaterialUI/Inputs/PredefinedElements/TitledSelect.js +3 -31
- package/dist/components/MaterialUI/Inputs/Radio.js +8 -54
- package/dist/components/MaterialUI/Inputs/RadioProps.js +1 -41
- package/dist/components/MaterialUI/Inputs/Select.js +6 -70
- package/dist/components/MaterialUI/Inputs/SelectProps.js +1 -46
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +0 -34
- package/dist/components/MaterialUI/Inputs/Switch.js +1 -37
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +1 -40
- package/dist/components/MaterialUI/Inputs/TimePicker.js +12 -89
- package/dist/components/MaterialUI/Inputs/createInput.js +3 -30
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +1 -41
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +10 -54
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +1 -33
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +2 -27
- package/dist/components/MaterialUI/Navigation/PredefinedElements/ActionMenu.js +4 -31
- package/dist/components/MaterialUI/Navigation/TabBar.js +21 -102
- package/dist/components/MaterialUI/Navigation/TabLabel.js +5 -39
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +7 -42
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +20 -60
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +13 -67
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +13 -53
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -31
- package/dist/components/MaterialUI/Surfaces/PredefinedElements/TitledPaper.js +3 -28
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +17 -60
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +1 -55
- package/dist/components/MaterialUI/Surfaces/paperProps.js +1 -36
- package/dist/components/MaterialUI/componentProps.js +0 -28
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +9 -58
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +7 -43
- package/dist/components/MaterialUI/muiThemes.js +2 -56
- package/dist/components/MaterialUI/textProps.js +1 -33
- package/dist/components/Modal/Background.js +0 -19
- package/dist/components/Modal/Dialog.js +2 -26
- package/dist/components/Modal/Wrapper.js +0 -26
- package/dist/components/Modal/index.js +6 -42
- package/dist/components/Modules.js +18 -90
- package/dist/components/MultiSelector.js +20 -73
- package/dist/components/Navigation/Bar.js +24 -87
- package/dist/components/Navigation/Tab.js +20 -72
- package/dist/components/Navigation/index.js +2 -21
- package/dist/components/Navigation/useNavigationState.js +85 -172
- package/dist/components/Placeholder.js +6 -44
- package/dist/components/Provision.js +4 -36
- package/dist/components/Routing/FullPage.js +14 -37
- package/dist/components/Routing/Page.js +13 -50
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +25 -105
- package/dist/components/Routing/SubPage.js +7 -55
- package/dist/components/Routing/withWaypointing.js +3 -36
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +3 -30
- package/dist/components/Scope/ScopeNode.js +6 -47
- package/dist/components/Scope/Selector.js +8 -44
- package/dist/components/Scope/index.js +24 -93
- package/dist/components/Scope/useScopeConfirmationModalState.js +11 -74
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +14 -75
- package/dist/components/Sidepanel.js +0 -28
- package/dist/components/Spritesheet.js +0 -26
- package/dist/components/Switch.js +12 -52
- package/dist/components/Text.js +4 -48
- package/dist/components/ToastList.js +5 -45
- package/dist/components/Toolbar.js +17 -75
- package/dist/components/Tooltip.js +0 -24
- package/dist/components/Treeview/Branch.js +0 -25
- package/dist/components/Treeview/Label.js +0 -29
- package/dist/components/Treeview/Leaf.js +0 -21
- package/dist/components/Treeview/Node.js +15 -55
- package/dist/components/Treeview/index.js +20 -63
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +2 -17
- package/dist/getTheme.js +0 -29
- package/dist/getThemeOverrides.js +0 -21
- package/dist/hocs/routingConnector.js +0 -21
- package/dist/hocs/withAuthentication.js +4 -26
- package/dist/hocs/withClickOutside.js +3 -29
- package/dist/hocs/withErrorBoundary.js +4 -39
- package/dist/hocs/withId.js +2 -31
- package/dist/hocs/withInfiniteScroll.js +15 -32
- package/dist/hocs/withInitialLoad.js +0 -20
- package/dist/hocs/withLocaleSwitch.js +0 -19
- package/dist/hocs/withNavigationLink.js +3 -30
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +4 -31
- package/dist/hocs/withScrollBox.js +3 -32
- package/dist/hocs/withToggle.js +4 -34
- package/dist/hocs/withUpdateHandler.js +0 -22
- package/dist/hocs/withViewState.js +3 -30
- package/dist/hooks/useDispatchWithModulesData.js +0 -26
- package/dist/hooks/useEditState.js +3 -102
- package/dist/hooks/useEntityLoader.js +13 -64
- package/dist/hooks/useFullEntityEditState.js +4 -53
- package/dist/hooks/useInfiniteScroll.js +3 -31
- package/dist/hooks/useLabelMessage.js +0 -41
- package/dist/hooks/useLoader.js +0 -27
- package/dist/hooks/useMultipleFieldEditState.js +0 -39
- package/dist/hooks/useNavigationHandler.js +3 -28
- package/dist/hooks/useNotificationRequestState.js +14 -46
- package/dist/hooks/usePreviousModified.js +0 -24
- package/dist/hooks/useRequestState.js +8 -38
- package/dist/hooks/useSelectorAndUnwrap.js +0 -23
- package/dist/hooks/useToggle.js +3 -33
- package/dist/hooks/useViewState.js +0 -23
- package/dist/index.js +1 -2
- package/dist/reducers/applications.js +0 -23
- package/dist/reducers/authentication.js +4 -35
- package/dist/reducers/countries.js +0 -25
- package/dist/reducers/localeFactory.js +0 -30
- package/dist/reducers/metadata.js +2 -62
- package/dist/reducers/modules.js +0 -36
- package/dist/reducers/navigation.js +8 -47
- package/dist/reducers/request.js +0 -28
- package/dist/reducers/requestStates.js +0 -42
- package/dist/reducers/scopes.js +0 -28
- package/dist/reducers/settings.js +4 -39
- package/dist/reducers/timezones.js +0 -25
- package/dist/reducers/toasts.js +0 -27
- package/dist/reducers/versionInfo.js +0 -24
- package/dist/reducers/view.js +36 -84
- package/dist/schemas/countries.js +0 -17
- package/dist/schemas/definitions.js +0 -17
- package/dist/schemas/metadata.js +0 -17
- package/dist/schemas/productDefinitions.js +0 -17
- package/dist/schemas/scopes.js +0 -17
- package/dist/schemas/timezones.js +0 -17
- package/dist/selectors/applications.js +0 -20
- package/dist/selectors/authentication.js +0 -40
- package/dist/selectors/countries.js +0 -22
- package/dist/selectors/locale.js +1 -29
- package/dist/selectors/metadata.js +1 -44
- package/dist/selectors/modules.js +0 -21
- package/dist/selectors/navigation.js +9 -39
- package/dist/selectors/requestStates.js +0 -22
- package/dist/selectors/requests.js +2 -22
- package/dist/selectors/route.js +0 -21
- package/dist/selectors/scope.js +0 -32
- package/dist/selectors/settings.js +0 -18
- package/dist/selectors/timezones.js +0 -19
- package/dist/selectors/versionInfo.js +0 -18
- package/dist/selectors/view.js +3 -74
- package/dist/sharedMessages.js +0 -17
- package/dist/spawnerMiddleware.js +0 -24
- package/dist/utils/buildUrl.js +5 -36
- package/dist/utils/countryHelper.js +0 -18
- package/dist/utils/curry.js +0 -19
- package/dist/utils/debounce.js +1 -20
- package/dist/utils/displayModeHelper.js +0 -24
- package/dist/utils/domHelper.js +0 -17
- package/dist/utils/flatten.js +2 -35
- package/dist/utils/index.js +0 -31
- package/dist/utils/insertIcons.js +0 -21
- package/dist/utils/localizationHelper.js +0 -26
- package/dist/utils/logPass.js +1 -22
- package/dist/utils/mapHelper.js +1 -25
- package/dist/utils/memoize.js +0 -23
- package/dist/utils/modelValidationHelper.js +0 -41
- package/dist/utils/normalizeForSearch.js +2 -19
- package/dist/utils/objectHelper.js +0 -22
- package/dist/utils/parseHelper.js +0 -32
- package/dist/utils/profilerHelper.js +0 -18
- package/dist/utils/propertyHelper.js +1 -38
- package/dist/utils/propertyValidator.js +0 -25
- package/dist/utils/requestProcessingHelper.js +0 -24
- package/dist/utils/safeGet.js +0 -18
- package/dist/utils/setTranslation.js +0 -27
- package/dist/utils/setTranslationWithFallback.js +0 -32
- package/dist/utils/stripKey.js +1 -23
- package/dist/utils/styledPropFuncs.js +3 -29
- package/dist/utils/testUtils.js +19 -86
- package/dist/utils/timezoneHelper.js +0 -31
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +2 -27
- package/dist/whyDidYouRerender.js +0 -5
- package/package.json +1 -1
- package/src/utils/testUtils.js +10 -1
|
@@ -2,114 +2,82 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.isTextProps = exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _componentProps = _interopRequireDefault(require("./componentProps"));
|
|
7
|
-
|
|
8
6
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
10
7
|
(function () {
|
|
11
8
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
9
|
enterModule && enterModule(module);
|
|
13
10
|
})();
|
|
14
|
-
|
|
15
11
|
(function () {
|
|
16
12
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
17
13
|
enterModule && enterModule(module);
|
|
18
14
|
})();
|
|
19
|
-
|
|
20
15
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
21
|
-
|
|
22
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
-
|
|
16
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
17
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
-
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
var TextProps = /*#__PURE__*/function (_ComponentProps) {
|
|
35
25
|
_inheritsLoose(TextProps, _ComponentProps);
|
|
36
|
-
|
|
37
26
|
function TextProps() {
|
|
38
27
|
var _this;
|
|
39
|
-
|
|
40
28
|
_this = _ComponentProps.call(this) || this;
|
|
41
|
-
|
|
42
29
|
_this.componentProps.set(_this.constructor.propNames.classes, null);
|
|
43
|
-
|
|
44
30
|
_this.componentProps.set(_this.constructor.propNames.lineCount, null);
|
|
45
|
-
|
|
46
31
|
_this._isTextProps = true;
|
|
47
32
|
return _this;
|
|
48
33
|
}
|
|
49
|
-
|
|
50
34
|
var _proto = TextProps.prototype;
|
|
51
|
-
|
|
52
35
|
// @ts-ignore
|
|
53
36
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
54
37
|
// @ts-ignore
|
|
55
38
|
this[key] = eval(code);
|
|
56
39
|
};
|
|
57
|
-
|
|
58
40
|
return TextProps;
|
|
59
41
|
}(_componentProps.default);
|
|
60
|
-
|
|
61
42
|
_defineProperty(TextProps, "propNames", {
|
|
62
43
|
classes: "classes",
|
|
63
44
|
lineCount: "lineCount"
|
|
64
45
|
});
|
|
65
|
-
|
|
66
46
|
var isTextProps = function isTextProps(value) {
|
|
67
47
|
if (value == null) return true;
|
|
68
48
|
return typeof value === "object" && (value instanceof TextProps || value._isTextProps === true);
|
|
69
49
|
};
|
|
70
|
-
|
|
71
50
|
exports.isTextProps = isTextProps;
|
|
72
51
|
var _default = TextProps;
|
|
73
52
|
var _default2 = _default;
|
|
74
53
|
var _default3 = _default2;
|
|
75
54
|
exports.default = _default3;
|
|
76
55
|
;
|
|
77
|
-
|
|
78
56
|
(function () {
|
|
79
57
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
80
|
-
|
|
81
58
|
if (!reactHotLoader) {
|
|
82
59
|
return;
|
|
83
60
|
}
|
|
84
|
-
|
|
85
61
|
reactHotLoader.register(TextProps, "TextProps", "/home/vsts/work/1/s/src/components/MaterialUI/textProps.js");
|
|
86
62
|
reactHotLoader.register(isTextProps, "isTextProps", "/home/vsts/work/1/s/src/components/MaterialUI/textProps.js");
|
|
87
63
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/textProps.js");
|
|
88
64
|
})();
|
|
89
|
-
|
|
90
65
|
;
|
|
91
|
-
|
|
92
66
|
(function () {
|
|
93
67
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
94
68
|
leaveModule && leaveModule(module);
|
|
95
69
|
})();
|
|
96
|
-
|
|
97
70
|
;
|
|
98
|
-
|
|
99
71
|
(function () {
|
|
100
72
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
101
|
-
|
|
102
73
|
if (!reactHotLoader) {
|
|
103
74
|
return;
|
|
104
75
|
}
|
|
105
|
-
|
|
106
76
|
reactHotLoader.register(TextProps, "TextProps", "/home/vsts/work/1/s/src/components/MaterialUI/textProps.js");
|
|
107
77
|
reactHotLoader.register(isTextProps, "isTextProps", "/home/vsts/work/1/s/src/components/MaterialUI/textProps.js");
|
|
108
78
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/textProps.js");
|
|
109
79
|
})();
|
|
110
|
-
|
|
111
80
|
;
|
|
112
|
-
|
|
113
81
|
(function () {
|
|
114
82
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
115
83
|
leaveModule && leaveModule(module);
|
|
@@ -2,73 +2,54 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
|
-
|
|
8
6
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
10
7
|
(function () {
|
|
11
8
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
9
|
enterModule && enterModule(module);
|
|
13
10
|
})();
|
|
14
|
-
|
|
15
11
|
(function () {
|
|
16
12
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
17
13
|
enterModule && enterModule(module);
|
|
18
14
|
})();
|
|
19
|
-
|
|
20
15
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
21
16
|
return a;
|
|
22
17
|
};
|
|
23
|
-
|
|
24
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
25
19
|
return a;
|
|
26
20
|
};
|
|
27
|
-
|
|
28
21
|
var Background = _styledComponents.default.div.withConfig({
|
|
29
22
|
displayName: "Background",
|
|
30
23
|
componentId: "sc-vgfi8m-0"
|
|
31
24
|
})(["position:absolute;background-color:rgba(127,127,127,0.5);height:100%;width:100%;"]);
|
|
32
|
-
|
|
33
25
|
var _default = Background;
|
|
34
26
|
var _default2 = _default;
|
|
35
27
|
var _default3 = _default2;
|
|
36
28
|
exports.default = _default3;
|
|
37
29
|
;
|
|
38
|
-
|
|
39
30
|
(function () {
|
|
40
31
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
41
|
-
|
|
42
32
|
if (!reactHotLoader) {
|
|
43
33
|
return;
|
|
44
34
|
}
|
|
45
|
-
|
|
46
35
|
reactHotLoader.register(Background, "Background", "/home/vsts/work/1/s/src/components/Modal/Background.js");
|
|
47
36
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Modal/Background.js");
|
|
48
37
|
})();
|
|
49
|
-
|
|
50
38
|
;
|
|
51
|
-
|
|
52
39
|
(function () {
|
|
53
40
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
54
41
|
leaveModule && leaveModule(module);
|
|
55
42
|
})();
|
|
56
|
-
|
|
57
43
|
;
|
|
58
|
-
|
|
59
44
|
(function () {
|
|
60
45
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
61
|
-
|
|
62
46
|
if (!reactHotLoader) {
|
|
63
47
|
return;
|
|
64
48
|
}
|
|
65
|
-
|
|
66
49
|
reactHotLoader.register(Background, "Background", "/home/vsts/work/1/s/src/components/Modal/Background.js");
|
|
67
50
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Modal/Background.js");
|
|
68
51
|
})();
|
|
69
|
-
|
|
70
52
|
;
|
|
71
|
-
|
|
72
53
|
(function () {
|
|
73
54
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
74
55
|
leaveModule && leaveModule(module);
|
|
@@ -2,99 +2,75 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.Dialog = void 0;
|
|
5
|
-
|
|
6
5
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
7
|
-
|
|
8
6
|
var _utils = require("../../utils");
|
|
9
|
-
|
|
10
7
|
var _withClickOutside = _interopRequireDefault(require("../../hocs/withClickOutside"));
|
|
11
|
-
|
|
12
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
9
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
-
|
|
16
10
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
|
|
18
11
|
(function () {
|
|
19
12
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
20
13
|
enterModule && enterModule(module);
|
|
21
14
|
})();
|
|
22
|
-
|
|
23
15
|
(function () {
|
|
24
16
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
25
17
|
enterModule && enterModule(module);
|
|
26
18
|
})();
|
|
27
|
-
|
|
28
19
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
29
20
|
return a;
|
|
30
21
|
};
|
|
31
|
-
|
|
32
22
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
33
23
|
return a;
|
|
34
24
|
};
|
|
35
|
-
|
|
36
25
|
var darkDialogStyle = (0, _styledComponents.css)(["background-color:", ";border-radius:15px;"], (0, _utils.getThemeProp)(["colors", "bgDark"], "#333333"));
|
|
37
26
|
var dialogLook = {
|
|
38
27
|
default: (0, _styledComponents.css)(["background-color:white;"]),
|
|
39
28
|
dark: darkDialogStyle
|
|
40
|
-
};
|
|
29
|
+
};
|
|
41
30
|
|
|
31
|
+
// TODO: Add light dialog style for other dialogs, switching mechanism
|
|
42
32
|
var Dialog = _styledComponents.default.div.withConfig({
|
|
43
33
|
displayName: "Dialog",
|
|
44
34
|
componentId: "sc-7ohuah-0"
|
|
45
35
|
})(["flex:0 0 auto;margin:auto;align-self:center;z-index:10000;", ";"], function (props) {
|
|
46
36
|
return dialogLook[props.look];
|
|
47
37
|
});
|
|
48
|
-
|
|
49
38
|
exports.Dialog = Dialog;
|
|
50
39
|
Dialog.defaultProps = {
|
|
51
40
|
look: "default"
|
|
52
41
|
};
|
|
53
|
-
|
|
54
42
|
var _default = (0, _withClickOutside.default)(Dialog);
|
|
55
|
-
|
|
56
43
|
var _default2 = _default;
|
|
57
44
|
var _default3 = _default2;
|
|
58
45
|
exports.default = _default3;
|
|
59
46
|
;
|
|
60
|
-
|
|
61
47
|
(function () {
|
|
62
48
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
63
|
-
|
|
64
49
|
if (!reactHotLoader) {
|
|
65
50
|
return;
|
|
66
51
|
}
|
|
67
|
-
|
|
68
52
|
reactHotLoader.register(darkDialogStyle, "darkDialogStyle", "/home/vsts/work/1/s/src/components/Modal/Dialog.js");
|
|
69
53
|
reactHotLoader.register(dialogLook, "dialogLook", "/home/vsts/work/1/s/src/components/Modal/Dialog.js");
|
|
70
54
|
reactHotLoader.register(Dialog, "Dialog", "/home/vsts/work/1/s/src/components/Modal/Dialog.js");
|
|
71
55
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Modal/Dialog.js");
|
|
72
56
|
})();
|
|
73
|
-
|
|
74
57
|
;
|
|
75
|
-
|
|
76
58
|
(function () {
|
|
77
59
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
78
60
|
leaveModule && leaveModule(module);
|
|
79
61
|
})();
|
|
80
|
-
|
|
81
62
|
;
|
|
82
|
-
|
|
83
63
|
(function () {
|
|
84
64
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
85
|
-
|
|
86
65
|
if (!reactHotLoader) {
|
|
87
66
|
return;
|
|
88
67
|
}
|
|
89
|
-
|
|
90
68
|
reactHotLoader.register(darkDialogStyle, "darkDialogStyle", "/home/vsts/work/1/s/src/components/Modal/Dialog.js");
|
|
91
69
|
reactHotLoader.register(dialogLook, "dialogLook", "/home/vsts/work/1/s/src/components/Modal/Dialog.js");
|
|
92
70
|
reactHotLoader.register(Dialog, "Dialog", "/home/vsts/work/1/s/src/components/Modal/Dialog.js");
|
|
93
71
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Modal/Dialog.js");
|
|
94
72
|
})();
|
|
95
|
-
|
|
96
73
|
;
|
|
97
|
-
|
|
98
74
|
(function () {
|
|
99
75
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
100
76
|
leaveModule && leaveModule(module);
|
|
@@ -2,95 +2,69 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.Wrapper = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
9
|
-
|
|
10
7
|
var _styledTransitionGroup = _interopRequireDefault(require("styled-transition-group"));
|
|
11
|
-
|
|
12
8
|
var _templateObject;
|
|
13
|
-
|
|
14
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
10
|
(function () {
|
|
17
11
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
18
12
|
enterModule && enterModule(module);
|
|
19
13
|
})();
|
|
20
|
-
|
|
21
14
|
(function () {
|
|
22
15
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
23
16
|
enterModule && enterModule(module);
|
|
24
17
|
})();
|
|
25
|
-
|
|
26
18
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
27
|
-
|
|
28
19
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
29
20
|
return a;
|
|
30
21
|
};
|
|
31
|
-
|
|
32
22
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
33
23
|
return a;
|
|
34
24
|
};
|
|
35
|
-
|
|
36
25
|
var getModalRoot = function getModalRoot() {
|
|
37
26
|
return document.getElementById("modal");
|
|
38
27
|
};
|
|
39
|
-
|
|
40
28
|
var Wrapper = _styledTransitionGroup.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tz-index: 9999;\n\tdisplay: flex;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbottom: 0;\n\tright: 0;\n\ttransition: opacity ", "ms ease-out;\n\n\t&:enter {\n\t\topacity: 0.01;\n\t}\n\t&:enter-active {\n\t\topacity: 1;\n\t}\n\t&:exit {\n\t\topacity: 1;\n\t}\n\t&:exit-active {\n\t\topacity: 0.01;\n\t}\n"])), function (props) {
|
|
41
29
|
return props.timeout;
|
|
42
30
|
});
|
|
43
|
-
|
|
44
31
|
exports.Wrapper = Wrapper;
|
|
45
32
|
Wrapper.defaultProps = {
|
|
46
33
|
timeout: 300,
|
|
47
34
|
unmountOnExit: true
|
|
48
35
|
};
|
|
49
|
-
|
|
50
36
|
var _default = function _default(props) {
|
|
51
37
|
return _reactDom.default.createPortal( /*#__PURE__*/_react.default.createElement(Wrapper, props), getModalRoot());
|
|
52
38
|
};
|
|
53
|
-
|
|
54
39
|
var _default2 = _default;
|
|
55
40
|
var _default3 = _default2;
|
|
56
41
|
exports.default = _default3;
|
|
57
42
|
;
|
|
58
|
-
|
|
59
43
|
(function () {
|
|
60
44
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
61
|
-
|
|
62
45
|
if (!reactHotLoader) {
|
|
63
46
|
return;
|
|
64
47
|
}
|
|
65
|
-
|
|
66
48
|
reactHotLoader.register(getModalRoot, "getModalRoot", "/home/vsts/work/1/s/src/components/Modal/Wrapper.js");
|
|
67
49
|
reactHotLoader.register(Wrapper, "Wrapper", "/home/vsts/work/1/s/src/components/Modal/Wrapper.js");
|
|
68
50
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Modal/Wrapper.js");
|
|
69
51
|
})();
|
|
70
|
-
|
|
71
52
|
;
|
|
72
|
-
|
|
73
53
|
(function () {
|
|
74
54
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
75
55
|
leaveModule && leaveModule(module);
|
|
76
56
|
})();
|
|
77
|
-
|
|
78
57
|
;
|
|
79
|
-
|
|
80
58
|
(function () {
|
|
81
59
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
82
|
-
|
|
83
60
|
if (!reactHotLoader) {
|
|
84
61
|
return;
|
|
85
62
|
}
|
|
86
|
-
|
|
87
63
|
reactHotLoader.register(getModalRoot, "getModalRoot", "/home/vsts/work/1/s/src/components/Modal/Wrapper.js");
|
|
88
64
|
reactHotLoader.register(Wrapper, "Wrapper", "/home/vsts/work/1/s/src/components/Modal/Wrapper.js");
|
|
89
65
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Modal/Wrapper.js");
|
|
90
66
|
})();
|
|
91
|
-
|
|
92
67
|
;
|
|
93
|
-
|
|
94
68
|
(function () {
|
|
95
69
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
96
70
|
leaveModule && leaveModule(module);
|
|
@@ -2,64 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.Modal = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _Wrapper = _interopRequireDefault(require("./Wrapper"));
|
|
9
|
-
|
|
10
7
|
var _Background = _interopRequireDefault(require("./Background"));
|
|
11
|
-
|
|
12
8
|
var _Dialog = _interopRequireDefault(require("./Dialog"));
|
|
13
|
-
|
|
14
9
|
var _useToggle3 = _interopRequireDefault(require("../../hooks/useToggle"));
|
|
15
|
-
|
|
16
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
-
|
|
20
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
|
|
22
13
|
(function () {
|
|
23
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
24
15
|
enterModule && enterModule(module);
|
|
25
16
|
})();
|
|
26
|
-
|
|
27
17
|
(function () {
|
|
28
18
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
29
19
|
enterModule && enterModule(module);
|
|
30
20
|
})();
|
|
31
|
-
|
|
32
21
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
-
|
|
34
22
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
35
|
-
|
|
36
23
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
37
|
-
|
|
38
24
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
39
|
-
|
|
40
25
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
41
|
-
|
|
42
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
-
|
|
44
27
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
45
28
|
return a;
|
|
46
29
|
};
|
|
47
|
-
|
|
48
30
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
49
31
|
return a;
|
|
50
32
|
};
|
|
51
|
-
|
|
52
33
|
var Modal = function Modal(_ref) {
|
|
53
34
|
var initShow = _ref.initShow,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
35
|
+
anchor = _ref.anchor,
|
|
36
|
+
content = _ref.content,
|
|
37
|
+
look = _ref.look;
|
|
58
38
|
var _useToggle = (0, _useToggle3.default)(initShow),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
39
|
+
_useToggle2 = _slicedToArray(_useToggle, 2),
|
|
40
|
+
show = _useToggle2[0],
|
|
41
|
+
toggle = _useToggle2[1];
|
|
63
42
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, anchor(toggle), /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
64
43
|
in: show,
|
|
65
44
|
timeout: 300
|
|
@@ -68,56 +47,41 @@ var Modal = function Modal(_ref) {
|
|
|
68
47
|
onClickOutside: toggle
|
|
69
48
|
}, content(toggle))));
|
|
70
49
|
};
|
|
71
|
-
|
|
72
50
|
exports.Modal = Modal;
|
|
73
|
-
|
|
74
51
|
__signature__(Modal, "useToggle{[show, toggle]}", function () {
|
|
75
52
|
return [_useToggle3.default];
|
|
76
53
|
});
|
|
77
|
-
|
|
78
54
|
__signature__(Modal, "useToggle{[show, toggle]}", function () {
|
|
79
55
|
return [_useToggle3.default];
|
|
80
56
|
});
|
|
81
|
-
|
|
82
57
|
var _default = Modal;
|
|
83
58
|
var _default2 = _default;
|
|
84
59
|
var _default3 = _default2;
|
|
85
60
|
exports.default = _default3;
|
|
86
61
|
;
|
|
87
|
-
|
|
88
62
|
(function () {
|
|
89
63
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
90
|
-
|
|
91
64
|
if (!reactHotLoader) {
|
|
92
65
|
return;
|
|
93
66
|
}
|
|
94
|
-
|
|
95
67
|
reactHotLoader.register(Modal, "Modal", "/home/vsts/work/1/s/src/components/Modal/index.js");
|
|
96
68
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Modal/index.js");
|
|
97
69
|
})();
|
|
98
|
-
|
|
99
70
|
;
|
|
100
|
-
|
|
101
71
|
(function () {
|
|
102
72
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
103
73
|
leaveModule && leaveModule(module);
|
|
104
74
|
})();
|
|
105
|
-
|
|
106
75
|
;
|
|
107
|
-
|
|
108
76
|
(function () {
|
|
109
77
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
110
|
-
|
|
111
78
|
if (!reactHotLoader) {
|
|
112
79
|
return;
|
|
113
80
|
}
|
|
114
|
-
|
|
115
81
|
reactHotLoader.register(Modal, "Modal", "/home/vsts/work/1/s/src/components/Modal/index.js");
|
|
116
82
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Modal/index.js");
|
|
117
83
|
})();
|
|
118
|
-
|
|
119
84
|
;
|
|
120
|
-
|
|
121
85
|
(function () {
|
|
122
86
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
123
87
|
leaveModule && leaveModule(module);
|