stratosphere-ui 0.1.26 → 0.1.28
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.
- package/dist/common/types.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/Dropdown/DropdownMenu.d.ts +1 -1
- package/dist/components/Dropdown/DropdownOption.d.ts +1 -1
- package/dist/components/Form/FormControl.d.ts +6 -2
- package/dist/components/Form/FormError.d.ts +2 -2
- package/dist/components/Form/FormLabel.d.ts +1 -1
- package/dist/components/Icons.d.ts +2 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +8 -0
- package/dist/components/PasswordInput/index.d.ts +1 -0
- package/dist/components/TypeaheadSelect/useTypeaheadSelect.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/hooks/useDebouncedValue.d.ts +1 -1
- package/dist/stratosphere-ui.js +8669 -8485
- package/package.json +14 -9
package/dist/common/types.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export interface BadgeProps extends DaisyUIBadgeProps {
|
|
|
5
5
|
icon?: FC<ComponentProps<'svg'>>;
|
|
6
6
|
onDismiss?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const Badge: ({ children, className, dismissable, icon, onDismiss, ...props }: BadgeProps) => JSX.Element;
|
|
8
|
+
export declare const Badge: ({ children, className, dismissable, icon: Icon, onDismiss, ...props }: BadgeProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HTMLProps } from 'react';
|
|
2
|
-
export
|
|
3
|
-
export declare const Dropdown: import("react").ForwardRefExoticComponent<
|
|
2
|
+
export type DropdownProps = HTMLProps<HTMLDivElement>;
|
|
3
|
+
export declare const Dropdown: import("react").ForwardRefExoticComponent<Omit<DropdownProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MenuProps } from 'react-daisyui';
|
|
3
|
-
export
|
|
3
|
+
export type DropdownMenuProps = MenuProps;
|
|
4
4
|
export declare const DropdownMenu: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLUListElement> & import("react-daisyui/dist/types").IComponentBaseProps & {
|
|
5
5
|
normal?: boolean | "xs" | "lg" | "md" | "sm" | undefined;
|
|
6
6
|
compact?: boolean | "xs" | "lg" | "md" | "sm" | undefined;
|
|
@@ -5,4 +5,4 @@ export interface DropdownOptionProps extends HTMLProps<HTMLAnchorElement> {
|
|
|
5
5
|
selected?: boolean;
|
|
6
6
|
subMenu?: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const DropdownOption: import("react").ForwardRefExoticComponent<
|
|
8
|
+
export declare const DropdownOption: import("react").ForwardRefExoticComponent<Omit<DropdownOptionProps, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
1
|
+
import { ReactNode, 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
|
+
elementLeft?: ReactNode;
|
|
7
|
+
elementRight?: ReactNode;
|
|
8
|
+
hideErrorMessage?: boolean;
|
|
9
|
+
inputClassName?: string;
|
|
6
10
|
inputRef?: RefObject<HTMLInputElement>;
|
|
7
11
|
transform?: Transform<TOutput>;
|
|
8
12
|
}
|
|
9
|
-
export declare const FormControl: <Values extends FieldValues, TOutput>({ className, color, controllerProps, inputRef, isRequired, labelText, name, showDirty, transform, ...props }: FormControlProps<Values, TOutput>) => JSX.Element;
|
|
13
|
+
export declare const FormControl: <Values extends FieldValues, TOutput>({ className, color, controllerProps, elementLeft, elementRight, hideErrorMessage, inputClassName, inputRef, isRequired, labelText, name, showDirty, transform, ...props }: FormControlProps<Values, TOutput>) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HTMLProps } from 'react';
|
|
2
|
-
export
|
|
3
|
-
export declare const FormError: import("react").ForwardRefExoticComponent<
|
|
2
|
+
export type FormErrorProps = HTMLProps<HTMLLabelElement>;
|
|
3
|
+
export declare const FormError: import("react").ForwardRefExoticComponent<Omit<FormErrorProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
@@ -2,4 +2,4 @@ import { HTMLProps } from 'react';
|
|
|
2
2
|
export interface FormLabelProps extends HTMLProps<HTMLLabelElement> {
|
|
3
3
|
isRequired?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const FormLabel: import("react").ForwardRefExoticComponent<
|
|
5
|
+
export declare const FormLabel: import("react").ForwardRefExoticComponent<Omit<FormLabelProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
@@ -2,6 +2,8 @@ import { SVGProps } from 'react';
|
|
|
2
2
|
export declare const CheckIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
export declare const CloseIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
4
4
|
export declare const ErrorIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
5
|
+
export declare const EyeIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
6
|
+
export declare const EyeSlashIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
5
7
|
export declare const InfoIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
6
8
|
export declare const SortAscendingIcon: () => JSX.Element;
|
|
7
9
|
export declare const SortDescendingIcon: () => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
3
|
+
import { FormControlProps } from '../Form';
|
|
4
|
+
export interface PasswordInputProps<Values extends FieldValues, TOutput> extends Omit<FormControlProps<Values, TOutput>, 'elementRight' | 'type'> {
|
|
5
|
+
iconShow?: ReactNode;
|
|
6
|
+
iconHide?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const PasswordInput: <Values extends FieldValues, TOutput>({ iconHide, iconShow, inputClassName, ...props }: PasswordInputProps<Values, TOutput>) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PasswordInput';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { FieldValues } from 'react-hook-form';
|
|
3
3
|
import { TypeaheadSelectProps } from './TypeaheadSelect';
|
|
4
4
|
import { GenericDataType } from '../../common';
|
|
5
|
-
export
|
|
5
|
+
export type UseTypeaheadSelectOptions<DataItem extends GenericDataType, Values extends FieldValues> = Pick<TypeaheadSelectProps<DataItem, Values>, 'controllerProps' | 'debounceTime' | 'name' | 'onDebouncedChange' | 'options'>;
|
|
6
6
|
export declare const useTypeaheadSelect: <DataItem extends GenericDataType, Values extends FieldValues>({ controllerProps, debounceTime, name, onDebouncedChange, options, }: UseTypeaheadSelectOptions<DataItem, Values>) => {
|
|
7
7
|
clearSelectedItem: (index: number) => void;
|
|
8
8
|
dropdownRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type UseDebouncedStateValue = string | number | boolean | null;
|
|
3
3
|
export declare const useDebouncedValue: <Value extends UseDebouncedStateValue>(value: Value, delay: number) => [Value, Dispatch<SetStateAction<Value>>, Value, boolean];
|