reifyui 0.6.2 → 0.7.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.
@@ -0,0 +1,65 @@
1
+ /* Form primitives. One label weight, one focus ring, one hint size — the point of having these
2
+ at all is that a form cannot look different per surface. Product-neutral: --uic-* only. */
3
+
4
+ .uic-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
5
+ .uic-field + .uic-field { margin-top: 14px; }
6
+ .uic-field-label {
7
+ font-size: 12px; font-weight: 600; letter-spacing: .01em;
8
+ color: var(--uic-ink-2, #3A3D45);
9
+ }
10
+ .uic-field-req { color: var(--uic-fail-ink, #B91C1C); margin-left: 3px; }
11
+ .uic-field-hint, .uic-field-err { margin: 0; font-size: 11.5px; line-height: 1.45; }
12
+ .uic-field-hint { color: var(--uic-mute, #5B5D66); }
13
+ .uic-field-err { color: var(--uic-fail-ink, #B91C1C); }
14
+
15
+ .uic-input {
16
+ width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13px;
17
+ color: var(--uic-ink, #111317); background: var(--uic-surface, #FFFFFF);
18
+ border: 1px solid var(--uic-line, #DDDFE6); border-radius: 8px;
19
+ padding: 7px 10px; min-height: 34px;
20
+ }
21
+ .uic-input::placeholder { color: var(--uic-mute-2, #8E9199); }
22
+ .uic-input:focus {
23
+ outline: none; border-color: var(--uic-brand, #285AFF);
24
+ box-shadow: 0 0 0 3px var(--uic-brand-faint, #EFF3FF);
25
+ }
26
+ .uic-input.is-error { border-color: var(--uic-fail-line, #FECACA); }
27
+ .uic-input.is-error:focus { border-color: var(--uic-fail-ink, #B91C1C); box-shadow: 0 0 0 3px var(--uic-fail-bg, #FEF2F2); }
28
+ .uic-input:disabled { background: var(--uic-surface-2, #F7F8FA); color: var(--uic-mute, #5B5D66); cursor: not-allowed; }
29
+
30
+ .uic-textarea { min-height: 76px; resize: vertical; line-height: 1.5; }
31
+
32
+ /* The chevron is drawn rather than left to the platform: the platform's differs per OS and the
33
+ rest of the form does not. */
34
+ .uic-select-wrap { position: relative; display: block; }
35
+ .uic-select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer; }
36
+ .uic-select-chev {
37
+ position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
38
+ pointer-events: none; display: flex; color: var(--uic-mute, #5B5D66);
39
+ }
40
+
41
+ .uic-form-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
42
+ .uic-form-actions.is-end { justify-content: flex-end; }
43
+ .uic-form-actions.is-start { justify-content: flex-start; }
44
+ .uic-form-actions.is-between { justify-content: space-between; }
45
+
46
+ .uic-btn {
47
+ display: inline-flex; align-items: center; justify-content: center; gap: 6px;
48
+ font-family: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
49
+ border-radius: 8px; border: 1px solid transparent;
50
+ }
51
+ .uic-btn.is-md { height: 34px; padding: 0 14px; font-size: 13px; }
52
+ .uic-btn.is-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
53
+ .uic-btn.is-default {
54
+ color: var(--uic-ink-2, #3A3D45); background: var(--uic-surface, #FFFFFF);
55
+ border-color: var(--uic-line, #DDDFE6);
56
+ }
57
+ .uic-btn.is-default:hover { border-color: var(--uic-mute-2, #8E9199); }
58
+ .uic-btn.is-primary { color: #fff; background: var(--uic-brand, #285AFF); border-color: var(--uic-brand, #285AFF); }
59
+ .uic-btn.is-primary:hover { background: var(--uic-brand-ink, #1641D8); border-color: var(--uic-brand-ink, #1641D8); }
60
+ .uic-btn.is-ghost { color: var(--uic-mute, #5B5D66); background: transparent; }
61
+ .uic-btn.is-ghost:hover { background: var(--uic-line-soft, #EFF1F4); color: var(--uic-ink, #111317); }
62
+ .uic-btn.is-danger { color: var(--uic-fail-ink, #B91C1C); background: var(--uic-surface, #FFFFFF); border-color: var(--uic-fail-line, #FECACA); }
63
+ .uic-btn.is-danger:hover { background: var(--uic-fail-bg, #FEF2F2); }
64
+ .uic-btn:disabled { opacity: .5; cursor: not-allowed; }
65
+ .uic-btn:focus-visible { outline: 2px solid var(--uic-brand, #285AFF); outline-offset: 2px; }
package/styles/sheet.css CHANGED
@@ -57,7 +57,11 @@
57
57
  .shg-cell { cursor: text; background: var(--uic-surface, #FFFFFF); }
58
58
  .shg-cell-compute { cursor: default; }
59
59
  .shg-cell:hover { background: var(--uic-surface-2, #F7F8FA); }
60
- .shg-val { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 100%; }
60
+ /* The cell is the constraint on its own value. This used to carry an inline max-width of the
61
+ column width minus 20, or 400px where the column had no explicit width — a number nothing
62
+ derived, which ellipsised a value long before its own cell ran out of room. */
63
+ .shg-val { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 100%;
64
+ width: 100%; min-width: 0; box-sizing: border-box; }
61
65
  .shg-val-txt {
62
66
  flex: 1; min-width: 0; color: var(--uic-ink, #111317);
63
67
  /* Wrap to the row's height; the last visible line ellipsizes. Rows at the