@oxide/design-system 1.4.7--canary.9fd38f7.0 → 1.4.7--canary.0d2a3e5.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.
@@ -5,33 +5,14 @@
5
5
  *
6
6
  * Copyright Oxide Computer Company
7
7
  */
8
- import { SVGProps } from 'react'
8
+ import { Svg } from './Svg'
9
9
 
10
- interface SVGRProps {
11
- title?: string
12
- titleId?: string
13
- }
14
- const Instances16Icon = ({
15
- title,
16
- titleId,
17
- ...props
18
- }: SVGProps<SVGSVGElement> & SVGRProps) => (
19
- <svg
20
- width={16}
21
- height={16}
22
- viewBox="0 0 16 16"
23
- xmlns="http://www.w3.org/2000/svg"
24
- role="img"
25
- aria-labelledby={titleId}
10
+ const Instances16Icon = ({ title, ...props }: {title?: string}) => (
11
+ <Svg
12
+ title={title}
13
+ size={16}
14
+ path="M6 1.75A.75.75 0 0 1 6.75 1h7.5a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-.75.75H13V3.75a.75.75 0 0 0-.75-.75H6V1.75Zm-5 4A.75.75 0 0 1 1.75 5h8.5a.75.75 0 0 1 .75.75v8.5a.75.75 0 0 1-.75.75h-8.5a.75.75 0 0 1-.75-.75v-8.5Z"
26
15
  {...props}
27
- >
28
- {title ? <title id={titleId}>{title}</title> : null}
29
- <path
30
- fillRule="evenodd"
31
- clipRule="evenodd"
32
- d="M6 1.75A.75.75 0 0 1 6.75 1h7.5a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-.75.75H13V3.75a.75.75 0 0 0-.75-.75H6V1.75Zm-5 4A.75.75 0 0 1 1.75 5h8.5a.75.75 0 0 1 .75.75v8.5a.75.75 0 0 1-.75.75h-8.5a.75.75 0 0 1-.75-.75v-8.5Z"
33
- fill="currentColor"
34
- />
35
- </svg>
16
+ />
36
17
  )
37
18
  export default Instances16Icon
@@ -5,33 +5,14 @@
5
5
  *
6
6
  * Copyright Oxide Computer Company
7
7
  */
8
- import { SVGProps } from 'react'
8
+ import { Svg } from './Svg'
9
9
 
10
- interface SVGRProps {
11
- title?: string
12
- titleId?: string
13
- }
14
- const Instances24Icon = ({
15
- title,
16
- titleId,
17
- ...props
18
- }: SVGProps<SVGSVGElement> & SVGRProps) => (
19
- <svg
20
- width={24}
21
- height={24}
22
- viewBox="0 0 24 24"
23
- xmlns="http://www.w3.org/2000/svg"
24
- role="img"
25
- aria-labelledby={titleId}
10
+ const Instances24Icon = ({ title, ...props }: {title?: string}) => (
11
+ <Svg
12
+ title={title}
13
+ size={24}
14
+ path="M7 3a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-2V6a1 1 0 0 0-1-1H7V3ZM3 7h13a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1Z"
26
15
  {...props}
27
- >
28
- {title ? <title id={titleId}>{title}</title> : null}
29
- <path
30
- fillRule="evenodd"
31
- clipRule="evenodd"
32
- d="M7 3a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-2V6a1 1 0 0 0-1-1H7V3ZM3 7h13a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1Z"
33
- fill="currentColor"
34
- />
35
- </svg>
16
+ />
36
17
  )
37
18
  export default Instances24Icon
@@ -19,7 +19,7 @@ export const Svg = ({
19
19
  ...props
20
20
  }: SVGProps<SVGSVGElement> & OxSvgProps) => (
21
21
  <svg
22
- aria-hidden={!title}
22
+ aria-hidden={title ? undefined : 'true'}
23
23
  width={size}
24
24
  height={size}
25
25
  viewBox={`0 0 ${size} ${size}`}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxide/design-system",
3
- "version": "1.4.7--canary.9fd38f7.0",
3
+ "version": "1.4.7--canary.0d2a3e5.0",
4
4
  "description": "Home of reusable design assets and token for oxide internal sites",
5
5
  "main": "components/dist/index.js",
6
6
  "scripts": {