aural-ui 3.0.7 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +271 -242
- package/dist/components/avatar/Avatar.stories.tsx +84 -70
- package/dist/components/button/Button.stories.tsx +7 -7
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +3 -3
- package/dist/components/char-count/CharCount.stories.tsx +9 -9
- package/dist/components/circular-loader/CircularLoader.stories.tsx +109 -93
- package/dist/components/collapsible/Collapsible.stories.tsx +1 -1
- package/dist/components/command/Command.stories.tsx +52 -38
- package/dist/components/dialog/Dialog.stories.tsx +89 -84
- package/dist/components/divider/Divider.stories.tsx +86 -60
- package/dist/components/dot-loader/DotLoader.stories.tsx +12 -12
- package/dist/components/drawer/Drawer.stories.tsx +74 -44
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +42 -32
- package/dist/components/helper-text/HelperText.stories.tsx +2 -2
- package/dist/components/hover-card/HoverCard.stories.tsx +211 -178
- package/dist/components/input/Input.stories.tsx +2 -2
- package/dist/components/label/Label.stories.tsx +10 -10
- package/dist/components/list/List.stories.tsx +58 -44
- package/dist/components/marquee/Marquee.stories.tsx +131 -113
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +47 -35
- package/dist/components/overlay/Overlay.stories.tsx +98 -92
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/popover/Popover.stories.tsx +132 -106
- package/dist/components/radio/Radio.stories.tsx +2 -2
- package/dist/components/resizable/Resizable.stories.tsx +186 -138
- package/dist/components/scroll-area/ScrollArea.stories.tsx +174 -120
- package/dist/components/search/Search.stories.tsx +81 -59
- package/dist/components/select/Select.stories.tsx +3 -1
- package/dist/components/sheet/Sheet.stories.tsx +68 -54
- package/dist/components/slider/Slider.stories.tsx +71 -47
- package/dist/components/stepper/Stepper.stories.tsx +16 -16
- package/dist/components/switch/Switch.stories.tsx +12 -12
- package/dist/components/table/Table.stories.tsx +8 -6
- package/dist/components/tabs/Tabs.stories.tsx +324 -268
- package/dist/components/textarea/TextArea.stories.tsx +1 -1
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +16 -10
- package/dist/components/toast/Toast.stories.tsx +51 -45
- package/dist/components/toggle/Toggle.stories.tsx +111 -89
- package/dist/components/tooltip/Tooltip.stories.tsx +160 -144
- package/dist/icons/Icons.stories.tsx +2 -2
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +287 -237
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +290 -248
- package/dist/icons/all-icons.tsx +97 -81
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +312 -270
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +294 -244
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +309 -279
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +294 -258
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +289 -255
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +288 -256
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +322 -288
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +340 -296
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +197 -177
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +390 -328
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +313 -277
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +367 -309
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +356 -308
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +280 -234
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +370 -326
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +300 -256
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +298 -262
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +294 -260
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +291 -259
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +286 -256
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +282 -256
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +292 -256
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +338 -290
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +167 -148
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +342 -296
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +342 -296
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +280 -238
- package/dist/icons/command-icon/CommandIcon.stories.tsx +328 -280
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +294 -256
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +285 -235
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +308 -266
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +271 -231
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +330 -278
- package/dist/icons/email-icon/EmailIcon.stories.tsx +303 -257
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +324 -286
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +317 -271
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +320 -272
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +322 -280
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +315 -277
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +199 -177
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +304 -264
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +311 -277
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +327 -287
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +314 -278
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +113 -98
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +274 -226
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +349 -303
- package/dist/icons/head-icon/HeadIcon.stories.tsx +286 -246
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +312 -268
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +246 -210
- package/dist/icons/image-icon/ImageIcon.stories.tsx +330 -284
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +326 -282
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +330 -294
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +288 -234
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +386 -330
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +305 -263
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +295 -259
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +296 -256
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +322 -282
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +399 -359
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +314 -272
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +238 -206
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +322 -276
- package/dist/icons/message-icon/MessageIcon.stories.tsx +192 -170
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +348 -304
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +191 -167
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +380 -326
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +345 -291
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +310 -266
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +311 -271
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +311 -271
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +309 -271
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +248 -210
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +310 -262
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +274 -236
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +324 -280
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +323 -281
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +288 -240
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +315 -273
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +278 -234
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +161 -151
- package/dist/icons/search-icon/SearchIcon.stories.tsx +324 -284
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +306 -264
- package/dist/icons/share-icon/ShareIcon.stories.tsx +314 -272
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +281 -235
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +309 -250
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +317 -279
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +315 -279
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +299 -253
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +185 -169
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +192 -168
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +212 -178
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +290 -244
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +286 -234
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +272 -230
- package/dist/icons/sun-icon/SunIcon.stories.tsx +262 -226
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +321 -279
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +332 -282
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +394 -342
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +338 -290
- package/dist/icons/tick-icon/TickIcon.stories.tsx +364 -315
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +293 -253
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +396 -338
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +291 -247
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +309 -271
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +336 -290
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +382 -334
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +349 -305
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +327 -295
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +336 -296
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +314 -274
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +311 -261
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -11,9 +11,9 @@ const meta: Meta<typeof TextIndicatorIcon> = {
|
|
|
11
11
|
backgrounds: {
|
|
12
12
|
default: "dark",
|
|
13
13
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
14
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
15
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
16
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
17
|
],
|
|
18
18
|
},
|
|
19
19
|
docs: {
|
|
@@ -40,59 +40,59 @@ const meta: Meta<typeof TextIndicatorIcon> = {
|
|
|
40
40
|
background: transparent ;
|
|
41
41
|
}
|
|
42
42
|
body {
|
|
43
|
-
background:
|
|
43
|
+
background: var(--color-fm-surface-primary) ;
|
|
44
44
|
}
|
|
45
45
|
#storybook-docs {
|
|
46
|
-
background:
|
|
46
|
+
background: var(--color-fm-surface-primary) ;
|
|
47
47
|
}
|
|
48
48
|
.sbdocs-preview {
|
|
49
49
|
background: transparent ;
|
|
50
50
|
border: none ;
|
|
51
51
|
}
|
|
52
52
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color:
|
|
53
|
+
color: var(--color-fm-icon-active) ;
|
|
54
54
|
}
|
|
55
55
|
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color:
|
|
56
|
+
color: var(--color-fm-secondary) ;
|
|
57
57
|
}
|
|
58
58
|
.sbdocs-code {
|
|
59
|
-
background:
|
|
60
|
-
color:
|
|
61
|
-
border: 1px solid
|
|
59
|
+
background: var(--color-fm-surface-secondary) ;
|
|
60
|
+
color: var(--color-fm-secondary-500) ;
|
|
61
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
62
62
|
}
|
|
63
63
|
.sbdocs-pre {
|
|
64
|
-
background:
|
|
65
|
-
border: 1px solid
|
|
64
|
+
background: var(--color-fm-surface-secondary) ;
|
|
65
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
66
66
|
}
|
|
67
67
|
.sbdocs-table {
|
|
68
|
-
background:
|
|
69
|
-
border: 1px solid
|
|
68
|
+
background: var(--color-fm-surface-secondary) ;
|
|
69
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
70
70
|
}
|
|
71
71
|
.sbdocs-table th {
|
|
72
|
-
background:
|
|
73
|
-
color:
|
|
74
|
-
border-bottom: 1px solid
|
|
72
|
+
background: var(--color-fm-surface-secondary) ;
|
|
73
|
+
color: var(--color-fm-icon-active) ;
|
|
74
|
+
border-bottom: 1px solid var(--color-fm-divider-secondary) ;
|
|
75
75
|
}
|
|
76
76
|
.sbdocs-table td {
|
|
77
|
-
color:
|
|
78
|
-
border-bottom: 1px solid
|
|
77
|
+
color: var(--color-fm-secondary) ;
|
|
78
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
|
|
79
79
|
}
|
|
80
80
|
`}
|
|
81
81
|
</style>
|
|
82
82
|
|
|
83
|
-
<div className="
|
|
83
|
+
<div className="bg-fm-surface-primary min-h-screen">
|
|
84
84
|
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b
|
|
86
|
-
<div className="absolute inset-0 bg-
|
|
85
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
86
|
+
<div className="from-fm-surface-tertiary/10 to-fm-surface-tertiary/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
87
87
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
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
|
|
90
|
-
<TextIndicatorIcon className="h-12 w-12
|
|
89
|
+
<div className="border-fm-divider-primary from-fm-surface-tertiary/20 to-fm-surface-tertiary/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
90
|
+
<TextIndicatorIcon className="text-fm-tertiary h-12 w-12" />
|
|
91
91
|
</div>
|
|
92
92
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
93
|
TextIndicatorIcon
|
|
94
94
|
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
95
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
96
96
|
A typography-focused icon representing text elements,
|
|
97
97
|
formatting indicators, and content markers. Perfect for text
|
|
98
98
|
editors, CMS interfaces, and document management systems
|
|
@@ -102,28 +102,28 @@ const meta: Meta<typeof TextIndicatorIcon> = {
|
|
|
102
102
|
{/* Stats */}
|
|
103
103
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
104
104
|
<div className="text-center">
|
|
105
|
-
<div className="text-3xl font-bold
|
|
105
|
+
<div className="text-fm-secondary text-3xl font-bold">
|
|
106
106
|
Typography
|
|
107
107
|
</div>
|
|
108
|
-
<div className="text-
|
|
108
|
+
<div className="text-fm-tertiary text-sm">
|
|
109
109
|
Text-focused design
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
|
-
<div className="h-8 w-px
|
|
112
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
113
113
|
<div className="text-center">
|
|
114
|
-
<div className="text-3xl font-bold
|
|
114
|
+
<div className="text-fm-secondary text-3xl font-bold">
|
|
115
115
|
Accessible
|
|
116
116
|
</div>
|
|
117
|
-
<div className="text-
|
|
117
|
+
<div className="text-fm-tertiary text-sm">
|
|
118
118
|
Screen reader ready
|
|
119
119
|
</div>
|
|
120
120
|
</div>
|
|
121
|
-
<div className="h-8 w-px
|
|
121
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
122
122
|
<div className="text-center">
|
|
123
|
-
<div className="text-3xl font-bold
|
|
123
|
+
<div className="text-fm-secondary text-3xl font-bold">
|
|
124
124
|
Versatile
|
|
125
125
|
</div>
|
|
126
|
-
<div className="text-
|
|
126
|
+
<div className="text-fm-tertiary text-sm">
|
|
127
127
|
Multiple contexts
|
|
128
128
|
</div>
|
|
129
129
|
</div>
|
|
@@ -136,16 +136,16 @@ const meta: Meta<typeof TextIndicatorIcon> = {
|
|
|
136
136
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
137
137
|
{/* Quick Usage */}
|
|
138
138
|
<div className="!space-y-8">
|
|
139
|
-
<h2 className="text-center text-3xl font-bold
|
|
139
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
140
140
|
Quick Start
|
|
141
141
|
</h2>
|
|
142
142
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
143
143
|
<div className="!space-y-4">
|
|
144
|
-
<h3 className="text-xl font-semibold
|
|
144
|
+
<h3 className="text-fm-secondary! text-xl font-semibold">
|
|
145
145
|
Basic Usage
|
|
146
146
|
</h3>
|
|
147
|
-
<div className="rounded-lg
|
|
148
|
-
<pre className="overflow-x-auto text-sm
|
|
147
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
148
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
149
149
|
{`import { TextIndicatorIcon } from "@icons/text-indicator-icon"
|
|
150
150
|
|
|
151
151
|
function MyEditor() {
|
|
@@ -161,13 +161,15 @@ function MyEditor() {
|
|
|
161
161
|
</div>
|
|
162
162
|
|
|
163
163
|
<div className="!space-y-4">
|
|
164
|
-
<h3 className="text-xl font-semibold
|
|
164
|
+
<h3 className="text-fm-secondary! text-xl font-semibold">
|
|
165
165
|
Live Preview
|
|
166
166
|
</h3>
|
|
167
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
168
|
-
<div className="flex items-center gap-3 rounded-lg border
|
|
169
|
-
<TextIndicatorIcon className="h-5 w-5
|
|
170
|
-
<span className="text-
|
|
167
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
168
|
+
<div className="border-fm-divider-secondary bg-fm-icon-inactive/10 flex items-center gap-3 rounded-lg border px-4 py-2">
|
|
169
|
+
<TextIndicatorIcon className="text-fm-tertiary h-5 w-5" />
|
|
170
|
+
<span className="text-fm-icon-active">
|
|
171
|
+
Text Content
|
|
172
|
+
</span>
|
|
171
173
|
</div>
|
|
172
174
|
</div>
|
|
173
175
|
</div>
|
|
@@ -176,108 +178,116 @@ function MyEditor() {
|
|
|
176
178
|
|
|
177
179
|
{/* Props Documentation */}
|
|
178
180
|
<div className="!space-y-8">
|
|
179
|
-
<h2 className="text-center text-3xl font-bold
|
|
181
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
180
182
|
Props & Configuration
|
|
181
183
|
</h2>
|
|
182
184
|
|
|
183
|
-
<div className="overflow-hidden rounded-lg border
|
|
184
|
-
<div className="bg-
|
|
185
|
-
<h3 className="text-xl font-semibold
|
|
185
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
186
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
187
|
+
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
188
|
+
Props
|
|
189
|
+
</h3>
|
|
186
190
|
</div>
|
|
187
191
|
<table className="!my-0 w-full">
|
|
188
|
-
<thead className="bg-
|
|
189
|
-
<tr className="border-
|
|
190
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
192
|
+
<thead className="bg-fm-surface-secondary">
|
|
193
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
194
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
191
195
|
Prop
|
|
192
196
|
</th>
|
|
193
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
197
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
194
198
|
Type
|
|
195
199
|
</th>
|
|
196
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
200
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
197
201
|
Default
|
|
198
202
|
</th>
|
|
199
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
203
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
200
204
|
Description
|
|
201
205
|
</th>
|
|
202
206
|
</tr>
|
|
203
207
|
</thead>
|
|
204
208
|
<tbody>
|
|
205
209
|
{" "}
|
|
206
|
-
<tr className="
|
|
207
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
210
|
+
<tr className="bg-fm-surface-secondary!">
|
|
211
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
208
212
|
withAccessibility
|
|
209
213
|
</td>
|
|
210
|
-
<td className="px-6 py-4 text-sm
|
|
214
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
211
215
|
boolean
|
|
212
216
|
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm
|
|
217
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
214
218
|
true
|
|
215
219
|
</td>
|
|
216
|
-
<td className="px-6 py-4 text-sm
|
|
220
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
217
221
|
Whether to wrap the icon with accessibility feature
|
|
218
222
|
</td>
|
|
219
223
|
</tr>
|
|
220
|
-
<tr className="border-
|
|
221
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
224
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
225
|
+
<td className="text-fm-secondary! px-6 py-4 font-mono text-sm">
|
|
222
226
|
height
|
|
223
227
|
</td>
|
|
224
|
-
<td className="px-6 py-4 text-sm
|
|
228
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
225
229
|
number | string
|
|
226
230
|
</td>
|
|
227
|
-
<td className="px-6 py-4 text-sm
|
|
228
|
-
|
|
231
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
232
|
+
18
|
|
233
|
+
</td>
|
|
234
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
229
235
|
Height of the icon in pixels
|
|
230
236
|
</td>
|
|
231
237
|
</tr>
|
|
232
|
-
<tr className="border-
|
|
233
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
238
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
239
|
+
<td className="text-fm-secondary! px-6 py-4 font-mono text-sm">
|
|
234
240
|
stroke
|
|
235
241
|
</td>
|
|
236
|
-
<td className="px-6 py-4 text-sm
|
|
242
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
237
243
|
string
|
|
238
244
|
</td>
|
|
239
|
-
<td className="px-6 py-4 text-sm
|
|
245
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
240
246
|
currentColor
|
|
241
247
|
</td>
|
|
242
|
-
<td className="px-6 py-4 text-sm
|
|
248
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
243
249
|
Stroke color of the icon
|
|
244
250
|
</td>
|
|
245
251
|
</tr>
|
|
246
|
-
<tr className="border-
|
|
247
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
252
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
253
|
+
<td className="text-fm-secondary! px-6 py-4 font-mono text-sm">
|
|
248
254
|
strokeWidth
|
|
249
255
|
</td>
|
|
250
|
-
<td className="px-6 py-4 text-sm
|
|
256
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
251
257
|
number | string
|
|
252
258
|
</td>
|
|
253
|
-
<td className="px-6 py-4 text-sm
|
|
259
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
254
260
|
1.5
|
|
255
261
|
</td>
|
|
256
|
-
<td className="px-6 py-4 text-sm
|
|
262
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
257
263
|
Stroke width of the icon
|
|
258
264
|
</td>
|
|
259
265
|
</tr>
|
|
260
|
-
<tr className="border-
|
|
261
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
266
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
267
|
+
<td className="text-fm-secondary! px-6 py-4 font-mono text-sm">
|
|
262
268
|
className
|
|
263
269
|
</td>
|
|
264
|
-
<td className="px-6 py-4 text-sm
|
|
270
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
265
271
|
string
|
|
266
272
|
</td>
|
|
267
|
-
<td className="px-6 py-4 text-sm
|
|
268
|
-
|
|
273
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
274
|
+
-
|
|
275
|
+
</td>
|
|
276
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
269
277
|
CSS classes for styling
|
|
270
278
|
</td>
|
|
271
279
|
</tr>
|
|
272
|
-
<tr className="
|
|
273
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
280
|
+
<tr className="bg-fm-surface-secondary!">
|
|
281
|
+
<td className="text-fm-secondary! px-6 py-4 font-mono text-sm">
|
|
274
282
|
...svgProps
|
|
275
283
|
</td>
|
|
276
|
-
<td className="px-6 py-4 text-sm
|
|
284
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
277
285
|
SVGProps
|
|
278
286
|
</td>
|
|
279
|
-
<td className="px-6 py-4 text-sm
|
|
280
|
-
|
|
287
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
288
|
+
-
|
|
289
|
+
</td>
|
|
290
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
281
291
|
All standard SVG element props
|
|
282
292
|
</td>
|
|
283
293
|
</tr>
|
|
@@ -288,50 +298,62 @@ function MyEditor() {
|
|
|
288
298
|
|
|
289
299
|
{/* Size Variations */}
|
|
290
300
|
<div className="!space-y-8">
|
|
291
|
-
<h2 className="text-center text-3xl font-bold
|
|
301
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
292
302
|
Size Variations
|
|
293
303
|
</h2>
|
|
294
|
-
<div className="rounded-lg border
|
|
304
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
295
305
|
<div className="!space-y-6">
|
|
296
306
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
297
307
|
<div className="!space-y-4">
|
|
298
|
-
<h3 className="text-lg font-semibold
|
|
308
|
+
<h3 className="text-fm-secondary! text-lg font-semibold">
|
|
299
309
|
Standard Sizes
|
|
300
310
|
</h3>
|
|
301
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
311
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
302
312
|
<div className="text-center">
|
|
303
|
-
<TextIndicatorIcon className="!mx-auto mb-2 h-3 w-3
|
|
304
|
-
<span className="text-
|
|
313
|
+
<TextIndicatorIcon className="text-fm-tertiary !mx-auto mb-2 h-3 w-3" />
|
|
314
|
+
<span className="text-fm-tertiary text-xs">
|
|
315
|
+
12px
|
|
316
|
+
</span>
|
|
305
317
|
</div>
|
|
306
318
|
<div className="text-center">
|
|
307
|
-
<TextIndicatorIcon className="!mx-auto mb-2 h-4 w-4
|
|
308
|
-
<span className="text-
|
|
319
|
+
<TextIndicatorIcon className="text-fm-tertiary !mx-auto mb-2 h-4 w-4" />
|
|
320
|
+
<span className="text-fm-tertiary text-xs">
|
|
321
|
+
16px
|
|
322
|
+
</span>
|
|
309
323
|
</div>
|
|
310
324
|
<div className="text-center">
|
|
311
|
-
<TextIndicatorIcon className="!mx-auto mb-2 h-5 w-5
|
|
312
|
-
<span className="text-
|
|
325
|
+
<TextIndicatorIcon className="text-fm-tertiary !mx-auto mb-2 h-5 w-5" />
|
|
326
|
+
<span className="text-fm-tertiary text-xs">
|
|
327
|
+
20px
|
|
328
|
+
</span>
|
|
313
329
|
</div>
|
|
314
330
|
<div className="text-center">
|
|
315
|
-
<TextIndicatorIcon className="!mx-auto mb-2 h-6 w-6
|
|
316
|
-
<span className="text-
|
|
331
|
+
<TextIndicatorIcon className="text-fm-tertiary !mx-auto mb-2 h-6 w-6" />
|
|
332
|
+
<span className="text-fm-tertiary text-xs">
|
|
333
|
+
24px
|
|
334
|
+
</span>
|
|
317
335
|
</div>
|
|
318
336
|
<div className="text-center">
|
|
319
|
-
<TextIndicatorIcon className="!mx-auto mb-2 h-8 w-8
|
|
320
|
-
<span className="text-
|
|
337
|
+
<TextIndicatorIcon className="text-fm-tertiary !mx-auto mb-2 h-8 w-8" />
|
|
338
|
+
<span className="text-fm-tertiary text-xs">
|
|
339
|
+
32px
|
|
340
|
+
</span>
|
|
321
341
|
</div>
|
|
322
342
|
<div className="text-center">
|
|
323
|
-
<TextIndicatorIcon className="!mx-auto mb-2 h-12 w-12
|
|
324
|
-
<span className="text-
|
|
343
|
+
<TextIndicatorIcon className="text-fm-tertiary !mx-auto mb-2 h-12 w-12" />
|
|
344
|
+
<span className="text-fm-tertiary text-xs">
|
|
345
|
+
48px
|
|
346
|
+
</span>
|
|
325
347
|
</div>
|
|
326
348
|
</div>
|
|
327
349
|
</div>
|
|
328
350
|
|
|
329
351
|
<div className="!space-y-4">
|
|
330
|
-
<h3 className="text-lg font-semibold
|
|
352
|
+
<h3 className="text-fm-secondary! text-lg font-semibold">
|
|
331
353
|
Code Example
|
|
332
354
|
</h3>
|
|
333
|
-
<div className="rounded-lg
|
|
334
|
-
<pre className="overflow-x-auto text-sm
|
|
355
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
356
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
335
357
|
{`// Small (16px)
|
|
336
358
|
<TextIndicatorIcon className="h-4 w-4" />
|
|
337
359
|
|
|
@@ -353,56 +375,56 @@ function MyEditor() {
|
|
|
353
375
|
|
|
354
376
|
{/* Color Variations */}
|
|
355
377
|
<div className="!space-y-8">
|
|
356
|
-
<h2 className="text-center text-3xl font-bold
|
|
378
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
357
379
|
Color Variations
|
|
358
380
|
</h2>
|
|
359
381
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
360
382
|
<div className="!space-y-4">
|
|
361
|
-
<h3 className="text-lg font-semibold
|
|
383
|
+
<h3 className="text-fm-secondary! text-lg font-semibold">
|
|
362
384
|
Typography Colors
|
|
363
385
|
</h3>
|
|
364
|
-
<div className="!space-y-4 rounded-lg border
|
|
386
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
365
387
|
<div className="flex items-center gap-4">
|
|
366
|
-
<TextIndicatorIcon className="h-6 w-6
|
|
388
|
+
<TextIndicatorIcon className="text-fm-tertiary h-6 w-6" />
|
|
367
389
|
<div>
|
|
368
|
-
<div className="text-sm font-medium
|
|
390
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
369
391
|
Primary Text
|
|
370
392
|
</div>
|
|
371
|
-
<div className="text-
|
|
372
|
-
text-
|
|
393
|
+
<div className="text-fm-tertiary text-xs">
|
|
394
|
+
text-fm-tertiary
|
|
373
395
|
</div>
|
|
374
396
|
</div>
|
|
375
397
|
</div>
|
|
376
398
|
<div className="flex items-center gap-4">
|
|
377
|
-
<TextIndicatorIcon className="h-6 w-6
|
|
399
|
+
<TextIndicatorIcon className="text-fm-placeholder h-6 w-6" />
|
|
378
400
|
<div>
|
|
379
|
-
<div className="text-sm font-medium
|
|
401
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
380
402
|
Secondary Text
|
|
381
403
|
</div>
|
|
382
|
-
<div className="text-
|
|
383
|
-
text-
|
|
404
|
+
<div className="text-fm-tertiary text-xs">
|
|
405
|
+
text-fm-placeholder
|
|
384
406
|
</div>
|
|
385
407
|
</div>
|
|
386
408
|
</div>
|
|
387
409
|
<div className="flex items-center gap-4">
|
|
388
|
-
<TextIndicatorIcon className="h-6 w-6
|
|
410
|
+
<TextIndicatorIcon className="text-fm-tertiary h-6 w-6" />
|
|
389
411
|
<div>
|
|
390
|
-
<div className="text-sm font-medium
|
|
412
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
391
413
|
Neutral
|
|
392
414
|
</div>
|
|
393
|
-
<div className="text-
|
|
394
|
-
text-
|
|
415
|
+
<div className="text-fm-tertiary text-xs">
|
|
416
|
+
text-fm-tertiary
|
|
395
417
|
</div>
|
|
396
418
|
</div>
|
|
397
419
|
</div>
|
|
398
420
|
<div className="flex items-center gap-4">
|
|
399
|
-
<TextIndicatorIcon className="h-6 w-6
|
|
421
|
+
<TextIndicatorIcon className="text-fm-icon-info h-6 w-6" />
|
|
400
422
|
<div>
|
|
401
|
-
<div className="text-sm font-medium
|
|
423
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
402
424
|
Interactive
|
|
403
425
|
</div>
|
|
404
|
-
<div className="text-
|
|
405
|
-
text-
|
|
426
|
+
<div className="text-fm-tertiary text-xs">
|
|
427
|
+
text-fm-icon-info
|
|
406
428
|
</div>
|
|
407
429
|
</div>
|
|
408
430
|
</div>
|
|
@@ -410,11 +432,11 @@ function MyEditor() {
|
|
|
410
432
|
</div>
|
|
411
433
|
|
|
412
434
|
<div className="!space-y-4">
|
|
413
|
-
<h3 className="text-lg font-semibold
|
|
435
|
+
<h3 className="text-fm-secondary! text-lg font-semibold">
|
|
414
436
|
Custom Colors
|
|
415
437
|
</h3>
|
|
416
|
-
<div className="rounded-lg
|
|
417
|
-
<pre className="overflow-x-auto text-sm
|
|
438
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
439
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
418
440
|
{`// Using Tailwind classes
|
|
419
441
|
<TextIndicatorIcon className="h-6 w-6 text-slate-400" />
|
|
420
442
|
<TextIndicatorIcon className="h-6 w-6 text-gray-500" />
|
|
@@ -439,33 +461,35 @@ function MyEditor() {
|
|
|
439
461
|
|
|
440
462
|
{/* Usage Examples */}
|
|
441
463
|
<div className="!space-y-8">
|
|
442
|
-
<h2 className="text-center text-3xl font-bold
|
|
464
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
443
465
|
Usage Examples
|
|
444
466
|
</h2>
|
|
445
467
|
|
|
446
468
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
447
469
|
{/* CMS Content Type */}
|
|
448
470
|
<div className="!space-y-4">
|
|
449
|
-
<h3 className="text-lg font-semibold
|
|
471
|
+
<h3 className="text-fm-secondary! text-lg font-semibold">
|
|
450
472
|
CMS Content Type
|
|
451
473
|
</h3>
|
|
452
474
|
<div className="!space-y-4">
|
|
453
|
-
<div className="rounded-lg border
|
|
454
|
-
<div className="flex items-center gap-3 rounded-lg border
|
|
455
|
-
<TextIndicatorIcon className="h-5 w-5
|
|
475
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
476
|
+
<div className="border-fm-divider-secondary bg-fm-icon-inactive/10 flex items-center gap-3 rounded-lg border px-3 py-2">
|
|
477
|
+
<TextIndicatorIcon className="text-fm-tertiary h-5 w-5" />
|
|
456
478
|
<div className="flex-1">
|
|
457
|
-
<div className="text-sm font-medium
|
|
479
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
458
480
|
Article Content
|
|
459
481
|
</div>
|
|
460
|
-
<div className="text-
|
|
482
|
+
<div className="text-fm-tertiary text-xs">
|
|
461
483
|
Text block • 1,245 words
|
|
462
484
|
</div>
|
|
463
485
|
</div>
|
|
464
|
-
<div className="text-
|
|
486
|
+
<div className="text-fm-placeholder text-xs">
|
|
487
|
+
Draft
|
|
488
|
+
</div>
|
|
465
489
|
</div>
|
|
466
490
|
</div>
|
|
467
|
-
<div className="rounded-lg
|
|
468
|
-
<pre className="overflow-x-auto text-sm
|
|
491
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
492
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
469
493
|
{`<div className="flex items-center gap-3 bg-slate-500/10 border border-slate-500/20 px-3 py-2 rounded-lg">
|
|
470
494
|
<TextIndicatorIcon className="h-5 w-5 text-slate-400" />
|
|
471
495
|
<div className="flex-1">
|
|
@@ -481,37 +505,39 @@ function MyEditor() {
|
|
|
481
505
|
|
|
482
506
|
{/* Text Editor Sidebar */}
|
|
483
507
|
<div className="!space-y-4">
|
|
484
|
-
<h3 className="text-lg font-semibold
|
|
508
|
+
<h3 className="text-fm-secondary! text-lg font-semibold">
|
|
485
509
|
Text Editor Sidebar
|
|
486
510
|
</h3>
|
|
487
511
|
<div className="!space-y-4">
|
|
488
|
-
<div className="rounded-lg border
|
|
512
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
489
513
|
<div className="!space-y-3">
|
|
490
|
-
<div className="text-xs font-medium tracking-wide
|
|
514
|
+
<div className="text-fm-tertiary text-xs font-medium tracking-wide uppercase">
|
|
491
515
|
Content Elements
|
|
492
516
|
</div>
|
|
493
517
|
<div className="!space-y-2">
|
|
494
|
-
<div className="flex items-center gap-2 rounded px-2 py-1
|
|
495
|
-
<TextIndicatorIcon className="h-4 w-4
|
|
496
|
-
<span className="text-
|
|
518
|
+
<div className="hover:bg-fm-surface-secondary flex items-center gap-2 rounded px-2 py-1">
|
|
519
|
+
<TextIndicatorIcon className="text-fm-tertiary h-4 w-4" />
|
|
520
|
+
<span className="text-fm-icon-active text-sm">
|
|
497
521
|
Paragraph
|
|
498
522
|
</span>
|
|
499
523
|
</div>
|
|
500
|
-
<div className="flex items-center gap-2 rounded px-2 py-1
|
|
501
|
-
<TextIndicatorIcon className="h-4 w-4
|
|
502
|
-
<span className="text-
|
|
524
|
+
<div className="hover:bg-fm-surface-secondary flex items-center gap-2 rounded px-2 py-1">
|
|
525
|
+
<TextIndicatorIcon className="text-fm-tertiary h-4 w-4" />
|
|
526
|
+
<span className="text-fm-icon-active text-sm">
|
|
503
527
|
Heading
|
|
504
528
|
</span>
|
|
505
529
|
</div>
|
|
506
|
-
<div className="flex items-center gap-2 rounded px-2 py-1
|
|
507
|
-
<TextIndicatorIcon className="h-4 w-4
|
|
508
|
-
<span className="text-
|
|
530
|
+
<div className="hover:bg-fm-surface-secondary flex items-center gap-2 rounded px-2 py-1">
|
|
531
|
+
<TextIndicatorIcon className="text-fm-tertiary h-4 w-4" />
|
|
532
|
+
<span className="text-fm-icon-active text-sm">
|
|
533
|
+
Quote
|
|
534
|
+
</span>
|
|
509
535
|
</div>
|
|
510
536
|
</div>
|
|
511
537
|
</div>
|
|
512
538
|
</div>
|
|
513
|
-
<div className="rounded-lg
|
|
514
|
-
<pre className="overflow-x-auto text-sm
|
|
539
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
540
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
515
541
|
{`<div className="space-y-2">
|
|
516
542
|
<div className="flex items-center gap-2 px-2 py-1 rounded hover:bg-white/10">
|
|
517
543
|
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
@@ -529,37 +555,37 @@ function MyEditor() {
|
|
|
529
555
|
|
|
530
556
|
{/* Document Structure */}
|
|
531
557
|
<div className="!space-y-4">
|
|
532
|
-
<h3 className="text-lg font-semibold
|
|
558
|
+
<h3 className="text-fm-secondary! text-lg font-semibold">
|
|
533
559
|
Document Structure
|
|
534
560
|
</h3>
|
|
535
561
|
<div className="!space-y-4">
|
|
536
|
-
<div className="rounded-lg border
|
|
562
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
537
563
|
<div className="!space-y-2 text-sm">
|
|
538
|
-
<div className="flex items-center gap-2
|
|
539
|
-
<TextIndicatorIcon className="h-4 w-4
|
|
564
|
+
<div className="text-fm-icon-active flex items-center gap-2">
|
|
565
|
+
<TextIndicatorIcon className="text-fm-tertiary h-4 w-4" />
|
|
540
566
|
<span className="font-medium">1. Introduction</span>
|
|
541
|
-
<span className="text-
|
|
567
|
+
<span className="text-fm-tertiary text-xs">
|
|
542
568
|
• 156 words
|
|
543
569
|
</span>
|
|
544
570
|
</div>
|
|
545
|
-
<div className="ml-6 flex items-center gap-2
|
|
546
|
-
<TextIndicatorIcon className="h-3 w-3
|
|
571
|
+
<div className="text-fm-icon-active/80 ml-6 flex items-center gap-2">
|
|
572
|
+
<TextIndicatorIcon className="text-fm-icon-inactive h-3 w-3" />
|
|
547
573
|
<span>1.1 Overview</span>
|
|
548
|
-
<span className="text-
|
|
574
|
+
<span className="text-fm-placeholder text-xs">
|
|
549
575
|
• 89 words
|
|
550
576
|
</span>
|
|
551
577
|
</div>
|
|
552
|
-
<div className="ml-6 flex items-center gap-2
|
|
553
|
-
<TextIndicatorIcon className="h-3 w-3
|
|
578
|
+
<div className="text-fm-icon-active/80 ml-6 flex items-center gap-2">
|
|
579
|
+
<TextIndicatorIcon className="text-fm-icon-inactive h-3 w-3" />
|
|
554
580
|
<span>1.2 Objectives</span>
|
|
555
|
-
<span className="text-
|
|
581
|
+
<span className="text-fm-placeholder text-xs">
|
|
556
582
|
• 67 words
|
|
557
583
|
</span>
|
|
558
584
|
</div>
|
|
559
585
|
</div>
|
|
560
586
|
</div>
|
|
561
|
-
<div className="rounded-lg
|
|
562
|
-
<pre className="overflow-x-auto text-sm
|
|
587
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
588
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
563
589
|
{`<div className="space-y-2 text-sm">
|
|
564
590
|
<div className="flex items-center gap-2">
|
|
565
591
|
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
@@ -578,36 +604,38 @@ function MyEditor() {
|
|
|
578
604
|
|
|
579
605
|
{/* Text Statistics */}
|
|
580
606
|
<div className="!space-y-4">
|
|
581
|
-
<h3 className="text-lg font-semibold
|
|
607
|
+
<h3 className="text-fm-secondary! text-lg font-semibold">
|
|
582
608
|
Text Statistics Panel
|
|
583
609
|
</h3>
|
|
584
610
|
<div className="!space-y-4">
|
|
585
|
-
<div className="rounded-lg border
|
|
611
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
586
612
|
<div className="grid grid-cols-2 gap-4">
|
|
587
613
|
<div className="flex items-center gap-2">
|
|
588
|
-
<TextIndicatorIcon className="h-4 w-4
|
|
614
|
+
<TextIndicatorIcon className="text-fm-tertiary h-4 w-4" />
|
|
589
615
|
<div>
|
|
590
|
-
<div className="text-lg font-bold
|
|
616
|
+
<div className="text-fm-icon-active text-lg font-bold">
|
|
591
617
|
1,234
|
|
592
618
|
</div>
|
|
593
|
-
<div className="text-
|
|
619
|
+
<div className="text-fm-tertiary text-xs">
|
|
620
|
+
Words
|
|
621
|
+
</div>
|
|
594
622
|
</div>
|
|
595
623
|
</div>
|
|
596
624
|
<div className="flex items-center gap-2">
|
|
597
|
-
<TextIndicatorIcon className="h-4 w-4
|
|
625
|
+
<TextIndicatorIcon className="text-fm-tertiary h-4 w-4" />
|
|
598
626
|
<div>
|
|
599
|
-
<div className="text-lg font-bold
|
|
627
|
+
<div className="text-fm-icon-active text-lg font-bold">
|
|
600
628
|
45
|
|
601
629
|
</div>
|
|
602
|
-
<div className="text-
|
|
630
|
+
<div className="text-fm-tertiary text-xs">
|
|
603
631
|
Paragraphs
|
|
604
632
|
</div>
|
|
605
633
|
</div>
|
|
606
634
|
</div>
|
|
607
635
|
</div>
|
|
608
636
|
</div>
|
|
609
|
-
<div className="rounded-lg
|
|
610
|
-
<pre className="overflow-x-auto text-sm
|
|
637
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
638
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
611
639
|
{`<div className="grid grid-cols-2 gap-4">
|
|
612
640
|
<div className="flex items-center gap-2">
|
|
613
641
|
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
@@ -626,64 +654,64 @@ function MyEditor() {
|
|
|
626
654
|
|
|
627
655
|
{/* Accessibility */}
|
|
628
656
|
<div className="!space-y-8">
|
|
629
|
-
<h2 className="text-center text-3xl font-bold
|
|
657
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
630
658
|
Accessibility Features
|
|
631
659
|
</h2>
|
|
632
660
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
633
|
-
<div className="!space-y-4 rounded-lg border
|
|
634
|
-
<h3 className="text-lg font-semibold
|
|
661
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
662
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
635
663
|
✅ Built-in Features
|
|
636
664
|
</h3>
|
|
637
|
-
<ul className="!space-y-2 text-sm
|
|
638
|
-
<li className="
|
|
665
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
666
|
+
<li className="text-fm-secondary!">
|
|
639
667
|
Uses Radix UI AccessibleIcon wrapper
|
|
640
668
|
</li>
|
|
641
|
-
<li className="
|
|
669
|
+
<li className="text-fm-secondary!">
|
|
642
670
|
Provides screen reader label "Text Indicator Icon"
|
|
643
671
|
</li>
|
|
644
|
-
<li className="
|
|
672
|
+
<li className="text-fm-secondary!">
|
|
645
673
|
Supports keyboard navigation when interactive
|
|
646
674
|
</li>
|
|
647
|
-
<li className="
|
|
675
|
+
<li className="text-fm-secondary!">
|
|
648
676
|
Maintains proper color contrast ratios
|
|
649
677
|
</li>
|
|
650
|
-
<li className="
|
|
678
|
+
<li className="text-fm-secondary!">
|
|
651
679
|
Scales with user's font size preferences
|
|
652
680
|
</li>
|
|
653
681
|
</ul>
|
|
654
682
|
</div>
|
|
655
683
|
|
|
656
|
-
<div className="!space-y-4 rounded-lg border
|
|
657
|
-
<h3 className="text-lg font-semibold
|
|
684
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
685
|
+
<h3 className="text-fm-secondary! text-lg font-semibold">
|
|
658
686
|
💡 Best Practices
|
|
659
687
|
</h3>
|
|
660
|
-
<ul className="!space-y-2 text-sm
|
|
661
|
-
<li className="
|
|
688
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
689
|
+
<li className="text-fm-secondary!">
|
|
662
690
|
Always pair with descriptive text or labels
|
|
663
691
|
</li>
|
|
664
|
-
<li className="
|
|
692
|
+
<li className="text-fm-secondary!">
|
|
665
693
|
Use consistent placement in text interfaces
|
|
666
694
|
</li>
|
|
667
|
-
<li className="
|
|
695
|
+
<li className="text-fm-secondary!">
|
|
668
696
|
Ensure sufficient color contrast for readability
|
|
669
697
|
</li>
|
|
670
|
-
<li className="
|
|
698
|
+
<li className="text-fm-secondary!">
|
|
671
699
|
Add tooltips for complex text operations
|
|
672
700
|
</li>
|
|
673
|
-
<li className="
|
|
701
|
+
<li className="text-fm-secondary!">
|
|
674
702
|
Consider text size preferences for clarity
|
|
675
703
|
</li>
|
|
676
704
|
</ul>
|
|
677
705
|
</div>
|
|
678
706
|
</div>
|
|
679
707
|
|
|
680
|
-
<div className="rounded-lg border
|
|
681
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
708
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
709
|
+
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
682
710
|
Custom Accessibility Label
|
|
683
711
|
</h3>
|
|
684
712
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
685
|
-
<div className="rounded-lg
|
|
686
|
-
<pre className="overflow-x-auto text-sm
|
|
713
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
714
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
687
715
|
{`// Custom implementation with specific label
|
|
688
716
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
689
717
|
|
|
@@ -703,14 +731,14 @@ function CustomTextIndicatorIcon({ label = "Text Indicator", ...props }) {
|
|
|
703
731
|
</pre>
|
|
704
732
|
</div>
|
|
705
733
|
<div className="!space-y-4">
|
|
706
|
-
<p className="text-
|
|
734
|
+
<p className="text-fm-secondary! text-sm">
|
|
707
735
|
For specific contexts like CMS interfaces or text
|
|
708
736
|
editors, you can wrap the TextIndicatorIcon with a
|
|
709
737
|
custom AccessibleIcon component that provides more
|
|
710
738
|
descriptive labels for better screen reader support.
|
|
711
739
|
</p>
|
|
712
|
-
<div className="
|
|
713
|
-
<div className="flex items-center gap-2 text-sm
|
|
740
|
+
<div className="border-fm-divider-secondary bg-fm-icon-inactive/10 rounded-lg border p-4">
|
|
741
|
+
<div className="text-fm-secondary flex items-center gap-2 text-sm">
|
|
714
742
|
<TextIndicatorIcon className="h-4 w-4" />
|
|
715
743
|
<span>
|
|
716
744
|
This approach gives clear context for text content
|
|
@@ -724,46 +752,56 @@ function CustomTextIndicatorIcon({ label = "Text Indicator", ...props }) {
|
|
|
724
752
|
|
|
725
753
|
{/* Related Icons */}
|
|
726
754
|
<div className="!space-y-8">
|
|
727
|
-
<h2 className="text-center text-3xl font-bold
|
|
755
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
728
756
|
Related Icons
|
|
729
757
|
</h2>
|
|
730
758
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
731
|
-
<div className="!space-y-3 rounded-lg border
|
|
732
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
759
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
760
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
733
761
|
<span className="text-2xl">📝</span>
|
|
734
762
|
</div>
|
|
735
763
|
<div>
|
|
736
|
-
<div className="font-medium
|
|
737
|
-
|
|
764
|
+
<div className="text-fm-icon-active font-medium">
|
|
765
|
+
EditIcon
|
|
766
|
+
</div>
|
|
767
|
+
<div className="text-fm-tertiary text-xs">
|
|
768
|
+
Text editing
|
|
769
|
+
</div>
|
|
738
770
|
</div>
|
|
739
771
|
</div>
|
|
740
|
-
<div className="!space-y-3 rounded-lg border
|
|
741
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
772
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
773
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
742
774
|
<span className="text-2xl">📄</span>
|
|
743
775
|
</div>
|
|
744
776
|
<div>
|
|
745
|
-
<div className="font-medium
|
|
746
|
-
|
|
777
|
+
<div className="text-fm-icon-active font-medium">
|
|
778
|
+
DocumentIcon
|
|
779
|
+
</div>
|
|
780
|
+
<div className="text-fm-tertiary text-xs">
|
|
747
781
|
Document management
|
|
748
782
|
</div>
|
|
749
783
|
</div>
|
|
750
784
|
</div>
|
|
751
|
-
<div className="!space-y-3 rounded-lg border
|
|
752
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
785
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
786
|
+
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
753
787
|
<span className="text-2xl">🔤</span>
|
|
754
788
|
</div>
|
|
755
789
|
<div>
|
|
756
|
-
<div className="font-medium
|
|
757
|
-
|
|
790
|
+
<div className="text-fm-icon-active font-medium">
|
|
791
|
+
TypeIcon
|
|
792
|
+
</div>
|
|
793
|
+
<div className="text-fm-tertiary text-xs">Typography</div>
|
|
758
794
|
</div>
|
|
759
795
|
</div>
|
|
760
|
-
<div className="!space-y-3 rounded-lg border
|
|
761
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
796
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
797
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
762
798
|
<span className="text-2xl">📋</span>
|
|
763
799
|
</div>
|
|
764
800
|
<div>
|
|
765
|
-
<div className="font-medium
|
|
766
|
-
|
|
801
|
+
<div className="text-fm-icon-active font-medium">
|
|
802
|
+
ContentIcon
|
|
803
|
+
</div>
|
|
804
|
+
<div className="text-fm-tertiary text-xs">
|
|
767
805
|
Content blocks
|
|
768
806
|
</div>
|
|
769
807
|
</div>
|
|
@@ -773,15 +811,15 @@ function CustomTextIndicatorIcon({ label = "Text Indicator", ...props }) {
|
|
|
773
811
|
</div>
|
|
774
812
|
|
|
775
813
|
{/* Footer */}
|
|
776
|
-
<div className="border-
|
|
814
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
777
815
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
778
816
|
<div className="!space-y-4 text-center">
|
|
779
|
-
<p className="
|
|
817
|
+
<p className="text-fm-tertiary!">
|
|
780
818
|
TextIndicatorIcon is part of the Aural UI icon library,
|
|
781
819
|
designed specifically for text-focused interfaces, CMS
|
|
782
820
|
systems, and document management with clarity in mind.
|
|
783
821
|
</p>
|
|
784
|
-
<p className="text-
|
|
822
|
+
<p className="text-fm-placeholder! text-sm">
|
|
785
823
|
Perfect for text editors, content management systems,
|
|
786
824
|
document structures, and any interface that needs clear text
|
|
787
825
|
content identification. Follows typography best practices
|
|
@@ -832,8 +870,8 @@ const storyParameters = {
|
|
|
832
870
|
backgrounds: {
|
|
833
871
|
default: "dark",
|
|
834
872
|
values: [
|
|
835
|
-
{ name: "dark", value: "
|
|
836
|
-
{ name: "darker", value: "
|
|
873
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
874
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
837
875
|
],
|
|
838
876
|
},
|
|
839
877
|
}
|
|
@@ -842,12 +880,12 @@ export const Default: Story = {
|
|
|
842
880
|
args: {
|
|
843
881
|
width: 24,
|
|
844
882
|
height: 24,
|
|
845
|
-
className: "text-
|
|
883
|
+
className: "text-fm-tertiary",
|
|
846
884
|
withAccessibility: true,
|
|
847
885
|
},
|
|
848
886
|
parameters: storyParameters,
|
|
849
887
|
render: (args) => (
|
|
850
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
888
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-32 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
851
889
|
<TextIndicatorIcon {...args} />
|
|
852
890
|
</div>
|
|
853
891
|
),
|
|
@@ -864,30 +902,30 @@ export const SizeVariations: Story = {
|
|
|
864
902
|
},
|
|
865
903
|
},
|
|
866
904
|
render: () => (
|
|
867
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
905
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
|
|
868
906
|
<div className="text-center">
|
|
869
|
-
<TextIndicatorIcon className="!mx-auto mb-2 h-3 w-3
|
|
870
|
-
<span className="text-
|
|
907
|
+
<TextIndicatorIcon className="text-fm-tertiary !mx-auto mb-2 h-3 w-3" />
|
|
908
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
871
909
|
</div>
|
|
872
910
|
<div className="text-center">
|
|
873
|
-
<TextIndicatorIcon className="!mx-auto mb-2 h-4 w-4
|
|
874
|
-
<span className="text-
|
|
911
|
+
<TextIndicatorIcon className="text-fm-tertiary !mx-auto mb-2 h-4 w-4" />
|
|
912
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
875
913
|
</div>
|
|
876
914
|
<div className="text-center">
|
|
877
|
-
<TextIndicatorIcon className="!mx-auto mb-2 h-5 w-5
|
|
878
|
-
<span className="text-
|
|
915
|
+
<TextIndicatorIcon className="text-fm-tertiary !mx-auto mb-2 h-5 w-5" />
|
|
916
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
879
917
|
</div>
|
|
880
918
|
<div className="text-center">
|
|
881
|
-
<TextIndicatorIcon className="!mx-auto mb-2 h-6 w-6
|
|
882
|
-
<span className="text-
|
|
919
|
+
<TextIndicatorIcon className="text-fm-tertiary !mx-auto mb-2 h-6 w-6" />
|
|
920
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
883
921
|
</div>
|
|
884
922
|
<div className="text-center">
|
|
885
|
-
<TextIndicatorIcon className="!mx-auto mb-2 h-8 w-8
|
|
886
|
-
<span className="text-
|
|
923
|
+
<TextIndicatorIcon className="text-fm-tertiary !mx-auto mb-2 h-8 w-8" />
|
|
924
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
887
925
|
</div>
|
|
888
926
|
<div className="text-center">
|
|
889
|
-
<TextIndicatorIcon className="!mx-auto mb-2 h-12 w-12
|
|
890
|
-
<span className="text-
|
|
927
|
+
<TextIndicatorIcon className="text-fm-tertiary !mx-auto mb-2 h-12 w-12" />
|
|
928
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
891
929
|
</div>
|
|
892
930
|
</div>
|
|
893
931
|
),
|
|
@@ -904,34 +942,40 @@ export const ColorVariations: Story = {
|
|
|
904
942
|
},
|
|
905
943
|
},
|
|
906
944
|
render: () => (
|
|
907
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
945
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-linear-to-br p-8 md:grid-cols-4">
|
|
908
946
|
<div className="text-center">
|
|
909
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
910
|
-
<TextIndicatorIcon className="h-8 w-8
|
|
947
|
+
<div className="border-fm-divider-primary bg-fm-icon-inactive/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
948
|
+
<TextIndicatorIcon className="text-fm-tertiary h-8 w-8" />
|
|
949
|
+
</div>
|
|
950
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
951
|
+
Primary Text
|
|
911
952
|
</div>
|
|
912
|
-
<div className="text-
|
|
913
|
-
<div className="text-xs text-slate-400">text-slate-400</div>
|
|
953
|
+
<div className="text-fm-tertiary text-xs">text-fm-tertiary</div>
|
|
914
954
|
</div>
|
|
915
955
|
<div className="text-center">
|
|
916
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
917
|
-
<TextIndicatorIcon className="h-8 w-8
|
|
956
|
+
<div className="border-fm-divider-primary bg-fm-surface-tertiary/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
957
|
+
<TextIndicatorIcon className="text-fm-placeholder h-8 w-8" />
|
|
918
958
|
</div>
|
|
919
|
-
<div className="text-sm font-medium
|
|
920
|
-
|
|
959
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
960
|
+
Secondary Text
|
|
961
|
+
</div>
|
|
962
|
+
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
921
963
|
</div>
|
|
922
964
|
<div className="text-center">
|
|
923
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
924
|
-
<TextIndicatorIcon className="h-8 w-8
|
|
965
|
+
<div className="border-fm-divider-primary bg-fm-surface-secondary/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
966
|
+
<TextIndicatorIcon className="text-fm-tertiary h-8 w-8" />
|
|
925
967
|
</div>
|
|
926
|
-
<div className="text-sm font-medium
|
|
927
|
-
<div className="text-
|
|
968
|
+
<div className="text-fm-icon-active text-sm font-medium">Neutral</div>
|
|
969
|
+
<div className="text-fm-tertiary text-xs">text-fm-tertiary</div>
|
|
928
970
|
</div>
|
|
929
971
|
<div className="text-center">
|
|
930
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
931
|
-
<TextIndicatorIcon className="h-8 w-8
|
|
972
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
973
|
+
<TextIndicatorIcon className="text-fm-icon-info h-8 w-8" />
|
|
974
|
+
</div>
|
|
975
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
976
|
+
Interactive
|
|
932
977
|
</div>
|
|
933
|
-
<div className="text-
|
|
934
|
-
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
978
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
935
979
|
</div>
|
|
936
980
|
</div>
|
|
937
981
|
),
|
|
@@ -948,46 +992,50 @@ export const UsageExamples: Story = {
|
|
|
948
992
|
},
|
|
949
993
|
},
|
|
950
994
|
render: () => (
|
|
951
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
995
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
952
996
|
{/* CMS Content Type */}
|
|
953
997
|
<div className="!space-y-2">
|
|
954
|
-
<h3 className="text-sm font-medium
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
998
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
999
|
+
CMS Content Type
|
|
1000
|
+
</h3>
|
|
1001
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
1002
|
+
<div className="border-fm-divider-secondary bg-fm-icon-inactive/10 flex items-center gap-3 rounded-lg border px-3 py-2">
|
|
1003
|
+
<TextIndicatorIcon className="text-fm-tertiary h-5 w-5" />
|
|
958
1004
|
<div className="flex-1">
|
|
959
|
-
<div className="text-sm font-medium
|
|
1005
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
960
1006
|
Article Content
|
|
961
1007
|
</div>
|
|
962
|
-
<div className="text-
|
|
1008
|
+
<div className="text-fm-tertiary text-xs">
|
|
963
1009
|
Text block • 1,245 words
|
|
964
1010
|
</div>
|
|
965
1011
|
</div>
|
|
966
|
-
<div className="text-
|
|
1012
|
+
<div className="text-fm-placeholder text-xs">Draft</div>
|
|
967
1013
|
</div>
|
|
968
1014
|
</div>
|
|
969
1015
|
</div>
|
|
970
1016
|
|
|
971
1017
|
{/* Text Editor Sidebar */}
|
|
972
1018
|
<div className="!space-y-2">
|
|
973
|
-
<h3 className="text-sm font-medium
|
|
974
|
-
|
|
1019
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1020
|
+
Text Editor Sidebar
|
|
1021
|
+
</h3>
|
|
1022
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
975
1023
|
<div className="!space-y-3">
|
|
976
|
-
<div className="text-xs font-medium tracking-wide
|
|
1024
|
+
<div className="text-fm-tertiary text-xs font-medium tracking-wide uppercase">
|
|
977
1025
|
Content Elements
|
|
978
1026
|
</div>
|
|
979
1027
|
<div className="!space-y-2">
|
|
980
|
-
<div className="flex items-center gap-2 rounded px-2 py-1
|
|
981
|
-
<TextIndicatorIcon className="h-4 w-4
|
|
982
|
-
<span className="text-
|
|
1028
|
+
<div className="hover:bg-fm-surface-secondary flex items-center gap-2 rounded px-2 py-1">
|
|
1029
|
+
<TextIndicatorIcon className="text-fm-tertiary h-4 w-4" />
|
|
1030
|
+
<span className="text-fm-icon-active text-sm">Paragraph</span>
|
|
983
1031
|
</div>
|
|
984
|
-
<div className="flex items-center gap-2 rounded px-2 py-1
|
|
985
|
-
<TextIndicatorIcon className="h-4 w-4
|
|
986
|
-
<span className="text-
|
|
1032
|
+
<div className="hover:bg-fm-surface-secondary flex items-center gap-2 rounded px-2 py-1">
|
|
1033
|
+
<TextIndicatorIcon className="text-fm-tertiary h-4 w-4" />
|
|
1034
|
+
<span className="text-fm-icon-active text-sm">Heading</span>
|
|
987
1035
|
</div>
|
|
988
|
-
<div className="flex items-center gap-2 rounded px-2 py-1
|
|
989
|
-
<TextIndicatorIcon className="h-4 w-4
|
|
990
|
-
<span className="text-
|
|
1036
|
+
<div className="hover:bg-fm-surface-secondary flex items-center gap-2 rounded px-2 py-1">
|
|
1037
|
+
<TextIndicatorIcon className="text-fm-tertiary h-4 w-4" />
|
|
1038
|
+
<span className="text-fm-icon-active text-sm">Quote</span>
|
|
991
1039
|
</div>
|
|
992
1040
|
</div>
|
|
993
1041
|
</div>
|
|
@@ -996,23 +1044,25 @@ export const UsageExamples: Story = {
|
|
|
996
1044
|
|
|
997
1045
|
{/* Document Structure */}
|
|
998
1046
|
<div className="!space-y-2">
|
|
999
|
-
<h3 className="text-sm font-medium
|
|
1000
|
-
|
|
1047
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1048
|
+
Document Structure
|
|
1049
|
+
</h3>
|
|
1050
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
1001
1051
|
<div className="!space-y-2 text-sm">
|
|
1002
|
-
<div className="flex items-center gap-2
|
|
1003
|
-
<TextIndicatorIcon className="h-4 w-4
|
|
1052
|
+
<div className="text-fm-icon-active flex items-center gap-2">
|
|
1053
|
+
<TextIndicatorIcon className="text-fm-tertiary h-4 w-4" />
|
|
1004
1054
|
<span className="font-medium">1. Introduction</span>
|
|
1005
|
-
<span className="text-
|
|
1055
|
+
<span className="text-fm-tertiary text-xs">• 156 words</span>
|
|
1006
1056
|
</div>
|
|
1007
|
-
<div className="ml-6 flex items-center gap-2
|
|
1008
|
-
<TextIndicatorIcon className="h-3 w-3
|
|
1057
|
+
<div className="text-fm-icon-active/80 ml-6 flex items-center gap-2">
|
|
1058
|
+
<TextIndicatorIcon className="text-fm-icon-inactive h-3 w-3" />
|
|
1009
1059
|
<span>1.1 Overview</span>
|
|
1010
|
-
<span className="text-
|
|
1060
|
+
<span className="text-fm-placeholder text-xs">• 89 words</span>
|
|
1011
1061
|
</div>
|
|
1012
|
-
<div className="ml-6 flex items-center gap-2
|
|
1013
|
-
<TextIndicatorIcon className="h-3 w-3
|
|
1062
|
+
<div className="text-fm-icon-active/80 ml-6 flex items-center gap-2">
|
|
1063
|
+
<TextIndicatorIcon className="text-fm-icon-inactive h-3 w-3" />
|
|
1014
1064
|
<span>1.2 Objectives</span>
|
|
1015
|
-
<span className="text-
|
|
1065
|
+
<span className="text-fm-placeholder text-xs">• 67 words</span>
|
|
1016
1066
|
</div>
|
|
1017
1067
|
</div>
|
|
1018
1068
|
</div>
|
|
@@ -1034,12 +1084,12 @@ export const Playground: Story = {
|
|
|
1034
1084
|
args: {
|
|
1035
1085
|
width: 32,
|
|
1036
1086
|
height: 32,
|
|
1037
|
-
className: "text-
|
|
1087
|
+
className: "text-fm-tertiary",
|
|
1038
1088
|
strokeWidth: 1.5,
|
|
1039
1089
|
},
|
|
1040
1090
|
render: (args) => (
|
|
1041
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1042
|
-
<div className="rounded-lg border
|
|
1091
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
1092
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
1043
1093
|
<TextIndicatorIcon {...args} />
|
|
1044
1094
|
</div>
|
|
1045
1095
|
</div>
|