aural-ui 4.0.1 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
- package/dist/components/avatar/Avatar.stories.tsx +219 -235
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -636
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +530 -867
- package/dist/components/dialog/Dialog.stories.tsx +501 -950
- package/dist/components/divider/Divider.stories.tsx +264 -527
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -1023
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +484 -835
- package/dist/components/marquee/Marquee.stories.tsx +356 -712
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
- package/dist/components/overlay/Overlay.stories.tsx +452 -824
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +481 -896
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +495 -799
- package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
- package/dist/components/search/Search.stories.tsx +312 -595
- package/dist/components/select/Select.stories.tsx +684 -789
- package/dist/components/sheet/Sheet.stories.tsx +671 -950
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +383 -760
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -916
- package/dist/components/tabs/Tabs.stories.tsx +458 -1455
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
- package/dist/components/toast/Toast.stories.tsx +452 -1339
- package/dist/components/toggle/Toggle.stories.tsx +488 -931
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
- package/dist/icons/all-icons.tsx +37 -16
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
- package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
- package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
- package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
- package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
- package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
- package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
- package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
- package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
- package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
- package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { CopyIcon } from "src/ui/icons/copy-icon"
|
|
5
|
+
import { MagicEditIcon } from "src/ui/icons/magic-edit-icon"
|
|
6
|
+
import { PencilIcon } from "src/ui/icons/pencil-icon"
|
|
7
|
+
import { TrashIcon } from "src/ui/icons/trash-icon"
|
|
8
|
+
import {
|
|
9
|
+
IconColorVariations,
|
|
10
|
+
IconDefaultCanvas,
|
|
11
|
+
IconPlaygroundCanvas,
|
|
12
|
+
IconSizeVariations,
|
|
13
|
+
IconUsageCanvas,
|
|
14
|
+
IconUsageSection,
|
|
15
|
+
} from "src/ui/story-spec/icons/icon-story-canvas"
|
|
16
|
+
import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
|
|
17
|
+
|
|
4
18
|
import { EditBigIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof EditBigIcon> = {
|
|
@@ -18,902 +32,72 @@ const meta: Meta<typeof EditBigIcon> = {
|
|
|
18
32
|
},
|
|
19
33
|
docs: {
|
|
20
34
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
margin: 0 ;
|
|
34
|
-
background: transparent ;
|
|
35
|
-
}
|
|
36
|
-
.docs-story {
|
|
37
|
-
background: transparent ;
|
|
38
|
-
}
|
|
39
|
-
.sbdocs {
|
|
40
|
-
background: transparent ;
|
|
41
|
-
}
|
|
42
|
-
body {
|
|
43
|
-
background: var(--color-fm-surface-primary) ;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: var(--color-fm-surface-primary) ;
|
|
47
|
-
}
|
|
48
|
-
.sbdocs-preview {
|
|
49
|
-
background: transparent ;
|
|
50
|
-
border: none ;
|
|
51
|
-
}
|
|
52
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color: var(--color-fm-icon-active) ;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: var(--color-fm-secondary) ;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: var(--color-fm-surface-secondary) ;
|
|
60
|
-
color: var(--color-fm-secondary-500) ;
|
|
61
|
-
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: var(--color-fm-surface-secondary) ;
|
|
65
|
-
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: var(--color-fm-surface-secondary) ;
|
|
69
|
-
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
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
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: var(--color-fm-secondary) ;
|
|
78
|
-
border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
|
|
79
|
-
}
|
|
80
|
-
`}
|
|
81
|
-
</style>
|
|
82
|
-
|
|
83
|
-
<div className="bg-fm-surface-primary min-h-screen">
|
|
84
|
-
{/* Header */}
|
|
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
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
|
-
<div className="!space-y-6 text-center">
|
|
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
|
-
</div>
|
|
92
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
-
EditBigIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
96
|
-
A comprehensive edit icon for content modification, form
|
|
97
|
-
editing, and data management interfaces. Features a detailed
|
|
98
|
-
pencil and paper design that clearly communicates editing
|
|
99
|
-
functionality. Built with accessibility in mind using Radix
|
|
100
|
-
UI's AccessibleIcon wrapper.
|
|
101
|
-
</p>
|
|
102
|
-
|
|
103
|
-
{/* Stats */}
|
|
104
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
105
|
-
<div className="text-center">
|
|
106
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
107
|
-
Accessible
|
|
108
|
-
</div>
|
|
109
|
-
<div className="text-fm-tertiary text-sm">
|
|
110
|
-
Screen reader friendly
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
114
|
-
<div className="text-center">
|
|
115
|
-
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
116
|
-
Detailed
|
|
117
|
-
</div>
|
|
118
|
-
<div className="text-fm-tertiary text-sm">
|
|
119
|
-
Clear edit metaphor
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
123
|
-
<div className="text-center">
|
|
124
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
125
|
-
Versatile
|
|
126
|
-
</div>
|
|
127
|
-
<div className="text-fm-tertiary text-sm">
|
|
128
|
-
Multiple use cases
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
|
|
136
|
-
{/* Content */}
|
|
137
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
138
|
-
{/* Quick Usage */}
|
|
139
|
-
<div className="!space-y-8">
|
|
140
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
141
|
-
Quick Start
|
|
142
|
-
</h2>
|
|
143
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
144
|
-
<div className="!space-y-4">
|
|
145
|
-
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
146
|
-
Basic Usage
|
|
147
|
-
</h3>
|
|
148
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
149
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
150
|
-
{`import { EditBigIcon } from "@icons/edit-big-icon"
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="warning"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "Edit Action", description: "Modify or update content" },
|
|
39
|
+
{
|
|
40
|
+
title: "Large Format",
|
|
41
|
+
description: "Bold edit for prominent use",
|
|
42
|
+
},
|
|
43
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
44
|
+
]}
|
|
45
|
+
quickStart={{
|
|
46
|
+
codeExample: `import { EditBigIcon } from "src/ui/icons/edit-big-icon"
|
|
151
47
|
|
|
152
48
|
function EditButton() {
|
|
153
49
|
return (
|
|
154
|
-
<button className="flex items-center gap-2
|
|
155
|
-
<EditBigIcon className="h-5 w-5 text-
|
|
156
|
-
<span>Edit
|
|
50
|
+
<button className="flex items-center gap-2">
|
|
51
|
+
<EditBigIcon className="h-5 w-5 text-fm-icon-active" />
|
|
52
|
+
<span>Edit</span>
|
|
157
53
|
</button>
|
|
158
54
|
)
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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">
|
|
196
|
-
Prop
|
|
197
|
-
</th>
|
|
198
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
199
|
-
Type
|
|
200
|
-
</th>
|
|
201
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
202
|
-
Default
|
|
203
|
-
</th>
|
|
204
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
205
|
-
Description
|
|
206
|
-
</th>
|
|
207
|
-
</tr>
|
|
208
|
-
</thead>
|
|
209
|
-
<tbody>
|
|
210
|
-
{" "}
|
|
211
|
-
<tr className="bg-fm-surface-secondary!">
|
|
212
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
213
|
-
withAccessibility
|
|
214
|
-
</td>
|
|
215
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
216
|
-
boolean
|
|
217
|
-
</td>
|
|
218
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
219
|
-
true
|
|
220
|
-
</td>
|
|
221
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
222
|
-
Whether to wrap the icon with accessibility feature
|
|
223
|
-
</td>
|
|
224
|
-
</tr>
|
|
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">
|
|
227
|
-
height
|
|
228
|
-
</td>
|
|
229
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
230
|
-
number | string
|
|
231
|
-
</td>
|
|
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">
|
|
236
|
-
Height of the icon in pixels
|
|
237
|
-
</td>
|
|
238
|
-
</tr>
|
|
239
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
240
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
241
|
-
fill
|
|
242
|
-
</td>
|
|
243
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
244
|
-
string
|
|
245
|
-
</td>
|
|
246
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
247
|
-
currentColor
|
|
248
|
-
</td>
|
|
249
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
250
|
-
Fill color of the icon
|
|
251
|
-
</td>
|
|
252
|
-
</tr>
|
|
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">
|
|
255
|
-
className
|
|
256
|
-
</td>
|
|
257
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
258
|
-
string
|
|
259
|
-
</td>
|
|
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">
|
|
264
|
-
CSS classes for styling (use for overrides)
|
|
265
|
-
</td>
|
|
266
|
-
</tr>
|
|
267
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
268
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
269
|
-
onClick
|
|
270
|
-
</td>
|
|
271
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
272
|
-
function
|
|
273
|
-
</td>
|
|
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">
|
|
278
|
-
Click handler for interactive use
|
|
279
|
-
</td>
|
|
280
|
-
</tr>
|
|
281
|
-
<tr className="bg-fm-surface-secondary!">
|
|
282
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
283
|
-
...svgProps
|
|
284
|
-
</td>
|
|
285
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
286
|
-
SVGProps
|
|
287
|
-
</td>
|
|
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">
|
|
292
|
-
All standard SVG element props
|
|
293
|
-
</td>
|
|
294
|
-
</tr>
|
|
295
|
-
</tbody>
|
|
296
|
-
</table>
|
|
297
|
-
</div>
|
|
298
|
-
</div>
|
|
299
|
-
|
|
300
|
-
{/* Size Variations */}
|
|
301
|
-
<div className="!space-y-8">
|
|
302
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
303
|
-
Size Variations
|
|
304
|
-
</h2>
|
|
305
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
306
|
-
<div className="!space-y-6">
|
|
307
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
308
|
-
<div className="!space-y-4">
|
|
309
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
310
|
-
Standard Sizes
|
|
311
|
-
</h3>
|
|
312
|
-
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
313
|
-
<div className="text-center">
|
|
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>
|
|
318
|
-
</div>
|
|
319
|
-
<div className="text-center">
|
|
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>
|
|
324
|
-
</div>
|
|
325
|
-
<div className="text-center">
|
|
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>
|
|
330
|
-
</div>
|
|
331
|
-
<div className="text-center">
|
|
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>
|
|
336
|
-
</div>
|
|
337
|
-
<div className="text-center">
|
|
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>
|
|
342
|
-
</div>
|
|
343
|
-
<div className="text-center">
|
|
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>
|
|
348
|
-
</div>
|
|
349
|
-
</div>
|
|
350
|
-
</div>
|
|
351
|
-
|
|
352
|
-
<div className="!space-y-4">
|
|
353
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
354
|
-
Code Example
|
|
355
|
-
</h3>
|
|
356
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
357
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
358
|
-
{`// Small (16px)
|
|
359
|
-
<EditBigIcon className="h-4 w-4 " />
|
|
360
|
-
|
|
361
|
-
// Medium (24px)
|
|
362
|
-
<EditBigIcon className="h-6 w-6 " />
|
|
363
|
-
|
|
364
|
-
// Large (32px)
|
|
365
|
-
<EditBigIcon className="h-8 w-8 " />
|
|
366
|
-
|
|
367
|
-
// Custom size
|
|
368
|
-
<EditBigIcon width={40} height={40} />`}
|
|
369
|
-
</pre>
|
|
370
|
-
</div>
|
|
371
|
-
</div>
|
|
372
|
-
</div>
|
|
373
|
-
</div>
|
|
374
|
-
</div>
|
|
375
|
-
</div>
|
|
376
|
-
|
|
377
|
-
{/* Color Variations */}
|
|
378
|
-
<div className="!space-y-8">
|
|
379
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
380
|
-
Color Variations
|
|
381
|
-
</h2>
|
|
382
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
383
|
-
<div className="!space-y-4">
|
|
384
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
385
|
-
Semantic Colors
|
|
386
|
-
</h3>
|
|
387
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
388
|
-
<div className="flex items-center gap-4">
|
|
389
|
-
<EditBigIcon className="text-fm-icon-info h-6 w-6" />
|
|
390
|
-
<div>
|
|
391
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
392
|
-
Primary / Edit
|
|
393
|
-
</div>
|
|
394
|
-
<div className="text-fm-tertiary text-xs">
|
|
395
|
-
text-fm-icon-info
|
|
396
|
-
</div>
|
|
397
|
-
</div>
|
|
398
|
-
</div>
|
|
399
|
-
<div className="flex items-center gap-4">
|
|
400
|
-
<EditBigIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
401
|
-
<div>
|
|
402
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
403
|
-
Secondary / Modify
|
|
404
|
-
</div>
|
|
405
|
-
<div className="text-fm-tertiary text-xs">
|
|
406
|
-
text-fm-secondary-600
|
|
407
|
-
</div>
|
|
408
|
-
</div>
|
|
409
|
-
</div>
|
|
410
|
-
<div className="flex items-center gap-4">
|
|
411
|
-
<EditBigIcon className="text-fm-placeholder h-6 w-6" />
|
|
412
|
-
<div>
|
|
413
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
414
|
-
Neutral / Disabled
|
|
415
|
-
</div>
|
|
416
|
-
<div className="text-fm-tertiary text-xs">
|
|
417
|
-
text-fm-placeholder
|
|
418
|
-
</div>
|
|
419
|
-
</div>
|
|
420
|
-
</div>
|
|
421
|
-
<div className="flex items-center gap-4">
|
|
422
|
-
<EditBigIcon className="text-fm-icon-positive h-6 w-6" />
|
|
423
|
-
<div>
|
|
424
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
425
|
-
Success / Save
|
|
426
|
-
</div>
|
|
427
|
-
<div className="text-fm-tertiary text-xs">
|
|
428
|
-
text-fm-icon-positive
|
|
429
|
-
</div>
|
|
430
|
-
</div>
|
|
431
|
-
</div>
|
|
432
|
-
</div>
|
|
433
|
-
</div>
|
|
434
|
-
|
|
435
|
-
<div className="!space-y-4">
|
|
436
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
437
|
-
Custom Colors
|
|
438
|
-
</h3>
|
|
439
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
440
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
441
|
-
{`// Using Tailwind classes with
|
|
442
|
-
<EditBigIcon className="h-6 w-6 text-blue-400 " />
|
|
443
|
-
<EditBigIcon className="h-6 w-6 text-purple-500 " />
|
|
444
|
-
|
|
445
|
-
// Using CSS custom properties
|
|
446
|
-
<EditBigIcon
|
|
447
|
-
className="h-6 w-6 "
|
|
448
|
-
style={{ color: 'var(--color-primary)' }}
|
|
449
|
-
/>
|
|
450
|
-
|
|
451
|
-
// Direct fill prop
|
|
452
|
-
<EditBigIcon
|
|
453
|
-
width={24}
|
|
454
|
-
height={24}
|
|
455
|
-
fill="#3b82f6"
|
|
456
|
-
/>`}
|
|
457
|
-
</pre>
|
|
458
|
-
</div>
|
|
459
|
-
</div>
|
|
460
|
-
</div>
|
|
461
|
-
</div>
|
|
462
|
-
|
|
463
|
-
{/* Usage Examples */}
|
|
464
|
-
<div className="!space-y-8">
|
|
465
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
466
|
-
Usage Examples
|
|
467
|
-
</h2>
|
|
468
|
-
|
|
469
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
470
|
-
{/* Content Card Edit */}
|
|
471
|
-
<div className="!space-y-4">
|
|
472
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
473
|
-
Content Card Edit
|
|
474
|
-
</h3>
|
|
475
|
-
<div className="!space-y-4">
|
|
476
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
477
|
-
<div className="mb-4 flex items-start justify-between">
|
|
478
|
-
<div>
|
|
479
|
-
<h4 className="text-fm-icon-active! mb-2 font-medium">
|
|
480
|
-
Article Title
|
|
481
|
-
</h4>
|
|
482
|
-
<p className="text-fm-secondary! text-sm">
|
|
483
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing
|
|
484
|
-
elit. Sed do eiusmod tempor incididunt ut labore.
|
|
485
|
-
</p>
|
|
486
|
-
</div>
|
|
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" />
|
|
489
|
-
</button>
|
|
490
|
-
</div>
|
|
491
|
-
<div className="text-fm-placeholder flex items-center gap-2 text-xs">
|
|
492
|
-
<span>Last edited: 2 hours ago</span>
|
|
493
|
-
</div>
|
|
494
|
-
</div>
|
|
495
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
496
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
497
|
-
{`// Content card with edit button
|
|
498
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
499
|
-
<div className="flex items-start justify-between mb-4">
|
|
500
|
-
<div>
|
|
501
|
-
<h4 className="font-medium text-white mb-2">Article Title</h4>
|
|
502
|
-
<p className="text-sm text-white/70">Content preview...</p>
|
|
503
|
-
</div>
|
|
504
|
-
<button
|
|
505
|
-
className="p-2 hover:bg-white/10 rounded-lg transition-colors"
|
|
506
|
-
onClick={handleEdit}
|
|
507
|
-
>
|
|
508
|
-
<EditBigIcon className="h-5 w-5 text-blue-400 " />
|
|
509
|
-
</button>
|
|
510
|
-
</div>
|
|
511
|
-
</div>`}
|
|
512
|
-
</pre>
|
|
513
|
-
</div>
|
|
514
|
-
</div>
|
|
515
|
-
</div>
|
|
516
|
-
|
|
517
|
-
{/* Form Field Edit */}
|
|
518
|
-
<div className="!space-y-4">
|
|
519
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
520
|
-
Form Field Edit
|
|
521
|
-
</h3>
|
|
522
|
-
<div className="!space-y-4">
|
|
523
|
-
<div className="!space-y-4">
|
|
524
|
-
<div className="!space-y-2">
|
|
525
|
-
<label className="text-fm-icon-active! text-sm font-medium">
|
|
526
|
-
Profile Information
|
|
527
|
-
</label>
|
|
528
|
-
<div className="flex items-center gap-3">
|
|
529
|
-
<div className="flex-1">
|
|
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">
|
|
535
|
-
john.doe@example.com
|
|
536
|
-
</div>
|
|
537
|
-
</div>
|
|
538
|
-
</div>
|
|
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" />
|
|
541
|
-
</button>
|
|
542
|
-
</div>
|
|
543
|
-
</div>
|
|
544
|
-
</div>
|
|
545
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
546
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
547
|
-
{`// Form field with edit trigger
|
|
548
|
-
<div className="flex items-center gap-3">
|
|
549
|
-
<div className="flex-1">
|
|
550
|
-
<div className="rounded-lg border border-white/20 bg-white/5 px-3 py-2">
|
|
551
|
-
<div className="text-white">John Doe</div>
|
|
552
|
-
<div className="text-xs text-white/60">john.doe@example.com</div>
|
|
553
|
-
</div>
|
|
554
|
-
</div>
|
|
555
|
-
<button
|
|
556
|
-
className="p-2 hover:bg-blue-500/20 rounded-lg border border-blue-500/30 bg-blue-500/10"
|
|
557
|
-
onClick={startEditing}
|
|
558
|
-
>
|
|
559
|
-
<EditBigIcon className="h-4 w-4 text-blue-400 " />
|
|
560
|
-
</button>
|
|
561
|
-
</div>`}
|
|
562
|
-
</pre>
|
|
563
|
-
</div>
|
|
564
|
-
</div>
|
|
565
|
-
</div>
|
|
566
|
-
|
|
567
|
-
{/* Table Row Actions */}
|
|
568
|
-
<div className="!space-y-4">
|
|
569
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
570
|
-
Table Row Actions
|
|
571
|
-
</h3>
|
|
572
|
-
<div className="!space-y-4">
|
|
573
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
574
|
-
<table className="!my-0 w-full">
|
|
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">
|
|
578
|
-
Name
|
|
579
|
-
</th>
|
|
580
|
-
<th className="text-fm-icon-active! px-4 py-3 text-left text-sm font-medium">
|
|
581
|
-
Status
|
|
582
|
-
</th>
|
|
583
|
-
<th className="text-fm-icon-active! px-4 py-3 text-left text-sm font-medium">
|
|
584
|
-
Actions
|
|
585
|
-
</th>
|
|
586
|
-
</tr>
|
|
587
|
-
</thead>
|
|
588
|
-
<tbody>
|
|
589
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
590
|
-
<td className="text-fm-icon-active! px-4 py-3 text-sm">
|
|
591
|
-
Project Alpha
|
|
592
|
-
</td>
|
|
593
|
-
<td className="px-4 py-3">
|
|
594
|
-
<span className="bg-fm-icon-positive/20 text-fm-icon-positive inline-flex items-center rounded-full px-2 py-1 text-xs">
|
|
595
|
-
Active
|
|
596
|
-
</span>
|
|
597
|
-
</td>
|
|
598
|
-
<td className="px-4 py-3">
|
|
599
|
-
<button className="hover:bg-fm-surface-secondary rounded p-1">
|
|
600
|
-
<EditBigIcon className="text-fm-icon-info h-4 w-4" />
|
|
601
|
-
</button>
|
|
602
|
-
</td>
|
|
603
|
-
</tr>
|
|
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">
|
|
606
|
-
Project Beta
|
|
607
|
-
</td>
|
|
608
|
-
<td className="px-4 py-3">
|
|
609
|
-
<span className="bg-fm-icon-warning/20 text-fm-icon-warning inline-flex items-center rounded-full px-2 py-1 text-xs">
|
|
610
|
-
Pending
|
|
611
|
-
</span>
|
|
612
|
-
</td>
|
|
613
|
-
<td className="px-4 py-3">
|
|
614
|
-
<button className="hover:bg-fm-surface-secondary rounded p-1">
|
|
615
|
-
<EditBigIcon className="text-fm-icon-info h-4 w-4" />
|
|
616
|
-
</button>
|
|
617
|
-
</td>
|
|
618
|
-
</tr>
|
|
619
|
-
</tbody>
|
|
620
|
-
</table>
|
|
621
|
-
</div>
|
|
622
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
623
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
624
|
-
{`// Table with edit actions
|
|
625
|
-
<table className="w-full">
|
|
626
|
-
<thead>
|
|
627
|
-
<tr>
|
|
628
|
-
<th>Name</th>
|
|
629
|
-
<th>Status</th>
|
|
630
|
-
<th>Actions</th>
|
|
631
|
-
</tr>
|
|
632
|
-
</thead>
|
|
633
|
-
<tbody>
|
|
634
|
-
<tr>
|
|
635
|
-
<td>Project Alpha</td>
|
|
636
|
-
<td>Active</td>
|
|
637
|
-
<td>
|
|
638
|
-
<button
|
|
639
|
-
className="p-1 hover:bg-white/10 rounded"
|
|
640
|
-
onClick={() => editItem(item.id)}
|
|
641
|
-
>
|
|
642
|
-
<EditBigIcon className="h-4 w-4 text-blue-400 " />
|
|
643
|
-
</button>
|
|
644
|
-
</td>
|
|
645
|
-
</tr>
|
|
646
|
-
</tbody>
|
|
647
|
-
</table>`}
|
|
648
|
-
</pre>
|
|
649
|
-
</div>
|
|
650
|
-
</div>
|
|
651
|
-
</div>
|
|
652
|
-
|
|
653
|
-
{/* Inline Edit Mode */}
|
|
654
|
-
<div className="!space-y-4">
|
|
655
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
656
|
-
Inline Edit Mode
|
|
657
|
-
</h3>
|
|
658
|
-
<div className="!space-y-4">
|
|
659
|
-
<div className="!space-y-3">
|
|
660
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4">
|
|
661
|
-
<div className="flex items-center gap-3">
|
|
662
|
-
<EditBigIcon className="text-fm-icon-info h-5 w-5" />
|
|
663
|
-
<span className="text-fm-icon-active font-medium">
|
|
664
|
-
Edit Mode Active
|
|
665
|
-
</span>
|
|
666
|
-
</div>
|
|
667
|
-
<div className="flex gap-2">
|
|
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">
|
|
669
|
-
Save
|
|
670
|
-
</button>
|
|
671
|
-
<button className="border-fm-divider-primary bg-fm-surface-tertiary/20 text-fm-secondary rounded border px-3 py-1 text-xs">
|
|
672
|
-
Cancel
|
|
673
|
-
</button>
|
|
674
|
-
</div>
|
|
675
|
-
</div>
|
|
676
|
-
<div className="border-fm-icon-info/30 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
677
|
-
<input
|
|
678
|
-
type="text"
|
|
679
|
-
className="text-fm-icon-active w-full border-none bg-transparent placeholder-white/50 focus:outline-none"
|
|
680
|
-
defaultValue="This content is now editable..."
|
|
681
|
-
/>
|
|
682
|
-
</div>
|
|
683
|
-
</div>
|
|
684
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
685
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
686
|
-
{`// Inline edit mode indicator
|
|
687
|
-
<div className="flex items-center justify-between rounded-lg border bg-white/5 p-4">
|
|
688
|
-
<div className="flex items-center gap-3">
|
|
689
|
-
<EditBigIcon className="h-5 w-5 text-blue-400 " />
|
|
690
|
-
<span className="font-medium text-white">Edit Mode Active</span>
|
|
691
|
-
</div>
|
|
692
|
-
<div className="flex gap-2">
|
|
693
|
-
<button onClick={saveChanges}>Save</button>
|
|
694
|
-
<button onClick={cancelEdit}>Cancel</button>
|
|
695
|
-
</div>
|
|
696
|
-
</div>`}
|
|
697
|
-
</pre>
|
|
698
|
-
</div>
|
|
699
|
-
</div>
|
|
700
|
-
</div>
|
|
701
|
-
</div>
|
|
702
|
-
</div>
|
|
703
|
-
|
|
704
|
-
{/* Accessibility */}
|
|
705
|
-
<div className="!space-y-8">
|
|
706
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
707
|
-
Accessibility Features
|
|
708
|
-
</h2>
|
|
709
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
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">
|
|
712
|
-
✅ Built-in Features
|
|
713
|
-
</h3>
|
|
714
|
-
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
715
|
-
<li className="text-fm-secondary!">
|
|
716
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
717
|
-
</li>
|
|
718
|
-
<li className="text-fm-secondary!">
|
|
719
|
-
Provides screen reader label "Edit Big icon"
|
|
720
|
-
</li>
|
|
721
|
-
<li className="text-fm-secondary!">
|
|
722
|
-
Supports keyboard navigation when interactive
|
|
723
|
-
</li>
|
|
724
|
-
<li className="text-fm-secondary!">
|
|
725
|
-
Maintains proper color contrast ratios
|
|
726
|
-
</li>
|
|
727
|
-
<li className="text-fm-secondary!">
|
|
728
|
-
Scales with user's font size preferences
|
|
729
|
-
</li>
|
|
730
|
-
</ul>
|
|
731
|
-
</div>
|
|
732
|
-
|
|
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">
|
|
735
|
-
💡 Best Practices
|
|
736
|
-
</h3>
|
|
737
|
-
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
738
|
-
<li className="text-fm-secondary!">
|
|
739
|
-
Always provide clear button labels for edit actions
|
|
740
|
-
</li>
|
|
741
|
-
<li className="text-fm-secondary!">
|
|
742
|
-
Use consistent placement and styling
|
|
743
|
-
</li>
|
|
744
|
-
<li className="text-fm-secondary!">
|
|
745
|
-
Ensure sufficient touch target size (44px minimum)
|
|
746
|
-
</li>
|
|
747
|
-
<li className="text-fm-secondary!">
|
|
748
|
-
Provide visible focus states for keyboard users
|
|
749
|
-
</li>
|
|
750
|
-
<li className="text-fm-secondary!">
|
|
751
|
-
Consider escape key to cancel edit operations
|
|
752
|
-
</li>
|
|
753
|
-
</ul>
|
|
754
|
-
</div>
|
|
755
|
-
</div>
|
|
756
|
-
|
|
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">
|
|
759
|
-
Proper ARIA Implementation
|
|
760
|
-
</h3>
|
|
761
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
762
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
763
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
764
|
-
{`// Edit button with proper ARIA
|
|
765
|
-
<button
|
|
766
|
-
aria-label="Edit article"
|
|
767
|
-
className="p-2 hover:bg-white/10 rounded"
|
|
768
|
-
onClick={handleEdit}
|
|
769
|
-
>
|
|
770
|
-
<EditBigIcon className="h-5 w-5 text-blue-400 " />
|
|
771
|
-
</button>
|
|
772
|
-
|
|
773
|
-
// Edit mode indicator
|
|
774
|
-
<div
|
|
775
|
-
role="status"
|
|
776
|
-
aria-live="polite"
|
|
777
|
-
className="flex items-center gap-3"
|
|
778
|
-
>
|
|
779
|
-
<EditBigIcon className="h-5 w-5 text-blue-400 " />
|
|
780
|
-
<span>Edit mode active</span>
|
|
781
|
-
</div>
|
|
782
|
-
|
|
783
|
-
// Form edit trigger
|
|
784
|
-
<button
|
|
785
|
-
aria-label={\`Edit \${fieldName}\`}
|
|
786
|
-
aria-describedby="edit-help"
|
|
787
|
-
onClick={startEditing}
|
|
788
|
-
>
|
|
789
|
-
<EditBigIcon className="h-4 w-4 text-fm-icon-info " />
|
|
790
|
-
</button>`}
|
|
791
|
-
</pre>
|
|
792
|
-
</div>
|
|
793
|
-
<div className="!space-y-4">
|
|
794
|
-
<p className="text-fm-secondary! text-sm">
|
|
795
|
-
When using EditBigIcon for interactive elements, always
|
|
796
|
-
provide descriptive aria-label attributes that explain
|
|
797
|
-
what content will be edited.
|
|
798
|
-
</p>
|
|
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">
|
|
801
|
-
<EditBigIcon className="h-4 w-4" />
|
|
802
|
-
<span>
|
|
803
|
-
Screen readers need context about what can be edited
|
|
804
|
-
</span>
|
|
805
|
-
</div>
|
|
806
|
-
</div>
|
|
807
|
-
</div>
|
|
808
|
-
</div>
|
|
809
|
-
</div>
|
|
810
|
-
</div>
|
|
811
|
-
|
|
812
|
-
{/* Related Icons */}
|
|
813
|
-
<div className="!space-y-8">
|
|
814
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
815
|
-
Related Icons
|
|
816
|
-
</h2>
|
|
817
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
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">
|
|
820
|
-
<span className="text-2xl">💾</span>
|
|
821
|
-
</div>
|
|
822
|
-
<div>
|
|
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>
|
|
829
|
-
</div>
|
|
830
|
-
</div>
|
|
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">
|
|
833
|
-
<span className="text-2xl">🗑️</span>
|
|
834
|
-
</div>
|
|
835
|
-
<div>
|
|
836
|
-
<div className="text-fm-icon-active font-medium">
|
|
837
|
-
DeleteIcon
|
|
838
|
-
</div>
|
|
839
|
-
<div className="text-fm-tertiary text-xs">
|
|
840
|
-
Remove content
|
|
841
|
-
</div>
|
|
842
|
-
</div>
|
|
843
|
-
</div>
|
|
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">
|
|
846
|
-
<span className="text-2xl">👁️</span>
|
|
847
|
-
</div>
|
|
848
|
-
<div>
|
|
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>
|
|
855
|
-
</div>
|
|
856
|
-
</div>
|
|
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">
|
|
859
|
-
<span className="text-2xl">⚙️</span>
|
|
860
|
-
</div>
|
|
861
|
-
<div>
|
|
862
|
-
<div className="text-fm-icon-active font-medium">
|
|
863
|
-
SettingsIcon
|
|
864
|
-
</div>
|
|
865
|
-
<div className="text-fm-tertiary text-xs">Configure</div>
|
|
866
|
-
</div>
|
|
867
|
-
</div>
|
|
868
|
-
</div>
|
|
869
|
-
</div>
|
|
870
|
-
</div>
|
|
871
|
-
|
|
872
|
-
{/* Footer */}
|
|
873
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
874
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
875
|
-
<div className="!space-y-4 text-center">
|
|
876
|
-
<p className="text-fm-tertiary!">
|
|
877
|
-
EditBigIcon is part of the Aural UI icon library, built with
|
|
878
|
-
clarity and accessibility in mind.
|
|
879
|
-
</p>
|
|
880
|
-
<p className="text-fm-placeholder! text-sm">
|
|
881
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
882
|
-
compatibility and follow WCAG guidelines.
|
|
883
|
-
</p>
|
|
884
|
-
</div>
|
|
885
|
-
</div>
|
|
886
|
-
</div>
|
|
887
|
-
</div>
|
|
888
|
-
</>
|
|
55
|
+
}`,
|
|
56
|
+
livePreview: (
|
|
57
|
+
<button className="flex items-center gap-2">
|
|
58
|
+
<EditBigIcon className="text-fm-icon-active h-6 w-6" />
|
|
59
|
+
</button>
|
|
60
|
+
),
|
|
61
|
+
}}
|
|
62
|
+
relatedIcons={[
|
|
63
|
+
{
|
|
64
|
+
name: "PencilIcon",
|
|
65
|
+
description: "Pencil / write icon",
|
|
66
|
+
icon: PencilIcon,
|
|
67
|
+
accentToken: "info",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "MagicEditIcon",
|
|
71
|
+
description: "AI-powered edit icon",
|
|
72
|
+
icon: MagicEditIcon,
|
|
73
|
+
accentToken: "positive",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "CopyIcon",
|
|
77
|
+
description: "Copy to clipboard icon",
|
|
78
|
+
icon: CopyIcon,
|
|
79
|
+
accentToken: "warning",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "TrashIcon",
|
|
83
|
+
description: "Delete / trash icon",
|
|
84
|
+
icon: TrashIcon,
|
|
85
|
+
accentToken: "negative",
|
|
86
|
+
},
|
|
87
|
+
]}
|
|
88
|
+
/>
|
|
889
89
|
),
|
|
890
90
|
},
|
|
891
91
|
},
|
|
892
92
|
tags: ["autodocs"],
|
|
893
93
|
argTypes: {
|
|
894
|
-
width: {
|
|
895
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
896
|
-
description: "Width of the icon in pixels",
|
|
897
|
-
},
|
|
898
|
-
withAccessibility: {
|
|
899
|
-
control: "boolean",
|
|
900
|
-
description: "Whether to wrap the icon with accessibility features",
|
|
901
|
-
},
|
|
902
|
-
height: {
|
|
903
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
904
|
-
description: "Height of the icon in pixels",
|
|
905
|
-
},
|
|
906
|
-
fill: {
|
|
907
|
-
control: "color",
|
|
908
|
-
description: "Fill color of the icon",
|
|
909
|
-
},
|
|
910
94
|
className: {
|
|
911
95
|
control: "text",
|
|
912
|
-
description: "CSS classes
|
|
96
|
+
description: "CSS classes including color token",
|
|
913
97
|
},
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
description: "
|
|
98
|
+
withAccessibility: {
|
|
99
|
+
control: "boolean",
|
|
100
|
+
description: "Wrap with accessibility label",
|
|
917
101
|
},
|
|
918
102
|
},
|
|
919
103
|
}
|
|
@@ -921,232 +105,89 @@ function EditButton() {
|
|
|
921
105
|
export default meta
|
|
922
106
|
type Story = StoryObj<typeof EditBigIcon>
|
|
923
107
|
|
|
924
|
-
// Story parameters for consistent dark theme
|
|
925
|
-
const storyParameters = {
|
|
926
|
-
backgrounds: {
|
|
927
|
-
default: "dark",
|
|
928
|
-
values: [
|
|
929
|
-
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
930
|
-
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
931
|
-
],
|
|
932
|
-
},
|
|
933
|
-
}
|
|
934
|
-
|
|
935
108
|
export const Default: Story = {
|
|
936
109
|
args: {
|
|
937
|
-
className: "h-6 w-6 text-fm-icon-
|
|
110
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
938
111
|
withAccessibility: true,
|
|
939
112
|
},
|
|
940
|
-
parameters: storyParameters,
|
|
941
113
|
render: (args) => (
|
|
942
|
-
<
|
|
114
|
+
<IconDefaultCanvas>
|
|
943
115
|
<EditBigIcon {...args} />
|
|
944
|
-
</
|
|
116
|
+
</IconDefaultCanvas>
|
|
945
117
|
),
|
|
946
118
|
}
|
|
947
119
|
|
|
948
120
|
export const SizeVariations: Story = {
|
|
949
|
-
|
|
950
|
-
...storyParameters,
|
|
951
|
-
docs: {
|
|
952
|
-
description: {
|
|
953
|
-
story:
|
|
954
|
-
"EditBigIcon in different sizes, from small UI elements to large displays.",
|
|
955
|
-
},
|
|
956
|
-
},
|
|
957
|
-
},
|
|
958
|
-
render: () => (
|
|
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">
|
|
960
|
-
<div className="text-center">
|
|
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>
|
|
963
|
-
</div>
|
|
964
|
-
<div className="text-center">
|
|
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>
|
|
967
|
-
</div>
|
|
968
|
-
<div className="text-center">
|
|
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>
|
|
971
|
-
</div>
|
|
972
|
-
<div className="text-center">
|
|
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>
|
|
975
|
-
</div>
|
|
976
|
-
<div className="text-center">
|
|
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>
|
|
979
|
-
</div>
|
|
980
|
-
<div className="text-center">
|
|
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>
|
|
983
|
-
</div>
|
|
984
|
-
</div>
|
|
985
|
-
),
|
|
121
|
+
render: () => <IconSizeVariations icon={EditBigIcon} />,
|
|
986
122
|
}
|
|
987
123
|
|
|
988
124
|
export const ColorVariations: Story = {
|
|
989
|
-
|
|
990
|
-
...storyParameters,
|
|
991
|
-
docs: {
|
|
992
|
-
description: {
|
|
993
|
-
story:
|
|
994
|
-
"EditBigIcon in different semantic colors for various editing contexts.",
|
|
995
|
-
},
|
|
996
|
-
},
|
|
997
|
-
},
|
|
998
|
-
render: () => (
|
|
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">
|
|
1000
|
-
<div className="text-center">
|
|
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" />
|
|
1003
|
-
</div>
|
|
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>
|
|
1006
|
-
</div>
|
|
1007
|
-
<div className="text-center">
|
|
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
|
|
1014
|
-
</div>
|
|
1015
|
-
</div>
|
|
1016
|
-
<div className="text-center">
|
|
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" />
|
|
1019
|
-
</div>
|
|
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>
|
|
1022
|
-
</div>
|
|
1023
|
-
<div className="text-center">
|
|
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
|
|
1030
|
-
</div>
|
|
1031
|
-
</div>
|
|
1032
|
-
</div>
|
|
1033
|
-
),
|
|
125
|
+
render: () => <IconColorVariations icon={EditBigIcon} />,
|
|
1034
126
|
}
|
|
1035
127
|
|
|
1036
128
|
export const UsageExamples: Story = {
|
|
1037
|
-
parameters: {
|
|
1038
|
-
...storyParameters,
|
|
1039
|
-
docs: {
|
|
1040
|
-
description: {
|
|
1041
|
-
story:
|
|
1042
|
-
"Real-world usage examples showing EditBigIcon in different UI contexts.",
|
|
1043
|
-
},
|
|
1044
|
-
},
|
|
1045
|
-
},
|
|
1046
129
|
render: () => (
|
|
1047
|
-
<
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
</p>
|
|
130
|
+
<IconUsageCanvas>
|
|
131
|
+
<IconUsageSection title="Edit Profile">
|
|
132
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
133
|
+
<div className="flex items-center justify-between">
|
|
134
|
+
<div className="flex items-center gap-3">
|
|
135
|
+
<div className="bg-fm-divider-secondary h-12 w-12 rounded-full" />
|
|
136
|
+
<div>
|
|
137
|
+
<div className="text-fm-primary font-fm-text text-sm font-medium">
|
|
138
|
+
Pocket FM
|
|
139
|
+
</div>
|
|
140
|
+
<div className="text-fm-secondary font-fm-text text-xs">
|
|
141
|
+
@pocketfm
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
1062
144
|
</div>
|
|
1063
|
-
<button
|
|
1064
|
-
<EditBigIcon className="text-fm-icon-
|
|
145
|
+
<button>
|
|
146
|
+
<EditBigIcon className="text-fm-icon-active h-5 w-5" />
|
|
1065
147
|
</button>
|
|
1066
148
|
</div>
|
|
1067
149
|
</div>
|
|
1068
|
-
</
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
<
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
150
|
+
</IconUsageSection>
|
|
151
|
+
|
|
152
|
+
<IconUsageSection title="Content Actions">
|
|
153
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-around rounded-xl border px-4 py-3">
|
|
154
|
+
{[
|
|
155
|
+
{ Icon: EditBigIcon, label: "Edit" },
|
|
156
|
+
{ Icon: CopyIcon, label: "Copy" },
|
|
157
|
+
{ Icon: TrashIcon, label: "Delete" },
|
|
158
|
+
].map(({ Icon, label }) => (
|
|
159
|
+
<button key={label} className="flex flex-col items-center gap-1">
|
|
160
|
+
<Icon className="text-fm-icon-active h-5 w-5" />
|
|
161
|
+
<span className="text-fm-secondary font-fm-text text-xs">
|
|
162
|
+
{label}
|
|
163
|
+
</span>
|
|
164
|
+
</button>
|
|
165
|
+
))}
|
|
1083
166
|
</div>
|
|
1084
|
-
</
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
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">
|
|
1096
|
-
Name
|
|
1097
|
-
</th>
|
|
1098
|
-
<th className="text-fm-icon-active px-4 py-3 text-left text-sm font-medium">
|
|
1099
|
-
Status
|
|
1100
|
-
</th>
|
|
1101
|
-
<th className="text-fm-icon-active px-4 py-3 text-left text-sm font-medium">
|
|
1102
|
-
Actions
|
|
1103
|
-
</th>
|
|
1104
|
-
</tr>
|
|
1105
|
-
</thead>
|
|
1106
|
-
<tbody>
|
|
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>
|
|
1111
|
-
<td className="px-4 py-3">
|
|
1112
|
-
<span className="bg-fm-icon-positive/20 text-fm-icon-positive inline-flex items-center rounded-full px-2 py-1 text-xs">
|
|
1113
|
-
Active
|
|
1114
|
-
</span>
|
|
1115
|
-
</td>
|
|
1116
|
-
<td className="px-4 py-3">
|
|
1117
|
-
<button className="hover:bg-fm-surface-secondary rounded p-1">
|
|
1118
|
-
<EditBigIcon className="text-fm-icon-info h-4 w-4" />
|
|
1119
|
-
</button>
|
|
1120
|
-
</td>
|
|
1121
|
-
</tr>
|
|
1122
|
-
</tbody>
|
|
1123
|
-
</table>
|
|
167
|
+
</IconUsageSection>
|
|
168
|
+
|
|
169
|
+
<IconUsageSection title="Inline Edit Trigger">
|
|
170
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center gap-2 rounded-xl border px-4 py-3">
|
|
171
|
+
<span className="text-fm-primary font-fm-text flex-1 text-sm">
|
|
172
|
+
The Lost Kingdom — Season 1
|
|
173
|
+
</span>
|
|
174
|
+
<button>
|
|
175
|
+
<EditBigIcon className="text-fm-icon-inactive h-4 w-4" />
|
|
176
|
+
</button>
|
|
1124
177
|
</div>
|
|
1125
|
-
</
|
|
1126
|
-
</
|
|
178
|
+
</IconUsageSection>
|
|
179
|
+
</IconUsageCanvas>
|
|
1127
180
|
),
|
|
1128
181
|
}
|
|
1129
182
|
|
|
1130
183
|
export const Playground: Story = {
|
|
1131
|
-
parameters: {
|
|
1132
|
-
...storyParameters,
|
|
1133
|
-
docs: {
|
|
1134
|
-
description: {
|
|
1135
|
-
story:
|
|
1136
|
-
"Interactive playground to experiment with different EditBigIcon configurations.",
|
|
1137
|
-
},
|
|
1138
|
-
},
|
|
1139
|
-
},
|
|
1140
184
|
args: {
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
className: "text-fm-icon-info ",
|
|
185
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
186
|
+
withAccessibility: true,
|
|
1144
187
|
},
|
|
1145
188
|
render: (args) => (
|
|
1146
|
-
<
|
|
1147
|
-
<
|
|
1148
|
-
|
|
1149
|
-
</div>
|
|
1150
|
-
</div>
|
|
189
|
+
<IconPlaygroundCanvas>
|
|
190
|
+
<EditBigIcon {...args} />
|
|
191
|
+
</IconPlaygroundCanvas>
|
|
1151
192
|
),
|
|
1152
193
|
}
|