@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.
Files changed (61) hide show
  1. package/dist/components/alert.css.d.ts.map +1 -1
  2. package/dist/components/alert.css.js +17 -9
  3. package/dist/components/button.css.d.ts.map +1 -1
  4. package/dist/components/button.css.js +23 -32
  5. package/dist/components/buttonBase.css.d.ts +1 -1
  6. package/dist/components/buttonBase.css.d.ts.map +1 -1
  7. package/dist/components/buttonBase.css.js +99 -59
  8. package/dist/components/checkbox.css.d.ts.map +1 -1
  9. package/dist/components/checkbox.css.js +49 -39
  10. package/dist/components/dialog.css.d.ts.map +1 -1
  11. package/dist/components/dialog.css.js +64 -52
  12. package/dist/components/divider.css.d.ts.map +1 -1
  13. package/dist/components/divider.css.js +28 -12
  14. package/dist/components/drawer.css.d.ts.map +1 -1
  15. package/dist/components/drawer.css.js +85 -57
  16. package/dist/components/heading.css.d.ts.map +1 -1
  17. package/dist/components/heading.css.js +13 -5
  18. package/dist/components/helpers.css.d.ts.map +1 -1
  19. package/dist/components/helpers.css.js +33 -25
  20. package/dist/components/icon.css.d.ts.map +1 -1
  21. package/dist/components/icon.css.js +26 -6
  22. package/dist/components/iconButton.css.d.ts.map +1 -1
  23. package/dist/components/iconButton.css.js +22 -11
  24. package/dist/components/index.d.ts.map +1 -1
  25. package/dist/components/index.js +4 -0
  26. package/dist/components/label.css.d.ts.map +1 -1
  27. package/dist/components/label.css.js +28 -8
  28. package/dist/components/link.css.d.ts.map +1 -1
  29. package/dist/components/link.css.js +46 -26
  30. package/dist/components/menu.css.d.ts +3 -0
  31. package/dist/components/menu.css.d.ts.map +1 -0
  32. package/dist/components/menu.css.js +83 -0
  33. package/dist/components/popover.css.js +31 -31
  34. package/dist/components/progress.css.d.ts.map +1 -1
  35. package/dist/components/progress.css.js +32 -24
  36. package/dist/components/radio.css.d.ts.map +1 -1
  37. package/dist/components/radio.css.js +50 -38
  38. package/dist/components/select.css.d.ts.map +1 -1
  39. package/dist/components/select.css.js +54 -44
  40. package/dist/components/slider.css.d.ts.map +1 -1
  41. package/dist/components/slider.css.js +82 -46
  42. package/dist/components/spinner.css.d.ts.map +1 -1
  43. package/dist/components/spinner.css.js +28 -12
  44. package/dist/components/switch.css.d.ts.map +1 -1
  45. package/dist/components/switch.css.js +48 -46
  46. package/dist/components/tabs.css.d.ts +3 -0
  47. package/dist/components/tabs.css.d.ts.map +1 -0
  48. package/dist/components/tabs.css.js +102 -0
  49. package/dist/components/tag.css.d.ts.map +1 -1
  50. package/dist/components/tag.css.js +66 -57
  51. package/dist/components/text.css.d.ts.map +1 -1
  52. package/dist/components/text.css.js +13 -5
  53. package/dist/components/textInput.css.d.ts.map +1 -1
  54. package/dist/components/textInput.css.js +30 -28
  55. package/dist/components/textarea.css.d.ts.map +1 -1
  56. package/dist/components/textarea.css.js +30 -28
  57. package/dist/components/toast.css.d.ts.map +1 -1
  58. package/dist/components/toast.css.js +32 -24
  59. package/dist/components/tooltip.css.d.ts.map +1 -1
  60. package/dist/components/tooltip.css.js +17 -10
  61. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { makeComponentTheme } from "@blockle/blocks-core";
2
+ import { makeComponentTheme, layers } from "@blockle/blocks-core";
3
3
  import { style, fallbackVar, createVar } from "@vanilla-extract/css";
4
4
  setFileScope("src/components/divider.css.ts", "@blockle/blocks-theme-momotaro");
5
5
  const sizeVar = createVar();
