stratosphere-ui 0.1.2 → 0.1.4

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,6 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AlertMessagesListProps } from './AlertMessagesList';
3
- import { AlertMessagesProviderProps } from './AlertMessagesProvider';
4
- export interface AlertMessagesProps extends AlertMessagesListProps, Pick<AlertMessagesProviderProps, 'initialData'> {
2
+ export interface AlertMessagesProps {
3
+ maxMessages?: number;
5
4
  }
6
- export declare const AlertMessages: ({ initialData, maxMessages, }: AlertMessagesProps) => JSX.Element;
5
+ export declare const AlertMessages: ({ maxMessages, }: AlertMessagesProps) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const statusToIconMap: {
3
+ info: () => JSX.Element;
4
+ success: () => JSX.Element;
5
+ warning: () => JSX.Element;
6
+ error: () => JSX.Element;
7
+ };
@@ -1 +1,2 @@
1
1
  export * from './AlertMessages';
2
+ export * from './AlertMessagesProvider';
@@ -1,8 +1,9 @@
1
- /// <reference types="react" />
1
+ import { RefObject } from 'react';
2
2
  import { InputProps } from 'react-daisyui';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
  import { FormFieldProps, Transform } from './types';
5
5
  export interface FormControlProps<Values extends FieldValues, TOutput> extends FormFieldProps<Values>, Omit<InputProps, 'name'> {
6
+ inputRef?: RefObject<HTMLInputElement>;
6
7
  transform?: Transform<TOutput>;
7
8
  }
8
- export declare const FormControl: <Values extends FieldValues, TOutput>({ controllerProps, isRequired, labelText, name, transform, ...props }: FormControlProps<Values, TOutput>) => JSX.Element;
9
+ export declare const FormControl: <Values extends FieldValues, TOutput>({ controllerProps, inputRef, isRequired, labelText, name, transform, ...props }: FormControlProps<Values, TOutput>) => JSX.Element;
@@ -1,10 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ButtonProps } from 'react-daisyui';
3
- export interface ModalActionButton extends ButtonProps {
4
- initialFocus?: boolean;
5
- }
6
3
  export interface ModalProps {
7
- actionButtons: ModalActionButton[];
4
+ actionButtons: ButtonProps[];
8
5
  children: ReactNode;
9
6
  onClose: () => void;
10
7
  show: boolean;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ export * from './common';
1
2
  export * from './components';
2
3
  export * from './hooks';