@orianatech/pire 2.0.0 → 2.1.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.
Files changed (60) hide show
  1. package/dist/components/core/Button.d.cts +12 -0
  2. package/dist/components/core/Button.d.ts +12 -0
  3. package/dist/components/core/Button.d.ts.map +1 -1
  4. package/dist/components/core/ComingSoonMark.d.cts +39 -0
  5. package/dist/components/core/ComingSoonMark.d.ts +40 -0
  6. package/dist/components/core/ComingSoonMark.d.ts.map +1 -0
  7. package/dist/components/data/DataTable.d.cts +43 -3
  8. package/dist/components/data/DataTable.d.ts +43 -3
  9. package/dist/components/data/DataTable.d.ts.map +1 -1
  10. package/dist/components/data/Timeline.d.cts +1 -1
  11. package/dist/components/data/Timeline.d.ts +1 -1
  12. package/dist/components/data/Timeline.d.ts.map +1 -1
  13. package/dist/components/feedback/Toast.d.ts.map +1 -1
  14. package/dist/components/forms/ComboBox.d.ts.map +1 -1
  15. package/dist/components/forms/FileUpload.d.cts +7 -1
  16. package/dist/components/forms/FileUpload.d.ts +7 -1
  17. package/dist/components/forms/FileUpload.d.ts.map +1 -1
  18. package/dist/components/forms/FormField.d.ts.map +1 -1
  19. package/dist/components/forms/MultiComboBox.d.ts.map +1 -1
  20. package/dist/components/forms/TextArea.d.cts +1 -3
  21. package/dist/components/forms/TextArea.d.ts +1 -3
  22. package/dist/components/forms/TextArea.d.ts.map +1 -1
  23. package/dist/components/layout/SelectionBar.d.cts +31 -4
  24. package/dist/components/layout/SelectionBar.d.ts +31 -4
  25. package/dist/components/layout/SelectionBar.d.ts.map +1 -1
  26. package/dist/components/navigation/Breadcrumb.d.cts +12 -2
  27. package/dist/components/navigation/Breadcrumb.d.ts +12 -2
  28. package/dist/components/navigation/Breadcrumb.d.ts.map +1 -1
  29. package/dist/components/navigation/Pagination.d.ts.map +1 -1
  30. package/dist/components/navigation/Ribbon.d.cts +27 -0
  31. package/dist/components/navigation/Ribbon.d.ts +27 -0
  32. package/dist/components/navigation/Ribbon.d.ts.map +1 -1
  33. package/dist/components/navigation/ShellBar.d.cts +21 -6
  34. package/dist/components/navigation/ShellBar.d.ts +21 -6
  35. package/dist/components/navigation/ShellBar.d.ts.map +1 -1
  36. package/dist/components/navigation/Tabs.d.ts.map +1 -1
  37. package/dist/components/patterns/AppLauncher.d.ts.map +1 -1
  38. package/dist/components/patterns/ConfirmDialog.d.ts.map +1 -1
  39. package/dist/components/patterns/FileDropZone.d.ts.map +1 -1
  40. package/dist/components/patterns/SidePanel.d.cts +17 -3
  41. package/dist/components/patterns/SidePanel.d.ts +17 -3
  42. package/dist/components/patterns/SidePanel.d.ts.map +1 -1
  43. package/dist/components/patterns/ValueHelpDialog.d.ts.map +1 -1
  44. package/dist/components/utils/useLoadMoreOnScroll.d.cts +11 -0
  45. package/dist/components/utils/useLoadMoreOnScroll.d.ts +12 -0
  46. package/dist/components/utils/useLoadMoreOnScroll.d.ts.map +1 -0
  47. package/dist/components.css +219 -4
  48. package/dist/i18n/messages.d.cts +42 -0
  49. package/dist/i18n/messages.d.ts +42 -0
  50. package/dist/i18n/messages.d.ts.map +1 -1
  51. package/dist/index.cjs +1752 -1181
  52. package/dist/index.cjs.map +1 -1
  53. package/dist/index.d.cts +1 -1
  54. package/dist/index.d.ts +1 -1
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +1773 -1194
  57. package/dist/index.js.map +1 -1
  58. package/dist/tokens/colors.css +1 -0
  59. package/dist/tokens/themes.css +1 -0
  60. package/package.json +1 -1
@@ -12,6 +12,18 @@ export interface ButtonProps extends Omit<AriaButtonProps, 'className' | 'childr
12
12
  /** Icon slug rendered after the label. */
13
13
  iconEnd?: string;
14
14
  fullWidth?: boolean;
15
+ /**
16
+ * An action the product will have but does not have yet. Draws the button in the tertiary ink
17
+ * with a "Soon" mark after the label, keeps it **focusable** with `aria-disabled="true"`, and
18
+ * never fires `onPress` (nor submits a form).
19
+ *
20
+ * Not a kind of `isDisabled`. Disabled means "not now" — no selection, no permission, the wrong
21
+ * document state — and takes the control out of the tab order. This means "not yet", and the mark
22
+ * is the message: it has to be reachable by keyboard, announced ("Send by WhatsApp, soon"), and
23
+ * able to carry a `Tooltip` saying what the action will do. It also does not look disabled, so a
24
+ * user can tell the two apart.
25
+ */
26
+ isComingSoon?: boolean;
15
27
  className?: string;
