@blockle/blocks-theme-momotaro 1.0.5 → 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/helpers.css.d.ts +1 -1
- 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
|
@@ -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
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const link: ThemeComponentsStyles['link'];
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const popover: ThemeComponentsStyles['popover'];
|
|
@@ -2,43 +2,46 @@ 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/popover.css.ts", "@blockle/blocks-theme-momotaro");
|
|
5
|
-
const popover = makeComponentTheme(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
5
|
+
const popover = makeComponentTheme(
|
|
6
|
+
"popover",
|
|
7
|
+
{
|
|
8
|
+
base: style([
|
|
9
|
+
atoms({
|
|
10
|
+
backgroundColor: "white",
|
|
11
|
+
borderRadius: "small",
|
|
12
|
+
boxShadow: "medium",
|
|
13
|
+
padding: "medium",
|
|
14
|
+
margin: "small"
|
|
15
|
+
// Space between the popover and the anchor element
|
|
16
|
+
}),
|
|
17
|
+
{
|
|
18
|
+
width: "max-content",
|
|
19
|
+
selectors: {
|
|
20
|
+
"&:popover-open": {
|
|
21
|
+
transform: "translateY(0) scale(1)",
|
|
22
|
+
opacity: 1,
|
|
23
|
+
// @ts-expect-error - Vanilla Extract does not support @starting-style (yet)
|
|
24
|
+
"@starting-style": {
|
|
25
|
+
transform: "translateY(12px) scale(0.8)",
|
|
26
|
+
opacity: 0
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
// Apply the animation only if the user has not requested reduced motion
|
|
31
|
+
"@media": {
|
|
32
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
33
|
+
// Ending style
|
|
23
34
|
transform: "translateY(12px) scale(0.8)",
|
|
24
|
-
opacity: 0
|
|
35
|
+
opacity: 0,
|
|
36
|
+
transitionBehavior: "allow-discrete",
|
|
37
|
+
transitionProperty: "opacity, transform, overlay, display",
|
|
38
|
+
transitionDuration: "100ms"
|
|
25
39
|
}
|
|
26
40
|
}
|
|
27
|
-
},
|
|
28
|
-
// Apply the animation only if the user has not requested reduced motion
|
|
29
|
-
"@media": {
|
|
30
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
31
|
-
// Ending style
|
|
32
|
-
transform: "translateY(12px) scale(0.8)",
|
|
33
|
-
opacity: 0,
|
|
34
|
-
transitionBehavior: "allow-discrete",
|
|
35
|
-
transitionProperty: "opacity, transform, overlay, display",
|
|
36
|
-
transitionDuration: "100ms"
|
|
37
|
-
}
|
|
38
41
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
])
|
|
43
|
+
}
|
|
44
|
+
);
|
|
42
45
|
endFileScope();
|
|
43
46
|
export {
|
|
44
47
|
popover
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const progress: ThemeComponentsStyles['progress'];
|
|
@@ -10,47 +10,50 @@ const indeterminateAnimation = keyframes({
|
|
|
10
10
|
transform: "translateX(100%)"
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
const progress = makeComponentTheme(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
transition: "transform 180ms ease-out"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}),
|
|
34
|
-
variants: {
|
|
35
|
-
indeterminate: style({
|
|
13
|
+
const progress = makeComponentTheme(
|
|
14
|
+
"progress",
|
|
15
|
+
{
|
|
16
|
+
base: style([
|
|
17
|
+
{
|
|
18
|
+
height: 8
|
|
19
|
+
},
|
|
20
|
+
atoms({
|
|
21
|
+
inlineSize: "full",
|
|
22
|
+
borderRadius: "small",
|
|
23
|
+
backgroundColor: "textLight",
|
|
24
|
+
color: "primary",
|
|
25
|
+
overflow: "hidden"
|
|
26
|
+
})
|
|
27
|
+
]),
|
|
28
|
+
bar: style({
|
|
29
|
+
borderRadius: "inherit",
|
|
36
30
|
"@media": {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
32
|
+
transition: "transform 180ms ease-out"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}),
|
|
36
|
+
variants: {
|
|
37
|
+
indeterminate: style({
|
|
38
|
+
"@media": {
|
|
39
|
+
// For reduce motion we show a striped pattern instead of animating
|
|
40
|
+
"(prefers-reduced-motion: reduce)": {
|
|
41
|
+
backgroundImage: `repeating-linear-gradient(
|
|
40
42
|
45deg,
|
|
41
43
|
transparent,
|
|
42
44
|
transparent 20px,
|
|
43
45
|
${vars.color.primaryDark} 20px,
|
|
44
46
|
${vars.color.primaryDark} 40px
|
|
45
47
|
)`
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
},
|
|
49
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
50
|
+
animation: `${indeterminateAnimation} 3s ease-in-out infinite`
|
|
51
|
+
}
|
|
49
52
|
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
53
|
+
})
|
|
54
|
+
}
|
|
52
55
|
}
|
|
53
|
-
|
|
56
|
+
);
|
|
54
57
|
endFileScope();
|
|
55
58
|
export {
|
|
56
59
|
progress
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const radio: ThemeComponentsStyles['radio'];
|
|
@@ -4,59 +4,62 @@ 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/radio.css.ts", "@blockle/blocks-theme-momotaro");
|
|
7
|
-
const radio = makeComponentTheme(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
const radio = makeComponentTheme(
|
|
8
|
+
"radio",
|
|
9
|
+
{
|
|
10
|
+
base: style([
|
|
11
|
+
{
|
|
12
|
+
display: "flex",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
justifyContent: "center",
|
|
15
|
+
inlineSize: 24,
|
|
16
|
+
blockSize: 24,
|
|
17
|
+
borderRadius: 12,
|
|
18
|
+
"@media": {
|
|
19
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
20
|
+
transition: `background-color ${vars.transition.fast}, box-shadow ${vars.transition.fast}`
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
":hover": {
|
|
24
|
+
backgroundColor: vars.color.primaryDark
|
|
25
|
+
},
|
|
26
|
+
selectors: {
|
|
27
|
+
"&:has(input:checked):not(:hover)": {
|
|
28
|
+
backgroundColor: vars.color.primary
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
atoms({
|
|
33
|
+
backgroundColor: "primaryLight"
|
|
34
|
+
}),
|
|
35
|
+
focusable
|
|
36
|
+
]),
|
|
37
|
+
icon: style({
|
|
38
|
+
height: 12,
|
|
39
|
+
width: 12,
|
|
40
|
+
backgroundColor: "white",
|
|
41
|
+
borderRadius: "8px",
|
|
42
|
+
transform: "scale(0)",
|
|
16
43
|
"@media": {
|
|
17
44
|
"(prefers-reduced-motion: no-preference)": {
|
|
18
|
-
transition: `
|
|
45
|
+
transition: `transform ${vars.transition.normal} ${bounceOut}`
|
|
19
46
|
}
|
|
20
47
|
},
|
|
21
|
-
":hover": {
|
|
22
|
-
backgroundColor: vars.color.primaryDark
|
|
23
|
-
},
|
|
24
48
|
selectors: {
|
|
25
|
-
"
|
|
26
|
-
|
|
49
|
+
"input:checked ~ &": {
|
|
50
|
+
transform: "scale(1)"
|
|
27
51
|
}
|
|
28
52
|
}
|
|
29
|
-
},
|
|
30
|
-
atoms({
|
|
31
|
-
backgroundColor: "primaryLight"
|
|
32
53
|
}),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
43
|
-
transition: `transform ${vars.transition.normal} ${bounceOut}`
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
selectors: {
|
|
47
|
-
"input:checked ~ &": {
|
|
48
|
-
transform: "scale(1)"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}),
|
|
52
|
-
label: atoms({
|
|
53
|
-
display: "flex",
|
|
54
|
-
flexDirection: "row",
|
|
55
|
-
padding: "xsmall",
|
|
56
|
-
gap: "medium",
|
|
57
|
-
cursor: "pointer"
|
|
58
|
-
})
|
|
59
|
-
});
|
|
54
|
+
label: atoms({
|
|
55
|
+
display: "flex",
|
|
56
|
+
flexDirection: "row",
|
|
57
|
+
padding: "xsmall",
|
|
58
|
+
gap: "medium",
|
|
59
|
+
cursor: "pointer"
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
);
|
|
60
63
|
endFileScope();
|
|
61
64
|
export {
|
|
62
65
|
radio
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const select: ThemeComponentsStyles['select'];
|
|
@@ -3,50 +3,53 @@ 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
|
-
const select = makeComponentTheme(
|
|
7
|
-
select
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
const select = makeComponentTheme(
|
|
7
|
+
"select",
|
|
8
|
+
{
|
|
9
|
+
select: style([
|
|
10
|
+
atoms({
|
|
11
|
+
color: "text",
|
|
12
|
+
padding: "large",
|
|
13
|
+
backgroundColor: "white",
|
|
14
|
+
borderRadius: "medium",
|
|
15
|
+
boxShadow: "medium"
|
|
16
|
+
}),
|
|
17
|
+
{
|
|
18
|
+
border: "none",
|
|
19
|
+
outline: "none",
|
|
20
|
+
minHeight: 56,
|
|
21
|
+
transitionDuration: vars.transition.fast,
|
|
22
|
+
transitionProperty: "box-shadow",
|
|
23
|
+
":focus-within": {
|
|
24
|
+
outline: "2px solid transparent",
|
|
25
|
+
outlineOffset: "2px",
|
|
26
|
+
boxShadow: `${vars.shadow.small}, ${vars.focus.boxShadow}`
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
focusable
|
|
30
|
+
]),
|
|
31
|
+
variants: {
|
|
32
|
+
variant: {
|
|
33
|
+
outline: style([
|
|
34
|
+
atoms({
|
|
35
|
+
borderWidth: "small",
|
|
36
|
+
borderColor: "primary"
|
|
37
|
+
}),
|
|
38
|
+
{
|
|
39
|
+
borderStyle: "solid"
|
|
40
|
+
}
|
|
41
|
+
]),
|
|
42
|
+
solid: style({})
|
|
25
43
|
}
|
|
26
44
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
atoms({
|
|
33
|
-
borderWidth: "small",
|
|
34
|
-
borderColor: "primary"
|
|
35
|
-
}),
|
|
36
|
-
{
|
|
37
|
-
borderStyle: "solid"
|
|
38
|
-
}
|
|
39
|
-
]),
|
|
40
|
-
solid: style({})
|
|
45
|
+
icon: atoms({
|
|
46
|
+
paddingInline: "large"
|
|
47
|
+
}),
|
|
48
|
+
defaultVariants: {
|
|
49
|
+
variant: "solid"
|
|
41
50
|
}
|
|
42
|
-
},
|
|
43
|
-
icon: style({
|
|
44
|
-
paddingInline: "large"
|
|
45
|
-
}),
|
|
46
|
-
defaultVariants: {
|
|
47
|
-
variant: "solid"
|
|
48
51
|
}
|
|
49
|
-
|
|
52
|
+
);
|
|
50
53
|
endFileScope();
|
|
51
54
|
export {
|
|
52
55
|
select
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const slider: ThemeComponentsStyles['slider'];
|
|
@@ -7,88 +7,91 @@ const trackBackground = createVar();
|
|
|
7
7
|
const filledTrackBackground = createVar();
|
|
8
8
|
const thumbBackground = createVar();
|
|
9
9
|
const thumbActive = createVar();
|
|
10
|
-
const slider = makeComponentTheme(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
atoms({
|
|
16
|
-
borderRadius: "small"
|
|
10
|
+
const slider = makeComponentTheme(
|
|
11
|
+
"slider",
|
|
12
|
+
{
|
|
13
|
+
base: style({
|
|
14
|
+
blockSize: "20px"
|
|
17
15
|
}),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
]),
|
|
23
|
-
filledTrack: style({
|
|
24
|
-
backgroundColor: filledTrackBackground
|
|
25
|
-
}),
|
|
26
|
-
thumb: style([
|
|
27
|
-
{
|
|
28
|
-
backgroundColor: thumbBackground,
|
|
29
|
-
borderRadius: "50%",
|
|
30
|
-
height: "16px",
|
|
31
|
-
width: "16px",
|
|
32
|
-
boxShadow: `0 0 0 0px color-mix(in srgb, ${vars.color.primaryLight}, transparent 0%)`,
|
|
33
|
-
vars: {
|
|
34
|
-
[thumbActive]: `0 0 0 8px color-mix(in srgb, ${vars.color.primaryLight}, transparent 20%)`
|
|
35
|
-
},
|
|
36
|
-
":hover": {
|
|
37
|
-
boxShadow: thumbActive
|
|
38
|
-
},
|
|
39
|
-
":focus-visible": {
|
|
40
|
-
boxShadow: thumbActive
|
|
41
|
-
},
|
|
42
|
-
"@media": {
|
|
43
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
44
|
-
transition: "box-shadow 0.2s"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
focusable
|
|
49
|
-
]),
|
|
50
|
-
variants: {
|
|
51
|
-
size: {
|
|
52
|
-
small: style({
|
|
53
|
-
inlineSize: "100px"
|
|
16
|
+
track: style([
|
|
17
|
+
atoms({
|
|
18
|
+
borderRadius: "small"
|
|
54
19
|
}),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
20
|
+
{
|
|
21
|
+
blockSize: "4px",
|
|
22
|
+
backgroundColor: trackBackground
|
|
23
|
+
}
|
|
24
|
+
]),
|
|
25
|
+
filledTrack: style({
|
|
26
|
+
backgroundColor: filledTrackBackground
|
|
27
|
+
}),
|
|
28
|
+
thumb: style([
|
|
29
|
+
{
|
|
30
|
+
backgroundColor: thumbBackground,
|
|
31
|
+
borderRadius: "50%",
|
|
32
|
+
height: "16px",
|
|
33
|
+
width: "16px",
|
|
34
|
+
boxShadow: `0 0 0 0px color-mix(in srgb, ${vars.color.primaryLight}, transparent 0%)`,
|
|
64
35
|
vars: {
|
|
65
|
-
[
|
|
66
|
-
|
|
67
|
-
|
|
36
|
+
[thumbActive]: `0 0 0 8px color-mix(in srgb, ${vars.color.primaryLight}, transparent 20%)`
|
|
37
|
+
},
|
|
38
|
+
":hover": {
|
|
39
|
+
boxShadow: thumbActive
|
|
40
|
+
},
|
|
41
|
+
":focus-visible": {
|
|
42
|
+
boxShadow: thumbActive
|
|
43
|
+
},
|
|
44
|
+
"@media": {
|
|
45
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
46
|
+
transition: "box-shadow 0.2s"
|
|
47
|
+
}
|
|
68
48
|
}
|
|
69
|
-
}
|
|
70
|
-
|
|
49
|
+
},
|
|
50
|
+
focusable
|
|
51
|
+
]),
|
|
52
|
+
variants: {
|
|
53
|
+
size: {
|
|
54
|
+
small: style({
|
|
55
|
+
inlineSize: "100px"
|
|
56
|
+
}),
|
|
57
|
+
medium: style({
|
|
58
|
+
inlineSize: "200px"
|
|
59
|
+
}),
|
|
60
|
+
large: style({
|
|
61
|
+
inlineSize: "300px"
|
|
62
|
+
})
|
|
63
|
+
},
|
|
64
|
+
colorScheme: {
|
|
65
|
+
primary: style({
|
|
66
|
+
vars: {
|
|
67
|
+
[trackBackground]: vars.color.primaryLight,
|
|
68
|
+
[filledTrackBackground]: vars.color.primary,
|
|
69
|
+
[thumbBackground]: vars.color.primary
|
|
70
|
+
}
|
|
71
|
+
}),
|
|
72
|
+
secondary: style({
|
|
73
|
+
vars: {
|
|
74
|
+
[trackBackground]: vars.color.primaryLight,
|
|
75
|
+
[filledTrackBackground]: vars.color.secondary,
|
|
76
|
+
[thumbBackground]: vars.color.secondary
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
},
|
|
80
|
+
disabled: style({
|
|
81
|
+
pointerEvents: "none",
|
|
71
82
|
vars: {
|
|
72
|
-
[trackBackground]:
|
|
73
|
-
[filledTrackBackground]:
|
|
74
|
-
[thumbBackground]:
|
|
83
|
+
[trackBackground]: "#c0c0c0",
|
|
84
|
+
[filledTrackBackground]: "#ccc",
|
|
85
|
+
[thumbBackground]: "#c0c0c0"
|
|
75
86
|
}
|
|
76
87
|
})
|
|
77
88
|
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
[filledTrackBackground]: "#ccc",
|
|
83
|
-
[thumbBackground]: "#c0c0c0"
|
|
84
|
-
}
|
|
85
|
-
})
|
|
86
|
-
},
|
|
87
|
-
defaultVariants: {
|
|
88
|
-
size: "medium",
|
|
89
|
-
colorScheme: "primary"
|
|
89
|
+
defaultVariants: {
|
|
90
|
+
size: "medium",
|
|
91
|
+
colorScheme: "primary"
|
|
92
|
+
}
|
|
90
93
|
}
|
|
91
|
-
|
|
94
|
+
);
|
|
92
95
|
endFileScope();
|
|
93
96
|
export {
|
|
94
97
|
slider
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeComponentsStyles } from '@blockle/blocks-core';
|
|
2
|
+
export declare const spinner: ThemeComponentsStyles['spinner'];
|