@newhighsco/chipset 6.20.0 → 6.21.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.20.0",
4
+ "version": "6.21.1",
5
5
  "author": "New High Score",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -56,7 +56,7 @@
56
56
  "@newhighsco/release-config": "1.4.7",
57
57
  "@newhighsco/storybook-preset": "7.1.2",
58
58
  "@newhighsco/stylelint-config": "4.0.17",
59
- "@newhighsco/svgo-config": "1.0.2",
59
+ "@newhighsco/svgr-config": "1.0.0",
60
60
  "@omlet/cli": "2.0.0",
61
61
  "@storybook/react-webpack5": "8.6.14",
62
62
  "@testing-library/dom": "10.4.1",
@@ -122,8 +122,5 @@
122
122
  "extends": [
123
123
  "@newhighsco/stylelint-config"
124
124
  ]
125
- },
126
- "svgr": {
127
- "titleProp": true
128
125
  }
129
126
  }
@@ -14,7 +14,8 @@ const Grid = ({
14
14
  valign,
15
15
  children,
16
16
  theme,
17
- className
17
+ className,
18
+ ...rest
18
19
  }) => {
19
20
  if (!children) return null
20
21
 
@@ -29,6 +30,7 @@ const Grid = ({
29
30
  valign && theme[`valign-${valign}`],
30
31
  className
31
32
  )}
33
+ {...rest}
32
34
  >
33
35
  {children}
34
36
  </div>
@@ -20,10 +20,9 @@ const Icon = ({
20
20
 
21
21
  return cloneElement(Children.only(children), {
22
22
  className: classNames(theme?.root, className),
23
- ...(alt && { role: 'img' }),
23
+ ...(alt && { role: 'img', title: alt }),
24
24
  ...(!alt && { 'aria-hidden': true }),
25
25
  style: { ...style, width, height },
26
- title: alt,
27
26
  ...rest
28
27
  })
29
28
  }