@blockle/blocks-theme-momotaro 6.2.2 → 6.2.4
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/components/button.css.d.ts.map +1 -1
- package/dist/components/button.css.js +6 -0
- package/dist/components/dialog.css.d.ts.map +1 -1
- package/dist/components/dialog.css.js +0 -1
- package/dist/components/drawer.css.d.ts +3 -0
- package/dist/components/drawer.css.d.ts.map +1 -0
- package/dist/components/drawer.css.js +77 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/popover.css.d.ts.map +1 -1
- package/dist/components/popover.css.js +0 -1
- package/dist/tokens.css.d.ts.map +1 -1
- package/dist/tokens.css.js +11 -0
- package/package.json +8 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.css.d.ts","sourceRoot":"","sources":["../../src/components/button.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAS9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"button.css.d.ts","sourceRoot":"","sources":["../../src/components/button.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAS9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,CAsIlD,CAAC"}
|
|
@@ -77,6 +77,12 @@ const button = makeComponentTheme(
|
|
|
77
77
|
])
|
|
78
78
|
},
|
|
79
79
|
intent: {
|
|
80
|
+
neutral: style({
|
|
81
|
+
vars: {
|
|
82
|
+
[intentColor]: vars.color["neutral-800"],
|
|
83
|
+
[hoverBackgroundColor]: vars.color["neutral-200"]
|
|
84
|
+
}
|
|
85
|
+
}),
|
|
80
86
|
primary: style({
|
|
81
87
|
vars: {
|
|
82
88
|
[intentColor]: vars.color["primary-600"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.css.d.ts","sourceRoot":"","sources":["../../src/components/dialog.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"dialog.css.d.ts","sourceRoot":"","sources":["../../src/components/dialog.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,CA0ElD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.css.d.ts","sourceRoot":"","sources":["../../src/components/drawer.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,CAmElD,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { makeComponentTheme, atoms } from "@blockle/blocks-core";
|
|
3
|
+
import { style, createVar } from "@vanilla-extract/css";
|
|
4
|
+
setFileScope("src/components/drawer.css.ts", "@blockle/blocks-theme-momotaro");
|
|
5
|
+
const startingTransform = createVar();
|
|
6
|
+
const drawer = makeComponentTheme(
|
|
7
|
+
"drawer",
|
|
8
|
+
{
|
|
9
|
+
root: style([
|
|
10
|
+
atoms({
|
|
11
|
+
border: "none"
|
|
12
|
+
}),
|
|
13
|
+
{
|
|
14
|
+
selectors: {
|
|
15
|
+
"&[open]": {
|
|
16
|
+
transform: "translate(0, 0)",
|
|
17
|
+
opacity: 1,
|
|
18
|
+
"@starting-style": {
|
|
19
|
+
transform: startingTransform,
|
|
20
|
+
opacity: 0
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"&[open]::backdrop": {
|
|
24
|
+
opacity: 1,
|
|
25
|
+
"@starting-style": {
|
|
26
|
+
opacity: 0
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"@media": {
|
|
31
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
32
|
+
// Ending style
|
|
33
|
+
transform: startingTransform,
|
|
34
|
+
opacity: 0,
|
|
35
|
+
transitionBehavior: "allow-discrete",
|
|
36
|
+
transitionProperty: "opacity, transform, overlay, display",
|
|
37
|
+
transitionDuration: "240ms, 160ms, 240ms, 240ms",
|
|
38
|
+
"::backdrop": {
|
|
39
|
+
opacity: 0,
|
|
40
|
+
transitionBehavior: "allow-discrete",
|
|
41
|
+
transitionProperty: "opacity, overlay, display",
|
|
42
|
+
transitionDuration: "160ms, 240ms, 240ms"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]),
|
|
48
|
+
variants: {
|
|
49
|
+
placement: {
|
|
50
|
+
top: style({
|
|
51
|
+
vars: {
|
|
52
|
+
[startingTransform]: "translate(0, -100%)"
|
|
53
|
+
}
|
|
54
|
+
}),
|
|
55
|
+
right: style({
|
|
56
|
+
vars: {
|
|
57
|
+
[startingTransform]: "translate(100%, 0)"
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
60
|
+
bottom: style({
|
|
61
|
+
vars: {
|
|
62
|
+
[startingTransform]: "translate(0, 100%)"
|
|
63
|
+
}
|
|
64
|
+
}),
|
|
65
|
+
left: style({
|
|
66
|
+
vars: {
|
|
67
|
+
[startingTransform]: "translate(-100%, 0)"
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
endFileScope();
|
|
75
|
+
export {
|
|
76
|
+
drawer
|
|
77
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAsBlE,eAAO,MAAM,UAAU,EAAE,qBAoBxB,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { button } from "./button.css.js";
|
|
|
3
3
|
import { checkbox } from "./checkbox.css.js";
|
|
4
4
|
import { dialog } from "./dialog.css.js";
|
|
5
5
|
import { divider } from "./divider.css.js";
|
|
6
|
+
import { drawer } from "./drawer.css.js";
|
|
6
7
|
import { icon } from "./icon.css.js";
|
|
7
8
|
import { label } from "./label.css.js";
|
|
8
9
|
import { link } from "./link.css.js";
|
|
@@ -22,6 +23,7 @@ const components = {
|
|
|
22
23
|
checkbox,
|
|
23
24
|
dialog,
|
|
24
25
|
divider,
|
|
26
|
+
drawer,
|
|
25
27
|
icon,
|
|
26
28
|
label,
|
|
27
29
|
link,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.css.d.ts","sourceRoot":"","sources":["../../src/components/popover.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,OAAO,EAAE,qBAAqB,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"popover.css.d.ts","sourceRoot":"","sources":["../../src/components/popover.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAqCpD,CAAC"}
|
|
@@ -20,7 +20,6 @@ const popover = makeComponentTheme(
|
|
|
20
20
|
"&:popover-open": {
|
|
21
21
|
transform: "translateY(0) scale(1)",
|
|
22
22
|
opacity: 1,
|
|
23
|
-
// @ts-expect-error - Vanilla Extract does not support @starting-style (yet)
|
|
24
23
|
"@starting-style": {
|
|
25
24
|
transform: "translateY(12px) scale(0.8)",
|
|
26
25
|
opacity: 0
|
package/dist/tokens.css.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.css.d.ts","sourceRoot":"","sources":["../src/tokens.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAErE,eAAO,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"tokens.css.d.ts","sourceRoot":"","sources":["../src/tokens.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAErE,eAAO,MAAM,MAAM,EAAE,WAyKpB,CAAC"}
|
package/dist/tokens.css.js
CHANGED
|
@@ -104,6 +104,17 @@ const tokens = {
|
|
|
104
104
|
700: "#2E2E2E",
|
|
105
105
|
800: "#1A1A1A",
|
|
106
106
|
900: "#0D0D0D"
|
|
107
|
+
},
|
|
108
|
+
neutral: {
|
|
109
|
+
100: "#F7F7F7",
|
|
110
|
+
200: "#E1E1E1",
|
|
111
|
+
300: "#CFCFCF",
|
|
112
|
+
400: "#B1B1B1",
|
|
113
|
+
500: "#9E9E9E",
|
|
114
|
+
600: "#7E7E7E",
|
|
115
|
+
700: "#5E5E5E",
|
|
116
|
+
800: "#3C3C3C",
|
|
117
|
+
900: "#1A1A1A"
|
|
107
118
|
}
|
|
108
119
|
},
|
|
109
120
|
shadow: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockle/blocks-theme-momotaro",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.4",
|
|
4
4
|
"description": "Momotaro theme for Blocks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "git+
|
|
25
|
+
"url": "git+https://github.com/Blockle/blocks.git"
|
|
26
26
|
},
|
|
27
27
|
"author": "Niek Saarberg <n.saarberg@gmail.com>",
|
|
28
28
|
"license": "MIT",
|
|
@@ -31,10 +31,14 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Blockle/blocks#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@vanilla-extract/css": "^1.
|
|
34
|
+
"@vanilla-extract/css": "^1.18.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@blockle/blocks-core": ">=1.2.x",
|
|
38
|
-
"@vanilla-extract/css": "^1.
|
|
38
|
+
"@vanilla-extract/css": "^1.18.0"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public",
|
|
42
|
+
"provenance": true
|
|
39
43
|
}
|
|
40
44
|
}
|