kiban-design-system 1.0.283-alpha.0 → 1.0.286-alpha.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.
@@ -1,5 +1,6 @@
1
- import type { AlertProviderItemProps, AlertProviderProps } from './AlertProvider.props';
2
- import './AlertProvider.styles.scss';
1
+ import type { AlertProviderItemProps, AlertProviderProps } from "./AlertProvider.props";
2
+ import "./AlertProvider.styles.scss";
3
3
  declare const AlertProvider: ({ children, limit }: AlertProviderProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default AlertProvider;
5
- export declare const useShowAlert: () => (props: AlertProviderItemProps) => void;
5
+ export declare const useShowAlert: () => (props: AlertProviderItemProps) => number | null;
6
+ export declare const useDeleteAlert: () => (id?: number) => void;
@@ -1,4 +1,4 @@
1
- import type { IconName } from '../Icon';
1
+ import type { IconName } from "../Icon";
2
2
  export interface AlertProviderProps {
3
3
  /**
4
4
  * ** Content to display
@@ -16,13 +16,18 @@ export interface AlertProviderItemProps {
16
16
  *
17
17
  * @default 'info'
18
18
  */
19
- appearance: 'info' | 'success' | 'warning' | 'danger' | 'majorWarning';
19
+ appearance: "info" | "success" | "warning" | "danger" | "majorWarning" | "loading";
20
20
  content: React.ReactNode;
21
21
  onDismiss?: (id?: number) => void;
22
22
  id?: number;
23
- duration: number;
23
+ duration: number | "infinite";
24
+ /**
25
+ * Dismissible alert
26
+ */
27
+ dismissible?: boolean;
24
28
  }
25
29
  export interface AlertContextType {
26
30
  limit: number;
27
- addAlert: (props: AlertProviderItemProps) => void;
31
+ addAlert: (props: AlertProviderItemProps) => number | null;
32
+ deleteAlert: (id?: number) => void;
28
33
  }
@@ -1,3 +1,3 @@
1
- import type { AlertContextType } from '../AlertProvider.props';
1
+ import type { AlertContextType } from "../AlertProvider.props";
2
2
  declare const AlertContext: import("react").Context<AlertContextType>;
3
3
  export default AlertContext;
@@ -0,0 +1,4 @@
1
+ import type { LinkProps } from './Link.props';
2
+ import './Link.styles.scss';
3
+ declare const Link: ({ children, className: classNameProp, component, to, target, }: LinkProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Link;
@@ -0,0 +1,7 @@
1
+ export interface LinkProps {
2
+ to?: string;
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ component: React.ElementType;
6
+ target?: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ import Link from './Link';
2
+ export * from './Link.props';
3
+ export { Link };
@@ -95,3 +95,4 @@ export * from "./Table";
95
95
  export * from "./Tabs";
96
96
  export * from "./ThreadItem";
97
97
  export * from "./Tile";
98
+ export * from "./Link";