@wickermoney/ui-kit 0.6.0-rc.1 → 0.6.1

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
@@ -34,7 +34,9 @@ export function Summary({ net }: { net: string }) {
34
34
 
35
35
  The package entry imports its stylesheets (`tokens.css` and `components.css`)
36
36
  as a side effect, so your bundler must handle CSS imports. Vite and most modern
37
- bundlers do by default.
37
+ bundlers do by default. `package.json` declares `./dist/index.js` and `./dist/*.css` as the
38
+ only files with side effects (`sideEffects`), so a bundler can still drop the
39
+ components you never import.
38
40
 
39
41
  **Inside a Wicker Money plugin:** the host already loads these styles, so
40
42
  components in your widgets are styled with no extra setup. For your plugin's
@@ -48,9 +50,11 @@ A federated remote's emitted stylesheet is never requested.
48
50
  |---|---|
49
51
  | `Surface` | Card/panel with an optional title and header action |
50
52
  | `Button` | `variant`: `default`, `primary` or `danger` |
53
+ | `IconButton` | Square icon-only button for table rows. `icon` is one of `edit`, `delete`, `disable`, `enable`, `archive`, `history`, `end` or `balance`; `label` is required and is both the accessible name and the hover tooltip; `variant`: `default` or `danger`. Takes any other native `<button>` attribute |
54
+ | `Dialog` | Modal built on the native `<dialog>` (`showModal()`): a side drawer on a desktop window, a full-screen sheet on a phone. `title` is the heading and the accessible name; `describedBy` (optional) is the id of an element in the body that gives its accessible description; `onClose` is called on Escape, the close button or a click on the backdrop. The page behind is inert, Tab stays inside, the first input in the body gets focus, and focus returns to what opened it when it unmounts. Render it only while it is wanted |
51
55
  | `Field`, `SelectField` | Labelled form inputs; optional `hint` and `error` (wires `aria-invalid` and `aria-describedby`) |
52
56
  | `FormError` | A form-level error, shown beside the form's submit button |
53
- | `Table` | Typed table: `columns`, `rows`, `rowKey`; `numeric` columns right-align |
57
+ | `Table` | Typed table: `columns`, `rows`, `rowKey`; `numeric` columns right-align. `empty` is rendered instead of the table when `rows` is empty; `className` adds a class to the table's scroller. Optional `caption` names the table: it is rendered as a visually hidden `<caption>` that a screen reader announces. Header cells carry `scope="col"`, and a column whose `header` is an empty string (a column of row buttons) gets a visually hidden "Actions" label in its header cell, so no header cell is empty |
54
58
  | `Stat` | Label + value; `tone="auto"` colours by sign |
55
59
  | `CategoryOptions`, `orderByParent` | Category `<option>` list grouped under parents |
56
60
  | `Alert` | Inline error or notice (`role="alert"`) |
@@ -67,7 +71,44 @@ names and returns anything left over as one form-level message;
67
71
  and `hasFormErrors` cover the empty case.
68
72
 
69
73
  Every component's props type is exported alongside it (`SurfaceProps`,
70
- `TableProps<T>`, ...).
74
+ `TableProps<T>`, ...). The other exported types are `Column<T>` (a `Table` column),
75
+ `IconName`, `FieldCommon`, `GroupableCategory`, and the form-error types
76
+ `FormErrors`, `FormErrorState`, `FieldMatcher` and `ValidationIssue`.
77
+
78
+ ### Focus trap
79
+
80
+ `useFocusTrap(ref, active, options?)` keeps Tab and Shift+Tab inside the element
81
+ `ref` points at while `active` is true: Tab from the last tabbable element wraps
82
+ to the first, Shift+Tab from the first wraps to the last, and if focus is outside
83
+ the container the next Tab pulls it in. Disabled, `inert`, hidden and
84
+ `tabindex="-1"` elements are skipped. It does not move focus when it turns on
85
+ (you know what should be focused first) and it does not handle Escape. The
86
+ container must be mounted whenever `active` is true.
87
+
88
+ By default, when the trap turns off, focus goes back to whatever had it when the
89
+ trap turned on. Pass `{ restoreFocus: false }` (the `restoreFocus` field of
90
+ `FocusTrapOptions`, default `true`) when you return focus somewhere more specific
91
+ yourself.
92
+
93
+ ```tsx
94
+ import { useRef } from 'react'
95
+ import { useFocusTrap } from '@wickermoney/ui-kit'
96
+
97
+ export function Menu({ onClose }: { onClose: () => void }) {
98
+ const ref = useRef<HTMLDivElement>(null)
99
+ useFocusTrap(ref, true)
100
+ return (
101
+ <div ref={ref} role="dialog" aria-modal="true" aria-label="Menu" tabIndex={-1}
102
+ onKeyDown={(e) => { if (e.key === 'Escape') onClose() }}>
103
+ <button type="button" onClick={onClose}>Close</button>
104
+ </div>
105
+ )
106
+ }
107
+ ```
108
+
109
+ It is for hand-rolled modals that are not a native `<dialog>`. A native `<dialog>`
110
+ opened with `showModal()` already keeps focus inside, and the kit's own `Dialog`
111
+ is one.
71
112
 
