@newhighsco/chipset 7.0.0 → 7.0.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": "7.0.
|
|
4
|
+
"version": "7.0.1",
|
|
5
5
|
"author": "New High Score",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"repository": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/newhighsco/chipset/issues"
|
|
14
14
|
},
|
|
15
|
-
"packageManager": "yarn@4.
|
|
15
|
+
"packageManager": "yarn@4.14.1",
|
|
16
16
|
"main": "src/index.js",
|
|
17
17
|
"files": [
|
|
18
18
|
"src",
|
|
@@ -45,46 +45,48 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/core": "7.29.0",
|
|
48
|
-
"@babel/preset-env": "7.29.
|
|
48
|
+
"@babel/preset-env": "7.29.2",
|
|
49
49
|
"@babel/preset-react": "7.28.5",
|
|
50
|
-
"@commitlint/cli": "20.
|
|
50
|
+
"@commitlint/cli": "20.5.2",
|
|
51
51
|
"@newhighsco/browserslist-config": "2.0.0",
|
|
52
|
-
"@newhighsco/commitlint-config": "1.1.
|
|
52
|
+
"@newhighsco/commitlint-config": "1.1.53",
|
|
53
53
|
"@newhighsco/editor-config": "1.2.0",
|
|
54
|
-
"@newhighsco/eslint-config": "7.0.
|
|
55
|
-
"@newhighsco/postcss-config": "4.0.
|
|
56
|
-
"@newhighsco/prettier-config": "2.3.
|
|
57
|
-
"@newhighsco/release-config": "1.4.
|
|
58
|
-
"@newhighsco/storybook-preset": "10.2.
|
|
59
|
-
"@newhighsco/stylelint-config": "4.0.
|
|
54
|
+
"@newhighsco/eslint-config": "7.0.54",
|
|
55
|
+
"@newhighsco/postcss-config": "4.0.46",
|
|
56
|
+
"@newhighsco/prettier-config": "2.3.5",
|
|
57
|
+
"@newhighsco/release-config": "1.4.27",
|
|
58
|
+
"@newhighsco/storybook-preset": "10.2.36",
|
|
59
|
+
"@newhighsco/stylelint-config": "4.0.39",
|
|
60
60
|
"@newhighsco/svgr-config": "1.0.0",
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
61
|
+
"@newhighsco/yarn-plugin-preset": "1.1.3",
|
|
62
|
+
"@omlet/cli": "2.2.0",
|
|
63
|
+
"@storybook/react-webpack5": "10.3.5",
|
|
63
64
|
"@testing-library/dom": "10.4.1",
|
|
64
65
|
"@testing-library/jest-dom": "6.9.1",
|
|
65
66
|
"@testing-library/react": "16.3.2",
|
|
66
|
-
"babel-loader": "10.
|
|
67
|
-
"chromatic": "
|
|
67
|
+
"babel-loader": "10.1.1",
|
|
68
|
+
"chromatic": "16.6.1",
|
|
68
69
|
"concurrently": "9.2.1",
|
|
69
|
-
"eslint": "10.
|
|
70
|
+
"eslint": "10.2.1",
|
|
70
71
|
"husky": "9.1.7",
|
|
71
72
|
"identity-obj-proxy": "3.0.0",
|
|
72
|
-
"jest": "30.
|
|
73
|
-
"jest-environment-jsdom": "30.
|
|
74
|
-
"jest-junit": "
|
|
75
|
-
"postcss": "8.5.
|
|
76
|
-
"prettier": "3.8.
|
|
77
|
-
"react": "19.2.
|
|
78
|
-
"react-dom": "19.2.
|
|
73
|
+
"jest": "30.3.0",
|
|
74
|
+
"jest-environment-jsdom": "30.3.0",
|
|
75
|
+
"jest-junit": "17.0.0",
|
|
76
|
+
"postcss": "8.5.12",
|
|
77
|
+
"prettier": "3.8.3",
|
|
78
|
+
"react": "19.2.5",
|
|
79
|
+
"react-dom": "19.2.5",
|
|
79
80
|
"sass-true": "10.1.0",
|
|
80
81
|
"semantic-release": "25.0.3",
|
|
81
|
-
"storybook": "10.
|
|
82
|
-
"stylelint": "17.
|
|
83
|
-
"
|
|
82
|
+
"storybook": "10.3.5",
|
|
83
|
+
"stylelint": "17.9.1",
|
|
84
|
+
"typescript": "6.0.3",
|
|
85
|
+
"webpack": "5.106.2"
|
|
84
86
|
},
|
|
85
87
|
"peerDependencies": {
|
|
86
|
-
"react": "19.2.
|
|
87
|
-
"react-dom": "19.2.
|
|
88
|
+
"react": "19.2.5",
|
|
89
|
+
"react-dom": "19.2.5"
|
|
88
90
|
},
|
|
89
91
|
"browserslist": [
|
|
90
92
|
"extends @newhighsco/browserslist-config"
|
|
@@ -20,15 +20,15 @@ const Menubar = ({
|
|
|
20
20
|
onToggle = () => {},
|
|
21
21
|
theme
|
|
22
22
|
}) => {
|
|
23
|
-
const [visible,
|
|
23
|
+
const [visible, toggleVisibility] = useToggle(!toggle)
|
|
24
24
|
const id = useIds()
|
|
25
25
|
|
|
26
26
|
if (!links.length) return null
|
|
27
27
|
|
|
28
28
|
const icons = toggle?.icons || ICONS
|
|
29
29
|
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const handleToggle = () => {
|
|
31
|
+
toggleVisibility()
|
|
32
32
|
onToggle({ visible })
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -41,7 +41,7 @@ const Menubar = ({
|
|
|
41
41
|
aria-expanded={visible}
|
|
42
42
|
aria-label={`${LABELS[visible]} ${title}`}
|
|
43
43
|
aria-haspopup
|
|
44
|
-
onClick={
|
|
44
|
+
onClick={handleToggle}
|
|
45
45
|
theme={{ root: theme?.toggle, active: theme?.toggleActive }}
|
|
46
46
|
>
|
|
47
47
|
{toggle.children}
|
|
@@ -23,7 +23,7 @@ const Tooltip = ({
|
|
|
23
23
|
theme,
|
|
24
24
|
className
|
|
25
25
|
}) => {
|
|
26
|
-
const [visible, setVisibility] = useToggle(!hidden)
|
|
26
|
+
const [visible, toggleVisibility, setVisibility] = useToggle(!hidden)
|
|
27
27
|
const id = useIds()
|
|
28
28
|
|
|
29
29
|
if (!heading && !children) return null
|
|
@@ -34,11 +34,11 @@ const Tooltip = ({
|
|
|
34
34
|
aria-describedby={id}
|
|
35
35
|
className={classNames(theme?.root, className)}
|
|
36
36
|
{...(!manual && {
|
|
37
|
-
onMouseOver: setVisibility,
|
|
38
|
-
onMouseOut: setVisibility,
|
|
39
|
-
onFocus: setVisibility,
|
|
40
|
-
onBlur: setVisibility,
|
|
41
|
-
onTouchEnd: setVisibility
|
|
37
|
+
onMouseOver: () => setVisibility(true),
|
|
38
|
+
onMouseOut: () => setVisibility(false),
|
|
39
|
+
onFocus: () => setVisibility(true),
|
|
40
|
+
onBlur: () => setVisibility(false),
|
|
41
|
+
onTouchEnd: () => setVisibility(false)
|
|
42
42
|
})}
|
|
43
43
|
>
|
|
44
44
|
<SmartLink
|
|
@@ -47,7 +47,7 @@ const Tooltip = ({
|
|
|
47
47
|
target={target}
|
|
48
48
|
disabled={disabled}
|
|
49
49
|
aria-expanded={visible}
|
|
50
|
-
{...(manual && { onClick:
|
|
50
|
+
{...(manual && { onClick: toggleVisibility })}
|
|
51
51
|
>
|
|
52
52
|
{toggle}
|
|
53
53
|
</SmartLink>
|
package/src/hooks/use-toggle.js
CHANGED
package/styles/mixins/_grid.scss
CHANGED
|
@@ -143,14 +143,10 @@ $fraction-names: whole half third quarter fifth sixth seventh eighth ninth tenth
|
|
|
143
143
|
@for $i from 1 through $columns-length {
|
|
144
144
|
$column: list.nth($columns, $i);
|
|
145
145
|
$grid: list.nth($fraction-names, $column);
|
|
146
|
-
$column-count: if(
|
|
147
|
-
sass($column == 1): 1; else: $column - 1
|
|
148
|
-
);
|
|
146
|
+
$column-count: if(sass($column == 1): 1; else: $column - 1);
|
|
149
147
|
|
|
150
148
|
@for $j from 1 through $column-count {
|
|
151
|
-
$plural: if(
|
|
152
|
-
sass($j == 1): '' ; else: 's'
|
|
153
|
-
);
|
|
149
|
+
$plural: if(sass($j == 1): '' ; else: 's');
|
|
154
150
|
$column-width: $j * math.div(100, $column);
|
|
155
151
|
$column-name: list.nth($count-names, $j);
|
|
156
152
|
|
package/styles/mixins/_mq.scss
CHANGED