@ctlyst.id/internal-ui 2.0.7 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/button/__stories__/button.stories.d.ts +1 -1
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/data-table/__stories__/datatable.stories.d.ts +3 -17
- package/dist/components/data-table/components/data-table.d.ts +10 -20
- package/dist/components/data-table/components/indeterminate-checkbox.d.ts +7 -4
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/layouting/index.d.ts +1 -16
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/loader/components/loader.d.ts +1 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/text/index.d.ts +1 -2
- package/dist/components/tooltip/__stories__/tooltip.stories.d.ts +10 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/config/theme/components/checkbox.d.ts +15 -1
- package/dist/config/theme/components/radio.d.ts +3 -0
- package/dist/hooks/index.d.ts +1 -2
- package/dist/index.d.ts +2 -0
- package/dist/internal-ui.cjs.development.js +420 -72
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +13 -13
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +218 -67
- package/dist/internal-ui.esm.js.map +1 -1
- package/dist/provider/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/components/layouting/components/box.d.ts +0 -4
- package/dist/components/layouting/components/button-group.d.ts +0 -4
- package/dist/components/layouting/components/container.d.ts +0 -4
- package/dist/components/layouting/components/flex.d.ts +0 -4
- package/dist/components/layouting/components/grid.d.ts +0 -4
- package/dist/components/layouting/components/list.d.ts +0 -6
- package/dist/components/layouting/components/stack.d.ts +0 -5
- package/dist/components/layouting/components/wrap.d.ts +0 -4
- package/dist/components/text/components/text.d.ts +0 -4
- package/dist/hooks/useDisclosure.d.ts +0 -4
@@ -4,23 +4,9 @@ declare const _default: {
|
|
4
4
|
chakra: {
|
5
5
|
theme: Record<string, any>;
|
6
6
|
};
|
7
|
-
component: {
|
8
|
-
|
9
|
-
|
10
|
-
withSelectedRow: boolean;
|
11
|
-
overflowX: string;
|
12
|
-
pos: string;
|
13
|
-
maxW: string;
|
14
|
-
minH: number;
|
15
|
-
w: string;
|
16
|
-
styles: undefined;
|
17
|
-
isLoading: undefined;
|
18
|
-
onSelectedRow: undefined;
|
19
|
-
onSort: undefined;
|
20
|
-
manualSorting: boolean;
|
21
|
-
sortingState: never[];
|
22
|
-
};
|
23
|
-
};
|
7
|
+
component: <T extends unknown>(props: import("../components/data-table").DataTableProps<T> & {
|
8
|
+
ref?: ((instance: Pick<any, "toggleAllRowsSelected"> | null) => void) | React.RefObject<Pick<any, "toggleAllRowsSelected">> | null | undefined;
|
9
|
+
}) => JSX.Element;
|
24
10
|
argTypes: {
|
25
11
|
selectedRow: {
|
26
12
|
options: boolean[];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { BoxProps, TableBodyProps, TableCellProps, TableColumnHeaderProps, TableHeadProps, TableProps, TableRowProps } from '@chakra-ui/react';
|
2
|
-
import type { ColumnDef, ColumnSort, SortingState } from '@tanstack/react-table';
|
2
|
+
import type { ColumnDef, ColumnSort, RowSelectionInstance, SortingState } from '@tanstack/react-table';
|
3
3
|
import * as React from 'react';
|
4
4
|
export interface TableStyleProps {
|
5
5
|
table?: TableProps;
|
@@ -16,25 +16,15 @@ export interface DataTableProps<T = unknown> extends BoxProps {
|
|
16
16
|
isLoading?: boolean;
|
17
17
|
withSelectedRow?: boolean | undefined;
|
18
18
|
onSelectedRow?: (data: T[]) => void;
|
19
|
-
onSort?: (data: ColumnSort[] | ((prevState: SortingState) => SortingState)) => void;
|
19
|
+
onSort?: (data: ColumnSort[] | SortingState | ((prevState: SortingState) => SortingState)) => void;
|
20
20
|
manualSorting?: boolean;
|
21
21
|
sortingState?: SortingState;
|
22
|
+
sortDescFirst?: boolean;
|
23
|
+
headerSticky?: boolean;
|
24
|
+
onRowClick?: (data: T) => void;
|
22
25
|
}
|
23
|
-
declare
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
pos: string;
|
29
|
-
maxW: string;
|
30
|
-
minH: number;
|
31
|
-
w: string;
|
32
|
-
styles: undefined;
|
33
|
-
isLoading: undefined;
|
34
|
-
onSelectedRow: undefined;
|
35
|
-
onSort: undefined;
|
36
|
-
manualSorting: boolean;
|
37
|
-
sortingState: never[];
|
38
|
-
};
|
39
|
-
};
|
40
|
-
export default DataTable;
|
26
|
+
export declare type DataTableRefs<T> = Pick<RowSelectionInstance<T>, 'toggleAllRowsSelected'>;
|
27
|
+
declare const _default: <T extends unknown>(props: DataTableProps<T> & {
|
28
|
+
ref?: ((instance: Pick<any, "toggleAllRowsSelected"> | null) => void) | React.RefObject<Pick<any, "toggleAllRowsSelected">> | null | undefined;
|
29
|
+
}) => JSX.Element;
|
30
|
+
export default _default;
|
@@ -1,5 +1,8 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import type { CheckboxProps } from '@chakra-ui/react';
|
2
|
+
import React from 'react';
|
3
|
+
interface IndeterminateCheckboxProps extends CheckboxProps {
|
4
|
+
isIndeterminate?: boolean;
|
5
|
+
name: string;
|
6
|
+
}
|
7
|
+
declare const IndeterminateCheckbox: React.ForwardRefExoticComponent<IndeterminateCheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
5
8
|
export default IndeterminateCheckbox;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Icon, IconProps, Image, ImageProps } from '@chakra-ui/react';
|
@@ -4,20 +4,25 @@ export * from './breadcrumb';
|
|
4
4
|
export * from './button';
|
5
5
|
export * from './card';
|
6
6
|
export * from './checkbox';
|
7
|
+
export * from './chips';
|
7
8
|
export * from './data-table';
|
8
9
|
export * from './datepicker';
|
9
10
|
export * from './field';
|
10
11
|
export * from './form';
|
11
12
|
export * from './header';
|
13
|
+
export * from './image';
|
12
14
|
export * from './layouting';
|
15
|
+
export * from './list';
|
13
16
|
export * from './loader';
|
14
17
|
export * from './modal';
|
15
18
|
export * from './navigation';
|
16
19
|
export * from './pagination';
|
20
|
+
export * from './popover';
|
17
21
|
export * from './radio';
|
18
22
|
export * from './rating';
|
19
23
|
export * from './select';
|
20
24
|
export * from './switch';
|
21
25
|
export * from './tabs';
|
22
26
|
export * from './text';
|
27
|
+
export * from './tooltip';
|
23
28
|
export * from './uploader';
|
@@ -1,16 +1 @@
|
|
1
|
-
export {
|
2
|
-
export * from './components/box';
|
3
|
-
export { default as ButtonGroup } from './components/button-group';
|
4
|
-
export * from './components/button-group';
|
5
|
-
export { default as Container } from './components/container';
|
6
|
-
export * from './components/container';
|
7
|
-
export { default as Flex } from './components/flex';
|
8
|
-
export * from './components/flex';
|
9
|
-
export { default as Grid } from './components/grid';
|
10
|
-
export * from './components/grid';
|
11
|
-
export { default as List } from './components/list';
|
12
|
-
export * from './components/list';
|
13
|
-
export { default as Stack } from './components/stack';
|
14
|
-
export * from './components/stack';
|
15
|
-
export { default as Wrap } from './components/wrap';
|
16
|
-
export * from './components/wrap';
|
1
|
+
export { Box, BoxProps, Container, ContainerProps, Divider, DividerProps, Flex, FlexProps, Grid, GridItem, GridItemProps, GridProps, HStack, Stack, StackProps, VStack, Wrap, WrapItem, WrapItemProps, WrapProps, } from '@chakra-ui/react';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { List, ListIcon, ListItem, ListItemProps, ListProps, OrderedList, UnorderedList } from '@chakra-ui/react';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Popover, PopoverAnchor, PopoverArrow, PopoverArrowProps, PopoverBody, PopoverBodyProps, PopoverCloseButton, PopoverContent, PopoverContentProps, PopoverFooter, PopoverFooterProps, PopoverHeader, PopoverHeaderProps, PopoverProps, PopoverTrigger, Portal, PortalProps, } from '@chakra-ui/react';
|
@@ -1,2 +1 @@
|
|
1
|
-
export {
|
2
|
-
export * from './components/text';
|
1
|
+
export { Heading, HeadingProps, Text, TextProps } from '@chakra-ui/react';
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
declare const _default: {
|
3
|
+
chakra: {
|
4
|
+
theme: Record<string, any>;
|
5
|
+
};
|
6
|
+
title: string;
|
7
|
+
decorators: ((Story: React.ElementType) => JSX.Element)[];
|
8
|
+
};
|
9
|
+
export default _default;
|
10
|
+
export declare const Default: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Tooltip, TooltipProps } from '@chakra-ui/react';
|
@@ -8,7 +8,6 @@ declare const Checkbox: {
|
|
8
8
|
};
|
9
9
|
icon: {
|
10
10
|
color: string;
|
11
|
-
width: string;
|
12
11
|
};
|
13
12
|
label: {
|
14
13
|
fontWeight: string;
|
@@ -48,6 +47,9 @@ declare const Checkbox: {
|
|
48
47
|
label: {
|
49
48
|
fontSize: string;
|
50
49
|
};
|
50
|
+
icon: {
|
51
|
+
fontSize: string;
|
52
|
+
};
|
51
53
|
};
|
52
54
|
unstyled: {
|
53
55
|
control: {
|
@@ -62,6 +64,7 @@ declare const Checkbox: {
|
|
62
64
|
_disabled: {
|
63
65
|
backgroundColor: string;
|
64
66
|
borderColor: string;
|
67
|
+
opacity: number;
|
65
68
|
};
|
66
69
|
};
|
67
70
|
_disabled: {
|
@@ -71,10 +74,21 @@ declare const Checkbox: {
|
|
71
74
|
_indeterminate: {
|
72
75
|
borderColor: string;
|
73
76
|
backgroundColor: string;
|
77
|
+
_disabled: {
|
78
|
+
backgroundColor: string;
|
79
|
+
borderColor: string;
|
80
|
+
opacity: number;
|
81
|
+
};
|
74
82
|
};
|
75
83
|
};
|
76
84
|
label: {
|
77
85
|
fontSize: string;
|
86
|
+
_disabled: {
|
87
|
+
opacity: number;
|
88
|
+
};
|
89
|
+
};
|
90
|
+
icon: {
|
91
|
+
fontSize: string;
|
78
92
|
};
|
79
93
|
};
|
80
94
|
} | undefined;
|
@@ -10,6 +10,7 @@ declare const Radio: {
|
|
10
10
|
textStyle: string;
|
11
11
|
color: string;
|
12
12
|
_disabled: {
|
13
|
+
opacity: number;
|
13
14
|
color: string;
|
14
15
|
};
|
15
16
|
};
|
@@ -42,6 +43,7 @@ declare const Radio: {
|
|
42
43
|
h: string;
|
43
44
|
w: string;
|
44
45
|
bg: string;
|
46
|
+
opacity: number;
|
45
47
|
};
|
46
48
|
};
|
47
49
|
};
|
@@ -72,6 +74,7 @@ declare const Radio: {
|
|
72
74
|
_disabled: {
|
73
75
|
borderColor: string;
|
74
76
|
bg: string;
|
77
|
+
opacity: number;
|
75
78
|
_before: {
|
76
79
|
h: string;
|
77
80
|
w: string;
|
package/dist/hooks/index.d.ts
CHANGED