@arkyn/types 1.3.37 → 1.3.39

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.
@@ -3,6 +3,6 @@ import type { HTMLAttributes } from "react";
3
3
  type BreadcrumbLinkProps = LinkProps & {
4
4
  disabled?: boolean;
5
5
  };
6
- type BreadcrumbProps = HTMLAttributes<HTMLElement>;
7
- export type { BreadcrumbProps, BreadcrumbLinkProps };
6
+ type BreadcrumbContainerProps = HTMLAttributes<HTMLElement>;
7
+ export type { BreadcrumbContainerProps, BreadcrumbLinkProps };
8
8
  //# sourceMappingURL=BreadcrumbProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BreadcrumbProps.d.ts","sourceRoot":"","sources":["../../src/components/BreadcrumbProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,mBAAmB,GAAG,SAAS,GAAG;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,eAAe,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AAEnD,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"BreadcrumbProps.d.ts","sourceRoot":"","sources":["../../src/components/BreadcrumbProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,mBAAmB,GAAG,SAAS,GAAG;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,wBAAwB,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AAE5D,YAAY,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ type ToastProps = {
2
+ title: string;
3
+ message: string;
4
+ size?: "md" | "lg";
5
+ type: "info" | "success" | "danger" | "warning";
6
+ };
7
+ export type { ToastProps };
8
+ //# sourceMappingURL=ToastProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToastProps.d.ts","sourceRoot":"","sources":["../../src/components/ToastProps.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
+ import type { ToastProps } from "../components/ToastProps";
2
3
  type ToastContextProps = {
3
- errorToast(message: string): void;
4
- warningToast(message: string): void;
5
- successToast(message: string): void;
6
- infoToast(message: string): void;
4
+ showToast(toast: ToastProps): void;
7
5
  };
8
6
  type ToastProviderProps = {
9
7
  children: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../src/hooks/Toast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,iBAAiB,GAAG;IACvB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../src/hooks/Toast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,KAAK,iBAAiB,GAAG;IACvB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from "./components/ModalProps";
21
21
  export * from "./components/SelectProps";
22
22
  export * from "./components/SkeletonProps";
23
23
  export * from "./components/TooltipProps";
24
+ export * from "./components/ToastProps";
24
25
  export * from "./hooks/Drawer";
25
26
  export * from "./hooks/Modal";
26
27
  export * from "./hooks/Toast";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAG7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAG1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAG9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,wCAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAG7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AAGxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAG9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,wCAAwC,CAAC"}
package/dist/index.js CHANGED
@@ -23,6 +23,7 @@ export * from "./components/ModalProps";
23
23
  export * from "./components/SelectProps";
24
24
  export * from "./components/SkeletonProps";
25
25
  export * from "./components/TooltipProps";
26
+ export * from "./components/ToastProps";
26
27
  // Hooks
27
28
  export * from "./hooks/Drawer";
28
29
  export * from "./hooks/Modal";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkyn/types",
3
- "version": "1.3.37",
3
+ "version": "1.3.39",
4
4
  "main": "./dist/bundle.js",
5
5
  "module": "./src/index.ts",
6
6
  "type": "module",
@@ -5,6 +5,6 @@ type BreadcrumbLinkProps = LinkProps & {
5
5
  disabled?: boolean;
6
6
  };
7
7
 
8
- type BreadcrumbProps = HTMLAttributes<HTMLElement>;
8
+ type BreadcrumbContainerProps = HTMLAttributes<HTMLElement>;
9
9
 
10
- export type { BreadcrumbProps, BreadcrumbLinkProps };
10
+ export type { BreadcrumbContainerProps, BreadcrumbLinkProps };
@@ -0,0 +1,8 @@
1
+ type ToastProps = {
2
+ title: string;
3
+ message: string;
4
+ size?: "md" | "lg";
5
+ type: "info" | "success" | "danger" | "warning";
6
+ };
7
+
8
+ export type { ToastProps };
@@ -1,10 +1,8 @@
1
1
  import type { ReactNode } from "react";
2
+ import type { ToastProps } from "../components/ToastProps";
2
3
 
3
4
  type ToastContextProps = {
4
- errorToast(message: string): void;
5
- warningToast(message: string): void;
6
- successToast(message: string): void;
7
- infoToast(message: string): void;
5
+ showToast(toast: ToastProps): void;
8
6
  };
9
7
 
10
8
  type ToastProviderProps = {
package/src/index.ts CHANGED
@@ -24,6 +24,7 @@ export * from "./components/ModalProps";
24
24
  export * from "./components/SelectProps";
25
25
  export * from "./components/SkeletonProps";
26
26
  export * from "./components/TooltipProps";
27
+ export * from "./components/ToastProps";
27
28
 
28
29
  // Hooks
29
30
  export * from "./hooks/Drawer";