@newhighsco/chipset 6.25.1 → 6.25.3

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.25.1",
4
+ "version": "6.25.3",
5
5
  "author": "New High Score",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -30,60 +30,60 @@
30
30
  "snapshot": "chromatic --storybook-build-dir build --auto-accept-changes main --exit-once-uploaded --only-changed",
31
31
  "analyze": "omlet analyze",
32
32
  "lint": "concurrently yarn:lint:*",
33
- "lint:js": "eslint --cache --ignore-path .gitignore .",
33
+ "lint:js": "eslint --cache .",
34
34
  "lint:css": "stylelint --cache --ignore-path .gitignore '**/*.?(s)css'",
35
35
  "format": "concurrently yarn:format:*",
36
36
  "format:js": "yarn lint:js --fix",
37
37
  "format:css": "yarn lint:css --fix"
38
38
  },
39
39
  "dependencies": {
40
- "@dr.pogodin/react-themes": "1.9.2",
40
+ "@dr.pogodin/react-themes": "1.9.4",
41
41
  "classnames": "2.5.1",
42
42
  "react-device-detect": "2.2.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@babel/core": "7.28.4",
46
- "@babel/preset-env": "7.28.3",
47
- "@babel/preset-react": "7.27.1",
48
- "@commitlint/cli": "19.8.1",
45
+ "@babel/core": "7.28.5",
46
+ "@babel/preset-env": "7.28.5",
47
+ "@babel/preset-react": "7.28.5",
48
+ "@commitlint/cli": "20.1.0",
49
49
  "@fullhuman/postcss-purgecss": "7.0.2",
50
50
  "@newhighsco/browserslist-config": "2.0.0",
51
51
  "@newhighsco/commitlint-config": "1.1.46",
52
52
  "@newhighsco/editor-config": "1.2.0",
53
- "@newhighsco/eslint-config": "4.2.2",
54
- "@newhighsco/postcss-config": "3.5.351",
55
- "@newhighsco/prettier-config": "2.1.32",
56
- "@newhighsco/release-config": "1.4.13",
57
- "@newhighsco/storybook-preset": "8.1.2",
53
+ "@newhighsco/eslint-config": "5.4.0",
54
+ "@newhighsco/postcss-config": "4.0.3",
55
+ "@newhighsco/prettier-config": "2.3.2",
56
+ "@newhighsco/release-config": "1.4.18",
57
+ "@newhighsco/storybook-preset": "8.2.6",
58
58
  "@newhighsco/stylelint-config": "4.0.18",
59
59
  "@newhighsco/svgr-config": "1.0.0",
60
60
  "@omlet/cli": "2.0.0",
61
- "@storybook/react-webpack5": "9.1.7",
61
+ "@storybook/react-webpack5": "9.1.16",
62
62
  "@testing-library/dom": "10.4.1",
63
- "@testing-library/jest-dom": "6.8.0",
63
+ "@testing-library/jest-dom": "6.9.1",
64
64
  "@testing-library/react": "16.3.0",
65
65
  "babel-loader": "10.0.0",
66
- "chromatic": "13.2.0",
66
+ "chromatic": "13.3.3",
67
67
  "concurrently": "9.2.1",
68
- "eslint": "8.57.1",
68
+ "eslint": "9.39.1",
69
69
  "husky": "9.1.7",
70
70
  "identity-obj-proxy": "3.0.0",
71
- "jest": "30.1.3",
72
- "jest-environment-jsdom": "30.1.2",
71
+ "jest": "30.2.0",
72
+ "jest-environment-jsdom": "30.2.0",
73
73
  "jest-junit": "16.0.0",
74
74
  "postcss": "8.5.6",
75
75
  "prettier": "3.6.2",
76
- "react": "19.1.1",
77
- "react-dom": "19.1.1",
76
+ "react": "19.2.0",
77
+ "react-dom": "19.2.0",
78
78
  "sass-true": "9.0.0",
79
- "semantic-release": "24.2.9",
80
- "storybook": "9.1.7",
81
- "stylelint": "16.24.0",
82
- "webpack": "5.101.3"
79
+ "semantic-release": "25.0.2",
80
+ "storybook": "9.1.16",
81
+ "stylelint": "16.25.0",
82
+ "webpack": "5.102.1"
83
83
  },
84
84
  "peerDependencies": {
85
- "react": "19.1.1",
86
- "react-dom": "19.1.1"
85
+ "react": "19.2.0",
86
+ "react-dom": "19.2.0"
87
87
  },
