@televet/kibble-ui 1.0.18 → 1.1.0-beta.2

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,12 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { ButtonProps as ChakraButtonProps } from '@chakra-ui/react';
3
+ import { IconName } from '../Icon';
4
+ import { ButtonSize, ButtonVariant } from './button.types';
5
+ export interface ButtonProps extends ChakraButtonProps {
6
+ children?: ReactNode;
7
+ variant?: ButtonVariant;
8
+ size?: ButtonSize;
9
+ iconName?: IconName;
10
+ iconPosition?: 'left' | 'right';
11
+ }
12
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,2 @@
1
+ import { ButtonStyleConfig } from './button.types';
2
+ export declare const ButtonConfig: ButtonStyleConfig;
@@ -0,0 +1,5 @@
1
+ import { ButtonColorOptions } from './button.types';
2
+ import { AdaptiveColorMap } from '../../theme/tokens';
3
+ export interface ButtonVariantConfig extends AdaptiveColorMap<ButtonColorOptions> {
4
+ variant: 'solid' | 'outline' | 'ghost';
5
+ }
@@ -0,0 +1,2 @@
1
+ import { ButtonStyleConfig } from './button.types';
2
+ export declare const ButtonConfig: ButtonStyleConfig;
@@ -0,0 +1,5 @@
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>;
@@ -0,0 +1,4 @@
1
+ export * from './button.component';
2
+ export * from './button.types';
3
+ export * from './button.model';
4
+ export * from './button.config';
@@ -0,0 +1,13 @@
1
+ export declare const DrawerConfig: {
2
+ variants: {
3
+ alwaysOpen: {
4
+ parts: string[];
5
+ dialog: {
6
+ pointerEvents: string;
7
+ };
8
+ dialogContainer: {
9
+ pointerEvents: string;
10
+ };
11
+ };
12
+ };
13
+ };
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { IconColor, IconName, IconsSize } from './icon.types';
3
3
  export interface IconProps {
4
4
  name: IconName;
5
5
  size?: IconsSize;
6
6
  color?: IconColor;
7
7
  }
8
- export declare const Icon: ({ name, size, color }: IconProps) => JSX.Element;
8
+ export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<any>>;
@@ -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' | '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';
1
+ export declare type IconName = 'account' | 'add' | 'addAutomation' | 'addReaction' | 'announcement' | 'appointment' | 'attachFile' | 'attention' | 'automation' | 'automations' | 'back' | 'bird' | 'boarding' | 'bookmark' | 'bookmarked' | 'caduceus' | 'call' | 'camera' | 'cameraOff' | 'cat' | 'chat' | 'chatLinks' | 'checkmark' | 'checkmarkCircle' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'clock' | 'close' | 'closeCircle' | 'collapse' | 'colorPicker' | 'compose' | 'conversation' | 'conversations' | 'conversationsOutlined' | 'cow' | 'delete' | 'devTools' | 'dialPad' | 'dog' | 'download' | 'dragDrop' | 'draggable' | 'duplicate' | 'edit' | 'editCalendar' | 'editForm' | 'editText' | 'emoji' | 'endCall' | 'envelope' | 'envelopeOutlined' | 'expand' | 'filter' | 'filterOutlined' | 'flipCamera' | 'forms' | 'formsOutlined' | 'forward' | 'grooming' | 'help' | 'helpdesk' | 'hidden' | 'home' | 'horse' | 'information' | 'invoicing' | 'like' | 'link' | 'list' | 'locationMap' | 'locationMarker' | 'massTextAlerts' | 'medicalRecords' | 'menu' | 'message' | 'messageTemplates' | 'microphone' | 'microphoneMuted' | 'mobileDevice' | 'more' | 'moreHorizontal' | 'next' | 'note' | 'notification' | 'pay' | 'pdf' | 'prescribe' | 'prescription' | 'pets' | 'previous' | 'processing' | 'questionMark' | 'refresh' | 'reminder' | 'reminders' | 'renew' | 'reporting' | 'schedule' | 'search' | 'searchPets' | 'secure' | 'send' | 'sendEmail' | 'sendMobile' | 'sendPayment' | 'settings' | 'star' | 'talkToStaff' | 'teamChat' | 'toggleLeft' | 'toggleRight' | 'vet' | 'videoCall' | 'view' | 'virtualConsult' | 'visible' | 'warning' | 'wildcard';
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';
@@ -0,0 +1,3 @@
1
+ export * from './tooltip.component';
2
+ export * from './tooltip.model';
3
+ export * from './tooltip.records';
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { Placement, TooltipProps as ChakraTooltipProps } from '@chakra-ui/react';
3
+ export interface TooltipProps extends ChakraTooltipProps {
4
+ children: ReactNode;
5
+ label: string;
6
+ placement: Placement;
7
+ }
8
+ export declare const Tooltip: ({ children, label, placement, isOpen, defaultIsOpen, ...rest }: TooltipProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { AdaptiveColor } from '../../theme/tokens';
2
+ export interface TooltipStyleConfig {
3
+ color: AdaptiveColor;
4
+ }
@@ -0,0 +1,9 @@
1
+ import { TooltipStyleConfig } from './tooltip.model';
2
+ export declare const TooltipGlobalStyle: {
3
+ '[id^=tooltip]': {
4
+ padding: string;
5
+ borderRadius: string;
6
+ textTransform: string;
7
+ };
8
+ };
9
+ export declare const TooltipConfig: TooltipStyleConfig;
@@ -0,0 +1,2 @@
1
+ import { HeadingStyleConfig } from './heading.types';
2
+ export declare const HeadingConfig: HeadingStyleConfig;
@@ -0,0 +1,2 @@
1
+ import { ComponentStyleConfig } from '@chakra-ui/theme';
2
+ export declare const TextConfig: ComponentStyleConfig;
@@ -3,3 +3,4 @@ export * from './Icon';
3
3
  export * from './Logo';
4
4
  export * from './Typography';
5
5
  export * from './Textarea';
6
+ export * from './Button';