meowtail 0.2.0-alpha.1 → 0.2.0-alpha.2

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 (88) hide show
  1. package/README.md +24 -8
  2. package/dist/src/chat/assistant-composer.js +58 -98
  3. package/dist/src/chat/assistant-content.d.ts +1 -3
  4. package/dist/src/chat/assistant-content.js +36 -44
  5. package/dist/src/chat/assistant-markdown.js +4 -8
  6. package/dist/src/chat/assistant-question.js +13 -14
  7. package/dist/src/chat/assistant.js +27 -26
  8. package/dist/src/chat/attachments.d.ts +3 -2
  9. package/dist/src/chat/attachments.js +39 -34
  10. package/dist/src/chat/composer-panel.d.ts +2 -3
  11. package/dist/src/chat/composer-panel.js +3 -4
  12. package/dist/src/chat/composer.d.ts +5 -3
  13. package/dist/src/chat/composer.js +67 -21
  14. package/dist/src/chat/task.js +9 -15
  15. package/dist/src/chat/tool-call.js +1 -8
  16. package/dist/src/components/accordion.d.ts +24 -0
  17. package/dist/src/components/accordion.js +50 -0
  18. package/dist/src/components/avatar.d.ts +22 -0
  19. package/dist/src/components/avatar.js +44 -0
  20. package/dist/src/components/checkbox.d.ts +6 -2
  21. package/dist/src/components/checkbox.js +36 -8
  22. package/dist/src/components/choice-group.d.ts +1 -0
  23. package/dist/src/components/choice-group.js +12 -17
  24. package/dist/src/components/choice-select.d.ts +3 -1
  25. package/dist/src/components/choice-select.js +56 -54
  26. package/dist/src/components/code-block.d.ts +3 -3
  27. package/dist/src/components/code-block.js +27 -23
  28. package/dist/src/components/context-menu.d.ts +16 -0
  29. package/dist/src/components/context-menu.js +49 -0
  30. package/dist/src/components/disclosure.d.ts +2 -2
  31. package/dist/src/components/disclosure.js +1 -1
  32. package/dist/src/components/index.d.ts +9 -0
  33. package/dist/src/components/index.js +9 -0
  34. package/dist/src/components/link.d.ts +13 -0
  35. package/dist/src/components/link.js +9 -0
  36. package/dist/src/components/menu-button.d.ts +13 -0
  37. package/dist/src/components/menu-button.js +10 -0
  38. package/dist/src/components/menu.d.ts +4 -0
  39. package/dist/src/components/menu.js +3 -3
  40. package/dist/src/components/meta-row.d.ts +5 -4
  41. package/dist/src/components/meta-row.js +34 -18
  42. package/dist/src/components/nav-item.js +2 -5
  43. package/dist/src/components/number-input.d.ts +29 -0
  44. package/dist/src/components/number-input.js +137 -0
  45. package/dist/src/components/output-block.js +1 -8
  46. package/dist/src/components/path-picker.js +5 -10
  47. package/dist/src/components/pill.js +2 -5
  48. package/dist/src/components/popover.js +4 -4
  49. package/dist/src/components/progress.d.ts +15 -0
  50. package/dist/src/components/progress.js +12 -0
  51. package/dist/src/components/risk-confirmation.js +2 -5
  52. package/dist/src/components/segmented-control.js +3 -3
  53. package/dist/src/components/skeleton-boundary.js +4 -7
  54. package/dist/src/components/slider.d.ts +22 -0
  55. package/dist/src/components/slider.js +49 -0
  56. package/dist/src/components/table.d.ts +41 -0
  57. package/dist/src/components/table.js +146 -0
  58. package/dist/src/components/tabs.d.ts +1 -1
  59. package/dist/src/components/tabs.js +11 -20
  60. package/dist/src/components/text-shimmer.js +2 -5
  61. package/dist/src/registry/index.d.ts +62 -3
  62. package/dist/src/registry/index.js +18 -2
  63. package/dist/src/theme/chat/composer-panel.styles.js +4 -1
  64. package/dist/src/theme/chat/composer.styles.js +45 -67
  65. package/dist/src/theme/chat/task.styles.js +5 -6
  66. package/dist/src/theme/components/accordion.styles.d.ts +1 -0
  67. package/dist/src/theme/components/accordion.styles.js +63 -0
  68. package/dist/src/theme/components/avatar.styles.d.ts +1 -0
  69. package/dist/src/theme/components/avatar.styles.js +52 -0
  70. package/dist/src/theme/components/button.styles.js +9 -0
  71. package/dist/src/theme/components/card.styles.js +2 -0
  72. package/dist/src/theme/components/context-menu.styles.d.ts +1 -0
  73. package/dist/src/theme/components/context-menu.styles.js +14 -0
  74. package/dist/src/theme/components/link.styles.d.ts +1 -0
  75. package/dist/src/theme/components/link.styles.js +33 -0
  76. package/dist/src/theme/components/menu.styles.js +9 -3
  77. package/dist/src/theme/components/number-input.styles.d.ts +1 -0
  78. package/dist/src/theme/components/number-input.styles.js +106 -0
  79. package/dist/src/theme/components/progress.styles.d.ts +1 -0
  80. package/dist/src/theme/components/progress.styles.js +71 -0
  81. package/dist/src/theme/components/slider.styles.d.ts +1 -0
  82. package/dist/src/theme/components/slider.styles.js +129 -0
  83. package/dist/src/theme/components/table.styles.d.ts +1 -0
  84. package/dist/src/theme/components/table.styles.js +156 -0
  85. package/dist/src/theme/components/toggle.styles.js +10 -0
  86. package/dist/src/theme/index.d.ts +1 -1
  87. package/dist/src/theme/index.js +16 -0
  88. package/package.json +3 -3
