bank20baht-ui 0.2.2 → 0.2.4

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.
package/dist/tokens.css CHANGED
@@ -397,20 +397,46 @@
397
397
  .baht-field--w-full { flex-basis: 100%; }
398
398
  .baht-field--hidden { display: none; }
399
399
 
400
- /* readonly display mode (<baht-form readonly>): render the same grid/widths as plain text */
401
- .baht-form--readonly .baht-control {
402
- border: none;
403
- background: transparent;
404
- padding: 0;
405
- min-height: auto;
406
- font-weight: 600;
400
+ /* readonly display mode (<baht-form readonly>): the same grid/widths, values as text.
401
+ Label sits small and muted above a plain value; empty values say so quietly. */
402
+ .baht-form--readonly .baht-required-mark { display: none; }
403
+ .baht-form--readonly .baht-help { display: none; }
404
+ .baht-field--readonly .baht-label {
405
+ margin-bottom: 2px;
406
+ font-size: var(--baht-text-xs);
407
+ font-weight: 500;
408
+ color: var(--baht-color-text-muted);
409
+ }
410
+ .baht-readonly-value {
411
+ display: block;
407
412
  color: var(--baht-color-text);
408
- resize: none;
413
+ font-size: var(--baht-font-size);
414
+ line-height: 1.5;
415
+ overflow-wrap: anywhere;
416
+ white-space: pre-line;
409
417
  }
410
- .baht-form--readonly .baht-control:disabled,
411
- .baht-form--readonly .baht-control:read-only { opacity: 1; cursor: default; }
412
- .baht-form--readonly select.baht-control { appearance: none; }
413
- .baht-form--readonly .baht-required-mark { display: none; }
418
+ .baht-readonly-value--empty { color: var(--baht-color-text-muted); font-style: italic; }
419
+ .baht-readonly-chips { display: flex; flex-wrap: wrap; gap: 6px; white-space: normal; }
420
+ .baht-readonly-chip {
421
+ display: inline-block;
422
+ padding: 2px 10px;
423
+ border: 1px solid var(--baht-color-border);
424
+ border-radius: var(--baht-radius-full, 999px);
425
+ background: var(--baht-color-surface-muted, var(--baht-color-surface));
426
+ font-size: var(--baht-text-sm, 0.875rem);
427
+ }
428
+ .baht-readonly-rows { display: flex; flex-direction: column; gap: 6px; }
429
+ .baht-readonly-row {
430
+ display: flex;
431
+ flex-wrap: wrap;
432
+ gap: 4px 16px;
433
+ padding: 6px 10px;
434
+ border: 1px solid var(--baht-color-border);
435
+ border-radius: var(--baht-radius-md);
436
+ }
437
+ .baht-readonly-cell { display: inline-flex; flex-direction: column; }
438
+ .baht-readonly-cell-label { font-size: var(--baht-text-xs); color: var(--baht-color-text-muted); }
439
+ .baht-readonly-cell-value { font-size: var(--baht-text-sm, 0.875rem); }
414
440
 
415
441
  .baht-label {
416
442
  display: block;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "bank20baht-ui",
4
- "version": "0.2.2",
4
+ "version": "0.2.4",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bank20baht-ui",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "description": "JSON-driven form + workflow engine. Send JSON in, get an interactive form out.",
6
6
  "license": "MIT",