@duskmoon-dev/components 0.4.1 → 0.5.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.
@@ -4,7 +4,7 @@
4
4
  import { useCallback, useState } from "react";
5
5
 
6
6
  // src/generated/version.ts
7
- var version = "0.4.1";
7
+ var version = "0.5.0";
8
8
 
9
9
  // src/infrastructure.ts
10
10
  var theme = {
package/dist/styles.css CHANGED
@@ -29373,3 +29373,95 @@ html {
29373
29373
  .schema-form .schema-widget > :is(.cascader-container, .tree-select) {
29374
29374
  width: 100%;
29375
29375
  }
29376
+
29377
+ /* Composer state and layout are independent from conversation rows. */
29378
+ .chat-composer {
29379
+ display: flex;
29380
+ flex-direction: column;
29381
+ gap: 0.625rem;
29382
+ min-width: 0;
29383
+ padding: 0.75rem;
29384
+ border: 1px solid var(--color-outline-variant);
29385
+ border-radius: var(--radius-box, 0.75rem);
29386
+ background: var(--color-surface);
29387
+ color: var(--color-on-surface);
29388
+ }
29389
+
29390
+ .chat-composer .chat-composer-editor {
29391
+ box-sizing: border-box;
29392
+ width: 100%;
29393
+ min-height: 0;
29394
+ max-height: none;
29395
+ resize: none;
29396
+ line-height: 1.5rem;
29397
+ }
29398
+
29399
+ .chat-composer-actions,
29400
+ .chat-composer-attachments {
29401
+ display: flex;
29402
+ align-items: center;
29403
+ flex-wrap: wrap;
29404
+ gap: 0.5rem;
29405
+ }
29406
+
29407
+ .chat-composer-attachments,
29408
+ .chat-composer-completions {
29409
+ margin: 0;
29410
+ padding: 0;
29411
+ list-style: none;
29412
+ }
29413
+
29414
+ .chat-composer-attachment {
29415
+ display: flex;
29416
+ align-items: center;
29417
+ gap: 0.375rem;
29418
+ min-width: 0;
29419
+ max-width: 100%;
29420
+ padding: 0.375rem;
29421
+ border-radius: var(--radius-sm, 0.375rem);
29422
+ background: var(--color-surface-container);
29423
+ }
29424
+
29425
+ .chat-composer-attachment img {
29426
+ width: 2.5rem;
29427
+ height: 2.5rem;
29428
+ object-fit: cover;
29429
+ border-radius: var(--radius-sm, 0.375rem);
29430
+ }
29431
+
29432
+ .chat-composer-filename {
29433
+ overflow-wrap: anywhere;
29434
+ }
29435
+
29436
+ .chat-composer-completions {
29437
+ max-height: 12rem;
29438
+ overflow-y: auto;
29439
+ border: 1px solid var(--color-outline-variant);
29440
+ border-radius: var(--radius-sm, 0.375rem);
29441
+ }
29442
+
29443
+ .chat-composer-completions [role="option"] {
29444
+ display: flex;
29445
+ flex-direction: column;
29446
+ gap: 0.125rem;
29447
+ padding: 0.5rem 0.75rem;
29448
+ cursor: pointer;
29449
+ }
29450
+
29451
+ .chat-composer-completions [aria-selected="true"] {
29452
+ background: var(--color-primary-container);
29453
+ color: var(--color-on-primary-container);
29454
+ }
29455
+
29456
+ .chat-composer-completions [aria-disabled="true"] {
29457
+ opacity: 0.5;
29458
+ cursor: default;
29459
+ }
29460
+
29461
+ .chat-composer-description {
29462
+ font-size: 0.875rem;
29463
+ }
29464
+
29465
+ .chat-composer-error {
29466
+ color: var(--color-error);
29467
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duskmoon-dev/components",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",