@solace-health/ui 0.1.2 → 0.2.1
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.cjs +234 -80
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +45 -3
- package/dist/index.js +221 -67
- package/dist/index.js.map +1 -1
- package/package.json +10 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { CSSProperties } from 'react';
|
|
|
5
5
|
import * as _emotion_styled from '@emotion/styled';
|
|
6
6
|
export { default as styled } from '@emotion/styled';
|
|
7
7
|
import * as preact_hooks from 'preact/hooks';
|
|
8
|
+
import * as preact from 'preact';
|
|
8
9
|
import * as react_hook_form from 'react-hook-form';
|
|
9
10
|
import { UseFormReturn } from 'react-hook-form';
|
|
10
11
|
export { useForm } from 'react-hook-form';
|
|
@@ -45,6 +46,9 @@ declare const _default$2: {
|
|
|
45
46
|
}) => react_jsx_runtime.JSX.Element;
|
|
46
47
|
Sparkles: () => react_jsx_runtime.JSX.Element;
|
|
47
48
|
Sun: () => JSX.Element;
|
|
49
|
+
Signature: ({ color }: {
|
|
50
|
+
color?: string | undefined;
|
|
51
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
48
52
|
};
|
|
49
53
|
|
|
50
54
|
declare enum Size {
|
|
@@ -147,7 +151,7 @@ declare const _default$1: {
|
|
|
147
151
|
};
|
|
148
152
|
|
|
149
153
|
declare const _default: {
|
|
150
|
-
Container: ({ formMethods, formOptions, onSubmit, children, }: {
|
|
154
|
+
Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
|
|
151
155
|
formMethods?: UseFormReturn<any, any> | null | undefined;
|
|
152
156
|
formOptions?: Partial<{
|
|
153
157
|
mode: keyof react_hook_form.ValidationMode;
|
|
@@ -177,11 +181,32 @@ declare const _default: {
|
|
|
177
181
|
}> | undefined;
|
|
178
182
|
onSubmit: (data: any) => void;
|
|
179
183
|
children: string | JSX.Element | JSX.Element[];
|
|
184
|
+
className?: string | undefined;
|
|
185
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
186
|
+
Checkbox: ({ option, name, }: {
|
|
187
|
+
option: {
|
|
188
|
+
label: string | preact.Component<{}, {}>;
|
|
189
|
+
value: string;
|
|
190
|
+
};
|
|
191
|
+
name: string;
|
|
192
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
193
|
+
CheckboxGroup: ({ name, label, details, options, inline, other, }: {
|
|
194
|
+
name: string;
|
|
195
|
+
label: string | HTMLElement;
|
|
196
|
+
details?: string | undefined;
|
|
197
|
+
inline?: boolean | undefined;
|
|
198
|
+
other?: {
|
|
199
|
+
label: string | preact.Component<{}, {}>;
|
|
200
|
+
} | undefined;
|
|
201
|
+
options: {
|
|
202
|
+
label: string;
|
|
203
|
+
value: string;
|
|
204
|
+
}[];
|
|
180
205
|
}) => react_jsx_runtime.JSX.Element;
|
|
181
206
|
TextInput: ({ name, label, details, type, options, textArea, marginBottom, isLabelBold, format, ...inputProps }: {
|
|
182
207
|
[inputProps: string]: unknown;
|
|
183
208
|
name: string;
|
|
184
|
-
label
|
|
209
|
+
label?: string | undefined;
|
|
185
210
|
details?: string | undefined;
|
|
186
211
|
type?: string | undefined;
|
|
187
212
|
options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
@@ -191,10 +216,20 @@ declare const _default: {
|
|
|
191
216
|
isLabelBold?: boolean | undefined;
|
|
192
217
|
format?: any;
|
|
193
218
|
}) => react_jsx_runtime.JSX.Element;
|
|
194
|
-
|
|
219
|
+
Radio: ({ option, name, inline, }: {
|
|
220
|
+
option: {
|
|
221
|
+
label: string;
|
|
222
|
+
value: string;
|
|
223
|
+
};
|
|
224
|
+
name: string;
|
|
225
|
+
inline?: boolean | undefined;
|
|
226
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
227
|
+
RadioGroup: ({ name, label, details, options, inline, allowOther, }: {
|
|
195
228
|
name: string;
|
|
196
229
|
label: string;
|
|
197
230
|
details?: string | undefined;
|
|
231
|
+
inline?: boolean | undefined;
|
|
232
|
+
allowOther?: boolean | undefined;
|
|
198
233
|
options: {
|
|
199
234
|
label: string;
|
|
200
235
|
value: string;
|
|
@@ -211,6 +246,11 @@ declare const _default: {
|
|
|
211
246
|
formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
212
247
|
allowInput?: boolean | undefined;
|
|
213
248
|
}) => react_jsx_runtime.JSX.Element;
|
|
249
|
+
Signature: ({ label, name, options }: {
|
|
250
|
+
label: string;
|
|
251
|
+
name: string;
|
|
252
|
+
options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
253
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
214
254
|
Submit: ({ label, isSubmitting, hideWhenInvalid, ...extraProps }: {
|
|
215
255
|
[extraProps: string]: unknown;
|
|
216
256
|
label?: string | undefined;
|
|
@@ -221,6 +261,8 @@ declare const _default: {
|
|
|
221
261
|
label?: string | undefined;
|
|
222
262
|
details?: string | undefined;
|
|
223
263
|
required?: boolean | undefined;
|
|
264
|
+
} & {
|
|
265
|
+
api_key: string;
|
|
224
266
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
225
267
|
Keyword: ({ label, name, details, options }: {
|
|
226
268
|
label?: string | undefined;
|