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,23 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
|
+
|
|
4
|
+
export const MaintenanceIcon = (
|
|
5
|
+
props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
|
|
6
|
+
) => (
|
|
7
|
+
<AccessibleIcon label="Maintenance icon">
|
|
8
|
+
<svg
|
|
9
|
+
width="24"
|
|
10
|
+
height="24"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
fill="none"
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
{...props}
|
|
15
|
+
>
|
|
16
|
+
<path
|
|
17
|
+
d="M14.5694 16.1111C18.259 16.1111 21.25 13.1201 21.25 9.43056C21.25 8.66012 21.1196 7.92014 20.8796 7.23149L18.1667 9.94444C17.0314 11.0797 15.1908 11.0797 14.0556 9.94444C12.9203 8.80919 12.9203 6.96858 14.0556 5.83333L16.7685 3.12038C16.0799 2.88042 15.3399 2.75 14.5694 2.75C10.8799 2.75 7.88889 5.74099 7.88889 9.43056C7.88889 10.3416 8.07124 11.21 8.40145 12.0013L2.75 17.6528L6.34722 21.25L11.9987 15.5986C12.79 15.9288 13.6584 16.1111 14.5694 16.1111Z"
|
|
18
|
+
stroke="currentColor"
|
|
19
|
+
strokeWidth="1.5"
|
|
20
|
+
/>
|
|
21
|
+
</svg>
|
|
22
|
+
</AccessibleIcon>
|
|
23
|
+
)
|
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { MessageIcon } from "."
|
|
5
|
+
import { ArrowRightUpIcon } from "../arrow-right-up-icon"
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof MessageIcon> = {
|
|
8
|
+
title: "Icons/MessageIcon",
|
|
9
|
+
component: MessageIcon,
|
|
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:
|
|
23
|
+
"A message or chat bubble icon, ideal for messaging, comments, and communication interfaces.",
|
|
24
|
+
},
|
|
25
|
+
canvas: {
|
|
26
|
+
sourceState: "shown",
|
|
27
|
+
},
|
|
28
|
+
page: () => (
|
|
29
|
+
<>
|
|
30
|
+
<style>{`
|
|
31
|
+
.sbdocs-wrapper { padding: 0 !important; max-width: none !important; background: transparent !important; }
|
|
32
|
+
.sbdocs-content { max-width: none !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
|
|
33
|
+
.docs-story { background: transparent !important; }
|
|
34
|
+
.sbdocs { background: transparent !important; }
|
|
35
|
+
body { background: #0a0a0a !important; }
|
|
36
|
+
#storybook-docs { background: #0a0a0a !important; }
|
|
37
|
+
.sbdocs-preview { background: transparent !important; border: none !important; }
|
|
38
|
+
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 { color: white !important; }
|
|
39
|
+
.sbdocs-p, .sbdocs-li { color: rgba(255, 255, 255, 0.7) !important; }
|
|
40
|
+
.sbdocs-code { background: rgba(255, 255, 255, 0.1) !important; color: rgba(168, 85, 247, 1) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }
|
|
41
|
+
.sbdocs-pre { background: rgba(0, 0, 0, 0.4) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }
|
|
42
|
+
.sbdocs-table { background: rgba(255, 255, 255, 0.05) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }
|
|
43
|
+
.sbdocs-table th { background: rgba(255, 255, 255, 0.05) !important; color: white !important; border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; }
|
|
44
|
+
.sbdocs-table td { color: rgba(255, 255, 255, 0.7) !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; }
|
|
45
|
+
`}</style>
|
|
46
|
+
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-purple-900/20 to-gray-900">
|
|
47
|
+
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
48
|
+
<div className="absolute inset-0 bg-gradient-to-r from-purple-500/10 via-transparent to-blue-500/10" />
|
|
49
|
+
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
50
|
+
<div className="!space-y-6 text-center">
|
|
51
|
+
<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">
|
|
52
|
+
<MessageIcon className="h-12 w-12 text-blue-400" />
|
|
53
|
+
</div>
|
|
54
|
+
<h1 className="text-5xl font-bold !text-white">
|
|
55
|
+
MessageIcon
|
|
56
|
+
</h1>
|
|
57
|
+
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
58
|
+
A message or chat bubble icon, ideal for messaging,
|
|
59
|
+
comments, and communication interfaces.
|
|
60
|
+
</p>
|
|
61
|
+
<div className="mx-auto flex items-center justify-center gap-8">
|
|
62
|
+
<div className="text-center">
|
|
63
|
+
<div className="text-3xl font-bold text-blue-300">
|
|
64
|
+
Chat
|
|
65
|
+
</div>
|
|
66
|
+
<div className="text-sm text-white/80">Conversations</div>
|
|
67
|
+
</div>
|
|
68
|
+
<div className="h-8 w-px bg-white/20" />
|
|
69
|
+
<div className="text-center">
|
|
70
|
+
<div className="text-3xl font-bold text-indigo-300">
|
|
71
|
+
Comments
|
|
72
|
+
</div>
|
|
73
|
+
<div className="text-sm text-white/80">Feedback</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div className="h-8 w-px bg-white/20" />
|
|
76
|
+
<div className="text-center">
|
|
77
|
+
<div className="text-3xl font-bold text-cyan-300">
|
|
78
|
+
Accessible
|
|
79
|
+
</div>
|
|
80
|
+
<div className="text-sm text-white/80">
|
|
81
|
+
Screen reader support
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
89
|
+
<div className="!space-y-8">
|
|
90
|
+
<h3 className="text-center text-2xl font-bold !text-white">
|
|
91
|
+
Key Features
|
|
92
|
+
</h3>
|
|
93
|
+
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
94
|
+
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
95
|
+
<div className="text-3xl">💬</div>
|
|
96
|
+
<h4 className="text-lg font-semibold !text-white">
|
|
97
|
+
Message Bubble
|
|
98
|
+
</h4>
|
|
99
|
+
<p className="text-sm !text-white/80">
|
|
100
|
+
Represents chat, comments, and communication
|
|
101
|
+
</p>
|
|
102
|
+
</div>
|
|
103
|
+
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
104
|
+
<div className="text-3xl">♿</div>
|
|
105
|
+
<h4 className="text-lg font-semibold !text-white">
|
|
106
|
+
Accessibility
|
|
107
|
+
</h4>
|
|
108
|
+
<p className="text-sm !text-white/80">
|
|
109
|
+
Built with screen reader support
|
|
110
|
+
</p>
|
|
111
|
+
</div>
|
|
112
|
+
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
113
|
+
<div className="text-3xl">🎨</div>
|
|
114
|
+
<h4 className="text-lg font-semibold !text-white">
|
|
115
|
+
Customizable
|
|
116
|
+
</h4>
|
|
117
|
+
<p className="text-sm !text-white/80">
|
|
118
|
+
Flexible styling options
|
|
119
|
+
</p>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
<div className="!space-y-8">
|
|
124
|
+
<h3 className="text-center text-2xl font-bold !text-white">
|
|
125
|
+
API Reference
|
|
126
|
+
</h3>
|
|
127
|
+
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
128
|
+
<div className="bg-white/5 p-4">
|
|
129
|
+
<h4 className="text-lg font-semibold !text-white">Props</h4>
|
|
130
|
+
</div>
|
|
131
|
+
<table className="!my-0 w-full">
|
|
132
|
+
<thead className="bg-white/5">
|
|
133
|
+
<tr className="border-b border-white/10">
|
|
134
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
135
|
+
Prop
|
|
136
|
+
</th>
|
|
137
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
138
|
+
Type
|
|
139
|
+
</th>
|
|
140
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
141
|
+
Default
|
|
142
|
+
</th>
|
|
143
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
144
|
+
Description
|
|
145
|
+
</th>
|
|
146
|
+
</tr>
|
|
147
|
+
</thead>
|
|
148
|
+
<tbody>
|
|
149
|
+
<tr className="border-b border-white/5">
|
|
150
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
151
|
+
className
|
|
152
|
+
</td>
|
|
153
|
+
<td className="px-6 py-4 text-sm !text-white/80">
|
|
154
|
+
string
|
|
155
|
+
</td>
|
|
156
|
+
<td className="px-6 py-4 text-sm !text-white/60">-</td>
|
|
157
|
+
<td className="px-6 py-4 text-sm !text-white/80">
|
|
158
|
+
Additional CSS classes
|
|
159
|
+
</td>
|
|
160
|
+
</tr>
|
|
161
|
+
</tbody>
|
|
162
|
+
</table>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
<div className="!space-y-8">
|
|
166
|
+
<h3 className="text-center text-2xl font-bold !text-white">
|
|
167
|
+
Usage Examples
|
|
168
|
+
</h3>
|
|
169
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
170
|
+
<div className="space-y-4">
|
|
171
|
+
<h4 className="text-lg font-semibold !text-blue-300">
|
|
172
|
+
Basic Usage
|
|
173
|
+
</h4>
|
|
174
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
175
|
+
<pre className="overflow-x-auto text-sm !text-green-300">{`import { MessageIcon } from "@/components/ui/icons/message-icon"
|
|
176
|
+
|
|
177
|
+
function ChatButton() {
|
|
178
|
+
return (
|
|
179
|
+
<button className="flex items-center gap-2">
|
|
180
|
+
<MessageIcon className="h-4 w-4 text-blue-400" />
|
|
181
|
+
<span>Send Message</span>
|
|
182
|
+
</button>
|
|
183
|
+
)
|
|
184
|
+
}`}</pre>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
<div className="space-y-4">
|
|
188
|
+
<h4 className="text-lg font-semibold !text-blue-300">
|
|
189
|
+
Live Preview
|
|
190
|
+
</h4>
|
|
191
|
+
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
192
|
+
<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">
|
|
193
|
+
<MessageIcon className="h-4 w-4 text-blue-400" />
|
|
194
|
+
<span>Send Message</span>
|
|
195
|
+
</button>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
<div className="!space-y-8">
|
|
201
|
+
<h3 className="text-center text-2xl font-bold !text-white">
|
|
202
|
+
Size Examples
|
|
203
|
+
</h3>
|
|
204
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
205
|
+
<div className="!space-y-6">
|
|
206
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
207
|
+
<div className="!space-y-4">
|
|
208
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
209
|
+
Standard Sizes
|
|
210
|
+
</h3>
|
|
211
|
+
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
212
|
+
<div className="text-center">
|
|
213
|
+
<MessageIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
214
|
+
<span className="text-xs text-white/60">12px</span>
|
|
215
|
+
</div>
|
|
216
|
+
<div className="text-center">
|
|
217
|
+
<MessageIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
218
|
+
<span className="text-xs text-white/60">16px</span>
|
|
219
|
+
</div>
|
|
220
|
+
<div className="text-center">
|
|
221
|
+
<MessageIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
222
|
+
<span className="text-xs text-white/60">20px</span>
|
|
223
|
+
</div>
|
|
224
|
+
<div className="text-center">
|
|
225
|
+
<MessageIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
226
|
+
<span className="text-xs text-white/60">24px</span>
|
|
227
|
+
</div>
|
|
228
|
+
<div className="text-center">
|
|
229
|
+
<MessageIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
230
|
+
<span className="text-xs text-white/60">32px</span>
|
|
231
|
+
</div>
|
|
232
|
+
<div className="text-center">
|
|
233
|
+
<MessageIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
234
|
+
<span className="text-xs text-white/60">48px</span>
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
</div>
|
|
238
|
+
<div className="!space-y-4">
|
|
239
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
240
|
+
Code Example
|
|
241
|
+
</h3>
|
|
242
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
243
|
+
<pre className="overflow-x-auto text-sm !text-green-300">{`// Small (16px)
|
|
244
|
+
<MessageIcon className="h-4 w-4" />
|
|
245
|
+
|
|
246
|
+
// Medium (24px)
|
|
247
|
+
<MessageIcon className="h-6 w-6" />
|
|
248
|
+
|
|
249
|
+
// Large (32px)
|
|
250
|
+
<MessageIcon className="h-8 w-8" />
|
|
251
|
+
|
|
252
|
+
// Custom size
|
|
253
|
+
<MessageIcon width={40} height={40} />`}</pre>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
<div className="!space-y-8">
|
|
261
|
+
<h3 className="text-center text-2xl font-bold !text-white">
|
|
262
|
+
Common Use Cases
|
|
263
|
+
</h3>
|
|
264
|
+
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
265
|
+
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
266
|
+
<div className="text-2xl">💬</div>
|
|
267
|
+
<h4 className="text-lg font-semibold !text-white">
|
|
268
|
+
Messaging
|
|
269
|
+
</h4>
|
|
270
|
+
<p className="text-sm !text-white/80">
|
|
271
|
+
Chat and messaging UIs
|
|
272
|
+
</p>
|
|
273
|
+
</div>
|
|
274
|
+
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
275
|
+
<div className="text-2xl">🗨️</div>
|
|
276
|
+
<h4 className="text-lg font-semibold !text-white">
|
|
277
|
+
Comments
|
|
278
|
+
</h4>
|
|
279
|
+
<p className="text-sm !text-white/80">
|
|
280
|
+
Comment sections and feedback
|
|
281
|
+
</p>
|
|
282
|
+
</div>
|
|
283
|
+
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
284
|
+
<div className="text-2xl">📱</div>
|
|
285
|
+
<h4 className="text-lg font-semibold !text-white">
|
|
286
|
+
Mobile Apps
|
|
287
|
+
</h4>
|
|
288
|
+
<p className="text-sm !text-white/80">
|
|
289
|
+
Communication features in apps
|
|
290
|
+
</p>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
<div className="!space-y-8">
|
|
295
|
+
<h3 className="text-center text-2xl font-bold !text-white">
|
|
296
|
+
Best Practices
|
|
297
|
+
</h3>
|
|
298
|
+
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
299
|
+
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
300
|
+
<h4 className="text-lg font-semibold !text-emerald-300">
|
|
301
|
+
✅ Do
|
|
302
|
+
</h4>
|
|
303
|
+
<ul className="space-y-2 text-sm !text-white/80">
|
|
304
|
+
<li className="!text-white/80">
|
|
305
|
+
Use appropriate sizes for different contexts
|
|
306
|
+
</li>
|
|
307
|
+
<li className="!text-white/80">
|
|
308
|
+
Choose colors that match your UI theme
|
|
309
|
+
</li>
|
|
310
|
+
<li className="!text-white/80">
|
|
311
|
+
Provide clear labels for icon buttons
|
|
312
|
+
</li>
|
|
313
|
+
<li className="!text-white/80">
|
|
314
|
+
Use consistent styling across your app
|
|
315
|
+
</li>
|
|
316
|
+
<li className="!text-white/80">
|
|
317
|
+
Consider accessibility in all implementations
|
|
318
|
+
</li>
|
|
319
|
+
</ul>
|
|
320
|
+
</div>
|
|
321
|
+
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
322
|
+
<h4 className="text-lg font-semibold !text-red-300">
|
|
323
|
+
❌ Don't
|
|
324
|
+
</h4>
|
|
325
|
+
<ul className="space-y-2 text-sm !text-white/80">
|
|
326
|
+
<li className="!text-white/80">
|
|
327
|
+
Use multiple icon styles in the same view
|
|
328
|
+
</li>
|
|
329
|
+
<li className="!text-white/80">
|
|
330
|
+
Overuse the icon in navigation
|
|
331
|
+
</li>
|
|
332
|
+
<li className="!text-white/80">
|
|
333
|
+
Use inappropriate sizes for the context
|
|
334
|
+
</li>
|
|
335
|
+
<li className="!text-white/80">
|
|
336
|
+
Forget to add hover states
|
|
337
|
+
</li>
|
|
338
|
+
<li className="!text-white/80">
|
|
339
|
+
Ignore accessibility requirements
|
|
340
|
+
</li>
|
|
341
|
+
</ul>
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
344
|
+
</div>
|
|
345
|
+
</div>
|
|
346
|
+
<div className="!space-y-8 p-7">
|
|
347
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
348
|
+
Related Icons
|
|
349
|
+
</h2>
|
|
350
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
351
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
352
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
353
|
+
<ArrowRightUpIcon className="h-6 w-6 rotate-90 text-blue-400" />
|
|
354
|
+
</div>
|
|
355
|
+
<div>
|
|
356
|
+
<div className="font-medium text-white">
|
|
357
|
+
ArrowRightDownIcon
|
|
358
|
+
</div>
|
|
359
|
+
<div className="text-xs text-white/60">
|
|
360
|
+
Download/decrease
|
|
361
|
+
</div>
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
365
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
|
|
366
|
+
<ArrowRightUpIcon className="h-6 w-6 -rotate-90 text-cyan-400" />
|
|
367
|
+
</div>
|
|
368
|
+
<div>
|
|
369
|
+
<div className="font-medium text-white">
|
|
370
|
+
ArrowLeftUpIcon
|
|
371
|
+
</div>
|
|
372
|
+
<div className="text-xs text-white/60">Back and up</div>
|
|
373
|
+
</div>
|
|
374
|
+
</div>
|
|
375
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
376
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
377
|
+
<span className="text-2xl">↗️</span>
|
|
378
|
+
</div>
|
|
379
|
+
<div>
|
|
380
|
+
<div className="font-medium text-white">
|
|
381
|
+
ExternalLinkIcon
|
|
382
|
+
</div>
|
|
383
|
+
<div className="text-xs text-white/60">
|
|
384
|
+
Alternative style
|
|
385
|
+
</div>
|
|
386
|
+
</div>
|
|
387
|
+
</div>
|
|
388
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
389
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
390
|
+
<span className="text-2xl">📈</span>
|
|
391
|
+
</div>
|
|
392
|
+
<div>
|
|
393
|
+
<div className="font-medium text-white">TrendingUpIcon</div>
|
|
394
|
+
<div className="text-xs text-white/60">Growth metrics</div>
|
|
395
|
+
</div>
|
|
396
|
+
</div>
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
400
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
401
|
+
<div className="!space-y-4 text-center">
|
|
402
|
+
<p className="!text-white/60">
|
|
403
|
+
MessageIcon is part of the Aural UI icon library, designed
|
|
404
|
+
for chat, comments, and communication interfaces.
|
|
405
|
+
</p>
|
|
406
|
+
<p className="text-sm !text-white/40">
|
|
407
|
+
Perfect for messaging apps, comment sections, and any
|
|
408
|
+
interface requiring a message or chat bubble representation.
|
|
409
|
+
</p>
|
|
410
|
+
</div>
|
|
411
|
+
</div>
|
|
412
|
+
</div>
|
|
413
|
+
</div>
|
|
414
|
+
</>
|
|
415
|
+
),
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
tags: ["autodocs"],
|
|
419
|
+
argTypes: {
|
|
420
|
+
width: {
|
|
421
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
422
|
+
description: "Width of the icon in pixels",
|
|
423
|
+
},
|
|
424
|
+
height: {
|
|
425
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
426
|
+
description: "Height of the icon in pixels",
|
|
427
|
+
},
|
|
428
|
+
className: {
|
|
429
|
+
control: "text",
|
|
430
|
+
description: "CSS classes for styling",
|
|
431
|
+
},
|
|
432
|
+
},
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export default meta
|
|
436
|
+
type Story = StoryObj<typeof MessageIcon>
|
|
437
|
+
|
|
438
|
+
const storyParameters = {
|
|
439
|
+
backgrounds: {
|
|
440
|
+
default: "dark",
|
|
441
|
+
values: [
|
|
442
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
443
|
+
{ name: "darker", value: "#000000" },
|
|
444
|
+
],
|
|
445
|
+
},
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export const Default: Story = {
|
|
449
|
+
args: {
|
|
450
|
+
width: 24,
|
|
451
|
+
height: 24,
|
|
452
|
+
className: "text-blue-400",
|
|
453
|
+
},
|
|
454
|
+
parameters: storyParameters,
|
|
455
|
+
render: (args) => (
|
|
456
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
457
|
+
<MessageIcon {...args} />
|
|
458
|
+
</div>
|
|
459
|
+
),
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export const SizeVariations: Story = {
|
|
463
|
+
parameters: {
|
|
464
|
+
...storyParameters,
|
|
465
|
+
docs: {
|
|
466
|
+
description: {
|
|
467
|
+
story:
|
|
468
|
+
"MessageIcon in different sizes, from small inline buttons to large call-to-action elements.",
|
|
469
|
+
},
|
|
470
|
+
},
|
|
471
|
+
},
|
|
472
|
+
render: () => (
|
|
473
|
+
<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">
|
|
474
|
+
<div className="text-center">
|
|
475
|
+
<MessageIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
476
|
+
<span className="text-xs text-white/60">12px</span>
|
|
477
|
+
</div>
|
|
478
|
+
<div className="text-center">
|
|
479
|
+
<MessageIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
480
|
+
<span className="text-xs text-white/60">16px</span>
|
|
481
|
+
</div>
|
|
482
|
+
<div className="text-center">
|
|
483
|
+
<MessageIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
484
|
+
<span className="text-xs text-white/60">20px</span>
|
|
485
|
+
</div>
|
|
486
|
+
<div className="text-center">
|
|
487
|
+
<MessageIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
488
|
+
<span className="text-xs text-white/60">24px</span>
|
|
489
|
+
</div>
|
|
490
|
+
<div className="text-center">
|
|
491
|
+
<MessageIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
492
|
+
<span className="text-xs text-white/60">32px</span>
|
|
493
|
+
</div>
|
|
494
|
+
<div className="text-center">
|
|
495
|
+
<MessageIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
496
|
+
<span className="text-xs text-white/60">48px</span>
|
|
497
|
+
</div>
|
|
498
|
+
</div>
|
|
499
|
+
),
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
export const ColorVariations: Story = {
|
|
503
|
+
parameters: {
|
|
504
|
+
...storyParameters,
|
|
505
|
+
docs: {
|
|
506
|
+
description: {
|
|
507
|
+
story:
|
|
508
|
+
"MessageIcon with different color variations using Tailwind classes.",
|
|
509
|
+
},
|
|
510
|
+
},
|
|
511
|
+
},
|
|
512
|
+
render: () => (
|
|
513
|
+
<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">
|
|
514
|
+
<div className="text-center">
|
|
515
|
+
<MessageIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
516
|
+
<span className="text-xs text-white/60">Blue</span>
|
|
517
|
+
</div>
|
|
518
|
+
<div className="text-center">
|
|
519
|
+
<MessageIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
|
|
520
|
+
<span className="text-xs text-white/60">Purple</span>
|
|
521
|
+
</div>
|
|
522
|
+
<div className="text-center">
|
|
523
|
+
<MessageIcon className="!mx-auto mb-2 h-6 w-6 text-green-400" />
|
|
524
|
+
<span className="text-xs text-white/60">Green</span>
|
|
525
|
+
</div>
|
|
526
|
+
<div className="text-center">
|
|
527
|
+
<MessageIcon className="!mx-auto mb-2 h-6 w-6 text-red-400" />
|
|
528
|
+
<span className="text-xs text-white/60">Red</span>
|
|
529
|
+
</div>
|
|
530
|
+
<div className="text-center">
|
|
531
|
+
<MessageIcon className="!mx-auto mb-2 h-6 w-6 text-yellow-400" />
|
|
532
|
+
<span className="text-xs text-white/60">Yellow</span>
|
|
533
|
+
</div>
|
|
534
|
+
</div>
|
|
535
|
+
),
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export const UsageExamples: Story = {
|
|
539
|
+
parameters: {
|
|
540
|
+
...storyParameters,
|
|
541
|
+
docs: {
|
|
542
|
+
description: {
|
|
543
|
+
story: "Common usage examples of MessageIcon in different contexts.",
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
},
|
|
547
|
+
render: () => (
|
|
548
|
+
<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">
|
|
549
|
+
<div className="flex items-center gap-4">
|
|
550
|
+
<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">
|
|
551
|
+
<MessageIcon className="h-4 w-4 text-blue-400" />
|
|
552
|
+
<span>New Message</span>
|
|
553
|
+
</button>
|
|
554
|
+
<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">
|
|
555
|
+
<MessageIcon className="h-4 w-4 text-purple-400" />
|
|
556
|
+
<span>View Messages</span>
|
|
557
|
+
</button>
|
|
558
|
+
</div>
|
|
559
|
+
<div className="flex items-center gap-4">
|
|
560
|
+
<div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2">
|
|
561
|
+
<MessageIcon className="h-4 w-4 text-green-400" />
|
|
562
|
+
<span className="text-white/80">Unread Messages</span>
|
|
563
|
+
</div>
|
|
564
|
+
<div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2">
|
|
565
|
+
<MessageIcon className="h-4 w-4 text-blue-400" />
|
|
566
|
+
<span className="text-white/80">All Messages</span>
|
|
567
|
+
</div>
|
|
568
|
+
</div>
|
|
569
|
+
</div>
|
|
570
|
+
),
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
export const Playground: Story = {
|
|
574
|
+
parameters: {
|
|
575
|
+
...storyParameters,
|
|
576
|
+
docs: {
|
|
577
|
+
description: {
|
|
578
|
+
story:
|
|
579
|
+
"Interactive playground to experiment with different MessageIcon configurations.",
|
|
580
|
+
},
|
|
581
|
+
},
|
|
582
|
+
},
|
|
583
|
+
args: {
|
|
584
|
+
width: 32,
|
|
585
|
+
height: 32,
|
|
586
|
+
className: "text-blue-400",
|
|
587
|
+
},
|
|
588
|
+
render: (args) => (
|
|
589
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
590
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
591
|
+
<MessageIcon {...args} />
|
|
592
|
+
</div>
|
|
593
|
+
</div>
|
|
594
|
+
),
|
|
595
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
|
+
|
|
4
|
+
export const MessageIcon = (
|
|
5
|
+
props: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
|
|
6
|
+
) => (
|
|
7
|
+
<AccessibleIcon label="Message Icon">
|
|
8
|
+
<svg
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
width="18"
|
|
11
|
+
height="18"
|
|
12
|
+
viewBox="0 0 18 18"
|
|
13
|
+
fill="none"
|
|
14
|
+
{...props}
|
|
15
|
+
>
|
|
16
|
+
<path
|
|
17
|
+
d="M2.8125 2.81055H15.1875V13.6855H11.2616L8.99844 15.5605L6.76163 13.6855H2.8125V2.81055Z"
|
|
18
|
+
stroke="currentColor"
|
|
19
|
+
strokeWidth="1.5"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M6.12598 7.82324C6.41077 7.88153 6.625 8.13352 6.625 8.43555C6.625 8.78072 6.34518 9.06055 6 9.06055C5.65482 9.06055 5.375 8.78072 5.375 8.43555L5.3877 8.30957C5.44598 8.02478 5.69797 7.81055 6 7.81055L6.12598 7.82324ZM9 7.81055C9.34518 7.81055 9.625 8.09037 9.625 8.43555C9.625 8.78072 9.34518 9.06055 9 9.06055C8.65482 9.06055 8.375 8.78072 8.375 8.43555C8.375 8.09037 8.65482 7.81055 9 7.81055ZM12 7.81055C12.3452 7.81055 12.625 8.09037 12.625 8.43555C12.625 8.78072 12.3452 9.06055 12 9.06055C11.6548 9.06055 11.375 8.78072 11.375 8.43555C11.375 8.09037 11.6548 7.81055 12 7.81055Z"
|
|
23
|
+
fill="currentColor"
|
|
24
|
+
stroke="currentColor"
|
|
25
|
+
strokeWidth="0.5"
|
|
26
|
+
strokeLinecap="square"
|
|
27
|
+
/>
|
|
28
|
+
</svg>
|
|
29
|
+
</AccessibleIcon>
|
|
30
|
+
)
|