@handamade/psi-react 0.10.0 → 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/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 +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +877 -657
- package/dist/manifest.json +153 -0
- package/dist/patterns.json +4 -5
- package/dist/styles.css +1 -1
- package/docs/Toast.md +51 -0
- package/docs/ToastProvider.md +39 -0
- package/docs/ToastRegion.md +39 -0
- package/llms.txt +9 -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
|
|
|
@@ -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,EAA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O,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
|
@@ -47,5 +47,13 @@ export { TableCell } from "./Table/TableCell.js";
|
|
|
47
47
|
export type { TableCellProps } from "./Table/TableCell.js";
|
|
48
48
|
export { Pagination } from "./Pagination/Pagination.js";
|
|
49
49
|
export type { PaginationProps } from "./Pagination/Pagination.js";
|
|
50
|
-
export {
|
|
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";
|
|
51
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,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,YAAY,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,YAAY,EAAE,WAAW,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