aural-ui 3.0.7 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1199
- package/dist/components/avatar/Avatar.stories.tsx +235 -237
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -620
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +533 -856
- package/dist/components/dialog/Dialog.stories.tsx +505 -949
- package/dist/components/divider/Divider.stories.tsx +265 -502
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -993
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1018
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1221
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +485 -822
- package/dist/components/marquee/Marquee.stories.tsx +356 -694
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -410
- package/dist/components/overlay/Overlay.stories.tsx +452 -818
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +484 -873
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +496 -752
- package/dist/components/scroll-area/ScrollArea.stories.tsx +384 -1006
- package/dist/components/search/Search.stories.tsx +314 -575
- package/dist/components/select/Select.stories.tsx +684 -787
- package/dist/components/sheet/Sheet.stories.tsx +671 -936
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +384 -737
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -914
- package/dist/components/tabs/Tabs.stories.tsx +459 -1400
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -148
- package/dist/components/toast/Toast.stories.tsx +452 -1333
- package/dist/components/toggle/Toggle.stories.tsx +488 -909
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1372
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +226 -1013
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +109 -929
- package/dist/icons/all-icons.tsx +124 -87
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +140 -971
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +148 -888
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +135 -1019
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +137 -953
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +138 -997
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +136 -942
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +148 -1092
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +146 -1211
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +126 -615
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +144 -1164
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +167 -985
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +122 -1179
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +124 -1168
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +119 -850
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +112 -1213
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +117 -934
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +160 -961
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +163 -961
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +144 -942
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +129 -966
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +147 -964
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +145 -975
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +150 -1142
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +114 -461
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +124 -1322
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +117 -1318
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +114 -903
- package/dist/icons/command-icon/CommandIcon.stories.tsx +127 -1042
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +123 -962
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +147 -999
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +139 -960
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +126 -820
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +124 -1031
- package/dist/icons/email-icon/EmailIcon.stories.tsx +115 -936
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +112 -1111
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +144 -1025
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +143 -1036
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +127 -1011
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +126 -1056
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +125 -614
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +119 -1050
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +169 -989
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +115 -1145
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +115 -1122
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +130 -313
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +145 -940
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +119 -1174
- package/dist/icons/head-icon/HeadIcon.stories.tsx +111 -916
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +120 -1019
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +119 -683
- package/dist/icons/image-icon/ImageIcon.stories.tsx +105 -1121
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +111 -1192
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +136 -1256
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +159 -962
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +161 -1385
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +124 -972
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +119 -948
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +119 -942
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +108 -1215
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +154 -1517
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +110 -1188
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +119 -678
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +123 -1184
- package/dist/icons/message-icon/MessageIcon.stories.tsx +114 -538
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +116 -1158
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +120 -536
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +109 -1184
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +115 -1134
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +119 -971
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +111 -1100
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +119 -1101
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +109 -1111
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +122 -684
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +113 -954
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +112 -877
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +113 -1000
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +115 -1070
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +115 -978
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +106 -1093
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +107 -829
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +102 -469
- package/dist/icons/search-icon/SearchIcon.stories.tsx +111 -1124
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +107 -970
- package/dist/icons/share-icon/ShareIcon.stories.tsx +120 -1025
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +117 -931
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +137 -1104
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +172 -982
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +164 -983
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +105 -958
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +158 -580
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +158 -587
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +146 -682
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +124 -904
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +112 -964
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +116 -852
- package/dist/icons/sun-icon/SunIcon.stories.tsx +120 -831
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +116 -950
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +123 -980
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +156 -1427
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +146 -1142
- package/dist/icons/tick-icon/TickIcon.stories.tsx +145 -1276
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +108 -933
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +157 -1402
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +115 -889
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +118 -984
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +125 -1049
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +123 -1356
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +110 -1171
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +112 -1093
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +115 -1087
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +122 -1046
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +161 -936
- 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
|
@@ -1,464 +1,100 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { BubbleSparkleIcon } from "src/ui/icons/bubble-sparkle-icon"
|
|
5
|
+
import { EditBigIcon } from "src/ui/icons/edit-big-icon"
|
|
6
|
+
import { MagicBookIcon } from "src/ui/icons/magic-book-icon"
|
|
7
|
+
import { PencilIcon } from "src/ui/icons/pencil-icon"
|
|
8
|
+
import {
|
|
9
|
+
IconColorVariations,
|
|
10
|
+
IconDefaultCanvas,
|
|
11
|
+
IconPlaygroundCanvas,
|
|
12
|
+
IconSizeVariations,
|
|
13
|
+
IconUsageCanvas,
|
|
14
|
+
IconUsageSection,
|
|
15
|
+
} from "src/ui/story-spec/icons/icon-story-canvas"
|
|
16
|
+
import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
|
|
17
|
+
|
|
4
18
|
import { MagicEditIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof MagicEditIcon> = {
|
|
7
21
|
title: "Icons/MagicEditIcon",
|
|
8
22
|
component: MagicEditIcon,
|
|
9
23
|
parameters: {
|
|
10
|
-
layout: "
|
|
24
|
+
layout: "fullscreen",
|
|
11
25
|
backgrounds: {
|
|
12
26
|
default: "dark",
|
|
13
27
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
28
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
29
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
30
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
31
|
],
|
|
18
32
|
},
|
|
19
33
|
docs: {
|
|
20
|
-
description: {
|
|
21
|
-
component:
|
|
22
|
-
"A magic edit icon with sparkle elements representing AI-powered editing, content enhancement, and magical transformations.",
|
|
23
|
-
},
|
|
24
|
-
canvas: {
|
|
25
|
-
sourceState: "shown",
|
|
26
|
-
},
|
|
27
34
|
page: () => (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
padding: 0 !important;
|
|
40
|
-
margin: 0 !important;
|
|
41
|
-
background: transparent !important;
|
|
42
|
-
}
|
|
43
|
-
.docs-story {
|
|
44
|
-
background: transparent !important;
|
|
45
|
-
}
|
|
46
|
-
.sbdocs {
|
|
47
|
-
background: transparent !important;
|
|
48
|
-
}
|
|
49
|
-
body {
|
|
50
|
-
background: #0a0a0a !important;
|
|
51
|
-
}
|
|
52
|
-
#storybook-docs {
|
|
53
|
-
background: #0a0a0a !important;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-preview {
|
|
56
|
-
background: transparent !important;
|
|
57
|
-
border: none !important;
|
|
58
|
-
}
|
|
59
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
60
|
-
color: white !important;
|
|
61
|
-
}
|
|
62
|
-
.sbdocs-p, .sbdocs-li {
|
|
63
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
64
|
-
}
|
|
65
|
-
.sbdocs-code {
|
|
66
|
-
background: rgba(255, 255, 255, 0.1) !important;
|
|
67
|
-
color: rgba(168, 85, 247, 1) !important;
|
|
68
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
69
|
-
}
|
|
70
|
-
.sbdocs-pre {
|
|
71
|
-
background: rgba(0, 0, 0, 0.4) !important;
|
|
72
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
73
|
-
}
|
|
74
|
-
.sbdocs-table {
|
|
75
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
76
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
77
|
-
}
|
|
78
|
-
.sbdocs-table th {
|
|
79
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
80
|
-
color: white !important;
|
|
81
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
82
|
-
}
|
|
83
|
-
.sbdocs-table td {
|
|
84
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
85
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
|
|
86
|
-
}
|
|
87
|
-
`}
|
|
88
|
-
</style>
|
|
89
|
-
|
|
90
|
-
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-purple-900/20 to-gray-900">
|
|
91
|
-
{/* Header */}
|
|
92
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
93
|
-
<div className="absolute inset-0 bg-gradient-to-r from-purple-500/10 via-transparent to-pink-500/10" />
|
|
94
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
95
|
-
<div className="!space-y-6 text-center">
|
|
96
|
-
<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-pink-500/20">
|
|
97
|
-
<MagicEditIcon className="h-12 w-12 text-purple-400" />
|
|
98
|
-
</div>
|
|
99
|
-
<h1 className="text-5xl font-bold !text-white">
|
|
100
|
-
MagicEditIcon
|
|
101
|
-
</h1>
|
|
102
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
103
|
-
A magic edit icon with sparkle elements representing
|
|
104
|
-
AI-powered editing, content enhancement, and magical
|
|
105
|
-
transformations. Perfect for AI tools, content editors, and
|
|
106
|
-
enhancement features.
|
|
107
|
-
</p>
|
|
108
|
-
|
|
109
|
-
{/* Stats */}
|
|
110
|
-
<div className="mx-auto flex items-center justify-center gap-8">
|
|
111
|
-
<div className="text-center">
|
|
112
|
-
<div className="text-3xl font-bold text-purple-300">
|
|
113
|
-
Magic
|
|
114
|
-
</div>
|
|
115
|
-
<div className="text-sm text-white/80">AI-powered</div>
|
|
116
|
-
</div>
|
|
117
|
-
<div className="h-8 w-px bg-white/20" />
|
|
118
|
-
<div className="text-center">
|
|
119
|
-
<div className="text-3xl font-bold text-pink-300">
|
|
120
|
-
Edit
|
|
121
|
-
</div>
|
|
122
|
-
<div className="text-sm text-white/80">
|
|
123
|
-
Content editing
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
<div className="h-8 w-px bg-white/20" />
|
|
127
|
-
<div className="text-center">
|
|
128
|
-
<div className="text-3xl font-bold text-blue-300">
|
|
129
|
-
Accessible
|
|
130
|
-
</div>
|
|
131
|
-
<div className="text-sm text-white/80">
|
|
132
|
-
Screen reader support
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
|
|
140
|
-
{/* Content */}
|
|
141
|
-
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
142
|
-
{/* Features */}
|
|
143
|
-
<div className="!space-y-8">
|
|
144
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
145
|
-
Key Features
|
|
146
|
-
</h3>
|
|
147
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
148
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
149
|
-
<div className="text-3xl">✨</div>
|
|
150
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
151
|
-
Magic Edit
|
|
152
|
-
</h4>
|
|
153
|
-
<p className="text-sm !text-white/80">
|
|
154
|
-
AI-powered editing with sparkle elements
|
|
155
|
-
</p>
|
|
156
|
-
</div>
|
|
157
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
158
|
-
<div className="text-3xl">✏️</div>
|
|
159
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
160
|
-
Content Enhancement
|
|
161
|
-
</h4>
|
|
162
|
-
<p className="text-sm !text-white/80">
|
|
163
|
-
Transform and enhance content
|
|
164
|
-
</p>
|
|
165
|
-
</div>
|
|
166
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
167
|
-
<div className="text-3xl">♿</div>
|
|
168
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
169
|
-
Accessibility
|
|
170
|
-
</h4>
|
|
171
|
-
<p className="text-sm !text-white/80">
|
|
172
|
-
Built with screen reader support
|
|
173
|
-
</p>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
</div>
|
|
177
|
-
|
|
178
|
-
{/* API Reference */}
|
|
179
|
-
<div className="!space-y-8">
|
|
180
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
181
|
-
API Reference
|
|
182
|
-
</h3>
|
|
183
|
-
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
184
|
-
<div className="bg-white/5 p-4">
|
|
185
|
-
<h4 className="text-lg font-semibold !text-white">Props</h4>
|
|
186
|
-
</div>
|
|
187
|
-
<table className="!my-0 w-full">
|
|
188
|
-
<thead className="bg-white/5">
|
|
189
|
-
<tr className="border-b border-white/10">
|
|
190
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
191
|
-
Prop
|
|
192
|
-
</th>
|
|
193
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
194
|
-
Type
|
|
195
|
-
</th>
|
|
196
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
197
|
-
Default
|
|
198
|
-
</th>
|
|
199
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
200
|
-
Description
|
|
201
|
-
</th>
|
|
202
|
-
</tr>
|
|
203
|
-
</thead>
|
|
204
|
-
<tbody>
|
|
205
|
-
{" "}
|
|
206
|
-
<tr className="!bg-black/10">
|
|
207
|
-
<td className="px-6 py-4 font-mono text-sm !text-purple-300">
|
|
208
|
-
withAccessibility
|
|
209
|
-
</td>
|
|
210
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
-
boolean
|
|
212
|
-
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
214
|
-
true
|
|
215
|
-
</td>
|
|
216
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
217
|
-
Whether to wrap the icon with accessibility feature
|
|
218
|
-
</td>
|
|
219
|
-
</tr>
|
|
220
|
-
</tbody>
|
|
221
|
-
</table>
|
|
222
|
-
</div>
|
|
223
|
-
</div>
|
|
224
|
-
|
|
225
|
-
{/* Usage Examples */}
|
|
226
|
-
<div className="!space-y-8">
|
|
227
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
228
|
-
Usage Examples
|
|
229
|
-
</h3>
|
|
230
|
-
|
|
231
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
232
|
-
<div className="space-y-4">
|
|
233
|
-
<h4 className="text-lg font-semibold !text-purple-300">
|
|
234
|
-
Basic Usage
|
|
235
|
-
</h4>
|
|
236
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
237
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
238
|
-
{`import { MagicEditIcon } from "@/components/ui/icons/magic-edit-icon"
|
|
239
|
-
|
|
240
|
-
function MagicEditButton() {
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="positive"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "AI Edit", description: "AI-enhanced editing action" },
|
|
39
|
+
{ title: "Smart Rewrite", description: "Rephrase with AI assist" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { MagicEditIcon } from "src/ui/icons/magic-edit-icon"
|
|
44
|
+
|
|
45
|
+
function AIEditButton() {
|
|
241
46
|
return (
|
|
242
47
|
<button className="flex items-center gap-2">
|
|
243
|
-
<MagicEditIcon className="h-
|
|
244
|
-
<span>
|
|
48
|
+
<MagicEditIcon className="h-5 w-5 text-fm-icon-positive" />
|
|
49
|
+
<span>AI Edit</span>
|
|
245
50
|
</button>
|
|
246
51
|
)
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
<span className="text-xs text-white/60">12px</span>
|
|
282
|
-
</div>
|
|
283
|
-
<div className="text-center">
|
|
284
|
-
<MagicEditIcon className="!mx-auto mb-2 h-4 w-4 text-purple-400" />
|
|
285
|
-
<span className="text-xs text-white/60">16px</span>
|
|
286
|
-
</div>
|
|
287
|
-
<div className="text-center">
|
|
288
|
-
<MagicEditIcon className="!mx-auto mb-2 h-5 w-5 text-purple-400" />
|
|
289
|
-
<span className="text-xs text-white/60">20px</span>
|
|
290
|
-
</div>
|
|
291
|
-
<div className="text-center">
|
|
292
|
-
<MagicEditIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
|
|
293
|
-
<span className="text-xs text-white/60">24px</span>
|
|
294
|
-
</div>
|
|
295
|
-
<div className="text-center">
|
|
296
|
-
<MagicEditIcon className="!mx-auto mb-2 h-8 w-8 text-purple-400" />
|
|
297
|
-
<span className="text-xs text-white/60">32px</span>
|
|
298
|
-
</div>
|
|
299
|
-
<div className="text-center">
|
|
300
|
-
<MagicEditIcon className="!mx-auto mb-2 h-12 w-12 text-purple-400" />
|
|
301
|
-
<span className="text-xs text-white/60">48px</span>
|
|
302
|
-
</div>
|
|
303
|
-
</div>
|
|
304
|
-
</div>
|
|
305
|
-
|
|
306
|
-
<div className="!space-y-4">
|
|
307
|
-
<h3 className="text-lg font-semibold !text-purple-300">
|
|
308
|
-
Code Example
|
|
309
|
-
</h3>
|
|
310
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
311
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
312
|
-
{`// Small (16px)
|
|
313
|
-
<MagicEditIcon className="h-4 w-4 text-purple-400" />
|
|
314
|
-
|
|
315
|
-
// Medium (24px)
|
|
316
|
-
<MagicEditIcon className="h-6 w-6 text-purple-400" />
|
|
317
|
-
|
|
318
|
-
// Large (32px)
|
|
319
|
-
<MagicEditIcon className="h-8 w-8 text-purple-400" />
|
|
320
|
-
|
|
321
|
-
// Custom size with color
|
|
322
|
-
<MagicEditIcon
|
|
323
|
-
width={40}
|
|
324
|
-
height={40}
|
|
325
|
-
className="text-purple-400"
|
|
326
|
-
/>`}
|
|
327
|
-
</pre>
|
|
328
|
-
</div>
|
|
329
|
-
</div>
|
|
330
|
-
</div>
|
|
331
|
-
</div>
|
|
332
|
-
</div>
|
|
333
|
-
</div>
|
|
334
|
-
|
|
335
|
-
{/* Common Use Cases */}
|
|
336
|
-
<div className="!space-y-8">
|
|
337
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
338
|
-
Common Use Cases
|
|
339
|
-
</h3>
|
|
340
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
341
|
-
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
342
|
-
<div className="text-2xl">✨</div>
|
|
343
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
344
|
-
AI Editing
|
|
345
|
-
</h4>
|
|
346
|
-
<p className="text-sm !text-white/80">
|
|
347
|
-
AI-powered content editing tools
|
|
348
|
-
</p>
|
|
349
|
-
</div>
|
|
350
|
-
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
351
|
-
<div className="text-2xl">🎨</div>
|
|
352
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
353
|
-
Content Enhancement
|
|
354
|
-
</h4>
|
|
355
|
-
<p className="text-sm !text-white/80">
|
|
356
|
-
Transform and enhance content
|
|
357
|
-
</p>
|
|
358
|
-
</div>
|
|
359
|
-
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
360
|
-
<div className="text-2xl">🔮</div>
|
|
361
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
362
|
-
Magic Tools
|
|
363
|
-
</h4>
|
|
364
|
-
<p className="text-sm !text-white/80">
|
|
365
|
-
Special editing features
|
|
366
|
-
</p>
|
|
367
|
-
</div>
|
|
368
|
-
</div>
|
|
369
|
-
</div>
|
|
370
|
-
|
|
371
|
-
{/* Best Practices */}
|
|
372
|
-
<div className="!space-y-8">
|
|
373
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
374
|
-
Best Practices
|
|
375
|
-
</h3>
|
|
376
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
377
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
378
|
-
<h4 className="text-lg font-semibold !text-emerald-300">
|
|
379
|
-
✅ Do
|
|
380
|
-
</h4>
|
|
381
|
-
<ul className="space-y-2 text-sm !text-white/80">
|
|
382
|
-
<li className="!text-white/80">
|
|
383
|
-
Use appropriate sizes for different contexts
|
|
384
|
-
</li>
|
|
385
|
-
<li className="!text-white/80">
|
|
386
|
-
Choose colors that match your UI theme
|
|
387
|
-
</li>
|
|
388
|
-
<li className="!text-white/80">
|
|
389
|
-
Provide clear labels for icon buttons
|
|
390
|
-
</li>
|
|
391
|
-
<li className="!text-white/80">
|
|
392
|
-
Use consistent styling across your app
|
|
393
|
-
</li>
|
|
394
|
-
<li className="!text-white/80">
|
|
395
|
-
Consider accessibility in all implementations
|
|
396
|
-
</li>
|
|
397
|
-
</ul>
|
|
398
|
-
</div>
|
|
399
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
400
|
-
<h4 className="text-lg font-semibold !text-red-300">
|
|
401
|
-
❌ Don't
|
|
402
|
-
</h4>
|
|
403
|
-
<ul className="space-y-2 text-sm !text-white/80">
|
|
404
|
-
<li className="!text-white/80">
|
|
405
|
-
Use multiple icon styles in the same view
|
|
406
|
-
</li>
|
|
407
|
-
<li className="!text-white/80">
|
|
408
|
-
Overuse the icon in navigation
|
|
409
|
-
</li>
|
|
410
|
-
<li className="!text-white/80">
|
|
411
|
-
Use inappropriate sizes for the context
|
|
412
|
-
</li>
|
|
413
|
-
<li className="!text-white/80">
|
|
414
|
-
Forget to add hover states
|
|
415
|
-
</li>
|
|
416
|
-
<li className="!text-white/80">
|
|
417
|
-
Ignore accessibility requirements
|
|
418
|
-
</li>
|
|
419
|
-
</ul>
|
|
420
|
-
</div>
|
|
421
|
-
</div>
|
|
422
|
-
</div>
|
|
423
|
-
</div>
|
|
424
|
-
|
|
425
|
-
{/* Footer */}
|
|
426
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
427
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
428
|
-
<div className="!space-y-4 text-center">
|
|
429
|
-
<p className="!text-white/60">
|
|
430
|
-
MagicEditIcon is part of the Aural UI icon library, designed
|
|
431
|
-
for AI-powered editing and content enhancement interfaces.
|
|
432
|
-
</p>
|
|
433
|
-
<p className="text-sm !text-white/40">
|
|
434
|
-
Perfect for AI tools, content editors, enhancement features,
|
|
435
|
-
and any interface requiring magical editing representation.
|
|
436
|
-
</p>
|
|
437
|
-
</div>
|
|
438
|
-
</div>
|
|
439
|
-
</div>
|
|
440
|
-
</div>
|
|
441
|
-
</>
|
|
52
|
+
}`,
|
|
53
|
+
livePreview: (
|
|
54
|
+
<button className="flex items-center gap-2">
|
|
55
|
+
<MagicEditIcon className="text-fm-icon-positive h-6 w-6" />
|
|
56
|
+
</button>
|
|
57
|
+
),
|
|
58
|
+
}}
|
|
59
|
+
relatedIcons={[
|
|
60
|
+
{
|
|
61
|
+
name: "MagicBookIcon",
|
|
62
|
+
description: "AI-assisted story creation",
|
|
63
|
+
icon: MagicBookIcon,
|
|
64
|
+
accentToken: "info",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "EditBigIcon",
|
|
68
|
+
description: "Edit / modify content icon",
|
|
69
|
+
icon: EditBigIcon,
|
|
70
|
+
accentToken: "positive",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "PencilIcon",
|
|
74
|
+
description: "Pencil / write icon",
|
|
75
|
+
icon: PencilIcon,
|
|
76
|
+
accentToken: "warning",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "BubbleSparkleIcon",
|
|
80
|
+
description: "AI sparkle bubble icon",
|
|
81
|
+
icon: BubbleSparkleIcon,
|
|
82
|
+
accentToken: "negative",
|
|
83
|
+
},
|
|
84
|
+
]}
|
|
85
|
+
/>
|
|
442
86
|
),
|
|
443
87
|
},
|
|
444
88
|
},
|
|
445
89
|
tags: ["autodocs"],
|
|
446
90
|
argTypes: {
|
|
447
|
-
|
|
448
|
-
control:
|
|
449
|
-
description: "
|
|
91
|
+
className: {
|
|
92
|
+
control: "text",
|
|
93
|
+
description: "CSS classes including color token",
|
|
450
94
|
},
|
|
451
95
|
withAccessibility: {
|
|
452
96
|
control: "boolean",
|
|
453
|
-
description: "
|
|
454
|
-
},
|
|
455
|
-
height: {
|
|
456
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
457
|
-
description: "Height of the icon in pixels",
|
|
458
|
-
},
|
|
459
|
-
className: {
|
|
460
|
-
control: "text",
|
|
461
|
-
description: "CSS classes for styling",
|
|
97
|
+
description: "Wrap with accessibility label",
|
|
462
98
|
},
|
|
463
99
|
},
|
|
464
100
|
}
|
|
@@ -466,277 +102,82 @@ function MagicEditButton() {
|
|
|
466
102
|
export default meta
|
|
467
103
|
type Story = StoryObj<typeof MagicEditIcon>
|
|
468
104
|
|
|
469
|
-
// Story parameters for consistent dark theme
|
|
470
|
-
const storyParameters = {
|
|
471
|
-
backgrounds: {
|
|
472
|
-
default: "dark",
|
|
473
|
-
values: [
|
|
474
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
475
|
-
{ name: "darker", value: "#000000" },
|
|
476
|
-
],
|
|
477
|
-
},
|
|
478
|
-
}
|
|
479
|
-
|
|
480
105
|
export const Default: Story = {
|
|
481
106
|
args: {
|
|
482
|
-
|
|
483
|
-
height: 24,
|
|
484
|
-
className: "text-purple-400",
|
|
107
|
+
className: "h-6 w-6 text-fm-icon-positive",
|
|
485
108
|
withAccessibility: true,
|
|
486
109
|
},
|
|
487
|
-
parameters: storyParameters,
|
|
488
110
|
render: (args) => (
|
|
489
|
-
<
|
|
111
|
+
<IconDefaultCanvas>
|
|
490
112
|
<MagicEditIcon {...args} />
|
|
491
|
-
</
|
|
113
|
+
</IconDefaultCanvas>
|
|
492
114
|
),
|
|
493
115
|
}
|
|
494
116
|
|
|
495
117
|
export const SizeVariations: Story = {
|
|
496
|
-
|
|
497
|
-
...storyParameters,
|
|
498
|
-
docs: {
|
|
499
|
-
description: {
|
|
500
|
-
story:
|
|
501
|
-
"MagicEditIcon in different sizes, from small inline buttons to large call-to-action elements.",
|
|
502
|
-
},
|
|
503
|
-
},
|
|
504
|
-
},
|
|
505
|
-
render: () => (
|
|
506
|
-
<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">
|
|
507
|
-
<div className="text-center">
|
|
508
|
-
<MagicEditIcon className="!mx-auto mb-2 h-3 w-3 text-purple-400" />
|
|
509
|
-
<span className="text-xs text-white/60">12px</span>
|
|
510
|
-
</div>
|
|
511
|
-
<div className="text-center">
|
|
512
|
-
<MagicEditIcon className="!mx-auto mb-2 h-4 w-4 text-purple-400" />
|
|
513
|
-
<span className="text-xs text-white/60">16px</span>
|
|
514
|
-
</div>
|
|
515
|
-
<div className="text-center">
|
|
516
|
-
<MagicEditIcon className="!mx-auto mb-2 h-5 w-5 text-purple-400" />
|
|
517
|
-
<span className="text-xs text-white/60">20px</span>
|
|
518
|
-
</div>
|
|
519
|
-
<div className="text-center">
|
|
520
|
-
<MagicEditIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
|
|
521
|
-
<span className="text-xs text-white/60">24px</span>
|
|
522
|
-
</div>
|
|
523
|
-
<div className="text-center">
|
|
524
|
-
<MagicEditIcon className="!mx-auto mb-2 h-8 w-8 text-purple-400" />
|
|
525
|
-
<span className="text-xs text-white/60">32px</span>
|
|
526
|
-
</div>
|
|
527
|
-
<div className="text-center">
|
|
528
|
-
<MagicEditIcon className="!mx-auto mb-2 h-12 w-12 text-purple-400" />
|
|
529
|
-
<span className="text-xs text-white/60">48px</span>
|
|
530
|
-
</div>
|
|
531
|
-
</div>
|
|
532
|
-
),
|
|
118
|
+
render: () => <IconSizeVariations icon={MagicEditIcon} />,
|
|
533
119
|
}
|
|
534
120
|
|
|
535
121
|
export const ColorVariations: Story = {
|
|
536
|
-
|
|
537
|
-
...storyParameters,
|
|
538
|
-
docs: {
|
|
539
|
-
description: {
|
|
540
|
-
story:
|
|
541
|
-
"MagicEditIcon with different color variations using Tailwind classes. Colors are applied via the fill and stroke properties using currentColor.",
|
|
542
|
-
},
|
|
543
|
-
},
|
|
544
|
-
},
|
|
545
|
-
render: () => (
|
|
546
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
547
|
-
<div className="!space-y-4">
|
|
548
|
-
<h3 className="text-center text-lg font-semibold !text-white">
|
|
549
|
-
Standard Colors
|
|
550
|
-
</h3>
|
|
551
|
-
<div className="flex flex-wrap items-center justify-center gap-8">
|
|
552
|
-
<div className="text-center">
|
|
553
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
|
|
554
|
-
<MagicEditIcon className="h-8 w-8 text-purple-400" />
|
|
555
|
-
</div>
|
|
556
|
-
<div className="text-sm font-medium text-white">Purple</div>
|
|
557
|
-
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
558
|
-
</div>
|
|
559
|
-
<div className="text-center">
|
|
560
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-indigo-500/30 bg-indigo-500/20">
|
|
561
|
-
<MagicEditIcon className="h-8 w-8 text-indigo-400" />
|
|
562
|
-
</div>
|
|
563
|
-
<div className="text-sm font-medium text-white">Indigo</div>
|
|
564
|
-
<div className="text-xs text-indigo-400">text-indigo-400</div>
|
|
565
|
-
</div>
|
|
566
|
-
<div className="text-center">
|
|
567
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-pink-500/30 bg-pink-500/20">
|
|
568
|
-
<MagicEditIcon className="h-8 w-8 text-pink-400" />
|
|
569
|
-
</div>
|
|
570
|
-
<div className="text-sm font-medium text-white">Pink</div>
|
|
571
|
-
<div className="text-xs text-pink-400">text-pink-400</div>
|
|
572
|
-
</div>
|
|
573
|
-
<div className="text-center">
|
|
574
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-cyan-500/30 bg-cyan-500/20">
|
|
575
|
-
<MagicEditIcon className="h-8 w-8 text-cyan-400" />
|
|
576
|
-
</div>
|
|
577
|
-
<div className="text-sm font-medium text-white">Cyan</div>
|
|
578
|
-
<div className="text-xs text-cyan-400">text-cyan-400</div>
|
|
579
|
-
</div>
|
|
580
|
-
<div className="text-center">
|
|
581
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-green-500/30 bg-green-500/20">
|
|
582
|
-
<MagicEditIcon className="h-8 w-8 text-green-400" />
|
|
583
|
-
</div>
|
|
584
|
-
<div className="text-sm font-medium text-white">Green</div>
|
|
585
|
-
<div className="text-xs text-green-400">text-green-400</div>
|
|
586
|
-
</div>
|
|
587
|
-
<div className="text-center">
|
|
588
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-blue-500/30 bg-blue-500/20">
|
|
589
|
-
<MagicEditIcon className="h-8 w-8 text-blue-400" />
|
|
590
|
-
</div>
|
|
591
|
-
<div className="text-sm font-medium text-white">Blue</div>
|
|
592
|
-
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
593
|
-
</div>
|
|
594
|
-
<div className="text-center">
|
|
595
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/30 bg-white/10">
|
|
596
|
-
<MagicEditIcon className="h-8 w-8 text-white" />
|
|
597
|
-
</div>
|
|
598
|
-
<div className="text-sm font-medium text-white">White</div>
|
|
599
|
-
<div className="text-xs text-white/60">text-white</div>
|
|
600
|
-
</div>
|
|
601
|
-
</div>
|
|
602
|
-
</div>
|
|
603
|
-
<div className="!space-y-4">
|
|
604
|
-
<h3 className="text-center text-lg font-semibold !text-white">
|
|
605
|
-
Design System Colors
|
|
606
|
-
</h3>
|
|
607
|
-
<div className="flex flex-wrap items-center justify-center gap-8">
|
|
608
|
-
<div className="text-center">
|
|
609
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/20 bg-white/5">
|
|
610
|
-
<MagicEditIcon className="text-fm-primary h-8 w-8" />
|
|
611
|
-
</div>
|
|
612
|
-
<div className="text-sm font-medium text-white">Primary</div>
|
|
613
|
-
<div className="text-fm-primary text-xs">text-fm-primary</div>
|
|
614
|
-
</div>
|
|
615
|
-
<div className="text-center">
|
|
616
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/20 bg-white/5">
|
|
617
|
-
<MagicEditIcon className="text-fm-secondary-500 h-8 w-8" />
|
|
618
|
-
</div>
|
|
619
|
-
<div className="text-sm font-medium text-white">Secondary</div>
|
|
620
|
-
<div className="text-fm-secondary-500 text-xs">
|
|
621
|
-
text-fm-secondary-500
|
|
622
|
-
</div>
|
|
623
|
-
</div>
|
|
624
|
-
<div className="text-center">
|
|
625
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/20 bg-white/5">
|
|
626
|
-
<MagicEditIcon className="text-fm-neutral-800 h-8 w-8" />
|
|
627
|
-
</div>
|
|
628
|
-
<div className="text-sm font-medium text-white">Neutral</div>
|
|
629
|
-
<div className="text-fm-neutral-800 text-xs">
|
|
630
|
-
text-fm-neutral-800
|
|
631
|
-
</div>
|
|
632
|
-
</div>
|
|
633
|
-
</div>
|
|
634
|
-
</div>
|
|
635
|
-
</div>
|
|
636
|
-
),
|
|
122
|
+
render: () => <IconColorVariations icon={MagicEditIcon} />,
|
|
637
123
|
}
|
|
638
124
|
|
|
639
125
|
export const UsageExamples: Story = {
|
|
640
|
-
parameters: {
|
|
641
|
-
...storyParameters,
|
|
642
|
-
docs: {
|
|
643
|
-
description: {
|
|
644
|
-
story:
|
|
645
|
-
"Common usage examples of MagicEditIcon in different contexts with various colors applied.",
|
|
646
|
-
},
|
|
647
|
-
},
|
|
648
|
-
},
|
|
649
126
|
render: () => (
|
|
650
|
-
<
|
|
651
|
-
<
|
|
652
|
-
<
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
<
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
<
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
Tool List Items
|
|
677
|
-
</h3>
|
|
678
|
-
<div className="flex flex-wrap items-center justify-center gap-4">
|
|
679
|
-
<div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2">
|
|
680
|
-
<MagicEditIcon className="h-5 w-5 text-purple-400" />
|
|
681
|
-
<span className="text-white/80">AI Editor</span>
|
|
682
|
-
</div>
|
|
683
|
-
<div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2">
|
|
684
|
-
<MagicEditIcon className="h-5 w-5 text-indigo-400" />
|
|
685
|
-
<span className="text-white/80">Content Enhancer</span>
|
|
686
|
-
</div>
|
|
687
|
-
<div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2">
|
|
688
|
-
<MagicEditIcon className="h-5 w-5 text-pink-400" />
|
|
689
|
-
<span className="text-white/80">Magic Tool</span>
|
|
690
|
-
</div>
|
|
691
|
-
<div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2">
|
|
692
|
-
<MagicEditIcon className="h-5 w-5 text-cyan-400" />
|
|
693
|
-
<span className="text-white/80">Smart Edit</span>
|
|
127
|
+
<IconUsageCanvas>
|
|
128
|
+
<IconUsageSection title="AI Edit Button">
|
|
129
|
+
<button className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-4 py-2">
|
|
130
|
+
<MagicEditIcon className="text-fm-icon-positive h-4 w-4" />
|
|
131
|
+
<span className="text-fm-primary font-fm-text text-sm">AI Edit</span>
|
|
132
|
+
</button>
|
|
133
|
+
</IconUsageSection>
|
|
134
|
+
|
|
135
|
+
<IconUsageSection title="Inline Edit Action">
|
|
136
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
137
|
+
<p className="text-fm-primary font-fm-text mb-3 text-sm">
|
|
138
|
+
Once upon a time in a faraway land...
|
|
139
|
+
</p>
|
|
140
|
+
<div className="flex gap-2">
|
|
141
|
+
<button className="flex items-center gap-1.5 rounded-lg px-3 py-1.5">
|
|
142
|
+
<MagicEditIcon className="text-fm-icon-positive h-3.5 w-3.5" />
|
|
143
|
+
<span className="text-fm-secondary font-fm-text text-xs">
|
|
144
|
+
AI Rewrite
|
|
145
|
+
</span>
|
|
146
|
+
</button>
|
|
147
|
+
<button className="flex items-center gap-1.5 rounded-lg px-3 py-1.5">
|
|
148
|
+
<EditBigIcon className="text-fm-icon-inactive h-3.5 w-3.5" />
|
|
149
|
+
<span className="text-fm-secondary font-fm-text text-xs">
|
|
150
|
+
Edit
|
|
151
|
+
</span>
|
|
152
|
+
</button>
|
|
694
153
|
</div>
|
|
695
154
|
</div>
|
|
696
|
-
</
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
<span className="text-white">Processing</span>
|
|
709
|
-
</div>
|
|
710
|
-
<div className="flex items-center gap-2 rounded-lg border border-blue-500/20 bg-blue-500/10 px-4 py-2">
|
|
711
|
-
<MagicEditIcon className="h-5 w-5 text-blue-400" />
|
|
712
|
-
<span className="text-white">Ready</span>
|
|
713
|
-
</div>
|
|
155
|
+
</IconUsageSection>
|
|
156
|
+
|
|
157
|
+
<IconUsageSection title="AI Tools Row">
|
|
158
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-3 py-2">
|
|
159
|
+
{[MagicEditIcon, MagicBookIcon, BubbleSparkleIcon].map((Icon, i) => (
|
|
160
|
+
<button
|
|
161
|
+
key={i}
|
|
162
|
+
className="flex h-8 w-8 items-center justify-center rounded-lg"
|
|
163
|
+
>
|
|
164
|
+
<Icon className="text-fm-icon-positive h-4 w-4" />
|
|
165
|
+
</button>
|
|
166
|
+
))}
|
|
714
167
|
</div>
|
|
715
|
-
</
|
|
716
|
-
</
|
|
168
|
+
</IconUsageSection>
|
|
169
|
+
</IconUsageCanvas>
|
|
717
170
|
),
|
|
718
171
|
}
|
|
719
172
|
|
|
720
173
|
export const Playground: Story = {
|
|
721
|
-
parameters: {
|
|
722
|
-
...storyParameters,
|
|
723
|
-
docs: {
|
|
724
|
-
description: {
|
|
725
|
-
story:
|
|
726
|
-
"Interactive playground to experiment with different MagicEditIcon configurations.",
|
|
727
|
-
},
|
|
728
|
-
},
|
|
729
|
-
},
|
|
730
174
|
args: {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
className: "text-purple-400",
|
|
175
|
+
className: "h-8 w-8 text-fm-icon-positive",
|
|
176
|
+
withAccessibility: true,
|
|
734
177
|
},
|
|
735
178
|
render: (args) => (
|
|
736
|
-
<
|
|
737
|
-
<
|
|
738
|
-
|
|
739
|
-
</div>
|
|
740
|
-
</div>
|
|
179
|
+
<IconPlaygroundCanvas>
|
|
180
|
+
<MagicEditIcon {...args} />
|
|
181
|
+
</IconPlaygroundCanvas>
|
|
741
182
|
),
|
|
742
183
|
}
|