@solace-health/ui 0.9.41 → 0.9.43

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.cts CHANGED
@@ -5,11 +5,12 @@ import { CSSProperties } from 'react';
5
5
  import * as contentful from 'contentful';
6
6
  import * as preact from 'preact';
7
7
  import { FunctionalComponent } from 'preact';
8
- import { TabsProps, SubMenuProps, MenuProps as MenuProps$1 } from 'antd';
8
+ import { TabsProps, MenuProps as MenuProps$1, SubMenuProps } from 'antd';
9
9
  import { MenuProps } from '@szhsin/react-menu';
10
10
  import * as _emotion_styled from '@emotion/styled';
11
11
  export { default as styled } from '@emotion/styled';
12
12
  import * as _emotion_react from '@emotion/react';
13
+ import * as preact_hooks from 'preact/hooks';
13
14
  import * as react_hook_form from 'react-hook-form';
14
15
  import { UseFormReturn } from 'react-hook-form';
15
16
  export { Controller, FormProvider, useFieldArray, useForm, useFormContext } from 'react-hook-form';
@@ -420,6 +421,17 @@ declare const _default$3: {
420
421
  }) => react_jsx_runtime.JSX.Element;
421
422
  };
422
423
 
424
+ declare type DropdownProps = {
425
+ items: MenuProps$1["items"];
426
+ children: React.ReactNode;
427
+ className?: string;
428
+ };
429
+ declare const Dropdown: _emotion_styled.StyledComponent<DropdownProps & {
430
+ theme?: _emotion_react.Theme | undefined;
431
+ }, {}, {
432
+ ref?: preact_hooks.Ref<any> | undefined;
433
+ }>;
434
+
423
435
  declare const _default$2: {
424
436
  Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
425
437
  formMethods?: UseFormReturn<any, any> | null | undefined;
@@ -564,6 +576,37 @@ declare const _default$2: {
564
576
  }) => void) | undefined;
565
577
  containerStyle?: react.CSSProperties | undefined;
566
578
  }) => react_jsx_runtime.JSX.Element;
579
+ SelectMenu: ({ label, name, details, placeholder, className, options, disabled, mode, previewOnly, isLabelBold, formOptions, onChange, containerStyle, allowClear, loading, value, defaultValue, }: {
580
+ label?: string | JSX.Element | undefined;
581
+ name: string;
582
+ details?: string | undefined;
583
+ placeholder?: react.ReactNode;
584
+ options: {
585
+ label: react.ReactNode;
586
+ value: string | number;
587
+ }[];
588
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
589
+ disabled?: boolean | undefined;
590
+ previewOnly?: boolean | undefined;
591
+ isLabelBold?: boolean | undefined;
592
+ onChange?: (({ value, label }: {
593
+ label: react.ReactNode;
594
+ value: string | number;
595
+ }) => void) | undefined;
596
+ containerStyle?: react.CSSProperties | undefined;
597
+ allowClear?: boolean | undefined;
598
+ className?: string | undefined;
599
+ loading?: boolean | undefined;
600
+ mode?: "multiple" | "tags" | undefined;
601
+ value?: {
602
+ label: react.ReactNode;
603
+ value: string | number;
604
+ } | undefined;
605
+ defaultValue?: {
606
+ label: react.ReactNode;
607
+ value: string | number;
608
+ } | undefined;
609
+ }) => react_jsx_runtime.JSX.Element;
567
610
  Signature: ({ label, name, options, description, previewOnly, showIcon, ...inputProps }: {
568
611
  [inputProps: string]: unknown;
569
612
  label: string;
@@ -655,7 +698,8 @@ declare const _default: {
655
698
  } & MenuItemType) => react_jsx_runtime.JSX.Element;
656
699
  SubMenuContainer: ({ children, ...rest }: {
657
700
  children: react.ReactNode;
701
+ hideExpandIcon?: boolean | undefined;
658
702
  } & SubMenuProps) => react_jsx_runtime.JSX.Element;
659
703
  };
660
704
 
661
- export { Avatar, _default$6 as Button, Collapse, Contentful, ContentfulLottieFileSlug, DateSelect, Drawer, ErrorTypography, _default$2 as Form, _default$5 as Icons, LoadingSpinner, LottieAnimation, _default$4 as Menu, Modal, _default as NavigationMenu, _default$3 as NumberedProgressSteps, Pill, Progress, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, TimeSelect, Toggle, Tooltip, _default$1 as Typography, VantaLogo };
705
+ export { Avatar, _default$6 as Button, Collapse, Contentful, ContentfulLottieFileSlug, DateSelect, Drawer, Dropdown, ErrorTypography, _default$2 as Form, _default$5 as Icons, LoadingSpinner, LottieAnimation, _default$4 as Menu, Modal, _default as NavigationMenu, _default$3 as NumberedProgressSteps, Pill, Progress, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, TimeSelect, Toggle, Tooltip, _default$1 as Typography, VantaLogo };
package/dist/index.d.ts CHANGED
@@ -5,11 +5,12 @@ import { CSSProperties } from 'react';
5
5
  import * as contentful from 'contentful';
