@sis-cc/dotstatsuite-visions 6.4.3 → 6.6.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/es/Alert/Alert.js +66 -135
- package/es/Alert/index.js +0 -1
- package/es/ApiQueries/ApiQueries.js +45 -79
- package/es/ApiQueries/Query.js +65 -105
- package/es/ApiQueries/index.js +0 -1
- package/es/AuthDialog/index.js +169 -0
- package/es/Breadcrumbs/Breadcrumbs.js +21 -38
- package/es/Breadcrumbs/index.js +0 -1
- package/es/Button/Button.js +11 -28
- package/es/Button/index.js +0 -1
- package/es/ChartsConfig/Axis.js +72 -76
- package/es/ChartsConfig/ButtonGroup.js +29 -51
- package/es/ChartsConfig/ChartsConfig.js +87 -187
- package/es/ChartsConfig/ContainerTitle.js +15 -36
- package/es/ChartsConfig/Focus.js +37 -48
- package/es/ChartsConfig/Frequency.js +24 -36
- package/es/ChartsConfig/Series.js +28 -43
- package/es/ChartsConfig/Size.js +36 -50
- package/es/ChartsConfig/index.js +0 -1
- package/es/ChartsConfig/styles.js +4 -4
- package/es/ChartsConfig/utils.js +1 -5
- package/es/Chips/Chips.js +99 -154
- package/es/Chips/index.js +0 -1
- package/es/CollapseButtons/CollapseButtons.js +63 -99
- package/es/CollapseButtons/Item.js +45 -70
- package/es/CollapseButtons/Paper.js +7 -21
- package/es/CollapseButtons/index.js +3 -1
- package/es/DataEdit/DataEdit.js +67 -124
- package/es/DataEdit/Input.js +27 -58
- package/es/DataEdit/index.js +0 -1
- package/es/DataFooter/DataFooter.js +68 -115
- package/es/DataFooter/index.js +0 -1
- package/es/DataHeader/DataHeader.js +75 -113
- package/es/DataHeader/Flags.js +8 -21
- package/es/DataHeader/Title.js +2 -15
- package/es/DataHeader/TooltipHeader.js +33 -63
- package/es/DataHeader/index.js +0 -1
- package/es/DataHeader/utils.js +8 -8
- package/es/Dataflow/Dataflow.js +132 -226
- package/es/Dataflow/index.js +0 -1
- package/es/ExpansionPanel/ExpansionPanel.js +42 -79
- package/es/ExpansionPanel/index.js +0 -1
- package/es/ExpansionPanel/styles.js +3 -5
- package/es/Icons/AccessibilityFilled.js +6 -8
- package/es/Icons/AccessibilityOutlined.js +6 -8
- package/es/Icons/AccountFilled.js +6 -8
- package/es/Icons/AccountOutlined.js +6 -8
- package/es/Icons/Api.js +6 -8
- package/es/Icons/Asterisk.js +6 -8
- package/es/Icons/Bar.js +6 -8
- package/es/Icons/CopyContent.js +6 -8
- package/es/Icons/Cross.js +6 -8
- package/es/Icons/HSymbol.js +6 -8
- package/es/Icons/Row.js +6 -8
- package/es/Icons/Scatter.js +6 -8
- package/es/Icons/StackedBar.js +6 -8
- package/es/Icons/StackedRow.js +6 -8
- package/es/Icons/Timeline.js +6 -8
- package/es/Icons/VSymbol.js +6 -8
- package/es/Icons/Warning.js +11 -14
- package/es/Icons/index.js +0 -1
- package/es/Input/Input.js +26 -56
- package/es/Input/index.js +0 -1
- package/es/Input/with-input.js +30 -25
- package/es/InputNumber/InputNumber.js +31 -51
- package/es/InputNumber/index.js +0 -1
- package/es/LabelDivider/LabelDivider.js +7 -18
- package/es/LabelDivider/index.js +0 -1
- package/es/Loading/Loading.js +9 -18
- package/es/Loading/index.js +0 -1
- package/es/Logo/Logo.js +11 -17
- package/es/Logo/index.js +0 -1
- package/es/NoData/NoData.js +17 -25
- package/es/NoData/index.js +0 -1
- package/es/Pagination/Pagination.js +70 -114
- package/es/Pagination/index.js +0 -1
- package/es/PeriodPicker/PeriodPicker.js +101 -124
- package/es/PeriodPicker/constants.js +78 -13
- package/es/PeriodPicker/index.js +0 -1
- package/es/PeriodPicker/lib.js +37 -23
- package/es/PeriodPicker/styles.js +0 -1
- package/es/ScopeList/Header.js +41 -60
- package/es/ScopeList/Item.js +98 -144
- package/es/ScopeList/ScopeList.js +132 -184
- package/es/ScopeList/Selection.js +51 -93
- package/es/ScopeList/index.js +0 -1
- package/es/ScopeList/styles.js +2 -3
- package/es/ScopeList/with-scope-list.js +151 -88
- package/es/Select/Select.js +44 -60
- package/es/Select/index.js +0 -1
- package/es/Share/Form.js +58 -88
- package/es/Share/Mode.js +30 -46
- package/es/Share/Share.js +41 -64
- package/es/Share/index.js +0 -1
- package/es/SisccFooter/SisccFooter.js +29 -36
- package/es/SisccFooter/index.js +0 -1
- package/es/Spotlight/Fields.js +37 -71
- package/es/Spotlight/Spotlight.js +51 -92
- package/es/Spotlight/index.js +0 -1
- package/es/Spotlight/useSpotlight.js +33 -13
- package/es/Spotlight/useStyles.js +2 -4
- package/es/Table/Table.js +50 -71
- package/es/Table/header.js +36 -50
- package/es/Table/index.js +0 -1
- package/es/Table/itemCell.js +13 -25
- package/es/Table/row-header.js +31 -50
- package/es/Table/section-header.js +30 -55
- package/es/Table/section-rows.js +38 -62
- package/es/Table/styles.js +2 -8
- package/es/Table/tableCell.js +7 -17
- package/es/Table/tooltip.js +21 -41
- package/es/Table/useStyles.js +2 -3
- package/es/Table/valueCell.js +26 -41
- package/es/TableFooter/TableFooter.js +42 -70
- package/es/TableFooter/index.js +0 -1
- package/es/TableHeader/TableHeader.js +18 -36
- package/es/TableHeader/index.js +0 -1
- package/es/TableHtml5/TableHtml5.js +71 -68
- package/es/TableHtml5/cell.js +35 -55
- package/es/TableHtml5/flags.js +29 -58
- package/es/TableHtml5/header.js +48 -66
- package/es/TableHtml5/index.js +0 -1
- package/es/TableHtml5/section.js +86 -120
- package/es/TableHtml5/sectionHeader.js +45 -72
- package/es/TableHtml5/subHeader.js +48 -58
- package/es/TableLayout/Box.js +33 -66
- package/es/TableLayout/DnDItem.js +37 -68
- package/es/TableLayout/TableLayout.js +105 -177
- package/es/TableLayout/constants.js +0 -2
- package/es/TableLayout/index.js +0 -1
- package/es/TableLayout/lib.js +1 -3
- package/es/TablePreview/TablePreview.js +99 -176
- package/es/TablePreview/index.js +0 -1
- package/es/TablePreview/lib.js +5 -4
- package/es/TablePreview/styles.js +0 -1
- package/es/Tag/Tag.js +5 -21
- package/es/Tag/index.js +0 -1
- package/es/ToggleButton/ToggleButton.js +28 -34
- package/es/ToggleButton/index.js +3 -1
- package/es/Tooltip/Tooltip.js +20 -32
- package/es/Tooltip/index.js +0 -1
- package/es/VerticalButton/VerticalButton.js +17 -22
- package/es/VerticalButton/index.js +0 -1
- package/es/index.js +3 -4
- package/es/theme.js +32 -14
- package/es/utils.js +16 -14
- package/lib/Alert/Alert.js +87 -168
- package/lib/Alert/index.js +7 -12
- package/lib/ApiQueries/ApiQueries.js +61 -105
- package/lib/ApiQueries/Query.js +85 -132
- package/lib/ApiQueries/index.js +7 -12
- package/lib/AuthDialog/index.js +193 -0
- package/lib/Breadcrumbs/Breadcrumbs.js +39 -68
- package/lib/Breadcrumbs/index.js +7 -12
- package/lib/Button/Button.js +28 -47
- package/lib/Button/index.js +7 -12
- package/lib/ChartsConfig/Axis.js +88 -100
- package/lib/ChartsConfig/ButtonGroup.js +43 -74
- package/lib/ChartsConfig/ChartsConfig.js +113 -236
- package/lib/ChartsConfig/ContainerTitle.js +30 -59
- package/lib/ChartsConfig/Focus.js +53 -71
- package/lib/ChartsConfig/Frequency.js +39 -59
- package/lib/ChartsConfig/Series.js +45 -70
- package/lib/ChartsConfig/Size.js +53 -77
- package/lib/ChartsConfig/index.js +7 -12
- package/lib/ChartsConfig/styles.js +16 -11
- package/lib/ChartsConfig/utils.js +14 -13
- package/lib/Chips/Chips.js +122 -192
- package/lib/Chips/index.js +7 -12
- package/lib/CollapseButtons/CollapseButtons.js +86 -132
- package/lib/CollapseButtons/Item.js +64 -98
- package/lib/CollapseButtons/Paper.js +19 -41
- package/lib/CollapseButtons/index.js +7 -12
- package/lib/DataEdit/DataEdit.js +88 -156
- package/lib/DataEdit/Input.js +42 -82
- package/lib/DataEdit/index.js +7 -12
- package/lib/DataFooter/DataFooter.js +88 -144
- package/lib/DataFooter/index.js +7 -12
- package/lib/DataHeader/DataHeader.js +106 -158
- package/lib/DataHeader/Flags.js +18 -34
- package/lib/DataHeader/Title.js +11 -27
- package/lib/DataHeader/TooltipHeader.js +48 -79
- package/lib/DataHeader/index.js +7 -12
- package/lib/DataHeader/utils.js +16 -10
- package/lib/Dataflow/Dataflow.js +159 -277
- package/lib/Dataflow/index.js +7 -12
- package/lib/ExpansionPanel/ExpansionPanel.js +63 -116
- package/lib/ExpansionPanel/index.js +7 -12
- package/lib/ExpansionPanel/styles.js +15 -12
- package/lib/Icons/AccessibilityFilled.js +15 -17
- package/lib/Icons/AccessibilityOutlined.js +15 -17
- package/lib/Icons/AccountFilled.js +15 -17
- package/lib/Icons/AccountOutlined.js +15 -17
- package/lib/Icons/Api.js +15 -17
- package/lib/Icons/Asterisk.js +15 -17
- package/lib/Icons/Bar.js +15 -17
- package/lib/Icons/CopyContent.js +15 -17
- package/lib/Icons/Cross.js +15 -17
- package/lib/Icons/HSymbol.js +15 -17
- package/lib/Icons/Row.js +15 -17
- package/lib/Icons/Scatter.js +15 -17
- package/lib/Icons/StackedBar.js +15 -17
- package/lib/Icons/StackedRow.js +15 -17
- package/lib/Icons/Timeline.js +15 -17
- package/lib/Icons/VSymbol.js +15 -17
- package/lib/Icons/Warning.js +27 -31
- package/lib/Icons/index.js +68 -152
- package/lib/Input/Input.js +47 -85
- package/lib/Input/index.js +7 -12
- package/lib/Input/with-input.js +38 -35
- package/lib/InputNumber/InputNumber.js +50 -80
- package/lib/InputNumber/index.js +7 -12
- package/lib/LabelDivider/LabelDivider.js +23 -37
- package/lib/LabelDivider/index.js +7 -12
- package/lib/Loading/Loading.js +20 -35
- package/lib/Loading/index.js +7 -12
- package/lib/Logo/Logo.js +20 -28
- package/lib/Logo/index.js +7 -12
- package/lib/NoData/NoData.js +28 -42
- package/lib/NoData/index.js +7 -12
- package/lib/Pagination/Pagination.js +91 -150
- package/lib/Pagination/index.js +7 -12
- package/lib/PeriodPicker/PeriodPicker.js +121 -150
- package/lib/PeriodPicker/constants.js +126 -37
- package/lib/PeriodPicker/index.js +7 -12
- package/lib/PeriodPicker/lib.js +99 -61
- package/lib/PeriodPicker/styles.js +7 -4
- package/lib/ScopeList/Header.js +58 -88
- package/lib/ScopeList/Item.js +116 -177
- package/lib/ScopeList/ScopeList.js +160 -234
- package/lib/ScopeList/Selection.js +70 -131
- package/lib/ScopeList/index.js +7 -12
- package/lib/ScopeList/styles.js +10 -9
- package/lib/ScopeList/with-scope-list.js +199 -108
- package/lib/Select/Select.js +59 -80
- package/lib/Select/index.js +7 -12
- package/lib/Share/Form.js +77 -119
- package/lib/Share/Mode.js +49 -78
- package/lib/Share/Share.js +59 -91
- package/lib/Share/index.js +7 -12
- package/lib/SisccFooter/SisccFooter.js +44 -63
- package/lib/SisccFooter/index.js +7 -12
- package/lib/Spotlight/Fields.js +54 -100
- package/lib/Spotlight/Spotlight.js +75 -136
- package/lib/Spotlight/index.js +7 -12
- package/lib/Spotlight/useSpotlight.js +44 -20
- package/lib/Spotlight/useStyles.js +15 -12
- package/lib/Table/Table.js +69 -102
- package/lib/Table/header.js +51 -70
- package/lib/Table/index.js +7 -12
- package/lib/Table/itemCell.js +25 -41
- package/lib/Table/row-header.js +49 -75
- package/lib/Table/section-header.js +50 -82
- package/lib/Table/section-rows.js +60 -94
- package/lib/Table/styles.js +23 -25
- package/lib/Table/tableCell.js +19 -37
- package/lib/Table/tooltip.js +36 -54
- package/lib/Table/useStyles.js +11 -8
- package/lib/Table/valueCell.js +39 -59
- package/lib/TableFooter/TableFooter.js +57 -93
- package/lib/TableFooter/index.js +7 -12
- package/lib/TableHeader/TableHeader.js +32 -56
- package/lib/TableHeader/index.js +7 -12
- package/lib/TableHtml5/TableHtml5.js +90 -97
- package/lib/TableHtml5/cell.js +52 -84
- package/lib/TableHtml5/flags.js +48 -82
- package/lib/TableHtml5/header.js +66 -96
- package/lib/TableHtml5/index.js +8 -17
- package/lib/TableHtml5/section.js +111 -162
- package/lib/TableHtml5/sectionHeader.js +64 -102
- package/lib/TableHtml5/subHeader.js +68 -88
- package/lib/TableLayout/Box.js +54 -97
- package/lib/TableLayout/DnDItem.js +58 -98
- package/lib/TableLayout/TableLayout.js +140 -232
- package/lib/TableLayout/constants.js +8 -6
- package/lib/TableLayout/index.js +7 -12
- package/lib/TableLayout/lib.js +14 -9
- package/lib/TablePreview/TablePreview.js +118 -205
- package/lib/TablePreview/index.js +7 -12
- package/lib/TablePreview/lib.js +30 -19
- package/lib/TablePreview/styles.js +7 -6
- package/lib/Tag/Tag.js +19 -38
- package/lib/Tag/index.js +7 -12
- package/lib/ToggleButton/ToggleButton.js +44 -60
- package/lib/ToggleButton/index.js +7 -12
- package/lib/Tooltip/Tooltip.js +34 -50
- package/lib/Tooltip/index.js +7 -12
- package/lib/VerticalButton/VerticalButton.js +40 -46
- package/lib/VerticalButton/index.js +7 -12
- package/lib/index.js +138 -296
- package/lib/theme.js +41 -17
- package/lib/utils.js +46 -31
- package/package.json +2 -10
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import _extends from "/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["children", "classes", "selected", "startIcon", "loading", "sizeLoading"];
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
6
|
import { withStyles } from '@material-ui/core/styles';
|
|
@@ -30,25 +29,22 @@ var VerticalButton = React.forwardRef(function (_ref, ref) {
|
|
|
30
29
|
startIcon = _ref.startIcon,
|
|
31
30
|
loading = _ref.loading,
|
|
32
31
|
_ref$sizeLoading = _ref.sizeLoading,
|
|
33
|
-
sizeLoading = _ref$sizeLoading ===
|
|
34
|
-
props =
|
|
32
|
+
sizeLoading = _ref$sizeLoading === void 0 ? 18 : _ref$sizeLoading,
|
|
33
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
35
34
|
|
|
36
|
-
return React.createElement(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
children
|
|
49
|
-
);
|
|
35
|
+
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
36
|
+
classes: {
|
|
37
|
+
root: classes.root,
|
|
38
|
+
startIcon: classes.startIcon,
|
|
39
|
+
label: classes.label
|
|
40
|
+
},
|
|
41
|
+
selected: selected,
|
|
42
|
+
startIcon: loading ? /*#__PURE__*/React.createElement(CircularProgress, {
|
|
43
|
+
size: sizeLoading
|
|
44
|
+
}) : startIcon,
|
|
45
|
+
ref: ref
|
|
46
|
+
}, props), children);
|
|
50
47
|
});
|
|
51
|
-
|
|
52
48
|
VerticalButton.propTypes = {
|
|
53
49
|
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
|
|
54
50
|
classes: PropTypes.shape({
|
|
@@ -61,5 +57,4 @@ VerticalButton.propTypes = {
|
|
|
61
57
|
loading: PropTypes.bool,
|
|
62
58
|
sizeLoading: PropTypes.number
|
|
63
59
|
};
|
|
64
|
-
|
|
65
60
|
export default withStyles(styles)(VerticalButton);
|
package/es/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import meta from '../package.json';
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line no-console
|
|
4
|
-
if (process.env.NODE_ENV !== 'test') console.info(meta.name + '@' + meta.version);
|
|
1
|
+
import meta from '../package.json'; // eslint-disable-next-line no-console
|
|
5
2
|
|
|
3
|
+
if (process.env.NODE_ENV !== 'test') console.info(meta.name + "@" + meta.version);
|
|
6
4
|
export { default as Alert } from './Alert';
|
|
7
5
|
export { default as ApiQueries } from './ApiQueries';
|
|
8
6
|
export { default as Breadcrumbs } from './Breadcrumbs';
|
|
@@ -40,4 +38,5 @@ export { default as Tag } from './Tag';
|
|
|
40
38
|
export { default as ToggleButton } from './ToggleButton';
|
|
41
39
|
export { default as Tooltip } from './Tooltip';
|
|
42
40
|
export { default as VerticalButton } from './VerticalButton';
|
|
41
|
+
export { default as AuthDialog } from './AuthDialog';
|
|
43
42
|
export { sisccTheme, innerPalette, T4_BREAKPOINTS } from './theme';
|
package/es/theme.js
CHANGED
|
@@ -10,17 +10,14 @@ export var innerPalette = {
|
|
|
10
10
|
textLight: '#444444',
|
|
11
11
|
textDark: '#182026'
|
|
12
12
|
};
|
|
13
|
-
|
|
14
13
|
export var sisccTheme = function sisccTheme(_ref) {
|
|
15
14
|
var rtl = _ref.rtl,
|
|
16
15
|
isA11y = _ref.isA11y,
|
|
17
16
|
_ref$outerPalette = _ref.outerPalette,
|
|
18
|
-
outerPalette = _ref$outerPalette ===
|
|
19
|
-
|
|
17
|
+
outerPalette = _ref$outerPalette === void 0 ? {} : _ref$outerPalette;
|
|
20
18
|
var focus = {
|
|
21
19
|
outlineColor: outerPalette.highlight1 || innerPalette.highlight1
|
|
22
20
|
};
|
|
23
|
-
|
|
24
21
|
var buttonBaseFocus = {
|
|
25
22
|
borderColor: outerPalette.highlight1 || innerPalette.highlight1,
|
|
26
23
|
'&:focus': {
|
|
@@ -29,13 +26,11 @@ export var sisccTheme = function sisccTheme(_ref) {
|
|
|
29
26
|
outlineStyle: 'auto'
|
|
30
27
|
}
|
|
31
28
|
};
|
|
32
|
-
|
|
33
29
|
var spotlightFocus = {
|
|
34
30
|
outlineColor: outerPalette.highlight1 || innerPalette.highlight1,
|
|
35
31
|
outlineStyle: 'auto',
|
|
36
32
|
outlineWidth: 1
|
|
37
33
|
};
|
|
38
|
-
|
|
39
34
|
return {
|
|
40
35
|
direction: rtl,
|
|
41
36
|
props: {
|
|
@@ -47,6 +42,16 @@ export var sisccTheme = function sisccTheme(_ref) {
|
|
|
47
42
|
}
|
|
48
43
|
},
|
|
49
44
|
overrides: {
|
|
45
|
+
MuiCheckbox: {
|
|
46
|
+
root: {
|
|
47
|
+
color: outerPalette.primaryMain || innerPalette.primaryMain
|
|
48
|
+
},
|
|
49
|
+
colorSecondary: {
|
|
50
|
+
'&$checked': {
|
|
51
|
+
color: outerPalette.primaryMain || innerPalette.primaryMain
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
50
55
|
MuiTableCell: {
|
|
51
56
|
head: {
|
|
52
57
|
lineHeight: 1.43
|
|
@@ -73,7 +78,7 @@ export var sisccTheme = function sisccTheme(_ref) {
|
|
|
73
78
|
},
|
|
74
79
|
textPrimary: {
|
|
75
80
|
'&:hover': {
|
|
76
|
-
backgroundColor:
|
|
81
|
+
backgroundColor: "" + (outerPalette.hover || innerPalette.hover)
|
|
77
82
|
}
|
|
78
83
|
}
|
|
79
84
|
},
|
|
@@ -189,14 +194,28 @@ export var sisccTheme = function sisccTheme(_ref) {
|
|
|
189
194
|
fontFamily: "'Segoe UI'",
|
|
190
195
|
fontSize: 12
|
|
191
196
|
},
|
|
192
|
-
annotation: {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
+
annotation: {
|
|
198
|
+
fontSize: 11
|
|
199
|
+
},
|
|
200
|
+
axis: {
|
|
201
|
+
color: '#575757'
|
|
202
|
+
},
|
|
203
|
+
axisLegend: {
|
|
204
|
+
color: '#7A7A7A'
|
|
205
|
+
},
|
|
206
|
+
legend: {
|
|
207
|
+
fontSize: 14
|
|
208
|
+
},
|
|
209
|
+
mapLegend: {
|
|
210
|
+
color: '#575757',
|
|
211
|
+
fontSize: 10
|
|
212
|
+
},
|
|
197
213
|
tooltip: {
|
|
198
214
|
primary: {},
|
|
199
|
-
secondary: {
|
|
215
|
+
secondary: {
|
|
216
|
+
fontSize: 16,
|
|
217
|
+
fontWeight: 'bold'
|
|
218
|
+
}
|
|
200
219
|
}
|
|
201
220
|
},
|
|
202
221
|
chartsConfig: {
|
|
@@ -306,7 +325,6 @@ export var sisccTheme = function sisccTheme(_ref) {
|
|
|
306
325
|
}
|
|
307
326
|
};
|
|
308
327
|
};
|
|
309
|
-
|
|
310
328
|
export var T4_BREAKPOINTS = {
|
|
311
329
|
xs: 120,
|
|
312
330
|
xs2: 250,
|
package/es/utils.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import _extends from "/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/extends";
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import * as R from 'ramda';
|
|
5
4
|
import dateFns from 'date-fns';
|
|
@@ -16,51 +15,54 @@ var spotlightHandler = function spotlightHandler(_ref) {
|
|
|
16
15
|
};
|
|
17
16
|
};
|
|
18
17
|
|
|
19
|
-
export var reduceChildren = function reduceChildren(node, itemsIndexById) {
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
export var reduceChildren = function reduceChildren(node, itemsIndexById, func, acc) {
|
|
19
|
+
if (func === void 0) {
|
|
20
|
+
func = R.flip(R.prepend);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (acc === void 0) {
|
|
24
|
+
acc = [];
|
|
25
|
+
}
|
|
22
26
|
|
|
23
27
|
if (R.isNil(node.parentId)) return acc;
|
|
24
28
|
var nextNode = R.prop(node.parentId)(itemsIndexById);
|
|
25
29
|
if (R.isNil(nextNode)) return acc;
|
|
26
30
|
return reduceChildren(nextNode, itemsIndexById, func, func(acc, nextNode));
|
|
27
31
|
};
|
|
28
|
-
|
|
29
32
|
export var spotlightScopeListEngine = function spotlightScopeListEngine(_ref2) {
|
|
30
33
|
var _ref2$term = _ref2.term,
|
|
31
|
-
term = _ref2$term ===
|
|
34
|
+
term = _ref2$term === void 0 ? '' : _ref2$term,
|
|
32
35
|
fields = _ref2.fields,
|
|
33
36
|
items = _ref2.items,
|
|
34
37
|
itemsById = _ref2.itemsById,
|
|
35
38
|
noPath = _ref2.noPath,
|
|
36
39
|
hasPath = _ref2.hasPath;
|
|
37
|
-
|
|
38
40
|
var isSelected = R.pipe(R.prop('isSelected'), R.equals(true));
|
|
39
41
|
var getFields = R.pipe(R.defaultTo([]), R.filter(isSelected), R.values);
|
|
40
|
-
|
|
41
42
|
return R.reduce(function (acc, item) {
|
|
42
|
-
if (spotlightHandler({
|
|
43
|
+
if (spotlightHandler({
|
|
44
|
+
term: term,
|
|
45
|
+
fields: getFields(fields)
|
|
46
|
+
})(item)) {
|
|
43
47
|
if (noPath) return [].concat(acc, [item]);
|
|
44
48
|
return [].concat(acc, [_extends({}, item, {
|
|
45
49
|
nodePath: hasPath ? R.propOr([], 'path')(item) : reduceChildren(item, itemsById)
|
|
46
50
|
})]);
|
|
47
51
|
}
|
|
52
|
+
|
|
48
53
|
return acc;
|
|
49
54
|
}, [])(items);
|
|
50
55
|
};
|
|
51
|
-
|
|
52
56
|
export var withBlank = function withBlank(func) {
|
|
53
57
|
return function (Component) {
|
|
54
58
|
return function (props) {
|
|
55
59
|
if (R.pipe(func, R.prop('isBlank'))(props)) return null;
|
|
56
|
-
return React.createElement(Component, props);
|
|
60
|
+
return /*#__PURE__*/React.createElement(Component, props);
|
|
57
61
|
};
|
|
58
62
|
};
|
|
59
63
|
};
|
|
60
|
-
|
|
61
64
|
export var getLight = R.path(['palette', 'tertiary', 'light']);
|
|
62
65
|
export var getDark = R.path(['palette', 'tertiary', 'dark']);
|
|
63
|
-
|
|
64
66
|
export var getIsRtl = function getIsRtl(theme) {
|
|
65
67
|
return R.equals('rtl', R.prop('direction', theme));
|
|
66
68
|
};
|
package/lib/Alert/Alert.js
CHANGED
|
@@ -1,70 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
exports.styles = undefined;
|
|
5
|
-
|
|
6
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
7
|
-
|
|
8
|
-
var _react = require('react');
|
|
9
|
-
|
|
10
|
-
var _react2 = _interopRequireDefault(_react);
|
|
11
|
-
|
|
12
|
-
var _propTypes = require('prop-types');
|
|
13
|
-
|
|
14
|
-
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
15
|
-
|
|
16
|
-
var _clsx = require('clsx');
|
|
17
|
-
|
|
18
|
-
var _clsx2 = _interopRequireDefault(_clsx);
|
|
19
|
-
|
|
20
|
-
var _styles = require('@material-ui/core/styles');
|
|
3
|
+
var _interopRequireDefault = require("/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault");
|
|
21
4
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var _Paper2 = _interopRequireDefault(_Paper);
|
|
25
|
-
|
|
26
|
-
var _CheckCircleOutlineOutlined = require('@material-ui/icons/CheckCircleOutlineOutlined');
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.styles = exports.default = void 0;
|
|
27
7
|
|
|
28
|
-
var
|
|
8
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"));
|
|
29
9
|
|
|
30
|
-
var
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/extends"));
|
|
31
11
|
|
|
32
|
-
var
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
33
13
|
|
|
34
|
-
var
|
|
14
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
35
15
|
|
|
36
|
-
var
|
|
16
|
+
var _styles = require("@material-ui/core/styles");
|
|
37
17
|
|
|
38
|
-
var
|
|
18
|
+
var _Paper = _interopRequireDefault(require("@material-ui/core/Paper"));
|
|
39
19
|
|
|
40
|
-
var
|
|
20
|
+
var _CheckCircleOutlineOutlined = _interopRequireDefault(require("@material-ui/icons/CheckCircleOutlineOutlined"));
|
|
41
21
|
|
|
42
|
-
var
|
|
22
|
+
var _ReportProblemOutlined = _interopRequireDefault(require("@material-ui/icons/ReportProblemOutlined"));
|
|
43
23
|
|
|
44
|
-
var
|
|
24
|
+
var _ErrorOutline = _interopRequireDefault(require("@material-ui/icons/ErrorOutline"));
|
|
45
25
|
|
|
46
|
-
var
|
|
26
|
+
var _InfoOutlined = _interopRequireDefault(require("@material-ui/icons/InfoOutlined"));
|
|
47
27
|
|
|
48
|
-
var
|
|
28
|
+
var _Close = _interopRequireDefault(require("@material-ui/icons/Close"));
|
|
49
29
|
|
|
50
|
-
var
|
|
30
|
+
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
51
31
|
|
|
52
|
-
|
|
32
|
+
var _utils = require("@material-ui/core/utils");
|
|
53
33
|
|
|
54
|
-
|
|
34
|
+
var _excluded = ["action", "children", "classes", "className", "closeText", "color", "icon", "iconMapping", "onClose", "role", "severity", "variant"];
|
|
55
35
|
|
|
56
|
-
var styles =
|
|
36
|
+
var styles = function styles(theme) {
|
|
57
37
|
var getColor = theme.palette.type === 'light' ? _styles.darken : _styles.lighten;
|
|
58
38
|
var getBackgroundColor = theme.palette.type === 'light' ? _styles.lighten : _styles.darken;
|
|
59
|
-
|
|
60
39
|
return {
|
|
61
40
|
/* Styles applied to the root element. */
|
|
62
|
-
root:
|
|
41
|
+
root: (0, _extends2.default)({}, theme.typography.body2, {
|
|
63
42
|
borderRadius: theme.shape.borderRadius,
|
|
64
43
|
backgroundColor: 'transparent',
|
|
65
44
|
display: 'flex',
|
|
66
45
|
padding: '6px 16px'
|
|
67
46
|
}),
|
|
47
|
+
|
|
68
48
|
/* Styles applied to the root element if `variant="standard"` and `color="success"`. */
|
|
69
49
|
standardSuccess: {
|
|
70
50
|
color: getColor(theme.palette.success.main, 0.6),
|
|
@@ -73,6 +53,7 @@ var styles = exports.styles = function styles(theme) {
|
|
|
73
53
|
color: theme.palette.success.main
|
|
74
54
|
}
|
|
75
55
|
},
|
|
56
|
+
|
|
76
57
|
/* Styles applied to the root element if `variant="standard"` and `color="info"`. */
|
|
77
58
|
standardInfo: {
|
|
78
59
|
color: getColor(theme.palette.info.main, 0.6),
|
|
@@ -81,6 +62,7 @@ var styles = exports.styles = function styles(theme) {
|
|
|
81
62
|
color: theme.palette.info.main
|
|
82
63
|
}
|
|
83
64
|
},
|
|
65
|
+
|
|
84
66
|
/* Styles applied to the root element if `variant="standard"` and `color="warning"`. */
|
|
85
67
|
standardWarning: {
|
|
86
68
|
color: getColor(theme.palette.warning.main, 0.6),
|
|
@@ -89,6 +71,7 @@ var styles = exports.styles = function styles(theme) {
|
|
|
89
71
|
color: theme.palette.warning.main
|
|
90
72
|
}
|
|
91
73
|
},
|
|
74
|
+
|
|
92
75
|
/* Styles applied to the root element if `variant="standard"` and `color="error"`. */
|
|
93
76
|
standardError: {
|
|
94
77
|
color: getColor(theme.palette.error.main, 0.6),
|
|
@@ -97,62 +80,71 @@ var styles = exports.styles = function styles(theme) {
|
|
|
97
80
|
color: theme.palette.error.main
|
|
98
81
|
}
|
|
99
82
|
},
|
|
83
|
+
|
|
100
84
|
/* Styles applied to the root element if `variant="outlined"` and `color="success"`. */
|
|
101
85
|
outlinedSuccess: {
|
|
102
86
|
color: getColor(theme.palette.success.main, 0.6),
|
|
103
|
-
border:
|
|
87
|
+
border: "1px solid " + theme.palette.success.main,
|
|
104
88
|
'& $icon': {
|
|
105
89
|
color: theme.palette.success.main
|
|
106
90
|
}
|
|
107
91
|
},
|
|
92
|
+
|
|
108
93
|
/* Styles applied to the root element if `variant="outlined"` and `color="info"`. */
|
|
109
94
|
outlinedInfo: {
|
|
110
95
|
color: getColor(theme.palette.info.main, 0.6),
|
|
111
|
-
border:
|
|
96
|
+
border: "1px solid " + theme.palette.info.main,
|
|
112
97
|
'& $icon': {
|
|
113
98
|
color: theme.palette.info.main
|
|
114
99
|
}
|
|
115
100
|
},
|
|
101
|
+
|
|
116
102
|
/* Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
|
|
117
103
|
outlinedWarning: {
|
|
118
104
|
color: getColor(theme.palette.warning.main, 0.6),
|
|
119
|
-
border:
|
|
105
|
+
border: "1px solid " + theme.palette.warning.main,
|
|
120
106
|
'& $icon': {
|
|
121
107
|
color: theme.palette.warning.main
|
|
122
108
|
}
|
|
123
109
|
},
|
|
110
|
+
|
|
124
111
|
/* Styles applied to the root element if `variant="outlined"` and `color="error"`. */
|
|
125
112
|
outlinedError: {
|
|
126
113
|
color: getColor(theme.palette.error.main, 0.6),
|
|
127
|
-
border:
|
|
114
|
+
border: "1px solid " + theme.palette.error.main,
|
|
128
115
|
'& $icon': {
|
|
129
116
|
color: theme.palette.error.main
|
|
130
117
|
}
|
|
131
118
|
},
|
|
119
|
+
|
|
132
120
|
/* Styles applied to the root element if `variant="filled"` and `color="success"`. */
|
|
133
121
|
filledSuccess: {
|
|
134
122
|
color: '#fff',
|
|
135
123
|
fontWeight: theme.typography.fontWeightMedium,
|
|
136
124
|
backgroundColor: theme.palette.success.main
|
|
137
125
|
},
|
|
126
|
+
|
|
138
127
|
/* Styles applied to the root element if `variant="filled"` and `color="info"`. */
|
|
139
128
|
filledInfo: {
|
|
140
129
|
color: '#fff',
|
|
141
130
|
fontWeight: theme.typography.fontWeightMedium,
|
|
142
131
|
backgroundColor: theme.palette.info.main
|
|
143
132
|
},
|
|
133
|
+
|
|
144
134
|
/* Styles applied to the root element if `variant="filled"` and `color="warning"`. */
|
|
145
135
|
filledWarning: {
|
|
146
136
|
color: '#fff',
|
|
147
137
|
fontWeight: theme.typography.fontWeightMedium,
|
|
148
138
|
backgroundColor: theme.palette.warning.main
|
|
149
139
|
},
|
|
140
|
+
|
|
150
141
|
/* Styles applied to the root element if `variant="filled"` and `color="error"`. */
|
|
151
142
|
filledError: {
|
|
152
143
|
color: '#fff',
|
|
153
144
|
fontWeight: theme.typography.fontWeightMedium,
|
|
154
145
|
backgroundColor: theme.palette.error.main
|
|
155
146
|
},
|
|
147
|
+
|
|
156
148
|
/* Styles applied to the icon wrapper element. */
|
|
157
149
|
icon: {
|
|
158
150
|
marginRight: 12,
|
|
@@ -161,6 +153,7 @@ var styles = exports.styles = function styles(theme) {
|
|
|
161
153
|
fontSize: 22,
|
|
162
154
|
opacity: 0.9
|
|
163
155
|
},
|
|
156
|
+
|
|
164
157
|
/* Styles applied to the message wrapper element. */
|
|
165
158
|
message: {
|
|
166
159
|
padding: '8px 0',
|
|
@@ -168,6 +161,7 @@ var styles = exports.styles = function styles(theme) {
|
|
|
168
161
|
flexDirection: 'column',
|
|
169
162
|
justifyContent: 'center'
|
|
170
163
|
},
|
|
164
|
+
|
|
171
165
|
/* Styles applied to the action wrapper element if `action` is provided. */
|
|
172
166
|
action: {
|
|
173
167
|
display: 'flex',
|
|
@@ -179,143 +173,68 @@ var styles = exports.styles = function styles(theme) {
|
|
|
179
173
|
};
|
|
180
174
|
};
|
|
181
175
|
|
|
176
|
+
exports.styles = styles;
|
|
182
177
|
var defaultIconMapping = {
|
|
183
|
-
success:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
178
|
+
success: /*#__PURE__*/_react.default.createElement(_CheckCircleOutlineOutlined.default, {
|
|
179
|
+
fontSize: "inherit"
|
|
180
|
+
}),
|
|
181
|
+
warning: /*#__PURE__*/_react.default.createElement(_ReportProblemOutlined.default, {
|
|
182
|
+
fontSize: "inherit"
|
|
183
|
+
}),
|
|
184
|
+
error: /*#__PURE__*/_react.default.createElement(_ErrorOutline.default, {
|
|
185
|
+
fontSize: "inherit"
|
|
186
|
+
}),
|
|
187
|
+
info: /*#__PURE__*/_react.default.createElement(_InfoOutlined.default, {
|
|
188
|
+
fontSize: "inherit"
|
|
189
|
+
})
|
|
187
190
|
};
|
|
188
191
|
|
|
189
|
-
var Alert =
|
|
192
|
+
var Alert = _react.default.forwardRef(function Alert(props, ref) {
|
|
190
193
|
var action = props.action,
|
|
191
194
|
children = props.children,
|
|
192
195
|
classes = props.classes,
|
|
193
196
|
className = props.className,
|
|
194
197
|
_props$closeText = props.closeText,
|
|
195
|
-
closeText = _props$closeText ===
|
|
198
|
+
closeText = _props$closeText === void 0 ? 'Close' : _props$closeText,
|
|
196
199
|
color = props.color,
|
|
197
200
|
icon = props.icon,
|
|
198
201
|
_props$iconMapping = props.iconMapping,
|
|
199
|
-
iconMapping = _props$iconMapping ===
|
|
202
|
+
iconMapping = _props$iconMapping === void 0 ? defaultIconMapping : _props$iconMapping,
|
|
200
203
|
onClose = props.onClose,
|
|
201
204
|
_props$role = props.role,
|
|
202
|
-
role = _props$role ===
|
|
205
|
+
role = _props$role === void 0 ? 'alert' : _props$role,
|
|
203
206
|
_props$severity = props.severity,
|
|
204
|
-
severity = _props$severity ===
|
|
207
|
+
severity = _props$severity === void 0 ? 'success' : _props$severity,
|
|
205
208
|
_props$variant = props.variant,
|
|
206
|
-
variant = _props$variant ===
|
|
207
|
-
other =
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
action
|
|
232
|
-
) : null,
|
|
233
|
-
action == null && onClose ? _react2.default.createElement(
|
|
234
|
-
'div',
|
|
235
|
-
{ className: classes.action },
|
|
236
|
-
_react2.default.createElement(
|
|
237
|
-
_IconButton2.default,
|
|
238
|
-
{
|
|
239
|
-
size: 'small',
|
|
240
|
-
'aria-label': closeText,
|
|
241
|
-
title: closeText,
|
|
242
|
-
color: 'inherit',
|
|
243
|
-
onClick: onClose
|
|
244
|
-
},
|
|
245
|
-
_react2.default.createElement(_Close2.default, { fontSize: 'small' })
|
|
246
|
-
)
|
|
247
|
-
) : null
|
|
248
|
-
);
|
|
209
|
+
variant = _props$variant === void 0 ? 'standard' : _props$variant,
|
|
210
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
211
|
+
return /*#__PURE__*/_react.default.createElement(_Paper.default, (0, _extends2.default)({
|
|
212
|
+
role: role,
|
|
213
|
+
square: true,
|
|
214
|
+
elevation: 0,
|
|
215
|
+
className: (0, _clsx.default)(classes.root, classes["" + variant + (0, _utils.capitalize)(color || severity)], className),
|
|
216
|
+
ref: ref
|
|
217
|
+
}, other), icon !== false ? /*#__PURE__*/_react.default.createElement("div", {
|
|
218
|
+
className: classes.icon
|
|
219
|
+
}, icon || iconMapping[severity] || defaultIconMapping[severity]) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
220
|
+
className: classes.message
|
|
221
|
+
}, children), action != null ? /*#__PURE__*/_react.default.createElement("div", {
|
|
222
|
+
className: classes.action
|
|
223
|
+
}, action) : null, action == null && onClose ? /*#__PURE__*/_react.default.createElement("div", {
|
|
224
|
+
className: classes.action
|
|
225
|
+
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
226
|
+
size: "small",
|
|
227
|
+
"aria-label": closeText,
|
|
228
|
+
title: closeText,
|
|
229
|
+
color: "inherit",
|
|
230
|
+
onClick: onClose
|
|
231
|
+
}, /*#__PURE__*/_react.default.createElement(_Close.default, {
|
|
232
|
+
fontSize: "small"
|
|
233
|
+
}))) : null);
|
|
249
234
|
});
|
|
250
235
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* The action to display. It renders after the message, at the end of the alert.
|
|
258
|
-
*/
|
|
259
|
-
action: _propTypes2.default.node,
|
|
260
|
-
/**
|
|
261
|
-
* The content of the component.
|
|
262
|
-
*/
|
|
263
|
-
children: _propTypes2.default.node,
|
|
264
|
-
/**
|
|
265
|
-
* Override or extend the styles applied to the component.
|
|
266
|
-
* See [CSS API](#css) below for more details.
|
|
267
|
-
*/
|
|
268
|
-
classes: _propTypes2.default.object,
|
|
269
|
-
/**
|
|
270
|
-
* @ignore
|
|
271
|
-
*/
|
|
272
|
-
className: _propTypes2.default.string,
|
|
273
|
-
/**
|
|
274
|
-
* Override the default label for the *close popup* icon button.
|
|
275
|
-
*
|
|
276
|
-
* For localization purposes, you can use the provided [translations](/guides/localization/).
|
|
277
|
-
*/
|
|
278
|
-
closeText: _propTypes2.default.string,
|
|
279
|
-
/**
|
|
280
|
-
* The main color for the alert. Unless provided, the value is taken from the `severity` prop.
|
|
281
|
-
*/
|
|
282
|
-
color: _propTypes2.default.oneOf(['error', 'info', 'success', 'warning']),
|
|
283
|
-
/**
|
|
284
|
-
* Override the icon displayed before the children.
|
|
285
|
-
* Unless provided, the icon is mapped to the value of the `severity` prop.
|
|
286
|
-
*/
|
|
287
|
-
icon: _propTypes2.default.node,
|
|
288
|
-
/**
|
|
289
|
-
* The component maps the `severity` prop to a range of different icons,
|
|
290
|
-
* for instance success to `<SuccessOutlined>`.
|
|
291
|
-
* If you wish to change this mapping, you can provide your own.
|
|
292
|
-
* Alternatively, you can use the `icon` prop to override the icon displayed.
|
|
293
|
-
*/
|
|
294
|
-
iconMapping: _propTypes2.default.shape({
|
|
295
|
-
error: _propTypes2.default.node,
|
|
296
|
-
info: _propTypes2.default.node,
|
|
297
|
-
success: _propTypes2.default.node,
|
|
298
|
-
warning: _propTypes2.default.node
|
|
299
|
-
}),
|
|
300
|
-
/**
|
|
301
|
-
* Callback fired when the component requests to be closed.
|
|
302
|
-
* When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
|
|
303
|
-
*
|
|
304
|
-
* @param {object} event The event source of the callback.
|
|
305
|
-
*/
|
|
306
|
-
onClose: _propTypes2.default.func,
|
|
307
|
-
/**
|
|
308
|
-
* The ARIA role attribute of the element.
|
|
309
|
-
*/
|
|
310
|
-
role: _propTypes2.default.string,
|
|
311
|
-
/**
|
|
312
|
-
* The severity of the alert. This defines the color and icon used.
|
|
313
|
-
*/
|
|
314
|
-
severity: _propTypes2.default.oneOf(['error', 'info', 'success', 'warning']),
|
|
315
|
-
/**
|
|
316
|
-
* The variant to use.
|
|
317
|
-
*/
|
|
318
|
-
variant: _propTypes2.default.oneOf(['filled', 'outlined', 'standard'])
|
|
319
|
-
} : {};
|
|
320
|
-
|
|
321
|
-
exports.default = (0, _styles.withStyles)(styles, { name: 'MuiAlert' })(Alert);
|
|
236
|
+
var _default = (0, _styles.withStyles)(styles, {
|
|
237
|
+
name: 'MuiAlert'
|
|
238
|
+
})(Alert);
|
|
239
|
+
|
|
240
|
+
exports.default = _default;
|