@blockle/blocks 0.5.1 → 0.6.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.
Files changed (43) hide show
  1. package/dist/index.cjs +90 -41
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.mjs +88 -39
  4. package/dist/momotaro.chunk.d.ts +261 -220
  5. package/dist/styles/components/Input/input.css.cjs +14 -0
  6. package/dist/styles/components/Input/input.css.mjs +15 -0
  7. package/dist/styles/lib/css/atoms/atomicProperties.cjs +17 -17
  8. package/dist/styles/lib/css/atoms/atomicProperties.mjs +1 -1
  9. package/dist/styles/lib/theme/makeComponentTheme.cjs +5 -0
  10. package/dist/styles/lib/theme/makeComponentTheme.mjs +6 -0
  11. package/dist/styles/lib/theme/makeTheme.cjs +12 -0
  12. package/dist/styles/lib/{css/theme → theme}/makeTheme.mjs +3 -2
  13. package/dist/styles/lib/theme/vars.css.cjs +9 -0
  14. package/dist/styles/lib/{css/theme → theme}/vars.css.mjs +1 -1
  15. package/dist/styles/themes/momotaro/components/button.css.cjs +21 -12
  16. package/dist/styles/themes/momotaro/components/button.css.mjs +14 -5
  17. package/dist/styles/themes/momotaro/components/dialog.css.cjs +25 -6
  18. package/dist/styles/themes/momotaro/components/dialog.css.mjs +24 -5
  19. package/dist/styles/themes/momotaro/components/divider.css.cjs +2 -2
  20. package/dist/styles/themes/momotaro/components/divider.css.mjs +1 -1
  21. package/dist/styles/themes/momotaro/components/helpers.css.cjs +8 -6
  22. package/dist/styles/themes/momotaro/components/helpers.css.mjs +6 -4
  23. package/dist/styles/themes/momotaro/components/index.cjs +5 -3
  24. package/dist/styles/themes/momotaro/components/index.mjs +5 -3
  25. package/dist/styles/themes/momotaro/components/input.css.cjs +40 -0
  26. package/dist/styles/themes/momotaro/components/input.css.mjs +41 -0
  27. package/dist/styles/themes/momotaro/components/link.css.cjs +5 -4
  28. package/dist/styles/themes/momotaro/components/link.css.mjs +4 -3
  29. package/dist/styles/themes/momotaro/components/spinner.css.cjs +2 -2
  30. package/dist/styles/themes/momotaro/components/spinner.css.mjs +1 -1
  31. package/dist/styles/themes/momotaro/momotaro.css.cjs +2 -2
  32. package/dist/styles/themes/momotaro/momotaro.css.mjs +1 -1
  33. package/dist/styles/themes/momotaro/tokens.css.cjs +4 -4
  34. package/dist/styles/themes/momotaro/tokens.css.mjs +4 -4
  35. package/package.json +1 -1
  36. package/dist/styles/lib/css/theme/makeComponentTheme.cjs +0 -3
  37. package/dist/styles/lib/css/theme/makeComponentTheme.mjs +0 -4
  38. package/dist/styles/lib/css/theme/makeTheme.cjs +0 -11
  39. package/dist/styles/lib/css/theme/vars.css.cjs +0 -9
  40. /package/dist/styles/lib/{css/theme → theme}/makeVanillaTheme.cjs +0 -0
  41. /package/dist/styles/lib/{css/theme → theme}/makeVanillaTheme.mjs +0 -0
  42. /package/dist/styles/lib/{css/theme → theme}/tokens.cjs +0 -0
  43. /package/dist/styles/lib/{css/theme → theme}/tokens.mjs +0 -0
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
- const styles_lib_css_theme_makeComponentTheme_cjs = require("../../../lib/css/theme/makeComponentTheme.cjs");
4
+ const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
+ const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
5
6
  const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
6
7
  fileScope.setFileScope("src/themes/momotaro/components/link.css.ts?used", "blocks");
