@televet/kibble-ui 1.0.11-beta.0 → 1.0.11

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 { ReactNode } from 'react';
2
+ import { IconName } from '../Icon/icon.types';
3
+ import { ButtonOptions } from '@chakra-ui/button/dist/declarations/src/button';
4
+ import { ButtonSize, ButtonVariant } from './button.types';
5
+ export interface ButtonProps extends ButtonOptions {
6
+ children?: ReactNode;
7
+ variant: ButtonVariant;
8
+ size: ButtonSize;
9
+ iconName?: IconName;
10
+ iconPosition?: 'left' | 'right';
11
+ }
12
+ export declare const Button: (props: ButtonProps) => JSX.Element;
@@ -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>;
@@ -1,5 +1,4 @@
1
- import { ReactNode } from 'react';
2
- declare const Button: ({ children }: {
3
- children: ReactNode;
4
- }) => JSX.Element;
5
- export default Button;
1
+ export * from './button.component';
2
+ export * from './button.types';
3
+ export * from './button.model';
4
+ export * from './button.records';
@@ -1,3 +1,3 @@
1
1
  export declare type IconName = 'account' | 'add' | 'alert' | 'appointment' | 'attachFile' | 'back' | 'cat' | 'chat' | 'collapse' | 'conversations' | 'delete' | 'dialPad' | 'dog' | 'download' | 'emoji' | 'expand' | 'filter' | 'forms' | 'grooming' | 'help' | 'hidden' | 'home' | 'invoicing' | 'messageTemplates' | 'more' | 'next' | 'pets' | 'reminder' | 'reporting' | 'searchPets' | 'search' | 'send' | 'sendPayment' | 'settings' | 'schedule' | 'teamChat' | 'videoCall' | 'view' | 'visible' | 'warning' | 'massTextAlerts';
2
2
  export declare type IconsSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
