@aortl/admin-css 0.16.1 → 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.
Files changed (50) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/dist/admin.css +351 -11
  3. package/dist/admin.min.css +1 -1
  4. package/dist/admin.scoped.css +345 -11
  5. package/dist/admin.scoped.min.css +67 -6
  6. package/package.json +3 -2
  7. package/src/components/accordion.css +4 -13
  8. package/src/components/alert.css +38 -23
  9. package/src/components/app-shell.css +2 -4
  10. package/src/components/avatar.css +36 -0
  11. package/src/components/badge.css +37 -5
  12. package/src/components/brand-tile.css +36 -0
  13. package/src/components/breadcrumbs.css +2 -11
  14. package/src/components/button-group.css +7 -19
  15. package/src/components/button.css +7 -23
  16. package/src/components/card.css +48 -26
  17. package/src/components/chart.css +26 -83
  18. package/src/components/checkbox.css +3 -9
  19. package/src/components/code-block.css +2 -4
  20. package/src/components/container.css +3 -7
  21. package/src/components/dialog.css +11 -18
  22. package/src/components/field.css +3 -7
  23. package/src/components/footer.css +2 -3
  24. package/src/components/index.css +3 -0
  25. package/src/components/indicator.css +21 -28
  26. package/src/components/input-group.css +3 -6
  27. package/src/components/input-icon.css +46 -0
  28. package/src/components/input.css +2 -5
  29. package/src/components/kbd.css +7 -13
  30. package/src/components/link.css +2 -8
  31. package/src/components/menu.css +9 -24
  32. package/src/components/navbar.css +3 -7
  33. package/src/components/pagination.css +1 -4
  34. package/src/components/progress.css +3 -7
  35. package/src/components/property-list.css +5 -14
  36. package/src/components/prose.css +6 -24
  37. package/src/components/radio.css +3 -7
  38. package/src/components/select.css +4 -11
  39. package/src/components/separator.css +13 -0
  40. package/src/components/sidebar.css +2 -7
  41. package/src/components/spinner.css +1 -4
  42. package/src/components/stat-card.css +5 -16
  43. package/src/components/switch.css +3 -5
  44. package/src/components/table.css +25 -34
  45. package/src/components/tabs.css +14 -32
  46. package/src/components/textarea.css +3 -7
  47. package/src/components/tooltip.css +6 -16
  48. package/src/fonts.css +8 -28
  49. package/src/theme.css +32 -100
  50. package/src/utilities.css +11 -37
@@ -10,16 +10,12 @@
10
10
  disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none;
11
11
  }
12
12
 
13
- /* Keep leading/trailing icons at their intrinsic size a flex item defaults
14
- to `flex-shrink: 1`, so a narrow flex container would otherwise squish the
15
- glyph horizontally before wrapping or truncating the label. */
13
+ /* Don't let a narrow container squish the glyph before the label wraps. */
16
14
  .btn > :is(i, svg) {
17
15
  flex-shrink: 0;
18
16
  }
19
17
 
20
- /* Variants — the bare `.btn` (no modifier) is the low-emphasis default, so
21
- most admin buttons need no variant class. The colored variants reset the
22
- border to transparent since the base now carries a visible one. */
18
+ /* Variants — bare `.btn` is the low-emphasis default; most buttons need no variant class. */
23
19
  .btn-primary {
24
20
  @apply bg-primary text-primary-content border-transparent hover:bg-primary-hover;
25
21
  }
@@ -28,11 +24,7 @@
28
24
  @apply bg-transparent text-text border-transparent hover:bg-surface-muted;
29
25
  }
30
26
 
31
- /* Muted — fills with the page background (`surface`) so it sits flush
32
- instead of reading as a raised control, mirroring `card-muted`. The
33
- default `.btn` is one step up (`surface-muted`); hover lifts the muted
34
- button to that resting fill. For de-emphasised actions that should
35
- recede into the page. */
27
+ /* Fills with the page background so it sits flush instead of raised — mirrors `card-muted`. */
36
28
  .btn-muted {
37
29
  @apply bg-surface hover:bg-surface-muted;
38
30
  }
