@solace-health/ui 0.5.6 → 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 +91 -91
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +109 -109
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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
14
|
declare type Props$9 = {
|
|
15
15
|
children: React.ReactNode;
|
|
@@ -24,6 +24,12 @@ declare const _default$3: {
|
|
|
24
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$8 = {
|
|
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$8) => react_jsx_runtime.JSX.Element;
|
|
88
|
-
|
|
89
|
-
declare type Props$7 = {
|
|
90
|
-
value?: string;
|
|
91
|
-
onChange?: (date: any) => void;
|
|
92
|
-
};
|
|
93
|
-
declare const DateSelect: ({ value, onChange }: Props$7) => react_jsx_runtime.JSX.Element;
|
|
94
|
-
|
|
95
|
-
declare type Props$6 = {
|
|
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$6) => 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,45 +123,54 @@ declare type Props$4 = {
|
|
|
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;
|
|
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;
|
|
159
155
|
|
|
160
156
|
declare type Props$2 = {
|
|
161
157
|
items: {
|
|
162
158
|
label: string;
|
|
163
159
|
key: string;
|
|
164
|
-
children: string;
|
|
160
|
+
children: string | React.ReactNode;
|
|
165
161
|
}[];
|
|
166
162
|
className?: string;
|
|
167
163
|
};
|
|
168
164
|
declare const Tabs: ({ items, className, ...otherProps }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
169
165
|
|
|
170
166
|
declare type Props$1 = {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
children: React.ReactNode;
|
|
177
|
-
theme?: Record<string, unknown>;
|
|
178
|
-
};
|
|
179
|
-
declare const SolaceThemeProvider: ({ children, theme, }: ProviderProps) => react_jsx_runtime.JSX.Element;
|
|
180
|
-
|
|
181
|
-
declare type Props = {
|
|
182
|
-
active?: boolean;
|
|
183
|
-
children: React.ReactNode;
|
|
184
|
-
content: string | null;
|
|
185
|
-
describedby: string;
|
|
186
|
-
style?: CSSProperties;
|
|
167
|
+
startTime?: string;
|
|
168
|
+
endTime?: string;
|
|
169
|
+
interval?: number;
|
|
170
|
+
defaultValue?: string;
|
|
171
|
+
onChange?: (e: unknown) => void;
|
|
187
172
|
};
|
|
188
|
-
declare const
|
|
173
|
+
declare const TimeSelect: ({ startTime, endTime, interval, defaultValue, onChange, }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
189
174
|
|
|
190
175
|
declare type ToggleProps = {
|
|
191
176
|
defaultState?: boolean;
|
|
@@ -200,39 +185,22 @@ declare type ToggleProps = {
|
|
|
200
185
|
};
|
|
201
186
|
declare const Toggle: ({ defaultState, name, label, handleEvent, value, disabled, }: ToggleProps) => react_jsx_runtime.JSX.Element;
|
|
202
187
|
|
|
203
|
-
declare
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
center?: boolean | undefined;
|
|
210
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
211
|
-
Display: ({ className, size, children, center, }: {
|
|
212
|
-
className?: string | undefined;
|
|
213
|
-
size?: Size | undefined;
|
|
214
|
-
children?: react.ReactNode;
|
|
215
|
-
center?: boolean | undefined;
|
|
216
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
217
|
-
Error: _emotion_styled.StyledComponent<{
|
|
218
|
-
theme?: _emotion_react.Theme | undefined;
|
|
219
|
-
as?: react.ElementType<any> | undefined;
|
|
220
|
-
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
221
|
-
Header: ({ className, children, size, allCaps, color, }: {
|
|
222
|
-
allCaps?: boolean | undefined;
|
|
223
|
-
children?: react.ReactNode;
|
|
224
|
-
className?: string | undefined;
|
|
225
|
-
size?: Size | undefined;
|
|
226
|
-
color?: string | undefined;
|
|
227
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
228
|
-
Truncated: ({ children, as, length }: {
|
|
229
|
-
children: string;
|
|
230
|
-
as: react.ElementType<any>;
|
|
231
|
-
length?: number | undefined;
|
|
232
|
-
}) => 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;
|
|
233
194
|
};
|
|
195
|
+
declare const Tooltip: ({ active, children, content, describedby, style, }: Props) => react_jsx_runtime.JSX.Element;
|
|
234
196
|
|
|
235
|
-
declare
|
|
197
|
+
declare type ProviderProps = {
|
|
198
|
+
children: React.ReactNode;
|
|
199
|
+
theme?: Record<string, unknown>;
|
|
200
|
+
};
|
|
201
|
+
declare const SolaceThemeProvider: ({ children, theme, }: ProviderProps) => react_jsx_runtime.JSX.Element;
|
|
202
|
+
|
|
203
|
+
declare const _default$1: {
|
|
236
204
|
Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
|
|
237
205
|
formMethods?: UseFormReturn<any, any> | null | undefined;
|
|
238
206
|
formOptions?: Partial<{
|
|
@@ -394,6 +362,38 @@ declare const _default: {
|
|
|
394
362
|
}) => react_jsx_runtime.JSX.Element;
|
|
395
363
|
};
|
|
396
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
|
+
|
|
397
397
|
declare const VantaLogo: ({ contentfulConfig, size, }: {
|
|
398
398
|
contentfulConfig: {
|
|
399
399
|
space: string;
|
|
@@ -402,4 +402,4 @@ declare const VantaLogo: ({ contentfulConfig, size, }: {
|
|
|
402
402
|
size?: number | undefined;
|
|
403
403
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
404
404
|
|
|
405
|
-
export { _default$3 as Button, Contentful, ContentfulLottieFileSlug, DateSelect, _default as Form, _default$2 as Icons, LoadingSpinner, LottieAnimation, Modal, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, 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 };
|