greenole-design-system 1.1.30 → 1.1.32

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.
@@ -22,6 +22,7 @@ export interface DropdownTypes {
22
22
  invalid?: boolean;
23
23
  message?: string | ReactNode;
24
24
  className?: string;
25
+ displayValue?: string;
25
26
  onChange: (value: string | string[]) => void;
26
27
  onSearch?: (searchTerm: string) => void;
27
28
  onLoadMore?: () => void;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ToastProps } from './Toast.types';
3
+ export declare const Toast: React.FC<ToastProps>;
4
+ export default Toast;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Toast } from './Toast';
3
+ declare const meta: Meta<typeof Toast>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Toast>;
6
+ export declare const Playground: Story;
7
+ export declare const Gallery: Story;
8
+ export declare const InteractiveSandbox: Story;
@@ -0,0 +1,10 @@
1
+ export declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
+ variant: string;
3
+ }>> & string;
4
+ export declare const IconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
5
+ variant: string;
6
+ }>> & string;
7
+ export declare const Content: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
8
+ export declare const Title: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
+ export declare const Description: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
+ export declare const CloseButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
@@ -0,0 +1,13 @@
1
+ export type ToastVariant = "success" | "error" | "warning" | "info";
2
+ export type ToastPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
3
+ export interface ToastProps {
4
+ id?: string;
5
+ variant?: ToastVariant;
6
+ message: string;
7
+ description?: string;
8
+ position?: ToastPosition;
9
+ autoDismiss?: boolean;
10
+ autoDismissTime?: number;
11
+ onClose?: () => void;
12
+ className?: string;
13
+ }