@solace-health/ui 0.4.8 → 0.4.10
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 +39 -10
- package/dist/index.js +138 -107
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +118 -90
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as preact from 'preact';
|
|
3
|
+
import { FunctionalComponent } from 'preact';
|
|
2
4
|
import * as contentful from 'contentful';
|
|
3
5
|
import * as react from 'react';
|
|
4
6
|
import { CSSProperties } from 'react';
|
|
5
7
|
import * as _emotion_styled from '@emotion/styled';
|
|
6
8
|
export { default as styled } from '@emotion/styled';
|
|
7
9
|
import * as _emotion_react from '@emotion/react';
|
|
8
|
-
import * as preact from 'preact';
|
|
9
10
|
import * as react_hook_form from 'react-hook-form';
|
|
10
11
|
import { UseFormReturn } from 'react-hook-form';
|
|
11
12
|
export { useForm } from 'react-hook-form';
|
|
12
13
|
|
|
13
|
-
declare type Props$
|
|
14
|
+
declare type Props$9 = {
|
|
14
15
|
children: React.ReactNode;
|
|
15
16
|
isSubmitting?: boolean;
|
|
16
17
|
[extraProps: string]: unknown;
|
|
17
18
|
};
|
|
18
19
|
declare const _default$3: {
|
|
19
|
-
Primary: ({ children, isSubmitting, ...extraProps }: Props$
|
|
20
|
-
Outline: ({ children, isSubmitting, ...extraProps }: Props$
|
|
21
|
-
Unstyled: ({ children, isSubmitting, ...extraProps }: Props$
|
|
22
|
-
Secondary: ({ children, isSubmitting, ...extraProps }: Props$
|
|
23
|
-
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;
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
declare const _default$2: {
|
|
@@ -76,14 +77,35 @@ declare const _default$2: {
|
|
|
76
77
|
}) => react_jsx_runtime.JSX.Element;
|
|
77
78
|
};
|
|
78
79
|
|
|
79
|
-
declare type Props$
|
|
80
|
+
declare type Props$8 = {
|
|
80
81
|
startTime?: string;
|
|
81
82
|
endTime?: string;
|
|
82
83
|
interval?: number;
|
|
83
84
|
defaultValue?: string;
|
|
84
85
|
onChange?: (e: unknown) => void;
|
|
85
86
|
};
|
|
86
|
-
declare const TimeSelect: ({ startTime, endTime, interval, defaultValue, onChange, }: Props$
|
|
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;
|
|
87
109
|
|
|
88
110
|
declare enum Size {
|
|
89
111
|
XL = "xl",
|
|
@@ -254,6 +276,13 @@ declare const _default: {
|
|
|
254
276
|
value: string;
|
|
255
277
|
}[];
|
|
256
278
|
}) => react_jsx_runtime.JSX.Element;
|
|
279
|
+
DateSelect: ({ label, isLabelBold, name, options, ...inputProps }: {
|
|
280
|
+
[inputProps: string]: unknown;
|
|
281
|
+
label?: string | null | undefined;
|
|
282
|
+
isLabelBold?: boolean | undefined;
|
|
283
|
+
name: string;
|
|
284
|
+
options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
285
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
257
286
|
TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom, isLabelBold, format, errorMessage, ...inputProps }: {
|
|
258
287
|
[inputProps: string]: unknown;
|
|
259
288
|
name: string;
|
|
@@ -362,4 +391,4 @@ declare const VantaLogo: ({ contentfulConfig, size, }: {
|
|
|
362
391
|
size?: number | undefined;
|
|
363
392
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
364
393
|
|
|
365
|
-
export { _default$3 as Button, Contentful, ContentfulLottieFileSlug, _default as Form, _default$2 as Icons, LoadingSpinner, LottieAnimation, Modal, Size, SolaceLogo, SolaceThemeProvider, TimeSelect, Toggle, Tooltip, _default$1 as Typography, VantaLogo };
|
|
394
|
+
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$1 as Typography, VantaLogo };
|