@televet/kibble-ui 1.0.17 → 1.1.0-beta.1

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.
Files changed (27) hide show
  1. package/build/components/Button/button.component.d.ts +12 -0
  2. package/build/components/Button/button.model.d.ts +5 -0
  3. package/build/components/Button/button.records.d.ts +2 -0
  4. package/build/components/Button/button.types.d.ts +5 -0
  5. package/build/components/Button/index.d.ts +4 -0
  6. package/build/components/Drawer/index.d.ts +1 -1
  7. package/build/components/Icon/icon.component.d.ts +2 -2
  8. package/build/components/Icon/icon.types.d.ts +1 -1
  9. package/build/components/Tooltip/index.d.ts +3 -0
  10. package/build/components/Tooltip/tooltip.component.d.ts +8 -0
  11. package/build/components/Tooltip/tooltip.model.d.ts +4 -0
  12. package/build/components/Tooltip/tooltip.records.d.ts +9 -0
  13. package/build/components/Typography/Heading/index.d.ts +1 -1
  14. package/build/components/Typography/Text/index.d.ts +1 -1
  15. package/build/components/index.d.ts +2 -0
  16. package/build/index.js +606 -350
  17. package/build/index.js.map +1 -1
  18. package/build/theme/index.d.ts +2 -2
  19. package/build/theme/{theme.types.d.ts → theme.model.d.ts} +3 -1
  20. package/build/theme/theme.record.d.ts +2 -0
  21. package/package.json +1 -1
  22. package/build/theme/theme.config.d.ts +0 -2
  23. /package/build/components/Drawer/{drawer.config.d.ts → drawer.records.d.ts} +0 -0
  24. /package/build/components/Icon/{icon.config.d.ts → icon.records.d.ts} +0 -0
  25. /package/build/components/Logo/{logo.config.d.ts → logo.records.d.ts} +0 -0
  26. /package/build/components/Typography/Heading/{heading.config.d.ts → heading.records.d.ts} +0 -0
  27. /package/build/components/Typography/Text/{text.config.d.ts → text.records.d.ts} +0 -0
@@ -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,5 @@
1
+ import { ButtonColorOptions } from './button.types';
2
+ import { AdaptiveColorMap } from '../../theme/tokens/colors';
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.records';
@@ -1 +1 @@
1
- export * from './drawer.config';
1
+ export * from './drawer.records';
@@ -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 = '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' | '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';
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' | 'conversationClinicians' | 'conversationParents' | '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;
@@ -1,3 +1,3 @@
1
1
  export * from './heading.component';
2
2
  export * from './heading.types';
3
- export * from './heading.config';
3
+ export * from './heading.records';
@@ -1,3 +1,3 @@
1
1
  export * from './text.component';
2
- export * from './text.config';
2
+ export * from './text.records';
3
3
  export * from './text.types';
@@ -1,5 +1,7 @@
1
+ export * from './Button';
1
2
  export * from './Drawer';
2
3
  export * from './Icon';
3
4
  export * from './Logo';
4
5
  export * from './Typography';
6
+ export * from './Tooltip';
5
7
  export * from './Textarea';