aural-ui 2.1.13 → 2.1.14

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 (214) hide show
  1. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +14 -6
  2. package/dist/icons/ai-avatar-icon/index.tsx +16 -5
  3. package/dist/icons/alert-icon/AlertIcon.stories.tsx +15 -7
  4. package/dist/icons/alert-icon/index.tsx +35 -20
  5. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +13 -5
  6. package/dist/icons/angle-down-icon/index.tsx +17 -7
  7. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +13 -5
  8. package/dist/icons/apple-logo-icon/index.tsx +17 -7
  9. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +14 -6
  10. package/dist/icons/arrow-box-left-icon/index.tsx +17 -7
  11. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +13 -5
  12. package/dist/icons/arrow-corner-up-left-icon/index.tsx +20 -7
  13. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +14 -6
  14. package/dist/icons/arrow-corner-up-right-icon/index.tsx +20 -7
  15. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +13 -5
  16. package/dist/icons/arrow-left-icon/index.tsx +16 -8
  17. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +14 -6
  18. package/dist/icons/arrow-right-icon/index.tsx +16 -8
  19. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +14 -6
  20. package/dist/icons/arrow-right-up-icon/index.tsx +17 -7
  21. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +16 -8
  22. package/dist/icons/art-board-icon/index.tsx +17 -7
  23. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +14 -6
  24. package/dist/icons/audio-bar-icon/index.tsx +17 -7
  25. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +14 -6
  26. package/dist/icons/backward-ten-seconds-icon/index.tsx +20 -7
  27. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +14 -6
  28. package/dist/icons/bubble-check-icon/index.tsx +17 -7
  29. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +14 -6
  30. package/dist/icons/bubble-crossed-icon/index.tsx +17 -7
  31. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +14 -6
  32. package/dist/icons/bubble-sparkle-icon/index.tsx +17 -7
  33. package/dist/icons/camera-icon/CameraIcon.stories.tsx +14 -6
  34. package/dist/icons/camera-icon/index.tsx +17 -7
  35. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +13 -5
  36. package/dist/icons/capital-a-letter-icon/index.tsx +35 -27
  37. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +13 -5
  38. package/dist/icons/chevron-double-left-icon/index.tsx +19 -8
  39. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +14 -6
  40. package/dist/icons/chevron-double-right-icon/index.tsx +19 -8
  41. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +13 -5
  42. package/dist/icons/chevron-down-icon/index.tsx +16 -8
  43. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +14 -6
  44. package/dist/icons/chevron-left-icon/index.tsx +16 -8
  45. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +14 -6
  46. package/dist/icons/chevron-right-icon/index.tsx +16 -8
  47. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +14 -6
  48. package/dist/icons/chevron-up-icon/index.tsx +16 -8
  49. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +14 -6
  50. package/dist/icons/circle-tick-icon/index.tsx +17 -7
  51. package/dist/icons/coin-icon/CoinIcon.stories.tsx +14 -6
  52. package/dist/icons/coin-icon/index.tsx +17 -7
  53. package/dist/icons/command-icon/CommandIcon.stories.tsx +13 -5
  54. package/dist/icons/command-icon/index.tsx +17 -7
  55. package/dist/icons/copy-icon/CopyIcon.stories.tsx +14 -6
  56. package/dist/icons/copy-icon/index.tsx +17 -7
  57. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +14 -6
  58. package/dist/icons/cross-circle-icon/index.tsx +17 -7
  59. package/dist/icons/cross-icon/CrossIcon.stories.tsx +14 -6
  60. package/dist/icons/cross-icon/index.tsx +17 -7
  61. package/dist/icons/download-icon/DownloadIcon.stories.tsx +14 -6
  62. package/dist/icons/download-icon/index.tsx +17 -7
  63. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +13 -5
  64. package/dist/icons/edit-big-icon/index.tsx +17 -7
  65. package/dist/icons/email-icon/EmailIcon.stories.tsx +13 -5
  66. package/dist/icons/email-icon/index.tsx +17 -7
  67. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +14 -6
  68. package/dist/icons/expand-icon/index.tsx +17 -7
  69. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +13 -6
  70. package/dist/icons/eye-close-icon/index.tsx +17 -7
  71. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +13 -5
  72. package/dist/icons/eye-open-icon/index.tsx +17 -7
  73. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +14 -6
  74. package/dist/icons/feature-shine-icon/index.tsx +17 -5
  75. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +13 -5
  76. package/dist/icons/file-chart-icon/index.tsx +17 -7
  77. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +15 -7
  78. package/dist/icons/file-text-icon/index.tsx +17 -7
  79. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +14 -6
  80. package/dist/icons/filter-bar-row-icon/index.tsx +17 -7
  81. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +14 -6
  82. package/dist/icons/forward-ten-seconds-icon/index.tsx +20 -7
  83. package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +14 -6
  84. package/dist/icons/git-branch-icon/index.tsx +17 -7
  85. package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +14 -6
  86. package/dist/icons/git-fork-icon/index.tsx +17 -7
  87. package/dist/icons/globe-icon/GlobeIcon.stories.tsx +360 -0
  88. package/dist/icons/globe-icon/index.tsx +32 -0
  89. package/dist/icons/globe-icon/meta.ts +8 -0
  90. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +14 -6
  91. package/dist/icons/google-logo-icon/index.tsx +17 -7
  92. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +14 -6
  93. package/dist/icons/grip-vertical-icon/index.tsx +17 -7
  94. package/dist/icons/head-icon/HeadIcon.stories.tsx +13 -5
  95. package/dist/icons/head-icon/index.tsx +29 -21
  96. package/dist/icons/heart-icon/HeartIcon.stories.tsx +14 -6
  97. package/dist/icons/heart-icon/index.tsx +17 -7
  98. package/dist/icons/image-icon/ImageIcon.stories.tsx +13 -5
  99. package/dist/icons/image-icon/index.tsx +17 -7
  100. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +14 -6
  101. package/dist/icons/import-folder-icon/index.tsx +17 -7
  102. package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +14 -6
  103. package/dist/icons/import-left-arrow-folder-icon/index.tsx +23 -6
  104. package/dist/icons/index.ts +1 -0
  105. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +14 -6
  106. package/dist/icons/indian-flag-icon/index.tsx +17 -7
  107. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +12 -6
  108. package/dist/icons/instagram-icon/index.tsx +17 -7
  109. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +13 -5
  110. package/dist/icons/layout-column-icon/index.tsx +17 -7
  111. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +14 -6
  112. package/dist/icons/layout-left-icon/index.tsx +17 -7
  113. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +14 -6
  114. package/dist/icons/layout-right-icon/index.tsx +17 -7
  115. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +14 -6
  116. package/dist/icons/light-bulb-simple-icon/index.tsx +18 -7
  117. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +11 -5
  118. package/dist/icons/linked-in-icon/index.tsx +17 -7
  119. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +14 -6
  120. package/dist/icons/magic-book-icon/index.tsx +17 -7
  121. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +14 -6
  122. package/dist/icons/maintenance-icon/index.tsx +17 -7
  123. package/dist/icons/message-icon/MessageIcon.stories.tsx +15 -7
  124. package/dist/icons/message-icon/index.tsx +17 -7
  125. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +14 -6
  126. package/dist/icons/minimize-icon/index.tsx +17 -7
  127. package/dist/icons/moon-icon/MoonIcon.stories.tsx +15 -7
  128. package/dist/icons/moon-icon/index.tsx +24 -16
  129. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +14 -6
  130. package/dist/icons/move-horizontal-icon/index.tsx +17 -7
  131. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +13 -5
  132. package/dist/icons/move-vertical-icon/index.tsx +17 -7
  133. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +14 -6
  134. package/dist/icons/musical-note-icon/index.tsx +28 -20
  135. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +14 -6
  136. package/dist/icons/notepad-icon/index.tsx +17 -7
  137. package/dist/icons/notes-icon/NotesIcon.stories.tsx +14 -6
  138. package/dist/icons/notes-icon/index.tsx +17 -7
  139. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +14 -6
  140. package/dist/icons/page-search-icon/index.tsx +17 -7
  141. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +14 -6
  142. package/dist/icons/paint-roll-icon/index.tsx +17 -7
  143. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +14 -6
  144. package/dist/icons/paper-plane-icon/index.tsx +17 -7
  145. package/dist/icons/pause-icon/PauseIcon.stories.tsx +14 -6
  146. package/dist/icons/pause-icon/index.tsx +17 -7
  147. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +14 -6
  148. package/dist/icons/pencil-icon/index.tsx +17 -7
  149. package/dist/icons/phone-icon/PhoneIcon.stories.tsx +14 -6
  150. package/dist/icons/phone-icon/index.tsx +29 -21
  151. package/dist/icons/plus-icon/PlusIcon.stories.tsx +14 -6
  152. package/dist/icons/plus-icon/index.tsx +17 -7
  153. package/dist/icons/search-icon/SearchIcon.stories.tsx +13 -5
  154. package/dist/icons/search-icon/index.tsx +17 -7
  155. package/dist/icons/setting-icon/SettingIcon.stories.tsx +13 -5
  156. package/dist/icons/setting-icon/index.tsx +33 -25
  157. package/dist/icons/share-icon/ShareIcon.stories.tsx +13 -5
  158. package/dist/icons/share-icon/index.tsx +17 -7
  159. package/dist/icons/shield-icon/ShieldIcon.stories.tsx +14 -6
  160. package/dist/icons/shield-icon/index.tsx +24 -16
  161. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +14 -6
  162. package/dist/icons/site-logo-icon/index.tsx +17 -5
  163. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +14 -6
  164. package/dist/icons/skip-backward-icon/index.tsx +17 -7
  165. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +13 -5
  166. package/dist/icons/skip-forward-icon/index.tsx +17 -7
  167. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +14 -6
  168. package/dist/icons/sparkles-soft-icon/index.tsx +17 -7
  169. package/dist/icons/spinner-gradient-icon/index.tsx +18 -7
  170. package/dist/icons/spinner-solid-icon/index.tsx +17 -7
  171. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +14 -6
  172. package/dist/icons/spinner-solid-neutral-icon/index.tsx +21 -6
  173. package/dist/icons/star-icon/StarIcon.stories.tsx +14 -6
  174. package/dist/icons/star-icon/index.tsx +17 -7
  175. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +14 -6
  176. package/dist/icons/store-coin-icon/index.tsx +16 -8
  177. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +13 -5
  178. package/dist/icons/suggestion-icon/index.tsx +17 -7
  179. package/dist/icons/sun-icon/SunIcon.stories.tsx +13 -5
  180. package/dist/icons/sun-icon/index.tsx +26 -18
  181. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +13 -5
  182. package/dist/icons/text-color-icon/index.tsx +17 -7
  183. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +14 -6
  184. package/dist/icons/text-indicator-icon/index.tsx +17 -7
  185. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +12 -6
  186. package/dist/icons/threads-icon/index.tsx +17 -7
  187. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +14 -6
  188. package/dist/icons/tick-circle-icon/index.tsx +17 -7
  189. package/dist/icons/tick-icon/TickIcon.stories.tsx +14 -6
  190. package/dist/icons/tick-icon/index.tsx +17 -7
  191. package/dist/icons/trash-icon/TrashIcon.stories.tsx +14 -6
  192. package/dist/icons/trash-icon/index.tsx +17 -7
  193. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +12 -6
  194. package/dist/icons/twitter-x-icon/index.tsx +17 -7
  195. package/dist/icons/upload-icon/UploadIcon.stories.tsx +13 -5
  196. package/dist/icons/upload-icon/index.tsx +17 -7
  197. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +13 -5
  198. package/dist/icons/vertical-menu-icon/index.tsx +17 -7
  199. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +14 -6
  200. package/dist/icons/video-play-list-icon/index.tsx +17 -7
  201. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +14 -6
  202. package/dist/icons/voice-playing-icon/index.tsx +17 -7
  203. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +14 -6
  204. package/dist/icons/volume-full-icon/index.tsx +17 -7
  205. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +14 -6
  206. package/dist/icons/volume-half-icon/index.tsx +17 -7
  207. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +14 -6
  208. package/dist/icons/volume-off-icon/index.tsx +17 -7
  209. package/dist/icons/warning-icon/WarningIcon.stories.tsx +14 -6
  210. package/dist/icons/warning-icon/index.tsx +17 -7
  211. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +14 -6
  212. package/dist/icons/youtube-icon/index.tsx +17 -7
  213. package/dist/index.js +1 -1
  214. package/package.json +1 -1