- export declare type IconColor = 'default' | 'subtle' | 'inactive' | 'active' | 'success' | 'warning' | 'error';
3
+ export declare type IconColor = 'default' | 'subtle' | 'inactive' | 'active' | 'success' | 'warning' | 'error' | 'currentColor';
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ export declare enum LogoType {
3
+ Full = "Full",
4
+ Icon = "Icon",
5
+ Holiday = "Holiday"
6
+ }
7
+ export declare enum LogoColor {
8
+ Teal = "Teal",
9
+ Black = "Black",
10
+ White = "White"
11
+ }
12
+ export declare enum LogoHoliday {
13
+ NewYears = "NewYears",
14
+ Valentines = "Valentines",
15
+ StPatricks = "StPatricks",
16
+ AprilFools = "AprilFools",
17
+ Easter1 = "Easter1",
18
+ Easter2 = "Easter2",
19
+ Easter3 = "Easter3",
20
+ Easter4 = "Easter4",
21
+ Easter5 = "Easter5",
22
+ Easter6 = "Easter6",
23
+ MothersDay = "MothersDay",
24
+ MemorialDay = "MemorialDay",
25
+ Halloween = "Halloween",
26
+ Thanksgiving = "Thanksgiving",
27
+ Christmas = "Christmas"
28
+ }
29
+ export interface ILogoProps {
30
+ type?: LogoType;
31
+ color?: LogoColor;
32
+ holiday?: LogoHoliday;
33
+ }
34
+ declare const Logo: ({ type, color, holiday }: ILogoProps) => JSX.Element;
35
+ export default Logo;
@@ -0,0 +1,21 @@
1
+ import { ReactComponent as TealLogo } from '../../assets/logos/teal.svg';
2
+ import { ReactComponent as TealLogoIcon } from '../../assets/logos/tealIcon.svg';
3
+ import { ReactComponent as BlackLogo } from '../../assets/logos/black.svg';
4
+ import { ReactComponent as BlackLogoIcon } from '../../assets/logos/blackIcon.svg';
5
+ import { ReactComponent as WhiteLogo } from '../../assets/logos/white.svg';
6
+ import { ReactComponent as WhiteLogoIcon } from '../../assets/logos/whiteIcon.svg';
7
+ import { ReactComponent as NewYearsLogoIcon } from '../../assets/logos/holidays/newYears.svg';
8
+ import { ReactComponent as ValentinesLogoIcon } from '../../assets/logos/holidays/valentines.svg';
9
+ import { ReactComponent as StPatricksLogoIcon } from '../../assets/logos/holidays/stPatricks.svg';
10
+ import { ReactComponent as Easter1LogoIcon } from '../../assets/logos/holidays/easter1.svg';
11
+ import { ReactComponent as Easter2LogoIcon } from '../../assets/logos/holidays/easter2.svg';
12
+ import { ReactComponent as Easter3LogoIcon } from '../../assets/logos/holidays/easter3.svg';
13
+ import { ReactComponent as Easter4LogoIcon } from '../../assets/logos/holidays/easter4.svg';
14
+ import { ReactComponent as Easter5LogoIcon } from '../../assets/logos/holidays/easter5.svg';
15
+ import { ReactComponent as Easter6LogoIcon } from '../../assets/logos/holidays/easter6.svg';
16
+ import { ReactComponent as MothersDayLogoIcon } from '../../assets/logos/holidays/mothersDay.svg';
17
+ import { ReactComponent as MemorialDayLogoIcon } from '../../assets/logos/holidays/memorialDay.svg';
18
+ import { ReactComponent as HalloweenLogoIcon } from '../../assets/logos/holidays/halloween.svg';
19
+ import { ReactComponent as ThanksgivingLogoIcon } from '../../assets/logos/holidays/thanksgiving.svg';
20
+ import { ReactComponent as ChristmasLogoIcon } from '../../assets/logos/holidays/christmas.svg';
21
+ export { TealLogo, TealLogoIcon, BlackLogo, BlackLogoIcon, WhiteLogo, WhiteLogoIcon, NewYearsLogoIcon, ValentinesLogoIcon, StPatricksLogoIcon, Easter1LogoIcon, Easter2LogoIcon, Easter3LogoIcon, Easter4LogoIcon, Easter5LogoIcon, Easter6LogoIcon, MothersDayLogoIcon, MemorialDayLogoIcon, HalloweenLogoIcon, ThanksgivingLogoIcon, ChristmasLogoIcon, };
@@ -0,0 +1,3 @@
1
+ export * from './textarea.component';
2
+ export * from './textarea.types';
3
+ export * from './textarea.config';
@@ -0,0 +1,13 @@
1
+ import { ChangeEventHandler } from 'react';
2
+ import { TextareaResizeOrientation, TextareaSize } from './textarea.types';
3
+ export interface TextareaProps {
4
+ value: string;
5
+ onChange: ChangeEventHandler<HTMLTextAreaElement>;
6
+ isRequired?: boolean;
7
+ isDisabled?: boolean;
8
+ isInvalid?: boolean;
9
+ placeholder?: string;
10
+ size?: TextareaSize;
11
+ resize?: TextareaResizeOrientation;
12
+ }
13
+ export declare const Textarea: (props: TextareaProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ComponentStyleConfig } from '@chakra-ui/react';
2
+ export declare const TextareaConfig: ComponentStyleConfig;
@@ -0,0 +1,2 @@
1
+ export declare type TextareaSize = 'sm' | 'md' | 'lg';
2
+ export declare type TextareaResizeOrientation = 'horizontal' | 'vertical' | 'none';
@@ -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/colors';
2
+ export interface TooltipStyleConfig {
3
+ color: AdaptiveColor;
4
+ }
@@ -1,2 +1,2 @@
1
- import { AdaptiveColorMap } from '../theme/tokens/colors';
2
- export declare const useAdaptiveColor: <T extends string | number | symbol>(map: AdaptiveColorMap<T>, token: T) => string;
1
+ import { AdaptiveColor } from '../theme/tokens/colors';
2
+ export declare const useAdaptiveColor: (color: AdaptiveColor) => string;
@@ -0,0 +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;
package/build/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import theme, { ITheme } from './theme';
2
2
  import KibbleThemeProvider from './providers/ThemeProvider';
3
- import Button from './components/Button';
4
- import Banner from './components/Banner';
5
- export { theme, ITheme, KibbleThemeProvider, Button, Banner };
3
+ import { Button } from './components/Button';
4
+ import { Icon } from './components/Icon';
5
+ import Logo from './components/Logo';
6
+ export { theme, ITheme, KibbleThemeProvider, Icon, Logo, Button };