aural-ui 4.0.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
- package/dist/components/avatar/Avatar.stories.tsx +219 -235
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -636
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +530 -867
- package/dist/components/dialog/Dialog.stories.tsx +501 -950
- package/dist/components/divider/Divider.stories.tsx +264 -527
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -1023
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +484 -835
- package/dist/components/marquee/Marquee.stories.tsx +356 -712
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
- package/dist/components/overlay/Overlay.stories.tsx +452 -824
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +481 -896
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +495 -799
- package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
- package/dist/components/search/Search.stories.tsx +312 -595
- package/dist/components/select/Select.stories.tsx +684 -789
- package/dist/components/sheet/Sheet.stories.tsx +671 -950
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +383 -760
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -916
- package/dist/components/tabs/Tabs.stories.tsx +458 -1455
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
- package/dist/components/toast/Toast.stories.tsx +452 -1339
- package/dist/components/toggle/Toggle.stories.tsx +488 -931
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
- package/dist/icons/all-icons.tsx +37 -16
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
- package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
- package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
- package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
- package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
- package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
- package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
- package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
- package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
- package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
- package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
- package/dist/index.cjs +90 -90
- package/dist/index.js +90 -90
- package/package.json +8 -3
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { ArrowLeftIcon } from "src/ui/icons/arrow-left-icon"
|
|
5
|
+
import { ArrowRightIcon } from "src/ui/icons/arrow-right-icon"
|
|
6
|
+
import { GripVerticalIcon } from "src/ui/icons/grip-vertical-icon"
|
|
7
|
+
import { MoveVerticalIcon } from "src/ui/icons/move-vertical-icon"
|
|
8
|
+
import {
|
|
9
|
+
IconColorVariations,
|
|
10
|
+
IconDefaultCanvas,
|
|
11
|
+
IconPlaygroundCanvas,
|
|
12
|
+
IconSizeVariations,
|
|
13
|
+
IconUsageCanvas,
|
|
14
|
+
IconUsageSection,
|
|
15
|
+
} from "src/ui/story-spec/icons/icon-story-canvas"
|
|
16
|
+
import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
|
|
17
|
+
|
|
4
18
|
import { MoveHorizontalIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof MoveHorizontalIcon> = {
|
|
@@ -18,1001 +32,68 @@ const meta: Meta<typeof MoveHorizontalIcon> = {
|
|
|
18
32
|
},
|
|
19
33
|
docs: {
|
|
20
34
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
.sbdocs-content {
|
|
31
|
-
max-width: none ;
|
|
32
|
-
padding: 0 ;
|
|
33
|
-
margin: 0 ;
|
|
34
|
-
background: transparent ;
|
|
35
|
-
}
|
|
36
|
-
.docs-story {
|
|
37
|
-
background: transparent ;
|
|
38
|
-
}
|
|
39
|
-
.sbdocs {
|
|
40
|
-
background: transparent ;
|
|
41
|
-
}
|
|
42
|
-
body {
|
|
43
|
-
background: var(--color-fm-surface-primary) ;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: var(--color-fm-surface-primary) ;
|
|
47
|
-
}
|
|
48
|
-
.sbdocs-preview {
|
|
49
|
-
background: transparent ;
|
|
50
|
-
border: none ;
|
|
51
|
-
}
|
|
52
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color: var(--color-fm-icon-active) ;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: var(--color-fm-secondary) ;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: var(--color-fm-surface-secondary) ;
|
|
60
|
-
color: var(--color-fm-secondary-500) ;
|
|
61
|
-
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: var(--color-fm-surface-secondary) ;
|
|
65
|
-
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: var(--color-fm-surface-secondary) ;
|
|
69
|
-
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: var(--color-fm-surface-secondary) ;
|
|
73
|
-
color: var(--color-fm-icon-active) ;
|
|
74
|
-
border-bottom: 1px solid var(--color-fm-divider-secondary) ;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: var(--color-fm-secondary) ;
|
|
78
|
-
border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
|
|
79
|
-
}
|
|
80
|
-
@keyframes slide-left-right {
|
|
81
|
-
0%, 100% { transform: translateX(0); }
|
|
82
|
-
25% { transform: translateX(-4px); }
|
|
83
|
-
75% { transform: translateX(4px); }
|
|
84
|
-
}
|
|
85
|
-
.animate-slide-horizontal {
|
|
86
|
-
animation: slide-left-right 2s ease-in-out infinite;
|
|
87
|
-
}
|
|
88
|
-
@keyframes pulse-scale {
|
|
89
|
-
0%, 100% { transform: scale(1); }
|
|
90
|
-
50% { transform: scale(1.05); }
|
|
91
|
-
}
|
|
92
|
-
.animate-pulse-scale {
|
|
93
|
-
animation: pulse-scale 2s ease-in-out infinite;
|
|
94
|
-
}
|
|
95
|
-
`}
|
|
96
|
-
</style>
|
|
97
|
-
|
|
98
|
-
<div className="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
|
|
99
|
-
{/* Header */}
|
|
100
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
101
|
-
<div className="from-fm-icon-info/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
102
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
103
|
-
<div className="!space-y-6 text-center">
|
|
104
|
-
<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">
|
|
105
|
-
<MoveHorizontalIcon className="text-fm-icon-info h-12 w-12" />
|
|
106
|
-
</div>
|
|
107
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
108
|
-
MoveHorizontalIcon
|
|
109
|
-
</h1>
|
|
110
|
-
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
111
|
-
A horizontal movement icon featuring left and right arrows,
|
|
112
|
-
perfect for indicating horizontal drag operations, resizable
|
|
113
|
-
panels, carousel navigation, and lateral movement controls.
|
|
114
|
-
Built with accessibility in mind using Radix UI's
|
|
115
|
-
AccessibleIcon wrapper.
|
|
116
|
-
</p>
|
|
117
|
-
|
|
118
|
-
{/* Stats */}
|
|
119
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
120
|
-
<div className="text-center">
|
|
121
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
122
|
-
Resize
|
|
123
|
-
</div>
|
|
124
|
-
<div className="text-fm-tertiary text-sm">
|
|
125
|
-
Panel controls
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
129
|
-
<div className="text-center">
|
|
130
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
131
|
-
Navigate
|
|
132
|
-
</div>
|
|
133
|
-
<div className="text-fm-tertiary text-sm">
|
|
134
|
-
Carousel movement
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
138
|
-
<div className="text-center">
|
|
139
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
140
|
-
Drag
|
|
141
|
-
</div>
|
|
142
|
-
<div className="text-fm-tertiary text-sm">
|
|
143
|
-
Interactive handles
|
|
144
|
-
</div>
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
</div>
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
|
|
151
|
-
{/* Content */}
|
|
152
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
153
|
-
{/* Quick Usage */}
|
|
154
|
-
<div className="!space-y-8">
|
|
155
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
156
|
-
Quick Start
|
|
157
|
-
</h2>
|
|
158
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
159
|
-
<div className="!space-y-4">
|
|
160
|
-
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
161
|
-
Basic Usage
|
|
162
|
-
</h3>
|
|
163
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
164
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
165
|
-
{`import { MoveHorizontalIcon } from "@icons/move-horizontal-icon"
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="info"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "Move", description: "Horizontal drag or resize" },
|
|
39
|
+
{ title: "Resize Handle", description: "Column width adjustment" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { MoveHorizontalIcon } from "src/ui/icons/move-horizontal-icon"
|
|
166
44
|
|
|
167
45
|
function ResizeHandle() {
|
|
168
46
|
return (
|
|
169
|
-
<div className="flex items-center
|
|
170
|
-
<MoveHorizontalIcon className="h-4 w-4 text-
|
|
47
|
+
<div className="cursor-col-resize flex items-center">
|
|
48
|
+
<MoveHorizontalIcon className="h-4 w-4 text-fm-icon-inactive" />
|
|
171
49
|
</div>
|
|
172
50
|
)
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
<div className="!space-y-4">
|
|
179
|
-
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
180
|
-
Live Preview
|
|
181
|
-
</h3>
|
|
182
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
183
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-20 rounded-lg border">
|
|
184
|
-
<div className="flex-1 p-4">
|
|
185
|
-
<span className="text-fm-secondary text-sm">
|
|
186
|
-
Left Panel
|
|
187
|
-
</span>
|
|
188
|
-
</div>
|
|
189
|
-
<div className="bg-fm-icon-info/20 hover:bg-fm-icon-info/30 flex w-2 cursor-col-resize items-center justify-center">
|
|
190
|
-
<MoveHorizontalIcon className="text-fm-icon-info h-4 w-4" />
|
|
191
|
-
</div>
|
|
192
|
-
<div className="flex-1 p-4">
|
|
193
|
-
<span className="text-fm-secondary text-sm">
|
|
194
|
-
Right Panel
|
|
195
|
-
</span>
|
|
196
|
-
</div>
|
|
197
|
-
</div>
|
|
198
|
-
</div>
|
|
199
|
-
</div>
|
|
200
|
-
</div>
|
|
201
|
-
</div>
|
|
202
|
-
|
|
203
|
-
{/* Props Documentation */}
|
|
204
|
-
<div className="!space-y-8">
|
|
205
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
206
|
-
Props & Configuration
|
|
207
|
-
</h2>
|
|
208
|
-
|
|
209
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
210
|
-
<div className="bg-fm-surface-secondary p-4">
|
|
211
|
-
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
212
|
-
Props
|
|
213
|
-
</h3>
|
|
214
|
-
</div>
|
|
215
|
-
<table className="!my-0 w-full">
|
|
216
|
-
<thead className="bg-fm-surface-secondary">
|
|
217
|
-
<tr className="border-fm-divider-secondary border-b">
|
|
218
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
219
|
-
Prop
|
|
220
|
-
</th>
|
|
221
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
222
|
-
Type
|
|
223
|
-
</th>
|
|
224
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
225
|
-
Default
|
|
226
|
-
</th>
|
|
227
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
228
|
-
Description
|
|
229
|
-
</th>
|
|
230
|
-
</tr>
|
|
231
|
-
</thead>
|
|
232
|
-
<tbody>
|
|
233
|
-
{" "}
|
|
234
|
-
<tr className="bg-fm-surface-secondary!">
|
|
235
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
236
|
-
withAccessibility
|
|
237
|
-
</td>
|
|
238
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
239
|
-
boolean
|
|
240
|
-
</td>
|
|
241
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
242
|
-
true
|
|
243
|
-
</td>
|
|
244
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
245
|
-
Whether to wrap the icon with accessibility feature
|
|
246
|
-
</td>
|
|
247
|
-
</tr>
|
|
248
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
249
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
250
|
-
height
|
|
251
|
-
</td>
|
|
252
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
253
|
-
number | string
|
|
254
|
-
</td>
|
|
255
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
256
|
-
24
|
|
257
|
-
</td>
|
|
258
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
259
|
-
Height of the icon in pixels
|
|
260
|
-
</td>
|
|
261
|
-
</tr>
|
|
262
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
263
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
264
|
-
stroke
|
|
265
|
-
</td>
|
|
266
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
267
|
-
string
|
|
268
|
-
</td>
|
|
269
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
270
|
-
currentColor
|
|
271
|
-
</td>
|
|
272
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
273
|
-
Stroke color of the icon lines
|
|
274
|
-
</td>
|
|
275
|
-
</tr>
|
|
276
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
277
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
278
|
-
strokeWidth
|
|
279
|
-
</td>
|
|
280
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
281
|
-
string | number
|
|
282
|
-
</td>
|
|
283
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
284
|
-
2
|
|
285
|
-
</td>
|
|
286
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
287
|
-
Width of the stroke lines
|
|
288
|
-
</td>
|
|
289
|
-
</tr>
|
|
290
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
291
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
292
|
-
className
|
|
293
|
-
</td>
|
|
294
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
295
|
-
string
|
|
296
|
-
</td>
|
|
297
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
298
|
-
-
|
|
299
|
-
</td>
|
|
300
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
301
|
-
CSS classes for styling (use for overrides)
|
|
302
|
-
</td>
|
|
303
|
-
</tr>
|
|
304
|
-
<tr className="bg-fm-surface-secondary!">
|
|
305
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
306
|
-
...svgProps
|
|
307
|
-
</td>
|
|
308
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
309
|
-
SVGProps
|
|
310
|
-
</td>
|
|
311
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
312
|
-
-
|
|
313
|
-
</td>
|
|
314
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
315
|
-
All standard SVG element props
|
|
316
|
-
</td>
|
|
317
|
-
</tr>
|
|
318
|
-
</tbody>
|
|
319
|
-
</table>
|
|
320
|
-
</div>
|
|
321
|
-
</div>
|
|
322
|
-
|
|
323
|
-
{/* Size Variations */}
|
|
324
|
-
<div className="!space-y-8">
|
|
325
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
326
|
-
Size Variations
|
|
327
|
-
</h2>
|
|
328
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
329
|
-
<div className="!space-y-6">
|
|
330
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
331
|
-
<div className="!space-y-4">
|
|
332
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
333
|
-
Standard Sizes
|
|
334
|
-
</h3>
|
|
335
|
-
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
336
|
-
<div className="text-center">
|
|
337
|
-
<MoveHorizontalIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
338
|
-
<span className="text-fm-tertiary text-xs">
|
|
339
|
-
12px
|
|
340
|
-
</span>
|
|
341
|
-
</div>
|
|
342
|
-
<div className="text-center">
|
|
343
|
-
<MoveHorizontalIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
344
|
-
<span className="text-fm-tertiary text-xs">
|
|
345
|
-
16px
|
|
346
|
-
</span>
|
|
347
|
-
</div>
|
|
348
|
-
<div className="text-center">
|
|
349
|
-
<MoveHorizontalIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
350
|
-
<span className="text-fm-tertiary text-xs">
|
|
351
|
-
20px
|
|
352
|
-
</span>
|
|
353
|
-
</div>
|
|
354
|
-
<div className="text-center">
|
|
355
|
-
<MoveHorizontalIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
356
|
-
<span className="text-fm-tertiary text-xs">
|
|
357
|
-
24px
|
|
358
|
-
</span>
|
|
359
|
-
</div>
|
|
360
|
-
<div className="text-center">
|
|
361
|
-
<MoveHorizontalIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
362
|
-
<span className="text-fm-tertiary text-xs">
|
|
363
|
-
32px
|
|
364
|
-
</span>
|
|
365
|
-
</div>
|
|
366
|
-
<div className="text-center">
|
|
367
|
-
<MoveHorizontalIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
368
|
-
<span className="text-fm-tertiary text-xs">
|
|
369
|
-
48px
|
|
370
|
-
</span>
|
|
371
|
-
</div>
|
|
372
|
-
</div>
|
|
373
|
-
</div>
|
|
374
|
-
|
|
375
|
-
<div className="!space-y-4">
|
|
376
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
377
|
-
Code Example
|
|
378
|
-
</h3>
|
|
379
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
380
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
381
|
-
{`// Small resize handle (12px)
|
|
382
|
-
<MoveHorizontalIcon className="h-3 w-3 " />
|
|
383
|
-
|
|
384
|
-
// Standard control (24px)
|
|
385
|
-
<MoveHorizontalIcon className="h-6 w-6 " />
|
|
386
|
-
|
|
387
|
-
// Large drag handle (32px)
|
|
388
|
-
<MoveHorizontalIcon className="h-8 w-8 " />
|
|
389
|
-
|
|
390
|
-
// Custom size for specialized layouts
|
|
391
|
-
<MoveHorizontalIcon
|
|
392
|
-
width={40}
|
|
393
|
-
height={40}
|
|
394
|
-
className="text-indigo-400 "
|
|
395
|
-
/>`}
|
|
396
|
-
</pre>
|
|
397
|
-
</div>
|
|
398
|
-
</div>
|
|
399
|
-
</div>
|
|
400
|
-
</div>
|
|
401
|
-
</div>
|
|
402
|
-
</div>
|
|
403
|
-
|
|
404
|
-
{/* Color Variations */}
|
|
405
|
-
<div className="!space-y-8">
|
|
406
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
407
|
-
Color Variations
|
|
408
|
-
</h2>
|
|
409
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
410
|
-
<div className="!space-y-4">
|
|
411
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
412
|
-
Semantic Colors
|
|
413
|
-
</h3>
|
|
414
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
415
|
-
<div className="flex items-center gap-4">
|
|
416
|
-
<MoveHorizontalIcon className="text-fm-icon-info h-6 w-6" />
|
|
417
|
-
<div>
|
|
418
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
419
|
-
Interactive Control
|
|
420
|
-
</div>
|
|
421
|
-
<div className="text-fm-tertiary text-xs">
|
|
422
|
-
text-fm-icon-info
|
|
423
|
-
</div>
|
|
424
|
-
</div>
|
|
425
|
-
</div>
|
|
426
|
-
<div className="flex items-center gap-4">
|
|
427
|
-
<MoveHorizontalIcon className="text-fm-icon-info h-6 w-6" />
|
|
428
|
-
<div>
|
|
429
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
430
|
-
Resize Handle
|
|
431
|
-
</div>
|
|
432
|
-
<div className="text-fm-tertiary text-xs">
|
|
433
|
-
text-fm-icon-info
|
|
434
|
-
</div>
|
|
435
|
-
</div>
|
|
436
|
-
</div>
|
|
437
|
-
<div className="flex items-center gap-4">
|
|
438
|
-
<MoveHorizontalIcon className="text-fm-placeholder h-6 w-6" />
|
|
439
|
-
<div>
|
|
440
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
441
|
-
Disabled State
|
|
442
|
-
</div>
|
|
443
|
-
<div className="text-fm-tertiary text-xs">
|
|
444
|
-
text-fm-placeholder
|
|
445
|
-
</div>
|
|
446
|
-
</div>
|
|
447
|
-
</div>
|
|
448
|
-
<div className="flex items-center gap-4">
|
|
449
|
-
<MoveHorizontalIcon className="text-fm-icon-info h-6 w-6" />
|
|
450
|
-
<div>
|
|
451
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
452
|
-
Navigation Arrow
|
|
453
|
-
</div>
|
|
454
|
-
<div className="text-fm-tertiary text-xs">
|
|
455
|
-
text-fm-icon-info
|
|
456
|
-
</div>
|
|
457
|
-
</div>
|
|
458
|
-
</div>
|
|
459
|
-
</div>
|
|
460
|
-
</div>
|
|
461
|
-
|
|
462
|
-
<div className="!space-y-4">
|
|
463
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
464
|
-
Custom Colors
|
|
465
|
-
</h3>
|
|
466
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
467
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
468
|
-
{`// Using Tailwind classes with
|
|
469
|
-
<MoveHorizontalIcon className="h-6 w-6 text-indigo-400 " />
|
|
470
|
-
<MoveHorizontalIcon className="h-6 w-6 text-cyan-500 " />
|
|
471
|
-
|
|
472
|
-
// Using CSS custom properties
|
|
473
|
-
<MoveHorizontalIcon
|
|
474
|
-
className="h-6 w-6 "
|
|
475
|
-
style={{ color: 'var(--color-primary)' }}
|
|
476
|
-
/>
|
|
477
|
-
|
|
478
|
-
// Direct stroke prop
|
|
479
|
-
<MoveHorizontalIcon
|
|
480
|
-
width={24}
|
|
481
|
-
height={24}
|
|
482
|
-
stroke="#6366f1"
|
|
483
|
-
/>`}
|
|
484
|
-
</pre>
|
|
485
|
-
</div>
|
|
486
|
-
</div>
|
|
487
|
-
</div>
|
|
488
|
-
</div>
|
|
489
|
-
|
|
490
|
-
{/* Usage Examples */}
|
|
491
|
-
<div className="!space-y-8">
|
|
492
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
493
|
-
Usage Examples
|
|
494
|
-
</h2>
|
|
495
|
-
|
|
496
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
497
|
-
{/* Resizable Panels */}
|
|
498
|
-
<div className="!space-y-4">
|
|
499
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
500
|
-
Resizable Panels
|
|
501
|
-
</h3>
|
|
502
|
-
<div className="!space-y-4">
|
|
503
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 rounded-lg border">
|
|
504
|
-
<div className="flex-1 p-4">
|
|
505
|
-
<span className="text-fm-secondary text-sm">
|
|
506
|
-
Left Panel
|
|
507
|
-
</span>
|
|
508
|
-
<p className="text-fm-placeholder! mt-2 text-xs">
|
|
509
|
-
Sidebar content
|
|
510
|
-
</p>
|
|
511
|
-
</div>
|
|
512
|
-
<div className="bg-fm-icon-info/20 hover:bg-fm-icon-info/30 flex w-2 cursor-col-resize items-center justify-center transition-colors">
|
|
513
|
-
<MoveHorizontalIcon className="text-fm-icon-info h-4 w-4" />
|
|
514
|
-
</div>
|
|
515
|
-
<div className="flex-1 p-4">
|
|
516
|
-
<span className="text-fm-secondary text-sm">
|
|
517
|
-
Right Panel
|
|
518
|
-
</span>
|
|
519
|
-
<p className="text-fm-placeholder! mt-2 text-xs">
|
|
520
|
-
Main content area
|
|
521
|
-
</p>
|
|
522
|
-
</div>
|
|
523
|
-
</div>
|
|
524
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
525
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
526
|
-
{`<div className="flex h-32 rounded-lg border border-white/10 bg-white/5">
|
|
527
|
-
<div className="flex-1 p-4">
|
|
528
|
-
<span>Left Panel</span>
|
|
529
|
-
</div>
|
|
530
|
-
<div className="flex w-2 cursor-col-resize items-center justify-center bg-indigo-500/20 hover:bg-indigo-500/30">
|
|
531
|
-
<MoveHorizontalIcon className="h-4 w-4 text-indigo-400 " />
|
|
532
|
-
</div>
|
|
533
|
-
<div className="flex-1 p-4">
|
|
534
|
-
<span>Right Panel</span>
|
|
535
|
-
</div>
|
|
536
|
-
</div>`}
|
|
537
|
-
</pre>
|
|
538
|
-
</div>
|
|
539
|
-
</div>
|
|
540
|
-
</div>
|
|
541
|
-
|
|
542
|
-
{/* Carousel Navigation */}
|
|
543
|
-
<div className="!space-y-4">
|
|
544
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
545
|
-
Carousel Navigation
|
|
546
|
-
</h3>
|
|
547
|
-
<div className="!space-y-4">
|
|
548
|
-
<div className="flex items-center justify-center gap-4">
|
|
549
|
-
<button className="border-fm-divider-primary bg-fm-surface-secondary hover:bg-fm-surface-secondary rounded-lg border p-3 transition-colors">
|
|
550
|
-
<MoveHorizontalIcon className="text-fm-icon-active h-5 w-5 rotate-180" />
|
|
551
|
-
</button>
|
|
552
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
553
|
-
<span className="text-fm-secondary text-sm">
|
|
554
|
-
Carousel Item
|
|
555
|
-
</span>
|
|
556
|
-
<div className="mt-2 flex gap-2">
|
|
557
|
-
<div className="bg-fm-icon-info h-2 w-8 rounded-full"></div>
|
|
558
|
-
<div className="bg-fm-surface-secondary h-2 w-2 rounded-full"></div>
|
|
559
|
-
<div className="bg-fm-surface-secondary h-2 w-2 rounded-full"></div>
|
|
560
|
-
</div>
|
|
561
|
-
</div>
|
|
562
|
-
<button className="border-fm-divider-primary bg-fm-surface-secondary hover:bg-fm-surface-secondary rounded-lg border p-3 transition-colors">
|
|
563
|
-
<MoveHorizontalIcon className="text-fm-icon-active h-5 w-5" />
|
|
564
|
-
</button>
|
|
565
|
-
</div>
|
|
566
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
567
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
568
|
-
{`// Carousel navigation buttons
|
|
569
|
-
<button className="rounded-lg border border-white/20 bg-white/5 p-3 hover:bg-white/10">
|
|
570
|
-
<MoveHorizontalIcon className="h-5 w-5 rotate-180 text-white " />
|
|
571
|
-
</button>
|
|
572
|
-
|
|
573
|
-
<div className="carousel-content">
|
|
574
|
-
<!-- Carousel content -->
|
|
575
|
-
</div>
|
|
576
|
-
|
|
577
|
-
<button className="rounded-lg border border-white/20 bg-white/5 p-3 hover:bg-white/10">
|
|
578
|
-
<MoveHorizontalIcon className="h-5 w-5 text-white " />
|
|
579
|
-
</button>`}
|
|
580
|
-
</pre>
|
|
581
|
-
</div>
|
|
582
|
-
</div>
|
|
583
|
-
</div>
|
|
584
|
-
|
|
585
|
-
{/* Table Column Resize */}
|
|
586
|
-
<div className="!space-y-4">
|
|
587
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
588
|
-
Table Column Resize
|
|
589
|
-
</h3>
|
|
590
|
-
<div className="!space-y-4">
|
|
591
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border">
|
|
592
|
-
<div className="border-fm-divider-secondary flex border-b">
|
|
593
|
-
<div className="border-fm-divider-secondary flex-1 border-r p-3">
|
|
594
|
-
<span className="text-fm-icon-active text-sm font-medium">
|
|
595
|
-
Name
|
|
596
|
-
</span>
|
|
597
|
-
</div>
|
|
598
|
-
<div className="hover:bg-fm-surface-secondary flex w-2 cursor-col-resize items-center justify-center">
|
|
599
|
-
<MoveHorizontalIcon className="text-fm-icon-active/30 h-3 w-3" />
|
|
600
|
-
</div>
|
|
601
|
-
<div className="border-fm-divider-secondary flex-1 border-r p-3">
|
|
602
|
-
<span className="text-fm-icon-active text-sm font-medium">
|
|
603
|
-
Email
|
|
604
|
-
</span>
|
|
605
|
-
</div>
|
|
606
|
-
<div className="hover:bg-fm-surface-secondary flex w-2 cursor-col-resize items-center justify-center">
|
|
607
|
-
<MoveHorizontalIcon className="text-fm-icon-active/30 h-3 w-3" />
|
|
608
|
-
</div>
|
|
609
|
-
<div className="flex-1 p-3">
|
|
610
|
-
<span className="text-fm-icon-active text-sm font-medium">
|
|
611
|
-
Status
|
|
612
|
-
</span>
|
|
613
|
-
</div>
|
|
614
|
-
</div>
|
|
615
|
-
<div className="flex">
|
|
616
|
-
<div className="border-fm-divider-secondary flex-1 border-r p-3">
|
|
617
|
-
<span className="text-fm-secondary text-sm">
|
|
618
|
-
John Doe
|
|
619
|
-
</span>
|
|
620
|
-
</div>
|
|
621
|
-
<div className="w-2"></div>
|
|
622
|
-
<div className="border-fm-divider-secondary flex-1 border-r p-3">
|
|
623
|
-
<span className="text-fm-secondary text-sm">
|
|
624
|
-
john@example.com
|
|
625
|
-
</span>
|
|
626
|
-
</div>
|
|
627
|
-
<div className="w-2"></div>
|
|
628
|
-
<div className="flex-1 p-3">
|
|
629
|
-
<span className="bg-fm-icon-positive/20 text-fm-icon-positive rounded-full px-2 py-1 text-xs">
|
|
630
|
-
Active
|
|
631
|
-
</span>
|
|
632
|
-
</div>
|
|
633
|
-
</div>
|
|
634
|
-
</div>
|
|
635
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
636
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
637
|
-
{`// Table column resizer
|
|
638
|
-
<div className="flex w-2 cursor-col-resize items-center justify-center hover:bg-white/10">
|
|
639
|
-
<MoveHorizontalIcon className="h-3 w-3 text-white/30 " />
|
|
640
|
-
</div>
|
|
641
|
-
|
|
642
|
-
// With focus styles for accessibility
|
|
643
|
-
<button
|
|
644
|
-
className="flex w-2 items-center justify-center hover:bg-white/10 focus:ring-2 focus:ring-indigo-500"
|
|
645
|
-
aria-label="Resize column"
|
|
646
|
-
>
|
|
647
|
-
<MoveHorizontalIcon className="h-3 w-3 text-white/30 " />
|
|
648
|
-
</button>`}
|
|
649
|
-
</pre>
|
|
650
|
-
</div>
|
|
651
|
-
</div>
|
|
652
|
-
</div>
|
|
653
|
-
|
|
654
|
-
{/* Sidebar Toggle */}
|
|
655
|
-
<div className="!space-y-4">
|
|
656
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
657
|
-
Sidebar Toggle
|
|
658
|
-
</h3>
|
|
659
|
-
<div className="!space-y-4">
|
|
660
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-24 rounded-lg border">
|
|
661
|
-
<div className="border-fm-divider-secondary w-48 border-r p-4">
|
|
662
|
-
<span className="text-fm-secondary text-sm">
|
|
663
|
-
Sidebar
|
|
664
|
-
</span>
|
|
665
|
-
<div className="!mt-2 !space-y-1">
|
|
666
|
-
<div className="bg-fm-divider-primary h-2 w-16 rounded"></div>
|
|
667
|
-
<div className="bg-fm-divider-primary h-2 w-12 rounded"></div>
|
|
668
|
-
</div>
|
|
669
|
-
</div>
|
|
670
|
-
<div className="bg-fm-icon-info/10 hover:bg-fm-icon-info/20 flex w-8 cursor-pointer items-center justify-center transition-colors">
|
|
671
|
-
<MoveHorizontalIcon className="text-fm-icon-info h-4 w-4" />
|
|
672
|
-
</div>
|
|
673
|
-
<div className="flex-1 p-4">
|
|
674
|
-
<span className="text-fm-secondary text-sm">
|
|
675
|
-
Main Content
|
|
676
|
-
</span>
|
|
677
|
-
<div className="!mt-2 !space-y-2">
|
|
678
|
-
<div className="bg-fm-surface-secondary h-2 w-full rounded"></div>
|
|
679
|
-
<div className="bg-fm-surface-secondary h-2 w-3/4 rounded"></div>
|
|
680
|
-
</div>
|
|
681
|
-
</div>
|
|
682
|
-
</div>
|
|
683
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
684
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
685
|
-
{`// Sidebar toggle handle
|
|
686
|
-
<div className="flex w-8 cursor-pointer items-center justify-center bg-indigo-500/10 hover:bg-indigo-500/20">
|
|
687
|
-
<MoveHorizontalIcon className="h-4 w-4 text-indigo-400 " />
|
|
688
|
-
</div>
|
|
689
|
-
|
|
690
|
-
// With collapse/expand functionality
|
|
691
|
-
<button
|
|
692
|
-
onClick={() => setSidebarOpen(!sidebarOpen)}
|
|
693
|
-
className="flex w-8 items-center justify-center hover:bg-indigo-500/20 focus:outline-none focus:ring-2 focus:ring-indigo-500"
|
|
694
|
-
aria-label={sidebarOpen ? "Collapse sidebar" : "Expand sidebar"}
|
|
695
|
-
>
|
|
696
|
-
<MoveHorizontalIcon className="h-4 w-4 text-indigo-400 " />
|
|
697
|
-
</button>`}
|
|
698
|
-
</pre>
|
|
699
|
-
</div>
|
|
700
|
-
</div>
|
|
701
|
-
</div>
|
|
702
|
-
</div>
|
|
51
|
+
}`,
|
|
52
|
+
livePreview: (
|
|
53
|
+
<div className="flex cursor-col-resize items-center">
|
|
54
|
+
<MoveHorizontalIcon className="text-fm-icon-inactive h-5 w-5" />
|
|
703
55
|
</div>
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
<div className="text-fm-tertiary text-xs">
|
|
734
|
-
hover:scale-110
|
|
735
|
-
</div>
|
|
736
|
-
</div>
|
|
737
|
-
</div>
|
|
738
|
-
<div className="flex items-center gap-4">
|
|
739
|
-
<MoveHorizontalIcon className="animate-slide-horizontal text-fm-icon-info h-6 w-6" />
|
|
740
|
-
<div>
|
|
741
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
742
|
-
Horizontal Movement
|
|
743
|
-
</div>
|
|
744
|
-
<div className="text-fm-tertiary text-xs">
|
|
745
|
-
animate-slide-horizontal
|
|
746
|
-
</div>
|
|
747
|
-
</div>
|
|
748
|
-
</div>
|
|
749
|
-
<div className="flex items-center gap-4">
|
|
750
|
-
<MoveHorizontalIcon className="animate-pulse-scale text-fm-icon-info h-6 w-6" />
|
|
751
|
-
<div>
|
|
752
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
753
|
-
Pulse Scale
|
|
754
|
-
</div>
|
|
755
|
-
<div className="text-fm-tertiary text-xs">
|
|
756
|
-
animate-pulse-scale
|
|
757
|
-
</div>
|
|
758
|
-
</div>
|
|
759
|
-
</div>
|
|
760
|
-
</div>
|
|
761
|
-
</div>
|
|
762
|
-
|
|
763
|
-
<div className="!space-y-4">
|
|
764
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
765
|
-
Cursor & State Examples
|
|
766
|
-
</h3>
|
|
767
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
768
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
769
|
-
{`// Hover effects
|
|
770
|
-
<MoveHorizontalIcon className="h-6 w-6 text-white/60 hover:text-indigo-400 transition-colors " />
|
|
771
|
-
|
|
772
|
-
// Scale on hover
|
|
773
|
-
<MoveHorizontalIcon className="h-6 w-6 text-white hover:scale-110 transition-transform " />
|
|
774
|
-
|
|
775
|
-
// Cursor for resizing
|
|
776
|
-
<MoveHorizontalIcon className="h-6 w-6 text-indigo-400 cursor-col-resize " />
|
|
777
|
-
|
|
778
|
-
// Grab cursor for dragging
|
|
779
|
-
<MoveHorizontalIcon className="h-6 w-6 text-indigo-400 cursor-grab hover:cursor-grabbing " />
|
|
780
|
-
|
|
781
|
-
// Horizontal slide animation
|
|
782
|
-
@keyframes slide-left-right {
|
|
783
|
-
0%, 100% { transform: translateX(0); }
|
|
784
|
-
25% { transform: translateX(-4px); }
|
|
785
|
-
75% { transform: translateX(4px); }
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
.animate-slide-horizontal {
|
|
789
|
-
animation: slide-left-right 2s ease-in-out infinite;
|
|
790
|
-
}`}
|
|
791
|
-
</pre>
|
|
792
|
-
</div>
|
|
793
|
-
</div>
|
|
794
|
-
</div>
|
|
795
|
-
</div>
|
|
796
|
-
|
|
797
|
-
{/* Accessibility */}
|
|
798
|
-
<div className="!space-y-8">
|
|
799
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
800
|
-
Accessibility Features
|
|
801
|
-
</h2>
|
|
802
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
803
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
804
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
805
|
-
✅ Built-in Features
|
|
806
|
-
</h3>
|
|
807
|
-
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
808
|
-
<li className="text-fm-secondary!">
|
|
809
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
810
|
-
</li>
|
|
811
|
-
<li className="text-fm-secondary!">
|
|
812
|
-
Provides screen reader label "Move Horizontal icon"
|
|
813
|
-
</li>
|
|
814
|
-
<li className="text-fm-secondary!">
|
|
815
|
-
Supports keyboard navigation when interactive
|
|
816
|
-
</li>
|
|
817
|
-
<li className="text-fm-secondary!">
|
|
818
|
-
Maintains proper color contrast ratios
|
|
819
|
-
</li>
|
|
820
|
-
<li className="text-fm-secondary!">
|
|
821
|
-
Scales with user's font size preferences
|
|
822
|
-
</li>
|
|
823
|
-
</ul>
|
|
824
|
-
</div>
|
|
825
|
-
|
|
826
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
827
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
828
|
-
💡 Best Practices
|
|
829
|
-
</h3>
|
|
830
|
-
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
831
|
-
<li className="text-fm-secondary!">
|
|
832
|
-
Always provide descriptive ARIA labels for interactive
|
|
833
|
-
elements
|
|
834
|
-
</li>
|
|
835
|
-
<li className="text-fm-secondary!">
|
|
836
|
-
Use appropriate cursor styles for different interactions
|
|
837
|
-
</li>
|
|
838
|
-
<li className="text-fm-secondary!">
|
|
839
|
-
Ensure sufficient click/touch target sizes
|
|
840
|
-
</li>
|
|
841
|
-
<li className="text-fm-secondary!">
|
|
842
|
-
Add focus states for keyboard navigation
|
|
843
|
-
</li>
|
|
844
|
-
<li className="text-fm-secondary!">
|
|
845
|
-
Consider motion sensitivity for animations
|
|
846
|
-
</li>
|
|
847
|
-
</ul>
|
|
848
|
-
</div>
|
|
849
|
-
</div>
|
|
850
|
-
|
|
851
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
852
|
-
<h3 className="text-fm-icon-info! mb-4 text-lg font-semibold">
|
|
853
|
-
Interactive Element Accessibility
|
|
854
|
-
</h3>
|
|
855
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
856
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
857
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
858
|
-
{`// Accessible resize handle
|
|
859
|
-
<button
|
|
860
|
-
aria-label="Resize panels horizontally"
|
|
861
|
-
className="flex w-4 items-center justify-center bg-white/10 focus:ring-2 focus:ring-indigo-500 focus:outline-none"
|
|
862
|
-
onMouseDown={handleResizeStart}
|
|
863
|
-
>
|
|
864
|
-
<MoveHorizontalIcon className="h-3 w-3 text-white/50 " />
|
|
865
|
-
</button>
|
|
866
|
-
|
|
867
|
-
// Carousel navigation with context
|
|
868
|
-
<button
|
|
869
|
-
aria-label="Next slide"
|
|
870
|
-
className="rounded-lg border border-white/20 bg-white/5 p-3 hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-indigo-500"
|
|
871
|
-
onClick={nextSlide}
|
|
872
|
-
>
|
|
873
|
-
<MoveHorizontalIcon className="h-5 w-5 text-white " />
|
|
874
|
-
</button>
|
|
875
|
-
|
|
876
|
-
// Sidebar toggle with state
|
|
877
|
-
<button
|
|
878
|
-
aria-label={sidebarOpen ? "Collapse sidebar" : "Expand sidebar"}
|
|
879
|
-
aria-expanded={sidebarOpen}
|
|
880
|
-
className="flex w-8 items-center justify-center hover:bg-indigo-500/20 focus:outline-none focus:ring-2 focus:ring-indigo-500"
|
|
881
|
-
onClick={() => setSidebarOpen(!sidebarOpen)}
|
|
882
|
-
>
|
|
883
|
-
<MoveHorizontalIcon className="h-4 w-4 text-indigo-400 " />
|
|
884
|
-
</button>`}
|
|
885
|
-
</pre>
|
|
886
|
-
</div>
|
|
887
|
-
<div className="!space-y-4">
|
|
888
|
-
<p className="text-fm-secondary! text-sm">
|
|
889
|
-
When using MoveHorizontalIcon for interactive controls,
|
|
890
|
-
provide clear context about the action being performed
|
|
891
|
-
and the current state.
|
|
892
|
-
</p>
|
|
893
|
-
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
894
|
-
<div className="text-fm-icon-info flex items-center gap-2 text-sm">
|
|
895
|
-
<MoveHorizontalIcon className="h-4 w-4" />
|
|
896
|
-
<span>
|
|
897
|
-
Screen readers understand this represents horizontal
|
|
898
|
-
movement controls
|
|
899
|
-
</span>
|
|
900
|
-
</div>
|
|
901
|
-
</div>
|
|
902
|
-
</div>
|
|
903
|
-
</div>
|
|
904
|
-
</div>
|
|
905
|
-
</div>
|
|
906
|
-
|
|
907
|
-
{/* Related Icons */}
|
|
908
|
-
<div className="!space-y-8">
|
|
909
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
910
|
-
Related Icons
|
|
911
|
-
</h2>
|
|
912
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
913
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
914
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
915
|
-
<span className="text-2xl">↕️</span>
|
|
916
|
-
</div>
|
|
917
|
-
<div>
|
|
918
|
-
<div className="text-fm-icon-active font-medium">
|
|
919
|
-
MoveVerticalIcon
|
|
920
|
-
</div>
|
|
921
|
-
<div className="text-fm-tertiary text-xs">
|
|
922
|
-
Vertical movement
|
|
923
|
-
</div>
|
|
924
|
-
</div>
|
|
925
|
-
</div>
|
|
926
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
927
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
928
|
-
<span className="text-2xl">🎯</span>
|
|
929
|
-
</div>
|
|
930
|
-
<div>
|
|
931
|
-
<div className="text-fm-icon-active font-medium">
|
|
932
|
-
DragIcon
|
|
933
|
-
</div>
|
|
934
|
-
<div className="text-fm-tertiary text-xs">
|
|
935
|
-
Drag & drop
|
|
936
|
-
</div>
|
|
937
|
-
</div>
|
|
938
|
-
</div>
|
|
939
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
940
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
941
|
-
<span className="text-2xl">📐</span>
|
|
942
|
-
</div>
|
|
943
|
-
<div>
|
|
944
|
-
<div className="text-fm-icon-active font-medium">
|
|
945
|
-
ResizeIcon
|
|
946
|
-
</div>
|
|
947
|
-
<div className="text-fm-tertiary text-xs">
|
|
948
|
-
Resize controls
|
|
949
|
-
</div>
|
|
950
|
-
</div>
|
|
951
|
-
</div>
|
|
952
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
953
|
-
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
954
|
-
<span className="text-2xl">🔄</span>
|
|
955
|
-
</div>
|
|
956
|
-
<div>
|
|
957
|
-
<div className="text-fm-icon-active font-medium">
|
|
958
|
-
RotateIcon
|
|
959
|
-
</div>
|
|
960
|
-
<div className="text-fm-tertiary text-xs">
|
|
961
|
-
Rotation controls
|
|
962
|
-
</div>
|
|
963
|
-
</div>
|
|
964
|
-
</div>
|
|
965
|
-
</div>
|
|
966
|
-
</div>
|
|
967
|
-
</div>
|
|
968
|
-
|
|
969
|
-
{/* Footer */}
|
|
970
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
971
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
972
|
-
<div className="!space-y-4 text-center">
|
|
973
|
-
<p className="text-fm-tertiary!">
|
|
974
|
-
MoveHorizontalIcon is part of the Aural UI icon library,
|
|
975
|
-
built for representing horizontal movement, resizing, and
|
|
976
|
-
layout control operations.
|
|
977
|
-
</p>
|
|
978
|
-
<p className="text-fm-placeholder! text-sm">
|
|
979
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
980
|
-
compatibility and follow WCAG guidelines for interactive
|
|
981
|
-
controls.
|
|
982
|
-
</p>
|
|
983
|
-
</div>
|
|
984
|
-
</div>
|
|
985
|
-
</div>
|
|
986
|
-
</div>
|
|
987
|
-
</>
|
|
56
|
+
),
|
|
57
|
+
}}
|
|
58
|
+
relatedIcons={[
|
|
59
|
+
{
|
|
60
|
+
name: "MoveVerticalIcon",
|
|
61
|
+
description: "Move vertically icon",
|
|
62
|
+
icon: MoveVerticalIcon,
|
|
63
|
+
accentToken: "info",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "GripVerticalIcon",
|
|
67
|
+
description: "Vertical grip drag handle",
|
|
68
|
+
icon: GripVerticalIcon,
|
|
69
|
+
accentToken: "positive",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "ArrowLeftIcon",
|
|
73
|
+
description: "Arrow pointing left",
|
|
74
|
+
icon: ArrowLeftIcon,
|
|
75
|
+
accentToken: "warning",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "ArrowRightIcon",
|
|
79
|
+
description: "Arrow pointing right",
|
|
80
|
+
icon: ArrowRightIcon,
|
|
81
|
+
accentToken: "negative",
|
|
82
|
+
},
|
|
83
|
+
]}
|
|
84
|
+
/>
|
|
988
85
|
),
|
|
989
86
|
},
|
|
990
87
|
},
|
|
991
88
|
tags: ["autodocs"],
|
|
992
89
|
argTypes: {
|
|
993
|
-
|
|
994
|
-
control:
|
|
995
|
-
description: "
|
|
90
|
+
className: {
|
|
91
|
+
control: "text",
|
|
92
|
+
description: "CSS classes including color token",
|
|
996
93
|
},
|
|
997
94
|
withAccessibility: {
|
|
998
95
|
control: "boolean",
|
|
999
|
-
description: "
|
|
1000
|
-
},
|
|
1001
|
-
height: {
|
|
1002
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1003
|
-
description: "Height of the icon in pixels",
|
|
1004
|
-
},
|
|
1005
|
-
stroke: {
|
|
1006
|
-
control: "color",
|
|
1007
|
-
description: "Stroke color of the icon lines",
|
|
1008
|
-
},
|
|
1009
|
-
strokeWidth: {
|
|
1010
|
-
control: { type: "range", min: 0.5, max: 4, step: 0.5 },
|
|
1011
|
-
description: "Width of the stroke lines",
|
|
1012
|
-
},
|
|
1013
|
-
className: {
|
|
1014
|
-
control: "text",
|
|
1015
|
-
description: "CSS classes for styling (use for overrides)",
|
|
96
|
+
description: "Wrap with accessibility label",
|
|
1016
97
|
},
|
|
1017
98
|
},
|
|
1018
99
|
}
|
|
@@ -1020,288 +101,78 @@ function ResizeHandle() {
|
|
|
1020
101
|
export default meta
|
|
1021
102
|
type Story = StoryObj<typeof MoveHorizontalIcon>
|
|
1022
103
|
|
|
1023
|
-
// Story parameters for consistent dark theme
|
|
1024
|
-
const storyParameters = {
|
|
1025
|
-
backgrounds: {
|
|
1026
|
-
default: "dark",
|
|
1027
|
-
values: [
|
|
1028
|
-
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
1029
|
-
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
1030
|
-
],
|
|
1031
|
-
},
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
104
|
export const Default: Story = {
|
|
1035
105
|
args: {
|
|
1036
|
-
className: "h-6 w-6 text-fm-icon-
|
|
106
|
+
className: "h-6 w-6 text-fm-icon-inactive",
|
|
1037
107
|
withAccessibility: true,
|
|
1038
108
|
},
|
|
1039
|
-
parameters: storyParameters,
|
|
1040
109
|
render: (args) => (
|
|
1041
|
-
<
|
|
110
|
+
<IconDefaultCanvas>
|
|
1042
111
|
<MoveHorizontalIcon {...args} />
|
|
1043
|
-
</
|
|
112
|
+
</IconDefaultCanvas>
|
|
1044
113
|
),
|
|
1045
114
|
}
|
|
1046
115
|
|
|
1047
116
|
export const SizeVariations: Story = {
|
|
1048
|
-
|
|
1049
|
-
...storyParameters,
|
|
1050
|
-
docs: {
|
|
1051
|
-
description: {
|
|
1052
|
-
story:
|
|
1053
|
-
"MoveHorizontalIcon in different sizes, from small resize handles to large interactive controls.",
|
|
1054
|
-
},
|
|
1055
|
-
},
|
|
1056
|
-
},
|
|
1057
|
-
render: () => (
|
|
1058
|
-
<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">
|
|
1059
|
-
<div className="text-center">
|
|
1060
|
-
<MoveHorizontalIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
1061
|
-
<span className="text-fm-tertiary text-xs">12px</span>
|
|
1062
|
-
</div>
|
|
1063
|
-
<div className="text-center">
|
|
1064
|
-
<MoveHorizontalIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
1065
|
-
<span className="text-fm-tertiary text-xs">16px</span>
|
|
1066
|
-
</div>
|
|
1067
|
-
<div className="text-center">
|
|
1068
|
-
<MoveHorizontalIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
1069
|
-
<span className="text-fm-tertiary text-xs">20px</span>
|
|
1070
|
-
</div>
|
|
1071
|
-
<div className="text-center">
|
|
1072
|
-
<MoveHorizontalIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
1073
|
-
<span className="text-fm-tertiary text-xs">24px</span>
|
|
1074
|
-
</div>
|
|
1075
|
-
<div className="text-center">
|
|
1076
|
-
<MoveHorizontalIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
1077
|
-
<span className="text-fm-tertiary text-xs">32px</span>
|
|
1078
|
-
</div>
|
|
1079
|
-
<div className="text-center">
|
|
1080
|
-
<MoveHorizontalIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
1081
|
-
<span className="text-fm-tertiary text-xs">48px</span>
|
|
1082
|
-
</div>
|
|
1083
|
-
</div>
|
|
1084
|
-
),
|
|
117
|
+
render: () => <IconSizeVariations icon={MoveHorizontalIcon} />,
|
|
1085
118
|
}
|
|
1086
119
|
|
|
1087
120
|
export const ColorVariations: Story = {
|
|
1088
|
-
|
|
1089
|
-
...storyParameters,
|
|
1090
|
-
docs: {
|
|
1091
|
-
description: {
|
|
1092
|
-
story:
|
|
1093
|
-
"MoveHorizontalIcon in different colors for various interaction states and UI contexts.",
|
|
1094
|
-
},
|
|
1095
|
-
},
|
|
1096
|
-
},
|
|
1097
|
-
render: () => (
|
|
1098
|
-
<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">
|
|
1099
|
-
<div className="text-center">
|
|
1100
|
-
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1101
|
-
<MoveHorizontalIcon className="text-fm-icon-info h-8 w-8" />
|
|
1102
|
-
</div>
|
|
1103
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
1104
|
-
Interactive
|
|
1105
|
-
</div>
|
|
1106
|
-
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1107
|
-
</div>
|
|
1108
|
-
<div className="text-center">
|
|
1109
|
-
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1110
|
-
<MoveHorizontalIcon className="text-fm-icon-info h-8 w-8" />
|
|
1111
|
-
</div>
|
|
1112
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
1113
|
-
Resize Handle
|
|
1114
|
-
</div>
|
|
1115
|
-
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1116
|
-
</div>
|
|
1117
|
-
<div className="text-center">
|
|
1118
|
-
<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">
|
|
1119
|
-
<MoveHorizontalIcon className="text-fm-placeholder h-8 w-8" />
|
|
1120
|
-
</div>
|
|
1121
|
-
<div className="text-fm-icon-active text-sm font-medium">Disabled</div>
|
|
1122
|
-
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
1123
|
-
</div>
|
|
1124
|
-
<div className="text-center">
|
|
1125
|
-
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1126
|
-
<MoveHorizontalIcon className="text-fm-icon-info h-8 w-8" />
|
|
1127
|
-
</div>
|
|
1128
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
1129
|
-
Navigation
|
|
1130
|
-
</div>
|
|
1131
|
-
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1132
|
-
</div>
|
|
1133
|
-
</div>
|
|
1134
|
-
),
|
|
121
|
+
render: () => <IconColorVariations icon={MoveHorizontalIcon} />,
|
|
1135
122
|
}
|
|
1136
123
|
|
|
1137
124
|
export const UsageExamples: Story = {
|
|
1138
|
-
parameters: {
|
|
1139
|
-
...storyParameters,
|
|
1140
|
-
docs: {
|
|
1141
|
-
description: {
|
|
1142
|
-
story:
|
|
1143
|
-
"Real-world usage examples showing MoveHorizontalIcon in different layout and interaction contexts.",
|
|
1144
|
-
},
|
|
1145
|
-
},
|
|
1146
|
-
},
|
|
1147
125
|
render: () => (
|
|
1148
|
-
<
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
<
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
</div>
|
|
1159
|
-
<div className="bg-fm-icon-info/20 hover:bg-fm-icon-info/30 flex w-2 cursor-col-resize items-center justify-center">
|
|
1160
|
-
<MoveHorizontalIcon className="text-fm-icon-info h-4 w-4" />
|
|
1161
|
-
</div>
|
|
1162
|
-
<div className="flex-1 p-4">
|
|
1163
|
-
<span className="text-fm-secondary text-sm">Right Panel</span>
|
|
1164
|
-
<p className="text-fm-placeholder mt-2 text-xs">
|
|
1165
|
-
Main content area
|
|
1166
|
-
</p>
|
|
1167
|
-
</div>
|
|
126
|
+
<IconUsageCanvas>
|
|
127
|
+
<IconUsageSection title="Column Resize Handle">
|
|
128
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center rounded-xl border px-4 py-3">
|
|
129
|
+
<span className="text-fm-primary font-fm-text flex-1 text-sm">
|
|
130
|
+
Column A
|
|
131
|
+
</span>
|
|
132
|
+
<MoveHorizontalIcon className="text-fm-icon-inactive h-4 w-4 cursor-col-resize" />
|
|
133
|
+
<span className="text-fm-primary font-fm-text flex-1 text-right text-sm">
|
|
134
|
+
Column B
|
|
135
|
+
</span>
|
|
1168
136
|
</div>
|
|
1169
|
-
</
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
<button className="border-fm-divider-primary bg-fm-surface-secondary hover:bg-fm-surface-secondary rounded-lg border p-3">
|
|
1178
|
-
<MoveHorizontalIcon className="text-fm-icon-active h-5 w-5 rotate-180" />
|
|
1179
|
-
</button>
|
|
1180
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
1181
|
-
<span className="text-fm-secondary text-sm">Carousel Item</span>
|
|
1182
|
-
<div className="mt-2 flex gap-2">
|
|
1183
|
-
<div className="bg-fm-icon-info h-2 w-8 rounded-full"></div>
|
|
1184
|
-
<div className="bg-fm-surface-secondary h-2 w-2 rounded-full"></div>
|
|
1185
|
-
<div className="bg-fm-surface-secondary h-2 w-2 rounded-full"></div>
|
|
1186
|
-
</div>
|
|
1187
|
-
</div>
|
|
1188
|
-
<button className="border-fm-divider-primary bg-fm-surface-secondary hover:bg-fm-surface-secondary rounded-lg border p-3">
|
|
1189
|
-
<MoveHorizontalIcon className="text-fm-icon-active h-5 w-5" />
|
|
1190
|
-
</button>
|
|
1191
|
-
</div>
|
|
1192
|
-
</div>
|
|
1193
|
-
|
|
1194
|
-
{/* Table Column Resize */}
|
|
1195
|
-
<div className="!space-y-2">
|
|
1196
|
-
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1197
|
-
Table Column Resize
|
|
1198
|
-
</h3>
|
|
1199
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border">
|
|
1200
|
-
<div className="border-fm-divider-secondary flex border-b">
|
|
1201
|
-
<div className="border-fm-divider-secondary flex-1 border-r p-3">
|
|
1202
|
-
<span className="text-fm-icon-active text-sm font-medium">
|
|
1203
|
-
Name
|
|
1204
|
-
</span>
|
|
1205
|
-
</div>
|
|
1206
|
-
<div className="hover:bg-fm-surface-secondary flex w-2 cursor-col-resize items-center justify-center">
|
|
1207
|
-
<MoveHorizontalIcon className="text-fm-icon-active/30 h-3 w-3" />
|
|
1208
|
-
</div>
|
|
1209
|
-
<div className="border-fm-divider-secondary flex-1 border-r p-3">
|
|
1210
|
-
<span className="text-fm-icon-active text-sm font-medium">
|
|
1211
|
-
Email
|
|
1212
|
-
</span>
|
|
1213
|
-
</div>
|
|
1214
|
-
<div className="hover:bg-fm-surface-secondary flex w-2 cursor-col-resize items-center justify-center">
|
|
1215
|
-
<MoveHorizontalIcon className="text-fm-icon-active/30 h-3 w-3" />
|
|
1216
|
-
</div>
|
|
1217
|
-
<div className="flex-1 p-3">
|
|
1218
|
-
<span className="text-fm-icon-active text-sm font-medium">
|
|
1219
|
-
Status
|
|
1220
|
-
</span>
|
|
1221
|
-
</div>
|
|
1222
|
-
</div>
|
|
1223
|
-
<div className="flex">
|
|
1224
|
-
<div className="border-fm-divider-secondary flex-1 border-r p-3">
|
|
1225
|
-
<span className="text-fm-secondary text-sm">John Doe</span>
|
|
1226
|
-
</div>
|
|
1227
|
-
<div className="w-2"></div>
|
|
1228
|
-
<div className="border-fm-divider-secondary flex-1 border-r p-3">
|
|
1229
|
-
<span className="text-fm-secondary text-sm">
|
|
1230
|
-
john@example.com
|
|
1231
|
-
</span>
|
|
1232
|
-
</div>
|
|
1233
|
-
<div className="w-2"></div>
|
|
1234
|
-
<div className="flex-1 p-3">
|
|
1235
|
-
<span className="bg-fm-icon-positive/20 text-fm-icon-positive rounded-full px-2 py-1 text-xs">
|
|
1236
|
-
Active
|
|
1237
|
-
</span>
|
|
1238
|
-
</div>
|
|
1239
|
-
</div>
|
|
137
|
+
</IconUsageSection>
|
|
138
|
+
|
|
139
|
+
<IconUsageSection title="Swipe Indicator">
|
|
140
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm flex-col items-center gap-2 rounded-xl border px-4 py-4">
|
|
141
|
+
<MoveHorizontalIcon className="text-fm-icon-inactive h-5 w-5" />
|
|
142
|
+
<span className="text-fm-secondary font-fm-text text-xs">
|
|
143
|
+
Swipe to navigate
|
|
144
|
+
</span>
|
|
1240
145
|
</div>
|
|
1241
|
-
</
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
description: {
|
|
1251
|
-
story:
|
|
1252
|
-
"Interactive states showing hover effects, animations, and cursor styles for the horizontal move icon.",
|
|
1253
|
-
},
|
|
1254
|
-
},
|
|
1255
|
-
},
|
|
1256
|
-
render: () => (
|
|
1257
|
-
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
1258
|
-
<div className="!space-y-4">
|
|
1259
|
-
<h3 className="text-fm-secondary text-sm font-medium">
|
|
1260
|
-
Hover & Animation Effects
|
|
1261
|
-
</h3>
|
|
1262
|
-
<div className="flex gap-8">
|
|
1263
|
-
<div className="flex flex-col items-center gap-2">
|
|
1264
|
-
<MoveHorizontalIcon className="text-fm-tertiary hover:text-fm-icon-info h-8 w-8 transition-colors" />
|
|
1265
|
-
<span className="text-fm-tertiary text-xs">Color Change</span>
|
|
146
|
+
</IconUsageSection>
|
|
147
|
+
|
|
148
|
+
<IconUsageSection title="Move vs Axes">
|
|
149
|
+
<div className="flex gap-4">
|
|
150
|
+
<div className="flex flex-col items-center gap-1">
|
|
151
|
+
<MoveHorizontalIcon className="text-fm-icon-active h-6 w-6" />
|
|
152
|
+
<span className="text-fm-secondary font-fm-text text-xs">
|
|
153
|
+
Horizontal
|
|
154
|
+
</span>
|
|
1266
155
|
</div>
|
|
1267
|
-
<div className="flex flex-col items-center gap-
|
|
1268
|
-
<
|
|
1269
|
-
<span className="text-fm-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
<MoveHorizontalIcon className="animate-slide-horizontal text-fm-icon-info h-8 w-8" />
|
|
1273
|
-
<span className="text-fm-tertiary text-xs">Slide</span>
|
|
1274
|
-
</div>
|
|
1275
|
-
<div className="flex flex-col items-center gap-2">
|
|
1276
|
-
<MoveHorizontalIcon className="animate-pulse-scale text-fm-icon-info h-8 w-8" />
|
|
1277
|
-
<span className="text-fm-tertiary text-xs">Pulse</span>
|
|
156
|
+
<div className="flex flex-col items-center gap-1">
|
|
157
|
+
<MoveVerticalIcon className="text-fm-icon-inactive h-6 w-6" />
|
|
158
|
+
<span className="text-fm-secondary font-fm-text text-xs">
|
|
159
|
+
Vertical
|
|
160
|
+
</span>
|
|
1278
161
|
</div>
|
|
1279
162
|
</div>
|
|
1280
|
-
</
|
|
1281
|
-
</
|
|
163
|
+
</IconUsageSection>
|
|
164
|
+
</IconUsageCanvas>
|
|
1282
165
|
),
|
|
1283
166
|
}
|
|
1284
167
|
|
|
1285
168
|
export const Playground: Story = {
|
|
1286
|
-
parameters: {
|
|
1287
|
-
...storyParameters,
|
|
1288
|
-
docs: {
|
|
1289
|
-
description: {
|
|
1290
|
-
story:
|
|
1291
|
-
"Interactive playground to experiment with different MoveHorizontalIcon configurations.",
|
|
1292
|
-
},
|
|
1293
|
-
},
|
|
1294
|
-
},
|
|
1295
169
|
args: {
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
className: "text-fm-icon-info ",
|
|
170
|
+
className: "h-8 w-8 text-fm-icon-inactive",
|
|
171
|
+
withAccessibility: true,
|
|
1299
172
|
},
|
|
1300
173
|
render: (args) => (
|
|
1301
|
-
<
|
|
1302
|
-
<
|
|
1303
|
-
|
|
1304
|
-
</div>
|
|
1305
|
-
</div>
|
|
174
|
+
<IconPlaygroundCanvas>
|
|
175
|
+
<MoveHorizontalIcon {...args} />
|
|
176
|
+
</IconPlaygroundCanvas>
|
|
1306
177
|
),
|
|
1307
178
|
}
|