16
28
  }
17
29
  export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -12,6 +12,18 @@ export interface ButtonProps extends Omit<AriaButtonProps, 'className' | 'childr
12
12
  /** Icon slug rendered after the label. */
13
13
  iconEnd?: string;
14
14
  fullWidth?: boolean;
15
+ /**
16
+ * An action the product will have but does not have yet. Draws the button in the tertiary ink
17
+ * with a "Soon" mark after the label, keeps it **focusable** with `aria-disabled="true"`, and
18
+ * never fires `onPress` (nor submits a form).
19
+ *
20
+ * Not a kind of `isDisabled`. Disabled means "not now" — no selection, no permission, the wrong
21
+ * document state — and takes the control out of the tab order. This means "not yet", and the mark
22
+ * is the message: it has to be reachable by keyboard, announced ("Send by WhatsApp, soon"), and
23
+ * able to carry a `Tooltip` saying what the action will do. It also does not look disabled, so a
24
+ * user can tell the two apart.
25
+ */
26
+ isComingSoon?: boolean;
15
27
  className?: string;
16
28
  }
17
29
  export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/core/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAwB,KAAK,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIlG,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,UAAU,CAAC;IAClF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;gEAC4D;IAC5D,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,YAAY,CAAC;IACzE,4EAA4E;IAC5E,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,uFAkBjB,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/core/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAwB,KAAK,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAMlG,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,UAAU,CAAC;IAClF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;gEAC4D;IAC5D,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,YAAY,CAAC;IACzE,4EAA4E;IAC5E,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,uFAgCjB,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * The "Soon" mark `Button` and `Ribbon.Command` draw after their label while `isComingSoon`.
