@televet/kibble-ui 1.2.2 → 1.2.3-beta.2p81ym7.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.model.d.ts +5 -0
- package/build/components/Button/button.records.d.ts +2 -0
- package/build/components/Drawer/drawer.records.d.ts +13 -0
- package/build/components/Modal/index.d.ts +2 -0
- package/build/components/Modal/modal-section.component.d.ts +7 -0
- package/build/components/Modal/modal.component.d.ts +24 -0
- package/build/components/Modal/modal.types.d.ts +1 -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.component.d.ts +4 -3
- package/build/components/Typography/Heading/heading.records.d.ts +2 -0
- package/build/components/Typography/Text/text.component.d.ts +6 -2
- package/build/components/Typography/Text/text.records.d.ts +2 -0
- package/build/components/Typography/Text/text.types.d.ts +1 -0
- package/build/components/Typography/index.d.ts +1 -0
- package/build/components/Typography/typography.types.d.ts +1 -0
- package/build/hocs/index.d.ts +2 -0
- package/build/hocs/withDarkMode.d.ts +2 -0
- package/build/hocs/withTheme.d.ts +3 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +250 -220
- package/build/index.js.map +1 -1
- package/build/theme/theme.model.d.ts +37 -0
- package/build/theme/theme.record.d.ts +2 -0
- package/build/theme/theme.types.d.ts +1 -2
- package/build/theme/tokens/colors/color.model.d.ts +64 -0
- package/build/theme/tokens/colors/color.type.d.ts +9 -0
- package/build/theme/tokens/colors/color.types.d.ts +2 -23
- package/build/theme/tokens/fontWeights.d.ts +3 -12
- package/package.json +2 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ModalProps as ChakraModalProps } from '@chakra-ui/react';
|
|
3
|
+
import { BlurAmount } from '../../theme/tokens';
|
|
4
|
+
import { FocusableElement } from '@chakra-ui/utils';
|
|
5
|
+
import { ModalSize } from './modal.types';
|
|
6
|
+
declare type ResponsiveBreakpoints = 'base' | 'md';
|
|
7
|
+
export interface ModalProps extends ChakraModalProps {
|
|
8
|
+
title?: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
footer?: ReactNode;
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
modalSize?: Partial<Record<ResponsiveBreakpoints, ModalSize>>;
|
|
14
|
+
allowEscape?: boolean;
|
|
15
|
+
useDefaultCloseButton?: boolean;
|
|
16
|
+
overlayBlur?: BlurAmount;
|
|
17
|
+
overlayHueShift?: number;
|
|
18
|
+
overlayBase?: 'whiteAlpha' | 'blackAlpha';
|
|
19
|
+
darkMode?: boolean;
|
|
20
|
+
initialFocusRef: React.RefObject<FocusableElement>;
|
|
21
|
+
scrollBehavior?: 'inside' | 'outside';
|
|
22
|
+
}
|
|
23
|
+
export declare const Modal: ({ title, children, footer, isOpen, onClose, modalSize, overlayBlur, allowEscape, useDefaultCloseButton, initialFocusRef, scrollBehavior, overlayHueShift, overlayBase, darkMode, ...rest }: ModalProps) => JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { HeadingProps as ChakraHeadingProps } from '@chakra-ui/react';
|
|
3
|
-
import { HeadingSize
|
|
3
|
+
import { HeadingSize } from './heading.types';
|
|
4
|
+
import { TextColor } from '../typography.types';
|
|
4
5
|
export interface HeadingProps extends ChakraHeadingProps {
|
|
5
6
|
children: ReactNode;
|
|
6
7
|
size?: HeadingSize;
|
|
7
|
-
|
|
8
|
+
color?: TextColor;
|
|
8
9
|
darkMode?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export declare const Heading: ({ children, size,
|
|
11
|
+
export declare const Heading: ({ children, size, color, darkMode, ...rest }: HeadingProps) => JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { TextProps as ChakraTextProps } from '@chakra-ui/react';
|
|
3
|
-
import { TextVariant } from './text.types';
|
|
3
|
+
import { HTMLTagName, TextVariant } from './text.types';
|
|
4
|
+
import { TextColor } from '../typography.types';
|
|
4
5
|
export interface TextProps extends ChakraTextProps {
|
|
5
6
|
children: ReactNode;
|
|
7
|
+
as?: HTMLTagName;
|
|
6
8
|
variant?: TextVariant;
|
|
9
|
+
color?: TextColor;
|
|
10
|
+
darkMode?: boolean;
|
|
7
11
|
}
|
|
8
|
-
export declare const Text: ({ children, variant, ...rest }: TextProps) => JSX.Element;
|
|
12
|
+
export declare const Text: ({ children, variant, as, color, darkMode, ...rest }: TextProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type TextColor = 'default' | 'headline' | 'subtle' | 'link' | 'placeholder' | 'success' | 'warning' | 'error';
|