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