@televet/kibble-ui 1.2.0-beta.2mmrax1.8 → 1.2.0-beta.3

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.
@@ -1,13 +1,12 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { ButtonProps as ChakraButtonProps } from '@chakra-ui/react';
3
3
  import { IconName } from '../Icon';
4
- import { ButtonSizeType, ButtonVariantType } from './button.types';
4
+ import { ButtonSize, ButtonVariant } from './button.types';
5
5
  export interface ButtonProps extends ChakraButtonProps {
6
6
  children?: ReactNode;
7
- variant?: ButtonVariantType;
8
- size?: ButtonSizeType;
7
+ variant?: ButtonVariant;
8
+ size?: ButtonSize;
9
9
  iconName?: IconName;
10
10
  iconPosition?: 'left' | 'right';
11
- darkMode?: boolean;
12
11
  }
13
12
  export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,16 +1,2 @@
1
- import { ButtonStyleType } from './button.types';
2
- export declare const ButtonVariantConfig: ButtonStyleType;
3
- export declare const ButtonSizeConfig: {
4
- lg: {
5
- p: string;
6
- };
7
- md: {
8
- p: string;
9
- };
10
- sm: {
11
- p: string;
12
- };
13
- xs: {
14
- p: string;
15
- };
16
- };
1
+ import { ButtonStyleConfig } from './button.types';
2
+ export declare const ButtonConfig: ButtonStyleConfig;
@@ -1,5 +1,5 @@
1
1
  import { ButtonColorOptions } from './button.types';
2
- import { AdaptiveColorMap } from '../../theme/tokens/colors';
2
+ import { AdaptiveColorMap } from '../../theme/tokens';
3
3
  export interface ButtonVariantConfig extends AdaptiveColorMap<ButtonColorOptions> {
4
4
  variant: 'solid' | 'outline' | 'ghost';
5
5
  }
@@ -1,8 +1,5 @@
1
- import { AdaptiveColorMap } from '../../theme/tokens';
2
- export interface ButtonVariantConfigType extends AdaptiveColorMap<ButtonColorOptionsType> {
3
- variant: 'solid' | 'outline' | 'ghost';
4
- }
5
- export declare type ButtonVariantType = 'primary' | 'primaryDestructive' | 'secondary' | 'secondaryDestructive' | 'secondarySubtle' | 'secondarySubtleDestructive' | 'tertiary' | 'tertiaryDestructive' | 'ghost' | 'ghostNeutral' | 'ghostDestructive';
6
- export declare type ButtonColorOptionsType = 'content' | 'default' | 'hover' | 'active' | 'border';
7
- export declare type ButtonSizeType = 'xs' | 'sm' | 'md' | 'lg';
8
- export declare type ButtonStyleType = Record<ButtonVariantType, ButtonVariantConfigType>;
1
+ import { ButtonVariantConfig } from './button.model';
2
+ export declare type ButtonVariant = 'primary' | 'primaryDestructive' | 'secondary' | 'secondaryDestructive' | 'secondarySubtle' | 'secondarySubtleDestructive' | 'tertiary' | 'tertiaryDestructive' | 'ghost' | 'ghostNeutral' | 'ghostDestructive';
3
+ export declare type ButtonColorOptions = 'content' | 'default' | 'hover' | 'active' | 'border';
4
+ export declare type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
5
+ export declare type ButtonStyleConfig = Record<ButtonVariant, ButtonVariantConfig>;
@@ -1,3 +1,4 @@
1
1
  export * from './button.component';
2
2
  export * from './button.types';
3
+ export * from './button.model';
3
4
  export * from './button.config';
