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 { PlusIcon } from "."
|
|
5
5
|
|
|
@@ -227,16 +227,19 @@ function AddButton() {
|
|
|
227
227
|
</tr>
|
|
228
228
|
</thead>
|
|
229
229
|
<tbody>
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
{" "}
|
|
231
|
+
<tr className="!bg-black/10">
|
|
232
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
233
|
+
withAccessibility
|
|
233
234
|
</td>
|
|
234
235
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
235
|
-
|
|
236
|
+
boolean
|
|
237
|
+
</td>
|
|
238
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
239
|
+
true
|
|
236
240
|
</td>
|
|
237
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
238
241
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
239
|
-
|
|
242
|
+
Whether to wrap the icon with accessibility feature
|
|
240
243
|
</td>
|
|
241
244
|
</tr>
|
|
242
245
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -923,6 +926,10 @@ function AddButton() {
|
|
|
923
926
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
924
927
|
description: "Width of the icon in pixels",
|
|
925
928
|
},
|
|
929
|
+
withAccessibility: {
|
|
930
|
+
control: "boolean",
|
|
931
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
932
|
+
},
|
|
926
933
|
height: {
|
|
927
934
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
928
935
|
description: "Height of the icon in pixels",
|
|
@@ -966,6 +973,7 @@ export const Default: Story = {
|
|
|
966
973
|
width: 24,
|
|
967
974
|
height: 24,
|
|
968
975
|
className: "text-green-400",
|
|
976
|
+
withAccessibility: true,
|
|
969
977
|
},
|
|
970
978
|
parameters: storyParameters,
|
|
971
979
|
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 PlusIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PlusIcon = (props: PlusIconProps) => {
|
|
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="M12 6.75V12M12 12V17.25M12 12H6.75M12 12H17.25"
|
|
@@ -20,5 +24,11 @@ export const PlusIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Plus 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 { SearchIcon } from "."
|
|
5
5
|
|
|
@@ -231,16 +231,19 @@ function SearchInput() {
|
|
|
231
231
|
</tr>
|
|
232
232
|
</thead>
|
|
233
233
|
<tbody>
|
|
234
|
-
|
|
234
|
+
{" "}
|
|
235
|
+
<tr className="!bg-black/10">
|
|
235
236
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
236
|
-
|
|
237
|
+
withAccessibility
|
|
237
238
|
</td>
|
|
238
239
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
239
|
-
|
|
240
|
+
boolean
|
|
241
|
+
</td>
|
|
242
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
243
|
+
true
|
|
240
244
|
</td>
|
|
241
|
-
<td className="px-6 py-4 text-sm !text-white/50">14</td>
|
|
242
245
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
243
|
-
|
|
246
|
+
Whether to wrap the icon with accessibility feature
|
|
244
247
|
</td>
|
|
245
248
|
</tr>
|
|
246
249
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -962,6 +965,10 @@ function SearchInput() {
|
|
|
962
965
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
963
966
|
description: "Width of the icon in pixels",
|
|
964
967
|
},
|
|
968
|
+
withAccessibility: {
|
|
969
|
+
control: "boolean",
|
|
970
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
971
|
+
},
|
|
965
972
|
height: {
|
|
966
973
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
967
974
|
description: "Height of the icon in pixels",
|
|
@@ -1005,6 +1012,7 @@ export const Default: Story = {
|
|
|
1005
1012
|
width: 24,
|
|
1006
1013
|
height: 24,
|
|
1007
1014
|
className: "text-blue-400",
|
|
1015
|
+
withAccessibility: true,
|
|
1008
1016
|
},
|
|
1009
1017
|
parameters: storyParameters,
|
|
1010
1018
|
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 SearchIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const SearchIcon = (props: SearchIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
width="14"
|
|
10
14
|
height="14"
|
|
11
15
|
viewBox="0 0 14 14"
|
|
12
16
|
fill="none"
|
|
13
17
|
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<path
|
|
17
21
|
d="M12.333 12.333 9.751 9.751m0 0a4.833 4.833 0 1 0-6.835-6.835A4.833 4.833 0 0 0 9.75 9.75Z"
|
|
@@ -20,5 +24,11 @@ export const SearchIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Search 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 { SettingIcon } 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">12</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 CustomSettingIcon({ label = "Settings", ...props }) {
|
|
|
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-blue-400",
|
|
846
|
+
withAccessibility: true,
|
|
839
847
|
},
|
|
840
848
|
parameters: storyParameters,
|
|
841
849
|
render: (args) => (
|
|
@@ -1,30 +1,38 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
4
|
+
export interface SettingIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const SettingIcon = (props: SettingIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
12
|
+
<svg
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
width="12"
|
|
15
|
+
height="12"
|
|
16
|
+
viewBox="0 0 12 12"
|
|
17
|
+
fill="none"
|
|
18
|
+
{...svgProps}
|
|
19
|
+
>
|
|
20
|
+
<path
|
|
21
|
+
d="M4.6125 2.7625L3.10938 2.41562L2.41562 3.10938L2.7625 4.6125L1.375 5.5375V6.4625L2.7625 7.3875L2.41562 8.89062L3.10938 9.58437L4.6125 9.2375L5.5375 10.625H6.4625L7.3875 9.2375L8.89062 9.58437L9.58437 8.89062L9.2375 7.3875L10.625 6.4625V5.5375L9.2375 4.6125L9.58437 3.10938L8.89062 2.41562L7.3875 2.7625L6.4625 1.375H5.5375L4.6125 2.7625Z"
|
|
22
|
+
stroke="currentColor"
|
|
23
|
+
strokeWidth="0.75"
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
d="M7.375 6C7.375 6.75939 6.75939 7.375 6 7.375C5.24061 7.375 4.625 6.75939 4.625 6C4.625 5.24061 5.24061 4.625 6 4.625C6.75939 4.625 7.375 5.24061 7.375 6Z"
|
|
27
|
+
stroke="currentColor"
|
|
28
|
+
strokeWidth="0.75"
|
|
29
|
+
/>
|
|
30
|
+
</svg>
|
|
29
31
|
)
|
|
32
|
+
|
|
33
|
+
if (withAccessibility) {
|
|
34
|
+
return <AccessibleIcon label="Setting Icon">{svg}</AccessibleIcon>
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return svg
|
|
30
38
|
}
|
|
@@ -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 { ShareIcon } from "."
|
|
5
5
|
|
|
@@ -196,16 +196,19 @@ function MyComponent() {
|
|
|
196
196
|
</tr>
|
|
197
197
|
</thead>
|
|
198
198
|
<tbody>
|
|
199
|
-
|
|
199
|
+
{" "}
|
|
200
|
+
<tr className="!bg-black/10">
|
|
200
201
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
201
|
-
|
|
202
|
+
withAccessibility
|
|
202
203
|
</td>
|
|
203
204
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
204
|
-
|
|
205
|
+
boolean
|
|
206
|
+
</td>
|
|
207
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
208
|
+
true
|
|
205
209
|
</td>
|
|
206
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
207
210
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
208
|
-
|
|
211
|
+
Whether to wrap the icon with accessibility feature
|
|
209
212
|
</td>
|
|
210
213
|
</tr>
|
|
211
214
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -851,6 +854,10 @@ function CustomShareIcon({ label = "Share", ...props }) {
|
|
|
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",
|
|
@@ -885,6 +892,7 @@ export const Default: Story = {
|
|
|
885
892
|
width: 24,
|
|
886
893
|
height: 24,
|
|
887
894
|
className: "text-blue-400",
|
|
895
|
+
withAccessibility: true,
|
|
888
896
|
},
|
|
889
897
|
parameters: storyParameters,
|
|
890
898
|
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 ShareIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ShareIcon = (props: ShareIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
14
|
width="24"
|
|
@@ -14,9 +18,15 @@ export const ShareIcon = (
|
|
|
14
18
|
stroke="currentColor"
|
|
15
19
|
strokeWidth="1.5"
|
|
16
20
|
strokeLinecap="square"
|
|
17
|
-
{...
|
|
21
|
+
{...svgProps}
|
|
18
22
|
>
|
|
19
23
|
<path d="M2.75 7.75V19.25H19.25M16.75 4.25L20.25 7.75L16.75 11.25M7.75 13.75V12.75C7.75 9.98858 9.98858 7.75 12.75 7.75H19.5" />
|
|
20
24
|
</svg>
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
if (withAccessibility) {
|
|
28
|
+
return <AccessibleIcon label="Share 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 { ShieldIcon } from "."
|
|
5
5
|
|
|
@@ -199,16 +199,19 @@ function SecurityBadge() {
|
|
|
199
199
|
</tr>
|
|
200
200
|
</thead>
|
|
201
201
|
<tbody>
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
{" "}
|
|
203
|
+
<tr className="!bg-black/10">
|
|
204
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
205
|
+
withAccessibility
|
|
205
206
|
</td>
|
|
206
207
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
207
|
-
|
|
208
|
+
boolean
|
|
209
|
+
</td>
|
|
210
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
211
|
+
true
|
|
208
212
|
</td>
|
|
209
|
-
<td className="px-6 py-4 text-sm !text-white/50">15</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">
|
|
@@ -779,6 +782,10 @@ function SecurityBadge() {
|
|
|
779
782
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
780
783
|
description: "Width of the icon in pixels",
|
|
781
784
|
},
|
|
785
|
+
withAccessibility: {
|
|
786
|
+
control: "boolean",
|
|
787
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
788
|
+
},
|
|
782
789
|
height: {
|
|
783
790
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
784
791
|
description: "Height of the icon in pixels",
|
|
@@ -815,6 +822,7 @@ const storyParameters = {
|
|
|
815
822
|
export const Default: Story = {
|
|
816
823
|
args: {
|
|
817
824
|
className: "h-8 w-8",
|
|
825
|
+
withAccessibility: true,
|
|
818
826
|
},
|
|
819
827
|
parameters: storyParameters,
|
|
820
828
|
render: (args) => (
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
export interface ShieldIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ShieldIcon = (props: ShieldIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
12
|
+
<svg
|
|
13
|
+
width="15"
|
|
14
|
+
height="16"
|
|
15
|
+
viewBox="0 0 15 16"
|
|
16
|
+
fill="currentColor"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
{...svgProps}
|
|
19
|
+
>
|
|
20
|
+
<path d="M6.48281 0.0990777C6.79111 -0.0162721 7.12796 -0.0313102 7.44531 0.0561089L7.57969 0.0990777L13.0484 2.14986C13.3257 2.25384 13.5678 2.43447 13.7463 2.67072C13.9249 2.90697 14.0326 3.1891 14.057 3.48423L14.0625 3.61314V7.80298C14.0625 9.06894 13.7207 10.3114 13.0731 11.3992C12.4256 12.4871 11.4964 13.3799 10.3836 13.9835L10.1758 14.092L7.55547 15.4022C7.41119 15.4742 7.2536 15.5157 7.09255 15.5241C6.93151 15.5324 6.77047 15.5074 6.61953 15.4506L6.50703 15.4022L3.88672 14.092C2.75438 13.5259 1.79592 12.6645 1.1125 11.5988C0.429088 10.5331 0.0460784 9.30265 0.00390619 8.03736L0 7.80298V3.61314C4.54301e-06 3.31715 0.0840832 3.02724 0.242448 2.77718C0.400813 2.52712 0.626949 2.32718 0.894531 2.20064L1.01406 2.14986L6.48281 0.0990777ZM7.03125 1.56236L1.5625 3.61314V7.80298C1.56252 8.78346 1.82614 9.7459 2.32575 10.5895C2.82536 11.4332 3.54259 12.127 4.40234 12.5983L4.58594 12.6944L7.03125 13.917L9.47656 12.6944C10.3537 12.2559 11.0968 11.5896 11.628 10.7654C12.1593 9.94111 12.4591 8.98916 12.4961 8.00923L12.5 7.80298V3.61314L7.03125 1.56236ZM9.71328 5.12564C9.85387 4.98552 10.0425 4.90418 10.2409 4.89812C10.4393 4.89206 10.6326 4.96175 10.7815 5.09302C10.9303 5.2243 11.0237 5.40732 11.0425 5.60492C11.0613 5.80251 11.0042 5.99987 10.8828 6.15689L10.818 6.23033L6.72891 10.3202C6.57996 10.4691 6.3815 10.5581 6.17123 10.5704C5.96095 10.5826 5.75351 10.5172 5.58828 10.3866L5.51328 10.3202L3.63516 8.44205C3.49355 8.30178 3.41091 8.11269 3.40415 7.91349C3.3974 7.71429 3.46703 7.52004 3.5988 7.3705C3.73057 7.22096 3.91452 7.12744 4.11299 7.10907C4.31146 7.09071 4.50944 7.1489 4.66641 7.27173L4.73984 7.33658L6.12109 8.71783L9.71328 5.12564Z" />
|
|
21
|
+
</svg>
|
|
20
22
|
)
|
|
23
|
+
|
|
24
|
+
if (withAccessibility) {
|
|
25
|
+
return <AccessibleIcon label="Shield icon">{svg}</AccessibleIcon>
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return svg
|
|
21
29
|
}
|
|
@@ -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 { SiteLogoIcon } from "."
|
|
5
5
|
|
|
@@ -219,16 +219,19 @@ function Header() {
|
|
|
219
219
|
</tr>
|
|
220
220
|
</thead>
|
|
221
221
|
<tbody>
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
{" "}
|
|
223
|
+
<tr className="!bg-black/10">
|
|
224
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
225
|
+
withAccessibility
|
|
225
226
|
</td>
|
|
226
227
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
227
|
-
|
|
228
|
+
boolean
|
|
229
|
+
</td>
|
|
230
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
231
|
+
true
|
|
228
232
|
</td>
|
|
229
|
-
<td className="px-6 py-4 text-sm !text-white/50">28</td>
|
|
230
233
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
231
|
-
|
|
234
|
+
Whether to wrap the icon with accessibility feature
|
|
232
235
|
</td>
|
|
233
236
|
</tr>
|
|
234
237
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -937,6 +940,10 @@ import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
|
937
940
|
control: { type: "range", min: 16, max: 128, step: 4 },
|
|
938
941
|
description: "Width of the logo in pixels",
|
|
939
942
|
},
|
|
943
|
+
withAccessibility: {
|
|
944
|
+
control: "boolean",
|
|
945
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
946
|
+
},
|
|
940
947
|
height: {
|
|
941
948
|
control: { type: "range", min: 16, max: 128, step: 4 },
|
|
942
949
|
description: "Height of the logo in pixels",
|
|
@@ -965,6 +972,7 @@ const storyParameters = {
|
|
|
965
972
|
export const Default: Story = {
|
|
966
973
|
args: {
|
|
967
974
|
className: "h-8 w-8",
|
|
975
|
+
withAccessibility: true,
|
|
968
976
|
},
|
|
969
977
|
parameters: storyParameters,
|
|
970
978
|
render: (args) => (
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export interface SiteLogoIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const SiteLogoIcon = (props: SiteLogoIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
6
12
|
<svg
|
|
7
13
|
width="28"
|
|
8
14
|
height="22"
|
|
9
15
|
viewBox="0 0 128 128"
|
|
10
16
|
fill="none"
|
|
11
17
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
13
19
|
>
|
|
14
20
|
<g clipPath="url(#clip0_1398_2427)">
|
|
15
21
|
<path
|
|
@@ -75,5 +81,11 @@ export const SiteLogoIcon = (props: React.SVGProps<SVGSVGElement>) => (
|
|
|
75
81
|
</clipPath>
|
|
76
82
|
</defs>
|
|
77
83
|
</svg>
|
|
78
|
-
|
|
79
|
-
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
if (withAccessibility) {
|
|
87
|
+
return <AccessibleIcon label="Site Logo icon">{svg}</AccessibleIcon>
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return svg
|
|
91
|
+
}
|
|
@@ -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 { SkipBackwardIcon } from "."
|
|
5
5
|
|
|
@@ -203,16 +203,19 @@ function MediaPlayer() {
|
|
|
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">37</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">
|
|
@@ -823,6 +826,10 @@ function MediaPlayer() {
|
|
|
823
826
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
824
827
|
description: "Width of the icon in pixels",
|
|
825
828
|
},
|
|
829
|
+
withAccessibility: {
|
|
830
|
+
control: "boolean",
|
|
831
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
832
|
+
},
|
|
826
833
|
height: {
|
|
827
834
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
828
835
|
description: "Height of the icon in pixels",
|
|
@@ -863,6 +870,7 @@ const storyParameters = {
|
|
|
863
870
|
export const Default: Story = {
|
|
864
871
|
args: {
|
|
865
872
|
className: "h-8 w-8 text-orange-400",
|
|
873
|
+
withAccessibility: true,
|
|
866
874
|
},
|
|
867
875
|
parameters: storyParameters,
|
|
868
876
|
render: (args) => (
|