88
88
  "browserslist": [
89
89
  "extends @newhighsco/browserslist-config"
@@ -93,11 +93,6 @@
93
93
  "@newhighsco"
94
94
  ]
95
95
  },
96
- "eslintConfig": {
97
- "extends": [
98
- "@newhighsco/eslint-config"
99
- ]
100
- },
101
96
  "omlet": {
102
97
  "exports": {
103
98
  ".": "src/index.js"
@@ -19,9 +19,6 @@ const Backdrop = ({ children, className, ...rest }) => {
19
19
  }
20
20
 
21
21
  Backdrop.displayName = 'Backdrop'
22
- Backdrop.propTypes = {
23
- children: node,
24
- className: string
25
- }
22
+ Backdrop.propTypes = { children: node, className: string }
26
23
 
27
24
  export default Backdrop
@@ -53,10 +53,7 @@ Card.displayName = 'Card'
53
53
  Card.propTypes = {
54
54
  href: string,
55
55
  target: string,
56
- image: shape({
57
- src: string,
58
- ratio: oneOfType([number, string])
59
- }),
56
+ image: shape({ src: string, ratio: oneOfType([number, string]) }),
60
57
  heading: node,
61
58
  children: node,
62
59
  theme: shape({
@@ -3,9 +3,6 @@ import React from 'react'
3
3
 
4
4
  const Element = ({ as: Component = 'div', ...rest }) => <Component {...rest} />
5
5
 
6
- Element.propTypes = {
7
- as: oneOfType([func, string]),
8
- children: node
9
- }
6
+ Element.propTypes = { as: oneOfType([func, string]), children: node }
10
7
 
11
8
  export default Element
@@ -45,12 +45,7 @@ const Image = ({
45
45
  Image.propTypes = {
46
46
  src: string,
47
47
  sources: arrayOf(
48
- shape({
49
- srcSet: string,
50
- sizes: string,
51
- media: string,
52
- type: string
53
- })
48
+ shape({ srcSet: string, sizes: string, media: string, type: string })
54
49
  ),
55
50
  alt: string,
56
51
  loading: oneOf(['auto', 'lazy', 'eager']),
@@ -13,8 +13,6 @@ const Landmark = ({ children, ...rest }) => (
13
13
  </a>
14
14
  )
15
15
 
16
- Landmark.propTypes = {
17
- children: node
18
- }
16
+ Landmark.propTypes = { children: node }
19
17
 
20
18
  export default Landmark
@@ -61,10 +61,7 @@ const PROVIDERS = {
61
61
  },
62
62
  getVideoUrl: ({ channel, autoPlay, muted }) => {
63
63
  const url = new URL(`https://www.youtube-nocookie.com/embed/${channel}`)
64
- url.search = new URLSearchParams({
65
- autoplay: !!autoPlay,
66
- mute: !!muted
67
- })
64
+ url.search = new URLSearchParams({ autoplay: !!autoPlay, mute: !!muted })
68
65
 
69
66
  return url
70
67
  },
@@ -43,10 +43,7 @@ const Tooltip = ({
43
43
  target={target}
44
44
  disabled={disabled}
45
45
  aria-label="Toggle tooltip"
46
- {...(manual && {
47
- 'aria-expanded': visible,
48
- onClick: setVisibility
49
- })}
46
+ {...(manual && { 'aria-expanded': visible, onClick: setVisibility })}
50
47
  >
51
48
  {toggle}
52
49
  </SmartLink>
@@ -17,8 +17,6 @@ const VisuallyHidden = ({ children, ...rest }) => {
17
17
  )
18
18
  }
19
19
 
20
- VisuallyHidden.propTypes = {
21
- children: node
22
- }
20
+ VisuallyHidden.propTypes = { children: node }
23
21
 
24
22
  export default VisuallyHidden
@@ -22,7 +22,4 @@ export const ImageProvider = ({ children, renderImage }) => {
22
22
  )
23
23
  }
24
24
 
25
- ImageProvider.propTypes = {
26
- children: node,
27
- renderImage: func
28
- }
25
+ ImageProvider.propTypes = { children: node, renderImage: func }
@@ -20,7 +20,4 @@ export const LinkProvider = ({ children, renderLink }) => {
20
20
  )
21
21
  }
22
22
 
23
- LinkProvider.propTypes = {
24
- children: node,
25
- renderLink: func
26
- }
23
+ LinkProvider.propTypes = { children: node, renderLink: func }
package/styles/index.js CHANGED
@@ -1,3 +1 @@
1
- module.exports = {
2
- includePaths: [__dirname]
3
- }
1
+ module.exports = { includePaths: [__dirname] }