@widergy/energy-ui 3.160.1 → 3.162.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +16 -3
  2. package/dist/components/UTBanner/README.md +41 -8
  3. package/dist/components/UTBanner/constants.js +36 -0
  4. package/dist/components/UTBanner/index.js +118 -15
  5. package/dist/components/UTBanner/stories/UTBanner.stories.js +164 -0
  6. package/dist/components/UTBanner/styles.module.scss +149 -5
  7. package/dist/components/UTBanner/types.js +20 -0
  8. package/dist/components/UTBanner/utils.js +148 -0
  9. package/dist/components/UTGraph/index.js +1 -1
  10. package/dist/components/UTHeader/index.js +3 -2
  11. package/dist/components/UTShortcutPanel/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryItem/index.js +8 -3
  12. package/dist/components/UTShortcutPanel/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryItem/layout.js +33 -3
  13. package/dist/components/UTShortcutPanel/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentHeader/index.js +4 -0
  14. package/dist/components/UTShortcutPanel/index.js +33 -4
  15. package/dist/components/UTShortcutPanel/stories/UTShortcutPanel.stories.js +39 -0
  16. package/dist/components/UTShortcutPanel/stories/constants.json +2 -0
  17. package/dist/components/UTShortcutPanel/stories/props.schema.json +10 -1
  18. package/dist/components/UTShortcutPanel/styles.module.scss +11 -3
  19. package/dist/constants/testIds.js +3 -0
  20. package/dist/esm/components/UTBanner/README.md +41 -8
  21. package/dist/esm/components/UTBanner/constants.js +30 -0
  22. package/dist/esm/components/UTBanner/index.js +120 -16
  23. package/dist/esm/components/UTBanner/stories/UTBanner.stories.js +157 -0
  24. package/dist/esm/components/UTBanner/styles.module.scss +149 -5
  25. package/dist/esm/components/UTBanner/types.js +14 -0
  26. package/dist/esm/components/UTBanner/utils.js +137 -0
  27. package/dist/esm/components/UTGraph/index.js +2 -2
  28. package/dist/esm/components/UTHeader/index.js +3 -2
  29. package/dist/esm/components/UTShortcutPanel/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryItem/index.js +7 -2
  30. package/dist/esm/components/UTShortcutPanel/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryItem/layout.js +34 -4
  31. package/dist/esm/components/UTShortcutPanel/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentHeader/index.js +5 -1
  32. package/dist/esm/components/UTShortcutPanel/index.js +33 -4
  33. package/dist/esm/components/UTShortcutPanel/stories/UTShortcutPanel.stories.js +39 -0
  34. package/dist/esm/components/UTShortcutPanel/stories/constants.json +2 -0
  35. package/dist/esm/components/UTShortcutPanel/stories/props.schema.json +10 -1
  36. package/dist/esm/components/UTShortcutPanel/styles.module.scss +11 -3
  37. package/dist/esm/constants/testIds.js +3 -0
  38. package/dist/esm/index.js +2 -1
  39. package/dist/esm/utils/hooks/useCSSVariables/constants.js +13 -0
  40. package/dist/index.js +7 -0
  41. package/dist/utils/hooks/useCSSVariables/constants.js +13 -0
  42. package/package.json +1 -1
  43. package/dist/components/UTBanner/theme.js +0 -18
  44. package/dist/esm/components/UTBanner/theme.js +0 -11
@@ -1,4 +1,3 @@
1
- import isEqual from 'lodash/isEqual';
2
1
  import React, { useContext, useRef } from 'react';
3
2
  import { object, string } from 'prop-types';
4
3
  import UTShortcutPanelContext from '../../../../../../../../context';
