@solace-health/ui 0.5.5 → 0.5.7
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 +102 -92
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +165 -165
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as preact from 'preact';
|
|
3
|
-
import { FunctionalComponent } from 'preact';
|
|
4
2
|
import * as contentful from 'contentful';
|
|
5
3
|
import * as react from 'react';
|
|
6
4
|
import { CSSProperties } from 'react';
|
|
7
|
-
import * as
|
|
8
|
-
|
|
9
|
-
import * as _emotion_react from '@emotion/react';
|
|
5
|
+
import * as preact from 'preact';
|
|
6
|
+
import { FunctionalComponent } from 'preact';
|
|
10
7
|
import * as react_hook_form from 'react-hook-form';
|
|
11
8
|
import { UseFormReturn } from 'react-hook-form';
|
|
12
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
13
|
|
|
14
|
-
declare type Props$
|
|
14
|
+
declare type Props$9 = {
|
|
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$
|
|
21
|
-
Outline: ({ children, isSubmitting, ...extraProps }: Props$
|
|
22
|
-
Unstyled: ({ children, isSubmitting, ...extraProps }: Props$
|
|
23
|
-
Secondary: ({ children, isSubmitting, ...extraProps }: Props$
|
|
24
|
-
Link: ({ children, ...extraProps }: Props$
|
|
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
25
|
};
|
|
26
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
|
+
|
|
27
33
|
declare const _default$2: {
|
|
28
34
|
AddCircle: ({ color }: {
|
|
29
35
|
color?: string | undefined;
|
|
@@ -77,36 +83,6 @@ declare const _default$2: {
|
|
|
77
83
|
}) => react_jsx_runtime.JSX.Element;
|
|
78
84
|
};
|
|
79
85
|
|
|
80
|
-
declare type Props$7 = {
|
|
81
|
-
startTime?: string;
|
|
82
|
-
endTime?: string;
|
|
83
|
-
interval?: number;
|
|
84
|
-
defaultValue?: string;
|
|
85
|
-
onChange?: (e: unknown) => void;
|
|
86
|
-
};
|
|
87
|
-
declare const TimeSelect: ({ startTime, endTime, interval, defaultValue, onChange, }: Props$7) => react_jsx_runtime.JSX.Element;
|
|
88
|
-
|
|
89
|
-
declare type Props$6 = {
|
|
90
|
-
value?: string;
|
|
91
|
-
onChange?: (date: any) => void;
|
|
92
|
-
};
|
|
93
|
-
declare const DateSelect: ({ value, onChange }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
94
|
-
|
|
95
|
-
declare type Props$5 = {
|
|
96
|
-
onChange: (value: string) => void;
|
|
97
|
-
options: string[] | number[] | Array<{
|
|
98
|
-
label: FunctionalComponent;
|
|
99
|
-
value: string;
|
|
100
|
-
icon?: FunctionalComponent;
|
|
101
|
-
disabled?: boolean;
|
|
102
|
-
className?: string;
|
|
103
|
-
}>;
|
|
104
|
-
size: "small" | "middle" | "large";
|
|
105
|
-
defaultValue: string;
|
|
106
|
-
block: boolean;
|
|
107
|
-
};
|
|
108
|
-
declare const Segmented: ({ onChange, options, size, defaultValue, block, }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
109
|
-
|
|
110
86
|
declare enum Size {
|
|
111
87
|
XL = "xl",
|
|
112
88
|
LG = "lg",
|
|
@@ -115,11 +91,11 @@ declare enum Size {
|
|
|
115
91
|
XS = "xs"
|
|
116
92
|
}
|
|
117
93
|
|
|
118
|
-
declare type Props$
|
|
94
|
+
declare type Props$7 = {
|
|
119
95
|
color?: string;
|
|
120
96
|
size?: Size;
|
|
121
97
|
};
|
|
122
|
-
declare const LoadingSpinner: ({ color, size, }: Props$
|
|
98
|
+
declare const LoadingSpinner: ({ color, size, }: Props$7) => react_jsx_runtime.JSX.Element;
|
|
123
99
|
|
|
124
100
|
declare enum ContentfulLottieFileSlug {
|
|
125
101
|
LOADING_LISTINGS = "loadingListings"
|
|
@@ -137,7 +113,7 @@ declare class Contentful {
|
|
|
137
113
|
getImage(slug: string): Promise<any>;
|
|
138
114
|
}
|
|
139
115
|
|
|
140
|
-
declare type Props$
|
|
116
|
+
declare type Props$6 = {
|
|
141
117
|
height: number | string;
|
|
142
118
|
width: number | string;
|
|
143
119
|
loop: boolean;
|
|
@@ -147,35 +123,54 @@ declare type Props$3 = {
|
|
|
147
123
|
accessToken: string;
|
|
148
124
|
};
|
|
149
125
|
};
|
|
150
|
-
declare const LottieAnimation: ({ height, width, loop, slug, contentfulConfig, }: Props$
|
|
126
|
+
declare const LottieAnimation: ({ height, width, loop, slug, contentfulConfig, }: Props$6) => react_jsx_runtime.JSX.Element | null;
|
|
151
127
|
|
|
152
|
-
declare type Props$
|
|
128
|
+
declare type Props$5 = {
|
|
153
129
|
children: React.ReactNode;
|
|
154
130
|
isOpen: boolean;
|
|
155
131
|
onClose?: () => void;
|
|
156
132
|
style?: CSSProperties;
|
|
157
133
|
};
|
|
158
|
-
declare const Modal: ({ children, isOpen, onClose, style, }: Props$
|
|
134
|
+
declare const Modal: ({ children, isOpen, onClose, style, }: Props$5) => react_jsx_runtime.JSX.Element | null;
|
|
159
135
|
|
|
160
|
-
declare type Props$
|
|
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 = {
|
|
161
152
|
color: string;
|
|
162
153
|
};
|
|
163
|
-
declare const SolaceLogo: ({ color }: Props$
|
|
154
|
+
declare const SolaceLogo: ({ color }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
164
155
|
|
|
165
|
-
declare type
|
|
166
|
-
|
|
167
|
-
|
|
156
|
+
declare type Props$2 = {
|
|
157
|
+
items: {
|
|
158
|
+
label: string;
|
|
159
|
+
key: string;
|
|
160
|
+
children: string | React.ReactNode;
|
|
161
|
+
}[];
|
|
162
|
+
className?: string;
|
|
168
163
|
};
|
|
169
|
-
declare const
|
|
164
|
+
declare const Tabs: ({ items, className, ...otherProps }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
170
165
|
|
|
171
|
-
declare type Props = {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
166
|
+
declare type Props$1 = {
|
|
167
|
+
startTime?: string;
|
|
168
|
+
endTime?: string;
|
|
169
|
+
interval?: number;
|
|
170
|
+
defaultValue?: string;
|
|
171
|
+
onChange?: (e: unknown) => void;
|
|
177
172
|
};
|
|
178
|
-
declare const
|
|
173
|
+
declare const TimeSelect: ({ startTime, endTime, interval, defaultValue, onChange, }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
179
174
|
|
|
180
175
|
declare type ToggleProps = {
|
|
181
176
|
defaultState?: boolean;
|
|
@@ -190,39 +185,22 @@ declare type ToggleProps = {
|
|
|
190
185
|
};
|
|
191
186
|
declare const Toggle: ({ defaultState, name, label, handleEvent, value, disabled, }: ToggleProps) => react_jsx_runtime.JSX.Element;
|
|
192
187
|
|
|
193
|
-
declare
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
center?: boolean | undefined;
|
|
206
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
207
|
-
Error: _emotion_styled.StyledComponent<{
|
|
208
|
-
theme?: _emotion_react.Theme | undefined;
|
|
209
|
-
as?: react.ElementType<any> | undefined;
|
|
210
|
-
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
211
|
-
Header: ({ className, children, size, allCaps, color, }: {
|
|
212
|
-
allCaps?: boolean | undefined;
|
|
213
|
-
children?: react.ReactNode;
|
|
214
|
-
className?: string | undefined;
|
|
215
|
-
size?: Size | undefined;
|
|
216
|
-
color?: string | undefined;
|
|
217
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
218
|
-
Truncated: ({ children, as, length }: {
|
|
219
|
-
children: string;
|
|
220
|
-
as: react.ElementType<any>;
|
|
221
|
-
length?: number | undefined;
|
|
222
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
188
|
+
declare type Props = {
|
|
189
|
+
active?: boolean;
|
|
190
|
+
children: React.ReactNode;
|
|
191
|
+
content: string | null;
|
|
192
|
+
describedby: string;
|
|
193
|
+
style?: CSSProperties;
|
|
194
|
+
};
|
|
195
|
+
declare const Tooltip: ({ active, children, content, describedby, style, }: Props) => react_jsx_runtime.JSX.Element;
|
|
196
|
+
|
|
197
|
+
declare type ProviderProps = {
|
|
198
|
+
children: React.ReactNode;
|
|
199
|
+
theme?: Record<string, unknown>;
|
|
223
200
|
};
|
|
201
|
+
declare const SolaceThemeProvider: ({ children, theme, }: ProviderProps) => react_jsx_runtime.JSX.Element;
|
|
224
202
|
|
|
225
|
-
declare const _default: {
|
|
203
|
+
declare const _default$1: {
|
|
226
204
|
Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
|
|
227
205
|
formMethods?: UseFormReturn<any, any> | null | undefined;
|
|
228
206
|
formOptions?: Partial<{
|
|
@@ -384,6 +362,38 @@ declare const _default: {
|
|
|
384
362
|
}) => react_jsx_runtime.JSX.Element;
|
|
385
363
|
};
|
|
386
364
|
|
|
365
|
+
declare const _default: {
|
|
366
|
+
Body: ({ className, children, size, color, center, }: {
|
|
367
|
+
className?: string | undefined;
|
|
368
|
+
size?: Size | undefined;
|
|
369
|
+
children?: react.ReactNode;
|
|
370
|
+
color?: string | undefined;
|
|
371
|
+
center?: boolean | undefined;
|
|
372
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
373
|
+
Display: ({ className, size, children, center, }: {
|
|
374
|
+
className?: string | undefined;
|
|
375
|
+
size?: Size | undefined;
|
|
376
|
+
children?: react.ReactNode;
|
|
377
|
+
center?: boolean | undefined;
|
|
378
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
379
|
+
Error: _emotion_styled.StyledComponent<{
|
|
380
|
+
theme?: _emotion_react.Theme | undefined;
|
|
381
|
+
as?: react.ElementType<any> | undefined;
|
|
382
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
383
|
+
Header: ({ className, children, size, allCaps, color, }: {
|
|
384
|
+
allCaps?: boolean | undefined;
|
|
385
|
+
children?: react.ReactNode;
|
|
386
|
+
className?: string | undefined;
|
|
387
|
+
size?: Size | undefined;
|
|
388
|
+
color?: string | undefined;
|
|
389
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
390
|
+
Truncated: ({ children, as, length }: {
|
|
391
|
+
children: string;
|
|
392
|
+
as: react.ElementType<any>;
|
|
393
|
+
length?: number | undefined;
|
|
394
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
395
|
+
};
|
|
396
|
+
|
|
387
397
|
declare const VantaLogo: ({ contentfulConfig, size, }: {
|
|
388
398
|
contentfulConfig: {
|
|
389
399
|
space: string;
|
|
@@ -392,4 +402,4 @@ declare const VantaLogo: ({ contentfulConfig, size, }: {
|
|
|
392
402
|
size?: number | undefined;
|
|
393
403
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
394
404
|
|
|
395
|
-
export { _default$3 as Button, Contentful, ContentfulLottieFileSlug, DateSelect, _default as Form, _default$2 as Icons, LoadingSpinner, LottieAnimation, Modal, Segmented, Size, SolaceLogo, SolaceThemeProvider, TimeSelect, Toggle, Tooltip, _default
|
|
405
|
+
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 };
|