@@ -205,16 +205,19 @@ function VideoPlayer() {
205
205
  </tr>
206
206
  </thead>
207
207
  <tbody>
208
- <tr className="border-b border-white/5">
209
- <td className="px-6 py-4 font-mono text-sm !text-orange-300">
210
- width
208
+ {" "}
209
+ <tr className="!bg-black/10">
210
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
211
+ withAccessibility
211
212
  </td>
212
213
  <td className="px-6 py-4 text-sm !text-white/70">
213
- number | string
214
+ boolean
215
+ </td>
216
+ <td className="px-6 py-4 text-sm !text-white/50">
217
+ true
214
218
  </td>
215
- <td className="px-6 py-4 text-sm !text-white/50">24</td>
216
219
  <td className="px-6 py-4 text-sm !text-white/70">
217
- Width of the icon in pixels
220
+ Whether to wrap the icon with accessibility feature
218
221
  </td>
219
222
  </tr>
220
223
  <tr className="border-b border-white/5 !bg-black/10">
@@ -995,6 +998,10 @@ function VideoPlayer() {
995
998
  control: { type: "range", min: 8, max: 96, step: 2 },
996
999
  description: "Width of the icon in pixels",
997
1000
  },
1001
+ withAccessibility: {
1002
+ control: "boolean",
1003
+ description: "Whether to wrap the icon with accessibility features",
1004
+ },
998
1005
  height: {
999
1006
  control: { type: "range", min: 8, max: 96, step: 2 },
1000
1007
  description: "Height of the icon in pixels",
@@ -1040,6 +1047,7 @@ const storyParameters = {
1040
1047
  export const Default: Story = {
1041
1048
  args: {
1042
1049
  className: "h-8 w-8 text-orange-400",
1050
+ withAccessibility: true,
1043
1051
  },
1044
1052
  parameters: storyParameters,
1045
1053
  render: (args) => (
@@ -1,10 +1,14 @@
1
1
  import React from "react"
2
2
  import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
3
3
 
4
- export const MinimizeIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => (
7
- <AccessibleIcon label="Minimize icon">
4
+ export interface MinimizeIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const MinimizeIcon = (props: MinimizeIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
8
12
  <svg
9
13
  xmlns="http://www.w3.org/2000/svg"
10
14
  width="24"
@@ -14,9 +18,15 @@ export const MinimizeIcon = (
14
18
  stroke="currentColor"
15
19
  strokeWidth="1.5"
16
20
  strokeLinecap="square"
17
- {...props}
21
+ {...svgProps}
18
22
  >
19
23
  <path d="M13.75 3.75V10.25H20.25M20.25 3.75L14.5 9.5M10.25 20.25V13.75H3.75M3.75 20.25L9.5 14.5" />
20
24
  </svg>
21
- </AccessibleIcon>
22
- )
25
+ )
26
+
27
+ if (withAccessibility) {
28
+ return <AccessibleIcon label="Minimize icon">{svg}</AccessibleIcon>
29
+ }
30
+
31
+ return svg
32
+ }
@@ -144,16 +144,19 @@ const meta: Meta<typeof MoonIcon> = {
144
144
  </tr>
145
145
  </thead>
146
146
  <tbody>
147
- <tr className="border-b border-white/5">
147
+ {" "}
148
+ <tr className="!bg-black/10">
148
149
  <td className="px-6 py-4 font-mono text-sm !text-blue-300">
149
- className
150
+ withAccessibility
150
151
  </td>
151
- <td className="px-6 py-4 text-sm !text-white/80">
152
- string
152
+ <td className="px-6 py-4 text-sm !text-white/70">
153
+ boolean
153
154
  </td>
154
- <td className="px-6 py-4 text-sm !text-white/60">-</td>
155
- <td className="px-6 py-4 text-sm !text-white/80">
156
- Additional CSS classes
155
+ <td className="px-6 py-4 text-sm !text-white/50">
156
+ true
157
+ </td>
158
+ <td className="px-6 py-4 text-sm !text-white/70">
159
+ Whether to wrap the icon with accessibility feature
157
160
  </td>
158
161
  </tr>
159
162
  </tbody>
@@ -419,6 +422,10 @@ function ChatButton() {
419
422
  control: { type: "range", min: 8, max: 96, step: 2 },
420
423
  description: "Width of the icon in pixels",
421
424
  },
425
+ withAccessibility: {
426
+ control: "boolean",
427
+ description: "Whether to wrap the icon with accessibility features",
428
+ },
422
429
  height: {
423
430
  control: { type: "range", min: 8, max: 96, step: 2 },
424
431
  description: "Height of the icon in pixels",
@@ -448,6 +455,7 @@ export const Default: Story = {
448
455
  width: 24,
449
456
  height: 24,
450
457
  className: "text-blue-400",
458
+ withAccessibility: true,
451
459
  },
452
460
  parameters: storyParameters,
453
461
  render: (args) => (
@@ -1,21 +1,29 @@
1
1
  import React from "react"
2
2
  import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
3
3
 
4
- export const MoonIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => {
7
- return (
8
- <AccessibleIcon label="Moon icon">
9
- <svg
10
- width="16"
11
- height="16"
12
- viewBox="0 0 24 24"
13
- fill="currentColor"
14
- xmlns="http://www.w3.org/2000/svg"
15
- {...props}
16
- >
17
- <path d="M21 12.79A9 9 0 1 1 11.21 3a7 7 0 1 0 9.79 9.79Z" />
18
- </svg>
19
- </AccessibleIcon>
4
+ export interface MoonIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const MoonIcon = (props: MoonIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
12
+ <svg
13
+ width="16"
14
+ height="16"
15
+ viewBox="0 0 24 24"
16
+ fill="currentColor"
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ {...svgProps}
19
+ >
20
+ <path d="M21 12.79A9 9 0 1 1 11.21 3a7 7 0 1 0 9.79 9.79Z" />
21
+ </svg>
20
22
  )
23
+
24
+ if (withAccessibility) {
25
+ return <AccessibleIcon label="Moon icon">{svg}</AccessibleIcon>
26
+ }
27
+
28
+ return svg
21
29
  }
@@ -228,16 +228,19 @@ function ResizeHandle() {
228
228
  </tr>
229
229
  </thead>
230
230
  <tbody>
231
- <tr className="border-b border-white/5">
232
- <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
233
- width
231
+ {" "}
232
+ <tr className="!bg-black/10">
233
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
234
+ withAccessibility
234
235
  </td>
235
236
  <td className="px-6 py-4 text-sm !text-white/70">
236
- number | string
237
+ boolean
238
+ </td>
239
+ <td className="px-6 py-4 text-sm !text-white/50">
240
+ true
237
241
  </td>
238
- <td className="px-6 py-4 text-sm !text-white/50">24</td>
239
242
  <td className="px-6 py-4 text-sm !text-white/70">
240
- Width of the icon in pixels
243
+ Whether to wrap the icon with accessibility feature
241
244
  </td>
242
245
  </tr>
243
246
  <tr className="border-b border-white/5 !bg-black/10">
@@ -959,6 +962,10 @@ function ResizeHandle() {
959
962
  control: { type: "range", min: 8, max: 96, step: 2 },
960
963
  description: "Width of the icon in pixels",
961
964
  },
965
+ withAccessibility: {
966
+ control: "boolean",
967
+ description: "Whether to wrap the icon with accessibility features",
968
+ },
962
969
  height: {
963
970
  control: { type: "range", min: 8, max: 96, step: 2 },
964
971
  description: "Height of the icon in pixels",
@@ -995,6 +1002,7 @@ const storyParameters = {
995
1002
  export const Default: Story = {
996
1003
  args: {
997
1004
  className: "h-6 w-6 text-indigo-400 ",
1005
+ withAccessibility: true,
998
1006
  },
999
1007
  parameters: storyParameters,
1000
1008
  render: (args) => (
@@ -1,10 +1,14 @@
1
1
  import React from "react"
2
2
  import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
3
3
 
4
- export const MoveHorizontalIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => (
7
- <AccessibleIcon label="Move Horizontal icon">
4
+ export interface MoveHorizontalIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const MoveHorizontalIcon = (props: MoveHorizontalIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
8
12
  <svg
9
13
  xmlns="http://www.w3.org/2000/svg"
10
14
  width="24"
@@ -15,9 +19,15 @@ export const MoveHorizontalIcon = (
15
19
  strokeWidth="2"
16
20
  strokeLinecap="round"
17
21
  strokeLinejoin="round"
18
- {...props}
22
+ {...svgProps}
19
23
  >
20
24
  <path d="m18 8 4 4-4 4M2 12h20M6 8l-4 4 4 4" />
21
25
  </svg>
22
- </AccessibleIcon>
23
- )
26
+ )
27
+
28
+ if (withAccessibility) {
29
+ return <AccessibleIcon label="Move Horizontal icon">{svg}</AccessibleIcon>
30
+ }
31
+
32
+ return svg
33
+ }
@@ -227,16 +227,19 @@ function SortableItem({ children }) {
227
227
  </tr>
228
228
  </thead>
229
229
  <tbody>
230
- <tr className="border-b border-white/5">
230
+ {" "}
231
+ <tr className="!bg-black/10">
231
232
  <td className="px-6 py-4 font-mono text-sm !text-blue-300">
232
- width
233
+ withAccessibility
233
234
  </td>
234
235
  <td className="px-6 py-4 text-sm !text-white/70">
235
- number | string
236
+ boolean
237
+ </td>
238
+ <td className="px-6 py-4 text-sm !text-white/50">
239
+ true
236
240
  </td>
237
- <td className="px-6 py-4 text-sm !text-white/50">24</td>
238
241
  <td className="px-6 py-4 text-sm !text-white/70">
239
- Width of the icon in pixels
242
+ Whether to wrap the icon with accessibility feature
240
243
  </td>
241
244
  </tr>
242
245
  <tr className="border-b border-white/5 !bg-black/10">
@@ -911,6 +914,10 @@ function SortableItem({ children }) {
911
914
  control: { type: "range", min: 8, max: 96, step: 2 },
912
915
  description: "Width of the icon in pixels",
913
916
  },
917
+ withAccessibility: {
918
+ control: "boolean",
919
+ description: "Whether to wrap the icon with accessibility features",
920
+ },
914
921
  height: {
915
922
  control: { type: "range", min: 8, max: 96, step: 2 },
916
923
  description: "Height of the icon in pixels",
@@ -947,6 +954,7 @@ const storyParameters = {
947
954
  export const Default: Story = {
948
955
  args: {
949
956
  className: "h-6 w-6 text-blue-400 ",
957
+ withAccessibility: true,
950
958
  },
951
959
  parameters: storyParameters,
952
960
  render: (args) => (
@@ -1,10 +1,14 @@
1
1
  import React from "react"
2
2
  import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
3
3
 
4
- export const MoveVerticalIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => (
7
- <AccessibleIcon label="Move Vertical icon">
4
+ export interface MoveVerticalIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const MoveVerticalIcon = (props: MoveVerticalIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
8
12
  <svg
9
13
  xmlns="http://www.w3.org/2000/svg"
10
14
  width="24"
@@ -15,9 +19,15 @@ export const MoveVerticalIcon = (
15
19
  strokeWidth="2"
16
20
  strokeLinecap="round"
17
21
  strokeLinejoin="round"
18
- {...props}
22
+ {...svgProps}
19
23
  >
20
24
  <path d="M12 2v20m-4-4 4 4 4-4M8 6l4-4 4 4" />
21
25
  </svg>
22
- </AccessibleIcon>
23
- )
26
+ )
27
+
28
+ if (withAccessibility) {
29
+ return <AccessibleIcon label="Move Vertical icon">{svg}</AccessibleIcon>
30
+ }
31
+
32
+ return svg
33
+ }
@@ -202,16 +202,19 @@ function MyComponent() {
202
202
  </tr>
203
203
  </thead>
204
204
  <tbody>
205
- <tr className="border-b border-white/5">
206
- <td className="px-6 py-4 font-mono text-sm !text-purple-300">
207
- width
205
+ {" "}
206
+ <tr className="!bg-black/10">
207
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
208
+ withAccessibility
208
209
  </td>
209
210
  <td className="px-6 py-4 text-sm !text-white/70">
210
- number | string
211
+ boolean
212
+ </td>
213
+ <td className="px-6 py-4 text-sm !text-white/50">
214
+ true
211
215
  </td>
212
- <td className="px-6 py-4 text-sm !text-white/50">13</td>
213
216
  <td className="px-6 py-4 text-sm !text-white/70">
214
- Width of the icon in pixels
217
+ Whether to wrap the icon with accessibility feature
215
218
  </td>
216
219
  </tr>
217
220
  <tr className="border-b border-white/5 !bg-black/10">
@@ -792,6 +795,10 @@ function CustomMusicalNoteIcon({ label = "Musical Note", ...props }) {
792
795
  control: { type: "range", min: 8, max: 96, step: 2 },
793
796
  description: "Width of the icon in pixels",
794
797
  },
798
+ withAccessibility: {
799
+ control: "boolean",
800
+ description: "Whether to wrap the icon with accessibility features",
801
+ },
795
802
  height: {
796
803
  control: { type: "range", min: 8, max: 96, step: 2 },
797
804
  description: "Height of the icon in pixels",
@@ -830,6 +837,7 @@ export const Default: Story = {
830
837
  width: 24,
831
838
  height: 24,
832
839
  className: "text-purple-400",
840
+ withAccessibility: true,
833
841
  },
834
842
  parameters: storyParameters,
835
843
  render: (args) => (
@@ -1,25 +1,33 @@
1
1
  import React from "react"
2
2
  import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
3
3
 
4
- export const MusicalNoteIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => {
7
- return (
8
- <AccessibleIcon label="Musical Note Icon">
9
- <svg
10
- xmlns="http://www.w3.org/2000/svg"
11
- width="13"
12
- height="12"
13
- viewBox="0 0 13 12"
14
- fill="none"
15
- {...props}
16
- >
17
- <path
18
- d="M5.375 9.375C5.375 10.0654 4.70343 10.625 3.875 10.625C3.04657 10.625 2.375 10.0654 2.375 9.375C2.375 8.68464 3.04657 8.125 3.875 8.125C4.70343 8.125 5.375 8.68464 5.375 9.375ZM5.375 9.375V2.875L10.6261 1.375V7.875M10.6261 7.875C10.6261 8.56536 9.95453 9.125 9.1261 9.125C8.29767 9.125 7.6261 8.56536 7.6261 7.875C7.6261 7.18464 8.29767 6.625 9.1261 6.625C9.95453 6.625 10.6261 7.18464 10.6261 7.875Z"
19
- stroke="currentColor"
20
- strokeWidth="1.125"
21
- />
22
- </svg>
23
- </AccessibleIcon>
4
+ export interface MusicalNoteIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const MusicalNoteIcon = (props: MusicalNoteIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
12
+ <svg
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ width="13"
15
+ height="12"
16
+ viewBox="0 0 13 12"
17
+ fill="none"
18
+ {...svgProps}
19
+ >
20
+ <path
21
+ d="M5.375 9.375C5.375 10.0654 4.70343 10.625 3.875 10.625C3.04657 10.625 2.375 10.0654 2.375 9.375C2.375 8.68464 3.04657 8.125 3.875 8.125C4.70343 8.125 5.375 8.68464 5.375 9.375ZM5.375 9.375V2.875L10.6261 1.375V7.875M10.6261 7.875C10.6261 8.56536 9.95453 9.125 9.1261 9.125C8.29767 9.125 7.6261 8.56536 7.6261 7.875C7.6261 7.18464 8.29767 6.625 9.1261 6.625C9.95453 6.625 10.6261 7.18464 10.6261 7.875Z"
22
+ stroke="currentColor"
23
+ strokeWidth="1.125"
24
+ />
25
+ </svg>
24
26
  )
27
+
28
+ if (withAccessibility) {
29
+ return <AccessibleIcon label="Musical Note Icon">{svg}</AccessibleIcon>
30
+ }
31
+
32
+ return svg
25
33
  }
@@ -221,16 +221,19 @@ function NoteInput() {
221
221
  </tr>
222
222
  </thead>
223
223
  <tbody>
224
- <tr className="border-b border-white/5">
225
- <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
226
- width
224
+ {" "}
225
+ <tr className="!bg-black/10">
226
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
227
+ withAccessibility
227
228
  </td>
228
229
  <td className="px-6 py-4 text-sm !text-white/70">
229
- number | string
230
+ boolean
231
+ </td>
232
+ <td className="px-6 py-4 text-sm !text-white/50">
233
+ true
230
234
  </td>
231
- <td className="px-6 py-4 text-sm !text-white/50">20</td>
232
235
  <td className="px-6 py-4 text-sm !text-white/70">
233
- Width of the icon in pixels
236
+ Whether to wrap the icon with accessibility feature
234
237
  </td>
235
238
  </tr>
236
239
  <tr className="border-b border-white/5 !bg-black/10">
@@ -892,6 +895,10 @@ function NoteInput() {
892
895
  control: { type: "range", min: 8, max: 96, step: 2 },
893
896
  description: "Width of the icon in pixels",
894
897
  },
898
+ withAccessibility: {
899
+ control: "boolean",
900
+ description: "Whether to wrap the icon with accessibility features",
901
+ },
895
902
  height: {
896
903
  control: { type: "range", min: 8, max: 96, step: 2 },
897
904
  description: "Height of the icon in pixels",
@@ -931,6 +938,7 @@ export const Default: Story = {
931
938
  width: 24,
932
939
  height: 24,
933
940
  className: "text-indigo-400 ",
941
+ withAccessibility: true,
934
942
  },
935
943
  parameters: storyParameters,
936
944
  render: (args) => (
@@ -1,21 +1,31 @@
1
1
  import React from "react"
2
2
  import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
3
3
 
4
- export const NotepadIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => (
7
- <AccessibleIcon label="Notepad icon">
4
+ export interface NotepadIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const NotepadIcon = (props: NotepadIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
8
12
  <svg
9
13
  viewBox="0 0 24 24"
10
14
  fill="none"
11
15
  xmlns="http://www.w3.org/2000/svg"
12
16
  stroke="currentColor"
13
- {...props}
17
+ {...svgProps}
14
18
  >
15
19
  <path
16
20
  d="M8.75 9.75H15.25M8.75 13.75H13.25M12 4.25V2.25M16.25 4.25V2.25M7.75 4.25V2.25M4.25 3.27778H19.75V20.75H4.25V3.27778Z"
17
21
  strokeLinecap="square"
18
22
  />
19
23
  </svg>
20
- </AccessibleIcon>
21
- )
24
+ )
25
+
26
+ if (withAccessibility) {
27
+ return <AccessibleIcon label="Notepad icon">{svg}</AccessibleIcon>
28
+ }
29
+
30
+ return svg
31
+ }
@@ -221,16 +221,19 @@ function NoteInput() {
221
221
  </tr>
222
222
  </thead>
223
223
  <tbody>
224
- <tr className="border-b border-white/5">
225
- <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
226
- width
224
+ {" "}
225
+ <tr className="!bg-black/10">
226
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
227
+ withAccessibility
227
228
  </td>
228
229
  <td className="px-6 py-4 text-sm !text-white/70">
229
- number | string
230
+ boolean
231
+ </td>
232
+ <td className="px-6 py-4 text-sm !text-white/50">
233
+ true
230
234
  </td>
231
- <td className="px-6 py-4 text-sm !text-white/50">20</td>
232
235
  <td className="px-6 py-4 text-sm !text-white/70">
233
- Width of the icon in pixels
236
+ Whether to wrap the icon with accessibility feature
234
237
  </td>
235
238
  </tr>
236
239
  <tr className="border-b border-white/5 !bg-black/10">
@@ -892,6 +895,10 @@ function NoteInput() {
892
895
  control: { type: "range", min: 8, max: 96, step: 2 },
893
896
  description: "Width of the icon in pixels",
894
897
  },
898
+ withAccessibility: {
899
+ control: "boolean",
900
+ description: "Whether to wrap the icon with accessibility features",
901
+ },
895
902
  height: {
896
903
  control: { type: "range", min: 8, max: 96, step: 2 },
897
904
  description: "Height of the icon in pixels",
@@ -931,6 +938,7 @@ export const Default: Story = {
931
938
  width: 24,
932
939
  height: 24,
933
940
  className: "text-indigo-400 ",
941
+ withAccessibility: true,
934
942
  },
935
943
  parameters: storyParameters,
936
944
  render: (args) => (
@@ -1,17 +1,21 @@
1
1
  import React from "react"
2
2
  import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
3
3
 
4
- export const NotesIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => (
7
- <AccessibleIcon label="Notes Icon">
4
+ export interface NotesIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const NotesIcon = (props: NotesIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
8
12
  <svg
9
13
  viewBox="0 0 24 24"
10
14
  fill="none"
11
15
  xmlns="http://www.w3.org/2000/svg"
12
16
  stroke="currentColor"
13
17
  strokeLinecap="square"
14
- {...props}
18
+ {...svgProps}
15
19
  >
16
20
  <path d="M3.25 12H5.25" />
17
21
  <path d="M9.75 12H12.25" />
@@ -20,5 +24,11 @@ export const NotesIcon = (
20
24
  <path d="M3.25 15.75H5.25" />
21
25
  <path d="M4.25 3.25H19.75V20.75H4.25V3.25Z" />
22
26
  </svg>
23
- </AccessibleIcon>
24
- )
27
+ )
28
+
29
+ if (withAccessibility) {
30
+ return <AccessibleIcon label="Notes Icon">{svg}</AccessibleIcon>
31
+ }
32
+
33
+ return svg
34
+ }