@aortl/admin-css 0.7.1 → 0.8.0

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/admin.css CHANGED
@@ -33,21 +33,21 @@
33
33
  --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
34
34
  --default-font-family: var(--font-sans);
35
35
  --default-mono-font-family: var(--font-mono);
36
- --color-paper: #fffcf0;
37
- --color-black: #100f0f;
38
- --color-base-50: #f2f0e5;
39
- --color-base-100: #e6e4d9;
40
- --color-base-150: #dad8ce;
41
- --color-base-200: #cecdc3;
42
- --color-base-300: #b7b5ac;
43
- --color-base-400: #9f9d96;
44
- --color-base-500: #878580;
45
- --color-base-600: #6f6e69;
46
- --color-base-700: #575653;
47
- --color-base-800: #403e3c;
48
- --color-base-850: #343331;
49
- --color-base-900: #282726;
50
- --color-base-950: #1c1b1a;
36
+ --color-paper: #ffffff;
37
+ --color-black: #0f0f0f;
38
+ --color-base-50: #fafafa;
39
+ --color-base-100: #f4f4f4;
40
+ --color-base-150: #e7e7e7;
41
+ --color-base-200: #d4d4d4;
42
+ --color-base-300: #b3b3b3;
43
+ --color-base-400: #9b9b9b;
44
+ --color-base-500: #848484;
45
+ --color-base-600: #6c6c6c;
46
+ --color-base-700: #555555;
47
+ --color-base-800: #3e3e3e;
48
+ --color-base-850: #333333;
49
+ --color-base-900: #272727;
50
+ --color-base-950: #1b1b1b;
51
51
  --color-red-50: #ffe1d5;
52
52
  --color-red-100: #ffcabb;
53
53
  --color-red-150: #fdb2a2;
@@ -373,6 +373,15 @@
373
373
  white-space: nowrap;
374
374
  border-width: 0;
375
375
  }
376
+ .absolute {
377
+ position: absolute;
378
+ }
379
+ .fixed {
380
+ position: fixed;
381
+ }
382
+ .relative {
383
+ position: relative;
384
+ }
376
385
  .sticky {
377
386
  position: sticky;
378
387
  }
@@ -397,12 +406,18 @@
397
406
  .block {
398
407
  display: block;
399
408
  }
409
+ .flex {
410
+ display: flex;
411
+ }
400
412
  .grid {
401
413
  display: grid;
402
414
  }
403
415
  .hidden {
404
416
  display: none;
405
417
  }
418
+ .inline {
419
+ display: inline;
420
+ }
406
421
  .table {
407
422
  display: table;
408
423
  }
@@ -415,6 +430,15 @@
415
430
  .transform {
416
431
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
417
432
  }
433
+ .overflow-hidden {
434
+ overflow: hidden;
435
+ }
436
+ .rounded {
437
+ border-radius: 0.25rem;
438
+ }
439
+ .rounded-md {
440
+ border-radius: var(--radius-md);
441
+ }
418
442
  .text-right {
419
443
  text-align: right;
420
444
  }
@@ -808,6 +832,136 @@
808
832
  user-select: none;
809
833
  }
810
834
  }
