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,514 +1,103 @@
|
|
|
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 { ImageIcon } from "src/ui/icons/image-icon"
|
|
7
|
+
import { PaintRollIcon } from "src/ui/icons/paint-roll-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 { ArtBoardIcon } from "."
|
|
5
|
-
import { ArrowRightUpIcon } from "../arrow-right-up-icon"
|
|
6
19
|
|
|
7
20
|
const meta: Meta<typeof ArtBoardIcon> = {
|
|
8
21
|
title: "Icons/ArtBoardIcon",
|
|
9
22
|
component: ArtBoardIcon,
|
|
10
23
|
parameters: {
|
|
11
|
-
layout: "
|
|
24
|
+
layout: "fullscreen",
|
|
12
25
|
backgrounds: {
|
|
13
26
|
default: "dark",
|
|
14
27
|
values: [
|
|
15
|
-
{ name: "dark", value: "
|
|
16
|
-
{ name: "darker", value: "
|
|
17
|
-
{ 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)" },
|
|
18
31
|
],
|
|
19
32
|
},
|
|
20
33
|
docs: {
|
|
21
|
-
description: {
|
|
22
|
-
component:
|
|
23
|
-
"A versatile art board icon for design and creative interfaces.",
|
|
24
|
-
},
|
|
25
|
-
canvas: {
|
|
26
|
-
sourceState: "shown",
|
|
27
|
-
},
|
|
28
34
|
page: () => (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
.docs-story {
|
|
45
|
-
background: transparent !important;
|
|
46
|
-
}
|
|
47
|
-
.sbdocs {
|
|
48
|
-
background: transparent !important;
|
|
49
|
-
}
|
|
50
|
-
body {
|
|
51
|
-
background: #0a0a0a !important;
|
|
52
|
-
}
|
|
53
|
-
#storybook-docs {
|
|
54
|
-
background: #0a0a0a !important;
|
|
55
|
-
}
|
|
56
|
-
.sbdocs-preview {
|
|
57
|
-
background: transparent !important;
|
|
58
|
-
border: none !important;
|
|
59
|
-
}
|
|
60
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
61
|
-
color: white !important;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-p, .sbdocs-li {
|
|
64
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
65
|
-
}
|
|
66
|
-
.sbdocs-code {
|
|
67
|
-
background: rgba(255, 255, 255, 0.1) !important;
|
|
68
|
-
color: rgba(168, 85, 247, 1) !important;
|
|
69
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-pre {
|
|
72
|
-
background: rgba(0, 0, 0, 0.4) !important;
|
|
73
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
74
|
-
}
|
|
75
|
-
.sbdocs-table {
|
|
76
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
77
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
78
|
-
}
|
|
79
|
-
.sbdocs-table th {
|
|
80
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
81
|
-
color: white !important;
|
|
82
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
83
|
-
}
|
|
84
|
-
.sbdocs-table td {
|
|
85
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
86
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
|
|
87
|
-
}
|
|
88
|
-
`}
|
|
89
|
-
</style>
|
|
90
|
-
|
|
91
|
-
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-purple-900/20 to-gray-900">
|
|
92
|
-
{/* Header */}
|
|
93
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
94
|
-
<div className="absolute inset-0 bg-gradient-to-r from-purple-500/10 via-transparent to-blue-500/10" />
|
|
95
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
96
|
-
<div className="!space-y-6 text-center">
|
|
97
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-emerald-500/30 bg-gradient-to-br from-emerald-500/20 to-teal-500/20">
|
|
98
|
-
<ArtBoardIcon className="h-12 w-12 text-emerald-400" />
|
|
99
|
-
</div>
|
|
100
|
-
<h1 className="text-5xl font-bold !text-white">
|
|
101
|
-
ArtBoardIcon
|
|
102
|
-
</h1>
|
|
103
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
104
|
-
A versatile art board icon for design tools, creative
|
|
105
|
-
interfaces, and visual editing applications. Perfect for
|
|
106
|
-
canvas controls, design tools, and creative software
|
|
107
|
-
interfaces.
|
|
108
|
-
</p>
|
|
109
|
-
|
|
110
|
-
{/* Stats */}
|
|
111
|
-
<div className="mx-auto flex items-center justify-center gap-8">
|
|
112
|
-
<div className="text-center">
|
|
113
|
-
<div className="text-3xl font-bold text-emerald-300">
|
|
114
|
-
Design
|
|
115
|
-
</div>
|
|
116
|
-
<div className="text-sm text-white/80">
|
|
117
|
-
Creative tools
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
<div className="h-8 w-px bg-white/20" />
|
|
121
|
-
<div className="text-center">
|
|
122
|
-
<div className="text-3xl font-bold text-teal-300">
|
|
123
|
-
Canvas
|
|
124
|
-
</div>
|
|
125
|
-
<div className="text-sm text-white/80">
|
|
126
|
-
Visual editing
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
<div className="h-8 w-px bg-white/20" />
|
|
130
|
-
<div className="text-center">
|
|
131
|
-
<div className="text-3xl font-bold text-cyan-300">
|
|
132
|
-
Creative
|
|
133
|
-
</div>
|
|
134
|
-
<div className="text-sm text-white/80">Art & design</div>
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
|
|
141
|
-
{/* Content */}
|
|
142
|
-
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
143
|
-
{/* Features */}
|
|
144
|
-
<div className="!space-y-8">
|
|
145
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
146
|
-
Key Features
|
|
147
|
-
</h3>
|
|
148
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
149
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
150
|
-
<div className="text-3xl">🎨</div>
|
|
151
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
152
|
-
Design Tools
|
|
153
|
-
</h4>
|
|
154
|
-
<p className="text-sm !text-white/80">
|
|
155
|
-
Perfect for design software and creative applications
|
|
156
|
-
</p>
|
|
157
|
-
</div>
|
|
158
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
159
|
-
<div className="text-3xl">🖼️</div>
|
|
160
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
161
|
-
Canvas Controls
|
|
162
|
-
</h4>
|
|
163
|
-
<p className="text-sm !text-white/80">
|
|
164
|
-
Ideal for canvas manipulation and editing tools
|
|
165
|
-
</p>
|
|
166
|
-
</div>
|
|
167
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
168
|
-
<div className="text-3xl">✨</div>
|
|
169
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
170
|
-
Visual Editing
|
|
171
|
-
</h4>
|
|
172
|
-
<p className="text-sm !text-white/80">
|
|
173
|
-
Great for visual editing and creative interfaces
|
|
174
|
-
</p>
|
|
175
|
-
</div>
|
|
176
|
-
</div>
|
|
177
|
-
</div>
|
|
178
|
-
|
|
179
|
-
{/* API Reference */}
|
|
180
|
-
<div className="!space-y-8">
|
|
181
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
182
|
-
API Reference
|
|
183
|
-
</h3>
|
|
184
|
-
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
185
|
-
<div className="bg-white/5 p-4">
|
|
186
|
-
<h4 className="text-lg font-semibold !text-white">Props</h4>
|
|
187
|
-
</div>
|
|
188
|
-
<table className="!my-0 w-full">
|
|
189
|
-
<thead className="bg-white/5">
|
|
190
|
-
<tr className="border-b border-white/10">
|
|
191
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
192
|
-
Prop
|
|
193
|
-
</th>
|
|
194
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
195
|
-
Type
|
|
196
|
-
</th>
|
|
197
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
198
|
-
Default
|
|
199
|
-
</th>
|
|
200
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
201
|
-
Description
|
|
202
|
-
</th>
|
|
203
|
-
</tr>
|
|
204
|
-
</thead>
|
|
205
|
-
<tbody>
|
|
206
|
-
{" "}
|
|
207
|
-
<tr className="!bg-black/10">
|
|
208
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
209
|
-
withAccessibility
|
|
210
|
-
</td>
|
|
211
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
212
|
-
boolean
|
|
213
|
-
</td>
|
|
214
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
215
|
-
true
|
|
216
|
-
</td>
|
|
217
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
218
|
-
Whether to wrap the icon with accessibility feature
|
|
219
|
-
</td>
|
|
220
|
-
</tr>
|
|
221
|
-
</tbody>
|
|
222
|
-
</table>
|
|
223
|
-
</div>
|
|
224
|
-
</div>
|
|
225
|
-
|
|
226
|
-
{/* Usage Examples */}
|
|
227
|
-
<div className="!space-y-8">
|
|
228
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
229
|
-
Usage Examples
|
|
230
|
-
</h3>
|
|
231
|
-
|
|
232
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
233
|
-
<div className="space-y-4">
|
|
234
|
-
<h4 className="text-lg font-semibold !text-emerald-300">
|
|
235
|
-
Basic Usage
|
|
236
|
-
</h4>
|
|
237
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
238
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
239
|
-
{`import { ArtBoardIcon } from "@/components/ui/icons/art-board-icon"
|
|
240
|
-
|
|
241
|
-
function DesignTool() {
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="info"
|
|
37
|
+
features={[
|
|
38
|
+
{
|
|
39
|
+
title: "Canvas / Design",
|
|
40
|
+
description: "Artboard workspace icon",
|
|
41
|
+
},
|
|
42
|
+
{ title: "Layout Tools", description: "Design surface indicator" },
|
|
43
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
44
|
+
]}
|
|
45
|
+
quickStart={{
|
|
46
|
+
codeExample: `import { ArtBoardIcon } from "src/ui/icons/art-board-icon"
|
|
47
|
+
|
|
48
|
+
function DesignTab() {
|
|
242
49
|
return (
|
|
243
50
|
<button className="flex items-center gap-2">
|
|
244
|
-
<ArtBoardIcon className="h-
|
|
245
|
-
<span>
|
|
51
|
+
<ArtBoardIcon className="h-5 w-5 text-fm-icon-active" />
|
|
52
|
+
<span>Canvas</span>
|
|
246
53
|
</button>
|
|
247
54
|
)
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
<span className="text-xs text-white/60">12px</span>
|
|
283
|
-
</div>
|
|
284
|
-
<div className="text-center">
|
|
285
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-4 w-4 text-emerald-400" />
|
|
286
|
-
<span className="text-xs text-white/60">16px</span>
|
|
287
|
-
</div>
|
|
288
|
-
<div className="text-center">
|
|
289
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-5 w-5 text-emerald-400" />
|
|
290
|
-
<span className="text-xs text-white/60">20px</span>
|
|
291
|
-
</div>
|
|
292
|
-
<div className="text-center">
|
|
293
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6 text-emerald-400" />
|
|
294
|
-
<span className="text-xs text-white/60">24px</span>
|
|
295
|
-
</div>
|
|
296
|
-
<div className="text-center">
|
|
297
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-8 w-8 text-emerald-400" />
|
|
298
|
-
<span className="text-xs text-white/60">32px</span>
|
|
299
|
-
</div>
|
|
300
|
-
<div className="text-center">
|
|
301
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-12 w-12 text-emerald-400" />
|
|
302
|
-
<span className="text-xs text-white/60">48px</span>
|
|
303
|
-
</div>
|
|
304
|
-
</div>
|
|
305
|
-
</div>
|
|
306
|
-
|
|
307
|
-
<div className="!space-y-4">
|
|
308
|
-
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
309
|
-
Code Example
|
|
310
|
-
</h3>
|
|
311
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
312
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
313
|
-
{`// Small (16px)
|
|
314
|
-
<ArtBoardIcon className="h-4 w-4" />
|
|
315
|
-
|
|
316
|
-
// Medium (24px)
|
|
317
|
-
<ArtBoardIcon className="h-6 w-6" />
|
|
318
|
-
|
|
319
|
-
// Large (32px)
|
|
320
|
-
<ArtBoardIcon className="h-8 w-8" />
|
|
321
|
-
|
|
322
|
-
// Custom size
|
|
323
|
-
<ArtBoardIcon width={40} height={40} />`}
|
|
324
|
-
</pre>
|
|
325
|
-
</div>
|
|
326
|
-
</div>
|
|
327
|
-
</div>
|
|
328
|
-
</div>
|
|
329
|
-
</div>
|
|
330
|
-
</div>
|
|
331
|
-
|
|
332
|
-
{/* Common Use Cases */}
|
|
333
|
-
<div className="!space-y-8">
|
|
334
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
335
|
-
Common Use Cases
|
|
336
|
-
</h3>
|
|
337
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
338
|
-
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
339
|
-
<div className="text-2xl">🎨</div>
|
|
340
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
341
|
-
Design Tools
|
|
342
|
-
</h4>
|
|
343
|
-
<p className="text-sm !text-white/80">
|
|
344
|
-
Icons for design software interfaces
|
|
345
|
-
</p>
|
|
346
|
-
</div>
|
|
347
|
-
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
348
|
-
<div className="text-2xl">🖼️</div>
|
|
349
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
350
|
-
Canvas Controls
|
|
351
|
-
</h4>
|
|
352
|
-
<p className="text-sm !text-white/80">
|
|
353
|
-
Canvas manipulation tools
|
|
354
|
-
</p>
|
|
355
|
-
</div>
|
|
356
|
-
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
357
|
-
<div className="text-2xl">✨</div>
|
|
358
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
359
|
-
Creative Apps
|
|
360
|
-
</h4>
|
|
361
|
-
<p className="text-sm !text-white/80">
|
|
362
|
-
Visual editing applications
|
|
363
|
-
</p>
|
|
364
|
-
</div>
|
|
365
|
-
</div>
|
|
366
|
-
</div>
|
|
367
|
-
|
|
368
|
-
{/* Best Practices */}
|
|
369
|
-
<div className="!space-y-8">
|
|
370
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
371
|
-
Best Practices
|
|
372
|
-
</h3>
|
|
373
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
374
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
375
|
-
<h4 className="text-lg font-semibold !text-emerald-300">
|
|
376
|
-
✅ Do
|
|
377
|
-
</h4>
|
|
378
|
-
<ul className="space-y-2 text-sm !text-white/80">
|
|
379
|
-
<li className="!text-white/80">
|
|
380
|
-
Use appropriate sizes for different contexts
|
|
381
|
-
</li>
|
|
382
|
-
<li className="!text-white/80">
|
|
383
|
-
Choose colors that match your UI theme
|
|
384
|
-
</li>
|
|
385
|
-
<li className="!text-white/80">
|
|
386
|
-
Provide clear labels for icon buttons
|
|
387
|
-
</li>
|
|
388
|
-
<li className="!text-white/80">
|
|
389
|
-
Use consistent styling across your app
|
|
390
|
-
</li>
|
|
391
|
-
<li className="!text-white/80">
|
|
392
|
-
Consider accessibility in all implementations
|
|
393
|
-
</li>
|
|
394
|
-
</ul>
|
|
395
|
-
</div>
|
|
396
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
397
|
-
<h4 className="text-lg font-semibold !text-red-300">
|
|
398
|
-
❌ Don't
|
|
399
|
-
</h4>
|
|
400
|
-
<ul className="space-y-2 text-sm !text-white/80">
|
|
401
|
-
<li className="!text-white/80">
|
|
402
|
-
Use multiple icon styles in the same view
|
|
403
|
-
</li>
|
|
404
|
-
<li className="!text-white/80">
|
|
405
|
-
Overuse the icon in navigation
|
|
406
|
-
</li>
|
|
407
|
-
<li className="!text-white/80">
|
|
408
|
-
Use inappropriate sizes for the context
|
|
409
|
-
</li>
|
|
410
|
-
<li className="!text-white/80">
|
|
411
|
-
Forget to add hover states
|
|
412
|
-
</li>
|
|
413
|
-
<li className="!text-white/80">
|
|
414
|
-
Ignore accessibility requirements
|
|
415
|
-
</li>
|
|
416
|
-
</ul>
|
|
417
|
-
</div>
|
|
418
|
-
</div>
|
|
419
|
-
</div>
|
|
420
|
-
</div>
|
|
421
|
-
<div className="!space-y-8 p-7">
|
|
422
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
423
|
-
Related Icons
|
|
424
|
-
</h2>
|
|
425
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
426
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
427
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
428
|
-
<ArrowRightUpIcon className="h-6 w-6 rotate-90 text-blue-400" />
|
|
429
|
-
</div>
|
|
430
|
-
<div>
|
|
431
|
-
<div className="font-medium text-white">
|
|
432
|
-
ArrowRightDownIcon
|
|
433
|
-
</div>
|
|
434
|
-
<div className="text-xs text-white/60">
|
|
435
|
-
Download/decrease
|
|
436
|
-
</div>
|
|
437
|
-
</div>
|
|
438
|
-
</div>
|
|
439
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
440
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
|
|
441
|
-
<ArrowRightUpIcon className="h-6 w-6 -rotate-90 text-cyan-400" />
|
|
442
|
-
</div>
|
|
443
|
-
<div>
|
|
444
|
-
<div className="font-medium text-white">
|
|
445
|
-
ArrowLeftUpIcon
|
|
446
|
-
</div>
|
|
447
|
-
<div className="text-xs text-white/60">Back and up</div>
|
|
448
|
-
</div>
|
|
449
|
-
</div>
|
|
450
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
451
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
452
|
-
<span className="text-2xl">↗️</span>
|
|
453
|
-
</div>
|
|
454
|
-
<div>
|
|
455
|
-
<div className="font-medium text-white">
|
|
456
|
-
ExternalLinkIcon
|
|
457
|
-
</div>
|
|
458
|
-
<div className="text-xs text-white/60">
|
|
459
|
-
Alternative style
|
|
460
|
-
</div>
|
|
461
|
-
</div>
|
|
462
|
-
</div>
|
|
463
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
464
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
465
|
-
<span className="text-2xl">📈</span>
|
|
466
|
-
</div>
|
|
467
|
-
<div>
|
|
468
|
-
<div className="font-medium text-white">TrendingUpIcon</div>
|
|
469
|
-
<div className="text-xs text-white/60">Growth metrics</div>
|
|
470
|
-
</div>
|
|
471
|
-
</div>
|
|
472
|
-
</div>
|
|
473
|
-
</div>
|
|
474
|
-
{/* Footer */}
|
|
475
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
476
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
477
|
-
<div className="!space-y-4 text-center">
|
|
478
|
-
<p className="!text-white/60">
|
|
479
|
-
ArtBoardIcon is part of the Aural UI icon library, designed
|
|
480
|
-
for creative and design interfaces.
|
|
481
|
-
</p>
|
|
482
|
-
<p className="text-sm !text-white/40">
|
|
483
|
-
Perfect for design tools, canvas controls, creative
|
|
484
|
-
applications, and any interface requiring visual editing
|
|
485
|
-
capabilities.
|
|
486
|
-
</p>
|
|
487
|
-
</div>
|
|
488
|
-
</div>
|
|
489
|
-
</div>
|
|
490
|
-
</div>
|
|
491
|
-
</>
|
|
55
|
+
}`,
|
|
56
|
+
livePreview: (
|
|
57
|
+
<button className="flex items-center gap-2">
|
|
58
|
+
<ArtBoardIcon className="text-fm-icon-active h-6 w-6" />
|
|
59
|
+
</button>
|
|
60
|
+
),
|
|
61
|
+
}}
|
|
62
|
+
relatedIcons={[
|
|
63
|
+
{
|
|
64
|
+
name: "PaintRollIcon",
|
|
65
|
+
description: "Paint / theme tool icon",
|
|
66
|
+
icon: PaintRollIcon,
|
|
67
|
+
accentToken: "info",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "EditBigIcon",
|
|
71
|
+
description: "Edit / modify action icon",
|
|
72
|
+
icon: EditBigIcon,
|
|
73
|
+
accentToken: "positive",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "ImageIcon",
|
|
77
|
+
description: "Image / media placeholder",
|
|
78
|
+
icon: ImageIcon,
|
|
79
|
+
accentToken: "warning",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "ColumnWideAddIcon",
|
|
83
|
+
description: "Add wide column layout",
|
|
84
|
+
icon: ColumnWideAddIcon,
|
|
85
|
+
accentToken: "negative",
|
|
86
|
+
},
|
|
87
|
+
]}
|
|
88
|
+
/>
|
|
492
89
|
),
|
|
493
90
|
},
|
|
494
91
|
},
|
|
495
92
|
tags: ["autodocs"],
|
|
496
93
|
argTypes: {
|
|
497
|
-
|
|
498
|
-
control:
|
|
499
|
-
description: "
|
|
94
|
+
className: {
|
|
95
|
+
control: "text",
|
|
96
|
+
description: "CSS classes including color token",
|
|
500
97
|
},
|
|
501
98
|
withAccessibility: {
|
|
502
99
|
control: "boolean",
|
|
503
|
-
description: "
|
|
504
|
-
},
|
|
505
|
-
height: {
|
|
506
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
507
|
-
description: "Height of the icon in pixels",
|
|
508
|
-
},
|
|
509
|
-
className: {
|
|
510
|
-
control: "text",
|
|
511
|
-
description: "CSS classes for styling",
|
|
100
|
+
description: "Wrap with accessibility label",
|
|
512
101
|
},
|
|
513
102
|
},
|
|
514
103
|
}
|
|
@@ -516,163 +105,85 @@ function DesignTool() {
|
|
|
516
105
|
export default meta
|
|
517
106
|
type Story = StoryObj<typeof ArtBoardIcon>
|
|
518
107
|
|
|
519
|
-
// Story parameters for consistent dark theme
|
|
520
|
-
const storyParameters = {
|
|
521
|
-
backgrounds: {
|
|
522
|
-
default: "dark",
|
|
523
|
-
values: [
|
|
524
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
525
|
-
{ name: "darker", value: "#000000" },
|
|
526
|
-
],
|
|
527
|
-
},
|
|
528
|
-
}
|
|
529
|
-
|
|
530
108
|
export const Default: Story = {
|
|
531
109
|
args: {
|
|
532
|
-
|
|
533
|
-
height: 24,
|
|
534
|
-
className: "text-emerald-400",
|
|
110
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
535
111
|
withAccessibility: true,
|
|
536
112
|
},
|
|
537
|
-
parameters: storyParameters,
|
|
538
113
|
render: (args) => (
|
|
539
|
-
<
|
|
114
|
+
<IconDefaultCanvas>
|
|
540
115
|
<ArtBoardIcon {...args} />
|
|
541
|
-
</
|
|
116
|
+
</IconDefaultCanvas>
|
|
542
117
|
),
|
|
543
118
|
}
|
|
544
119
|
|
|
545
120
|
export const SizeVariations: Story = {
|
|
546
|
-
|
|
547
|
-
...storyParameters,
|
|
548
|
-
docs: {
|
|
549
|
-
description: {
|
|
550
|
-
story:
|
|
551
|
-
"ArtBoardIcon in different sizes, from small inline buttons to large call-to-action elements.",
|
|
552
|
-
},
|
|
553
|
-
},
|
|
554
|
-
},
|
|
555
|
-
render: () => (
|
|
556
|
-
<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">
|
|
557
|
-
<div className="text-center">
|
|
558
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-3 w-3 text-emerald-400" />
|
|
559
|
-
<span className="text-xs text-white/60">12px</span>
|
|
560
|
-
</div>
|
|
561
|
-
<div className="text-center">
|
|
562
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-4 w-4 text-emerald-400" />
|
|
563
|
-
<span className="text-xs text-white/60">16px</span>
|
|
564
|
-
</div>
|
|
565
|
-
<div className="text-center">
|
|
566
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-5 w-5 text-emerald-400" />
|
|
567
|
-
<span className="text-xs text-white/60">20px</span>
|
|
568
|
-
</div>
|
|
569
|
-
<div className="text-center">
|
|
570
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6 text-emerald-400" />
|
|
571
|
-
<span className="text-xs text-white/60">24px</span>
|
|
572
|
-
</div>
|
|
573
|
-
<div className="text-center">
|
|
574
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-8 w-8 text-emerald-400" />
|
|
575
|
-
<span className="text-xs text-white/60">32px</span>
|
|
576
|
-
</div>
|
|
577
|
-
<div className="text-center">
|
|
578
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-12 w-12 text-emerald-400" />
|
|
579
|
-
<span className="text-xs text-white/60">48px</span>
|
|
580
|
-
</div>
|
|
581
|
-
</div>
|
|
582
|
-
),
|
|
121
|
+
render: () => <IconSizeVariations icon={ArtBoardIcon} />,
|
|
583
122
|
}
|
|
584
123
|
|
|
585
124
|
export const ColorVariations: Story = {
|
|
586
|
-
|
|
587
|
-
...storyParameters,
|
|
588
|
-
docs: {
|
|
589
|
-
description: {
|
|
590
|
-
story:
|
|
591
|
-
"ArtBoardIcon with different color variations using Tailwind classes.",
|
|
592
|
-
},
|
|
593
|
-
},
|
|
594
|
-
},
|
|
595
|
-
render: () => (
|
|
596
|
-
<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">
|
|
597
|
-
<div className="text-center">
|
|
598
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
599
|
-
<span className="text-xs text-white/60">Blue</span>
|
|
600
|
-
</div>
|
|
601
|
-
<div className="text-center">
|
|
602
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
|
|
603
|
-
<span className="text-xs text-white/60">Purple</span>
|
|
604
|
-
</div>
|
|
605
|
-
<div className="text-center">
|
|
606
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6 text-green-400" />
|
|
607
|
-
<span className="text-xs text-white/60">Green</span>
|
|
608
|
-
</div>
|
|
609
|
-
<div className="text-center">
|
|
610
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6 text-red-400" />
|
|
611
|
-
<span className="text-xs text-white/60">Red</span>
|
|
612
|
-
</div>
|
|
613
|
-
<div className="text-center">
|
|
614
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6 text-yellow-400" />
|
|
615
|
-
<span className="text-xs text-white/60">Yellow</span>
|
|
616
|
-
</div>
|
|
617
|
-
</div>
|
|
618
|
-
),
|
|
125
|
+
render: () => <IconColorVariations icon={ArtBoardIcon} />,
|
|
619
126
|
}
|
|
620
127
|
|
|
621
128
|
export const UsageExamples: Story = {
|
|
622
|
-
parameters: {
|
|
623
|
-
...storyParameters,
|
|
624
|
-
docs: {
|
|
625
|
-
description: {
|
|
626
|
-
story: "Common usage examples of ArtBoardIcon in different contexts.",
|
|
627
|
-
},
|
|
628
|
-
},
|
|
629
|
-
},
|
|
630
129
|
render: () => (
|
|
631
|
-
<
|
|
632
|
-
<
|
|
633
|
-
<
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
130
|
+
<IconUsageCanvas>
|
|
131
|
+
<IconUsageSection title="Design Mode Tab">
|
|
132
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm gap-1 rounded-xl border p-1">
|
|
133
|
+
{["Canvas", "Preview", "Code"].map((label, i) => (
|
|
134
|
+
<button
|
|
135
|
+
key={label}
|
|
136
|
+
className={`flex flex-1 items-center justify-center gap-2 rounded-lg px-3 py-2 ${i === 0 ? "bg-fm-surface-primary" : ""}`}
|
|
137
|
+
>
|
|
138
|
+
{i === 0 && (
|
|
139
|
+
<ArtBoardIcon className="text-fm-icon-active h-4 w-4" />
|
|
140
|
+
)}
|
|
141
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
142
|
+
{label}
|
|
143
|
+
</span>
|
|
144
|
+
</button>
|
|
145
|
+
))}
|
|
646
146
|
</div>
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
147
|
+
</IconUsageSection>
|
|
148
|
+
|
|
149
|
+
<IconUsageSection title="Workspace Card">
|
|
150
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
151
|
+
<div className="flex items-center gap-3">
|
|
152
|
+
<div className="bg-fm-divider-secondary flex h-10 w-10 items-center justify-center rounded-xl">
|
|
153
|
+
<ArtBoardIcon className="text-fm-icon-active h-5 w-5" />
|
|
154
|
+
</div>
|
|
155
|
+
<div>
|
|
156
|
+
<div className="text-fm-primary font-fm-text text-sm font-medium">
|
|
157
|
+
Story Canvas
|
|
158
|
+
</div>
|
|
159
|
+
<div className="text-fm-secondary font-fm-text text-xs">
|
|
160
|
+
Design workspace
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</IconUsageSection>
|
|
166
|
+
|
|
167
|
+
<IconUsageSection title="Toolbar Button">
|
|
168
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-3 py-2">
|
|
169
|
+
<ArtBoardIcon className="text-fm-icon-inactive h-4 w-4" />
|
|
170
|
+
<span className="text-fm-secondary font-fm-text text-sm">
|
|
171
|
+
New Artboard
|
|
172
|
+
</span>
|
|
650
173
|
</div>
|
|
651
|
-
</
|
|
652
|
-
</
|
|
174
|
+
</IconUsageSection>
|
|
175
|
+
</IconUsageCanvas>
|
|
653
176
|
),
|
|
654
177
|
}
|
|
655
178
|
|
|
656
179
|
export const Playground: Story = {
|
|
657
|
-
parameters: {
|
|
658
|
-
...storyParameters,
|
|
659
|
-
docs: {
|
|
660
|
-
description: {
|
|
661
|
-
story:
|
|
662
|
-
"Interactive playground to experiment with different ArtBoardIcon configurations.",
|
|
663
|
-
},
|
|
664
|
-
},
|
|
665
|
-
},
|
|
666
180
|
args: {
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
className: "text-emerald-400",
|
|
181
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
182
|
+
withAccessibility: true,
|
|
670
183
|
},
|
|
671
184
|
render: (args) => (
|
|
672
|
-
<
|
|
673
|
-
<
|
|
674
|
-
|
|
675
|
-
</div>
|
|
676
|
-
</div>
|
|
185
|
+
<IconPlaygroundCanvas>
|
|
186
|
+
<ArtBoardIcon {...args} />
|
|
187
|
+
</IconPlaygroundCanvas>
|
|
677
188
|
),
|
|
678
189
|
}
|