@apliteni/apliteni-ui 0.162.0 → 0.162.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.
@@ -70,7 +70,7 @@
70
70
 
71
71
  **Rule:** Set coarse-pointer field text to 16px without scaling it down.
72
72
 
73
- **Why:** iOS Safari zooms into a field under 16px and does not zoom out. There is no specimen pair because the size answers to the pointer rather than the width, so both halves would draw the desktop size.
73
+ **Why:** iOS Safari zooms into a field under 16px and does not zoom out.
74
74
 
75
75
  **Do:** Real 16px text in the field itself.
76
76
 
@@ -84,7 +84,7 @@
84
84
 
85
85
  **Rule:** Keep body text close to 7:1 at every size, not merely at 4.5:1.
86
86
 
87
- **Why:** Stronger contrast supports comfortable reading at every size. There is no specimen pair because a pale example would break this rule in front of the reader.
87
+ **Why:** Stronger contrast supports comfortable reading at every size.
88
88
 
89
89
  **Do:** Body ink at every size, with size, weight and spacing carrying the hierarchy.
90
90
 
@@ -122,7 +122,7 @@
122
122
 
123
123
  **Rule:** Build keyboard behaviour before pointer behaviour and styling.
124
124
 
125
- **Why:** Keyboard access defines the interaction before visual polish. There is no specimen pair because this is an order of work: both halves look the same once they are finished.
125
+ **Why:** Keyboard access defines the interaction before visual polish.
126
126
 
127
127
  **Do:** Focus, order and keyboard actions working before anything is styled.
128
128
 
@@ -89,7 +89,7 @@
89
89
 
90
90
  **Rule:** In forced colours, fill a selected item with the highlight colour and its label with the highlight text colour.
91
91
 
92
- **Why:** The mode replaces author backgrounds. A specimen cannot switch it on, so this rule draws no pair.
92
+ **Why:** The mode replaces author backgrounds.
93
93
 
94
94
  **Do:** Ring a focused selected item in the page text colour.
95
95
 
@@ -112,16 +112,16 @@
112
112
 
113
113
  **Don't:** Replace the table with a blank state or move focus without telling the reader why.
114
114
 
115
- ## Give every table its filter bar
115
+ ## Give a long table its filter bar
116
116
 
117
117
  <!-- rule: filter-bar -->
118
118
 
119
- **Why:** Readers narrow rows before reading them, and look for the bar where other tables put it.
119
+ **Why:** Readers narrow a long table before they read it, and look for the bar where other tables put it.
120
120
 
121
- **Rule:** Put a bar with a search field and column filters directly above every table.
121
+ **Rule:** Put a bar with a search field and column filters directly above a table that can hold more than 10 rows.
122
122
 
123
123
  **Do:** Search, then a status filter, on the row above the table.
124
124
 
125
125
  **Don't:** Leave rows that the reader cannot narrow.
126
126
 
127
- **Except:** Two tables take no bar: one that compares a document line by line, where a filter hides lines the reviewer must check, and a chart's Table view, which holds only the chart's points.
127
+ **Except:** Three tables take no bar. One compares a document line by line, where a filter hides lines the reviewer must check. One is a chart's Table view, which holds only the chart's points. One never holds more than 10 rows, such as a list of API tokens, because the reader sees every row at once.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.162.0",
3
+ "version": "0.162.2",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],
@@ -973,7 +973,7 @@
973
973
  .ui-drop__actions {
974
974
  display: flex;
975
975
  flex: none;
976
- align-items: center;
976
+ align-items: stretch;
977
977
  gap: var(--space-2);
978
978
  margin-left: auto;
979
979
  }
@@ -49,7 +49,7 @@
49
49
  .ui-drop__error { color: var(--pink); }
50
50
 
51
51
  /* Closes the name's line on the edge the content ends on, in every state. */
52
- .ui-drop__actions { display: flex; flex: none; align-items: center; gap: var(--space-2); margin-left: auto; }
52
+ .ui-drop__actions { display: flex; flex: none; align-items: stretch; gap: var(--space-2); margin-left: auto; } /* stretch: a small button sizes to its content, so a glyph and a bare label differ by 1px. #768 */
53
53
 
