@compose-market/theme 0.0.99 → 0.1.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.
@@ -2212,39 +2212,39 @@
2212
2212
  align-items: center;
2213
2213
  gap: 0.42rem;
2214
2214
  min-width: 0;
2215
- flex: 1 1 18rem;
2216
- overflow: hidden;
2215
+ flex: 1 1 16rem;
2216
+ overflow: visible;
2217
2217
  }
2218
2218
 
2219
- .cm-playground__chip-section {
2219
+ .cm-playground__chip-dropdown {
2220
2220
  display: flex;
2221
2221
  align-items: center;
2222
- gap: 0.36rem;
2223
2222
  min-width: 0;
2224
- overflow: auto hidden;
2225
- scrollbar-width: none;
2226
- }
2227
-
2228
- .cm-playground__chip-section::-webkit-scrollbar {
2229
- display: none;
2230
- }
2231
-
2232
- .cm-playground__chip-section--types {
2233
- flex: 1 1 auto;
2223
+ flex: 0 1 auto;
2234
2224
  }
2235
2225
 
2236
- .cm-playground__chip-section--providers {
2237
- flex: 0 1 38%;
2226
+ .cm-playground__chip-menu {
2227
+ width: min(92vw, 34rem);
2228
+ max-height: min(28rem, var(--radix-dropdown-menu-content-available-height));
2229
+ border-color: hsl(var(--primary) / 0.18);
2230
+ background:
2231
+ linear-gradient(145deg, hsl(226 21% 23% / 0.92), hsl(221 50% 9% / 0.96)),
2232
+ hsl(var(--popover));
2233
+ box-shadow:
2234
+ 0 18px 44px hsl(221 50% 3% / 0.48),
2235
+ inset 0 1px 0 hsl(0 0% 100% / 0.055);
2236
+ backdrop-filter: blur(18px) saturate(1.08);
2238
2237
  }
2239
2238
 
2240
- .cm-playground__chip-label {
2241
- color: hsl(var(--muted-foreground));
2242
- font-family: var(--font-mono), monospace;
2243
- font-size: 0.62rem;
2244
- font-weight: 800;
2245
- letter-spacing: 0.12em;
2246
- text-transform: uppercase;
2247
- white-space: nowrap;
2239
+ .cm-playground__chip-menu-grid {
2240
+ display: flex;
2241
+ flex-direction: column;
2242
+ align-items: stretch;
2243
+ gap: 0.36rem;
2244
+ max-height: 23rem;
2245
+ overflow-y: auto;
2246
+ padding: 0.2rem;
2247
+ scrollbar-width: thin;
2248
2248
  }
2249
2249
 
2250
2250
  .cm-playground__divider {
@@ -2330,6 +2330,56 @@
2330
2330
  flex: 0 0 auto;
2331
2331
  padding: 0 0.58rem;
2332
2332
  white-space: nowrap;
2333
+ cursor: pointer;
2334
+ }
2335
+
2336
+ .cm-playground__chip-trigger {
2337
+ min-height: 2.2rem;
2338
+ max-width: min(100%, 14rem);
2339
+ padding: 0 0.72rem;
2340
+ }
2341
+
2342
+ .cm-model-badge {
2343
+ border-color: hsl(188 95% 43% / 0.28);
2344
+ background: hsl(188 95% 43% / 0.08);
2345
+ color: hsl(188 95% 78%);
2346
+ }
2347
+
2348
+ .cm-model-badge .cm-model-badge__dot {
2349
+ background: hsl(188 95% 58%);
2350
+ box-shadow: 0 0 12px hsl(188 95% 58% / 0.56);
2351
+ }
2352
+
2353
+ .cm-playground__chip-trigger.cm-playground__chip-trigger--type {
2354
+ border-color: hsl(292 85% 55% / 0.28);
2355
+ background: hsl(292 85% 55% / 0.08);
2356
+ color: hsl(292 85% 80%);
2357
+ }
2358
+
2359
+ .cm-playground__chip-trigger.cm-playground__chip-trigger--provider {
2360
+ border-color: hsl(148 75% 46% / 0.28);
2361
+ background: hsl(148 75% 46% / 0.08);
2362
+ color: hsl(148 75% 74%);
2363
+ }
2364
+
2365
+ .cm-playground__chip-menu .cm-playground__chip {
2366
+ width: 100%;
2367
+ max-width: 100%;
2368
+ justify-content: flex-start;
2369
+ }
2370
+
2371
+ .cm-playground__chip-text {
2372
+ min-width: 0;
2373
+ overflow: hidden;
2374
+ text-overflow: ellipsis;
2375
+ white-space: nowrap;
2376
+ }
2377
+
2378
+ .cm-playground__chip-chevron {
2379
+ width: 0.74rem;
2380
+ height: 0.74rem;
2381
+ flex: 0 0 auto;
2382
+ color: hsl(var(--muted-foreground));
2333
2383
  }
2334
2384
 
2335
2385
  .cm-playground__chip-icon {
@@ -2408,7 +2458,7 @@
2408
2458
  }
2409
2459
 
2410
2460
  .cm-model-badge[data-placeholder="true"] {
2411
- color: hsl(var(--muted-foreground));
2461
+ color: hsl(188 95% 78%);
2412
2462
  font-weight: 500;
2413
2463
  }
2414
2464
 
@@ -2851,15 +2901,16 @@
2851
2901
  .cm-playground__chips {
2852
2902
  flex-basis: 100%;
2853
2903
  order: 4;
2904
+ overflow: visible;
2854
2905
  }
2855
2906
 
2856
- .cm-playground__chip-label,
2857
- .cm-playground__divider {
2858
- display: none;
2907
+ .cm-playground__chip-dropdown {
2908
+ flex: 1 1 0;
2859
2909
  }
2860
2910
 
2861
- .cm-playground__chip-section--providers {
2862
- flex-basis: 42%;
2911
+ .cm-playground__chip-trigger {
2912
+ width: 100%;
2913
+ max-width: none;
2863
2914
  }
2864
2915
 
2865
2916
  .cm-chat-message__bubble {
@@ -706,6 +706,407 @@
706
706
  }
707
707
  }
708
708
 
709
+ /* Stream pocket */
710
+ .cm-stream-pocket {
711
+ display: flex;
712
+ flex-direction: column;
713
+ gap: 10px;
714
+ border: 1px solid hsl(var(--sidebar-border));
715
+ border-radius: 8px;
716
+ background: hsl(var(--card) / 0.92);
717
+ padding: 10px;
718
+ }
719
+
720
+ .cm-stream-pocket__header {
721
+ display: flex;
722
+ align-items: flex-start;
723
+ justify-content: space-between;
724
+ gap: 12px;
725
+ }
726
+
727
+ .cm-stream-pocket__copy {
728
+ min-width: 0;
729
+ flex: 1;
730
+ }
731
+
732
+ .cm-stream-pocket__title {
733
+ margin: 0;
734
+ color: hsl(var(--foreground));
735
+ font-size: 12px;
736
+ font-weight: 650;
737
+ line-height: 1.25;
738
+ }
739
+
740
+ .cm-stream-pocket__summary {
741
+ margin-top: 3px;
742
+ color: hsl(var(--muted-foreground));
743
+ font-size: 11px;
744
+ line-height: 1.35;
745
+ }
746
+
747
+ .cm-stream-pocket__metadata {
748
+ display: flex;
749
+ flex-wrap: wrap;
750
+ justify-content: flex-end;
751
+ gap: 6px;
752
+ color: hsl(var(--muted-foreground));
753
+ font-family: var(--font-mono, monospace);
754
+ font-size: 10px;
755
+ }
756
+
757
+ .cm-stream-pocket__body {
758
+ display: flex;
759
+ flex-direction: column;
760
+ gap: 6px;
761
+ }
762
+
763
+ .cm-stream-node {
764
+ border: 1px solid hsl(var(--sidebar-border));
765
+ border-radius: 6px;
766
+ background: hsl(var(--background) / 0.42);
767
+ overflow: hidden;
768
+ }
769
+
770
+ .cm-stream-node__summary-row {
771
+ display: flex;
772
+ align-items: center;
773
+ gap: 7px;
774
+ min-height: 28px;
775
+ padding: 6px 8px;
776
+ cursor: pointer;
777
+ list-style: none;
778
+ }
779
+
780
+ .cm-stream-node__summary-row::-webkit-details-marker {
781
+ display: none;
782
+ }
783
+
784
+ .cm-stream-node__marker {
785
+ width: 7px;
786
+ height: 7px;
787
+ border-radius: 999px;
788
+ background: hsl(var(--accent));
789
+ opacity: 0.72;
790
+ flex-shrink: 0;
791
+ }
792
+
793
+ .cm-stream-node[data-status="failed"] .cm-stream-node__marker {
794
+ background: hsl(0 84% 62%);
795
+ }
796
+
797
+ .cm-stream-node[data-status="completed"] .cm-stream-node__marker {
798
+ background: hsl(var(--cm-tone-green, 142 76% 55%));
799
+ }
800
+
801
+ .cm-stream-node[data-kind="warning"] .cm-stream-node__marker,
802
+ .cm-stream-node[data-kind="debug"][data-status="info"] .cm-stream-node__marker {
803
+ background: hsl(38 92% 55%);
804
+ }
805
+
806
+ .cm-stream-node[data-kind="error"] .cm-stream-node__marker {
807
+ background: hsl(0 84% 62%);
808
+ }
809
+
810
+ .cm-stream-node[data-kind="catalog"] .cm-stream-node__marker {
811
+ background: hsl(190 88% 55%);
812
+ }
813
+
814
+ .cm-stream-node[data-kind="receipt"],
815
+ .cm-stream-node[data-kind="payment"] {
816
+ border-color: hsl(var(--cm-tone-green, 142 76% 55%) / 0.28);
817
+ }
818
+
819
+ .cm-stream-node[data-kind="receipt"] .cm-stream-node__marker,
820
+ .cm-stream-node[data-kind="payment"] .cm-stream-node__marker {
821
+ background: hsl(var(--cm-tone-green, 142 76% 55%));
822
+ }
823
+
824
+ .cm-stream-node__title {
825
+ min-width: 0;
826
+ flex: 1;
827
+ overflow: hidden;
828
+ text-overflow: ellipsis;
829
+ white-space: nowrap;
830
+ color: hsl(var(--foreground));
831
+ font-size: 11px;
832
+ font-weight: 600;
833
+ }
834
+
835
+ .cm-stream-node__content {
836
+ display: flex;
837
+ flex-direction: column;
838
+ gap: 6px;
839
+ border-top: 1px solid hsl(var(--sidebar-border));
840
+ padding: 7px 8px 8px;
841
+ }
842
+
843
+ .cm-stream-node__summary {
844
+ white-space: pre-wrap;
845
+ color: hsl(var(--muted-foreground));
846
+ font-size: 11px;
847
+ line-height: 1.4;
848
+ }
849
+
850
+ .cm-stream-node__metadata {
851
+ display: flex;
852
+ flex-wrap: wrap;
853
+ gap: 6px;
854
+ color: hsl(var(--muted-foreground));
855
+ font-family: var(--font-mono, monospace);
856
+ font-size: 10px;
857
+ }
858
+
859
+ .cm-stream-node__children {
860
+ display: flex;
861
+ flex-direction: column;
862
+ gap: 6px;
863
+ padding-left: 10px;
864
+ border-left: 1px solid hsl(var(--sidebar-border));
865
+ }
866
+
867
+ .cm-stream-artifact {
868
+ display: flex;
869
+ flex-direction: column;
870
+ gap: 5px;
871
+ border: 1px solid hsl(var(--accent) / 0.22);
872
+ border-radius: 6px;
873
+ background: hsl(var(--accent) / 0.05);
874
+ padding: 7px 8px;
875
+ }
876
+
877
+ .cm-stream-artifact__row {
878
+ display: flex;
879
+ flex-wrap: wrap;
880
+ gap: 6px;
881
+ color: hsl(var(--muted-foreground));
882
+ font-family: var(--font-mono, monospace);
883
+ font-size: 10px;
884
+ }
885
+
886
+ .cm-stream-artifact__kind {
887
+ color: hsl(var(--accent));
888
+ text-transform: uppercase;
889
+ }
890
+
891
+ .cm-stream-artifact__link {
892
+ color: hsl(var(--accent));
893
+ font-size: 11px;
894
+ text-decoration: none;
895
+ }
896
+
897
+ .cm-stream-artifact__link:hover {
898
+ text-decoration: underline;
899
+ }
900
+
901
+ .cm-stream-source {
902
+ display: flex;
903
+ flex-direction: column;
904
+ gap: 4px;
905
+ border: 1px solid hsl(190 88% 55% / 0.22);
906
+ border-radius: 6px;
907
+ background: hsl(190 88% 55% / 0.06);
908
+ padding: 7px 8px;
909
+ color: inherit;
910
+ text-decoration: none;
911
+ }
912
+
913
+ .cm-stream-source:hover {
914
+ border-color: hsl(190 88% 55% / 0.42);
915
+ }
916
+
917
+ .cm-stream-source__title-row {
918
+ display: flex;
919
+ align-items: center;
920
+ gap: 6px;
921
+ min-width: 0;
922
+ }
923
+
924
+ .cm-stream-source__marker {
925
+ flex-shrink: 0;
926
+ color: hsl(190 88% 65%);
927
+ font-family: var(--font-mono, monospace);
928
+ font-size: 10px;
929
+ }
930
+
931
+ .cm-stream-source__title {
932
+ min-width: 0;
933
+ overflow: hidden;
934
+ text-overflow: ellipsis;
935
+ white-space: nowrap;
936
+ color: hsl(var(--foreground));
937
+ font-size: 11px;
938
+ font-weight: 650;
939
+ }
940
+
941
+ .cm-stream-source__snippet {
942
+ color: hsl(var(--muted-foreground));
943
+ font-size: 11px;
944
+ line-height: 1.4;
945
+ }
946
+
947
+ .cm-stream-source__metadata {
948
+ display: flex;
949
+ flex-wrap: wrap;
950
+ gap: 6px;
951
+ color: hsl(var(--muted-foreground));
952
+ font-family: var(--font-mono, monospace);
953
+ font-size: 10px;
954
+ }
955
+
956
+ .cm-stream-notice {
957
+ border: 1px solid hsl(var(--accent) / 0.24);
958
+ border-radius: 6px;
959
+ background: hsl(var(--accent) / 0.06);
960
+ padding: 7px 8px;
961
+ }
962
+
963
+ .cm-stream-notice[data-tone="warning"] {
964
+ border-color: hsl(38 92% 55% / 0.34);
965
+ background: hsl(38 92% 55% / 0.08);
966
+ }
967
+
968
+ .cm-stream-notice[data-tone="error"] {
969
+ border-color: hsl(0 84% 62% / 0.34);
970
+ background: hsl(0 84% 62% / 0.08);
971
+ }
972
+
973
+ .cm-stream-notice__header {
974
+ display: flex;
975
+ align-items: center;
976
+ justify-content: space-between;
977
+ gap: 8px;
978
+ }
979
+
980
+ .cm-stream-notice__title {
981
+ color: hsl(var(--foreground));
982
+ font-size: 11px;
983
+ font-weight: 650;
984
+ }
985
+
986
+ .cm-stream-notice__metadata {
987
+ color: hsl(var(--muted-foreground));
988
+ font-family: var(--font-mono, monospace);
989
+ font-size: 10px;
990
+ }
991
+
992
+ .cm-stream-notice__body {
993
+ margin-top: 4px;
994
+ color: hsl(var(--muted-foreground));
995
+ font-size: 11px;
996
+ line-height: 1.4;
997
+ }
998
+
999
+ .cm-stream-receipt,
1000
+ .cm-stream-session {
1001
+ border: 1px solid hsl(var(--cm-tone-green, 142 76% 55%) / 0.24);
1002
+ border-radius: 6px;
1003
+ background: hsl(var(--cm-tone-green, 142 76% 55%) / 0.06);
1004
+ padding: 7px 8px;
1005
+ }
1006
+
1007
+ .cm-stream-receipt__grid,
1008
+ .cm-stream-session__body {
1009
+ display: grid;
1010
+ grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
1011
+ gap: 6px;
1012
+ color: hsl(var(--muted-foreground));
1013
+ font-family: var(--font-mono, monospace);
1014
+ font-size: 10px;
1015
+ }
1016
+
1017
+ .cm-stream-receipt__grid span,
1018
+ .cm-stream-session__body span {
1019
+ min-width: 0;
1020
+ overflow: hidden;
1021
+ text-overflow: ellipsis;
1022
+ white-space: nowrap;
1023
+ }
1024
+
1025
+ .cm-stream-receipt__grid b,
1026
+ .cm-stream-session__body b {
1027
+ display: block;
1028
+ margin-bottom: 2px;
1029
+ color: hsl(var(--foreground));
1030
+ font-family: inherit;
1031
+ font-weight: 650;
1032
+ }
1033
+
1034
+ .cm-stream-receipt__body {
1035
+ margin-top: 6px;
1036
+ }
1037
+
1038
+ .cm-stream-session__header {
1039
+ display: flex;
1040
+ align-items: center;
1041
+ justify-content: space-between;
1042
+ gap: 8px;
1043
+ margin-bottom: 6px;
1044
+ }
1045
+
1046
+ .cm-stream-session__title {
1047
+ color: hsl(var(--foreground));
1048
+ font-size: 11px;
1049
+ font-weight: 650;
1050
+ }
1051
+
1052
+ .cm-stream-session__status {
1053
+ border: 1px solid hsl(var(--cm-tone-green, 142 76% 55%) / 0.28);
1054
+ border-radius: 4px;
1055
+ padding: 1px 5px;
1056
+ color: hsl(var(--cm-tone-green, 142 76% 65%));
1057
+ font-family: var(--font-mono, monospace);
1058
+ font-size: 9px;
1059
+ text-transform: uppercase;
1060
+ }
1061
+
1062
+ .cm-stream-transcript {
1063
+ display: flex;
1064
+ align-items: baseline;
1065
+ gap: 8px;
1066
+ border-left: 2px solid hsl(var(--accent) / 0.38);
1067
+ padding: 4px 0 4px 8px;
1068
+ }
1069
+
1070
+ .cm-stream-transcript__time {
1071
+ flex-shrink: 0;
1072
+ color: hsl(var(--muted-foreground));
1073
+ font-family: var(--font-mono, monospace);
1074
+ font-size: 10px;
1075
+ }
1076
+
1077
+ .cm-stream-transcript__text {
1078
+ min-width: 0;
1079
+ color: hsl(var(--foreground));
1080
+ font-size: 11px;
1081
+ line-height: 1.4;
1082
+ }
1083
+
1084
+ .cm-stream-media {
1085
+ width: 100%;
1086
+ max-width: 100%;
1087
+ border-radius: 6px;
1088
+ border: 1px solid hsl(var(--sidebar-border));
1089
+ background: hsl(var(--background) / 0.5);
1090
+ }
1091
+
1092
+ .cm-stream-media--image {
1093
+ display: block;
1094
+ max-height: 360px;
1095
+ object-fit: contain;
1096
+ }
1097
+
1098
+ .cm-stream-media--partial {
1099
+ filter: blur(6px) saturate(0.82);
1100
+ }
1101
+
1102
+ .cm-stream-media--audio {
1103
+ min-height: 36px;
1104
+ }
1105
+
1106
+ .cm-stream-media--video {
1107
+ max-height: 360px;
1108
+ }
1109
+
709
1110
  /* Skeleton */
710
1111
  .cm-workflow-card-skeleton {
711
1112
  border: 1px solid hsl(var(--accent) / 0.3);