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,1273 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { ArrowRightUpIcon } from "."
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof ArrowRightUpIcon> = {
|
|
7
|
+
title: "Icons/ArrowRightUpIcon",
|
|
8
|
+
component: ArrowRightUpIcon,
|
|
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
|
+
`}
|
|
81
|
+
</style>
|
|
82
|
+
|
|
83
|
+
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-purple-900/20 to-gray-900">
|
|
84
|
+
{/* Header */}
|
|
85
|
+
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
86
|
+
<div className="absolute inset-0 bg-gradient-to-r from-purple-500/10 via-transparent to-blue-500/10" />
|
|
87
|
+
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
|
+
<div className="!space-y-6 text-center">
|
|
89
|
+
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-violet-500/30 bg-gradient-to-br from-violet-500/20 to-purple-500/20">
|
|
90
|
+
<ArrowRightUpIcon className="h-12 w-12 text-violet-400" />
|
|
91
|
+
</div>
|
|
92
|
+
<h1 className="text-5xl font-bold !text-white">
|
|
93
|
+
ArrowRightUpIcon
|
|
94
|
+
</h1>
|
|
95
|
+
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
+
A diagonal arrow icon indicating external links, expansions,
|
|
97
|
+
and upward navigation. Perfect for external links, opening
|
|
98
|
+
content in new windows, and showing growth or progression.
|
|
99
|
+
</p>
|
|
100
|
+
|
|
101
|
+
{/* Stats */}
|
|
102
|
+
<div className="flex items-center justify-center gap-8 pt-8">
|
|
103
|
+
<div className="text-center">
|
|
104
|
+
<div className="text-3xl font-bold text-violet-300">
|
|
105
|
+
External
|
|
106
|
+
</div>
|
|
107
|
+
<div className="text-sm text-white/60">
|
|
108
|
+
Link indication
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<div className="h-8 w-px bg-white/20" />
|
|
112
|
+
<div className="text-center">
|
|
113
|
+
<div className="text-3xl font-bold text-purple-300">
|
|
114
|
+
Growth
|
|
115
|
+
</div>
|
|
116
|
+
<div className="text-sm text-white/60">
|
|
117
|
+
Upward progression
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
<div className="h-8 w-px bg-white/20" />
|
|
121
|
+
<div className="text-center">
|
|
122
|
+
<div className="text-3xl font-bold text-indigo-300">
|
|
123
|
+
Expansion
|
|
124
|
+
</div>
|
|
125
|
+
<div className="text-sm text-white/60">
|
|
126
|
+
Content opening
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
{/* Content */}
|
|
135
|
+
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
136
|
+
{/* Quick Usage */}
|
|
137
|
+
<div className="!space-y-8">
|
|
138
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
139
|
+
Quick Start
|
|
140
|
+
</h2>
|
|
141
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
142
|
+
<div className="!space-y-4">
|
|
143
|
+
<h3 className="text-xl font-semibold !text-violet-300">
|
|
144
|
+
Basic Usage
|
|
145
|
+
</h3>
|
|
146
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
147
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
148
|
+
{`import { ArrowRightUpIcon } from "@icons/arrow-right-up-icon"
|
|
149
|
+
|
|
150
|
+
function ExternalLink() {
|
|
151
|
+
return (
|
|
152
|
+
<a href="#" className="flex items-center gap-2">
|
|
153
|
+
<span>Visit our blog</span>
|
|
154
|
+
<ArrowRightUpIcon className="h-4 w-4 text-gray-400" />
|
|
155
|
+
</a>
|
|
156
|
+
)
|
|
157
|
+
}`}
|
|
158
|
+
</pre>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
<div className="!space-y-4">
|
|
163
|
+
<h3 className="text-xl font-semibold !text-violet-300">
|
|
164
|
+
Live Preview
|
|
165
|
+
</h3>
|
|
166
|
+
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
167
|
+
<a
|
|
168
|
+
href="#"
|
|
169
|
+
className="flex items-center gap-2 rounded-lg border border-violet-500/20 bg-violet-500/10 px-4 py-2 text-white transition-colors hover:bg-violet-500/20"
|
|
170
|
+
>
|
|
171
|
+
<span>Visit our blog</span>
|
|
172
|
+
<ArrowRightUpIcon className="h-4 w-4 text-violet-400 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
173
|
+
</a>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
{/* Props Documentation */}
|
|
180
|
+
<div className="!space-y-8">
|
|
181
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
182
|
+
Props & Configuration
|
|
183
|
+
</h2>
|
|
184
|
+
|
|
185
|
+
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
186
|
+
<div className="bg-white/5 p-4">
|
|
187
|
+
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
188
|
+
</div>
|
|
189
|
+
<table className="!my-0 w-full">
|
|
190
|
+
<thead className="bg-white/5">
|
|
191
|
+
<tr className="border-b border-white/10">
|
|
192
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
193
|
+
Prop
|
|
194
|
+
</th>
|
|
195
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
196
|
+
Type
|
|
197
|
+
</th>
|
|
198
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
199
|
+
Default
|
|
200
|
+
</th>
|
|
201
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
202
|
+
Description
|
|
203
|
+
</th>
|
|
204
|
+
</tr>
|
|
205
|
+
</thead>
|
|
206
|
+
<tbody>
|
|
207
|
+
<tr className="border-b border-white/5">
|
|
208
|
+
<td className="px-6 py-4 font-mono text-sm !text-violet-300">
|
|
209
|
+
width
|
|
210
|
+
</td>
|
|
211
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
212
|
+
number | string
|
|
213
|
+
</td>
|
|
214
|
+
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
215
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
216
|
+
Width of the icon in pixels
|
|
217
|
+
</td>
|
|
218
|
+
</tr>
|
|
219
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
220
|
+
<td className="px-6 py-4 font-mono text-sm !text-violet-300">
|
|
221
|
+
height
|
|
222
|
+
</td>
|
|
223
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
224
|
+
number | string
|
|
225
|
+
</td>
|
|
226
|
+
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
227
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
228
|
+
Height of the icon in pixels
|
|
229
|
+
</td>
|
|
230
|
+
</tr>
|
|
231
|
+
<tr className="border-b border-white/5">
|
|
232
|
+
<td className="px-6 py-4 font-mono text-sm !text-violet-300">
|
|
233
|
+
color
|
|
234
|
+
</td>
|
|
235
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
236
|
+
string
|
|
237
|
+
</td>
|
|
238
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
239
|
+
currentColor
|
|
240
|
+
</td>
|
|
241
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
242
|
+
Color of the icon
|
|
243
|
+
</td>
|
|
244
|
+
</tr>
|
|
245
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
246
|
+
<td className="px-6 py-4 font-mono text-sm !text-violet-300">
|
|
247
|
+
className
|
|
248
|
+
</td>
|
|
249
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
250
|
+
string
|
|
251
|
+
</td>
|
|
252
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
253
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
254
|
+
CSS classes for styling
|
|
255
|
+
</td>
|
|
256
|
+
</tr>
|
|
257
|
+
<tr className="!bg-black/10">
|
|
258
|
+
<td className="px-6 py-4 font-mono text-sm !text-violet-300">
|
|
259
|
+
...svgProps
|
|
260
|
+
</td>
|
|
261
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
262
|
+
SVGProps
|
|
263
|
+
</td>
|
|
264
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
265
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
266
|
+
All standard SVG element props
|
|
267
|
+
</td>
|
|
268
|
+
</tr>
|
|
269
|
+
</tbody>
|
|
270
|
+
</table>
|
|
271
|
+
</div>
|
|
272
|
+
</div>
|
|
273
|
+
|
|
274
|
+
{/* Size Variations */}
|
|
275
|
+
<div className="!space-y-8">
|
|
276
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
277
|
+
Size Variations
|
|
278
|
+
</h2>
|
|
279
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
280
|
+
<div className="!space-y-6">
|
|
281
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
282
|
+
<div className="!space-y-4">
|
|
283
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
284
|
+
Standard Sizes
|
|
285
|
+
</h3>
|
|
286
|
+
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
287
|
+
<div className="text-center">
|
|
288
|
+
<ArrowRightUpIcon className="!mx-auto mb-2 h-3 w-3 text-violet-400" />
|
|
289
|
+
<span className="text-xs text-white/60">12px</span>
|
|
290
|
+
</div>
|
|
291
|
+
<div className="text-center">
|
|
292
|
+
<ArrowRightUpIcon className="!mx-auto mb-2 h-4 w-4 text-violet-400" />
|
|
293
|
+
<span className="text-xs text-white/60">16px</span>
|
|
294
|
+
</div>
|
|
295
|
+
<div className="text-center">
|
|
296
|
+
<ArrowRightUpIcon className="!mx-auto mb-2 h-5 w-5 text-violet-400" />
|
|
297
|
+
<span className="text-xs text-white/60">20px</span>
|
|
298
|
+
</div>
|
|
299
|
+
<div className="text-center">
|
|
300
|
+
<ArrowRightUpIcon className="!mx-auto mb-2 h-6 w-6 text-violet-400" />
|
|
301
|
+
<span className="text-xs text-white/60">24px</span>
|
|
302
|
+
</div>
|
|
303
|
+
<div className="text-center">
|
|
304
|
+
<ArrowRightUpIcon className="!mx-auto mb-2 h-8 w-8 text-violet-400" />
|
|
305
|
+
<span className="text-xs text-white/60">32px</span>
|
|
306
|
+
</div>
|
|
307
|
+
<div className="text-center">
|
|
308
|
+
<ArrowRightUpIcon className="!mx-auto mb-2 h-12 w-12 text-violet-400" />
|
|
309
|
+
<span className="text-xs text-white/60">48px</span>
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|
|
312
|
+
</div>
|
|
313
|
+
|
|
314
|
+
<div className="!space-y-4">
|
|
315
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
316
|
+
Code Example
|
|
317
|
+
</h3>
|
|
318
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
319
|
+
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
320
|
+
{`// Small (16px)
|
|
321
|
+
<ArrowRightUpIcon className="h-4 w-4" />
|
|
322
|
+
|
|
323
|
+
// Medium (24px)
|
|
324
|
+
<ArrowRightUpIcon className="h-6 w-6" />
|
|
325
|
+
|
|
326
|
+
// Large (32px)
|
|
327
|
+
<ArrowRightUpIcon className="h-8 w-8" />
|
|
328
|
+
|
|
329
|
+
// Custom size
|
|
330
|
+
<ArrowRightUpIcon width={40} height={40} />`}
|
|
331
|
+
</pre>
|
|
332
|
+
</div>
|
|
333
|
+
</div>
|
|
334
|
+
</div>
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
</div>
|
|
338
|
+
|
|
339
|
+
{/* Color Variations */}
|
|
340
|
+
<div className="!space-y-8">
|
|
341
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
342
|
+
Color Variations
|
|
343
|
+
</h2>
|
|
344
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
345
|
+
<div className="!space-y-4">
|
|
346
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
347
|
+
Contextual Colors
|
|
348
|
+
</h3>
|
|
349
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
350
|
+
<div className="flex items-center gap-4">
|
|
351
|
+
<ArrowRightUpIcon className="h-6 w-6 text-violet-400" />
|
|
352
|
+
<div>
|
|
353
|
+
<div className="text-sm font-medium text-white">
|
|
354
|
+
Primary
|
|
355
|
+
</div>
|
|
356
|
+
<div className="text-xs text-white/60">
|
|
357
|
+
text-violet-400
|
|
358
|
+
</div>
|
|
359
|
+
</div>
|
|
360
|
+
</div>
|
|
361
|
+
<div className="flex items-center gap-4">
|
|
362
|
+
<ArrowRightUpIcon className="h-6 w-6 text-blue-400" />
|
|
363
|
+
<div>
|
|
364
|
+
<div className="text-sm font-medium text-white">
|
|
365
|
+
External Link
|
|
366
|
+
</div>
|
|
367
|
+
<div className="text-xs text-white/60">
|
|
368
|
+
text-blue-400
|
|
369
|
+
</div>
|
|
370
|
+
</div>
|
|
371
|
+
</div>
|
|
372
|
+
<div className="flex items-center gap-4">
|
|
373
|
+
<ArrowRightUpIcon className="h-6 w-6 text-green-400" />
|
|
374
|
+
<div>
|
|
375
|
+
<div className="text-sm font-medium text-white">
|
|
376
|
+
Growth
|
|
377
|
+
</div>
|
|
378
|
+
<div className="text-xs text-white/60">
|
|
379
|
+
text-green-400
|
|
380
|
+
</div>
|
|
381
|
+
</div>
|
|
382
|
+
</div>
|
|
383
|
+
<div className="flex items-center gap-4">
|
|
384
|
+
<ArrowRightUpIcon className="h-6 w-6 text-gray-400" />
|
|
385
|
+
<div>
|
|
386
|
+
<div className="text-sm font-medium text-white">
|
|
387
|
+
Neutral
|
|
388
|
+
</div>
|
|
389
|
+
<div className="text-xs text-white/60">
|
|
390
|
+
text-gray-400
|
|
391
|
+
</div>
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
</div>
|
|
395
|
+
</div>
|
|
396
|
+
|
|
397
|
+
<div className="!space-y-4">
|
|
398
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
399
|
+
Custom Colors
|
|
400
|
+
</h3>
|
|
401
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
402
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
403
|
+
{`// Using Tailwind classes
|
|
404
|
+
<ArrowRightUpIcon className="h-6 w-6 text-violet-400" />
|
|
405
|
+
<ArrowRightUpIcon className="h-6 w-6 text-blue-500" />
|
|
406
|
+
|
|
407
|
+
// Using CSS custom properties
|
|
408
|
+
<ArrowRightUpIcon
|
|
409
|
+
className="h-6 w-6"
|
|
410
|
+
style={{ color: 'var(--color-primary)' }}
|
|
411
|
+
/>
|
|
412
|
+
|
|
413
|
+
// Direct color prop
|
|
414
|
+
<ArrowRightUpIcon
|
|
415
|
+
width={24}
|
|
416
|
+
height={24}
|
|
417
|
+
color="#8b5cf6"
|
|
418
|
+
/>`}
|
|
419
|
+
</pre>
|
|
420
|
+
</div>
|
|
421
|
+
</div>
|
|
422
|
+
</div>
|
|
423
|
+
</div>
|
|
424
|
+
|
|
425
|
+
{/* Usage Examples */}
|
|
426
|
+
<div className="!space-y-8">
|
|
427
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
428
|
+
Usage Examples
|
|
429
|
+
</h2>
|
|
430
|
+
|
|
431
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
432
|
+
{/* External Links */}
|
|
433
|
+
<div className="!space-y-4">
|
|
434
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
435
|
+
External Links
|
|
436
|
+
</h3>
|
|
437
|
+
<div className="!space-y-4">
|
|
438
|
+
<div className="!space-y-3">
|
|
439
|
+
<a
|
|
440
|
+
href="#"
|
|
441
|
+
className="inline-flex items-center gap-2 text-blue-400 transition-colors hover:text-blue-300"
|
|
442
|
+
>
|
|
443
|
+
<span>Visit our documentation</span>
|
|
444
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
445
|
+
</a>
|
|
446
|
+
<br />
|
|
447
|
+
<a
|
|
448
|
+
href="#"
|
|
449
|
+
className="inline-flex items-center gap-2 text-blue-400 transition-colors hover:text-blue-300"
|
|
450
|
+
>
|
|
451
|
+
<span>Join our community</span>
|
|
452
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
453
|
+
</a>
|
|
454
|
+
<br />
|
|
455
|
+
<a
|
|
456
|
+
href="#"
|
|
457
|
+
className="inline-flex items-center gap-2 text-blue-400 transition-colors hover:text-blue-300"
|
|
458
|
+
>
|
|
459
|
+
<span>Read our blog</span>
|
|
460
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
461
|
+
</a>
|
|
462
|
+
</div>
|
|
463
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
464
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
465
|
+
{`<a href="#" className="inline-flex items-center gap-2 text-blue-400 hover:text-blue-300 transition-colors">
|
|
466
|
+
<span>Visit our documentation</span>
|
|
467
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
468
|
+
</a>`}
|
|
469
|
+
</pre>
|
|
470
|
+
</div>
|
|
471
|
+
</div>
|
|
472
|
+
</div>
|
|
473
|
+
|
|
474
|
+
{/* Card Actions */}
|
|
475
|
+
<div className="!space-y-4">
|
|
476
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
477
|
+
Card Actions
|
|
478
|
+
</h3>
|
|
479
|
+
<div className="!space-y-4">
|
|
480
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
481
|
+
<div className="!space-y-4">
|
|
482
|
+
<div>
|
|
483
|
+
<h4 className="font-medium !text-white">
|
|
484
|
+
GitHub Repository
|
|
485
|
+
</h4>
|
|
486
|
+
<p className="text-sm !text-white/60">
|
|
487
|
+
Open source UI component library
|
|
488
|
+
</p>
|
|
489
|
+
</div>
|
|
490
|
+
<div className="flex items-center justify-between">
|
|
491
|
+
<div className="flex items-center gap-2 text-sm !text-white/70">
|
|
492
|
+
<span>⭐ 1.2k stars</span>
|
|
493
|
+
</div>
|
|
494
|
+
<a
|
|
495
|
+
href="#"
|
|
496
|
+
className="flex items-center gap-2 rounded bg-violet-500 px-3 py-1.5 text-sm font-medium text-white transition-colors hover:bg-violet-600"
|
|
497
|
+
>
|
|
498
|
+
View on GitHub
|
|
499
|
+
<ArrowRightUpIcon className="h-3 w-3" />
|
|
500
|
+
</a>
|
|
501
|
+
</div>
|
|
502
|
+
</div>
|
|
503
|
+
</div>
|
|
504
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
505
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
506
|
+
{`<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
507
|
+
<div className="space-y-4">
|
|
508
|
+
<div>
|
|
509
|
+
<h4 className="font-medium text-white">GitHub Repository</h4>
|
|
510
|
+
<p className="text-sm text-white/60">Open source UI component library</p>
|
|
511
|
+
</div>
|
|
512
|
+
<div className="flex items-center justify-between">
|
|
513
|
+
<div className="flex items-center gap-2 text-sm text-white/70">
|
|
514
|
+
<span>⭐ 1.2k stars</span>
|
|
515
|
+
</div>
|
|
516
|
+
<a href="#" className="flex items-center gap-2 px-3 py-1.5 bg-violet-500 rounded text-sm font-medium text-white">
|
|
517
|
+
View on GitHub
|
|
518
|
+
<ArrowRightUpIcon className="h-3 w-3" />
|
|
519
|
+
</a>
|
|
520
|
+
</div>
|
|
521
|
+
</div>
|
|
522
|
+
</div>`}
|
|
523
|
+
</pre>
|
|
524
|
+
</div>
|
|
525
|
+
</div>
|
|
526
|
+
</div>
|
|
527
|
+
|
|
528
|
+
{/* Growth Metrics */}
|
|
529
|
+
<div className="!space-y-4">
|
|
530
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
531
|
+
Growth Indicators
|
|
532
|
+
</h3>
|
|
533
|
+
<div className="!space-y-4">
|
|
534
|
+
<div className="grid grid-cols-2 gap-4">
|
|
535
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
536
|
+
<div className="flex items-center justify-between">
|
|
537
|
+
<div>
|
|
538
|
+
<div className="text-2xl font-bold !text-white">
|
|
539
|
+
24.5%
|
|
540
|
+
</div>
|
|
541
|
+
<div className="text-sm !text-white/60">
|
|
542
|
+
Revenue Growth
|
|
543
|
+
</div>
|
|
544
|
+
</div>
|
|
545
|
+
<ArrowRightUpIcon className="h-6 w-6 text-green-400" />
|
|
546
|
+
</div>
|
|
547
|
+
</div>
|
|
548
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
549
|
+
<div className="flex items-center justify-between">
|
|
550
|
+
<div>
|
|
551
|
+
<div className="text-2xl font-bold !text-white">
|
|
552
|
+
156
|
|
553
|
+
</div>
|
|
554
|
+
<div className="text-sm !text-white/60">
|
|
555
|
+
New Users
|
|
556
|
+
</div>
|
|
557
|
+
</div>
|
|
558
|
+
<ArrowRightUpIcon className="h-6 w-6 text-blue-400" />
|
|
559
|
+
</div>
|
|
560
|
+
</div>
|
|
561
|
+
</div>
|
|
562
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
563
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
564
|
+
{`<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
565
|
+
<div className="flex items-center justify-between">
|
|
566
|
+
<div>
|
|
567
|
+
<div className="text-2xl font-bold text-white">24.5%</div>
|
|
568
|
+
<div className="text-sm text-white/60">Revenue Growth</div>
|
|
569
|
+
</div>
|
|
570
|
+
<ArrowRightUpIcon className="h-6 w-6 text-green-400" />
|
|
571
|
+
</div>
|
|
572
|
+
</div>`}
|
|
573
|
+
</pre>
|
|
574
|
+
</div>
|
|
575
|
+
</div>
|
|
576
|
+
</div>
|
|
577
|
+
|
|
578
|
+
{/* Button Integration */}
|
|
579
|
+
<div className="!space-y-4">
|
|
580
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
581
|
+
Button Integration
|
|
582
|
+
</h3>
|
|
583
|
+
<div className="!space-y-4">
|
|
584
|
+
<div className="flex gap-4">
|
|
585
|
+
<button className="flex items-center gap-2 rounded-lg border border-violet-500/30 bg-violet-500/20 px-4 py-2 text-violet-200 transition-colors hover:bg-violet-500/30">
|
|
586
|
+
<span>Learn More</span>
|
|
587
|
+
<ArrowRightUpIcon className="h-4 w-4" />
|
|
588
|
+
</button>
|
|
589
|
+
<button className="flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/20 px-4 py-2 text-blue-200 transition-colors hover:bg-blue-500/30">
|
|
590
|
+
<span>Open Link</span>
|
|
591
|
+
<ArrowRightUpIcon className="h-4 w-4" />
|
|
592
|
+
</button>
|
|
593
|
+
</div>
|
|
594
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
595
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
596
|
+
{`// Learn more button
|
|
597
|
+
<button className="flex items-center gap-2 bg-violet-500/20 border border-violet-500/30 px-4 py-2 rounded-lg">
|
|
598
|
+
<span>Learn More</span>
|
|
599
|
+
<ArrowRightUpIcon className="h-4 w-4" />
|
|
600
|
+
</button>
|
|
601
|
+
|
|
602
|
+
// External link button
|
|
603
|
+
<button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-4 py-2 rounded-lg">
|
|
604
|
+
<span>Open Link</span>
|
|
605
|
+
<ArrowRightUpIcon className="h-4 w-4" />
|
|
606
|
+
</button>`}
|
|
607
|
+
</pre>
|
|
608
|
+
</div>
|
|
609
|
+
</div>
|
|
610
|
+
</div>
|
|
611
|
+
|
|
612
|
+
{/* Navigation Menu */}
|
|
613
|
+
<div className="!space-y-4">
|
|
614
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
615
|
+
Navigation Menu
|
|
616
|
+
</h3>
|
|
617
|
+
<div className="!space-y-4">
|
|
618
|
+
<nav className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
619
|
+
<ul className="!list-none !space-y-3">
|
|
620
|
+
<li>
|
|
621
|
+
<a
|
|
622
|
+
href="#"
|
|
623
|
+
className="flex items-center justify-between rounded px-3 py-2 text-left transition-colors hover:bg-white/10"
|
|
624
|
+
>
|
|
625
|
+
<span className="!text-white">Documentation</span>
|
|
626
|
+
<ArrowRightUpIcon className="h-4 w-4 text-gray-400" />
|
|
627
|
+
</a>
|
|
628
|
+
</li>
|
|
629
|
+
<li>
|
|
630
|
+
<a
|
|
631
|
+
href="#"
|
|
632
|
+
className="flex items-center justify-between rounded px-3 py-2 text-left transition-colors hover:bg-white/10"
|
|
633
|
+
>
|
|
634
|
+
<span className="!text-white">GitHub</span>
|
|
635
|
+
<ArrowRightUpIcon className="h-4 w-4 text-gray-400" />
|
|
636
|
+
</a>
|
|
637
|
+
</li>
|
|
638
|
+
<li>
|
|
639
|
+
<a
|
|
640
|
+
href="#"
|
|
641
|
+
className="flex items-center justify-between rounded px-3 py-2 text-left transition-colors hover:bg-white/10"
|
|
642
|
+
>
|
|
643
|
+
<span className="!text-white">
|
|
644
|
+
Discord Community
|
|
645
|
+
</span>
|
|
646
|
+
<ArrowRightUpIcon className="h-4 w-4 text-gray-400" />
|
|
647
|
+
</a>
|
|
648
|
+
</li>
|
|
649
|
+
</ul>
|
|
650
|
+
</nav>
|
|
651
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
652
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
653
|
+
{`<nav className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
654
|
+
<ul className="list-none space-y-3">
|
|
655
|
+
<li>
|
|
656
|
+
<a href="#" className="flex items-center justify-between rounded px-3 py-2 hover:bg-white/10">
|
|
657
|
+
<span className="text-white">Documentation</span>
|
|
658
|
+
<ArrowRightUpIcon className="h-4 w-4 text-gray-400" />
|
|
659
|
+
</a>
|
|
660
|
+
</li>
|
|
661
|
+
<li>
|
|
662
|
+
<a href="#" className="flex items-center justify-between rounded px-3 py-2 hover:bg-white/10">
|
|
663
|
+
<span className="text-white">GitHub</span>
|
|
664
|
+
<ArrowRightUpIcon className="h-4 w-4 text-gray-400" />
|
|
665
|
+
</a>
|
|
666
|
+
</li>
|
|
667
|
+
</ul>
|
|
668
|
+
</nav>`}
|
|
669
|
+
</pre>
|
|
670
|
+
</div>
|
|
671
|
+
</div>
|
|
672
|
+
</div>
|
|
673
|
+
|
|
674
|
+
{/* Social Links */}
|
|
675
|
+
<div className="!space-y-4">
|
|
676
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
677
|
+
Social Links
|
|
678
|
+
</h3>
|
|
679
|
+
<div className="!space-y-4">
|
|
680
|
+
<div className="flex items-center gap-4">
|
|
681
|
+
<a
|
|
682
|
+
href="#"
|
|
683
|
+
className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2 transition-colors hover:bg-white/10"
|
|
684
|
+
>
|
|
685
|
+
<span className="!text-white">Twitter</span>
|
|
686
|
+
<ArrowRightUpIcon className="h-4 w-4 text-blue-400" />
|
|
687
|
+
</a>
|
|
688
|
+
<a
|
|
689
|
+
href="#"
|
|
690
|
+
className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2 transition-colors hover:bg-white/10"
|
|
691
|
+
>
|
|
692
|
+
<span className="!text-white">LinkedIn</span>
|
|
693
|
+
<ArrowRightUpIcon className="h-4 w-4 text-blue-400" />
|
|
694
|
+
</a>
|
|
695
|
+
<a
|
|
696
|
+
href="#"
|
|
697
|
+
className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2 transition-colors hover:bg-white/10"
|
|
698
|
+
>
|
|
699
|
+
<span className="!text-white">YouTube</span>
|
|
700
|
+
<ArrowRightUpIcon className="h-4 w-4 text-red-400" />
|
|
701
|
+
</a>
|
|
702
|
+
</div>
|
|
703
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
704
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
705
|
+
{`<div className="flex items-center gap-4">
|
|
706
|
+
<a href="#" className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2 hover:bg-white/10">
|
|
707
|
+
<span className="text-white">Twitter</span>
|
|
708
|
+
<ArrowRightUpIcon className="h-4 w-4 text-blue-400" />
|
|
709
|
+
</a>
|
|
710
|
+
<a href="#" className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2 hover:bg-white/10">
|
|
711
|
+
<span className="text-white">LinkedIn</span>
|
|
712
|
+
<ArrowRightUpIcon className="h-4 w-4 text-blue-400" />
|
|
713
|
+
</a>
|
|
714
|
+
</div>`}
|
|
715
|
+
</pre>
|
|
716
|
+
</div>
|
|
717
|
+
</div>
|
|
718
|
+
</div>
|
|
719
|
+
</div>
|
|
720
|
+
</div>
|
|
721
|
+
|
|
722
|
+
{/* Animation Examples */}
|
|
723
|
+
<div className="!space-y-8">
|
|
724
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
725
|
+
Animation Examples
|
|
726
|
+
</h2>
|
|
727
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
728
|
+
<div className="!space-y-4">
|
|
729
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
730
|
+
Hover Animations
|
|
731
|
+
</h3>
|
|
732
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
733
|
+
<div className="!space-y-4">
|
|
734
|
+
<a
|
|
735
|
+
href="#"
|
|
736
|
+
className="group inline-flex items-center gap-2 text-violet-400 hover:text-violet-300"
|
|
737
|
+
>
|
|
738
|
+
<span>Diagonal movement</span>
|
|
739
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5" />
|
|
740
|
+
</a>
|
|
741
|
+
<br />
|
|
742
|
+
<a
|
|
743
|
+
href="#"
|
|
744
|
+
className="group inline-flex items-center gap-2 text-blue-400 hover:text-blue-300"
|
|
745
|
+
>
|
|
746
|
+
<span>Scale effect</span>
|
|
747
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-transform group-hover:scale-110" />
|
|
748
|
+
</a>
|
|
749
|
+
<br />
|
|
750
|
+
<a
|
|
751
|
+
href="#"
|
|
752
|
+
className="group inline-flex items-center gap-2 text-green-400 hover:text-green-300"
|
|
753
|
+
>
|
|
754
|
+
<span>Rotation effect</span>
|
|
755
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-transform group-hover:rotate-12" />
|
|
756
|
+
</a>
|
|
757
|
+
</div>
|
|
758
|
+
</div>
|
|
759
|
+
</div>
|
|
760
|
+
|
|
761
|
+
<div className="!space-y-4">
|
|
762
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
763
|
+
Animation Code
|
|
764
|
+
</h3>
|
|
765
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
766
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
767
|
+
{`// Diagonal movement
|
|
768
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5" />
|
|
769
|
+
|
|
770
|
+
// Scale effect
|
|
771
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-transform group-hover:scale-110" />
|
|
772
|
+
|
|
773
|
+
// Rotation effect
|
|
774
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-transform group-hover:rotate-12" />
|
|
775
|
+
|
|
776
|
+
// Combined effects
|
|
777
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-all duration-300 group-hover:translate-x-1 group-hover:-translate-y-1 group-hover:scale-110" />`}
|
|
778
|
+
</pre>
|
|
779
|
+
</div>
|
|
780
|
+
</div>
|
|
781
|
+
</div>
|
|
782
|
+
</div>
|
|
783
|
+
|
|
784
|
+
{/* Accessibility */}
|
|
785
|
+
<div className="!space-y-8">
|
|
786
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
787
|
+
Accessibility Features
|
|
788
|
+
</h2>
|
|
789
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
790
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
791
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
792
|
+
✅ Built-in Features
|
|
793
|
+
</h3>
|
|
794
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
795
|
+
<li className="!text-white/70">
|
|
796
|
+
Uses Radix UI AccessibleIcon wrapper
|
|
797
|
+
</li>
|
|
798
|
+
<li className="!text-white/70">
|
|
799
|
+
Provides screen reader label "Arrow Right Up icon"
|
|
800
|
+
</li>
|
|
801
|
+
<li className="!text-white/70">
|
|
802
|
+
Supports keyboard navigation when used in links
|
|
803
|
+
</li>
|
|
804
|
+
<li className="!text-white/70">
|
|
805
|
+
Maintains proper color contrast ratios
|
|
806
|
+
</li>
|
|
807
|
+
<li className="!text-white/70">
|
|
808
|
+
Scales with user's font size preferences
|
|
809
|
+
</li>
|
|
810
|
+
</ul>
|
|
811
|
+
</div>
|
|
812
|
+
|
|
813
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
814
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
815
|
+
💡 Best Practices
|
|
816
|
+
</h3>
|
|
817
|
+
<ul className="!space-y-2 text-sm text-white/70">
|
|
818
|
+
<li className="!text-white/70">
|
|
819
|
+
Always pair with descriptive text for external links
|
|
820
|
+
</li>
|
|
821
|
+
<li className="!text-white/70">
|
|
822
|
+
Use consistent colors for link types
|
|
823
|
+
</li>
|
|
824
|
+
<li className="!text-white/70">
|
|
825
|
+
Add target="_blank" and rel="noopener" for external
|
|
826
|
+
links
|
|
827
|
+
</li>
|
|
828
|
+
<li className="!text-white/70">
|
|
829
|
+
Provide clear focus indicators
|
|
830
|
+
</li>
|
|
831
|
+
<li className="!text-white/70">
|
|
832
|
+
Consider reduced motion preferences
|
|
833
|
+
</li>
|
|
834
|
+
</ul>
|
|
835
|
+
</div>
|
|
836
|
+
</div>
|
|
837
|
+
|
|
838
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
839
|
+
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
840
|
+
Accessible External Link Implementation
|
|
841
|
+
</h3>
|
|
842
|
+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
843
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
844
|
+
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
845
|
+
{`// Accessible external link with proper attributes
|
|
846
|
+
function AccessibleExternalLink({ href, children, ...props }) {
|
|
847
|
+
return (
|
|
848
|
+
<a
|
|
849
|
+
href={href}
|
|
850
|
+
target="_blank"
|
|
851
|
+
rel="noopener noreferrer"
|
|
852
|
+
aria-label={\`\${children} (opens in new tab)\`}
|
|
853
|
+
className="inline-flex items-center gap-2 text-blue-400 hover:text-blue-300 focus:ring-2 focus:ring-blue-500"
|
|
854
|
+
{...props}
|
|
855
|
+
>
|
|
856
|
+
{children}
|
|
857
|
+
<ArrowRightUpIcon
|
|
858
|
+
className="h-4 w-4"
|
|
859
|
+
aria-hidden="true"
|
|
860
|
+
/>
|
|
861
|
+
</a>
|
|
862
|
+
)
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
// Usage
|
|
866
|
+
<AccessibleExternalLink href="https://docs.example.com">
|
|
867
|
+
Read the documentation
|
|
868
|
+
</AccessibleExternalLink>`}
|
|
869
|
+
</pre>
|
|
870
|
+
</div>
|
|
871
|
+
<div className="!space-y-4">
|
|
872
|
+
<p className="text-sm !text-white/70">
|
|
873
|
+
This implementation includes proper security attributes,
|
|
874
|
+
ARIA labeling, and keyboard focus management for optimal
|
|
875
|
+
accessibility.
|
|
876
|
+
</p>
|
|
877
|
+
<div className="rounded-lg border border-violet-500/20 bg-violet-500/10 p-4">
|
|
878
|
+
<div className="flex items-center gap-2 text-sm !text-violet-200">
|
|
879
|
+
<ArrowRightUpIcon className="h-4 w-4" />
|
|
880
|
+
<span>
|
|
881
|
+
The icon indicates to screen readers that this opens
|
|
882
|
+
externally
|
|
883
|
+
</span>
|
|
884
|
+
</div>
|
|
885
|
+
</div>
|
|
886
|
+
</div>
|
|
887
|
+
</div>
|
|
888
|
+
</div>
|
|
889
|
+
</div>
|
|
890
|
+
|
|
891
|
+
{/* Related Icons */}
|
|
892
|
+
<div className="!space-y-8">
|
|
893
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
894
|
+
Related Icons
|
|
895
|
+
</h2>
|
|
896
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
897
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
898
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
899
|
+
<ArrowRightUpIcon className="h-6 w-6 rotate-90 text-blue-400" />
|
|
900
|
+
</div>
|
|
901
|
+
<div>
|
|
902
|
+
<div className="font-medium text-white">
|
|
903
|
+
ArrowRightDownIcon
|
|
904
|
+
</div>
|
|
905
|
+
<div className="text-xs text-white/60">
|
|
906
|
+
Download/decrease
|
|
907
|
+
</div>
|
|
908
|
+
</div>
|
|
909
|
+
</div>
|
|
910
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
911
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
|
|
912
|
+
<ArrowRightUpIcon className="h-6 w-6 -rotate-90 text-cyan-400" />
|
|
913
|
+
</div>
|
|
914
|
+
<div>
|
|
915
|
+
<div className="font-medium text-white">
|
|
916
|
+
ArrowLeftUpIcon
|
|
917
|
+
</div>
|
|
918
|
+
<div className="text-xs text-white/60">Back and up</div>
|
|
919
|
+
</div>
|
|
920
|
+
</div>
|
|
921
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
922
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
923
|
+
<span className="text-2xl">↗️</span>
|
|
924
|
+
</div>
|
|
925
|
+
<div>
|
|
926
|
+
<div className="font-medium text-white">
|
|
927
|
+
ExternalLinkIcon
|
|
928
|
+
</div>
|
|
929
|
+
<div className="text-xs text-white/60">
|
|
930
|
+
Alternative style
|
|
931
|
+
</div>
|
|
932
|
+
</div>
|
|
933
|
+
</div>
|
|
934
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
935
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
936
|
+
<span className="text-2xl">📈</span>
|
|
937
|
+
</div>
|
|
938
|
+
<div>
|
|
939
|
+
<div className="font-medium text-white">
|
|
940
|
+
TrendingUpIcon
|
|
941
|
+
</div>
|
|
942
|
+
<div className="text-xs text-white/60">
|
|
943
|
+
Growth metrics
|
|
944
|
+
</div>
|
|
945
|
+
</div>
|
|
946
|
+
</div>
|
|
947
|
+
</div>
|
|
948
|
+
</div>
|
|
949
|
+
</div>
|
|
950
|
+
|
|
951
|
+
{/* Footer */}
|
|
952
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
953
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
954
|
+
<div className="!space-y-4 text-center">
|
|
955
|
+
<p className="!text-white/60">
|
|
956
|
+
ArrowRightUpIcon is part of the Aural UI icon library,
|
|
957
|
+
designed for external navigation and growth indication.
|
|
958
|
+
</p>
|
|
959
|
+
<p className="text-sm !text-white/40">
|
|
960
|
+
Perfect for external links, growth metrics, expansion
|
|
961
|
+
indicators, and any interface requiring diagonal upward
|
|
962
|
+
direction.
|
|
963
|
+
</p>
|
|
964
|
+
</div>
|
|
965
|
+
</div>
|
|
966
|
+
</div>
|
|
967
|
+
</div>
|
|
968
|
+
</>
|
|
969
|
+
),
|
|
970
|
+
},
|
|
971
|
+
},
|
|
972
|
+
tags: ["autodocs"],
|
|
973
|
+
argTypes: {
|
|
974
|
+
color: {
|
|
975
|
+
control: "color",
|
|
976
|
+
description: "Color of the icon",
|
|
977
|
+
},
|
|
978
|
+
width: {
|
|
979
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
980
|
+
description: "Width of the icon in pixels",
|
|
981
|
+
},
|
|
982
|
+
height: {
|
|
983
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
984
|
+
description: "Height of the icon in pixels",
|
|
985
|
+
},
|
|
986
|
+
className: {
|
|
987
|
+
control: "text",
|
|
988
|
+
description: "CSS classes for styling",
|
|
989
|
+
},
|
|
990
|
+
},
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
export default meta
|
|
994
|
+
type Story = StoryObj<typeof ArrowRightUpIcon>
|
|
995
|
+
|
|
996
|
+
// Story parameters for consistent dark theme
|
|
997
|
+
const storyParameters = {
|
|
998
|
+
backgrounds: {
|
|
999
|
+
default: "dark",
|
|
1000
|
+
values: [
|
|
1001
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
1002
|
+
{ name: "darker", value: "#000000" },
|
|
1003
|
+
],
|
|
1004
|
+
},
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
export const Default: Story = {
|
|
1008
|
+
args: {
|
|
1009
|
+
width: 24,
|
|
1010
|
+
height: 24,
|
|
1011
|
+
className: "text-violet-400",
|
|
1012
|
+
},
|
|
1013
|
+
parameters: storyParameters,
|
|
1014
|
+
render: (args) => (
|
|
1015
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1016
|
+
<ArrowRightUpIcon {...args} />
|
|
1017
|
+
</div>
|
|
1018
|
+
),
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
export const SizeVariations: Story = {
|
|
1022
|
+
parameters: {
|
|
1023
|
+
...storyParameters,
|
|
1024
|
+
docs: {
|
|
1025
|
+
description: {
|
|
1026
|
+
story:
|
|
1027
|
+
"ArrowRightUpIcon in different sizes, from small inline indicators to large displays.",
|
|
1028
|
+
},
|
|
1029
|
+
},
|
|
1030
|
+
},
|
|
1031
|
+
render: () => (
|
|
1032
|
+
<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">
|
|
1033
|
+
<div className="text-center">
|
|
1034
|
+
<ArrowRightUpIcon className="!mx-auto mb-2 h-3 w-3 text-violet-400" />
|
|
1035
|
+
<span className="text-xs text-white/60">12px</span>
|
|
1036
|
+
</div>
|
|
1037
|
+
<div className="text-center">
|
|
1038
|
+
<ArrowRightUpIcon className="!mx-auto mb-2 h-4 w-4 text-violet-400" />
|
|
1039
|
+
<span className="text-xs text-white/60">16px</span>
|
|
1040
|
+
</div>
|
|
1041
|
+
<div className="text-center">
|
|
1042
|
+
<ArrowRightUpIcon className="!mx-auto mb-2 h-5 w-5 text-violet-400" />
|
|
1043
|
+
<span className="text-xs text-white/60">20px</span>
|
|
1044
|
+
</div>
|
|
1045
|
+
<div className="text-center">
|
|
1046
|
+
<ArrowRightUpIcon className="!mx-auto mb-2 h-6 w-6 text-violet-400" />
|
|
1047
|
+
<span className="text-xs text-white/60">24px</span>
|
|
1048
|
+
</div>
|
|
1049
|
+
<div className="text-center">
|
|
1050
|
+
<ArrowRightUpIcon className="!mx-auto mb-2 h-8 w-8 text-violet-400" />
|
|
1051
|
+
<span className="text-xs text-white/60">32px</span>
|
|
1052
|
+
</div>
|
|
1053
|
+
<div className="text-center">
|
|
1054
|
+
<ArrowRightUpIcon className="!mx-auto mb-2 h-12 w-12 text-violet-400" />
|
|
1055
|
+
<span className="text-xs text-white/60">48px</span>
|
|
1056
|
+
</div>
|
|
1057
|
+
</div>
|
|
1058
|
+
),
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
export const ColorVariations: Story = {
|
|
1062
|
+
parameters: {
|
|
1063
|
+
...storyParameters,
|
|
1064
|
+
docs: {
|
|
1065
|
+
description: {
|
|
1066
|
+
story:
|
|
1067
|
+
"ArrowRightUpIcon in different contextual colors for various use cases.",
|
|
1068
|
+
},
|
|
1069
|
+
},
|
|
1070
|
+
},
|
|
1071
|
+
render: () => (
|
|
1072
|
+
<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">
|
|
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-violet-500/30 bg-violet-500/20">
|
|
1075
|
+
<ArrowRightUpIcon className="h-8 w-8 text-violet-400" />
|
|
1076
|
+
</div>
|
|
1077
|
+
<div className="text-sm font-medium text-white">Primary</div>
|
|
1078
|
+
<div className="text-xs text-violet-400">text-violet-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
|
+
<ArrowRightUpIcon className="h-8 w-8 text-blue-400" />
|
|
1083
|
+
</div>
|
|
1084
|
+
<div className="text-sm font-medium text-white">External</div>
|
|
1085
|
+
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
1086
|
+
</div>
|
|
1087
|
+
<div className="text-center">
|
|
1088
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-green-500/30 bg-green-500/20">
|
|
1089
|
+
<ArrowRightUpIcon className="h-8 w-8 text-green-400" />
|
|
1090
|
+
</div>
|
|
1091
|
+
<div className="text-sm font-medium text-white">Growth</div>
|
|
1092
|
+
<div className="text-xs text-green-400">text-green-400</div>
|
|
1093
|
+
</div>
|
|
1094
|
+
<div className="text-center">
|
|
1095
|
+
<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">
|
|
1096
|
+
<ArrowRightUpIcon className="h-8 w-8 text-gray-400" />
|
|
1097
|
+
</div>
|
|
1098
|
+
<div className="text-sm font-medium text-white">Neutral</div>
|
|
1099
|
+
<div className="text-xs text-gray-400">text-gray-400</div>
|
|
1100
|
+
</div>
|
|
1101
|
+
</div>
|
|
1102
|
+
),
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
export const UsageExamples: Story = {
|
|
1106
|
+
parameters: {
|
|
1107
|
+
...storyParameters,
|
|
1108
|
+
docs: {
|
|
1109
|
+
description: {
|
|
1110
|
+
story:
|
|
1111
|
+
"Real-world usage examples showing ArrowRightUpIcon in different UI contexts.",
|
|
1112
|
+
},
|
|
1113
|
+
},
|
|
1114
|
+
},
|
|
1115
|
+
render: () => (
|
|
1116
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
1117
|
+
{/* External Links */}
|
|
1118
|
+
<div className="!space-y-2">
|
|
1119
|
+
<h3 className="text-sm font-medium text-white">External Links</h3>
|
|
1120
|
+
<div className="!space-y-2">
|
|
1121
|
+
<a
|
|
1122
|
+
href="#"
|
|
1123
|
+
className="inline-flex items-center gap-2 text-blue-400 transition-colors hover:text-blue-300"
|
|
1124
|
+
>
|
|
1125
|
+
<span>Visit our documentation</span>
|
|
1126
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
1127
|
+
</a>
|
|
1128
|
+
<br />
|
|
1129
|
+
<a
|
|
1130
|
+
href="#"
|
|
1131
|
+
className="inline-flex items-center gap-2 text-blue-400 transition-colors hover:text-blue-300"
|
|
1132
|
+
>
|
|
1133
|
+
<span>Join our community</span>
|
|
1134
|
+
<ArrowRightUpIcon className="h-4 w-4 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
1135
|
+
</a>
|
|
1136
|
+
</div>
|
|
1137
|
+
</div>
|
|
1138
|
+
|
|
1139
|
+
{/* Growth Metrics */}
|
|
1140
|
+
<div className="!space-y-2">
|
|
1141
|
+
<h3 className="text-sm font-medium text-white">Growth Indicators</h3>
|
|
1142
|
+
<div className="grid grid-cols-2 gap-4">
|
|
1143
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
1144
|
+
<div className="flex items-center justify-between">
|
|
1145
|
+
<div>
|
|
1146
|
+
<div className="text-2xl font-bold text-white">24.5%</div>
|
|
1147
|
+
<div className="text-sm text-white/60">Revenue Growth</div>
|
|
1148
|
+
</div>
|
|
1149
|
+
<ArrowRightUpIcon className="h-6 w-6 text-green-400" />
|
|
1150
|
+
</div>
|
|
1151
|
+
</div>
|
|
1152
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
1153
|
+
<div className="flex items-center justify-between">
|
|
1154
|
+
<div>
|
|
1155
|
+
<div className="text-2xl font-bold text-white">156</div>
|
|
1156
|
+
<div className="text-sm text-white/60">New Users</div>
|
|
1157
|
+
</div>
|
|
1158
|
+
<ArrowRightUpIcon className="h-6 w-6 text-blue-400" />
|
|
1159
|
+
</div>
|
|
1160
|
+
</div>
|
|
1161
|
+
</div>
|
|
1162
|
+
</div>
|
|
1163
|
+
|
|
1164
|
+
{/* Card Actions */}
|
|
1165
|
+
<div className="!space-y-2">
|
|
1166
|
+
<h3 className="text-sm font-medium text-white">Card Actions</h3>
|
|
1167
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
1168
|
+
<div className="!space-y-4">
|
|
1169
|
+
<div>
|
|
1170
|
+
<h4 className="font-medium text-white">GitHub Repository</h4>
|
|
1171
|
+
<p className="text-sm text-white/60">
|
|
1172
|
+
Open source UI component library
|
|
1173
|
+
</p>
|
|
1174
|
+
</div>
|
|
1175
|
+
<div className="flex items-center justify-between">
|
|
1176
|
+
<div className="flex items-center gap-2 text-sm text-white/70">
|
|
1177
|
+
<span>⭐ 1.2k stars</span>
|
|
1178
|
+
</div>
|
|
1179
|
+
<a
|
|
1180
|
+
href="#"
|
|
1181
|
+
className="flex items-center gap-2 rounded bg-violet-500 px-3 py-1.5 text-sm font-medium text-white transition-colors hover:bg-violet-600"
|
|
1182
|
+
>
|
|
1183
|
+
View on GitHub
|
|
1184
|
+
<ArrowRightUpIcon className="h-3 w-3" />
|
|
1185
|
+
</a>
|
|
1186
|
+
</div>
|
|
1187
|
+
</div>
|
|
1188
|
+
</div>
|
|
1189
|
+
</div>
|
|
1190
|
+
</div>
|
|
1191
|
+
),
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
export const AnimatedStates: Story = {
|
|
1195
|
+
parameters: {
|
|
1196
|
+
...storyParameters,
|
|
1197
|
+
docs: {
|
|
1198
|
+
description: {
|
|
1199
|
+
story:
|
|
1200
|
+
"ArrowRightUpIcon with different animation states for interactive elements.",
|
|
1201
|
+
},
|
|
1202
|
+
},
|
|
1203
|
+
},
|
|
1204
|
+
render: () => (
|
|
1205
|
+
<div className="grid min-h-dvh grid-cols-1 items-center gap-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8 md:grid-cols-3">
|
|
1206
|
+
<div className="text-center">
|
|
1207
|
+
<h3 className="mb-4 text-lg font-medium text-white">
|
|
1208
|
+
Diagonal Movement
|
|
1209
|
+
</h3>
|
|
1210
|
+
<a
|
|
1211
|
+
href="#"
|
|
1212
|
+
className="group inline-flex items-center gap-2 rounded-lg border border-violet-500/30 bg-violet-500/10 px-6 py-3 text-violet-200 transition-colors hover:bg-violet-500/20"
|
|
1213
|
+
>
|
|
1214
|
+
<span>External Link</span>
|
|
1215
|
+
<ArrowRightUpIcon className="h-6 w-6 transition-transform duration-300 group-hover:translate-x-1 group-hover:-translate-y-1" />
|
|
1216
|
+
</a>
|
|
1217
|
+
<p className="mt-2 text-xs text-white/60">
|
|
1218
|
+
Hover for diagonal movement
|
|
1219
|
+
</p>
|
|
1220
|
+
</div>
|
|
1221
|
+
|
|
1222
|
+
<div className="text-center">
|
|
1223
|
+
<h3 className="mb-4 text-lg font-medium text-white">Scale Effect</h3>
|
|
1224
|
+
<a
|
|
1225
|
+
href="#"
|
|
1226
|
+
className="group inline-flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-6 py-3 text-blue-200 transition-colors hover:bg-blue-500/20"
|
|
1227
|
+
>
|
|
1228
|
+
<span>Learn More</span>
|
|
1229
|
+
<ArrowRightUpIcon className="h-6 w-6 transition-transform duration-300 group-hover:scale-125" />
|
|
1230
|
+
</a>
|
|
1231
|
+
<p className="mt-2 text-xs text-white/60">Hover to scale up</p>
|
|
1232
|
+
</div>
|
|
1233
|
+
|
|
1234
|
+
<div className="text-center">
|
|
1235
|
+
<h3 className="mb-4 text-lg font-medium text-white">
|
|
1236
|
+
Combined Effects
|
|
1237
|
+
</h3>
|
|
1238
|
+
<a
|
|
1239
|
+
href="#"
|
|
1240
|
+
className="group inline-flex items-center gap-2 rounded-lg border border-green-500/30 bg-green-500/10 px-6 py-3 text-green-200 transition-colors hover:bg-green-500/20"
|
|
1241
|
+
>
|
|
1242
|
+
<span>Explore</span>
|
|
1243
|
+
<ArrowRightUpIcon className="h-6 w-6 transition-all duration-300 group-hover:translate-x-1 group-hover:-translate-y-1 group-hover:scale-110 group-hover:rotate-12" />
|
|
1244
|
+
</a>
|
|
1245
|
+
<p className="mt-2 text-xs text-white/60">Multiple animations</p>
|
|
1246
|
+
</div>
|
|
1247
|
+
</div>
|
|
1248
|
+
),
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
export const Playground: Story = {
|
|
1252
|
+
parameters: {
|
|
1253
|
+
...storyParameters,
|
|
1254
|
+
docs: {
|
|
1255
|
+
description: {
|
|
1256
|
+
story:
|
|
1257
|
+
"Interactive playground to experiment with different ArrowRightUpIcon configurations.",
|
|
1258
|
+
},
|
|
1259
|
+
},
|
|
1260
|
+
},
|
|
1261
|
+
args: {
|
|
1262
|
+
width: 32,
|
|
1263
|
+
height: 32,
|
|
1264
|
+
className: "text-violet-400",
|
|
1265
|
+
},
|
|
1266
|
+
render: (args) => (
|
|
1267
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1268
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
1269
|
+
<ArrowRightUpIcon {...args} />
|
|
1270
|
+
</div>
|
|
1271
|
+
</div>
|
|
1272
|
+
),
|
|
1273
|
+
}
|