aural-ui 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +456 -0
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +1327 -0
- package/dist/components/aspect-ratio/index.tsx +10 -0
- package/dist/components/aspect-ratio/meta.ts +8 -0
- package/dist/components/avatar/Avatar.stories.tsx +645 -0
- package/dist/components/avatar/index.tsx +50 -0
- package/dist/components/avatar/meta.ts +8 -0
- package/dist/components/badge/Badge.stories.tsx +169 -0
- package/dist/components/badge/index.tsx +28 -0
- package/dist/components/badge/meta.ts +6 -0
- package/dist/components/banner/Banner.stories.tsx +475 -0
- package/dist/components/banner/index.tsx +256 -0
- package/dist/components/banner/meta.ts +36 -0
- package/dist/components/button/Button.stories.tsx +74 -0
- package/dist/components/button/index.tsx +158 -0
- package/dist/components/button/meta.ts +33 -0
- package/dist/components/card/Card.stories.tsx +377 -0
- package/dist/components/card/index.tsx +85 -0
- package/dist/components/card/meta.ts +14 -0
- package/dist/components/char-count/CharCount.stories.tsx +334 -0
- package/dist/components/char-count/index.tsx +51 -0
- package/dist/components/char-count/meta.ts +13 -0
- package/dist/components/checkbox/Checkbox.stories.tsx +209 -0
- package/dist/components/checkbox/index.tsx +34 -0
- package/dist/components/checkbox/meta.ts +19 -0
- package/dist/components/chip/Chip.stories.tsx +207 -0
- package/dist/components/chip/index.tsx +92 -0
- package/dist/components/chip/meta.ts +17 -0
- package/dist/components/circular-loader/CircularLoader.stories.tsx +741 -0
- package/dist/components/circular-loader/index.tsx +138 -0
- package/dist/components/circular-loader/meta.ts +11 -0
- package/dist/components/collapsible/Collapsible.stories.tsx +319 -0
- package/dist/components/collapsible/index.tsx +158 -0
- package/dist/components/collapsible/meta.ts +22 -0
- package/dist/components/command/Command.stories.tsx +996 -0
- package/dist/components/command/index.tsx +324 -0
- package/dist/components/command/meta.ts +18 -0
- package/dist/components/dialog/Dialog.stories.tsx +963 -0
- package/dist/components/dialog/index.tsx +250 -0
- package/dist/components/dialog/meta.ts +28 -0
- package/dist/components/divider/Divider.stories.tsx +633 -0
- package/dist/components/divider/index.tsx +181 -0
- package/dist/components/divider/meta.ts +12 -0
- package/dist/components/dot-loader/DotLoader.stories.tsx +352 -0
- package/dist/components/dot-loader/index.tsx +78 -0
- package/dist/components/dot-loader/meta.ts +14 -0
- package/dist/components/dropdown/Dropdown.stories.tsx +1210 -0
- package/dist/components/dropdown/index.tsx +479 -0
- package/dist/components/dropdown/meta.ts +21 -0
- package/dist/components/form/Form.stories.tsx +320 -0
- package/dist/components/form/index.tsx +183 -0
- package/dist/components/form/meta.ts +11 -0
- package/dist/components/helper-text/HelperText.stories.tsx +254 -0
- package/dist/components/helper-text/index.tsx +102 -0
- package/dist/components/helper-text/meta.ts +18 -0
- package/dist/components/hover-card/HoverCard.stories.tsx +1328 -0
- package/dist/components/hover-card/index.tsx +42 -0
- package/dist/components/hover-card/meta.ts +12 -0
- package/dist/components/icon-button/IconButton.stories.tsx +252 -0
- package/dist/components/icon-button/index.tsx +130 -0
- package/dist/components/icon-button/meta.ts +20 -0
- package/dist/components/if-else/if-else.stories.tsx +100 -0
- package/dist/components/if-else/index.tsx +56 -0
- package/dist/components/if-else/meta.ts +6 -0
- package/dist/components/index.ts +70 -0
- package/dist/components/input/Input.stories.tsx +431 -0
- package/dist/components/input/index.tsx +487 -0
- package/dist/components/input/meta.ts +28 -0
- package/dist/components/label/Label.stories.tsx +200 -0
- package/dist/components/label/index.tsx +43 -0
- package/dist/components/label/meta.ts +14 -0
- package/dist/components/list/List.stories.tsx +963 -0
- package/dist/components/list/index.tsx +567 -0
- package/dist/components/list/meta.ts +24 -0
- package/dist/components/marquee/Marquee.stories.tsx +819 -0
- package/dist/components/marquee/index.tsx +107 -0
- package/dist/components/marquee/meta.ts +6 -0
- package/dist/components/overlay/Overlay.stories.tsx +954 -0
- package/dist/components/overlay/index.tsx +58 -0
- package/dist/components/overlay/meta.ts +10 -0
- package/dist/components/pagination/Pagination.stories.tsx +354 -0
- package/dist/components/pagination/index.tsx +455 -0
- package/dist/components/pagination/meta.ts +29 -0
- package/dist/components/popover/Popover.stories.tsx +1037 -0
- package/dist/components/popover/index.tsx +67 -0
- package/dist/components/popover/meta.ts +12 -0
- package/dist/components/radio/Radio.stories.tsx +146 -0
- package/dist/components/radio/index.tsx +41 -0
- package/dist/components/radio/meta.ts +19 -0
- package/dist/components/resizable/Resizable.stories.tsx +866 -0
- package/dist/components/resizable/index.tsx +55 -0
- package/dist/components/resizable/meta.ts +12 -0
- package/dist/components/scroll-area/ScrollArea.stories.tsx +1104 -0
- package/dist/components/scroll-area/index.tsx +55 -0
- package/dist/components/scroll-area/meta.ts +8 -0
- package/dist/components/search/Search.stories.tsx +678 -0
- package/dist/components/search/index.tsx +141 -0
- package/dist/components/search/meta.ts +6 -0
- package/dist/components/select/Select.stories.tsx +962 -0
- package/dist/components/select/index.tsx +512 -0
- package/dist/components/select/meta.ts +40 -0
- package/dist/components/sheet/Sheet.stories.tsx +1060 -0
- package/dist/components/sheet/index.tsx +440 -0
- package/dist/components/sheet/meta.ts +38 -0
- package/dist/components/skelton/Skelton.stories.tsx +859 -0
- package/dist/components/skelton/index.tsx +17 -0
- package/dist/components/skelton/meta.ts +6 -0
- package/dist/components/slider/Slider.stories.tsx +876 -0
- package/dist/components/slider/index.tsx +156 -0
- package/dist/components/slider/meta.ts +29 -0
- package/dist/components/stepper/Stepper.stories.tsx +639 -0
- package/dist/components/stepper/index.tsx +650 -0
- package/dist/components/stepper/meta.ts +19 -0
- package/dist/components/switch/Switch.stories.tsx +85 -0
- package/dist/components/switch/index.tsx +37 -0
- package/dist/components/switch/meta.ts +24 -0
- package/dist/components/switch-case/SwitchCase.stories.tsx +209 -0
- package/dist/components/switch-case/index.tsx +89 -0
- package/dist/components/switch-case/meta.ts +6 -0
- package/dist/components/table/Table.stories.tsx +1095 -0
- package/dist/components/table/index.tsx +113 -0
- package/dist/components/table/meta.ts +20 -0
- package/dist/components/tabs/Tabs.stories.tsx +1379 -0
- package/dist/components/tabs/index.tsx +186 -0
- package/dist/components/tabs/meta.ts +25 -0
- package/dist/components/tag/Tag.stories.tsx +625 -0
- package/dist/components/tag/index.tsx +320 -0
- package/dist/components/tag/meta.ts +52 -0
- package/dist/components/textarea/TextArea.stories.tsx +723 -0
- package/dist/components/textarea/index.tsx +480 -0
- package/dist/components/textarea/meta.ts +23 -0
- package/dist/components/toast/Toast.stories.tsx +1427 -0
- package/dist/components/toast/index.tsx +26 -0
- package/dist/components/toast/meta.ts +19 -0
- package/dist/components/toggle/Toggle.stories.tsx +1093 -0
- package/dist/components/toggle/index.tsx +44 -0
- package/dist/components/toggle/meta.ts +19 -0
- package/dist/components/tooltip/Tooltip.stories.tsx +1548 -0
- package/dist/components/tooltip/index.tsx +304 -0
- package/dist/components/tooltip/meta.ts +21 -0
- package/dist/components/typography/Typography.stories.tsx +197 -0
- package/dist/components/typography/index.tsx +184 -0
- package/dist/components/typography/meta.ts +38 -0
- package/dist/fonts/LabGrotesque-Regular.ttf +0 -0
- package/dist/fonts/LabGrotesqueTRIAL-Bold.otf +0 -0
- package/dist/fonts/LabGrotesqueTRIAL-Light.otf +0 -0
- package/dist/fonts/LabGrotesqueTRIAL-Medium.otf +0 -0
- package/dist/fonts/LabGrotesqueTRIAL-Regular.otf +0 -0
- package/dist/fonts/PPSupplySans-Regular (1).otf +0 -0
- package/dist/fonts/PPSupplySans-Regular.otf +0 -0
- package/dist/fonts/PPSupplySans-Ultralight.otf +0 -0
- package/dist/hooks/index.ts +3 -0
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +997 -0
- package/dist/hooks/use-previous/index.ts +15 -0
- package/dist/hooks/use-previous/meta.ts +6 -0
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +983 -0
- package/dist/hooks/use-standalone-pagination/index.ts +146 -0
- package/dist/hooks/use-standalone-pagination/meta.ts +6 -0
- package/dist/icons/Icons.stories.tsx +29 -0
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +991 -0
- package/dist/icons/alert-icon/index.tsx +48 -0
- package/dist/icons/alert-icon/meta.ts +8 -0
- package/dist/icons/all-icons.tsx +738 -0
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +1031 -0
- package/dist/icons/angle-down-icon/index.tsx +25 -0
- package/dist/icons/angle-down-icon/meta.ts +8 -0
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +1080 -0
- package/dist/icons/arrow-box-left-icon/index.tsx +24 -0
- package/dist/icons/arrow-box-left-icon/meta.ts +8 -0
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +1151 -0
- package/dist/icons/arrow-right-icon/index.tsx +26 -0
- package/dist/icons/arrow-right-icon/meta.ts +8 -0
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +1273 -0
- package/dist/icons/arrow-right-up-icon/index.tsx +24 -0
- package/dist/icons/arrow-right-up-icon/meta.ts +8 -0
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +670 -0
- package/dist/icons/art-board-icon/index.tsx +24 -0
- package/dist/icons/art-board-icon/meta.ts +7 -0
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +1244 -0
- package/dist/icons/audio-bar-icon/index.tsx +19 -0
- package/dist/icons/audio-bar-icon/meta.ts +8 -0
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +1239 -0
- package/dist/icons/bubble-check-icon/index.tsx +24 -0
- package/dist/icons/bubble-check-icon/meta.ts +8 -0
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +1228 -0
- package/dist/icons/bubble-crossed-icon/index.tsx +24 -0
- package/dist/icons/bubble-crossed-icon/meta.ts +8 -0
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +912 -0
- package/dist/icons/bubble-sparkle-icon/index.tsx +26 -0
- package/dist/icons/bubble-sparkle-icon/meta.ts +8 -0
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +1021 -0
- package/dist/icons/chevron-double-left-icon/index.tsx +34 -0
- package/dist/icons/chevron-double-left-icon/meta.ts +8 -0
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +1021 -0
- package/dist/icons/chevron-double-right-icon/index.tsx +34 -0
- package/dist/icons/chevron-double-right-icon/meta.ts +8 -0
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +1001 -0
- package/dist/icons/chevron-down-icon/index.tsx +27 -0
- package/dist/icons/chevron-down-icon/meta.ts +8 -0
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +1029 -0
- package/dist/icons/chevron-left-icon/index.tsx +27 -0
- package/dist/icons/chevron-left-icon/meta.ts +8 -0
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +1021 -0
- package/dist/icons/chevron-right-icon/index.tsx +27 -0
- package/dist/icons/chevron-right-icon/meta.ts +8 -0
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +1036 -0
- package/dist/icons/chevron-up-icon/index.tsx +27 -0
- package/dist/icons/chevron-up-icon/meta.ts +8 -0
- package/dist/icons/command-icon/CommandIcon.stories.tsx +1098 -0
- package/dist/icons/command-icon/index.tsx +24 -0
- package/dist/icons/command-icon/meta.ts +8 -0
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +1061 -0
- package/dist/icons/cross-circle-icon/index.tsx +23 -0
- package/dist/icons/cross-circle-icon/meta.ts +8 -0
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +1027 -0
- package/dist/icons/cross-icon/index.tsx +24 -0
- package/dist/icons/cross-icon/meta.ts +8 -0
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +1092 -0
- package/dist/icons/edit-big-icon/index.tsx +22 -0
- package/dist/icons/edit-big-icon/meta.ts +8 -0
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +1090 -0
- package/dist/icons/eye-close-icon/index.tsx +26 -0
- package/dist/icons/eye-close-icon/meta.ts +8 -0
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +1098 -0
- package/dist/icons/eye-open-icon/index.tsx +24 -0
- package/dist/icons/eye-open-icon/meta.ts +8 -0
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +1071 -0
- package/dist/icons/feature-shine-icon/index.tsx +29 -0
- package/dist/icons/feature-shine-icon/meta.ts +8 -0
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +1115 -0
- package/dist/icons/file-chart-icon/index.tsx +24 -0
- package/dist/icons/file-chart-icon/meta.ts +8 -0
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +668 -0
- package/dist/icons/file-text-icon/index.tsx +24 -0
- package/dist/icons/file-text-icon/meta.ts +8 -0
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +1239 -0
- package/dist/icons/grip-vertical-icon/index.tsx +28 -0
- package/dist/icons/grip-vertical-icon/meta.ts +8 -0
- package/dist/icons/image-icon/ImageIcon.stories.tsx +1181 -0
- package/dist/icons/image-icon/index.tsx +24 -0
- package/dist/icons/image-icon/meta.ts +8 -0
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +1248 -0
- package/dist/icons/import-folder-icon/index.tsx +22 -0
- package/dist/icons/import-folder-icon/meta.ts +8 -0
- package/dist/icons/index.ts +46 -0
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +1272 -0
- package/dist/icons/light-bulb-simple-icon/index.tsx +24 -0
- package/dist/icons/light-bulb-simple-icon/meta.ts +8 -0
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +1245 -0
- package/dist/icons/magic-book-icon/index.tsx +32 -0
- package/dist/icons/magic-book-icon/meta.ts +8 -0
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +1251 -0
- package/dist/icons/maintenance-icon/index.tsx +23 -0
- package/dist/icons/maintenance-icon/meta.ts +8 -0
- package/dist/icons/message-icon/MessageIcon.stories.tsx +595 -0
- package/dist/icons/message-icon/index.tsx +30 -0
- package/dist/icons/message-icon/meta.ts +8 -0
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +1245 -0
- package/dist/icons/move-horizontal-icon/index.tsx +23 -0
- package/dist/icons/move-horizontal-icon/meta.ts +8 -0
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +1196 -0
- package/dist/icons/move-vertical-icon/index.tsx +23 -0
- package/dist/icons/move-vertical-icon/meta.ts +8 -0
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +1167 -0
- package/dist/icons/page-search-icon/index.tsx +21 -0
- package/dist/icons/page-search-icon/meta.ts +8 -0
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +1131 -0
- package/dist/icons/pencil-icon/index.tsx +21 -0
- package/dist/icons/pencil-icon/meta.ts +8 -0
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +1151 -0
- package/dist/icons/plus-icon/index.tsx +24 -0
- package/dist/icons/plus-icon/meta.ts +8 -0
- package/dist/icons/search-icon/SearchIcon.stories.tsx +1181 -0
- package/dist/icons/search-icon/index.tsx +24 -0
- package/dist/icons/search-icon/meta.ts +8 -0
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +1167 -0
- package/dist/icons/site-logo-icon/index.tsx +79 -0
- package/dist/icons/site-logo-icon/meta.ts +8 -0
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +637 -0
- package/dist/icons/spinner-gradient-icon/index.tsx +53 -0
- package/dist/icons/spinner-gradient-icon/meta.ts +8 -0
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +644 -0
- package/dist/icons/spinner-solid-icon/index.tsx +59 -0
- package/dist/icons/spinner-solid-icon/meta.ts +8 -0
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +736 -0
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +53 -0
- package/dist/icons/spinner-solid-neutral-icon/meta.ts +8 -0
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +1204 -0
- package/dist/icons/tick-circle-icon/index.tsx +23 -0
- package/dist/icons/tick-circle-icon/meta.ts +8 -0
- package/dist/icons/tick-icon/TickIcon.stories.tsx +1340 -0
- package/dist/icons/tick-icon/index.tsx +24 -0
- package/dist/icons/tick-icon/meta.ts +8 -0
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +996 -0
- package/dist/icons/trash-icon/index.tsx +24 -0
- package/dist/icons/trash-icon/meta.ts +8 -0
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +947 -0
- package/dist/icons/upload-icon/index.tsx +24 -0
- package/dist/icons/upload-icon/meta.ts +8 -0
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +1045 -0
- package/dist/icons/vertical-menu-icon/index.tsx +27 -0
- package/dist/icons/vertical-menu-icon/meta.ts +8 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +206 -0
- package/dist/lib/utils.ts +6 -0
- package/dist/styles/aural-theme.css +1008 -0
- package/package.json +142 -0
|
@@ -0,0 +1,1245 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { MoveHorizontalIcon } from "."
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof MoveHorizontalIcon> = {
|
|
7
|
+
title: "Icons/MoveHorizontalIcon",
|
|
8
|
+
component: MoveHorizontalIcon,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: "fullscreen",
|
|
11
|
+
backgrounds: {
|
|
12
|
+
default: "dark",
|
|
13
|
+
values: [
|
|
14
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
15
|
+
{ name: "darker", value: "#000000" },
|
|
16
|
+
{ name: "light", value: "#ffffff" },
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
docs: {
|
|
20
|
+
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"
|
|
166
|
+
|
|
167
|
+
function ResizeHandle() {
|
|
168
|
+
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 " />
|
|
171
|
+
</div>
|
|
172
|
+
)
|
|
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
|
+
<tr className="border-b border-white/5">
|
|
232
|
+
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
233
|
+
width
|
|
234
|
+
</td>
|
|
235
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
236
|
+
number | string
|
|
237
|
+
</td>
|
|
238
|
+
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
239
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
240
|
+
Width of the icon in pixels
|
|
241
|
+
</td>
|
|
242
|
+
</tr>
|
|
243
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
244
|
+
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
245
|
+
height
|
|
246
|
+
</td>
|
|
247
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
248
|
+
number | string
|
|
249
|
+
</td>
|
|
250
|
+
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
251
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
252
|
+
Height of the icon in pixels
|
|
253
|
+
</td>
|
|
254
|
+
</tr>
|
|
255
|
+
<tr className="border-b border-white/5">
|
|
256
|
+
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
257
|
+
stroke
|
|
258
|
+
</td>
|
|
259
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
260
|
+
string
|
|
261
|
+
</td>
|
|
262
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
263
|
+
currentColor
|
|
264
|
+
</td>
|
|
265
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
266
|
+
Stroke color of the icon lines
|
|
267
|
+
</td>
|
|
268
|
+
</tr>
|
|
269
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
270
|
+
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
271
|
+
strokeWidth
|
|
272
|
+
</td>
|
|
273
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
274
|
+
string | number
|
|
275
|
+
</td>
|
|
276
|
+
<td className="px-6 py-4 text-sm !text-white/50">2</td>
|
|
277
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
278
|
+
Width of the stroke lines
|
|
279
|
+
</td>
|
|
280
|
+
</tr>
|
|
281
|
+
<tr className="border-b border-white/5">
|
|
282
|
+
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
283
|
+
className
|
|
284
|
+
</td>
|
|
285
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
286
|
+
string
|
|
287
|
+
</td>
|
|
288
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
289
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
290
|
+
CSS classes for styling (use for overrides)
|
|
291
|
+
</td>
|
|
292
|
+
</tr>
|
|
293
|
+
<tr className="!bg-black/10">
|
|
294
|
+
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
295
|
+
...svgProps
|
|
296
|
+
</td>
|
|
297
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
298
|
+
SVGProps
|
|
299
|
+
</td>
|
|
300
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
301
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
302
|
+
All standard SVG element props
|
|
303
|
+
</td>
|
|
304
|
+
</tr>
|
|
305
|
+
</tbody>
|
|
306
|
+
</table>
|
|
307
|
+
</div>
|
|
308
|
+
</div>
|
|
309
|
+
|
|
310
|
+
{/* Size Variations */}
|
|
311
|
+
<div className="!space-y-8">
|
|
312
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
313
|
+
Size Variations
|
|
314
|
+
</h2>
|
|
315
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
316
|
+
<div className="!space-y-6">
|
|
317
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
318
|
+
<div className="!space-y-4">
|
|
319
|
+
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
320
|
+
Standard Sizes
|
|
321
|
+
</h3>
|
|
322
|
+
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
323
|
+
<div className="text-center">
|
|
324
|
+
<MoveHorizontalIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
|
|
325
|
+
<span className="text-xs text-white/60">12px</span>
|
|
326
|
+
</div>
|
|
327
|
+
<div className="text-center">
|
|
328
|
+
<MoveHorizontalIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
|
|
329
|
+
<span className="text-xs text-white/60">16px</span>
|
|
330
|
+
</div>
|
|
331
|
+
<div className="text-center">
|
|
332
|
+
<MoveHorizontalIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
|
|
333
|
+
<span className="text-xs text-white/60">20px</span>
|
|
334
|
+
</div>
|
|
335
|
+
<div className="text-center">
|
|
336
|
+
<MoveHorizontalIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
|
|
337
|
+
<span className="text-xs text-white/60">24px</span>
|
|
338
|
+
</div>
|
|
339
|
+
<div className="text-center">
|
|
340
|
+
<MoveHorizontalIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
|
|
341
|
+
<span className="text-xs text-white/60">32px</span>
|
|
342
|
+
</div>
|
|
343
|
+
<div className="text-center">
|
|
344
|
+
<MoveHorizontalIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
|
|
345
|
+
<span className="text-xs text-white/60">48px</span>
|
|
346
|
+
</div>
|
|
347
|
+
</div>
|
|
348
|
+
</div>
|
|
349
|
+
|
|
350
|
+
<div className="!space-y-4">
|
|
351
|
+
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
352
|
+
Code Example
|
|
353
|
+
</h3>
|
|
354
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
355
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
356
|
+
{`// Small resize handle (12px)
|
|
357
|
+
<MoveHorizontalIcon className="h-3 w-3 " />
|
|
358
|
+
|
|
359
|
+
// Standard control (24px)
|
|
360
|
+
<MoveHorizontalIcon className="h-6 w-6 " />
|
|
361
|
+
|
|
362
|
+
// Large drag handle (32px)
|
|
363
|
+
<MoveHorizontalIcon className="h-8 w-8 " />
|
|
364
|
+
|
|
365
|
+
// Custom size for specialized layouts
|
|
366
|
+
<MoveHorizontalIcon
|
|
367
|
+
width={40}
|
|
368
|
+
height={40}
|
|
369
|
+
className="text-indigo-400 "
|
|
370
|
+
/>`}
|
|
371
|
+
</pre>
|
|
372
|
+
</div>
|
|
373
|
+
</div>
|
|
374
|
+
</div>
|
|
375
|
+
</div>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
378
|
+
|
|
379
|
+
{/* Color Variations */}
|
|
380
|
+
<div className="!space-y-8">
|
|
381
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
382
|
+
Color Variations
|
|
383
|
+
</h2>
|
|
384
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
385
|
+
<div className="!space-y-4">
|
|
386
|
+
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
387
|
+
Semantic Colors
|
|
388
|
+
</h3>
|
|
389
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
390
|
+
<div className="flex items-center gap-4">
|
|
391
|
+
<MoveHorizontalIcon className="h-6 w-6 text-indigo-400" />
|
|
392
|
+
<div>
|
|
393
|
+
<div className="text-sm font-medium text-white">
|
|
394
|
+
Interactive Control
|
|
395
|
+
</div>
|
|
396
|
+
<div className="text-xs text-white/60">
|
|
397
|
+
text-indigo-400
|
|
398
|
+
</div>
|
|
399
|
+
</div>
|
|
400
|
+
</div>
|
|
401
|
+
<div className="flex items-center gap-4">
|
|
402
|
+
<MoveHorizontalIcon className="h-6 w-6 text-cyan-400" />
|
|
403
|
+
<div>
|
|
404
|
+
<div className="text-sm font-medium text-white">
|
|
405
|
+
Resize Handle
|
|
406
|
+
</div>
|
|
407
|
+
<div className="text-xs text-white/60">
|
|
408
|
+
text-cyan-400
|
|
409
|
+
</div>
|
|
410
|
+
</div>
|
|
411
|
+
</div>
|
|
412
|
+
<div className="flex items-center gap-4">
|
|
413
|
+
<MoveHorizontalIcon className="h-6 w-6 text-gray-400" />
|
|
414
|
+
<div>
|
|
415
|
+
<div className="text-sm font-medium text-white">
|
|
416
|
+
Disabled State
|
|
417
|
+
</div>
|
|
418
|
+
<div className="text-xs text-white/60">
|
|
419
|
+
text-gray-400
|
|
420
|
+
</div>
|
|
421
|
+
</div>
|
|
422
|
+
</div>
|
|
423
|
+
<div className="flex items-center gap-4">
|
|
424
|
+
<MoveHorizontalIcon className="h-6 w-6 text-blue-400" />
|
|
425
|
+
<div>
|
|
426
|
+
<div className="text-sm font-medium text-white">
|
|
427
|
+
Navigation Arrow
|
|
428
|
+
</div>
|
|
429
|
+
<div className="text-xs text-white/60">
|
|
430
|
+
text-blue-400
|
|
431
|
+
</div>
|
|
432
|
+
</div>
|
|
433
|
+
</div>
|
|
434
|
+
</div>
|
|
435
|
+
</div>
|
|
436
|
+
|
|
437
|
+
<div className="!space-y-4">
|
|
438
|
+
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
439
|
+
Custom Colors
|
|
440
|
+
</h3>
|
|
441
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
442
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
443
|
+
{`// Using Tailwind classes with
|
|
444
|
+
<MoveHorizontalIcon className="h-6 w-6 text-indigo-400 " />
|
|
445
|
+
<MoveHorizontalIcon className="h-6 w-6 text-cyan-500 " />
|
|
446
|
+
|
|
447
|
+
// Using CSS custom properties
|
|
448
|
+
<MoveHorizontalIcon
|
|
449
|
+
className="h-6 w-6 "
|
|
450
|
+
style={{ color: 'var(--color-primary)' }}
|
|
451
|
+
/>
|
|
452
|
+
|
|
453
|
+
// Direct stroke prop
|
|
454
|
+
<MoveHorizontalIcon
|
|
455
|
+
width={24}
|
|
456
|
+
height={24}
|
|
457
|
+
stroke="#6366f1"
|
|
458
|
+
/>`}
|
|
459
|
+
</pre>
|
|
460
|
+
</div>
|
|
461
|
+
</div>
|
|
462
|
+
</div>
|
|
463
|
+
</div>
|
|
464
|
+
|
|
465
|
+
{/* Usage Examples */}
|
|
466
|
+
<div className="!space-y-8">
|
|
467
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
468
|
+
Usage Examples
|
|
469
|
+
</h2>
|
|
470
|
+
|
|
471
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
472
|
+
{/* Resizable Panels */}
|
|
473
|
+
<div className="!space-y-4">
|
|
474
|
+
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
475
|
+
Resizable Panels
|
|
476
|
+
</h3>
|
|
477
|
+
<div className="!space-y-4">
|
|
478
|
+
<div className="flex h-32 rounded-lg border border-white/10 bg-white/5">
|
|
479
|
+
<div className="flex-1 p-4">
|
|
480
|
+
<span className="text-sm text-white/70">
|
|
481
|
+
Left Panel
|
|
482
|
+
</span>
|
|
483
|
+
<p className="mt-2 text-xs !text-white/50">
|
|
484
|
+
Sidebar content
|
|
485
|
+
</p>
|
|
486
|
+
</div>
|
|
487
|
+
<div className="flex w-2 cursor-col-resize items-center justify-center bg-indigo-500/20 transition-colors hover:bg-indigo-500/30">
|
|
488
|
+
<MoveHorizontalIcon className="h-4 w-4 text-indigo-400" />
|
|
489
|
+
</div>
|
|
490
|
+
<div className="flex-1 p-4">
|
|
491
|
+
<span className="text-sm text-white/70">
|
|
492
|
+
Right Panel
|
|
493
|
+
</span>
|
|
494
|
+
<p className="mt-2 text-xs !text-white/50">
|
|
495
|
+
Main content area
|
|
496
|
+
</p>
|
|
497
|
+
</div>
|
|
498
|
+
</div>
|
|
499
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
500
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
501
|
+
{`<div className="flex h-32 rounded-lg border border-white/10 bg-white/5">
|
|
502
|
+
<div className="flex-1 p-4">
|
|
503
|
+
<span>Left Panel</span>
|
|
504
|
+
</div>
|
|
505
|
+
<div className="flex w-2 cursor-col-resize items-center justify-center bg-indigo-500/20 hover:bg-indigo-500/30">
|
|
506
|
+
<MoveHorizontalIcon className="h-4 w-4 text-indigo-400 " />
|
|
507
|
+
</div>
|
|
508
|
+
<div className="flex-1 p-4">
|
|
509
|
+
<span>Right Panel</span>
|
|
510
|
+
</div>
|
|
511
|
+
</div>`}
|
|
512
|
+
</pre>
|
|
513
|
+
</div>
|
|
514
|
+
</div>
|
|
515
|
+
</div>
|
|
516
|
+
|
|
517
|
+
{/* Carousel Navigation */}
|
|
518
|
+
<div className="!space-y-4">
|
|
519
|
+
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
520
|
+
Carousel Navigation
|
|
521
|
+
</h3>
|
|
522
|
+
<div className="!space-y-4">
|
|
523
|
+
<div className="flex items-center justify-center gap-4">
|
|
524
|
+
<button className="rounded-lg border border-white/20 bg-white/5 p-3 transition-colors hover:bg-white/10">
|
|
525
|
+
<MoveHorizontalIcon className="h-5 w-5 rotate-180 text-white" />
|
|
526
|
+
</button>
|
|
527
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
528
|
+
<span className="text-sm text-white/70">
|
|
529
|
+
Carousel Item
|
|
530
|
+
</span>
|
|
531
|
+
<div className="mt-2 flex gap-2">
|
|
532
|
+
<div className="h-2 w-8 rounded-full bg-indigo-500"></div>
|
|
533
|
+
<div className="h-2 w-2 rounded-full bg-white/30"></div>
|
|
534
|
+
<div className="h-2 w-2 rounded-full bg-white/30"></div>
|
|
535
|
+
</div>
|
|
536
|
+
</div>
|
|
537
|
+
<button className="rounded-lg border border-white/20 bg-white/5 p-3 transition-colors hover:bg-white/10">
|
|
538
|
+
<MoveHorizontalIcon className="h-5 w-5 text-white" />
|
|
539
|
+
</button>
|
|
540
|
+
</div>
|
|
541
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
542
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
543
|
+
{`// Carousel navigation buttons
|
|
544
|
+
<button className="rounded-lg border border-white/20 bg-white/5 p-3 hover:bg-white/10">
|
|
545
|
+
<MoveHorizontalIcon className="h-5 w-5 rotate-180 text-white " />
|
|
546
|
+
</button>
|
|
547
|
+
|
|
548
|
+
<div className="carousel-content">
|
|
549
|
+
<!-- Carousel content -->
|
|
550
|
+
</div>
|
|
551
|
+
|
|
552
|
+
<button className="rounded-lg border border-white/20 bg-white/5 p-3 hover:bg-white/10">
|
|
553
|
+
<MoveHorizontalIcon className="h-5 w-5 text-white " />
|
|
554
|
+
</button>`}
|
|
555
|
+
</pre>
|
|
556
|
+
</div>
|
|
557
|
+
</div>
|
|
558
|
+
</div>
|
|
559
|
+
|
|
560
|
+
{/* Table Column Resize */}
|
|
561
|
+
<div className="!space-y-4">
|
|
562
|
+
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
563
|
+
Table Column Resize
|
|
564
|
+
</h3>
|
|
565
|
+
<div className="!space-y-4">
|
|
566
|
+
<div className="rounded-lg border border-white/10 bg-white/5">
|
|
567
|
+
<div className="flex border-b border-white/10">
|
|
568
|
+
<div className="flex-1 border-r border-white/10 p-3">
|
|
569
|
+
<span className="text-sm font-medium text-white">
|
|
570
|
+
Name
|
|
571
|
+
</span>
|
|
572
|
+
</div>
|
|
573
|
+
<div className="flex w-2 cursor-col-resize items-center justify-center hover:bg-white/10">
|
|
574
|
+
<MoveHorizontalIcon className="h-3 w-3 text-white/30" />
|
|
575
|
+
</div>
|
|
576
|
+
<div className="flex-1 border-r border-white/10 p-3">
|
|
577
|
+
<span className="text-sm font-medium text-white">
|
|
578
|
+
Email
|
|
579
|
+
</span>
|
|
580
|
+
</div>
|
|
581
|
+
<div className="flex w-2 cursor-col-resize items-center justify-center hover:bg-white/10">
|
|
582
|
+
<MoveHorizontalIcon className="h-3 w-3 text-white/30" />
|
|
583
|
+
</div>
|
|
584
|
+
<div className="flex-1 p-3">
|
|
585
|
+
<span className="text-sm font-medium text-white">
|
|
586
|
+
Status
|
|
587
|
+
</span>
|
|
588
|
+
</div>
|
|
589
|
+
</div>
|
|
590
|
+
<div className="flex">
|
|
591
|
+
<div className="flex-1 border-r border-white/10 p-3">
|
|
592
|
+
<span className="text-sm text-white/70">
|
|
593
|
+
John Doe
|
|
594
|
+
</span>
|
|
595
|
+
</div>
|
|
596
|
+
<div className="w-2"></div>
|
|
597
|
+
<div className="flex-1 border-r border-white/10 p-3">
|
|
598
|
+
<span className="text-sm text-white/70">
|
|
599
|
+
john@example.com
|
|
600
|
+
</span>
|
|
601
|
+
</div>
|
|
602
|
+
<div className="w-2"></div>
|
|
603
|
+
<div className="flex-1 p-3">
|
|
604
|
+
<span className="rounded-full bg-green-500/20 px-2 py-1 text-xs text-green-300">
|
|
605
|
+
Active
|
|
606
|
+
</span>
|
|
607
|
+
</div>
|
|
608
|
+
</div>
|
|
609
|
+
</div>
|
|
610
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
611
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
612
|
+
{`// Table column resizer
|
|
613
|
+
<div className="flex w-2 cursor-col-resize items-center justify-center hover:bg-white/10">
|
|
614
|
+
<MoveHorizontalIcon className="h-3 w-3 text-white/30 " />
|
|
615
|
+
</div>
|
|
616
|
+
|
|
617
|
+
// With focus styles for accessibility
|
|
618
|
+
<button
|
|
619
|
+
className="flex w-2 items-center justify-center hover:bg-white/10 focus:ring-2 focus:ring-indigo-500"
|
|
620
|
+
aria-label="Resize column"
|
|
621
|
+
>
|
|
622
|
+
<MoveHorizontalIcon className="h-3 w-3 text-white/30 " />
|
|
623
|
+
</button>`}
|
|
624
|
+
</pre>
|
|
625
|
+
</div>
|
|
626
|
+
</div>
|
|
627
|
+
</div>
|
|
628
|
+
|
|
629
|
+
{/* Sidebar Toggle */}
|
|
630
|
+
<div className="!space-y-4">
|
|
631
|
+
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
632
|
+
Sidebar Toggle
|
|
633
|
+
</h3>
|
|
634
|
+
<div className="!space-y-4">
|
|
635
|
+
<div className="flex h-24 rounded-lg border border-white/10 bg-white/5">
|
|
636
|
+
<div className="w-48 border-r border-white/10 p-4">
|
|
637
|
+
<span className="text-sm text-white/70">Sidebar</span>
|
|
638
|
+
<div className="!mt-2 !space-y-1">
|
|
639
|
+
<div className="h-2 w-16 rounded bg-white/20"></div>
|
|
640
|
+
<div className="h-2 w-12 rounded bg-white/20"></div>
|
|
641
|
+
</div>
|
|
642
|
+
</div>
|
|
643
|
+
<div className="flex w-8 cursor-pointer items-center justify-center bg-indigo-500/10 transition-colors hover:bg-indigo-500/20">
|
|
644
|
+
<MoveHorizontalIcon className="h-4 w-4 text-indigo-400" />
|
|
645
|
+
</div>
|
|
646
|
+
<div className="flex-1 p-4">
|
|
647
|
+
<span className="text-sm text-white/70">
|
|
648
|
+
Main Content
|
|
649
|
+
</span>
|
|
650
|
+
<div className="!mt-2 !space-y-2">
|
|
651
|
+
<div className="h-2 w-full rounded bg-white/10"></div>
|
|
652
|
+
<div className="h-2 w-3/4 rounded bg-white/10"></div>
|
|
653
|
+
</div>
|
|
654
|
+
</div>
|
|
655
|
+
</div>
|
|
656
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
657
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
658
|
+
{`// Sidebar toggle handle
|
|
659
|
+
<div className="flex w-8 cursor-pointer items-center justify-center bg-indigo-500/10 hover:bg-indigo-500/20">
|
|
660
|
+
<MoveHorizontalIcon className="h-4 w-4 text-indigo-400 " />
|
|
661
|
+
</div>
|
|
662
|
+
|
|
663
|
+
// With collapse/expand functionality
|
|
664
|
+
<button
|
|
665
|
+
onClick={() => setSidebarOpen(!sidebarOpen)}
|
|
666
|
+
className="flex w-8 items-center justify-center hover:bg-indigo-500/20 focus:outline-none focus:ring-2 focus:ring-indigo-500"
|
|
667
|
+
aria-label={sidebarOpen ? "Collapse sidebar" : "Expand sidebar"}
|
|
668
|
+
>
|
|
669
|
+
<MoveHorizontalIcon className="h-4 w-4 text-indigo-400 " />
|
|
670
|
+
</button>`}
|
|
671
|
+
</pre>
|
|
672
|
+
</div>
|
|
673
|
+
</div>
|
|
674
|
+
</div>
|
|
675
|
+
</div>
|
|
676
|
+
</div>
|
|
677
|
+
|
|
678
|
+
{/* Interactive States */}
|
|
679
|
+
<div className="!space-y-8">
|
|
680
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
681
|
+
Interactive States & Animations
|
|
682
|
+
</h2>
|
|
683
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
684
|
+
<div className="!space-y-4">
|
|
685
|
+
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
686
|
+
Hover & Animation Effects
|
|
687
|
+
</h3>
|
|
688
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
689
|
+
<div className="flex items-center gap-4">
|
|
690
|
+
<MoveHorizontalIcon className="h-6 w-6 text-white/60 transition-colors hover:text-indigo-400" />
|
|
691
|
+
<div>
|
|
692
|
+
<div className="text-sm font-medium text-white">
|
|
693
|
+
Color Change
|
|
694
|
+
</div>
|
|
695
|
+
<div className="text-xs text-white/60">
|
|
696
|
+
hover:text-indigo-400
|
|
697
|
+
</div>
|
|
698
|
+
</div>
|
|
699
|
+
</div>
|
|
700
|
+
<div className="flex items-center gap-4">
|
|
701
|
+
<MoveHorizontalIcon className="h-6 w-6 text-white transition-transform hover:scale-110" />
|
|
702
|
+
<div>
|
|
703
|
+
<div className="text-sm font-medium text-white">
|
|
704
|
+
Scale Effect
|
|
705
|
+
</div>
|
|
706
|
+
<div className="text-xs text-white/60">
|
|
707
|
+
hover:scale-110
|
|
708
|
+
</div>
|
|
709
|
+
</div>
|
|
710
|
+
</div>
|
|
711
|
+
<div className="flex items-center gap-4">
|
|
712
|
+
<MoveHorizontalIcon className="animate-slide-horizontal h-6 w-6 text-indigo-400" />
|
|
713
|
+
<div>
|
|
714
|
+
<div className="text-sm font-medium text-white">
|
|
715
|
+
Horizontal Movement
|
|
716
|
+
</div>
|
|
717
|
+
<div className="text-xs text-white/60">
|
|
718
|
+
animate-slide-horizontal
|
|
719
|
+
</div>
|
|
720
|
+
</div>
|
|
721
|
+
</div>
|
|
722
|
+
<div className="flex items-center gap-4">
|
|
723
|
+
<MoveHorizontalIcon className="animate-pulse-scale h-6 w-6 text-cyan-400" />
|
|
724
|
+
<div>
|
|
725
|
+
<div className="text-sm font-medium text-white">
|
|
726
|
+
Pulse Scale
|
|
727
|
+
</div>
|
|
728
|
+
<div className="text-xs text-white/60">
|
|
729
|
+
animate-pulse-scale
|
|
730
|
+
</div>
|
|
731
|
+
</div>
|
|
732
|
+
</div>
|
|
733
|
+
</div>
|
|
734
|
+
</div>
|
|
735
|
+
|
|
736
|
+
<div className="!space-y-4">
|
|
737
|
+
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
738
|
+
Cursor & State Examples
|
|
739
|
+
</h3>
|
|
740
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
741
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
742
|
+
{`// Hover effects
|
|
743
|
+
<MoveHorizontalIcon className="h-6 w-6 text-white/60 hover:text-indigo-400 transition-colors " />
|
|
744
|
+
|
|
745
|
+
// Scale on hover
|
|
746
|
+
<MoveHorizontalIcon className="h-6 w-6 text-white hover:scale-110 transition-transform " />
|
|
747
|
+
|
|
748
|
+
// Cursor for resizing
|
|
749
|
+
<MoveHorizontalIcon className="h-6 w-6 text-indigo-400 cursor-col-resize " />
|
|
750
|
+
|
|
751
|
+
// Grab cursor for dragging
|
|
752
|
+
<MoveHorizontalIcon className="h-6 w-6 text-indigo-400 cursor-grab hover:cursor-grabbing " />
|
|
753
|
+
|
|
754
|
+
// Horizontal slide animation
|
|
755
|
+
@keyframes slide-left-right {
|
|
756
|
+
0%, 100% { transform: translateX(0); }
|
|
757
|
+
25% { transform: translateX(-4px); }
|
|
758
|
+
75% { transform: translateX(4px); }
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.animate-slide-horizontal {
|
|
762
|
+
animation: slide-left-right 2s ease-in-out infinite;
|
|
763
|
+
}`}
|
|
764
|
+
</pre>
|
|
765
|
+
</div>
|
|
766
|
+
</div>
|
|
767
|
+
</div>
|
|
768
|
+
</div>
|
|
769
|
+
|
|
770
|
+
{/* Accessibility */}
|
|
771
|
+
<div className="!space-y-8">
|
|
772
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
773
|
+
Accessibility Features
|
|
774
|
+
</h2>
|
|
775
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
776
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
777
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
778
|
+
✅ Built-in Features
|
|
779
|
+
</h3>
|
|
780
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
781
|
+
<li className="!text-white/70">
|
|
782
|
+
Uses Radix UI AccessibleIcon wrapper
|
|
783
|
+
</li>
|
|
784
|
+
<li className="!text-white/70">
|
|
785
|
+
Provides screen reader label "Move Horizontal icon"
|
|
786
|
+
</li>
|
|
787
|
+
<li className="!text-white/70">
|
|
788
|
+
Supports keyboard navigation when interactive
|
|
789
|
+
</li>
|
|
790
|
+
<li className="!text-white/70">
|
|
791
|
+
Maintains proper color contrast ratios
|
|
792
|
+
</li>
|
|
793
|
+
<li className="!text-white/70">
|
|
794
|
+
Scales with user's font size preferences
|
|
795
|
+
</li>
|
|
796
|
+
</ul>
|
|
797
|
+
</div>
|
|
798
|
+
|
|
799
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
800
|
+
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
801
|
+
💡 Best Practices
|
|
802
|
+
</h3>
|
|
803
|
+
<ul className="!space-y-2 text-sm text-white/70">
|
|
804
|
+
<li className="!text-white/70">
|
|
805
|
+
Always provide descriptive ARIA labels for interactive
|
|
806
|
+
elements
|
|
807
|
+
</li>
|
|
808
|
+
<li className="!text-white/70">
|
|
809
|
+
Use appropriate cursor styles for different interactions
|
|
810
|
+
</li>
|
|
811
|
+
<li className="!text-white/70">
|
|
812
|
+
Ensure sufficient click/touch target sizes
|
|
813
|
+
</li>
|
|
814
|
+
<li className="!text-white/70">
|
|
815
|
+
Add focus states for keyboard navigation
|
|
816
|
+
</li>
|
|
817
|
+
<li className="!text-white/70">
|
|
818
|
+
Consider motion sensitivity for animations
|
|
819
|
+
</li>
|
|
820
|
+
</ul>
|
|
821
|
+
</div>
|
|
822
|
+
</div>
|
|
823
|
+
|
|
824
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
825
|
+
<h3 className="mb-4 text-lg font-semibold !text-indigo-300">
|
|
826
|
+
Interactive Element Accessibility
|
|
827
|
+
</h3>
|
|
828
|
+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
829
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
830
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
831
|
+
{`// Accessible resize handle
|
|
832
|
+
<button
|
|
833
|
+
aria-label="Resize panels horizontally"
|
|
834
|
+
className="flex w-4 items-center justify-center bg-white/10 focus:ring-2 focus:ring-indigo-500 focus:outline-none"
|
|
835
|
+
onMouseDown={handleResizeStart}
|
|
836
|
+
>
|
|
837
|
+
<MoveHorizontalIcon className="h-3 w-3 text-white/50 " />
|
|
838
|
+
</button>
|
|
839
|
+
|
|
840
|
+
// Carousel navigation with context
|
|
841
|
+
<button
|
|
842
|
+
aria-label="Next slide"
|
|
843
|
+
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"
|
|
844
|
+
onClick={nextSlide}
|
|
845
|
+
>
|
|
846
|
+
<MoveHorizontalIcon className="h-5 w-5 text-white " />
|
|
847
|
+
</button>
|
|
848
|
+
|
|
849
|
+
// Sidebar toggle with state
|
|
850
|
+
<button
|
|
851
|
+
aria-label={sidebarOpen ? "Collapse sidebar" : "Expand sidebar"}
|
|
852
|
+
aria-expanded={sidebarOpen}
|
|
853
|
+
className="flex w-8 items-center justify-center hover:bg-indigo-500/20 focus:outline-none focus:ring-2 focus:ring-indigo-500"
|
|
854
|
+
onClick={() => setSidebarOpen(!sidebarOpen)}
|
|
855
|
+
>
|
|
856
|
+
<MoveHorizontalIcon className="h-4 w-4 text-indigo-400 " />
|
|
857
|
+
</button>`}
|
|
858
|
+
</pre>
|
|
859
|
+
</div>
|
|
860
|
+
<div className="!space-y-4">
|
|
861
|
+
<p className="text-sm !text-white/70">
|
|
862
|
+
When using MoveHorizontalIcon for interactive controls,
|
|
863
|
+
provide clear context about the action being performed
|
|
864
|
+
and the current state.
|
|
865
|
+
</p>
|
|
866
|
+
<div className="rounded-lg border border-indigo-500/20 bg-indigo-500/10 p-4">
|
|
867
|
+
<div className="flex items-center gap-2 text-sm text-indigo-200">
|
|
868
|
+
<MoveHorizontalIcon className="h-4 w-4" />
|
|
869
|
+
<span>
|
|
870
|
+
Screen readers understand this represents horizontal
|
|
871
|
+
movement controls
|
|
872
|
+
</span>
|
|
873
|
+
</div>
|
|
874
|
+
</div>
|
|
875
|
+
</div>
|
|
876
|
+
</div>
|
|
877
|
+
</div>
|
|
878
|
+
</div>
|
|
879
|
+
|
|
880
|
+
{/* Related Icons */}
|
|
881
|
+
<div className="!space-y-8">
|
|
882
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
883
|
+
Related Icons
|
|
884
|
+
</h2>
|
|
885
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
886
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
887
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-indigo-500/20">
|
|
888
|
+
<span className="text-2xl">↕️</span>
|
|
889
|
+
</div>
|
|
890
|
+
<div>
|
|
891
|
+
<div className="font-medium text-white">
|
|
892
|
+
MoveVerticalIcon
|
|
893
|
+
</div>
|
|
894
|
+
<div className="text-xs text-white/60">
|
|
895
|
+
Vertical movement
|
|
896
|
+
</div>
|
|
897
|
+
</div>
|
|
898
|
+
</div>
|
|
899
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
900
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
|
|
901
|
+
<span className="text-2xl">🎯</span>
|
|
902
|
+
</div>
|
|
903
|
+
<div>
|
|
904
|
+
<div className="font-medium text-white">DragIcon</div>
|
|
905
|
+
<div className="text-xs text-white/60">Drag & drop</div>
|
|
906
|
+
</div>
|
|
907
|
+
</div>
|
|
908
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
909
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
910
|
+
<span className="text-2xl">📐</span>
|
|
911
|
+
</div>
|
|
912
|
+
<div>
|
|
913
|
+
<div className="font-medium text-white">ResizeIcon</div>
|
|
914
|
+
<div className="text-xs text-white/60">
|
|
915
|
+
Resize controls
|
|
916
|
+
</div>
|
|
917
|
+
</div>
|
|
918
|
+
</div>
|
|
919
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
920
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
921
|
+
<span className="text-2xl">🔄</span>
|
|
922
|
+
</div>
|
|
923
|
+
<div>
|
|
924
|
+
<div className="font-medium text-white">RotateIcon</div>
|
|
925
|
+
<div className="text-xs text-white/60">
|
|
926
|
+
Rotation controls
|
|
927
|
+
</div>
|
|
928
|
+
</div>
|
|
929
|
+
</div>
|
|
930
|
+
</div>
|
|
931
|
+
</div>
|
|
932
|
+
</div>
|
|
933
|
+
|
|
934
|
+
{/* Footer */}
|
|
935
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
936
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
937
|
+
<div className="!space-y-4 text-center">
|
|
938
|
+
<p className="!text-white/60">
|
|
939
|
+
MoveHorizontalIcon is part of the Aural UI icon library,
|
|
940
|
+
built for representing horizontal movement, resizing, and
|
|
941
|
+
layout control operations.
|
|
942
|
+
</p>
|
|
943
|
+
<p className="text-sm !text-white/40">
|
|
944
|
+
All icons use Radix UI's AccessibleIcon for screen reader
|
|
945
|
+
compatibility and follow WCAG guidelines for interactive
|
|
946
|
+
controls.
|
|
947
|
+
</p>
|
|
948
|
+
</div>
|
|
949
|
+
</div>
|
|
950
|
+
</div>
|
|
951
|
+
</div>
|
|
952
|
+
</>
|
|
953
|
+
),
|
|
954
|
+
},
|
|
955
|
+
},
|
|
956
|
+
tags: ["autodocs"],
|
|
957
|
+
argTypes: {
|
|
958
|
+
width: {
|
|
959
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
960
|
+
description: "Width of the icon in pixels",
|
|
961
|
+
},
|
|
962
|
+
height: {
|
|
963
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
964
|
+
description: "Height of the icon in pixels",
|
|
965
|
+
},
|
|
966
|
+
stroke: {
|
|
967
|
+
control: "color",
|
|
968
|
+
description: "Stroke color of the icon lines",
|
|
969
|
+
},
|
|
970
|
+
strokeWidth: {
|
|
971
|
+
control: { type: "range", min: 0.5, max: 4, step: 0.5 },
|
|
972
|
+
description: "Width of the stroke lines",
|
|
973
|
+
},
|
|
974
|
+
className: {
|
|
975
|
+
control: "text",
|
|
976
|
+
description: "CSS classes for styling (use for overrides)",
|
|
977
|
+
},
|
|
978
|
+
},
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
export default meta
|
|
982
|
+
type Story = StoryObj<typeof MoveHorizontalIcon>
|
|
983
|
+
|
|
984
|
+
// Story parameters for consistent dark theme
|
|
985
|
+
const storyParameters = {
|
|
986
|
+
backgrounds: {
|
|
987
|
+
default: "dark",
|
|
988
|
+
values: [
|
|
989
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
990
|
+
{ name: "darker", value: "#000000" },
|
|
991
|
+
],
|
|
992
|
+
},
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
export const Default: Story = {
|
|
996
|
+
args: {
|
|
997
|
+
className: "h-6 w-6 text-indigo-400 ",
|
|
998
|
+
},
|
|
999
|
+
parameters: storyParameters,
|
|
1000
|
+
render: (args) => (
|
|
1001
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1002
|
+
<MoveHorizontalIcon {...args} />
|
|
1003
|
+
</div>
|
|
1004
|
+
),
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
export const SizeVariations: Story = {
|
|
1008
|
+
parameters: {
|
|
1009
|
+
...storyParameters,
|
|
1010
|
+
docs: {
|
|
1011
|
+
description: {
|
|
1012
|
+
story:
|
|
1013
|
+
"MoveHorizontalIcon in different sizes, from small resize handles to large interactive controls.",
|
|
1014
|
+
},
|
|
1015
|
+
},
|
|
1016
|
+
},
|
|
1017
|
+
render: () => (
|
|
1018
|
+
<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">
|
|
1019
|
+
<div className="text-center">
|
|
1020
|
+
<MoveHorizontalIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
|
|
1021
|
+
<span className="text-xs text-white/60">12px</span>
|
|
1022
|
+
</div>
|
|
1023
|
+
<div className="text-center">
|
|
1024
|
+
<MoveHorizontalIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
|
|
1025
|
+
<span className="text-xs text-white/60">16px</span>
|
|
1026
|
+
</div>
|
|
1027
|
+
<div className="text-center">
|
|
1028
|
+
<MoveHorizontalIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
|
|
1029
|
+
<span className="text-xs text-white/60">20px</span>
|
|
1030
|
+
</div>
|
|
1031
|
+
<div className="text-center">
|
|
1032
|
+
<MoveHorizontalIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
|
|
1033
|
+
<span className="text-xs text-white/60">24px</span>
|
|
1034
|
+
</div>
|
|
1035
|
+
<div className="text-center">
|
|
1036
|
+
<MoveHorizontalIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
|
|
1037
|
+
<span className="text-xs text-white/60">32px</span>
|
|
1038
|
+
</div>
|
|
1039
|
+
<div className="text-center">
|
|
1040
|
+
<MoveHorizontalIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
|
|
1041
|
+
<span className="text-xs text-white/60">48px</span>
|
|
1042
|
+
</div>
|
|
1043
|
+
</div>
|
|
1044
|
+
),
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
export const ColorVariations: Story = {
|
|
1048
|
+
parameters: {
|
|
1049
|
+
...storyParameters,
|
|
1050
|
+
docs: {
|
|
1051
|
+
description: {
|
|
1052
|
+
story:
|
|
1053
|
+
"MoveHorizontalIcon in different colors for various interaction states and UI contexts.",
|
|
1054
|
+
},
|
|
1055
|
+
},
|
|
1056
|
+
},
|
|
1057
|
+
render: () => (
|
|
1058
|
+
<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">
|
|
1059
|
+
<div className="text-center">
|
|
1060
|
+
<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">
|
|
1061
|
+
<MoveHorizontalIcon className="h-8 w-8 text-indigo-400" />
|
|
1062
|
+
</div>
|
|
1063
|
+
<div className="text-sm font-medium text-white">Interactive</div>
|
|
1064
|
+
<div className="text-xs text-indigo-400">text-indigo-400</div>
|
|
1065
|
+
</div>
|
|
1066
|
+
<div className="text-center">
|
|
1067
|
+
<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">
|
|
1068
|
+
<MoveHorizontalIcon className="h-8 w-8 text-cyan-400" />
|
|
1069
|
+
</div>
|
|
1070
|
+
<div className="text-sm font-medium text-white">Resize Handle</div>
|
|
1071
|
+
<div className="text-xs text-cyan-400">text-cyan-400</div>
|
|
1072
|
+
</div>
|
|
1073
|
+
<div className="text-center">
|
|
1074
|
+
<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">
|
|
1075
|
+
<MoveHorizontalIcon className="h-8 w-8 text-gray-400" />
|
|
1076
|
+
</div>
|
|
1077
|
+
<div className="text-sm font-medium text-white">Disabled</div>
|
|
1078
|
+
<div className="text-xs text-gray-400">text-gray-400</div>
|
|
1079
|
+
</div>
|
|
1080
|
+
<div className="text-center">
|
|
1081
|
+
<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">
|
|
1082
|
+
<MoveHorizontalIcon className="h-8 w-8 text-blue-400" />
|
|
1083
|
+
</div>
|
|
1084
|
+
<div className="text-sm font-medium text-white">Navigation</div>
|
|
1085
|
+
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
1086
|
+
</div>
|
|
1087
|
+
</div>
|
|
1088
|
+
),
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
export const UsageExamples: Story = {
|
|
1092
|
+
parameters: {
|
|
1093
|
+
...storyParameters,
|
|
1094
|
+
docs: {
|
|
1095
|
+
description: {
|
|
1096
|
+
story:
|
|
1097
|
+
"Real-world usage examples showing MoveHorizontalIcon in different layout and interaction contexts.",
|
|
1098
|
+
},
|
|
1099
|
+
},
|
|
1100
|
+
},
|
|
1101
|
+
render: () => (
|
|
1102
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
1103
|
+
{/* Resizable Panels */}
|
|
1104
|
+
<div className="!space-y-2">
|
|
1105
|
+
<h3 className="text-sm font-medium text-white">Resizable Panels</h3>
|
|
1106
|
+
<div className="flex h-32 rounded-lg border border-white/10 bg-white/5">
|
|
1107
|
+
<div className="flex-1 p-4">
|
|
1108
|
+
<span className="text-sm text-white/70">Left Panel</span>
|
|
1109
|
+
<p className="mt-2 text-xs text-white/50">Sidebar content</p>
|
|
1110
|
+
</div>
|
|
1111
|
+
<div className="flex w-2 cursor-col-resize items-center justify-center bg-indigo-500/20 hover:bg-indigo-500/30">
|
|
1112
|
+
<MoveHorizontalIcon className="h-4 w-4 text-indigo-400" />
|
|
1113
|
+
</div>
|
|
1114
|
+
<div className="flex-1 p-4">
|
|
1115
|
+
<span className="text-sm text-white/70">Right Panel</span>
|
|
1116
|
+
<p className="mt-2 text-xs text-white/50">Main content area</p>
|
|
1117
|
+
</div>
|
|
1118
|
+
</div>
|
|
1119
|
+
</div>
|
|
1120
|
+
|
|
1121
|
+
{/* Carousel Navigation */}
|
|
1122
|
+
<div className="!space-y-2">
|
|
1123
|
+
<h3 className="text-sm font-medium text-white">Carousel Navigation</h3>
|
|
1124
|
+
<div className="flex items-center justify-center gap-4">
|
|
1125
|
+
<button className="rounded-lg border border-white/20 bg-white/5 p-3 hover:bg-white/10">
|
|
1126
|
+
<MoveHorizontalIcon className="h-5 w-5 rotate-180 text-white" />
|
|
1127
|
+
</button>
|
|
1128
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
1129
|
+
<span className="text-sm text-white/70">Carousel Item</span>
|
|
1130
|
+
<div className="mt-2 flex gap-2">
|
|
1131
|
+
<div className="h-2 w-8 rounded-full bg-indigo-500"></div>
|
|
1132
|
+
<div className="h-2 w-2 rounded-full bg-white/30"></div>
|
|
1133
|
+
<div className="h-2 w-2 rounded-full bg-white/30"></div>
|
|
1134
|
+
</div>
|
|
1135
|
+
</div>
|
|
1136
|
+
<button className="rounded-lg border border-white/20 bg-white/5 p-3 hover:bg-white/10">
|
|
1137
|
+
<MoveHorizontalIcon className="h-5 w-5 text-white" />
|
|
1138
|
+
</button>
|
|
1139
|
+
</div>
|
|
1140
|
+
</div>
|
|
1141
|
+
|
|
1142
|
+
{/* Table Column Resize */}
|
|
1143
|
+
<div className="!space-y-2">
|
|
1144
|
+
<h3 className="text-sm font-medium text-white">Table Column Resize</h3>
|
|
1145
|
+
<div className="rounded-lg border border-white/10 bg-white/5">
|
|
1146
|
+
<div className="flex border-b border-white/10">
|
|
1147
|
+
<div className="flex-1 border-r border-white/10 p-3">
|
|
1148
|
+
<span className="text-sm font-medium text-white">Name</span>
|
|
1149
|
+
</div>
|
|
1150
|
+
<div className="flex w-2 cursor-col-resize items-center justify-center hover:bg-white/10">
|
|
1151
|
+
<MoveHorizontalIcon className="h-3 w-3 text-white/30" />
|
|
1152
|
+
</div>
|
|
1153
|
+
<div className="flex-1 border-r border-white/10 p-3">
|
|
1154
|
+
<span className="text-sm font-medium text-white">Email</span>
|
|
1155
|
+
</div>
|
|
1156
|
+
<div className="flex w-2 cursor-col-resize items-center justify-center hover:bg-white/10">
|
|
1157
|
+
<MoveHorizontalIcon className="h-3 w-3 text-white/30" />
|
|
1158
|
+
</div>
|
|
1159
|
+
<div className="flex-1 p-3">
|
|
1160
|
+
<span className="text-sm font-medium text-white">Status</span>
|
|
1161
|
+
</div>
|
|
1162
|
+
</div>
|
|
1163
|
+
<div className="flex">
|
|
1164
|
+
<div className="flex-1 border-r border-white/10 p-3">
|
|
1165
|
+
<span className="text-sm text-white/70">John Doe</span>
|
|
1166
|
+
</div>
|
|
1167
|
+
<div className="w-2"></div>
|
|
1168
|
+
<div className="flex-1 border-r border-white/10 p-3">
|
|
1169
|
+
<span className="text-sm text-white/70">john@example.com</span>
|
|
1170
|
+
</div>
|
|
1171
|
+
<div className="w-2"></div>
|
|
1172
|
+
<div className="flex-1 p-3">
|
|
1173
|
+
<span className="rounded-full bg-green-500/20 px-2 py-1 text-xs text-green-300">
|
|
1174
|
+
Active
|
|
1175
|
+
</span>
|
|
1176
|
+
</div>
|
|
1177
|
+
</div>
|
|
1178
|
+
</div>
|
|
1179
|
+
</div>
|
|
1180
|
+
</div>
|
|
1181
|
+
),
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
export const InteractiveStates: Story = {
|
|
1185
|
+
parameters: {
|
|
1186
|
+
...storyParameters,
|
|
1187
|
+
docs: {
|
|
1188
|
+
description: {
|
|
1189
|
+
story:
|
|
1190
|
+
"Interactive states showing hover effects, animations, and cursor styles for the horizontal move icon.",
|
|
1191
|
+
},
|
|
1192
|
+
},
|
|
1193
|
+
},
|
|
1194
|
+
render: () => (
|
|
1195
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
1196
|
+
<div className="!space-y-4">
|
|
1197
|
+
<h3 className="text-sm font-medium text-white/70">
|
|
1198
|
+
Hover & Animation Effects
|
|
1199
|
+
</h3>
|
|
1200
|
+
<div className="flex gap-8">
|
|
1201
|
+
<div className="flex flex-col items-center gap-2">
|
|
1202
|
+
<MoveHorizontalIcon className="h-8 w-8 text-white/60 transition-colors hover:text-indigo-400" />
|
|
1203
|
+
<span className="text-xs text-white/60">Color Change</span>
|
|
1204
|
+
</div>
|
|
1205
|
+
<div className="flex flex-col items-center gap-2">
|
|
1206
|
+
<MoveHorizontalIcon className="h-8 w-8 text-white transition-transform hover:scale-110" />
|
|
1207
|
+
<span className="text-xs text-white/60">Scale Up</span>
|
|
1208
|
+
</div>
|
|
1209
|
+
<div className="flex flex-col items-center gap-2">
|
|
1210
|
+
<MoveHorizontalIcon className="animate-slide-horizontal h-8 w-8 text-indigo-400" />
|
|
1211
|
+
<span className="text-xs text-white/60">Slide</span>
|
|
1212
|
+
</div>
|
|
1213
|
+
<div className="flex flex-col items-center gap-2">
|
|
1214
|
+
<MoveHorizontalIcon className="animate-pulse-scale h-8 w-8 text-cyan-400" />
|
|
1215
|
+
<span className="text-xs text-white/60">Pulse</span>
|
|
1216
|
+
</div>
|
|
1217
|
+
</div>
|
|
1218
|
+
</div>
|
|
1219
|
+
</div>
|
|
1220
|
+
),
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
export const Playground: Story = {
|
|
1224
|
+
parameters: {
|
|
1225
|
+
...storyParameters,
|
|
1226
|
+
docs: {
|
|
1227
|
+
description: {
|
|
1228
|
+
story:
|
|
1229
|
+
"Interactive playground to experiment with different MoveHorizontalIcon configurations.",
|
|
1230
|
+
},
|
|
1231
|
+
},
|
|
1232
|
+
},
|
|
1233
|
+
args: {
|
|
1234
|
+
width: 32,
|
|
1235
|
+
height: 32,
|
|
1236
|
+
className: "text-indigo-400 ",
|
|
1237
|
+
},
|
|
1238
|
+
render: (args) => (
|
|
1239
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1240
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
1241
|
+
<MoveHorizontalIcon {...args} />
|
|
1242
|
+
</div>
|
|
1243
|
+
</div>
|
|
1244
|
+
),
|
|
1245
|
+
}
|