@newhighsco/chipset 6.16.6 → 6.17.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newhighsco/chipset",
3
3
  "description": "Shareable, theme-able component library by New High Score",
4
- "version": "6.16.6",
4
+ "version": "6.17.1",
5
5
  "author": "New High Score",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -25,9 +25,8 @@
25
25
  "start": "storybook dev --port 49928 --docs",
26
26
  "build": "storybook build --output-dir build --docs --quiet --webpack-stats-json",
27
27
  "pretest": "yarn lint",
28
- "test": "concurrently yarn:test:*",
29
- "test:js": "jest --maxWorkers=2 --coverage",
30
- "tdd": "yarn test:js --watch",
28
+ "test": "jest --runInBand",
29
+ "test:list": "jest --listTests",
31
30
  "snapshot": "chromatic --storybook-build-dir build --auto-accept-changes main --exit-once-uploaded --only-changed",
32
31
  "lint": "concurrently yarn:lint:*",
33
32
  "lint:js": "eslint --cache --ignore-path .gitignore .",
@@ -50,34 +49,33 @@
50
49
  "@newhighsco/browserslist-config": "1.1.0",
51
50
  "@newhighsco/commitlint-config": "1.1.45",
52
51
  "@newhighsco/editor-config": "1.2.0",
53
- "@newhighsco/eslint-config": "4.0.248",
54
- "@newhighsco/postcss-config": "3.5.304",
52
+ "@newhighsco/eslint-config": "4.0.253",
53
+ "@newhighsco/postcss-config": "3.5.307",
55
54
  "@newhighsco/prettier-config": "2.1.28",
56
- "@newhighsco/release-config": "1.3.96",
57
- "@newhighsco/storybook-preset": "7.0.99",
58
- "@newhighsco/stylelint-config": "3.1.98",
59
- "@storybook/react-webpack5": "8.4.7",
55
+ "@newhighsco/release-config": "1.4.0",
56
+ "@newhighsco/storybook-preset": "7.0.107",
57
+ "@newhighsco/stylelint-config": "4.0.2",
58
+ "@storybook/react-webpack5": "8.5.1",
60
59
  "@testing-library/dom": "10.4.0",
61
60
  "@testing-library/jest-dom": "6.6.3",
62
- "@testing-library/react": "16.1.0",
61
+ "@testing-library/react": "16.2.0",
63
62
  "babel-loader": "9.2.1",
64
- "chromatic": "11.20.2",
65
- "concurrently": "9.1.0",
63
+ "chromatic": "11.25.1",
64
+ "concurrently": "9.1.2",
66
65
  "eslint": "8.57.1",
67
66
  "husky": "9.1.7",
68
67
  "identity-obj-proxy": "3.0.0",
69
68
  "jest": "29.7.0",
70
69
  "jest-environment-jsdom": "29.7.0",
71
- "jest-environment-node-single-context": "29.4.0",
72
70
  "jest-junit": "16.0.0",
73
- "postcss": "8.4.49",
71
+ "postcss": "8.5.1",
74
72
  "prettier": "3.4.2",
75
73
  "react": "19.0.0",
76
74
  "react-dom": "19.0.0",
77
75
  "sass-true": "8.1.0",
78
- "semantic-release": "24.2.0",
79
- "storybook": "8.4.7",
80
- "stylelint": "16.12.0",
76
+ "semantic-release": "24.2.1",
77
+ "storybook": "8.5.1",
78
+ "stylelint": "16.13.2",
81
79
  "webpack": "5.97.1"
82
80
  },
83
81
  "peerDependencies": {
@@ -1,10 +1,12 @@
1
1
  import classNames from 'classnames'
2
- import { arrayOf, node, oneOf, shape, string } from 'prop-types'
2
+ import { arrayOf, node, oneOf, oneOfType, shape, string } from 'prop-types'
3
3
  import React from 'react'
4
4
 
5
5
  const GridItem = ({ sizes, children, theme, className, ...rest }) => {
6
6
  if (!children) return null
7
7
 
8
+ if (!Array.isArray(sizes)) sizes = [sizes]
9
+
8
10
  return (
9
11
  <div
10
12
  className={classNames(
@@ -21,7 +23,7 @@ const GridItem = ({ sizes, children, theme, className, ...rest }) => {
21
23
 
22
24
  GridItem.propTypes = {
23
25
  align: oneOf(['left', 'right', 'center']),
24
- sizes: arrayOf(string),
26
+ sizes: oneOfType([string, arrayOf(string)]),
25
27
  children: node,
26
28
  theme: shape({ item: string }),
27
29
  className: string