@@ -50,14 +42,11 @@
50
42
  @apply text-base px-5 py-2.5 gap-2.5;
51
43
  }
52
44
 
53
- /* Modifiers */
54
45
  .btn-full-width {
55
46
  @apply w-full;
56
47
  }
57
48
 
58
- /* Icon-only — equalises padding so the button reads as a square. The React
59
- wrapper adds this automatically when `.btn` has an icon but no text
60
- children; vanilla callers add it themselves. Pair with `aria-label`. */
49
+ /* Icon-only — equalises padding so the button reads as a square. Pair with `aria-label`. */
61
50
  .btn-square {
62
51
  @apply px-2;
63
52
  }
@@ -70,11 +59,8 @@
70
59
  @apply px-2.5;
71
60
  }
72
61
 
73
- /* Loading state — paints a spinner via ::before, so no extra markup is
74
- required. Sized in `em` so it tracks btn-sm / btn-lg. Pair with the
75
- `disabled` attribute (or the React wrapper, which sets it for you) for
76
- keyboard a11y; the visual disable lives here so vanilla still feels right
77
- without it. */
62
+ /* Spinner via ::before, `em`-sized so it tracks btn-sm / btn-lg. Pair with
63
+ the `disabled` attribute for keyboard a11y. */
78
64
  .btn-loading {
79
65
  @apply opacity-50 cursor-not-allowed pointer-events-none;
80
66
  }
@@ -91,9 +77,7 @@
91
77
  animation: spinner-spin 0.6s linear infinite;
92
78
  }
93
79
 
94
- /* Suppress a leading icon while loading so we don't show two glyphs.
95
- Trailing icons stay visible — they may convey structural meaning
96
- (e.g. a dropdown chevron on a split-button trigger). */
80
+ /* Hide the leading icon while loading; trailing icons (e.g. a dropdown chevron) stay. */
97
81
  .btn-loading > :is(i, svg):first-child {
98
82
  display: none;
99
83
  }
@@ -5,10 +5,7 @@
5
5
  border border-border
6
6
  rounded-xl
7
7
  shadow-xs;
8
- /* Let long unbreakable tokens (IDs, URLs, file paths) break instead of
9
- overflowing the body, and let the card shrink inside a flex/grid track
10
- rather than forcing it wide. Inherited by title/description/body.
11
- Mirrors `.alert`. */
8
+ /* min-width: 0 lets the card shrink inside a flex/grid track instead of forcing it wide. */
12
9
  overflow-wrap: break-word;
13
10
  min-width: 0;
14
11
  }
@@ -19,28 +16,22 @@
19
16
 
20
17
  .card-title {
21
18
  @apply flex items-center gap-2 text-lg font-semibold leading-tight;
22
- /* Flex item — let it shrink so a long title wraps rather than widening the
23
- card. `overflow-wrap` is inherited from `.card`. */
19
+ /* Let a long title wrap instead of widening the card. */
24
20
  min-width: 0;
25
21
  }
26
22
 
27
- /* Header row: title on the left, toolbar pushed to the trailing edge. */
28
23
  .card-header {
29
24
  @apply flex items-center gap-2;
30
25
  }
31
26
 
32
- /* Trailing cluster of header controls (close, edit, …). The title's bold,
33
- descender-less type sits visually high in its line box, so geometric
34
- centering reads slightly low — nudge the controls up to the optical centre.
35
- `card-title` is always `text-lg`, so this offset is constant. */
27
+ /* -mt-0.5 nudges the controls up to the optical centre — the bold title type
28
+ sits high in its line box. */
36
29
  .card-toolbar {
37
30
  @apply flex items-center gap-1 ml-auto -mt-0.5;
38
31
  }
39
32
 
