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