stratosphere-ui 0.0.2 → 0.0.3

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.
Files changed (32) hide show
  1. package/dist/components/AlertMessages/AlertMessages.d.ts +6 -0
  2. package/dist/components/AlertMessages/AlertMessagesProvider.d.ts +18 -0
  3. package/dist/components/AlertMessages/index.d.ts +2 -0
  4. package/dist/components/Badge.d.ts +7 -0
  5. package/dist/components/Dropdown/Dropdown.d.ts +4 -0
  6. package/dist/components/Dropdown/DropdownMenu.d.ts +5 -0
  7. package/dist/components/Dropdown/DropdownOption.d.ts +7 -0
  8. package/dist/components/Dropdown/index.d.ts +3 -0
  9. package/dist/components/Form/Form.d.ts +9 -0
  10. package/dist/components/Form/FormControl.d.ts +8 -0
  11. package/dist/components/Form/FormError.d.ts +4 -0
  12. package/dist/components/Form/FormLabel.d.ts +5 -0
  13. package/dist/components/Form/FormRadio.d.ts +14 -0
  14. package/dist/components/Form/Typeahead/TypeaheadDropdown.d.ts +12 -0
  15. package/dist/components/Form/Typeahead/TypeaheadMultiSelect.d.ts +7 -0
  16. package/dist/components/Form/Typeahead/TypeaheadSelect.d.ts +13 -0
  17. package/dist/components/Form/Typeahead/TypeaheadSingleSelect.d.ts +7 -0
  18. package/dist/components/Form/Typeahead/index.d.ts +1 -0
  19. package/dist/components/Form/Typeahead/useTypeaheadInput.d.ts +15 -0
  20. package/dist/components/Form/index.d.ts +6 -0
  21. package/dist/components/Form/types.d.ts +12 -0
  22. package/dist/components/Icons.d.ts +7 -0
  23. package/dist/components/index.d.ts +5 -0
  24. package/dist/hooks/index.d.ts +2 -0
  25. package/dist/hooks/useDebouncedValue.d.ts +3 -0
  26. package/dist/hooks/useOutsideClick.d.ts +2 -0
  27. package/dist/index.d.ts +3 -0
  28. package/dist/stratosphere-ui.d.ts +1 -0
  29. package/dist/stratosphere-ui.js +2800 -4230
  30. package/dist/types.d.ts +3 -0
  31. package/package.json +8 -4
  32. package/dist/stratosphere-ui.umd.cjs +0 -72
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface AlertMessagesProps {
3
+ maxMessages?: number;
4
+ }
5
+ export declare const AlertMessages: ({ maxMessages, }: AlertMessagesProps) => JSX.Element;
6
+ export default AlertMessages;
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { AlertProps } from 'react-daisyui';
3
+ export interface AlertMessage {
4
+ status: AlertProps['status'];
5
+ message: string;
6
+ }
7
+ export interface AlertMessagesContextData {
8
+ alertMessages: AlertMessage[];
9
+ addAlertMessages: (messages: AlertMessage[]) => void;
10
+ clearAlertMessages: () => void;
11
+ dismissAlertMessage: (index?: number) => void;
12
+ }
13
+ interface AlertMessagesProviderProps {
14
+ children: ReactNode;
15
+ }
16
+ export declare const useAlertMessages: () => AlertMessagesContextData;
17
+ export declare const AlertMessagesProvider: ({ children, }: AlertMessagesProviderProps) => JSX.Element;
18
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './AlertMessages';
2
+ export * from './AlertMessagesProvider';
@@ -0,0 +1,7 @@
1
+ import { ComponentProps, FC, MouseEvent } from 'react';
2
+ import { BadgeProps as DaisyUIBadgeProps } from 'react-daisyui';
3
+ export interface BadgeProps extends DaisyUIBadgeProps {
4
+ icon?: FC<ComponentProps<'svg'>>;
5
+ onDismiss?: (event: MouseEvent<HTMLButtonElement>) => void;
6
+ }
7
+ export declare const Badge: ({ children, className, icon, onDismiss, ...props }: BadgeProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { HTMLProps } from 'react';
2
+ export interface DropdownProps extends HTMLProps<HTMLDivElement> {
3
+ }
4
+ export declare const Dropdown: import("react").ForwardRefExoticComponent<Pick<DropdownProps, "color" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "cite" | "data" | "form" | "label" | "span" | "summary" | "pattern" | "size" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "shape" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "download" | "encType" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "width" | "wmode" | "wrap" | "key"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { MenuProps } from 'react-daisyui';
3
+ export interface DropdownMenuProps extends MenuProps {
4
+ }
5
+ export declare const DropdownMenu: import("react").ForwardRefExoticComponent<DropdownMenuProps & import("react").RefAttributes<HTMLUListElement>>;
@@ -0,0 +1,7 @@
1
+ import { HTMLProps } from 'react';
2
+ export interface DropdownOptionProps extends HTMLProps<HTMLAnchorElement> {
3
+ active?: boolean;
4
+ disabled?: boolean;
5
+ selected?: boolean;
6
+ }
7
+ export declare const DropdownOption: import("react").ForwardRefExoticComponent<Pick<DropdownOptionProps, "color" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "cite" | "data" | "form" | "label" | "span" | "summary" | "pattern" | "size" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "shape" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "download" | "encType" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "width" | "wmode" | "wrap" | "key" | "active"> & import("react").RefAttributes<HTMLLIElement>>;
@@ -0,0 +1,3 @@
1
+ export * from './Dropdown';
2
+ export * from './DropdownMenu';
3
+ export * from './DropdownOption';
@@ -0,0 +1,9 @@
1
+ import { HTMLProps, ReactNode } from 'react';
2
+ import { FieldValues, SubmitHandler, UseFormReturn } from 'react-hook-form';
3
+ export interface FormProps<Values extends FieldValues> extends HTMLProps<HTMLFormElement> {
4
+ children?: ReactNode;
5
+ methods: UseFormReturn<Values>;
6
+ onFormSubmit: SubmitHandler<Values>;
7
+ }
8
+ export declare const Form: <Values extends FieldValues>({ children, methods, onFormSubmit, ...props }: FormProps<Values>) => JSX.Element;
9
+ export default Form;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { InputProps } from 'react-daisyui';
3
+ import { FieldValues } from 'react-hook-form';
4
+ import { FormFieldProps, Transform } from './types';
5
+ export interface FormControlProps<Values extends FieldValues, TOutput> extends FormFieldProps<Values>, Omit<InputProps, 'name'> {
6
+ transform?: Transform<TOutput>;
7
+ }
8
+ export declare const FormControl: <Values extends FieldValues, TOutput>({ controllerProps, isRequired, labelText, name, transform, ...props }: FormControlProps<Values, TOutput>) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { HTMLProps } from 'react';
2
+ export interface FormErrorProps extends HTMLProps<HTMLLabelElement> {
3
+ }
4
+ export declare const FormError: import("react").ForwardRefExoticComponent<Pick<FormErrorProps, "color" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "cite" | "data" | "form" | "label" | "span" | "summary" | "pattern" | "size" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "shape" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "download" | "encType" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "width" | "wmode" | "wrap" | "key"> & import("react").RefAttributes<HTMLLabelElement>>;
@@ -0,0 +1,5 @@
1
+ import { HTMLProps } from 'react';
2
+ export interface FormLabelProps extends HTMLProps<HTMLLabelElement> {
3
+ isRequired?: boolean;
4
+ }
5
+ export declare const FormLabel: import("react").ForwardRefExoticComponent<Pick<FormLabelProps, "color" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "cite" | "data" | "form" | "label" | "span" | "summary" | "pattern" | "size" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "shape" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "download" | "encType" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "width" | "wmode" | "wrap" | "key" | "isRequired"> & import("react").RefAttributes<HTMLLabelElement>>;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { RadioProps } from 'react-daisyui';
3
+ import { FieldValues, UseControllerProps } from 'react-hook-form';
4
+ export interface RadioOption {
5
+ label: string;
6
+ value: string;
7
+ }
8
+ export interface FormRadioProps<Values extends FieldValues> extends UseControllerProps<Values> {
9
+ isRequired?: boolean;
10
+ labelText?: string;
11
+ options: RadioOption[];
12
+ radioProps?: RadioProps;
13
+ }
14
+ export declare const FormRadio: <Values extends FieldValues>({ isRequired, labelText, options, radioProps, ...props }: FormRadioProps<Values>) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ import { FieldValues } from 'react-hook-form';
3
+ import { TypeaheadSelectProps } from './TypeaheadSelect';
4
+ import { GenericDataType } from '../../../types';
5
+ export interface TypeaheadDropdownProps<DataItem extends GenericDataType, Values extends FieldValues> extends Pick<TypeaheadSelectProps<DataItem, Values>, 'getItemText' | 'getItemValue' | 'options'> {
6
+ children?: ReactNode;
7
+ isLoading: boolean;
8
+ onClose?: () => void;
9
+ show?: boolean;
10
+ showSelected?: boolean;
11
+ }
12
+ export declare const TypeaheadDropdown: <DataItem extends GenericDataType, Values extends FieldValues>({ children, getItemText, getItemValue, isLoading, onClose, options, show, showSelected, }: TypeaheadDropdownProps<DataItem, Values>) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { FieldValues } from 'react-hook-form';
3
+ import { TypeaheadSelectProps } from './TypeaheadSelect';
4
+ import { GenericDataType } from '../../../types';
5
+ export interface TypeaheadMultiSelectProps<DataItem extends GenericDataType, Values extends FieldValues> extends Omit<TypeaheadSelectProps<DataItem, Values>, 'multi'> {
6
+ }
7
+ export declare const TypeaheadMultiSelect: <DataItem extends GenericDataType, Values extends FieldValues>({ className, controllerProps, debounceTime, getItemText, getItemValue, inputRef, isRequired, labelText, name, onDebouncedChange, options, placeholder, }: TypeaheadMultiSelectProps<DataItem, Values>) => JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { RefObject } from 'react';
2
+ import { FieldValues } from 'react-hook-form';
3
+ import { UseTypeaheadInputOptions } from './useTypeaheadInput';
4
+ import { FormFieldProps } from '../types';
5
+ import { GenericDataType } from '../../../types';
6
+ export interface TypeaheadSelectProps<DataItem extends GenericDataType, Values extends FieldValues> extends UseTypeaheadInputOptions<DataItem>, FormFieldProps<Values> {
7
+ className?: string;
8
+ getItemText: (data: DataItem) => string;
9
+ getItemValue: (data: DataItem) => string;
10
+ inputRef?: RefObject<HTMLInputElement>;
11
+ multi?: true;
12
+ }
13
+ export declare const TypeaheadSelect: <DataItem extends GenericDataType, Values extends FieldValues>({ multi, ...props }: TypeaheadSelectProps<DataItem, Values>) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { FieldValues } from 'react-hook-form';
3
+ import { TypeaheadSelectProps } from './TypeaheadSelect';
4
+ import { GenericDataType } from '../../../types';
5
+ export interface TypeaheadSingleSelectProps<DataItem extends GenericDataType, Values extends FieldValues> extends Omit<TypeaheadSelectProps<DataItem, Values>, 'multi'> {
6
+ }
7
+ export declare const TypeaheadSingleSelect: <DataItem extends GenericDataType, Values extends FieldValues>({ className, controllerProps, debounceTime, getItemText, getItemValue, inputRef, isRequired, labelText, name, onDebouncedChange, options, placeholder, }: TypeaheadSingleSelectProps<DataItem, Values>) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './TypeaheadSelect';
@@ -0,0 +1,15 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { GenericDataType } from '../../../types';
3
+ export interface UseTypeaheadInputOptions<DataItem> {
4
+ debounceTime?: number;
5
+ onDebouncedChange: (value: string) => void;
6
+ options?: DataItem[];
7
+ }
8
+ export interface UseTypeaheadInputResult<DataItem> {
9
+ isLoading: boolean;
10
+ query: string;
11
+ selectedItem: DataItem | null;
12
+ setQuery: Dispatch<SetStateAction<string>>;
13
+ setSelectedItem: Dispatch<SetStateAction<DataItem | null>>;
14
+ }
15
+ export declare const useTypeaheadInput: <DataItem extends GenericDataType>({ debounceTime, onDebouncedChange, options, }: UseTypeaheadInputOptions<DataItem>) => UseTypeaheadInputResult<DataItem>;
@@ -0,0 +1,6 @@
1
+ export * from './Form';
2
+ export * from './FormControl';
3
+ export * from './FormError';
4
+ export * from './FormLabel';
5
+ export * from './FormRadio';
6
+ export * from './Typeahead';
@@ -0,0 +1,12 @@
1
+ import { FieldValues, Path, UseControllerProps } from 'react-hook-form';
2
+ export interface FormFieldProps<Values extends FieldValues> {
3
+ controllerProps?: Omit<UseControllerProps<Values>, 'name'>;
4
+ isRequired?: boolean;
5
+ labelText?: string;
6
+ name: Path<Values>;
7
+ placeholder?: string;
8
+ }
9
+ export interface Transform<TOutput> {
10
+ output: (val: string) => TOutput;
11
+ input: (val: TOutput) => string;
12
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const CheckIcon: () => JSX.Element;
3
+ export declare const CloseIcon: () => JSX.Element;
4
+ export declare const ErrorIcon: () => JSX.Element;
5
+ export declare const InfoIcon: () => JSX.Element;
6
+ export declare const SuccessIcon: () => JSX.Element;
7
+ export declare const WarningIcon: () => JSX.Element;
@@ -0,0 +1,5 @@
1
+ export * from './AlertMessages';
2
+ export * from './Badge';
3
+ export * from './Dropdown';
4
+ export * from './Form';
5
+ export * from './Icons';
@@ -0,0 +1,2 @@
1
+ export * from './useDebouncedValue';
2
+ export * from './useOutsideClick';
@@ -0,0 +1,3 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ export declare type UseDebouncedStateValue = string | number | boolean | null;
3
+ export declare const useDebouncedState: <Value extends UseDebouncedStateValue>(value: Value, delay: number) => [Value, Dispatch<SetStateAction<Value>>, Value, boolean];
@@ -0,0 +1,2 @@
1
+ import { RefObject } from 'react';
2
+ export declare const useOutsideClick: (ref: RefObject<HTMLElement>, onClick: (event: DocumentEventMap['mousedown']) => void) => void;
@@ -0,0 +1,3 @@
1
+ export * from './components';
2
+ export * from './hooks';
3
+ export * from './types';
@@ -0,0 +1 @@
1
+ export * from './index'