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,1204 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { TickCircleIcon } from "."
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof TickCircleIcon> = {
|
|
7
|
+
title: "Icons/TickCircleIcon",
|
|
8
|
+
component: TickCircleIcon,
|
|
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 !important;
|
|
27
|
+
max-width: none !important;
|
|
28
|
+
background: transparent !important;
|
|
29
|
+
}
|
|
30
|
+
.sbdocs-content {
|
|
31
|
+
max-width: none !important;
|
|
32
|
+
padding: 0 !important;
|
|
33
|
+
margin: 0 !important;
|
|
34
|
+
background: transparent !important;
|
|
35
|
+
}
|
|
36
|
+
.docs-story {
|
|
37
|
+
background: transparent !important;
|
|
38
|
+
}
|
|
39
|
+
.sbdocs {
|
|
40
|
+
background: transparent !important;
|
|
41
|
+
}
|
|
42
|
+
body {
|
|
43
|
+
background: #0a0a0a !important;
|
|
44
|
+
}
|
|
45
|
+
#storybook-docs {
|
|
46
|
+
background: #0a0a0a !important;
|
|
47
|
+
}
|
|
48
|
+
.sbdocs-preview {
|
|
49
|
+
background: transparent !important;
|
|
50
|
+
border: none !important;
|
|
51
|
+
}
|
|
52
|
+
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
+
color: white !important;
|
|
54
|
+
}
|
|
55
|
+
.sbdocs-p, .sbdocs-li {
|
|
56
|
+
color: rgba(255, 255, 255, 0.7) !important;
|
|
57
|
+
}
|
|
58
|
+
.sbdocs-code {
|
|
59
|
+
background: rgba(255, 255, 255, 0.1) !important;
|
|
60
|
+
color: rgba(168, 85, 247, 1) !important;
|
|
61
|
+
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
62
|
+
}
|
|
63
|
+
.sbdocs-pre {
|
|
64
|
+
background: rgba(0, 0, 0, 0.4) !important;
|
|
65
|
+
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
66
|
+
}
|
|
67
|
+
.sbdocs-table {
|
|
68
|
+
background: rgba(255, 255, 255, 0.05) !important;
|
|
69
|
+
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
70
|
+
}
|
|
71
|
+
.sbdocs-table th {
|
|
72
|
+
background: rgba(255, 255, 255, 0.05) !important;
|
|
73
|
+
color: white !important;
|
|
74
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
75
|
+
}
|
|
76
|
+
.sbdocs-table td {
|
|
77
|
+
color: rgba(255, 255, 255, 0.7) !important;
|
|
78
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
|
|
79
|
+
}
|
|
80
|
+
@keyframes tick-bounce {
|
|
81
|
+
0%, 100% { transform: scale(1); }
|
|
82
|
+
50% { transform: scale(1.1); }
|
|
83
|
+
}
|
|
84
|
+
.animate-tick-bounce {
|
|
85
|
+
animation: tick-bounce 0.6s ease-in-out;
|
|
86
|
+
}
|
|
87
|
+
@keyframes tick-pulse {
|
|
88
|
+
0%, 100% { transform: scale(1); opacity: 1; }
|
|
89
|
+
50% { transform: scale(1.05); opacity: 0.8; }
|
|
90
|
+
}
|
|
91
|
+
.animate-tick-pulse {
|
|
92
|
+
animation: tick-pulse 2s ease-in-out infinite;
|
|
93
|
+
}
|
|
94
|
+
`}
|
|
95
|
+
</style>
|
|
96
|
+
|
|
97
|
+
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-green-900/20 to-gray-900">
|
|
98
|
+
{/* Header */}
|
|
99
|
+
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
100
|
+
<div className="absolute inset-0 bg-gradient-to-r from-green-500/10 via-transparent to-emerald-500/10" />
|
|
101
|
+
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
102
|
+
<div className="!space-y-6 text-center">
|
|
103
|
+
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-green-500/30 bg-gradient-to-br from-green-500/20 to-emerald-500/20">
|
|
104
|
+
<TickCircleIcon className="h-12 w-12 text-green-400" />
|
|
105
|
+
</div>
|
|
106
|
+
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
107
|
+
TickCircleIcon
|
|
108
|
+
</h1>
|
|
109
|
+
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
110
|
+
A success and completion icon featuring a checkmark inside a
|
|
111
|
+
circle. Perfect for confirmations, completed tasks, success
|
|
112
|
+
states, and positive feedback. Built with accessibility in
|
|
113
|
+
mind using Radix UI's AccessibleIcon wrapper.
|
|
114
|
+
</p>
|
|
115
|
+
|
|
116
|
+
{/* Stats */}
|
|
117
|
+
<div className="flex items-center justify-center gap-8 pt-8">
|
|
118
|
+
<div className="text-center">
|
|
119
|
+
<div className="text-3xl font-bold text-green-300">
|
|
120
|
+
Success
|
|
121
|
+
</div>
|
|
122
|
+
<div className="text-sm text-white/60">
|
|
123
|
+
Positive feedback
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div className="h-8 w-px bg-white/20" />
|
|
127
|
+
<div className="text-center">
|
|
128
|
+
<div className="text-3xl font-bold text-emerald-300">
|
|
129
|
+
Complete
|
|
130
|
+
</div>
|
|
131
|
+
<div className="text-sm text-white/60">
|
|
132
|
+
Task completion
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
<div className="h-8 w-px bg-white/20" />
|
|
136
|
+
<div className="text-center">
|
|
137
|
+
<div className="text-3xl font-bold text-teal-300">
|
|
138
|
+
Verified
|
|
139
|
+
</div>
|
|
140
|
+
<div className="text-sm text-white/60">
|
|
141
|
+
Confirmation states
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
|
|
149
|
+
{/* Content */}
|
|
150
|
+
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
151
|
+
{/* Quick Usage */}
|
|
152
|
+
<div className="!space-y-8">
|
|
153
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
154
|
+
Quick Start
|
|
155
|
+
</h2>
|
|
156
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
157
|
+
<div className="!space-y-4">
|
|
158
|
+
<h3 className="text-xl font-semibold !text-green-300">
|
|
159
|
+
Basic Usage
|
|
160
|
+
</h3>
|
|
161
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
162
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
163
|
+
{`import { TickCircleIcon } from "@icons/tick-circle-icon"
|
|
164
|
+
|
|
165
|
+
function SuccessMessage() {
|
|
166
|
+
return (
|
|
167
|
+
<div className="flex items-center gap-2">
|
|
168
|
+
<TickCircleIcon className="h-5 w-5 text-green-500" />
|
|
169
|
+
<span>Task completed successfully!</span>
|
|
170
|
+
</div>
|
|
171
|
+
)
|
|
172
|
+
}`}
|
|
173
|
+
</pre>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
|
|
177
|
+
<div className="!space-y-4">
|
|
178
|
+
<h3 className="text-xl font-semibold !text-green-300">
|
|
179
|
+
Live Preview
|
|
180
|
+
</h3>
|
|
181
|
+
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
182
|
+
<div className="flex items-center gap-3 rounded-lg border border-green-500/20 bg-green-500/10 px-4 py-2">
|
|
183
|
+
<TickCircleIcon className="h-5 w-5 text-green-400" />
|
|
184
|
+
<span className="text-white">
|
|
185
|
+
Task completed successfully!
|
|
186
|
+
</span>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
|
|
193
|
+
{/* Props Documentation */}
|
|
194
|
+
<div className="!space-y-8">
|
|
195
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
196
|
+
Props & Configuration
|
|
197
|
+
</h2>
|
|
198
|
+
|
|
199
|
+
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
200
|
+
<div className="bg-white/5 p-4">
|
|
201
|
+
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
202
|
+
</div>
|
|
203
|
+
<table className="!my-0 w-full">
|
|
204
|
+
<thead className="bg-white/5">
|
|
205
|
+
<tr className="border-b border-white/10">
|
|
206
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
207
|
+
Prop
|
|
208
|
+
</th>
|
|
209
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
210
|
+
Type
|
|
211
|
+
</th>
|
|
212
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
213
|
+
Default
|
|
214
|
+
</th>
|
|
215
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
216
|
+
Description
|
|
217
|
+
</th>
|
|
218
|
+
</tr>
|
|
219
|
+
</thead>
|
|
220
|
+
<tbody>
|
|
221
|
+
<tr className="border-b border-white/5">
|
|
222
|
+
<td className="px-6 py-4 font-mono text-sm !text-green-300">
|
|
223
|
+
width
|
|
224
|
+
</td>
|
|
225
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
226
|
+
number | string
|
|
227
|
+
</td>
|
|
228
|
+
<td className="px-6 py-4 text-sm !text-white/50">16</td>
|
|
229
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
230
|
+
Width of the icon in pixels
|
|
231
|
+
</td>
|
|
232
|
+
</tr>
|
|
233
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
234
|
+
<td className="px-6 py-4 font-mono text-sm !text-green-300">
|
|
235
|
+
height
|
|
236
|
+
</td>
|
|
237
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
238
|
+
number | string
|
|
239
|
+
</td>
|
|
240
|
+
<td className="px-6 py-4 text-sm !text-white/50">16</td>
|
|
241
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
242
|
+
Height of the icon in pixels
|
|
243
|
+
</td>
|
|
244
|
+
</tr>
|
|
245
|
+
<tr className="border-b border-white/5">
|
|
246
|
+
<td className="px-6 py-4 font-mono text-sm !text-green-300">
|
|
247
|
+
fill
|
|
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">
|
|
253
|
+
currentColor
|
|
254
|
+
</td>
|
|
255
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
256
|
+
Fill color of the icon
|
|
257
|
+
</td>
|
|
258
|
+
</tr>
|
|
259
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
260
|
+
<td className="px-6 py-4 font-mono text-sm !text-green-300">
|
|
261
|
+
className
|
|
262
|
+
</td>
|
|
263
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
264
|
+
string
|
|
265
|
+
</td>
|
|
266
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
267
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
268
|
+
CSS classes for styling
|
|
269
|
+
</td>
|
|
270
|
+
</tr>
|
|
271
|
+
<tr className="border-b border-white/5">
|
|
272
|
+
<td className="px-6 py-4 font-mono text-sm !text-green-300">
|
|
273
|
+
viewBox
|
|
274
|
+
</td>
|
|
275
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
276
|
+
string
|
|
277
|
+
</td>
|
|
278
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
279
|
+
"0 0 16 16"
|
|
280
|
+
</td>
|
|
281
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
282
|
+
SVG viewBox for scaling
|
|
283
|
+
</td>
|
|
284
|
+
</tr>
|
|
285
|
+
<tr className="!bg-black/10">
|
|
286
|
+
<td className="px-6 py-4 font-mono text-sm !text-green-300">
|
|
287
|
+
...svgProps
|
|
288
|
+
</td>
|
|
289
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
290
|
+
SVGProps
|
|
291
|
+
</td>
|
|
292
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
293
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
294
|
+
All standard SVG element props
|
|
295
|
+
</td>
|
|
296
|
+
</tr>
|
|
297
|
+
</tbody>
|
|
298
|
+
</table>
|
|
299
|
+
</div>
|
|
300
|
+
</div>
|
|
301
|
+
|
|
302
|
+
{/* Size Variations */}
|
|
303
|
+
<div className="!space-y-8">
|
|
304
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
305
|
+
Size Variations
|
|
306
|
+
</h2>
|
|
307
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
308
|
+
<div className="!space-y-6">
|
|
309
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
310
|
+
<div className="!space-y-4">
|
|
311
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
312
|
+
Standard Sizes
|
|
313
|
+
</h3>
|
|
314
|
+
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
315
|
+
<div className="text-center">
|
|
316
|
+
<TickCircleIcon className="!mx-auto mb-2 h-3 w-3 text-green-400" />
|
|
317
|
+
<span className="text-xs text-white/60">12px</span>
|
|
318
|
+
</div>
|
|
319
|
+
<div className="text-center">
|
|
320
|
+
<TickCircleIcon className="!mx-auto mb-2 h-4 w-4 text-green-400" />
|
|
321
|
+
<span className="text-xs text-white/60">16px</span>
|
|
322
|
+
</div>
|
|
323
|
+
<div className="text-center">
|
|
324
|
+
<TickCircleIcon className="!mx-auto mb-2 h-5 w-5 text-green-400" />
|
|
325
|
+
<span className="text-xs text-white/60">20px</span>
|
|
326
|
+
</div>
|
|
327
|
+
<div className="text-center">
|
|
328
|
+
<TickCircleIcon className="!mx-auto mb-2 h-6 w-6 text-green-400" />
|
|
329
|
+
<span className="text-xs text-white/60">24px</span>
|
|
330
|
+
</div>
|
|
331
|
+
<div className="text-center">
|
|
332
|
+
<TickCircleIcon className="!mx-auto mb-2 h-8 w-8 text-green-400" />
|
|
333
|
+
<span className="text-xs text-white/60">32px</span>
|
|
334
|
+
</div>
|
|
335
|
+
<div className="text-center">
|
|
336
|
+
<TickCircleIcon className="!mx-auto mb-2 h-12 w-12 text-green-400" />
|
|
337
|
+
<span className="text-xs text-white/60">48px</span>
|
|
338
|
+
</div>
|
|
339
|
+
</div>
|
|
340
|
+
</div>
|
|
341
|
+
|
|
342
|
+
<div className="!space-y-4">
|
|
343
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
344
|
+
Code Example
|
|
345
|
+
</h3>
|
|
346
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
347
|
+
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
348
|
+
{`// Small (16px)
|
|
349
|
+
<TickCircleIcon className="h-4 w-4" />
|
|
350
|
+
|
|
351
|
+
// Medium (24px)
|
|
352
|
+
<TickCircleIcon className="h-6 w-6" />
|
|
353
|
+
|
|
354
|
+
// Large (32px)
|
|
355
|
+
<TickCircleIcon className="h-8 w-8" />
|
|
356
|
+
|
|
357
|
+
// Custom size
|
|
358
|
+
<TickCircleIcon width={40} height={40} />
|
|
359
|
+
|
|
360
|
+
// Responsive sizing
|
|
361
|
+
<TickCircleIcon className="h-4 w-4 md:h-6 md:w-6 lg:h-8 lg:w-8" />`}
|
|
362
|
+
</pre>
|
|
363
|
+
</div>
|
|
364
|
+
</div>
|
|
365
|
+
</div>
|
|
366
|
+
</div>
|
|
367
|
+
</div>
|
|
368
|
+
</div>
|
|
369
|
+
|
|
370
|
+
{/* Color Variations */}
|
|
371
|
+
<div className="!space-y-8">
|
|
372
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
373
|
+
Color Variations
|
|
374
|
+
</h2>
|
|
375
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
376
|
+
<div className="!space-y-4">
|
|
377
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
378
|
+
Semantic Colors
|
|
379
|
+
</h3>
|
|
380
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
381
|
+
<div className="flex items-center gap-4">
|
|
382
|
+
<TickCircleIcon className="h-6 w-6 text-green-400" />
|
|
383
|
+
<div>
|
|
384
|
+
<div className="text-sm font-medium text-white">
|
|
385
|
+
Success
|
|
386
|
+
</div>
|
|
387
|
+
<div className="text-xs text-white/60">
|
|
388
|
+
text-green-400
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
</div>
|
|
392
|
+
<div className="flex items-center gap-4">
|
|
393
|
+
<TickCircleIcon className="h-6 w-6 text-emerald-400" />
|
|
394
|
+
<div>
|
|
395
|
+
<div className="text-sm font-medium text-white">
|
|
396
|
+
Complete
|
|
397
|
+
</div>
|
|
398
|
+
<div className="text-xs text-white/60">
|
|
399
|
+
text-emerald-400
|
|
400
|
+
</div>
|
|
401
|
+
</div>
|
|
402
|
+
</div>
|
|
403
|
+
<div className="flex items-center gap-4">
|
|
404
|
+
<TickCircleIcon className="h-6 w-6 text-teal-400" />
|
|
405
|
+
<div>
|
|
406
|
+
<div className="text-sm font-medium text-white">
|
|
407
|
+
Verified
|
|
408
|
+
</div>
|
|
409
|
+
<div className="text-xs text-white/60">
|
|
410
|
+
text-teal-400
|
|
411
|
+
</div>
|
|
412
|
+
</div>
|
|
413
|
+
</div>
|
|
414
|
+
<div className="flex items-center gap-4">
|
|
415
|
+
<TickCircleIcon className="h-6 w-6 text-blue-400" />
|
|
416
|
+
<div>
|
|
417
|
+
<div className="text-sm font-medium text-white">
|
|
418
|
+
Info
|
|
419
|
+
</div>
|
|
420
|
+
<div className="text-xs text-white/60">
|
|
421
|
+
text-blue-400
|
|
422
|
+
</div>
|
|
423
|
+
</div>
|
|
424
|
+
</div>
|
|
425
|
+
</div>
|
|
426
|
+
</div>
|
|
427
|
+
|
|
428
|
+
<div className="!space-y-4">
|
|
429
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
430
|
+
Custom Colors
|
|
431
|
+
</h3>
|
|
432
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
433
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
434
|
+
{`// Using Tailwind classes
|
|
435
|
+
<TickCircleIcon className="h-6 w-6 text-green-400" />
|
|
436
|
+
<TickCircleIcon className="h-6 w-6 text-emerald-500" />
|
|
437
|
+
|
|
438
|
+
// Using CSS custom properties
|
|
439
|
+
<TickCircleIcon
|
|
440
|
+
className="h-6 w-6"
|
|
441
|
+
style={{ color: 'var(--color-success)' }}
|
|
442
|
+
/>
|
|
443
|
+
|
|
444
|
+
// Direct fill prop
|
|
445
|
+
<TickCircleIcon
|
|
446
|
+
width={24}
|
|
447
|
+
height={24}
|
|
448
|
+
fill="#10b981"
|
|
449
|
+
/>
|
|
450
|
+
|
|
451
|
+
// With opacity
|
|
452
|
+
<TickCircleIcon className="h-6 w-6 text-green-400 opacity-80" />`}
|
|
453
|
+
</pre>
|
|
454
|
+
</div>
|
|
455
|
+
</div>
|
|
456
|
+
</div>
|
|
457
|
+
</div>
|
|
458
|
+
|
|
459
|
+
{/* Usage Examples */}
|
|
460
|
+
<div className="!space-y-8">
|
|
461
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
462
|
+
Usage Examples
|
|
463
|
+
</h2>
|
|
464
|
+
|
|
465
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
466
|
+
{/* Success Message */}
|
|
467
|
+
<div className="!space-y-4">
|
|
468
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
469
|
+
Success Messages
|
|
470
|
+
</h3>
|
|
471
|
+
<div className="!space-y-4">
|
|
472
|
+
<div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
|
|
473
|
+
<div className="flex items-start gap-3">
|
|
474
|
+
<TickCircleIcon className="mt-0.5 h-5 w-5 flex-shrink-0 text-green-400" />
|
|
475
|
+
<div>
|
|
476
|
+
<h4 className="font-medium !text-green-200">
|
|
477
|
+
Account Created Successfully
|
|
478
|
+
</h4>
|
|
479
|
+
<p className="text-sm !text-green-300/80">
|
|
480
|
+
Welcome to Aural UI! Your account has been set up
|
|
481
|
+
and you're ready to start building.
|
|
482
|
+
</p>
|
|
483
|
+
</div>
|
|
484
|
+
</div>
|
|
485
|
+
</div>
|
|
486
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
487
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
488
|
+
{`<div className="border border-green-500/20 bg-green-500/10 p-4 rounded-lg">
|
|
489
|
+
<div className="flex items-start gap-3">
|
|
490
|
+
<TickCircleIcon className="h-5 w-5 text-green-400 mt-0.5 flex-shrink-0" />
|
|
491
|
+
<div>
|
|
492
|
+
<h4 className="font-medium text-green-200">Account Created Successfully</h4>
|
|
493
|
+
<p className="text-sm text-green-300/80">
|
|
494
|
+
Welcome to Aural UI! Your account has been set up and you're ready to start building.
|
|
495
|
+
</p>
|
|
496
|
+
</div>
|
|
497
|
+
</div>
|
|
498
|
+
</div>`}
|
|
499
|
+
</pre>
|
|
500
|
+
</div>
|
|
501
|
+
</div>
|
|
502
|
+
</div>
|
|
503
|
+
|
|
504
|
+
{/* Task Completion */}
|
|
505
|
+
<div className="!space-y-4">
|
|
506
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
507
|
+
Task Completion
|
|
508
|
+
</h3>
|
|
509
|
+
<div className="!space-y-4">
|
|
510
|
+
<div className="!space-y-3">
|
|
511
|
+
<div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
|
|
512
|
+
<TickCircleIcon className="h-5 w-5 text-green-400" />
|
|
513
|
+
<span className="flex-1 text-white">
|
|
514
|
+
Set up project repository
|
|
515
|
+
</span>
|
|
516
|
+
<span className="text-xs text-green-400">
|
|
517
|
+
Completed
|
|
518
|
+
</span>
|
|
519
|
+
</div>
|
|
520
|
+
<div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
|
|
521
|
+
<TickCircleIcon className="h-5 w-5 text-green-400" />
|
|
522
|
+
<span className="flex-1 text-white">
|
|
523
|
+
Install dependencies
|
|
524
|
+
</span>
|
|
525
|
+
<span className="text-xs text-green-400">
|
|
526
|
+
Completed
|
|
527
|
+
</span>
|
|
528
|
+
</div>
|
|
529
|
+
<div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3 opacity-50">
|
|
530
|
+
<div className="h-5 w-5 rounded-full border-2 border-white/30"></div>
|
|
531
|
+
<span className="flex-1 text-white/70">
|
|
532
|
+
Configure development environment
|
|
533
|
+
</span>
|
|
534
|
+
<span className="text-xs text-white/50">Pending</span>
|
|
535
|
+
</div>
|
|
536
|
+
</div>
|
|
537
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
538
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
539
|
+
{`// Completed task
|
|
540
|
+
<div className="flex items-center gap-3 p-3 border border-white/10 bg-white/5 rounded-lg">
|
|
541
|
+
<TickCircleIcon className="h-5 w-5 text-green-400" />
|
|
542
|
+
<span className="flex-1 text-white">Set up project repository</span>
|
|
543
|
+
<span className="text-xs text-green-400">Completed</span>
|
|
544
|
+
</div>
|
|
545
|
+
|
|
546
|
+
// Pending task
|
|
547
|
+
<div className="flex items-center gap-3 p-3 border border-white/10 bg-white/5 rounded-lg opacity-50">
|
|
548
|
+
<div className="h-5 w-5 rounded-full border-2 border-white/30"></div>
|
|
549
|
+
<span className="flex-1 text-white/70">Configure development environment</span>
|
|
550
|
+
<span className="text-xs text-white/50">Pending</span>
|
|
551
|
+
</div>`}
|
|
552
|
+
</pre>
|
|
553
|
+
</div>
|
|
554
|
+
</div>
|
|
555
|
+
</div>
|
|
556
|
+
|
|
557
|
+
{/* Form Validation */}
|
|
558
|
+
<div className="!space-y-4">
|
|
559
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
560
|
+
Form Validation
|
|
561
|
+
</h3>
|
|
562
|
+
<div className="!space-y-4">
|
|
563
|
+
<div className="!space-y-2">
|
|
564
|
+
<label className="text-sm font-medium !text-white">
|
|
565
|
+
Email Address
|
|
566
|
+
</label>
|
|
567
|
+
<div className="relative">
|
|
568
|
+
<input
|
|
569
|
+
type="email"
|
|
570
|
+
className="w-full rounded-lg border border-green-500/50 bg-white/5 px-3 py-2 pr-10 !text-white focus:border-green-500 focus:ring-2 focus:ring-green-500/20"
|
|
571
|
+
placeholder="Enter your email"
|
|
572
|
+
defaultValue="user@example.com"
|
|
573
|
+
/>
|
|
574
|
+
<TickCircleIcon className="absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 text-green-400" />
|
|
575
|
+
</div>
|
|
576
|
+
<div className="flex items-center gap-2 text-sm text-green-400">
|
|
577
|
+
<TickCircleIcon className="h-4 w-4" />
|
|
578
|
+
<span>Valid email address</span>
|
|
579
|
+
</div>
|
|
580
|
+
</div>
|
|
581
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
582
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
583
|
+
{`// Input with validation icon
|
|
584
|
+
<div className="relative">
|
|
585
|
+
<input className="pr-10 border-green-500/50" />
|
|
586
|
+
<TickCircleIcon className="absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-green-400" />
|
|
587
|
+
</div>
|
|
588
|
+
|
|
589
|
+
// Success message
|
|
590
|
+
<div className="flex items-center gap-2 text-sm text-green-400">
|
|
591
|
+
<TickCircleIcon className="h-4 w-4" />
|
|
592
|
+
<span>Valid email address</span>
|
|
593
|
+
</div>`}
|
|
594
|
+
</pre>
|
|
595
|
+
</div>
|
|
596
|
+
</div>
|
|
597
|
+
</div>
|
|
598
|
+
|
|
599
|
+
{/* Button States */}
|
|
600
|
+
<div className="!space-y-4">
|
|
601
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
602
|
+
Button States
|
|
603
|
+
</h3>
|
|
604
|
+
<div className="!space-y-4">
|
|
605
|
+
<div className="flex gap-4">
|
|
606
|
+
<button className="flex items-center gap-2 rounded-lg border border-green-500/30 bg-green-500/20 px-4 py-2 text-green-200 transition-colors hover:bg-green-500/30">
|
|
607
|
+
<TickCircleIcon className="h-4 w-4" />
|
|
608
|
+
Mark Complete
|
|
609
|
+
</button>
|
|
610
|
+
<button
|
|
611
|
+
className="flex items-center gap-2 rounded-lg border border-emerald-500/30 bg-emerald-500/20 px-4 py-2 text-emerald-200 transition-colors hover:bg-emerald-500/30"
|
|
612
|
+
disabled
|
|
613
|
+
>
|
|
614
|
+
<TickCircleIcon className="h-4 w-4" />
|
|
615
|
+
Already Completed
|
|
616
|
+
</button>
|
|
617
|
+
</div>
|
|
618
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
619
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
620
|
+
{`// Success action button
|
|
621
|
+
<button className="flex items-center gap-2 bg-green-500/20 border border-green-500/30 px-4 py-2 rounded-lg">
|
|
622
|
+
<TickCircleIcon className="h-4 w-4" />
|
|
623
|
+
Mark Complete
|
|
624
|
+
</button>
|
|
625
|
+
|
|
626
|
+
// Completed state
|
|
627
|
+
<button className="flex items-center gap-2 bg-emerald-500/20 border border-emerald-500/30 px-4 py-2 rounded-lg" disabled>
|
|
628
|
+
<TickCircleIcon className="h-4 w-4" />
|
|
629
|
+
Already Completed
|
|
630
|
+
</button>`}
|
|
631
|
+
</pre>
|
|
632
|
+
</div>
|
|
633
|
+
</div>
|
|
634
|
+
</div>
|
|
635
|
+
|
|
636
|
+
{/* Verification Badge */}
|
|
637
|
+
<div className="!space-y-4">
|
|
638
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
639
|
+
Verification Badge
|
|
640
|
+
</h3>
|
|
641
|
+
<div className="!space-y-4">
|
|
642
|
+
<div className="flex items-center gap-3">
|
|
643
|
+
<div className="h-12 w-12 rounded-full bg-blue-500/20"></div>
|
|
644
|
+
<div>
|
|
645
|
+
<div className="flex items-center gap-2">
|
|
646
|
+
<span className="font-medium text-white">
|
|
647
|
+
John Doe
|
|
648
|
+
</span>
|
|
649
|
+
<TickCircleIcon className="h-4 w-4 text-blue-400" />
|
|
650
|
+
</div>
|
|
651
|
+
<p className="text-sm !text-white/60">
|
|
652
|
+
Verified Account
|
|
653
|
+
</p>
|
|
654
|
+
</div>
|
|
655
|
+
</div>
|
|
656
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
657
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
658
|
+
{`<div className="flex items-center gap-3">
|
|
659
|
+
<div className="h-12 w-12 rounded-full bg-blue-500/20"></div>
|
|
660
|
+
<div>
|
|
661
|
+
<div className="flex items-center gap-2">
|
|
662
|
+
<span className="font-medium text-white">John Doe</span>
|
|
663
|
+
<TickCircleIcon className="h-4 w-4 text-blue-400" />
|
|
664
|
+
</div>
|
|
665
|
+
<p className="text-sm text-white/60">Verified Account</p>
|
|
666
|
+
</div>
|
|
667
|
+
</div>`}
|
|
668
|
+
</pre>
|
|
669
|
+
</div>
|
|
670
|
+
</div>
|
|
671
|
+
</div>
|
|
672
|
+
|
|
673
|
+
{/* Toast Notification */}
|
|
674
|
+
<div className="!space-y-4">
|
|
675
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
676
|
+
Toast Notification
|
|
677
|
+
</h3>
|
|
678
|
+
<div className="!space-y-4">
|
|
679
|
+
<div className="flex items-start gap-3 rounded-lg border border-green-500/20 bg-green-500/10 p-4 shadow-lg">
|
|
680
|
+
<TickCircleIcon className="animate-tick-bounce h-5 w-5 text-green-400" />
|
|
681
|
+
<div className="flex-1">
|
|
682
|
+
<p className="font-medium !text-green-200">
|
|
683
|
+
File uploaded successfully
|
|
684
|
+
</p>
|
|
685
|
+
<p className="text-sm !text-green-300/80">
|
|
686
|
+
Your document has been saved.
|
|
687
|
+
</p>
|
|
688
|
+
</div>
|
|
689
|
+
<button className="text-green-400 hover:text-green-300">
|
|
690
|
+
✕
|
|
691
|
+
</button>
|
|
692
|
+
</div>
|
|
693
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
694
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
695
|
+
{`<div className="flex items-center gap-3 p-4 border border-green-500/20 bg-green-500/10 rounded-lg shadow-lg">
|
|
696
|
+
<TickCircleIcon className="h-5 w-5 text-green-400 animate-bounce" />
|
|
697
|
+
<div className="flex-1">
|
|
698
|
+
<p className="font-medium text-green-200">File uploaded successfully</p>
|
|
699
|
+
<p className="text-sm text-green-300/80">Your document has been saved.</p>
|
|
700
|
+
</div>
|
|
701
|
+
<button className="text-green-400 hover:text-green-300">✕</button>
|
|
702
|
+
</div>`}
|
|
703
|
+
</pre>
|
|
704
|
+
</div>
|
|
705
|
+
</div>
|
|
706
|
+
</div>
|
|
707
|
+
</div>
|
|
708
|
+
</div>
|
|
709
|
+
|
|
710
|
+
{/* Interactive States */}
|
|
711
|
+
<div className="!space-y-8">
|
|
712
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
713
|
+
Interactive States & Animations
|
|
714
|
+
</h2>
|
|
715
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
716
|
+
<div className="!space-y-4">
|
|
717
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
718
|
+
Animation Effects
|
|
719
|
+
</h3>
|
|
720
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
721
|
+
<div className="flex items-center gap-4">
|
|
722
|
+
<TickCircleIcon className="animate-tick-bounce h-8 w-8 text-green-400" />
|
|
723
|
+
<div>
|
|
724
|
+
<div className="text-sm font-medium text-white">
|
|
725
|
+
Bounce Effect
|
|
726
|
+
</div>
|
|
727
|
+
<div className="text-xs text-white/60">
|
|
728
|
+
On completion
|
|
729
|
+
</div>
|
|
730
|
+
</div>
|
|
731
|
+
</div>
|
|
732
|
+
<div className="flex items-center gap-4">
|
|
733
|
+
<TickCircleIcon className="animate-tick-pulse h-8 w-8 text-green-400" />
|
|
734
|
+
<div>
|
|
735
|
+
<div className="text-sm font-medium text-white">
|
|
736
|
+
Pulse Animation
|
|
737
|
+
</div>
|
|
738
|
+
<div className="text-xs text-white/60">
|
|
739
|
+
Continuous feedback
|
|
740
|
+
</div>
|
|
741
|
+
</div>
|
|
742
|
+
</div>
|
|
743
|
+
<div className="flex items-center gap-4">
|
|
744
|
+
<TickCircleIcon className="h-8 w-8 text-green-400 transition-transform hover:scale-110" />
|
|
745
|
+
<div>
|
|
746
|
+
<div className="text-sm font-medium text-white">
|
|
747
|
+
Hover Scale
|
|
748
|
+
</div>
|
|
749
|
+
<div className="text-xs text-white/60">
|
|
750
|
+
Interactive growth
|
|
751
|
+
</div>
|
|
752
|
+
</div>
|
|
753
|
+
</div>
|
|
754
|
+
<div className="flex items-center gap-4">
|
|
755
|
+
<TickCircleIcon className="h-8 w-8 text-green-400 transition-colors hover:text-emerald-300" />
|
|
756
|
+
<div>
|
|
757
|
+
<div className="text-sm font-medium text-white">
|
|
758
|
+
Color Transition
|
|
759
|
+
</div>
|
|
760
|
+
<div className="text-xs text-white/60">
|
|
761
|
+
Smooth color change
|
|
762
|
+
</div>
|
|
763
|
+
</div>
|
|
764
|
+
</div>
|
|
765
|
+
</div>
|
|
766
|
+
</div>
|
|
767
|
+
|
|
768
|
+
<div className="!space-y-4">
|
|
769
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
770
|
+
Interactive Examples
|
|
771
|
+
</h3>
|
|
772
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
773
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
774
|
+
{`// Bounce animation on completion
|
|
775
|
+
<TickCircleIcon className="h-8 w-8 text-green-400 animate-bounce" />
|
|
776
|
+
|
|
777
|
+
// Custom bounce animation
|
|
778
|
+
@keyframes tick-bounce {
|
|
779
|
+
0%, 100% { transform: scale(1); }
|
|
780
|
+
50% { transform: scale(1.1); }
|
|
781
|
+
}
|
|
782
|
+
.animate-tick-bounce {
|
|
783
|
+
animation: tick-bounce 0.6s ease-in-out;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
// Hover interactions
|
|
787
|
+
<TickCircleIcon className="h-8 w-8 text-green-400 transition-transform hover:scale-110" />
|
|
788
|
+
|
|
789
|
+
// Button with animated icon
|
|
790
|
+
<button className="group flex items-center gap-2">
|
|
791
|
+
<TickCircleIcon className="h-5 w-5 transition-transform group-hover:scale-105" />
|
|
792
|
+
<span>Complete Task</span>
|
|
793
|
+
</button>
|
|
794
|
+
|
|
795
|
+
// Conditional animation
|
|
796
|
+
{isCompleted && (
|
|
797
|
+
<TickCircleIcon className="h-6 w-6 text-green-400 animate-bounce" />
|
|
798
|
+
)}`}
|
|
799
|
+
</pre>
|
|
800
|
+
</div>
|
|
801
|
+
</div>
|
|
802
|
+
</div>
|
|
803
|
+
</div>
|
|
804
|
+
|
|
805
|
+
{/* Accessibility */}
|
|
806
|
+
<div className="!space-y-8">
|
|
807
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
808
|
+
Accessibility Features
|
|
809
|
+
</h2>
|
|
810
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
811
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
812
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
813
|
+
✅ Built-in Features
|
|
814
|
+
</h3>
|
|
815
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
816
|
+
<li className="!text-white/70">
|
|
817
|
+
Uses Radix UI AccessibleIcon wrapper
|
|
818
|
+
</li>
|
|
819
|
+
<li className="!text-white/70">
|
|
820
|
+
Provides screen reader label "Tick Circle icon"
|
|
821
|
+
</li>
|
|
822
|
+
<li className="!text-white/70">
|
|
823
|
+
Supports keyboard navigation when interactive
|
|
824
|
+
</li>
|
|
825
|
+
<li className="!text-white/70">
|
|
826
|
+
Maintains proper color contrast ratios
|
|
827
|
+
</li>
|
|
828
|
+
<li className="!text-white/70">
|
|
829
|
+
Scales with user's font size preferences
|
|
830
|
+
</li>
|
|
831
|
+
</ul>
|
|
832
|
+
</div>
|
|
833
|
+
|
|
834
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
835
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
836
|
+
💡 Best Practices
|
|
837
|
+
</h3>
|
|
838
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
839
|
+
<li className="!text-white/70">
|
|
840
|
+
Always pair with descriptive text
|
|
841
|
+
</li>
|
|
842
|
+
<li className="!text-white/70">
|
|
843
|
+
Use consistent colors for success states
|
|
844
|
+
</li>
|
|
845
|
+
<li className="!text-white/70">
|
|
846
|
+
Ensure sufficient color contrast
|
|
847
|
+
</li>
|
|
848
|
+
<li className="!text-white/70">
|
|
849
|
+
Add focus states for interactive elements
|
|
850
|
+
</li>
|
|
851
|
+
<li className="!text-white/70">
|
|
852
|
+
Consider motion sensitivity for animations
|
|
853
|
+
</li>
|
|
854
|
+
</ul>
|
|
855
|
+
</div>
|
|
856
|
+
</div>
|
|
857
|
+
|
|
858
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
859
|
+
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
860
|
+
Custom Accessibility Implementation
|
|
861
|
+
</h3>
|
|
862
|
+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
863
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
864
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
865
|
+
{`// Custom implementation with specific label
|
|
866
|
+
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
867
|
+
|
|
868
|
+
function CompletionIcon({ label = "Completed", ...props }) {
|
|
869
|
+
return (
|
|
870
|
+
<AccessibleIcon label={label}>
|
|
871
|
+
<TickCircleIcon {...props} />
|
|
872
|
+
</AccessibleIcon>
|
|
873
|
+
)
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
// Usage with specific context
|
|
877
|
+
<CompletionIcon
|
|
878
|
+
label="Task completed successfully"
|
|
879
|
+
className="h-4 w-4 text-green-400"
|
|
880
|
+
/>
|
|
881
|
+
|
|
882
|
+
// ARIA attributes for complex interactions
|
|
883
|
+
<button
|
|
884
|
+
aria-label="Mark task as complete"
|
|
885
|
+
aria-pressed={isCompleted}
|
|
886
|
+
onClick={handleComplete}
|
|
887
|
+
>
|
|
888
|
+
<TickCircleIcon className="h-5 w-5 text-green-400" />
|
|
889
|
+
</button>`}
|
|
890
|
+
</pre>
|
|
891
|
+
</div>
|
|
892
|
+
<div className="!space-y-4">
|
|
893
|
+
<p className="text-sm !text-white/70">
|
|
894
|
+
When using TickCircleIcon for task completion or success
|
|
895
|
+
states, provide clear context about what was completed
|
|
896
|
+
or verified. The built-in accessible label helps screen
|
|
897
|
+
readers understand the positive nature of the icon.
|
|
898
|
+
</p>
|
|
899
|
+
<div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
|
|
900
|
+
<div className="flex items-center gap-2 text-sm text-green-200">
|
|
901
|
+
<TickCircleIcon className="h-4 w-4" />
|
|
902
|
+
<span>
|
|
903
|
+
This ensures all users understand successful actions
|
|
904
|
+
</span>
|
|
905
|
+
</div>
|
|
906
|
+
</div>
|
|
907
|
+
</div>
|
|
908
|
+
</div>
|
|
909
|
+
</div>
|
|
910
|
+
</div>
|
|
911
|
+
|
|
912
|
+
{/* Related Icons */}
|
|
913
|
+
<div className="!space-y-8">
|
|
914
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
915
|
+
Related Icons
|
|
916
|
+
</h2>
|
|
917
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
918
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
919
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
920
|
+
<span className="text-2xl">⚠️</span>
|
|
921
|
+
</div>
|
|
922
|
+
<div>
|
|
923
|
+
<div className="font-medium text-white">AlertIcon</div>
|
|
924
|
+
<div className="text-xs text-white/60">
|
|
925
|
+
Warning states
|
|
926
|
+
</div>
|
|
927
|
+
</div>
|
|
928
|
+
</div>
|
|
929
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
930
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
931
|
+
<span className="text-2xl">ℹ️</span>
|
|
932
|
+
</div>
|
|
933
|
+
<div>
|
|
934
|
+
<div className="font-medium text-white">InfoIcon</div>
|
|
935
|
+
<div className="text-xs text-white/60">Information</div>
|
|
936
|
+
</div>
|
|
937
|
+
</div>
|
|
938
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
939
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-red-500/20">
|
|
940
|
+
<span className="text-2xl">❌</span>
|
|
941
|
+
</div>
|
|
942
|
+
<div>
|
|
943
|
+
<div className="font-medium text-white">ErrorIcon</div>
|
|
944
|
+
<div className="text-xs text-white/60">Error states</div>
|
|
945
|
+
</div>
|
|
946
|
+
</div>
|
|
947
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
948
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
949
|
+
<span className="text-2xl">🔄</span>
|
|
950
|
+
</div>
|
|
951
|
+
<div>
|
|
952
|
+
<div className="font-medium text-white">LoadingIcon</div>
|
|
953
|
+
<div className="text-xs text-white/60">
|
|
954
|
+
Progress states
|
|
955
|
+
</div>
|
|
956
|
+
</div>
|
|
957
|
+
</div>
|
|
958
|
+
</div>
|
|
959
|
+
</div>
|
|
960
|
+
</div>
|
|
961
|
+
|
|
962
|
+
{/* Footer */}
|
|
963
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
964
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
965
|
+
<div className="!space-y-4 text-center">
|
|
966
|
+
<p className="!text-white/60">
|
|
967
|
+
TickCircleIcon is part of the Aural UI icon library,
|
|
968
|
+
designed for success feedback, task completion, and positive
|
|
969
|
+
user interactions.
|
|
970
|
+
</p>
|
|
971
|
+
<p className="text-sm !text-white/40">
|
|
972
|
+
All icons use Radix UI's AccessibleIcon for screen reader
|
|
973
|
+
compatibility and follow WCAG guidelines for positive
|
|
974
|
+
feedback elements.
|
|
975
|
+
</p>
|
|
976
|
+
</div>
|
|
977
|
+
</div>
|
|
978
|
+
</div>
|
|
979
|
+
</div>
|
|
980
|
+
</>
|
|
981
|
+
),
|
|
982
|
+
},
|
|
983
|
+
},
|
|
984
|
+
tags: ["autodocs"],
|
|
985
|
+
argTypes: {
|
|
986
|
+
width: {
|
|
987
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
988
|
+
description: "Width of the icon in pixels",
|
|
989
|
+
},
|
|
990
|
+
height: {
|
|
991
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
992
|
+
description: "Height of the icon in pixels",
|
|
993
|
+
},
|
|
994
|
+
fill: {
|
|
995
|
+
control: "color",
|
|
996
|
+
description: "Fill color of the icon",
|
|
997
|
+
},
|
|
998
|
+
className: {
|
|
999
|
+
control: "text",
|
|
1000
|
+
description: "CSS classes for styling",
|
|
1001
|
+
},
|
|
1002
|
+
},
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
export default meta
|
|
1006
|
+
type Story = StoryObj<typeof TickCircleIcon>
|
|
1007
|
+
|
|
1008
|
+
// Story parameters for consistent dark theme
|
|
1009
|
+
const storyParameters = {
|
|
1010
|
+
backgrounds: {
|
|
1011
|
+
default: "dark",
|
|
1012
|
+
values: [
|
|
1013
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
1014
|
+
{ name: "darker", value: "#000000" },
|
|
1015
|
+
],
|
|
1016
|
+
},
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
export const Default: Story = {
|
|
1020
|
+
args: {
|
|
1021
|
+
width: 24,
|
|
1022
|
+
height: 24,
|
|
1023
|
+
className: "text-green-400",
|
|
1024
|
+
},
|
|
1025
|
+
parameters: storyParameters,
|
|
1026
|
+
render: (args) => (
|
|
1027
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1028
|
+
<TickCircleIcon {...args} />
|
|
1029
|
+
</div>
|
|
1030
|
+
),
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
export const SizeVariations: Story = {
|
|
1034
|
+
parameters: {
|
|
1035
|
+
...storyParameters,
|
|
1036
|
+
docs: {
|
|
1037
|
+
description: {
|
|
1038
|
+
story:
|
|
1039
|
+
"TickCircleIcon in different sizes, from small UI elements to large displays.",
|
|
1040
|
+
},
|
|
1041
|
+
},
|
|
1042
|
+
},
|
|
1043
|
+
render: () => (
|
|
1044
|
+
<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">
|
|
1045
|
+
<div className="text-center">
|
|
1046
|
+
<TickCircleIcon className="!mx-auto mb-2 h-3 w-3 text-green-400" />
|
|
1047
|
+
<span className="text-xs text-white/60">12px</span>
|
|
1048
|
+
</div>
|
|
1049
|
+
<div className="text-center">
|
|
1050
|
+
<TickCircleIcon className="!mx-auto mb-2 h-4 w-4 text-green-400" />
|
|
1051
|
+
<span className="text-xs text-white/60">16px</span>
|
|
1052
|
+
</div>
|
|
1053
|
+
<div className="text-center">
|
|
1054
|
+
<TickCircleIcon className="!mx-auto mb-2 h-5 w-5 text-green-400" />
|
|
1055
|
+
<span className="text-xs text-white/60">20px</span>
|
|
1056
|
+
</div>
|
|
1057
|
+
<div className="text-center">
|
|
1058
|
+
<TickCircleIcon className="!mx-auto mb-2 h-6 w-6 text-green-400" />
|
|
1059
|
+
<span className="text-xs text-white/60">24px</span>
|
|
1060
|
+
</div>
|
|
1061
|
+
<div className="text-center">
|
|
1062
|
+
<TickCircleIcon className="!mx-auto mb-2 h-8 w-8 text-green-400" />
|
|
1063
|
+
<span className="text-xs text-white/60">32px</span>
|
|
1064
|
+
</div>
|
|
1065
|
+
<div className="text-center">
|
|
1066
|
+
<TickCircleIcon className="!mx-auto mb-2 h-12 w-12 text-green-400" />
|
|
1067
|
+
<span className="text-xs text-white/60">48px</span>
|
|
1068
|
+
</div>
|
|
1069
|
+
</div>
|
|
1070
|
+
),
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
export const ColorVariations: Story = {
|
|
1074
|
+
parameters: {
|
|
1075
|
+
...storyParameters,
|
|
1076
|
+
docs: {
|
|
1077
|
+
description: {
|
|
1078
|
+
story:
|
|
1079
|
+
"TickCircleIcon in different semantic colors for various success states.",
|
|
1080
|
+
},
|
|
1081
|
+
},
|
|
1082
|
+
},
|
|
1083
|
+
render: () => (
|
|
1084
|
+
<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">
|
|
1085
|
+
<div className="text-center">
|
|
1086
|
+
<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">
|
|
1087
|
+
<TickCircleIcon className="h-8 w-8 text-green-400" />
|
|
1088
|
+
</div>
|
|
1089
|
+
<div className="text-sm font-medium text-white">Success</div>
|
|
1090
|
+
<div className="text-xs text-green-400">text-green-400</div>
|
|
1091
|
+
</div>
|
|
1092
|
+
<div className="text-center">
|
|
1093
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-emerald-500/30 bg-emerald-500/20">
|
|
1094
|
+
<TickCircleIcon className="h-8 w-8 text-emerald-400" />
|
|
1095
|
+
</div>
|
|
1096
|
+
<div className="text-sm font-medium text-white">Complete</div>
|
|
1097
|
+
<div className="text-xs text-emerald-400">text-emerald-400</div>
|
|
1098
|
+
</div>
|
|
1099
|
+
<div className="text-center">
|
|
1100
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-teal-500/30 bg-teal-500/20">
|
|
1101
|
+
<TickCircleIcon className="h-8 w-8 text-teal-400" />
|
|
1102
|
+
</div>
|
|
1103
|
+
<div className="text-sm font-medium text-white">Verified</div>
|
|
1104
|
+
<div className="text-xs text-teal-400">text-teal-400</div>
|
|
1105
|
+
</div>
|
|
1106
|
+
<div className="text-center">
|
|
1107
|
+
<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">
|
|
1108
|
+
<TickCircleIcon className="h-8 w-8 text-blue-400" />
|
|
1109
|
+
</div>
|
|
1110
|
+
<div className="text-sm font-medium text-white">Info</div>
|
|
1111
|
+
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
1112
|
+
</div>
|
|
1113
|
+
</div>
|
|
1114
|
+
),
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
export const UsageExamples: Story = {
|
|
1118
|
+
parameters: {
|
|
1119
|
+
...storyParameters,
|
|
1120
|
+
docs: {
|
|
1121
|
+
description: {
|
|
1122
|
+
story:
|
|
1123
|
+
"Real-world usage examples showing TickCircleIcon in different UI contexts.",
|
|
1124
|
+
},
|
|
1125
|
+
},
|
|
1126
|
+
},
|
|
1127
|
+
render: () => (
|
|
1128
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
1129
|
+
{/* Success Message */}
|
|
1130
|
+
<div className="!space-y-2">
|
|
1131
|
+
<h3 className="text-sm font-medium text-white">Success Message</h3>
|
|
1132
|
+
<div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
|
|
1133
|
+
<div className="flex items-start gap-3">
|
|
1134
|
+
<TickCircleIcon className="mt-0.5 h-5 w-5 flex-shrink-0 text-green-400" />
|
|
1135
|
+
<div>
|
|
1136
|
+
<h4 className="font-medium text-green-200">
|
|
1137
|
+
Account Created Successfully
|
|
1138
|
+
</h4>
|
|
1139
|
+
<p className="text-sm text-green-300/80">
|
|
1140
|
+
Welcome to Aural UI! Your account has been set up and you're
|
|
1141
|
+
ready to start building.
|
|
1142
|
+
</p>
|
|
1143
|
+
</div>
|
|
1144
|
+
</div>
|
|
1145
|
+
</div>
|
|
1146
|
+
</div>
|
|
1147
|
+
|
|
1148
|
+
{/* Task Completion */}
|
|
1149
|
+
<div className="!space-y-2">
|
|
1150
|
+
<h3 className="text-sm font-medium text-white">Task Completion</h3>
|
|
1151
|
+
<div className="!space-y-3">
|
|
1152
|
+
<div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
|
|
1153
|
+
<TickCircleIcon className="h-5 w-5 text-green-400" />
|
|
1154
|
+
<span className="flex-1 text-white">Set up project repository</span>
|
|
1155
|
+
<span className="text-xs text-green-400">Completed</span>
|
|
1156
|
+
</div>
|
|
1157
|
+
<div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
|
|
1158
|
+
<TickCircleIcon className="h-5 w-5 text-green-400" />
|
|
1159
|
+
<span className="flex-1 text-white">Install dependencies</span>
|
|
1160
|
+
<span className="text-xs text-green-400">Completed</span>
|
|
1161
|
+
</div>
|
|
1162
|
+
</div>
|
|
1163
|
+
</div>
|
|
1164
|
+
|
|
1165
|
+
{/* Form Validation */}
|
|
1166
|
+
<div className="!space-y-2">
|
|
1167
|
+
<h3 className="text-sm font-medium text-white">Form Validation</h3>
|
|
1168
|
+
<div className="relative">
|
|
1169
|
+
<input
|
|
1170
|
+
type="email"
|
|
1171
|
+
className="w-full rounded-lg border border-green-500/50 bg-white/5 px-3 py-2 pr-10 text-white placeholder-white/50 focus:border-green-500 focus:ring-2 focus:ring-green-500/20"
|
|
1172
|
+
placeholder="Enter your email"
|
|
1173
|
+
defaultValue="user@example.com"
|
|
1174
|
+
/>
|
|
1175
|
+
<TickCircleIcon className="absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 text-green-400" />
|
|
1176
|
+
</div>
|
|
1177
|
+
</div>
|
|
1178
|
+
</div>
|
|
1179
|
+
),
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
export const Playground: Story = {
|
|
1183
|
+
parameters: {
|
|
1184
|
+
...storyParameters,
|
|
1185
|
+
docs: {
|
|
1186
|
+
description: {
|
|
1187
|
+
story:
|
|
1188
|
+
"Interactive playground to experiment with different TickCircleIcon configurations.",
|
|
1189
|
+
},
|
|
1190
|
+
},
|
|
1191
|
+
},
|
|
1192
|
+
args: {
|
|
1193
|
+
width: 32,
|
|
1194
|
+
height: 32,
|
|
1195
|
+
className: "text-green-400",
|
|
1196
|
+
},
|
|
1197
|
+
render: (args) => (
|
|
1198
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1199
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
1200
|
+
<TickCircleIcon {...args} />
|
|
1201
|
+
</div>
|
|
1202
|
+
</div>
|
|
1203
|
+
),
|
|
1204
|
+
}
|