@widergy/mobile-ui 1.39.0 → 1.40.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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.40.1](https://github.com/widergy/mobile-ui/compare/v1.40.0...v1.40.1) (2025-04-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * smartbill new experience fixes ([#422](https://github.com/widergy/mobile-ui/issues/422)) ([159c806](https://github.com/widergy/mobile-ui/commit/159c80602811c44e188825f1589ccc4dd6c9dfc9))
7
+
8
+ # [1.40.0](https://github.com/widergy/mobile-ui/compare/v1.39.0...v1.40.0) (2025-04-04)
9
+
10
+
11
+ ### Features
12
+
13
+ * new consumption box icon ([#421](https://github.com/widergy/mobile-ui/issues/421)) ([2c0bf7e](https://github.com/widergy/mobile-ui/commit/2c0bf7ed19ad3fba4f98d870aa27d2f08e379643))
14
+
1
15
  # [1.39.0](https://github.com/widergy/mobile-ui/compare/v1.38.0...v1.39.0) (2025-04-04)
2
16
 
3
17
 
@@ -42,12 +42,13 @@ const UTActionCard = ({
42
42
  status,
43
43
  statusAlignment,
44
44
  statusLabel,
45
+ surfaceElevation = 1,
45
46
  title,
46
47
  titleProps = {},
47
48
  withBodyPadding = true
48
49
  }) => {
49
50
  return (
50
- <Surface elevation={1} style={[styles.cardContainer, classNames.container]}>
51
+ <Surface elevation={surfaceElevation} style={[styles.cardContainer, classNames.container]}>
51
52
  <TouchableOpacity
52
53
  activeOpacity={0.6}
53
54
  disabled={!mainAction}
@@ -151,6 +152,7 @@ UTActionCard.propTypes = {
151
152
  status: string,
152
153
  statusLabel: string,
153
154
  statusAlignment: oneOf([PLACE_SELF_TYPES.CENTER, PLACE_SELF_TYPES.END, PLACE_SELF_TYPES.START]),
155
+ surfaceElevation: number,
154
156
  title: string,
155
157
  titleProps: shape({ variant: string, weight: string }),
156
158
  withBodyPadding: bool
@@ -0,0 +1,4 @@
1
+ <svg width="100" height="100" viewBox="0 0 100 100" stroke="none" fill="currentColor" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M25 20.8333C22.6988 20.8333 20.8333 22.6988 20.8333 25V75C20.8333 77.3012 22.6988 79.1667 25 79.1667H75C77.3012 79.1667 79.1667 77.3012 79.1667 75V25C79.1667 22.6988 77.3012 20.8333 75 20.8333H25ZM12.5 25C12.5 18.0964 18.0964 12.5 25 12.5H75C81.9036 12.5 87.5 18.0964 87.5 25V75C87.5 81.9036 81.9036 87.5 75 87.5H25C18.0964 87.5 12.5 81.9036 12.5 75V25Z"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M50.1827 33.4577C51.8176 33.9132 52.7367 35.4876 52.2356 36.9741L48.9501 46.7207H55.2371C56.2544 46.7207 57.2067 47.175 57.7848 47.9361C58.3629 48.6971 58.4929 49.6677 58.1327 50.5327L52.1709 64.8477C51.5654 66.3017 49.7781 67.034 48.1789 66.4835C46.5798 65.9329 45.7743 64.3079 46.3798 62.8539L50.754 52.3509H44.7629C43.7809 52.3509 42.8572 51.9274 42.2733 51.2095C41.6895 50.4916 41.5149 49.5645 41.8026 48.7109L46.3151 35.3243C46.8162 33.8378 48.5477 33.0021 50.1827 33.4577Z"/>
4
+ </svg>
@@ -26,6 +26,7 @@ import EnergyIconDeleteOutline from './components/EnergyIcons/EnergyIconDeleteOu
26
26
  import EnergyIconDeleteVariant from './components/EnergyIcons/EnergyIconDeleteVariant.svg';
27
27
  import EnergyIconEdit from './components/EnergyIcons/EnergyIconEdit.svg';
28
28
  import EnergyIconEditVariant from './components/EnergyIcons/EnergyIconEditVariant.svg';
29
+ import EnergyIconConsumptionBoxFilled from './components/EnergyIcons/EnergyIconConsumptionBoxFilled.svg';
29
30
  import EnergyIconGraphicCircle from './components/EnergyIcons/EnergyIconGraphicCircle.svg';
30
31
  import EnergyIconHome from './components/EnergyIcons/EnergyIconHome.svg';
31
32
  import EnergyIconHome2 from './components/EnergyIcons/EnergyIconHome2.svg';
@@ -70,6 +71,7 @@ export const ENERGY_ICONS = {
70
71
  EnergyIconDeleteVariant,
71
72
  EnergyIconEdit,
72
73
  EnergyIconEditVariant,
74
+ EnergyIconConsumptionBoxFilled,
73
75
  EnergyIconGraphicCircle,
74
76
  EnergyIconHome,
75
77
  EnergyIconHome2,
@@ -13,6 +13,7 @@ import { COLOR_THEMES, HIERARCHIES } from './constants';
13
13
  const UTTabs = ({
14
14
  colorTheme = COLOR_THEMES.ACCENT,
15
15
  hierarchy = HIERARCHIES.SECONDARY,
16
+ labelProps = {},
16
17
  onChange,
17
18
  style,
18
19
  tabs,
@@ -60,7 +61,7 @@ const UTTabs = ({
60
61
  style={styles.tab(tabs.length)}
61
62
  >
62
63
  <UTIcon colorTheme={colorThemeToUse} name={icon} />
63
- <UTLabel colorTheme={colorThemeToUse} shade="04" weight="medium">
64
+ <UTLabel colorTheme={colorThemeToUse} shade="04" weight="medium" {...labelProps}>
64
65
  {label}
65
66
  </UTLabel>
66
67
  {badge && <UTBadge colorTheme="accent" />}
@@ -76,6 +77,7 @@ const UTTabs = ({
76
77
  UTTabs.propTypes = {
77
78
  colorTheme: string,
78
79
  hierarchy: string,
80
+ labelProps: object,
79
81
  onChange: func,
80
82
  style: object,
81
83
  tabs: array,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "1.39.0",
5
+ "version": "1.40.1",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [