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 { LayoutColumnIcon } from "."
|
|
5
5
|
|
|
@@ -203,16 +203,19 @@ function MyComponent() {
|
|
|
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">18</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">
|
|
@@ -804,6 +807,10 @@ function CustomLayoutColumnIcon({ label = "Switch to two column layout", ...prop
|
|
|
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",
|
|
@@ -838,6 +845,7 @@ export const Default: Story = {
|
|
|
838
845
|
width: 24,
|
|
839
846
|
height: 24,
|
|
840
847
|
className: "text-blue-400",
|
|
848
|
+
withAccessibility: true,
|
|
841
849
|
},
|
|
842
850
|
parameters: storyParameters,
|
|
843
851
|
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 LayoutColumnIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const LayoutColumnIcon = (props: LayoutColumnIconProps) => {
|
|
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="M15.1875 2.8125H15.9375V2.0625H15.1875V2.8125ZM15.1875 15.1875V15.9375H15.9375V15.1875H15.1875ZM2.8125 15.1875H2.0625V15.9375H2.8125V15.1875ZM2.8125 2.8125V2.0625H2.0625V2.8125H2.8125ZM15.1875 2.8125H14.4375V15.1875H15.1875H15.9375V2.8125H15.1875ZM15.1875 15.1875V14.4375H2.8125V15.1875V15.9375H15.1875V15.1875ZM2.8125 15.1875H3.5625V2.8125H2.8125H2.0625V15.1875H2.8125ZM2.8125 2.8125V3.5625H15.1875V2.8125V2.0625H2.8125V2.8125Z"
|
|
@@ -19,5 +23,11 @@ export const LayoutColumnIcon = (
|
|
|
19
23
|
/>
|
|
20
24
|
<path d="M9 2.8125H8.25V15.1875H9H9.75V2.8125H9Z" fill="currentColor" />
|
|
21
25
|
</svg>
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
if (withAccessibility) {
|
|
29
|
+
return <AccessibleIcon label="Layout Column 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 { LayoutLeftIcon } from "."
|
|
5
5
|
|
|
@@ -203,16 +203,19 @@ function MyComponent() {
|
|
|
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">16</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">
|
|
@@ -778,6 +781,10 @@ function CustomLayoutLeftIcon({ label = "Toggle left sidebar", ...props }) {
|
|
|
778
781
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
779
782
|
description: "Width of the icon in pixels",
|
|
780
783
|
},
|
|
784
|
+
withAccessibility: {
|
|
785
|
+
control: "boolean",
|
|
786
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
787
|
+
},
|
|
781
788
|
height: {
|
|
782
789
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
783
790
|
description: "Height of the icon in pixels",
|
|
@@ -812,6 +819,7 @@ export const Default: Story = {
|
|
|
812
819
|
width: 24,
|
|
813
820
|
height: 24,
|
|
814
821
|
className: "text-cyan-400",
|
|
822
|
+
withAccessibility: true,
|
|
815
823
|
},
|
|
816
824
|
parameters: storyParameters,
|
|
817
825
|
render: (args) => (
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface LayoutLeftIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const LayoutLeftIcon = (props: LayoutLeftIconProps) => {
|
|
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="none"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<path
|
|
17
21
|
d="M2.5 2.5L2.5 1.75L1.75 1.75V2.5H2.5ZM13.5 2.5H14.25V1.75L13.5 1.75V2.5ZM13.5 13.5V14.25H14.25V13.5H13.5ZM2.5 13.5H1.75V14.25H2.5V13.5ZM2.5 2.5L2.5 3.25L13.5 3.25V2.5V1.75L2.5 1.75L2.5 2.5ZM13.5 2.5H12.75V13.5H13.5H14.25V2.5H13.5ZM13.5 13.5V12.75H2.5V13.5V14.25H13.5V13.5ZM2.5 13.5H3.25V2.5H2.5H1.75V13.5H2.5Z"
|
|
@@ -22,5 +26,11 @@ export const LayoutLeftIcon = (
|
|
|
22
26
|
fill="currentColor"
|
|
23
27
|
/>
|
|
24
28
|
</svg>
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
if (withAccessibility) {
|
|
32
|
+
return <AccessibleIcon label="Layout Left Icon">{svg}</AccessibleIcon>
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return svg
|
|
36
|
+
}
|
|
@@ -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 { LayoutRightIcon } from "."
|
|
5
5
|
|
|
@@ -203,16 +203,19 @@ function MyComponent() {
|
|
|
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">16</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">
|
|
@@ -771,6 +774,10 @@ function CustomLayoutRightIcon({ label = "Toggle right sidebar", ...props }) {
|
|
|
771
774
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
772
775
|
description: "Width of the icon in pixels",
|
|
773
776
|
},
|
|
777
|
+
withAccessibility: {
|
|
778
|
+
control: "boolean",
|
|
779
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
780
|
+
},
|
|
774
781
|
height: {
|
|
775
782
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
776
783
|
description: "Height of the icon in pixels",
|
|
@@ -805,6 +812,7 @@ export const Default: Story = {
|
|
|
805
812
|
width: 24,
|
|
806
813
|
height: 24,
|
|
807
814
|
className: "text-emerald-400",
|
|
815
|
+
withAccessibility: true,
|
|
808
816
|
},
|
|
809
817
|
parameters: storyParameters,
|
|
810
818
|
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 LayoutRightIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const LayoutRightIcon = (props: LayoutRightIconProps) => {
|
|
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="none"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<path
|
|
17
21
|
d="M13.5 2.5H14.25V1.75L13.5 1.75V2.5ZM2.5 2.5L2.5 1.75L1.75 1.75L1.75 2.5L2.5 2.5ZM2.5 13.5H1.75L1.75 14.25H2.5V13.5ZM13.5 13.5V14.25H14.25V13.5H13.5ZM13.5 2.5V1.75L2.5 1.75L2.5 2.5L2.5 3.25L13.5 3.25V2.5ZM2.5 2.5L1.75 2.5L1.75 13.5H2.5H3.25L3.25 2.5L2.5 2.5ZM2.5 13.5V14.25H13.5V13.5V12.75H2.5V13.5ZM13.5 13.5H14.25V2.5H13.5H12.75V13.5H13.5Z"
|
|
@@ -22,5 +26,11 @@ export const LayoutRightIcon = (
|
|
|
22
26
|
fill="currentColor"
|
|
23
27
|
/>
|
|
24
28
|
</svg>
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
if (withAccessibility) {
|
|
32
|
+
return <AccessibleIcon label="Layout Right Icon">{svg}</AccessibleIcon>
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return svg
|
|
36
|
+
}
|
|
@@ -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 { LightBulbSimpleIcon } from "."
|
|
5
5
|
|
|
@@ -217,16 +217,19 @@ function FeatureCard() {
|
|
|
217
217
|
</tr>
|
|
218
218
|
</thead>
|
|
219
219
|
<tbody>
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
{" "}
|
|
221
|
+
<tr className="!bg-black/10">
|
|
222
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
223
|
+
withAccessibility
|
|
223
224
|
</td>
|
|
224
225
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
225
|
-
|
|
226
|
+
boolean
|
|
227
|
+
</td>
|
|
228
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
229
|
+
true
|
|
226
230
|
</td>
|
|
227
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
228
231
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
229
|
-
|
|
232
|
+
Whether to wrap the icon with accessibility feature
|
|
230
233
|
</td>
|
|
231
234
|
</tr>
|
|
232
235
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -972,6 +975,10 @@ function FeatureCard() {
|
|
|
972
975
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
973
976
|
description: "Width of the icon in pixels",
|
|
974
977
|
},
|
|
978
|
+
withAccessibility: {
|
|
979
|
+
control: "boolean",
|
|
980
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
981
|
+
},
|
|
975
982
|
height: {
|
|
976
983
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
977
984
|
description: "Height of the icon in pixels",
|
|
@@ -1012,6 +1019,7 @@ const storyParameters = {
|
|
|
1012
1019
|
export const Default: Story = {
|
|
1013
1020
|
args: {
|
|
1014
1021
|
className: "h-6 w-6 text-yellow-400 ",
|
|
1022
|
+
withAccessibility: true,
|
|
1015
1023
|
},
|
|
1016
1024
|
parameters: storyParameters,
|
|
1017
1025
|
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 LightBulbSimpleIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const LightBulbSimpleIcon = (props: LightBulbSimpleIconProps) => {
|
|
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.74775 17.75V16.4838C8.33524 16.2765 7.94523 16.031 7.58239 15.7519C5.85882 14.4264 4.74805 12.3433 4.74805 10.0009C4.74805 5.99633 7.99438 2.75 11.9989 2.75C16.0035 2.75 19.2498 5.99633 19.2498 10.0009C19.2498 12.3433 18.139 14.4264 16.4155 15.7519C16.0526 16.031 15.6626 16.2765 15.2501 16.4838V17.75M8.74775 17.75V18.9988C8.74775 20.7944 10.2034 22.25 11.9989 22.25C13.7945 22.25 15.2501 20.7944 15.2501 18.9988V17.75M8.74775 17.75H15.2501"
|
|
@@ -20,5 +24,11 @@ export const LightBulbSimpleIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Light bulb 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 { LinkedInIcon } from "."
|
|
5
5
|
|
|
@@ -215,18 +215,19 @@ function ProfessionalProfile() {
|
|
|
215
215
|
</tr>
|
|
216
216
|
</thead>
|
|
217
217
|
<tbody>
|
|
218
|
-
|
|
218
|
+
{" "}
|
|
219
|
+
<tr className="!bg-black/10">
|
|
219
220
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
220
|
-
|
|
221
|
+
withAccessibility
|
|
221
222
|
</td>
|
|
222
223
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
223
|
-
|
|
224
|
+
boolean
|
|
224
225
|
</td>
|
|
225
226
|
<td className="px-6 py-4 text-sm !text-white/50">
|
|
226
|
-
|
|
227
|
+
true
|
|
227
228
|
</td>
|
|
228
229
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
229
|
-
|
|
230
|
+
Whether to wrap the icon with accessibility feature
|
|
230
231
|
</td>
|
|
231
232
|
</tr>
|
|
232
233
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -1332,6 +1333,10 @@ function ProfessionalProfile() {
|
|
|
1332
1333
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1333
1334
|
description: "Width of the icon (maintains aspect ratio)",
|
|
1334
1335
|
},
|
|
1336
|
+
withAccessibility: {
|
|
1337
|
+
control: "boolean",
|
|
1338
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
1339
|
+
},
|
|
1335
1340
|
height: {
|
|
1336
1341
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1337
1342
|
description: "Height of the icon (maintains aspect ratio)",
|
|
@@ -1368,6 +1373,7 @@ const storyParameters = {
|
|
|
1368
1373
|
export const Default: Story = {
|
|
1369
1374
|
args: {
|
|
1370
1375
|
className: "h-8 w-8 text-blue-500",
|
|
1376
|
+
withAccessibility: true,
|
|
1371
1377
|
},
|
|
1372
1378
|
parameters: storyParameters,
|
|
1373
1379
|
render: (args) => (
|
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface LinkedInIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const LinkedInIcon = (props: LinkedInIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
viewBox="0 0 18 18"
|
|
10
14
|
fill="currentColor"
|
|
11
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
-
{...
|
|
16
|
+
{...svgProps}
|
|
13
17
|
>
|
|
14
18
|
<path d="M16.65 0H1.35C0.991958 0 0.64858 0.142232 0.395406 0.395406C0.142232 0.64858 0 0.991958 0 1.35V16.65C0 17.008 0.142232 17.3514 0.395406 17.6046C0.64858 17.8578 0.991958 18 1.35 18H16.65C17.008 18 17.3514 17.8578 17.6046 17.6046C17.8578 17.3514 18 17.008 18 16.65V1.35C18 0.991958 17.8578 0.64858 17.6046 0.395406C17.3514 0.142232 17.008 0 16.65 0ZM5.4 15.3H2.7V7.2H5.4V15.3ZM4.05 5.625C3.74056 5.61616 3.4406 5.51632 3.18758 5.33797C2.93456 5.15962 2.7397 4.91066 2.62737 4.6222C2.51503 4.33374 2.49019 4.01857 2.55595 3.71607C2.6217 3.41358 2.77515 3.13716 2.9971 2.92138C3.21906 2.70559 3.49968 2.55999 3.80391 2.50278C4.10814 2.44556 4.42248 2.47927 4.70766 2.59969C4.99284 2.7201 5.23622 2.92189 5.40737 3.17983C5.57853 3.43778 5.66987 3.74044 5.67 4.05C5.66289 4.47331 5.4885 4.8766 5.18495 5.17173C4.88139 5.46685 4.47335 5.62982 4.05 5.625ZM15.3 15.3H12.6V11.034C12.6 9.756 12.06 9.297 11.358 9.297C11.1522 9.3107 10.9511 9.36493 10.7663 9.45658C10.5815 9.54822 10.4166 9.67547 10.2811 9.83102C10.1457 9.98657 10.0422 10.1674 9.97684 10.363C9.91143 10.5586 9.88532 10.7652 9.9 10.971C9.89553 11.0129 9.89553 11.0551 9.9 11.097V15.3H7.2V7.2H9.81V8.37C10.0733 7.9695 10.435 7.64331 10.8605 7.42269C11.286 7.20207 11.761 7.0944 12.24 7.11C13.635 7.11 15.264 7.884 15.264 10.404L15.3 15.3Z" />
|
|
15
19
|
</svg>
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
if (withAccessibility) {
|
|
23
|
+
return <AccessibleIcon label="LinkedIn icon">{svg}</AccessibleIcon>
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return svg
|
|
27
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
4
|
import { MagicBookIcon } from "."
|
|
5
5
|
|
|
@@ -217,16 +217,19 @@ function FeatureCard() {
|
|
|
217
217
|
</tr>
|
|
218
218
|
</thead>
|
|
219
219
|
<tbody>
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
{" "}
|
|
221
|
+
<tr className="!bg-black/10">
|
|
222
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
223
|
+
withAccessibility
|
|
223
224
|
</td>
|
|
224
225
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
225
|
-
|
|
226
|
+
boolean
|
|
227
|
+
</td>
|
|
228
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
229
|
+
true
|
|
226
230
|
</td>
|
|
227
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
228
231
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
229
|
-
|
|
232
|
+
Whether to wrap the icon with accessibility feature
|
|
230
233
|
</td>
|
|
231
234
|
</tr>
|
|
232
235
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -946,6 +949,10 @@ function FeatureCard() {
|
|
|
946
949
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
947
950
|
description: "Width of the icon in pixels",
|
|
948
951
|
},
|
|
952
|
+
withAccessibility: {
|
|
953
|
+
control: "boolean",
|
|
954
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
955
|
+
},
|
|
949
956
|
height: {
|
|
950
957
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
951
958
|
description: "Height of the icon in pixels",
|
|
@@ -978,6 +985,7 @@ const storyParameters = {
|
|
|
978
985
|
export const Default: Story = {
|
|
979
986
|
args: {
|
|
980
987
|
className: "h-6 w-6 text-purple-400 ",
|
|
988
|
+
withAccessibility: true,
|
|
981
989
|
},
|
|
982
990
|
parameters: storyParameters,
|
|
983
991
|
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 MagicBookIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const MagicBookIcon = (props: MagicBookIconProps) => {
|
|
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
|
fillRule="evenodd"
|
|
@@ -28,5 +32,11 @@ export const MagicBookIcon = (
|
|
|
28
32
|
fill="currentColor"
|
|
29
33
|
/>
|
|
30
34
|
</svg>
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
if (withAccessibility) {
|
|
38
|
+
return <AccessibleIcon label="Magic book icon">{svg}</AccessibleIcon>
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return svg
|
|
42
|
+
}
|
|
@@ -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 { MaintenanceIcon } from "."
|
|
5
5
|
|
|
@@ -215,16 +215,19 @@ function StatusCard() {
|
|
|
215
215
|
</tr>
|
|
216
216
|
</thead>
|
|
217
217
|
<tbody>
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
218
|
+
{" "}
|
|
219
|
+
<tr className="!bg-black/10">
|
|
220
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
221
|
+
withAccessibility
|
|
221
222
|
</td>
|
|
222
223
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
223
|
-
|
|
224
|
+
boolean
|
|
225
|
+
</td>
|
|
226
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
227
|
+
true
|
|
224
228
|
</td>
|
|
225
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
226
229
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
227
|
-
|
|
230
|
+
Whether to wrap the icon with accessibility feature
|
|
228
231
|
</td>
|
|
229
232
|
</tr>
|
|
230
233
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -956,6 +959,10 @@ function StatusCard() {
|
|
|
956
959
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
957
960
|
description: "Width of the icon in pixels",
|
|
958
961
|
},
|
|
962
|
+
withAccessibility: {
|
|
963
|
+
control: "boolean",
|
|
964
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
965
|
+
},
|
|
959
966
|
height: {
|
|
960
967
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
961
968
|
description: "Height of the icon in pixels",
|
|
@@ -992,6 +999,7 @@ const storyParameters = {
|
|
|
992
999
|
export const Default: Story = {
|
|
993
1000
|
args: {
|
|
994
1001
|
className: "h-6 w-6 text-orange-400 ",
|
|
1002
|
+
withAccessibility: true,
|
|
995
1003
|
},
|
|
996
1004
|
parameters: storyParameters,
|
|
997
1005
|
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 MaintenanceIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const MaintenanceIcon = (props: MaintenanceIconProps) => {
|
|
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="M14.5694 16.1111C18.259 16.1111 21.25 13.1201 21.25 9.43056C21.25 8.66012 21.1196 7.92014 20.8796 7.23149L18.1667 9.94444C17.0314 11.0797 15.1908 11.0797 14.0556 9.94444C12.9203 8.80919 12.9203 6.96858 14.0556 5.83333L16.7685 3.12038C16.0799 2.88042 15.3399 2.75 14.5694 2.75C10.8799 2.75 7.88889 5.74099 7.88889 9.43056C7.88889 10.3416 8.07124 11.21 8.40145 12.0013L2.75 17.6528L6.34722 21.25L11.9987 15.5986C12.79 15.9288 13.6584 16.1111 14.5694 16.1111Z"
|
|
@@ -19,5 +23,11 @@ export const MaintenanceIcon = (
|
|
|
19
23
|
strokeWidth="1.5"
|
|
20
24
|
/>
|
|
21
25
|
</svg>
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
if (withAccessibility) {
|
|
29
|
+
return <AccessibleIcon label="Maintenance icon">{svg}</AccessibleIcon>
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return svg
|
|
33
|
+
}
|