40
- /* Toolbar buttons run small (usually `btn-sm`, whose icons inherit `text-xs`);
41
- bump the glyph to 1rem so the controls stay easy to scan and hit. Both
42
- bundles size icons off `font-size` — the Tabler webfont (`<i>`) and React's
43
- `size="1em"` SVG — so this single rule enlarges both identically. */
33
+ /* font-size enlarges both icon flavours identically the Tabler webfont and
34
+ React's `size="1em"` SVG. */
44
35
  .card-toolbar :is(i, svg) {
45
36
  font-size: 1.25rem;
46
37
  }
@@ -53,7 +44,6 @@
53
44
  @apply flex flex-wrap items-center gap-2 mt-auto pt-2;
54
45
  }
55
46
 
56
- /* Modifiers */
57
47
  .card-compact .card-body {
58
48
  @apply p-3 gap-2;
59
49
  }
@@ -62,17 +52,12 @@
62
52
  @apply shadow-none border-border-strong;
63
53
  }
64
54
 
65
- /* Neutral variant sits flush with the page (`--color-surface`, the same
66
- fill as `html`/`.app-shell`) instead of the raised `surface-muted` of a
67
- default card. For de-emphasised or grouped panels that shouldn't pop off
68
- the background. No accent, no status meaning. */
55
+ /* Fills with the page background so the panel sits flush instead of raised. */
69
56
  .card-muted {
70
57
  @apply bg-surface;
71
58
  }
72
59
 
73
- /* Color variants — tinted surface + matching border, mirroring Alert. The
74
- title (and any leading icon, via `currentColor`) picks up the accent for
75
- fast scanning. */
60
+ /* Color variants — tinted surface + accent title, mirroring Alert. */
76
61
  .card-primary {
77
62
  @apply bg-primary-muted border-primary-muted;
78
63
  }
@@ -109,7 +94,44 @@
109
94
  @apply text-danger;
110
95
  }
111
96
 
112
- /* `card-warning` keeps its title at `text-text`: the warning accent is
113
- yellow-400 in both modes and fails AA contrast on the muted yellow
114
- surface. The tinted bg still carries the warning signal. */
97
+ /* No `.card-warning .card-title` rule the yellow-400 accent fails AA on
98
+ the muted yellow surface. */
99
+
100
+ /* Full-bleed media. Sibling of .card-body; first/last placement picks up the
101
+ card's corner rounding without overflow on the root. */
102
+ .card-media {
103
+ @apply block w-full shrink-0 overflow-hidden;
104
+ }
105
+ .card-media:first-child {
106
+ border-top-left-radius: inherit;
107
+ border-top-right-radius: inherit;
108
+ }
109
+ .card-media:last-child {
110
+ border-bottom-left-radius: inherit;
111
+ border-bottom-right-radius: inherit;
112
+ }
113
+ .card-media > :is(img, video) {
114
+ @apply block w-full h-full object-cover;
115
+ }
116
+
117
+ /* Scroll region — header/actions pin, body scrolls; consumer sets the height.
118
+ Direct-child header/actions gain padding + a divider since inside
119
+ .card-body they carry none. */
120
+ .card-scroll > .card-header {
121
+ @apply shrink-0 px-5 py-3 border-b border-border;
122
+ }
123
+ .card-scroll > .card-body {
124
+ @apply flex-1 min-h-0 overflow-y-auto;
125
+ }
126
+ .card-scroll > .card-body:last-child {
127
+ /* Keep the scrollbar inside the rounded corners when there's no footer. */
128
+ border-bottom-left-radius: inherit;
129
+ border-bottom-right-radius: inherit;
130
+ }
131
+ .card-scroll > .card-actions {
132
+ @apply shrink-0 px-5 py-3 border-t border-border;
133
+ }
134
+ .card-compact.card-scroll > :is(.card-header, .card-actions) {
135
+ @apply px-3 py-2;
136
+ }
115
137
  }