6
6
  import * as preact from 'preact';
7
7
  import { FunctionalComponent } from 'preact';
8
- import { TabsProps, SubMenuProps, MenuProps as MenuProps$1 } from 'antd';
8
+ import { TabsProps, MenuProps as MenuProps$1, SubMenuProps } from 'antd';
9
9
  import { MenuProps } from '@szhsin/react-menu';
10
10
  import * as _emotion_styled from '@emotion/styled';
11
11
  export { default as styled } from '@emotion/styled';
12
12
  import * as _emotion_react from '@emotion/react';
13
+ import * as preact_hooks from 'preact/hooks';
13
14
  import * as react_hook_form from 'react-hook-form';
14
15
  import { UseFormReturn } from 'react-hook-form';
15
16
  export { Controller, FormProvider, useFieldArray, useForm, useFormContext } from 'react-hook-form';
@@ -420,6 +421,17 @@ declare const _default$3: {
420
421
  }) => react_jsx_runtime.JSX.Element;
421
422
  };
422
423
 
424
+ declare type DropdownProps = {
425
+ items: MenuProps$1["items"];
426
+ children: React.ReactNode;
427
+ className?: string;
428
+ };
429
+ declare const Dropdown: _emotion_styled.StyledComponent<DropdownProps & {
430
+ theme?: _emotion_react.Theme | undefined;
431
+ }, {}, {
432
+ ref?: preact_hooks.Ref<any> | undefined;
433
+ }>;
434
+
423
435
  declare const _default$2: {
424
436
  Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
425
437
  formMethods?: UseFormReturn<any, any> | null | undefined;
@@ -564,6 +576,37 @@ declare const _default$2: {
564
576
  }) => void) | undefined;
565
577
  containerStyle?: react.CSSProperties | undefined;
566
578
  }) => react_jsx_runtime.JSX.Element;
579
+ SelectMenu: ({ label, name, details, placeholder, className, options, disabled, mode, previewOnly, isLabelBold, formOptions, onChange, containerStyle, allowClear, loading, value, defaultValue, }: {
580
+ label?: string | JSX.Element | undefined;
581
+ name: string;
582
+ details?: string | undefined;
583
+ placeholder?: react.ReactNode;
584
+ options: {
585
+ label: react.ReactNode;
586
+ value: string | number;
587
+ }[];
588
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
589
+ disabled?: boolean | undefined;
590
+ previewOnly?: boolean | undefined;
591
+ isLabelBold?: boolean | undefined;
592
+ onChange?: (({ value, label }: {
593
+ label: react.ReactNode;
594
+ value: string | number;
595
+ }) => void) | undefined;
596
+ containerStyle?: react.CSSProperties | undefined;
597
+ allowClear?: boolean | undefined;
598
+ className?: string | undefined;
599
+ loading?: boolean | undefined;
600
+ mode?: "multiple" | "tags" | undefined;
601
+ value?: {
602
+ label: react.ReactNode;
603
+ value: string | number;
604
+ } | undefined;
605
+ defaultValue?: {
606
+ label: react.ReactNode;
607
+ value: string | number;
608
+ } | undefined;
609
+ }) => react_jsx_runtime.JSX.Element;
567
610
  Signature: ({ label, name, options, description, previewOnly, showIcon, ...inputProps }: {
568
611
  [inputProps: string]: unknown;
569
612
  label: string;
@@ -655,7 +698,8 @@ declare const _default: {
655
698
  } & MenuItemType) => react_jsx_runtime.JSX.Element;
656
699
  SubMenuContainer: ({ children, ...rest }: {
657
700
  children: react.ReactNode;
701
+ hideExpandIcon?: boolean | undefined;
658
702
  } & SubMenuProps) => react_jsx_runtime.JSX.Element;
659
703
  };
660
704
 
661
- export { Avatar, _default$6 as Button, Collapse, Contentful, ContentfulLottieFileSlug, DateSelect, Drawer, ErrorTypography, _default$2 as Form, _default$5 as Icons, LoadingSpinner, LottieAnimation, _default$4 as Menu, Modal, _default as NavigationMenu, _default$3 as NumberedProgressSteps, Pill, Progress, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, TimeSelect, Toggle, Tooltip, _default$1 as Typography, VantaLogo };
705
+ export { Avatar, _default$6 as Button, Collapse, Contentful, ContentfulLottieFileSlug, DateSelect, Drawer, Dropdown, ErrorTypography, _default$2 as Form, _default$5 as Icons, LoadingSpinner, LottieAnimation, _default$4 as Menu, Modal, _default as NavigationMenu, _default$3 as NumberedProgressSteps, Pill, Progress, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, TimeSelect, Toggle, Tooltip, _default$1 as Typography, VantaLogo };