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,1245 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { MagicBookIcon } from "."
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof MagicBookIcon> = {
|
|
7
|
+
title: "Icons/MagicBookIcon",
|
|
8
|
+
component: MagicBookIcon,
|
|
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 sparkle {
|
|
81
|
+
0%, 100% { opacity: 1; transform: scale(1); }
|
|
82
|
+
50% { opacity: 0.7; transform: scale(1.1); }
|
|
83
|
+
}
|
|
84
|
+
.animate-sparkle {
|
|
85
|
+
animation: sparkle 2s ease-in-out infinite;
|
|
86
|
+
}
|
|
87
|
+
@keyframes float {
|
|
88
|
+
0%, 100% { transform: translateY(0px); }
|
|
89
|
+
50% { transform: translateY(-5px); }
|
|
90
|
+
}
|
|
91
|
+
.animate-float {
|
|
92
|
+
animation: float 3s ease-in-out infinite;
|
|
93
|
+
}
|
|
94
|
+
`}
|
|
95
|
+
</style>
|
|
96
|
+
|
|
97
|
+
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-purple-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-purple-500/10 via-transparent to-indigo-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-purple-500/30 bg-gradient-to-br from-purple-500/20 to-indigo-500/20">
|
|
104
|
+
<MagicBookIcon className="h-12 w-12 text-purple-400" />
|
|
105
|
+
</div>
|
|
106
|
+
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
107
|
+
MagicBookIcon
|
|
108
|
+
</h1>
|
|
109
|
+
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
110
|
+
A magical book icon perfect for representing knowledge,
|
|
111
|
+
learning, documentation, spells, and educational content.
|
|
112
|
+
Features sparkling stars to convey magic and wonder. Built
|
|
113
|
+
with accessibility in mind using Radix UI's AccessibleIcon
|
|
114
|
+
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-purple-300">
|
|
121
|
+
Knowledge
|
|
122
|
+
</div>
|
|
123
|
+
<div className="text-sm text-white/60">
|
|
124
|
+
Learning & education
|
|
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-indigo-300">
|
|
130
|
+
Magic
|
|
131
|
+
</div>
|
|
132
|
+
<div className="text-sm text-white/60">
|
|
133
|
+
Spells & enchantments
|
|
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-violet-300">
|
|
139
|
+
Wisdom
|
|
140
|
+
</div>
|
|
141
|
+
<div className="text-sm text-white/60">
|
|
142
|
+
Documentation & guides
|
|
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-center text-3xl font-bold !text-white">
|
|
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-xl font-semibold !text-purple-300">
|
|
160
|
+
Basic Usage
|
|
161
|
+
</h3>
|
|
162
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
163
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
164
|
+
{`import { MagicBookIcon } from "@icons/magic-book-icon"
|
|
165
|
+
|
|
166
|
+
function FeatureCard() {
|
|
167
|
+
return (
|
|
168
|
+
<div className="flex items-center gap-3">
|
|
169
|
+
<MagicBookIcon className="h-6 w-6 text-purple-400 " />
|
|
170
|
+
<span>Learn Magic</span>
|
|
171
|
+
</div>
|
|
172
|
+
)
|
|
173
|
+
}`}
|
|
174
|
+
</pre>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
<div className="!space-y-4">
|
|
179
|
+
<h3 className="text-xl font-semibold !text-purple-300">
|
|
180
|
+
Live Preview
|
|
181
|
+
</h3>
|
|
182
|
+
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
183
|
+
<div className="flex items-center gap-3 rounded-lg border border-purple-500/20 bg-purple-500/10 px-4 py-3">
|
|
184
|
+
<MagicBookIcon className="h-6 w-6 text-purple-400" />
|
|
185
|
+
<span className="text-white">Learn Magic</span>
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
{/* Props Documentation */}
|
|
193
|
+
<div className="!space-y-8">
|
|
194
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
195
|
+
Props & Configuration
|
|
196
|
+
</h2>
|
|
197
|
+
|
|
198
|
+
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
199
|
+
<div className="bg-white/5 p-4">
|
|
200
|
+
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
201
|
+
</div>
|
|
202
|
+
<table className="!my-0 w-full">
|
|
203
|
+
<thead className="bg-white/5">
|
|
204
|
+
<tr className="border-b border-white/10">
|
|
205
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
206
|
+
Prop
|
|
207
|
+
</th>
|
|
208
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
209
|
+
Type
|
|
210
|
+
</th>
|
|
211
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
212
|
+
Default
|
|
213
|
+
</th>
|
|
214
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
215
|
+
Description
|
|
216
|
+
</th>
|
|
217
|
+
</tr>
|
|
218
|
+
</thead>
|
|
219
|
+
<tbody>
|
|
220
|
+
<tr className="border-b border-white/5">
|
|
221
|
+
<td className="px-6 py-4 font-mono text-sm !text-purple-300">
|
|
222
|
+
width
|
|
223
|
+
</td>
|
|
224
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
225
|
+
number | string
|
|
226
|
+
</td>
|
|
227
|
+
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
228
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
229
|
+
Width of the icon in pixels
|
|
230
|
+
</td>
|
|
231
|
+
</tr>
|
|
232
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
233
|
+
<td className="px-6 py-4 font-mono text-sm !text-purple-300">
|
|
234
|
+
height
|
|
235
|
+
</td>
|
|
236
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
237
|
+
number | string
|
|
238
|
+
</td>
|
|
239
|
+
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
240
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
241
|
+
Height of the icon in pixels
|
|
242
|
+
</td>
|
|
243
|
+
</tr>
|
|
244
|
+
<tr className="border-b border-white/5">
|
|
245
|
+
<td className="px-6 py-4 font-mono text-sm !text-purple-300">
|
|
246
|
+
fill
|
|
247
|
+
</td>
|
|
248
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
249
|
+
string
|
|
250
|
+
</td>
|
|
251
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
252
|
+
currentColor
|
|
253
|
+
</td>
|
|
254
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
255
|
+
Fill color of the icon
|
|
256
|
+
</td>
|
|
257
|
+
</tr>
|
|
258
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
259
|
+
<td className="px-6 py-4 font-mono text-sm !text-purple-300">
|
|
260
|
+
className
|
|
261
|
+
</td>
|
|
262
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
263
|
+
string
|
|
264
|
+
</td>
|
|
265
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
266
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
267
|
+
CSS classes for styling (use for overrides)
|
|
268
|
+
</td>
|
|
269
|
+
</tr>
|
|
270
|
+
<tr className="!bg-black/10">
|
|
271
|
+
<td className="px-6 py-4 font-mono text-sm !text-purple-300">
|
|
272
|
+
...svgProps
|
|
273
|
+
</td>
|
|
274
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
275
|
+
SVGProps
|
|
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
|
+
All standard SVG element props
|
|
280
|
+
</td>
|
|
281
|
+
</tr>
|
|
282
|
+
</tbody>
|
|
283
|
+
</table>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
|
|
287
|
+
{/* Size Variations */}
|
|
288
|
+
<div className="!space-y-8">
|
|
289
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
290
|
+
Size Variations
|
|
291
|
+
</h2>
|
|
292
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
293
|
+
<div className="!space-y-6">
|
|
294
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
295
|
+
<div className="!space-y-4">
|
|
296
|
+
<h3 className="text-lg font-semibold !text-purple-300">
|
|
297
|
+
Standard Sizes
|
|
298
|
+
</h3>
|
|
299
|
+
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
300
|
+
<div className="text-center">
|
|
301
|
+
<MagicBookIcon className="!mx-auto mb-2 h-3 w-3 text-purple-400" />
|
|
302
|
+
<span className="text-xs text-white/60">12px</span>
|
|
303
|
+
</div>
|
|
304
|
+
<div className="text-center">
|
|
305
|
+
<MagicBookIcon className="!mx-auto mb-2 h-4 w-4 text-purple-400" />
|
|
306
|
+
<span className="text-xs text-white/60">16px</span>
|
|
307
|
+
</div>
|
|
308
|
+
<div className="text-center">
|
|
309
|
+
<MagicBookIcon className="!mx-auto mb-2 h-5 w-5 text-purple-400" />
|
|
310
|
+
<span className="text-xs text-white/60">20px</span>
|
|
311
|
+
</div>
|
|
312
|
+
<div className="text-center">
|
|
313
|
+
<MagicBookIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
|
|
314
|
+
<span className="text-xs text-white/60">24px</span>
|
|
315
|
+
</div>
|
|
316
|
+
<div className="text-center">
|
|
317
|
+
<MagicBookIcon className="!mx-auto mb-2 h-8 w-8 text-purple-400" />
|
|
318
|
+
<span className="text-xs text-white/60">32px</span>
|
|
319
|
+
</div>
|
|
320
|
+
<div className="text-center">
|
|
321
|
+
<MagicBookIcon className="!mx-auto mb-2 h-12 w-12 text-purple-400" />
|
|
322
|
+
<span className="text-xs text-white/60">48px</span>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
|
|
327
|
+
<div className="!space-y-4">
|
|
328
|
+
<h3 className="text-lg font-semibold !text-purple-300">
|
|
329
|
+
Code Example
|
|
330
|
+
</h3>
|
|
331
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
332
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
333
|
+
{`// Small (16px)
|
|
334
|
+
<MagicBookIcon className="h-4 w-4 " />
|
|
335
|
+
|
|
336
|
+
// Medium (24px)
|
|
337
|
+
<MagicBookIcon className="h-6 w-6 " />
|
|
338
|
+
|
|
339
|
+
// Large (32px)
|
|
340
|
+
<MagicBookIcon className="h-8 w-8 " />
|
|
341
|
+
|
|
342
|
+
// Custom size for learning sections
|
|
343
|
+
<MagicBookIcon
|
|
344
|
+
width={40}
|
|
345
|
+
height={40}
|
|
346
|
+
className="text-purple-400 "
|
|
347
|
+
/>`}
|
|
348
|
+
</pre>
|
|
349
|
+
</div>
|
|
350
|
+
</div>
|
|
351
|
+
</div>
|
|
352
|
+
</div>
|
|
353
|
+
</div>
|
|
354
|
+
</div>
|
|
355
|
+
|
|
356
|
+
{/* Color Variations */}
|
|
357
|
+
<div className="!space-y-8">
|
|
358
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
359
|
+
Color Variations
|
|
360
|
+
</h2>
|
|
361
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
362
|
+
<div className="!space-y-4">
|
|
363
|
+
<h3 className="text-lg font-semibold !text-purple-300">
|
|
364
|
+
Semantic Colors
|
|
365
|
+
</h3>
|
|
366
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
367
|
+
<div className="flex items-center gap-4">
|
|
368
|
+
<MagicBookIcon className="h-6 w-6 text-purple-400" />
|
|
369
|
+
<div>
|
|
370
|
+
<div className="text-sm font-medium text-white">
|
|
371
|
+
Magic & Spells
|
|
372
|
+
</div>
|
|
373
|
+
<div className="text-xs text-white/60">
|
|
374
|
+
text-purple-400
|
|
375
|
+
</div>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
378
|
+
<div className="flex items-center gap-4">
|
|
379
|
+
<MagicBookIcon className="h-6 w-6 text-indigo-400" />
|
|
380
|
+
<div>
|
|
381
|
+
<div className="text-sm font-medium text-white">
|
|
382
|
+
Knowledge & Learning
|
|
383
|
+
</div>
|
|
384
|
+
<div className="text-xs text-white/60">
|
|
385
|
+
text-indigo-400
|
|
386
|
+
</div>
|
|
387
|
+
</div>
|
|
388
|
+
</div>
|
|
389
|
+
<div className="flex items-center gap-4">
|
|
390
|
+
<MagicBookIcon className="h-6 w-6 text-violet-400" />
|
|
391
|
+
<div>
|
|
392
|
+
<div className="text-sm font-medium text-white">
|
|
393
|
+
Wisdom & Guides
|
|
394
|
+
</div>
|
|
395
|
+
<div className="text-xs text-white/60">
|
|
396
|
+
text-violet-400
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
</div>
|
|
400
|
+
<div className="flex items-center gap-4">
|
|
401
|
+
<MagicBookIcon className="h-6 w-6 text-blue-400" />
|
|
402
|
+
<div>
|
|
403
|
+
<div className="text-sm font-medium text-white">
|
|
404
|
+
Documentation
|
|
405
|
+
</div>
|
|
406
|
+
<div className="text-xs text-white/60">
|
|
407
|
+
text-blue-400
|
|
408
|
+
</div>
|
|
409
|
+
</div>
|
|
410
|
+
</div>
|
|
411
|
+
</div>
|
|
412
|
+
</div>
|
|
413
|
+
|
|
414
|
+
<div className="!space-y-4">
|
|
415
|
+
<h3 className="text-lg font-semibold !text-purple-300">
|
|
416
|
+
Custom Colors
|
|
417
|
+
</h3>
|
|
418
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
419
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
420
|
+
{`// Using Tailwind classes with
|
|
421
|
+
<MagicBookIcon className="h-6 w-6 text-purple-400 " />
|
|
422
|
+
<MagicBookIcon className="h-6 w-6 text-indigo-500 " />
|
|
423
|
+
|
|
424
|
+
// Using CSS custom properties
|
|
425
|
+
<MagicBookIcon
|
|
426
|
+
className="h-6 w-6 "
|
|
427
|
+
style={{ color: 'var(--color-magic)' }}
|
|
428
|
+
/>
|
|
429
|
+
|
|
430
|
+
// Direct fill prop
|
|
431
|
+
<MagicBookIcon
|
|
432
|
+
width={24}
|
|
433
|
+
height={24}
|
|
434
|
+
fill="#a855f7"
|
|
435
|
+
/>`}
|
|
436
|
+
</pre>
|
|
437
|
+
</div>
|
|
438
|
+
</div>
|
|
439
|
+
</div>
|
|
440
|
+
</div>
|
|
441
|
+
|
|
442
|
+
{/* Usage Examples */}
|
|
443
|
+
<div className="!space-y-8">
|
|
444
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
445
|
+
Usage Examples
|
|
446
|
+
</h2>
|
|
447
|
+
|
|
448
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
449
|
+
{/* Learning Card */}
|
|
450
|
+
<div className="!space-y-4">
|
|
451
|
+
<h3 className="text-lg font-semibold !text-purple-300">
|
|
452
|
+
Learning Card
|
|
453
|
+
</h3>
|
|
454
|
+
<div className="!space-y-4">
|
|
455
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
456
|
+
<div className="flex items-start gap-4">
|
|
457
|
+
<div className="flex h-12 w-12 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
|
|
458
|
+
<MagicBookIcon className="h-6 w-6 text-purple-400" />
|
|
459
|
+
</div>
|
|
460
|
+
<div className="flex-1">
|
|
461
|
+
<h4 className="mb-2 text-lg font-semibold !text-white">
|
|
462
|
+
Magical Arts Guide
|
|
463
|
+
</h4>
|
|
464
|
+
<p className="text-sm !text-white/70">
|
|
465
|
+
Comprehensive guide to enchantments, spells, and
|
|
466
|
+
mystical knowledge for aspiring wizards.
|
|
467
|
+
</p>
|
|
468
|
+
</div>
|
|
469
|
+
</div>
|
|
470
|
+
</div>
|
|
471
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
472
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
473
|
+
{`<div className="border border-white/10 bg-white/5 p-6 rounded-lg">
|
|
474
|
+
<div className="flex items-start gap-4">
|
|
475
|
+
<div className="flex h-12 w-12 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
|
|
476
|
+
<MagicBookIcon className="h-6 w-6 text-purple-400 " />
|
|
477
|
+
</div>
|
|
478
|
+
<div className="flex-1">
|
|
479
|
+
<h4 className="mb-2 text-lg font-semibold text-white">Magical Arts Guide</h4>
|
|
480
|
+
<p className="text-sm text-white/70">
|
|
481
|
+
Comprehensive guide to enchantments, spells, and mystical knowledge.
|
|
482
|
+
</p>
|
|
483
|
+
</div>
|
|
484
|
+
</div>
|
|
485
|
+
</div>`}
|
|
486
|
+
</pre>
|
|
487
|
+
</div>
|
|
488
|
+
</div>
|
|
489
|
+
</div>
|
|
490
|
+
|
|
491
|
+
{/* Course Sections */}
|
|
492
|
+
<div className="!space-y-4">
|
|
493
|
+
<h3 className="text-lg font-semibold !text-purple-300">
|
|
494
|
+
Course Sections
|
|
495
|
+
</h3>
|
|
496
|
+
<div className="!space-y-4">
|
|
497
|
+
<div className="!space-y-3">
|
|
498
|
+
{[
|
|
499
|
+
{
|
|
500
|
+
text: "Introduction to Spellcasting",
|
|
501
|
+
level: "Beginner",
|
|
502
|
+
color: "purple",
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
text: "Advanced Potion Making",
|
|
506
|
+
level: "Advanced",
|
|
507
|
+
color: "indigo",
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
text: "Mystical Creature Studies",
|
|
511
|
+
level: "Expert",
|
|
512
|
+
color: "violet",
|
|
513
|
+
},
|
|
514
|
+
].map((course, index) => (
|
|
515
|
+
<div
|
|
516
|
+
key={index}
|
|
517
|
+
className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3"
|
|
518
|
+
>
|
|
519
|
+
<MagicBookIcon
|
|
520
|
+
className={`h-4 w-4 ${
|
|
521
|
+
course.color === "purple"
|
|
522
|
+
? "text-purple-400"
|
|
523
|
+
: course.color === "indigo"
|
|
524
|
+
? "text-indigo-400"
|
|
525
|
+
: "text-violet-400"
|
|
526
|
+
}`}
|
|
527
|
+
/>
|
|
528
|
+
<div className="flex-1">
|
|
529
|
+
<span className="text-sm text-white">
|
|
530
|
+
{course.text}
|
|
531
|
+
</span>
|
|
532
|
+
</div>
|
|
533
|
+
<div
|
|
534
|
+
className={`rounded px-2 py-1 text-xs ${
|
|
535
|
+
course.level === "Beginner"
|
|
536
|
+
? "bg-green-500/20 text-green-300"
|
|
537
|
+
: course.level === "Advanced"
|
|
538
|
+
? "bg-yellow-500/20 text-yellow-300"
|
|
539
|
+
: "bg-red-500/20 text-red-300"
|
|
540
|
+
}`}
|
|
541
|
+
>
|
|
542
|
+
{course.level}
|
|
543
|
+
</div>
|
|
544
|
+
</div>
|
|
545
|
+
))}
|
|
546
|
+
</div>
|
|
547
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
548
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
549
|
+
{`// Course item
|
|
550
|
+
<div className="flex items-center gap-3 border border-white/10 bg-white/5 p-3 rounded-lg">
|
|
551
|
+
<MagicBookIcon className="h-4 w-4 text-purple-400 " />
|
|
552
|
+
<div className="flex-1">
|
|
553
|
+
<span className="text-sm text-white">Introduction to Spellcasting</span>
|
|
554
|
+
</div>
|
|
555
|
+
<div className="text-xs px-2 py-1 rounded bg-green-500/20 text-green-300">
|
|
556
|
+
Beginner
|
|
557
|
+
</div>
|
|
558
|
+
</div>`}
|
|
559
|
+
</pre>
|
|
560
|
+
</div>
|
|
561
|
+
</div>
|
|
562
|
+
</div>
|
|
563
|
+
|
|
564
|
+
{/* Documentation Section */}
|
|
565
|
+
<div className="!space-y-4">
|
|
566
|
+
<h3 className="text-lg font-semibold !text-purple-300">
|
|
567
|
+
Documentation Section
|
|
568
|
+
</h3>
|
|
569
|
+
<div className="!space-y-4">
|
|
570
|
+
<div className="relative overflow-hidden rounded-lg border border-purple-500/20 bg-gradient-to-br from-purple-500/10 to-indigo-500/10 p-8 text-center">
|
|
571
|
+
<div className="absolute inset-0 bg-gradient-to-r from-transparent via-purple-500/5 to-transparent" />
|
|
572
|
+
<div className="relative">
|
|
573
|
+
<MagicBookIcon className="!mx-auto mb-4 h-16 w-16 text-purple-400" />
|
|
574
|
+
<h2 className="mb-4 text-3xl font-bold !text-white">
|
|
575
|
+
Magical Knowledge Base
|
|
576
|
+
</h2>
|
|
577
|
+
<p className="mb-6 text-lg !text-white/70">
|
|
578
|
+
Discover ancient spells, enchantments, and mystical
|
|
579
|
+
wisdom
|
|
580
|
+
</p>
|
|
581
|
+
<button className="rounded-lg bg-purple-500/20 px-6 py-3 text-purple-200 transition-colors hover:bg-purple-500/30">
|
|
582
|
+
Explore Spells
|
|
583
|
+
</button>
|
|
584
|
+
</div>
|
|
585
|
+
</div>
|
|
586
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
587
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
588
|
+
{`// Documentation hero section
|
|
589
|
+
<div className="relative overflow-hidden rounded-lg border border-purple-500/20 bg-gradient-to-br from-purple-500/10 to-indigo-500/10 p-8 text-center">
|
|
590
|
+
<div className="relative">
|
|
591
|
+
<MagicBookIcon className="mx-auto mb-4 h-16 w-16 text-purple-400 " />
|
|
592
|
+
<h2 className="mb-4 text-3xl font-bold text-white">Magical Knowledge Base</h2>
|
|
593
|
+
<p className="mb-6 text-lg text-white/70">
|
|
594
|
+
Discover ancient spells, enchantments, and mystical wisdom
|
|
595
|
+
</p>
|
|
596
|
+
<button className="rounded-lg bg-purple-500/20 px-6 py-3 text-purple-200 hover:bg-purple-500/30">
|
|
597
|
+
Explore Spells
|
|
598
|
+
</button>
|
|
599
|
+
</div>
|
|
600
|
+
</div>`}
|
|
601
|
+
</pre>
|
|
602
|
+
</div>
|
|
603
|
+
</div>
|
|
604
|
+
</div>
|
|
605
|
+
|
|
606
|
+
{/* Library Navigation */}
|
|
607
|
+
<div className="!space-y-4">
|
|
608
|
+
<h3 className="text-lg font-semibold !text-purple-300">
|
|
609
|
+
Library Navigation
|
|
610
|
+
</h3>
|
|
611
|
+
<div className="!space-y-4">
|
|
612
|
+
<div className="max-w-xs rounded-lg border border-white/10 bg-white/5 p-3">
|
|
613
|
+
{[
|
|
614
|
+
{ name: "Home", icon: "🏠", active: false },
|
|
615
|
+
{
|
|
616
|
+
name: "Spellbooks",
|
|
617
|
+
icon: "MagicBookIcon",
|
|
618
|
+
active: true,
|
|
619
|
+
},
|
|
620
|
+
{ name: "Potions", icon: "🧪", active: false },
|
|
621
|
+
{ name: "Artifacts", icon: "💎", active: false },
|
|
622
|
+
].map((item, index) => (
|
|
623
|
+
<div
|
|
624
|
+
key={index}
|
|
625
|
+
className={`flex cursor-pointer items-center gap-3 rounded p-2 transition-colors ${
|
|
626
|
+
item.active
|
|
627
|
+
? "bg-purple-500/20 text-purple-200"
|
|
628
|
+
: "text-white/70 hover:bg-white/10"
|
|
629
|
+
}`}
|
|
630
|
+
>
|
|
631
|
+
{item.icon === "MagicBookIcon" ? (
|
|
632
|
+
<MagicBookIcon
|
|
633
|
+
className={`h-4 w-4 ${
|
|
634
|
+
item.active
|
|
635
|
+
? "text-purple-400"
|
|
636
|
+
: "text-white/50"
|
|
637
|
+
}`}
|
|
638
|
+
/>
|
|
639
|
+
) : (
|
|
640
|
+
<span className="text-sm">{item.icon}</span>
|
|
641
|
+
)}
|
|
642
|
+
<span className="flex-1 text-sm">{item.name}</span>
|
|
643
|
+
{item.active && (
|
|
644
|
+
<div className="h-2 w-2 rounded-full bg-purple-400"></div>
|
|
645
|
+
)}
|
|
646
|
+
</div>
|
|
647
|
+
))}
|
|
648
|
+
</div>
|
|
649
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
650
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
651
|
+
{`// Navigation item
|
|
652
|
+
<div className="flex items-center gap-3 p-2 rounded bg-purple-500/20 text-purple-200 cursor-pointer">
|
|
653
|
+
<MagicBookIcon className="h-4 w-4 text-purple-400 " />
|
|
654
|
+
<span className="flex-1 text-sm">Spellbooks</span>
|
|
655
|
+
<div className="h-2 w-2 rounded-full bg-purple-400"></div>
|
|
656
|
+
</div>`}
|
|
657
|
+
</pre>
|
|
658
|
+
</div>
|
|
659
|
+
</div>
|
|
660
|
+
</div>
|
|
661
|
+
</div>
|
|
662
|
+
</div>
|
|
663
|
+
|
|
664
|
+
{/* Interactive States */}
|
|
665
|
+
<div className="!space-y-8">
|
|
666
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
667
|
+
Interactive States & Animations
|
|
668
|
+
</h2>
|
|
669
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
670
|
+
<div className="!space-y-4">
|
|
671
|
+
<h3 className="text-lg font-semibold !text-purple-300">
|
|
672
|
+
Hover & Animation Effects
|
|
673
|
+
</h3>
|
|
674
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
675
|
+
<div className="flex items-center gap-4">
|
|
676
|
+
<MagicBookIcon className="h-6 w-6 text-white/60 transition-colors hover:text-purple-400" />
|
|
677
|
+
<div>
|
|
678
|
+
<div className="text-sm font-medium text-white">
|
|
679
|
+
Color Change
|
|
680
|
+
</div>
|
|
681
|
+
<div className="text-xs text-white/60">
|
|
682
|
+
hover:text-purple-400
|
|
683
|
+
</div>
|
|
684
|
+
</div>
|
|
685
|
+
</div>
|
|
686
|
+
<div className="flex items-center gap-4">
|
|
687
|
+
<MagicBookIcon className="h-6 w-6 text-white transition-transform hover:scale-110" />
|
|
688
|
+
<div>
|
|
689
|
+
<div className="text-sm font-medium text-white">
|
|
690
|
+
Scale Effect
|
|
691
|
+
</div>
|
|
692
|
+
<div className="text-xs text-white/60">
|
|
693
|
+
hover:scale-110
|
|
694
|
+
</div>
|
|
695
|
+
</div>
|
|
696
|
+
</div>
|
|
697
|
+
<div className="flex items-center gap-4">
|
|
698
|
+
<MagicBookIcon className="animate-sparkle h-6 w-6 text-purple-400" />
|
|
699
|
+
<div>
|
|
700
|
+
<div className="text-sm font-medium text-white">
|
|
701
|
+
Magical Sparkle
|
|
702
|
+
</div>
|
|
703
|
+
<div className="text-xs text-white/60">
|
|
704
|
+
animate-sparkle
|
|
705
|
+
</div>
|
|
706
|
+
</div>
|
|
707
|
+
</div>
|
|
708
|
+
<div className="flex items-center gap-4">
|
|
709
|
+
<MagicBookIcon className="animate-float h-6 w-6 text-purple-400" />
|
|
710
|
+
<div>
|
|
711
|
+
<div className="text-sm font-medium text-white">
|
|
712
|
+
Floating Magic
|
|
713
|
+
</div>
|
|
714
|
+
<div className="text-xs text-white/60">
|
|
715
|
+
animate-float
|
|
716
|
+
</div>
|
|
717
|
+
</div>
|
|
718
|
+
</div>
|
|
719
|
+
</div>
|
|
720
|
+
</div>
|
|
721
|
+
|
|
722
|
+
<div className="!space-y-4">
|
|
723
|
+
<h3 className="text-lg font-semibold !text-purple-300">
|
|
724
|
+
Animation Examples
|
|
725
|
+
</h3>
|
|
726
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
727
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
728
|
+
{`// Hover effects
|
|
729
|
+
<MagicBookIcon className="h-6 w-6 text-white/60 hover:text-purple-400 transition-colors " />
|
|
730
|
+
|
|
731
|
+
// Scale on hover
|
|
732
|
+
<MagicBookIcon className="h-6 w-6 text-white hover:scale-110 transition-transform " />
|
|
733
|
+
|
|
734
|
+
// Sparkle animation
|
|
735
|
+
<MagicBookIcon className="h-6 w-6 text-purple-400 animate-sparkle " />
|
|
736
|
+
|
|
737
|
+
// Floating effect for magical sections
|
|
738
|
+
<MagicBookIcon className="h-6 w-6 text-purple-400 animate-float " />
|
|
739
|
+
|
|
740
|
+
// Custom sparkle animation
|
|
741
|
+
@keyframes sparkle {
|
|
742
|
+
0%, 100% { opacity: 1; transform: scale(1); }
|
|
743
|
+
50% { opacity: 0.7; transform: scale(1.1); }
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.animate-sparkle {
|
|
747
|
+
animation: sparkle 2s ease-in-out infinite;
|
|
748
|
+
}`}
|
|
749
|
+
</pre>
|
|
750
|
+
</div>
|
|
751
|
+
</div>
|
|
752
|
+
</div>
|
|
753
|
+
</div>
|
|
754
|
+
|
|
755
|
+
{/* Accessibility */}
|
|
756
|
+
<div className="!space-y-8">
|
|
757
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
758
|
+
Accessibility Features
|
|
759
|
+
</h2>
|
|
760
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
761
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
762
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
763
|
+
✅ Built-in Features
|
|
764
|
+
</h3>
|
|
765
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
766
|
+
<li className="!text-white/70">
|
|
767
|
+
Uses Radix UI AccessibleIcon wrapper
|
|
768
|
+
</li>
|
|
769
|
+
<li className="!text-white/70">
|
|
770
|
+
Provides screen reader label "Magic book icon"
|
|
771
|
+
</li>
|
|
772
|
+
<li className="!text-white/70">
|
|
773
|
+
Supports keyboard navigation when interactive
|
|
774
|
+
</li>
|
|
775
|
+
<li className="!text-white/70">
|
|
776
|
+
Maintains proper color contrast ratios
|
|
777
|
+
</li>
|
|
778
|
+
<li className="!text-white/70">
|
|
779
|
+
Scales with user's font size preferences
|
|
780
|
+
</li>
|
|
781
|
+
</ul>
|
|
782
|
+
</div>
|
|
783
|
+
|
|
784
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
785
|
+
<h3 className="text-lg font-semibold !text-purple-300">
|
|
786
|
+
💡 Best Practices
|
|
787
|
+
</h3>
|
|
788
|
+
<ul className="!space-y-2 text-sm text-white/70">
|
|
789
|
+
<li className="!text-white/70">
|
|
790
|
+
Always pair with descriptive context
|
|
791
|
+
</li>
|
|
792
|
+
<li className="!text-white/70">
|
|
793
|
+
Use consistent colors for learning themes
|
|
794
|
+
</li>
|
|
795
|
+
<li className="!text-white/70">
|
|
796
|
+
Consider motion sensitivity for sparkle animations
|
|
797
|
+
</li>
|
|
798
|
+
<li className="!text-white/70">
|
|
799
|
+
Add focus states for interactive elements
|
|
800
|
+
</li>
|
|
801
|
+
<li className="!text-white/70">
|
|
802
|
+
Provide alternative text for complex contexts
|
|
803
|
+
</li>
|
|
804
|
+
</ul>
|
|
805
|
+
</div>
|
|
806
|
+
</div>
|
|
807
|
+
|
|
808
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
809
|
+
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
810
|
+
Learning & Knowledge Accessibility
|
|
811
|
+
</h3>
|
|
812
|
+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
813
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
814
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
815
|
+
{`// Learning button with proper ARIA
|
|
816
|
+
<button
|
|
817
|
+
aria-label="Access magical knowledge base and spellbook library"
|
|
818
|
+
className="flex items-center gap-2 p-3 rounded-lg focus:ring-2 focus:ring-purple-500"
|
|
819
|
+
onClick={handleLearnClick}
|
|
820
|
+
>
|
|
821
|
+
<MagicBookIcon className="h-5 w-5 text-purple-400 " />
|
|
822
|
+
<span>Learn Magic</span>
|
|
823
|
+
</button>
|
|
824
|
+
|
|
825
|
+
// Course card with semantic structure
|
|
826
|
+
<div
|
|
827
|
+
role="article"
|
|
828
|
+
aria-labelledby="course-title"
|
|
829
|
+
className="border border-white/10 bg-white/5 p-6 rounded-lg"
|
|
830
|
+
>
|
|
831
|
+
<div className="flex items-start gap-4">
|
|
832
|
+
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20" aria-hidden="true">
|
|
833
|
+
<MagicBookIcon className="h-6 w-6 text-purple-400 " />
|
|
834
|
+
</div>
|
|
835
|
+
<div>
|
|
836
|
+
<h4 id="course-title" className="text-lg font-semibold text-white">
|
|
837
|
+
Magical Arts Guide
|
|
838
|
+
</h4>
|
|
839
|
+
<p className="text-sm text-white/70">
|
|
840
|
+
Comprehensive guide to enchantments and mystical knowledge.
|
|
841
|
+
</p>
|
|
842
|
+
</div>
|
|
843
|
+
</div>
|
|
844
|
+
</div>`}
|
|
845
|
+
</pre>
|
|
846
|
+
</div>
|
|
847
|
+
<div className="!space-y-4">
|
|
848
|
+
<p className="text-sm !text-white/70">
|
|
849
|
+
When using MagicBookIcon for learning and knowledge
|
|
850
|
+
features, provide clear context about what educational
|
|
851
|
+
content or magical knowledge users can access.
|
|
852
|
+
</p>
|
|
853
|
+
<div className="rounded-lg border border-purple-500/20 bg-purple-500/10 p-4">
|
|
854
|
+
<div className="flex items-center gap-2 text-sm text-purple-200">
|
|
855
|
+
<MagicBookIcon className="h-4 w-4" />
|
|
856
|
+
<span>
|
|
857
|
+
Screen readers understand this represents learning
|
|
858
|
+
content
|
|
859
|
+
</span>
|
|
860
|
+
</div>
|
|
861
|
+
</div>
|
|
862
|
+
</div>
|
|
863
|
+
</div>
|
|
864
|
+
</div>
|
|
865
|
+
</div>
|
|
866
|
+
|
|
867
|
+
{/* Related Icons */}
|
|
868
|
+
<div className="!space-y-8">
|
|
869
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
870
|
+
Related Icons
|
|
871
|
+
</h2>
|
|
872
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
873
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
874
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
875
|
+
<span className="text-2xl">📚</span>
|
|
876
|
+
</div>
|
|
877
|
+
<div>
|
|
878
|
+
<div className="font-medium text-white">LibraryIcon</div>
|
|
879
|
+
<div className="text-xs text-white/60">
|
|
880
|
+
Books & knowledge
|
|
881
|
+
</div>
|
|
882
|
+
</div>
|
|
883
|
+
</div>
|
|
884
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
885
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
886
|
+
<span className="text-2xl">🎓</span>
|
|
887
|
+
</div>
|
|
888
|
+
<div>
|
|
889
|
+
<div className="font-medium text-white">
|
|
890
|
+
EducationIcon
|
|
891
|
+
</div>
|
|
892
|
+
<div className="text-xs text-white/60">
|
|
893
|
+
Learning & degrees
|
|
894
|
+
</div>
|
|
895
|
+
</div>
|
|
896
|
+
</div>
|
|
897
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
898
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-indigo-500/20">
|
|
899
|
+
<span className="text-2xl">🪄</span>
|
|
900
|
+
</div>
|
|
901
|
+
<div>
|
|
902
|
+
<div className="font-medium text-white">WandIcon</div>
|
|
903
|
+
<div className="text-xs text-white/60">
|
|
904
|
+
Magic & spells
|
|
905
|
+
</div>
|
|
906
|
+
</div>
|
|
907
|
+
</div>
|
|
908
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
909
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-violet-500/20">
|
|
910
|
+
<span className="text-2xl">📖</span>
|
|
911
|
+
</div>
|
|
912
|
+
<div>
|
|
913
|
+
<div className="font-medium text-white">DocumentIcon</div>
|
|
914
|
+
<div className="text-xs text-white/60">Documentation</div>
|
|
915
|
+
</div>
|
|
916
|
+
</div>
|
|
917
|
+
</div>
|
|
918
|
+
</div>
|
|
919
|
+
</div>
|
|
920
|
+
|
|
921
|
+
{/* Footer */}
|
|
922
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
923
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
924
|
+
<div className="!space-y-4 text-center">
|
|
925
|
+
<p className="!text-white/60">
|
|
926
|
+
MagicBookIcon is part of the Aural UI icon library, built
|
|
927
|
+
for representing magical knowledge, learning, and
|
|
928
|
+
educational content.
|
|
929
|
+
</p>
|
|
930
|
+
<p className="text-sm !text-white/40">
|
|
931
|
+
All icons use Radix UI's AccessibleIcon for screen reader
|
|
932
|
+
compatibility and follow WCAG guidelines for learning
|
|
933
|
+
applications.
|
|
934
|
+
</p>
|
|
935
|
+
</div>
|
|
936
|
+
</div>
|
|
937
|
+
</div>
|
|
938
|
+
</div>
|
|
939
|
+
</>
|
|
940
|
+
),
|
|
941
|
+
},
|
|
942
|
+
},
|
|
943
|
+
tags: ["autodocs"],
|
|
944
|
+
argTypes: {
|
|
945
|
+
width: {
|
|
946
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
947
|
+
description: "Width of the icon in pixels",
|
|
948
|
+
},
|
|
949
|
+
height: {
|
|
950
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
951
|
+
description: "Height of the icon in pixels",
|
|
952
|
+
},
|
|
953
|
+
fill: {
|
|
954
|
+
control: "color",
|
|
955
|
+
description: "Fill color of the icon",
|
|
956
|
+
},
|
|
957
|
+
className: {
|
|
958
|
+
control: "text",
|
|
959
|
+
description: "CSS classes for styling (use for overrides)",
|
|
960
|
+
},
|
|
961
|
+
},
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
export default meta
|
|
965
|
+
type Story = StoryObj<typeof MagicBookIcon>
|
|
966
|
+
|
|
967
|
+
// Story parameters for consistent dark theme
|
|
968
|
+
const storyParameters = {
|
|
969
|
+
backgrounds: {
|
|
970
|
+
default: "dark",
|
|
971
|
+
values: [
|
|
972
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
973
|
+
{ name: "darker", value: "#000000" },
|
|
974
|
+
],
|
|
975
|
+
},
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
export const Default: Story = {
|
|
979
|
+
args: {
|
|
980
|
+
className: "h-6 w-6 text-purple-400 ",
|
|
981
|
+
},
|
|
982
|
+
parameters: storyParameters,
|
|
983
|
+
render: (args) => (
|
|
984
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
985
|
+
<MagicBookIcon {...args} />
|
|
986
|
+
</div>
|
|
987
|
+
),
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
export const SizeVariations: Story = {
|
|
991
|
+
parameters: {
|
|
992
|
+
...storyParameters,
|
|
993
|
+
docs: {
|
|
994
|
+
description: {
|
|
995
|
+
story:
|
|
996
|
+
"MagicBookIcon in different sizes, from small UI elements to large learning displays.",
|
|
997
|
+
},
|
|
998
|
+
},
|
|
999
|
+
},
|
|
1000
|
+
render: () => (
|
|
1001
|
+
<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">
|
|
1002
|
+
<div className="text-center">
|
|
1003
|
+
<MagicBookIcon className="!mx-auto mb-2 h-3 w-3 text-purple-400" />
|
|
1004
|
+
<span className="text-xs text-white/60">12px</span>
|
|
1005
|
+
</div>
|
|
1006
|
+
<div className="text-center">
|
|
1007
|
+
<MagicBookIcon className="!mx-auto mb-2 h-4 w-4 text-purple-400" />
|
|
1008
|
+
<span className="text-xs text-white/60">16px</span>
|
|
1009
|
+
</div>
|
|
1010
|
+
<div className="text-center">
|
|
1011
|
+
<MagicBookIcon className="!mx-auto mb-2 h-5 w-5 text-purple-400" />
|
|
1012
|
+
<span className="text-xs text-white/60">20px</span>
|
|
1013
|
+
</div>
|
|
1014
|
+
<div className="text-center">
|
|
1015
|
+
<MagicBookIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
|
|
1016
|
+
<span className="text-xs text-white/60">24px</span>
|
|
1017
|
+
</div>
|
|
1018
|
+
<div className="text-center">
|
|
1019
|
+
<MagicBookIcon className="!mx-auto mb-2 h-8 w-8 text-purple-400" />
|
|
1020
|
+
<span className="text-xs text-white/60">32px</span>
|
|
1021
|
+
</div>
|
|
1022
|
+
<div className="text-center">
|
|
1023
|
+
<MagicBookIcon className="!mx-auto mb-2 h-12 w-12 text-purple-400" />
|
|
1024
|
+
<span className="text-xs text-white/60">48px</span>
|
|
1025
|
+
</div>
|
|
1026
|
+
</div>
|
|
1027
|
+
),
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
export const ColorVariations: Story = {
|
|
1031
|
+
parameters: {
|
|
1032
|
+
...storyParameters,
|
|
1033
|
+
docs: {
|
|
1034
|
+
description: {
|
|
1035
|
+
story:
|
|
1036
|
+
"MagicBookIcon in different colors for various magical and learning contexts.",
|
|
1037
|
+
},
|
|
1038
|
+
},
|
|
1039
|
+
},
|
|
1040
|
+
render: () => (
|
|
1041
|
+
<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">
|
|
1042
|
+
<div className="text-center">
|
|
1043
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
|
|
1044
|
+
<MagicBookIcon className="h-8 w-8 text-purple-400" />
|
|
1045
|
+
</div>
|
|
1046
|
+
<div className="text-sm font-medium text-white">Magic & Spells</div>
|
|
1047
|
+
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
1048
|
+
</div>
|
|
1049
|
+
<div className="text-center">
|
|
1050
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-indigo-500/30 bg-indigo-500/20">
|
|
1051
|
+
<MagicBookIcon className="h-8 w-8 text-indigo-400" />
|
|
1052
|
+
</div>
|
|
1053
|
+
<div className="text-sm font-medium text-white">Knowledge</div>
|
|
1054
|
+
<div className="text-xs text-indigo-400">text-indigo-400</div>
|
|
1055
|
+
</div>
|
|
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-violet-500/30 bg-violet-500/20">
|
|
1058
|
+
<MagicBookIcon className="h-8 w-8 text-violet-400" />
|
|
1059
|
+
</div>
|
|
1060
|
+
<div className="text-sm font-medium text-white">Wisdom</div>
|
|
1061
|
+
<div className="text-xs text-violet-400">text-violet-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
|
+
<MagicBookIcon className="h-8 w-8 text-blue-400" />
|
|
1066
|
+
</div>
|
|
1067
|
+
<div className="text-sm font-medium text-white">Documentation</div>
|
|
1068
|
+
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
1069
|
+
</div>
|
|
1070
|
+
</div>
|
|
1071
|
+
),
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
export const UsageExamples: Story = {
|
|
1075
|
+
parameters: {
|
|
1076
|
+
...storyParameters,
|
|
1077
|
+
docs: {
|
|
1078
|
+
description: {
|
|
1079
|
+
story:
|
|
1080
|
+
"Real-world usage examples showing MagicBookIcon in different magical and learning contexts.",
|
|
1081
|
+
},
|
|
1082
|
+
},
|
|
1083
|
+
},
|
|
1084
|
+
render: () => (
|
|
1085
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
1086
|
+
{/* Learning Card */}
|
|
1087
|
+
<div className="!space-y-2">
|
|
1088
|
+
<h3 className="text-sm font-medium text-white">Learning Card</h3>
|
|
1089
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
1090
|
+
<div className="flex items-start gap-4">
|
|
1091
|
+
<div className="flex h-12 w-12 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
|
|
1092
|
+
<MagicBookIcon className="h-6 w-6 text-purple-400" />
|
|
1093
|
+
</div>
|
|
1094
|
+
<div className="flex-1">
|
|
1095
|
+
<h4 className="mb-2 text-lg font-semibold !text-white">
|
|
1096
|
+
Magical Arts Guide
|
|
1097
|
+
</h4>
|
|
1098
|
+
<p className="text-sm !text-white/70">
|
|
1099
|
+
Comprehensive guide to enchantments, spells, and mystical
|
|
1100
|
+
knowledge.
|
|
1101
|
+
</p>
|
|
1102
|
+
</div>
|
|
1103
|
+
</div>
|
|
1104
|
+
</div>
|
|
1105
|
+
</div>
|
|
1106
|
+
|
|
1107
|
+
{/* Course Sections */}
|
|
1108
|
+
<div className="!space-y-2">
|
|
1109
|
+
<h3 className="text-sm font-medium text-white">Course Sections</h3>
|
|
1110
|
+
<div className="!space-y-3">
|
|
1111
|
+
{[
|
|
1112
|
+
{
|
|
1113
|
+
text: "Introduction to Spellcasting",
|
|
1114
|
+
level: "Beginner",
|
|
1115
|
+
color: "purple",
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
text: "Advanced Potion Making",
|
|
1119
|
+
level: "Advanced",
|
|
1120
|
+
color: "indigo",
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
text: "Mystical Creature Studies",
|
|
1124
|
+
level: "Expert",
|
|
1125
|
+
color: "violet",
|
|
1126
|
+
},
|
|
1127
|
+
].map((course, index) => (
|
|
1128
|
+
<div
|
|
1129
|
+
key={index}
|
|
1130
|
+
className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3"
|
|
1131
|
+
>
|
|
1132
|
+
<MagicBookIcon
|
|
1133
|
+
className={`h-4 w-4 ${
|
|
1134
|
+
course.color === "purple"
|
|
1135
|
+
? "text-purple-400"
|
|
1136
|
+
: course.color === "indigo"
|
|
1137
|
+
? "text-indigo-400"
|
|
1138
|
+
: "text-violet-400"
|
|
1139
|
+
}`}
|
|
1140
|
+
/>
|
|
1141
|
+
<div className="flex-1">
|
|
1142
|
+
<span className="text-sm text-white">{course.text}</span>
|
|
1143
|
+
</div>
|
|
1144
|
+
<div
|
|
1145
|
+
className={`rounded px-2 py-1 text-xs ${
|
|
1146
|
+
course.level === "Beginner"
|
|
1147
|
+
? "bg-green-500/20 text-green-300"
|
|
1148
|
+
: course.level === "Advanced"
|
|
1149
|
+
? "bg-yellow-500/20 text-yellow-300"
|
|
1150
|
+
: "bg-red-500/20 text-red-300"
|
|
1151
|
+
}`}
|
|
1152
|
+
>
|
|
1153
|
+
{course.level}
|
|
1154
|
+
</div>
|
|
1155
|
+
</div>
|
|
1156
|
+
))}
|
|
1157
|
+
</div>
|
|
1158
|
+
</div>
|
|
1159
|
+
|
|
1160
|
+
{/* Documentation Hero */}
|
|
1161
|
+
<div className="!space-y-2">
|
|
1162
|
+
<h3 className="text-sm font-medium text-white">
|
|
1163
|
+
Documentation Section
|
|
1164
|
+
</h3>
|
|
1165
|
+
<div className="relative overflow-hidden rounded-lg border border-purple-500/20 bg-gradient-to-br from-purple-500/10 to-indigo-500/10 p-8 text-center">
|
|
1166
|
+
<div className="relative">
|
|
1167
|
+
<MagicBookIcon className="!mx-auto mb-4 h-16 w-16 text-purple-400" />
|
|
1168
|
+
<h2 className="mb-4 text-3xl font-bold !text-white">
|
|
1169
|
+
Magical Knowledge Base
|
|
1170
|
+
</h2>
|
|
1171
|
+
<p className="mb-6 text-lg !text-white/70">
|
|
1172
|
+
Discover ancient spells, enchantments, and mystical wisdom
|
|
1173
|
+
</p>
|
|
1174
|
+
<button className="rounded-lg bg-purple-500/20 px-6 py-3 text-purple-200 transition-colors hover:bg-purple-500/30">
|
|
1175
|
+
Explore Spells
|
|
1176
|
+
</button>
|
|
1177
|
+
</div>
|
|
1178
|
+
</div>
|
|
1179
|
+
</div>
|
|
1180
|
+
</div>
|
|
1181
|
+
),
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
export const InteractiveStates: Story = {
|
|
1185
|
+
parameters: {
|
|
1186
|
+
...storyParameters,
|
|
1187
|
+
docs: {
|
|
1188
|
+
description: {
|
|
1189
|
+
story:
|
|
1190
|
+
"Interactive states showing hover effects, animations, and magical visual effects for the magic book icon.",
|
|
1191
|
+
},
|
|
1192
|
+
},
|
|
1193
|
+
},
|
|
1194
|
+
render: () => (
|
|
1195
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
1196
|
+
<div className="!space-y-4">
|
|
1197
|
+
<h3 className="text-sm font-medium text-white/70">
|
|
1198
|
+
Hover & Animation Effects
|
|
1199
|
+
</h3>
|
|
1200
|
+
<div className="flex gap-8">
|
|
1201
|
+
<div className="flex flex-col items-center gap-2">
|
|
1202
|
+
<MagicBookIcon className="h-8 w-8 text-white/60 transition-colors hover:text-purple-400" />
|
|
1203
|
+
<span className="text-xs text-white/60">Color Change</span>
|
|
1204
|
+
</div>
|
|
1205
|
+
<div className="flex flex-col items-center gap-2">
|
|
1206
|
+
<MagicBookIcon className="h-8 w-8 text-white transition-transform hover:scale-110" />
|
|
1207
|
+
<span className="text-xs text-white/60">Scale Up</span>
|
|
1208
|
+
</div>
|
|
1209
|
+
<div className="flex flex-col items-center gap-2">
|
|
1210
|
+
<MagicBookIcon className="animate-sparkle h-8 w-8 text-purple-400" />
|
|
1211
|
+
<span className="text-xs text-white/60">Sparkle</span>
|
|
1212
|
+
</div>
|
|
1213
|
+
<div className="flex flex-col items-center gap-2">
|
|
1214
|
+
<MagicBookIcon className="animate-float h-8 w-8 text-purple-400" />
|
|
1215
|
+
<span className="text-xs text-white/60">Float</span>
|
|
1216
|
+
</div>
|
|
1217
|
+
</div>
|
|
1218
|
+
</div>
|
|
1219
|
+
</div>
|
|
1220
|
+
),
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
export const Playground: Story = {
|
|
1224
|
+
parameters: {
|
|
1225
|
+
...storyParameters,
|
|
1226
|
+
docs: {
|
|
1227
|
+
description: {
|
|
1228
|
+
story:
|
|
1229
|
+
"Interactive playground to experiment with different MagicBookIcon configurations.",
|
|
1230
|
+
},
|
|
1231
|
+
},
|
|
1232
|
+
},
|
|
1233
|
+
args: {
|
|
1234
|
+
width: 32,
|
|
1235
|
+
height: 32,
|
|
1236
|
+
className: "text-purple-400 ",
|
|
1237
|
+
},
|
|
1238
|
+
render: (args) => (
|
|
1239
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1240
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
1241
|
+
<MagicBookIcon {...args} />
|
|
1242
|
+
</div>
|
|
1243
|
+
</div>
|
|
1244
|
+
),
|
|
1245
|
+
}
|