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,1071 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { FeatureShineIcon } from "."
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof FeatureShineIcon> = {
|
|
7
|
+
title: "Icons/FeatureShineIcon",
|
|
8
|
+
component: FeatureShineIcon,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: "fullscreen",
|
|
11
|
+
backgrounds: {
|
|
12
|
+
default: "dark",
|
|
13
|
+
values: [
|
|
14
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
15
|
+
{ name: "darker", value: "#000000" },
|
|
16
|
+
{ name: "light", value: "#ffffff" },
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
docs: {
|
|
20
|
+
page: () => (
|
|
21
|
+
<>
|
|
22
|
+
{/* Override default docs styling */}
|
|
23
|
+
<style>
|
|
24
|
+
{`
|
|
25
|
+
.sbdocs-wrapper {
|
|
26
|
+
padding: 0 ;
|
|
27
|
+
max-width: none ;
|
|
28
|
+
background: transparent ;
|
|
29
|
+
}
|
|
30
|
+
.sbdocs-content {
|
|
31
|
+
max-width: none ;
|
|
32
|
+
padding: 0 ;
|
|
33
|
+
margin: 0 ;
|
|
34
|
+
background: transparent ;
|
|
35
|
+
}
|
|
36
|
+
.docs-story {
|
|
37
|
+
background: transparent ;
|
|
38
|
+
}
|
|
39
|
+
.sbdocs {
|
|
40
|
+
background: transparent ;
|
|
41
|
+
}
|
|
42
|
+
body {
|
|
43
|
+
background: #0a0a0a ;
|
|
44
|
+
}
|
|
45
|
+
#storybook-docs {
|
|
46
|
+
background: #0a0a0a ;
|
|
47
|
+
}
|
|
48
|
+
.sbdocs-preview {
|
|
49
|
+
background: transparent ;
|
|
50
|
+
border: none ;
|
|
51
|
+
}
|
|
52
|
+
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
+
color: white ;
|
|
54
|
+
}
|
|
55
|
+
.sbdocs-p, .sbdocs-li {
|
|
56
|
+
color: rgba(255, 255, 255, 0.7) ;
|
|
57
|
+
}
|
|
58
|
+
.sbdocs-code {
|
|
59
|
+
background: rgba(255, 255, 255, 0.1) ;
|
|
60
|
+
color: rgba(168, 85, 247, 1) ;
|
|
61
|
+
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
62
|
+
}
|
|
63
|
+
.sbdocs-pre {
|
|
64
|
+
background: rgba(0, 0, 0, 0.4) ;
|
|
65
|
+
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
66
|
+
}
|
|
67
|
+
.sbdocs-table {
|
|
68
|
+
background: rgba(255, 255, 255, 0.05) ;
|
|
69
|
+
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
70
|
+
}
|
|
71
|
+
.sbdocs-table th {
|
|
72
|
+
background: rgba(255, 255, 255, 0.05) ;
|
|
73
|
+
color: white ;
|
|
74
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
75
|
+
}
|
|
76
|
+
.sbdocs-table td {
|
|
77
|
+
color: rgba(255, 255, 255, 0.7) ;
|
|
78
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05) ;
|
|
79
|
+
}
|
|
80
|
+
`}
|
|
81
|
+
</style>
|
|
82
|
+
|
|
83
|
+
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-purple-900/20 to-gray-900">
|
|
84
|
+
{/* Header */}
|
|
85
|
+
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
86
|
+
<div className="absolute inset-0 bg-gradient-to-r from-yellow-500/10 via-transparent to-amber-500/10" />
|
|
87
|
+
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
|
+
<div className="!space-y-6 text-center">
|
|
89
|
+
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-yellow-500/30 bg-gradient-to-br from-yellow-500/20 to-amber-500/20">
|
|
90
|
+
<FeatureShineIcon className="h-12 w-12 text-yellow-400" />
|
|
91
|
+
</div>
|
|
92
|
+
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
+
FeatureShineIcon
|
|
94
|
+
</h1>
|
|
95
|
+
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
+
A sparkling star icon for highlighting features,
|
|
97
|
+
achievements, and premium content. Perfect for showcasing
|
|
98
|
+
new features, premium badges, star ratings, and
|
|
99
|
+
attention-grabbing elements. Features a radiating design
|
|
100
|
+
that conveys excellence, quality, and special importance.
|
|
101
|
+
Built with accessibility in mind using Radix UI's
|
|
102
|
+
AccessibleIcon wrapper.
|
|
103
|
+
</p>
|
|
104
|
+
|
|
105
|
+
{/* Stats */}
|
|
106
|
+
<div className="flex items-center justify-center gap-8 pt-8">
|
|
107
|
+
<div className="text-center">
|
|
108
|
+
<div className="text-3xl font-bold text-yellow-300">
|
|
109
|
+
Premium
|
|
110
|
+
</div>
|
|
111
|
+
<div className="text-sm text-white/60">
|
|
112
|
+
Feature highlights
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
<div className="h-8 w-px bg-white/20" />
|
|
116
|
+
<div className="text-center">
|
|
117
|
+
<div className="text-3xl font-bold text-amber-300">
|
|
118
|
+
Sparkle
|
|
119
|
+
</div>
|
|
120
|
+
<div className="text-sm text-white/60">
|
|
121
|
+
Eye-catching design
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
<div className="h-8 w-px bg-white/20" />
|
|
125
|
+
<div className="text-center">
|
|
126
|
+
<div className="text-3xl font-bold text-orange-300">
|
|
127
|
+
Excellence
|
|
128
|
+
</div>
|
|
129
|
+
<div className="text-sm text-white/60">
|
|
130
|
+
Quality indication
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
{/* Content */}
|
|
139
|
+
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
140
|
+
{/* Quick Usage */}
|
|
141
|
+
<div className="!space-y-8">
|
|
142
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
143
|
+
Quick Start
|
|
144
|
+
</h2>
|
|
145
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
146
|
+
<div className="!space-y-4">
|
|
147
|
+
<h3 className="text-xl font-semibold !text-yellow-300">
|
|
148
|
+
Basic Usage
|
|
149
|
+
</h3>
|
|
150
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
151
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
152
|
+
{`import { FeatureShineIcon } from "@icons/feature-shine-icon"
|
|
153
|
+
|
|
154
|
+
function PremiumFeature() {
|
|
155
|
+
return (
|
|
156
|
+
<div className="flex items-center gap-2">
|
|
157
|
+
<FeatureShineIcon className="h-5 w-5 text-yellow-400 " />
|
|
158
|
+
<span className="font-medium">Premium Feature</span>
|
|
159
|
+
<span className="rounded bg-yellow-400/20 px-2 py-1 text-xs text-yellow-300">
|
|
160
|
+
NEW
|
|
161
|
+
</span>
|
|
162
|
+
</div>
|
|
163
|
+
)
|
|
164
|
+
}`}
|
|
165
|
+
</pre>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
|
|
169
|
+
<div className="!space-y-4">
|
|
170
|
+
<h3 className="text-xl font-semibold !text-yellow-300">
|
|
171
|
+
Live Preview
|
|
172
|
+
</h3>
|
|
173
|
+
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
174
|
+
<div className="flex items-center gap-3 rounded-lg border border-yellow-500/20 bg-gradient-to-r from-yellow-500/10 to-amber-500/10 px-4 py-2">
|
|
175
|
+
<FeatureShineIcon className="h-5 w-5 text-yellow-400" />
|
|
176
|
+
<span className="font-medium text-white">
|
|
177
|
+
Premium Feature
|
|
178
|
+
</span>
|
|
179
|
+
<span className="rounded bg-yellow-400/20 px-2 py-1 text-xs text-yellow-300">
|
|
180
|
+
NEW
|
|
181
|
+
</span>
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
|
|
188
|
+
{/* Props Documentation */}
|
|
189
|
+
<div className="!space-y-8">
|
|
190
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
191
|
+
Props & Configuration
|
|
192
|
+
</h2>
|
|
193
|
+
|
|
194
|
+
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
195
|
+
<div className="bg-white/5 p-4">
|
|
196
|
+
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
197
|
+
</div>
|
|
198
|
+
<table className="!my-0 w-full">
|
|
199
|
+
<thead className="bg-white/5">
|
|
200
|
+
<tr className="border-b border-white/10">
|
|
201
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
202
|
+
Prop
|
|
203
|
+
</th>
|
|
204
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
205
|
+
Type
|
|
206
|
+
</th>
|
|
207
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
208
|
+
Default
|
|
209
|
+
</th>
|
|
210
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
211
|
+
Description
|
|
212
|
+
</th>
|
|
213
|
+
</tr>
|
|
214
|
+
</thead>
|
|
215
|
+
<tbody>
|
|
216
|
+
<tr className="border-b border-white/5">
|
|
217
|
+
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
218
|
+
width
|
|
219
|
+
</td>
|
|
220
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
221
|
+
number | string
|
|
222
|
+
</td>
|
|
223
|
+
<td className="px-6 py-4 text-sm !text-white/50">20</td>
|
|
224
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
225
|
+
Width of the icon in pixels
|
|
226
|
+
</td>
|
|
227
|
+
</tr>
|
|
228
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
229
|
+
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
230
|
+
height
|
|
231
|
+
</td>
|
|
232
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
233
|
+
number | string
|
|
234
|
+
</td>
|
|
235
|
+
<td className="px-6 py-4 text-sm !text-white/50">20</td>
|
|
236
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
237
|
+
Height of the icon in pixels
|
|
238
|
+
</td>
|
|
239
|
+
</tr>
|
|
240
|
+
<tr className="border-b border-white/5">
|
|
241
|
+
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
242
|
+
stroke
|
|
243
|
+
</td>
|
|
244
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
245
|
+
string
|
|
246
|
+
</td>
|
|
247
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
248
|
+
currentColor
|
|
249
|
+
</td>
|
|
250
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
251
|
+
Stroke color of the icon
|
|
252
|
+
</td>
|
|
253
|
+
</tr>
|
|
254
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
255
|
+
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
256
|
+
strokeWidth
|
|
257
|
+
</td>
|
|
258
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
259
|
+
string | number
|
|
260
|
+
</td>
|
|
261
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
262
|
+
1.5
|
|
263
|
+
</td>
|
|
264
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
265
|
+
Stroke width of the icon lines
|
|
266
|
+
</td>
|
|
267
|
+
</tr>
|
|
268
|
+
<tr className="border-b border-white/5">
|
|
269
|
+
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
270
|
+
className
|
|
271
|
+
</td>
|
|
272
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
273
|
+
string
|
|
274
|
+
</td>
|
|
275
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
276
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
277
|
+
CSS classes for styling (use for overrides)
|
|
278
|
+
</td>
|
|
279
|
+
</tr>
|
|
280
|
+
<tr className="!bg-black/10">
|
|
281
|
+
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
282
|
+
...svgProps
|
|
283
|
+
</td>
|
|
284
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
285
|
+
SVGProps
|
|
286
|
+
</td>
|
|
287
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
288
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
289
|
+
All standard SVG element props
|
|
290
|
+
</td>
|
|
291
|
+
</tr>
|
|
292
|
+
</tbody>
|
|
293
|
+
</table>
|
|
294
|
+
</div>
|
|
295
|
+
</div>
|
|
296
|
+
|
|
297
|
+
{/* Size Variations */}
|
|
298
|
+
<div className="!space-y-8">
|
|
299
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
300
|
+
Size Variations
|
|
301
|
+
</h2>
|
|
302
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
303
|
+
<div className="!space-y-6">
|
|
304
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
305
|
+
<div className="!space-y-4">
|
|
306
|
+
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
307
|
+
Standard Sizes
|
|
308
|
+
</h3>
|
|
309
|
+
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
310
|
+
<div className="text-center">
|
|
311
|
+
<FeatureShineIcon className="!mx-auto mb-2 h-3 w-3 text-yellow-400" />
|
|
312
|
+
<span className="text-xs text-white/60">12px</span>
|
|
313
|
+
</div>
|
|
314
|
+
<div className="text-center">
|
|
315
|
+
<FeatureShineIcon className="!mx-auto mb-2 h-4 w-4 text-yellow-400" />
|
|
316
|
+
<span className="text-xs text-white/60">16px</span>
|
|
317
|
+
</div>
|
|
318
|
+
<div className="text-center">
|
|
319
|
+
<FeatureShineIcon className="!mx-auto mb-2 h-5 w-5 text-yellow-400" />
|
|
320
|
+
<span className="text-xs text-white/60">20px</span>
|
|
321
|
+
</div>
|
|
322
|
+
<div className="text-center">
|
|
323
|
+
<FeatureShineIcon className="!mx-auto mb-2 h-6 w-6 text-yellow-400" />
|
|
324
|
+
<span className="text-xs text-white/60">24px</span>
|
|
325
|
+
</div>
|
|
326
|
+
<div className="text-center">
|
|
327
|
+
<FeatureShineIcon className="!mx-auto mb-2 h-8 w-8 text-yellow-400" />
|
|
328
|
+
<span className="text-xs text-white/60">32px</span>
|
|
329
|
+
</div>
|
|
330
|
+
<div className="text-center">
|
|
331
|
+
<FeatureShineIcon className="!mx-auto mb-2 h-12 w-12 text-yellow-400" />
|
|
332
|
+
<span className="text-xs text-white/60">48px</span>
|
|
333
|
+
</div>
|
|
334
|
+
</div>
|
|
335
|
+
</div>
|
|
336
|
+
|
|
337
|
+
<div className="!space-y-4">
|
|
338
|
+
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
339
|
+
Code Example
|
|
340
|
+
</h3>
|
|
341
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
342
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
343
|
+
{`// Small (16px)
|
|
344
|
+
<FeatureShineIcon className="h-4 w-4 " />
|
|
345
|
+
|
|
346
|
+
// Medium (24px)
|
|
347
|
+
<FeatureShineIcon className="h-6 w-6 " />
|
|
348
|
+
|
|
349
|
+
// Large (32px)
|
|
350
|
+
<FeatureShineIcon className="h-8 w-8 " />
|
|
351
|
+
|
|
352
|
+
// Custom size with stroke width
|
|
353
|
+
<FeatureShineIcon
|
|
354
|
+
width={40}
|
|
355
|
+
height={40}
|
|
356
|
+
strokeWidth={2}
|
|
357
|
+
/>`}
|
|
358
|
+
</pre>
|
|
359
|
+
</div>
|
|
360
|
+
</div>
|
|
361
|
+
</div>
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
</div>
|
|
365
|
+
|
|
366
|
+
{/* Color Variations */}
|
|
367
|
+
<div className="!space-y-8">
|
|
368
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
369
|
+
Color Variations
|
|
370
|
+
</h2>
|
|
371
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
372
|
+
<div className="!space-y-4">
|
|
373
|
+
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
374
|
+
Semantic Colors
|
|
375
|
+
</h3>
|
|
376
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
377
|
+
<div className="flex items-center gap-4">
|
|
378
|
+
<FeatureShineIcon className="h-6 w-6 text-yellow-400" />
|
|
379
|
+
<div>
|
|
380
|
+
<div className="text-sm font-medium text-white">
|
|
381
|
+
Premium / Gold
|
|
382
|
+
</div>
|
|
383
|
+
<div className="text-xs text-white/60">
|
|
384
|
+
text-yellow-400
|
|
385
|
+
</div>
|
|
386
|
+
</div>
|
|
387
|
+
</div>
|
|
388
|
+
<div className="flex items-center gap-4">
|
|
389
|
+
<FeatureShineIcon className="h-6 w-6 text-amber-400" />
|
|
390
|
+
<div>
|
|
391
|
+
<div className="text-sm font-medium text-white">
|
|
392
|
+
Featured
|
|
393
|
+
</div>
|
|
394
|
+
<div className="text-xs text-white/60">
|
|
395
|
+
text-amber-400
|
|
396
|
+
</div>
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
<div className="flex items-center gap-4">
|
|
400
|
+
<FeatureShineIcon className="h-6 w-6 text-orange-400" />
|
|
401
|
+
<div>
|
|
402
|
+
<div className="text-sm font-medium text-white">
|
|
403
|
+
Highlight
|
|
404
|
+
</div>
|
|
405
|
+
<div className="text-xs text-white/60">
|
|
406
|
+
text-orange-400
|
|
407
|
+
</div>
|
|
408
|
+
</div>
|
|
409
|
+
</div>
|
|
410
|
+
<div className="flex items-center gap-4">
|
|
411
|
+
<FeatureShineIcon className="h-6 w-6 text-white" />
|
|
412
|
+
<div>
|
|
413
|
+
<div className="text-sm font-medium text-white">
|
|
414
|
+
Platinum
|
|
415
|
+
</div>
|
|
416
|
+
<div className="text-xs text-white/60">
|
|
417
|
+
text-white
|
|
418
|
+
</div>
|
|
419
|
+
</div>
|
|
420
|
+
</div>
|
|
421
|
+
</div>
|
|
422
|
+
</div>
|
|
423
|
+
|
|
424
|
+
<div className="!space-y-4">
|
|
425
|
+
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
426
|
+
Custom Colors
|
|
427
|
+
</h3>
|
|
428
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
429
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
430
|
+
{`// Using Tailwind classes with
|
|
431
|
+
<FeatureShineIcon className="h-6 w-6 text-yellow-400 " />
|
|
432
|
+
<FeatureShineIcon className="h-6 w-6 text-amber-500 " />
|
|
433
|
+
|
|
434
|
+
// Using CSS custom properties
|
|
435
|
+
<FeatureShineIcon
|
|
436
|
+
className="h-6 w-6 "
|
|
437
|
+
style={{ color: 'var(--color-premium)' }}
|
|
438
|
+
/>
|
|
439
|
+
|
|
440
|
+
// Direct stroke prop
|
|
441
|
+
<FeatureShineIcon
|
|
442
|
+
width={24}
|
|
443
|
+
height={24}
|
|
444
|
+
stroke="#fbbf24"
|
|
445
|
+
strokeWidth={1.5}
|
|
446
|
+
/>`}
|
|
447
|
+
</pre>
|
|
448
|
+
</div>
|
|
449
|
+
</div>
|
|
450
|
+
</div>
|
|
451
|
+
</div>
|
|
452
|
+
|
|
453
|
+
{/* Usage Examples */}
|
|
454
|
+
<div className="!space-y-8">
|
|
455
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
456
|
+
Usage Examples
|
|
457
|
+
</h2>
|
|
458
|
+
|
|
459
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
460
|
+
{/* Premium Badge */}
|
|
461
|
+
<div className="!space-y-4">
|
|
462
|
+
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
463
|
+
Premium Badge
|
|
464
|
+
</h3>
|
|
465
|
+
<div className="!space-y-4">
|
|
466
|
+
<div className="rounded-lg border border-yellow-500/20 bg-gradient-to-r from-yellow-500/10 to-amber-500/10 p-4">
|
|
467
|
+
<div className="flex items-start gap-3">
|
|
468
|
+
<FeatureShineIcon className="mt-0.5 h-5 w-5 flex-shrink-0 text-yellow-400" />
|
|
469
|
+
<div>
|
|
470
|
+
<h4 className="font-medium !text-yellow-200">
|
|
471
|
+
Premium Plan
|
|
472
|
+
</h4>
|
|
473
|
+
<p className="text-sm !text-yellow-300/80">
|
|
474
|
+
Unlock all premium features and get priority
|
|
475
|
+
support.
|
|
476
|
+
</p>
|
|
477
|
+
<div className="mt-2 flex gap-2">
|
|
478
|
+
<span className="inline-flex items-center rounded bg-yellow-500/20 px-2 py-1 text-xs text-yellow-300">
|
|
479
|
+
<FeatureShineIcon className="mr-1 h-3 w-3" />
|
|
480
|
+
Premium
|
|
481
|
+
</span>
|
|
482
|
+
<span className="inline-flex items-center rounded bg-amber-500/20 px-2 py-1 text-xs text-amber-300">
|
|
483
|
+
Featured
|
|
484
|
+
</span>
|
|
485
|
+
</div>
|
|
486
|
+
</div>
|
|
487
|
+
</div>
|
|
488
|
+
</div>
|
|
489
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
490
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
491
|
+
{`<div className="border border-yellow-500/20 bg-gradient-to-r from-yellow-500/10 to-amber-500/10 p-4 rounded-lg">
|
|
492
|
+
<div className="flex items-start gap-3">
|
|
493
|
+
<FeatureShineIcon className="h-5 w-5 text-yellow-400 mt-0.5 flex-shrink-0 " />
|
|
494
|
+
<div>
|
|
495
|
+
<h4 className="font-medium text-yellow-200">Premium Plan</h4>
|
|
496
|
+
<p className="text-sm text-yellow-300/80">
|
|
497
|
+
Unlock all premium features and get priority support.
|
|
498
|
+
</p>
|
|
499
|
+
<span className="inline-flex items-center px-2 py-1 rounded text-xs bg-yellow-500/20 text-yellow-300">
|
|
500
|
+
<FeatureShineIcon className="mr-1 h-3 w-3 " />
|
|
501
|
+
Premium
|
|
502
|
+
</span>
|
|
503
|
+
</div>
|
|
504
|
+
</div>
|
|
505
|
+
</div>`}
|
|
506
|
+
</pre>
|
|
507
|
+
</div>
|
|
508
|
+
</div>
|
|
509
|
+
</div>
|
|
510
|
+
|
|
511
|
+
{/* Feature Highlight */}
|
|
512
|
+
<div className="!space-y-4">
|
|
513
|
+
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
514
|
+
Feature Highlight
|
|
515
|
+
</h3>
|
|
516
|
+
<div className="!space-y-4">
|
|
517
|
+
<div className="!space-y-3">
|
|
518
|
+
<div className="flex items-center justify-between rounded-lg border border-white/10 bg-white/5 p-4">
|
|
519
|
+
<div className="flex items-center gap-3">
|
|
520
|
+
<FeatureShineIcon className="h-5 w-5 text-yellow-400" />
|
|
521
|
+
<div>
|
|
522
|
+
<div className="text-sm font-medium text-white">
|
|
523
|
+
Advanced Analytics
|
|
524
|
+
</div>
|
|
525
|
+
<div className="text-xs text-white/60">
|
|
526
|
+
New feature available
|
|
527
|
+
</div>
|
|
528
|
+
</div>
|
|
529
|
+
</div>
|
|
530
|
+
<div className="flex items-center">
|
|
531
|
+
<span className="mr-3 text-xs text-yellow-400">
|
|
532
|
+
NEW
|
|
533
|
+
</span>
|
|
534
|
+
<div className="relative h-6 w-11 rounded-full bg-yellow-600">
|
|
535
|
+
<div className="absolute top-1 right-1 h-4 w-4 rounded-full bg-white transition-transform"></div>
|
|
536
|
+
</div>
|
|
537
|
+
</div>
|
|
538
|
+
</div>
|
|
539
|
+
<div className="flex items-center justify-between rounded-lg border border-white/10 bg-white/5 p-4">
|
|
540
|
+
<div className="flex items-center gap-3">
|
|
541
|
+
<FeatureShineIcon className="h-5 w-5 text-amber-400" />
|
|
542
|
+
<div>
|
|
543
|
+
<div className="text-sm font-medium text-white">
|
|
544
|
+
AI-Powered Insights
|
|
545
|
+
</div>
|
|
546
|
+
<div className="text-xs text-white/60">
|
|
547
|
+
Enhanced with machine learning
|
|
548
|
+
</div>
|
|
549
|
+
</div>
|
|
550
|
+
</div>
|
|
551
|
+
<div className="flex items-center">
|
|
552
|
+
<span className="mr-3 text-xs text-amber-400">
|
|
553
|
+
Pro
|
|
554
|
+
</span>
|
|
555
|
+
<div className="relative h-6 w-11 rounded-full bg-amber-600">
|
|
556
|
+
<div className="absolute top-1 right-1 h-4 w-4 rounded-full bg-white transition-transform"></div>
|
|
557
|
+
</div>
|
|
558
|
+
</div>
|
|
559
|
+
</div>
|
|
560
|
+
</div>
|
|
561
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
562
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
563
|
+
{`// Feature toggle with shine icon
|
|
564
|
+
<div className="flex items-center justify-between p-4 border border-white/10 bg-white/5 rounded-lg">
|
|
565
|
+
<div className="flex items-center gap-3">
|
|
566
|
+
<FeatureShineIcon className="h-5 w-5 text-yellow-400 " />
|
|
567
|
+
<div>
|
|
568
|
+
<div className="text-sm font-medium text-white">Advanced Analytics</div>
|
|
569
|
+
<div className="text-xs text-white/60">New feature available</div>
|
|
570
|
+
</div>
|
|
571
|
+
</div>
|
|
572
|
+
<span className="text-xs text-yellow-400">NEW</span>
|
|
573
|
+
</div>`}
|
|
574
|
+
</pre>
|
|
575
|
+
</div>
|
|
576
|
+
</div>
|
|
577
|
+
</div>
|
|
578
|
+
|
|
579
|
+
{/* Star Rating */}
|
|
580
|
+
<div className="!space-y-4">
|
|
581
|
+
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
582
|
+
Star Rating
|
|
583
|
+
</h3>
|
|
584
|
+
<div className="!space-y-4">
|
|
585
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
586
|
+
<div className="!space-y-3">
|
|
587
|
+
<div className="flex items-center justify-between">
|
|
588
|
+
<span className="font-medium text-white">
|
|
589
|
+
Product Quality
|
|
590
|
+
</span>
|
|
591
|
+
<div className="flex items-center gap-1">
|
|
592
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
593
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
594
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
595
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
596
|
+
<FeatureShineIcon className="h-4 w-4 text-gray-600" />
|
|
597
|
+
<span className="ml-2 text-sm text-white/60">
|
|
598
|
+
4.0
|
|
599
|
+
</span>
|
|
600
|
+
</div>
|
|
601
|
+
</div>
|
|
602
|
+
<div className="flex items-center justify-between">
|
|
603
|
+
<span className="font-medium text-white">
|
|
604
|
+
Customer Service
|
|
605
|
+
</span>
|
|
606
|
+
<div className="flex items-center gap-1">
|
|
607
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
608
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
609
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
610
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
611
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
612
|
+
<span className="ml-2 text-sm text-white/60">
|
|
613
|
+
5.0
|
|
614
|
+
</span>
|
|
615
|
+
</div>
|
|
616
|
+
</div>
|
|
617
|
+
</div>
|
|
618
|
+
</div>
|
|
619
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
620
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
621
|
+
{`// Star rating component
|
|
622
|
+
<div className="flex items-center gap-1">
|
|
623
|
+
{[1, 2, 3, 4, 5].map((star) => (
|
|
624
|
+
<FeatureShineIcon
|
|
625
|
+
key={star}
|
|
626
|
+
className={'h-4 w-4 text-yellow-400'}
|
|
627
|
+
/>
|
|
628
|
+
))}
|
|
629
|
+
<span className="ml-2 text-sm text-white/60">{rating}.0</span>
|
|
630
|
+
</div>`}
|
|
631
|
+
</pre>
|
|
632
|
+
</div>
|
|
633
|
+
</div>
|
|
634
|
+
</div>
|
|
635
|
+
|
|
636
|
+
{/* Achievement Badge */}
|
|
637
|
+
<div className="!space-y-4">
|
|
638
|
+
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
639
|
+
Achievement Badge
|
|
640
|
+
</h3>
|
|
641
|
+
<div className="!space-y-4">
|
|
642
|
+
<div className="rounded-lg border border-amber-500/20 bg-amber-500/10 p-4">
|
|
643
|
+
<div className="text-center">
|
|
644
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-full border-2 border-yellow-400/30 bg-gradient-to-br from-yellow-500/20 to-amber-500/20">
|
|
645
|
+
<FeatureShineIcon className="h-8 w-8 text-yellow-400" />
|
|
646
|
+
</div>
|
|
647
|
+
<h4 className="font-bold !text-yellow-200">
|
|
648
|
+
Top Performer
|
|
649
|
+
</h4>
|
|
650
|
+
<p className="text-sm !text-amber-300/80">
|
|
651
|
+
Congratulations! You've earned the top performer
|
|
652
|
+
badge.
|
|
653
|
+
</p>
|
|
654
|
+
<div className="mt-3 inline-flex items-center gap-2 rounded-full bg-yellow-500/20 px-3 py-1 text-xs text-yellow-300">
|
|
655
|
+
<FeatureShineIcon className="h-3 w-3" />
|
|
656
|
+
Achievement Unlocked
|
|
657
|
+
</div>
|
|
658
|
+
</div>
|
|
659
|
+
</div>
|
|
660
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
661
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
662
|
+
{`// Achievement badge
|
|
663
|
+
<div className="text-center border border-amber-500/20 bg-amber-500/10 p-4 rounded-lg">
|
|
664
|
+
<div className="mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-full border-2 border-yellow-400/30 bg-gradient-to-br from-yellow-500/20 to-amber-500/20">
|
|
665
|
+
<FeatureShineIcon className="h-8 w-8 text-yellow-400 " />
|
|
666
|
+
</div>
|
|
667
|
+
<h4 className="font-bold text-yellow-200">Top Performer</h4>
|
|
668
|
+
<div className="mt-3 inline-flex items-center gap-2 rounded-full bg-yellow-500/20 px-3 py-1 text-xs text-yellow-300">
|
|
669
|
+
<FeatureShineIcon className="h-3 w-3 " />
|
|
670
|
+
Achievement Unlocked
|
|
671
|
+
</div>
|
|
672
|
+
</div>`}
|
|
673
|
+
</pre>
|
|
674
|
+
</div>
|
|
675
|
+
</div>
|
|
676
|
+
</div>
|
|
677
|
+
</div>
|
|
678
|
+
</div>
|
|
679
|
+
|
|
680
|
+
{/* Accessibility */}
|
|
681
|
+
<div className="!space-y-8">
|
|
682
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
683
|
+
Accessibility Features
|
|
684
|
+
</h2>
|
|
685
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
686
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
687
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
688
|
+
✅ Built-in Features
|
|
689
|
+
</h3>
|
|
690
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
691
|
+
<li className="!text-white/70">
|
|
692
|
+
Uses Radix UI AccessibleIcon wrapper
|
|
693
|
+
</li>
|
|
694
|
+
<li className="!text-white/70">
|
|
695
|
+
Provides screen reader label "Shine icon"
|
|
696
|
+
</li>
|
|
697
|
+
<li className="!text-white/70">
|
|
698
|
+
Supports keyboard navigation when interactive
|
|
699
|
+
</li>
|
|
700
|
+
<li className="!text-white/70">
|
|
701
|
+
Maintains proper color contrast ratios
|
|
702
|
+
</li>
|
|
703
|
+
<li className="!text-white/70">
|
|
704
|
+
Scales with user's font size preferences
|
|
705
|
+
</li>
|
|
706
|
+
</ul>
|
|
707
|
+
</div>
|
|
708
|
+
|
|
709
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
710
|
+
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
711
|
+
💡 Best Practices
|
|
712
|
+
</h3>
|
|
713
|
+
<ul className="!space-y-2 text-sm text-white/70">
|
|
714
|
+
<li className="!text-white/70">
|
|
715
|
+
Always pair with descriptive text for context
|
|
716
|
+
</li>
|
|
717
|
+
<li className="!text-white/70">
|
|
718
|
+
Use consistent colors for premium/featured content
|
|
719
|
+
</li>
|
|
720
|
+
<li className="!text-white/70">
|
|
721
|
+
Ensure sufficient color contrast for visibility
|
|
722
|
+
</li>
|
|
723
|
+
<li className="!text-white/70">
|
|
724
|
+
Consider sparkle animations sparingly to avoid
|
|
725
|
+
distraction
|
|
726
|
+
</li>
|
|
727
|
+
<li className="!text-white/70">
|
|
728
|
+
Provide alternative text for decorative usage
|
|
729
|
+
</li>
|
|
730
|
+
</ul>
|
|
731
|
+
</div>
|
|
732
|
+
</div>
|
|
733
|
+
|
|
734
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
735
|
+
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
736
|
+
Proper ARIA Implementation
|
|
737
|
+
</h3>
|
|
738
|
+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
739
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
740
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
741
|
+
{`// Rating with proper ARIA
|
|
742
|
+
<div role="img" aria-label="4 out of 5 stars rating">
|
|
743
|
+
{[1, 2, 3, 4, 5].map((star) => (
|
|
744
|
+
<FeatureShineIcon
|
|
745
|
+
key={star}
|
|
746
|
+
className={'h-4 w-4 text-yellow-400'}
|
|
747
|
+
aria-hidden="true"
|
|
748
|
+
/>
|
|
749
|
+
))}
|
|
750
|
+
</div>
|
|
751
|
+
|
|
752
|
+
// Premium badge with description
|
|
753
|
+
<div
|
|
754
|
+
aria-label="Premium feature badge"
|
|
755
|
+
className="inline-flex items-center gap-2"
|
|
756
|
+
>
|
|
757
|
+
<FeatureShineIcon
|
|
758
|
+
className="h-4 w-4 text-yellow-400 "
|
|
759
|
+
aria-hidden="true"
|
|
760
|
+
/>
|
|
761
|
+
<span>Premium Feature</span>
|
|
762
|
+
</div>`}
|
|
763
|
+
</pre>
|
|
764
|
+
</div>
|
|
765
|
+
<div className="!space-y-4">
|
|
766
|
+
<p className="text-sm !text-white/70">
|
|
767
|
+
When using FeatureShineIcon for ratings or decorative
|
|
768
|
+
purposes, use aria-hidden="true" and provide meaningful
|
|
769
|
+
context through surrounding elements or aria-label
|
|
770
|
+
attributes.
|
|
771
|
+
</p>
|
|
772
|
+
<div className="rounded-lg border border-yellow-500/20 bg-yellow-500/10 p-4">
|
|
773
|
+
<div className="flex items-center gap-2 text-sm text-yellow-200">
|
|
774
|
+
<FeatureShineIcon className="h-4 w-4" />
|
|
775
|
+
<span>
|
|
776
|
+
Screen readers need context about premium features
|
|
777
|
+
</span>
|
|
778
|
+
</div>
|
|
779
|
+
</div>
|
|
780
|
+
</div>
|
|
781
|
+
</div>
|
|
782
|
+
</div>
|
|
783
|
+
</div>
|
|
784
|
+
|
|
785
|
+
{/* Related Icons */}
|
|
786
|
+
<div className="!space-y-8">
|
|
787
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
788
|
+
Related Icons
|
|
789
|
+
</h2>
|
|
790
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
791
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
792
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
793
|
+
<span className="text-2xl">⭐</span>
|
|
794
|
+
</div>
|
|
795
|
+
<div>
|
|
796
|
+
<div className="font-medium text-white">StarIcon</div>
|
|
797
|
+
<div className="text-xs text-white/60">Basic rating</div>
|
|
798
|
+
</div>
|
|
799
|
+
</div>
|
|
800
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
801
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
802
|
+
<span className="text-2xl">🏆</span>
|
|
803
|
+
</div>
|
|
804
|
+
<div>
|
|
805
|
+
<div className="font-medium text-white">TrophyIcon</div>
|
|
806
|
+
<div className="text-xs text-white/60">Achievement</div>
|
|
807
|
+
</div>
|
|
808
|
+
</div>
|
|
809
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
810
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
811
|
+
<span className="text-2xl">👑</span>
|
|
812
|
+
</div>
|
|
813
|
+
<div>
|
|
814
|
+
<div className="font-medium text-white">CrownIcon</div>
|
|
815
|
+
<div className="text-xs text-white/60">Premium tier</div>
|
|
816
|
+
</div>
|
|
817
|
+
</div>
|
|
818
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
819
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
820
|
+
<span className="text-2xl">🔥</span>
|
|
821
|
+
</div>
|
|
822
|
+
<div>
|
|
823
|
+
<div className="font-medium text-white">FireIcon</div>
|
|
824
|
+
<div className="text-xs text-white/60">Hot/trending</div>
|
|
825
|
+
</div>
|
|
826
|
+
</div>
|
|
827
|
+
</div>
|
|
828
|
+
</div>
|
|
829
|
+
</div>
|
|
830
|
+
|
|
831
|
+
{/* Footer */}
|
|
832
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
833
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
834
|
+
<div className="!space-y-4 text-center">
|
|
835
|
+
<p className="!text-white/60">
|
|
836
|
+
FeatureShineIcon is part of the Aural UI icon library, built
|
|
837
|
+
with premium quality and accessibility in mind.
|
|
838
|
+
</p>
|
|
839
|
+
<p className="text-sm !text-white/40">
|
|
840
|
+
All icons use Radix UI's AccessibleIcon for screen reader
|
|
841
|
+
compatibility and follow WCAG guidelines.
|
|
842
|
+
</p>
|
|
843
|
+
</div>
|
|
844
|
+
</div>
|
|
845
|
+
</div>
|
|
846
|
+
</div>
|
|
847
|
+
</>
|
|
848
|
+
),
|
|
849
|
+
},
|
|
850
|
+
},
|
|
851
|
+
tags: ["autodocs"],
|
|
852
|
+
argTypes: {
|
|
853
|
+
width: {
|
|
854
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
855
|
+
description: "Width of the icon in pixels",
|
|
856
|
+
},
|
|
857
|
+
height: {
|
|
858
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
859
|
+
description: "Height of the icon in pixels",
|
|
860
|
+
},
|
|
861
|
+
stroke: {
|
|
862
|
+
control: "color",
|
|
863
|
+
description: "Stroke color of the icon",
|
|
864
|
+
},
|
|
865
|
+
strokeWidth: {
|
|
866
|
+
control: { type: "range", min: 0.5, max: 4, step: 0.5 },
|
|
867
|
+
description: "Stroke width of the icon lines",
|
|
868
|
+
},
|
|
869
|
+
className: {
|
|
870
|
+
control: "text",
|
|
871
|
+
description: "CSS classes for styling (use for overrides)",
|
|
872
|
+
},
|
|
873
|
+
},
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
export default meta
|
|
877
|
+
type Story = StoryObj<typeof FeatureShineIcon>
|
|
878
|
+
|
|
879
|
+
// Story parameters for consistent dark theme
|
|
880
|
+
const storyParameters = {
|
|
881
|
+
backgrounds: {
|
|
882
|
+
default: "dark",
|
|
883
|
+
values: [
|
|
884
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
885
|
+
{ name: "darker", value: "#000000" },
|
|
886
|
+
],
|
|
887
|
+
},
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
export const Default: Story = {
|
|
891
|
+
args: {
|
|
892
|
+
className: "h-6 w-6 text-yellow-400 ",
|
|
893
|
+
},
|
|
894
|
+
parameters: storyParameters,
|
|
895
|
+
render: (args) => (
|
|
896
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
897
|
+
<FeatureShineIcon {...args} />
|
|
898
|
+
</div>
|
|
899
|
+
),
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
export const SizeVariations: Story = {
|
|
903
|
+
parameters: {
|
|
904
|
+
...storyParameters,
|
|
905
|
+
docs: {
|
|
906
|
+
description: {
|
|
907
|
+
story:
|
|
908
|
+
"FeatureShineIcon in different sizes, from small UI elements to large displays.",
|
|
909
|
+
},
|
|
910
|
+
},
|
|
911
|
+
},
|
|
912
|
+
render: () => (
|
|
913
|
+
<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">
|
|
914
|
+
<div className="text-center">
|
|
915
|
+
<FeatureShineIcon className="!mx-auto mb-2 h-3 w-3 text-yellow-400" />
|
|
916
|
+
<span className="text-xs text-white/60">12px</span>
|
|
917
|
+
</div>
|
|
918
|
+
<div className="text-center">
|
|
919
|
+
<FeatureShineIcon className="!mx-auto mb-2 h-4 w-4 text-yellow-400" />
|
|
920
|
+
<span className="text-xs text-white/60">16px</span>
|
|
921
|
+
</div>
|
|
922
|
+
<div className="text-center">
|
|
923
|
+
<FeatureShineIcon className="!mx-auto mb-2 h-5 w-5 text-yellow-400" />
|
|
924
|
+
<span className="text-xs text-white/60">20px</span>
|
|
925
|
+
</div>
|
|
926
|
+
<div className="text-center">
|
|
927
|
+
<FeatureShineIcon className="!mx-auto mb-2 h-6 w-6 text-yellow-400" />
|
|
928
|
+
<span className="text-xs text-white/60">24px</span>
|
|
929
|
+
</div>
|
|
930
|
+
<div className="text-center">
|
|
931
|
+
<FeatureShineIcon className="!mx-auto mb-2 h-8 w-8 text-yellow-400" />
|
|
932
|
+
<span className="text-xs text-white/60">32px</span>
|
|
933
|
+
</div>
|
|
934
|
+
<div className="text-center">
|
|
935
|
+
<FeatureShineIcon className="!mx-auto mb-2 h-12 w-12 text-yellow-400" />
|
|
936
|
+
<span className="text-xs text-white/60">48px</span>
|
|
937
|
+
</div>
|
|
938
|
+
</div>
|
|
939
|
+
),
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
export const ColorVariations: Story = {
|
|
943
|
+
parameters: {
|
|
944
|
+
...storyParameters,
|
|
945
|
+
docs: {
|
|
946
|
+
description: {
|
|
947
|
+
story:
|
|
948
|
+
"FeatureShineIcon in different semantic colors for various premium contexts.",
|
|
949
|
+
},
|
|
950
|
+
},
|
|
951
|
+
},
|
|
952
|
+
render: () => (
|
|
953
|
+
<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">
|
|
954
|
+
<div className="text-center">
|
|
955
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-yellow-500/30 bg-yellow-500/20">
|
|
956
|
+
<FeatureShineIcon className="h-8 w-8 text-yellow-400" />
|
|
957
|
+
</div>
|
|
958
|
+
<div className="text-sm font-medium text-white">Premium</div>
|
|
959
|
+
<div className="text-xs text-yellow-400">text-yellow-400</div>
|
|
960
|
+
</div>
|
|
961
|
+
<div className="text-center">
|
|
962
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-amber-500/30 bg-amber-500/20">
|
|
963
|
+
<FeatureShineIcon className="h-8 w-8 text-amber-400" />
|
|
964
|
+
</div>
|
|
965
|
+
<div className="text-sm font-medium text-white">Featured</div>
|
|
966
|
+
<div className="text-xs text-amber-400">text-amber-400</div>
|
|
967
|
+
</div>
|
|
968
|
+
<div className="text-center">
|
|
969
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-orange-500/30 bg-orange-500/20">
|
|
970
|
+
<FeatureShineIcon className="h-8 w-8 text-orange-400" />
|
|
971
|
+
</div>
|
|
972
|
+
<div className="text-sm font-medium text-white">Highlight</div>
|
|
973
|
+
<div className="text-xs text-orange-400">text-orange-400</div>
|
|
974
|
+
</div>
|
|
975
|
+
<div className="text-center">
|
|
976
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-slate-500/30 bg-slate-500/20">
|
|
977
|
+
<FeatureShineIcon className="h-8 w-8 text-white" />
|
|
978
|
+
</div>
|
|
979
|
+
<div className="text-sm font-medium text-white">Platinum</div>
|
|
980
|
+
<div className="text-xs text-white/60">text-white</div>
|
|
981
|
+
</div>
|
|
982
|
+
</div>
|
|
983
|
+
),
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
export const UsageExamples: Story = {
|
|
987
|
+
parameters: {
|
|
988
|
+
...storyParameters,
|
|
989
|
+
docs: {
|
|
990
|
+
description: {
|
|
991
|
+
story:
|
|
992
|
+
"Real-world usage examples showing FeatureShineIcon in different UI contexts.",
|
|
993
|
+
},
|
|
994
|
+
},
|
|
995
|
+
},
|
|
996
|
+
render: () => (
|
|
997
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
998
|
+
{/* Premium Badge */}
|
|
999
|
+
<div className="!space-y-2">
|
|
1000
|
+
<h3 className="text-sm font-medium text-white">Premium Badge</h3>
|
|
1001
|
+
<div className="rounded-lg border border-yellow-500/20 bg-gradient-to-r from-yellow-500/10 to-amber-500/10 p-4">
|
|
1002
|
+
<div className="flex items-start gap-3">
|
|
1003
|
+
<FeatureShineIcon className="mt-0.5 h-5 w-5 flex-shrink-0 text-yellow-400" />
|
|
1004
|
+
<div>
|
|
1005
|
+
<h4 className="font-medium text-yellow-200">Premium Plan</h4>
|
|
1006
|
+
<p className="text-sm text-yellow-300/80">
|
|
1007
|
+
Unlock all premium features and get priority support.
|
|
1008
|
+
</p>
|
|
1009
|
+
</div>
|
|
1010
|
+
</div>
|
|
1011
|
+
</div>
|
|
1012
|
+
</div>
|
|
1013
|
+
|
|
1014
|
+
{/* Star Rating */}
|
|
1015
|
+
<div className="!space-y-2">
|
|
1016
|
+
<h3 className="text-sm font-medium text-white">Star Rating</h3>
|
|
1017
|
+
<div className="flex items-center justify-between rounded-lg border border-white/10 bg-white/5 p-4">
|
|
1018
|
+
<span className="font-medium text-white">Product Quality</span>
|
|
1019
|
+
<div className="flex items-center gap-1">
|
|
1020
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
1021
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
1022
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
1023
|
+
<FeatureShineIcon className="h-4 w-4 text-yellow-400" />
|
|
1024
|
+
<FeatureShineIcon className="h-4 w-4 text-gray-600" />
|
|
1025
|
+
<span className="ml-2 text-sm text-white/60">4.0</span>
|
|
1026
|
+
</div>
|
|
1027
|
+
</div>
|
|
1028
|
+
</div>
|
|
1029
|
+
|
|
1030
|
+
{/* Achievement Badge */}
|
|
1031
|
+
<div className="!space-y-2">
|
|
1032
|
+
<h3 className="text-sm font-medium text-white">Achievement Badge</h3>
|
|
1033
|
+
<div className="rounded-lg border border-amber-500/20 bg-amber-500/10 p-4 text-center">
|
|
1034
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-full border-2 border-yellow-400/30 bg-gradient-to-br from-yellow-500/20 to-amber-500/20">
|
|
1035
|
+
<FeatureShineIcon className="h-8 w-8 text-yellow-400" />
|
|
1036
|
+
</div>
|
|
1037
|
+
<h4 className="font-bold text-yellow-200">Top Performer</h4>
|
|
1038
|
+
<div className="mt-3 inline-flex items-center gap-2 rounded-full bg-yellow-500/20 px-3 py-1 text-xs text-yellow-300">
|
|
1039
|
+
<FeatureShineIcon className="h-3 w-3" />
|
|
1040
|
+
Achievement Unlocked
|
|
1041
|
+
</div>
|
|
1042
|
+
</div>
|
|
1043
|
+
</div>
|
|
1044
|
+
</div>
|
|
1045
|
+
),
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
export const Playground: Story = {
|
|
1049
|
+
parameters: {
|
|
1050
|
+
...storyParameters,
|
|
1051
|
+
docs: {
|
|
1052
|
+
description: {
|
|
1053
|
+
story:
|
|
1054
|
+
"Interactive playground to experiment with different FeatureShineIcon configurations.",
|
|
1055
|
+
},
|
|
1056
|
+
},
|
|
1057
|
+
},
|
|
1058
|
+
args: {
|
|
1059
|
+
width: 32,
|
|
1060
|
+
height: 32,
|
|
1061
|
+
className: "text-yellow-400 ",
|
|
1062
|
+
strokeWidth: 1.5,
|
|
1063
|
+
},
|
|
1064
|
+
render: (args) => (
|
|
1065
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1066
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
1067
|
+
<FeatureShineIcon {...args} />
|
|
1068
|
+
</div>
|
|
1069
|
+
</div>
|
|
1070
|
+
),
|
|
1071
|
+
}
|