aural-ui 3.0.7 → 4.1.0
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 +290 -1199
- package/dist/components/avatar/Avatar.stories.tsx +235 -237
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -620
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +533 -856
- package/dist/components/dialog/Dialog.stories.tsx +505 -949
- package/dist/components/divider/Divider.stories.tsx +265 -502
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -993
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1018
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1221
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +485 -822
- package/dist/components/marquee/Marquee.stories.tsx +356 -694
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -410
- package/dist/components/overlay/Overlay.stories.tsx +452 -818
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +484 -873
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +496 -752
- package/dist/components/scroll-area/ScrollArea.stories.tsx +384 -1006
- package/dist/components/search/Search.stories.tsx +314 -575
- package/dist/components/select/Select.stories.tsx +684 -787
- package/dist/components/sheet/Sheet.stories.tsx +671 -936
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +384 -737
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -914
- package/dist/components/tabs/Tabs.stories.tsx +459 -1400
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -148
- package/dist/components/toast/Toast.stories.tsx +452 -1333
- package/dist/components/toggle/Toggle.stories.tsx +488 -909
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1372
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +226 -1013
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +109 -929
- package/dist/icons/all-icons.tsx +124 -87
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +140 -971
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +148 -888
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +135 -1019
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +137 -953
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +138 -997
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +136 -942
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +148 -1092
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +146 -1211
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +126 -615
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +144 -1164
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +167 -985
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +122 -1179
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +124 -1168
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +119 -850
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +112 -1213
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +117 -934
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +160 -961
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +163 -961
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +144 -942
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +129 -966
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +147 -964
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +145 -975
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +150 -1142
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +114 -461
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +124 -1322
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +117 -1318
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +114 -903
- package/dist/icons/command-icon/CommandIcon.stories.tsx +127 -1042
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +123 -962
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +147 -999
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +139 -960
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +126 -820
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +124 -1031
- package/dist/icons/email-icon/EmailIcon.stories.tsx +115 -936
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +112 -1111
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +144 -1025
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +143 -1036
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +127 -1011
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +126 -1056
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +125 -614
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +119 -1050
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +169 -989
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +115 -1145
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +115 -1122
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +130 -313
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +145 -940
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +119 -1174
- package/dist/icons/head-icon/HeadIcon.stories.tsx +111 -916
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +120 -1019
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +119 -683
- package/dist/icons/image-icon/ImageIcon.stories.tsx +105 -1121
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +111 -1192
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +136 -1256
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +159 -962
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +161 -1385
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +124 -972
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +119 -948
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +119 -942
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +108 -1215
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +154 -1517
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +110 -1188
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +119 -678
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +123 -1184
- package/dist/icons/message-icon/MessageIcon.stories.tsx +114 -538
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +116 -1158
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +120 -536
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +109 -1184
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +115 -1134
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +119 -971
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +111 -1100
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +119 -1101
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +109 -1111
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +122 -684
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +113 -954
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +112 -877
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +113 -1000
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +115 -1070
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +115 -978
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +106 -1093
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +107 -829
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +102 -469
- package/dist/icons/search-icon/SearchIcon.stories.tsx +111 -1124
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +107 -970
- package/dist/icons/share-icon/ShareIcon.stories.tsx +120 -1025
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +117 -931
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +137 -1104
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +172 -982
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +164 -983
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +105 -958
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +158 -580
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +158 -587
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +146 -682
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +124 -904
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +112 -964
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +116 -852
- package/dist/icons/sun-icon/SunIcon.stories.tsx +120 -831
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +116 -950
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +123 -980
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +156 -1427
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +146 -1142
- package/dist/icons/tick-icon/TickIcon.stories.tsx +145 -1276
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +108 -933
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +157 -1402
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +115 -889
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +118 -984
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +125 -1049
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +123 -1356
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +110 -1171
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +112 -1093
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +115 -1087
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +122 -1046
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +161 -936
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { AngleDownIcon } from "src/ui/icons/angle-down-icon"
|
|
5
|
+
import { ChevronDownIcon } from "src/ui/icons/chevron-down-icon"
|
|
6
|
+
import { ChevronRightIcon } from "src/ui/icons/chevron-right-icon"
|
|
7
|
+
import { ChevronUpIcon } from "src/ui/icons/chevron-up-icon"
|
|
8
|
+
import {
|
|
9
|
+
IconColorVariations,
|
|
10
|
+
IconDefaultCanvas,
|
|
11
|
+
IconDirectionalVariations,
|
|
12
|
+
IconPlaygroundCanvas,
|
|
13
|
+
IconSizeVariations,
|
|
14
|
+
IconUsageCanvas,
|
|
15
|
+
IconUsageSection,
|
|
16
|
+
} from "src/ui/story-spec/icons/icon-story-canvas"
|
|
17
|
+
import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
|
|
18
|
+
|
|
4
19
|
import { ChevronLeftIcon } from "."
|
|
5
20
|
|
|
6
21
|
const meta: Meta<typeof ChevronLeftIcon> = {
|
|
@@ -11,815 +26,80 @@ const meta: Meta<typeof ChevronLeftIcon> = {
|
|
|
11
26
|
backgrounds: {
|
|
12
27
|
default: "dark",
|
|
13
28
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
29
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
30
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
31
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
32
|
],
|
|
18
33
|
},
|
|
19
34
|
docs: {
|
|
20
35
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
margin: 0 ;
|
|
34
|
-
background: transparent ;
|
|
35
|
-
}
|
|
36
|
-
.docs-story {
|
|
37
|
-
background: transparent ;
|
|
38
|
-
}
|
|
39
|
-
.sbdocs {
|
|
40
|
-
background: transparent ;
|
|
41
|
-
}
|
|
42
|
-
body {
|
|
43
|
-
background: #0a0a0a ;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: #0a0a0a ;
|
|
47
|
-
}
|
|
48
|
-
.sbdocs-preview {
|
|
49
|
-
background: transparent ;
|
|
50
|
-
border: none ;
|
|
51
|
-
}
|
|
52
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color: white ;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: rgba(255, 255, 255, 0.7) ;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: rgba(255, 255, 255, 0.1) ;
|
|
60
|
-
color: rgba(168, 85, 247, 1) ;
|
|
61
|
-
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: rgba(0, 0, 0, 0.4) ;
|
|
65
|
-
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: rgba(255, 255, 255, 0.05) ;
|
|
69
|
-
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: rgba(255, 255, 255, 0.05) ;
|
|
73
|
-
color: white ;
|
|
74
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: rgba(255, 255, 255, 0.7) ;
|
|
78
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.05) ;
|
|
79
|
-
}
|
|
80
|
-
`}
|
|
81
|
-
</style>
|
|
82
|
-
|
|
83
|
-
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-purple-900/20 to-gray-900">
|
|
84
|
-
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
86
|
-
<div className="absolute inset-0 bg-gradient-to-r from-purple-500/10 via-transparent to-pink-500/10" />
|
|
87
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
|
-
<div className="!space-y-6 text-center">
|
|
89
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-purple-500/30 bg-gradient-to-br from-purple-500/20 to-pink-500/20">
|
|
90
|
-
<ChevronLeftIcon className="h-12 w-12 text-purple-400" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
-
ChevronLeftIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
-
A versatile chevron left icon for navigation, back buttons,
|
|
97
|
-
and leftward direction indicators. Built with accessibility
|
|
98
|
-
in mind using Radix UI's AccessibleIcon wrapper.
|
|
99
|
-
</p>
|
|
100
|
-
|
|
101
|
-
{/* Stats */}
|
|
102
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
103
|
-
<div className="text-center">
|
|
104
|
-
<div className="text-3xl font-bold text-purple-300">
|
|
105
|
-
Accessible
|
|
106
|
-
</div>
|
|
107
|
-
<div className="text-sm text-white/60">
|
|
108
|
-
Screen reader friendly
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
<div className="h-8 w-px bg-white/20" />
|
|
112
|
-
<div className="text-center">
|
|
113
|
-
<div className="text-3xl font-bold text-pink-300">
|
|
114
|
-
Scalable
|
|
115
|
-
</div>
|
|
116
|
-
<div className="text-sm text-white/60">
|
|
117
|
-
Any size needed
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
<div className="h-8 w-px bg-white/20" />
|
|
121
|
-
<div className="text-center">
|
|
122
|
-
<div className="text-3xl font-bold text-indigo-300">
|
|
123
|
-
Navigation
|
|
124
|
-
</div>
|
|
125
|
-
<div className="text-sm text-white/60">
|
|
126
|
-
Leftward movement
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
|
|
134
|
-
{/* Content */}
|
|
135
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
136
|
-
{/* Quick Usage */}
|
|
137
|
-
<div className="!space-y-8">
|
|
138
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
139
|
-
Quick Start
|
|
140
|
-
</h2>
|
|
141
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
142
|
-
<div className="!space-y-4">
|
|
143
|
-
<h3 className="text-xl font-semibold !text-purple-300">
|
|
144
|
-
Basic Usage
|
|
145
|
-
</h3>
|
|
146
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
147
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
148
|
-
{`import { ChevronLeftIcon } from "@icons/chevron-left-icon"
|
|
36
|
+
<AuralIconDocsPage
|
|
37
|
+
accentToken="positive"
|
|
38
|
+
features={[
|
|
39
|
+
{
|
|
40
|
+
title: "Directional",
|
|
41
|
+
description: "Rotates to all 4 directions",
|
|
42
|
+
},
|
|
43
|
+
{ title: "currentColor", description: "Responds to text tokens" },
|
|
44
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
45
|
+
]}
|
|
46
|
+
quickStart={{
|
|
47
|
+
codeExample: `import { ChevronLeftIcon } from "src/ui/icons/chevron-left-icon"
|
|
149
48
|
|
|
150
49
|
function BackButton() {
|
|
151
50
|
return (
|
|
152
|
-
<button className="flex items-center gap-
|
|
153
|
-
<ChevronLeftIcon className="h-4 w-4 text-
|
|
154
|
-
|
|
51
|
+
<button className="flex items-center gap-1">
|
|
52
|
+
<ChevronLeftIcon className="h-4 w-4 text-fm-icon-active" />
|
|
53
|
+
Back
|
|
155
54
|
</button>
|
|
156
55
|
)
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
193
|
-
Type
|
|
194
|
-
</th>
|
|
195
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
196
|
-
Default
|
|
197
|
-
</th>
|
|
198
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
199
|
-
Description
|
|
200
|
-
</th>
|
|
201
|
-
</tr>
|
|
202
|
-
</thead>
|
|
203
|
-
<tbody>
|
|
204
|
-
{" "}
|
|
205
|
-
<tr className="!bg-black/10">
|
|
206
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
207
|
-
withAccessibility
|
|
208
|
-
</td>
|
|
209
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
210
|
-
boolean
|
|
211
|
-
</td>
|
|
212
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
213
|
-
true
|
|
214
|
-
</td>
|
|
215
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
216
|
-
Whether to wrap the icon with accessibility feature
|
|
217
|
-
</td>
|
|
218
|
-
</tr>
|
|
219
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
220
|
-
<td className="px-6 py-4 font-mono text-sm !text-purple-300">
|
|
221
|
-
height
|
|
222
|
-
</td>
|
|
223
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
224
|
-
number | string
|
|
225
|
-
</td>
|
|
226
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
227
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
228
|
-
Height of the icon in pixels
|
|
229
|
-
</td>
|
|
230
|
-
</tr>
|
|
231
|
-
<tr className="border-b border-white/5">
|
|
232
|
-
<td className="px-6 py-4 font-mono text-sm !text-purple-300">
|
|
233
|
-
stroke
|
|
234
|
-
</td>
|
|
235
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
236
|
-
string
|
|
237
|
-
</td>
|
|
238
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
239
|
-
currentColor
|
|
240
|
-
</td>
|
|
241
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
242
|
-
Stroke color of the icon
|
|
243
|
-
</td>
|
|
244
|
-
</tr>
|
|
245
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
246
|
-
<td className="px-6 py-4 font-mono text-sm !text-purple-300">
|
|
247
|
-
className
|
|
248
|
-
</td>
|
|
249
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
250
|
-
string
|
|
251
|
-
</td>
|
|
252
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
253
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
254
|
-
CSS classes for styling (use for overrides)
|
|
255
|
-
</td>
|
|
256
|
-
</tr>
|
|
257
|
-
<tr className="border-b border-white/5">
|
|
258
|
-
<td className="px-6 py-4 font-mono text-sm !text-purple-300">
|
|
259
|
-
strokeWidth
|
|
260
|
-
</td>
|
|
261
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
262
|
-
number | string
|
|
263
|
-
</td>
|
|
264
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
265
|
-
1.5
|
|
266
|
-
</td>
|
|
267
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
268
|
-
Stroke width of the chevron line
|
|
269
|
-
</td>
|
|
270
|
-
</tr>
|
|
271
|
-
<tr className="!bg-black/10">
|
|
272
|
-
<td className="px-6 py-4 font-mono text-sm !text-purple-300">
|
|
273
|
-
...svgProps
|
|
274
|
-
</td>
|
|
275
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
276
|
-
SVGProps
|
|
277
|
-
</td>
|
|
278
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
279
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
280
|
-
All standard SVG element props
|
|
281
|
-
</td>
|
|
282
|
-
</tr>
|
|
283
|
-
</tbody>
|
|
284
|
-
</table>
|
|
285
|
-
</div>
|
|
286
|
-
</div>
|
|
287
|
-
|
|
288
|
-
{/* Size Variations */}
|
|
289
|
-
<div className="!space-y-8">
|
|
290
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
291
|
-
Size Variations
|
|
292
|
-
</h2>
|
|
293
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
294
|
-
<div className="!space-y-6">
|
|
295
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
296
|
-
<div className="!space-y-4">
|
|
297
|
-
<h3 className="text-lg font-semibold !text-purple-300">
|
|
298
|
-
Standard Sizes
|
|
299
|
-
</h3>
|
|
300
|
-
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
301
|
-
<div className="text-center">
|
|
302
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-3 w-3 text-purple-400" />
|
|
303
|
-
<span className="text-xs text-white/60">12px</span>
|
|
304
|
-
</div>
|
|
305
|
-
<div className="text-center">
|
|
306
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-4 w-4 text-purple-400" />
|
|
307
|
-
<span className="text-xs text-white/60">16px</span>
|
|
308
|
-
</div>
|
|
309
|
-
<div className="text-center">
|
|
310
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-5 w-5 text-purple-400" />
|
|
311
|
-
<span className="text-xs text-white/60">20px</span>
|
|
312
|
-
</div>
|
|
313
|
-
<div className="text-center">
|
|
314
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
|
|
315
|
-
<span className="text-xs text-white/60">24px</span>
|
|
316
|
-
</div>
|
|
317
|
-
<div className="text-center">
|
|
318
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-8 w-8 text-purple-400" />
|
|
319
|
-
<span className="text-xs text-white/60">32px</span>
|
|
320
|
-
</div>
|
|
321
|
-
<div className="text-center">
|
|
322
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-12 w-12 text-purple-400" />
|
|
323
|
-
<span className="text-xs text-white/60">48px</span>
|
|
324
|
-
</div>
|
|
325
|
-
</div>
|
|
326
|
-
</div>
|
|
327
|
-
|
|
328
|
-
<div className="!space-y-4">
|
|
329
|
-
<h3 className="text-lg font-semibold !text-purple-300">
|
|
330
|
-
Code Example
|
|
331
|
-
</h3>
|
|
332
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
333
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
334
|
-
{`// Small (16px)
|
|
335
|
-
<ChevronLeftIcon className="h-4 w-4 " />
|
|
336
|
-
|
|
337
|
-
// Medium (24px)
|
|
338
|
-
<ChevronLeftIcon className="h-6 w-6 " />
|
|
339
|
-
|
|
340
|
-
// Large (32px)
|
|
341
|
-
<ChevronLeftIcon className="h-8 w-8 " />
|
|
342
|
-
|
|
343
|
-
// Custom size
|
|
344
|
-
<ChevronLeftIcon width={40} height={40} />`}
|
|
345
|
-
</pre>
|
|
346
|
-
</div>
|
|
347
|
-
</div>
|
|
348
|
-
</div>
|
|
349
|
-
</div>
|
|
350
|
-
</div>
|
|
351
|
-
</div>
|
|
352
|
-
|
|
353
|
-
{/* Color Variations */}
|
|
354
|
-
<div className="!space-y-8">
|
|
355
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
356
|
-
Color Variations
|
|
357
|
-
</h2>
|
|
358
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
359
|
-
<div className="!space-y-4">
|
|
360
|
-
<h3 className="text-lg font-semibold !text-purple-300">
|
|
361
|
-
Semantic Colors
|
|
362
|
-
</h3>
|
|
363
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
364
|
-
<div className="flex items-center gap-4">
|
|
365
|
-
<ChevronLeftIcon className="h-6 w-6 text-purple-400" />
|
|
366
|
-
<div>
|
|
367
|
-
<div className="text-sm font-medium text-white">
|
|
368
|
-
Primary
|
|
369
|
-
</div>
|
|
370
|
-
<div className="text-xs text-white/60">
|
|
371
|
-
text-purple-400
|
|
372
|
-
</div>
|
|
373
|
-
</div>
|
|
374
|
-
</div>
|
|
375
|
-
<div className="flex items-center gap-4">
|
|
376
|
-
<ChevronLeftIcon className="h-6 w-6 text-gray-400" />
|
|
377
|
-
<div>
|
|
378
|
-
<div className="text-sm font-medium text-white">
|
|
379
|
-
Secondary
|
|
380
|
-
</div>
|
|
381
|
-
<div className="text-xs text-white/60">
|
|
382
|
-
text-gray-400
|
|
383
|
-
</div>
|
|
384
|
-
</div>
|
|
385
|
-
</div>
|
|
386
|
-
<div className="flex items-center gap-4">
|
|
387
|
-
<ChevronLeftIcon className="h-6 w-6 text-pink-400" />
|
|
388
|
-
<div>
|
|
389
|
-
<div className="text-sm font-medium text-white">
|
|
390
|
-
Accent
|
|
391
|
-
</div>
|
|
392
|
-
<div className="text-xs text-white/60">
|
|
393
|
-
text-pink-400
|
|
394
|
-
</div>
|
|
395
|
-
</div>
|
|
396
|
-
</div>
|
|
397
|
-
<div className="flex items-center gap-4">
|
|
398
|
-
<ChevronLeftIcon className="h-6 w-6 text-white/40" />
|
|
399
|
-
<div>
|
|
400
|
-
<div className="text-sm font-medium text-white">
|
|
401
|
-
Disabled
|
|
402
|
-
</div>
|
|
403
|
-
<div className="text-xs text-white/60">
|
|
404
|
-
text-white/40
|
|
405
|
-
</div>
|
|
406
|
-
</div>
|
|
407
|
-
</div>
|
|
408
|
-
</div>
|
|
409
|
-
</div>
|
|
410
|
-
|
|
411
|
-
<div className="!space-y-4">
|
|
412
|
-
<h3 className="text-lg font-semibold !text-purple-300">
|
|
413
|
-
Custom Colors
|
|
414
|
-
</h3>
|
|
415
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
416
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
417
|
-
{`// Using Tailwind classes with
|
|
418
|
-
<ChevronLeftIcon className="h-6 w-6 text-purple-400 " />
|
|
419
|
-
<ChevronLeftIcon className="h-6 w-6 text-pink-500 " />
|
|
420
|
-
|
|
421
|
-
// Using CSS custom properties
|
|
422
|
-
<ChevronLeftIcon
|
|
423
|
-
className="h-6 w-6 "
|
|
424
|
-
style={{ color: 'var(--color-primary)' }}
|
|
425
|
-
/>
|
|
426
|
-
|
|
427
|
-
// Direct stroke prop
|
|
428
|
-
<ChevronLeftIcon
|
|
429
|
-
width={24}
|
|
430
|
-
height={24}
|
|
431
|
-
stroke="#8b5cf6"
|
|
432
|
-
/>`}
|
|
433
|
-
</pre>
|
|
434
|
-
</div>
|
|
435
|
-
</div>
|
|
436
|
-
</div>
|
|
437
|
-
</div>
|
|
438
|
-
|
|
439
|
-
{/* Usage Examples */}
|
|
440
|
-
<div className="!space-y-8">
|
|
441
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
442
|
-
Usage Examples
|
|
443
|
-
</h2>
|
|
444
|
-
|
|
445
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
446
|
-
{/* Back Button */}
|
|
447
|
-
<div className="!space-y-4">
|
|
448
|
-
<h3 className="text-lg font-semibold !text-purple-300">
|
|
449
|
-
Back Button
|
|
450
|
-
</h3>
|
|
451
|
-
<div className="!space-y-4">
|
|
452
|
-
<div className="flex items-center gap-4">
|
|
453
|
-
<button className="flex items-center gap-2 rounded-lg border border-purple-500/30 bg-purple-500/10 px-4 py-2 text-purple-200 transition-colors hover:bg-purple-500/20">
|
|
454
|
-
<ChevronLeftIcon className="h-4 w-4" />
|
|
455
|
-
Back
|
|
456
|
-
</button>
|
|
457
|
-
<button className="flex items-center gap-2 rounded-lg border border-white/20 bg-white/5 px-4 py-2 text-white transition-colors hover:bg-white/10">
|
|
458
|
-
<ChevronLeftIcon className="h-4 w-4" />
|
|
459
|
-
Previous Page
|
|
460
|
-
</button>
|
|
461
|
-
</div>
|
|
462
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
463
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
464
|
-
{`// Back button
|
|
465
|
-
<button className="flex items-center gap-2 bg-purple-500/10 border border-purple-500/30 px-4 py-2 rounded-lg">
|
|
466
|
-
<ChevronLeftIcon className="h-4 w-4 " />
|
|
467
|
-
Back
|
|
468
|
-
</button>
|
|
469
|
-
|
|
470
|
-
// Navigation button
|
|
471
|
-
<button className="flex items-center gap-2 bg-white/5 border border-white/20 px-4 py-2 rounded-lg">
|
|
472
|
-
<ChevronLeftIcon className="h-4 w-4 " />
|
|
473
|
-
Previous Page
|
|
474
|
-
</button>`}
|
|
475
|
-
</pre>
|
|
476
|
-
</div>
|
|
477
|
-
</div>
|
|
478
|
-
</div>
|
|
479
|
-
|
|
480
|
-
{/* Breadcrumb Navigation */}
|
|
481
|
-
<div className="!space-y-4">
|
|
482
|
-
<h3 className="text-lg font-semibold !text-purple-300">
|
|
483
|
-
Breadcrumb Navigation
|
|
484
|
-
</h3>
|
|
485
|
-
<div className="!space-y-4">
|
|
486
|
-
<nav className="flex items-center gap-2 text-sm">
|
|
487
|
-
<button className="flex items-center gap-1 text-purple-400 hover:text-purple-300">
|
|
488
|
-
<ChevronLeftIcon className="h-3 w-3" />
|
|
489
|
-
<span>Dashboard</span>
|
|
490
|
-
</button>
|
|
491
|
-
<span className="text-white/40">/</span>
|
|
492
|
-
<button className="flex items-center gap-1 text-purple-400 hover:text-purple-300">
|
|
493
|
-
<ChevronLeftIcon className="h-3 w-3" />
|
|
494
|
-
<span>Projects</span>
|
|
495
|
-
</button>
|
|
496
|
-
<span className="text-white/40">/</span>
|
|
497
|
-
<span className="text-white">Current Page</span>
|
|
498
|
-
</nav>
|
|
499
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
500
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
501
|
-
{`// Breadcrumb with back navigation
|
|
502
|
-
<nav className="flex items-center gap-2 text-sm">
|
|
503
|
-
<button className="flex items-center gap-1 text-purple-400 hover:text-purple-300">
|
|
504
|
-
<ChevronLeftIcon className="h-3 w-3 " />
|
|
505
|
-
<span>Dashboard</span>
|
|
506
|
-
</button>
|
|
507
|
-
<span className="text-white/40">/</span>
|
|
508
|
-
<button className="flex items-center gap-1 text-purple-400 hover:text-purple-300">
|
|
509
|
-
<ChevronLeftIcon className="h-3 w-3 " />
|
|
510
|
-
<span>Projects</span>
|
|
511
|
-
</button>
|
|
512
|
-
<span className="text-white/40">/</span>
|
|
513
|
-
<span className="text-white">Current Page</span>
|
|
514
|
-
</nav>`}
|
|
515
|
-
</pre>
|
|
516
|
-
</div>
|
|
517
|
-
</div>
|
|
518
|
-
</div>
|
|
519
|
-
|
|
520
|
-
{/* Pagination */}
|
|
521
|
-
<div className="!space-y-4">
|
|
522
|
-
<h3 className="text-lg font-semibold !text-purple-300">
|
|
523
|
-
Pagination Controls
|
|
524
|
-
</h3>
|
|
525
|
-
<div className="!space-y-4">
|
|
526
|
-
<div className="flex items-center gap-2">
|
|
527
|
-
<button className="flex items-center justify-center rounded-lg border border-white/20 bg-white/5 p-2 text-white hover:bg-white/10">
|
|
528
|
-
<ChevronLeftIcon className="h-4 w-4" />
|
|
529
|
-
</button>
|
|
530
|
-
<div className="flex items-center gap-1">
|
|
531
|
-
<button className="rounded-lg border border-purple-500/30 bg-purple-500/20 px-3 py-1 text-purple-200">
|
|
532
|
-
1
|
|
533
|
-
</button>
|
|
534
|
-
<button className="rounded-lg px-3 py-1 text-white/60 hover:bg-white/10">
|
|
535
|
-
2
|
|
536
|
-
</button>
|
|
537
|
-
<button className="rounded-lg px-3 py-1 text-white/60 hover:bg-white/10">
|
|
538
|
-
3
|
|
539
|
-
</button>
|
|
540
|
-
</div>
|
|
541
|
-
<button className="flex items-center justify-center rounded-lg border border-white/20 bg-white/5 p-2 text-white hover:bg-white/10">
|
|
542
|
-
<ChevronLeftIcon className="h-4 w-4 rotate-180" />
|
|
543
|
-
</button>
|
|
544
|
-
</div>
|
|
545
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
546
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
547
|
-
{`// Previous button
|
|
548
|
-
<button className="flex items-center justify-center bg-white/5 border border-white/20 p-2 rounded-lg">
|
|
549
|
-
<ChevronLeftIcon className="h-4 w-4 " />
|
|
550
|
-
</button>
|
|
551
|
-
|
|
552
|
-
// Next button (rotated left icon)
|
|
553
|
-
<button className="flex items-center justify-center bg-white/5 border border-white/20 p-2 rounded-lg">
|
|
554
|
-
<ChevronLeftIcon className="h-4 w-4 rotate-180 " />
|
|
555
|
-
</button>`}
|
|
556
|
-
</pre>
|
|
557
|
-
</div>
|
|
558
|
-
</div>
|
|
559
|
-
</div>
|
|
560
|
-
|
|
561
|
-
{/* Sidebar Toggle */}
|
|
562
|
-
<div className="!space-y-4">
|
|
563
|
-
<h3 className="text-lg font-semibold !text-purple-300">
|
|
564
|
-
Sidebar Toggle
|
|
565
|
-
</h3>
|
|
566
|
-
<div className="!space-y-4">
|
|
567
|
-
<div className="flex items-center gap-4">
|
|
568
|
-
<div className="relative">
|
|
569
|
-
<div className="h-24 w-64 rounded-lg border border-white/10 bg-white/5 p-4">
|
|
570
|
-
<div className="mb-2 flex items-center justify-between">
|
|
571
|
-
<span className="text-sm font-medium text-white">
|
|
572
|
-
Sidebar
|
|
573
|
-
</span>
|
|
574
|
-
<button className="rounded p-1 text-purple-400 hover:bg-white/10">
|
|
575
|
-
<ChevronLeftIcon className="h-4 w-4" />
|
|
576
|
-
</button>
|
|
577
|
-
</div>
|
|
578
|
-
<div className="!space-y-1">
|
|
579
|
-
<div className="h-2 w-20 rounded bg-white/10"></div>
|
|
580
|
-
<div className="h-2 w-16 rounded bg-white/10"></div>
|
|
581
|
-
</div>
|
|
582
|
-
</div>
|
|
583
|
-
</div>
|
|
584
|
-
<div className="h-24 w-32 rounded-lg border border-white/10 bg-white/5 p-4">
|
|
585
|
-
<button className="rounded p-1 text-purple-400 hover:bg-white/10">
|
|
586
|
-
<ChevronLeftIcon className="h-4 w-4 rotate-180" />
|
|
587
|
-
</button>
|
|
588
|
-
</div>
|
|
589
|
-
</div>
|
|
590
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
591
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
592
|
-
{`// Collapse sidebar
|
|
593
|
-
<button className="rounded p-1 text-purple-400 hover:bg-white/10">
|
|
594
|
-
<ChevronLeftIcon className="h-4 w-4 " />
|
|
595
|
-
</button>
|
|
596
|
-
|
|
597
|
-
// Expand sidebar (rotated)
|
|
598
|
-
<button className="rounded p-1 text-purple-400 hover:bg-white/10">
|
|
599
|
-
<ChevronLeftIcon className="h-4 w-4 rotate-180 " />
|
|
600
|
-
</button>`}
|
|
601
|
-
</pre>
|
|
602
|
-
</div>
|
|
603
|
-
</div>
|
|
604
|
-
</div>
|
|
605
|
-
</div>
|
|
606
|
-
</div>
|
|
607
|
-
|
|
608
|
-
{/* Accessibility */}
|
|
609
|
-
<div className="!space-y-8">
|
|
610
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
611
|
-
Accessibility Features
|
|
612
|
-
</h2>
|
|
613
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
614
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
615
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
616
|
-
✅ Built-in Features
|
|
617
|
-
</h3>
|
|
618
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
619
|
-
<li className="!text-white/70">
|
|
620
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
621
|
-
</li>
|
|
622
|
-
<li className="!text-white/70">
|
|
623
|
-
Provides screen reader label "Chevron Left icon"
|
|
624
|
-
</li>
|
|
625
|
-
<li className="!text-white/70">
|
|
626
|
-
Supports keyboard navigation when interactive
|
|
627
|
-
</li>
|
|
628
|
-
<li className="!text-white/70">
|
|
629
|
-
Maintains proper color contrast ratios
|
|
630
|
-
</li>
|
|
631
|
-
<li className="!text-white/70">
|
|
632
|
-
Scales with user's font size preferences
|
|
633
|
-
</li>
|
|
634
|
-
</ul>
|
|
635
|
-
</div>
|
|
636
|
-
|
|
637
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
638
|
-
<h3 className="text-lg font-semibold !text-purple-300">
|
|
639
|
-
💡 Best Practices
|
|
640
|
-
</h3>
|
|
641
|
-
<ul className="!space-y-2 text-sm text-white/70">
|
|
642
|
-
<li className="!text-white/70">
|
|
643
|
-
Use descriptive aria-labels for navigation buttons
|
|
644
|
-
</li>
|
|
645
|
-
<li className="!text-white/70">
|
|
646
|
-
Provide keyboard shortcuts for common actions
|
|
647
|
-
</li>
|
|
648
|
-
<li className="!text-white/70">
|
|
649
|
-
Ensure sufficient touch target size (44px minimum)
|
|
650
|
-
</li>
|
|
651
|
-
<li className="!text-white/70">
|
|
652
|
-
Add focus states for interactive elements
|
|
653
|
-
</li>
|
|
654
|
-
<li className="!text-white/70">
|
|
655
|
-
Consider disabled states when navigation unavailable
|
|
656
|
-
</li>
|
|
657
|
-
</ul>
|
|
658
|
-
</div>
|
|
659
|
-
</div>
|
|
660
|
-
|
|
661
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
662
|
-
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
663
|
-
Proper ARIA Implementation
|
|
664
|
-
</h3>
|
|
665
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
666
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
667
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
668
|
-
{`// Navigation button with proper ARIA
|
|
669
|
-
<button
|
|
670
|
-
aria-label="Go back to previous page"
|
|
671
|
-
className="flex items-center gap-2"
|
|
672
|
-
>
|
|
673
|
-
<ChevronLeftIcon className="h-4 w-4 " />
|
|
674
|
-
Back
|
|
675
|
-
</button>
|
|
676
|
-
|
|
677
|
-
// Pagination with context
|
|
678
|
-
<button
|
|
679
|
-
aria-label="Go to previous page"
|
|
680
|
-
disabled={currentPage === 1}
|
|
681
|
-
>
|
|
682
|
-
<ChevronLeftIcon className="h-4 w-4 " />
|
|
683
|
-
</button>
|
|
684
|
-
|
|
685
|
-
// Sidebar toggle with state
|
|
686
|
-
<button
|
|
687
|
-
aria-label={sidebarOpen ? "Collapse sidebar" : "Expand sidebar"}
|
|
688
|
-
aria-expanded={sidebarOpen}
|
|
689
|
-
>
|
|
690
|
-
<ChevronLeftIcon
|
|
691
|
-
className={cn(
|
|
692
|
-
"h-4 w-4 transition-transform ",
|
|
693
|
-
!sidebarOpen && "rotate-180"
|
|
694
|
-
)}
|
|
695
|
-
/>
|
|
696
|
-
</button>`}
|
|
697
|
-
</pre>
|
|
698
|
-
</div>
|
|
699
|
-
<div className="!space-y-4">
|
|
700
|
-
<p className="text-sm !text-white/70">
|
|
701
|
-
Always provide context-appropriate ARIA labels for
|
|
702
|
-
navigation elements. The chevron direction should match
|
|
703
|
-
the action being performed.
|
|
704
|
-
</p>
|
|
705
|
-
<div className="rounded-lg border border-purple-500/20 bg-purple-500/10 p-4">
|
|
706
|
-
<div className="flex items-center gap-2 text-sm text-purple-200">
|
|
707
|
-
<ChevronLeftIcon className="h-4 w-4" />
|
|
708
|
-
<span>
|
|
709
|
-
Consider the user's mental model of navigation
|
|
710
|
-
</span>
|
|
711
|
-
</div>
|
|
712
|
-
</div>
|
|
713
|
-
</div>
|
|
714
|
-
</div>
|
|
715
|
-
</div>
|
|
716
|
-
</div>
|
|
717
|
-
|
|
718
|
-
{/* Related Icons */}
|
|
719
|
-
<div className="!space-y-8">
|
|
720
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
721
|
-
Related Icons
|
|
722
|
-
</h2>
|
|
723
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
724
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
725
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
726
|
-
<span className="!text-2xl !text-white">→</span>
|
|
727
|
-
</div>
|
|
728
|
-
<div>
|
|
729
|
-
<div className="font-medium text-white">
|
|
730
|
-
ChevronRightIcon
|
|
731
|
-
</div>
|
|
732
|
-
<div className="text-xs text-white/60">
|
|
733
|
-
Right direction
|
|
734
|
-
</div>
|
|
735
|
-
</div>
|
|
736
|
-
</div>
|
|
737
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
738
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-pink-500/20">
|
|
739
|
-
<span className="!text-2xl !text-white">↑</span>
|
|
740
|
-
</div>
|
|
741
|
-
<div>
|
|
742
|
-
<div className="font-medium text-white">
|
|
743
|
-
ChevronUpIcon
|
|
744
|
-
</div>
|
|
745
|
-
<div className="text-xs text-white/60">
|
|
746
|
-
Upward direction
|
|
747
|
-
</div>
|
|
748
|
-
</div>
|
|
749
|
-
</div>
|
|
750
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
751
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-indigo-500/20">
|
|
752
|
-
<span className="!text-2xl !text-white">↓</span>
|
|
753
|
-
</div>
|
|
754
|
-
<div>
|
|
755
|
-
<div className="font-medium text-white">
|
|
756
|
-
ChevronDownIcon
|
|
757
|
-
</div>
|
|
758
|
-
<div className="text-xs text-white/60">
|
|
759
|
-
Downward direction
|
|
760
|
-
</div>
|
|
761
|
-
</div>
|
|
762
|
-
</div>
|
|
763
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
764
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
|
|
765
|
-
<span className="!text-2xl !text-white">←</span>
|
|
766
|
-
</div>
|
|
767
|
-
<div>
|
|
768
|
-
<div className="font-medium text-white">
|
|
769
|
-
ArrowLeftIcon
|
|
770
|
-
</div>
|
|
771
|
-
<div className="text-xs text-white/60">Arrow variant</div>
|
|
772
|
-
</div>
|
|
773
|
-
</div>
|
|
774
|
-
</div>
|
|
775
|
-
</div>
|
|
776
|
-
</div>
|
|
777
|
-
|
|
778
|
-
{/* Footer */}
|
|
779
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
780
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
781
|
-
<div className="!space-y-4 text-center">
|
|
782
|
-
<p className="!text-white/60">
|
|
783
|
-
ChevronLeftIcon is part of the Aural UI icon library, built
|
|
784
|
-
with accessibility and intuitive navigation in mind.
|
|
785
|
-
</p>
|
|
786
|
-
<p className="text-sm !text-white/40">
|
|
787
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
788
|
-
compatibility and follow WCAG guidelines.
|
|
789
|
-
</p>
|
|
790
|
-
</div>
|
|
791
|
-
</div>
|
|
792
|
-
</div>
|
|
793
|
-
</div>
|
|
794
|
-
</>
|
|
56
|
+
}`,
|
|
57
|
+
livePreview: (
|
|
58
|
+
<button className="text-fm-primary font-fm-text flex items-center gap-1 text-sm">
|
|
59
|
+
<ChevronLeftIcon className="text-fm-icon-active h-4 w-4" />
|
|
60
|
+
Back
|
|
61
|
+
</button>
|
|
62
|
+
),
|
|
63
|
+
}}
|
|
64
|
+
relatedIcons={[
|
|
65
|
+
{
|
|
66
|
+
name: "ChevronRightIcon",
|
|
67
|
+
description: "Points right",
|
|
68
|
+
icon: ChevronRightIcon,
|
|
69
|
+
accentToken: "info",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "ChevronDownIcon",
|
|
73
|
+
description: "Points downward",
|
|
74
|
+
icon: ChevronDownIcon,
|
|
75
|
+
accentToken: "positive",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "ChevronUpIcon",
|
|
79
|
+
description: "Points upward",
|
|
80
|
+
icon: ChevronUpIcon,
|
|
81
|
+
accentToken: "warning",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "AngleDownIcon",
|
|
85
|
+
description: "Softer angle chevron",
|
|
86
|
+
icon: AngleDownIcon,
|
|
87
|
+
accentToken: "negative",
|
|
88
|
+
},
|
|
89
|
+
]}
|
|
90
|
+
/>
|
|
795
91
|
),
|
|
796
92
|
},
|
|
797
93
|
},
|
|
798
94
|
tags: ["autodocs"],
|
|
799
95
|
argTypes: {
|
|
800
|
-
|
|
801
|
-
control:
|
|
802
|
-
description: "
|
|
96
|
+
className: {
|
|
97
|
+
control: "text",
|
|
98
|
+
description: "CSS classes including size and color token",
|
|
803
99
|
},
|
|
804
100
|
withAccessibility: {
|
|
805
101
|
control: "boolean",
|
|
806
|
-
description: "
|
|
807
|
-
},
|
|
808
|
-
height: {
|
|
809
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
810
|
-
description: "Height of the icon in pixels",
|
|
811
|
-
},
|
|
812
|
-
stroke: {
|
|
813
|
-
control: "color",
|
|
814
|
-
description: "Stroke color of the icon",
|
|
815
|
-
},
|
|
816
|
-
strokeWidth: {
|
|
817
|
-
control: { type: "range", min: 0.5, max: 3, step: 0.1 },
|
|
818
|
-
description: "Stroke width of the chevron line",
|
|
819
|
-
},
|
|
820
|
-
className: {
|
|
821
|
-
control: "text",
|
|
822
|
-
description: "CSS classes for styling (use for overrides)",
|
|
102
|
+
description: "Wrap with accessibility label",
|
|
823
103
|
},
|
|
824
104
|
},
|
|
825
105
|
}
|
|
@@ -827,211 +107,94 @@ function BackButton() {
|
|
|
827
107
|
export default meta
|
|
828
108
|
type Story = StoryObj<typeof ChevronLeftIcon>
|
|
829
109
|
|
|
830
|
-
// Story parameters for consistent dark theme
|
|
831
|
-
const storyParameters = {
|
|
832
|
-
backgrounds: {
|
|
833
|
-
default: "dark",
|
|
834
|
-
values: [
|
|
835
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
836
|
-
{ name: "darker", value: "#000000" },
|
|
837
|
-
],
|
|
838
|
-
},
|
|
839
|
-
}
|
|
840
|
-
|
|
841
110
|
export const Default: Story = {
|
|
842
111
|
args: {
|
|
843
|
-
|
|
844
|
-
height: 24,
|
|
845
|
-
className: "text-purple-400 ",
|
|
112
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
846
113
|
withAccessibility: true,
|
|
847
114
|
},
|
|
848
|
-
parameters: storyParameters,
|
|
849
115
|
render: (args) => (
|
|
850
|
-
<
|
|
116
|
+
<IconDefaultCanvas>
|
|
851
117
|
<ChevronLeftIcon {...args} />
|
|
852
|
-
</
|
|
118
|
+
</IconDefaultCanvas>
|
|
853
119
|
),
|
|
854
120
|
}
|
|
855
121
|
|
|
856
122
|
export const SizeVariations: Story = {
|
|
857
|
-
|
|
858
|
-
...storyParameters,
|
|
859
|
-
docs: {
|
|
860
|
-
description: {
|
|
861
|
-
story:
|
|
862
|
-
"ChevronLeftIcon in different sizes, from small UI elements to large displays.",
|
|
863
|
-
},
|
|
864
|
-
},
|
|
865
|
-
},
|
|
866
|
-
render: () => (
|
|
867
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
868
|
-
<div className="text-center">
|
|
869
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-3 w-3 text-purple-400" />
|
|
870
|
-
<span className="text-xs text-white/60">12px</span>
|
|
871
|
-
</div>
|
|
872
|
-
<div className="text-center">
|
|
873
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-4 w-4 text-purple-400" />
|
|
874
|
-
<span className="text-xs text-white/60">16px</span>
|
|
875
|
-
</div>
|
|
876
|
-
<div className="text-center">
|
|
877
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-5 w-5 text-purple-400" />
|
|
878
|
-
<span className="text-xs text-white/60">20px</span>
|
|
879
|
-
</div>
|
|
880
|
-
<div className="text-center">
|
|
881
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
|
|
882
|
-
<span className="text-xs text-white/60">24px</span>
|
|
883
|
-
</div>
|
|
884
|
-
<div className="text-center">
|
|
885
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-8 w-8 text-purple-400" />
|
|
886
|
-
<span className="text-xs text-white/60">32px</span>
|
|
887
|
-
</div>
|
|
888
|
-
<div className="text-center">
|
|
889
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-12 w-12 text-purple-400" />
|
|
890
|
-
<span className="text-xs text-white/60">48px</span>
|
|
891
|
-
</div>
|
|
892
|
-
</div>
|
|
893
|
-
),
|
|
123
|
+
render: () => <IconSizeVariations icon={ChevronLeftIcon} />,
|
|
894
124
|
}
|
|
895
125
|
|
|
896
126
|
export const ColorVariations: Story = {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
story:
|
|
902
|
-
"ChevronLeftIcon in different semantic colors for various navigation contexts.",
|
|
903
|
-
},
|
|
904
|
-
},
|
|
905
|
-
},
|
|
127
|
+
render: () => <IconColorVariations icon={ChevronLeftIcon} />,
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export const DirectionalVariations: Story = {
|
|
906
131
|
render: () => (
|
|
907
|
-
<
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
<div className="text-sm font-medium text-white">Secondary</div>
|
|
920
|
-
<div className="text-xs text-gray-400">text-gray-400</div>
|
|
921
|
-
</div>
|
|
922
|
-
<div className="text-center">
|
|
923
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-pink-500/30 bg-pink-500/20">
|
|
924
|
-
<ChevronLeftIcon className="h-8 w-8 text-pink-400" />
|
|
925
|
-
</div>
|
|
926
|
-
<div className="text-sm font-medium text-white">Accent</div>
|
|
927
|
-
<div className="text-xs text-pink-400">text-pink-400</div>
|
|
928
|
-
</div>
|
|
929
|
-
<div className="text-center">
|
|
930
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
931
|
-
<ChevronLeftIcon className="h-8 w-8 text-white/40" />
|
|
932
|
-
</div>
|
|
933
|
-
<div className="text-sm font-medium text-white">Disabled</div>
|
|
934
|
-
<div className="text-xs text-white/40">text-white/40</div>
|
|
935
|
-
</div>
|
|
936
|
-
</div>
|
|
132
|
+
<IconDirectionalVariations
|
|
133
|
+
icon={ChevronLeftIcon}
|
|
134
|
+
directions={[
|
|
135
|
+
{ label: "Left", className: "h-8 w-8 text-fm-icon-active" },
|
|
136
|
+
{
|
|
137
|
+
label: "Down",
|
|
138
|
+
className: "h-8 w-8 text-fm-icon-active -rotate-90",
|
|
139
|
+
},
|
|
140
|
+
{ label: "Right", className: "h-8 w-8 text-fm-icon-active rotate-180" },
|
|
141
|
+
{ label: "Up", className: "h-8 w-8 text-fm-icon-active rotate-90" },
|
|
142
|
+
]}
|
|
143
|
+
/>
|
|
937
144
|
),
|
|
938
145
|
}
|
|
939
146
|
|
|
940
147
|
export const UsageExamples: Story = {
|
|
941
|
-
parameters: {
|
|
942
|
-
...storyParameters,
|
|
943
|
-
docs: {
|
|
944
|
-
description: {
|
|
945
|
-
story:
|
|
946
|
-
"Real-world usage examples showing ChevronLeftIcon in different navigation contexts.",
|
|
947
|
-
},
|
|
948
|
-
},
|
|
949
|
-
},
|
|
950
148
|
render: () => (
|
|
951
|
-
<
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
Back
|
|
959
|
-
</button>
|
|
960
|
-
<button className="flex items-center gap-2 rounded-lg border border-white/20 bg-white/5 px-4 py-2 text-white transition-colors hover:bg-white/10">
|
|
961
|
-
<ChevronLeftIcon className="h-4 w-4" />
|
|
962
|
-
Previous Page
|
|
963
|
-
</button>
|
|
964
|
-
</div>
|
|
965
|
-
</div>
|
|
966
|
-
|
|
967
|
-
{/* Pagination */}
|
|
968
|
-
<div className="!space-y-2">
|
|
969
|
-
<h3 className="text-sm font-medium text-white">Pagination Controls</h3>
|
|
970
|
-
<div className="flex items-center gap-2">
|
|
971
|
-
<button className="flex items-center justify-center rounded-lg border border-white/20 bg-white/5 p-2 text-white hover:bg-white/10">
|
|
972
|
-
<ChevronLeftIcon className="h-4 w-4" />
|
|
973
|
-
</button>
|
|
974
|
-
<div className="flex items-center gap-1">
|
|
975
|
-
<button className="rounded-lg border border-purple-500/30 bg-purple-500/20 px-3 py-1 text-purple-200">
|
|
976
|
-
1
|
|
977
|
-
</button>
|
|
978
|
-
<button className="rounded-lg px-3 py-1 text-white/60 hover:bg-white/10">
|
|
979
|
-
2
|
|
980
|
-
</button>
|
|
981
|
-
<button className="rounded-lg px-3 py-1 text-white/60 hover:bg-white/10">
|
|
982
|
-
3
|
|
149
|
+
<IconUsageCanvas>
|
|
150
|
+
<IconUsageSection title="Back Navigation">
|
|
151
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
152
|
+
<div className="flex items-center gap-2">
|
|
153
|
+
<button className="border-fm-divider-secondary flex items-center gap-1.5 rounded-lg border px-3 py-2">
|
|
154
|
+
<ChevronLeftIcon className="text-fm-icon-active h-4 w-4" />
|
|
155
|
+
<span className="text-fm-primary font-fm-text text-sm">Back</span>
|
|
983
156
|
</button>
|
|
157
|
+
<span className="text-fm-secondary font-fm-text text-sm">
|
|
158
|
+
Episode List
|
|
159
|
+
</span>
|
|
984
160
|
</div>
|
|
985
|
-
<button className="flex items-center justify-center rounded-lg border border-white/20 bg-white/5 p-2 text-white hover:bg-white/10">
|
|
986
|
-
<ChevronLeftIcon className="h-4 w-4 rotate-180" />
|
|
987
|
-
</button>
|
|
988
161
|
</div>
|
|
989
|
-
</
|
|
162
|
+
</IconUsageSection>
|
|
990
163
|
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
<button className="flex items-center
|
|
998
|
-
<
|
|
999
|
-
<span>Dashboard</span>
|
|
164
|
+
<IconUsageSection title="Carousel Control">
|
|
165
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-between rounded-xl border p-4">
|
|
166
|
+
<button className="border-fm-divider-secondary flex h-8 w-8 items-center justify-center rounded-full border">
|
|
167
|
+
<ChevronLeftIcon className="text-fm-icon-active h-4 w-4" />
|
|
168
|
+
</button>
|
|
169
|
+
<span className="text-fm-secondary font-fm-text text-sm">3 / 10</span>
|
|
170
|
+
<button className="border-fm-divider-secondary flex h-8 w-8 items-center justify-center rounded-full border">
|
|
171
|
+
<ChevronRightIcon className="text-fm-icon-active h-4 w-4" />
|
|
1000
172
|
</button>
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
173
|
+
</div>
|
|
174
|
+
</IconUsageSection>
|
|
175
|
+
|
|
176
|
+
<IconUsageSection title="Sidebar Toggle">
|
|
177
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-between rounded-xl border px-4 py-3">
|
|
178
|
+
<span className="text-fm-primary font-fm-text text-sm font-medium">
|
|
179
|
+
Navigation
|
|
180
|
+
</span>
|
|
181
|
+
<button aria-label="Collapse sidebar">
|
|
182
|
+
<ChevronLeftIcon className="text-fm-icon-inactive h-5 w-5" />
|
|
1005
183
|
</button>
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
</div>
|
|
1010
|
-
</div>
|
|
184
|
+
</div>
|
|
185
|
+
</IconUsageSection>
|
|
186
|
+
</IconUsageCanvas>
|
|
1011
187
|
),
|
|
1012
188
|
}
|
|
1013
189
|
|
|
1014
190
|
export const Playground: Story = {
|
|
1015
|
-
parameters: {
|
|
1016
|
-
...storyParameters,
|
|
1017
|
-
docs: {
|
|
1018
|
-
description: {
|
|
1019
|
-
story:
|
|
1020
|
-
"Interactive playground to experiment with different ChevronLeftIcon configurations.",
|
|
1021
|
-
},
|
|
1022
|
-
},
|
|
1023
|
-
},
|
|
1024
191
|
args: {
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
className: "text-purple-400 ",
|
|
1028
|
-
strokeWidth: 1.5,
|
|
192
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
193
|
+
withAccessibility: true,
|
|
1029
194
|
},
|
|
1030
195
|
render: (args) => (
|
|
1031
|
-
<
|
|
1032
|
-
<
|
|
1033
|
-
|
|
1034
|
-
</div>
|
|
1035
|
-
</div>
|
|
196
|
+
<IconPlaygroundCanvas>
|
|
197
|
+
<ChevronLeftIcon {...args} />
|
|
198
|
+
</IconPlaygroundCanvas>
|
|
1036
199
|
),
|
|
1037
200
|
}
|