aural-ui 2.1.13 → 2.1.16
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/components/aspect-ratio/AspectRatio.stories.tsx +1 -1
- package/dist/components/avatar/Avatar.stories.tsx +1 -1
- package/dist/components/badge/Badge.stories.tsx +1 -1
- package/dist/components/banner/Banner.stories.tsx +1 -1
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +1 -1
- package/dist/components/breadcrumb/index.tsx +3 -2
- package/dist/components/button/Button.stories.tsx +1 -1
- package/dist/components/card/Card.stories.tsx +1 -1
- package/dist/components/char-count/CharCount.stories.tsx +1 -1
- package/dist/components/checkbox/Checkbox.stories.tsx +1 -1
- package/dist/components/chip/Chip.stories.tsx +1 -1
- package/dist/components/chip/index.tsx +1 -2
- package/dist/components/circular-loader/CircularLoader.stories.tsx +1 -1
- package/dist/components/collapsible/Collapsible.stories.tsx +1 -1
- package/dist/components/command/Command.stories.tsx +1 -1
- package/dist/components/dialog/Dialog.stories.tsx +1 -1
- package/dist/components/dialog/index.tsx +2 -1
- package/dist/components/divider/Divider.stories.tsx +1 -1
- package/dist/components/divider/index.tsx +3 -2
- package/dist/components/dot-loader/DotLoader.stories.tsx +1 -1
- package/dist/components/drawer/Drawer.stories.tsx +1 -1
- package/dist/components/drawer/index.tsx +2 -1
- package/dist/components/dropdown/Dropdown.stories.tsx +1 -1
- package/dist/components/form/Form.stories.tsx +1 -1
- package/dist/components/helper-text/HelperText.stories.tsx +1 -1
- package/dist/components/hover-card/HoverCard.stories.tsx +1 -1
- package/dist/components/icon-button/IconButton.stories.tsx +1 -1
- package/dist/components/icon-button/index.tsx +2 -1
- package/dist/components/if-else/if-else.stories.tsx +1 -1
- package/dist/components/input/Input.stories.tsx +1 -1
- package/dist/components/input/index.tsx +3 -4
- package/dist/components/label/Label.stories.tsx +1 -1
- package/dist/components/list/List.stories.tsx +1 -1
- package/dist/components/list/index.tsx +16 -11
- package/dist/components/marquee/Marquee.stories.tsx +1 -1
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +1 -1
- package/dist/components/overlay/Overlay.stories.tsx +1 -1
- package/dist/components/overlay/index.tsx +2 -1
- package/dist/components/pagination/Pagination.stories.tsx +1 -1
- package/dist/components/pagination/index.tsx +5 -10
- package/dist/components/popover/Popover.stories.tsx +1 -1
- package/dist/components/radio/Radio.stories.tsx +1 -1
- package/dist/components/resizable/Resizable.stories.tsx +1 -1
- package/dist/components/scroll-area/ScrollArea.stories.tsx +1 -1
- package/dist/components/search/Search.stories.tsx +1 -1
- package/dist/components/select/Select.stories.tsx +1 -1
- package/dist/components/sheet/Sheet.stories.tsx +1 -1
- package/dist/components/sheet/index.tsx +2 -1
- package/dist/components/skelton/Skelton.stories.tsx +1 -1
- package/dist/components/slider/Slider.stories.tsx +1 -1
- package/dist/components/slider/index.tsx +3 -2
- package/dist/components/stepper/Stepper.stories.tsx +1 -1
- package/dist/components/stepper/index.tsx +1 -2
- package/dist/components/switch/Switch.stories.tsx +1 -1
- package/dist/components/switch-case/SwitchCase.stories.tsx +1 -1
- package/dist/components/table/Table.stories.tsx +1 -1
- package/dist/components/tabs/Tabs.stories.tsx +2 -4
- package/dist/components/tabs/index.tsx +3 -2
- package/dist/components/tag/Tag.stories.tsx +1 -1
- package/dist/components/textarea/TextArea.stories.tsx +1 -1
- package/dist/components/textarea/index.tsx +3 -4
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +1 -1
- package/dist/components/toast/Toast.stories.tsx +1 -1
- package/dist/components/toggle/Toggle.stories.tsx +1 -1
- package/dist/components/tooltip/Tooltip.stories.tsx +1 -1
- package/dist/components/tooltip/index.tsx +3 -2
- package/dist/components/typography/Typography.stories.tsx +1 -1
- package/dist/components/typography/index.tsx +2 -1
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +1 -1
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +1 -1
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +1 -1
- package/dist/icons/Icons.stories.tsx +1 -1
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +15 -7
- package/dist/icons/ai-avatar-icon/index.tsx +16 -5
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +16 -8
- package/dist/icons/alert-icon/index.tsx +35 -20
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +14 -6
- package/dist/icons/angle-down-icon/index.tsx +17 -7
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +14 -6
- package/dist/icons/apple-logo-icon/index.tsx +17 -7
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +15 -7
- package/dist/icons/arrow-box-left-icon/index.tsx +17 -7
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +14 -6
- package/dist/icons/arrow-corner-up-left-icon/index.tsx +19 -7
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +15 -7
- package/dist/icons/arrow-corner-up-right-icon/index.tsx +19 -7
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +14 -6
- package/dist/icons/arrow-left-icon/index.tsx +16 -8
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +15 -7
- package/dist/icons/arrow-right-icon/index.tsx +16 -8
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +15 -7
- package/dist/icons/arrow-right-up-icon/index.tsx +17 -7
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +17 -9
- package/dist/icons/art-board-icon/index.tsx +17 -7
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +15 -7
- package/dist/icons/audio-bar-icon/index.tsx +17 -7
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +15 -7
- package/dist/icons/backward-ten-seconds-icon/index.tsx +19 -7
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +15 -7
- package/dist/icons/bubble-check-icon/index.tsx +17 -7
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +15 -7
- package/dist/icons/bubble-crossed-icon/index.tsx +17 -7
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +15 -7
- package/dist/icons/bubble-sparkle-icon/index.tsx +17 -7
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +15 -7
- package/dist/icons/camera-icon/index.tsx +17 -7
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +14 -6
- package/dist/icons/capital-a-letter-icon/index.tsx +35 -27
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +14 -6
- package/dist/icons/chevron-double-left-icon/index.tsx +18 -8
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +15 -7
- package/dist/icons/chevron-double-right-icon/index.tsx +18 -8
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +14 -6
- package/dist/icons/chevron-down-icon/index.tsx +16 -8
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +15 -7
- package/dist/icons/chevron-left-icon/index.tsx +16 -8
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +15 -7
- package/dist/icons/chevron-right-icon/index.tsx +16 -8
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +15 -7
- package/dist/icons/chevron-up-icon/index.tsx +16 -8
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +15 -7
- package/dist/icons/circle-tick-icon/index.tsx +17 -7
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +15 -7
- package/dist/icons/coin-icon/index.tsx +17 -7
- package/dist/icons/coin-icon-toons/CoinIconToons.stories.tsx +1 -1
- package/dist/icons/command-icon/CommandIcon.stories.tsx +14 -6
- package/dist/icons/command-icon/index.tsx +17 -7
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +15 -7
- package/dist/icons/copy-icon/index.tsx +17 -7
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +15 -7
- package/dist/icons/cross-circle-icon/index.tsx +17 -7
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +15 -7
- package/dist/icons/cross-icon/index.tsx +17 -7
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +15 -7
- package/dist/icons/download-icon/index.tsx +17 -7
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +14 -6
- package/dist/icons/edit-big-icon/index.tsx +17 -7
- package/dist/icons/email-icon/EmailIcon.stories.tsx +14 -6
- package/dist/icons/email-icon/index.tsx +17 -7
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +15 -7
- package/dist/icons/expand-icon/index.tsx +17 -7
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +14 -7
- package/dist/icons/eye-close-icon/index.tsx +17 -7
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +14 -6
- package/dist/icons/eye-open-icon/index.tsx +17 -7
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +15 -7
- package/dist/icons/feature-shine-icon/index.tsx +17 -5
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +14 -6
- package/dist/icons/file-chart-icon/index.tsx +17 -7
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +16 -8
- package/dist/icons/file-text-icon/index.tsx +17 -7
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +15 -7
- package/dist/icons/filter-bar-row-icon/index.tsx +17 -7
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +15 -7
- package/dist/icons/forward-ten-seconds-icon/index.tsx +19 -7
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +15 -7
- package/dist/icons/git-branch-icon/index.tsx +17 -7
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +15 -7
- 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 +15 -7
- package/dist/icons/google-logo-icon/index.tsx +17 -7
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +15 -7
- package/dist/icons/grip-vertical-icon/index.tsx +17 -7
- package/dist/icons/head-icon/HeadIcon.stories.tsx +14 -6
- package/dist/icons/head-icon/index.tsx +29 -21
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +15 -7
- package/dist/icons/heart-icon/index.tsx +17 -7
- package/dist/icons/image-icon/ImageIcon.stories.tsx +14 -6
- package/dist/icons/image-icon/index.tsx +17 -7
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +15 -7
- package/dist/icons/import-folder-icon/index.tsx +17 -7
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +15 -7
- package/dist/icons/import-left-arrow-folder-icon/index.tsx +22 -6
- package/dist/icons/index.ts +1 -0
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +15 -7
- package/dist/icons/indian-flag-icon/index.tsx +17 -7
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +13 -7
- package/dist/icons/instagram-icon/index.tsx +17 -7
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +14 -6
- package/dist/icons/layout-column-icon/index.tsx +17 -7
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +15 -7
- package/dist/icons/layout-left-icon/index.tsx +17 -7
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +15 -7
- package/dist/icons/layout-right-icon/index.tsx +17 -7
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +15 -7
- package/dist/icons/light-bulb-simple-icon/index.tsx +17 -7
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +12 -6
- package/dist/icons/linked-in-icon/index.tsx +17 -7
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +15 -7
- package/dist/icons/magic-book-icon/index.tsx +17 -7
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +15 -7
- package/dist/icons/maintenance-icon/index.tsx +17 -7
- package/dist/icons/message-icon/MessageIcon.stories.tsx +16 -8
- package/dist/icons/message-icon/index.tsx +17 -7
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +15 -7
- package/dist/icons/minimize-icon/index.tsx +17 -7
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +16 -8
- package/dist/icons/moon-icon/index.tsx +24 -16
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +15 -7
- package/dist/icons/move-horizontal-icon/index.tsx +17 -7
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +14 -6
- package/dist/icons/move-vertical-icon/index.tsx +17 -7
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +15 -7
- package/dist/icons/musical-note-icon/index.tsx +28 -20
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +15 -7
- package/dist/icons/notepad-icon/index.tsx +17 -7
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +15 -7
- package/dist/icons/notes-icon/index.tsx +17 -7
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +15 -7
- package/dist/icons/page-search-icon/index.tsx +17 -7
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +15 -7
- package/dist/icons/paint-roll-icon/index.tsx +17 -7
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +15 -7
- package/dist/icons/paper-plane-icon/index.tsx +17 -7
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +15 -7
- package/dist/icons/pause-icon/index.tsx +17 -7
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +15 -7
- package/dist/icons/pencil-icon/index.tsx +17 -7
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +15 -7
- package/dist/icons/phone-icon/index.tsx +29 -21
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +15 -7
- package/dist/icons/plus-icon/index.tsx +17 -7
- package/dist/icons/search-icon/SearchIcon.stories.tsx +14 -6
- package/dist/icons/search-icon/index.tsx +17 -7
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +14 -6
- package/dist/icons/setting-icon/index.tsx +33 -25
- package/dist/icons/share-icon/ShareIcon.stories.tsx +14 -6
- package/dist/icons/share-icon/index.tsx +17 -7
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +15 -7
- package/dist/icons/shield-icon/index.tsx +24 -16
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +15 -7
- package/dist/icons/site-logo-icon/index.tsx +17 -5
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +15 -7
- package/dist/icons/skip-backward-icon/index.tsx +17 -7
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +14 -6
- package/dist/icons/skip-forward-icon/index.tsx +17 -7
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +15 -7
- package/dist/icons/sparkles-soft-icon/index.tsx +17 -7
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +1 -1
- package/dist/icons/spinner-gradient-icon/index.tsx +17 -7
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +1 -1
- package/dist/icons/spinner-solid-icon/index.tsx +17 -7
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +15 -7
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +20 -6
- package/dist/icons/star-icon/StarIcon.stories.tsx +15 -7
- package/dist/icons/star-icon/index.tsx +17 -7
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +15 -7
- package/dist/icons/store-coin-icon/index.tsx +16 -8
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +14 -6
- package/dist/icons/suggestion-icon/index.tsx +17 -7
- package/dist/icons/sun-icon/SunIcon.stories.tsx +14 -6
- package/dist/icons/sun-icon/index.tsx +26 -18
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +14 -6
- package/dist/icons/text-color-icon/index.tsx +17 -7
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +15 -7
- package/dist/icons/text-indicator-icon/index.tsx +17 -7
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +13 -7
- package/dist/icons/threads-icon/index.tsx +17 -7
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +15 -7
- package/dist/icons/tick-circle-icon/index.tsx +17 -7
- package/dist/icons/tick-icon/TickIcon.stories.tsx +15 -7
- package/dist/icons/tick-icon/index.tsx +17 -7
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +15 -7
- package/dist/icons/trash-icon/index.tsx +17 -7
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +13 -7
- package/dist/icons/twitter-x-icon/index.tsx +17 -7
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +14 -6
- package/dist/icons/upload-icon/index.tsx +17 -7
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +14 -6
- package/dist/icons/vertical-menu-icon/index.tsx +17 -7
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +15 -7
- package/dist/icons/video-play-list-icon/index.tsx +17 -7
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +15 -7
- package/dist/icons/voice-playing-icon/index.tsx +17 -7
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +15 -7
- package/dist/icons/volume-full-icon/index.tsx +17 -7
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +15 -7
- package/dist/icons/volume-half-icon/index.tsx +17 -7
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +15 -7
- package/dist/icons/volume-off-icon/index.tsx +17 -7
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +15 -7
- package/dist/icons/warning-icon/index.tsx +17 -7
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +15 -7
- package/dist/icons/youtube-icon/index.tsx +17 -7
- package/dist/index.cjs +222 -0
- package/dist/index.js +79 -79
- package/package.json +14 -14
- /package/dist/{index.d.ts → index.d.cts} +0 -0
|
@@ -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 SkipBackwardIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const SkipBackwardIcon = (props: SkipBackwardIconProps) => {
|
|
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="37"
|
|
@@ -14,7 +18,7 @@ export const SkipBackwardIcon = (
|
|
|
14
18
|
stroke="currentColor"
|
|
15
19
|
strokeWidth="1.5"
|
|
16
20
|
strokeLinecap="round"
|
|
17
|
-
{...
|
|
21
|
+
{...svgProps}
|
|
18
22
|
>
|
|
19
23
|
<path
|
|
20
24
|
d="M30.8003 5.86964V30.1299L11.4307 17.9997L30.8003 5.86964Z"
|
|
@@ -25,5 +29,11 @@ export const SkipBackwardIcon = (
|
|
|
25
29
|
fill="currentColor"
|
|
26
30
|
/>
|
|
27
31
|
</svg>
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
if (withAccessibility) {
|
|
35
|
+
return <AccessibleIcon label="Skip backward icon">{svg}</AccessibleIcon>
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return svg
|
|
39
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
4
|
import { SkipForwardIcon } from "."
|
|
5
5
|
|
|
@@ -201,16 +201,19 @@ function MediaPlayer() {
|
|
|
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">36</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">
|
|
@@ -825,6 +828,10 @@ function MediaPlayer() {
|
|
|
825
828
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
826
829
|
description: "Width of the icon in pixels",
|
|
827
830
|
},
|
|
831
|
+
withAccessibility: {
|
|
832
|
+
control: "boolean",
|
|
833
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
834
|
+
},
|
|
828
835
|
height: {
|
|
829
836
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
830
837
|
description: "Height of the icon in pixels",
|
|
@@ -865,6 +872,7 @@ const storyParameters = {
|
|
|
865
872
|
export const Default: Story = {
|
|
866
873
|
args: {
|
|
867
874
|
className: "h-8 w-8 text-blue-400",
|
|
875
|
+
withAccessibility: true,
|
|
868
876
|
},
|
|
869
877
|
parameters: storyParameters,
|
|
870
878
|
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 SkipForwardIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const SkipForwardIcon = (props: SkipForwardIconProps) => {
|
|
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="36"
|
|
@@ -14,7 +18,7 @@ export const SkipForwardIcon = (
|
|
|
14
18
|
stroke="currentColor"
|
|
15
19
|
strokeWidth="1.5"
|
|
16
20
|
strokeLinecap="round"
|
|
17
|
-
{...
|
|
21
|
+
{...svgProps}
|
|
18
22
|
>
|
|
19
23
|
<path
|
|
20
24
|
d="M6 5.86964V30.1299L25.3696 17.9997L6 5.86964Z"
|
|
@@ -25,5 +29,11 @@ export const SkipForwardIcon = (
|
|
|
25
29
|
fill="currentColor"
|
|
26
30
|
/>
|
|
27
31
|
</svg>
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
if (withAccessibility) {
|
|
35
|
+
return <AccessibleIcon label="Skip forward icon">{svg}</AccessibleIcon>
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return svg
|
|
39
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
4
|
import { SparklesSoftIcon } from "."
|
|
5
5
|
|
|
@@ -200,16 +200,19 @@ function MyComponent() {
|
|
|
200
200
|
</tr>
|
|
201
201
|
</thead>
|
|
202
202
|
<tbody>
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
{" "}
|
|
204
|
+
<tr className="!bg-black/10">
|
|
205
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
206
|
+
withAccessibility
|
|
206
207
|
</td>
|
|
207
208
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
208
|
-
|
|
209
|
+
boolean
|
|
210
|
+
</td>
|
|
211
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
212
|
+
true
|
|
209
213
|
</td>
|
|
210
|
-
<td className="px-6 py-4 text-sm !text-white/50">20</td>
|
|
211
214
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
212
|
-
|
|
215
|
+
Whether to wrap the icon with accessibility feature
|
|
213
216
|
</td>
|
|
214
217
|
</tr>
|
|
215
218
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -793,6 +796,10 @@ function CustomSparklesIcon({ label = "Sparkles", ...props }) {
|
|
|
793
796
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
794
797
|
description: "Width of the icon in pixels",
|
|
795
798
|
},
|
|
799
|
+
withAccessibility: {
|
|
800
|
+
control: "boolean",
|
|
801
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
802
|
+
},
|
|
796
803
|
height: {
|
|
797
804
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
798
805
|
description: "Height of the icon in pixels",
|
|
@@ -835,6 +842,7 @@ export const Default: Story = {
|
|
|
835
842
|
width: 24,
|
|
836
843
|
height: 24,
|
|
837
844
|
className: "text-yellow-400",
|
|
845
|
+
withAccessibility: true,
|
|
838
846
|
},
|
|
839
847
|
parameters: storyParameters,
|
|
840
848
|
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 SparklesSoftIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const SparklesSoftIcon = (props: SparklesSoftIconProps) => {
|
|
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="20"
|
|
11
15
|
height="20"
|
|
12
16
|
viewBox="0 0 20 20"
|
|
13
17
|
fill="none"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<path
|
|
17
21
|
fillRule="evenodd"
|
|
@@ -25,5 +29,11 @@ export const SparklesSoftIcon = (
|
|
|
25
29
|
fill="currentColor"
|
|
26
30
|
/>
|
|
27
31
|
</svg>
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
if (withAccessibility) {
|
|
35
|
+
return <AccessibleIcon label="Sparkles Soft Icon">{svg}</AccessibleIcon>
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return svg
|
|
39
|
+
}
|
|
@@ -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 SpinnerGradientIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const SpinnerGradientIcon = (props: SpinnerGradientIconProps) => {
|
|
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="54"
|
|
11
15
|
height="54"
|
|
12
16
|
viewBox="0 0 54 54"
|
|
13
17
|
fill="none"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<g
|
|
17
21
|
clipPath="url(#paint0_angular_2078_22297_clip_path)"
|
|
@@ -49,5 +53,11 @@ export const SpinnerGradientIcon = (
|
|
|
49
53
|
</clipPath>
|
|
50
54
|
</defs>
|
|
51
55
|
</svg>
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
if (withAccessibility) {
|
|
59
|
+
return <AccessibleIcon label="Spinner Gradient Icon">{svg}</AccessibleIcon>
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return svg
|
|
63
|
+
}
|
|
@@ -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 SpinnerSolidIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const SpinnerSolidIcon = (props: SpinnerSolidIconProps) => {
|
|
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="54"
|
|
11
15
|
height="54"
|
|
12
16
|
viewBox="0 0 54 54"
|
|
13
17
|
fill="none"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<g
|
|
17
21
|
clipPath="url(#paint0_angular_2078_22300_clip_path)"
|
|
@@ -55,5 +59,11 @@ export const SpinnerSolidIcon = (
|
|
|
55
59
|
</clipPath>
|
|
56
60
|
</defs>
|
|
57
61
|
</svg>
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
if (withAccessibility) {
|
|
65
|
+
return <AccessibleIcon label="Spinner Solid Icon">{svg}</AccessibleIcon>
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return svg
|
|
69
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
4
|
import { SpinnerSolidNeutralIcon } from "."
|
|
5
5
|
import { SpinnerSolidIcon } from "../spinner-solid-icon"
|
|
@@ -233,16 +233,19 @@ const meta: Meta<typeof SpinnerSolidNeutralIcon> = {
|
|
|
233
233
|
</tr>
|
|
234
234
|
</thead>
|
|
235
235
|
<tbody>
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
{" "}
|
|
237
|
+
<tr className="!bg-black/10">
|
|
238
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
239
|
+
withAccessibility
|
|
239
240
|
</td>
|
|
240
241
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
241
|
-
|
|
242
|
+
boolean
|
|
243
|
+
</td>
|
|
244
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
245
|
+
true
|
|
242
246
|
</td>
|
|
243
|
-
<td className="px-6 py-4 text-sm !text-white/50">64</td>
|
|
244
247
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
245
|
-
|
|
248
|
+
Whether to wrap the icon with accessibility feature
|
|
246
249
|
</td>
|
|
247
250
|
</tr>
|
|
248
251
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -471,6 +474,7 @@ export const Default: Story = {
|
|
|
471
474
|
width: 32,
|
|
472
475
|
height: 32,
|
|
473
476
|
className: "",
|
|
477
|
+
withAccessibility: true,
|
|
474
478
|
},
|
|
475
479
|
parameters: storyParameters,
|
|
476
480
|
render: (args) => (
|
|
@@ -709,6 +713,10 @@ export const Playground: Story = {
|
|
|
709
713
|
control: { type: "range", min: 16, max: 128, step: 4 },
|
|
710
714
|
description: "Width of the icon in pixels",
|
|
711
715
|
},
|
|
716
|
+
withAccessibility: {
|
|
717
|
+
control: "boolean",
|
|
718
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
719
|
+
},
|
|
712
720
|
height: {
|
|
713
721
|
control: { type: "range", min: 16, max: 128, step: 4 },
|
|
714
722
|
description: "Height of the icon in pixels",
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
+
export interface SpinnerSolidNeutralIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
4
8
|
export const SpinnerSolidNeutralIcon = (
|
|
5
|
-
props:
|
|
6
|
-
) =>
|
|
7
|
-
|
|
9
|
+
props: SpinnerSolidNeutralIconProps
|
|
10
|
+
) => {
|
|
11
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
12
|
+
|
|
13
|
+
const svg = (
|
|
8
14
|
<svg
|
|
9
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
16
|
width="64"
|
|
11
17
|
height="64"
|
|
12
18
|
viewBox="0 0 64 64"
|
|
13
19
|
fill="none"
|
|
14
|
-
{...
|
|
20
|
+
{...svgProps}
|
|
15
21
|
>
|
|
16
22
|
<g
|
|
17
23
|
clip-path="url(#paint0_angular_3367_6316_clip_path)"
|
|
@@ -49,5 +55,13 @@ export const SpinnerSolidNeutralIcon = (
|
|
|
49
55
|
</clipPath>
|
|
50
56
|
</defs>
|
|
51
57
|
</svg>
|
|
52
|
-
|
|
53
|
-
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
if (withAccessibility) {
|
|
61
|
+
return (
|
|
62
|
+
<AccessibleIcon label="Spinner Solid Neutral Icon">{svg}</AccessibleIcon>
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return svg
|
|
67
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
4
|
import { StarIcon } from "."
|
|
5
5
|
|
|
@@ -199,16 +199,19 @@ function RatingStar() {
|
|
|
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">
|
|
@@ -748,6 +751,10 @@ function RatingStar() {
|
|
|
748
751
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
749
752
|
description: "Width of the icon in pixels",
|
|
750
753
|
},
|
|
754
|
+
withAccessibility: {
|
|
755
|
+
control: "boolean",
|
|
756
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
757
|
+
},
|
|
751
758
|
height: {
|
|
752
759
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
753
760
|
description: "Height of the icon in pixels",
|
|
@@ -788,6 +795,7 @@ const storyParameters = {
|
|
|
788
795
|
export const Default: Story = {
|
|
789
796
|
args: {
|
|
790
797
|
className: "h-6 w-6 text-yellow-400",
|
|
798
|
+
withAccessibility: true,
|
|
791
799
|
},
|
|
792
800
|
parameters: storyParameters,
|
|
793
801
|
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 StarIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const StarIcon = (props: StarIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
14
|
width="24"
|
|
@@ -14,9 +18,15 @@ export const StarIcon = (
|
|
|
14
18
|
stroke="currentColor"
|
|
15
19
|
strokeWidth="1.5"
|
|
16
20
|
strokeLinecap="round"
|
|
17
|
-
{...
|
|
21
|
+
{...svgProps}
|
|
18
22
|
>
|
|
19
23
|
<path d="M12.0008 2L14.9397 7.95492L21.5114 8.90983L16.7561 13.5451L17.8787 20.0902L12.0008 17L6.12295 20.0902L7.24552 13.5451L2.49023 8.90983L9.06187 7.95492L12.0008 2Z" />
|
|
20
24
|
</svg>
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
if (withAccessibility) {
|
|
28
|
+
return <AccessibleIcon label="Star icon">{svg}</AccessibleIcon>
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return svg
|
|
32
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
4
|
import { StoreCoinIcon } from "."
|
|
5
5
|
|
|
@@ -202,16 +202,19 @@ function PurchaseButton() {
|
|
|
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">28</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">
|
|
@@ -782,6 +785,10 @@ function CustomStoreCoinIcon({ label = "Store coin", ...props }) {
|
|
|
782
785
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
783
786
|
description: "Width of the icon in pixels",
|
|
784
787
|
},
|
|
788
|
+
withAccessibility: {
|
|
789
|
+
control: "boolean",
|
|
790
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
791
|
+
},
|
|
785
792
|
height: {
|
|
786
793
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
787
794
|
description: "Height of the icon in pixels",
|
|
@@ -812,6 +819,7 @@ export const Default: Story = {
|
|
|
812
819
|
width: 28,
|
|
813
820
|
height: 28,
|
|
814
821
|
className: "",
|
|
822
|
+
withAccessibility: true,
|
|
815
823
|
},
|
|
816
824
|
parameters: storyParameters,
|
|
817
825
|
render: (args) => (
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export interface StoreCoinIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const StoreCoinIcon = (props: StoreCoinIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
12
|
+
<svg viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" {...svgProps}>
|
|
9
13
|
<circle cx="14" cy="14" r="14" fill="#FFB340" />
|
|
10
14
|
|
|
11
15
|
<path
|
|
@@ -29,7 +33,11 @@ export const StoreCoinIcon = (
|
|
|
29
33
|
fill="#FFFAE8"
|
|
30
34
|
/>
|
|
31
35
|
</svg>
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
if (withAccessibility) {
|
|
39
|
+
return <AccessibleIcon label="Store coin icon">{svg}</AccessibleIcon>
|
|
40
|
+
}
|
|
34
41
|
|
|
35
|
-
|
|
42
|
+
return svg
|
|
43
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
4
|
import { SuggestionIcon } from "."
|
|
5
5
|
|
|
@@ -201,16 +201,19 @@ function MyComponent() {
|
|
|
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">24</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">
|
|
@@ -681,6 +684,10 @@ import { SuggestionIcon } from "@icons/suggestion-icon"
|
|
|
681
684
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
682
685
|
description: "Width of the icon in pixels",
|
|
683
686
|
},
|
|
687
|
+
withAccessibility: {
|
|
688
|
+
control: "boolean",
|
|
689
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
690
|
+
},
|
|
684
691
|
height: {
|
|
685
692
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
686
693
|
description: "Height of the icon in pixels",
|
|
@@ -723,6 +730,7 @@ export const Default: Story = {
|
|
|
723
730
|
width: 24,
|
|
724
731
|
height: 24,
|
|
725
732
|
className: "text-blue-400",
|
|
733
|
+
withAccessibility: true,
|
|
726
734
|
},
|
|
727
735
|
parameters: storyParameters,
|
|
728
736
|
render: (args) => (
|