aural-ui 3.0.6 → 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/clamp-lines/ClampLines.stories.tsx +25 -0
- package/dist/components/clamp-lines/index.tsx +6 -1
- 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/input/index.tsx +2 -0
- 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 MagicEditIcon> = {
|
|
|
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: {
|
|
@@ -47,59 +47,59 @@ const meta: Meta<typeof MagicEditIcon> = {
|
|
|
47
47
|
background: transparent !important;
|
|
48
48
|
}
|
|
49
49
|
body {
|
|
50
|
-
background:
|
|
50
|
+
background: var(--color-fm-surface-primary) !important;
|
|
51
51
|
}
|
|
52
52
|
#storybook-docs {
|
|
53
|
-
background:
|
|
53
|
+
background: var(--color-fm-surface-primary) !important;
|
|
54
54
|
}
|
|
55
55
|
.sbdocs-preview {
|
|
56
56
|
background: transparent !important;
|
|
57
57
|
border: none !important;
|
|
58
58
|
}
|
|
59
59
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
60
|
-
color:
|
|
60
|
+
color: var(--color-fm-icon-active) !important;
|
|
61
61
|
}
|
|
62
62
|
.sbdocs-p, .sbdocs-li {
|
|
63
|
-
color:
|
|
63
|
+
color: var(--color-fm-secondary) !important;
|
|
64
64
|
}
|
|
65
65
|
.sbdocs-code {
|
|
66
|
-
background:
|
|
67
|
-
color:
|
|
68
|
-
border: 1px solid
|
|
66
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
67
|
+
color: var(--color-fm-secondary-500) !important;
|
|
68
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
69
69
|
}
|
|
70
70
|
.sbdocs-pre {
|
|
71
|
-
background:
|
|
72
|
-
border: 1px solid
|
|
71
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
72
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
73
73
|
}
|
|
74
74
|
.sbdocs-table {
|
|
75
|
-
background:
|
|
76
|
-
border: 1px solid
|
|
75
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
76
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
77
77
|
}
|
|
78
78
|
.sbdocs-table th {
|
|
79
|
-
background:
|
|
80
|
-
color:
|
|
81
|
-
border-bottom: 1px solid
|
|
79
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
80
|
+
color: var(--color-fm-icon-active) !important;
|
|
81
|
+
border-bottom: 1px solid var(--color-fm-divider-secondary) !important;
|
|
82
82
|
}
|
|
83
83
|
.sbdocs-table td {
|
|
84
|
-
color:
|
|
85
|
-
border-bottom: 1px solid
|
|
84
|
+
color: var(--color-fm-secondary) !important;
|
|
85
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
|
|
86
86
|
}
|
|
87
87
|
`}
|
|
88
88
|
</style>
|
|
89
89
|
|
|
90
|
-
<div className="
|
|
90
|
+
<div className="bg-fm-surface-primary min-h-screen">
|
|
91
91
|
{/* Header */}
|
|
92
|
-
<div className="relative overflow-hidden border-b
|
|
93
|
-
<div className="absolute inset-0 bg-
|
|
92
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
93
|
+
<div className="from-fm-secondary-500/10 to-fm-secondary-500/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
94
94
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
95
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
|
|
97
|
-
<MagicEditIcon className="h-12 w-12
|
|
96
|
+
<div className="border-fm-secondary-500/30 from-fm-secondary-500/20 to-fm-secondary-500/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
97
|
+
<MagicEditIcon className="text-fm-secondary-600 h-12 w-12" />
|
|
98
98
|
</div>
|
|
99
|
-
<h1 className="text-5xl font-bold
|
|
99
|
+
<h1 className="text-fm-icon-active! text-5xl font-bold">
|
|
100
100
|
MagicEditIcon
|
|
101
101
|
</h1>
|
|
102
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
102
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
103
103
|
A magic edit icon with sparkle elements representing
|
|
104
104
|
AI-powered editing, content enhancement, and magical
|
|
105
105
|
transformations. Perfect for AI tools, content editors, and
|
|
@@ -109,26 +109,28 @@ const meta: Meta<typeof MagicEditIcon> = {
|
|
|
109
109
|
{/* Stats */}
|
|
110
110
|
<div className="mx-auto flex items-center justify-center gap-8">
|
|
111
111
|
<div className="text-center">
|
|
112
|
-
<div className="text-3xl font-bold
|
|
112
|
+
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
113
113
|
Magic
|
|
114
114
|
</div>
|
|
115
|
-
<div className="text-
|
|
115
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
116
|
+
AI-powered
|
|
117
|
+
</div>
|
|
116
118
|
</div>
|
|
117
|
-
<div className="h-8 w-px
|
|
119
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
118
120
|
<div className="text-center">
|
|
119
|
-
<div className="text-3xl font-bold
|
|
121
|
+
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
120
122
|
Edit
|
|
121
123
|
</div>
|
|
122
|
-
<div className="text-
|
|
124
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
123
125
|
Content editing
|
|
124
126
|
</div>
|
|
125
127
|
</div>
|
|
126
|
-
<div className="h-8 w-px
|
|
128
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
127
129
|
<div className="text-center">
|
|
128
|
-
<div className="text-3xl font-bold
|
|
130
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
129
131
|
Accessible
|
|
130
132
|
</div>
|
|
131
|
-
<div className="text-
|
|
133
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
132
134
|
Screen reader support
|
|
133
135
|
</div>
|
|
134
136
|
</div>
|
|
@@ -141,34 +143,34 @@ const meta: Meta<typeof MagicEditIcon> = {
|
|
|
141
143
|
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
142
144
|
{/* Features */}
|
|
143
145
|
<div className="!space-y-8">
|
|
144
|
-
<h3 className="text-center text-2xl font-bold
|
|
146
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
145
147
|
Key Features
|
|
146
148
|
</h3>
|
|
147
149
|
<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
|
|
150
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
149
151
|
<div className="text-3xl">✨</div>
|
|
150
|
-
<h4 className="text-lg font-semibold
|
|
152
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
151
153
|
Magic Edit
|
|
152
154
|
</h4>
|
|
153
|
-
<p className="text-
|
|
155
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
154
156
|
AI-powered editing with sparkle elements
|
|
155
157
|
</p>
|
|
156
158
|
</div>
|
|
157
|
-
<div className="space-y-4 rounded-lg border
|
|
159
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
158
160
|
<div className="text-3xl">✏️</div>
|
|
159
|
-
<h4 className="text-lg font-semibold
|
|
161
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
160
162
|
Content Enhancement
|
|
161
163
|
</h4>
|
|
162
|
-
<p className="text-
|
|
164
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
163
165
|
Transform and enhance content
|
|
164
166
|
</p>
|
|
165
167
|
</div>
|
|
166
|
-
<div className="space-y-4 rounded-lg border
|
|
168
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
167
169
|
<div className="text-3xl">♿</div>
|
|
168
|
-
<h4 className="text-lg font-semibold
|
|
170
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
169
171
|
Accessibility
|
|
170
172
|
</h4>
|
|
171
|
-
<p className="text-
|
|
173
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
172
174
|
Built with screen reader support
|
|
173
175
|
</p>
|
|
174
176
|
</div>
|
|
@@ -177,43 +179,45 @@ const meta: Meta<typeof MagicEditIcon> = {
|
|
|
177
179
|
|
|
178
180
|
{/* API Reference */}
|
|
179
181
|
<div className="!space-y-8">
|
|
180
|
-
<h3 className="text-center text-2xl font-bold
|
|
182
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
181
183
|
API Reference
|
|
182
184
|
</h3>
|
|
183
|
-
<div className="overflow-hidden rounded-lg border
|
|
184
|
-
<div className="bg-
|
|
185
|
-
<h4 className="text-lg font-semibold
|
|
185
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
186
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
187
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
188
|
+
Props
|
|
189
|
+
</h4>
|
|
186
190
|
</div>
|
|
187
191
|
<table className="!my-0 w-full">
|
|
188
|
-
<thead className="bg-
|
|
189
|
-
<tr className="border-
|
|
190
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
192
|
+
<thead className="bg-fm-surface-secondary">
|
|
193
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
194
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
191
195
|
Prop
|
|
192
196
|
</th>
|
|
193
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
197
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
194
198
|
Type
|
|
195
199
|
</th>
|
|
196
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
200
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
197
201
|
Default
|
|
198
202
|
</th>
|
|
199
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
203
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
200
204
|
Description
|
|
201
205
|
</th>
|
|
202
206
|
</tr>
|
|
203
207
|
</thead>
|
|
204
208
|
<tbody>
|
|
205
209
|
{" "}
|
|
206
|
-
<tr className="
|
|
207
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
210
|
+
<tr className="bg-fm-surface-secondary!">
|
|
211
|
+
<td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
|
|
208
212
|
withAccessibility
|
|
209
213
|
</td>
|
|
210
|
-
<td className="px-6 py-4 text-sm
|
|
214
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
211
215
|
boolean
|
|
212
216
|
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm
|
|
217
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
214
218
|
true
|
|
215
219
|
</td>
|
|
216
|
-
<td className="px-6 py-4 text-sm
|
|
220
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
217
221
|
Whether to wrap the icon with accessibility feature
|
|
218
222
|
</td>
|
|
219
223
|
</tr>
|
|
@@ -224,17 +228,17 @@ const meta: Meta<typeof MagicEditIcon> = {
|
|
|
224
228
|
|
|
225
229
|
{/* Usage Examples */}
|
|
226
230
|
<div className="!space-y-8">
|
|
227
|
-
<h3 className="text-center text-2xl font-bold
|
|
231
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
228
232
|
Usage Examples
|
|
229
233
|
</h3>
|
|
230
234
|
|
|
231
235
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
232
236
|
<div className="space-y-4">
|
|
233
|
-
<h4 className="text-lg font-semibold
|
|
237
|
+
<h4 className="text-fm-secondary-600! text-lg font-semibold">
|
|
234
238
|
Basic Usage
|
|
235
239
|
</h4>
|
|
236
|
-
<div className="rounded-lg
|
|
237
|
-
<pre className="overflow-x-auto text-sm
|
|
240
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
241
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
238
242
|
{`import { MagicEditIcon } from "@/components/ui/icons/magic-edit-icon"
|
|
239
243
|
|
|
240
244
|
function MagicEditButton() {
|
|
@@ -250,12 +254,12 @@ function MagicEditButton() {
|
|
|
250
254
|
</div>
|
|
251
255
|
|
|
252
256
|
<div className="space-y-4">
|
|
253
|
-
<h4 className="text-lg font-semibold
|
|
257
|
+
<h4 className="text-fm-secondary-600! text-lg font-semibold">
|
|
254
258
|
Live Preview
|
|
255
259
|
</h4>
|
|
256
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
257
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
258
|
-
<MagicEditIcon className="h-4 w-4
|
|
260
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
261
|
+
<button className="border-fm-secondary-500/20 bg-fm-secondary-500/10 text-fm-icon-active hover:bg-fm-secondary-500/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
262
|
+
<MagicEditIcon className="text-fm-secondary-600 h-4 w-4" />
|
|
259
263
|
<span>Magic Edit</span>
|
|
260
264
|
</button>
|
|
261
265
|
</div>
|
|
@@ -265,50 +269,62 @@ function MagicEditButton() {
|
|
|
265
269
|
|
|
266
270
|
{/* Size Examples */}
|
|
267
271
|
<div className="!space-y-8">
|
|
268
|
-
<h3 className="text-center text-2xl font-bold
|
|
272
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
269
273
|
Size Examples
|
|
270
274
|
</h3>
|
|
271
|
-
<div className="rounded-lg border
|
|
275
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
272
276
|
<div className="!space-y-6">
|
|
273
277
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
274
278
|
<div className="!space-y-4">
|
|
275
|
-
<h3 className="text-lg font-semibold
|
|
279
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
276
280
|
Standard Sizes
|
|
277
281
|
</h3>
|
|
278
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
282
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
279
283
|
<div className="text-center">
|
|
280
|
-
<MagicEditIcon className="!mx-auto mb-2 h-3 w-3
|
|
281
|
-
<span className="text-
|
|
284
|
+
<MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-3 w-3" />
|
|
285
|
+
<span className="text-fm-tertiary text-xs">
|
|
286
|
+
12px
|
|
287
|
+
</span>
|
|
282
288
|
</div>
|
|
283
289
|
<div className="text-center">
|
|
284
|
-
<MagicEditIcon className="!mx-auto mb-2 h-4 w-4
|
|
285
|
-
<span className="text-
|
|
290
|
+
<MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-4 w-4" />
|
|
291
|
+
<span className="text-fm-tertiary text-xs">
|
|
292
|
+
16px
|
|
293
|
+
</span>
|
|
286
294
|
</div>
|
|
287
295
|
<div className="text-center">
|
|
288
|
-
<MagicEditIcon className="!mx-auto mb-2 h-5 w-5
|
|
289
|
-
<span className="text-
|
|
296
|
+
<MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-5 w-5" />
|
|
297
|
+
<span className="text-fm-tertiary text-xs">
|
|
298
|
+
20px
|
|
299
|
+
</span>
|
|
290
300
|
</div>
|
|
291
301
|
<div className="text-center">
|
|
292
|
-
<MagicEditIcon className="!mx-auto mb-2 h-6 w-6
|
|
293
|
-
<span className="text-
|
|
302
|
+
<MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
|
|
303
|
+
<span className="text-fm-tertiary text-xs">
|
|
304
|
+
24px
|
|
305
|
+
</span>
|
|
294
306
|
</div>
|
|
295
307
|
<div className="text-center">
|
|
296
|
-
<MagicEditIcon className="!mx-auto mb-2 h-8 w-8
|
|
297
|
-
<span className="text-
|
|
308
|
+
<MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-8 w-8" />
|
|
309
|
+
<span className="text-fm-tertiary text-xs">
|
|
310
|
+
32px
|
|
311
|
+
</span>
|
|
298
312
|
</div>
|
|
299
313
|
<div className="text-center">
|
|
300
|
-
<MagicEditIcon className="!mx-auto mb-2 h-12 w-12
|
|
301
|
-
<span className="text-
|
|
314
|
+
<MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-12 w-12" />
|
|
315
|
+
<span className="text-fm-tertiary text-xs">
|
|
316
|
+
48px
|
|
317
|
+
</span>
|
|
302
318
|
</div>
|
|
303
319
|
</div>
|
|
304
320
|
</div>
|
|
305
321
|
|
|
306
322
|
<div className="!space-y-4">
|
|
307
|
-
<h3 className="text-lg font-semibold
|
|
323
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
308
324
|
Code Example
|
|
309
325
|
</h3>
|
|
310
|
-
<div className="rounded-lg
|
|
311
|
-
<pre className="overflow-x-auto text-sm
|
|
326
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
327
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
312
328
|
{`// Small (16px)
|
|
313
329
|
<MagicEditIcon className="h-4 w-4 text-purple-400" />
|
|
314
330
|
|
|
@@ -334,34 +350,34 @@ function MagicEditButton() {
|
|
|
334
350
|
|
|
335
351
|
{/* Common Use Cases */}
|
|
336
352
|
<div className="!space-y-8">
|
|
337
|
-
<h3 className="text-center text-2xl font-bold
|
|
353
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
338
354
|
Common Use Cases
|
|
339
355
|
</h3>
|
|
340
356
|
<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
|
|
357
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
342
358
|
<div className="text-2xl">✨</div>
|
|
343
|
-
<h4 className="text-lg font-semibold
|
|
359
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
344
360
|
AI Editing
|
|
345
361
|
</h4>
|
|
346
|
-
<p className="text-
|
|
362
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
347
363
|
AI-powered content editing tools
|
|
348
364
|
</p>
|
|
349
365
|
</div>
|
|
350
|
-
<div className="space-y-3 rounded-lg border
|
|
366
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
351
367
|
<div className="text-2xl">🎨</div>
|
|
352
|
-
<h4 className="text-lg font-semibold
|
|
368
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
353
369
|
Content Enhancement
|
|
354
370
|
</h4>
|
|
355
|
-
<p className="text-
|
|
371
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
356
372
|
Transform and enhance content
|
|
357
373
|
</p>
|
|
358
374
|
</div>
|
|
359
|
-
<div className="space-y-3 rounded-lg border
|
|
375
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
360
376
|
<div className="text-2xl">🔮</div>
|
|
361
|
-
<h4 className="text-lg font-semibold
|
|
377
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
362
378
|
Magic Tools
|
|
363
379
|
</h4>
|
|
364
|
-
<p className="text-
|
|
380
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
365
381
|
Special editing features
|
|
366
382
|
</p>
|
|
367
383
|
</div>
|
|
@@ -370,50 +386,50 @@ function MagicEditButton() {
|
|
|
370
386
|
|
|
371
387
|
{/* Best Practices */}
|
|
372
388
|
<div className="!space-y-8">
|
|
373
|
-
<h3 className="text-center text-2xl font-bold
|
|
389
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
374
390
|
Best Practices
|
|
375
391
|
</h3>
|
|
376
392
|
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
377
|
-
<div className="space-y-4 rounded-lg border
|
|
378
|
-
<h4 className="text-lg font-semibold
|
|
393
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
394
|
+
<h4 className="text-fm-icon-positive! text-lg font-semibold">
|
|
379
395
|
✅ Do
|
|
380
396
|
</h4>
|
|
381
|
-
<ul className="space-y-2 text-sm
|
|
382
|
-
<li className="
|
|
397
|
+
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
398
|
+
<li className="text-fm-icon-active!/80">
|
|
383
399
|
Use appropriate sizes for different contexts
|
|
384
400
|
</li>
|
|
385
|
-
<li className="
|
|
401
|
+
<li className="text-fm-icon-active!/80">
|
|
386
402
|
Choose colors that match your UI theme
|
|
387
403
|
</li>
|
|
388
|
-
<li className="
|
|
404
|
+
<li className="text-fm-icon-active!/80">
|
|
389
405
|
Provide clear labels for icon buttons
|
|
390
406
|
</li>
|
|
391
|
-
<li className="
|
|
407
|
+
<li className="text-fm-icon-active!/80">
|
|
392
408
|
Use consistent styling across your app
|
|
393
409
|
</li>
|
|
394
|
-
<li className="
|
|
410
|
+
<li className="text-fm-icon-active!/80">
|
|
395
411
|
Consider accessibility in all implementations
|
|
396
412
|
</li>
|
|
397
413
|
</ul>
|
|
398
414
|
</div>
|
|
399
|
-
<div className="space-y-4 rounded-lg border
|
|
400
|
-
<h4 className="text-lg font-semibold
|
|
415
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
416
|
+
<h4 className="text-fm-icon-negative! text-lg font-semibold">
|
|
401
417
|
❌ Don't
|
|
402
418
|
</h4>
|
|
403
|
-
<ul className="space-y-2 text-sm
|
|
404
|
-
<li className="
|
|
419
|
+
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
420
|
+
<li className="text-fm-icon-active!/80">
|
|
405
421
|
Use multiple icon styles in the same view
|
|
406
422
|
</li>
|
|
407
|
-
<li className="
|
|
423
|
+
<li className="text-fm-icon-active!/80">
|
|
408
424
|
Overuse the icon in navigation
|
|
409
425
|
</li>
|
|
410
|
-
<li className="
|
|
426
|
+
<li className="text-fm-icon-active!/80">
|
|
411
427
|
Use inappropriate sizes for the context
|
|
412
428
|
</li>
|
|
413
|
-
<li className="
|
|
429
|
+
<li className="text-fm-icon-active!/80">
|
|
414
430
|
Forget to add hover states
|
|
415
431
|
</li>
|
|
416
|
-
<li className="
|
|
432
|
+
<li className="text-fm-icon-active!/80">
|
|
417
433
|
Ignore accessibility requirements
|
|
418
434
|
</li>
|
|
419
435
|
</ul>
|
|
@@ -423,14 +439,14 @@ function MagicEditButton() {
|
|
|
423
439
|
</div>
|
|
424
440
|
|
|
425
441
|
{/* Footer */}
|
|
426
|
-
<div className="border-
|
|
442
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
427
443
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
428
444
|
<div className="!space-y-4 text-center">
|
|
429
|
-
<p className="
|
|
445
|
+
<p className="text-fm-tertiary!">
|
|
430
446
|
MagicEditIcon is part of the Aural UI icon library, designed
|
|
431
447
|
for AI-powered editing and content enhancement interfaces.
|
|
432
448
|
</p>
|
|
433
|
-
<p className="text-
|
|
449
|
+
<p className="text-fm-placeholder! text-sm">
|
|
434
450
|
Perfect for AI tools, content editors, enhancement features,
|
|
435
451
|
and any interface requiring magical editing representation.
|
|
436
452
|
</p>
|
|
@@ -471,8 +487,8 @@ const storyParameters = {
|
|
|
471
487
|
backgrounds: {
|
|
472
488
|
default: "dark",
|
|
473
489
|
values: [
|
|
474
|
-
{ name: "dark", value: "
|
|
475
|
-
{ name: "darker", value: "
|
|
490
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
491
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
476
492
|
],
|
|
477
493
|
},
|
|
478
494
|
}
|
|
@@ -481,12 +497,12 @@ export const Default: Story = {
|
|
|
481
497
|
args: {
|
|
482
498
|
width: 24,
|
|
483
499
|
height: 24,
|
|
484
|
-
className: "text-
|
|
500
|
+
className: "text-fm-secondary-600",
|
|
485
501
|
withAccessibility: true,
|
|
486
502
|
},
|
|
487
503
|
parameters: storyParameters,
|
|
488
504
|
render: (args) => (
|
|
489
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
505
|
+
<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">
|
|
490
506
|
<MagicEditIcon {...args} />
|
|
491
507
|
</div>
|
|
492
508
|
),
|
|
@@ -503,30 +519,30 @@ export const SizeVariations: Story = {
|
|
|
503
519
|
},
|
|
504
520
|
},
|
|
505
521
|
render: () => (
|
|
506
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
522
|
+
<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">
|
|
507
523
|
<div className="text-center">
|
|
508
|
-
<MagicEditIcon className="!mx-auto mb-2 h-3 w-3
|
|
509
|
-
<span className="text-
|
|
524
|
+
<MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-3 w-3" />
|
|
525
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
510
526
|
</div>
|
|
511
527
|
<div className="text-center">
|
|
512
|
-
<MagicEditIcon className="!mx-auto mb-2 h-4 w-4
|
|
513
|
-
<span className="text-
|
|
528
|
+
<MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-4 w-4" />
|
|
529
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
514
530
|
</div>
|
|
515
531
|
<div className="text-center">
|
|
516
|
-
<MagicEditIcon className="!mx-auto mb-2 h-5 w-5
|
|
517
|
-
<span className="text-
|
|
532
|
+
<MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-5 w-5" />
|
|
533
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
518
534
|
</div>
|
|
519
535
|
<div className="text-center">
|
|
520
|
-
<MagicEditIcon className="!mx-auto mb-2 h-6 w-6
|
|
521
|
-
<span className="text-
|
|
536
|
+
<MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
|
|
537
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
522
538
|
</div>
|
|
523
539
|
<div className="text-center">
|
|
524
|
-
<MagicEditIcon className="!mx-auto mb-2 h-8 w-8
|
|
525
|
-
<span className="text-
|
|
540
|
+
<MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-8 w-8" />
|
|
541
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
526
542
|
</div>
|
|
527
543
|
<div className="text-center">
|
|
528
|
-
<MagicEditIcon className="!mx-auto mb-2 h-12 w-12
|
|
529
|
-
<span className="text-
|
|
544
|
+
<MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-12 w-12" />
|
|
545
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
530
546
|
</div>
|
|
531
547
|
</div>
|
|
532
548
|
),
|
|
@@ -543,89 +559,105 @@ export const ColorVariations: Story = {
|
|
|
543
559
|
},
|
|
544
560
|
},
|
|
545
561
|
render: () => (
|
|
546
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
562
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
547
563
|
<div className="!space-y-4">
|
|
548
|
-
<h3 className="text-center text-lg font-semibold
|
|
564
|
+
<h3 className="text-fm-icon-active! text-center text-lg font-semibold">
|
|
549
565
|
Standard Colors
|
|
550
566
|
</h3>
|
|
551
567
|
<div className="flex flex-wrap items-center justify-center gap-8">
|
|
552
568
|
<div className="text-center">
|
|
553
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
554
|
-
<MagicEditIcon className="h-8 w-8
|
|
569
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
570
|
+
<MagicEditIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
571
|
+
</div>
|
|
572
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
573
|
+
Purple
|
|
574
|
+
</div>
|
|
575
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
576
|
+
text-fm-secondary-600
|
|
555
577
|
</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
578
|
</div>
|
|
559
579
|
<div className="text-center">
|
|
560
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
561
|
-
<MagicEditIcon className="h-8 w-8
|
|
580
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
581
|
+
<MagicEditIcon className="text-fm-icon-info h-8 w-8" />
|
|
582
|
+
</div>
|
|
583
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
584
|
+
Indigo
|
|
562
585
|
</div>
|
|
563
|
-
<div className="text-
|
|
564
|
-
<div className="text-xs text-indigo-400">text-indigo-400</div>
|
|
586
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
565
587
|
</div>
|
|
566
588
|
<div className="text-center">
|
|
567
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
568
|
-
<MagicEditIcon className="h-8 w-8
|
|
589
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
590
|
+
<MagicEditIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
591
|
+
</div>
|
|
592
|
+
<div className="text-fm-icon-active text-sm font-medium">Pink</div>
|
|
593
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
594
|
+
text-fm-secondary-600
|
|
569
595
|
</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
596
|
</div>
|
|
573
597
|
<div className="text-center">
|
|
574
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
575
|
-
<MagicEditIcon className="h-8 w-8
|
|
598
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
599
|
+
<MagicEditIcon className="text-fm-icon-info h-8 w-8" />
|
|
576
600
|
</div>
|
|
577
|
-
<div className="text-sm font-medium
|
|
578
|
-
<div className="text-
|
|
601
|
+
<div className="text-fm-icon-active text-sm font-medium">Cyan</div>
|
|
602
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
579
603
|
</div>
|
|
580
604
|
<div className="text-center">
|
|
581
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
582
|
-
<MagicEditIcon className="h-8 w-8
|
|
605
|
+
<div className="border-fm-icon-positive/30 bg-fm-icon-positive/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
606
|
+
<MagicEditIcon className="text-fm-icon-positive h-8 w-8" />
|
|
607
|
+
</div>
|
|
608
|
+
<div className="text-fm-icon-active text-sm font-medium">Green</div>
|
|
609
|
+
<div className="text-fm-icon-positive text-xs">
|
|
610
|
+
text-fm-icon-positive
|
|
583
611
|
</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
612
|
</div>
|
|
587
613
|
<div className="text-center">
|
|
588
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
589
|
-
<MagicEditIcon className="h-8 w-8
|
|
614
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
615
|
+
<MagicEditIcon className="text-fm-icon-info h-8 w-8" />
|
|
590
616
|
</div>
|
|
591
|
-
<div className="text-sm font-medium
|
|
592
|
-
<div className="text-
|
|
617
|
+
<div className="text-fm-icon-active text-sm font-medium">Blue</div>
|
|
618
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
593
619
|
</div>
|
|
594
620
|
<div className="text-center">
|
|
595
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
596
|
-
<MagicEditIcon className="h-8 w-8
|
|
621
|
+
<div className="border-fm-divider-primary bg-fm-surface-secondary mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
622
|
+
<MagicEditIcon className="text-fm-icon-active h-8 w-8" />
|
|
597
623
|
</div>
|
|
598
|
-
<div className="text-sm font-medium
|
|
599
|
-
<div className="text-
|
|
624
|
+
<div className="text-fm-icon-active text-sm font-medium">White</div>
|
|
625
|
+
<div className="text-fm-tertiary text-xs">text-fm-icon-active</div>
|
|
600
626
|
</div>
|
|
601
627
|
</div>
|
|
602
628
|
</div>
|
|
603
629
|
<div className="!space-y-4">
|
|
604
|
-
<h3 className="text-center text-lg font-semibold
|
|
630
|
+
<h3 className="text-fm-icon-active! text-center text-lg font-semibold">
|
|
605
631
|
Design System Colors
|
|
606
632
|
</h3>
|
|
607
633
|
<div className="flex flex-wrap items-center justify-center gap-8">
|
|
608
634
|
<div className="text-center">
|
|
609
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
635
|
+
<div className="border-fm-divider-primary bg-fm-surface-secondary mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
610
636
|
<MagicEditIcon className="text-fm-primary h-8 w-8" />
|
|
611
637
|
</div>
|
|
612
|
-
<div className="text-sm font-medium
|
|
638
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
639
|
+
Primary
|
|
640
|
+
</div>
|
|
613
641
|
<div className="text-fm-primary text-xs">text-fm-primary</div>
|
|
614
642
|
</div>
|
|
615
643
|
<div className="text-center">
|
|
616
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
644
|
+
<div className="border-fm-divider-primary bg-fm-surface-secondary mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
617
645
|
<MagicEditIcon className="text-fm-secondary-500 h-8 w-8" />
|
|
618
646
|
</div>
|
|
619
|
-
<div className="text-sm font-medium
|
|
647
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
648
|
+
Secondary
|
|
649
|
+
</div>
|
|
620
650
|
<div className="text-fm-secondary-500 text-xs">
|
|
621
651
|
text-fm-secondary-500
|
|
622
652
|
</div>
|
|
623
653
|
</div>
|
|
624
654
|
<div className="text-center">
|
|
625
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
655
|
+
<div className="border-fm-divider-primary bg-fm-surface-secondary mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
626
656
|
<MagicEditIcon className="text-fm-neutral-800 h-8 w-8" />
|
|
627
657
|
</div>
|
|
628
|
-
<div className="text-sm font-medium
|
|
658
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
659
|
+
Neutral
|
|
660
|
+
</div>
|
|
629
661
|
<div className="text-fm-neutral-800 text-xs">
|
|
630
662
|
text-fm-neutral-800
|
|
631
663
|
</div>
|
|
@@ -647,69 +679,69 @@ export const UsageExamples: Story = {
|
|
|
647
679
|
},
|
|
648
680
|
},
|
|
649
681
|
render: () => (
|
|
650
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
682
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
651
683
|
<div className="!space-y-4">
|
|
652
|
-
<h3 className="text-center text-lg font-semibold
|
|
684
|
+
<h3 className="text-fm-icon-active! text-center text-lg font-semibold">
|
|
653
685
|
Action Buttons
|
|
654
686
|
</h3>
|
|
655
687
|
<div className="flex flex-wrap items-center justify-center gap-4">
|
|
656
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
657
|
-
<MagicEditIcon className="h-4 w-4
|
|
688
|
+
<button className="border-fm-secondary-500/20 bg-fm-secondary-500/10 text-fm-icon-active hover:bg-fm-secondary-500/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
689
|
+
<MagicEditIcon className="text-fm-secondary-600 h-4 w-4" />
|
|
658
690
|
<span>Magic Edit</span>
|
|
659
691
|
</button>
|
|
660
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
661
|
-
<MagicEditIcon className="h-4 w-4
|
|
692
|
+
<button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
693
|
+
<MagicEditIcon className="text-fm-icon-info h-4 w-4" />
|
|
662
694
|
<span>AI Enhance</span>
|
|
663
695
|
</button>
|
|
664
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
665
|
-
<MagicEditIcon className="h-4 w-4
|
|
696
|
+
<button className="border-fm-secondary-500/20 bg-fm-secondary-500/10 text-fm-icon-active hover:bg-fm-secondary-500/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
697
|
+
<MagicEditIcon className="text-fm-secondary-600 h-4 w-4" />
|
|
666
698
|
<span>Transform</span>
|
|
667
699
|
</button>
|
|
668
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
669
|
-
<MagicEditIcon className="h-4 w-4
|
|
700
|
+
<button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
701
|
+
<MagicEditIcon className="text-fm-icon-info h-4 w-4" />
|
|
670
702
|
<span>Enhance</span>
|
|
671
703
|
</button>
|
|
672
704
|
</div>
|
|
673
705
|
</div>
|
|
674
706
|
<div className="!space-y-4">
|
|
675
|
-
<h3 className="text-center text-lg font-semibold
|
|
707
|
+
<h3 className="text-fm-icon-active! text-center text-lg font-semibold">
|
|
676
708
|
Tool List Items
|
|
677
709
|
</h3>
|
|
678
710
|
<div className="flex flex-wrap items-center justify-center gap-4">
|
|
679
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
680
|
-
<MagicEditIcon className="h-5 w-5
|
|
681
|
-
<span className="text-
|
|
711
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
712
|
+
<MagicEditIcon className="text-fm-secondary-600 h-5 w-5" />
|
|
713
|
+
<span className="text-fm-icon-active/80">AI Editor</span>
|
|
682
714
|
</div>
|
|
683
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
684
|
-
<MagicEditIcon className="h-5 w-5
|
|
685
|
-
<span className="text-
|
|
715
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
716
|
+
<MagicEditIcon className="text-fm-icon-info h-5 w-5" />
|
|
717
|
+
<span className="text-fm-icon-active/80">Content Enhancer</span>
|
|
686
718
|
</div>
|
|
687
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
688
|
-
<MagicEditIcon className="h-5 w-5
|
|
689
|
-
<span className="text-
|
|
719
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
720
|
+
<MagicEditIcon className="text-fm-secondary-600 h-5 w-5" />
|
|
721
|
+
<span className="text-fm-icon-active/80">Magic Tool</span>
|
|
690
722
|
</div>
|
|
691
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
692
|
-
<MagicEditIcon className="h-5 w-5
|
|
693
|
-
<span className="text-
|
|
723
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
724
|
+
<MagicEditIcon className="text-fm-icon-info h-5 w-5" />
|
|
725
|
+
<span className="text-fm-icon-active/80">Smart Edit</span>
|
|
694
726
|
</div>
|
|
695
727
|
</div>
|
|
696
728
|
</div>
|
|
697
729
|
<div className="!space-y-4">
|
|
698
|
-
<h3 className="text-center text-lg font-semibold
|
|
730
|
+
<h3 className="text-fm-icon-active! text-center text-lg font-semibold">
|
|
699
731
|
Status Indicators
|
|
700
732
|
</h3>
|
|
701
733
|
<div className="flex flex-wrap items-center justify-center gap-4">
|
|
702
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
703
|
-
<MagicEditIcon className="h-5 w-5
|
|
704
|
-
<span className="text-
|
|
734
|
+
<div className="border-fm-icon-positive/20 bg-fm-icon-positive/10 flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
735
|
+
<MagicEditIcon className="text-fm-icon-positive h-5 w-5" />
|
|
736
|
+
<span className="text-fm-icon-active">Active</span>
|
|
705
737
|
</div>
|
|
706
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
707
|
-
<MagicEditIcon className="h-5 w-5
|
|
708
|
-
<span className="text-
|
|
738
|
+
<div className="border-fm-icon-warning/20 bg-fm-icon-warning/10 flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
739
|
+
<MagicEditIcon className="text-fm-icon-warning h-5 w-5" />
|
|
740
|
+
<span className="text-fm-icon-active">Processing</span>
|
|
709
741
|
</div>
|
|
710
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
711
|
-
<MagicEditIcon className="h-5 w-5
|
|
712
|
-
<span className="text-
|
|
742
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
743
|
+
<MagicEditIcon className="text-fm-icon-info h-5 w-5" />
|
|
744
|
+
<span className="text-fm-icon-active">Ready</span>
|
|
713
745
|
</div>
|
|
714
746
|
</div>
|
|
715
747
|
</div>
|
|
@@ -730,11 +762,11 @@ export const Playground: Story = {
|
|
|
730
762
|
args: {
|
|
731
763
|
width: 32,
|
|
732
764
|
height: 32,
|
|
733
|
-
className: "text-
|
|
765
|
+
className: "text-fm-secondary-600",
|
|
734
766
|
},
|
|
735
767
|
render: (args) => (
|
|
736
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
737
|
-
<div className="rounded-lg border
|
|
768
|
+
<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">
|
|
769
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
738
770
|
<MagicEditIcon {...args} />
|
|
739
771
|
</div>
|
|
740
772
|
</div>
|