@blockle/blocks 0.11.3 → 0.12.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.
- package/dist/index.cjs +52 -44
- package/dist/index.mjs +54 -46
- package/dist/momotaro.chunk.d.ts +15 -12
- package/dist/styles/components/overlay/Dialog/Dialog.cjs +41 -69
- package/dist/styles/components/overlay/Dialog/Dialog.mjs +44 -72
- package/dist/styles/components/overlay/Dialog/dialog.css.cjs +10 -12
- package/dist/styles/components/overlay/Dialog/dialog.css.mjs +10 -12
- package/dist/styles/themes/momotaro/components/dialog.css.cjs +13 -16
- package/dist/styles/themes/momotaro/components/dialog.css.mjs +13 -16
- package/dist/styles/themes/momotaro/components/index.cjs +5 -3
- package/dist/styles/themes/momotaro/components/index.mjs +5 -3
- package/dist/styles/themes/momotaro/components/{dropdown.css.cjs → popover.css.cjs} +6 -28
- package/dist/styles/themes/momotaro/components/{dropdown.css.mjs → popover.css.mjs} +6 -28
- package/dist/styles/themes/momotaro/components/progress.css.cjs +6 -6
- package/dist/styles/themes/momotaro/components/progress.css.mjs +6 -6
- package/dist/styles/themes/momotaro/components/tooltip.css.cjs +30 -0
- package/dist/styles/themes/momotaro/components/tooltip.css.mjs +31 -0
- package/package.json +38 -37
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style } from "../../../lib/css/style/style.mjs";
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
|
-
setFileScope("src/themes/momotaro/components/
|
|
5
|
-
const
|
|
4
|
+
setFileScope("src/themes/momotaro/components/popover.css.ts", "@blockle/blocks");
|
|
5
|
+
const popover = makeComponentTheme("popover", {
|
|
6
6
|
base: style({
|
|
7
7
|
backgroundColor: "white",
|
|
8
8
|
borderRadius: "small",
|
|
9
9
|
boxShadow: "medium",
|
|
10
10
|
padding: "medium",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
11
|
+
margin: "small",
|
|
12
|
+
// Space between the popover and the anchor element
|
|
14
13
|
selectors: {
|
|
15
14
|
"&[data-open]": {
|
|
16
15
|
transform: "scale(1)",
|
|
@@ -25,30 +24,9 @@ const dropdown = makeComponentTheme("dropdown", {
|
|
|
25
24
|
opacity: 0
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
|
-
})
|
|
29
|
-
variants: {
|
|
30
|
-
variant: {
|
|
31
|
-
solid: style({
|
|
32
|
-
backgroundColor: "white",
|
|
33
|
-
border: "none",
|
|
34
|
-
boxShadow: "medium",
|
|
35
|
-
color: "black",
|
|
36
|
-
padding: "medium"
|
|
37
|
-
}),
|
|
38
|
-
outline: style({
|
|
39
|
-
backgroundColor: "transparent",
|
|
40
|
-
border: "1px solid black",
|
|
41
|
-
boxShadow: "none",
|
|
42
|
-
color: "black",
|
|
43
|
-
padding: "medium"
|
|
44
|
-
})
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
defaultVariants: {
|
|
48
|
-
variant: "solid"
|
|
49
|
-
}
|
|
27
|
+
})
|
|
50
28
|
});
|
|
51
29
|
endFileScope();
|
|
52
30
|
export {
|
|
53
|
-
|
|
31
|
+
popover
|
|
54
32
|
};
|
|
@@ -37,12 +37,12 @@ const progress = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("pro
|
|
|
37
37
|
// For reduce motion we show a striped pattern instead of animating
|
|
38
38
|
"(prefers-reduced-motion: reduce)": {
|
|
39
39
|
backgroundImage: `repeating-linear-gradient(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
45deg,
|
|
41
|
+
transparent,
|
|
42
|
+
transparent 20px,
|
|
43
|
+
${styles_lib_theme_vars_css_cjs.vars.color.primaryDark} 20px,
|
|
44
|
+
${styles_lib_theme_vars_css_cjs.vars.color.primaryDark} 40px
|
|
45
|
+
)`
|
|
46
46
|
},
|
|
47
47
|
"(prefers-reduced-motion: no-preference)": {
|
|
48
48
|
animation: `${indeterminateAnimation} 3s ease-in-out infinite`
|
|
@@ -36,12 +36,12 @@ const progress = makeComponentTheme("progress", {
|
|
|
36
36
|
// For reduce motion we show a striped pattern instead of animating
|
|
37
37
|
"(prefers-reduced-motion: reduce)": {
|
|
38
38
|
backgroundImage: `repeating-linear-gradient(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
45deg,
|
|
40
|
+
transparent,
|
|
41
|
+
transparent 20px,
|
|
42
|
+
${vars.color.primaryDark} 20px,
|
|
43
|
+
${vars.color.primaryDark} 40px
|
|
44
|
+
)`
|
|
45
45
|
},
|
|
46
46
|
"(prefers-reduced-motion: no-preference)": {
|
|
47
47
|
animation: `${indeterminateAnimation} 3s ease-in-out infinite`
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
const styles_lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs");
|
|
4
|
+
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
|
+
fileScope.setFileScope("src/themes/momotaro/components/tooltip.css.ts", "@blockle/blocks");
|
|
6
|
+
const tooltip = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("tooltip", {
|
|
7
|
+
base: styles_lib_css_style_style_cjs.style({
|
|
8
|
+
backgroundColor: "primary",
|
|
9
|
+
padding: "small"
|
|
10
|
+
}),
|
|
11
|
+
variants: {
|
|
12
|
+
colorScheme: {
|
|
13
|
+
primary: styles_lib_css_style_style_cjs.style({
|
|
14
|
+
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
15
|
+
boxShadow: "0 0 0 1px rgba(255, 255, 255, 0.1)",
|
|
16
|
+
color: "white"
|
|
17
|
+
}),
|
|
18
|
+
secondary: styles_lib_css_style_style_cjs.style({
|
|
19
|
+
backgroundColor: "rgba(255, 255, 255, 0.8)",
|
|
20
|
+
boxShadow: "0 0 0 1px rgba(0, 0, 0, 0.1)",
|
|
21
|
+
color: "black"
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
colorScheme: "primary"
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
fileScope.endFileScope();
|
|
30
|
+
exports.tooltip = tooltip;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { style } from "../../../lib/css/style/style.mjs";
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
|
+
setFileScope("src/themes/momotaro/components/tooltip.css.ts", "@blockle/blocks");
|
|
5
|
+
const tooltip = makeComponentTheme("tooltip", {
|
|
6
|
+
base: style({
|
|
7
|
+
backgroundColor: "primary",
|
|
8
|
+
padding: "small"
|
|
9
|
+
}),
|
|
10
|
+
variants: {
|
|
11
|
+
colorScheme: {
|
|
12
|
+
primary: style({
|
|
13
|
+
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
14
|
+
boxShadow: "0 0 0 1px rgba(255, 255, 255, 0.1)",
|
|
15
|
+
color: "white"
|
|
16
|
+
}),
|
|
17
|
+
secondary: style({
|
|
18
|
+
backgroundColor: "rgba(255, 255, 255, 0.8)",
|
|
19
|
+
boxShadow: "0 0 0 1px rgba(0, 0, 0, 0.1)",
|
|
20
|
+
color: "black"
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
colorScheme: "primary"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
endFileScope();
|
|
29
|
+
export {
|
|
30
|
+
tooltip
|
|
31
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockle/blocks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Blocks design system",
|
|
5
5
|
"repository": "git@github.com:Blockle/blocks.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,48 +60,49 @@
|
|
|
60
60
|
"string-width": "^4.2.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@changesets/cli": "^2.27.
|
|
64
|
-
"@crackle/cli": "^0.15.
|
|
65
|
-
"@crackle/core": "^0.33.
|
|
66
|
-
"@storybook/addon-a11y": "^8.
|
|
67
|
-
"@storybook/addon-coverage": "^1.0.
|
|
68
|
-
"@storybook/addon-essentials": "^8.
|
|
69
|
-
"@storybook/addon-interactions": "^8.
|
|
70
|
-
"@storybook/addon-links": "^8.
|
|
63
|
+
"@changesets/cli": "^2.27.5",
|
|
64
|
+
"@crackle/cli": "^0.15.4",
|
|
65
|
+
"@crackle/core": "^0.33.3",
|
|
66
|
+
"@storybook/addon-a11y": "^8.1.6",
|
|
67
|
+
"@storybook/addon-coverage": "^1.0.4",
|
|
68
|
+
"@storybook/addon-essentials": "^8.1.6",
|
|
69
|
+
"@storybook/addon-interactions": "^8.1.6",
|
|
70
|
+
"@storybook/addon-links": "^8.1.6",
|
|
71
71
|
"@storybook/addons": "^7.6.17",
|
|
72
|
-
"@storybook/blocks": "^8.
|
|
73
|
-
"@storybook/react": "^8.
|
|
74
|
-
"@storybook/react-vite": "^8.
|
|
75
|
-
"@storybook/test": "^8.
|
|
76
|
-
"@testing-library/jest-dom": "^6.4.
|
|
77
|
-
"@testing-library/react": "^
|
|
78
|
-
"@types/
|
|
79
|
-
"@types/react
|
|
80
|
-
"@
|
|
81
|
-
"@typescript-eslint/
|
|
82
|
-
"@
|
|
83
|
-
"@vanilla-extract/css
|
|
84
|
-
"@vanilla-extract/
|
|
85
|
-
"@vanilla-extract/
|
|
86
|
-
"@
|
|
87
|
-
"
|
|
72
|
+
"@storybook/blocks": "^8.1.6",
|
|
73
|
+
"@storybook/react": "^8.1.6",
|
|
74
|
+
"@storybook/react-vite": "^8.1.6",
|
|
75
|
+
"@storybook/test": "^8.1.6",
|
|
76
|
+
"@testing-library/jest-dom": "^6.4.5",
|
|
77
|
+
"@testing-library/react": "^16.0.0",
|
|
78
|
+
"@types/eslint": "^8.56.10",
|
|
79
|
+
"@types/react": "^18.3.3",
|
|
80
|
+
"@types/react-dom": "^18.3.0",
|
|
81
|
+
"@typescript-eslint/eslint-plugin": "^7.12.0",
|
|
82
|
+
"@typescript-eslint/parser": "^7.12.0",
|
|
83
|
+
"@vanilla-extract/css": "^1.15.2",
|
|
84
|
+
"@vanilla-extract/css-utils": "^0.1.4",
|
|
85
|
+
"@vanilla-extract/sprinkles": "^1.6.2",
|
|
86
|
+
"@vanilla-extract/vite-plugin": "^4.0.10",
|
|
87
|
+
"@vitest/coverage-v8": "^1.6.0",
|
|
88
|
+
"autoprefixer": "^10.4.19",
|
|
88
89
|
"cross-env": "^7.0.3",
|
|
89
|
-
"eslint": "^8
|
|
90
|
+
"eslint": "^8",
|
|
90
91
|
"eslint-config-prettier": "^9.1.0",
|
|
91
|
-
"eslint-plugin-jest": "^
|
|
92
|
+
"eslint-plugin-jest": "^28.6.0",
|
|
92
93
|
"eslint-plugin-prettier": "^5.1.3",
|
|
93
|
-
"eslint-plugin-react": "^7.34.
|
|
94
|
-
"eslint-plugin-react-hooks": "^4.6.
|
|
94
|
+
"eslint-plugin-react": "^7.34.2",
|
|
95
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
95
96
|
"eslint-plugin-storybook": "^0.8.0",
|
|
96
|
-
"eslint-plugin-unicorn": "^
|
|
97
|
-
"jsdom": "^24.
|
|
98
|
-
"prettier": "^3.
|
|
97
|
+
"eslint-plugin-unicorn": "^53.0.0",
|
|
98
|
+
"jsdom": "^24.1.0",
|
|
99
|
+
"prettier": "^3.3.1",
|
|
99
100
|
"prop-types": "^15.8.1",
|
|
100
|
-
"react": "^18.
|
|
101
|
-
"react-dom": "^18.
|
|
102
|
-
"storybook": "^8.
|
|
103
|
-
"typescript": "^5.4.
|
|
104
|
-
"vitest": "^1.
|
|
101
|
+
"react": "^18.3.1",
|
|
102
|
+
"react-dom": "^18.3.1",
|
|
103
|
+
"storybook": "^8.1.6",
|
|
104
|
+
"typescript": "^5.4.5",
|
|
105
|
+
"vitest": "^1.6.0"
|
|
105
106
|
},
|
|
106
107
|
"peerDependencies": {
|
|
107
108
|
"@vanilla-extract/css": "^1.14",
|