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
@@ -202,16 +202,19 @@ function BackButton() {
202
202
  </tr>
203
203
  </thead>
204
204
  <tbody>
205
- <tr className="border-b border-white/5">
205
+ {" "}
206
+ <tr className="!bg-black/10">
206
207
  <td className="px-6 py-4 font-mono text-sm !text-blue-300">
207
- width
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">20</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">
@@ -780,6 +783,10 @@ function CustomArrowLeftIcon({ label = "Go back", ...props }) {
780
783
  control: { type: "range", min: 8, max: 96, step: 2 },
781
784
  description: "Width of the icon in pixels",
782
785
  },
786
+ withAccessibility: {
787
+ control: "boolean",
788
+ description: "Whether to wrap the icon with accessibility features",
789
+ },
783
790
  height: {
784
791
  control: { type: "range", min: 8, max: 96, step: 2 },
785
792
  description: "Height of the icon in pixels",
@@ -818,6 +825,7 @@ export const Default: Story = {
818
825
  width: 20,
819
826
  height: 20,
820
827
  className: "text-blue-400",
828
+ withAccessibility: true,
821
829
  },
822
830
  parameters: storyParameters,
823
831
  render: (args) => (
@@ -1,15 +1,19 @@
1
1
  import React from "react"
2
2
  import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
3
3
 
4
- export const ArrowLeftIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => (
7
- <AccessibleIcon label="Arrow left icon">
4
+ export interface ArrowLeftIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const ArrowLeftIcon = (props: ArrowLeftIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
8
12
  <svg
9
13
  viewBox="0 0 20 20"
10
14
  fill="none"
11
15
  xmlns="http://www.w3.org/2000/svg"
12
- {...props}
16
+ {...svgProps}
13
17
  >
14
18
  <path
15
19
  d="M8.33333 4.79169L3.125 10L8.33333 15.2084M3.75 10H16.875"
@@ -18,7 +22,11 @@ export const ArrowLeftIcon = (
18
22
  strokeLinecap="square"
19
23
  />
20
24
  </svg>
21
- </AccessibleIcon>
22
- )
25
+ )
26
+
27
+ if (withAccessibility) {
28
+ return <AccessibleIcon label="Arrow left icon">{svg}</AccessibleIcon>
29
+ }
23
30
 
24
- export default ArrowLeftIcon
31
+ return svg
32
+ }
@@ -201,16 +201,19 @@ function NextButton() {
201
201
  </tr>
202
202
  </thead>
203
203
  <tbody>
204
- <tr className="border-b border-white/5">
205
- <td className="px-6 py-4 font-mono text-sm !text-cyan-300">
206
- width
204
+ {" "}
205
+ <tr className="!bg-black/10">
206
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
207
+ withAccessibility
207
208
  </td>
208
209
  <td className="px-6 py-4 text-sm !text-white/70">
209
- number | string
210
+ boolean
211
+ </td>
212
+ <td className="px-6 py-4 text-sm !text-white/50">
213
+ true
210
214
  </td>
211
- <td className="px-6 py-4 text-sm !text-white/50">16</td>
212
215
  <td className="px-6 py-4 text-sm !text-white/70">
213
- Width of the icon in pixels
216
+ Whether to wrap the icon with accessibility feature
214
217
  </td>
215
218
  </tr>
216
219
  <tr className="border-b border-white/5 !bg-black/10">
@@ -868,6 +871,10 @@ function AccessibleNextButton({ onNext, children, disabled = false }) {
868
871
  control: { type: "range", min: 8, max: 96, step: 2 },
869
872
  description: "Width of the icon in pixels",
870
873
  },
874
+ withAccessibility: {
875
+ control: "boolean",
876
+ description: "Whether to wrap the icon with accessibility features",
877
+ },
871
878
  height: {
872
879
  control: { type: "range", min: 6, max: 84, step: 2 },
873
880
  description: "Height of the icon in pixels",
@@ -911,6 +918,7 @@ export const Default: Story = {
911
918
  width: 24,
912
919
  height: 21,
913
920
  className: "text-cyan-400",
921
+ withAccessibility: true,
914
922
  },
915
923
  parameters: storyParameters,
916
924
  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 ArrowRightIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => (
7
- <AccessibleIcon label="Arrow Right icon">
4
+ export interface ArrowRightIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const ArrowRightIcon = (props: ArrowRightIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
8
12
  <svg
9
13
  width="16"
10
14
  height="14"
11
15
  viewBox="0 0 16 14"
12
16
  fill="none"
13
17
  xmlns="http://www.w3.org/2000/svg"
14
- {...props}
18
+ {...svgProps}
15
19
  >
16
20
  <path
17
21
  d="M9.667 1.792 14.875 7l-5.208 5.208M14.25 7H1.125"
@@ -20,7 +24,11 @@ export const ArrowRightIcon = (
20
24
  strokeLinecap="square"
21
25
  />
22
26
  </svg>
23
- </AccessibleIcon>
24
- )
27
+ )
28
+
29
+ if (withAccessibility) {
30
+ return <AccessibleIcon label="Arrow Right icon">{svg}</AccessibleIcon>
31
+ }
25
32
 
26
- export default ArrowRightIcon
33
+ return svg
34
+ }
@@ -204,16 +204,19 @@ function ExternalLink() {
204
204
  </tr>
205
205
  </thead>
206
206
  <tbody>
207
- <tr className="border-b border-white/5">
208
- <td className="px-6 py-4 font-mono text-sm !text-violet-300">
209
- width
207
+ {" "}
208
+ <tr className="!bg-black/10">
209
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
210
+ withAccessibility
210
211
  </td>
211
212
  <td className="px-6 py-4 text-sm !text-white/70">
212
- number | string
213
+ boolean
214
+ </td>
215
+ <td className="px-6 py-4 text-sm !text-white/50">
216
+ true
213
217
  </td>
214
- <td className="px-6 py-4 text-sm !text-white/50">24</td>
215
218
  <td className="px-6 py-4 text-sm !text-white/70">
216
- Width of the icon in pixels
219
+ Whether to wrap the icon with accessibility feature
217
220
  </td>
218
221
  </tr>
219
222
  <tr className="border-b border-white/5 !bg-black/10">
@@ -975,6 +978,10 @@ function AccessibleExternalLink({ href, children, ...props }) {
975
978
  control: "color",
976
979
  description: "Color of the icon",
977
980
  },
981
+ withAccessibility: {
982
+ control: "boolean",
983
+ description: "Whether to wrap the icon with accessibility features",
984
+ },
978
985
  width: {
979
986
  control: { type: "range", min: 8, max: 96, step: 2 },
980
987
  description: "Width of the icon in pixels",
@@ -1009,6 +1016,7 @@ export const Default: Story = {
1009
1016
  width: 24,
1010
1017
  height: 24,
1011
1018
  className: "text-violet-400",
1019
+ withAccessibility: true,
1012
1020
  },
1013
1021
  parameters: storyParameters,
1014
1022
  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 ArrowRightUpIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => (
7
- <AccessibleIcon label="Arrow Right Up icon">
4
+ export interface ArrowRightUpIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const ArrowRightUpIcon = (props: ArrowRightUpIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
8
12
  <svg
9
13
  width="24"
10
14
  height="24"
11
15
  viewBox="0 0 24 24"
12
16
  fill="none"
13
17
  xmlns="http://www.w3.org/2000/svg"
14
- {...props}
18
+ {...svgProps}
15
19
  >
16
20
  <path
17
21
  d="M18.25 15.25V5.75H8.75M6 18L17.6002 6.39983"
@@ -20,5 +24,11 @@ export const ArrowRightUpIcon = (
20
24
  strokeLinecap="square"
21
25
  />
22
26
  </svg>
23
- </AccessibleIcon>
24
- )
27
+ )
28
+
29
+ if (withAccessibility) {
30
+ return <AccessibleIcon label="Arrow Right Up icon">{svg}</AccessibleIcon>
31
+ }
32
+
33
+ return svg
34
+ }
@@ -203,16 +203,19 @@ const meta: Meta<typeof ArtBoardIcon> = {
203
203
  </tr>
204
204
  </thead>
205
205
  <tbody>
206
- <tr className="border-b border-white/5">
207
- <td className="px-6 py-4 font-mono text-sm !text-emerald-300">
208
- className
206
+ {" "}
207
+ <tr className="!bg-black/10">
208
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
209
+ withAccessibility
209
210
  </td>
210
- <td className="px-6 py-4 text-sm !text-white/80">
211
- string
211
+ <td className="px-6 py-4 text-sm !text-white/70">
212
+ boolean
212
213
  </td>
213
- <td className="px-6 py-4 text-sm !text-white/60">-</td>
214
- <td className="px-6 py-4 text-sm !text-white/80">
215
- Additional CSS classes
214
+ <td className="px-6 py-4 text-sm !text-white/50">
215
+ true
216
+ </td>
217
+ <td className="px-6 py-4 text-sm !text-white/70">
218
+ Whether to wrap the icon with accessibility feature
216
219
  </td>
217
220
  </tr>
218
221
  </tbody>
@@ -495,6 +498,10 @@ function DesignTool() {
495
498
  control: { type: "range", min: 8, max: 96, step: 2 },
496
499
  description: "Width of the icon in pixels",
497
500
  },
501
+ withAccessibility: {
502
+ control: "boolean",
503
+ description: "Whether to wrap the icon with accessibility features",
504
+ },
498
505
  height: {
499
506
  control: { type: "range", min: 8, max: 96, step: 2 },
500
507
  description: "Height of the icon in pixels",
@@ -525,6 +532,7 @@ export const Default: Story = {
525
532
  width: 24,
526
533
  height: 24,
527
534
  className: "text-emerald-400",
535
+ withAccessibility: true,
528
536
  },
529
537
  parameters: storyParameters,
530
538
  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 ArtBoardIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => (
7
- <AccessibleIcon label="Art Board Icon">
4
+ export interface ArtBoardIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const ArtBoardIcon = (props: ArtBoardIconProps) => {
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="18"
11
15
  height="18"
12
16
  viewBox="0 0 18 18"
13
17
  fill="none"
14
- {...props}
18
+ {...svgProps}
15
19
  >
16
20
  <path
17
21
  d="M12.75 15.9355L12.1165 14.0352M5.25 15.9355L5.88345 14.0352M9 3.56055H2.0625V13.6855H15.9375V3.56055H9ZM9 3.56055V2.06055M9 15.1855V14.0352"
@@ -20,5 +24,11 @@ export const ArtBoardIcon = (
20
24
  strokeLinecap="square"
21
25
  />
22
26
  </svg>
23
- </AccessibleIcon>
24
- )
27
+ )
28
+
29
+ if (withAccessibility) {
30
+ return <AccessibleIcon label="Art Board Icon">{svg}</AccessibleIcon>
31
+ }
32
+
33
+ return svg
34
+ }
@@ -201,16 +201,19 @@ function AudioPlayer() {
201
201
  </tr>
202
202
  </thead>
203
203
  <tbody>
204
- <tr className="border-b border-white/5">
205
- <td className="px-6 py-4 font-mono text-sm !text-violet-300">
206
- width
204
+ {" "}
205
+ <tr className="!bg-black/10">
206
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
207
+ withAccessibility
207
208
  </td>
208
209
  <td className="px-6 py-4 text-sm !text-white/70">
209
- number | string
210
+ boolean
211
+ </td>
212
+ <td className="px-6 py-4 text-sm !text-white/50">
213
+ true
210
214
  </td>
211
- <td className="px-6 py-4 text-sm !text-white/50">52</td>
212
215
  <td className="px-6 py-4 text-sm !text-white/70">
213
- Width of the icon in pixels
216
+ Whether to wrap the icon with accessibility feature
214
217
  </td>
215
218
  </tr>
216
219
  <tr className="border-b border-white/5 !bg-black/10">
@@ -951,6 +954,10 @@ function AccessibleAudioIcon({
951
954
  control: "color",
952
955
  description: "Color of the icon",
953
956
  },
957
+ withAccessibility: {
958
+ control: "boolean",
959
+ description: "Whether to wrap the icon with accessibility features",
960
+ },
954
961
  width: {
955
962
  control: { type: "range", min: 8, max: 96, step: 2 },
956
963
  description: "Width of the icon in pixels",
@@ -989,6 +996,7 @@ export const Default: Story = {
989
996
  width: 24,
990
997
  height: 24,
991
998
  className: "text-violet-400",
999
+ withAccessibility: true,
992
1000
  },
993
1001
  parameters: storyParameters,
994
1002
  render: (args) => (
@@ -1,19 +1,29 @@
1
1
  import React from "react"
2
2
  import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
3
3
 
4
- export const AudioBarIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => (
7
- <AccessibleIcon label="Audio Bar icon">
4
+ export interface AudioBarIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const AudioBarIcon = (props: AudioBarIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
8
12
  <svg
9
13
  width="52"
10
14
  height="12"
11
15
  viewBox="0 0 52 12"
12
16
  xmlns="http://www.w3.org/2000/svg"
13
17
  fill="currentColor"
14
- {...props}
18
+ {...svgProps}
15
19
  >
16
20
  <path d="M19.068 0h1.5v12h-1.5zm4 2h1.5v8h-1.5zm4 2h1.5v3.81h-1.5zm-10-2h-1.5v8h1.5zm-4 2h-1.5v3.81h1.5zm-4 .5h-1.5v2h1.5zm-4 0h-1.5v2h1.5zM1.5 4.5H0v2h1.5zM36.068 0h-1.5v12h1.5zm4 2h-1.5v8h1.5zm-8 2h-1.5v3.81h1.5zm14-2h1.5v8h-1.5zm-4 2h1.5v3.81h-1.5zm8 1h1.5v2h-1.5z" />
17
21
  </svg>
18
- </AccessibleIcon>
19
- )
22
+ )
23
+
24
+ if (withAccessibility) {
25
+ return <AccessibleIcon label="Audio Bar icon">{svg}</AccessibleIcon>
26
+ }
27
+
28
+ return svg
29
+ }
@@ -203,16 +203,19 @@ function MediaPlayer() {
203
203
  </tr>
204
204
  </thead>
205
205
  <tbody>
206
- <tr className="border-b border-white/5">
207
- <td className="px-6 py-4 font-mono text-sm !text-violet-300">
208
- width
206
+ {" "}
207
+ <tr className="!bg-black/10">
208
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
209
+ withAccessibility
209
210
  </td>
210
211
  <td className="px-6 py-4 text-sm !text-white/70">
211
- number | string
212
+ boolean
213
+ </td>
214
+ <td className="px-6 py-4 text-sm !text-white/50">
215
+ true
212
216
  </td>
213
- <td className="px-6 py-4 text-sm !text-white/50">44</td>
214
217
  <td className="px-6 py-4 text-sm !text-white/70">
215
- Width of the icon in pixels
218
+ Whether to wrap the icon with accessibility feature
216
219
  </td>
217
220
  </tr>
218
221
  <tr className="border-b border-white/5 !bg-black/10">
@@ -833,6 +836,10 @@ function MediaPlayer() {
833
836
  control: { type: "range", min: 8, max: 96, step: 2 },
834
837
  description: "Width of the icon in pixels",
835
838
  },
839
+ withAccessibility: {
840
+ control: "boolean",
841
+ description: "Whether to wrap the icon with accessibility features",
842
+ },
836
843
  height: {
837
844
  control: { type: "range", min: 8, max: 96, step: 2 },
838
845
  description: "Height of the icon in pixels",
@@ -873,6 +880,7 @@ const storyParameters = {
873
880
  export const Default: Story = {
874
881
  args: {
875
882
  className: "h-8 w-8 text-violet-400",
883
+ withAccessibility: true,
876
884
  },
877
885
  parameters: storyParameters,
878
886
  render: (args) => (
@@ -1,10 +1,15 @@
1
1
  import React from "react"
2
2
  import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
3
3
 
4
- export const BackwardTenSecondsIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => (
7
- <AccessibleIcon label="Backward ten seconds icon">
4
+ export interface BackwardTenSecondsIconProps
5
+ extends React.SVGProps<SVGSVGElement> {
6
+ withAccessibility?: boolean
7
+ }
8
+
9
+ export const BackwardTenSecondsIcon = (props: BackwardTenSecondsIconProps) => {
10
+ const { withAccessibility = true, ...svgProps } = props
11
+
12
+ const svg = (
8
13
  <svg
9
14
  xmlns="http://www.w3.org/2000/svg"
10
15
  width="44"
@@ -14,7 +19,7 @@ export const BackwardTenSecondsIcon = (
14
19
  stroke="currentColor"
15
20
  strokeWidth="1.5"
16
21
  strokeLinecap="round"
17
- {...props}
22
+ {...svgProps}
18
23
  >
19
24
  <path
20
25
  d="M23.8 6.80476V10.3L16.6 5.35L23.8 0.399998V4.08888C32.8959 4.99198 40 12.6664 40 22C40 31.941 31.941 40 22 40C12.0589 40 4 31.941 4 22C4 17.0298 6.0162 12.5279 9.27207 9.27207L11.1813 11.1813C8.41103 13.9515 6.7 17.7746 6.7 22C6.7 30.4499 13.55 37.3 22 37.3C30.4499 37.3 37.3 30.4499 37.3 22C37.3 14.159 31.4018 7.69563 23.8 6.80476Z"
@@ -31,5 +36,13 @@ export const BackwardTenSecondsIcon = (
31
36
  fill="currentColor"
32
37
  />
33
38
  </svg>
34
- </AccessibleIcon>
35
- )
39
+ )
40
+
41
+ if (withAccessibility) {
42
+ return (
43
+ <AccessibleIcon label="Backward ten seconds icon">{svg}</AccessibleIcon>
44
+ )
45
+ }
46
+
47
+ return svg
48
+ }
@@ -204,16 +204,19 @@ function SuccessMessage() {
204
204
  </tr>
205
205
  </thead>
206
206
  <tbody>
207
- <tr className="border-b border-white/5">
208
- <td className="px-6 py-4 font-mono text-sm !text-green-300">
209
- width
207
+ {" "}
208
+ <tr className="!bg-black/10">
209
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
210
+ withAccessibility
210
211
  </td>
211
212
  <td className="px-6 py-4 text-sm !text-white/70">
212
- number | string
213
+ boolean
214
+ </td>
215
+ <td className="px-6 py-4 text-sm !text-white/50">
216
+ true
213
217
  </td>
214
- <td className="px-6 py-4 text-sm !text-white/50">24</td>
215
218
  <td className="px-6 py-4 text-sm !text-white/70">
216
- Width of the icon in pixels
219
+ Whether to wrap the icon with accessibility feature
217
220
  </td>
218
221
  </tr>
219
222
  <tr className="border-b border-white/5 !bg-black/10">
@@ -956,6 +959,10 @@ function SuccessMessageIcon({ label = "Success message", ...props }) {
956
959
  control: { type: "range", min: 8, max: 96, step: 2 },
957
960
  description: "Width of the icon in pixels",
958
961
  },
962
+ withAccessibility: {
963
+ control: "boolean",
964
+ description: "Whether to wrap the icon with accessibility features",
965
+ },
959
966
  height: {
960
967
  control: { type: "range", min: 8, max: 96, step: 2 },
961
968
  description: "Height of the icon in pixels",
@@ -999,6 +1006,7 @@ export const Default: Story = {
999
1006
  width: 24,
1000
1007
  height: 24,
1001
1008
  className: "text-green-400",
1009
+ withAccessibility: true,
1002
1010
  },
1003
1011
  parameters: storyParameters,
1004
1012
  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 BubbleCheckIcon = (
5
- props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
6
- ) => (
7
- <AccessibleIcon label="Bubble Check icon">
4
+ export interface BubbleCheckIconProps extends React.SVGProps<SVGSVGElement> {
5
+ withAccessibility?: boolean
6
+ }
7
+
8
+ export const BubbleCheckIcon = (props: BubbleCheckIconProps) => {
9
+ const { withAccessibility = true, ...svgProps } = props
10
+
11
+ const svg = (
8
12
  <svg
9
13
  width="24"
10
14
  height="24"
11
15
  viewBox="0 0 24 24"
12
16
  fill="none"
13
17
  xmlns="http://www.w3.org/2000/svg"
14
- {...props}
18
+ {...svgProps}
15
19
  >
16
20
  <path
17
21
  d="M9.34998 11.35L11 13L14.85 9.15003M3.75 3.75H20.25V18.25H15.0155L11.9979 20.75L9.0155 18.25H3.75V3.75Z"
@@ -20,5 +24,11 @@ export const BubbleCheckIcon = (
20
24
  strokeLinecap="square"
21
25
  />
22
26
  </svg>
23
- </AccessibleIcon>
24
- )
27
+ )
28
+
29
+ if (withAccessibility) {
30
+ return <AccessibleIcon label="Bubble Check icon">{svg}</AccessibleIcon>
31
+ }
32
+
33
+ return svg
34
+ }
@@ -202,16 +202,19 @@ function BlockedMessage() {
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-red-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">25</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">
@@ -944,6 +947,10 @@ function BlockedMessageIcon({ label = "Blocked message", ...props }) {
944
947
  control: { type: "range", min: 8, max: 96, step: 2 },
945
948
  description: "Width of the icon in pixels",
946
949
  },
950
+ withAccessibility: {
951
+ control: "boolean",
952
+ description: "Whether to wrap the icon with accessibility features",
953
+ },
947
954
  height: {
948
955
  control: { type: "range", min: 8, max: 96, step: 2 },
949
956
  description: "Height of the icon in pixels",
@@ -987,6 +994,7 @@ export const Default: Story = {
987
994
  width: 25,
988
995
  height: 24,
989
996
  className: "text-red-400",
997
+ withAccessibility: true,
990
998
  },
991
999
  parameters: storyParameters,
992
1000
  render: (args) => (