@hazelcast/ui 1.3.3-next.17 → 1.3.3-next.19

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.
@@ -124,6 +124,7 @@
124
124
 
125
125
  &:hover,
126
126
  &.hover {
127
+ /* doiuse-disable text-decoration */
127
128
  text-decoration: underline solid;
128
129
  }
129
130
 
@@ -33,7 +33,7 @@ $offset: c.$grid * 4;
33
33
  .wrapper {
34
34
  width: 100%;
35
35
  height: 100%;
36
- overflow-y: auto;
36
+ overflow: auto;
37
37
  overflow-x: hidden;
38
38
  }
39
39
 
@@ -1,3 +1,4 @@
1
+ @use 'sass:color';
1
2
  @use '../styles/constants' as c;
2
3
  @use '../styles/helpers' as h;
3
4
 
@@ -174,12 +175,12 @@
174
175
  &.hover,
175
176
  &:focus-visible,
176
177
  &.focus {
177
- @include buttonColor(lighten(c.$colorBrand, 20%));
178
+ @include buttonColor(color.adjust(c.$colorBrand, $lightness: 20%));
178
179
  }
179
180
 
180
181
  &:active,
181
182
  &.active {
182
- @include buttonColor(darken(c.$colorBrand, 10%));
183
+ @include buttonColor(color.adjust(c.$colorBrand, $lightness: -10%));
183
184
  }
184
185
 
