aural-ui 3.0.7 → 4.1.0

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