kui-basic 1.1.67 → 1.1.69

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/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { HTMLInputTypeAttribute, ReactElement, SyntheticEvent, ReactNode, RefObject } from 'react';
3
+ import { Placement } from '@floating-ui/react';
4
+ import { MiddlewareData } from '@floating-ui/core/src/types';
3
5
 
4
6
  interface BrandColors {
5
7
  main: string
@@ -751,58 +753,45 @@ type IconButtonType = (props: IconButtonProps) => React.ReactElement
751
753
 
752
754
  declare const IconButton: IconButtonType
753
755
 
754
- type PopperPlacements =
755
- | "right"
756
- | "left"
757
- | "topStart"
758
- | "topMiddle"
759
- | "topEnd"
760
- | "bottomStart"
761
- | "bottomMiddle"
762
- | "bottomEnd"
763
-
764
- type PopperBaseProps = {
765
- open?: boolean
766
- placement?: PopperPlacements
767
- withArrow?: boolean
768
- spacing?: string
769
- className?: string
770
- withoutMobile?: boolean
756
+ type PopperStylesProps = {
757
+ open: boolean
758
+ }
759
+
760
+ type PopperBaseProps = {
761
+ open?: boolean
762
+ withArrow?: boolean
763
+ spacing?: string
764
+ className?: string
765
+ arrowRef?: RefObject<HTMLElement>
766
+ withoutMobile?: boolean
767
+ realPlacement?: Placement
768
+ arrowPosition?: MiddlewareData["arrow"]
771
769
  } & React.HTMLAttributes<HTMLDivElement>
772
770
 
773
- type PopperProps = {
774
- contentRef: RefObject<HTMLDivElement>
775
- } & PopperBaseProps
776
-
777
- type PopperSizeParams = {
778
- width: number
779
- height: number
780
- }
781
-
782
- declare const Popper: (props: PopperProps) => React.ReactElement
771
+ declare const PopperBase: (props: PopperBaseProps) => React.ReactElement
772
+
773
+ type TooltipToggleMethods = "click" | "hover"
774
+
775
+ interface TooltipProps
776
+ extends Omit<React.HTMLAttributes<HTMLDivElement>, "content" | "onChange"> {
777
+ onOpen?: () => void
778
+ onClose?: () => void
779
+ onChange?: (isOpen: boolean) => void
780
+ content: ReactNode
781
+ open?: boolean
782
+ placement?: Placement
783
+ withArrow?: boolean
784
+ cursor?: "pointer" | "auto"
785
+ spacing?: string
786
+ toggleMethod?: TooltipToggleMethods
787
+ withoutMobile?: boolean
788
+ }
789
+
790
+ type TooltipStylesProps = {
791
+ cursor?: "pointer" | "auto"
792
+ spacing?: string
793
+ }
783
794
 
784
- type TooltipToggleMethods = "click" | "hover"
785
-
786
- interface TooltipProps
787
- extends Omit<React.HTMLAttributes<HTMLDivElement>, "content" | "onChange"> {
788
- onOpen?: () => void
789
- onClose?: () => void
790
- onChange?: (isOpen: boolean) => void
791
- content: ReactNode
792
- open?: boolean
793
- placement?: PopperPlacements
794
- withArrow?: boolean
795
- cursor?: "pointer" | "auto"
796
- spacing?: string
797
- toggleMethod?: TooltipToggleMethods
798
- withoutMobile?: boolean
799
- }
800
-
801
- type TooltipStylesProps = {
802
- cursor?: "pointer" | "auto"
803
- spacing?: string
804
- }
805
-
806
795
  declare const Tooltip: (props: TooltipProps) => React.ReactElement
807
796
 
808
797
  interface ErrorComponentProps
@@ -817,4 +806,4 @@ interface ErrorComponentProps
817
806
 
818
807
  declare const ErrorComponent: (props: ErrorComponentProps) => React.ReactElement
819
808
 
820
- 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 };
809
+ 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, PopperBase as Popper, PopperBaseProps, PopperStylesProps, 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 };