@televet/kibble-ui 1.3.2-release.0 → 1.3.2-release.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.
- package/build/components/Button/button.model.d.ts +5 -0
- package/build/components/Button/button.records.d.ts +2 -0
- package/build/components/DataDisplay/Badge/index.d.ts +1 -0
- package/build/components/DataDisplay/Code/index.d.ts +1 -0
- package/build/components/DataDisplay/Divider/index.d.ts +1 -0
- package/build/components/DataDisplay/Kbd/index.d.ts +1 -0
- package/build/components/DataDisplay/List/index.d.ts +1 -0
- package/build/components/DataDisplay/Tag/index.d.ts +1 -0
- package/build/components/Disclosure/Accordion/index.d.ts +1 -0
- package/build/components/Disclosure/Tabs/index.d.ts +1 -0
- package/build/components/Disclosure/VisuallyHidden/index.d.ts +1 -0
- package/build/components/Disclosure/index.d.ts +3 -0
- package/build/components/Drawer/drawer.records.d.ts +13 -0
- package/build/components/Feedback/Alert/index.d.ts +1 -0
- package/build/components/Feedback/CircularProgress/index.d.ts +1 -0
- package/build/components/Feedback/Progress/index.d.ts +1 -0
- package/build/components/Feedback/Skeleton/index.d.ts +1 -0
- package/build/components/Feedback/Spinner/index.d.ts +1 -0
- package/build/components/Feedback/Toast/index.d.ts +1 -0
- package/build/components/Feedback/index.d.ts +6 -0
- package/build/components/Forms/FormControl/formControl.component.d.ts +4 -4
- package/build/components/Icon/icon.config.d.ts +3 -0
- package/build/components/Logo/logo.records.d.ts +33 -0
- package/build/components/Media/Icon/icon.component.d.ts +8 -0
- package/build/components/Media/Icon/icon.records.d.ts +3 -0
- package/build/components/Media/Icon/icon.types.d.ts +3 -0
- package/build/components/Media/Icon/index.d.ts +2 -0
- package/build/components/Media/Logo/index.d.ts +2 -0
- package/build/components/Media/Logo/logo.component.d.ts +14 -0
- package/build/components/Media/Logo/logo.config.d.ts +6 -0
- package/build/components/Media/Logo/logo.types.d.ts +3 -0
- package/build/components/Media/Logo/logos.d.ts +22 -0
- package/build/components/Navigation/Breadcrumb/index.d.ts +1 -0
- package/build/components/Navigation/Link/index.d.ts +1 -0
- package/build/components/Navigation/LinkOverlay/index.d.ts +1 -0
- package/build/components/Navigation/index.d.ts +3 -0
- package/build/components/Overlay/AlertDialog/index.d.ts +1 -0
- package/build/components/Overlay/Menu/index.d.ts +1 -0
- package/build/components/TextInput/textInput.component.d.ts +3 -1
- package/build/components/Textarea/textarea.types.d.ts +2 -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/index.js +5 -4
- package/build/index.js.map +1 -1
- package/build/shared/interfaces/SelectOption.d.ts +4 -0
- package/build/theme/theme.model.d.ts +37 -0
- package/build/theme/theme.record.d.ts +2 -0
- package/build/theme/tokens/colors/color.model.d.ts +96 -0
- package/build/theme/tokens/colors/color.type.d.ts +102 -0
- package/build/theme/tokens/colors.d.ts +82 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Code } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Divider } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Kbd } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { List, ListIcon, ListItem, OrderedList, UnorderedList } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tag, TagLabel, TagLeftIcon, TagRightIcon, TagCloseButton } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Accordion, AccordionItem, AccordionButton, AccordionPanel, AccordionIcon } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tabs, TabList, TabPanels, Tab, TabPanel } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VisuallyHidden, VisuallyHiddenInput } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Alert, AlertIcon, AlertTitle, AlertDescription } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CircularProgress, CircularProgressLabel } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Progress } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Skeleton, SkeletonCircle, SkeletonText } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Spinner } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useToast } from '@chakra-ui/react';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface WithFormControlProps {
|
|
3
|
-
label?: string;
|
|
4
3
|
errorText?: string;
|
|
5
4
|
helperText?: string;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
isFieldInline?: boolean;
|
|
6
7
|
isInvalid?: boolean;
|
|
7
|
-
isRequired?: boolean;
|
|
8
8
|
isReadOnly?: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
isRequired?: boolean;
|
|
10
|
+
label?: string;
|
|
11
11
|
}
|
|
12
12
|
export declare function withFormControl<P extends object>(Component: React.ComponentType<P>): React.FC<P & WithFormControlProps>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type LogoType = 'full' | 'icon';
|
|
3
|
+
export declare type LogoColor = 'teal' | 'black' | 'white';
|
|
4
|
+
export declare enum LogoHoliday {
|
|
5
|
+
NewYears = "NewYears",
|
|
6
|
+
Valentines = "Valentines",
|
|
7
|
+
StPatricks = "StPatricks",
|
|
8
|
+
Easter1 = "Easter1",
|
|
9
|
+
Easter2 = "Easter2",
|
|
10
|
+
Easter3 = "Easter3",
|
|
11
|
+
Easter4 = "Easter4",
|
|
12
|
+
Easter5 = "Easter5",
|
|
13
|
+
Easter6 = "Easter6",
|
|
14
|
+
MothersDay = "MothersDay",
|
|
15
|
+
MemorialDay = "MemorialDay",
|
|
16
|
+
FathersDay = "FathersDay",
|
|
17
|
+
Halloween = "Halloween",
|
|
18
|
+
Thanksgiving = "Thanksgiving",
|
|
19
|
+
Christmas = "Christmas"
|
|
20
|
+
}
|
|
21
|
+
export declare const holidaysLogoIconMap: {
|
|
22
|
+
[key in LogoHoliday]: React.FC;
|
|
23
|
+
};
|
|
24
|
+
export declare const logoIconMap: {
|
|
25
|
+
black: import("react").FC<import("react").SVGProps<SVGSVGElement>>;
|
|
26
|
+
white: import("react").FC<import("react").SVGProps<SVGSVGElement>>;
|
|
27
|
+
teal: import("react").FC<import("react").SVGProps<SVGSVGElement>>;
|
|
28
|
+
};
|
|
29
|
+
export declare const fullLogoMap: {
|
|
30
|
+
black: import("react").FC<import("react").SVGProps<SVGSVGElement>>;
|
|
31
|
+
white: import("react").FC<import("react").SVGProps<SVGSVGElement>>;
|
|
32
|
+
teal: import("react").FC<import("react").SVGProps<SVGSVGElement>>;
|
|
33
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconColor, IconName, IconsSize } from './icon.types';
|
|
3
|
+
export interface IconProps {
|
|
4
|
+
name: IconName;
|
|
5
|
+
size?: IconsSize;
|
|
6
|
+
color?: IconColor;
|
|
7
|
+
}
|
|
8
|
+
export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<any>>;
|
|
@@ -0,0 +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' | 'checkmarkList' | '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' | 'input' | 'invoice' | 'invoiceOutlined' | 'largeTextInput' | 'list' | 'locationMarker' | 'locationMarkerGround' | 'lockRectangle' | 'lockRound' | 'loudspeaker' | 'magnifyingGlass' | 'manHeadset' | 'message' | 'messages' | 'messageClipboard' | 'messageEllipses' | 'messageGear' | 'messageLink' | 'microphone' | 'microphoneMute' | 'moveLeft' | 'moveRight' | 'multipleChoice' | 'notification' | 'paperAirplane' | 'paperAirplane2' | 'paperAirplaneRight' | 'paperclip' | 'paperPen' | 'paw' | 'paw2' | 'pawMagnifyingGlass' | 'pawOutlined' | 'pdfLogo' | 'pen' | 'penSquare' | 'person' | 'personAdd' | 'phone' | 'phoneButtons' | 'phoneDown' | 'phoneRing' | 'pill' | 'pillHand' | 'playingCards' | 'plus' | 'questionMark' | 'questionMarkCircle' | 'quilInk' | 'reactLogo' | 'record' | 'report' | 'robot' | 'smileyFace' | 'smileyFacePlus' | 'star' | 'star2' | 'star2Outlined' | 'starCircle' | 'team' | 'textEdit' | 'thumbsUp' | 'trashcan' | 'twoSquares' | 'upload' | 'videoCamera' | 'warningSign' | 'website';
|
|
2
|
+
export declare type IconsSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
3
|
+
export declare type IconColor = 'default' | 'subtle' | 'inactive' | 'active' | 'success' | 'warning' | 'error' | 'currentColor';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LogoHoliday, LogoType, LogoColor } from './logo.types';
|
|
3
|
+
export interface ILogoProps {
|
|
4
|
+
type?: LogoType;
|
|
5
|
+
color?: LogoColor;
|
|
6
|
+
holiday?: LogoHoliday;
|
|
7
|
+
height?: number;
|
|
8
|
+
width?: number;
|
|
9
|
+
handleClick?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Logo: {
|
|
12
|
+
({ type, color, holiday, height, width, handleClick, }: ILogoProps): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props } from 'framer-motion/types/types';
|
|
3
|
+
import { LogoColor, LogoHoliday } from './logo.types';
|
|
4
|
+
export declare const holidaysLogoIconMap: Record<LogoHoliday, React.FC<Props>>;
|
|
5
|
+
export declare const logoIconMap: Record<LogoColor, React.FC<Props>>;
|
|
6
|
+
export declare const fullLogoMap: Record<LogoColor, React.FC<Props>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare type LogoHoliday = 'newYears' | 'valentines' | 'stPatricks' | 'easter1' | 'easter2' | 'easter3' | 'easter4' | 'easter5' | 'easter6' | 'mothersDay' | 'memorialDay' | 'fathersDay' | 'halloween' | 'thanksgiving' | 'christmas';
|
|
2
|
+
export declare type LogoType = 'full' | 'icon';
|
|
3
|
+
export declare type LogoColor = 'teal' | 'black' | 'white';
|
|
@@ -0,0 +1,22 @@
|
|
|
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 FathersDayLogoIcon } from '../../../assets/logos/holidays/fathersDay.svg';
|
|
19
|
+
import { ReactComponent as HalloweenLogoIcon } from '../../../assets/logos/holidays/halloween.svg';
|
|
20
|
+
import { ReactComponent as ThanksgivingLogoIcon } from '../../../assets/logos/holidays/thanksgiving.svg';
|
|
21
|
+
import { ReactComponent as ChristmasLogoIcon } from '../../../assets/logos/holidays/christmas.svg';
|
|
22
|
+
export { TealLogo, TealLogoIcon, BlackLogo, BlackLogoIcon, WhiteLogo, WhiteLogoIcon, NewYearsLogoIcon, ValentinesLogoIcon, StPatricksLogoIcon, Easter1LogoIcon, Easter2LogoIcon, Easter3LogoIcon, Easter4LogoIcon, Easter5LogoIcon, Easter6LogoIcon, MothersDayLogoIcon, MemorialDayLogoIcon, FathersDayLogoIcon, HalloweenLogoIcon, ThanksgivingLogoIcon, ChristmasLogoIcon, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbSeparator } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Link } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LinkBox, LinkOverlay } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AlertDialog, AlertDialogBody, AlertDialogFooter, AlertDialogHeader, AlertDialogContent, AlertDialogOverlay, } from '@chakra-ui/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Menu, MenuButton, MenuList, MenuItem, MenuItemOption, MenuGroup, MenuOptionGroup, MenuDivider, } from '@chakra-ui/react';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
import { InputProps as CInputProps } from '@chakra-ui/react';
|
|
3
3
|
import { WithFormControlProps } from 'components/FormControl/formControl.component';
|
|
4
4
|
export interface TextInputProps extends WithFormControlProps, CInputProps {
|
|
5
|
+
leftElement?: ReactElement;
|
|
6
|
+
rightElement?: ReactElement;
|
|
5
7
|
}
|
|
6
8
|
declare const WrappedTextInput: React.FC<TextInputProps & WithFormControlProps>;
|
|
7
9
|
export { WrappedTextInput as TextInput };
|
package/build/index.js
CHANGED
|
@@ -1412,11 +1412,11 @@ var ButtonSizeConfig = {
|
|
|
1412
1412
|
|
|
1413
1413
|
function withFormControl(Component) {
|
|
1414
1414
|
function WithFormControl(_a) {
|
|
1415
|
-
var
|
|
1415
|
+
var errorText = _a.errorText, helperText = _a.helperText, isDisabled = _a.isDisabled, _b = _a.isFieldInline, isFieldInline = _b === void 0 ? false : _b, isInvalid = _a.isInvalid, isReadOnly = _a.isReadOnly, isRequired = _a.isRequired, label = _a.label, props = __rest(_a, ["errorText", "helperText", "isDisabled", "isFieldInline", "isInvalid", "isReadOnly", "isRequired", "label"]);
|
|
1416
1416
|
var colors = useTheme().colors;
|
|
1417
1417
|
return (React__default["default"].createElement(react.FormControl, { isInvalid: isInvalid, isRequired: isRequired, isReadOnly: isReadOnly, isDisabled: isDisabled },
|
|
1418
|
-
label && React__default["default"].createElement(react.FormLabel, { color: colors.text.light.default }, label),
|
|
1419
|
-
React__default["default"].createElement(Component, __assign({}, props, { errorBorderColor: colors.border.light.error, focusBorderColor: colors.border.light.focus })),
|
|
1418
|
+
label && (React__default["default"].createElement(react.FormLabel, { display: isFieldInline ? 'inline-block' : 'block', color: colors.text.light.default }, label)),
|
|
1419
|
+
React__default["default"].createElement(Component, __assign({}, props, { isFieldInline: isFieldInline, errorBorderColor: colors.border.light.error, focusBorderColor: colors.border.light.focus })),
|
|
1420
1420
|
helperText && !isInvalid && React__default["default"].createElement(react.FormHelperText, null, helperText),
|
|
1421
1421
|
React__default["default"].createElement(react.FormErrorMessage, null, errorText ? errorText : 'Field is invalid')));
|
|
1422
1422
|
}
|
|
@@ -1696,7 +1696,8 @@ var WrappedSelect = withFormControl(Select);
|
|
|
1696
1696
|
var SelectConfig = __assign({}, FormControlConfig);
|
|
1697
1697
|
|
|
1698
1698
|
var Switch = function (props) {
|
|
1699
|
-
|
|
1699
|
+
var isChecked = props.isChecked, isFieldInline = props.isFieldInline;
|
|
1700
|
+
return (React__default["default"].createElement(react.Switch, __assign({ colorScheme: "teal" }, props, { isChecked: isChecked, dispaly: isFieldInline ? 'inline-block' : 'block' })));
|
|
1700
1701
|
};
|
|
1701
1702
|
Switch.displayName = 'Switch';
|
|
1702
1703
|
var WrappedSwitch = withFormControl(Switch);
|