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,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 HeadIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const HeadIcon = (props: HeadIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
12
|
+
<svg
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
width="16"
|
|
15
|
+
height="17"
|
|
16
|
+
viewBox="0 0 16 17"
|
|
17
|
+
fill="none"
|
|
18
|
+
{...svgProps}
|
|
19
|
+
>
|
|
20
|
+
<path
|
|
21
|
+
d="M12.1667 12.6112H9.5V14.6667H4.5C4.5 12.9371 4.65313 11.5249 3.52284 10.0875C2.88207 9.27259 2.5 8.24564 2.5 7.12967C2.5 4.48075 4.65265 2.33337 7.30808 2.33337C9.26557 2.33337 11.0679 3.2706 11.8108 5.1651C12.3315 6.49261 13.0353 7.47263 13.8333 8.66671L12.1667 9.52782V12.6112Z"
|
|
22
|
+
stroke="currentColor"
|
|
23
|
+
strokeWidth="1.5"
|
|
24
|
+
strokeLinecap="square"
|
|
25
|
+
/>
|
|
26
|
+
</svg>
|
|
25
27
|
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Head Icon">{svg}</AccessibleIcon>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return svg
|
|
26
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 { HeartIcon } from "."
|
|
5
5
|
|
|
@@ -195,16 +195,19 @@ function MyComponent() {
|
|
|
195
195
|
</tr>
|
|
196
196
|
</thead>
|
|
197
197
|
<tbody>
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
{" "}
|
|
199
|
+
<tr className="!bg-black/10">
|
|
200
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
201
|
+
withAccessibility
|
|
201
202
|
</td>
|
|
202
203
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
203
|
-
|
|
204
|
+
boolean
|
|
205
|
+
</td>
|
|
206
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
207
|
+
true
|
|
204
208
|
</td>
|
|
205
|
-
<td className="px-6 py-4 text-sm !text-white/50">20</td>
|
|
206
209
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
207
|
-
|
|
210
|
+
Whether to wrap the icon with accessibility feature
|
|
208
211
|
</td>
|
|
209
212
|
</tr>
|
|
210
213
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -858,6 +861,10 @@ function CustomHeartIcon({ label = "Like", ...props }) {
|
|
|
858
861
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
859
862
|
description: "Width of the icon in pixels",
|
|
860
863
|
},
|
|
864
|
+
withAccessibility: {
|
|
865
|
+
control: "boolean",
|
|
866
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
867
|
+
},
|
|
861
868
|
height: {
|
|
862
869
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
863
870
|
description: "Height of the icon in pixels",
|
|
@@ -892,6 +899,7 @@ export const Default: Story = {
|
|
|
892
899
|
width: 24,
|
|
893
900
|
height: 24,
|
|
894
901
|
className: "text-red-400",
|
|
902
|
+
withAccessibility: true,
|
|
895
903
|
},
|
|
896
904
|
parameters: storyParameters,
|
|
897
905
|
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 HeartIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const HeartIcon = (props: HeartIconProps) => {
|
|
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="20"
|
|
@@ -13,9 +17,15 @@ export const HeartIcon = (
|
|
|
13
17
|
fill="none"
|
|
14
18
|
stroke="currentColor"
|
|
15
19
|
strokeWidth="1.25"
|
|
16
|
-
{...
|
|
20
|
+
{...svgProps}
|
|
17
21
|
>
|
|
18
22
|
<path d="M10.0001 4.64328C15.2776 -0.723042 24.3249 9.24299 10.0001 17.2917C-4.32477 9.24302 4.72247 -0.723043 10.0001 4.64328Z" />
|
|
19
23
|
</svg>
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
if (withAccessibility) {
|
|
27
|
+
return <AccessibleIcon label="Heart 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 { ImageIcon } from "."
|
|
5
5
|
|
|
@@ -210,16 +210,19 @@ function MediaUpload() {
|
|
|
210
210
|
</tr>
|
|
211
211
|
</thead>
|
|
212
212
|
<tbody>
|
|
213
|
-
|
|
213
|
+
{" "}
|
|
214
|
+
<tr className="!bg-black/10">
|
|
214
215
|
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
215
|
-
|
|
216
|
+
withAccessibility
|
|
216
217
|
</td>
|
|
217
218
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
218
|
-
|
|
219
|
+
boolean
|
|
220
|
+
</td>
|
|
221
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
222
|
+
true
|
|
219
223
|
</td>
|
|
220
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
221
224
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
222
|
-
|
|
225
|
+
Whether to wrap the icon with accessibility feature
|
|
223
226
|
</td>
|
|
224
227
|
</tr>
|
|
225
228
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -905,6 +908,10 @@ function MediaUpload() {
|
|
|
905
908
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
906
909
|
description: "Width of the icon in pixels",
|
|
907
910
|
},
|
|
911
|
+
withAccessibility: {
|
|
912
|
+
control: "boolean",
|
|
913
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
914
|
+
},
|
|
908
915
|
height: {
|
|
909
916
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
910
917
|
description: "Height of the icon in pixels",
|
|
@@ -945,6 +952,7 @@ const storyParameters = {
|
|
|
945
952
|
export const Default: Story = {
|
|
946
953
|
args: {
|
|
947
954
|
className: "h-6 w-6 text-blue-400 ",
|
|
955
|
+
withAccessibility: true,
|
|
948
956
|
},
|
|
949
957
|
parameters: storyParameters,
|
|
950
958
|
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 ImageIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ImageIcon = (props: ImageIconProps) => {
|
|
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="M19.75 19.75L14 14L12 16L8 12L4.25 15.75M3.75 3.75H20.25V20.25H3.75V3.75ZM15.75 9C15.75 9.82843 15.0784 10.5 14.25 10.5C13.4216 10.5 12.75 9.82843 12.75 9C12.75 8.17157 13.4216 7.5 14.25 7.5C15.0784 7.5 15.75 8.17157 15.75 9Z"
|
|
@@ -20,5 +24,11 @@ export const ImageIcon = (
|
|
|
20
24
|
strokeLinecap="square"
|
|
21
25
|
/>
|
|
22
26
|
</svg>
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if (withAccessibility) {
|
|
30
|
+
return <AccessibleIcon label="Image 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 { ImportFolderIcon } from "."
|
|
5
5
|
|
|
@@ -211,16 +211,19 @@ function FileImport() {
|
|
|
211
211
|
</tr>
|
|
212
212
|
</thead>
|
|
213
213
|
<tbody>
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
214
|
+
{" "}
|
|
215
|
+
<tr className="!bg-black/10">
|
|
216
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
217
|
+
withAccessibility
|
|
217
218
|
</td>
|
|
218
219
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
219
|
-
|
|
220
|
+
boolean
|
|
221
|
+
</td>
|
|
222
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
223
|
+
true
|
|
220
224
|
</td>
|
|
221
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
222
225
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
223
|
-
|
|
226
|
+
Whether to wrap the icon with accessibility feature
|
|
224
227
|
</td>
|
|
225
228
|
</tr>
|
|
226
229
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -944,6 +947,10 @@ function FileImport() {
|
|
|
944
947
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
945
948
|
description: "Width of the icon in pixels",
|
|
946
949
|
},
|
|
950
|
+
withAccessibility: {
|
|
951
|
+
control: "boolean",
|
|
952
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
953
|
+
},
|
|
947
954
|
height: {
|
|
948
955
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
949
956
|
description: "Height of the icon in pixels",
|
|
@@ -984,6 +991,7 @@ const storyParameters = {
|
|
|
984
991
|
export const Default: Story = {
|
|
985
992
|
args: {
|
|
986
993
|
className: "h-6 w-6 text-green-400 ",
|
|
994
|
+
withAccessibility: true,
|
|
987
995
|
},
|
|
988
996
|
parameters: storyParameters,
|
|
989
997
|
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 ImportFolderIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ImportFolderIcon = (props: ImportFolderIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
viewBox="0 0 24 24"
|
|
10
14
|
fill="none"
|
|
11
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
16
|
stroke="currentColor"
|
|
13
|
-
{...
|
|
17
|
+
{...svgProps}
|
|
14
18
|
>
|
|
15
19
|
<path d="M21.25 8.75V19.25H2.75V4.75H8.25" strokeLinecap="square" />
|
|
16
20
|
<path
|
|
@@ -18,5 +22,11 @@ export const ImportFolderIcon = (
|
|
|
18
22
|
strokeLinecap="square"
|
|
19
23
|
/>
|
|
20
24
|
</svg>
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
if (withAccessibility) {
|
|
28
|
+
return <AccessibleIcon label="Import Folder 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 { ImportLeftArrowFolderIcon } from "."
|
|
5
5
|
|
|
@@ -221,16 +221,19 @@ function ImportButton() {
|
|
|
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">24</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">
|
|
@@ -1015,6 +1018,10 @@ function ImportButton() {
|
|
|
1015
1018
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1016
1019
|
description: "Width of the icon in pixels",
|
|
1017
1020
|
},
|
|
1021
|
+
withAccessibility: {
|
|
1022
|
+
control: "boolean",
|
|
1023
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
1024
|
+
},
|
|
1018
1025
|
height: {
|
|
1019
1026
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1020
1027
|
description: "Height of the icon in pixels",
|
|
@@ -1058,6 +1065,7 @@ export const Default: Story = {
|
|
|
1058
1065
|
width: 24,
|
|
1059
1066
|
height: 24,
|
|
1060
1067
|
className: "text-indigo-400 ",
|
|
1068
|
+
withAccessibility: true,
|
|
1061
1069
|
},
|
|
1062
1070
|
parameters: storyParameters,
|
|
1063
1071
|
render: (args) => (
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
+
export interface ImportLeftArrowFolderIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
4
8
|
export const ImportLeftArrowFolderIcon = (
|
|
5
|
-
props:
|
|
6
|
-
) =>
|
|
7
|
-
|
|
9
|
+
props: ImportLeftArrowFolderIconProps
|
|
10
|
+
) => {
|
|
11
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
12
|
+
|
|
13
|
+
const svg = (
|
|
8
14
|
<svg
|
|
9
15
|
viewBox="0 0 16 16"
|
|
10
16
|
fill="none"
|
|
11
17
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
18
|
stroke="currentColor"
|
|
13
|
-
{...
|
|
19
|
+
{...svgProps}
|
|
14
20
|
>
|
|
15
21
|
<path
|
|
16
22
|
d="M1.8335 5.83268V12.8327H14.1668V3.16602H10.5002"
|
|
@@ -21,5 +27,15 @@ export const ImportLeftArrowFolderIcon = (
|
|
|
21
27
|
strokeLinecap="square"
|
|
22
28
|
/>
|
|
23
29
|
</svg>
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
if (withAccessibility) {
|
|
33
|
+
return (
|
|
34
|
+
<AccessibleIcon label="Import Left Arrow Folder Icon">
|
|
35
|
+
{svg}
|
|
36
|
+
</AccessibleIcon>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return svg
|
|
41
|
+
}
|
package/dist/icons/index.ts
CHANGED
|
@@ -41,6 +41,7 @@ export * from "./filter-bar-row-icon"
|
|
|
41
41
|
export * from "./forward-ten-seconds-icon"
|
|
42
42
|
export * from "./git-branch-icon"
|
|
43
43
|
export * from "./git-fork-icon"
|
|
44
|
+
export * from "./globe-icon"
|
|
44
45
|
export * from "./google-logo-icon"
|
|
45
46
|
export * from "./grip-vertical-icon"
|
|
46
47
|
export * from "./head-icon"
|
|
@@ -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 { IndianFlagIcon } from "."
|
|
5
5
|
|
|
@@ -202,16 +202,19 @@ function CountrySelector() {
|
|
|
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">22</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">
|
|
@@ -786,6 +789,10 @@ function CustomIndianFlagIcon({ label = "India", ...props }) {
|
|
|
786
789
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
787
790
|
description: "Width of the icon in pixels",
|
|
788
791
|
},
|
|
792
|
+
withAccessibility: {
|
|
793
|
+
control: "boolean",
|
|
794
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
795
|
+
},
|
|
789
796
|
height: {
|
|
790
797
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
791
798
|
description: "Height of the icon in pixels",
|
|
@@ -816,6 +823,7 @@ export const Default: Story = {
|
|
|
816
823
|
width: 22,
|
|
817
824
|
height: 15,
|
|
818
825
|
className: "",
|
|
826
|
+
withAccessibility: true,
|
|
819
827
|
},
|
|
820
828
|
parameters: storyParameters,
|
|
821
829
|
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 IndianFlagIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const IndianFlagIcon = (props: IndianFlagIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
width="22"
|
|
10
14
|
height="15"
|
|
@@ -12,7 +16,7 @@ export const IndianFlagIcon = (
|
|
|
12
16
|
fill="none"
|
|
13
17
|
xmlns="http://www.w3.org/2000/svg"
|
|
14
18
|
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
15
|
-
{...
|
|
19
|
+
{...svgProps}
|
|
16
20
|
>
|
|
17
21
|
<rect
|
|
18
22
|
y="0.5"
|
|
@@ -42,5 +46,11 @@ export const IndianFlagIcon = (
|
|
|
42
46
|
/>
|
|
43
47
|
</defs>
|
|
44
48
|
</svg>
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
if (withAccessibility) {
|
|
52
|
+
return <AccessibleIcon label="Indian Flag icon">{svg}</AccessibleIcon>
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return svg
|
|
56
|
+
}
|
|
@@ -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 { InstagramIcon } from "."
|
|
5
5
|
|
|
@@ -211,18 +211,19 @@ function SocialLinks() {
|
|
|
211
211
|
</tr>
|
|
212
212
|
</thead>
|
|
213
213
|
<tbody>
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
214
|
+
{" "}
|
|
215
|
+
<tr className="!bg-black/10">
|
|
216
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
217
|
+
withAccessibility
|
|
217
218
|
</td>
|
|
218
219
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
219
|
-
|
|
220
|
+
boolean
|
|
220
221
|
</td>
|
|
221
222
|
<td className="px-6 py-4 text-sm !text-white/50">
|
|
222
|
-
|
|
223
|
+
true
|
|
223
224
|
</td>
|
|
224
225
|
<td className="px-6 py-4 text-sm !text-white/70">
|
|
225
|
-
|
|
226
|
+
Whether to wrap the icon with accessibility feature
|
|
226
227
|
</td>
|
|
227
228
|
</tr>
|
|
228
229
|
<tr className="border-b border-white/5 !bg-black/10">
|
|
@@ -1191,6 +1192,10 @@ function SocialLinks() {
|
|
|
1191
1192
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1192
1193
|
description: "Width of the icon (maintains aspect ratio)",
|
|
1193
1194
|
},
|
|
1195
|
+
withAccessibility: {
|
|
1196
|
+
control: "boolean",
|
|
1197
|
+
description: "Whether to wrap the icon with accessibility features",
|
|
1198
|
+
},
|
|
1194
1199
|
height: {
|
|
1195
1200
|
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1196
1201
|
description: "Height of the icon (maintains aspect ratio)",
|
|
@@ -1227,6 +1232,7 @@ const storyParameters = {
|
|
|
1227
1232
|
export const Default: Story = {
|
|
1228
1233
|
args: {
|
|
1229
1234
|
className: "h-8 w-8 text-pink-400",
|
|
1235
|
+
withAccessibility: true,
|
|
1230
1236
|
},
|
|
1231
1237
|
parameters: storyParameters,
|
|
1232
1238
|
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 InstagramIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const InstagramIcon = (props: InstagramIconProps) => {
|
|
9
|
+
const { withAccessibility = true, ...svgProps } = props
|
|
10
|
+
|
|
11
|
+
const svg = (
|
|
8
12
|
<svg
|
|
9
13
|
viewBox="0 0 20 20"
|
|
10
14
|
fill="currentColor"
|
|
11
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
-
{...
|
|
16
|
+
{...svgProps}
|
|
13
17
|
>
|
|
14
18
|
<path d="M10 2.21173C12.5365 2.21173 12.837 2.22123 13.8389 2.267C14.4411 2.27427 15.0377 2.38499 15.6024 2.59432C16.0151 2.74662 16.3884 2.9895 16.6949 3.30509C17.0105 3.61156 17.2534 3.98488 17.4057 4.39759C17.615 4.96235 17.7257 5.55888 17.733 6.16114C17.7788 7.16295 17.7883 7.4635 17.7883 10C17.7883 12.5365 17.7788 12.837 17.733 13.8389C17.7257 14.4411 17.615 15.0377 17.4057 15.6024C17.2476 16.0122 17.0055 16.3844 16.6949 16.6949C16.3844 17.0055 16.0122 17.2476 15.6024 17.4057C15.0377 17.615 14.4411 17.7257 13.8389 17.733C12.837 17.7788 12.5365 17.7883 10 17.7883C7.4635 17.7883 7.16295 17.7788 6.16114 17.733C5.55859 17.7258 4.96176 17.6151 4.39673 17.4057C3.98433 17.2533 3.61132 17.0104 3.30509 16.6949C2.9895 16.3884 2.74662 16.0151 2.59432 15.6024C2.38499 15.0377 2.27427 14.4411 2.267 13.8389C2.22123 12.837 2.21173 12.5365 2.21173 10C2.21173 7.4635 2.22123 7.16295 2.267 6.16114C2.27427 5.55888 2.38499 4.96235 2.59432 4.39759C2.74662 3.98488 2.9895 3.61156 3.30509 3.30509C3.61156 2.9895 3.98488 2.74662 4.39759 2.59432C4.96235 2.38499 5.55888 2.27427 6.16114 2.267C7.16295 2.22123 7.4635 2.21173 10 2.21173ZM10 0.5C7.42032 0.5 7.09645 0.511227 6.08341 0.557C5.29535 0.572721 4.51567 0.721942 3.7775 0.998318C3.1433 1.2371 2.56886 1.61141 2.09427 2.09514C1.61096 2.56956 1.23695 3.14369 0.998318 3.7775C0.722237 4.51572 0.573309 5.2954 0.557864 6.08341C0.510364 7.09645 0.5 7.42032 0.5 10C0.5 12.5797 0.511227 12.9035 0.557 13.9166C0.572721 14.7046 0.721942 15.4843 0.998318 16.2225C1.2371 16.8567 1.61141 17.4311 2.09514 17.9057C2.56956 18.389 3.14369 18.763 3.7775 19.0017C4.51572 19.2778 5.2954 19.4267 6.08341 19.4421C7.09645 19.4896 7.42032 19.5 10 19.5C12.5797 19.5 12.9035 19.4888 13.9166 19.443C14.7046 19.4273 15.4843 19.2781 16.2225 19.0017C16.8538 18.7576 17.4271 18.3843 17.9057 17.9057C18.3843 17.4271 18.7576 16.8538 19.0017 16.2225C19.2778 15.4843 19.4267 14.7046 19.4421 13.9166C19.4896 12.9035 19.5 12.5797 19.5 10C19.5 7.42032 19.4888 7.09645 19.443 6.08341C19.4273 5.29535 19.2781 4.51567 19.0017 3.7775C18.7629 3.1433 18.3886 2.56886 17.9049 2.09427C17.4304 1.61096 16.8563 1.23695 16.2225 0.998318C15.4843 0.722237 14.7046 0.573309 13.9166 0.557864C12.9035 0.510364 12.5797 0.5 10 0.5ZM10 5.12132C9.03509 5.12132 8.09185 5.40745 7.28955 5.94352C6.48725 6.4796 5.86194 7.24155 5.49269 8.13301C5.12343 9.02447 5.02682 10.0054 5.21506 10.9518C5.40331 11.8982 5.86796 12.7675 6.55025 13.4497C7.23255 14.132 8.10185 14.5967 9.04822 14.7849C9.99459 14.9732 10.9755 14.8766 11.867 14.5073C12.7585 14.1381 13.5204 13.5127 14.0565 12.7105C14.5926 11.9082 14.8787 10.9649 14.8787 10C14.8787 8.70609 14.3647 7.46518 13.4497 6.55025C12.5348 5.63532 11.2939 5.12132 10 5.12132ZM10 13.167C9.37364 13.167 8.76134 12.9812 8.24053 12.6332C7.71973 12.2852 7.31382 11.7906 7.07412 11.2119C6.83442 10.6333 6.7717 9.99649 6.8939 9.38216C7.0161 8.76783 7.31772 8.20353 7.76063 7.76063C8.20353 7.31772 8.76783 7.0161 9.38216 6.8939C9.99649 6.7717 10.6333 6.83442 11.2119 7.07412C11.7906 7.31382 12.2852 7.71973 12.6332 8.24053C12.9812 8.76134 13.167 9.37364 13.167 10C13.167 10.8399 12.8333 11.6455 12.2394 12.2394C11.6455 12.8333 10.8399 13.167 10 13.167ZM15.0713 3.78873C14.8458 3.78873 14.6254 3.85559 14.4379 3.98085C14.2505 4.10612 14.1043 4.28416 14.0181 4.49247C13.9318 4.70078 13.9092 4.92999 13.9532 5.15113C13.9972 5.37227 14.1057 5.5754 14.2652 5.73483C14.4246 5.89426 14.6277 6.00284 14.8489 6.04682C15.07 6.09081 15.2992 6.06823 15.5075 5.98195C15.7158 5.89567 15.8939 5.74955 16.0191 5.56208C16.1444 5.37461 16.2113 5.1542 16.2113 4.92873C16.2113 4.62638 16.0912 4.33642 15.8774 4.12263C15.6636 3.90883 15.3736 3.78873 15.0713 3.78873Z" />
|
|
15
19
|
</svg>
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
if (withAccessibility) {
|
|
23
|
+
return <AccessibleIcon label="Instagram icon">{svg}</AccessibleIcon>
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return svg
|
|
27
|
+
}
|