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 EditBigIcon> = {
|
|
|
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,59 +40,59 @@ const meta: Meta<typeof EditBigIcon> = {
|
|
|
40
40
|
background: transparent ;
|
|
41
41
|
}
|
|
42
42
|
body {
|
|
43
|
-
background:
|
|
43
|
+
background: var(--color-fm-surface-primary) ;
|
|
44
44
|
}
|
|
45
45
|
#storybook-docs {
|
|
46
|
-
background:
|
|
46
|
+
background: var(--color-fm-surface-primary) ;
|
|
47
47
|
}
|
|
48
48
|
.sbdocs-preview {
|
|
49
49
|
background: transparent ;
|
|
50
50
|
border: none ;
|
|
51
51
|
}
|
|
52
52
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color:
|
|
53
|
+
color: var(--color-fm-icon-active) ;
|
|
54
54
|
}
|
|
55
55
|
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color:
|
|
56
|
+
color: var(--color-fm-secondary) ;
|
|
57
57
|
}
|
|
58
58
|
.sbdocs-code {
|
|
59
|
-
background:
|
|
60
|
-
color:
|
|
61
|
-
border: 1px solid
|
|
59
|
+
background: var(--color-fm-surface-secondary) ;
|
|
60
|
+
color: var(--color-fm-secondary-500) ;
|
|
61
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
62
62
|
}
|
|
63
63
|
.sbdocs-pre {
|
|
64
|
-
background:
|
|
65
|
-
border: 1px solid
|
|
64
|
+
background: var(--color-fm-surface-secondary) ;
|
|
65
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
66
66
|
}
|
|
67
67
|
.sbdocs-table {
|
|
68
|
-
background:
|
|
69
|
-
border: 1px solid
|
|
68
|
+
background: var(--color-fm-surface-secondary) ;
|
|
69
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
70
70
|
}
|
|
71
71
|
.sbdocs-table th {
|
|
72
|
-
background:
|
|
73
|
-
color:
|
|
74
|
-
border-bottom: 1px solid
|
|
72
|
+
background: var(--color-fm-surface-secondary) ;
|
|
73
|
+
color: var(--color-fm-icon-active) ;
|
|
74
|
+
border-bottom: 1px solid var(--color-fm-divider-secondary) ;
|
|
75
75
|
}
|
|
76
76
|
.sbdocs-table td {
|
|
77
|
-
color:
|
|
78
|
-
border-bottom: 1px solid
|
|
77
|
+
color: var(--color-fm-secondary) ;
|
|
78
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
|
|
79
79
|
}
|
|
80
80
|
`}
|
|
81
81
|
</style>
|
|
82
82
|
|
|
83
|
-
<div className="
|
|
83
|
+
<div className="bg-fm-surface-primary min-h-screen">
|
|
84
84
|
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b
|
|
86
|
-
<div className="absolute inset-0 bg-
|
|
85
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
86
|
+
<div className="from-fm-icon-info/10 to-fm-secondary-500/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
87
87
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
88
|
<div className="!space-y-6 text-center">
|
|
89
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border
|
|
90
|
-
<EditBigIcon className="h-12 w-12
|
|
89
|
+
<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">
|
|
90
|
+
<EditBigIcon className="text-fm-icon-info h-12 w-12" />
|
|
91
91
|
</div>
|
|
92
92
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
93
|
EditBigIcon
|
|
94
94
|
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
95
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
96
96
|
A comprehensive edit icon for content modification, form
|
|
97
97
|
editing, and data management interfaces. Features a detailed
|
|
98
98
|
pencil and paper design that clearly communicates editing
|
|
@@ -103,28 +103,28 @@ const meta: Meta<typeof EditBigIcon> = {
|
|
|
103
103
|
{/* Stats */}
|
|
104
104
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
105
105
|
<div className="text-center">
|
|
106
|
-
<div className="text-3xl font-bold
|
|
106
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
107
107
|
Accessible
|
|
108
108
|
</div>
|
|
109
|
-
<div className="text-
|
|
109
|
+
<div className="text-fm-tertiary text-sm">
|
|
110
110
|
Screen reader friendly
|
|
111
111
|
</div>
|
|
112
112
|
</div>
|
|
113
|
-
<div className="h-8 w-px
|
|
113
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
114
114
|
<div className="text-center">
|
|
115
|
-
<div className="text-3xl font-bold
|
|
115
|
+
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
116
116
|
Detailed
|
|
117
117
|
</div>
|
|
118
|
-
<div className="text-
|
|
118
|
+
<div className="text-fm-tertiary text-sm">
|
|
119
119
|
Clear edit metaphor
|
|
120
120
|
</div>
|
|
121
121
|
</div>
|
|
122
|
-
<div className="h-8 w-px
|
|
122
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
123
123
|
<div className="text-center">
|
|
124
|
-
<div className="text-3xl font-bold
|
|
124
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
125
125
|
Versatile
|
|
126
126
|
</div>
|
|
127
|
-
<div className="text-
|
|
127
|
+
<div className="text-fm-tertiary text-sm">
|
|
128
128
|
Multiple use cases
|
|
129
129
|
</div>
|
|
130
130
|
</div>
|
|
@@ -137,16 +137,16 @@ const meta: Meta<typeof EditBigIcon> = {
|
|
|
137
137
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
138
138
|
{/* Quick Usage */}
|
|
139
139
|
<div className="!space-y-8">
|
|
140
|
-
<h2 className="text-center text-3xl font-bold
|
|
140
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
141
141
|
Quick Start
|
|
142
142
|
</h2>
|
|
143
143
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
144
144
|
<div className="!space-y-4">
|
|
145
|
-
<h3 className="text-xl font-semibold
|
|
145
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
146
146
|
Basic Usage
|
|
147
147
|
</h3>
|
|
148
|
-
<div className="rounded-lg
|
|
149
|
-
<pre className="overflow-x-auto text-sm
|
|
148
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
149
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
150
150
|
{`import { EditBigIcon } from "@icons/edit-big-icon"
|
|
151
151
|
|
|
152
152
|
function EditButton() {
|
|
@@ -162,13 +162,15 @@ function EditButton() {
|
|
|
162
162
|
</div>
|
|
163
163
|
|
|
164
164
|
<div className="!space-y-4">
|
|
165
|
-
<h3 className="text-xl font-semibold
|
|
165
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
166
166
|
Live Preview
|
|
167
167
|
</h3>
|
|
168
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
169
|
-
<button className="flex items-center gap-3 rounded-lg border
|
|
170
|
-
<EditBigIcon className="h-5 w-5
|
|
171
|
-
<span className="text-
|
|
168
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
169
|
+
<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">
|
|
170
|
+
<EditBigIcon className="text-fm-icon-info h-5 w-5" />
|
|
171
|
+
<span className="text-fm-icon-active">
|
|
172
|
+
Edit Content
|
|
173
|
+
</span>
|
|
172
174
|
</button>
|
|
173
175
|
</div>
|
|
174
176
|
</div>
|
|
@@ -177,106 +179,116 @@ function EditButton() {
|
|
|
177
179
|
|
|
178
180
|
{/* Props Documentation */}
|
|
179
181
|
<div className="!space-y-8">
|
|
180
|
-
<h2 className="text-center text-3xl font-bold
|
|
182
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
181
183
|
Props & Configuration
|
|
182
184
|
</h2>
|
|
183
185
|
|
|
184
|
-
<div className="overflow-hidden rounded-lg border
|
|
185
|
-
<div className="bg-
|
|
186
|
-
<h3 className="text-xl font-semibold
|
|
186
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
187
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
188
|
+
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
189
|
+
Props
|
|
190
|
+
</h3>
|
|
187
191
|
</div>
|
|
188
192
|
<table className="!my-0 w-full">
|
|
189
|
-
<thead className="bg-
|
|
190
|
-
<tr className="border-
|
|
191
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
193
|
+
<thead className="bg-fm-surface-secondary">
|
|
194
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
195
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
192
196
|
Prop
|
|
193
197
|
</th>
|
|
194
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
198
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
195
199
|
Type
|
|
196
200
|
</th>
|
|
197
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
201
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
198
202
|
Default
|
|
199
203
|
</th>
|
|
200
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
204
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
201
205
|
Description
|
|
202
206
|
</th>
|
|
203
207
|
</tr>
|
|
204
208
|
</thead>
|
|
205
209
|
<tbody>
|
|
206
210
|
{" "}
|
|
207
|
-
<tr className="
|
|
208
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
211
|
+
<tr className="bg-fm-surface-secondary!">
|
|
212
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
209
213
|
withAccessibility
|
|
210
214
|
</td>
|
|
211
|
-
<td className="px-6 py-4 text-sm
|
|
215
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
212
216
|
boolean
|
|
213
217
|
</td>
|
|
214
|
-
<td className="px-6 py-4 text-sm
|
|
218
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
215
219
|
true
|
|
216
220
|
</td>
|
|
217
|
-
<td className="px-6 py-4 text-sm
|
|
221
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
218
222
|
Whether to wrap the icon with accessibility feature
|
|
219
223
|
</td>
|
|
220
224
|
</tr>
|
|
221
|
-
<tr className="border-
|
|
222
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
225
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
226
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
223
227
|
height
|
|
224
228
|
</td>
|
|
225
|
-
<td className="px-6 py-4 text-sm
|
|
229
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
226
230
|
number | string
|
|
227
231
|
</td>
|
|
228
|
-
<td className="px-6 py-4 text-sm
|
|
229
|
-
|
|
232
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
233
|
+
24
|
|
234
|
+
</td>
|
|
235
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
230
236
|
Height of the icon in pixels
|
|
231
237
|
</td>
|
|
232
238
|
</tr>
|
|
233
|
-
<tr className="border-
|
|
234
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
239
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
240
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
235
241
|
fill
|
|
236
242
|
</td>
|
|
237
|
-
<td className="px-6 py-4 text-sm
|
|
243
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
238
244
|
string
|
|
239
245
|
</td>
|
|
240
|
-
<td className="px-6 py-4 text-sm
|
|
246
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
241
247
|
currentColor
|
|
242
248
|
</td>
|
|
243
|
-
<td className="px-6 py-4 text-sm
|
|
249
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
244
250
|
Fill color of the icon
|
|
245
251
|
</td>
|
|
246
252
|
</tr>
|
|
247
|
-
<tr className="border-
|
|
248
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
253
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
254
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
249
255
|
className
|
|
250
256
|
</td>
|
|
251
|
-
<td className="px-6 py-4 text-sm
|
|
257
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
252
258
|
string
|
|
253
259
|
</td>
|
|
254
|
-
<td className="px-6 py-4 text-sm
|
|
255
|
-
|
|
260
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
261
|
+
-
|
|
262
|
+
</td>
|
|
263
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
256
264
|
CSS classes for styling (use for overrides)
|
|
257
265
|
</td>
|
|
258
266
|
</tr>
|
|
259
|
-
<tr className="border-
|
|
260
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
267
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
268
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
261
269
|
onClick
|
|
262
270
|
</td>
|
|
263
|
-
<td className="px-6 py-4 text-sm
|
|
271
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
264
272
|
function
|
|
265
273
|
</td>
|
|
266
|
-
<td className="px-6 py-4 text-sm
|
|
267
|
-
|
|
274
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
275
|
+
-
|
|
276
|
+
</td>
|
|
277
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
268
278
|
Click handler for interactive use
|
|
269
279
|
</td>
|
|
270
280
|
</tr>
|
|
271
|
-
<tr className="
|
|
272
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
281
|
+
<tr className="bg-fm-surface-secondary!">
|
|
282
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
273
283
|
...svgProps
|
|
274
284
|
</td>
|
|
275
|
-
<td className="px-6 py-4 text-sm
|
|
285
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
276
286
|
SVGProps
|
|
277
287
|
</td>
|
|
278
|
-
<td className="px-6 py-4 text-sm
|
|
279
|
-
|
|
288
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
289
|
+
-
|
|
290
|
+
</td>
|
|
291
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
280
292
|
All standard SVG element props
|
|
281
293
|
</td>
|
|
282
294
|
</tr>
|
|
@@ -287,50 +299,62 @@ function EditButton() {
|
|
|
287
299
|
|
|
288
300
|
{/* Size Variations */}
|
|
289
301
|
<div className="!space-y-8">
|
|
290
|
-
<h2 className="text-center text-3xl font-bold
|
|
302
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
291
303
|
Size Variations
|
|
292
304
|
</h2>
|
|
293
|
-
<div className="rounded-lg border
|
|
305
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
294
306
|
<div className="!space-y-6">
|
|
295
307
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
296
308
|
<div className="!space-y-4">
|
|
297
|
-
<h3 className="text-lg font-semibold
|
|
309
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
298
310
|
Standard Sizes
|
|
299
311
|
</h3>
|
|
300
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
312
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
301
313
|
<div className="text-center">
|
|
302
|
-
<EditBigIcon className="!mx-auto mb-2 h-3 w-3
|
|
303
|
-
<span className="text-
|
|
314
|
+
<EditBigIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
315
|
+
<span className="text-fm-tertiary text-xs">
|
|
316
|
+
12px
|
|
317
|
+
</span>
|
|
304
318
|
</div>
|
|
305
319
|
<div className="text-center">
|
|
306
|
-
<EditBigIcon className="!mx-auto mb-2 h-4 w-4
|
|
307
|
-
<span className="text-
|
|
320
|
+
<EditBigIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
321
|
+
<span className="text-fm-tertiary text-xs">
|
|
322
|
+
16px
|
|
323
|
+
</span>
|
|
308
324
|
</div>
|
|
309
325
|
<div className="text-center">
|
|
310
|
-
<EditBigIcon className="!mx-auto mb-2 h-5 w-5
|
|
311
|
-
<span className="text-
|
|
326
|
+
<EditBigIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
327
|
+
<span className="text-fm-tertiary text-xs">
|
|
328
|
+
20px
|
|
329
|
+
</span>
|
|
312
330
|
</div>
|
|
313
331
|
<div className="text-center">
|
|
314
|
-
<EditBigIcon className="!mx-auto mb-2 h-6 w-6
|
|
315
|
-
<span className="text-
|
|
332
|
+
<EditBigIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
333
|
+
<span className="text-fm-tertiary text-xs">
|
|
334
|
+
24px
|
|
335
|
+
</span>
|
|
316
336
|
</div>
|
|
317
337
|
<div className="text-center">
|
|
318
|
-
<EditBigIcon className="!mx-auto mb-2 h-8 w-8
|
|
319
|
-
<span className="text-
|
|
338
|
+
<EditBigIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
339
|
+
<span className="text-fm-tertiary text-xs">
|
|
340
|
+
32px
|
|
341
|
+
</span>
|
|
320
342
|
</div>
|
|
321
343
|
<div className="text-center">
|
|
322
|
-
<EditBigIcon className="!mx-auto mb-2 h-12 w-12
|
|
323
|
-
<span className="text-
|
|
344
|
+
<EditBigIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
345
|
+
<span className="text-fm-tertiary text-xs">
|
|
346
|
+
48px
|
|
347
|
+
</span>
|
|
324
348
|
</div>
|
|
325
349
|
</div>
|
|
326
350
|
</div>
|
|
327
351
|
|
|
328
352
|
<div className="!space-y-4">
|
|
329
|
-
<h3 className="text-lg font-semibold
|
|
353
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
330
354
|
Code Example
|
|
331
355
|
</h3>
|
|
332
|
-
<div className="rounded-lg
|
|
333
|
-
<pre className="overflow-x-auto text-sm
|
|
356
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
357
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
334
358
|
{`// Small (16px)
|
|
335
359
|
<EditBigIcon className="h-4 w-4 " />
|
|
336
360
|
|
|
@@ -352,56 +376,56 @@ function EditButton() {
|
|
|
352
376
|
|
|
353
377
|
{/* Color Variations */}
|
|
354
378
|
<div className="!space-y-8">
|
|
355
|
-
<h2 className="text-center text-3xl font-bold
|
|
379
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
356
380
|
Color Variations
|
|
357
381
|
</h2>
|
|
358
382
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
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
|
Semantic Colors
|
|
362
386
|
</h3>
|
|
363
|
-
<div className="!space-y-4 rounded-lg border
|
|
387
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
364
388
|
<div className="flex items-center gap-4">
|
|
365
|
-
<EditBigIcon className="h-6 w-6
|
|
389
|
+
<EditBigIcon className="text-fm-icon-info h-6 w-6" />
|
|
366
390
|
<div>
|
|
367
|
-
<div className="text-sm font-medium
|
|
391
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
368
392
|
Primary / Edit
|
|
369
393
|
</div>
|
|
370
|
-
<div className="text-
|
|
371
|
-
text-
|
|
394
|
+
<div className="text-fm-tertiary text-xs">
|
|
395
|
+
text-fm-icon-info
|
|
372
396
|
</div>
|
|
373
397
|
</div>
|
|
374
398
|
</div>
|
|
375
399
|
<div className="flex items-center gap-4">
|
|
376
|
-
<EditBigIcon className="h-6 w-6
|
|
400
|
+
<EditBigIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
377
401
|
<div>
|
|
378
|
-
<div className="text-sm font-medium
|
|
402
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
379
403
|
Secondary / Modify
|
|
380
404
|
</div>
|
|
381
|
-
<div className="text-
|
|
382
|
-
text-
|
|
405
|
+
<div className="text-fm-tertiary text-xs">
|
|
406
|
+
text-fm-secondary-600
|
|
383
407
|
</div>
|
|
384
408
|
</div>
|
|
385
409
|
</div>
|
|
386
410
|
<div className="flex items-center gap-4">
|
|
387
|
-
<EditBigIcon className="h-6 w-6
|
|
411
|
+
<EditBigIcon className="text-fm-placeholder h-6 w-6" />
|
|
388
412
|
<div>
|
|
389
|
-
<div className="text-sm font-medium
|
|
413
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
390
414
|
Neutral / Disabled
|
|
391
415
|
</div>
|
|
392
|
-
<div className="text-
|
|
393
|
-
text-
|
|
416
|
+
<div className="text-fm-tertiary text-xs">
|
|
417
|
+
text-fm-placeholder
|
|
394
418
|
</div>
|
|
395
419
|
</div>
|
|
396
420
|
</div>
|
|
397
421
|
<div className="flex items-center gap-4">
|
|
398
|
-
<EditBigIcon className="h-6 w-6
|
|
422
|
+
<EditBigIcon className="text-fm-icon-positive h-6 w-6" />
|
|
399
423
|
<div>
|
|
400
|
-
<div className="text-sm font-medium
|
|
424
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
401
425
|
Success / Save
|
|
402
426
|
</div>
|
|
403
|
-
<div className="text-
|
|
404
|
-
text-
|
|
427
|
+
<div className="text-fm-tertiary text-xs">
|
|
428
|
+
text-fm-icon-positive
|
|
405
429
|
</div>
|
|
406
430
|
</div>
|
|
407
431
|
</div>
|
|
@@ -409,11 +433,11 @@ function EditButton() {
|
|
|
409
433
|
</div>
|
|
410
434
|
|
|
411
435
|
<div className="!space-y-4">
|
|
412
|
-
<h3 className="text-lg font-semibold
|
|
436
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
413
437
|
Custom Colors
|
|
414
438
|
</h3>
|
|
415
|
-
<div className="rounded-lg
|
|
416
|
-
<pre className="overflow-x-auto text-sm
|
|
439
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
440
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
417
441
|
{`// Using Tailwind classes with
|
|
418
442
|
<EditBigIcon className="h-6 w-6 text-blue-400 " />
|
|
419
443
|
<EditBigIcon className="h-6 w-6 text-purple-500 " />
|
|
@@ -438,38 +462,38 @@ function EditButton() {
|
|
|
438
462
|
|
|
439
463
|
{/* Usage Examples */}
|
|
440
464
|
<div className="!space-y-8">
|
|
441
|
-
<h2 className="text-center text-3xl font-bold
|
|
465
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
442
466
|
Usage Examples
|
|
443
467
|
</h2>
|
|
444
468
|
|
|
445
469
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
446
470
|
{/* Content Card Edit */}
|
|
447
471
|
<div className="!space-y-4">
|
|
448
|
-
<h3 className="text-lg font-semibold
|
|
472
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
449
473
|
Content Card Edit
|
|
450
474
|
</h3>
|
|
451
475
|
<div className="!space-y-4">
|
|
452
|
-
<div className="rounded-lg border
|
|
476
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
453
477
|
<div className="mb-4 flex items-start justify-between">
|
|
454
478
|
<div>
|
|
455
|
-
<h4 className="mb-2 font-medium
|
|
479
|
+
<h4 className="text-fm-icon-active! mb-2 font-medium">
|
|
456
480
|
Article Title
|
|
457
481
|
</h4>
|
|
458
|
-
<p className="text-
|
|
482
|
+
<p className="text-fm-secondary! text-sm">
|
|
459
483
|
Lorem ipsum dolor sit amet, consectetur adipiscing
|
|
460
484
|
elit. Sed do eiusmod tempor incididunt ut labore.
|
|
461
485
|
</p>
|
|
462
486
|
</div>
|
|
463
|
-
<button className="rounded-lg p-2 transition-colors
|
|
464
|
-
<EditBigIcon className="h-5 w-5
|
|
487
|
+
<button className="hover:bg-fm-surface-secondary rounded-lg p-2 transition-colors">
|
|
488
|
+
<EditBigIcon className="text-fm-icon-info h-5 w-5" />
|
|
465
489
|
</button>
|
|
466
490
|
</div>
|
|
467
|
-
<div className="flex items-center gap-2 text-xs
|
|
491
|
+
<div className="text-fm-placeholder flex items-center gap-2 text-xs">
|
|
468
492
|
<span>Last edited: 2 hours ago</span>
|
|
469
493
|
</div>
|
|
470
494
|
</div>
|
|
471
|
-
<div className="rounded-lg
|
|
472
|
-
<pre className="overflow-x-auto text-sm
|
|
495
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
496
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
473
497
|
{`// Content card with edit button
|
|
474
498
|
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
475
499
|
<div className="flex items-start justify-between mb-4">
|
|
@@ -492,32 +516,34 @@ function EditButton() {
|
|
|
492
516
|
|
|
493
517
|
{/* Form Field Edit */}
|
|
494
518
|
<div className="!space-y-4">
|
|
495
|
-
<h3 className="text-lg font-semibold
|
|
519
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
496
520
|
Form Field Edit
|
|
497
521
|
</h3>
|
|
498
522
|
<div className="!space-y-4">
|
|
499
523
|
<div className="!space-y-4">
|
|
500
524
|
<div className="!space-y-2">
|
|
501
|
-
<label className="text-sm font-medium
|
|
525
|
+
<label className="text-fm-icon-active! text-sm font-medium">
|
|
502
526
|
Profile Information
|
|
503
527
|
</label>
|
|
504
528
|
<div className="flex items-center gap-3">
|
|
505
529
|
<div className="flex-1">
|
|
506
|
-
<div className="rounded-lg border
|
|
507
|
-
<div className="text-
|
|
508
|
-
|
|
530
|
+
<div className="border-fm-divider-primary bg-fm-surface-secondary rounded-lg border px-3 py-2">
|
|
531
|
+
<div className="text-fm-icon-active">
|
|
532
|
+
John Doe
|
|
533
|
+
</div>
|
|
534
|
+
<div className="text-fm-tertiary text-xs">
|
|
509
535
|
john.doe@example.com
|
|
510
536
|
</div>
|
|
511
537
|
</div>
|
|
512
538
|
</div>
|
|
513
|
-
<button className="
|
|
514
|
-
<EditBigIcon className="h-4 w-4
|
|
539
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/10 hover:bg-fm-icon-info/20 rounded-lg border p-2">
|
|
540
|
+
<EditBigIcon className="text-fm-icon-info h-4 w-4" />
|
|
515
541
|
</button>
|
|
516
542
|
</div>
|
|
517
543
|
</div>
|
|
518
544
|
</div>
|
|
519
|
-
<div className="rounded-lg
|
|
520
|
-
<pre className="overflow-x-auto text-sm
|
|
545
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
546
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
521
547
|
{`// Form field with edit trigger
|
|
522
548
|
<div className="flex items-center gap-3">
|
|
523
549
|
<div className="flex-1">
|
|
@@ -540,61 +566,61 @@ function EditButton() {
|
|
|
540
566
|
|
|
541
567
|
{/* Table Row Actions */}
|
|
542
568
|
<div className="!space-y-4">
|
|
543
|
-
<h3 className="text-lg font-semibold
|
|
569
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
544
570
|
Table Row Actions
|
|
545
571
|
</h3>
|
|
546
572
|
<div className="!space-y-4">
|
|
547
|
-
<div className="overflow-hidden rounded-lg border
|
|
573
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
548
574
|
<table className="!my-0 w-full">
|
|
549
|
-
<thead className="bg-
|
|
550
|
-
<tr className="border-
|
|
551
|
-
<th className="px-4 py-3 text-left text-sm font-medium
|
|
575
|
+
<thead className="bg-fm-surface-secondary">
|
|
576
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
577
|
+
<th className="text-fm-icon-active! px-4 py-3 text-left text-sm font-medium">
|
|
552
578
|
Name
|
|
553
579
|
</th>
|
|
554
|
-
<th className="px-4 py-3 text-left text-sm font-medium
|
|
580
|
+
<th className="text-fm-icon-active! px-4 py-3 text-left text-sm font-medium">
|
|
555
581
|
Status
|
|
556
582
|
</th>
|
|
557
|
-
<th className="px-4 py-3 text-left text-sm font-medium
|
|
583
|
+
<th className="text-fm-icon-active! px-4 py-3 text-left text-sm font-medium">
|
|
558
584
|
Actions
|
|
559
585
|
</th>
|
|
560
586
|
</tr>
|
|
561
587
|
</thead>
|
|
562
588
|
<tbody>
|
|
563
|
-
<tr className="border-
|
|
564
|
-
<td className="px-4 py-3 text-sm
|
|
589
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
590
|
+
<td className="text-fm-icon-active! px-4 py-3 text-sm">
|
|
565
591
|
Project Alpha
|
|
566
592
|
</td>
|
|
567
593
|
<td className="px-4 py-3">
|
|
568
|
-
<span className="inline-flex items-center rounded-full
|
|
594
|
+
<span className="bg-fm-icon-positive/20 text-fm-icon-positive inline-flex items-center rounded-full px-2 py-1 text-xs">
|
|
569
595
|
Active
|
|
570
596
|
</span>
|
|
571
597
|
</td>
|
|
572
598
|
<td className="px-4 py-3">
|
|
573
|
-
<button className="rounded p-1
|
|
574
|
-
<EditBigIcon className="h-4 w-4
|
|
599
|
+
<button className="hover:bg-fm-surface-secondary rounded p-1">
|
|
600
|
+
<EditBigIcon className="text-fm-icon-info h-4 w-4" />
|
|
575
601
|
</button>
|
|
576
602
|
</td>
|
|
577
603
|
</tr>
|
|
578
|
-
<tr className="border-
|
|
579
|
-
<td className="px-4 py-3 text-sm
|
|
604
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
605
|
+
<td className="text-fm-icon-active! px-4 py-3 text-sm">
|
|
580
606
|
Project Beta
|
|
581
607
|
</td>
|
|
582
608
|
<td className="px-4 py-3">
|
|
583
|
-
<span className="inline-flex items-center rounded-full
|
|
609
|
+
<span className="bg-fm-icon-warning/20 text-fm-icon-warning inline-flex items-center rounded-full px-2 py-1 text-xs">
|
|
584
610
|
Pending
|
|
585
611
|
</span>
|
|
586
612
|
</td>
|
|
587
613
|
<td className="px-4 py-3">
|
|
588
|
-
<button className="rounded p-1
|
|
589
|
-
<EditBigIcon className="h-4 w-4
|
|
614
|
+
<button className="hover:bg-fm-surface-secondary rounded p-1">
|
|
615
|
+
<EditBigIcon className="text-fm-icon-info h-4 w-4" />
|
|
590
616
|
</button>
|
|
591
617
|
</td>
|
|
592
618
|
</tr>
|
|
593
619
|
</tbody>
|
|
594
620
|
</table>
|
|
595
621
|
</div>
|
|
596
|
-
<div className="rounded-lg
|
|
597
|
-
<pre className="overflow-x-auto text-sm
|
|
622
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
623
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
598
624
|
{`// Table with edit actions
|
|
599
625
|
<table className="w-full">
|
|
600
626
|
<thead>
|
|
@@ -626,37 +652,37 @@ function EditButton() {
|
|
|
626
652
|
|
|
627
653
|
{/* Inline Edit Mode */}
|
|
628
654
|
<div className="!space-y-4">
|
|
629
|
-
<h3 className="text-lg font-semibold
|
|
655
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
630
656
|
Inline Edit Mode
|
|
631
657
|
</h3>
|
|
632
658
|
<div className="!space-y-4">
|
|
633
659
|
<div className="!space-y-3">
|
|
634
|
-
<div className="flex items-center justify-between rounded-lg border
|
|
660
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4">
|
|
635
661
|
<div className="flex items-center gap-3">
|
|
636
|
-
<EditBigIcon className="h-5 w-5
|
|
637
|
-
<span className="font-medium
|
|
662
|
+
<EditBigIcon className="text-fm-icon-info h-5 w-5" />
|
|
663
|
+
<span className="text-fm-icon-active font-medium">
|
|
638
664
|
Edit Mode Active
|
|
639
665
|
</span>
|
|
640
666
|
</div>
|
|
641
667
|
<div className="flex gap-2">
|
|
642
|
-
<button className="
|
|
668
|
+
<button className="border-fm-icon-positive/30 bg-fm-icon-positive/20 text-fm-icon-positive rounded border px-3 py-1 text-xs">
|
|
643
669
|
Save
|
|
644
670
|
</button>
|
|
645
|
-
<button className="
|
|
671
|
+
<button className="border-fm-divider-primary bg-fm-surface-tertiary/20 text-fm-secondary rounded border px-3 py-1 text-xs">
|
|
646
672
|
Cancel
|
|
647
673
|
</button>
|
|
648
674
|
</div>
|
|
649
675
|
</div>
|
|
650
|
-
<div className="
|
|
676
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
651
677
|
<input
|
|
652
678
|
type="text"
|
|
653
|
-
className="w-full border-none bg-transparent
|
|
679
|
+
className="text-fm-icon-active w-full border-none bg-transparent placeholder-white/50 focus:outline-none"
|
|
654
680
|
defaultValue="This content is now editable..."
|
|
655
681
|
/>
|
|
656
682
|
</div>
|
|
657
683
|
</div>
|
|
658
|
-
<div className="rounded-lg
|
|
659
|
-
<pre className="overflow-x-auto text-sm
|
|
684
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
685
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
660
686
|
{`// Inline edit mode indicator
|
|
661
687
|
<div className="flex items-center justify-between rounded-lg border bg-white/5 p-4">
|
|
662
688
|
<div className="flex items-center gap-3">
|
|
@@ -677,64 +703,64 @@ function EditButton() {
|
|
|
677
703
|
|
|
678
704
|
{/* Accessibility */}
|
|
679
705
|
<div className="!space-y-8">
|
|
680
|
-
<h2 className="text-center text-3xl font-bold
|
|
706
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
681
707
|
Accessibility Features
|
|
682
708
|
</h2>
|
|
683
709
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
684
|
-
<div className="!space-y-4 rounded-lg border
|
|
685
|
-
<h3 className="text-lg font-semibold
|
|
710
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
711
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
686
712
|
✅ Built-in Features
|
|
687
713
|
</h3>
|
|
688
|
-
<ul className="!space-y-2 text-sm
|
|
689
|
-
<li className="
|
|
714
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
715
|
+
<li className="text-fm-secondary!">
|
|
690
716
|
Uses Radix UI AccessibleIcon wrapper
|
|
691
717
|
</li>
|
|
692
|
-
<li className="
|
|
718
|
+
<li className="text-fm-secondary!">
|
|
693
719
|
Provides screen reader label "Edit Big icon"
|
|
694
720
|
</li>
|
|
695
|
-
<li className="
|
|
721
|
+
<li className="text-fm-secondary!">
|
|
696
722
|
Supports keyboard navigation when interactive
|
|
697
723
|
</li>
|
|
698
|
-
<li className="
|
|
724
|
+
<li className="text-fm-secondary!">
|
|
699
725
|
Maintains proper color contrast ratios
|
|
700
726
|
</li>
|
|
701
|
-
<li className="
|
|
727
|
+
<li className="text-fm-secondary!">
|
|
702
728
|
Scales with user's font size preferences
|
|
703
729
|
</li>
|
|
704
730
|
</ul>
|
|
705
731
|
</div>
|
|
706
732
|
|
|
707
|
-
<div className="!space-y-4 rounded-lg border
|
|
708
|
-
<h3 className="text-lg font-semibold
|
|
733
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
734
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
709
735
|
💡 Best Practices
|
|
710
736
|
</h3>
|
|
711
|
-
<ul className="!space-y-2 text-sm
|
|
712
|
-
<li className="
|
|
737
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
738
|
+
<li className="text-fm-secondary!">
|
|
713
739
|
Always provide clear button labels for edit actions
|
|
714
740
|
</li>
|
|
715
|
-
<li className="
|
|
741
|
+
<li className="text-fm-secondary!">
|
|
716
742
|
Use consistent placement and styling
|
|
717
743
|
</li>
|
|
718
|
-
<li className="
|
|
744
|
+
<li className="text-fm-secondary!">
|
|
719
745
|
Ensure sufficient touch target size (44px minimum)
|
|
720
746
|
</li>
|
|
721
|
-
<li className="
|
|
747
|
+
<li className="text-fm-secondary!">
|
|
722
748
|
Provide visible focus states for keyboard users
|
|
723
749
|
</li>
|
|
724
|
-
<li className="
|
|
750
|
+
<li className="text-fm-secondary!">
|
|
725
751
|
Consider escape key to cancel edit operations
|
|
726
752
|
</li>
|
|
727
753
|
</ul>
|
|
728
754
|
</div>
|
|
729
755
|
</div>
|
|
730
756
|
|
|
731
|
-
<div className="rounded-lg border
|
|
732
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
757
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
758
|
+
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
733
759
|
Proper ARIA Implementation
|
|
734
760
|
</h3>
|
|
735
761
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
736
|
-
<div className="rounded-lg
|
|
737
|
-
<pre className="overflow-x-auto text-sm
|
|
762
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
763
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
738
764
|
{`// Edit button with proper ARIA
|
|
739
765
|
<button
|
|
740
766
|
aria-label="Edit article"
|
|
@@ -760,18 +786,18 @@ function EditButton() {
|
|
|
760
786
|
aria-describedby="edit-help"
|
|
761
787
|
onClick={startEditing}
|
|
762
788
|
>
|
|
763
|
-
<EditBigIcon className="h-4 w-4 text-
|
|
789
|
+
<EditBigIcon className="h-4 w-4 text-fm-icon-info " />
|
|
764
790
|
</button>`}
|
|
765
791
|
</pre>
|
|
766
792
|
</div>
|
|
767
793
|
<div className="!space-y-4">
|
|
768
|
-
<p className="text-
|
|
794
|
+
<p className="text-fm-secondary! text-sm">
|
|
769
795
|
When using EditBigIcon for interactive elements, always
|
|
770
796
|
provide descriptive aria-label attributes that explain
|
|
771
797
|
what content will be edited.
|
|
772
798
|
</p>
|
|
773
|
-
<div className="
|
|
774
|
-
<div className="flex items-center gap-2 text-sm
|
|
799
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
800
|
+
<div className="text-fm-icon-info flex items-center gap-2 text-sm">
|
|
775
801
|
<EditBigIcon className="h-4 w-4" />
|
|
776
802
|
<span>
|
|
777
803
|
Screen readers need context about what can be edited
|
|
@@ -785,46 +811,58 @@ function EditButton() {
|
|
|
785
811
|
|
|
786
812
|
{/* Related Icons */}
|
|
787
813
|
<div className="!space-y-8">
|
|
788
|
-
<h2 className="text-center text-3xl font-bold
|
|
814
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
789
815
|
Related Icons
|
|
790
816
|
</h2>
|
|
791
817
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
792
|
-
<div className="!space-y-3 rounded-lg border
|
|
793
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
818
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
819
|
+
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
794
820
|
<span className="text-2xl">💾</span>
|
|
795
821
|
</div>
|
|
796
822
|
<div>
|
|
797
|
-
<div className="font-medium
|
|
798
|
-
|
|
823
|
+
<div className="text-fm-icon-active font-medium">
|
|
824
|
+
SaveIcon
|
|
825
|
+
</div>
|
|
826
|
+
<div className="text-fm-tertiary text-xs">
|
|
827
|
+
Save changes
|
|
828
|
+
</div>
|
|
799
829
|
</div>
|
|
800
830
|
</div>
|
|
801
|
-
<div className="!space-y-3 rounded-lg border
|
|
802
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
831
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
832
|
+
<div className="bg-fm-icon-negative/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
803
833
|
<span className="text-2xl">🗑️</span>
|
|
804
834
|
</div>
|
|
805
835
|
<div>
|
|
806
|
-
<div className="font-medium
|
|
807
|
-
|
|
836
|
+
<div className="text-fm-icon-active font-medium">
|
|
837
|
+
DeleteIcon
|
|
838
|
+
</div>
|
|
839
|
+
<div className="text-fm-tertiary text-xs">
|
|
808
840
|
Remove content
|
|
809
841
|
</div>
|
|
810
842
|
</div>
|
|
811
843
|
</div>
|
|
812
|
-
<div className="!space-y-3 rounded-lg border
|
|
813
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
844
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
845
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
814
846
|
<span className="text-2xl">👁️</span>
|
|
815
847
|
</div>
|
|
816
848
|
<div>
|
|
817
|
-
<div className="font-medium
|
|
818
|
-
|
|
849
|
+
<div className="text-fm-icon-active font-medium">
|
|
850
|
+
ViewIcon
|
|
851
|
+
</div>
|
|
852
|
+
<div className="text-fm-tertiary text-xs">
|
|
853
|
+
View content
|
|
854
|
+
</div>
|
|
819
855
|
</div>
|
|
820
856
|
</div>
|
|
821
|
-
<div className="!space-y-3 rounded-lg border
|
|
822
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
857
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
858
|
+
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
823
859
|
<span className="text-2xl">⚙️</span>
|
|
824
860
|
</div>
|
|
825
861
|
<div>
|
|
826
|
-
<div className="font-medium
|
|
827
|
-
|
|
862
|
+
<div className="text-fm-icon-active font-medium">
|
|
863
|
+
SettingsIcon
|
|
864
|
+
</div>
|
|
865
|
+
<div className="text-fm-tertiary text-xs">Configure</div>
|
|
828
866
|
</div>
|
|
829
867
|
</div>
|
|
830
868
|
</div>
|
|
@@ -832,14 +870,14 @@ function EditButton() {
|
|
|
832
870
|
</div>
|
|
833
871
|
|
|
834
872
|
{/* Footer */}
|
|
835
|
-
<div className="border-
|
|
873
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
836
874
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
837
875
|
<div className="!space-y-4 text-center">
|
|
838
|
-
<p className="
|
|
876
|
+
<p className="text-fm-tertiary!">
|
|
839
877
|
EditBigIcon is part of the Aural UI icon library, built with
|
|
840
878
|
clarity and accessibility in mind.
|
|
841
879
|
</p>
|
|
842
|
-
<p className="text-
|
|
880
|
+
<p className="text-fm-placeholder! text-sm">
|
|
843
881
|
All icons use Radix UI's AccessibleIcon for screen reader
|
|
844
882
|
compatibility and follow WCAG guidelines.
|
|
845
883
|
</p>
|
|
@@ -888,20 +926,20 @@ const storyParameters = {
|
|
|
888
926
|
backgrounds: {
|
|
889
927
|
default: "dark",
|
|
890
928
|
values: [
|
|
891
|
-
{ name: "dark", value: "
|
|
892
|
-
{ name: "darker", value: "
|
|
929
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
930
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
893
931
|
],
|
|
894
932
|
},
|
|
895
933
|
}
|
|
896
934
|
|
|
897
935
|
export const Default: Story = {
|
|
898
936
|
args: {
|
|
899
|
-
className: "h-6 w-6 text-
|
|
937
|
+
className: "h-6 w-6 text-fm-icon-info ",
|
|
900
938
|
withAccessibility: true,
|
|
901
939
|
},
|
|
902
940
|
parameters: storyParameters,
|
|
903
941
|
render: (args) => (
|
|
904
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
942
|
+
<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">
|
|
905
943
|
<EditBigIcon {...args} />
|
|
906
944
|
</div>
|
|
907
945
|
),
|
|
@@ -918,30 +956,30 @@ export const SizeVariations: Story = {
|
|
|
918
956
|
},
|
|
919
957
|
},
|
|
920
958
|
render: () => (
|
|
921
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
959
|
+
<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">
|
|
922
960
|
<div className="text-center">
|
|
923
|
-
<EditBigIcon className="!mx-auto mb-2 h-3 w-3
|
|
924
|
-
<span className="text-
|
|
961
|
+
<EditBigIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
962
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
925
963
|
</div>
|
|
926
964
|
<div className="text-center">
|
|
927
|
-
<EditBigIcon className="!mx-auto mb-2 h-4 w-4
|
|
928
|
-
<span className="text-
|
|
965
|
+
<EditBigIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
966
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
929
967
|
</div>
|
|
930
968
|
<div className="text-center">
|
|
931
|
-
<EditBigIcon className="!mx-auto mb-2 h-5 w-5
|
|
932
|
-
<span className="text-
|
|
969
|
+
<EditBigIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
970
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
933
971
|
</div>
|
|
934
972
|
<div className="text-center">
|
|
935
|
-
<EditBigIcon className="!mx-auto mb-2 h-6 w-6
|
|
936
|
-
<span className="text-
|
|
973
|
+
<EditBigIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
974
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
937
975
|
</div>
|
|
938
976
|
<div className="text-center">
|
|
939
|
-
<EditBigIcon className="!mx-auto mb-2 h-8 w-8
|
|
940
|
-
<span className="text-
|
|
977
|
+
<EditBigIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
978
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
941
979
|
</div>
|
|
942
980
|
<div className="text-center">
|
|
943
|
-
<EditBigIcon className="!mx-auto mb-2 h-12 w-12
|
|
944
|
-
<span className="text-
|
|
981
|
+
<EditBigIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
982
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
945
983
|
</div>
|
|
946
984
|
</div>
|
|
947
985
|
),
|
|
@@ -958,34 +996,38 @@ export const ColorVariations: Story = {
|
|
|
958
996
|
},
|
|
959
997
|
},
|
|
960
998
|
render: () => (
|
|
961
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
999
|
+
<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">
|
|
962
1000
|
<div className="text-center">
|
|
963
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
964
|
-
<EditBigIcon className="h-8 w-8
|
|
1001
|
+
<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">
|
|
1002
|
+
<EditBigIcon className="text-fm-icon-info h-8 w-8" />
|
|
965
1003
|
</div>
|
|
966
|
-
<div className="text-sm font-medium
|
|
967
|
-
<div className="text-
|
|
1004
|
+
<div className="text-fm-icon-active text-sm font-medium">Primary</div>
|
|
1005
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
968
1006
|
</div>
|
|
969
1007
|
<div className="text-center">
|
|
970
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
971
|
-
<EditBigIcon className="h-8 w-8
|
|
1008
|
+
<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">
|
|
1009
|
+
<EditBigIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
1010
|
+
</div>
|
|
1011
|
+
<div className="text-fm-icon-active text-sm font-medium">Secondary</div>
|
|
1012
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
1013
|
+
text-fm-secondary-600
|
|
972
1014
|
</div>
|
|
973
|
-
<div className="text-sm font-medium text-white">Secondary</div>
|
|
974
|
-
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
975
1015
|
</div>
|
|
976
1016
|
<div className="text-center">
|
|
977
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
978
|
-
<EditBigIcon className="h-8 w-8
|
|
1017
|
+
<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">
|
|
1018
|
+
<EditBigIcon className="text-fm-placeholder h-8 w-8" />
|
|
979
1019
|
</div>
|
|
980
|
-
<div className="text-sm font-medium
|
|
981
|
-
<div className="text-
|
|
1020
|
+
<div className="text-fm-icon-active text-sm font-medium">Neutral</div>
|
|
1021
|
+
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
982
1022
|
</div>
|
|
983
1023
|
<div className="text-center">
|
|
984
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
985
|
-
<EditBigIcon className="h-8 w-8
|
|
1024
|
+
<div className="border-fm-icon-positive/30 bg-fm-icon-positive/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1025
|
+
<EditBigIcon className="text-fm-icon-positive h-8 w-8" />
|
|
1026
|
+
</div>
|
|
1027
|
+
<div className="text-fm-icon-active text-sm font-medium">Success</div>
|
|
1028
|
+
<div className="text-fm-icon-positive text-xs">
|
|
1029
|
+
text-fm-icon-positive
|
|
986
1030
|
</div>
|
|
987
|
-
<div className="text-sm font-medium text-white">Success</div>
|
|
988
|
-
<div className="text-xs text-green-400">text-green-400</div>
|
|
989
1031
|
</div>
|
|
990
1032
|
</div>
|
|
991
1033
|
),
|
|
@@ -1002,20 +1044,24 @@ export const UsageExamples: Story = {
|
|
|
1002
1044
|
},
|
|
1003
1045
|
},
|
|
1004
1046
|
render: () => (
|
|
1005
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
1047
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
1006
1048
|
{/* Content Card Edit */}
|
|
1007
1049
|
<div className="!space-y-2">
|
|
1008
|
-
<h3 className="text-sm font-medium
|
|
1009
|
-
|
|
1050
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1051
|
+
Content Card Edit
|
|
1052
|
+
</h3>
|
|
1053
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
1010
1054
|
<div className="mb-4 flex items-start justify-between">
|
|
1011
1055
|
<div>
|
|
1012
|
-
<h4 className="mb-2 font-medium
|
|
1013
|
-
|
|
1056
|
+
<h4 className="text-fm-icon-active mb-2 font-medium">
|
|
1057
|
+
Article Title
|
|
1058
|
+
</h4>
|
|
1059
|
+
<p className="text-fm-secondary text-sm">
|
|
1014
1060
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
1015
1061
|
</p>
|
|
1016
1062
|
</div>
|
|
1017
|
-
<button className="rounded-lg p-2 transition-colors
|
|
1018
|
-
<EditBigIcon className="h-5 w-5
|
|
1063
|
+
<button className="hover:bg-fm-surface-secondary rounded-lg p-2 transition-colors">
|
|
1064
|
+
<EditBigIcon className="text-fm-icon-info h-5 w-5" />
|
|
1019
1065
|
</button>
|
|
1020
1066
|
</div>
|
|
1021
1067
|
</div>
|
|
@@ -1023,47 +1069,53 @@ export const UsageExamples: Story = {
|
|
|
1023
1069
|
|
|
1024
1070
|
{/* Form Field Edit */}
|
|
1025
1071
|
<div className="!space-y-2">
|
|
1026
|
-
<h3 className="text-sm font-medium
|
|
1072
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1073
|
+
Form Field Edit
|
|
1074
|
+
</h3>
|
|
1027
1075
|
<div className="flex items-center gap-3">
|
|
1028
|
-
<div className="flex-1 rounded-lg border
|
|
1029
|
-
<div className="text-
|
|
1030
|
-
<div className="text-
|
|
1076
|
+
<div className="border-fm-divider-primary bg-fm-surface-secondary flex-1 rounded-lg border px-3 py-2">
|
|
1077
|
+
<div className="text-fm-icon-active">John Doe</div>
|
|
1078
|
+
<div className="text-fm-tertiary text-xs">john.doe@example.com</div>
|
|
1031
1079
|
</div>
|
|
1032
|
-
<button className="
|
|
1033
|
-
<EditBigIcon className="h-4 w-4
|
|
1080
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/10 hover:bg-fm-icon-info/20 rounded-lg border p-2">
|
|
1081
|
+
<EditBigIcon className="text-fm-icon-info h-4 w-4" />
|
|
1034
1082
|
</button>
|
|
1035
1083
|
</div>
|
|
1036
1084
|
</div>
|
|
1037
1085
|
|
|
1038
1086
|
{/* Table Actions */}
|
|
1039
1087
|
<div className="!space-y-2">
|
|
1040
|
-
<h3 className="text-sm font-medium
|
|
1041
|
-
|
|
1088
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1089
|
+
Table Row Actions
|
|
1090
|
+
</h3>
|
|
1091
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
1042
1092
|
<table className="w-full">
|
|
1043
|
-
<thead className="bg-
|
|
1044
|
-
<tr className="border-
|
|
1045
|
-
<th className="px-4 py-3 text-left text-sm font-medium
|
|
1093
|
+
<thead className="bg-fm-surface-secondary">
|
|
1094
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
1095
|
+
<th className="text-fm-icon-active px-4 py-3 text-left text-sm font-medium">
|
|
1046
1096
|
Name
|
|
1047
1097
|
</th>
|
|
1048
|
-
<th className="px-4 py-3 text-left text-sm font-medium
|
|
1098
|
+
<th className="text-fm-icon-active px-4 py-3 text-left text-sm font-medium">
|
|
1049
1099
|
Status
|
|
1050
1100
|
</th>
|
|
1051
|
-
<th className="px-4 py-3 text-left text-sm font-medium
|
|
1101
|
+
<th className="text-fm-icon-active px-4 py-3 text-left text-sm font-medium">
|
|
1052
1102
|
Actions
|
|
1053
1103
|
</th>
|
|
1054
1104
|
</tr>
|
|
1055
1105
|
</thead>
|
|
1056
1106
|
<tbody>
|
|
1057
|
-
<tr className="border-
|
|
1058
|
-
<td className="px-4 py-3 text-sm
|
|
1107
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
1108
|
+
<td className="text-fm-icon-active px-4 py-3 text-sm">
|
|
1109
|
+
Project Alpha
|
|
1110
|
+
</td>
|
|
1059
1111
|
<td className="px-4 py-3">
|
|
1060
|
-
<span className="inline-flex items-center rounded-full
|
|
1112
|
+
<span className="bg-fm-icon-positive/20 text-fm-icon-positive inline-flex items-center rounded-full px-2 py-1 text-xs">
|
|
1061
1113
|
Active
|
|
1062
1114
|
</span>
|
|
1063
1115
|
</td>
|
|
1064
1116
|
<td className="px-4 py-3">
|
|
1065
|
-
<button className="rounded p-1
|
|
1066
|
-
<EditBigIcon className="h-4 w-4
|
|
1117
|
+
<button className="hover:bg-fm-surface-secondary rounded p-1">
|
|
1118
|
+
<EditBigIcon className="text-fm-icon-info h-4 w-4" />
|
|
1067
1119
|
</button>
|
|
1068
1120
|
</td>
|
|
1069
1121
|
</tr>
|
|
@@ -1088,11 +1140,11 @@ export const Playground: Story = {
|
|
|
1088
1140
|
args: {
|
|
1089
1141
|
width: 32,
|
|
1090
1142
|
height: 32,
|
|
1091
|
-
className: "text-
|
|
1143
|
+
className: "text-fm-icon-info ",
|
|
1092
1144
|
},
|
|
1093
1145
|
render: (args) => (
|
|
1094
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1095
|
-
<div className="rounded-lg border
|
|
1146
|
+
<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">
|
|
1147
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
1096
1148
|
<EditBigIcon {...args} />
|
|
1097
1149
|
</div>
|
|
1098
1150
|
</div>
|