185
186
  &.variantContained {
@@ -198,12 +199,12 @@
198
199
  &.hover,
199
200
  &:focus-visible,
200
201
  &.focus {
201
- @include buttonColor(lighten(c.$authPrimary, 10%));
202
+ @include buttonColor(color.adjust(c.$authPrimary, $lightness: 10%));
202
203
  }
203
204
 
204
205
  &:active,
205
206
  &.active {
206
- @include buttonColor(darken(c.$authPrimary, 10%));
207
+ @include buttonColor(color.adjust(c.$authPrimary, $lightness: -10%));
207
208
  }
208
209
 
209
210
  &.variantContained {
@@ -224,12 +225,12 @@
224
225
  &.hover,
225
226
  &:focus-visible,
226
227
  &.focus {
227
- @include buttonColor(lighten(c.$authSecondary, 10%));
228
+ @include buttonColor(color.adjust(c.$authSecondary, $lightness: 10%));
228
229
  }
229
230
 
230
231
  &:active,
231
232
  &.active {
232
- @include buttonColor(darken(c.$authSecondary, 10%));
233
+ @include buttonColor(color.adjust(c.$authSecondary, $lightness: -10%));
233
234
  }
234
235
 
235
236
  &.variantContained {
@@ -255,7 +256,7 @@
255
256
  &.hover,
256
257
  &:focus-visible,
257
258
  &.focus {
258
- @include buttonColor(lighten(c.$brandColorText, 10%));
259
+ @include buttonColor(color.adjust(c.$brandColorText, $lightness: 10%));
259
260
  }
260
261
 
261
262
  &:active,
@@ -50,7 +50,7 @@
50
50
 
51
51
  .caption {
52
52
  display: flex;
53
- margin: (-$padding) (-$padding) $padding (-$padding);
53
+ margin: (-$padding) (-$padding) $padding;
54
54
 
55
55
  & > * {
56
56
  flex: 1;
@@ -16,6 +16,7 @@
16
16
  &.focus,
17
17
  &:active,
18
18
  &.active {
19
+ /* doiuse-disable text-decoration */
19
20
  text-decoration: underline solid;
20
21
  outline: transparent solid c.$outlineWidth;
21
22
  }
@@ -1,3 +1,4 @@
1
+ @use 'sass:color';
1
2
  @use '../styles/constants' as c;
2
3
  @use '../styles/helpers' as h;
3
4
 
@@ -14,7 +15,7 @@
14
15
  .overlay {
15
16
  width: 100%;
16
17
  height: 100%;
17
- background-color: transparentize(c.$colorText, 0.2);
18
+ background-color: color.adjust(c.$colorText, $alpha: -0.2);
18
19
  pointer-events: all;
19
20
  }
20
21
 
@@ -1,3 +1,4 @@
1
+ @use 'sass:color';
1
2
  @use '../styles/constants' as c;
2
3
  @use '../styles/helpers' as h;
3
4
 
@@ -14,7 +15,7 @@
14
15
  }
15
16
 
16
17
  .modal {
17
- background: transparentize(c.$colorOverlayBackground, 0.1);
18
+ background: color.adjust(c.$colorOverlayBackground, $alpha: -0.1);
18
19
  width: 100vw;
19
20
  height: 100vh;
20
21
  z-index: c.$zIndex1000;
@@ -1,3 +1,4 @@
1
+ @use 'sass:color';
1
2
  @use '../../styles/constants' as c;
2
3
  @use '../../styles/helpers' as h;
3
4
 
@@ -27,7 +28,7 @@
27
28
  }
28
29
 
29
30
  &.selected {
30
- background: lighten((c.$colorPrimary), 30) !important;
31
+ background: color.adjust(c.$colorPrimary, $lightness: 30%) !important;
31
32
  }
32
33
 
33
34
  &:not(:last-of-type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hazelcast/ui",
3
- "version": "1.3.3-next.17+d780baf",
3
+ "version": "1.3.3-next.19+0df5ae4",
4
4
  "description": "Hazelcast design system components",
5
5
  "author": "",
6
6
  "homepage": "https://github.com/hazelcast/frontend-shared#readme",
@@ -75,7 +75,7 @@
75
75
  "use-persisted-state": "^0.3.3"
76
76
  },
77
77
  "devDependencies": {
78
- "@hazelcast/test-helpers": "^1.3.2",
78
+ "@hazelcast/test-helpers": "^1.3.3-next.19+0df5ae4",
79
79
  "@storybook/addon-docs": "^6.5.16",
80
80
  "@storybook/addons": "^6.5.16",
81
81
  "@storybook/builder-webpack5": "^6.5.16",
@@ -96,23 +96,23 @@
96
96
  "@types/use-persisted-state": "^0.3.4",
97
97
  "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
98
98
  "babel-loader": "^9.1.2",
99
- "doiuse": "^4.4.1",
99
+ "doiuse": "^6.0.3",
100
100
  "enzyme": "^3.11.0",
101
101
  "jest-axe": "^8.0.0",
102
- "loki": "^0.34.0",
103
- "postcss": "^8.4.23",
104
- "postcss-cli": "^9.1.0",
105
- "postcss-reporter": "^7.0.5",
106
- "postcss-scss": "^4.0.6",
102
+ "loki": "^0.35.1",
103
+ "postcss": "^8.4.47",
104
+ "postcss-cli": "^11.0.0",
105
+ "postcss-reporter": "^7.1.0",
106
+ "postcss-scss": "^4.0.9",
107
107
  "react": "^17.0.2",
108
108
  "react-dom": "^17.0.2",
109
109
  "storybook-addon-designs": "^6.3.1",
110
- "stylelint": "^15.6.0",
111
- "stylelint-config-standard": "^33.0.0",
112
- "stylelint-config-standard-scss": "^9.0.0",
113
- "stylelint-prettier": "^3.0.0",
114
- "stylelint-scss": "^4.6.0",
115
- "webpack": "^5.81.0",
110
+ "stylelint": "^16.9.0",
111
+ "stylelint-config-standard": "^36.0.1",
112
+ "stylelint-config-standard-scss": "^13.1.0",
113
+ "stylelint-prettier": "^5.0.2",
114
+ "stylelint-scss": "^6.7.0",
115
+ "webpack": "^5.95.0",
116
116
  "yup": "^0.32.11"
117
117
  },
118
118
  "peerDependencies": {
@@ -121,5 +121,5 @@
121
121
  "react": "^17 || ^18",
122
122
  "react-dom": "^17 || ^18"
123
123
  },
124
- "gitHead": "d780baf1887585cffd64e843babd0053721e18bc"
124
+ "gitHead": "0df5ae447e620cde40d9c1c8d39b2d19ab34b127"
125
125
  }
@@ -1,3 +1,5 @@
1
+ @use 'sass:color';
2
+
1
3
  // https://zeroheight.com/11d0e6dac/p/594529--colors
2
4
  $colorPrimaryLight: #2d7de4 !default;
3
5
  $colorPrimary: #2160c0 !default;
@@ -8,16 +10,16 @@ $colorNeutralLight: #b7c1cb !default;
8
10
  $colorNeutral: #dbdbdb !default;
9
11
  $colorSuccess: #85da66 !default;
10
12
  $colorSuccessLight: #d5f0d1 !default;
11
- $colorSuccessDark: darken($colorSuccess, 10%) !default;
13
+ $colorSuccessDark: color.adjust($colorSuccess, $lightness: -10%) !default;
12
14
  $colorInfo: #76e7e7 !default;
13
15
  $colorInfoLight: #d0f4f8 !default;
14
- $colorInfoDark: darken($colorInfo, 10%) !default;
16
+ $colorInfoDark: color.adjust($colorInfo, $lightness: -10%) !default;
15
17
  $colorWarning: #ffec44 !default;
16
18
  $colorWarningLight: #f9f6c7 !default;
17
- $colorWarningDark: darken($colorWarning, 15%) !default;
19
+ $colorWarningDark: color.adjust($colorWarning, $lightness: -15%) !default;
18
20
  $colorError: #dc084b !default;
19
21
  $colorErrorLight: #efb1c9 !default;
20
- $colorErrorDark: darken($colorError, 10%) !default;
22
+ $colorErrorDark: color.adjust($colorError, $lightness: -10%) !default;
21
23
  $colorText: #061827 !default;
22
24
  $colorTextSecondary: #707482 !default;
23
25
  $colorTextSubdued: #69707d !default;
@@ -44,13 +44,6 @@ $lineHeightBodyTiny: normal !default;
44
44
  @return '';
45
45
  }
46
46
 
47
- @mixin typographyH1Hero($override: false) {
48
- font-weight: $fontWeightHeadingRegular #{override($override)};
49
- font-size: $fontSizeH4 #{override($override)};
50
- letter-spacing: $letterSpacingH4 #{override($override)};
51
- line-height: $lineHeightH4 #{override($override)};
52
- }
53
-
54
47
  @mixin typographyH1($override: false) {
55
48
  font-weight: $fontWeightHeadingRegular #{override($override)};
56
49
  font-size: $fontSizeH1 #{override($override)};