@@ -14,11 +13,13 @@ const ExpandedPanelContentCategoryItemContainer = _ref => {
14
13
  classes,
15
14
  closePopper,
16
15
  handleSelectFilter,
16
+ invalidParamsConfig,
17
17
  onDeleteFilterGrouping,
18
18
  onEditFilterGrouping,
19
19
  openPopper,
20
20
  position,
21
21
  selectedFilter,
22
+ showActionsOnPinned,
22
23
  tooltipsContentMap: {
23
24
  editButton,
24
25
  deleteButton
@@ -26,10 +27,12 @@ const ExpandedPanelContentCategoryItemContainer = _ref => {
26
27
  } = useContext(UTShortcutPanelContext);
27
28
  const {
28
29
  description,
30
+ hasInvalidParams,
29
31
  name,
30
32
  pinned,
31
33
  category
32
34
  } = filter;
35
+ const resolvedHasInvalidParams = hasInvalidParams ? invalidParamsConfig !== null && invalidParamsConfig !== void 0 ? invalidParamsConfig : true : false;
33
36
  const id = "".concat(name === null || name === void 0 || (_name$toLowerCase = name.toLowerCase) === null || _name$toLowerCase === void 0 || (_name$toLowerCase = _name$toLowerCase.call(name)) === null || _name$toLowerCase === void 0 || (_name$toLowerCase$spl = _name$toLowerCase.split) === null || _name$toLowerCase$spl === void 0 || (_name$toLowerCase$spl = _name$toLowerCase$spl.call(_name$toLowerCase, ' ')) === null || _name$toLowerCase$spl === void 0 || (_name$toLowerCase$spl2 = _name$toLowerCase$spl.join) === null || _name$toLowerCase$spl2 === void 0 ? void 0 : _name$toLowerCase$spl2.call(_name$toLowerCase$spl, '_'), "_").concat(category);
34
37
  const deleteButtonTippyRef = useRef(null);
35
38
  const editButtonTippyRef = useRef(null);
@@ -57,12 +60,14 @@ const ExpandedPanelContentCategoryItemContainer = _ref => {
57
60
  handleDeleteFilterGrouping: onDeleteFilterGrouping ? () => onDeleteFilterGrouping(filter) : undefined,
58
61
  handleEditFilterGrouping: onEditFilterGrouping ? () => onEditFilterGrouping(filter) : undefined,
59
62
  handleSelectFilter: handleSelectFilters,
63
+ hasInvalidParams: resolvedHasInvalidParams,
60
64
  id: id,
61
65
  name: name,
62
66
  openItemDescription: handleOpenItemDescription,
63
67
  pinned: pinned,
64
68
  position: position,
65
- selected: isEqual(selectedFilter, filter)
69
+ showActionsOnPinned: showActionsOnPinned,
70
+ selected: (selectedFilter === null || selectedFilter === void 0 ? void 0 : selectedFilter.id) != null && selectedFilter.id === (filter === null || filter === void 0 ? void 0 : filter.id) && selectedFilter.category === (filter === null || filter === void 0 ? void 0 : filter.category)
66
71
  });
67
72
  };
68
73
  ExpandedPanelContentCategoryItemContainer.propTypes = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { bool, func, object, string } from 'prop-types';
2
+ import { bool, func, object, oneOfType, shape, string } from 'prop-types';
3
3
  import UTButton from '../../../../../../../../../UTButton';
4
4
  import UTIcon from '../../../../../../../../../UTIcon';
5
5
  import UTLabel from '../../../../../../../../../UTLabel';
@@ -27,13 +27,19 @@ const ExpandedPanelContentCategoryItem = _ref => {
27
27
  handleDeleteFilterGrouping,
28
28
  handleEditFilterGrouping,
29
29
  handleSelectFilter,
30
+ hasInvalidParams,
30
31
  id,
31
32
  name,
32
33
  openItemDescription,
33
34
  pinned,
34
35
  position,
35
- selected
36
+ selected,
37
+ showActionsOnPinned
36
38
  } = _ref;
