enefit-design-system 0.0.16 → 0.0.25

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/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+
1
3
  import { AriaButtonProps } from 'react-aria';
2
4
  import { AriaCalendarProps } from 'react-aria';
3
5
  import { AriaCheckboxGroupProps } from 'react-aria';
@@ -5,9 +7,11 @@ import { AriaCheckboxProps } from 'react-aria';
5
7
  import { AriaComboBoxProps } from '@react-types/combobox';
6
8
  import { AriaDatePickerProps } from 'react-aria';
7
9
  import { AriaDialogProps } from 'react-aria';
10
+ import { AriaModalOverlayProps } from 'react-aria';
8
11
  import { AriaPopoverProps } from 'react-aria';
9
12
  import { AriaRadioGroupProps } from 'react-aria';
10
13
  import { AriaRadioProps } from 'react-aria';
14
+ import { AriaSearchFieldProps } from 'react-aria';
11
15
  import { AriaSelectOptions } from 'react-aria';
12
16
  import { AriaSliderProps } from 'react-aria';
13
17
  import { AriaSwitchProps } from 'react-aria';
@@ -17,10 +21,14 @@ import { AriaToastRegionProps } from '@react-aria/toast';
17
21
  import { CollectionChildren } from '@react-types/shared';
18
22
  import { DateValue } from '@react-types/calendar';
19
23
  import { default as default_2 } from 'react';
24
+ import { ForwardRefExoticComponent } from 'react';
20
25
  import { JSX as JSX_2 } from 'react';
26
+ import { OverlayTriggerProps } from 'react-stately';
21
27
  import { OverlayTriggerState } from 'react-stately';
22
28
  import { QueuedToast } from '@react-stately/toast';
29
+ import { ReactElement } from 'react';
23
30
  import { ReactNode } from 'react';
31
+ import { RefAttributes } from 'react';
24
32
  import { RefObject } from 'react';
25
33
  import { SVGProps } from 'react';
26
34
  import { default as tailwind } from '../output/variables/tailwind.json';
@@ -176,6 +184,23 @@ export declare function Heading({ variant, as, className, children, ...props }:
176
184
  [key: string]: any;
177
185
  }): JSX_2.Element;
178
186
 
187
+ declare type HeadingProps = {
188
+ id?: string;
189
+ variant: HeadingVariant;
190
+ children?: React.ReactNode;
191
+ as?: React.ElementType;
192
+ className?: string;
193
+ italic?: boolean;
194
+ underline?: boolean;
195
+ weight?: '400' | '600';
196
+ uppercase?: boolean;
197
+ dangerouslySetInnerHTML?: {
198
+ __html: string | TrustedHTML;
199
+ };
200
+ };
201
+
202
+ declare type HeadingVariant = 'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'leadtext' | 'subheadline';
203
+
179
204
  export declare const IconAccidentHouseLg: (props: SVGProps<SVGSVGElement>) => JSX_2.Element;
180
205
 
181
206
  export declare const IconAccidentHouseMd: (props: SVGProps<SVGSVGElement>) => JSX_2.Element;
@@ -1815,6 +1840,38 @@ export declare function Label({ size, weight, className, children, ...props }: {
1815
1840
  [key: string]: any;
1816
1841
  }): JSX_2.Element;
1817
1842
 
1843
+ export declare const Modal: ({ state, children, visible, exitDelay, ...props }: ModalProps) => default_2.JSX.Element;
1844
+
1845
+ export declare const ModalDialog: ({ title, close, children, footer, className, hasInnerScroll, closeButtonAriaLabel, closeButtonTooltipLabel, titleAs, titleVariant, ...props }: ModalDialogProps) => default_2.JSX.Element;
1846
+
1847
+ declare interface ModalDialogProps extends AriaDialogProps {
1848
+ title?: string;
1849
+ close?: () => void;
1850
+ children: ReactNode;
1851
+ footer?: ReactNode;
1852
+ className?: string;
1853
+ hasInnerScroll?: boolean;
1854
+ closeButtonAriaLabel?: string;
1855
+ closeButtonTooltipLabel?: ButtonProps['tooltipLabel'];
1856
+ titleAs?: HeadingProps['as'];
1857
+ titleVariant?: HeadingProps['variant'];
1858
+ }
1859
+
1860
+ declare interface ModalProps extends AriaModalOverlayProps {
1861
+ state: OverlayTriggerState;
1862
+ children: ReactNode;
1863
+ visible: boolean;
1864
+ exitDelay: number;
1865
+ }
1866
+
1867
+ export declare const ModalTrigger: ({ label, children, customTrigger, ...props }: ModalTriggerProps) => default_2.JSX.Element;
1868
+
1869
+ declare interface ModalTriggerProps extends Omit<ButtonProps, 'children'>, OverlayTriggerProps, AriaModalOverlayProps {
1870
+ label?: ReactNode;
1871
+ children: (close: () => void) => ReactElement;
1872
+ customTrigger?: boolean;
1873
+ }
1874
+
1818
1875
  export declare const Phone: (props: PhoneProps) => default_2.JSX.Element;
1819
1876
 
1820
1877
  declare interface PhoneProps extends Omit<AriaTextFieldProps, 'errorMessage'> {
@@ -1859,6 +1916,12 @@ declare interface RadioProps extends AriaRadioProps {
1859
1916
 
1860
1917
  declare type RegionPosition = 'top-left' | 'top-right' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center';
1861
1918
 
1919
+ export declare const SearchField: ForwardRefExoticComponent<SearchFieldProps & RefAttributes<HTMLInputElement>>;
1920
+
1921
+ declare interface SearchFieldProps extends AriaSearchFieldProps {
1922
+ title?: string;
1923
+ }
1924
+
1862
1925
  export declare const Select: default_2.ForwardRefExoticComponent<SelectProps & default_2.RefAttributes<HTMLButtonElement>>;
1863
1926
 
1864
1927
  declare interface SelectProps extends Omit<AriaSelectOptions<object>, 'errorMessage'> {