@j3m-quantum/ui 0.7.10 → 0.7.11

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.
@@ -223,7 +223,7 @@
223
223
  --ring: var(--j3m-primary-250);
224
224
 
225
225
  /* Sidebar */
226
- --sidebar: var(--j3m-neutral-100);
226
+ --sidebar: var(--j3m-neutral-200);
227
227
  --sidebar-foreground: var(--j3m-neutral-900);
228
228
  --sidebar-primary: var(--j3m-primary-300);
229
229
  --sidebar-primary-foreground: #FFFFFF;
@@ -520,6 +520,51 @@ textarea,
520
520
  border-radius: var(--j3m-radius-full) !important;
521
521
  }
522
522
 
523
+ /* Toggle Group - pill with squared middle (same as button group) */
524
+ [data-slot="toggle-group"] {
525
+ background: var(--background);
526
+ border: 1px solid var(--input);
527
+ border-radius: var(--j3m-radius-full) !important;
528
+ overflow: hidden;
529
+ }
530
+ [data-slot="toggle-group-item"] {
531
+ border-radius: 0 !important;
532
+ }
533
+ [data-slot="toggle-group-item"]:first-child {
534
+ border-top-left-radius: var(--j3m-radius-full) !important;
535
+ border-bottom-left-radius: var(--j3m-radius-full) !important;
536
+ }
537
+ [data-slot="toggle-group-item"]:last-child {
538
+ border-top-right-radius: var(--j3m-radius-full) !important;
539
+ border-bottom-right-radius: var(--j3m-radius-full) !important;
540
+ }
541
+ /* Single item in toggle group - keep full pill */
542
+ [data-slot="toggle-group-item"]:only-child {
543
+ border-radius: var(--j3m-radius-full) !important;
544
+ }
545
+
546
+ /* OTP Input Group - pill with squared middle */
547
+ [data-slot="input-otp-group"] {
548
+ background: var(--background);
549
+ border: 1px solid var(--input);
550
+ border-radius: var(--j3m-radius-full) !important;
551
+ overflow: hidden;
552
+ }
553
+ [data-slot="input-otp-slot"] {
554
+ border-radius: 0 !important;
555
+ border: none !important;
556
+ border-right: 1px solid var(--input) !important;
557
+ box-shadow: none !important;
558
+ }
559
+ [data-slot="input-otp-slot"]:last-child {
560
+ border-right: none !important;
561
+ }
562
+
563
+ /* Native Select - pill shape */
564
+ [data-slot="native-select"] {
565
+ border-radius: var(--j3m-radius-full) !important;
566
+ }
567
+
523
568
  /* ========================================
524
569
  GLASS UTILITY CLASSES
525
570
  ======================================== */
@@ -658,10 +703,6 @@ textarea,
658
703
  }
659
704
 
660
705
  /* --- INPUT OTP --- */
661
- .glass-context [data-slot="input-otp-container"] {
662
- background: transparent !important;
663
- }
664
-
665
706
  .glass-context [data-slot="input-otp-slot"],
666
707
  .glass-context [data-input-otp-slot] {
667
708
  background: rgba(255, 255, 255, 0.7) !important;
@@ -669,8 +710,8 @@ textarea,
669
710
  color: rgba(0, 0, 0, 0.85) !important;
670
711
  }
671
712
 
672
- .glass-context [data-slot="input-otp-slot"][data-active],
673
- .glass-context [data-input-otp-slot][data-active] {
713
+ .glass-context [data-slot="input-otp-slot"][data-active=true],
714
+ .glass-context [data-input-otp-slot][data-active=true] {
674
715
  border-color: var(--j3m-primary-300) !important;
675
716
  }
676
717
 
@@ -868,20 +909,23 @@ textarea,
868
909
  border-color: var(--j3m-primary-300) !important;
869
910
  }
870
911
 
