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