master-components-react-ts 2.9.4 → 2.9.5

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,12 +1,23 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { NotificationToastProps } from './NotificationToast.types';
3
+ type Toast = {
4
+ id: number;
5
+ props: NotificationToastProps;
6
+ };
3
7
  export declare const ToastContext: import('react').Context<{
4
8
  showToast: (props: NotificationToastProps) => void;
5
9
  } | null>;
10
+ declare const toastManager: {
11
+ showToast: (props: NotificationToastProps) => void;
12
+ getToasts: () => Toast[];
13
+ removeToast: (id: number) => void;
14
+ subscribe: (listener: () => void) => () => void;
15
+ };
6
16
  declare const ToastProvider: {
7
17
  ({ children }: {
8
18
  children: ReactNode;
9
19
  }): import("react/jsx-runtime").JSX.Element;
10
20
  propKeys: readonly ["children"];
11
21
  };
22
+ export { toastManager };
12
23
  export default ToastProvider;
@@ -1,6 +1,6 @@
1
1
  import { TextareaProps } from './Textarea.types';
2
2
  declare const Textarea: {
3
- ({ placeholder, label, cols, rows, value, inputState, maxLength, withMaxLength, withFocus, withActive, withResize, withClose, onChange, onFocus, onBlur, disabled, required, textareaContainerStyle, textareaLabelStyle, requiredStyle, labelSlot, textareaFooterStyle, }: TextareaProps): import("react/jsx-runtime").JSX.Element;
3
+ ({ placeholder, label, cols, rows, value, inputState, maxLength, withMaxLength, withFocus, withActive, withResize, withClose, onChange, onFocus, onBlur, disabled, required, textareaContainerStyle, textareaLabelStyle, requiredStyle, labelSlot, textareaFooterStyle, ...rest }: TextareaProps): import("react/jsx-runtime").JSX.Element;
4
4
  propKeys: readonly ["placeholder", "label", "cols", "rows", "value", "inputState", "maxLength", "withMaxLength", "withFocus", "withActive", "withResize", "withClose", "onChange", "onFocus", "onBlur", "disabled", "required", "textareaContainerStyle", "textareaLabelStyle", "requiredStyle", "labelSlot", "textareaFooterStyle"];
5
5
  displayName: string;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  import { CSSProperties } from 'react';
2
2
  /**Textarea Component Props */
3
- export interface TextareaProps {
3
+ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
4
4
  placeholder?: string;
5
5
  label?: string | React.ReactNode;
6
6
  inputState?: {