stratosphere-ui 0.2.8 → 0.3.0

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.
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { ButtonProps } from 'react-daisyui';
3
+ export interface DisclosureProps {
4
+ buttonProps?: ButtonProps;
5
+ children: ReactNode;
6
+ className?: string;
7
+ rounded?: boolean;
8
+ }
9
+ export declare const Disclosure: ({ buttonProps: { children: buttonChildren, className: buttonClassName, ...buttonProps }, children, className, rounded, }: DisclosureProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Disclosure';
@@ -0,0 +1,9 @@
1
+ import { RadioGroupProps } from '@headlessui/react';
2
+ import { ReactNode } from 'react';
3
+ import { FieldValues } from 'react-hook-form';
4
+ import { FormFieldProps } from './types';
5
+ export interface FormRadioGroupProps<Values extends FieldValues> extends Omit<FormFieldProps<Values>, 'placeholder' | 'showDirty'>, Omit<RadioGroupProps<'button', string>, 'children' | 'className' | 'name' | 'onChange' | 'value'> {
6
+ children: ReactNode;
7
+ className?: string;
8
+ }
9
+ export declare const FormRadioGroup: <Values extends FieldValues>({ children, className, controllerProps, isRequired, labelText, name, ...props }: FormRadioGroupProps<Values>) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps } from 'react-daisyui';
3
+ export interface FormRadioGroupOptionProps extends ButtonProps {
4
+ value: string;
5
+ }
6
+ export declare const FormRadioGroupOption: ({ children, disabled, value, ...props }: FormRadioGroupOptionProps) => JSX.Element;
@@ -5,6 +5,8 @@ export * from './FormError';
5
5
  export * from './FormFileInput';
6
6
  export * from './FormLabel';
7
7
  export * from './FormRadio';
8
+ export * from './FormRadioGroup';
9
+ export * from './FormRadioGroupOption';
8
10
  export * from './FormRangeSlider';
9
11
  export * from './FormTextarea';
10
12
  export * from './FormToggleSwitch';
@@ -1,5 +1,7 @@
1
1
  import { SVGProps } from 'react';
2
2
  export declare const CheckIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
3
+ export declare const ChevronDownIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
4
+ export declare const ChevronUpIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
3
5
  export declare const CloseIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
4
6
  export declare const ErrorIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
5
7
  export declare const EyeIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -1,5 +1,6 @@
1
1
  export * from './AlertMessages';
2
2
  export * from './Badge';
3
+ export * from './Disclosure';
3
4
  export * from './DropdownMenu';
4
5
  export * from './Form';
5
6
  export * from './FullScreenLoader';