@compose-market/theme 0.0.4 → 0.0.5

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.
@@ -412,5 +412,361 @@ export const shellCss = `/**
412
412
  overflow-x: auto;
413
413
  }
414
414
  }
415
+
416
+ /* ── Form Controls ── */
417
+ .cm-form-group {
418
+ margin-bottom: 16px;
419
+ }
420
+
421
+ .cm-form-group label {
422
+ display: block;
423
+ margin-bottom: 6px;
424
+ font-size: 13px;
425
+ color: hsl(var(--muted-foreground));
426
+ font-weight: 500;
427
+ }
428
+
429
+ .cm-form-input,
430
+ .cm-form-textarea,
431
+ .cm-form-select {
432
+ width: 100%;
433
+ padding: 10px 12px;
434
+ background: hsl(var(--muted));
435
+ border: 1px solid hsl(var(--border));
436
+ border-radius: 6px;
437
+ color: hsl(var(--foreground));
438
+ font-size: 14px;
439
+ font-family: var(--font-sans), sans-serif;
440
+ transition: border-color 0.2s;
441
+ }
442
+
443
+ .cm-form-input:focus,
444
+ .cm-form-textarea:focus,
445
+ .cm-form-select:focus {
446
+ outline: none;
447
+ border-color: hsl(var(--primary));
448
+ }
449
+
450
+ .cm-form-input:disabled,
451
+ .cm-form-textarea:disabled,
452
+ .cm-form-select:disabled {
453
+ opacity: 0.6;
454
+ cursor: not-allowed;
455
+ }
456
+
457
+ .cm-form-textarea {
458
+ min-height: 80px;
459
+ resize: vertical;
460
+ }
461
+
462
+ /* ── Notification / Alert ── */
463
+ .cm-notification {
464
+ display: flex;
465
+ align-items: center;
466
+ gap: 10px;
467
+ padding: 12px 16px;
468
+ border-radius: 8px;
469
+ font-size: 14px;
470
+ font-weight: 500;
471
+ animation: cm-slide-in 0.2s ease;
472
+ }
473
+
474
+ @keyframes cm-slide-in {
475
+ from { opacity: 0; transform: translateY(-10px); }
476
+ to { opacity: 1; transform: translateY(0); }
477
+ }
478
+
479
+ .cm-notification--success {
480
+ background: hsl(142 71% 45% / 0.15);
481
+ color: hsl(142 71% 45%);
482
+ border: 1px solid hsl(142 71% 45%);
483
+ }
484
+
485
+ .cm-notification--error {
486
+ background: hsl(var(--destructive) / 0.15);
487
+ color: hsl(var(--destructive));
488
+ border: 1px solid hsl(var(--destructive));
489
+ }
490
+
491
+ .cm-notification--warning {
492
+ background: hsl(42 100% 48% / 0.12);
493
+ color: hsl(42 100% 52%);
494
+ border: 1px solid hsl(42 100% 52% / 0.5);
495
+ }
496
+
497
+ .cm-notification--info {
498
+ background: hsl(var(--primary) / 0.08);
499
+ border: 1px solid hsl(var(--primary) / 0.22);
500
+ color: hsl(var(--foreground));
501
+ }
502
+
503
+ /* ── Navigation ── */
504
+ .cm-nav {
505
+ display: flex;
506
+ gap: 4px;
507
+ padding: 12px 0 0;
508
+ }
509
+
510
+ .cm-nav-btn {
511
+ padding: 8px 16px;
512
+ background: transparent;
513
+ border: none;
514
+ color: hsl(var(--muted-foreground));
515
+ cursor: pointer;
516
+ border-radius: 6px;
517
+ font-size: 14px;
518
+ font-weight: 500;
519
+ font-family: var(--font-sans), sans-serif;
520
+ transition: all 0.2s;
521
+ }
522
+
523
+ .cm-nav-btn:hover {
524
+ color: hsl(var(--foreground));
525
+ background: hsl(var(--muted));
526
+ }
527
+
528
+ .cm-nav-btn[data-active="true"],
529
+ .cm-nav-btn.active {
530
+ color: hsl(var(--primary));
531
+ background: hsl(var(--primary) / 0.15);
532
+ }
533
+
534
+ /* ── Loading State ── */
535
+ .cm-loading-state {
536
+ display: flex;
537
+ flex-direction: column;
538
+ align-items: center;
539
+ justify-content: center;
540
+ padding: 60px;
541
+ color: hsl(var(--muted-foreground));
542
+ }
543
+
544
+ .cm-spinner {
545
+ animation: cm-spin 1s linear infinite;
546
+ }
547
+
548
+ @keyframes cm-spin {
549
+ from { transform: rotate(0deg); }
550
+ to { transform: rotate(360deg); }
551
+ }
552
+
553
+ /* ── Badge / Tag ── */
554
+ .cm-badge {
555
+ display: inline-flex;
556
+ align-items: center;
557
+ gap: 4px;
558
+ padding: 3px 8px;
559
+ border-radius: 4px;
560
+ font-size: 11px;
561
+ font-weight: 600;
562
+ text-transform: uppercase;
563
+ letter-spacing: 0.03em;
564
+ }
565
+
566
+ .cm-badge--primary {
567
+ background: hsl(var(--primary) / 0.15);
568
+ color: hsl(var(--primary));
569
+ }
570
+
571
+ .cm-badge--accent {
572
+ background: hsl(var(--accent) / 0.15);
573
+ color: hsl(var(--accent));
574
+ }
575
+
576
+ .cm-badge--muted {
577
+ background: hsl(var(--muted));
578
+ color: hsl(var(--muted-foreground));
579
+ }
580
+
581
+ .cm-badge--success {
582
+ background: hsl(142 71% 45% / 0.15);
583
+ color: hsl(142 71% 45%);
584
+ }
585
+
586
+ .cm-badge--destructive {
587
+ background: hsl(var(--destructive) / 0.15);
588
+ color: hsl(var(--destructive));
589
+ }
590
+
591
+ /* ── Search Bar ── */
592
+ .cm-search-bar {
593
+ display: flex;
594
+ align-items: center;
595
+ gap: 12px;
596
+ padding: 12px 16px;
597
+ background: hsl(var(--card));
598
+ border: 1px solid hsl(var(--border));
599
+ border-radius: 8px;
600
+ }
601
+
602
+ .cm-search-bar__icon {
603
+ color: hsl(var(--muted-foreground));
604
+ flex-shrink: 0;
605
+ }
606
+
607
+ .cm-search-bar__input {
608
+ flex: 1;
609
+ background: transparent;
610
+ border: none;
611
+ color: hsl(var(--foreground));
612
+ font-size: 14px;
613
+ font-family: var(--font-sans), sans-serif;
614
+ outline: none;
615
+ }
616
+
617
+ .cm-search-bar__input::placeholder {
618
+ color: hsl(var(--muted-foreground));
619
+ }
620
+
621
+ /* ── Filter Buttons ── */
622
+ .cm-filter-btn {
623
+ padding: 6px 14px;
624
+ background: hsl(var(--card));
625
+ border: 1px solid hsl(var(--border));
626
+ border-radius: 16px;
627
+ color: hsl(var(--muted-foreground));
628
+ font-size: 13px;
629
+ font-family: var(--font-sans), sans-serif;
630
+ cursor: pointer;
631
+ transition: all 0.2s;
632
+ }
633
+
634
+ .cm-filter-btn:hover {
635
+ border-color: hsl(var(--primary));
636
+ color: hsl(var(--foreground));
637
+ }
638
+
639
+ .cm-filter-btn[data-active="true"],
640
+ .cm-filter-btn.active {
641
+ background: hsl(var(--primary));
642
+ color: hsl(var(--primary-foreground));
643
+ border-color: hsl(var(--primary));
644
+ }
645
+
646
+ /* ── Icon Button ── */
647
+ .cm-icon-btn {
648
+ display: inline-flex;
649
+ align-items: center;
650
+ justify-content: center;
651
+ padding: 8px;
652
+ background: transparent;
653
+ border: 1px solid hsl(var(--border));
654
+ color: hsl(var(--muted-foreground));
655
+ border-radius: 6px;
656
+ cursor: pointer;
657
+ font-family: var(--font-sans), sans-serif;
658
+ transition: all 0.2s;
659
+ }
660
+
661
+ .cm-icon-btn:hover {
662
+ background: hsl(var(--muted));
663
+ color: hsl(var(--foreground));
664
+ }
665
+
666
+ .cm-icon-btn--danger:hover {
667
+ border-color: hsl(var(--destructive));
668
+ color: hsl(var(--destructive));
669
+ }
670
+
671
+ /* ── Settings Section ── */
672
+ .cm-settings-section {
673
+ margin-bottom: 24px;
674
+ padding: 20px;
675
+ background: hsl(var(--card));
676
+ border: 1px solid hsl(var(--border));
677
+ border-radius: 8px;
678
+ }
679
+
680
+ .cm-settings-section__title {
681
+ font-size: 14px;
682
+ font-weight: 600;
683
+ margin-bottom: 16px;
684
+ color: hsl(var(--muted-foreground));
685
+ text-transform: uppercase;
686
+ letter-spacing: 0.05em;
687
+ }
688
+
689
+ .cm-settings-section__hint {
690
+ margin-bottom: 14px;
691
+ font-size: 13px;
692
+ color: hsl(var(--muted-foreground));
693
+ }
694
+
695
+ /* ── Pagination ── */
696
+ .cm-pagination {
697
+ display: flex;
698
+ align-items: center;
699
+ justify-content: center;
700
+ gap: 16px;
701
+ margin-top: 32px;
702
+ padding-top: 24px;
703
+ border-top: 1px solid hsl(var(--border));
704
+ }
705
+
706
+ .cm-page-btn {
707
+ padding: 8px 16px;
708
+ background: hsl(var(--card));
709
+ border: 1px solid hsl(var(--border));
710
+ border-radius: 6px;
711
+ color: hsl(var(--muted-foreground));
712
+ cursor: pointer;
713
+ font-size: 13px;
714
+ font-family: var(--font-sans), sans-serif;
715
+ transition: all 0.2s;
716
+ }
717
+
718
+ .cm-page-btn:hover:not(:disabled) {
719
+ background: hsl(var(--muted));
720
+ color: hsl(var(--foreground));
721
+ }
722
+
723
+ .cm-page-btn:disabled {
724
+ opacity: 0.4;
725
+ cursor: not-allowed;
726
+ }
727
+
728
+ .cm-page-info {
729
+ font-size: 13px;
730
+ color: hsl(var(--muted-foreground));
731
+ }
732
+
733
+ /* ── Card ── */
734
+ .cm-card {
735
+ background: hsl(var(--card));
736
+ border: 1px solid hsl(var(--border));
737
+ border-radius: 10px;
738
+ padding: 18px;
739
+ transition: all 0.2s;
740
+ }
741
+
742
+ .cm-card:hover {
743
+ border-color: hsl(var(--border) / 0.8);
744
+ transform: translateY(-2px);
745
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
746
+ }
747
+
748
+ /* ── Code Block ── */
749
+ .cm-code-block {
750
+ display: block;
751
+ padding: 10px 12px;
752
+ background: hsl(var(--muted));
753
+ border-radius: 6px;
754
+ font-size: 12px;
755
+ color: hsl(var(--primary));
756
+ word-break: break-all;
757
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
758
+ }
759
+
760
+ /* ── Error / Empty States ── */
761
+ .cm-error-message {
762
+ display: flex;
763
+ align-items: center;
764
+ justify-content: space-between;
765
+ padding: 16px;
766
+ background: hsl(var(--destructive) / 0.15);
767
+ border: 1px solid hsl(var(--destructive));
768
+ border-radius: 8px;
769
+ color: hsl(var(--destructive));
770
+ }
415
771
  `;