835
+ @layer components {
836
+ .kbd {
837
+ display: inline-flex;
838
+ height: 1.4em;
839
+ min-width: 1.25em;
840
+ align-items: center;
841
+ justify-content: center;
842
+ border-radius: 0.25rem;
843
+ border-style: var(--tw-border-style);
844
+ border-width: 1px;
845
+ border-color: var(--color-border);
846
+ background-color: var(--color-surface-strong);
847
+ padding-inline: 0.35em;
848
+ vertical-align: middle;
849
+ font-family: var(--font-mono);
850
+ font-size: 0.75em;
851
+ --tw-leading: 1;
852
+ line-height: 1;
853
+ white-space: nowrap;
854
+ color: var(--color-text-muted);
855
+ font-variant-numeric: tabular-nums;
856
+ }
857
+ .kbd-group {
858
+ display: inline-flex;
859
+ align-items: center;
860
+ gap: calc(var(--spacing) * 1);
861
+ vertical-align: middle;
862
+ }
863
+ .btn .kbd, .menu-item .kbd {
864
+ color: currentColor;
865
+ background-color: currentColor;
866
+ @supports (color: color-mix(in lab, red, red)) {
867
+ background-color: color-mix(in srgb, currentColor 12%, transparent);
868
+ }
869
+ border-color: currentColor;
870
+ @supports (color: color-mix(in lab, red, red)) {
871
+ border-color: color-mix(in srgb, currentColor 22%, transparent);
872
+ }
873
+ }
874
+ .btn > .kbd-group {
875
+ opacity: 0.85;
876
+ }
877
+ .menu-item > .kbd-group {
878
+ margin-inline-start: auto;
879
+ }
880
+ .btn-group-vertical > .btn > .kbd-group {
881
+ margin-inline-start: auto;
882
+ }
883
+ }
884
+ @layer components {
885
+ .indicator {
886
+ position: relative;
887
+ display: inline-flex;
888
+ width: max-content;
889
+ }
890
+ .indicator:has(> .btn), .indicator:has(> .input) {
891
+ --indicator-offset: 2px;
892
+ }
893
+ .indicator:has(> .card) {
894
+ --indicator-offset: 6px;
895
+ }
896
+ .indicator-item {
897
+ position: absolute;
898
+ z-index: 1;
899
+ white-space: nowrap;
900
+ top: var(--indicator-top, 0);
901
+ bottom: var(--indicator-bottom, auto);
902
+ inset-inline-start: var(--indicator-start, auto);
903
+ inset-inline-end: var(--indicator-end, 0);
904
+ transform: translate(var(--indicator-tx, 50%), var(--indicator-ty, -50%)) translate( var(--indicator-offset-x, calc(-1 * var(--indicator-offset, 0px))), var(--indicator-offset-y, var(--indicator-offset, 0px)) );
905
+ }
906
+ .indicator-start {
907
+ --indicator-start: 0;
908
+ --indicator-end: auto;
909
+ --indicator-tx: -50%;
910
+ --indicator-offset-x: var(--indicator-offset, 0px);
911
+ }
912
+ .indicator-center {
913
+ --indicator-start: 50%;
914
+ --indicator-end: auto;
915
+ --indicator-tx: -50%;
916
+ --indicator-offset-x: 0px;
917
+ }
918
+ .indicator-end {
919
+ --indicator-start: auto;
920
+ --indicator-end: 0;
921
+ --indicator-tx: 50%;
922
+ --indicator-offset-x: calc(-1 * var(--indicator-offset, 0px));
923
+ }
924
+ .indicator-top {
925
+ --indicator-top: 0;
926
+ --indicator-bottom: auto;
927
+ --indicator-ty: -50%;
928
+ --indicator-offset-y: var(--indicator-offset, 0px);
929
+ }
930
+ .indicator-middle {
931
+ --indicator-top: 50%;
932
+ --indicator-bottom: auto;
933
+ --indicator-ty: -50%;
934
+ --indicator-offset-y: 0px;
935
+ }
936
+ .indicator-bottom {
937
+ --indicator-top: auto;
938
+ --indicator-bottom: 0;
939
+ --indicator-ty: 50%;
940
+ --indicator-offset-y: calc(-1 * var(--indicator-offset, 0px));
941
+ }
942
+ .indicator-dot {
943
+ display: inline-block;
944
+ height: calc(var(--spacing) * 2);
945
+ width: calc(var(--spacing) * 2);
946
+ border-radius: calc(infinity * 1px);
947
+ background-color: var(--color-text-muted);
948
+ }
949
+ .indicator-dot-info {
950
+ background-color: var(--color-info);
951
+ }
952
+ .indicator-dot-success {
953
+ background-color: var(--color-success);
954
+ }
955
+ .indicator-dot-warning {
956
+ background-color: var(--color-warning);
957
+ }
958
+ .indicator-dot-danger {
959
+ background-color: var(--color-danger);
960
+ }
961
+ .indicator-dot-primary {
962
+ background-color: var(--color-primary);
963
+ }
964
+ }
811
965
  @layer components {
812
966
  .spinner {
813
967
  display: inline-block;
@@ -1140,12 +1294,12 @@
1140
1294
  padding: 0.125rem;
1141
1295
  transition: opacity 100ms ease, color 100ms ease;
1142
1296
  }
1143
- .property-list-copyable .property-list-copy, .property-list-value-copyable .property-list-copy {
1297
+ .property-list-value-copyable .property-list-copy {
1144
1298
  display: inline-flex;
1145
1299
  opacity: 0;
1146
1300
  pointer-events: none;
1147
1301
  }
1148
- .property-list-copyable .property-list-label:hover + .property-list-value .property-list-copy, .property-list-copyable .property-list-value:hover .property-list-copy, .property-list-label:has(+ .property-list-value-copyable):hover + .property-list-value .property-list-copy, .property-list-value-copyable:hover .property-list-copy, .property-list-copy:focus-visible, .property-list-copy[data-copied] {
1302
+ .property-list-label:has(+ .property-list-value-copyable):hover + .property-list-value .property-list-copy, .property-list-value-copyable:hover .property-list-copy, .property-list-copy:focus-visible, .property-list-copy[data-copied] {
1149
1303
  opacity: 1;
1150
1304
  pointer-events: auto;
1151
1305
  }
@@ -1310,17 +1464,6 @@
1310
1464
  z-index: 10;
1311
1465
  }
1312
1466
  }
1313
- .btn-group > .btn:not(:first-child) {
1314
- margin-left: -1px;
1315
- }
1316
- .btn-group > .btn:first-child {
1317
- border-top-left-radius: var(--radius-lg);
1318
- border-bottom-left-radius: var(--radius-lg);
1319
- }
1320
- .btn-group > .btn:last-child {
1321
- border-top-right-radius: var(--radius-lg);
1322
- border-bottom-right-radius: var(--radius-lg);
1323
- }
1324
1467
  .btn-group > .menu {
1325
1468
  position: relative;
1326
1469
  &:focus-visible {
@@ -1328,21 +1471,21 @@
1328
1471
  }
1329
1472
  display: inline-flex;
1330
1473
  }
1331
- .btn-group > .menu:not(:first-child) {
1332
- margin-left: -1px;
1333
- }
1334
1474
  .btn-group > .menu > .menu-trigger {
1335
1475
  border-radius: 0;
1336
1476
  }
1337
- .btn-group > .menu:first-child > .menu-trigger {
1477
+ .btn-group:not(.btn-group-vertical) > .btn:not(:first-child), .btn-group:not(.btn-group-vertical) > .menu:not(:first-child) {
1478
+ margin-left: -1px;
1479
+ }
1480
+ .btn-group:not(.btn-group-vertical) > .btn:first-child, .btn-group:not(.btn-group-vertical) > .menu:first-child > .menu-trigger {
1338
1481
  border-top-left-radius: var(--radius-lg);
1339
1482
  border-bottom-left-radius: var(--radius-lg);
1340
1483
  }
1341
- .btn-group > .menu:last-child > .menu-trigger {
1484
+ .btn-group:not(.btn-group-vertical) > .btn:last-child, .btn-group:not(.btn-group-vertical) > .menu:last-child > .menu-trigger {
1342
1485
  border-top-right-radius: var(--radius-lg);
1343
1486
  border-bottom-right-radius: var(--radius-lg);
1344
1487
  }
1345
- .btn-group > .btn:not(:first-child), .btn-group > .menu:not(:first-child) > .menu-trigger {
1488
+ .btn-group:not(.btn-group-vertical) > .btn:not(:first-child), .btn-group:not(.btn-group-vertical) > .menu:not(:first-child) > .menu-trigger {
1346
1489
  border-left-color: currentColor;
1347
1490
  @supports (color: color-mix(in lab, red, red)) {
1348
1491
  border-left-color: color-mix(in srgb, currentColor 25%, transparent);
@@ -1352,20 +1495,26 @@
1352
1495
  display: inline-flex;
1353
1496
  flex-direction: column;
1354
1497
  }
1355
- .btn-group-vertical > .btn:not(:first-child) {
1498
+ .btn-group-vertical > .btn {
1499
+ justify-content: flex-start;
1500
+ }
1501
+ .btn-group-vertical > .btn:not(:first-child), .btn-group-vertical > .menu:not(:first-child) {
1356
1502
  margin-top: -1px;
1357
- margin-left: calc(var(--spacing) * 0);
1358
1503
  }
1359
- .btn-group-vertical > .btn:first-child {
1504
+ .btn-group-vertical > .btn:first-child, .btn-group-vertical > .menu:first-child > .menu-trigger {
1360
1505
  border-top-left-radius: var(--radius-lg);
1361
1506
  border-top-right-radius: var(--radius-lg);
1362
- border-bottom-left-radius: 0;
1363
1507
  }
1364
- .btn-group-vertical > .btn:last-child {
1365
- border-top-right-radius: 0;
1508
+ .btn-group-vertical > .btn:last-child, .btn-group-vertical > .menu:last-child > .menu-trigger {
1366
1509
  border-bottom-right-radius: var(--radius-lg);
1367
1510
  border-bottom-left-radius: var(--radius-lg);
1368
1511
  }
1512
+ .btn-group-vertical > .btn:not(:first-child), .btn-group-vertical > .menu:not(:first-child) > .menu-trigger {
1513
+ border-top-color: currentColor;
1514
+ @supports (color: color-mix(in lab, red, red)) {
1515
+ border-top-color: color-mix(in srgb, currentColor 25%, transparent);
1516
+ }
1517
+ }
1369
1518
  }
1370
1519
  @layer components {
1371
1520
  .input {
@@ -2093,7 +2242,6 @@
2093
2242
  .dialog {
2094
2243
  margin: auto;
2095
2244
  flex-direction: column;
2096
- overflow: hidden;
2097
2245
  border-radius: var(--radius-xl);
2098
2246
  border-style: var(--tw-border-style);
2099
2247
  border-width: 1px;
@@ -2181,6 +2329,8 @@
2181
2329
  background-color: var(--color-surface-muted);
2182
2330
  padding-inline: calc(var(--spacing) * 5);
2183
2331
  padding-block: calc(var(--spacing) * 3);
2332
+ border-bottom-left-radius: inherit;
2333
+ border-bottom-right-radius: inherit;
2184
2334
  }
2185
2335
  .dialog-close {
2186
2336
  display: inline-flex;
@@ -2552,6 +2702,27 @@
2552
2702
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
2553
2703
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2554
2704
  }
2705
+ @supports (anchor-name: --x) {
2706
+ .menu {
2707
+ anchor-scope: --menu-trigger;
2708
+ }
2709
+ .menu-trigger {
2710
+ anchor-name: --menu-trigger;
2711
+ }
2712
+ .menu-popup {
2713
+ position: fixed;
2714
+ position-anchor: --menu-trigger;
2715
+ top: anchor(bottom);
2716
+ left: anchor(left);
2717
+ position-try-fallbacks: --menu-popup-flip-up;
2718
+ }
2719
+ }
2720
+ @position-try --menu-popup-flip-up {
2721
+ top: auto;
2722
+ bottom: anchor(top);
2723
+ margin-top: 0;
2724
+ margin-bottom: 0.25rem;
2725
+ }
2555
2726
  .menu-item {
2556
2727
  display: flex;
2557
2728
  width: 100%;
@@ -3074,7 +3245,7 @@
3074
3245
  position: fixed;
3075
3246
  inset: calc(var(--spacing) * 0);
3076
3247
  z-index: 40;
3077
- background-color: color-mix(in srgb, #100f0f 40%, transparent);
3248
+ background-color: color-mix(in srgb, #0f0f0f 40%, transparent);
3078
3249
  @supports (color: color-mix(in lab, red, red)) {
3079
3250
  background-color: color-mix(in oklab, var(--color-black) 40%, transparent);
3080
3251
  }