871
- /* --- TOGGLE --- */
872
- .glass-context [data-slot="toggle"] {
912
+ /* --- TOGGLE / TOGGLE GROUP --- */
913
+ .glass-context [data-slot="toggle"],
914
+ .glass-context [data-slot="toggle-group-item"] {
873
915
  background: rgba(255, 255, 255, 0.7) !important;
874
916
  border-color: rgba(0, 0, 0, 0.15) !important;
875
917
  color: rgba(0, 0, 0, 0.8) !important;
876
918
  }
877
919
 
878
- .glass-context [data-slot="toggle"][data-state="on"] {
920
+ .glass-context [data-slot="toggle"][data-state="on"],
921
+ .glass-context [data-slot="toggle-group-item"][data-state="on"] {
879
922
  background: var(--j3m-primary-300) !important;
880
923
  border-color: var(--j3m-primary-300) !important;
881
924
  color: #FFFFFF !important;
882
925
  }
883
926
 
884
- .glass-context [data-slot="toggle"]:hover {
927
+ .glass-context [data-slot="toggle"]:hover,
928
+ .glass-context [data-slot="toggle-group-item"]:hover {
885
929
  background: var(--j3m-primary-300) !important;
886
930
  border-color: var(--j3m-primary-300) !important;
887
931
  color: #FFFFFF !important;
@@ -954,6 +998,81 @@ textarea,
954
998
  backdrop-filter: blur(16px) !important;
955
999
  }
956
1000
 
1001
+ /* --- COMMAND / SEARCH INPUT --- */
1002
+ .glass-context [data-slot="command"] {
1003
+ background: transparent !important;
1004
+ border: none !important;
1005
+ }
1006
+
1007
+ .glass-context [data-slot="command-input-wrapper"] {
1008
+ background: rgba(255, 255, 255, 0.7) !important;
1009
+ border: 1px solid rgba(0, 0, 0, 0.15) !important;
1010
+ border-radius: var(--j3m-radius-full) !important;
1011
+ padding-left: 1rem !important;
1012
+ padding-right: 1rem !important;
1013
+ }
1014
+
1015
+ .glass-context [data-slot="command-input"] {
1016
+ background: transparent !important;
1017
+ color: rgba(0, 0, 0, 0.85) !important;
1018
+ }
1019
+
1020
+ .glass-context [data-slot="command-input"]::placeholder {
1021
+ color: rgba(0, 0, 0, 0.5) !important;
1022
+ }
1023
+
1024
+ .glass-context [data-slot="command-input-wrapper"]:focus-within {
1025
+ border-color: var(--j3m-primary-300) !important;
1026
+ box-shadow: 0 0 0 3px rgba(243, 108, 33, 0.2) !important;
1027
+ }
1028
+
1029
+ .glass-context [data-slot="command-item"][data-selected=true] {
1030
+ background: var(--j3m-primary-300) !important;
1031
+ color: #FFFFFF !important;
1032
+ }
1033
+
1034
+ /* --- SCROLL AREA --- */
1035
+ .glass-context [data-slot="scroll-area"] {
1036
+ background: rgba(255, 255, 255, 0.7) !important;
1037
+ border: 1px solid rgba(0, 0, 0, 0.15) !important;
1038
+ border-radius: var(--radius) !important;
1039
+ }
1040
+
1041
+ /* --- COLLAPSIBLE --- */
1042
+ .glass-context [data-slot="collapsible-trigger"] {
1043
+ background: rgba(255, 255, 255, 0.7) !important;
1044
+ border: 1px solid rgba(0, 0, 0, 0.15) !important;
1045
+ border-radius: var(--radius) !important;
1046
+ padding: 0.5rem 1rem !important;
1047
+ width: 100% !important;
1048
+ text-align: left !important;
1049
+ color: rgba(0, 0, 0, 0.85) !important;
1050
+ }
1051
+
1052
+ /* --- CARD (ensure frosted glass in glass context) --- */
1053
+ .glass-context [data-slot="card"]:not([class*="glass"]) {
1054
+ background: var(--j3m-glass-frosted-card) !important;
1055
+ backdrop-filter: blur(var(--j3m-blur-frosted)) !important;
1056
+ -webkit-backdrop-filter: blur(var(--j3m-blur-frosted)) !important;
1057
+ border: none !important;
1058
+ box-shadow: var(--j3m-glass-shadow-md) !important;
1059
+ position: relative;
1060
+ }
1061
+
1062
+ .glass-context [data-slot="card"]:not([class*="glass"])::before {
1063
+ content: '';
1064
+ position: absolute;
1065
+ inset: 0;
1066
+ border-radius: inherit;
1067
+ padding: 1px;
1068
+ background: var(--j3m-glass-border-gradient);
1069
+ -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
1070
+ mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
1071
+ -webkit-mask-composite: xor;
1072
+ mask-composite: exclude;
1073
+ pointer-events: none;
1074
+ }
1075
+
957
1076
  /* ========================================
958
1077
  TOAST/SONNER POSITIONING
959
1078
  Position toasts at top-center of screen
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@j3m-quantum/ui",
3
- "version": "0.7.10",
3
+ "version": "0.7.11",
4
4
  "description": "J3M UI Component Library - themed shadcn/ui components with design tokens",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",