kui-basic 1.1.38 → 1.1.40
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/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/index.d.ts +45 -41
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { HTMLInputTypeAttribute, ReactElement, SyntheticEvent,
|
|
2
|
+
import { HTMLInputTypeAttribute, ReactElement, SyntheticEvent, ReactNode, RefObject } from 'react';
|
|
3
3
|
|
|
4
4
|
interface BrandColors {
|
|
5
5
|
main: string
|
|
@@ -658,27 +658,27 @@ type LinearProgressType = (
|
|
|
658
658
|
|
|
659
659
|
declare const LinearProgress: LinearProgressType
|
|
660
660
|
|
|
661
|
-
type TabChangeHandlerType = (
|
|
662
|
-
e: SyntheticEvent<HTMLButtonElement>,
|
|
663
|
-
value: number
|
|
664
|
-
) => void
|
|
665
|
-
|
|
666
|
-
interface TabProps
|
|
667
|
-
extends Omit<
|
|
668
|
-
React.DetailedHTMLProps<
|
|
669
|
-
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
670
|
-
HTMLButtonElement
|
|
671
|
-
>,
|
|
672
|
-
"onChange"
|
|
673
|
-
> {
|
|
674
|
-
selected?: boolean
|
|
675
|
-
value?: number
|
|
676
|
-
label: string
|
|
677
|
-
onChange?: TabChangeHandlerType
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
type TabType = (props: TabProps) => React.ReactElement
|
|
681
|
-
|
|
661
|
+
type TabChangeHandlerType = (
|
|
662
|
+
e: SyntheticEvent<HTMLButtonElement>,
|
|
663
|
+
value: number
|
|
664
|
+
) => void
|
|
665
|
+
|
|
666
|
+
interface TabProps
|
|
667
|
+
extends Omit<
|
|
668
|
+
React.DetailedHTMLProps<
|
|
669
|
+
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
670
|
+
HTMLButtonElement
|
|
671
|
+
>,
|
|
672
|
+
"onChange"
|
|
673
|
+
> {
|
|
674
|
+
selected?: boolean
|
|
675
|
+
value?: number
|
|
676
|
+
label: string | ReactNode
|
|
677
|
+
onChange?: TabChangeHandlerType
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
type TabType = (props: TabProps) => React.ReactElement
|
|
681
|
+
|
|
682
682
|
declare const Tab: TabType
|
|
683
683
|
|
|
684
684
|
type TabsIndicatorPositions = "bottom" | "top"
|
|
@@ -708,7 +708,7 @@ interface TabsPanelProps
|
|
|
708
708
|
>,
|
|
709
709
|
"onChange"
|
|
710
710
|
> {
|
|
711
|
-
tabs: string[]
|
|
711
|
+
tabs: (string | ReactNode)[]
|
|
712
712
|
tabPanels?: React.ReactNode[]
|
|
713
713
|
paths?: string[]
|
|
714
714
|
activeTab?: number
|
|
@@ -780,23 +780,27 @@ type PopperSizeParams = {
|
|
|
780
780
|
|
|
781
781
|
declare const Popper: (props: PopperProps) => React.ReactElement
|
|
782
782
|
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
783
|
+
type TooltipToggleMethods = "click" | "hover"
|
|
784
|
+
|
|
785
|
+
interface TooltipProps
|
|
786
|
+
extends Omit<React.HTMLAttributes<HTMLDivElement>, "content" | "onChange"> {
|
|
787
|
+
onOpen?: () => void
|
|
788
|
+
onClose?: () => void
|
|
789
|
+
onChange?: (isOpen: boolean) => void
|
|
790
|
+
content: ReactNode
|
|
791
|
+
open?: boolean
|
|
792
|
+
placement?: PopperPlacements
|
|
793
|
+
withArrow?: boolean
|
|
794
|
+
cursor?: "pointer" | "auto"
|
|
795
|
+
spacing?: string
|
|
796
|
+
toggleMethod?: TooltipToggleMethods
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
type TooltipStylesProps = {
|
|
800
|
+
cursor?: "pointer" | "auto"
|
|
801
|
+
spacing?: string
|
|
802
|
+
}
|
|
803
|
+
|
|
800
804
|
declare const Tooltip: (props: TooltipProps) => React.ReactElement
|
|
801
805
|
|
|
802
806
|
interface ErrorComponentProps
|
|
@@ -811,4 +815,4 @@ interface ErrorComponentProps
|
|
|
811
815
|
|
|
812
816
|
declare const ErrorComponent: (props: ErrorComponentProps) => React.ReactElement
|
|
813
817
|
|
|
814
|
-
export { Accordion, AccordionDetails, AccordionDetailsType, AccordionProps, AccordionSummary, AccordionSummaryProps, AccordionSummaryType, AccordionType, AppBar, AppBarProps, AppBarType, BackgroundColors, BackgroundColorsType, Box, BoxProps, BoxSizing, BoxType, BrandColors, BreakpointsType, Button, ButtonBorder, ButtonProps, ButtonSizes, ButtonThemes, ButtonType, ButtonTypes, Caption, CaptionAlign, CaptionColorGroups, CaptionColors, CaptionProps, CaptionSizes, CaptionType, CaptionVariants, CaptionWeight, Checkbox, CheckboxProps, CheckboxType, CircularProgress, CircularProgressType, ColorOption, ColorsType, Container, ContainerType, CountryItem, Divider, DividerProps, DividerType, ErrorColorsType, ErrorComponent, ErrorComponentProps, GreyColors, Grid, GridAlignItems, GridDirections, GridJustify, GridProps, GridSizing, GridType, GridWrap, Heading, HeadingColorGroups, HeadingColors, HeadingProps, HeadingSizes, HeadingType, IconButton, IconButtonProps, IconButtonType, InfoColorsType, Input, InputFile, InputFileProps, InputFileType, InputMessage, InputMessageProps, InputMessageType, InputMessageVariant, InputProps, InputType, InputWithAdornments, InputWithAdornmentsProps, InputWithAdornmentsType, InputWithCountryDropdown, InputWithCountryDropdownProps, InputWithCountryDropdownType, InputWithMask, InputWithMaskProps, InputWithMaskType, LinearProgress, LinearProgressType, MenuPanel, MenuPanelProps, MenuPanelType, Modal, ModalProps, ModalSizes, ModalType, Palette, Popper, PopperProps, PopperSizeParams, PrimaryColorsType, PurpleColorsType, Radio, RadioProps, RadioType, SecondaryColorsType, SettingsType, ShadowsType, Skeleton, SkeletonType, SuccessColorsType, Switch, SwitchProps, SwitchSizes, SwitchType, Tab, TabChangeHandlerType, TabProps, TabType, Tabs, TabsIndicatorPositions, TabsPanel, TabsPanelProps, TabsPanelType, TabsProps, TabsType, Text, TextColors, TextProps, TextSizes, TextType, TextWeight, ThemeInterface, ThemeType, ToolBar, ToolBarType, Tooltip, TooltipProps, TooltipStylesProps, theme, themeOld };
|
|
818
|
+
export { Accordion, AccordionDetails, AccordionDetailsType, AccordionProps, AccordionSummary, AccordionSummaryProps, AccordionSummaryType, AccordionType, AppBar, AppBarProps, AppBarType, BackgroundColors, BackgroundColorsType, Box, BoxProps, BoxSizing, BoxType, BrandColors, BreakpointsType, Button, ButtonBorder, ButtonProps, ButtonSizes, ButtonThemes, ButtonType, ButtonTypes, Caption, CaptionAlign, CaptionColorGroups, CaptionColors, CaptionProps, CaptionSizes, CaptionType, CaptionVariants, CaptionWeight, Checkbox, CheckboxProps, CheckboxType, CircularProgress, CircularProgressType, ColorOption, ColorsType, Container, ContainerType, CountryItem, Divider, DividerProps, DividerType, ErrorColorsType, ErrorComponent, ErrorComponentProps, GreyColors, Grid, GridAlignItems, GridDirections, GridJustify, GridProps, GridSizing, GridType, GridWrap, Heading, HeadingColorGroups, HeadingColors, HeadingProps, HeadingSizes, HeadingType, IconButton, IconButtonProps, IconButtonType, InfoColorsType, Input, InputFile, InputFileProps, InputFileType, InputMessage, InputMessageProps, InputMessageType, InputMessageVariant, InputProps, InputType, InputWithAdornments, InputWithAdornmentsProps, InputWithAdornmentsType, InputWithCountryDropdown, InputWithCountryDropdownProps, InputWithCountryDropdownType, InputWithMask, InputWithMaskProps, InputWithMaskType, LinearProgress, LinearProgressType, MenuPanel, MenuPanelProps, MenuPanelType, Modal, ModalProps, ModalSizes, ModalType, Palette, Popper, PopperProps, PopperSizeParams, PrimaryColorsType, PurpleColorsType, Radio, RadioProps, RadioType, SecondaryColorsType, SettingsType, ShadowsType, Skeleton, SkeletonType, SuccessColorsType, Switch, SwitchProps, SwitchSizes, SwitchType, Tab, TabChangeHandlerType, TabProps, TabType, Tabs, TabsIndicatorPositions, TabsPanel, TabsPanelProps, TabsPanelType, TabsProps, TabsType, Text, TextColors, TextProps, TextSizes, TextType, TextWeight, ThemeInterface, ThemeType, ToolBar, ToolBarType, Tooltip, TooltipProps, TooltipStylesProps, TooltipToggleMethods, theme, themeOld };
|