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 { EmailIcon } from "."
|
|
5
5
|
|
|
@@ -202,16 +202,19 @@ function ContactForm() {
|
|
|
202
202
|
</tr>
|
|
203
203
|
</thead>
|
|
204
204
|
<tbody>
|
|
205
|
-
|
|
205
|
+
{" "}
|
|
206
|
+
<tr className="!bg-black/10">
|
|
206
207
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
207
|
-
|
|
208
|
+
withAccessibility
|
|
208
209
|
</td>
|
|
209
210
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
210
|
-
|
|
211
|
+
boolean
|
|
212
|
+
</td>
|
|
213
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
214
|
+
true
|
|
211
215
|
</td>
|
|
212
|
-
<td className="px-6 py-4 text-sm !text-white/50">20</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">
|
|
@@ -767,6 +770,10 @@ function CustomEmailIcon({ label = "Email", ...props }) {
|
|
|
767
770
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
768
771
|
description: "Width of the icon in pixels",
|
|
769
772
|
},
|
|
773
|
+
withAccessibility: {
|
|
774
|
+
control: "boolean",
|
|
775
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
776
|
+
},
|
|
770
777
|
height: {
|
|
771
778
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
772
779
|
description: "Height of the icon in pixels",
|
|
@@ -801,6 +808,7 @@ export const Default: Story = {
|
|
|
801
808
|
width: 20,
|
|
802
809
|
height: 21,
|
|
803
810
|
className: "text-blue-400",
|
|
811
|
+
withAccessibility: true,
|
|
804
812
|
},
|
|
805
813
|
parameters: storyParameters,
|
|
806
814
|
render: (args) => (
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface EmailIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const EmailIcon = (props: EmailIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
width="20"
|
|
10
14
|
height="21"
|
|
11
15
|
viewBox="0 0 20 21"
|
|
12
16
|
fill="none"
|
|
13
17
|
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
15
19
|
>
|
|
16
20
|
<path
|
|
17
21
|
d="M17.7083 4.4585H18.4583V3.7085H17.7083V4.4585ZM17.7083 16.5418V17.2918H18.4583V16.5418H17.7083ZM2.29167 16.5418H1.54167V17.2918H2.29167V16.5418ZM2.29167 4.4585V3.7085H1.54167V4.4585H2.29167ZM10 11.3335L9.52507 11.914L10 12.3025L10.4749 11.914L10 11.3335ZM2.97493 4.61666L2.39446 4.14174L1.4446 5.30267L2.02507 5.7776L2.5 5.19713L2.97493 4.61666ZM17.9749 5.7776L18.5554 5.30267L17.6055 4.14174L17.0251 4.61666L17.5 5.19713L17.9749 5.7776ZM17.7083 4.4585H16.9583V16.5418H17.7083H18.4583V4.4585H17.7083ZM17.7083 16.5418V15.7918H2.29167V16.5418V17.2918H17.7083V16.5418ZM2.29167 16.5418H3.04167V4.4585H2.29167H1.54167V16.5418H2.29167ZM2.29167 4.4585V5.2085H17.7083V4.4585V3.7085H2.29167V4.4585ZM10 11.3335L10.4749 10.753L2.97493 4.61666L2.5 5.19713L2.02507 5.7776L9.52507 11.914L10 11.3335ZM17.5 5.19713L17.0251 4.61666L9.52507 10.753L10 11.3335L10.4749 11.914L17.9749 5.7776L17.5 5.19713Z"
|
|
18
22
|
fill="currentColor"
|
|
19
23
|
/>
|
|
20
24
|
</svg>
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
if (withAccessibility) {
|
|
28
|
+
return <AccessibleIcon label="Email 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 { ExpandIcon } from "."
|
|
5
5
|
|
|
@@ -203,16 +203,19 @@ function VideoPlayer() {
|
|
|
203
203
|
</tr>
|
|
204
204
|
</thead>
|
|
205
205
|
<tbody>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
{" "}
|
|
207
|
+
<tr className="!bg-black/10">
|
|
208
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
209
|
+
withAccessibility
|
|
209
210
|
</td>
|
|
210
211
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
-
|
|
212
|
+
boolean
|
|
213
|
+
</td>
|
|
214
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
215
|
+
true
|
|
212
216
|
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
214
217
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
215
|
-
|
|
218
|
+
Whether to wrap the icon with accessibility feature
|
|
216
219
|
</td>
|
|
217
220
|
</tr>
|
|
218
221
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -956,6 +959,10 @@ function VideoPlayer() {
|
|
|
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",
|
|
@@ -1001,6 +1008,7 @@ const storyParameters = {
|
|
|
1001
1008
|
export const Default: Story = {
|
|
1002
1009
|
args: {
|
|
1003
1010
|
className: "h-8 w-8 text-emerald-400",
|
|
1011
|
+
withAccessibility: true,
|
|
1004
1012
|
},
|
|
1005
1013
|
parameters: storyParameters,
|
|
1006
1014
|
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 ExpandIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ExpandIcon = (props: ExpandIconProps) => {
|
|
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 ExpandIcon = (
|
|
|
14
18
|
stroke="currentColor"
|
|
15
19
|
strokeWidth="1.5"
|
|
16
20
|
strokeLinecap="square"
|
|
17
|
-
{...
|
|
21
|
+
{...svgProps}
|
|
18
22
|
>
|
|
19
23
|
<path d="M13.75 3.75H20.25V10.25M13.75 10.25L19.4766 4.52344M10.25 13.75L4.52344 19.4766M3.75 13.75V20.25H10.25" />
|
|
20
24
|
</svg>
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
if (withAccessibility) {
|
|
28
|
+
return <AccessibleIcon label="Expand 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 { EyeCloseIcon } from "."
|
|
5
5
|
|
|
@@ -218,16 +218,18 @@ function PasswordField() {
|
|
|
218
218
|
</tr>
|
|
219
219
|
</thead>
|
|
220
220
|
<tbody>
|
|
221
|
-
<tr className="
|
|
222
|
-
<td className="px-6 py-4 font-mono text-sm !text-
|
|
223
|
-
|
|
221
|
+
<tr className="!bg-black/10">
|
|
222
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
223
|
+
withAccessibility
|
|
224
224
|
</td>
|
|
225
225
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
226
|
-
|
|
226
|
+
boolean
|
|
227
|
+
</td>
|
|
228
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
229
|
+
true
|
|
227
230
|
</td>
|
|
228
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
229
231
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
230
|
-
|
|
232
|
+
Whether to wrap the icon with accessibility feature
|
|
231
233
|
</td>
|
|
232
234
|
</tr>
|
|
233
235
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -862,6 +864,10 @@ const [showPassword, setShowPassword] = useState(false)
|
|
|
862
864
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
863
865
|
description: "Width of the icon in pixels",
|
|
864
866
|
},
|
|
867
|
+
withAccessibility: {
|
|
868
|
+
control: "boolean",
|
|
869
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
870
|
+
},
|
|
865
871
|
height: {
|
|
866
872
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
867
873
|
description: "Height of the icon in pixels",
|
|
@@ -902,6 +908,7 @@ const storyParameters = {
|
|
|
902
908
|
export const Default: Story = {
|
|
903
909
|
args: {
|
|
904
910
|
className: "h-6 w-6 text-slate-400 ",
|
|
911
|
+
withAccessibility: true,
|
|
905
912
|
},
|
|
906
913
|
parameters: storyParameters,
|
|
907
914
|
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 EyeCloseIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const EyeCloseIcon = (props: EyeCloseIconProps) => {
|
|
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"
|
|
@@ -15,12 +19,18 @@ export const EyeCloseIcon = (
|
|
|
15
19
|
strokeWidth="1"
|
|
16
20
|
strokeLinecap="round"
|
|
17
21
|
strokeLinejoin="round"
|
|
18
|
-
{...
|
|
22
|
+
{...svgProps}
|
|
19
23
|
>
|
|
20
24
|
<path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" />
|
|
21
25
|
<path d="M14.084 14.158a3 3 0 0 1-4.242-4.242" />
|
|
22
26
|
<path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" />
|
|
23
27
|
<path d="m2 2 20 20" />
|
|
24
28
|
</svg>
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
if (withAccessibility) {
|
|
32
|
+
return <AccessibleIcon label="Eye Close 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 { EyeOpenIcon } from "."
|
|
5
5
|
|
|
@@ -217,16 +217,19 @@ function PasswordField() {
|
|
|
217
217
|
</tr>
|
|
218
218
|
</thead>
|
|
219
219
|
<tbody>
|
|
220
|
-
|
|
220
|
+
{" "}
|
|
221
|
+
<tr className="!bg-black/10">
|
|
221
222
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
222
|
-
|
|
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">
|
|
@@ -872,6 +875,10 @@ const [showPassword, setShowPassword] = useState(true)
|
|
|
872
875
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
873
876
|
description: "Width of the icon in pixels",
|
|
874
877
|
},
|
|
878
|
+
withAccessibility: {
|
|
879
|
+
control: "boolean",
|
|
880
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
881
|
+
},
|
|
875
882
|
height: {
|
|
876
883
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
877
884
|
description: "Height of the icon in pixels",
|
|
@@ -912,6 +919,7 @@ const storyParameters = {
|
|
|
912
919
|
export const Default: Story = {
|
|
913
920
|
args: {
|
|
914
921
|
className: "h-6 w-6 text-blue-400 ",
|
|
922
|
+
withAccessibility: true,
|
|
915
923
|
},
|
|
916
924
|
parameters: storyParameters,
|
|
917
925
|
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 EyeOpenIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const EyeOpenIcon = (props: EyeOpenIconProps) => {
|
|
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"
|
|
@@ -15,10 +19,16 @@ export const EyeOpenIcon = (
|
|
|
15
19
|
strokeWidth="1"
|
|
16
20
|
strokeLinecap="round"
|
|
17
21
|
strokeLinejoin="round"
|
|
18
|
-
{...
|
|
22
|
+
{...svgProps}
|
|
19
23
|
>
|
|
20
24
|
<path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" />
|
|
21
25
|
<circle cx="12" cy="12" r="3" />
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Eye Open 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 { FeatureShineIcon } from "."
|
|
5
5
|
|
|
@@ -213,16 +213,19 @@ function PremiumFeature() {
|
|
|
213
213
|
</tr>
|
|
214
214
|
</thead>
|
|
215
215
|
<tbody>
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
{" "}
|
|
217
|
+
<tr className="!bg-black/10">
|
|
218
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
219
|
+
withAccessibility
|
|
219
220
|
</td>
|
|
220
221
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
221
|
-
|
|
222
|
+
boolean
|
|
223
|
+
</td>
|
|
224
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
225
|
+
true
|
|
222
226
|
</td>
|
|
223
|
-
<td className="px-6 py-4 text-sm !text-white/50">20</td>
|
|
224
227
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
225
|
-
|
|
228
|
+
Whether to wrap the icon with accessibility feature
|
|
226
229
|
</td>
|
|
227
230
|
</tr>
|
|
228
231
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -854,6 +857,10 @@ function PremiumFeature() {
|
|
|
854
857
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
855
858
|
description: "Width of the icon in pixels",
|
|
856
859
|
},
|
|
860
|
+
withAccessibility: {
|
|
861
|
+
control: "boolean",
|
|
862
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
863
|
+
},
|
|
857
864
|
height: {
|
|
858
865
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
859
866
|
description: "Height of the icon in pixels",
|
|
@@ -890,6 +897,7 @@ const storyParameters = {
|
|
|
890
897
|
export const Default: Story = {
|
|
891
898
|
args: {
|
|
892
899
|
className: "h-6 w-6 text-yellow-400 ",
|
|
900
|
+
withAccessibility: true,
|
|
893
901
|
},
|
|
894
902
|
parameters: storyParameters,
|
|
895
903
|
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 FeatureShineIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const FeatureShineIcon = (props: FeatureShineIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
6
12
|
<svg
|
|
7
13
|
width="20"
|
|
8
14
|
height="20"
|
|
9
15
|
viewBox="0 0 20 20"
|
|
10
16
|
fill="none"
|
|
11
17
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
-
{...
|
|
18
|
+
{...svgProps}
|
|
13
19
|
>
|
|
14
20
|
<g clipPath="url(#clip0_304_1142)">
|
|
15
21
|
<path
|
|
@@ -25,5 +31,11 @@ export const FeatureShineIcon = (props: React.SVGProps<SVGSVGElement>) => (
|
|
|
25
31
|
</clipPath>
|
|
26
32
|
</defs>
|
|
27
33
|
</svg>
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
if (withAccessibility) {
|
|
37
|
+
return <AccessibleIcon label="Shine icon">{svg}</AccessibleIcon>
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return svg
|
|
41
|
+
}
|
|
@@ -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 { FileChartIcon } from "."
|
|
5
5
|
|
|
@@ -215,16 +215,19 @@ function ReportsSection() {
|
|
|
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
|
|
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">
|
|
@@ -874,6 +877,10 @@ function ReportsSection() {
|
|
|
874
877
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
875
878
|
description: "Width of the icon in pixels",
|
|
876
879
|
},
|
|
880
|
+
withAccessibility: {
|
|
881
|
+
control: "boolean",
|
|
882
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
883
|
+
},
|
|
877
884
|
height: {
|
|
878
885
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
879
886
|
description: "Height of the icon in pixels",
|
|
@@ -910,6 +917,7 @@ const storyParameters = {
|
|
|
910
917
|
export const Default: Story = {
|
|
911
918
|
args: {
|
|
912
919
|
className: "h-6 w-6 text-blue-400 ",
|
|
920
|
+
withAccessibility: true,
|
|
913
921
|
},
|
|
914
922
|
parameters: storyParameters,
|
|
915
923
|
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 FileChartIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const FileChartIcon = (props: FileChartIconProps) => {
|
|
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.5 17.25V15.75M12 17.25V12.75M15.5 17.25V14.75M12.75 3.25068V9.25H18.7475M4.75 2.75H12.75L19.25 9.25V21.25H4.75V2.75Z"
|
|
@@ -20,5 +24,11 @@ export const FileChartIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="File Chart 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 { FileTextIcon } from "."
|
|
5
5
|
import { ArrowRightUpIcon } from "../arrow-right-up-icon"
|
|
@@ -199,16 +199,19 @@ const meta: Meta<typeof FileTextIcon> = {
|
|
|
199
199
|
</tr>
|
|
200
200
|
</thead>
|
|
201
201
|
<tbody>
|
|
202
|
-
|
|
202
|
+
{" "}
|
|
203
|
+
<tr className="!bg-black/10">
|
|
203
204
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
204
|
-
|
|
205
|
+
withAccessibility
|
|
205
206
|
</td>
|
|
206
|
-
<td className="px-6 py-4 text-sm !text-white/
|
|
207
|
-
|
|
207
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
208
|
+
boolean
|
|
208
209
|
</td>
|
|
209
|
-
<td className="px-6 py-4 text-sm !text-white/
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
211
|
+
true
|
|
212
|
+
</td>
|
|
213
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
214
|
+
Whether to wrap the icon with accessibility feature
|
|
212
215
|
</td>
|
|
213
216
|
</tr>
|
|
214
217
|
</tbody>
|
|
@@ -493,6 +496,10 @@ function DocumentButton() {
|
|
|
493
496
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
494
497
|
description: "Width of the icon in pixels",
|
|
495
498
|
},
|
|
499
|
+
withAccessibility: {
|
|
500
|
+
control: "boolean",
|
|
501
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
502
|
+
},
|
|
496
503
|
height: {
|
|
497
504
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
498
505
|
description: "Height of the icon in pixels",
|
|
@@ -523,6 +530,7 @@ export const Default: Story = {
|
|
|
523
530
|
width: 24,
|
|
524
531
|
height: 24,
|
|
525
532
|
className: "text-blue-400",
|
|
533
|
+
withAccessibility: true,
|
|
526
534
|
},
|
|
527
535
|
parameters: storyParameters,
|
|
528
536
|
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 FileTextIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const FileTextIcon = (props: FileTextIconProps) => {
|
|
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="M6.5625 7.31055H11.4375M6.5625 10.3105H9.9375M9 3.18555V1.68555M12.1875 3.18555V1.68555M5.8125 3.18555V1.68555M3.1875 2.45638H14.8125V15.5605H3.1875V2.45638Z"
|
|
@@ -20,5 +24,11 @@ export const FileTextIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="File Text Icon">{svg}</AccessibleIcon>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return svg
|
|
34
|
+
}
|