416
772
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/shell/styles.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkwBvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compose-market/theme",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Official design tokens and theme system for Compose.Market",
5
5
  "keywords": [
6
6
  "design-tokens",
@@ -46,11 +46,30 @@
46
46
  "import": "./dist/tailwind/preset.js",
47
47
  "default": "./dist/tailwind/preset.js"
48
48
  },
49
- "./css": "./dist/css/index.css",
50
- "./css/shell": "./dist/css/shell.css",
51
- "./css/tokens": "./dist/css/tokens.css",
52
- "./css/dark": "./dist/css/dark.css",
53
- "./css/light": "./dist/css/light.css"
49
+ "./css": {
50
+ "style": "./dist/css/index.css",
51
+ "default": "./dist/css/index.css"
52
+ },
53
+ "./css/shell": {
54
+ "style": "./dist/css/shell.css",
55
+ "default": "./dist/css/shell.css"
56
+ },
57
+ "./css/tokens": {
58
+ "style": "./dist/css/tokens.css",
59
+ "default": "./dist/css/tokens.css"
60
+ },
61
+ "./css/dark": {
62
+ "style": "./dist/css/dark.css",
63
+ "default": "./dist/css/dark.css"
64
+ },
65
+ "./css/light": {
66
+ "style": "./dist/css/light.css",
67
+ "default": "./dist/css/light.css"
68
+ },
69
+ "./css/effects": {
70
+ "style": "./dist/css/effects.css",
71
+ "default": "./dist/css/effects.css"
72
+ }
54
73
  },
55
74
  "main": "./dist/index.js",
56
75
  "types": "./dist/index.d.ts",
@@ -82,4 +101,4 @@
82
101
  "access": "public"
83
102
  },
84
103
  "module": "./dist/index.js"
85
- }
104
+ }