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