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 { ChevronDoubleLeftIcon } from "src/ui/icons/chevron-double-left-icon"
|
|
5
|
+
import { ChevronLeftIcon } from "src/ui/icons/chevron-left-icon"
|
|
6
|
+
import { ChevronRightIcon } from "src/ui/icons/chevron-right-icon"
|
|
7
|
+
import { SkipForwardIcon } from "src/ui/icons/skip-forward-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 { ChevronDoubleRightIcon } from "."
|
|
5
20
|
|
|
6
21
|
const meta: Meta<typeof ChevronDoubleRightIcon> = {
|
|
@@ -18,808 +33,74 @@ const meta: Meta<typeof ChevronDoubleRightIcon> = {
|
|
|
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-positive/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-positive/10 to-fm-icon-positive/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-positive/30 from-fm-icon-positive/20 to-fm-icon-positive/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
90
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive h-12 w-12" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
-
ChevronDoubleRightIcon
|
|
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 right,
|
|
97
|
-
perfect for pagination, breadcrumbs, and forward 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-positive 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-positive 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
|
-
Forward direction
|
|
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-positive! 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 { ChevronDoubleRightIcon } from "@icons/chevron-double-right-icon"
|
|
150
|
-
|
|
151
|
-
function PaginationButton() {
|
|
36
|
+
<AuralIconDocsPage
|
|
37
|
+
accentToken="warning"
|
|
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 { ChevronDoubleRightIcon } from "src/ui/icons/chevron-double-right-icon"
|
|
48
|
+
|
|
49
|
+
function LastPageButton() {
|
|
152
50
|
return (
|
|
153
|
-
<button
|
|
154
|
-
<
|
|
155
|
-
<ChevronDoubleRightIcon className="h-5 w-5 text-green-400 " />
|
|
51
|
+
<button aria-label="Last page">
|
|
52
|
+
<ChevronDoubleRightIcon className="h-4 w-4 text-fm-icon-active" />
|
|
156
53
|
</button>
|
|
157
54
|
)
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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-positive! 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-positive! 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-positive! 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-positive! 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-positive! 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-positive! 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
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive !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
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive !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
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive !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
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive !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
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive !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
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive !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-positive! 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
|
-
<ChevronDoubleRightIcon className="h-4 w-4 " />
|
|
357
|
-
|
|
358
|
-
// Medium (24px)
|
|
359
|
-
<ChevronDoubleRightIcon className="h-6 w-6 " />
|
|
360
|
-
|
|
361
|
-
// Large (32px)
|
|
362
|
-
<ChevronDoubleRightIcon className="h-8 w-8 " />
|
|
363
|
-
|
|
364
|
-
// Custom size
|
|
365
|
-
<ChevronDoubleRightIcon 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-positive! 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
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive 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-positive
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
</div>
|
|
396
|
-
<div className="flex items-center gap-4">
|
|
397
|
-
<ChevronDoubleRightIcon 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
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive 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-icon-positive
|
|
415
|
-
</div>
|
|
416
|
-
</div>
|
|
417
|
-
</div>
|
|
418
|
-
<div className="flex items-center gap-4">
|
|
419
|
-
<ChevronDoubleRightIcon 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-positive! 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
|
-
<ChevronDoubleRightIcon className="h-6 w-6 text-green-400 " />
|
|
440
|
-
<ChevronDoubleRightIcon className="h-6 w-6 text-emerald-500 " />
|
|
441
|
-
|
|
442
|
-
// Using CSS custom properties
|
|
443
|
-
<ChevronDoubleRightIcon
|
|
444
|
-
className="h-6 w-6 "
|
|
445
|
-
style={{ color: 'var(--color-primary)' }}
|
|
446
|
-
/>
|
|
447
|
-
|
|
448
|
-
// Direct stroke prop
|
|
449
|
-
<ChevronDoubleRightIcon
|
|
450
|
-
width={24}
|
|
451
|
-
height={24}
|
|
452
|
-
stroke="#10b981"
|
|
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-positive! 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
|
-
<span className="text-fm-tertiary text-sm">
|
|
475
|
-
Page 5 of 10
|
|
476
|
-
</span>
|
|
477
|
-
<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">
|
|
478
|
-
<ChevronDoubleRightIcon className="h-4 w-4" />
|
|
479
|
-
</button>
|
|
480
|
-
<button className="border-fm-icon-positive/30 bg-fm-icon-positive/10 text-fm-icon-positive hover:bg-fm-icon-positive/20 flex items-center gap-2 rounded-lg border px-3 py-2 transition-colors">
|
|
481
|
-
<span>Last</span>
|
|
482
|
-
<ChevronDoubleRightIcon className="h-4 w-4" />
|
|
483
|
-
</button>
|
|
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
|
-
<span className="text-sm text-white/60">Page 5 of 10</span>
|
|
489
|
-
<button className="p-2 bg-white/5 border border-white/20 rounded-lg">
|
|
490
|
-
<ChevronDoubleRightIcon className="h-4 w-4 " />
|
|
491
|
-
</button>
|
|
492
|
-
<button className="flex items-center gap-2 bg-green-500/10 border border-green-500/30 px-3 py-2 rounded-lg">
|
|
493
|
-
<span>Last</span>
|
|
494
|
-
<ChevronDoubleRightIcon className="h-4 w-4 " />
|
|
495
|
-
</button>
|
|
496
|
-
</div>`}
|
|
497
|
-
</pre>
|
|
498
|
-
</div>
|
|
499
|
-
</div>
|
|
500
|
-
</div>
|
|
501
|
-
|
|
502
|
-
{/* Breadcrumbs */}
|
|
503
|
-
<div className="!space-y-4">
|
|
504
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
505
|
-
Breadcrumb Navigation
|
|
506
|
-
</h3>
|
|
507
|
-
<div className="!space-y-4">
|
|
508
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
509
|
-
<nav className="flex items-center gap-2 text-sm">
|
|
510
|
-
<span className="text-fm-tertiary">Current Page</span>
|
|
511
|
-
<span className="text-fm-placeholder">/</span>
|
|
512
|
-
<button className="text-fm-icon-positive hover:bg-fm-icon-positive/10 flex items-center gap-1 rounded px-2 py-1">
|
|
513
|
-
<span>Go to End</span>
|
|
514
|
-
<ChevronDoubleRightIcon className="h-3 w-3" />
|
|
515
|
-
</button>
|
|
516
|
-
</nav>
|
|
517
|
-
</div>
|
|
518
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
519
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
520
|
-
{`<nav className="flex items-center gap-2 text-sm">
|
|
521
|
-
<span className="text-white/60">Current Page</span>
|
|
522
|
-
<span className="text-white/40">/</span>
|
|
523
|
-
<button className="flex items-center gap-1 rounded px-2 py-1 text-green-300 hover:bg-green-500/10">
|
|
524
|
-
<span>Go to End</span>
|
|
525
|
-
<ChevronDoubleRightIcon className="h-3 w-3 " />
|
|
526
|
-
</button>
|
|
527
|
-
</nav>`}
|
|
528
|
-
</pre>
|
|
529
|
-
</div>
|
|
530
|
-
</div>
|
|
531
|
-
</div>
|
|
532
|
-
|
|
533
|
-
{/* Table Navigation */}
|
|
534
|
-
<div className="!space-y-4">
|
|
535
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
536
|
-
Table Navigation
|
|
537
|
-
</h3>
|
|
538
|
-
<div className="!space-y-4">
|
|
539
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
540
|
-
<div className="border-fm-divider-secondary flex items-center justify-between border-b p-4">
|
|
541
|
-
<span className="text-fm-secondary text-sm">
|
|
542
|
-
Showing 91-100 of 100 items
|
|
543
|
-
</span>
|
|
544
|
-
<div className="flex items-center gap-1">
|
|
545
|
-
<button
|
|
546
|
-
className="text-fm-placeholder rounded p-1"
|
|
547
|
-
disabled
|
|
548
|
-
aria-label="Next page"
|
|
549
|
-
>
|
|
550
|
-
<ChevronDoubleRightIcon className="h-4 w-4 -rotate-90" />
|
|
551
|
-
</button>
|
|
552
|
-
<button
|
|
553
|
-
className="text-fm-icon-positive hover:bg-fm-icon-positive/10 rounded p-1"
|
|
554
|
-
aria-label="Go to last page"
|
|
555
|
-
>
|
|
556
|
-
<ChevronDoubleRightIcon className="h-4 w-4" />
|
|
557
|
-
</button>
|
|
558
|
-
</div>
|
|
559
|
-
</div>
|
|
560
|
-
</div>
|
|
561
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
562
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
563
|
-
{`<div className="flex items-center justify-between p-4">
|
|
564
|
-
<span className="text-sm text-white/70">
|
|
565
|
-
Showing 91-100 of 100 items
|
|
566
|
-
</span>
|
|
567
|
-
<div className="flex items-center gap-1">
|
|
568
|
-
<button className="rounded p-1 text-green-400 hover:bg-green-500/10" aria-label="Go to last page">
|
|
569
|
-
<ChevronDoubleRightIcon className="h-4 w-4 " />
|
|
570
|
-
</button>
|
|
571
|
-
</div>
|
|
572
|
-
</div>`}
|
|
573
|
-
</pre>
|
|
574
|
-
</div>
|
|
575
|
-
</div>
|
|
576
|
-
</div>
|
|
577
|
-
|
|
578
|
-
{/* Sidebar Toggle */}
|
|
579
|
-
<div className="!space-y-4">
|
|
580
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
581
|
-
Step Navigation
|
|
582
|
-
</h3>
|
|
583
|
-
<div className="!space-y-4">
|
|
584
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 rounded-lg border">
|
|
585
|
-
<div className="flex-1 p-4">
|
|
586
|
-
<span className="text-fm-tertiary">Step 2 of 5</span>
|
|
587
|
-
</div>
|
|
588
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-32 items-center justify-center border-l">
|
|
589
|
-
<button className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-2 rounded px-3 py-2">
|
|
590
|
-
<span>Skip to End</span>
|
|
591
|
-
<ChevronDoubleRightIcon className="h-4 w-4" />
|
|
592
|
-
</button>
|
|
593
|
-
</div>
|
|
594
|
-
</div>
|
|
595
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
596
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
597
|
-
{`// Step navigation with skip to end
|
|
598
|
-
<button className="flex items-center gap-2 rounded px-3 py-2 text-white/60 hover:bg-white/10">
|
|
599
|
-
<span>Skip to End</span>
|
|
600
|
-
<ChevronDoubleRightIcon className="h-4 w-4 " />
|
|
601
|
-
</button>
|
|
602
|
-
|
|
603
|
-
// Rotate for different directions
|
|
604
|
-
<ChevronDoubleRightIcon className="h-4 w-4 rotate-180 " />`}
|
|
605
|
-
</pre>
|
|
606
|
-
</div>
|
|
607
|
-
</div>
|
|
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 Right 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-positive! 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-icon-positive! 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 last page"
|
|
675
|
-
className="flex items-center gap-2"
|
|
676
|
-
>
|
|
677
|
-
Last
|
|
678
|
-
<ChevronDoubleRightIcon className="h-4 w-4 " />
|
|
679
|
-
</button>
|
|
680
|
-
|
|
681
|
-
// Icon-only button
|
|
682
|
-
<button
|
|
683
|
-
aria-label="Navigate to end"
|
|
684
|
-
className="p-2 rounded"
|
|
685
|
-
>
|
|
686
|
-
<ChevronDoubleRightIcon className="h-4 w-4 " />
|
|
687
|
-
</button>
|
|
688
|
-
|
|
689
|
-
// Disabled state
|
|
690
|
-
<button
|
|
691
|
-
aria-label="Go to last page"
|
|
692
|
-
disabled
|
|
693
|
-
aria-disabled="true"
|
|
694
|
-
>
|
|
695
|
-
<ChevronDoubleRightIcon 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-positive/20 bg-fm-icon-positive/10 rounded-lg border p-4">
|
|
706
|
-
<div className="text-fm-icon-positive flex items-center gap-2 text-sm">
|
|
707
|
-
<ChevronDoubleRightIcon 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! !text-2xl">«</span>
|
|
725
|
-
</div>
|
|
726
|
-
<div>
|
|
727
|
-
<div className="text-fm-icon-active font-medium">
|
|
728
|
-
ChevronDoubleLeftIcon
|
|
729
|
-
</div>
|
|
730
|
-
<div className="text-fm-tertiary text-xs">
|
|
731
|
-
Navigate backward
|
|
732
|
-
</div>
|
|
733
|
-
</div>
|
|
734
|
-
</div>
|
|
735
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
736
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
737
|
-
<span className="text-fm-icon-active! !text-2xl">›</span>
|
|
738
|
-
</div>
|
|
739
|
-
<div>
|
|
740
|
-
<div className="text-fm-icon-active font-medium">
|
|
741
|
-
ChevronRightIcon
|
|
742
|
-
</div>
|
|
743
|
-
<div className="text-fm-tertiary text-xs">
|
|
744
|
-
Single step forward
|
|
745
|
-
</div>
|
|
746
|
-
</div>
|
|
747
|
-
</div>
|
|
748
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
749
|
-
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
750
|
-
<span className="text-fm-icon-active! !text-2xl">↓</span>
|
|
751
|
-
</div>
|
|
752
|
-
<div>
|
|
753
|
-
<div className="text-fm-icon-active font-medium">
|
|
754
|
-
ArrowDownIcon
|
|
755
|
-
</div>
|
|
756
|
-
<div className="text-fm-tertiary text-xs">
|
|
757
|
-
Vertical navigation
|
|
758
|
-
</div>
|
|
759
|
-
</div>
|
|
760
|
-
</div>
|
|
761
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
762
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
763
|
-
<span className="text-fm-icon-active! !text-2xl">⟳</span>
|
|
764
|
-
</div>
|
|
765
|
-
<div>
|
|
766
|
-
<div className="text-fm-icon-active font-medium">
|
|
767
|
-
RefreshIcon
|
|
768
|
-
</div>
|
|
769
|
-
<div className="text-fm-tertiary text-xs">
|
|
770
|
-
Reset/reload
|
|
771
|
-
</div>
|
|
772
|
-
</div>
|
|
773
|
-
</div>
|
|
774
|
-
</div>
|
|
775
|
-
</div>
|
|
776
|
-
</div>
|
|
777
|
-
|
|
778
|
-
{/* Footer */}
|
|
779
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t 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-fm-tertiary!">
|
|
783
|
-
ChevronDoubleRightIcon is part of the Aural UI icon library,
|
|
784
|
-
built with accessibility and forward navigation in mind.
|
|
785
|
-
</p>
|
|
786
|
-
<p className="text-fm-placeholder! text-sm">
|
|
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
|
-
</>
|
|
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="Last page"
|
|
60
|
+
>
|
|
61
|
+
<ChevronDoubleRightIcon className="text-fm-icon-active h-4 w-4" />
|
|
62
|
+
</button>
|
|
63
|
+
),
|
|
64
|
+
}}
|
|
65
|
+
relatedIcons={[
|
|
66
|
+
{
|
|
67
|
+
name: "ChevronDoubleLeftIcon",
|
|
68
|
+
description: "Double left chevron",
|
|
69
|
+
icon: ChevronDoubleLeftIcon,
|
|
70
|
+
accentToken: "info",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "ChevronRightIcon",
|
|
74
|
+
description: "Single right chevron",
|
|
75
|
+
icon: ChevronRightIcon,
|
|
76
|
+
accentToken: "positive",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "ChevronLeftIcon",
|
|
80
|
+
description: "Single left chevron",
|
|
81
|
+
icon: ChevronLeftIcon,
|
|
82
|
+
accentToken: "warning",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "SkipForwardIcon",
|
|
86
|
+
description: "Skip to next",
|
|
87
|
+
icon: SkipForwardIcon,
|
|
88
|
+
accentToken: "negative",
|
|
89
|
+
},
|
|
90
|
+
]}
|
|
91
|
+
/>
|
|
795
92
|
),
|
|
796
93
|
},
|
|
797
94
|
},
|
|
798
95
|
tags: ["autodocs"],
|
|
799
96
|
argTypes: {
|
|
800
|
-
|
|
801
|
-
control:
|
|
802
|
-
description: "
|
|
97
|
+
className: {
|
|
98
|
+
control: "text",
|
|
99
|
+
description: "CSS classes including size and color token",
|
|
803
100
|
},
|
|
804
101
|
withAccessibility: {
|
|
805
102
|
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 lines",
|
|
819
|
-
},
|
|
820
|
-
className: {
|
|
821
|
-
control: "text",
|
|
822
|
-
description: "CSS classes for styling (use for overrides)",
|
|
103
|
+
description: "Wrap with accessibility label",
|
|
823
104
|
},
|
|
824
105
|
},
|
|
825
106
|
}
|
|
@@ -827,237 +108,124 @@ function PaginationButton() {
|
|
|
827
108
|
export default meta
|
|
828
109
|
type Story = StoryObj<typeof ChevronDoubleRightIcon>
|
|
829
110
|
|
|
830
|
-
// Story parameters for consistent dark theme
|
|
831
|
-
const storyParameters = {
|
|
832
|
-
backgrounds: {
|
|
833
|
-
default: "dark",
|
|
834
|
-
values: [
|
|
835
|
-
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
836
|
-
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
837
|
-
],
|
|
838
|
-
},
|
|
839
|
-
}
|
|
840
|
-
|
|
841
111
|
export const Default: Story = {
|
|
842
112
|
args: {
|
|
843
|
-
|
|
844
|
-
height: 24,
|
|
845
|
-
className: "text-fm-icon-positive ",
|
|
113
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
846
114
|
withAccessibility: true,
|
|
847
115
|
},
|
|
848
|
-
parameters: storyParameters,
|
|
849
116
|
render: (args) => (
|
|
850
|
-
<
|
|
117
|
+
<IconDefaultCanvas>
|
|
851
118
|
<ChevronDoubleRightIcon {...args} />
|
|
852
|
-
</
|
|
119
|
+
</IconDefaultCanvas>
|
|
853
120
|
),
|
|
854
121
|
}
|
|
855
122
|
|
|
856
123
|
export const SizeVariations: Story = {
|
|
857
|
-
|
|
858
|
-
...storyParameters,
|
|
859
|
-
docs: {
|
|
860
|
-
description: {
|
|
861
|
-
story:
|
|
862
|
-
"ChevronDoubleRightIcon in different sizes, from small UI elements to large displays.",
|
|
863
|
-
},
|
|
864
|
-
},
|
|
865
|
-
},
|
|
866
|
-
render: () => (
|
|
867
|
-
<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">
|
|
868
|
-
<div className="text-center">
|
|
869
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive !mx-auto mb-2 h-3 w-3" />
|
|
870
|
-
<span className="text-fm-tertiary text-xs">12px</span>
|
|
871
|
-
</div>
|
|
872
|
-
<div className="text-center">
|
|
873
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive !mx-auto mb-2 h-4 w-4" />
|
|
874
|
-
<span className="text-fm-tertiary text-xs">16px</span>
|
|
875
|
-
</div>
|
|
876
|
-
<div className="text-center">
|
|
877
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive !mx-auto mb-2 h-5 w-5" />
|
|
878
|
-
<span className="text-fm-tertiary text-xs">20px</span>
|
|
879
|
-
</div>
|
|
880
|
-
<div className="text-center">
|
|
881
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
882
|
-
<span className="text-fm-tertiary text-xs">24px</span>
|
|
883
|
-
</div>
|
|
884
|
-
<div className="text-center">
|
|
885
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive !mx-auto mb-2 h-8 w-8" />
|
|
886
|
-
<span className="text-fm-tertiary text-xs">32px</span>
|
|
887
|
-
</div>
|
|
888
|
-
<div className="text-center">
|
|
889
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive !mx-auto mb-2 h-12 w-12" />
|
|
890
|
-
<span className="text-fm-tertiary text-xs">48px</span>
|
|
891
|
-
</div>
|
|
892
|
-
</div>
|
|
893
|
-
),
|
|
124
|
+
render: () => <IconSizeVariations icon={ChevronDoubleRightIcon} />,
|
|
894
125
|
}
|
|
895
126
|
|
|
896
127
|
export const ColorVariations: Story = {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
story:
|
|
902
|
-
"ChevronDoubleRightIcon in different semantic colors for various UI contexts.",
|
|
903
|
-
},
|
|
904
|
-
},
|
|
905
|
-
},
|
|
128
|
+
render: () => <IconColorVariations icon={ChevronDoubleRightIcon} />,
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export const DirectionalVariations: Story = {
|
|
906
132
|
render: () => (
|
|
907
|
-
<
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
<div className="text-center">
|
|
918
|
-
<div className="border-fm-divider-primary bg-fm-surface-tertiary/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
919
|
-
<ChevronDoubleRightIcon 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-icon-positive/30 bg-fm-icon-positive/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
926
|
-
<ChevronDoubleRightIcon className="text-fm-icon-positive h-8 w-8" />
|
|
927
|
-
</div>
|
|
928
|
-
<div className="text-fm-icon-active text-sm font-medium">Accent</div>
|
|
929
|
-
<div className="text-fm-icon-positive text-xs">
|
|
930
|
-
text-fm-icon-positive
|
|
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
|
-
<ChevronDoubleRightIcon 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={ChevronDoubleRightIcon}
|
|
135
|
+
directions={[
|
|
136
|
+
{ label: "Right", className: "h-8 w-8 text-fm-icon-active" },
|
|
137
|
+
{
|
|
138
|
+
label: "Left",
|
|
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 ChevronDoubleRightIcon in different navigation contexts.",
|
|
951
|
-
},
|
|
952
|
-
},
|
|
953
|
-
},
|
|
954
147
|
render: () => (
|
|
955
|
-
<
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
<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">
|
|
964
|
-
<ChevronDoubleRightIcon className="h-4 w-4" />
|
|
148
|
+
<IconUsageCanvas>
|
|
149
|
+
<IconUsageSection title="Pagination Last 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" />
|
|
965
156
|
</button>
|
|
966
|
-
<button
|
|
967
|
-
|
|
968
|
-
|
|
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" />
|
|
162
|
+
</button>
|
|
163
|
+
<span className="text-fm-secondary font-fm-text px-2 text-sm">
|
|
164
|
+
24 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-inactive 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-inactive h-4 w-4" />
|
|
969
177
|
</button>
|
|
970
178
|
</div>
|
|
971
|
-
</
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
<
|
|
983
|
-
|
|
984
|
-
<ChevronDoubleRightIcon className="h-3 w-3" />
|
|
985
|
-
</button>
|
|
986
|
-
</nav>
|
|
987
|
-
</div>
|
|
988
|
-
</div>
|
|
989
|
-
|
|
990
|
-
{/* Table Navigation */}
|
|
991
|
-
<div className="!space-y-2">
|
|
992
|
-
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
993
|
-
Table Navigation
|
|
994
|
-
</h3>
|
|
995
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
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 91-100 of 100 items
|
|
999
|
-
</span>
|
|
1000
|
-
<div className="flex items-center gap-1">
|
|
1001
|
-
<button
|
|
1002
|
-
className="text-fm-placeholder rounded p-1"
|
|
1003
|
-
disabled
|
|
1004
|
-
aria-label="Next page"
|
|
1005
|
-
>
|
|
1006
|
-
<ChevronDoubleRightIcon className="h-4 w-4 -rotate-90" />
|
|
1007
|
-
</button>
|
|
1008
|
-
<button
|
|
1009
|
-
className="text-fm-icon-positive hover:bg-fm-icon-positive/10 rounded p-1"
|
|
1010
|
-
aria-label="Go to last page"
|
|
1011
|
-
>
|
|
1012
|
-
<ChevronDoubleRightIcon className="h-4 w-4" />
|
|
1013
|
-
</button>
|
|
1014
|
-
</div>
|
|
1015
|
-
</div>
|
|
179
|
+
</IconUsageSection>
|
|
180
|
+
|
|
181
|
+
<IconUsageSection title="Expand 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
|
+
Panel
|
|
185
|
+
</span>
|
|
186
|
+
<button
|
|
187
|
+
className="border-fm-divider-secondary rounded-lg border p-1"
|
|
188
|
+
aria-label="Expand to right"
|
|
189
|
+
>
|
|
190
|
+
<ChevronDoubleRightIcon className="text-fm-icon-active h-4 w-4" />
|
|
191
|
+
</button>
|
|
1016
192
|
</div>
|
|
1017
|
-
</
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
193
|
+
</IconUsageSection>
|
|
194
|
+
|
|
195
|
+
<IconUsageSection title="Fast Forward">
|
|
196
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-center gap-3 rounded-xl border p-4">
|
|
197
|
+
<button
|
|
198
|
+
className="border-fm-divider-secondary flex h-9 w-9 items-center justify-center rounded-full border"
|
|
199
|
+
aria-label="Rewind"
|
|
200
|
+
>
|
|
201
|
+
<ChevronDoubleLeftIcon className="text-fm-icon-active h-4 w-4" />
|
|
202
|
+
</button>
|
|
203
|
+
<button
|
|
204
|
+
className="bg-fm-icon-active flex h-10 w-10 items-center justify-center rounded-full"
|
|
205
|
+
aria-label="Play"
|
|
206
|
+
>
|
|
207
|
+
<span className="text-fm-primary font-fm-text text-xs">Play</span>
|
|
208
|
+
</button>
|
|
209
|
+
<button
|
|
210
|
+
className="border-fm-divider-secondary flex h-9 w-9 items-center justify-center rounded-full border"
|
|
211
|
+
aria-label="Fast forward"
|
|
212
|
+
>
|
|
213
|
+
<ChevronDoubleRightIcon className="text-fm-icon-active h-4 w-4" />
|
|
214
|
+
</button>
|
|
1034
215
|
</div>
|
|
1035
|
-
</
|
|
1036
|
-
</
|
|
216
|
+
</IconUsageSection>
|
|
217
|
+
</IconUsageCanvas>
|
|
1037
218
|
),
|
|
1038
219
|
}
|
|
1039
220
|
|
|
1040
221
|
export const Playground: Story = {
|
|
1041
|
-
parameters: {
|
|
1042
|
-
...storyParameters,
|
|
1043
|
-
docs: {
|
|
1044
|
-
description: {
|
|
1045
|
-
story:
|
|
1046
|
-
"Interactive playground to experiment with different ChevronDoubleRightIcon configurations.",
|
|
1047
|
-
},
|
|
1048
|
-
},
|
|
1049
|
-
},
|
|
1050
222
|
args: {
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
className: "text-fm-icon-positive ",
|
|
1054
|
-
strokeWidth: 1.5,
|
|
223
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
224
|
+
withAccessibility: true,
|
|
1055
225
|
},
|
|
1056
226
|
render: (args) => (
|
|
1057
|
-
<
|
|
1058
|
-
<
|
|
1059
|
-
|
|
1060
|
-
</div>
|
|
1061
|
-
</div>
|
|
227
|
+
<IconPlaygroundCanvas>
|
|
228
|
+
<ChevronDoubleRightIcon {...args} />
|
|
229
|
+
</IconPlaygroundCanvas>
|
|
1062
230
|
),
|
|
1063
231
|
}
|