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