@apliteni/apliteni-ui 0.34.0 → 0.34.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],
@@ -333,9 +333,11 @@
333
333
  .ui-app--topbar > .ui-app__rail > .ui-app__head { height: var(--ui-app-band); padding-bottom: 0; }
334
334
  .ui-app--topbar > .ui-app__rail > .ui-app__foot { height: var(--ui-app-band); padding-top: 0; }
335
335
 
336
- /* Drawn as a field, behaving as a button. The ladder is the field's — the sunken
337
- step, the hairline and the radius src/styles/input.css:20 `.ui-input` sets — because
338
- what it looks like is the point. It gives way before anything else on the band.
336
+ /* Drawn as a field, behaving as a button. The hairline and the radius are the
337
+ field's — src/styles/input.css:20 `.ui-input,` sets both — because what it looks
338
+ like is the point. The STEP is not, and that is the one thing this control does
339
+ differently from every other field in the kit: the reason is on the declaration
340
+ below. It gives way before anything else on the band.
339
341
  why: docs/specification.md#the-page-shell */
340
342
  .ui-app__search {
341
343
  display: flex;
@@ -350,13 +352,28 @@
350
352
  font-size: var(--text-sm);
351
353
  text-align: start;
352
354
  color: var(--muted);
353
- background: var(--surface-2);
355
+ /* --surface, not the sunken --surface-2 every other field in the kit takes:
356
+ those sit on a card and this one sits on the band, and the band IS --bg, the
357
+ bottom of the ladder — so a sunken fill has nowhere to go but down into its
358
+ own ground. Measured in light, the field was 1.10:1 BELOW the band and its
359
+ key cap 1.04:1 against the field it sits in; they are 1.08 above and 1.14 now.
360
+ Dark trades the other way and is stated rather than hidden: the cap goes
361
+ 1.29 -> 1.16, because --surface-3 and --surface are adjacent rungs there.
362
+ Artur chose this over three alternatives on #318; the survey of what seven
363
+ other systems do is docs/reviews/318-search-field.md.
364
+ why: docs/specification.md#elevation */
365
+ background: var(--surface);
354
366
  border: 1px solid var(--border);
355
367
  border-radius: var(--radius-md);
356
368
  cursor: pointer;
357
369
  transition: border-color var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
358
370
  }
359
371
  .ui-app__search:hover { border-color: var(--border-strong); color: var(--strong); }
372
+ /* Every other control on the band takes the kit's ring. This one is a <button>
373
+ without `.ui-btn`, so base.css's shared rule never reached it and focus fell
374
+ through to the browser's own square outline, drawn around a 12px radius.
375
+ why: docs/specification.md#the-focus-ring */
376
+ .ui-app__search:focus-visible { outline: none; box-shadow: var(--ring); border-color: var(--accent); }
360
377
  /* The same glyph the palette draws in its own search box, at the same box and the
361
378
  same stroke: the trigger and the thing it opens are not two search marks.
362
379
  src/styles/command-palette.css:107 `.ui-cmdk__search-ic svg` */