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,668 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { FileTextIcon } from "."
|
|
5
|
+
import { ArrowRightUpIcon } from "../arrow-right-up-icon"
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof FileTextIcon> = {
|
|
8
|
+
title: "Icons/FileTextIcon",
|
|
9
|
+
component: FileTextIcon,
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: "centered",
|
|
12
|
+
backgrounds: {
|
|
13
|
+
default: "dark",
|
|
14
|
+
values: [
|
|
15
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
16
|
+
{ name: "darker", value: "#000000" },
|
|
17
|
+
{ name: "light", value: "#ffffff" },
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
docs: {
|
|
21
|
+
description: {
|
|
22
|
+
component: "A document icon representing text files and documents.",
|
|
23
|
+
},
|
|
24
|
+
canvas: {
|
|
25
|
+
sourceState: "shown",
|
|
26
|
+
},
|
|
27
|
+
page: () => (
|
|
28
|
+
<>
|
|
29
|
+
{/* Override default docs styling */}
|
|
30
|
+
<style>
|
|
31
|
+
{`
|
|
32
|
+
.sbdocs-wrapper {
|
|
33
|
+
padding: 0 !important;
|
|
34
|
+
max-width: none !important;
|
|
35
|
+
background: transparent !important;
|
|
36
|
+
}
|
|
37
|
+
.sbdocs-content {
|
|
38
|
+
max-width: none !important;
|
|
39
|
+
padding: 0 !important;
|
|
40
|
+
margin: 0 !important;
|
|
41
|
+
background: transparent !important;
|
|
42
|
+
}
|
|
43
|
+
.docs-story {
|
|
44
|
+
background: transparent !important;
|
|
45
|
+
}
|
|
46
|
+
.sbdocs {
|
|
47
|
+
background: transparent !important;
|
|
48
|
+
}
|
|
49
|
+
body {
|
|
50
|
+
background: #0a0a0a !important;
|
|
51
|
+
}
|
|
52
|
+
#storybook-docs {
|
|
53
|
+
background: #0a0a0a !important;
|
|
54
|
+
}
|
|
55
|
+
.sbdocs-preview {
|
|
56
|
+
background: transparent !important;
|
|
57
|
+
border: none !important;
|
|
58
|
+
}
|
|
59
|
+
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
60
|
+
color: white !important;
|
|
61
|
+
}
|
|
62
|
+
.sbdocs-p, .sbdocs-li {
|
|
63
|
+
color: rgba(255, 255, 255, 0.7) !important;
|
|
64
|
+
}
|
|
65
|
+
.sbdocs-code {
|
|
66
|
+
background: rgba(255, 255, 255, 0.1) !important;
|
|
67
|
+
color: rgba(168, 85, 247, 1) !important;
|
|
68
|
+
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
69
|
+
}
|
|
70
|
+
.sbdocs-pre {
|
|
71
|
+
background: rgba(0, 0, 0, 0.4) !important;
|
|
72
|
+
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
73
|
+
}
|
|
74
|
+
.sbdocs-table {
|
|
75
|
+
background: rgba(255, 255, 255, 0.05) !important;
|
|
76
|
+
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
77
|
+
}
|
|
78
|
+
.sbdocs-table th {
|
|
79
|
+
background: rgba(255, 255, 255, 0.05) !important;
|
|
80
|
+
color: white !important;
|
|
81
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
82
|
+
}
|
|
83
|
+
.sbdocs-table td {
|
|
84
|
+
color: rgba(255, 255, 255, 0.7) !important;
|
|
85
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
|
|
86
|
+
}
|
|
87
|
+
`}
|
|
88
|
+
</style>
|
|
89
|
+
|
|
90
|
+
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-purple-900/20 to-gray-900">
|
|
91
|
+
{/* Header */}
|
|
92
|
+
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
93
|
+
<div className="absolute inset-0 bg-gradient-to-r from-purple-500/10 via-transparent to-blue-500/10" />
|
|
94
|
+
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
95
|
+
<div className="!space-y-6 text-center">
|
|
96
|
+
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-blue-500/30 bg-gradient-to-br from-blue-500/20 to-indigo-500/20">
|
|
97
|
+
<FileTextIcon className="h-12 w-12 text-blue-400" />
|
|
98
|
+
</div>
|
|
99
|
+
<h1 className="text-5xl font-bold !text-white">
|
|
100
|
+
FileTextIcon
|
|
101
|
+
</h1>
|
|
102
|
+
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
103
|
+
A document icon representing text files and documents.
|
|
104
|
+
Perfect for file management interfaces, document lists, and
|
|
105
|
+
text-based content indicators.
|
|
106
|
+
</p>
|
|
107
|
+
|
|
108
|
+
{/* Stats */}
|
|
109
|
+
<div className="mx-auto flex items-center justify-center gap-8">
|
|
110
|
+
<div className="text-center">
|
|
111
|
+
<div className="text-3xl font-bold text-blue-300">
|
|
112
|
+
Document
|
|
113
|
+
</div>
|
|
114
|
+
<div className="text-sm text-white/80">Text files</div>
|
|
115
|
+
</div>
|
|
116
|
+
<div className="h-8 w-px bg-white/20" />
|
|
117
|
+
<div className="text-center">
|
|
118
|
+
<div className="text-3xl font-bold text-indigo-300">
|
|
119
|
+
Content
|
|
120
|
+
</div>
|
|
121
|
+
<div className="text-sm text-white/80">Text content</div>
|
|
122
|
+
</div>
|
|
123
|
+
<div className="h-8 w-px bg-white/20" />
|
|
124
|
+
<div className="text-center">
|
|
125
|
+
<div className="text-3xl font-bold text-cyan-300">
|
|
126
|
+
Accessible
|
|
127
|
+
</div>
|
|
128
|
+
<div className="text-sm text-white/80">
|
|
129
|
+
Screen reader support
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
{/* Content */}
|
|
138
|
+
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
139
|
+
{/* Features */}
|
|
140
|
+
<div className="!space-y-8">
|
|
141
|
+
<h3 className="text-center text-2xl font-bold !text-white">
|
|
142
|
+
Key Features
|
|
143
|
+
</h3>
|
|
144
|
+
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
145
|
+
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
146
|
+
<div className="text-3xl">📄</div>
|
|
147
|
+
<h4 className="text-lg font-semibold !text-white">
|
|
148
|
+
Document Icon
|
|
149
|
+
</h4>
|
|
150
|
+
<p className="text-sm !text-white/80">
|
|
151
|
+
Clear representation of text documents
|
|
152
|
+
</p>
|
|
153
|
+
</div>
|
|
154
|
+
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
155
|
+
<div className="text-3xl">♿</div>
|
|
156
|
+
<h4 className="text-lg font-semibold !text-white">
|
|
157
|
+
Accessibility
|
|
158
|
+
</h4>
|
|
159
|
+
<p className="text-sm !text-white/80">
|
|
160
|
+
Built with screen reader support
|
|
161
|
+
</p>
|
|
162
|
+
</div>
|
|
163
|
+
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
164
|
+
<div className="text-3xl">🎨</div>
|
|
165
|
+
<h4 className="text-lg font-semibold !text-white">
|
|
166
|
+
Customizable
|
|
167
|
+
</h4>
|
|
168
|
+
<p className="text-sm !text-white/80">
|
|
169
|
+
Flexible styling options
|
|
170
|
+
</p>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
{/* API Reference */}
|
|
176
|
+
<div className="!space-y-8">
|
|
177
|
+
<h3 className="text-center text-2xl font-bold !text-white">
|
|
178
|
+
API Reference
|
|
179
|
+
</h3>
|
|
180
|
+
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
181
|
+
<div className="bg-white/5 p-4">
|
|
182
|
+
<h4 className="text-lg font-semibold !text-white">Props</h4>
|
|
183
|
+
</div>
|
|
184
|
+
<table className="!my-0 w-full">
|
|
185
|
+
<thead className="bg-white/5">
|
|
186
|
+
<tr className="border-b border-white/10">
|
|
187
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
188
|
+
Prop
|
|
189
|
+
</th>
|
|
190
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
191
|
+
Type
|
|
192
|
+
</th>
|
|
193
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
194
|
+
Default
|
|
195
|
+
</th>
|
|
196
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
197
|
+
Description
|
|
198
|
+
</th>
|
|
199
|
+
</tr>
|
|
200
|
+
</thead>
|
|
201
|
+
<tbody>
|
|
202
|
+
<tr className="border-b border-white/5">
|
|
203
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
204
|
+
className
|
|
205
|
+
</td>
|
|
206
|
+
<td className="px-6 py-4 text-sm !text-white/80">
|
|
207
|
+
string
|
|
208
|
+
</td>
|
|
209
|
+
<td className="px-6 py-4 text-sm !text-white/60">-</td>
|
|
210
|
+
<td className="px-6 py-4 text-sm !text-white/80">
|
|
211
|
+
Additional CSS classes
|
|
212
|
+
</td>
|
|
213
|
+
</tr>
|
|
214
|
+
</tbody>
|
|
215
|
+
</table>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
|
|
219
|
+
{/* Usage Examples */}
|
|
220
|
+
<div className="!space-y-8">
|
|
221
|
+
<h3 className="text-center text-2xl font-bold !text-white">
|
|
222
|
+
Usage Examples
|
|
223
|
+
</h3>
|
|
224
|
+
|
|
225
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
226
|
+
<div className="space-y-4">
|
|
227
|
+
<h4 className="text-lg font-semibold !text-blue-300">
|
|
228
|
+
Basic Usage
|
|
229
|
+
</h4>
|
|
230
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
231
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
232
|
+
{`import { FileTextIcon } from "@/components/ui/icons/file-text-icon"
|
|
233
|
+
|
|
234
|
+
function DocumentButton() {
|
|
235
|
+
return (
|
|
236
|
+
<button className="flex items-center gap-2">
|
|
237
|
+
<FileTextIcon className="h-4 w-4 text-blue-400" />
|
|
238
|
+
<span>Open Document</span>
|
|
239
|
+
</button>
|
|
240
|
+
)
|
|
241
|
+
}`}
|
|
242
|
+
</pre>
|
|
243
|
+
</div>
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
<div className="space-y-4">
|
|
247
|
+
<h4 className="text-lg font-semibold !text-blue-300">
|
|
248
|
+
Live Preview
|
|
249
|
+
</h4>
|
|
250
|
+
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
251
|
+
<button className="flex items-center gap-2 rounded-lg border border-blue-500/20 bg-blue-500/10 px-4 py-2 text-white transition-colors hover:bg-blue-500/20">
|
|
252
|
+
<FileTextIcon className="h-4 w-4 text-blue-400" />
|
|
253
|
+
<span>Open Document</span>
|
|
254
|
+
</button>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
|
|
260
|
+
{/* Size Examples */}
|
|
261
|
+
<div className="!space-y-8">
|
|
262
|
+
<h3 className="text-center text-2xl font-bold !text-white">
|
|
263
|
+
Size Examples
|
|
264
|
+
</h3>
|
|
265
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
266
|
+
<div className="!space-y-6">
|
|
267
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
268
|
+
<div className="!space-y-4">
|
|
269
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
270
|
+
Standard Sizes
|
|
271
|
+
</h3>
|
|
272
|
+
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
273
|
+
<div className="text-center">
|
|
274
|
+
<FileTextIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
275
|
+
<span className="text-xs text-white/60">12px</span>
|
|
276
|
+
</div>
|
|
277
|
+
<div className="text-center">
|
|
278
|
+
<FileTextIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
279
|
+
<span className="text-xs text-white/60">16px</span>
|
|
280
|
+
</div>
|
|
281
|
+
<div className="text-center">
|
|
282
|
+
<FileTextIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
283
|
+
<span className="text-xs text-white/60">20px</span>
|
|
284
|
+
</div>
|
|
285
|
+
<div className="text-center">
|
|
286
|
+
<FileTextIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
287
|
+
<span className="text-xs text-white/60">24px</span>
|
|
288
|
+
</div>
|
|
289
|
+
<div className="text-center">
|
|
290
|
+
<FileTextIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
291
|
+
<span className="text-xs text-white/60">32px</span>
|
|
292
|
+
</div>
|
|
293
|
+
<div className="text-center">
|
|
294
|
+
<FileTextIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
295
|
+
<span className="text-xs text-white/60">48px</span>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
</div>
|
|
299
|
+
|
|
300
|
+
<div className="!space-y-4">
|
|
301
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
302
|
+
Code Example
|
|
303
|
+
</h3>
|
|
304
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
305
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
306
|
+
{`// Small (16px)
|
|
307
|
+
<FileTextIcon className="h-4 w-4" />
|
|
308
|
+
|
|
309
|
+
// Medium (24px)
|
|
310
|
+
<FileTextIcon className="h-6 w-6" />
|
|
311
|
+
|
|
312
|
+
// Large (32px)
|
|
313
|
+
<FileTextIcon className="h-8 w-8" />
|
|
314
|
+
|
|
315
|
+
// Custom size
|
|
316
|
+
<FileTextIcon width={40} height={40} />`}
|
|
317
|
+
</pre>
|
|
318
|
+
</div>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
</div>
|
|
324
|
+
|
|
325
|
+
{/* Common Use Cases */}
|
|
326
|
+
<div className="!space-y-8">
|
|
327
|
+
<h3 className="text-center text-2xl font-bold !text-white">
|
|
328
|
+
Common Use Cases
|
|
329
|
+
</h3>
|
|
330
|
+
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
331
|
+
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
332
|
+
<div className="text-2xl">📄</div>
|
|
333
|
+
<h4 className="text-lg font-semibold !text-white">
|
|
334
|
+
File Management
|
|
335
|
+
</h4>
|
|
336
|
+
<p className="text-sm !text-white/80">
|
|
337
|
+
Document lists and file browsers
|
|
338
|
+
</p>
|
|
339
|
+
</div>
|
|
340
|
+
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
341
|
+
<div className="text-2xl">📝</div>
|
|
342
|
+
<h4 className="text-lg font-semibold !text-white">
|
|
343
|
+
Text Editors
|
|
344
|
+
</h4>
|
|
345
|
+
<p className="text-sm !text-white/80">
|
|
346
|
+
Document editing interfaces
|
|
347
|
+
</p>
|
|
348
|
+
</div>
|
|
349
|
+
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
350
|
+
<div className="text-2xl">📚</div>
|
|
351
|
+
<h4 className="text-lg font-semibold !text-white">
|
|
352
|
+
Content Management
|
|
353
|
+
</h4>
|
|
354
|
+
<p className="text-sm !text-white/80">
|
|
355
|
+
Content organization systems
|
|
356
|
+
</p>
|
|
357
|
+
</div>
|
|
358
|
+
</div>
|
|
359
|
+
</div>
|
|
360
|
+
|
|
361
|
+
{/* Best Practices */}
|
|
362
|
+
<div className="!space-y-8">
|
|
363
|
+
<h3 className="text-center text-2xl font-bold !text-white">
|
|
364
|
+
Best Practices
|
|
365
|
+
</h3>
|
|
366
|
+
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
367
|
+
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
368
|
+
<h4 className="text-lg font-semibold !text-emerald-300">
|
|
369
|
+
✅ Do
|
|
370
|
+
</h4>
|
|
371
|
+
<ul className="space-y-2 text-sm !text-white/80">
|
|
372
|
+
<li className="!text-white/80">
|
|
373
|
+
Use appropriate sizes for different contexts
|
|
374
|
+
</li>
|
|
375
|
+
<li className="!text-white/80">
|
|
376
|
+
Choose colors that match your UI theme
|
|
377
|
+
</li>
|
|
378
|
+
<li className="!text-white/80">
|
|
379
|
+
Provide clear labels for icon buttons
|
|
380
|
+
</li>
|
|
381
|
+
<li className="!text-white/80">
|
|
382
|
+
Use consistent styling across your app
|
|
383
|
+
</li>
|
|
384
|
+
<li className="!text-white/80">
|
|
385
|
+
Consider accessibility in all implementations
|
|
386
|
+
</li>
|
|
387
|
+
</ul>
|
|
388
|
+
</div>
|
|
389
|
+
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
390
|
+
<h4 className="text-lg font-semibold !text-red-300">
|
|
391
|
+
❌ Don't
|
|
392
|
+
</h4>
|
|
393
|
+
<ul className="space-y-2 text-sm !text-white/80">
|
|
394
|
+
<li className="!text-white/80">
|
|
395
|
+
Use multiple icon styles in the same view
|
|
396
|
+
</li>
|
|
397
|
+
<li className="!text-white/80">
|
|
398
|
+
Overuse the icon in navigation
|
|
399
|
+
</li>
|
|
400
|
+
<li className="!text-white/80">
|
|
401
|
+
Use inappropriate sizes for the context
|
|
402
|
+
</li>
|
|
403
|
+
<li className="!text-white/80">
|
|
404
|
+
Forget to add hover states
|
|
405
|
+
</li>
|
|
406
|
+
<li className="!text-white/80">
|
|
407
|
+
Ignore accessibility requirements
|
|
408
|
+
</li>
|
|
409
|
+
</ul>
|
|
410
|
+
</div>
|
|
411
|
+
</div>
|
|
412
|
+
</div>
|
|
413
|
+
</div>
|
|
414
|
+
|
|
415
|
+
<div className="!space-y-8 p-7">
|
|
416
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
417
|
+
Related Icons
|
|
418
|
+
</h2>
|
|
419
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
420
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
421
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
422
|
+
<ArrowRightUpIcon className="h-6 w-6 rotate-90 text-blue-400" />
|
|
423
|
+
</div>
|
|
424
|
+
<div>
|
|
425
|
+
<div className="font-medium text-white">
|
|
426
|
+
ArrowRightDownIcon
|
|
427
|
+
</div>
|
|
428
|
+
<div className="text-xs text-white/60">
|
|
429
|
+
Download/decrease
|
|
430
|
+
</div>
|
|
431
|
+
</div>
|
|
432
|
+
</div>
|
|
433
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
434
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
|
|
435
|
+
<ArrowRightUpIcon className="h-6 w-6 -rotate-90 text-cyan-400" />
|
|
436
|
+
</div>
|
|
437
|
+
<div>
|
|
438
|
+
<div className="font-medium text-white">
|
|
439
|
+
ArrowLeftUpIcon
|
|
440
|
+
</div>
|
|
441
|
+
<div className="text-xs text-white/60">Back and up</div>
|
|
442
|
+
</div>
|
|
443
|
+
</div>
|
|
444
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
445
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
446
|
+
<span className="text-2xl">↗️</span>
|
|
447
|
+
</div>
|
|
448
|
+
<div>
|
|
449
|
+
<div className="font-medium text-white">
|
|
450
|
+
ExternalLinkIcon
|
|
451
|
+
</div>
|
|
452
|
+
<div className="text-xs text-white/60">
|
|
453
|
+
Alternative style
|
|
454
|
+
</div>
|
|
455
|
+
</div>
|
|
456
|
+
</div>
|
|
457
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
458
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
459
|
+
<span className="text-2xl">📈</span>
|
|
460
|
+
</div>
|
|
461
|
+
<div>
|
|
462
|
+
<div className="font-medium text-white">TrendingUpIcon</div>
|
|
463
|
+
<div className="text-xs text-white/60">Growth metrics</div>
|
|
464
|
+
</div>
|
|
465
|
+
</div>
|
|
466
|
+
</div>
|
|
467
|
+
</div>
|
|
468
|
+
|
|
469
|
+
{/* Footer */}
|
|
470
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
471
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
472
|
+
<div className="!space-y-4 text-center">
|
|
473
|
+
<p className="!text-white/60">
|
|
474
|
+
FileTextIcon is part of the Aural UI icon library, designed
|
|
475
|
+
for document and text file interfaces.
|
|
476
|
+
</p>
|
|
477
|
+
<p className="text-sm !text-white/40">
|
|
478
|
+
Perfect for file management, document editors, content
|
|
479
|
+
management systems, and any interface requiring text
|
|
480
|
+
document representation.
|
|
481
|
+
</p>
|
|
482
|
+
</div>
|
|
483
|
+
</div>
|
|
484
|
+
</div>
|
|
485
|
+
</div>
|
|
486
|
+
</>
|
|
487
|
+
),
|
|
488
|
+
},
|
|
489
|
+
},
|
|
490
|
+
tags: ["autodocs"],
|
|
491
|
+
argTypes: {
|
|
492
|
+
width: {
|
|
493
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
494
|
+
description: "Width of the icon in pixels",
|
|
495
|
+
},
|
|
496
|
+
height: {
|
|
497
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
498
|
+
description: "Height of the icon in pixels",
|
|
499
|
+
},
|
|
500
|
+
className: {
|
|
501
|
+
control: "text",
|
|
502
|
+
description: "CSS classes for styling",
|
|
503
|
+
},
|
|
504
|
+
},
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
export default meta
|
|
508
|
+
type Story = StoryObj<typeof FileTextIcon>
|
|
509
|
+
|
|
510
|
+
// Story parameters for consistent dark theme
|
|
511
|
+
const storyParameters = {
|
|
512
|
+
backgrounds: {
|
|
513
|
+
default: "dark",
|
|
514
|
+
values: [
|
|
515
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
516
|
+
{ name: "darker", value: "#000000" },
|
|
517
|
+
],
|
|
518
|
+
},
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export const Default: Story = {
|
|
522
|
+
args: {
|
|
523
|
+
width: 24,
|
|
524
|
+
height: 24,
|
|
525
|
+
className: "text-blue-400",
|
|
526
|
+
},
|
|
527
|
+
parameters: storyParameters,
|
|
528
|
+
render: (args) => (
|
|
529
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
530
|
+
<FileTextIcon {...args} />
|
|
531
|
+
</div>
|
|
532
|
+
),
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export const SizeVariations: Story = {
|
|
536
|
+
parameters: {
|
|
537
|
+
...storyParameters,
|
|
538
|
+
docs: {
|
|
539
|
+
description: {
|
|
540
|
+
story:
|
|
541
|
+
"FileTextIcon in different sizes, from small inline buttons to large call-to-action elements.",
|
|
542
|
+
},
|
|
543
|
+
},
|
|
544
|
+
},
|
|
545
|
+
render: () => (
|
|
546
|
+
<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">
|
|
547
|
+
<div className="text-center">
|
|
548
|
+
<FileTextIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
549
|
+
<span className="text-xs text-white/60">12px</span>
|
|
550
|
+
</div>
|
|
551
|
+
<div className="text-center">
|
|
552
|
+
<FileTextIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
553
|
+
<span className="text-xs text-white/60">16px</span>
|
|
554
|
+
</div>
|
|
555
|
+
<div className="text-center">
|
|
556
|
+
<FileTextIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
557
|
+
<span className="text-xs text-white/60">20px</span>
|
|
558
|
+
</div>
|
|
559
|
+
<div className="text-center">
|
|
560
|
+
<FileTextIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
561
|
+
<span className="text-xs text-white/60">24px</span>
|
|
562
|
+
</div>
|
|
563
|
+
<div className="text-center">
|
|
564
|
+
<FileTextIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
565
|
+
<span className="text-xs text-white/60">32px</span>
|
|
566
|
+
</div>
|
|
567
|
+
<div className="text-center">
|
|
568
|
+
<FileTextIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
569
|
+
<span className="text-xs text-white/60">48px</span>
|
|
570
|
+
</div>
|
|
571
|
+
</div>
|
|
572
|
+
),
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export const ColorVariations: Story = {
|
|
576
|
+
parameters: {
|
|
577
|
+
...storyParameters,
|
|
578
|
+
docs: {
|
|
579
|
+
description: {
|
|
580
|
+
story:
|
|
581
|
+
"FileTextIcon with different color variations using Tailwind classes.",
|
|
582
|
+
},
|
|
583
|
+
},
|
|
584
|
+
},
|
|
585
|
+
render: () => (
|
|
586
|
+
<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">
|
|
587
|
+
<div className="text-center">
|
|
588
|
+
<FileTextIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
589
|
+
<span className="text-xs text-white/60">Blue</span>
|
|
590
|
+
</div>
|
|
591
|
+
<div className="text-center">
|
|
592
|
+
<FileTextIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
|
|
593
|
+
<span className="text-xs text-white/60">Purple</span>
|
|
594
|
+
</div>
|
|
595
|
+
<div className="text-center">
|
|
596
|
+
<FileTextIcon className="!mx-auto mb-2 h-6 w-6 text-green-400" />
|
|
597
|
+
<span className="text-xs text-white/60">Green</span>
|
|
598
|
+
</div>
|
|
599
|
+
<div className="text-center">
|
|
600
|
+
<FileTextIcon className="!mx-auto mb-2 h-6 w-6 text-red-400" />
|
|
601
|
+
<span className="text-xs text-white/60">Red</span>
|
|
602
|
+
</div>
|
|
603
|
+
<div className="text-center">
|
|
604
|
+
<FileTextIcon className="!mx-auto mb-2 h-6 w-6 text-yellow-400" />
|
|
605
|
+
<span className="text-xs text-white/60">Yellow</span>
|
|
606
|
+
</div>
|
|
607
|
+
</div>
|
|
608
|
+
),
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export const UsageExamples: Story = {
|
|
612
|
+
parameters: {
|
|
613
|
+
...storyParameters,
|
|
614
|
+
docs: {
|
|
615
|
+
description: {
|
|
616
|
+
story: "Common usage examples of FileTextIcon in different contexts.",
|
|
617
|
+
},
|
|
618
|
+
},
|
|
619
|
+
},
|
|
620
|
+
render: () => (
|
|
621
|
+
<div className="flex h-64 min-h-dvh flex-col items-center justify-center gap-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
622
|
+
<div className="flex items-center gap-4">
|
|
623
|
+
<button className="flex items-center gap-2 rounded-lg border border-blue-500/20 bg-blue-500/10 px-4 py-2 text-white transition-colors hover:bg-blue-500/20">
|
|
624
|
+
<FileTextIcon className="h-4 w-4 text-blue-400" />
|
|
625
|
+
<span>New Document</span>
|
|
626
|
+
</button>
|
|
627
|
+
<button className="flex items-center gap-2 rounded-lg border border-purple-500/20 bg-purple-500/10 px-4 py-2 text-white transition-colors hover:bg-purple-500/20">
|
|
628
|
+
<FileTextIcon className="h-4 w-4 text-purple-400" />
|
|
629
|
+
<span>Open Document</span>
|
|
630
|
+
</button>
|
|
631
|
+
</div>
|
|
632
|
+
<div className="flex items-center gap-4">
|
|
633
|
+
<div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2">
|
|
634
|
+
<FileTextIcon className="h-4 w-4 text-green-400" />
|
|
635
|
+
<span className="text-white/80">Document 1</span>
|
|
636
|
+
</div>
|
|
637
|
+
<div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2">
|
|
638
|
+
<FileTextIcon className="h-4 w-4 text-blue-400" />
|
|
639
|
+
<span className="text-white/80">Document 2</span>
|
|
640
|
+
</div>
|
|
641
|
+
</div>
|
|
642
|
+
</div>
|
|
643
|
+
),
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
export const Playground: Story = {
|
|
647
|
+
parameters: {
|
|
648
|
+
...storyParameters,
|
|
649
|
+
docs: {
|
|
650
|
+
description: {
|
|
651
|
+
story:
|
|
652
|
+
"Interactive playground to experiment with different FileTextIcon configurations.",
|
|
653
|
+
},
|
|
654
|
+
},
|
|
655
|
+
},
|
|
656
|
+
args: {
|
|
657
|
+
width: 32,
|
|
658
|
+
height: 32,
|
|
659
|
+
className: "text-blue-400",
|
|
660
|
+
},
|
|
661
|
+
render: (args) => (
|
|
662
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
663
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
664
|
+
<FileTextIcon {...args} />
|
|
665
|
+
</div>
|
|
666
|
+
</div>
|
|
667
|
+
),
|
|
668
|
+
}
|