aural-ui 3.0.7 → 4.1.0

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