@@ -1,30 +1,14 @@
1
1
  @layer components {
2
2
  /*
3
- * Charts — three pure-CSS primitives driven entirely by inline custom
4
- * properties (never data-* attributes: CSS can't read an attribute as a
5
- * number for calc() cross-browser yet). No JS, no axes/ticks/gridlines.
6
- * They serve two altitudes: dense inline micro-viz (a swatch in a table
7
- * cell) and compact dashboard cards.
8
- *
9
- * Data contract:
10
- * - bars: container `--chart-max` (default 100), each bar `--value`;
11
- * the fill sizes to `var(--value) / var(--chart-max) * 100%`.
12
- * - stack: each segment `--value`, sized by `flex` (no max — the ratios
13
- * are intrinsic to the flex grow factors).
14
- * - donut: one pre-built cumulative conic-gradient stop string in
15
- * `--donut-segments` (CSS can't sum a variable-length sibling
16
- * list, so the string arrives whole).
17
- *
18
- * Colour: single-series follows `currentColor` (default `--color-info`,
19
- * recoloured by the `.chart-success`/etc. variants like `.progress`).
20
- * Multi-series colours are set inline per bar/segment (`--bar-color` /
21
- * `--segment-color` / legend `--legend-color`); there is no chart token
22
- * layer. role="img" + aria-label carries the semantics; a native `title`
23
- * on each bar/segment gives a hover read-out.
3
+ * Pure-CSS charts driven by inline custom properties — not data-*
4
+ * attributes (CSS can't read an attribute as a number for calc()).
5
+ * Contract: bars container `--chart-max` (default 100), each bar
6
+ * `--value`; stack each segment `--value` (flex-grow ratios, no max);
7
+ * donut `--donut-segments` holds a pre-built cumulative conic-gradient
8
+ * stop string (CSS can't sum a variable-length sibling list).
9
+ * Single-series colour rides currentColor; multi-series is set inline via
10
+ * `--bar-color` / `--segment-color` / `--legend-color`.
24
11
  */
25
-
26
- /* Shared base — sizing knobs + the single-series fill colour. Any chart
27
- type reads these; size modifiers below just remap them. */
28
12
  .chart {
29
13
  --chart-max: 100;
30
14
  --chart-height: 8rem; /* bar track cross-axis size (md) */
@@ -33,9 +17,7 @@
33
17
  color: var(--color-info);
34
18
  }
35
19
 
36
- /* Single-series semantic variants recolour currentColor, like progress.
37
- `info` is the base colour (`.chart` above), so it needs no class — the
38
- default `variant="info"` simply emits no modifier. */
20
+ /* `info` is the base colour (`.chart`), so the default variant emits no class. */
39
21
  .chart-success {
40
22
  color: var(--color-success);
41
23
  }
@@ -46,16 +28,9 @@
46
28
  color: var(--color-danger);
47
29
  }
48
30
 
49
- /* --------------------------------------------------------------------- *
50
- * BAR CHART horizontal (default) *
51
- * --------------------------------------------------------------------- *
52
- * Three-column grid: [label | track (1fr) | value]. Each `.chart-bar` is
53
- * a `subgrid` spanning all three, so the label gutter and the value column
54
- * stay aligned across every row. The fill lives in the `1fr` track — a
55
- * definite width once the grid resolves, which is exactly what lets its
56
- * `inline-size: %` transition (see the transition note). Values sit in the
57
- * trailing column, so a short bar never clips its number and a full bar
58
- * never overflows. */
31
+ /* Bar chart (horizontal) — grid [label | track (1fr) | value]; each bar is
32
+ a subgrid row so columns align across rows. The 1fr track gives the fill
33
+ a definite width, which is what lets its % inline-size transition. */
59
34
  .chart-bars {
60
35
  display: grid;
61
36
  grid-template-columns: auto 1fr auto;
@@ -71,8 +46,7 @@
71
46
  align-items: center;
72
47
  }
73
48
 
