aural-ui 3.0.7 → 4.0.1
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/dist/components/aspect-ratio/AspectRatio.stories.tsx +271 -242
- package/dist/components/avatar/Avatar.stories.tsx +84 -70
- package/dist/components/button/Button.stories.tsx +7 -7
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +3 -3
- package/dist/components/char-count/CharCount.stories.tsx +9 -9
- package/dist/components/circular-loader/CircularLoader.stories.tsx +109 -93
- package/dist/components/collapsible/Collapsible.stories.tsx +1 -1
- package/dist/components/command/Command.stories.tsx +52 -38
- package/dist/components/dialog/Dialog.stories.tsx +89 -84
- package/dist/components/divider/Divider.stories.tsx +86 -60
- package/dist/components/dot-loader/DotLoader.stories.tsx +12 -12
- package/dist/components/drawer/Drawer.stories.tsx +74 -44
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +42 -32
- package/dist/components/helper-text/HelperText.stories.tsx +2 -2
- package/dist/components/hover-card/HoverCard.stories.tsx +211 -178
- package/dist/components/input/Input.stories.tsx +2 -2
- package/dist/components/label/Label.stories.tsx +10 -10
- package/dist/components/list/List.stories.tsx +58 -44
- package/dist/components/marquee/Marquee.stories.tsx +131 -113
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +47 -35
- package/dist/components/overlay/Overlay.stories.tsx +98 -92
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/popover/Popover.stories.tsx +132 -106
- package/dist/components/radio/Radio.stories.tsx +2 -2
- package/dist/components/resizable/Resizable.stories.tsx +186 -138
- package/dist/components/scroll-area/ScrollArea.stories.tsx +174 -120
- package/dist/components/search/Search.stories.tsx +81 -59
- package/dist/components/select/Select.stories.tsx +3 -1
- package/dist/components/sheet/Sheet.stories.tsx +68 -54
- package/dist/components/slider/Slider.stories.tsx +71 -47
- package/dist/components/stepper/Stepper.stories.tsx +16 -16
- package/dist/components/switch/Switch.stories.tsx +12 -12
- package/dist/components/table/Table.stories.tsx +8 -6
- package/dist/components/tabs/Tabs.stories.tsx +324 -268
- package/dist/components/textarea/TextArea.stories.tsx +1 -1
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +16 -10
- package/dist/components/toast/Toast.stories.tsx +51 -45
- package/dist/components/toggle/Toggle.stories.tsx +111 -89
- package/dist/components/tooltip/Tooltip.stories.tsx +160 -144
- package/dist/icons/Icons.stories.tsx +2 -2
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +287 -237
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +290 -248
- package/dist/icons/all-icons.tsx +97 -81
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +312 -270
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +294 -244
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +309 -279
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +294 -258
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +289 -255
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +288 -256
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +322 -288
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +340 -296
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +197 -177
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +390 -328
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +313 -277
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +367 -309
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +356 -308
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +280 -234
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +370 -326
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +300 -256
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +298 -262
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +294 -260
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +291 -259
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +286 -256
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +282 -256
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +292 -256
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +338 -290
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +167 -148
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +342 -296
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +342 -296
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +280 -238
- package/dist/icons/command-icon/CommandIcon.stories.tsx +328 -280
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +294 -256
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +285 -235
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +308 -266
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +271 -231
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +330 -278
- package/dist/icons/email-icon/EmailIcon.stories.tsx +303 -257
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +324 -286
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +317 -271
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +320 -272
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +322 -280
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +315 -277
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +199 -177
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +304 -264
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +311 -277
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +327 -287
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +314 -278
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +113 -98
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +274 -226
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +349 -303
- package/dist/icons/head-icon/HeadIcon.stories.tsx +286 -246
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +312 -268
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +246 -210
- package/dist/icons/image-icon/ImageIcon.stories.tsx +330 -284
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +326 -282
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +330 -294
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +288 -234
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +386 -330
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +305 -263
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +295 -259
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +296 -256
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +322 -282
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +399 -359
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +314 -272
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +238 -206
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +322 -276
- package/dist/icons/message-icon/MessageIcon.stories.tsx +192 -170
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +348 -304
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +191 -167
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +380 -326
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +345 -291
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +310 -266
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +311 -271
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +311 -271
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +309 -271
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +248 -210
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +310 -262
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +274 -236
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +324 -280
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +323 -281
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +288 -240
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +315 -273
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +278 -234
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +161 -151
- package/dist/icons/search-icon/SearchIcon.stories.tsx +324 -284
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +306 -264
- package/dist/icons/share-icon/ShareIcon.stories.tsx +314 -272
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +281 -235
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +309 -250
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +317 -279
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +315 -279
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +299 -253
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +185 -169
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +192 -168
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +212 -178
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +290 -244
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +286 -234
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +272 -230
- package/dist/icons/sun-icon/SunIcon.stories.tsx +262 -226
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +321 -279
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +332 -282
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +394 -342
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +338 -290
- package/dist/icons/tick-icon/TickIcon.stories.tsx +364 -315
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +293 -253
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +396 -338
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +291 -247
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +309 -271
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +336 -290
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +382 -334
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +349 -305
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +327 -295
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +336 -296
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +314 -274
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +311 -261
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -11,9 +11,9 @@ const meta: Meta<typeof FeatureShineIcon> = {
|
|
|
11
11
|
backgrounds: {
|
|
12
12
|
default: "dark",
|
|
13
13
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
14
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
15
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
16
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
17
|
],
|
|
18
18
|
},
|
|
19
19
|
docs: {
|
|
@@ -40,59 +40,59 @@ const meta: Meta<typeof FeatureShineIcon> = {
|
|
|
40
40
|
background: transparent ;
|
|
41
41
|
}
|
|
42
42
|
body {
|
|
43
|
-
background:
|
|
43
|
+
background: var(--color-fm-surface-primary) ;
|
|
44
44
|
}
|
|
45
45
|
#storybook-docs {
|
|
46
|
-
background:
|
|
46
|
+
background: var(--color-fm-surface-primary) ;
|
|
47
47
|
}
|
|
48
48
|
.sbdocs-preview {
|
|
49
49
|
background: transparent ;
|
|
50
50
|
border: none ;
|
|
51
51
|
}
|
|
52
52
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color:
|
|
53
|
+
color: var(--color-fm-icon-active) ;
|
|
54
54
|
}
|
|
55
55
|
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color:
|
|
56
|
+
color: var(--color-fm-secondary) ;
|
|
57
57
|
}
|
|
58
58
|
.sbdocs-code {
|
|
59
|
-
background:
|
|
60
|
-
color:
|
|
61
|
-
border: 1px solid
|
|
59
|
+
background: var(--color-fm-surface-secondary) ;
|
|
60
|
+
color: var(--color-fm-secondary-500) ;
|
|
61
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
62
62
|
}
|
|
63
63
|
.sbdocs-pre {
|
|
64
|
-
background:
|
|
65
|
-
border: 1px solid
|
|
64
|
+
background: var(--color-fm-surface-secondary) ;
|
|
65
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
66
66
|
}
|
|
67
67
|
.sbdocs-table {
|
|
68
|
-
background:
|
|
69
|
-
border: 1px solid
|
|
68
|
+
background: var(--color-fm-surface-secondary) ;
|
|
69
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
70
70
|
}
|
|
71
71
|
.sbdocs-table th {
|
|
72
|
-
background:
|
|
73
|
-
color:
|
|
74
|
-
border-bottom: 1px solid
|
|
72
|
+
background: var(--color-fm-surface-secondary) ;
|
|
73
|
+
color: var(--color-fm-icon-active) ;
|
|
74
|
+
border-bottom: 1px solid var(--color-fm-divider-secondary) ;
|
|
75
75
|
}
|
|
76
76
|
.sbdocs-table td {
|
|
77
|
-
color:
|
|
78
|
-
border-bottom: 1px solid
|
|
77
|
+
color: var(--color-fm-secondary) ;
|
|
78
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
|
|
79
79
|
}
|
|
80
80
|
`}
|
|
81
81
|
</style>
|
|
82
82
|
|
|
83
|
-
<div className="
|
|
83
|
+
<div className="bg-fm-surface-primary min-h-screen">
|
|
84
84
|
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b
|
|
86
|
-
<div className="absolute inset-0 bg-
|
|
85
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
86
|
+
<div className="from-fm-icon-warning/10 to-fm-icon-warning/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
87
87
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
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
|
|
90
|
-
<FeatureShineIcon className="h-12 w-12
|
|
89
|
+
<div className="border-fm-icon-warning/30 from-fm-icon-warning/20 to-fm-icon-warning/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
90
|
+
<FeatureShineIcon className="text-fm-icon-warning h-12 w-12" />
|
|
91
91
|
</div>
|
|
92
92
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
93
|
FeatureShineIcon
|
|
94
94
|
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
95
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
96
96
|
A sparkling star icon for highlighting features,
|
|
97
97
|
achievements, and premium content. Perfect for showcasing
|
|
98
98
|
new features, premium badges, star ratings, and
|
|
@@ -105,28 +105,28 @@ const meta: Meta<typeof FeatureShineIcon> = {
|
|
|
105
105
|
{/* Stats */}
|
|
106
106
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
107
107
|
<div className="text-center">
|
|
108
|
-
<div className="text-3xl font-bold
|
|
108
|
+
<div className="text-fm-icon-warning text-3xl font-bold">
|
|
109
109
|
Premium
|
|
110
110
|
</div>
|
|
111
|
-
<div className="text-
|
|
111
|
+
<div className="text-fm-tertiary text-sm">
|
|
112
112
|
Feature highlights
|
|
113
113
|
</div>
|
|
114
114
|
</div>
|
|
115
|
-
<div className="h-8 w-px
|
|
115
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
116
116
|
<div className="text-center">
|
|
117
|
-
<div className="text-3xl font-bold
|
|
117
|
+
<div className="text-fm-icon-warning text-3xl font-bold">
|
|
118
118
|
Sparkle
|
|
119
119
|
</div>
|
|
120
|
-
<div className="text-
|
|
120
|
+
<div className="text-fm-tertiary text-sm">
|
|
121
121
|
Eye-catching design
|
|
122
122
|
</div>
|
|
123
123
|
</div>
|
|
124
|
-
<div className="h-8 w-px
|
|
124
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
125
125
|
<div className="text-center">
|
|
126
|
-
<div className="text-3xl font-bold
|
|
126
|
+
<div className="text-fm-icon-warning text-3xl font-bold">
|
|
127
127
|
Excellence
|
|
128
128
|
</div>
|
|
129
|
-
<div className="text-
|
|
129
|
+
<div className="text-fm-tertiary text-sm">
|
|
130
130
|
Quality indication
|
|
131
131
|
</div>
|
|
132
132
|
</div>
|
|
@@ -139,16 +139,16 @@ const meta: Meta<typeof FeatureShineIcon> = {
|
|
|
139
139
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
140
140
|
{/* Quick Usage */}
|
|
141
141
|
<div className="!space-y-8">
|
|
142
|
-
<h2 className="text-center text-3xl font-bold
|
|
142
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
143
143
|
Quick Start
|
|
144
144
|
</h2>
|
|
145
145
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
146
146
|
<div className="!space-y-4">
|
|
147
|
-
<h3 className="text-xl font-semibold
|
|
147
|
+
<h3 className="text-fm-icon-warning! text-xl font-semibold">
|
|
148
148
|
Basic Usage
|
|
149
149
|
</h3>
|
|
150
|
-
<div className="rounded-lg
|
|
151
|
-
<pre className="overflow-x-auto text-sm
|
|
150
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
151
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
152
152
|
{`import { FeatureShineIcon } from "@icons/feature-shine-icon"
|
|
153
153
|
|
|
154
154
|
function PremiumFeature() {
|
|
@@ -167,16 +167,16 @@ function PremiumFeature() {
|
|
|
167
167
|
</div>
|
|
168
168
|
|
|
169
169
|
<div className="!space-y-4">
|
|
170
|
-
<h3 className="text-xl font-semibold
|
|
170
|
+
<h3 className="text-fm-icon-warning! text-xl font-semibold">
|
|
171
171
|
Live Preview
|
|
172
172
|
</h3>
|
|
173
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
174
|
-
<div className="flex items-center gap-3 rounded-lg border
|
|
175
|
-
<FeatureShineIcon className="h-5 w-5
|
|
176
|
-
<span className="font-medium
|
|
173
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
174
|
+
<div className="border-fm-icon-warning/20 from-fm-icon-warning/10 to-fm-icon-warning/10 flex items-center gap-3 rounded-lg border bg-linear-to-r px-4 py-2">
|
|
175
|
+
<FeatureShineIcon className="text-fm-icon-warning h-5 w-5" />
|
|
176
|
+
<span className="text-fm-icon-active font-medium">
|
|
177
177
|
Premium Feature
|
|
178
178
|
</span>
|
|
179
|
-
<span className="
|
|
179
|
+
<span className="bg-fm-icon-warning/20 text-fm-icon-warning rounded px-2 py-1 text-xs">
|
|
180
180
|
NEW
|
|
181
181
|
</span>
|
|
182
182
|
</div>
|
|
@@ -187,108 +187,116 @@ function PremiumFeature() {
|
|
|
187
187
|
|
|
188
188
|
{/* Props Documentation */}
|
|
189
189
|
<div className="!space-y-8">
|
|
190
|
-
<h2 className="text-center text-3xl font-bold
|
|
190
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
191
191
|
Props & Configuration
|
|
192
192
|
</h2>
|
|
193
193
|
|
|
194
|
-
<div className="overflow-hidden rounded-lg border
|
|
195
|
-
<div className="bg-
|
|
196
|
-
<h3 className="text-xl font-semibold
|
|
194
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
195
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
196
|
+
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
197
|
+
Props
|
|
198
|
+
</h3>
|
|
197
199
|
</div>
|
|
198
200
|
<table className="!my-0 w-full">
|
|
199
|
-
<thead className="bg-
|
|
200
|
-
<tr className="border-
|
|
201
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
201
|
+
<thead className="bg-fm-surface-secondary">
|
|
202
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
203
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
202
204
|
Prop
|
|
203
205
|
</th>
|
|
204
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
206
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
205
207
|
Type
|
|
206
208
|
</th>
|
|
207
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
209
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
208
210
|
Default
|
|
209
211
|
</th>
|
|
210
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
212
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
211
213
|
Description
|
|
212
214
|
</th>
|
|
213
215
|
</tr>
|
|
214
216
|
</thead>
|
|
215
217
|
<tbody>
|
|
216
218
|
{" "}
|
|
217
|
-
<tr className="
|
|
218
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
219
|
+
<tr className="bg-fm-surface-secondary!">
|
|
220
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
219
221
|
withAccessibility
|
|
220
222
|
</td>
|
|
221
|
-
<td className="px-6 py-4 text-sm
|
|
223
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
222
224
|
boolean
|
|
223
225
|
</td>
|
|
224
|
-
<td className="px-6 py-4 text-sm
|
|
226
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
225
227
|
true
|
|
226
228
|
</td>
|
|
227
|
-
<td className="px-6 py-4 text-sm
|
|
229
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
228
230
|
Whether to wrap the icon with accessibility feature
|
|
229
231
|
</td>
|
|
230
232
|
</tr>
|
|
231
|
-
<tr className="border-
|
|
232
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
233
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
234
|
+
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
233
235
|
height
|
|
234
236
|
</td>
|
|
235
|
-
<td className="px-6 py-4 text-sm
|
|
237
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
236
238
|
number | string
|
|
237
239
|
</td>
|
|
238
|
-
<td className="px-6 py-4 text-sm
|
|
239
|
-
|
|
240
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
241
|
+
20
|
|
242
|
+
</td>
|
|
243
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
240
244
|
Height of the icon in pixels
|
|
241
245
|
</td>
|
|
242
246
|
</tr>
|
|
243
|
-
<tr className="border-
|
|
244
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
247
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
248
|
+
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
245
249
|
stroke
|
|
246
250
|
</td>
|
|
247
|
-
<td className="px-6 py-4 text-sm
|
|
251
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
248
252
|
string
|
|
249
253
|
</td>
|
|
250
|
-
<td className="px-6 py-4 text-sm
|
|
254
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
251
255
|
currentColor
|
|
252
256
|
</td>
|
|
253
|
-
<td className="px-6 py-4 text-sm
|
|
257
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
254
258
|
Stroke color of the icon
|
|
255
259
|
</td>
|
|
256
260
|
</tr>
|
|
257
|
-
<tr className="border-
|
|
258
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
261
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
262
|
+
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
259
263
|
strokeWidth
|
|
260
264
|
</td>
|
|
261
|
-
<td className="px-6 py-4 text-sm
|
|
265
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
262
266
|
string | number
|
|
263
267
|
</td>
|
|
264
|
-
<td className="px-6 py-4 text-sm
|
|
268
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
265
269
|
1.5
|
|
266
270
|
</td>
|
|
267
|
-
<td className="px-6 py-4 text-sm
|
|
271
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
268
272
|
Stroke width of the icon lines
|
|
269
273
|
</td>
|
|
270
274
|
</tr>
|
|
271
|
-
<tr className="border-
|
|
272
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
275
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
276
|
+
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
273
277
|
className
|
|
274
278
|
</td>
|
|
275
|
-
<td className="px-6 py-4 text-sm
|
|
279
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
276
280
|
string
|
|
277
281
|
</td>
|
|
278
|
-
<td className="px-6 py-4 text-sm
|
|
279
|
-
|
|
282
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
283
|
+
-
|
|
284
|
+
</td>
|
|
285
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
280
286
|
CSS classes for styling (use for overrides)
|
|
281
287
|
</td>
|
|
282
288
|
</tr>
|
|
283
|
-
<tr className="
|
|
284
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
289
|
+
<tr className="bg-fm-surface-secondary!">
|
|
290
|
+
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
285
291
|
...svgProps
|
|
286
292
|
</td>
|
|
287
|
-
<td className="px-6 py-4 text-sm
|
|
293
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
288
294
|
SVGProps
|
|
289
295
|
</td>
|
|
290
|
-
<td className="px-6 py-4 text-sm
|
|
291
|
-
|
|
296
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
297
|
+
-
|
|
298
|
+
</td>
|
|
299
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
292
300
|
All standard SVG element props
|
|
293
301
|
</td>
|
|
294
302
|
</tr>
|
|
@@ -299,50 +307,62 @@ function PremiumFeature() {
|
|
|
299
307
|
|
|
300
308
|
{/* Size Variations */}
|
|
301
309
|
<div className="!space-y-8">
|
|
302
|
-
<h2 className="text-center text-3xl font-bold
|
|
310
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
303
311
|
Size Variations
|
|
304
312
|
</h2>
|
|
305
|
-
<div className="rounded-lg border
|
|
313
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
306
314
|
<div className="!space-y-6">
|
|
307
315
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
308
316
|
<div className="!space-y-4">
|
|
309
|
-
<h3 className="text-lg font-semibold
|
|
317
|
+
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
310
318
|
Standard Sizes
|
|
311
319
|
</h3>
|
|
312
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
320
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
313
321
|
<div className="text-center">
|
|
314
|
-
<FeatureShineIcon className="!mx-auto mb-2 h-3 w-3
|
|
315
|
-
<span className="text-
|
|
322
|
+
<FeatureShineIcon className="text-fm-icon-warning !mx-auto mb-2 h-3 w-3" />
|
|
323
|
+
<span className="text-fm-tertiary text-xs">
|
|
324
|
+
12px
|
|
325
|
+
</span>
|
|
316
326
|
</div>
|
|
317
327
|
<div className="text-center">
|
|
318
|
-
<FeatureShineIcon className="!mx-auto mb-2 h-4 w-4
|
|
319
|
-
<span className="text-
|
|
328
|
+
<FeatureShineIcon className="text-fm-icon-warning !mx-auto mb-2 h-4 w-4" />
|
|
329
|
+
<span className="text-fm-tertiary text-xs">
|
|
330
|
+
16px
|
|
331
|
+
</span>
|
|
320
332
|
</div>
|
|
321
333
|
<div className="text-center">
|
|
322
|
-
<FeatureShineIcon className="!mx-auto mb-2 h-5 w-5
|
|
323
|
-
<span className="text-
|
|
334
|
+
<FeatureShineIcon className="text-fm-icon-warning !mx-auto mb-2 h-5 w-5" />
|
|
335
|
+
<span className="text-fm-tertiary text-xs">
|
|
336
|
+
20px
|
|
337
|
+
</span>
|
|
324
338
|
</div>
|
|
325
339
|
<div className="text-center">
|
|
326
|
-
<FeatureShineIcon className="!mx-auto mb-2 h-6 w-6
|
|
327
|
-
<span className="text-
|
|
340
|
+
<FeatureShineIcon className="text-fm-icon-warning !mx-auto mb-2 h-6 w-6" />
|
|
341
|
+
<span className="text-fm-tertiary text-xs">
|
|
342
|
+
24px
|
|
343
|
+
</span>
|
|
328
344
|
</div>
|
|
329
345
|
<div className="text-center">
|
|
330
|
-
<FeatureShineIcon className="!mx-auto mb-2 h-8 w-8
|
|
331
|
-
<span className="text-
|
|
346
|
+
<FeatureShineIcon className="text-fm-icon-warning !mx-auto mb-2 h-8 w-8" />
|
|
347
|
+
<span className="text-fm-tertiary text-xs">
|
|
348
|
+
32px
|
|
349
|
+
</span>
|
|
332
350
|
</div>
|
|
333
351
|
<div className="text-center">
|
|
334
|
-
<FeatureShineIcon className="!mx-auto mb-2 h-12 w-12
|
|
335
|
-
<span className="text-
|
|
352
|
+
<FeatureShineIcon className="text-fm-icon-warning !mx-auto mb-2 h-12 w-12" />
|
|
353
|
+
<span className="text-fm-tertiary text-xs">
|
|
354
|
+
48px
|
|
355
|
+
</span>
|
|
336
356
|
</div>
|
|
337
357
|
</div>
|
|
338
358
|
</div>
|
|
339
359
|
|
|
340
360
|
<div className="!space-y-4">
|
|
341
|
-
<h3 className="text-lg font-semibold
|
|
361
|
+
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
342
362
|
Code Example
|
|
343
363
|
</h3>
|
|
344
|
-
<div className="rounded-lg
|
|
345
|
-
<pre className="overflow-x-auto text-sm
|
|
364
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
365
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
346
366
|
{`// Small (16px)
|
|
347
367
|
<FeatureShineIcon className="h-4 w-4 " />
|
|
348
368
|
|
|
@@ -368,56 +388,56 @@ function PremiumFeature() {
|
|
|
368
388
|
|
|
369
389
|
{/* Color Variations */}
|
|
370
390
|
<div className="!space-y-8">
|
|
371
|
-
<h2 className="text-center text-3xl font-bold
|
|
391
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
372
392
|
Color Variations
|
|
373
393
|
</h2>
|
|
374
394
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
375
395
|
<div className="!space-y-4">
|
|
376
|
-
<h3 className="text-lg font-semibold
|
|
396
|
+
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
377
397
|
Semantic Colors
|
|
378
398
|
</h3>
|
|
379
|
-
<div className="!space-y-4 rounded-lg border
|
|
399
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
380
400
|
<div className="flex items-center gap-4">
|
|
381
|
-
<FeatureShineIcon className="h-6 w-6
|
|
401
|
+
<FeatureShineIcon className="text-fm-icon-warning h-6 w-6" />
|
|
382
402
|
<div>
|
|
383
|
-
<div className="text-sm font-medium
|
|
403
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
384
404
|
Premium / Gold
|
|
385
405
|
</div>
|
|
386
|
-
<div className="text-
|
|
387
|
-
text-
|
|
406
|
+
<div className="text-fm-tertiary text-xs">
|
|
407
|
+
text-fm-icon-warning
|
|
388
408
|
</div>
|
|
389
409
|
</div>
|
|
390
410
|
</div>
|
|
391
411
|
<div className="flex items-center gap-4">
|
|
392
|
-
<FeatureShineIcon className="h-6 w-6
|
|
412
|
+
<FeatureShineIcon className="text-fm-icon-warning h-6 w-6" />
|
|
393
413
|
<div>
|
|
394
|
-
<div className="text-sm font-medium
|
|
414
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
395
415
|
Featured
|
|
396
416
|
</div>
|
|
397
|
-
<div className="text-
|
|
398
|
-
text-
|
|
417
|
+
<div className="text-fm-tertiary text-xs">
|
|
418
|
+
text-fm-icon-warning
|
|
399
419
|
</div>
|
|
400
420
|
</div>
|
|
401
421
|
</div>
|
|
402
422
|
<div className="flex items-center gap-4">
|
|
403
|
-
<FeatureShineIcon className="h-6 w-6
|
|
423
|
+
<FeatureShineIcon className="text-fm-icon-warning h-6 w-6" />
|
|
404
424
|
<div>
|
|
405
|
-
<div className="text-sm font-medium
|
|
425
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
406
426
|
Highlight
|
|
407
427
|
</div>
|
|
408
|
-
<div className="text-
|
|
409
|
-
text-
|
|
428
|
+
<div className="text-fm-tertiary text-xs">
|
|
429
|
+
text-fm-icon-warning
|
|
410
430
|
</div>
|
|
411
431
|
</div>
|
|
412
432
|
</div>
|
|
413
433
|
<div className="flex items-center gap-4">
|
|
414
|
-
<FeatureShineIcon className="h-6 w-6
|
|
434
|
+
<FeatureShineIcon className="text-fm-icon-active h-6 w-6" />
|
|
415
435
|
<div>
|
|
416
|
-
<div className="text-sm font-medium
|
|
436
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
417
437
|
Platinum
|
|
418
438
|
</div>
|
|
419
|
-
<div className="text-
|
|
420
|
-
text-
|
|
439
|
+
<div className="text-fm-tertiary text-xs">
|
|
440
|
+
text-fm-icon-active
|
|
421
441
|
</div>
|
|
422
442
|
</div>
|
|
423
443
|
</div>
|
|
@@ -425,11 +445,11 @@ function PremiumFeature() {
|
|
|
425
445
|
</div>
|
|
426
446
|
|
|
427
447
|
<div className="!space-y-4">
|
|
428
|
-
<h3 className="text-lg font-semibold
|
|
448
|
+
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
429
449
|
Custom Colors
|
|
430
450
|
</h3>
|
|
431
|
-
<div className="rounded-lg
|
|
432
|
-
<pre className="overflow-x-auto text-sm
|
|
451
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
452
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
433
453
|
{`// Using Tailwind classes with
|
|
434
454
|
<FeatureShineIcon className="h-6 w-6 text-yellow-400 " />
|
|
435
455
|
<FeatureShineIcon className="h-6 w-6 text-amber-500 " />
|
|
@@ -455,42 +475,42 @@ function PremiumFeature() {
|
|
|
455
475
|
|
|
456
476
|
{/* Usage Examples */}
|
|
457
477
|
<div className="!space-y-8">
|
|
458
|
-
<h2 className="text-center text-3xl font-bold
|
|
478
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
459
479
|
Usage Examples
|
|
460
480
|
</h2>
|
|
461
481
|
|
|
462
482
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
463
483
|
{/* Premium Badge */}
|
|
464
484
|
<div className="!space-y-4">
|
|
465
|
-
<h3 className="text-lg font-semibold
|
|
485
|
+
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
466
486
|
Premium Badge
|
|
467
487
|
</h3>
|
|
468
488
|
<div className="!space-y-4">
|
|
469
|
-
<div className="
|
|
489
|
+
<div className="border-fm-icon-warning/20 from-fm-icon-warning/10 to-fm-icon-warning/10 rounded-lg border bg-linear-to-r p-4">
|
|
470
490
|
<div className="flex items-start gap-3">
|
|
471
|
-
<FeatureShineIcon className="mt-0.5 h-5 w-5 flex-shrink-0
|
|
491
|
+
<FeatureShineIcon className="text-fm-icon-warning mt-0.5 h-5 w-5 flex-shrink-0" />
|
|
472
492
|
<div>
|
|
473
|
-
<h4 className="font-medium
|
|
493
|
+
<h4 className="text-fm-icon-warning! font-medium">
|
|
474
494
|
Premium Plan
|
|
475
495
|
</h4>
|
|
476
|
-
<p className="text-
|
|
496
|
+
<p className="text-fm-icon-warning!/80 text-sm">
|
|
477
497
|
Unlock all premium features and get priority
|
|
478
498
|
support.
|
|
479
499
|
</p>
|
|
480
500
|
<div className="mt-2 flex gap-2">
|
|
481
|
-
<span className="inline-flex items-center rounded
|
|
501
|
+
<span className="bg-fm-icon-warning/20 text-fm-icon-warning inline-flex items-center rounded px-2 py-1 text-xs">
|
|
482
502
|
<FeatureShineIcon className="mr-1 h-3 w-3" />
|
|
483
503
|
Premium
|
|
484
504
|
</span>
|
|
485
|
-
<span className="inline-flex items-center rounded
|
|
505
|
+
<span className="bg-fm-icon-warning/20 text-fm-icon-warning inline-flex items-center rounded px-2 py-1 text-xs">
|
|
486
506
|
Featured
|
|
487
507
|
</span>
|
|
488
508
|
</div>
|
|
489
509
|
</div>
|
|
490
510
|
</div>
|
|
491
511
|
</div>
|
|
492
|
-
<div className="rounded-lg
|
|
493
|
-
<pre className="overflow-x-auto text-sm
|
|
512
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
513
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
494
514
|
{`<div className="border border-yellow-500/20 bg-gradient-to-r from-yellow-500/10 to-amber-500/10 p-4 rounded-lg">
|
|
495
515
|
<div className="flex items-start gap-3">
|
|
496
516
|
<FeatureShineIcon className="h-5 w-5 text-yellow-400 mt-0.5 flex-shrink-0 " />
|
|
@@ -513,56 +533,56 @@ function PremiumFeature() {
|
|
|
513
533
|
|
|
514
534
|
{/* Feature Highlight */}
|
|
515
535
|
<div className="!space-y-4">
|
|
516
|
-
<h3 className="text-lg font-semibold
|
|
536
|
+
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
517
537
|
Feature Highlight
|
|
518
538
|
</h3>
|
|
519
539
|
<div className="!space-y-4">
|
|
520
540
|
<div className="!space-y-3">
|
|
521
|
-
<div className="flex items-center justify-between rounded-lg border
|
|
541
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4">
|
|
522
542
|
<div className="flex items-center gap-3">
|
|
523
|
-
<FeatureShineIcon className="h-5 w-5
|
|
543
|
+
<FeatureShineIcon className="text-fm-icon-warning h-5 w-5" />
|
|
524
544
|
<div>
|
|
525
|
-
<div className="text-sm font-medium
|
|
545
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
526
546
|
Advanced Analytics
|
|
527
547
|
</div>
|
|
528
|
-
<div className="text-
|
|
548
|
+
<div className="text-fm-tertiary text-xs">
|
|
529
549
|
New feature available
|
|
530
550
|
</div>
|
|
531
551
|
</div>
|
|
532
552
|
</div>
|
|
533
553
|
<div className="flex items-center">
|
|
534
|
-
<span className="mr-3 text-xs
|
|
554
|
+
<span className="text-fm-icon-warning mr-3 text-xs">
|
|
535
555
|
NEW
|
|
536
556
|
</span>
|
|
537
|
-
<div className="relative h-6 w-11 rounded-full
|
|
538
|
-
<div className="absolute top-1 right-1 h-4 w-4 rounded-full
|
|
557
|
+
<div className="bg-fm-icon-warning relative h-6 w-11 rounded-full">
|
|
558
|
+
<div className="bg-fm-surface-contrast absolute top-1 right-1 h-4 w-4 rounded-full transition-transform"></div>
|
|
539
559
|
</div>
|
|
540
560
|
</div>
|
|
541
561
|
</div>
|
|
542
|
-
<div className="flex items-center justify-between rounded-lg border
|
|
562
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4">
|
|
543
563
|
<div className="flex items-center gap-3">
|
|
544
|
-
<FeatureShineIcon className="h-5 w-5
|
|
564
|
+
<FeatureShineIcon className="text-fm-icon-warning h-5 w-5" />
|
|
545
565
|
<div>
|
|
546
|
-
<div className="text-sm font-medium
|
|
566
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
547
567
|
AI-Powered Insights
|
|
548
568
|
</div>
|
|
549
|
-
<div className="text-
|
|
569
|
+
<div className="text-fm-tertiary text-xs">
|
|
550
570
|
Enhanced with machine learning
|
|
551
571
|
</div>
|
|
552
572
|
</div>
|
|
553
573
|
</div>
|
|
554
574
|
<div className="flex items-center">
|
|
555
|
-
<span className="mr-3 text-xs
|
|
575
|
+
<span className="text-fm-icon-warning mr-3 text-xs">
|
|
556
576
|
Pro
|
|
557
577
|
</span>
|
|
558
|
-
<div className="relative h-6 w-11 rounded-full
|
|
559
|
-
<div className="absolute top-1 right-1 h-4 w-4 rounded-full
|
|
578
|
+
<div className="bg-fm-icon-warning relative h-6 w-11 rounded-full">
|
|
579
|
+
<div className="bg-fm-surface-contrast absolute top-1 right-1 h-4 w-4 rounded-full transition-transform"></div>
|
|
560
580
|
</div>
|
|
561
581
|
</div>
|
|
562
582
|
</div>
|
|
563
583
|
</div>
|
|
564
|
-
<div className="rounded-lg
|
|
565
|
-
<pre className="overflow-x-auto text-sm
|
|
584
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
585
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
566
586
|
{`// Feature toggle with shine icon
|
|
567
587
|
<div className="flex items-center justify-between p-4 border border-white/10 bg-white/5 rounded-lg">
|
|
568
588
|
<div className="flex items-center gap-3">
|
|
@@ -581,46 +601,46 @@ function PremiumFeature() {
|
|
|
581
601
|
|
|
582
602
|
{/* Star Rating */}
|
|
583
603
|
<div className="!space-y-4">
|
|
584
|
-
<h3 className="text-lg font-semibold
|
|
604
|
+
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
585
605
|
Star Rating
|
|
586
606
|
</h3>
|
|
587
607
|
<div className="!space-y-4">
|
|
588
|
-
<div className="rounded-lg border
|
|
608
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
589
609
|
<div className="!space-y-3">
|
|
590
610
|
<div className="flex items-center justify-between">
|
|
591
|
-
<span className="font-medium
|
|
611
|
+
<span className="text-fm-icon-active font-medium">
|
|
592
612
|
Product Quality
|
|
593
613
|
</span>
|
|
594
614
|
<div className="flex items-center gap-1">
|
|
595
|
-
<FeatureShineIcon className="h-4 w-4
|
|
596
|
-
<FeatureShineIcon className="h-4 w-4
|
|
597
|
-
<FeatureShineIcon className="h-4 w-4
|
|
598
|
-
<FeatureShineIcon className="h-4 w-4
|
|
599
|
-
<FeatureShineIcon className="h-4 w-4
|
|
600
|
-
<span className="ml-2 text-sm
|
|
615
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
616
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
617
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
618
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
619
|
+
<FeatureShineIcon className="text-fm-secondary h-4 w-4" />
|
|
620
|
+
<span className="text-fm-tertiary ml-2 text-sm">
|
|
601
621
|
4.0
|
|
602
622
|
</span>
|
|
603
623
|
</div>
|
|
604
624
|
</div>
|
|
605
625
|
<div className="flex items-center justify-between">
|
|
606
|
-
<span className="font-medium
|
|
626
|
+
<span className="text-fm-icon-active font-medium">
|
|
607
627
|
Customer Service
|
|
608
628
|
</span>
|
|
609
629
|
<div className="flex items-center gap-1">
|
|
610
|
-
<FeatureShineIcon className="h-4 w-4
|
|
611
|
-
<FeatureShineIcon className="h-4 w-4
|
|
612
|
-
<FeatureShineIcon className="h-4 w-4
|
|
613
|
-
<FeatureShineIcon className="h-4 w-4
|
|
614
|
-
<FeatureShineIcon className="h-4 w-4
|
|
615
|
-
<span className="ml-2 text-sm
|
|
630
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
631
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
632
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
633
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
634
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
635
|
+
<span className="text-fm-tertiary ml-2 text-sm">
|
|
616
636
|
5.0
|
|
617
637
|
</span>
|
|
618
638
|
</div>
|
|
619
639
|
</div>
|
|
620
640
|
</div>
|
|
621
641
|
</div>
|
|
622
|
-
<div className="rounded-lg
|
|
623
|
-
<pre className="overflow-x-auto text-sm
|
|
642
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
643
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
624
644
|
{`// Star rating component
|
|
625
645
|
<div className="flex items-center gap-1">
|
|
626
646
|
{[1, 2, 3, 4, 5].map((star) => (
|
|
@@ -638,30 +658,30 @@ function PremiumFeature() {
|
|
|
638
658
|
|
|
639
659
|
{/* Achievement Badge */}
|
|
640
660
|
<div className="!space-y-4">
|
|
641
|
-
<h3 className="text-lg font-semibold
|
|
661
|
+
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
642
662
|
Achievement Badge
|
|
643
663
|
</h3>
|
|
644
664
|
<div className="!space-y-4">
|
|
645
|
-
<div className="
|
|
665
|
+
<div className="border-fm-icon-warning/20 bg-fm-icon-warning/10 rounded-lg border p-4">
|
|
646
666
|
<div className="text-center">
|
|
647
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-full border-2
|
|
648
|
-
<FeatureShineIcon className="h-8 w-8
|
|
667
|
+
<div className="border-fm-icon-warning/30 from-fm-icon-warning/20 to-fm-icon-warning/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-full border-2 bg-linear-to-br">
|
|
668
|
+
<FeatureShineIcon className="text-fm-icon-warning h-8 w-8" />
|
|
649
669
|
</div>
|
|
650
|
-
<h4 className="font-bold
|
|
670
|
+
<h4 className="text-fm-icon-warning! font-bold">
|
|
651
671
|
Top Performer
|
|
652
672
|
</h4>
|
|
653
|
-
<p className="text-
|
|
673
|
+
<p className="text-fm-icon-warning!/80 text-sm">
|
|
654
674
|
Congratulations! You've earned the top performer
|
|
655
675
|
badge.
|
|
656
676
|
</p>
|
|
657
|
-
<div className="mt-3 inline-flex items-center gap-2 rounded-full
|
|
677
|
+
<div className="bg-fm-icon-warning/20 text-fm-icon-warning mt-3 inline-flex items-center gap-2 rounded-full px-3 py-1 text-xs">
|
|
658
678
|
<FeatureShineIcon className="h-3 w-3" />
|
|
659
679
|
Achievement Unlocked
|
|
660
680
|
</div>
|
|
661
681
|
</div>
|
|
662
682
|
</div>
|
|
663
|
-
<div className="rounded-lg
|
|
664
|
-
<pre className="overflow-x-auto text-sm
|
|
683
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
684
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
665
685
|
{`// Achievement badge
|
|
666
686
|
<div className="text-center border border-amber-500/20 bg-amber-500/10 p-4 rounded-lg">
|
|
667
687
|
<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">
|
|
@@ -682,65 +702,65 @@ function PremiumFeature() {
|
|
|
682
702
|
|
|
683
703
|
{/* Accessibility */}
|
|
684
704
|
<div className="!space-y-8">
|
|
685
|
-
<h2 className="text-center text-3xl font-bold
|
|
705
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
686
706
|
Accessibility Features
|
|
687
707
|
</h2>
|
|
688
708
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
689
|
-
<div className="!space-y-4 rounded-lg border
|
|
690
|
-
<h3 className="text-lg font-semibold
|
|
709
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
710
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
691
711
|
✅ Built-in Features
|
|
692
712
|
</h3>
|
|
693
|
-
<ul className="!space-y-2 text-sm
|
|
694
|
-
<li className="
|
|
713
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
714
|
+
<li className="text-fm-secondary!">
|
|
695
715
|
Uses Radix UI AccessibleIcon wrapper
|
|
696
716
|
</li>
|
|
697
|
-
<li className="
|
|
717
|
+
<li className="text-fm-secondary!">
|
|
698
718
|
Provides screen reader label "Shine icon"
|
|
699
719
|
</li>
|
|
700
|
-
<li className="
|
|
720
|
+
<li className="text-fm-secondary!">
|
|
701
721
|
Supports keyboard navigation when interactive
|
|
702
722
|
</li>
|
|
703
|
-
<li className="
|
|
723
|
+
<li className="text-fm-secondary!">
|
|
704
724
|
Maintains proper color contrast ratios
|
|
705
725
|
</li>
|
|
706
|
-
<li className="
|
|
726
|
+
<li className="text-fm-secondary!">
|
|
707
727
|
Scales with user's font size preferences
|
|
708
728
|
</li>
|
|
709
729
|
</ul>
|
|
710
730
|
</div>
|
|
711
731
|
|
|
712
|
-
<div className="!space-y-4 rounded-lg border
|
|
713
|
-
<h3 className="text-lg font-semibold
|
|
732
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
733
|
+
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
714
734
|
💡 Best Practices
|
|
715
735
|
</h3>
|
|
716
|
-
<ul className="!space-y-2 text-sm
|
|
717
|
-
<li className="
|
|
736
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
737
|
+
<li className="text-fm-secondary!">
|
|
718
738
|
Always pair with descriptive text for context
|
|
719
739
|
</li>
|
|
720
|
-
<li className="
|
|
740
|
+
<li className="text-fm-secondary!">
|
|
721
741
|
Use consistent colors for premium/featured content
|
|
722
742
|
</li>
|
|
723
|
-
<li className="
|
|
743
|
+
<li className="text-fm-secondary!">
|
|
724
744
|
Ensure sufficient color contrast for visibility
|
|
725
745
|
</li>
|
|
726
|
-
<li className="
|
|
746
|
+
<li className="text-fm-secondary!">
|
|
727
747
|
Consider sparkle animations sparingly to avoid
|
|
728
748
|
distraction
|
|
729
749
|
</li>
|
|
730
|
-
<li className="
|
|
750
|
+
<li className="text-fm-secondary!">
|
|
731
751
|
Provide alternative text for decorative usage
|
|
732
752
|
</li>
|
|
733
753
|
</ul>
|
|
734
754
|
</div>
|
|
735
755
|
</div>
|
|
736
756
|
|
|
737
|
-
<div className="rounded-lg border
|
|
738
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
757
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
758
|
+
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
739
759
|
Proper ARIA Implementation
|
|
740
760
|
</h3>
|
|
741
761
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
742
|
-
<div className="rounded-lg
|
|
743
|
-
<pre className="overflow-x-auto text-sm
|
|
762
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
763
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
744
764
|
{`// Rating with proper ARIA
|
|
745
765
|
<div role="img" aria-label="4 out of 5 stars rating">
|
|
746
766
|
{[1, 2, 3, 4, 5].map((star) => (
|
|
@@ -766,14 +786,14 @@ function PremiumFeature() {
|
|
|
766
786
|
</pre>
|
|
767
787
|
</div>
|
|
768
788
|
<div className="!space-y-4">
|
|
769
|
-
<p className="text-
|
|
789
|
+
<p className="text-fm-secondary! text-sm">
|
|
770
790
|
When using FeatureShineIcon for ratings or decorative
|
|
771
791
|
purposes, use aria-hidden="true" and provide meaningful
|
|
772
792
|
context through surrounding elements or aria-label
|
|
773
793
|
attributes.
|
|
774
794
|
</p>
|
|
775
|
-
<div className="
|
|
776
|
-
<div className="flex items-center gap-2 text-sm
|
|
795
|
+
<div className="border-fm-icon-warning/20 bg-fm-icon-warning/10 rounded-lg border p-4">
|
|
796
|
+
<div className="text-fm-icon-warning flex items-center gap-2 text-sm">
|
|
777
797
|
<FeatureShineIcon className="h-4 w-4" />
|
|
778
798
|
<span>
|
|
779
799
|
Screen readers need context about premium features
|
|
@@ -787,44 +807,60 @@ function PremiumFeature() {
|
|
|
787
807
|
|
|
788
808
|
{/* Related Icons */}
|
|
789
809
|
<div className="!space-y-8">
|
|
790
|
-
<h2 className="text-center text-3xl font-bold
|
|
810
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
791
811
|
Related Icons
|
|
792
812
|
</h2>
|
|
793
813
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
794
|
-
<div className="!space-y-3 rounded-lg border
|
|
795
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
814
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
815
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
796
816
|
<span className="text-2xl">⭐</span>
|
|
797
817
|
</div>
|
|
798
818
|
<div>
|
|
799
|
-
<div className="font-medium
|
|
800
|
-
|
|
819
|
+
<div className="text-fm-icon-active font-medium">
|
|
820
|
+
StarIcon
|
|
821
|
+
</div>
|
|
822
|
+
<div className="text-fm-tertiary text-xs">
|
|
823
|
+
Basic rating
|
|
824
|
+
</div>
|
|
801
825
|
</div>
|
|
802
826
|
</div>
|
|
803
|
-
<div className="!space-y-3 rounded-lg border
|
|
804
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
827
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
828
|
+
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
805
829
|
<span className="text-2xl">🏆</span>
|
|
806
830
|
</div>
|
|
807
831
|
<div>
|
|
808
|
-
<div className="font-medium
|
|
809
|
-
|
|
832
|
+
<div className="text-fm-icon-active font-medium">
|
|
833
|
+
TrophyIcon
|
|
834
|
+
</div>
|
|
835
|
+
<div className="text-fm-tertiary text-xs">
|
|
836
|
+
Achievement
|
|
837
|
+
</div>
|
|
810
838
|
</div>
|
|
811
839
|
</div>
|
|
812
|
-
<div className="!space-y-3 rounded-lg border
|
|
813
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
840
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
841
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
814
842
|
<span className="text-2xl">👑</span>
|
|
815
843
|
</div>
|
|
816
844
|
<div>
|
|
817
|
-
<div className="font-medium
|
|
818
|
-
|
|
845
|
+
<div className="text-fm-icon-active font-medium">
|
|
846
|
+
CrownIcon
|
|
847
|
+
</div>
|
|
848
|
+
<div className="text-fm-tertiary text-xs">
|
|
849
|
+
Premium tier
|
|
850
|
+
</div>
|
|
819
851
|
</div>
|
|
820
852
|
</div>
|
|
821
|
-
<div className="!space-y-3 rounded-lg border
|
|
822
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
853
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
854
|
+
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
823
855
|
<span className="text-2xl">🔥</span>
|
|
824
856
|
</div>
|
|
825
857
|
<div>
|
|
826
|
-
<div className="font-medium
|
|
827
|
-
|
|
858
|
+
<div className="text-fm-icon-active font-medium">
|
|
859
|
+
FireIcon
|
|
860
|
+
</div>
|
|
861
|
+
<div className="text-fm-tertiary text-xs">
|
|
862
|
+
Hot/trending
|
|
863
|
+
</div>
|
|
828
864
|
</div>
|
|
829
865
|
</div>
|
|
830
866
|
</div>
|
|
@@ -832,14 +868,14 @@ function PremiumFeature() {
|
|
|
832
868
|
</div>
|
|
833
869
|
|
|
834
870
|
{/* Footer */}
|
|
835
|
-
<div className="border-
|
|
871
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
836
872
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
837
873
|
<div className="!space-y-4 text-center">
|
|
838
|
-
<p className="
|
|
874
|
+
<p className="text-fm-tertiary!">
|
|
839
875
|
FeatureShineIcon is part of the Aural UI icon library, built
|
|
840
876
|
with premium quality and accessibility in mind.
|
|
841
877
|
</p>
|
|
842
|
-
<p className="text-
|
|
878
|
+
<p className="text-fm-placeholder! text-sm">
|
|
843
879
|
All icons use Radix UI's AccessibleIcon for screen reader
|
|
844
880
|
compatibility and follow WCAG guidelines.
|
|
845
881
|
</p>
|
|
@@ -888,20 +924,20 @@ const storyParameters = {
|
|
|
888
924
|
backgrounds: {
|
|
889
925
|
default: "dark",
|
|
890
926
|
values: [
|
|
891
|
-
{ name: "dark", value: "
|
|
892
|
-
{ name: "darker", value: "
|
|
927
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
928
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
893
929
|
],
|
|
894
930
|
},
|
|
895
931
|
}
|
|
896
932
|
|
|
897
933
|
export const Default: Story = {
|
|
898
934
|
args: {
|
|
899
|
-
className: "h-6 w-6 text-
|
|
935
|
+
className: "h-6 w-6 text-fm-icon-warning ",
|
|
900
936
|
withAccessibility: true,
|
|
901
937
|
},
|
|
902
938
|
parameters: storyParameters,
|
|
903
939
|
render: (args) => (
|
|
904
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
940
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-32 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
905
941
|
<FeatureShineIcon {...args} />
|
|
906
942
|
</div>
|
|
907
943
|
),
|
|
@@ -918,30 +954,30 @@ export const SizeVariations: Story = {
|
|
|
918
954
|
},
|
|
919
955
|
},
|
|
920
956
|
render: () => (
|
|
921
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
957
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
|
|
922
958
|
<div className="text-center">
|
|
923
|
-
<FeatureShineIcon className="!mx-auto mb-2 h-3 w-3
|
|
924
|
-
<span className="text-
|
|
959
|
+
<FeatureShineIcon className="text-fm-icon-warning !mx-auto mb-2 h-3 w-3" />
|
|
960
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
925
961
|
</div>
|
|
926
962
|
<div className="text-center">
|
|
927
|
-
<FeatureShineIcon className="!mx-auto mb-2 h-4 w-4
|
|
928
|
-
<span className="text-
|
|
963
|
+
<FeatureShineIcon className="text-fm-icon-warning !mx-auto mb-2 h-4 w-4" />
|
|
964
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
929
965
|
</div>
|
|
930
966
|
<div className="text-center">
|
|
931
|
-
<FeatureShineIcon className="!mx-auto mb-2 h-5 w-5
|
|
932
|
-
<span className="text-
|
|
967
|
+
<FeatureShineIcon className="text-fm-icon-warning !mx-auto mb-2 h-5 w-5" />
|
|
968
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
933
969
|
</div>
|
|
934
970
|
<div className="text-center">
|
|
935
|
-
<FeatureShineIcon className="!mx-auto mb-2 h-6 w-6
|
|
936
|
-
<span className="text-
|
|
971
|
+
<FeatureShineIcon className="text-fm-icon-warning !mx-auto mb-2 h-6 w-6" />
|
|
972
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
937
973
|
</div>
|
|
938
974
|
<div className="text-center">
|
|
939
|
-
<FeatureShineIcon className="!mx-auto mb-2 h-8 w-8
|
|
940
|
-
<span className="text-
|
|
975
|
+
<FeatureShineIcon className="text-fm-icon-warning !mx-auto mb-2 h-8 w-8" />
|
|
976
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
941
977
|
</div>
|
|
942
978
|
<div className="text-center">
|
|
943
|
-
<FeatureShineIcon className="!mx-auto mb-2 h-12 w-12
|
|
944
|
-
<span className="text-
|
|
979
|
+
<FeatureShineIcon className="text-fm-icon-warning !mx-auto mb-2 h-12 w-12" />
|
|
980
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
945
981
|
</div>
|
|
946
982
|
</div>
|
|
947
983
|
),
|
|
@@ -958,34 +994,34 @@ export const ColorVariations: Story = {
|
|
|
958
994
|
},
|
|
959
995
|
},
|
|
960
996
|
render: () => (
|
|
961
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
997
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-linear-to-br p-8 md:grid-cols-4">
|
|
962
998
|
<div className="text-center">
|
|
963
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
964
|
-
<FeatureShineIcon className="h-8 w-8
|
|
999
|
+
<div className="border-fm-icon-warning/30 bg-fm-icon-warning/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1000
|
+
<FeatureShineIcon className="text-fm-icon-warning h-8 w-8" />
|
|
965
1001
|
</div>
|
|
966
|
-
<div className="text-sm font-medium
|
|
967
|
-
<div className="text-
|
|
1002
|
+
<div className="text-fm-icon-active text-sm font-medium">Premium</div>
|
|
1003
|
+
<div className="text-fm-icon-warning text-xs">text-fm-icon-warning</div>
|
|
968
1004
|
</div>
|
|
969
1005
|
<div className="text-center">
|
|
970
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
971
|
-
<FeatureShineIcon className="h-8 w-8
|
|
1006
|
+
<div className="border-fm-icon-warning/30 bg-fm-icon-warning/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1007
|
+
<FeatureShineIcon className="text-fm-icon-warning h-8 w-8" />
|
|
972
1008
|
</div>
|
|
973
|
-
<div className="text-sm font-medium
|
|
974
|
-
<div className="text-
|
|
1009
|
+
<div className="text-fm-icon-active text-sm font-medium">Featured</div>
|
|
1010
|
+
<div className="text-fm-icon-warning text-xs">text-fm-icon-warning</div>
|
|
975
1011
|
</div>
|
|
976
1012
|
<div className="text-center">
|
|
977
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
978
|
-
<FeatureShineIcon className="h-8 w-8
|
|
1013
|
+
<div className="border-fm-icon-warning/30 bg-fm-icon-warning/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1014
|
+
<FeatureShineIcon className="text-fm-icon-warning h-8 w-8" />
|
|
979
1015
|
</div>
|
|
980
|
-
<div className="text-sm font-medium
|
|
981
|
-
<div className="text-
|
|
1016
|
+
<div className="text-fm-icon-active text-sm font-medium">Highlight</div>
|
|
1017
|
+
<div className="text-fm-icon-warning text-xs">text-fm-icon-warning</div>
|
|
982
1018
|
</div>
|
|
983
1019
|
<div className="text-center">
|
|
984
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
985
|
-
<FeatureShineIcon className="h-8 w-8
|
|
1020
|
+
<div className="border-fm-divider-primary bg-fm-icon-inactive/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1021
|
+
<FeatureShineIcon className="text-fm-icon-active h-8 w-8" />
|
|
986
1022
|
</div>
|
|
987
|
-
<div className="text-sm font-medium
|
|
988
|
-
<div className="text-
|
|
1023
|
+
<div className="text-fm-icon-active text-sm font-medium">Platinum</div>
|
|
1024
|
+
<div className="text-fm-tertiary text-xs">text-fm-icon-active</div>
|
|
989
1025
|
</div>
|
|
990
1026
|
</div>
|
|
991
1027
|
),
|
|
@@ -1002,16 +1038,18 @@ export const UsageExamples: Story = {
|
|
|
1002
1038
|
},
|
|
1003
1039
|
},
|
|
1004
1040
|
render: () => (
|
|
1005
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
1041
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
1006
1042
|
{/* Premium Badge */}
|
|
1007
1043
|
<div className="!space-y-2">
|
|
1008
|
-
<h3 className="text-sm font-medium
|
|
1009
|
-
|
|
1044
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1045
|
+
Premium Badge
|
|
1046
|
+
</h3>
|
|
1047
|
+
<div className="border-fm-icon-warning/20 from-fm-icon-warning/10 to-fm-icon-warning/10 rounded-lg border bg-linear-to-r p-4">
|
|
1010
1048
|
<div className="flex items-start gap-3">
|
|
1011
|
-
<FeatureShineIcon className="mt-0.5 h-5 w-5 flex-shrink-0
|
|
1049
|
+
<FeatureShineIcon className="text-fm-icon-warning mt-0.5 h-5 w-5 flex-shrink-0" />
|
|
1012
1050
|
<div>
|
|
1013
|
-
<h4 className="font-medium
|
|
1014
|
-
<p className="text-
|
|
1051
|
+
<h4 className="text-fm-icon-warning font-medium">Premium Plan</h4>
|
|
1052
|
+
<p className="text-fm-icon-warning/80 text-sm">
|
|
1015
1053
|
Unlock all premium features and get priority support.
|
|
1016
1054
|
</p>
|
|
1017
1055
|
</div>
|
|
@@ -1021,29 +1059,33 @@ export const UsageExamples: Story = {
|
|
|
1021
1059
|
|
|
1022
1060
|
{/* Star Rating */}
|
|
1023
1061
|
<div className="!space-y-2">
|
|
1024
|
-
<h3 className="text-sm font-medium
|
|
1025
|
-
<div className="flex items-center justify-between rounded-lg border
|
|
1026
|
-
<span className="font-medium
|
|
1062
|
+
<h3 className="text-fm-icon-active text-sm font-medium">Star Rating</h3>
|
|
1063
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4">
|
|
1064
|
+
<span className="text-fm-icon-active font-medium">
|
|
1065
|
+
Product Quality
|
|
1066
|
+
</span>
|
|
1027
1067
|
<div className="flex items-center gap-1">
|
|
1028
|
-
<FeatureShineIcon className="h-4 w-4
|
|
1029
|
-
<FeatureShineIcon className="h-4 w-4
|
|
1030
|
-
<FeatureShineIcon className="h-4 w-4
|
|
1031
|
-
<FeatureShineIcon className="h-4 w-4
|
|
1032
|
-
<FeatureShineIcon className="h-4 w-4
|
|
1033
|
-
<span className="ml-2 text-sm
|
|
1068
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
1069
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
1070
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
1071
|
+
<FeatureShineIcon className="text-fm-icon-warning h-4 w-4" />
|
|
1072
|
+
<FeatureShineIcon className="text-fm-secondary h-4 w-4" />
|
|
1073
|
+
<span className="text-fm-tertiary ml-2 text-sm">4.0</span>
|
|
1034
1074
|
</div>
|
|
1035
1075
|
</div>
|
|
1036
1076
|
</div>
|
|
1037
1077
|
|
|
1038
1078
|
{/* Achievement Badge */}
|
|
1039
1079
|
<div className="!space-y-2">
|
|
1040
|
-
<h3 className="text-sm font-medium
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1080
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1081
|
+
Achievement Badge
|
|
1082
|
+
</h3>
|
|
1083
|
+
<div className="border-fm-icon-warning/20 bg-fm-icon-warning/10 rounded-lg border p-4 text-center">
|
|
1084
|
+
<div className="border-fm-icon-warning/30 from-fm-icon-warning/20 to-fm-icon-warning/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-full border-2 bg-linear-to-br">
|
|
1085
|
+
<FeatureShineIcon className="text-fm-icon-warning h-8 w-8" />
|
|
1044
1086
|
</div>
|
|
1045
|
-
<h4 className="font-bold
|
|
1046
|
-
<div className="mt-3 inline-flex items-center gap-2 rounded-full
|
|
1087
|
+
<h4 className="text-fm-icon-warning font-bold">Top Performer</h4>
|
|
1088
|
+
<div className="bg-fm-icon-warning/20 text-fm-icon-warning mt-3 inline-flex items-center gap-2 rounded-full px-3 py-1 text-xs">
|
|
1047
1089
|
<FeatureShineIcon className="h-3 w-3" />
|
|
1048
1090
|
Achievement Unlocked
|
|
1049
1091
|
</div>
|
|
@@ -1066,12 +1108,12 @@ export const Playground: Story = {
|
|
|
1066
1108
|
args: {
|
|
1067
1109
|
width: 32,
|
|
1068
1110
|
height: 32,
|
|
1069
|
-
className: "text-
|
|
1111
|
+
className: "text-fm-icon-warning ",
|
|
1070
1112
|
strokeWidth: 1.5,
|
|
1071
1113
|
},
|
|
1072
1114
|
render: (args) => (
|
|
1073
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1074
|
-
<div className="rounded-lg border
|
|
1115
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
1116
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
1075
1117
|
<FeatureShineIcon {...args} />
|
|
1076
1118
|
</div>
|
|
1077
1119
|
</div>
|