@jirawatpyk/aura-react 5.83.0 → 5.84.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/README.md CHANGED
@@ -248,6 +248,10 @@ DataTable with sort and page in the URL (4.17): `onStateChange={({ sort, page })
248
248
  - **Time zone**: `timeZone` on AuraProvider, DatePicker, DateRangePicker and Calendar decides "today" (the marker, `min`/`max="today"`, the first month shown); or pass `today` as an ISO date. `todayIn('Asia/Bangkok')` is exported from the root and `/server`.
249
249
  - **Toasts** queue past three instead of dropping: six in a row all show, in order, three at a time.
250
250
 
251
+ ## 5.84 — Chamber-OS 197 (cursor Pagination without Previous)
252
+
253
+ - **Pagination `mode="cursor"` `showPrevious`** (#197): default `true`; `false` leaves Previous out entirely, as `showFirst={false}` does First — for a list that only goes forward (keyset, newest first), where a disabled Previous could never become live. The nav then holds Next (and First when shown) and the `status`.
254
+
251
255
  ## 5.83 — Chamber-OS 195–196 (Combobox announcements, Alert dismissLabel)
252
256
 
253
257
  - **Combobox status region** (#195): one `role="status"` region is part of the field for its whole life (beside the input, so inside a Dialog too, where the portaled list sits outside the modal) and only its text changes. Closed: empty. Open: the loading text, then the empty text or — with `onSearch`, once a search has come back (`loading` back to `false` after the person typed) — the result count ("12 results", the `results` string in EN, TH, SV). The count needs a managed `loading` prop. An `onSearch` field says nothing before the person types (an empty server list doesn't say "No matches" on open). Without `onSearch`, "no matches" and "keep typing" are the same words as before, now announced reliably. A region inserted already holding text is often not announced (NVDA, VoiceOver), which is why the old line was mostly silent. The visible note is unchanged and hidden from screen readers, which hear the region. A test that finds the note by its words (`getByText('No matches')`) now matches the region too: scope it to `.aura-combo__note`, or use `getByRole('status')`.
@@ -10948,7 +10948,7 @@ window.Aura = (() => {
10948
10948
  "aria-label": props.label || t.pagination
10949
10949
  },
10950
10950
  props.status != null && props.status !== false && props.status !== "" ? /* @__PURE__ */ React65.createElement("span", { className: "aura-pagination__status" }, props.status) : null,
10951
- /* @__PURE__ */ React65.createElement("span", { className: "aura-pagination__steps" }, props.showFirst === false ? null : step("first", props.firstHref, props.onFirst, props.hasFirst, t.firstPage, void 0, null, false), step(
10951
+ /* @__PURE__ */ React65.createElement("span", { className: "aura-pagination__steps" }, props.showFirst === false ? null : step("first", props.firstHref, props.onFirst, props.hasFirst, t.firstPage, void 0, null, false), props.showPrevious === false ? null : step(
10952
10952
  "prev",
10953
10953
  props.previousHref,
10954
10954
  props.onPrevious,
@@ -10930,7 +10930,7 @@ function cursorNav(props, ref, Link, t) {
10930
10930
  "aria-label": props.label || t.pagination
10931
10931
  },
10932
10932
  props.status != null && props.status !== false && props.status !== "" ? /* @__PURE__ */ React65.createElement("span", { className: "aura-pagination__status" }, props.status) : null,
10933
- /* @__PURE__ */ React65.createElement("span", { className: "aura-pagination__steps" }, props.showFirst === false ? null : step("first", props.firstHref, props.onFirst, props.hasFirst, t.firstPage, void 0, null, false), step(
10933
+ /* @__PURE__ */ React65.createElement("span", { className: "aura-pagination__steps" }, props.showFirst === false ? null : step("first", props.firstHref, props.onFirst, props.hasFirst, t.firstPage, void 0, null, false), props.showPrevious === false ? null : step(
10934
10934
  "prev",
10935
10935
  props.previousHref,
10936
10936
  props.onPrevious,
@@ -59,7 +59,7 @@ function cursorNav(props, ref, Link, t) {
59
59
  "aria-label": props.label || t.pagination
60
60
  },
61
61
  props.status != null && props.status !== false && props.status !== "" ? /* @__PURE__ */ React.createElement("span", { className: "aura-pagination__status" }, props.status) : null,
62
- /* @__PURE__ */ React.createElement("span", { className: "aura-pagination__steps" }, props.showFirst === false ? null : step("first", props.firstHref, props.onFirst, props.hasFirst, t.firstPage, void 0, null, false), step(
62
+ /* @__PURE__ */ React.createElement("span", { className: "aura-pagination__steps" }, props.showFirst === false ? null : step("first", props.firstHref, props.onFirst, props.hasFirst, t.firstPage, void 0, null, false), props.showPrevious === false ? null : step(
63
63
  "prev",
64
64
  props.previousHref,
65
65
  props.onPrevious,
package/dist/index.d.cts CHANGED
@@ -1820,6 +1820,9 @@ export interface CursorPaginationProps {
1820
1820
  hasNext?: boolean | undefined;
1821
1821
  /** Default true. `false` leaves the First link out (a list that only goes forward). */
1822
1822
  showFirst?: boolean | undefined;
1823
+ /** 5.84 (Chamber-OS 197): default true. `false` leaves Previous out entirely — for a list that only goes forward
1824
+ * (keyset, newest first), where a disabled Previous could never become live. */
1825
+ showPrevious?: boolean | undefined;
1823
1826
  /** A line at the start, e.g. "Showing 50 of 1,240". Not a live region. */
1824
1827
  status?: React$1.ReactNode | undefined;
1825
1828
  /** Name of the nav. Default "Pagination". */
package/dist/index.d.ts CHANGED
@@ -1820,6 +1820,9 @@ export interface CursorPaginationProps {
1820
1820
  hasNext?: boolean | undefined;
1821
1821
  /** Default true. `false` leaves the First link out (a list that only goes forward). */
1822
1822
  showFirst?: boolean | undefined;
1823
+ /** 5.84 (Chamber-OS 197): default true. `false` leaves Previous out entirely — for a list that only goes forward
1824
+ * (keyset, newest first), where a disabled Previous could never become live. */
1825
+ showPrevious?: boolean | undefined;
1823
1826
  /** A line at the start, e.g. "Showing 50 of 1,240". Not a live region. */
1824
1827
  status?: React$1.ReactNode | undefined;
1825
1828
  /** Name of the nav. Default "Pagination". */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jirawatpyk/aura-react",
3
- "version": "5.83.0",
3
+ "version": "5.84.0",
4
4
  "description": "AURA Design System — React components (Enterprise Standard, Human Creative). Thai-first: Buddhist-era dates, Thai collation.",
5
5
  "license": "MIT",
6
6
  "type": "module",