@blockle/blocks 0.2.2 → 0.3.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/README.md +1 -1
  2. package/dist/index.cjs +134 -6
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.mjs +136 -6
  5. package/dist/momotaro.chunk.d.ts +516 -0
  6. package/dist/reset.css.cjs +0 -1
  7. package/dist/reset.css.d.ts +1 -408
  8. package/dist/reset.css.mjs +0 -1
  9. package/dist/styles/components/Button/Button.css.cjs +15 -0
  10. package/dist/styles/components/Button/Button.css.mjs +16 -0
  11. package/dist/styles/lib/css/atoms/index.cjs +1 -0
  12. package/dist/styles/lib/css/atoms/index.mjs +1 -0
  13. package/dist/styles/lib/css/layers/layers.css.cjs +7 -0
  14. package/dist/styles/lib/css/layers/layers.css.mjs +8 -0
  15. package/dist/styles/lib/css/reset/reset.css.cjs +0 -36
  16. package/dist/styles/lib/css/reset/reset.css.mjs +1 -36
  17. package/dist/styles/lib/css/theme/makeComponentTheme.cjs +3 -0
  18. package/dist/styles/lib/css/theme/makeComponentTheme.mjs +4 -0
  19. package/dist/styles/lib/css/theme/makeTheme.cjs +3 -2
  20. package/dist/styles/lib/css/theme/makeTheme.mjs +3 -2
  21. package/dist/styles/lib/css/theme/makeVanillaTheme.cjs +5 -2
  22. package/dist/styles/lib/css/theme/makeVanillaTheme.mjs +5 -2
  23. package/dist/styles/lib/css/theme/tokens.cjs +5 -2
  24. package/dist/styles/lib/css/theme/tokens.mjs +5 -2
  25. package/dist/styles/themes/momotaro/components/button.css.cjs +106 -0
  26. package/dist/styles/themes/momotaro/components/button.css.mjs +107 -0
  27. package/dist/styles/themes/momotaro/components/helpers.css.cjs +26 -0
  28. package/dist/styles/themes/momotaro/components/helpers.css.mjs +27 -0
  29. package/dist/styles/themes/momotaro/components/index.cjs +10 -0
  30. package/dist/styles/themes/momotaro/components/index.mjs +11 -0
  31. package/dist/styles/themes/momotaro/components/link.css.cjs +47 -0
  32. package/dist/styles/themes/momotaro/components/link.css.mjs +48 -0
  33. package/dist/styles/themes/momotaro/components/spinner.css.cjs +44 -0
  34. package/dist/styles/themes/momotaro/components/spinner.css.mjs +45 -0
  35. package/dist/styles/themes/momotaro/momotaro.css.cjs +13 -0
  36. package/dist/styles/themes/momotaro/{momotaroTheme.css.mjs → momotaro.css.mjs} +6 -4
  37. package/dist/styles/themes/momotaro/tokens.cjs +5 -2
  38. package/dist/styles/themes/momotaro/tokens.mjs +5 -2
  39. package/dist/themes/momotaro.cjs +2 -2
  40. package/dist/themes/momotaro.d.ts +1 -1
  41. package/dist/themes/momotaro.mjs +2 -2
  42. package/package.json +49 -20
  43. package/dist/styles/themes/momotaro/momotaroTheme.css.cjs +0 -11
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@blockle/blocks",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "description": "Blocks design system",
5
5
  "repository": "git@github.com:Blockle/blocks.git",
6
6
  "license": "MIT",
7
7
  "author": "Niek Saarberg <n.saarberg@gmail.com>",
