@televet/kibble-ui 1.3.2-beta.3tvjp7e.21 → 1.3.2-beta.3tvjp7e.23

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.
@@ -0,0 +1,3 @@
1
+ export * from './tag.component';
2
+ export * from './tag.config';
3
+ export * from './tag.types';
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { TagProps as ChakraTagProps } from '@chakra-ui/react';
3
+ import { TagSize } from './tag.types';
4
+ export interface TagProps extends ChakraTagProps {
5
+ leftElement?: JSX.Element;
6
+ rightElement?: JSX.Element;
7
+ label: string;
8
+ showCloseButton?: boolean;
9
+ onClose?: () => void;
10
+ size?: TagSize;
11
+ }
12
+ export declare const Tag: ({ leftElement, rightElement, label, showCloseButton, onClose, size, ...rest }: TagProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ComponentStyleConfig } from '@chakra-ui/react';
2
+ export declare const TagConfig: ComponentStyleConfig;
@@ -0,0 +1 @@
1
+ export declare type TagSize = 'sm' | 'md' | 'lg';
@@ -1,2 +1,3 @@
1
1
  export * from './Table';
2
+ export * from './Tag';
2
3
  export * from './NotificationCounter';
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { SwitchProps as CSwitchProps } from '@chakra-ui/react';
3
3
  import { WithFormControlProps } from '../FormControl/formControl.component';
4
4
  export interface SwitchProps extends WithFormControlProps, CSwitchProps {
5
+ $isFieldInline?: boolean;
5
6
  }
6
7
  declare const WrappedSwitch: React.FC<SwitchProps & WithFormControlProps>;
7
8
  export { WrappedSwitch as Switch };
@@ -10,6 +10,7 @@ export interface MenuListProps extends CMenuListProps {
10
10
  menuItems?: MenuItemProps[];
11
11
  onMenuItemSelect?: ((selectedItem: MenuItemProps) => void) | ((selectedItem: MenuItemProps) => Promise<void>);
12
12
  onMenuItemSelectAll?: ((selectedItems: MenuItemProps[]) => void) | ((selectedItems: MenuItemProps[]) => Promise<void>);
13
+ searchPlaceholder?: string;
13
14
  }
14
- declare const MenuList: ({ canSelectAll, canSelectGroups, children, isGrouped, isMultiSelect, isSearchable, menuItems, onMenuItemSelect, onMenuItemSelectAll, ...rest }: MenuListProps) => JSX.Element;
15
+ declare const MenuList: ({ canSelectAll, canSelectGroups, children, isGrouped, isMultiSelect, isSearchable, menuItems, onMenuItemSelect, onMenuItemSelectAll, searchPlaceholder, ...rest }: MenuListProps) => JSX.Element;
15
16
  export default MenuList;
@@ -6,6 +6,7 @@ export interface MenuSearchBarProps {
6
6
  onSearchCallback?: (e: ChangeEventHandler) => void;
7
7
  searchInputRef?: MutableRefObject<HTMLInputElement | null>;
8
8
  setFilteredMenuItems: Dispatch<SetStateAction<MenuItemProps[]>>;
9
+ placeholder?: string;
9
10
  }
10
- declare const MenuSearchBar: ({ handleKeyboardNavigation, menuItems, onSearchCallback, searchInputRef, setFilteredMenuItems, }: MenuSearchBarProps) => JSX.Element;
11
+ declare const MenuSearchBar: ({ handleKeyboardNavigation, menuItems, onSearchCallback, searchInputRef, setFilteredMenuItems, placeholder, }: MenuSearchBarProps) => JSX.Element;
11
12
  export default MenuSearchBar;
@@ -5,7 +5,7 @@ export declare const MenuItemConfig: {
5
5
  fontSize: string;
6
6
  px: string;
7
7
  py: string;
8
- outline: string;
8
+ outline: number;
9
9
  transitionDuration: string;
10
10
  transitionProperty: string;
11
11
  transitionTimingFunction: string;
@@ -5,7 +5,7 @@ import { TextColor } from '../typography.types';
5
5
  export interface HeadingProps extends ChakraHeadingProps {
6
6
  children: ReactNode;
7
7
  size?: HeadingSize;
8
- color?: TextColor;
8
+ colorToken?: TextColor;
9
9
  darkMode?: boolean;
10
10
  }
11
- export declare const Heading: ({ children, size, color, darkMode, ...rest }: HeadingProps) => JSX.Element;
11
+ export declare const Heading: ({ children, size, color, colorToken, darkMode, ...rest }: HeadingProps) => JSX.Element;
@@ -6,7 +6,7 @@ export interface TextProps extends ChakraTextProps {
6
6
  children: ReactNode;
7
7
  as?: HTMLTagName;
8
8
  variant?: TextVariant;
9
- color?: TextColor;
9
+ colorToken?: TextColor;
10
10
  darkMode?: boolean;
11
11
  }
12
- export declare const Text: ({ children, variant, as, color, darkMode, ...rest }: TextProps) => JSX.Element;
12
+ export declare const Text: ({ children, variant, as, color, colorToken, darkMode, ...rest }: TextProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
- import { AdaptiveColorMap } from '../theme/tokens/colors';
2
- export declare const useAdaptiveColorMap: <T extends string | number | symbol>(map: AdaptiveColorMap<T>, token: T) => string;
1
+ import { AdaptiveColorMap } from '../theme/tokens';
2
+ export declare const useAdaptiveColorMap: <T extends string | number | symbol>(map: AdaptiveColorMap<T>, token: T, darkMode?: boolean | undefined) => string;