@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.
- package/build/components/Button/button.component.d.ts +3 -4
- package/build/components/Button/button.config.d.ts +2 -16
- package/build/components/Button/button.model.d.ts +1 -1
- package/build/components/Button/button.types.d.ts +5 -8
- package/build/components/Button/index.d.ts +1 -0
- package/build/components/Icon/icon.types.d.ts +1 -1
- package/build/components/Tooltip/index.d.ts +1 -1
- package/build/components/Tooltip/tooltip.config.d.ts +1 -1
- package/build/components/Typography/Heading/heading.component.d.ts +0 -1
- package/build/index.js +457 -552
- package/build/index.js.map +1 -1
- package/build/theme/index.d.ts +1 -1
- package/build/theme/theme.config.d.ts +1 -1
- package/build/theme/theme.model.d.ts +3 -4
- package/build/theme/theme.types.d.ts +17 -21
- package/build/theme/tokens/colors/color.model.d.ts +17 -39
- package/build/theme/tokens/colors/color.record.d.ts +5 -5
- package/build/theme/tokens/colors/color.type.d.ts +1 -95
- package/build/theme/tokens/colors/index.d.ts +2 -1
- package/package.json +2 -3
- package/build/components/Icon/icon.config.d.ts +0 -3
- package/build/components/Logo/logo.records.d.ts +0 -33
- package/build/components/Tooltip/tooltip.types.d.ts +0 -4
- package/build/theme/tokens/colors/color.types.d.ts +0 -105
- package/build/theme/tokens/colors/colors.d.ts +0 -3
- package/build/theme/tokens/colors.d.ts +0 -82
|
@@ -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 {
|
|
4
|
+
import { ButtonSize, ButtonVariant } from './button.types';
|
|
5
5
|
export interface ButtonProps extends ChakraButtonProps {
|
|
6
6
|
children?: ReactNode;
|
|
7
|
-
variant?:
|
|
8
|
-
size?:
|
|
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 {
|
|
2
|
-
export declare const
|
|
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
|
|
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 {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare type
|
|
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,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' | '
|
|
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';
|