@blockle/blocks-theme-momotaro 7.2.0 → 7.3.1
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.d.ts.map +1 -1
- package/dist/components/alert.css.js +17 -9
- package/dist/components/button.css.d.ts.map +1 -1
- package/dist/components/button.css.js +23 -32
- package/dist/components/buttonBase.css.d.ts +1 -1
- package/dist/components/buttonBase.css.d.ts.map +1 -1
- package/dist/components/buttonBase.css.js +99 -59
- package/dist/components/checkbox.css.d.ts.map +1 -1
- package/dist/components/checkbox.css.js +49 -39
- package/dist/components/dialog.css.d.ts.map +1 -1
- package/dist/components/dialog.css.js +64 -52
- package/dist/components/divider.css.d.ts.map +1 -1
- package/dist/components/divider.css.js +28 -12
- package/dist/components/drawer.css.d.ts.map +1 -1
- package/dist/components/drawer.css.js +85 -57
- package/dist/components/heading.css.d.ts.map +1 -1
- package/dist/components/heading.css.js +13 -5
- package/dist/components/helpers.css.d.ts.map +1 -1
- package/dist/components/helpers.css.js +33 -25
- package/dist/components/icon.css.d.ts.map +1 -1
- package/dist/components/icon.css.js +26 -6
- package/dist/components/iconButton.css.d.ts.map +1 -1
- package/dist/components/iconButton.css.js +22 -11
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -0
- package/dist/components/label.css.d.ts.map +1 -1
- package/dist/components/label.css.js +28 -8
- package/dist/components/link.css.d.ts.map +1 -1
- package/dist/components/link.css.js +46 -26
- package/dist/components/menu.css.d.ts +3 -0
- package/dist/components/menu.css.d.ts.map +1 -0
- package/dist/components/menu.css.js +83 -0
- package/dist/components/popover.css.js +31 -31
- package/dist/components/progress.css.d.ts.map +1 -1
- package/dist/components/progress.css.js +32 -24
- package/dist/components/radio.css.d.ts.map +1 -1
- package/dist/components/radio.css.js +50 -38
- package/dist/components/select.css.d.ts.map +1 -1
- package/dist/components/select.css.js +54 -44
- package/dist/components/slider.css.d.ts.map +1 -1
- package/dist/components/slider.css.js +82 -46
- package/dist/components/spinner.css.d.ts.map +1 -1
- package/dist/components/spinner.css.js +28 -12
- package/dist/components/switch.css.d.ts.map +1 -1
- package/dist/components/switch.css.js +48 -46
- package/dist/components/tabs.css.d.ts +3 -0
- package/dist/components/tabs.css.d.ts.map +1 -0
- package/dist/components/tabs.css.js +102 -0
- package/dist/components/tag.css.d.ts.map +1 -1
- package/dist/components/tag.css.js +66 -57
- package/dist/components/text.css.d.ts.map +1 -1
- package/dist/components/text.css.js +13 -5
- package/dist/components/textInput.css.d.ts.map +1 -1
- package/dist/components/textInput.css.js +30 -28
- package/dist/components/textarea.css.d.ts.map +1 -1
- package/dist/components/textarea.css.js +30 -28
- package/dist/components/toast.css.d.ts.map +1 -1
- package/dist/components/toast.css.js +32 -24
- package/dist/components/tooltip.css.d.ts.map +1 -1
- package/dist/components/tooltip.css.js +17 -10
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme, vars,
|
|
2
|
+
import { makeComponentTheme, vars, layers } 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/textInput.css.ts", "@blockle/blocks-theme-momotaro");
|
|
@@ -8,39 +8,41 @@ const textInput = makeComponentTheme(
|
|
|
8
8
|
{
|
|
9
9
|
root: style([
|
|
10
10
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
"@layer": {
|
|
12
|
+
[layers.theme]: {
|
|
13
|
+
minHeight: 40,
|
|
14
|
+
backgroundColor: vars.colorRole.surface.raised,
|
|
15
|
+
display: "flex",
|
|
16
|
+
paddingInline: vars.space[3],
|
|
17
|
+
paddingBlock: vars.space[2],
|
|
18
|
+
borderRadius: vars.borderRadius[2],
|
|
19
|
+
boxShadow: vars.colorRole.shadow[2],
|
|
20
|
+
// Space between `startSlot | children | endSlot`
|
|
21
|
+
gap: vars.space[2],
|
|
22
|
+
"@media": {
|
|
23
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
24
|
+
transition: `box-shadow ${vars.transition.fast}`
|
|
25
|
+
}
|
|
26
|
+
}
|
|
16
27
|
}
|
|
17
28
|
}
|
|
18
29
|
},
|
|
19
|
-
atoms({
|
|
20
|
-
display: "flex",
|
|
21
|
-
paddingInline: 3,
|
|
22
|
-
paddingBlock: 2,
|
|
23
|
-
borderRadius: 2,
|
|
24
|
-
boxShadow: 2,
|
|
25
|
-
// Space between `startSlot | children | endSlot`
|
|
26
|
-
gap: 2
|
|
27
|
-
}),
|
|
28
30
|
focusable
|
|
29
31
|
]),
|
|
30
|
-
input: style(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
input: style({
|
|
33
|
+
"@layer": {
|
|
34
|
+
[layers.theme]: {
|
|
35
|
+
border: "none",
|
|
36
|
+
backgroundColor: "transparent",
|
|
37
|
+
outline: "none",
|
|
38
|
+
color: vars.colorRole.text.default,
|
|
39
|
+
"::placeholder": {
|
|
40
|
+
color: vars.colorRole.text.muted
|
|
41
|
+
},
|
|
42
|
+
":disabled": {}
|
|
43
|
+
}
|
|
42
44
|
}
|
|
43
|
-
|
|
45
|
+
})
|
|
44
46
|
}
|
|
45
47
|
);
|
|
46
48
|
endFileScope();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.css.d.ts","sourceRoot":"","sources":["../../src/components/textarea.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,QAAQ,EAAE,qBAAqB,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"textarea.css.d.ts","sourceRoot":"","sources":["../../src/components/textarea.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,QAAQ,EAAE,qBAAqB,CAAC,UAAU,CAyCtD,CAAC"}
|
|
@@ -1,44 +1,46 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme, vars,
|
|
2
|
+
import { makeComponentTheme, vars, layers } 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/textarea.css.ts", "@blockle/blocks-theme-momotaro");
|
|
6
6
|
const textarea = makeComponentTheme(
|
|
7
7
|
"textarea",
|
|
8
8
|
{
|
|
9
|
-
input: style(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
input: style({
|
|
10
|
+
"@layer": {
|
|
11
|
+
[layers.theme]: {
|
|
12
|
+
paddingInline: vars.space[3],
|
|
13
|
+
border: "none",
|
|
14
|
+
backgroundColor: "transparent",
|
|
15
|
+
borderRadius: "inherit",
|
|
16
|
+
outline: "none",
|
|
17
|
+
color: vars.colorRole.text.default,
|
|
18
|
+
"::placeholder": {
|
|
19
|
+
color: vars.colorRole.text.muted
|
|
20
|
+
},
|
|
21
|
+
":disabled": {}
|
|
22
|
+
}
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
}),
|
|
25
25
|
root: style([
|
|
26
26
|
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
"@layer": {
|
|
28
|
+
[layers.theme]: {
|
|
29
|
+
overflow: "auto",
|
|
30
|
+
minHeight: 96,
|
|
31
|
+
maxHeight: 240,
|
|
32
|
+
backgroundColor: vars.colorRole.surface.raised,
|
|
33
|
+
paddingBlock: vars.space[2],
|
|
34
|
+
borderRadius: vars.borderRadius[2],
|
|
35
|
+
boxShadow: vars.colorRole.shadow[2],
|
|
36
|
+
"@media": {
|
|
37
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
38
|
+
transition: `box-shadow ${vars.transition.fast}`
|
|
39
|
+
}
|
|
40
|
+
}
|
|
34
41
|
}
|
|
35
42
|
}
|
|
36
43
|
},
|
|
37
|
-
atoms({
|
|
38
|
-
paddingBlock: 2,
|
|
39
|
-
borderRadius: 2,
|
|
40
|
-
boxShadow: 2
|
|
41
|
-
}),
|
|
42
44
|
focusable
|
|
43
45
|
])
|
|
44
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.css.d.ts","sourceRoot":"","sources":["../../src/components/toast.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"toast.css.d.ts","sourceRoot":"","sources":["../../src/components/toast.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AA+B9B,eAAO,MAAM,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAqChD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme,
|
|
2
|
+
import { makeComponentTheme, vars, layers } from "@blockle/blocks-core";
|
|
3
3
|
import { style, keyframes, createVar } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/toast.css.ts", "@blockle/blocks-theme-momotaro");
|
|
5
5
|
const enterTranslate = createVar();
|
|
@@ -8,41 +8,49 @@ const toastEnter = keyframes({
|
|
|
8
8
|
to: { opacity: 1, scale: 1, translate: "0 0" }
|
|
9
9
|
});
|
|
10
10
|
const top = style({
|
|
11
|
-
|
|
12
|
-
[
|
|
11
|
+
"@layer": {
|
|
12
|
+
[layers.theme]: {
|
|
13
|
+
vars: {
|
|
14
|
+
[enterTranslate]: "0 -20%"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
13
17
|
}
|
|
14
18
|
});
|
|
15
19
|
const bottom = style({
|
|
16
|
-
|
|
17
|
-
[
|
|
20
|
+
"@layer": {
|
|
21
|
+
[layers.theme]: {
|
|
22
|
+
vars: {
|
|
23
|
+
[enterTranslate]: "0 20%"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
18
26
|
}
|
|
19
27
|
});
|
|
20
28
|
const toast = makeComponentTheme(
|
|
21
29
|
"toast",
|
|
22
30
|
{
|
|
23
|
-
root: style(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
root: style({
|
|
32
|
+
"@layer": {
|
|
33
|
+
[layers.theme]: {
|
|
34
|
+
gap: vars.space[2],
|
|
35
|
+
padding: vars.space[2],
|
|
36
|
+
maxWidth: "min(100%, 400px)"
|
|
37
|
+
}
|
|
30
38
|
}
|
|
31
|
-
|
|
32
|
-
toast: style(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
}),
|
|
40
|
+
toast: style({
|
|
41
|
+
"@layer": {
|
|
42
|
+
[layers.theme]: {
|
|
43
|
+
boxShadow: vars.colorRole.shadow[3],
|
|
44
|
+
"@media": {
|
|
45
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
46
|
+
animationName: toastEnter,
|
|
47
|
+
animationDuration: "240ms",
|
|
48
|
+
animationTimingFunction: "ease-out"
|
|
49
|
+
}
|
|
42
50
|
}
|
|
43
51
|
}
|
|
44
52
|
}
|
|
45
|
-
|
|
53
|
+
}),
|
|
46
54
|
variants: {
|
|
47
55
|
placement: {
|
|
48
56
|
top,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.css.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,OAAO,EAAE,qBAAqB,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"tooltip.css.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAiCpD,CAAC"}
|
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme, vars,
|
|
2
|
+
import { makeComponentTheme, vars, layers } 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 { surface, text } = vars.colorRole;
|
|
6
6
|
const tooltip = makeComponentTheme(
|
|
7
7
|
"tooltip",
|
|
8
8
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}),
|
|
9
|
+
// No styles of its own: it sits on the popover surface, which sets the padding
|
|
10
|
+
root: "",
|
|
12
11
|
variants: {
|
|
13
12
|
intent: {
|
|
14
13
|
// Inverse of the page: dark on light, light on dark
|
|
15
14
|
primary: style({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
"@layer": {
|
|
16
|
+
[layers.theme]: {
|
|
17
|
+
backgroundColor: `color-mix(in srgb, ${surface.inverse} 80%, transparent)`,
|
|
18
|
+
boxShadow: `0 0 0 1px color-mix(in srgb, ${text.inverse} 10%, transparent)`,
|
|
19
|
+
color: text.inverse
|
|
20
|
+
}
|
|
21
|
+
}
|
|
19
22
|
}),
|
|
20
23
|
// Same as the page
|
|
21
24
|
secondary: style({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
"@layer": {
|
|
26
|
+
[layers.theme]: {
|
|
27
|
+
backgroundColor: `color-mix(in srgb, ${surface.default} 80%, transparent)`,
|
|
28
|
+
boxShadow: `0 0 0 1px color-mix(in srgb, ${text.default} 10%, transparent)`,
|
|
29
|
+
color: text.default
|
|
30
|
+
}
|
|
31
|
+
}
|
|
25
32
|
})
|
|
26
33
|
}
|
|
27
34
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockle/blocks-theme-momotaro",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.1",
|
|
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.4.x",
|
|
38
38
|
"@vanilla-extract/css": "^1.18.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|