74
- /* Category label only emitted when the datum carries one. The empty
75
- `auto` column collapses to 0 when no bar has a label. */
49
+ /* The auto column collapses to 0 when no bar has a label. */
76
50
  .chart-bar-label {
77
51
  @apply text-xs text-text-muted;
78
52
  grid-column: 1;
@@ -91,15 +65,13 @@
91
65
  inline-size: calc(var(--value) / var(--chart-max) * 100%);
92
66
  background: var(--bar-color, currentColor);
93
67
  border-radius: 2px;
94
- /* Transition the resolved length (NOT --value, which isn't registered):
95
- a percentage length transitions because the track has a definite size.
96
- Both axes are listed so the vertical fill animates too. */
68
+ /* Transition the resolved length, not --value (unregistered — won't
69
+ animate); both axes so the vertical fill animates too. */
97
70
  transition:
98
71
  inline-size 200ms ease,
99
72
  block-size 200ms ease;
100
73
  }
101
74
 
102
- /* Value label — trailing aligned column. Opt-in via `.chart-values`. */
103
75
  .chart-bar-value {
104
76
  @apply text-xs text-text-muted tabular-nums;
105
77
  grid-column: 3;
@@ -111,13 +83,9 @@
111
83
  display: none;
112
84
  }
113
85
 
114
- /* --------------------------------------------------------------------- *
115
- * BAR CHART vertical modifier *
116
- * --------------------------------------------------------------------- *
117
- * Flex row of equal columns inside a fixed-height box. Each column is a
118
- * flex column [value | track | label]; the track (`flex: 1`) gets a
119
- * definite block-size so the fill's `block-size: %` resolves and animates.
120
- * Bars grow up from the floor (`justify-content: end`). */
86
+ /* Bar chart (vertical) — flex row of columns in a fixed-height box; the
87
+ flex:1 track gets a definite block-size so the fill's % block-size
88
+ resolves and animates. */
121
89
  .chart-bars-vertical {
122
90
  display: flex;
123
91
  flex-direction: row;
@@ -163,12 +131,7 @@
163
131
  padding: 0;
164
132
  }
165
133
 
166
- /* --------------------------------------------------------------------- *
167
- * STACKED / PROPORTION BAR *
168
- * --------------------------------------------------------------------- *
169
- * A single rounded track partitioned by `flex: var(--value)`. No max
170
- * needed — proportions are the flex-grow ratios. A hairline in the
171
- * surface colour separates adjacent segments. */
134
+ /* Stacked / proportion bar */
172
135
  .chart-stack {
173
136
  display: flex;
174
137
  flex-direction: row;
@@ -189,18 +152,10 @@
189
152
  box-shadow: -1px 0 0 0 var(--color-surface);
190
153
  }
191
154
 
192
- /* --------------------------------------------------------------------- *
193
- * DONUT / PIE *
194
- * --------------------------------------------------------------------- *
195
- * A conic-gradient circle with the centre punched out by a radial-gradient
196
- * mask. `--donut-thickness` is the ring width as a % of the diameter; the
197
- * hole's inner radius is `50% - thickness`, so thickness=50% leaves no hole
198
- * (a solid pie). The same stop position twice gives a crisp ring edge.
199
- *
200
- * The centre label must NOT be a child of the ring — `mask` clips the whole
201
- * subtree, so a child sitting in the hole would be invisible. It's a sibling
202
- * overlay: the figure is an inline-grid and both the ring and the label
203
- * occupy the same cell. */
155
+ /* Donut / pie — conic-gradient ring, centre punched out by a radial-gradient
156
+ mask. `--donut-thickness` is the ring width as a % of the diameter (50% =
157
+ solid pie). The centre label must be a sibling overlay, never a child —
158
+ `mask` clips the whole subtree. */
204
159
  .chart-donut-figure {
205
160
  position: relative;
206
161
  inline-size: var(--chart-size);
@@ -232,7 +187,6 @@
232
187
  inline-size: 100%;
233
188
  }
234
189
 
