basecoat-css 0.3.4 → 0.3.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.
package/dist/basecoat.css CHANGED
@@ -381,42 +381,44 @@
381
381
  }
382
382
 
383
383
  /* Button Group */
384
- .button-group {
385
- @apply inline-flex w-fit items-stretch isolate;
386
-
387
- > *:focus-visible,
388
- > :is(.dropdown-menu, .popover, .select) > button:focus-visible {
389
- @apply relative z-10;
390
- }
391
-
392
- > hr[role='separator'] {
393
- @apply w-0 h-auto self-stretch border border-input shrink-0 m-0;
394
- }
395
-
396
- &:not([data-orientation='vertical']) {
397
- > *:not(:first-child),
398
- > :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
399
- @apply rounded-l-none border-l-0;
400
- }
401
- > *:not(:last-child),
402
- > :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
403
- @apply rounded-r-none;
384
+ @layer components {
385
+ .button-group {
386
+ @apply inline-flex w-fit items-stretch isolate;
387
+
388
+ > *:focus-visible,
389
+ > :is(.dropdown-menu, .popover, .select) > button:focus-visible {
390
+ @apply relative z-10;
404
391
  }
405
- }
406
- &[data-orientation='vertical'] {
407
- @apply flex-col;
408
392
 
409
393
  > hr[role='separator'] {
410
- @apply w-auto h-px;
411
- }
412
-
413
- > *:not(:first-child),
414
- > :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
415
- @apply rounded-t-none border-t-0;
394
+ @apply w-0 h-auto self-stretch border border-input shrink-0 m-0;
416
395
  }
417
- > *:not(:last-child),
418
- > :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
419
- @apply rounded-b-none;
396
+
397
+ &:not([data-orientation='vertical']) {
398
+ > *:not(:first-child),
399
+ > :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
400
+ @apply rounded-l-none border-l-0;
401
+ }
402
+ > *:not(:last-child),
403
+ > :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
404
+ @apply rounded-r-none;
405
+ }
406
+ }
407
+ &[data-orientation='vertical'] {
408
+ @apply flex-col;
409
+
410
+ > hr[role='separator'] {
411
+ @apply w-auto h-px;
412
+ }
413
+
414
+ > *:not(:first-child),
415
+ > :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
416
+ @apply rounded-t-none border-t-0;
417
+ }
418
+ > *:not(:last-child),
419
+ > :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
420
+ @apply rounded-b-none;
421
+ }
420
422
  }
421
423
  }
422
424
  }
@@ -988,119 +990,121 @@
988
990
  }
989
991
 
990
992
  /* Sidebar */
