@blockle/blocks-theme-momotaro 1.0.6 → 2.0.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/button.css.d.ts +2 -1
- package/dist/components/button.css.js +109 -106
- package/dist/components/checkbox.css.d.ts +2 -1
- package/dist/components/checkbox.css.js +49 -46
- package/dist/components/dialog.css.d.ts +2 -1
- package/dist/components/dialog.css.js +67 -64
- package/dist/components/divider.css.d.ts +2 -1
- package/dist/components/divider.css.js +10 -7
- package/dist/components/input.css.d.ts +2 -1
- package/dist/components/input.css.js +39 -36
- package/dist/components/label.css.d.ts +2 -1
- package/dist/components/label.css.js +25 -22
- package/dist/components/link.css.d.ts +2 -1
- package/dist/components/popover.css.d.ts +2 -1
- package/dist/components/popover.css.js +36 -33
- package/dist/components/progress.css.d.ts +2 -1
- package/dist/components/progress.css.js +35 -32
- package/dist/components/radio.css.d.ts +2 -1
- package/dist/components/radio.css.js +48 -45
- package/dist/components/select.css.d.ts +2 -1
- package/dist/components/select.css.js +43 -40
- package/dist/components/slider.css.d.ts +2 -1
- package/dist/components/slider.css.js +76 -73
- package/dist/components/spinner.css.d.ts +2 -1
- package/dist/components/spinner.css.js +29 -26
- package/dist/components/switch.css.d.ts +2 -1
- package/dist/components/switch.css.js +54 -51
- package/dist/components/tooltip.css.d.ts +2 -1
- package/dist/components/tooltip.css.js +23 -20
- package/dist/index.d.ts +1 -1
- package/package.json +5 -11
- package/dist/components/button.css.cjs +0 -126
- package/dist/components/checkbox.css.cjs +0 -62
- package/dist/components/dialog.css.cjs +0 -81
- package/dist/components/divider.css.cjs +0 -16
- package/dist/components/helpers.css.cjs +0 -47
- package/dist/components/index.cjs +0 -35
- package/dist/components/input.css.cjs +0 -46
- package/dist/components/label.css.cjs +0 -33
- package/dist/components/link.css.cjs +0 -56
- package/dist/components/popover.css.cjs +0 -45
- package/dist/components/progress.css.cjs +0 -57
- package/dist/components/radio.css.cjs +0 -63
- package/dist/components/select.css.cjs +0 -53
- package/dist/components/slider.css.cjs +0 -95
- package/dist/components/spinner.css.cjs +0 -44
- package/dist/components/switch.css.cjs +0 -66
- package/dist/components/tooltip.css.cjs +0 -30
- package/dist/components/transitions.cjs +0 -4
- package/dist/index.cjs +0 -4
- package/dist/theme.css.cjs +0 -14
- package/dist/tokens.css.cjs +0 -86
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const button: ThemeComponentsStyles['button'];
|
|
@@ -5,121 +5,124 @@ 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
|
-
const button = makeComponentTheme(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
selectors: {
|
|
21
|
-
"&:hover:not(:disabled)": {
|
|
22
|
-
backgroundColor: hoverBackgroundColor
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
clickable
|
|
27
|
-
]),
|
|
28
|
-
variants: {
|
|
29
|
-
variant: {
|
|
30
|
-
solid: style({
|
|
31
|
-
color: vars.color.white,
|
|
32
|
-
backgroundColor: intentColor,
|
|
33
|
-
border: "none"
|
|
8
|
+
const button = makeComponentTheme(
|
|
9
|
+
"button",
|
|
10
|
+
{
|
|
11
|
+
base: style([
|
|
12
|
+
atoms({
|
|
13
|
+
display: "inline-flex",
|
|
14
|
+
placeItems: "center",
|
|
15
|
+
fontSize: "medium",
|
|
16
|
+
borderRadius: "medium",
|
|
17
|
+
fontWeight: "medium",
|
|
18
|
+
// Space between `startSlot | children | endSlot`
|
|
19
|
+
gap: "small"
|
|
34
20
|
}),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
21
|
+
{
|
|
22
|
+
selectors: {
|
|
23
|
+
"&:hover:not(:disabled)": {
|
|
24
|
+
backgroundColor: hoverBackgroundColor
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
clickable
|
|
29
|
+
]),
|
|
30
|
+
variants: {
|
|
31
|
+
variant: {
|
|
32
|
+
solid: style({
|
|
33
|
+
color: vars.color.white,
|
|
34
|
+
backgroundColor: intentColor,
|
|
35
|
+
border: "none"
|
|
38
36
|
}),
|
|
39
|
-
|
|
37
|
+
outline: style([
|
|
38
|
+
atoms({
|
|
39
|
+
borderWidth: "small"
|
|
40
|
+
}),
|
|
41
|
+
{
|
|
42
|
+
color: intentColor,
|
|
43
|
+
borderStyle: "solid",
|
|
44
|
+
borderColor: intentColor,
|
|
45
|
+
background: "transparent"
|
|
46
|
+
}
|
|
47
|
+
]),
|
|
48
|
+
ghost: style({
|
|
40
49
|
color: intentColor,
|
|
41
|
-
borderStyle: "solid",
|
|
42
|
-
borderColor: intentColor,
|
|
43
50
|
background: "transparent"
|
|
44
|
-
}
|
|
45
|
-
]),
|
|
46
|
-
ghost: style({
|
|
47
|
-
color: intentColor,
|
|
48
|
-
background: "transparent"
|
|
49
|
-
})
|
|
50
|
-
},
|
|
51
|
-
size: {
|
|
52
|
-
small: style([
|
|
53
|
-
atoms({
|
|
54
|
-
paddingInline: "large"
|
|
55
|
-
}),
|
|
56
|
-
{
|
|
57
|
-
height: 40
|
|
58
|
-
}
|
|
59
|
-
]),
|
|
60
|
-
medium: style([
|
|
61
|
-
atoms({
|
|
62
|
-
paddingInline: "xlarge"
|
|
63
|
-
}),
|
|
64
|
-
{
|
|
65
|
-
height: 56
|
|
66
|
-
}
|
|
67
|
-
]),
|
|
68
|
-
large: style([
|
|
69
|
-
atoms({
|
|
70
|
-
paddingInline: "xlarge"
|
|
71
|
-
}),
|
|
72
|
-
{
|
|
73
|
-
height: 72
|
|
74
|
-
}
|
|
75
|
-
])
|
|
76
|
-
},
|
|
77
|
-
intent: {
|
|
78
|
-
neutral: style({
|
|
79
|
-
vars: {
|
|
80
|
-
[intentColor]: vars.color.primary,
|
|
81
|
-
[hoverBackgroundColor]: vars.color.primaryLight
|
|
82
|
-
}
|
|
83
|
-
}),
|
|
84
|
-
danger: style({
|
|
85
|
-
vars: {
|
|
86
|
-
[intentColor]: vars.color.danger,
|
|
87
|
-
[hoverBackgroundColor]: "#fff8f7",
|
|
88
|
-
[focusRingColor]: vars.color.danger
|
|
89
|
-
}
|
|
90
|
-
})
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
compoundVariants: [
|
|
94
|
-
{
|
|
95
|
-
variants: {
|
|
96
|
-
variant: "solid",
|
|
97
|
-
intent: "neutral"
|
|
51
|
+
})
|
|
98
52
|
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
53
|
+
size: {
|
|
54
|
+
small: style([
|
|
55
|
+
atoms({
|
|
56
|
+
paddingInline: "large"
|
|
57
|
+
}),
|
|
58
|
+
{
|
|
59
|
+
height: 40
|
|
60
|
+
}
|
|
61
|
+
]),
|
|
62
|
+
medium: style([
|
|
63
|
+
atoms({
|
|
64
|
+
paddingInline: "xlarge"
|
|
65
|
+
}),
|
|
66
|
+
{
|
|
67
|
+
height: 56
|
|
68
|
+
}
|
|
69
|
+
]),
|
|
70
|
+
large: style([
|
|
71
|
+
atoms({
|
|
72
|
+
paddingInline: "xlarge"
|
|
73
|
+
}),
|
|
74
|
+
{
|
|
75
|
+
height: 72
|
|
76
|
+
}
|
|
77
|
+
])
|
|
78
|
+
},
|
|
79
|
+
intent: {
|
|
80
|
+
neutral: style({
|
|
81
|
+
vars: {
|
|
82
|
+
[intentColor]: vars.color.primary,
|
|
83
|
+
[hoverBackgroundColor]: vars.color.primaryLight
|
|
84
|
+
}
|
|
85
|
+
}),
|
|
86
|
+
danger: style({
|
|
87
|
+
vars: {
|
|
88
|
+
[intentColor]: vars.color.danger,
|
|
89
|
+
[hoverBackgroundColor]: "#fff8f7",
|
|
90
|
+
[focusRingColor]: vars.color.danger
|
|
91
|
+
}
|
|
92
|
+
})
|
|
93
|
+
}
|
|
104
94
|
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
95
|
+
compoundVariants: [
|
|
96
|
+
{
|
|
97
|
+
variants: {
|
|
98
|
+
variant: "solid",
|
|
99
|
+
intent: "neutral"
|
|
100
|
+
},
|
|
101
|
+
style: style({
|
|
102
|
+
vars: {
|
|
103
|
+
[hoverBackgroundColor]: vars.color.primaryDark
|
|
104
|
+
}
|
|
105
|
+
})
|
|
109
106
|
},
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
{
|
|
108
|
+
variants: {
|
|
109
|
+
variant: "solid",
|
|
110
|
+
intent: "danger"
|
|
111
|
+
},
|
|
112
|
+
style: style({
|
|
113
|
+
vars: {
|
|
114
|
+
[hoverBackgroundColor]: "#f9b1a9"
|
|
115
|
+
}
|
|
116
|
+
})
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
defaultVariants: {
|
|
120
|
+
size: "small",
|
|
121
|
+
variant: "solid",
|
|
122
|
+
intent: "neutral"
|
|
115
123
|
}
|
|
116
|
-
],
|
|
117
|
-
defaultVariants: {
|
|
118
|
-
size: "small",
|
|
119
|
-
variant: "solid",
|
|
120
|
-
intent: "neutral"
|
|
121
124
|
}
|
|
122
|
-
|
|
125
|
+
);
|
|
123
126
|
endFileScope();
|
|
124
127
|
export {
|
|
125
128
|
button
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const checkbox: ThemeComponentsStyles['checkbox'];
|
|
@@ -4,58 +4,61 @@ import { style } from "@vanilla-extract/css";
|
|
|
4
4
|
import { focusable } from "./helpers.css.js";
|
|
5
5
|
import { bounceOut } from "./transitions.js";
|
|
6
6
|
setFileScope("src/components/checkbox.css.ts", "@blockle/blocks-theme-momotaro");
|
|
7
|
-
const checkbox = makeComponentTheme(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
const checkbox = makeComponentTheme(
|
|
8
|
+
"checkbox",
|
|
9
|
+
{
|
|
10
|
+
base: style([
|
|
11
|
+
{
|
|
12
|
+
display: "flex",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
justifyContent: "center",
|
|
15
|
+
inlineSize: 24,
|
|
16
|
+
blockSize: 24,
|
|
17
|
+
"@media": {
|
|
18
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
19
|
+
transition: `background-color ${vars.transition.normal}, box-shadow ${vars.transition.fast}`
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
selectors: {
|
|
23
|
+
"&:hover:not(:has(input:disabled))": {
|
|
24
|
+
backgroundColor: vars.color.primaryDark
|
|
25
|
+
},
|
|
26
|
+
"&:has(input:checked)": {
|
|
27
|
+
backgroundColor: vars.color.primary
|
|
28
|
+
}
|
|
18
29
|
}
|
|
19
30
|
},
|
|
31
|
+
atoms({
|
|
32
|
+
backgroundColor: "primaryLight",
|
|
33
|
+
borderRadius: "small"
|
|
34
|
+
}),
|
|
35
|
+
focusable
|
|
36
|
+
]),
|
|
37
|
+
icon: style({
|
|
38
|
+
inlineSize: "1rem",
|
|
39
|
+
blockSize: "1rem",
|
|
40
|
+
color: "white",
|
|
41
|
+
transform: "scale(0)",
|
|
20
42
|
selectors: {
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
43
|
+
"input:checked ~ &": {
|
|
44
|
+
transform: "scale(1)"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"@media": {
|
|
48
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
49
|
+
transition: `transform ${vars.transition.normal} ${bounceOut}`
|
|
26
50
|
}
|
|
27
51
|
}
|
|
28
|
-
},
|
|
29
|
-
atoms({
|
|
30
|
-
backgroundColor: "primaryLight",
|
|
31
|
-
borderRadius: "small"
|
|
32
52
|
}),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
transform: "scale(1)"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"@media": {
|
|
46
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
47
|
-
transition: `transform ${vars.transition.normal} ${bounceOut}`
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}),
|
|
51
|
-
label: atoms({
|
|
52
|
-
display: "flex",
|
|
53
|
-
flexDirection: "row",
|
|
54
|
-
padding: "xsmall",
|
|
55
|
-
gap: "medium",
|
|
56
|
-
cursor: "pointer"
|
|
57
|
-
})
|
|
58
|
-
});
|
|
53
|
+
label: atoms({
|
|
54
|
+
display: "flex",
|
|
55
|
+
flexDirection: "row",
|
|
56
|
+
padding: "xsmall",
|
|
57
|
+
gap: "medium",
|
|
58
|
+
cursor: "pointer"
|
|
59
|
+
})
|
|
60
|
+
}
|
|
61
|
+
);
|
|
59
62
|
endFileScope();
|
|
60
63
|
export {
|
|
61
64
|
checkbox
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const dialog: ThemeComponentsStyles['dialog'];
|
|
@@ -2,79 +2,82 @@ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
|
2
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
|
-
const dialog = makeComponentTheme(
|
|
6
|
-
dialog
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"&[open]": {
|
|
24
|
-
transform: "translate(0, 0)",
|
|
25
|
-
opacity: 1,
|
|
26
|
-
// @ts-expect-error - Vanilla Extract does not support @starting-style (yet)
|
|
27
|
-
"@starting-style": {
|
|
28
|
-
transform: "translate(0, -120px)",
|
|
29
|
-
opacity: 0
|
|
30
|
-
}
|
|
5
|
+
const dialog = makeComponentTheme(
|
|
6
|
+
"dialog",
|
|
7
|
+
{
|
|
8
|
+
dialog: style([
|
|
9
|
+
atoms({
|
|
10
|
+
display: "flex",
|
|
11
|
+
flexDirection: "column",
|
|
12
|
+
padding: "gutter",
|
|
13
|
+
border: "none",
|
|
14
|
+
overflow: "auto",
|
|
15
|
+
borderRadius: "medium",
|
|
16
|
+
boxShadow: "large"
|
|
17
|
+
}),
|
|
18
|
+
{
|
|
19
|
+
maxHeight: "90%",
|
|
20
|
+
minWidth: "300px",
|
|
21
|
+
"::backdrop": {
|
|
22
|
+
backgroundColor: "rgba(0, 0, 0, 0.5)"
|
|
31
23
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
opacity:
|
|
24
|
+
selectors: {
|
|
25
|
+
"&[open]": {
|
|
26
|
+
transform: "translate(0, 0)",
|
|
27
|
+
opacity: 1,
|
|
28
|
+
// @ts-expect-error - Vanilla Extract does not support @starting-style (yet)
|
|
29
|
+
"@starting-style": {
|
|
30
|
+
transform: "translate(0, -120px)",
|
|
31
|
+
opacity: 0
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"&[open]::backdrop": {
|
|
35
|
+
opacity: 1,
|
|
36
|
+
"@starting-style": {
|
|
37
|
+
opacity: 0
|
|
38
|
+
}
|
|
36
39
|
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
transform: "translate(0, -120px)",
|
|
44
|
-
opacity: 0,
|
|
45
|
-
transitionBehavior: "allow-discrete",
|
|
46
|
-
transitionProperty: "opacity, transform, overlay, display",
|
|
47
|
-
transitionDuration: "240ms, 160ms, 240ms, 240ms",
|
|
48
|
-
"::backdrop": {
|
|
40
|
+
},
|
|
41
|
+
// Apply the animation only if the user has not requested reduced motion
|
|
42
|
+
"@media": {
|
|
43
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
44
|
+
// Ending style
|
|
45
|
+
transform: "translate(0, -120px)",
|
|
49
46
|
opacity: 0,
|
|
50
47
|
transitionBehavior: "allow-discrete",
|
|
51
|
-
transitionProperty: "opacity, overlay, display",
|
|
52
|
-
transitionDuration: "160ms, 240ms, 240ms"
|
|
48
|
+
transitionProperty: "opacity, transform, overlay, display",
|
|
49
|
+
transitionDuration: "240ms, 160ms, 240ms, 240ms",
|
|
50
|
+
"::backdrop": {
|
|
51
|
+
opacity: 0,
|
|
52
|
+
transitionBehavior: "allow-discrete",
|
|
53
|
+
transitionProperty: "opacity, overlay, display",
|
|
54
|
+
transitionDuration: "160ms, 240ms, 240ms"
|
|
55
|
+
}
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
}
|
|
59
|
+
]),
|
|
60
|
+
variants: {
|
|
61
|
+
size: {
|
|
62
|
+
small: style({
|
|
63
|
+
width: "400px",
|
|
64
|
+
maxWidth: "min(400px, 90%)"
|
|
65
|
+
}),
|
|
66
|
+
medium: style({
|
|
67
|
+
width: "600px",
|
|
68
|
+
maxWidth: "min(600px, 90%)"
|
|
69
|
+
}),
|
|
70
|
+
large: style({
|
|
71
|
+
width: "800px",
|
|
72
|
+
maxWidth: "min(800px, 90%)"
|
|
73
|
+
})
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
defaultVariants: {
|
|
77
|
+
size: "small"
|
|
56
78
|
}
|
|
57
|
-
]),
|
|
58
|
-
variants: {
|
|
59
|
-
size: {
|
|
60
|
-
small: style({
|
|
61
|
-
width: "400px",
|
|
62
|
-
maxWidth: "min(400px, 90%)"
|
|
63
|
-
}),
|
|
64
|
-
medium: style({
|
|
65
|
-
width: "600px",
|
|
66
|
-
maxWidth: "min(600px, 90%)"
|
|
67
|
-
}),
|
|
68
|
-
large: style({
|
|
69
|
-
width: "800px",
|
|
70
|
-
maxWidth: "min(800px, 90%)"
|
|
71
|
-
})
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
defaultVariants: {
|
|
75
|
-
size: "small"
|
|
76
79
|
}
|
|
77
|
-
|
|
80
|
+
);
|
|
78
81
|
endFileScope();
|
|
79
82
|
export {
|
|
80
83
|
dialog
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const divider: ThemeComponentsStyles['divider'];
|
|
@@ -2,14 +2,17 @@ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
|
2
2
|
import { makeComponentTheme } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/divider.css.ts", "@blockle/blocks-theme-momotaro");
|
|
5
|
-
const divider = makeComponentTheme(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
const divider = makeComponentTheme(
|
|
6
|
+
"divider",
|
|
7
|
+
{
|
|
8
|
+
base: style({
|
|
9
|
+
blockSize: 1
|
|
10
|
+
}),
|
|
11
|
+
defaultVariants: {
|
|
12
|
+
color: "textLight"
|
|
13
|
+
}
|
|
11
14
|
}
|
|
12
|
-
|
|
15
|
+
);
|
|
13
16
|
endFileScope();
|
|
14
17
|
export {
|
|
15
18
|
divider
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const input: ThemeComponentsStyles['input'];
|
|
@@ -2,44 +2,47 @@ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
|
2
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
|
-
const input = makeComponentTheme(
|
|
6
|
-
input
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
5
|
+
const input = makeComponentTheme(
|
|
6
|
+
"input",
|
|
7
|
+
{
|
|
8
|
+
input: style([
|
|
9
|
+
atoms({
|
|
10
|
+
color: "text",
|
|
11
|
+
padding: "large",
|
|
12
|
+
border: "none",
|
|
13
|
+
borderRadius: "small"
|
|
14
|
+
}),
|
|
15
|
+
{
|
|
16
|
+
outline: "none",
|
|
17
|
+
background: "transparent",
|
|
18
|
+
"::placeholder": {
|
|
19
|
+
color: vars.color.textLight
|
|
20
|
+
},
|
|
21
|
+
":disabled": {}
|
|
22
|
+
}
|
|
23
|
+
]),
|
|
24
|
+
container: style([
|
|
25
|
+
{
|
|
26
|
+
minHeight: 56,
|
|
27
|
+
"@media": {
|
|
28
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
29
|
+
transition: `box-shadow ${vars.transition.fast}`
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
":focus-within": {
|
|
33
|
+
outline: "2px solid transparent",
|
|
34
|
+
outlineOffset: "2px",
|
|
35
|
+
boxShadow: `${vars.shadow.small}, ${vars.focus.boxShadow}`
|
|
28
36
|
}
|
|
29
37
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
boxShadow:
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
borderRadius: "medium",
|
|
39
|
-
boxShadow: "medium"
|
|
40
|
-
})
|
|
41
|
-
])
|
|
42
|
-
});
|
|
38
|
+
atoms({
|
|
39
|
+
backgroundColor: "white",
|
|
40
|
+
borderRadius: "medium",
|
|
41
|
+
boxShadow: "medium"
|
|
42
|
+
})
|
|
43
|
+
])
|
|
44
|
+
}
|
|
45
|
+
);
|
|
43
46
|
endFileScope();
|
|
44
47
|
export {
|
|
45
48
|
input
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const label: ThemeComponentsStyles['label'];
|
|
@@ -2,31 +2,34 @@ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
|
2
2
|
import { makeComponentTheme, vars } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/label.css.ts", "@blockle/blocks-theme-momotaro");
|
|
5
|
-
const label = makeComponentTheme(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
const label = makeComponentTheme(
|
|
6
|
+
"label",
|
|
7
|
+
{
|
|
8
|
+
base: style({}),
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
small: style({
|
|
12
|
+
fontSize: vars.fontSize.xsmall
|
|
13
|
+
}),
|
|
14
|
+
medium: style({
|
|
15
|
+
fontSize: vars.fontSize.small
|
|
16
|
+
}),
|
|
17
|
+
large: style({
|
|
18
|
+
fontSize: vars.fontSize.medium
|
|
19
|
+
})
|
|
20
|
+
},
|
|
21
|
+
required: style({
|
|
22
|
+
":after": {
|
|
23
|
+
content: '"*"',
|
|
24
|
+
marginLeft: vars.space.xsmall
|
|
25
|
+
}
|
|
17
26
|
})
|
|
18
27
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
marginLeft: vars.space.xsmall
|
|
23
|
-
}
|
|
24
|
-
})
|
|
25
|
-
},
|
|
26
|
-
defaultVariants: {
|
|
27
|
-
size: "large"
|
|
28
|
+
defaultVariants: {
|
|
29
|
+
size: "large"
|
|
30
|
+
}
|
|
28
31
|
}
|
|
29
|
-
|
|
32
|
+
);
|
|
30
33
|
endFileScope();
|
|
31
34
|
export {
|
|
32
35
|
label
|