3
+ *
4
+ * Private: the mark means nothing on its own, only beside the label of a control that is focusable
5
+ * and inert. It is drawn, never announced — the announcement is the control's name, which
6
+ * `comingSoonProps` builds whenever the label is plain text. `announce` is the fallback for a label
7
+ * that is not (an element, a formatted fragment): a hidden ", Soon" read as part of the content.
8
+ * Second best, because the hidden span is absolutely positioned and name computation pads a
9
+ * non-inline box with spaces — "Registrar cobro , Pronto".
10
+ */
11
+ export declare function ComingSoonMark({ announce }: {
12
+ announce: boolean;
13
+ }): import("react").JSX.Element;
14
+ /**
15
+ * What `isComingSoon` does to a React Aria button's props, shared so `Button` and `Ribbon.Command`
16
+ * cannot drift apart.
17
+ *
18
+ * Not `isDisabled`: that takes the control out of the tab order, and the mark is the message — a
19
+ * screen-reader user who can never reach the control never hears it, and a `Tooltip` has nothing to
20
+ * attach to. `aria-disabled` keeps it reachable while saying it does nothing. Every press handler
21
+ * is dropped rather than wrapped, and `type` is forced to `button`, because a submit button that is
22
+ * only *aria*-disabled still submits its form.
23
+ *
24
+ * `label` is the control's name as plain text — an explicit `aria-label`, or the children when they
25
+ * are a string — and comes back as `"<label>, <Soon>"`. Pass `undefined` when there is no such text,
26
+ * and render `ComingSoonMark` with `announce` instead.
27
+ */
28
+ export declare function comingSoonProps(label: string | undefined, comingSoon: string): {
29
+ 'aria-disabled': true;
30
+ 'data-coming-soon': string;
31
+ type: 'button';
32
+ onPress: undefined;
33
+ onPressStart: undefined;
34
+ onPressEnd: undefined;
35
+ onPressUp: undefined;
36
+ onPressChange: undefined;
37
+ onClick: undefined;
38
+ 'aria-label'?: string | undefined;
39
+ };
@@ -0,0 +1,40 @@
1
+ /**
2
+ * The "Soon" mark `Button` and `Ribbon.Command` draw after their label while `isComingSoon`.
3
+ *
4
+ * Private: the mark means nothing on its own, only beside the label of a control that is focusable
5
+ * and inert. It is drawn, never announced — the announcement is the control's name, which
6
+ * `comingSoonProps` builds whenever the label is plain text. `announce` is the fallback for a label
7
+ * that is not (an element, a formatted fragment): a hidden ", Soon" read as part of the content.
8
+ * Second best, because the hidden span is absolutely positioned and name computation pads a
9
+ * non-inline box with spaces — "Registrar cobro , Pronto".
10
+ */
11
+ export declare function ComingSoonMark({ announce }: {
12
+ announce: boolean;
13
+ }): import("react").JSX.Element;
14
+ /**
15
+ * What `isComingSoon` does to a React Aria button's props, shared so `Button` and `Ribbon.Command`
16
+ * cannot drift apart.
17
+ *
18
+ * Not `isDisabled`: that takes the control out of the tab order, and the mark is the message — a
19
+ * screen-reader user who can never reach the control never hears it, and a `Tooltip` has nothing to
20
+ * attach to. `aria-disabled` keeps it reachable while saying it does nothing. Every press handler
21
+ * is dropped rather than wrapped, and `type` is forced to `button`, because a submit button that is
22
+ * only *aria*-disabled still submits its form.
23
+ *
24
+ * `label` is the control's name as plain text — an explicit `aria-label`, or the children when they
25
+ * are a string — and comes back as `"<label>, <Soon>"`. Pass `undefined` when there is no such text,
26
+ * and render `ComingSoonMark` with `announce` instead.
27
+ */
28
+ export declare function comingSoonProps(label: string | undefined, comingSoon: string): {
29
+ 'aria-disabled': true;
30
+ 'data-coming-soon': string;
31
+ type: 'button';
32
+ onPress: undefined;
33
+ onPressStart: undefined;
34
+ onPressEnd: undefined;
35
+ onPressUp: undefined;
36
+ onPressChange: undefined;
37
+ onClick: undefined;
38
+ 'aria-label'?: string | undefined;
39
+ };
40
+ //# sourceMappingURL=ComingSoonMark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComingSoonMark.d.ts","sourceRoot":"","sources":["../../../src/components/core/ComingSoonMark.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,+BAUjE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM;;;UAInE,QAAQ;;;;;;;;EASjB"}
@@ -23,6 +23,16 @@ export interface DataTableColumn<T = any> {
23
23
  */
24
24
  hideLabel?: boolean;
25
25
  render?: (row: T) => React.ReactNode;
26
+ /**
27
+ * The field this cell shows while its row is being edited (`editingRowId`, `pendingRow`). Pass an
28
+ * `Input`, `Select`, `NumberField`… with `aria-label` — there is no visible label in a cell — and
29
+ * own its value yourself. A column without one keeps showing its value, or nothing on the pending
30
+ * row, which has no value yet.
31
+ *
32
+ * For the pending row it is called with `pendingRow`, which is not a full record: read nothing
33
+ * off it that the pending row does not carry.
34
+ */
35
+ renderEdit?: (row: T) => React.ReactNode;
26
36
  /**
27
37
  * Freezes the column at the start of the grid while the rest scroll horizontally. For a
28
38
  * comparison matrix — one product across thirty-four branches — where the row is unreadable
@@ -62,7 +72,15 @@ export interface DataTableProps<T extends {
62
72
  } = any> {
63
73
  /** Accessible name for the grid — required. */
64
74
  'aria-label': string;
75
+ /**
76
+ * Keep each column's `render` and `tone` functions stable across renders: define the columns
77
+ * outside the component, or memoize them. The table re-renders its rows only when they change,
78
+ * so stable columns are what make a keystroke in an editing row cost that row's fields rather
79
+ * than every cell. `renderEdit` may change freely — swap it in with a spread
80
+ * (`{ ...nameColumn, renderEdit }`) so the column's other functions keep their identity.
81
+ */
65
82
  columns: DataTableColumn<T>[];
83
+ /** Keep the array and its objects stable while nothing changed, for the same reason as `columns`. */
66
84
  rows: T[];
67
85
  /** Row height: 32 / 40 / 48px. Condensed is the analyst default. */
68
86
  density?: 'condensed' | 'regular' | 'comfortable';
@@ -116,6 +134,30 @@ export interface DataTableProps<T extends {
116
134
  expandedIds?: Array<string | number>;
117
135
  /** Swaps the body for skeleton rows derived from `columns` and `density`, keeping the header. */
118
136
  isLoading?: boolean;
137
+ /**
138
+ * The row currently being edited in place. Its `renderEdit` cells swap in for their values, focus
139
+ * goes to the first field, and every key typed into a field belongs to that field — Space types a
140
+ * space, arrows move the caret, letters do not start a row search. Enter in any field calls
141
+ * `onCommitRow`, Escape calls `onCancelRow`; the table does not leave edit mode on its own, so
142
+ * clear this (or keep it, if the save failed) in those handlers.
143
+ *
144
+ * For a 1–3 field master — brands, reasons, helpdesk categories — that has no page or dialog of
145
+ * its own. A row with more fields than that wants `SidePanel presentation="docked"` instead.
146
+ */
147
+ editingRowId?: string | number;
148
+ /**
149
+ * A new record that does not exist in `rows` yet, rendered as an editing row above them. Lets
150
+ * "New brand" add a row without inventing a placeholder id. Its handlers receive `null` as the id.
151
+ *
152
+ * After `onCommitRow(null)` focus returns to the pending row's first field, so a consumer that
153
+ * saves and passes a fresh blank `pendingRow` gives the "Enter saves and opens another" loop with
154
+ * no focus handling of its own.
155
+ */
156
+ pendingRow?: Partial<T>;
157
+ /** Enter in a field of the editing row. `null` for `pendingRow`. */
158
+ onCommitRow?: (id: string | number | null) => void;
159
+ /** Escape in a field of the editing row. `null` for `pendingRow`. */
160
+ onCancelRow?: (id: string | number | null) => void;
119
161
  /** Skeleton row count. Defaults to the current `rows` length, or 5 when there are none. */
120
162
  loadingRowCount?: number;
121
163
  /** Overrides the dictionary's `dataTableLoading`, announced while the body is a skeleton. */
@@ -124,8 +166,6 @@ export interface DataTableProps<T extends {
124
166
  className?: string;
125
167
  style?: React.CSSProperties;
126
168
  }
127
- /** Records grid. React Aria supplies roving focus, type-ahead, shift-click ranges and
128
- * screen-reader row/column announcements — do not hand-roll a <table> in product code. */
129
169
  export declare function DataTable<T extends {
130
170
  id: string | number;
131
- }>({ columns, rows, density, selectable, selected, onSelectionChange, hideSelectAll, sort, onSortChange, onRowAction, stickyHeader, emptyLabel, isLoading, loadingRowCount, loadingLabel, footer, rowProps, renderExpanded, expandedIds, className, style, ...rest }: DataTableProps<T>): React.JSX.Element;
171
+ }>({ columns, rows, density, selectable, selected, onSelectionChange, hideSelectAll, sort, onSortChange, onRowAction, stickyHeader, emptyLabel, isLoading, loadingRowCount, loadingLabel, footer, rowProps, renderExpanded, expandedIds, editingRowId, pendingRow, onCommitRow, onCancelRow, className, style, ...rest }: DataTableProps<T>): React.JSX.Element;
@@ -23,6 +23,16 @@ export interface DataTableColumn<T = any> {
23
23
  */
24
24
  hideLabel?: boolean;
25
25
  render?: (row: T) => React.ReactNode;
26
+ /**
27
+ * The field this cell shows while its row is being edited (`editingRowId`, `pendingRow`). Pass an
28
+ * `Input`, `Select`, `NumberField`… with `aria-label` — there is no visible label in a cell — and
29
+ * own its value yourself. A column without one keeps showing its value, or nothing on the pending
30
+ * row, which has no value yet.
31
+ *
32
+ * For the pending row it is called with `pendingRow`, which is not a full record: read nothing
33
+ * off it that the pending row does not carry.
34
+ */
35
+ renderEdit?: (row: T) => React.ReactNode;
26
36
  /**
27
37
  * Freezes the column at the start of the grid while the rest scroll horizontally. For a
28
38
  * comparison matrix — one product across thirty-four branches — where the row is unreadable
@@ -62,7 +72,15 @@ export interface DataTableProps<T extends {
62
72
  } = any> {
63
73
  /** Accessible name for the grid — required. */
64
74
  'aria-label': string;
75
+ /**
76
+ * Keep each column's `render` and `tone` functions stable across renders: define the columns
77
+ * outside the component, or memoize them. The table re-renders its rows only when they change,
78
+ * so stable columns are what make a keystroke in an editing row cost that row's fields rather
79
+ * than every cell. `renderEdit` may change freely — swap it in with a spread
80
+ * (`{ ...nameColumn, renderEdit }`) so the column's other functions keep their identity.
81
+ */
65
82
  columns: DataTableColumn<T>[];
83
+ /** Keep the array and its objects stable while nothing changed, for the same reason as `columns`. */
66
84
  rows: T[];
67
85
  /** Row height: 32 / 40 / 48px. Condensed is the analyst default. */
68
86
  density?: 'condensed' | 'regular' | 'comfortable';
@@ -116,6 +134,30 @@ export interface DataTableProps<T extends {
116
134
  expandedIds?: Array<string | number>;
117
135
  /** Swaps the body for skeleton rows derived from `columns` and `density`, keeping the header. */
118
136
  isLoading?: boolean;
137
+ /**
138
+ * The row currently being edited in place. Its `renderEdit` cells swap in for their values, focus
139
+ * goes to the first field, and every key typed into a field belongs to that field — Space types a
140
+ * space, arrows move the caret, letters do not start a row search. Enter in any field calls
141
+ * `onCommitRow`, Escape calls `onCancelRow`; the table does not leave edit mode on its own, so
142
+ * clear this (or keep it, if the save failed) in those handlers.
143
+ *
144
+ * For a 1–3 field master — brands, reasons, helpdesk categories — that has no page or dialog of
145
+ * its own. A row with more fields than that wants `SidePanel presentation="docked"` instead.
146
+ */
147
+ editingRowId?: string | number;
148
+ /**
149
+ * A new record that does not exist in `rows` yet, rendered as an editing row above them. Lets
150
+ * "New brand" add a row without inventing a placeholder id. Its handlers receive `null` as the id.
151
+ *
152
+ * After `onCommitRow(null)` focus returns to the pending row's first field, so a consumer that
153
+ * saves and passes a fresh blank `pendingRow` gives the "Enter saves and opens another" loop with
154
+ * no focus handling of its own.
155
+ */
156
+ pendingRow?: Partial<T>;
157
+ /** Enter in a field of the editing row. `null` for `pendingRow`. */
158
+ onCommitRow?: (id: string | number | null) => void;
159
+ /** Escape in a field of the editing row. `null` for `pendingRow`. */
160
+ onCancelRow?: (id: string | number | null) => void;
119
161
  /** Skeleton row count. Defaults to the current `rows` length, or 5 when there are none. */
120
162
  loadingRowCount?: number;
121
163
  /** Overrides the dictionary's `dataTableLoading`, announced while the body is a skeleton. */
@@ -124,9 +166,7 @@ export interface DataTableProps<T extends {
124
166
  className?: string;
125
167
  style?: React.CSSProperties;
126
168
  }
127
- /** Records grid. React Aria supplies roving focus, type-ahead, shift-click ranges and
128
- * screen-reader row/column announcements — do not hand-roll a <table> in product code. */
129
169
  export declare function DataTable<T extends {
130
170
  id: string | number;
131
- }>({ columns, rows, density, selectable, selected, onSelectionChange, hideSelectAll, sort, onSortChange, onRowAction, stickyHeader, emptyLabel, isLoading, loadingRowCount, loadingLabel, footer, rowProps, renderExpanded, expandedIds, className, style, ...rest }: DataTableProps<T>): React.JSX.Element;
171
+ }>({ columns, rows, density, selectable, selected, onSelectionChange, hideSelectAll, sort, onSortChange, onRowAction, stickyHeader, emptyLabel, isLoading, loadingRowCount, loadingLabel, footer, rowProps, renderExpanded, expandedIds, editingRowId, pendingRow, onCommitRow, onCancelRow, className, style, ...rest }: DataTableProps<T>): React.JSX.Element;
132
172
  //# sourceMappingURL=DataTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../src/components/data/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgC/B;yCACyC;AACzC,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,CAAC;AAEjG,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,GAAG;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACpC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,wFAAwF;IACxF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IACrC;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,iBAAiB,GAAG,SAAS,CAAC;CAClD;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,GAAG;IACrE,+CAA+C;IAC/C,Y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AmB,EACnB,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,aAAa,EACb,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,YAAmB,EACnB,UAAU,EACV,SAAS,EACT,eAAe,EACf,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,WAAW,EACX,WAAW,EACX,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,cAAc,CAAC,CAAC,CAAC,qBA2anB"}
@@ -9,7 +9,7 @@ export interface TimelineEntry {
9
9
  }
10
10
  export interface TimelineProps extends React.HTMLAttributes<HTMLOListElement> {
11
11
  entries: TimelineEntry[];
12
- /** Newest first. Default true — audit trails read top-down from now. */
12
+ /** Reverses `entries`, for data that arrives oldest first. Audit trails read newest first. */
13
13
  reverse?: boolean;
14
14
  }
15
15
  /** Document history and audit trail: what happened, when, and who did it. */
@@ -9,7 +9,7 @@ export interface TimelineEntry {
9
9
  }
10
10
  export interface TimelineProps extends React.HTMLAttributes<HTMLOListElement> {
11
11
  entries: TimelineEntry[];
12
- /** Newest first. Default true — audit trails read top-down from now. */
12
+ /** Reverses `entries`, for data that arrives oldest first. Audit trails read newest first. */
13
13
  reverse?: boolean;
14
14
  }
15
15
  /** Document history and audit trail: what happened, when, and who did it. */
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/data/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+DAA+D;IAC/D,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,qEAAqE;IACrE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IAC3E,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,wEAAwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,6EAA6E;AAC7E,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAe,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,qBAavF"}
1
+ {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/data/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+DAA+D;IAC/D,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,qEAAqE;IACrE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IAC3E,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,8FAA8F;IAC9F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,6EAA6E;AAC7E,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAe,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,qBAavF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/feedback/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AASnD,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;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AAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,4EAA4E;IAC5E,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4GAA4G;IAC5G,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAKD;0GAC0G;AAC1G,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,UAAU,EACV,OAAY,EACZ,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,IAAW,EACX,SAAgB,EAChB,oBAAoB,EACpB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,aAAa,qBA+If"}
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  export interface PireFile {
3
3
  /** The browser's `File`. Pire uploads nothing — that is the app's job. */
4
4
  file: File;
5
- /** Object URL, only for images with `showPreview`. Revoked on unmount. */
5
+ /** Object URL, only for images with `showPreview`. Revoked once the file leaves the list. */
6
6
  previewUrl?: string;
7
7
  }
8
8
  export interface FileRejection {
@@ -57,6 +57,12 @@ export declare function screenFiles(files: File[], { maxSize, acceptedFileTypes
57
57
  accepted: File[];
58
58
  rejected: FileRejection[];
59
59
  };
60
+ /**
61
+ * Creates preview URLs and revokes each one as soon as its file leaves the list — removed,
62
+ * replaced, or dropped by a controlled consumer — and the rest on unmount. Object URLs hold the
63
+ * whole image in memory until revoked; an attachments screen stays open all day.
64
+ */
65
+ export declare function usePreviewUrls(files: PireFile[]): (file: File) => string;
60
66
  /**
61
67
  * File picker with a list of what was chosen. Pire hands back `File`s through `onChange` and
62
68
  * uploads nothing: the app owns the `FormData`, the request and the progress it reports back
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  export interface PireFile {
3
3
  /** The browser's `File`. Pire uploads nothing — that is the app's job. */
4
4
  file: File;
5
- /** Object URL, only for images with `showPreview`. Revoked on unmount. */
5
+ /** Object URL, only for images with `showPreview`. Revoked once the file leaves the list. */
6
6
  previewUrl?: string;
7
7
  }
8
8
  export interface FileRejection {
@@ -57,6 +57,12 @@ export declare function screenFiles(files: File[], { maxSize, acceptedFileTypes
57
57
  accepted: File[];
58
58
  rejected: FileRejection[];
59
59
  };
60
+ /**
61
+ * Creates preview URLs and revokes each one as soon as its file leaves the list — removed,
62
+ * replaced, or dropped by a controlled consumer — and the rest on unmount. Object URLs hold the
63
+ * whole image in memory until revoked; an attachments screen stays open all day.
64
+ */
65
+ export declare function usePreviewUrls(files: PireFile[]): (file: File) => string;
60
66
  /**
61
67
  * File picker with a list of what was chosen. Pire hands back `File`s through `onChange` and
62
68
  * uploads nothing: the app owns the `FormData`, the request and the progress it reports back
@@ -1 +1 @@
1
- {"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../src/components/forms/FileUpload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS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AAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAID,mGAAmG;AACnG,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AAED,gGAAgG;AAChG,wBAAgB,WAAW,CACzB,KAAK,EAAE,IAAI,EAAE,EACb,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAC1F;IAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAAC,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAE,CA2BjD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,OAAO,EACP,OAAO,EACP,WAAkB,EAClB,cAAc,EACd,WAAW,EACX,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAgB,EAChB,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,qBAkGjB"}
1
+ {"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../src/components/forms/FileUpload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,MAAM,WAAW,QAAQ;IACvB,0EAA0E;IAC1E,IAAI,EAAE,IAAI,CAAC;IACX,6FAA6F;IAC7F,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,MA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Aa,CAAC;CAC7B;AAID,mGAAmG;AACnG,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AAED,gGAAgG;AAChG,wBAAgB,WAAW,CACzB,KAAK,EAAE,IAAI,EAAE,EACb,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAC1F;IAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAAC,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAE,CA2BjD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAsBxE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,OAAO,EACP,OAAO,EACP,WAAkB,EAClB,cAAc,EACd,WAAW,EACX,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAgB,EAChB,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,qBA0GjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/forms/FormField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5F,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,qFAAqF;IACrF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,wDAAwD;IACxD,IAAI,CAAC,EAAE,KAA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AK,EACL,GAAG,IAAI,EACR,EAAE,kBAAkB,qBAwKpB"}
@@ -46,7 +46,5 @@ export interface TextAreaProps {
46
46
  * on every keystroke, and in a dense form it makes every field below the one being typed in jump
47
47
  * — the wrong trade in a screen the user is tabbing through. Turn it on where the content length
48
48
  * is genuinely unknown (a long free-text comment) and leave it off everywhere else. When on, the
49
- * height is only written when it actually changed, so a keystroke that does not wrap costs no
50
- * layout; and the resize grip is removed, since a manual height would be overwritten on the next
51
- * keystroke anyway. */
49
+ * resize grip is removed, since a manual height would be overwritten on the next keystroke. */
52
50
  export declare function TextArea({ label, description, help, errorMessage, size, rows, autoGrow, maxRows, fullWidth, className, style, textAreaRef, onChange, ...rest }: TextAreaProps): React.JSX.Element;
@@ -46,8 +46,6 @@ export interface TextAreaProps {
46
46
  * on every keystroke, and in a dense form it makes every field below the one being typed in jump
47
47
  * — the wrong trade in a screen the user is tabbing through. Turn it on where the content length
48
48
  * is genuinely unknown (a long free-text comment) and leave it off everywhere else. When on, the
49
- * height is only written when it actually changed, so a keystroke that does not wrap costs no
50
- * layout; and the resize grip is removed, since a manual height would be overwritten on the next
51
- * keystroke anyway. */
49
+ * resize grip is removed, since a manual height would be overwritten on the next keystroke. */
52
50
  export declare function TextArea({ label, description, help, errorMessage, size, rows, autoGrow, maxRows, fullWidth, className, style, textAreaRef, onChange, ...rest }: TextAreaProps): React.JSX.Element;
53
51
  //# sourceMappingURL=TextArea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/forms/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAA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,EAChB,SAAS,EACT,KAAK,EACL,WAAW,EACX,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,aAAa,qBAqEf"}
@@ -1,9 +1,36 @@
1
- import type * as React from 'react';
1
+ import * as React from 'react';
2
+ /** A noun in the two forms a count needs. `one` for a grammatically singular count, `other` for the
3
+ * rest — the same split `Intl.PluralRules` makes, which is what picks between them. */
4
+ export interface SelectionBarNoun {
5
+ one: string;
6
+ other: string;
7
+ }
2
8
  export interface SelectionBarProps extends React.HTMLAttributes<HTMLDivElement> {
3
9
  /** Number of selected records. The bar renders nothing at 0. */
4
10
  count: number;
5
- /** Noun for the records, singular. Default "record". */
6
- noun?: string;
11
+ /**
12
+ * The records' noun. Pass both forms — `{ one: 'orden', other: 'órdenes' }` — since a plural is
13
+ * not the singular plus an "s" in any language this library ships for.
14
+ *
15
+ * A bare string is still accepted and pluralised the old English way, by appending "s". That is
16
+ * kept so existing English screens do not change; do not use it for anything else. Defaults to
17
+ * the dictionary's `selectionBarNounOne` / `selectionBarNounOther`.
18
+ */
19
+ noun?: string | SelectionBarNoun;
20
+ /**
21
+ * Grammatical gender of `noun`, for the participle that agrees with it: "2 órdenes
22
+ * seleccionadas", "2 presupuestos seleccionados". Picks the dictionary's `…Feminine` entries.
23
+ * Default `masculine`, which is also the gender of the default noun.
24
+ */
25
+ gender?: 'masculine' | 'feminine';
26
+ /** Replaces the whole sentence, for a screen that needs a phrasing the dictionary cannot build.
27
+ * Called with the raw count; format it yourself. */
28
+ label?: (count: number) => React.ReactNode;
29
+ /** Renders the bar's own "Clear selection" button after the count. Every selection bar needs
30
+ * one, and the bar is the only place on screen that knows it is the selection being cleared. */
31
+ onClear?: () => void;
32
+ /** Overrides the dictionary's `selectionBarClear`. */
33
+ clearLabel?: string;
7
34
  /** What happens on commit — mass posting caveats belong here, not in a toast. */
8
35
  children?: React.ReactNode;
9
36
  /** Buttons, size="sm". Destructive last. */
@@ -11,4 +38,4 @@ export interface SelectionBarProps extends React.HTMLAttributes<HTMLDivElement>
11
38
  }
12
39
  /** Appears above a table once rows are selected and states exactly how many.
13
40
  * The count is announced, so keyboard users know a selection changed. */
14
- export declare function SelectionBar({ count, noun, children, actions, className, ...rest }: SelectionBarProps): React.JSX.Element | null;
41
+ export declare function SelectionBar({ count, noun, gender, label, onClear, clearLabel, children, actions, className, ...rest }: SelectionBarProps): React.JSX.Element | null;
@@ -1,9 +1,36 @@
1
- import type * as React from 'react';
1
+ import * as React from 'react';
2
+ /** A noun in the two forms a count needs. `one` for a grammatically singular count, `other` for the
3
+ * rest — the same split `Intl.PluralRules` makes, which is what picks between them. */
4
+ export interface SelectionBarNoun {
5
+ one: string;
6
+ other: string;
7
+ }
2
8
  export interface SelectionBarProps extends React.HTMLAttributes<HTMLDivElement> {
3
9
  /** Number of selected records. The bar renders nothing at 0. */
4
10
  count: number;
5
- /** Noun for the records, singular. Default "record". */
6
- noun?: string;
11
+ /**
12
+ * The records' noun. Pass both forms — `{ one: 'orden', other: 'órdenes' }` — since a plural is
13
+ * not the singular plus an "s" in any language this library ships for.
14
+ *
15
+ * A bare string is still accepted and pluralised the old English way, by appending "s". That is
16
+ * kept so existing English screens do not change; do not use it for anything else. Defaults to
17
+ * the dictionary's `selectionBarNounOne` / `selectionBarNounOther`.
18
+ */
19
+ noun?: string | SelectionBarNoun;
20
+ /**
21
+ * Grammatical gender of `noun`, for the participle that agrees with it: "2 órdenes
22
+ * seleccionadas", "2 presupuestos seleccionados". Picks the dictionary's `…Feminine` entries.
23
+ * Default `masculine`, which is also the gender of the default noun.
24
+ */
25
+ gender?: 'masculine' | 'feminine';
26
+ /** Replaces the whole sentence, for a screen that needs a phrasing the dictionary cannot build.
27
+ * Called with the raw count; format it yourself. */
28
+ label?: (count: number) => React.ReactNode;
29
+ /** Renders the bar's own "Clear selection" button after the count. Every selection bar needs
30
+ * one, and the bar is the only place on screen that knows it is the selection being cleared. */
31
+ onClear?: () => void;
32
+ /** Overrides the dictionary's `selectionBarClear`. */
33
+ clearLabel?: string;
7
34
  /** What happens on commit — mass posting caveats belong here, not in a toast. */
8
35
  children?: React.ReactNode;
9
36
  /** Buttons, size="sm". Destructive last. */
@@ -11,5 +38,5 @@ export interface SelectionBarProps extends React.HTMLAttributes<HTMLDivElement>
11
38
  }
12
39
  /** Appears above a table once rows are selected and states exactly how many.
13
40
  * The count is announced, so keyboard users know a selection changed. */
14
- export declare function SelectionBar({ count, noun, children, actions, className, ...rest }: SelectionBarProps): React.JSX.Element | null;
41
+ export declare function SelectionBar({ count, noun, gender, label, onClear, clearLabel, children, actions, className, ...rest }: SelectionBarProps): React.JSX.Element | null;
15
42
  //# sourceMappingURL=SelectionBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionBar.d.ts","sourceRoot":"","sources":["../../../src/components/layout/SelectionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iFAAiF;IACjF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,4CAA4C;IAC5C,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;0EAC0E;AAC1E,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,IAAe,EACf,QAAQ,EACR,OAAO,EACP,SAAS,EACT,GAAG,IAAI,EACR,EAAE,iBAAiB,4BAcnB"}
1
+ {"version":3,"file":"SelectionBar.d.ts","sourceRoot":"","sources":["../../../src/components/layout/SelectionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;wFACwF;AACxF,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;IACjC;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;IAClC;yDACqD;IACrD,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAC3C;qGACiG;IACjG,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,4CAA4C;IAC5C,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;0EAC0E;AAC1E,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,IAAI,EACJ,MAAoB,EACpB,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,OAAO,EACP,SAAS,EACT,GAAG,IAAI,EACR,EAAE,iBAAiB,4BA6CnB"}
@@ -1,4 +1,4 @@
1
- import type * as React from 'react';
1
+ import * as React from 'react';
2
2
  export interface BreadcrumbItem {
3
3
  id?: string;
4
4
  label: string;
@@ -8,7 +8,17 @@ export interface BreadcrumbProps {
8
8
  /** Ordered trail, current page last. The last item is never a link. */
9
9
  items: BreadcrumbItem[];
10
10
  onNavigate?: (id: string) => void;
11
+ /**
12
+ * Keeps the trail on one line however narrow its container gets. When the whole trail does not
13
+ * fit, the middle steps fold into a "…" button that opens them as a menu, keeping the first and
14
+ * current steps on screen. On a phone-narrow container the first step folds in too. The current
15
+ * step is never folded: it truncates with an ellipsis instead, its full text kept in `title`.
16
+ *
17
+ * Off by default, where the trail wraps instead. `ShellBar`'s `breadcrumb` turns it on, because
18
+ * a 48px bar has no second line to wrap onto.
19
+ */
20
+ isCollapsible?: boolean;
11
21
  className?: string;
12
22
  style?: React.CSSProperties;
13
23
  }
14
- export declare function Breadcrumb({ items, onNavigate, className, style }: BreadcrumbProps): React.JSX.Element;
24
+ export declare function Breadcrumb({ items, onNavigate, isCollapsible, className, style }: BreadcrumbProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import type * as React from 'react';
1
+ import * as React from 'react';
2
2
  export interface BreadcrumbItem {
3
3
  id?: string;
4
4
  label: string;
@@ -8,8 +8,18 @@ export interface BreadcrumbProps {
8
8
  /** Ordered trail, current page last. The last item is never a link. */
9
9
  items: BreadcrumbItem[];
10
10
  onNavigate?: (id: string) => void;
11
+ /**
12
+ * Keeps the trail on one line however narrow its container gets. When the whole trail does not
13
+ * fit, the middle steps fold into a "…" button that opens them as a menu, keeping the first and
14
+ * current steps on screen. On a phone-narrow container the first step folds in too. The current
15
+ * step is never folded: it truncates with an ellipsis instead, its full text kept in `title`.
16
+ *
17
+ * Off by default, where the trail wraps instead. `ShellBar`'s `breadcrumb` turns it on, because
18
+ * a 48px bar has no second line to wrap onto.
19
+ */
20
+ isCollapsible?: boolean;
11
21
  className?: string;
12
22
  style?: React.CSSProperties;
13
23
  }
14
- export declare function Breadcrumb({ items, onNavigate, className, style }: BreadcrumbProps): React.JSX.Element;
24
+ export declare function Breadcrumb({ items, onNavigate, isCollapsible, className, style }: BreadcrumbProps): React.JSX.Element;
15
25
  //# sourceMappingURL=Breadcrumb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/Breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,uEAAuE;IACvE,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,eAAe,qBAmBlF"}
1
+ {"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/Breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,uEAAuE;IACvE,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AA0CD,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,eAAe,qBAiHjG"}