hisd3-ui-kit 5.5.0 → 5.5.2

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
@@ -142,7 +142,7 @@ const menuItems = [
142
142
  | `HISD3Sidebar` | App shell (see *Scrolling* below): brand block, grouped menu with accent bar on the active route, account dropdown (Settings / Logout with confirm), collapsible, optional top-nav mode (`layoutTop`). `menuItems` accept `{ key, path, name, icon, children, group, hideInMenu, disabled }`. `renderMenuLink` lets you plug in react-router's `<Link>`. Props `bareContent` + `hideHeaderBar` hand the header over to `HISD3PageHeader`. `collapseTrigger` places the collapse control: `"edge"` (default) floats a round chevron on the sidebar's right edge, level with the top bar — it works even when the top bar is hidden, and `collapseTriggerOffset` moves it down — `"header"` puts a square button in the shell's own top bar, `"none"` renders neither. |
143
143
  | `HISD3PageHeader` / `HISD3PageBody` | Top bar (breadcrumb left, actions right) that stays pinned while the page scrolls, plus a large title + subtitle that scrolls away; `HISD3PageBody` is the matching padded content area. |
144
144
  | `HISD3PageStatus` | A whole-page status in place of a screen: `status` `"404"` (a page or record that does not exist), `"403"` (one the person may not open) or `"error"` (one that failed to load). One quiet icon instead of antd's coloured illustrations, which ignore the theme. The copy is the app's: `title`, `subTitle`, and `extra` with the way out, usually a primary button back to the list, or Retry for an error. |
145
- | `HISD3Table<T>` | antd `Table` restyled compactly — 45px rows, 14px cell text, uppercase 12px headers in the secondary text colour, hairline row rules. On the page it sits on a white panel with a hairline edge and its cells inset from it; inside a card, a drawer or a modal it lies flat on that surface. A fixed column takes the table's surface and ends in a 1px rule, not a shadow. antd's own `size="small"` tightens it further with the HISD3 pagination bar: "Total N items", square page buttons, page-size toggle. Pass `pagination={{ current, pageSize, total, onChange, pageSizeOptions?, hidePageSize? }}` or `false`. Optional `footer` strip. Cell helper classes: `hisd3-cell-primary`, `hisd3-cell-link`, `hisd3-cell-muted`. |
145
+ | `HISD3Table<T>` | antd `Table` restyled compactly — 45px rows, 14px cell text, uppercase 12px headers in the secondary text colour, row rules a step darker than the structural border. On the page it sits on a white panel with a hairline edge and its cells inset from it; inside a card, a drawer or a modal it lies flat on that surface. A fixed column takes the table's surface and ends in a 1px rule, not a shadow. antd's own `size="small"` tightens it further with the HISD3 pagination bar: "Total N items", square page buttons, page-size toggle. Pass `pagination={{ current, pageSize, total, onChange, pageSizeOptions?, hidePageSize? }}` or `false`; a list opens at `HISD3_PAGE_SIZE` (10) with the `HISD3_PAGE_SIZES` buttons. Optional `footer` strip. Cell helper classes: `hisd3-cell-primary`, `hisd3-cell-link`, `hisd3-cell-muted`. |
146
146
  | `HISD3Tabs` | Underlined filter tabs; each item may carry a `count`. |
147
147
  | `HISD3Tag` | Uppercase status pill, 12px on a 24px pill. `variant`: `neutral` (grey, e.g. ACTIVE / IN PATIENT), `soft` (primary tint, e.g. ER PATIENT), `outline` (2px primary border, e.g. OUT PATIENT), `solid`. `tone`: `primary` \| `success` \| `warning` \| `danger` \| `default`. |
148
148
  | `HISD3Button` | `variant`: `primary` (filled), `secondary` (default, dark 2px outline), `ghost`, `danger`. Accepts all antd `Button` props (`icon`, `size`, `loading`, …). |
@@ -404,6 +404,27 @@ again — and the instance unmounts once the animation finishes.
404
404
 
405
405
  ## Migrating
406
406
 
407
+ ### from 5.5.1
408
+
409
+ Nothing to change. 5.5.2 darkens the rule between a table's rows and under
410
+ its heading (`--hisd3-table-rule`, `HISD3_BORDER_PRESETS.*.tableRule`:
411
+ #CFCAC2 light, #434240 dark). Since 5.3.0 a table sits on a white panel,
412
+ where the old secondary hairline was a 2% step and rows floated between
413
+ lines nobody could see. The panel's own edge stays the hairline, so the
414
+ table still sits flat on the page; the fixed-column edge takes the same
415
+ rule as the rows.
416
+
417
+ It also names the page size a list opens at: `HISD3_PAGE_SIZE` (10) and
418
+ the pager's buttons `HISD3_PAGE_SIZES` ([10, 20, 50]). A list that started
419
+ at 20 should start at 10: ten rows are a screen, and the pager is in reach.
420
+
421
+ ### from 5.5.0
422
+
423
+ Nothing to change. 5.5.1 lets the `"sheet"` sign-in fill the window inside
424
+ the page's 24px margin (it was capped at 1240×760, which left the ground
425
+ showing on a wide monitor), and moves the module's logo and name from the
426
+ form's top corner to just above the title.
427
+
407
428
  ### from 5.4.0
408
429
 
409
430
  Nothing to change. 5.5.0 adds `HISD3LoginPage`'s `variant="sheet"`: the