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