@blockle/blocks-theme-momotaro 7.0.0 → 7.1.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/components/alert.css.js +1 -1
- package/dist/components/drawer.css.d.ts.map +1 -1
- package/dist/components/drawer.css.js +28 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/select.css.d.ts.map +1 -1
- package/dist/components/select.css.js +27 -2
- package/dist/components/toast.css.d.ts +3 -0
- package/dist/components/toast.css.d.ts.map +1 -0
- package/dist/components/toast.css.js +61 -0
- package/package.json +2 -2
|
@@ -18,7 +18,7 @@ const alert = makeComponentTheme(
|
|
|
18
18
|
}),
|
|
19
19
|
variants: {
|
|
20
20
|
intent: {
|
|
21
|
-
|
|
21
|
+
danger: intentStyle(vars.colorRole.danger),
|
|
22
22
|
info: intentStyle(vars.colorRole.info),
|
|
23
23
|
success: intentStyle(vars.colorRole.success),
|
|
24
24
|
warning: intentStyle(vars.colorRole.warning)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.css.d.ts","sourceRoot":"","sources":["../../src/components/drawer.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"drawer.css.d.ts","sourceRoot":"","sources":["../../src/components/drawer.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAM9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,CA8FlD,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { makeComponentTheme, vars, atoms } from "@blockle/blocks-core";
|
|
|
3
3
|
import { style, createVar } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/drawer.css.ts", "@blockle/blocks-theme-momotaro");
|
|
5
5
|
const startingTransform = createVar();
|
|
6
|
+
const drawerSize = createVar();
|
|
6
7
|
const drawer = makeComponentTheme(
|
|
7
8
|
"drawer",
|
|
8
9
|
{
|
|
@@ -53,24 +54,48 @@ const drawer = makeComponentTheme(
|
|
|
53
54
|
top: style({
|
|
54
55
|
vars: {
|
|
55
56
|
[startingTransform]: "translate(0, -100%)"
|
|
56
|
-
}
|
|
57
|
+
},
|
|
58
|
+
height: drawerSize
|
|
57
59
|
}),
|
|
58
60
|
right: style({
|
|
59
61
|
vars: {
|
|
60
62
|
[startingTransform]: "translate(100%, 0)"
|
|
61
|
-
}
|
|
63
|
+
},
|
|
64
|
+
width: drawerSize
|
|
62
65
|
}),
|
|
63
66
|
bottom: style({
|
|
64
67
|
vars: {
|
|
65
68
|
[startingTransform]: "translate(0, 100%)"
|
|
66
|
-
}
|
|
69
|
+
},
|
|
70
|
+
height: drawerSize
|
|
67
71
|
}),
|
|
68
72
|
left: style({
|
|
69
73
|
vars: {
|
|
70
74
|
[startingTransform]: "translate(-100%, 0)"
|
|
75
|
+
},
|
|
76
|
+
width: drawerSize
|
|
77
|
+
})
|
|
78
|
+
},
|
|
79
|
+
size: {
|
|
80
|
+
small: style({
|
|
81
|
+
vars: {
|
|
82
|
+
[drawerSize]: "min(300px, 100%)"
|
|
83
|
+
}
|
|
84
|
+
}),
|
|
85
|
+
medium: style({
|
|
86
|
+
vars: {
|
|
87
|
+
[drawerSize]: "min(480px, 100%)"
|
|
88
|
+
}
|
|
89
|
+
}),
|
|
90
|
+
large: style({
|
|
91
|
+
vars: {
|
|
92
|
+
[drawerSize]: "min(640px, 100%)"
|
|
71
93
|
}
|
|
72
94
|
})
|
|
73
95
|
}
|
|
96
|
+
},
|
|
97
|
+
defaultVariants: {
|
|
98
|
+
size: "small"
|
|
74
99
|
}
|
|
75
100
|
}
|
|
76
101
|
);
|
|
@@ -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;AAyBlE,eAAO,MAAM,UAAU,EAAE,qBAuBxB,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import { switchTheme } from "./switch.css.js";
|
|
|
18
18
|
import { text } from "./text.css.js";
|
|
19
19
|
import { textarea } from "./textarea.css.js";
|
|
20
20
|
import { textInput } from "./textInput.css.js";
|
|
21
|
+
import { toast } from "./toast.css.js";
|
|
21
22
|
import { tooltip } from "./tooltip.css.js";
|
|
22
23
|
const components = {
|
|
23
24
|
alert,
|
|
@@ -40,6 +41,7 @@ const components = {
|
|
|
40
41
|
text,
|
|
41
42
|
textarea,
|
|
42
43
|
textInput,
|
|
44
|
+
toast,
|
|
43
45
|
tooltip
|
|
44
46
|
};
|
|
45
47
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.css.d.ts","sourceRoot":"","sources":["../../src/components/select.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"select.css.d.ts","sourceRoot":"","sources":["../../src/components/select.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,CAmElD,CAAC"}
|
|
@@ -8,7 +8,6 @@ const select = makeComponentTheme(
|
|
|
8
8
|
{
|
|
9
9
|
select: style([
|
|
10
10
|
atoms({
|
|
11
|
-
paddingInline: 3,
|
|
12
11
|
paddingBlock: 1,
|
|
13
12
|
borderRadius: 2,
|
|
14
13
|
boxShadow: 2
|
|
@@ -18,7 +17,6 @@ const select = makeComponentTheme(
|
|
|
18
17
|
outline: "none",
|
|
19
18
|
color: vars.colorRole.text.default,
|
|
20
19
|
backgroundColor: vars.colorRole.surface.raised,
|
|
21
|
-
minHeight: 40,
|
|
22
20
|
transitionDuration: vars.transition.fast,
|
|
23
21
|
transitionProperty: "outline-color, outline-offset"
|
|
24
22
|
},
|
|
@@ -36,12 +34,39 @@ const select = makeComponentTheme(
|
|
|
36
34
|
}
|
|
37
35
|
]),
|
|
38
36
|
solid: style({})
|
|
37
|
+
},
|
|
38
|
+
size: {
|
|
39
|
+
small: style([
|
|
40
|
+
atoms({
|
|
41
|
+
paddingInline: 3
|
|
42
|
+
}),
|
|
43
|
+
{
|
|
44
|
+
minHeight: 40
|
|
45
|
+
}
|
|
46
|
+
]),
|
|
47
|
+
medium: style([
|
|
48
|
+
atoms({
|
|
49
|
+
paddingInline: 4
|
|
50
|
+
}),
|
|
51
|
+
{
|
|
52
|
+
minHeight: 48
|
|
53
|
+
}
|
|
54
|
+
]),
|
|
55
|
+
large: style([
|
|
56
|
+
atoms({
|
|
57
|
+
paddingInline: 5
|
|
58
|
+
}),
|
|
59
|
+
{
|
|
60
|
+
minHeight: 56
|
|
61
|
+
}
|
|
62
|
+
])
|
|
39
63
|
}
|
|
40
64
|
},
|
|
41
65
|
icon: atoms({
|
|
42
66
|
paddingInline: 3
|
|
43
67
|
}),
|
|
44
68
|
defaultVariants: {
|
|
69
|
+
size: "medium",
|
|
45
70
|
variant: "solid"
|
|
46
71
|
}
|
|
47
72
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.css.d.ts","sourceRoot":"","sources":["../../src/components/toast.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAuB9B,eAAO,MAAM,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAqChD,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { makeComponentTheme, atoms } from "@blockle/blocks-core";
|
|
3
|
+
import { style, keyframes, createVar } from "@vanilla-extract/css";
|
|
4
|
+
setFileScope("src/components/toast.css.ts", "@blockle/blocks-theme-momotaro");
|
|
5
|
+
const enterTranslate = createVar();
|
|
6
|
+
const toastEnter = keyframes({
|
|
7
|
+
from: { opacity: 0, scale: 0.9, translate: enterTranslate },
|
|
8
|
+
to: { opacity: 1, scale: 1, translate: "0 0" }
|
|
9
|
+
});
|
|
10
|
+
const top = style({
|
|
11
|
+
vars: {
|
|
12
|
+
[enterTranslate]: "0 -20%"
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const bottom = style({
|
|
16
|
+
vars: {
|
|
17
|
+
[enterTranslate]: "0 20%"
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const toast = makeComponentTheme(
|
|
21
|
+
"toast",
|
|
22
|
+
{
|
|
23
|
+
root: style([
|
|
24
|
+
atoms({
|
|
25
|
+
gap: 2,
|
|
26
|
+
padding: 2
|
|
27
|
+
}),
|
|
28
|
+
{
|
|
29
|
+
maxWidth: "min(100%, 400px)"
|
|
30
|
+
}
|
|
31
|
+
]),
|
|
32
|
+
toast: style([
|
|
33
|
+
atoms({
|
|
34
|
+
boxShadow: 3
|
|
35
|
+
}),
|
|
36
|
+
{
|
|
37
|
+
"@media": {
|
|
38
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
39
|
+
animationName: toastEnter,
|
|
40
|
+
animationDuration: "240ms",
|
|
41
|
+
animationTimingFunction: "ease-out"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
]),
|
|
46
|
+
variants: {
|
|
47
|
+
placement: {
|
|
48
|
+
top,
|
|
49
|
+
"top-start": top,
|
|
50
|
+
"top-end": top,
|
|
51
|
+
bottom,
|
|
52
|
+
"bottom-start": bottom,
|
|
53
|
+
"bottom-end": bottom
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
endFileScope();
|
|
59
|
+
export {
|
|
60
|
+
toast
|
|
61
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockle/blocks-theme-momotaro",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "Momotaro theme for Blocks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@vanilla-extract/css": "^1.18.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@blockle/blocks-core": ">=3.
|
|
37
|
+
"@blockle/blocks-core": ">=3.1.x",
|
|
38
38
|
"@vanilla-extract/css": "^1.18.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|