@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.
- package/build/components/Button/button.component.d.ts +12 -0
- package/build/components/Button/button.config.d.ts +2 -0
- package/build/components/Button/button.model.d.ts +5 -0
- package/build/components/Button/button.records.d.ts +2 -0
- package/build/components/Button/button.types.d.ts +5 -0
- package/build/components/Button/index.d.ts +4 -0
- package/build/components/Drawer/drawer.records.d.ts +13 -0
- package/build/components/Icon/icon.component.d.ts +2 -2
- package/build/components/Icon/icon.types.d.ts +1 -1
- package/build/components/Tooltip/index.d.ts +3 -0
- package/build/components/Tooltip/tooltip.component.d.ts +8 -0
- package/build/components/Tooltip/tooltip.model.d.ts +4 -0
- package/build/components/Tooltip/tooltip.records.d.ts +9 -0
- package/build/components/Typography/Heading/heading.records.d.ts +2 -0
- package/build/components/Typography/Text/text.records.d.ts +2 -0
- package/build/components/index.d.ts +1 -0
- package/build/index.js +503 -319
- package/build/index.js.map +1 -1
- package/build/theme/theme.model.d.ts +33 -0
- package/build/theme/theme.record.d.ts +2 -0
- package/build/theme/theme.types.d.ts +2 -1
- package/package.json +2 -2
- /package/build/components/Icon/{icon.config.d.ts → icon.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 { 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,8 +1,8 @@
|
|
|
1
|
-
|
|
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:
|
|
8
|
+
export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<any>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare type IconName = '
|
|
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,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;
|