@televet/kibble-ui 1.2.1 → 1.2.2-beta.2p81ym7.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.
@@ -0,0 +1,5 @@
1
+ import { ButtonColorOptions } from './button.types';
2
+ import { AdaptiveColorMap } from '../../theme/tokens';
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,13 @@
1
+ export declare const DrawerConfig: {
2
+ variants: {
3
+ alwaysOpen: {
4
+ parts: string[];
5
+ dialog: {
6
+ pointerEvents: string;
7
+ };
8
+ dialogContainer: {
9
+ pointerEvents: string;
10
+ };
11
+ };
12
+ };
13
+ };
@@ -0,0 +1,2 @@
1
+ export * from './modal.component';
2
+ export * from './modal.types';
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ interface props {
3
+ children: ReactNode;
4
+ alignContent?: 'left' | 'right';
5
+ }
6
+ export declare const ModalSection: ({ children, alignContent }: props) => JSX.Element;
7
+ export {};
@@ -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';
@@ -0,0 +1,4 @@
1
+ import { AdaptiveColor } from '../../theme/tokens';
2
+ export interface TooltipStyleConfig {
3
+ color: AdaptiveColor;
4
+ }
@@ -0,0 +1,9 @@
1
+ import { TooltipStyleConfig } from './tooltip.model';
2
+ export declare const TooltipGlobalStyle: {
3
+ '[id^=tooltip]': {
4
+ padding: string;
5
+ borderRadius: string;
6
+ textTransform: string;
7
+ };
8
+ };
9
+ export declare const TooltipConfig: TooltipStyleConfig;
@@ -1,10 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { HeadingProps as ChakraHeadingProps } from '@chakra-ui/react';
3
- import { HeadingSize, HeadingVariant } from './heading.types';
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
- variant?: HeadingVariant;
8
+ color?: TextColor;
8
9
  darkMode?: boolean;
9
10
  }
10
- export declare const Heading: ({ children, size, variant, ...rest }: HeadingProps) => JSX.Element;
11
+ export declare const Heading: ({ children, size, color, darkMode, ...rest }: HeadingProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { HeadingStyleConfig } from './heading.types';
2
+ export declare const HeadingConfig: HeadingStyleConfig;
@@ -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,2 @@
1
+ import { ComponentStyleConfig } from '@chakra-ui/theme';
2
+ export declare const TextConfig: ComponentStyleConfig;
@@ -1 +1,2 @@
1
1
  export declare type TextVariant = 'regular' | 'semibold';
2
+ export declare type HTMLTagName = 'p' | 'span' | 'div' | 'i' | 'u' | 's' | 'kbd' | 'sub' | 'sup';
@@ -1,2 +1,3 @@
1
1
  export * from './Heading';
2
2
  export * from './Text';
3
+ export * from './typography.types';
@@ -0,0 +1 @@
1
+ export declare type TextColor = 'default' | 'headline' | 'subtle' | 'link' | 'placeholder' | 'success' | 'warning' | 'error';