235
- /* Solid pie — no hole. */
236
190
  .chart-donut-pie {
237
191
  --donut-thickness: 50%;
238
192
  }
@@ -244,9 +198,7 @@
244
198
  pointer-events: none;
245
199
  }
246
200
 
247
- /* --------------------------------------------------------------------- *
248
- * LEGEND (donut + stack) *
249
- * --------------------------------------------------------------------- */
201
+ /* Legend (donut + stack) */
250
202
  .chart-legend {
251
203
  @apply flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-text-muted;
252
204
  list-style: none;
@@ -266,9 +218,7 @@
266
218
  flex-shrink: 0;
267
219
  }
268
220
 
269
- /* --------------------------------------------------------------------- *
270
- * SIZES — remap the cross-axis / diameter knobs *
271
- * --------------------------------------------------------------------- */
221
+ /* Sizes */
272
222
  .chart-sm {
273
223
  --chart-height: 4rem;
274
224
  --chart-size: 4rem;
@@ -278,11 +228,7 @@
278
228
  --chart-size: 12rem;
279
229
  }
280
230
 
281
- /* --------------------------------------------------------------------- *
282
- * INLINE — micro-viz that sits in running text / a table cell *
283
- * --------------------------------------------------------------------- *
284
- * Inline-flex, baseline-nudged, and em-relative so the swatch tracks the
285
- * surrounding font size. */
231
+ /* Inline micro-viz — em-relative so it tracks the surrounding font size. */
286
232
  .chart-inline {
287
233
  display: inline-flex;
288
234
  vertical-align: middle;
@@ -298,9 +244,6 @@
298
244
  inline-size: 6em;
299
245
  }
300
246
 
301
- /* --------------------------------------------------------------------- *
302
- * REDUCED MOTION *
303
- * --------------------------------------------------------------------- */
304
247
  @media (prefers-reduced-motion: reduce) {
305
248
  .chart-bar-fill,
306
249
  .chart-segment {
@@ -25,11 +25,8 @@
25
25
  @apply inline-flex items-center justify-center size-3 text-primary-content;
26
26
  }
27
27
 
28
- /* Native input variant: state is driven by :checked / :indeterminate, the
29
- glyph is masked onto ::after. Mirrors the Base UI button variant above so a
30
- vanilla <input class="checkbox"> renders identically (indeterminate reads
31
- the same as checked, matching the data-* rule). The mask is the same
32
- checkmark polyline the React indicator draws. */
28
+ /* Native input variant must render identically to the Base UI button rules
29
+ above (same checkmark polyline; indeterminate reads as checked). */
33
30
  input.checkbox {
34
31
  @apply appearance-none border-border-strong hover:border-text-muted;
35
32
  --checkbox-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
@@ -49,12 +46,9 @@
49
46
  mask: var(--checkbox-check) center / contain no-repeat;
50
47
  }
51
48
 
52
- /* A <label> wrapping a checkbox + text lays out inline with a small gap.
53
- Covers both the vanilla input.checkbox and Base UI's button.checkbox. */
54
49
  label:has(> .checkbox) {
55
50
  @apply inline-flex items-center gap-2 cursor-pointer;
56
- /* Let a long label break and shrink beside the `shrink-0` box instead of
57
- overflowing a narrow form column. The box stays put; the text wraps. */
51
+ /* Long labels wrap beside the shrink-0 box instead of overflowing. */
58
52
  overflow-wrap: break-word;
59
53
  min-width: 0;
60
54
  }
@@ -9,10 +9,8 @@
9
9
  overflow: auto;
10
10
  }
11
11
 
