@solace-health/ui 0.1.1 → 0.2.0

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
@@ -5,8 +5,10 @@ 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';
11
+ export { useForm } from 'react-hook-form';
10
12
 
11
13
  declare type Props$6 = {
12
14
  children: React.ReactNode;
@@ -27,6 +29,9 @@ declare const _default$2: {
27
29
  Check: ({ color }: {
28
30
  color?: string | undefined;
29
31
  }) => react_jsx_runtime.JSX.Element;
32
+ DefaultFile: ({ fill }: {
33
+ fill?: string | undefined;
34
+ }) => react_jsx_runtime.JSX.Element;
30
35
  HeartPulse: () => JSX.Element;
31
36
  LightBulb: () => react_jsx_runtime.JSX.Element;
32
37
  LocationPin: ({ className }: {
@@ -41,6 +46,9 @@ declare const _default$2: {
41
46
  }) => react_jsx_runtime.JSX.Element;
42
47
  Sparkles: () => react_jsx_runtime.JSX.Element;
43
48
  Sun: () => JSX.Element;
49
+ Signature: ({ color }: {
50
+ color?: string | undefined;
51
+ }) => react_jsx_runtime.JSX.Element;
44
52
  };
45
53
 
46
54
  declare enum Size {
@@ -143,7 +151,7 @@ declare const _default$1: {
143
151
  };
144
152
 
145
153
  declare const _default: {
146
- Container: ({ formMethods, formOptions, onSubmit, children, }: {
154
+ Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
147
155
  formMethods?: UseFormReturn<any, any> | null | undefined;
148
156
  formOptions?: Partial<{
149
157
  mode: keyof react_hook_form.ValidationMode;
@@ -173,11 +181,32 @@ declare const _default: {
173
181
  }> | undefined;
174
182
  onSubmit: (data: any) => void;
175
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
+ }[];
176
205
  }) => react_jsx_runtime.JSX.Element;
177
206
  TextInput: ({ name, label, details, type, options, textArea, marginBottom, isLabelBold, format, ...inputProps }: {
178
207
  [inputProps: string]: unknown;
179
208
  name: string;
180
- label: string;
209
+ label?: string | undefined;
181
210
  details?: string | undefined;
182
211
  type?: string | undefined;
183
212
  options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
@@ -187,10 +216,20 @@ declare const _default: {
187
216
  isLabelBold?: boolean | undefined;
188
217
  format?: any;
189
218
  }) => react_jsx_runtime.JSX.Element;
190
- RadioGroup: ({ name, label, details, options }: {
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, }: {
191
228
  name: string;
192
229
  label: string;
193
230
  details?: string | undefined;
231
+ inline?: boolean | undefined;
232
+ allowOther?: boolean | undefined;
194
233
  options: {
195
234
  label: string;
196
235
  value: string;
@@ -207,6 +246,11 @@ declare const _default: {
207
246
  formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
208
247
  allowInput?: boolean | undefined;
209
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;
210
254
  Submit: ({ label, isSubmitting, hideWhenInvalid, ...extraProps }: {
211
255
  [extraProps: string]: unknown;
212
256
  label?: string | undefined;
@@ -217,6 +261,8 @@ declare const _default: {
217
261
  label?: string | undefined;
218
262
  details?: string | undefined;
219
263
  required?: boolean | undefined;
264
+ } & {
265
+ api_key: string;
220
266
  }) => react_jsx_runtime.JSX.Element | null;
221
267
  Keyword: ({ label, name, details, options }: {
222
268
  label?: string | undefined;