@televet/kibble-ui 1.8.0 → 1.9.0

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.
@@ -1,8 +1,9 @@
1
1
  import { FlexProps } from '@chakra-ui/react';
2
- import { NotificationCounterSize } from './notificationCounter.types';
2
+ import { NotificationCounterSize, NotificationCounterVariant } from './notificationCounter.types';
3
3
  export interface NotificationCounterProps extends FlexProps {
4
4
  count: number;
5
5
  size?: NotificationCounterSize;
6
6
  showCount?: boolean;
7
+ variant?: NotificationCounterVariant;
7
8
  }
8
- export declare const NotificationCounter: ({ count, size, showCount, ...rest }: NotificationCounterProps) => JSX.Element;
9
+ export declare const NotificationCounter: ({ count, size, showCount, variant, ...rest }: NotificationCounterProps) => JSX.Element;
@@ -1 +1,5 @@
1
1
  export declare type NotificationCounterSize = 'lg' | 'md' | 'sm' | 'xs';
2
+ export declare enum NotificationCounterVariant {
3
+ Red = "red",
4
+ Neutral = "neutral"
5
+ }
@@ -0,0 +1,13 @@
1
+ import { TabProps as CTabProps } from '@chakra-ui/react';
2
+ import { NotificationCounterVariant } from 'components/DataDisplay';
3
+ import { IconName } from 'components/MediaAndIcons';
4
+ import { TabSize } from '../../tabs.types';
5
+ export interface TabProps extends CTabProps {
6
+ iconName?: IconName;
7
+ label: string;
8
+ showNotificationCounter?: boolean;
9
+ notificationCount?: number;
10
+ notificationCounterVariant?: NotificationCounterVariant;
11
+ size?: TabSize;
12
+ }
13
+ export declare const Tab: ({ iconName, label, showNotificationCounter, notificationCount, notificationCounterVariant, size, ...rest }: TabProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { TabsProps } from '../../tabs.component';
3
+ export interface TabsLayoutProps extends TabsProps {
4
+ tabPanels: JSX.Element[];
5
+ }
6
+ export declare const TabsLayout: (props: TabsLayoutProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ export { Tabs as CTabs, TabList, TabPanel, TabPanels } from '@chakra-ui/react';
2
+ export * from './components/Tab/tab.component';
3
+ export * from './components/TabsLayout/tabsLayout.component';
4
+ export * from './tabs.component';
5
+ export * from './tabs.config';
6
+ export * from './tabs.types';
@@ -0,0 +1,72 @@
1
+ export declare const tabsArgTypes: {
2
+ size: {
3
+ type: string;
4
+ control: string;
5
+ options: string[];
6
+ defaultValue: string;
7
+ description: string;
8
+ table: {
9
+ type: {
10
+ summary: string;
11
+ defaultValue: string;
12
+ };
13
+ };
14
+ };
15
+ tabList: {
16
+ type: {
17
+ name: string;
18
+ required: boolean;
19
+ };
20
+ description: string;
21
+ table: {
22
+ type: {
23
+ summary: string;
24
+ };
25
+ };
26
+ };
27
+ isFitted: {
28
+ type: string;
29
+ description: string;
30
+ defaultValue: boolean;
31
+ table: {
32
+ type: {
33
+ summary: string;
34
+ defaultValue: boolean;
35
+ };
36
+ };
37
+ };
38
+ align: {
39
+ type: string;
40
+ description: string;
41
+ control: string;
42
+ options: string[];
43
+ defaultValue: string;
44
+ table: {
45
+ type: {
46
+ summary: string;
47
+ defaultValue: string;
48
+ };
49
+ };
50
+ };
51
+ onChange: {
52
+ type: string;
53
+ description: string;
54
+ table: {
55
+ type: {
56
+ summary: string;
57
+ };
58
+ };
59
+ };
60
+ defaultIndex: {
61
+ type: string;
62
+ control: string;
63
+ description: string;
64
+ defaultValue: number;
65
+ table: {
66
+ type: {
67
+ summary: string;
68
+ defaultValue: number;
69
+ };
70
+ };
71
+ };
72
+ };
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { StyleProps } from '@chakra-ui/react';
3
+ import { Alignment, Dict } from 'shared/types';
4
+ import { TabProps } from './components/Tab/tab.component';
5
+ import { TabSize } from './tabs.types';
6
+ export interface TabsProps extends StyleProps {
7
+ size?: TabSize;
8
+ tabList: TabProps[];
9
+ tabPanels?: JSX.Element[];
10
+ tabPanelsStyle?: Dict;
11
+ isFitted?: boolean;
12
+ align?: Alignment;
13
+ defaultIndex?: number;
14
+ isLazy?: boolean;
15
+ isManual?: boolean;
16
+ index?: number;
17
+ onChange?: (index: number) => void;
18
+ }
19
+ export declare const Tabs: ({ size, tabList, tabPanels, tabPanelsStyle, ...rest }: TabsProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ComponentStyleConfig } from '@chakra-ui/react';
2
+ export declare const TabsConfig: ComponentStyleConfig;
@@ -0,0 +1 @@
1
+ export declare type TabSize = 'lg' | 'md' | 'sm' | 'xs';
@@ -0,0 +1 @@
1
+ export * from './Tabs';
@@ -1,8 +1,9 @@
1
1
  export * from './DataDisplay';
2
+ export * from './Disclosure';
2
3
  export * from './Forms';
3
4
  export * from './Layout';
4
5
  export * from './MediaAndIcons';
5
6
  export * from './Other';
6
7
  export * from './Overlay';
7
8
  export * from './Typography';
8
- export { Divider, InputGroup, InputLeftElement, InputRightElement, } from '@chakra-ui/react';
9
+ export { Divider, InputGroup, InputLeftElement, InputRightElement } from '@chakra-ui/react';