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