@widergy/energy-ui 3.6.2 → 3.7.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/CHANGELOG.md +14 -0
- package/dist/components/UTAttachmentList/assets/audioIcon.svg +3 -0
- package/dist/components/UTAttachmentList/assets/checkIcon.svg +3 -0
- package/dist/components/UTAttachmentList/assets/deleteIcon.svg +3 -0
- package/dist/components/UTAttachmentList/assets/errorIcon.svg +4 -0
- package/dist/components/UTAttachmentList/assets/filesIcon.svg +3 -0
- package/dist/components/UTAttachmentList/assets/playIcon.svg +3 -0
- package/dist/components/UTAttachmentList/assets/uploadIcon.svg +3 -0
- package/dist/components/UTAttachmentList/assets/videoIcon.svg +3 -0
- package/dist/components/UTAttachmentList/components/Preview/index.js +73 -0
- package/dist/components/UTAttachmentList/components/Preview/styles.module.scss +6 -0
- package/dist/components/UTAttachmentList/components/PreviewModal/index.js +59 -0
- package/dist/components/UTAttachmentList/components/PreviewModal/styles.module.scss +33 -0
- package/dist/components/UTAttachmentList/constants.js +24 -0
- package/dist/components/UTAttachmentList/index.js +250 -0
- package/dist/components/UTAttachmentList/layout.js +245 -0
- package/dist/components/UTAttachmentList/styles.module.scss +90 -0
- package/dist/components/UTAttachmentList/theme.js +37 -0
- package/dist/components/UTAttachmentList/utils.js +79 -0
- package/dist/components/UTSelectableCard/README.md +1 -1
- package/dist/components/UTSelectableCard/assets/check.svg +3 -0
- package/dist/components/UTSelectableCard/assets/help.svg +3 -0
- package/dist/components/UTSelectableCard/constants.js +9 -20
- package/dist/components/UTSelectableCard/index.js +56 -42
- package/dist/components/UTSelectableCard/theme.js +107 -70
- package/dist/index.js +7 -0
- package/package.json +1 -1
|
@@ -4,24 +4,49 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = require("prop-types");
|
|
9
|
-
var _HelpOutlineOutlined = _interopRequireDefault(require("@material-ui/icons/HelpOutlineOutlined"));
|
|
10
|
-
var _Check = _interopRequireDefault(require("@material-ui/icons/Check"));
|
|
11
9
|
var _object = require("@widergy/web-utils/lib/object");
|
|
12
10
|
var _UTLabel = _interopRequireDefault(require("../UTLabel"));
|
|
13
11
|
var _UTTooltip = _interopRequireDefault(require("../UTTooltip"));
|
|
14
|
-
var _UTTouchableWithoutFeedback = _interopRequireDefault(require("../UTTouchableWithoutFeedback"));
|
|
15
12
|
var _WithTheme = _interopRequireDefault(require("../WithTheme"));
|
|
16
|
-
var _theme = require("./theme");
|
|
17
13
|
var _constants = require("./constants");
|
|
14
|
+
var _theme = require("./theme");
|
|
18
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
var CheckIcon = function CheckIcon(props) {
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
18
|
+
fillRule: "evenodd",
|
|
19
|
+
clipRule: "evenodd",
|
|
20
|
+
d: "M20.707 6.293a1 1 0 0 1 0 1.414l-10 10a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L10 15.586l9.293-9.293a1 1 0 0 1 1.414 0Z",
|
|
21
|
+
fill: "#0136E7"
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
CheckIcon.defaultProps = {
|
|
25
|
+
width: "24",
|
|
26
|
+
height: "24",
|
|
27
|
+
viewBox: "0 0 24 24",
|
|
28
|
+
fill: "none",
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
30
|
+
};
|
|
31
|
+
var HelpIcon = function HelpIcon(props) {
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
33
|
+
fillRule: "evenodd",
|
|
34
|
+
clipRule: "evenodd",
|
|
35
|
+
d: "M10 3.333a6.667 6.667 0 1 0 0 13.334 6.667 6.667 0 0 0 0-13.334ZM1.667 10a8.333 8.333 0 1 1 16.666 0 8.333 8.333 0 0 1-16.666 0Zm7.062-4.713a3 3 0 1 1 2.38 5.5.416.416 0 0 0-.277.416.833.833 0 0 1-1.664.094 2.083 2.083 0 0 1 1.376-2.078A1.334 1.334 0 1 0 8.997 7.17.833.833 0 1 1 7.67 6.163a3 3 0 0 1 1.06-.876ZM10 13.333c.46 0 .833.373.833.834v.008a.833.833 0 0 1-1.666 0v-.008c0-.46.373-.834.833-.834Z",
|
|
36
|
+
fill: "#091E42"
|
|
37
|
+
}));
|
|
38
|
+
};
|
|
39
|
+
HelpIcon.defaultProps = {
|
|
40
|
+
width: "20",
|
|
41
|
+
height: "20",
|
|
42
|
+
viewBox: "0 0 20 20",
|
|
43
|
+
fill: "none",
|
|
44
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
45
|
+
};
|
|
21
46
|
const UTSelectableCard = _ref => {
|
|
22
47
|
let {
|
|
23
48
|
aditionalInfo = {},
|
|
24
|
-
|
|
49
|
+
appearance = _constants.APPEARANCES.WHITE,
|
|
25
50
|
checkIcon = true,
|
|
26
51
|
classes,
|
|
27
52
|
classNames = {},
|
|
@@ -30,73 +55,62 @@ const UTSelectableCard = _ref => {
|
|
|
30
55
|
Icon,
|
|
31
56
|
onClick,
|
|
32
57
|
selected = false,
|
|
33
|
-
size =
|
|
58
|
+
size = _constants.SIZES.MEDIUM,
|
|
34
59
|
titleText,
|
|
35
60
|
tooltip
|
|
36
61
|
} = _ref;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const selectedItemShade = selected && (state === _constants.HOVER_STATE || state === _constants.PRESSED_STATE || state === _constants.ACTIVE_STATE) && _constants.shade05;
|
|
40
|
-
const apareanceGrayPressed = apareance === _constants.GRAY && pressedAndSelected;
|
|
41
|
-
return /*#__PURE__*/_react.default.createElement(_UTTouchableWithoutFeedback.default, {
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
63
|
+
role: "button",
|
|
42
64
|
onClick: () => !disabled && onClick(),
|
|
43
|
-
|
|
44
|
-
onMouseUp: () => !disabled && setState(_constants.ACTIVE_STATE),
|
|
45
|
-
onMouseOver: () => !disabled && selected && setState(_constants.HOVER_STATE),
|
|
46
|
-
onMouseOut: () => !disabled && selected && setState(_constants.ACTIVE_STATE),
|
|
47
|
-
className: "".concat(classes.item, " ").concat(classes["".concat(apareance, "Apareance")], " ").concat(selected && classes["".concat(apareance, "SelectedContainer")], " ").concat(disabled && classes["".concat(apareance, "DisabledContainer")], " ").concat(classes["".concat(size, "Size")])
|
|
65
|
+
className: "\n ".concat(classes.item, "\n ").concat(disabled ? classes["".concat(appearance, "DisabledContainer")] : selected ? classes["".concat(appearance, "SelectedContainer")] : classes["".concat(appearance, "Apareance")], "\n ").concat(classes["".concat(size, "Size")], "\n ")
|
|
48
66
|
}, Icon && /*#__PURE__*/_react.default.createElement(Icon, {
|
|
49
|
-
className: "".concat(classes.icon, " ").concat(
|
|
67
|
+
className: "".concat(classes.icon, " ").concat(classNames.icon)
|
|
50
68
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
51
|
-
className: classes.textContainer
|
|
69
|
+
className: "".concat(classes.textContainer, " ").concat(checkIcon && classes.textContainerWithCheckedIcon)
|
|
52
70
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
53
71
|
className: classes.column
|
|
54
72
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
55
73
|
className: classes.titleAndTooltip
|
|
56
74
|
}, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
75
|
+
className: classes.titleText,
|
|
57
76
|
variant: "subtitle1",
|
|
58
|
-
weight: "medium"
|
|
59
|
-
colorTheme: apareanceGrayPressed ? _constants.LIGHT : disabled ? _constants.GRAY : selected ? _constants.ACCENT : _constants.DARK,
|
|
60
|
-
shade: apareanceGrayPressed ? _constants.shade01 : disabled ? _constants.shade04 : _constants.shade05
|
|
77
|
+
weight: "medium"
|
|
61
78
|
}, titleText), tooltip && /*#__PURE__*/_react.default.createElement(_UTTooltip.default, {
|
|
62
79
|
content: tooltip
|
|
63
80
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
64
81
|
className: classes.tooltip
|
|
65
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
66
|
-
className: "".concat(classes.infoIcon
|
|
82
|
+
}, /*#__PURE__*/_react.default.createElement(HelpIcon, {
|
|
83
|
+
className: "".concat(classes.infoIcon)
|
|
67
84
|
})))), description && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
68
|
-
|
|
69
|
-
shade: apareanceGrayPressed ? _constants.shade01 : selectedItemShade || _constants.shade04
|
|
85
|
+
className: classes.description
|
|
70
86
|
}, description)), !(0, _object.objectIsEmpty)(aditionalInfo) && /*#__PURE__*/_react.default.createElement("div", {
|
|
71
87
|
className: "".concat(classes.column, " ").concat(classes.aditionalInfoColumn)
|
|
72
88
|
}, !!aditionalInfo.title && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
73
|
-
|
|
89
|
+
className: classes.aditionalInfoTitle,
|
|
74
90
|
variant: "small",
|
|
75
|
-
weight: "semibold"
|
|
76
|
-
shade: apareanceGrayPressed ? _constants.shade01 : disabled ? _constants.shade04 : _constants.shade05
|
|
91
|
+
weight: "semibold"
|
|
77
92
|
}, aditionalInfo.title), !!aditionalInfo.description && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
78
|
-
|
|
79
|
-
variant: "small"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
className: "".concat(classes.checkIcon, " ").concat(apareanceGrayPressed && classes.grayPressedCheckIcon)
|
|
93
|
+
className: classes.aditionalInfoDescription,
|
|
94
|
+
variant: "small"
|
|
95
|
+
}, aditionalInfo.description))), checkIcon && selected && /*#__PURE__*/_react.default.createElement(CheckIcon, {
|
|
96
|
+
className: classes.checkIcon
|
|
83
97
|
}));
|
|
84
98
|
};
|
|
85
99
|
UTSelectableCard.propTypes = {
|
|
86
100
|
aditionalInfo: (0, _propTypes.shape)({
|
|
87
|
-
|
|
88
|
-
|
|
101
|
+
description: _propTypes.string,
|
|
102
|
+
title: _propTypes.string
|
|
89
103
|
}),
|
|
90
|
-
|
|
104
|
+
appearance: (0, _propTypes.oneOf)([_constants.APPEARANCES.GRAY, _constants.APPEARANCES.WHITE]),
|
|
91
105
|
checkIcon: _propTypes.bool,
|
|
92
106
|
classes: (0, _propTypes.objectOf)(_propTypes.string),
|
|
93
|
-
classNames: _propTypes.
|
|
107
|
+
classNames: (0, _propTypes.objectOf)(_propTypes.string),
|
|
94
108
|
description: _propTypes.string,
|
|
95
109
|
disabled: _propTypes.bool,
|
|
96
|
-
Icon: _propTypes.
|
|
110
|
+
Icon: _propTypes.elementType,
|
|
97
111
|
onClick: _propTypes.func,
|
|
98
112
|
selected: _propTypes.bool,
|
|
99
|
-
size: _propTypes.
|
|
113
|
+
size: (0, _propTypes.oneOf)([_constants.SIZES.MEDIUM, _constants.SIZES.SMALL]),
|
|
100
114
|
titleText: _propTypes.string,
|
|
101
115
|
tooltip: _propTypes.string
|
|
102
116
|
};
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
|
+
var _shadowUtils = require("../../utils/shadowUtils");
|
|
7
8
|
const retrieveStyle = _ref => {
|
|
9
|
+
var _theme$Palette$shadow;
|
|
8
10
|
let {
|
|
9
11
|
theme
|
|
10
12
|
} = _ref;
|
|
@@ -17,17 +19,6 @@ const retrieveStyle = _ref => {
|
|
|
17
19
|
display: 'flex',
|
|
18
20
|
gridGap: '8px'
|
|
19
21
|
},
|
|
20
|
-
grayPressedCheckIcon: {
|
|
21
|
-
color: "".concat(theme.Palette.light['01'], " !important")
|
|
22
|
-
},
|
|
23
|
-
apareanceGrayPressedIcon: {
|
|
24
|
-
'& path': {
|
|
25
|
-
fill: "".concat(theme.Palette.light['01'], "!important")
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
checkIcon: {
|
|
29
|
-
color: theme.Palette.actions.accent['05']
|
|
30
|
-
},
|
|
31
22
|
column: {
|
|
32
23
|
alignSelf: 'center',
|
|
33
24
|
display: 'flex',
|
|
@@ -41,29 +32,6 @@ const retrieveStyle = _ref => {
|
|
|
41
32
|
display: 'flex',
|
|
42
33
|
gridGap: '8px'
|
|
43
34
|
},
|
|
44
|
-
disabledIcon: {
|
|
45
|
-
'& path': {
|
|
46
|
-
fill: "".concat(theme.Palette.gray['04'], " !important")
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
disabledTooltip: {
|
|
50
|
-
'& path': {
|
|
51
|
-
color: "".concat(theme.Palette.gray['04'], " !important")
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
icon: {
|
|
55
|
-
flexShrink: 0,
|
|
56
|
-
height: '36px',
|
|
57
|
-
width: '36px',
|
|
58
|
-
'& path': {
|
|
59
|
-
fill: theme.Palette.dark['05']
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
infoIcon: {
|
|
63
|
-
'& path': {
|
|
64
|
-
color: theme.Palette.dark['05']
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
35
|
item: {
|
|
68
36
|
alignItems: 'center',
|
|
69
37
|
borderRadius: '4px',
|
|
@@ -79,16 +47,6 @@ const retrieveStyle = _ref => {
|
|
|
79
47
|
mediumSize: {
|
|
80
48
|
padding: '24px'
|
|
81
49
|
},
|
|
82
|
-
selectedIcon: {
|
|
83
|
-
'& path': {
|
|
84
|
-
fill: theme.Palette.actions.accent['05']
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
selectedInfoIcon: {
|
|
88
|
-
'& path': {
|
|
89
|
-
color: theme.Palette.actions.accent['05']
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
50
|
smallSize: {
|
|
93
51
|
padding: '16px'
|
|
94
52
|
},
|
|
@@ -98,6 +56,9 @@ const retrieveStyle = _ref => {
|
|
|
98
56
|
justifyContent: 'space-between',
|
|
99
57
|
width: '100%'
|
|
100
58
|
},
|
|
59
|
+
textContainerWithCheckedIcon: {
|
|
60
|
+
minHeight: 24
|
|
61
|
+
},
|
|
101
62
|
titleAndTooltip: {
|
|
102
63
|
alignItems: 'center',
|
|
103
64
|
display: 'flex',
|
|
@@ -106,66 +67,142 @@ const retrieveStyle = _ref => {
|
|
|
106
67
|
tooltip: {
|
|
107
68
|
display: 'flex'
|
|
108
69
|
},
|
|
109
|
-
|
|
110
|
-
|
|
70
|
+
checkIcon: {
|
|
71
|
+
flexShrink: 0
|
|
72
|
+
},
|
|
73
|
+
icon: {
|
|
74
|
+
flexShrink: 0,
|
|
75
|
+
height: '36px',
|
|
76
|
+
width: '36px'
|
|
77
|
+
},
|
|
78
|
+
infoIcon: {
|
|
79
|
+
flexShrink: 0
|
|
80
|
+
},
|
|
81
|
+
titleText: {},
|
|
82
|
+
description: {},
|
|
83
|
+
aditionalInfoTitle: {},
|
|
84
|
+
aditionalInfoDescription: {},
|
|
85
|
+
// White apareance
|
|
111
86
|
whiteApareance: {
|
|
112
87
|
backgroundColor: theme.Palette.light['01'],
|
|
113
|
-
boxShadow:
|
|
88
|
+
boxShadow: (0, _shadowUtils.getShadow)({
|
|
89
|
+
color: (_theme$Palette$shadow = theme.Palette.shadows) === null || _theme$Palette$shadow === void 0 ? void 0 : _theme$Palette$shadow.grayscale,
|
|
90
|
+
level: 1
|
|
91
|
+
}),
|
|
92
|
+
outline: "2px solid transparent",
|
|
93
|
+
'& $titleText, & $aditionalInfoTitle': {
|
|
94
|
+
color: theme.Palette.dark['05']
|
|
95
|
+
},
|
|
96
|
+
'& $icon path, & $infoIcon path': {
|
|
97
|
+
fill: theme.Palette.dark['05']
|
|
98
|
+
},
|
|
99
|
+
'& $description, & $aditionalInfoDescription': {
|
|
100
|
+
color: theme.Palette.gray['04']
|
|
101
|
+
},
|
|
114
102
|
'&:hover': {
|
|
115
103
|
backgroundColor: theme.Palette.light['03'],
|
|
116
104
|
boxShadow: 'none'
|
|
117
105
|
},
|
|
118
106
|
'&:active': {
|
|
119
107
|
backgroundColor: theme.Palette.light['04'],
|
|
120
|
-
boxShadow: 'none'
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
backgroundColor: "".concat(theme.Palette.light['03'], " !important"),
|
|
125
|
-
boxShadow: 'none',
|
|
126
|
-
'&:hover': {
|
|
127
|
-
cursor: 'default'
|
|
108
|
+
boxShadow: 'none',
|
|
109
|
+
'& $aditionalInfoDescription': {
|
|
110
|
+
color: theme.Palette.gray['03']
|
|
111
|
+
}
|
|
128
112
|
}
|
|
129
113
|
},
|
|
130
114
|
whiteSelectedContainer: {
|
|
131
|
-
border: "2px solid ".concat(theme.Palette.actions.accent['05']),
|
|
132
115
|
boxShadow: 'none',
|
|
116
|
+
outline: "2px solid ".concat(theme.Palette.actions.accent['05']),
|
|
117
|
+
'& $titleText, & $description, & $aditionalInfoTitle, & $aditionalInfoDescription': {
|
|
118
|
+
color: theme.Palette.actions.accent['05']
|
|
119
|
+
},
|
|
120
|
+
'& $icon path, & $infoIcon path, & $checkIcon path': {
|
|
121
|
+
fill: theme.Palette.actions.accent['05']
|
|
122
|
+
},
|
|
133
123
|
'&:hover': {
|
|
134
124
|
backgroundColor: theme.Palette.actions.accent['01'],
|
|
135
|
-
|
|
125
|
+
outline: "2px solid ".concat(theme.Palette.actions.accent['05'])
|
|
136
126
|
},
|
|
137
127
|
'&:active': {
|
|
138
128
|
backgroundColor: theme.Palette.actions.accent['02'],
|
|
139
|
-
|
|
129
|
+
outline: "2px solid ".concat(theme.Palette.actions.accent['05'])
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
whiteDisabledContainer: {
|
|
133
|
+
backgroundColor: theme.Palette.light['03'],
|
|
134
|
+
boxShadow: 'none',
|
|
135
|
+
outline: "2px solid transparent",
|
|
136
|
+
'& $titleText, & $description, & $aditionalInfoTitle, & $aditionalInfoDescription': {
|
|
137
|
+
color: theme.Palette.gray['04']
|
|
138
|
+
},
|
|
139
|
+
'& $icon path, & $infoIcon path, & $checkIcon path': {
|
|
140
|
+
fill: theme.Palette.gray['04']
|
|
141
|
+
},
|
|
142
|
+
'&:hover': {
|
|
143
|
+
backgroundColor: theme.Palette.light['03'],
|
|
144
|
+
outline: "2px solid transparent",
|
|
145
|
+
pointerEvents: 'none'
|
|
140
146
|
}
|
|
141
147
|
},
|
|
142
148
|
// Gray apareance
|
|
143
|
-
|
|
144
149
|
grayApareance: {
|
|
145
150
|
backgroundColor: theme.Palette.light['03'],
|
|
146
|
-
|
|
151
|
+
outline: "1px solid ".concat(theme.Palette.light['05']),
|
|
152
|
+
'& $titleText, & $aditionalInfoTitle': {
|
|
153
|
+
color: theme.Palette.dark['05']
|
|
154
|
+
},
|
|
155
|
+
'& $icon path, & $infoIcon path': {
|
|
156
|
+
fill: theme.Palette.dark['05']
|
|
157
|
+
},
|
|
158
|
+
'& $description, & $aditionalInfoDescription': {
|
|
159
|
+
color: theme.Palette.gray['04']
|
|
160
|
+
},
|
|
147
161
|
'&:hover': {
|
|
148
162
|
backgroundColor: theme.Palette.light['04']
|
|
149
163
|
},
|
|
150
164
|
'&:active': {
|
|
151
|
-
backgroundColor: theme.Palette.light['05']
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
border: "2px solid ".concat(theme.Palette.light['05']),
|
|
156
|
-
'&:hover': {
|
|
157
|
-
backgroundColor: "".concat(theme.Palette.light['03'], " !important"),
|
|
158
|
-
cursor: 'default'
|
|
165
|
+
backgroundColor: theme.Palette.light['05'],
|
|
166
|
+
'& $aditionalInfoDescription': {
|
|
167
|
+
color: theme.Palette.gray['03']
|
|
168
|
+
}
|
|
159
169
|
}
|
|
160
170
|
},
|
|
161
171
|
graySelectedContainer: {
|
|
162
172
|
backgroundColor: theme.Palette.actions.accent['01'],
|
|
163
|
-
|
|
173
|
+
outline: "2px solid ".concat(theme.Palette.actions.accent['03']),
|
|
174
|
+
'& $titleText, & $description, & $aditionalInfoTitle, & $aditionalInfoDescription': {
|
|
175
|
+
color: theme.Palette.actions.accent['05']
|
|
176
|
+
},
|
|
177
|
+
'& $icon path, & $infoIcon path, & $checkIcon path': {
|
|
178
|
+
fill: theme.Palette.actions.accent['05']
|
|
179
|
+
},
|
|
164
180
|
'&:hover': {
|
|
165
181
|
backgroundColor: theme.Palette.actions.accent['02']
|
|
166
182
|
},
|
|
167
183
|
'&:active': {
|
|
168
|
-
backgroundColor: theme.Palette.actions.accent['03']
|
|
184
|
+
backgroundColor: theme.Palette.actions.accent['03'],
|
|
185
|
+
'& $titleText, & $description, & $aditionalInfoTitle, & $aditionalInfoDescription': {
|
|
186
|
+
color: theme.Palette.light['01']
|
|
187
|
+
},
|
|
188
|
+
'& $icon path, & $infoIcon path, & $checkIcon path': {
|
|
189
|
+
fill: theme.Palette.light['01']
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
grayDisabledContainer: {
|
|
194
|
+
backgroundColor: theme.Palette.light['03'],
|
|
195
|
+
outline: "2px solid ".concat(theme.Palette.light['05']),
|
|
196
|
+
'& $titleText, & $description, & $aditionalInfoTitle, & $aditionalInfoDescription': {
|
|
197
|
+
color: theme.Palette.gray['04']
|
|
198
|
+
},
|
|
199
|
+
'& $icon path, & $infoIcon path, & $checkIcon path': {
|
|
200
|
+
fill: theme.Palette.gray['04']
|
|
201
|
+
},
|
|
202
|
+
'&:hover': {
|
|
203
|
+
backgroundColor: theme.Palette.light['03'],
|
|
204
|
+
cursor: 'default',
|
|
205
|
+
pointerEvents: 'none'
|
|
169
206
|
}
|
|
170
207
|
}
|
|
171
208
|
};
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,12 @@ Object.defineProperty(exports, "UTAttachment", {
|
|
|
27
27
|
return _UTAttachment.default;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
+
Object.defineProperty(exports, "UTAttachmentList", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _UTAttachmentList.default;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
30
36
|
Object.defineProperty(exports, "UTAutocomplete", {
|
|
31
37
|
enumerable: true,
|
|
32
38
|
get: function () {
|
|
@@ -368,6 +374,7 @@ var _componentUtils = _interopRequireDefault(require("./utils/componentUtils"));
|
|
|
368
374
|
var _EnergyThemeProvider = _interopRequireDefault(require("./components/EnergyThemeProvider"));
|
|
369
375
|
var _UTAlert = _interopRequireDefault(require("./components/UTAlert"));
|
|
370
376
|
var _UTAttachment = _interopRequireDefault(require("./components/UTAttachment"));
|
|
377
|
+
var _UTAttachmentList = _interopRequireDefault(require("./components/UTAttachmentList"));
|
|
371
378
|
var _UTAutocomplete = _interopRequireDefault(require("./components/UTAutocomplete"));
|
|
372
379
|
var _UTAvatar = _interopRequireDefault(require("./components/UTAvatar"));
|
|
373
380
|
var _UTBarChart = _interopRequireDefault(require("./components/UTBarChart"));
|