@widergy/energy-ui 3.35.0 → 3.36.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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [3.36.0](https://github.com/widergy/energy-ui/compare/v3.35.0...v3.36.0) (2024-10-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * [UG-2149] new workflow design ([#517](https://github.com/widergy/energy-ui/issues/517)) ([f3309ed](https://github.com/widergy/energy-ui/commit/f3309ed72d5dc9bbbaf0ad76cee34a919f0b1c0e))
7
+
1
8
  # [3.35.0](https://github.com/widergy/energy-ui/compare/v3.34.0...v3.35.0) (2024-10-22)
2
9
 
3
10
 
@@ -1,5 +1,7 @@
1
1
  @import '../../scss/variables/mediaQueries.module.scss';
2
2
 
3
+ $header-workflow-max-width: 966px;
4
+
3
5
  .actionsContainer {
4
6
  align-items: flex-start;
5
7
  display: flex;
@@ -11,7 +13,7 @@
11
13
  flex-direction: column;
12
14
  justify-content: space-between;
13
15
  margin: 0 auto;
14
- max-width: 1200px;
16
+ max-width: $header-workflow-max-width;
15
17
  padding: 24px 32px 32px;
16
18
 
17
19
  @media #{$tablet-mobile} {
@@ -38,8 +40,6 @@
38
40
  .bannerContainer {
39
41
  border-radius: 8px;
40
42
  margin-bottom: 0;
41
- max-width: calc(800px - 32px);
42
- width: 100%;
43
43
  }
44
44
 
45
45
  .stepTitle {
@@ -54,7 +54,9 @@
54
54
  .titleAndActionsContainer {
55
55
  align-items: flex-start;
56
56
  display: flex;
57
+ flex-wrap: wrap;
57
58
  grid-gap: 16px;
59
+ word-break: break-word;
58
60
  justify-content: space-between;
59
61
  margin-bottom: 12px;
60
62
  }
@@ -30,6 +30,7 @@ This component serves as a wrapper for each step of a workflow
30
30
  | tagline | string | | Text that will be rendered in uppercase on top of the title. |
31
31
  | title | string | | Text that will be rendered between the stages and the content. It is required in order to show any other text header elements. |
32
32
  | TitleIcon | element | | Icon that will be rendered on top of the title. |
33
+ | variant | string | 'default' | Defines which variant to show. There are two options:`default` or `fullWidth`. |
33
34
  | withIcon | bool | false | Defines whether the nextButton and backButton will aditionally have their own icons inside. |
34
35
  | withStepperPadding | bool | true | If false, the stepper indicator will occupy the full width of the container, rendering the first and last stage's label aligned towards the center. |
35
36
 
@@ -41,4 +42,4 @@ This component serves as a wrapper for each step of a workflow
41
42
  | bannerType | `{ Icon: element, text: string }` |
42
43
  | checkboxType | objectOf( UTCheckbox props ) |
43
44
  | headerActionType | `{ label: string, onClick: func, main: bool, Icon: element }` |
44
- | stageType | arrayOf( `{ id: number, label: string, Icon: element }` ) |
45
+ | stageType | arrayOf( `{ id: number, label: string, Icon: element }` ) |
@@ -6,16 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.childrenContentStyle = exports.VARIANTS = void 0;
7
7
  var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
8
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
- const CENTERED = 'centered';
10
- const FULL_WIDTH = 'fullWidth';
11
9
  const DEFAULT = 'default';
10
+ const FULL_WIDTH = 'fullWidth';
12
11
  const VARIANTS = exports.VARIANTS = {
13
- CENTERED,
14
- FULL_WIDTH,
15
- DEFAULT
12
+ DEFAULT,
13
+ FULL_WIDTH
16
14
  };
17
15
  const childrenContentStyle = exports.childrenContentStyle = {
18
- [VARIANTS.CENTERED]: _stylesModule.default.childrenContentCentered,
19
- [VARIANTS.FULL_WIDTH]: _stylesModule.default.childrenContentFullWidth,
20
- [VARIANTS.DEFAULT]: _stylesModule.default.childrenContent
16
+ [VARIANTS.DEFAULT]: _stylesModule.default.childrenContent,
17
+ [VARIANTS.FULL_WIDTH]: _stylesModule.default.childrenContentFullWidth
21
18
  };
@@ -1,6 +1,8 @@
1
1
  @import '../../../../scss/variables/colors.module.scss';
2
2
  @import '../../../../scss/variables/mediaQueries.module.scss';
3
3
 
4
+ $default-variant-max-width: 966px;
5
+
4
6
  .container {
5
7
  align-items: center;
6
8
  border-radius: 4px;
@@ -41,8 +43,8 @@
41
43
  .childrenContainer {
42
44
  flex: 1;
43
45
  margin: 0 auto;
44
- max-width: 1200px;
45
- padding: 0 32px 16px;
46
+ max-width: $default-variant-max-width;
47
+ padding: 0 32px 32px;
46
48
  width: calc(100% - 64px);
47
49
 
48
50
  @media #{$tablet-mobile} {
@@ -52,26 +54,18 @@
52
54
  }
53
55
 
54
56
  .childrenContent {
55
- max-width: 800px;
56
-
57
- @media #{$tablet-mobile} {
58
- margin: 0 auto;
59
- }
60
- }
61
-
62
- .childrenContentCentered {
63
- align-items: center;
64
- display: flex;
65
- height: 100%;
66
- justify-content: center;
67
57
  margin: 0 auto;
68
- max-width: 500px;
58
+ max-width: 100%;
69
59
  }
70
60
 
71
61
  .childrenContainerFullWidth {
72
62
  max-width: none;
73
- padding: 24px 32px 16px;
63
+ padding: 24px 32px 32px;
74
64
  width: calc(100% - 64px);
65
+
66
+ @media #{$tablet-mobile} {
67
+ padding: 24px 16px 16px !important;
68
+ }
75
69
  }
76
70
 
77
71
  .childrenContentFullWidth {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.35.0",
3
+ "version": "3.36.0",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",