@widergy/energy-ui 3.164.0 → 3.165.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 +15 -4
- package/dist/components/UTAlert/README.md +100 -0
- package/dist/components/UTAlert/stories/UTAlert.stories.js +239 -0
- package/dist/components/UTAlert/stories/storiesConstants.js +107 -0
- package/dist/components/UTBanner/index.js +11 -5
- package/dist/components/UTBanner/stories/UTBanner.stories.js +8 -0
- package/dist/components/UTBaseInputField/UTBaseInputField.stories.js +393 -0
- package/dist/components/UTSnackbar/README.md +105 -0
- package/dist/components/UTSnackbar/constants.js +134 -0
- package/dist/components/UTSnackbar/index.js +134 -0
- package/dist/components/UTSnackbar/stories/UTSnackbar.stories.js +350 -0
- package/dist/components/UTSnackbar/stories/storiesConstants.js +169 -0
- package/dist/components/UTSnackbar/styles.module.scss +82 -0
- package/dist/components/UTSnackbar/theme.js +57 -0
- package/dist/components/UTSnackbar/types.js +20 -0
- package/dist/components/UTSnackbar/utils.js +53 -0
- package/dist/components/UTTextArea/UTTextArea.stories.js +342 -0
- package/dist/components/UTTextInput/UTTextInput.stories.js +439 -0
- package/dist/constants/testIds.js +9 -0
- package/dist/esm/components/UTAlert/README.md +100 -0
- package/dist/esm/components/UTAlert/stories/UTAlert.stories.js +231 -0
- package/dist/esm/components/UTAlert/stories/storiesConstants.js +101 -0
- package/dist/esm/components/UTBanner/index.js +11 -5
- package/dist/esm/components/UTBanner/stories/UTBanner.stories.js +8 -0
- package/dist/esm/components/UTBaseInputField/UTBaseInputField.stories.js +385 -0
- package/dist/esm/components/UTSnackbar/README.md +105 -0
- package/dist/esm/components/UTSnackbar/constants.js +128 -0
- package/dist/esm/components/UTSnackbar/index.js +127 -0
- package/dist/esm/components/UTSnackbar/stories/UTSnackbar.stories.js +342 -0
- package/dist/esm/components/UTSnackbar/stories/storiesConstants.js +163 -0
- package/dist/esm/components/UTSnackbar/styles.module.scss +82 -0
- package/dist/esm/components/UTSnackbar/theme.js +50 -0
- package/dist/esm/components/UTSnackbar/types.js +14 -0
- package/dist/esm/components/UTSnackbar/utils.js +46 -0
- package/dist/esm/components/UTTextArea/UTTextArea.stories.js +334 -0
- package/dist/esm/components/UTTextInput/UTTextInput.stories.js +431 -0
- package/dist/esm/constants/testIds.js +9 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/utils/hooks/useCSSVariables/constants.js +9 -0
- package/dist/index.js +7 -0
- package/dist/utils/hooks/useCSSVariables/constants.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import Search from '@material-ui/icons/Search';
|
|
4
|
+
import Lock from '@material-ui/icons/Lock';
|
|
5
|
+
import Visibility from '@material-ui/icons/Visibility';
|
|
6
|
+
import UTTextInput from '.';
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Energy-UI/UTTextInput',
|
|
9
|
+
component: UTTextInput,
|
|
10
|
+
args: {
|
|
11
|
+
version: 'V1',
|
|
12
|
+
placeholder: 'Ingresá un valor...'
|
|
13
|
+
},
|
|
14
|
+
argTypes: {
|
|
15
|
+
version: {
|
|
16
|
+
control: 'select',
|
|
17
|
+
description: 'Versión del componente.',
|
|
18
|
+
options: ['V0', 'V1'],
|
|
19
|
+
table: {
|
|
20
|
+
defaultValue: {
|
|
21
|
+
summary: 'V0'
|
|
22
|
+
},
|
|
23
|
+
type: {
|
|
24
|
+
summary: "'V0' | 'V1'"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
title: {
|
|
29
|
+
control: 'text',
|
|
30
|
+
description: 'Texto del label que aparece sobre el campo.',
|
|
31
|
+
table: {
|
|
32
|
+
defaultValue: {
|
|
33
|
+
summary: 'undefined'
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
summary: 'string'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
placeholder: {
|
|
41
|
+
control: 'text',
|
|
42
|
+
description: 'Texto de placeholder.',
|
|
43
|
+
table: {
|
|
44
|
+
defaultValue: {
|
|
45
|
+
summary: 'undefined'
|
|
46
|
+
},
|
|
47
|
+
type: {
|
|
48
|
+
summary: 'string'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
value: {
|
|
53
|
+
control: 'text',
|
|
54
|
+
description: 'Valor actual del campo.',
|
|
55
|
+
table: {
|
|
56
|
+
defaultValue: {
|
|
57
|
+
summary: 'null'
|
|
58
|
+
},
|
|
59
|
+
type: {
|
|
60
|
+
summary: 'string'
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
onChange: {
|
|
65
|
+
action: 'onChange',
|
|
66
|
+
description: 'Callback al cambiar el valor.',
|
|
67
|
+
table: {
|
|
68
|
+
type: {
|
|
69
|
+
summary: 'func'
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
disabled: {
|
|
74
|
+
control: 'boolean',
|
|
75
|
+
description: 'Deshabilita el campo.',
|
|
76
|
+
table: {
|
|
77
|
+
defaultValue: {
|
|
78
|
+
summary: 'false'
|
|
79
|
+
},
|
|
80
|
+
type: {
|
|
81
|
+
summary: 'bool'
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
readOnly: {
|
|
86
|
+
control: 'boolean',
|
|
87
|
+
description: 'Muestra el valor sin permitir edición.',
|
|
88
|
+
table: {
|
|
89
|
+
defaultValue: {
|
|
90
|
+
summary: 'false'
|
|
91
|
+
},
|
|
92
|
+
type: {
|
|
93
|
+
summary: 'bool'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
required: {
|
|
98
|
+
control: 'boolean',
|
|
99
|
+
description: 'Muestra el indicador `*` junto al label.',
|
|
100
|
+
table: {
|
|
101
|
+
defaultValue: {
|
|
102
|
+
summary: 'false'
|
|
103
|
+
},
|
|
104
|
+
type: {
|
|
105
|
+
summary: 'bool'
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
error: {
|
|
110
|
+
control: 'text',
|
|
111
|
+
description: 'Mensaje de error o `true` para mostrar estado de error.',
|
|
112
|
+
table: {
|
|
113
|
+
defaultValue: {
|
|
114
|
+
summary: 'undefined'
|
|
115
|
+
},
|
|
116
|
+
type: {
|
|
117
|
+
summary: 'string | bool'
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
helpText: {
|
|
122
|
+
control: 'text',
|
|
123
|
+
description: 'Texto de ayuda debajo del campo.',
|
|
124
|
+
table: {
|
|
125
|
+
defaultValue: {
|
|
126
|
+
summary: 'undefined'
|
|
127
|
+
},
|
|
128
|
+
type: {
|
|
129
|
+
summary: 'string'
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
maxLength: {
|
|
134
|
+
control: 'number',
|
|
135
|
+
description: 'Límite de caracteres. Si se combina con `showCharacterCount`, muestra el contador.',
|
|
136
|
+
table: {
|
|
137
|
+
defaultValue: {
|
|
138
|
+
summary: 'undefined'
|
|
139
|
+
},
|
|
140
|
+
type: {
|
|
141
|
+
summary: 'number'
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
showCharacterCount: {
|
|
146
|
+
control: 'boolean',
|
|
147
|
+
description: 'Muestra el contador de caracteres (requiere `maxLength`).',
|
|
148
|
+
table: {
|
|
149
|
+
defaultValue: {
|
|
150
|
+
summary: 'false'
|
|
151
|
+
},
|
|
152
|
+
type: {
|
|
153
|
+
summary: 'bool'
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
inputSize: {
|
|
158
|
+
control: 'select',
|
|
159
|
+
description: 'Tamaño del campo. Afecta el padding interno.',
|
|
160
|
+
options: ['medium', 'small'],
|
|
161
|
+
table: {
|
|
162
|
+
defaultValue: {
|
|
163
|
+
summary: 'medium'
|
|
164
|
+
},
|
|
165
|
+
type: {
|
|
166
|
+
summary: "'medium' | 'small'"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
titleVariant: {
|
|
171
|
+
control: 'select',
|
|
172
|
+
description: 'Tamaño del label.',
|
|
173
|
+
options: ['large', 'small'],
|
|
174
|
+
table: {
|
|
175
|
+
defaultValue: {
|
|
176
|
+
summary: 'large'
|
|
177
|
+
},
|
|
178
|
+
type: {
|
|
179
|
+
summary: "'large' | 'small'"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
prefix: {
|
|
184
|
+
control: 'text',
|
|
185
|
+
description: 'Texto prefijo dentro del campo (ej: `$`, `+54`).',
|
|
186
|
+
table: {
|
|
187
|
+
defaultValue: {
|
|
188
|
+
summary: 'undefined'
|
|
189
|
+
},
|
|
190
|
+
type: {
|
|
191
|
+
summary: 'string'
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
suffix: {
|
|
196
|
+
control: 'text',
|
|
197
|
+
description: 'Texto sufijo dentro del campo (ej: `kg`, `m²`).',
|
|
198
|
+
table: {
|
|
199
|
+
defaultValue: {
|
|
200
|
+
summary: 'undefined'
|
|
201
|
+
},
|
|
202
|
+
type: {
|
|
203
|
+
summary: 'string'
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
tooltip: {
|
|
208
|
+
control: 'text',
|
|
209
|
+
description: 'Tooltip de ayuda sobre el ícono de información.',
|
|
210
|
+
table: {
|
|
211
|
+
defaultValue: {
|
|
212
|
+
summary: 'undefined'
|
|
213
|
+
},
|
|
214
|
+
type: {
|
|
215
|
+
summary: 'string'
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
type: {
|
|
220
|
+
control: 'select',
|
|
221
|
+
description: 'Tipo de input HTML. `numeric` filtra solo números.',
|
|
222
|
+
options: ['text', 'password', 'email', 'numeric'],
|
|
223
|
+
table: {
|
|
224
|
+
defaultValue: {
|
|
225
|
+
summary: 'text'
|
|
226
|
+
},
|
|
227
|
+
type: {
|
|
228
|
+
summary: 'string'
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
LeftIcon: {
|
|
233
|
+
control: false,
|
|
234
|
+
description: 'Componente ícono que se muestra a la izquierda.',
|
|
235
|
+
table: {
|
|
236
|
+
defaultValue: {
|
|
237
|
+
summary: 'undefined'
|
|
238
|
+
},
|
|
239
|
+
type: {
|
|
240
|
+
summary: 'elementType'
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
RightIcon: {
|
|
245
|
+
control: false,
|
|
246
|
+
description: 'Componente ícono que se muestra a la derecha.',
|
|
247
|
+
table: {
|
|
248
|
+
defaultValue: {
|
|
249
|
+
summary: 'undefined'
|
|
250
|
+
},
|
|
251
|
+
type: {
|
|
252
|
+
summary: 'elementType'
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
parameters: {
|
|
258
|
+
docs: {
|
|
259
|
+
description: {
|
|
260
|
+
component: 'UTTextInput es el campo de texto estándar del design system. V1 combina UTFieldLabel + UTBaseInputField con soporte completo para adornos, validaciones y tokens de diseño.'
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
const Stateful = args => {
|
|
266
|
+
var _args$value;
|
|
267
|
+
const [value, setValue] = useState((_args$value = args.value) !== null && _args$value !== void 0 ? _args$value : '');
|
|
268
|
+
return /*#__PURE__*/React.createElement(UTTextInput, _extends({}, args, {
|
|
269
|
+
value: value,
|
|
270
|
+
onChange: setValue
|
|
271
|
+
}));
|
|
272
|
+
};
|
|
273
|
+
export const Playground = {
|
|
274
|
+
render: args => /*#__PURE__*/React.createElement(Stateful, args),
|
|
275
|
+
args: {
|
|
276
|
+
title: 'Email',
|
|
277
|
+
placeholder: 'usuario@empresa.com',
|
|
278
|
+
version: 'V1'
|
|
279
|
+
},
|
|
280
|
+
name: 'Playground'
|
|
281
|
+
};
|
|
282
|
+
export const Default = {
|
|
283
|
+
args: {
|
|
284
|
+
placeholder: 'Ingresá un valor...',
|
|
285
|
+
version: 'V1'
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
export const ConTitulo = {
|
|
289
|
+
args: {
|
|
290
|
+
title: 'Nombre completo',
|
|
291
|
+
placeholder: 'Ej: Juan Pérez',
|
|
292
|
+
version: 'V1'
|
|
293
|
+
},
|
|
294
|
+
name: 'Con título'
|
|
295
|
+
};
|
|
296
|
+
export const Requerido = {
|
|
297
|
+
args: {
|
|
298
|
+
title: 'Email',
|
|
299
|
+
placeholder: 'usuario@empresa.com',
|
|
300
|
+
required: true,
|
|
301
|
+
version: 'V1'
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
export const ConError = {
|
|
305
|
+
args: {
|
|
306
|
+
title: 'Email',
|
|
307
|
+
value: 'correo-invalido',
|
|
308
|
+
error: 'El formato del email no es válido.',
|
|
309
|
+
version: 'V1'
|
|
310
|
+
},
|
|
311
|
+
name: 'Con error'
|
|
312
|
+
};
|
|
313
|
+
export const Deshabilitado = {
|
|
314
|
+
args: {
|
|
315
|
+
title: 'Email',
|
|
316
|
+
placeholder: 'Campo deshabilitado',
|
|
317
|
+
disabled: true,
|
|
318
|
+
version: 'V1'
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
export const SoloLectura = {
|
|
322
|
+
args: {
|
|
323
|
+
title: 'Email',
|
|
324
|
+
value: 'usuario@empresa.com',
|
|
325
|
+
readOnly: true,
|
|
326
|
+
version: 'V1'
|
|
327
|
+
},
|
|
328
|
+
name: 'Solo lectura'
|
|
329
|
+
};
|
|
330
|
+
export const ConTextoDeAyuda = {
|
|
331
|
+
args: {
|
|
332
|
+
title: 'Contraseña',
|
|
333
|
+
placeholder: 'Mínimo 8 caracteres',
|
|
334
|
+
helpText: 'Usá mayúsculas, minúsculas y al menos un número.',
|
|
335
|
+
version: 'V1'
|
|
336
|
+
},
|
|
337
|
+
name: 'Con texto de ayuda'
|
|
338
|
+
};
|
|
339
|
+
export const ConContadorDeCaracteres = {
|
|
340
|
+
render: args => /*#__PURE__*/React.createElement(Stateful, args),
|
|
341
|
+
args: {
|
|
342
|
+
title: 'Nombre',
|
|
343
|
+
placeholder: 'Ingresá tu nombre',
|
|
344
|
+
maxLength: 50,
|
|
345
|
+
showCharacterCount: true,
|
|
346
|
+
version: 'V1'
|
|
347
|
+
},
|
|
348
|
+
name: 'Con contador de caracteres'
|
|
349
|
+
};
|
|
350
|
+
export const ConPrefix = {
|
|
351
|
+
render: args => /*#__PURE__*/React.createElement(Stateful, args),
|
|
352
|
+
args: {
|
|
353
|
+
title: 'Monto',
|
|
354
|
+
placeholder: '0,00',
|
|
355
|
+
prefix: '$',
|
|
356
|
+
version: 'V1'
|
|
357
|
+
},
|
|
358
|
+
name: 'Con prefijo'
|
|
359
|
+
};
|
|
360
|
+
export const ConSuffix = {
|
|
361
|
+
render: args => /*#__PURE__*/React.createElement(Stateful, args),
|
|
362
|
+
args: {
|
|
363
|
+
title: 'Peso',
|
|
364
|
+
placeholder: '0',
|
|
365
|
+
suffix: 'kg',
|
|
366
|
+
version: 'V1'
|
|
367
|
+
},
|
|
368
|
+
name: 'Con sufijo'
|
|
369
|
+
};
|
|
370
|
+
export const ConIconoIzquierdo = {
|
|
371
|
+
render: args => /*#__PURE__*/React.createElement(Stateful, args),
|
|
372
|
+
args: {
|
|
373
|
+
title: 'Búsqueda',
|
|
374
|
+
placeholder: 'Buscá...',
|
|
375
|
+
LeftIcon: Search,
|
|
376
|
+
version: 'V1'
|
|
377
|
+
},
|
|
378
|
+
name: 'Con ícono izquierdo'
|
|
379
|
+
};
|
|
380
|
+
export const ConIconoDerecho = {
|
|
381
|
+
render: args => /*#__PURE__*/React.createElement(Stateful, args),
|
|
382
|
+
args: {
|
|
383
|
+
title: 'Contraseña',
|
|
384
|
+
placeholder: '••••••••',
|
|
385
|
+
type: 'password',
|
|
386
|
+
RightIcon: Visibility,
|
|
387
|
+
version: 'V1'
|
|
388
|
+
},
|
|
389
|
+
name: 'Con ícono derecho'
|
|
390
|
+
};
|
|
391
|
+
export const ConTooltip = {
|
|
392
|
+
args: {
|
|
393
|
+
title: 'CUIT',
|
|
394
|
+
placeholder: '20-12345678-9',
|
|
395
|
+
tooltip: 'Ingresá tu CUIT sin guiones. Se validará el formato automáticamente.',
|
|
396
|
+
version: 'V1'
|
|
397
|
+
},
|
|
398
|
+
name: 'Con tooltip'
|
|
399
|
+
};
|
|
400
|
+
export const Pequeno = {
|
|
401
|
+
render: args => /*#__PURE__*/React.createElement(Stateful, args),
|
|
402
|
+
args: {
|
|
403
|
+
title: 'Código',
|
|
404
|
+
placeholder: 'ABC-123',
|
|
405
|
+
inputSize: 'small',
|
|
406
|
+
titleVariant: 'small',
|
|
407
|
+
version: 'V1'
|
|
408
|
+
},
|
|
409
|
+
name: 'Pequeño'
|
|
410
|
+
};
|
|
411
|
+
export const Contrasena = {
|
|
412
|
+
render: args => /*#__PURE__*/React.createElement(Stateful, args),
|
|
413
|
+
args: {
|
|
414
|
+
title: 'Contraseña',
|
|
415
|
+
placeholder: 'Ingresá tu contraseña',
|
|
416
|
+
type: 'password',
|
|
417
|
+
RightIcon: Lock,
|
|
418
|
+
version: 'V1'
|
|
419
|
+
},
|
|
420
|
+
name: 'Contraseña'
|
|
421
|
+
};
|
|
422
|
+
export const SoloNumeros = {
|
|
423
|
+
render: args => /*#__PURE__*/React.createElement(Stateful, args),
|
|
424
|
+
args: {
|
|
425
|
+
title: 'Número de teléfono',
|
|
426
|
+
placeholder: '11 1234-5678',
|
|
427
|
+
type: 'numeric',
|
|
428
|
+
version: 'V1'
|
|
429
|
+
},
|
|
430
|
+
name: 'Solo números'
|
|
431
|
+
};
|
|
@@ -59,6 +59,7 @@ export const ID_CONSTANTS = {
|
|
|
59
59
|
TABLE_ROW: 'tableRow',
|
|
60
60
|
TITLE: 'title',
|
|
61
61
|
USER_FILTER: 'userFilter',
|
|
62
|
+
UT_SNACKBAR: 'UTSnackbar',
|
|
62
63
|
VALIDATION_DATA: 'validationData',
|
|
63
64
|
WORKFLOW_CONTAINER: 'workflowContainer'
|
|
64
65
|
};
|
|
@@ -162,6 +163,14 @@ export const TEST_IDS = {
|
|
|
162
163
|
wrapperObservation: {
|
|
163
164
|
actionIcon: 'wrapperObservation.actionIcon.'
|
|
164
165
|
},
|
|
166
|
+
UTSnackbar: {
|
|
167
|
+
closeButton: "".concat(ID_CONSTANTS.UT_SNACKBAR, ".closeButton"),
|
|
168
|
+
description: "".concat(ID_CONSTANTS.UT_SNACKBAR, ".description"),
|
|
169
|
+
label: "".concat(ID_CONSTANTS.UT_SNACKBAR, ".label"),
|
|
170
|
+
primaryActionButton: "".concat(ID_CONSTANTS.UT_SNACKBAR, ".primaryActionButton"),
|
|
171
|
+
root: "".concat(ID_CONSTANTS.UT_SNACKBAR, ".root"),
|
|
172
|
+
secondaryActionButton: "".concat(ID_CONSTANTS.UT_SNACKBAR, ".secondaryActionButton")
|
|
173
|
+
},
|
|
165
174
|
UTDatePickerV1TestID: {
|
|
166
175
|
calendar: 'UTDatePickerV1.calendar',
|
|
167
176
|
calendarPrevBtn: 'UTDatePickerV1.calendarPrevBtn',
|
package/dist/esm/index.js
CHANGED
|
@@ -64,6 +64,7 @@ import UTSelectableCard from './components/UTSelectableCard';
|
|
|
64
64
|
import UTSidebar from './components/UTSidebar';
|
|
65
65
|
import UTSignature from './components/UTSignature';
|
|
66
66
|
import Skeleton from './components/UTSkeleton';
|
|
67
|
+
import UTSnackbar from './components/UTSnackbar';
|
|
67
68
|
import UTStatus from './components/UTStatus';
|
|
68
69
|
import UTStatusMessage from './components/UTStatusMessage';
|
|
69
70
|
import UTSwitch from './components/UTSwitch';
|
|
@@ -107,4 +108,4 @@ export { UTList };
|
|
|
107
108
|
export { UTPieChart };
|
|
108
109
|
/** @deprecated */
|
|
109
110
|
export { UTToggle };
|
|
110
|
-
export { AlertHandler, componentUtils, ThemeProvider as EnergyThemeProvider, keyboardUtils, stylesDeduplicationUtils, useCSSVariables, UTCalendar, UTActionCard, UTAlert, UTAttachmentList, UTAvatar, UTBadge, UTBanner, UTBreadcrumbs, UTButton, UTButtonGroup, UTCaptcha, UTCarousel, UTCBUInput, UTCheckbox, UTCheckList, UTChip, UTConsumptionBar, UTCreditCard, UTCuit, UTDataCategory, UTDataElement, UTDatePicker, UTDocumentWizard, UTDotMenu, UTEmojiPicker, UTExternalLink, UTFileInputContainer as UTFileInput, UTShortcutPanel, UTGoogleAutocomplete, UTGraph, UTIcon, UTImageRadio, UTKpi, UTLabel, UTLoading, UTMap, UTMenu, UTModal, UTOnboarding, UTPagination, UTPanel, UTPasswordField, UTPhoneInput, UTPopper, UTPopUp, UTProductItem, UTProgressBar, UTRadioGroup, UTRatingContainer as UTRating, UTSearchField, UTSelect, UTSelectableCard, UTSidebar, UTSignature, Skeleton as UTSkeleton, UTStatus, UTStatusMessage, UTSwitch, UTTable, UTTabs, UTTextArea, UTTextInput, UTThirdPartyCookieChecker, UTTooltip, UTTopbar, UTTouchableWithoutFeedback, UTTracker, UTValidation, UTVirtualizedList, UTVirtualKeyboard, UTWorkflowContainer, UTWrapperObservation, WithLoading, WithTouch, useScrollBasedMenu };
|
|
111
|
+
export { AlertHandler, componentUtils, ThemeProvider as EnergyThemeProvider, keyboardUtils, stylesDeduplicationUtils, useCSSVariables, UTCalendar, UTActionCard, UTAlert, UTAttachmentList, UTAvatar, UTBadge, UTBanner, UTBreadcrumbs, UTButton, UTButtonGroup, UTCaptcha, UTCarousel, UTCBUInput, UTCheckbox, UTCheckList, UTChip, UTConsumptionBar, UTCreditCard, UTCuit, UTDataCategory, UTDataElement, UTDatePicker, UTDocumentWizard, UTDotMenu, UTEmojiPicker, UTExternalLink, UTFileInputContainer as UTFileInput, UTShortcutPanel, UTGoogleAutocomplete, UTGraph, UTIcon, UTImageRadio, UTKpi, UTLabel, UTLoading, UTMap, UTMenu, UTModal, UTOnboarding, UTPagination, UTPanel, UTPasswordField, UTPhoneInput, UTPopper, UTPopUp, UTProductItem, UTProgressBar, UTRadioGroup, UTRatingContainer as UTRating, UTSearchField, UTSelect, UTSelectableCard, UTSidebar, UTSignature, Skeleton as UTSkeleton, UTSnackbar, UTStatus, UTStatusMessage, UTSwitch, UTTable, UTTabs, UTTextArea, UTTextInput, UTThirdPartyCookieChecker, UTTooltip, UTTopbar, UTTouchableWithoutFeedback, UTTracker, UTValidation, UTVirtualizedList, UTVirtualKeyboard, UTWorkflowContainer, UTWrapperObservation, WithLoading, WithTouch, useScrollBasedMenu };
|
|
@@ -238,6 +238,15 @@ export const baseTokens = {
|
|
|
238
238
|
'UT-shortcutPanel-item-gap': 'gap-sm',
|
|
239
239
|
'UT-shortcutPanel-item-label-size': 'font-body-size-md',
|
|
240
240
|
'UT-shortcutPanel-item-icon-size': 'size-icon-xs',
|
|
241
|
+
'UT-snackbar-padding-x': 'padding-sm',
|
|
242
|
+
'UT-snackbar-padding-y': 'padding-sm',
|
|
243
|
+
'UT-snackbar-radius': 'radius-sm',
|
|
244
|
+
'UT-snackbar-gap-icon': 'gap-sm',
|
|
245
|
+
'UT-snackbar-gap-description': 'gap-xs',
|
|
246
|
+
'UT-snackbar-gap-actions': 'gap-xs',
|
|
247
|
+
'UT-snackbar-gap-action-area': 'gap-md',
|
|
248
|
+
'UT-snackbar-icon-size': 'size-icon-xs',
|
|
249
|
+
'UT-snackbar-icon-offset': 'spacing-1',
|
|
241
250
|
'UT-dataElement-padding-md': 'padding-md',
|
|
242
251
|
'UT-dataElement-padding-sm': 'padding-xs',
|
|
243
252
|
'UT-dataElement-gap-md': 'gap-lg',
|
package/dist/index.js
CHANGED
|
@@ -393,6 +393,12 @@ Object.defineProperty(exports, "UTSkeleton", {
|
|
|
393
393
|
return _UTSkeleton.default;
|
|
394
394
|
}
|
|
395
395
|
});
|
|
396
|
+
Object.defineProperty(exports, "UTSnackbar", {
|
|
397
|
+
enumerable: true,
|
|
398
|
+
get: function () {
|
|
399
|
+
return _UTSnackbar.default;
|
|
400
|
+
}
|
|
401
|
+
});
|
|
396
402
|
Object.defineProperty(exports, "UTStatus", {
|
|
397
403
|
enumerable: true,
|
|
398
404
|
get: function () {
|
|
@@ -609,6 +615,7 @@ var _UTSelectableCard = _interopRequireDefault(require("./components/UTSelectabl
|
|
|
609
615
|
var _UTSidebar = _interopRequireDefault(require("./components/UTSidebar"));
|
|
610
616
|
var _UTSignature = _interopRequireDefault(require("./components/UTSignature"));
|
|
611
617
|
var _UTSkeleton = _interopRequireDefault(require("./components/UTSkeleton"));
|
|
618
|
+
var _UTSnackbar = _interopRequireDefault(require("./components/UTSnackbar"));
|
|
612
619
|
var _UTStatus = _interopRequireDefault(require("./components/UTStatus"));
|
|
613
620
|
var _UTStatusMessage = _interopRequireDefault(require("./components/UTStatusMessage"));
|
|
614
621
|
var _UTSwitch = _interopRequireDefault(require("./components/UTSwitch"));
|
|
@@ -244,6 +244,15 @@ const baseTokens = exports.baseTokens = {
|
|
|
244
244
|
'UT-shortcutPanel-item-gap': 'gap-sm',
|
|
245
245
|
'UT-shortcutPanel-item-label-size': 'font-body-size-md',
|
|
246
246
|
'UT-shortcutPanel-item-icon-size': 'size-icon-xs',
|
|
247
|
+
'UT-snackbar-padding-x': 'padding-sm',
|
|
248
|
+
'UT-snackbar-padding-y': 'padding-sm',
|
|
249
|
+
'UT-snackbar-radius': 'radius-sm',
|
|
250
|
+
'UT-snackbar-gap-icon': 'gap-sm',
|
|
251
|
+
'UT-snackbar-gap-description': 'gap-xs',
|
|
252
|
+
'UT-snackbar-gap-actions': 'gap-xs',
|
|
253
|
+
'UT-snackbar-gap-action-area': 'gap-md',
|
|
254
|
+
'UT-snackbar-icon-size': 'size-icon-xs',
|
|
255
|
+
'UT-snackbar-icon-offset': 'spacing-1',
|
|
247
256
|
'UT-dataElement-padding-md': 'padding-md',
|
|
248
257
|
'UT-dataElement-padding-sm': 'padding-xs',
|
|
249
258
|
'UT-dataElement-gap-md': 'gap-lg',
|