@blockle/blocks 0.18.4 → 0.19.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.
Files changed (29) hide show
  1. package/dist/index.cjs +25 -9
  2. package/dist/index.mjs +25 -9
  3. package/dist/momotaro.chunk.d.ts +52 -314
  4. package/dist/styles/components/display/Divider/Divider.cjs +48 -35
  5. package/dist/styles/components/display/Divider/Divider.mjs +49 -36
  6. package/dist/styles/components/form/Button/Button.cjs +9 -9
  7. package/dist/styles/components/form/Button/Button.mjs +9 -9
  8. package/dist/styles/components/form/Checkbox/Checkbox.cjs +10 -2
  9. package/dist/styles/components/form/Checkbox/Checkbox.mjs +12 -4
  10. package/dist/styles/components/form/Input/Input.cjs +11 -2
  11. package/dist/styles/components/form/Input/Input.mjs +12 -3
  12. package/dist/styles/components/form/Radio/Radio.cjs +2 -3
  13. package/dist/styles/components/form/Radio/Radio.mjs +3 -4
  14. package/dist/styles/components/form/Select/Select.cjs +9 -3
  15. package/dist/styles/components/form/Select/Select.mjs +10 -4
  16. package/dist/styles/components/form/Slider/Slider.cjs +5 -1
  17. package/dist/styles/components/form/Slider/Slider.mjs +6 -2
  18. package/dist/styles/components/form/Switch/Switch.cjs +9 -2
  19. package/dist/styles/components/form/Switch/Switch.mjs +11 -4
  20. package/dist/styles/components/other/BlocksProvider/BlocksProvider.cjs +2 -12
  21. package/dist/styles/components/other/BlocksProvider/BlocksProvider.mjs +3 -13
  22. package/dist/styles/components/typography/Text/Text.cjs +14 -4
  23. package/dist/styles/components/typography/Text/Text.mjs +14 -4
  24. package/dist/styles/lib/css/atoms/sprinkles.css.mjs +1 -1
  25. package/dist/styles/themes/momotaro/components/button.css.mjs +1 -1
  26. package/dist/styles/themes/momotaro/components/helpers.css.mjs +1 -1
  27. package/dist/styles/themes/momotaro/components/progress.css.mjs +1 -1
  28. package/dist/styles/themes/momotaro/components/spinner.css.mjs +1 -1
  29. package/package.json +34 -34
@@ -1,11 +1,21 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
2
  import { classnames } from "../../Accessibility/VisuallyHidden/VisuallyHidden.mjs";
4
3
  import { text } from "./text.css.mjs";
5
4
  import { Box } from "../../display/Divider/Divider.mjs";
6
- const Text = forwardRef(function Text2({ tag: Tag = "span", asChild, children, className, ...restProps }, ref) {
7
- return /* @__PURE__ */ jsx(Box, { ref, asChild: true, className: classnames(text, className), ...restProps, children: asChild ? children : /* @__PURE__ */ jsx(Tag, { children }) });
8
- });
5
+ const Text = ({
6
+ asChild,
7
+ children,
8
+ className,
9
+ ref,
10
+ tag,
11
+ ...restProps
12
+ }) => {
13
+ const Component = tag ?? "span";
14
+ return /* @__PURE__ */ jsx(Box, { asChild: true, className: classnames(text, className), ...restProps, children: asChild ? children : (
15
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
+ /* @__PURE__ */ jsx(Component, { ref, children })
17
+ ) });
18
+ };
9
19
  export {
10
20
  Text
11
21
  };
@@ -1,7 +1,7 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
2
  import { defineProperties, createSprinkles } from "@vanilla-extract/sprinkles";
3
3
  import { unresponsiveProperties, responsiveProperties } from "./atomicProperties.mjs";
4
- import { minMediaQuery, breakpointNames } from "./breakpoints.mjs";
4
+ import { breakpointNames, minMediaQuery } from "./breakpoints.mjs";
5
5
  setFileScope("src/lib/css/atoms/sprinkles.css.ts", "@blockle/blocks");
