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,438 +1,99 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { SettingIcon } from "src/ui/icons/setting-icon"
|
|
5
|
+
import { SparklesSoftIcon } from "src/ui/icons/sparkles-soft-icon"
|
|
6
|
+
import { StarIcon } from "src/ui/icons/star-icon"
|
|
7
|
+
import { SunIcon } from "src/ui/icons/sun-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 { MoonIcon } from "."
|
|
5
|
-
import { ArrowRightUpIcon } from "../arrow-right-up-icon"
|
|
6
19
|
|
|
7
20
|
const meta: Meta<typeof MoonIcon> = {
|
|
8
21
|
title: "Icons/MoonIcon",
|
|
9
22
|
component: MoonIcon,
|
|
10
23
|
parameters: {
|
|
11
|
-
layout: "
|
|
24
|
+
layout: "fullscreen",
|
|
12
25
|
backgrounds: {
|
|
13
26
|
default: "dark",
|
|
14
27
|
values: [
|
|
15
|
-
{ name: "dark", value: "
|
|
16
|
-
{ name: "darker", value: "
|
|
17
|
-
{ 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)" },
|
|
18
31
|
],
|
|
19
32
|
},
|
|
20
33
|
docs: {
|
|
21
|
-
description: {
|
|
22
|
-
component:
|
|
23
|
-
"A message or chat bubble icon, ideal for messaging, comments, and communication interfaces.",
|
|
24
|
-
},
|
|
25
|
-
canvas: {
|
|
26
|
-
sourceState: "shown",
|
|
27
|
-
},
|
|
28
34
|
page: () => (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 { color: white !important; }
|
|
39
|
-
.sbdocs-p, .sbdocs-li { color: rgba(255, 255, 255, 0.7) !important; }
|
|
40
|
-
.sbdocs-code { background: rgba(255, 255, 255, 0.1) !important; color: rgba(168, 85, 247, 1) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }
|
|
41
|
-
.sbdocs-pre { background: rgba(0, 0, 0, 0.4) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }
|
|
42
|
-
.sbdocs-table { background: rgba(255, 255, 255, 0.05) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }
|
|
43
|
-
.sbdocs-table th { background: rgba(255, 255, 255, 0.05) !important; color: white !important; border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; }
|
|
44
|
-
.sbdocs-table td { color: rgba(255, 255, 255, 0.7) !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; }
|
|
45
|
-
`}</style>
|
|
46
|
-
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-purple-900/20 to-gray-900">
|
|
47
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
48
|
-
<div className="absolute inset-0 bg-gradient-to-r from-purple-500/10 via-transparent to-blue-500/10" />
|
|
49
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
50
|
-
<div className="!space-y-6 text-center">
|
|
51
|
-
<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-indigo-500/20">
|
|
52
|
-
<MoonIcon className="h-12 w-12 text-blue-400" />
|
|
53
|
-
</div>
|
|
54
|
-
<h1 className="text-5xl font-bold !text-white">MoonIcon</h1>
|
|
55
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
56
|
-
A message or chat bubble icon, ideal for messaging,
|
|
57
|
-
comments, and communication interfaces.
|
|
58
|
-
</p>
|
|
59
|
-
<div className="mx-auto flex items-center justify-center gap-8">
|
|
60
|
-
<div className="text-center">
|
|
61
|
-
<div className="text-3xl font-bold text-blue-300">
|
|
62
|
-
Chat
|
|
63
|
-
</div>
|
|
64
|
-
<div className="text-sm text-white/80">Conversations</div>
|
|
65
|
-
</div>
|
|
66
|
-
<div className="h-8 w-px bg-white/20" />
|
|
67
|
-
<div className="text-center">
|
|
68
|
-
<div className="text-3xl font-bold text-indigo-300">
|
|
69
|
-
Comments
|
|
70
|
-
</div>
|
|
71
|
-
<div className="text-sm text-white/80">Feedback</div>
|
|
72
|
-
</div>
|
|
73
|
-
<div className="h-8 w-px bg-white/20" />
|
|
74
|
-
<div className="text-center">
|
|
75
|
-
<div className="text-3xl font-bold text-cyan-300">
|
|
76
|
-
Accessible
|
|
77
|
-
</div>
|
|
78
|
-
<div className="text-sm text-white/80">
|
|
79
|
-
Screen reader support
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
87
|
-
<div className="!space-y-8">
|
|
88
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
89
|
-
Key Features
|
|
90
|
-
</h3>
|
|
91
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
92
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
93
|
-
<div className="text-3xl">💬</div>
|
|
94
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
95
|
-
Message Bubble
|
|
96
|
-
</h4>
|
|
97
|
-
<p className="text-sm !text-white/80">
|
|
98
|
-
Represents chat, comments, and communication
|
|
99
|
-
</p>
|
|
100
|
-
</div>
|
|
101
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
102
|
-
<div className="text-3xl">♿</div>
|
|
103
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
104
|
-
Accessibility
|
|
105
|
-
</h4>
|
|
106
|
-
<p className="text-sm !text-white/80">
|
|
107
|
-
Built with screen reader support
|
|
108
|
-
</p>
|
|
109
|
-
</div>
|
|
110
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
111
|
-
<div className="text-3xl">🎨</div>
|
|
112
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
113
|
-
Customizable
|
|
114
|
-
</h4>
|
|
115
|
-
<p className="text-sm !text-white/80">
|
|
116
|
-
Flexible styling options
|
|
117
|
-
</p>
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
<div className="!space-y-8">
|
|
122
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
123
|
-
API Reference
|
|
124
|
-
</h3>
|
|
125
|
-
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
126
|
-
<div className="bg-white/5 p-4">
|
|
127
|
-
<h4 className="text-lg font-semibold !text-white">Props</h4>
|
|
128
|
-
</div>
|
|
129
|
-
<table className="!my-0 w-full">
|
|
130
|
-
<thead className="bg-white/5">
|
|
131
|
-
<tr className="border-b border-white/10">
|
|
132
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
133
|
-
Prop
|
|
134
|
-
</th>
|
|
135
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
136
|
-
Type
|
|
137
|
-
</th>
|
|
138
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
139
|
-
Default
|
|
140
|
-
</th>
|
|
141
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
142
|
-
Description
|
|
143
|
-
</th>
|
|
144
|
-
</tr>
|
|
145
|
-
</thead>
|
|
146
|
-
<tbody>
|
|
147
|
-
{" "}
|
|
148
|
-
<tr className="!bg-black/10">
|
|
149
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
150
|
-
withAccessibility
|
|
151
|
-
</td>
|
|
152
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
153
|
-
boolean
|
|
154
|
-
</td>
|
|
155
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
156
|
-
true
|
|
157
|
-
</td>
|
|
158
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
159
|
-
Whether to wrap the icon with accessibility feature
|
|
160
|
-
</td>
|
|
161
|
-
</tr>
|
|
162
|
-
</tbody>
|
|
163
|
-
</table>
|
|
164
|
-
</div>
|
|
165
|
-
</div>
|
|
166
|
-
<div className="!space-y-8">
|
|
167
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
168
|
-
Usage Examples
|
|
169
|
-
</h3>
|
|
170
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
171
|
-
<div className="space-y-4">
|
|
172
|
-
<h4 className="text-lg font-semibold !text-blue-300">
|
|
173
|
-
Basic Usage
|
|
174
|
-
</h4>
|
|
175
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
176
|
-
<pre className="overflow-x-auto text-sm !text-green-300">{`import { MoonIcon } from "@/components/ui/icons/message-icon"
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="info"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "Dark Mode", description: "Theme toggle to dark" },
|
|
39
|
+
{ title: "Night", description: "Sleep / quiet hours mode" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { MoonIcon } from "src/ui/icons/moon-icon"
|
|
177
44
|
|
|
178
|
-
function
|
|
45
|
+
function DarkModeToggle() {
|
|
179
46
|
return (
|
|
180
|
-
<button
|
|
181
|
-
<MoonIcon className="h-
|
|
182
|
-
<span>Send Message</span>
|
|
47
|
+
<button>
|
|
48
|
+
<MoonIcon className="h-5 w-5 text-fm-icon-active" />
|
|
183
49
|
</button>
|
|
184
50
|
)
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
<span className="text-xs text-white/60">16px</span>
|
|
220
|
-
</div>
|
|
221
|
-
<div className="text-center">
|
|
222
|
-
<MoonIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
223
|
-
<span className="text-xs text-white/60">20px</span>
|
|
224
|
-
</div>
|
|
225
|
-
<div className="text-center">
|
|
226
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
227
|
-
<span className="text-xs text-white/60">24px</span>
|
|
228
|
-
</div>
|
|
229
|
-
<div className="text-center">
|
|
230
|
-
<MoonIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
231
|
-
<span className="text-xs text-white/60">32px</span>
|
|
232
|
-
</div>
|
|
233
|
-
<div className="text-center">
|
|
234
|
-
<MoonIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
235
|
-
<span className="text-xs text-white/60">48px</span>
|
|
236
|
-
</div>
|
|
237
|
-
</div>
|
|
238
|
-
</div>
|
|
239
|
-
<div className="!space-y-4">
|
|
240
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
241
|
-
Code Example
|
|
242
|
-
</h3>
|
|
243
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
244
|
-
<pre className="overflow-x-auto text-sm !text-green-300">{`// Small (16px)
|
|
245
|
-
<MoonIcon className="h-4 w-4" />
|
|
246
|
-
|
|
247
|
-
// Medium (24px)
|
|
248
|
-
<MoonIcon className="h-6 w-6" />
|
|
249
|
-
|
|
250
|
-
// Large (32px)
|
|
251
|
-
<MoonIcon className="h-8 w-8" />
|
|
252
|
-
|
|
253
|
-
// Custom size
|
|
254
|
-
<MoonIcon width={40} height={40} />`}</pre>
|
|
255
|
-
</div>
|
|
256
|
-
</div>
|
|
257
|
-
</div>
|
|
258
|
-
</div>
|
|
259
|
-
</div>
|
|
260
|
-
</div>
|
|
261
|
-
<div className="!space-y-8">
|
|
262
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
263
|
-
Common Use Cases
|
|
264
|
-
</h3>
|
|
265
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
266
|
-
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
267
|
-
<div className="text-2xl">💬</div>
|
|
268
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
269
|
-
Messaging
|
|
270
|
-
</h4>
|
|
271
|
-
<p className="text-sm !text-white/80">
|
|
272
|
-
Chat and messaging UIs
|
|
273
|
-
</p>
|
|
274
|
-
</div>
|
|
275
|
-
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
276
|
-
<div className="text-2xl">🗨️</div>
|
|
277
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
278
|
-
Comments
|
|
279
|
-
</h4>
|
|
280
|
-
<p className="text-sm !text-white/80">
|
|
281
|
-
Comment sections and feedback
|
|
282
|
-
</p>
|
|
283
|
-
</div>
|
|
284
|
-
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
285
|
-
<div className="text-2xl">📱</div>
|
|
286
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
287
|
-
Mobile Apps
|
|
288
|
-
</h4>
|
|
289
|
-
<p className="text-sm !text-white/80">
|
|
290
|
-
Communication features in apps
|
|
291
|
-
</p>
|
|
292
|
-
</div>
|
|
293
|
-
</div>
|
|
294
|
-
</div>
|
|
295
|
-
<div className="!space-y-8">
|
|
296
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
297
|
-
Best Practices
|
|
298
|
-
</h3>
|
|
299
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
300
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
301
|
-
<h4 className="text-lg font-semibold !text-emerald-300">
|
|
302
|
-
✅ Do
|
|
303
|
-
</h4>
|
|
304
|
-
<ul className="space-y-2 text-sm !text-white/80">
|
|
305
|
-
<li className="!text-white/80">
|
|
306
|
-
Use appropriate sizes for different contexts
|
|
307
|
-
</li>
|
|
308
|
-
<li className="!text-white/80">
|
|
309
|
-
Choose colors that match your UI theme
|
|
310
|
-
</li>
|
|
311
|
-
<li className="!text-white/80">
|
|
312
|
-
Provide clear labels for icon buttons
|
|
313
|
-
</li>
|
|
314
|
-
<li className="!text-white/80">
|
|
315
|
-
Use consistent styling across your app
|
|
316
|
-
</li>
|
|
317
|
-
<li className="!text-white/80">
|
|
318
|
-
Consider accessibility in all implementations
|
|
319
|
-
</li>
|
|
320
|
-
</ul>
|
|
321
|
-
</div>
|
|
322
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
323
|
-
<h4 className="text-lg font-semibold !text-red-300">
|
|
324
|
-
❌ Don't
|
|
325
|
-
</h4>
|
|
326
|
-
<ul className="space-y-2 text-sm !text-white/80">
|
|
327
|
-
<li className="!text-white/80">
|
|
328
|
-
Use multiple icon styles in the same view
|
|
329
|
-
</li>
|
|
330
|
-
<li className="!text-white/80">
|
|
331
|
-
Overuse the icon in navigation
|
|
332
|
-
</li>
|
|
333
|
-
<li className="!text-white/80">
|
|
334
|
-
Use inappropriate sizes for the context
|
|
335
|
-
</li>
|
|
336
|
-
<li className="!text-white/80">
|
|
337
|
-
Forget to add hover states
|
|
338
|
-
</li>
|
|
339
|
-
<li className="!text-white/80">
|
|
340
|
-
Ignore accessibility requirements
|
|
341
|
-
</li>
|
|
342
|
-
</ul>
|
|
343
|
-
</div>
|
|
344
|
-
</div>
|
|
345
|
-
</div>
|
|
346
|
-
</div>
|
|
347
|
-
<div className="!space-y-8 p-7">
|
|
348
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
349
|
-
Related Icons
|
|
350
|
-
</h2>
|
|
351
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
352
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
353
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
354
|
-
<ArrowRightUpIcon className="h-6 w-6 rotate-90 text-blue-400" />
|
|
355
|
-
</div>
|
|
356
|
-
<div>
|
|
357
|
-
<div className="font-medium text-white">
|
|
358
|
-
ArrowRightDownIcon
|
|
359
|
-
</div>
|
|
360
|
-
<div className="text-xs text-white/60">
|
|
361
|
-
Download/decrease
|
|
362
|
-
</div>
|
|
363
|
-
</div>
|
|
364
|
-
</div>
|
|
365
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
366
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
|
|
367
|
-
<ArrowRightUpIcon className="h-6 w-6 -rotate-90 text-cyan-400" />
|
|
368
|
-
</div>
|
|
369
|
-
<div>
|
|
370
|
-
<div className="font-medium text-white">
|
|
371
|
-
ArrowLeftUpIcon
|
|
372
|
-
</div>
|
|
373
|
-
<div className="text-xs text-white/60">Back and up</div>
|
|
374
|
-
</div>
|
|
375
|
-
</div>
|
|
376
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
377
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
378
|
-
<span className="text-2xl">↗️</span>
|
|
379
|
-
</div>
|
|
380
|
-
<div>
|
|
381
|
-
<div className="font-medium text-white">
|
|
382
|
-
ExternalLinkIcon
|
|
383
|
-
</div>
|
|
384
|
-
<div className="text-xs text-white/60">
|
|
385
|
-
Alternative style
|
|
386
|
-
</div>
|
|
387
|
-
</div>
|
|
388
|
-
</div>
|
|
389
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
390
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
391
|
-
<span className="text-2xl">📈</span>
|
|
392
|
-
</div>
|
|
393
|
-
<div>
|
|
394
|
-
<div className="font-medium text-white">TrendingUpIcon</div>
|
|
395
|
-
<div className="text-xs text-white/60">Growth metrics</div>
|
|
396
|
-
</div>
|
|
397
|
-
</div>
|
|
398
|
-
</div>
|
|
399
|
-
</div>
|
|
400
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
401
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
402
|
-
<div className="!space-y-4 text-center">
|
|
403
|
-
<p className="!text-white/60">
|
|
404
|
-
MoonIcon is part of the Aural UI icon library, designed for
|
|
405
|
-
chat, comments, and communication interfaces.
|
|
406
|
-
</p>
|
|
407
|
-
<p className="text-sm !text-white/40">
|
|
408
|
-
Perfect for messaging apps, comment sections, and any
|
|
409
|
-
interface requiring a message or chat bubble representation.
|
|
410
|
-
</p>
|
|
411
|
-
</div>
|
|
412
|
-
</div>
|
|
413
|
-
</div>
|
|
414
|
-
</div>
|
|
415
|
-
</>
|
|
51
|
+
}`,
|
|
52
|
+
livePreview: (
|
|
53
|
+
<button>
|
|
54
|
+
<MoonIcon className="text-fm-icon-active h-6 w-6" />
|
|
55
|
+
</button>
|
|
56
|
+
),
|
|
57
|
+
}}
|
|
58
|
+
relatedIcons={[
|
|
59
|
+
{
|
|
60
|
+
name: "SunIcon",
|
|
61
|
+
description: "Light mode / brightness icon",
|
|
62
|
+
icon: SunIcon,
|
|
63
|
+
accentToken: "info",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "StarIcon",
|
|
67
|
+
description: "Star / rating icon",
|
|
68
|
+
icon: StarIcon,
|
|
69
|
+
accentToken: "positive",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "SparklesSoftIcon",
|
|
73
|
+
description: "Soft sparkle / AI glow icon",
|
|
74
|
+
icon: SparklesSoftIcon,
|
|
75
|
+
accentToken: "warning",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "SettingIcon",
|
|
79
|
+
description: "Settings / preferences icon",
|
|
80
|
+
icon: SettingIcon,
|
|
81
|
+
accentToken: "negative",
|
|
82
|
+
},
|
|
83
|
+
]}
|
|
84
|
+
/>
|
|
416
85
|
),
|
|
417
86
|
},
|
|
418
87
|
},
|
|
419
88
|
tags: ["autodocs"],
|
|
420
89
|
argTypes: {
|
|
421
|
-
|
|
422
|
-
control:
|
|
423
|
-
description: "
|
|
90
|
+
className: {
|
|
91
|
+
control: "text",
|
|
92
|
+
description: "CSS classes including color token",
|
|
424
93
|
},
|
|
425
94
|
withAccessibility: {
|
|
426
95
|
control: "boolean",
|
|
427
|
-
description: "
|
|
428
|
-
},
|
|
429
|
-
height: {
|
|
430
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
431
|
-
description: "Height of the icon in pixels",
|
|
432
|
-
},
|
|
433
|
-
className: {
|
|
434
|
-
control: "text",
|
|
435
|
-
description: "CSS classes for styling",
|
|
96
|
+
description: "Wrap with accessibility label",
|
|
436
97
|
},
|
|
437
98
|
},
|
|
438
99
|
}
|
|
@@ -440,160 +101,83 @@ function ChatButton() {
|
|
|
440
101
|
export default meta
|
|
441
102
|
type Story = StoryObj<typeof MoonIcon>
|
|
442
103
|
|
|
443
|
-
const storyParameters = {
|
|
444
|
-
backgrounds: {
|
|
445
|
-
default: "dark",
|
|
446
|
-
values: [
|
|
447
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
448
|
-
{ name: "darker", value: "#000000" },
|
|
449
|
-
],
|
|
450
|
-
},
|
|
451
|
-
}
|
|
452
|
-
|
|
453
104
|
export const Default: Story = {
|
|
454
105
|
args: {
|
|
455
|
-
|
|
456
|
-
height: 24,
|
|
457
|
-
className: "text-blue-400",
|
|
106
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
458
107
|
withAccessibility: true,
|
|
459
108
|
},
|
|
460
|
-
parameters: storyParameters,
|
|
461
109
|
render: (args) => (
|
|
462
|
-
<
|
|
110
|
+
<IconDefaultCanvas>
|
|
463
111
|
<MoonIcon {...args} />
|
|
464
|
-
</
|
|
112
|
+
</IconDefaultCanvas>
|
|
465
113
|
),
|
|
466
114
|
}
|
|
467
115
|
|
|
468
116
|
export const SizeVariations: Story = {
|
|
469
|
-
|
|
470
|
-
...storyParameters,
|
|
471
|
-
docs: {
|
|
472
|
-
description: {
|
|
473
|
-
story:
|
|
474
|
-
"MoonIcon in different sizes, from small inline buttons to large call-to-action elements.",
|
|
475
|
-
},
|
|
476
|
-
},
|
|
477
|
-
},
|
|
478
|
-
render: () => (
|
|
479
|
-
<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">
|
|
480
|
-
<div className="text-center">
|
|
481
|
-
<MoonIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
482
|
-
<span className="text-xs text-white/60">12px</span>
|
|
483
|
-
</div>
|
|
484
|
-
<div className="text-center">
|
|
485
|
-
<MoonIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
486
|
-
<span className="text-xs text-white/60">16px</span>
|
|
487
|
-
</div>
|
|
488
|
-
<div className="text-center">
|
|
489
|
-
<MoonIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
490
|
-
<span className="text-xs text-white/60">20px</span>
|
|
491
|
-
</div>
|
|
492
|
-
<div className="text-center">
|
|
493
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
494
|
-
<span className="text-xs text-white/60">24px</span>
|
|
495
|
-
</div>
|
|
496
|
-
<div className="text-center">
|
|
497
|
-
<MoonIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
498
|
-
<span className="text-xs text-white/60">32px</span>
|
|
499
|
-
</div>
|
|
500
|
-
<div className="text-center">
|
|
501
|
-
<MoonIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
502
|
-
<span className="text-xs text-white/60">48px</span>
|
|
503
|
-
</div>
|
|
504
|
-
</div>
|
|
505
|
-
),
|
|
117
|
+
render: () => <IconSizeVariations icon={MoonIcon} />,
|
|
506
118
|
}
|
|
507
119
|
|
|
508
120
|
export const ColorVariations: Story = {
|
|
509
|
-
|
|
510
|
-
...storyParameters,
|
|
511
|
-
docs: {
|
|
512
|
-
description: {
|
|
513
|
-
story:
|
|
514
|
-
"MoonIcon with different color variations using Tailwind classes.",
|
|
515
|
-
},
|
|
516
|
-
},
|
|
517
|
-
},
|
|
518
|
-
render: () => (
|
|
519
|
-
<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">
|
|
520
|
-
<div className="text-center">
|
|
521
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
522
|
-
<span className="text-xs text-white/60">Blue</span>
|
|
523
|
-
</div>
|
|
524
|
-
<div className="text-center">
|
|
525
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
|
|
526
|
-
<span className="text-xs text-white/60">Purple</span>
|
|
527
|
-
</div>
|
|
528
|
-
<div className="text-center">
|
|
529
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6 text-green-400" />
|
|
530
|
-
<span className="text-xs text-white/60">Green</span>
|
|
531
|
-
</div>
|
|
532
|
-
<div className="text-center">
|
|
533
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6 text-red-400" />
|
|
534
|
-
<span className="text-xs text-white/60">Red</span>
|
|
535
|
-
</div>
|
|
536
|
-
<div className="text-center">
|
|
537
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6 text-yellow-400" />
|
|
538
|
-
<span className="text-xs text-white/60">Yellow</span>
|
|
539
|
-
</div>
|
|
540
|
-
</div>
|
|
541
|
-
),
|
|
121
|
+
render: () => <IconColorVariations icon={MoonIcon} />,
|
|
542
122
|
}
|
|
543
123
|
|
|
544
124
|
export const UsageExamples: Story = {
|
|
545
|
-
parameters: {
|
|
546
|
-
...storyParameters,
|
|
547
|
-
docs: {
|
|
548
|
-
description: {
|
|
549
|
-
story:
|
|
550
|
-
"Common usage examples of MoonIcon, such as dark mode toggles, night mode indicators, and quiet hours.",
|
|
551
|
-
},
|
|
552
|
-
},
|
|
553
|
-
},
|
|
554
125
|
render: () => (
|
|
555
|
-
<
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
126
|
+
<IconUsageCanvas>
|
|
127
|
+
<IconUsageSection title="Theme Toggle">
|
|
128
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-1 rounded-full border p-1">
|
|
129
|
+
<button className="bg-fm-surface-primary flex h-8 w-8 items-center justify-center rounded-full">
|
|
130
|
+
<MoonIcon className="text-fm-icon-active h-4 w-4" />
|
|
131
|
+
</button>
|
|
132
|
+
<button className="flex h-8 w-8 items-center justify-center rounded-full">
|
|
133
|
+
<SunIcon className="text-fm-icon-inactive h-4 w-4" />
|
|
134
|
+
</button>
|
|
135
|
+
</div>
|
|
136
|
+
</IconUsageSection>
|
|
561
137
|
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
138
|
+
<IconUsageSection title="Night Mode Setting">
|
|
139
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-between rounded-xl border px-4 py-3">
|
|
140
|
+
<div className="flex items-center gap-3">
|
|
141
|
+
<MoonIcon className="text-fm-icon-active h-5 w-5" />
|
|
142
|
+
<div>
|
|
143
|
+
<div className="text-fm-primary font-fm-text text-sm font-medium">
|
|
144
|
+
Night Mode
|
|
145
|
+
</div>
|
|
146
|
+
<div className="text-fm-secondary font-fm-text text-xs">
|
|
147
|
+
Reduces eye strain
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
<div className="bg-fm-icon-active h-5 w-9 rounded-full" />
|
|
152
|
+
</div>
|
|
153
|
+
</IconUsageSection>
|
|
567
154
|
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
155
|
+
<IconUsageSection title="Dark / Light Pair">
|
|
156
|
+
<div className="flex gap-4">
|
|
157
|
+
<div className="flex flex-col items-center gap-1">
|
|
158
|
+
<MoonIcon className="text-fm-icon-active h-6 w-6" />
|
|
159
|
+
<span className="text-fm-secondary font-fm-text text-xs">Dark</span>
|
|
160
|
+
</div>
|
|
161
|
+
<div className="flex flex-col items-center gap-1">
|
|
162
|
+
<SunIcon className="text-fm-icon-warning h-6 w-6" />
|
|
163
|
+
<span className="text-fm-secondary font-fm-text text-xs">
|
|
164
|
+
Light
|
|
165
|
+
</span>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
</IconUsageSection>
|
|
169
|
+
</IconUsageCanvas>
|
|
574
170
|
),
|
|
575
171
|
}
|
|
576
172
|
|
|
577
173
|
export const Playground: Story = {
|
|
578
|
-
parameters: {
|
|
579
|
-
...storyParameters,
|
|
580
|
-
docs: {
|
|
581
|
-
description: {
|
|
582
|
-
story:
|
|
583
|
-
"Interactive playground to experiment with different MoonIcon configurations.",
|
|
584
|
-
},
|
|
585
|
-
},
|
|
586
|
-
},
|
|
587
174
|
args: {
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
className: "text-blue-400",
|
|
175
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
176
|
+
withAccessibility: true,
|
|
591
177
|
},
|
|
592
178
|
render: (args) => (
|
|
593
|
-
<
|
|
594
|
-
<
|
|
595
|
-
|
|
596
|
-
</div>
|
|
597
|
-
</div>
|
|
179
|
+
<IconPlaygroundCanvas>
|
|
180
|
+
<MoonIcon {...args} />
|
|
181
|
+
</IconPlaygroundCanvas>
|
|
598
182
|
),
|
|
599
183
|
}
|