@oxide/design-system 1.4.7--canary.e54d301.0 → 1.4.7--canary.ff15500.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.
@@ -0,0 +1,37 @@
1
+ /*
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
4
+ * file, you can obtain one at https://mozilla.org/MPL/2.0/.
5
+ *
6
+ * Copyright Oxide Computer Company
7
+ */
8
+ import { SVGProps } from 'react'
9
+
10
+ export type OxSvgProps = {
11
+ size: 12 | 16 | 24;
12
+ title?: string;
13
+ }
14
+
15
+ export const IconSvg = ({
16
+ path,
17
+ size,
18
+ title,
19
+ ...props
20
+ }: SVGProps<SVGSVGElement> & OxSvgProps) => (
21
+ <svg
22
+ aria-hidden={!title}
23
+ width={size}
24
+ height={size}
25
+ viewBox={`0 0 ${size} ${size}`}
26
+ xmlns="http://www.w3.org/2000/svg"
27
+ role={title ? "img" : "presentation"}
28
+ {...props}
29
+ >
30
+ {title && <title>{title}</title>}
31
+ <path
32
+ d={path}
33
+ fill="currentColor"
34
+ fillRule="evenodd"
35
+ clipRule="evenodd"
36
+ />
37
+ </svg>)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxide/design-system",
3
- "version": "1.4.7--canary.e54d301.0",
3
+ "version": "1.4.7--canary.ff15500.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": {