@primitiv-ui/icons 0.1.37 → 0.1.39
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/dist/IconBase.d.ts +14 -0
- package/dist/IconBase.js +9 -0
- package/dist/icons/ArrowLeft.d.ts +14 -0
- package/dist/icons/ArrowLeft.js +14 -0
- package/dist/icons/ArrowRight.d.ts +14 -0
- package/dist/icons/ArrowRight.js +14 -0
- package/dist/icons/Bell.d.ts +14 -0
- package/dist/icons/Bell.js +14 -0
- package/dist/icons/Bold.d.ts +14 -0
- package/dist/icons/Bold.js +14 -0
- package/dist/icons/Calendar.d.ts +14 -0
- package/dist/icons/Calendar.js +14 -0
- package/dist/icons/Check.d.ts +14 -0
- package/dist/icons/Check.js +14 -0
- package/dist/icons/ChevronDown.d.ts +14 -0
- package/dist/icons/ChevronDown.js +14 -0
- package/dist/icons/ChevronLeft.d.ts +14 -0
- package/dist/icons/ChevronLeft.js +14 -0
- package/dist/icons/ChevronRight.d.ts +14 -0
- package/dist/icons/ChevronRight.js +14 -0
- package/dist/icons/ChevronUp.d.ts +14 -0
- package/dist/icons/ChevronUp.js +14 -0
- package/dist/icons/Close.d.ts +14 -0
- package/dist/icons/Close.js +14 -0
- package/dist/icons/Copy.d.ts +14 -0
- package/dist/icons/Copy.js +14 -0
- package/dist/icons/Delete.d.ts +14 -0
- package/dist/icons/Delete.js +14 -0
- package/dist/icons/Download.d.ts +14 -0
- package/dist/icons/Download.js +14 -0
- package/dist/icons/Edit.d.ts +14 -0
- package/dist/icons/Edit.js +14 -0
- package/dist/icons/Error.d.ts +14 -0
- package/dist/icons/Error.js +14 -0
- package/dist/icons/ExternalLink.d.ts +14 -0
- package/dist/icons/ExternalLink.js +14 -0
- package/dist/icons/Eye.d.ts +14 -0
- package/dist/icons/Eye.js +14 -0
- package/dist/icons/EyeOff.d.ts +14 -0
- package/dist/icons/EyeOff.js +14 -0
- package/dist/icons/Eyedropper.d.ts +14 -0
- package/dist/icons/Eyedropper.js +14 -0
- package/dist/icons/File.d.ts +14 -0
- package/dist/icons/File.js +14 -0
- package/dist/icons/Filter.d.ts +14 -0
- package/dist/icons/Filter.js +14 -0
- package/dist/icons/Folder.d.ts +14 -0
- package/dist/icons/Folder.js +14 -0
- package/dist/icons/GridIcon.d.ts +14 -0
- package/dist/icons/GridIcon.js +14 -0
- package/dist/icons/Home.d.ts +14 -0
- package/dist/icons/Home.js +14 -0
- package/dist/icons/Image.d.ts +14 -0
- package/dist/icons/Image.js +14 -0
- package/dist/icons/Info.d.ts +14 -0
- package/dist/icons/Info.js +14 -0
- package/dist/icons/Italic.d.ts +14 -0
- package/dist/icons/Italic.js +14 -0
- package/dist/icons/Link.d.ts +14 -0
- package/dist/icons/Link.js +14 -0
- package/dist/icons/List.d.ts +14 -0
- package/dist/icons/List.js +14 -0
- package/dist/icons/Mail.d.ts +14 -0
- package/dist/icons/Mail.js +14 -0
- package/dist/icons/Maximize.d.ts +14 -0
- package/dist/icons/Maximize.js +14 -0
- package/dist/icons/Menu.d.ts +14 -0
- package/dist/icons/Menu.js +14 -0
- package/dist/icons/Minimize.d.ts +14 -0
- package/dist/icons/Minimize.js +14 -0
- package/dist/icons/Minus.d.ts +14 -0
- package/dist/icons/Minus.js +14 -0
- package/dist/icons/Moon.d.ts +14 -0
- package/dist/icons/Moon.js +14 -0
- package/dist/icons/Pause.d.ts +14 -0
- package/dist/icons/Pause.js +14 -0
- package/dist/icons/Play.d.ts +14 -0
- package/dist/icons/Play.js +14 -0
- package/dist/icons/Plus.d.ts +14 -0
- package/dist/icons/Plus.js +14 -0
- package/dist/icons/Search.d.ts +14 -0
- package/dist/icons/Search.js +14 -0
- package/dist/icons/Settings.d.ts +14 -0
- package/dist/icons/Settings.js +14 -0
- package/dist/icons/Share.d.ts +14 -0
- package/dist/icons/Share.js +14 -0
- package/dist/icons/Sort.d.ts +14 -0
- package/dist/icons/Sort.js +14 -0
- package/dist/icons/Success.d.ts +14 -0
- package/dist/icons/Success.js +14 -0
- package/dist/icons/Sun.d.ts +14 -0
- package/dist/icons/Sun.js +14 -0
- package/dist/icons/Underline.d.ts +14 -0
- package/dist/icons/Underline.js +14 -0
- package/dist/icons/Upload.d.ts +14 -0
- package/dist/icons/Upload.js +14 -0
- package/dist/icons/User.d.ts +14 -0
- package/dist/icons/User.js +14 -0
- package/dist/icons/Warning.d.ts +14 -0
- package/dist/icons/Warning.js +14 -0
- package/dist/icons/index.d.ts +49 -0
- package/dist/icons/index.js +49 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/{src/types.ts → dist/types.d.ts} +6 -7
- package/dist/types.js +1 -0
- package/package.json +7 -6
- package/src/IconBase.test.tsx +0 -81
- package/src/IconBase.tsx +0 -33
- package/src/icons/ArrowLeft.tsx +0 -20
- package/src/icons/ArrowRight.tsx +0 -20
- package/src/icons/Bell.tsx +0 -20
- package/src/icons/Bold.tsx +0 -20
- package/src/icons/Calendar.tsx +0 -20
- package/src/icons/Check.test.tsx +0 -27
- package/src/icons/Check.tsx +0 -20
- package/src/icons/ChevronDown.tsx +0 -20
- package/src/icons/ChevronLeft.tsx +0 -20
- package/src/icons/ChevronRight.tsx +0 -20
- package/src/icons/ChevronUp.tsx +0 -20
- package/src/icons/Close.tsx +0 -20
- package/src/icons/Copy.tsx +0 -20
- package/src/icons/Delete.tsx +0 -20
- package/src/icons/Download.tsx +0 -20
- package/src/icons/Edit.tsx +0 -20
- package/src/icons/Error.tsx +0 -20
- package/src/icons/ExternalLink.tsx +0 -20
- package/src/icons/Eye.tsx +0 -20
- package/src/icons/EyeOff.tsx +0 -20
- package/src/icons/Eyedropper.tsx +0 -20
- package/src/icons/File.tsx +0 -20
- package/src/icons/Filter.tsx +0 -20
- package/src/icons/Folder.tsx +0 -20
- package/src/icons/GridIcon.tsx +0 -20
- package/src/icons/Home.tsx +0 -20
- package/src/icons/Image.tsx +0 -20
- package/src/icons/Info.tsx +0 -20
- package/src/icons/Italic.tsx +0 -20
- package/src/icons/Link.tsx +0 -20
- package/src/icons/List.tsx +0 -20
- package/src/icons/Mail.tsx +0 -20
- package/src/icons/Maximize.tsx +0 -20
- package/src/icons/Menu.tsx +0 -20
- package/src/icons/Minimize.tsx +0 -20
- package/src/icons/Minus.tsx +0 -20
- package/src/icons/Moon.tsx +0 -20
- package/src/icons/Pause.tsx +0 -20
- package/src/icons/Play.tsx +0 -20
- package/src/icons/Plus.tsx +0 -20
- package/src/icons/Search.tsx +0 -20
- package/src/icons/Settings.tsx +0 -20
- package/src/icons/Share.tsx +0 -20
- package/src/icons/Sort.tsx +0 -20
- package/src/icons/Success.tsx +0 -20
- package/src/icons/Sun.tsx +0 -20
- package/src/icons/Underline.tsx +0 -20
- package/src/icons/Upload.tsx +0 -20
- package/src/icons/User.tsx +0 -20
- package/src/icons/Warning.tsx +0 -20
- package/src/icons/icons.test.tsx +0 -20
- package/src/icons/index.ts +0 -49
- package/src/index.ts +0 -3
package/src/icons/Minimize.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Minimize 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
|
-
* <Minimize size={20} aria-label="Minimize" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Minimize = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path d="M10.75 6v4.75H6v-1.5h3.25V6Zm4 0v3.25H18v1.5h-4.75V6Zm-5.5 12v-3.25H6v-1.5h4.75V18Zm4 0v-4.75H18v1.5h-3.25V18ZM4.28 3.22l6.5 6.5-1.06 1.06-6.5-6.5Zm16.5 1.06-6.5 6.5-1.06-1.06 6.5-6.5Zm-1.06 16.5-6.5-6.5 1.06-1.06 6.5 6.5Zm-16.5-1.06 6.5-6.5 1.06 1.06-6.5 6.5Z"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/Minus.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Minus 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
|
-
* <Minus size={20} aria-label="Minus" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Minus = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path d="M20.75 11.25v1.5H3.25v-1.5z"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/Moon.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Moon 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
|
-
* <Moon size={20} aria-label="Moon" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Moon = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path fillRule="evenodd" d="M8.41 3.745a8.7 8.7 0 0 0 11.844 11.842A9 9 0 1 1 8.41 3.745M5.806 7.771a7.5 7.5 0 0 0 10.422 10.422c-.076.002-.152.007-.228.007-5.633 0-10.2-4.567-10.2-10.2q.001-.114.006-.229" clipRule="evenodd"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/Pause.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
)
|
package/src/icons/Play.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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/Plus.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Plus 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
|
-
* <Plus size={20} aria-label="Plus" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Plus = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path d="M11.25 3.25h1.5v17.5h-1.5z"/><path d="M20.75 11.25v1.5H3.25v-1.5z"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/Search.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Search 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
|
-
* <Search size={20} aria-label="Search" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Search = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path d="M16.25 10.5a5.75 5.75 0 1 0-11.5 0 5.75 5.75 0 0 0 11.5 0m1.5 0a7.25 7.25 0 1 1-14.5 0 7.25 7.25 0 0 1 14.5 0"/><path d="M21.06 20 20 21.06l-5.56-5.56 1.06-1.06z"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/Settings.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Settings 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
|
-
* <Settings size={20} aria-label="Settings" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Settings = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path d="M14.25 12a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.5 0a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0"/><path d="m13.335 3.993 2-.999 1.129 2.256h2.286v2.286l2.256 1.129-1 2L22.676 12l-2.67 1.335 1 2-2.256 1.128v2.287h-2.286l-1.129 2.256-2-1L12 22.676l-1.336-2.67-1.999 1-1.129-2.256H5.25v-2.287l-2.256-1.128 1-2L1.323 12l2.67-1.336-1-1.999L5.25 7.536V5.25h2.286l1.129-2.256 2 1L12 1.323zm-2 2.013-2-1-.871 1.744H6.75v1.714l-1.744.871 1 2-1.33.665 1.33.665-1 2 1.329.664.415.207v1.714h1.714l.871 1.743 2-.999.665 1.33.665-1.33 2 1 .664-1.329.207-.415h1.714v-1.714l.415-.207 1.328-.665-.999-1.999 1.33-.665-1.33-.665 1-2-1.744-.871V6.75h-1.714l-.207-.415-.665-1.33-1.999 1L12 4.678z"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/Share.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Share 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
|
-
* <Share size={20} aria-label="Share" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Share = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path d="M8.25 12a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.5 0a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0m10.5-6a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.5 0a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0m-1.5 12a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.5 0a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0"/><path d="m15.91 7.335-7.414 4.17-.596-1.34 7.414-4.17zm0 9.33-.596 1.34-7.414-4.17.596-1.34z"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/Sort.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Sort 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
|
-
* <Sort size={20} aria-label="Sort" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Sort = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path d="M5.25 4.25h1.5v16.5h-1.5z"/><path d="M10.06 7 9 8.06l-3-3-3 3L1.94 7 6 2.94zm7.19-3.75h1.5v16.5h-1.5z"/><path d="M22.06 17 18 21.06 13.94 17 15 15.94l3 3 3-3z"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/Success.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Success 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
|
-
* <Success size={20} aria-label="Success" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Success = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path d="M20.25 12a8.25 8.25 0 1 0-16.5 0 8.25 8.25 0 0 0 16.5 0m1.5 0c0 5.385-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12 6.615 2.25 12 2.25s9.75 4.365 9.75 9.75"/><path d="m18.058 8.919-7.016 8.183L5.939 12 7 10.94l3.957 3.957 5.962-6.955z"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/Sun.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Sun 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
|
-
* <Sun size={20} aria-label="Sun" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Sun = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path fillRule="evenodd" d="M12.75 21.5h-1.5v-3h1.5zm-4.82-4.37-2.12 2.12-1.06-1.06 2.12-2.12zm11.32 1.06-1.06 1.06-2.12-2.12 1.06-1.06zM12 7.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6m-6.5 3.75h-3v-1.5h3zm16 0h-3v-1.5h3zM7.93 6.87 6.87 7.93 4.75 5.81l1.06-1.06zm11.32-1.06-2.12 2.12-1.06-1.06 2.12-2.12zm-6.5-.31h-1.5v-3h1.5z" clipRule="evenodd"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/Underline.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Underline 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
|
-
* <Underline size={20} aria-label="Underline" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Underline = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path d="M18.5 21.25h-13v-1.5h13zM7.75 11.5c0 2.615 1.893 4.5 4.25 4.5s4.25-1.885 4.25-4.5v-8h1.5v8c0 3.385-2.507 6-5.75 6s-5.75-2.615-5.75-6v-8h1.5z"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/Upload.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Upload 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
|
-
* <Upload size={20} aria-label="Upload" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Upload = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path d="M12.5 17.81H11v-13h1.5z"/><path d="M4.69 10.06 11.75 3l7.06 7.06-1.06 1.061-6-6-6 6zM20.5 19v1.5H3V19z"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/User.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The User 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
|
-
* <User size={20} aria-label="User" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const User = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path d="M15.25 8a3.25 3.25 0 1 0-6.5 0 3.25 3.25 0 0 0 6.5 0m1.5 0a4.75 4.75 0 1 1-9.5 0 4.75 4.75 0 0 1 9.5 0"/><path d="M19.25 21c0-4.526-3.601-7.25-7.25-7.25S4.75 16.474 4.75 21v.75h-1.5V21c0-5.474 4.399-8.75 8.75-8.75s8.75 3.276 8.75 8.75v.75h-1.5z"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/Warning.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react'
|
|
2
|
-
import type { IconProps } from '../types.ts'
|
|
3
|
-
import { IconBase } from '../IconBase.tsx'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Warning 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
|
-
* <Warning size={20} aria-label="Warning" />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export const Warning = (props: IconProps): ReactElement => (
|
|
17
|
-
<IconBase {...props}>
|
|
18
|
-
<path d="M23.311 20.75H.688L12 1.52zm-20-1.5H20.69L12 4.479z"/><path d="M11.25 8.25h1.5v6.5h-1.5zm0 7.5h1.5v2.5h-1.5z"/>
|
|
19
|
-
</IconBase>
|
|
20
|
-
)
|
package/src/icons/icons.test.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { render } from '@testing-library/react'
|
|
2
|
-
import { describe, expect, it } from 'vitest'
|
|
3
|
-
import type { IconProps } from '../types'
|
|
4
|
-
import * as icons from './index'
|
|
5
|
-
|
|
6
|
-
type IconComponent = (props: IconProps) => React.ReactElement
|
|
7
|
-
|
|
8
|
-
const iconEntries = Object.entries(icons) as [string, IconComponent][]
|
|
9
|
-
|
|
10
|
-
describe('all icons', () => {
|
|
11
|
-
it.each(iconEntries)('%s renders an svg with correct defaults', (_, Icon) => {
|
|
12
|
-
const { container } = render(<Icon data-testid="icon" />)
|
|
13
|
-
const svg = container.querySelector('svg')
|
|
14
|
-
expect(svg).not.toBeNull()
|
|
15
|
-
expect(svg).toHaveAttribute('viewBox', '0 0 24 24')
|
|
16
|
-
expect(svg).toHaveAttribute('width', '24')
|
|
17
|
-
expect(svg).toHaveAttribute('fill', 'currentColor')
|
|
18
|
-
expect(svg).toHaveAttribute('aria-hidden', 'true')
|
|
19
|
-
})
|
|
20
|
-
})
|
package/src/icons/index.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export { ArrowLeft } from './ArrowLeft.tsx'
|
|
2
|
-
export { ArrowRight } from './ArrowRight.tsx'
|
|
3
|
-
export { Bell } from './Bell.tsx'
|
|
4
|
-
export { Bold } from './Bold.tsx'
|
|
5
|
-
export { Calendar } from './Calendar.tsx'
|
|
6
|
-
export { Check } from './Check.tsx'
|
|
7
|
-
export { ChevronDown } from './ChevronDown.tsx'
|
|
8
|
-
export { ChevronLeft } from './ChevronLeft.tsx'
|
|
9
|
-
export { ChevronRight } from './ChevronRight.tsx'
|
|
10
|
-
export { ChevronUp } from './ChevronUp.tsx'
|
|
11
|
-
export { Close } from './Close.tsx'
|
|
12
|
-
export { Copy } from './Copy.tsx'
|
|
13
|
-
export { Delete } from './Delete.tsx'
|
|
14
|
-
export { Download } from './Download.tsx'
|
|
15
|
-
export { Edit } from './Edit.tsx'
|
|
16
|
-
export { Error } from './Error.tsx'
|
|
17
|
-
export { ExternalLink } from './ExternalLink.tsx'
|
|
18
|
-
export { EyeOff } from './EyeOff.tsx'
|
|
19
|
-
export { Eye } from './Eye.tsx'
|
|
20
|
-
export { Eyedropper } from './Eyedropper.tsx'
|
|
21
|
-
export { File } from './File.tsx'
|
|
22
|
-
export { Filter } from './Filter.tsx'
|
|
23
|
-
export { Folder } from './Folder.tsx'
|
|
24
|
-
export { GridIcon } from './GridIcon.tsx'
|
|
25
|
-
export { Home } from './Home.tsx'
|
|
26
|
-
export { Image } from './Image.tsx'
|
|
27
|
-
export { Info } from './Info.tsx'
|
|
28
|
-
export { Italic } from './Italic.tsx'
|
|
29
|
-
export { Link } from './Link.tsx'
|
|
30
|
-
export { List } from './List.tsx'
|
|
31
|
-
export { Mail } from './Mail.tsx'
|
|
32
|
-
export { Maximize } from './Maximize.tsx'
|
|
33
|
-
export { Menu } from './Menu.tsx'
|
|
34
|
-
export { Minimize } from './Minimize.tsx'
|
|
35
|
-
export { Minus } from './Minus.tsx'
|
|
36
|
-
export { Moon } from './Moon.tsx'
|
|
37
|
-
export { Pause } from './Pause.tsx'
|
|
38
|
-
export { Play } from './Play.tsx'
|
|
39
|
-
export { Plus } from './Plus.tsx'
|
|
40
|
-
export { Search } from './Search.tsx'
|
|
41
|
-
export { Settings } from './Settings.tsx'
|
|
42
|
-
export { Share } from './Share.tsx'
|
|
43
|
-
export { Sort } from './Sort.tsx'
|
|
44
|
-
export { Success } from './Success.tsx'
|
|
45
|
-
export { Sun } from './Sun.tsx'
|
|
46
|
-
export { Underline } from './Underline.tsx'
|
|
47
|
-
export { Upload } from './Upload.tsx'
|
|
48
|
-
export { User } from './User.tsx'
|
|
49
|
-
export { Warning } from './Warning.tsx'
|
package/src/index.ts
DELETED