@sis-cc/dotstatsuite-visions 6.6.0 → 6.6.4
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 +135 -66
- package/es/Alert/index.js +1 -0
- package/es/ApiQueries/ApiQueries.js +79 -45
- package/es/ApiQueries/Query.js +105 -65
- package/es/ApiQueries/index.js +1 -0
- package/es/AuthDialog/index.js +103 -62
- package/es/Breadcrumbs/Breadcrumbs.js +38 -21
- package/es/Breadcrumbs/index.js +1 -0
- package/es/Button/Button.js +28 -11
- package/es/Button/index.js +1 -0
- package/es/ChartsConfig/Axis.js +76 -72
- package/es/ChartsConfig/ButtonGroup.js +51 -29
- package/es/ChartsConfig/ChartsConfig.js +187 -87
- package/es/ChartsConfig/ContainerTitle.js +36 -15
- package/es/ChartsConfig/Focus.js +48 -37
- package/es/ChartsConfig/Frequency.js +36 -24
- package/es/ChartsConfig/Series.js +43 -28
- package/es/ChartsConfig/Size.js +50 -36
- package/es/ChartsConfig/index.js +1 -0
- package/es/ChartsConfig/styles.js +4 -4
- package/es/ChartsConfig/utils.js +5 -1
- package/es/Chips/Chips.js +154 -99
- package/es/Chips/index.js +1 -0
- package/es/CollapseButtons/CollapseButtons.js +101 -61
- package/es/CollapseButtons/Item.js +70 -45
- package/es/CollapseButtons/Paper.js +21 -7
- package/es/CollapseButtons/index.js +1 -0
- package/es/DataEdit/DataEdit.js +124 -67
- package/es/DataEdit/Input.js +58 -27
- package/es/DataEdit/index.js +1 -0
- package/es/DataFooter/DataFooter.js +115 -68
- package/es/DataFooter/index.js +1 -0
- package/es/DataHeader/DataHeader.js +113 -75
- package/es/DataHeader/Flags.js +21 -8
- package/es/DataHeader/Title.js +15 -2
- package/es/DataHeader/TooltipHeader.js +63 -33
- package/es/DataHeader/index.js +1 -0
- package/es/DataHeader/utils.js +8 -8
- package/es/Dataflow/Dataflow.js +226 -132
- package/es/Dataflow/index.js +1 -0
- package/es/ExpansionPanel/ExpansionPanel.js +79 -42
- package/es/ExpansionPanel/index.js +1 -0
- package/es/ExpansionPanel/styles.js +5 -3
- package/es/Icons/AccessibilityFilled.js +8 -6
- package/es/Icons/AccessibilityOutlined.js +8 -6
- package/es/Icons/AccountFilled.js +8 -6
- package/es/Icons/AccountOutlined.js +8 -6
- package/es/Icons/Api.js +8 -6
- package/es/Icons/Asterisk.js +8 -6
- package/es/Icons/Bar.js +8 -6
- package/es/Icons/CopyContent.js +8 -6
- package/es/Icons/Cross.js +8 -6
- package/es/Icons/HSymbol.js +8 -6
- package/es/Icons/Row.js +8 -6
- package/es/Icons/Scatter.js +8 -6
- package/es/Icons/StackedBar.js +8 -6
- package/es/Icons/StackedRow.js +8 -6
- package/es/Icons/Timeline.js +8 -6
- package/es/Icons/VSymbol.js +8 -6
- package/es/Icons/Warning.js +14 -11
- package/es/Icons/index.js +1 -0
- package/es/Input/Input.js +56 -26
- package/es/Input/index.js +1 -0
- package/es/Input/with-input.js +25 -30
- package/es/InputNumber/InputNumber.js +51 -31
- package/es/InputNumber/index.js +1 -0
- package/es/LabelDivider/LabelDivider.js +18 -7
- package/es/LabelDivider/index.js +1 -0
- package/es/Loading/Loading.js +18 -9
- package/es/Loading/index.js +1 -0
- package/es/Logo/Logo.js +17 -11
- package/es/Logo/index.js +1 -0
- package/es/NoData/NoData.js +25 -17
- package/es/NoData/index.js +1 -0
- package/es/Pagination/Pagination.js +114 -70
- package/es/Pagination/index.js +1 -0
- package/es/PeriodPicker/PeriodPicker.js +124 -101
- package/es/PeriodPicker/constants.js +13 -78
- package/es/PeriodPicker/index.js +1 -0
- package/es/PeriodPicker/lib.js +23 -37
- package/es/PeriodPicker/styles.js +1 -0
- package/es/ScopeList/Header.js +60 -41
- package/es/ScopeList/Item.js +144 -98
- package/es/ScopeList/ScopeList.js +184 -132
- package/es/ScopeList/Selection.js +93 -51
- package/es/ScopeList/index.js +1 -0
- package/es/ScopeList/styles.js +3 -2
- package/es/ScopeList/with-scope-list.js +88 -151
- package/es/Select/Select.js +60 -44
- package/es/Select/index.js +1 -0
- package/es/Share/Form.js +88 -58
- package/es/Share/Mode.js +98 -36
- package/es/Share/Share.js +64 -41
- package/es/Share/index.js +10 -1
- package/es/SisccFooter/SisccFooter.js +36 -29
- package/es/SisccFooter/index.js +1 -0
- package/es/Spotlight/Fields.js +71 -37
- package/es/Spotlight/Spotlight.js +92 -51
- package/es/Spotlight/index.js +1 -0
- package/es/Spotlight/useSpotlight.js +13 -33
- package/es/Spotlight/useStyles.js +4 -2
- package/es/Table/Table.js +71 -50
- package/es/Table/header.js +50 -36
- package/es/Table/index.js +1 -0
- package/es/Table/itemCell.js +25 -13
- package/es/Table/row-header.js +50 -31
- package/es/Table/section-header.js +55 -30
- package/es/Table/section-rows.js +62 -38
- package/es/Table/styles.js +8 -2
- package/es/Table/tableCell.js +17 -7
- package/es/Table/tooltip.js +41 -21
- package/es/Table/useStyles.js +3 -2
- package/es/Table/valueCell.js +41 -26
- package/es/TableFooter/TableFooter.js +70 -42
- package/es/TableFooter/index.js +1 -0
- package/es/TableHeader/TableHeader.js +36 -18
- package/es/TableHeader/index.js +1 -0
- package/es/TableHtml5/TableHtml5.js +72 -60
- package/es/TableHtml5/cell.js +55 -35
- package/es/TableHtml5/flags.js +58 -29
- package/es/TableHtml5/header.js +85 -53
- package/es/TableHtml5/index.js +1 -0
- package/es/TableHtml5/section.js +131 -86
- package/es/TableHtml5/sectionHeader.js +72 -45
- package/es/TableHtml5/subHeader.js +70 -47
- package/es/TableLayout/Box.js +66 -33
- package/es/TableLayout/DnDItem.js +68 -37
- package/es/TableLayout/TableLayout.js +177 -105
- package/es/TableLayout/constants.js +2 -0
- package/es/TableLayout/index.js +1 -0
- package/es/TableLayout/lib.js +3 -1
- package/es/TablePreview/TablePreview.js +176 -99
- package/es/TablePreview/index.js +1 -0
- package/es/TablePreview/lib.js +4 -5
- package/es/TablePreview/styles.js +1 -0
- package/es/Tag/Tag.js +21 -5
- package/es/Tag/index.js +1 -0
- package/es/ToggleButton/ToggleButton.js +29 -17
- package/es/ToggleButton/index.js +1 -0
- package/es/Tooltip/Tooltip.js +32 -20
- package/es/Tooltip/index.js +1 -0
- package/es/VerticalButton/VerticalButton.js +22 -17
- package/es/VerticalButton/index.js +1 -0
- package/es/index.js +4 -2
- package/es/theme.js +14 -22
- package/es/utils.js +14 -16
- package/lib/Alert/Alert.js +168 -87
- package/lib/Alert/index.js +12 -7
- package/lib/ApiQueries/ApiQueries.js +105 -61
- package/lib/ApiQueries/Query.js +132 -85
- package/lib/ApiQueries/index.js +12 -7
- package/lib/AuthDialog/index.js +137 -82
- package/lib/Breadcrumbs/Breadcrumbs.js +68 -39
- package/lib/Breadcrumbs/index.js +12 -7
- package/lib/Button/Button.js +47 -28
- package/lib/Button/index.js +12 -7
- package/lib/ChartsConfig/Axis.js +100 -88
- package/lib/ChartsConfig/ButtonGroup.js +74 -43
- package/lib/ChartsConfig/ChartsConfig.js +236 -113
- package/lib/ChartsConfig/ContainerTitle.js +59 -30
- package/lib/ChartsConfig/Focus.js +71 -53
- package/lib/ChartsConfig/Frequency.js +59 -39
- package/lib/ChartsConfig/Series.js +70 -45
- package/lib/ChartsConfig/Size.js +77 -53
- package/lib/ChartsConfig/index.js +12 -7
- package/lib/ChartsConfig/styles.js +11 -16
- package/lib/ChartsConfig/utils.js +13 -14
- package/lib/Chips/Chips.js +192 -122
- package/lib/Chips/index.js +12 -7
- package/lib/CollapseButtons/CollapseButtons.js +134 -84
- package/lib/CollapseButtons/Item.js +98 -64
- package/lib/CollapseButtons/Paper.js +41 -19
- package/lib/CollapseButtons/index.js +12 -7
- package/lib/DataEdit/DataEdit.js +156 -88
- package/lib/DataEdit/Input.js +82 -42
- package/lib/DataEdit/index.js +12 -7
- package/lib/DataFooter/DataFooter.js +144 -88
- package/lib/DataFooter/index.js +12 -7
- package/lib/DataHeader/DataHeader.js +158 -106
- package/lib/DataHeader/Flags.js +34 -18
- package/lib/DataHeader/Title.js +27 -11
- package/lib/DataHeader/TooltipHeader.js +79 -48
- package/lib/DataHeader/index.js +12 -7
- package/lib/DataHeader/utils.js +10 -16
- package/lib/Dataflow/Dataflow.js +277 -159
- package/lib/Dataflow/index.js +12 -7
- package/lib/ExpansionPanel/ExpansionPanel.js +116 -63
- package/lib/ExpansionPanel/index.js +12 -7
- package/lib/ExpansionPanel/styles.js +12 -15
- package/lib/Icons/AccessibilityFilled.js +17 -15
- package/lib/Icons/AccessibilityOutlined.js +17 -15
- package/lib/Icons/AccountFilled.js +17 -15
- package/lib/Icons/AccountOutlined.js +17 -15
- package/lib/Icons/Api.js +17 -15
- package/lib/Icons/Asterisk.js +17 -15
- package/lib/Icons/Bar.js +17 -15
- package/lib/Icons/CopyContent.js +17 -15
- package/lib/Icons/Cross.js +17 -15
- package/lib/Icons/HSymbol.js +17 -15
- package/lib/Icons/Row.js +17 -15
- package/lib/Icons/Scatter.js +17 -15
- package/lib/Icons/StackedBar.js +17 -15
- package/lib/Icons/StackedRow.js +17 -15
- package/lib/Icons/Timeline.js +17 -15
- package/lib/Icons/VSymbol.js +17 -15
- package/lib/Icons/Warning.js +31 -27
- package/lib/Icons/index.js +152 -68
- package/lib/Input/Input.js +85 -47
- package/lib/Input/index.js +12 -7
- package/lib/Input/with-input.js +35 -38
- package/lib/InputNumber/InputNumber.js +80 -50
- package/lib/InputNumber/index.js +12 -7
- package/lib/LabelDivider/LabelDivider.js +37 -23
- package/lib/LabelDivider/index.js +12 -7
- package/lib/Loading/Loading.js +35 -20
- package/lib/Loading/index.js +12 -7
- package/lib/Logo/Logo.js +28 -20
- package/lib/Logo/index.js +12 -7
- package/lib/NoData/NoData.js +42 -28
- package/lib/NoData/index.js +12 -7
- package/lib/Pagination/Pagination.js +150 -91
- package/lib/Pagination/index.js +12 -7
- package/lib/PeriodPicker/PeriodPicker.js +150 -121
- package/lib/PeriodPicker/constants.js +37 -126
- package/lib/PeriodPicker/index.js +12 -7
- package/lib/PeriodPicker/lib.js +61 -99
- package/lib/PeriodPicker/styles.js +4 -7
- package/lib/ScopeList/Header.js +88 -58
- package/lib/ScopeList/Item.js +177 -116
- package/lib/ScopeList/ScopeList.js +234 -160
- package/lib/ScopeList/Selection.js +131 -70
- package/lib/ScopeList/index.js +12 -7
- package/lib/ScopeList/styles.js +9 -10
- package/lib/ScopeList/with-scope-list.js +108 -199
- package/lib/Select/Select.js +80 -59
- package/lib/Select/index.js +12 -7
- package/lib/Share/Form.js +119 -77
- package/lib/Share/Mode.js +130 -54
- package/lib/Share/Share.js +91 -59
- package/lib/Share/index.js +12 -7
- package/lib/SisccFooter/SisccFooter.js +63 -44
- package/lib/SisccFooter/index.js +12 -7
- package/lib/Spotlight/Fields.js +100 -54
- package/lib/Spotlight/Spotlight.js +136 -75
- package/lib/Spotlight/index.js +12 -7
- package/lib/Spotlight/useSpotlight.js +20 -44
- package/lib/Spotlight/useStyles.js +12 -15
- package/lib/Table/Table.js +102 -69
- package/lib/Table/header.js +70 -51
- package/lib/Table/index.js +12 -7
- package/lib/Table/itemCell.js +41 -25
- package/lib/Table/row-header.js +75 -49
- package/lib/Table/section-header.js +82 -50
- package/lib/Table/section-rows.js +94 -60
- package/lib/Table/styles.js +25 -23
- package/lib/Table/tableCell.js +37 -19
- package/lib/Table/tooltip.js +54 -36
- package/lib/Table/useStyles.js +8 -11
- package/lib/Table/valueCell.js +59 -39
- package/lib/TableFooter/TableFooter.js +93 -57
- package/lib/TableFooter/index.js +12 -7
- package/lib/TableHeader/TableHeader.js +56 -32
- package/lib/TableHeader/index.js +12 -7
- package/lib/TableHtml5/TableHtml5.js +100 -78
- package/lib/TableHtml5/cell.js +84 -52
- package/lib/TableHtml5/flags.js +82 -48
- package/lib/TableHtml5/header.js +115 -70
- package/lib/TableHtml5/index.js +17 -8
- package/lib/TableHtml5/section.js +171 -109
- package/lib/TableHtml5/sectionHeader.js +102 -64
- package/lib/TableHtml5/subHeader.js +98 -65
- package/lib/TableLayout/Box.js +97 -54
- package/lib/TableLayout/DnDItem.js +98 -58
- package/lib/TableLayout/TableLayout.js +232 -140
- package/lib/TableLayout/constants.js +6 -8
- package/lib/TableLayout/index.js +12 -7
- package/lib/TableLayout/lib.js +9 -14
- package/lib/TablePreview/TablePreview.js +205 -118
- package/lib/TablePreview/index.js +12 -7
- package/lib/TablePreview/lib.js +19 -30
- package/lib/TablePreview/styles.js +6 -7
- package/lib/Tag/Tag.js +38 -19
- package/lib/Tag/index.js +12 -7
- package/lib/ToggleButton/ToggleButton.js +55 -33
- package/lib/ToggleButton/index.js +12 -7
- package/lib/Tooltip/Tooltip.js +50 -34
- package/lib/Tooltip/index.js +12 -7
- package/lib/VerticalButton/VerticalButton.js +46 -40
- package/lib/VerticalButton/index.js +12 -7
- package/lib/index.js +304 -137
- package/lib/theme.js +17 -31
- package/lib/utils.js +31 -46
- package/package.json +10 -2
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M16 0.256c-8.672 0-15.744 7.072-15.744 15.744s7.072 15.744 15.744 15.744 15.744-7.072 15.744-15.744-7.072-15.744-15.744-15.744zM16 30.016c-7.744 0-13.984-6.272-13.984-14.016s6.24-14.016 13.984-14.016 14.016 6.272 14.016 14.016-6.272 14.016-14.016 14.016zM16 3.072c-7.072 0-12.928 5.728-12.928 12.928s5.728 12.928 12.928 12.928 12.928-5.728 12.928-12.928-5.856-12.928-12.928-12.928zM16 5.728c2.4 0 4.416 2.016 4.416 4.416s-2.016 4.384-4.416 4.384-4.384-1.984-4.384-4.384c0-2.4 1.984-4.416 4.384-4.416zM16 26.528c-3.584 0-6.944-1.856-8.8-4.672 0-2.912 5.856-4.512 8.8-4.512s8.672 1.6 8.8 4.512c-1.856 2.816-5.184 4.672-8.8 4.672z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M16 5.728c2.4 0 4.416 2.016 4.416 4.416s-2.016 4.384-4.416 4.384-4.384-1.984-4.384-4.384 1.984-4.416 4.384-4.416zM16 26.528c-3.584 0-6.944-1.856-8.8-4.672 0-2.912 5.856-4.512 8.8-4.512s8.672 1.6 8.8 4.512c-1.856 2.816-5.184 4.672-8.8 4.672zM16 0.256c-8.672 0-15.744 7.072-15.744 15.744s7.072 15.744 15.744 15.744 15.744-7.072 15.744-15.744-7.072-15.744-15.744-15.744zM16 30.016c-7.744 0-13.984-6.272-13.984-14.016s6.24-14.016 13.984-14.016 14.016 6.272 14.016 14.016-6.272 14.016-14.016 14.016z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/Api.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M30.4 1.6h-28.8c-0.96 0-1.6 0.8-1.6 1.6v25.6c0 0.8 0.64 1.6 1.6 1.6h28.8c0.8 0 1.6-0.8 1.6-1.6v-25.6c0-0.8-0.8-1.6-1.6-1.6zM29.76 28.16h-27.52v-18.88h27.52v18.88zM4.16 23.36l4.64-9.92 0.16-0.16h0.16c0.16 0 0.16 0 0.16 0.16l4.64 9.92c0 0.16 0 0.48-0.16 0.48h-1.76c-0.16 0-0.48 0-0.64-0.48l-0.64-1.28h-4l-0.64 1.28c0 0.16-0.16 0.48-0.64 0.48h-1.12c-0.16 0-0.48-0.32-0.16-0.48zM10.080 20.16l-1.28-2.4-0.96 2.4h2.24zM15.36 13.76c0-0.16 0.16-0.16 0.16-0.16h3.68c1.76 0 3.2 1.44 3.2 3.2s-1.44 3.2-3.2 3.2h-1.6v3.36c0 0.16-0.16 0.16-0.16 0.16h-1.92c-0.16 0-0.16-0.16-0.16-0.16v-9.6zM19.040 17.92c0.64 0 1.28-0.48 1.28-1.28 0-0.64-0.64-0.96-1.28-0.96h-1.44v2.24h1.44zM24 13.76c0-0.16 0.16-0.16 0.16-0.16h1.76c0.16 0 0.16 0.16 0.16 0.16v9.76c0 0.16-0.16 0.16-0.16 0.16h-1.76c-0.16 0-0.16-0.16-0.16-0.16v-9.76z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/Asterisk.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M29.92 24.096c-0.512 0.768-1.28 1.28-2.208 1.28-0.384 0-0.896-0.128-1.28-0.384l-7.776-4.512v8.928c0 1.44-1.152 2.592-2.592 2.592s-2.592-1.152-2.592-2.592v-8.928l-7.776 4.512c-0.384 0.256-0.896 0.384-1.28 0.384-0.928 0-1.824-0.512-2.208-1.28-0.768-1.28-0.256-2.848 0.896-3.488l7.776-4.544-7.776-4.544c-1.28-0.768-1.664-2.336-0.896-3.488s2.336-1.696 3.488-0.896l7.776 4.512v-9.056c0-1.44 1.184-2.592 2.592-2.592s2.592 1.152 2.592 2.592v8.928l7.776-4.512c1.28-0.8 2.848-0.288 3.488 0.896 0.8 1.28 0.256 2.848-0.896 3.488l-7.776 4.544 7.776 4.544c1.152 0.768 1.568 2.336 0.896 3.616z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/Bar.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M9.152 16v9.152h-4.576v-9.152h4.576zM16 6.848v18.304h-4.576v-18.304h4.576zM34.272 27.424v2.304h-36.544v-27.456h2.272v25.152h34.272zM22.848 11.424v13.728h-4.576v-13.728h4.576zM29.728 4.576v20.576h-4.576v-20.576h4.576z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/CopyContent.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 24 24' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/Cross.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M18.272 16l5.248-5.28c0.32-0.288 0.48-0.672 0.48-1.12 0-0.896-0.704-1.6-1.6-1.6-0.448 0-0.832 0.16-1.12 0.448l-5.28 5.28-5.248-5.28c-0.288-0.288-0.704-0.448-1.152-0.448-0.864 0-1.6 0.704-1.6 1.6 0 0.448 0.192 0.832 0.48 1.12l5.28 5.28-5.28 5.248c-0.288 0.288-0.48 0.704-0.48 1.152 0 0.864 0.736 1.6 1.6 1.6 0.448 0 0.864-0.192 1.152-0.48l5.248-5.28 5.28 5.28c0.288 0.288 0.672 0.48 1.12 0.48 0.896 0 1.6-0.736 1.6-1.6 0-0.448-0.16-0.864-0.448-1.152l-5.28-5.248z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/HSymbol.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M3.584 20.736c0 1.568 1.28 2.848 2.848 2.848s2.848-1.28 2.848-2.848c0-1.568-1.28-2.848-2.848-2.848s-2.848 1.28-2.848 2.848zM8.768 20.736c0 1.28-1.056 2.336-2.336 2.336-1.312 0-2.336-1.056-2.336-2.336s1.024-2.336 2.336-2.336c1.28 0 2.336 1.056 2.336 2.336zM23.392 17.888c1.568 0 2.848 1.28 2.848 2.848s-1.28 2.848-2.848 2.848-2.848-1.28-2.848-2.848c0-1.568 1.28-2.848 2.848-2.848zM34.272 27.424v2.304h-36.544v-27.456h2.272v25.152h34.272zM9.92 21.248v-0.96h9.728v0.96h-9.728zM12.992 14.24c0 1.568 1.28 2.848 2.848 2.848 1.6 0 2.88-1.28 2.88-2.848s-1.28-2.848-2.88-2.848c-1.568 0-2.848 1.28-2.848 2.848zM18.208 14.24c0 1.28-1.056 2.336-2.368 2.336-1.28 0-2.336-1.056-2.336-2.336 0-1.312 1.056-2.336 2.336-2.336 1.312 0 2.368 1.024 2.368 2.336zM28.96 11.392c1.6 0 2.848 1.28 2.848 2.848s-1.248 2.848-2.848 2.848-2.848-1.28-2.848-2.848c0-1.568 1.28-2.848 2.848-2.848zM19.36 14.752v-0.96h5.792v0.96h-5.792zM6.592 6.944c0 1.568 1.28 2.848 2.848 2.848s2.848-1.28 2.848-2.848c0-1.568-1.28-2.848-2.848-2.848s-2.848 1.28-2.848 2.848zM11.776 6.944c0 1.28-1.056 2.336-2.336 2.336s-2.336-1.056-2.336-2.336c0-1.28 1.056-2.336 2.336-2.336s2.336 1.056 2.336 2.336zM20 4.096c1.568 0 2.848 1.28 2.848 2.848s-1.28 2.848-2.848 2.848-2.848-1.28-2.848-2.848c0-1.568 1.248-2.848 2.848-2.848zM12.928 7.456v-0.96h3.264v0.96h-3.264z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/Row.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M22.848 11.424h-18.304v-4.576h18.304v4.576zM34.272 27.424v2.304h-36.544v-27.456h2.272v25.152h34.272zM18.272 18.272h-13.728v-4.544h13.728v4.544zM25.12 25.152h-20.576v-4.576h20.576v4.576z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/Scatter.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M25.728 11.008c0-1.568 1.28-2.848 2.848-2.848s2.848 1.28 2.848 2.848-1.28 2.848-2.848 2.848c-1.568 0-2.848-1.28-2.848-2.848zM34.272 27.424v2.304h-36.544v-27.456h2.272v25.152h34.272zM10.496 6.528c0-1.568 1.28-2.848 2.88-2.848 1.568 0 2.848 1.28 2.848 2.848s-1.28 2.848-2.848 2.848c-1.6 0-2.88-1.28-2.88-2.848zM4.032 20.096c0-1.6 1.28-2.848 2.848-2.848s2.848 1.248 2.848 2.848-1.28 2.848-2.848 2.848c-1.568 0-2.848-1.28-2.848-2.848zM18.56 16.384c0-1.568 1.28-2.848 2.848-2.848s2.848 1.28 2.848 2.848-1.28 2.848-2.848 2.848c-1.568 0-2.848-1.28-2.848-2.848z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/StackedBar.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M10.656 21.12v4.032h-6.080v-4.032h6.080zM10.656 12.416v7.52h-6.080v-7.52h6.080zM10.656 9.28v1.984h-6.080v-1.984h6.080zM34.272 27.424v2.304h-36.544v-27.456h2.272v25.152h34.272zM29.728 22.56v2.592h-6.080v-2.592h6.080zM29.728 15.36v6.176h-6.080v-6.176h6.080zM29.728 11.36v3.008h-6.080v-3.008h6.080zM20.192 17.952v7.2h-6.080v-7.2h6.080zM20.192 8.096v8.736h-6.080v-8.736h6.080zM20.192 2.272v4.416h-6.080v-4.416h6.080z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/StackedRow.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M13 6 4 6 4 11 13 11 13 6ZM15 20 4 20 4 25 15 25 15 20ZM24 20 16 20 16 25 24 25 24 20ZM27 20 25 20 25 25 27 25 27 20ZM21 6 14 6 14 11 21 11 21 6ZM25 6 22 6 22 11 25 11 25 6ZM18 13 4 13 4 18 18 18 18 13ZM28 13 19 13 19 18 28 18 28 13ZM34 13 29 13 29 18 34 18 34 13ZM34.3 27.4V29.7H-2.3V2.3H0V27.4H34.3Z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/Timeline.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M34.272 27.424v2.304h-36.544v-27.456h2.272v25.152h34.272zM2.848 22.752l-1.344-1.568 8.288-7.072 1.344 1.6-8.288 7.040zM2.848 14.112l-1.344-1.568 8.288-7.040 1.344 1.568-8.288 7.040zM8.224 15.424l1.6-1.312 6.624 8.128-1.6 1.312-6.624-8.128zM8.224 6.784l1.6-1.312 14.144 17.376-1.6 1.312-14.144-17.376zM14.848 23.552l-1.344-1.6 18.336-15.264 1.344 1.6-18.336 15.264zM22.368 24.128l-1.344-1.6 10.72-8.896 1.312 1.568-10.688 8.928z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/VSymbol.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
5
|
+
|
|
4
6
|
export default (function (props) {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
d:
|
|
9
|
-
|
|
7
|
+
return React.createElement(
|
|
8
|
+
SvgIcon,
|
|
9
|
+
_extends({ viewBox: '0 0 32 38' }, props),
|
|
10
|
+
React.createElement('path', { d: 'M28 25.44c1.6 0 2.848-1.28 2.848-2.848s-1.248-2.848-2.848-2.848c-1.568 0-2.848 1.28-2.848 2.848s1.28 2.848 2.848 2.848zM28 20.256c1.312 0 2.336 1.024 2.336 2.336 0 1.28-1.024 2.336-2.336 2.336-1.28 0-2.336-1.056-2.336-2.336 0-1.312 1.056-2.336 2.336-2.336zM25.152 5.6c0-1.568 1.28-2.848 2.848-2.848 1.6 0 2.848 1.28 2.848 2.848s-1.248 2.848-2.848 2.848c-1.568 0-2.848-1.28-2.848-2.848zM34.272 27.424v2.304h-36.544v-27.456h2.272v25.152h34.272zM28.512 19.072h-0.96v-9.728h0.96v9.728zM14.176 15.424c1.568 0 2.848-1.28 2.848-2.848s-1.28-2.848-2.848-2.848c-1.6 0-2.848 1.28-2.848 2.848s1.248 2.848 2.848 2.848zM14.176 10.24c1.28 0 2.336 1.056 2.336 2.336s-1.056 2.336-2.336 2.336c-1.312 0-2.336-1.056-2.336-2.336s1.024-2.336 2.336-2.336zM11.328 3.648c0-1.6 1.248-2.848 2.848-2.848 1.568 0 2.848 1.248 2.848 2.848s-1.28 2.848-2.848 2.848c-1.6 0-2.848-1.28-2.848-2.848zM14.688 8.8h-0.992v-1.344h0.992v1.344zM6.88 23.488c1.568 0 2.848-1.28 2.848-2.848s-1.28-2.848-2.848-2.848c-1.568 0-2.848 1.28-2.848 2.848s1.28 2.848 2.848 2.848zM6.88 18.304c1.28 0 2.336 1.024 2.336 2.336 0 1.28-1.056 2.336-2.336 2.336s-2.336-1.056-2.336-2.336c0-1.312 1.056-2.336 2.336-2.336zM4.032 10.080c0-1.568 1.28-2.848 2.848-2.848s2.848 1.28 2.848 2.848-1.28 2.848-2.848 2.848c-1.568 0-2.848-1.28-2.848-2.848zM7.392 17.12h-0.96v-3.232h0.96v3.232zM21.408 12.032c1.568 0 2.848-1.28 2.848-2.848s-1.28-2.848-2.848-2.848c-1.568 0-2.848 1.28-2.848 2.848s1.28 2.848 2.848 2.848zM21.408 6.848c1.28 0 2.336 1.056 2.336 2.336s-1.056 2.336-2.336 2.336c-1.28 0-2.336-1.056-2.336-2.336s1.056-2.336 2.336-2.336zM18.56 18.272c0-1.568 1.28-2.848 2.848-2.848s2.848 1.28 2.848 2.848-1.28 2.848-2.848 2.848c-1.568 0-2.848-1.248-2.848-2.848zM21.92 14.528h-0.96v-1.568h0.96v1.568z' })
|
|
11
|
+
);
|
|
10
12
|
});
|
package/es/Icons/Warning.js
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import * as R from 'ramda';
|
|
5
6
|
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
7
|
+
|
|
6
8
|
var WarningIcon = React.forwardRef(function (props, ref) {
|
|
7
|
-
return
|
|
8
|
-
|
|
9
|
-
viewBox:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
d:
|
|
15
|
-
|
|
16
|
-
}));
|
|
9
|
+
return React.createElement(
|
|
10
|
+
SvgIcon,
|
|
11
|
+
_extends({ ref: ref, viewBox: '0 0 24 24' }, R.omit(['pathBackgroundColor', 'pathColor'], props)),
|
|
12
|
+
React.createElement('path', {
|
|
13
|
+
d: 'M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z',
|
|
14
|
+
fill: props.pathBackgroundColor || 'orange'
|
|
15
|
+
}),
|
|
16
|
+
React.createElement('path', { d: 'M1 21zm12 -3h-2v-2h2v2zm0 -4h-2v-4h2v4z', fill: props.pathColor || 'black' })
|
|
17
|
+
);
|
|
17
18
|
});
|
|
19
|
+
|
|
18
20
|
WarningIcon.propTypes = {
|
|
19
21
|
pathBackgroundColor: PropTypes.string,
|
|
20
22
|
pathColor: PropTypes.string
|
|
21
23
|
};
|
|
24
|
+
|
|
22
25
|
export default WarningIcon;
|
package/es/Icons/index.js
CHANGED
package/es/Input/Input.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
3
5
|
import * as R from 'ramda';
|
|
4
6
|
import cx from 'classnames';
|
|
5
7
|
import { makeStyles } from '@material-ui/core/styles';
|
|
@@ -8,6 +10,7 @@ import InputAdornment from '@material-ui/core/InputAdornment';
|
|
|
8
10
|
import IconButton from '@material-ui/core/IconButton';
|
|
9
11
|
import Done from '@material-ui/icons/Done';
|
|
10
12
|
import { withInput } from './with-input';
|
|
13
|
+
|
|
11
14
|
var useStyles = makeStyles(function () {
|
|
12
15
|
return {
|
|
13
16
|
visibility: {
|
|
@@ -18,21 +21,32 @@ var useStyles = makeStyles(function () {
|
|
|
18
21
|
|
|
19
22
|
var LefttIcon = function LefttIcon(_ref) {
|
|
20
23
|
var Icon = _ref.Icon;
|
|
21
|
-
return
|
|
24
|
+
return React.createElement(Icon, null);
|
|
22
25
|
};
|
|
23
26
|
|
|
27
|
+
LefttIcon.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
28
|
+
Icon: PropTypes.object
|
|
29
|
+
} : {};
|
|
30
|
+
|
|
24
31
|
var RightIcon = function RightIcon(_ref2) {
|
|
25
32
|
var onSubmit = _ref2.onSubmit,
|
|
26
33
|
_ref2$Icon = _ref2.Icon,
|
|
27
|
-
Icon = _ref2$Icon ===
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
onClick: function onClick() {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
Icon = _ref2$Icon === undefined ? Done : _ref2$Icon;
|
|
35
|
+
return React.createElement(
|
|
36
|
+
IconButton,
|
|
37
|
+
{ color: 'primary', onClick: function onClick() {
|
|
38
|
+
return onSubmit();
|
|
39
|
+
} },
|
|
40
|
+
React.createElement(Icon, null)
|
|
41
|
+
);
|
|
34
42
|
};
|
|
35
43
|
|
|
44
|
+
RightIcon.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
45
|
+
Icon: PropTypes.object,
|
|
46
|
+
onSubmit: PropTypes.func,
|
|
47
|
+
classes: PropTypes.object
|
|
48
|
+
} : {};
|
|
49
|
+
|
|
36
50
|
export var MyInput = function MyInput(_ref3) {
|
|
37
51
|
var _cx;
|
|
38
52
|
|
|
@@ -50,39 +64,37 @@ export var MyInput = function MyInput(_ref3) {
|
|
|
50
64
|
textFieldProps = _ref3.textFieldProps,
|
|
51
65
|
inputProps = _ref3.inputProps,
|
|
52
66
|
endAdornment = _ref3.endAdornment;
|
|
67
|
+
|
|
53
68
|
var classes = useStyles();
|
|
54
|
-
var startAdornment = R.isNil(leftIcon) ? null :
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Icon: leftIcon
|
|
58
|
-
|
|
59
|
-
var endMyadornment = R.or(withValidationIcon, !R.isNil(rightIcon)) ?
|
|
60
|
-
|
|
61
|
-
className: cx((_cx = {}, _cx[classes.visibility] = R.isEmpty(value), _cx))
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
Icon: rightIcon
|
|
65
|
-
})) : null;
|
|
69
|
+
var startAdornment = R.isNil(leftIcon) ? null : React.createElement(
|
|
70
|
+
InputAdornment,
|
|
71
|
+
{ position: 'start' },
|
|
72
|
+
React.createElement(LefttIcon, { Icon: leftIcon })
|
|
73
|
+
);
|
|
74
|
+
var endMyadornment = R.or(withValidationIcon, !R.isNil(rightIcon)) ? React.createElement(
|
|
75
|
+
InputAdornment,
|
|
76
|
+
{ position: 'end', className: cx((_cx = {}, _cx[classes.visibility] = R.isEmpty(value), _cx)) },
|
|
77
|
+
React.createElement(RightIcon, { onSubmit: onSubmit, Icon: rightIcon })
|
|
78
|
+
) : null;
|
|
66
79
|
|
|
67
80
|
var onEnterLabel = function onEnterLabel(event) {
|
|
68
81
|
if (event.key === 'Enter') {
|
|
69
82
|
event.preventDefault();
|
|
70
|
-
|
|
71
83
|
if (R.is(Function, onSubmit)) {
|
|
72
84
|
onSubmit();
|
|
73
85
|
}
|
|
74
86
|
}
|
|
75
87
|
};
|
|
76
88
|
|
|
77
|
-
return
|
|
78
|
-
|
|
79
|
-
margin:
|
|
89
|
+
return React.createElement(TextField, _extends({
|
|
90
|
+
'data-testid': 'input-test-id',
|
|
91
|
+
margin: 'dense',
|
|
80
92
|
fullWidth: fullWidth,
|
|
81
93
|
id: id,
|
|
82
94
|
type: type,
|
|
83
95
|
label: label,
|
|
84
96
|
value: value,
|
|
85
|
-
variant:
|
|
97
|
+
variant: 'outlined',
|
|
86
98
|
placeholder: placeholder,
|
|
87
99
|
onChange: function onChange(e) {
|
|
88
100
|
return _onChange(e.target.value);
|
|
@@ -95,4 +107,22 @@ export var MyInput = function MyInput(_ref3) {
|
|
|
95
107
|
inputProps: inputProps
|
|
96
108
|
}, textFieldProps));
|
|
97
109
|
};
|
|
110
|
+
|
|
111
|
+
MyInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
112
|
+
id: PropTypes.string,
|
|
113
|
+
label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
114
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
115
|
+
leftIcon: PropTypes.object,
|
|
116
|
+
rightIcon: PropTypes.object,
|
|
117
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
118
|
+
type: PropTypes.string,
|
|
119
|
+
onChange: PropTypes.func,
|
|
120
|
+
onSubmit: PropTypes.func,
|
|
121
|
+
fullWidth: PropTypes.bool,
|
|
122
|
+
withValidationIcon: PropTypes.bool,
|
|
123
|
+
textFieldProps: PropTypes.object,
|
|
124
|
+
inputProps: PropTypes.object,
|
|
125
|
+
endAdornment: PropTypes.node
|
|
126
|
+
} : {};
|
|
127
|
+
|
|
98
128
|
export default withInput(MyInput);
|
package/es/Input/index.js
CHANGED
package/es/Input/with-input.js
CHANGED
|
@@ -1,58 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
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; };
|
|
2
|
+
|
|
3
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4
|
+
|
|
5
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
6
|
+
|
|
7
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
5
8
|
|
|
6
9
|
/* eslint react/prop-types: 0 */
|
|
7
10
|
import React from 'react';
|
|
8
11
|
import * as R from 'ramda';
|
|
12
|
+
|
|
9
13
|
export var withInput = function withInput(Component) {
|
|
10
|
-
return
|
|
11
|
-
|
|
14
|
+
return function (_React$Component) {
|
|
15
|
+
_inherits(_class2, _React$Component);
|
|
12
16
|
|
|
13
17
|
function _class2() {
|
|
14
|
-
var _this;
|
|
18
|
+
var _temp, _this, _ret;
|
|
15
19
|
|
|
16
|
-
|
|
20
|
+
_classCallCheck(this, _class2);
|
|
21
|
+
|
|
22
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
17
23
|
args[_key] = arguments[_key];
|
|
18
24
|
}
|
|
19
25
|
|
|
20
|
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args))
|
|
21
|
-
|
|
22
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
26
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
|
|
23
27
|
value: _this.props.value || ''
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
_this.setState({
|
|
28
|
-
value: value
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
_defineProperty(_assertThisInitialized(_this), "onSubmit", function () {
|
|
28
|
+
}, _this.onChange = function (value) {
|
|
29
|
+
_this.setState({ value: value });
|
|
30
|
+
}, _this.onSubmit = function () {
|
|
33
31
|
_this.bubbleUp(_this.state.value);
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
_defineProperty(_assertThisInitialized(_this), "bubbleUp", function (item) {
|
|
32
|
+
}, _this.bubbleUp = function (item) {
|
|
37
33
|
if (R.is(Function, _this.props.onSubmit)) _this.props.onSubmit(item);
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
|
34
|
+
}, _this.render = function () {
|
|
41
35
|
var _this$props = _this.props,
|
|
42
36
|
onChange = _this$props.onChange,
|
|
43
37
|
onSubmit = _this$props.onSubmit,
|
|
44
38
|
isControlled = _this$props.isControlled,
|
|
45
39
|
isBlank = _this$props.isBlank;
|
|
40
|
+
|
|
46
41
|
if (isBlank) return null;
|
|
47
42
|
var value = _this.state.value;
|
|
48
|
-
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
return React.createElement(Component, _extends({}, _this.props, {
|
|
49
46
|
onChange: isControlled ? onChange : _this.onChange,
|
|
50
47
|
onSubmit: isControlled ? onSubmit : _this.onSubmit,
|
|
51
48
|
value: isControlled ? _this.props.value : value
|
|
52
49
|
}));
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
return _this;
|
|
50
|
+
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
56
51
|
}
|
|
57
52
|
|
|
58
53
|
return _class2;
|