@solace-health/ui 0.6.2 → 0.6.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.
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { CSSProperties } from 'react';
2
4
  import * as contentful from 'contentful';
3
5
  import * as preact from 'preact';
4
6
  import { FunctionalComponent } from 'preact';
5
- import * as react from 'react';
6
- import { CSSProperties } from 'react';
7
7
  import * as react_hook_form from 'react-hook-form';
8
8
  import { UseFormReturn } from 'react-hook-form';
9
9
  export { useForm, useFormContext } from 'react-hook-form';
@@ -11,26 +11,41 @@ import * as _emotion_styled from '@emotion/styled';
11
11
  export { default as styled } from '@emotion/styled';
12
12
  import * as _emotion_react from '@emotion/react';
13
13
 
14
- declare type Props$9 = {
14
+ declare type Props$a = {
15
15
  children: React.ReactNode;
16
16
  isSubmitting?: boolean;
17
+ toolTip?: {
18
+ title: string;
19
+ color?: string;
20
+ };
17
21
  [extraProps: string]: unknown;
18
22
  };
19
23
  declare const _default$3: {
20
- Primary: ({ children, isSubmitting, ...extraProps }: Props$9) => react_jsx_runtime.JSX.Element;
21
- Outline: ({ children, isSubmitting, ...extraProps }: Props$9) => react_jsx_runtime.JSX.Element;
22
- Unstyled: ({ children, isSubmitting, ...extraProps }: Props$9) => react_jsx_runtime.JSX.Element;
23
- Secondary: ({ children, isSubmitting, ...extraProps }: Props$9) => react_jsx_runtime.JSX.Element;
24
- Link: ({ children, ...extraProps }: Props$9) => react_jsx_runtime.JSX.Element;
24
+ Primary: ({ children, isSubmitting, toolTip, ...extraProps }: Props$a) => react_jsx_runtime.JSX.Element;
25
+ Outline: ({ children, isSubmitting, toolTip, ...extraProps }: Props$a) => react_jsx_runtime.JSX.Element;
26
+ Unstyled: ({ children, isSubmitting, toolTip, ...extraProps }: Props$a) => react_jsx_runtime.JSX.Element;
27
+ Secondary: ({ children, isSubmitting, toolTip, ...extraProps }: Props$a) => react_jsx_runtime.JSX.Element;
28
+ Link: ({ children, toolTip, ...extraProps }: Props$a) => react_jsx_runtime.JSX.Element;
25
29
  };
26
30
 
27
- declare type Props$8 = {
31
+ declare type Props$9 = {
28
32
  value?: string | null;
29
33
  onChange: (date: string) => void;
30
34
  startRange?: Date | null;
31
35
  endRange?: Date | null;
32
36
  };
33
- declare const DateSelect: ({ value, onChange, startRange, endRange, }: Props$8) => react_jsx_runtime.JSX.Element;
37
+ declare const DateSelect: ({ value, onChange, startRange, endRange, }: Props$9) => react_jsx_runtime.JSX.Element;
38
+
39
+ declare type Props$8 = {
40
+ isOpen: boolean;
41
+ onClose: () => void;
42
+ children: React.ReactNode;
43
+ placement: "top" | "right" | "bottom" | "left";
44
+ headerStyle?: CSSProperties;
45
+ title?: string;
46
+ [extraProps: string]: unknown;
47
+ };
48
+ declare const Drawer: ({ isOpen, onClose, children, title, placement, headerStyle, ...extraProps }: Props$8) => react_jsx_runtime.JSX.Element;
34
49
 
35
50
  declare const _default$2: {
36
51
  AddCircle: ({ color }: {
@@ -210,7 +225,7 @@ declare const _default$1: {
210
225
  formMethods?: UseFormReturn<any, any> | null | undefined;
211
226
  formOptions?: Partial<{
212
227
  mode: keyof react_hook_form.ValidationMode;
213
- reValidateMode: "onBlur" | "onChange" | "onSubmit";
228
+ reValidateMode: "onChange" | "onBlur" | "onSubmit";
214
229
  defaultValues: {
215
230
  [x: string]: any;
216
231
  } | ((payload?: unknown) => Promise<react_hook_form.FieldValues>);
@@ -407,4 +422,4 @@ declare const VantaLogo: ({ contentfulConfig, size, }: {
407
422
  size?: number | undefined;
408
423
  }) => react_jsx_runtime.JSX.Element | null;
409
424
 
410
- export { _default$3 as Button, Contentful, ContentfulLottieFileSlug, DateSelect, _default$1 as Form, _default$2 as Icons, LoadingSpinner, LottieAnimation, Modal, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, TimeSelect, Toggle, Tooltip, _default as Typography, VantaLogo };
425
+ export { _default$3 as Button, Contentful, ContentfulLottieFileSlug, DateSelect, Drawer, _default$1 as Form, _default$2 as Icons, LoadingSpinner, LottieAnimation, Modal, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, TimeSelect, Toggle, Tooltip, _default as Typography, VantaLogo };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { CSSProperties } from 'react';
2
4
  import * as contentful from 'contentful';
3
5
  import * as preact from 'preact';
4
6
  import { FunctionalComponent } from 'preact';
5
- import * as react from 'react';
6
- import { CSSProperties } from 'react';
7
7
  import * as react_hook_form from 'react-hook-form';
8
8
  import { UseFormReturn } from 'react-hook-form';
9
9
  export { useForm, useFormContext } from 'react-hook-form';
@@ -11,26 +11,41 @@ import * as _emotion_styled from '@emotion/styled';
11
11
  export { default as styled } from '@emotion/styled';
12
12
  import * as _emotion_react from '@emotion/react';
13
13
 
14
- declare type Props$9 = {
14
+ declare type Props$a = {
15
15
  children: React.ReactNode;
16
16
  isSubmitting?: boolean;
17
+ toolTip?: {
18
+ title: string;
19
+ color?: string;
20
+ };
17
21
  [extraProps: string]: unknown;
18
22
  };
19
23
  declare const _default$3: {
20
- Primary: ({ children, isSubmitting, ...extraProps }: Props$9) => react_jsx_runtime.JSX.Element;
21
- Outline: ({ children, isSubmitting, ...extraProps }: Props$9) => react_jsx_runtime.JSX.Element;
22
- Unstyled: ({ children, isSubmitting, ...extraProps }: Props$9) => react_jsx_runtime.JSX.Element;
23
- Secondary: ({ children, isSubmitting, ...extraProps }: Props$9) => react_jsx_runtime.JSX.Element;
24
- Link: ({ children, ...extraProps }: Props$9) => react_jsx_runtime.JSX.Element;
24
+ Primary: ({ children, isSubmitting, toolTip, ...extraProps }: Props$a) => react_jsx_runtime.JSX.Element;
25
+ Outline: ({ children, isSubmitting, toolTip, ...extraProps }: Props$a) => react_jsx_runtime.JSX.Element;
26
+ Unstyled: ({ children, isSubmitting, toolTip, ...extraProps }: Props$a) => react_jsx_runtime.JSX.Element;
27
+ Secondary: ({ children, isSubmitting, toolTip, ...extraProps }: Props$a) => react_jsx_runtime.JSX.Element;
28
+ Link: ({ children, toolTip, ...extraProps }: Props$a) => react_jsx_runtime.JSX.Element;
25
29
  };
26
30
 
27
- declare type Props$8 = {
31
+ declare type Props$9 = {
28
32
  value?: string | null;
29
33
  onChange: (date: string) => void;
30
34
  startRange?: Date | null;
31
35
  endRange?: Date | null;
32
36
  };
33
- declare const DateSelect: ({ value, onChange, startRange, endRange, }: Props$8) => react_jsx_runtime.JSX.Element;
37
+ declare const DateSelect: ({ value, onChange, startRange, endRange, }: Props$9) => react_jsx_runtime.JSX.Element;
38
+
39
+ declare type Props$8 = {
40
+ isOpen: boolean;
41
+ onClose: () => void;
42
+ children: React.ReactNode;
43
+ placement: "top" | "right" | "bottom" | "left";
44
+ headerStyle?: CSSProperties;
45
+ title?: string;
46
+ [extraProps: string]: unknown;
47
+ };
48
+ declare const Drawer: ({ isOpen, onClose, children, title, placement, headerStyle, ...extraProps }: Props$8) => react_jsx_runtime.JSX.Element;
34
49
 
35
50
  declare const _default$2: {
36
51
  AddCircle: ({ color }: {
@@ -210,7 +225,7 @@ declare const _default$1: {
210
225
  formMethods?: UseFormReturn<any, any> | null | undefined;
211
226
  formOptions?: Partial<{
212
227
  mode: keyof react_hook_form.ValidationMode;
213
- reValidateMode: "onBlur" | "onChange" | "onSubmit";
228
+ reValidateMode: "onChange" | "onBlur" | "onSubmit";
214
229
  defaultValues: {
215
230
  [x: string]: any;
216
231
  } | ((payload?: unknown) => Promise<react_hook_form.FieldValues>);
@@ -407,4 +422,4 @@ declare const VantaLogo: ({ contentfulConfig, size, }: {
407
422
  size?: number | undefined;
408
423
  }) => react_jsx_runtime.JSX.Element | null;
409
424
 
410
- export { _default$3 as Button, Contentful, ContentfulLottieFileSlug, DateSelect, _default$1 as Form, _default$2 as Icons, LoadingSpinner, LottieAnimation, Modal, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, TimeSelect, Toggle, Tooltip, _default as Typography, VantaLogo };
425
+ export { _default$3 as Button, Contentful, ContentfulLottieFileSlug, DateSelect, Drawer, _default$1 as Form, _default$2 as Icons, LoadingSpinner, LottieAnimation, Modal, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, TimeSelect, Toggle, Tooltip, _default as Typography, VantaLogo };