@aortl/admin-react 0.16.2 → 0.17.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.
@@ -190,6 +190,10 @@
190
190
  syntax: "*";
191
191
  inherits: false;
192
192
  }
193
+ @property --tw-tracking {
194
+ syntax: "*";
195
+ inherits: false;
196
+ }
193
197
  @property --tw-translate-x {
194
198
  syntax: "*";
195
199
  inherits: false;
@@ -205,10 +209,6 @@
205
209
  inherits: false;
206
210
  initial-value: 0;
207
211
  }
208
- @property --tw-tracking {
209
- syntax: "*";
210
- inherits: false;
211
- }
212
212
  @scope (._ao-admin-root) {
213
213
  :scope :where(
214
214
  h1, h2, h3, h4, h5, h6,
@@ -268,10 +268,10 @@
268
268
  --tw-border-style: solid;
269
269
  --tw-outline-style: solid;
270
270
  --tw-duration: initial;
271
+ --tw-tracking: initial;
271
272
  --tw-translate-x: 0;
272
273
  --tw-translate-y: 0;
273
274
  --tw-translate-z: 0;
274
- --tw-tracking: initial;
275
275
  }
276
276
  }
277
277
  :scope, :scope:host, :scope :host {
@@ -296,6 +296,7 @@
296
296
  --font-weight-medium: 500;
297
297
  --font-weight-semibold: 600;
298
298
  --font-weight-bold: 700;
299
+ --tracking-tight: -0.025em;
299
300
  --tracking-wide: 0.025em;
300
301
  --leading-tight: 1.25;
301
302
  --leading-snug: 1.375;
@@ -791,11 +792,21 @@
791
792
  row-gap: 0.25rem;
792
793
  align-items: center;
793
794
  }
795
+ :scope._ao-alert:has(> ._ao-alert-action), :scope ._ao-alert:has(> ._ao-alert-action) {
796
+ display: grid;
797
+ grid-template-columns: minmax(0, 1fr) auto;
798
+ column-gap: 0.5rem;
799
+ row-gap: 0.25rem;
800
+ align-items: center;
801
+ }
802
+ :scope._ao-alert:has(> :is(i, svg):first-child):has(> ._ao-alert-action), :scope ._ao-alert:has(> :is(i, svg):first-child):has(> ._ao-alert-action) {
803
+ grid-template-columns: auto minmax(0, 1fr) auto;
804
+ }
794
805
  :scope._ao-alert > :is(i, svg):first-child, :scope ._ao-alert > :is(i, svg):first-child {
795
806
  font-size: 1rem;
796
807
  line-height: 1.25;
797
808
  }
798
- :scope._ao-alert:has(> :is(i, svg):first-child):has(> ._ao-alert-title), :scope ._ao-alert:has(> :is(i, svg):first-child):has(> ._ao-alert-title) {
809
+ :scope._ao-alert:has(> ._ao-alert-title):is(:has(> :is(i, svg):first-child), :has(> ._ao-alert-action)), :scope ._ao-alert:has(> ._ao-alert-title):is(:has(> :is(i, svg):first-child), :has(> ._ao-alert-action)) {
799
810
  grid-template-rows: auto auto;
800
811
  align-items: start;
801
812
  }
@@ -803,9 +814,20 @@
803
814
  grid-row: 1 / -1;
804
815
  }
805
816
  :scope._ao-alert > :is(._ao-alert-title, ._ao-alert-description), :scope ._ao-alert > :is(._ao-alert-title, ._ao-alert-description) {
806
- grid-column: 2;
807
817
  min-width: 0;
808
818
  }
