aural-ui 2.0.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/LICENSE +21 -0
- package/README.md +456 -0
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +1327 -0
- package/dist/components/aspect-ratio/index.tsx +10 -0
- package/dist/components/aspect-ratio/meta.ts +8 -0
- package/dist/components/avatar/Avatar.stories.tsx +645 -0
- package/dist/components/avatar/index.tsx +50 -0
- package/dist/components/avatar/meta.ts +8 -0
- package/dist/components/badge/Badge.stories.tsx +169 -0
- package/dist/components/badge/index.tsx +28 -0
- package/dist/components/badge/meta.ts +6 -0
- package/dist/components/banner/Banner.stories.tsx +475 -0
- package/dist/components/banner/index.tsx +256 -0
- package/dist/components/banner/meta.ts +36 -0
- package/dist/components/button/Button.stories.tsx +74 -0
- package/dist/components/button/index.tsx +158 -0
- package/dist/components/button/meta.ts +33 -0
- package/dist/components/card/Card.stories.tsx +377 -0
- package/dist/components/card/index.tsx +85 -0
- package/dist/components/card/meta.ts +14 -0
- package/dist/components/char-count/CharCount.stories.tsx +334 -0
- package/dist/components/char-count/index.tsx +51 -0
- package/dist/components/char-count/meta.ts +13 -0
- package/dist/components/checkbox/Checkbox.stories.tsx +209 -0
- package/dist/components/checkbox/index.tsx +34 -0
- package/dist/components/checkbox/meta.ts +19 -0
- package/dist/components/chip/Chip.stories.tsx +207 -0
- package/dist/components/chip/index.tsx +92 -0
- package/dist/components/chip/meta.ts +17 -0
- package/dist/components/circular-loader/CircularLoader.stories.tsx +741 -0
- package/dist/components/circular-loader/index.tsx +138 -0
- package/dist/components/circular-loader/meta.ts +11 -0
- package/dist/components/collapsible/Collapsible.stories.tsx +319 -0
- package/dist/components/collapsible/index.tsx +158 -0
- package/dist/components/collapsible/meta.ts +22 -0
- package/dist/components/command/Command.stories.tsx +996 -0
- package/dist/components/command/index.tsx +324 -0
- package/dist/components/command/meta.ts +18 -0
- package/dist/components/dialog/Dialog.stories.tsx +963 -0
- package/dist/components/dialog/index.tsx +250 -0
- package/dist/components/dialog/meta.ts +28 -0
- package/dist/components/divider/Divider.stories.tsx +633 -0
- package/dist/components/divider/index.tsx +181 -0
- package/dist/components/divider/meta.ts +12 -0
- package/dist/components/dot-loader/DotLoader.stories.tsx +352 -0
- package/dist/components/dot-loader/index.tsx +78 -0
- package/dist/components/dot-loader/meta.ts +14 -0
- package/dist/components/dropdown/Dropdown.stories.tsx +1210 -0
- package/dist/components/dropdown/index.tsx +479 -0
- package/dist/components/dropdown/meta.ts +21 -0
- package/dist/components/form/Form.stories.tsx +320 -0
- package/dist/components/form/index.tsx +183 -0
- package/dist/components/form/meta.ts +11 -0
- package/dist/components/helper-text/HelperText.stories.tsx +254 -0
- package/dist/components/helper-text/index.tsx +102 -0
- package/dist/components/helper-text/meta.ts +18 -0
- package/dist/components/hover-card/HoverCard.stories.tsx +1328 -0
- package/dist/components/hover-card/index.tsx +42 -0
- package/dist/components/hover-card/meta.ts +12 -0
- package/dist/components/icon-button/IconButton.stories.tsx +252 -0
- package/dist/components/icon-button/index.tsx +130 -0
- package/dist/components/icon-button/meta.ts +20 -0
- package/dist/components/if-else/if-else.stories.tsx +100 -0
- package/dist/components/if-else/index.tsx +56 -0
- package/dist/components/if-else/meta.ts +6 -0
- package/dist/components/index.ts +70 -0
- package/dist/components/input/Input.stories.tsx +431 -0
- package/dist/components/input/index.tsx +487 -0
- package/dist/components/input/meta.ts +28 -0
- package/dist/components/label/Label.stories.tsx +200 -0
- package/dist/components/label/index.tsx +43 -0
- package/dist/components/label/meta.ts +14 -0
- package/dist/components/list/List.stories.tsx +963 -0
- package/dist/components/list/index.tsx +567 -0
- package/dist/components/list/meta.ts +24 -0
- package/dist/components/marquee/Marquee.stories.tsx +819 -0
- package/dist/components/marquee/index.tsx +107 -0
- package/dist/components/marquee/meta.ts +6 -0
- package/dist/components/overlay/Overlay.stories.tsx +954 -0
- package/dist/components/overlay/index.tsx +58 -0
- package/dist/components/overlay/meta.ts +10 -0
- package/dist/components/pagination/Pagination.stories.tsx +354 -0
- package/dist/components/pagination/index.tsx +455 -0
- package/dist/components/pagination/meta.ts +29 -0
- package/dist/components/popover/Popover.stories.tsx +1037 -0
- package/dist/components/popover/index.tsx +67 -0
- package/dist/components/popover/meta.ts +12 -0
- package/dist/components/radio/Radio.stories.tsx +146 -0
- package/dist/components/radio/index.tsx +41 -0
- package/dist/components/radio/meta.ts +19 -0
- package/dist/components/resizable/Resizable.stories.tsx +866 -0
- package/dist/components/resizable/index.tsx +55 -0
- package/dist/components/resizable/meta.ts +12 -0
- package/dist/components/scroll-area/ScrollArea.stories.tsx +1104 -0
- package/dist/components/scroll-area/index.tsx +55 -0
- package/dist/components/scroll-area/meta.ts +8 -0
- package/dist/components/search/Search.stories.tsx +678 -0
- package/dist/components/search/index.tsx +141 -0
- package/dist/components/search/meta.ts +6 -0
- package/dist/components/select/Select.stories.tsx +962 -0
- package/dist/components/select/index.tsx +512 -0
- package/dist/components/select/meta.ts +40 -0
- package/dist/components/sheet/Sheet.stories.tsx +1060 -0
- package/dist/components/sheet/index.tsx +440 -0
- package/dist/components/sheet/meta.ts +38 -0
- package/dist/components/skelton/Skelton.stories.tsx +859 -0
- package/dist/components/skelton/index.tsx +17 -0
- package/dist/components/skelton/meta.ts +6 -0
- package/dist/components/slider/Slider.stories.tsx +876 -0
- package/dist/components/slider/index.tsx +156 -0
- package/dist/components/slider/meta.ts +29 -0
- package/dist/components/stepper/Stepper.stories.tsx +639 -0
- package/dist/components/stepper/index.tsx +650 -0
- package/dist/components/stepper/meta.ts +19 -0
- package/dist/components/switch/Switch.stories.tsx +85 -0
- package/dist/components/switch/index.tsx +37 -0
- package/dist/components/switch/meta.ts +24 -0
- package/dist/components/switch-case/SwitchCase.stories.tsx +209 -0
- package/dist/components/switch-case/index.tsx +89 -0
- package/dist/components/switch-case/meta.ts +6 -0
- package/dist/components/table/Table.stories.tsx +1095 -0
- package/dist/components/table/index.tsx +113 -0
- package/dist/components/table/meta.ts +20 -0
- package/dist/components/tabs/Tabs.stories.tsx +1379 -0
- package/dist/components/tabs/index.tsx +186 -0
- package/dist/components/tabs/meta.ts +25 -0
- package/dist/components/tag/Tag.stories.tsx +625 -0
- package/dist/components/tag/index.tsx +320 -0
- package/dist/components/tag/meta.ts +52 -0
- package/dist/components/textarea/TextArea.stories.tsx +723 -0
- package/dist/components/textarea/index.tsx +480 -0
- package/dist/components/textarea/meta.ts +23 -0
- package/dist/components/toast/Toast.stories.tsx +1427 -0
- package/dist/components/toast/index.tsx +26 -0
- package/dist/components/toast/meta.ts +19 -0
- package/dist/components/toggle/Toggle.stories.tsx +1093 -0
- package/dist/components/toggle/index.tsx +44 -0
- package/dist/components/toggle/meta.ts +19 -0
- package/dist/components/tooltip/Tooltip.stories.tsx +1548 -0
- package/dist/components/tooltip/index.tsx +304 -0
- package/dist/components/tooltip/meta.ts +21 -0
- package/dist/components/typography/Typography.stories.tsx +197 -0
- package/dist/components/typography/index.tsx +184 -0
- package/dist/components/typography/meta.ts +38 -0
- package/dist/fonts/LabGrotesque-Regular.ttf +0 -0
- package/dist/fonts/LabGrotesqueTRIAL-Bold.otf +0 -0
- package/dist/fonts/LabGrotesqueTRIAL-Light.otf +0 -0
- package/dist/fonts/LabGrotesqueTRIAL-Medium.otf +0 -0
- package/dist/fonts/LabGrotesqueTRIAL-Regular.otf +0 -0
- package/dist/fonts/PPSupplySans-Regular (1).otf +0 -0
- package/dist/fonts/PPSupplySans-Regular.otf +0 -0
- package/dist/fonts/PPSupplySans-Ultralight.otf +0 -0
- package/dist/hooks/index.ts +3 -0
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +997 -0
- package/dist/hooks/use-previous/index.ts +15 -0
- package/dist/hooks/use-previous/meta.ts +6 -0
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +983 -0
- package/dist/hooks/use-standalone-pagination/index.ts +146 -0
- package/dist/hooks/use-standalone-pagination/meta.ts +6 -0
- package/dist/icons/Icons.stories.tsx +29 -0
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +991 -0
- package/dist/icons/alert-icon/index.tsx +48 -0
- package/dist/icons/alert-icon/meta.ts +8 -0
- package/dist/icons/all-icons.tsx +738 -0
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +1031 -0
- package/dist/icons/angle-down-icon/index.tsx +25 -0
- package/dist/icons/angle-down-icon/meta.ts +8 -0
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +1080 -0
- package/dist/icons/arrow-box-left-icon/index.tsx +24 -0
- package/dist/icons/arrow-box-left-icon/meta.ts +8 -0
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +1151 -0
- package/dist/icons/arrow-right-icon/index.tsx +26 -0
- package/dist/icons/arrow-right-icon/meta.ts +8 -0
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +1273 -0
- package/dist/icons/arrow-right-up-icon/index.tsx +24 -0
- package/dist/icons/arrow-right-up-icon/meta.ts +8 -0
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +670 -0
- package/dist/icons/art-board-icon/index.tsx +24 -0
- package/dist/icons/art-board-icon/meta.ts +7 -0
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +1244 -0
- package/dist/icons/audio-bar-icon/index.tsx +19 -0
- package/dist/icons/audio-bar-icon/meta.ts +8 -0
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +1239 -0
- package/dist/icons/bubble-check-icon/index.tsx +24 -0
- package/dist/icons/bubble-check-icon/meta.ts +8 -0
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +1228 -0
- package/dist/icons/bubble-crossed-icon/index.tsx +24 -0
- package/dist/icons/bubble-crossed-icon/meta.ts +8 -0
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +912 -0
- package/dist/icons/bubble-sparkle-icon/index.tsx +26 -0
- package/dist/icons/bubble-sparkle-icon/meta.ts +8 -0
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +1021 -0
- package/dist/icons/chevron-double-left-icon/index.tsx +34 -0
- package/dist/icons/chevron-double-left-icon/meta.ts +8 -0
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +1021 -0
- package/dist/icons/chevron-double-right-icon/index.tsx +34 -0
- package/dist/icons/chevron-double-right-icon/meta.ts +8 -0
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +1001 -0
- package/dist/icons/chevron-down-icon/index.tsx +27 -0
- package/dist/icons/chevron-down-icon/meta.ts +8 -0
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +1029 -0
- package/dist/icons/chevron-left-icon/index.tsx +27 -0
- package/dist/icons/chevron-left-icon/meta.ts +8 -0
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +1021 -0
- package/dist/icons/chevron-right-icon/index.tsx +27 -0
- package/dist/icons/chevron-right-icon/meta.ts +8 -0
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +1036 -0
- package/dist/icons/chevron-up-icon/index.tsx +27 -0
- package/dist/icons/chevron-up-icon/meta.ts +8 -0
- package/dist/icons/command-icon/CommandIcon.stories.tsx +1098 -0
- package/dist/icons/command-icon/index.tsx +24 -0
- package/dist/icons/command-icon/meta.ts +8 -0
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +1061 -0
- package/dist/icons/cross-circle-icon/index.tsx +23 -0
- package/dist/icons/cross-circle-icon/meta.ts +8 -0
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +1027 -0
- package/dist/icons/cross-icon/index.tsx +24 -0
- package/dist/icons/cross-icon/meta.ts +8 -0
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +1092 -0
- package/dist/icons/edit-big-icon/index.tsx +22 -0
- package/dist/icons/edit-big-icon/meta.ts +8 -0
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +1090 -0
- package/dist/icons/eye-close-icon/index.tsx +26 -0
- package/dist/icons/eye-close-icon/meta.ts +8 -0
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +1098 -0
- package/dist/icons/eye-open-icon/index.tsx +24 -0
- package/dist/icons/eye-open-icon/meta.ts +8 -0
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +1071 -0
- package/dist/icons/feature-shine-icon/index.tsx +29 -0
- package/dist/icons/feature-shine-icon/meta.ts +8 -0
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +1115 -0
- package/dist/icons/file-chart-icon/index.tsx +24 -0
- package/dist/icons/file-chart-icon/meta.ts +8 -0
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +668 -0
- package/dist/icons/file-text-icon/index.tsx +24 -0
- package/dist/icons/file-text-icon/meta.ts +8 -0
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +1239 -0
- package/dist/icons/grip-vertical-icon/index.tsx +28 -0
- package/dist/icons/grip-vertical-icon/meta.ts +8 -0
- package/dist/icons/image-icon/ImageIcon.stories.tsx +1181 -0
- package/dist/icons/image-icon/index.tsx +24 -0
- package/dist/icons/image-icon/meta.ts +8 -0
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +1248 -0
- package/dist/icons/import-folder-icon/index.tsx +22 -0
- package/dist/icons/import-folder-icon/meta.ts +8 -0
- package/dist/icons/index.ts +46 -0
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +1272 -0
- package/dist/icons/light-bulb-simple-icon/index.tsx +24 -0
- package/dist/icons/light-bulb-simple-icon/meta.ts +8 -0
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +1245 -0
- package/dist/icons/magic-book-icon/index.tsx +32 -0
- package/dist/icons/magic-book-icon/meta.ts +8 -0
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +1251 -0
- package/dist/icons/maintenance-icon/index.tsx +23 -0
- package/dist/icons/maintenance-icon/meta.ts +8 -0
- package/dist/icons/message-icon/MessageIcon.stories.tsx +595 -0
- package/dist/icons/message-icon/index.tsx +30 -0
- package/dist/icons/message-icon/meta.ts +8 -0
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +1245 -0
- package/dist/icons/move-horizontal-icon/index.tsx +23 -0
- package/dist/icons/move-horizontal-icon/meta.ts +8 -0
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +1196 -0
- package/dist/icons/move-vertical-icon/index.tsx +23 -0
- package/dist/icons/move-vertical-icon/meta.ts +8 -0
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +1167 -0
- package/dist/icons/page-search-icon/index.tsx +21 -0
- package/dist/icons/page-search-icon/meta.ts +8 -0
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +1131 -0
- package/dist/icons/pencil-icon/index.tsx +21 -0
- package/dist/icons/pencil-icon/meta.ts +8 -0
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +1151 -0
- package/dist/icons/plus-icon/index.tsx +24 -0
- package/dist/icons/plus-icon/meta.ts +8 -0
- package/dist/icons/search-icon/SearchIcon.stories.tsx +1181 -0
- package/dist/icons/search-icon/index.tsx +24 -0
- package/dist/icons/search-icon/meta.ts +8 -0
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +1167 -0
- package/dist/icons/site-logo-icon/index.tsx +79 -0
- package/dist/icons/site-logo-icon/meta.ts +8 -0
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +637 -0
- package/dist/icons/spinner-gradient-icon/index.tsx +53 -0
- package/dist/icons/spinner-gradient-icon/meta.ts +8 -0
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +644 -0
- package/dist/icons/spinner-solid-icon/index.tsx +59 -0
- package/dist/icons/spinner-solid-icon/meta.ts +8 -0
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +736 -0
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +53 -0
- package/dist/icons/spinner-solid-neutral-icon/meta.ts +8 -0
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +1204 -0
- package/dist/icons/tick-circle-icon/index.tsx +23 -0
- package/dist/icons/tick-circle-icon/meta.ts +8 -0
- package/dist/icons/tick-icon/TickIcon.stories.tsx +1340 -0
- package/dist/icons/tick-icon/index.tsx +24 -0
- package/dist/icons/tick-icon/meta.ts +8 -0
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +996 -0
- package/dist/icons/trash-icon/index.tsx +24 -0
- package/dist/icons/trash-icon/meta.ts +8 -0
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +947 -0
- package/dist/icons/upload-icon/index.tsx +24 -0
- package/dist/icons/upload-icon/meta.ts +8 -0
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +1045 -0
- package/dist/icons/vertical-menu-icon/index.tsx +27 -0
- package/dist/icons/vertical-menu-icon/meta.ts +8 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +206 -0
- package/dist/lib/utils.ts +6 -0
- package/dist/styles/aural-theme.css +1008 -0
- package/package.json +142 -0
|
@@ -0,0 +1,1251 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { MaintenanceIcon } from "."
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof MaintenanceIcon> = {
|
|
7
|
+
title: "Icons/MaintenanceIcon",
|
|
8
|
+
component: MaintenanceIcon,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: "fullscreen",
|
|
11
|
+
backgrounds: {
|
|
12
|
+
default: "dark",
|
|
13
|
+
values: [
|
|
14
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
15
|
+
{ name: "darker", value: "#000000" },
|
|
16
|
+
{ name: "light", value: "#ffffff" },
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
docs: {
|
|
20
|
+
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() {
|
|
165
|
+
return (
|
|
166
|
+
<div className="flex items-center gap-3">
|
|
167
|
+
<MaintenanceIcon className="h-6 w-6 text-orange-400 " />
|
|
168
|
+
<span>System Maintenance</span>
|
|
169
|
+
</div>
|
|
170
|
+
)
|
|
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
|
+
<tr className="border-b border-white/5">
|
|
219
|
+
<td className="px-6 py-4 font-mono text-sm !text-orange-300">
|
|
220
|
+
width
|
|
221
|
+
</td>
|
|
222
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
223
|
+
number | string
|
|
224
|
+
</td>
|
|
225
|
+
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
226
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
227
|
+
Width of the icon in pixels
|
|
228
|
+
</td>
|
|
229
|
+
</tr>
|
|
230
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
231
|
+
<td className="px-6 py-4 font-mono text-sm !text-orange-300">
|
|
232
|
+
height
|
|
233
|
+
</td>
|
|
234
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
235
|
+
number | string
|
|
236
|
+
</td>
|
|
237
|
+
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
238
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
239
|
+
Height of the icon in pixels
|
|
240
|
+
</td>
|
|
241
|
+
</tr>
|
|
242
|
+
<tr className="border-b border-white/5">
|
|
243
|
+
<td className="px-6 py-4 font-mono text-sm !text-orange-300">
|
|
244
|
+
stroke
|
|
245
|
+
</td>
|
|
246
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
247
|
+
string
|
|
248
|
+
</td>
|
|
249
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
250
|
+
currentColor
|
|
251
|
+
</td>
|
|
252
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
253
|
+
Stroke color of the icon outline
|
|
254
|
+
</td>
|
|
255
|
+
</tr>
|
|
256
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
257
|
+
<td className="px-6 py-4 font-mono text-sm !text-orange-300">
|
|
258
|
+
strokeWidth
|
|
259
|
+
</td>
|
|
260
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
261
|
+
string | number
|
|
262
|
+
</td>
|
|
263
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
264
|
+
1.5
|
|
265
|
+
</td>
|
|
266
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
267
|
+
Width of the stroke outline
|
|
268
|
+
</td>
|
|
269
|
+
</tr>
|
|
270
|
+
<tr className="border-b border-white/5">
|
|
271
|
+
<td className="px-6 py-4 font-mono text-sm !text-orange-300">
|
|
272
|
+
className
|
|
273
|
+
</td>
|
|
274
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
275
|
+
string
|
|
276
|
+
</td>
|
|
277
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
278
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
279
|
+
CSS classes for styling (use for overrides)
|
|
280
|
+
</td>
|
|
281
|
+
</tr>
|
|
282
|
+
<tr className="!bg-black/10">
|
|
283
|
+
<td className="px-6 py-4 font-mono text-sm !text-orange-300">
|
|
284
|
+
...svgProps
|
|
285
|
+
</td>
|
|
286
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
287
|
+
SVGProps
|
|
288
|
+
</td>
|
|
289
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
290
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
291
|
+
All standard SVG element props
|
|
292
|
+
</td>
|
|
293
|
+
</tr>
|
|
294
|
+
</tbody>
|
|
295
|
+
</table>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
|
|
299
|
+
{/* Size Variations */}
|
|
300
|
+
<div className="!space-y-8">
|
|
301
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
302
|
+
Size Variations
|
|
303
|
+
</h2>
|
|
304
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
305
|
+
<div className="!space-y-6">
|
|
306
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
307
|
+
<div className="!space-y-4">
|
|
308
|
+
<h3 className="text-lg font-semibold !text-orange-300">
|
|
309
|
+
Standard Sizes
|
|
310
|
+
</h3>
|
|
311
|
+
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
312
|
+
<div className="text-center">
|
|
313
|
+
<MaintenanceIcon className="!mx-auto mb-2 h-3 w-3 text-orange-400" />
|
|
314
|
+
<span className="text-xs text-white/60">12px</span>
|
|
315
|
+
</div>
|
|
316
|
+
<div className="text-center">
|
|
317
|
+
<MaintenanceIcon className="!mx-auto mb-2 h-4 w-4 text-orange-400" />
|
|
318
|
+
<span className="text-xs text-white/60">16px</span>
|
|
319
|
+
</div>
|
|
320
|
+
<div className="text-center">
|
|
321
|
+
<MaintenanceIcon className="!mx-auto mb-2 h-5 w-5 text-orange-400" />
|
|
322
|
+
<span className="text-xs text-white/60">20px</span>
|
|
323
|
+
</div>
|
|
324
|
+
<div className="text-center">
|
|
325
|
+
<MaintenanceIcon className="!mx-auto mb-2 h-6 w-6 text-orange-400" />
|
|
326
|
+
<span className="text-xs text-white/60">24px</span>
|
|
327
|
+
</div>
|
|
328
|
+
<div className="text-center">
|
|
329
|
+
<MaintenanceIcon className="!mx-auto mb-2 h-8 w-8 text-orange-400" />
|
|
330
|
+
<span className="text-xs text-white/60">32px</span>
|
|
331
|
+
</div>
|
|
332
|
+
<div className="text-center">
|
|
333
|
+
<MaintenanceIcon className="!mx-auto mb-2 h-12 w-12 text-orange-400" />
|
|
334
|
+
<span className="text-xs text-white/60">48px</span>
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
</div>
|
|
338
|
+
|
|
339
|
+
<div className="!space-y-4">
|
|
340
|
+
<h3 className="text-lg font-semibold !text-orange-300">
|
|
341
|
+
Code Example
|
|
342
|
+
</h3>
|
|
343
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
344
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
345
|
+
{`// Small (16px)
|
|
346
|
+
<MaintenanceIcon className="h-4 w-4 " />
|
|
347
|
+
|
|
348
|
+
// Medium (24px)
|
|
349
|
+
<MaintenanceIcon className="h-6 w-6 " />
|
|
350
|
+
|
|
351
|
+
// Large (32px)
|
|
352
|
+
<MaintenanceIcon className="h-8 w-8 " />
|
|
353
|
+
|
|
354
|
+
// Custom size for status displays
|
|
355
|
+
<MaintenanceIcon
|
|
356
|
+
width={40}
|
|
357
|
+
height={40}
|
|
358
|
+
className="text-orange-400 "
|
|
359
|
+
/>`}
|
|
360
|
+
</pre>
|
|
361
|
+
</div>
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
</div>
|
|
365
|
+
</div>
|
|
366
|
+
</div>
|
|
367
|
+
|
|
368
|
+
{/* Color Variations */}
|
|
369
|
+
<div className="!space-y-8">
|
|
370
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
371
|
+
Color Variations
|
|
372
|
+
</h2>
|
|
373
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
374
|
+
<div className="!space-y-4">
|
|
375
|
+
<h3 className="text-lg font-semibold !text-orange-300">
|
|
376
|
+
Semantic Colors
|
|
377
|
+
</h3>
|
|
378
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
379
|
+
<div className="flex items-center gap-4">
|
|
380
|
+
<MaintenanceIcon className="h-6 w-6 text-orange-400" />
|
|
381
|
+
<div>
|
|
382
|
+
<div className="text-sm font-medium text-white">
|
|
383
|
+
Active Maintenance
|
|
384
|
+
</div>
|
|
385
|
+
<div className="text-xs text-white/60">
|
|
386
|
+
text-orange-400
|
|
387
|
+
</div>
|
|
388
|
+
</div>
|
|
389
|
+
</div>
|
|
390
|
+
<div className="flex items-center gap-4">
|
|
391
|
+
<MaintenanceIcon className="h-6 w-6 text-blue-400" />
|
|
392
|
+
<div>
|
|
393
|
+
<div className="text-sm font-medium text-white">
|
|
394
|
+
System Operations
|
|
395
|
+
</div>
|
|
396
|
+
<div className="text-xs text-white/60">
|
|
397
|
+
text-blue-400
|
|
398
|
+
</div>
|
|
399
|
+
</div>
|
|
400
|
+
</div>
|
|
401
|
+
<div className="flex items-center gap-4">
|
|
402
|
+
<MaintenanceIcon className="h-6 w-6 text-yellow-400" />
|
|
403
|
+
<div>
|
|
404
|
+
<div className="text-sm font-medium !text-white">
|
|
405
|
+
Scheduled Maintenance
|
|
406
|
+
</div>
|
|
407
|
+
<div className="text-xs !text-white/60">
|
|
408
|
+
text-yellow-400
|
|
409
|
+
</div>
|
|
410
|
+
</div>
|
|
411
|
+
</div>
|
|
412
|
+
<div className="flex items-center gap-4">
|
|
413
|
+
<MaintenanceIcon className="h-6 w-6 text-red-400" />
|
|
414
|
+
<div>
|
|
415
|
+
<div className="text-sm font-medium text-white">
|
|
416
|
+
Emergency Repair
|
|
417
|
+
</div>
|
|
418
|
+
<div className="text-xs text-white/60">
|
|
419
|
+
text-red-400
|
|
420
|
+
</div>
|
|
421
|
+
</div>
|
|
422
|
+
</div>
|
|
423
|
+
</div>
|
|
424
|
+
</div>
|
|
425
|
+
|
|
426
|
+
<div className="!space-y-4">
|
|
427
|
+
<h3 className="text-lg font-semibold !text-orange-300">
|
|
428
|
+
Custom Colors
|
|
429
|
+
</h3>
|
|
430
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
431
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
432
|
+
{`// Using Tailwind classes with
|
|
433
|
+
<MaintenanceIcon className="h-6 w-6 text-orange-400 " />
|
|
434
|
+
<MaintenanceIcon className="h-6 w-6 text-blue-500 " />
|
|
435
|
+
|
|
436
|
+
// Using CSS custom properties
|
|
437
|
+
<MaintenanceIcon
|
|
438
|
+
className="h-6 w-6 "
|
|
439
|
+
style={{ color: 'var(--color-maintenance)' }}
|
|
440
|
+
/>
|
|
441
|
+
|
|
442
|
+
// Direct stroke prop
|
|
443
|
+
<MaintenanceIcon
|
|
444
|
+
width={24}
|
|
445
|
+
height={24}
|
|
446
|
+
stroke="#fb923c"
|
|
447
|
+
/>`}
|
|
448
|
+
</pre>
|
|
449
|
+
</div>
|
|
450
|
+
</div>
|
|
451
|
+
</div>
|
|
452
|
+
</div>
|
|
453
|
+
|
|
454
|
+
{/* Usage Examples */}
|
|
455
|
+
<div className="!space-y-8">
|
|
456
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
457
|
+
Usage Examples
|
|
458
|
+
</h2>
|
|
459
|
+
|
|
460
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
461
|
+
{/* Status Banner */}
|
|
462
|
+
<div className="!space-y-4">
|
|
463
|
+
<h3 className="text-lg font-semibold !text-orange-300">
|
|
464
|
+
Maintenance Banner
|
|
465
|
+
</h3>
|
|
466
|
+
<div className="!space-y-4">
|
|
467
|
+
<div className="rounded-lg border border-orange-500/20 bg-orange-500/10 p-4">
|
|
468
|
+
<div className="flex items-start gap-3">
|
|
469
|
+
<MaintenanceIcon className="mt-0.5 h-5 w-5 flex-shrink-0 text-orange-400" />
|
|
470
|
+
<div>
|
|
471
|
+
<h4 className="font-medium !text-orange-200">
|
|
472
|
+
Scheduled Maintenance
|
|
473
|
+
</h4>
|
|
474
|
+
<p className="text-sm !text-orange-300/80">
|
|
475
|
+
System maintenance is scheduled for tonight from
|
|
476
|
+
2:00 AM to 4:00 AM EST. Services may be
|
|
477
|
+
temporarily unavailable.
|
|
478
|
+
</p>
|
|
479
|
+
</div>
|
|
480
|
+
</div>
|
|
481
|
+
</div>
|
|
482
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
483
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
484
|
+
{`<div className="border border-orange-500/20 bg-orange-500/10 p-4 rounded-lg">
|
|
485
|
+
<div className="flex items-start gap-3">
|
|
486
|
+
<MaintenanceIcon className="h-5 w-5 text-orange-400 mt-0.5 flex-shrink-0 " />
|
|
487
|
+
<div>
|
|
488
|
+
<h4 className="font-medium text-orange-200">Scheduled Maintenance</h4>
|
|
489
|
+
<p className="text-sm text-orange-300/80">
|
|
490
|
+
System maintenance is scheduled for tonight from 2:00 AM to 4:00 AM EST.
|
|
491
|
+
</p>
|
|
492
|
+
</div>
|
|
493
|
+
</div>
|
|
494
|
+
</div>`}
|
|
495
|
+
</pre>
|
|
496
|
+
</div>
|
|
497
|
+
</div>
|
|
498
|
+
</div>
|
|
499
|
+
|
|
500
|
+
{/* Service Status List */}
|
|
501
|
+
<div className="!space-y-4">
|
|
502
|
+
<h3 className="text-lg font-semibold !text-orange-300">
|
|
503
|
+
Service Status
|
|
504
|
+
</h3>
|
|
505
|
+
<div className="!space-y-4">
|
|
506
|
+
<div className="!space-y-3">
|
|
507
|
+
{[
|
|
508
|
+
{
|
|
509
|
+
service: "Database Services",
|
|
510
|
+
status: "Under Maintenance",
|
|
511
|
+
color: "orange",
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
service: "API Gateway",
|
|
515
|
+
status: "Emergency Repair",
|
|
516
|
+
color: "red",
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
service: "Web Servers",
|
|
520
|
+
status: "Routine Check",
|
|
521
|
+
color: "blue",
|
|
522
|
+
},
|
|
523
|
+
].map((item, index) => (
|
|
524
|
+
<div
|
|
525
|
+
key={index}
|
|
526
|
+
className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3"
|
|
527
|
+
>
|
|
528
|
+
<MaintenanceIcon
|
|
529
|
+
className={`h-4 w-4 ${
|
|
530
|
+
item.color === "orange"
|
|
531
|
+
? "text-orange-400"
|
|
532
|
+
: item.color === "red"
|
|
533
|
+
? "text-red-400"
|
|
534
|
+
: "text-blue-400"
|
|
535
|
+
}`}
|
|
536
|
+
/>
|
|
537
|
+
<div className="flex-1">
|
|
538
|
+
<span className="text-sm text-white">
|
|
539
|
+
{item.service}
|
|
540
|
+
</span>
|
|
541
|
+
</div>
|
|
542
|
+
<div
|
|
543
|
+
className={`rounded px-2 py-1 text-xs ${
|
|
544
|
+
item.color === "orange"
|
|
545
|
+
? "bg-orange-500/20 text-orange-300"
|
|
546
|
+
: item.color === "red"
|
|
547
|
+
? "bg-red-500/20 text-red-300"
|
|
548
|
+
: "bg-blue-500/20 text-blue-300"
|
|
549
|
+
}`}
|
|
550
|
+
>
|
|
551
|
+
{item.status}
|
|
552
|
+
</div>
|
|
553
|
+
</div>
|
|
554
|
+
))}
|
|
555
|
+
</div>
|
|
556
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
557
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
558
|
+
{`// Service status item
|
|
559
|
+
<div className="flex items-center gap-3 border border-white/10 bg-white/5 p-3 rounded-lg">
|
|
560
|
+
<MaintenanceIcon className="h-4 w-4 text-orange-400 " />
|
|
561
|
+
<div className="flex-1">
|
|
562
|
+
<span className="text-sm text-white">Database Services</span>
|
|
563
|
+
</div>
|
|
564
|
+
<div className="text-xs px-2 py-1 rounded bg-orange-500/20 text-orange-300">
|
|
565
|
+
Under Maintenance
|
|
566
|
+
</div>
|
|
567
|
+
</div>`}
|
|
568
|
+
</pre>
|
|
569
|
+
</div>
|
|
570
|
+
</div>
|
|
571
|
+
</div>
|
|
572
|
+
|
|
573
|
+
{/* Admin Panel Section */}
|
|
574
|
+
<div className="!space-y-4">
|
|
575
|
+
<h3 className="text-lg font-semibold !text-orange-300">
|
|
576
|
+
Admin Panel
|
|
577
|
+
</h3>
|
|
578
|
+
<div className="!space-y-4">
|
|
579
|
+
<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">
|
|
580
|
+
<div className="absolute inset-0 bg-gradient-to-r from-transparent via-orange-500/5 to-transparent" />
|
|
581
|
+
<div className="relative">
|
|
582
|
+
<MaintenanceIcon className="!mx-auto mb-4 h-16 w-16 text-orange-400" />
|
|
583
|
+
<h2 className="mb-4 text-3xl font-bold !text-white">
|
|
584
|
+
System Operations
|
|
585
|
+
</h2>
|
|
586
|
+
<p className="mb-6 text-lg !text-white/70">
|
|
587
|
+
Monitor and manage system maintenance activities
|
|
588
|
+
</p>
|
|
589
|
+
<div className="flex justify-center gap-4">
|
|
590
|
+
<button className="rounded-lg bg-orange-500/20 px-6 py-3 text-orange-200 transition-colors hover:bg-orange-500/30">
|
|
591
|
+
Start Maintenance
|
|
592
|
+
</button>
|
|
593
|
+
<button className="rounded-lg bg-blue-500/20 px-6 py-3 text-blue-200 transition-colors hover:bg-blue-500/30">
|
|
594
|
+
View Status
|
|
595
|
+
</button>
|
|
596
|
+
</div>
|
|
597
|
+
</div>
|
|
598
|
+
</div>
|
|
599
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
600
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
601
|
+
{`// Admin operations section
|
|
602
|
+
<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">
|
|
603
|
+
<div className="relative">
|
|
604
|
+
<MaintenanceIcon className="mx-auto mb-4 h-16 w-16 text-orange-400 " />
|
|
605
|
+
<h2 className="mb-4 text-3xl font-bold text-white">System Operations</h2>
|
|
606
|
+
<p className="mb-6 text-lg text-white/70">
|
|
607
|
+
Monitor and manage system maintenance activities
|
|
608
|
+
</p>
|
|
609
|
+
<div className="flex justify-center gap-4">
|
|
610
|
+
<button className="rounded-lg bg-orange-500/20 px-6 py-3 text-orange-200 hover:bg-orange-500/30">
|
|
611
|
+
Start Maintenance
|
|
612
|
+
</button>
|
|
613
|
+
</div>
|
|
614
|
+
</div>
|
|
615
|
+
</div>`}
|
|
616
|
+
</pre>
|
|
617
|
+
</div>
|
|
618
|
+
</div>
|
|
619
|
+
</div>
|
|
620
|
+
|
|
621
|
+
{/* Sidebar Navigation */}
|
|
622
|
+
<div className="!space-y-4">
|
|
623
|
+
<h3 className="text-lg font-semibold !text-orange-300">
|
|
624
|
+
Admin Navigation
|
|
625
|
+
</h3>
|
|
626
|
+
<div className="!space-y-4">
|
|
627
|
+
<div className="max-w-xs rounded-lg border border-white/10 bg-white/5 p-3">
|
|
628
|
+
{[
|
|
629
|
+
{ name: "Dashboard", icon: "📊", active: false },
|
|
630
|
+
{
|
|
631
|
+
name: "Maintenance",
|
|
632
|
+
icon: "MaintenanceIcon",
|
|
633
|
+
active: true,
|
|
634
|
+
},
|
|
635
|
+
{ name: "Monitoring", icon: "📈", active: false },
|
|
636
|
+
{ name: "Logs", icon: "📝", active: false },
|
|
637
|
+
].map((item, index) => (
|
|
638
|
+
<div
|
|
639
|
+
key={index}
|
|
640
|
+
className={`flex cursor-pointer items-center gap-3 rounded p-2 transition-colors ${
|
|
641
|
+
item.active
|
|
642
|
+
? "bg-orange-500/20 text-orange-200"
|
|
643
|
+
: "text-white/70 hover:bg-white/10"
|
|
644
|
+
}`}
|
|
645
|
+
>
|
|
646
|
+
{item.icon === "MaintenanceIcon" ? (
|
|
647
|
+
<MaintenanceIcon
|
|
648
|
+
className={`h-4 w-4 ${
|
|
649
|
+
item.active
|
|
650
|
+
? "text-orange-400"
|
|
651
|
+
: "text-white/50"
|
|
652
|
+
}`}
|
|
653
|
+
/>
|
|
654
|
+
) : (
|
|
655
|
+
<span className="text-sm">{item.icon}</span>
|
|
656
|
+
)}
|
|
657
|
+
<span className="flex-1 text-sm">{item.name}</span>
|
|
658
|
+
{item.active && (
|
|
659
|
+
<div className="h-2 w-2 rounded-full bg-orange-400"></div>
|
|
660
|
+
)}
|
|
661
|
+
</div>
|
|
662
|
+
))}
|
|
663
|
+
</div>
|
|
664
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
665
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
666
|
+
{`// Navigation item
|
|
667
|
+
<div className="flex items-center gap-3 p-2 rounded bg-orange-500/20 text-orange-200 cursor-pointer">
|
|
668
|
+
<MaintenanceIcon className="h-4 w-4 text-orange-400 " />
|
|
669
|
+
<span className="flex-1 text-sm">Maintenance</span>
|
|
670
|
+
<div className="h-2 w-2 rounded-full bg-orange-400"></div>
|
|
671
|
+
</div>`}
|
|
672
|
+
</pre>
|
|
673
|
+
</div>
|
|
674
|
+
</div>
|
|
675
|
+
</div>
|
|
676
|
+
</div>
|
|
677
|
+
</div>
|
|
678
|
+
|
|
679
|
+
{/* Interactive States */}
|
|
680
|
+
<div className="!space-y-8">
|
|
681
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
682
|
+
Interactive States & Animations
|
|
683
|
+
</h2>
|
|
684
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
685
|
+
<div className="!space-y-4">
|
|
686
|
+
<h3 className="text-lg font-semibold !text-orange-300">
|
|
687
|
+
Hover & Animation Effects
|
|
688
|
+
</h3>
|
|
689
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
690
|
+
<div className="flex items-center gap-4">
|
|
691
|
+
<MaintenanceIcon className="h-6 w-6 text-white/60 transition-colors hover:text-orange-400" />
|
|
692
|
+
<div>
|
|
693
|
+
<div className="text-sm font-medium text-white">
|
|
694
|
+
Color Change
|
|
695
|
+
</div>
|
|
696
|
+
<div className="text-xs text-white/60">
|
|
697
|
+
hover:text-orange-400
|
|
698
|
+
</div>
|
|
699
|
+
</div>
|
|
700
|
+
</div>
|
|
701
|
+
<div className="flex items-center gap-4">
|
|
702
|
+
<MaintenanceIcon className="h-6 w-6 text-white transition-transform hover:scale-110" />
|
|
703
|
+
<div>
|
|
704
|
+
<div className="text-sm font-medium text-white">
|
|
705
|
+
Scale Effect
|
|
706
|
+
</div>
|
|
707
|
+
<div className="text-xs text-white/60">
|
|
708
|
+
hover:scale-110
|
|
709
|
+
</div>
|
|
710
|
+
</div>
|
|
711
|
+
</div>
|
|
712
|
+
<div className="flex items-center gap-4">
|
|
713
|
+
<MaintenanceIcon className="animate-rotate h-6 w-6 text-orange-400" />
|
|
714
|
+
<div>
|
|
715
|
+
<div className="text-sm font-medium text-white">
|
|
716
|
+
Active Maintenance
|
|
717
|
+
</div>
|
|
718
|
+
<div className="text-xs text-white/60">
|
|
719
|
+
animate-rotate
|
|
720
|
+
</div>
|
|
721
|
+
</div>
|
|
722
|
+
</div>
|
|
723
|
+
<div className="flex items-center gap-4">
|
|
724
|
+
<MaintenanceIcon className="animate-pulse-slow h-6 w-6 text-orange-400" />
|
|
725
|
+
<div>
|
|
726
|
+
<div className="text-sm font-medium text-white">
|
|
727
|
+
Standby Mode
|
|
728
|
+
</div>
|
|
729
|
+
<div className="text-xs text-white/60">
|
|
730
|
+
animate-pulse-slow
|
|
731
|
+
</div>
|
|
732
|
+
</div>
|
|
733
|
+
</div>
|
|
734
|
+
</div>
|
|
735
|
+
</div>
|
|
736
|
+
|
|
737
|
+
<div className="!space-y-4">
|
|
738
|
+
<h3 className="text-lg font-semibold !text-orange-300">
|
|
739
|
+
Animation Examples
|
|
740
|
+
</h3>
|
|
741
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
742
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
743
|
+
{`// Hover effects
|
|
744
|
+
<MaintenanceIcon className="h-6 w-6 text-white/60 hover:text-orange-400 transition-colors " />
|
|
745
|
+
|
|
746
|
+
// Scale on hover
|
|
747
|
+
<MaintenanceIcon className="h-6 w-6 text-white hover:scale-110 transition-transform " />
|
|
748
|
+
|
|
749
|
+
// Rotating animation for active maintenance
|
|
750
|
+
<MaintenanceIcon className="h-6 w-6 text-orange-400 animate-rotate " />
|
|
751
|
+
|
|
752
|
+
// Pulse for standby/scheduled maintenance
|
|
753
|
+
<MaintenanceIcon className="h-6 w-6 text-orange-400 animate-pulse-slow " />
|
|
754
|
+
|
|
755
|
+
// Custom rotation animation
|
|
756
|
+
@keyframes rotate {
|
|
757
|
+
from { transform: rotate(0deg); }
|
|
758
|
+
to { transform: rotate(360deg); }
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.animate-rotate {
|
|
762
|
+
animation: rotate 3s linear infinite;
|
|
763
|
+
}`}
|
|
764
|
+
</pre>
|
|
765
|
+
</div>
|
|
766
|
+
</div>
|
|
767
|
+
</div>
|
|
768
|
+
</div>
|
|
769
|
+
|
|
770
|
+
{/* Accessibility */}
|
|
771
|
+
<div className="!space-y-8">
|
|
772
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
773
|
+
Accessibility Features
|
|
774
|
+
</h2>
|
|
775
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
776
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
777
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
778
|
+
✅ Built-in Features
|
|
779
|
+
</h3>
|
|
780
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
781
|
+
<li className="!text-white/70">
|
|
782
|
+
Uses Radix UI AccessibleIcon wrapper
|
|
783
|
+
</li>
|
|
784
|
+
<li className="!text-white/70">
|
|
785
|
+
Provides screen reader label "Maintenance icon"
|
|
786
|
+
</li>
|
|
787
|
+
<li className="!text-white/70">
|
|
788
|
+
Supports keyboard navigation when interactive
|
|
789
|
+
</li>
|
|
790
|
+
<li className="!text-white/70">
|
|
791
|
+
Maintains proper color contrast ratios
|
|
792
|
+
</li>
|
|
793
|
+
<li className="!text-white/70">
|
|
794
|
+
Scales with user's font size preferences
|
|
795
|
+
</li>
|
|
796
|
+
</ul>
|
|
797
|
+
</div>
|
|
798
|
+
|
|
799
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
800
|
+
<h3 className="text-lg font-semibold !text-orange-300">
|
|
801
|
+
💡 Best Practices
|
|
802
|
+
</h3>
|
|
803
|
+
<ul className="!space-y-2 text-sm text-white/70">
|
|
804
|
+
<li className="!text-white/70">
|
|
805
|
+
Always pair with descriptive maintenance context
|
|
806
|
+
</li>
|
|
807
|
+
<li className="!text-white/70">
|
|
808
|
+
Use consistent colors for maintenance states
|
|
809
|
+
</li>
|
|
810
|
+
<li className="!text-white/70">
|
|
811
|
+
Consider motion sensitivity for rotating animations
|
|
812
|
+
</li>
|
|
813
|
+
<li className="!text-white/70">
|
|
814
|
+
Add focus states for interactive elements
|
|
815
|
+
</li>
|
|
816
|
+
<li className="!text-white/70">
|
|
817
|
+
Provide clear status information alongside icon
|
|
818
|
+
</li>
|
|
819
|
+
</ul>
|
|
820
|
+
</div>
|
|
821
|
+
</div>
|
|
822
|
+
|
|
823
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
824
|
+
<h3 className="mb-4 text-lg font-semibold !text-orange-300">
|
|
825
|
+
Maintenance Status Accessibility
|
|
826
|
+
</h3>
|
|
827
|
+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
828
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
829
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
830
|
+
{`// Maintenance button with proper ARIA
|
|
831
|
+
<button
|
|
832
|
+
aria-label="Start system maintenance mode"
|
|
833
|
+
className="flex items-center gap-2 p-3 rounded-lg focus:ring-2 focus:ring-orange-500"
|
|
834
|
+
onClick={handleMaintenanceStart}
|
|
835
|
+
>
|
|
836
|
+
<MaintenanceIcon className="h-5 w-5 text-orange-400 " />
|
|
837
|
+
<span>Start Maintenance</span>
|
|
838
|
+
</button>
|
|
839
|
+
|
|
840
|
+
// Status indicator with semantic structure
|
|
841
|
+
<div
|
|
842
|
+
role="status"
|
|
843
|
+
aria-live="polite"
|
|
844
|
+
aria-label="System maintenance status"
|
|
845
|
+
className="border border-orange-500/20 bg-orange-500/10 p-4 rounded-lg"
|
|
846
|
+
>
|
|
847
|
+
<div className="flex items-start gap-3">
|
|
848
|
+
<MaintenanceIcon className="h-5 w-5 text-orange-400 mt-0.5 " aria-hidden="true" />
|
|
849
|
+
<div>
|
|
850
|
+
<h4 className="font-medium text-orange-200">Scheduled Maintenance</h4>
|
|
851
|
+
<p className="text-sm text-orange-300/80">
|
|
852
|
+
System maintenance is active. Expected completion: 4:00 AM EST.
|
|
853
|
+
</p>
|
|
854
|
+
</div>
|
|
855
|
+
</div>
|
|
856
|
+
</div>`}
|
|
857
|
+
</pre>
|
|
858
|
+
</div>
|
|
859
|
+
<div className="!space-y-4">
|
|
860
|
+
<p className="text-sm !text-white/70">
|
|
861
|
+
When using MaintenanceIcon for system status and
|
|
862
|
+
operations, provide clear context about the current
|
|
863
|
+
maintenance state and expected duration.
|
|
864
|
+
</p>
|
|
865
|
+
<div className="rounded-lg border border-orange-500/20 bg-orange-500/10 p-4">
|
|
866
|
+
<div className="flex items-center gap-2 text-sm text-orange-200">
|
|
867
|
+
<MaintenanceIcon className="h-4 w-4" />
|
|
868
|
+
<span>
|
|
869
|
+
Screen readers understand this represents system
|
|
870
|
+
maintenance
|
|
871
|
+
</span>
|
|
872
|
+
</div>
|
|
873
|
+
</div>
|
|
874
|
+
</div>
|
|
875
|
+
</div>
|
|
876
|
+
</div>
|
|
877
|
+
</div>
|
|
878
|
+
|
|
879
|
+
{/* Related Icons */}
|
|
880
|
+
<div className="!space-y-8">
|
|
881
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
882
|
+
Related Icons
|
|
883
|
+
</h2>
|
|
884
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
885
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
886
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
887
|
+
<span className="text-2xl">🔧</span>
|
|
888
|
+
</div>
|
|
889
|
+
<div>
|
|
890
|
+
<div className="font-medium text-white">ToolIcon</div>
|
|
891
|
+
<div className="text-xs text-white/60">
|
|
892
|
+
Tools & utilities
|
|
893
|
+
</div>
|
|
894
|
+
</div>
|
|
895
|
+
</div>
|
|
896
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
897
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
898
|
+
<span className="text-2xl">⚙️</span>
|
|
899
|
+
</div>
|
|
900
|
+
<div>
|
|
901
|
+
<div className="font-medium text-white">SettingsIcon</div>
|
|
902
|
+
<div className="text-xs text-white/60">Configuration</div>
|
|
903
|
+
</div>
|
|
904
|
+
</div>
|
|
905
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
906
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-yellow-500/20">
|
|
907
|
+
<span className="text-2xl">⚠️</span>
|
|
908
|
+
</div>
|
|
909
|
+
<div>
|
|
910
|
+
<div className="font-medium text-white">AlertIcon</div>
|
|
911
|
+
<div className="text-xs text-white/60">
|
|
912
|
+
Warnings & alerts
|
|
913
|
+
</div>
|
|
914
|
+
</div>
|
|
915
|
+
</div>
|
|
916
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
917
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
918
|
+
<span className="text-2xl">📊</span>
|
|
919
|
+
</div>
|
|
920
|
+
<div>
|
|
921
|
+
<div className="font-medium text-white">MonitorIcon</div>
|
|
922
|
+
<div className="text-xs text-white/60">
|
|
923
|
+
System monitoring
|
|
924
|
+
</div>
|
|
925
|
+
</div>
|
|
926
|
+
</div>
|
|
927
|
+
</div>
|
|
928
|
+
</div>
|
|
929
|
+
</div>
|
|
930
|
+
|
|
931
|
+
{/* Footer */}
|
|
932
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
933
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
934
|
+
<div className="!space-y-4 text-center">
|
|
935
|
+
<p className="!text-white/60">
|
|
936
|
+
MaintenanceIcon is part of the Aural UI icon library, built
|
|
937
|
+
for representing system maintenance, operations, and
|
|
938
|
+
technical support activities.
|
|
939
|
+
</p>
|
|
940
|
+
<p className="text-sm !text-white/40">
|
|
941
|
+
All icons use Radix UI's AccessibleIcon for screen reader
|
|
942
|
+
compatibility and follow WCAG guidelines for system
|
|
943
|
+
administration interfaces.
|
|
944
|
+
</p>
|
|
945
|
+
</div>
|
|
946
|
+
</div>
|
|
947
|
+
</div>
|
|
948
|
+
</div>
|
|
949
|
+
</>
|
|
950
|
+
),
|
|
951
|
+
},
|
|
952
|
+
},
|
|
953
|
+
tags: ["autodocs"],
|
|
954
|
+
argTypes: {
|
|
955
|
+
width: {
|
|
956
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
957
|
+
description: "Width of the icon in pixels",
|
|
958
|
+
},
|
|
959
|
+
height: {
|
|
960
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
961
|
+
description: "Height of the icon in pixels",
|
|
962
|
+
},
|
|
963
|
+
stroke: {
|
|
964
|
+
control: "color",
|
|
965
|
+
description: "Stroke color of the icon outline",
|
|
966
|
+
},
|
|
967
|
+
strokeWidth: {
|
|
968
|
+
control: { type: "range", min: 0.5, max: 4, step: 0.5 },
|
|
969
|
+
description: "Width of the stroke outline",
|
|
970
|
+
},
|
|
971
|
+
className: {
|
|
972
|
+
control: "text",
|
|
973
|
+
description: "CSS classes for styling (use for overrides)",
|
|
974
|
+
},
|
|
975
|
+
},
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
export default meta
|
|
979
|
+
type Story = StoryObj<typeof MaintenanceIcon>
|
|
980
|
+
|
|
981
|
+
// Story parameters for consistent dark theme
|
|
982
|
+
const storyParameters = {
|
|
983
|
+
backgrounds: {
|
|
984
|
+
default: "dark",
|
|
985
|
+
values: [
|
|
986
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
987
|
+
{ name: "darker", value: "#000000" },
|
|
988
|
+
],
|
|
989
|
+
},
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
export const Default: Story = {
|
|
993
|
+
args: {
|
|
994
|
+
className: "h-6 w-6 text-orange-400 ",
|
|
995
|
+
},
|
|
996
|
+
parameters: storyParameters,
|
|
997
|
+
render: (args) => (
|
|
998
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
999
|
+
<MaintenanceIcon {...args} />
|
|
1000
|
+
</div>
|
|
1001
|
+
),
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
export const SizeVariations: Story = {
|
|
1005
|
+
parameters: {
|
|
1006
|
+
...storyParameters,
|
|
1007
|
+
docs: {
|
|
1008
|
+
description: {
|
|
1009
|
+
story:
|
|
1010
|
+
"MaintenanceIcon in different sizes, from small UI elements to large admin displays.",
|
|
1011
|
+
},
|
|
1012
|
+
},
|
|
1013
|
+
},
|
|
1014
|
+
render: () => (
|
|
1015
|
+
<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">
|
|
1016
|
+
<div className="text-center">
|
|
1017
|
+
<MaintenanceIcon className="!mx-auto mb-2 h-3 w-3 text-orange-400" />
|
|
1018
|
+
<span className="text-xs text-white/60">12px</span>
|
|
1019
|
+
</div>
|
|
1020
|
+
<div className="text-center">
|
|
1021
|
+
<MaintenanceIcon className="!mx-auto mb-2 h-4 w-4 text-orange-400" />
|
|
1022
|
+
<span className="text-xs text-white/60">16px</span>
|
|
1023
|
+
</div>
|
|
1024
|
+
<div className="text-center">
|
|
1025
|
+
<MaintenanceIcon className="!mx-auto mb-2 h-5 w-5 text-orange-400" />
|
|
1026
|
+
<span className="text-xs text-white/60">20px</span>
|
|
1027
|
+
</div>
|
|
1028
|
+
<div className="text-center">
|
|
1029
|
+
<MaintenanceIcon className="!mx-auto mb-2 h-6 w-6 text-orange-400" />
|
|
1030
|
+
<span className="text-xs text-white/60">24px</span>
|
|
1031
|
+
</div>
|
|
1032
|
+
<div className="text-center">
|
|
1033
|
+
<MaintenanceIcon className="!mx-auto mb-2 h-8 w-8 text-orange-400" />
|
|
1034
|
+
<span className="text-xs text-white/60">32px</span>
|
|
1035
|
+
</div>
|
|
1036
|
+
<div className="text-center">
|
|
1037
|
+
<MaintenanceIcon className="!mx-auto mb-2 h-12 w-12 text-orange-400" />
|
|
1038
|
+
<span className="text-xs text-white/60">48px</span>
|
|
1039
|
+
</div>
|
|
1040
|
+
</div>
|
|
1041
|
+
),
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
export const ColorVariations: Story = {
|
|
1045
|
+
parameters: {
|
|
1046
|
+
...storyParameters,
|
|
1047
|
+
docs: {
|
|
1048
|
+
description: {
|
|
1049
|
+
story:
|
|
1050
|
+
"MaintenanceIcon in different colors for various maintenance and system states.",
|
|
1051
|
+
},
|
|
1052
|
+
},
|
|
1053
|
+
},
|
|
1054
|
+
render: () => (
|
|
1055
|
+
<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">
|
|
1056
|
+
<div className="text-center">
|
|
1057
|
+
<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">
|
|
1058
|
+
<MaintenanceIcon className="h-8 w-8 text-orange-400" />
|
|
1059
|
+
</div>
|
|
1060
|
+
<div className="text-sm font-medium text-white">Active Maintenance</div>
|
|
1061
|
+
<div className="text-xs text-orange-400">text-orange-400</div>
|
|
1062
|
+
</div>
|
|
1063
|
+
<div className="text-center">
|
|
1064
|
+
<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">
|
|
1065
|
+
<MaintenanceIcon className="h-8 w-8 text-blue-400" />
|
|
1066
|
+
</div>
|
|
1067
|
+
<div className="text-sm font-medium text-white">System Operations</div>
|
|
1068
|
+
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
1069
|
+
</div>
|
|
1070
|
+
<div className="text-center">
|
|
1071
|
+
<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">
|
|
1072
|
+
<MaintenanceIcon className="h-8 w-8 text-yellow-400" />
|
|
1073
|
+
</div>
|
|
1074
|
+
<div className="text-sm font-medium text-white">Scheduled</div>
|
|
1075
|
+
<div className="text-xs text-yellow-400">text-yellow-400</div>
|
|
1076
|
+
</div>
|
|
1077
|
+
<div className="text-center">
|
|
1078
|
+
<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">
|
|
1079
|
+
<MaintenanceIcon className="h-8 w-8 text-red-400" />
|
|
1080
|
+
</div>
|
|
1081
|
+
<div className="text-sm font-medium text-white">Emergency</div>
|
|
1082
|
+
<div className="text-xs text-red-400">text-red-400</div>
|
|
1083
|
+
</div>
|
|
1084
|
+
</div>
|
|
1085
|
+
),
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
export const UsageExamples: Story = {
|
|
1089
|
+
parameters: {
|
|
1090
|
+
...storyParameters,
|
|
1091
|
+
docs: {
|
|
1092
|
+
description: {
|
|
1093
|
+
story:
|
|
1094
|
+
"Real-world usage examples showing MaintenanceIcon in different system administration contexts.",
|
|
1095
|
+
},
|
|
1096
|
+
},
|
|
1097
|
+
},
|
|
1098
|
+
render: () => (
|
|
1099
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
1100
|
+
{/* Status Banner */}
|
|
1101
|
+
<div className="!space-y-2">
|
|
1102
|
+
<h3 className="text-sm font-medium text-white">Maintenance Banner</h3>
|
|
1103
|
+
<div className="rounded-lg border border-orange-500/20 bg-orange-500/10 p-4">
|
|
1104
|
+
<div className="flex items-start gap-3">
|
|
1105
|
+
<MaintenanceIcon className="mt-0.5 h-5 w-5 flex-shrink-0 text-orange-400" />
|
|
1106
|
+
<div>
|
|
1107
|
+
<h4 className="font-medium text-orange-200">
|
|
1108
|
+
Scheduled Maintenance
|
|
1109
|
+
</h4>
|
|
1110
|
+
<p className="text-sm text-orange-300/80">
|
|
1111
|
+
System maintenance is scheduled for tonight from 2:00 AM to 4:00
|
|
1112
|
+
AM EST.
|
|
1113
|
+
</p>
|
|
1114
|
+
</div>
|
|
1115
|
+
</div>
|
|
1116
|
+
</div>
|
|
1117
|
+
</div>
|
|
1118
|
+
|
|
1119
|
+
{/* Service Status */}
|
|
1120
|
+
<div className="!space-y-2">
|
|
1121
|
+
<h3 className="text-sm font-medium text-white">Service Status</h3>
|
|
1122
|
+
<div className="!space-y-3">
|
|
1123
|
+
{[
|
|
1124
|
+
{
|
|
1125
|
+
service: "Database Services",
|
|
1126
|
+
status: "Under Maintenance",
|
|
1127
|
+
color: "orange",
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
service: "API Gateway",
|
|
1131
|
+
status: "Emergency Repair",
|
|
1132
|
+
color: "red",
|
|
1133
|
+
},
|
|
1134
|
+
{ service: "Web Servers", status: "Routine Check", color: "blue" },
|
|
1135
|
+
].map((item, index) => (
|
|
1136
|
+
<div
|
|
1137
|
+
key={index}
|
|
1138
|
+
className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3"
|
|
1139
|
+
>
|
|
1140
|
+
<MaintenanceIcon
|
|
1141
|
+
className={`h-4 w-4 ${
|
|
1142
|
+
item.color === "orange"
|
|
1143
|
+
? "text-orange-400"
|
|
1144
|
+
: item.color === "red"
|
|
1145
|
+
? "text-red-400"
|
|
1146
|
+
: "text-blue-400"
|
|
1147
|
+
}`}
|
|
1148
|
+
/>
|
|
1149
|
+
<div className="flex-1">
|
|
1150
|
+
<span className="text-sm text-white">{item.service}</span>
|
|
1151
|
+
</div>
|
|
1152
|
+
<div
|
|
1153
|
+
className={`rounded px-2 py-1 text-xs ${
|
|
1154
|
+
item.color === "orange"
|
|
1155
|
+
? "bg-orange-500/20 text-orange-300"
|
|
1156
|
+
: item.color === "red"
|
|
1157
|
+
? "bg-red-500/20 text-red-300"
|
|
1158
|
+
: "bg-blue-500/20 text-blue-300"
|
|
1159
|
+
}`}
|
|
1160
|
+
>
|
|
1161
|
+
{item.status}
|
|
1162
|
+
</div>
|
|
1163
|
+
</div>
|
|
1164
|
+
))}
|
|
1165
|
+
</div>
|
|
1166
|
+
</div>
|
|
1167
|
+
|
|
1168
|
+
{/* Admin Panel */}
|
|
1169
|
+
<div className="!space-y-2">
|
|
1170
|
+
<h3 className="text-sm font-medium text-white">Admin Panel</h3>
|
|
1171
|
+
<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">
|
|
1172
|
+
<div className="relative">
|
|
1173
|
+
<MaintenanceIcon className="!mx-auto mb-4 h-16 w-16 text-orange-400" />
|
|
1174
|
+
<h2 className="mb-4 text-3xl font-bold text-white">
|
|
1175
|
+
System Operations
|
|
1176
|
+
</h2>
|
|
1177
|
+
<p className="mb-6 text-lg text-white/70">
|
|
1178
|
+
Monitor and manage system maintenance activities
|
|
1179
|
+
</p>
|
|
1180
|
+
<button className="rounded-lg bg-orange-500/20 px-6 py-3 text-orange-200 transition-colors hover:bg-orange-500/30">
|
|
1181
|
+
Start Maintenance
|
|
1182
|
+
</button>
|
|
1183
|
+
</div>
|
|
1184
|
+
</div>
|
|
1185
|
+
</div>
|
|
1186
|
+
</div>
|
|
1187
|
+
),
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
export const InteractiveStates: Story = {
|
|
1191
|
+
parameters: {
|
|
1192
|
+
...storyParameters,
|
|
1193
|
+
docs: {
|
|
1194
|
+
description: {
|
|
1195
|
+
story:
|
|
1196
|
+
"Interactive states showing hover effects, animations, and visual feedback for the maintenance icon.",
|
|
1197
|
+
},
|
|
1198
|
+
},
|
|
1199
|
+
},
|
|
1200
|
+
render: () => (
|
|
1201
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
1202
|
+
<div className="!space-y-4">
|
|
1203
|
+
<h3 className="text-sm font-medium text-white/70">
|
|
1204
|
+
Hover & Animation Effects
|
|
1205
|
+
</h3>
|
|
1206
|
+
<div className="flex gap-8">
|
|
1207
|
+
<div className="flex flex-col items-center gap-2">
|
|
1208
|
+
<MaintenanceIcon className="h-8 w-8 text-white/60 transition-colors hover:text-orange-400" />
|
|
1209
|
+
<span className="text-xs text-white/60">Color Change</span>
|
|
1210
|
+
</div>
|
|
1211
|
+
<div className="flex flex-col items-center gap-2">
|
|
1212
|
+
<MaintenanceIcon className="h-8 w-8 text-white transition-transform hover:scale-110" />
|
|
1213
|
+
<span className="text-xs text-white/60">Scale Up</span>
|
|
1214
|
+
</div>
|
|
1215
|
+
<div className="flex flex-col items-center gap-2">
|
|
1216
|
+
<MaintenanceIcon className="animate-rotate h-8 w-8 text-orange-400" />
|
|
1217
|
+
<span className="text-xs text-white/60">Rotate</span>
|
|
1218
|
+
</div>
|
|
1219
|
+
<div className="flex flex-col items-center gap-2">
|
|
1220
|
+
<MaintenanceIcon className="animate-pulse-slow h-8 w-8 text-orange-400" />
|
|
1221
|
+
<span className="text-xs text-white/60">Pulse</span>
|
|
1222
|
+
</div>
|
|
1223
|
+
</div>
|
|
1224
|
+
</div>
|
|
1225
|
+
</div>
|
|
1226
|
+
),
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
export const Playground: Story = {
|
|
1230
|
+
parameters: {
|
|
1231
|
+
...storyParameters,
|
|
1232
|
+
docs: {
|
|
1233
|
+
description: {
|
|
1234
|
+
story:
|
|
1235
|
+
"Interactive playground to experiment with different MaintenanceIcon configurations.",
|
|
1236
|
+
},
|
|
1237
|
+
},
|
|
1238
|
+
},
|
|
1239
|
+
args: {
|
|
1240
|
+
width: 32,
|
|
1241
|
+
height: 32,
|
|
1242
|
+
className: "text-orange-400 ",
|
|
1243
|
+
},
|
|
1244
|
+
render: (args) => (
|
|
1245
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1246
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
1247
|
+
<MaintenanceIcon {...args} />
|
|
1248
|
+
</div>
|
|
1249
|
+
</div>
|
|
1250
|
+
),
|
|
1251
|
+
}
|