72
113
  ## Design tokens
73
114
 
package/dist/Dialog.d.ts CHANGED
@@ -3,6 +3,12 @@ import { type ReactNode } from 'react';
3
3
  export interface DialogProps {
4
4
  /** Heading shown at the top; also the dialog's accessible name. */
5
5
  readonly title: string;
6
+ /**
7
+ * The id of an element inside the dialog that describes it, announced after
8
+ * the title (`aria-describedby`). Optional; use it when a short summary
9
+ * carries what a person must know before choosing.
10
+ */
11
+ readonly describedBy?: string;
6
12
  /** Called when the user dismisses the dialog: Escape, the close button or a click outside it. */
7
13
  readonly onClose: () => void;
8
14
  /** The dialog content, usually a form. */
@@ -17,5 +23,5 @@ export interface DialogProps {
17
23
  * what a hand-rolled modal gets wrong: the page behind it is inert, Tab stays
18
24
  * inside, and Escape closes it. Focus goes back to whatever opened it.
19
25
  */
20
- export declare function Dialog({ title, onClose, children }: DialogProps): import("react").JSX.Element;
26
+ export declare function Dialog({ title, describedBy, onClose, children }: DialogProps): import("react").JSX.Element;
21
27
  //# sourceMappingURL=Dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../src/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEhE,gCAAgC;AAChC,MAAM,WAAW,WAAW;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,iGAAiG;IACjG,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAA;IAC5B,0CAA0C;IAC1C,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,WAAW,+BAsC/D"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../src/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEhE,gCAAgC;AAChC,MAAM,WAAW,WAAW;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,iGAAiG;IACjG,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAA;IAC5B,0CAA0C;IAC1C,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,WAAW,+BAuC5E"}
package/dist/Dialog.js CHANGED
@@ -9,7 +9,7 @@ import { useEffect, useId, useRef } from 'react';
9
9
  * what a hand-rolled modal gets wrong: the page behind it is inert, Tab stays
10
10
  * inside, and Escape closes it. Focus goes back to whatever opened it.
11
11
  */
12
- export function Dialog({ title, onClose, children }) {
12
+ export function Dialog({ title, describedBy, onClose, children }) {
13
13
  const ref = useRef(null);
14
14
  const titleId = useId();
15
15
  // A drag that starts inside the dialog (selecting text in an input) and ends
@@ -29,7 +29,7 @@ export function Dialog({ title, onClose, children }) {
29
29
  }
30
30
  return () => { opener?.focus(); };
31
31
  }, []);
32
- return (_jsxs("dialog", { ref: ref, className: "wm-dialog", "aria-labelledby": titleId, onClose: onClose, onMouseDown: (e) => { pressedBackdrop.current = e.target === e.currentTarget; }, onClick: (e) => { if (pressedBackdrop.current && e.target === e.currentTarget)
32
+ return (_jsxs("dialog", { ref: ref, className: "wm-dialog", "aria-labelledby": titleId, "aria-describedby": describedBy, onClose: onClose, onMouseDown: (e) => { pressedBackdrop.current = e.target === e.currentTarget; }, onClick: (e) => { if (pressedBackdrop.current && e.target === e.currentTarget)
33
33
  onClose(); }, children: [_jsxs("div", { className: "wm-dialog__header", children: [_jsx("h2", { className: "wm-dialog__title", id: titleId, children: title }), _jsx("button", { type: "button", className: "wm-btn wm-dialog__close", "aria-label": "Close", onClick: onClose, children: "\u00D7" })] }), _jsx("div", { className: "wm-dialog__body", children: children })] }));
34
34
  }
35
35
  //# sourceMappingURL=Dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../src/Dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAkB,MAAM,OAAO,CAAA;AAYhE;;;;;;;;GAQG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAe;IAC9D,MAAM,GAAG,GAAG,MAAM,CAAoB,IAAI,CAAC,CAAA;IAC3C,MAAM,OAAO,GAAG,KAAK,EAAE,CAAA;IACvB,6EAA6E;IAC7E,6EAA6E;IAC7E,6CAA6C;IAC7C,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IAErC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAA;QAC1B,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,YAAY,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAA;QAC5F,IAAI,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACpC,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,UAAU;gBAAE,MAAM,CAAC,SAAS,EAAE,CAAA;;gBACzD,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;YACpC,0EAA0E;YAC1E,MAAM,CAAC,aAAa,CAAc,+CAA+C,CAAC,EAAE,KAAK,EAAE,CAAA;QAC7F,CAAC;QACD,OAAO,GAA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AAC,OAAO,EAAE,OAAO,uBAEpF,IACL,EACN,cAAK,SAAS,EAAC,iBAAiB,YAAE,QAAQ,GAAO,IAC1C,CACV,CAAA;AACH,CAAC"}
package/dist/Table.d.ts CHANGED
@@ -45,7 +45,8 @@ export interface TableProps<T> {
45
45
  * `scope="col"`, and a column with an empty string header (a column of row
46
46
  * buttons) gets a visually hidden "Actions" label so no header cell is empty.
47
47
  * That label is in the `<th>` only; `data-label` stays unset for it, so the
48
- * phone card layouts do not print it.
48
+ * phone card layouts do not print it. The scroller is `position: relative` so
49
+ * that the label is clipped with the table instead of widening the page.
49
50
  */
50
51
  export declare function Table<T>({ columns, rows, rowKey, empty, className, caption }: TableProps<T>): import("react").JSX.Element;
51
52
  //# sourceMappingURL=Table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../src/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,+CAA+C;AAC/C,MAAM,WAAW,MAAM,CAAC,CAAC;IACvB,wCAAwC;IACxC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,8EAA8E;IAC9E,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,oCAAoC;IACpC,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,SAAS,CAAA;CACvC;AAED,+BAA+B;AAC/B,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,4CAA4C;IAC5C,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;IACtC,+BAA+B;IAC/B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,CAAA;IAC3B,oDAAoD;IACpD,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,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QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,+BAkC3F"}
package/dist/Table.js CHANGED
@@ -7,7 +7,8 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
7
7
  * `scope="col"`, and a column with an empty string header (a column of row
8
8
  * buttons) gets a visually hidden "Actions" label so no header cell is empty.
9
9
  * That label is in the `<th>` only; `data-label` stays unset for it, so the
10
- * phone card layouts do not print it.
10
+ * phone card layouts do not print it. The scroller is `position: relative` so
11
+ * that the label is clipped with the table instead of widening the page.
11
12
  */
12
13
  export function Table({ columns, rows, rowKey, empty, className, caption }) {
13
14
  if (rows.length === 0 && empty !== undefined)
package/dist/Table.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","sourceRoot":"","sources":["../src/Table.tsx"],"names":[],"mappings":";AA0CA;;;;;;;;;GASG;AACH,MAAM,UAAU,KAAK,CAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAiB;IAC1F,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,4BAAG,KAAK,GAAI,CAAA;IACjE,OAAO,CACL,cAAK,SAAS,EAAE,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,oBAAoB,SAAS,EAAE,YAC5F,iBAAO,SAAS,EAAC,UAAU,aACxB,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAS,SAAS,EAAC,oB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AG,CAAC,CAWf,CACN,CAAC,GACI,IACF,GACJ,CACP,CAAA;AACH,CAAC"}
@@ -60,7 +60,11 @@
60
60
  }
61
61
  .wm-table th { font-size: 12px; color: var(--wm-text-muted); font-weight: 600; }
62
62
  .wm-table td.wm-num, .wm-table th.wm-num { text-align: right; font-family: var(--wm-mono); }
63
- .wm-table__scroll { overflow-x: auto; }
63
+ /* Positioned so that the visually hidden "Actions" header label (position:
64
+ absolute, so it keeps its place in the unwrapped table) is clipped here with
65
+ the rest of the table. Without it the label sat past the scroller's edge and
66
+ made the whole page scroll sideways whenever a table was wider than its room. */
67
+ .wm-table__scroll { overflow-x: auto; position: relative; }
64
68
 
65
69
  .wm-stat__label { font-size: 12px; color: var(--wm-text-muted); }
66
70
  .wm-stat__value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wickermoney/ui-kit",
3
- "version": "0.6.0-rc.1",
3
+ "version": "0.6.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,11 +40,11 @@
40
40
  "devDependencies": {
41
41
  "@testing-library/react": "^16.3.3",
42
42
  "@types/react": "^19.3.0",
43
- "jsdom": "30.1.2",
44
- "react": "^19.3.0",
45
- "react-dom": "^19.3.0",
43
+ "jsdom": "30.1.3",
44
+ "react": "^19.3.1",
45
+ "react-dom": "^19.3.1",
46
46
  "typescript": "^6.0.3",
47
- "vitest": "^5.0.3"
47
+ "vitest": "^5.0.5"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"