@onereach/styles 6.6.0 → 6.6.1-beta.3787.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/font.css +10 -2
- package/package.json +3 -3
- package/tailwind/plugins/core.js +5 -5
- package/tailwind/plugins/iconography.js +7 -1
- package/tailwind/utils.js +6 -2
- package/tailwind.config.json +16 -16
- package/tailwind.config.preset.js +1 -2
package/font.css
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
/* Typography */
|
|
2
|
-
@import
|
|
2
|
+
@import 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap';
|
|
3
3
|
|
|
4
4
|
/* Iconography */
|
|
5
|
-
@import
|
|
5
|
+
@import 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24..48,400..700,0..1,0';
|
|
6
|
+
|
|
7
|
+
@font-face {
|
|
8
|
+
font-family: 'OneReach Icons';
|
|
9
|
+
font-style: normal;
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
font-display: swap;
|
|
12
|
+
src: url(@onereach/font-icons/dist/fonts/font-icons.ttf) format('truetype');
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/styles",
|
|
3
|
-
"version": "6.6.0",
|
|
3
|
+
"version": "6.6.1-beta.3787.0",
|
|
4
4
|
"description": "Styles for or-ui-next",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"main": "./main.css",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"json-to-scss": "json-to-scss mock/design-tokens.json src/variables/tokens"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
+
"@onereach/font-icons": "*",
|
|
44
45
|
"tailwindcss": "3.3.3"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
@@ -56,6 +57,5 @@
|
|
|
56
57
|
},
|
|
57
58
|
"publishConfig": {
|
|
58
59
|
"access": "public"
|
|
59
|
-
}
|
|
60
|
-
"gitHead": "3e1145e0603cef516dbe83442131c68cb121146a"
|
|
60
|
+
}
|
|
61
61
|
}
|
package/tailwind/plugins/core.js
CHANGED
|
@@ -34,35 +34,35 @@ const variants = {
|
|
|
34
34
|
|
|
35
35
|
get 'hover'() {
|
|
36
36
|
return this['enabled'].flatMap((selector) => [
|
|
37
|
-
`${selector}:not(.interactivity-none):hover`,
|
|
37
|
+
`${selector}:not(.interactivity-none):not([force-state]):hover`,
|
|
38
38
|
`${selector}:not(.interactivity-none)[force-state="hover"]`,
|
|
39
39
|
]);
|
|
40
40
|
},
|
|
41
41
|
|
|
42
42
|
get 'focus'() {
|
|
43
43
|
return this['enabled'].flatMap((selector) => [
|
|
44
|
-
`${selector}:not(.interactivity-none):focus`,
|
|
44
|
+
`${selector}:not(.interactivity-none):not([force-state]):focus`,
|
|
45
45
|
`${selector}:not(.interactivity-none)[force-state="focus"]`,
|
|
46
46
|
]);
|
|
47
47
|
},
|
|
48
48
|
|
|
49
49
|
get 'focus-within'() {
|
|
50
50
|
return this['enabled'].flatMap((selector) => [
|
|
51
|
-
`${selector}:not(.interactivity-none):focus-within`,
|
|
51
|
+
`${selector}:not(.interactivity-none):not([force-state]):focus-within`,
|
|
52
52
|
`${selector}:not(.interactivity-none)[force-state="focus-within"]`,
|
|
53
53
|
]);
|
|
54
54
|
},
|
|
55
55
|
|
|
56
56
|
get 'focus-visible'() {
|
|
57
57
|
return this['enabled'].flatMap((selector) => [
|
|
58
|
-
`${selector}:not(.interactivity-none):focus-visible`,
|
|
58
|
+
`${selector}:not(.interactivity-none):not([force-state]):focus-visible`,
|
|
59
59
|
`${selector}:not(.interactivity-none)[force-state="focus-visible"]`,
|
|
60
60
|
]);
|
|
61
61
|
},
|
|
62
62
|
|
|
63
63
|
get 'active'() {
|
|
64
64
|
return this['enabled'].flatMap((selector) => [
|
|
65
|
-
`${selector}:not(.interactivity-none):active`,
|
|
65
|
+
`${selector}:not(.interactivity-none):not([force-state]):active`,
|
|
66
66
|
`${selector}:not(.interactivity-none)[force-state="active"]`,
|
|
67
67
|
]);
|
|
68
68
|
},
|
|
@@ -11,12 +11,18 @@ const values = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
module.exports = {
|
|
14
|
-
plugin: plugin(({ matchComponents }) => {
|
|
14
|
+
plugin: plugin(({ matchComponents, addComponents }) => {
|
|
15
15
|
matchComponents({
|
|
16
16
|
'iconography': (value) => ({
|
|
17
17
|
fontFamily: '"Material Symbols Outlined"',
|
|
18
18
|
fontVariationSettings: value,
|
|
19
19
|
}),
|
|
20
20
|
}, { values });
|
|
21
|
+
|
|
22
|
+
addComponents({
|
|
23
|
+
'.iconography-onereach': {
|
|
24
|
+
fontFamily: '"OneReach Icons" !important',
|
|
25
|
+
},
|
|
26
|
+
});
|
|
21
27
|
}),
|
|
22
28
|
};
|
package/tailwind/utils.js
CHANGED
|
@@ -3,8 +3,12 @@ module.exports = {
|
|
|
3
3
|
return Object.values(designTokens)
|
|
4
4
|
.reduce((preset, { name, value }) => ({
|
|
5
5
|
...preset,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
...name === 'none'
|
|
7
|
+
? { '0': value }
|
|
8
|
+
: {
|
|
9
|
+
[name]: value,
|
|
10
|
+
[`${name}*`]: `${Number(value.match(/^(\d+)px$/)[1]) - 1}px`,
|
|
11
|
+
},
|
|
8
12
|
}), {});
|
|
9
13
|
},
|
|
10
14
|
|
package/tailwind.config.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"theme": {
|
|
3
3
|
"screens": {},
|
|
4
4
|
"spacing": {
|
|
5
|
-
"
|
|
5
|
+
"0": "0px",
|
|
6
6
|
"xs": "4px",
|
|
7
7
|
"xs*": "3px",
|
|
8
8
|
"sm": "8px",
|
|
@@ -1722,7 +1722,6 @@
|
|
|
1722
1722
|
},
|
|
1723
1723
|
"borderRadius": {
|
|
1724
1724
|
"0": "0px",
|
|
1725
|
-
"none": "0px",
|
|
1726
1725
|
"sm": "2px",
|
|
1727
1726
|
"md": "4px",
|
|
1728
1727
|
"lg": "8px",
|
|
@@ -2202,7 +2201,7 @@
|
|
|
2202
2201
|
"100": "1"
|
|
2203
2202
|
},
|
|
2204
2203
|
"borderSpacing": {
|
|
2205
|
-
"
|
|
2204
|
+
"0": "0px",
|
|
2206
2205
|
"xs": "4px",
|
|
2207
2206
|
"xs*": "3px",
|
|
2208
2207
|
"sm": "8px",
|
|
@@ -2598,8 +2597,8 @@
|
|
|
2598
2597
|
"none": "none"
|
|
2599
2598
|
},
|
|
2600
2599
|
"flexBasis": {
|
|
2600
|
+
"0": "0px",
|
|
2601
2601
|
"auto": "auto",
|
|
2602
|
-
"none": "0px",
|
|
2603
2602
|
"xs": "4px",
|
|
2604
2603
|
"xs*": "3px",
|
|
2605
2604
|
"sm": "8px",
|
|
@@ -2659,7 +2658,7 @@
|
|
|
2659
2658
|
"DEFAULT": "1"
|
|
2660
2659
|
},
|
|
2661
2660
|
"gap": {
|
|
2662
|
-
"
|
|
2661
|
+
"0": "0px",
|
|
2663
2662
|
"xs": "4px",
|
|
2664
2663
|
"xs*": "3px",
|
|
2665
2664
|
"sm": "8px",
|
|
@@ -2826,8 +2825,8 @@
|
|
|
2826
2825
|
"none": "none"
|
|
2827
2826
|
},
|
|
2828
2827
|
"height": {
|
|
2828
|
+
"0": "0px",
|
|
2829
2829
|
"auto": "auto",
|
|
2830
|
-
"none": "0px",
|
|
2831
2830
|
"xs": "4px",
|
|
2832
2831
|
"xs*": "3px",
|
|
2833
2832
|
"sm": "8px",
|
|
@@ -2880,8 +2879,8 @@
|
|
|
2880
2879
|
"180": "180deg"
|
|
2881
2880
|
},
|
|
2882
2881
|
"inset": {
|
|
2882
|
+
"0": "0px",
|
|
2883
2883
|
"auto": "auto",
|
|
2884
|
-
"none": "0px",
|
|
2885
2884
|
"xs": "4px",
|
|
2886
2885
|
"xs*": "3px",
|
|
2887
2886
|
"sm": "8px",
|
|
@@ -2949,8 +2948,8 @@
|
|
|
2949
2948
|
"none": "none"
|
|
2950
2949
|
},
|
|
2951
2950
|
"margin": {
|
|
2951
|
+
"0": "0px",
|
|
2952
2952
|
"auto": "auto",
|
|
2953
|
-
"none": "0px",
|
|
2954
2953
|
"xs": "4px",
|
|
2955
2954
|
"xs*": "3px",
|
|
2956
2955
|
"sm": "8px",
|
|
@@ -2983,7 +2982,7 @@
|
|
|
2983
2982
|
"6": "6"
|
|
2984
2983
|
},
|
|
2985
2984
|
"maxHeight": {
|
|
2986
|
-
"
|
|
2985
|
+
"0": "0px",
|
|
2987
2986
|
"xs": "4px",
|
|
2988
2987
|
"xs*": "3px",
|
|
2989
2988
|
"sm": "8px",
|
|
@@ -3006,6 +3005,7 @@
|
|
|
3006
3005
|
"md+*": "19px",
|
|
3007
3006
|
"lg+": "28px",
|
|
3008
3007
|
"lg+*": "27px",
|
|
3008
|
+
"none": "none",
|
|
3009
3009
|
"full": "100%",
|
|
3010
3010
|
"screen": "100vh",
|
|
3011
3011
|
"min": "min-content",
|
|
@@ -3100,7 +3100,7 @@
|
|
|
3100
3100
|
"8": "8px"
|
|
3101
3101
|
},
|
|
3102
3102
|
"padding": {
|
|
3103
|
-
"
|
|
3103
|
+
"0": "0px",
|
|
3104
3104
|
"xs": "4px",
|
|
3105
3105
|
"xs*": "3px",
|
|
3106
3106
|
"sm": "8px",
|
|
@@ -3210,7 +3210,7 @@
|
|
|
3210
3210
|
"150": "1.5"
|
|
3211
3211
|
},
|
|
3212
3212
|
"scrollMargin": {
|
|
3213
|
-
"
|
|
3213
|
+
"0": "0px",
|
|
3214
3214
|
"xs": "4px",
|
|
3215
3215
|
"xs*": "3px",
|
|
3216
3216
|
"sm": "8px",
|
|
@@ -3235,7 +3235,7 @@
|
|
|
3235
3235
|
"lg+*": "27px"
|
|
3236
3236
|
},
|
|
3237
3237
|
"scrollPadding": {
|
|
3238
|
-
"
|
|
3238
|
+
"0": "0px",
|
|
3239
3239
|
"xs": "4px",
|
|
3240
3240
|
"xs*": "3px",
|
|
3241
3241
|
"sm": "8px",
|
|
@@ -3272,7 +3272,7 @@
|
|
|
3272
3272
|
"12": "12deg"
|
|
3273
3273
|
},
|
|
3274
3274
|
"space": {
|
|
3275
|
-
"
|
|
3275
|
+
"0": "0px",
|
|
3276
3276
|
"xs": "4px",
|
|
3277
3277
|
"xs*": "3px",
|
|
3278
3278
|
"sm": "8px",
|
|
@@ -3314,7 +3314,7 @@
|
|
|
3314
3314
|
"from-font": "from-font"
|
|
3315
3315
|
},
|
|
3316
3316
|
"textIndent": {
|
|
3317
|
-
"
|
|
3317
|
+
"0": "0px",
|
|
3318
3318
|
"xs": "4px",
|
|
3319
3319
|
"xs*": "3px",
|
|
3320
3320
|
"sm": "8px",
|
|
@@ -3395,7 +3395,7 @@
|
|
|
3395
3395
|
"transform": "transform"
|
|
3396
3396
|
},
|
|
3397
3397
|
"translate": {
|
|
3398
|
-
"
|
|
3398
|
+
"0": "0px",
|
|
3399
3399
|
"xs": "4px",
|
|
3400
3400
|
"xs*": "3px",
|
|
3401
3401
|
"sm": "8px",
|
|
@@ -3427,8 +3427,8 @@
|
|
|
3427
3427
|
"full": "100%"
|
|
3428
3428
|
},
|
|
3429
3429
|
"width": {
|
|
3430
|
+
"0": "0px",
|
|
3430
3431
|
"auto": "auto",
|
|
3431
|
-
"none": "0px",
|
|
3432
3432
|
"xs": "4px",
|
|
3433
3433
|
"xs*": "3px",
|
|
3434
3434
|
"sm": "8px",
|