@@ -82,7 +82,20 @@ export const chatComposerStyles = css `
82
82
  background-color: ${uiTokens.hover};
83
83
  }
84
84
 
85
+ /* The form groups the writing surface and its external supporting instructions. */
85
86
  ${partSelector(chatComposerContract, "root")} {
87
+ position: relative;
88
+ display: grid;
89
+ grid-template-columns: minmax(0, 1fr);
90
+ gap: 6px;
91
+ min-width: 0;
92
+ padding: 0;
93
+ border: 0;
94
+ background: transparent;
95
+ box-shadow: none;
96
+ }
97
+
98
+ ${partSelector(chatComposerContract, "surface")} {
86
99
  display: grid;
87
100
  grid-template-columns: minmax(0, 1fr);
88
101
  gap: 12px;
@@ -121,27 +134,20 @@ export const chatComposerStyles = css `
121
134
  display: none;
122
135
  }
123
136
 
124
- ${partSelector(chatComposerContract, "root")}:has(> ${partSelector(chatComposerContract, "attachments")}:not(:empty)):not(
137
+ ${partSelector(chatComposerContract, "surface")}:has(> ${partSelector(chatComposerContract, "attachments")}:not(:empty)):not(
125
138
  :has(> ${partSelector(chatComposerContract, "attachments")} > [hidden]:only-child)
126
139
  )
127
140
  ${partSelector(chatComposerContract, "input")} {
128
141
  grid-row: 2;
129
142
  }
130
143
 
131
- ${partSelector(chatComposerContract, "root")}:has(> ${partSelector(chatComposerContract, "attachments")}:not(:empty)):not(
144
+ ${partSelector(chatComposerContract, "surface")}:has(> ${partSelector(chatComposerContract, "attachments")}:not(:empty)):not(
132
145
  :has(> ${partSelector(chatComposerContract, "attachments")} > [hidden]:only-child)
133
146
  )
134
147
  ${partSelector(chatComposerContract, "actions")} {
135
148
  grid-row: 3;
136
149
  }
137
150
 
138
- ${partSelector(chatComposerContract, "root")}:has(> ${partSelector(chatComposerContract, "attachments")}:not(:empty)):not(
139
- :has(> ${partSelector(chatComposerContract, "attachments")} > [hidden]:only-child)
140
- )
141
- ${partSelector(chatComposerContract, "hint")} {
142
- grid-row: 4;
143
- }
144
-
145
151
  ${partSelector(chatComposerContract, "attachments")} ${partSelector(chatAttachmentsContract, "file")} {
146
152
  min-height: 64px;
147
153
  }
@@ -167,13 +173,14 @@ export const chatComposerStyles = css `
167
173
  caret-color: ${uiTokens.focus};
168
174
  }
169
175
 
170
- ${partSelector(chatComposerContract, "root")}:has(${partSelector(chatComposerContract, "input")}:focus:not(:disabled)) {
176
+ /* Focus paint stays inside the surface when an embedding form clips overflow. */
177
+ ${partSelector(chatComposerContract, "surface")}:has(${partSelector(chatComposerContract, "input")}:focus:not(:disabled)) {
171
178
  outline: 1px solid color-mix(in srgb, ${uiTokens.primary} 45%, transparent);
172
- outline-offset: 1px;
179
+ outline-offset: -1px;
173
180
  }
174
181
 
175
182
  @media (hover: hover) {
176
- ${partSelector(chatComposerContract, "root")}:has(${partSelector(chatComposerContract, "input")}:hover:not(:disabled):not(:focus)) {
183
+ ${partSelector(chatComposerContract, "surface")}:has(${partSelector(chatComposerContract, "input")}:hover:not(:disabled):not(:focus)) {
177
184
  border-color: transparent;
178
185
  }
179
186
  }
@@ -187,9 +194,9 @@ export const chatComposerStyles = css `
187
194
  outline: none;
188
195
  }
189
196
 
190
- ${partSelector(chatComposerContract, "root")}:has(${partSelector(chatComposerContract, "input")}:focus-visible) {
197
+ ${partSelector(chatComposerContract, "surface")}:has(${partSelector(chatComposerContract, "input")}:focus-visible) {
191
198
  outline: 2px solid ${uiTokens.focus};
192
- outline-offset: 2px;
199
+ outline-offset: -2px;
193
200
  }
194
201
 
195
202
  @supports (field-sizing: content) {
@@ -208,7 +215,7 @@ export const chatComposerStyles = css `
208
215
  color: ${uiTokens.subtleForeground};
209
216
  }
210
217
 
211
- ${partSelector(chatComposerContract, "root")}:has(${partSelector(chatComposerContract, "input")}:disabled) {
218
+ ${partSelector(chatComposerContract, "surface")}:has(${partSelector(chatComposerContract, "input")}:disabled) {
212
219
  background: ${uiTokens.surfaceMuted};
213
220
  box-shadow: none;
214
221
  }
@@ -292,7 +299,7 @@ export const chatComposerStyles = css `
292
299
  }
293
300
 
294
301
  @media (max-width: 680px) {
295
- ${partSelector(chatComposerContract, "root")} {
302
+ ${partSelector(chatComposerContract, "surface")} {
296
303
  grid-template-columns: minmax(0, 1fr);
297
304
  padding: 8px 0 0;
298
305
  }
@@ -302,12 +309,6 @@ export const chatComposerStyles = css `
302
309
  }
303
310
  }
304
311
 
305
- @media (max-width: 760px) {
306
- ${partSelector(chatComposerContract, "hint")} {
307
- position: absolute;
308
- }
309
- }
310
-
311
312
  ${partSelector(chatComposerContract, "submit")}:active:not(:disabled) {
312
313
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 20%);
313
314
  transition-duration: 40ms;
@@ -317,12 +318,10 @@ export const chatComposerStyles = css `
317
318
  The inline row keeps the one-line text and the send action on the optical
318
319
  center: equal block padding around the 24px line, a symmetric action row, and
319
320
  no base-layout nudge on the submit button. */
320
- ${partSelector(chatComposerContract, "root")} {
321
- ${chatComposerOptions.when({ layout: "inline" })} {
322
- grid-template-columns: minmax(0, 1fr) auto;
323
- align-items: center;
324
- padding: ${uiTokens.controlPaddingInline} ${uiTokens.spaceSection};
325
- }
321
+ ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"] > ${partSelector(chatComposerContract, "surface")} {
322
+ grid-template-columns: minmax(0, 1fr) auto;
323
+ align-items: center;
324
+ padding: ${uiTokens.controlPaddingInline} ${uiTokens.spaceSection};
326
325
  }
327
326
 
328
327
  ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"] ${partSelector(chatComposerContract, "input")} {
@@ -347,25 +346,13 @@ export const chatComposerStyles = css `
347
346
  grid-column: 1 / -1;
348
347
  }
349
348
 
350
- ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"]:has(> ${partSelector(chatComposerContract, "attachments")}:not(:empty)):not(
349
+ ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"] > ${partSelector(chatComposerContract, "surface")}:has(> ${partSelector(chatComposerContract, "attachments")}:not(:empty)):not(
351
350
  :has(> ${partSelector(chatComposerContract, "attachments")} > [hidden]:only-child)
352
351
  )
353
352
  :is(${partSelector(chatComposerContract, "input")}, ${partSelector(chatComposerContract, "actions")}) {
354
353
  grid-row: 2;
355
354
  }
356
355
 
357
- ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"]:focus-within ${partSelector(chatComposerContract, "hint")} {
358
- position: static;
359
- grid-column: 1 / -1;
360
- grid-row: 3;
361
- width: auto;
362
- height: auto;
363
- clip-path: none;
364
- white-space: normal;
365
- color: ${uiTokens.mutedForeground};
366
- font-size: ${uiTokens.fontCaption};
367
- }
368
-
369
356
  @media (pointer: coarse) {
370
357
  ${partSelector(chatComposerContract, "input")} {
371
358
  font-size: max(16px, ${uiTokens.fontBody});
@@ -373,14 +360,14 @@ export const chatComposerStyles = css `
373
360
  }
374
361
 
375
362
  @media (prefers-reduced-motion: reduce) {
376
- ${partSelector(chatComposerContract, "root")},
363
+ ${partSelector(chatComposerContract, "surface")},
377
364
  ${partSelector(chatComposerContract, "input")},
378
365
  ${partSelector(chatComposerContract, "submit")} {
379
366
  transition: none;
380
367
  }
381
368
  }
382
369
 
383
- ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] {
370
+ ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] > ${partSelector(chatComposerContract, "surface")} {
384
371
  position: relative;
385
372
  gap: 4px;
386
373
  padding: 12px 12px 10px;
@@ -447,29 +434,27 @@ export const chatComposerStyles = css `
447
434
  opacity: 0.35;
448
435
  }
449
436
 
450
- ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] ${partSelector(chatComposerContract, "hint")} {
451
- position: absolute;
452
- right: 58px;
453
- bottom: 19px;
437
+ /* Supporting text is outside the writing surface and never joins its action grid. */
438
+ ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] > ${partSelector(chatComposerContract, "hint")},
439
+ ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"]:focus-within > ${partSelector(chatComposerContract, "hint")} {
440
+ position: static;
441
+ min-width: 0;
454
442
  width: auto;
455
443
  height: auto;
444
+ padding-inline: 6px;
456
445
  overflow: visible;
457
446
  clip-path: none;
447
+ white-space: normal;
448
+ overflow-wrap: anywhere;
458
449
  color: ${layerTokens.faint};
459
450
  font-size: 12px;
460
451
  line-height: 18px;
461
- pointer-events: none;
462
- }
463
-
464
- @media (max-width: 680px) {
465
- ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] ${partSelector(chatComposerContract, "hint")} {
466
- display: none;
467
- }
452
+ pointer-events: auto;
468
453
  }
469
454
 
470
455
  /* A phone writes on one row: attach, text, send. The model choice keeps a quiet row beneath. */
471
456
  @media (max-width: 768px) {
472
- ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] {
457
+ ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] > ${partSelector(chatComposerContract, "surface")} {
473
458
  display: grid;
474
459
  grid-template-columns: auto minmax(0, 1fr) auto;
475
460
  align-items: end;
@@ -513,6 +498,7 @@ export const chatComposerStyles = css `
513
498
  ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] ${partSelector(chatComposerContract, "actions")} > ${partSelector(chatComposerContract, "trailing")} {
514
499
  grid-column: 2 / -1;
515
500
  grid-row: 3;
501
+ margin-left: 0;
516
502
  max-width: none;
517
503
  padding-top: 2px;
518
504
  justify-content: flex-start;
@@ -528,24 +514,16 @@ export const chatComposerStyles = css `
528
514
  margin-left: 0;
529
515
  border-radius: 50%;
530
516
  }
517
+
531
518
  }
532
519
 
533
- /* A composing panel owns the surface; the composer then contributes only its
534
- editor and action row, without a second chrome or padding layer. */
535
- ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("surface")}="none"] {
520
+ /* Explicit bare embedding removes only the writing surface chrome. The form
521
+ and external supporting instructions keep their normal layout. */
522
+ ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("surface")}="none"] > ${partSelector(chatComposerContract, "surface")} {
536
523
  padding: 0;
537
524
  border: 0;
538
525
  border-radius: 0;
539
526
  background: transparent;
540
527
  box-shadow: none;
541
528
  }
542
- @media (max-width: 768px) {
543
- ${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("surface")}="none"] {
544
- padding: 0;
545
- border: 0;
546
- border-radius: 0;
547
- background: transparent;
548
- box-shadow: none;
549
- }
550
- }
551
529
  `;
@@ -51,13 +51,12 @@ export const chatTaskStyles = css `
51
51
  color: ${uiTokens.mutedForeground};
52
52
  font-size: ${uiTokens.fontCaption};
53
53
  }
54
- ${part("progressBar")} {
55
- display: block;
56
- box-sizing: border-box;
57
- width: 100%;
54
+ ${part("progressLabel")} {
58
55
  min-width: 0;
59
- height: ${uiTokens.spaceGroup};
60
- accent-color: ${uiTokens.info};
56
+ line-height: 1.4;
57
+ }
58
+ ${part("progressBar")} {
59
+ display: contents;
61
60
  }
62
61
  ${part("body")} {
63
62
  display: grid;
@@ -0,0 +1 @@
1
+ export declare const accordionStyles: import("meowcss/meowjsx").CSSFragment;
@@ -0,0 +1,63 @@
1
+ import { css, partSelector } from "meowcss/meowjsx";
2
+ import { uiTokens } from "../tokens.js";
3
+ import { accordionContract } from "../../components/accordion.js";
4
+ import { disclosureContract } from "../../components/disclosure.js";
5
+ import { layerTokens, lineTokens, radiusTokens } from "../palette.js";
6
+ const root = partSelector(accordionContract, "root");
7
+ const item = partSelector(accordionContract, "item");
8
+ const disclosure = partSelector(disclosureContract, "root");
9
+ const summary = partSelector(disclosureContract, "summary");
10
+ const icon = partSelector(disclosureContract, "icon");
11
+ const content = partSelector(disclosureContract, "content");
12
+ export const accordionStyles = css `
13
+ ${root} {
14
+ display: grid;
15
+ min-width: 0;
16
+ overflow: hidden;
17
+ border: ${lineTokens.width} solid ${lineTokens.edge};
18
+ border-radius: ${radiusTokens.card};
19
+ background: ${layerTokens.raised};
20
+ color: ${uiTokens.foreground};
21
+ }
22
+ ${item} + ${item} {
23
+ border-top: ${lineTokens.width} solid ${lineTokens.divider};
24
+ }
25
+ ${root} ${disclosure} {
26
+ font-size: ${uiTokens.fontBody};
27
+ }
28
+ ${root} ${summary} {
29
+ min-height: 44px;
30
+ padding: 12px 16px;
31
+ font-weight: 500;
32
+ color: ${uiTokens.foreground};
33
+ border-radius: 0;
34
+ transition:
35
+ color ${uiTokens.durationResponse} ${uiTokens.ease},
36
+ background-color ${uiTokens.durationResponse} ${uiTokens.ease};
37
+ }
38
+ ${root} ${icon} {
39
+ color: ${uiTokens.mutedForeground};
40
+ }
41
+ @media (hover: hover) {
42
+ ${root} ${summary}:hover {
43
+ background: ${layerTokens.sunken};
44
+ color: ${uiTokens.foreground};
45
+ }
46
+ }
47
+ ${root} ${content} {
48
+ padding: 0 16px 16px 38px;
49
+ color: ${uiTokens.mutedForeground};
50
+ line-height: ${uiTokens.leading};
51
+ }
52
+ ${root} ${content} > :first-child {
53
+ margin-block-start: 0;
54
+ }
55
+ ${root} ${content} > :last-child {
56
+ margin-block-end: 0;
57
+ }
58
+ @media (prefers-reduced-motion: reduce) {
59
+ ${root} ${summary} {
60
+ transition: none;
61
+ }
62
+ }
63
+ `;
@@ -0,0 +1 @@
1
+ export declare const avatarStyles: import("meowcss/meowjsx").CSSFragment;
@@ -0,0 +1,52 @@
1
+ import { css, partSelector } from "meowcss/meowjsx";
2
+ import { uiTokens } from "../tokens.js";
3
+ import { lineTokens } from "../palette.js";
4
+ import { avatarContract, avatarOptions } from "../../components/avatar.js";
5
+ const root = partSelector(avatarContract, "root");
6
+ export const avatarStyles = css `
7
+ ${root} {
8
+ position: relative;
9
+ display: inline-grid;
10
+ place-items: center;
11
+ overflow: hidden;
12
+ box-sizing: border-box;
13
+ width: 32px;
14
+ height: 32px;
15
+ border: ${lineTokens.width} solid ${lineTokens.edge};
16
+ border-radius: ${uiTokens.controlRadius};
17
+ background: ${uiTokens.primary};
18
+ color: ${uiTokens.onPrimary};
19
+ font: 600 ${uiTokens.fontCaption}/1 ${uiTokens.font};
20
+ user-select: none;
21
+ }
22
+ ${root} {
23
+ ${avatarOptions.when({ size: "small" })} {
24
+ width: 24px;
25
+ height: 24px;
26
+ border-radius: ${uiTokens.radiusSmall};
27
+ font-size: 10px;
28
+ }
29
+ }
30
+ ${root} {
31
+ ${avatarOptions.when({ size: "large" })} {
32
+ width: 40px;
33
+ height: 40px;
34
+ font-size: ${uiTokens.fontBody};
35
+ }
36
+ }
37
+ ${partSelector(avatarContract, "initials")} {
38
+ display: grid;
39
+ place-items: center;
40
+ letter-spacing: 0.04em;
41
+ }
42
+ ${partSelector(avatarContract, "image")} {
43
+ position: absolute;
44
+ inset: 0;
45
+ width: 100%;
46
+ height: 100%;
47
+ object-fit: cover;
48
+ }
49
+ ${partSelector(avatarContract, "image")}[hidden] {
50
+ display: none;
51
+ }
52
+ `;
@@ -135,9 +135,18 @@ ${partSelector(iconButtonContract, "root")} {
135
135
  min-height: ${uiTokens.buttonLarge};
136
136
  }
137
137
  }
138
+ ${partSelector(buttonContract, "root")} svg {
139
+ transition: transform ${uiTokens.durationSettle} ${uiTokens.ease};
140
+ }
141
+ ${partSelector(buttonContract, "root")}[aria-expanded="true"] svg:last-child {
142
+ transform: rotate(180deg);
143
+ }
138
144
  @media (prefers-reduced-motion: reduce) {
139
145
  :where(${partSelector(iconButtonContract, "root")}, ${partSelector(buttonContract, "root")}) {
140
146
  transition: none;
141
147
  }
148
+ ${partSelector(buttonContract, "root")} svg {
149
+ transition: none;
150
+ }
142
151
  }
143
152
  `;
@@ -15,6 +15,7 @@ ${partSelector(cardContract, "root")} {
15
15
  border: 0.5px solid ${uiTokens.border};
16
16
  border-radius: ${uiTokens.panelRadius};
17
17
  background: ${uiTokens.surface};
18
+ --meowui-focus-halo: ${uiTokens.surface};
18
19
  color: ${uiTokens.foreground};
19
20
  font: ${uiTokens.fontBody}/${uiTokens.leading} ${uiTokens.font};
20
21
  }
@@ -30,6 +31,7 @@ button${partSelector(cardContract, "root")}:focus-visible {
30
31
  border: 0;
31
32
  border-radius: 0;
32
33
  background: transparent;
34
+ --meowui-focus-halo: inherit;
33
35
  box-shadow: none;
34
36
  }
35
37
  ${partSelector(cardHeaderContract, "root")} {
@@ -0,0 +1 @@
1
+ export declare const contextMenuStyles: import("meowcss/meowjsx").CSSFragment;
@@ -0,0 +1,14 @@
1
+ import { css, partSelector } from "meowcss/meowjsx";
2
+ import { contextMenuContract } from "../../components/context-menu.js";
3
+ import { uiTokens } from "../tokens.js";
4
+ export const contextMenuStyles = css `
5
+ ${partSelector(contextMenuContract, "root")} {
6
+ min-width: 0;
7
+ cursor: context-menu;
8
+ }
9
+ ${partSelector(contextMenuContract, "root")}:focus-visible {
10
+ outline: 2px solid ${uiTokens.focus};
11
+ outline-offset: 2px;
12
+ border-radius: ${uiTokens.controlRadius};
13
+ }
14
+ `;
@@ -0,0 +1 @@
1
+ export declare const linkStyles: import("meowcss/meowjsx").CSSFragment;
@@ -0,0 +1,33 @@
1
+ import { css, partSelector } from "meowcss/meowjsx";
2
+ import { uiTokens } from "../tokens.js";
3
+ import { accentTokens } from "../palette.js";
4
+ import { linkContract } from "../../components/link.js";
5
+ const root = partSelector(linkContract, "root");
6
+ export const linkStyles = css `
7
+ ${root} {
8
+ color: ${accentTokens.ink};
9
+ font: inherit;
10
+ text-decoration: underline;
11
+ text-decoration-thickness: 1px;
12
+ text-decoration-color: color-mix(in srgb, ${accentTokens.ink} 55%, transparent);
13
+ text-underline-offset: 3px;
14
+ overflow-wrap: anywhere;
15
+ transition:
16
+ color ${uiTokens.durationResponse} ${uiTokens.ease},
17
+ text-decoration-color ${uiTokens.durationResponse} ${uiTokens.ease};
18
+ }
19
+ ${root}:hover {
20
+ color: ${uiTokens.foreground};
21
+ text-decoration-color: ${uiTokens.foreground};
22
+ }
23
+ ${root}:focus-visible {
24
+ outline: 2px solid ${uiTokens.focus};
25
+ outline-offset: 2px;
26
+ border-radius: 2px;
27
+ }
28
+ @media (prefers-reduced-motion: reduce) {
29
+ ${root} {
30
+ transition: none;
31
+ }
32
+ }
33
+ `;
@@ -16,8 +16,8 @@ export const menuStyles = css `
16
16
  align-items: center;
17
17
  gap: 6px;
18
18
  width: 100%;
19
- min-height: 34px;
20
- padding: 6px 8px;
19
+ min-height: 32px;
20
+ padding: 6px 12px;
21
21
  border: 0;
22
22
  border-radius: ${uiTokens.controlRadius};
23
23
  background: transparent;
@@ -25,6 +25,7 @@ export const menuStyles = css `
25
25
  font: inherit;
26
26
  text-align: left;
27
27
  cursor: pointer;
28
+ transition: background-color ${uiTokens.durationResponse} ${uiTokens.ease};
28
29
  }
29
30
  ${partSelector(menuContract, "item")}:is(:hover, :focus-visible):not(:disabled) {
30
31
  background: ${uiTokens.hover};
@@ -64,7 +65,7 @@ export const menuStyles = css `
64
65
  white-space: nowrap;
65
66
  }
66
67
  ${partSelector(menuContract, "heading")} {
67
- padding: 6px 8px;
68
+ padding: 6px 12px;
68
69
  font-size: 11px;
69
70
  line-height: 15px;
70
71
  color: ${uiTokens.subtleForeground};
@@ -74,4 +75,9 @@ export const menuStyles = css `
74
75
  background: ${uiTokens.borderSoft};
75
76
  margin: 3px 2px;
76
77
  }
78
+ @media (prefers-reduced-motion: reduce) {
79
+ ${partSelector(menuContract, "item")} {
80
+ transition: none;
81
+ }
82
+ }
77
83
  `;
@@ -0,0 +1 @@
1
+ export declare const numberInputStyles: import("meowcss/meowjsx").CSSFragment;
@@ -0,0 +1,106 @@
1
+ import { css, partSelector } from "meowcss/meowjsx";
2
+ import { uiTokens } from "../tokens.js";
3
+ import { numberInputContract } from "../../components/number-input.js";
4
+ const root = partSelector(numberInputContract, "root");
5
+ const control = partSelector(numberInputContract, "control");
6
+ const stepper = `:where(${partSelector(numberInputContract, "decrement")}, ${partSelector(numberInputContract, "increment")})`;
7
+ export const numberInputStyles = css `
8
+ ${root} {
9
+ box-sizing: border-box;
10
+ display: inline-flex;
11
+ align-items: center;
12
+ width: max-content;
13
+ max-width: 100%;
14
+ min-width: 0;
15
+ min-height: calc(${uiTokens.controlHeight} + 1px);
16
+ padding: 2px;
17
+ border: 0.5px solid ${uiTokens.border};
18
+ border-radius: ${uiTokens.controlRadius};
19
+ background: ${uiTokens.inputSurface};
20
+ color: ${uiTokens.foreground};
21
+ font: ${uiTokens.fontBody}/22px ${uiTokens.font};
22
+ transition: border-color ${uiTokens.durationResponse} ${uiTokens.ease};
23
+ }
24
+ ${root}:focus-within {
25
+ border-color: ${uiTokens.focus};
26
+ }
27
+ @media (hover: hover) {
28
+ ${root}:hover:not(:focus-within):not(:has(${control}:disabled)):not(:has([aria-invalid="true"])) {
29
+ border-color: ${uiTokens.mutedForeground};
30
+ }
31
+ }
32
+ ${root}:has([aria-invalid="true"]) {
33
+ border-color: ${uiTokens.danger};
34
+ }
35
+ ${root}:has(${control}:disabled) {
36
+ color: ${uiTokens.subtleForeground};
37
+ border-color: ${uiTokens.borderFaint};
38
+ background: ${uiTokens.surfaceMuted};
39
+ }
40
+ ${control} {
41
+ box-sizing: border-box;
42
+ flex: 0 0 auto;
43
+ width: 4.5rem;
44
+ min-width: 0;
45
+ min-height: calc(${uiTokens.controlHeight} - 4px);
46
+ padding: 4px 2px;
47
+ border: 0;
48
+ background: transparent;
49
+ color: inherit;
50
+ font: inherit;
51
+ font-variant-numeric: tabular-nums;
52
+ text-align: center;
53
+ outline: none;
54
+ }
55
+ ${stepper} {
56
+ appearance: none;
57
+ box-sizing: border-box;
58
+ display: inline-flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ flex: 0 0 auto;
62
+ width: ${uiTokens.controlSmall};
63
+ height: ${uiTokens.controlSmall};
64
+ margin: 0;
65
+ padding: 0;
66
+ border: 0;
67
+ border-radius: ${uiTokens.radiusSmall};
68
+ background: transparent;
69
+ color: ${uiTokens.mutedForeground};
70
+ font: inherit;
71
+ line-height: 0;
72
+ cursor: pointer;
73
+ transition:
74
+ color ${uiTokens.durationResponse} ${uiTokens.ease},
75
+ background-color ${uiTokens.durationResponse} ${uiTokens.ease};
76
+ }
77
+ ${stepper} svg {
78
+ display: block;
79
+ width: ${uiTokens.iconSize};
80
+ height: ${uiTokens.iconSize};
81
+ }
82
+ @media (hover: hover) {
83
+ ${stepper}:hover:not(:disabled) {
84
+ color: ${uiTokens.foreground};
85
+ background: ${uiTokens.hover};
86
+ }
87
+ }
88
+ ${stepper}:active:not(:disabled) {
89
+ background: ${uiTokens.active};
90
+ }
91
+ ${stepper}:focus-visible {
92
+ outline: 2px solid ${uiTokens.focus};
93
+ outline-offset: 2px;
94
+ }
95
+ ${root}:has(${control}:disabled) ${stepper},
96
+ ${stepper}:disabled {
97
+ cursor: not-allowed;
98
+ color: inherit;
99
+ }
100
+ @media (prefers-reduced-motion: reduce) {
101
+ ${root},
102
+ ${stepper} {
103
+ transition: none;
104
+ }
105
+ }
106
+ `;
@@ -0,0 +1 @@
1
+ export declare const progressStyles: import("meowcss/meowjsx").CSSFragment;