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
|
@@ -203,16 +203,19 @@ function MyComponent() {
|
|
|
203
203
|
</tr>
|
|
204
204
|
</thead>
|
|
205
205
|
<tbody>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
-
|
|
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">40</td>
|
|
214
217
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
215
|
-
|
|
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">
|
|
@@ -858,6 +861,10 @@ function CustomAiAvatarIcon({ label = "AI Assistant", ...props }) {
|
|
|
858
861
|
control: { type: "range", min: 16, max: 120, step: 4 },
|
|
859
862
|
description: "Width of the icon in pixels",
|
|
860
863
|
},
|
|
864
|
+
withAccessibility: {
|
|
865
|
+
control: "boolean",
|
|
866
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
867
|
+
},
|
|
861
868
|
height: {
|
|
862
869
|
control: { type: "range", min: 16, max: 120, step: 4 },
|
|
863
870
|
description: "Height of the icon in pixels",
|
|
@@ -888,6 +895,7 @@ export const Default: Story = {
|
|
|
888
895
|
width: 40,
|
|
889
896
|
height: 40,
|
|
890
897
|
className: "",
|
|
898
|
+
withAccessibility: true,
|
|
891
899
|
},
|
|
892
900
|
parameters: storyParameters,
|
|
893
901
|
render: (args) => (
|
|
@@ -7,17 +7,22 @@ type AiAvatarIconProps = React.JSX.IntrinsicAttributes &
|
|
|
7
7
|
circle?: string
|
|
8
8
|
path?: string
|
|
9
9
|
}
|
|
10
|
+
withAccessibility?: boolean
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
export const AiAvatarIcon = ({
|
|
13
|
-
|
|
13
|
+
export const AiAvatarIcon = ({
|
|
14
|
+
classes = {},
|
|
15
|
+
withAccessibility = true,
|
|
16
|
+
...svgProps
|
|
17
|
+
}: AiAvatarIconProps) => {
|
|
18
|
+
const svg = (
|
|
14
19
|
<svg
|
|
15
20
|
width="40"
|
|
16
21
|
height="40"
|
|
17
22
|
viewBox="0 0 40 40"
|
|
18
23
|
fill="none"
|
|
19
24
|
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
-
{...
|
|
25
|
+
{...svgProps}
|
|
21
26
|
>
|
|
22
27
|
<circle
|
|
23
28
|
cx="20"
|
|
@@ -32,5 +37,11 @@ export const AiAvatarIcon = ({ classes = {}, ...props }: AiAvatarIconProps) => (
|
|
|
32
37
|
className={classes?.path}
|
|
33
38
|
/>
|
|
34
39
|
</svg>
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
if (withAccessibility) {
|
|
43
|
+
return <AccessibleIcon label="Ai Avatar icon">{svg}</AccessibleIcon>
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return svg
|
|
47
|
+
}
|
|
@@ -201,16 +201,19 @@ function MyComponent() {
|
|
|
201
201
|
</tr>
|
|
202
202
|
</thead>
|
|
203
203
|
<tbody>
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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">
|
|
@@ -259,7 +262,7 @@ function MyComponent() {
|
|
|
259
262
|
boolean
|
|
260
263
|
</td>
|
|
261
264
|
<td className="px-6 py-4 text-sm !text-white/50">
|
|
262
|
-
|
|
265
|
+
true
|
|
263
266
|
</td>
|
|
264
267
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
265
268
|
Whether to use filled variant
|
|
@@ -766,6 +769,10 @@ function CustomAlertIcon({ label = "Alert", ...props }) {
|
|
|
766
769
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
767
770
|
description: "Width of the icon in pixels",
|
|
768
771
|
},
|
|
772
|
+
withAccessibility: {
|
|
773
|
+
control: "boolean",
|
|
774
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
775
|
+
},
|
|
769
776
|
height: {
|
|
770
777
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
771
778
|
description: "Height of the icon in pixels",
|
|
@@ -804,6 +811,7 @@ export const Default: Story = {
|
|
|
804
811
|
width: 24,
|
|
805
812
|
height: 24,
|
|
806
813
|
className: "text-orange-400",
|
|
814
|
+
withAccessibility: true,
|
|
807
815
|
},
|
|
808
816
|
parameters: storyParameters,
|
|
809
817
|
render: (args) => (
|
|
@@ -4,18 +4,23 @@ import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
|
4
4
|
type AlertIconProps = React.JSX.IntrinsicAttributes &
|
|
5
5
|
React.SVGProps<SVGSVGElement> & {
|
|
6
6
|
filled?: boolean
|
|
7
|
+
withAccessibility?: boolean
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
export const AlertIcon = ({
|
|
10
|
+
export const AlertIcon = ({
|
|
11
|
+
filled = false,
|
|
12
|
+
withAccessibility = true,
|
|
13
|
+
...svgProps
|
|
14
|
+
}: AlertIconProps) => {
|
|
10
15
|
if (filled) {
|
|
11
|
-
|
|
16
|
+
const filledSvg = (
|
|
12
17
|
<svg
|
|
13
18
|
width="16"
|
|
14
19
|
height="16"
|
|
15
20
|
viewBox="0 0 16 16"
|
|
16
21
|
fill="none"
|
|
17
22
|
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
-
{...
|
|
23
|
+
{...svgProps}
|
|
19
24
|
>
|
|
20
25
|
<path
|
|
21
26
|
d="M24.5 19.5v8m0 4.98v.02m0-26-19 32h38z"
|
|
@@ -25,24 +30,34 @@ export const AlertIcon = ({ filled = false, ...props }: AlertIconProps) => {
|
|
|
25
30
|
/>
|
|
26
31
|
</svg>
|
|
27
32
|
)
|
|
33
|
+
|
|
34
|
+
if (withAccessibility) {
|
|
35
|
+
return <AccessibleIcon label="Alert icon">{filledSvg}</AccessibleIcon>
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return filledSvg
|
|
28
39
|
}
|
|
29
40
|
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</svg>
|
|
46
|
-
</AccessibleIcon>
|
|
41
|
+
const svg = (
|
|
42
|
+
<svg
|
|
43
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
+
width="16"
|
|
45
|
+
height="16"
|
|
46
|
+
viewBox="0 0 16 16"
|
|
47
|
+
fill="currentColor"
|
|
48
|
+
{...svgProps}
|
|
49
|
+
>
|
|
50
|
+
<path
|
|
51
|
+
fillRule="evenodd"
|
|
52
|
+
clipRule="evenodd"
|
|
53
|
+
d="M0.789062 13.3335L8.00074 1.1875L15.2125 13.3335H0.789062ZM8.5 6.00016V9.6668H7.5V6.00016H8.5ZM7.5 10.3335H8.5V11.3335H7.5V10.3335Z"
|
|
54
|
+
/>
|
|
55
|
+
</svg>
|
|
47
56
|
)
|
|
57
|
+
|
|
58
|
+
if (withAccessibility) {
|
|
59
|
+
return <AccessibleIcon label="Alert icon">{svg}</AccessibleIcon>
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return svg
|
|
48
63
|
}
|
|
@@ -201,16 +201,19 @@ function DropdownButton() {
|
|
|
201
201
|
</tr>
|
|
202
202
|
</thead>
|
|
203
203
|
<tbody>
|
|
204
|
-
|
|
204
|
+
{" "}
|
|
205
|
+
<tr className="!bg-black/10">
|
|
205
206
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
206
|
-
|
|
207
|
+
withAccessibility
|
|
207
208
|
</td>
|
|
208
209
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
209
|
-
|
|
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
|
-
|
|
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">
|
|
@@ -781,6 +784,10 @@ function AccessibleDropdown() {
|
|
|
781
784
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
782
785
|
description: "Width of the icon in pixels",
|
|
783
786
|
},
|
|
787
|
+
withAccessibility: {
|
|
788
|
+
control: "boolean",
|
|
789
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
790
|
+
},
|
|
784
791
|
height: {
|
|
785
792
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
786
793
|
description: "Height of the icon in pixels",
|
|
@@ -819,6 +826,7 @@ export const Default: Story = {
|
|
|
819
826
|
width: 24,
|
|
820
827
|
height: 24,
|
|
821
828
|
className: "text-blue-400",
|
|
829
|
+
withAccessibility: true,
|
|
822
830
|
},
|
|
823
831
|
parameters: storyParameters,
|
|
824
832
|
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 AngleDownIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const AngleDownIcon = (props: AngleDownIconProps) => {
|
|
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"
|
|
11
15
|
height="24"
|
|
12
16
|
fill="none"
|
|
13
17
|
viewBox="0 0 24 24"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<path
|
|
17
21
|
stroke="currentColor"
|
|
@@ -21,5 +25,11 @@ export const AngleDownIcon = (
|
|
|
21
25
|
d="m19 9-7 7-7-7"
|
|
22
26
|
/>
|
|
23
27
|
</svg>
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
if (withAccessibility) {
|
|
31
|
+
return <AccessibleIcon label="Arrow Down icon">{svg}</AccessibleIcon>
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return svg
|
|
35
|
+
}
|
|
@@ -202,16 +202,19 @@ function LoginPage() {
|
|
|
202
202
|
</tr>
|
|
203
203
|
</thead>
|
|
204
204
|
<tbody>
|
|
205
|
-
|
|
205
|
+
{" "}
|
|
206
|
+
<tr className="!bg-black/10">
|
|
206
207
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
207
|
-
|
|
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">20</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">
|
|
@@ -738,6 +741,10 @@ function CustomAppleIcon({ label = "Apple", ...props }) {
|
|
|
738
741
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
739
742
|
description: "Width of the icon in pixels",
|
|
740
743
|
},
|
|
744
|
+
withAccessibility: {
|
|
745
|
+
control: "boolean",
|
|
746
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
747
|
+
},
|
|
741
748
|
height: {
|
|
742
749
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
743
750
|
description: "Height of the icon in pixels",
|
|
@@ -772,6 +779,7 @@ export const Default: Story = {
|
|
|
772
779
|
width: 20,
|
|
773
780
|
height: 20,
|
|
774
781
|
className: "text-white",
|
|
782
|
+
withAccessibility: true,
|
|
775
783
|
},
|
|
776
784
|
parameters: storyParameters,
|
|
777
785
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface AppleLogoIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const AppleLogoIcon = (props: AppleLogoIconProps) => {
|
|
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
|
+
{...svgProps}
|
|
13
17
|
>
|
|
14
18
|
<path
|
|
15
19
|
d="M16.978 7.053c-2.84 1.756-2.541 5.845.522 7.294-.248.563-.447 1.151-.77 1.673-.48.778-1.01 1.548-1.598 2.251-.728.861-1.672 1.118-2.757.688-.14-.058-.29-.1-.422-.166-1.068-.48-2.128-.447-3.212-.008-1.615.662-2.327.488-3.452-.828-1.723-2.004-2.675-4.347-2.782-6.98-.075-1.895.455-3.617 2.053-4.826 1.15-.87 2.434-1.118 3.825-.62 2.053.736 1.416.695 3.46-.01 1.814-.628 3.42-.272 4.794 1.077.058.058.116.124.166.19.05.083.107.158.173.265z"
|
|
@@ -22,5 +26,11 @@ export const AppleLogoIcon = (
|
|
|
22
26
|
fillOpacity=".99"
|
|
23
27
|
/>
|
|
24
28
|
</svg>
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
if (withAccessibility) {
|
|
32
|
+
return <AccessibleIcon label="Apple logo">{svg}</AccessibleIcon>
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return svg
|
|
36
|
+
}
|
|
@@ -201,16 +201,19 @@ function BackButton() {
|
|
|
201
201
|
</tr>
|
|
202
202
|
</thead>
|
|
203
203
|
<tbody>
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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">
|
|
@@ -820,6 +823,10 @@ function AccessibleBackButton({ onBack, children }) {
|
|
|
820
823
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
821
824
|
description: "Width of the icon in pixels",
|
|
822
825
|
},
|
|
826
|
+
withAccessibility: {
|
|
827
|
+
control: "boolean",
|
|
828
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
829
|
+
},
|
|
823
830
|
height: {
|
|
824
831
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
825
832
|
description: "Height of the icon in pixels",
|
|
@@ -862,6 +869,7 @@ export const Default: Story = {
|
|
|
862
869
|
width: 24,
|
|
863
870
|
height: 24,
|
|
864
871
|
className: "text-emerald-400",
|
|
872
|
+
withAccessibility: true,
|
|
865
873
|
},
|
|
866
874
|
parameters: storyParameters,
|
|
867
875
|
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 ArrowBoxLeftIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ArrowBoxLeftIcon = (props: ArrowBoxLeftIconProps) => {
|
|
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="M11.25 20.25H3.75L3.75 3.75L11.25 3.75M9 12L19.5 12M15.75 16.5L20.25 12L15.75 7.5"
|
|
@@ -20,5 +24,11 @@ export const ArrowBoxLeftIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Arrow Box Left icon">{svg}</AccessibleIcon>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return svg
|
|
34
|
+
}
|
|
@@ -203,16 +203,19 @@ function MyComponent() {
|
|
|
203
203
|
</tr>
|
|
204
204
|
</thead>
|
|
205
205
|
<tbody>
|
|
206
|
-
|
|
206
|
+
{" "}
|
|
207
|
+
<tr className="!bg-black/10">
|
|
207
208
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
208
|
-
|
|
209
|
+
withAccessibility
|
|
209
210
|
</td>
|
|
210
211
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
-
|
|
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">18</td>
|
|
214
217
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
215
|
-
|
|
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">
|
|
@@ -764,6 +767,10 @@ function CustomArrowIcon({ label = "Navigate back", ...props }) {
|
|
|
764
767
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
765
768
|
description: "Width of the icon in pixels",
|
|
766
769
|
},
|
|
770
|
+
withAccessibility: {
|
|
771
|
+
control: "boolean",
|
|
772
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
773
|
+
},
|
|
767
774
|
height: {
|
|
768
775
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
769
776
|
description: "Height of the icon in pixels",
|
|
@@ -802,6 +809,7 @@ export const Default: Story = {
|
|
|
802
809
|
width: 24,
|
|
803
810
|
height: 24,
|
|
804
811
|
className: "text-blue-400",
|
|
812
|
+
withAccessibility: true,
|
|
805
813
|
},
|
|
806
814
|
parameters: storyParameters,
|
|
807
815
|
render: (args) => (
|
|
@@ -1,17 +1,22 @@
|
|
|
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 ArrowCornerUpLeftIconProps
|
|
5
|
+
extends React.SVGProps<SVGSVGElement> {
|
|
6
|
+
withAccessibility?: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const ArrowCornerUpLeftIcon = (props: ArrowCornerUpLeftIconProps) => {
|
|
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="18"
|
|
11
16
|
height="18"
|
|
12
17
|
viewBox="0 0 18 18"
|
|
13
18
|
fill="none"
|
|
14
|
-
{...
|
|
19
|
+
{...svgProps}
|
|
15
20
|
>
|
|
16
21
|
<path
|
|
17
22
|
d="M15.1875 14.25V6.375H3.5625M5.8125 9.375L2.8125 6.375L5.8125 3.375"
|
|
@@ -20,5 +25,13 @@ export const ArrowCornerUpLeftIcon = (
|
|
|
20
25
|
strokeLinecap="square"
|
|
21
26
|
/>
|
|
22
27
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
if (withAccessibility) {
|
|
31
|
+
return (
|
|
32
|
+
<AccessibleIcon label="Arrow Corner Up Left icon">{svg}</AccessibleIcon>
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return svg
|
|
37
|
+
}
|
|
@@ -208,16 +208,19 @@ function MyComponent() {
|
|
|
208
208
|
</tr>
|
|
209
209
|
</thead>
|
|
210
210
|
<tbody>
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
211
|
+
{" "}
|
|
212
|
+
<tr className="!bg-black/10">
|
|
213
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
214
|
+
withAccessibility
|
|
214
215
|
</td>
|
|
215
216
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
216
|
-
|
|
217
|
+
boolean
|
|
218
|
+
</td>
|
|
219
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
220
|
+
true
|
|
217
221
|
</td>
|
|
218
|
-
<td className="px-6 py-4 text-sm !text-white/50">18</td>
|
|
219
222
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
220
|
-
|
|
223
|
+
Whether to wrap the icon with accessibility feature
|
|
221
224
|
</td>
|
|
222
225
|
</tr>
|
|
223
226
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -802,6 +805,10 @@ function CustomArrowIcon({ label = "Navigate forward", ...props }) {
|
|
|
802
805
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
803
806
|
description: "Width of the icon in pixels",
|
|
804
807
|
},
|
|
808
|
+
withAccessibility: {
|
|
809
|
+
control: "boolean",
|
|
810
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
811
|
+
},
|
|
805
812
|
height: {
|
|
806
813
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
807
814
|
description: "Height of the icon in pixels",
|
|
@@ -840,6 +847,7 @@ export const Default: Story = {
|
|
|
840
847
|
width: 24,
|
|
841
848
|
height: 24,
|
|
842
849
|
className: "text-indigo-400",
|
|
850
|
+
withAccessibility: true,
|
|
843
851
|
},
|
|
844
852
|
parameters: storyParameters,
|
|
845
853
|
render: (args) => (
|
|
@@ -1,17 +1,22 @@
|
|
|
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 ArrowCornerUpRightIconProps
|
|
5
|
+
extends React.SVGProps<SVGSVGElement> {
|
|
6
|
+
withAccessibility?: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const ArrowCornerUpRightIcon = (props: ArrowCornerUpRightIconProps) => {
|
|
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="18"
|
|
11
16
|
height="18"
|
|
12
17
|
viewBox="0 0 18 18"
|
|
13
18
|
fill="none"
|
|
14
|
-
{...
|
|
19
|
+
{...svgProps}
|
|
15
20
|
>
|
|
16
21
|
<path
|
|
17
22
|
d="M2.8125 14.25V6.375H14.4375M12.1875 9.375L15.1875 6.375L12.1875 3.375"
|
|
@@ -20,5 +25,13 @@ export const ArrowCornerUpRightIcon = (
|
|
|
20
25
|
strokeLinecap="square"
|
|
21
26
|
/>
|
|
22
27
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
if (withAccessibility) {
|
|
31
|
+
return (
|
|
32
|
+
<AccessibleIcon label="Arrow Corner Up Right icon">{svg}</AccessibleIcon>
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return svg
|
|
37
|
+
}
|