@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 +2 -3
- package/src/base/_generic.scss +1 -1
- package/src/base/_reset.scss +0 -14
- package/src/base/_typography.scss +15 -18
- package/src/utils/functions/index.scss +0 -5
- package/src/utils/mixins/_hover.scss +2 -2
- package/src/utils/mixins/index.scss +0 -1
- package/src/variables/_initial.scss +8 -28
- package/dist/index.css +0 -841
- package/dist/index.css.map +0 -1
- package/dist/index.min.css +0 -1
- package/src/components/_or-button.scss +0 -400
- package/src/components/_or-checkbox.scss +0 -119
- package/src/components/_or-collapse.scss +0 -11
- package/src/components/_or-error.scss +0 -13
- package/src/components/_or-hint.scss +0 -13
- package/src/components/_or-icon.scss +0 -32
- package/src/components/_or-label.scss +0 -14
- package/src/components/_or-list.scss +0 -44
- package/src/components/_or-loader.scss +0 -126
- package/src/components/_or-radio-group.scss +0 -33
- package/src/components/_or-radio.scss +0 -118
- package/src/components/_or-switch.scss +0 -165
- package/src/components/_or-tab-header-item.scss +0 -42
- package/src/components/_or-tabs.scss +0 -32
- package/src/components/_or-textbox.scss +0 -238
- package/src/utils/functions/_get-font-size.scss +0 -19
- package/src/utils/functions/_get-font-weight.scss +0 -14
- package/src/utils/functions/_get-line-height.scss +0 -19
- package/src/utils/functions/_get-spacing.scss +0 -18
- package/src/utils/functions/_get-theme-color.scss +0 -0
- package/src/utils/mixins/_height-vh.scss +0 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/styles",
|
|
3
|
-
"version": "0.
|
|
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": "
|
|
40
|
+
"gitHead": "d3609da80bf8bb9d09df79d270ad77ea84dc839c"
|
|
42
41
|
}
|
package/src/base/_generic.scss
CHANGED
package/src/base/_reset.scss
CHANGED
|
@@ -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:
|
|
7
|
-
font-size:
|
|
8
|
-
font-weight:
|
|
9
|
-
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:
|
|
14
|
-
font-weight:
|
|
15
|
-
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:
|
|
18
|
+
font-weight: var(--fw-2);
|
|
22
19
|
}
|
|
23
20
|
|
|
24
21
|
.body-semibold {
|
|
25
22
|
@extend .body-normal;
|
|
26
23
|
|
|
27
|
-
font-weight:
|
|
24
|
+
font-weight: var(--fw-1);
|
|
28
25
|
}
|
|
29
26
|
|
|
30
27
|
h4,
|
|
31
28
|
.subheading {
|
|
32
|
-
font-size:
|
|
33
|
-
font-weight:
|
|
34
|
-
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:
|
|
40
|
-
font-weight:
|
|
41
|
-
line-height:
|
|
36
|
+
font-size: var(--fs-3);
|
|
37
|
+
font-weight: var(--fw-2);
|
|
38
|
+
line-height: var(--lh-2);
|
|
42
39
|
}
|
|
@@ -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,12 +1,11 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "tokens/design-tokens" as *;
|
|
3
3
|
|
|
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)
|
|
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
|
-
$
|
|
37
|
-
$round: 9999px !default;
|
|
17
|
+
$round: 9999px;
|
|
38
18
|
|
|
39
|
-
$transition-function: var(--t-func)
|
|
40
|
-
$transition-duration: var(--t-duration)
|
|
19
|
+
$transition-function: var(--t-func);
|
|
20
|
+
$transition-duration: var(--t-duration);
|