@onereach/styles 0.1.15 → 0.2.10

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/styles",
3
- "version": "0.1.15",
3
+ "version": "0.2.10",
4
4
  "description": "Styles for or-ui-next",
5
5
  "main": "./dist/index.min.css",
6
6
  "unpkg": "./dist/index.css",
@@ -12,7 +12,6 @@
12
12
  "build:cleancss": "cleancss -o dist/index.min.css dist/index.css",
13
13
  "build:autoprefixer": "npx postcss --use autoprefixer --map false --output dist/index.css dist/index.css",
14
14
  "build:tokens": "npm run json-to-scss",
15
- "prepare": "npm run build",
16
15
  "lint": "stylelint '**/*.scss'",
17
16
  "fix": "stylelint --fix '**/*.scss'",
18
17
  "clean": "rimraf dist",
@@ -38,5 +37,5 @@
38
37
  "sass": "^1.35.1",
39
38
  "stylelint": "^13.13.1"
40
39
  },
41
- "gitHead": "306d70a2adc6519d6afe300515bc402cfbd0a82c"
40
+ "gitHead": "d3609da80bf8bb9d09df79d270ad77ea84dc839c"
42
41
  }
@@ -51,7 +51,7 @@ pre {
51
51
 
52
52
  code {
53
53
  padding: 0;
54
- font-size: get-font-size();
54
+ font-size: var(--fs-0);
55
55
  color: currentColor;
56
56
  background-color: transparent;
57
57
  }
@@ -83,20 +83,6 @@ video {
83
83
  border: 0;
84
84
  }
85
85
 
86
- /* Change Autocomplete styles in Chrome */
87
- input:-webkit-autofill,
88
- input:-webkit-autofill:hover,
89
- input:-webkit-autofill:focus,
90
- textarea:-webkit-autofill,
91
- textarea:-webkit-autofill:hover,
92
- textarea:-webkit-autofill:focus,
93
- select:-webkit-autofill,
94
- select:-webkit-autofill:hover,
95
- select:-webkit-autofill:focus {
96
- -webkit-transition: color 9999s ease-out, background-color 9999s ease-out;
97
- -webkit-transition-delay: 9999s;
98
- }
99
-
100
86
  *,
101
87
  *::before,
102
88
  *::after {
@@ -1,42 +1,39 @@
1
- @use "../utils" as *;
2
- @use "../variables/initial";
3
-
4
1
  body,
5
2
  .body-normal {
6
- font-family: initial.$body-font-family;
7
- font-size: initial.$body-font-size;
8
- font-weight: initial.$body-font-weight;
9
- line-height: initial.$body-line-height;
3
+ font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
4
+ font-size: var(--fs-1);
5
+ font-weight: var(--fw-0);
6
+ line-height: var(--lh-1);
10
7
  }
11
8
 
12
9
  .caption-normal {
13
- font-size: initial.$caption-font-size;
14
- font-weight: initial.$caption-font-weight;
15
- line-height: initial.$caption-line-height;
10
+ font-size: var(--fs-0);
11
+ font-weight: var(--fw-0);
12
+ line-height: var(--lh-0);
16
13
  }
17
14
 
18
15
  .caption-bold {
19
16
  @extend .caption-normal;
20
17
 
21
- font-weight: get-font-weight(2);
18
+ font-weight: var(--fw-2);
22
19
  }
23
20
 
24
21
  .body-semibold {
25
22
  @extend .body-normal;
26
23
 
27
- font-weight: get-font-weight(1);
24
+ font-weight: var(--fw-1);
28
25
  }
29
26
 
30
27
  h4,
31
28
  .subheading {
32
- font-size: initial.$subheading-font-size;
33
- font-weight: initial.$subheading-font-weight;
34
- line-height: initial.$subheading-line-height;
29
+ font-size: var(--fs-2);
30
+ font-weight: var(--fw-2);
31
+ line-height: var(--lh-1);
35
32
  }
36
33
 
37
34
  h1,
38
35
  .heading {
39
- font-size: initial.$heading-font-size;
40
- font-weight: initial.$heading-font-weight;
41
- line-height: initial.$heading-line-height;
36
+ font-size: var(--fs-3);
37
+ font-weight: var(--fw-2);
38
+ line-height: var(--lh-2);
42
39
  }
@@ -1,9 +1,4 @@
1
- @forward "get-theme-color";
2
1
  @forward "px-to-rem";
3
- @forward "get-font-size";
4
- @forward "get-line-height";
5
- @forward "get-font-weight";
6
- @forward "get-spacing";
7
2
  @forward "get-transition-time";
8
3
  @forward "get-transition-func";
9
4
  @forward "breakpoint";
@@ -1,6 +1,6 @@
1
1
  @mixin hover {
2
2
  @media (hover: hover) and (pointer: fine) {
3
- &:not(.is-loading):not(.is-disabled):not(.is-readonly):not(:disabled) {
3
+ &:not(.is-loading):not(.is-disabled):not(.is-readonly):not(:disabled):not(.is-focused) {
4
4
  &:hover {
5
5
  @content;
6
6
  }
@@ -8,7 +8,7 @@
8
8
  }
9
9
 
10
10
  @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
11
- &:not(.is-loading):not(.is-disabled):not(.is-readonly):not(:disabled) {
11
+ &:not(.is-loading):not(.is-disabled):not(.is-readonly):not(:disabled):not(.is-focused) {
12
12
  &:hover {
13
13
  @content;
14
14
  }
@@ -1,6 +1,5 @@
1
1
  @forward "absolute-stretch";
2
2
  @forward "extra-click-area";
3
- @forward "height-vh";
4
3
  @forward "visual-hidden";
5
4
  @forward "hover";
6
5
  @forward "active";
@@ -1,12 +1,11 @@
1
1
  @use "sass:map";
2
2
  @use "tokens/design-tokens" as *;
3
3
 
4
- $themesList: map.get($design-tokens, themes) !default;
5
- $spacingList: map.get($design-tokens, spacings) !default;
6
- $fontSizeList: map.get($design-tokens, typography, font-sizes) !default;
7
- $fontWeightList: map.get($design-tokens, typography, font-weights) !default;
8
- $lineHeightList: map.get($design-tokens, typography, line-heights) !default;
9
- //$colorsList: (primary, error, warning, success, neutral-0, neutral-1, neutral-2, neutral-3, neutral-4, neutral-5, neutral-6);
4
+ $themesList: map.get($design-tokens, themes);
5
+ $spacingList: map.get($design-tokens, spacings);
6
+ $fontSizeList: map.get($design-tokens, typography, font-sizes);
7
+ $fontWeightList: map.get($design-tokens, typography, font-weights);
8
+ $lineHeightList: map.get($design-tokens, typography, line-heights);
10
9
 
11
10
  // list of values
12
11
  $spacingsValues: map.values($spacingList);
@@ -14,27 +13,8 @@ $fontSizeValues: map.values($fontSizeList);
14
13
  $fontWeightValues: map.values($fontWeightList);
15
14
  $lineHeightValues: map.values($lineHeightList);
16
15
 
17
- // typo
18
- $body-font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif !default;
19
- $body-font-size: var(--fs-1) !default;
20
- $body-font-weight: var(--fw-0) !default;
21
- $body-line-height: var(--lh-1) !default;
22
-
23
- $caption-font-size: var(--fs-0) !default;
24
- $caption-font-weight: var(--fw-0) !default;
25
- $caption-line-height: var(--lh-0) !default;
26
-
27
- $subheading-font-size: var(--fs-2) !default;
28
- $subheading-font-weight: var(--fw-2) !default;
29
- $subheading-line-height: var(--lh-1) !default;
30
-
31
- $heading-font-size: var(--fs-3) !default;
32
- $heading-font-weight: var(--fw-2) !default;
33
- $heading-line-height: var(--lh-2) !default;
34
-
35
16
  // generic
36
- $base-prefix: quote('or') !default;
37
- $round: 9999px !default;
17
+ $round: 9999px;
38
18
 
39
- $transition-function: var(--t-func) !default;
40
- $transition-duration: var(--t-duration) !default;
19
+ $transition-function: var(--t-func);
20
+ $transition-duration: var(--t-duration);