aural-ui 3.0.6 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +271 -242
- package/dist/components/avatar/Avatar.stories.tsx +84 -70
- package/dist/components/button/Button.stories.tsx +7 -7
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +3 -3
- package/dist/components/char-count/CharCount.stories.tsx +9 -9
- package/dist/components/circular-loader/CircularLoader.stories.tsx +109 -93
- package/dist/components/clamp-lines/ClampLines.stories.tsx +25 -0
- package/dist/components/clamp-lines/index.tsx +6 -1
- package/dist/components/collapsible/Collapsible.stories.tsx +1 -1
- package/dist/components/command/Command.stories.tsx +52 -38
- package/dist/components/dialog/Dialog.stories.tsx +89 -84
- package/dist/components/divider/Divider.stories.tsx +86 -60
- package/dist/components/dot-loader/DotLoader.stories.tsx +12 -12
- package/dist/components/drawer/Drawer.stories.tsx +74 -44
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +42 -32
- package/dist/components/helper-text/HelperText.stories.tsx +2 -2
- package/dist/components/hover-card/HoverCard.stories.tsx +211 -178
- package/dist/components/input/Input.stories.tsx +2 -2
- package/dist/components/input/index.tsx +2 -0
- package/dist/components/label/Label.stories.tsx +10 -10
- package/dist/components/list/List.stories.tsx +58 -44
- package/dist/components/marquee/Marquee.stories.tsx +131 -113
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +47 -35
- package/dist/components/overlay/Overlay.stories.tsx +98 -92
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/popover/Popover.stories.tsx +132 -106
- package/dist/components/radio/Radio.stories.tsx +2 -2
- package/dist/components/resizable/Resizable.stories.tsx +186 -138
- package/dist/components/scroll-area/ScrollArea.stories.tsx +174 -120
- package/dist/components/search/Search.stories.tsx +81 -59
- package/dist/components/select/Select.stories.tsx +3 -1
- package/dist/components/sheet/Sheet.stories.tsx +68 -54
- package/dist/components/slider/Slider.stories.tsx +71 -47
- package/dist/components/stepper/Stepper.stories.tsx +16 -16
- package/dist/components/switch/Switch.stories.tsx +12 -12
- package/dist/components/table/Table.stories.tsx +8 -6
- package/dist/components/tabs/Tabs.stories.tsx +324 -268
- package/dist/components/textarea/TextArea.stories.tsx +1 -1
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +16 -10
- package/dist/components/toast/Toast.stories.tsx +51 -45
- package/dist/components/toggle/Toggle.stories.tsx +111 -89
- package/dist/components/tooltip/Tooltip.stories.tsx +160 -144
- package/dist/icons/Icons.stories.tsx +2 -2
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +287 -237
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +290 -248
- package/dist/icons/all-icons.tsx +97 -81
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +312 -270
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +294 -244
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +309 -279
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +294 -258
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +289 -255
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +288 -256
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +322 -288
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +340 -296
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +197 -177
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +390 -328
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +313 -277
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +367 -309
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +356 -308
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +280 -234
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +370 -326
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +300 -256
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +298 -262
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +294 -260
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +291 -259
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +286 -256
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +282 -256
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +292 -256
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +338 -290
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +167 -148
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +342 -296
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +342 -296
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +280 -238
- package/dist/icons/command-icon/CommandIcon.stories.tsx +328 -280
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +294 -256
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +285 -235
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +308 -266
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +271 -231
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +330 -278
- package/dist/icons/email-icon/EmailIcon.stories.tsx +303 -257
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +324 -286
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +317 -271
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +320 -272
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +322 -280
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +315 -277
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +199 -177
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +304 -264
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +311 -277
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +327 -287
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +314 -278
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +113 -98
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +274 -226
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +349 -303
- package/dist/icons/head-icon/HeadIcon.stories.tsx +286 -246
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +312 -268
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +246 -210
- package/dist/icons/image-icon/ImageIcon.stories.tsx +330 -284
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +326 -282
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +330 -294
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +288 -234
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +386 -330
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +305 -263
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +295 -259
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +296 -256
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +322 -282
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +399 -359
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +314 -272
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +238 -206
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +322 -276
- package/dist/icons/message-icon/MessageIcon.stories.tsx +192 -170
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +348 -304
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +191 -167
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +380 -326
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +345 -291
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +310 -266
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +311 -271
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +311 -271
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +309 -271
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +248 -210
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +310 -262
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +274 -236
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +324 -280
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +323 -281
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +288 -240
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +315 -273
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +278 -234
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +161 -151
- package/dist/icons/search-icon/SearchIcon.stories.tsx +324 -284
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +306 -264
- package/dist/icons/share-icon/ShareIcon.stories.tsx +314 -272
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +281 -235
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +309 -250
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +317 -279
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +315 -279
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +299 -253
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +185 -169
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +192 -168
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +212 -178
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +290 -244
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +286 -234
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +272 -230
- package/dist/icons/sun-icon/SunIcon.stories.tsx +262 -226
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +321 -279
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +332 -282
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +394 -342
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +338 -290
- package/dist/icons/tick-icon/TickIcon.stories.tsx +364 -315
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +293 -253
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +396 -338
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +291 -247
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +309 -271
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +336 -290
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +382 -334
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +349 -305
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +327 -295
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +336 -296
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +314 -274
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +311 -261
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -12,9 +12,9 @@ const meta: Meta<typeof MoonIcon> = {
|
|
|
12
12
|
backgrounds: {
|
|
13
13
|
default: "dark",
|
|
14
14
|
values: [
|
|
15
|
-
{ name: "dark", value: "
|
|
16
|
-
{ name: "darker", value: "
|
|
17
|
-
{ name: "light", value: "
|
|
15
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
16
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
17
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
18
18
|
],
|
|
19
19
|
},
|
|
20
20
|
docs: {
|
|
@@ -32,50 +32,56 @@ const meta: Meta<typeof MoonIcon> = {
|
|
|
32
32
|
.sbdocs-content { max-width: none !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
|
|
33
33
|
.docs-story { background: transparent !important; }
|
|
34
34
|
.sbdocs { background: transparent !important; }
|
|
35
|
-
body { background:
|
|
36
|
-
#storybook-docs { background:
|
|
35
|
+
body { background: var(--color-fm-surface-primary) !important; }
|
|
36
|
+
#storybook-docs { background: var(--color-fm-surface-primary) !important; }
|
|
37
37
|
.sbdocs-preview { background: transparent !important; border: none !important; }
|
|
38
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 { color:
|
|
39
|
-
.sbdocs-p, .sbdocs-li { color:
|
|
40
|
-
.sbdocs-code { background:
|
|
41
|
-
.sbdocs-pre { background:
|
|
42
|
-
.sbdocs-table { background:
|
|
43
|
-
.sbdocs-table th { background:
|
|
44
|
-
.sbdocs-table td { color:
|
|
38
|
+
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 { color: var(--color-fm-icon-active) !important; }
|
|
39
|
+
.sbdocs-p, .sbdocs-li { color: var(--color-fm-secondary) !important; }
|
|
40
|
+
.sbdocs-code { background: var(--color-fm-surface-secondary) !important; color: var(--color-fm-secondary-500) !important; border: 1px solid var(--color-fm-divider-secondary) !important; }
|
|
41
|
+
.sbdocs-pre { background: var(--color-fm-surface-secondary) !important; border: 1px solid var(--color-fm-divider-secondary) !important; }
|
|
42
|
+
.sbdocs-table { background: var(--color-fm-surface-secondary) !important; border: 1px solid var(--color-fm-divider-secondary) !important; }
|
|
43
|
+
.sbdocs-table th { background: var(--color-fm-surface-secondary) !important; color: var(--color-fm-icon-active) !important; border-bottom: 1px solid var(--color-fm-divider-secondary) !important; }
|
|
44
|
+
.sbdocs-table td { color: var(--color-fm-secondary) !important; border-bottom: 1px solid var(--color-fm-divider-tertiary) !important; }
|
|
45
45
|
`}</style>
|
|
46
|
-
<div className="
|
|
47
|
-
<div className="relative overflow-hidden border-b
|
|
48
|
-
<div className="absolute inset-0 bg-
|
|
46
|
+
<div className="bg-fm-surface-primary min-h-screen">
|
|
47
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
48
|
+
<div className="from-fm-secondary-500/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
49
49
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
50
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
|
|
52
|
-
<MoonIcon className="h-12 w-12
|
|
51
|
+
<div className="border-fm-icon-info/30 from-fm-icon-info/20 to-fm-icon-info/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
52
|
+
<MoonIcon className="text-fm-icon-info h-12 w-12" />
|
|
53
53
|
</div>
|
|
54
|
-
<h1 className="text-5xl font-bold
|
|
55
|
-
|
|
54
|
+
<h1 className="text-fm-icon-active! text-5xl font-bold">
|
|
55
|
+
MoonIcon
|
|
56
|
+
</h1>
|
|
57
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
56
58
|
A message or chat bubble icon, ideal for messaging,
|
|
57
59
|
comments, and communication interfaces.
|
|
58
60
|
</p>
|
|
59
61
|
<div className="mx-auto flex items-center justify-center gap-8">
|
|
60
62
|
<div className="text-center">
|
|
61
|
-
<div className="text-3xl font-bold
|
|
63
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
62
64
|
Chat
|
|
63
65
|
</div>
|
|
64
|
-
<div className="text-
|
|
66
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
67
|
+
Conversations
|
|
68
|
+
</div>
|
|
65
69
|
</div>
|
|
66
|
-
<div className="h-8 w-px
|
|
70
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
67
71
|
<div className="text-center">
|
|
68
|
-
<div className="text-3xl font-bold
|
|
72
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
69
73
|
Comments
|
|
70
74
|
</div>
|
|
71
|
-
<div className="text-
|
|
75
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
76
|
+
Feedback
|
|
77
|
+
</div>
|
|
72
78
|
</div>
|
|
73
|
-
<div className="h-8 w-px
|
|
79
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
74
80
|
<div className="text-center">
|
|
75
|
-
<div className="text-3xl font-bold
|
|
81
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
76
82
|
Accessible
|
|
77
83
|
</div>
|
|
78
|
-
<div className="text-
|
|
84
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
79
85
|
Screen reader support
|
|
80
86
|
</div>
|
|
81
87
|
</div>
|
|
@@ -85,77 +91,79 @@ const meta: Meta<typeof MoonIcon> = {
|
|
|
85
91
|
</div>
|
|
86
92
|
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
87
93
|
<div className="!space-y-8">
|
|
88
|
-
<h3 className="text-center text-2xl font-bold
|
|
94
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
89
95
|
Key Features
|
|
90
96
|
</h3>
|
|
91
97
|
<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
|
|
98
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
93
99
|
<div className="text-3xl">💬</div>
|
|
94
|
-
<h4 className="text-lg font-semibold
|
|
100
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
95
101
|
Message Bubble
|
|
96
102
|
</h4>
|
|
97
|
-
<p className="text-
|
|
103
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
98
104
|
Represents chat, comments, and communication
|
|
99
105
|
</p>
|
|
100
106
|
</div>
|
|
101
|
-
<div className="space-y-4 rounded-lg border
|
|
107
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
102
108
|
<div className="text-3xl">♿</div>
|
|
103
|
-
<h4 className="text-lg font-semibold
|
|
109
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
104
110
|
Accessibility
|
|
105
111
|
</h4>
|
|
106
|
-
<p className="text-
|
|
112
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
107
113
|
Built with screen reader support
|
|
108
114
|
</p>
|
|
109
115
|
</div>
|
|
110
|
-
<div className="space-y-4 rounded-lg border
|
|
116
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
111
117
|
<div className="text-3xl">🎨</div>
|
|
112
|
-
<h4 className="text-lg font-semibold
|
|
118
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
113
119
|
Customizable
|
|
114
120
|
</h4>
|
|
115
|
-
<p className="text-
|
|
121
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
116
122
|
Flexible styling options
|
|
117
123
|
</p>
|
|
118
124
|
</div>
|
|
119
125
|
</div>
|
|
120
126
|
</div>
|
|
121
127
|
<div className="!space-y-8">
|
|
122
|
-
<h3 className="text-center text-2xl font-bold
|
|
128
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
123
129
|
API Reference
|
|
124
130
|
</h3>
|
|
125
|
-
<div className="overflow-hidden rounded-lg border
|
|
126
|
-
<div className="bg-
|
|
127
|
-
<h4 className="text-lg font-semibold
|
|
131
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
132
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
133
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
134
|
+
Props
|
|
135
|
+
</h4>
|
|
128
136
|
</div>
|
|
129
137
|
<table className="!my-0 w-full">
|
|
130
|
-
<thead className="bg-
|
|
131
|
-
<tr className="border-
|
|
132
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
138
|
+
<thead className="bg-fm-surface-secondary">
|
|
139
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
140
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
133
141
|
Prop
|
|
134
142
|
</th>
|
|
135
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
143
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
136
144
|
Type
|
|
137
145
|
</th>
|
|
138
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
146
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
139
147
|
Default
|
|
140
148
|
</th>
|
|
141
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
149
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
142
150
|
Description
|
|
143
151
|
</th>
|
|
144
152
|
</tr>
|
|
145
153
|
</thead>
|
|
146
154
|
<tbody>
|
|
147
155
|
{" "}
|
|
148
|
-
<tr className="
|
|
149
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
156
|
+
<tr className="bg-fm-surface-secondary!">
|
|
157
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
150
158
|
withAccessibility
|
|
151
159
|
</td>
|
|
152
|
-
<td className="px-6 py-4 text-sm
|
|
160
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
153
161
|
boolean
|
|
154
162
|
</td>
|
|
155
|
-
<td className="px-6 py-4 text-sm
|
|
163
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
156
164
|
true
|
|
157
165
|
</td>
|
|
158
|
-
<td className="px-6 py-4 text-sm
|
|
166
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
159
167
|
Whether to wrap the icon with accessibility feature
|
|
160
168
|
</td>
|
|
161
169
|
</tr>
|
|
@@ -164,16 +172,16 @@ const meta: Meta<typeof MoonIcon> = {
|
|
|
164
172
|
</div>
|
|
165
173
|
</div>
|
|
166
174
|
<div className="!space-y-8">
|
|
167
|
-
<h3 className="text-center text-2xl font-bold
|
|
175
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
168
176
|
Usage Examples
|
|
169
177
|
</h3>
|
|
170
178
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
171
179
|
<div className="space-y-4">
|
|
172
|
-
<h4 className="text-lg font-semibold
|
|
180
|
+
<h4 className="text-fm-icon-info! text-lg font-semibold">
|
|
173
181
|
Basic Usage
|
|
174
182
|
</h4>
|
|
175
|
-
<div className="rounded-lg
|
|
176
|
-
<pre className="overflow-x-auto text-sm
|
|
183
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
184
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">{`import { MoonIcon } from "@/components/ui/icons/message-icon"
|
|
177
185
|
|
|
178
186
|
function ChatButton() {
|
|
179
187
|
return (
|
|
@@ -186,12 +194,12 @@ function ChatButton() {
|
|
|
186
194
|
</div>
|
|
187
195
|
</div>
|
|
188
196
|
<div className="space-y-4">
|
|
189
|
-
<h4 className="text-lg font-semibold
|
|
197
|
+
<h4 className="text-fm-icon-info! text-lg font-semibold">
|
|
190
198
|
Live Preview
|
|
191
199
|
</h4>
|
|
192
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
193
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
194
|
-
<MoonIcon className="h-4 w-4
|
|
200
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
201
|
+
<button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
202
|
+
<MoonIcon className="text-fm-icon-info h-4 w-4" />
|
|
195
203
|
<span>Send Message</span>
|
|
196
204
|
</button>
|
|
197
205
|
</div>
|
|
@@ -199,49 +207,61 @@ function ChatButton() {
|
|
|
199
207
|
</div>
|
|
200
208
|
</div>
|
|
201
209
|
<div className="!space-y-8">
|
|
202
|
-
<h3 className="text-center text-2xl font-bold
|
|
210
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
203
211
|
Size Examples
|
|
204
212
|
</h3>
|
|
205
|
-
<div className="rounded-lg border
|
|
213
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
206
214
|
<div className="!space-y-6">
|
|
207
215
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
208
216
|
<div className="!space-y-4">
|
|
209
|
-
<h3 className="text-lg font-semibold
|
|
217
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
210
218
|
Standard Sizes
|
|
211
219
|
</h3>
|
|
212
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
220
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
213
221
|
<div className="text-center">
|
|
214
|
-
<MoonIcon className="!mx-auto mb-2 h-3 w-3
|
|
215
|
-
<span className="text-
|
|
222
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
223
|
+
<span className="text-fm-tertiary text-xs">
|
|
224
|
+
12px
|
|
225
|
+
</span>
|
|
216
226
|
</div>
|
|
217
227
|
<div className="text-center">
|
|
218
|
-
<MoonIcon className="!mx-auto mb-2 h-4 w-4
|
|
219
|
-
<span className="text-
|
|
228
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
229
|
+
<span className="text-fm-tertiary text-xs">
|
|
230
|
+
16px
|
|
231
|
+
</span>
|
|
220
232
|
</div>
|
|
221
233
|
<div className="text-center">
|
|
222
|
-
<MoonIcon className="!mx-auto mb-2 h-5 w-5
|
|
223
|
-
<span className="text-
|
|
234
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
235
|
+
<span className="text-fm-tertiary text-xs">
|
|
236
|
+
20px
|
|
237
|
+
</span>
|
|
224
238
|
</div>
|
|
225
239
|
<div className="text-center">
|
|
226
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6
|
|
227
|
-
<span className="text-
|
|
240
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
241
|
+
<span className="text-fm-tertiary text-xs">
|
|
242
|
+
24px
|
|
243
|
+
</span>
|
|
228
244
|
</div>
|
|
229
245
|
<div className="text-center">
|
|
230
|
-
<MoonIcon className="!mx-auto mb-2 h-8 w-8
|
|
231
|
-
<span className="text-
|
|
246
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
247
|
+
<span className="text-fm-tertiary text-xs">
|
|
248
|
+
32px
|
|
249
|
+
</span>
|
|
232
250
|
</div>
|
|
233
251
|
<div className="text-center">
|
|
234
|
-
<MoonIcon className="!mx-auto mb-2 h-12 w-12
|
|
235
|
-
<span className="text-
|
|
252
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
253
|
+
<span className="text-fm-tertiary text-xs">
|
|
254
|
+
48px
|
|
255
|
+
</span>
|
|
236
256
|
</div>
|
|
237
257
|
</div>
|
|
238
258
|
</div>
|
|
239
259
|
<div className="!space-y-4">
|
|
240
|
-
<h3 className="text-lg font-semibold
|
|
260
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
241
261
|
Code Example
|
|
242
262
|
</h3>
|
|
243
|
-
<div className="rounded-lg
|
|
244
|
-
<pre className="overflow-x-auto text-sm
|
|
263
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
264
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">{`// Small (16px)
|
|
245
265
|
<MoonIcon className="h-4 w-4" />
|
|
246
266
|
|
|
247
267
|
// Medium (24px)
|
|
@@ -259,84 +279,84 @@ function ChatButton() {
|
|
|
259
279
|
</div>
|
|
260
280
|
</div>
|
|
261
281
|
<div className="!space-y-8">
|
|
262
|
-
<h3 className="text-center text-2xl font-bold
|
|
282
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
263
283
|
Common Use Cases
|
|
264
284
|
</h3>
|
|
265
285
|
<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
|
|
286
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
267
287
|
<div className="text-2xl">💬</div>
|
|
268
|
-
<h4 className="text-lg font-semibold
|
|
288
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
269
289
|
Messaging
|
|
270
290
|
</h4>
|
|
271
|
-
<p className="text-
|
|
291
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
272
292
|
Chat and messaging UIs
|
|
273
293
|
</p>
|
|
274
294
|
</div>
|
|
275
|
-
<div className="space-y-3 rounded-lg border
|
|
295
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
276
296
|
<div className="text-2xl">🗨️</div>
|
|
277
|
-
<h4 className="text-lg font-semibold
|
|
297
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
278
298
|
Comments
|
|
279
299
|
</h4>
|
|
280
|
-
<p className="text-
|
|
300
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
281
301
|
Comment sections and feedback
|
|
282
302
|
</p>
|
|
283
303
|
</div>
|
|
284
|
-
<div className="space-y-3 rounded-lg border
|
|
304
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
285
305
|
<div className="text-2xl">📱</div>
|
|
286
|
-
<h4 className="text-lg font-semibold
|
|
306
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
287
307
|
Mobile Apps
|
|
288
308
|
</h4>
|
|
289
|
-
<p className="text-
|
|
309
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
290
310
|
Communication features in apps
|
|
291
311
|
</p>
|
|
292
312
|
</div>
|
|
293
313
|
</div>
|
|
294
314
|
</div>
|
|
295
315
|
<div className="!space-y-8">
|
|
296
|
-
<h3 className="text-center text-2xl font-bold
|
|
316
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
297
317
|
Best Practices
|
|
298
318
|
</h3>
|
|
299
319
|
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
300
|
-
<div className="space-y-4 rounded-lg border
|
|
301
|
-
<h4 className="text-lg font-semibold
|
|
320
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
321
|
+
<h4 className="text-fm-icon-positive! text-lg font-semibold">
|
|
302
322
|
✅ Do
|
|
303
323
|
</h4>
|
|
304
|
-
<ul className="space-y-2 text-sm
|
|
305
|
-
<li className="
|
|
324
|
+
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
325
|
+
<li className="text-fm-icon-active!/80">
|
|
306
326
|
Use appropriate sizes for different contexts
|
|
307
327
|
</li>
|
|
308
|
-
<li className="
|
|
328
|
+
<li className="text-fm-icon-active!/80">
|
|
309
329
|
Choose colors that match your UI theme
|
|
310
330
|
</li>
|
|
311
|
-
<li className="
|
|
331
|
+
<li className="text-fm-icon-active!/80">
|
|
312
332
|
Provide clear labels for icon buttons
|
|
313
333
|
</li>
|
|
314
|
-
<li className="
|
|
334
|
+
<li className="text-fm-icon-active!/80">
|
|
315
335
|
Use consistent styling across your app
|
|
316
336
|
</li>
|
|
317
|
-
<li className="
|
|
337
|
+
<li className="text-fm-icon-active!/80">
|
|
318
338
|
Consider accessibility in all implementations
|
|
319
339
|
</li>
|
|
320
340
|
</ul>
|
|
321
341
|
</div>
|
|
322
|
-
<div className="space-y-4 rounded-lg border
|
|
323
|
-
<h4 className="text-lg font-semibold
|
|
342
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
343
|
+
<h4 className="text-fm-icon-negative! text-lg font-semibold">
|
|
324
344
|
❌ Don't
|
|
325
345
|
</h4>
|
|
326
|
-
<ul className="space-y-2 text-sm
|
|
327
|
-
<li className="
|
|
346
|
+
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
347
|
+
<li className="text-fm-icon-active!/80">
|
|
328
348
|
Use multiple icon styles in the same view
|
|
329
349
|
</li>
|
|
330
|
-
<li className="
|
|
350
|
+
<li className="text-fm-icon-active!/80">
|
|
331
351
|
Overuse the icon in navigation
|
|
332
352
|
</li>
|
|
333
|
-
<li className="
|
|
353
|
+
<li className="text-fm-icon-active!/80">
|
|
334
354
|
Use inappropriate sizes for the context
|
|
335
355
|
</li>
|
|
336
|
-
<li className="
|
|
356
|
+
<li className="text-fm-icon-active!/80">
|
|
337
357
|
Forget to add hover states
|
|
338
358
|
</li>
|
|
339
|
-
<li className="
|
|
359
|
+
<li className="text-fm-icon-active!/80">
|
|
340
360
|
Ignore accessibility requirements
|
|
341
361
|
</li>
|
|
342
362
|
</ul>
|
|
@@ -345,66 +365,70 @@ function ChatButton() {
|
|
|
345
365
|
</div>
|
|
346
366
|
</div>
|
|
347
367
|
<div className="!space-y-8 p-7">
|
|
348
|
-
<h2 className="text-center text-3xl font-bold
|
|
368
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
349
369
|
Related Icons
|
|
350
370
|
</h2>
|
|
351
371
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
352
|
-
<div className="!space-y-3 rounded-lg border
|
|
353
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
354
|
-
<ArrowRightUpIcon className="h-6 w-6 rotate-90
|
|
372
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
373
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
374
|
+
<ArrowRightUpIcon className="text-fm-icon-info h-6 w-6 rotate-90" />
|
|
355
375
|
</div>
|
|
356
376
|
<div>
|
|
357
|
-
<div className="font-medium
|
|
377
|
+
<div className="text-fm-icon-active font-medium">
|
|
358
378
|
ArrowRightDownIcon
|
|
359
379
|
</div>
|
|
360
|
-
<div className="text-
|
|
380
|
+
<div className="text-fm-tertiary text-xs">
|
|
361
381
|
Download/decrease
|
|
362
382
|
</div>
|
|
363
383
|
</div>
|
|
364
384
|
</div>
|
|
365
|
-
<div className="!space-y-3 rounded-lg border
|
|
366
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
367
|
-
<ArrowRightUpIcon className="h-6 w-6 -rotate-90
|
|
385
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
386
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
387
|
+
<ArrowRightUpIcon className="text-fm-icon-info h-6 w-6 -rotate-90" />
|
|
368
388
|
</div>
|
|
369
389
|
<div>
|
|
370
|
-
<div className="font-medium
|
|
390
|
+
<div className="text-fm-icon-active font-medium">
|
|
371
391
|
ArrowLeftUpIcon
|
|
372
392
|
</div>
|
|
373
|
-
<div className="text-
|
|
393
|
+
<div className="text-fm-tertiary text-xs">Back and up</div>
|
|
374
394
|
</div>
|
|
375
395
|
</div>
|
|
376
|
-
<div className="!space-y-3 rounded-lg border
|
|
377
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
396
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
397
|
+
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
378
398
|
<span className="text-2xl">↗️</span>
|
|
379
399
|
</div>
|
|
380
400
|
<div>
|
|
381
|
-
<div className="font-medium
|
|
401
|
+
<div className="text-fm-icon-active font-medium">
|
|
382
402
|
ExternalLinkIcon
|
|
383
403
|
</div>
|
|
384
|
-
<div className="text-
|
|
404
|
+
<div className="text-fm-tertiary text-xs">
|
|
385
405
|
Alternative style
|
|
386
406
|
</div>
|
|
387
407
|
</div>
|
|
388
408
|
</div>
|
|
389
|
-
<div className="!space-y-3 rounded-lg border
|
|
390
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
409
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
410
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
391
411
|
<span className="text-2xl">📈</span>
|
|
392
412
|
</div>
|
|
393
413
|
<div>
|
|
394
|
-
<div className="font-medium
|
|
395
|
-
|
|
414
|
+
<div className="text-fm-icon-active font-medium">
|
|
415
|
+
TrendingUpIcon
|
|
416
|
+
</div>
|
|
417
|
+
<div className="text-fm-tertiary text-xs">
|
|
418
|
+
Growth metrics
|
|
419
|
+
</div>
|
|
396
420
|
</div>
|
|
397
421
|
</div>
|
|
398
422
|
</div>
|
|
399
423
|
</div>
|
|
400
|
-
<div className="border-
|
|
424
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
401
425
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
402
426
|
<div className="!space-y-4 text-center">
|
|
403
|
-
<p className="
|
|
427
|
+
<p className="text-fm-tertiary!">
|
|
404
428
|
MoonIcon is part of the Aural UI icon library, designed for
|
|
405
429
|
chat, comments, and communication interfaces.
|
|
406
430
|
</p>
|
|
407
|
-
<p className="text-
|
|
431
|
+
<p className="text-fm-placeholder! text-sm">
|
|
408
432
|
Perfect for messaging apps, comment sections, and any
|
|
409
433
|
interface requiring a message or chat bubble representation.
|
|
410
434
|
</p>
|
|
@@ -444,8 +468,8 @@ const storyParameters = {
|
|
|
444
468
|
backgrounds: {
|
|
445
469
|
default: "dark",
|
|
446
470
|
values: [
|
|
447
|
-
{ name: "dark", value: "
|
|
448
|
-
{ name: "darker", value: "
|
|
471
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
472
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
449
473
|
],
|
|
450
474
|
},
|
|
451
475
|
}
|
|
@@ -454,12 +478,12 @@ export const Default: Story = {
|
|
|
454
478
|
args: {
|
|
455
479
|
width: 24,
|
|
456
480
|
height: 24,
|
|
457
|
-
className: "text-
|
|
481
|
+
className: "text-fm-icon-info",
|
|
458
482
|
withAccessibility: true,
|
|
459
483
|
},
|
|
460
484
|
parameters: storyParameters,
|
|
461
485
|
render: (args) => (
|
|
462
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
486
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-32 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
463
487
|
<MoonIcon {...args} />
|
|
464
488
|
</div>
|
|
465
489
|
),
|
|
@@ -476,30 +500,30 @@ export const SizeVariations: Story = {
|
|
|
476
500
|
},
|
|
477
501
|
},
|
|
478
502
|
render: () => (
|
|
479
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
503
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
|
|
480
504
|
<div className="text-center">
|
|
481
|
-
<MoonIcon className="!mx-auto mb-2 h-3 w-3
|
|
482
|
-
<span className="text-
|
|
505
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
506
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
483
507
|
</div>
|
|
484
508
|
<div className="text-center">
|
|
485
|
-
<MoonIcon className="!mx-auto mb-2 h-4 w-4
|
|
486
|
-
<span className="text-
|
|
509
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
510
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
487
511
|
</div>
|
|
488
512
|
<div className="text-center">
|
|
489
|
-
<MoonIcon className="!mx-auto mb-2 h-5 w-5
|
|
490
|
-
<span className="text-
|
|
513
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
514
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
491
515
|
</div>
|
|
492
516
|
<div className="text-center">
|
|
493
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6
|
|
494
|
-
<span className="text-
|
|
517
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
518
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
495
519
|
</div>
|
|
496
520
|
<div className="text-center">
|
|
497
|
-
<MoonIcon className="!mx-auto mb-2 h-8 w-8
|
|
498
|
-
<span className="text-
|
|
521
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
522
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
499
523
|
</div>
|
|
500
524
|
<div className="text-center">
|
|
501
|
-
<MoonIcon className="!mx-auto mb-2 h-12 w-12
|
|
502
|
-
<span className="text-
|
|
525
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
526
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
503
527
|
</div>
|
|
504
528
|
</div>
|
|
505
529
|
),
|
|
@@ -516,26 +540,26 @@ export const ColorVariations: Story = {
|
|
|
516
540
|
},
|
|
517
541
|
},
|
|
518
542
|
render: () => (
|
|
519
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
543
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
|
|
520
544
|
<div className="text-center">
|
|
521
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6
|
|
522
|
-
<span className="text-
|
|
545
|
+
<MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
546
|
+
<span className="text-fm-tertiary text-xs">Blue</span>
|
|
523
547
|
</div>
|
|
524
548
|
<div className="text-center">
|
|
525
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6
|
|
526
|
-
<span className="text-
|
|
549
|
+
<MoonIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
|
|
550
|
+
<span className="text-fm-tertiary text-xs">Purple</span>
|
|
527
551
|
</div>
|
|
528
552
|
<div className="text-center">
|
|
529
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6
|
|
530
|
-
<span className="text-
|
|
553
|
+
<MoonIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
554
|
+
<span className="text-fm-tertiary text-xs">Green</span>
|
|
531
555
|
</div>
|
|
532
556
|
<div className="text-center">
|
|
533
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6
|
|
534
|
-
<span className="text-
|
|
557
|
+
<MoonIcon className="text-fm-icon-negative !mx-auto mb-2 h-6 w-6" />
|
|
558
|
+
<span className="text-fm-tertiary text-xs">Red</span>
|
|
535
559
|
</div>
|
|
536
560
|
<div className="text-center">
|
|
537
|
-
<MoonIcon className="!mx-auto mb-2 h-6 w-6
|
|
538
|
-
<span className="text-
|
|
561
|
+
<MoonIcon className="text-fm-icon-warning !mx-auto mb-2 h-6 w-6" />
|
|
562
|
+
<span className="text-fm-tertiary text-xs">Yellow</span>
|
|
539
563
|
</div>
|
|
540
564
|
</div>
|
|
541
565
|
),
|
|
@@ -552,22 +576,22 @@ export const UsageExamples: Story = {
|
|
|
552
576
|
},
|
|
553
577
|
},
|
|
554
578
|
render: () => (
|
|
555
|
-
<div className="flex h-64 min-h-dvh flex-col items-center justify-center gap-8 rounded-lg bg-
|
|
579
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh flex-col items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
|
|
556
580
|
{/* Dark Mode Toggle */}
|
|
557
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
558
|
-
<MoonIcon className="h-4 w-4
|
|
581
|
+
<button className="border-fm-icon-warning/20 bg-fm-icon-warning/10 text-fm-icon-active hover:bg-fm-icon-warning/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
582
|
+
<MoonIcon className="text-fm-icon-warning h-4 w-4" />
|
|
559
583
|
<span>Enable Dark Mode</span>
|
|
560
584
|
</button>
|
|
561
585
|
|
|
562
586
|
{/* Quiet Hours Setting */}
|
|
563
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
564
|
-
<MoonIcon className="h-4 w-4
|
|
565
|
-
<span className="text-
|
|
587
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
588
|
+
<MoonIcon className="text-fm-icon-info h-4 w-4" />
|
|
589
|
+
<span className="text-fm-icon-active/80">Quiet Hours: On</span>
|
|
566
590
|
</div>
|
|
567
591
|
|
|
568
592
|
{/* Sleep Mode */}
|
|
569
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
570
|
-
<MoonIcon className="h-4 w-4
|
|
593
|
+
<button className="border-fm-secondary-500/20 bg-fm-secondary-500/10 text-fm-icon-active hover:bg-fm-secondary-500/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
594
|
+
<MoonIcon className="text-fm-secondary-600 h-4 w-4" />
|
|
571
595
|
<span>Activate Sleep Mode</span>
|
|
572
596
|
</button>
|
|
573
597
|
</div>
|
|
@@ -587,11 +611,11 @@ export const Playground: Story = {
|
|
|
587
611
|
args: {
|
|
588
612
|
width: 32,
|
|
589
613
|
height: 32,
|
|
590
|
-
className: "text-
|
|
614
|
+
className: "text-fm-icon-info",
|
|
591
615
|
},
|
|
592
616
|
render: (args) => (
|
|
593
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
594
|
-
<div className="rounded-lg border
|
|
617
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
618
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
595
619
|
<MoonIcon {...args} />
|
|
596
620
|
</div>
|
|
597
621
|
</div>
|