@blockle/blocks 0.8.8 → 0.8.10
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/index.cjs +79 -738
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +58 -716
- package/dist/momotaro.chunk.d.ts +159 -146
- package/dist/reset.css.d.mts +2 -0
- package/dist/reset.css.d.ts +1 -1
- package/dist/styles/components/display/Divider/Divider.cjs +226 -0
- package/dist/styles/components/display/Divider/Divider.mjs +227 -0
- package/dist/styles/components/{Divider → display/Divider}/divider.css.cjs +2 -2
- package/dist/styles/components/{Divider → display/Divider}/divider.css.mjs +2 -2
- package/dist/styles/components/form/Button/Button.cjs +55 -0
- package/dist/styles/components/{Button → form/Button}/Button.css.cjs +2 -2
- package/dist/styles/components/{Button → form/Button}/Button.css.mjs +2 -2
- package/dist/styles/components/form/Button/Button.mjs +56 -0
- package/dist/styles/components/form/Checkbox/Checkbox.cjs +47 -0
- package/dist/styles/components/form/Checkbox/Checkbox.mjs +48 -0
- package/dist/styles/components/{Checkbox → form/Checkbox}/checkbox.css.cjs +2 -2
- package/dist/styles/components/{Checkbox → form/Checkbox}/checkbox.css.mjs +2 -2
- package/dist/styles/components/form/Input/Input.cjs +27 -0
- package/dist/styles/components/form/Input/Input.mjs +28 -0
- package/dist/styles/components/{Input → form/Input}/input.css.cjs +2 -2
- package/dist/styles/components/{Input → form/Input}/input.css.mjs +2 -2
- package/dist/styles/components/form/Radio/Radio.cjs +23 -0
- package/dist/styles/components/form/Radio/Radio.mjs +24 -0
- package/dist/styles/components/{Radio → form/Radio}/radio.css.cjs +2 -2
- package/dist/styles/components/{Radio → form/Radio}/radio.css.mjs +2 -2
- package/dist/styles/components/form/Switch/Switch.cjs +61 -0
- package/dist/styles/components/form/Switch/Switch.mjs +62 -0
- package/dist/styles/components/{Switch → form/Switch}/switch.css.cjs +2 -2
- package/dist/styles/components/{Switch → form/Switch}/switch.css.mjs +2 -2
- package/dist/styles/components/other/BlocksProvider/BlocksProvider.cjs +20 -0
- package/dist/styles/components/other/BlocksProvider/BlocksProvider.mjs +21 -0
- package/dist/styles/components/overlay/Dialog/Dialog.cjs +245 -0
- package/dist/styles/components/overlay/Dialog/Dialog.mjs +246 -0
- package/dist/styles/components/{Dialog → overlay/Dialog}/dialog.css.cjs +2 -2
- package/dist/styles/components/{Dialog → overlay/Dialog}/dialog.css.mjs +2 -2
- package/dist/styles/components/typography/Heading/Heading.cjs +14 -0
- package/dist/styles/components/typography/Heading/Heading.mjs +15 -0
- package/dist/styles/components/{Heading → typography/Heading}/heading.css.cjs +2 -2
- package/dist/styles/components/{Heading → typography/Heading}/heading.css.mjs +2 -2
- package/dist/styles/components/typography/Text/Text.cjs +9 -0
- package/dist/styles/components/typography/Text/Text.mjs +10 -0
- package/dist/styles/components/{Text → typography/Text}/text.css.cjs +2 -2
- package/dist/styles/components/{Text → typography/Text}/text.css.mjs +2 -2
- package/dist/styles/lib/css/atoms/atoms.cjs +1 -0
- package/dist/styles/lib/css/atoms/atoms.mjs +1 -0
- package/dist/styles/lib/css/atoms/sprinkles.css.cjs +2 -6
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +2 -6
- package/dist/styles/lib/css/layers/layers.css.cjs +1 -1
- package/dist/styles/lib/css/layers/layers.css.mjs +1 -1
- package/dist/styles/lib/theme/vars.css.cjs +1 -1
- package/dist/styles/lib/theme/vars.css.mjs +1 -1
- package/dist/styles/lib/utils/atom-props.cjs +15 -0
- package/dist/styles/lib/utils/atom-props.mjs +16 -0
- package/dist/styles/themes/momotaro/components/button.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/button.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/checkbox.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/checkbox.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/dialog.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/dialog.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/divider.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/divider.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/dropdown.css.cjs +54 -0
- package/dist/styles/themes/momotaro/components/dropdown.css.mjs +55 -0
- package/dist/styles/themes/momotaro/components/helpers.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/helpers.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/index.cjs +2 -0
- package/dist/styles/themes/momotaro/components/index.mjs +2 -0
- package/dist/styles/themes/momotaro/components/input.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/input.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/label.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/label.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/link.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/link.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/progress.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/progress.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/radio.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/radio.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/spinner.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/spinner.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/switch.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/switch.css.mjs +1 -1
- package/dist/styles/themes/momotaro/index.cjs +1 -0
- package/dist/styles/themes/momotaro/index.mjs +1 -0
- package/dist/styles/themes/momotaro/momotaro.css.cjs +1 -1
- package/dist/styles/themes/momotaro/momotaro.css.mjs +1 -1
- package/dist/styles/themes/momotaro/tokens.css.cjs +1 -1
- package/dist/styles/themes/momotaro/tokens.css.mjs +1 -1
- package/dist/themes/momotaro.d.mts +1 -0
- package/package.json +47 -37
|
@@ -5,7 +5,7 @@ const styles_lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs
|
|
|
5
5
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
6
|
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
7
7
|
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
8
|
-
fileScope.setFileScope("src/themes/momotaro/components/switch.css.ts
|
|
8
|
+
fileScope.setFileScope("src/themes/momotaro/components/switch.css.ts", "blocks");
|
|
9
9
|
const activeScaleFactor = css.createVar("activeScaleFactor");
|
|
10
10
|
const switchTheme = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("switch", {
|
|
11
11
|
base: styles_lib_css_style_style_cjs.style([{
|
|
@@ -4,7 +4,7 @@ import { style } from "../../../lib/css/style/style.mjs";
|
|
|
4
4
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
5
5
|
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
6
6
|
import { focusable } from "./helpers.css.mjs";
|
|
7
|
-
setFileScope("src/themes/momotaro/components/switch.css.ts
|
|
7
|
+
setFileScope("src/themes/momotaro/components/switch.css.ts", "blocks");
|
|
8
8
|
const activeScaleFactor = createVar("activeScaleFactor");
|
|
9
9
|
const switchTheme = makeComponentTheme("switch", {
|
|
10
10
|
base: style([{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -3,7 +3,7 @@ const fileScope = require("@vanilla-extract/css/fileScope");
|
|
|
3
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
|
-
fileScope.setFileScope("src/themes/momotaro/momotaro.css.ts
|
|
6
|
+
fileScope.setFileScope("src/themes/momotaro/momotaro.css.ts", "blocks");
|
|
7
7
|
const momotaro = styles_lib_theme_makeTheme_cjs.makeTheme({
|
|
8
8
|
name: "momotaro",
|
|
9
9
|
tokens: styles_themes_momotaro_tokens_css_cjs.tokens,
|
|
@@ -2,7 +2,7 @@ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
|
2
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
|
-
setFileScope("src/themes/momotaro/momotaro.css.ts
|
|
5
|
+
setFileScope("src/themes/momotaro/momotaro.css.ts", "blocks");
|
|
6
6
|
const momotaro = makeTheme({
|
|
7
7
|
name: "momotaro",
|
|
8
8
|
tokens,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
-
fileScope.setFileScope("src/themes/momotaro/tokens.css.ts
|
|
3
|
+
fileScope.setFileScope("src/themes/momotaro/tokens.css.ts", "blocks");
|
|
4
4
|
const tokens = {
|
|
5
5
|
border: {
|
|
6
6
|
radius: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { momotaro } from '../momotaro.chunk.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockle/blocks",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.10",
|
|
4
4
|
"description": "Blocks design system",
|
|
5
5
|
"repository": "git@github.com:Blockle/blocks.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,17 +11,26 @@
|
|
|
11
11
|
],
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"types":
|
|
14
|
+
"types": {
|
|
15
|
+
"import": "./dist/index.d.mts",
|
|
16
|
+
"require": "./dist/index.d.ts"
|
|
17
|
+
},
|
|
15
18
|
"import": "./dist/index.mjs",
|
|
16
19
|
"require": "./dist/index.cjs"
|
|
17
20
|
},
|
|
18
21
|
"./reset.css": {
|
|
19
|
-
"types":
|
|
22
|
+
"types": {
|
|
23
|
+
"import": "./dist/reset.css.d.mts",
|
|
24
|
+
"require": "./dist/reset.css.d.ts"
|
|
25
|
+
},
|
|
20
26
|
"import": "./dist/reset.css.mjs",
|
|
21
27
|
"require": "./dist/reset.css.cjs"
|
|
22
28
|
},
|
|
23
29
|
"./themes/momotaro": {
|
|
24
|
-
"types":
|
|
30
|
+
"types": {
|
|
31
|
+
"import": "./dist/themes/momotaro.d.mts",
|
|
32
|
+
"require": "./dist/themes/momotaro.d.ts"
|
|
33
|
+
},
|
|
25
34
|
"import": "./dist/themes/momotaro.mjs",
|
|
26
35
|
"require": "./dist/themes/momotaro.cjs"
|
|
27
36
|
},
|
|
@@ -41,59 +50,60 @@
|
|
|
41
50
|
"coverage": "vitest run --coverage",
|
|
42
51
|
"fix": "crackle fix",
|
|
43
52
|
"lint": "eslint .",
|
|
53
|
+
"release": "yarn ts && yarn test && yarn build && changeset publish",
|
|
44
54
|
"storybook": "storybook dev -p 6006 --no-open",
|
|
45
55
|
"test": "vitest",
|
|
46
|
-
"ts": "tsc --noemit --project ./tsconfig.json"
|
|
47
|
-
"release": "yarn ts && yarn test && yarn build && changeset publish"
|
|
56
|
+
"ts": "tsc --noemit --project ./tsconfig.json"
|
|
48
57
|
},
|
|
49
58
|
"resolutions": {
|
|
50
59
|
"string-width": "^4.2.2"
|
|
51
60
|
},
|
|
52
61
|
"dependencies": {
|
|
53
|
-
"@vanilla-extract/css": "^1.
|
|
62
|
+
"@vanilla-extract/css": "^1.14.0",
|
|
54
63
|
"@vanilla-extract/css-utils": "^0.1.3",
|
|
55
64
|
"@vanilla-extract/sprinkles": "^1.6.1",
|
|
56
65
|
"react": "^18.2.0",
|
|
57
66
|
"react-dom": "^18.2.0"
|
|
58
67
|
},
|
|
59
68
|
"devDependencies": {
|
|
60
|
-
"@changesets/cli": "^2.
|
|
61
|
-
"@crackle/cli": "^0.
|
|
62
|
-
"@crackle/core": "^0.
|
|
63
|
-
"@storybook/addon-a11y": "^7.
|
|
64
|
-
"@storybook/addon-coverage": "^0.0
|
|
65
|
-
"@storybook/addon-essentials": "^7.
|
|
66
|
-
"@storybook/addon-interactions": "^7.
|
|
67
|
-
"@storybook/addon-links": "^7.
|
|
68
|
-
"@storybook/
|
|
69
|
+
"@changesets/cli": "^2.27.1",
|
|
70
|
+
"@crackle/cli": "^0.13.0",
|
|
71
|
+
"@crackle/core": "^0.31.0",
|
|
72
|
+
"@storybook/addon-a11y": "^7.6.9",
|
|
73
|
+
"@storybook/addon-coverage": "^1.0.0",
|
|
74
|
+
"@storybook/addon-essentials": "^7.6.9",
|
|
75
|
+
"@storybook/addon-interactions": "^7.6.9",
|
|
76
|
+
"@storybook/addon-links": "^7.6.9",
|
|
77
|
+
"@storybook/addons": "^7.6.17",
|
|
78
|
+
"@storybook/blocks": "^7.6.9",
|
|
69
79
|
"@storybook/jest": "^0.2.3",
|
|
70
|
-
"@storybook/react": "^7.
|
|
71
|
-
"@storybook/react-vite": "^7.
|
|
80
|
+
"@storybook/react": "^7.6.9",
|
|
81
|
+
"@storybook/react-vite": "^7.6.9",
|
|
72
82
|
"@storybook/testing-library": "^0.2.2",
|
|
73
|
-
"@testing-library/jest-dom": "^6.
|
|
74
|
-
"@testing-library/react": "^14.1.
|
|
75
|
-
"@types/react": "^18.2.
|
|
76
|
-
"@types/react-dom": "^18.2.
|
|
77
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
78
|
-
"@typescript-eslint/parser": "^6.
|
|
79
|
-
"@vanilla-extract/vite-plugin": "^3.
|
|
80
|
-
"@vitest/coverage-v8": "^
|
|
81
|
-
"autoprefixer": "^10.4.
|
|
83
|
+
"@testing-library/jest-dom": "^6.2.0",
|
|
84
|
+
"@testing-library/react": "^14.1.2",
|
|
85
|
+
"@types/react": "^18.2.48",
|
|
86
|
+
"@types/react-dom": "^18.2.18",
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
88
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
89
|
+
"@vanilla-extract/vite-plugin": "^3.9.3",
|
|
90
|
+
"@vitest/coverage-v8": "^1.2.1",
|
|
91
|
+
"autoprefixer": "^10.4.17",
|
|
82
92
|
"cross-env": "^7.0.3",
|
|
83
|
-
"eslint": "^8.
|
|
84
|
-
"eslint-config-prettier": "^9.
|
|
85
|
-
"eslint-plugin-jest": "^27.6.
|
|
86
|
-
"eslint-plugin-prettier": "^5.
|
|
93
|
+
"eslint": "^8.56.0",
|
|
94
|
+
"eslint-config-prettier": "^9.1.0",
|
|
95
|
+
"eslint-plugin-jest": "^27.6.3",
|
|
96
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
87
97
|
"eslint-plugin-react": "^7.33.2",
|
|
88
98
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
89
99
|
"eslint-plugin-storybook": "^0.6.15",
|
|
90
|
-
"eslint-plugin-unicorn": "^
|
|
91
|
-
"jsdom": "^
|
|
92
|
-
"prettier": "^3.
|
|
100
|
+
"eslint-plugin-unicorn": "^50.0.1",
|
|
101
|
+
"jsdom": "^23.2.0",
|
|
102
|
+
"prettier": "^3.2.4",
|
|
93
103
|
"prop-types": "^15.8.1",
|
|
94
|
-
"storybook": "^7.
|
|
95
|
-
"typescript": "^5.
|
|
96
|
-
"vitest": "^
|
|
104
|
+
"storybook": "^7.6.9",
|
|
105
|
+
"typescript": "^5.3.3",
|
|
106
|
+
"vitest": "^1.2.1"
|
|
97
107
|
},
|
|
98
108
|
"packageManager": "yarn@1.22.19"
|
|
99
109
|
}
|