@still-void/ui 3.3.0 → 3.4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @still-void/ui
2
2
 
3
+ ## 3.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#26](https://github.com/KalleoPinheiro/still-void/pull/26) [`481c99c`](https://github.com/KalleoPinheiro/still-void/commit/481c99c3dfacfc17ba2b7aa3b9f0304245df36b8) Thanks [@KalleoPinheiro](https://github.com/KalleoPinheiro)! - Narrow and touch viewports:
8
+
9
+ - `Table` accepts `stack`: below 40rem each row renders as a block of label/value pairs. Pass the column name to each cell with the new `TableCell` `label` prop (rendered as `data-label`). The header row is hidden visually and stays available to assistive technology. At 40rem and up the table renders as before.
10
+ - On `(width < 40rem), (pointer: coarse)`, `.sv-btn` gets `min-height` and `min-width` of 44px, `.sv-field` gets `min-height: 44px`, `.sv-tabs__trigger` gets 44x44px, a `<label>` wrapping a `Checkbox` gets `min-height: 44px` (the checkbox keeps its size; the label is the target), `.sv-pagination__link` gets 44x44px, and `.sv-tabs__list` grows to fit its triggers and scrolls horizontally inside itself instead of widening the page. This meets WCAG 2.5.5 touch targets. Pointer-fine desktop keeps the current sizes.
11
+ - Fix: `.sv-layout` uses `grid-template-columns: minmax(0, 1fr)` so its column no longer grows to its content's min-content and pushes narrow pages sideways.
12
+ - Below 40rem, `Hero`'s title uses the headline step (`--sv-text-2xl`, 1.75rem) instead of the display step, so a phone shows the page's content above the fold. No token value changes.
13
+ - Fix: `TabsContent` stretches to the width of `Tabs` (`align-self: stretch`); the root's `align-items: flex-start` was shrinking panels to their content's min-content width.
14
+
15
+ ## 3.3.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#24](https://github.com/KalleoPinheiro/still-void/pull/24) [`51b101d`](https://github.com/KalleoPinheiro/still-void/commit/51b101dfdcb70ac8573101d2f3faabfb8277f5a0) Thanks [@KalleoPinheiro](https://github.com/KalleoPinheiro)! - Fix `.sv-app-sidebar__label` shipping a Sora/1.125rem/600 default that fought whatever it wrapped and violated the Sparse-Display Rule (Sora never sets label/body text) the moment a consumer applied the class to ordinary nav-item text, as the App Sidebar Storybook demo did. The class now carries no typography of its own — it only participates in the collapsed-state hiding rule — and inherits font from whatever it wraps, as intended.
20
+
3
21
  ## 3.3.0
4
22
 
5
23
  ### Minor Changes
@@ -1231,7 +1231,14 @@ var tableClasses = {
1231
1231
  // src/components/ui/table.tsx
1232
1232
  var import_jsx_runtime20 = require("react/jsx-runtime");
1233
1233
  var Table = React17.forwardRef(
1234
- ({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: cn(tableClasses.container, containerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("table", { className: cn(table(), className), ref, ...props }) })
1234
+ ({ className, containerClassName, stack, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: cn(tableClasses.container, containerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1235
+ "table",
1236
+ {
1237
+ className: cn(table(), stack && "sv-table--stack", className),
1238
+ ref,
1239
+ ...props
1240
+ }
1241
+ ) })
1235
1242
  );
1236
1243
  Table.displayName = "Table";
1237
1244
  var TableHeader = React17.forwardRef(
@@ -1255,7 +1262,15 @@ var TableHead = React17.forwardRef(
1255
1262
  );
1256
1263
  TableHead.displayName = "TableHead";
1257
1264
  var TableCell = React17.forwardRef(
1258
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: cn(tableClasses.td, className), ref, ...props })
1265
+ ({ className, label, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1266
+ "td",
1267
+ {
1268
+ className: cn(tableClasses.td, className),
1269
+ "data-label": label,
1270
+ ref,
1271
+ ...props
1272
+ }
1273
+ )
1259
1274
  );
1260
1275
  TableCell.displayName = "TableCell";
1261
1276
  var TableCaption = React17.forwardRef(