991
- .sidebar {
992
- &:not([data-sidebar-initialized]) {
993
- @apply max-md:hidden;
994
- }
995
- &:not([aria-hidden]),
996
- &[aria-hidden=false] {
997
- @apply max-md:bg-black/50 max-md:fixed max-md:inset-0 max-md:z-40;
998
- }
999
- nav {
1000
- @apply bg-sidebar text-sidebar-foreground flex flex-col w-(--sidebar-mobile-width) md:w-(--sidebar-width) fixed inset-y-0 z-50 transition-transform ease-in-out duration-300;
1001
- }
1002
- & + * {
1003
- @apply transition-[margin] ease-in-out duration-300;
1004
- }
1005
- &:not([data-side]),
1006
- &[data-side=left] {
993
+ @layer components {
994
+ .sidebar {
995
+ &:not([data-sidebar-initialized]) {
996
+ @apply max-md:hidden;
997
+ }
998
+ &:not([aria-hidden]),
999
+ &[aria-hidden=false] {
1000
+ @apply max-md:bg-black/50 max-md:fixed max-md:inset-0 max-md:z-40;
1001
+ }
1007
1002
  nav {
1008
- @apply left-0 border-r;
1003
+ @apply bg-sidebar text-sidebar-foreground flex flex-col w-(--sidebar-mobile-width) md:w-(--sidebar-width) fixed inset-y-0 z-50 transition-transform ease-in-out duration-300;
1009
1004
  }
1010
1005
  & + * {
1011
- @apply relative md:ml-(--sidebar-width);
1006
+ @apply transition-[margin] ease-in-out duration-300;
1012
1007
  }
1013
- &[aria-hidden=true] {
1008
+ &:not([data-side]),
1009
+ &[data-side=left] {
1014
1010
  nav {
1015
- @apply -translate-x-full;
1011
+ @apply left-0 border-r;
1016
1012
  }
1017
1013
  & + * {
1018
- @apply md:ml-0;
1014
+ @apply relative md:ml-(--sidebar-width);
1015
+ }
1016
+ &[aria-hidden=true] {
1017
+ nav {
1018
+ @apply -translate-x-full;
1019
+ }
1020
+ & + * {
1021
+ @apply md:ml-0;
1022
+ }
1019
1023
  }
1020
1024
  }
1021
- }
1022
- &[data-side=right] {
1023
- nav {
1024
- @apply right-0 border-l;
1025
- }
1026
- & + * {
1027
- @apply relative md:mr-(--sidebar-width);
1028
- }
1029
- &[aria-hidden=true] {
1025
+ &[data-side=right] {
1030
1026
  nav {
1031
- @apply translate-x-full;
1027
+ @apply right-0 border-l;
1032
1028
  }
1033
1029
  & + * {
1034
- @apply md:mr-0;
1030
+ @apply relative md:mr-(--sidebar-width);
1031
+ }
1032
+ &[aria-hidden=true] {
1033
+ nav {
1034
+ @apply translate-x-full;
1035
+ }
1036
+ & + * {
1037
+ @apply md:mr-0;
1038
+ }
1035
1039
  }
1036
1040
  }
1037
- }
1038
- nav {
1039
- > header,
1040
- > footer {
1041
- @apply flex flex-col gap-2 p-2;
1042
- }
1043
- [role=separator] {
1044
- @apply border-sidebar-border mx-2 w-auto;
1045
- }
1046
- > section {
1047
- @apply flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto;
1048
-
1049
- > [role=group] {
1050
- @apply relative flex w-full min-w-0 flex-col p-2;
1041
+ nav {
1042
+ > header,
1043
+ > footer {
1044
+ @apply flex flex-col gap-2 p-2;
1051
1045
  }
1052
- h3 {
1053
- @apply text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0;
1046
+ [role=separator] {
1047
+ @apply border-sidebar-border mx-2 w-auto;
1054
1048
  }
1055
- ul {
1056
- @apply flex w-full min-w-0 flex-col gap-1;
1049
+ > section {
1050
+ @apply flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto;
1057
1051
 
1058
- li {
1059
- @apply relative;
1052
+ > [role=group] {
1053
+ @apply relative flex w-full min-w-0 flex-col p-2;
1054
+ }
1055
+ h3 {
1056
+ @apply text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0;
1057
+ }
1058
+ ul {
1059
+ @apply flex w-full min-w-0 flex-col gap-1;
1060
1060
 
1061
- > a,
1062
- > details > summary {
1063
- @apply flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&[aria-current=page]]:bg-sidebar-accent [&[aria-current=page]]:font-medium [&[aria-current=page]]:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0;
1061
+ li {
1062
+ @apply relative;
1064
1063
 
1065
- &:not([data-variant]),
1066
- &[data-variant=default] {
1067
- @apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
1068
- }
1069
- &[data-variant=outline] {
1070
- @apply bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))];
1071
- }
1072
- &:not([data-size]),
1073
- &[data-size=default] {
1074
- @apply h-8 text-sm;
1075
- }
1076
- &[data-size=sm] {
1077
- @apply h-7 text-xs;
1078
- }
1079
- &[data-size=lg] {
1080
- @apply h-12 text-sm group-data-[collapsible=icon]:p-0!;
1064
+ > a,
1065
+ > details > summary {
1066
+ @apply flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&[aria-current=page]]:bg-sidebar-accent [&[aria-current=page]]:font-medium [&[aria-current=page]]:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0;
1067
+
1068
+ &:not([data-variant]),
1069
+ &[data-variant=default] {
1070
+ @apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
1071
+ }
1072
+ &[data-variant=outline] {
1073
+ @apply bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))];
1074
+ }
1075
+ &:not([data-size]),
1076
+ &[data-size=default] {
1077
+ @apply h-8 text-sm;
1078
+ }
1079
+ &[data-size=sm] {
1080
+ @apply h-7 text-xs;
1081
+ }
1082
+ &[data-size=lg] {
1083
+ @apply h-12 text-sm group-data-[collapsible=icon]:p-0!;
1084
+ }
1081
1085
  }
1082
- }
1083
- > details {
1084
- &:not([open]) {
1086
+ > details {
1087
+ &:not([open]) {
1088
+ > summary {
1089
+ &::after {
1090
+ @apply -rotate-90;
1091
+ }
1092
+ }
1093
+ }
1085
1094
  > summary {
1086
1095
  &::after {
1087
- @apply -rotate-90;
1096
+ @apply content-[''] block size-3.5 bg-primary ml-auto transition-transform ease-linear;
1097
+ @apply mask-[image:var(--chevron-down-icon)] mask-size-[1rem] mask-no-repeat mask-center;
1088
1098
  }
1089
1099
  }
1090
- }
1091
- > summary {
1092
- &::after {
1093
- @apply content-[''] block size-3.5 bg-primary ml-auto transition-transform ease-linear;
1094
- @apply mask-[image:var(--chevron-down-icon)] mask-size-[1rem] mask-no-repeat mask-center;
1100
+ &::details-content {
1101
+ @apply px-3.5;
1095
1102
  }
1096
1103
  }
1097
- &::details-content {
1098
- @apply px-3.5;
1099
- }
1100
1104
  }
1101
- }
1102
- ul {
1103
- @apply border-sidebar-border flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5 w-full;
1105
+ ul {
1106
+ @apply border-sidebar-border flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5 w-full;
1107
+ }
1104
1108
  }
1105
1109
  }
1106
1110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "basecoat-css",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Tailwind CSS for Basecoat components",
5
5
  "author": {
6
6
  "name": "hunvreus",