aural-ui 4.0.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
- package/dist/components/avatar/Avatar.stories.tsx +219 -235
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -636
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +530 -867
- package/dist/components/dialog/Dialog.stories.tsx +501 -950
- package/dist/components/divider/Divider.stories.tsx +264 -527
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -1023
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +484 -835
- package/dist/components/marquee/Marquee.stories.tsx +356 -712
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
- package/dist/components/overlay/Overlay.stories.tsx +452 -824
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +481 -896
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +495 -799
- package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
- package/dist/components/search/Search.stories.tsx +312 -595
- package/dist/components/select/Select.stories.tsx +684 -789
- package/dist/components/sheet/Sheet.stories.tsx +671 -950
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +383 -760
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -916
- package/dist/components/tabs/Tabs.stories.tsx +458 -1455
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
- package/dist/components/toast/Toast.stories.tsx +452 -1339
- package/dist/components/toggle/Toggle.stories.tsx +488 -931
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
- package/dist/icons/all-icons.tsx +37 -16
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
- package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
- package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
- package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
- package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
- package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
- package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
- package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
- package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
- package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
- package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
- package/dist/index.cjs +90 -90
- package/dist/index.js +90 -90
- package/package.json +8 -3
|
@@ -1,14 +1,27 @@
|
|
|
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: [
|
|
@@ -18,517 +31,73 @@ const meta: Meta<typeof ArtBoardIcon> = {
|
|
|
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: var(--color-fm-surface-primary) !important;
|
|
52
|
-
}
|
|
53
|
-
#storybook-docs {
|
|
54
|
-
background: var(--color-fm-surface-primary) !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: var(--color-fm-icon-active) !important;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-p, .sbdocs-li {
|
|
64
|
-
color: var(--color-fm-secondary) !important;
|
|
65
|
-
}
|
|
66
|
-
.sbdocs-code {
|
|
67
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
68
|
-
color: var(--color-fm-secondary-500) !important;
|
|
69
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-pre {
|
|
72
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
73
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
74
|
-
}
|
|
75
|
-
.sbdocs-table {
|
|
76
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
77
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
78
|
-
}
|
|
79
|
-
.sbdocs-table th {
|
|
80
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
81
|
-
color: var(--color-fm-icon-active) !important;
|
|
82
|
-
border-bottom: 1px solid var(--color-fm-divider-secondary) !important;
|
|
83
|
-
}
|
|
84
|
-
.sbdocs-table td {
|
|
85
|
-
color: var(--color-fm-secondary) !important;
|
|
86
|
-
border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
|
|
87
|
-
}
|
|
88
|
-
`}
|
|
89
|
-
</style>
|
|
90
|
-
|
|
91
|
-
<div className="bg-fm-surface-primary min-h-screen">
|
|
92
|
-
{/* Header */}
|
|
93
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
94
|
-
<div className="from-fm-secondary-500/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
95
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
96
|
-
<div className="!space-y-6 text-center">
|
|
97
|
-
<div className="border-fm-icon-positive/30 from-fm-icon-positive/20 to-fm-icon-info/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
98
|
-
<ArtBoardIcon className="text-fm-icon-positive h-12 w-12" />
|
|
99
|
-
</div>
|
|
100
|
-
<h1 className="text-fm-icon-active! text-5xl font-bold">
|
|
101
|
-
ArtBoardIcon
|
|
102
|
-
</h1>
|
|
103
|
-
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
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-fm-icon-positive text-3xl font-bold">
|
|
114
|
-
Design
|
|
115
|
-
</div>
|
|
116
|
-
<div className="text-fm-icon-active/80 text-sm">
|
|
117
|
-
Creative tools
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
121
|
-
<div className="text-center">
|
|
122
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
123
|
-
Canvas
|
|
124
|
-
</div>
|
|
125
|
-
<div className="text-fm-icon-active/80 text-sm">
|
|
126
|
-
Visual editing
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
130
|
-
<div className="text-center">
|
|
131
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
132
|
-
Creative
|
|
133
|
-
</div>
|
|
134
|
-
<div className="text-fm-icon-active/80 text-sm">
|
|
135
|
-
Art & design
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|
|
141
|
-
</div>
|
|
142
|
-
|
|
143
|
-
{/* Content */}
|
|
144
|
-
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
145
|
-
{/* Features */}
|
|
146
|
-
<div className="!space-y-8">
|
|
147
|
-
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
148
|
-
Key Features
|
|
149
|
-
</h3>
|
|
150
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
151
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
152
|
-
<div className="text-3xl">🎨</div>
|
|
153
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
154
|
-
Design Tools
|
|
155
|
-
</h4>
|
|
156
|
-
<p className="text-fm-icon-active!/80 text-sm">
|
|
157
|
-
Perfect for design software and creative applications
|
|
158
|
-
</p>
|
|
159
|
-
</div>
|
|
160
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
161
|
-
<div className="text-3xl">🖼️</div>
|
|
162
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
163
|
-
Canvas Controls
|
|
164
|
-
</h4>
|
|
165
|
-
<p className="text-fm-icon-active!/80 text-sm">
|
|
166
|
-
Ideal for canvas manipulation and editing tools
|
|
167
|
-
</p>
|
|
168
|
-
</div>
|
|
169
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
170
|
-
<div className="text-3xl">✨</div>
|
|
171
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
172
|
-
Visual Editing
|
|
173
|
-
</h4>
|
|
174
|
-
<p className="text-fm-icon-active!/80 text-sm">
|
|
175
|
-
Great for visual editing and creative interfaces
|
|
176
|
-
</p>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
</div>
|
|
180
|
-
|
|
181
|
-
{/* API Reference */}
|
|
182
|
-
<div className="!space-y-8">
|
|
183
|
-
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
184
|
-
API Reference
|
|
185
|
-
</h3>
|
|
186
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
187
|
-
<div className="bg-fm-surface-secondary p-4">
|
|
188
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
189
|
-
Props
|
|
190
|
-
</h4>
|
|
191
|
-
</div>
|
|
192
|
-
<table className="!my-0 w-full">
|
|
193
|
-
<thead className="bg-fm-surface-secondary">
|
|
194
|
-
<tr className="border-fm-divider-secondary border-b">
|
|
195
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
196
|
-
Prop
|
|
197
|
-
</th>
|
|
198
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
199
|
-
Type
|
|
200
|
-
</th>
|
|
201
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
202
|
-
Default
|
|
203
|
-
</th>
|
|
204
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
205
|
-
Description
|
|
206
|
-
</th>
|
|
207
|
-
</tr>
|
|
208
|
-
</thead>
|
|
209
|
-
<tbody>
|
|
210
|
-
{" "}
|
|
211
|
-
<tr className="bg-fm-surface-secondary!">
|
|
212
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
213
|
-
withAccessibility
|
|
214
|
-
</td>
|
|
215
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
216
|
-
boolean
|
|
217
|
-
</td>
|
|
218
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
219
|
-
true
|
|
220
|
-
</td>
|
|
221
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
222
|
-
Whether to wrap the icon with accessibility feature
|
|
223
|
-
</td>
|
|
224
|
-
</tr>
|
|
225
|
-
</tbody>
|
|
226
|
-
</table>
|
|
227
|
-
</div>
|
|
228
|
-
</div>
|
|
229
|
-
|
|
230
|
-
{/* Usage Examples */}
|
|
231
|
-
<div className="!space-y-8">
|
|
232
|
-
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
233
|
-
Usage Examples
|
|
234
|
-
</h3>
|
|
235
|
-
|
|
236
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
237
|
-
<div className="space-y-4">
|
|
238
|
-
<h4 className="text-fm-icon-positive! text-lg font-semibold">
|
|
239
|
-
Basic Usage
|
|
240
|
-
</h4>
|
|
241
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
242
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
243
|
-
{`import { ArtBoardIcon } from "@/components/ui/icons/art-board-icon"
|
|
244
|
-
|
|
245
|
-
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() {
|
|
246
49
|
return (
|
|
247
50
|
<button className="flex items-center gap-2">
|
|
248
|
-
<ArtBoardIcon className="h-
|
|
249
|
-
<span>
|
|
51
|
+
<ArtBoardIcon className="h-5 w-5 text-fm-icon-active" />
|
|
52
|
+
<span>Canvas</span>
|
|
250
53
|
</button>
|
|
251
54
|
)
|
|
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
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
<span className="text-fm-tertiary text-xs">
|
|
287
|
-
12px
|
|
288
|
-
</span>
|
|
289
|
-
</div>
|
|
290
|
-
<div className="text-center">
|
|
291
|
-
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-4 w-4" />
|
|
292
|
-
<span className="text-fm-tertiary text-xs">
|
|
293
|
-
16px
|
|
294
|
-
</span>
|
|
295
|
-
</div>
|
|
296
|
-
<div className="text-center">
|
|
297
|
-
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-5 w-5" />
|
|
298
|
-
<span className="text-fm-tertiary text-xs">
|
|
299
|
-
20px
|
|
300
|
-
</span>
|
|
301
|
-
</div>
|
|
302
|
-
<div className="text-center">
|
|
303
|
-
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
304
|
-
<span className="text-fm-tertiary text-xs">
|
|
305
|
-
24px
|
|
306
|
-
</span>
|
|
307
|
-
</div>
|
|
308
|
-
<div className="text-center">
|
|
309
|
-
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-8 w-8" />
|
|
310
|
-
<span className="text-fm-tertiary text-xs">
|
|
311
|
-
32px
|
|
312
|
-
</span>
|
|
313
|
-
</div>
|
|
314
|
-
<div className="text-center">
|
|
315
|
-
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-12 w-12" />
|
|
316
|
-
<span className="text-fm-tertiary text-xs">
|
|
317
|
-
48px
|
|
318
|
-
</span>
|
|
319
|
-
</div>
|
|
320
|
-
</div>
|
|
321
|
-
</div>
|
|
322
|
-
|
|
323
|
-
<div className="!space-y-4">
|
|
324
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
325
|
-
Code Example
|
|
326
|
-
</h3>
|
|
327
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
328
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
329
|
-
{`// Small (16px)
|
|
330
|
-
<ArtBoardIcon className="h-4 w-4" />
|
|
331
|
-
|
|
332
|
-
// Medium (24px)
|
|
333
|
-
<ArtBoardIcon className="h-6 w-6" />
|
|
334
|
-
|
|
335
|
-
// Large (32px)
|
|
336
|
-
<ArtBoardIcon className="h-8 w-8" />
|
|
337
|
-
|
|
338
|
-
// Custom size
|
|
339
|
-
<ArtBoardIcon width={40} height={40} />`}
|
|
340
|
-
</pre>
|
|
341
|
-
</div>
|
|
342
|
-
</div>
|
|
343
|
-
</div>
|
|
344
|
-
</div>
|
|
345
|
-
</div>
|
|
346
|
-
</div>
|
|
347
|
-
|
|
348
|
-
{/* Common Use Cases */}
|
|
349
|
-
<div className="!space-y-8">
|
|
350
|
-
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
351
|
-
Common Use Cases
|
|
352
|
-
</h3>
|
|
353
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
354
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
355
|
-
<div className="text-2xl">🎨</div>
|
|
356
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
357
|
-
Design Tools
|
|
358
|
-
</h4>
|
|
359
|
-
<p className="text-fm-icon-active!/80 text-sm">
|
|
360
|
-
Icons for design software interfaces
|
|
361
|
-
</p>
|
|
362
|
-
</div>
|
|
363
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
364
|
-
<div className="text-2xl">🖼️</div>
|
|
365
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
366
|
-
Canvas Controls
|
|
367
|
-
</h4>
|
|
368
|
-
<p className="text-fm-icon-active!/80 text-sm">
|
|
369
|
-
Canvas manipulation tools
|
|
370
|
-
</p>
|
|
371
|
-
</div>
|
|
372
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
373
|
-
<div className="text-2xl">✨</div>
|
|
374
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
375
|
-
Creative Apps
|
|
376
|
-
</h4>
|
|
377
|
-
<p className="text-fm-icon-active!/80 text-sm">
|
|
378
|
-
Visual editing applications
|
|
379
|
-
</p>
|
|
380
|
-
</div>
|
|
381
|
-
</div>
|
|
382
|
-
</div>
|
|
383
|
-
|
|
384
|
-
{/* Best Practices */}
|
|
385
|
-
<div className="!space-y-8">
|
|
386
|
-
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
387
|
-
Best Practices
|
|
388
|
-
</h3>
|
|
389
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
390
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
391
|
-
<h4 className="text-fm-icon-positive! text-lg font-semibold">
|
|
392
|
-
✅ Do
|
|
393
|
-
</h4>
|
|
394
|
-
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
395
|
-
<li className="text-fm-icon-active!/80">
|
|
396
|
-
Use appropriate sizes for different contexts
|
|
397
|
-
</li>
|
|
398
|
-
<li className="text-fm-icon-active!/80">
|
|
399
|
-
Choose colors that match your UI theme
|
|
400
|
-
</li>
|
|
401
|
-
<li className="text-fm-icon-active!/80">
|
|
402
|
-
Provide clear labels for icon buttons
|
|
403
|
-
</li>
|
|
404
|
-
<li className="text-fm-icon-active!/80">
|
|
405
|
-
Use consistent styling across your app
|
|
406
|
-
</li>
|
|
407
|
-
<li className="text-fm-icon-active!/80">
|
|
408
|
-
Consider accessibility in all implementations
|
|
409
|
-
</li>
|
|
410
|
-
</ul>
|
|
411
|
-
</div>
|
|
412
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
413
|
-
<h4 className="text-fm-icon-negative! text-lg font-semibold">
|
|
414
|
-
❌ Don't
|
|
415
|
-
</h4>
|
|
416
|
-
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
417
|
-
<li className="text-fm-icon-active!/80">
|
|
418
|
-
Use multiple icon styles in the same view
|
|
419
|
-
</li>
|
|
420
|
-
<li className="text-fm-icon-active!/80">
|
|
421
|
-
Overuse the icon in navigation
|
|
422
|
-
</li>
|
|
423
|
-
<li className="text-fm-icon-active!/80">
|
|
424
|
-
Use inappropriate sizes for the context
|
|
425
|
-
</li>
|
|
426
|
-
<li className="text-fm-icon-active!/80">
|
|
427
|
-
Forget to add hover states
|
|
428
|
-
</li>
|
|
429
|
-
<li className="text-fm-icon-active!/80">
|
|
430
|
-
Ignore accessibility requirements
|
|
431
|
-
</li>
|
|
432
|
-
</ul>
|
|
433
|
-
</div>
|
|
434
|
-
</div>
|
|
435
|
-
</div>
|
|
436
|
-
</div>
|
|
437
|
-
<div className="!space-y-8 p-7">
|
|
438
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
439
|
-
Related Icons
|
|
440
|
-
</h2>
|
|
441
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
442
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
443
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
444
|
-
<ArrowRightUpIcon className="text-fm-icon-info h-6 w-6 rotate-90" />
|
|
445
|
-
</div>
|
|
446
|
-
<div>
|
|
447
|
-
<div className="text-fm-icon-active font-medium">
|
|
448
|
-
ArrowRightDownIcon
|
|
449
|
-
</div>
|
|
450
|
-
<div className="text-fm-tertiary text-xs">
|
|
451
|
-
Download/decrease
|
|
452
|
-
</div>
|
|
453
|
-
</div>
|
|
454
|
-
</div>
|
|
455
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
456
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
457
|
-
<ArrowRightUpIcon className="text-fm-icon-info h-6 w-6 -rotate-90" />
|
|
458
|
-
</div>
|
|
459
|
-
<div>
|
|
460
|
-
<div className="text-fm-icon-active font-medium">
|
|
461
|
-
ArrowLeftUpIcon
|
|
462
|
-
</div>
|
|
463
|
-
<div className="text-fm-tertiary text-xs">Back and up</div>
|
|
464
|
-
</div>
|
|
465
|
-
</div>
|
|
466
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
467
|
-
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
468
|
-
<span className="text-2xl">↗️</span>
|
|
469
|
-
</div>
|
|
470
|
-
<div>
|
|
471
|
-
<div className="text-fm-icon-active font-medium">
|
|
472
|
-
ExternalLinkIcon
|
|
473
|
-
</div>
|
|
474
|
-
<div className="text-fm-tertiary text-xs">
|
|
475
|
-
Alternative style
|
|
476
|
-
</div>
|
|
477
|
-
</div>
|
|
478
|
-
</div>
|
|
479
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
480
|
-
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
481
|
-
<span className="text-2xl">📈</span>
|
|
482
|
-
</div>
|
|
483
|
-
<div>
|
|
484
|
-
<div className="text-fm-icon-active font-medium">
|
|
485
|
-
TrendingUpIcon
|
|
486
|
-
</div>
|
|
487
|
-
<div className="text-fm-tertiary text-xs">
|
|
488
|
-
Growth metrics
|
|
489
|
-
</div>
|
|
490
|
-
</div>
|
|
491
|
-
</div>
|
|
492
|
-
</div>
|
|
493
|
-
</div>
|
|
494
|
-
{/* Footer */}
|
|
495
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
496
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
497
|
-
<div className="!space-y-4 text-center">
|
|
498
|
-
<p className="text-fm-tertiary!">
|
|
499
|
-
ArtBoardIcon is part of the Aural UI icon library, designed
|
|
500
|
-
for creative and design interfaces.
|
|
501
|
-
</p>
|
|
502
|
-
<p className="text-fm-placeholder! text-sm">
|
|
503
|
-
Perfect for design tools, canvas controls, creative
|
|
504
|
-
applications, and any interface requiring visual editing
|
|
505
|
-
capabilities.
|
|
506
|
-
</p>
|
|
507
|
-
</div>
|
|
508
|
-
</div>
|
|
509
|
-
</div>
|
|
510
|
-
</div>
|
|
511
|
-
</>
|
|
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
|
+
/>
|
|
512
89
|
),
|
|
513
90
|
},
|
|
514
91
|
},
|
|
515
92
|
tags: ["autodocs"],
|
|
516
93
|
argTypes: {
|
|
517
|
-
|
|
518
|
-
control:
|
|
519
|
-
description: "
|
|
94
|
+
className: {
|
|
95
|
+
control: "text",
|
|
96
|
+
description: "CSS classes including color token",
|
|
520
97
|
},
|
|
521
98
|
withAccessibility: {
|
|
522
99
|
control: "boolean",
|
|
523
|
-
description: "
|
|
524
|
-
},
|
|
525
|
-
height: {
|
|
526
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
527
|
-
description: "Height of the icon in pixels",
|
|
528
|
-
},
|
|
529
|
-
className: {
|
|
530
|
-
control: "text",
|
|
531
|
-
description: "CSS classes for styling",
|
|
100
|
+
description: "Wrap with accessibility label",
|
|
532
101
|
},
|
|
533
102
|
},
|
|
534
103
|
}
|
|
@@ -536,163 +105,85 @@ function DesignTool() {
|
|
|
536
105
|
export default meta
|
|
537
106
|
type Story = StoryObj<typeof ArtBoardIcon>
|
|
538
107
|
|
|
539
|
-
// Story parameters for consistent dark theme
|
|
540
|
-
const storyParameters = {
|
|
541
|
-
backgrounds: {
|
|
542
|
-
default: "dark",
|
|
543
|
-
values: [
|
|
544
|
-
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
545
|
-
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
546
|
-
],
|
|
547
|
-
},
|
|
548
|
-
}
|
|
549
|
-
|
|
550
108
|
export const Default: Story = {
|
|
551
109
|
args: {
|
|
552
|
-
|
|
553
|
-
height: 24,
|
|
554
|
-
className: "text-fm-icon-positive",
|
|
110
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
555
111
|
withAccessibility: true,
|
|
556
112
|
},
|
|
557
|
-
parameters: storyParameters,
|
|
558
113
|
render: (args) => (
|
|
559
|
-
<
|
|
114
|
+
<IconDefaultCanvas>
|
|
560
115
|
<ArtBoardIcon {...args} />
|
|
561
|
-
</
|
|
116
|
+
</IconDefaultCanvas>
|
|
562
117
|
),
|
|
563
118
|
}
|
|
564
119
|
|
|
565
120
|
export const SizeVariations: Story = {
|
|
566
|
-
|
|
567
|
-
...storyParameters,
|
|
568
|
-
docs: {
|
|
569
|
-
description: {
|
|
570
|
-
story:
|
|
571
|
-
"ArtBoardIcon in different sizes, from small inline buttons to large call-to-action elements.",
|
|
572
|
-
},
|
|
573
|
-
},
|
|
574
|
-
},
|
|
575
|
-
render: () => (
|
|
576
|
-
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
|
|
577
|
-
<div className="text-center">
|
|
578
|
-
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-3 w-3" />
|
|
579
|
-
<span className="text-fm-tertiary text-xs">12px</span>
|
|
580
|
-
</div>
|
|
581
|
-
<div className="text-center">
|
|
582
|
-
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-4 w-4" />
|
|
583
|
-
<span className="text-fm-tertiary text-xs">16px</span>
|
|
584
|
-
</div>
|
|
585
|
-
<div className="text-center">
|
|
586
|
-
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-5 w-5" />
|
|
587
|
-
<span className="text-fm-tertiary text-xs">20px</span>
|
|
588
|
-
</div>
|
|
589
|
-
<div className="text-center">
|
|
590
|
-
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
591
|
-
<span className="text-fm-tertiary text-xs">24px</span>
|
|
592
|
-
</div>
|
|
593
|
-
<div className="text-center">
|
|
594
|
-
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-8 w-8" />
|
|
595
|
-
<span className="text-fm-tertiary text-xs">32px</span>
|
|
596
|
-
</div>
|
|
597
|
-
<div className="text-center">
|
|
598
|
-
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-12 w-12" />
|
|
599
|
-
<span className="text-fm-tertiary text-xs">48px</span>
|
|
600
|
-
</div>
|
|
601
|
-
</div>
|
|
602
|
-
),
|
|
121
|
+
render: () => <IconSizeVariations icon={ArtBoardIcon} />,
|
|
603
122
|
}
|
|
604
123
|
|
|
605
124
|
export const ColorVariations: Story = {
|
|
606
|
-
|
|
607
|
-
...storyParameters,
|
|
608
|
-
docs: {
|
|
609
|
-
description: {
|
|
610
|
-
story:
|
|
611
|
-
"ArtBoardIcon with different color variations using Tailwind classes.",
|
|
612
|
-
},
|
|
613
|
-
},
|
|
614
|
-
},
|
|
615
|
-
render: () => (
|
|
616
|
-
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
|
|
617
|
-
<div className="text-center">
|
|
618
|
-
<ArtBoardIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
619
|
-
<span className="text-fm-tertiary text-xs">Blue</span>
|
|
620
|
-
</div>
|
|
621
|
-
<div className="text-center">
|
|
622
|
-
<ArtBoardIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
|
|
623
|
-
<span className="text-fm-tertiary text-xs">Purple</span>
|
|
624
|
-
</div>
|
|
625
|
-
<div className="text-center">
|
|
626
|
-
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
627
|
-
<span className="text-fm-tertiary text-xs">Green</span>
|
|
628
|
-
</div>
|
|
629
|
-
<div className="text-center">
|
|
630
|
-
<ArtBoardIcon className="text-fm-icon-negative !mx-auto mb-2 h-6 w-6" />
|
|
631
|
-
<span className="text-fm-tertiary text-xs">Red</span>
|
|
632
|
-
</div>
|
|
633
|
-
<div className="text-center">
|
|
634
|
-
<ArtBoardIcon className="text-fm-icon-warning !mx-auto mb-2 h-6 w-6" />
|
|
635
|
-
<span className="text-fm-tertiary text-xs">Yellow</span>
|
|
636
|
-
</div>
|
|
637
|
-
</div>
|
|
638
|
-
),
|
|
125
|
+
render: () => <IconColorVariations icon={ArtBoardIcon} />,
|
|
639
126
|
}
|
|
640
127
|
|
|
641
128
|
export const UsageExamples: Story = {
|
|
642
|
-
parameters: {
|
|
643
|
-
...storyParameters,
|
|
644
|
-
docs: {
|
|
645
|
-
description: {
|
|
646
|
-
story: "Common usage examples of ArtBoardIcon in different contexts.",
|
|
647
|
-
},
|
|
648
|
-
},
|
|
649
|
-
},
|
|
650
129
|
render: () => (
|
|
651
|
-
<
|
|
652
|
-
<
|
|
653
|
-
<
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
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
|
+
))}
|
|
666
146
|
</div>
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
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>
|
|
670
173
|
</div>
|
|
671
|
-
</
|
|
672
|
-
</
|
|
174
|
+
</IconUsageSection>
|
|
175
|
+
</IconUsageCanvas>
|
|
673
176
|
),
|
|
674
177
|
}
|
|
675
178
|
|
|
676
179
|
export const Playground: Story = {
|
|
677
|
-
parameters: {
|
|
678
|
-
...storyParameters,
|
|
679
|
-
docs: {
|
|
680
|
-
description: {
|
|
681
|
-
story:
|
|
682
|
-
"Interactive playground to experiment with different ArtBoardIcon configurations.",
|
|
683
|
-
},
|
|
684
|
-
},
|
|
685
|
-
},
|
|
686
180
|
args: {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
className: "text-fm-icon-positive",
|
|
181
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
182
|
+
withAccessibility: true,
|
|
690
183
|
},
|
|
691
184
|
render: (args) => (
|
|
692
|
-
<
|
|
693
|
-
<
|
|
694
|
-
|
|
695
|
-
</div>
|
|
696
|
-
</div>
|
|
185
|
+
<IconPlaygroundCanvas>
|
|
186
|
+
<ArtBoardIcon {...args} />
|
|
187
|
+
</IconPlaygroundCanvas>
|
|
697
188
|
),
|
|
698
189
|
}
|