12
- /* Opt out of wrapping for log-style content where long lines should
13
- scroll horizontally instead of breaking. Pair with an inline
14
- `max-height` to clamp vertical growth — `overflow: auto` above
15
- turns into a scrollbar automatically. */
12
+ /* Long lines scroll horizontally instead of breaking; pair with an inline
13
+ `max-height` to clamp vertical growth. */
16
14
  .code-block-nowrap {
17
15
  white-space: pre;
18
16
  word-wrap: normal;
@@ -1,8 +1,6 @@
1
1
  @layer components {
2
- /* Page content region a centered, max-width column that also owns the
3
- vertical rhythm between stacked page sections. Drop it inside the bare
4
- `.app-shell-main` (which has no padding of its own). Width presets just
5
- set `--container-max`; override the var per-instance to deviate. */
2
+ /* Goes inside the bare `.app-shell-main` (no padding of its own); override
3
+ `--container-max` per-instance to deviate from the presets. */
6
4
  .container {
7
5
  @apply flex flex-col gap-6 w-full mx-auto px-6 py-6;
8
6
  max-width: var(--container-max, 90rem);
@@ -16,17 +14,15 @@
16
14
  --container-max: 115rem;
17
15
  }
18
16
 
19
- /* Full-bleed: edge-to-edge within `main`, padding retained. */
20
17
  .container-fluid {
21
18
  --container-max: none;
22
19
  }
23
20
 
24
- /* Denser vertical rhythm + tighter block padding for packed screens. */
25
21
  .container-compact {
26
22
  @apply gap-4 py-4;
27
23
  }
28
24
 
29
- /* Less horizontal padding on small viewports — reuses the shell breakpoint. */
25
+ /* Reuses the shell breakpoint. */
30
26
  @media (max-width: 48rem) {
31
27
  .container {
32
28
  @apply px-4;
@@ -9,9 +9,8 @@
9
9
  width: calc(100% - 2rem);
10
10
  max-width: 32rem;
11
11
  max-height: calc(100dvh - 2rem);
12
- /* Long titles/descriptions (filenames, IDs) break instead of pushing past
13
- the fixed max-width. Inherited by title + description; `.dialog-title`
14
- additionally needs `min-width: 0` below since it's a flex item. */
12
+ /* Long tokens (filenames, IDs) break instead of pushing past max-width;
13
+ inherited by title + description. */
15
14
  overflow-wrap: break-word;
16
15
  opacity: 1;
17
16
  transform: translateY(0) scale(1);
@@ -22,9 +21,8 @@
22
21
  transform 150ms ease-out;
23
22
  }
24
23
 
25
- /* `display: flex` only when open — without this gate, our flex rule would
26
- override the UA `dialog:not([open]) { display: none }` and the dialog
27
- would render in-flow before showModal() was ever called. */
24
+ /* Gate on [open]an unconditional flex would override the UA's
25
+ `dialog:not([open]) { display: none }` and render the dialog in-flow. */
28
26
  .dialog[open] {
29
27
  display: flex;
30
28
  }
@@ -37,7 +35,6 @@
37
35
  background 150ms ease-out;
38
36
  }
39
37
 
40
- /* Entry — animate from these values up to the open state. */
41
38
  @starting-style {
42
39
  .dialog[open] {
43
40
  opacity: 0;
@@ -64,8 +61,7 @@
64
61
 
65
62
  .dialog-title {
66
63
  @apply flex-1 flex items-center gap-2 text-lg font-semibold leading-tight m-0;
67
- /* `flex-1` flex item let it shrink so a long title wraps rather than
68
- blowing the header past the dialog's max-width. */
64
+ /* Let a long title shrink and wrap rather than widen the header. */
69
65
  min-width: 0;
70
66
  }
71
67
 
@@ -73,16 +69,14 @@
73
69
  @apply px-5 -mt-2 mb-3 text-sm text-text-muted;
74
70
  }
75
71
 
76
- /* `flex-1 min-h-0` lets the body fill the remaining height and shrink below
77
- its content (a flex item's default `min-height: auto` would refuse to), so
78
- tall content scrolls here while the header/footer stay pinned. */
72
+ /* min-h-0 beats the flex default `min-height: auto` so tall content scrolls
73
+ here while the header/footer stay pinned. */
79
74
  .dialog-body {
80
75
  @apply flex-1 min-h-0 px-5 py-3 overflow-y-auto flex flex-col gap-3;
81
76
  }
82
77
 
83
- /* When the body is wrapped in a `<form>` (the form-dialog pattern), the form
84
- becomes the dialog's sole flex child make it the flex column so the body's
85
- `flex-1 min-h-0` still resolves and scrolls. */
78
+ /* In the form-dialog pattern the form is the sole flex child; it must carry
79
+ the flex column so the body's `flex-1 min-h-0` still scrolls. */
86
80
  .dialog > form {
87
81
  @apply flex flex-col min-h-0 flex-1;
88
82
  }
@@ -92,9 +86,8 @@
92
86
  px-5 py-3
93
87
  border-t border-border
94
88
  bg-surface-muted;
95
- /* Inherits the dialog's bottom-corner radius so the muted background
96
- doesn't square off past the parent's rounded corners previously
97
- handled by `overflow: hidden` on `.dialog`, which clipped popups. */
89
+ /* Keep the muted background inside the parent's rounded corners don't
90
+ use `overflow: hidden` on `.dialog` for this; it clips popups. */
98
91
  border-bottom-left-radius: inherit;
99
92
  border-bottom-right-radius: inherit;
100
93
  }
@@ -1,14 +1,11 @@
1
1
  @layer components {
2
2
  .field {
3
3
  @apply flex flex-col gap-1.5;
4
- /* Label/description/error are often operator- or validation-supplied let
5
- long tokens break instead of overflowing a narrow form column. Inherited
6
- by all three. Mirrors `.alert`. */
4
+ /* Long operator-/validation-supplied tokens break instead of overflowing;
5
+ inherited by label, description, and error. */
7
6
  overflow-wrap: break-word;
8
7
  }
9
8
 
10
- /* Horizontal layout — pairs a control (typically a switch) with its label
11
- on one row. Use when the label belongs beside the control, not above it. */
12
9
  .field-row {
13
10
  @apply flex-row items-center gap-3;
14
11
  }
@@ -34,8 +31,7 @@
34
31
  @apply text-xs text-danger leading-relaxed;
35
32
  }
36
33
 
37
- /* When the field is in an invalid state, tint the contained control.
38
- Base UI applies data-invalid on the Field root once validation fails. */
34
+ /* Base UI sets data-invalid on the Field root when validation fails. */
39
35
  .field[data-invalid] .input,
40
36
  .field[data-invalid] .textarea,
41
37
  .field[data-invalid] .select,
@@ -1,7 +1,6 @@
1
1
  @layer components {
2
- /* 2px top stripe mirrors the navbar's bottom stripe both default to
3
- a neutral gray via `--color-system-accent` and brand-shift together
4
- when the consuming app overrides that variable at :root. */
2
+ /* The top stripe mirrors the navbar's bottom stripe; both brand-shift
3
+ together when the app overrides `--color-system-accent` at :root. */
5
4
  .footer {
6
5
  @apply flex flex-wrap items-center justify-between gap-3 px-4 py-3
7
6
  bg-surface-muted text-text-muted
@@ -4,6 +4,7 @@
4
4
  @import "./container.css";
5
5
  @import "./badge.css";
6
6
  @import "./brand-tile.css";
7
+ @import "./avatar.css";
7
8
  @import "./kbd.css";
8
9
  @import "./indicator.css";
9
10
  @import "./spinner.css";
@@ -11,11 +12,13 @@
11
12
  @import "./breadcrumbs.css";
12
13
  @import "./pagination.css";
13
14
  @import "./property-list.css";
15
+ @import "./separator.css";
14
16
  @import "./button.css";
15
17
  @import "./button-group.css";
16
18
  @import "./link.css";
17
19
  @import "./input.css";
18
20
  @import "./input-group.css";
21
+ @import "./input-icon.css";
19
22
  @import "./textarea.css";
20
23
  @import "./checkbox.css";
21
24
  @import "./radio.css";