39
+ const isInvalidParamsObject = typeof hasInvalidParams === 'object';
40
+ const invalidIconName = (isInvalidParamsObject ? hasInvalidParams === null || hasInvalidParams === void 0 ? void 0 : hasInvalidParams.iconName : null) || 'IconAlertTriangle';
41
+ const invalidIconSize = (isInvalidParamsObject ? hasInvalidParams === null || hasInvalidParams === void 0 ? void 0 : hasInvalidParams.size : null) || '16';
42
+ const invalidTooltipText = isInvalidParamsObject ? hasInvalidParams === null || hasInvalidParams === void 0 ? void 0 : hasInvalidParams.tooltipText : undefined;
37
43
  return /*#__PURE__*/React.createElement("article", {
38
44
  className: "".concat(classes.expandedPanelContentCategoryItem, " ").concat(selected ? classes.expandedPanelContentCategoryItemSelected : ''),
39
45
  id: id
@@ -56,7 +62,25 @@ const ExpandedPanelContentCategoryItem = _ref => {
56
62
  className: classes.expandedPanelContentCategoryItemTitleLabel,
57
63
  colorTheme: selected ? 'accent' : undefined,
58
64
  shade: selected ? '05' : undefined
59
- }, name))), !pinned && (handleEditFilterGrouping || handleDeleteFilterGrouping) && /*#__PURE__*/React.createElement("section", {
65
+ }, name)), hasInvalidParams && (invalidTooltipText ? /*#__PURE__*/React.createElement(UTTooltip, {
66
+ content: invalidTooltipText,
67
+ tippyProps: {
68
+ appendTo: () => document.body,
69
+ placement: 'top'
70
+ }
71
+ }, /*#__PURE__*/React.createElement("span", {
72
+ className: classes.hasInvalidParamsTooltipContainer
73
+ }, /*#__PURE__*/React.createElement(UTIcon, {
74
+ colorTheme: "warning",
75
+ dataTestId: "".concat(dataTestId, ".").concat(ID_CONSTANTS.INVALID_PARAMS),
76
+ name: invalidIconName,
77
+ size: invalidIconSize
78
+ }))) : /*#__PURE__*/React.createElement(UTIcon, {
79
+ colorTheme: "warning",
80
+ dataTestId: "".concat(dataTestId, ".").concat(ID_CONSTANTS.INVALID_PARAMS),
81
+ name: invalidIconName,
82
+ size: invalidIconSize
83
+ }))), (!pinned || showActionsOnPinned) && (handleEditFilterGrouping || handleDeleteFilterGrouping) && /*#__PURE__*/React.createElement("section", {
60
84
  className: classes.expandedPanelContentCategoryItemActionsContainer,
61
85
  onAnimationEnd: animationEnd
62
86
  }, handleEditFilterGrouping && /*#__PURE__*/React.createElement(UTTooltip, {
@@ -111,11 +135,17 @@ ExpandedPanelContentCategoryItem.propTypes = {
111
135
  handleDeleteFilterGrouping: func,
112
136
  handleEditFilterGrouping: func,
113
137
  handleSelectFilter: func,
138
+ hasInvalidParams: oneOfType([bool, shape({
139
+ iconName: string,
140
+ size: string,
141
+ tooltipText: string
142
+ })]),
114
143
  id: string,
115
144
  name: string,
116
145
  openItemDescription: func,
117
146
  pinned: bool,
118
147
  position: string,
119
- selected: bool
148
+ selected: bool,
149
+ showActionsOnPinned: bool
120
150
  };
121
151
  export default ExpandedPanelContentCategoryItem;
@@ -1,4 +1,4 @@
1
- import React, { useContext, useRef, useState } from 'react';
1
+ import React, { useContext, useEffect, useRef, useState } from 'react';
2
2
  import { string } from 'prop-types';
3
3
  import UTShortcutPanelContext from '../../../../../../context';
4
4
  import { handleAnimationEnd } from '../../../../../../utils';
@@ -24,6 +24,7 @@ const ExpandedPanelContentHeaderContainer = _ref => {
24
24
  hideAddFilterButton,
25
25
  panelTitle,
26
26
  position,
27
+ searchResetTrigger,
27
28
  searchValue,
28
29
  tooltipsContentMap: {
29
30
  collapseButton,
@@ -31,6 +32,9 @@ const ExpandedPanelContentHeaderContainer = _ref => {
31
32
  }
32
33
  } = useContext(UTShortcutPanelContext);
33
34
  const [searchOpen, setSearchOpen] = useState(false);
35
+ useEffect(() => {
36
+ if (searchResetTrigger > 0) setSearchOpen(false);
37
+ }, [searchResetTrigger]);
34
38
  const handleSearchToggle = () => {
35
39
  handleFilterGroupSearch('');
36
40
  setSearchOpen(!searchOpen);
@@ -20,6 +20,7 @@ const UTShortcutPanelContainer = _ref => {
20
20
  handleSelectFilter,
21
21
  hideAddFilterButton = false,
22
22
  iconProps,
23
+ invalidParamsConfig,
23
24
  noFiltersText,
24
25
  noFiltersTitle,
25
26
  onDeleteFilterGrouping,
@@ -28,6 +29,8 @@ const UTShortcutPanelContainer = _ref => {
28
29
  panelTitle,
29
30
  position = PANEL_POSITIONS.LEFT,
30
31
  scrollProps,
32
+ searchResetKey,
33
+ showActionsOnPinned = false,
31
34
  selectedFilter,
32
35
  startOpen = false,
33
36
  tooltipsContentMap = {}
@@ -36,6 +39,7 @@ const UTShortcutPanelContainer = _ref => {
36
39
  const containerRef = useRef(null);
37
40
  const [open, setOpen] = useState(startOpen);
38
41
  const [filteredValues, setFilteredValues] = useState(false);
42
+ const [searchTerm, setSearchTerm] = useState('');
39
43
  const handleTogglePanel = () => {
40
44
  setOpen(!open);
41
45
  onTogglePanel === null || onTogglePanel === void 0 || onTogglePanel(!open);
@@ -44,8 +48,8 @@ const UTShortcutPanelContainer = _ref => {
44
48
 
45
49
  // TODO: desarrollo en otro PR
46
50
  const handleAddFilterGroup = () => {};
47
- const handleFilterGroupSearch = value => {
48
- const filteredResults = categories.map(category => {
51
+ const applySearch = (value, source) => {
52
+ const filteredResults = source.map(category => {
49
53
  const filters = category.filters.filter(filter => filter.name.toLowerCase().includes(value.toLowerCase()));
50
54
  return {
51
55
  ...category,
@@ -55,6 +59,10 @@ const UTShortcutPanelContainer = _ref => {
55
59
  setFilteredCategories(filteredResults);
56
60
  setFilteredValues(Boolean(value));
57
61
  };
62
+ const handleFilterGroupSearch = value => {
63
+ setSearchTerm(value);
64
+ applySearch(value, categories);
65
+ };
58
66
  const [popperState, setPopperState] = useState({});
59
67
  const openPopper = _ref2 => {
60
68
  let {
@@ -74,8 +82,19 @@ const UTShortcutPanelContainer = _ref => {
74
82
  setPopperState({});
75
83
  };
76
84
  useEffect(() => {
77
- setFilteredCategories(categories);
85
+ if (searchTerm) {
86
+ applySearch(searchTerm, categories);
87
+ } else {
88
+ setFilteredCategories(categories);
89
+ }
78
90
  }, [categories]);
91
+ const [searchResetTrigger, setSearchResetTrigger] = useState(0);
92
+ useEffect(() => {
93
+ setSearchTerm('');
94
+ setFilteredValues(false);
95
+ setFilteredCategories(categories);
96
+ setSearchResetTrigger(prev => prev + 1);
97
+ }, [searchResetKey]);
79
98
  const contextValue = useMemo(() => ({
80
99
  categories: filteredCategories,
81
100
  categoriesConfig,
@@ -90,6 +109,7 @@ const UTShortcutPanelContainer = _ref => {
90
109
  handleTogglePanel,
91
110
  hideAddFilterButton,
92
111
  iconProps,
112
+ invalidParamsConfig,
93
113
  noFiltersText,
94
114
  noFiltersTitle,
95
115
  onDeleteFilterGrouping,
@@ -100,10 +120,12 @@ const UTShortcutPanelContainer = _ref => {
100
120
  popperState,
101
121
  position,
102
122
  scrollProps,
123
+ searchResetTrigger,
103
124
  selectedFilter,
125
+ showActionsOnPinned,
104
126
  theme,
105
127
  tooltipsContentMap
106
- }), [categories, categoriesConfig, classes, disableCollapsibleCategories, filteredCategories, filteredValues, hideAddFilterButton, iconProps, noFiltersText, noFiltersTitle, onDeleteFilterGrouping, onEditFilterGrouping, open, popperState, position, scrollProps, selectedFilter, theme, tooltipsContentMap]);
128
+ }), [categories, categoriesConfig, classes, disableCollapsibleCategories, filteredCategories, filteredValues, hideAddFilterButton, iconProps, invalidParamsConfig, noFiltersText, noFiltersTitle, onDeleteFilterGrouping, onEditFilterGrouping, showActionsOnPinned, open, popperState, position, scrollProps, searchResetTrigger, selectedFilter, theme, tooltipsContentMap]);
107
129
  return /*#__PURE__*/React.createElement(UTShortcutPanelContext.Provider, {
108
130
  value: contextValue
109
131
  }, /*#__PURE__*/React.createElement("section", {
@@ -153,14 +175,21 @@ UTShortcutPanelContainer.propTypes = {
153
175
  handleSelectFilter: func,
154
176
  hideAddFilterButton: bool,
155
177
  iconProps: iconPropTypes,
178
+ invalidParamsConfig: shape({
179
+ iconName: string,
180
+ size: string,
181
+ tooltipText: string
182
+ }),
156
183
  noFiltersText: string,
157
184
  noFiltersTitle: string,
158
185
  onDeleteFilterGrouping: func,
159
186
  onEditFilterGrouping: func,
160
187
  onTogglePanel: func,
188
+ showActionsOnPinned: bool,
161
189
  panelTitle: string,
162
190
  position: string,
163
191
  scrollProps: object,
192
+ searchResetKey: string,
164
193
  selectedFilter: shape({
165
194
  id: number,
166
195
  name: string,
@@ -24,6 +24,7 @@ export default {
24
24
  handleSelectFilter: fn(),
25
25
  hideAddFilterButton: false,
26
26
  iconProps: undefined,
27
+ invalidParamsConfig: undefined,
27
28
  noFiltersTitle: data.NO_FILTERS_TITLE,
28
29
  noFiltersText: data.NO_FILTERS_TEXT,
29
30
  onDeleteFilterGrouping: fn(),
@@ -31,8 +32,10 @@ export default {
31
32
  onTogglePanel: fn(),
32
33
  panelTitle: data.PANEL_TITLE,
33
34
  position: data.POSITION,
35
+ searchResetKey: undefined,
34
36
  selectedFilter: undefined,
35
37
  scrollProps: undefined,
38
+ showActionsOnPinned: false,
36
39
  startOpen: true,
37
40
  tooltipsContentMap: data.TOOLTIPS_CONTENT_MAP
38
41
  },
@@ -174,6 +177,18 @@ export default {
174
177
  }
175
178
  }
176
179
  },
180
+ invalidParamsConfig: {
181
+ control: 'object',
182
+ description: 'Configuración del ícono de advertencia que se muestra en ítems con `hasInvalidParams: true`. Si se pasa `tooltipText`, el ícono muestra un tooltip al hacer hover. `iconName` e `size` son opcionales (defaults: `IconAlertTriangle`, `16`).',
183
+ table: {
184
+ defaultValue: {
185
+ summary: 'undefined'
186
+ },
187
+ type: {
188
+ summary: '{ iconName?: string; size?: string; tooltipText?: string }'
189
+ }
190
+ }
191
+ },
177
192
  noFiltersTitle: {
178
193
  control: 'text',
179
194
  description: 'Título para el componente de filtros vacíos.',
@@ -271,6 +286,18 @@ export default {
271
286
  }
272
287
  }
273
288
  },
289
+ searchResetKey: {
290
+ control: 'text',
291
+ description: 'Cuando cambia de valor, resetea el estado de búsqueda interna del panel. Útil para limpiar el input al cambiar de tab o categoría.',
292
+ table: {
293
+ defaultValue: {
294
+ summary: 'undefined'
295
+ },
296
+ type: {
297
+ summary: 'string | number'
298
+ }
299
+ }
300
+ },
274
301
  selectedFilter: {
275
302
  control: 'none',
276
303
  description: 'Filtro seleccionado.',
@@ -283,6 +310,18 @@ export default {
283
310
  }
284
311
  }
285
312
  },
313
+ showActionsOnPinned: {
314
+ control: 'boolean',
315
+ description: 'Si es `true`, los botones de editar y eliminar se muestran también en ítems con `pinned: true`. Por defecto son ocultados en filtros pinned.',
316
+ table: {
317
+ defaultValue: {
318
+ summary: 'false'
319
+ },
320
+ type: {
321
+ summary: 'boolean'
322
+ }
323
+ }
324
+ },
286
325
  startOpen: {
287
326
  control: 'boolean',
288
327
  description: 'Indica si el panel se renderiza abierto.',
@@ -107,6 +107,8 @@
107
107
  "name": "Filtro Custom 3",
108
108
  "order": 4,
109
109
  "pinned": false,
110
+ "filter_type": "private",
111
+ "hasInvalidParams": true,
110
112
  "visible": true
111
113
  }
112
114
  ],
@@ -65,7 +65,16 @@
65
65
  },
66
66
  "backoffice_user_id": {
67
67
  "type": ["string", "null"],
68
- "description": "ID of the backoffice user who created this filter, or null for system filters"
68
+ "description": "ID del agente propietario del filtro."
69
+ },
70
+ "filter_type": {
71
+ "type": "string",
72
+ "enum": ["private", "supervisor"],
73
+ "description": "Tipo de filtro: 'private' (solo visible para el creador) o 'supervisor' (visible para todos, implica pinned: true)."
74
+ },
75
+ "hasInvalidParams": {
76
+ "type": "boolean",
77
+ "description": "Cuando es true, el ítem muestra el ícono de advertencia. El ícono, su tamaño y el tooltip se configuran desde la prop invalidParamsConfig del panel (defaults: IconAlertTriangle, size 16, sin tooltip). Se computa en el selector makeSelectFilterCategoriesWithValidation."
69
78
  },
70
79
  "filter_params": {
71
80
  "type": "array",
@@ -11,7 +11,6 @@
11
11
  }
12
12
 
13
13
  %actionsContainer {
14
- animation-fill-mode: forwards;
15
14
  display: none;
16
15
  }
17
16
 
@@ -190,8 +189,12 @@
190
189
  overflow: hidden;
191
190
 
192
191
  .hoverableContainer {
193
- flex-grow: 1;
194
- overflow: hidden;
192
+ flex-grow: 1;
193
+ overflow: hidden;
194
+
195
+ &:first-child {
196
+ padding-left: var(--UT-shortcutPanel-item-no-icon-padding-left, 4px);
197
+ }
195
198
  }
196
199
  }
197
200
 
@@ -203,6 +206,11 @@
203
206
  @extend %actionsContainer;
204
207
  }
205
208
 
209
+ .hasInvalidParamsTooltipContainer {
210
+ align-items: center;
211
+ display: flex;
212
+ }
213
+
206
214
  .expandedPanelContentCategoryItemTitleContainerSelected {
207
215
  cursor: default;
208
216
  }
@@ -34,6 +34,7 @@ export const ID_CONSTANTS = {
34
34
  HEADER: 'header',
35
35
  HELP_TEXT: 'helpText',
36
36
  ICON: 'icon',
37
+ INVALID_PARAMS: 'invalidParams',
37
38
  LABEL: 'label',
38
39
  MAIN_BUTTON: 'mainButton',
39
40
  NAME: 'name',
@@ -46,6 +47,7 @@ export const ID_CONSTANTS = {
46
47
  PINNED: 'pinned',
47
48
  POPPER: 'popper',
48
49
  SEARCH_BUTTON: 'searchButton',
50
+ SECONDARY_ACTION: 'secondaryAction',
49
51
  SEARCH_BUTTON_TOOLTIP: 'searchButtonTooltip',
50
52
  SEARCH_FIELD: 'searchField',
51
53
  SELECTION_COMPONENT: 'selectionComponent',
@@ -53,6 +55,7 @@ export const ID_CONSTANTS = {
53
55
  SIDEBAR_BUTTON: 'sidebarButton',
54
56
  STATUS_MESSAGE: 'statusMessage',
55
57
  TABLE: 'table',
58
+ TERTIARY_ACTION: 'tertiaryAction',
56
59
  TABLE_ROW: 'tableRow',
57
60
  TITLE: 'title',
58
61
  USER_FILTER: 'userFilter',
package/dist/esm/index.js CHANGED
@@ -9,6 +9,7 @@ import AttachmentContainer from './deprecated/UTAttachment';
9
9
  import UTAutocomplete from './deprecated/UTAutocomplete';
10
10
  import UTAvatar from './components/UTAvatar';
11
11
  import UTBadge from './components/UTBadge';
12
+ import UTBanner from './components/UTBanner';
12
13
  import UTBarChart from './deprecated/UTBarChart';
13
14
  import UTBreadcrumbs from './components/UTBreadcrumbs';
14
15
  import UTButton from './components/UTButton';
@@ -106,4 +107,4 @@ export { UTList };
106
107
  export { UTPieChart };
107
108
  /** @deprecated */
108
109
  export { UTToggle };
109
- export { AlertHandler, componentUtils, ThemeProvider as EnergyThemeProvider, keyboardUtils, stylesDeduplicationUtils, useCSSVariables, UTCalendar, UTActionCard, UTAlert, UTAttachmentList, UTAvatar, UTBadge, 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 };
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 };
@@ -163,6 +163,19 @@ export const baseTokens = {
163
163
  'radius-xl': 'radius-500'
164
164
  },
165
165
  component: {
166
+ 'UT-banner-buttons-gap': 'gap-sm',
167
+ 'UT-banner-gap-lg': 'gap-xl',
168
+ 'UT-banner-gap-md': 'gap-lg',
169
+ 'UT-banner-gap-sm': 'gap-sm',
170
+ 'UT-banner-icon-gap': 'gap-md',
171
+ 'UT-banner-icon-size-lg': 'size-icon-md',
172
+ 'UT-banner-icon-size-sm': 'size-icon-xs',
173
+ 'UT-banner-padding-lg': 'padding-lg',
174
+ 'UT-banner-padding-md': 'padding-md',
175
+ 'UT-banner-padding-x-sm': 'padding-sm',
176
+ 'UT-banner-padding-y-sm': 'padding-xs',
177
+ 'UT-banner-radius': 'radius-md',
178
+ 'UT-banner-text-gap': 'gap-sm',
166
179
  'UT-button-height-sm': 'size-control-sm',
167
180
  'UT-button-height-md': 'size-control-md',
168
181
  'UT-button-height-lg': 'size-control-lg',
package/dist/index.js CHANGED
@@ -57,6 +57,12 @@ Object.defineProperty(exports, "UTBadge", {
57
57
  return _UTBadge.default;
58
58
  }
59
59
  });
60
+ Object.defineProperty(exports, "UTBanner", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _UTBanner.default;
64
+ }
65
+ });
60
66
  Object.defineProperty(exports, "UTBarChart", {
61
67
  enumerable: true,
62
68
  get: function () {
@@ -548,6 +554,7 @@ var _UTAttachment = _interopRequireDefault(require("./deprecated/UTAttachment"))
548
554
  var _UTAutocomplete = _interopRequireDefault(require("./deprecated/UTAutocomplete"));
549
555
  var _UTAvatar = _interopRequireDefault(require("./components/UTAvatar"));
550
556
  var _UTBadge = _interopRequireDefault(require("./components/UTBadge"));
557
+ var _UTBanner = _interopRequireDefault(require("./components/UTBanner"));
551
558
  var _UTBarChart = _interopRequireDefault(require("./deprecated/UTBarChart"));
552
559
  var _UTBreadcrumbs = _interopRequireDefault(require("./components/UTBreadcrumbs"));
553
560
  var _UTButton = _interopRequireDefault(require("./components/UTButton"));
@@ -169,6 +169,19 @@ const baseTokens = exports.baseTokens = {
169
169
  'radius-xl': 'radius-500'
170
170
  },
171
171
  component: {
172
+ 'UT-banner-buttons-gap': 'gap-sm',
173
+ 'UT-banner-gap-lg': 'gap-xl',
174
+ 'UT-banner-gap-md': 'gap-lg',
175
+ 'UT-banner-gap-sm': 'gap-sm',
176
+ 'UT-banner-icon-gap': 'gap-md',
177
+ 'UT-banner-icon-size-lg': 'size-icon-md',
178
+ 'UT-banner-icon-size-sm': 'size-icon-xs',
179
+ 'UT-banner-padding-lg': 'padding-lg',
180
+ 'UT-banner-padding-md': 'padding-md',
181
+ 'UT-banner-padding-x-sm': 'padding-sm',
182
+ 'UT-banner-padding-y-sm': 'padding-xs',
183
+ 'UT-banner-radius': 'radius-md',
184
+ 'UT-banner-text-gap': 'gap-sm',
172
185
  'UT-button-height-sm': 'size-control-sm',
173
186
  'UT-button-height-md': 'size-control-md',
174
187
  'UT-button-height-lg': 'size-control-lg',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.160.1",
3
+ "version": "3.162.0",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.retrieveStyle = void 0;
7
- const retrieveStyle = _ref => {
8
- var _theme$Palette;
9
- let {
10
- theme
11
- } = _ref;
12
- return {
13
- infoContainer: {
14
- backgroundColor: (_theme$Palette = theme.Palette) === null || _theme$Palette === void 0 ? void 0 : _theme$Palette.light['03']
15
- }
16
- };
17
- };
18
- exports.retrieveStyle = retrieveStyle;
@@ -1,11 +0,0 @@
1
- export const retrieveStyle = _ref => {
2
- var _theme$Palette;
3
- let {
4
- theme
5
- } = _ref;
6
- return {
7
- infoContainer: {
8
- backgroundColor: (_theme$Palette = theme.Palette) === null || _theme$Palette === void 0 ? void 0 : _theme$Palette.light['03']
9
- }
10
- };
11
- };