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