@widergy/energy-ui 3.95.0 → 3.96.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 +7 -0
- package/dist/components/UTDocumentWizard/index.js +4 -6
- package/dist/components/UTEmojiPicker/index.js +1 -1
- package/dist/components/UTLabel/UTLabel.mdx +13 -0
- package/dist/components/UTLabel/UTLabel.stories.js +140 -0
- package/dist/components/UTModal/index.js +1 -1
- package/dist/components/UTPanel/versions/V0/index.js +0 -1
- package/dist/components/UTPanel/versions/V1/index.js +0 -1
- package/dist/components/UTSelect/versions/V1/components/InputComponent/index.js +0 -7
- package/dist/components/UTSelectableCard/index.js +1 -1
- package/dist/components/UTStatus/UTStatus.mdx +13 -0
- package/dist/components/UTStatus/UTStatus.stories.js +127 -0
- package/dist/components/UTStatus/constants.js +2 -1
- package/dist/components/UTTable/components/ActionIcons/index.js +1 -1
- package/dist/components/UTTextInput/versions/V0/index.js +0 -6
- package/dist/components/UTTouchableWithoutFeedback/index.js +1 -1
- package/dist/components/WithLoading/index.js +8 -10
- package/dist/index.js +1 -1
- package/package.json +23 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [3.96.0](https://github.com/widergy/energy-ui/compare/v3.95.0...v3.96.0) (2025-07-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* storybook setup and initial stories ([#447](https://github.com/widergy/energy-ui/issues/447)) ([4bf591b](https://github.com/widergy/energy-ui/commit/4bf591b3f3d1b2a8c7e57667cd23c9a73789dc22))
|
|
7
|
+
|
|
1
8
|
# [3.95.0](https://github.com/widergy/energy-ui/compare/v3.94.1...v3.95.0) (2025-07-29)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -78,12 +78,10 @@ const UTDocumentWizard = _ref => {
|
|
|
78
78
|
};
|
|
79
79
|
const containerRef = (0, _react.useRef)(null);
|
|
80
80
|
const actualPage = pages === null || pages === void 0 ? void 0 : pages.find(page => "".concat(page.id) === "".concat(selectedTab));
|
|
81
|
-
(0, _react.useEffect)(() => {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
};
|
|
81
|
+
(0, _react.useEffect)(() => () => {
|
|
82
|
+
if (changeTimeoutRef.current) {
|
|
83
|
+
clearTimeout(changeTimeoutRef.current);
|
|
84
|
+
}
|
|
87
85
|
}, []);
|
|
88
86
|
const [sheetOpen, setSheetOpen] = (0, _react.useState)(false);
|
|
89
87
|
const {
|
|
@@ -17,7 +17,7 @@ var _utils = require("./utils");
|
|
|
17
17
|
var _constants = require("./constants");
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
20
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
20
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
21
21
|
const UTEmojiPicker = _ref => {
|
|
22
22
|
let {
|
|
23
23
|
ButtonComponent = _UTTouchableWithoutFeedback.default,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ArgTypes, Canvas, Description, Meta, Title } from '@storybook/blocks';
|
|
2
|
+
|
|
3
|
+
import * as UTLabelStories from './UTLabel.stories';
|
|
4
|
+
|
|
5
|
+
<Meta of={UTLabelStories} />
|
|
6
|
+
|
|
7
|
+
<Title>UTLabel</Title>
|
|
8
|
+
|
|
9
|
+
<Description of={UTLabelStories} />
|
|
10
|
+
|
|
11
|
+
<Canvas of={UTLabelStories.Default} withToolbar name="UTLabel" />
|
|
12
|
+
|
|
13
|
+
<ArgTypes exclude={['classes', 'style', 'title']} />
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Default = void 0;
|
|
7
|
+
var _utils = require("stories/utils");
|
|
8
|
+
var _Palette = require("../../constants/Palette");
|
|
9
|
+
var _constants = require("./constants");
|
|
10
|
+
var _ = _interopRequireDefault(require("."));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
var _default = exports.default = {
|
|
13
|
+
args: {
|
|
14
|
+
children: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
|
|
15
|
+
},
|
|
16
|
+
argTypes: {
|
|
17
|
+
children: {
|
|
18
|
+
control: 'text',
|
|
19
|
+
description: 'Texto a mostrar en el componente.',
|
|
20
|
+
table: {
|
|
21
|
+
defaultValue: {
|
|
22
|
+
summary: 'undefined'
|
|
23
|
+
},
|
|
24
|
+
type: {
|
|
25
|
+
summary: 'string'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
colorTheme: {
|
|
30
|
+
control: 'select',
|
|
31
|
+
description: 'Determina el color de la paleta a usar.',
|
|
32
|
+
options: Object.values(_Palette.COLOR_THEMES),
|
|
33
|
+
table: {
|
|
34
|
+
defaultValue: {
|
|
35
|
+
summary: _constants.DEFAULT_PROPS.colorTheme
|
|
36
|
+
},
|
|
37
|
+
type: {
|
|
38
|
+
summary: 'string'
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
shade: {
|
|
43
|
+
control: 'select',
|
|
44
|
+
description: 'Determina el tono de la prop `colorTheme` a usar.',
|
|
45
|
+
options: Object.values(_Palette.COLOR_SHADES),
|
|
46
|
+
table: {
|
|
47
|
+
defaultValue: {
|
|
48
|
+
summary: '05'
|
|
49
|
+
},
|
|
50
|
+
type: {
|
|
51
|
+
summary: 'string'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
markdownRenderers: {
|
|
56
|
+
control: false,
|
|
57
|
+
description: 'Mapper de componentes HTML a componentes react. Para más detalles revisar la sección Markdown Renderers',
|
|
58
|
+
table: {
|
|
59
|
+
defaultValue: {
|
|
60
|
+
summary: 'Detalles',
|
|
61
|
+
detail: 'Por defecto hay un renderer para elementos <a> que presetea algunos atributos de la etiqueta.'
|
|
62
|
+
},
|
|
63
|
+
type: {
|
|
64
|
+
summary: 'Object'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
variant: {
|
|
69
|
+
control: 'select',
|
|
70
|
+
description: 'Determina el componente HTML a renderizar.',
|
|
71
|
+
options: Object.keys(_constants.VARIANTS),
|
|
72
|
+
table: {
|
|
73
|
+
defaultValue: {
|
|
74
|
+
summary: _constants.DEFAULT_PROPS.variant
|
|
75
|
+
},
|
|
76
|
+
type: {
|
|
77
|
+
summary: (0, _utils.joinArgTypes)(Object.keys(_constants.VARIANTS))
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
weight: {
|
|
82
|
+
control: 'select',
|
|
83
|
+
description: 'Determina el valor del atributo `font-weight`.',
|
|
84
|
+
options: Object.keys(_constants.WEIGHTS),
|
|
85
|
+
table: {
|
|
86
|
+
defaultValue: {
|
|
87
|
+
summary: _constants.DEFAULT_PROPS.weight
|
|
88
|
+
},
|
|
89
|
+
type: {
|
|
90
|
+
summary: (0, _utils.joinArgTypes)(Object.keys(_constants.WEIGHTS))
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
withMarkdown: {
|
|
95
|
+
control: 'boolean',
|
|
96
|
+
description: 'Determina si renderizar el contenido como markdown o texto plano.',
|
|
97
|
+
table: {
|
|
98
|
+
defaultValue: {
|
|
99
|
+
summary: _constants.DEFAULT_PROPS.withMarkdown
|
|
100
|
+
},
|
|
101
|
+
type: {
|
|
102
|
+
summary: 'bool'
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
className: {
|
|
107
|
+
control: false,
|
|
108
|
+
description: 'Clase que se le pasa al elemento contenedor.',
|
|
109
|
+
table: {
|
|
110
|
+
defaultValue: {
|
|
111
|
+
summary: 'undefined'
|
|
112
|
+
},
|
|
113
|
+
type: {
|
|
114
|
+
summary: 'string'
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
component: _.default,
|
|
120
|
+
parameters: {
|
|
121
|
+
controls: {
|
|
122
|
+
exclude: ['classes', 'field', 'style', 'title']
|
|
123
|
+
},
|
|
124
|
+
docs: {
|
|
125
|
+
description: {
|
|
126
|
+
component: 'Este componente se usa para renderizar texto. Consume la paleta de colores. Acepta markdown para formatear texto.'
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
const Default = exports.Default = {
|
|
132
|
+
args: {
|
|
133
|
+
colorTheme: _constants.DEFAULT_PROPS.colorTheme,
|
|
134
|
+
variant: _constants.DEFAULT_PROPS.variant,
|
|
135
|
+
weight: _constants.DEFAULT_PROPS.weight,
|
|
136
|
+
withMarkdown: _constants.DEFAULT_PROPS.withMarkdown,
|
|
137
|
+
shade: '05'
|
|
138
|
+
},
|
|
139
|
+
name: 'Playground'
|
|
140
|
+
};
|
|
@@ -17,7 +17,7 @@ var _constants = require("./constants");
|
|
|
17
17
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
20
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
20
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
21
21
|
const UTModal = _ref => {
|
|
22
22
|
let {
|
|
23
23
|
cancelAction,
|
|
@@ -91,7 +91,6 @@ const UTPanel = _ref => {
|
|
|
91
91
|
headerContainer: headerContainerClass,
|
|
92
92
|
iconClose: iconCloseClass,
|
|
93
93
|
perfectScrollbar: perfectScrollbarClass,
|
|
94
|
-
title: titleClass,
|
|
95
94
|
...drawerClasses
|
|
96
95
|
} = classes;
|
|
97
96
|
return /*#__PURE__*/_react.default.createElement(_SwipeableDrawer.default, _extends({
|
|
@@ -29,16 +29,9 @@ const InputComponent = _ref => {
|
|
|
29
29
|
} = _ref;
|
|
30
30
|
const {
|
|
31
31
|
InputProps: {
|
|
32
|
-
startAdornment,
|
|
33
|
-
endAdornment,
|
|
34
|
-
className,
|
|
35
32
|
...restInputProps
|
|
36
33
|
},
|
|
37
34
|
inputProps: {
|
|
38
|
-
onBlur: paramsOnBlur,
|
|
39
|
-
onChange: paramsOnChange,
|
|
40
|
-
onFocus: paramsOnFocus,
|
|
41
|
-
value: paramsValue,
|
|
42
35
|
...restInputPropsFromField
|
|
43
36
|
},
|
|
44
37
|
...restParams
|
|
@@ -15,7 +15,7 @@ var _UTIcon = _interopRequireDefault(require("../UTIcon"));
|
|
|
15
15
|
var _constants = require("./constants");
|
|
16
16
|
var _theme = require("./theme");
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
18
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
19
19
|
var CheckIcon = function CheckIcon(props) {
|
|
20
20
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
21
21
|
fillRule: "evenodd",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ArgTypes, Canvas, Description, Meta, Title } from '@storybook/blocks';
|
|
2
|
+
|
|
3
|
+
import * as UTStatusStories from './UTStatus.stories.js';
|
|
4
|
+
|
|
5
|
+
<Meta of={UTStatusStories} />
|
|
6
|
+
|
|
7
|
+
<Title>UTStatus</Title>
|
|
8
|
+
|
|
9
|
+
<Description of={UTStatusStories} />
|
|
10
|
+
|
|
11
|
+
<Canvas of={UTStatusStories.Default} withToolbar />
|
|
12
|
+
|
|
13
|
+
<ArgTypes exclude={['classes', 'title']} />
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Default = void 0;
|
|
7
|
+
var _utils = require("stories/utils");
|
|
8
|
+
var _constants = require("./constants");
|
|
9
|
+
var _ = _interopRequireDefault(require("."));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
var _default = exports.default = {
|
|
12
|
+
args: {
|
|
13
|
+
children: 'Información de estado',
|
|
14
|
+
size: _constants.DEFAULT_PROPS.size,
|
|
15
|
+
type: _constants.DEFAULT_PROPS.type
|
|
16
|
+
},
|
|
17
|
+
argTypes: {
|
|
18
|
+
children: {
|
|
19
|
+
control: 'text',
|
|
20
|
+
description: 'Texto a mostrar en el componente.',
|
|
21
|
+
table: {
|
|
22
|
+
defaultValue: {
|
|
23
|
+
summary: 'undefined'
|
|
24
|
+
},
|
|
25
|
+
type: {
|
|
26
|
+
summary: 'string'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
Icon: {
|
|
31
|
+
control: false,
|
|
32
|
+
description: 'Icono a mostrar en el componente. Sobreescribe el default. Solo se muestra si `withoutIcon` es `false`.',
|
|
33
|
+
table: {
|
|
34
|
+
defaultValue: {
|
|
35
|
+
summary: 'Detalles',
|
|
36
|
+
detail: 'Cada variant tiene su Icon default.'
|
|
37
|
+
},
|
|
38
|
+
type: {
|
|
39
|
+
summary: (0, _utils.joinArgTypes)(['ReactComponent', 'string'])
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
className: {
|
|
44
|
+
control: false,
|
|
45
|
+
description: 'Clase que recibe el contenedor.',
|
|
46
|
+
table: {
|
|
47
|
+
defaultValue: {
|
|
48
|
+
summary: 'undefined'
|
|
49
|
+
},
|
|
50
|
+
type: {
|
|
51
|
+
summary: 'string'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
variant: {
|
|
56
|
+
control: 'select',
|
|
57
|
+
description: 'Determina la variante del componente a usar.',
|
|
58
|
+
options: Object.keys(_constants.VARIANTS),
|
|
59
|
+
table: {
|
|
60
|
+
defaultValue: {
|
|
61
|
+
summary: 'success'
|
|
62
|
+
},
|
|
63
|
+
type: {
|
|
64
|
+
summary: (0, _utils.joinArgTypes)(Object.keys(_constants.VARIANTS))
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
type: {
|
|
69
|
+
control: 'select',
|
|
70
|
+
description: 'Determina el tema a usar.',
|
|
71
|
+
options: Object.keys(_constants.TYPES),
|
|
72
|
+
table: {
|
|
73
|
+
defaultValue: {
|
|
74
|
+
summary: _constants.DEFAULT_PROPS.type
|
|
75
|
+
},
|
|
76
|
+
type: {
|
|
77
|
+
summary: (0, _utils.joinArgTypes)(Object.keys(_constants.TYPES))
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
size: {
|
|
82
|
+
control: 'inline-radio',
|
|
83
|
+
description: 'Determina el tamaño del texto.',
|
|
84
|
+
options: Object.keys(_constants.SIZES),
|
|
85
|
+
table: {
|
|
86
|
+
defaultValue: {
|
|
87
|
+
summary: _constants.DEFAULT_PROPS.size
|
|
88
|
+
},
|
|
89
|
+
type: {
|
|
90
|
+
summary: (0, _utils.joinArgTypes)(Object.keys(_constants.SIZES))
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
withoutIcon: {
|
|
95
|
+
control: 'boolean',
|
|
96
|
+
description: 'Determina si se debe mostrar u ocultar el icono.',
|
|
97
|
+
table: {
|
|
98
|
+
defaultValue: {
|
|
99
|
+
summary: 'false'
|
|
100
|
+
},
|
|
101
|
+
type: {
|
|
102
|
+
summary: 'boolean'
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
component: _.default,
|
|
108
|
+
parameters: {
|
|
109
|
+
controls: {
|
|
110
|
+
exclude: ['classes', 'title']
|
|
111
|
+
},
|
|
112
|
+
docs: {
|
|
113
|
+
description: {
|
|
114
|
+
component: 'Este componente se usa para mostrar estados con o sin iconos asociados.'
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
const Default = exports.Default = {
|
|
120
|
+
args: {
|
|
121
|
+
size: _constants.DEFAULT_PROPS.size,
|
|
122
|
+
type: _constants.DEFAULT_PROPS.type,
|
|
123
|
+
variant: _constants.DEFAULT_PROPS.variant,
|
|
124
|
+
withoutIcon: _constants.DEFAULT_PROPS.withoutIcon
|
|
125
|
+
},
|
|
126
|
+
name: 'Playground'
|
|
127
|
+
};
|
|
@@ -16,7 +16,7 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
|
16
16
|
var _constants = require("./constants");
|
|
17
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
19
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
20
20
|
const ActionIcons = _ref => {
|
|
21
21
|
let {
|
|
22
22
|
classes,
|
|
@@ -100,12 +100,6 @@ class UTTextInput extends _react.PureComponent {
|
|
|
100
100
|
// Deeper analysis should be done when refactoring the component to match
|
|
101
101
|
// design requirements.
|
|
102
102
|
const {
|
|
103
|
-
base,
|
|
104
|
-
selectedOptionsIds,
|
|
105
|
-
retrieveStyle: rs,
|
|
106
|
-
retrieveMuiTheme: rmt,
|
|
107
|
-
Component,
|
|
108
|
-
muiTheme,
|
|
109
103
|
...textFieldPropsToForward
|
|
110
104
|
} = others;
|
|
111
105
|
const endAction = type === _constants.INPUT_TYPES.PASSWORD ? /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
@@ -10,7 +10,7 @@ var _UTRipple = _interopRequireDefault(require("../UTRipple"));
|
|
|
10
10
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
14
14
|
const UTTouchableWithoutFeedback = _ref => {
|
|
15
15
|
let {
|
|
16
16
|
children,
|
|
@@ -7,14 +7,12 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Loading = _interopRequireDefault(require("../Loading"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const WithLoading = (shouldLoad, text, className, size, thickness, textClassName) => WrappedComponent => props => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
: /*#__PURE__*/_react.default.createElement(WrappedComponent, props);
|
|
19
|
-
};
|
|
10
|
+
const WithLoading = (shouldLoad, text, className, size, thickness, textClassName) => WrappedComponent => props => shouldLoad(props) ? /*#__PURE__*/_react.default.createElement(_Loading.default, {
|
|
11
|
+
text: text,
|
|
12
|
+
className: className,
|
|
13
|
+
thickness: thickness,
|
|
14
|
+
size: size,
|
|
15
|
+
textClassName: textClassName
|
|
16
|
+
}) // eslint-disable-line react/prop-types
|
|
17
|
+
: /*#__PURE__*/_react.default.createElement(WrappedComponent, props);
|
|
20
18
|
var _default = exports.default = WithLoading;
|
package/dist/index.js
CHANGED
|
@@ -483,8 +483,8 @@ var _EnergyThemeProvider = _interopRequireDefault(require("./components/EnergyTh
|
|
|
483
483
|
var _keyboardUtils = _interopRequireDefault(require("./utils/keyboardUtils"));
|
|
484
484
|
var _UTActionCard = _interopRequireDefault(require("./components/UTActionCard"));
|
|
485
485
|
var _UTAlert = _interopRequireDefault(require("./components/UTAlert"));
|
|
486
|
-
var _UTAttachment = _interopRequireDefault(require("./components/UTAttachment"));
|
|
487
486
|
var _UTAttachmentList = _interopRequireDefault(require("./components/UTAttachmentList"));
|
|
487
|
+
var _UTAttachment = _interopRequireDefault(require("./components/UTAttachment"));
|
|
488
488
|
var _UTAutocomplete = _interopRequireDefault(require("./components/UTAutocomplete"));
|
|
489
489
|
var _UTAvatar = _interopRequireDefault(require("./components/UTAvatar"));
|
|
490
490
|
var _UTBadge = _interopRequireDefault(require("./components/UTBadge"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widergy/energy-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.96.0",
|
|
4
4
|
"description": "Widergy Web Components",
|
|
5
5
|
"author": "widergy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,9 +20,14 @@
|
|
|
20
20
|
"build": "NODE_ENV=production babel src/lib --out-dir dist --copy-files",
|
|
21
21
|
"sass-lint": "./node_modules/sass-lint/bin/sass-lint.js -v -q",
|
|
22
22
|
"prepublishOnly": "npm run build",
|
|
23
|
-
"dev": "nodemon -e scss,js -x yalc publish --push"
|
|
23
|
+
"dev": "nodemon -e scss,js -x yalc publish --push",
|
|
24
|
+
"storybook": "storybook dev -p 6006",
|
|
25
|
+
"build-storybook": "storybook build",
|
|
26
|
+
"deploy-storybook": "node scripts/deployStorybook.js",
|
|
27
|
+
"aws-configure": "bash scripts/aws-configure.sh"
|
|
24
28
|
},
|
|
25
29
|
"dependencies": {
|
|
30
|
+
"@babel/eslint-parser": "^7.23.10",
|
|
26
31
|
"@date-io/dayjs": "1.x",
|
|
27
32
|
"@material-ui/core": "^4.4.0",
|
|
28
33
|
"@material-ui/icons": "^3.0.1",
|
|
@@ -69,26 +74,37 @@
|
|
|
69
74
|
"@babel/preset-react": "^7.0.0",
|
|
70
75
|
"@commitlint/cli": "^17.7.1",
|
|
71
76
|
"@commitlint/config-conventional": "^17.7.0",
|
|
77
|
+
"@storybook/addon-essentials": "^8.0.9",
|
|
78
|
+
"@storybook/addon-interactions": "^8.0.9",
|
|
79
|
+
"@storybook/addon-links": "^8.0.9",
|
|
80
|
+
"@storybook/addon-onboarding": "^8.0.9",
|
|
81
|
+
"@storybook/blocks": "^8.0.9",
|
|
82
|
+
"@storybook/preset-create-react-app": "^8.0.9",
|
|
83
|
+
"@storybook/react": "^8.0.9",
|
|
84
|
+
"@storybook/react-webpack5": "^8.0.9",
|
|
85
|
+
"@storybook/test": "^8.0.9",
|
|
72
86
|
"@widergy/semantic-release-package-config": "^1.0.0",
|
|
73
87
|
"babel-preset-react-app": "^10.0.1",
|
|
74
88
|
"cross-env": "^7.0.3",
|
|
75
89
|
"eslint-config-airbnb": "^19.0.4",
|
|
76
|
-
"eslint-config-prettier": "^
|
|
90
|
+
"eslint-config-prettier": "^10.1.8",
|
|
77
91
|
"eslint-plugin-flowtype": "^8.0.3",
|
|
78
|
-
"eslint-plugin-import": "^2.
|
|
92
|
+
"eslint-plugin-import": "^2.32.0",
|
|
79
93
|
"eslint-plugin-jsx-a11y": "^6.1.1",
|
|
80
94
|
"eslint-plugin-prettier": "^5.0.0",
|
|
81
95
|
"eslint-plugin-react": "^7.11.0",
|
|
82
96
|
"gh-pages": "^6.0.0",
|
|
83
97
|
"husky": "^8.0.0",
|
|
84
|
-
"prettier": "^3.
|
|
98
|
+
"prettier": "^3.6.2",
|
|
85
99
|
"prettier-eslint": "^15.0.1",
|
|
86
100
|
"prop-types": ">=15.5.10",
|
|
87
101
|
"react": "^18.2.0",
|
|
88
102
|
"react-dom": "^18.2.0",
|
|
89
|
-
"react-scripts": "^
|
|
103
|
+
"react-scripts": "^5.0.1",
|
|
90
104
|
"sass-lint": "^1.12.1",
|
|
91
|
-
"semantic-release": "^15.13.31"
|
|
105
|
+
"semantic-release": "^15.13.31",
|
|
106
|
+
"storybook": "^8.0.9",
|
|
107
|
+
"webpack": "^5.90.1"
|
|
92
108
|
},
|
|
93
109
|
"release": {
|
|
94
110
|
"extends": "@widergy/semantic-release-package-config"
|