@solace-health/ui 0.9.5 → 0.9.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.cjs +175 -160
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -10
- package/dist/index.d.ts +23 -10
- package/dist/index.js +153 -138
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { CSSProperties } from 'react';
|
|
|
4
4
|
import * as contentful from 'contentful';
|
|
5
5
|
import * as preact from 'preact';
|
|
6
6
|
import { FunctionalComponent } from 'preact';
|
|
7
|
-
import { TabsProps, MenuProps as MenuProps$1 } from 'antd';
|
|
7
|
+
import { TabsProps, SubMenuProps, MenuProps as MenuProps$1 } from 'antd';
|
|
8
8
|
import { MenuProps } from '@szhsin/react-menu';
|
|
9
9
|
import * as _emotion_styled from '@emotion/styled';
|
|
10
10
|
export { default as styled } from '@emotion/styled';
|
|
@@ -13,6 +13,8 @@ import * as _emotion_react from '@emotion/react';
|
|
|
13
13
|
import * as react_hook_form from 'react-hook-form';
|
|
14
14
|
import { UseFormReturn } from 'react-hook-form';
|
|
15
15
|
export { useForm, useFormContext } from 'react-hook-form';
|
|
16
|
+
import { MenuDividerProps } from 'antd/es/menu';
|
|
17
|
+
import { MenuItemType } from 'antd/es/menu/hooks/useItems';
|
|
16
18
|
|
|
17
19
|
declare type Props$c = {
|
|
18
20
|
size?: number;
|
|
@@ -35,7 +37,7 @@ declare type Props$b = {
|
|
|
35
37
|
};
|
|
36
38
|
[extraProps: string]: unknown;
|
|
37
39
|
};
|
|
38
|
-
declare const _default$
|
|
40
|
+
declare const _default$6: {
|
|
39
41
|
Primary: ({ children, isSubmitting, toolTip, ...extraProps }: Props$b) => react_jsx_runtime.JSX.Element;
|
|
40
42
|
Outline: ({ children, isSubmitting, toolTip, ...extraProps }: Props$b) => react_jsx_runtime.JSX.Element;
|
|
41
43
|
Unstyled: ({ children, isSubmitting, toolTip, ...extraProps }: Props$b) => react_jsx_runtime.JSX.Element;
|
|
@@ -73,7 +75,7 @@ declare type Props$8 = {
|
|
|
73
75
|
};
|
|
74
76
|
declare const Drawer: ({ isOpen, onClose, children, title, placement, headerStyle, ...extraProps }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
75
77
|
|
|
76
|
-
declare const _default$
|
|
78
|
+
declare const _default$5: {
|
|
77
79
|
AddCircle: ({ color }: {
|
|
78
80
|
color?: string | undefined;
|
|
79
81
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -318,7 +320,7 @@ declare type HeaderProps = {
|
|
|
318
320
|
children: string | JSX.Element | JSX.Element[];
|
|
319
321
|
className?: string;
|
|
320
322
|
};
|
|
321
|
-
declare const _default$
|
|
323
|
+
declare const _default$4: {
|
|
322
324
|
Button: ({ label, className }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
323
325
|
Container: ({ children, cta, onItemClick, onMenuChange, className, menuProps, caretColor, borderColor, }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
324
326
|
Search: ({ value, onChange, className, }: SearchProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -374,7 +376,7 @@ interface Step {
|
|
|
374
376
|
description: string;
|
|
375
377
|
}
|
|
376
378
|
|
|
377
|
-
declare const _default$
|
|
379
|
+
declare const _default$3: {
|
|
378
380
|
Horizontal: ({ currentStep, steps, }: {
|
|
379
381
|
currentStep: number;
|
|
380
382
|
steps: string[];
|
|
@@ -384,7 +386,7 @@ declare const _default$2: {
|
|
|
384
386
|
}) => react_jsx_runtime.JSX.Element;
|
|
385
387
|
};
|
|
386
388
|
|
|
387
|
-
declare const _default$
|
|
389
|
+
declare const _default$2: {
|
|
388
390
|
Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
|
|
389
391
|
formMethods?: UseFormReturn<any, any> | null | undefined;
|
|
390
392
|
formOptions?: Partial<{
|
|
@@ -560,7 +562,7 @@ declare const _default$1: {
|
|
|
560
562
|
}) => react_jsx_runtime.JSX.Element;
|
|
561
563
|
};
|
|
562
564
|
|
|
563
|
-
declare const _default: {
|
|
565
|
+
declare const _default$1: {
|
|
564
566
|
Body: ({ className, children, size, color, center, }: {
|
|
565
567
|
className?: string | undefined;
|
|
566
568
|
size?: Size | undefined;
|
|
@@ -600,7 +602,18 @@ declare const VantaLogo: ({ contentfulConfig, size, }: {
|
|
|
600
602
|
size?: number | undefined;
|
|
601
603
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
602
604
|
|
|
603
|
-
declare type NavigationMenuProps = {
|
|
604
|
-
|
|
605
|
+
declare type NavigationMenuProps = {
|
|
606
|
+
children: React.ReactNode;
|
|
607
|
+
} & Omit<MenuProps$1, "ref" | "theme">;
|
|
608
|
+
declare const _default: {
|
|
609
|
+
Container: ({ children, ...rest }: NavigationMenuProps) => react_jsx_runtime.JSX.Element;
|
|
610
|
+
MenuDivider: (props: MenuDividerProps) => react_jsx_runtime.JSX.Element;
|
|
611
|
+
MenuItem: ({ children, ...rest }: {
|
|
612
|
+
children: react.ReactNode;
|
|
613
|
+
} & MenuItemType) => react_jsx_runtime.JSX.Element;
|
|
614
|
+
SubMenuContainer: ({ children, ...rest }: {
|
|
615
|
+
children: react.ReactNode;
|
|
616
|
+
} & SubMenuProps) => react_jsx_runtime.JSX.Element;
|
|
617
|
+
};
|
|
605
618
|
|
|
606
|
-
export { Avatar, _default$
|
|
619
|
+
export { Avatar, _default$6 as Button, Collapse, Contentful, ContentfulLottieFileSlug, DateSelect, Drawer, _default$2 as Form, _default$5 as Icons, LoadingSpinner, LottieAnimation, _default$4 as Menu, Modal, _default as NavigationMenu, _default$3 as NumberedProgressSteps, Progress, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, TimeSelect, Toggle, Tooltip, _default$1 as Typography, VantaLogo };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { CSSProperties } from 'react';
|
|
|
4
4
|
import * as contentful from 'contentful';
|
|
5
5
|
import * as preact from 'preact';
|
|
6
6
|
import { FunctionalComponent } from 'preact';
|
|
7
|
-
import { TabsProps, MenuProps as MenuProps$1 } from 'antd';
|
|
7
|
+
import { TabsProps, SubMenuProps, MenuProps as MenuProps$1 } from 'antd';
|
|
8
8
|
import { MenuProps } from '@szhsin/react-menu';
|
|
9
9
|
import * as _emotion_styled from '@emotion/styled';
|
|
10
10
|
export { default as styled } from '@emotion/styled';
|
|
@@ -13,6 +13,8 @@ import * as _emotion_react from '@emotion/react';
|
|
|
13
13
|
import * as react_hook_form from 'react-hook-form';
|
|
14
14
|
import { UseFormReturn } from 'react-hook-form';
|
|
15
15
|
export { useForm, useFormContext } from 'react-hook-form';
|
|
16
|
+
import { MenuDividerProps } from 'antd/es/menu';
|
|
17
|
+
import { MenuItemType } from 'antd/es/menu/hooks/useItems';
|
|
16
18
|
|
|
17
19
|
declare type Props$c = {
|
|
18
20
|
size?: number;
|
|
@@ -35,7 +37,7 @@ declare type Props$b = {
|
|
|
35
37
|
};
|
|
36
38
|
[extraProps: string]: unknown;
|
|
37
39
|
};
|
|
38
|
-
declare const _default$
|
|
40
|
+
declare const _default$6: {
|
|
39
41
|
Primary: ({ children, isSubmitting, toolTip, ...extraProps }: Props$b) => react_jsx_runtime.JSX.Element;
|
|
40
42
|
Outline: ({ children, isSubmitting, toolTip, ...extraProps }: Props$b) => react_jsx_runtime.JSX.Element;
|
|
41
43
|
Unstyled: ({ children, isSubmitting, toolTip, ...extraProps }: Props$b) => react_jsx_runtime.JSX.Element;
|
|
@@ -73,7 +75,7 @@ declare type Props$8 = {
|
|
|
73
75
|
};
|
|
74
76
|
declare const Drawer: ({ isOpen, onClose, children, title, placement, headerStyle, ...extraProps }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
75
77
|
|
|
76
|
-
declare const _default$
|
|
78
|
+
declare const _default$5: {
|
|
77
79
|
AddCircle: ({ color }: {
|
|
78
80
|
color?: string | undefined;
|
|
79
81
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -318,7 +320,7 @@ declare type HeaderProps = {
|
|
|
318
320
|
children: string | JSX.Element | JSX.Element[];
|
|
319
321
|
className?: string;
|
|
320
322
|
};
|
|
321
|
-
declare const _default$
|
|
323
|
+
declare const _default$4: {
|
|
322
324
|
Button: ({ label, className }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
323
325
|
Container: ({ children, cta, onItemClick, onMenuChange, className, menuProps, caretColor, borderColor, }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
324
326
|
Search: ({ value, onChange, className, }: SearchProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -374,7 +376,7 @@ interface Step {
|
|
|
374
376
|
description: string;
|
|
375
377
|
}
|
|
376
378
|
|
|
377
|
-
declare const _default$
|
|
379
|
+
declare const _default$3: {
|
|
378
380
|
Horizontal: ({ currentStep, steps, }: {
|
|
379
381
|
currentStep: number;
|
|
380
382
|
steps: string[];
|
|
@@ -384,7 +386,7 @@ declare const _default$2: {
|
|
|
384
386
|
}) => react_jsx_runtime.JSX.Element;
|
|
385
387
|
};
|
|
386
388
|
|
|
387
|
-
declare const _default$
|
|
389
|
+
declare const _default$2: {
|
|
388
390
|
Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
|
|
389
391
|
formMethods?: UseFormReturn<any, any> | null | undefined;
|
|
390
392
|
formOptions?: Partial<{
|
|
@@ -560,7 +562,7 @@ declare const _default$1: {
|
|
|
560
562
|
}) => react_jsx_runtime.JSX.Element;
|
|
561
563
|
};
|
|
562
564
|
|
|
563
|
-
declare const _default: {
|
|
565
|
+
declare const _default$1: {
|
|
564
566
|
Body: ({ className, children, size, color, center, }: {
|
|
565
567
|
className?: string | undefined;
|
|
566
568
|
size?: Size | undefined;
|
|
@@ -600,7 +602,18 @@ declare const VantaLogo: ({ contentfulConfig, size, }: {
|
|
|
600
602
|
size?: number | undefined;
|
|
601
603
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
602
604
|
|
|
603
|
-
declare type NavigationMenuProps = {
|
|
604
|
-
|
|
605
|
+
declare type NavigationMenuProps = {
|
|
606
|
+
children: React.ReactNode;
|
|
607
|
+
} & Omit<MenuProps$1, "ref" | "theme">;
|
|
608
|
+
declare const _default: {
|
|
609
|
+
Container: ({ children, ...rest }: NavigationMenuProps) => react_jsx_runtime.JSX.Element;
|
|
610
|
+
MenuDivider: (props: MenuDividerProps) => react_jsx_runtime.JSX.Element;
|
|
611
|
+
MenuItem: ({ children, ...rest }: {
|
|
612
|
+
children: react.ReactNode;
|
|
613
|
+
} & MenuItemType) => react_jsx_runtime.JSX.Element;
|
|
614
|
+
SubMenuContainer: ({ children, ...rest }: {
|
|
615
|
+
children: react.ReactNode;
|
|
616
|
+
} & SubMenuProps) => react_jsx_runtime.JSX.Element;
|
|
617
|
+
};
|
|
605
618
|
|
|
606
|
-
export { Avatar, _default$
|
|
619
|
+
export { Avatar, _default$6 as Button, Collapse, Contentful, ContentfulLottieFileSlug, DateSelect, Drawer, _default$2 as Form, _default$5 as Icons, LoadingSpinner, LottieAnimation, _default$4 as Menu, Modal, _default as NavigationMenu, _default$3 as NumberedProgressSteps, Progress, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, TimeSelect, Toggle, Tooltip, _default$1 as Typography, VantaLogo };
|