@roku-ui/preset 0.5.0 → 0.6.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/dist/index.cjs +5 -5
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -35,12 +35,12 @@ const colors = colorKeys.reduce((colors, key) => {
|
|
|
35
35
|
return colors;
|
|
36
36
|
}, {});
|
|
37
37
|
const shortcuts = colorKeys.filter(d => d !== 'surface').reduce((shortcuts, color) => {
|
|
38
|
-
shortcuts[`container-filled-${color}`] = `bg-${color}-container`;
|
|
39
|
-
shortcuts[`container-light-${color}`] = `bg-${color}-container/10`;
|
|
38
|
+
shortcuts[`container-filled-${color}`] = `bg-${color}-container border-${color}-container border`;
|
|
39
|
+
shortcuts[`container-light-${color}`] = `bg-${color}-container/10 border-${color}-container border-transparent`;
|
|
40
40
|
shortcuts[`container-outline-${color}`] = `border-${color}-container border text-${color}-container`;
|
|
41
|
-
shortcuts[`container-subtle-${color}`] = `bg-${color}-container/0`;
|
|
42
|
-
shortcuts[`container-transparent-${color}`] = `bg-transparent text-${color}-container`;
|
|
43
|
-
shortcuts[`container-constrast-${color}`] = `text-${color}-container`;
|
|
41
|
+
shortcuts[`container-subtle-${color}`] = `bg-${color}-container/0 border-${color}-container border-transparent`;
|
|
42
|
+
shortcuts[`container-transparent-${color}`] = `bg-transparent text-${color}-container border-transparent border-${color}-container`;
|
|
43
|
+
shortcuts[`container-constrast-${color}`] = `text-${color}-container border-${color}-container border-transparent`;
|
|
44
44
|
shortcuts[`btn-filled-${color}`] = `container-filled-${color} enabled:hover:bg-${color}-containerd text-${color}-on focus-visible:outline-2 outline-offset-2 focus-visible:outline-${color}-container outline-none`;
|
|
45
45
|
shortcuts[`btn-light-${color}`] = `container-light-${color} hover:bg-${color}-6/25 text-${color}-container focus-visible:outline-2 outline-offset-2 focus-visible:outline-${color}-container outline-none`;
|
|
46
46
|
shortcuts[`btn-outline-${color}`] = `container-outline-${color} hover:bg-${color}-container/10 text-${color}-container focus-visible:outline-2 outline-offset-2 focus-visible:outline-${color}-container outline-none`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roku-ui/preset",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"author": "Jianqi Pan <jannchie@gmail.com>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"require": "./dist/index.cjs"
|
|
17
17
|
},
|
|
18
18
|
"./package.json": "./package.json",
|
|
19
|
-
"./index.d.ts": "./
|
|
19
|
+
"./index.d.ts": "./index.d.ts"
|
|
20
20
|
},
|
|
21
21
|
"main": "dist/index.mjs",
|
|
22
22
|
"module": "dist/index.mjs",
|