@solace-health/ui 0.5.3 → 0.5.5

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
@@ -11,17 +11,17 @@ import * as react_hook_form from 'react-hook-form';
11
11
  import { UseFormReturn } from 'react-hook-form';
12
12
  export { useForm, useFormContext } from 'react-hook-form';
13
13
 
14
- declare type Props$9 = {
14
+ declare type Props$8 = {
15
15
  children: React.ReactNode;
16
16
  isSubmitting?: boolean;
17
17
  [extraProps: string]: unknown;
18
18
  };
19
19
  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;
20
+ Primary: ({ children, isSubmitting, ...extraProps }: Props$8) => react_jsx_runtime.JSX.Element;
21
+ Outline: ({ children, isSubmitting, ...extraProps }: Props$8) => react_jsx_runtime.JSX.Element;
22
+ Unstyled: ({ children, isSubmitting, ...extraProps }: Props$8) => react_jsx_runtime.JSX.Element;
23
+ Secondary: ({ children, isSubmitting, ...extraProps }: Props$8) => react_jsx_runtime.JSX.Element;
24
+ Link: ({ children, ...extraProps }: Props$8) => react_jsx_runtime.JSX.Element;
25
25
  };
26
26
 
27
27
  declare const _default$2: {
@@ -77,22 +77,22 @@ declare const _default$2: {
77
77
  }) => react_jsx_runtime.JSX.Element;
78
78
  };
79
79
 
80
- declare type Props$8 = {
80
+ declare type Props$7 = {
81
81
  startTime?: string;
82
82
  endTime?: string;
83
83
  interval?: number;
84
84
  defaultValue?: string;
85
85
  onChange?: (e: unknown) => void;
86
86
  };
87
- declare const TimeSelect: ({ startTime, endTime, interval, defaultValue, onChange, }: Props$8) => react_jsx_runtime.JSX.Element;
87
+ declare const TimeSelect: ({ startTime, endTime, interval, defaultValue, onChange, }: Props$7) => react_jsx_runtime.JSX.Element;
88
88
 
89
- declare type Props$7 = {
89
+ declare type Props$6 = {
90
90
  value?: string;
91
91
  onChange?: (date: any) => void;
92
92
  };
93
- declare const DateSelect: ({ value, onChange }: Props$7) => react_jsx_runtime.JSX.Element;
93
+ declare const DateSelect: ({ value, onChange }: Props$6) => react_jsx_runtime.JSX.Element;
94
94
 
95
- declare type Props$6 = {
95
+ declare type Props$5 = {
96
96
  onChange: (value: string) => void;
97
97
  options: string[] | number[] | Array<{
98
98
  label: FunctionalComponent;
@@ -105,7 +105,7 @@ declare type Props$6 = {
105
105
  defaultValue: string;
106
106
  block: boolean;
107
107
  };
108
- declare const Segmented: ({ onChange, options, size, defaultValue, block, }: Props$6) => react_jsx_runtime.JSX.Element;
108
+ declare const Segmented: ({ onChange, options, size, defaultValue, block, }: Props$5) => react_jsx_runtime.JSX.Element;
109
109
 
110
110
  declare enum Size {
111
111
  XL = "xl",
@@ -115,11 +115,11 @@ declare enum Size {
115
115
  XS = "xs"
116
116
  }
117
117
 
118
- declare type Props$5 = {
118
+ declare type Props$4 = {
119
119
  color?: string;
120
120
  size?: Size;
121
121
  };
122
- declare const LoadingSpinner: ({ color, size, }: Props$5) => react_jsx_runtime.JSX.Element;
122
+ declare const LoadingSpinner: ({ color, size, }: Props$4) => react_jsx_runtime.JSX.Element;
123
123
 
124
124
  declare enum ContentfulLottieFileSlug {
125
125
  LOADING_LISTINGS = "loadingListings"
@@ -137,7 +137,7 @@ declare class Contentful {
137
137
  getImage(slug: string): Promise<any>;
138
138
  }
139
139
 
140
- declare type Props$4 = {
140
+ declare type Props$3 = {
141
141
  height: number | string;
142
142
  width: number | string;
143
143
  loop: boolean;
@@ -147,25 +147,26 @@ declare type Props$4 = {
147
147
  accessToken: string;
148
148
  };
149
149
  };
150
- declare const LottieAnimation: ({ height, width, loop, slug, contentfulConfig, }: Props$4) => react_jsx_runtime.JSX.Element | null;
150
+ declare const LottieAnimation: ({ height, width, loop, slug, contentfulConfig, }: Props$3) => react_jsx_runtime.JSX.Element | null;
151
151
 
152
- declare type Props$3 = {
152
+ declare type Props$2 = {
153
153
  children: React.ReactNode;
154
154
  isOpen: boolean;
155
155
  onClose?: () => void;
156
156
  style?: CSSProperties;
157
157
  };
158
- declare const Modal: ({ children, isOpen, onClose, style, }: Props$3) => react_jsx_runtime.JSX.Element | null;
158
+ declare const Modal: ({ children, isOpen, onClose, style, }: Props$2) => react_jsx_runtime.JSX.Element | null;
159
159
 
160
- declare type Props$2 = {
160
+ declare type Props$1 = {
161
161
  color: string;
162
162
  };
163
- declare const SolaceLogo: ({ color }: Props$2) => react_jsx_runtime.JSX.Element;
163
+ declare const SolaceLogo: ({ color }: Props$1) => react_jsx_runtime.JSX.Element;
164
164
 
165
- declare type Props$1 = {
165
+ declare type ProviderProps = {
166
166
  children: React.ReactNode;
167
+ theme?: Record<string, unknown>;
167
168
  };
168
- declare const SolaceThemeProvider: ({ children }: Props$1) => react_jsx_runtime.JSX.Element;
169
+ declare const SolaceThemeProvider: ({ children, theme, }: ProviderProps) => react_jsx_runtime.JSX.Element;
169
170
 
170
171
  declare type Props = {
171
172
  active?: boolean;
@@ -251,7 +252,7 @@ declare const _default: {
251
252
  delayError: number;
252
253
  }> | undefined;
253
254
  onSubmit: (data: any) => void;
254
- children: string | JSX.Element | JSX.Element[];
255
+ children: react.ReactNode;
255
256
  className?: string | undefined;
256
257
  }) => react_jsx_runtime.JSX.Element;
257
258
  Checkbox: ({ option, name, ...inputProps }: {