@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 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.15.9",
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": "is-ci || husky install",
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": "npm-run-all --parallel 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": "npm-run-all --parallel 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": "npm-run-all --parallel 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.23.7",
50
- "@babel/preset-env": "7.23.8",
51
- "@babel/preset-react": "7.23.3",
52
- "@commitlint/cli": "18.4.4",
53
- "@fullhuman/postcss-purgecss": "5.0.0",
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.30",
55
+ "@newhighsco/commitlint-config": "1.1.38",
56
56
  "@newhighsco/editor-config": "1.2.0",
57
- "@newhighsco/eslint-config": "4.0.132",
58
- "@newhighsco/postcss-config": "3.5.192",
59
- "@newhighsco/prettier-config": "2.1.17",
60
- "@newhighsco/release-config": "1.3.56",
61
- "@newhighsco/storybook-preset": "6.3.29",
62
- "@newhighsco/stylelint-config": "3.1.70",
63
- "@storybook/react-webpack5": "7.6.7",
64
- "@testing-library/jest-dom": "6.2.0",
65
- "@testing-library/react": "14.1.2",
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": "10.2.0",
68
- "eslint": "8.56.0",
69
- "husky": "8.0.3",
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.2.0",
74
+ "jest-environment-node-single-context": "29.4.0",
75
75
  "jest-junit": "16.0.0",
76
- "npm-run-all": "4.1.5",
77
- "postcss": "8.4.33",
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": "7.0.1",
82
- "semantic-release": "22.0.12",
83
- "storybook": "7.6.7",
84
- "stylelint": "16.1.0",
85
- "webpack": "5.89.0"
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",
@@ -20,6 +20,7 @@ const CreditLockup = ({ theme, ...rest }) => (
20
20
  href={href}
21
21
  target="_blank"
22
22
  title={title}
23
+ disabled
23
24
  >
24
25
  <Icon theme={{ root: theme?.logo }} alt={name}>
25
26
  <LogoSvg />
@@ -24,16 +24,18 @@
24
24
  display: inline-block;
25
25
 
26
26
  @media (prefers-reduced-motion: no-preference) {
27
- &:hover {
28
- .logo {
29
- transform: scale(1.1);
27
+ &[href] {
28
+ &:hover {
29
+ .logo {
30
+ transform: scale(1.1);
31
+ }
30
32
  }
31
- }
32
33
 
33
- &:focus,
34
- &:active {
35
- .logo {
36
- transform: scale(1);
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,
@@ -0,0 +1,9 @@
1
+ import { Markdown, Meta } from '@storybook/blocks'
2
+
3
+ import ChangeLog from '../../CHANGELOG.md?raw'
4
+
5
+ <Meta title="Docs/CHANGELOG" />
6
+
7
+ # CHANGELOG
8
+
9
+ <Markdown>{ChangeLog}</Markdown>
File without changes