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 { CapitalALetterIcon } from "src/ui/icons/capital-a-letter-icon"
|
|
5
|
+
import { EditBigIcon } from "src/ui/icons/edit-big-icon"
|
|
6
|
+
import { PaintRollIcon } from "src/ui/icons/paint-roll-icon"
|
|
7
|
+
import { TextIndicatorIcon } from "src/ui/icons/text-indicator-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 { TextColorIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof TextColorIcon> = {
|
|
@@ -11,795 +25,75 @@ const meta: Meta<typeof TextColorIcon> = {
|
|
|
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-purple-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-blue-500/10 via-transparent to-purple-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-blue-500/30 bg-gradient-to-br from-blue-500/20 to-indigo-600/20">
|
|
90
|
-
<TextColorIcon className="h-12 w-12 text-blue-400" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
-
TextColorIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
-
A versatile text color icon for rich text editors, design
|
|
97
|
-
tools, and formatting controls. Features both a text
|
|
98
|
-
character and color palette element for clear visual
|
|
99
|
-
communication.
|
|
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-blue-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-purple-300">
|
|
115
|
-
Editor Ready
|
|
116
|
-
</div>
|
|
117
|
-
<div className="text-sm text-white/60">
|
|
118
|
-
Perfect for rich text
|
|
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-indigo-300">
|
|
124
|
-
Intuitive
|
|
125
|
-
</div>
|
|
126
|
-
<div className="text-sm text-white/60">
|
|
127
|
-
Clear visual metaphor
|
|
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-blue-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 { TextColorIcon } from "@icons/text-color-icon"
|
|
150
|
-
|
|
151
|
-
function MyEditor() {
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="info"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "Text Color", description: "Change text color in editor" },
|
|
39
|
+
{ title: "Highlight", description: "Highlight selected text" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { TextColorIcon } from "src/ui/icons/text-color-icon"
|
|
44
|
+
|
|
45
|
+
function TextColorButton() {
|
|
152
46
|
return (
|
|
153
|
-
<button
|
|
154
|
-
<TextColorIcon className="h-
|
|
155
|
-
<span>Text Color</span>
|
|
47
|
+
<button>
|
|
48
|
+
<TextColorIcon className="h-5 w-5 text-fm-icon-active" />
|
|
156
49
|
</button>
|
|
157
50
|
)
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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-blue-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-blue-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-blue-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-blue-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-blue-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-blue-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
|
-
<TextColorIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
304
|
-
<span className="text-xs text-white/60">12px</span>
|
|
305
|
-
</div>
|
|
306
|
-
<div className="text-center">
|
|
307
|
-
<TextColorIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
308
|
-
<span className="text-xs text-white/60">16px</span>
|
|
309
|
-
</div>
|
|
310
|
-
<div className="text-center">
|
|
311
|
-
<TextColorIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
312
|
-
<span className="text-xs text-white/60">20px</span>
|
|
313
|
-
</div>
|
|
314
|
-
<div className="text-center">
|
|
315
|
-
<TextColorIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
316
|
-
<span className="text-xs text-white/60">24px</span>
|
|
317
|
-
</div>
|
|
318
|
-
<div className="text-center">
|
|
319
|
-
<TextColorIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
320
|
-
<span className="text-xs text-white/60">32px</span>
|
|
321
|
-
</div>
|
|
322
|
-
<div className="text-center">
|
|
323
|
-
<TextColorIcon className="!mx-auto mb-2 h-12 w-12 text-blue-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-blue-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
|
-
<TextColorIcon className="h-4 w-4" />
|
|
337
|
-
|
|
338
|
-
// Medium (24px)
|
|
339
|
-
<TextColorIcon className="h-6 w-6" />
|
|
340
|
-
|
|
341
|
-
// Large (32px)
|
|
342
|
-
<TextColorIcon className="h-8 w-8" />
|
|
343
|
-
|
|
344
|
-
// Custom size
|
|
345
|
-
<TextColorIcon 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-blue-300">
|
|
362
|
-
Editor Theme 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
|
-
<TextColorIcon className="h-6 w-6 text-blue-400" />
|
|
367
|
-
<div>
|
|
368
|
-
<div className="text-sm font-medium text-white">
|
|
369
|
-
Primary
|
|
370
|
-
</div>
|
|
371
|
-
<div className="text-xs text-white/60">
|
|
372
|
-
text-blue-400
|
|
373
|
-
</div>
|
|
374
|
-
</div>
|
|
375
|
-
</div>
|
|
376
|
-
<div className="flex items-center gap-4">
|
|
377
|
-
<TextColorIcon className="h-6 w-6 text-purple-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-purple-400
|
|
384
|
-
</div>
|
|
385
|
-
</div>
|
|
386
|
-
</div>
|
|
387
|
-
<div className="flex items-center gap-4">
|
|
388
|
-
<TextColorIcon className="h-6 w-6 text-indigo-400" />
|
|
389
|
-
<div>
|
|
390
|
-
<div className="text-sm font-medium text-white">
|
|
391
|
-
Professional
|
|
392
|
-
</div>
|
|
393
|
-
<div className="text-xs text-white/60">
|
|
394
|
-
text-indigo-400
|
|
395
|
-
</div>
|
|
396
|
-
</div>
|
|
397
|
-
</div>
|
|
398
|
-
<div className="flex items-center gap-4">
|
|
399
|
-
<TextColorIcon className="h-6 w-6 text-slate-400" />
|
|
400
|
-
<div>
|
|
401
|
-
<div className="text-sm font-medium text-white">
|
|
402
|
-
Neutral
|
|
403
|
-
</div>
|
|
404
|
-
<div className="text-xs text-white/60">
|
|
405
|
-
text-slate-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-blue-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
|
-
<TextColorIcon className="h-6 w-6 text-blue-400" />
|
|
420
|
-
<TextColorIcon className="h-6 w-6 text-purple-500" />
|
|
421
|
-
|
|
422
|
-
// Using CSS custom properties
|
|
423
|
-
<TextColorIcon
|
|
424
|
-
className="h-6 w-6"
|
|
425
|
-
style={{ color: 'var(--color-primary)' }}
|
|
426
|
-
/>
|
|
427
|
-
|
|
428
|
-
// Direct stroke prop
|
|
429
|
-
<TextColorIcon
|
|
430
|
-
width={24}
|
|
431
|
-
height={24}
|
|
432
|
-
stroke="#3b82f6"
|
|
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
|
-
{/* Rich Text Toolbar */}
|
|
448
|
-
<div className="!space-y-4">
|
|
449
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
450
|
-
Rich Text Toolbar
|
|
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="flex items-center gap-2">
|
|
455
|
-
<button className="flex h-8 w-8 items-center justify-center rounded border border-white/10 bg-white/5 hover:bg-white/10">
|
|
456
|
-
<span className="text-sm font-bold text-white">
|
|
457
|
-
B
|
|
458
|
-
</span>
|
|
459
|
-
</button>
|
|
460
|
-
<button className="flex h-8 w-8 items-center justify-center rounded border border-white/10 bg-white/5 hover:bg-white/10">
|
|
461
|
-
<span className="text-sm text-white italic">I</span>
|
|
462
|
-
</button>
|
|
463
|
-
<button className="flex h-8 w-8 items-center justify-center rounded border border-blue-500/30 bg-blue-500/20 hover:bg-blue-500/30">
|
|
464
|
-
<TextColorIcon className="h-4 w-4 text-blue-400" />
|
|
465
|
-
</button>
|
|
466
|
-
<button className="flex h-8 w-8 items-center justify-center rounded border border-white/10 bg-white/5 hover:bg-white/10">
|
|
467
|
-
<span className="text-sm text-white">🎨</span>
|
|
468
|
-
</button>
|
|
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
|
-
{`<div className="flex items-center gap-2">
|
|
474
|
-
<button className="h-8 w-8 bg-white/5 border border-white/10 rounded">
|
|
475
|
-
<span className="font-bold">B</span>
|
|
476
|
-
</button>
|
|
477
|
-
<button className="h-8 w-8 bg-white/5 border border-white/10 rounded">
|
|
478
|
-
<span className="italic">I</span>
|
|
479
|
-
</button>
|
|
480
|
-
<button className="h-8 w-8 bg-blue-500/20 border border-blue-500/30 rounded">
|
|
481
|
-
<TextColorIcon className="h-4 w-4 text-blue-400" />
|
|
482
|
-
</button>
|
|
483
|
-
</div>`}
|
|
484
|
-
</pre>
|
|
485
|
-
</div>
|
|
486
|
-
</div>
|
|
487
|
-
</div>
|
|
488
|
-
|
|
489
|
-
{/* Color Picker Button */}
|
|
490
|
-
<div className="!space-y-4">
|
|
491
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
492
|
-
Color Picker Button
|
|
493
|
-
</h3>
|
|
494
|
-
<div className="!space-y-4">
|
|
495
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
496
|
-
<button className="flex items-center gap-3 rounded-lg border border-blue-500/20 bg-blue-500/10 px-4 py-2 hover:bg-blue-500/20">
|
|
497
|
-
<TextColorIcon className="h-5 w-5 text-blue-400" />
|
|
498
|
-
<span className="text-white">Text Color</span>
|
|
499
|
-
<div className="ml-auto h-4 w-6 rounded border border-white/20 bg-gradient-to-r from-red-500 via-blue-500 to-purple-500"></div>
|
|
500
|
-
</button>
|
|
501
|
-
</div>
|
|
502
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
503
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
504
|
-
{`<button className="flex items-center gap-3 bg-blue-500/10 border border-blue-500/20 px-4 py-2 rounded-lg">
|
|
505
|
-
<TextColorIcon className="h-5 w-5 text-blue-400" />
|
|
506
|
-
<span>Text Color</span>
|
|
507
|
-
<div className="ml-auto h-4 w-6 rounded border bg-gradient-to-r from-red-500 via-blue-500 to-purple-500" />
|
|
508
|
-
</button>`}
|
|
509
|
-
</pre>
|
|
510
|
-
</div>
|
|
511
|
-
</div>
|
|
512
|
-
</div>
|
|
513
|
-
|
|
514
|
-
{/* Dropdown Menu */}
|
|
515
|
-
<div className="!space-y-4">
|
|
516
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
517
|
-
Dropdown Menu
|
|
518
|
-
</h3>
|
|
519
|
-
<div className="!space-y-4">
|
|
520
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
521
|
-
<div className="!space-y-2">
|
|
522
|
-
<div className="flex items-center gap-3 rounded px-2 py-1 hover:bg-white/10">
|
|
523
|
-
<TextColorIcon className="h-4 w-4 text-red-400" />
|
|
524
|
-
<span className="text-white">Red</span>
|
|
525
|
-
</div>
|
|
526
|
-
<div className="flex items-center gap-3 rounded px-2 py-1 hover:bg-white/10">
|
|
527
|
-
<TextColorIcon className="h-4 w-4 text-blue-400" />
|
|
528
|
-
<span className="text-white">Blue</span>
|
|
529
|
-
</div>
|
|
530
|
-
<div className="flex items-center gap-3 rounded px-2 py-1 hover:bg-white/10">
|
|
531
|
-
<TextColorIcon className="h-4 w-4 text-green-400" />
|
|
532
|
-
<span className="text-white">Green</span>
|
|
533
|
-
</div>
|
|
534
|
-
<div className="flex items-center gap-3 rounded px-2 py-1 hover:bg-white/10">
|
|
535
|
-
<TextColorIcon className="h-4 w-4 text-purple-400" />
|
|
536
|
-
<span className="text-white">Purple</span>
|
|
537
|
-
</div>
|
|
538
|
-
</div>
|
|
539
|
-
</div>
|
|
540
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
541
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
542
|
-
{`<div className="space-y-2">
|
|
543
|
-
<div className="flex items-center gap-3 px-2 py-1 rounded hover:bg-white/10">
|
|
544
|
-
<TextColorIcon className="h-4 w-4 text-red-400" />
|
|
545
|
-
<span>Red</span>
|
|
546
|
-
</div>
|
|
547
|
-
<div className="flex items-center gap-3 px-2 py-1 rounded hover:bg-white/10">
|
|
548
|
-
<TextColorIcon className="h-4 w-4 text-blue-400" />
|
|
549
|
-
<span>Blue</span>
|
|
550
|
-
</div>
|
|
551
|
-
</div>`}
|
|
552
|
-
</pre>
|
|
553
|
-
</div>
|
|
554
|
-
</div>
|
|
555
|
-
</div>
|
|
556
|
-
|
|
557
|
-
{/* Design Tool Panel */}
|
|
558
|
-
<div className="!space-y-4">
|
|
559
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
560
|
-
Design Tool Panel
|
|
561
|
-
</h3>
|
|
562
|
-
<div className="!space-y-4">
|
|
563
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
564
|
-
<div className="!space-y-3">
|
|
565
|
-
<div className="flex items-center justify-between">
|
|
566
|
-
<div className="flex items-center gap-2">
|
|
567
|
-
<TextColorIcon className="h-4 w-4 text-white" />
|
|
568
|
-
<span className="text-sm font-medium text-white">
|
|
569
|
-
Text Color
|
|
570
|
-
</span>
|
|
571
|
-
</div>
|
|
572
|
-
<div className="h-6 w-8 rounded border border-white/20 bg-blue-500"></div>
|
|
573
|
-
</div>
|
|
574
|
-
<div className="flex items-center justify-between">
|
|
575
|
-
<div className="flex items-center gap-2">
|
|
576
|
-
<span className="h-4 w-4 rounded border border-white/20 bg-red-500"></span>
|
|
577
|
-
<span className="text-sm font-medium text-white">
|
|
578
|
-
Background
|
|
579
|
-
</span>
|
|
580
|
-
</div>
|
|
581
|
-
<div className="h-6 w-8 rounded border border-white/20 bg-red-500"></div>
|
|
582
|
-
</div>
|
|
583
|
-
</div>
|
|
584
|
-
</div>
|
|
585
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
586
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
587
|
-
{`<div className="space-y-3">
|
|
588
|
-
<div className="flex items-center justify-between">
|
|
589
|
-
<div className="flex items-center gap-2">
|
|
590
|
-
<TextColorIcon className="h-4 w-4" />
|
|
591
|
-
<span className="text-sm font-medium">Text Color</span>
|
|
592
|
-
</div>
|
|
593
|
-
<div className="h-6 w-8 rounded border bg-blue-500" />
|
|
594
|
-
</div>
|
|
595
|
-
</div>`}
|
|
596
|
-
</pre>
|
|
597
|
-
</div>
|
|
598
|
-
</div>
|
|
599
|
-
</div>
|
|
600
|
-
</div>
|
|
601
|
-
</div>
|
|
602
|
-
|
|
603
|
-
{/* Accessibility */}
|
|
604
|
-
<div className="!space-y-8">
|
|
605
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
606
|
-
Accessibility Features
|
|
607
|
-
</h2>
|
|
608
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
609
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
610
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
611
|
-
✅ Built-in Features
|
|
612
|
-
</h3>
|
|
613
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
614
|
-
<li className="!text-white/70">
|
|
615
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
616
|
-
</li>
|
|
617
|
-
<li className="!text-white/70">
|
|
618
|
-
Provides screen reader label "Text Color icon"
|
|
619
|
-
</li>
|
|
620
|
-
<li className="!text-white/70">
|
|
621
|
-
Supports keyboard navigation when interactive
|
|
622
|
-
</li>
|
|
623
|
-
<li className="!text-white/70">
|
|
624
|
-
Maintains proper color contrast ratios
|
|
625
|
-
</li>
|
|
626
|
-
<li className="!text-white/70">
|
|
627
|
-
Scales with user's font size preferences
|
|
628
|
-
</li>
|
|
629
|
-
</ul>
|
|
630
|
-
</div>
|
|
631
|
-
|
|
632
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
633
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
634
|
-
💡 Best Practices
|
|
635
|
-
</h3>
|
|
636
|
-
<ul className="!space-y-2 text-sm text-white/70">
|
|
637
|
-
<li className="!text-white/70">
|
|
638
|
-
Always pair with descriptive text or tooltips
|
|
639
|
-
</li>
|
|
640
|
-
<li className="!text-white/70">
|
|
641
|
-
Use consistent placement in editor toolbars
|
|
642
|
-
</li>
|
|
643
|
-
<li className="!text-white/70">
|
|
644
|
-
Ensure sufficient color contrast
|
|
645
|
-
</li>
|
|
646
|
-
<li className="!text-white/70">
|
|
647
|
-
Add focus states for interactive elements
|
|
648
|
-
</li>
|
|
649
|
-
<li className="!text-white/70">
|
|
650
|
-
Consider colorblind-friendly alternatives
|
|
651
|
-
</li>
|
|
652
|
-
</ul>
|
|
653
|
-
</div>
|
|
654
|
-
</div>
|
|
655
|
-
|
|
656
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
657
|
-
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
658
|
-
Custom Accessibility Label
|
|
659
|
-
</h3>
|
|
660
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
661
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
662
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
663
|
-
{`// Custom implementation with specific label
|
|
664
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
665
|
-
|
|
666
|
-
function CustomTextColorIcon({ label = "Text Color", ...props }) {
|
|
667
|
-
return (
|
|
668
|
-
<AccessibleIcon label={label}>
|
|
669
|
-
<TextColorIcon {...props} />
|
|
670
|
-
</AccessibleIcon>
|
|
671
|
-
)
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
// Usage with specific context
|
|
675
|
-
<CustomTextColorIcon
|
|
676
|
-
label="Change text color"
|
|
677
|
-
className="h-4 w-4 text-blue-400"
|
|
678
|
-
/>`}
|
|
679
|
-
</pre>
|
|
680
|
-
</div>
|
|
681
|
-
<div className="!space-y-4">
|
|
682
|
-
<p className="text-sm !text-white/70">
|
|
683
|
-
For specific contexts like editor toolbars, you can wrap
|
|
684
|
-
the TextColorIcon with a custom AccessibleIcon component
|
|
685
|
-
that provides more descriptive labels for better screen
|
|
686
|
-
reader support.
|
|
687
|
-
</p>
|
|
688
|
-
<div className="rounded-lg border border-blue-500/20 bg-blue-500/10 p-4">
|
|
689
|
-
<div className="flex items-center gap-2 text-sm text-blue-200">
|
|
690
|
-
<TextColorIcon className="h-4 w-4" />
|
|
691
|
-
<span>
|
|
692
|
-
This approach gives clear context for formatting
|
|
693
|
-
tools
|
|
694
|
-
</span>
|
|
695
|
-
</div>
|
|
696
|
-
</div>
|
|
697
|
-
</div>
|
|
698
|
-
</div>
|
|
699
|
-
</div>
|
|
700
|
-
</div>
|
|
701
|
-
|
|
702
|
-
{/* Related Icons */}
|
|
703
|
-
<div className="!space-y-8">
|
|
704
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
705
|
-
Related Icons
|
|
706
|
-
</h2>
|
|
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-purple-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">EditIcon</div>
|
|
725
|
-
<div className="text-xs text-white/60">Text editing</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-green-500/20">
|
|
730
|
-
<span className="text-2xl">🔧</span>
|
|
731
|
-
</div>
|
|
732
|
-
<div>
|
|
733
|
-
<div className="font-medium text-white">FormatIcon</div>
|
|
734
|
-
<div className="text-xs text-white/60">
|
|
735
|
-
Text formatting
|
|
736
|
-
</div>
|
|
737
|
-
</div>
|
|
738
|
-
</div>
|
|
739
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
740
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-indigo-500/20">
|
|
741
|
-
<span className="text-2xl">🎯</span>
|
|
742
|
-
</div>
|
|
743
|
-
<div>
|
|
744
|
-
<div className="font-medium text-white">
|
|
745
|
-
HighlightIcon
|
|
746
|
-
</div>
|
|
747
|
-
<div className="text-xs text-white/60">
|
|
748
|
-
Text highlight
|
|
749
|
-
</div>
|
|
750
|
-
</div>
|
|
751
|
-
</div>
|
|
752
|
-
</div>
|
|
753
|
-
</div>
|
|
754
|
-
</div>
|
|
755
|
-
|
|
756
|
-
{/* Footer */}
|
|
757
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
758
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
759
|
-
<div className="!space-y-4 text-center">
|
|
760
|
-
<p className="!text-white/60">
|
|
761
|
-
TextColorIcon is part of the Aural UI icon library, designed
|
|
762
|
-
specifically for rich text editors, design tools, and
|
|
763
|
-
formatting interfaces with accessibility in mind.
|
|
764
|
-
</p>
|
|
765
|
-
<p className="text-sm !text-white/40">
|
|
766
|
-
Perfect for WYSIWYG editors, design applications, and any
|
|
767
|
-
interface that needs clear text formatting controls. Follows
|
|
768
|
-
WCAG guidelines and provides intuitive visual metaphors.
|
|
769
|
-
</p>
|
|
770
|
-
</div>
|
|
771
|
-
</div>
|
|
772
|
-
</div>
|
|
773
|
-
</div>
|
|
774
|
-
</>
|
|
51
|
+
}`,
|
|
52
|
+
livePreview: (
|
|
53
|
+
<button>
|
|
54
|
+
<TextColorIcon className="text-fm-icon-active h-6 w-6" />
|
|
55
|
+
</button>
|
|
56
|
+
),
|
|
57
|
+
}}
|
|
58
|
+
relatedIcons={[
|
|
59
|
+
{
|
|
60
|
+
name: "CapitalALetterIcon",
|
|
61
|
+
description: "Capital letter / font icon",
|
|
62
|
+
icon: CapitalALetterIcon,
|
|
63
|
+
accentToken: "info",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "TextIndicatorIcon",
|
|
67
|
+
description: "Text style indicator icon",
|
|
68
|
+
icon: TextIndicatorIcon,
|
|
69
|
+
accentToken: "positive",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "PaintRollIcon",
|
|
73
|
+
description: "Apply theme / paint roll icon",
|
|
74
|
+
icon: PaintRollIcon,
|
|
75
|
+
accentToken: "warning",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "EditBigIcon",
|
|
79
|
+
description: "Edit / modify content icon",
|
|
80
|
+
icon: EditBigIcon,
|
|
81
|
+
accentToken: "negative",
|
|
82
|
+
},
|
|
83
|
+
]}
|
|
84
|
+
/>
|
|
775
85
|
),
|
|
776
86
|
},
|
|
777
87
|
},
|
|
778
88
|
tags: ["autodocs"],
|
|
779
89
|
argTypes: {
|
|
780
|
-
|
|
781
|
-
control:
|
|
782
|
-
description: "
|
|
90
|
+
className: {
|
|
91
|
+
control: "text",
|
|
92
|
+
description: "CSS classes including color token",
|
|
783
93
|
},
|
|
784
94
|
withAccessibility: {
|
|
785
95
|
control: "boolean",
|
|
786
|
-
description: "
|
|
787
|
-
},
|
|
788
|
-
height: {
|
|
789
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
790
|
-
description: "Height of the icon in pixels",
|
|
791
|
-
},
|
|
792
|
-
stroke: {
|
|
793
|
-
control: "color",
|
|
794
|
-
description: "Stroke color of the icon",
|
|
795
|
-
},
|
|
796
|
-
strokeWidth: {
|
|
797
|
-
control: { type: "range", min: 0.5, max: 4, step: 0.5 },
|
|
798
|
-
description: "Stroke width of the icon",
|
|
799
|
-
},
|
|
800
|
-
className: {
|
|
801
|
-
control: "text",
|
|
802
|
-
description: "CSS classes for styling",
|
|
96
|
+
description: "Wrap with accessibility label",
|
|
803
97
|
},
|
|
804
98
|
},
|
|
805
99
|
}
|
|
@@ -807,208 +101,80 @@ function CustomTextColorIcon({ label = "Text Color", ...props }) {
|
|
|
807
101
|
export default meta
|
|
808
102
|
type Story = StoryObj<typeof TextColorIcon>
|
|
809
103
|
|
|
810
|
-
// Story parameters for consistent dark theme
|
|
811
|
-
const storyParameters = {
|
|
812
|
-
backgrounds: {
|
|
813
|
-
default: "dark",
|
|
814
|
-
values: [
|
|
815
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
816
|
-
{ name: "darker", value: "#000000" },
|
|
817
|
-
],
|
|
818
|
-
},
|
|
819
|
-
}
|
|
820
|
-
|
|
821
104
|
export const Default: Story = {
|
|
822
105
|
args: {
|
|
823
|
-
|
|
824
|
-
height: 24,
|
|
825
|
-
className: "text-blue-400",
|
|
106
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
826
107
|
withAccessibility: true,
|
|
827
108
|
},
|
|
828
|
-
parameters: storyParameters,
|
|
829
109
|
render: (args) => (
|
|
830
|
-
<
|
|
110
|
+
<IconDefaultCanvas>
|
|
831
111
|
<TextColorIcon {...args} />
|
|
832
|
-
</
|
|
112
|
+
</IconDefaultCanvas>
|
|
833
113
|
),
|
|
834
114
|
}
|
|
835
115
|
|
|
836
116
|
export const SizeVariations: Story = {
|
|
837
|
-
|
|
838
|
-
...storyParameters,
|
|
839
|
-
docs: {
|
|
840
|
-
description: {
|
|
841
|
-
story:
|
|
842
|
-
"TextColorIcon in different sizes, from small toolbar buttons to large design tool interfaces.",
|
|
843
|
-
},
|
|
844
|
-
},
|
|
845
|
-
},
|
|
846
|
-
render: () => (
|
|
847
|
-
<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">
|
|
848
|
-
<div className="text-center">
|
|
849
|
-
<TextColorIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
850
|
-
<span className="text-xs text-white/60">12px</span>
|
|
851
|
-
</div>
|
|
852
|
-
<div className="text-center">
|
|
853
|
-
<TextColorIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
854
|
-
<span className="text-xs text-white/60">16px</span>
|
|
855
|
-
</div>
|
|
856
|
-
<div className="text-center">
|
|
857
|
-
<TextColorIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
858
|
-
<span className="text-xs text-white/60">20px</span>
|
|
859
|
-
</div>
|
|
860
|
-
<div className="text-center">
|
|
861
|
-
<TextColorIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
862
|
-
<span className="text-xs text-white/60">24px</span>
|
|
863
|
-
</div>
|
|
864
|
-
<div className="text-center">
|
|
865
|
-
<TextColorIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
866
|
-
<span className="text-xs text-white/60">32px</span>
|
|
867
|
-
</div>
|
|
868
|
-
<div className="text-center">
|
|
869
|
-
<TextColorIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
870
|
-
<span className="text-xs text-white/60">48px</span>
|
|
871
|
-
</div>
|
|
872
|
-
</div>
|
|
873
|
-
),
|
|
117
|
+
render: () => <IconSizeVariations icon={TextColorIcon} />,
|
|
874
118
|
}
|
|
875
119
|
|
|
876
120
|
export const ColorVariations: Story = {
|
|
877
|
-
|
|
878
|
-
...storyParameters,
|
|
879
|
-
docs: {
|
|
880
|
-
description: {
|
|
881
|
-
story:
|
|
882
|
-
"TextColorIcon in different colors suitable for various editor themes and design contexts.",
|
|
883
|
-
},
|
|
884
|
-
},
|
|
885
|
-
},
|
|
886
|
-
render: () => (
|
|
887
|
-
<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">
|
|
888
|
-
<div className="text-center">
|
|
889
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-blue-500/30 bg-blue-500/20">
|
|
890
|
-
<TextColorIcon className="h-8 w-8 text-blue-400" />
|
|
891
|
-
</div>
|
|
892
|
-
<div className="text-sm font-medium text-white">Primary</div>
|
|
893
|
-
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
894
|
-
</div>
|
|
895
|
-
<div className="text-center">
|
|
896
|
-
<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">
|
|
897
|
-
<TextColorIcon className="h-8 w-8 text-purple-400" />
|
|
898
|
-
</div>
|
|
899
|
-
<div className="text-sm font-medium text-white">Creative</div>
|
|
900
|
-
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
901
|
-
</div>
|
|
902
|
-
<div className="text-center">
|
|
903
|
-
<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">
|
|
904
|
-
<TextColorIcon className="h-8 w-8 text-indigo-400" />
|
|
905
|
-
</div>
|
|
906
|
-
<div className="text-sm font-medium text-white">Professional</div>
|
|
907
|
-
<div className="text-xs text-indigo-400">text-indigo-400</div>
|
|
908
|
-
</div>
|
|
909
|
-
<div className="text-center">
|
|
910
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-slate-500/30 bg-slate-500/20">
|
|
911
|
-
<TextColorIcon className="h-8 w-8 text-slate-400" />
|
|
912
|
-
</div>
|
|
913
|
-
<div className="text-sm font-medium text-white">Neutral</div>
|
|
914
|
-
<div className="text-xs text-slate-400">text-slate-400</div>
|
|
915
|
-
</div>
|
|
916
|
-
</div>
|
|
917
|
-
),
|
|
121
|
+
render: () => <IconColorVariations icon={TextColorIcon} />,
|
|
918
122
|
}
|
|
919
123
|
|
|
920
124
|
export const UsageExamples: Story = {
|
|
921
|
-
parameters: {
|
|
922
|
-
...storyParameters,
|
|
923
|
-
docs: {
|
|
924
|
-
description: {
|
|
925
|
-
story:
|
|
926
|
-
"Real-world usage examples showing TextColorIcon in different editor and design tool contexts.",
|
|
927
|
-
},
|
|
928
|
-
},
|
|
929
|
-
},
|
|
930
125
|
render: () => (
|
|
931
|
-
<
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
<button className="flex h-8 w-8 items-center justify-center rounded border border-white/10 bg-white/5 hover:bg-white/10">
|
|
947
|
-
<span className="text-sm text-white">🎨</span>
|
|
948
|
-
</button>
|
|
949
|
-
</div>
|
|
126
|
+
<IconUsageCanvas>
|
|
127
|
+
<IconUsageSection title="Text Formatting Toolbar">
|
|
128
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-1 rounded-xl border p-1">
|
|
129
|
+
{[CapitalALetterIcon, TextColorIcon, TextIndicatorIcon].map(
|
|
130
|
+
(Icon, i) => (
|
|
131
|
+
<button
|
|
132
|
+
key={i}
|
|
133
|
+
className={`flex h-8 w-8 items-center justify-center rounded-lg ${i === 1 ? "bg-fm-surface-primary" : ""}`}
|
|
134
|
+
>
|
|
135
|
+
<Icon
|
|
136
|
+
className={`h-4 w-4 ${i === 1 ? "text-fm-icon-active" : "text-fm-icon-inactive"}`}
|
|
137
|
+
/>
|
|
138
|
+
</button>
|
|
139
|
+
)
|
|
140
|
+
)}
|
|
950
141
|
</div>
|
|
951
|
-
</
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
<div className="ml-auto h-4 w-6 rounded border border-white/20 bg-gradient-to-r from-red-500 via-blue-500 to-purple-500"></div>
|
|
961
|
-
</button>
|
|
142
|
+
</IconUsageSection>
|
|
143
|
+
|
|
144
|
+
<IconUsageSection title="Color Picker Trigger">
|
|
145
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-3 py-2">
|
|
146
|
+
<TextColorIcon className="text-fm-icon-active h-4 w-4" />
|
|
147
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
148
|
+
Text color
|
|
149
|
+
</span>
|
|
150
|
+
<div className="bg-fm-icon-negative ml-auto h-5 w-5 rounded-full" />
|
|
962
151
|
</div>
|
|
963
|
-
</
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
</div>
|
|
976
|
-
<div className="flex items-center gap-3 rounded px-2 py-1 hover:bg-white/10">
|
|
977
|
-
<TextColorIcon className="h-4 w-4 text-blue-400" />
|
|
978
|
-
<span className="text-white">Blue</span>
|
|
979
|
-
</div>
|
|
980
|
-
<div className="flex items-center gap-3 rounded px-2 py-1 hover:bg-white/10">
|
|
981
|
-
<TextColorIcon className="h-4 w-4 text-green-400" />
|
|
982
|
-
<span className="text-white">Green</span>
|
|
983
|
-
</div>
|
|
984
|
-
</div>
|
|
152
|
+
</IconUsageSection>
|
|
153
|
+
|
|
154
|
+
<IconUsageSection title="Editor Quick Actions">
|
|
155
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-3 py-2">
|
|
156
|
+
{[TextColorIcon, PaintRollIcon, EditBigIcon].map((Icon, i) => (
|
|
157
|
+
<button
|
|
158
|
+
key={i}
|
|
159
|
+
className="flex h-8 w-8 items-center justify-center rounded-lg"
|
|
160
|
+
>
|
|
161
|
+
<Icon className="text-fm-icon-inactive h-4 w-4" />
|
|
162
|
+
</button>
|
|
163
|
+
))}
|
|
985
164
|
</div>
|
|
986
|
-
</
|
|
987
|
-
</
|
|
165
|
+
</IconUsageSection>
|
|
166
|
+
</IconUsageCanvas>
|
|
988
167
|
),
|
|
989
168
|
}
|
|
990
169
|
|
|
991
170
|
export const Playground: Story = {
|
|
992
|
-
parameters: {
|
|
993
|
-
...storyParameters,
|
|
994
|
-
docs: {
|
|
995
|
-
description: {
|
|
996
|
-
story:
|
|
997
|
-
"Interactive playground to experiment with different TextColorIcon configurations.",
|
|
998
|
-
},
|
|
999
|
-
},
|
|
1000
|
-
},
|
|
1001
171
|
args: {
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
className: "text-blue-400",
|
|
1005
|
-
strokeWidth: 1.5,
|
|
172
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
173
|
+
withAccessibility: true,
|
|
1006
174
|
},
|
|
1007
175
|
render: (args) => (
|
|
1008
|
-
<
|
|
1009
|
-
<
|
|
1010
|
-
|
|
1011
|
-
</div>
|
|
1012
|
-
</div>
|
|
176
|
+
<IconPlaygroundCanvas>
|
|
177
|
+
<TextColorIcon {...args} />
|
|
178
|
+
</IconPlaygroundCanvas>
|
|
1013
179
|
),
|
|
1014
180
|
}
|