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,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 { TrashIcon } from "."
|
|
5
5
|
|
|
@@ -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">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">
|
|
@@ -764,6 +767,10 @@ function CustomTrashIcon({ label = "Delete", ...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",
|
|
@@ -798,6 +805,7 @@ export const Default: Story = {
|
|
|
798
805
|
width: 24,
|
|
799
806
|
height: 24,
|
|
800
807
|
className: "text-red-400",
|
|
808
|
+
withAccessibility: true,
|
|
801
809
|
},
|
|
802
810
|
parameters: storyParameters,
|
|
803
811
|
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 TrashIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const TrashIcon = (props: TrashIconProps) => {
|
|
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="M5.75 5.75V21.25H18.25V5.75M5.75 5.75H18.25M5.75 5.75H3.75M18.25 5.75H20.25M14 10.75V16.25M10 10.75V16.25M9.02154 5.38866C9.19999 3.90218 10.4654 2.75 12 2.75C13.5346 2.75 14.8 3.90218 14.9785 5.38866"
|
|
@@ -20,5 +24,11 @@ export const TrashIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Trash icon">{svg}</AccessibleIcon>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return svg
|
|
34
|
+
}
|
|
@@ -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 { TwitterXIcon } from "."
|
|
5
5
|
|
|
@@ -208,18 +208,19 @@ function ShareButton() {
|
|
|
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
|
|
217
218
|
</td>
|
|
218
219
|
<td className="px-6 py-4 text-sm !text-white/50">
|
|
219
|
-
|
|
220
|
+
true
|
|
220
221
|
</td>
|
|
221
222
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
222
|
-
|
|
223
|
+
Whether to wrap the icon with accessibility feature
|
|
223
224
|
</td>
|
|
224
225
|
</tr>
|
|
225
226
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -1234,6 +1235,10 @@ function ShareButton() {
|
|
|
1234
1235
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1235
1236
|
description: "Width of the icon (maintains aspect ratio)",
|
|
1236
1237
|
},
|
|
1238
|
+
withAccessibility: {
|
|
1239
|
+
control: "boolean",
|
|
1240
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
1241
|
+
},
|
|
1237
1242
|
height: {
|
|
1238
1243
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1239
1244
|
description: "Height of the icon (maintains aspect ratio)",
|
|
@@ -1270,6 +1275,7 @@ const storyParameters = {
|
|
|
1270
1275
|
export const Default: Story = {
|
|
1271
1276
|
args: {
|
|
1272
1277
|
className: "h-8 w-8 text-white",
|
|
1278
|
+
withAccessibility: true,
|
|
1273
1279
|
},
|
|
1274
1280
|
parameters: storyParameters,
|
|
1275
1281
|
render: (args) => (
|
|
@@ -1,17 +1,27 @@
|
|
|
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 TwitterXIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const TwitterXIcon = (props: TwitterXIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
viewBox="0 0 20 18"
|
|
10
14
|
fill="currentColor"
|
|
11
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
-
{...
|
|
16
|
+
{...svgProps}
|
|
13
17
|
>
|
|
14
18
|
<path d="M15.4033 0.5H18.2852L11.989 7.70103L19.396 17.5H13.5964L9.05397 11.557L3.85637 17.5H0.972695L7.70709 9.79769L0.601562 0.5H6.54839L10.6544 5.93215L15.4033 0.5ZM14.3918 15.7738H15.9887L5.68067 2.13549H3.96702L14.3918 15.7738Z" />
|
|
15
19
|
</svg>
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
if (withAccessibility) {
|
|
23
|
+
return <AccessibleIcon label="Twitter X icon">{svg}</AccessibleIcon>
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return svg
|
|
27
|
+
}
|
|
@@ -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 { UploadIcon } 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">
|
|
@@ -737,6 +740,10 @@ function CustomUploadIcon({ label = "Upload", ...props }) {
|
|
|
737
740
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
738
741
|
description: "Width of the icon in pixels",
|
|
739
742
|
},
|
|
743
|
+
withAccessibility: {
|
|
744
|
+
control: "boolean",
|
|
745
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
746
|
+
},
|
|
740
747
|
height: {
|
|
741
748
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
742
749
|
description: "Height of the icon in pixels",
|
|
@@ -771,6 +778,7 @@ export const Default: Story = {
|
|
|
771
778
|
width: 24,
|
|
772
779
|
height: 24,
|
|
773
780
|
className: "text-blue-400",
|
|
781
|
+
withAccessibility: true,
|
|
774
782
|
},
|
|
775
783
|
parameters: storyParameters,
|
|
776
784
|
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 UploadIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const UploadIcon = (props: UploadIconProps) => {
|
|
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="M20.25 12.75V20.25H3.75V12.75M12 15V4.5M16.5 8.25L12 3.75L7.5 8.25"
|
|
@@ -20,5 +24,11 @@ export const UploadIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Upload icon">{svg}</AccessibleIcon>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return svg
|
|
34
|
+
}
|
|
@@ -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 { VerticalMenuIcon } from "."
|
|
5
5
|
|
|
@@ -199,16 +199,19 @@ function MyComponent() {
|
|
|
199
199
|
</tr>
|
|
200
200
|
</thead>
|
|
201
201
|
<tbody>
|
|
202
|
-
|
|
202
|
+
{" "}
|
|
203
|
+
<tr className="!bg-black/10">
|
|
203
204
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
204
|
-
|
|
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">
|
|
@@ -801,6 +804,10 @@ function CustomMenuIcon({ label = "Menu options", ...props }) {
|
|
|
801
804
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
802
805
|
description: "Width of the icon in pixels",
|
|
803
806
|
},
|
|
807
|
+
withAccessibility: {
|
|
808
|
+
control: "boolean",
|
|
809
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
810
|
+
},
|
|
804
811
|
height: {
|
|
805
812
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
806
813
|
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-blue-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 VerticalMenuIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const VerticalMenuIcon = (props: VerticalMenuIconProps) => {
|
|
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 2.75H13V4.75H11V2.75Z"
|
|
@@ -23,5 +27,11 @@ export const VerticalMenuIcon = (
|
|
|
23
27
|
className="fill-current stroke-current"
|
|
24
28
|
/>
|
|
25
29
|
</svg>
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
if (withAccessibility) {
|
|
33
|
+
return <AccessibleIcon label="Vertical Menu icon">{svg}</AccessibleIcon>
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return svg
|
|
37
|
+
}
|
|
@@ -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 { VideoPlaylistIcon } from "."
|
|
5
5
|
|
|
@@ -195,16 +195,19 @@ function MyComponent() {
|
|
|
195
195
|
</tr>
|
|
196
196
|
</thead>
|
|
197
197
|
<tbody>
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
{" "}
|
|
199
|
+
<tr className="!bg-black/10">
|
|
200
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
201
|
+
withAccessibility
|
|
201
202
|
</td>
|
|
202
203
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
203
|
-
|
|
204
|
+
boolean
|
|
205
|
+
</td>
|
|
206
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
207
|
+
true
|
|
204
208
|
</td>
|
|
205
|
-
<td className="px-6 py-4 text-sm !text-white/50">20</td>
|
|
206
209
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
207
|
-
|
|
210
|
+
Whether to wrap the icon with accessibility feature
|
|
208
211
|
</td>
|
|
209
212
|
</tr>
|
|
210
213
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -869,6 +872,10 @@ function CustomVideoPlaylistIcon({ label = "Playlist", ...props }) {
|
|
|
869
872
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
870
873
|
description: "Width of the icon in pixels",
|
|
871
874
|
},
|
|
875
|
+
withAccessibility: {
|
|
876
|
+
control: "boolean",
|
|
877
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
878
|
+
},
|
|
872
879
|
height: {
|
|
873
880
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
874
881
|
description: "Height of the icon in pixels",
|
|
@@ -903,6 +910,7 @@ export const Default: Story = {
|
|
|
903
910
|
width: 20,
|
|
904
911
|
height: 20,
|
|
905
912
|
className: "text-purple-400",
|
|
913
|
+
withAccessibility: true,
|
|
906
914
|
},
|
|
907
915
|
parameters: storyParameters,
|
|
908
916
|
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 VideoPlaylistIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const VideoPlaylistIcon = (props: VideoPlaylistIconProps) => {
|
|
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"
|
|
@@ -14,9 +18,15 @@ export const VideoPlaylistIcon = (
|
|
|
14
18
|
stroke="currentColor"
|
|
15
19
|
strokeWidth="1.25"
|
|
16
20
|
strokeLinecap="square"
|
|
17
|
-
{...
|
|
21
|
+
{...svgProps}
|
|
18
22
|
>
|
|
19
23
|
<path d="M3.95841 3.125H16.0417M9.58341 11.0417H10.0001M2.29175 5.20833H17.7084V16.875H2.29175V5.20833ZM8.95841 9.16667V12.9167L11.4584 11.0417L8.95841 9.16667Z" />
|
|
20
24
|
</svg>
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
if (withAccessibility) {
|
|
28
|
+
return <AccessibleIcon label="Video playlist 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 { VoicePlayingIcon } from "."
|
|
5
5
|
|
|
@@ -209,16 +209,19 @@ function VoiceMessage({ isPlaying }) {
|
|
|
209
209
|
</tr>
|
|
210
210
|
</thead>
|
|
211
211
|
<tbody>
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
{" "}
|
|
213
|
+
<tr className="!bg-black/10">
|
|
214
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
215
|
+
withAccessibility
|
|
215
216
|
</td>
|
|
216
217
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
217
|
-
|
|
218
|
+
boolean
|
|
219
|
+
</td>
|
|
220
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
221
|
+
true
|
|
218
222
|
</td>
|
|
219
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
220
223
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
221
|
-
|
|
224
|
+
Whether to wrap the icon with accessibility feature
|
|
222
225
|
</td>
|
|
223
226
|
</tr>
|
|
224
227
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -1189,6 +1192,10 @@ function VoiceMessage({ isPlaying }) {
|
|
|
1189
1192
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1190
1193
|
description: "Width of the icon in pixels",
|
|
1191
1194
|
},
|
|
1195
|
+
withAccessibility: {
|
|
1196
|
+
control: "boolean",
|
|
1197
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
1198
|
+
},
|
|
1192
1199
|
height: {
|
|
1193
1200
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1194
1201
|
description: "Height of the icon in pixels",
|
|
@@ -1234,6 +1241,7 @@ const storyParameters = {
|
|
|
1234
1241
|
export const Default: Story = {
|
|
1235
1242
|
args: {
|
|
1236
1243
|
className: "h-8 w-8 text-emerald-400",
|
|
1244
|
+
withAccessibility: true,
|
|
1237
1245
|
},
|
|
1238
1246
|
parameters: storyParameters,
|
|
1239
1247
|
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 VoicePlayingIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const VoicePlayingIcon = (props: VoicePlayingIconProps) => {
|
|
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,12 +17,18 @@ export const VoicePlayingIcon = (
|
|
|
13
17
|
fill="none"
|
|
14
18
|
stroke="currentColor"
|
|
15
19
|
strokeWidth="1.5"
|
|
16
|
-
{...
|
|
20
|
+
{...svgProps}
|
|
17
21
|
>
|
|
18
22
|
<path
|
|
19
23
|
d="M7.75 3.75V20.25M3.75 9.75V14.25M12 7.75V16.25M16.25 5.75V18.25M20.25 9.75V14.25"
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Voice playing icon">{svg}</AccessibleIcon>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return svg
|
|
34
|
+
}
|
|
@@ -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 { VolumeFullIcon } from "."
|
|
5
5
|
|
|
@@ -205,16 +205,19 @@ function VolumeControl() {
|
|
|
205
205
|
</tr>
|
|
206
206
|
</thead>
|
|
207
207
|
<tbody>
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
{" "}
|
|
209
|
+
<tr className="!bg-black/10">
|
|
210
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
211
|
+
withAccessibility
|
|
211
212
|
</td>
|
|
212
213
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
213
|
-
|
|
214
|
+
boolean
|
|
215
|
+
</td>
|
|
216
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
217
|
+
true
|
|
214
218
|
</td>
|
|
215
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
216
219
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
217
|
-
|
|
220
|
+
Whether to wrap the icon with accessibility feature
|
|
218
221
|
</td>
|
|
219
222
|
</tr>
|
|
220
223
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -1022,6 +1025,10 @@ function VolumeControl() {
|
|
|
1022
1025
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1023
1026
|
description: "Width of the icon in pixels",
|
|
1024
1027
|
},
|
|
1028
|
+
withAccessibility: {
|
|
1029
|
+
control: "boolean",
|
|
1030
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
1031
|
+
},
|
|
1025
1032
|
height: {
|
|
1026
1033
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1027
1034
|
description: "Height of the icon in pixels",
|
|
@@ -1062,6 +1069,7 @@ const storyParameters = {
|
|
|
1062
1069
|
export const Default: Story = {
|
|
1063
1070
|
args: {
|
|
1064
1071
|
className: "h-8 w-8 text-indigo-400",
|
|
1072
|
+
withAccessibility: true,
|
|
1065
1073
|
},
|
|
1066
1074
|
parameters: storyParameters,
|
|
1067
1075
|
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 VolumeFullIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const VolumeFullIcon = (props: VolumeFullIconProps) => {
|
|
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 VolumeFullIcon = (
|
|
|
13
17
|
fill="none"
|
|
14
18
|
stroke="currentColor"
|
|
15
19
|
strokeWidth="1.5"
|
|
16
|
-
{...
|
|
20
|
+
{...svgProps}
|
|
17
21
|
>
|
|
18
22
|
<path
|
|
19
23
|
d="M19.2478 4.75216C21.1027 6.60704 22.25 9.16954 22.25 12C22.25 14.8305 21.1027 17.393 19.2478 19.2478M15.8891 8.11091C16.8844 9.10622 17.5 10.4812 17.5 12C17.5 13.5188 16.8844 14.8938 15.8891 15.8891M1.75 7.75H6L12.25 4.25V19.75L6 16.25H1.75V7.75Z"
|
|
@@ -21,5 +25,11 @@ export const VolumeFullIcon = (
|
|
|
21
25
|
strokeWidth="1.5"
|
|
22
26
|
/>
|
|
23
27
|
</svg>
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
if (withAccessibility) {
|
|
31
|
+
return <AccessibleIcon label="Volume full icon">{svg}</AccessibleIcon>
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return svg
|
|
35
|
+
}
|