819
+ :scope._ao-alert:has(> :is(i, svg):first-child) > :is(._ao-alert-title, ._ao-alert-description), :scope ._ao-alert:has(> :is(i, svg):first-child) > :is(._ao-alert-title, ._ao-alert-description) {
820
+ grid-column: 2;
821
+ }
822
+ :scope._ao-alert > ._ao-alert-action, :scope ._ao-alert > ._ao-alert-action {
823
+ --tw-font-weight: var(--font-weight-medium);
824
+ font-weight: var(--font-weight-medium);
825
+ white-space: nowrap;
826
+ grid-column: -2;
827
+ grid-row: 1 / -1;
828
+ justify-self: end;
829
+ align-self: center;
830
+ }
809
831
  :scope._ao-alert-info, :scope ._ao-alert-info {
810
832
  border-color: var(--color-info);
811
833
  background-color: var(--color-info);
@@ -833,6 +855,22 @@
833
855
  :scope._ao-alert-description, :scope ._ao-alert-description {
834
856
  opacity: 0.85;
835
857
  }
858
+ :scope._ao-alert ._ao-link, :scope ._ao-alert ._ao-link {
859
+ color: currentcolor;
860
+ &:hover {
861
+ @media (hover: hover) {
862
+ color: currentcolor;
863
+ }
864
+ }
865
+ &:hover {
866
+ @media (hover: hover) {
867
+ opacity: 85%;
868
+ }
869
+ }
870
+ &:focus-visible {
871
+ outline-color: currentcolor;
872
+ }
873
+ }
836
874
  :scope._ao-app-shell, :scope ._ao-app-shell {
837
875
  --app-shell-sidebar-w: 240px;
838
876
  --app-shell-sidebar-w-collapsed: 56px;
@@ -947,6 +985,74 @@
947
985
  background-color: var(--color-primary);
948
986
  color: var(--color-primary-content);
949
987
  }
988
+ :scope._ao-badge-soft._ao-badge-info, :scope ._ao-badge-soft._ao-badge-info {
989
+ border-color: var(--color-info-muted);
990
+ background-color: var(--color-info-muted);
991
+ color: var(--color-info);
992
+ }
993
+ :scope._ao-badge-soft._ao-badge-success, :scope ._ao-badge-soft._ao-badge-success {
994
+ border-color: var(--color-success-muted);
995
+ background-color: var(--color-success-muted);
996
+ color: var(--color-success);
997
+ }
998
+ :scope._ao-badge-soft._ao-badge-warning, :scope ._ao-badge-soft._ao-badge-warning {
999
+ border-color: var(--color-warning-muted);
1000
+ background-color: var(--color-warning-muted);
1001
+ color: var(--color-text);
1002
+ }
1003
+ :scope._ao-badge-soft._ao-badge-danger, :scope ._ao-badge-soft._ao-badge-danger {
1004
+ border-color: var(--color-danger-muted);
1005
+ background-color: var(--color-danger-muted);
1006
+ color: var(--color-danger);
1007
+ }
1008
+ :scope._ao-badge-soft._ao-badge-primary, :scope ._ao-badge-soft._ao-badge-primary {
1009
+ border-color: var(--color-primary-muted);
1010
+ background-color: var(--color-primary-muted);
1011
+ color: var(--color-text);
1012
+ }
1013
+ :scope._ao-badge-remove, :scope ._ao-badge-remove {
1014
+ margin-right: calc(var(--spacing) * -1);
1015
+ display: inline-flex;
1016
+ width: calc(var(--spacing) * 3.5);
1017
+ height: calc(var(--spacing) * 3.5);
1018
+ flex-shrink: 0;
1019
+ cursor: pointer;
1020
+ align-items: center;
1021
+ justify-content: center;
1022
+ border-radius: calc(infinity * 1px);
1023
+ color: inherit;
1024
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
1025
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1026
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
1027
+ --tw-duration: 150ms;
1028
+ transition-duration: 150ms;
1029
+ &:focus-visible {
1030
+ outline-style: var(--tw-outline-style);
1031
+ outline-width: 2px;
1032
+ }
1033
+ &:focus-visible {
1034
+ outline-offset: 1px;
1035
+ }
1036
+ &:focus-visible {
1037
+ outline-color: var(--color-focus);
1038
+ }
1039
+ }
1040
+ :scope._ao-badge-remove:hover, :scope ._ao-badge-remove:hover {
1041
+ background-color: currentColor;
1042
+ @supports (color: color-mix(in lab, red, red)) {
1043
+ background-color: color-mix(in oklab, currentColor 15%, transparent);
1044
+ }
1045
+ }
1046
+ :scope._ao-badge-sm ._ao-badge-remove, :scope ._ao-badge-sm ._ao-badge-remove {
1047
+ margin-right: calc(var(--spacing) * -0.5);
1048
+ width: calc(var(--spacing) * 3);
1049
+ height: calc(var(--spacing) * 3);
1050
+ }
1051
+ :scope._ao-badge-lg ._ao-badge-remove, :scope ._ao-badge-lg ._ao-badge-remove {
1052
+ margin-right: calc(var(--spacing) * -1.5);
1053
+ width: calc(var(--spacing) * 4.5);
1054
+ height: calc(var(--spacing) * 4.5);
1055
+ }
950
1056
  :scope._ao-badge-sm, :scope ._ao-badge-sm {
951
1057
  height: calc(var(--spacing) * 4);
952
1058
  gap: calc(var(--spacing) * 0.5);
@@ -978,6 +1084,104 @@
978
1084
  -webkit-user-select: none;
979
1085
  user-select: none;
980
1086
  }
1087
+ :scope._ao-brand-tile > :is(i, svg), :scope ._ao-brand-tile > :is(i, svg) {
1088
+ font-size: 14px;
1089
+ }
1090
+ :scope._ao-brand-tile-lg, :scope ._ao-brand-tile-lg {
1091
+ width: calc(var(--spacing) * 10);
1092
+ height: calc(var(--spacing) * 10);
1093
+ border-radius: var(--radius-md);
1094
+ font-size: var(--text-sm);
1095
+ line-height: var(--tw-leading, var(--text-sm--line-height));
1096
+ }
1097
+ :scope._ao-brand-tile-lg > :is(i, svg), :scope ._ao-brand-tile-lg > :is(i, svg) {
1098
+ font-size: 20px;
1099
+ }
1100
+ :scope._ao-brand-tile-soft, :scope ._ao-brand-tile-soft {
1101
+ background-color: var(--color-system-accent-muted);
1102
+ color: var(--color-system-accent);
1103
+ }
1104
+ :scope._ao-brand-tile-info, :scope ._ao-brand-tile-info {
1105
+ background-color: var(--color-info-muted);
1106
+ color: var(--color-info);
1107
+ }
1108
+ :scope._ao-brand-tile-success, :scope ._ao-brand-tile-success {
1109
+ background-color: var(--color-success-muted);
1110
+ color: var(--color-success);
1111
+ }
1112
+ :scope._ao-brand-tile-danger, :scope ._ao-brand-tile-danger {
1113
+ background-color: var(--color-danger-muted);
1114
+ color: var(--color-danger);
1115
+ }
1116
+ :scope._ao-brand-tile:has(> img), :scope ._ao-brand-tile:has(> img) {
1117
+ border-style: var(--tw-border-style);
1118
+ border-width: 1px;
1119
+ border-color: var(--color-border);
1120
+ background-color: var(--color-surface);
1121
+ padding: calc(var(--spacing) * 0.5);
1122
+ }
1123
+ :scope._ao-brand-tile > img, :scope ._ao-brand-tile > img {
1124
+ width: 100%;
1125
+ height: 100%;
1126
+ border-radius: inherit;
1127
+ object-fit: contain;
1128
+ }
1129
+ :scope._ao-avatar, :scope ._ao-avatar {
1130
+ position: relative;
1131
+ display: inline-flex;
1132
+ width: calc(var(--spacing) * 8);
1133
+ height: calc(var(--spacing) * 8);
1134
+ flex-shrink: 0;
1135
+ align-items: center;
1136
+ justify-content: center;
1137
+ overflow: hidden;
1138
+ border-radius: calc(infinity * 1px);
1139
+ background-color: var(--color-surface-strong);
1140
+ font-size: var(--text-xs);
1141
+ line-height: var(--tw-leading, var(--text-xs--line-height));
1142
+ --tw-leading: 1;
1143
+ line-height: 1;
1144
+ --tw-font-weight: var(--font-weight-medium);
1145
+ font-weight: var(--font-weight-medium);
1146
+ --tw-tracking: var(--tracking-tight);
1147
+ letter-spacing: var(--tracking-tight);
1148
+ color: var(--color-text-muted);
1149
+ -webkit-user-select: none;
1150
+ user-select: none;
1151
+ }
1152
+ :scope._ao-avatar > img, :scope ._ao-avatar > img {
1153
+ position: absolute;
1154
+ inset: calc(var(--spacing) * 0);
1155
+ width: 100%;
1156
+ height: 100%;
1157
+ object-fit: cover;
1158
+ }
1159
+ :scope._ao-avatar-square, :scope ._ao-avatar-square {
1160
+ border-radius: var(--radius-md);
1161
+ }
1162
+ :scope._ao-avatar-sm, :scope ._ao-avatar-sm {
1163
+ width: calc(var(--spacing) * 6);
1164
+ height: calc(var(--spacing) * 6);
1165
+ font-size: 0.625rem;
1166
+ }
1167
+ :scope._ao-avatar-lg, :scope ._ao-avatar-lg {
1168
+ width: calc(var(--spacing) * 10);
1169
+ height: calc(var(--spacing) * 10);
1170
+ font-size: var(--text-sm);
1171
+ line-height: var(--tw-leading, var(--text-sm--line-height));
1172
+ }
1173
+ :scope._ao-avatar-group, :scope ._ao-avatar-group {
1174
+ display: inline-flex;
1175
+ align-items: center;
1176
+ }
1177
+ :scope._ao-avatar-group > ._ao-avatar, :scope ._ao-avatar-group > ._ao-avatar {
1178
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1179
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1180
+ --tw-ring-color: var(--color-surface);
1181
+ }
1182
+ :scope._ao-avatar-group > ._ao-avatar + ._ao-avatar, :scope ._ao-avatar-group > ._ao-avatar + ._ao-avatar {
1183
+ margin-inline-start: calc(var(--spacing) * -2);
1184
+ }
981
1185
  :scope._ao-kbd, :scope ._ao-kbd {
982
1186
  display: inline-flex;
983
1187
  height: 1.4em;
@@ -1037,6 +1241,18 @@
1037
1241
  :scope._ao-indicator:has(> ._ao-card), :scope ._ao-indicator:has(> ._ao-card) {
1038
1242
  --indicator-offset: 6px;
1039
1243
  }
1244
+ :scope._ao-indicator:has(> ._ao-avatar), :scope ._ao-indicator:has(> ._ao-avatar) {
1245
+ --indicator-offset: 5px;
1246
+ }
1247
+ :scope._ao-indicator:has(> ._ao-avatar-sm), :scope ._ao-indicator:has(> ._ao-avatar-sm) {
1248
+ --indicator-offset: 3px;
1249
+ }
1250
+ :scope._ao-indicator:has(> ._ao-avatar-lg), :scope ._ao-indicator:has(> ._ao-avatar-lg) {
1251
+ --indicator-offset: 6px;
1252
+ }
1253
+ :scope._ao-indicator:has(> ._ao-avatar-square), :scope ._ao-indicator:has(> ._ao-avatar-square) {
1254
+ --indicator-offset: 2px;
1255
+ }
1040
1256
  :scope._ao-indicator-item, :scope ._ao-indicator-item {
1041
1257
  position: absolute;
1042
1258
  z-index: 1;
@@ -1459,6 +1675,22 @@
1459
1675
  :scope._ao-property-list-copy[data-copied], :scope ._ao-property-list-copy[data-copied] {
1460
1676
  color: var(--color-success);
1461
1677
  }
1678
+ :scope._ao-separator, :scope ._ao-separator {
1679
+ margin: calc(var(--spacing) * 0);
1680
+ display: block;
1681
+ height: 1px;
1682
+ width: 100%;
1683
+ flex-shrink: 0;
1684
+ border-style: var(--tw-border-style);
1685
+ border-width: 0px;
1686
+ background-color: var(--color-border);
1687
+ }
1688
+ :scope._ao-separator-vertical, :scope ._ao-separator-vertical {
1689
+ height: auto;
1690
+ width: 1px;
1691
+ align-self: stretch;
1692
+ min-height: 1lh;
1693
+ }
1462
1694
  :scope._ao-btn, :scope ._ao-btn {
1463
1695
  display: inline-flex;
1464
1696
  cursor: pointer;
@@ -1883,6 +2115,51 @@
1883
2115
  white-space: nowrap;
1884
2116
  color: var(--color-text-muted);
1885
2117
  }
2118
+ :scope._ao-input-icon, :scope ._ao-input-icon {
2119
+ position: relative;
2120
+ display: inline-flex;
2121
+ width: 100%;
2122
+ align-items: center;
2123
+ font-size: var(--text-sm);
2124
+ line-height: var(--tw-leading, var(--text-sm--line-height));
2125
+ color: var(--color-text-muted);
2126
+ --input-icon-inset: calc(var(--spacing) * 3);
2127
+ --input-icon-pad: calc(var(--spacing) * 9);
2128
+ }
2129
+ :scope._ao-input-icon:has(> ._ao-input-sm), :scope ._ao-input-icon:has(> ._ao-input-sm) {
2130
+ font-size: var(--text-xs);
2131
+ line-height: var(--tw-leading, var(--text-xs--line-height));
2132
+ --input-icon-inset: calc(var(--spacing) * 2.5);
2133
+ --input-icon-pad: calc(var(--spacing) * 8);
2134
+ }
2135
+ :scope._ao-input-icon:has(> ._ao-input-lg), :scope ._ao-input-icon:has(> ._ao-input-lg) {
2136
+ font-size: var(--text-base);
2137
+ line-height: var(--tw-leading, var(--text-base--line-height));
2138
+ --input-icon-inset: calc(var(--spacing) * 4);
2139
+ --input-icon-pad: calc(var(--spacing) * 10);
2140
+ }
2141
+ :scope._ao-input-icon > :where(i, svg), :scope ._ao-input-icon > :where(i, svg) {
2142
+ pointer-events: none;
2143
+ position: absolute;
2144
+ top: calc(1 / 2 * 100%);
2145
+ --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
2146
+ translate: var(--tw-translate-x) var(--tw-translate-y);
2147
+ }
2148
+ :scope._ao-input-icon > :where(i, svg):first-child, :scope ._ao-input-icon > :where(i, svg):first-child {
2149
+ left: var(--input-icon-inset);
2150
+ }
2151
+ :scope._ao-input-icon > ._ao-input ~ :where(i, svg), :scope ._ao-input-icon > ._ao-input ~ :where(i, svg) {
2152
+ right: var(--input-icon-inset);
2153
+ }
2154
+ :scope._ao-input-icon:has(> :where(i, svg):first-child) > ._ao-input, :scope ._ao-input-icon:has(> :where(i, svg):first-child) > ._ao-input {
2155
+ padding-left: var(--input-icon-pad);
2156
+ }
2157
+ :scope._ao-input-icon:has(> ._ao-input ~ :where(i, svg)) > ._ao-input, :scope ._ao-input-icon:has(> ._ao-input ~ :where(i, svg)) > ._ao-input {
2158
+ padding-right: var(--input-icon-pad);
2159
+ }
2160
+ :scope._ao-input-icon:has(> ._ao-input:disabled) > :where(i, svg), :scope ._ao-input-icon:has(> ._ao-input:disabled) > :where(i, svg) {
2161
+ opacity: 50%;
2162
+ }
1886
2163
  :scope._ao-textarea, :scope ._ao-textarea {
1887
2164
  display: block;
1888
2165
  min-height: calc(var(--spacing) * 20);
@@ -2621,6 +2898,55 @@
2621
2898
  :scope._ao-card-danger ._ao-card-title, :scope ._ao-card-danger ._ao-card-title {
2622
2899
  color: var(--color-danger);
2623
2900
  }
2901
+ :scope._ao-card-media, :scope ._ao-card-media {
2902
+ display: block;
2903
+ width: 100%;
2904
+ flex-shrink: 0;
2905
+ overflow: hidden;
2906
+ }
2907
+ :scope._ao-card-media:first-child, :scope ._ao-card-media:first-child {
2908
+ border-top-left-radius: inherit;
2909
+ border-top-right-radius: inherit;
2910
+ }
2911
+ :scope._ao-card-media:last-child, :scope ._ao-card-media:last-child {
2912
+ border-bottom-left-radius: inherit;
2913
+ border-bottom-right-radius: inherit;
2914
+ }
2915
+ :scope._ao-card-media > :is(img, video), :scope ._ao-card-media > :is(img, video) {
2916
+ display: block;
2917
+ height: 100%;
2918
+ width: 100%;
2919
+ object-fit: cover;
2920
+ }
2921
+ :scope._ao-card-scroll > ._ao-card-header, :scope ._ao-card-scroll > ._ao-card-header {
2922
+ flex-shrink: 0;
2923
+ border-bottom-style: var(--tw-border-style);
2924
+ border-bottom-width: 1px;
2925
+ border-color: var(--color-border);
2926
+ padding-inline: calc(var(--spacing) * 5);
2927
+ padding-block: calc(var(--spacing) * 3);
2928
+ }
2929
+ :scope._ao-card-scroll > ._ao-card-body, :scope ._ao-card-scroll > ._ao-card-body {
2930
+ min-height: calc(var(--spacing) * 0);
2931
+ flex: 1;
2932
+ overflow-y: auto;
2933
+ }
2934
+ :scope._ao-card-scroll > ._ao-card-body:last-child, :scope ._ao-card-scroll > ._ao-card-body:last-child {
2935
+ border-bottom-left-radius: inherit;
2936
+ border-bottom-right-radius: inherit;
2937
+ }
2938
+ :scope._ao-card-scroll > ._ao-card-actions, :scope ._ao-card-scroll > ._ao-card-actions {
2939
+ flex-shrink: 0;
2940
+ border-top-style: var(--tw-border-style);
2941
+ border-top-width: 1px;
2942
+ border-color: var(--color-border);
2943
+ padding-inline: calc(var(--spacing) * 5);
2944
+ padding-block: calc(var(--spacing) * 3);
2945
+ }
2946
+ :scope._ao-card-compact._ao-card-scroll > :is(._ao-card-header, ._ao-card-actions), :scope ._ao-card-compact._ao-card-scroll > :is(._ao-card-header, ._ao-card-actions) {
2947
+ padding-inline: calc(var(--spacing) * 3);
2948
+ padding-block: calc(var(--spacing) * 2);
2949
+ }
2624
2950
  :scope._ao-stat-card, :scope ._ao-stat-card {
2625
2951
  gap: calc(var(--spacing) * 1);
2626
2952
  padding: calc(var(--spacing) * 4);
@@ -3984,6 +4310,15 @@
3984
4310
  white-space: nowrap;
3985
4311
  color: var(--color-text-muted);
3986
4312
  }
4313
+ :scope._ao-table :where(tfoot :is(td, th)), :scope ._ao-table :where(tfoot :is(td, th)) {
4314
+ --tw-font-weight: var(--font-weight-semibold);
4315
+ font-weight: var(--font-weight-semibold);
4316
+ }
4317
+ :scope._ao-table :where(tfoot tr:first-child :is(td, th)), :scope ._ao-table :where(tfoot tr:first-child :is(td, th)) {
4318
+ border-top-style: var(--tw-border-style);
4319
+ border-top-width: 2px;
4320
+ border-top-color: var(--color-border-strong);
4321
+ }
3987
4322
  :scope._ao-table :where(td), :scope ._ao-table :where(td), :scope._ao-table-cell, :scope ._ao-table-cell {
3988
4323
  overflow-wrap: break-word;
3989
4324
  }
@@ -4592,6 +4927,9 @@
4592
4927
  max-width: 96rem;
4593
4928
  }
4594
4929
  }
4930
+ :scope._ao-my-4, :scope ._ao-my-4 {
4931
+ margin-block: calc(var(--spacing) * 4);
4932
+ }
4595
4933
  :scope._ao-block, :scope ._ao-block {
4596
4934
  display: block;
4597
4935
  }