@ai-matrx/design-system 0.60.1 → 0.60.7

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,52 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.60.7
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/design-system/v0.60.6..npm/design-system/v0.60.7 -- apps/shared/design-system`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.60.6
10
+
11
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
12
+ `git diff npm/design-system/v0.60.1..npm/design-system/v0.60.6 -- apps/shared/design-system`).
13
+ No source changes intended and no consumer action required.
14
+
15
+ ## 0.60.5
16
+
17
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
18
+ `git diff npm/design-system/v0.60.1..npm/design-system/v0.60.5 -- apps/shared/design-system`).
19
+ No source changes intended and no consumer action required.
20
+
21
+ ## 0.60.4
22
+
23
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
24
+ `git diff npm/design-system/v0.60.1..npm/design-system/v0.60.4 -- apps/shared/design-system`).
25
+ No source changes intended and no consumer action required.
26
+
27
+ ## 0.60.3
28
+
29
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
30
+ `git diff npm/design-system/v0.60.1..npm/design-system/v0.60.3 -- apps/shared/design-system`).
31
+ No source changes intended and no consumer action required.
32
+
33
+ ## 0.60.2
34
+ ### Unreleased
35
+
36
+ - **THE DESKTOP STANDARD (`./desktop`, `./desktop.css`, `./desktop/lint`).** An opt-in macOS-class
37
+ layer for desktop apps (Matrx 2): the named scale (text styles, label levels, surfaces, fills,
38
+ tint, system colours, 22/28/32 controls, 24/28/36/48 rows, 16 px icons, 6/10/12 radii) and the
39
+ components built only from it — Text, Button, IconButton, TextField, SearchField, TextArea,
40
+ Select, Segmented, Page, PageHeader, Toolbar, Section, Row, DataTable, SourceList, StateView,
41
+ Banner, Meter, Tag, StatusLight, Kbd, Spinner, plus display formatters. `./desktop/lint` is the
42
+ ESLint plugin that holds desktop apps to it. Rules: `src/desktop/DESKTOP.md`. Guard:
43
+ `src/desktop/desktop-law.test.ts`.
44
+
45
+ ### Consumer action
46
+
47
+ - None for the web: nothing loads `desktop.css` unless a host imports it; no existing component
48
+ changed.
49
+
3
50
  ## 0.60.1
4
51
 
5
52
  - **A declared actions column is as wide as its controls.** A `customActions` column with no
@@ -37278,7 +37278,7 @@ function GenericTablePagination({
37278
37278
  children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChevronLeft, { className: "h-5 w-5" })
37279
37279
  }
37280
37280
  ),
37281
- !unknownTotal && getPageNumbers(3).map((page) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
37281
+ (unknownTotal ? [currentPage] : getPageNumbers(3)).map((page) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
37282
37282
  PaginationAction,
37283
37283
  {
37284
37284
  HostAction: host.ToolbarAction,
@@ -37288,13 +37288,15 @@ function GenericTablePagination({
37288
37288
  disabledHint: isFetching ? "Loading source page" : `Already on page ${page}`,
37289
37289
  visibilityClassName: "hidden",
37290
37290
  fallbackClassName: page === currentPage ? pageActiveButtonClassName : pageButtonClassName,
37291
- onClick: () => onPageChange(page),
37292
- disabled: isFetching || totalPages <= 1,
37291
+ onClick: () => {
37292
+ if (!unknownTotal) onPageChange(page);
37293
+ },
37294
+ disabled: Boolean(unknownTotal) || isFetching || totalPages <= 1,
37293
37295
  children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: page })
37294
37296
  },
37295
37297
  `mobile-${page}`
37296
37298
  )),
37297
- !unknownTotal && getPageNumbers().map((page) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
37299
+ (unknownTotal ? [currentPage] : getPageNumbers()).map((page) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
37298
37300
  PaginationAction,
37299
37301
  {
37300
37302
  HostAction: host.ToolbarAction,
@@ -37304,8 +37306,10 @@ function GenericTablePagination({
37304
37306
  disabledHint: isFetching ? "Loading source page" : `Already on page ${page}`,
37305
37307
  visibilityClassName: "hidden sm:inline-flex",
37306
37308
  fallbackClassName: currentPage === page ? pageActiveButtonClassName : pageButtonClassName,
37307
- onClick: () => onPageChange(page),
37308
- disabled: isFetching || totalPages <= 1,
37309
+ onClick: () => {
37310
+ if (!unknownTotal) onPageChange(page);
37311
+ },
37312
+ disabled: Boolean(unknownTotal) || isFetching || totalPages <= 1,
37309
37313
  children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: page })
37310
37314
  },
37311
37315
  `desktop-${page}`
@@ -37323,17 +37327,19 @@ function GenericTablePagination({
37323
37327
  children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChevronRight, { className: "h-5 w-5" })
37324
37328
  }
37325
37329
  ),
37326
- !unknownTotal && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
37330
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
37327
37331
  PaginationAction,
37328
37332
  {
37329
37333
  HostAction: host.ToolbarAction,
37330
37334
  compact,
37331
37335
  ariaLabel: "Last page",
37332
- disabledHint: isFetching ? "Loading source page" : "Already on the last page",
37336
+ disabledHint: unknownTotal ? "Last page is unknown" : isFetching ? "Loading source page" : "Already on the last page",
37333
37337
  visibilityClassName: "hidden sm:inline-flex",
37334
37338
  fallbackClassName: navButtonClassName,
37335
- onClick: () => onPageChange(totalPages),
37336
- disabled: isLastPageDisabled,
37339
+ onClick: () => {
37340
+ if (!unknownTotal) onPageChange(totalPages);
37341
+ },
37342
+ disabled: Boolean(unknownTotal) || isLastPageDisabled,
37337
37343
  children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChevronsRight, { className: "h-5 w-5" })
37338
37344
  }
37339
37345
  )