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