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 CapitalALetterIcon> = {
|
|
|
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 CapitalALetterIcon> = {
|
|
|
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-secondary-500/10 to-fm-icon-info/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
|
-
<CapitalALetterIcon className="h-12 w-12
|
|
89
|
+
<div className="border-fm-icon-info/30 from-fm-icon-info/20 to-fm-secondary-500/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
90
|
+
<CapitalALetterIcon className="text-fm-icon-info h-12 w-12" />
|
|
91
91
|
</div>
|
|
92
92
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
93
|
CapitalALetterIcon
|
|
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 clean, minimalist capital letter 'A' icon perfect for
|
|
97
97
|
typography-focused designs, text formatting tools, and
|
|
98
98
|
alphabetical navigation. Built with accessibility in mind.
|
|
@@ -101,28 +101,30 @@ const meta: Meta<typeof CapitalALetterIcon> = {
|
|
|
101
101
|
{/* Stats */}
|
|
102
102
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
103
103
|
<div className="text-center">
|
|
104
|
-
<div className="text-3xl font-bold
|
|
104
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
105
105
|
Typography
|
|
106
106
|
</div>
|
|
107
|
-
<div className="text-
|
|
107
|
+
<div className="text-fm-tertiary text-sm">
|
|
108
108
|
Font & text tools
|
|
109
109
|
</div>
|
|
110
110
|
</div>
|
|
111
|
-
<div className="h-8 w-px
|
|
111
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
112
112
|
<div className="text-center">
|
|
113
|
-
<div className="text-3xl font-bold
|
|
113
|
+
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
114
114
|
Clean
|
|
115
115
|
</div>
|
|
116
|
-
<div className="text-
|
|
116
|
+
<div className="text-fm-tertiary text-sm">
|
|
117
117
|
Minimal design
|
|
118
118
|
</div>
|
|
119
119
|
</div>
|
|
120
|
-
<div className="h-8 w-px
|
|
120
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
121
121
|
<div className="text-center">
|
|
122
|
-
<div className="text-3xl font-bold
|
|
122
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
123
123
|
Scalable
|
|
124
124
|
</div>
|
|
125
|
-
<div className="text-
|
|
125
|
+
<div className="text-fm-tertiary text-sm">
|
|
126
|
+
Vector based
|
|
127
|
+
</div>
|
|
126
128
|
</div>
|
|
127
129
|
</div>
|
|
128
130
|
</div>
|
|
@@ -133,16 +135,16 @@ const meta: Meta<typeof CapitalALetterIcon> = {
|
|
|
133
135
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
134
136
|
{/* Quick Usage */}
|
|
135
137
|
<div className="!space-y-8">
|
|
136
|
-
<h2 className="text-center text-3xl font-bold
|
|
138
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
137
139
|
Quick Start
|
|
138
140
|
</h2>
|
|
139
141
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
140
142
|
<div className="!space-y-4">
|
|
141
|
-
<h3 className="text-xl font-semibold
|
|
143
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
142
144
|
Basic Usage
|
|
143
145
|
</h3>
|
|
144
|
-
<div className="rounded-lg
|
|
145
|
-
<pre className="overflow-x-auto text-sm
|
|
146
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
147
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
146
148
|
{`import { CapitalALetterIcon } from "@icons/capital-a-letter-icon"
|
|
147
149
|
|
|
148
150
|
function MyComponent() {
|
|
@@ -158,13 +160,15 @@ function MyComponent() {
|
|
|
158
160
|
</div>
|
|
159
161
|
|
|
160
162
|
<div className="!space-y-4">
|
|
161
|
-
<h3 className="text-xl font-semibold
|
|
163
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
162
164
|
Live Preview
|
|
163
165
|
</h3>
|
|
164
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
165
|
-
<div className="flex items-center gap-3 rounded-lg border
|
|
166
|
-
<CapitalALetterIcon className="h-5 w-5
|
|
167
|
-
<span className="text-
|
|
166
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
167
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 flex items-center gap-3 rounded-lg border px-4 py-2">
|
|
168
|
+
<CapitalALetterIcon className="text-fm-icon-info h-5 w-5" />
|
|
169
|
+
<span className="text-fm-icon-active">
|
|
170
|
+
Text Formatting
|
|
171
|
+
</span>
|
|
168
172
|
</div>
|
|
169
173
|
</div>
|
|
170
174
|
</div>
|
|
@@ -173,108 +177,116 @@ function MyComponent() {
|
|
|
173
177
|
|
|
174
178
|
{/* Props Documentation */}
|
|
175
179
|
<div className="!space-y-8">
|
|
176
|
-
<h2 className="text-center text-3xl font-bold
|
|
180
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
177
181
|
Props & Configuration
|
|
178
182
|
</h2>
|
|
179
183
|
|
|
180
|
-
<div className="overflow-hidden rounded-lg border
|
|
181
|
-
<div className="bg-
|
|
182
|
-
<h3 className="text-xl font-semibold
|
|
184
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
185
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
186
|
+
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
187
|
+
Props
|
|
188
|
+
</h3>
|
|
183
189
|
</div>
|
|
184
190
|
<table className="!my-0 w-full">
|
|
185
|
-
<thead className="bg-
|
|
186
|
-
<tr className="border-
|
|
187
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
191
|
+
<thead className="bg-fm-surface-secondary">
|
|
192
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
193
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
188
194
|
Prop
|
|
189
195
|
</th>
|
|
190
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
196
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
191
197
|
Type
|
|
192
198
|
</th>
|
|
193
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
199
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
194
200
|
Default
|
|
195
201
|
</th>
|
|
196
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
202
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
197
203
|
Description
|
|
198
204
|
</th>
|
|
199
205
|
</tr>
|
|
200
206
|
</thead>
|
|
201
207
|
<tbody>
|
|
202
208
|
{" "}
|
|
203
|
-
<tr className="
|
|
204
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
209
|
+
<tr className="bg-fm-surface-secondary!">
|
|
210
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
205
211
|
withAccessibility
|
|
206
212
|
</td>
|
|
207
|
-
<td className="px-6 py-4 text-sm
|
|
213
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
208
214
|
boolean
|
|
209
215
|
</td>
|
|
210
|
-
<td className="px-6 py-4 text-sm
|
|
216
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
211
217
|
true
|
|
212
218
|
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm
|
|
219
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
214
220
|
Whether to wrap the icon with accessibility feature
|
|
215
221
|
</td>
|
|
216
222
|
</tr>
|
|
217
|
-
<tr className="border-
|
|
218
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
223
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
224
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
219
225
|
height
|
|
220
226
|
</td>
|
|
221
|
-
<td className="px-6 py-4 text-sm
|
|
227
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
222
228
|
number | string
|
|
223
229
|
</td>
|
|
224
|
-
<td className="px-6 py-4 text-sm
|
|
225
|
-
|
|
230
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
231
|
+
16
|
|
232
|
+
</td>
|
|
233
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
226
234
|
Height of the icon in pixels
|
|
227
235
|
</td>
|
|
228
236
|
</tr>
|
|
229
|
-
<tr className="border-
|
|
230
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
237
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
238
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
231
239
|
stroke
|
|
232
240
|
</td>
|
|
233
|
-
<td className="px-6 py-4 text-sm
|
|
241
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
234
242
|
string
|
|
235
243
|
</td>
|
|
236
|
-
<td className="px-6 py-4 text-sm
|
|
244
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
237
245
|
currentColor
|
|
238
246
|
</td>
|
|
239
|
-
<td className="px-6 py-4 text-sm
|
|
247
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
240
248
|
Stroke color of the icon
|
|
241
249
|
</td>
|
|
242
250
|
</tr>
|
|
243
|
-
<tr className="border-
|
|
244
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
251
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
252
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
245
253
|
strokeWidth
|
|
246
254
|
</td>
|
|
247
|
-
<td className="px-6 py-4 text-sm
|
|
255
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
248
256
|
number
|
|
249
257
|
</td>
|
|
250
|
-
<td className="px-6 py-4 text-sm
|
|
258
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
251
259
|
1.5
|
|
252
260
|
</td>
|
|
253
|
-
<td className="px-6 py-4 text-sm
|
|
261
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
254
262
|
Thickness of the stroke
|
|
255
263
|
</td>
|
|
256
264
|
</tr>
|
|
257
|
-
<tr className="border-
|
|
258
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
265
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
266
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
259
267
|
className
|
|
260
268
|
</td>
|
|
261
|
-
<td className="px-6 py-4 text-sm
|
|
269
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
262
270
|
string
|
|
263
271
|
</td>
|
|
264
|
-
<td className="px-6 py-4 text-sm
|
|
265
|
-
|
|
272
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
273
|
+
-
|
|
274
|
+
</td>
|
|
275
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
266
276
|
CSS classes for styling
|
|
267
277
|
</td>
|
|
268
278
|
</tr>
|
|
269
|
-
<tr className="
|
|
270
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
279
|
+
<tr className="bg-fm-surface-secondary!">
|
|
280
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
271
281
|
...svgProps
|
|
272
282
|
</td>
|
|
273
|
-
<td className="px-6 py-4 text-sm
|
|
283
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
274
284
|
SVGProps
|
|
275
285
|
</td>
|
|
276
|
-
<td className="px-6 py-4 text-sm
|
|
277
|
-
|
|
286
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
287
|
+
-
|
|
288
|
+
</td>
|
|
289
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
278
290
|
All standard SVG element props
|
|
279
291
|
</td>
|
|
280
292
|
</tr>
|
|
@@ -285,50 +297,62 @@ function MyComponent() {
|
|
|
285
297
|
|
|
286
298
|
{/* Size Variations */}
|
|
287
299
|
<div className="!space-y-8">
|
|
288
|
-
<h2 className="text-center text-3xl font-bold
|
|
300
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
289
301
|
Size Variations
|
|
290
302
|
</h2>
|
|
291
|
-
<div className="rounded-lg border
|
|
303
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
292
304
|
<div className="!space-y-6">
|
|
293
305
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
294
306
|
<div className="!space-y-4">
|
|
295
|
-
<h3 className="text-lg font-semibold
|
|
307
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
296
308
|
Standard Sizes
|
|
297
309
|
</h3>
|
|
298
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
310
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
299
311
|
<div className="text-center">
|
|
300
|
-
<CapitalALetterIcon className="!mx-auto mb-2 h-3 w-3
|
|
301
|
-
<span className="text-
|
|
312
|
+
<CapitalALetterIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
313
|
+
<span className="text-fm-tertiary text-xs">
|
|
314
|
+
12px
|
|
315
|
+
</span>
|
|
302
316
|
</div>
|
|
303
317
|
<div className="text-center">
|
|
304
|
-
<CapitalALetterIcon className="!mx-auto mb-2 h-4 w-4
|
|
305
|
-
<span className="text-
|
|
318
|
+
<CapitalALetterIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
319
|
+
<span className="text-fm-tertiary text-xs">
|
|
320
|
+
16px
|
|
321
|
+
</span>
|
|
306
322
|
</div>
|
|
307
323
|
<div className="text-center">
|
|
308
|
-
<CapitalALetterIcon className="!mx-auto mb-2 h-5 w-5
|
|
309
|
-
<span className="text-
|
|
324
|
+
<CapitalALetterIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
325
|
+
<span className="text-fm-tertiary text-xs">
|
|
326
|
+
20px
|
|
327
|
+
</span>
|
|
310
328
|
</div>
|
|
311
329
|
<div className="text-center">
|
|
312
|
-
<CapitalALetterIcon className="!mx-auto mb-2 h-6 w-6
|
|
313
|
-
<span className="text-
|
|
330
|
+
<CapitalALetterIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
331
|
+
<span className="text-fm-tertiary text-xs">
|
|
332
|
+
24px
|
|
333
|
+
</span>
|
|
314
334
|
</div>
|
|
315
335
|
<div className="text-center">
|
|
316
|
-
<CapitalALetterIcon className="!mx-auto mb-2 h-8 w-8
|
|
317
|
-
<span className="text-
|
|
336
|
+
<CapitalALetterIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
337
|
+
<span className="text-fm-tertiary text-xs">
|
|
338
|
+
32px
|
|
339
|
+
</span>
|
|
318
340
|
</div>
|
|
319
341
|
<div className="text-center">
|
|
320
|
-
<CapitalALetterIcon className="!mx-auto mb-2 h-12 w-12
|
|
321
|
-
<span className="text-
|
|
342
|
+
<CapitalALetterIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
343
|
+
<span className="text-fm-tertiary text-xs">
|
|
344
|
+
48px
|
|
345
|
+
</span>
|
|
322
346
|
</div>
|
|
323
347
|
</div>
|
|
324
348
|
</div>
|
|
325
349
|
|
|
326
350
|
<div className="!space-y-4">
|
|
327
|
-
<h3 className="text-lg font-semibold
|
|
351
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
328
352
|
Code Example
|
|
329
353
|
</h3>
|
|
330
|
-
<div className="rounded-lg
|
|
331
|
-
<pre className="overflow-x-auto text-sm
|
|
354
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
355
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
332
356
|
{`// Small (16px)
|
|
333
357
|
<CapitalALetterIcon className="h-4 w-4" />
|
|
334
358
|
|
|
@@ -350,56 +374,56 @@ function MyComponent() {
|
|
|
350
374
|
|
|
351
375
|
{/* Color Variations */}
|
|
352
376
|
<div className="!space-y-8">
|
|
353
|
-
<h2 className="text-center text-3xl font-bold
|
|
377
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
354
378
|
Color Variations
|
|
355
379
|
</h2>
|
|
356
380
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
357
381
|
<div className="!space-y-4">
|
|
358
|
-
<h3 className="text-lg font-semibold
|
|
382
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
359
383
|
Theme Colors
|
|
360
384
|
</h3>
|
|
361
|
-
<div className="!space-y-4 rounded-lg border
|
|
385
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
362
386
|
<div className="flex items-center gap-4">
|
|
363
|
-
<CapitalALetterIcon className="h-6 w-6
|
|
387
|
+
<CapitalALetterIcon className="text-fm-icon-info h-6 w-6" />
|
|
364
388
|
<div>
|
|
365
|
-
<div className="text-sm font-medium
|
|
389
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
366
390
|
Primary
|
|
367
391
|
</div>
|
|
368
|
-
<div className="text-
|
|
369
|
-
text-
|
|
392
|
+
<div className="text-fm-tertiary text-xs">
|
|
393
|
+
text-fm-icon-info
|
|
370
394
|
</div>
|
|
371
395
|
</div>
|
|
372
396
|
</div>
|
|
373
397
|
<div className="flex items-center gap-4">
|
|
374
|
-
<CapitalALetterIcon className="h-6 w-6
|
|
398
|
+
<CapitalALetterIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
375
399
|
<div>
|
|
376
|
-
<div className="text-sm font-medium
|
|
400
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
377
401
|
Secondary
|
|
378
402
|
</div>
|
|
379
|
-
<div className="text-
|
|
380
|
-
text-
|
|
403
|
+
<div className="text-fm-tertiary text-xs">
|
|
404
|
+
text-fm-secondary-600
|
|
381
405
|
</div>
|
|
382
406
|
</div>
|
|
383
407
|
</div>
|
|
384
408
|
<div className="flex items-center gap-4">
|
|
385
|
-
<CapitalALetterIcon className="h-6 w-6
|
|
409
|
+
<CapitalALetterIcon className="text-fm-icon-info h-6 w-6" />
|
|
386
410
|
<div>
|
|
387
|
-
<div className="text-sm font-medium
|
|
411
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
388
412
|
Accent
|
|
389
413
|
</div>
|
|
390
|
-
<div className="text-
|
|
391
|
-
text-
|
|
414
|
+
<div className="text-fm-tertiary text-xs">
|
|
415
|
+
text-fm-icon-info
|
|
392
416
|
</div>
|
|
393
417
|
</div>
|
|
394
418
|
</div>
|
|
395
419
|
<div className="flex items-center gap-4">
|
|
396
|
-
<CapitalALetterIcon className="h-6 w-6
|
|
420
|
+
<CapitalALetterIcon className="text-fm-placeholder h-6 w-6" />
|
|
397
421
|
<div>
|
|
398
|
-
<div className="text-sm font-medium
|
|
422
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
399
423
|
Muted
|
|
400
424
|
</div>
|
|
401
|
-
<div className="text-
|
|
402
|
-
text-
|
|
425
|
+
<div className="text-fm-tertiary text-xs">
|
|
426
|
+
text-fm-placeholder
|
|
403
427
|
</div>
|
|
404
428
|
</div>
|
|
405
429
|
</div>
|
|
@@ -407,11 +431,11 @@ function MyComponent() {
|
|
|
407
431
|
</div>
|
|
408
432
|
|
|
409
433
|
<div className="!space-y-4">
|
|
410
|
-
<h3 className="text-lg font-semibold
|
|
434
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
411
435
|
Custom Colors
|
|
412
436
|
</h3>
|
|
413
|
-
<div className="rounded-lg
|
|
414
|
-
<pre className="overflow-x-auto text-sm
|
|
437
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
438
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
415
439
|
{`// Using Tailwind classes
|
|
416
440
|
<CapitalALetterIcon className="h-6 w-6 text-blue-400" />
|
|
417
441
|
<CapitalALetterIcon className="h-6 w-6 text-purple-500" />
|
|
@@ -436,33 +460,33 @@ function MyComponent() {
|
|
|
436
460
|
|
|
437
461
|
{/* Usage Examples */}
|
|
438
462
|
<div className="!space-y-8">
|
|
439
|
-
<h2 className="text-center text-3xl font-bold
|
|
463
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
440
464
|
Usage Examples
|
|
441
465
|
</h2>
|
|
442
466
|
|
|
443
467
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
444
468
|
{/* Text Editor Toolbar */}
|
|
445
469
|
<div className="!space-y-4">
|
|
446
|
-
<h3 className="text-lg font-semibold
|
|
470
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
447
471
|
Text Editor Toolbar
|
|
448
472
|
</h3>
|
|
449
473
|
<div className="!space-y-4">
|
|
450
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
451
|
-
<button className="flex h-8 w-8 items-center justify-center rounded
|
|
474
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border p-3">
|
|
475
|
+
<button className="text-fm-icon-info hover:bg-fm-icon-info/20 flex h-8 w-8 items-center justify-center rounded">
|
|
452
476
|
<CapitalALetterIcon className="h-4 w-4" />
|
|
453
477
|
</button>
|
|
454
|
-
<button className="flex h-8 w-8 items-center justify-center rounded
|
|
478
|
+
<button className="text-fm-placeholder hover:bg-fm-surface-tertiary/20 flex h-8 w-8 items-center justify-center rounded">
|
|
455
479
|
<span className="text-sm font-bold">B</span>
|
|
456
480
|
</button>
|
|
457
|
-
<button className="flex h-8 w-8 items-center justify-center rounded
|
|
481
|
+
<button className="text-fm-placeholder hover:bg-fm-surface-tertiary/20 flex h-8 w-8 items-center justify-center rounded">
|
|
458
482
|
<span className="text-sm font-bold italic">I</span>
|
|
459
483
|
</button>
|
|
460
|
-
<button className="flex h-8 w-8 items-center justify-center rounded
|
|
484
|
+
<button className="text-fm-placeholder hover:bg-fm-surface-tertiary/20 flex h-8 w-8 items-center justify-center rounded">
|
|
461
485
|
<span className="text-sm font-bold underline">U</span>
|
|
462
486
|
</button>
|
|
463
487
|
</div>
|
|
464
|
-
<div className="rounded-lg
|
|
465
|
-
<pre className="overflow-x-auto text-sm
|
|
488
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
489
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
466
490
|
{`<div className="flex items-center gap-2 bg-white/5 border border-white/10 p-3 rounded-lg">
|
|
467
491
|
<button className="flex items-center justify-center h-8 w-8 rounded text-blue-400 hover:bg-blue-500/20">
|
|
468
492
|
<CapitalALetterIcon className="h-4 w-4" />
|
|
@@ -476,17 +500,17 @@ function MyComponent() {
|
|
|
476
500
|
|
|
477
501
|
{/* Font Size Selector */}
|
|
478
502
|
<div className="!space-y-4">
|
|
479
|
-
<h3 className="text-lg font-semibold
|
|
503
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
480
504
|
Font Size Selector
|
|
481
505
|
</h3>
|
|
482
506
|
<div className="!space-y-4">
|
|
483
|
-
<div className="rounded-lg border
|
|
507
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
484
508
|
<div className="flex items-center gap-3">
|
|
485
|
-
<CapitalALetterIcon className="h-4 w-4
|
|
486
|
-
<span className="text-
|
|
509
|
+
<CapitalALetterIcon className="text-fm-icon-info h-4 w-4" />
|
|
510
|
+
<span className="text-fm-secondary text-sm">
|
|
487
511
|
Font Size
|
|
488
512
|
</span>
|
|
489
|
-
<select className="
|
|
513
|
+
<select className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active rounded border px-3 py-1 text-sm">
|
|
490
514
|
<option>12px</option>
|
|
491
515
|
<option>14px</option>
|
|
492
516
|
<option>16px</option>
|
|
@@ -495,8 +519,8 @@ function MyComponent() {
|
|
|
495
519
|
</select>
|
|
496
520
|
</div>
|
|
497
521
|
</div>
|
|
498
|
-
<div className="rounded-lg
|
|
499
|
-
<pre className="overflow-x-auto text-sm
|
|
522
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
523
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
500
524
|
{`<div className="flex items-center gap-3">
|
|
501
525
|
<CapitalALetterIcon className="h-4 w-4 text-blue-400" />
|
|
502
526
|
<span className="text-sm text-white/70">Font Size</span>
|
|
@@ -513,26 +537,26 @@ function MyComponent() {
|
|
|
513
537
|
|
|
514
538
|
{/* Alphabetical Navigation */}
|
|
515
539
|
<div className="!space-y-4">
|
|
516
|
-
<h3 className="text-lg font-semibold
|
|
540
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
517
541
|
Alphabetical Navigation
|
|
518
542
|
</h3>
|
|
519
543
|
<div className="!space-y-4">
|
|
520
|
-
<div className="rounded-lg border
|
|
544
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
521
545
|
<div className="flex items-center gap-2">
|
|
522
|
-
<button className="flex h-8 w-8 items-center justify-center rounded-full border
|
|
546
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info flex h-8 w-8 items-center justify-center rounded-full border">
|
|
523
547
|
<CapitalALetterIcon className="h-4 w-4" />
|
|
524
548
|
</button>
|
|
525
|
-
<button className="flex h-8 w-8 items-center justify-center rounded-full border
|
|
549
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-placeholder flex h-8 w-8 items-center justify-center rounded-full border">
|
|
526
550
|
<span className="text-sm font-bold">B</span>
|
|
527
551
|
</button>
|
|
528
|
-
<button className="flex h-8 w-8 items-center justify-center rounded-full border
|
|
552
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-placeholder flex h-8 w-8 items-center justify-center rounded-full border">
|
|
529
553
|
<span className="text-sm font-bold">C</span>
|
|
530
554
|
</button>
|
|
531
|
-
<span className="text-
|
|
555
|
+
<span className="text-fm-placeholder">...</span>
|
|
532
556
|
</div>
|
|
533
557
|
</div>
|
|
534
|
-
<div className="rounded-lg
|
|
535
|
-
<pre className="overflow-x-auto text-sm
|
|
558
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
559
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
536
560
|
{`<div className="flex items-center gap-2">
|
|
537
561
|
<button className="flex items-center justify-center h-8 w-8 rounded-full border border-blue-500/30 bg-blue-500/20 text-blue-400">
|
|
538
562
|
<CapitalALetterIcon className="h-4 w-4" />
|
|
@@ -548,30 +572,32 @@ function MyComponent() {
|
|
|
548
572
|
|
|
549
573
|
{/* Typography Settings */}
|
|
550
574
|
<div className="!space-y-4">
|
|
551
|
-
<h3 className="text-lg font-semibold
|
|
575
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
552
576
|
Typography Settings
|
|
553
577
|
</h3>
|
|
554
578
|
<div className="!space-y-4">
|
|
555
|
-
<div className="rounded-lg border
|
|
579
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
556
580
|
<div className="!space-y-3">
|
|
557
581
|
<div className="flex items-center justify-between">
|
|
558
582
|
<div className="flex items-center gap-3">
|
|
559
|
-
<CapitalALetterIcon className="h-5 w-5
|
|
560
|
-
<span className="text-
|
|
583
|
+
<CapitalALetterIcon className="text-fm-icon-info h-5 w-5" />
|
|
584
|
+
<span className="text-fm-icon-active">
|
|
585
|
+
Typography
|
|
586
|
+
</span>
|
|
561
587
|
</div>
|
|
562
|
-
<button className="text-
|
|
588
|
+
<button className="text-fm-icon-info hover:text-fm-icon-info text-xs">
|
|
563
589
|
Edit
|
|
564
590
|
</button>
|
|
565
591
|
</div>
|
|
566
|
-
<div className="ml-8 text-sm
|
|
592
|
+
<div className="text-fm-tertiary ml-8 text-sm">
|
|
567
593
|
<div>Font Family: Inter</div>
|
|
568
594
|
<div>Font Size: 16px</div>
|
|
569
595
|
<div>Line Height: 1.5</div>
|
|
570
596
|
</div>
|
|
571
597
|
</div>
|
|
572
598
|
</div>
|
|
573
|
-
<div className="rounded-lg
|
|
574
|
-
<pre className="overflow-x-auto text-sm
|
|
599
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
600
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
575
601
|
{`<div className="flex items-center justify-between">
|
|
576
602
|
<div className="flex items-center gap-3">
|
|
577
603
|
<CapitalALetterIcon className="h-5 w-5 text-blue-400" />
|
|
@@ -590,64 +616,64 @@ function MyComponent() {
|
|
|
590
616
|
|
|
591
617
|
{/* Accessibility */}
|
|
592
618
|
<div className="!space-y-8">
|
|
593
|
-
<h2 className="text-center text-3xl font-bold
|
|
619
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
594
620
|
Accessibility Features
|
|
595
621
|
</h2>
|
|
596
622
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
597
|
-
<div className="!space-y-4 rounded-lg border
|
|
598
|
-
<h3 className="text-lg font-semibold
|
|
623
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
624
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
599
625
|
✅ Built-in Features
|
|
600
626
|
</h3>
|
|
601
|
-
<ul className="!space-y-2 text-sm
|
|
602
|
-
<li className="
|
|
627
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
628
|
+
<li className="text-fm-secondary!">
|
|
603
629
|
Uses Radix UI AccessibleIcon wrapper
|
|
604
630
|
</li>
|
|
605
|
-
<li className="
|
|
631
|
+
<li className="text-fm-secondary!">
|
|
606
632
|
Provides screen reader label "Capital A Letter Icon"
|
|
607
633
|
</li>
|
|
608
|
-
<li className="
|
|
634
|
+
<li className="text-fm-secondary!">
|
|
609
635
|
Supports keyboard navigation when interactive
|
|
610
636
|
</li>
|
|
611
|
-
<li className="
|
|
637
|
+
<li className="text-fm-secondary!">
|
|
612
638
|
Maintains proper color contrast ratios
|
|
613
639
|
</li>
|
|
614
|
-
<li className="
|
|
640
|
+
<li className="text-fm-secondary!">
|
|
615
641
|
Scales with user's font size preferences
|
|
616
642
|
</li>
|
|
617
643
|
</ul>
|
|
618
644
|
</div>
|
|
619
645
|
|
|
620
|
-
<div className="!space-y-4 rounded-lg border
|
|
621
|
-
<h3 className="text-lg font-semibold
|
|
646
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
647
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
622
648
|
💡 Best Practices
|
|
623
649
|
</h3>
|
|
624
|
-
<ul className="!space-y-2 text-sm
|
|
625
|
-
<li className="
|
|
650
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
651
|
+
<li className="text-fm-secondary!">
|
|
626
652
|
Use in typography-related contexts
|
|
627
653
|
</li>
|
|
628
|
-
<li className="
|
|
654
|
+
<li className="text-fm-secondary!">
|
|
629
655
|
Pair with descriptive labels or tooltips
|
|
630
656
|
</li>
|
|
631
|
-
<li className="
|
|
657
|
+
<li className="text-fm-secondary!">
|
|
632
658
|
Ensure sufficient color contrast
|
|
633
659
|
</li>
|
|
634
|
-
<li className="
|
|
660
|
+
<li className="text-fm-secondary!">
|
|
635
661
|
Add focus states for interactive elements
|
|
636
662
|
</li>
|
|
637
|
-
<li className="
|
|
663
|
+
<li className="text-fm-secondary!">
|
|
638
664
|
Consider context when choosing colors
|
|
639
665
|
</li>
|
|
640
666
|
</ul>
|
|
641
667
|
</div>
|
|
642
668
|
</div>
|
|
643
669
|
|
|
644
|
-
<div className="rounded-lg border
|
|
645
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
670
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
671
|
+
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
646
672
|
Custom Accessibility Label
|
|
647
673
|
</h3>
|
|
648
674
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
649
|
-
<div className="rounded-lg
|
|
650
|
-
<pre className="overflow-x-auto text-sm
|
|
675
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
676
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
651
677
|
{`// Custom implementation with specific label
|
|
652
678
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
653
679
|
|
|
@@ -669,13 +695,13 @@ function CustomCapitalAIcon({ label = "Font size", ...props }) {
|
|
|
669
695
|
</pre>
|
|
670
696
|
</div>
|
|
671
697
|
<div className="!space-y-4">
|
|
672
|
-
<p className="text-
|
|
698
|
+
<p className="text-fm-secondary! text-sm">
|
|
673
699
|
For specific typography contexts, you can provide more
|
|
674
700
|
descriptive labels that give screen readers better
|
|
675
701
|
context about the icon's purpose.
|
|
676
702
|
</p>
|
|
677
|
-
<div className="
|
|
678
|
-
<div className="flex items-center gap-2 text-sm
|
|
703
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
704
|
+
<div className="text-fm-icon-info flex items-center gap-2 text-sm">
|
|
679
705
|
<CapitalALetterIcon className="h-4 w-4" />
|
|
680
706
|
<span>
|
|
681
707
|
This helps users understand the icon's function
|
|
@@ -689,48 +715,60 @@ function CustomCapitalAIcon({ label = "Font size", ...props }) {
|
|
|
689
715
|
|
|
690
716
|
{/* Related Icons */}
|
|
691
717
|
<div className="!space-y-8">
|
|
692
|
-
<h2 className="text-center text-3xl font-bold
|
|
718
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
693
719
|
Related Icons
|
|
694
720
|
</h2>
|
|
695
721
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
696
|
-
<div className="!space-y-3 rounded-lg border
|
|
697
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
698
|
-
<span className="!text-2xl font-bold
|
|
722
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
723
|
+
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
724
|
+
<span className="text-fm-icon-active! !text-2xl font-bold">
|
|
725
|
+
B
|
|
726
|
+
</span>
|
|
699
727
|
</div>
|
|
700
728
|
<div>
|
|
701
|
-
<div className="font-medium
|
|
702
|
-
|
|
729
|
+
<div className="text-fm-icon-active font-medium">
|
|
730
|
+
Bold
|
|
731
|
+
</div>
|
|
732
|
+
<div className="text-fm-tertiary text-xs">
|
|
703
733
|
Text formatting
|
|
704
734
|
</div>
|
|
705
735
|
</div>
|
|
706
736
|
</div>
|
|
707
|
-
<div className="!space-y-3 rounded-lg border
|
|
708
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
709
|
-
<span className="!text-2xl font-bold
|
|
737
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
738
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
739
|
+
<span className="text-fm-icon-active! !text-2xl font-bold italic">
|
|
710
740
|
I
|
|
711
741
|
</span>
|
|
712
742
|
</div>
|
|
713
743
|
<div>
|
|
714
|
-
<div className="font-medium
|
|
715
|
-
|
|
744
|
+
<div className="text-fm-icon-active font-medium">
|
|
745
|
+
Italic
|
|
746
|
+
</div>
|
|
747
|
+
<div className="text-fm-tertiary text-xs">
|
|
748
|
+
Text styling
|
|
749
|
+
</div>
|
|
716
750
|
</div>
|
|
717
751
|
</div>
|
|
718
|
-
<div className="!space-y-3 rounded-lg border
|
|
719
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
752
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
753
|
+
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
720
754
|
<span className="text-2xl">🔤</span>
|
|
721
755
|
</div>
|
|
722
756
|
<div>
|
|
723
|
-
<div className="font-medium
|
|
724
|
-
|
|
757
|
+
<div className="text-fm-icon-active font-medium">
|
|
758
|
+
TextIcon
|
|
759
|
+
</div>
|
|
760
|
+
<div className="text-fm-tertiary text-xs">Text tools</div>
|
|
725
761
|
</div>
|
|
726
762
|
</div>
|
|
727
|
-
<div className="!space-y-3 rounded-lg border
|
|
728
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
763
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
764
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
729
765
|
<span className="text-2xl">📝</span>
|
|
730
766
|
</div>
|
|
731
767
|
<div>
|
|
732
|
-
<div className="font-medium
|
|
733
|
-
|
|
768
|
+
<div className="text-fm-icon-active font-medium">
|
|
769
|
+
EditIcon
|
|
770
|
+
</div>
|
|
771
|
+
<div className="text-fm-tertiary text-xs">
|
|
734
772
|
Content editing
|
|
735
773
|
</div>
|
|
736
774
|
</div>
|
|
@@ -740,14 +778,14 @@ function CustomCapitalAIcon({ label = "Font size", ...props }) {
|
|
|
740
778
|
</div>
|
|
741
779
|
|
|
742
780
|
{/* Footer */}
|
|
743
|
-
<div className="border-
|
|
781
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
744
782
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
745
783
|
<div className="!space-y-4 text-center">
|
|
746
|
-
<p className="
|
|
784
|
+
<p className="text-fm-tertiary!">
|
|
747
785
|
CapitalALetterIcon is part of the Aural UI icon library,
|
|
748
786
|
designed for typography and text formatting interfaces.
|
|
749
787
|
</p>
|
|
750
|
-
<p className="text-
|
|
788
|
+
<p className="text-fm-placeholder! text-sm">
|
|
751
789
|
All icons use Radix UI's AccessibleIcon for screen reader
|
|
752
790
|
compatibility and follow WCAG guidelines.
|
|
753
791
|
</p>
|
|
@@ -796,8 +834,8 @@ const storyParameters = {
|
|
|
796
834
|
backgrounds: {
|
|
797
835
|
default: "dark",
|
|
798
836
|
values: [
|
|
799
|
-
{ name: "dark", value: "
|
|
800
|
-
{ name: "darker", value: "
|
|
837
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
838
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
801
839
|
],
|
|
802
840
|
},
|
|
803
841
|
}
|
|
@@ -806,12 +844,12 @@ export const Default: Story = {
|
|
|
806
844
|
args: {
|
|
807
845
|
width: 24,
|
|
808
846
|
height: 24,
|
|
809
|
-
className: "text-
|
|
847
|
+
className: "text-fm-icon-info",
|
|
810
848
|
withAccessibility: true,
|
|
811
849
|
},
|
|
812
850
|
parameters: storyParameters,
|
|
813
851
|
render: (args) => (
|
|
814
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
852
|
+
<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">
|
|
815
853
|
<CapitalALetterIcon {...args} />
|
|
816
854
|
</div>
|
|
817
855
|
),
|
|
@@ -828,30 +866,30 @@ export const SizeVariations: Story = {
|
|
|
828
866
|
},
|
|
829
867
|
},
|
|
830
868
|
render: () => (
|
|
831
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
869
|
+
<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">
|
|
832
870
|
<div className="text-center">
|
|
833
|
-
<CapitalALetterIcon className="!mx-auto mb-2 h-3 w-3
|
|
834
|
-
<span className="text-
|
|
871
|
+
<CapitalALetterIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
872
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
835
873
|
</div>
|
|
836
874
|
<div className="text-center">
|
|
837
|
-
<CapitalALetterIcon className="!mx-auto mb-2 h-4 w-4
|
|
838
|
-
<span className="text-
|
|
875
|
+
<CapitalALetterIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
876
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
839
877
|
</div>
|
|
840
878
|
<div className="text-center">
|
|
841
|
-
<CapitalALetterIcon className="!mx-auto mb-2 h-5 w-5
|
|
842
|
-
<span className="text-
|
|
879
|
+
<CapitalALetterIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
880
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
843
881
|
</div>
|
|
844
882
|
<div className="text-center">
|
|
845
|
-
<CapitalALetterIcon className="!mx-auto mb-2 h-6 w-6
|
|
846
|
-
<span className="text-
|
|
883
|
+
<CapitalALetterIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
884
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
847
885
|
</div>
|
|
848
886
|
<div className="text-center">
|
|
849
|
-
<CapitalALetterIcon className="!mx-auto mb-2 h-8 w-8
|
|
850
|
-
<span className="text-
|
|
887
|
+
<CapitalALetterIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
888
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
851
889
|
</div>
|
|
852
890
|
<div className="text-center">
|
|
853
|
-
<CapitalALetterIcon className="!mx-auto mb-2 h-12 w-12
|
|
854
|
-
<span className="text-
|
|
891
|
+
<CapitalALetterIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
892
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
855
893
|
</div>
|
|
856
894
|
</div>
|
|
857
895
|
),
|
|
@@ -868,34 +906,36 @@ export const ColorVariations: Story = {
|
|
|
868
906
|
},
|
|
869
907
|
},
|
|
870
908
|
render: () => (
|
|
871
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
909
|
+
<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">
|
|
872
910
|
<div className="text-center">
|
|
873
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
874
|
-
<CapitalALetterIcon className="h-8 w-8
|
|
911
|
+
<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">
|
|
912
|
+
<CapitalALetterIcon className="text-fm-icon-info h-8 w-8" />
|
|
875
913
|
</div>
|
|
876
|
-
<div className="text-sm font-medium
|
|
877
|
-
<div className="text-
|
|
914
|
+
<div className="text-fm-icon-active text-sm font-medium">Primary</div>
|
|
915
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
878
916
|
</div>
|
|
879
917
|
<div className="text-center">
|
|
880
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
881
|
-
<CapitalALetterIcon className="h-8 w-8
|
|
918
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
919
|
+
<CapitalALetterIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
920
|
+
</div>
|
|
921
|
+
<div className="text-fm-icon-active text-sm font-medium">Secondary</div>
|
|
922
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
923
|
+
text-fm-secondary-600
|
|
882
924
|
</div>
|
|
883
|
-
<div className="text-sm font-medium text-white">Secondary</div>
|
|
884
|
-
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
885
925
|
</div>
|
|
886
926
|
<div className="text-center">
|
|
887
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
888
|
-
<CapitalALetterIcon className="h-8 w-8
|
|
927
|
+
<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">
|
|
928
|
+
<CapitalALetterIcon className="text-fm-icon-info h-8 w-8" />
|
|
889
929
|
</div>
|
|
890
|
-
<div className="text-sm font-medium
|
|
891
|
-
<div className="text-
|
|
930
|
+
<div className="text-fm-icon-active text-sm font-medium">Accent</div>
|
|
931
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
892
932
|
</div>
|
|
893
933
|
<div className="text-center">
|
|
894
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
895
|
-
<CapitalALetterIcon className="h-8 w-8
|
|
934
|
+
<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">
|
|
935
|
+
<CapitalALetterIcon className="text-fm-placeholder h-8 w-8" />
|
|
896
936
|
</div>
|
|
897
|
-
<div className="text-sm font-medium
|
|
898
|
-
<div className="text-
|
|
937
|
+
<div className="text-fm-icon-active text-sm font-medium">Muted</div>
|
|
938
|
+
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
899
939
|
</div>
|
|
900
940
|
</div>
|
|
901
941
|
),
|
|
@@ -912,21 +952,23 @@ export const UsageExamples: Story = {
|
|
|
912
952
|
},
|
|
913
953
|
},
|
|
914
954
|
render: () => (
|
|
915
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
955
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
916
956
|
{/* Text Editor Toolbar */}
|
|
917
957
|
<div className="!space-y-2">
|
|
918
|
-
<h3 className="text-sm font-medium
|
|
919
|
-
|
|
920
|
-
|
|
958
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
959
|
+
Text Editor Toolbar
|
|
960
|
+
</h3>
|
|
961
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border p-3">
|
|
962
|
+
<button className="text-fm-icon-info hover:bg-fm-icon-info/20 flex h-8 w-8 items-center justify-center rounded">
|
|
921
963
|
<CapitalALetterIcon className="h-4 w-4" />
|
|
922
964
|
</button>
|
|
923
|
-
<button className="flex h-8 w-8 items-center justify-center rounded
|
|
965
|
+
<button className="text-fm-placeholder hover:bg-fm-surface-tertiary/20 flex h-8 w-8 items-center justify-center rounded">
|
|
924
966
|
<span className="text-sm font-bold">B</span>
|
|
925
967
|
</button>
|
|
926
|
-
<button className="flex h-8 w-8 items-center justify-center rounded
|
|
968
|
+
<button className="text-fm-placeholder hover:bg-fm-surface-tertiary/20 flex h-8 w-8 items-center justify-center rounded">
|
|
927
969
|
<span className="text-sm font-bold italic">I</span>
|
|
928
970
|
</button>
|
|
929
|
-
<button className="flex h-8 w-8 items-center justify-center rounded
|
|
971
|
+
<button className="text-fm-placeholder hover:bg-fm-surface-tertiary/20 flex h-8 w-8 items-center justify-center rounded">
|
|
930
972
|
<span className="text-sm font-bold underline">U</span>
|
|
931
973
|
</button>
|
|
932
974
|
</div>
|
|
@@ -934,12 +976,14 @@ export const UsageExamples: Story = {
|
|
|
934
976
|
|
|
935
977
|
{/* Font Size Selector */}
|
|
936
978
|
<div className="!space-y-2">
|
|
937
|
-
<h3 className="text-sm font-medium
|
|
938
|
-
|
|
979
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
980
|
+
Font Size Selector
|
|
981
|
+
</h3>
|
|
982
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
939
983
|
<div className="flex items-center gap-3">
|
|
940
|
-
<CapitalALetterIcon className="h-4 w-4
|
|
941
|
-
<span className="text-
|
|
942
|
-
<select className="
|
|
984
|
+
<CapitalALetterIcon className="text-fm-icon-info h-4 w-4" />
|
|
985
|
+
<span className="text-fm-secondary text-sm">Font Size</span>
|
|
986
|
+
<select className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active rounded border px-3 py-1 text-sm">
|
|
943
987
|
<option>12px</option>
|
|
944
988
|
<option>14px</option>
|
|
945
989
|
<option>16px</option>
|
|
@@ -952,21 +996,21 @@ export const UsageExamples: Story = {
|
|
|
952
996
|
|
|
953
997
|
{/* Alphabetical Navigation */}
|
|
954
998
|
<div className="!space-y-2">
|
|
955
|
-
<h3 className="text-sm font-medium
|
|
999
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
956
1000
|
Alphabetical Navigation
|
|
957
1001
|
</h3>
|
|
958
|
-
<div className="rounded-lg border
|
|
1002
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
959
1003
|
<div className="flex items-center gap-2">
|
|
960
|
-
<button className="flex h-8 w-8 items-center justify-center rounded-full border
|
|
1004
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info flex h-8 w-8 items-center justify-center rounded-full border">
|
|
961
1005
|
<CapitalALetterIcon className="h-4 w-4" />
|
|
962
1006
|
</button>
|
|
963
|
-
<button className="flex h-8 w-8 items-center justify-center rounded-full border
|
|
1007
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-placeholder flex h-8 w-8 items-center justify-center rounded-full border">
|
|
964
1008
|
<span className="text-sm font-bold">B</span>
|
|
965
1009
|
</button>
|
|
966
|
-
<button className="flex h-8 w-8 items-center justify-center rounded-full border
|
|
1010
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-placeholder flex h-8 w-8 items-center justify-center rounded-full border">
|
|
967
1011
|
<span className="text-sm font-bold">C</span>
|
|
968
1012
|
</button>
|
|
969
|
-
<span className="text-
|
|
1013
|
+
<span className="text-fm-placeholder">...</span>
|
|
970
1014
|
</div>
|
|
971
1015
|
</div>
|
|
972
1016
|
</div>
|
|
@@ -987,12 +1031,12 @@ export const Playground: Story = {
|
|
|
987
1031
|
args: {
|
|
988
1032
|
width: 32,
|
|
989
1033
|
height: 32,
|
|
990
|
-
className: "text-
|
|
1034
|
+
className: "text-fm-icon-info",
|
|
991
1035
|
strokeWidth: 1.5,
|
|
992
1036
|
},
|
|
993
1037
|
render: (args) => (
|
|
994
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
995
|
-
<div className="rounded-lg border
|
|
1038
|
+
<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">
|
|
1039
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
996
1040
|
<CapitalALetterIcon {...args} />
|
|
997
1041
|
</div>
|
|
998
1042
|
</div>
|