@primitiv-ui/icons 0.1.28 → 0.1.29
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/README.md +2 -0
- package/package.json +1 -1
- package/src/icons/Pause.tsx +20 -0
- package/src/icons/Play.tsx +20 -0
- package/src/icons/index.ts +2 -0
package/README.md
CHANGED
|
@@ -76,6 +76,8 @@ All other [SVG element attributes](https://developer.mozilla.org/en-US/docs/Web/
|
|
|
76
76
|
| [Minimize](src/icons/Minimize.tsx) | `import { Minimize } from "@primitiv-ui/icons"` |
|
|
77
77
|
| [Minus](src/icons/Minus.tsx) | `import { Minus } from "@primitiv-ui/icons"` |
|
|
78
78
|
| [Moon](src/icons/Moon.tsx) | `import { Moon } from "@primitiv-ui/icons"` |
|
|
79
|
+
| [Pause](src/icons/Pause.tsx) | `import { Pause } from "@primitiv-ui/icons"` |
|
|
80
|
+
| [Play](src/icons/Play.tsx) | `import { Play } from "@primitiv-ui/icons"` |
|
|
79
81
|
| [Plus](src/icons/Plus.tsx) | `import { Plus } from "@primitiv-ui/icons"` |
|
|
80
82
|
| [Search](src/icons/Search.tsx) | `import { Search } from "@primitiv-ui/icons"` |
|
|
81
83
|
| [Settings](src/icons/Settings.tsx) | `import { Settings } from "@primitiv-ui/icons"` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primitiv-ui/icons",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.29",
|
|
4
4
|
"description": "Fill-based SVG icon library for the Primitiv ecosystem. Icons inherit currentColor, scale via a size prop, accept all native SVG attributes, and tree-shake cleanly.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactElement } from 'react'
|
|
2
|
+
import type { IconProps } from '../types.ts'
|
|
3
|
+
import { IconBase } from '../IconBase.tsx'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The Pause icon.
|
|
7
|
+
*
|
|
8
|
+
* A fill-based SVG that inherits `currentColor` and scales via the
|
|
9
|
+
* `size` prop. Accepts all native `<svg>` attributes (see {@link IconProps}).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Pause size={20} aria-label="Pause" />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export const Pause = (props: IconProps): ReactElement => (
|
|
17
|
+
<IconBase {...props}>
|
|
18
|
+
<path d="M10.25 18.5h-1.5v-13h1.5zM15.25 18.5h-1.5v-13h1.5z"/>
|
|
19
|
+
</IconBase>
|
|
20
|
+
)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactElement } from 'react'
|
|
2
|
+
import type { IconProps } from '../types.ts'
|
|
3
|
+
import { IconBase } from '../IconBase.tsx'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The Play icon.
|
|
7
|
+
*
|
|
8
|
+
* A fill-based SVG that inherits `currentColor` and scales via the
|
|
9
|
+
* `size` prop. Accepts all native `<svg>` attributes (see {@link IconProps}).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Play size={20} aria-label="Play" />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export const Play = (props: IconProps): ReactElement => (
|
|
17
|
+
<IconBase {...props}>
|
|
18
|
+
<path fillRule="evenodd" d="M19.978 12 7.92 20.44V3.56zM9.42 17.56 17.362 12 9.42 6.44z" clipRule="evenodd"/>
|
|
19
|
+
</IconBase>
|
|
20
|
+
)
|
package/src/icons/index.ts
CHANGED
|
@@ -31,6 +31,8 @@ export { Menu } from './Menu.tsx'
|
|
|
31
31
|
export { Minimize } from './Minimize.tsx'
|
|
32
32
|
export { Minus } from './Minus.tsx'
|
|
33
33
|
export { Moon } from './Moon.tsx'
|
|
34
|
+
export { Pause } from './Pause.tsx'
|
|
35
|
+
export { Play } from './Play.tsx'
|
|
34
36
|
export { Plus } from './Plus.tsx'
|
|
35
37
|
export { Search } from './Search.tsx'
|
|
36
38
|
export { Settings } from './Settings.tsx'
|