@solace-health/ui 0.3.5 → 0.3.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 CHANGED
@@ -4,7 +4,7 @@ import * as react from 'react';
4
4
  import { CSSProperties } from 'react';
5
5
  import * as _emotion_styled from '@emotion/styled';
6
6
  export { default as styled } from '@emotion/styled';
7
- import * as preact_hooks from 'preact/hooks';
7
+ import * as _emotion_react from '@emotion/react';
8
8
  import * as preact from 'preact';
9
9
  import * as react_hook_form from 'react-hook-form';
10
10
  import { UseFormReturn } from 'react-hook-form';
@@ -150,9 +150,10 @@ declare const _default$1: {
150
150
  children?: react.ReactNode;
151
151
  center?: boolean | undefined;
152
152
  }) => react_jsx_runtime.JSX.Element;
153
- Error: _emotion_styled.StyledComponent<never, {}, {
154
- ref?: preact_hooks.Ref<any> | undefined;
155
- }>;
153
+ Error: _emotion_styled.StyledComponent<{
154
+ theme?: _emotion_react.Theme | undefined;
155
+ as?: react.ElementType<any> | undefined;
156
+ }, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
156
157
  Header: ({ className, children, size, allCaps, color }: {
157
158
  allCaps?: boolean | undefined;
158
159
  children?: react.ReactNode;
@@ -200,14 +201,16 @@ declare const _default: {
200
201
  children: string | JSX.Element | JSX.Element[];
201
202
  className?: string | undefined;
202
203
  }) => react_jsx_runtime.JSX.Element;
203
- Checkbox: ({ option, name, }: {
204
+ Checkbox: ({ option, name, ...inputProps }: {
205
+ [inputProps: string]: unknown;
204
206
  option: {
205
207
  label: string | preact.Component<{}, {}>;
206
208
  value: string;
207
209
  };
208
210
  name: string;
209
211
  }) => react_jsx_runtime.JSX.Element;
210
- CheckboxGroup: ({ name, label, details, options, inline, other, }: {
212
+ CheckboxGroup: ({ name, label, details, options, inline, other, ...inputProps }: {
213
+ [inputProps: string]: unknown;
211
214
  name: string;
212
215
  label: string | HTMLElement;
213
216
  details?: string | undefined;
@@ -220,28 +223,32 @@ declare const _default: {
220
223
  value: string;
221
224
  }[];
222
225
  }) => react_jsx_runtime.JSX.Element;
223
- TextInput: ({ name, label, details, type, options, textArea, marginBottom, isLabelBold, format, ...inputProps }: {
226
+ TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom, isLabelBold, format, errorMessage, ...inputProps }: {
224
227
  [inputProps: string]: unknown;
225
228
  name: string;
226
229
  label?: string | null | undefined;
227
230
  details?: string | null | undefined;
228
231
  type?: string | undefined;
229
232
  options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
233
+ previewOnly?: boolean | undefined;
230
234
  textArea?: boolean | undefined;
231
- marginBottom?: string | null | undefined;
235
+ marginBottom?: string | undefined;
232
236
  placeholder?: string | undefined;
233
237
  isLabelBold?: boolean | undefined;
234
238
  format?: any;
239
+ errorMessage?: string | undefined;
235
240
  }) => react_jsx_runtime.JSX.Element;
236
- Radio: ({ option, name, inline, }: {
241
+ Radio: ({ option, name, inline, ...inputProps }: {
242
+ [inputProps: string]: unknown;
237
243
  option: {
238
244
  label: string;
239
245
  value: string;
240
246
  };
241
247
  name: string;
242
- inline?: boolean | undefined;
248
+ inline: boolean;
243
249
  }) => react_jsx_runtime.JSX.Element;
244
- RadioGroup: ({ name, label, details, options, inline, allowOther, }: {
250
+ RadioGroup: ({ name, label, details, options, inline, allowOther, ...inputProps }: {
251
+ [inputProps: string]: unknown;
245
252
  name: string;
246
253
  label: string;
247
254
  details?: string | undefined;
@@ -252,7 +259,7 @@ declare const _default: {
252
259
  value: string;
253
260
  }[];
254
261
  }) => react_jsx_runtime.JSX.Element;
255
- Select: ({ label, name, details, options, allowInput, formOptions, }: {
262
+ Select: ({ label, name, details, options, allowInput, previewOnly, formOptions, }: {
256
263
  label?: string | undefined;
257
264
  name: string;
258
265
  details?: string | undefined;
@@ -262,8 +269,10 @@ declare const _default: {
262
269
  }[];
263
270
  formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
264
271
  allowInput?: boolean | undefined;
272
+ previewOnly?: boolean | undefined;
265
273
  }) => react_jsx_runtime.JSX.Element;
266
- Signature: ({ label, name, options }: {
274
+ Signature: ({ label, name, options, ...inputProps }: {
275
+ [inputProps: string]: unknown;
267
276
  label: string;
268
277
  name: string;
269
278
  options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
@@ -278,14 +287,16 @@ declare const _default: {
278
287
  label?: string | undefined;
279
288
  details?: string | undefined;
280
289
  required?: boolean | undefined;
290
+ previewOnly?: boolean | undefined;
281
291
  } & {
282
292
  api_key: string;
283
293
  }) => react_jsx_runtime.JSX.Element | null;
284
- Keyword: ({ label, name, details, options }: {
294
+ Keyword: ({ label, name, details, options, previewOnly, }: {
285
295
  label?: string | undefined;
286
296
  name: string;
287
297
  details?: string | undefined;
288
298
  options?: string[] | undefined;
299
+ previewOnly?: boolean | undefined;
289
300
  }) => react_jsx_runtime.JSX.Element;
290
301
  Toggle: ({ defaultState, name, label, handleEvent, value, }: {
291
302
  defaultState?: boolean | undefined;