@pretable/ui 0.11.0 → 0.12.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.
Files changed (2) hide show
  1. package/grid.css +64 -0
  2. package/package.json +1 -1
package/grid.css CHANGED
@@ -1118,6 +1118,17 @@
1118
1118
  outline: 2px solid var(--pretable-focus-ring);
1119
1119
  outline-offset: -2px;
1120
1120
  }
1121
+ /* A checkbox item (the row menu's auto-width toggle) lays its check glyph
1122
+ out on the trailing edge; the label keeps the block items' left
1123
+ alignment in both states, so no leading slot is reserved. The glyph is
1124
+ a CheckIcon — [data-pretable-icon] already sizes it. Selected by role,
1125
+ not a new data attribute: aria is the checkbox contract's own marker. */
1126
+ :where([data-pretable-menu-item][role="menuitemcheckbox"]) {
1127
+ display: flex;
1128
+ align-items: center;
1129
+ justify-content: space-between;
1130
+ gap: 8px;
1131
+ }
1121
1132
 
1122
1133
  /* Enum combobox listbox (cell editor) */
1123
1134
  :where([data-pretable-enum-editor]) {
@@ -1464,6 +1475,9 @@
1464
1475
  area yields, never a negotiation. */
1465
1476
  flex: none;
1466
1477
  flex-direction: column;
1478
+ /* Containing block for the resize handle below, which straddles the
1479
+ pane/grid seam with a negative inline offset. */
1480
+ position: relative;
1467
1481
  inline-size: 264px;
1468
1482
  min-block-size: 0;
1469
1483
  background: var(--pretable-bg-toolbar);
@@ -1474,6 +1488,33 @@
1474
1488
  font-size: var(--pretable-font-size-cell);
1475
1489
  color: var(--pretable-text-cell);
1476
1490
  }
1491
+ /* The pane's width-resize handle (SP5): a slim strip straddling the
1492
+ pane/grid seam — 3px each side of the border the pane already draws, so
1493
+ the grab target sits ON the visible seam rather than beside it. Zero new
1494
+ tokens (spec A1): the affordances below reuse the hover fill and the
1495
+ focus ring every control in this file already wears. `touch-action:
1496
+ none` for the drag's reason everywhere else: the browser must not
1497
+ translate a captured pointer's movement into a scroll. */
1498
+ :where([data-pretable-pane-resize]) {
1499
+ position: absolute;
1500
+ inset-block: 0;
1501
+ inset-inline-start: -3px;
1502
+ inline-size: 7px;
1503
+ cursor: col-resize;
1504
+ touch-action: none;
1505
+ user-select: none;
1506
+ }
1507
+ /* A hover/focus TINT, not a painted bar: the seam's rule stays the visible
1508
+ line, and the strip announces itself only when pointed at — the
1509
+ hover-reveal register the row controls in this section follow. */
1510
+ :where([data-pretable-pane-resize]:hover),
1511
+ :where([data-pretable-pane-resize]:active) {
1512
+ background: var(--pretable-bg-hover);
1513
+ }
1514
+ :where([data-pretable-pane-resize]:focus-visible) {
1515
+ outline: 2px solid var(--pretable-focus-ring);
1516
+ outline-offset: -2px;
1517
+ }
1477
1518
  :where([data-pretable-tool-section]) {
1478
1519
  display: flex;
1479
1520
  flex-direction: column;
@@ -2172,5 +2213,28 @@
2172
2213
  height: 24px;
2173
2214
  transform: translate(-50%, -50%);
2174
2215
  }
2216
+
2217
+ /* WCAG 2.5.8 for the pane's resize seam, bought with the same
2218
+ transparent out-of-flow ::after as the row controls above — the drawn
2219
+ strip stays 7px so the seam reads as a seam, and the missing 17px
2220
+ come from a box centred on it. CENTRED, unlike the header's
2221
+ right-anchored menu box, and that is a judged trade rather than an
2222
+ oversight: the ~8px that land pane-side overlap only the section's
2223
+ padding gutter (the row grips start 8px in and carry 24px targets of
2224
+ their own), and the grid-side pixels cover no target at all on a
2225
+ coarse pointer, where the scrollbar is an overlay. The header REMOVED
2226
+ its 4px column-resize strip on coarse pointers; this one is kept and
2227
+ inflated instead because a full-height seam can actually be acquired
2228
+ by a finger — the header strip's problem was 4px inside a column, not
2229
+ resizing itself. */
2230
+ :where([data-pretable-pane-resize])::after {
2231
+ content: "";
2232
+ position: absolute;
2233
+ top: 0;
2234
+ bottom: 0;
2235
+ left: 50%;
2236
+ width: 24px;
2237
+ transform: translateX(-50%);
2238
+ }
2175
2239
  }
2176
2240
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pretable/ui",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "CSS themes, tokens, and grid styles for Pretable.",
5
5
  "license": "MIT",
6
6
  "repository": {