@newhighsco/chipset 6.22.0 → 6.23.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.22.0",
4
+ "version": "6.23.1",
5
5
  "author": "New High Score",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -42,7 +42,7 @@
42
42
  "react-device-detect": "2.2.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@babel/core": "7.28.3",
45
+ "@babel/core": "7.28.4",
46
46
  "@babel/preset-env": "7.28.3",
47
47
  "@babel/preset-react": "7.27.1",
48
48
  "@commitlint/cli": "19.8.1",
@@ -50,35 +50,35 @@
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.1.44",
54
- "@newhighsco/postcss-config": "3.5.345",
53
+ "@newhighsco/eslint-config": "4.2.1",
54
+ "@newhighsco/postcss-config": "3.5.350",
55
55
  "@newhighsco/prettier-config": "2.1.32",
56
- "@newhighsco/release-config": "1.4.7",
57
- "@newhighsco/storybook-preset": "7.1.2",
58
- "@newhighsco/stylelint-config": "4.0.17",
56
+ "@newhighsco/release-config": "1.4.13",
57
+ "@newhighsco/storybook-preset": "8.1.1",
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": "8.6.14",
61
+ "@storybook/react-webpack5": "9.1.7",
62
62
  "@testing-library/dom": "10.4.1",
63
63
  "@testing-library/jest-dom": "6.8.0",
64
64
  "@testing-library/react": "16.3.0",
65
65
  "babel-loader": "10.0.0",
66
- "chromatic": "13.1.3",
66
+ "chromatic": "13.1.5",
67
67
  "concurrently": "9.2.1",
68
68
  "eslint": "8.57.1",
69
69
  "husky": "9.1.7",
70
70
  "identity-obj-proxy": "3.0.0",
71
- "jest": "30.1.1",
72
- "jest-environment-jsdom": "30.1.1",
71
+ "jest": "30.1.3",
72
+ "jest-environment-jsdom": "30.1.2",
73
73
  "jest-junit": "16.0.0",
74
74
  "postcss": "8.5.6",
75
75
  "prettier": "3.6.2",
76
76
  "react": "19.1.1",
77
77
  "react-dom": "19.1.1",
78
78
  "sass-true": "9.0.0",
79
- "semantic-release": "24.2.7",
80
- "storybook": "8.6.14",
81
- "stylelint": "16.23.1",
79
+ "semantic-release": "24.2.8",
80
+ "storybook": "9.1.7",
81
+ "stylelint": "16.24.0",
82
82
  "webpack": "5.101.3"
83
83
  },
84
84
  "peerDependencies": {
@@ -108,15 +108,7 @@
108
108
  },
109
109
  "prettier": "@newhighsco/prettier-config",
110
110
  "release": {
111
- "extends": "@newhighsco/release-config",
112
- "branches": [
113
- "main"
114
- ]
115
- },
116
- "renovate": {
117
- "extends": [
118
- "local>newhighsco/.github:renovate-config"
119
- ]
111
+ "extends": "@newhighsco/release-config"
120
112
  },
121
113
  "stylelint": {
122
114
  "extends": [
@@ -4,12 +4,25 @@ import React from 'react'
4
4
  import { classNames } from '../../utils'
5
5
  import SmartLink from '../SmartLink'
6
6
 
7
- const Button = ({ active, children, theme, className, setRef, ...rest }) => {
7
+ const Button = ({
8
+ variant,
9
+ active,
10
+ children,
11
+ theme,
12
+ className,
13
+ setRef,
14
+ ...rest
15
+ }) => {
8
16
  if (!children) return null
9
17
 
10
18
  return (
11
19
  <SmartLink
12
- className={classNames(theme?.root, active && theme?.active, className)}
20
+ className={classNames(
21
+ theme?.root,
22
+ variant && theme?.[variant],
23
+ active && theme?.active,
24
+ className
25
+ )}
13
26
  ref={setRef}
14
27
  {...rest}
15
28
  >
@@ -20,9 +33,10 @@ const Button = ({ active, children, theme, className, setRef, ...rest }) => {
20
33
 
21
34
  Button.displayName = 'Button'
22
35
  Button.propTypes = {
36
+ variant: string,
23
37
  active: bool,
24
38
  children: node,
25
- theme: shape({ root: string, active: string }),
39
+ theme: shape({ root: string, active: string, variant: string }),
26
40
  setRef: oneOfType([func, object]),
27
41
  className: string
28
42
  }
@@ -1,4 +1,4 @@
1
- import { Markdown, Meta } from '@storybook/blocks'
1
+ import { Markdown, Meta } from '@storybook/addon-docs/blocks'
2
2
 
3
3
  import ChangeLog from '../../CHANGELOG.md?raw'
4
4
 
@@ -1,4 +1,4 @@
1
- import { Meta, Title } from '@storybook/blocks'
1
+ import { Meta, Title } from '@storybook/addon-docs/blocks'
2
2
 
3
3
  import { ReactComponent as LogoSvg } from '../../.storybook/static/logo.svg'
4
4
  import { CreditLockup, Image, SmartLink } from '../../src'
@@ -6,5 +6,5 @@
6
6
  padding: 0 !important;
7
7
  border: 0 !important;
8
8
  overflow: hidden !important;
9
- clip: rect(0, 0, 0, 0) !important;
9
+ clip-path: rect(0 0 0 0) !important;
10
10
  }
@@ -4,5 +4,5 @@
4
4
  width: 1px !important;
5
5
  margin: 0 !important;
6
6
  overflow: visible !important;
7
- clip: auto !important;
7
+ clip-path: none !important;
8
8
  }