commerce-toolkit 0.0.26 → 0.0.28

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.
@@ -0,0 +1,2 @@
1
+ export { Spinner, type SpinnerProps } from '../../components/spinner/spinner';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { ComponentProps } from 'react';
2
+ export interface SpinnerProps extends ComponentProps<'span'> {
3
+ size?: 'xs' | 'sm' | 'md' | 'lg';
4
+ }
5
+ /**
6
+ * This component supports various CSS variables for theming. Here's a comprehensive list, along
7
+ * with their default values:
8
+ *
9
+ * ```css
10
+ * :root {
11
+ * --spinner-base: hsl(var(--contrast-100));
12
+ * --spinner-ring: color-mix(in oklab, hsl(var(--primary)), black 75%);
13
+ * }
14
+ * ```
15
+ */
16
+ export declare function Spinner({ className, size, ...props }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,MAAM,CAAC;IAC1D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAClC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,IAAW,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAkBzE"}
@@ -0,0 +1,2 @@
1
+ export { Toaster, type ToasterProps, toast } from '../../components/toaster/toaster';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/toaster/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { ComponentProps } from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import { Toaster as Sonner } from 'sonner';
4
+ export type ToasterProps = ComponentProps<typeof Sonner>;
5
+ interface ToastOptions {
6
+ action?: {
7
+ label: string;
8
+ onClick: () => void;
9
+ };
10
+ dismiss?: {
11
+ label: string;
12
+ onClick: () => void;
13
+ };
14
+ description?: string;
15
+ position?: ToasterProps['position'];
16
+ }
17
+ export declare const Toaster: ({ className, ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const toast: {
19
+ success: (message: ReactNode, options?: ToastOptions) => void;
20
+ error: (message: ReactNode, options?: ToastOptions) => void;
21
+ warning: (message: ReactNode, options?: ToastOptions) => void;
22
+ info: (message: ReactNode, options?: ToastOptions) => void;
23
+ };
24
+ export {};
25
+ //# sourceMappingURL=toaster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../../src/components/toaster/toaster.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAwB,MAAM,QAAQ,CAAC;AAKjE,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAEzD,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF,OAAO,CAAC,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,OAAO,GAAI,yBAAyB,YAAY,4CAa5D,CAAC;AAEF,eAAO,MAAM,KAAK;uBACG,SAAS,YAAY,YAAY;qBAgBnC,SAAS,YAAY,YAAY;uBAgB/B,SAAS,YAAY,YAAY;oBAgBpC,SAAS,YAAY,YAAY;CAgBlD,CAAC"}