@newhighsco/chipset 6.24.0 → 6.25.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newhighsco/chipset",
3
3
  "description": "Shareable, theme-able component library by New High Score",
4
- "version": "6.24.0",
4
+ "version": "6.25.0",
5
5
  "author": "New High Score",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -123,6 +123,18 @@
123
123
  "number-max-precision": null
124
124
  }
125
125
  }
126
- ]
126
+ ],
127
+ "rules": {
128
+ "value-keyword-case": [
129
+ "lower",
130
+ {
131
+ "camelCaseSvgKeywords": true,
132
+ "ignoreKeywords": [
133
+ "/(mobile|tablet)Landscape/",
134
+ "/desktop(Medium|Large)/"
135
+ ]
136
+ }
137
+ ]
138
+ }
127
139
  }
128
140
  }
@@ -7,8 +7,6 @@ $tablet-landscape: 800px !default;
7
7
  $desktop: 960px !default;
8
8
  $desktop-medium: 1280px !default;
9
9
  $desktop-large: 1600px !default;
10
-
11
- /* stylelint-disable value-keyword-case */
12
10
  $all: (
13
11
  mobile: $mobile,
14
12
  mobileLandscape: $mobile-landscape,
@@ -18,7 +16,6 @@ $all: (
18
16
  desktopMedium: $desktop-medium,
19
17
  desktopLarge: $desktop-large
20
18
  );
21
- /* stylelint-enable value-keyword-case */
22
19
 
23
20
  :export {
24
21
  mobile: strip-unit($mobile);
@@ -5,8 +5,7 @@
5
5
  // 2. Prevent adjustments of font size after orientation changes in iOS
6
6
  html {
7
7
  box-sizing: border-box; // 1
8
- /* stylelint-disable-next-line property-no-vendor-prefix */
9
- -webkit-text-size-adjust: 100%; // 2
8
+ text-size-adjust: 100%; // 2
10
9
  }
11
10
 
12
11
  // 1. Inherit default box-sizing
@@ -153,8 +152,7 @@ button,
153
152
  [type='button'],
154
153
  [type='reset'],
155
154
  [type='submit'] {
156
- /* stylelint-disable-next-line property-no-vendor-prefix */
157
- -webkit-appearance: button;
155
+ appearance: auto;
158
156
  }
159
157
 
160
158
  // Remove the inner border and padding in Firefox.
@@ -213,22 +211,19 @@ textarea {
213
211
  // 1. Correct the odd appearance in Chrome and Safari.
214
212
  // 2. Correct the outline style in Safari.
215
213
  [type='search'] {
216
- /* stylelint-disable-next-line property-no-vendor-prefix */
217
- -webkit-appearance: textfield; // 1
214
+ appearance: textfield; // 1
218
215
  outline-offset: -2px; // 2
219
216
  }
220
217
 
221
218
  // Remove the inner padding in Chrome and Safari on macOS.
222
219
  [type='search']::-webkit-search-decoration {
223
- /* stylelint-disable-next-line property-no-vendor-prefix */
224
- -webkit-appearance: none;
220
+ appearance: none;
225
221
  }
226
222
 
227
223
  // 1. Correct the inability to style clickable types in iOS and Safari.
228
224
  // 2. Change font properties to `inherit` in Safari.
229
225
  ::-webkit-file-upload-button {
230
- /* stylelint-disable-next-line property-no-vendor-prefix */
231
- -webkit-appearance: button; // 1
226
+ appearance: auto; // 1
232
227
  font: inherit; // 2
233
228
  }
234
229
 
@@ -1,10 +1,7 @@
1
1
  @use 'sass:math';
2
2
 
3
3
  @mixin hidpi($ratio: 1.3) {
4
- $mq: '(-webkit-min-device-pixel-ratio: #{$ratio}), ';
5
- $mq: '#{$mq} (min-resolution: #{math.floor($ratio * 96)}dpi)';
6
-
7
- @media #{$mq} {
4
+ @media (min-resolution: #{math.floor($ratio * 96)}dpi) {
8
5
  @content;
9
6
  }
10
7
  }
@@ -1,14 +1,13 @@
1
- /* stylelint-disable scss/dollar-variable-pattern */
2
1
  @mixin mq($min: false, $max: false, $height: false, $and: false, $media: all) {
3
- $_direction: if($height, height, width);
2
+ $-direction: if($height, height, width);
4
3
  $mq: '#{$media} ';
5
4
 
6
5
  @if $min {
7
- $mq: '#{$mq} and (min-#{$_direction}: #{$min})';
6
+ $mq: '#{$mq} and (min-#{$-direction}: #{$min})';
8
7
  }
9
8
 
10
9
  @if $max {
11
- $mq: '#{$mq} and (max-#{$_direction}: #{$max})';
10
+ $mq: '#{$mq} and (max-#{$-direction}: #{$max})';
12
11
  }
13
12
 
14
13
  @if $and {
@@ -3,7 +3,7 @@
3
3
 
4
4
  @mixin triangle($point: 'up', $size: 1em, $color: '') {
5
5
  @if $point == 'up' {
6
- @include _triangle-borders(
6
+ @include -triangle-borders(
7
7
  (
8
8
  right: transparent,
9
9
  bottom: filled,
@@ -13,7 +13,7 @@
13
13
  $color
14
14
  );
15
15
  } @else if $point == 'right' {
16
- @include _triangle-borders(
16
+ @include -triangle-borders(
17
17
  (
18
18
  top: transparent,
19
19
  bottom: transparent,
@@ -23,7 +23,7 @@
23
23
  $color
24
24
  );
25
25
  } @else if $point == 'down' {
26
- @include _triangle-borders(
26
+ @include -triangle-borders(
27
27
  (
28
28
  top: filled,
29
29
  right: transparent,
@@ -33,7 +33,7 @@
33
33
  $color
34
34
  );
35
35
  } @else if $point == 'left' {
36
- @include _triangle-borders(
36
+ @include -triangle-borders(
37
37
  (
38
38
  top: transparent,
39
39
  right: filled,
@@ -43,7 +43,7 @@
43
43
  $color
44
44
  );
45
45
  } @else if $point == 'up-left' {
46
- @include _triangle-borders(
46
+ @include -triangle-borders(
47
47
  (
48
48
  top: filled,
49
49
  right: transparent,
@@ -54,7 +54,7 @@
54
54
  $color
55
55
  );
56
56
  } @else if $point == 'up-right' {
57
- @include _triangle-borders(
57
+ @include -triangle-borders(
58
58
  (
59
59
  top: filled,
60
60
  right: filled,
@@ -65,7 +65,7 @@
65
65
  $color
66
66
  );
67
67
  } @else if $point == 'down-right' {
68
- @include _triangle-borders(
68
+ @include -triangle-borders(
69
69
  (
70
70
  top: transparent,
71
71
  right: filled,
@@ -76,7 +76,7 @@
76
76
  $color
77
77
  );
78
78
  } @else if $point == 'down-left' {
79
- @include _triangle-borders(
79
+ @include -triangle-borders(
80
80
  (
81
81
  top: transparent,
82
82
  right: transparent,
@@ -89,9 +89,7 @@
89
89
  }
90
90
  }
91
91
 
92
- /* stylelint-disable annotation-no-unknown */
93
- /* stylelint-disable-next-line scss/at-mixin-pattern */
94
- @mixin _triangle-borders($sides, $size, $color) {
92
+ @mixin -triangle-borders($sides, $size, $color) {
95
93
  width: 0;
96
94
  height: 0;
97
95
 
@@ -0,0 +1,17 @@
1
+ import { KitchenSink } from '../src/__mocks__/fixtures'
2
+
3
+ export default { component: KitchenSink }
4
+
5
+ export const Source = {
6
+ parameters: {
7
+ chromatic: { disable: true },
8
+ docs: {
9
+ source: {
10
+ code: "@use '~@newhighsco/chipset/styles/normalize';",
11
+ language: 'css'
12
+ }
13
+ }
14
+ }
15
+ }
16
+
17
+ export const Example = {}