54
54
  /* The width of the row it reports on, so 40% reads as 40% rather than as a dash.
55
55
  The ground is the kit's token for sunken tracks; --surface-3 was invisible. */
@@ -130,8 +130,10 @@
130
130
  .ui-filter-bar .ui-dropdown__item.is-selected:hover { background: color-mix(in srgb, var(--glow-purple), var(--accent) 9%); /* code-bg: inherit — a translucent wash moves the ground, not the chip on it. */ }
131
131
 
132
132
  /* A chip's height — a remove mark's line box, padding and border — named so every chip,
133
- with or without a mark, and a control on a line of its own stand as tall. */
134
- .ui-filter-bar { --ui-filter-row-h: calc(2px + 2 * var(--space-1) + var(--leading-normal) * var(--text-lg)); }
133
+ with or without a mark, and a control on a line of its own stand as tall. A toolbar
134
+ names it too, for the control at the end of a split row. Rounded up to a whole pixel:
135
+ a fractional line moved a scrolled table below it off the pixel its hit test uses. #768 */
136
+ .ui-filter-bar, .ui-toolbar { --ui-filter-row-h: round(up, calc(2px + 2 * var(--space-1) + var(--leading-normal) * var(--text-lg)), 1px); }
135
137
 
136
138
  /* A chip's neighbour takes the chip's corner, that height and edge, but not its painted fill:
137
139
  the trigger's own edge can differ from the row's, while its --surface made the
@@ -143,6 +145,13 @@
143
145
  why: guidelines/colour-and-theming.md#keep-text-off-grey-fills */
144
146
  .ui-filter-bar [data-filter-add] { display: flex; align-self: stretch; }
145
147
  .ui-filter-bar [data-filter-add] .ui-dropdown { display: flex; }
148
+ /* In a toolbar the chips, the add control and Clear all fill the line, so they stand as
149
+ tall as the field beside them and share its centre. #768 */
150
+ .ui-toolbar .ui-filter-bar { align-items: stretch; }
151
+ .ui-toolbar .ui-filter-bar [data-filter-clear] { display: flex; }
152
+ /* Clear all keeps a chip's height when it wraps to a line of its own, so a wider gap
153
+ that moves it to the next line does not change its size. */
154
+ .ui-toolbar .ui-filter-bar [data-filter-clear] button { min-height: var(--ui-filter-row-h); }
146
155
  .ui-filter-bar [data-filter-add] .ui-dropdown__trigger { border-radius: var(--radius-sm); min-height: var(--ui-filter-row-h); border-color: var(--control-edge); background: transparent; }
147
156
  .ui-filter-bar [data-filter-add] .ui-dropdown__trigger svg { width: 16px; height: 16px; flex: none; stroke-width: 2.4; }
148
157
  .ui-filter-bar [data-filter-add] .ui-dropdown__trigger:enabled:hover:not(:focus-visible) { border-color: var(--accent); }
@@ -535,6 +535,18 @@
535
535
  .ui-app__main .ui-card__row { flex-wrap: wrap; gap: var(--space-3); }
536
536
  }
537
537
 
538
+ /* -- One height for a row of controls -------------------------------------- */
539
+ /* Every control on a toolbar line takes the line's height, so it shares the field's
540
+ centre too. The plain boxes around a filter bar and a segmented track take back the
541
+ stretch they leave out elsewhere. The phone step's split end keeps its own height,
542
+ but beside a filter bar it takes a chip's height and so the first line's centre.
543
+ These sit below the phone shell because guideline references cite the lines above. #768 */
544
+ .ui-toolbar :where(div:has(.ui-filter-bar)) { display: grid; }
545
+ .ui-toolbar > .ui-seg { align-self: stretch; }
546
+ @media (max-width: 560px) {
547
+ .ui-toolbar--split:has(.ui-filter-bar) > :last-child { min-height: var(--ui-filter-row-h); }
548
+ }
549
+
538
550
  /* -- The band's search at one column --------------------------------------- */
539
551
  /* The band holds the trigger, the reader's mark and whatever the page puts between
540
552
  them, so the sentence broke mid-word — "Search or run a co…". The search glyph takes