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 MoveHorizontalIcon> = {
|
|
|
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: {
|
|
@@ -40,42 +40,42 @@ const meta: Meta<typeof MoveHorizontalIcon> = {
|
|
|
40
40
|
background: transparent ;
|
|
41
41
|
}
|
|
42
42
|
body {
|
|
43
|
-
background:
|
|
43
|
+
background: var(--color-fm-surface-primary) ;
|
|
44
44
|
}
|
|
45
45
|
#storybook-docs {
|
|
46
|
-
background:
|
|
46
|
+
background: var(--color-fm-surface-primary) ;
|
|
47
47
|
}
|
|
48
48
|
.sbdocs-preview {
|
|
49
49
|
background: transparent ;
|
|
50
50
|
border: none ;
|
|
51
51
|
}
|
|
52
52
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color:
|
|
53
|
+
color: var(--color-fm-icon-active) ;
|
|
54
54
|
}
|
|
55
55
|
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color:
|
|
56
|
+
color: var(--color-fm-secondary) ;
|
|
57
57
|
}
|
|
58
58
|
.sbdocs-code {
|
|
59
|
-
background:
|
|
60
|
-
color:
|
|
61
|
-
border: 1px solid
|
|
59
|
+
background: var(--color-fm-surface-secondary) ;
|
|
60
|
+
color: var(--color-fm-secondary-500) ;
|
|
61
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
62
62
|
}
|
|
63
63
|
.sbdocs-pre {
|
|
64
|
-
background:
|
|
65
|
-
border: 1px solid
|
|
64
|
+
background: var(--color-fm-surface-secondary) ;
|
|
65
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
66
66
|
}
|
|
67
67
|
.sbdocs-table {
|
|
68
|
-
background:
|
|
69
|
-
border: 1px solid
|
|
68
|
+
background: var(--color-fm-surface-secondary) ;
|
|
69
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
70
70
|
}
|
|
71
71
|
.sbdocs-table th {
|
|
72
|
-
background:
|
|
73
|
-
color:
|
|
74
|
-
border-bottom: 1px solid
|
|
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
75
|
}
|
|
76
76
|
.sbdocs-table td {
|
|
77
|
-
color:
|
|
78
|
-
border-bottom: 1px solid
|
|
77
|
+
color: var(--color-fm-secondary) ;
|
|
78
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
|
|
79
79
|
}
|
|
80
80
|
@keyframes slide-left-right {
|
|
81
81
|
0%, 100% { transform: translateX(0); }
|
|
@@ -95,19 +95,19 @@ const meta: Meta<typeof MoveHorizontalIcon> = {
|
|
|
95
95
|
`}
|
|
96
96
|
</style>
|
|
97
97
|
|
|
98
|
-
<div className="
|
|
98
|
+
<div className="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
|
|
99
99
|
{/* Header */}
|
|
100
|
-
<div className="relative overflow-hidden border-b
|
|
101
|
-
<div className="absolute inset-0 bg-
|
|
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
102
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
103
103
|
<div className="!space-y-6 text-center">
|
|
104
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border
|
|
105
|
-
<MoveHorizontalIcon className="h-12 w-12
|
|
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
106
|
</div>
|
|
107
107
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
108
108
|
MoveHorizontalIcon
|
|
109
109
|
</h1>
|
|
110
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
110
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
111
111
|
A horizontal movement icon featuring left and right arrows,
|
|
112
112
|
perfect for indicating horizontal drag operations, resizable
|
|
113
113
|
panels, carousel navigation, and lateral movement controls.
|
|
@@ -118,28 +118,28 @@ const meta: Meta<typeof MoveHorizontalIcon> = {
|
|
|
118
118
|
{/* Stats */}
|
|
119
119
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
120
120
|
<div className="text-center">
|
|
121
|
-
<div className="text-3xl font-bold
|
|
121
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
122
122
|
Resize
|
|
123
123
|
</div>
|
|
124
|
-
<div className="text-
|
|
124
|
+
<div className="text-fm-tertiary text-sm">
|
|
125
125
|
Panel controls
|
|
126
126
|
</div>
|
|
127
127
|
</div>
|
|
128
|
-
<div className="h-8 w-px
|
|
128
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
129
129
|
<div className="text-center">
|
|
130
|
-
<div className="text-3xl font-bold
|
|
130
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
131
131
|
Navigate
|
|
132
132
|
</div>
|
|
133
|
-
<div className="text-
|
|
133
|
+
<div className="text-fm-tertiary text-sm">
|
|
134
134
|
Carousel movement
|
|
135
135
|
</div>
|
|
136
136
|
</div>
|
|
137
|
-
<div className="h-8 w-px
|
|
137
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
138
138
|
<div className="text-center">
|
|
139
|
-
<div className="text-3xl font-bold
|
|
139
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
140
140
|
Drag
|
|
141
141
|
</div>
|
|
142
|
-
<div className="text-
|
|
142
|
+
<div className="text-fm-tertiary text-sm">
|
|
143
143
|
Interactive handles
|
|
144
144
|
</div>
|
|
145
145
|
</div>
|
|
@@ -152,16 +152,16 @@ const meta: Meta<typeof MoveHorizontalIcon> = {
|
|
|
152
152
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
153
153
|
{/* Quick Usage */}
|
|
154
154
|
<div className="!space-y-8">
|
|
155
|
-
<h2 className="text-center text-3xl font-bold
|
|
155
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
156
156
|
Quick Start
|
|
157
157
|
</h2>
|
|
158
158
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
159
159
|
<div className="!space-y-4">
|
|
160
|
-
<h3 className="text-xl font-semibold
|
|
160
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
161
161
|
Basic Usage
|
|
162
162
|
</h3>
|
|
163
|
-
<div className="rounded-lg
|
|
164
|
-
<pre className="overflow-x-auto text-sm
|
|
163
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
164
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
165
165
|
{`import { MoveHorizontalIcon } from "@icons/move-horizontal-icon"
|
|
166
166
|
|
|
167
167
|
function ResizeHandle() {
|
|
@@ -176,21 +176,21 @@ function ResizeHandle() {
|
|
|
176
176
|
</div>
|
|
177
177
|
|
|
178
178
|
<div className="!space-y-4">
|
|
179
|
-
<h3 className="text-xl font-semibold
|
|
179
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
180
180
|
Live Preview
|
|
181
181
|
</h3>
|
|
182
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
183
|
-
<div className="flex h-20 rounded-lg border
|
|
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
184
|
<div className="flex-1 p-4">
|
|
185
|
-
<span className="text-
|
|
185
|
+
<span className="text-fm-secondary text-sm">
|
|
186
186
|
Left Panel
|
|
187
187
|
</span>
|
|
188
188
|
</div>
|
|
189
|
-
<div className="flex w-2 cursor-col-resize items-center justify-center
|
|
190
|
-
<MoveHorizontalIcon className="h-4 w-4
|
|
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
191
|
</div>
|
|
192
192
|
<div className="flex-1 p-4">
|
|
193
|
-
<span className="text-
|
|
193
|
+
<span className="text-fm-secondary text-sm">
|
|
194
194
|
Right Panel
|
|
195
195
|
</span>
|
|
196
196
|
</div>
|
|
@@ -202,106 +202,116 @@ function ResizeHandle() {
|
|
|
202
202
|
|
|
203
203
|
{/* Props Documentation */}
|
|
204
204
|
<div className="!space-y-8">
|
|
205
|
-
<h2 className="text-center text-3xl font-bold
|
|
205
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
206
206
|
Props & Configuration
|
|
207
207
|
</h2>
|
|
208
208
|
|
|
209
|
-
<div className="overflow-hidden rounded-lg border
|
|
210
|
-
<div className="bg-
|
|
211
|
-
<h3 className="text-xl font-semibold
|
|
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>
|
|
212
214
|
</div>
|
|
213
215
|
<table className="!my-0 w-full">
|
|
214
|
-
<thead className="bg-
|
|
215
|
-
<tr className="border-
|
|
216
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
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">
|
|
217
219
|
Prop
|
|
218
220
|
</th>
|
|
219
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
221
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
220
222
|
Type
|
|
221
223
|
</th>
|
|
222
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
224
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
223
225
|
Default
|
|
224
226
|
</th>
|
|
225
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
227
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
226
228
|
Description
|
|
227
229
|
</th>
|
|
228
230
|
</tr>
|
|
229
231
|
</thead>
|
|
230
232
|
<tbody>
|
|
231
233
|
{" "}
|
|
232
|
-
<tr className="
|
|
233
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
234
|
+
<tr className="bg-fm-surface-secondary!">
|
|
235
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
234
236
|
withAccessibility
|
|
235
237
|
</td>
|
|
236
|
-
<td className="px-6 py-4 text-sm
|
|
238
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
237
239
|
boolean
|
|
238
240
|
</td>
|
|
239
|
-
<td className="px-6 py-4 text-sm
|
|
241
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
240
242
|
true
|
|
241
243
|
</td>
|
|
242
|
-
<td className="px-6 py-4 text-sm
|
|
244
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
243
245
|
Whether to wrap the icon with accessibility feature
|
|
244
246
|
</td>
|
|
245
247
|
</tr>
|
|
246
|
-
<tr className="border-
|
|
247
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
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">
|
|
248
250
|
height
|
|
249
251
|
</td>
|
|
250
|
-
<td className="px-6 py-4 text-sm
|
|
252
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
251
253
|
number | string
|
|
252
254
|
</td>
|
|
253
|
-
<td className="px-6 py-4 text-sm
|
|
254
|
-
|
|
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">
|
|
255
259
|
Height of the icon in pixels
|
|
256
260
|
</td>
|
|
257
261
|
</tr>
|
|
258
|
-
<tr className="border-
|
|
259
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
262
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
263
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
260
264
|
stroke
|
|
261
265
|
</td>
|
|
262
|
-
<td className="px-6 py-4 text-sm
|
|
266
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
263
267
|
string
|
|
264
268
|
</td>
|
|
265
|
-
<td className="px-6 py-4 text-sm
|
|
269
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
266
270
|
currentColor
|
|
267
271
|
</td>
|
|
268
|
-
<td className="px-6 py-4 text-sm
|
|
272
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
269
273
|
Stroke color of the icon lines
|
|
270
274
|
</td>
|
|
271
275
|
</tr>
|
|
272
|
-
<tr className="border-
|
|
273
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
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">
|
|
274
278
|
strokeWidth
|
|
275
279
|
</td>
|
|
276
|
-
<td className="px-6 py-4 text-sm
|
|
280
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
277
281
|
string | number
|
|
278
282
|
</td>
|
|
279
|
-
<td className="px-6 py-4 text-sm
|
|
280
|
-
|
|
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">
|
|
281
287
|
Width of the stroke lines
|
|
282
288
|
</td>
|
|
283
289
|
</tr>
|
|
284
|
-
<tr className="border-
|
|
285
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
290
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
291
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
286
292
|
className
|
|
287
293
|
</td>
|
|
288
|
-
<td className="px-6 py-4 text-sm
|
|
294
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
289
295
|
string
|
|
290
296
|
</td>
|
|
291
|
-
<td className="px-6 py-4 text-sm
|
|
292
|
-
|
|
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">
|
|
293
301
|
CSS classes for styling (use for overrides)
|
|
294
302
|
</td>
|
|
295
303
|
</tr>
|
|
296
|
-
<tr className="
|
|
297
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
304
|
+
<tr className="bg-fm-surface-secondary!">
|
|
305
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
298
306
|
...svgProps
|
|
299
307
|
</td>
|
|
300
|
-
<td className="px-6 py-4 text-sm
|
|
308
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
301
309
|
SVGProps
|
|
302
310
|
</td>
|
|
303
|
-
<td className="px-6 py-4 text-sm
|
|
304
|
-
|
|
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">
|
|
305
315
|
All standard SVG element props
|
|
306
316
|
</td>
|
|
307
317
|
</tr>
|
|
@@ -312,50 +322,62 @@ function ResizeHandle() {
|
|
|
312
322
|
|
|
313
323
|
{/* Size Variations */}
|
|
314
324
|
<div className="!space-y-8">
|
|
315
|
-
<h2 className="text-center text-3xl font-bold
|
|
325
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
316
326
|
Size Variations
|
|
317
327
|
</h2>
|
|
318
|
-
<div className="rounded-lg border
|
|
328
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
319
329
|
<div className="!space-y-6">
|
|
320
330
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
321
331
|
<div className="!space-y-4">
|
|
322
|
-
<h3 className="text-lg font-semibold
|
|
332
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
323
333
|
Standard Sizes
|
|
324
334
|
</h3>
|
|
325
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
335
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
326
336
|
<div className="text-center">
|
|
327
|
-
<MoveHorizontalIcon className="!mx-auto mb-2 h-3 w-3
|
|
328
|
-
<span className="text-
|
|
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>
|
|
329
341
|
</div>
|
|
330
342
|
<div className="text-center">
|
|
331
|
-
<MoveHorizontalIcon className="!mx-auto mb-2 h-4 w-4
|
|
332
|
-
<span className="text-
|
|
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>
|
|
333
347
|
</div>
|
|
334
348
|
<div className="text-center">
|
|
335
|
-
<MoveHorizontalIcon className="!mx-auto mb-2 h-5 w-5
|
|
336
|
-
<span className="text-
|
|
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>
|
|
337
353
|
</div>
|
|
338
354
|
<div className="text-center">
|
|
339
|
-
<MoveHorizontalIcon className="!mx-auto mb-2 h-6 w-6
|
|
340
|
-
<span className="text-
|
|
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>
|
|
341
359
|
</div>
|
|
342
360
|
<div className="text-center">
|
|
343
|
-
<MoveHorizontalIcon className="!mx-auto mb-2 h-8 w-8
|
|
344
|
-
<span className="text-
|
|
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>
|
|
345
365
|
</div>
|
|
346
366
|
<div className="text-center">
|
|
347
|
-
<MoveHorizontalIcon className="!mx-auto mb-2 h-12 w-12
|
|
348
|
-
<span className="text-
|
|
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>
|
|
349
371
|
</div>
|
|
350
372
|
</div>
|
|
351
373
|
</div>
|
|
352
374
|
|
|
353
375
|
<div className="!space-y-4">
|
|
354
|
-
<h3 className="text-lg font-semibold
|
|
376
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
355
377
|
Code Example
|
|
356
378
|
</h3>
|
|
357
|
-
<div className="rounded-lg
|
|
358
|
-
<pre className="overflow-x-auto text-sm
|
|
379
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
380
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
359
381
|
{`// Small resize handle (12px)
|
|
360
382
|
<MoveHorizontalIcon className="h-3 w-3 " />
|
|
361
383
|
|
|
@@ -381,56 +403,56 @@ function ResizeHandle() {
|
|
|
381
403
|
|
|
382
404
|
{/* Color Variations */}
|
|
383
405
|
<div className="!space-y-8">
|
|
384
|
-
<h2 className="text-center text-3xl font-bold
|
|
406
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
385
407
|
Color Variations
|
|
386
408
|
</h2>
|
|
387
409
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
388
410
|
<div className="!space-y-4">
|
|
389
|
-
<h3 className="text-lg font-semibold
|
|
411
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
390
412
|
Semantic Colors
|
|
391
413
|
</h3>
|
|
392
|
-
<div className="!space-y-4 rounded-lg border
|
|
414
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
393
415
|
<div className="flex items-center gap-4">
|
|
394
|
-
<MoveHorizontalIcon className="h-6 w-6
|
|
416
|
+
<MoveHorizontalIcon className="text-fm-icon-info h-6 w-6" />
|
|
395
417
|
<div>
|
|
396
|
-
<div className="text-sm font-medium
|
|
418
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
397
419
|
Interactive Control
|
|
398
420
|
</div>
|
|
399
|
-
<div className="text-
|
|
400
|
-
text-
|
|
421
|
+
<div className="text-fm-tertiary text-xs">
|
|
422
|
+
text-fm-icon-info
|
|
401
423
|
</div>
|
|
402
424
|
</div>
|
|
403
425
|
</div>
|
|
404
426
|
<div className="flex items-center gap-4">
|
|
405
|
-
<MoveHorizontalIcon className="h-6 w-6
|
|
427
|
+
<MoveHorizontalIcon className="text-fm-icon-info h-6 w-6" />
|
|
406
428
|
<div>
|
|
407
|
-
<div className="text-sm font-medium
|
|
429
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
408
430
|
Resize Handle
|
|
409
431
|
</div>
|
|
410
|
-
<div className="text-
|
|
411
|
-
text-
|
|
432
|
+
<div className="text-fm-tertiary text-xs">
|
|
433
|
+
text-fm-icon-info
|
|
412
434
|
</div>
|
|
413
435
|
</div>
|
|
414
436
|
</div>
|
|
415
437
|
<div className="flex items-center gap-4">
|
|
416
|
-
<MoveHorizontalIcon className="h-6 w-6
|
|
438
|
+
<MoveHorizontalIcon className="text-fm-placeholder h-6 w-6" />
|
|
417
439
|
<div>
|
|
418
|
-
<div className="text-sm font-medium
|
|
440
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
419
441
|
Disabled State
|
|
420
442
|
</div>
|
|
421
|
-
<div className="text-
|
|
422
|
-
text-
|
|
443
|
+
<div className="text-fm-tertiary text-xs">
|
|
444
|
+
text-fm-placeholder
|
|
423
445
|
</div>
|
|
424
446
|
</div>
|
|
425
447
|
</div>
|
|
426
448
|
<div className="flex items-center gap-4">
|
|
427
|
-
<MoveHorizontalIcon className="h-6 w-6
|
|
449
|
+
<MoveHorizontalIcon className="text-fm-icon-info h-6 w-6" />
|
|
428
450
|
<div>
|
|
429
|
-
<div className="text-sm font-medium
|
|
451
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
430
452
|
Navigation Arrow
|
|
431
453
|
</div>
|
|
432
|
-
<div className="text-
|
|
433
|
-
text-
|
|
454
|
+
<div className="text-fm-tertiary text-xs">
|
|
455
|
+
text-fm-icon-info
|
|
434
456
|
</div>
|
|
435
457
|
</div>
|
|
436
458
|
</div>
|
|
@@ -438,11 +460,11 @@ function ResizeHandle() {
|
|
|
438
460
|
</div>
|
|
439
461
|
|
|
440
462
|
<div className="!space-y-4">
|
|
441
|
-
<h3 className="text-lg font-semibold
|
|
463
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
442
464
|
Custom Colors
|
|
443
465
|
</h3>
|
|
444
|
-
<div className="rounded-lg
|
|
445
|
-
<pre className="overflow-x-auto text-sm
|
|
466
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
467
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
446
468
|
{`// Using Tailwind classes with
|
|
447
469
|
<MoveHorizontalIcon className="h-6 w-6 text-indigo-400 " />
|
|
448
470
|
<MoveHorizontalIcon className="h-6 w-6 text-cyan-500 " />
|
|
@@ -467,40 +489,40 @@ function ResizeHandle() {
|
|
|
467
489
|
|
|
468
490
|
{/* Usage Examples */}
|
|
469
491
|
<div className="!space-y-8">
|
|
470
|
-
<h2 className="text-center text-3xl font-bold
|
|
492
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
471
493
|
Usage Examples
|
|
472
494
|
</h2>
|
|
473
495
|
|
|
474
496
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
475
497
|
{/* Resizable Panels */}
|
|
476
498
|
<div className="!space-y-4">
|
|
477
|
-
<h3 className="text-lg font-semibold
|
|
499
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
478
500
|
Resizable Panels
|
|
479
501
|
</h3>
|
|
480
502
|
<div className="!space-y-4">
|
|
481
|
-
<div className="flex h-32 rounded-lg border
|
|
503
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 rounded-lg border">
|
|
482
504
|
<div className="flex-1 p-4">
|
|
483
|
-
<span className="text-
|
|
505
|
+
<span className="text-fm-secondary text-sm">
|
|
484
506
|
Left Panel
|
|
485
507
|
</span>
|
|
486
|
-
<p className="mt-2 text-xs
|
|
508
|
+
<p className="text-fm-placeholder! mt-2 text-xs">
|
|
487
509
|
Sidebar content
|
|
488
510
|
</p>
|
|
489
511
|
</div>
|
|
490
|
-
<div className="flex w-2 cursor-col-resize items-center justify-center
|
|
491
|
-
<MoveHorizontalIcon className="h-4 w-4
|
|
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" />
|
|
492
514
|
</div>
|
|
493
515
|
<div className="flex-1 p-4">
|
|
494
|
-
<span className="text-
|
|
516
|
+
<span className="text-fm-secondary text-sm">
|
|
495
517
|
Right Panel
|
|
496
518
|
</span>
|
|
497
|
-
<p className="mt-2 text-xs
|
|
519
|
+
<p className="text-fm-placeholder! mt-2 text-xs">
|
|
498
520
|
Main content area
|
|
499
521
|
</p>
|
|
500
522
|
</div>
|
|
501
523
|
</div>
|
|
502
|
-
<div className="rounded-lg
|
|
503
|
-
<pre className="overflow-x-auto text-sm
|
|
524
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
525
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
504
526
|
{`<div className="flex h-32 rounded-lg border border-white/10 bg-white/5">
|
|
505
527
|
<div className="flex-1 p-4">
|
|
506
528
|
<span>Left Panel</span>
|
|
@@ -519,30 +541,30 @@ function ResizeHandle() {
|
|
|
519
541
|
|
|
520
542
|
{/* Carousel Navigation */}
|
|
521
543
|
<div className="!space-y-4">
|
|
522
|
-
<h3 className="text-lg font-semibold
|
|
544
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
523
545
|
Carousel Navigation
|
|
524
546
|
</h3>
|
|
525
547
|
<div className="!space-y-4">
|
|
526
548
|
<div className="flex items-center justify-center gap-4">
|
|
527
|
-
<button className="
|
|
528
|
-
<MoveHorizontalIcon className="h-5 w-5 rotate-180
|
|
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" />
|
|
529
551
|
</button>
|
|
530
|
-
<div className="rounded-lg border
|
|
531
|
-
<span className="text-
|
|
552
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
553
|
+
<span className="text-fm-secondary text-sm">
|
|
532
554
|
Carousel Item
|
|
533
555
|
</span>
|
|
534
556
|
<div className="mt-2 flex gap-2">
|
|
535
|
-
<div className="h-2 w-8 rounded-full
|
|
536
|
-
<div className="h-2 w-2 rounded-full
|
|
537
|
-
<div className="h-2 w-2 rounded-full
|
|
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>
|
|
538
560
|
</div>
|
|
539
561
|
</div>
|
|
540
|
-
<button className="
|
|
541
|
-
<MoveHorizontalIcon className="h-5 w-5
|
|
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" />
|
|
542
564
|
</button>
|
|
543
565
|
</div>
|
|
544
|
-
<div className="rounded-lg
|
|
545
|
-
<pre className="overflow-x-auto text-sm
|
|
566
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
567
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
546
568
|
{`// Carousel navigation buttons
|
|
547
569
|
<button className="rounded-lg border border-white/20 bg-white/5 p-3 hover:bg-white/10">
|
|
548
570
|
<MoveHorizontalIcon className="h-5 w-5 rotate-180 text-white " />
|
|
@@ -562,56 +584,56 @@ function ResizeHandle() {
|
|
|
562
584
|
|
|
563
585
|
{/* Table Column Resize */}
|
|
564
586
|
<div className="!space-y-4">
|
|
565
|
-
<h3 className="text-lg font-semibold
|
|
587
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
566
588
|
Table Column Resize
|
|
567
589
|
</h3>
|
|
568
590
|
<div className="!space-y-4">
|
|
569
|
-
<div className="rounded-lg border
|
|
570
|
-
<div className="flex border-b
|
|
571
|
-
<div className="flex-1 border-r
|
|
572
|
-
<span className="text-sm font-medium
|
|
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">
|
|
573
595
|
Name
|
|
574
596
|
</span>
|
|
575
597
|
</div>
|
|
576
|
-
<div className="flex w-2 cursor-col-resize items-center justify-center
|
|
577
|
-
<MoveHorizontalIcon className="h-3 w-3
|
|
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" />
|
|
578
600
|
</div>
|
|
579
|
-
<div className="flex-1 border-r
|
|
580
|
-
<span className="text-sm font-medium
|
|
601
|
+
<div className="border-fm-divider-secondary flex-1 border-r p-3">
|
|
602
|
+
<span className="text-fm-icon-active text-sm font-medium">
|
|
581
603
|
Email
|
|
582
604
|
</span>
|
|
583
605
|
</div>
|
|
584
|
-
<div className="flex w-2 cursor-col-resize items-center justify-center
|
|
585
|
-
<MoveHorizontalIcon className="h-3 w-3
|
|
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" />
|
|
586
608
|
</div>
|
|
587
609
|
<div className="flex-1 p-3">
|
|
588
|
-
<span className="text-sm font-medium
|
|
610
|
+
<span className="text-fm-icon-active text-sm font-medium">
|
|
589
611
|
Status
|
|
590
612
|
</span>
|
|
591
613
|
</div>
|
|
592
614
|
</div>
|
|
593
615
|
<div className="flex">
|
|
594
|
-
<div className="flex-1 border-r
|
|
595
|
-
<span className="text-
|
|
616
|
+
<div className="border-fm-divider-secondary flex-1 border-r p-3">
|
|
617
|
+
<span className="text-fm-secondary text-sm">
|
|
596
618
|
John Doe
|
|
597
619
|
</span>
|
|
598
620
|
</div>
|
|
599
621
|
<div className="w-2"></div>
|
|
600
|
-
<div className="flex-1 border-r
|
|
601
|
-
<span className="text-
|
|
622
|
+
<div className="border-fm-divider-secondary flex-1 border-r p-3">
|
|
623
|
+
<span className="text-fm-secondary text-sm">
|
|
602
624
|
john@example.com
|
|
603
625
|
</span>
|
|
604
626
|
</div>
|
|
605
627
|
<div className="w-2"></div>
|
|
606
628
|
<div className="flex-1 p-3">
|
|
607
|
-
<span className="
|
|
629
|
+
<span className="bg-fm-icon-positive/20 text-fm-icon-positive rounded-full px-2 py-1 text-xs">
|
|
608
630
|
Active
|
|
609
631
|
</span>
|
|
610
632
|
</div>
|
|
611
633
|
</div>
|
|
612
634
|
</div>
|
|
613
|
-
<div className="rounded-lg
|
|
614
|
-
<pre className="overflow-x-auto text-sm
|
|
635
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
636
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
615
637
|
{`// Table column resizer
|
|
616
638
|
<div className="flex w-2 cursor-col-resize items-center justify-center hover:bg-white/10">
|
|
617
639
|
<MoveHorizontalIcon className="h-3 w-3 text-white/30 " />
|
|
@@ -631,33 +653,35 @@ function ResizeHandle() {
|
|
|
631
653
|
|
|
632
654
|
{/* Sidebar Toggle */}
|
|
633
655
|
<div className="!space-y-4">
|
|
634
|
-
<h3 className="text-lg font-semibold
|
|
656
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
635
657
|
Sidebar Toggle
|
|
636
658
|
</h3>
|
|
637
659
|
<div className="!space-y-4">
|
|
638
|
-
<div className="flex h-24 rounded-lg border
|
|
639
|
-
<div className="w-48 border-r
|
|
640
|
-
<span className="text-
|
|
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>
|
|
641
665
|
<div className="!mt-2 !space-y-1">
|
|
642
|
-
<div className="h-2 w-16 rounded
|
|
643
|
-
<div className="h-2 w-12 rounded
|
|
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>
|
|
644
668
|
</div>
|
|
645
669
|
</div>
|
|
646
|
-
<div className="flex w-8 cursor-pointer items-center justify-center
|
|
647
|
-
<MoveHorizontalIcon className="h-4 w-4
|
|
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" />
|
|
648
672
|
</div>
|
|
649
673
|
<div className="flex-1 p-4">
|
|
650
|
-
<span className="text-
|
|
674
|
+
<span className="text-fm-secondary text-sm">
|
|
651
675
|
Main Content
|
|
652
676
|
</span>
|
|
653
677
|
<div className="!mt-2 !space-y-2">
|
|
654
|
-
<div className="h-2 w-full rounded
|
|
655
|
-
<div className="h-2 w-3/4 rounded
|
|
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>
|
|
656
680
|
</div>
|
|
657
681
|
</div>
|
|
658
682
|
</div>
|
|
659
|
-
<div className="rounded-lg
|
|
660
|
-
<pre className="overflow-x-auto text-sm
|
|
683
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
684
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
661
685
|
{`// Sidebar toggle handle
|
|
662
686
|
<div className="flex w-8 cursor-pointer items-center justify-center bg-indigo-500/10 hover:bg-indigo-500/20">
|
|
663
687
|
<MoveHorizontalIcon className="h-4 w-4 text-indigo-400 " />
|
|
@@ -680,55 +704,55 @@ function ResizeHandle() {
|
|
|
680
704
|
|
|
681
705
|
{/* Interactive States */}
|
|
682
706
|
<div className="!space-y-8">
|
|
683
|
-
<h2 className="text-center text-3xl font-bold
|
|
707
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
684
708
|
Interactive States & Animations
|
|
685
709
|
</h2>
|
|
686
710
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
687
711
|
<div className="!space-y-4">
|
|
688
|
-
<h3 className="text-lg font-semibold
|
|
712
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
689
713
|
Hover & Animation Effects
|
|
690
714
|
</h3>
|
|
691
|
-
<div className="!space-y-4 rounded-lg border
|
|
715
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
692
716
|
<div className="flex items-center gap-4">
|
|
693
|
-
<MoveHorizontalIcon className="h-6 w-6
|
|
717
|
+
<MoveHorizontalIcon className="text-fm-tertiary hover:text-fm-icon-info h-6 w-6 transition-colors" />
|
|
694
718
|
<div>
|
|
695
|
-
<div className="text-sm font-medium
|
|
719
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
696
720
|
Color Change
|
|
697
721
|
</div>
|
|
698
|
-
<div className="text-
|
|
699
|
-
hover:text-
|
|
722
|
+
<div className="text-fm-tertiary text-xs">
|
|
723
|
+
hover:text-fm-icon-info
|
|
700
724
|
</div>
|
|
701
725
|
</div>
|
|
702
726
|
</div>
|
|
703
727
|
<div className="flex items-center gap-4">
|
|
704
|
-
<MoveHorizontalIcon className="h-6 w-6
|
|
728
|
+
<MoveHorizontalIcon className="text-fm-icon-active h-6 w-6 transition-transform hover:scale-110" />
|
|
705
729
|
<div>
|
|
706
|
-
<div className="text-sm font-medium
|
|
730
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
707
731
|
Scale Effect
|
|
708
732
|
</div>
|
|
709
|
-
<div className="text-
|
|
733
|
+
<div className="text-fm-tertiary text-xs">
|
|
710
734
|
hover:scale-110
|
|
711
735
|
</div>
|
|
712
736
|
</div>
|
|
713
737
|
</div>
|
|
714
738
|
<div className="flex items-center gap-4">
|
|
715
|
-
<MoveHorizontalIcon className="animate-slide-horizontal h-6 w-6
|
|
739
|
+
<MoveHorizontalIcon className="animate-slide-horizontal text-fm-icon-info h-6 w-6" />
|
|
716
740
|
<div>
|
|
717
|
-
<div className="text-sm font-medium
|
|
741
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
718
742
|
Horizontal Movement
|
|
719
743
|
</div>
|
|
720
|
-
<div className="text-
|
|
744
|
+
<div className="text-fm-tertiary text-xs">
|
|
721
745
|
animate-slide-horizontal
|
|
722
746
|
</div>
|
|
723
747
|
</div>
|
|
724
748
|
</div>
|
|
725
749
|
<div className="flex items-center gap-4">
|
|
726
|
-
<MoveHorizontalIcon className="animate-pulse-scale h-6 w-6
|
|
750
|
+
<MoveHorizontalIcon className="animate-pulse-scale text-fm-icon-info h-6 w-6" />
|
|
727
751
|
<div>
|
|
728
|
-
<div className="text-sm font-medium
|
|
752
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
729
753
|
Pulse Scale
|
|
730
754
|
</div>
|
|
731
|
-
<div className="text-
|
|
755
|
+
<div className="text-fm-tertiary text-xs">
|
|
732
756
|
animate-pulse-scale
|
|
733
757
|
</div>
|
|
734
758
|
</div>
|
|
@@ -737,11 +761,11 @@ function ResizeHandle() {
|
|
|
737
761
|
</div>
|
|
738
762
|
|
|
739
763
|
<div className="!space-y-4">
|
|
740
|
-
<h3 className="text-lg font-semibold
|
|
764
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
741
765
|
Cursor & State Examples
|
|
742
766
|
</h3>
|
|
743
|
-
<div className="rounded-lg
|
|
744
|
-
<pre className="overflow-x-auto text-sm
|
|
767
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
768
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
745
769
|
{`// Hover effects
|
|
746
770
|
<MoveHorizontalIcon className="h-6 w-6 text-white/60 hover:text-indigo-400 transition-colors " />
|
|
747
771
|
|
|
@@ -772,65 +796,65 @@ function ResizeHandle() {
|
|
|
772
796
|
|
|
773
797
|
{/* Accessibility */}
|
|
774
798
|
<div className="!space-y-8">
|
|
775
|
-
<h2 className="text-center text-3xl font-bold
|
|
799
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
776
800
|
Accessibility Features
|
|
777
801
|
</h2>
|
|
778
802
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
779
|
-
<div className="!space-y-4 rounded-lg border
|
|
780
|
-
<h3 className="text-lg font-semibold
|
|
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">
|
|
781
805
|
✅ Built-in Features
|
|
782
806
|
</h3>
|
|
783
|
-
<ul className="!space-y-2 text-sm
|
|
784
|
-
<li className="
|
|
807
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
808
|
+
<li className="text-fm-secondary!">
|
|
785
809
|
Uses Radix UI AccessibleIcon wrapper
|
|
786
810
|
</li>
|
|
787
|
-
<li className="
|
|
811
|
+
<li className="text-fm-secondary!">
|
|
788
812
|
Provides screen reader label "Move Horizontal icon"
|
|
789
813
|
</li>
|
|
790
|
-
<li className="
|
|
814
|
+
<li className="text-fm-secondary!">
|
|
791
815
|
Supports keyboard navigation when interactive
|
|
792
816
|
</li>
|
|
793
|
-
<li className="
|
|
817
|
+
<li className="text-fm-secondary!">
|
|
794
818
|
Maintains proper color contrast ratios
|
|
795
819
|
</li>
|
|
796
|
-
<li className="
|
|
820
|
+
<li className="text-fm-secondary!">
|
|
797
821
|
Scales with user's font size preferences
|
|
798
822
|
</li>
|
|
799
823
|
</ul>
|
|
800
824
|
</div>
|
|
801
825
|
|
|
802
|
-
<div className="!space-y-4 rounded-lg border
|
|
803
|
-
<h3 className="text-lg font-semibold
|
|
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">
|
|
804
828
|
💡 Best Practices
|
|
805
829
|
</h3>
|
|
806
|
-
<ul className="!space-y-2 text-sm
|
|
807
|
-
<li className="
|
|
830
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
831
|
+
<li className="text-fm-secondary!">
|
|
808
832
|
Always provide descriptive ARIA labels for interactive
|
|
809
833
|
elements
|
|
810
834
|
</li>
|
|
811
|
-
<li className="
|
|
835
|
+
<li className="text-fm-secondary!">
|
|
812
836
|
Use appropriate cursor styles for different interactions
|
|
813
837
|
</li>
|
|
814
|
-
<li className="
|
|
838
|
+
<li className="text-fm-secondary!">
|
|
815
839
|
Ensure sufficient click/touch target sizes
|
|
816
840
|
</li>
|
|
817
|
-
<li className="
|
|
841
|
+
<li className="text-fm-secondary!">
|
|
818
842
|
Add focus states for keyboard navigation
|
|
819
843
|
</li>
|
|
820
|
-
<li className="
|
|
844
|
+
<li className="text-fm-secondary!">
|
|
821
845
|
Consider motion sensitivity for animations
|
|
822
846
|
</li>
|
|
823
847
|
</ul>
|
|
824
848
|
</div>
|
|
825
849
|
</div>
|
|
826
850
|
|
|
827
|
-
<div className="rounded-lg border
|
|
828
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
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">
|
|
829
853
|
Interactive Element Accessibility
|
|
830
854
|
</h3>
|
|
831
855
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
832
|
-
<div className="rounded-lg
|
|
833
|
-
<pre className="overflow-x-auto text-sm
|
|
856
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
857
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
834
858
|
{`// Accessible resize handle
|
|
835
859
|
<button
|
|
836
860
|
aria-label="Resize panels horizontally"
|
|
@@ -861,13 +885,13 @@ function ResizeHandle() {
|
|
|
861
885
|
</pre>
|
|
862
886
|
</div>
|
|
863
887
|
<div className="!space-y-4">
|
|
864
|
-
<p className="text-
|
|
888
|
+
<p className="text-fm-secondary! text-sm">
|
|
865
889
|
When using MoveHorizontalIcon for interactive controls,
|
|
866
890
|
provide clear context about the action being performed
|
|
867
891
|
and the current state.
|
|
868
892
|
</p>
|
|
869
|
-
<div className="
|
|
870
|
-
<div className="flex items-center gap-2 text-sm
|
|
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">
|
|
871
895
|
<MoveHorizontalIcon className="h-4 w-4" />
|
|
872
896
|
<span>
|
|
873
897
|
Screen readers understand this represents horizontal
|
|
@@ -882,50 +906,58 @@ function ResizeHandle() {
|
|
|
882
906
|
|
|
883
907
|
{/* Related Icons */}
|
|
884
908
|
<div className="!space-y-8">
|
|
885
|
-
<h2 className="text-center text-3xl font-bold
|
|
909
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
886
910
|
Related Icons
|
|
887
911
|
</h2>
|
|
888
912
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
889
|
-
<div className="!space-y-3 rounded-lg border
|
|
890
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
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">
|
|
891
915
|
<span className="text-2xl">↕️</span>
|
|
892
916
|
</div>
|
|
893
917
|
<div>
|
|
894
|
-
<div className="font-medium
|
|
918
|
+
<div className="text-fm-icon-active font-medium">
|
|
895
919
|
MoveVerticalIcon
|
|
896
920
|
</div>
|
|
897
|
-
<div className="text-
|
|
921
|
+
<div className="text-fm-tertiary text-xs">
|
|
898
922
|
Vertical movement
|
|
899
923
|
</div>
|
|
900
924
|
</div>
|
|
901
925
|
</div>
|
|
902
|
-
<div className="!space-y-3 rounded-lg border
|
|
903
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
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">
|
|
904
928
|
<span className="text-2xl">🎯</span>
|
|
905
929
|
</div>
|
|
906
930
|
<div>
|
|
907
|
-
<div className="font-medium
|
|
908
|
-
|
|
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>
|
|
909
937
|
</div>
|
|
910
938
|
</div>
|
|
911
|
-
<div className="!space-y-3 rounded-lg border
|
|
912
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
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">
|
|
913
941
|
<span className="text-2xl">📐</span>
|
|
914
942
|
</div>
|
|
915
943
|
<div>
|
|
916
|
-
<div className="font-medium
|
|
917
|
-
|
|
944
|
+
<div className="text-fm-icon-active font-medium">
|
|
945
|
+
ResizeIcon
|
|
946
|
+
</div>
|
|
947
|
+
<div className="text-fm-tertiary text-xs">
|
|
918
948
|
Resize controls
|
|
919
949
|
</div>
|
|
920
950
|
</div>
|
|
921
951
|
</div>
|
|
922
|
-
<div className="!space-y-3 rounded-lg border
|
|
923
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
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">
|
|
924
954
|
<span className="text-2xl">🔄</span>
|
|
925
955
|
</div>
|
|
926
956
|
<div>
|
|
927
|
-
<div className="font-medium
|
|
928
|
-
|
|
957
|
+
<div className="text-fm-icon-active font-medium">
|
|
958
|
+
RotateIcon
|
|
959
|
+
</div>
|
|
960
|
+
<div className="text-fm-tertiary text-xs">
|
|
929
961
|
Rotation controls
|
|
930
962
|
</div>
|
|
931
963
|
</div>
|
|
@@ -935,15 +967,15 @@ function ResizeHandle() {
|
|
|
935
967
|
</div>
|
|
936
968
|
|
|
937
969
|
{/* Footer */}
|
|
938
|
-
<div className="border-
|
|
970
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
939
971
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
940
972
|
<div className="!space-y-4 text-center">
|
|
941
|
-
<p className="
|
|
973
|
+
<p className="text-fm-tertiary!">
|
|
942
974
|
MoveHorizontalIcon is part of the Aural UI icon library,
|
|
943
975
|
built for representing horizontal movement, resizing, and
|
|
944
976
|
layout control operations.
|
|
945
977
|
</p>
|
|
946
|
-
<p className="text-
|
|
978
|
+
<p className="text-fm-placeholder! text-sm">
|
|
947
979
|
All icons use Radix UI's AccessibleIcon for screen reader
|
|
948
980
|
compatibility and follow WCAG guidelines for interactive
|
|
949
981
|
controls.
|
|
@@ -993,20 +1025,20 @@ const storyParameters = {
|
|
|
993
1025
|
backgrounds: {
|
|
994
1026
|
default: "dark",
|
|
995
1027
|
values: [
|
|
996
|
-
{ name: "dark", value: "
|
|
997
|
-
{ name: "darker", value: "
|
|
1028
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
1029
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
998
1030
|
],
|
|
999
1031
|
},
|
|
1000
1032
|
}
|
|
1001
1033
|
|
|
1002
1034
|
export const Default: Story = {
|
|
1003
1035
|
args: {
|
|
1004
|
-
className: "h-6 w-6 text-
|
|
1036
|
+
className: "h-6 w-6 text-fm-icon-info ",
|
|
1005
1037
|
withAccessibility: true,
|
|
1006
1038
|
},
|
|
1007
1039
|
parameters: storyParameters,
|
|
1008
1040
|
render: (args) => (
|
|
1009
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1041
|
+
<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">
|
|
1010
1042
|
<MoveHorizontalIcon {...args} />
|
|
1011
1043
|
</div>
|
|
1012
1044
|
),
|
|
@@ -1023,30 +1055,30 @@ export const SizeVariations: Story = {
|
|
|
1023
1055
|
},
|
|
1024
1056
|
},
|
|
1025
1057
|
render: () => (
|
|
1026
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
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">
|
|
1027
1059
|
<div className="text-center">
|
|
1028
|
-
<MoveHorizontalIcon className="!mx-auto mb-2 h-3 w-3
|
|
1029
|
-
<span className="text-
|
|
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>
|
|
1030
1062
|
</div>
|
|
1031
1063
|
<div className="text-center">
|
|
1032
|
-
<MoveHorizontalIcon className="!mx-auto mb-2 h-4 w-4
|
|
1033
|
-
<span className="text-
|
|
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>
|
|
1034
1066
|
</div>
|
|
1035
1067
|
<div className="text-center">
|
|
1036
|
-
<MoveHorizontalIcon className="!mx-auto mb-2 h-5 w-5
|
|
1037
|
-
<span className="text-
|
|
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>
|
|
1038
1070
|
</div>
|
|
1039
1071
|
<div className="text-center">
|
|
1040
|
-
<MoveHorizontalIcon className="!mx-auto mb-2 h-6 w-6
|
|
1041
|
-
<span className="text-
|
|
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>
|
|
1042
1074
|
</div>
|
|
1043
1075
|
<div className="text-center">
|
|
1044
|
-
<MoveHorizontalIcon className="!mx-auto mb-2 h-8 w-8
|
|
1045
|
-
<span className="text-
|
|
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>
|
|
1046
1078
|
</div>
|
|
1047
1079
|
<div className="text-center">
|
|
1048
|
-
<MoveHorizontalIcon className="!mx-auto mb-2 h-12 w-12
|
|
1049
|
-
<span className="text-
|
|
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>
|
|
1050
1082
|
</div>
|
|
1051
1083
|
</div>
|
|
1052
1084
|
),
|
|
@@ -1063,34 +1095,40 @@ export const ColorVariations: Story = {
|
|
|
1063
1095
|
},
|
|
1064
1096
|
},
|
|
1065
1097
|
render: () => (
|
|
1066
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
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">
|
|
1067
1099
|
<div className="text-center">
|
|
1068
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1069
|
-
<MoveHorizontalIcon className="h-8 w-8
|
|
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
|
|
1070
1105
|
</div>
|
|
1071
|
-
<div className="text-
|
|
1072
|
-
<div className="text-xs text-indigo-400">text-indigo-400</div>
|
|
1106
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1073
1107
|
</div>
|
|
1074
1108
|
<div className="text-center">
|
|
1075
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1076
|
-
<MoveHorizontalIcon className="h-8 w-8
|
|
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" />
|
|
1077
1111
|
</div>
|
|
1078
|
-
<div className="text-sm font-medium
|
|
1079
|
-
|
|
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>
|
|
1080
1116
|
</div>
|
|
1081
1117
|
<div className="text-center">
|
|
1082
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1083
|
-
<MoveHorizontalIcon className="h-8 w-8
|
|
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" />
|
|
1084
1120
|
</div>
|
|
1085
|
-
<div className="text-sm font-medium
|
|
1086
|
-
<div className="text-
|
|
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>
|
|
1087
1123
|
</div>
|
|
1088
1124
|
<div className="text-center">
|
|
1089
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1090
|
-
<MoveHorizontalIcon className="h-8 w-8
|
|
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
|
|
1091
1130
|
</div>
|
|
1092
|
-
<div className="text-
|
|
1093
|
-
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
1131
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1094
1132
|
</div>
|
|
1095
1133
|
</div>
|
|
1096
1134
|
),
|
|
@@ -1107,78 +1145,94 @@ export const UsageExamples: Story = {
|
|
|
1107
1145
|
},
|
|
1108
1146
|
},
|
|
1109
1147
|
render: () => (
|
|
1110
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
1148
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
1111
1149
|
{/* Resizable Panels */}
|
|
1112
1150
|
<div className="!space-y-2">
|
|
1113
|
-
<h3 className="text-sm font-medium
|
|
1114
|
-
|
|
1151
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1152
|
+
Resizable Panels
|
|
1153
|
+
</h3>
|
|
1154
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 rounded-lg border">
|
|
1115
1155
|
<div className="flex-1 p-4">
|
|
1116
|
-
<span className="text-
|
|
1117
|
-
<p className="mt-2 text-xs
|
|
1156
|
+
<span className="text-fm-secondary text-sm">Left Panel</span>
|
|
1157
|
+
<p className="text-fm-placeholder mt-2 text-xs">Sidebar content</p>
|
|
1118
1158
|
</div>
|
|
1119
|
-
<div className="flex w-2 cursor-col-resize items-center justify-center
|
|
1120
|
-
<MoveHorizontalIcon className="h-4 w-4
|
|
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" />
|
|
1121
1161
|
</div>
|
|
1122
1162
|
<div className="flex-1 p-4">
|
|
1123
|
-
<span className="text-
|
|
1124
|
-
<p className="mt-2 text-xs
|
|
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>
|
|
1125
1167
|
</div>
|
|
1126
1168
|
</div>
|
|
1127
1169
|
</div>
|
|
1128
1170
|
|
|
1129
1171
|
{/* Carousel Navigation */}
|
|
1130
1172
|
<div className="!space-y-2">
|
|
1131
|
-
<h3 className="text-sm font-medium
|
|
1173
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1174
|
+
Carousel Navigation
|
|
1175
|
+
</h3>
|
|
1132
1176
|
<div className="flex items-center justify-center gap-4">
|
|
1133
|
-
<button className="
|
|
1134
|
-
<MoveHorizontalIcon className="h-5 w-5 rotate-180
|
|
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" />
|
|
1135
1179
|
</button>
|
|
1136
|
-
<div className="rounded-lg border
|
|
1137
|
-
<span className="text-
|
|
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>
|
|
1138
1182
|
<div className="mt-2 flex gap-2">
|
|
1139
|
-
<div className="h-2 w-8 rounded-full
|
|
1140
|
-
<div className="h-2 w-2 rounded-full
|
|
1141
|
-
<div className="h-2 w-2 rounded-full
|
|
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>
|
|
1142
1186
|
</div>
|
|
1143
1187
|
</div>
|
|
1144
|
-
<button className="
|
|
1145
|
-
<MoveHorizontalIcon className="h-5 w-5
|
|
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" />
|
|
1146
1190
|
</button>
|
|
1147
1191
|
</div>
|
|
1148
1192
|
</div>
|
|
1149
1193
|
|
|
1150
1194
|
{/* Table Column Resize */}
|
|
1151
1195
|
<div className="!space-y-2">
|
|
1152
|
-
<h3 className="text-sm font-medium
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
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>
|
|
1157
1205
|
</div>
|
|
1158
|
-
<div className="flex w-2 cursor-col-resize items-center justify-center
|
|
1159
|
-
<MoveHorizontalIcon className="h-3 w-3
|
|
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" />
|
|
1160
1208
|
</div>
|
|
1161
|
-
<div className="flex-1 border-r
|
|
1162
|
-
<span className="text-sm font-medium
|
|
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>
|
|
1163
1213
|
</div>
|
|
1164
|
-
<div className="flex w-2 cursor-col-resize items-center justify-center
|
|
1165
|
-
<MoveHorizontalIcon className="h-3 w-3
|
|
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" />
|
|
1166
1216
|
</div>
|
|
1167
1217
|
<div className="flex-1 p-3">
|
|
1168
|
-
<span className="text-sm font-medium
|
|
1218
|
+
<span className="text-fm-icon-active text-sm font-medium">
|
|
1219
|
+
Status
|
|
1220
|
+
</span>
|
|
1169
1221
|
</div>
|
|
1170
1222
|
</div>
|
|
1171
1223
|
<div className="flex">
|
|
1172
|
-
<div className="flex-1 border-r
|
|
1173
|
-
<span className="text-
|
|
1224
|
+
<div className="border-fm-divider-secondary flex-1 border-r p-3">
|
|
1225
|
+
<span className="text-fm-secondary text-sm">John Doe</span>
|
|
1174
1226
|
</div>
|
|
1175
1227
|
<div className="w-2"></div>
|
|
1176
|
-
<div className="flex-1 border-r
|
|
1177
|
-
<span className="text-
|
|
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>
|
|
1178
1232
|
</div>
|
|
1179
1233
|
<div className="w-2"></div>
|
|
1180
1234
|
<div className="flex-1 p-3">
|
|
1181
|
-
<span className="
|
|
1235
|
+
<span className="bg-fm-icon-positive/20 text-fm-icon-positive rounded-full px-2 py-1 text-xs">
|
|
1182
1236
|
Active
|
|
1183
1237
|
</span>
|
|
1184
1238
|
</div>
|
|
@@ -1200,27 +1254,27 @@ export const InteractiveStates: Story = {
|
|
|
1200
1254
|
},
|
|
1201
1255
|
},
|
|
1202
1256
|
render: () => (
|
|
1203
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
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">
|
|
1204
1258
|
<div className="!space-y-4">
|
|
1205
|
-
<h3 className="text-sm font-medium
|
|
1259
|
+
<h3 className="text-fm-secondary text-sm font-medium">
|
|
1206
1260
|
Hover & Animation Effects
|
|
1207
1261
|
</h3>
|
|
1208
1262
|
<div className="flex gap-8">
|
|
1209
1263
|
<div className="flex flex-col items-center gap-2">
|
|
1210
|
-
<MoveHorizontalIcon className="h-8 w-8
|
|
1211
|
-
<span className="text-
|
|
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>
|
|
1212
1266
|
</div>
|
|
1213
1267
|
<div className="flex flex-col items-center gap-2">
|
|
1214
|
-
<MoveHorizontalIcon className="h-8 w-8
|
|
1215
|
-
<span className="text-
|
|
1268
|
+
<MoveHorizontalIcon className="text-fm-icon-active h-8 w-8 transition-transform hover:scale-110" />
|
|
1269
|
+
<span className="text-fm-tertiary text-xs">Scale Up</span>
|
|
1216
1270
|
</div>
|
|
1217
1271
|
<div className="flex flex-col items-center gap-2">
|
|
1218
|
-
<MoveHorizontalIcon className="animate-slide-horizontal h-8 w-8
|
|
1219
|
-
<span className="text-
|
|
1272
|
+
<MoveHorizontalIcon className="animate-slide-horizontal text-fm-icon-info h-8 w-8" />
|
|
1273
|
+
<span className="text-fm-tertiary text-xs">Slide</span>
|
|
1220
1274
|
</div>
|
|
1221
1275
|
<div className="flex flex-col items-center gap-2">
|
|
1222
|
-
<MoveHorizontalIcon className="animate-pulse-scale h-8 w-8
|
|
1223
|
-
<span className="text-
|
|
1276
|
+
<MoveHorizontalIcon className="animate-pulse-scale text-fm-icon-info h-8 w-8" />
|
|
1277
|
+
<span className="text-fm-tertiary text-xs">Pulse</span>
|
|
1224
1278
|
</div>
|
|
1225
1279
|
</div>
|
|
1226
1280
|
</div>
|
|
@@ -1241,11 +1295,11 @@ export const Playground: Story = {
|
|
|
1241
1295
|
args: {
|
|
1242
1296
|
width: 32,
|
|
1243
1297
|
height: 32,
|
|
1244
|
-
className: "text-
|
|
1298
|
+
className: "text-fm-icon-info ",
|
|
1245
1299
|
},
|
|
1246
1300
|
render: (args) => (
|
|
1247
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1248
|
-
<div className="rounded-lg border
|
|
1301
|
+
<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">
|
|
1302
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
1249
1303
|
<MoveHorizontalIcon {...args} />
|
|
1250
1304
|
</div>
|
|
1251
1305
|
</div>
|