aural-ui 3.0.7 → 4.0.1
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/dist/components/aspect-ratio/AspectRatio.stories.tsx +271 -242
- package/dist/components/avatar/Avatar.stories.tsx +84 -70
- package/dist/components/button/Button.stories.tsx +7 -7
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +3 -3
- package/dist/components/char-count/CharCount.stories.tsx +9 -9
- package/dist/components/circular-loader/CircularLoader.stories.tsx +109 -93
- package/dist/components/collapsible/Collapsible.stories.tsx +1 -1
- package/dist/components/command/Command.stories.tsx +52 -38
- package/dist/components/dialog/Dialog.stories.tsx +89 -84
- package/dist/components/divider/Divider.stories.tsx +86 -60
- package/dist/components/dot-loader/DotLoader.stories.tsx +12 -12
- package/dist/components/drawer/Drawer.stories.tsx +74 -44
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +42 -32
- package/dist/components/helper-text/HelperText.stories.tsx +2 -2
- package/dist/components/hover-card/HoverCard.stories.tsx +211 -178
- package/dist/components/input/Input.stories.tsx +2 -2
- package/dist/components/label/Label.stories.tsx +10 -10
- package/dist/components/list/List.stories.tsx +58 -44
- package/dist/components/marquee/Marquee.stories.tsx +131 -113
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +47 -35
- package/dist/components/overlay/Overlay.stories.tsx +98 -92
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/popover/Popover.stories.tsx +132 -106
- package/dist/components/radio/Radio.stories.tsx +2 -2
- package/dist/components/resizable/Resizable.stories.tsx +186 -138
- package/dist/components/scroll-area/ScrollArea.stories.tsx +174 -120
- package/dist/components/search/Search.stories.tsx +81 -59
- package/dist/components/select/Select.stories.tsx +3 -1
- package/dist/components/sheet/Sheet.stories.tsx +68 -54
- package/dist/components/slider/Slider.stories.tsx +71 -47
- package/dist/components/stepper/Stepper.stories.tsx +16 -16
- package/dist/components/switch/Switch.stories.tsx +12 -12
- package/dist/components/table/Table.stories.tsx +8 -6
- package/dist/components/tabs/Tabs.stories.tsx +324 -268
- package/dist/components/textarea/TextArea.stories.tsx +1 -1
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +16 -10
- package/dist/components/toast/Toast.stories.tsx +51 -45
- package/dist/components/toggle/Toggle.stories.tsx +111 -89
- package/dist/components/tooltip/Tooltip.stories.tsx +160 -144
- package/dist/icons/Icons.stories.tsx +2 -2
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +287 -237
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +290 -248
- package/dist/icons/all-icons.tsx +97 -81
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +312 -270
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +294 -244
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +309 -279
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +294 -258
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +289 -255
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +288 -256
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +322 -288
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +340 -296
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +197 -177
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +390 -328
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +313 -277
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +367 -309
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +356 -308
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +280 -234
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +370 -326
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +300 -256
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +298 -262
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +294 -260
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +291 -259
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +286 -256
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +282 -256
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +292 -256
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +338 -290
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +167 -148
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +342 -296
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +342 -296
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +280 -238
- package/dist/icons/command-icon/CommandIcon.stories.tsx +328 -280
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +294 -256
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +285 -235
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +308 -266
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +271 -231
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +330 -278
- package/dist/icons/email-icon/EmailIcon.stories.tsx +303 -257
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +324 -286
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +317 -271
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +320 -272
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +322 -280
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +315 -277
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +199 -177
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +304 -264
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +311 -277
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +327 -287
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +314 -278
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +113 -98
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +274 -226
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +349 -303
- package/dist/icons/head-icon/HeadIcon.stories.tsx +286 -246
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +312 -268
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +246 -210
- package/dist/icons/image-icon/ImageIcon.stories.tsx +330 -284
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +326 -282
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +330 -294
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +288 -234
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +386 -330
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +305 -263
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +295 -259
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +296 -256
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +322 -282
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +399 -359
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +314 -272
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +238 -206
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +322 -276
- package/dist/icons/message-icon/MessageIcon.stories.tsx +192 -170
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +348 -304
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +191 -167
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +380 -326
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +345 -291
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +310 -266
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +311 -271
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +311 -271
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +309 -271
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +248 -210
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +310 -262
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +274 -236
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +324 -280
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +323 -281
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +288 -240
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +315 -273
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +278 -234
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +161 -151
- package/dist/icons/search-icon/SearchIcon.stories.tsx +324 -284
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +306 -264
- package/dist/icons/share-icon/ShareIcon.stories.tsx +314 -272
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +281 -235
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +309 -250
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +317 -279
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +315 -279
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +299 -253
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +185 -169
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +192 -168
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +212 -178
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +290 -244
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +286 -234
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +272 -230
- package/dist/icons/sun-icon/SunIcon.stories.tsx +262 -226
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +321 -279
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +332 -282
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +394 -342
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +338 -290
- package/dist/icons/tick-icon/TickIcon.stories.tsx +364 -315
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +293 -253
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +396 -338
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +291 -247
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +309 -271
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +336 -290
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +382 -334
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +349 -305
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +327 -295
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +336 -296
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +314 -274
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +311 -261
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -11,9 +11,9 @@ const meta: Meta<typeof MagicBookIcon> = {
|
|
|
11
11
|
backgrounds: {
|
|
12
12
|
default: "dark",
|
|
13
13
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
14
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
15
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
16
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
17
|
],
|
|
18
18
|
},
|
|
19
19
|
docs: {
|
|
@@ -40,42 +40,42 @@ const meta: Meta<typeof MagicBookIcon> = {
|
|
|
40
40
|
background: transparent ;
|
|
41
41
|
}
|
|
42
42
|
body {
|
|
43
|
-
background:
|
|
43
|
+
background: var(--color-fm-surface-primary) ;
|
|
44
44
|
}
|
|
45
45
|
#storybook-docs {
|
|
46
|
-
background:
|
|
46
|
+
background: var(--color-fm-surface-primary) ;
|
|
47
47
|
}
|
|
48
48
|
.sbdocs-preview {
|
|
49
49
|
background: transparent ;
|
|
50
50
|
border: none ;
|
|
51
51
|
}
|
|
52
52
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color:
|
|
53
|
+
color: var(--color-fm-icon-active) ;
|
|
54
54
|
}
|
|
55
55
|
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color:
|
|
56
|
+
color: var(--color-fm-secondary) ;
|
|
57
57
|
}
|
|
58
58
|
.sbdocs-code {
|
|
59
|
-
background:
|
|
60
|
-
color:
|
|
61
|
-
border: 1px solid
|
|
59
|
+
background: var(--color-fm-surface-secondary) ;
|
|
60
|
+
color: var(--color-fm-secondary-500) ;
|
|
61
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
62
62
|
}
|
|
63
63
|
.sbdocs-pre {
|
|
64
|
-
background:
|
|
65
|
-
border: 1px solid
|
|
64
|
+
background: var(--color-fm-surface-secondary) ;
|
|
65
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
66
66
|
}
|
|
67
67
|
.sbdocs-table {
|
|
68
|
-
background:
|
|
69
|
-
border: 1px solid
|
|
68
|
+
background: var(--color-fm-surface-secondary) ;
|
|
69
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
70
70
|
}
|
|
71
71
|
.sbdocs-table th {
|
|
72
|
-
background:
|
|
73
|
-
color:
|
|
74
|
-
border-bottom: 1px solid
|
|
72
|
+
background: var(--color-fm-surface-secondary) ;
|
|
73
|
+
color: var(--color-fm-icon-active) ;
|
|
74
|
+
border-bottom: 1px solid var(--color-fm-divider-secondary) ;
|
|
75
75
|
}
|
|
76
76
|
.sbdocs-table td {
|
|
77
|
-
color:
|
|
78
|
-
border-bottom: 1px solid
|
|
77
|
+
color: var(--color-fm-secondary) ;
|
|
78
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
|
|
79
79
|
}
|
|
80
80
|
@keyframes sparkle {
|
|
81
81
|
0%, 100% { opacity: 1; transform: scale(1); }
|
|
@@ -94,19 +94,19 @@ const meta: Meta<typeof MagicBookIcon> = {
|
|
|
94
94
|
`}
|
|
95
95
|
</style>
|
|
96
96
|
|
|
97
|
-
<div className="
|
|
97
|
+
<div className="bg-fm-surface-primary min-h-screen">
|
|
98
98
|
{/* Header */}
|
|
99
|
-
<div className="relative overflow-hidden border-b
|
|
100
|
-
<div className="absolute inset-0 bg-
|
|
99
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
100
|
+
<div className="from-fm-secondary-500/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
101
101
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
102
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
|
|
104
|
-
<MagicBookIcon className="h-12 w-12
|
|
103
|
+
<div className="border-fm-secondary-500/30 from-fm-secondary-500/20 to-fm-icon-info/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
104
|
+
<MagicBookIcon className="text-fm-secondary-600 h-12 w-12" />
|
|
105
105
|
</div>
|
|
106
106
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
107
107
|
MagicBookIcon
|
|
108
108
|
</h1>
|
|
109
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
109
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
110
110
|
A magical book icon perfect for representing knowledge,
|
|
111
111
|
learning, documentation, spells, and educational content.
|
|
112
112
|
Features sparkling stars to convey magic and wonder. Built
|
|
@@ -117,28 +117,28 @@ const meta: Meta<typeof MagicBookIcon> = {
|
|
|
117
117
|
{/* Stats */}
|
|
118
118
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
119
119
|
<div className="text-center">
|
|
120
|
-
<div className="text-3xl font-bold
|
|
120
|
+
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
121
121
|
Knowledge
|
|
122
122
|
</div>
|
|
123
|
-
<div className="text-
|
|
123
|
+
<div className="text-fm-tertiary text-sm">
|
|
124
124
|
Learning & education
|
|
125
125
|
</div>
|
|
126
126
|
</div>
|
|
127
|
-
<div className="h-8 w-px
|
|
127
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
128
128
|
<div className="text-center">
|
|
129
|
-
<div className="text-3xl font-bold
|
|
129
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
130
130
|
Magic
|
|
131
131
|
</div>
|
|
132
|
-
<div className="text-
|
|
132
|
+
<div className="text-fm-tertiary text-sm">
|
|
133
133
|
Spells & enchantments
|
|
134
134
|
</div>
|
|
135
135
|
</div>
|
|
136
|
-
<div className="h-8 w-px
|
|
136
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
137
137
|
<div className="text-center">
|
|
138
|
-
<div className="text-3xl font-bold
|
|
138
|
+
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
139
139
|
Wisdom
|
|
140
140
|
</div>
|
|
141
|
-
<div className="text-
|
|
141
|
+
<div className="text-fm-tertiary text-sm">
|
|
142
142
|
Documentation & guides
|
|
143
143
|
</div>
|
|
144
144
|
</div>
|
|
@@ -151,16 +151,16 @@ const meta: Meta<typeof MagicBookIcon> = {
|
|
|
151
151
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
152
152
|
{/* Quick Usage */}
|
|
153
153
|
<div className="!space-y-8">
|
|
154
|
-
<h2 className="text-center text-3xl font-bold
|
|
154
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
155
155
|
Quick Start
|
|
156
156
|
</h2>
|
|
157
157
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
158
158
|
<div className="!space-y-4">
|
|
159
|
-
<h3 className="text-xl font-semibold
|
|
159
|
+
<h3 className="text-fm-secondary-600! text-xl font-semibold">
|
|
160
160
|
Basic Usage
|
|
161
161
|
</h3>
|
|
162
|
-
<div className="rounded-lg
|
|
163
|
-
<pre className="overflow-x-auto text-sm
|
|
162
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
163
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
164
164
|
{`import { MagicBookIcon } from "@icons/magic-book-icon"
|
|
165
165
|
|
|
166
166
|
function FeatureCard() {
|
|
@@ -176,13 +176,13 @@ function FeatureCard() {
|
|
|
176
176
|
</div>
|
|
177
177
|
|
|
178
178
|
<div className="!space-y-4">
|
|
179
|
-
<h3 className="text-xl font-semibold
|
|
179
|
+
<h3 className="text-fm-secondary-600! text-xl font-semibold">
|
|
180
180
|
Live Preview
|
|
181
181
|
</h3>
|
|
182
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
183
|
-
<div className="flex items-center gap-3 rounded-lg border
|
|
184
|
-
<MagicBookIcon className="h-6 w-6
|
|
185
|
-
<span className="text-
|
|
182
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
183
|
+
<div className="border-fm-secondary-500/20 bg-fm-secondary-500/10 flex items-center gap-3 rounded-lg border px-4 py-3">
|
|
184
|
+
<MagicBookIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
185
|
+
<span className="text-fm-icon-active">Learn Magic</span>
|
|
186
186
|
</div>
|
|
187
187
|
</div>
|
|
188
188
|
</div>
|
|
@@ -191,94 +191,102 @@ function FeatureCard() {
|
|
|
191
191
|
|
|
192
192
|
{/* Props Documentation */}
|
|
193
193
|
<div className="!space-y-8">
|
|
194
|
-
<h2 className="text-center text-3xl font-bold
|
|
194
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
195
195
|
Props & Configuration
|
|
196
196
|
</h2>
|
|
197
197
|
|
|
198
|
-
<div className="overflow-hidden rounded-lg border
|
|
199
|
-
<div className="bg-
|
|
200
|
-
<h3 className="text-xl font-semibold
|
|
198
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
199
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
200
|
+
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
201
|
+
Props
|
|
202
|
+
</h3>
|
|
201
203
|
</div>
|
|
202
204
|
<table className="!my-0 w-full">
|
|
203
|
-
<thead className="bg-
|
|
204
|
-
<tr className="border-
|
|
205
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
205
|
+
<thead className="bg-fm-surface-secondary">
|
|
206
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
207
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
206
208
|
Prop
|
|
207
209
|
</th>
|
|
208
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
210
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
209
211
|
Type
|
|
210
212
|
</th>
|
|
211
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
213
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
212
214
|
Default
|
|
213
215
|
</th>
|
|
214
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
216
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
215
217
|
Description
|
|
216
218
|
</th>
|
|
217
219
|
</tr>
|
|
218
220
|
</thead>
|
|
219
221
|
<tbody>
|
|
220
222
|
{" "}
|
|
221
|
-
<tr className="
|
|
222
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
223
|
+
<tr className="bg-fm-surface-secondary!">
|
|
224
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
223
225
|
withAccessibility
|
|
224
226
|
</td>
|
|
225
|
-
<td className="px-6 py-4 text-sm
|
|
227
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
226
228
|
boolean
|
|
227
229
|
</td>
|
|
228
|
-
<td className="px-6 py-4 text-sm
|
|
230
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
229
231
|
true
|
|
230
232
|
</td>
|
|
231
|
-
<td className="px-6 py-4 text-sm
|
|
233
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
232
234
|
Whether to wrap the icon with accessibility feature
|
|
233
235
|
</td>
|
|
234
236
|
</tr>
|
|
235
|
-
<tr className="border-
|
|
236
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
237
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
238
|
+
<td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
|
|
237
239
|
height
|
|
238
240
|
</td>
|
|
239
|
-
<td className="px-6 py-4 text-sm
|
|
241
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
240
242
|
number | string
|
|
241
243
|
</td>
|
|
242
|
-
<td className="px-6 py-4 text-sm
|
|
243
|
-
|
|
244
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
245
|
+
24
|
|
246
|
+
</td>
|
|
247
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
244
248
|
Height of the icon in pixels
|
|
245
249
|
</td>
|
|
246
250
|
</tr>
|
|
247
|
-
<tr className="border-
|
|
248
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
251
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
252
|
+
<td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
|
|
249
253
|
fill
|
|
250
254
|
</td>
|
|
251
|
-
<td className="px-6 py-4 text-sm
|
|
255
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
252
256
|
string
|
|
253
257
|
</td>
|
|
254
|
-
<td className="px-6 py-4 text-sm
|
|
258
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
255
259
|
currentColor
|
|
256
260
|
</td>
|
|
257
|
-
<td className="px-6 py-4 text-sm
|
|
261
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
258
262
|
Fill color of the icon
|
|
259
263
|
</td>
|
|
260
264
|
</tr>
|
|
261
|
-
<tr className="border-
|
|
262
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
265
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
266
|
+
<td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
|
|
263
267
|
className
|
|
264
268
|
</td>
|
|
265
|
-
<td className="px-6 py-4 text-sm
|
|
269
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
266
270
|
string
|
|
267
271
|
</td>
|
|
268
|
-
<td className="px-6 py-4 text-sm
|
|
269
|
-
|
|
272
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
273
|
+
-
|
|
274
|
+
</td>
|
|
275
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
270
276
|
CSS classes for styling (use for overrides)
|
|
271
277
|
</td>
|
|
272
278
|
</tr>
|
|
273
|
-
<tr className="
|
|
274
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
279
|
+
<tr className="bg-fm-surface-secondary!">
|
|
280
|
+
<td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
|
|
275
281
|
...svgProps
|
|
276
282
|
</td>
|
|
277
|
-
<td className="px-6 py-4 text-sm
|
|
283
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
278
284
|
SVGProps
|
|
279
285
|
</td>
|
|
280
|
-
<td className="px-6 py-4 text-sm
|
|
281
|
-
|
|
286
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
287
|
+
-
|
|
288
|
+
</td>
|
|
289
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
282
290
|
All standard SVG element props
|
|
283
291
|
</td>
|
|
284
292
|
</tr>
|
|
@@ -289,50 +297,62 @@ function FeatureCard() {
|
|
|
289
297
|
|
|
290
298
|
{/* Size Variations */}
|
|
291
299
|
<div className="!space-y-8">
|
|
292
|
-
<h2 className="text-center text-3xl font-bold
|
|
300
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
293
301
|
Size Variations
|
|
294
302
|
</h2>
|
|
295
|
-
<div className="rounded-lg border
|
|
303
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
296
304
|
<div className="!space-y-6">
|
|
297
305
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
298
306
|
<div className="!space-y-4">
|
|
299
|
-
<h3 className="text-lg font-semibold
|
|
307
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
300
308
|
Standard Sizes
|
|
301
309
|
</h3>
|
|
302
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
310
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
303
311
|
<div className="text-center">
|
|
304
|
-
<MagicBookIcon className="!mx-auto mb-2 h-3 w-3
|
|
305
|
-
<span className="text-
|
|
312
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-2 h-3 w-3" />
|
|
313
|
+
<span className="text-fm-tertiary text-xs">
|
|
314
|
+
12px
|
|
315
|
+
</span>
|
|
306
316
|
</div>
|
|
307
317
|
<div className="text-center">
|
|
308
|
-
<MagicBookIcon className="!mx-auto mb-2 h-4 w-4
|
|
309
|
-
<span className="text-
|
|
318
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-2 h-4 w-4" />
|
|
319
|
+
<span className="text-fm-tertiary text-xs">
|
|
320
|
+
16px
|
|
321
|
+
</span>
|
|
310
322
|
</div>
|
|
311
323
|
<div className="text-center">
|
|
312
|
-
<MagicBookIcon className="!mx-auto mb-2 h-5 w-5
|
|
313
|
-
<span className="text-
|
|
324
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-2 h-5 w-5" />
|
|
325
|
+
<span className="text-fm-tertiary text-xs">
|
|
326
|
+
20px
|
|
327
|
+
</span>
|
|
314
328
|
</div>
|
|
315
329
|
<div className="text-center">
|
|
316
|
-
<MagicBookIcon className="!mx-auto mb-2 h-6 w-6
|
|
317
|
-
<span className="text-
|
|
330
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
|
|
331
|
+
<span className="text-fm-tertiary text-xs">
|
|
332
|
+
24px
|
|
333
|
+
</span>
|
|
318
334
|
</div>
|
|
319
335
|
<div className="text-center">
|
|
320
|
-
<MagicBookIcon className="!mx-auto mb-2 h-8 w-8
|
|
321
|
-
<span className="text-
|
|
336
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-2 h-8 w-8" />
|
|
337
|
+
<span className="text-fm-tertiary text-xs">
|
|
338
|
+
32px
|
|
339
|
+
</span>
|
|
322
340
|
</div>
|
|
323
341
|
<div className="text-center">
|
|
324
|
-
<MagicBookIcon className="!mx-auto mb-2 h-12 w-12
|
|
325
|
-
<span className="text-
|
|
342
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-2 h-12 w-12" />
|
|
343
|
+
<span className="text-fm-tertiary text-xs">
|
|
344
|
+
48px
|
|
345
|
+
</span>
|
|
326
346
|
</div>
|
|
327
347
|
</div>
|
|
328
348
|
</div>
|
|
329
349
|
|
|
330
350
|
<div className="!space-y-4">
|
|
331
|
-
<h3 className="text-lg font-semibold
|
|
351
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
332
352
|
Code Example
|
|
333
353
|
</h3>
|
|
334
|
-
<div className="rounded-lg
|
|
335
|
-
<pre className="overflow-x-auto text-sm
|
|
354
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
355
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
336
356
|
{`// Small (16px)
|
|
337
357
|
<MagicBookIcon className="h-4 w-4 " />
|
|
338
358
|
|
|
@@ -358,56 +378,56 @@ function FeatureCard() {
|
|
|
358
378
|
|
|
359
379
|
{/* Color Variations */}
|
|
360
380
|
<div className="!space-y-8">
|
|
361
|
-
<h2 className="text-center text-3xl font-bold
|
|
381
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
362
382
|
Color Variations
|
|
363
383
|
</h2>
|
|
364
384
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
365
385
|
<div className="!space-y-4">
|
|
366
|
-
<h3 className="text-lg font-semibold
|
|
386
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
367
387
|
Semantic Colors
|
|
368
388
|
</h3>
|
|
369
|
-
<div className="!space-y-4 rounded-lg border
|
|
389
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
370
390
|
<div className="flex items-center gap-4">
|
|
371
|
-
<MagicBookIcon className="h-6 w-6
|
|
391
|
+
<MagicBookIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
372
392
|
<div>
|
|
373
|
-
<div className="text-sm font-medium
|
|
393
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
374
394
|
Magic & Spells
|
|
375
395
|
</div>
|
|
376
|
-
<div className="text-
|
|
377
|
-
text-
|
|
396
|
+
<div className="text-fm-tertiary text-xs">
|
|
397
|
+
text-fm-secondary-600
|
|
378
398
|
</div>
|
|
379
399
|
</div>
|
|
380
400
|
</div>
|
|
381
401
|
<div className="flex items-center gap-4">
|
|
382
|
-
<MagicBookIcon className="h-6 w-6
|
|
402
|
+
<MagicBookIcon className="text-fm-icon-info h-6 w-6" />
|
|
383
403
|
<div>
|
|
384
|
-
<div className="text-sm font-medium
|
|
404
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
385
405
|
Knowledge & Learning
|
|
386
406
|
</div>
|
|
387
|
-
<div className="text-
|
|
388
|
-
text-
|
|
407
|
+
<div className="text-fm-tertiary text-xs">
|
|
408
|
+
text-fm-icon-info
|
|
389
409
|
</div>
|
|
390
410
|
</div>
|
|
391
411
|
</div>
|
|
392
412
|
<div className="flex items-center gap-4">
|
|
393
|
-
<MagicBookIcon className="h-6 w-6
|
|
413
|
+
<MagicBookIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
394
414
|
<div>
|
|
395
|
-
<div className="text-sm font-medium
|
|
415
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
396
416
|
Wisdom & Guides
|
|
397
417
|
</div>
|
|
398
|
-
<div className="text-
|
|
399
|
-
text-
|
|
418
|
+
<div className="text-fm-tertiary text-xs">
|
|
419
|
+
text-fm-secondary-600
|
|
400
420
|
</div>
|
|
401
421
|
</div>
|
|
402
422
|
</div>
|
|
403
423
|
<div className="flex items-center gap-4">
|
|
404
|
-
<MagicBookIcon className="h-6 w-6
|
|
424
|
+
<MagicBookIcon className="text-fm-icon-info h-6 w-6" />
|
|
405
425
|
<div>
|
|
406
|
-
<div className="text-sm font-medium
|
|
426
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
407
427
|
Documentation
|
|
408
428
|
</div>
|
|
409
|
-
<div className="text-
|
|
410
|
-
text-
|
|
429
|
+
<div className="text-fm-tertiary text-xs">
|
|
430
|
+
text-fm-icon-info
|
|
411
431
|
</div>
|
|
412
432
|
</div>
|
|
413
433
|
</div>
|
|
@@ -415,11 +435,11 @@ function FeatureCard() {
|
|
|
415
435
|
</div>
|
|
416
436
|
|
|
417
437
|
<div className="!space-y-4">
|
|
418
|
-
<h3 className="text-lg font-semibold
|
|
438
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
419
439
|
Custom Colors
|
|
420
440
|
</h3>
|
|
421
|
-
<div className="rounded-lg
|
|
422
|
-
<pre className="overflow-x-auto text-sm
|
|
441
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
442
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
423
443
|
{`// Using Tailwind classes with
|
|
424
444
|
<MagicBookIcon className="h-6 w-6 text-purple-400 " />
|
|
425
445
|
<MagicBookIcon className="h-6 w-6 text-indigo-500 " />
|
|
@@ -444,35 +464,35 @@ function FeatureCard() {
|
|
|
444
464
|
|
|
445
465
|
{/* Usage Examples */}
|
|
446
466
|
<div className="!space-y-8">
|
|
447
|
-
<h2 className="text-center text-3xl font-bold
|
|
467
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
448
468
|
Usage Examples
|
|
449
469
|
</h2>
|
|
450
470
|
|
|
451
471
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
452
472
|
{/* Learning Card */}
|
|
453
473
|
<div className="!space-y-4">
|
|
454
|
-
<h3 className="text-lg font-semibold
|
|
474
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
455
475
|
Learning Card
|
|
456
476
|
</h3>
|
|
457
477
|
<div className="!space-y-4">
|
|
458
|
-
<div className="rounded-lg border
|
|
478
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
459
479
|
<div className="flex items-start gap-4">
|
|
460
|
-
<div className="flex h-12 w-12 items-center justify-center rounded-lg border
|
|
461
|
-
<MagicBookIcon className="h-6 w-6
|
|
480
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 flex h-12 w-12 items-center justify-center rounded-lg border">
|
|
481
|
+
<MagicBookIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
462
482
|
</div>
|
|
463
483
|
<div className="flex-1">
|
|
464
|
-
<h4 className="mb-2 text-lg font-semibold
|
|
484
|
+
<h4 className="text-fm-icon-active! mb-2 text-lg font-semibold">
|
|
465
485
|
Magical Arts Guide
|
|
466
486
|
</h4>
|
|
467
|
-
<p className="text-
|
|
487
|
+
<p className="text-fm-secondary! text-sm">
|
|
468
488
|
Comprehensive guide to enchantments, spells, and
|
|
469
489
|
mystical knowledge for aspiring wizards.
|
|
470
490
|
</p>
|
|
471
491
|
</div>
|
|
472
492
|
</div>
|
|
473
493
|
</div>
|
|
474
|
-
<div className="rounded-lg
|
|
475
|
-
<pre className="overflow-x-auto text-sm
|
|
494
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
495
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
476
496
|
{`<div className="border border-white/10 bg-white/5 p-6 rounded-lg">
|
|
477
497
|
<div className="flex items-start gap-4">
|
|
478
498
|
<div className="flex h-12 w-12 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
|
|
@@ -493,7 +513,7 @@ function FeatureCard() {
|
|
|
493
513
|
|
|
494
514
|
{/* Course Sections */}
|
|
495
515
|
<div className="!space-y-4">
|
|
496
|
-
<h3 className="text-lg font-semibold
|
|
516
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
497
517
|
Course Sections
|
|
498
518
|
</h3>
|
|
499
519
|
<div className="!space-y-4">
|
|
@@ -517,7 +537,7 @@ function FeatureCard() {
|
|
|
517
537
|
].map((course, index) => (
|
|
518
538
|
<div
|
|
519
539
|
key={index}
|
|
520
|
-
className="flex items-center gap-3 rounded-lg border
|
|
540
|
+
className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3"
|
|
521
541
|
>
|
|
522
542
|
<MagicBookIcon
|
|
523
543
|
className={`h-4 w-4 ${
|
|
@@ -529,7 +549,7 @@ function FeatureCard() {
|
|
|
529
549
|
}`}
|
|
530
550
|
/>
|
|
531
551
|
<div className="flex-1">
|
|
532
|
-
<span className="text-
|
|
552
|
+
<span className="text-fm-icon-active text-sm">
|
|
533
553
|
{course.text}
|
|
534
554
|
</span>
|
|
535
555
|
</div>
|
|
@@ -547,8 +567,8 @@ function FeatureCard() {
|
|
|
547
567
|
</div>
|
|
548
568
|
))}
|
|
549
569
|
</div>
|
|
550
|
-
<div className="rounded-lg
|
|
551
|
-
<pre className="overflow-x-auto text-sm
|
|
570
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
571
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
552
572
|
{`// Course item
|
|
553
573
|
<div className="flex items-center gap-3 border border-white/10 bg-white/5 p-3 rounded-lg">
|
|
554
574
|
<MagicBookIcon className="h-4 w-4 text-purple-400 " />
|
|
@@ -566,28 +586,28 @@ function FeatureCard() {
|
|
|
566
586
|
|
|
567
587
|
{/* Documentation Section */}
|
|
568
588
|
<div className="!space-y-4">
|
|
569
|
-
<h3 className="text-lg font-semibold
|
|
589
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
570
590
|
Documentation Section
|
|
571
591
|
</h3>
|
|
572
592
|
<div className="!space-y-4">
|
|
573
|
-
<div className="
|
|
574
|
-
<div className="absolute inset-0 bg-
|
|
593
|
+
<div className="border-fm-secondary-500/20 from-fm-secondary-500/10 to-fm-icon-info/10 relative overflow-hidden rounded-lg border bg-linear-to-br p-8 text-center">
|
|
594
|
+
<div className="via-fm-secondary-500/5 absolute inset-0 bg-linear-to-r from-transparent to-transparent" />
|
|
575
595
|
<div className="relative">
|
|
576
|
-
<MagicBookIcon className="!mx-auto mb-4 h-16 w-16
|
|
577
|
-
<h2 className="mb-4 text-3xl font-bold
|
|
596
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-4 h-16 w-16" />
|
|
597
|
+
<h2 className="text-fm-icon-active! mb-4 text-3xl font-bold">
|
|
578
598
|
Magical Knowledge Base
|
|
579
599
|
</h2>
|
|
580
|
-
<p className="mb-6 text-lg
|
|
600
|
+
<p className="text-fm-secondary! mb-6 text-lg">
|
|
581
601
|
Discover ancient spells, enchantments, and mystical
|
|
582
602
|
wisdom
|
|
583
603
|
</p>
|
|
584
|
-
<button className="
|
|
604
|
+
<button className="bg-fm-secondary-500/20 text-fm-secondary-600 hover:bg-fm-secondary-500/30 rounded-lg px-6 py-3 transition-colors">
|
|
585
605
|
Explore Spells
|
|
586
606
|
</button>
|
|
587
607
|
</div>
|
|
588
608
|
</div>
|
|
589
|
-
<div className="rounded-lg
|
|
590
|
-
<pre className="overflow-x-auto text-sm
|
|
609
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
610
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
591
611
|
{`// Documentation hero section
|
|
592
612
|
<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">
|
|
593
613
|
<div className="relative">
|
|
@@ -608,11 +628,11 @@ function FeatureCard() {
|
|
|
608
628
|
|
|
609
629
|
{/* Library Navigation */}
|
|
610
630
|
<div className="!space-y-4">
|
|
611
|
-
<h3 className="text-lg font-semibold
|
|
631
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
612
632
|
Library Navigation
|
|
613
633
|
</h3>
|
|
614
634
|
<div className="!space-y-4">
|
|
615
|
-
<div className="max-w-xs rounded-lg border
|
|
635
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary max-w-xs rounded-lg border p-3">
|
|
616
636
|
{[
|
|
617
637
|
{ name: "Home", icon: "🏠", active: false },
|
|
618
638
|
{
|
|
@@ -644,13 +664,13 @@ function FeatureCard() {
|
|
|
644
664
|
)}
|
|
645
665
|
<span className="flex-1 text-sm">{item.name}</span>
|
|
646
666
|
{item.active && (
|
|
647
|
-
<div className="h-2 w-2 rounded-full
|
|
667
|
+
<div className="bg-fm-secondary-500 h-2 w-2 rounded-full"></div>
|
|
648
668
|
)}
|
|
649
669
|
</div>
|
|
650
670
|
))}
|
|
651
671
|
</div>
|
|
652
|
-
<div className="rounded-lg
|
|
653
|
-
<pre className="overflow-x-auto text-sm
|
|
672
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
673
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
654
674
|
{`// Navigation item
|
|
655
675
|
<div className="flex items-center gap-3 p-2 rounded bg-purple-500/20 text-purple-200 cursor-pointer">
|
|
656
676
|
<MagicBookIcon className="h-4 w-4 text-purple-400 " />
|
|
@@ -666,55 +686,55 @@ function FeatureCard() {
|
|
|
666
686
|
|
|
667
687
|
{/* Interactive States */}
|
|
668
688
|
<div className="!space-y-8">
|
|
669
|
-
<h2 className="text-center text-3xl font-bold
|
|
689
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
670
690
|
Interactive States & Animations
|
|
671
691
|
</h2>
|
|
672
692
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
673
693
|
<div className="!space-y-4">
|
|
674
|
-
<h3 className="text-lg font-semibold
|
|
694
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
675
695
|
Hover & Animation Effects
|
|
676
696
|
</h3>
|
|
677
|
-
<div className="!space-y-4 rounded-lg border
|
|
697
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
678
698
|
<div className="flex items-center gap-4">
|
|
679
|
-
<MagicBookIcon className="h-6 w-6
|
|
699
|
+
<MagicBookIcon className="text-fm-tertiary hover:text-fm-secondary-600 h-6 w-6 transition-colors" />
|
|
680
700
|
<div>
|
|
681
|
-
<div className="text-sm font-medium
|
|
701
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
682
702
|
Color Change
|
|
683
703
|
</div>
|
|
684
|
-
<div className="text-
|
|
685
|
-
hover:text-
|
|
704
|
+
<div className="text-fm-tertiary text-xs">
|
|
705
|
+
hover:text-fm-secondary-600
|
|
686
706
|
</div>
|
|
687
707
|
</div>
|
|
688
708
|
</div>
|
|
689
709
|
<div className="flex items-center gap-4">
|
|
690
|
-
<MagicBookIcon className="h-6 w-6
|
|
710
|
+
<MagicBookIcon className="text-fm-icon-active h-6 w-6 transition-transform hover:scale-110" />
|
|
691
711
|
<div>
|
|
692
|
-
<div className="text-sm font-medium
|
|
712
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
693
713
|
Scale Effect
|
|
694
714
|
</div>
|
|
695
|
-
<div className="text-
|
|
715
|
+
<div className="text-fm-tertiary text-xs">
|
|
696
716
|
hover:scale-110
|
|
697
717
|
</div>
|
|
698
718
|
</div>
|
|
699
719
|
</div>
|
|
700
720
|
<div className="flex items-center gap-4">
|
|
701
|
-
<MagicBookIcon className="animate-sparkle h-6 w-6
|
|
721
|
+
<MagicBookIcon className="animate-sparkle text-fm-secondary-600 h-6 w-6" />
|
|
702
722
|
<div>
|
|
703
|
-
<div className="text-sm font-medium
|
|
723
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
704
724
|
Magical Sparkle
|
|
705
725
|
</div>
|
|
706
|
-
<div className="text-
|
|
726
|
+
<div className="text-fm-tertiary text-xs">
|
|
707
727
|
animate-sparkle
|
|
708
728
|
</div>
|
|
709
729
|
</div>
|
|
710
730
|
</div>
|
|
711
731
|
<div className="flex items-center gap-4">
|
|
712
|
-
<MagicBookIcon className="animate-float h-6 w-6
|
|
732
|
+
<MagicBookIcon className="animate-float text-fm-secondary-600 h-6 w-6" />
|
|
713
733
|
<div>
|
|
714
|
-
<div className="text-sm font-medium
|
|
734
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
715
735
|
Floating Magic
|
|
716
736
|
</div>
|
|
717
|
-
<div className="text-
|
|
737
|
+
<div className="text-fm-tertiary text-xs">
|
|
718
738
|
animate-float
|
|
719
739
|
</div>
|
|
720
740
|
</div>
|
|
@@ -723,11 +743,11 @@ function FeatureCard() {
|
|
|
723
743
|
</div>
|
|
724
744
|
|
|
725
745
|
<div className="!space-y-4">
|
|
726
|
-
<h3 className="text-lg font-semibold
|
|
746
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
727
747
|
Animation Examples
|
|
728
748
|
</h3>
|
|
729
|
-
<div className="rounded-lg
|
|
730
|
-
<pre className="overflow-x-auto text-sm
|
|
749
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
750
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
731
751
|
{`// Hover effects
|
|
732
752
|
<MagicBookIcon className="h-6 w-6 text-white/60 hover:text-purple-400 transition-colors " />
|
|
733
753
|
|
|
@@ -757,64 +777,64 @@ function FeatureCard() {
|
|
|
757
777
|
|
|
758
778
|
{/* Accessibility */}
|
|
759
779
|
<div className="!space-y-8">
|
|
760
|
-
<h2 className="text-center text-3xl font-bold
|
|
780
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
761
781
|
Accessibility Features
|
|
762
782
|
</h2>
|
|
763
783
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
764
|
-
<div className="!space-y-4 rounded-lg border
|
|
765
|
-
<h3 className="text-lg font-semibold
|
|
784
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
785
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
766
786
|
✅ Built-in Features
|
|
767
787
|
</h3>
|
|
768
|
-
<ul className="!space-y-2 text-sm
|
|
769
|
-
<li className="
|
|
788
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
789
|
+
<li className="text-fm-secondary!">
|
|
770
790
|
Uses Radix UI AccessibleIcon wrapper
|
|
771
791
|
</li>
|
|
772
|
-
<li className="
|
|
792
|
+
<li className="text-fm-secondary!">
|
|
773
793
|
Provides screen reader label "Magic book icon"
|
|
774
794
|
</li>
|
|
775
|
-
<li className="
|
|
795
|
+
<li className="text-fm-secondary!">
|
|
776
796
|
Supports keyboard navigation when interactive
|
|
777
797
|
</li>
|
|
778
|
-
<li className="
|
|
798
|
+
<li className="text-fm-secondary!">
|
|
779
799
|
Maintains proper color contrast ratios
|
|
780
800
|
</li>
|
|
781
|
-
<li className="
|
|
801
|
+
<li className="text-fm-secondary!">
|
|
782
802
|
Scales with user's font size preferences
|
|
783
803
|
</li>
|
|
784
804
|
</ul>
|
|
785
805
|
</div>
|
|
786
806
|
|
|
787
|
-
<div className="!space-y-4 rounded-lg border
|
|
788
|
-
<h3 className="text-lg font-semibold
|
|
807
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
808
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
789
809
|
💡 Best Practices
|
|
790
810
|
</h3>
|
|
791
|
-
<ul className="!space-y-2 text-sm
|
|
792
|
-
<li className="
|
|
811
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
812
|
+
<li className="text-fm-secondary!">
|
|
793
813
|
Always pair with descriptive context
|
|
794
814
|
</li>
|
|
795
|
-
<li className="
|
|
815
|
+
<li className="text-fm-secondary!">
|
|
796
816
|
Use consistent colors for learning themes
|
|
797
817
|
</li>
|
|
798
|
-
<li className="
|
|
818
|
+
<li className="text-fm-secondary!">
|
|
799
819
|
Consider motion sensitivity for sparkle animations
|
|
800
820
|
</li>
|
|
801
|
-
<li className="
|
|
821
|
+
<li className="text-fm-secondary!">
|
|
802
822
|
Add focus states for interactive elements
|
|
803
823
|
</li>
|
|
804
|
-
<li className="
|
|
824
|
+
<li className="text-fm-secondary!">
|
|
805
825
|
Provide alternative text for complex contexts
|
|
806
826
|
</li>
|
|
807
827
|
</ul>
|
|
808
828
|
</div>
|
|
809
829
|
</div>
|
|
810
830
|
|
|
811
|
-
<div className="rounded-lg border
|
|
812
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
831
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
832
|
+
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
813
833
|
Learning & Knowledge Accessibility
|
|
814
834
|
</h3>
|
|
815
835
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
816
|
-
<div className="rounded-lg
|
|
817
|
-
<pre className="overflow-x-auto text-sm
|
|
836
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
837
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
818
838
|
{`// Learning button with proper ARIA
|
|
819
839
|
<button
|
|
820
840
|
aria-label="Access magical knowledge base and spellbook library"
|
|
@@ -848,13 +868,13 @@ function FeatureCard() {
|
|
|
848
868
|
</pre>
|
|
849
869
|
</div>
|
|
850
870
|
<div className="!space-y-4">
|
|
851
|
-
<p className="text-
|
|
871
|
+
<p className="text-fm-secondary! text-sm">
|
|
852
872
|
When using MagicBookIcon for learning and knowledge
|
|
853
873
|
features, provide clear context about what educational
|
|
854
874
|
content or magical knowledge users can access.
|
|
855
875
|
</p>
|
|
856
|
-
<div className="
|
|
857
|
-
<div className="flex items-center gap-2 text-sm
|
|
876
|
+
<div className="border-fm-secondary-500/20 bg-fm-secondary-500/10 rounded-lg border p-4">
|
|
877
|
+
<div className="text-fm-secondary-600 flex items-center gap-2 text-sm">
|
|
858
878
|
<MagicBookIcon className="h-4 w-4" />
|
|
859
879
|
<span>
|
|
860
880
|
Screen readers understand this represents learning
|
|
@@ -869,52 +889,60 @@ function FeatureCard() {
|
|
|
869
889
|
|
|
870
890
|
{/* Related Icons */}
|
|
871
891
|
<div className="!space-y-8">
|
|
872
|
-
<h2 className="text-center text-3xl font-bold
|
|
892
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
873
893
|
Related Icons
|
|
874
894
|
</h2>
|
|
875
895
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
876
|
-
<div className="!space-y-3 rounded-lg border
|
|
877
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
896
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
897
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
878
898
|
<span className="text-2xl">📚</span>
|
|
879
899
|
</div>
|
|
880
900
|
<div>
|
|
881
|
-
<div className="font-medium
|
|
882
|
-
|
|
901
|
+
<div className="text-fm-icon-active font-medium">
|
|
902
|
+
LibraryIcon
|
|
903
|
+
</div>
|
|
904
|
+
<div className="text-fm-tertiary text-xs">
|
|
883
905
|
Books & knowledge
|
|
884
906
|
</div>
|
|
885
907
|
</div>
|
|
886
908
|
</div>
|
|
887
|
-
<div className="!space-y-3 rounded-lg border
|
|
888
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
909
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
910
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
889
911
|
<span className="text-2xl">🎓</span>
|
|
890
912
|
</div>
|
|
891
913
|
<div>
|
|
892
|
-
<div className="font-medium
|
|
914
|
+
<div className="text-fm-icon-active font-medium">
|
|
893
915
|
EducationIcon
|
|
894
916
|
</div>
|
|
895
|
-
<div className="text-
|
|
917
|
+
<div className="text-fm-tertiary text-xs">
|
|
896
918
|
Learning & degrees
|
|
897
919
|
</div>
|
|
898
920
|
</div>
|
|
899
921
|
</div>
|
|
900
|
-
<div className="!space-y-3 rounded-lg border
|
|
901
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
922
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
923
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
902
924
|
<span className="text-2xl">🪄</span>
|
|
903
925
|
</div>
|
|
904
926
|
<div>
|
|
905
|
-
<div className="font-medium
|
|
906
|
-
|
|
927
|
+
<div className="text-fm-icon-active font-medium">
|
|
928
|
+
WandIcon
|
|
929
|
+
</div>
|
|
930
|
+
<div className="text-fm-tertiary text-xs">
|
|
907
931
|
Magic & spells
|
|
908
932
|
</div>
|
|
909
933
|
</div>
|
|
910
934
|
</div>
|
|
911
|
-
<div className="!space-y-3 rounded-lg border
|
|
912
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
935
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
936
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
913
937
|
<span className="text-2xl">📖</span>
|
|
914
938
|
</div>
|
|
915
939
|
<div>
|
|
916
|
-
<div className="font-medium
|
|
917
|
-
|
|
940
|
+
<div className="text-fm-icon-active font-medium">
|
|
941
|
+
DocumentIcon
|
|
942
|
+
</div>
|
|
943
|
+
<div className="text-fm-tertiary text-xs">
|
|
944
|
+
Documentation
|
|
945
|
+
</div>
|
|
918
946
|
</div>
|
|
919
947
|
</div>
|
|
920
948
|
</div>
|
|
@@ -922,15 +950,15 @@ function FeatureCard() {
|
|
|
922
950
|
</div>
|
|
923
951
|
|
|
924
952
|
{/* Footer */}
|
|
925
|
-
<div className="border-
|
|
953
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
926
954
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
927
955
|
<div className="!space-y-4 text-center">
|
|
928
|
-
<p className="
|
|
956
|
+
<p className="text-fm-tertiary!">
|
|
929
957
|
MagicBookIcon is part of the Aural UI icon library, built
|
|
930
958
|
for representing magical knowledge, learning, and
|
|
931
959
|
educational content.
|
|
932
960
|
</p>
|
|
933
|
-
<p className="text-
|
|
961
|
+
<p className="text-fm-placeholder! text-sm">
|
|
934
962
|
All icons use Radix UI's AccessibleIcon for screen reader
|
|
935
963
|
compatibility and follow WCAG guidelines for learning
|
|
936
964
|
applications.
|
|
@@ -976,20 +1004,20 @@ const storyParameters = {
|
|
|
976
1004
|
backgrounds: {
|
|
977
1005
|
default: "dark",
|
|
978
1006
|
values: [
|
|
979
|
-
{ name: "dark", value: "
|
|
980
|
-
{ name: "darker", value: "
|
|
1007
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
1008
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
981
1009
|
],
|
|
982
1010
|
},
|
|
983
1011
|
}
|
|
984
1012
|
|
|
985
1013
|
export const Default: Story = {
|
|
986
1014
|
args: {
|
|
987
|
-
className: "h-6 w-6 text-
|
|
1015
|
+
className: "h-6 w-6 text-fm-secondary-600 ",
|
|
988
1016
|
withAccessibility: true,
|
|
989
1017
|
},
|
|
990
1018
|
parameters: storyParameters,
|
|
991
1019
|
render: (args) => (
|
|
992
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1020
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-32 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
993
1021
|
<MagicBookIcon {...args} />
|
|
994
1022
|
</div>
|
|
995
1023
|
),
|
|
@@ -1006,30 +1034,30 @@ export const SizeVariations: Story = {
|
|
|
1006
1034
|
},
|
|
1007
1035
|
},
|
|
1008
1036
|
render: () => (
|
|
1009
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
1037
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
|
|
1010
1038
|
<div className="text-center">
|
|
1011
|
-
<MagicBookIcon className="!mx-auto mb-2 h-3 w-3
|
|
1012
|
-
<span className="text-
|
|
1039
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-2 h-3 w-3" />
|
|
1040
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
1013
1041
|
</div>
|
|
1014
1042
|
<div className="text-center">
|
|
1015
|
-
<MagicBookIcon className="!mx-auto mb-2 h-4 w-4
|
|
1016
|
-
<span className="text-
|
|
1043
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-2 h-4 w-4" />
|
|
1044
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
1017
1045
|
</div>
|
|
1018
1046
|
<div className="text-center">
|
|
1019
|
-
<MagicBookIcon className="!mx-auto mb-2 h-5 w-5
|
|
1020
|
-
<span className="text-
|
|
1047
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-2 h-5 w-5" />
|
|
1048
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
1021
1049
|
</div>
|
|
1022
1050
|
<div className="text-center">
|
|
1023
|
-
<MagicBookIcon className="!mx-auto mb-2 h-6 w-6
|
|
1024
|
-
<span className="text-
|
|
1051
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
|
|
1052
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
1025
1053
|
</div>
|
|
1026
1054
|
<div className="text-center">
|
|
1027
|
-
<MagicBookIcon className="!mx-auto mb-2 h-8 w-8
|
|
1028
|
-
<span className="text-
|
|
1055
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-2 h-8 w-8" />
|
|
1056
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
1029
1057
|
</div>
|
|
1030
1058
|
<div className="text-center">
|
|
1031
|
-
<MagicBookIcon className="!mx-auto mb-2 h-12 w-12
|
|
1032
|
-
<span className="text-
|
|
1059
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-2 h-12 w-12" />
|
|
1060
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
1033
1061
|
</div>
|
|
1034
1062
|
</div>
|
|
1035
1063
|
),
|
|
@@ -1046,34 +1074,42 @@ export const ColorVariations: Story = {
|
|
|
1046
1074
|
},
|
|
1047
1075
|
},
|
|
1048
1076
|
render: () => (
|
|
1049
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
1077
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-linear-to-br p-8 md:grid-cols-4">
|
|
1050
1078
|
<div className="text-center">
|
|
1051
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1052
|
-
<MagicBookIcon className="h-8 w-8
|
|
1079
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1080
|
+
<MagicBookIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
1081
|
+
</div>
|
|
1082
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
1083
|
+
Magic & Spells
|
|
1084
|
+
</div>
|
|
1085
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
1086
|
+
text-fm-secondary-600
|
|
1053
1087
|
</div>
|
|
1054
|
-
<div className="text-sm font-medium text-white">Magic & Spells</div>
|
|
1055
|
-
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
1056
1088
|
</div>
|
|
1057
1089
|
<div className="text-center">
|
|
1058
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1059
|
-
<MagicBookIcon className="h-8 w-8
|
|
1090
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1091
|
+
<MagicBookIcon className="text-fm-icon-info h-8 w-8" />
|
|
1060
1092
|
</div>
|
|
1061
|
-
<div className="text-sm font-medium
|
|
1062
|
-
<div className="text-
|
|
1093
|
+
<div className="text-fm-icon-active text-sm font-medium">Knowledge</div>
|
|
1094
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1063
1095
|
</div>
|
|
1064
1096
|
<div className="text-center">
|
|
1065
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1066
|
-
<MagicBookIcon className="h-8 w-8
|
|
1097
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1098
|
+
<MagicBookIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
1099
|
+
</div>
|
|
1100
|
+
<div className="text-fm-icon-active text-sm font-medium">Wisdom</div>
|
|
1101
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
1102
|
+
text-fm-secondary-600
|
|
1067
1103
|
</div>
|
|
1068
|
-
<div className="text-sm font-medium text-white">Wisdom</div>
|
|
1069
|
-
<div className="text-xs text-violet-400">text-violet-400</div>
|
|
1070
1104
|
</div>
|
|
1071
1105
|
<div className="text-center">
|
|
1072
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1073
|
-
<MagicBookIcon className="h-8 w-8
|
|
1106
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1107
|
+
<MagicBookIcon className="text-fm-icon-info h-8 w-8" />
|
|
1074
1108
|
</div>
|
|
1075
|
-
<div className="text-sm font-medium
|
|
1076
|
-
|
|
1109
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
1110
|
+
Documentation
|
|
1111
|
+
</div>
|
|
1112
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1077
1113
|
</div>
|
|
1078
1114
|
</div>
|
|
1079
1115
|
),
|
|
@@ -1090,20 +1126,22 @@ export const UsageExamples: Story = {
|
|
|
1090
1126
|
},
|
|
1091
1127
|
},
|
|
1092
1128
|
render: () => (
|
|
1093
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
1129
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
1094
1130
|
{/* Learning Card */}
|
|
1095
1131
|
<div className="!space-y-2">
|
|
1096
|
-
<h3 className="text-sm font-medium
|
|
1097
|
-
|
|
1132
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1133
|
+
Learning Card
|
|
1134
|
+
</h3>
|
|
1135
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
1098
1136
|
<div className="flex items-start gap-4">
|
|
1099
|
-
<div className="flex h-12 w-12 items-center justify-center rounded-lg border
|
|
1100
|
-
<MagicBookIcon className="h-6 w-6
|
|
1137
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 flex h-12 w-12 items-center justify-center rounded-lg border">
|
|
1138
|
+
<MagicBookIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
1101
1139
|
</div>
|
|
1102
1140
|
<div className="flex-1">
|
|
1103
|
-
<h4 className="mb-2 text-lg font-semibold
|
|
1141
|
+
<h4 className="text-fm-icon-active! mb-2 text-lg font-semibold">
|
|
1104
1142
|
Magical Arts Guide
|
|
1105
1143
|
</h4>
|
|
1106
|
-
<p className="text-
|
|
1144
|
+
<p className="text-fm-secondary! text-sm">
|
|
1107
1145
|
Comprehensive guide to enchantments, spells, and mystical
|
|
1108
1146
|
knowledge.
|
|
1109
1147
|
</p>
|
|
@@ -1114,7 +1152,9 @@ export const UsageExamples: Story = {
|
|
|
1114
1152
|
|
|
1115
1153
|
{/* Course Sections */}
|
|
1116
1154
|
<div className="!space-y-2">
|
|
1117
|
-
<h3 className="text-sm font-medium
|
|
1155
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1156
|
+
Course Sections
|
|
1157
|
+
</h3>
|
|
1118
1158
|
<div className="!space-y-3">
|
|
1119
1159
|
{[
|
|
1120
1160
|
{
|
|
@@ -1135,7 +1175,7 @@ export const UsageExamples: Story = {
|
|
|
1135
1175
|
].map((course, index) => (
|
|
1136
1176
|
<div
|
|
1137
1177
|
key={index}
|
|
1138
|
-
className="flex items-center gap-3 rounded-lg border
|
|
1178
|
+
className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3"
|
|
1139
1179
|
>
|
|
1140
1180
|
<MagicBookIcon
|
|
1141
1181
|
className={`h-4 w-4 ${
|
|
@@ -1147,7 +1187,9 @@ export const UsageExamples: Story = {
|
|
|
1147
1187
|
}`}
|
|
1148
1188
|
/>
|
|
1149
1189
|
<div className="flex-1">
|
|
1150
|
-
<span className="text-
|
|
1190
|
+
<span className="text-fm-icon-active text-sm">
|
|
1191
|
+
{course.text}
|
|
1192
|
+
</span>
|
|
1151
1193
|
</div>
|
|
1152
1194
|
<div
|
|
1153
1195
|
className={`rounded px-2 py-1 text-xs ${
|
|
@@ -1167,19 +1209,19 @@ export const UsageExamples: Story = {
|
|
|
1167
1209
|
|
|
1168
1210
|
{/* Documentation Hero */}
|
|
1169
1211
|
<div className="!space-y-2">
|
|
1170
|
-
<h3 className="text-sm font-medium
|
|
1212
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1171
1213
|
Documentation Section
|
|
1172
1214
|
</h3>
|
|
1173
|
-
<div className="
|
|
1215
|
+
<div className="border-fm-secondary-500/20 from-fm-secondary-500/10 to-fm-icon-info/10 relative overflow-hidden rounded-lg border bg-linear-to-br p-8 text-center">
|
|
1174
1216
|
<div className="relative">
|
|
1175
|
-
<MagicBookIcon className="!mx-auto mb-4 h-16 w-16
|
|
1176
|
-
<h2 className="mb-4 text-3xl font-bold
|
|
1217
|
+
<MagicBookIcon className="text-fm-secondary-600 !mx-auto mb-4 h-16 w-16" />
|
|
1218
|
+
<h2 className="text-fm-icon-active! mb-4 text-3xl font-bold">
|
|
1177
1219
|
Magical Knowledge Base
|
|
1178
1220
|
</h2>
|
|
1179
|
-
<p className="mb-6 text-lg
|
|
1221
|
+
<p className="text-fm-secondary! mb-6 text-lg">
|
|
1180
1222
|
Discover ancient spells, enchantments, and mystical wisdom
|
|
1181
1223
|
</p>
|
|
1182
|
-
<button className="
|
|
1224
|
+
<button className="bg-fm-secondary-500/20 text-fm-secondary-600 hover:bg-fm-secondary-500/30 rounded-lg px-6 py-3 transition-colors">
|
|
1183
1225
|
Explore Spells
|
|
1184
1226
|
</button>
|
|
1185
1227
|
</div>
|
|
@@ -1200,27 +1242,27 @@ export const InteractiveStates: Story = {
|
|
|
1200
1242
|
},
|
|
1201
1243
|
},
|
|
1202
1244
|
render: () => (
|
|
1203
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
1245
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
1204
1246
|
<div className="!space-y-4">
|
|
1205
|
-
<h3 className="text-sm font-medium
|
|
1247
|
+
<h3 className="text-fm-secondary text-sm font-medium">
|
|
1206
1248
|
Hover & Animation Effects
|
|
1207
1249
|
</h3>
|
|
1208
1250
|
<div className="flex gap-8">
|
|
1209
1251
|
<div className="flex flex-col items-center gap-2">
|
|
1210
|
-
<MagicBookIcon className="h-8 w-8
|
|
1211
|
-
<span className="text-
|
|
1252
|
+
<MagicBookIcon className="text-fm-tertiary hover:text-fm-secondary-600 h-8 w-8 transition-colors" />
|
|
1253
|
+
<span className="text-fm-tertiary text-xs">Color Change</span>
|
|
1212
1254
|
</div>
|
|
1213
1255
|
<div className="flex flex-col items-center gap-2">
|
|
1214
|
-
<MagicBookIcon className="h-8 w-8
|
|
1215
|
-
<span className="text-
|
|
1256
|
+
<MagicBookIcon className="text-fm-icon-active h-8 w-8 transition-transform hover:scale-110" />
|
|
1257
|
+
<span className="text-fm-tertiary text-xs">Scale Up</span>
|
|
1216
1258
|
</div>
|
|
1217
1259
|
<div className="flex flex-col items-center gap-2">
|
|
1218
|
-
<MagicBookIcon className="animate-sparkle h-8 w-8
|
|
1219
|
-
<span className="text-
|
|
1260
|
+
<MagicBookIcon className="animate-sparkle text-fm-secondary-600 h-8 w-8" />
|
|
1261
|
+
<span className="text-fm-tertiary text-xs">Sparkle</span>
|
|
1220
1262
|
</div>
|
|
1221
1263
|
<div className="flex flex-col items-center gap-2">
|
|
1222
|
-
<MagicBookIcon className="animate-float h-8 w-8
|
|
1223
|
-
<span className="text-
|
|
1264
|
+
<MagicBookIcon className="animate-float text-fm-secondary-600 h-8 w-8" />
|
|
1265
|
+
<span className="text-fm-tertiary text-xs">Float</span>
|
|
1224
1266
|
</div>
|
|
1225
1267
|
</div>
|
|
1226
1268
|
</div>
|
|
@@ -1241,11 +1283,11 @@ export const Playground: Story = {
|
|
|
1241
1283
|
args: {
|
|
1242
1284
|
width: 32,
|
|
1243
1285
|
height: 32,
|
|
1244
|
-
className: "text-
|
|
1286
|
+
className: "text-fm-secondary-600 ",
|
|
1245
1287
|
},
|
|
1246
1288
|
render: (args) => (
|
|
1247
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1248
|
-
<div className="rounded-lg border
|
|
1289
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
1290
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
1249
1291
|
<MagicBookIcon {...args} />
|
|
1250
1292
|
</div>
|
|
1251
1293
|
</div>
|