aural-ui 4.0.1 → 4.2.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/README.md +8 -1
- 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 +90 -90
- package/dist/index.js +90 -90
- package/package.json +8 -3
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { ColumnWideAddIcon } from "src/ui/icons/column-wide-add-icon"
|
|
5
|
+
import { EditBigIcon } from "src/ui/icons/edit-big-icon"
|
|
6
|
+
import { PencilIcon } from "src/ui/icons/pencil-icon"
|
|
7
|
+
import { UploadIcon } from "src/ui/icons/upload-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 { PlusIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof PlusIcon> = {
|
|
@@ -18,972 +32,69 @@ const meta: Meta<typeof PlusIcon> = {
|
|
|
18
32
|
},
|
|
19
33
|
docs: {
|
|
20
34
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
.sbdocs-content {
|
|
31
|
-
max-width: none !important;
|
|
32
|
-
padding: 0 !important;
|
|
33
|
-
margin: 0 !important;
|
|
34
|
-
background: transparent !important;
|
|
35
|
-
}
|
|
36
|
-
.docs-story {
|
|
37
|
-
background: transparent !important;
|
|
38
|
-
}
|
|
39
|
-
.sbdocs {
|
|
40
|
-
background: transparent !important;
|
|
41
|
-
}
|
|
42
|
-
body {
|
|
43
|
-
background: var(--color-fm-surface-primary) !important;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: var(--color-fm-surface-primary) !important;
|
|
47
|
-
}
|
|
48
|
-
.sbdocs-preview {
|
|
49
|
-
background: transparent !important;
|
|
50
|
-
border: none !important;
|
|
51
|
-
}
|
|
52
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color: var(--color-fm-icon-active) !important;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: var(--color-fm-secondary) !important;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
60
|
-
color: var(--color-fm-secondary-500) !important;
|
|
61
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
65
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
69
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
73
|
-
color: var(--color-fm-icon-active) !important;
|
|
74
|
-
border-bottom: 1px solid var(--color-fm-divider-secondary) !important;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: var(--color-fm-secondary) !important;
|
|
78
|
-
border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
|
|
79
|
-
}
|
|
80
|
-
@keyframes plus-pulse {
|
|
81
|
-
0%, 100% { transform: scale(1); opacity: 1; }
|
|
82
|
-
50% { transform: scale(1.1); opacity: 0.8; }
|
|
83
|
-
}
|
|
84
|
-
.animate-plus-pulse {
|
|
85
|
-
animation: plus-pulse 2s ease-in-out infinite;
|
|
86
|
-
}
|
|
87
|
-
@keyframes plus-rotate {
|
|
88
|
-
0% { transform: rotate(0deg); }
|
|
89
|
-
50% { transform: rotate(45deg); }
|
|
90
|
-
100% { transform: rotate(0deg); }
|
|
91
|
-
}
|
|
92
|
-
.animate-plus-rotate {
|
|
93
|
-
animation: plus-rotate 3s ease-in-out infinite;
|
|
94
|
-
}
|
|
95
|
-
@keyframes plus-expand {
|
|
96
|
-
0% { transform: scale(1); }
|
|
97
|
-
25% { transform: scale(1.2); }
|
|
98
|
-
50% { transform: scale(1); }
|
|
99
|
-
75% { transform: scale(0.9); }
|
|
100
|
-
100% { transform: scale(1); }
|
|
101
|
-
}
|
|
102
|
-
.animate-plus-expand {
|
|
103
|
-
animation: plus-expand 2.5s ease-in-out infinite;
|
|
104
|
-
}
|
|
105
|
-
`}
|
|
106
|
-
</style>
|
|
107
|
-
|
|
108
|
-
<div className="from-fm-surface-primary via-fm-icon-positive/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
|
|
109
|
-
{/* Header */}
|
|
110
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
111
|
-
<div className="from-fm-icon-positive/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
112
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
113
|
-
<div className="!space-y-6 text-center">
|
|
114
|
-
<div className="border-fm-icon-positive/30 from-fm-icon-positive/20 to-fm-icon-info/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
115
|
-
<PlusIcon className="text-fm-icon-positive h-12 w-12" />
|
|
116
|
-
</div>
|
|
117
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
118
|
-
PlusIcon
|
|
119
|
-
</h1>
|
|
120
|
-
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
121
|
-
A versatile plus icon for adding content, creating new
|
|
122
|
-
items, and positive actions. Perfect for buttons, forms, and
|
|
123
|
-
CTAs. Built with accessibility in mind using Radix UI's
|
|
124
|
-
AccessibleIcon wrapper.
|
|
125
|
-
</p>
|
|
126
|
-
|
|
127
|
-
{/* Stats */}
|
|
128
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
129
|
-
<div className="text-center">
|
|
130
|
-
<div className="text-fm-icon-positive text-3xl font-bold">
|
|
131
|
-
Add
|
|
132
|
-
</div>
|
|
133
|
-
<div className="text-fm-tertiary text-sm">
|
|
134
|
-
Create new content
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
138
|
-
<div className="text-center">
|
|
139
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
140
|
-
Create
|
|
141
|
-
</div>
|
|
142
|
-
<div className="text-fm-tertiary text-sm">
|
|
143
|
-
New items & actions
|
|
144
|
-
</div>
|
|
145
|
-
</div>
|
|
146
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
147
|
-
<div className="text-center">
|
|
148
|
-
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
149
|
-
Expand
|
|
150
|
-
</div>
|
|
151
|
-
<div className="text-fm-tertiary text-sm">
|
|
152
|
-
Growth & addition
|
|
153
|
-
</div>
|
|
154
|
-
</div>
|
|
155
|
-
</div>
|
|
156
|
-
</div>
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
|
|
160
|
-
{/* Content */}
|
|
161
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
162
|
-
{/* Quick Usage */}
|
|
163
|
-
<div className="!space-y-8">
|
|
164
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
165
|
-
Quick Start
|
|
166
|
-
</h2>
|
|
167
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
168
|
-
<div className="!space-y-4">
|
|
169
|
-
<h3 className="text-fm-icon-positive! text-xl font-semibold">
|
|
170
|
-
Basic Usage
|
|
171
|
-
</h3>
|
|
172
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
173
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
174
|
-
{`import { PlusIcon } from "@icons/plus-icon"
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="positive"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "Add", description: "Create or add new content" },
|
|
39
|
+
{ title: "New", description: "Trigger new item action" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { PlusIcon } from "src/ui/icons/plus-icon"
|
|
175
44
|
|
|
176
45
|
function AddButton() {
|
|
177
46
|
return (
|
|
178
47
|
<button className="flex items-center gap-2">
|
|
179
|
-
<PlusIcon className="h-
|
|
180
|
-
<span>Add
|
|
48
|
+
<PlusIcon className="h-5 w-5 text-fm-icon-active" />
|
|
49
|
+
<span>Add episode</span>
|
|
181
50
|
</button>
|
|
182
51
|
)
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
218
|
-
Prop
|
|
219
|
-
</th>
|
|
220
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
221
|
-
Type
|
|
222
|
-
</th>
|
|
223
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
224
|
-
Default
|
|
225
|
-
</th>
|
|
226
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
227
|
-
Description
|
|
228
|
-
</th>
|
|
229
|
-
</tr>
|
|
230
|
-
</thead>
|
|
231
|
-
<tbody>
|
|
232
|
-
{" "}
|
|
233
|
-
<tr className="bg-fm-surface-secondary!">
|
|
234
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
235
|
-
withAccessibility
|
|
236
|
-
</td>
|
|
237
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
238
|
-
boolean
|
|
239
|
-
</td>
|
|
240
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
241
|
-
true
|
|
242
|
-
</td>
|
|
243
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
244
|
-
Whether to wrap the icon with accessibility feature
|
|
245
|
-
</td>
|
|
246
|
-
</tr>
|
|
247
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
248
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
249
|
-
height
|
|
250
|
-
</td>
|
|
251
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
252
|
-
number | string
|
|
253
|
-
</td>
|
|
254
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
255
|
-
24
|
|
256
|
-
</td>
|
|
257
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
258
|
-
Height of the icon in pixels
|
|
259
|
-
</td>
|
|
260
|
-
</tr>
|
|
261
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
262
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
263
|
-
stroke
|
|
264
|
-
</td>
|
|
265
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
266
|
-
string
|
|
267
|
-
</td>
|
|
268
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
269
|
-
currentColor
|
|
270
|
-
</td>
|
|
271
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
272
|
-
Stroke color of the plus lines
|
|
273
|
-
</td>
|
|
274
|
-
</tr>
|
|
275
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
276
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
277
|
-
strokeWidth
|
|
278
|
-
</td>
|
|
279
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
280
|
-
number | string
|
|
281
|
-
</td>
|
|
282
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
283
|
-
1.5
|
|
284
|
-
</td>
|
|
285
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
286
|
-
Thickness of the stroke lines
|
|
287
|
-
</td>
|
|
288
|
-
</tr>
|
|
289
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
290
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
291
|
-
strokeLinecap
|
|
292
|
-
</td>
|
|
293
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
294
|
-
string
|
|
295
|
-
</td>
|
|
296
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
297
|
-
square
|
|
298
|
-
</td>
|
|
299
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
300
|
-
Style of line endings
|
|
301
|
-
</td>
|
|
302
|
-
</tr>
|
|
303
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
304
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
305
|
-
className
|
|
306
|
-
</td>
|
|
307
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
308
|
-
string
|
|
309
|
-
</td>
|
|
310
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
311
|
-
-
|
|
312
|
-
</td>
|
|
313
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
314
|
-
CSS classes for styling
|
|
315
|
-
</td>
|
|
316
|
-
</tr>
|
|
317
|
-
<tr className="bg-fm-surface-secondary!">
|
|
318
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
319
|
-
...svgProps
|
|
320
|
-
</td>
|
|
321
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
322
|
-
SVGProps
|
|
323
|
-
</td>
|
|
324
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
325
|
-
-
|
|
326
|
-
</td>
|
|
327
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
328
|
-
All standard SVG element props
|
|
329
|
-
</td>
|
|
330
|
-
</tr>
|
|
331
|
-
</tbody>
|
|
332
|
-
</table>
|
|
333
|
-
</div>
|
|
334
|
-
</div>
|
|
335
|
-
|
|
336
|
-
{/* Size Variations */}
|
|
337
|
-
<div className="!space-y-8">
|
|
338
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
339
|
-
Size Variations
|
|
340
|
-
</h2>
|
|
341
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
342
|
-
<div className="!space-y-6">
|
|
343
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
344
|
-
<div className="!space-y-4">
|
|
345
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
346
|
-
Standard Sizes
|
|
347
|
-
</h3>
|
|
348
|
-
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
349
|
-
<div className="text-center">
|
|
350
|
-
<PlusIcon className="text-fm-icon-positive !mx-auto mb-2 h-3 w-3" />
|
|
351
|
-
<span className="text-fm-tertiary text-xs">
|
|
352
|
-
12px
|
|
353
|
-
</span>
|
|
354
|
-
</div>
|
|
355
|
-
<div className="text-center">
|
|
356
|
-
<PlusIcon className="text-fm-icon-positive !mx-auto mb-2 h-4 w-4" />
|
|
357
|
-
<span className="text-fm-tertiary text-xs">
|
|
358
|
-
16px
|
|
359
|
-
</span>
|
|
360
|
-
</div>
|
|
361
|
-
<div className="text-center">
|
|
362
|
-
<PlusIcon className="text-fm-icon-positive !mx-auto mb-2 h-5 w-5" />
|
|
363
|
-
<span className="text-fm-tertiary text-xs">
|
|
364
|
-
20px
|
|
365
|
-
</span>
|
|
366
|
-
</div>
|
|
367
|
-
<div className="text-center">
|
|
368
|
-
<PlusIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
369
|
-
<span className="text-fm-tertiary text-xs">
|
|
370
|
-
24px
|
|
371
|
-
</span>
|
|
372
|
-
</div>
|
|
373
|
-
<div className="text-center">
|
|
374
|
-
<PlusIcon className="text-fm-icon-positive !mx-auto mb-2 h-8 w-8" />
|
|
375
|
-
<span className="text-fm-tertiary text-xs">
|
|
376
|
-
32px
|
|
377
|
-
</span>
|
|
378
|
-
</div>
|
|
379
|
-
<div className="text-center">
|
|
380
|
-
<PlusIcon className="text-fm-icon-positive !mx-auto mb-2 h-12 w-12" />
|
|
381
|
-
<span className="text-fm-tertiary text-xs">
|
|
382
|
-
48px
|
|
383
|
-
</span>
|
|
384
|
-
</div>
|
|
385
|
-
</div>
|
|
386
|
-
</div>
|
|
387
|
-
|
|
388
|
-
<div className="!space-y-4">
|
|
389
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
390
|
-
Code Example
|
|
391
|
-
</h3>
|
|
392
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
393
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
394
|
-
{`// Small (16px)
|
|
395
|
-
<PlusIcon className="h-4 w-4" />
|
|
396
|
-
|
|
397
|
-
// Medium (24px)
|
|
398
|
-
<PlusIcon className="h-6 w-6" />
|
|
399
|
-
|
|
400
|
-
// Large (32px)
|
|
401
|
-
<PlusIcon className="h-8 w-8" />
|
|
402
|
-
|
|
403
|
-
// Custom size with props
|
|
404
|
-
<PlusIcon width={40} height={40} />`}
|
|
405
|
-
</pre>
|
|
406
|
-
</div>
|
|
407
|
-
</div>
|
|
408
|
-
</div>
|
|
409
|
-
</div>
|
|
410
|
-
</div>
|
|
411
|
-
</div>
|
|
412
|
-
|
|
413
|
-
{/* Color Variations */}
|
|
414
|
-
<div className="!space-y-8">
|
|
415
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
416
|
-
Color Variations
|
|
417
|
-
</h2>
|
|
418
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
419
|
-
<div className="!space-y-4">
|
|
420
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
421
|
-
Semantic Colors
|
|
422
|
-
</h3>
|
|
423
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
424
|
-
<div className="flex items-center gap-4">
|
|
425
|
-
<PlusIcon className="text-fm-icon-positive h-6 w-6" />
|
|
426
|
-
<div>
|
|
427
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
428
|
-
Success/Add
|
|
429
|
-
</div>
|
|
430
|
-
<div className="text-fm-tertiary text-xs">
|
|
431
|
-
text-fm-icon-positive
|
|
432
|
-
</div>
|
|
433
|
-
</div>
|
|
434
|
-
</div>
|
|
435
|
-
<div className="flex items-center gap-4">
|
|
436
|
-
<PlusIcon className="text-fm-icon-info h-6 w-6" />
|
|
437
|
-
<div>
|
|
438
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
439
|
-
Primary
|
|
440
|
-
</div>
|
|
441
|
-
<div className="text-fm-tertiary text-xs">
|
|
442
|
-
text-fm-icon-info
|
|
443
|
-
</div>
|
|
444
|
-
</div>
|
|
445
|
-
</div>
|
|
446
|
-
<div className="flex items-center gap-4">
|
|
447
|
-
<PlusIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
448
|
-
<div>
|
|
449
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
450
|
-
Creative
|
|
451
|
-
</div>
|
|
452
|
-
<div className="text-fm-tertiary text-xs">
|
|
453
|
-
text-fm-secondary-600
|
|
454
|
-
</div>
|
|
455
|
-
</div>
|
|
456
|
-
</div>
|
|
457
|
-
<div className="flex items-center gap-4">
|
|
458
|
-
<PlusIcon className="text-fm-placeholder h-6 w-6" />
|
|
459
|
-
<div>
|
|
460
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
461
|
-
Disabled
|
|
462
|
-
</div>
|
|
463
|
-
<div className="text-fm-tertiary text-xs">
|
|
464
|
-
text-fm-placeholder
|
|
465
|
-
</div>
|
|
466
|
-
</div>
|
|
467
|
-
</div>
|
|
468
|
-
</div>
|
|
469
|
-
</div>
|
|
470
|
-
|
|
471
|
-
<div className="!space-y-4">
|
|
472
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
473
|
-
Custom Colors
|
|
474
|
-
</h3>
|
|
475
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
476
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
477
|
-
{`// Using Tailwind classes
|
|
478
|
-
<PlusIcon className="h-6 w-6 text-green-400" />
|
|
479
|
-
<PlusIcon className="h-6 w-6 text-blue-500" />
|
|
480
|
-
|
|
481
|
-
// Using CSS custom properties
|
|
482
|
-
<PlusIcon
|
|
483
|
-
className="h-6 w-6"
|
|
484
|
-
style={{ color: 'var(--color-primary)' }}
|
|
485
|
-
/>
|
|
486
|
-
|
|
487
|
-
// Direct stroke prop
|
|
488
|
-
<PlusIcon
|
|
489
|
-
width={24}
|
|
490
|
-
height={24}
|
|
491
|
-
stroke="#10b981"
|
|
492
|
-
/>`}
|
|
493
|
-
</pre>
|
|
494
|
-
</div>
|
|
495
|
-
</div>
|
|
496
|
-
</div>
|
|
497
|
-
</div>
|
|
498
|
-
|
|
499
|
-
{/* Usage Examples */}
|
|
500
|
-
<div className="!space-y-8">
|
|
501
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
502
|
-
Usage Examples
|
|
503
|
-
</h2>
|
|
504
|
-
|
|
505
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
506
|
-
{/* Add Button */}
|
|
507
|
-
<div className="!space-y-4">
|
|
508
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
509
|
-
Add Buttons
|
|
510
|
-
</h3>
|
|
511
|
-
<div className="!space-y-4">
|
|
512
|
-
<div className="flex gap-4">
|
|
513
|
-
<button className="border-fm-icon-positive/30 bg-fm-icon-positive/20 text-fm-icon-positive hover:bg-fm-icon-positive/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
514
|
-
<PlusIcon className="h-4 w-4" />
|
|
515
|
-
Add Item
|
|
516
|
-
</button>
|
|
517
|
-
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
518
|
-
<PlusIcon className="h-4 w-4" />
|
|
519
|
-
Create New
|
|
520
|
-
</button>
|
|
521
|
-
</div>
|
|
522
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
523
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
524
|
-
{`<button className="flex items-center gap-2 bg-green-500/20 border border-green-500/30 px-4 py-2 rounded-lg">
|
|
525
|
-
<PlusIcon className="h-4 w-4" />
|
|
526
|
-
Add Item
|
|
527
|
-
</button>
|
|
528
|
-
|
|
529
|
-
<button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-4 py-2 rounded-lg">
|
|
530
|
-
<PlusIcon className="h-4 w-4" />
|
|
531
|
-
Create New
|
|
532
|
-
</button>`}
|
|
533
|
-
</pre>
|
|
534
|
-
</div>
|
|
535
|
-
</div>
|
|
536
|
-
</div>
|
|
537
|
-
|
|
538
|
-
{/* Floating Action Button */}
|
|
539
|
-
<div className="!space-y-4">
|
|
540
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
541
|
-
Floating Action Button
|
|
542
|
-
</h3>
|
|
543
|
-
<div className="!space-y-4">
|
|
544
|
-
<div className="flex gap-4">
|
|
545
|
-
<button className="bg-fm-icon-positive text-fm-icon-active flex h-12 w-12 items-center justify-center rounded-full shadow-lg transition-transform hover:scale-110">
|
|
546
|
-
<PlusIcon className="h-6 w-6" />
|
|
547
|
-
</button>
|
|
548
|
-
<button className="bg-fm-icon-info text-fm-icon-active flex h-10 w-10 items-center justify-center rounded-full shadow-lg transition-transform hover:scale-110">
|
|
549
|
-
<PlusIcon className="h-5 w-5" />
|
|
550
|
-
</button>
|
|
551
|
-
</div>
|
|
552
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
553
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
554
|
-
{`// Large FAB
|
|
555
|
-
<button className="flex h-12 w-12 items-center justify-center rounded-full bg-green-500 text-white shadow-lg transition-transform hover:scale-110">
|
|
556
|
-
<PlusIcon className="h-6 w-6" />
|
|
557
|
-
</button>
|
|
558
|
-
|
|
559
|
-
// Small FAB
|
|
560
|
-
<button className="flex h-10 w-10 items-center justify-center rounded-full bg-blue-500 text-white shadow-lg transition-transform hover:scale-110">
|
|
561
|
-
<PlusIcon className="h-5 w-5" />
|
|
562
|
-
</button>`}
|
|
563
|
-
</pre>
|
|
564
|
-
</div>
|
|
565
|
-
</div>
|
|
566
|
-
</div>
|
|
567
|
-
|
|
568
|
-
{/* Form Fields */}
|
|
569
|
-
<div className="!space-y-4">
|
|
570
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
571
|
-
Dynamic Form Fields
|
|
572
|
-
</h3>
|
|
573
|
-
<div className="!space-y-4">
|
|
574
|
-
<div className="!space-y-3">
|
|
575
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3">
|
|
576
|
-
<input
|
|
577
|
-
type="text"
|
|
578
|
-
className="text-fm-icon-active flex-1 bg-transparent placeholder-white/50 focus:outline-none"
|
|
579
|
-
placeholder="Enter skill"
|
|
580
|
-
defaultValue="JavaScript"
|
|
581
|
-
/>
|
|
582
|
-
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-positive rounded p-1">
|
|
583
|
-
<PlusIcon className="h-4 w-4" />
|
|
584
|
-
</button>
|
|
585
|
-
</div>
|
|
586
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3">
|
|
587
|
-
<input
|
|
588
|
-
type="text"
|
|
589
|
-
className="text-fm-icon-active flex-1 bg-transparent placeholder-white/50 focus:outline-none"
|
|
590
|
-
placeholder="Enter skill"
|
|
591
|
-
defaultValue="React"
|
|
592
|
-
/>
|
|
593
|
-
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-positive rounded p-1">
|
|
594
|
-
<PlusIcon className="h-4 w-4" />
|
|
595
|
-
</button>
|
|
596
|
-
</div>
|
|
597
|
-
<button className="border-fm-icon-positive/30 bg-fm-icon-positive/10 text-fm-icon-positive hover:bg-fm-icon-positive/20 flex w-full items-center justify-center gap-2 rounded-lg border py-2 transition-colors">
|
|
598
|
-
<PlusIcon className="h-4 w-4" />
|
|
599
|
-
Add Another Skill
|
|
600
|
-
</button>
|
|
601
|
-
</div>
|
|
602
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
603
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
604
|
-
{`<div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
|
|
605
|
-
<input className="flex-1 bg-transparent text-white" placeholder="Enter skill" />
|
|
606
|
-
<button className="rounded p-1 hover:bg-white/10 hover:text-green-400">
|
|
607
|
-
<PlusIcon className="h-4 w-4" />
|
|
608
|
-
</button>
|
|
609
|
-
</div>
|
|
610
|
-
|
|
611
|
-
<button className="flex w-full items-center justify-center gap-2 rounded-lg border border-green-500/30 bg-green-500/10 py-2">
|
|
612
|
-
<PlusIcon className="h-4 w-4" />
|
|
613
|
-
Add Another Skill
|
|
614
|
-
</button>`}
|
|
615
|
-
</pre>
|
|
616
|
-
</div>
|
|
617
|
-
</div>
|
|
618
|
-
</div>
|
|
619
|
-
|
|
620
|
-
{/* Navigation Menu */}
|
|
621
|
-
<div className="!space-y-4">
|
|
622
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
623
|
-
Menu & Navigation
|
|
624
|
-
</h3>
|
|
625
|
-
<div className="!space-y-4">
|
|
626
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
627
|
-
<div className="!space-y-2">
|
|
628
|
-
<div className="text-fm-icon-active flex items-center justify-between">
|
|
629
|
-
<span>Projects</span>
|
|
630
|
-
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-positive rounded p-1">
|
|
631
|
-
<PlusIcon className="h-4 w-4" />
|
|
632
|
-
</button>
|
|
633
|
-
</div>
|
|
634
|
-
<div className="text-fm-icon-active flex items-center justify-between">
|
|
635
|
-
<span>Teams</span>
|
|
636
|
-
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-positive rounded p-1">
|
|
637
|
-
<PlusIcon className="h-4 w-4" />
|
|
638
|
-
</button>
|
|
639
|
-
</div>
|
|
640
|
-
<div className="text-fm-icon-active flex items-center justify-between">
|
|
641
|
-
<span>Workspaces</span>
|
|
642
|
-
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-positive rounded p-1">
|
|
643
|
-
<PlusIcon className="h-4 w-4" />
|
|
644
|
-
</button>
|
|
645
|
-
</div>
|
|
646
|
-
</div>
|
|
647
|
-
</div>
|
|
648
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
649
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
650
|
-
{`<div className="flex items-center justify-between text-white">
|
|
651
|
-
<span>Projects</span>
|
|
652
|
-
<button className="rounded p-1 text-white/60 hover:bg-white/10 hover:text-green-400">
|
|
653
|
-
<PlusIcon className="h-4 w-4" />
|
|
654
|
-
</button>
|
|
655
|
-
</div>`}
|
|
656
|
-
</pre>
|
|
657
|
-
</div>
|
|
658
|
-
</div>
|
|
659
|
-
</div>
|
|
660
|
-
</div>
|
|
661
|
-
</div>
|
|
662
|
-
|
|
663
|
-
{/* Interactive States */}
|
|
664
|
-
<div className="!space-y-8">
|
|
665
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
666
|
-
Interactive States & Animations
|
|
667
|
-
</h2>
|
|
668
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
669
|
-
<div className="!space-y-4">
|
|
670
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
671
|
-
Hover & Animation Effects
|
|
672
|
-
</h3>
|
|
673
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
674
|
-
<div className="flex items-center gap-4">
|
|
675
|
-
<PlusIcon className="text-fm-tertiary hover:text-fm-icon-positive h-6 w-6 transition-colors" />
|
|
676
|
-
<div>
|
|
677
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
678
|
-
Color Change
|
|
679
|
-
</div>
|
|
680
|
-
<div className="text-fm-tertiary text-xs">
|
|
681
|
-
Hover to see effect
|
|
682
|
-
</div>
|
|
683
|
-
</div>
|
|
684
|
-
</div>
|
|
685
|
-
<div className="flex items-center gap-4">
|
|
686
|
-
<PlusIcon className="text-fm-icon-active h-6 w-6 transition-transform hover:scale-125 hover:rotate-90" />
|
|
687
|
-
<div>
|
|
688
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
689
|
-
Scale & Rotate
|
|
690
|
-
</div>
|
|
691
|
-
<div className="text-fm-tertiary text-xs">
|
|
692
|
-
Transform on hover
|
|
693
|
-
</div>
|
|
694
|
-
</div>
|
|
695
|
-
</div>
|
|
696
|
-
<div className="flex items-center gap-4">
|
|
697
|
-
<PlusIcon className="animate-plus-pulse text-fm-icon-positive h-6 w-6" />
|
|
698
|
-
<div>
|
|
699
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
700
|
-
Add Pulse
|
|
701
|
-
</div>
|
|
702
|
-
<div className="text-fm-tertiary text-xs">
|
|
703
|
-
Continuous animation
|
|
704
|
-
</div>
|
|
705
|
-
</div>
|
|
706
|
-
</div>
|
|
707
|
-
<div className="flex items-center gap-4">
|
|
708
|
-
<PlusIcon className="animate-plus-rotate text-fm-icon-info h-6 w-6" />
|
|
709
|
-
<div>
|
|
710
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
711
|
-
Rotate Animation
|
|
712
|
-
</div>
|
|
713
|
-
<div className="text-fm-tertiary text-xs">
|
|
714
|
-
45° rotation cycle
|
|
715
|
-
</div>
|
|
716
|
-
</div>
|
|
717
|
-
</div>
|
|
718
|
-
<div className="flex items-center gap-4">
|
|
719
|
-
<PlusIcon className="animate-plus-expand text-fm-secondary-600 h-6 w-6" />
|
|
720
|
-
<div>
|
|
721
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
722
|
-
Expand Effect
|
|
723
|
-
</div>
|
|
724
|
-
<div className="text-fm-tertiary text-xs">
|
|
725
|
-
Scale expansion
|
|
726
|
-
</div>
|
|
727
|
-
</div>
|
|
728
|
-
</div>
|
|
729
|
-
</div>
|
|
730
|
-
</div>
|
|
731
|
-
|
|
732
|
-
<div className="!space-y-4">
|
|
733
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
734
|
-
State Examples
|
|
735
|
-
</h3>
|
|
736
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
737
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
738
|
-
{`// Color change on hover
|
|
739
|
-
<PlusIcon className="h-6 w-6 text-white/60 transition-colors hover:text-green-400" />
|
|
740
|
-
|
|
741
|
-
// Scale and rotate on hover
|
|
742
|
-
<PlusIcon className="h-6 w-6 text-white transition-transform hover:scale-125 hover:rotate-90" />
|
|
743
|
-
|
|
744
|
-
// Pulsing animation
|
|
745
|
-
<PlusIcon className="h-6 w-6 text-green-400 animate-pulse" />
|
|
746
|
-
|
|
747
|
-
// Rotating animation
|
|
748
|
-
<PlusIcon className="h-6 w-6 text-blue-400 animate-plus-rotate" />
|
|
749
|
-
|
|
750
|
-
// Loading state
|
|
751
|
-
<PlusIcon className="h-6 w-6 text-gray-400 animate-spin" />
|
|
752
|
-
|
|
753
|
-
// Disabled state
|
|
754
|
-
<PlusIcon className="h-6 w-6 text-gray-400 opacity-50" />`}
|
|
755
|
-
</pre>
|
|
756
|
-
</div>
|
|
757
|
-
</div>
|
|
758
|
-
</div>
|
|
759
|
-
</div>
|
|
760
|
-
|
|
761
|
-
{/* Accessibility */}
|
|
762
|
-
<div className="!space-y-8">
|
|
763
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
764
|
-
Accessibility Features
|
|
765
|
-
</h2>
|
|
766
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
767
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
768
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
769
|
-
✅ Built-in Features
|
|
770
|
-
</h3>
|
|
771
|
-
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
772
|
-
<li className="text-fm-secondary!">
|
|
773
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
774
|
-
</li>
|
|
775
|
-
<li className="text-fm-secondary!">
|
|
776
|
-
Provides screen reader label "Plus icon"
|
|
777
|
-
</li>
|
|
778
|
-
<li className="text-fm-secondary!">
|
|
779
|
-
Supports keyboard navigation when interactive
|
|
780
|
-
</li>
|
|
781
|
-
<li className="text-fm-secondary!">
|
|
782
|
-
Maintains proper color contrast ratios
|
|
783
|
-
</li>
|
|
784
|
-
<li className="text-fm-secondary!">
|
|
785
|
-
Scales with user's font size preferences
|
|
786
|
-
</li>
|
|
787
|
-
</ul>
|
|
788
|
-
</div>
|
|
789
|
-
|
|
790
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
791
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
792
|
-
💡 Best Practices
|
|
793
|
-
</h3>
|
|
794
|
-
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
795
|
-
<li className="text-fm-secondary!">
|
|
796
|
-
Always provide descriptive button labels
|
|
797
|
-
</li>
|
|
798
|
-
<li className="text-fm-secondary!">
|
|
799
|
-
Use consistent placement for add actions
|
|
800
|
-
</li>
|
|
801
|
-
<li className="text-fm-secondary!">
|
|
802
|
-
Ensure sufficient click/touch target sizes
|
|
803
|
-
</li>
|
|
804
|
-
<li className="text-fm-secondary!">
|
|
805
|
-
Add focus states for keyboard navigation
|
|
806
|
-
</li>
|
|
807
|
-
<li className="text-fm-secondary!">
|
|
808
|
-
Consider motion sensitivity for animations
|
|
809
|
-
</li>
|
|
810
|
-
</ul>
|
|
811
|
-
</div>
|
|
812
|
-
</div>
|
|
813
|
-
|
|
814
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
815
|
-
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
816
|
-
Custom Accessibility Implementation
|
|
817
|
-
</h3>
|
|
818
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
819
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
820
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
821
|
-
{`// Add button with proper ARIA
|
|
822
|
-
<button
|
|
823
|
-
aria-label="Add new item to list"
|
|
824
|
-
className="flex items-center gap-2 p-2"
|
|
825
|
-
>
|
|
826
|
-
<PlusIcon className="h-4 w-4" />
|
|
827
|
-
<span className="sr-only">Add Item</span>
|
|
828
|
-
</button>
|
|
829
|
-
|
|
830
|
-
// FAB with context
|
|
831
|
-
<button
|
|
832
|
-
aria-label="Create new project"
|
|
833
|
-
className="rounded-full p-3"
|
|
834
|
-
>
|
|
835
|
-
<PlusIcon
|
|
836
|
-
className="h-6 w-6"
|
|
837
|
-
aria-hidden="true"
|
|
838
|
-
/>
|
|
839
|
-
</button>
|
|
840
|
-
|
|
841
|
-
// Dynamic form field
|
|
842
|
-
<button
|
|
843
|
-
aria-label="Add another skill field"
|
|
844
|
-
aria-describedby="skills-help"
|
|
845
|
-
className="rounded p-2"
|
|
846
|
-
>
|
|
847
|
-
<PlusIcon className="h-4 w-4" />
|
|
848
|
-
</button>
|
|
849
|
-
<div id="skills-help" className="sr-only">
|
|
850
|
-
Adds a new input field for entering skills
|
|
851
|
-
</div>`}
|
|
852
|
-
</pre>
|
|
853
|
-
</div>
|
|
854
|
-
<div className="!space-y-4">
|
|
855
|
-
<p className="text-fm-secondary! text-sm">
|
|
856
|
-
When using PlusIcon for adding functionality, provide
|
|
857
|
-
clear context about what will be added and any related
|
|
858
|
-
actions.
|
|
859
|
-
</p>
|
|
860
|
-
<div className="border-fm-icon-positive/20 bg-fm-icon-positive/10 rounded-lg border p-4">
|
|
861
|
-
<div className="text-fm-icon-positive flex items-center gap-2 text-sm">
|
|
862
|
-
<PlusIcon className="h-4 w-4" />
|
|
863
|
-
<span>
|
|
864
|
-
This approach gives screen readers clear context
|
|
865
|
-
about the add functionality
|
|
866
|
-
</span>
|
|
867
|
-
</div>
|
|
868
|
-
</div>
|
|
869
|
-
</div>
|
|
870
|
-
</div>
|
|
871
|
-
</div>
|
|
872
|
-
</div>
|
|
873
|
-
|
|
874
|
-
{/* Related Icons */}
|
|
875
|
-
<div className="!space-y-8">
|
|
876
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
877
|
-
Related Icons
|
|
878
|
-
</h2>
|
|
879
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
880
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
881
|
-
<div className="bg-fm-icon-negative/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
882
|
-
<span className="text-2xl">✖️</span>
|
|
883
|
-
</div>
|
|
884
|
-
<div>
|
|
885
|
-
<div className="text-fm-icon-active font-medium">
|
|
886
|
-
CloseIcon
|
|
887
|
-
</div>
|
|
888
|
-
<div className="text-fm-tertiary text-xs">
|
|
889
|
-
Remove/Close
|
|
890
|
-
</div>
|
|
891
|
-
</div>
|
|
892
|
-
</div>
|
|
893
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
894
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
895
|
-
<span className="text-2xl">📝</span>
|
|
896
|
-
</div>
|
|
897
|
-
<div>
|
|
898
|
-
<div className="text-fm-icon-active font-medium">
|
|
899
|
-
EditIcon
|
|
900
|
-
</div>
|
|
901
|
-
<div className="text-fm-tertiary text-xs">
|
|
902
|
-
Edit content
|
|
903
|
-
</div>
|
|
904
|
-
</div>
|
|
905
|
-
</div>
|
|
906
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
907
|
-
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
908
|
-
<span className="text-2xl">📋</span>
|
|
909
|
-
</div>
|
|
910
|
-
<div>
|
|
911
|
-
<div className="text-fm-icon-active font-medium">
|
|
912
|
-
CopyIcon
|
|
913
|
-
</div>
|
|
914
|
-
<div className="text-fm-tertiary text-xs">
|
|
915
|
-
Duplicate content
|
|
916
|
-
</div>
|
|
917
|
-
</div>
|
|
918
|
-
</div>
|
|
919
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
920
|
-
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
921
|
-
<span className="text-2xl">💾</span>
|
|
922
|
-
</div>
|
|
923
|
-
<div>
|
|
924
|
-
<div className="text-fm-icon-active font-medium">
|
|
925
|
-
SaveIcon
|
|
926
|
-
</div>
|
|
927
|
-
<div className="text-fm-tertiary text-xs">
|
|
928
|
-
Save changes
|
|
929
|
-
</div>
|
|
930
|
-
</div>
|
|
931
|
-
</div>
|
|
932
|
-
</div>
|
|
933
|
-
</div>
|
|
934
|
-
</div>
|
|
935
|
-
|
|
936
|
-
{/* Footer */}
|
|
937
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
938
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
939
|
-
<div className="!space-y-4 text-center">
|
|
940
|
-
<p className="text-fm-tertiary!">
|
|
941
|
-
PlusIcon is part of the Aural UI icon library, built for
|
|
942
|
-
adding, creating, and positive actions.
|
|
943
|
-
</p>
|
|
944
|
-
<p className="text-fm-placeholder! text-sm">
|
|
945
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
946
|
-
compatibility and follow WCAG guidelines for interactive
|
|
947
|
-
elements.
|
|
948
|
-
</p>
|
|
949
|
-
</div>
|
|
950
|
-
</div>
|
|
951
|
-
</div>
|
|
952
|
-
</div>
|
|
953
|
-
</>
|
|
52
|
+
}`,
|
|
53
|
+
livePreview: (
|
|
54
|
+
<button className="flex items-center gap-2">
|
|
55
|
+
<PlusIcon className="text-fm-icon-active h-6 w-6" />
|
|
56
|
+
</button>
|
|
57
|
+
),
|
|
58
|
+
}}
|
|
59
|
+
relatedIcons={[
|
|
60
|
+
{
|
|
61
|
+
name: "ColumnWideAddIcon",
|
|
62
|
+
description: "Add wide column icon",
|
|
63
|
+
icon: ColumnWideAddIcon,
|
|
64
|
+
accentToken: "info",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "EditBigIcon",
|
|
68
|
+
description: "Edit / modify content icon",
|
|
69
|
+
icon: EditBigIcon,
|
|
70
|
+
accentToken: "positive",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "PencilIcon",
|
|
74
|
+
description: "Pencil / write icon",
|
|
75
|
+
icon: PencilIcon,
|
|
76
|
+
accentToken: "warning",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "UploadIcon",
|
|
80
|
+
description: "Upload / send to cloud icon",
|
|
81
|
+
icon: UploadIcon,
|
|
82
|
+
accentToken: "negative",
|
|
83
|
+
},
|
|
84
|
+
]}
|
|
85
|
+
/>
|
|
954
86
|
),
|
|
955
87
|
},
|
|
956
88
|
},
|
|
957
89
|
tags: ["autodocs"],
|
|
958
90
|
argTypes: {
|
|
959
|
-
|
|
960
|
-
control:
|
|
961
|
-
description: "
|
|
91
|
+
className: {
|
|
92
|
+
control: "text",
|
|
93
|
+
description: "CSS classes including color token",
|
|
962
94
|
},
|
|
963
95
|
withAccessibility: {
|
|
964
96
|
control: "boolean",
|
|
965
|
-
description: "
|
|
966
|
-
},
|
|
967
|
-
height: {
|
|
968
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
969
|
-
description: "Height of the icon in pixels",
|
|
970
|
-
},
|
|
971
|
-
stroke: {
|
|
972
|
-
control: "color",
|
|
973
|
-
description: "Stroke color of the plus lines",
|
|
974
|
-
},
|
|
975
|
-
strokeWidth: {
|
|
976
|
-
control: { type: "range", min: 0.5, max: 4, step: 0.5 },
|
|
977
|
-
description: "Thickness of the stroke lines",
|
|
978
|
-
},
|
|
979
|
-
strokeLinecap: {
|
|
980
|
-
control: "select",
|
|
981
|
-
options: ["butt", "round", "square"],
|
|
982
|
-
description: "Style of line endings",
|
|
983
|
-
},
|
|
984
|
-
className: {
|
|
985
|
-
control: "text",
|
|
986
|
-
description: "CSS classes for styling",
|
|
97
|
+
description: "Wrap with accessibility label",
|
|
987
98
|
},
|
|
988
99
|
},
|
|
989
100
|
}
|
|
@@ -991,211 +102,71 @@ function AddButton() {
|
|
|
991
102
|
export default meta
|
|
992
103
|
type Story = StoryObj<typeof PlusIcon>
|
|
993
104
|
|
|
994
|
-
// Story parameters for consistent dark theme
|
|
995
|
-
const storyParameters = {
|
|
996
|
-
backgrounds: {
|
|
997
|
-
default: "dark",
|
|
998
|
-
values: [
|
|
999
|
-
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
1000
|
-
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
1001
|
-
],
|
|
1002
|
-
},
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
105
|
export const Default: Story = {
|
|
1006
106
|
args: {
|
|
1007
|
-
|
|
1008
|
-
height: 24,
|
|
1009
|
-
className: "text-fm-icon-positive",
|
|
107
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
1010
108
|
withAccessibility: true,
|
|
1011
109
|
},
|
|
1012
|
-
parameters: storyParameters,
|
|
1013
110
|
render: (args) => (
|
|
1014
|
-
<
|
|
111
|
+
<IconDefaultCanvas>
|
|
1015
112
|
<PlusIcon {...args} />
|
|
1016
|
-
</
|
|
113
|
+
</IconDefaultCanvas>
|
|
1017
114
|
),
|
|
1018
115
|
}
|
|
1019
116
|
|
|
1020
117
|
export const SizeVariations: Story = {
|
|
1021
|
-
|
|
1022
|
-
...storyParameters,
|
|
1023
|
-
docs: {
|
|
1024
|
-
description: {
|
|
1025
|
-
story:
|
|
1026
|
-
"PlusIcon in different sizes, from small UI elements to large action buttons.",
|
|
1027
|
-
},
|
|
1028
|
-
},
|
|
1029
|
-
},
|
|
1030
|
-
render: () => (
|
|
1031
|
-
<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">
|
|
1032
|
-
<div className="text-center">
|
|
1033
|
-
<PlusIcon className="text-fm-icon-positive !mx-auto mb-2 h-3 w-3" />
|
|
1034
|
-
<span className="text-fm-tertiary text-xs">12px</span>
|
|
1035
|
-
</div>
|
|
1036
|
-
<div className="text-center">
|
|
1037
|
-
<PlusIcon className="text-fm-icon-positive !mx-auto mb-2 h-4 w-4" />
|
|
1038
|
-
<span className="text-fm-tertiary text-xs">16px</span>
|
|
1039
|
-
</div>
|
|
1040
|
-
<div className="text-center">
|
|
1041
|
-
<PlusIcon className="text-fm-icon-positive !mx-auto mb-2 h-5 w-5" />
|
|
1042
|
-
<span className="text-fm-tertiary text-xs">20px</span>
|
|
1043
|
-
</div>
|
|
1044
|
-
<div className="text-center">
|
|
1045
|
-
<PlusIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
1046
|
-
<span className="text-fm-tertiary text-xs">24px</span>
|
|
1047
|
-
</div>
|
|
1048
|
-
<div className="text-center">
|
|
1049
|
-
<PlusIcon className="text-fm-icon-positive !mx-auto mb-2 h-8 w-8" />
|
|
1050
|
-
<span className="text-fm-tertiary text-xs">32px</span>
|
|
1051
|
-
</div>
|
|
1052
|
-
<div className="text-center">
|
|
1053
|
-
<PlusIcon className="text-fm-icon-positive !mx-auto mb-2 h-12 w-12" />
|
|
1054
|
-
<span className="text-fm-tertiary text-xs">48px</span>
|
|
1055
|
-
</div>
|
|
1056
|
-
</div>
|
|
1057
|
-
),
|
|
118
|
+
render: () => <IconSizeVariations icon={PlusIcon} />,
|
|
1058
119
|
}
|
|
1059
120
|
|
|
1060
121
|
export const ColorVariations: Story = {
|
|
1061
|
-
|
|
1062
|
-
...storyParameters,
|
|
1063
|
-
docs: {
|
|
1064
|
-
description: {
|
|
1065
|
-
story:
|
|
1066
|
-
"PlusIcon in different colors for various adding and creating contexts.",
|
|
1067
|
-
},
|
|
1068
|
-
},
|
|
1069
|
-
},
|
|
1070
|
-
render: () => (
|
|
1071
|
-
<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">
|
|
1072
|
-
<div className="text-center">
|
|
1073
|
-
<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">
|
|
1074
|
-
<PlusIcon className="text-fm-icon-positive h-8 w-8" />
|
|
1075
|
-
</div>
|
|
1076
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
1077
|
-
Success/Add
|
|
1078
|
-
</div>
|
|
1079
|
-
<div className="text-fm-icon-positive text-xs">
|
|
1080
|
-
text-fm-icon-positive
|
|
1081
|
-
</div>
|
|
1082
|
-
</div>
|
|
1083
|
-
<div className="text-center">
|
|
1084
|
-
<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">
|
|
1085
|
-
<PlusIcon className="text-fm-icon-info h-8 w-8" />
|
|
1086
|
-
</div>
|
|
1087
|
-
<div className="text-fm-icon-active text-sm font-medium">Primary</div>
|
|
1088
|
-
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1089
|
-
</div>
|
|
1090
|
-
<div className="text-center">
|
|
1091
|
-
<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">
|
|
1092
|
-
<PlusIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
1093
|
-
</div>
|
|
1094
|
-
<div className="text-fm-icon-active text-sm font-medium">Creative</div>
|
|
1095
|
-
<div className="text-fm-secondary-600 text-xs">
|
|
1096
|
-
text-fm-secondary-600
|
|
1097
|
-
</div>
|
|
1098
|
-
</div>
|
|
1099
|
-
<div className="text-center">
|
|
1100
|
-
<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">
|
|
1101
|
-
<PlusIcon className="text-fm-placeholder h-8 w-8" />
|
|
1102
|
-
</div>
|
|
1103
|
-
<div className="text-fm-icon-active text-sm font-medium">Disabled</div>
|
|
1104
|
-
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
1105
|
-
</div>
|
|
1106
|
-
</div>
|
|
1107
|
-
),
|
|
122
|
+
render: () => <IconColorVariations icon={PlusIcon} />,
|
|
1108
123
|
}
|
|
1109
124
|
|
|
1110
125
|
export const UsageExamples: Story = {
|
|
1111
|
-
parameters: {
|
|
1112
|
-
...storyParameters,
|
|
1113
|
-
docs: {
|
|
1114
|
-
description: {
|
|
1115
|
-
story:
|
|
1116
|
-
"Real-world usage examples showing PlusIcon in different UI contexts.",
|
|
1117
|
-
},
|
|
1118
|
-
},
|
|
1119
|
-
},
|
|
1120
126
|
render: () => (
|
|
1121
|
-
<
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
</
|
|
1135
|
-
</
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
</div>
|
|
1150
|
-
</div>
|
|
1151
|
-
|
|
1152
|
-
{/* Dynamic Form Fields */}
|
|
1153
|
-
<div className="!space-y-2">
|
|
1154
|
-
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1155
|
-
Dynamic Form Fields
|
|
1156
|
-
</h3>
|
|
1157
|
-
<div className="!space-y-3">
|
|
1158
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3">
|
|
1159
|
-
<input
|
|
1160
|
-
type="text"
|
|
1161
|
-
className="text-fm-icon-active flex-1 bg-transparent placeholder-white/50 focus:outline-none"
|
|
1162
|
-
placeholder="Enter skill"
|
|
1163
|
-
defaultValue="JavaScript"
|
|
1164
|
-
/>
|
|
1165
|
-
<button className="text-fm-tertiary hover:bg-fm-surface-secondary hover:text-fm-icon-positive rounded p-1">
|
|
1166
|
-
<PlusIcon className="h-4 w-4" />
|
|
1167
|
-
</button>
|
|
127
|
+
<IconUsageCanvas>
|
|
128
|
+
<IconUsageSection title="Add Episode Button">
|
|
129
|
+
<button className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-4 py-2">
|
|
130
|
+
<PlusIcon className="text-fm-icon-active h-4 w-4" />
|
|
131
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
132
|
+
Add episode
|
|
133
|
+
</span>
|
|
134
|
+
</button>
|
|
135
|
+
</IconUsageSection>
|
|
136
|
+
|
|
137
|
+
<IconUsageSection title="FAB Button">
|
|
138
|
+
<button className="bg-fm-icon-active flex h-12 w-12 items-center justify-center rounded-full">
|
|
139
|
+
<PlusIcon className="text-fm-icon-inactive h-6 w-6" />
|
|
140
|
+
</button>
|
|
141
|
+
</IconUsageSection>
|
|
142
|
+
|
|
143
|
+
<IconUsageSection title="Empty State CTA">
|
|
144
|
+
<div className="flex flex-col items-center gap-3 py-4">
|
|
145
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-16 w-16 items-center justify-center rounded-full border">
|
|
146
|
+
<PlusIcon className="text-fm-icon-inactive h-8 w-8" />
|
|
147
|
+
</div>
|
|
148
|
+
<div className="text-center">
|
|
149
|
+
<div className="text-fm-primary font-fm-text text-sm font-medium">
|
|
150
|
+
No episodes yet
|
|
151
|
+
</div>
|
|
152
|
+
<div className="text-fm-secondary font-fm-text text-xs">
|
|
153
|
+
Create your first episode
|
|
154
|
+
</div>
|
|
1168
155
|
</div>
|
|
1169
|
-
<button className="border-fm-icon-positive/30 bg-fm-icon-positive/10 text-fm-icon-positive hover:bg-fm-icon-positive/20 flex w-full items-center justify-center gap-2 rounded-lg border py-2 transition-colors">
|
|
1170
|
-
<PlusIcon className="h-4 w-4" />
|
|
1171
|
-
Add Another Skill
|
|
1172
|
-
</button>
|
|
1173
156
|
</div>
|
|
1174
|
-
</
|
|
1175
|
-
</
|
|
157
|
+
</IconUsageSection>
|
|
158
|
+
</IconUsageCanvas>
|
|
1176
159
|
),
|
|
1177
160
|
}
|
|
1178
161
|
|
|
1179
162
|
export const Playground: Story = {
|
|
1180
|
-
parameters: {
|
|
1181
|
-
...storyParameters,
|
|
1182
|
-
docs: {
|
|
1183
|
-
description: {
|
|
1184
|
-
story:
|
|
1185
|
-
"Interactive playground to experiment with different PlusIcon configurations.",
|
|
1186
|
-
},
|
|
1187
|
-
},
|
|
1188
|
-
},
|
|
1189
163
|
args: {
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
className: "text-fm-icon-positive",
|
|
164
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
165
|
+
withAccessibility: true,
|
|
1193
166
|
},
|
|
1194
167
|
render: (args) => (
|
|
1195
|
-
<
|
|
1196
|
-
<
|
|
1197
|
-
|
|
1198
|
-
</div>
|
|
1199
|
-
</div>
|
|
168
|
+
<IconPlaygroundCanvas>
|
|
169
|
+
<PlusIcon {...args} />
|
|
170
|
+
</IconPlaygroundCanvas>
|
|
1200
171
|
),
|
|
1201
172
|
}
|