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 { NotesIcon } from "."
|
|
5
5
|
|
|
@@ -221,16 +221,19 @@ function NoteInput() {
|
|
|
221
221
|
</tr>
|
|
222
222
|
</thead>
|
|
223
223
|
<tbody>
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
{" "}
|
|
225
|
+
<tr className="!bg-black/10">
|
|
226
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
227
|
+
withAccessibility
|
|
227
228
|
</td>
|
|
228
229
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
229
|
-
|
|
230
|
+
boolean
|
|
231
|
+
</td>
|
|
232
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
233
|
+
true
|
|
230
234
|
</td>
|
|
231
|
-
<td className="px-6 py-4 text-sm !text-white/50">20</td>
|
|
232
235
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
233
|
-
|
|
236
|
+
Whether to wrap the icon with accessibility feature
|
|
234
237
|
</td>
|
|
235
238
|
</tr>
|
|
236
239
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -892,6 +895,10 @@ function NoteInput() {
|
|
|
892
895
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
893
896
|
description: "Width of the icon in pixels",
|
|
894
897
|
},
|
|
898
|
+
withAccessibility: {
|
|
899
|
+
control: "boolean",
|
|
900
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
901
|
+
},
|
|
895
902
|
height: {
|
|
896
903
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
897
904
|
description: "Height of the icon in pixels",
|
|
@@ -931,6 +938,7 @@ export const Default: Story = {
|
|
|
931
938
|
width: 24,
|
|
932
939
|
height: 24,
|
|
933
940
|
className: "text-indigo-400 ",
|
|
941
|
+
withAccessibility: true,
|
|
934
942
|
},
|
|
935
943
|
parameters: storyParameters,
|
|
936
944
|
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 NotesIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const NotesIcon = (props: NotesIconProps) => {
|
|
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
|
strokeLinecap="square"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<path d="M3.25 12H5.25" />
|
|
17
21
|
<path d="M9.75 12H12.25" />
|
|
@@ -20,5 +24,11 @@ export const NotesIcon = (
|
|
|
20
24
|
<path d="M3.25 15.75H5.25" />
|
|
21
25
|
<path d="M4.25 3.25H19.75V20.75H4.25V3.25Z" />
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Notes 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 { PageSearchIcon } from "."
|
|
5
5
|
|
|
@@ -225,16 +225,19 @@ function SearchBar() {
|
|
|
225
225
|
</tr>
|
|
226
226
|
</thead>
|
|
227
227
|
<tbody>
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
{" "}
|
|
229
|
+
<tr className="!bg-black/10">
|
|
230
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
231
|
+
withAccessibility
|
|
231
232
|
</td>
|
|
232
233
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
233
|
-
|
|
234
|
+
boolean
|
|
235
|
+
</td>
|
|
236
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
237
|
+
true
|
|
234
238
|
</td>
|
|
235
|
-
<td className="px-6 py-4 text-sm !text-white/50">20</td>
|
|
236
239
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
237
|
-
|
|
240
|
+
Whether to wrap the icon with accessibility feature
|
|
238
241
|
</td>
|
|
239
242
|
</tr>
|
|
240
243
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -896,6 +899,10 @@ function SearchBar() {
|
|
|
896
899
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
897
900
|
description: "Width of the icon in pixels",
|
|
898
901
|
},
|
|
902
|
+
withAccessibility: {
|
|
903
|
+
control: "boolean",
|
|
904
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
905
|
+
},
|
|
899
906
|
height: {
|
|
900
907
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
901
908
|
description: "Height of the icon in pixels",
|
|
@@ -935,6 +942,7 @@ export const Default: Story = {
|
|
|
935
942
|
width: 24,
|
|
936
943
|
height: 24,
|
|
937
944
|
className: "text-indigo-400 ",
|
|
945
|
+
withAccessibility: true,
|
|
938
946
|
},
|
|
939
947
|
parameters: storyParameters,
|
|
940
948
|
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 PageSearchIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PageSearchIcon = (props: PageSearchIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
viewBox="0 0 20 20"
|
|
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.54232 17.7083H3.95898V2.29163H16.0423V8.95829M17.084 17.9166L15.9781 16.7751M15.9781 16.7751C16.5332 16.211 16.8757 15.4372 16.8757 14.5833C16.8757 12.8574 15.4765 11.4583 13.7507 11.4583C12.0248 11.4583 10.6257 12.8574 10.6257 14.5833C10.6257 16.3092 12.0248 17.7083 13.7507 17.7083C14.6227 17.7083 15.4113 17.3511 15.9781 16.7751Z"
|
|
17
21
|
strokeLinecap="square"
|
|
18
22
|
/>
|
|
19
23
|
</svg>
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
if (withAccessibility) {
|
|
27
|
+
return <AccessibleIcon label="Page Search 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 { PaintRollIcon } from "."
|
|
5
5
|
|
|
@@ -202,16 +202,19 @@ function MyComponent() {
|
|
|
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">18</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">
|
|
@@ -775,6 +778,10 @@ function CustomPaintRollIcon({ label = "Styling tool", ...props }) {
|
|
|
775
778
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
776
779
|
description: "Width of the icon in pixels",
|
|
777
780
|
},
|
|
781
|
+
withAccessibility: {
|
|
782
|
+
control: "boolean",
|
|
783
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
784
|
+
},
|
|
778
785
|
height: {
|
|
779
786
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
780
787
|
description: "Height of the icon in pixels",
|
|
@@ -813,6 +820,7 @@ export const Default: Story = {
|
|
|
813
820
|
width: 24,
|
|
814
821
|
height: 24,
|
|
815
822
|
className: "text-indigo-400",
|
|
823
|
+
withAccessibility: true,
|
|
816
824
|
},
|
|
817
825
|
parameters: storyParameters,
|
|
818
826
|
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 PaintRollIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PaintRollIcon = (props: PaintRollIconProps) => {
|
|
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="18"
|
|
11
15
|
height="18"
|
|
12
16
|
viewBox="0 0 18 18"
|
|
13
17
|
fill="none"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<path
|
|
17
21
|
d="M5.0625 5.25V7.6875H15.1875V2.8125H5.0625V5.25ZM5.0625 5.25H2.8125V9.9375H9.75V11.625M11.4375 15.9375V13.6875C11.4375 12.7555 10.682 12 9.75 12C8.81802 12 8.0625 12.7555 8.0625 13.6875V15.9375"
|
|
@@ -20,5 +24,11 @@ export const PaintRollIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Paint Roll 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 { PaperPlaneIcon } from "."
|
|
5
5
|
|
|
@@ -207,16 +207,19 @@ function SendMessageButton({ onSend }) {
|
|
|
207
207
|
</tr>
|
|
208
208
|
</thead>
|
|
209
209
|
<tbody>
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
{" "}
|
|
211
|
+
<tr className="!bg-black/10">
|
|
212
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
213
|
+
withAccessibility
|
|
213
214
|
</td>
|
|
214
215
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
215
|
-
|
|
216
|
+
boolean
|
|
217
|
+
</td>
|
|
218
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
219
|
+
true
|
|
216
220
|
</td>
|
|
217
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
218
221
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
219
|
-
|
|
222
|
+
Whether to wrap the icon with accessibility feature
|
|
220
223
|
</td>
|
|
221
224
|
</tr>
|
|
222
225
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -718,6 +721,10 @@ function SendMessageButton({ onSend }) {
|
|
|
718
721
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
719
722
|
description: "Width of the icon in pixels",
|
|
720
723
|
},
|
|
724
|
+
withAccessibility: {
|
|
725
|
+
control: "boolean",
|
|
726
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
727
|
+
},
|
|
721
728
|
height: {
|
|
722
729
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
723
730
|
description: "Height of the icon in pixels",
|
|
@@ -756,6 +763,7 @@ export const Default: Story = {
|
|
|
756
763
|
width: 24,
|
|
757
764
|
height: 24,
|
|
758
765
|
className: "text-purple-400 ",
|
|
766
|
+
withAccessibility: true,
|
|
759
767
|
},
|
|
760
768
|
parameters: storyParameters,
|
|
761
769
|
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 PaperPlaneIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PaperPlaneIcon = (props: PaperPlaneIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
viewBox="0 0 16 16"
|
|
10
14
|
fill="none"
|
|
11
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
16
|
stroke="currentColor"
|
|
13
|
-
{...
|
|
17
|
+
{...svgProps}
|
|
14
18
|
>
|
|
15
19
|
<g clipPath="url(#clip0_1726_103387)">
|
|
16
20
|
<path
|
|
@@ -29,5 +33,11 @@ export const PaperPlaneIcon = (
|
|
|
29
33
|
</clipPath>
|
|
30
34
|
</defs>
|
|
31
35
|
</svg>
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
if (withAccessibility) {
|
|
39
|
+
return <AccessibleIcon label="Paper Plane Icon">{svg}</AccessibleIcon>
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return svg
|
|
43
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
4
|
import { PauseIcon } from "."
|
|
5
5
|
|
|
@@ -199,16 +199,19 @@ function MediaPlayer() {
|
|
|
199
199
|
</tr>
|
|
200
200
|
</thead>
|
|
201
201
|
<tbody>
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
{" "}
|
|
203
|
+
<tr className="!bg-black/10">
|
|
204
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
205
|
+
withAccessibility
|
|
205
206
|
</td>
|
|
206
207
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
207
|
-
|
|
208
|
+
boolean
|
|
209
|
+
</td>
|
|
210
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
211
|
+
true
|
|
208
212
|
</td>
|
|
209
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
210
213
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
-
|
|
214
|
+
Whether to wrap the icon with accessibility feature
|
|
212
215
|
</td>
|
|
213
216
|
</tr>
|
|
214
217
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -842,6 +845,10 @@ function MediaPlayer() {
|
|
|
842
845
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
843
846
|
description: "Width of the icon in pixels",
|
|
844
847
|
},
|
|
848
|
+
withAccessibility: {
|
|
849
|
+
control: "boolean",
|
|
850
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
851
|
+
},
|
|
845
852
|
height: {
|
|
846
853
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
847
854
|
description: "Height of the icon in pixels",
|
|
@@ -882,6 +889,7 @@ const storyParameters = {
|
|
|
882
889
|
export const Default: Story = {
|
|
883
890
|
args: {
|
|
884
891
|
className: "h-8 w-8 text-red-400",
|
|
892
|
+
withAccessibility: true,
|
|
885
893
|
},
|
|
886
894
|
parameters: storyParameters,
|
|
887
895
|
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 PauseIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PauseIcon = (props: PauseIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
14
|
width="24"
|
|
@@ -13,7 +17,7 @@ export const PauseIcon = (
|
|
|
13
17
|
fill="none"
|
|
14
18
|
stroke="currentColor"
|
|
15
19
|
strokeWidth="1.5"
|
|
16
|
-
{...
|
|
20
|
+
{...svgProps}
|
|
17
21
|
>
|
|
18
22
|
<path
|
|
19
23
|
d="M4.75 3.75H9.25V20.25H4.75V3.75Z"
|
|
@@ -26,5 +30,11 @@ export const PauseIcon = (
|
|
|
26
30
|
strokeWidth="1.5"
|
|
27
31
|
/>
|
|
28
32
|
</svg>
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
if (withAccessibility) {
|
|
36
|
+
return <AccessibleIcon label="Pause icon">{svg}</AccessibleIcon>
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return svg
|
|
40
|
+
}
|
|
@@ -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 { PencilIcon } from "."
|
|
5
5
|
|
|
@@ -220,16 +220,19 @@ function EditButton() {
|
|
|
220
220
|
</tr>
|
|
221
221
|
</thead>
|
|
222
222
|
<tbody>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
{" "}
|
|
224
|
+
<tr className="!bg-black/10">
|
|
225
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
226
|
+
withAccessibility
|
|
226
227
|
</td>
|
|
227
228
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
228
|
-
|
|
229
|
+
boolean
|
|
230
|
+
</td>
|
|
231
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
232
|
+
true
|
|
229
233
|
</td>
|
|
230
|
-
<td className="px-6 py-4 text-sm !text-white/50">16</td>
|
|
231
234
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
232
|
-
|
|
235
|
+
Whether to wrap the icon with accessibility feature
|
|
233
236
|
</td>
|
|
234
237
|
</tr>
|
|
235
238
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -899,6 +902,10 @@ function EditButton() {
|
|
|
899
902
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
900
903
|
description: "Width of the icon in pixels",
|
|
901
904
|
},
|
|
905
|
+
withAccessibility: {
|
|
906
|
+
control: "boolean",
|
|
907
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
908
|
+
},
|
|
902
909
|
height: {
|
|
903
910
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
904
911
|
description: "Height of the icon in pixels",
|
|
@@ -942,6 +949,7 @@ export const Default: Story = {
|
|
|
942
949
|
width: 24,
|
|
943
950
|
height: 24,
|
|
944
951
|
className: "text-indigo-400",
|
|
952
|
+
withAccessibility: true,
|
|
945
953
|
},
|
|
946
954
|
parameters: storyParameters,
|
|
947
955
|
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 PencilIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PencilIcon = (props: PencilIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
viewBox="0 0 16 16"
|
|
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.8335 4.16667L11.0002 2L14.0002 5L11.8335 7.16667M8.8335 4.16667L1.8335 11.1667V14.1667H4.8335L11.8335 7.16667M8.8335 4.16667L11.8335 7.16667"
|
|
17
21
|
strokeLinecap="round"
|
|
18
22
|
/>
|
|
19
23
|
</svg>
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
if (withAccessibility) {
|
|
27
|
+
return <AccessibleIcon label="Pencil 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 { PhoneIcon } from "."
|
|
5
5
|
|
|
@@ -202,16 +202,19 @@ function ContactCard() {
|
|
|
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">14</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">
|
|
@@ -814,6 +817,10 @@ function ContactCard() {
|
|
|
814
817
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
815
818
|
description: "Width of the icon in pixels",
|
|
816
819
|
},
|
|
820
|
+
withAccessibility: {
|
|
821
|
+
control: "boolean",
|
|
822
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
823
|
+
},
|
|
817
824
|
height: {
|
|
818
825
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
819
826
|
description: "Height of the icon in pixels",
|
|
@@ -854,6 +861,7 @@ const storyParameters = {
|
|
|
854
861
|
export const Default: Story = {
|
|
855
862
|
args: {
|
|
856
863
|
className: "h-8 w-8",
|
|
864
|
+
withAccessibility: true,
|
|
857
865
|
},
|
|
858
866
|
parameters: storyParameters,
|
|
859
867
|
render: (args) => (
|
|
@@ -1,26 +1,34 @@
|
|
|
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
|
-
|
|
4
|
+
export interface PhoneIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PhoneIcon = (props: PhoneIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
12
|
+
<svg
|
|
13
|
+
width="14"
|
|
14
|
+
height="14"
|
|
15
|
+
viewBox="0 0 14 14"
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
{...svgProps}
|
|
19
|
+
>
|
|
20
|
+
<path
|
|
21
|
+
d="M5.68752 11.2298H8.31252M3.35419 1.02148H10.6459V12.9798H3.35419V1.02148Z"
|
|
22
|
+
stroke="currentColor"
|
|
23
|
+
strokeWidth="1.2"
|
|
24
|
+
strokeLinecap="square"
|
|
25
|
+
/>
|
|
26
|
+
</svg>
|
|
25
27
|
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Phone icon">{svg}</AccessibleIcon>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return svg
|
|
26
34
|
}
|