@inf-monkeys-tech/monkeys-design 2.0.249 → 2.0.250

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.
@@ -0,0 +1,26 @@
1
+ /* Progress remains observable when ambient motion is reduced. */
2
+ :is(
3
+ [data-monkeys-component="button"][data-loading="true"],
4
+ [data-monkeys-component="loading-state"],
5
+ [data-monkeys-component="spinner"],
6
+ [data-monkeys-component="workbench-task-outputs"],
7
+ [data-monkeys-component="workbench-task-spreadsheet"]
8
+ ) :is(.animate-spin, .motion-safe\:animate-spin) {
9
+ animation: monkeys-loading-spin 1s linear infinite;
10
+ }
11
+ @keyframes monkeys-loading-spin {
12
+ to {
13
+ transform: rotate(360deg);
14
+ }
15
+ }
16
+ @media (prefers-reduced-motion: reduce) {
17
+ :is(
18
+ [data-monkeys-component="button"][data-loading="true"],
19
+ [data-monkeys-component="loading-state"],
20
+ [data-monkeys-component="spinner"],
21
+ [data-monkeys-component="workbench-task-outputs"],
22
+ [data-monkeys-component="workbench-task-spreadsheet"]
23
+ ) :is(.animate-spin, .motion-safe\:animate-spin) {
24
+ animation-duration: 3s;
25
+ }
26
+ }
@@ -24,12 +24,12 @@
24
24
  overflow: hidden;
25
25
  }
26
26
 
27
- /* In List View, prompt text fills the space reserved before record actions. */
27
+ /* List prompts reserve three lines independently of the space between rows. */
28
28
  .monkeys-task-record[data-record-layout="horizontal"]
29
29
  .monkeys-task-record-prompt:not([data-expanded="true"]) {
30
- flex: 1 1 0%;
31
- min-block-size: 0;
32
- block-size: 0;
30
+ flex: 0 0 auto;
31
+ min-block-size: 3lh;
32
+ block-size: auto;
33
33
  }
34
34
 
35
35
  /* Reserve scrollbar space below fixed squares rather than shrinking their height. */
@@ -47,6 +47,9 @@
47
47
  margin-inline-end: auto;
48
48
  }
49
49
  .monkeys-task-output-frame > *,
50
+ .monkeys-task-measurements,
51
+ .monkeys-task-record[data-record-layout="horizontal"]
52
+ .monkeys-task-measurements,
50
53
  .monkeys-task-record[data-record-layout="horizontal"]
51
54
  .monkeys-task-output-frame
52
55
  > * {
@@ -80,13 +83,6 @@
80
83
  min-width: 0;
81
84
  min-height: calc(var(--monkeys-task-preview-size, 15rem) + 1.5rem);
82
85
  }
83
- .monkeys-task-measurements {
84
- min-width: 0;
85
- width: 100%;
86
- }
87
- .monkeys-task-measurements {
88
- height: var(--monkeys-task-preview-size, 15rem);
89
- }
90
86
  .monkeys-task-record[data-record-layout="vertical"] [data-record-part="media"] {
91
87
  container-type: inline-size;
92
88
  }
@@ -212,8 +208,9 @@
212
208
  /* Bound collapsed details independently of prompt content and output type. */
213
209
  .monkeys-task-record[data-record-layout="horizontal"]
214
210
  [data-record-part="details"] {
215
- min-block-size: 21rem;
216
- block-size: 21rem;
211
+ min-block-size: 17rem;
212
+ block-size: 17rem;
213
+ justify-content: space-between;
217
214
  }
218
215
  .monkeys-task-record[data-record-layout="horizontal"]
219
216
  [data-record-part="details"]:has(> .monkeys-task-record-prompt[data-expanded="true"]) {
@@ -235,10 +232,29 @@
235
232
  margin-block-end: 0;
236
233
  align-content: start;
237
234
  }
235
+ .monkeys-task-record[data-record-layout="horizontal"]
236
+ .monkeys-task-record-metadata {
237
+ display: flex;
238
+ flex-direction: column;
239
+ flex-wrap: nowrap;
240
+ align-items: flex-start;
241
+ gap: calc(var(--global-spacing) / 2);
242
+ }
238
243
  .monkeys-task-record[data-record-layout="horizontal"]
239
244
  [data-record-part="details"]
240
245
  > :last-child {
241
- align-content: end;
246
+ align-content: normal;
247
+ margin-block-start: 0;
248
+ }
249
+ .monkeys-task-record[data-record-layout="horizontal"]
250
+ .monkeys-task-record-heading
251
+ h2 {
252
+ font-weight: 600;
253
+ }
254
+ .monkeys-task-record[data-record-layout="horizontal"]
255
+ .monkeys-task-record-heading
256
+ time {
257
+ font-weight: 600;
242
258
  }
243
259
  .monkeys-task-record[data-record-layout="horizontal"]
244
260
  .monkeys-task-output-frame
@@ -275,12 +291,6 @@
275
291
  overflow: auto;
276
292
  }
277
293
 
278
- .monkeys-task-record[data-record-layout="horizontal"]
279
- .monkeys-task-measurements {
280
- width: min(100%, 20rem);
281
- margin-inline: auto;
282
- }
283
-
284
294
  .monkeys-task-record[data-record-layout="horizontal"]
285
295
  [data-record-part="media"] {
286
296
  container-type: inline-size;
@@ -288,8 +298,8 @@
288
298
 
289
299
  .monkeys-task-record[data-record-layout="horizontal"]
290
300
  .monkeys-task-media-panel {
291
- --monkeys-task-preview-size: min(21rem, 100cqw);
292
- min-height: 21rem;
301
+ --monkeys-task-preview-size: min(17rem, 100cqw);
302
+ min-height: 17rem;
293
303
  }
294
304
 
295
305
  .monkeys-task-record[data-record-layout="horizontal"]
@@ -302,7 +312,9 @@
302
312
  /* A lone result should use the available square instead of the multi-result column width. */
303
313
  .monkeys-task-record[data-record-layout="horizontal"]
304
314
  .monkeys-task-output-frame
305
- > :only-child {
315
+ > :only-child,
316
+ .monkeys-task-record[data-record-layout="horizontal"]
317
+ .monkeys-task-measurements {
306
318
  width: min(var(--monkeys-task-preview-size), 100%);
307
319
  min-width: min(var(--monkeys-task-preview-size), 100%);
308
320
  max-width: min(var(--monkeys-task-preview-size), 100%);
@@ -313,6 +325,18 @@
313
325
  /* Multiple squares share the same media height, with a separate scrollbar row. */
314
326
  .monkeys-task-record[data-record-layout="horizontal"]
315
327
  .monkeys-task-output-frame:has(> :nth-child(2)) {
316
- --monkeys-task-preview-size: min(19.5rem, calc(100cqw - 1.5rem));
328
+ --monkeys-task-preview-size: min(17rem, calc(100cqw - 1.5rem));
317
329
  block-size: calc(var(--monkeys-task-preview-size) + 1.5rem);
318
330
  }
331
+
332
+ /* List resources start at the media column edge; Grid keeps its existing alignment. */
333
+ .monkeys-task-record[data-record-layout="horizontal"]
334
+ .monkeys-task-output-frame
335
+ > :first-child,
336
+ .monkeys-task-record[data-record-layout="horizontal"]
337
+ .monkeys-task-output-frame
338
+ > :last-child,
339
+ .monkeys-task-record[data-record-layout="horizontal"]
340
+ .monkeys-task-measurements {
341
+ margin-inline: 0;
342
+ }