@solace-health/ui 0.5.10 → 0.5.12

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,406 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as contentful from 'contentful';
3
+ import * as react from 'react';
4
+ import { CSSProperties } from 'react';
5
+ import * as preact from 'preact';
6
+ import { FunctionalComponent } from 'preact';
7
+ import * as react_hook_form from 'react-hook-form';
8
+ import { UseFormReturn } from 'react-hook-form';
9
+ export { useForm, useFormContext } from 'react-hook-form';
10
+ import * as _emotion_styled from '@emotion/styled';
11
+ export { default as styled } from '@emotion/styled';
12
+ import * as _emotion_react from '@emotion/react';
13
+
14
+ declare type Props$9 = {
15
+ children: React.ReactNode;
16
+ isSubmitting?: boolean;
17
+ [extraProps: string]: unknown;
18
+ };
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;
25
+ };
26
+
27
+ declare type Props$8 = {
28
+ value?: string;
29
+ onChange?: (date: any) => void;
30
+ };
31
+ declare const DateSelect: ({ value, onChange }: Props$8) => react_jsx_runtime.JSX.Element;
32
+
33
+ declare const _default$2: {
34
+ AddCircle: ({ color }: {
35
+ color?: string | undefined;
36
+ }) => react_jsx_runtime.JSX.Element;
37
+ Copy: ({ color }: {
38
+ color?: string | undefined;
39
+ }) => react_jsx_runtime.JSX.Element;
40
+ Caret: ({ color, direction }: {
41
+ color?: string | undefined;
42
+ direction?: "left" | "right" | "up" | "down" | undefined;
43
+ }) => react_jsx_runtime.JSX.Element;
44
+ Calendar: () => react_jsx_runtime.JSX.Element;
45
+ Check: ({ color }: {
46
+ color?: string | undefined;
47
+ }) => react_jsx_runtime.JSX.Element;
48
+ Close: ({ color }: {
49
+ color?: string | undefined;
50
+ }) => react_jsx_runtime.JSX.Element;
51
+ DefaultFile: ({ fill }: {
52
+ fill?: string | undefined;
53
+ }) => react_jsx_runtime.JSX.Element;
54
+ Heart: ({ height, width, }: {
55
+ height?: string | undefined;
56
+ width?: string | undefined;
57
+ }) => react_jsx_runtime.JSX.Element;
58
+ HeartPulse: () => JSX.Element;
59
+ IdBadge: () => react_jsx_runtime.JSX.Element;
60
+ LightBulb: () => react_jsx_runtime.JSX.Element;
61
+ LocationPin: ({ className }: {
62
+ className?: string | undefined;
63
+ }) => react_jsx_runtime.JSX.Element;
64
+ Permissions: ({ size, color, }: {
65
+ size?: string | undefined;
66
+ color?: string | undefined;
67
+ }) => react_jsx_runtime.JSX.Element;
68
+ Phone: ({ fill, className }: {
69
+ fill?: string | undefined;
70
+ className?: string | undefined;
71
+ }) => react_jsx_runtime.JSX.Element;
72
+ RatingStar: ({ filled }: {
73
+ filled: boolean;
74
+ }) => react_jsx_runtime.JSX.Element;
75
+ Sparkles: () => react_jsx_runtime.JSX.Element;
76
+ Sun: () => JSX.Element;
77
+ Signature: ({ color }: {
78
+ color?: string | undefined;
79
+ }) => react_jsx_runtime.JSX.Element;
80
+ Trash: ({ fill, className, }: {
81
+ fill?: string | undefined;
82
+ className?: string | undefined;
83
+ }) => react_jsx_runtime.JSX.Element;
84
+ };
85
+
86
+ declare enum Size {
87
+ XL = "xl",
88
+ LG = "lg",
89
+ MD = "md",
90
+ SM = "sm",
91
+ XS = "xs"
92
+ }
93
+
94
+ declare type Props$7 = {
95
+ color?: string;
96
+ size?: Size;
97
+ };
98
+ declare const LoadingSpinner: ({ color, size, }: Props$7) => react_jsx_runtime.JSX.Element;
99
+
100
+ declare enum ContentfulLottieFileSlug {
101
+ LOADING_LISTINGS = "loadingListings"
102
+ }
103
+ declare type ContentfulConfig = {
104
+ space: string;
105
+ accessToken: string;
106
+ };
107
+ declare class Contentful {
108
+ client: contentful.ContentfulClientApi<undefined>;
109
+ constructor(contentfulConfig: ContentfulConfig);
110
+ getLottieFile({ slug }: {
111
+ slug: ContentfulLottieFileSlug;
112
+ }): Promise<null>;
113
+ getImage(slug: string): Promise<any>;
114
+ }
115
+
116
+ declare type Props$6 = {
117
+ height: number | string;
118
+ width: number | string;
119
+ loop: boolean;
120
+ slug: ContentfulLottieFileSlug;
121
+ contentfulConfig: {
122
+ space: string;
123
+ accessToken: string;
124
+ };
125
+ };
126
+ declare const LottieAnimation: ({ height, width, loop, slug, contentfulConfig, }: Props$6) => react_jsx_runtime.JSX.Element | null;
127
+
128
+ declare type Props$5 = {
129
+ children: React.ReactNode;
130
+ isOpen: boolean;
131
+ onClose?: () => void;
132
+ style?: CSSProperties;
133
+ };
134
+ declare const Modal: ({ children, isOpen, onClose, style, }: Props$5) => react_jsx_runtime.JSX.Element | null;
135
+
136
+ declare type Props$4 = {
137
+ onChange: (value: string) => void;
138
+ options: string[] | number[] | Array<{
139
+ label: FunctionalComponent;
140
+ value: string;
141
+ icon?: FunctionalComponent;
142
+ disabled?: boolean;
143
+ className?: string;
144
+ }>;
145
+ size: "small" | "middle" | "large";
146
+ defaultValue: string;
147
+ block: boolean;
148
+ };
149
+ declare const Segmented: ({ onChange, options, size, defaultValue, block, }: Props$4) => react_jsx_runtime.JSX.Element;
150
+
151
+ declare type Props$3 = {
152
+ color: string;
153
+ };
154
+ declare const SolaceLogo: ({ color }: Props$3) => react_jsx_runtime.JSX.Element;
155
+
156
+ declare type Props$2 = {
157
+ items: {
158
+ label: string;
159
+ key: string;
160
+ children: string | React.ReactNode;
161
+ }[];
162
+ className?: string;
163
+ defaultActiveKey?: string;
164
+ };
165
+ declare const Tabs: ({ items, className, ...otherProps }: Props$2) => react_jsx_runtime.JSX.Element;
166
+
167
+ declare type Props$1 = {
168
+ startTime?: string;
169
+ endTime?: string;
170
+ interval?: number;
171
+ defaultValue?: string;
172
+ onChange?: (e: unknown) => void;
173
+ };
174
+ declare const TimeSelect: ({ startTime, endTime, interval, defaultValue, onChange, }: Props$1) => react_jsx_runtime.JSX.Element;
175
+
176
+ declare type ToggleProps = {
177
+ defaultState?: boolean;
178
+ name: string;
179
+ label?: {
180
+ active: string;
181
+ inactive: string;
182
+ };
183
+ handleEvent?: ((isToggled: boolean) => void) | null;
184
+ value: string | number | undefined;
185
+ disabled?: boolean;
186
+ };
187
+ declare const Toggle: ({ defaultState, name, label, handleEvent, value, disabled, }: ToggleProps) => react_jsx_runtime.JSX.Element;
188
+
189
+ declare type Props = {
190
+ active?: boolean;
191
+ children: React.ReactNode;
192
+ content: string | null;
193
+ describedby: string;
194
+ style?: CSSProperties;
195
+ };
196
+ declare const Tooltip: ({ active, children, content, describedby, style, }: Props) => react_jsx_runtime.JSX.Element;
197
+
198
+ declare type ProviderProps = {
199
+ children: React.ReactNode;
200
+ theme?: Record<string, unknown>;
201
+ };
202
+ declare const SolaceThemeProvider: ({ children, theme, }: ProviderProps) => react_jsx_runtime.JSX.Element;
203
+
204
+ declare const _default$1: {
205
+ Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
206
+ formMethods?: UseFormReturn<any, any> | null | undefined;
207
+ formOptions?: Partial<{
208
+ mode: keyof react_hook_form.ValidationMode;
209
+ reValidateMode: "onBlur" | "onChange" | "onSubmit";
210
+ defaultValues: {
211
+ [x: string]: any;
212
+ } | ((payload?: unknown) => Promise<react_hook_form.FieldValues>);
213
+ values: react_hook_form.FieldValues;
214
+ resetOptions: Partial<{
215
+ keepDirtyValues: boolean;
216
+ keepErrors: boolean;
217
+ keepDirty: boolean;
218
+ keepValues: boolean;
219
+ keepDefaultValues: boolean;
220
+ keepIsSubmitted: boolean;
221
+ keepTouched: boolean;
222
+ keepIsValid: boolean;
223
+ keepSubmitCount: boolean;
224
+ }> | undefined;
225
+ resolver: react_hook_form.Resolver<react_hook_form.FieldValues, any>;
226
+ context: any;
227
+ shouldFocusError: boolean;
228
+ shouldUnregister: boolean;
229
+ shouldUseNativeValidation: boolean;
230
+ criteriaMode: react_hook_form.CriteriaMode;
231
+ delayError: number;
232
+ }> | undefined;
233
+ onSubmit: (data: any) => void;
234
+ children: react.ReactNode;
235
+ className?: string | undefined;
236
+ }) => react_jsx_runtime.JSX.Element;
237
+ Checkbox: ({ option, name, ...inputProps }: {
238
+ [inputProps: string]: unknown;
239
+ option: {
240
+ label: string | preact.Component<{}, {}>;
241
+ value: string;
242
+ };
243
+ name: string;
244
+ }) => react_jsx_runtime.JSX.Element;
245
+ CheckboxGroup: ({ name, label, details, options, inline, other, ...inputProps }: {
246
+ [inputProps: string]: unknown;
247
+ name: string;
248
+ label: string | HTMLElement;
249
+ details?: string | undefined;
250
+ inline?: boolean | undefined;
251
+ other?: {
252
+ label: string | preact.Component<{}, {}>;
253
+ } | undefined;
254
+ options: {
255
+ label: string;
256
+ value: string;
257
+ }[];
258
+ }) => react_jsx_runtime.JSX.Element;
259
+ DateSelect: ({ label, isLabelBold, name, options, ...inputProps }: {
260
+ [inputProps: string]: unknown;
261
+ label?: string | null | undefined;
262
+ isLabelBold?: boolean | undefined;
263
+ name: string;
264
+ options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
265
+ }) => react_jsx_runtime.JSX.Element;
266
+ TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom, isLabelBold, format, errorMessage, ...inputProps }: {
267
+ [inputProps: string]: unknown;
268
+ name: string;
269
+ label?: string | null | undefined;
270
+ details?: string | null | undefined;
271
+ type?: string | undefined;
272
+ options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
273
+ previewOnly?: boolean | undefined;
274
+ textArea?: boolean | undefined;
275
+ marginBottom?: string | undefined;
276
+ placeholder?: string | undefined;
277
+ isLabelBold?: boolean | undefined;
278
+ format?: any;
279
+ errorMessage?: string | undefined;
280
+ }) => react_jsx_runtime.JSX.Element;
281
+ TimeSelect: ({ label, name, ...inputProps }: {
282
+ [inputProps: string]: unknown;
283
+ label?: string | undefined;
284
+ name: string;
285
+ options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
286
+ }) => react_jsx_runtime.JSX.Element;
287
+ Radio: ({ option, name, inline, ...inputProps }: {
288
+ [inputProps: string]: unknown;
289
+ option: {
290
+ label: string;
291
+ value: string;
292
+ };
293
+ name: string;
294
+ inline: boolean;
295
+ }) => react_jsx_runtime.JSX.Element;
296
+ RadioGroup: ({ name, label, details, options, inline, allowOther, ...inputProps }: {
297
+ [inputProps: string]: unknown;
298
+ name: string;
299
+ label: string;
300
+ details?: string | undefined;
301
+ inline?: boolean | undefined;
302
+ allowOther?: boolean | undefined;
303
+ options: {
304
+ label: string;
305
+ value: string;
306
+ }[];
307
+ }) => react_jsx_runtime.JSX.Element;
308
+ Select: ({ label, name, details, placeholder, options, allowInput, previewOnly, isLabelBold, formOptions, onChange, }: {
309
+ label?: string | undefined;
310
+ name: string;
311
+ details?: string | undefined;
312
+ placeholder?: string | undefined;
313
+ options: {
314
+ label: any;
315
+ value: string;
316
+ }[];
317
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
318
+ allowInput?: boolean | undefined;
319
+ previewOnly?: boolean | undefined;
320
+ isLabelBold?: boolean | undefined;
321
+ onChange?: (({ value, label }: {
322
+ label: any;
323
+ value: string;
324
+ }) => void) | undefined;
325
+ }) => react_jsx_runtime.JSX.Element;
326
+ Signature: ({ label, name, options, ...inputProps }: {
327
+ [inputProps: string]: unknown;
328
+ label: string;
329
+ name: string;
330
+ options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
331
+ }) => react_jsx_runtime.JSX.Element;
332
+ Submit: ({ label, isSubmitting, hideWhenInvalid, ...extraProps }: {
333
+ [extraProps: string]: unknown;
334
+ label?: string | undefined;
335
+ isSubmitting?: boolean | undefined;
336
+ hideWhenInvalid?: boolean | undefined;
337
+ }) => react_jsx_runtime.JSX.Element;
338
+ LocationSelect: (props: {
339
+ label?: string | undefined;
340
+ details?: string | undefined;
341
+ required?: boolean | undefined;
342
+ previewOnly?: boolean | undefined;
343
+ } & {
344
+ api_key: string;
345
+ }) => react_jsx_runtime.JSX.Element | null;
346
+ Keyword: ({ label, name, details, options, previewOnly, }: {
347
+ label?: string | undefined;
348
+ name: string;
349
+ details?: string | undefined;
350
+ options?: string[] | undefined;
351
+ previewOnly?: boolean | undefined;
352
+ }) => react_jsx_runtime.JSX.Element;
353
+ Toggle: ({ defaultState, name, label, handleEvent, value, disabled, }: {
354
+ defaultState?: boolean | undefined;
355
+ name: string;
356
+ label?: {
357
+ active: string;
358
+ inactive: string;
359
+ } | undefined;
360
+ handleEvent?: ((isToggled: boolean) => void) | null | undefined;
361
+ value: string | number | undefined;
362
+ disabled?: boolean | undefined;
363
+ }) => react_jsx_runtime.JSX.Element;
364
+ };
365
+
366
+ declare const _default: {
367
+ Body: ({ className, children, size, color, center, }: {
368
+ className?: string | undefined;
369
+ size?: Size | undefined;
370
+ children?: react.ReactNode;
371
+ color?: string | undefined;
372
+ center?: boolean | undefined;
373
+ }) => react_jsx_runtime.JSX.Element;
374
+ Display: ({ className, size, children, center, }: {
375
+ className?: string | undefined;
376
+ size?: Size | undefined;
377
+ children?: react.ReactNode;
378
+ center?: boolean | undefined;
379
+ }) => react_jsx_runtime.JSX.Element;
380
+ Error: _emotion_styled.StyledComponent<{
381
+ theme?: _emotion_react.Theme | undefined;
382
+ as?: react.ElementType<any> | undefined;
383
+ }, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
384
+ Header: ({ className, children, size, allCaps, color, }: {
385
+ allCaps?: boolean | undefined;
386
+ children?: react.ReactNode;
387
+ className?: string | undefined;
388
+ size?: Size | undefined;
389
+ color?: string | undefined;
390
+ }) => react_jsx_runtime.JSX.Element;
391
+ Truncated: ({ children, as, length }: {
392
+ children: string;
393
+ as: react.ElementType<any>;
394
+ length?: number | undefined;
395
+ }) => react_jsx_runtime.JSX.Element;
396
+ };
397
+
398
+ declare const VantaLogo: ({ contentfulConfig, size, }: {
399
+ contentfulConfig: {
400
+ space: string;
401
+ accessToken: string;
402
+ };
403
+ size?: number | undefined;
404
+ }) => react_jsx_runtime.JSX.Element | null;
405
+
406
+ 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 };