@primitiv-ui/icons 0.1.38 → 0.1.40

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.
Files changed (162) hide show
  1. package/dist/IconBase.d.ts +14 -0
  2. package/dist/IconBase.js +9 -0
  3. package/dist/icons/ArrowLeft.d.ts +14 -0
  4. package/dist/icons/ArrowLeft.js +14 -0
  5. package/dist/icons/ArrowRight.d.ts +14 -0
  6. package/dist/icons/ArrowRight.js +14 -0
  7. package/dist/icons/Bell.d.ts +14 -0
  8. package/dist/icons/Bell.js +14 -0
  9. package/dist/icons/Bold.d.ts +14 -0
  10. package/dist/icons/Bold.js +14 -0
  11. package/dist/icons/Calendar.d.ts +14 -0
  12. package/dist/icons/Calendar.js +14 -0
  13. package/dist/icons/Check.d.ts +14 -0
  14. package/dist/icons/Check.js +14 -0
  15. package/dist/icons/ChevronDown.d.ts +14 -0
  16. package/dist/icons/ChevronDown.js +14 -0
  17. package/dist/icons/ChevronLeft.d.ts +14 -0
  18. package/dist/icons/ChevronLeft.js +14 -0
  19. package/dist/icons/ChevronRight.d.ts +14 -0
  20. package/dist/icons/ChevronRight.js +14 -0
  21. package/dist/icons/ChevronUp.d.ts +14 -0
  22. package/dist/icons/ChevronUp.js +14 -0
  23. package/dist/icons/Close.d.ts +14 -0
  24. package/dist/icons/Close.js +14 -0
  25. package/dist/icons/Copy.d.ts +14 -0
  26. package/dist/icons/Copy.js +14 -0
  27. package/dist/icons/Delete.d.ts +14 -0
  28. package/dist/icons/Delete.js +14 -0
  29. package/dist/icons/Download.d.ts +14 -0
  30. package/dist/icons/Download.js +14 -0
  31. package/dist/icons/Edit.d.ts +14 -0
  32. package/dist/icons/Edit.js +14 -0
  33. package/dist/icons/Error.d.ts +14 -0
  34. package/dist/icons/Error.js +14 -0
  35. package/dist/icons/ExternalLink.d.ts +14 -0
  36. package/dist/icons/ExternalLink.js +14 -0
  37. package/dist/icons/Eye.d.ts +14 -0
  38. package/dist/icons/Eye.js +14 -0
  39. package/dist/icons/EyeOff.d.ts +14 -0
  40. package/dist/icons/EyeOff.js +14 -0
  41. package/dist/icons/Eyedropper.d.ts +14 -0
  42. package/dist/icons/Eyedropper.js +14 -0
  43. package/dist/icons/File.d.ts +14 -0
  44. package/dist/icons/File.js +14 -0
  45. package/dist/icons/Filter.d.ts +14 -0
  46. package/dist/icons/Filter.js +14 -0
  47. package/dist/icons/Folder.d.ts +14 -0
  48. package/dist/icons/Folder.js +14 -0
  49. package/dist/icons/GridIcon.d.ts +14 -0
  50. package/dist/icons/GridIcon.js +14 -0
  51. package/dist/icons/Home.d.ts +14 -0
  52. package/dist/icons/Home.js +14 -0
  53. package/dist/icons/Image.d.ts +14 -0
  54. package/dist/icons/Image.js +14 -0
  55. package/dist/icons/Info.d.ts +14 -0
  56. package/dist/icons/Info.js +14 -0
  57. package/dist/icons/Italic.d.ts +14 -0
  58. package/dist/icons/Italic.js +14 -0
  59. package/dist/icons/Link.d.ts +14 -0
  60. package/dist/icons/Link.js +14 -0
  61. package/dist/icons/List.d.ts +14 -0
  62. package/dist/icons/List.js +14 -0
  63. package/dist/icons/Mail.d.ts +14 -0
  64. package/dist/icons/Mail.js +14 -0
  65. package/dist/icons/Maximize.d.ts +14 -0
  66. package/dist/icons/Maximize.js +14 -0
  67. package/dist/icons/Menu.d.ts +14 -0
  68. package/dist/icons/Menu.js +14 -0
  69. package/dist/icons/Minimize.d.ts +14 -0
  70. package/dist/icons/Minimize.js +14 -0
  71. package/dist/icons/Minus.d.ts +14 -0
  72. package/dist/icons/Minus.js +14 -0
  73. package/dist/icons/Moon.d.ts +14 -0
  74. package/dist/icons/Moon.js +14 -0
  75. package/dist/icons/Pause.d.ts +14 -0
  76. package/dist/icons/Pause.js +14 -0
  77. package/dist/icons/Play.d.ts +14 -0
  78. package/dist/icons/Play.js +14 -0
  79. package/dist/icons/Plus.d.ts +14 -0
  80. package/dist/icons/Plus.js +14 -0
  81. package/dist/icons/Search.d.ts +14 -0
  82. package/dist/icons/Search.js +14 -0
  83. package/dist/icons/Settings.d.ts +14 -0
  84. package/dist/icons/Settings.js +14 -0
  85. package/dist/icons/Share.d.ts +14 -0
  86. package/dist/icons/Share.js +14 -0
  87. package/dist/icons/Sort.d.ts +14 -0
  88. package/dist/icons/Sort.js +14 -0
  89. package/dist/icons/Success.d.ts +14 -0
  90. package/dist/icons/Success.js +14 -0
  91. package/dist/icons/Sun.d.ts +14 -0
  92. package/dist/icons/Sun.js +14 -0
  93. package/dist/icons/Underline.d.ts +14 -0
  94. package/dist/icons/Underline.js +14 -0
  95. package/dist/icons/Upload.d.ts +14 -0
  96. package/dist/icons/Upload.js +14 -0
  97. package/dist/icons/User.d.ts +14 -0
  98. package/dist/icons/User.js +14 -0
  99. package/dist/icons/Warning.d.ts +14 -0
  100. package/dist/icons/Warning.js +14 -0
  101. package/dist/icons/index.d.ts +49 -0
  102. package/dist/icons/index.js +49 -0
  103. package/dist/index.d.ts +3 -0
  104. package/dist/index.js +2 -0
  105. package/{src/types.ts → dist/types.d.ts} +6 -7
  106. package/dist/types.js +1 -0
  107. package/package.json +7 -6
  108. package/src/IconBase.test.tsx +0 -81
  109. package/src/IconBase.tsx +0 -33
  110. package/src/icons/ArrowLeft.tsx +0 -20
  111. package/src/icons/ArrowRight.tsx +0 -20
  112. package/src/icons/Bell.tsx +0 -20
  113. package/src/icons/Bold.tsx +0 -20
  114. package/src/icons/Calendar.tsx +0 -20
  115. package/src/icons/Check.test.tsx +0 -27
  116. package/src/icons/Check.tsx +0 -20
  117. package/src/icons/ChevronDown.tsx +0 -20
  118. package/src/icons/ChevronLeft.tsx +0 -20
  119. package/src/icons/ChevronRight.tsx +0 -20
  120. package/src/icons/ChevronUp.tsx +0 -20
  121. package/src/icons/Close.tsx +0 -20
  122. package/src/icons/Copy.tsx +0 -20
  123. package/src/icons/Delete.tsx +0 -20
  124. package/src/icons/Download.tsx +0 -20
  125. package/src/icons/Edit.tsx +0 -20
  126. package/src/icons/Error.tsx +0 -20
  127. package/src/icons/ExternalLink.tsx +0 -20
  128. package/src/icons/Eye.tsx +0 -20
  129. package/src/icons/EyeOff.tsx +0 -20
  130. package/src/icons/Eyedropper.tsx +0 -20
  131. package/src/icons/File.tsx +0 -20
  132. package/src/icons/Filter.tsx +0 -20
  133. package/src/icons/Folder.tsx +0 -20
  134. package/src/icons/GridIcon.tsx +0 -20
  135. package/src/icons/Home.tsx +0 -20
  136. package/src/icons/Image.tsx +0 -20
  137. package/src/icons/Info.tsx +0 -20
  138. package/src/icons/Italic.tsx +0 -20
  139. package/src/icons/Link.tsx +0 -20
  140. package/src/icons/List.tsx +0 -20
  141. package/src/icons/Mail.tsx +0 -20
  142. package/src/icons/Maximize.tsx +0 -20
  143. package/src/icons/Menu.tsx +0 -20
  144. package/src/icons/Minimize.tsx +0 -20
  145. package/src/icons/Minus.tsx +0 -20
  146. package/src/icons/Moon.tsx +0 -20
  147. package/src/icons/Pause.tsx +0 -20
  148. package/src/icons/Play.tsx +0 -20
  149. package/src/icons/Plus.tsx +0 -20
  150. package/src/icons/Search.tsx +0 -20
  151. package/src/icons/Settings.tsx +0 -20
  152. package/src/icons/Share.tsx +0 -20
  153. package/src/icons/Sort.tsx +0 -20
  154. package/src/icons/Success.tsx +0 -20
  155. package/src/icons/Sun.tsx +0 -20
  156. package/src/icons/Underline.tsx +0 -20
  157. package/src/icons/Upload.tsx +0 -20
  158. package/src/icons/User.tsx +0 -20
  159. package/src/icons/Warning.tsx +0 -20
  160. package/src/icons/icons.test.tsx +0 -20
  161. package/src/icons/index.ts +0 -49
  162. package/src/index.ts +0 -3
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- )
@@ -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
- })
@@ -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
@@ -1,3 +0,0 @@
1
- export type { IconProps } from './types.ts'
2
- export { IconBase } from './IconBase.tsx'
3
- export * from './icons/index.ts'