@handamade/psi-react 0.9.1 → 0.11.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 +1 -1
- package/dist/Checkbox/Checkbox.d.ts +6 -0
- package/dist/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/Pagination/Pagination.d.ts +45 -0
- package/dist/Pagination/Pagination.d.ts.map +1 -0
- package/dist/Table/Table.d.ts +38 -0
- package/dist/Table/Table.d.ts.map +1 -0
- package/dist/Table/TableBody.d.ts +8 -0
- package/dist/Table/TableBody.d.ts.map +1 -0
- package/dist/Table/TableCell.d.ts +11 -0
- package/dist/Table/TableCell.d.ts.map +1 -0
- package/dist/Table/TableContext.d.ts +19 -0
- package/dist/Table/TableContext.d.ts.map +1 -0
- package/dist/Table/TableHead.d.ts +12 -0
- package/dist/Table/TableHead.d.ts.map +1 -0
- package/dist/Table/TableHeaderCell.d.ts +13 -0
- package/dist/Table/TableHeaderCell.d.ts.map +1 -0
- package/dist/Table/TableRow.d.ts +12 -0
- package/dist/Table/TableRow.d.ts.map +1 -0
- package/dist/Table/TableSelectionCell.d.ts +8 -0
- package/dist/Table/TableSelectionCell.d.ts.map +1 -0
- package/dist/Toast/Toast.d.ts +29 -0
- package/dist/Toast/Toast.d.ts.map +1 -0
- package/dist/Toast/ToastProvider.d.ts +34 -0
- package/dist/Toast/ToastProvider.d.ts.map +1 -0
- package/dist/Toast/ToastRegion.d.ts +42 -0
- package/dist/Toast/ToastRegion.d.ts.map +1 -0
- package/dist/Toast/useToast.d.ts +27 -0
- package/dist/Toast/useToast.d.ts.map +1 -0
- package/dist/a11y-meta.d.ts.map +1 -1
- package/dist/icons/IconAlertCircle.d.ts +7 -0
- package/dist/icons/IconAlertCircle.d.ts.map +1 -0
- package/dist/icons/IconAlertTriangle.d.ts +7 -0
- package/dist/icons/IconAlertTriangle.d.ts.map +1 -0
- package/dist/icons/IconInfo.d.ts +7 -0
- package/dist/icons/IconInfo.d.ts.map +1 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +939 -509
- package/dist/manifest.json +403 -0
- package/dist/patterns.json +84 -21
- package/dist/styles.css +1 -1
- package/docs/Checkbox.md +1 -0
- package/docs/Pagination.md +32 -0
- package/docs/Table.md +36 -0
- package/docs/TableBody.md +27 -0
- package/docs/TableCell.md +28 -0
- package/docs/TableHead.md +27 -0
- package/docs/TableHeaderCell.md +29 -0
- package/docs/TableRow.md +29 -0
- package/docs/Toast.md +51 -0
- package/docs/ToastProvider.md +39 -0
- package/docs/ToastRegion.md +39 -0
- package/llms.txt +18 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @handamade/psi-react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
28 React 19 components consuming @handamade/psi-tokens. Zero runtime dependencies, CSS Modules, full TypeScript support.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -2,6 +2,12 @@ import type { InputHTMLAttributes, Ref } from "react";
|
|
|
2
2
|
export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "placeholder"> {
|
|
3
3
|
/** Label text. */
|
|
4
4
|
children?: React.ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Accessible name when there is no visible label — a table's row-selection
|
|
7
|
+
* checkbox, say. Optional, unlike IconButton's required form (D60): a
|
|
8
|
+
* labelled checkbox is still the common case.
|
|
9
|
+
*/
|
|
10
|
+
"aria-label"?: string;
|
|
5
11
|
/** Forwarded ref to the underlying `<input type="checkbox">` element. */
|
|
6
12
|
ref?: Ref<HTMLInputElement>;
|
|
7
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGtD,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IAC3E,kBAAkB;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,yEAAyE;IACzE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED,6EAA6E;AAC7E,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,GAAG,EACH,GAAG,IAAI,EACR,EAAE,aAAa,+BAkBf"}
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGtD,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IAC3E,kBAAkB;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED,6EAA6E;AAC7E,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,GAAG,EACH,GAAG,IAAI,EACR,EAAE,aAAa,+BAkBf"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Pages to render, with "ellipsis" marking an elided run. Pure and exported
|
|
2
|
+
* so the truncation math is testable without rendering.
|
|
3
|
+
*
|
|
4
|
+
* Anchored on the real `leftSibling`/`rightSibling` for the current page —
|
|
5
|
+
* not a page-count-independent fixed span. An earlier version's two
|
|
6
|
+
* single-ellipsis branches used a fixed window (`range(1, windowSize)` /
|
|
7
|
+
* `range(pageCount - windowSize + 1, pageCount)`) that didn't move with
|
|
8
|
+
* `page` at all, so `paginationRange(3, 13, 1)` came out as
|
|
9
|
+
* `[1, 2, 3, "ellipsis", 13]`, silently dropping true sibling page 4.
|
|
10
|
+
*
|
|
11
|
+
* Each single-ellipsis branch instead widens only as far as `max(sibling,
|
|
12
|
+
* windowSize)` / `min(sibling, pageCount - windowSize + 1)` — enough to
|
|
13
|
+
* always include the real sibling, while still padding out to a full
|
|
14
|
+
* `2 * siblingCount + 1` run when clamping at an edge would otherwise
|
|
15
|
+
* shrink it (e.g. `paginationRange(13, 13, 1)` needs `11, 12, 13`, not
|
|
16
|
+
* just `12, 13`).
|
|
17
|
+
*
|
|
18
|
+
* An ellipsis is only rendered where it elides at least two pages — a
|
|
19
|
+
* single hidden page is rendered directly instead, since an ellipsis
|
|
20
|
+
* standing in for one number is worse than the number. */
|
|
21
|
+
export declare function paginationRange(page: number, pageCount: number, siblingCount: number): Array<number | "ellipsis">;
|
|
22
|
+
export interface PaginationProps {
|
|
23
|
+
/** Current page, 1-based. */
|
|
24
|
+
page: number;
|
|
25
|
+
/** Total number of pages. */
|
|
26
|
+
pageCount: number;
|
|
27
|
+
/**
|
|
28
|
+
* Called with the requested page. Required — unlike Table's `onSortChange`/
|
|
29
|
+
* `onSelectionChange`, which are optional because `sortable`/`selectable`
|
|
30
|
+
* gate whether they're meaningful, `Pagination` has no such gating boolean:
|
|
31
|
+
* the prop is unconditionally meaningful, so a `Pagination` without it is a
|
|
32
|
+
* dead control (final review finding, D62).
|
|
33
|
+
*/
|
|
34
|
+
onPageChange: (page: number) => void;
|
|
35
|
+
/** Pages shown either side of the current one before truncating. @default 1 */
|
|
36
|
+
siblingCount?: number;
|
|
37
|
+
/** Accessible name for the nav landmark. @default "Pagination" */
|
|
38
|
+
"aria-label"?: string;
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Numbered pager with ellipsis truncation (D63). Standalone rather than a
|
|
42
|
+
* Table family member: `table-pagination` composes it as a Toolbar sibling of
|
|
43
|
+
* the page-size Select. */
|
|
44
|
+
export declare function Pagination({ page, pageCount, onPageChange, siblingCount, "aria-label": ariaLabel, className, }: PaginationProps): import("react").JSX.Element;
|
|
45
|
+
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../src/Pagination/Pagination.tsx"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;0DAmB0D;AAC1D,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,GACnB,KAAK,CAAC,MAAM,GAAG,UAAU,CAAC,CAkC5B;AAED,MAAM,WAAW,eAAe;IAC9B,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;2BAE2B;AAC3B,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,YAAgB,EAChB,YAAY,EAAE,SAAwB,EACtC,SAAS,GACV,EAAE,eAAe,+BA+CjB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from "react";
|
|
2
|
+
export type TableSize = 32 | 40 | 48;
|
|
3
|
+
/** Controlled sort state. `null` means no column is sorted. */
|
|
4
|
+
export interface TableSortState {
|
|
5
|
+
key: string;
|
|
6
|
+
direction: "asc" | "desc";
|
|
7
|
+
}
|
|
8
|
+
export interface TableProps {
|
|
9
|
+
/** Row height in px. @default 40 */
|
|
10
|
+
size?: TableSize;
|
|
11
|
+
/** Pins the header while the body scrolls. */
|
|
12
|
+
stickyHeader?: boolean;
|
|
13
|
+
/** Enables the sort affordance on header cells that declare a `sortKey`. */
|
|
14
|
+
sortable?: boolean;
|
|
15
|
+
/** Controlled sort state; `null` when nothing is sorted. */
|
|
16
|
+
sort?: TableSortState | null;
|
|
17
|
+
/**
|
|
18
|
+
* Called when a header's sort control is activated. Optional in the type
|
|
19
|
+
* because `sortable` may be false; a discriminated union expressing the real
|
|
20
|
+
* contract does not survive docgen's flat prop extraction, which would strip
|
|
21
|
+
* these props from the manifest entirely (D62).
|
|
22
|
+
*/
|
|
23
|
+
onSortChange?: (sort: TableSortState) => void;
|
|
24
|
+
/** Renders the row-selection checkbox column. */
|
|
25
|
+
selectable?: boolean;
|
|
26
|
+
/** Controlled selection, keyed by each `TableRow`'s `rowId`. */
|
|
27
|
+
selected?: ReadonlySet<string>;
|
|
28
|
+
/** Called with the next selection. See `onSortChange` on why it is optional. */
|
|
29
|
+
onSelectionChange?: (selected: ReadonlySet<string>) => void;
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
className?: string;
|
|
32
|
+
/** Forwarded ref to the underlying `<table>` element. */
|
|
33
|
+
ref?: Ref<HTMLTableElement>;
|
|
34
|
+
}
|
|
35
|
+
/** Data table on native table semantics. Holds no state: sorting, selection
|
|
36
|
+
* and pagination are the consumer's (D62, extending D50/D53). */
|
|
37
|
+
export declare function Table({ size, stickyHeader, sortable, sort, onSortChange, selectable, selected, onSelectionChange, children, className, ref, }: TableProps): import("react").JSX.Element;
|
|
38
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/Table/Table.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,GAA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+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
/** `<tbody>` wrapper. */
|
|
7
|
+
export declare function TableBody({ children, className }: TableBodyProps): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=TableBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../src/Table/TableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yBAAyB;AACzB,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,cAAc,+BAEhE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface TableCellProps {
|
|
3
|
+
/** Right-aligns and renders tabular figures (D62). */
|
|
4
|
+
numeric?: boolean;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/** `<td>`. `numeric` means right-aligned *and* tabular — a column that aligns
|
|
9
|
+
* but whose digits jitter between rows defeats the purpose. */
|
|
10
|
+
export declare function TableCell({ numeric, children, className }: TableCellProps): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=TableCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../src/Table/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,cAAc;IAC7B,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;+DAC+D;AAC/D,wBAAgB,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,cAAc,+BAMzE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TableSize, TableSortState } from "./Table.js";
|
|
2
|
+
/** Shared empty-selection sentinel — the one place an unselected `selected`
|
|
3
|
+
* set is constructed, so `Table`'s default prop and this context's default
|
|
4
|
+
* value can't drift into two different empty sets (D62 review). */
|
|
5
|
+
export declare const EMPTY_SELECTION: ReadonlySet<string>;
|
|
6
|
+
export interface TableContextValue {
|
|
7
|
+
size: TableSize;
|
|
8
|
+
sortable: boolean;
|
|
9
|
+
sort: TableSortState | null;
|
|
10
|
+
onSortChange?: (sort: TableSortState) => void;
|
|
11
|
+
selectable: boolean;
|
|
12
|
+
selected: ReadonlySet<string>;
|
|
13
|
+
onSelectionChange?: (selected: ReadonlySet<string>) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const TableContext: import("react").Context<TableContextValue>;
|
|
16
|
+
/** Row ids in document order, published by Table so the select-all
|
|
17
|
+
* checkbox can compute all/some without the consumer restating them. */
|
|
18
|
+
export declare const TableRowIdsContext: import("react").Context<string[]>;
|
|
19
|
+
//# sourceMappingURL=TableContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableContext.d.ts","sourceRoot":"","sources":["../../src/Table/TableContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5D;;mEAEmE;AACnE,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,CAAqB,CAAC;AAEtE,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9C,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;CAC7D;AAED,eAAO,MAAM,YAAY,4CAMvB,CAAC;AAEH;wEACwE;AACxE,eAAO,MAAM,kBAAkB,mCAA8B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface TableHeadProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
/** `<thead>`. When the table is selectable, prepends the select-all cell to
|
|
7
|
+
* the FIRST header row so the header's column count matches the body's — the
|
|
8
|
+
* checkbox column is Table's, not the consumer's schema. Clones the row
|
|
9
|
+
* rather than rebuilding it, so the consumer's own props on that `TableRow`
|
|
10
|
+
* survive. */
|
|
11
|
+
export declare function TableHead({ children, className }: TableHeadProps): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=TableHead.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableHead.d.ts","sourceRoot":"","sources":["../../src/Table/TableHead.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAKrD,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;cAIc;AACd,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,cAAc,+BAqBhE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface TableHeaderCellProps {
|
|
3
|
+
/** Sort key this column emits. Enables the sort control when the table is `sortable`. */
|
|
4
|
+
sortKey?: string;
|
|
5
|
+
/** Right-aligns and renders tabular figures (D62). */
|
|
6
|
+
numeric?: boolean;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/** `<th scope="col">`. `aria-sort` belongs on the th, never on the inner
|
|
11
|
+
* button — assistive tech reads the sort state from the column header. */
|
|
12
|
+
export declare function TableHeaderCell({ sortKey, numeric, children, className }: TableHeaderCellProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=TableHeaderCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableHeaderCell.d.ts","sourceRoot":"","sources":["../../src/Table/TableHeaderCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,oBAAoB;IACnC,yFAAyF;IACzF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;0EAC0E;AAC1E,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,oBAAoB,+BAsC9F"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface TableRowProps {
|
|
3
|
+
/** Stable identity for selection. Required for selectable tables (D62). */
|
|
4
|
+
rowId?: string;
|
|
5
|
+
/** Accessible name for this row's selection checkbox. */
|
|
6
|
+
selectLabel?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/** `<tr>`. `rowId` is the key the `selected` set holds. */
|
|
11
|
+
export declare function TableRow({ rowId, selectLabel, children, className }: TableRowProps): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=TableRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../src/Table/TableRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,WAAW,aAAa;IAC5B,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,2DAA2D;AAC3D,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,aAAa,+BAelF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Per-row selection checkbox. Internal — not exported from index.ts. */
|
|
2
|
+
export declare function TableRowSelectionCell({ rowId, label }: {
|
|
3
|
+
rowId: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
/** Select-all header checkbox, indeterminate on a partial selection. */
|
|
7
|
+
export declare function TableSelectAllCell(): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=TableSelectionCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSelectionCell.d.ts","sourceRoot":"","sources":["../../src/Table/TableSelectionCell.tsx"],"names":[],"mappings":"AAKA,yEAAyE;AACzE,wBAAgB,qBAAqB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,+BAavF;AAED,wEAAwE;AACxE,wBAAgB,kBAAkB,gCA6BjC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from "react";
|
|
2
|
+
export type ToastVariant = "neutral" | "success" | "warning" | "danger";
|
|
3
|
+
export interface ToastProps {
|
|
4
|
+
/** Status variant. @default "neutral" */
|
|
5
|
+
variant?: ToastVariant;
|
|
6
|
+
/** The message. */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** Trailing affordance — a ghost Button (Undo, Retry, View). */
|
|
9
|
+
action?: ReactNode;
|
|
10
|
+
/** When provided, renders the dismiss button and calls this. Toast does not
|
|
11
|
+
* remove itself; the owner disposes. */
|
|
12
|
+
onDismiss?: () => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
/** Forwarded ref to the underlying `<div>`. */
|
|
15
|
+
ref?: Ref<HTMLDivElement>;
|
|
16
|
+
}
|
|
17
|
+
/** A single transient notification card (D64). Controlled and presentational:
|
|
18
|
+
* it holds no state, runs no timer, and never removes itself — `onDismiss`
|
|
19
|
+
* reports and the owner disposes, exactly as Dialog (D50) and Menu (D53) do.
|
|
20
|
+
*
|
|
21
|
+
* Toast does not carry its own `role`/`aria-live`. Politeness belongs to the
|
|
22
|
+
* two persistent wrappers inside ToastRegion, because a live region must
|
|
23
|
+
* pre-exist the content it announces; a role on the toast itself would
|
|
24
|
+
* reintroduce the mount-with-content problem one level down.
|
|
25
|
+
*
|
|
26
|
+
* Composed by hand with ToastRegion for full control, or driven by
|
|
27
|
+
* ToastProvider's queue. */
|
|
28
|
+
export declare function Toast({ variant, children, action, onDismiss, className, ref, }: ToastProps): import("react").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../src/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAW5C,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAExE,MAAM,WAAW,UAAU;IACzB,yCAAyC;IACzC,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,mBAAmB;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,gEAAgE;IAChE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;4CACwC;IACxC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+CAA+C;IAC/C,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAyBD;;;;;;;;;;4BAU4B;AAC5B,wBAAgB,KAAK,CAAC,EACpB,OAAmB,EACnB,QAAQ,EACR,MAAM,EACN,SAAS,EACT,SAAS,EACT,GAAG,GACJ,EAAE,UAAU,+BA2BZ"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ToastPlacement } from "./ToastRegion.js";
|
|
3
|
+
export interface ToastProviderProps {
|
|
4
|
+
/** Max simultaneous toasts; the oldest is evicted first. @default 3 */
|
|
5
|
+
limit?: number;
|
|
6
|
+
/** Auto-dismiss for toasts with no action, in ms. @default 5000 */
|
|
7
|
+
duration?: number;
|
|
8
|
+
/** Auto-dismiss for toasts carrying an action, in ms. An affordance that
|
|
9
|
+
* vanishes before it can be reached is not an affordance. @default 10000 */
|
|
10
|
+
actionDuration?: number;
|
|
11
|
+
/** Corner the stack occupies. @default "bottom-end" */
|
|
12
|
+
placement?: ToastPlacement;
|
|
13
|
+
/** The subtree that may call `useToast()`. The region is rendered alongside it. */
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/** Owns the toast queue, its auto-dismiss timers, and the single ToastRegion
|
|
17
|
+
* (D65).
|
|
18
|
+
*
|
|
19
|
+
* This is the library's one stateful container, and the exception is
|
|
20
|
+
* deliberately narrow. D50 and D53 rejected internal state for Dialog and Menu
|
|
21
|
+
* because the consumer already owned the state that decided visibility — a
|
|
22
|
+
* menu is open because a user clicked a trigger the consumer rendered. A toast
|
|
23
|
+
* has no such owner: it is created by an outcome, not by a UI state, and it
|
|
24
|
+
* disappears on a timer nobody is watching. The rule that survives is the
|
|
25
|
+
* useful half — presentational components stay controlled (`Toast` still holds
|
|
26
|
+
* nothing), a stateful container may exist when the state has no natural
|
|
27
|
+
* owner, and it must be opt-in.
|
|
28
|
+
*
|
|
29
|
+
* Timers pause while the pointer or focus is inside the region (WCAG 2.2.1),
|
|
30
|
+
* and resume with the time *remaining* rather than a fresh full duration —
|
|
31
|
+
* restarting would let a user hold a toast open indefinitely by jiggling the
|
|
32
|
+
* mouse. */
|
|
33
|
+
export declare function ToastProvider({ limit, duration, actionDuration, placement, children, }: ToastProviderProps): import("react").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=ToastProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../src/Toast/ToastProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,MAAM,WAAW,kBAAkB;IACjC,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;gFAC4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uDAAuD;IACvD,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,mFAAmF;IACnF,QAAQ,EAAE,SAAS,CAAC;CACrB;AAmBD;;;;;;;;;;;;;;;;YAgBY;AACZ,wBAAgB,aAAa,CAAC,EAC5B,KAAS,EACT,QAAe,EACf,cAAsB,EACtB,SAAwB,EACxB,QAAQ,GACT,EAAE,kBAAkB,+BAyHpB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from "react";
|
|
2
|
+
export type ToastPlacement = "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
3
|
+
export interface ToastRegionProps {
|
|
4
|
+
/** Corner the stack occupies. @default "bottom-end" */
|
|
5
|
+
placement?: ToastPlacement;
|
|
6
|
+
/** Accessible name for the region. @default "Notifications" */
|
|
7
|
+
"aria-label"?: string;
|
|
8
|
+
/** The toast stack — `Toast` elements, routed to a live wrapper by variant. */
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Forwarded ref to the region element. */
|
|
12
|
+
ref?: Ref<HTMLDivElement>;
|
|
13
|
+
}
|
|
14
|
+
/** The positioned live region that holds the toast stack (D64).
|
|
15
|
+
*
|
|
16
|
+
* Two things here are load-bearing and both look like details:
|
|
17
|
+
*
|
|
18
|
+
* 1. **The two live wrappers are always rendered**, empty queue included. A
|
|
19
|
+
* live region announces mutations to a subtree that already existed; a
|
|
20
|
+
* wrapper that mounts together with its first toast reads as a new subtree,
|
|
21
|
+
* and that first toast is never announced.
|
|
22
|
+
*
|
|
23
|
+
* 2. **`popover="manual"`, not `"auto"`.** Manual puts the region in the
|
|
24
|
+
* native top layer without light dismiss. The top layer is required because
|
|
25
|
+
* Dialog uses showModal() — also top layer — so a fixed region at
|
|
26
|
+
* --psi-z-overlay would paint *under* the modal backdrop, hiding the
|
|
27
|
+
* confirmation for the action a user just took inside a dialog. And `auto`
|
|
28
|
+
* would be dismissed by the very click that raised the toast.
|
|
29
|
+
*
|
|
30
|
+
* Routing reads `variant` off each child, the same Children.map technique
|
|
31
|
+
* Table uses for select-all injection.
|
|
32
|
+
*
|
|
33
|
+
* Consequence of the split, visible in the `InRegion` VR baseline: the stack is
|
|
34
|
+
* grouped by politeness, not strictly chronological — every assertive toast
|
|
35
|
+
* sorts below every polite one regardless of arrival order. Chronological order
|
|
36
|
+
* is preserved *within* each group. Keeping it exact across both would mean one
|
|
37
|
+
* live region with a politeness that changes per message, which is the thing
|
|
38
|
+
* the two wrappers exist to avoid. Accepted: at `limit` 3 the grouping reads as
|
|
39
|
+
* severity ordering, and the newest toast still lands nearest the screen edge
|
|
40
|
+
* within its group. */
|
|
41
|
+
export declare function ToastRegion({ placement, "aria-label": ariaLabel, children, className, ref, }: ToastRegionProps): import("react").JSX.Element;
|
|
42
|
+
//# sourceMappingURL=ToastRegion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastRegion.d.ts","sourceRoot":"","sources":["../../src/Toast/ToastRegion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,SAAS,GAAG,cAAc,GAAG,YAAY,CAAC;AAErF,MAAM,WAAW,gBAAgB;IAC/B,uDAAuD;IACvD,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+EAA+E;IAC/E,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAaD;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0BuB;AACvB,wBAAgB,WAAW,CAAC,EAC1B,SAAwB,EACxB,YAAY,EAAE,SAA2B,EACzC,QAAQ,EACR,SAAS,EACT,GAAG,GACJ,EAAE,gBAAgB,+BAoDlB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ToastVariant } from "./Toast.js";
|
|
3
|
+
export interface ToastOptions {
|
|
4
|
+
/** @default "neutral" */
|
|
5
|
+
variant?: ToastVariant;
|
|
6
|
+
/** The message body. */
|
|
7
|
+
message: ReactNode;
|
|
8
|
+
/** Trailing affordance — a ghost Button. Its presence also selects the
|
|
9
|
+
* longer auto-dismiss (`actionDuration`). */
|
|
10
|
+
action?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface ToastHandle {
|
|
13
|
+
/** Queue a toast; returns its id. */
|
|
14
|
+
show: (toast: ToastOptions) => string;
|
|
15
|
+
/** Remove one toast by id. No-op if it has already gone. */
|
|
16
|
+
dismiss: (id: string) => void;
|
|
17
|
+
/** Remove every queued toast. */
|
|
18
|
+
clear: () => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const ToastContext: import("react").Context<ToastHandle | null>;
|
|
21
|
+
/** Imperative handle onto the nearest ToastProvider's queue (D65).
|
|
22
|
+
*
|
|
23
|
+
* Throws rather than returning a no-op when there is no provider: a silent
|
|
24
|
+
* handle would make a missing provider look like a broken toast, and the
|
|
25
|
+
* failure would surface far from its cause. */
|
|
26
|
+
export declare function useToast(): ToastHandle;
|
|
27
|
+
//# sourceMappingURL=useToast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useToast.d.ts","sourceRoot":"","sources":["../../src/Toast/useToast.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,wBAAwB;IACxB,OAAO,EAAE,SAAS,CAAC;IACnB;iDAC6C;IAC7C,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,qCAAqC;IACrC,IAAI,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,CAAC;IACtC,4DAA4D;IAC5D,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,iCAAiC;IACjC,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,YAAY,6CAA0C,CAAC;AAEpE;;;;+CAI+C;AAC/C,wBAAgB,QAAQ,IAAI,WAAW,CAUtC"}
|
package/dist/a11y-meta.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a11y-meta.d.ts","sourceRoot":"","sources":["../src/a11y-meta.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"a11y-meta.d.ts","sourceRoot":"","sources":["../src/a11y-meta.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAoH9C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SVGAttributes } from "react";
|
|
2
|
+
interface IconProps extends SVGAttributes<SVGSVGElement> {
|
|
3
|
+
size?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconAlertCircle({ size, ...props }: IconProps): import("react").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=IconAlertCircle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconAlertCircle.d.ts","sourceRoot":"","sources":["../../src/icons/IconAlertCircle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,UAAU,SAAU,SAAQ,aAAa,CAAC,aAAa,CAAC;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAQjE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SVGAttributes } from "react";
|
|
2
|
+
interface IconProps extends SVGAttributes<SVGSVGElement> {
|
|
3
|
+
size?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconAlertTriangle({ size, ...props }: IconProps): import("react").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=IconAlertTriangle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconAlertTriangle.d.ts","sourceRoot":"","sources":["../../src/icons/IconAlertTriangle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,UAAU,SAAU,SAAQ,aAAa,CAAC,aAAa,CAAC;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,iBAAiB,CAAC,EAAE,IAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAQnE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SVGAttributes } from "react";
|
|
2
|
+
interface IconProps extends SVGAttributes<SVGSVGElement> {
|
|
3
|
+
size?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconInfo({ size, ...props }: IconProps): import("react").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=IconInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconInfo.d.ts","sourceRoot":"","sources":["../../src/icons/IconInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,UAAU,SAAU,SAAQ,aAAa,CAAC,aAAa,CAAC;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAQ1D"}
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -20,4 +20,7 @@ export { IconLinkedIn } from "./IconLinkedIn.js";
|
|
|
20
20
|
export { IconGitHub } from "./IconGitHub.js";
|
|
21
21
|
export { IconX } from "./IconX.js";
|
|
22
22
|
export { IconInstagram } from "./IconInstagram.js";
|
|
23
|
+
export { IconInfo } from "./IconInfo.js";
|
|
24
|
+
export { IconAlertTriangle } from "./IconAlertTriangle.js";
|
|
25
|
+
export { IconAlertCircle } from "./IconAlertCircle.js";
|
|
23
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE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,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -33,5 +33,27 @@ export type { MenuProps, MenuPlacement, MenuContextValue } from "./Menu/Menu.js"
|
|
|
33
33
|
export { MenuItem } from "./Menu/MenuItem.js";
|
|
34
34
|
export type { MenuItemProps } from "./Menu/MenuItem.js";
|
|
35
35
|
export { MenuSeparator } from "./Menu/MenuSeparator.js";
|
|
36
|
-
export {
|
|
36
|
+
export { Table } from "./Table/Table.js";
|
|
37
|
+
export type { TableProps, TableSize, TableSortState } from "./Table/Table.js";
|
|
38
|
+
export { TableHead } from "./Table/TableHead.js";
|
|
39
|
+
export type { TableHeadProps } from "./Table/TableHead.js";
|
|
40
|
+
export { TableBody } from "./Table/TableBody.js";
|
|
41
|
+
export type { TableBodyProps } from "./Table/TableBody.js";
|
|
42
|
+
export { TableRow } from "./Table/TableRow.js";
|
|
43
|
+
export type { TableRowProps } from "./Table/TableRow.js";
|
|
44
|
+
export { TableHeaderCell } from "./Table/TableHeaderCell.js";
|
|
45
|
+
export type { TableHeaderCellProps } from "./Table/TableHeaderCell.js";
|
|
46
|
+
export { TableCell } from "./Table/TableCell.js";
|
|
47
|
+
export type { TableCellProps } from "./Table/TableCell.js";
|
|
48
|
+
export { Pagination } from "./Pagination/Pagination.js";
|
|
49
|
+
export type { PaginationProps } from "./Pagination/Pagination.js";
|
|
50
|
+
export { Toast } from "./Toast/Toast.js";
|
|
51
|
+
export type { ToastProps, ToastVariant } from "./Toast/Toast.js";
|
|
52
|
+
export { ToastRegion } from "./Toast/ToastRegion.js";
|
|
53
|
+
export type { ToastRegionProps, ToastPlacement } from "./Toast/ToastRegion.js";
|
|
54
|
+
export { ToastProvider } from "./Toast/ToastProvider.js";
|
|
55
|
+
export type { ToastProviderProps } from "./Toast/ToastProvider.js";
|
|
56
|
+
export { useToast, ToastContext } from "./Toast/useToast.js";
|
|
57
|
+
export type { ToastHandle, ToastOptions } from "./Toast/useToast.js";
|
|
58
|
+
export { IconPlus, IconMinus, IconClose, IconCheck, IconChevronDown, IconChevronRight, IconSearch, IconSettings, IconUser, IconEdit, IconTrash, IconCopy, IconExternalLink, IconEye, IconEyeOff, IconLoader, IconArrowDown, IconArrowUpRight, IconLinkedIn, IconGitHub, IconX, IconInstagram, IconInfo, IconAlertTriangle, IconAlertCircle, } from "./icons/index.js";
|
|
37
59
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,YAAY,EAAE,UAAU,EAAE,MA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