@newhighsco/chipset 6.15.9 → 6.16.0
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 +32 -33
- package/src/components/CreditLockup/CreditLockup.jsx +1 -0
- package/src/components/CreditLockup/CreditLockup.module.scss +10 -8
- package/src/components/SmartLink/SmartLink.jsx +14 -1
- package/src/docs/CHANGELOG.mdx +9 -0
- /package/src/docs/{README.stories.mdx → README.mdx} +0 -0
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.
|
|
4
|
+
"version": "6.16.0",
|
|
5
5
|
"author": "New High Score <hello@newhighsco.re>",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"config": {
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"url": "https://main--6004028a0df11e0021f58df8.chromatic.com"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
|
-
"prepare": "
|
|
28
|
+
"prepare": "husky",
|
|
29
29
|
"start": "storybook dev --port 49928 --docs",
|
|
30
30
|
"build": "storybook build --output-dir build --docs --quiet --webpack-stats-json",
|
|
31
31
|
"pretest": "yarn lint",
|
|
32
|
-
"test": "
|
|
32
|
+
"test": "concurrently yarn:test:*",
|
|
33
33
|
"test:js": "jest --maxWorkers=2 --coverage",
|
|
34
34
|
"tdd": "yarn test:js --watch",
|
|
35
35
|
"snapshot": "chromatic --storybook-build-dir build --auto-accept-changes main --exit-once-uploaded --only-changed",
|
|
36
|
-
"lint": "
|
|
36
|
+
"lint": "concurrently yarn:lint:*",
|
|
37
37
|
"lint:js": "eslint --cache --ignore-path .gitignore .",
|
|
38
38
|
"lint:css": "stylelint --cache --ignore-path .gitignore '**/*.?(s)css'",
|
|
39
|
-
"format": "
|
|
39
|
+
"format": "concurrently yarn:format:*",
|
|
40
40
|
"format:js": "yarn lint:js --fix",
|
|
41
41
|
"format:css": "yarn lint:css --fix"
|
|
42
42
|
},
|
|
@@ -46,43 +46,42 @@
|
|
|
46
46
|
"react-device-detect": "2.2.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@babel/core": "7.
|
|
50
|
-
"@babel/preset-env": "7.
|
|
51
|
-
"@babel/preset-react": "7.
|
|
52
|
-
"@commitlint/cli": "
|
|
53
|
-
"@fullhuman/postcss-purgecss": "
|
|
49
|
+
"@babel/core": "7.24.4",
|
|
50
|
+
"@babel/preset-env": "7.24.4",
|
|
51
|
+
"@babel/preset-react": "7.24.1",
|
|
52
|
+
"@commitlint/cli": "19.2.1",
|
|
53
|
+
"@fullhuman/postcss-purgecss": "6.0.0",
|
|
54
54
|
"@newhighsco/browserslist-config": "1.1.0",
|
|
55
|
-
"@newhighsco/commitlint-config": "1.1.
|
|
55
|
+
"@newhighsco/commitlint-config": "1.1.38",
|
|
56
56
|
"@newhighsco/editor-config": "1.2.0",
|
|
57
|
-
"@newhighsco/eslint-config": "4.0.
|
|
58
|
-
"@newhighsco/postcss-config": "3.5.
|
|
59
|
-
"@newhighsco/prettier-config": "2.1.
|
|
60
|
-
"@newhighsco/release-config": "1.3.
|
|
61
|
-
"@newhighsco/storybook-preset": "
|
|
62
|
-
"@newhighsco/stylelint-config": "3.1.
|
|
63
|
-
"@storybook/react-webpack5": "
|
|
64
|
-
"@testing-library/jest-dom": "6.2
|
|
65
|
-
"@testing-library/react": "14.
|
|
57
|
+
"@newhighsco/eslint-config": "4.0.158",
|
|
58
|
+
"@newhighsco/postcss-config": "3.5.224",
|
|
59
|
+
"@newhighsco/prettier-config": "2.1.22",
|
|
60
|
+
"@newhighsco/release-config": "1.3.70",
|
|
61
|
+
"@newhighsco/storybook-preset": "7.0.12",
|
|
62
|
+
"@newhighsco/stylelint-config": "3.1.79",
|
|
63
|
+
"@storybook/react-webpack5": "8.0.6",
|
|
64
|
+
"@testing-library/jest-dom": "6.4.2",
|
|
65
|
+
"@testing-library/react": "14.3.0",
|
|
66
66
|
"babel-loader": "9.1.3",
|
|
67
|
-
"chromatic": "
|
|
68
|
-
"
|
|
69
|
-
"
|
|
67
|
+
"chromatic": "11.3.0",
|
|
68
|
+
"concurrently": "8.2.2",
|
|
69
|
+
"eslint": "8.57.0",
|
|
70
|
+
"husky": "9.0.11",
|
|
70
71
|
"identity-obj-proxy": "3.0.0",
|
|
71
|
-
"is-ci": "3.0.1",
|
|
72
72
|
"jest": "29.7.0",
|
|
73
73
|
"jest-environment-jsdom": "29.7.0",
|
|
74
|
-
"jest-environment-node-single-context": "29.
|
|
74
|
+
"jest-environment-node-single-context": "29.4.0",
|
|
75
75
|
"jest-junit": "16.0.0",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"prettier": "3.1.1",
|
|
76
|
+
"postcss": "8.4.38",
|
|
77
|
+
"prettier": "3.2.5",
|
|
79
78
|
"react": "18.2.0",
|
|
80
79
|
"react-dom": "18.2.0",
|
|
81
|
-
"sass-true": "
|
|
82
|
-
"semantic-release": "
|
|
83
|
-
"storybook": "
|
|
84
|
-
"stylelint": "16.1
|
|
85
|
-
"webpack": "5.
|
|
80
|
+
"sass-true": "8.0.0",
|
|
81
|
+
"semantic-release": "23.0.8",
|
|
82
|
+
"storybook": "8.0.6",
|
|
83
|
+
"stylelint": "16.3.1",
|
|
84
|
+
"webpack": "5.91.0"
|
|
86
85
|
},
|
|
87
86
|
"peerDependencies": {
|
|
88
87
|
"react": "18.2.0",
|
|
@@ -24,16 +24,18 @@
|
|
|
24
24
|
display: inline-block;
|
|
25
25
|
|
|
26
26
|
@media (prefers-reduced-motion: no-preference) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
&[href] {
|
|
28
|
+
&:hover {
|
|
29
|
+
.logo {
|
|
30
|
+
transform: scale(1.1);
|
|
31
|
+
}
|
|
30
32
|
}
|
|
31
|
-
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
&:focus,
|
|
35
|
+
&:active {
|
|
36
|
+
.logo {
|
|
37
|
+
transform: scale(1);
|
|
38
|
+
}
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { func, node, object, oneOf, oneOfType, string } from 'prop-types'
|
|
1
|
+
import { bool, func, node, object, oneOf, oneOfType, string } from 'prop-types'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
4
|
import { absoluteUrl } from '../../utils'
|
|
@@ -9,6 +9,7 @@ import { absoluteUrl } from '../../utils'
|
|
|
9
9
|
const SmartLink = ({
|
|
10
10
|
href,
|
|
11
11
|
target,
|
|
12
|
+
disabled,
|
|
12
13
|
type = 'button',
|
|
13
14
|
setRef,
|
|
14
15
|
children,
|
|
@@ -17,6 +18,17 @@ const SmartLink = ({
|
|
|
17
18
|
}) => {
|
|
18
19
|
if (!children) return null
|
|
19
20
|
|
|
21
|
+
if (disabled) {
|
|
22
|
+
const { role = 'link' } = rest
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
26
|
+
<a ref={setRef} className={className} role={role} aria-disabled="true">
|
|
27
|
+
{children}
|
|
28
|
+
</a>
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
|
|
20
32
|
if (!href) {
|
|
21
33
|
return (
|
|
22
34
|
<button ref={setRef} className={className} type={type} {...rest}>
|
|
@@ -51,6 +63,7 @@ SmartLink.displayName = 'SmartLink'
|
|
|
51
63
|
SmartLink.propTypes = {
|
|
52
64
|
href: string,
|
|
53
65
|
target: string,
|
|
66
|
+
disabled: bool,
|
|
54
67
|
type: oneOf(['button', 'reset', 'submit']),
|
|
55
68
|
setRef: oneOfType([func, object]),
|
|
56
69
|
children: node,
|
|
File without changes
|