@solace-health/ui 0.2.1 → 0.3.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.cjs +129 -79
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +28 -4
- package/dist/index.js +114 -65
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare type Props$6 = {
|
|
|
18
18
|
declare const _default$3: {
|
|
19
19
|
Primary: ({ children, isSubmitting, ...extraProps }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
20
20
|
Outline: ({ children, isSubmitting, ...extraProps }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
21
|
+
Unstyled: ({ children, isSubmitting, ...extraProps }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
declare const _default$2: {
|
|
@@ -29,6 +30,9 @@ declare const _default$2: {
|
|
|
29
30
|
Check: ({ color }: {
|
|
30
31
|
color?: string | undefined;
|
|
31
32
|
}) => react_jsx_runtime.JSX.Element;
|
|
33
|
+
Close: ({ color }: {
|
|
34
|
+
color?: string | undefined;
|
|
35
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
32
36
|
DefaultFile: ({ fill }: {
|
|
33
37
|
fill?: string | undefined;
|
|
34
38
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -119,6 +123,17 @@ declare type Props = {
|
|
|
119
123
|
};
|
|
120
124
|
declare const Tooltip: ({ active, children, content, describedby, style }: Props) => react_jsx_runtime.JSX.Element;
|
|
121
125
|
|
|
126
|
+
declare type ToggleProps = {
|
|
127
|
+
defaultState?: boolean;
|
|
128
|
+
name: string;
|
|
129
|
+
label?: {
|
|
130
|
+
active: string;
|
|
131
|
+
inactive: string;
|
|
132
|
+
};
|
|
133
|
+
handleEvent?: ((isToggled: boolean) => void) | null;
|
|
134
|
+
};
|
|
135
|
+
declare const Toggle: ({ defaultState, name, label, handleEvent }: ToggleProps) => react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
122
137
|
declare const _default$1: {
|
|
123
138
|
Body: ({ className, children, size, color, center, }: {
|
|
124
139
|
className?: string | undefined;
|
|
@@ -136,7 +151,7 @@ declare const _default$1: {
|
|
|
136
151
|
Error: _emotion_styled.StyledComponent<never, {}, {
|
|
137
152
|
ref?: preact_hooks.Ref<any> | undefined;
|
|
138
153
|
}>;
|
|
139
|
-
Header: ({ className, children, size, allCaps, color
|
|
154
|
+
Header: ({ className, children, size, allCaps, color }: {
|
|
140
155
|
allCaps?: boolean | undefined;
|
|
141
156
|
children?: react.ReactNode;
|
|
142
157
|
className?: string | undefined;
|
|
@@ -206,8 +221,8 @@ declare const _default: {
|
|
|
206
221
|
TextInput: ({ name, label, details, type, options, textArea, marginBottom, isLabelBold, format, ...inputProps }: {
|
|
207
222
|
[inputProps: string]: unknown;
|
|
208
223
|
name: string;
|
|
209
|
-
label?: string | undefined;
|
|
210
|
-
details?: string | undefined;
|
|
224
|
+
label?: string | null | undefined;
|
|
225
|
+
details?: string | null | undefined;
|
|
211
226
|
type?: string | undefined;
|
|
212
227
|
options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
213
228
|
textArea?: boolean | undefined;
|
|
@@ -270,6 +285,15 @@ declare const _default: {
|
|
|
270
285
|
details?: string | undefined;
|
|
271
286
|
options?: string[] | undefined;
|
|
272
287
|
}) => react_jsx_runtime.JSX.Element;
|
|
288
|
+
Toggle: ({ defaultState, name, label, handleEvent }: {
|
|
289
|
+
defaultState?: boolean | undefined;
|
|
290
|
+
name: string;
|
|
291
|
+
label?: {
|
|
292
|
+
active: string;
|
|
293
|
+
inactive: string;
|
|
294
|
+
} | undefined;
|
|
295
|
+
handleEvent?: ((isToggled: boolean) => void) | null | undefined;
|
|
296
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
273
297
|
};
|
|
274
298
|
|
|
275
|
-
export { _default$3 as Button, Contentful, ContentfulLottieFileSlug, _default as Form, _default$2 as Icons, LoadingSpinner, LottieAnimation, Modal, Size, SolaceLogo, SolaceThemeProvider, Tooltip, _default$1 as Typography };
|
|
299
|
+
export { _default$3 as Button, Contentful, ContentfulLottieFileSlug, _default as Form, _default$2 as Icons, LoadingSpinner, LottieAnimation, Modal, Size, SolaceLogo, SolaceThemeProvider, Toggle, Tooltip, _default$1 as Typography };
|