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