aural-ui 3.0.7 → 4.0.1
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 +271 -242
- package/dist/components/avatar/Avatar.stories.tsx +84 -70
- package/dist/components/button/Button.stories.tsx +7 -7
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +3 -3
- package/dist/components/char-count/CharCount.stories.tsx +9 -9
- package/dist/components/circular-loader/CircularLoader.stories.tsx +109 -93
- package/dist/components/collapsible/Collapsible.stories.tsx +1 -1
- package/dist/components/command/Command.stories.tsx +52 -38
- package/dist/components/dialog/Dialog.stories.tsx +89 -84
- package/dist/components/divider/Divider.stories.tsx +86 -60
- package/dist/components/dot-loader/DotLoader.stories.tsx +12 -12
- package/dist/components/drawer/Drawer.stories.tsx +74 -44
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +42 -32
- package/dist/components/helper-text/HelperText.stories.tsx +2 -2
- package/dist/components/hover-card/HoverCard.stories.tsx +211 -178
- package/dist/components/input/Input.stories.tsx +2 -2
- package/dist/components/label/Label.stories.tsx +10 -10
- package/dist/components/list/List.stories.tsx +58 -44
- package/dist/components/marquee/Marquee.stories.tsx +131 -113
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +47 -35
- package/dist/components/overlay/Overlay.stories.tsx +98 -92
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/popover/Popover.stories.tsx +132 -106
- package/dist/components/radio/Radio.stories.tsx +2 -2
- package/dist/components/resizable/Resizable.stories.tsx +186 -138
- package/dist/components/scroll-area/ScrollArea.stories.tsx +174 -120
- package/dist/components/search/Search.stories.tsx +81 -59
- package/dist/components/select/Select.stories.tsx +3 -1
- package/dist/components/sheet/Sheet.stories.tsx +68 -54
- package/dist/components/slider/Slider.stories.tsx +71 -47
- package/dist/components/stepper/Stepper.stories.tsx +16 -16
- package/dist/components/switch/Switch.stories.tsx +12 -12
- package/dist/components/table/Table.stories.tsx +8 -6
- package/dist/components/tabs/Tabs.stories.tsx +324 -268
- package/dist/components/textarea/TextArea.stories.tsx +1 -1
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +16 -10
- package/dist/components/toast/Toast.stories.tsx +51 -45
- package/dist/components/toggle/Toggle.stories.tsx +111 -89
- package/dist/components/tooltip/Tooltip.stories.tsx +160 -144
- package/dist/icons/Icons.stories.tsx +2 -2
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +287 -237
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +290 -248
- package/dist/icons/all-icons.tsx +97 -81
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +312 -270
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +294 -244
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +309 -279
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +294 -258
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +289 -255
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +288 -256
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +322 -288
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +340 -296
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +197 -177
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +390 -328
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +313 -277
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +367 -309
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +356 -308
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +280 -234
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +370 -326
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +300 -256
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +298 -262
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +294 -260
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +291 -259
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +286 -256
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +282 -256
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +292 -256
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +338 -290
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +167 -148
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +342 -296
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +342 -296
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +280 -238
- package/dist/icons/command-icon/CommandIcon.stories.tsx +328 -280
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +294 -256
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +285 -235
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +308 -266
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +271 -231
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +330 -278
- package/dist/icons/email-icon/EmailIcon.stories.tsx +303 -257
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +324 -286
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +317 -271
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +320 -272
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +322 -280
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +315 -277
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +199 -177
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +304 -264
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +311 -277
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +327 -287
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +314 -278
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +113 -98
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +274 -226
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +349 -303
- package/dist/icons/head-icon/HeadIcon.stories.tsx +286 -246
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +312 -268
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +246 -210
- package/dist/icons/image-icon/ImageIcon.stories.tsx +330 -284
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +326 -282
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +330 -294
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +288 -234
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +386 -330
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +305 -263
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +295 -259
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +296 -256
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +322 -282
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +399 -359
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +314 -272
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +238 -206
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +322 -276
- package/dist/icons/message-icon/MessageIcon.stories.tsx +192 -170
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +348 -304
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +191 -167
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +380 -326
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +345 -291
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +310 -266
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +311 -271
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +311 -271
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +309 -271
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +248 -210
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +310 -262
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +274 -236
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +324 -280
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +323 -281
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +288 -240
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +315 -273
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +278 -234
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +161 -151
- package/dist/icons/search-icon/SearchIcon.stories.tsx +324 -284
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +306 -264
- package/dist/icons/share-icon/ShareIcon.stories.tsx +314 -272
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +281 -235
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +309 -250
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +317 -279
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +315 -279
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +299 -253
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +185 -169
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +192 -168
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +212 -178
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +290 -244
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +286 -234
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +272 -230
- package/dist/icons/sun-icon/SunIcon.stories.tsx +262 -226
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +321 -279
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +332 -282
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +394 -342
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +338 -290
- package/dist/icons/tick-icon/TickIcon.stories.tsx +364 -315
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +293 -253
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +396 -338
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +291 -247
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +309 -271
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +336 -290
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +382 -334
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +349 -305
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +327 -295
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +336 -296
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +314 -274
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +311 -261
- 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
|
@@ -12,9 +12,9 @@ const meta: Meta<typeof ArtBoardIcon> = {
|
|
|
12
12
|
backgrounds: {
|
|
13
13
|
default: "dark",
|
|
14
14
|
values: [
|
|
15
|
-
{ name: "dark", value: "
|
|
16
|
-
{ name: "darker", value: "
|
|
17
|
-
{ name: "light", value: "
|
|
15
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
16
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
17
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
18
18
|
],
|
|
19
19
|
},
|
|
20
20
|
docs: {
|
|
@@ -48,59 +48,59 @@ const meta: Meta<typeof ArtBoardIcon> = {
|
|
|
48
48
|
background: transparent !important;
|
|
49
49
|
}
|
|
50
50
|
body {
|
|
51
|
-
background:
|
|
51
|
+
background: var(--color-fm-surface-primary) !important;
|
|
52
52
|
}
|
|
53
53
|
#storybook-docs {
|
|
54
|
-
background:
|
|
54
|
+
background: var(--color-fm-surface-primary) !important;
|
|
55
55
|
}
|
|
56
56
|
.sbdocs-preview {
|
|
57
57
|
background: transparent !important;
|
|
58
58
|
border: none !important;
|
|
59
59
|
}
|
|
60
60
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
61
|
-
color:
|
|
61
|
+
color: var(--color-fm-icon-active) !important;
|
|
62
62
|
}
|
|
63
63
|
.sbdocs-p, .sbdocs-li {
|
|
64
|
-
color:
|
|
64
|
+
color: var(--color-fm-secondary) !important;
|
|
65
65
|
}
|
|
66
66
|
.sbdocs-code {
|
|
67
|
-
background:
|
|
68
|
-
color:
|
|
69
|
-
border: 1px solid
|
|
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
70
|
}
|
|
71
71
|
.sbdocs-pre {
|
|
72
|
-
background:
|
|
73
|
-
border: 1px solid
|
|
72
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
73
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
74
74
|
}
|
|
75
75
|
.sbdocs-table {
|
|
76
|
-
background:
|
|
77
|
-
border: 1px solid
|
|
76
|
+
background: var(--color-fm-surface-secondary) !important;
|
|
77
|
+
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
78
78
|
}
|
|
79
79
|
.sbdocs-table th {
|
|
80
|
-
background:
|
|
81
|
-
color:
|
|
82
|
-
border-bottom: 1px solid
|
|
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
83
|
}
|
|
84
84
|
.sbdocs-table td {
|
|
85
|
-
color:
|
|
86
|
-
border-bottom: 1px solid
|
|
85
|
+
color: var(--color-fm-secondary) !important;
|
|
86
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
|
|
87
87
|
}
|
|
88
88
|
`}
|
|
89
89
|
</style>
|
|
90
90
|
|
|
91
|
-
<div className="
|
|
91
|
+
<div className="bg-fm-surface-primary min-h-screen">
|
|
92
92
|
{/* Header */}
|
|
93
|
-
<div className="relative overflow-hidden border-b
|
|
94
|
-
<div className="absolute inset-0 bg-
|
|
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
95
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
96
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
|
|
98
|
-
<ArtBoardIcon className="h-12 w-12
|
|
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
99
|
</div>
|
|
100
|
-
<h1 className="text-5xl font-bold
|
|
100
|
+
<h1 className="text-fm-icon-active! text-5xl font-bold">
|
|
101
101
|
ArtBoardIcon
|
|
102
102
|
</h1>
|
|
103
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
103
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
104
104
|
A versatile art board icon for design tools, creative
|
|
105
105
|
interfaces, and visual editing applications. Perfect for
|
|
106
106
|
canvas controls, design tools, and creative software
|
|
@@ -110,28 +110,30 @@ const meta: Meta<typeof ArtBoardIcon> = {
|
|
|
110
110
|
{/* Stats */}
|
|
111
111
|
<div className="mx-auto flex items-center justify-center gap-8">
|
|
112
112
|
<div className="text-center">
|
|
113
|
-
<div className="text-3xl font-bold
|
|
113
|
+
<div className="text-fm-icon-positive text-3xl font-bold">
|
|
114
114
|
Design
|
|
115
115
|
</div>
|
|
116
|
-
<div className="text-
|
|
116
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
117
117
|
Creative tools
|
|
118
118
|
</div>
|
|
119
119
|
</div>
|
|
120
|
-
<div className="h-8 w-px
|
|
120
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
121
121
|
<div className="text-center">
|
|
122
|
-
<div className="text-3xl font-bold
|
|
122
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
123
123
|
Canvas
|
|
124
124
|
</div>
|
|
125
|
-
<div className="text-
|
|
125
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
126
126
|
Visual editing
|
|
127
127
|
</div>
|
|
128
128
|
</div>
|
|
129
|
-
<div className="h-8 w-px
|
|
129
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
130
130
|
<div className="text-center">
|
|
131
|
-
<div className="text-3xl font-bold
|
|
131
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
132
132
|
Creative
|
|
133
133
|
</div>
|
|
134
|
-
<div className="text-
|
|
134
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
135
|
+
Art & design
|
|
136
|
+
</div>
|
|
135
137
|
</div>
|
|
136
138
|
</div>
|
|
137
139
|
</div>
|
|
@@ -142,34 +144,34 @@ const meta: Meta<typeof ArtBoardIcon> = {
|
|
|
142
144
|
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
143
145
|
{/* Features */}
|
|
144
146
|
<div className="!space-y-8">
|
|
145
|
-
<h3 className="text-center text-2xl font-bold
|
|
147
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
146
148
|
Key Features
|
|
147
149
|
</h3>
|
|
148
150
|
<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
|
|
151
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
150
152
|
<div className="text-3xl">🎨</div>
|
|
151
|
-
<h4 className="text-lg font-semibold
|
|
153
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
152
154
|
Design Tools
|
|
153
155
|
</h4>
|
|
154
|
-
<p className="text-
|
|
156
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
155
157
|
Perfect for design software and creative applications
|
|
156
158
|
</p>
|
|
157
159
|
</div>
|
|
158
|
-
<div className="space-y-4 rounded-lg border
|
|
160
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
159
161
|
<div className="text-3xl">🖼️</div>
|
|
160
|
-
<h4 className="text-lg font-semibold
|
|
162
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
161
163
|
Canvas Controls
|
|
162
164
|
</h4>
|
|
163
|
-
<p className="text-
|
|
165
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
164
166
|
Ideal for canvas manipulation and editing tools
|
|
165
167
|
</p>
|
|
166
168
|
</div>
|
|
167
|
-
<div className="space-y-4 rounded-lg border
|
|
169
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
168
170
|
<div className="text-3xl">✨</div>
|
|
169
|
-
<h4 className="text-lg font-semibold
|
|
171
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
170
172
|
Visual Editing
|
|
171
173
|
</h4>
|
|
172
|
-
<p className="text-
|
|
174
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
173
175
|
Great for visual editing and creative interfaces
|
|
174
176
|
</p>
|
|
175
177
|
</div>
|
|
@@ -178,43 +180,45 @@ const meta: Meta<typeof ArtBoardIcon> = {
|
|
|
178
180
|
|
|
179
181
|
{/* API Reference */}
|
|
180
182
|
<div className="!space-y-8">
|
|
181
|
-
<h3 className="text-center text-2xl font-bold
|
|
183
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
182
184
|
API Reference
|
|
183
185
|
</h3>
|
|
184
|
-
<div className="overflow-hidden rounded-lg border
|
|
185
|
-
<div className="bg-
|
|
186
|
-
<h4 className="text-lg font-semibold
|
|
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>
|
|
187
191
|
</div>
|
|
188
192
|
<table className="!my-0 w-full">
|
|
189
|
-
<thead className="bg-
|
|
190
|
-
<tr className="border-
|
|
191
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
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">
|
|
192
196
|
Prop
|
|
193
197
|
</th>
|
|
194
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
198
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
195
199
|
Type
|
|
196
200
|
</th>
|
|
197
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
201
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
198
202
|
Default
|
|
199
203
|
</th>
|
|
200
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
204
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
201
205
|
Description
|
|
202
206
|
</th>
|
|
203
207
|
</tr>
|
|
204
208
|
</thead>
|
|
205
209
|
<tbody>
|
|
206
210
|
{" "}
|
|
207
|
-
<tr className="
|
|
208
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
211
|
+
<tr className="bg-fm-surface-secondary!">
|
|
212
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
209
213
|
withAccessibility
|
|
210
214
|
</td>
|
|
211
|
-
<td className="px-6 py-4 text-sm
|
|
215
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
212
216
|
boolean
|
|
213
217
|
</td>
|
|
214
|
-
<td className="px-6 py-4 text-sm
|
|
218
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
215
219
|
true
|
|
216
220
|
</td>
|
|
217
|
-
<td className="px-6 py-4 text-sm
|
|
221
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
218
222
|
Whether to wrap the icon with accessibility feature
|
|
219
223
|
</td>
|
|
220
224
|
</tr>
|
|
@@ -225,17 +229,17 @@ const meta: Meta<typeof ArtBoardIcon> = {
|
|
|
225
229
|
|
|
226
230
|
{/* Usage Examples */}
|
|
227
231
|
<div className="!space-y-8">
|
|
228
|
-
<h3 className="text-center text-2xl font-bold
|
|
232
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
229
233
|
Usage Examples
|
|
230
234
|
</h3>
|
|
231
235
|
|
|
232
236
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
233
237
|
<div className="space-y-4">
|
|
234
|
-
<h4 className="text-lg font-semibold
|
|
238
|
+
<h4 className="text-fm-icon-positive! text-lg font-semibold">
|
|
235
239
|
Basic Usage
|
|
236
240
|
</h4>
|
|
237
|
-
<div className="rounded-lg
|
|
238
|
-
<pre className="overflow-x-auto text-sm
|
|
241
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
242
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
239
243
|
{`import { ArtBoardIcon } from "@/components/ui/icons/art-board-icon"
|
|
240
244
|
|
|
241
245
|
function DesignTool() {
|
|
@@ -251,12 +255,12 @@ function DesignTool() {
|
|
|
251
255
|
</div>
|
|
252
256
|
|
|
253
257
|
<div className="space-y-4">
|
|
254
|
-
<h4 className="text-lg font-semibold
|
|
258
|
+
<h4 className="text-fm-icon-positive! text-lg font-semibold">
|
|
255
259
|
Live Preview
|
|
256
260
|
</h4>
|
|
257
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
258
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
259
|
-
<ArtBoardIcon className="h-4 w-4
|
|
261
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
262
|
+
<button className="border-fm-icon-positive/20 bg-fm-icon-positive/10 text-fm-icon-active hover:bg-fm-icon-positive/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
263
|
+
<ArtBoardIcon className="text-fm-icon-positive h-4 w-4" />
|
|
260
264
|
<span>New Canvas</span>
|
|
261
265
|
</button>
|
|
262
266
|
</div>
|
|
@@ -266,50 +270,62 @@ function DesignTool() {
|
|
|
266
270
|
|
|
267
271
|
{/* Size Examples */}
|
|
268
272
|
<div className="!space-y-8">
|
|
269
|
-
<h3 className="text-center text-2xl font-bold
|
|
273
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
270
274
|
Size Examples
|
|
271
275
|
</h3>
|
|
272
|
-
<div className="rounded-lg border
|
|
276
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
273
277
|
<div className="!space-y-6">
|
|
274
278
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
275
279
|
<div className="!space-y-4">
|
|
276
|
-
<h3 className="text-lg font-semibold
|
|
280
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
277
281
|
Standard Sizes
|
|
278
282
|
</h3>
|
|
279
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
283
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
280
284
|
<div className="text-center">
|
|
281
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-3 w-3
|
|
282
|
-
<span className="text-
|
|
285
|
+
<ArtBoardIcon className="text-fm-icon-positive !mx-auto mb-2 h-3 w-3" />
|
|
286
|
+
<span className="text-fm-tertiary text-xs">
|
|
287
|
+
12px
|
|
288
|
+
</span>
|
|
283
289
|
</div>
|
|
284
290
|
<div className="text-center">
|
|
285
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-4 w-4
|
|
286
|
-
<span className="text-
|
|
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>
|
|
287
295
|
</div>
|
|
288
296
|
<div className="text-center">
|
|
289
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-5 w-5
|
|
290
|
-
<span className="text-
|
|
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>
|
|
291
301
|
</div>
|
|
292
302
|
<div className="text-center">
|
|
293
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6
|
|
294
|
-
<span className="text-
|
|
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>
|
|
295
307
|
</div>
|
|
296
308
|
<div className="text-center">
|
|
297
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-8 w-8
|
|
298
|
-
<span className="text-
|
|
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>
|
|
299
313
|
</div>
|
|
300
314
|
<div className="text-center">
|
|
301
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-12 w-12
|
|
302
|
-
<span className="text-
|
|
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>
|
|
303
319
|
</div>
|
|
304
320
|
</div>
|
|
305
321
|
</div>
|
|
306
322
|
|
|
307
323
|
<div className="!space-y-4">
|
|
308
|
-
<h3 className="text-lg font-semibold
|
|
324
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
309
325
|
Code Example
|
|
310
326
|
</h3>
|
|
311
|
-
<div className="rounded-lg
|
|
312
|
-
<pre className="overflow-x-auto text-sm
|
|
327
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
328
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
313
329
|
{`// Small (16px)
|
|
314
330
|
<ArtBoardIcon className="h-4 w-4" />
|
|
315
331
|
|
|
@@ -331,34 +347,34 @@ function DesignTool() {
|
|
|
331
347
|
|
|
332
348
|
{/* Common Use Cases */}
|
|
333
349
|
<div className="!space-y-8">
|
|
334
|
-
<h3 className="text-center text-2xl font-bold
|
|
350
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
335
351
|
Common Use Cases
|
|
336
352
|
</h3>
|
|
337
353
|
<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
|
|
354
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
339
355
|
<div className="text-2xl">🎨</div>
|
|
340
|
-
<h4 className="text-lg font-semibold
|
|
356
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
341
357
|
Design Tools
|
|
342
358
|
</h4>
|
|
343
|
-
<p className="text-
|
|
359
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
344
360
|
Icons for design software interfaces
|
|
345
361
|
</p>
|
|
346
362
|
</div>
|
|
347
|
-
<div className="space-y-3 rounded-lg border
|
|
363
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
348
364
|
<div className="text-2xl">🖼️</div>
|
|
349
|
-
<h4 className="text-lg font-semibold
|
|
365
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
350
366
|
Canvas Controls
|
|
351
367
|
</h4>
|
|
352
|
-
<p className="text-
|
|
368
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
353
369
|
Canvas manipulation tools
|
|
354
370
|
</p>
|
|
355
371
|
</div>
|
|
356
|
-
<div className="space-y-3 rounded-lg border
|
|
372
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
357
373
|
<div className="text-2xl">✨</div>
|
|
358
|
-
<h4 className="text-lg font-semibold
|
|
374
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
359
375
|
Creative Apps
|
|
360
376
|
</h4>
|
|
361
|
-
<p className="text-
|
|
377
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
362
378
|
Visual editing applications
|
|
363
379
|
</p>
|
|
364
380
|
</div>
|
|
@@ -367,50 +383,50 @@ function DesignTool() {
|
|
|
367
383
|
|
|
368
384
|
{/* Best Practices */}
|
|
369
385
|
<div className="!space-y-8">
|
|
370
|
-
<h3 className="text-center text-2xl font-bold
|
|
386
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
371
387
|
Best Practices
|
|
372
388
|
</h3>
|
|
373
389
|
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
374
|
-
<div className="space-y-4 rounded-lg border
|
|
375
|
-
<h4 className="text-lg font-semibold
|
|
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">
|
|
376
392
|
✅ Do
|
|
377
393
|
</h4>
|
|
378
|
-
<ul className="space-y-2 text-sm
|
|
379
|
-
<li className="
|
|
394
|
+
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
395
|
+
<li className="text-fm-icon-active!/80">
|
|
380
396
|
Use appropriate sizes for different contexts
|
|
381
397
|
</li>
|
|
382
|
-
<li className="
|
|
398
|
+
<li className="text-fm-icon-active!/80">
|
|
383
399
|
Choose colors that match your UI theme
|
|
384
400
|
</li>
|
|
385
|
-
<li className="
|
|
401
|
+
<li className="text-fm-icon-active!/80">
|
|
386
402
|
Provide clear labels for icon buttons
|
|
387
403
|
</li>
|
|
388
|
-
<li className="
|
|
404
|
+
<li className="text-fm-icon-active!/80">
|
|
389
405
|
Use consistent styling across your app
|
|
390
406
|
</li>
|
|
391
|
-
<li className="
|
|
407
|
+
<li className="text-fm-icon-active!/80">
|
|
392
408
|
Consider accessibility in all implementations
|
|
393
409
|
</li>
|
|
394
410
|
</ul>
|
|
395
411
|
</div>
|
|
396
|
-
<div className="space-y-4 rounded-lg border
|
|
397
|
-
<h4 className="text-lg font-semibold
|
|
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">
|
|
398
414
|
❌ Don't
|
|
399
415
|
</h4>
|
|
400
|
-
<ul className="space-y-2 text-sm
|
|
401
|
-
<li className="
|
|
416
|
+
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
417
|
+
<li className="text-fm-icon-active!/80">
|
|
402
418
|
Use multiple icon styles in the same view
|
|
403
419
|
</li>
|
|
404
|
-
<li className="
|
|
420
|
+
<li className="text-fm-icon-active!/80">
|
|
405
421
|
Overuse the icon in navigation
|
|
406
422
|
</li>
|
|
407
|
-
<li className="
|
|
423
|
+
<li className="text-fm-icon-active!/80">
|
|
408
424
|
Use inappropriate sizes for the context
|
|
409
425
|
</li>
|
|
410
|
-
<li className="
|
|
426
|
+
<li className="text-fm-icon-active!/80">
|
|
411
427
|
Forget to add hover states
|
|
412
428
|
</li>
|
|
413
|
-
<li className="
|
|
429
|
+
<li className="text-fm-icon-active!/80">
|
|
414
430
|
Ignore accessibility requirements
|
|
415
431
|
</li>
|
|
416
432
|
</ul>
|
|
@@ -419,67 +435,71 @@ function DesignTool() {
|
|
|
419
435
|
</div>
|
|
420
436
|
</div>
|
|
421
437
|
<div className="!space-y-8 p-7">
|
|
422
|
-
<h2 className="text-center text-3xl font-bold
|
|
438
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
423
439
|
Related Icons
|
|
424
440
|
</h2>
|
|
425
441
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
426
|
-
<div className="!space-y-3 rounded-lg border
|
|
427
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
428
|
-
<ArrowRightUpIcon className="h-6 w-6 rotate-90
|
|
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" />
|
|
429
445
|
</div>
|
|
430
446
|
<div>
|
|
431
|
-
<div className="font-medium
|
|
447
|
+
<div className="text-fm-icon-active font-medium">
|
|
432
448
|
ArrowRightDownIcon
|
|
433
449
|
</div>
|
|
434
|
-
<div className="text-
|
|
450
|
+
<div className="text-fm-tertiary text-xs">
|
|
435
451
|
Download/decrease
|
|
436
452
|
</div>
|
|
437
453
|
</div>
|
|
438
454
|
</div>
|
|
439
|
-
<div className="!space-y-3 rounded-lg border
|
|
440
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
441
|
-
<ArrowRightUpIcon className="h-6 w-6 -rotate-90
|
|
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" />
|
|
442
458
|
</div>
|
|
443
459
|
<div>
|
|
444
|
-
<div className="font-medium
|
|
460
|
+
<div className="text-fm-icon-active font-medium">
|
|
445
461
|
ArrowLeftUpIcon
|
|
446
462
|
</div>
|
|
447
|
-
<div className="text-
|
|
463
|
+
<div className="text-fm-tertiary text-xs">Back and up</div>
|
|
448
464
|
</div>
|
|
449
465
|
</div>
|
|
450
|
-
<div className="!space-y-3 rounded-lg border
|
|
451
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
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">
|
|
452
468
|
<span className="text-2xl">↗️</span>
|
|
453
469
|
</div>
|
|
454
470
|
<div>
|
|
455
|
-
<div className="font-medium
|
|
471
|
+
<div className="text-fm-icon-active font-medium">
|
|
456
472
|
ExternalLinkIcon
|
|
457
473
|
</div>
|
|
458
|
-
<div className="text-
|
|
474
|
+
<div className="text-fm-tertiary text-xs">
|
|
459
475
|
Alternative style
|
|
460
476
|
</div>
|
|
461
477
|
</div>
|
|
462
478
|
</div>
|
|
463
|
-
<div className="!space-y-3 rounded-lg border
|
|
464
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
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">
|
|
465
481
|
<span className="text-2xl">📈</span>
|
|
466
482
|
</div>
|
|
467
483
|
<div>
|
|
468
|
-
<div className="font-medium
|
|
469
|
-
|
|
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>
|
|
470
490
|
</div>
|
|
471
491
|
</div>
|
|
472
492
|
</div>
|
|
473
493
|
</div>
|
|
474
494
|
{/* Footer */}
|
|
475
|
-
<div className="border-
|
|
495
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
476
496
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
477
497
|
<div className="!space-y-4 text-center">
|
|
478
|
-
<p className="
|
|
498
|
+
<p className="text-fm-tertiary!">
|
|
479
499
|
ArtBoardIcon is part of the Aural UI icon library, designed
|
|
480
500
|
for creative and design interfaces.
|
|
481
501
|
</p>
|
|
482
|
-
<p className="text-
|
|
502
|
+
<p className="text-fm-placeholder! text-sm">
|
|
483
503
|
Perfect for design tools, canvas controls, creative
|
|
484
504
|
applications, and any interface requiring visual editing
|
|
485
505
|
capabilities.
|
|
@@ -521,8 +541,8 @@ const storyParameters = {
|
|
|
521
541
|
backgrounds: {
|
|
522
542
|
default: "dark",
|
|
523
543
|
values: [
|
|
524
|
-
{ name: "dark", value: "
|
|
525
|
-
{ name: "darker", value: "
|
|
544
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
545
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
526
546
|
],
|
|
527
547
|
},
|
|
528
548
|
}
|
|
@@ -531,12 +551,12 @@ export const Default: Story = {
|
|
|
531
551
|
args: {
|
|
532
552
|
width: 24,
|
|
533
553
|
height: 24,
|
|
534
|
-
className: "text-
|
|
554
|
+
className: "text-fm-icon-positive",
|
|
535
555
|
withAccessibility: true,
|
|
536
556
|
},
|
|
537
557
|
parameters: storyParameters,
|
|
538
558
|
render: (args) => (
|
|
539
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
559
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-32 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
540
560
|
<ArtBoardIcon {...args} />
|
|
541
561
|
</div>
|
|
542
562
|
),
|
|
@@ -553,30 +573,30 @@ export const SizeVariations: Story = {
|
|
|
553
573
|
},
|
|
554
574
|
},
|
|
555
575
|
render: () => (
|
|
556
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
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">
|
|
557
577
|
<div className="text-center">
|
|
558
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-3 w-3
|
|
559
|
-
<span className="text-
|
|
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>
|
|
560
580
|
</div>
|
|
561
581
|
<div className="text-center">
|
|
562
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-4 w-4
|
|
563
|
-
<span className="text-
|
|
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>
|
|
564
584
|
</div>
|
|
565
585
|
<div className="text-center">
|
|
566
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-5 w-5
|
|
567
|
-
<span className="text-
|
|
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>
|
|
568
588
|
</div>
|
|
569
589
|
<div className="text-center">
|
|
570
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6
|
|
571
|
-
<span className="text-
|
|
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>
|
|
572
592
|
</div>
|
|
573
593
|
<div className="text-center">
|
|
574
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-8 w-8
|
|
575
|
-
<span className="text-
|
|
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>
|
|
576
596
|
</div>
|
|
577
597
|
<div className="text-center">
|
|
578
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-12 w-12
|
|
579
|
-
<span className="text-
|
|
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>
|
|
580
600
|
</div>
|
|
581
601
|
</div>
|
|
582
602
|
),
|
|
@@ -593,26 +613,26 @@ export const ColorVariations: Story = {
|
|
|
593
613
|
},
|
|
594
614
|
},
|
|
595
615
|
render: () => (
|
|
596
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
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">
|
|
597
617
|
<div className="text-center">
|
|
598
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6
|
|
599
|
-
<span className="text-
|
|
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>
|
|
600
620
|
</div>
|
|
601
621
|
<div className="text-center">
|
|
602
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6
|
|
603
|
-
<span className="text-
|
|
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>
|
|
604
624
|
</div>
|
|
605
625
|
<div className="text-center">
|
|
606
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6
|
|
607
|
-
<span className="text-
|
|
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>
|
|
608
628
|
</div>
|
|
609
629
|
<div className="text-center">
|
|
610
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6
|
|
611
|
-
<span className="text-
|
|
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>
|
|
612
632
|
</div>
|
|
613
633
|
<div className="text-center">
|
|
614
|
-
<ArtBoardIcon className="!mx-auto mb-2 h-6 w-6
|
|
615
|
-
<span className="text-
|
|
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>
|
|
616
636
|
</div>
|
|
617
637
|
</div>
|
|
618
638
|
),
|
|
@@ -628,25 +648,25 @@ export const UsageExamples: Story = {
|
|
|
628
648
|
},
|
|
629
649
|
},
|
|
630
650
|
render: () => (
|
|
631
|
-
<div className="flex h-64 min-h-dvh flex-col items-center justify-center gap-8 rounded-lg bg-
|
|
651
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh flex-col items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
|
|
632
652
|
<div className="flex items-center gap-4">
|
|
633
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
634
|
-
<ArtBoardIcon className="h-4 w-4
|
|
653
|
+
<button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
654
|
+
<ArtBoardIcon className="text-fm-icon-info h-4 w-4" />
|
|
635
655
|
<span>New Artboard</span>
|
|
636
656
|
</button>
|
|
637
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
638
|
-
<ArtBoardIcon className="h-4 w-4
|
|
657
|
+
<button className="border-fm-secondary-500/20 bg-fm-secondary-500/10 text-fm-icon-active hover:bg-fm-secondary-500/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
658
|
+
<ArtBoardIcon className="text-fm-secondary-600 h-4 w-4" />
|
|
639
659
|
<span>Edit Artboard</span>
|
|
640
660
|
</button>
|
|
641
661
|
</div>
|
|
642
662
|
<div className="flex items-center gap-4">
|
|
643
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
644
|
-
<ArtBoardIcon className="h-4 w-4
|
|
645
|
-
<span className="text-
|
|
663
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
664
|
+
<ArtBoardIcon className="text-fm-icon-positive h-4 w-4" />
|
|
665
|
+
<span className="text-fm-icon-active/80">Artboard 1</span>
|
|
646
666
|
</div>
|
|
647
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
648
|
-
<ArtBoardIcon className="h-4 w-4
|
|
649
|
-
<span className="text-
|
|
667
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
668
|
+
<ArtBoardIcon className="text-fm-icon-info h-4 w-4" />
|
|
669
|
+
<span className="text-fm-icon-active/80">Artboard 2</span>
|
|
650
670
|
</div>
|
|
651
671
|
</div>
|
|
652
672
|
</div>
|
|
@@ -666,11 +686,11 @@ export const Playground: Story = {
|
|
|
666
686
|
args: {
|
|
667
687
|
width: 32,
|
|
668
688
|
height: 32,
|
|
669
|
-
className: "text-
|
|
689
|
+
className: "text-fm-icon-positive",
|
|
670
690
|
},
|
|
671
691
|
render: (args) => (
|
|
672
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
673
|
-
<div className="rounded-lg border
|
|
692
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
693
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
674
694
|
<ArtBoardIcon {...args} />
|
|
675
695
|
</div>
|
|
676
696
|
</div>
|