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 { ChevronDoubleLeftIcon } from "."
|
|
5
5
|
|
|
@@ -202,16 +202,19 @@ function PaginationButton() {
|
|
|
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">24</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">
|
|
@@ -772,6 +775,10 @@ function PaginationButton() {
|
|
|
772
775
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
773
776
|
description: "Width of the icon in pixels",
|
|
774
777
|
},
|
|
778
|
+
withAccessibility: {
|
|
779
|
+
control: "boolean",
|
|
780
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
781
|
+
},
|
|
775
782
|
height: {
|
|
776
783
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
777
784
|
description: "Height of the icon in pixels",
|
|
@@ -810,6 +817,7 @@ export const Default: Story = {
|
|
|
810
817
|
width: 24,
|
|
811
818
|
height: 24,
|
|
812
819
|
className: "text-blue-400 ",
|
|
820
|
+
withAccessibility: true,
|
|
813
821
|
},
|
|
814
822
|
parameters: storyParameters,
|
|
815
823
|
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 ChevronDoubleLeftIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ChevronDoubleLeftIcon = (props: ChevronDoubleLeftIconProps) => {
|
|
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="M18 17L13 12L18 7"
|
|
@@ -28,7 +32,13 @@ export const ChevronDoubleLeftIcon = (
|
|
|
28
32
|
strokeLinejoin="round"
|
|
29
33
|
/>
|
|
30
34
|
</svg>
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
if (withAccessibility) {
|
|
38
|
+
return (
|
|
39
|
+
<AccessibleIcon label="Chevron Double Left icon">{svg}</AccessibleIcon>
|
|
40
|
+
)
|
|
41
|
+
}
|
|
33
42
|
|
|
34
|
-
|
|
43
|
+
return svg
|
|
44
|
+
}
|
|
@@ -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 { ChevronDoubleRightIcon } from "."
|
|
5
5
|
|
|
@@ -202,16 +202,19 @@ function PaginationButton() {
|
|
|
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">24</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">
|
|
@@ -774,6 +777,10 @@ function PaginationButton() {
|
|
|
774
777
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
775
778
|
description: "Width of the icon in pixels",
|
|
776
779
|
},
|
|
780
|
+
withAccessibility: {
|
|
781
|
+
control: "boolean",
|
|
782
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
783
|
+
},
|
|
777
784
|
height: {
|
|
778
785
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
779
786
|
description: "Height of the icon in pixels",
|
|
@@ -812,6 +819,7 @@ export const Default: Story = {
|
|
|
812
819
|
width: 24,
|
|
813
820
|
height: 24,
|
|
814
821
|
className: "text-green-400 ",
|
|
822
|
+
withAccessibility: true,
|
|
815
823
|
},
|
|
816
824
|
parameters: storyParameters,
|
|
817
825
|
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 ChevronDoubleRightIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ChevronDoubleRightIcon = (props: ChevronDoubleRightIconProps) => {
|
|
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="M6 7L11 12L6 17"
|
|
@@ -28,7 +32,13 @@ export const ChevronDoubleRightIcon = (
|
|
|
28
32
|
strokeLinejoin="round"
|
|
29
33
|
/>
|
|
30
34
|
</svg>
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
if (withAccessibility) {
|
|
38
|
+
return (
|
|
39
|
+
<AccessibleIcon label="Chevron Double Right icon">{svg}</AccessibleIcon>
|
|
40
|
+
)
|
|
41
|
+
}
|
|
33
42
|
|
|
34
|
-
|
|
43
|
+
return svg
|
|
44
|
+
}
|
|
@@ -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 { ChevronDownIcon } from "."
|
|
5
5
|
|
|
@@ -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">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">
|
|
@@ -774,6 +777,10 @@ function DropdownButton() {
|
|
|
774
777
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
775
778
|
description: "Width of the icon in pixels",
|
|
776
779
|
},
|
|
780
|
+
withAccessibility: {
|
|
781
|
+
control: "boolean",
|
|
782
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
783
|
+
},
|
|
777
784
|
height: {
|
|
778
785
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
779
786
|
description: "Height of the icon in pixels",
|
|
@@ -812,6 +819,7 @@ export const Default: Story = {
|
|
|
812
819
|
width: 24,
|
|
813
820
|
height: 24,
|
|
814
821
|
className: "text-blue-400 ",
|
|
822
|
+
withAccessibility: true,
|
|
815
823
|
},
|
|
816
824
|
parameters: storyParameters,
|
|
817
825
|
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 ChevronDownIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ChevronDownIcon = (props: ChevronDownIconProps) => {
|
|
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="M6 9L12 15L18 9"
|
|
@@ -21,7 +25,11 @@ export const ChevronDownIcon = (
|
|
|
21
25
|
strokeLinejoin="round"
|
|
22
26
|
/>
|
|
23
27
|
</svg>
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
if (withAccessibility) {
|
|
31
|
+
return <AccessibleIcon label="Chevron Down Icon">{svg}</AccessibleIcon>
|
|
32
|
+
}
|
|
26
33
|
|
|
27
|
-
|
|
34
|
+
return svg
|
|
35
|
+
}
|
|
@@ -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 { ChevronLeftIcon } from "."
|
|
5
5
|
|
|
@@ -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">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">
|
|
@@ -798,6 +801,10 @@ function BackButton() {
|
|
|
798
801
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
799
802
|
description: "Width of the icon in pixels",
|
|
800
803
|
},
|
|
804
|
+
withAccessibility: {
|
|
805
|
+
control: "boolean",
|
|
806
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
807
|
+
},
|
|
801
808
|
height: {
|
|
802
809
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
803
810
|
description: "Height of the icon in pixels",
|
|
@@ -836,6 +843,7 @@ export const Default: Story = {
|
|
|
836
843
|
width: 24,
|
|
837
844
|
height: 24,
|
|
838
845
|
className: "text-purple-400 ",
|
|
846
|
+
withAccessibility: true,
|
|
839
847
|
},
|
|
840
848
|
parameters: storyParameters,
|
|
841
849
|
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 ChevronLeftIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ChevronLeftIcon = (props: ChevronLeftIconProps) => {
|
|
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="M15 18L9 12L15 6"
|
|
@@ -21,7 +25,11 @@ export const ChevronLeftIcon = (
|
|
|
21
25
|
strokeLinejoin="round"
|
|
22
26
|
/>
|
|
23
27
|
</svg>
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
if (withAccessibility) {
|
|
31
|
+
return <AccessibleIcon label="Chevron Left icon">{svg}</AccessibleIcon>
|
|
32
|
+
}
|
|
26
33
|
|
|
27
|
-
|
|
34
|
+
return svg
|
|
35
|
+
}
|
|
@@ -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 { ChevronRightIcon } from "."
|
|
5
5
|
|
|
@@ -201,16 +201,19 @@ function NextButton() {
|
|
|
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">
|
|
@@ -791,6 +794,10 @@ function NextButton() {
|
|
|
791
794
|
width: {
|
|
792
795
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
793
796
|
description: "Width of the icon in pixels",
|
|
797
|
+
withAccessibility: {
|
|
798
|
+
control: "boolean",
|
|
799
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
800
|
+
},
|
|
794
801
|
},
|
|
795
802
|
height: {
|
|
796
803
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
@@ -830,6 +837,7 @@ export const Default: Story = {
|
|
|
830
837
|
width: 24,
|
|
831
838
|
height: 24,
|
|
832
839
|
className: "text-indigo-400 ",
|
|
840
|
+
withAccessibility: true,
|
|
833
841
|
},
|
|
834
842
|
parameters: storyParameters,
|
|
835
843
|
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 ChevronRightIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ChevronRightIcon = (props: ChevronRightIconProps) => {
|
|
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="M9 6L15 12L9 18"
|
|
@@ -21,7 +25,11 @@ export const ChevronRightIcon = (
|
|
|
21
25
|
strokeLinejoin="round"
|
|
22
26
|
/>
|
|
23
27
|
</svg>
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
if (withAccessibility) {
|
|
31
|
+
return <AccessibleIcon label="Chevron Right icon">{svg}</AccessibleIcon>
|
|
32
|
+
}
|
|
26
33
|
|
|
27
|
-
|
|
34
|
+
return svg
|
|
35
|
+
}
|
|
@@ -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 { ChevronUpIcon } from "."
|
|
5
5
|
|
|
@@ -202,16 +202,19 @@ function ScrollToTop() {
|
|
|
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">24</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">
|
|
@@ -818,6 +821,10 @@ function ScrollToTop() {
|
|
|
818
821
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
819
822
|
description: "Width of the icon in pixels",
|
|
820
823
|
},
|
|
824
|
+
withAccessibility: {
|
|
825
|
+
control: "boolean",
|
|
826
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
827
|
+
},
|
|
821
828
|
height: {
|
|
822
829
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
823
830
|
description: "Height of the icon in pixels",
|
|
@@ -856,6 +863,7 @@ export const Default: Story = {
|
|
|
856
863
|
width: 24,
|
|
857
864
|
height: 24,
|
|
858
865
|
className: "text-purple-400 ",
|
|
866
|
+
withAccessibility: true,
|
|
859
867
|
},
|
|
860
868
|
parameters: storyParameters,
|
|
861
869
|
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 ChevronUpIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ChevronUpIcon = (props: ChevronUpIconProps) => {
|
|
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="M18 15L12 9L6 15"
|
|
@@ -21,7 +25,11 @@ export const ChevronUpIcon = (
|
|
|
21
25
|
strokeLinejoin="round"
|
|
22
26
|
/>
|
|
23
27
|
</svg>
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
if (withAccessibility) {
|
|
31
|
+
return <AccessibleIcon label="Chevron Up Icon">{svg}</AccessibleIcon>
|
|
32
|
+
}
|
|
26
33
|
|
|
27
|
-
|
|
34
|
+
return svg
|
|
35
|
+
}
|
|
@@ -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 { CircleTickIcon } from "."
|
|
5
5
|
|
|
@@ -218,16 +218,19 @@ function SuccessMessage() {
|
|
|
218
218
|
</tr>
|
|
219
219
|
</thead>
|
|
220
220
|
<tbody>
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
{" "}
|
|
222
|
+
<tr className="!bg-black/10">
|
|
223
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
224
|
+
withAccessibility
|
|
224
225
|
</td>
|
|
225
226
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
226
|
-
|
|
227
|
+
boolean
|
|
228
|
+
</td>
|
|
229
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
230
|
+
true
|
|
227
231
|
</td>
|
|
228
|
-
<td className="px-6 py-4 text-sm !text-white/50">16</td>
|
|
229
232
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
230
|
-
|
|
233
|
+
Whether to wrap the icon with accessibility feature
|
|
231
234
|
</td>
|
|
232
235
|
</tr>
|
|
233
236
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -987,6 +990,10 @@ function CompletionIcon({ label = "Completed", ...props }) {
|
|
|
987
990
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
988
991
|
description: "Width of the icon in pixels",
|
|
989
992
|
},
|
|
993
|
+
withAccessibility: {
|
|
994
|
+
control: "boolean",
|
|
995
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
996
|
+
},
|
|
990
997
|
height: {
|
|
991
998
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
992
999
|
description: "Height of the icon in pixels",
|
|
@@ -1021,6 +1028,7 @@ export const Default: Story = {
|
|
|
1021
1028
|
width: 24,
|
|
1022
1029
|
height: 24,
|
|
1023
1030
|
className: "text-green-400",
|
|
1031
|
+
withAccessibility: true,
|
|
1024
1032
|
},
|
|
1025
1033
|
parameters: storyParameters,
|
|
1026
1034
|
render: (args) => (
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface CircleTickIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const CircleTickIcon = (props: CircleTickIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
viewBox="0 0 16 17"
|
|
10
14
|
fill="none"
|
|
11
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
16
|
stroke="currentColor"
|
|
13
|
-
{...
|
|
17
|
+
{...svgProps}
|
|
14
18
|
>
|
|
15
19
|
<path
|
|
16
20
|
d="M10.25 6.625L6.875 10.75L5.375 9.25M14.9375 8.5C14.9375 12.3315 11.8315 15.4375 8 15.4375C4.16852 15.4375 1.0625 12.3315 1.0625 8.5C1.0625 4.66852 4.16852 1.5625 8 1.5625C11.8315 1.5625 14.9375 4.66852 14.9375 8.5Z"
|
|
17
21
|
strokeLinecap="square"
|
|
18
22
|
/>
|
|
19
23
|
</svg>
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
if (withAccessibility) {
|
|
27
|
+
return <AccessibleIcon label="Circle Tick Icon">{svg}</AccessibleIcon>
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return svg
|
|
31
|
+
}
|