@blockle/blocks 0.9.1 → 0.10.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.
- package/dist/index.cjs +2 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -0
- package/dist/momotaro.chunk.d.ts +29 -1
- package/dist/reset.css.cjs +1 -1
- package/dist/reset.css.mjs +1 -1
- package/dist/styles/components/display/Divider/divider.css.cjs +1 -1
- package/dist/styles/components/display/Divider/divider.css.mjs +1 -1
- package/dist/styles/components/form/Button/Button.css.cjs +1 -1
- package/dist/styles/components/form/Button/Button.css.mjs +1 -1
- package/dist/styles/components/form/Checkbox/checkbox.css.cjs +1 -1
- package/dist/styles/components/form/Checkbox/checkbox.css.mjs +1 -1
- package/dist/styles/components/form/Input/input.css.cjs +1 -1
- package/dist/styles/components/form/Input/input.css.mjs +1 -1
- package/dist/styles/components/form/Radio/radio.css.cjs +1 -1
- package/dist/styles/components/form/Radio/radio.css.mjs +1 -1
- package/dist/styles/components/form/Select/select.css.cjs +1 -1
- package/dist/styles/components/form/Select/select.css.mjs +1 -1
- package/dist/styles/components/form/Slider/Slider.cjs +155 -0
- package/dist/styles/components/form/Slider/Slider.mjs +156 -0
- package/dist/styles/components/form/Slider/slider.css.cjs +73 -0
- package/dist/styles/components/form/Slider/slider.css.mjs +74 -0
- package/dist/styles/components/form/Switch/switch.css.cjs +1 -1
- package/dist/styles/components/form/Switch/switch.css.mjs +1 -1
- package/dist/styles/components/overlay/Dialog/dialog.css.cjs +1 -1
- package/dist/styles/components/overlay/Dialog/dialog.css.mjs +1 -1
- package/dist/styles/components/typography/Heading/heading.css.cjs +1 -1
- package/dist/styles/components/typography/Heading/heading.css.mjs +1 -1
- package/dist/styles/components/typography/Text/text.css.cjs +1 -1
- package/dist/styles/components/typography/Text/text.css.mjs +1 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.cjs +1 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +1 -1
- 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/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 +1 -1
- package/dist/styles/themes/momotaro/components/dropdown.css.mjs +1 -1
- 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 +3 -1
- package/dist/styles/themes/momotaro/components/index.mjs +3 -1
- 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/select.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/select.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/slider.css.cjs +65 -0
- package/dist/styles/themes/momotaro/components/slider.css.mjs +66 -0
- 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/momotaro.css.cjs +1 -1
- package/dist/styles/themes/momotaro/momotaro.css.mjs +1 -1
- package/dist/styles/themes/momotaro/tokens.css.cjs +3 -3
- package/dist/styles/themes/momotaro/tokens.css.mjs +3 -3
- package/package.json +20 -20
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { createVar } from "@vanilla-extract/css";
|
|
3
|
+
import { style } from "../../../lib/css/style/style.mjs";
|
|
4
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
5
|
+
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
6
|
+
import { focusable } from "./helpers.css.mjs";
|
|
7
|
+
setFileScope("src/themes/momotaro/components/slider.css.ts", "@blockle/blocks");
|
|
8
|
+
const trackBackground = createVar("trackBackground");
|
|
9
|
+
const filledTrackBackground = createVar("filledTrackBackground");
|
|
10
|
+
const thumbBackground = createVar("thumbBackground");
|
|
11
|
+
const slider = makeComponentTheme("slider", {
|
|
12
|
+
base: style({
|
|
13
|
+
blockSize: "20px"
|
|
14
|
+
}),
|
|
15
|
+
track: style({
|
|
16
|
+
blockSize: "4px",
|
|
17
|
+
backgroundColor: trackBackground,
|
|
18
|
+
borderRadius: "small"
|
|
19
|
+
}),
|
|
20
|
+
filledTrack: style({
|
|
21
|
+
backgroundColor: filledTrackBackground
|
|
22
|
+
}),
|
|
23
|
+
thumb: style([{
|
|
24
|
+
backgroundColor: thumbBackground,
|
|
25
|
+
borderRadius: "50%",
|
|
26
|
+
height: "16px",
|
|
27
|
+
width: "16px"
|
|
28
|
+
}, focusable]),
|
|
29
|
+
variants: {
|
|
30
|
+
size: {
|
|
31
|
+
small: style({
|
|
32
|
+
inlineSize: "100px"
|
|
33
|
+
}),
|
|
34
|
+
medium: style({
|
|
35
|
+
inlineSize: "200px"
|
|
36
|
+
}),
|
|
37
|
+
large: style({
|
|
38
|
+
inlineSize: "300px"
|
|
39
|
+
})
|
|
40
|
+
},
|
|
41
|
+
colorScheme: {
|
|
42
|
+
primary: style({
|
|
43
|
+
vars: {
|
|
44
|
+
[trackBackground]: vars.color.primaryLight,
|
|
45
|
+
[filledTrackBackground]: vars.color.primary,
|
|
46
|
+
[thumbBackground]: vars.color.primary
|
|
47
|
+
}
|
|
48
|
+
}),
|
|
49
|
+
secondary: style({
|
|
50
|
+
vars: {
|
|
51
|
+
[trackBackground]: vars.color.primaryLight,
|
|
52
|
+
[filledTrackBackground]: vars.color.secondary,
|
|
53
|
+
[thumbBackground]: vars.color.secondary
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
defaultVariants: {
|
|
59
|
+
size: "medium",
|
|
60
|
+
colorScheme: "primary"
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
endFileScope();
|
|
64
|
+
export {
|
|
65
|
+
slider
|
|
66
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
|
-
fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts", "blocks");
|
|
5
|
+
fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts", "@blockle/blocks");
|
|
6
6
|
const spinAnimation = css.keyframes({
|
|
7
7
|
"0%": {
|
|
8
8
|
transform: "rotate(0deg)"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { keyframes, style } from "@vanilla-extract/css";
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
|
-
setFileScope("src/themes/momotaro/components/spinner.css.ts", "blocks");
|
|
4
|
+
setFileScope("src/themes/momotaro/components/spinner.css.ts", "@blockle/blocks");
|
|
5
5
|
const spinAnimation = keyframes({
|
|
6
6
|
"0%": {
|
|
7
7
|
transform: "rotate(0deg)"
|
|
@@ -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", "blocks");
|
|
8
|
+
fileScope.setFileScope("src/themes/momotaro/components/switch.css.ts", "@blockle/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", "blocks");
|
|
7
|
+
setFileScope("src/themes/momotaro/components/switch.css.ts", "@blockle/blocks");
|
|
8
8
|
const activeScaleFactor = createVar("activeScaleFactor");
|
|
9
9
|
const switchTheme = makeComponentTheme("switch", {
|
|
10
10
|
base: style([{
|
|
@@ -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", "blocks");
|
|
6
|
+
fileScope.setFileScope("src/themes/momotaro/momotaro.css.ts", "@blockle/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", "blocks");
|
|
5
|
+
setFileScope("src/themes/momotaro/momotaro.css.ts", "@blockle/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", "blocks");
|
|
3
|
+
fileScope.setFileScope("src/themes/momotaro/tokens.css.ts", "@blockle/blocks");
|
|
4
4
|
const tokens = {
|
|
5
5
|
border: {
|
|
6
6
|
radius: {
|
|
@@ -22,9 +22,9 @@ const tokens = {
|
|
|
22
22
|
primaryLight: "#E4DFFF",
|
|
23
23
|
primary: "#7265E3",
|
|
24
24
|
primaryDark: "#4D3CAB",
|
|
25
|
-
secondaryLight: "#
|
|
25
|
+
secondaryLight: "#7CF5CD",
|
|
26
26
|
secondary: "#7FE3F0",
|
|
27
|
-
secondaryDark: "#
|
|
27
|
+
secondaryDark: "#68C6EF",
|
|
28
28
|
text: "#2D3142",
|
|
29
29
|
textLight: "#9C9EB9",
|
|
30
30
|
textDark: "#4C5980",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
setFileScope("src/themes/momotaro/tokens.css.ts", "blocks");
|
|
2
|
+
setFileScope("src/themes/momotaro/tokens.css.ts", "@blockle/blocks");
|
|
3
3
|
const tokens = {
|
|
4
4
|
border: {
|
|
5
5
|
radius: {
|
|
@@ -21,9 +21,9 @@ const tokens = {
|
|
|
21
21
|
primaryLight: "#E4DFFF",
|
|
22
22
|
primary: "#7265E3",
|
|
23
23
|
primaryDark: "#4D3CAB",
|
|
24
|
-
secondaryLight: "#
|
|
24
|
+
secondaryLight: "#7CF5CD",
|
|
25
25
|
secondary: "#7FE3F0",
|
|
26
|
-
secondaryDark: "#
|
|
26
|
+
secondaryDark: "#68C6EF",
|
|
27
27
|
text: "#2D3142",
|
|
28
28
|
textLight: "#9C9EB9",
|
|
29
29
|
textDark: "#4C5980",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockle/blocks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Blocks design system",
|
|
5
5
|
"repository": "git@github.com:Blockle/blocks.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"string-width": "^4.2.2"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@vanilla-extract/css": "^1.14.
|
|
62
|
+
"@vanilla-extract/css": "^1.14.1",
|
|
63
63
|
"@vanilla-extract/css-utils": "^0.1.3",
|
|
64
64
|
"@vanilla-extract/sprinkles": "^1.6.1",
|
|
65
65
|
"react": "^18.2.0",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@changesets/cli": "^2.27.1",
|
|
70
|
-
"@crackle/cli": "^0.
|
|
71
|
-
"@crackle/core": "^0.
|
|
70
|
+
"@crackle/cli": "^0.15.2",
|
|
71
|
+
"@crackle/core": "^0.33.1",
|
|
72
72
|
"@storybook/addon-a11y": "^7.6.17",
|
|
73
|
-
"@storybook/addon-coverage": "^1.0.
|
|
73
|
+
"@storybook/addon-coverage": "^1.0.1",
|
|
74
74
|
"@storybook/addon-essentials": "^7.6.17",
|
|
75
75
|
"@storybook/addon-interactions": "^7.6.17",
|
|
76
76
|
"@storybook/addon-links": "^7.6.17",
|
|
@@ -80,30 +80,30 @@
|
|
|
80
80
|
"@storybook/react": "^7.6.17",
|
|
81
81
|
"@storybook/react-vite": "^7.6.17",
|
|
82
82
|
"@storybook/testing-library": "^0.2.2",
|
|
83
|
-
"@testing-library/jest-dom": "^6.2
|
|
84
|
-
"@testing-library/react": "^14.1
|
|
85
|
-
"@types/react": "^18.2.
|
|
86
|
-
"@types/react-dom": "^18.2.
|
|
87
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
88
|
-
"@typescript-eslint/parser": "^
|
|
89
|
-
"@vanilla-extract/vite-plugin": "^
|
|
90
|
-
"@vitest/coverage-v8": "^1.
|
|
83
|
+
"@testing-library/jest-dom": "^6.4.2",
|
|
84
|
+
"@testing-library/react": "^14.2.1",
|
|
85
|
+
"@types/react": "^18.2.60",
|
|
86
|
+
"@types/react-dom": "^18.2.19",
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^7.1.0",
|
|
88
|
+
"@typescript-eslint/parser": "^7.1.0",
|
|
89
|
+
"@vanilla-extract/vite-plugin": "^4.0.4",
|
|
90
|
+
"@vitest/coverage-v8": "^1.3.1",
|
|
91
91
|
"autoprefixer": "^10.4.17",
|
|
92
92
|
"cross-env": "^7.0.3",
|
|
93
|
-
"eslint": "^8.
|
|
93
|
+
"eslint": "^8.57.0",
|
|
94
94
|
"eslint-config-prettier": "^9.1.0",
|
|
95
|
-
"eslint-plugin-jest": "^27.
|
|
95
|
+
"eslint-plugin-jest": "^27.9.0",
|
|
96
96
|
"eslint-plugin-prettier": "^5.1.3",
|
|
97
97
|
"eslint-plugin-react": "^7.33.2",
|
|
98
98
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
99
|
-
"eslint-plugin-storybook": "^0.
|
|
100
|
-
"eslint-plugin-unicorn": "^
|
|
101
|
-
"jsdom": "^
|
|
102
|
-
"prettier": "^3.2.
|
|
99
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
100
|
+
"eslint-plugin-unicorn": "^51.0.1",
|
|
101
|
+
"jsdom": "^24.0.0",
|
|
102
|
+
"prettier": "^3.2.5",
|
|
103
103
|
"prop-types": "^15.8.1",
|
|
104
104
|
"storybook": "^7.6.17",
|
|
105
105
|
"typescript": "^5.3.3",
|
|
106
|
-
"vitest": "^1.
|
|
106
|
+
"vitest": "^1.3.1"
|
|
107
107
|
},
|
|
108
108
|
"packageManager": "yarn@1.22.19"
|
|
109
109
|
}
|