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