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 MessageIcon> = {
|
|
|
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,52 +32,56 @@ const meta: Meta<typeof MessageIcon> = {
|
|
|
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
|
-
<MessageIcon 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
|
+
<MessageIcon className="text-fm-icon-info h-12 w-12" />
|
|
53
53
|
</div>
|
|
54
|
-
<h1 className="text-5xl font-bold
|
|
54
|
+
<h1 className="text-fm-icon-active! text-5xl font-bold">
|
|
55
55
|
MessageIcon
|
|
56
56
|
</h1>
|
|
57
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
57
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
58
58
|
A message or chat bubble icon, ideal for messaging,
|
|
59
59
|
comments, and communication interfaces.
|
|
60
60
|
</p>
|
|
61
61
|
<div className="mx-auto flex items-center justify-center gap-8">
|
|
62
62
|
<div className="text-center">
|
|
63
|
-
<div className="text-3xl font-bold
|
|
63
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
64
64
|
Chat
|
|
65
65
|
</div>
|
|
66
|
-
<div className="text-
|
|
66
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
67
|
+
Conversations
|
|
68
|
+
</div>
|
|
67
69
|
</div>
|
|
68
|
-
<div className="h-8 w-px
|
|
70
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
69
71
|
<div className="text-center">
|
|
70
|
-
<div className="text-3xl font-bold
|
|
72
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
71
73
|
Comments
|
|
72
74
|
</div>
|
|
73
|
-
<div className="text-
|
|
75
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
76
|
+
Feedback
|
|
77
|
+
</div>
|
|
74
78
|
</div>
|
|
75
|
-
<div className="h-8 w-px
|
|
79
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
76
80
|
<div className="text-center">
|
|
77
|
-
<div className="text-3xl font-bold
|
|
81
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
78
82
|
Accessible
|
|
79
83
|
</div>
|
|
80
|
-
<div className="text-
|
|
84
|
+
<div className="text-fm-icon-active/80 text-sm">
|
|
81
85
|
Screen reader support
|
|
82
86
|
</div>
|
|
83
87
|
</div>
|
|
@@ -87,77 +91,79 @@ const meta: Meta<typeof MessageIcon> = {
|
|
|
87
91
|
</div>
|
|
88
92
|
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
89
93
|
<div className="!space-y-8">
|
|
90
|
-
<h3 className="text-center text-2xl font-bold
|
|
94
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
91
95
|
Key Features
|
|
92
96
|
</h3>
|
|
93
97
|
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
94
|
-
<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">
|
|
95
99
|
<div className="text-3xl">💬</div>
|
|
96
|
-
<h4 className="text-lg font-semibold
|
|
100
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
97
101
|
Message Bubble
|
|
98
102
|
</h4>
|
|
99
|
-
<p className="text-
|
|
103
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
100
104
|
Represents chat, comments, and communication
|
|
101
105
|
</p>
|
|
102
106
|
</div>
|
|
103
|
-
<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">
|
|
104
108
|
<div className="text-3xl">♿</div>
|
|
105
|
-
<h4 className="text-lg font-semibold
|
|
109
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
106
110
|
Accessibility
|
|
107
111
|
</h4>
|
|
108
|
-
<p className="text-
|
|
112
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
109
113
|
Built with screen reader support
|
|
110
114
|
</p>
|
|
111
115
|
</div>
|
|
112
|
-
<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">
|
|
113
117
|
<div className="text-3xl">🎨</div>
|
|
114
|
-
<h4 className="text-lg font-semibold
|
|
118
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
115
119
|
Customizable
|
|
116
120
|
</h4>
|
|
117
|
-
<p className="text-
|
|
121
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
118
122
|
Flexible styling options
|
|
119
123
|
</p>
|
|
120
124
|
</div>
|
|
121
125
|
</div>
|
|
122
126
|
</div>
|
|
123
127
|
<div className="!space-y-8">
|
|
124
|
-
<h3 className="text-center text-2xl font-bold
|
|
128
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
125
129
|
API Reference
|
|
126
130
|
</h3>
|
|
127
|
-
<div className="overflow-hidden rounded-lg border
|
|
128
|
-
<div className="bg-
|
|
129
|
-
<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>
|
|
130
136
|
</div>
|
|
131
137
|
<table className="!my-0 w-full">
|
|
132
|
-
<thead className="bg-
|
|
133
|
-
<tr className="border-
|
|
134
|
-
<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">
|
|
135
141
|
Prop
|
|
136
142
|
</th>
|
|
137
|
-
<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">
|
|
138
144
|
Type
|
|
139
145
|
</th>
|
|
140
|
-
<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">
|
|
141
147
|
Default
|
|
142
148
|
</th>
|
|
143
|
-
<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">
|
|
144
150
|
Description
|
|
145
151
|
</th>
|
|
146
152
|
</tr>
|
|
147
153
|
</thead>
|
|
148
154
|
<tbody>
|
|
149
155
|
{" "}
|
|
150
|
-
<tr className="
|
|
151
|
-
<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">
|
|
152
158
|
withAccessibility
|
|
153
159
|
</td>
|
|
154
|
-
<td className="px-6 py-4 text-sm
|
|
160
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
155
161
|
boolean
|
|
156
162
|
</td>
|
|
157
|
-
<td className="px-6 py-4 text-sm
|
|
163
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
158
164
|
true
|
|
159
165
|
</td>
|
|
160
|
-
<td className="px-6 py-4 text-sm
|
|
166
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
161
167
|
Whether to wrap the icon with accessibility feature
|
|
162
168
|
</td>
|
|
163
169
|
</tr>
|
|
@@ -166,16 +172,16 @@ const meta: Meta<typeof MessageIcon> = {
|
|
|
166
172
|
</div>
|
|
167
173
|
</div>
|
|
168
174
|
<div className="!space-y-8">
|
|
169
|
-
<h3 className="text-center text-2xl font-bold
|
|
175
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
170
176
|
Usage Examples
|
|
171
177
|
</h3>
|
|
172
178
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
173
179
|
<div className="space-y-4">
|
|
174
|
-
<h4 className="text-lg font-semibold
|
|
180
|
+
<h4 className="text-fm-icon-info! text-lg font-semibold">
|
|
175
181
|
Basic Usage
|
|
176
182
|
</h4>
|
|
177
|
-
<div className="rounded-lg
|
|
178
|
-
<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 { MessageIcon } from "@/components/ui/icons/message-icon"
|
|
179
185
|
|
|
180
186
|
function ChatButton() {
|
|
181
187
|
return (
|
|
@@ -188,12 +194,12 @@ function ChatButton() {
|
|
|
188
194
|
</div>
|
|
189
195
|
</div>
|
|
190
196
|
<div className="space-y-4">
|
|
191
|
-
<h4 className="text-lg font-semibold
|
|
197
|
+
<h4 className="text-fm-icon-info! text-lg font-semibold">
|
|
192
198
|
Live Preview
|
|
193
199
|
</h4>
|
|
194
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
195
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
196
|
-
<MessageIcon 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
|
+
<MessageIcon className="text-fm-icon-info h-4 w-4" />
|
|
197
203
|
<span>Send Message</span>
|
|
198
204
|
</button>
|
|
199
205
|
</div>
|
|
@@ -201,49 +207,61 @@ function ChatButton() {
|
|
|
201
207
|
</div>
|
|
202
208
|
</div>
|
|
203
209
|
<div className="!space-y-8">
|
|
204
|
-
<h3 className="text-center text-2xl font-bold
|
|
210
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
205
211
|
Size Examples
|
|
206
212
|
</h3>
|
|
207
|
-
<div className="rounded-lg border
|
|
213
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
208
214
|
<div className="!space-y-6">
|
|
209
215
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
210
216
|
<div className="!space-y-4">
|
|
211
|
-
<h3 className="text-lg font-semibold
|
|
217
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
212
218
|
Standard Sizes
|
|
213
219
|
</h3>
|
|
214
|
-
<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">
|
|
215
221
|
<div className="text-center">
|
|
216
|
-
<MessageIcon className="!mx-auto mb-2 h-3 w-3
|
|
217
|
-
<span className="text-
|
|
222
|
+
<MessageIcon 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>
|
|
218
226
|
</div>
|
|
219
227
|
<div className="text-center">
|
|
220
|
-
<MessageIcon className="!mx-auto mb-2 h-4 w-4
|
|
221
|
-
<span className="text-
|
|
228
|
+
<MessageIcon 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>
|
|
222
232
|
</div>
|
|
223
233
|
<div className="text-center">
|
|
224
|
-
<MessageIcon className="!mx-auto mb-2 h-5 w-5
|
|
225
|
-
<span className="text-
|
|
234
|
+
<MessageIcon 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>
|
|
226
238
|
</div>
|
|
227
239
|
<div className="text-center">
|
|
228
|
-
<MessageIcon className="!mx-auto mb-2 h-6 w-6
|
|
229
|
-
<span className="text-
|
|
240
|
+
<MessageIcon 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>
|
|
230
244
|
</div>
|
|
231
245
|
<div className="text-center">
|
|
232
|
-
<MessageIcon className="!mx-auto mb-2 h-8 w-8
|
|
233
|
-
<span className="text-
|
|
246
|
+
<MessageIcon 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>
|
|
234
250
|
</div>
|
|
235
251
|
<div className="text-center">
|
|
236
|
-
<MessageIcon className="!mx-auto mb-2 h-12 w-12
|
|
237
|
-
<span className="text-
|
|
252
|
+
<MessageIcon 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>
|
|
238
256
|
</div>
|
|
239
257
|
</div>
|
|
240
258
|
</div>
|
|
241
259
|
<div className="!space-y-4">
|
|
242
|
-
<h3 className="text-lg font-semibold
|
|
260
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
243
261
|
Code Example
|
|
244
262
|
</h3>
|
|
245
|
-
<div className="rounded-lg
|
|
246
|
-
<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)
|
|
247
265
|
<MessageIcon className="h-4 w-4" />
|
|
248
266
|
|
|
249
267
|
// Medium (24px)
|
|
@@ -261,84 +279,84 @@ function ChatButton() {
|
|
|
261
279
|
</div>
|
|
262
280
|
</div>
|
|
263
281
|
<div className="!space-y-8">
|
|
264
|
-
<h3 className="text-center text-2xl font-bold
|
|
282
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
265
283
|
Common Use Cases
|
|
266
284
|
</h3>
|
|
267
285
|
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
268
|
-
<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">
|
|
269
287
|
<div className="text-2xl">💬</div>
|
|
270
|
-
<h4 className="text-lg font-semibold
|
|
288
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
271
289
|
Messaging
|
|
272
290
|
</h4>
|
|
273
|
-
<p className="text-
|
|
291
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
274
292
|
Chat and messaging UIs
|
|
275
293
|
</p>
|
|
276
294
|
</div>
|
|
277
|
-
<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">
|
|
278
296
|
<div className="text-2xl">🗨️</div>
|
|
279
|
-
<h4 className="text-lg font-semibold
|
|
297
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
280
298
|
Comments
|
|
281
299
|
</h4>
|
|
282
|
-
<p className="text-
|
|
300
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
283
301
|
Comment sections and feedback
|
|
284
302
|
</p>
|
|
285
303
|
</div>
|
|
286
|
-
<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">
|
|
287
305
|
<div className="text-2xl">📱</div>
|
|
288
|
-
<h4 className="text-lg font-semibold
|
|
306
|
+
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
289
307
|
Mobile Apps
|
|
290
308
|
</h4>
|
|
291
|
-
<p className="text-
|
|
309
|
+
<p className="text-fm-icon-active!/80 text-sm">
|
|
292
310
|
Communication features in apps
|
|
293
311
|
</p>
|
|
294
312
|
</div>
|
|
295
313
|
</div>
|
|
296
314
|
</div>
|
|
297
315
|
<div className="!space-y-8">
|
|
298
|
-
<h3 className="text-center text-2xl font-bold
|
|
316
|
+
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
299
317
|
Best Practices
|
|
300
318
|
</h3>
|
|
301
319
|
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
302
|
-
<div className="space-y-4 rounded-lg border
|
|
303
|
-
<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">
|
|
304
322
|
✅ Do
|
|
305
323
|
</h4>
|
|
306
|
-
<ul className="space-y-2 text-sm
|
|
307
|
-
<li className="
|
|
324
|
+
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
325
|
+
<li className="text-fm-icon-active!/80">
|
|
308
326
|
Use appropriate sizes for different contexts
|
|
309
327
|
</li>
|
|
310
|
-
<li className="
|
|
328
|
+
<li className="text-fm-icon-active!/80">
|
|
311
329
|
Choose colors that match your UI theme
|
|
312
330
|
</li>
|
|
313
|
-
<li className="
|
|
331
|
+
<li className="text-fm-icon-active!/80">
|
|
314
332
|
Provide clear labels for icon buttons
|
|
315
333
|
</li>
|
|
316
|
-
<li className="
|
|
334
|
+
<li className="text-fm-icon-active!/80">
|
|
317
335
|
Use consistent styling across your app
|
|
318
336
|
</li>
|
|
319
|
-
<li className="
|
|
337
|
+
<li className="text-fm-icon-active!/80">
|
|
320
338
|
Consider accessibility in all implementations
|
|
321
339
|
</li>
|
|
322
340
|
</ul>
|
|
323
341
|
</div>
|
|
324
|
-
<div className="space-y-4 rounded-lg border
|
|
325
|
-
<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">
|
|
326
344
|
❌ Don't
|
|
327
345
|
</h4>
|
|
328
|
-
<ul className="space-y-2 text-sm
|
|
329
|
-
<li className="
|
|
346
|
+
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
347
|
+
<li className="text-fm-icon-active!/80">
|
|
330
348
|
Use multiple icon styles in the same view
|
|
331
349
|
</li>
|
|
332
|
-
<li className="
|
|
350
|
+
<li className="text-fm-icon-active!/80">
|
|
333
351
|
Overuse the icon in navigation
|
|
334
352
|
</li>
|
|
335
|
-
<li className="
|
|
353
|
+
<li className="text-fm-icon-active!/80">
|
|
336
354
|
Use inappropriate sizes for the context
|
|
337
355
|
</li>
|
|
338
|
-
<li className="
|
|
356
|
+
<li className="text-fm-icon-active!/80">
|
|
339
357
|
Forget to add hover states
|
|
340
358
|
</li>
|
|
341
|
-
<li className="
|
|
359
|
+
<li className="text-fm-icon-active!/80">
|
|
342
360
|
Ignore accessibility requirements
|
|
343
361
|
</li>
|
|
344
362
|
</ul>
|
|
@@ -347,66 +365,70 @@ function ChatButton() {
|
|
|
347
365
|
</div>
|
|
348
366
|
</div>
|
|
349
367
|
<div className="!space-y-8 p-7">
|
|
350
|
-
<h2 className="text-center text-3xl font-bold
|
|
368
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
351
369
|
Related Icons
|
|
352
370
|
</h2>
|
|
353
371
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
354
|
-
<div className="!space-y-3 rounded-lg border
|
|
355
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
356
|
-
<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" />
|
|
357
375
|
</div>
|
|
358
376
|
<div>
|
|
359
|
-
<div className="font-medium
|
|
377
|
+
<div className="text-fm-icon-active font-medium">
|
|
360
378
|
ArrowRightDownIcon
|
|
361
379
|
</div>
|
|
362
|
-
<div className="text-
|
|
380
|
+
<div className="text-fm-tertiary text-xs">
|
|
363
381
|
Download/decrease
|
|
364
382
|
</div>
|
|
365
383
|
</div>
|
|
366
384
|
</div>
|
|
367
|
-
<div className="!space-y-3 rounded-lg border
|
|
368
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
369
|
-
<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" />
|
|
370
388
|
</div>
|
|
371
389
|
<div>
|
|
372
|
-
<div className="font-medium
|
|
390
|
+
<div className="text-fm-icon-active font-medium">
|
|
373
391
|
ArrowLeftUpIcon
|
|
374
392
|
</div>
|
|
375
|
-
<div className="text-
|
|
393
|
+
<div className="text-fm-tertiary text-xs">Back and up</div>
|
|
376
394
|
</div>
|
|
377
395
|
</div>
|
|
378
|
-
<div className="!space-y-3 rounded-lg border
|
|
379
|
-
<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">
|
|
380
398
|
<span className="text-2xl">↗️</span>
|
|
381
399
|
</div>
|
|
382
400
|
<div>
|
|
383
|
-
<div className="font-medium
|
|
401
|
+
<div className="text-fm-icon-active font-medium">
|
|
384
402
|
ExternalLinkIcon
|
|
385
403
|
</div>
|
|
386
|
-
<div className="text-
|
|
404
|
+
<div className="text-fm-tertiary text-xs">
|
|
387
405
|
Alternative style
|
|
388
406
|
</div>
|
|
389
407
|
</div>
|
|
390
408
|
</div>
|
|
391
|
-
<div className="!space-y-3 rounded-lg border
|
|
392
|
-
<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">
|
|
393
411
|
<span className="text-2xl">📈</span>
|
|
394
412
|
</div>
|
|
395
413
|
<div>
|
|
396
|
-
<div className="font-medium
|
|
397
|
-
|
|
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>
|
|
398
420
|
</div>
|
|
399
421
|
</div>
|
|
400
422
|
</div>
|
|
401
423
|
</div>
|
|
402
|
-
<div className="border-
|
|
424
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
403
425
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
404
426
|
<div className="!space-y-4 text-center">
|
|
405
|
-
<p className="
|
|
427
|
+
<p className="text-fm-tertiary!">
|
|
406
428
|
MessageIcon is part of the Aural UI icon library, designed
|
|
407
429
|
for chat, comments, and communication interfaces.
|
|
408
430
|
</p>
|
|
409
|
-
<p className="text-
|
|
431
|
+
<p className="text-fm-placeholder! text-sm">
|
|
410
432
|
Perfect for messaging apps, comment sections, and any
|
|
411
433
|
interface requiring a message or chat bubble representation.
|
|
412
434
|
</p>
|
|
@@ -446,8 +468,8 @@ const storyParameters = {
|
|
|
446
468
|
backgrounds: {
|
|
447
469
|
default: "dark",
|
|
448
470
|
values: [
|
|
449
|
-
{ name: "dark", value: "
|
|
450
|
-
{ name: "darker", value: "
|
|
471
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
472
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
451
473
|
],
|
|
452
474
|
},
|
|
453
475
|
}
|
|
@@ -456,12 +478,12 @@ export const Default: Story = {
|
|
|
456
478
|
args: {
|
|
457
479
|
width: 24,
|
|
458
480
|
height: 24,
|
|
459
|
-
className: "text-
|
|
481
|
+
className: "text-fm-icon-info",
|
|
460
482
|
withAccessibility: true,
|
|
461
483
|
},
|
|
462
484
|
parameters: storyParameters,
|
|
463
485
|
render: (args) => (
|
|
464
|
-
<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">
|
|
465
487
|
<MessageIcon {...args} />
|
|
466
488
|
</div>
|
|
467
489
|
),
|
|
@@ -478,30 +500,30 @@ export const SizeVariations: Story = {
|
|
|
478
500
|
},
|
|
479
501
|
},
|
|
480
502
|
render: () => (
|
|
481
|
-
<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">
|
|
482
504
|
<div className="text-center">
|
|
483
|
-
<MessageIcon className="!mx-auto mb-2 h-3 w-3
|
|
484
|
-
<span className="text-
|
|
505
|
+
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
506
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
485
507
|
</div>
|
|
486
508
|
<div className="text-center">
|
|
487
|
-
<MessageIcon className="!mx-auto mb-2 h-4 w-4
|
|
488
|
-
<span className="text-
|
|
509
|
+
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
510
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
489
511
|
</div>
|
|
490
512
|
<div className="text-center">
|
|
491
|
-
<MessageIcon className="!mx-auto mb-2 h-5 w-5
|
|
492
|
-
<span className="text-
|
|
513
|
+
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
514
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
493
515
|
</div>
|
|
494
516
|
<div className="text-center">
|
|
495
|
-
<MessageIcon className="!mx-auto mb-2 h-6 w-6
|
|
496
|
-
<span className="text-
|
|
517
|
+
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
518
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
497
519
|
</div>
|
|
498
520
|
<div className="text-center">
|
|
499
|
-
<MessageIcon className="!mx-auto mb-2 h-8 w-8
|
|
500
|
-
<span className="text-
|
|
521
|
+
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
522
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
501
523
|
</div>
|
|
502
524
|
<div className="text-center">
|
|
503
|
-
<MessageIcon className="!mx-auto mb-2 h-12 w-12
|
|
504
|
-
<span className="text-
|
|
525
|
+
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
526
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
505
527
|
</div>
|
|
506
528
|
</div>
|
|
507
529
|
),
|
|
@@ -518,26 +540,26 @@ export const ColorVariations: Story = {
|
|
|
518
540
|
},
|
|
519
541
|
},
|
|
520
542
|
render: () => (
|
|
521
|
-
<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">
|
|
522
544
|
<div className="text-center">
|
|
523
|
-
<MessageIcon className="!mx-auto mb-2 h-6 w-6
|
|
524
|
-
<span className="text-
|
|
545
|
+
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
546
|
+
<span className="text-fm-tertiary text-xs">Blue</span>
|
|
525
547
|
</div>
|
|
526
548
|
<div className="text-center">
|
|
527
|
-
<MessageIcon className="!mx-auto mb-2 h-6 w-6
|
|
528
|
-
<span className="text-
|
|
549
|
+
<MessageIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
|
|
550
|
+
<span className="text-fm-tertiary text-xs">Purple</span>
|
|
529
551
|
</div>
|
|
530
552
|
<div className="text-center">
|
|
531
|
-
<MessageIcon className="!mx-auto mb-2 h-6 w-6
|
|
532
|
-
<span className="text-
|
|
553
|
+
<MessageIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
554
|
+
<span className="text-fm-tertiary text-xs">Green</span>
|
|
533
555
|
</div>
|
|
534
556
|
<div className="text-center">
|
|
535
|
-
<MessageIcon className="!mx-auto mb-2 h-6 w-6
|
|
536
|
-
<span className="text-
|
|
557
|
+
<MessageIcon className="text-fm-icon-negative !mx-auto mb-2 h-6 w-6" />
|
|
558
|
+
<span className="text-fm-tertiary text-xs">Red</span>
|
|
537
559
|
</div>
|
|
538
560
|
<div className="text-center">
|
|
539
|
-
<MessageIcon className="!mx-auto mb-2 h-6 w-6
|
|
540
|
-
<span className="text-
|
|
561
|
+
<MessageIcon className="text-fm-icon-warning !mx-auto mb-2 h-6 w-6" />
|
|
562
|
+
<span className="text-fm-tertiary text-xs">Yellow</span>
|
|
541
563
|
</div>
|
|
542
564
|
</div>
|
|
543
565
|
),
|
|
@@ -553,25 +575,25 @@ export const UsageExamples: Story = {
|
|
|
553
575
|
},
|
|
554
576
|
},
|
|
555
577
|
render: () => (
|
|
556
|
-
<div className="flex h-64 min-h-dvh flex-col items-center justify-center gap-8 rounded-lg bg-
|
|
578
|
+
<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">
|
|
557
579
|
<div className="flex items-center gap-4">
|
|
558
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
559
|
-
<MessageIcon className="h-4 w-4
|
|
580
|
+
<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">
|
|
581
|
+
<MessageIcon className="text-fm-icon-info h-4 w-4" />
|
|
560
582
|
<span>New Message</span>
|
|
561
583
|
</button>
|
|
562
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
563
|
-
<MessageIcon className="h-4 w-4
|
|
584
|
+
<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">
|
|
585
|
+
<MessageIcon className="text-fm-secondary-600 h-4 w-4" />
|
|
564
586
|
<span>View Messages</span>
|
|
565
587
|
</button>
|
|
566
588
|
</div>
|
|
567
589
|
<div className="flex items-center gap-4">
|
|
568
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
569
|
-
<MessageIcon className="h-4 w-4
|
|
570
|
-
<span className="text-
|
|
590
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
591
|
+
<MessageIcon className="text-fm-icon-positive h-4 w-4" />
|
|
592
|
+
<span className="text-fm-icon-active/80">Unread Messages</span>
|
|
571
593
|
</div>
|
|
572
|
-
<div className="flex items-center gap-2 rounded-lg border
|
|
573
|
-
<MessageIcon className="h-4 w-4
|
|
574
|
-
<span className="text-
|
|
594
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
|
|
595
|
+
<MessageIcon className="text-fm-icon-info h-4 w-4" />
|
|
596
|
+
<span className="text-fm-icon-active/80">All Messages</span>
|
|
575
597
|
</div>
|
|
576
598
|
</div>
|
|
577
599
|
</div>
|
|
@@ -591,11 +613,11 @@ export const Playground: Story = {
|
|
|
591
613
|
args: {
|
|
592
614
|
width: 32,
|
|
593
615
|
height: 32,
|
|
594
|
-
className: "text-
|
|
616
|
+
className: "text-fm-icon-info",
|
|
595
617
|
},
|
|
596
618
|
render: (args) => (
|
|
597
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
598
|
-
<div className="rounded-lg border
|
|
619
|
+
<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">
|
|
620
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
599
621
|
<MessageIcon {...args} />
|
|
600
622
|
</div>
|
|
601
623
|
</div>
|