6
6
  const unresponsiveAtomicProperties = defineProperties({
7
7
  properties: unresponsiveProperties,
@@ -3,7 +3,7 @@ import { createVar } from "@vanilla-extract/css";
3
3
  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
- import { clickable, focusRingColor } from "./helpers.css.mjs";
6
+ import { focusRingColor, clickable } from "./helpers.css.mjs";
7
7
  setFileScope("src/themes/momotaro/components/button.css.ts", "@blockle/blocks");
8
8
  const intentColor = createVar("intentColor");
9
9
  const hoverBackgroundColor = createVar("hoverBackgroundColor");
@@ -1,5 +1,5 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { createVar, style, fallbackVar } from "@vanilla-extract/css";
2
+ import { style, fallbackVar, createVar } from "@vanilla-extract/css";
3
3
  import { vars } from "../../../lib/theme/vars.css.mjs";
4
4
  setFileScope("src/themes/momotaro/components/helpers.css.ts", "@blockle/blocks");
5
5
  const focusRingColor = createVar("focusRingColor");
@@ -1,5 +1,5 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { keyframes, style } from "@vanilla-extract/css";
2
+ import { style, keyframes } from "@vanilla-extract/css";
3
3
  import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
4
4
  import { vars } from "../../../lib/theme/vars.css.mjs";
5
5
  import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
@@ -1,5 +1,5 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { keyframes, style } from "@vanilla-extract/css";
2
+ import { style, keyframes } from "@vanilla-extract/css";
3
3
  import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
4
4
  setFileScope("src/themes/momotaro/components/spinner.css.ts", "@blockle/blocks");
5
5
  const spinAnimation = keyframes({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockle/blocks",
3
- "version": "0.18.4",
3
+ "version": "0.19.1",
4
4
  "description": "Blocks design system",
5
5
  "repository": "git@github.com:Blockle/blocks.git",
6
6
  "license": "MIT",
@@ -57,42 +57,39 @@
57
57
  "lint": "eslint .",
58
58
  "release": "npm run ts && npm run test && npm run build && changeset publish",
59
59
  "storybook": "storybook dev -p 6006 --no-open",
60
- "test": "vitest --silent # ignore warnings till js-dom can parse new css features",
60
+ "test": "vitest --silent",
61
61
  "ts": "tsc --noemit --project ./tsconfig.json"
62
62
  },
63
63
  "resolutions": {
64
64
  "string-width": "^4.2.2"
65
65
  },
66
- "dependencies": {
67
- "npm": "^10.8.1"
68
- },
69
66
  "devDependencies": {
70
- "@changesets/cli": "^2.27.5",
71
- "@chromatic-com/storybook": "^2.0.2",
67
+ "@changesets/cli": "^2.27.12",
68
+ "@chromatic-com/storybook": "^3.2.4",
72
69
  "@crackle/cli": "^0.15.5",
73
70
  "@crackle/core": "^0.33.3",
74
- "@storybook/addon-a11y": "^8.3.0",
75
- "@storybook/addon-coverage": "^1.0.4",
76
- "@storybook/addon-essentials": "^8.3.0",
77
- "@storybook/addon-interactions": "^8.3.0",
78
- "@storybook/addon-links": "^8.3.0",
79
- "@storybook/blocks": "^8.3.0",
80
- "@storybook/preview-api": "^8.3.0",
81
- "@storybook/react": "^8.3.0",
82
- "@storybook/react-vite": "^8.3.0",
83
- "@storybook/test": "^8.3.0",
84
- "@testing-library/jest-dom": "^6.4.5",
85
- "@testing-library/react": "^16.0.0",
71
+ "@storybook/addon-a11y": "^8.5.3",
72
+ "@storybook/addon-coverage": "^1.0.5",
73
+ "@storybook/addon-essentials": "^8.5.3",
74
+ "@storybook/addon-interactions": "^8.5.3",
75
+ "@storybook/addon-links": "^8.5.3",
76
+ "@storybook/blocks": "^8.5.3",
77
+ "@storybook/preview-api": "^8.5.3",
78
+ "@storybook/react": "^8.5.3",
79
+ "@storybook/react-vite": "^8.5.3",
80
+ "@storybook/test": "^8.5.3",
81
+ "@testing-library/jest-dom": "^6.6.3",
82
+ "@testing-library/react": "^16.2.0",
86
83
  "@types/eslint": "^8.56.12",
87
- "@types/react": "^18.3.3",
88
- "@types/react-dom": "^18.3.0",
84
+ "@types/react": "^19.0.8",
85
+ "@types/react-dom": "^19.0.3",
89
86
  "@typescript-eslint/eslint-plugin": "^7.18.0",
90
87
  "@typescript-eslint/parser": "^7.18.0",
91
- "@vanilla-extract/css": "^1.15.2",
88
+ "@vanilla-extract/css": "^1.17.1",
92
89
  "@vanilla-extract/css-utils": "^0.1.4",
93
90
  "@vanilla-extract/sprinkles": "^1.6.2",
94
- "@vanilla-extract/vite-plugin": "^4.0.10",
95
- "@vitest/coverage-v8": "^2.0.5",
91
+ "@vanilla-extract/vite-plugin": "^5.0.0",
92
+ "@vitest/coverage-v8": "^3.0.4",
96
93
  "autoprefixer": "^10.4.19",
97
94
  "cross-env": "^7.0.3",
98
95
  "eslint": "^8.57.0",
@@ -103,19 +100,22 @@
103
100
  "eslint-plugin-react-hooks": "^4.6.2",
104
101
  "eslint-plugin-storybook": "^0.8.0",
105
102
  "eslint-plugin-unicorn": "^53.0.0",
106
- "jsdom": "^25.0.0",
103
+ "jsdom": "^26.0.0",
107
104
  "prettier": "^3.3.1",
108
105
  "prop-types": "^15.8.1",
109
- "react": "^18.3.1",
110
- "react-dom": "^18.3.1",
111
- "storybook": "^8.3.0",
112
- "typescript": "^5.4.5",
113
- "vitest": "^2.0.5"
106
+ "react": "^19.0.0",
107
+ "react-dom": "^19.0.0",
108
+ "storybook": "^8.5.3",
109
+ "typescript": "^5.7.3",
110
+ "vitest": "^3.0.4"
114
111
  },
115
112
  "peerDependencies": {
116
- "@vanilla-extract/css": "^1.14",
117
- "@vanilla-extract/sprinkles": "^1.6",
118
- "react": ">=18",
119
- "react-dom": ">=18"
113
+ "@vanilla-extract/css": ">=1.14",
114
+ "@vanilla-extract/sprinkles": ">=1.6",
115
+ "react": ">=19.0.0",
116
+ "react-dom": ">=19.0.0"
117
+ },
118
+ "overrides": {
119
+ "nwsapi": "2.2.2"
120
120
  }
121
121
  }