aural-ui 3.0.7 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +271 -242
- package/dist/components/avatar/Avatar.stories.tsx +84 -70
- package/dist/components/button/Button.stories.tsx +7 -7
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +3 -3
- package/dist/components/char-count/CharCount.stories.tsx +9 -9
- package/dist/components/circular-loader/CircularLoader.stories.tsx +109 -93
- package/dist/components/collapsible/Collapsible.stories.tsx +1 -1
- package/dist/components/command/Command.stories.tsx +52 -38
- package/dist/components/dialog/Dialog.stories.tsx +89 -84
- package/dist/components/divider/Divider.stories.tsx +86 -60
- package/dist/components/dot-loader/DotLoader.stories.tsx +12 -12
- package/dist/components/drawer/Drawer.stories.tsx +74 -44
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +42 -32
- package/dist/components/helper-text/HelperText.stories.tsx +2 -2
- package/dist/components/hover-card/HoverCard.stories.tsx +211 -178
- package/dist/components/input/Input.stories.tsx +2 -2
- package/dist/components/label/Label.stories.tsx +10 -10
- package/dist/components/list/List.stories.tsx +58 -44
- package/dist/components/marquee/Marquee.stories.tsx +131 -113
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +47 -35
- package/dist/components/overlay/Overlay.stories.tsx +98 -92
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/popover/Popover.stories.tsx +132 -106
- package/dist/components/radio/Radio.stories.tsx +2 -2
- package/dist/components/resizable/Resizable.stories.tsx +186 -138
- package/dist/components/scroll-area/ScrollArea.stories.tsx +174 -120
- package/dist/components/search/Search.stories.tsx +81 -59
- package/dist/components/select/Select.stories.tsx +3 -1
- package/dist/components/sheet/Sheet.stories.tsx +68 -54
- package/dist/components/slider/Slider.stories.tsx +71 -47
- package/dist/components/stepper/Stepper.stories.tsx +16 -16
- package/dist/components/switch/Switch.stories.tsx +12 -12
- package/dist/components/table/Table.stories.tsx +8 -6
- package/dist/components/tabs/Tabs.stories.tsx +324 -268
- package/dist/components/textarea/TextArea.stories.tsx +1 -1
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +16 -10
- package/dist/components/toast/Toast.stories.tsx +51 -45
- package/dist/components/toggle/Toggle.stories.tsx +111 -89
- package/dist/components/tooltip/Tooltip.stories.tsx +160 -144
- package/dist/icons/Icons.stories.tsx +2 -2
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +287 -237
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +290 -248
- package/dist/icons/all-icons.tsx +97 -81
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +312 -270
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +294 -244
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +309 -279
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +294 -258
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +289 -255
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +288 -256
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +322 -288
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +340 -296
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +197 -177
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +390 -328
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +313 -277
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +367 -309
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +356 -308
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +280 -234
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +370 -326
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +300 -256
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +298 -262
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +294 -260
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +291 -259
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +286 -256
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +282 -256
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +292 -256
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +338 -290
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +167 -148
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +342 -296
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +342 -296
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +280 -238
- package/dist/icons/command-icon/CommandIcon.stories.tsx +328 -280
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +294 -256
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +285 -235
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +308 -266
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +271 -231
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +330 -278
- package/dist/icons/email-icon/EmailIcon.stories.tsx +303 -257
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +324 -286
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +317 -271
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +320 -272
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +322 -280
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +315 -277
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +199 -177
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +304 -264
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +311 -277
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +327 -287
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +314 -278
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +113 -98
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +274 -226
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +349 -303
- package/dist/icons/head-icon/HeadIcon.stories.tsx +286 -246
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +312 -268
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +246 -210
- package/dist/icons/image-icon/ImageIcon.stories.tsx +330 -284
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +326 -282
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +330 -294
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +288 -234
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +386 -330
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +305 -263
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +295 -259
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +296 -256
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +322 -282
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +399 -359
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +314 -272
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +238 -206
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +322 -276
- package/dist/icons/message-icon/MessageIcon.stories.tsx +192 -170
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +348 -304
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +191 -167
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +380 -326
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +345 -291
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +310 -266
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +311 -271
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +311 -271
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +309 -271
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +248 -210
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +310 -262
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +274 -236
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +324 -280
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +323 -281
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +288 -240
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +315 -273
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +278 -234
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +161 -151
- package/dist/icons/search-icon/SearchIcon.stories.tsx +324 -284
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +306 -264
- package/dist/icons/share-icon/ShareIcon.stories.tsx +314 -272
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +281 -235
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +309 -250
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +317 -279
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +315 -279
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +299 -253
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +185 -169
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +192 -168
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +212 -178
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +290 -244
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +286 -234
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +272 -230
- package/dist/icons/sun-icon/SunIcon.stories.tsx +262 -226
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +321 -279
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +332 -282
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +394 -342
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +338 -290
- package/dist/icons/tick-icon/TickIcon.stories.tsx +364 -315
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +293 -253
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +396 -338
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +291 -247
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +309 -271
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +336 -290
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +382 -334
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +349 -305
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +327 -295
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +336 -296
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +314 -274
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +311 -261
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -11,9 +11,9 @@ const meta: Meta<typeof PencilIcon> = {
|
|
|
11
11
|
backgrounds: {
|
|
12
12
|
default: "dark",
|
|
13
13
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
14
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
15
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
16
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
17
|
],
|
|
18
18
|
},
|
|
19
19
|
docs: {
|
|
@@ -40,42 +40,42 @@ const meta: Meta<typeof PencilIcon> = {
|
|
|
40
40
|
background: transparent !important;
|
|
41
41
|
}
|
|
42
42
|
body {
|
|
43
|
-
background:
|
|
43
|
+
background: var(--color-fm-surface-primary) !important;
|
|
44
44
|
}
|
|
45
45
|
#storybook-docs {
|
|
46
|
-
background:
|
|
46
|
+
background: var(--color-fm-surface-primary) !important;
|
|
47
47
|
}
|
|
48
48
|
.sbdocs-preview {
|
|
49
49
|
background: transparent !important;
|
|
50
50
|
border: none !important;
|
|
51
51
|
}
|
|
52
52
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color:
|
|
53
|
+
color: var(--color-fm-icon-active) !important;
|
|
54
54
|
}
|
|
55
55
|
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color:
|
|
56
|
+
color: var(--color-fm-secondary) !important;
|
|
57
57
|
}
|
|
58
58
|
.sbdocs-code {
|
|
59
|
-
background:
|
|
60
|
-
color:
|
|
61
|
-
border: 1px solid
|
|
59
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
60
|
+
color: var(--color-fm-secondary-500) !important;
|
|
61
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
62
62
|
}
|
|
63
63
|
.sbdocs-pre {
|
|
64
|
-
background:
|
|
65
|
-
border: 1px solid
|
|
64
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
65
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
66
66
|
}
|
|
67
67
|
.sbdocs-table {
|
|
68
|
-
background:
|
|
69
|
-
border: 1px solid
|
|
68
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
69
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
70
70
|
}
|
|
71
71
|
.sbdocs-table th {
|
|
72
|
-
background:
|
|
73
|
-
color:
|
|
74
|
-
border-bottom: 1px solid
|
|
72
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
73
|
+
color: var(--color-fm-icon-active) !important;
|
|
74
|
+
border-bottom: 1px solid var(--color-fm-divider-secondary) !important;
|
|
75
75
|
}
|
|
76
76
|
.sbdocs-table td {
|
|
77
|
-
color:
|
|
78
|
-
border-bottom: 1px solid
|
|
77
|
+
color: var(--color-fm-secondary) !important;
|
|
78
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
|
|
79
79
|
}
|
|
80
80
|
@keyframes edit-pulse {
|
|
81
81
|
0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
|
|
@@ -97,19 +97,19 @@ const meta: Meta<typeof PencilIcon> = {
|
|
|
97
97
|
`}
|
|
98
98
|
</style>
|
|
99
99
|
|
|
100
|
-
<div className="
|
|
100
|
+
<div className="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
|
|
101
101
|
{/* Header */}
|
|
102
|
-
<div className="relative overflow-hidden border-b
|
|
103
|
-
<div className="absolute inset-0 bg-
|
|
102
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
103
|
+
<div className="from-fm-icon-info/10 to-fm-secondary-500/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
104
104
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
105
105
|
<div className="!space-y-6 text-center">
|
|
106
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border
|
|
107
|
-
<PencilIcon className="h-12 w-12
|
|
106
|
+
<div className="border-fm-icon-info/30 from-fm-icon-info/20 to-fm-secondary-500/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
107
|
+
<PencilIcon className="text-fm-icon-info h-12 w-12" />
|
|
108
108
|
</div>
|
|
109
109
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
110
110
|
PencilIcon
|
|
111
111
|
</h1>
|
|
112
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
112
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
113
113
|
A versatile pencil icon for editing content, writing tasks,
|
|
114
114
|
and modification actions. Perfect for edit buttons,
|
|
115
115
|
note-taking interfaces, and content creation flows. Built
|
|
@@ -120,28 +120,28 @@ const meta: Meta<typeof PencilIcon> = {
|
|
|
120
120
|
{/* Stats */}
|
|
121
121
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
122
122
|
<div className="text-center">
|
|
123
|
-
<div className="text-3xl font-bold
|
|
123
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
124
124
|
Edit
|
|
125
125
|
</div>
|
|
126
|
-
<div className="text-
|
|
126
|
+
<div className="text-fm-tertiary text-sm">
|
|
127
127
|
Content modification
|
|
128
128
|
</div>
|
|
129
129
|
</div>
|
|
130
|
-
<div className="h-8 w-px
|
|
130
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
131
131
|
<div className="text-center">
|
|
132
|
-
<div className="text-3xl font-bold
|
|
132
|
+
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
133
133
|
Write
|
|
134
134
|
</div>
|
|
135
|
-
<div className="text-
|
|
135
|
+
<div className="text-fm-tertiary text-sm">
|
|
136
136
|
Content creation
|
|
137
137
|
</div>
|
|
138
138
|
</div>
|
|
139
|
-
<div className="h-8 w-px
|
|
139
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
140
140
|
<div className="text-center">
|
|
141
|
-
<div className="text-3xl font-bold
|
|
141
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
142
142
|
Update
|
|
143
143
|
</div>
|
|
144
|
-
<div className="text-
|
|
144
|
+
<div className="text-fm-tertiary text-sm">
|
|
145
145
|
Data modification
|
|
146
146
|
</div>
|
|
147
147
|
</div>
|
|
@@ -154,16 +154,16 @@ const meta: Meta<typeof PencilIcon> = {
|
|
|
154
154
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
155
155
|
{/* Quick Usage */}
|
|
156
156
|
<div className="!space-y-8">
|
|
157
|
-
<h2 className="text-center text-3xl font-bold
|
|
157
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
158
158
|
Quick Start
|
|
159
159
|
</h2>
|
|
160
160
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
161
161
|
<div className="!space-y-4">
|
|
162
|
-
<h3 className="text-xl font-semibold
|
|
162
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
163
163
|
Basic Usage
|
|
164
164
|
</h3>
|
|
165
|
-
<div className="rounded-lg
|
|
166
|
-
<pre className="overflow-x-auto text-sm
|
|
165
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
166
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
167
167
|
{`import { PencilIcon } from "@icons/pencil-icon"
|
|
168
168
|
|
|
169
169
|
function EditButton() {
|
|
@@ -179,13 +179,15 @@ function EditButton() {
|
|
|
179
179
|
</div>
|
|
180
180
|
|
|
181
181
|
<div className="!space-y-4">
|
|
182
|
-
<h3 className="text-xl font-semibold
|
|
182
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
183
183
|
Live Preview
|
|
184
184
|
</h3>
|
|
185
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
186
|
-
<button className="flex items-center gap-3 rounded-lg border
|
|
187
|
-
<PencilIcon className="h-5 w-5
|
|
188
|
-
<span className="text-
|
|
185
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
186
|
+
<button className="border-fm-icon-info/20 bg-fm-icon-info/10 hover:bg-fm-icon-info/20 flex items-center gap-3 rounded-lg border px-4 py-2 transition-colors">
|
|
187
|
+
<PencilIcon className="text-fm-icon-info h-5 w-5" />
|
|
188
|
+
<span className="text-fm-icon-active">
|
|
189
|
+
Edit Content
|
|
190
|
+
</span>
|
|
189
191
|
</button>
|
|
190
192
|
</div>
|
|
191
193
|
</div>
|
|
@@ -194,120 +196,130 @@ function EditButton() {
|
|
|
194
196
|
|
|
195
197
|
{/* Props Documentation */}
|
|
196
198
|
<div className="!space-y-8">
|
|
197
|
-
<h2 className="text-center text-3xl font-bold
|
|
199
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
198
200
|
Props & Configuration
|
|
199
201
|
</h2>
|
|
200
202
|
|
|
201
|
-
<div className="overflow-hidden rounded-lg border
|
|
202
|
-
<div className="bg-
|
|
203
|
-
<h3 className="text-xl font-semibold
|
|
203
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
204
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
205
|
+
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
206
|
+
Props
|
|
207
|
+
</h3>
|
|
204
208
|
</div>
|
|
205
209
|
<table className="!my-0 w-full">
|
|
206
|
-
<thead className="bg-
|
|
207
|
-
<tr className="border-
|
|
208
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
210
|
+
<thead className="bg-fm-surface-secondary">
|
|
211
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
212
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
209
213
|
Prop
|
|
210
214
|
</th>
|
|
211
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
215
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
212
216
|
Type
|
|
213
217
|
</th>
|
|
214
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
218
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
215
219
|
Default
|
|
216
220
|
</th>
|
|
217
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
221
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
218
222
|
Description
|
|
219
223
|
</th>
|
|
220
224
|
</tr>
|
|
221
225
|
</thead>
|
|
222
226
|
<tbody>
|
|
223
227
|
{" "}
|
|
224
|
-
<tr className="
|
|
225
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
228
|
+
<tr className="bg-fm-surface-secondary!">
|
|
229
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
226
230
|
withAccessibility
|
|
227
231
|
</td>
|
|
228
|
-
<td className="px-6 py-4 text-sm
|
|
232
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
229
233
|
boolean
|
|
230
234
|
</td>
|
|
231
|
-
<td className="px-6 py-4 text-sm
|
|
235
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
232
236
|
true
|
|
233
237
|
</td>
|
|
234
|
-
<td className="px-6 py-4 text-sm
|
|
238
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
235
239
|
Whether to wrap the icon with accessibility feature
|
|
236
240
|
</td>
|
|
237
241
|
</tr>
|
|
238
|
-
<tr className="border-
|
|
239
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
242
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
243
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
240
244
|
height
|
|
241
245
|
</td>
|
|
242
|
-
<td className="px-6 py-4 text-sm
|
|
246
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
243
247
|
number | string
|
|
244
248
|
</td>
|
|
245
|
-
<td className="px-6 py-4 text-sm
|
|
246
|
-
|
|
249
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
250
|
+
16
|
|
251
|
+
</td>
|
|
252
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
247
253
|
Height of the icon in pixels
|
|
248
254
|
</td>
|
|
249
255
|
</tr>
|
|
250
|
-
<tr className="border-
|
|
251
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
256
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
257
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
252
258
|
stroke
|
|
253
259
|
</td>
|
|
254
|
-
<td className="px-6 py-4 text-sm
|
|
260
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
255
261
|
string
|
|
256
262
|
</td>
|
|
257
|
-
<td className="px-6 py-4 text-sm
|
|
263
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
258
264
|
currentColor
|
|
259
265
|
</td>
|
|
260
|
-
<td className="px-6 py-4 text-sm
|
|
266
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
261
267
|
Stroke color of the pencil outline
|
|
262
268
|
</td>
|
|
263
269
|
</tr>
|
|
264
|
-
<tr className="border-
|
|
265
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
270
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
271
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
266
272
|
strokeWidth
|
|
267
273
|
</td>
|
|
268
|
-
<td className="px-6 py-4 text-sm
|
|
274
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
269
275
|
number | string
|
|
270
276
|
</td>
|
|
271
|
-
<td className="px-6 py-4 text-sm
|
|
272
|
-
|
|
277
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
278
|
+
1
|
|
279
|
+
</td>
|
|
280
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
273
281
|
Thickness of the stroke lines
|
|
274
282
|
</td>
|
|
275
283
|
</tr>
|
|
276
|
-
<tr className="border-
|
|
277
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
284
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
285
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
278
286
|
strokeLinecap
|
|
279
287
|
</td>
|
|
280
|
-
<td className="px-6 py-4 text-sm
|
|
288
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
281
289
|
string
|
|
282
290
|
</td>
|
|
283
|
-
<td className="px-6 py-4 text-sm
|
|
291
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
284
292
|
round
|
|
285
293
|
</td>
|
|
286
|
-
<td className="px-6 py-4 text-sm
|
|
294
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
287
295
|
Style of line endings
|
|
288
296
|
</td>
|
|
289
297
|
</tr>
|
|
290
|
-
<tr className="border-
|
|
291
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
298
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
299
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
292
300
|
className
|
|
293
301
|
</td>
|
|
294
|
-
<td className="px-6 py-4 text-sm
|
|
302
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
295
303
|
string
|
|
296
304
|
</td>
|
|
297
|
-
<td className="px-6 py-4 text-sm
|
|
298
|
-
|
|
305
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
306
|
+
-
|
|
307
|
+
</td>
|
|
308
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
299
309
|
CSS classes for styling
|
|
300
310
|
</td>
|
|
301
311
|
</tr>
|
|
302
|
-
<tr className="
|
|
303
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
312
|
+
<tr className="bg-fm-surface-secondary!">
|
|
313
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
304
314
|
...svgProps
|
|
305
315
|
</td>
|
|
306
|
-
<td className="px-6 py-4 text-sm
|
|
316
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
307
317
|
SVGProps
|
|
308
318
|
</td>
|
|
309
|
-
<td className="px-6 py-4 text-sm
|
|
310
|
-
|
|
319
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
320
|
+
-
|
|
321
|
+
</td>
|
|
322
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
311
323
|
All standard SVG element props
|
|
312
324
|
</td>
|
|
313
325
|
</tr>
|
|
@@ -318,50 +330,62 @@ function EditButton() {
|
|
|
318
330
|
|
|
319
331
|
{/* Size Variations */}
|
|
320
332
|
<div className="!space-y-8">
|
|
321
|
-
<h2 className="text-center text-3xl font-bold
|
|
333
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
322
334
|
Size Variations
|
|
323
335
|
</h2>
|
|
324
|
-
<div className="rounded-lg border
|
|
336
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
325
337
|
<div className="!space-y-6">
|
|
326
338
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
327
339
|
<div className="!space-y-4">
|
|
328
|
-
<h3 className="text-lg font-semibold
|
|
340
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
329
341
|
Standard Sizes
|
|
330
342
|
</h3>
|
|
331
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
343
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
332
344
|
<div className="text-center">
|
|
333
|
-
<PencilIcon className="!mx-auto mb-2 h-3 w-3
|
|
334
|
-
<span className="text-
|
|
345
|
+
<PencilIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
346
|
+
<span className="text-fm-tertiary text-xs">
|
|
347
|
+
12px
|
|
348
|
+
</span>
|
|
335
349
|
</div>
|
|
336
350
|
<div className="text-center">
|
|
337
|
-
<PencilIcon className="!mx-auto mb-2 h-4 w-4
|
|
338
|
-
<span className="text-
|
|
351
|
+
<PencilIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
352
|
+
<span className="text-fm-tertiary text-xs">
|
|
353
|
+
16px
|
|
354
|
+
</span>
|
|
339
355
|
</div>
|
|
340
356
|
<div className="text-center">
|
|
341
|
-
<PencilIcon className="!mx-auto mb-2 h-5 w-5
|
|
342
|
-
<span className="text-
|
|
357
|
+
<PencilIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
358
|
+
<span className="text-fm-tertiary text-xs">
|
|
359
|
+
20px
|
|
360
|
+
</span>
|
|
343
361
|
</div>
|
|
344
362
|
<div className="text-center">
|
|
345
|
-
<PencilIcon className="!mx-auto mb-2 h-6 w-6
|
|
346
|
-
<span className="text-
|
|
363
|
+
<PencilIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
364
|
+
<span className="text-fm-tertiary text-xs">
|
|
365
|
+
24px
|
|
366
|
+
</span>
|
|
347
367
|
</div>
|
|
348
368
|
<div className="text-center">
|
|
349
|
-
<PencilIcon className="!mx-auto mb-2 h-8 w-8
|
|
350
|
-
<span className="text-
|
|
369
|
+
<PencilIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
370
|
+
<span className="text-fm-tertiary text-xs">
|
|
371
|
+
32px
|
|
372
|
+
</span>
|
|
351
373
|
</div>
|
|
352
374
|
<div className="text-center">
|
|
353
|
-
<PencilIcon className="!mx-auto mb-2 h-12 w-12
|
|
354
|
-
<span className="text-
|
|
375
|
+
<PencilIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
376
|
+
<span className="text-fm-tertiary text-xs">
|
|
377
|
+
48px
|
|
378
|
+
</span>
|
|
355
379
|
</div>
|
|
356
380
|
</div>
|
|
357
381
|
</div>
|
|
358
382
|
|
|
359
383
|
<div className="!space-y-4">
|
|
360
|
-
<h3 className="text-lg font-semibold
|
|
384
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
361
385
|
Code Example
|
|
362
386
|
</h3>
|
|
363
|
-
<div className="rounded-lg
|
|
364
|
-
<pre className="overflow-x-auto text-sm
|
|
387
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
388
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
365
389
|
{`// Small (16px)
|
|
366
390
|
<PencilIcon className="h-4 w-4" />
|
|
367
391
|
|
|
@@ -383,56 +407,56 @@ function EditButton() {
|
|
|
383
407
|
|
|
384
408
|
{/* Color Variations */}
|
|
385
409
|
<div className="!space-y-8">
|
|
386
|
-
<h2 className="text-center text-3xl font-bold
|
|
410
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
387
411
|
Color Variations
|
|
388
412
|
</h2>
|
|
389
413
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
390
414
|
<div className="!space-y-4">
|
|
391
|
-
<h3 className="text-lg font-semibold
|
|
415
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
392
416
|
Semantic Colors
|
|
393
417
|
</h3>
|
|
394
|
-
<div className="!space-y-4 rounded-lg border
|
|
418
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
395
419
|
<div className="flex items-center gap-4">
|
|
396
|
-
<PencilIcon className="h-6 w-6
|
|
420
|
+
<PencilIcon className="text-fm-icon-info h-6 w-6" />
|
|
397
421
|
<div>
|
|
398
|
-
<div className="text-sm font-medium
|
|
422
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
399
423
|
Primary Edit
|
|
400
424
|
</div>
|
|
401
|
-
<div className="text-
|
|
402
|
-
text-
|
|
425
|
+
<div className="text-fm-tertiary text-xs">
|
|
426
|
+
text-fm-icon-info
|
|
403
427
|
</div>
|
|
404
428
|
</div>
|
|
405
429
|
</div>
|
|
406
430
|
<div className="flex items-center gap-4">
|
|
407
|
-
<PencilIcon className="h-6 w-6
|
|
431
|
+
<PencilIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
408
432
|
<div>
|
|
409
|
-
<div className="text-sm font-medium
|
|
433
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
410
434
|
Creative
|
|
411
435
|
</div>
|
|
412
|
-
<div className="text-
|
|
413
|
-
text-
|
|
436
|
+
<div className="text-fm-tertiary text-xs">
|
|
437
|
+
text-fm-secondary-600
|
|
414
438
|
</div>
|
|
415
439
|
</div>
|
|
416
440
|
</div>
|
|
417
441
|
<div className="flex items-center gap-4">
|
|
418
|
-
<PencilIcon className="h-6 w-6
|
|
442
|
+
<PencilIcon className="text-fm-icon-info h-6 w-6" />
|
|
419
443
|
<div>
|
|
420
|
-
<div className="text-sm font-medium
|
|
444
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
421
445
|
Information
|
|
422
446
|
</div>
|
|
423
|
-
<div className="text-
|
|
424
|
-
text-
|
|
447
|
+
<div className="text-fm-tertiary text-xs">
|
|
448
|
+
text-fm-icon-info
|
|
425
449
|
</div>
|
|
426
450
|
</div>
|
|
427
451
|
</div>
|
|
428
452
|
<div className="flex items-center gap-4">
|
|
429
|
-
<PencilIcon className="h-6 w-6
|
|
453
|
+
<PencilIcon className="text-fm-placeholder h-6 w-6" />
|
|
430
454
|
<div>
|
|
431
|
-
<div className="text-sm font-medium
|
|
455
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
432
456
|
Disabled
|
|
433
457
|
</div>
|
|
434
|
-
<div className="text-
|
|
435
|
-
text-
|
|
458
|
+
<div className="text-fm-tertiary text-xs">
|
|
459
|
+
text-fm-placeholder
|
|
436
460
|
</div>
|
|
437
461
|
</div>
|
|
438
462
|
</div>
|
|
@@ -440,11 +464,11 @@ function EditButton() {
|
|
|
440
464
|
</div>
|
|
441
465
|
|
|
442
466
|
<div className="!space-y-4">
|
|
443
|
-
<h3 className="text-lg font-semibold
|
|
467
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
444
468
|
Custom Colors
|
|
445
469
|
</h3>
|
|
446
|
-
<div className="rounded-lg
|
|
447
|
-
<pre className="overflow-x-auto text-sm
|
|
470
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
471
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
448
472
|
{`// Using Tailwind classes
|
|
449
473
|
<PencilIcon className="h-6 w-6 text-indigo-400" />
|
|
450
474
|
<PencilIcon className="h-6 w-6 text-purple-500" />
|
|
@@ -469,29 +493,29 @@ function EditButton() {
|
|
|
469
493
|
|
|
470
494
|
{/* Usage Examples */}
|
|
471
495
|
<div className="!space-y-8">
|
|
472
|
-
<h2 className="text-center text-3xl font-bold
|
|
496
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
473
497
|
Usage Examples
|
|
474
498
|
</h2>
|
|
475
499
|
|
|
476
500
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
477
501
|
{/* Edit Button */}
|
|
478
502
|
<div className="!space-y-4">
|
|
479
|
-
<h3 className="text-lg font-semibold
|
|
503
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
480
504
|
Edit Button
|
|
481
505
|
</h3>
|
|
482
506
|
<div className="!space-y-4">
|
|
483
507
|
<div className="flex gap-4">
|
|
484
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
508
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
485
509
|
<PencilIcon className="h-4 w-4" />
|
|
486
510
|
Edit Profile
|
|
487
511
|
</button>
|
|
488
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
512
|
+
<button className="border-fm-secondary-500/30 bg-fm-secondary-500/20 text-fm-secondary-600 hover:bg-fm-secondary-500/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
489
513
|
<PencilIcon className="h-4 w-4" />
|
|
490
514
|
Edit Post
|
|
491
515
|
</button>
|
|
492
516
|
</div>
|
|
493
|
-
<div className="rounded-lg
|
|
494
|
-
<pre className="overflow-x-auto text-sm
|
|
517
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
518
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
495
519
|
{`<button className="flex items-center gap-2 bg-indigo-500/20 border border-indigo-500/30 px-4 py-2 rounded-lg">
|
|
496
520
|
<PencilIcon className="h-4 w-4" />
|
|
497
521
|
Edit Profile
|
|
@@ -508,30 +532,30 @@ function EditButton() {
|
|
|
508
532
|
|
|
509
533
|
{/* Inline Edit */}
|
|
510
534
|
<div className="!space-y-4">
|
|
511
|
-
<h3 className="text-lg font-semibold
|
|
535
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
512
536
|
Inline Edit
|
|
513
537
|
</h3>
|
|
514
538
|
<div className="!space-y-4">
|
|
515
539
|
<div className="!space-y-3">
|
|
516
|
-
<div className="group flex items-center gap-3 rounded-lg border
|
|
517
|
-
<span className="flex-1
|
|
540
|
+
<div className="group border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3">
|
|
541
|
+
<span className="text-fm-icon-active flex-1">
|
|
518
542
|
Profile Name
|
|
519
543
|
</span>
|
|
520
|
-
<button className="rounded p-1
|
|
544
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-info rounded p-1 opacity-0 transition-all group-hover:opacity-100">
|
|
521
545
|
<PencilIcon className="h-4 w-4" />
|
|
522
546
|
</button>
|
|
523
547
|
</div>
|
|
524
|
-
<div className="group flex items-center gap-3 rounded-lg border
|
|
525
|
-
<span className="flex-1
|
|
548
|
+
<div className="group border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3">
|
|
549
|
+
<span className="text-fm-icon-active flex-1">
|
|
526
550
|
Email Address
|
|
527
551
|
</span>
|
|
528
|
-
<button className="rounded p-1
|
|
552
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-info rounded p-1 opacity-0 transition-all group-hover:opacity-100">
|
|
529
553
|
<PencilIcon className="h-4 w-4" />
|
|
530
554
|
</button>
|
|
531
555
|
</div>
|
|
532
556
|
</div>
|
|
533
|
-
<div className="rounded-lg
|
|
534
|
-
<pre className="overflow-x-auto text-sm
|
|
557
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
558
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
535
559
|
{`<div className="group flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
|
|
536
560
|
<span className="flex-1 text-white">Profile Name</span>
|
|
537
561
|
<button className="rounded p-1 text-white/60 opacity-0 transition-all group-hover:opacity-100 hover:bg-white/10 hover:text-indigo-400">
|
|
@@ -545,27 +569,27 @@ function EditButton() {
|
|
|
545
569
|
|
|
546
570
|
{/* Content Editor */}
|
|
547
571
|
<div className="!space-y-4">
|
|
548
|
-
<h3 className="text-lg font-semibold
|
|
572
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
549
573
|
Content Editor Toolbar
|
|
550
574
|
</h3>
|
|
551
575
|
<div className="!space-y-4">
|
|
552
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
553
|
-
<button className="
|
|
576
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border p-2">
|
|
577
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-info rounded p-2">
|
|
554
578
|
<PencilIcon className="h-4 w-4" />
|
|
555
579
|
</button>
|
|
556
|
-
<div className="h-6 w-px
|
|
557
|
-
<button className="
|
|
580
|
+
<div className="bg-fm-divider-primary h-6 w-px" />
|
|
581
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-active rounded p-2">
|
|
558
582
|
<span className="text-sm font-bold">B</span>
|
|
559
583
|
</button>
|
|
560
|
-
<button className="
|
|
584
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-active rounded p-2">
|
|
561
585
|
<span className="text-sm italic">I</span>
|
|
562
586
|
</button>
|
|
563
|
-
<button className="
|
|
587
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-active rounded p-2">
|
|
564
588
|
<span className="text-sm underline">U</span>
|
|
565
589
|
</button>
|
|
566
590
|
</div>
|
|
567
|
-
<div className="rounded-lg
|
|
568
|
-
<pre className="overflow-x-auto text-sm
|
|
591
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
592
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
569
593
|
{`<div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 p-2">
|
|
570
594
|
<button className="rounded p-2 text-white/60 hover:bg-white/10 hover:text-indigo-400">
|
|
571
595
|
<PencilIcon className="h-4 w-4" />
|
|
@@ -580,37 +604,37 @@ function EditButton() {
|
|
|
580
604
|
|
|
581
605
|
{/* Note Taking */}
|
|
582
606
|
<div className="!space-y-4">
|
|
583
|
-
<h3 className="text-lg font-semibold
|
|
607
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
584
608
|
Note Taking Interface
|
|
585
609
|
</h3>
|
|
586
610
|
<div className="!space-y-4">
|
|
587
|
-
<div className="rounded-lg border
|
|
611
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
588
612
|
<div className="!mb-3 flex items-center justify-between">
|
|
589
|
-
<h4 className="font-medium
|
|
613
|
+
<h4 className="text-fm-icon-active! font-medium">
|
|
590
614
|
Quick Notes
|
|
591
615
|
</h4>
|
|
592
|
-
<button className="flex items-center gap-2 rounded border
|
|
616
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 flex items-center gap-2 rounded border px-3 py-1 text-sm transition-colors">
|
|
593
617
|
<PencilIcon className="h-3 w-3" />
|
|
594
618
|
New Note
|
|
595
619
|
</button>
|
|
596
620
|
</div>
|
|
597
621
|
<div className="!space-y-2">
|
|
598
|
-
<div className="flex items-center gap-3 rounded border
|
|
599
|
-
<PencilIcon className="h-4 w-4
|
|
600
|
-
<span className="
|
|
622
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded border p-3">
|
|
623
|
+
<PencilIcon className="text-fm-secondary-600 h-4 w-4" />
|
|
624
|
+
<span className="text-fm-icon-active/80 flex-1">
|
|
601
625
|
Meeting notes for Q4 planning
|
|
602
626
|
</span>
|
|
603
627
|
</div>
|
|
604
|
-
<div className="flex items-center gap-3 rounded border
|
|
605
|
-
<PencilIcon className="h-4 w-4
|
|
606
|
-
<span className="
|
|
628
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded border p-3">
|
|
629
|
+
<PencilIcon className="text-fm-icon-info h-4 w-4" />
|
|
630
|
+
<span className="text-fm-icon-active/80 flex-1">
|
|
607
631
|
Project ideas and sketches
|
|
608
632
|
</span>
|
|
609
633
|
</div>
|
|
610
634
|
</div>
|
|
611
635
|
</div>
|
|
612
|
-
<div className="rounded-lg
|
|
613
|
-
<pre className="overflow-x-auto text-sm
|
|
636
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
637
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
614
638
|
{`<button className="flex items-center gap-2 rounded border border-indigo-500/30 bg-indigo-500/20 px-3 py-1 text-sm">
|
|
615
639
|
<PencilIcon className="h-3 w-3" />
|
|
616
640
|
New Note
|
|
@@ -629,55 +653,55 @@ function EditButton() {
|
|
|
629
653
|
|
|
630
654
|
{/* Interactive States */}
|
|
631
655
|
<div className="!space-y-8">
|
|
632
|
-
<h2 className="text-center text-3xl font-bold
|
|
656
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
633
657
|
Interactive States & Animations
|
|
634
658
|
</h2>
|
|
635
659
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
636
660
|
<div className="!space-y-4">
|
|
637
|
-
<h3 className="text-lg font-semibold
|
|
661
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
638
662
|
Hover & Animation Effects
|
|
639
663
|
</h3>
|
|
640
|
-
<div className="!space-y-4 rounded-lg border
|
|
664
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
641
665
|
<div className="flex items-center gap-4">
|
|
642
|
-
<PencilIcon className="h-6 w-6
|
|
666
|
+
<PencilIcon className="text-fm-tertiary hover:text-fm-icon-info h-6 w-6 transition-colors" />
|
|
643
667
|
<div>
|
|
644
|
-
<div className="text-sm font-medium
|
|
668
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
645
669
|
Color Change
|
|
646
670
|
</div>
|
|
647
|
-
<div className="text-
|
|
671
|
+
<div className="text-fm-tertiary text-xs">
|
|
648
672
|
Hover to see effect
|
|
649
673
|
</div>
|
|
650
674
|
</div>
|
|
651
675
|
</div>
|
|
652
676
|
<div className="flex items-center gap-4">
|
|
653
|
-
<PencilIcon className="h-6 w-6
|
|
677
|
+
<PencilIcon className="text-fm-icon-active h-6 w-6 transition-transform hover:scale-125" />
|
|
654
678
|
<div>
|
|
655
|
-
<div className="text-sm font-medium
|
|
679
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
656
680
|
Scale Up
|
|
657
681
|
</div>
|
|
658
|
-
<div className="text-
|
|
682
|
+
<div className="text-fm-tertiary text-xs">
|
|
659
683
|
Scale on hover
|
|
660
684
|
</div>
|
|
661
685
|
</div>
|
|
662
686
|
</div>
|
|
663
687
|
<div className="flex items-center gap-4">
|
|
664
|
-
<PencilIcon className="animate-edit-pulse h-6 w-6
|
|
688
|
+
<PencilIcon className="animate-edit-pulse text-fm-icon-info h-6 w-6" />
|
|
665
689
|
<div>
|
|
666
|
-
<div className="text-sm font-medium
|
|
690
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
667
691
|
Edit Pulse
|
|
668
692
|
</div>
|
|
669
|
-
<div className="text-
|
|
693
|
+
<div className="text-fm-tertiary text-xs">
|
|
670
694
|
Continuous animation
|
|
671
695
|
</div>
|
|
672
696
|
</div>
|
|
673
697
|
</div>
|
|
674
698
|
<div className="flex items-center gap-4">
|
|
675
|
-
<PencilIcon className="animate-pencil-draw h-6 w-6
|
|
699
|
+
<PencilIcon className="animate-pencil-draw text-fm-secondary-600 h-6 w-6" />
|
|
676
700
|
<div>
|
|
677
|
-
<div className="text-sm font-medium
|
|
701
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
678
702
|
Drawing Motion
|
|
679
703
|
</div>
|
|
680
|
-
<div className="text-
|
|
704
|
+
<div className="text-fm-tertiary text-xs">
|
|
681
705
|
Writing animation
|
|
682
706
|
</div>
|
|
683
707
|
</div>
|
|
@@ -686,11 +710,11 @@ function EditButton() {
|
|
|
686
710
|
</div>
|
|
687
711
|
|
|
688
712
|
<div className="!space-y-4">
|
|
689
|
-
<h3 className="text-lg font-semibold
|
|
713
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
690
714
|
State Examples
|
|
691
715
|
</h3>
|
|
692
|
-
<div className="rounded-lg
|
|
693
|
-
<pre className="overflow-x-auto text-sm
|
|
716
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
717
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
694
718
|
{`// Color change on hover
|
|
695
719
|
<PencilIcon className="h-6 w-6 text-white/60 transition-colors hover:text-indigo-400" />
|
|
696
720
|
|
|
@@ -713,64 +737,64 @@ function EditButton() {
|
|
|
713
737
|
|
|
714
738
|
{/* Accessibility */}
|
|
715
739
|
<div className="!space-y-8">
|
|
716
|
-
<h2 className="text-center text-3xl font-bold
|
|
740
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
717
741
|
Accessibility Features
|
|
718
742
|
</h2>
|
|
719
743
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
720
|
-
<div className="!space-y-4 rounded-lg border
|
|
721
|
-
<h3 className="text-lg font-semibold
|
|
744
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
745
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
722
746
|
✅ Built-in Features
|
|
723
747
|
</h3>
|
|
724
|
-
<ul className="!space-y-2 text-sm
|
|
725
|
-
<li className="
|
|
748
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
749
|
+
<li className="text-fm-secondary!">
|
|
726
750
|
Uses Radix UI AccessibleIcon wrapper
|
|
727
751
|
</li>
|
|
728
|
-
<li className="
|
|
752
|
+
<li className="text-fm-secondary!">
|
|
729
753
|
Provides screen reader label "Pencil icon"
|
|
730
754
|
</li>
|
|
731
|
-
<li className="
|
|
755
|
+
<li className="text-fm-secondary!">
|
|
732
756
|
Supports keyboard navigation when interactive
|
|
733
757
|
</li>
|
|
734
|
-
<li className="
|
|
758
|
+
<li className="text-fm-secondary!">
|
|
735
759
|
Maintains proper color contrast ratios
|
|
736
760
|
</li>
|
|
737
|
-
<li className="
|
|
761
|
+
<li className="text-fm-secondary!">
|
|
738
762
|
Scales with user's font size preferences
|
|
739
763
|
</li>
|
|
740
764
|
</ul>
|
|
741
765
|
</div>
|
|
742
766
|
|
|
743
|
-
<div className="!space-y-4 rounded-lg border
|
|
744
|
-
<h3 className="text-lg font-semibold
|
|
767
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
768
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
745
769
|
💡 Best Practices
|
|
746
770
|
</h3>
|
|
747
|
-
<ul className="!space-y-2 text-sm
|
|
748
|
-
<li className="
|
|
771
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
772
|
+
<li className="text-fm-secondary!">
|
|
749
773
|
Always provide descriptive button labels
|
|
750
774
|
</li>
|
|
751
|
-
<li className="
|
|
775
|
+
<li className="text-fm-secondary!">
|
|
752
776
|
Use consistent placement for edit actions
|
|
753
777
|
</li>
|
|
754
|
-
<li className="
|
|
778
|
+
<li className="text-fm-secondary!">
|
|
755
779
|
Ensure sufficient click/touch target sizes
|
|
756
780
|
</li>
|
|
757
|
-
<li className="
|
|
781
|
+
<li className="text-fm-secondary!">
|
|
758
782
|
Add focus states for keyboard navigation
|
|
759
783
|
</li>
|
|
760
|
-
<li className="
|
|
784
|
+
<li className="text-fm-secondary!">
|
|
761
785
|
Consider motion sensitivity for animations
|
|
762
786
|
</li>
|
|
763
787
|
</ul>
|
|
764
788
|
</div>
|
|
765
789
|
</div>
|
|
766
790
|
|
|
767
|
-
<div className="rounded-lg border
|
|
768
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
791
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
792
|
+
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
769
793
|
Custom Accessibility Implementation
|
|
770
794
|
</h3>
|
|
771
795
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
772
|
-
<div className="rounded-lg
|
|
773
|
-
<pre className="overflow-x-auto text-sm
|
|
796
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
797
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
774
798
|
{`// Edit button with proper ARIA
|
|
775
799
|
<button
|
|
776
800
|
aria-label="Edit profile information"
|
|
@@ -806,13 +830,13 @@ function EditButton() {
|
|
|
806
830
|
</pre>
|
|
807
831
|
</div>
|
|
808
832
|
<div className="!space-y-4">
|
|
809
|
-
<p className="text-
|
|
833
|
+
<p className="text-fm-secondary! text-sm">
|
|
810
834
|
When using PencilIcon for editing functionality, provide
|
|
811
835
|
clear context about what will be edited and any related
|
|
812
836
|
actions.
|
|
813
837
|
</p>
|
|
814
|
-
<div className="
|
|
815
|
-
<div className="flex items-center gap-2 text-sm
|
|
838
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
839
|
+
<div className="text-fm-icon-info flex items-center gap-2 text-sm">
|
|
816
840
|
<PencilIcon className="h-4 w-4" />
|
|
817
841
|
<span>
|
|
818
842
|
This approach gives screen readers clear context
|
|
@@ -827,48 +851,60 @@ function EditButton() {
|
|
|
827
851
|
|
|
828
852
|
{/* Related Icons */}
|
|
829
853
|
<div className="!space-y-8">
|
|
830
|
-
<h2 className="text-center text-3xl font-bold
|
|
854
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
831
855
|
Related Icons
|
|
832
856
|
</h2>
|
|
833
857
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
834
|
-
<div className="!space-y-3 rounded-lg border
|
|
835
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
858
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
859
|
+
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
836
860
|
<span className="text-2xl">💾</span>
|
|
837
861
|
</div>
|
|
838
862
|
<div>
|
|
839
|
-
<div className="font-medium
|
|
840
|
-
|
|
863
|
+
<div className="text-fm-icon-active font-medium">
|
|
864
|
+
SaveIcon
|
|
865
|
+
</div>
|
|
866
|
+
<div className="text-fm-tertiary text-xs">
|
|
867
|
+
Save changes
|
|
868
|
+
</div>
|
|
841
869
|
</div>
|
|
842
870
|
</div>
|
|
843
|
-
<div className="!space-y-3 rounded-lg border
|
|
844
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
871
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
872
|
+
<div className="bg-fm-icon-negative/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
845
873
|
<span className="text-2xl">🗑️</span>
|
|
846
874
|
</div>
|
|
847
875
|
<div>
|
|
848
|
-
<div className="font-medium
|
|
849
|
-
|
|
876
|
+
<div className="text-fm-icon-active font-medium">
|
|
877
|
+
DeleteIcon
|
|
878
|
+
</div>
|
|
879
|
+
<div className="text-fm-tertiary text-xs">
|
|
850
880
|
Remove content
|
|
851
881
|
</div>
|
|
852
882
|
</div>
|
|
853
883
|
</div>
|
|
854
|
-
<div className="!space-y-3 rounded-lg border
|
|
855
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
884
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
885
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
856
886
|
<span className="text-2xl">📋</span>
|
|
857
887
|
</div>
|
|
858
888
|
<div>
|
|
859
|
-
<div className="font-medium
|
|
860
|
-
|
|
889
|
+
<div className="text-fm-icon-active font-medium">
|
|
890
|
+
CopyIcon
|
|
891
|
+
</div>
|
|
892
|
+
<div className="text-fm-tertiary text-xs">
|
|
861
893
|
Duplicate content
|
|
862
894
|
</div>
|
|
863
895
|
</div>
|
|
864
896
|
</div>
|
|
865
|
-
<div className="!space-y-3 rounded-lg border
|
|
866
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
897
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
898
|
+
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
867
899
|
<span className="text-2xl">📝</span>
|
|
868
900
|
</div>
|
|
869
901
|
<div>
|
|
870
|
-
<div className="font-medium
|
|
871
|
-
|
|
902
|
+
<div className="text-fm-icon-active font-medium">
|
|
903
|
+
NoteIcon
|
|
904
|
+
</div>
|
|
905
|
+
<div className="text-fm-tertiary text-xs">
|
|
906
|
+
Create notes
|
|
907
|
+
</div>
|
|
872
908
|
</div>
|
|
873
909
|
</div>
|
|
874
910
|
</div>
|
|
@@ -876,14 +912,14 @@ function EditButton() {
|
|
|
876
912
|
</div>
|
|
877
913
|
|
|
878
914
|
{/* Footer */}
|
|
879
|
-
<div className="border-
|
|
915
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
880
916
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
881
917
|
<div className="!space-y-4 text-center">
|
|
882
|
-
<p className="
|
|
918
|
+
<p className="text-fm-tertiary!">
|
|
883
919
|
PencilIcon is part of the Aural UI icon library, built for
|
|
884
920
|
editing, writing, and content modification interfaces.
|
|
885
921
|
</p>
|
|
886
|
-
<p className="text-
|
|
922
|
+
<p className="text-fm-placeholder! text-sm">
|
|
887
923
|
All icons use Radix UI's AccessibleIcon for screen reader
|
|
888
924
|
compatibility and follow WCAG guidelines for interactive
|
|
889
925
|
elements.
|
|
@@ -938,8 +974,8 @@ const storyParameters = {
|
|
|
938
974
|
backgrounds: {
|
|
939
975
|
default: "dark",
|
|
940
976
|
values: [
|
|
941
|
-
{ name: "dark", value: "
|
|
942
|
-
{ name: "darker", value: "
|
|
977
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
978
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
943
979
|
],
|
|
944
980
|
},
|
|
945
981
|
}
|
|
@@ -948,12 +984,12 @@ export const Default: Story = {
|
|
|
948
984
|
args: {
|
|
949
985
|
width: 24,
|
|
950
986
|
height: 24,
|
|
951
|
-
className: "text-
|
|
987
|
+
className: "text-fm-icon-info",
|
|
952
988
|
withAccessibility: true,
|
|
953
989
|
},
|
|
954
990
|
parameters: storyParameters,
|
|
955
991
|
render: (args) => (
|
|
956
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
992
|
+
<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">
|
|
957
993
|
<PencilIcon {...args} />
|
|
958
994
|
</div>
|
|
959
995
|
),
|
|
@@ -970,30 +1006,30 @@ export const SizeVariations: Story = {
|
|
|
970
1006
|
},
|
|
971
1007
|
},
|
|
972
1008
|
render: () => (
|
|
973
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
1009
|
+
<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">
|
|
974
1010
|
<div className="text-center">
|
|
975
|
-
<PencilIcon className="!mx-auto mb-2 h-3 w-3
|
|
976
|
-
<span className="text-
|
|
1011
|
+
<PencilIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
1012
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
977
1013
|
</div>
|
|
978
1014
|
<div className="text-center">
|
|
979
|
-
<PencilIcon className="!mx-auto mb-2 h-4 w-4
|
|
980
|
-
<span className="text-
|
|
1015
|
+
<PencilIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
1016
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
981
1017
|
</div>
|
|
982
1018
|
<div className="text-center">
|
|
983
|
-
<PencilIcon className="!mx-auto mb-2 h-5 w-5
|
|
984
|
-
<span className="text-
|
|
1019
|
+
<PencilIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
1020
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
985
1021
|
</div>
|
|
986
1022
|
<div className="text-center">
|
|
987
|
-
<PencilIcon className="!mx-auto mb-2 h-6 w-6
|
|
988
|
-
<span className="text-
|
|
1023
|
+
<PencilIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
1024
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
989
1025
|
</div>
|
|
990
1026
|
<div className="text-center">
|
|
991
|
-
<PencilIcon className="!mx-auto mb-2 h-8 w-8
|
|
992
|
-
<span className="text-
|
|
1027
|
+
<PencilIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
1028
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
993
1029
|
</div>
|
|
994
1030
|
<div className="text-center">
|
|
995
|
-
<PencilIcon className="!mx-auto mb-2 h-12 w-12
|
|
996
|
-
<span className="text-
|
|
1031
|
+
<PencilIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
1032
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
997
1033
|
</div>
|
|
998
1034
|
</div>
|
|
999
1035
|
),
|
|
@@ -1010,34 +1046,38 @@ export const ColorVariations: Story = {
|
|
|
1010
1046
|
},
|
|
1011
1047
|
},
|
|
1012
1048
|
render: () => (
|
|
1013
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
1049
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-linear-to-br p-8 md:grid-cols-4">
|
|
1014
1050
|
<div className="text-center">
|
|
1015
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1016
|
-
<PencilIcon className="h-8 w-8
|
|
1051
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1052
|
+
<PencilIcon className="text-fm-icon-info h-8 w-8" />
|
|
1017
1053
|
</div>
|
|
1018
|
-
<div className="text-sm font-medium
|
|
1019
|
-
<div className="text-
|
|
1054
|
+
<div className="text-fm-icon-active text-sm font-medium">Primary</div>
|
|
1055
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1020
1056
|
</div>
|
|
1021
1057
|
<div className="text-center">
|
|
1022
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1023
|
-
<PencilIcon className="h-8 w-8
|
|
1058
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1059
|
+
<PencilIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
1060
|
+
</div>
|
|
1061
|
+
<div className="text-fm-icon-active text-sm font-medium">Creative</div>
|
|
1062
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
1063
|
+
text-fm-secondary-600
|
|
1024
1064
|
</div>
|
|
1025
|
-
<div className="text-sm font-medium text-white">Creative</div>
|
|
1026
|
-
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
1027
1065
|
</div>
|
|
1028
1066
|
<div className="text-center">
|
|
1029
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1030
|
-
<PencilIcon className="h-8 w-8
|
|
1067
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1068
|
+
<PencilIcon className="text-fm-icon-info h-8 w-8" />
|
|
1031
1069
|
</div>
|
|
1032
|
-
<div className="text-sm font-medium
|
|
1033
|
-
|
|
1070
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
1071
|
+
Information
|
|
1072
|
+
</div>
|
|
1073
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1034
1074
|
</div>
|
|
1035
1075
|
<div className="text-center">
|
|
1036
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1037
|
-
<PencilIcon className="h-8 w-8
|
|
1076
|
+
<div className="border-fm-divider-primary bg-fm-surface-tertiary/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1077
|
+
<PencilIcon className="text-fm-placeholder h-8 w-8" />
|
|
1038
1078
|
</div>
|
|
1039
|
-
<div className="text-sm font-medium
|
|
1040
|
-
<div className="text-
|
|
1079
|
+
<div className="text-fm-icon-active text-sm font-medium">Disabled</div>
|
|
1080
|
+
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
1041
1081
|
</div>
|
|
1042
1082
|
</div>
|
|
1043
1083
|
),
|
|
@@ -1054,16 +1094,18 @@ export const UsageExamples: Story = {
|
|
|
1054
1094
|
},
|
|
1055
1095
|
},
|
|
1056
1096
|
render: () => (
|
|
1057
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
1097
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
1058
1098
|
{/* Edit Button */}
|
|
1059
1099
|
<div className="!space-y-2">
|
|
1060
|
-
<h3 className="text-sm font-medium
|
|
1100
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1101
|
+
Edit Buttons
|
|
1102
|
+
</h3>
|
|
1061
1103
|
<div className="flex gap-4">
|
|
1062
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
1104
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
1063
1105
|
<PencilIcon className="h-4 w-4" />
|
|
1064
1106
|
Edit Profile
|
|
1065
1107
|
</button>
|
|
1066
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
1108
|
+
<button className="border-fm-secondary-500/30 bg-fm-secondary-500/20 text-fm-secondary-600 hover:bg-fm-secondary-500/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
1067
1109
|
<PencilIcon className="h-4 w-4" />
|
|
1068
1110
|
Edit Post
|
|
1069
1111
|
</button>
|
|
@@ -1072,17 +1114,17 @@ export const UsageExamples: Story = {
|
|
|
1072
1114
|
|
|
1073
1115
|
{/* Inline Edit */}
|
|
1074
1116
|
<div className="!space-y-2">
|
|
1075
|
-
<h3 className="text-sm font-medium
|
|
1117
|
+
<h3 className="text-fm-icon-active text-sm font-medium">Inline Edit</h3>
|
|
1076
1118
|
<div className="!space-y-2">
|
|
1077
|
-
<div className="group flex items-center gap-3 rounded-lg border
|
|
1078
|
-
<span className="flex-1
|
|
1079
|
-
<button className="rounded p-1
|
|
1119
|
+
<div className="group border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3">
|
|
1120
|
+
<span className="text-fm-icon-active flex-1">Profile Name</span>
|
|
1121
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-info rounded p-1 opacity-0 transition-all group-hover:opacity-100">
|
|
1080
1122
|
<PencilIcon className="h-4 w-4" />
|
|
1081
1123
|
</button>
|
|
1082
1124
|
</div>
|
|
1083
|
-
<div className="group flex items-center gap-3 rounded-lg border
|
|
1084
|
-
<span className="flex-1
|
|
1085
|
-
<button className="rounded p-1
|
|
1125
|
+
<div className="group border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3">
|
|
1126
|
+
<span className="text-fm-icon-active flex-1">Email Address</span>
|
|
1127
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-info rounded p-1 opacity-0 transition-all group-hover:opacity-100">
|
|
1086
1128
|
<PencilIcon className="h-4 w-4" />
|
|
1087
1129
|
</button>
|
|
1088
1130
|
</div>
|
|
@@ -1091,21 +1133,21 @@ export const UsageExamples: Story = {
|
|
|
1091
1133
|
|
|
1092
1134
|
{/* Content Editor */}
|
|
1093
1135
|
<div className="!space-y-2">
|
|
1094
|
-
<h3 className="text-sm font-medium
|
|
1136
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1095
1137
|
Content Editor Toolbar
|
|
1096
1138
|
</h3>
|
|
1097
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
1098
|
-
<button className="
|
|
1139
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border p-2">
|
|
1140
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-info rounded p-2">
|
|
1099
1141
|
<PencilIcon className="h-4 w-4" />
|
|
1100
1142
|
</button>
|
|
1101
|
-
<div className="h-6 w-px
|
|
1102
|
-
<button className="
|
|
1143
|
+
<div className="bg-fm-divider-primary h-6 w-px" />
|
|
1144
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-active rounded p-2">
|
|
1103
1145
|
<span className="text-sm font-bold">B</span>
|
|
1104
1146
|
</button>
|
|
1105
|
-
<button className="
|
|
1147
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-active rounded p-2">
|
|
1106
1148
|
<span className="text-sm italic">I</span>
|
|
1107
1149
|
</button>
|
|
1108
|
-
<button className="
|
|
1150
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-active rounded p-2">
|
|
1109
1151
|
<span className="text-sm underline">U</span>
|
|
1110
1152
|
</button>
|
|
1111
1153
|
</div>
|
|
@@ -1127,11 +1169,11 @@ export const Playground: Story = {
|
|
|
1127
1169
|
args: {
|
|
1128
1170
|
width: 32,
|
|
1129
1171
|
height: 32,
|
|
1130
|
-
className: "text-
|
|
1172
|
+
className: "text-fm-icon-info",
|
|
1131
1173
|
},
|
|
1132
1174
|
render: (args) => (
|
|
1133
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1134
|
-
<div className="rounded-lg border
|
|
1175
|
+
<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">
|
|
1176
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
1135
1177
|
<PencilIcon {...args} />
|
|
1136
1178
|
</div>
|
|
1137
1179
|
</div>
|