7
- const link = styles_lib_css_theme_makeComponentTheme_cjs.makeComponentTheme("link", {
8
- base: css.style({
8
+ const link = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("link", {
9
+ base: css.style([{
9
10
  outline: "none",
10
11
  border: "none",
11
12
  textDecoration: "none",
@@ -17,7 +18,7 @@ const link = styles_lib_css_theme_makeComponentTheme_cjs.makeComponentTheme("lin
17
18
  textDecoration: "underline"
18
19
  },
19
20
  cursor: "pointer"
20
- }, "link_base"),
21
+ }, styles_themes_momotaro_components_helpers_css_cjs.focusable], "link_base"),
21
22
  variants: {
22
23
  variant: {
23
24
  inherit: css.style({
@@ -1,10 +1,11 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
2
  import { style } from "@vanilla-extract/css";
3
- import { makeComponentTheme } from "../../../lib/css/theme/makeComponentTheme.mjs";
3
+ import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
4
+ import { focusable } from "./helpers.css.mjs";
4
5
  import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
5
6
  setFileScope("src/themes/momotaro/components/link.css.ts?used", "blocks");
6
7
  const link = makeComponentTheme("link", {
7
- base: style({
8
+ base: style([{
8
9
  outline: "none",
9
10
  border: "none",
10
11
  textDecoration: "none",
@@ -16,7 +17,7 @@ const link = makeComponentTheme("link", {
16
17
  textDecoration: "underline"
17
18
  },
18
19
  cursor: "pointer"
19
- }, "link_base"),
20
+ }, focusable], "link_base"),
20
21
  variants: {
21
22
  variant: {
22
23
  inherit: style({
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
- const styles_lib_css_theme_makeComponentTheme_cjs = require("../../../lib/css/theme/makeComponentTheme.cjs");
4
+ const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
5
  fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts?used", "blocks");
6
6
  const spinAnimation = css.keyframes({
7
7
  "0%": {
@@ -11,7 +11,7 @@ const spinAnimation = css.keyframes({
11
11
  transform: "rotate(360deg)"
12
12
  }
13
13
  }, "spinAnimation");
14
- const spinner = styles_lib_css_theme_makeComponentTheme_cjs.makeComponentTheme("spinner", {
14
+ const spinner = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("spinner", {
15
15
  base: css.style({
16
16
  aspectRatio: "1 / 1",
17
17
  overflow: "hidden",
@@ -1,6 +1,6 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
2
  import { keyframes, style } from "@vanilla-extract/css";
3
- import { makeComponentTheme } from "../../../lib/css/theme/makeComponentTheme.mjs";
3
+ import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
4
4
  setFileScope("src/themes/momotaro/components/spinner.css.ts?used", "blocks");
5
5
  const spinAnimation = keyframes({
6
6
  "0%": {
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
- const styles_lib_css_theme_makeTheme_cjs = require("../../lib/css/theme/makeTheme.cjs");
3
+ const styles_lib_theme_makeTheme_cjs = require("../../lib/theme/makeTheme.cjs");
4
4
  const styles_themes_momotaro_components_index_cjs = require("./components/index.cjs");
5
5
  const styles_themes_momotaro_tokens_css_cjs = require("./tokens.css.cjs");
6
6
  fileScope.setFileScope("src/themes/momotaro/momotaro.css.ts?used", "blocks");
7
- const momotaro = styles_lib_css_theme_makeTheme_cjs.makeTheme({
7
+ const momotaro = styles_lib_theme_makeTheme_cjs.makeTheme({
8
8
  name: "momotaro",
9
9
  tokens: styles_themes_momotaro_tokens_css_cjs.tokens,
10
10
  components: styles_themes_momotaro_components_index_cjs.components
@@ -1,5 +1,5 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { makeTheme } from "../../lib/css/theme/makeTheme.mjs";
2
+ import { makeTheme } from "../../lib/theme/makeTheme.mjs";
3
3
  import { components } from "./components/index.mjs";
4
4
  import { tokens } from "./tokens.css.mjs";
5
5
  setFileScope("src/themes/momotaro/momotaro.css.ts?used", "blocks");
@@ -37,7 +37,7 @@ const tokens = {
37
37
  large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
38
38
  },
39
39
  focus: {
40
- boxShadow: "0 0 4px 2px #AF8EFF"
40
+ boxShadow: "0 0 1px 2px #AF8EFF"
41
41
  },
42
42
  spacing: {
43
43
  none: "0px",
@@ -49,9 +49,9 @@ const tokens = {
49
49
  xlarge: "24px"
50
50
  },
51
51
  transition: {
52
- slow: "0.5s",
53
- normal: "0.3s",
54
- fast: "0.1s"
52
+ slow: "240ms",
53
+ normal: "120ms",
54
+ fast: "80ms"
55
55
  },
56
56
  typography: {
57
57
  fontFamily: {
@@ -36,7 +36,7 @@ const tokens = {
36
36
  large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
37
37
  },
38
38
  focus: {
39
- boxShadow: "0 0 4px 2px #AF8EFF"
39
+ boxShadow: "0 0 1px 2px #AF8EFF"
40
40
  },
41
41
  spacing: {
42
42
  none: "0px",
@@ -48,9 +48,9 @@ const tokens = {
48
48
  xlarge: "24px"
49
49
  },
50
50
  transition: {
51
- slow: "0.5s",
52
- normal: "0.3s",
53
- fast: "0.1s"
51
+ slow: "240ms",
52
+ normal: "120ms",
53
+ fast: "80ms"
54
54
  },
55
55
  typography: {
56
56
  fontFamily: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockle/blocks",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Blocks design system",
5
5
  "repository": "git@github.com:Blockle/blocks.git",
6
6
  "license": "MIT",
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const makeComponentTheme = (name, options) => options;
3
- exports.makeComponentTheme = makeComponentTheme;
@@ -1,4 +0,0 @@
1
- const makeComponentTheme = (name, options) => options;
2
- export {
3
- makeComponentTheme
4
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- const css = require("@vanilla-extract/css");
3
- const styles_lib_css_theme_makeVanillaTheme_cjs = require("./makeVanillaTheme.cjs");
4
- const styles_lib_css_theme_vars_css_cjs = require("./vars.css.cjs");
5
- const makeTheme = (theme) => {
6
- return {
7
- vars: css.createTheme(styles_lib_css_theme_vars_css_cjs.vars, styles_lib_css_theme_makeVanillaTheme_cjs.makeVanillaTheme(theme.tokens)),
8
- components: theme.components
9
- };
10
- };
11
- exports.makeTheme = makeTheme;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- const fileScope = require("@vanilla-extract/css/fileScope");
3
- const css = require("@vanilla-extract/css");
4
- const styles_lib_css_theme_makeVanillaTheme_cjs = require("./makeVanillaTheme.cjs");
5
- const styles_lib_css_theme_tokens_cjs = require("./tokens.cjs");
6
- fileScope.setFileScope("src/lib/css/theme/vars.css.ts?used", "blocks");
7
- const vars = css.createThemeContract(styles_lib_css_theme_makeVanillaTheme_cjs.makeVanillaTheme(styles_lib_css_theme_tokens_cjs.tokens));
8
- fileScope.endFileScope();
9
- exports.vars = vars;
File without changes
File without changes