aural-ui 3.0.7 → 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/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/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
|
@@ -11,9 +11,9 @@ const meta: Meta<typeof ScrollDownIcon> = {
|
|
|
11
11
|
backgrounds: {
|
|
12
12
|
default: "dark",
|
|
13
13
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
14
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
15
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
16
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
17
|
],
|
|
18
18
|
},
|
|
19
19
|
docs: {
|
|
@@ -24,30 +24,30 @@ const meta: Meta<typeof ScrollDownIcon> = {
|
|
|
24
24
|
.sbdocs-wrapper { padding: 0 !important; max-width: none !important; background: transparent !important; }
|
|
25
25
|
.sbdocs-content { max-width: none !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
|
|
26
26
|
.docs-story, .sbdocs { background: transparent !important; }
|
|
27
|
-
body, #storybook-docs { background:
|
|
27
|
+
body, #storybook-docs { background: var(--color-fm-surface-primary) !important; }
|
|
28
28
|
.sbdocs-preview { background: transparent !important; border: none !important; }
|
|
29
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 { color:
|
|
30
|
-
.sbdocs-p, .sbdocs-li { color:
|
|
31
|
-
.sbdocs-code { background:
|
|
32
|
-
.sbdocs-pre { background:
|
|
33
|
-
.sbdocs-table { background:
|
|
34
|
-
.sbdocs-table th { background:
|
|
35
|
-
.sbdocs-table td { color:
|
|
29
|
+
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 { color: var(--color-fm-icon-active) !important; }
|
|
30
|
+
.sbdocs-p, .sbdocs-li { color: var(--color-fm-secondary) !important; }
|
|
31
|
+
.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; }
|
|
32
|
+
.sbdocs-pre { background: var(--color-fm-surface-secondary) !important; border: 1px solid var(--color-fm-divider-secondary) !important; }
|
|
33
|
+
.sbdocs-table { background: var(--color-fm-surface-secondary) !important; border: 1px solid var(--color-fm-divider-secondary) !important; }
|
|
34
|
+
.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; }
|
|
35
|
+
.sbdocs-table td { color: var(--color-fm-secondary) !important; border-bottom: 1px solid var(--color-fm-divider-tertiary) !important; }
|
|
36
36
|
`}
|
|
37
37
|
</style>
|
|
38
38
|
|
|
39
|
-
<div className="
|
|
40
|
-
<div className="relative overflow-hidden border-b
|
|
41
|
-
<div className="absolute inset-0 bg-
|
|
39
|
+
<div className="bg-fm-surface-primary min-h-screen">
|
|
40
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
41
|
+
<div className="from-fm-secondary-500/10 to-fm-secondary-500/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
42
42
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
43
43
|
<div className="!space-y-6 text-center">
|
|
44
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border
|
|
45
|
-
<ScrollDownIcon className="h-12 w-12
|
|
44
|
+
<div className="border-fm-secondary-500/30 from-fm-secondary-500/20 to-fm-secondary-500/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
45
|
+
<ScrollDownIcon className="text-fm-icon-active h-12 w-12" />
|
|
46
46
|
</div>
|
|
47
47
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
48
48
|
ScrollDownIcon
|
|
49
49
|
</h1>
|
|
50
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
50
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
51
51
|
A double-chevron scroll-down icon for scroll hints,
|
|
52
52
|
"see more" prompts, and navigation. Built with
|
|
53
53
|
accessibility in mind using Radix UI's AccessibleIcon
|
|
@@ -55,28 +55,28 @@ const meta: Meta<typeof ScrollDownIcon> = {
|
|
|
55
55
|
</p>
|
|
56
56
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
57
57
|
<div className="text-center">
|
|
58
|
-
<div className="text-3xl font-bold
|
|
58
|
+
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
59
59
|
Scroll
|
|
60
60
|
</div>
|
|
61
|
-
<div className="text-
|
|
61
|
+
<div className="text-fm-tertiary text-sm">
|
|
62
62
|
Scroll hint / see more
|
|
63
63
|
</div>
|
|
64
64
|
</div>
|
|
65
|
-
<div className="h-8 w-px
|
|
65
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
66
66
|
<div className="text-center">
|
|
67
|
-
<div className="text-3xl font-bold
|
|
67
|
+
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
68
68
|
Accessible
|
|
69
69
|
</div>
|
|
70
|
-
<div className="text-
|
|
70
|
+
<div className="text-fm-tertiary text-sm">
|
|
71
71
|
Screen reader friendly
|
|
72
72
|
</div>
|
|
73
73
|
</div>
|
|
74
|
-
<div className="h-8 w-px
|
|
74
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
75
75
|
<div className="text-center">
|
|
76
|
-
<div className="text-3xl font-bold
|
|
76
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
77
77
|
Minimal
|
|
78
78
|
</div>
|
|
79
|
-
<div className="text-
|
|
79
|
+
<div className="text-fm-tertiary text-sm">
|
|
80
80
|
Clean stroke design
|
|
81
81
|
</div>
|
|
82
82
|
</div>
|
|
@@ -87,16 +87,16 @@ const meta: Meta<typeof ScrollDownIcon> = {
|
|
|
87
87
|
|
|
88
88
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
89
89
|
<div className="!space-y-8">
|
|
90
|
-
<h2 className="text-center text-3xl font-bold
|
|
90
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
91
91
|
Quick Start
|
|
92
92
|
</h2>
|
|
93
93
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
94
94
|
<div className="!space-y-4">
|
|
95
|
-
<h3 className="text-xl font-semibold
|
|
95
|
+
<h3 className="text-fm-secondary-600! text-xl font-semibold">
|
|
96
96
|
Basic Usage
|
|
97
97
|
</h3>
|
|
98
|
-
<div className="rounded-lg
|
|
99
|
-
<pre className="overflow-x-auto text-sm
|
|
98
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
99
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
100
100
|
{`import { ScrollDownIcon } from "@icons/scroll-down-icon"
|
|
101
101
|
|
|
102
102
|
function ScrollHint() {
|
|
@@ -110,130 +110,140 @@ function ScrollHint() {
|
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
112
|
<div className="!space-y-4">
|
|
113
|
-
<h3 className="text-xl font-semibold
|
|
113
|
+
<h3 className="text-fm-secondary-600! text-xl font-semibold">
|
|
114
114
|
Live Preview
|
|
115
115
|
</h3>
|
|
116
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
117
|
-
<ScrollDownIcon className="h-10 w-10
|
|
116
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
117
|
+
<ScrollDownIcon className="text-fm-icon-active h-10 w-10" />
|
|
118
118
|
</div>
|
|
119
119
|
</div>
|
|
120
120
|
</div>
|
|
121
121
|
</div>
|
|
122
122
|
|
|
123
123
|
<div className="!space-y-8">
|
|
124
|
-
<h2 className="text-center text-3xl font-bold
|
|
124
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
125
125
|
Props & Configuration
|
|
126
126
|
</h2>
|
|
127
|
-
<div className="overflow-hidden rounded-lg border
|
|
128
|
-
<div className="bg-
|
|
129
|
-
<h3 className="text-xl font-semibold
|
|
127
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
128
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
129
|
+
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
130
|
+
Props
|
|
131
|
+
</h3>
|
|
130
132
|
</div>
|
|
131
133
|
<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
|
|
134
|
+
<thead className="bg-fm-surface-secondary">
|
|
135
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
136
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
135
137
|
Prop
|
|
136
138
|
</th>
|
|
137
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
139
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
138
140
|
Type
|
|
139
141
|
</th>
|
|
140
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
142
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
141
143
|
Default
|
|
142
144
|
</th>
|
|
143
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
145
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
144
146
|
Description
|
|
145
147
|
</th>
|
|
146
148
|
</tr>
|
|
147
149
|
</thead>
|
|
148
150
|
<tbody>
|
|
149
|
-
<tr className="
|
|
150
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
151
|
+
<tr className="bg-fm-surface-secondary!">
|
|
152
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
151
153
|
withAccessibility
|
|
152
154
|
</td>
|
|
153
|
-
<td className="px-6 py-4 text-sm
|
|
155
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
154
156
|
boolean
|
|
155
157
|
</td>
|
|
156
|
-
<td className="px-6 py-4 text-sm
|
|
158
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
157
159
|
true
|
|
158
160
|
</td>
|
|
159
|
-
<td className="px-6 py-4 text-sm
|
|
161
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
160
162
|
Whether to wrap the icon with accessibility feature
|
|
161
163
|
</td>
|
|
162
164
|
</tr>
|
|
163
|
-
<tr className="border-
|
|
164
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
165
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
166
|
+
<td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
|
|
165
167
|
width
|
|
166
168
|
</td>
|
|
167
|
-
<td className="px-6 py-4 text-sm
|
|
169
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
168
170
|
number | string
|
|
169
171
|
</td>
|
|
170
|
-
<td className="px-6 py-4 text-sm
|
|
171
|
-
|
|
172
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
173
|
+
26
|
|
174
|
+
</td>
|
|
175
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
172
176
|
Width of the icon
|
|
173
177
|
</td>
|
|
174
178
|
</tr>
|
|
175
|
-
<tr className="border-
|
|
176
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
179
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
180
|
+
<td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
|
|
177
181
|
height
|
|
178
182
|
</td>
|
|
179
|
-
<td className="px-6 py-4 text-sm
|
|
183
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
180
184
|
number | string
|
|
181
185
|
</td>
|
|
182
|
-
<td className="px-6 py-4 text-sm
|
|
183
|
-
|
|
186
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
187
|
+
26
|
|
188
|
+
</td>
|
|
189
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
184
190
|
Height of the icon
|
|
185
191
|
</td>
|
|
186
192
|
</tr>
|
|
187
|
-
<tr className="border-
|
|
188
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
193
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
194
|
+
<td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
|
|
189
195
|
stroke
|
|
190
196
|
</td>
|
|
191
|
-
<td className="px-6 py-4 text-sm
|
|
197
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
192
198
|
string
|
|
193
199
|
</td>
|
|
194
|
-
<td className="px-6 py-4 text-sm
|
|
200
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
195
201
|
white (in SVG)
|
|
196
202
|
</td>
|
|
197
|
-
<td className="px-6 py-4 text-sm
|
|
198
|
-
Stroke color; use className (e.g. text-
|
|
199
|
-
override
|
|
203
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
204
|
+
Stroke color; use className (e.g. text-fm-icon-active)
|
|
205
|
+
to override
|
|
200
206
|
</td>
|
|
201
207
|
</tr>
|
|
202
|
-
<tr className="border-
|
|
203
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
208
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
209
|
+
<td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
|
|
204
210
|
strokeWidth
|
|
205
211
|
</td>
|
|
206
|
-
<td className="px-6 py-4 text-sm
|
|
212
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
207
213
|
string | number
|
|
208
214
|
</td>
|
|
209
|
-
<td className="px-6 py-4 text-sm
|
|
215
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
210
216
|
1.17857
|
|
211
217
|
</td>
|
|
212
|
-
<td className="px-6 py-4 text-sm
|
|
218
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
213
219
|
Width of the stroke
|
|
214
220
|
</td>
|
|
215
221
|
</tr>
|
|
216
|
-
<tr className="border-
|
|
217
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
222
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
223
|
+
<td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
|
|
218
224
|
className
|
|
219
225
|
</td>
|
|
220
|
-
<td className="px-6 py-4 text-sm
|
|
226
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
221
227
|
string
|
|
222
228
|
</td>
|
|
223
|
-
<td className="px-6 py-4 text-sm
|
|
224
|
-
|
|
229
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
230
|
+
-
|
|
231
|
+
</td>
|
|
232
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
225
233
|
CSS classes for styling
|
|
226
234
|
</td>
|
|
227
235
|
</tr>
|
|
228
|
-
<tr className="
|
|
229
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
236
|
+
<tr className="bg-fm-surface-secondary!">
|
|
237
|
+
<td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
|
|
230
238
|
...svgProps
|
|
231
239
|
</td>
|
|
232
|
-
<td className="px-6 py-4 text-sm
|
|
240
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
233
241
|
SVGProps
|
|
234
242
|
</td>
|
|
235
|
-
<td className="px-6 py-4 text-sm
|
|
236
|
-
|
|
243
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
244
|
+
-
|
|
245
|
+
</td>
|
|
246
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
237
247
|
All standard SVG element props
|
|
238
248
|
</td>
|
|
239
249
|
</tr>
|
|
@@ -243,64 +253,64 @@ function ScrollHint() {
|
|
|
243
253
|
</div>
|
|
244
254
|
|
|
245
255
|
<div className="!space-y-8">
|
|
246
|
-
<h2 className="text-center text-3xl font-bold
|
|
256
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
247
257
|
Size Variations
|
|
248
258
|
</h2>
|
|
249
|
-
<div className="rounded-lg border
|
|
250
|
-
<div className="flex items-end justify-center gap-6 rounded-lg
|
|
259
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
260
|
+
<div className="bg-fm-surface-secondary flex items-end justify-center gap-6 rounded-lg p-6">
|
|
251
261
|
<div className="text-center">
|
|
252
|
-
<ScrollDownIcon className="!mx-auto mb-2 h-4 w-4
|
|
253
|
-
<span className="text-
|
|
262
|
+
<ScrollDownIcon className="text-fm-icon-active !mx-auto mb-2 h-4 w-4" />
|
|
263
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
254
264
|
</div>
|
|
255
265
|
<div className="text-center">
|
|
256
|
-
<ScrollDownIcon className="!mx-auto mb-2 h-6 w-6
|
|
257
|
-
<span className="text-
|
|
266
|
+
<ScrollDownIcon className="text-fm-icon-active !mx-auto mb-2 h-6 w-6" />
|
|
267
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
258
268
|
</div>
|
|
259
269
|
<div className="text-center">
|
|
260
|
-
<ScrollDownIcon className="!mx-auto mb-2 h-8 w-8
|
|
261
|
-
<span className="text-
|
|
270
|
+
<ScrollDownIcon className="text-fm-icon-active !mx-auto mb-2 h-8 w-8" />
|
|
271
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
262
272
|
</div>
|
|
263
273
|
<div className="text-center">
|
|
264
|
-
<ScrollDownIcon className="!mx-auto mb-2 h-10 w-10
|
|
265
|
-
<span className="text-
|
|
274
|
+
<ScrollDownIcon className="text-fm-icon-active !mx-auto mb-2 h-10 w-10" />
|
|
275
|
+
<span className="text-fm-tertiary text-xs">40px</span>
|
|
266
276
|
</div>
|
|
267
277
|
<div className="text-center">
|
|
268
|
-
<ScrollDownIcon className="!mx-auto mb-2 h-12 w-12
|
|
269
|
-
<span className="text-
|
|
278
|
+
<ScrollDownIcon className="text-fm-icon-active !mx-auto mb-2 h-12 w-12" />
|
|
279
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
270
280
|
</div>
|
|
271
281
|
</div>
|
|
272
282
|
</div>
|
|
273
283
|
</div>
|
|
274
284
|
|
|
275
285
|
<div className="!space-y-8">
|
|
276
|
-
<h2 className="text-center text-3xl font-bold
|
|
286
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
277
287
|
Usage Examples
|
|
278
288
|
</h2>
|
|
279
289
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
280
290
|
<div className="!space-y-4">
|
|
281
|
-
<h3 className="text-lg font-semibold
|
|
291
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
282
292
|
Scroll hint
|
|
283
293
|
</h3>
|
|
284
|
-
<div className="flex flex-col items-center gap-2 rounded-lg border
|
|
285
|
-
<span className="text-
|
|
294
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex flex-col items-center gap-2 rounded-lg border p-6">
|
|
295
|
+
<span className="text-fm-secondary text-sm">
|
|
286
296
|
Scroll for more
|
|
287
297
|
</span>
|
|
288
|
-
<ScrollDownIcon className="h-8 w-8
|
|
298
|
+
<ScrollDownIcon className="text-fm-icon-active/80 h-8 w-8" />
|
|
289
299
|
</div>
|
|
290
300
|
</div>
|
|
291
301
|
<div className="!space-y-4">
|
|
292
|
-
<h3 className="text-lg font-semibold
|
|
302
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
293
303
|
Hero CTA
|
|
294
304
|
</h3>
|
|
295
|
-
<div className="flex flex-col items-center gap-4 rounded-lg border
|
|
296
|
-
<h4 className="text-lg font-semibold
|
|
305
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex flex-col items-center gap-4 rounded-lg border p-8">
|
|
306
|
+
<h4 className="text-fm-icon-active text-lg font-semibold">
|
|
297
307
|
Welcome
|
|
298
308
|
</h4>
|
|
299
|
-
<p className="text-
|
|
309
|
+
<p className="text-fm-secondary text-center text-sm">
|
|
300
310
|
Explore below
|
|
301
311
|
</p>
|
|
302
|
-
<button className="flex items-center justify-center rounded-full border
|
|
303
|
-
<ScrollDownIcon className="h-6 w-6
|
|
312
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center justify-center rounded-full border p-2 transition-colors">
|
|
313
|
+
<ScrollDownIcon className="text-fm-icon-active h-6 w-6" />
|
|
304
314
|
</button>
|
|
305
315
|
</div>
|
|
306
316
|
</div>
|
|
@@ -308,11 +318,11 @@ function ScrollHint() {
|
|
|
308
318
|
</div>
|
|
309
319
|
|
|
310
320
|
<div className="!space-y-8">
|
|
311
|
-
<h2 className="text-center text-3xl font-bold
|
|
321
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
312
322
|
Accessibility
|
|
313
323
|
</h2>
|
|
314
|
-
<div className="rounded-lg border
|
|
315
|
-
<ul className="!space-y-2 text-sm
|
|
324
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
325
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
316
326
|
<li>
|
|
317
327
|
Uses Radix UI AccessibleIcon with label "Scroll down
|
|
318
328
|
icon"
|
|
@@ -329,14 +339,14 @@ function ScrollHint() {
|
|
|
329
339
|
</div>
|
|
330
340
|
</div>
|
|
331
341
|
|
|
332
|
-
<div className="border-
|
|
342
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
333
343
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
334
344
|
<div className="!space-y-4 text-center">
|
|
335
|
-
<p className="
|
|
345
|
+
<p className="text-fm-tertiary!">
|
|
336
346
|
ScrollDownIcon is part of the Aural UI icon library for
|
|
337
347
|
scroll and navigation hints.
|
|
338
348
|
</p>
|
|
339
|
-
<p className="text-
|
|
349
|
+
<p className="text-fm-placeholder! text-sm">
|
|
340
350
|
Uses Radix UI AccessibleIcon for screen reader
|
|
341
351
|
compatibility.
|
|
342
352
|
</p>
|
|
@@ -384,8 +394,8 @@ const storyParameters = {
|
|
|
384
394
|
backgrounds: {
|
|
385
395
|
default: "dark",
|
|
386
396
|
values: [
|
|
387
|
-
{ name: "dark", value: "
|
|
388
|
-
{ name: "darker", value: "
|
|
397
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
398
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
389
399
|
],
|
|
390
400
|
},
|
|
391
401
|
}
|
|
@@ -394,12 +404,12 @@ export const Default: Story = {
|
|
|
394
404
|
args: {
|
|
395
405
|
width: 26,
|
|
396
406
|
height: 26,
|
|
397
|
-
className: "text-
|
|
407
|
+
className: "text-fm-icon-active",
|
|
398
408
|
withAccessibility: true,
|
|
399
409
|
},
|
|
400
410
|
parameters: storyParameters,
|
|
401
411
|
render: (args) => (
|
|
402
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
412
|
+
<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">
|
|
403
413
|
<ScrollDownIcon {...args} />
|
|
404
414
|
</div>
|
|
405
415
|
),
|
|
@@ -415,26 +425,26 @@ export const SizeVariations: Story = {
|
|
|
415
425
|
},
|
|
416
426
|
},
|
|
417
427
|
render: () => (
|
|
418
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
428
|
+
<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">
|
|
419
429
|
<div className="text-center">
|
|
420
|
-
<ScrollDownIcon className="!mx-auto mb-2 h-4 w-4
|
|
421
|
-
<span className="text-
|
|
430
|
+
<ScrollDownIcon className="text-fm-icon-active !mx-auto mb-2 h-4 w-4" />
|
|
431
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
422
432
|
</div>
|
|
423
433
|
<div className="text-center">
|
|
424
|
-
<ScrollDownIcon className="!mx-auto mb-2 h-6 w-6
|
|
425
|
-
<span className="text-
|
|
434
|
+
<ScrollDownIcon className="text-fm-icon-active !mx-auto mb-2 h-6 w-6" />
|
|
435
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
426
436
|
</div>
|
|
427
437
|
<div className="text-center">
|
|
428
|
-
<ScrollDownIcon className="!mx-auto mb-2 h-8 w-8
|
|
429
|
-
<span className="text-
|
|
438
|
+
<ScrollDownIcon className="text-fm-icon-active !mx-auto mb-2 h-8 w-8" />
|
|
439
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
430
440
|
</div>
|
|
431
441
|
<div className="text-center">
|
|
432
|
-
<ScrollDownIcon className="!mx-auto mb-2 h-10 w-10
|
|
433
|
-
<span className="text-
|
|
442
|
+
<ScrollDownIcon className="text-fm-icon-active !mx-auto mb-2 h-10 w-10" />
|
|
443
|
+
<span className="text-fm-tertiary text-xs">40px</span>
|
|
434
444
|
</div>
|
|
435
445
|
<div className="text-center">
|
|
436
|
-
<ScrollDownIcon className="!mx-auto mb-2 h-12 w-12
|
|
437
|
-
<span className="text-
|
|
446
|
+
<ScrollDownIcon className="text-fm-icon-active !mx-auto mb-2 h-12 w-12" />
|
|
447
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
438
448
|
</div>
|
|
439
449
|
</div>
|
|
440
450
|
),
|
|
@@ -450,30 +460,30 @@ export const ColorVariations: Story = {
|
|
|
450
460
|
},
|
|
451
461
|
},
|
|
452
462
|
render: () => (
|
|
453
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
463
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-linear-to-br p-8 md:grid-cols-4">
|
|
454
464
|
<div className="text-center">
|
|
455
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
456
|
-
<ScrollDownIcon className="h-8 w-8
|
|
465
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
466
|
+
<ScrollDownIcon className="text-fm-icon-active h-8 w-8" />
|
|
457
467
|
</div>
|
|
458
|
-
<div className="text-sm font-medium
|
|
468
|
+
<div className="text-fm-icon-active text-sm font-medium">Primary</div>
|
|
459
469
|
</div>
|
|
460
470
|
<div className="text-center">
|
|
461
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
462
|
-
<ScrollDownIcon className="h-8 w-8
|
|
471
|
+
<div className="border-fm-divider-primary bg-fm-surface-tertiary/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
472
|
+
<ScrollDownIcon className="text-fm-secondary h-8 w-8" />
|
|
463
473
|
</div>
|
|
464
|
-
<div className="text-sm font-medium
|
|
474
|
+
<div className="text-fm-icon-active text-sm font-medium">Neutral</div>
|
|
465
475
|
</div>
|
|
466
476
|
<div className="text-center">
|
|
467
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
468
|
-
<ScrollDownIcon className="h-8 w-8
|
|
477
|
+
<div className="border-fm-divider-primary bg-fm-surface-secondary !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
478
|
+
<ScrollDownIcon className="text-fm-icon-active/90 h-8 w-8" />
|
|
469
479
|
</div>
|
|
470
|
-
<div className="text-sm font-medium
|
|
480
|
+
<div className="text-fm-icon-active text-sm font-medium">Overlay</div>
|
|
471
481
|
</div>
|
|
472
482
|
<div className="text-center">
|
|
473
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
474
|
-
<ScrollDownIcon className="h-8 w-8
|
|
483
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
484
|
+
<ScrollDownIcon className="text-fm-icon-active h-8 w-8" />
|
|
475
485
|
</div>
|
|
476
|
-
<div className="text-sm font-medium
|
|
486
|
+
<div className="text-fm-icon-active text-sm font-medium">Accent</div>
|
|
477
487
|
</div>
|
|
478
488
|
</div>
|
|
479
489
|
),
|
|
@@ -489,21 +499,21 @@ export const UsageExamples: Story = {
|
|
|
489
499
|
},
|
|
490
500
|
},
|
|
491
501
|
render: () => (
|
|
492
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
502
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
493
503
|
<div className="!space-y-2">
|
|
494
|
-
<h3 className="text-sm font-medium
|
|
495
|
-
<div className="flex flex-col items-center gap-2 rounded-lg border
|
|
496
|
-
<span className="text-
|
|
497
|
-
<ScrollDownIcon className="h-8 w-8
|
|
504
|
+
<h3 className="text-fm-icon-active text-sm font-medium">Scroll hint</h3>
|
|
505
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex flex-col items-center gap-2 rounded-lg border p-6">
|
|
506
|
+
<span className="text-fm-secondary text-sm">Scroll for more</span>
|
|
507
|
+
<ScrollDownIcon className="text-fm-icon-active/80 h-8 w-8" />
|
|
498
508
|
</div>
|
|
499
509
|
</div>
|
|
500
510
|
<div className="!space-y-2">
|
|
501
|
-
<h3 className="text-sm font-medium
|
|
502
|
-
<div className="flex flex-col items-center gap-4 rounded-lg border
|
|
503
|
-
<h4 className="text-lg font-semibold
|
|
504
|
-
<p className="text-
|
|
505
|
-
<button className="flex items-center justify-center rounded-full border
|
|
506
|
-
<ScrollDownIcon className="h-6 w-6
|
|
511
|
+
<h3 className="text-fm-icon-active text-sm font-medium">Hero CTA</h3>
|
|
512
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex flex-col items-center gap-4 rounded-lg border p-8">
|
|
513
|
+
<h4 className="text-fm-icon-active text-lg font-semibold">Welcome</h4>
|
|
514
|
+
<p className="text-fm-secondary text-center text-sm">Explore below</p>
|
|
515
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center justify-center rounded-full border p-2 transition-colors">
|
|
516
|
+
<ScrollDownIcon className="text-fm-icon-active h-6 w-6" />
|
|
507
517
|
</button>
|
|
508
518
|
</div>
|
|
509
519
|
</div>
|
|
@@ -523,11 +533,11 @@ export const Playground: Story = {
|
|
|
523
533
|
args: {
|
|
524
534
|
width: 26,
|
|
525
535
|
height: 26,
|
|
526
|
-
className: "text-
|
|
536
|
+
className: "text-fm-icon-active",
|
|
527
537
|
},
|
|
528
538
|
render: (args) => (
|
|
529
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
530
|
-
<div className="rounded-lg border
|
|
539
|
+
<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">
|
|
540
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
531
541
|
<ScrollDownIcon {...args} />
|
|
532
542
|
</div>
|
|
533
543
|
</div>
|