aural-ui 3.0.7 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1199
- package/dist/components/avatar/Avatar.stories.tsx +235 -237
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -620
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +533 -856
- package/dist/components/dialog/Dialog.stories.tsx +505 -949
- package/dist/components/divider/Divider.stories.tsx +265 -502
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -993
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1018
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1221
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +485 -822
- package/dist/components/marquee/Marquee.stories.tsx +356 -694
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -410
- package/dist/components/overlay/Overlay.stories.tsx +452 -818
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +484 -873
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +496 -752
- package/dist/components/scroll-area/ScrollArea.stories.tsx +384 -1006
- package/dist/components/search/Search.stories.tsx +314 -575
- package/dist/components/select/Select.stories.tsx +684 -787
- package/dist/components/sheet/Sheet.stories.tsx +671 -936
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +384 -737
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -914
- package/dist/components/tabs/Tabs.stories.tsx +459 -1400
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -148
- package/dist/components/toast/Toast.stories.tsx +452 -1333
- package/dist/components/toggle/Toggle.stories.tsx +488 -909
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1372
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +226 -1013
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +109 -929
- package/dist/icons/all-icons.tsx +124 -87
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +140 -971
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +148 -888
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +135 -1019
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +137 -953
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +138 -997
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +136 -942
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +148 -1092
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +146 -1211
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +126 -615
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +144 -1164
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +167 -985
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +122 -1179
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +124 -1168
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +119 -850
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +112 -1213
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +117 -934
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +160 -961
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +163 -961
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +144 -942
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +129 -966
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +147 -964
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +145 -975
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +150 -1142
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +114 -461
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +124 -1322
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +117 -1318
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +114 -903
- package/dist/icons/command-icon/CommandIcon.stories.tsx +127 -1042
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +123 -962
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +147 -999
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +139 -960
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +126 -820
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +124 -1031
- package/dist/icons/email-icon/EmailIcon.stories.tsx +115 -936
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +112 -1111
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +144 -1025
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +143 -1036
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +127 -1011
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +126 -1056
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +125 -614
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +119 -1050
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +169 -989
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +115 -1145
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +115 -1122
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +130 -313
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +145 -940
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +119 -1174
- package/dist/icons/head-icon/HeadIcon.stories.tsx +111 -916
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +120 -1019
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +119 -683
- package/dist/icons/image-icon/ImageIcon.stories.tsx +105 -1121
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +111 -1192
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +136 -1256
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +159 -962
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +161 -1385
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +124 -972
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +119 -948
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +119 -942
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +108 -1215
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +154 -1517
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +110 -1188
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +119 -678
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +123 -1184
- package/dist/icons/message-icon/MessageIcon.stories.tsx +114 -538
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +116 -1158
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +120 -536
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +109 -1184
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +115 -1134
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +119 -971
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +111 -1100
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +119 -1101
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +109 -1111
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +122 -684
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +113 -954
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +112 -877
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +113 -1000
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +115 -1070
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +115 -978
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +106 -1093
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +107 -829
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +102 -469
- package/dist/icons/search-icon/SearchIcon.stories.tsx +111 -1124
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +107 -970
- package/dist/icons/share-icon/ShareIcon.stories.tsx +120 -1025
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +117 -931
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +137 -1104
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +172 -982
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +164 -983
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +105 -958
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +158 -580
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +158 -587
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +146 -682
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +124 -904
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +112 -964
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +116 -852
- package/dist/icons/sun-icon/SunIcon.stories.tsx +120 -831
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +116 -950
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +123 -980
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +156 -1427
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +146 -1142
- package/dist/icons/tick-icon/TickIcon.stories.tsx +145 -1276
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +108 -933
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +157 -1402
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +115 -889
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +118 -984
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +125 -1049
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +123 -1356
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +110 -1171
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +112 -1093
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +115 -1087
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +122 -1046
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +161 -936
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { ArtBoardIcon } from "src/ui/icons/art-board-icon"
|
|
5
|
+
import { EditBigIcon } from "src/ui/icons/edit-big-icon"
|
|
6
|
+
import { MagicEditIcon } from "src/ui/icons/magic-edit-icon"
|
|
7
|
+
import { TextColorIcon } from "src/ui/icons/text-color-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 { PaintRollIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof PaintRollIcon> = {
|
|
@@ -11,792 +25,76 @@ const meta: Meta<typeof PaintRollIcon> = {
|
|
|
11
25
|
backgrounds: {
|
|
12
26
|
default: "dark",
|
|
13
27
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
28
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
29
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
30
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
31
|
],
|
|
18
32
|
},
|
|
19
33
|
docs: {
|
|
20
34
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
padding: 0 ;
|
|
33
|
-
margin: 0 ;
|
|
34
|
-
background: transparent ;
|
|
35
|
-
}
|
|
36
|
-
.docs-story {
|
|
37
|
-
background: transparent ;
|
|
38
|
-
}
|
|
39
|
-
.sbdocs {
|
|
40
|
-
background: transparent ;
|
|
41
|
-
}
|
|
42
|
-
body {
|
|
43
|
-
background: #0a0a0a ;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: #0a0a0a ;
|
|
47
|
-
}
|
|
48
|
-
.sbdocs-preview {
|
|
49
|
-
background: transparent ;
|
|
50
|
-
border: none ;
|
|
51
|
-
}
|
|
52
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color: white ;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: rgba(255, 255, 255, 0.7) ;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: rgba(255, 255, 255, 0.1) ;
|
|
60
|
-
color: rgba(168, 85, 247, 1) ;
|
|
61
|
-
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: rgba(0, 0, 0, 0.4) ;
|
|
65
|
-
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: rgba(255, 255, 255, 0.05) ;
|
|
69
|
-
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: rgba(255, 255, 255, 0.05) ;
|
|
73
|
-
color: white ;
|
|
74
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: rgba(255, 255, 255, 0.7) ;
|
|
78
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.05) ;
|
|
79
|
-
}
|
|
80
|
-
`}
|
|
81
|
-
</style>
|
|
82
|
-
|
|
83
|
-
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-indigo-900/20 to-gray-900">
|
|
84
|
-
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
86
|
-
<div className="absolute inset-0 bg-gradient-to-r from-indigo-500/10 via-transparent to-violet-500/10" />
|
|
87
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
|
-
<div className="!space-y-6 text-center">
|
|
89
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-indigo-500/30 bg-gradient-to-br from-indigo-500/20 to-violet-500/20">
|
|
90
|
-
<PaintRollIcon className="h-12 w-12 text-indigo-400" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
-
PaintRollIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
-
A versatile paint roll icon perfect for design tools, theme
|
|
97
|
-
customization, styling interfaces, and visual editing
|
|
98
|
-
applications. Built with accessibility in mind using Radix
|
|
99
|
-
UI's AccessibleIcon wrapper.
|
|
100
|
-
</p>
|
|
101
|
-
|
|
102
|
-
{/* Stats */}
|
|
103
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
104
|
-
<div className="text-center">
|
|
105
|
-
<div className="text-3xl font-bold text-indigo-300">
|
|
106
|
-
Accessible
|
|
107
|
-
</div>
|
|
108
|
-
<div className="text-sm text-white/60">
|
|
109
|
-
Screen reader friendly
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
<div className="h-8 w-px bg-white/20" />
|
|
113
|
-
<div className="text-center">
|
|
114
|
-
<div className="text-3xl font-bold text-violet-300">
|
|
115
|
-
Scalable
|
|
116
|
-
</div>
|
|
117
|
-
<div className="text-sm text-white/60">
|
|
118
|
-
Any size needed
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
<div className="h-8 w-px bg-white/20" />
|
|
122
|
-
<div className="text-center">
|
|
123
|
-
<div className="text-3xl font-bold text-purple-300">
|
|
124
|
-
Flexible
|
|
125
|
-
</div>
|
|
126
|
-
<div className="text-sm text-white/60">
|
|
127
|
-
Customizable styling
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
{/* Content */}
|
|
136
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
137
|
-
{/* Quick Usage */}
|
|
138
|
-
<div className="!space-y-8">
|
|
139
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
140
|
-
Quick Start
|
|
141
|
-
</h2>
|
|
142
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
143
|
-
<div className="!space-y-4">
|
|
144
|
-
<h3 className="text-xl font-semibold !text-indigo-300">
|
|
145
|
-
Basic Usage
|
|
146
|
-
</h3>
|
|
147
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
148
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
149
|
-
{`import { PaintRollIcon } from "@icons/paint-roll-icon"
|
|
150
|
-
|
|
151
|
-
function MyComponent() {
|
|
152
|
-
return (
|
|
153
|
-
<div className="flex items-center gap-2">
|
|
154
|
-
<PaintRollIcon className="h-5 w-5 text-indigo-500" />
|
|
155
|
-
<span>Customize Theme</span>
|
|
156
|
-
</div>
|
|
157
|
-
)
|
|
158
|
-
}`}
|
|
159
|
-
</pre>
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
|
|
163
|
-
<div className="!space-y-4">
|
|
164
|
-
<h3 className="text-xl font-semibold !text-indigo-300">
|
|
165
|
-
Live Preview
|
|
166
|
-
</h3>
|
|
167
|
-
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
168
|
-
<div className="flex items-center gap-3 rounded-lg border border-indigo-500/20 bg-indigo-500/10 px-4 py-2">
|
|
169
|
-
<PaintRollIcon className="h-5 w-5 text-indigo-400" />
|
|
170
|
-
<span className="text-white">Customize Theme</span>
|
|
171
|
-
</div>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
|
|
177
|
-
{/* Props Documentation */}
|
|
178
|
-
<div className="!space-y-8">
|
|
179
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
180
|
-
Props & Configuration
|
|
181
|
-
</h2>
|
|
182
|
-
|
|
183
|
-
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
184
|
-
<div className="bg-white/5 p-4">
|
|
185
|
-
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
186
|
-
</div>
|
|
187
|
-
<table className="!my-0 w-full">
|
|
188
|
-
<thead className="bg-white/5">
|
|
189
|
-
<tr className="border-b border-white/10">
|
|
190
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
191
|
-
Prop
|
|
192
|
-
</th>
|
|
193
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
194
|
-
Type
|
|
195
|
-
</th>
|
|
196
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
197
|
-
Default
|
|
198
|
-
</th>
|
|
199
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
200
|
-
Description
|
|
201
|
-
</th>
|
|
202
|
-
</tr>
|
|
203
|
-
</thead>
|
|
204
|
-
<tbody>
|
|
205
|
-
{" "}
|
|
206
|
-
<tr className="!bg-black/10">
|
|
207
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
208
|
-
withAccessibility
|
|
209
|
-
</td>
|
|
210
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
-
boolean
|
|
212
|
-
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
214
|
-
true
|
|
215
|
-
</td>
|
|
216
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
217
|
-
Whether to wrap the icon with accessibility feature
|
|
218
|
-
</td>
|
|
219
|
-
</tr>
|
|
220
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
221
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
222
|
-
height
|
|
223
|
-
</td>
|
|
224
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
225
|
-
number | string
|
|
226
|
-
</td>
|
|
227
|
-
<td className="px-6 py-4 text-sm !text-white/50">18</td>
|
|
228
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
229
|
-
Height of the icon in pixels
|
|
230
|
-
</td>
|
|
231
|
-
</tr>
|
|
232
|
-
<tr className="border-b border-white/5">
|
|
233
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
234
|
-
stroke
|
|
235
|
-
</td>
|
|
236
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
237
|
-
string
|
|
238
|
-
</td>
|
|
239
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
240
|
-
currentColor
|
|
241
|
-
</td>
|
|
242
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
243
|
-
Stroke color of the icon
|
|
244
|
-
</td>
|
|
245
|
-
</tr>
|
|
246
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
247
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
248
|
-
strokeWidth
|
|
249
|
-
</td>
|
|
250
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
251
|
-
number | string
|
|
252
|
-
</td>
|
|
253
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
254
|
-
1.5
|
|
255
|
-
</td>
|
|
256
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
257
|
-
Stroke width of the icon
|
|
258
|
-
</td>
|
|
259
|
-
</tr>
|
|
260
|
-
<tr className="border-b border-white/5">
|
|
261
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
262
|
-
className
|
|
263
|
-
</td>
|
|
264
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
265
|
-
string
|
|
266
|
-
</td>
|
|
267
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
268
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
269
|
-
CSS classes for styling
|
|
270
|
-
</td>
|
|
271
|
-
</tr>
|
|
272
|
-
<tr className="!bg-black/10">
|
|
273
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
274
|
-
...svgProps
|
|
275
|
-
</td>
|
|
276
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
277
|
-
SVGProps
|
|
278
|
-
</td>
|
|
279
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
280
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
281
|
-
All standard SVG element props
|
|
282
|
-
</td>
|
|
283
|
-
</tr>
|
|
284
|
-
</tbody>
|
|
285
|
-
</table>
|
|
286
|
-
</div>
|
|
287
|
-
</div>
|
|
288
|
-
|
|
289
|
-
{/* Size Variations */}
|
|
290
|
-
<div className="!space-y-8">
|
|
291
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
292
|
-
Size Variations
|
|
293
|
-
</h2>
|
|
294
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
295
|
-
<div className="!space-y-6">
|
|
296
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
297
|
-
<div className="!space-y-4">
|
|
298
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
299
|
-
Standard Sizes
|
|
300
|
-
</h3>
|
|
301
|
-
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
302
|
-
<div className="text-center">
|
|
303
|
-
<PaintRollIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
|
|
304
|
-
<span className="text-xs text-white/60">12px</span>
|
|
305
|
-
</div>
|
|
306
|
-
<div className="text-center">
|
|
307
|
-
<PaintRollIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
|
|
308
|
-
<span className="text-xs text-white/60">16px</span>
|
|
309
|
-
</div>
|
|
310
|
-
<div className="text-center">
|
|
311
|
-
<PaintRollIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
|
|
312
|
-
<span className="text-xs text-white/60">20px</span>
|
|
313
|
-
</div>
|
|
314
|
-
<div className="text-center">
|
|
315
|
-
<PaintRollIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
|
|
316
|
-
<span className="text-xs text-white/60">24px</span>
|
|
317
|
-
</div>
|
|
318
|
-
<div className="text-center">
|
|
319
|
-
<PaintRollIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
|
|
320
|
-
<span className="text-xs text-white/60">32px</span>
|
|
321
|
-
</div>
|
|
322
|
-
<div className="text-center">
|
|
323
|
-
<PaintRollIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
|
|
324
|
-
<span className="text-xs text-white/60">48px</span>
|
|
325
|
-
</div>
|
|
326
|
-
</div>
|
|
327
|
-
</div>
|
|
328
|
-
|
|
329
|
-
<div className="!space-y-4">
|
|
330
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
331
|
-
Code Example
|
|
332
|
-
</h3>
|
|
333
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
334
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
335
|
-
{`// Small (16px)
|
|
336
|
-
<PaintRollIcon className="h-4 w-4" />
|
|
337
|
-
|
|
338
|
-
// Medium (24px)
|
|
339
|
-
<PaintRollIcon className="h-6 w-6" />
|
|
340
|
-
|
|
341
|
-
// Large (32px)
|
|
342
|
-
<PaintRollIcon className="h-8 w-8" />
|
|
343
|
-
|
|
344
|
-
// Custom size
|
|
345
|
-
<PaintRollIcon width={40} height={40} />`}
|
|
346
|
-
</pre>
|
|
347
|
-
</div>
|
|
348
|
-
</div>
|
|
349
|
-
</div>
|
|
350
|
-
</div>
|
|
351
|
-
</div>
|
|
352
|
-
</div>
|
|
353
|
-
|
|
354
|
-
{/* Color Variations */}
|
|
355
|
-
<div className="!space-y-8">
|
|
356
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
357
|
-
Color Variations
|
|
358
|
-
</h2>
|
|
359
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
360
|
-
<div className="!space-y-4">
|
|
361
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
362
|
-
Design Tool Colors
|
|
363
|
-
</h3>
|
|
364
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
365
|
-
<div className="flex items-center gap-4">
|
|
366
|
-
<PaintRollIcon className="h-6 w-6 text-indigo-400" />
|
|
367
|
-
<div>
|
|
368
|
-
<div className="text-sm font-medium text-white">
|
|
369
|
-
Primary Tool
|
|
370
|
-
</div>
|
|
371
|
-
<div className="text-xs text-white/60">
|
|
372
|
-
text-indigo-400
|
|
373
|
-
</div>
|
|
374
|
-
</div>
|
|
375
|
-
</div>
|
|
376
|
-
<div className="flex items-center gap-4">
|
|
377
|
-
<PaintRollIcon className="h-6 w-6 text-violet-400" />
|
|
378
|
-
<div>
|
|
379
|
-
<div className="text-sm font-medium text-white">
|
|
380
|
-
Creative
|
|
381
|
-
</div>
|
|
382
|
-
<div className="text-xs text-white/60">
|
|
383
|
-
text-violet-400
|
|
384
|
-
</div>
|
|
385
|
-
</div>
|
|
386
|
-
</div>
|
|
387
|
-
<div className="flex items-center gap-4">
|
|
388
|
-
<PaintRollIcon className="h-6 w-6 text-purple-400" />
|
|
389
|
-
<div>
|
|
390
|
-
<div className="text-sm font-medium text-white">
|
|
391
|
-
Artistic
|
|
392
|
-
</div>
|
|
393
|
-
<div className="text-xs text-white/60">
|
|
394
|
-
text-purple-400
|
|
395
|
-
</div>
|
|
396
|
-
</div>
|
|
397
|
-
</div>
|
|
398
|
-
<div className="flex items-center gap-4">
|
|
399
|
-
<PaintRollIcon className="h-6 w-6 text-pink-400" />
|
|
400
|
-
<div>
|
|
401
|
-
<div className="text-sm font-medium text-white">
|
|
402
|
-
Accent
|
|
403
|
-
</div>
|
|
404
|
-
<div className="text-xs text-white/60">
|
|
405
|
-
text-pink-400
|
|
406
|
-
</div>
|
|
407
|
-
</div>
|
|
408
|
-
</div>
|
|
409
|
-
</div>
|
|
410
|
-
</div>
|
|
411
|
-
|
|
412
|
-
<div className="!space-y-4">
|
|
413
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
414
|
-
Custom Colors
|
|
415
|
-
</h3>
|
|
416
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
417
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
418
|
-
{`// Using Tailwind classes
|
|
419
|
-
<PaintRollIcon className="h-6 w-6 text-indigo-400" />
|
|
420
|
-
<PaintRollIcon className="h-6 w-6 text-violet-500" />
|
|
421
|
-
|
|
422
|
-
// Using CSS custom properties
|
|
423
|
-
<PaintRollIcon
|
|
424
|
-
className="h-6 w-6"
|
|
425
|
-
style={{ color: 'var(--color-primary)' }}
|
|
426
|
-
/>
|
|
427
|
-
|
|
428
|
-
// Direct stroke prop
|
|
429
|
-
<PaintRollIcon
|
|
430
|
-
width={24}
|
|
431
|
-
height={24}
|
|
432
|
-
stroke="#6366f1"
|
|
433
|
-
/>`}
|
|
434
|
-
</pre>
|
|
435
|
-
</div>
|
|
436
|
-
</div>
|
|
437
|
-
</div>
|
|
438
|
-
</div>
|
|
439
|
-
|
|
440
|
-
{/* Usage Examples */}
|
|
441
|
-
<div className="!space-y-8">
|
|
442
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
443
|
-
Usage Examples
|
|
444
|
-
</h2>
|
|
445
|
-
|
|
446
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
447
|
-
{/* Theme Customizer */}
|
|
448
|
-
<div className="!space-y-4">
|
|
449
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
450
|
-
Theme Customizer
|
|
451
|
-
</h3>
|
|
452
|
-
<div className="!space-y-4">
|
|
453
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
454
|
-
<div className="!space-y-3">
|
|
455
|
-
<div className="flex items-center justify-between">
|
|
456
|
-
<h4 className="font-medium !text-white">
|
|
457
|
-
Appearance
|
|
458
|
-
</h4>
|
|
459
|
-
<button className="flex items-center gap-2 rounded border border-indigo-500/30 bg-indigo-500/20 px-3 py-1.5 text-indigo-200 transition-colors hover:bg-indigo-500/30">
|
|
460
|
-
<PaintRollIcon className="h-4 w-4" />
|
|
461
|
-
<span className="text-sm">Customize</span>
|
|
462
|
-
</button>
|
|
463
|
-
</div>
|
|
464
|
-
<div className="grid grid-cols-3 gap-2">
|
|
465
|
-
<div className="h-8 rounded bg-indigo-500/20"></div>
|
|
466
|
-
<div className="h-8 rounded bg-violet-500/20"></div>
|
|
467
|
-
<div className="h-8 rounded bg-purple-500/20"></div>
|
|
468
|
-
</div>
|
|
469
|
-
</div>
|
|
470
|
-
</div>
|
|
471
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
472
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
473
|
-
{`// Theme customizer button
|
|
474
|
-
<button className="flex items-center gap-2 bg-indigo-500/20 border border-indigo-500/30 px-3 py-1.5 rounded">
|
|
475
|
-
<PaintRollIcon className="h-4 w-4" />
|
|
476
|
-
<span className="text-sm">Customize</span>
|
|
477
|
-
</button>`}
|
|
478
|
-
</pre>
|
|
479
|
-
</div>
|
|
480
|
-
</div>
|
|
481
|
-
</div>
|
|
482
|
-
|
|
483
|
-
{/* Design Tool Toolbar */}
|
|
484
|
-
<div className="!space-y-4">
|
|
485
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
486
|
-
Design Tool Toolbar
|
|
487
|
-
</h3>
|
|
488
|
-
<div className="!space-y-4">
|
|
489
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
490
|
-
<div className="flex items-center gap-1">
|
|
491
|
-
<button className="rounded p-2 text-white/60 hover:bg-white/10">
|
|
492
|
-
<div className="h-5 w-5 rounded-sm border border-current"></div>
|
|
493
|
-
</button>
|
|
494
|
-
<button className="rounded p-2 text-white/60 hover:bg-white/10">
|
|
495
|
-
<div className="h-5 w-5 rounded-full border border-current"></div>
|
|
496
|
-
</button>
|
|
497
|
-
<button className="rounded bg-indigo-500/20 p-2 text-indigo-400">
|
|
498
|
-
<PaintRollIcon className="h-5 w-5" />
|
|
499
|
-
</button>
|
|
500
|
-
<button className="rounded p-2 text-white/60 hover:bg-white/10">
|
|
501
|
-
<div className="h-5 w-5 border-l-2 border-current"></div>
|
|
502
|
-
</button>
|
|
503
|
-
</div>
|
|
504
|
-
</div>
|
|
505
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
506
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
507
|
-
{`// Design tool toolbar
|
|
508
|
-
<div className="flex items-center gap-1">
|
|
509
|
-
<button className="p-2 rounded text-white/60 hover:bg-white/10">
|
|
510
|
-
<RectangleIcon className="h-5 w-5" />
|
|
511
|
-
</button>
|
|
512
|
-
<button className="p-2 rounded bg-indigo-500/20 text-indigo-400">
|
|
513
|
-
<PaintRollIcon className="h-5 w-5" />
|
|
514
|
-
</button>
|
|
515
|
-
<button className="p-2 rounded text-white/60 hover:bg-white/10">
|
|
516
|
-
<LineIcon className="h-5 w-5" />
|
|
517
|
-
</button>
|
|
518
|
-
</div>`}
|
|
519
|
-
</pre>
|
|
520
|
-
</div>
|
|
521
|
-
</div>
|
|
522
|
-
</div>
|
|
523
|
-
|
|
524
|
-
{/* Style Panel */}
|
|
525
|
-
<div className="!space-y-4">
|
|
526
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
527
|
-
Style Panel
|
|
528
|
-
</h3>
|
|
529
|
-
<div className="!space-y-4">
|
|
530
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
531
|
-
<div className="!space-y-3">
|
|
532
|
-
<div className="flex items-center gap-2">
|
|
533
|
-
<PaintRollIcon className="h-4 w-4 text-indigo-400" />
|
|
534
|
-
<span className="text-sm font-medium text-white">
|
|
535
|
-
Styling
|
|
536
|
-
</span>
|
|
537
|
-
</div>
|
|
538
|
-
<div className="!space-y-2">
|
|
539
|
-
<div className="flex items-center justify-between">
|
|
540
|
-
<span className="text-sm text-white/70">
|
|
541
|
-
Background
|
|
542
|
-
</span>
|
|
543
|
-
<div className="h-6 w-6 rounded border border-white/20 bg-indigo-500"></div>
|
|
544
|
-
</div>
|
|
545
|
-
<div className="flex items-center justify-between">
|
|
546
|
-
<span className="text-sm text-white/70">
|
|
547
|
-
Border
|
|
548
|
-
</span>
|
|
549
|
-
<div className="h-6 w-6 rounded border border-white/20 bg-violet-500"></div>
|
|
550
|
-
</div>
|
|
551
|
-
</div>
|
|
552
|
-
</div>
|
|
553
|
-
</div>
|
|
554
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
555
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
556
|
-
{`// Style panel header
|
|
557
|
-
<div className="flex items-center gap-2">
|
|
558
|
-
<PaintRollIcon className="h-4 w-4 text-indigo-400" />
|
|
559
|
-
<span className="text-sm font-medium text-white">Styling</span>
|
|
560
|
-
</div>`}
|
|
561
|
-
</pre>
|
|
562
|
-
</div>
|
|
563
|
-
</div>
|
|
564
|
-
</div>
|
|
565
|
-
|
|
566
|
-
{/* Settings Menu */}
|
|
567
|
-
<div className="!space-y-4">
|
|
568
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
569
|
-
Settings Menu
|
|
570
|
-
</h3>
|
|
571
|
-
<div className="!space-y-4">
|
|
572
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
573
|
-
<div className="!space-y-2">
|
|
574
|
-
<div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
|
|
575
|
-
<div className="h-5 w-5 rounded bg-gray-500"></div>
|
|
576
|
-
<span className="text-sm">General</span>
|
|
577
|
-
</div>
|
|
578
|
-
<div className="flex items-center gap-3 rounded-lg bg-indigo-500/20 px-3 py-2 text-indigo-200">
|
|
579
|
-
<PaintRollIcon className="h-5 w-5" />
|
|
580
|
-
<span className="text-sm font-medium">
|
|
581
|
-
Appearance
|
|
582
|
-
</span>
|
|
583
|
-
</div>
|
|
584
|
-
<div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
|
|
585
|
-
<div className="h-5 w-5 rounded bg-gray-500"></div>
|
|
586
|
-
<span className="text-sm">Privacy</span>
|
|
587
|
-
</div>
|
|
588
|
-
</div>
|
|
589
|
-
</div>
|
|
590
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
591
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
592
|
-
{`// Active settings menu item
|
|
593
|
-
<div className="flex items-center gap-3 bg-indigo-500/20 px-3 py-2 rounded-lg text-indigo-200">
|
|
594
|
-
<PaintRollIcon className="h-5 w-5" />
|
|
595
|
-
<span className="text-sm font-medium">Appearance</span>
|
|
596
|
-
</div>`}
|
|
597
|
-
</pre>
|
|
598
|
-
</div>
|
|
599
|
-
</div>
|
|
600
|
-
</div>
|
|
601
|
-
</div>
|
|
602
|
-
</div>
|
|
603
|
-
|
|
604
|
-
{/* Accessibility */}
|
|
605
|
-
<div className="!space-y-8">
|
|
606
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
607
|
-
Accessibility Features
|
|
608
|
-
</h2>
|
|
609
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
610
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
611
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
612
|
-
✅ Built-in Features
|
|
613
|
-
</h3>
|
|
614
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
615
|
-
<li className="!text-white/70">
|
|
616
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
617
|
-
</li>
|
|
618
|
-
<li className="!text-white/70">
|
|
619
|
-
Provides screen reader label "Paint Roll icon"
|
|
620
|
-
</li>
|
|
621
|
-
<li className="!text-white/70">
|
|
622
|
-
Supports keyboard navigation when interactive
|
|
623
|
-
</li>
|
|
624
|
-
<li className="!text-white/70">
|
|
625
|
-
Maintains proper color contrast ratios
|
|
626
|
-
</li>
|
|
627
|
-
<li className="!text-white/70">
|
|
628
|
-
Scales with user's font size preferences
|
|
629
|
-
</li>
|
|
630
|
-
</ul>
|
|
631
|
-
</div>
|
|
632
|
-
|
|
633
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
634
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
635
|
-
💡 Best Practices
|
|
636
|
-
</h3>
|
|
637
|
-
<ul className="!space-y-2 text-sm text-white/70">
|
|
638
|
-
<li className="!text-white/70">
|
|
639
|
-
Always pair with descriptive text or tooltips
|
|
640
|
-
</li>
|
|
641
|
-
<li className="!text-white/70">
|
|
642
|
-
Use consistent colors for design tools
|
|
643
|
-
</li>
|
|
644
|
-
<li className="!text-white/70">
|
|
645
|
-
Ensure sufficient color contrast
|
|
646
|
-
</li>
|
|
647
|
-
<li className="!text-white/70">
|
|
648
|
-
Add focus states for interactive elements
|
|
649
|
-
</li>
|
|
650
|
-
<li className="!text-white/70">
|
|
651
|
-
Consider tool context for better labeling
|
|
652
|
-
</li>
|
|
653
|
-
</ul>
|
|
654
|
-
</div>
|
|
655
|
-
</div>
|
|
656
|
-
|
|
657
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
658
|
-
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
659
|
-
Custom Accessibility Label
|
|
660
|
-
</h3>
|
|
661
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
662
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
663
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
664
|
-
{`// Custom implementation with specific label
|
|
665
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
666
|
-
|
|
667
|
-
function CustomPaintRollIcon({ label = "Styling tool", ...props }) {
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="info"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "Theme", description: "Apply theme or style" },
|
|
39
|
+
{ title: "Design", description: "Visual design tooling" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { PaintRollIcon } from "src/ui/icons/paint-roll-icon"
|
|
44
|
+
|
|
45
|
+
function ThemeButton() {
|
|
668
46
|
return (
|
|
669
|
-
<
|
|
670
|
-
<PaintRollIcon
|
|
671
|
-
|
|
47
|
+
<button className="flex items-center gap-2">
|
|
48
|
+
<PaintRollIcon className="h-5 w-5 text-fm-icon-active" />
|
|
49
|
+
<span>Customize theme</span>
|
|
50
|
+
</button>
|
|
672
51
|
)
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
<
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
708
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
709
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
|
|
710
|
-
<span className="text-2xl">🎨</span>
|
|
711
|
-
</div>
|
|
712
|
-
<div>
|
|
713
|
-
<div className="font-medium text-white">PaletteIcon</div>
|
|
714
|
-
<div className="text-xs text-white/60">
|
|
715
|
-
Color selection
|
|
716
|
-
</div>
|
|
717
|
-
</div>
|
|
718
|
-
</div>
|
|
719
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
720
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
721
|
-
<span className="text-2xl">🖌️</span>
|
|
722
|
-
</div>
|
|
723
|
-
<div>
|
|
724
|
-
<div className="font-medium text-white">BrushIcon</div>
|
|
725
|
-
<div className="text-xs text-white/60">Drawing tools</div>
|
|
726
|
-
</div>
|
|
727
|
-
</div>
|
|
728
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
729
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
730
|
-
<span className="text-2xl">⚙️</span>
|
|
731
|
-
</div>
|
|
732
|
-
<div>
|
|
733
|
-
<div className="font-medium text-white">SettingsIcon</div>
|
|
734
|
-
<div className="text-xs text-white/60">Configuration</div>
|
|
735
|
-
</div>
|
|
736
|
-
</div>
|
|
737
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
738
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
739
|
-
<span className="text-2xl">🌈</span>
|
|
740
|
-
</div>
|
|
741
|
-
<div>
|
|
742
|
-
<div className="font-medium text-white">ThemeIcon</div>
|
|
743
|
-
<div className="text-xs text-white/60">
|
|
744
|
-
Theme switching
|
|
745
|
-
</div>
|
|
746
|
-
</div>
|
|
747
|
-
</div>
|
|
748
|
-
</div>
|
|
749
|
-
</div>
|
|
750
|
-
</div>
|
|
751
|
-
|
|
752
|
-
{/* Footer */}
|
|
753
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
754
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
755
|
-
<div className="!space-y-4 text-center">
|
|
756
|
-
<p className="!text-white/60">
|
|
757
|
-
PaintRollIcon is part of the Aural UI icon library, designed
|
|
758
|
-
specifically for design tools, theme customization, and
|
|
759
|
-
styling interfaces with accessibility in mind.
|
|
760
|
-
</p>
|
|
761
|
-
<p className="text-sm !text-white/40">
|
|
762
|
-
Perfect for design applications, theme editors, and
|
|
763
|
-
customization interfaces that need clear visual
|
|
764
|
-
representation of styling tools. Follows WCAG guidelines for
|
|
765
|
-
accessibility.
|
|
766
|
-
</p>
|
|
767
|
-
</div>
|
|
768
|
-
</div>
|
|
769
|
-
</div>
|
|
770
|
-
</div>
|
|
771
|
-
</>
|
|
52
|
+
}`,
|
|
53
|
+
livePreview: (
|
|
54
|
+
<button className="flex items-center gap-2">
|
|
55
|
+
<PaintRollIcon className="text-fm-icon-active h-6 w-6" />
|
|
56
|
+
</button>
|
|
57
|
+
),
|
|
58
|
+
}}
|
|
59
|
+
relatedIcons={[
|
|
60
|
+
{
|
|
61
|
+
name: "ArtBoardIcon",
|
|
62
|
+
description: "Art board / canvas icon",
|
|
63
|
+
icon: ArtBoardIcon,
|
|
64
|
+
accentToken: "info",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "TextColorIcon",
|
|
68
|
+
description: "Text color / highlight icon",
|
|
69
|
+
icon: TextColorIcon,
|
|
70
|
+
accentToken: "positive",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "EditBigIcon",
|
|
74
|
+
description: "Edit / modify content icon",
|
|
75
|
+
icon: EditBigIcon,
|
|
76
|
+
accentToken: "warning",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "MagicEditIcon",
|
|
80
|
+
description: "AI-enhanced edit icon",
|
|
81
|
+
icon: MagicEditIcon,
|
|
82
|
+
accentToken: "negative",
|
|
83
|
+
},
|
|
84
|
+
]}
|
|
85
|
+
/>
|
|
772
86
|
),
|
|
773
87
|
},
|
|
774
88
|
},
|
|
775
89
|
tags: ["autodocs"],
|
|
776
90
|
argTypes: {
|
|
777
|
-
|
|
778
|
-
control:
|
|
779
|
-
description: "
|
|
91
|
+
className: {
|
|
92
|
+
control: "text",
|
|
93
|
+
description: "CSS classes including color token",
|
|
780
94
|
},
|
|
781
95
|
withAccessibility: {
|
|
782
96
|
control: "boolean",
|
|
783
|
-
description: "
|
|
784
|
-
},
|
|
785
|
-
height: {
|
|
786
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
787
|
-
description: "Height of the icon in pixels",
|
|
788
|
-
},
|
|
789
|
-
stroke: {
|
|
790
|
-
control: "color",
|
|
791
|
-
description: "Stroke color of the icon",
|
|
792
|
-
},
|
|
793
|
-
strokeWidth: {
|
|
794
|
-
control: { type: "range", min: 0.5, max: 4, step: 0.5 },
|
|
795
|
-
description: "Stroke width of the icon",
|
|
796
|
-
},
|
|
797
|
-
className: {
|
|
798
|
-
control: "text",
|
|
799
|
-
description: "CSS classes for styling",
|
|
97
|
+
description: "Wrap with accessibility label",
|
|
800
98
|
},
|
|
801
99
|
},
|
|
802
100
|
}
|
|
@@ -804,215 +102,76 @@ function CustomPaintRollIcon({ label = "Styling tool", ...props }) {
|
|
|
804
102
|
export default meta
|
|
805
103
|
type Story = StoryObj<typeof PaintRollIcon>
|
|
806
104
|
|
|
807
|
-
// Story parameters for consistent dark theme
|
|
808
|
-
const storyParameters = {
|
|
809
|
-
backgrounds: {
|
|
810
|
-
default: "dark",
|
|
811
|
-
values: [
|
|
812
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
813
|
-
{ name: "darker", value: "#000000" },
|
|
814
|
-
],
|
|
815
|
-
},
|
|
816
|
-
}
|
|
817
|
-
|
|
818
105
|
export const Default: Story = {
|
|
819
106
|
args: {
|
|
820
|
-
|
|
821
|
-
height: 24,
|
|
822
|
-
className: "text-indigo-400",
|
|
107
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
823
108
|
withAccessibility: true,
|
|
824
109
|
},
|
|
825
|
-
parameters: storyParameters,
|
|
826
110
|
render: (args) => (
|
|
827
|
-
<
|
|
111
|
+
<IconDefaultCanvas>
|
|
828
112
|
<PaintRollIcon {...args} />
|
|
829
|
-
</
|
|
113
|
+
</IconDefaultCanvas>
|
|
830
114
|
),
|
|
831
115
|
}
|
|
832
116
|
|
|
833
117
|
export const SizeVariations: Story = {
|
|
834
|
-
|
|
835
|
-
...storyParameters,
|
|
836
|
-
docs: {
|
|
837
|
-
description: {
|
|
838
|
-
story:
|
|
839
|
-
"PaintRollIcon in different sizes, from small UI elements to large design tool displays.",
|
|
840
|
-
},
|
|
841
|
-
},
|
|
842
|
-
},
|
|
843
|
-
render: () => (
|
|
844
|
-
<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">
|
|
845
|
-
<div className="text-center">
|
|
846
|
-
<PaintRollIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
|
|
847
|
-
<span className="text-xs text-white/60">12px</span>
|
|
848
|
-
</div>
|
|
849
|
-
<div className="text-center">
|
|
850
|
-
<PaintRollIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
|
|
851
|
-
<span className="text-xs text-white/60">16px</span>
|
|
852
|
-
</div>
|
|
853
|
-
<div className="text-center">
|
|
854
|
-
<PaintRollIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
|
|
855
|
-
<span className="text-xs text-white/60">20px</span>
|
|
856
|
-
</div>
|
|
857
|
-
<div className="text-center">
|
|
858
|
-
<PaintRollIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
|
|
859
|
-
<span className="text-xs text-white/60">24px</span>
|
|
860
|
-
</div>
|
|
861
|
-
<div className="text-center">
|
|
862
|
-
<PaintRollIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
|
|
863
|
-
<span className="text-xs text-white/60">32px</span>
|
|
864
|
-
</div>
|
|
865
|
-
<div className="text-center">
|
|
866
|
-
<PaintRollIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
|
|
867
|
-
<span className="text-xs text-white/60">48px</span>
|
|
868
|
-
</div>
|
|
869
|
-
</div>
|
|
870
|
-
),
|
|
118
|
+
render: () => <IconSizeVariations icon={PaintRollIcon} />,
|
|
871
119
|
}
|
|
872
120
|
|
|
873
121
|
export const ColorVariations: Story = {
|
|
874
|
-
|
|
875
|
-
...storyParameters,
|
|
876
|
-
docs: {
|
|
877
|
-
description: {
|
|
878
|
-
story:
|
|
879
|
-
"PaintRollIcon in different colors suitable for design tools and styling interfaces.",
|
|
880
|
-
},
|
|
881
|
-
},
|
|
882
|
-
},
|
|
883
|
-
render: () => (
|
|
884
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8 md:grid-cols-4">
|
|
885
|
-
<div className="text-center">
|
|
886
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-indigo-500/30 bg-indigo-500/20">
|
|
887
|
-
<PaintRollIcon className="h-8 w-8 text-indigo-400" />
|
|
888
|
-
</div>
|
|
889
|
-
<div className="text-sm font-medium text-white">Primary Tool</div>
|
|
890
|
-
<div className="text-xs text-indigo-400">text-indigo-400</div>
|
|
891
|
-
</div>
|
|
892
|
-
<div className="text-center">
|
|
893
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-violet-500/30 bg-violet-500/20">
|
|
894
|
-
<PaintRollIcon className="h-8 w-8 text-violet-400" />
|
|
895
|
-
</div>
|
|
896
|
-
<div className="text-sm font-medium text-white">Creative</div>
|
|
897
|
-
<div className="text-xs text-violet-400">text-violet-400</div>
|
|
898
|
-
</div>
|
|
899
|
-
<div className="text-center">
|
|
900
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
|
|
901
|
-
<PaintRollIcon className="h-8 w-8 text-purple-400" />
|
|
902
|
-
</div>
|
|
903
|
-
<div className="text-sm font-medium text-white">Artistic</div>
|
|
904
|
-
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
905
|
-
</div>
|
|
906
|
-
<div className="text-center">
|
|
907
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-pink-500/30 bg-pink-500/20">
|
|
908
|
-
<PaintRollIcon className="h-8 w-8 text-pink-400" />
|
|
909
|
-
</div>
|
|
910
|
-
<div className="text-sm font-medium text-white">Accent</div>
|
|
911
|
-
<div className="text-xs text-pink-400">text-pink-400</div>
|
|
912
|
-
</div>
|
|
913
|
-
</div>
|
|
914
|
-
),
|
|
122
|
+
render: () => <IconColorVariations icon={PaintRollIcon} />,
|
|
915
123
|
}
|
|
916
124
|
|
|
917
125
|
export const UsageExamples: Story = {
|
|
918
|
-
parameters: {
|
|
919
|
-
...storyParameters,
|
|
920
|
-
docs: {
|
|
921
|
-
description: {
|
|
922
|
-
story:
|
|
923
|
-
"Real-world usage examples showing PaintRollIcon in different design tool and styling contexts.",
|
|
924
|
-
},
|
|
925
|
-
},
|
|
926
|
-
},
|
|
927
126
|
render: () => (
|
|
928
|
-
<
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
<
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
</div>
|
|
947
|
-
</div>
|
|
948
|
-
</div>
|
|
949
|
-
|
|
950
|
-
{/* Design Tool Toolbar */}
|
|
951
|
-
<div className="!space-y-2">
|
|
952
|
-
<h3 className="text-sm font-medium text-white">Design Tool Toolbar</h3>
|
|
953
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
954
|
-
<div className="flex items-center gap-1">
|
|
955
|
-
<button className="rounded p-2 text-white/60 hover:bg-white/10">
|
|
956
|
-
<div className="h-5 w-5 rounded-sm border border-current"></div>
|
|
957
|
-
</button>
|
|
958
|
-
<button className="rounded p-2 text-white/60 hover:bg-white/10">
|
|
959
|
-
<div className="h-5 w-5 rounded-full border border-current"></div>
|
|
127
|
+
<IconUsageCanvas>
|
|
128
|
+
<IconUsageSection title="Theme Picker">
|
|
129
|
+
<button className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-4 py-2">
|
|
130
|
+
<PaintRollIcon className="text-fm-icon-active h-4 w-4" />
|
|
131
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
132
|
+
Customize theme
|
|
133
|
+
</span>
|
|
134
|
+
</button>
|
|
135
|
+
</IconUsageSection>
|
|
136
|
+
|
|
137
|
+
<IconUsageSection title="Design Tools">
|
|
138
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-3 py-2">
|
|
139
|
+
{[PaintRollIcon, ArtBoardIcon, TextColorIcon].map((Icon, i) => (
|
|
140
|
+
<button
|
|
141
|
+
key={i}
|
|
142
|
+
className="flex h-8 w-8 items-center justify-center rounded-lg"
|
|
143
|
+
>
|
|
144
|
+
<Icon className="text-fm-icon-inactive h-4 w-4" />
|
|
960
145
|
</button>
|
|
961
|
-
|
|
962
|
-
<PaintRollIcon className="h-5 w-5" />
|
|
963
|
-
</button>
|
|
964
|
-
<button className="rounded p-2 text-white/60 hover:bg-white/10">
|
|
965
|
-
<div className="h-5 w-5 border-l-2 border-current"></div>
|
|
966
|
-
</button>
|
|
967
|
-
</div>
|
|
146
|
+
))}
|
|
968
147
|
</div>
|
|
969
|
-
</
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
<span className="text-sm">General</span>
|
|
979
|
-
</div>
|
|
980
|
-
<div className="flex items-center gap-3 rounded-lg bg-indigo-500/20 px-3 py-2 text-indigo-200">
|
|
981
|
-
<PaintRollIcon className="h-5 w-5" />
|
|
982
|
-
<span className="text-sm font-medium">Appearance</span>
|
|
983
|
-
</div>
|
|
984
|
-
<div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
|
|
985
|
-
<div className="h-5 w-5 rounded bg-gray-500"></div>
|
|
986
|
-
<span className="text-sm">Privacy</span>
|
|
987
|
-
</div>
|
|
148
|
+
</IconUsageSection>
|
|
149
|
+
|
|
150
|
+
<IconUsageSection title="Style Settings Row">
|
|
151
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-between rounded-xl border px-4 py-3">
|
|
152
|
+
<div className="flex items-center gap-3">
|
|
153
|
+
<PaintRollIcon className="text-fm-icon-active h-5 w-5" />
|
|
154
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
155
|
+
Cover style
|
|
156
|
+
</span>
|
|
988
157
|
</div>
|
|
158
|
+
<span className="text-fm-secondary font-fm-text text-xs">
|
|
159
|
+
Gradient
|
|
160
|
+
</span>
|
|
989
161
|
</div>
|
|
990
|
-
</
|
|
991
|
-
</
|
|
162
|
+
</IconUsageSection>
|
|
163
|
+
</IconUsageCanvas>
|
|
992
164
|
),
|
|
993
165
|
}
|
|
994
166
|
|
|
995
167
|
export const Playground: Story = {
|
|
996
|
-
parameters: {
|
|
997
|
-
...storyParameters,
|
|
998
|
-
docs: {
|
|
999
|
-
description: {
|
|
1000
|
-
story:
|
|
1001
|
-
"Interactive playground to experiment with different PaintRollIcon configurations.",
|
|
1002
|
-
},
|
|
1003
|
-
},
|
|
1004
|
-
},
|
|
1005
168
|
args: {
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
className: "text-indigo-400",
|
|
1009
|
-
strokeWidth: 1.5,
|
|
169
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
170
|
+
withAccessibility: true,
|
|
1010
171
|
},
|
|
1011
172
|
render: (args) => (
|
|
1012
|
-
<
|
|
1013
|
-
<
|
|
1014
|
-
|
|
1015
|
-
</div>
|
|
1016
|
-
</div>
|
|
173
|
+
<IconPlaygroundCanvas>
|
|
174
|
+
<PaintRollIcon {...args} />
|
|
175
|
+
</IconPlaygroundCanvas>
|
|
1017
176
|
),
|
|
1018
177
|
}
|