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