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