8
+ "sideEffects": [
9
+ "./src/lib/theme/globalTheme.ts",
10
+ "dist/side-effects/**"
11
+ ],
8
12
  "exports": {
9
13
  ".": {
10
14
  "types": "./dist/index.d.ts",
@@ -32,37 +36,62 @@
32
36
  "themes/momotaro"
33
37
  ],
34
38
  "scripts": {
35
- "build": "crackle package",
39
+ "build": "crackle package && node ./temp-use-client-fix.js",
40
+ "build-storybook": "storybook build",
41
+ "coverage": "vitest run --coverage",
36
42
  "fix": "crackle fix",
43
+ "lint": "eslint . --resolve-plugins-relative-to /Users/niek/Projects/blockle/blocks/",
44
+ "storybook": "storybook dev -p 6006 --no-open",
45
+ "test": "vitest",
37
46
  "ts": "tsc --noemit --project ./tsconfig.json"
38
47
  },
48
+ "resolutions": {
49
+ "string-width": "^4.2.2"
50
+ },
39
51
  "dependencies": {
40
52
  "@radix-ui/react-polymorphic": "^0.0.14",
41
- "@vanilla-extract/css": "^1.11.1",
53
+ "@vanilla-extract/css": "^1.13.0",
42
54
  "@vanilla-extract/css-utils": "^0.1.3",
43
- "@vanilla-extract/sprinkles": "^1.6.0",
55
+ "@vanilla-extract/sprinkles": "^1.6.1",
44
56
  "react": "^18.2.0",
45
57
  "react-dom": "^18.2.0"
46
58
  },
47
59
  "devDependencies": {
48
- "@crackle/cli": "^0.12.0",
49
- "@crackle/core": "^0.25.0",
50
- "@types/react": "^18.2.13",
51
- "@types/react-dom": "^18.2.6",
52
- "@typescript-eslint/eslint-plugin": "^5.60.0",
53
- "@typescript-eslint/parser": "^5.60.0",
60
+ "@crackle/cli": "^0.12.4",
61
+ "@crackle/core": "^0.28.0",
62
+ "@storybook/addon-a11y": "^7.3.1",
63
+ "@storybook/addon-coverage": "^0.0.9",
64
+ "@storybook/addon-essentials": "^7.3.1",
65
+ "@storybook/addon-interactions": "^7.3.1",
66
+ "@storybook/addon-links": "^7.3.1",
67
+ "@storybook/blocks": "^7.3.1",
68
+ "@storybook/jest": "^0.2.0",
69
+ "@storybook/react": "^7.3.1",
70
+ "@storybook/react-vite": "^7.3.1",
71
+ "@storybook/testing-library": "^0.2.0",
72
+ "@testing-library/jest-dom": "^6.1.3",
73
+ "@testing-library/react": "^14.0.0",
74
+ "@types/react": "^18.2.25",
75
+ "@types/react-dom": "^18.2.10",
76
+ "@typescript-eslint/eslint-plugin": "^6.7.4",
77
+ "@typescript-eslint/parser": "^6.7.4",
78
+ "@vanilla-extract/vite-plugin": "^3.8.2",
79
+ "@vitest/coverage-v8": "^0.34.6",
54
80
  "cross-env": "^7.0.3",
55
- "eslint": "^8.43.0",
56
- "eslint-config-prettier": "^8.8.0",
57
- "eslint-plugin-jest": "^27.2.2",
58
- "eslint-plugin-prettier": "^4.2.1",
59
- "eslint-plugin-react": "^7.32.2",
81
+ "eslint": "^8.50.0",
82
+ "eslint-config-prettier": "^9.0.0",
83
+ "eslint-plugin-jest": "^27.4.2",
84
+ "eslint-plugin-prettier": "^5.0.0",
85
+ "eslint-plugin-react": "^7.33.2",
60
86
  "eslint-plugin-react-hooks": "^4.6.0",
61
- "eslint-plugin-storybook": "^0.6.12",
62
- "eslint-plugin-unicorn": "^47.0.0",
63
- "prettier": "^2.8.8",
64
- "typescript": "^5.1.3",
65
- "vitest": "^0.32.2"
87
+ "eslint-plugin-storybook": "^0.6.14",
88
+ "eslint-plugin-unicorn": "^48.0.1",
89
+ "jsdom": "^22.1.0",
90
+ "prettier": "^3.0.3",
91
+ "prop-types": "^15.8.1",
92
+ "storybook": "^7.3.1",
93
+ "typescript": "^5.2.2",
94
+ "vitest": "^0.34.6"
66
95
  },
67
96
  "packageManager": "yarn@1.22.19"
68
97
  }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- const fileScope = require("@vanilla-extract/css/fileScope");
3
- const styles_lib_css_theme_makeTheme_cjs = require("../../lib/css/theme/makeTheme.cjs");
4
- const styles_themes_momotaro_tokens_cjs = require("./tokens.cjs");
5
- fileScope.setFileScope("src/themes/momotaro/momotaroTheme.css.ts?used", "blocks");
6
- const theme = styles_lib_css_theme_makeTheme_cjs.makeTheme({
7
- name: "momotaro",
8
- tokens: styles_themes_momotaro_tokens_cjs.tokens
9
- });
10
- fileScope.endFileScope();
11
- exports.theme = theme;