aural-ui 2.1.20 → 2.1.22
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/button/index.tsx +5 -20
- package/dist/components/drawer/index.tsx +4 -2
- package/dist/components/switch/Switch.stories.tsx +85 -0
- package/dist/components/switch/index.tsx +6 -2
- package/dist/components/textarea/index.tsx +5 -4
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +525 -0
- package/dist/icons/circular-play-icon/index.tsx +33 -0
- package/dist/icons/{coin-icon-toons/CoinIconToons.stories.tsx → coin-toons-icon/CoinToonsIcon.stories.tsx} +75 -75
- package/dist/icons/{coin-icon-toons → coin-toons-icon}/index.tsx +15 -7
- package/dist/icons/coin-toons-icon/meta.ts +8 -0
- package/dist/icons/index.ts +3 -1
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +535 -0
- package/dist/icons/scroll-down-icon/index.tsx +32 -0
- package/dist/icons/scroll-down-icon/meta.ts +8 -0
- package/dist/index.cjs +71 -71
- package/dist/index.js +71 -71
- package/package.json +7 -7
- /package/dist/icons/{coin-icon-toons → circular-play-icon}/meta.ts +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { CoinToonsIcon } from "."
|
|
5
5
|
|
|
6
|
-
const meta: Meta<typeof
|
|
7
|
-
title: "Icons/
|
|
8
|
-
component:
|
|
6
|
+
const meta: Meta<typeof CoinToonsIcon> = {
|
|
7
|
+
title: "Icons/CoinToonsIcon",
|
|
8
|
+
component: CoinToonsIcon,
|
|
9
9
|
parameters: {
|
|
10
10
|
layout: "fullscreen",
|
|
11
11
|
backgrounds: {
|
|
@@ -87,10 +87,10 @@ const meta: Meta<typeof CoinIconToons> = {
|
|
|
87
87
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
88
|
<div className="!space-y-6 text-center">
|
|
89
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
|
-
<
|
|
90
|
+
<CoinToonsIcon className="h-12 w-12" />
|
|
91
91
|
</div>
|
|
92
92
|
<h1 className="text-5xl font-bold !text-white">
|
|
93
|
-
|
|
93
|
+
Coin Toons Icon
|
|
94
94
|
</h1>
|
|
95
95
|
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
96
|
A golden coin icon with authentic metallic shine and
|
|
@@ -147,12 +147,12 @@ const meta: Meta<typeof CoinIconToons> = {
|
|
|
147
147
|
</h3>
|
|
148
148
|
<div className="rounded-lg bg-black/40 p-4">
|
|
149
149
|
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
150
|
-
{`import {
|
|
150
|
+
{`import { CoinToonsIcon } from "@icons/coin-icon"
|
|
151
151
|
|
|
152
152
|
function WalletBalance() {
|
|
153
153
|
return (
|
|
154
154
|
<div className="flex items-center gap-2">
|
|
155
|
-
<
|
|
155
|
+
<CoinToonsIcon className="h-5 w-5" />
|
|
156
156
|
<span className="text-yellow-400">{balance} coins</span>
|
|
157
157
|
</div>
|
|
158
158
|
)
|
|
@@ -167,7 +167,7 @@ function WalletBalance() {
|
|
|
167
167
|
</h3>
|
|
168
168
|
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
169
169
|
<div className="flex items-center gap-3 rounded-lg border border-yellow-500/20 bg-yellow-500/10 px-4 py-2">
|
|
170
|
-
<
|
|
170
|
+
<CoinToonsIcon className="h-5 w-5" />
|
|
171
171
|
<span className="font-medium text-yellow-300">
|
|
172
172
|
1,247 coins
|
|
173
173
|
</span>
|
|
@@ -283,9 +283,9 @@ function WalletBalance() {
|
|
|
283
283
|
|
|
284
284
|
<div className="rounded-lg border border-yellow-500/20 bg-yellow-500/10 p-4">
|
|
285
285
|
<div className="flex items-center gap-2 text-sm text-yellow-200">
|
|
286
|
-
<
|
|
286
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
287
287
|
<span>
|
|
288
|
-
<strong>Note:</strong>
|
|
288
|
+
<strong>Note:</strong> CoinToonsIcon uses predefined fill
|
|
289
289
|
colors for authentic golden appearance. Avoid overriding
|
|
290
290
|
fill colors to maintain visual consistency.
|
|
291
291
|
</span>
|
|
@@ -307,27 +307,27 @@ function WalletBalance() {
|
|
|
307
307
|
</h3>
|
|
308
308
|
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
309
309
|
<div className="text-center">
|
|
310
|
-
<
|
|
310
|
+
<CoinToonsIcon className="!mx-auto mb-2 h-3 w-3" />
|
|
311
311
|
<span className="text-xs text-white/60">12px</span>
|
|
312
312
|
</div>
|
|
313
313
|
<div className="text-center">
|
|
314
|
-
<
|
|
314
|
+
<CoinToonsIcon className="!mx-auto mb-2 h-4 w-4" />
|
|
315
315
|
<span className="text-xs text-white/60">16px</span>
|
|
316
316
|
</div>
|
|
317
317
|
<div className="text-center">
|
|
318
|
-
<
|
|
318
|
+
<CoinToonsIcon className="!mx-auto mb-2 h-5 w-5" />
|
|
319
319
|
<span className="text-xs text-white/60">20px</span>
|
|
320
320
|
</div>
|
|
321
321
|
<div className="text-center">
|
|
322
|
-
<
|
|
322
|
+
<CoinToonsIcon className="!mx-auto mb-2 h-6 w-6" />
|
|
323
323
|
<span className="text-xs text-white/60">24px</span>
|
|
324
324
|
</div>
|
|
325
325
|
<div className="text-center">
|
|
326
|
-
<
|
|
326
|
+
<CoinToonsIcon className="!mx-auto mb-2 h-8 w-8" />
|
|
327
327
|
<span className="text-xs text-white/60">32px</span>
|
|
328
328
|
</div>
|
|
329
329
|
<div className="text-center">
|
|
330
|
-
<
|
|
330
|
+
<CoinToonsIcon className="!mx-auto mb-2 h-12 w-12" />
|
|
331
331
|
<span className="text-xs text-white/60">48px</span>
|
|
332
332
|
</div>
|
|
333
333
|
</div>
|
|
@@ -340,16 +340,16 @@ function WalletBalance() {
|
|
|
340
340
|
<div className="rounded-lg bg-black/40 p-4">
|
|
341
341
|
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
342
342
|
{`// Small (16px) - inline currency
|
|
343
|
-
<
|
|
343
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
344
344
|
|
|
345
345
|
// Medium (24px) - standard interface
|
|
346
|
-
<
|
|
346
|
+
<CoinToonsIcon className="h-6 w-6" />
|
|
347
347
|
|
|
348
348
|
// Large (32px) - prominent displays
|
|
349
|
-
<
|
|
349
|
+
<CoinToonsIcon className="h-8 w-8" />
|
|
350
350
|
|
|
351
351
|
// Custom size
|
|
352
|
-
<
|
|
352
|
+
<CoinToonsIcon width={40} height={40} />`}
|
|
353
353
|
</pre>
|
|
354
354
|
</div>
|
|
355
355
|
</div>
|
|
@@ -371,7 +371,7 @@ function WalletBalance() {
|
|
|
371
371
|
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
372
372
|
<div className="flex items-center gap-4">
|
|
373
373
|
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-black/30">
|
|
374
|
-
<
|
|
374
|
+
<CoinToonsIcon className="h-8 w-8" />
|
|
375
375
|
</div>
|
|
376
376
|
<div>
|
|
377
377
|
<div className="text-sm font-medium text-white">
|
|
@@ -384,7 +384,7 @@ function WalletBalance() {
|
|
|
384
384
|
</div>
|
|
385
385
|
<div className="flex items-center gap-4">
|
|
386
386
|
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-white/5">
|
|
387
|
-
<
|
|
387
|
+
<CoinToonsIcon className="h-8 w-8" />
|
|
388
388
|
</div>
|
|
389
389
|
<div>
|
|
390
390
|
<div className="text-sm font-medium text-white">
|
|
@@ -397,7 +397,7 @@ function WalletBalance() {
|
|
|
397
397
|
</div>
|
|
398
398
|
<div className="flex items-center gap-4">
|
|
399
399
|
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-yellow-500/10">
|
|
400
|
-
<
|
|
400
|
+
<CoinToonsIcon className="h-8 w-8" />
|
|
401
401
|
</div>
|
|
402
402
|
<div>
|
|
403
403
|
<div className="text-sm font-medium text-white">
|
|
@@ -418,11 +418,11 @@ function WalletBalance() {
|
|
|
418
418
|
<div className="rounded-lg bg-black/40 p-4">
|
|
419
419
|
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
420
420
|
{`// Recommended usage
|
|
421
|
-
<
|
|
421
|
+
<CoinToonsIcon className="h-5 w-5" />
|
|
422
422
|
|
|
423
423
|
// With balance display
|
|
424
424
|
<div className="flex items-center gap-2">
|
|
425
|
-
<
|
|
425
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
426
426
|
<span className="text-yellow-400">1,247</span>
|
|
427
427
|
</div>
|
|
428
428
|
|
|
@@ -431,16 +431,16 @@ function WalletBalance() {
|
|
|
431
431
|
className="flex items-center gap-2 p-2 rounded-lg
|
|
432
432
|
hover:bg-yellow-500/10 transition-colors"
|
|
433
433
|
>
|
|
434
|
-
<
|
|
434
|
+
<CoinToonsIcon className="h-5 w-5" />
|
|
435
435
|
<span>Earn Coins</span>
|
|
436
436
|
</button>
|
|
437
437
|
|
|
438
438
|
// Avoid overriding colors
|
|
439
439
|
// ❌ Don't do this:
|
|
440
|
-
<
|
|
440
|
+
<CoinToonsIcon style={{ fill: 'red' }} />
|
|
441
441
|
|
|
442
442
|
// ✅ Use as designed:
|
|
443
|
-
<
|
|
443
|
+
<CoinToonsIcon className="h-6 w-6" />`}
|
|
444
444
|
</pre>
|
|
445
445
|
</div>
|
|
446
446
|
</div>
|
|
@@ -473,7 +473,7 @@ function WalletBalance() {
|
|
|
473
473
|
</p>
|
|
474
474
|
</div>
|
|
475
475
|
<div className="flex items-center gap-2">
|
|
476
|
-
<
|
|
476
|
+
<CoinToonsIcon className="h-6 w-6" />
|
|
477
477
|
<span className="text-xl font-bold text-yellow-300">
|
|
478
478
|
2,847
|
|
479
479
|
</span>
|
|
@@ -498,7 +498,7 @@ function WalletBalance() {
|
|
|
498
498
|
</div>
|
|
499
499
|
</div>
|
|
500
500
|
<div className="flex items-center gap-1">
|
|
501
|
-
<
|
|
501
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
502
502
|
<span className="font-medium text-green-400">
|
|
503
503
|
+50
|
|
504
504
|
</span>
|
|
@@ -521,7 +521,7 @@ function WalletBalance() {
|
|
|
521
521
|
</div>
|
|
522
522
|
</div>
|
|
523
523
|
<div className="flex items-center gap-1">
|
|
524
|
-
<
|
|
524
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
525
525
|
<span className="font-medium text-blue-400">
|
|
526
526
|
+125
|
|
527
527
|
</span>
|
|
@@ -544,7 +544,7 @@ function WalletBalance() {
|
|
|
544
544
|
</div>
|
|
545
545
|
</div>
|
|
546
546
|
<div className="flex items-center gap-1">
|
|
547
|
-
<
|
|
547
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
548
548
|
<span className="font-medium text-red-400">
|
|
549
549
|
-75
|
|
550
550
|
</span>
|
|
@@ -562,7 +562,7 @@ function WalletBalance() {
|
|
|
562
562
|
<p>Digital currency balance</p>
|
|
563
563
|
</div>
|
|
564
564
|
<div className="balance-display">
|
|
565
|
-
<
|
|
565
|
+
<CoinToonsIcon className="h-6 w-6" />
|
|
566
566
|
<span className="balance">{balance}</span>
|
|
567
567
|
</div>
|
|
568
568
|
</div>
|
|
@@ -572,7 +572,7 @@ function WalletBalance() {
|
|
|
572
572
|
<TransactionIcon type={transaction.type} />
|
|
573
573
|
<TransactionDetails transaction={transaction} />
|
|
574
574
|
<div className="coin-amount">
|
|
575
|
-
<
|
|
575
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
576
576
|
<span className={transaction.type === 'earned' ? 'text-green' : 'text-red'}>
|
|
577
577
|
{transaction.type === 'earned' ? '+' : '-'}{transaction.amount}
|
|
578
578
|
</span>
|
|
@@ -599,7 +599,7 @@ function WalletBalance() {
|
|
|
599
599
|
Item Shop
|
|
600
600
|
</h4>
|
|
601
601
|
<div className="flex items-center gap-2 rounded-lg border border-yellow-500/30 bg-yellow-500/20 px-3 py-1">
|
|
602
|
-
<
|
|
602
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
603
603
|
<span className="font-medium text-yellow-300">
|
|
604
604
|
2,847
|
|
605
605
|
</span>
|
|
@@ -616,7 +616,7 @@ function WalletBalance() {
|
|
|
616
616
|
</div>
|
|
617
617
|
<div className="flex items-center justify-between">
|
|
618
618
|
<div className="flex items-center gap-1">
|
|
619
|
-
<
|
|
619
|
+
<CoinToonsIcon className="h-3 w-3" />
|
|
620
620
|
<span className="text-xs text-yellow-400">
|
|
621
621
|
500
|
|
622
622
|
</span>
|
|
@@ -635,7 +635,7 @@ function WalletBalance() {
|
|
|
635
635
|
</div>
|
|
636
636
|
<div className="flex items-center justify-between">
|
|
637
637
|
<div className="flex items-center gap-1">
|
|
638
|
-
<
|
|
638
|
+
<CoinToonsIcon className="h-3 w-3" />
|
|
639
639
|
<span className="text-xs text-yellow-400">
|
|
640
640
|
350
|
|
641
641
|
</span>
|
|
@@ -654,7 +654,7 @@ function WalletBalance() {
|
|
|
654
654
|
</div>
|
|
655
655
|
<div className="flex items-center justify-between">
|
|
656
656
|
<div className="flex items-center gap-1">
|
|
657
|
-
<
|
|
657
|
+
<CoinToonsIcon className="h-3 w-3" />
|
|
658
658
|
<span className="text-xs text-yellow-400">
|
|
659
659
|
25
|
|
660
660
|
</span>
|
|
@@ -673,7 +673,7 @@ function WalletBalance() {
|
|
|
673
673
|
</div>
|
|
674
674
|
<div className="flex items-center justify-between">
|
|
675
675
|
<div className="flex items-center gap-1">
|
|
676
|
-
<
|
|
676
|
+
<CoinToonsIcon className="h-3 w-3" />
|
|
677
677
|
<span className="text-xs text-yellow-400">
|
|
678
678
|
1,200
|
|
679
679
|
</span>
|
|
@@ -692,7 +692,7 @@ function WalletBalance() {
|
|
|
692
692
|
<div className="store-header">
|
|
693
693
|
<h3>Item Shop</h3>
|
|
694
694
|
<div className="player-balance">
|
|
695
|
-
<
|
|
695
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
696
696
|
<span>{playerCoins}</span>
|
|
697
697
|
</div>
|
|
698
698
|
</div>
|
|
@@ -703,7 +703,7 @@ function WalletBalance() {
|
|
|
703
703
|
<div className="item-name">{item.name}</div>
|
|
704
704
|
<div className="item-footer">
|
|
705
705
|
<div className="item-price">
|
|
706
|
-
<
|
|
706
|
+
<CoinToonsIcon className="h-3 w-3" />
|
|
707
707
|
<span>{item.price}</span>
|
|
708
708
|
</div>
|
|
709
709
|
<button
|
|
@@ -756,7 +756,7 @@ function WalletBalance() {
|
|
|
756
756
|
</div>
|
|
757
757
|
</div>
|
|
758
758
|
<div className="flex items-center gap-1">
|
|
759
|
-
<
|
|
759
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
760
760
|
<span className="font-medium text-green-400">
|
|
761
761
|
+10
|
|
762
762
|
</span>
|
|
@@ -779,7 +779,7 @@ function WalletBalance() {
|
|
|
779
779
|
</div>
|
|
780
780
|
</div>
|
|
781
781
|
<div className="flex items-center gap-1">
|
|
782
|
-
<
|
|
782
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
783
783
|
<span className="font-medium text-yellow-400">
|
|
784
784
|
25
|
|
785
785
|
</span>
|
|
@@ -802,7 +802,7 @@ function WalletBalance() {
|
|
|
802
802
|
</div>
|
|
803
803
|
</div>
|
|
804
804
|
<div className="flex items-center gap-1">
|
|
805
|
-
<
|
|
805
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
806
806
|
<span className="font-medium text-yellow-400">
|
|
807
807
|
100
|
|
808
808
|
</span>
|
|
@@ -837,7 +837,7 @@ function WalletBalance() {
|
|
|
837
837
|
</div>
|
|
838
838
|
</div>
|
|
839
839
|
<div className="challenge-reward">
|
|
840
|
-
<
|
|
840
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
841
841
|
<span className="reward-amount">{challenge.reward}</span>
|
|
842
842
|
</div>
|
|
843
843
|
</div>
|
|
@@ -872,7 +872,7 @@ function WalletBalance() {
|
|
|
872
872
|
Basic
|
|
873
873
|
</div>
|
|
874
874
|
<div className="mb-2 flex items-center justify-center gap-1">
|
|
875
|
-
<
|
|
875
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
876
876
|
<span className="font-medium text-yellow-400">
|
|
877
877
|
Free
|
|
878
878
|
</span>
|
|
@@ -887,7 +887,7 @@ function WalletBalance() {
|
|
|
887
887
|
Pro
|
|
888
888
|
</div>
|
|
889
889
|
<div className="mb-2 flex items-center justify-center gap-1">
|
|
890
|
-
<
|
|
890
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
891
891
|
<span className="font-medium text-yellow-400">
|
|
892
892
|
299/mo
|
|
893
893
|
</span>
|
|
@@ -902,7 +902,7 @@ function WalletBalance() {
|
|
|
902
902
|
Enterprise
|
|
903
903
|
</div>
|
|
904
904
|
<div className="mb-2 flex items-center justify-center gap-1">
|
|
905
|
-
<
|
|
905
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
906
906
|
<span className="font-medium text-yellow-400">
|
|
907
907
|
999/mo
|
|
908
908
|
</span>
|
|
@@ -937,7 +937,7 @@ function WalletBalance() {
|
|
|
937
937
|
>
|
|
938
938
|
<div className="plan-name">{plan.name}</div>
|
|
939
939
|
<div className="plan-price">
|
|
940
|
-
<
|
|
940
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
941
941
|
<span className="price-amount">
|
|
942
942
|
{plan.price === 0 ? 'Free' : plan.price + '/mo'}
|
|
943
943
|
</span>
|
|
@@ -1026,7 +1026,7 @@ function WalletBalance() {
|
|
|
1026
1026
|
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
1027
1027
|
{`// Wallet balance display
|
|
1028
1028
|
<div className="balance-display">
|
|
1029
|
-
<
|
|
1029
|
+
<CoinToonsIcon
|
|
1030
1030
|
className="h-5 w-5"
|
|
1031
1031
|
aria-hidden="true"
|
|
1032
1032
|
/>
|
|
@@ -1045,7 +1045,7 @@ function WalletBalance() {
|
|
|
1045
1045
|
onClick={handlePurchase}
|
|
1046
1046
|
disabled={balance < price}
|
|
1047
1047
|
>
|
|
1048
|
-
<
|
|
1048
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
1049
1049
|
<span>{price}</span>
|
|
1050
1050
|
</button>
|
|
1051
1051
|
<div id="coin-balance" className="sr-only">
|
|
@@ -1058,7 +1058,7 @@ function WalletBalance() {
|
|
|
1058
1058
|
aria-live="polite"
|
|
1059
1059
|
className="reward-notification"
|
|
1060
1060
|
>
|
|
1061
|
-
<
|
|
1061
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
1062
1062
|
<span>You earned {rewardAmount} coins!</span>
|
|
1063
1063
|
</div>
|
|
1064
1064
|
|
|
@@ -1071,7 +1071,7 @@ function WalletBalance() {
|
|
|
1071
1071
|
className="item-price"
|
|
1072
1072
|
aria-label={"Price: " + item.price + " coins"}
|
|
1073
1073
|
>
|
|
1074
|
-
<
|
|
1074
|
+
<CoinToonsIcon className="h-3 w-3" />
|
|
1075
1075
|
<span>{item.price}</span>
|
|
1076
1076
|
</div>
|
|
1077
1077
|
</div>
|
|
@@ -1080,14 +1080,14 @@ function WalletBalance() {
|
|
|
1080
1080
|
</div>
|
|
1081
1081
|
<div className="!space-y-4">
|
|
1082
1082
|
<p className="text-sm !text-white/70">
|
|
1083
|
-
When using
|
|
1083
|
+
When using CoinToonsIcon for financial displays, always
|
|
1084
1084
|
provide clear context about the currency value and
|
|
1085
1085
|
ensure users understand the monetary implications of
|
|
1086
1086
|
their actions.
|
|
1087
1087
|
</p>
|
|
1088
1088
|
<div className="rounded-lg border border-yellow-500/20 bg-yellow-500/10 p-4">
|
|
1089
1089
|
<div className="flex items-center gap-2 text-sm text-yellow-200">
|
|
1090
|
-
<
|
|
1090
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
1091
1091
|
<span>
|
|
1092
1092
|
Always announce balance changes and transaction
|
|
1093
1093
|
results to screen readers
|
|
@@ -1160,7 +1160,7 @@ function WalletBalance() {
|
|
|
1160
1160
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
1161
1161
|
<div className="!space-y-4 text-center">
|
|
1162
1162
|
<p className="!text-white/60">
|
|
1163
|
-
|
|
1163
|
+
CoinToonsIcon is part of the Aural UI icon library, built
|
|
1164
1164
|
with accessibility and financial interface best practices in
|
|
1165
1165
|
mind.
|
|
1166
1166
|
</p>
|
|
@@ -1199,7 +1199,7 @@ function WalletBalance() {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
|
|
1201
1201
|
export default meta
|
|
1202
|
-
type Story = StoryObj<typeof
|
|
1202
|
+
type Story = StoryObj<typeof CoinToonsIcon>
|
|
1203
1203
|
|
|
1204
1204
|
// Story parameters for consistent dark theme
|
|
1205
1205
|
const storyParameters = {
|
|
@@ -1219,7 +1219,7 @@ export const Default: Story = {
|
|
|
1219
1219
|
parameters: storyParameters,
|
|
1220
1220
|
render: (args) => (
|
|
1221
1221
|
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1222
|
-
<
|
|
1222
|
+
<CoinToonsIcon {...args} />
|
|
1223
1223
|
</div>
|
|
1224
1224
|
),
|
|
1225
1225
|
}
|
|
@@ -1230,34 +1230,34 @@ export const SizeVariations: Story = {
|
|
|
1230
1230
|
docs: {
|
|
1231
1231
|
description: {
|
|
1232
1232
|
story:
|
|
1233
|
-
"
|
|
1233
|
+
"CoinToonsIcon in different sizes, from small inline currency displays to large wallet interfaces.",
|
|
1234
1234
|
},
|
|
1235
1235
|
},
|
|
1236
1236
|
},
|
|
1237
1237
|
render: () => (
|
|
1238
1238
|
<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">
|
|
1239
1239
|
<div className="text-center">
|
|
1240
|
-
<
|
|
1240
|
+
<CoinToonsIcon className="!mx-auto mb-2 h-3 w-3" />
|
|
1241
1241
|
<span className="text-xs text-white/60">12px</span>
|
|
1242
1242
|
</div>
|
|
1243
1243
|
<div className="text-center">
|
|
1244
|
-
<
|
|
1244
|
+
<CoinToonsIcon className="!mx-auto mb-2 h-4 w-4" />
|
|
1245
1245
|
<span className="text-xs text-white/60">16px</span>
|
|
1246
1246
|
</div>
|
|
1247
1247
|
<div className="text-center">
|
|
1248
|
-
<
|
|
1248
|
+
<CoinToonsIcon className="!mx-auto mb-2 h-5 w-5" />
|
|
1249
1249
|
<span className="text-xs text-white/60">20px</span>
|
|
1250
1250
|
</div>
|
|
1251
1251
|
<div className="text-center">
|
|
1252
|
-
<
|
|
1252
|
+
<CoinToonsIcon className="!mx-auto mb-2 h-6 w-6" />
|
|
1253
1253
|
<span className="text-xs text-white/60">24px</span>
|
|
1254
1254
|
</div>
|
|
1255
1255
|
<div className="text-center">
|
|
1256
|
-
<
|
|
1256
|
+
<CoinToonsIcon className="!mx-auto mb-2 h-8 w-8" />
|
|
1257
1257
|
<span className="text-xs text-white/60">32px</span>
|
|
1258
1258
|
</div>
|
|
1259
1259
|
<div className="text-center">
|
|
1260
|
-
<
|
|
1260
|
+
<CoinToonsIcon className="!mx-auto mb-2 h-12 w-12" />
|
|
1261
1261
|
<span className="text-xs text-white/60">48px</span>
|
|
1262
1262
|
</div>
|
|
1263
1263
|
</div>
|
|
@@ -1270,7 +1270,7 @@ export const ContextualUsage: Story = {
|
|
|
1270
1270
|
docs: {
|
|
1271
1271
|
description: {
|
|
1272
1272
|
story:
|
|
1273
|
-
"
|
|
1273
|
+
"CoinToonsIcon in different contextual applications showing its built-in golden design.",
|
|
1274
1274
|
},
|
|
1275
1275
|
},
|
|
1276
1276
|
},
|
|
@@ -1278,21 +1278,21 @@ export const ContextualUsage: Story = {
|
|
|
1278
1278
|
<div className="grid min-h-dvh grid-cols-1 items-center justify-center gap-6 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8 md:grid-cols-3">
|
|
1279
1279
|
<div className="text-center">
|
|
1280
1280
|
<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">
|
|
1281
|
-
<
|
|
1281
|
+
<CoinToonsIcon className="h-8 w-8" />
|
|
1282
1282
|
</div>
|
|
1283
1283
|
<div className="text-sm font-medium text-white">Wallet Balance</div>
|
|
1284
1284
|
<div className="text-xs text-yellow-400">Currency display</div>
|
|
1285
1285
|
</div>
|
|
1286
1286
|
<div className="text-center">
|
|
1287
1287
|
<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">
|
|
1288
|
-
<
|
|
1288
|
+
<CoinToonsIcon className="h-8 w-8" />
|
|
1289
1289
|
</div>
|
|
1290
1290
|
<div className="text-sm font-medium text-white">Store Pricing</div>
|
|
1291
1291
|
<div className="text-xs text-amber-400">E-commerce value</div>
|
|
1292
1292
|
</div>
|
|
1293
1293
|
<div className="text-center">
|
|
1294
1294
|
<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">
|
|
1295
|
-
<
|
|
1295
|
+
<CoinToonsIcon className="h-8 w-8" />
|
|
1296
1296
|
</div>
|
|
1297
1297
|
<div className="text-sm font-medium text-white">Game Rewards</div>
|
|
1298
1298
|
<div className="text-xs text-orange-400">Achievement system</div>
|
|
@@ -1307,7 +1307,7 @@ export const UsageExamples: Story = {
|
|
|
1307
1307
|
docs: {
|
|
1308
1308
|
description: {
|
|
1309
1309
|
story:
|
|
1310
|
-
"Real-world usage examples showing
|
|
1310
|
+
"Real-world usage examples showing CoinToonsIcon in different financial and gaming contexts.",
|
|
1311
1311
|
},
|
|
1312
1312
|
},
|
|
1313
1313
|
},
|
|
@@ -1322,7 +1322,7 @@ export const UsageExamples: Story = {
|
|
|
1322
1322
|
<div className="flex items-center justify-between rounded border border-yellow-500/30 bg-gradient-to-r from-yellow-500/20 to-amber-500/20 p-3">
|
|
1323
1323
|
<span className="font-medium text-white">Current Balance</span>
|
|
1324
1324
|
<div className="flex items-center gap-2">
|
|
1325
|
-
<
|
|
1325
|
+
<CoinToonsIcon className="h-5 w-5" />
|
|
1326
1326
|
<span className="text-lg font-bold text-yellow-300">2,847</span>
|
|
1327
1327
|
</div>
|
|
1328
1328
|
</div>
|
|
@@ -1345,7 +1345,7 @@ export const UsageExamples: Story = {
|
|
|
1345
1345
|
</div>
|
|
1346
1346
|
<div className="flex items-center gap-2">
|
|
1347
1347
|
<div className="flex items-center gap-1">
|
|
1348
|
-
<
|
|
1348
|
+
<CoinToonsIcon className="h-4 w-4" />
|
|
1349
1349
|
<span className="font-medium text-yellow-400">500</span>
|
|
1350
1350
|
</div>
|
|
1351
1351
|
<button className="rounded border border-yellow-500/30 bg-yellow-500/20 px-3 py-1 text-sm text-yellow-300 transition-colors hover:bg-yellow-500/30">
|
|
@@ -1365,7 +1365,7 @@ export const Playground: Story = {
|
|
|
1365
1365
|
docs: {
|
|
1366
1366
|
description: {
|
|
1367
1367
|
story:
|
|
1368
|
-
"Interactive playground to experiment with different
|
|
1368
|
+
"Interactive playground to experiment with different CoinToonsIcon configurations.",
|
|
1369
1369
|
},
|
|
1370
1370
|
},
|
|
1371
1371
|
},
|
|
@@ -1377,7 +1377,7 @@ export const Playground: Story = {
|
|
|
1377
1377
|
render: (args) => (
|
|
1378
1378
|
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1379
1379
|
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
1380
|
-
<
|
|
1380
|
+
<CoinToonsIcon {...args} />
|
|
1381
1381
|
</div>
|
|
1382
1382
|
</div>
|
|
1383
1383
|
),
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface CoinToonsIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
withAccessibility?: boolean
|
|
6
|
+
}
|
|
7
|
+
export const CoinToonsIcon = (props: CoinToonsIconProps) => {
|
|
8
|
+
const { withAccessibility, ...svgProps } = props
|
|
9
|
+
const svg = (
|
|
8
10
|
<svg
|
|
9
11
|
width="16"
|
|
10
12
|
height="16"
|
|
11
13
|
viewBox="0 0 16 16"
|
|
12
14
|
fill="none"
|
|
13
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
{...
|
|
16
|
+
{...svgProps}
|
|
15
17
|
>
|
|
16
18
|
<g clipPath="url(#clip0_4049_2590)">
|
|
17
19
|
<circle cx="8.00321" cy="8.0037" r="8.0037" fill="#FFB340" />
|
|
@@ -140,5 +142,11 @@ export const CoinIconToons = (
|
|
|
140
142
|
</clipPath>
|
|
141
143
|
</defs>
|
|
142
144
|
</svg>
|
|
143
|
-
|
|
144
|
-
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
if (withAccessibility) {
|
|
148
|
+
return <AccessibleIcon label="Coin Toons icon">{svg}</AccessibleIcon>
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return svg
|
|
152
|
+
}
|
package/dist/icons/index.ts
CHANGED
|
@@ -20,12 +20,13 @@ export * from "./chevron-double-left-icon"
|
|
|
20
20
|
export * from "./chevron-double-right-icon"
|
|
21
21
|
export * from "./chevron-down-icon"
|
|
22
22
|
export * from "./chevron-left-icon"
|
|
23
|
+
export * from "./circular-play-icon"
|
|
23
24
|
export * from "./chevron-right-icon"
|
|
24
25
|
export * from "./chevron-up-icon"
|
|
25
26
|
export * from "./circle-tick-icon"
|
|
26
27
|
export * from "./column-wide-add-icon"
|
|
27
28
|
export * from "./coin-icon"
|
|
28
|
-
export * from "./coin-icon
|
|
29
|
+
export * from "./coin-toons-icon"
|
|
29
30
|
export * from "./command-icon"
|
|
30
31
|
export * from "./copy-icon"
|
|
31
32
|
export * from "./cross-circle-icon"
|
|
@@ -79,6 +80,7 @@ export * from "./pencil-icon"
|
|
|
79
80
|
export * from "./plus-icon"
|
|
80
81
|
export * from "./pocket-studio-icon"
|
|
81
82
|
export * from "./phone-icon"
|
|
83
|
+
export * from "./scroll-down-icon"
|
|
82
84
|
export * from "./search-icon"
|
|
83
85
|
export * from "./setting-icon"
|
|
84
86
|
export * from "./share-icon"
|