@@ -7,28 +7,44 @@ const divider = makeComponentTheme(
7
7
  "divider",
8
8
  {
9
9
  root: style({
10
- ":before": {
11
- blockSize: fallbackVar(sizeVar, "1px")
12
- },
13
- ":after": {
14
- blockSize: fallbackVar(sizeVar, "1px")
10
+ "@layer": {
11
+ [layers.theme]: {
12
+ ":before": {
13
+ blockSize: fallbackVar(sizeVar, "1px")
14
+ },
15
+ ":after": {
16
+ blockSize: fallbackVar(sizeVar, "1px")
17
+ }
18
+ }
15
19
  }
16
20
  }),
17
21
  variants: {
18
22
  size: {
19
23
  1: style({
20
- vars: {
21
- [sizeVar]: "1px"
24
+ "@layer": {
25
+ [layers.theme]: {
26
+ vars: {
27
+ [sizeVar]: "1px"
28
+ }
29
+ }
22
30
  }
23
31
  }),
24
32
  2: style({
25
- vars: {
26
- [sizeVar]: "2px"
33
+ "@layer": {
34
+ [layers.theme]: {
35
+ vars: {
36
+ [sizeVar]: "2px"
37
+ }
38
+ }
27
39
  }
28
40
  }),
29
41
  3: style({
30
- vars: {
31
- [sizeVar]: "3px"
42
+ "@layer": {
43
+ [layers.theme]: {
44
+ vars: {
45
+ [sizeVar]: "3px"
46
+ }
47
+ }
32
48
  }
33
49
  })
34
50
  }
@@ -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;AAM9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,CA8FlD,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,CA0HlD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { makeComponentTheme, vars, atoms } from "@blockle/blocks-core";
2
+ import { makeComponentTheme, layers, vars } 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();
@@ -7,89 +7,117 @@ const drawerSize = createVar();
7
7
  const drawer = makeComponentTheme(
8
8
  "drawer",
9
9
  {
10
- root: style([
11
- atoms({
12
- border: "none"
13
- }),
14
- {
15
- backgroundColor: vars.colorRole.surface.raised,
16
- color: vars.colorRole.text.default,
17
- selectors: {
18
- "&[open]": {
19
- transform: "translate(0, 0)",
20
- opacity: 1,
21
- "@starting-style": {
22
- transform: startingTransform,
23
- opacity: 0
10
+ root: style({
11
+ "@layer": {
12
+ [layers.theme]: {
13
+ border: "none",
14
+ backgroundColor: vars.colorRole.surface.raised,
15
+ color: vars.colorRole.text.default,
16
+ selectors: {
17
+ "&[open]": {
18
+ transform: "translate(0, 0)",
19
+ opacity: 1,
20
+ "@starting-style": {
21
+ transform: startingTransform,
22
+ opacity: 0
23
+ }
24
+ },
25
+ "&[open]::backdrop": {
26
+ backgroundColor: vars.colorRole.overlay.default,
27
+ opacity: 1,
28
+ "@starting-style": {
29
+ opacity: 0
30
+ }
24
31
  }
25
32
  },
26
- "&[open]::backdrop": {
27
- backgroundColor: vars.colorRole.overlay.default,
28
- opacity: 1,
29
- "@starting-style": {
30
- opacity: 0
31
- }
32
- }
33
- },
34
- "@media": {
35
- "(prefers-reduced-motion: no-preference)": {
36
- // Ending style
37
- transform: startingTransform,
38
- opacity: 0,
39
- transitionBehavior: "allow-discrete",
40
- transitionProperty: "opacity, transform, overlay, display",
41
- transitionDuration: "240ms, 160ms, 240ms, 240ms",
42
- "::backdrop": {
33
+ "@media": {
34
+ "(prefers-reduced-motion: no-preference)": {
35
+ // Ending style
36
+ transform: startingTransform,
43
37
  opacity: 0,
44
38
  transitionBehavior: "allow-discrete",
45
- transitionProperty: "opacity, overlay, display",
46
- transitionDuration: "160ms, 240ms, 240ms"
39
+ transitionProperty: "opacity, transform, overlay, display",
40
+ transitionDuration: "240ms, 160ms, 240ms, 240ms",
41
+ "::backdrop": {
42
+ opacity: 0,
43
+ transitionBehavior: "allow-discrete",
44
+ transitionProperty: "opacity, overlay, display",
45
+ transitionDuration: "160ms, 240ms, 240ms"
46
+ }
47
47
  }
48
48
  }
49
49
  }
50
50
  }
51
- ]),
51
+ }),
52
52
  variants: {
53
53
  placement: {
54
54
  top: style({
55
- vars: {
56
- [startingTransform]: "translate(0, -100%)"
57
- },
58
- height: drawerSize
55
+ "@layer": {
56
+ [layers.theme]: {
57
+ vars: {
58
+ [startingTransform]: "translate(0, -100%)"
59
+ },
60
+ height: drawerSize
61
+ }
62
+ }
59
63
  }),
60
64
  right: style({
61
- vars: {
62
- [startingTransform]: "translate(100%, 0)"
63
- },
64
- width: drawerSize
65
+ "@layer": {
66
+ [layers.theme]: {
67
+ vars: {
68
+ [startingTransform]: "translate(100%, 0)"
69
+ },
70
+ width: drawerSize
71
+ }
72
+ }
65
73
  }),
66
74
  bottom: style({
67
- vars: {
68
- [startingTransform]: "translate(0, 100%)"
69
- },
70
- height: drawerSize
75
+ "@layer": {
76
+ [layers.theme]: {
77
+ vars: {
78
+ [startingTransform]: "translate(0, 100%)"
79
+ },
80
+ height: drawerSize
81
+ }
82
+ }
71
83
  }),
72
84
  left: style({
73
- vars: {
74
- [startingTransform]: "translate(-100%, 0)"
75
- },
76
- width: drawerSize
85
+ "@layer": {
86
+ [layers.theme]: {
87
+ vars: {
88
+ [startingTransform]: "translate(-100%, 0)"
89
+ },
90
+ width: drawerSize
91
+ }
92
+ }
77
93
  })
78
94
  },
79
95
  size: {
80
96
  small: style({
81
- vars: {
82
- [drawerSize]: "min(300px, 100%)"
97
+ "@layer": {
98
+ [layers.theme]: {
99
+ vars: {
100
+ [drawerSize]: "min(300px, 100%)"
101
+ }
102
+ }
83
103
  }
84
104
  }),
85
105
  medium: style({
86
- vars: {
87
- [drawerSize]: "min(480px, 100%)"
106
+ "@layer": {
107
+ [layers.theme]: {
108
+ vars: {
109
+ [drawerSize]: "min(480px, 100%)"
110
+ }
111
+ }
88
112
  }
89
113
  }),
90
114
  large: style({
91
- vars: {
92
- [drawerSize]: "min(640px, 100%)"
115
+ "@layer": {
116
+ [layers.theme]: {
117
+ vars: {
118
+ [drawerSize]: "min(640px, 100%)"
119
+ }
120
+ }
93
121
  }
94
122
  })
95
123
  }
@@ -1 +1 @@
1
- {"version":3,"file":"heading.css.d.ts","sourceRoot":"","sources":["../../src/components/heading.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAepD,CAAC"}
1
+ {"version":3,"file":"heading.css.d.ts","sourceRoot":"","sources":["../../src/components/heading.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAuBpD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { makeComponentTheme, vars } from "@blockle/blocks-core";
2
+ import { makeComponentTheme, vars, layers } from "@blockle/blocks-core";
3
3
  import { style } from "@vanilla-extract/css";
4
4
  setFileScope("src/components/heading.css.ts", "@blockle/blocks-theme-momotaro");
5
5
  const heading = makeComponentTheme(
@@ -7,10 +7,18 @@ const heading = makeComponentTheme(
7
7
  {
8
8
  variants: {
9
9
  color: {
10
- default: style({ color: vars.colorRole.text.default }),
11
- muted: style({ color: vars.colorRole.text.muted }),
12
- disabled: style({ color: vars.colorRole.text.disabled }),
13
- inverse: style({ color: vars.colorRole.text.inverse })
10
+ default: style({
11
+ "@layer": { [layers.theme]: { color: vars.colorRole.text.default } }
12
+ }),
13
+ muted: style({
14
+ "@layer": { [layers.theme]: { color: vars.colorRole.text.muted } }
15
+ }),
16
+ disabled: style({
17
+ "@layer": { [layers.theme]: { color: vars.colorRole.text.disabled } }
18
+ }),
19
+ inverse: style({
20
+ "@layer": { [layers.theme]: { color: vars.colorRole.text.inverse } }
21
+ })
14
22
  }
15
23
  },
16
24
  defaultVariants: {
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.css.d.ts","sourceRoot":"","sources":["../../src/components/helpers.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,oBAAc,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,SAAS,QAyBpB,CAAC;AAEH,eAAO,MAAM,SAAS,QAOpB,CAAC"}
1
+ {"version":3,"file":"helpers.css.d.ts","sourceRoot":"","sources":["../../src/components/helpers.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,oBAAc,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,SAAS,QA6BpB,CAAC;AAEH,eAAO,MAAM,SAAS,QAWpB,CAAC"}
@@ -1,39 +1,47 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { vars } from "@blockle/blocks-core";
2
+ import { vars, layers } from "@blockle/blocks-core";
3
3
  import { style, createVar } from "@vanilla-extract/css";
4
4
  setFileScope("src/components/helpers.css.ts", "@blockle/blocks-theme-momotaro");
5
5
  createVar();
6
6
  const focusable = style({
7
- // '@media': {
8
- // '(prefers-reduced-motion: no-preference)': {
9
- // transition: `outline ${vars.transition.fast}`,
10
- // },
11
- // },
12
- ":focus-visible": {
13
- outline: `2px solid ${vars.colorRole.focusRing.color}`,
14
- outlineOffset: "2px"
15
- },
16
- selectors: {
17
- '&:disabled, &[disabled], &[aria-disabled="true"]': {
18
- opacity: 0.5,
19
- cursor: "auto",
20
- pointerEvents: "none"
21
- },
22
- "&:has(:focus-visible:not(button))": {
23
- outline: `2px solid ${vars.colorRole.focusRing.color}`,
24
- outlineOffset: "2px"
25
- },
26
- "&:has(:disabled)": {
27
- opacity: 0.5,
28
- cursor: "auto"
7
+ "@layer": {
8
+ [layers.theme]: {
9
+ // '@media': {
10
+ // '(prefers-reduced-motion: no-preference)': {
11
+ // transition: `outline ${vars.transition.fast}`,
12
+ // },
13
+ // },
14
+ ":focus-visible": {
15
+ outline: `2px solid ${vars.colorRole.focusRing.color}`,
16
+ outlineOffset: "2px"
17
+ },
18
+ selectors: {
19
+ '&:disabled, &[disabled], &[aria-disabled="true"]': {
20
+ opacity: 0.5,
21
+ cursor: "auto",
22
+ pointerEvents: "none"
23
+ },
24
+ "&:has(:focus-visible:not(button))": {
25
+ outline: `2px solid ${vars.colorRole.focusRing.color}`,
26
+ outlineOffset: "2px"
27
+ },
28
+ "&:has(:disabled)": {
29
+ opacity: 0.5,
30
+ cursor: "auto"
31
+ }
32
+ }
29
33
  }
30
34
  }
31
35
  });
32
36
  const clickable = style([
33
37
  focusable,
34
38
  {
35
- ":active": {
36
- transform: "scale(0.975)"
39
+ "@layer": {
40
+ [layers.theme]: {
41
+ ":active": {
42
+ transform: "scale(0.975)"
43
+ }
44
+ }
37
45
  }
38
46
  }
39
47
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"icon.css.d.ts","sourceRoot":"","sources":["../../src/components/icon.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAwB7C,CAAC"}
1
+ {"version":3,"file":"icon.css.d.ts","sourceRoot":"","sources":["../../src/components/icon.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,IAAI,EAAE,qBAAqB,CAAC,MAAM,CA4C7C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { makeComponentTheme, pixelsToRem } from "@blockle/blocks-core";
2
+ import { makeComponentTheme, layers, pixelsToRem } from "@blockle/blocks-core";
3
3
  import { style } from "@vanilla-extract/css";
4
4
  setFileScope("src/components/icon.css.ts", "@blockle/blocks-theme-momotaro");
5
5
  const icon = makeComponentTheme("icon", {
@@ -7,19 +7,39 @@ const icon = makeComponentTheme("icon", {
7
7
  variants: {
8
8
  size: {
9
9
  xsmall: style({
10
- width: pixelsToRem(12)
10
+ "@layer": {
11
+ [layers.theme]: {
12
+ width: pixelsToRem(12)
13
+ }
14
+ }
11
15
  }),
12
16
  small: style({
13
- width: pixelsToRem(16)
17
+ "@layer": {
18
+ [layers.theme]: {
19
+ width: pixelsToRem(16)
20
+ }
21
+ }
14
22
  }),
15
23
  medium: style({
16
- width: pixelsToRem(32)
24
+ "@layer": {
25
+ [layers.theme]: {
26
+ width: pixelsToRem(32)
27
+ }
28
+ }
17
29
  }),
18
30
  large: style({
19
- width: pixelsToRem(48)
31
+ "@layer": {
32
+ [layers.theme]: {
33
+ width: pixelsToRem(48)
34
+ }
35
+ }
20
36
  }),
21
37
  xlarge: style({
22
- width: pixelsToRem(64)
38
+ "@layer": {
39
+ [layers.theme]: {
40
+ width: pixelsToRem(64)
41
+ }
42
+ }
23
43
  })
24
44
  }
25
45
  },
@@ -1 +1 @@
1
- {"version":3,"file":"iconButton.css.d.ts","sourceRoot":"","sources":["../../src/components/iconButton.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AA8B9B,eAAO,MAAM,UAAU,EAAE,qBAAqB,CAAC,YAAY,CA0BvD,CAAC"}
1
+ {"version":3,"file":"iconButton.css.d.ts","sourceRoot":"","sources":["../../src/components/iconButton.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAqC9B,eAAO,MAAM,UAAU,EAAE,qBAAqB,CAAC,YAAY,CAgCvD,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { makeComponentTheme, atoms } from "@blockle/blocks-core";
2
+ import { makeComponentTheme, layers } from "@blockle/blocks-core";
3
3
  import { style, globalStyle } from "@vanilla-extract/css";
4
4
  import { buttonIntent, buttonRadius, buttonVariant, buttonBase, buttonHeight } from "./buttonBase.css.js";
5
5
  setFileScope("src/components/iconButton.css.ts", "@blockle/blocks-theme-momotaro");
6
+ const sizeStyle = (blockSize) => style({ "@layer": { [layers.theme]: { blockSize } } });
6
7
  const sizeStyles = {
7
- small: style({ blockSize: buttonHeight.small }),
8
- medium: style({ blockSize: buttonHeight.medium }),
9
- large: style({ blockSize: buttonHeight.large })
8
+ small: sizeStyle(buttonHeight.small),
9
+ medium: sizeStyle(buttonHeight.medium),
10
+ large: sizeStyle(buttonHeight.large)
10
11
  };
11
12
  const iconSize = {
12
13
  small: 20,
@@ -15,18 +16,26 @@ const iconSize = {
15
16
  };
16
17
  for (const key of ["small", "medium", "large"]) {
17
18
  globalStyle(`${sizeStyles[key]} > svg`, {
18
- inlineSize: iconSize[key],
19
- blockSize: iconSize[key]
19
+ "@layer": {
20
+ [layers.theme]: {
21
+ inlineSize: iconSize[key],
22
+ blockSize: iconSize[key]
23
+ }
24
+ }
20
25
  });
21
26
  }
22
27
  const iconButton = makeComponentTheme("iconButton", {
23
28
  root: style([
24
29
  buttonBase,
25
- atoms({ justifyContent: "center" }),
26
30
  {
27
- aspectRatio: "1",
28
- flexShrink: 0,
29
- padding: 0
31
+ "@layer": {
32
+ [layers.theme]: {
33
+ justifyContent: "center",
34
+ aspectRatio: "1",
35
+ flexShrink: 0,
36
+ padding: 0
37
+ }
38
+ }
30
39
  }
31
40
  ]),
32
41
  variants: {
@@ -34,7 +43,9 @@ const iconButton = makeComponentTheme("iconButton", {
34
43
  size: sizeStyles,
35
44
  shape: {
36
45
  square: buttonRadius,
37
- circle: style({ borderRadius: "50%" })
46
+ circle: style({
47
+ "@layer": { [layers.theme]: { borderRadius: "50%" } }
48
+ })
38
49
  },
39
50
  intent: buttonIntent
40
51
  },
@@ -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;AA2BlE,eAAO,MAAM,UAAU,EAAE,qBAyBxB,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;AAkClE,eAAO,MAAM,UAAU,EAAE,qBA2BxB,CAAC"}
@@ -9,6 +9,7 @@ import { icon } from "./icon.css.js";
9
9
  import { iconButton } from "./iconButton.css.js";
10
10
  import { label } from "./label.css.js";
11
11
  import { link } from "./link.css.js";
12
+ import { menu } from "./menu.css.js";
12
13
  import { popover } from "./popover.css.js";
13
14
  import { progress } from "./progress.css.js";
14
15
  import { radio } from "./radio.css.js";
@@ -16,6 +17,7 @@ import { select } from "./select.css.js";
16
17
  import { slider } from "./slider.css.js";
17
18
  import { spinner } from "./spinner.css.js";
18
19
  import { switchTheme } from "./switch.css.js";
20
+ import { tabs } from "./tabs.css.js";
19
21
  import { tag } from "./tag.css.js";
20
22
  import { text } from "./text.css.js";
21
23
  import { textarea } from "./textarea.css.js";
@@ -34,6 +36,7 @@ const components = {
34
36
  iconButton,
35
37
  label,
36
38
  link,
39
+ menu,
37
40
  popover,
38
41
  progress,
39
42
  radio,
@@ -41,6 +44,7 @@ const components = {
41
44
  slider,
42
45
  spinner,
43
46
  switch: switchTheme,
47
+ tabs,
44
48
  tag,
45
49
  text,
46
50
  textarea,
@@ -1 +1 @@
1
- {"version":3,"file":"label.css.d.ts","sourceRoot":"","sources":["../../src/components/label.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,KAAK,EAAE,qBAAqB,CAAC,OAAO,CA6BhD,CAAC"}
1
+ {"version":3,"file":"label.css.d.ts","sourceRoot":"","sources":["../../src/components/label.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAiDhD,CAAC"}
@@ -1,29 +1,49 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { makeComponentTheme, vars } from "@blockle/blocks-core";
2
+ import { makeComponentTheme, vars, layers } 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
5
  const label = makeComponentTheme(
6
6
  "label",
7
7
  {
8
8
  root: style({
9
- letterSpacing: vars.letterSpacing.wide
9
+ "@layer": {
10
+ [layers.theme]: {
11
+ letterSpacing: vars.letterSpacing.wide
12
+ }
13
+ }
10
14
  }),
11
15
  variants: {
12
16
  size: {
13
17
  small: style({
14
- fontSize: vars.fontSize.xsmall
18
+ "@layer": {
19
+ [layers.theme]: {
20
+ fontSize: vars.fontSize.xsmall
21
+ }
22
+ }
15
23
  }),
16
24
  medium: style({
17
- fontSize: vars.fontSize.small
25
+ "@layer": {
26
+ [layers.theme]: {
27
+ fontSize: vars.fontSize.small
28
+ }
29
+ }
18
30
  }),
19
31
  large: style({
20
- fontSize: vars.fontSize.medium
32
+ "@layer": {
33
+ [layers.theme]: {
34
+ fontSize: vars.fontSize.medium
35
+ }
36
+ }
21
37
  })
22
38
  },
23
39
  required: style({
24
- ":after": {
25
- content: '"*"',
26
- marginLeft: vars.space[1]
40
+ "@layer": {
41
+ [layers.theme]: {
42
+ ":after": {
43
+ content: '"*"',
44
+ marginLeft: vars.space[1]
45
+ }
46
+ }
27
47
  }
28
48
  })
29
49
  },
@@ -1 +1 @@
1
- {"version":3,"file":"link.css.d.ts","sourceRoot":"","sources":["../../src/components/link.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,IAAI,EAAE,qBAAqB,CAAC,MAAM,CA8C7C,CAAC"}
1
+ {"version":3,"file":"link.css.d.ts","sourceRoot":"","sources":["../../src/components/link.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAkE7C,CAAC"}