@@ -1,3 +1,3 @@
1
- export declare type IconName = 'alertCircle' | 'animalBird' | 'animalCat' | 'animalCow' | 'animalDog' | 'animalHorse' | 'arrowDownRight' | 'arrowCircle' | 'arrowLeft' | 'arrowRight' | 'arrowsIn' | 'arrowsOut' | 'article' | 'asterisk' | 'bell' | 'bellRinging' | 'bookmarkFilled' | 'bookmarkOutlined' | 'brush' | 'caduceus' | 'calendarDate' | 'calendarCheck' | 'calendarInfo' | 'calendarPen' | 'calendarOutlined' | 'camera' | 'cameraFlip' | 'cameraOff' | 'cancel' | 'cellphone' | 'cellphoneAlert' | 'chainLink' | 'chatBubbleFilled' | 'chatBubbleOutlined' | 'checkmark' | 'checkmarkBox' | 'checkmarkCircle' | 'checkmarkList' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'circleDotted' | 'clock' | 'close' | 'closeCircle' | 'code' | 'conversation' | 'creditCardHand' | 'crossClipboard' | 'crossPaw' | 'crossHatPerson' | 'dogHouse' | 'dogHouseOutlined' | 'dollar' | 'dollarCircle' | 'dotsCircle' | 'dotsHorizontal' | 'dotsVertical' | 'doubleArrowCircle' | 'download' | 'dragDrop' | 'emailSend' | 'envelopeFilled' | 'envelopeOutlined' | 'eyedropper' | 'eyeOpen' | 'eyeSlash' | 'faceScreen' | 'formsFilled' | 'formsOutlined' | 'funnelFilled' | 'funnelOutlined' | 'gear' | 'grid' | 'horizontalLines' | 'house' | 'infoCircleFilled' | 'infoCircleOutlined' | 'input' | 'invoice' | 'invoiceOutlined' | 'largeTextInput' | 'list' | 'locationMarker' | 'locationMarkerGround' | 'lockRectangle' | 'lockRound' | 'loudspeaker' | 'magnifyingGlass' | 'manHeadset' | 'message' | 'messages' | 'messageClipboard' | 'messageEllipses' | 'messageGear' | 'messageLink' | 'microphone' | 'microphoneMute' | 'moveLeft' | 'moveRight' | 'multipleChoice' | 'notification' | 'paperAirplane' | 'paperAirplane2' | 'paperAirplaneRight' | 'paperclip' | 'paperPen' | 'paw' | 'paw2' | 'pawMagnifyingGlass' | 'pawOutlined' | 'pdfLogo' | 'pen' | 'penSquare' | 'person' | 'personAdd' | 'phone' | 'phoneButtons' | 'phoneDown' | 'phoneRing' | 'pill' | 'pillHand' | 'playingCards' | 'plus' | 'questionMark' | 'questionMarkCircle' | 'quilInk' | 'reactLogo' | 'record' | 'report' | 'robot' | 'smileyFace' | 'smileyFacePlus' | 'star' | 'star2' | 'star2Outlined' | 'starCircle' | 'team' | 'textEdit' | 'thumbsUp' | 'trashcan' | 'twoSquares' | 'upload' | 'videoCamera' | 'warningSign' | 'website';
1
+ export declare type IconName = 'alertCircle' | 'animalBird' | 'animalCat' | 'animalCow' | 'animalDog' | 'animalHorse' | 'arrowDownRight' | 'arrowCircle' | 'arrowLeft' | 'arrowRight' | 'arrowsIn' | 'arrowsOut' | 'article' | 'asterisk' | 'bell' | 'bellRinging' | 'bookmarkFilled' | 'bookmarkOutlined' | 'brush' | 'caduceus' | 'calendarDate' | 'calendarCheck' | 'calendarInfo' | 'calendarPen' | 'calendarOutlined' | 'camera' | 'cameraFlip' | 'cameraOff' | 'cancel' | 'cellphone' | 'cellphoneAlert' | 'chainLink' | 'chatBubbleFilled' | 'chatBubbleOutlined' | 'checkmark' | 'checkmarkBox' | 'checkmarkCircle' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'circleDotted' | 'clock' | 'close' | 'closeCircle' | 'code' | 'conversation' | 'creditCardHand' | 'crossClipboard' | 'crossPaw' | 'crossHatPerson' | 'dogHouse' | 'dogHouseOutlined' | 'dollar' | 'dollarCircle' | 'dotsCircle' | 'dotsHorizontal' | 'dotsVertical' | 'doubleArrowCircle' | 'download' | 'dragDrop' | 'emailSend' | 'envelopeFilled' | 'envelopeOutlined' | 'eyedropper' | 'eyeOpen' | 'eyeSlash' | 'faceScreen' | 'formsFilled' | 'formsOutlined' | 'funnelFilled' | 'funnelOutlined' | 'gear' | 'grid' | 'horizontalLines' | 'house' | 'infoCircleFilled' | 'infoCircleOutlined' | 'invoice' | 'invoiceOutlined' | 'list' | 'locationMarker' | 'locationMarkerGround' | 'lockRectangle' | 'lockRound' | 'loudspeaker' | 'magnifyingGlass' | 'manHeadset' | 'message' | 'messages' | 'messageClipboard' | 'messageEllipses' | 'messageGear' | 'messageLink' | 'microphone' | 'microphoneMute' | 'moveLeft' | 'moveRight' | 'notification' | 'paperAirplane' | 'paperAirplane2' | 'paperAirplaneRight' | 'paperclip' | 'paperPen' | 'paw' | 'paw2' | 'pawMagnifyingGlass' | 'pawOutlined' | 'pdfLogo' | 'pen' | 'penSquare' | 'person' | 'phone' | 'phoneButtons' | 'phoneDown' | 'phoneRing' | 'pill' | 'pillHand' | 'playingCards' | 'plus' | 'questionMark' | 'questionMarkCircle' | 'quilInk' | 'reactLogo' | 'report' | 'robot' | 'smileyFace' | 'smileyFacePlus' | 'star' | 'star2' | 'star2Outlined' | 'team' | 'textEdit' | 'thumbsUp' | 'trashcan' | 'twoSquares' | 'upload' | 'videoCamera' | 'warningSign' | 'website';
2
2
  export declare type IconsSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
3
3
  export declare type IconColor = 'default' | 'subtle' | 'inactive' | 'active' | 'success' | 'warning' | 'error' | 'currentColor';
@@ -1,3 +1,3 @@
1
1
  export * from './tooltip.component';
2
- export * from './tooltip.types';
2
+ export * from './tooltip.model';
3
3
  export * from './tooltip.config';
@@ -1,4 +1,4 @@
1
- import { TooltipStyleConfig } from './tooltip.types';
1
+ import { TooltipStyleConfig } from './tooltip.model';
2
2
  export declare const TooltipGlobalStyle: {
3
3
  '[id^=tooltip]': {
4
4
  padding: string;
@@ -5,6 +5,5 @@ export interface HeadingProps extends ChakraHeadingProps {
5
5
  children: ReactNode;
6
6
  size?: HeadingSize;
7
7
  variant?: HeadingVariant;
8
- darkMode?: boolean;
9
8
  }
10
9
  export declare const Heading: ({ children, size, variant, ...rest }: HeadingProps) => JSX.Element;