@widergy/energy-ui 2.11.0 → 3.0.1
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 +20 -0
- package/dist/components/UTAttachment/index.js +20 -20
- package/dist/components/UTBreadcrumbs/styles.module.scss +1 -0
- package/dist/components/UTCard/index.js +10 -10
- package/dist/components/UTCarousel/components/Slider/index.js +45 -41
- package/dist/components/UTCheckbox/index.js +1 -1
- package/dist/components/UTCuit/index.js +9 -9
- package/dist/components/UTDatePicker/index.js +1 -2
- package/dist/components/UTDotMenu/index.js +5 -5
- package/dist/components/UTEmojiPicker/constants.js +9 -13
- package/dist/components/UTEmojiPicker/index.js +2 -1
- package/dist/components/UTEmojiPicker/styles.module.scss +1 -1
- package/dist/components/UTFileInput/layout.js +9 -5
- package/dist/components/UTMenu/styles.module.scss +5 -5
- package/dist/components/UTModal/constants.js +4 -8
- package/dist/components/UTModal/styles.module.scss +1 -1
- package/dist/components/UTPagination/components/Pagination/index.js +4 -8
- package/dist/components/UTPhoneInput/index.js +13 -13
- package/dist/components/UTRating/components/Faces/constants.js +5 -10
- package/dist/components/UTStatus/theme.js +5 -10
- package/dist/components/UTTable/components/TableFooter/components/Pagination/index.js +2 -6
- package/dist/components/UTTable/components/TableHeader/index.js +0 -1
- package/dist/components/UTTable/components/TableRow/index.js +2 -2
- package/dist/components/UTTextInput/index.js +5 -5
- package/dist/components/UTTopbar/components/UserMenu/index.js +4 -4
- package/dist/components/UTTopbar/components/UserMenu/styles.module.scss +1 -1
- package/dist/components/UTTouchableWithoutFeedback/index.js +2 -2
- package/dist/components/UTWorkflowContainer/components/ActionButton/index.js +2 -2
- package/dist/components/WithLoading/index.js +1 -1
- package/dist/components/WithTouch/index.js +1 -1
- package/package.json +29 -70
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [3.0.1](https://github.com/widergy/energy-ui/compare/v3.0.0...v3.0.1) (2023-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* minor fix in carousel ([#395](https://github.com/widergy/energy-ui/issues/395)) ([c403296](https://github.com/widergy/energy-ui/commit/c403296f421e7ced5a55148d805556374ff76eef))
|
|
7
|
+
|
|
8
|
+
# [3.0.0](https://github.com/widergy/energy-ui/compare/v2.11.0...v3.0.0) (2023-11-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update dependencies energy UI ([#372](https://github.com/widergy/energy-ui/issues/372)) ([99af512](https://github.com/widergy/energy-ui/commit/99af5124a9ec2a3960742b9fe4f7ff07e54060e2))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
* dependencies
|
|
19
|
+
* dependencies
|
|
20
|
+
|
|
1
21
|
# [2.11.0](https://github.com/widergy/energy-ui/compare/v2.10.1...v2.11.0) (2023-11-08)
|
|
2
22
|
|
|
3
23
|
|
|
@@ -22,15 +22,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
22
22
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
23
23
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24
24
|
class AttachmentContainer extends _react.Component {
|
|
25
|
-
constructor() {
|
|
26
|
-
super(
|
|
27
|
-
_defineProperty(this, "state", {
|
|
28
|
-
loading: false,
|
|
29
|
-
name: '',
|
|
30
|
-
preview: {},
|
|
31
|
-
error: false,
|
|
32
|
-
errorText: _constants.FORMAT_ERROR_TEXT
|
|
33
|
-
});
|
|
25
|
+
constructor(props) {
|
|
26
|
+
super(props);
|
|
34
27
|
_defineProperty(this, "loadElement", () => {
|
|
35
28
|
const {
|
|
36
29
|
input,
|
|
@@ -55,17 +48,6 @@ class AttachmentContainer extends _react.Component {
|
|
|
55
48
|
} = this.props;
|
|
56
49
|
if (this.hasDefaultValueToLoad()) this.loadElement();else if (this.hasDefaultFileObjectToLoad()) this.setFile(input.value.file);
|
|
57
50
|
});
|
|
58
|
-
_defineProperty(this, "componentDidMount", () => {
|
|
59
|
-
this.loadDefaultValues();
|
|
60
|
-
});
|
|
61
|
-
_defineProperty(this, "componentDidUpdate", prevProps => {
|
|
62
|
-
var _prevProps$fieldTypes;
|
|
63
|
-
const {
|
|
64
|
-
fieldTypes,
|
|
65
|
-
input
|
|
66
|
-
} = this.props;
|
|
67
|
-
if (((_prevProps$fieldTypes = prevProps.fieldTypes) === null || _prevProps$fieldTypes === void 0 ? void 0 : _prevProps$fieldTypes[0]) !== (fieldTypes === null || fieldTypes === void 0 ? void 0 : fieldTypes[0])) this.removeValue();else if ((0, _utils.isNewFile)(prevProps.input.value, input.value)) this.loadDefaultValues();
|
|
68
|
-
});
|
|
69
51
|
_defineProperty(this, "getDefaultAttachment", (url, fileType) => url && typeof url === 'string' && /*#__PURE__*/_react.default.createElement("a", {
|
|
70
52
|
href: url,
|
|
71
53
|
target: "_blank",
|
|
@@ -154,6 +136,24 @@ class AttachmentContainer extends _react.Component {
|
|
|
154
136
|
});
|
|
155
137
|
if (this.props.onChange) this.props.onChange('');
|
|
156
138
|
});
|
|
139
|
+
this.state = {
|
|
140
|
+
loading: false,
|
|
141
|
+
name: '',
|
|
142
|
+
preview: {},
|
|
143
|
+
error: false,
|
|
144
|
+
errorText: _constants.FORMAT_ERROR_TEXT
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
componentDidMount() {
|
|
148
|
+
this.loadDefaultValues();
|
|
149
|
+
}
|
|
150
|
+
componentDidUpdate(prevProps) {
|
|
151
|
+
var _prevProps$fieldTypes;
|
|
152
|
+
const {
|
|
153
|
+
fieldTypes,
|
|
154
|
+
input
|
|
155
|
+
} = this.props;
|
|
156
|
+
if (((_prevProps$fieldTypes = prevProps.fieldTypes) === null || _prevProps$fieldTypes === void 0 ? void 0 : _prevProps$fieldTypes[0]) !== (fieldTypes === null || fieldTypes === void 0 ? void 0 : fieldTypes[0])) this.removeValue();else if ((0, _utils.isNewFile)(prevProps.input.value, input.value)) this.loadDefaultValues();
|
|
157
157
|
}
|
|
158
158
|
render() {
|
|
159
159
|
const {
|
|
@@ -24,13 +24,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
24
24
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
25
25
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
26
26
|
class UTCard extends _react.PureComponent {
|
|
27
|
-
constructor() {
|
|
28
|
-
super(
|
|
29
|
-
_defineProperty(this, "state", {
|
|
30
|
-
expandIsSelected: false,
|
|
31
|
-
childrenRef: null,
|
|
32
|
-
childrenHeight: null
|
|
33
|
-
});
|
|
27
|
+
constructor(props) {
|
|
28
|
+
super(props);
|
|
34
29
|
_defineProperty(this, "handleOnPress", event => {
|
|
35
30
|
event.stopPropagation();
|
|
36
31
|
if (this.props.onClick) this.props.onClick();
|
|
@@ -38,9 +33,6 @@ class UTCard extends _react.PureComponent {
|
|
|
38
33
|
expandIsSelected: !prevState.expandIsSelected
|
|
39
34
|
}));
|
|
40
35
|
});
|
|
41
|
-
_defineProperty(this, "componentDidUpdate", () => {
|
|
42
|
-
if (this.state.childrenRef) this.setChildrenHeight();
|
|
43
|
-
});
|
|
44
36
|
_defineProperty(this, "setChildrenHeight", () => {
|
|
45
37
|
const childrens = [...this.state.childrenRef.children];
|
|
46
38
|
const childrenHeight = childrens.reduce((prev, curr) => prev + curr.offsetHeight, 0);
|
|
@@ -48,6 +40,14 @@ class UTCard extends _react.PureComponent {
|
|
|
48
40
|
childrenHeight
|
|
49
41
|
});
|
|
50
42
|
});
|
|
43
|
+
this.state = {
|
|
44
|
+
expandIsSelected: false,
|
|
45
|
+
childrenRef: null,
|
|
46
|
+
childrenHeight: null
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
componentDidUpdate() {
|
|
50
|
+
if (this.state.childrenRef) this.setChildrenHeight();
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
const {
|
|
@@ -21,45 +21,6 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
|
|
|
21
21
|
class SliderContainer extends _react.PureComponent {
|
|
22
22
|
constructor(props) {
|
|
23
23
|
super(props);
|
|
24
|
-
_defineProperty(this, "state", {
|
|
25
|
-
index: 1,
|
|
26
|
-
slideArray: [],
|
|
27
|
-
shouldAnimate: true,
|
|
28
|
-
timeMove: 0,
|
|
29
|
-
initialPosition: 0,
|
|
30
|
-
finishPosition: 0,
|
|
31
|
-
timeAnimation: _constants.FAST_ANIMATION
|
|
32
|
-
});
|
|
33
|
-
_defineProperty(this, "handleMouseDown", (0, _helperFunctions.throttle)(event => {
|
|
34
|
-
this.containerRef.current.addEventListener('mousemove', this.handleMouseMove);
|
|
35
|
-
window.addEventListener('mouseup', this.handleEventUp);
|
|
36
|
-
return this.setState({
|
|
37
|
-
initialPosition: event.clientX,
|
|
38
|
-
shouldAnimate: false,
|
|
39
|
-
timeMove: new Date().getTime()
|
|
40
|
-
});
|
|
41
|
-
}, this.state.timeAnimation));
|
|
42
|
-
_defineProperty(this, "handleTouchDown", (0, _helperFunctions.throttle)(event => {
|
|
43
|
-
this.containerRef.current.addEventListener('touchmove', this.handleTouchMove);
|
|
44
|
-
window.addEventListener('touchend', this.handleEventUp);
|
|
45
|
-
return this.setState({
|
|
46
|
-
initialPosition: event.changedTouches[event.changedTouches.length - 1].clientX,
|
|
47
|
-
shouldAnimate: false,
|
|
48
|
-
timeMove: new Date().getTime()
|
|
49
|
-
});
|
|
50
|
-
}, this.state.timeAnimation));
|
|
51
|
-
_defineProperty(this, "componentWillUnmount", () => {
|
|
52
|
-
var _this$containerRef;
|
|
53
|
-
if ((_this$containerRef = this.containerRef) !== null && _this$containerRef !== void 0 && _this$containerRef.current) {
|
|
54
|
-
this.containerRef.current.removeEventListener('touchstart', this.handleTouchDown);
|
|
55
|
-
this.containerRef.current.removeEventListener('mousedown', this.handleMouseDown);
|
|
56
|
-
this.containerRef.current.removeEventListener('mousemove', this.handleMouseMove);
|
|
57
|
-
this.containerRef.current.removeEventListener('touchmove', this.handleTouchMove);
|
|
58
|
-
}
|
|
59
|
-
window.removeEventListener('mouseup', this.handleEventUp);
|
|
60
|
-
window.removeEventListener('resize', this.updateContainerWidth);
|
|
61
|
-
window.removeEventListener('touchend', this.handleEventUp);
|
|
62
|
-
});
|
|
63
24
|
_defineProperty(this, "updateImgArray", () => {
|
|
64
25
|
const firstSlide = this.props.slides[0];
|
|
65
26
|
const lastSlide = this.props.slides[this.props.slides.length - 1];
|
|
@@ -171,6 +132,15 @@ class SliderContainer extends _react.PureComponent {
|
|
|
171
132
|
});
|
|
172
133
|
this.containerRef = /*#__PURE__*/_react.default.createRef();
|
|
173
134
|
this.imagesLength = props.slides.length;
|
|
135
|
+
this.state = {
|
|
136
|
+
index: 1,
|
|
137
|
+
slideArray: [],
|
|
138
|
+
shouldAnimate: true,
|
|
139
|
+
timeMove: 0,
|
|
140
|
+
initialPosition: 0,
|
|
141
|
+
finishPosition: 0,
|
|
142
|
+
timeAnimation: _constants.FAST_ANIMATION
|
|
143
|
+
};
|
|
174
144
|
}
|
|
175
145
|
componentDidMount() {
|
|
176
146
|
const firstSlide = this.props.slides[0];
|
|
@@ -185,8 +155,8 @@ class SliderContainer extends _react.PureComponent {
|
|
|
185
155
|
this.setState({
|
|
186
156
|
slideArray: arr
|
|
187
157
|
});
|
|
188
|
-
this.containerRef.current.addEventListener('touchstart', this.handleTouchDown);
|
|
189
|
-
this.containerRef.current.addEventListener('mousedown', this.handleMouseDown);
|
|
158
|
+
this.containerRef.current.addEventListener('touchstart', this.handleTouchDown.bind(this));
|
|
159
|
+
this.containerRef.current.addEventListener('mousedown', this.handleMouseDown.bind(this));
|
|
190
160
|
this.updateContainerWidth();
|
|
191
161
|
window.addEventListener('resize', this.updateContainerWidth);
|
|
192
162
|
if (this.props.autoPlay) setInterval(() => this.handleNextSlide(), this.props.autoPlayDelay);
|
|
@@ -196,6 +166,40 @@ class SliderContainer extends _react.PureComponent {
|
|
|
196
166
|
this.updateImgArray();
|
|
197
167
|
}
|
|
198
168
|
}
|
|
169
|
+
componentWillUnmount() {
|
|
170
|
+
var _this$containerRef;
|
|
171
|
+
if ((_this$containerRef = this.containerRef) !== null && _this$containerRef !== void 0 && _this$containerRef.current) {
|
|
172
|
+
this.containerRef.current.removeEventListener('touchstart', this.handleTouchDown);
|
|
173
|
+
this.containerRef.current.removeEventListener('mousedown', this.handleMouseDown);
|
|
174
|
+
this.containerRef.current.removeEventListener('mousemove', this.handleMouseMove);
|
|
175
|
+
this.containerRef.current.removeEventListener('touchmove', this.handleTouchMove);
|
|
176
|
+
}
|
|
177
|
+
window.removeEventListener('mouseup', this.handleEventUp);
|
|
178
|
+
window.removeEventListener('resize', this.updateContainerWidth);
|
|
179
|
+
window.removeEventListener('touchend', this.handleEventUp);
|
|
180
|
+
}
|
|
181
|
+
handleMouseDown() {
|
|
182
|
+
return (0, _helperFunctions.throttle)(event => {
|
|
183
|
+
this.containerRef.current.addEventListener('mousemove', this.handleMouseMove);
|
|
184
|
+
window.addEventListener('mouseup', this.handleEventUp);
|
|
185
|
+
return this.setState({
|
|
186
|
+
initialPosition: event.clientX,
|
|
187
|
+
shouldAnimate: false,
|
|
188
|
+
timeMove: new Date().getTime()
|
|
189
|
+
});
|
|
190
|
+
}, this.state.timeAnimation);
|
|
191
|
+
}
|
|
192
|
+
handleTouchDown() {
|
|
193
|
+
(0, _helperFunctions.throttle)(event => {
|
|
194
|
+
this.containerRef.current.addEventListener('touchmove', this.handleTouchMove);
|
|
195
|
+
window.addEventListener('touchend', this.handleEventUp);
|
|
196
|
+
return this.setState({
|
|
197
|
+
initialPosition: event.changedTouches[event.changedTouches.length - 1].clientX,
|
|
198
|
+
shouldAnimate: false,
|
|
199
|
+
timeMove: new Date().getTime()
|
|
200
|
+
});
|
|
201
|
+
}, this.state.timeAnimation);
|
|
202
|
+
}
|
|
199
203
|
render() {
|
|
200
204
|
const {
|
|
201
205
|
shouldAnimate,
|
|
@@ -24,7 +24,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
24
24
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }
|
|
25
25
|
var Checked = function Checked(props) {
|
|
26
26
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
27
|
-
d: "M10
|
|
27
|
+
d: "M10 14Zm0 3-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9Z"
|
|
28
28
|
}));
|
|
29
29
|
};
|
|
30
30
|
Checked.defaultProps = {
|
|
@@ -19,15 +19,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
19
19
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
20
20
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
21
|
class UTCuit extends _react.PureComponent {
|
|
22
|
-
constructor() {
|
|
23
|
-
super(
|
|
24
|
-
_defineProperty(this, "state", {
|
|
25
|
-
prefix: '',
|
|
26
|
-
verificationCode: '',
|
|
27
|
-
document: '',
|
|
28
|
-
verificationCodeRef: null,
|
|
29
|
-
documentRef: null
|
|
30
|
-
});
|
|
22
|
+
constructor(props) {
|
|
23
|
+
super(props);
|
|
31
24
|
_defineProperty(this, "handleChangeCuit", () => {
|
|
32
25
|
const {
|
|
33
26
|
prefix,
|
|
@@ -83,6 +76,13 @@ class UTCuit extends _react.PureComponent {
|
|
|
83
76
|
this.state.documentRef.focus();
|
|
84
77
|
}
|
|
85
78
|
});
|
|
79
|
+
this.state = {
|
|
80
|
+
prefix: '',
|
|
81
|
+
verificationCode: '',
|
|
82
|
+
document: '',
|
|
83
|
+
verificationCodeRef: null,
|
|
84
|
+
documentRef: null
|
|
85
|
+
};
|
|
86
86
|
}
|
|
87
87
|
componentDidUpdate() {
|
|
88
88
|
if (this.state.prefix.length === 0 && this.state.document.length === 0 && this.state.verificationCode.length === 0 && this.props.input && this.props.input.value && this.props.field.configuration.disable_document) this.handleSetDocument(this.props.input.value);
|
|
@@ -30,7 +30,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
|
|
|
30
30
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
31
31
|
var CalendarIcon = function CalendarIcon(props) {
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("path", {
|
|
33
|
-
d: "M8 15c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-
|
|
33
|
+
d: "M8 15c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1Zm8 0c.55 0 1 .45 1 1s-.45 1-1 1h-4c-.55 0-1-.45-1-1s.45-1 1-1Zm2 5H6c-.551 0-1-.449-1-1v-6h14v6c0 .551-.449 1-1 1M6 6h1v1c0 .55.45 1 1 1s1-.45 1-1V6h6v1c0 .55.45 1 1 1s1-.45 1-1V6h1c.551 0 1 .449 1 1v4H5V7c0-.551.449-1 1-1m12-2h-1V3c0-.55-.45-1-1-1s-1 .45-1 1v1H9V3c0-.55-.45-1-1-1s-1 .45-1 1v1H6C4.346 4 3 5.346 3 7v12c0 1.654 1.346 3 3 3h12c1.654 0 3-1.346 3-3V7c0-1.654-1.346-3-3-3",
|
|
34
34
|
id: "a"
|
|
35
35
|
})), /*#__PURE__*/_react.default.createElement("use", {
|
|
36
36
|
fillRule: "nonzero",
|
|
@@ -42,7 +42,6 @@ var CalendarIcon = function CalendarIcon(props) {
|
|
|
42
42
|
CalendarIcon.defaultProps = {
|
|
43
43
|
width: "18",
|
|
44
44
|
height: "20",
|
|
45
|
-
viewBox: "0 0 18 20",
|
|
46
45
|
xmlns: "http://www.w3.org/2000/svg",
|
|
47
46
|
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
48
47
|
};
|
|
@@ -15,11 +15,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
15
15
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
16
16
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
17
17
|
class UTDotMenu extends _react.default.Component {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(
|
|
20
|
-
_defineProperty(this, "state", {
|
|
21
|
-
anchorEl: null
|
|
22
|
-
});
|
|
18
|
+
constructor(props) {
|
|
19
|
+
super(props);
|
|
23
20
|
_defineProperty(this, "handleClick", event => {
|
|
24
21
|
this.setState({
|
|
25
22
|
anchorEl: event.currentTarget
|
|
@@ -30,6 +27,9 @@ class UTDotMenu extends _react.default.Component {
|
|
|
30
27
|
anchorEl: null
|
|
31
28
|
});
|
|
32
29
|
});
|
|
30
|
+
this.state = {
|
|
31
|
+
anchorEl: null
|
|
32
|
+
};
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const {
|
|
@@ -20,7 +20,6 @@ Faces.defaultProps = {
|
|
|
20
20
|
className: "icon icon-tabler icon-tabler-mood-smile",
|
|
21
21
|
width: "24",
|
|
22
22
|
height: "24",
|
|
23
|
-
viewBox: "0 0 24 24",
|
|
24
23
|
strokeWidth: "2",
|
|
25
24
|
stroke: "#677489",
|
|
26
25
|
fill: "none",
|
|
@@ -29,7 +28,9 @@ Faces.defaultProps = {
|
|
|
29
28
|
};
|
|
30
29
|
var Nature = function Nature(props) {
|
|
31
30
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
32
|
-
d: "M5 21c.5-4.5 2.5-8 7-
|
|
31
|
+
d: "M5 21c.5-4.5 2.5-8 7-10"
|
|
32
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
33
|
+
d: "M9 18c6.218 0 10.5-3.288 11-12V4h-4.014c-9 0-11.986 4-12 9 0 1 0 3 2 5h3z"
|
|
33
34
|
}));
|
|
34
35
|
};
|
|
35
36
|
Nature.defaultProps = {
|
|
@@ -37,7 +38,6 @@ Nature.defaultProps = {
|
|
|
37
38
|
className: "icon icon-tabler icon-tabler-leaf",
|
|
38
39
|
width: "24",
|
|
39
40
|
height: "24",
|
|
40
|
-
viewBox: "0 0 24 24",
|
|
41
41
|
strokeWidth: "2",
|
|
42
42
|
stroke: "#677489",
|
|
43
43
|
fill: "none",
|
|
@@ -46,7 +46,7 @@ Nature.defaultProps = {
|
|
|
46
46
|
};
|
|
47
47
|
var Language = function Language(props) {
|
|
48
48
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
49
|
-
d: "M19.5 13.
|
|
49
|
+
d: "M19.5 13.572 12 21l-7.5-7.428m0 0A5 5 0 1 1 12 7.006a5 5 0 1 1 7.5 6.572"
|
|
50
50
|
}));
|
|
51
51
|
};
|
|
52
52
|
Language.defaultProps = {
|
|
@@ -54,7 +54,6 @@ Language.defaultProps = {
|
|
|
54
54
|
className: "icon icon-tabler icon-tabler-heart",
|
|
55
55
|
width: "24",
|
|
56
56
|
height: "24",
|
|
57
|
-
viewBox: "0 0 24 24",
|
|
58
57
|
strokeWidth: "2",
|
|
59
58
|
stroke: "#677489",
|
|
60
59
|
fill: "none",
|
|
@@ -63,9 +62,11 @@ Language.defaultProps = {
|
|
|
63
62
|
};
|
|
64
63
|
var Sports = function Sports(props) {
|
|
65
64
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
66
|
-
d: "
|
|
65
|
+
d: "m15 9-6 6M10 12l2 2M12 10l2 2M8 21a5 5 0 0 0-5-5"
|
|
66
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
67
|
+
d: "M16 3C8.82 3 3 8.82 3 16a5 5 0 0 0 5 5c7.18 0 13-5.82 13-13a5 5 0 0 0-5-5"
|
|
67
68
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
68
|
-
d: "M16
|
|
69
|
+
d: "M16 3a5 5 0 0 0 5 5"
|
|
69
70
|
}));
|
|
70
71
|
};
|
|
71
72
|
Sports.defaultProps = {
|
|
@@ -73,7 +74,6 @@ Sports.defaultProps = {
|
|
|
73
74
|
className: "icon icon-tabler icon-tabler-ball-american-football",
|
|
74
75
|
width: "24",
|
|
75
76
|
height: "24",
|
|
76
|
-
viewBox: "0 0 24 24",
|
|
77
77
|
strokeWidth: "2",
|
|
78
78
|
stroke: "#677489",
|
|
79
79
|
fill: "none",
|
|
@@ -92,7 +92,6 @@ Food.defaultProps = {
|
|
|
92
92
|
className: "icon icon-tabler icon-tabler-pizza",
|
|
93
93
|
width: "24",
|
|
94
94
|
height: "24",
|
|
95
|
-
viewBox: "0 0 24 24",
|
|
96
95
|
strokeWidth: "2",
|
|
97
96
|
stroke: "#677489",
|
|
98
97
|
fill: "none",
|
|
@@ -109,7 +108,6 @@ Travel.defaultProps = {
|
|
|
109
108
|
className: "icon icon-tabler icon-tabler-plane",
|
|
110
109
|
width: "24",
|
|
111
110
|
height: "24",
|
|
112
|
-
viewBox: "0 0 24 24",
|
|
113
111
|
strokeWidth: "2",
|
|
114
112
|
stroke: "#677489",
|
|
115
113
|
fill: "none",
|
|
@@ -118,7 +116,7 @@ Travel.defaultProps = {
|
|
|
118
116
|
};
|
|
119
117
|
var Creative = function Creative(props) {
|
|
120
118
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
121
|
-
d: "M3 12h1m8-9v1m8 8h1M5.6 5.6l.7.7m12.1-.
|
|
119
|
+
d: "M3 12h1m8-9v1m8 8h1M5.6 5.6l.7.7m12.1-.7-.7.7M9 16a5 5 0 1 1 6 0 3.5 3.5 0 0 0-1 3 2 2 0 0 1-4 0 3.5 3.5 0 0 0-1-3M9.7 17h4.6"
|
|
122
120
|
}));
|
|
123
121
|
};
|
|
124
122
|
Creative.defaultProps = {
|
|
@@ -126,7 +124,6 @@ Creative.defaultProps = {
|
|
|
126
124
|
className: "icon icon-tabler icon-tabler-bulb",
|
|
127
125
|
width: "24",
|
|
128
126
|
height: "24",
|
|
129
|
-
viewBox: "0 0 24 24",
|
|
130
127
|
strokeWidth: "2",
|
|
131
128
|
stroke: "#677489",
|
|
132
129
|
fill: "none",
|
|
@@ -143,7 +140,6 @@ Flags.defaultProps = {
|
|
|
143
140
|
className: "icon icon-tabler icon-tabler-flag",
|
|
144
141
|
width: "24",
|
|
145
142
|
height: "24",
|
|
146
|
-
viewBox: "0 0 24 24",
|
|
147
143
|
strokeWidth: "2",
|
|
148
144
|
stroke: "#677489",
|
|
149
145
|
fill: "none",
|
|
@@ -61,7 +61,8 @@ const UTEmojiPicker = _ref => {
|
|
|
61
61
|
className: "".concat(_stylesModule.default.groupItem, " ").concat(classes.groupItem),
|
|
62
62
|
key: key,
|
|
63
63
|
onClick: () => setActiveGroup(isActive ? null : key),
|
|
64
|
-
role: "button"
|
|
64
|
+
role: "button",
|
|
65
|
+
"aria-label": "group"
|
|
65
66
|
}, /*#__PURE__*/_react.default.createElement(Icon, {
|
|
66
67
|
className: isActive ? "".concat(_stylesModule.default.activeIcon, " ").concat(classes.activeIcon) : ''
|
|
67
68
|
}));
|
|
@@ -69,7 +69,7 @@ $icon-size: 40px;
|
|
|
69
69
|
|
|
70
70
|
@font-face {
|
|
71
71
|
font-family: NotoColorEmojiLimited;
|
|
72
|
-
src: url(https://raw.githack.com/googlefonts/noto-emoji/main/fonts/NotoColorEmoji.ttf);
|
|
72
|
+
src: url('https://raw.githack.com/googlefonts/noto-emoji/main/fonts/NotoColorEmoji.ttf');
|
|
73
73
|
unicode-range: U+1F1E6-1F1FF;
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -25,15 +25,16 @@ var uploadIcon = function uploadIcon(props) {
|
|
|
25
25
|
uploadIcon.defaultProps = {
|
|
26
26
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27
27
|
viewBox: "0 0 414.165 414.165",
|
|
28
|
+
style: {
|
|
29
|
+
enableBackground: "new 0 0 414.165 414.165"
|
|
30
|
+
},
|
|
31
|
+
xmlSpace: "preserve",
|
|
28
32
|
width: "512",
|
|
29
33
|
height: "512"
|
|
30
34
|
};
|
|
31
35
|
class UTFileInput extends _react.PureComponent {
|
|
32
|
-
constructor() {
|
|
33
|
-
super(
|
|
34
|
-
_defineProperty(this, "state", {
|
|
35
|
-
hasDrag: false
|
|
36
|
-
});
|
|
36
|
+
constructor(props) {
|
|
37
|
+
super(props);
|
|
37
38
|
_defineProperty(this, "handleDragLeave", () => this.setState({
|
|
38
39
|
hasDrag: false
|
|
39
40
|
}));
|
|
@@ -43,6 +44,9 @@ class UTFileInput extends _react.PureComponent {
|
|
|
43
44
|
_defineProperty(this, "handleOnDrop", () => this.setState({
|
|
44
45
|
hasDrag: false
|
|
45
46
|
}));
|
|
47
|
+
this.state = {
|
|
48
|
+
hasDrag: false
|
|
49
|
+
};
|
|
46
50
|
}
|
|
47
51
|
render() {
|
|
48
52
|
const {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.arrow {
|
|
2
|
-
|
|
3
|
-
transform: translateY(-100%);
|
|
4
|
-
width: 0;
|
|
5
|
-
height: 0;
|
|
2
|
+
border-bottom: 7px solid white;
|
|
6
3
|
border-left: 7px solid transparent;
|
|
7
4
|
border-right: 7px solid transparent;
|
|
8
5
|
color: white;
|
|
9
|
-
|
|
6
|
+
height: 0;
|
|
7
|
+
position: absolute;
|
|
8
|
+
transform: translateY(-100%);
|
|
9
|
+
width: 0;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.scrollBlocker {
|
|
@@ -10,14 +10,13 @@ var InfoIcon = function InfoIcon(props) {
|
|
|
10
10
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
11
11
|
fillRule: "evenodd",
|
|
12
12
|
clipRule: "evenodd",
|
|
13
|
-
d: "M14 3.333C8.109 3.333 3.333 8.11 3.333 14S8.11 24.667 14 24.667 24.667 19.89 24.667 14 19.89 3.333 14 3.
|
|
13
|
+
d: "M14 3.333C8.109 3.333 3.333 8.11 3.333 14S8.11 24.667 14 24.667 24.667 19.89 24.667 14 19.89 3.333 14 3.333ZM.667 14C.667 6.636 6.637.667 14 .667c7.364 0 13.333 5.97 13.333 13.333 0 7.364-5.97 13.333-13.333 13.333C6.636 27.333.667 21.363.667 14Zm12-5.333c0-.737.597-1.334 1.333-1.334h.013a1.333 1.333 0 1 1 0 2.667H14a1.333 1.333 0 0 1-1.333-1.333ZM11.333 14c0-.736.597-1.333 1.334-1.333H14c.736 0 1.333.597 1.333 1.333v4a1.333 1.333 0 1 1 0 2.667H14a1.333 1.333 0 0 1-1.333-1.334v-4A1.333 1.333 0 0 1 11.333 14Z",
|
|
14
14
|
fill: "#037DB4"
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
InfoIcon.defaultProps = {
|
|
18
18
|
width: "28",
|
|
19
19
|
height: "28",
|
|
20
|
-
viewBox: "0 0 28 28",
|
|
21
20
|
fill: "none",
|
|
22
21
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23
22
|
};
|
|
@@ -25,14 +24,13 @@ var WarningIcon = function WarningIcon(props) {
|
|
|
25
24
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
26
25
|
fillRule: "evenodd",
|
|
27
26
|
clipRule: "evenodd",
|
|
28
|
-
d: "M13.955 3.179a4 4 0 0 1 5.525 1.496l9.46 16.323c.032.054.06.11.083.169a3.999 3.999 0 0 1-3.68 5.5H6.667l-.073-.002a1.358 1.358 0 0 1-.143 0 3.999 3.999 0 0 1-3.5-5.5c.024-.057.051-.113.082-.167l9.46-16.323a4 4 0 0 1 1.462-1.
|
|
27
|
+
d: "M13.955 3.179a4 4 0 0 1 5.525 1.496l9.46 16.323c.032.054.06.11.083.169a3.999 3.999 0 0 1-3.68 5.5H6.667l-.073-.002a1.358 1.358 0 0 1-.143 0 3.999 3.999 0 0 1-3.5-5.5c.024-.057.051-.113.082-.167l9.46-16.323a4 4 0 0 1 1.462-1.496ZM6.593 24.002 6.667 24h18.66a1.332 1.332 0 0 0 1.25-1.76l-9.41-16.238-.014-.023a1.333 1.333 0 0 0-2.333 0l-.013.023-9.412 16.239A1.333 1.333 0 0 0 6.59 24l.004.001ZM16 10.667c.736 0 1.333.597 1.333 1.333v2.667a1.333 1.333 0 0 1-2.666 0V12c0-.736.597-1.333 1.333-1.333Zm0 8c.736 0 1.333.597 1.333 1.333v.013a1.333 1.333 0 0 1-2.666 0V20c0-.736.597-1.333 1.333-1.333Z",
|
|
29
28
|
fill: "#A86600"
|
|
30
29
|
}));
|
|
31
30
|
};
|
|
32
31
|
WarningIcon.defaultProps = {
|
|
33
32
|
width: "32",
|
|
34
33
|
height: "32",
|
|
35
|
-
viewBox: "0 0 32 32",
|
|
36
34
|
fill: "none",
|
|
37
35
|
xmlns: "http://www.w3.org/2000/svg"
|
|
38
36
|
};
|
|
@@ -40,14 +38,13 @@ var SuccessIcon = function SuccessIcon(props) {
|
|
|
40
38
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
41
39
|
fillRule: "evenodd",
|
|
42
40
|
clipRule: "evenodd",
|
|
43
|
-
d: "M16 5.333C10.109 5.333 5.333 10.11 5.333 16S10.11 26.667 16 26.667 26.667 21.89 26.667 16 21.89 5.333 16 5.
|
|
41
|
+
d: "M16 5.333C10.109 5.333 5.333 10.11 5.333 16S10.11 26.667 16 26.667 26.667 21.89 26.667 16 21.89 5.333 16 5.333ZM2.667 16C2.667 8.636 8.637 2.667 16 2.667c7.364 0 13.333 5.97 13.333 13.333 0 7.364-5.97 13.333-13.333 13.333-7.364 0-13.333-5.97-13.333-13.333Zm18.276-3.61c.52.521.52 1.365 0 1.886l-5.334 5.334c-.52.52-1.364.52-1.885 0l-2.667-2.667a1.333 1.333 0 1 1 1.886-1.886l1.724 1.724 4.39-4.39c.52-.521 1.365-.521 1.886 0Z",
|
|
44
42
|
fill: "#118460"
|
|
45
43
|
}));
|
|
46
44
|
};
|
|
47
45
|
SuccessIcon.defaultProps = {
|
|
48
46
|
width: "32",
|
|
49
47
|
height: "32",
|
|
50
|
-
viewBox: "0 0 32 32",
|
|
51
48
|
fill: "none",
|
|
52
49
|
xmlns: "http://www.w3.org/2000/svg"
|
|
53
50
|
};
|
|
@@ -55,14 +52,13 @@ var ErrorIcon = function ErrorIcon(props) {
|
|
|
55
52
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
56
53
|
fillRule: "evenodd",
|
|
57
54
|
clipRule: "evenodd",
|
|
58
|
-
d: "M16 5.333C10.109 5.333 5.333 10.11 5.333 16S10.11 26.667 16 26.667 26.667 21.89 26.667 16 21.89 5.333 16 5.
|
|
55
|
+
d: "M16 5.333C10.109 5.333 5.333 10.11 5.333 16S10.11 26.667 16 26.667 26.667 21.89 26.667 16 21.89 5.333 16 5.333ZM2.667 16C2.667 8.636 8.637 2.667 16 2.667c7.364 0 13.333 5.97 13.333 13.333 0 7.364-5.97 13.333-13.333 13.333-7.364 0-13.333-5.97-13.333-13.333Zm9.723-3.61c.521-.52 1.365-.52 1.886 0L16 14.114l1.724-1.724a1.333 1.333 0 1 1 1.885 1.886L17.886 16l1.723 1.724a1.333 1.333 0 1 1-1.885 1.886L16 17.886l-1.724 1.724a1.333 1.333 0 1 1-1.886-1.886L14.114 16l-1.724-1.724a1.333 1.333 0 0 1 0-1.886Z",
|
|
59
56
|
fill: "#E80C2C"
|
|
60
57
|
}));
|
|
61
58
|
};
|
|
62
59
|
ErrorIcon.defaultProps = {
|
|
63
60
|
width: "32",
|
|
64
61
|
height: "32",
|
|
65
|
-
viewBox: "0 0 32 32",
|
|
66
62
|
fill: "none",
|
|
67
63
|
xmlns: "http://www.w3.org/2000/svg"
|
|
68
64
|
};
|
|
@@ -17,14 +17,13 @@ var NavigateBeforeIcon = function NavigateBeforeIcon(props) {
|
|
|
17
17
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
18
18
|
fillRule: "evenodd",
|
|
19
19
|
clipRule: "evenodd",
|
|
20
|
-
d: "M13.362 17a.996.996 0 0 1-.719-.305l-3.863-4a1 1 0 0 1 .013-1.402l4-4a.999.999 0 1 1 1.414 1.414l-3.305 3.305 3.18 3.293a1 1 0 0 1-.72 1.
|
|
20
|
+
d: "M13.362 17a.996.996 0 0 1-.719-.305l-3.863-4a1 1 0 0 1 .013-1.402l4-4a.999.999 0 1 1 1.414 1.414l-3.305 3.305 3.18 3.293a1 1 0 0 1-.72 1.695Z",
|
|
21
21
|
fill: "#091E42"
|
|
22
22
|
}));
|
|
23
23
|
};
|
|
24
24
|
NavigateBeforeIcon.defaultProps = {
|
|
25
25
|
width: "24",
|
|
26
26
|
height: "24",
|
|
27
|
-
viewBox: "0 0 24 24",
|
|
28
27
|
fill: "none",
|
|
29
28
|
xmlns: "http://www.w3.org/2000/svg"
|
|
30
29
|
};
|
|
@@ -32,41 +31,38 @@ var NavigateNextIcon = function NavigateNextIcon(props) {
|
|
|
32
31
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
33
32
|
fillRule: "evenodd",
|
|
34
33
|
clipRule: "evenodd",
|
|
35
|
-
d: "M10.5 17a.999.999 0 0 1-.707-1.707l3.305-3.305-3.18-3.293a1 1 0 0 1 1.439-1.39l3.862 4a1 1 0 0 1-.012 1.402l-4 4A.997.997 0 0 1 10.5
|
|
34
|
+
d: "M10.5 17a.999.999 0 0 1-.707-1.707l3.305-3.305-3.18-3.293a1 1 0 0 1 1.439-1.39l3.862 4a1 1 0 0 1-.012 1.402l-4 4A.997.997 0 0 1 10.5 17Z",
|
|
36
35
|
fill: "#091E42"
|
|
37
36
|
}));
|
|
38
37
|
};
|
|
39
38
|
NavigateNextIcon.defaultProps = {
|
|
40
39
|
width: "24",
|
|
41
40
|
height: "24",
|
|
42
|
-
viewBox: "0 0 24 24",
|
|
43
41
|
fill: "none",
|
|
44
42
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45
43
|
};
|
|
46
44
|
var NavigateHeaderBeforeIcon = function NavigateHeaderBeforeIcon(props) {
|
|
47
45
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
48
46
|
fill: "#FFF",
|
|
49
|
-
d: "M5.232.36a1 1 0 0 1 1.536 1.28L2.292 7.01l4.315 5.363a1 1 0 0 1-1.558 1.254l-4.828-6A1 1 0 0 1 .232 6.
|
|
47
|
+
d: "M5.232.36a1 1 0 0 1 1.536 1.28L2.292 7.01l4.315 5.363a1 1 0 0 1-1.558 1.254l-4.828-6A1 1 0 0 1 .232 6.36Zm7 0a1 1 0 0 1 1.537 1.28L9.293 7.011l4.315 5.362a1 1 0 0 1-1.56 1.254l-4.828-6a1 1 0 0 1 .012-1.267Z",
|
|
50
48
|
fillRule: "evenodd"
|
|
51
49
|
}));
|
|
52
50
|
};
|
|
53
51
|
NavigateHeaderBeforeIcon.defaultProps = {
|
|
54
52
|
width: "14",
|
|
55
53
|
height: "14",
|
|
56
|
-
viewBox: "0 0 14 14",
|
|
57
54
|
xmlns: "http://www.w3.org/2000/svg"
|
|
58
55
|
};
|
|
59
56
|
var NavigateHeaderNextIcon = function NavigateHeaderNextIcon(props) {
|
|
60
57
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
61
58
|
fill: "#FFF",
|
|
62
|
-
d: "M7.545.221a1 1 0 0 1 1.406.152l4.828 6a1 1 0 0 1-.01 1.267l-5 6a1 1 0 1 1-1.537-1.28l4.476-5.371-4.316-5.362A1 1 0 0 1 7.545.
|
|
59
|
+
d: "M7.545.221a1 1 0 0 1 1.406.152l4.828 6a1 1 0 0 1-.01 1.267l-5 6a1 1 0 1 1-1.537-1.28l4.476-5.371-4.316-5.362A1 1 0 0 1 7.545.221Zm-7 0a1 1 0 0 1 1.406.152l4.828 6a1 1 0 0 1-.01 1.267l-5 6a1 1 0 1 1-1.537-1.28l4.475-5.371L.392 1.627A1 1 0 0 1 .545.221Z",
|
|
63
60
|
fillRule: "evenodd"
|
|
64
61
|
}));
|
|
65
62
|
};
|
|
66
63
|
NavigateHeaderNextIcon.defaultProps = {
|
|
67
64
|
width: "14",
|
|
68
65
|
height: "14",
|
|
69
|
-
viewBox: "0 0 14 14",
|
|
70
66
|
xmlns: "http://www.w3.org/2000/svg"
|
|
71
67
|
};
|
|
72
68
|
const Pagination = _ref => {
|
|
@@ -26,19 +26,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
26
26
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
27
27
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
28
28
|
class UTPhoneInput extends _react.PureComponent {
|
|
29
|
-
constructor() {
|
|
30
|
-
super(
|
|
31
|
-
_defineProperty(this, "state", {
|
|
32
|
-
areaCode: '',
|
|
33
|
-
phoneNumber: '',
|
|
34
|
-
city: null,
|
|
35
|
-
initialized: false
|
|
36
|
-
});
|
|
37
|
-
_defineProperty(this, "componentDidMount", () => {
|
|
38
|
-
if (this.props.input && this.props.input.value && !this.state.initialized) {
|
|
39
|
-
this.handleInitializeField();
|
|
40
|
-
}
|
|
41
|
-
});
|
|
29
|
+
constructor(props) {
|
|
30
|
+
super(props);
|
|
42
31
|
_defineProperty(this, "cleanField", () => this.setState({
|
|
43
32
|
areaCode: '',
|
|
44
33
|
phoneNumber: ''
|
|
@@ -162,6 +151,17 @@ class UTPhoneInput extends _react.PureComponent {
|
|
|
162
151
|
}
|
|
163
152
|
input.onChange(value);
|
|
164
153
|
});
|
|
154
|
+
this.state = {
|
|
155
|
+
areaCode: '',
|
|
156
|
+
phoneNumber: '',
|
|
157
|
+
city: null,
|
|
158
|
+
initialized: false
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
componentDidMount() {
|
|
162
|
+
if (this.props.input && this.props.input.value && !this.state.initialized) {
|
|
163
|
+
this.handleInitializeField();
|
|
164
|
+
}
|
|
165
165
|
}
|
|
166
166
|
componentDidUpdate(prevProps) {
|
|
167
167
|
if (this.props.input && this.props.input.value && !this.state.areaCode && !this.state.initialized) {
|
|
@@ -10,14 +10,13 @@ var MoodConfuzed = function MoodConfuzed(props) {
|
|
|
10
10
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
11
11
|
fillRule: "evenodd",
|
|
12
12
|
clipRule: "evenodd",
|
|
13
|
-
d: "M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-
|
|
13
|
+
d: "M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm6-2a1 1 0 0 1 1-1h.01a1 1 0 0 1 0 2H9a1 1 0 0 1-1-1Zm6 0a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H15a1 1 0 0 1-1-1Zm1.43 5.498a9 9 0 0 0-5.4 1.35 1 1 0 0 1-1.06-1.695 11 11 0 0 1 6.6-1.65 1 1 0 1 1-.14 1.995Z",
|
|
14
14
|
fill: "#091E42"
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
MoodConfuzed.defaultProps = {
|
|
18
18
|
width: "24",
|
|
19
19
|
height: "24",
|
|
20
|
-
viewBox: "0 0 24 24",
|
|
21
20
|
fill: "none",
|
|
22
21
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23
22
|
};
|
|
@@ -25,14 +24,13 @@ var MoodEmpty = function MoodEmpty(props) {
|
|
|
25
24
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
26
25
|
fillRule: "evenodd",
|
|
27
26
|
clipRule: "evenodd",
|
|
28
|
-
d: "M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-
|
|
27
|
+
d: "M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm6-2a1 1 0 0 1 1-1h.01a1 1 0 0 1 0 2H9a1 1 0 0 1-1-1Zm6 0a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H15a1 1 0 0 1-1-1Zm-6 5a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Z",
|
|
29
28
|
fill: "#091E42"
|
|
30
29
|
}));
|
|
31
30
|
};
|
|
32
31
|
MoodEmpty.defaultProps = {
|
|
33
32
|
width: "24",
|
|
34
33
|
height: "24",
|
|
35
|
-
viewBox: "0 0 24 24",
|
|
36
34
|
fill: "none",
|
|
37
35
|
xmlns: "http://www.w3.org/2000/svg"
|
|
38
36
|
};
|
|
@@ -40,14 +38,13 @@ var MoodHappy = function MoodHappy(props) {
|
|
|
40
38
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
41
39
|
fillRule: "evenodd",
|
|
42
40
|
clipRule: "evenodd",
|
|
43
|
-
d: "M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-
|
|
41
|
+
d: "M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm6-3a1 1 0 0 1 1-1h.01a1 1 0 0 1 0 2H9a1 1 0 0 1-1-1Zm6 0a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H15a1 1 0 0 1-1-1Zm-6.707 3.293A1 1 0 0 1 8 12h8a1 1 0 0 1 1 1 5 5 0 1 1-10 0 1 1 0 0 1 .293-.707ZM9.172 14a3 3 0 0 0 5.656 0H9.172Z",
|
|
44
42
|
fill: "#091E42"
|
|
45
43
|
}));
|
|
46
44
|
};
|
|
47
45
|
MoodHappy.defaultProps = {
|
|
48
46
|
width: "24",
|
|
49
47
|
height: "24",
|
|
50
|
-
viewBox: "0 0 24 24",
|
|
51
48
|
fill: "none",
|
|
52
49
|
xmlns: "http://www.w3.org/2000/svg"
|
|
53
50
|
};
|
|
@@ -55,14 +52,13 @@ var MoodSad = function MoodSad(props) {
|
|
|
55
52
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
56
53
|
fillRule: "evenodd",
|
|
57
54
|
clipRule: "evenodd",
|
|
58
|
-
d: "M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-
|
|
55
|
+
d: "M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm6-2a1 1 0 0 1 1-1h.01a1 1 0 0 1 0 2H9a1 1 0 0 1-1-1Zm6 0a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H15a1 1 0 0 1-1-1Zm-2 5.2a2.5 2.5 0 0 0-1.786.75 1 1 0 0 1-1.428-1.4 4.499 4.499 0 0 1 6.428 0 1 1 0 0 1-1.428 1.4A2.501 2.501 0 0 0 12 15.2Z",
|
|
59
56
|
fill: "#091E42"
|
|
60
57
|
}));
|
|
61
58
|
};
|
|
62
59
|
MoodSad.defaultProps = {
|
|
63
60
|
width: "24",
|
|
64
61
|
height: "24",
|
|
65
|
-
viewBox: "0 0 24 24",
|
|
66
62
|
fill: "none",
|
|
67
63
|
xmlns: "http://www.w3.org/2000/svg"
|
|
68
64
|
};
|
|
@@ -70,14 +66,13 @@ var MoodSmile = function MoodSmile(props) {
|
|
|
70
66
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
71
67
|
fillRule: "evenodd",
|
|
72
68
|
clipRule: "evenodd",
|
|
73
|
-
d: "M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-
|
|
69
|
+
d: "M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm6-2a1 1 0 0 1 1-1h.01a1 1 0 0 1 0 2H9a1 1 0 0 1-1-1Zm6 0a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H15a1 1 0 0 1-1-1Zm-5.2 4.286a1 1 0 0 1 1.414.014 2.5 2.5 0 0 0 3.572 0 1 1 0 0 1 1.428 1.4 4.5 4.5 0 0 1-6.428 0 1 1 0 0 1 .014-1.414Z",
|
|
74
70
|
fill: "#091E42"
|
|
75
71
|
}));
|
|
76
72
|
};
|
|
77
73
|
MoodSmile.defaultProps = {
|
|
78
74
|
width: "24",
|
|
79
75
|
height: "24",
|
|
80
|
-
viewBox: "0 0 24 24",
|
|
81
76
|
fill: "none",
|
|
82
77
|
xmlns: "http://www.w3.org/2000/svg"
|
|
83
78
|
};
|
|
@@ -11,14 +11,13 @@ var ErrorIcon = function ErrorIcon(props) {
|
|
|
11
11
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
12
12
|
fillRule: "evenodd",
|
|
13
13
|
clipRule: "evenodd",
|
|
14
|
-
d: "M4.41 4.41a.833.833 0 0 1 1.18 0L10 8.823l4.41-4.411a.833.833 0 1 1 1.18 1.178L11.177 10l4.411 4.41a.833.833 0 0 1-1.178 1.18L10 11.178l-4.41 4.41a.833.833 0 1 1-1.18-1.178L8.823 10 4.41 5.588a.833.833 0 0 1 0-1.
|
|
14
|
+
d: "M4.41 4.41a.833.833 0 0 1 1.18 0L10 8.823l4.41-4.411a.833.833 0 1 1 1.18 1.178L11.177 10l4.411 4.41a.833.833 0 0 1-1.178 1.18L10 11.178l-4.41 4.41a.833.833 0 1 1-1.18-1.178L8.823 10 4.41 5.588a.833.833 0 0 1 0-1.178Z",
|
|
15
15
|
fill: "#091E42"
|
|
16
16
|
}));
|
|
17
17
|
};
|
|
18
18
|
ErrorIcon.defaultProps = {
|
|
19
19
|
width: "20",
|
|
20
20
|
height: "20",
|
|
21
|
-
viewBox: "0 0 20 20",
|
|
22
21
|
fill: "none",
|
|
23
22
|
xmlns: "http://www.w3.org/2000/svg"
|
|
24
23
|
};
|
|
@@ -26,14 +25,13 @@ var InfoIcon = function InfoIcon(props) {
|
|
|
26
25
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
27
26
|
fillRule: "evenodd",
|
|
28
27
|
clipRule: "evenodd",
|
|
29
|
-
d: "M10 3.333a6.667 6.667 0 1 0 0 13.334 6.667 6.667 0 0 0 0-13.
|
|
28
|
+
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.5-3.333c0-.46.373-.834.833-.834h.008a.833.833 0 0 1 0 1.667H10a.833.833 0 0 1-.833-.833ZM8.333 10c0-.46.373-.833.834-.833H10c.46 0 .833.373.833.833v2.5a.833.833 0 0 1 0 1.667H10a.833.833 0 0 1-.833-.834v-2.5A.833.833 0 0 1 8.333 10Z",
|
|
30
29
|
fill: "#091E42"
|
|
31
30
|
}));
|
|
32
31
|
};
|
|
33
32
|
InfoIcon.defaultProps = {
|
|
34
33
|
width: "20",
|
|
35
34
|
height: "20",
|
|
36
|
-
viewBox: "0 0 20 20",
|
|
37
35
|
fill: "none",
|
|
38
36
|
xmlns: "http://www.w3.org/2000/svg"
|
|
39
37
|
};
|
|
@@ -41,14 +39,13 @@ var SuccessIcon = function SuccessIcon(props) {
|
|
|
41
39
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
42
40
|
fillRule: "evenodd",
|
|
43
41
|
clipRule: "evenodd",
|
|
44
|
-
d: "M17.256 5.244a.833.833 0 0 1 0 1.179l-8.333 8.333a.833.833 0 0 1-1.179 0l-4.167-4.167a.833.833 0 0 1 1.179-1.178l3.577 3.577 7.744-7.744a.833.833 0 0 1 1.179
|
|
42
|
+
d: "M17.256 5.244a.833.833 0 0 1 0 1.179l-8.333 8.333a.833.833 0 0 1-1.179 0l-4.167-4.167a.833.833 0 0 1 1.179-1.178l3.577 3.577 7.744-7.744a.833.833 0 0 1 1.179 0Z",
|
|
45
43
|
fill: "#091E42"
|
|
46
44
|
}));
|
|
47
45
|
};
|
|
48
46
|
SuccessIcon.defaultProps = {
|
|
49
47
|
width: "20",
|
|
50
48
|
height: "20",
|
|
51
|
-
viewBox: "0 0 20 20",
|
|
52
49
|
fill: "none",
|
|
53
50
|
xmlns: "http://www.w3.org/2000/svg"
|
|
54
51
|
};
|
|
@@ -56,14 +53,13 @@ var UnassignedIcon = function UnassignedIcon(props) {
|
|
|
56
53
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
57
54
|
fillRule: "evenodd",
|
|
58
55
|
clipRule: "evenodd",
|
|
59
|
-
d: "M4.167 4.167a.833.833 0 1 0 0 1.666h11.666a.833.833 0 0 0 0-1.666H4.
|
|
56
|
+
d: "M4.167 4.167a.833.833 0 1 0 0 1.666h11.666a.833.833 0 0 0 0-1.666H4.167ZM1.667 5a2.5 2.5 0 0 1 2.5-2.5h11.666a2.5 2.5 0 0 1 .834 4.858V15a2.5 2.5 0 0 1-2.5 2.5H5.833a2.5 2.5 0 0 1-2.5-2.5V7.358A2.501 2.501 0 0 1 1.667 5ZM5 7.5V15a.833.833 0 0 0 .833.833h8.334A.833.833 0 0 0 15 15V7.5H5ZM7.5 10c0-.46.373-.833.833-.833h3.334a.833.833 0 0 1 0 1.666H8.333A.833.833 0 0 1 7.5 10Z",
|
|
60
57
|
fill: "#091E42"
|
|
61
58
|
}));
|
|
62
59
|
};
|
|
63
60
|
UnassignedIcon.defaultProps = {
|
|
64
61
|
width: "20",
|
|
65
62
|
height: "20",
|
|
66
|
-
viewBox: "0 0 20 20",
|
|
67
63
|
fill: "none",
|
|
68
64
|
xmlns: "http://www.w3.org/2000/svg"
|
|
69
65
|
};
|
|
@@ -71,14 +67,13 @@ var WarningIcon = function WarningIcon(props) {
|
|
|
71
67
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
72
68
|
fillRule: "evenodd",
|
|
73
69
|
clipRule: "evenodd",
|
|
74
|
-
d: "M8.722 1.987a2.5 2.5 0 0 1 3.453.935l5.913 10.202c.02.034.037.069.051.105a2.5 2.5 0 0 1-2.3 3.438H4.167c-.016 0-.03 0-.046-.002a.855.855 0 0 1-.089 0 2.499 2.499 0 0 1-2.187-3.437.83.83 0 0 1 .05-.104L7.81 2.922a2.5 2.5 0 0 1 .913-.
|
|
70
|
+
d: "M8.722 1.987a2.5 2.5 0 0 1 3.453.935l5.913 10.202c.02.034.037.069.051.105a2.5 2.5 0 0 1-2.3 3.438H4.167c-.016 0-.03 0-.046-.002a.855.855 0 0 1-.089 0 2.499 2.499 0 0 1-2.187-3.437.83.83 0 0 1 .05-.104L7.81 2.922a2.5 2.5 0 0 1 .913-.935ZM4.121 15 4.167 15H15.83a.833.833 0 0 0 .781-1.1L10.73 3.75l-.008-.014a.833.833 0 0 0-1.458 0l-.009.014-5.882 10.15a.833.833 0 0 0 .746 1.1h.003ZM10 6.667c.46 0 .833.373.833.833v1.667a.833.833 0 0 1-1.666 0V7.5c0-.46.373-.833.833-.833Zm0 5c.46 0 .833.373.833.833v.008a.833.833 0 0 1-1.666 0V12.5c0-.46.373-.833.833-.833Z",
|
|
75
71
|
fill: "#091E42"
|
|
76
72
|
}));
|
|
77
73
|
};
|
|
78
74
|
WarningIcon.defaultProps = {
|
|
79
75
|
width: "20",
|
|
80
76
|
height: "20",
|
|
81
|
-
viewBox: "0 0 20 20",
|
|
82
77
|
fill: "none",
|
|
83
78
|
xmlns: "http://www.w3.org/2000/svg"
|
|
84
79
|
};
|
|
@@ -23,7 +23,6 @@ var NavigateBeforeIcon = function NavigateBeforeIcon(props) {
|
|
|
23
23
|
NavigateBeforeIcon.defaultProps = {
|
|
24
24
|
width: "7",
|
|
25
25
|
height: "14",
|
|
26
|
-
viewBox: "0 0 7 14",
|
|
27
26
|
xmlns: "http://www.w3.org/2000/svg"
|
|
28
27
|
};
|
|
29
28
|
var NavigateNextIcon = function NavigateNextIcon(props) {
|
|
@@ -36,33 +35,30 @@ var NavigateNextIcon = function NavigateNextIcon(props) {
|
|
|
36
35
|
NavigateNextIcon.defaultProps = {
|
|
37
36
|
width: "7",
|
|
38
37
|
height: "14",
|
|
39
|
-
viewBox: "0 0 7 14",
|
|
40
38
|
xmlns: "http://www.w3.org/2000/svg"
|
|
41
39
|
};
|
|
42
40
|
var NavigateHeaderBeforeIcon = function NavigateHeaderBeforeIcon(props) {
|
|
43
41
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
44
42
|
fill: "#FFF",
|
|
45
|
-
d: "M5.232.36a1 1 0 0 1 1.536 1.28L2.292 7.01l4.315 5.363a1 1 0 0 1-1.558 1.254l-4.828-6A1 1 0 0 1 .232 6.
|
|
43
|
+
d: "M5.232.36a1 1 0 0 1 1.536 1.28L2.292 7.01l4.315 5.363a1 1 0 0 1-1.558 1.254l-4.828-6A1 1 0 0 1 .232 6.36Zm7 0a1 1 0 0 1 1.537 1.28L9.293 7.011l4.315 5.362a1 1 0 0 1-1.56 1.254l-4.828-6a1 1 0 0 1 .012-1.267Z",
|
|
46
44
|
fillRule: "evenodd"
|
|
47
45
|
}));
|
|
48
46
|
};
|
|
49
47
|
NavigateHeaderBeforeIcon.defaultProps = {
|
|
50
48
|
width: "14",
|
|
51
49
|
height: "14",
|
|
52
|
-
viewBox: "0 0 14 14",
|
|
53
50
|
xmlns: "http://www.w3.org/2000/svg"
|
|
54
51
|
};
|
|
55
52
|
var NavigateHeaderNextIcon = function NavigateHeaderNextIcon(props) {
|
|
56
53
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
57
54
|
fill: "#FFF",
|
|
58
|
-
d: "M7.545.221a1 1 0 0 1 1.406.152l4.828 6a1 1 0 0 1-.01 1.267l-5 6a1 1 0 1 1-1.537-1.28l4.476-5.371-4.316-5.362A1 1 0 0 1 7.545.
|
|
55
|
+
d: "M7.545.221a1 1 0 0 1 1.406.152l4.828 6a1 1 0 0 1-.01 1.267l-5 6a1 1 0 1 1-1.537-1.28l4.476-5.371-4.316-5.362A1 1 0 0 1 7.545.221Zm-7 0a1 1 0 0 1 1.406.152l4.828 6a1 1 0 0 1-.01 1.267l-5 6a1 1 0 1 1-1.537-1.28l4.475-5.371L.392 1.627A1 1 0 0 1 .545.221Z",
|
|
59
56
|
fillRule: "evenodd"
|
|
60
57
|
}));
|
|
61
58
|
};
|
|
62
59
|
NavigateHeaderNextIcon.defaultProps = {
|
|
63
60
|
width: "14",
|
|
64
61
|
height: "14",
|
|
65
|
-
viewBox: "0 0 14 14",
|
|
66
62
|
xmlns: "http://www.w3.org/2000/svg"
|
|
67
63
|
};
|
|
68
64
|
const Pagination = _ref => {
|
|
@@ -55,7 +55,7 @@ const TableRow = _ref => {
|
|
|
55
55
|
} = columnsDefinition;
|
|
56
56
|
const SelectionComponent = exclusiveSelection ? _Radio.default : _Checkbox.default;
|
|
57
57
|
const selectableCellStyles = isResponsive ? "".concat(_stylesModule.default.secondaryActionsContainer, "\n ").concat(cellProps.classes.responsiveCell, "\n ").concat(selectable || !(0, _array.isEmpty)(secondaryActions) ? cellProps.classes.responsiveRowTopBorder : _stylesModule.default.hidden) : "\n\t".concat(_stylesModule.default.fixedRowLeft, "\n\t").concat(fixedRowsLeftClassName, "\n\t").concat((removeFixedRowsDivisors || (0, _array.isEmpty)(fixedLeftColumns)) && _stylesModule.default.disableBorderRight, "\n\t").concat(!selectable && (0, _array.isEmpty)(fixedLeftColumns) && _stylesModule.default.cleanFixedColumns, "\n");
|
|
58
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement(_UTTouchableWithoutFeedback.default, {
|
|
59
59
|
onClick: handleRowClick,
|
|
60
60
|
className: "\n ".concat(_stylesModule.default.row, "\n ").concat((!handleRowClick || isResponsive) && _stylesModule.default.noClick, "\n ").concat(isResponsive && cellProps.classes.responsiveRow, "\n ").concat(className, "\n "),
|
|
61
61
|
style: containerStyle
|
|
@@ -131,7 +131,7 @@ const TableRow = _ref => {
|
|
|
131
131
|
column: column,
|
|
132
132
|
columnSizes: columnSizes,
|
|
133
133
|
align: _constants.COLUMN_POSITION.RIGHT
|
|
134
|
-
}, cellProps)))))
|
|
134
|
+
}, cellProps)))));
|
|
135
135
|
};
|
|
136
136
|
TableRow.propTypes = {
|
|
137
137
|
CellComponent: _propTypes.elementType,
|
|
@@ -33,16 +33,16 @@ const preventDefault = event => {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
class UTTextInput extends _react.PureComponent {
|
|
36
|
-
constructor() {
|
|
37
|
-
super(
|
|
38
|
-
_defineProperty(this, "state", {
|
|
39
|
-
visible: false
|
|
40
|
-
});
|
|
36
|
+
constructor(props) {
|
|
37
|
+
super(props);
|
|
41
38
|
_defineProperty(this, "handleClickShowPassword", () => {
|
|
42
39
|
this.setState(prevState => ({
|
|
43
40
|
visible: !prevState.visible
|
|
44
41
|
}));
|
|
45
42
|
});
|
|
43
|
+
this.state = {
|
|
44
|
+
visible: false
|
|
45
|
+
};
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
const {
|
|
@@ -7,9 +7,9 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _propTypes = require("prop-types");
|
|
9
9
|
var _ExpandMore = _interopRequireDefault(require("@material-ui/icons/ExpandMore"));
|
|
10
|
+
var _UTTouchableWithoutFeedback = _interopRequireDefault(require("../../../UTTouchableWithoutFeedback"));
|
|
11
|
+
var _UTLabel = _interopRequireDefault(require("../../../UTLabel"));
|
|
10
12
|
var _types = require("../../types.js");
|
|
11
|
-
var _index = _interopRequireDefault(require("../../../UTTouchableWithoutFeedback/index.js"));
|
|
12
|
-
var _index2 = _interopRequireDefault(require("../../../UTLabel/index.js"));
|
|
13
13
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
@@ -26,14 +26,14 @@ const UserMenu = _ref => {
|
|
|
26
26
|
subtitle,
|
|
27
27
|
title
|
|
28
28
|
} = _ref;
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_UTTouchableWithoutFeedback.default, {
|
|
30
30
|
onClick: handleClick,
|
|
31
31
|
className: "".concat(justAvatar ? _stylesModule.default.justAvatarUserMenu : _stylesModule.default.userMenu, " ").concat(classes.userMenu, " ").concat(!handleClick && _stylesModule.default.disableMenu)
|
|
32
32
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
33
33
|
className: "".concat(_stylesModule.default.userMenuAvatar, " ").concat(classes.userMenuAvatar)
|
|
34
34
|
}, avatar), !justAvatar && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
35
35
|
className: _stylesModule.default.labelWithArrow
|
|
36
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
37
37
|
className: "".concat(classes.userMenuTitle, " ").concat(_stylesModule.default.userMenuTitle),
|
|
38
38
|
withMarkdown: true
|
|
39
39
|
}, title), handleClick && MenuComponent && /*#__PURE__*/_react.default.createElement(Arrow, {
|
|
@@ -12,7 +12,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }
|
|
15
|
-
|
|
15
|
+
const UTTouchableWithoutFeedback = _ref => {
|
|
16
16
|
let {
|
|
17
17
|
children,
|
|
18
18
|
className,
|
|
@@ -37,7 +37,7 @@ function UTTouchableWithoutFeedback(_ref) {
|
|
|
37
37
|
elem: buttonRef,
|
|
38
38
|
withRipple: withRipple
|
|
39
39
|
}));
|
|
40
|
-
}
|
|
40
|
+
};
|
|
41
41
|
UTTouchableWithoutFeedback.propTypes = {
|
|
42
42
|
onClick: _propTypes.func,
|
|
43
43
|
containerSetter: _propTypes.func,
|
|
@@ -22,9 +22,9 @@ const ActionButton = _ref => {
|
|
|
22
22
|
isHidden,
|
|
23
23
|
buttonProps
|
|
24
24
|
} = _ref;
|
|
25
|
-
return /*#__PURE__*/(0, _react.isValidElement)(button) ? /*#__PURE__*/(0, _react.cloneElement)(button, {
|
|
25
|
+
return /*#__PURE__*/(0, _react.isValidElement)(button) ? ( /*#__PURE__*/(0, _react.cloneElement)(button, {
|
|
26
26
|
className: "".concat(button.props.className, " ").concat(isHidden && _stylesModule.default.hiddenButton)
|
|
27
|
-
}) : /*#__PURE__*/_react.default.createElement(_UTButton.default, _extends({
|
|
27
|
+
})) : /*#__PURE__*/_react.default.createElement(_UTButton.default, _extends({
|
|
28
28
|
disabled: button.disabled,
|
|
29
29
|
hideTextOnResponsive: true,
|
|
30
30
|
onClick: button.onClick
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Loading = _interopRequireDefault(require("../Loading"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
const WithLoading = (shouldLoad, text, className, size, thickness, textClassName) => WrappedComponent =>
|
|
10
|
+
const WithLoading = (shouldLoad, text, className, size, thickness, textClassName) => WrappedComponent => props => {
|
|
11
11
|
return shouldLoad(props) ? /*#__PURE__*/_react.default.createElement(_Loading.default, {
|
|
12
12
|
text: text,
|
|
13
13
|
className: className,
|
|
@@ -9,7 +9,7 @@ var _propTypes = require("prop-types");
|
|
|
9
9
|
var _UTTouchableWithoutFeedback = _interopRequireDefault(require("../UTTouchableWithoutFeedback"));
|
|
10
10
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
const WithTouch = onClick => WrappedComponent =>
|
|
12
|
+
const WithTouch = onClick => WrappedComponent => props => {
|
|
13
13
|
const handleClick = () => onClick(props);
|
|
14
14
|
return onClick ? /*#__PURE__*/_react.default.createElement(_UTTouchableWithoutFeedback.default, {
|
|
15
15
|
onClick: handleClick
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widergy/energy-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Widergy Web Components",
|
|
5
5
|
"author": "widergy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
|
-
"start": "react-scripts --openssl-legacy-provider start",
|
|
15
|
-
"build-examples": "react-scripts build",
|
|
14
|
+
"start": "cross-env GENERATE_SOURCEMAP=false react-scripts --openssl-legacy-provider start",
|
|
15
|
+
"build-examples": "cross-env GENERATE_SOURCEMAP=false react-scripts --openssl-legacy-provider build",
|
|
16
16
|
"lint": "./node_modules/eslint/bin/eslint.js src",
|
|
17
17
|
"test": "react-scripts test --env=jsdom",
|
|
18
18
|
"eject": "react-scripts eject",
|
|
@@ -30,26 +30,26 @@
|
|
|
30
30
|
"@material-ui/pickers": "^3.3.10",
|
|
31
31
|
"@tippy.js/react": "^3.0.0",
|
|
32
32
|
"@trainline/react-skeletor": "^1.0.2",
|
|
33
|
-
"@widergy/energy-hooks": "^
|
|
34
|
-
"@widergy/web-utils": "^
|
|
35
|
-
"autoprefixer": "^
|
|
36
|
-
"babel-plugin-inline-react-svg": "^
|
|
33
|
+
"@widergy/energy-hooks": "^2.0.0",
|
|
34
|
+
"@widergy/web-utils": "^2.0.0",
|
|
35
|
+
"autoprefixer": "^10.4.15",
|
|
36
|
+
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
37
37
|
"babel-plugin-named-asset-import": "^0.3.2",
|
|
38
38
|
"d3": "^7.0.1",
|
|
39
39
|
"dayjs": "^1.10.7",
|
|
40
|
-
"emojilib": "3.0.
|
|
41
|
-
"node-sass": "^8.0.0",
|
|
40
|
+
"emojilib": "^3.0.10",
|
|
42
41
|
"numeral": "^2.0.6",
|
|
43
42
|
"object-hash": "^3.0.0",
|
|
44
43
|
"react-google-maps": ">=9.2.2",
|
|
45
|
-
"react-google-recaptcha": "^1.0
|
|
44
|
+
"react-google-recaptcha": "^3.1.0",
|
|
46
45
|
"react-jss": "^8.6.1",
|
|
47
|
-
"react-markdown": "^
|
|
46
|
+
"react-markdown": "^8.0.7",
|
|
48
47
|
"react-perfect-scrollbar": "^1.5.3",
|
|
49
48
|
"react-transition-group": "^4.2.2",
|
|
50
49
|
"react-window": "^1.8.5",
|
|
51
50
|
"rehype-raw": "^6.1.0",
|
|
52
51
|
"remark-breaks": "^3.0.2",
|
|
52
|
+
"node-sass": "^8.0.0",
|
|
53
53
|
"sass-loader": "^10.0.5",
|
|
54
54
|
"seamless-immutable": "^7.1.4"
|
|
55
55
|
},
|
|
@@ -57,75 +57,34 @@
|
|
|
57
57
|
"@babel/cli": "^7.2.3",
|
|
58
58
|
"@babel/core": "^7.3.4",
|
|
59
59
|
"@babel/plugin-proposal-class-properties": "^7.4.0",
|
|
60
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
60
61
|
"@babel/preset-env": "^7.3.4",
|
|
61
62
|
"@babel/preset-react": "^7.0.0",
|
|
62
|
-
"@commitlint/cli": "^
|
|
63
|
-
"@commitlint/config-conventional": "^
|
|
64
|
-
"@semantic-release
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"eslint-config-
|
|
69
|
-
"eslint-
|
|
70
|
-
"eslint-plugin-flowtype": "^2.39.1",
|
|
63
|
+
"@commitlint/cli": "^17.7.1",
|
|
64
|
+
"@commitlint/config-conventional": "^17.7.0",
|
|
65
|
+
"@widergy/semantic-release-package-config": "^1.0.0",
|
|
66
|
+
"babel-preset-react-app": "^10.0.1",
|
|
67
|
+
"cross-env": "^7.0.3",
|
|
68
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
69
|
+
"eslint-config-prettier": "^9.0.0",
|
|
70
|
+
"eslint-plugin-flowtype": "^8.0.3",
|
|
71
71
|
"eslint-plugin-import": "^2.14.0",
|
|
72
72
|
"eslint-plugin-jsx-a11y": "^6.1.1",
|
|
73
|
-
"eslint-plugin-prettier": "^
|
|
73
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
74
74
|
"eslint-plugin-react": "^7.11.0",
|
|
75
|
-
"gh-pages": "^
|
|
76
|
-
"husky": "^
|
|
77
|
-
"prettier": "^
|
|
78
|
-
"prettier-eslint": "^
|
|
75
|
+
"gh-pages": "^6.0.0",
|
|
76
|
+
"husky": "^8.0.0",
|
|
77
|
+
"prettier": "^3.0.3",
|
|
78
|
+
"prettier-eslint": "^15.0.1",
|
|
79
79
|
"prop-types": ">=15.5.10",
|
|
80
|
-
"react": "^
|
|
81
|
-
"react-dom": "^
|
|
82
|
-
"react-scripts": "^4.0.
|
|
80
|
+
"react": "^18.2.0",
|
|
81
|
+
"react-dom": "^18.2.0",
|
|
82
|
+
"react-scripts": "^4.0.3",
|
|
83
83
|
"sass-lint": "^1.12.1",
|
|
84
84
|
"semantic-release": "^15.13.31"
|
|
85
85
|
},
|
|
86
|
-
"husky": {
|
|
87
|
-
"hooks": {
|
|
88
|
-
"pre-commit": "node branch-name-hook",
|
|
89
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
86
|
"release": {
|
|
93
|
-
"
|
|
94
|
-
"@semantic-release/commit-analyzer",
|
|
95
|
-
"@semantic-release/release-notes-generator",
|
|
96
|
-
[
|
|
97
|
-
"@semantic-release/changelog",
|
|
98
|
-
{
|
|
99
|
-
"changelogFile": "./CHANGELOG.md"
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"@semantic-release/npm",
|
|
103
|
-
[
|
|
104
|
-
"@semantic-release/git",
|
|
105
|
-
{
|
|
106
|
-
"assets": [
|
|
107
|
-
"./CHANGELOG.md",
|
|
108
|
-
"package.json"
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
],
|
|
112
|
-
"@semantic-release/github"
|
|
113
|
-
]
|
|
114
|
-
},
|
|
115
|
-
"commitlint": {
|
|
116
|
-
"extends": [
|
|
117
|
-
"@commitlint/config-conventional"
|
|
118
|
-
],
|
|
119
|
-
"rules": {
|
|
120
|
-
"subject-case": [
|
|
121
|
-
2,
|
|
122
|
-
"never",
|
|
123
|
-
[
|
|
124
|
-
"start-case",
|
|
125
|
-
"pascal-case"
|
|
126
|
-
]
|
|
127
|
-
]
|
|
128
|
-
}
|
|
87
|
+
"extends": "@widergy/semantic-release-package-config"
|
|
129
88
|
},
|
|
130
89
|
"resolutions": {
|
|
131
90
|
"@babel/preset-env": "^7.8.7"
|