@blockle/blocks-theme-momotaro 1.0.1 → 1.0.3
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.cjs +5 -5
- package/dist/components/button.css.d.ts +1 -1
- package/dist/components/button.css.js +6 -6
- package/dist/components/checkbox.css.cjs +2 -2
- package/dist/components/checkbox.css.d.ts +1 -1
- package/dist/components/checkbox.css.js +3 -3
- package/dist/components/dialog.css.cjs +1 -1
- package/dist/components/dialog.css.d.ts +1 -1
- package/dist/components/dialog.css.js +2 -2
- package/dist/components/divider.css.d.ts +1 -1
- package/dist/components/input.css.cjs +2 -2
- package/dist/components/input.css.d.ts +1 -1
- package/dist/components/input.css.js +3 -3
- package/dist/components/label.css.d.ts +1 -1
- package/dist/components/link.css.cjs +2 -2
- package/dist/components/link.css.d.ts +1 -1
- package/dist/components/link.css.js +3 -3
- package/dist/components/popover.css.cjs +1 -1
- package/dist/components/popover.css.d.ts +1 -1
- package/dist/components/popover.css.js +2 -2
- package/dist/components/progress.css.cjs +1 -1
- package/dist/components/progress.css.d.ts +1 -1
- package/dist/components/progress.css.js +2 -2
- package/dist/components/radio.css.cjs +2 -2
- package/dist/components/radio.css.d.ts +1 -1
- package/dist/components/radio.css.js +3 -3
- package/dist/components/select.css.cjs +2 -2
- package/dist/components/select.css.d.ts +1 -1
- package/dist/components/select.css.js +3 -3
- package/dist/components/slider.css.cjs +1 -1
- package/dist/components/slider.css.d.ts +1 -1
- package/dist/components/slider.css.js +2 -2
- package/dist/components/spinner.css.d.ts +1 -1
- package/dist/components/switch.css.cjs +2 -2
- package/dist/components/switch.css.d.ts +1 -1
- package/dist/components/switch.css.js +3 -3
- package/dist/components/tooltip.css.cjs +1 -1
- package/dist/components/tooltip.css.d.ts +1 -1
- package/dist/components/tooltip.css.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{momotaro.css.cjs → theme.css.cjs} +1 -1
- package/dist/theme.css.d.ts +1 -0
- package/dist/{momotaro.css.js → theme.css.js} +1 -1
- package/package.json +6 -4
- package/dist/momotaro.css.d.ts +0 -1
|
@@ -9,7 +9,7 @@ const intentColor = css.createVar();
|
|
|
9
9
|
const hoverBackgroundColor = css.createVar();
|
|
10
10
|
const button = blocksCore.makeComponentTheme("button", {
|
|
11
11
|
base: css.style([
|
|
12
|
-
blocksCore.
|
|
12
|
+
blocksCore.atoms({
|
|
13
13
|
display: "inline-flex",
|
|
14
14
|
placeItems: "center",
|
|
15
15
|
fontSize: "medium",
|
|
@@ -35,7 +35,7 @@ const button = blocksCore.makeComponentTheme("button", {
|
|
|
35
35
|
border: "none"
|
|
36
36
|
}),
|
|
37
37
|
outline: css.style([
|
|
38
|
-
blocksCore.
|
|
38
|
+
blocksCore.atoms({
|
|
39
39
|
borderWidth: "small"
|
|
40
40
|
}),
|
|
41
41
|
{
|
|
@@ -52,7 +52,7 @@ const button = blocksCore.makeComponentTheme("button", {
|
|
|
52
52
|
},
|
|
53
53
|
size: {
|
|
54
54
|
small: css.style([
|
|
55
|
-
blocksCore.
|
|
55
|
+
blocksCore.atoms({
|
|
56
56
|
paddingInline: "large"
|
|
57
57
|
}),
|
|
58
58
|
{
|
|
@@ -60,7 +60,7 @@ const button = blocksCore.makeComponentTheme("button", {
|
|
|
60
60
|
}
|
|
61
61
|
]),
|
|
62
62
|
medium: css.style([
|
|
63
|
-
blocksCore.
|
|
63
|
+
blocksCore.atoms({
|
|
64
64
|
paddingInline: "xlarge"
|
|
65
65
|
}),
|
|
66
66
|
{
|
|
@@ -68,7 +68,7 @@ const button = blocksCore.makeComponentTheme("button", {
|
|
|
68
68
|
}
|
|
69
69
|
]),
|
|
70
70
|
large: css.style([
|
|
71
|
-
blocksCore.
|
|
71
|
+
blocksCore.atoms({
|
|
72
72
|
paddingInline: "xlarge"
|
|
73
73
|
}),
|
|
74
74
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const button:
|
|
1
|
+
export declare const button: any;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style, createVar } from "@vanilla-extract/css";
|
|
3
|
-
import { makeComponentTheme, vars,
|
|
3
|
+
import { makeComponentTheme, vars, atoms } from "@blockle/blocks-core";
|
|
4
4
|
import { focusRingColor, clickable } from "./helpers.css.js";
|
|
5
5
|
setFileScope("src/components/button.css.ts", "@blockle/blocks-theme-momotaro");
|
|
6
6
|
const intentColor = createVar();
|
|
7
7
|
const hoverBackgroundColor = createVar();
|
|
8
8
|
const button = makeComponentTheme("button", {
|
|
9
9
|
base: style([
|
|
10
|
-
|
|
10
|
+
atoms({
|
|
11
11
|
display: "inline-flex",
|
|
12
12
|
placeItems: "center",
|
|
13
13
|
fontSize: "medium",
|
|
@@ -33,7 +33,7 @@ const button = makeComponentTheme("button", {
|
|
|
33
33
|
border: "none"
|
|
34
34
|
}),
|
|
35
35
|
outline: style([
|
|
36
|
-
|
|
36
|
+
atoms({
|
|
37
37
|
borderWidth: "small"
|
|
38
38
|
}),
|
|
39
39
|
{
|
|
@@ -50,7 +50,7 @@ const button = makeComponentTheme("button", {
|
|
|
50
50
|
},
|
|
51
51
|
size: {
|
|
52
52
|
small: style([
|
|
53
|
-
|
|
53
|
+
atoms({
|
|
54
54
|
paddingInline: "large"
|
|
55
55
|
}),
|
|
56
56
|
{
|
|
@@ -58,7 +58,7 @@ const button = makeComponentTheme("button", {
|
|
|
58
58
|
}
|
|
59
59
|
]),
|
|
60
60
|
medium: style([
|
|
61
|
-
|
|
61
|
+
atoms({
|
|
62
62
|
paddingInline: "xlarge"
|
|
63
63
|
}),
|
|
64
64
|
{
|
|
@@ -66,7 +66,7 @@ const button = makeComponentTheme("button", {
|
|
|
66
66
|
}
|
|
67
67
|
]),
|
|
68
68
|
large: style([
|
|
69
|
-
|
|
69
|
+
atoms({
|
|
70
70
|
paddingInline: "xlarge"
|
|
71
71
|
}),
|
|
72
72
|
{
|
|
@@ -28,7 +28,7 @@ const checkbox = blocksCore.makeComponentTheme("checkbox", {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
blocksCore.
|
|
31
|
+
blocksCore.atoms({
|
|
32
32
|
backgroundColor: "primaryLight",
|
|
33
33
|
borderRadius: "small"
|
|
34
34
|
}),
|
|
@@ -50,7 +50,7 @@ const checkbox = blocksCore.makeComponentTheme("checkbox", {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}),
|
|
53
|
-
label: blocksCore.
|
|
53
|
+
label: blocksCore.atoms({
|
|
54
54
|
display: "flex",
|
|
55
55
|
flexDirection: "row",
|
|
56
56
|
padding: "xsmall",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const checkbox:
|
|
1
|
+
export declare const checkbox: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme,
|
|
2
|
+
import { makeComponentTheme, atoms, vars } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
import { focusable } from "./helpers.css.js";
|
|
5
5
|
import { bounceOut } from "./transitions.js";
|
|
@@ -26,7 +26,7 @@ const checkbox = makeComponentTheme("checkbox", {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
|
|
29
|
+
atoms({
|
|
30
30
|
backgroundColor: "primaryLight",
|
|
31
31
|
borderRadius: "small"
|
|
32
32
|
}),
|
|
@@ -48,7 +48,7 @@ const checkbox = makeComponentTheme("checkbox", {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}),
|
|
51
|
-
label:
|
|
51
|
+
label: atoms({
|
|
52
52
|
display: "flex",
|
|
53
53
|
flexDirection: "row",
|
|
54
54
|
padding: "xsmall",
|
|
@@ -6,7 +6,7 @@ const css = require("@vanilla-extract/css");
|
|
|
6
6
|
fileScope.setFileScope("src/components/dialog.css.ts", "@blockle/blocks-theme-momotaro");
|
|
7
7
|
const dialog = blocksCore.makeComponentTheme("dialog", {
|
|
8
8
|
dialog: css.style([
|
|
9
|
-
blocksCore.
|
|
9
|
+
blocksCore.atoms({
|
|
10
10
|
display: "flex",
|
|
11
11
|
flexDirection: "column",
|
|
12
12
|
padding: "gutter",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const dialog:
|
|
1
|
+
export declare const dialog: any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme,
|
|
2
|
+
import { makeComponentTheme, atoms } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/dialog.css.ts", "@blockle/blocks-theme-momotaro");
|
|
5
5
|
const dialog = makeComponentTheme("dialog", {
|
|
6
6
|
dialog: style([
|
|
7
|
-
|
|
7
|
+
atoms({
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexDirection: "column",
|
|
10
10
|
padding: "gutter",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const divider:
|
|
1
|
+
export declare const divider: any;
|
|
@@ -6,7 +6,7 @@ const css = require("@vanilla-extract/css");
|
|
|
6
6
|
fileScope.setFileScope("src/components/input.css.ts", "@blockle/blocks-theme-momotaro");
|
|
7
7
|
const input = blocksCore.makeComponentTheme("input", {
|
|
8
8
|
input: css.style([
|
|
9
|
-
blocksCore.
|
|
9
|
+
blocksCore.atoms({
|
|
10
10
|
color: "text",
|
|
11
11
|
padding: "large",
|
|
12
12
|
border: "none",
|
|
@@ -35,7 +35,7 @@ const input = blocksCore.makeComponentTheme("input", {
|
|
|
35
35
|
boxShadow: `${blocksCore.vars.shadow.small}, ${blocksCore.vars.focus.boxShadow}`
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
blocksCore.
|
|
38
|
+
blocksCore.atoms({
|
|
39
39
|
backgroundColor: "white",
|
|
40
40
|
borderRadius: "medium",
|
|
41
41
|
boxShadow: "medium"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const input:
|
|
1
|
+
export declare const input: any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme, vars,
|
|
2
|
+
import { makeComponentTheme, vars, atoms } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/input.css.ts", "@blockle/blocks-theme-momotaro");
|
|
5
5
|
const input = makeComponentTheme("input", {
|
|
6
6
|
input: style([
|
|
7
|
-
|
|
7
|
+
atoms({
|
|
8
8
|
color: "text",
|
|
9
9
|
padding: "large",
|
|
10
10
|
border: "none",
|
|
@@ -33,7 +33,7 @@ const input = makeComponentTheme("input", {
|
|
|
33
33
|
boxShadow: `${vars.shadow.small}, ${vars.focus.boxShadow}`
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
|
|
36
|
+
atoms({
|
|
37
37
|
backgroundColor: "white",
|
|
38
38
|
borderRadius: "medium",
|
|
39
39
|
boxShadow: "medium"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const label:
|
|
1
|
+
export declare const label: any;
|
|
@@ -35,11 +35,11 @@ const link = blocksCore.makeComponentTheme("link", {
|
|
|
35
35
|
color: "inherit",
|
|
36
36
|
fontWeight: "inherit"
|
|
37
37
|
}),
|
|
38
|
-
primary: blocksCore.
|
|
38
|
+
primary: blocksCore.atoms({
|
|
39
39
|
color: "primary",
|
|
40
40
|
fontWeight: "medium"
|
|
41
41
|
}),
|
|
42
|
-
secondary: blocksCore.
|
|
42
|
+
secondary: blocksCore.atoms({
|
|
43
43
|
color: "secondary",
|
|
44
44
|
fontWeight: "medium"
|
|
45
45
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const link:
|
|
1
|
+
export declare const link: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme,
|
|
2
|
+
import { makeComponentTheme, atoms } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
import { focusable } from "./helpers.css.js";
|
|
5
5
|
setFileScope("src/components/link.css.ts", "@blockle/blocks-theme-momotaro");
|
|
@@ -33,11 +33,11 @@ const link = makeComponentTheme("link", {
|
|
|
33
33
|
color: "inherit",
|
|
34
34
|
fontWeight: "inherit"
|
|
35
35
|
}),
|
|
36
|
-
primary:
|
|
36
|
+
primary: atoms({
|
|
37
37
|
color: "primary",
|
|
38
38
|
fontWeight: "medium"
|
|
39
39
|
}),
|
|
40
|
-
secondary:
|
|
40
|
+
secondary: atoms({
|
|
41
41
|
color: "secondary",
|
|
42
42
|
fontWeight: "medium"
|
|
43
43
|
})
|
|
@@ -6,7 +6,7 @@ const css = require("@vanilla-extract/css");
|
|
|
6
6
|
fileScope.setFileScope("src/components/popover.css.ts", "@blockle/blocks-theme-momotaro");
|
|
7
7
|
const popover = blocksCore.makeComponentTheme("popover", {
|
|
8
8
|
base: css.style([
|
|
9
|
-
blocksCore.
|
|
9
|
+
blocksCore.atoms({
|
|
10
10
|
backgroundColor: "white",
|
|
11
11
|
borderRadius: "small",
|
|
12
12
|
boxShadow: "medium",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const popover:
|
|
1
|
+
export declare const popover: any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme,
|
|
2
|
+
import { makeComponentTheme, atoms } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/popover.css.ts", "@blockle/blocks-theme-momotaro");
|
|
5
5
|
const popover = makeComponentTheme("popover", {
|
|
6
6
|
base: style([
|
|
7
|
-
|
|
7
|
+
atoms({
|
|
8
8
|
backgroundColor: "white",
|
|
9
9
|
borderRadius: "small",
|
|
10
10
|
boxShadow: "medium",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const progress:
|
|
1
|
+
export declare const progress: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme, vars,
|
|
2
|
+
import { makeComponentTheme, vars, atoms } from "@blockle/blocks-core";
|
|
3
3
|
import { style, keyframes } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/progress.css.ts", "@blockle/blocks-theme-momotaro");
|
|
5
5
|
const indeterminateAnimation = keyframes({
|
|
@@ -15,7 +15,7 @@ const progress = makeComponentTheme("progress", {
|
|
|
15
15
|
{
|
|
16
16
|
height: 8
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
atoms({
|
|
19
19
|
inlineSize: "full",
|
|
20
20
|
borderRadius: "small",
|
|
21
21
|
backgroundColor: "textLight",
|
|
@@ -29,7 +29,7 @@ const radio = blocksCore.makeComponentTheme("radio", {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
-
blocksCore.
|
|
32
|
+
blocksCore.atoms({
|
|
33
33
|
backgroundColor: "primaryLight"
|
|
34
34
|
}),
|
|
35
35
|
helpers_css.focusable
|
|
@@ -51,7 +51,7 @@ const radio = blocksCore.makeComponentTheme("radio", {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}),
|
|
54
|
-
label: blocksCore.
|
|
54
|
+
label: blocksCore.atoms({
|
|
55
55
|
display: "flex",
|
|
56
56
|
flexDirection: "row",
|
|
57
57
|
padding: "xsmall",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const radio:
|
|
1
|
+
export declare const radio: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme,
|
|
2
|
+
import { makeComponentTheme, atoms, vars } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
import { focusable } from "./helpers.css.js";
|
|
5
5
|
import { bounceOut } from "./transitions.js";
|
|
@@ -27,7 +27,7 @@ const radio = makeComponentTheme("radio", {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
atoms({
|
|
31
31
|
backgroundColor: "primaryLight"
|
|
32
32
|
}),
|
|
33
33
|
focusable
|
|
@@ -49,7 +49,7 @@ const radio = makeComponentTheme("radio", {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}),
|
|
52
|
-
label:
|
|
52
|
+
label: atoms({
|
|
53
53
|
display: "flex",
|
|
54
54
|
flexDirection: "row",
|
|
55
55
|
padding: "xsmall",
|
|
@@ -7,7 +7,7 @@ const helpers_css = require("./helpers.css.cjs");
|
|
|
7
7
|
fileScope.setFileScope("src/components/select.css.ts", "@blockle/blocks-theme-momotaro");
|
|
8
8
|
const select = blocksCore.makeComponentTheme("select", {
|
|
9
9
|
select: css.style([
|
|
10
|
-
blocksCore.
|
|
10
|
+
blocksCore.atoms({
|
|
11
11
|
color: "text",
|
|
12
12
|
padding: "large",
|
|
13
13
|
backgroundColor: "white",
|
|
@@ -31,7 +31,7 @@ const select = blocksCore.makeComponentTheme("select", {
|
|
|
31
31
|
variants: {
|
|
32
32
|
variant: {
|
|
33
33
|
outline: css.style([
|
|
34
|
-
blocksCore.
|
|
34
|
+
blocksCore.atoms({
|
|
35
35
|
borderWidth: "small",
|
|
36
36
|
borderColor: "primary"
|
|
37
37
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const select:
|
|
1
|
+
export declare const select: any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme,
|
|
2
|
+
import { makeComponentTheme, atoms, vars } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
import { focusable } from "./helpers.css.js";
|
|
5
5
|
setFileScope("src/components/select.css.ts", "@blockle/blocks-theme-momotaro");
|
|
6
6
|
const select = makeComponentTheme("select", {
|
|
7
7
|
select: style([
|
|
8
|
-
|
|
8
|
+
atoms({
|
|
9
9
|
color: "text",
|
|
10
10
|
padding: "large",
|
|
11
11
|
backgroundColor: "white",
|
|
@@ -29,7 +29,7 @@ const select = makeComponentTheme("select", {
|
|
|
29
29
|
variants: {
|
|
30
30
|
variant: {
|
|
31
31
|
outline: style([
|
|
32
|
-
|
|
32
|
+
atoms({
|
|
33
33
|
borderWidth: "small",
|
|
34
34
|
borderColor: "primary"
|
|
35
35
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const slider:
|
|
1
|
+
export declare const slider: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme, vars,
|
|
2
|
+
import { makeComponentTheme, vars, atoms } from "@blockle/blocks-core";
|
|
3
3
|
import { style, createVar } from "@vanilla-extract/css";
|
|
4
4
|
import { focusable } from "./helpers.css.js";
|
|
5
5
|
setFileScope("src/components/slider.css.ts", "@blockle/blocks-theme-momotaro");
|
|
@@ -12,7 +12,7 @@ const slider = makeComponentTheme("slider", {
|
|
|
12
12
|
blockSize: "20px"
|
|
13
13
|
}),
|
|
14
14
|
track: style([
|
|
15
|
-
|
|
15
|
+
atoms({
|
|
16
16
|
borderRadius: "small"
|
|
17
17
|
}),
|
|
18
18
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const spinner:
|
|
1
|
+
export declare const spinner: any;
|
|
@@ -8,7 +8,7 @@ fileScope.setFileScope("src/components/switch.css.ts", "@blockle/blocks-theme-mo
|
|
|
8
8
|
const activeScaleFactor = css.createVar();
|
|
9
9
|
const switchTheme = blocksCore.makeComponentTheme("switch", {
|
|
10
10
|
base: css.style([
|
|
11
|
-
blocksCore.
|
|
11
|
+
blocksCore.atoms({
|
|
12
12
|
borderRadius: "xlarge",
|
|
13
13
|
backgroundColor: "textLight"
|
|
14
14
|
}),
|
|
@@ -38,7 +38,7 @@ const switchTheme = blocksCore.makeComponentTheme("switch", {
|
|
|
38
38
|
helpers_css.focusable
|
|
39
39
|
]),
|
|
40
40
|
slider: css.style([
|
|
41
|
-
blocksCore.
|
|
41
|
+
blocksCore.atoms({
|
|
42
42
|
borderRadius: "xlarge"
|
|
43
43
|
}),
|
|
44
44
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const switchTheme:
|
|
1
|
+
export declare const switchTheme: any;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme,
|
|
2
|
+
import { makeComponentTheme, atoms, vars } from "@blockle/blocks-core";
|
|
3
3
|
import { style, createVar } from "@vanilla-extract/css";
|
|
4
4
|
import { focusable } from "./helpers.css.js";
|
|
5
5
|
setFileScope("src/components/switch.css.ts", "@blockle/blocks-theme-momotaro");
|
|
6
6
|
const activeScaleFactor = createVar();
|
|
7
7
|
const switchTheme = makeComponentTheme("switch", {
|
|
8
8
|
base: style([
|
|
9
|
-
|
|
9
|
+
atoms({
|
|
10
10
|
borderRadius: "xlarge",
|
|
11
11
|
backgroundColor: "textLight"
|
|
12
12
|
}),
|
|
@@ -36,7 +36,7 @@ const switchTheme = makeComponentTheme("switch", {
|
|
|
36
36
|
focusable
|
|
37
37
|
]),
|
|
38
38
|
slider: style([
|
|
39
|
-
|
|
39
|
+
atoms({
|
|
40
40
|
borderRadius: "xlarge"
|
|
41
41
|
}),
|
|
42
42
|
{
|
|
@@ -5,7 +5,7 @@ const blocksCore = require("@blockle/blocks-core");
|
|
|
5
5
|
const css = require("@vanilla-extract/css");
|
|
6
6
|
fileScope.setFileScope("src/components/tooltip.css.ts", "@blockle/blocks-theme-momotaro");
|
|
7
7
|
const tooltip = blocksCore.makeComponentTheme("tooltip", {
|
|
8
|
-
base: blocksCore.
|
|
8
|
+
base: blocksCore.atoms({
|
|
9
9
|
backgroundColor: "primary",
|
|
10
10
|
padding: "small"
|
|
11
11
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const tooltip:
|
|
1
|
+
export declare const tooltip: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme,
|
|
2
|
+
import { makeComponentTheme, atoms } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/tooltip.css.ts", "@blockle/blocks-theme-momotaro");
|
|
5
5
|
const tooltip = makeComponentTheme("tooltip", {
|
|
6
|
-
base:
|
|
6
|
+
base: atoms({
|
|
7
7
|
backgroundColor: "primary",
|
|
8
8
|
padding: "small"
|
|
9
9
|
}),
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
exports.momotaro =
|
|
3
|
+
const theme_css = require("./theme.css.cjs");
|
|
4
|
+
exports.momotaro = theme_css.momotaro;
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { momotaro } from './
|
|
1
|
+
export { momotaro } from './theme.css';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ const fileScope = require("@vanilla-extract/css/fileScope");
|
|
|
4
4
|
const blocksCore = require("@blockle/blocks-core");
|
|
5
5
|
const index = require("./components/index.cjs");
|
|
6
6
|
const tokens_css = require("./tokens.css.cjs");
|
|
7
|
-
fileScope.setFileScope("src/
|
|
7
|
+
fileScope.setFileScope("src/theme.css.ts", "@blockle/blocks-theme-momotaro");
|
|
8
8
|
const momotaro = blocksCore.makeTheme({
|
|
9
9
|
name: "momotaro",
|
|
10
10
|
tokens: tokens_css.tokens,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const momotaro: any;
|
|
@@ -2,7 +2,7 @@ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
|
2
2
|
import { makeTheme } from "@blockle/blocks-core";
|
|
3
3
|
import { components } from "./components/index.js";
|
|
4
4
|
import { tokens } from "./tokens.css.js";
|
|
5
|
-
setFileScope("src/
|
|
5
|
+
setFileScope("src/theme.css.ts", "@blockle/blocks-theme-momotaro");
|
|
6
6
|
const momotaro = makeTheme({
|
|
7
7
|
name: "momotaro",
|
|
8
8
|
tokens,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockle/blocks-theme-momotaro",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "Momotaro theme for Blocks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -37,8 +37,10 @@
|
|
|
37
37
|
"url": "https://github.com/Blockle/blocks/issues"
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/Blockle/blocks#readme",
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@vanilla-extract/css": "^1.17.1"
|
|
42
|
+
},
|
|
40
43
|
"peerDependencies": {
|
|
41
|
-
"@blockle/blocks-core": "^0.21.0"
|
|
42
|
-
"@vanilla-extract/css": ">=1.17.1"
|
|
44
|
+
"@blockle/blocks-core": "^0.21.0"
|
|
43
45
|
}
|
|
44
46
|
}
|
package/dist/momotaro.css.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const momotaro: import('@blockle/blocks-core').Theme;
|