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 { CoinIcon } from "."
|
|
5
5
|
|
|
@@ -203,16 +203,19 @@ function WalletBalance() {
|
|
|
203
203
|
</tr>
|
|
204
204
|
</thead>
|
|
205
205
|
<tbody>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
{" "}
|
|
207
|
+
<tr className="!bg-black/10">
|
|
208
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
209
|
+
withAccessibility
|
|
209
210
|
</td>
|
|
210
211
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
-
|
|
212
|
+
boolean
|
|
213
|
+
</td>
|
|
214
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
215
|
+
true
|
|
212
216
|
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
214
217
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
215
|
-
|
|
218
|
+
Whether to wrap the icon with accessibility feature
|
|
216
219
|
</td>
|
|
217
220
|
</tr>
|
|
218
221
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -1181,6 +1184,10 @@ function WalletBalance() {
|
|
|
1181
1184
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1182
1185
|
description: "Width of the icon in pixels",
|
|
1183
1186
|
},
|
|
1187
|
+
withAccessibility: {
|
|
1188
|
+
control: "boolean",
|
|
1189
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
1190
|
+
},
|
|
1184
1191
|
height: {
|
|
1185
1192
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1186
1193
|
description: "Height of the icon in pixels",
|
|
@@ -1213,6 +1220,7 @@ const storyParameters = {
|
|
|
1213
1220
|
export const Default: Story = {
|
|
1214
1221
|
args: {
|
|
1215
1222
|
className: "h-8 w-8",
|
|
1223
|
+
withAccessibility: true,
|
|
1216
1224
|
},
|
|
1217
1225
|
parameters: storyParameters,
|
|
1218
1226
|
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 CoinIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const CoinIcon = (props: CoinIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
14
|
width="24"
|
|
11
15
|
height="24"
|
|
12
16
|
viewBox="0 0 24 24"
|
|
13
17
|
fill="none"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
{/* Outer circle (coin base) */}
|
|
17
21
|
<circle cx="12" cy="12" r="12" fill="#FFB340" />
|
|
@@ -32,5 +36,11 @@ export const CoinIcon = (
|
|
|
32
36
|
fill="#FFFAE8"
|
|
33
37
|
/>
|
|
34
38
|
</svg>
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
if (withAccessibility) {
|
|
42
|
+
return <AccessibleIcon label="Coin icon">{svg}</AccessibleIcon>
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return svg
|
|
46
|
+
}
|
|
@@ -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 { CommandIcon } from "."
|
|
5
5
|
|
|
@@ -202,16 +202,19 @@ function ShortcutHint() {
|
|
|
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">
|
|
@@ -851,6 +854,10 @@ function ShortcutHint() {
|
|
|
851
854
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
852
855
|
description: "Width of the icon in pixels",
|
|
853
856
|
},
|
|
857
|
+
withAccessibility: {
|
|
858
|
+
control: "boolean",
|
|
859
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
860
|
+
},
|
|
854
861
|
height: {
|
|
855
862
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
856
863
|
description: "Height of the icon in pixels",
|
|
@@ -889,6 +896,7 @@ export const Default: Story = {
|
|
|
889
896
|
width: 24,
|
|
890
897
|
height: 24,
|
|
891
898
|
className: "text-blue-400 ",
|
|
899
|
+
withAccessibility: true,
|
|
892
900
|
},
|
|
893
901
|
parameters: storyParameters,
|
|
894
902
|
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 CommandIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const CommandIcon = (props: CommandIconProps) => {
|
|
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.25 9.25V6.5C9.25 4.98122 8.01878 3.75 6.5 3.75C4.98122 3.75 3.75 4.98122 3.75 6.5C3.75 8.01878 4.98122 9.25 6.5 9.25H9.25ZM9.25 9.25H14.75M9.25 9.25V14.75M14.75 9.25V6.5C14.75 4.98122 15.9812 3.75 17.5 3.75C19.0188 3.75 20.25 4.98122 20.25 6.5C20.25 8.01878 19.0188 9.25 17.5 9.25H14.75ZM14.75 9.25V14.75M14.75 14.75H9.25M14.75 14.75V17.5C14.75 19.0188 15.9812 20.25 17.5 20.25C19.0188 20.25 20.25 19.0188 20.25 17.5C20.25 15.9812 19.0188 14.75 17.5 14.75H14.75ZM9.25 14.75V17.5C9.25 19.0188 8.01878 20.25 6.5 20.25C4.98122 20.25 3.75 19.0188 3.75 17.5C3.75 15.9812 4.98122 14.75 6.5 14.75H9.25Z"
|
|
@@ -20,5 +24,11 @@ export const CommandIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Command 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 { CopyIcon } from "."
|
|
5
5
|
|
|
@@ -202,16 +202,19 @@ function CopyButton({ text }) {
|
|
|
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">
|
|
@@ -803,6 +806,10 @@ function CopyButton({ text }) {
|
|
|
803
806
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
804
807
|
description: "Width of the icon in pixels",
|
|
805
808
|
},
|
|
809
|
+
withAccessibility: {
|
|
810
|
+
control: "boolean",
|
|
811
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
812
|
+
},
|
|
806
813
|
height: {
|
|
807
814
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
808
815
|
description: "Height of the icon in pixels",
|
|
@@ -841,6 +848,7 @@ export const Default: Story = {
|
|
|
841
848
|
width: 24,
|
|
842
849
|
height: 24,
|
|
843
850
|
className: "text-purple-400 ",
|
|
851
|
+
withAccessibility: true,
|
|
844
852
|
},
|
|
845
853
|
parameters: storyParameters,
|
|
846
854
|
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 CopyIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const CopyIcon = (props: CopyIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
viewBox="0 0 24 24"
|
|
10
14
|
fill="none"
|
|
11
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
16
|
stroke="currentColor"
|
|
13
|
-
{...
|
|
17
|
+
{...svgProps}
|
|
14
18
|
>
|
|
15
19
|
<path
|
|
16
20
|
d="M8.75 8.75V2.75H21.25V15.25H15.25M15.25 8.75H2.75V21.25H15.25V8.75Z"
|
|
17
21
|
strokeLinecap="square"
|
|
18
22
|
/>
|
|
19
23
|
</svg>
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
if (withAccessibility) {
|
|
27
|
+
return <AccessibleIcon label="Copy Icon">{svg}</AccessibleIcon>
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return svg
|
|
31
|
+
}
|
|
@@ -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 { CrossCircleIcon } from "."
|
|
5
5
|
|
|
@@ -206,16 +206,19 @@ function DismissibleAlert() {
|
|
|
206
206
|
</tr>
|
|
207
207
|
</thead>
|
|
208
208
|
<tbody>
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
{" "}
|
|
210
|
+
<tr className="!bg-black/10">
|
|
211
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
212
|
+
withAccessibility
|
|
212
213
|
</td>
|
|
213
214
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
214
|
-
|
|
215
|
+
boolean
|
|
216
|
+
</td>
|
|
217
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
218
|
+
true
|
|
215
219
|
</td>
|
|
216
|
-
<td className="px-6 py-4 text-sm !text-white/50">16</td>
|
|
217
220
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
218
|
-
|
|
221
|
+
Whether to wrap the icon with accessibility feature
|
|
219
222
|
</td>
|
|
220
223
|
</tr>
|
|
221
224
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -836,6 +839,10 @@ function DismissibleAlert() {
|
|
|
836
839
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
837
840
|
description: "Width of the icon in pixels",
|
|
838
841
|
},
|
|
842
|
+
withAccessibility: {
|
|
843
|
+
control: "boolean",
|
|
844
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
845
|
+
},
|
|
839
846
|
height: {
|
|
840
847
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
841
848
|
description: "Height of the icon in pixels",
|
|
@@ -872,6 +879,7 @@ const storyParameters = {
|
|
|
872
879
|
export const Default: Story = {
|
|
873
880
|
args: {
|
|
874
881
|
className: "h-6 w-6 fill-red-400 ",
|
|
882
|
+
withAccessibility: true,
|
|
875
883
|
},
|
|
876
884
|
parameters: storyParameters,
|
|
877
885
|
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 CrossCircleIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const CrossCircleIcon = (props: CrossCircleIconProps) => {
|
|
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="16"
|
|
11
15
|
height="16"
|
|
12
16
|
viewBox="0 0 16 16"
|
|
13
17
|
fill="white"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<path
|
|
17
21
|
fillRule="evenodd"
|
|
@@ -19,5 +23,11 @@ export const CrossCircleIcon = (
|
|
|
19
23
|
d="M1.3335 7.99992C1.3335 4.31802 4.31826 1.33325 8.00016 1.33325C11.682 1.33325 14.6668 4.31802 14.6668 7.99992C14.6668 11.6818 11.682 14.6666 8.00016 14.6666C4.31826 14.6666 1.3335 11.6818 1.3335 7.99992ZM6.00016 5.29281L5.29306 5.99992L7.29303 7.99992L5.29306 9.99992L6.00016 10.7071L8.00016 8.70705L10.0002 10.7071L10.7073 9.99992L8.7073 7.99992L10.7073 5.99992L10.0002 5.29281L8.00016 7.29279L6.00016 5.29281Z"
|
|
20
24
|
/>
|
|
21
25
|
</svg>
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
if (withAccessibility) {
|
|
29
|
+
return <AccessibleIcon label="Cross Circle icon">{svg}</AccessibleIcon>
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return svg
|
|
33
|
+
}
|
|
@@ -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 { CrossIcon } from "."
|
|
5
5
|
|
|
@@ -201,16 +201,19 @@ function CloseButton() {
|
|
|
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">21</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">
|
|
@@ -804,6 +807,10 @@ function CloseButton() {
|
|
|
804
807
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
805
808
|
description: "Width of the icon in pixels",
|
|
806
809
|
},
|
|
810
|
+
withAccessibility: {
|
|
811
|
+
control: "boolean",
|
|
812
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
813
|
+
},
|
|
807
814
|
height: {
|
|
808
815
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
809
816
|
description: "Height of the icon in pixels",
|
|
@@ -844,6 +851,7 @@ const storyParameters = {
|
|
|
844
851
|
export const Default: Story = {
|
|
845
852
|
args: {
|
|
846
853
|
className: "h-6 w-6 text-gray-400 ",
|
|
854
|
+
withAccessibility: true,
|
|
847
855
|
},
|
|
848
856
|
parameters: storyParameters,
|
|
849
857
|
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 CrossIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const CrossIcon = (props: CrossIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
width="21"
|
|
10
14
|
height="20"
|
|
11
15
|
viewBox="0 0 21 20"
|
|
12
16
|
fill="none"
|
|
13
17
|
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<path
|
|
17
21
|
d="m4.458 3.958 12.084 12.084m0-12.084L4.458 16.042"
|
|
@@ -20,5 +24,11 @@ export const CrossIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Cross 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 { DownloadIcon } from "."
|
|
5
5
|
|
|
@@ -200,16 +200,19 @@ function CloseButton() {
|
|
|
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">21</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">
|
|
@@ -653,6 +656,10 @@ function CloseButton() {
|
|
|
653
656
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
654
657
|
description: "Width of the icon in pixels",
|
|
655
658
|
},
|
|
659
|
+
withAccessibility: {
|
|
660
|
+
control: "boolean",
|
|
661
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
662
|
+
},
|
|
656
663
|
height: {
|
|
657
664
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
658
665
|
description: "Height of the icon in pixels",
|
|
@@ -693,6 +700,7 @@ const storyParameters = {
|
|
|
693
700
|
export const Default: Story = {
|
|
694
701
|
args: {
|
|
695
702
|
className: "h-6 w-6 text-gray-400 ",
|
|
703
|
+
withAccessibility: true,
|
|
696
704
|
},
|
|
697
705
|
parameters: storyParameters,
|
|
698
706
|
render: (args) => (
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface DownloadIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const DownloadIcon = (props: DownloadIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
viewBox="0 0 24 24"
|
|
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="M20.25 14.75V20.25H3.75V14.75M12 3.75L12 14M8.5 11.5L12 15L15.5 11.5"
|
|
@@ -18,5 +22,11 @@ export const DownloadIcon = (
|
|
|
18
22
|
strokeWidth="1.5"
|
|
19
23
|
/>
|
|
20
24
|
</svg>
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
if (withAccessibility) {
|
|
28
|
+
return <AccessibleIcon label="Download 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 { EditBigIcon } from "."
|
|
5
5
|
|
|
@@ -203,16 +203,19 @@ function EditButton() {
|
|
|
203
203
|
</tr>
|
|
204
204
|
</thead>
|
|
205
205
|
<tbody>
|
|
206
|
-
|
|
206
|
+
{" "}
|
|
207
|
+
<tr className="!bg-black/10">
|
|
207
208
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
208
|
-
|
|
209
|
+
withAccessibility
|
|
209
210
|
</td>
|
|
210
211
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
-
|
|
212
|
+
boolean
|
|
213
|
+
</td>
|
|
214
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
215
|
+
true
|
|
212
216
|
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
214
217
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
215
|
-
|
|
218
|
+
Whether to wrap the icon with accessibility feature
|
|
216
219
|
</td>
|
|
217
220
|
</tr>
|
|
218
221
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -854,6 +857,10 @@ function EditButton() {
|
|
|
854
857
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
855
858
|
description: "Width of the icon in pixels",
|
|
856
859
|
},
|
|
860
|
+
withAccessibility: {
|
|
861
|
+
control: "boolean",
|
|
862
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
863
|
+
},
|
|
857
864
|
height: {
|
|
858
865
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
859
866
|
description: "Height of the icon in pixels",
|
|
@@ -890,6 +897,7 @@ const storyParameters = {
|
|
|
890
897
|
export const Default: Story = {
|
|
891
898
|
args: {
|
|
892
899
|
className: "h-6 w-6 text-blue-400 ",
|
|
900
|
+
withAccessibility: true,
|
|
893
901
|
},
|
|
894
902
|
parameters: storyParameters,
|
|
895
903
|
render: (args) => (
|
|
@@ -1,22 +1,32 @@
|
|
|
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 EditBigIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const EditBigIcon = (props: EditBigIconProps) => {
|
|
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="M8.75 12.25L8.21967 11.7197L8 11.9393V12.25H8.75ZM8.75 15.25H8V16H8.75V15.25ZM11.75 15.25V16H12.0607L12.2803 15.7803L11.75 15.25ZM18 3L18.5303 2.46967L18 1.93934L17.4697 2.46967L18 3ZM21 6L21.5303 6.53033L22.0607 6L21.5303 5.46967L21 6ZM20.25 20.25V21H21V20.25H20.25ZM3.75 20.25H3V21H3.75V20.25ZM3.75 3.75V3H3V3.75H3.75ZM11.25 4.5H12V3H11.25V4.5ZM21 12.75V12H19.5V12.75H21ZM8 12.25V15.25H9.5V12.25H8ZM8.75 16H11.75V14.5H8.75V16ZM9.28033 12.7803L18.5303 3.53033L17.4697 2.46967L8.21967 11.7197L9.28033 12.7803ZM17.4697 3.53033L20.4697 6.53033L21.5303 5.46967L18.5303 2.46967L17.4697 3.53033ZM20.4697 5.46967L11.2197 14.7197L12.2803 15.7803L21.5303 6.53033L20.4697 5.46967ZM20.25 19.5H3.75V21H20.25V19.5ZM4.5 20.25V3.75H3V20.25H4.5ZM3.75 4.5H11.25V3H3.75V4.5ZM19.5 12.75V20.25H21V12.75H19.5Z"
|
|
18
22
|
fill="currentColor"
|
|
19
23
|
/>
|
|
20
24
|
</svg>
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
if (withAccessibility) {
|
|
28
|
+
return <AccessibleIcon label="Edit Big icon">{svg}</AccessibleIcon>
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return svg
|
|
32
|
+
}
|