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.
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +14 -6
- package/dist/icons/ai-avatar-icon/index.tsx +16 -5
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +15 -7
- package/dist/icons/alert-icon/index.tsx +35 -20
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +13 -5
- package/dist/icons/angle-down-icon/index.tsx +17 -7
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +13 -5
- package/dist/icons/apple-logo-icon/index.tsx +17 -7
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +14 -6
- package/dist/icons/arrow-box-left-icon/index.tsx +17 -7
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +13 -5
- package/dist/icons/arrow-corner-up-left-icon/index.tsx +20 -7
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +14 -6
- package/dist/icons/arrow-corner-up-right-icon/index.tsx +20 -7
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +13 -5
- package/dist/icons/arrow-left-icon/index.tsx +16 -8
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +14 -6
- package/dist/icons/arrow-right-icon/index.tsx +16 -8
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +14 -6
- package/dist/icons/arrow-right-up-icon/index.tsx +17 -7
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +16 -8
- package/dist/icons/art-board-icon/index.tsx +17 -7
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +14 -6
- package/dist/icons/audio-bar-icon/index.tsx +17 -7
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +14 -6
- package/dist/icons/backward-ten-seconds-icon/index.tsx +20 -7
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +14 -6
- package/dist/icons/bubble-check-icon/index.tsx +17 -7
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +14 -6
- package/dist/icons/bubble-crossed-icon/index.tsx +17 -7
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +14 -6
- package/dist/icons/bubble-sparkle-icon/index.tsx +17 -7
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +14 -6
- package/dist/icons/camera-icon/index.tsx +17 -7
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +13 -5
- package/dist/icons/capital-a-letter-icon/index.tsx +35 -27
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +13 -5
- package/dist/icons/chevron-double-left-icon/index.tsx +19 -8
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +14 -6
- package/dist/icons/chevron-double-right-icon/index.tsx +19 -8
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +13 -5
- package/dist/icons/chevron-down-icon/index.tsx +16 -8
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +14 -6
- package/dist/icons/chevron-left-icon/index.tsx +16 -8
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +14 -6
- package/dist/icons/chevron-right-icon/index.tsx +16 -8
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +14 -6
- package/dist/icons/chevron-up-icon/index.tsx +16 -8
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +14 -6
- package/dist/icons/circle-tick-icon/index.tsx +17 -7
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +14 -6
- package/dist/icons/coin-icon/index.tsx +17 -7
- package/dist/icons/command-icon/CommandIcon.stories.tsx +13 -5
- package/dist/icons/command-icon/index.tsx +17 -7
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +14 -6
- package/dist/icons/copy-icon/index.tsx +17 -7
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +14 -6
- package/dist/icons/cross-circle-icon/index.tsx +17 -7
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +14 -6
- package/dist/icons/cross-icon/index.tsx +17 -7
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +14 -6
- package/dist/icons/download-icon/index.tsx +17 -7
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +13 -5
- package/dist/icons/edit-big-icon/index.tsx +17 -7
- package/dist/icons/email-icon/EmailIcon.stories.tsx +13 -5
- package/dist/icons/email-icon/index.tsx +17 -7
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +14 -6
- package/dist/icons/expand-icon/index.tsx +17 -7
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +13 -6
- package/dist/icons/eye-close-icon/index.tsx +17 -7
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +13 -5
- package/dist/icons/eye-open-icon/index.tsx +17 -7
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +14 -6
- package/dist/icons/feature-shine-icon/index.tsx +17 -5
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +13 -5
- package/dist/icons/file-chart-icon/index.tsx +17 -7
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +15 -7
- package/dist/icons/file-text-icon/index.tsx +17 -7
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +14 -6
- package/dist/icons/filter-bar-row-icon/index.tsx +17 -7
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +14 -6
- package/dist/icons/forward-ten-seconds-icon/index.tsx +20 -7
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +14 -6
- package/dist/icons/git-branch-icon/index.tsx +17 -7
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +14 -6
- package/dist/icons/git-fork-icon/index.tsx +17 -7
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +360 -0
- package/dist/icons/globe-icon/index.tsx +32 -0
- package/dist/icons/globe-icon/meta.ts +8 -0
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +14 -6
- package/dist/icons/google-logo-icon/index.tsx +17 -7
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +14 -6
- package/dist/icons/grip-vertical-icon/index.tsx +17 -7
- package/dist/icons/head-icon/HeadIcon.stories.tsx +13 -5
- package/dist/icons/head-icon/index.tsx +29 -21
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +14 -6
- package/dist/icons/heart-icon/index.tsx +17 -7
- package/dist/icons/image-icon/ImageIcon.stories.tsx +13 -5
- package/dist/icons/image-icon/index.tsx +17 -7
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +14 -6
- package/dist/icons/import-folder-icon/index.tsx +17 -7
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +14 -6
- package/dist/icons/import-left-arrow-folder-icon/index.tsx +23 -6
- package/dist/icons/index.ts +1 -0
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +14 -6
- package/dist/icons/indian-flag-icon/index.tsx +17 -7
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +12 -6
- package/dist/icons/instagram-icon/index.tsx +17 -7
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +13 -5
- package/dist/icons/layout-column-icon/index.tsx +17 -7
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +14 -6
- package/dist/icons/layout-left-icon/index.tsx +17 -7
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +14 -6
- package/dist/icons/layout-right-icon/index.tsx +17 -7
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +14 -6
- package/dist/icons/light-bulb-simple-icon/index.tsx +18 -7
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +11 -5
- package/dist/icons/linked-in-icon/index.tsx +17 -7
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +14 -6
- package/dist/icons/magic-book-icon/index.tsx +17 -7
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +14 -6
- package/dist/icons/maintenance-icon/index.tsx +17 -7
- package/dist/icons/message-icon/MessageIcon.stories.tsx +15 -7
- package/dist/icons/message-icon/index.tsx +17 -7
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +14 -6
- package/dist/icons/minimize-icon/index.tsx +17 -7
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +15 -7
- package/dist/icons/moon-icon/index.tsx +24 -16
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +14 -6
- package/dist/icons/move-horizontal-icon/index.tsx +17 -7
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +13 -5
- package/dist/icons/move-vertical-icon/index.tsx +17 -7
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +14 -6
- package/dist/icons/musical-note-icon/index.tsx +28 -20
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +14 -6
- package/dist/icons/notepad-icon/index.tsx +17 -7
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +14 -6
- package/dist/icons/notes-icon/index.tsx +17 -7
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +14 -6
- package/dist/icons/page-search-icon/index.tsx +17 -7
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +14 -6
- package/dist/icons/paint-roll-icon/index.tsx +17 -7
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +14 -6
- package/dist/icons/paper-plane-icon/index.tsx +17 -7
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +14 -6
- package/dist/icons/pause-icon/index.tsx +17 -7
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +14 -6
- package/dist/icons/pencil-icon/index.tsx +17 -7
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +14 -6
- package/dist/icons/phone-icon/index.tsx +29 -21
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +14 -6
- package/dist/icons/plus-icon/index.tsx +17 -7
- package/dist/icons/search-icon/SearchIcon.stories.tsx +13 -5
- package/dist/icons/search-icon/index.tsx +17 -7
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +13 -5
- package/dist/icons/setting-icon/index.tsx +33 -25
- package/dist/icons/share-icon/ShareIcon.stories.tsx +13 -5
- package/dist/icons/share-icon/index.tsx +17 -7
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +14 -6
- package/dist/icons/shield-icon/index.tsx +24 -16
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +14 -6
- package/dist/icons/site-logo-icon/index.tsx +17 -5
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +14 -6
- package/dist/icons/skip-backward-icon/index.tsx +17 -7
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +13 -5
- package/dist/icons/skip-forward-icon/index.tsx +17 -7
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +14 -6
- package/dist/icons/sparkles-soft-icon/index.tsx +17 -7
- package/dist/icons/spinner-gradient-icon/index.tsx +18 -7
- package/dist/icons/spinner-solid-icon/index.tsx +17 -7
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +14 -6
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +21 -6
- package/dist/icons/star-icon/StarIcon.stories.tsx +14 -6
- package/dist/icons/star-icon/index.tsx +17 -7
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +14 -6
- package/dist/icons/store-coin-icon/index.tsx +16 -8
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +13 -5
- package/dist/icons/suggestion-icon/index.tsx +17 -7
- package/dist/icons/sun-icon/SunIcon.stories.tsx +13 -5
- package/dist/icons/sun-icon/index.tsx +26 -18
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +13 -5
- package/dist/icons/text-color-icon/index.tsx +17 -7
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +14 -6
- package/dist/icons/text-indicator-icon/index.tsx +17 -7
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +12 -6
- package/dist/icons/threads-icon/index.tsx +17 -7
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +14 -6
- package/dist/icons/tick-circle-icon/index.tsx +17 -7
- package/dist/icons/tick-icon/TickIcon.stories.tsx +14 -6
- package/dist/icons/tick-icon/index.tsx +17 -7
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +14 -6
- package/dist/icons/trash-icon/index.tsx +17 -7
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +12 -6
- package/dist/icons/twitter-x-icon/index.tsx +17 -7
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +13 -5
- package/dist/icons/upload-icon/index.tsx +17 -7
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +13 -5
- package/dist/icons/vertical-menu-icon/index.tsx +17 -7
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +14 -6
- package/dist/icons/video-play-list-icon/index.tsx +17 -7
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +14 -6
- package/dist/icons/voice-playing-icon/index.tsx +17 -7
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +14 -6
- package/dist/icons/volume-full-icon/index.tsx +17 -7
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +14 -6
- package/dist/icons/volume-half-icon/index.tsx +17 -7
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +14 -6
- package/dist/icons/volume-off-icon/index.tsx +17 -7
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +14 -6
- package/dist/icons/warning-icon/index.tsx +17 -7
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +14 -6
- package/dist/icons/youtube-icon/index.tsx +17 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -225,16 +225,19 @@ function SearchBar() {
|
|
|
225
225
|
</tr>
|
|
226
226
|
</thead>
|
|
227
227
|
<tbody>
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
{" "}
|
|
229
|
+
<tr className="!bg-black/10">
|
|
230
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
231
|
+
withAccessibility
|
|
231
232
|
</td>
|
|
232
233
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
233
|
-
|
|
234
|
+
boolean
|
|
235
|
+
</td>
|
|
236
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
237
|
+
true
|
|
234
238
|
</td>
|
|
235
|
-
<td className="px-6 py-4 text-sm !text-white/50">20</td>
|
|
236
239
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
237
|
-
|
|
240
|
+
Whether to wrap the icon with accessibility feature
|
|
238
241
|
</td>
|
|
239
242
|
</tr>
|
|
240
243
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -896,6 +899,10 @@ function SearchBar() {
|
|
|
896
899
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
897
900
|
description: "Width of the icon in pixels",
|
|
898
901
|
},
|
|
902
|
+
withAccessibility: {
|
|
903
|
+
control: "boolean",
|
|
904
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
905
|
+
},
|
|
899
906
|
height: {
|
|
900
907
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
901
908
|
description: "Height of the icon in pixels",
|
|
@@ -935,6 +942,7 @@ export const Default: Story = {
|
|
|
935
942
|
width: 24,
|
|
936
943
|
height: 24,
|
|
937
944
|
className: "text-indigo-400 ",
|
|
945
|
+
withAccessibility: true,
|
|
938
946
|
},
|
|
939
947
|
parameters: storyParameters,
|
|
940
948
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface PageSearchIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PageSearchIcon = (props: PageSearchIconProps) => {
|
|
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
16
|
stroke="currentColor"
|
|
13
|
-
{...
|
|
17
|
+
{...svgProps}
|
|
14
18
|
>
|
|
15
19
|
<path
|
|
16
20
|
d="M8.54232 17.7083H3.95898V2.29163H16.0423V8.95829M17.084 17.9166L15.9781 16.7751M15.9781 16.7751C16.5332 16.211 16.8757 15.4372 16.8757 14.5833C16.8757 12.8574 15.4765 11.4583 13.7507 11.4583C12.0248 11.4583 10.6257 12.8574 10.6257 14.5833C10.6257 16.3092 12.0248 17.7083 13.7507 17.7083C14.6227 17.7083 15.4113 17.3511 15.9781 16.7751Z"
|
|
17
21
|
strokeLinecap="square"
|
|
18
22
|
/>
|
|
19
23
|
</svg>
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
if (withAccessibility) {
|
|
27
|
+
return <AccessibleIcon label="Page Search icon">{svg}</AccessibleIcon>
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return svg
|
|
31
|
+
}
|
|
@@ -202,16 +202,19 @@ function MyComponent() {
|
|
|
202
202
|
</tr>
|
|
203
203
|
</thead>
|
|
204
204
|
<tbody>
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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
|
-
|
|
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">18</td>
|
|
213
216
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
214
|
-
|
|
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">
|
|
@@ -775,6 +778,10 @@ function CustomPaintRollIcon({ label = "Styling tool", ...props }) {
|
|
|
775
778
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
776
779
|
description: "Width of the icon in pixels",
|
|
777
780
|
},
|
|
781
|
+
withAccessibility: {
|
|
782
|
+
control: "boolean",
|
|
783
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
784
|
+
},
|
|
778
785
|
height: {
|
|
779
786
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
780
787
|
description: "Height of the icon in pixels",
|
|
@@ -813,6 +820,7 @@ export const Default: Story = {
|
|
|
813
820
|
width: 24,
|
|
814
821
|
height: 24,
|
|
815
822
|
className: "text-indigo-400",
|
|
823
|
+
withAccessibility: true,
|
|
816
824
|
},
|
|
817
825
|
parameters: storyParameters,
|
|
818
826
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface PaintRollIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PaintRollIcon = (props: PaintRollIconProps) => {
|
|
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
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<path
|
|
17
21
|
d="M5.0625 5.25V7.6875H15.1875V2.8125H5.0625V5.25ZM5.0625 5.25H2.8125V9.9375H9.75V11.625M11.4375 15.9375V13.6875C11.4375 12.7555 10.682 12 9.75 12C8.81802 12 8.0625 12.7555 8.0625 13.6875V15.9375"
|
|
@@ -20,5 +24,11 @@ export const PaintRollIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Paint Roll icon">{svg}</AccessibleIcon>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return svg
|
|
34
|
+
}
|
|
@@ -207,16 +207,19 @@ function SendMessageButton({ onSend }) {
|
|
|
207
207
|
</tr>
|
|
208
208
|
</thead>
|
|
209
209
|
<tbody>
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
{" "}
|
|
211
|
+
<tr className="!bg-black/10">
|
|
212
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
213
|
+
withAccessibility
|
|
213
214
|
</td>
|
|
214
215
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
215
|
-
|
|
216
|
+
boolean
|
|
217
|
+
</td>
|
|
218
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
219
|
+
true
|
|
216
220
|
</td>
|
|
217
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
218
221
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
219
|
-
|
|
222
|
+
Whether to wrap the icon with accessibility feature
|
|
220
223
|
</td>
|
|
221
224
|
</tr>
|
|
222
225
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -718,6 +721,10 @@ function SendMessageButton({ onSend }) {
|
|
|
718
721
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
719
722
|
description: "Width of the icon in pixels",
|
|
720
723
|
},
|
|
724
|
+
withAccessibility: {
|
|
725
|
+
control: "boolean",
|
|
726
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
727
|
+
},
|
|
721
728
|
height: {
|
|
722
729
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
723
730
|
description: "Height of the icon in pixels",
|
|
@@ -756,6 +763,7 @@ export const Default: Story = {
|
|
|
756
763
|
width: 24,
|
|
757
764
|
height: 24,
|
|
758
765
|
className: "text-purple-400 ",
|
|
766
|
+
withAccessibility: true,
|
|
759
767
|
},
|
|
760
768
|
parameters: storyParameters,
|
|
761
769
|
render: (args) => (
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface PaperPlaneIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PaperPlaneIcon = (props: PaperPlaneIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
viewBox="0 0 16 16"
|
|
10
14
|
fill="none"
|
|
11
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
16
|
stroke="currentColor"
|
|
13
|
-
{...
|
|
17
|
+
{...svgProps}
|
|
14
18
|
>
|
|
15
19
|
<g clipPath="url(#clip0_1726_103387)">
|
|
16
20
|
<path
|
|
@@ -29,5 +33,11 @@ export const PaperPlaneIcon = (
|
|
|
29
33
|
</clipPath>
|
|
30
34
|
</defs>
|
|
31
35
|
</svg>
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
if (withAccessibility) {
|
|
39
|
+
return <AccessibleIcon label="Paper Plane Icon">{svg}</AccessibleIcon>
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return svg
|
|
43
|
+
}
|
|
@@ -199,16 +199,19 @@ function MediaPlayer() {
|
|
|
199
199
|
</tr>
|
|
200
200
|
</thead>
|
|
201
201
|
<tbody>
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
{" "}
|
|
203
|
+
<tr className="!bg-black/10">
|
|
204
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
205
|
+
withAccessibility
|
|
205
206
|
</td>
|
|
206
207
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
207
|
-
|
|
208
|
+
boolean
|
|
209
|
+
</td>
|
|
210
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
211
|
+
true
|
|
208
212
|
</td>
|
|
209
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
210
213
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
-
|
|
214
|
+
Whether to wrap the icon with accessibility feature
|
|
212
215
|
</td>
|
|
213
216
|
</tr>
|
|
214
217
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -842,6 +845,10 @@ function MediaPlayer() {
|
|
|
842
845
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
843
846
|
description: "Width of the icon in pixels",
|
|
844
847
|
},
|
|
848
|
+
withAccessibility: {
|
|
849
|
+
control: "boolean",
|
|
850
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
851
|
+
},
|
|
845
852
|
height: {
|
|
846
853
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
847
854
|
description: "Height of the icon in pixels",
|
|
@@ -882,6 +889,7 @@ const storyParameters = {
|
|
|
882
889
|
export const Default: Story = {
|
|
883
890
|
args: {
|
|
884
891
|
className: "h-8 w-8 text-red-400",
|
|
892
|
+
withAccessibility: true,
|
|
885
893
|
},
|
|
886
894
|
parameters: storyParameters,
|
|
887
895
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface PauseIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PauseIcon = (props: PauseIconProps) => {
|
|
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"
|
|
@@ -13,7 +17,7 @@ export const PauseIcon = (
|
|
|
13
17
|
fill="none"
|
|
14
18
|
stroke="currentColor"
|
|
15
19
|
strokeWidth="1.5"
|
|
16
|
-
{...
|
|
20
|
+
{...svgProps}
|
|
17
21
|
>
|
|
18
22
|
<path
|
|
19
23
|
d="M4.75 3.75H9.25V20.25H4.75V3.75Z"
|
|
@@ -26,5 +30,11 @@ export const PauseIcon = (
|
|
|
26
30
|
strokeWidth="1.5"
|
|
27
31
|
/>
|
|
28
32
|
</svg>
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
if (withAccessibility) {
|
|
36
|
+
return <AccessibleIcon label="Pause icon">{svg}</AccessibleIcon>
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return svg
|
|
40
|
+
}
|
|
@@ -220,16 +220,19 @@ function EditButton() {
|
|
|
220
220
|
</tr>
|
|
221
221
|
</thead>
|
|
222
222
|
<tbody>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
{" "}
|
|
224
|
+
<tr className="!bg-black/10">
|
|
225
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
226
|
+
withAccessibility
|
|
226
227
|
</td>
|
|
227
228
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
228
|
-
|
|
229
|
+
boolean
|
|
230
|
+
</td>
|
|
231
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
232
|
+
true
|
|
229
233
|
</td>
|
|
230
|
-
<td className="px-6 py-4 text-sm !text-white/50">16</td>
|
|
231
234
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
232
|
-
|
|
235
|
+
Whether to wrap the icon with accessibility feature
|
|
233
236
|
</td>
|
|
234
237
|
</tr>
|
|
235
238
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -899,6 +902,10 @@ function EditButton() {
|
|
|
899
902
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
900
903
|
description: "Width of the icon in pixels",
|
|
901
904
|
},
|
|
905
|
+
withAccessibility: {
|
|
906
|
+
control: "boolean",
|
|
907
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
908
|
+
},
|
|
902
909
|
height: {
|
|
903
910
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
904
911
|
description: "Height of the icon in pixels",
|
|
@@ -942,6 +949,7 @@ export const Default: Story = {
|
|
|
942
949
|
width: 24,
|
|
943
950
|
height: 24,
|
|
944
951
|
className: "text-indigo-400",
|
|
952
|
+
withAccessibility: true,
|
|
945
953
|
},
|
|
946
954
|
parameters: storyParameters,
|
|
947
955
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface PencilIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PencilIcon = (props: PencilIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
viewBox="0 0 16 16"
|
|
10
14
|
fill="none"
|
|
11
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
16
|
stroke="currentColor"
|
|
13
|
-
{...
|
|
17
|
+
{...svgProps}
|
|
14
18
|
>
|
|
15
19
|
<path
|
|
16
20
|
d="M8.8335 4.16667L11.0002 2L14.0002 5L11.8335 7.16667M8.8335 4.16667L1.8335 11.1667V14.1667H4.8335L11.8335 7.16667M8.8335 4.16667L11.8335 7.16667"
|
|
17
21
|
strokeLinecap="round"
|
|
18
22
|
/>
|
|
19
23
|
</svg>
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
if (withAccessibility) {
|
|
27
|
+
return <AccessibleIcon label="Pencil icon">{svg}</AccessibleIcon>
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return svg
|
|
31
|
+
}
|
|
@@ -202,16 +202,19 @@ function ContactCard() {
|
|
|
202
202
|
</tr>
|
|
203
203
|
</thead>
|
|
204
204
|
<tbody>
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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
|
-
|
|
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">14</td>
|
|
213
216
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
214
|
-
|
|
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">
|
|
@@ -814,6 +817,10 @@ function ContactCard() {
|
|
|
814
817
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
815
818
|
description: "Width of the icon in pixels",
|
|
816
819
|
},
|
|
820
|
+
withAccessibility: {
|
|
821
|
+
control: "boolean",
|
|
822
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
823
|
+
},
|
|
817
824
|
height: {
|
|
818
825
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
819
826
|
description: "Height of the icon in pixels",
|
|
@@ -854,6 +861,7 @@ const storyParameters = {
|
|
|
854
861
|
export const Default: Story = {
|
|
855
862
|
args: {
|
|
856
863
|
className: "h-8 w-8",
|
|
864
|
+
withAccessibility: true,
|
|
857
865
|
},
|
|
858
866
|
parameters: storyParameters,
|
|
859
867
|
render: (args) => (
|
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
4
|
+
export interface PhoneIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PhoneIcon = (props: PhoneIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
12
|
+
<svg
|
|
13
|
+
width="14"
|
|
14
|
+
height="14"
|
|
15
|
+
viewBox="0 0 14 14"
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
{...svgProps}
|
|
19
|
+
>
|
|
20
|
+
<path
|
|
21
|
+
d="M5.68752 11.2298H8.31252M3.35419 1.02148H10.6459V12.9798H3.35419V1.02148Z"
|
|
22
|
+
stroke="currentColor"
|
|
23
|
+
strokeWidth="1.2"
|
|
24
|
+
strokeLinecap="square"
|
|
25
|
+
/>
|
|
26
|
+
</svg>
|
|
25
27
|
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Phone icon">{svg}</AccessibleIcon>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return svg
|
|
26
34
|
}
|
|
@@ -227,16 +227,19 @@ function AddButton() {
|
|
|
227
227
|
</tr>
|
|
228
228
|
</thead>
|
|
229
229
|
<tbody>
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
{" "}
|
|
231
|
+
<tr className="!bg-black/10">
|
|
232
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
233
|
+
withAccessibility
|
|
233
234
|
</td>
|
|
234
235
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
235
|
-
|
|
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
|
-
|
|
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">
|
|
@@ -923,6 +926,10 @@ function AddButton() {
|
|
|
923
926
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
924
927
|
description: "Width of the icon in pixels",
|
|
925
928
|
},
|
|
929
|
+
withAccessibility: {
|
|
930
|
+
control: "boolean",
|
|
931
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
932
|
+
},
|
|
926
933
|
height: {
|
|
927
934
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
928
935
|
description: "Height of the icon in pixels",
|
|
@@ -966,6 +973,7 @@ export const Default: Story = {
|
|
|
966
973
|
width: 24,
|
|
967
974
|
height: 24,
|
|
968
975
|
className: "text-green-400",
|
|
976
|
+
withAccessibility: true,
|
|
969
977
|
},
|
|
970
978
|
parameters: storyParameters,
|
|
971
979
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface PlusIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PlusIcon = (props: PlusIconProps) => {
|
|
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
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<path
|
|
17
21
|
d="M12 6.75V12M12 12V17.25M12 12H6.75M12 12H17.25"
|
|
@@ -20,5 +24,11 @@ export const PlusIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Plus icon">{svg}</AccessibleIcon>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return svg
|
|
34
|
+
}
|
|
@@ -231,16 +231,19 @@ function SearchInput() {
|
|
|
231
231
|
</tr>
|
|
232
232
|
</thead>
|
|
233
233
|
<tbody>
|
|
234
|
-
|
|
234
|
+
{" "}
|
|
235
|
+
<tr className="!bg-black/10">
|
|
235
236
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
236
|
-
|
|
237
|
+
withAccessibility
|
|
237
238
|
</td>
|
|
238
239
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
239
|
-
|
|
240
|
+
boolean
|
|
241
|
+
</td>
|
|
242
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
243
|
+
true
|
|
240
244
|
</td>
|
|
241
|
-
<td className="px-6 py-4 text-sm !text-white/50">14</td>
|
|
242
245
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
243
|
-
|
|
246
|
+
Whether to wrap the icon with accessibility feature
|
|
244
247
|
</td>
|
|
245
248
|
</tr>
|
|
246
249
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -962,6 +965,10 @@ function SearchInput() {
|
|
|
962
965
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
963
966
|
description: "Width of the icon in pixels",
|
|
964
967
|
},
|
|
968
|
+
withAccessibility: {
|
|
969
|
+
control: "boolean",
|
|
970
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
971
|
+
},
|
|
965
972
|
height: {
|
|
966
973
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
967
974
|
description: "Height of the icon in pixels",
|
|
@@ -1005,6 +1012,7 @@ export const Default: Story = {
|
|
|
1005
1012
|
width: 24,
|
|
1006
1013
|
height: 24,
|
|
1007
1014
|
className: "text-blue-400",
|
|
1015
|
+
withAccessibility: true,
|
|
1008
1016
|
},
|
|
1009
1017
|
parameters: storyParameters,
|
|
1010
1018
|
render: (args) => (
|