@blockle/blocks-theme-momotaro 6.2.2 → 6.2.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"button.css.d.ts","sourceRoot":"","sources":["../../src/components/button.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAS9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,CAgIlD,CAAC"}
1
+ {"version":3,"file":"button.css.d.ts","sourceRoot":"","sources":["../../src/components/button.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAS9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,CAsIlD,CAAC"}
@@ -77,6 +77,12 @@ const button = makeComponentTheme(
77
77
  ])
78
78
  },
79
79
  intent: {
80
+ neutral: style({
81
+ vars: {
82
+ [intentColor]: vars.color["neutral-800"],
83
+ [hoverBackgroundColor]: vars.color["neutral-200"]
84
+ }
85
+ }),
80
86
  primary: style({
81
87
  vars: {
82
88
  [intentColor]: vars.color["primary-600"],
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.css.d.ts","sourceRoot":"","sources":["../../src/components/dialog.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,CA2ElD,CAAC"}
1
+ {"version":3,"file":"dialog.css.d.ts","sourceRoot":"","sources":["../../src/components/dialog.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,CA0ElD,CAAC"}
@@ -25,7 +25,6 @@ const dialog = makeComponentTheme(
25
25
  "&[open]": {
26
26
  transform: "translate(0, 0)",
27
27
  opacity: 1,
28
- // @ts-expect-error - typings does not support @starting-style (yet)
29
28
  "@starting-style": {
30
29
  transform: "translate(0, -120px) scale(0.95)",
31
30
  opacity: 0
@@ -1 +1 @@
1
- {"version":3,"file":"divider.css.d.ts","sourceRoot":"","sources":["../../src/components/divider.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAUpD,CAAC"}
1
+ {"version":3,"file":"divider.css.d.ts","sourceRoot":"","sources":["../../src/components/divider.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,OAAO,EAAE,qBAAqB,CAAC,SAAS,CA+BpD,CAAC"}
@@ -1,15 +1,37 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
2
  import { makeComponentTheme } from "@blockle/blocks-core";
3
- import { style } from "@vanilla-extract/css";
3
+ import { style, fallbackVar, createVar } from "@vanilla-extract/css";
4
4
  setFileScope("src/components/divider.css.ts", "@blockle/blocks-theme-momotaro");
5
+ const sizeVar = createVar();
5
6
  const divider = makeComponentTheme(
6
7
  "divider",
7
8
  {
8
9
  root: style({
9
- blockSize: 1
10
+ ":before": {
11
+ blockSize: fallbackVar(sizeVar, "1px")
12
+ },
13
+ ":after": {
14
+ blockSize: fallbackVar(sizeVar, "1px")
15
+ }
10
16
  }),
11
- defaultVariants: {
12
- color: "text-500"
17
+ variants: {
18
+ size: {
19
+ 1: style({
20
+ vars: {
21
+ [sizeVar]: "1px"
22
+ }
23
+ }),
24
+ 2: style({
25
+ vars: {
26
+ [sizeVar]: "2px"
27
+ }
28
+ }),
29
+ 3: style({
30
+ vars: {
31
+ [sizeVar]: "3px"
32
+ }
33
+ })
34
+ }
13
35
  }
14
36
  }
15
37
  );
@@ -0,0 +1,3 @@
1
+ import { ThemeComponentsStyles } from '@blockle/blocks-core';
2
+ export declare const drawer: ThemeComponentsStyles['drawer'];
3
+ //# sourceMappingURL=drawer.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.css.d.ts","sourceRoot":"","sources":["../../src/components/drawer.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,MAAM,EAAE,qBAAqB,CAAC,QAAQ,CAmElD,CAAC"}
@@ -0,0 +1,77 @@
1
+ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { makeComponentTheme, atoms } from "@blockle/blocks-core";
3
+ import { style, createVar } from "@vanilla-extract/css";
4
+ setFileScope("src/components/drawer.css.ts", "@blockle/blocks-theme-momotaro");
5
+ const startingTransform = createVar();
6
+ const drawer = makeComponentTheme(
7
+ "drawer",
8
+ {
9
+ root: style([
10
+ atoms({
11
+ border: "none"
12
+ }),
13
+ {
14
+ selectors: {
15
+ "&[open]": {
16
+ transform: "translate(0, 0)",
17
+ opacity: 1,
18
+ "@starting-style": {
19
+ transform: startingTransform,
20
+ opacity: 0
21
+ }
22
+ },
23
+ "&[open]::backdrop": {
24
+ opacity: 1,
25
+ "@starting-style": {
26
+ opacity: 0
27
+ }
28
+ }
29
+ },
30
+ "@media": {
31
+ "(prefers-reduced-motion: no-preference)": {
32
+ // Ending style
33
+ transform: startingTransform,
34
+ opacity: 0,
35
+ transitionBehavior: "allow-discrete",
36
+ transitionProperty: "opacity, transform, overlay, display",
37
+ transitionDuration: "240ms, 160ms, 240ms, 240ms",
38
+ "::backdrop": {
39
+ opacity: 0,
40
+ transitionBehavior: "allow-discrete",
41
+ transitionProperty: "opacity, overlay, display",
42
+ transitionDuration: "160ms, 240ms, 240ms"
43
+ }
44
+ }
45
+ }
46
+ }
47
+ ]),
48
+ variants: {
49
+ placement: {
50
+ top: style({
51
+ vars: {
52
+ [startingTransform]: "translate(0, -100%)"
53
+ }
54
+ }),
55
+ right: style({
56
+ vars: {
57
+ [startingTransform]: "translate(100%, 0)"
58
+ }
59
+ }),
60
+ bottom: style({
61
+ vars: {
62
+ [startingTransform]: "translate(0, 100%)"
63
+ }
64
+ }),
65
+ left: style({
66
+ vars: {
67
+ [startingTransform]: "translate(-100%, 0)"
68
+ }
69
+ })
70
+ }
71
+ }
72
+ }
73
+ );
74
+ endFileScope();
75
+ export {
76
+ drawer
77
+ };
@@ -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;AAqBlE,eAAO,MAAM,UAAU,EAAE,qBAmBxB,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;AAsBlE,eAAO,MAAM,UAAU,EAAE,qBAoBxB,CAAC"}
@@ -3,6 +3,7 @@ import { button } from "./button.css.js";
3
3
  import { checkbox } from "./checkbox.css.js";
4
4
  import { dialog } from "./dialog.css.js";
5
5
  import { divider } from "./divider.css.js";
6
+ import { drawer } from "./drawer.css.js";
6
7
  import { icon } from "./icon.css.js";
7
8
  import { label } from "./label.css.js";
8
9
  import { link } from "./link.css.js";
@@ -22,6 +23,7 @@ const components = {
22
23
  checkbox,
23
24
  dialog,
24
25
  divider,
26
+ drawer,
25
27
  icon,
26
28
  label,
27
29
  link,
@@ -1 +1 @@
1
- {"version":3,"file":"popover.css.d.ts","sourceRoot":"","sources":["../../src/components/popover.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAsCpD,CAAC"}
1
+ {"version":3,"file":"popover.css.d.ts","sourceRoot":"","sources":["../../src/components/popover.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAqCpD,CAAC"}
@@ -20,7 +20,6 @@ const popover = makeComponentTheme(
20
20
  "&:popover-open": {
21
21
  transform: "translateY(0) scale(1)",
22
22
  opacity: 1,
23
- // @ts-expect-error - Vanilla Extract does not support @starting-style (yet)
24
23
  "@starting-style": {
25
24
  transform: "translateY(12px) scale(0.8)",
26
25
  opacity: 0
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.css.d.ts","sourceRoot":"","sources":["../src/tokens.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAErE,eAAO,MAAM,MAAM,EAAE,WA8JpB,CAAC"}
1
+ {"version":3,"file":"tokens.css.d.ts","sourceRoot":"","sources":["../src/tokens.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAErE,eAAO,MAAM,MAAM,EAAE,WAyKpB,CAAC"}
@@ -104,6 +104,17 @@ const tokens = {
104
104
  700: "#2E2E2E",
105
105
  800: "#1A1A1A",
106
106
  900: "#0D0D0D"
107
+ },
108
+ neutral: {
109
+ 100: "#F7F7F7",
110
+ 200: "#E1E1E1",
111
+ 300: "#CFCFCF",
112
+ 400: "#B1B1B1",
113
+ 500: "#9E9E9E",
114
+ 600: "#7E7E7E",
115
+ 700: "#5E5E5E",
116
+ 800: "#3C3C3C",
117
+ 900: "#1A1A1A"
107
118
  }
108
119
  },
109
120
  shadow: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockle/blocks-theme-momotaro",
3
- "version": "6.2.2",
3
+ "version": "6.2.5",
4
4
  "description": "Momotaro theme for Blocks",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
25
- "url": "git+ssh://git@github.com/Blockle/blocks.git"
25
+ "url": "git+https://github.com/Blockle/blocks.git"
26
26
  },
27
27
  "author": "Niek Saarberg <n.saarberg@gmail.com>",
28
28
  "license": "MIT",
@@ -31,10 +31,14 @@
31
31
  },
32
32
  "homepage": "https://github.com/Blockle/blocks#readme",
33
33
  "dependencies": {
34
- "@vanilla-extract/css": "^1.17.5"
34
+ "@vanilla-extract/css": "^1.18.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@blockle/blocks-core": ">=1.2.x",
38
- "@vanilla-extract/css": "^1.17.5"
38
+ "@vanilla-extract/css": "^1.18.0"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public",
42
+ "provenance": true
39
43
  }
40
44
  }