@ctlyst.id/internal-ui 1.0.1-canary.4 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/base/stories/button.stories.d.ts +10 -0
- package/dist/components/base/stories/checkbox.stories.d.ts +11 -0
- package/dist/components/base/stories/input.stories.d.ts +16 -0
- package/dist/components/base/stories/radio.stories.d.ts +15 -0
- package/dist/components/base/stories/switch.stories.d.ts +11 -0
- package/dist/{types/components → components}/breadcrumb/components/BreadCrumb.d.ts +17 -17
- package/dist/components/breadcrumb/components/BreadCrumb.stories.d.ts +10 -0
- package/dist/{types/components → components}/breadcrumb/index.d.ts +2 -2
- package/dist/{types/components → components}/data-table/components/data-table.d.ts +40 -40
- package/dist/{types/components → components}/data-table/components/indeterminate-checkbox.d.ts +5 -5
- package/dist/{types/components → components}/data-table/index.d.ts +3 -3
- package/dist/components/data-table/stories/data-table.stories.d.ts +38 -0
- package/dist/{types/components → components}/data-table/types/table-core.d.ts +1 -1
- package/dist/{types/components → components}/datepicker/components/datepicker.d.ts +17 -17
- package/dist/components/datepicker/components/datepicker.stories.d.ts +13 -0
- package/dist/{types/components → components}/datepicker/components/styles.d.ts +2 -2
- package/dist/{types/components → components}/datepicker/components/time-input.d.ts +9 -9
- package/dist/{types/components → components}/datepicker/index.d.ts +2 -2
- package/dist/{types/components → components}/field/components/field.d.ts +11 -11
- package/dist/{types/components → components}/field/components/input-field.d.ts +12 -12
- package/dist/{types/components → components}/field/components/textarea-field.d.ts +12 -12
- package/dist/{types/components → components}/field/index.d.ts +6 -6
- package/dist/{types/components → components}/header/components/header.d.ts +10 -10
- package/dist/{types/components → components}/header/components/logo.d.ts +2 -2
- package/dist/{types/components → components}/header/components/profile.d.ts +8 -8
- package/dist/{types/components → components}/header/components/switch-mode.d.ts +3 -3
- package/dist/{types/components → components}/header/components/version.d.ts +9 -9
- package/dist/{types/components → components}/header/index.d.ts +3 -3
- package/dist/components/header/stories/header.stories.d.ts +10 -0
- package/dist/{types/components → components}/header/types.d.ts +10 -10
- package/dist/{types/components → components}/header/utils/formatter.d.ts +2 -2
- package/dist/{types/components → components}/index.d.ts +11 -11
- package/dist/{types/components → components}/modal/components/modal-close-button.d.ts +4 -4
- package/dist/{types/components → components}/modal/components/modal-footer.d.ts +4 -4
- package/dist/{types/components → components}/modal/components/modal-header.d.ts +4 -4
- package/dist/{types/components → components}/modal/index.d.ts +4 -4
- package/dist/components/modal/stories/modal.stories.d.ts +10 -0
- package/dist/{types/components → components}/navigation/components/navigation.d.ts +10 -10
- package/dist/{types/components → components}/navigation/index.d.ts +2 -2
- package/dist/components/navigation/stories/navigation.stories.d.ts +10 -0
- package/dist/{types/components → components}/navigation/types.d.ts +8 -8
- package/dist/{types/components → components}/pagination/components/pagination-button-trigger.d.ts +10 -10
- package/dist/{types/components → components}/pagination/components/pagination-button.d.ts +6 -6
- package/dist/{types/components → components}/pagination/components/pagination-detail.d.ts +10 -10
- package/dist/{types/components → components}/pagination/components/pagination-filter.d.ts +13 -13
- package/dist/{types/components → components}/pagination/components/pagination.d.ts +16 -16
- package/dist/{types/components → components}/pagination/index.d.ts +6 -6
- package/dist/components/pagination/stories/pagination.stories.d.ts +13 -0
- package/dist/{types/components → components}/select/components/select-async-creatable.d.ts +4 -4
- package/dist/{types/components → components}/select/components/select-async.d.ts +5 -5
- package/dist/{types/components → components}/select/components/select-creatable.d.ts +4 -4
- package/dist/{types/components → components}/select/components/select.d.ts +4 -4
- package/dist/{types/components → components}/select/components/utils.d.ts +26 -26
- package/dist/{types/components → components}/select/index.d.ts +8 -8
- package/dist/components/select/stories/select.stories.d.ts +13 -0
- package/dist/{types/components → components}/tabs/components/tab-list.d.ts +3 -3
- package/dist/{types/components → components}/tabs/components/tab-panel.d.ts +3 -3
- package/dist/{types/components → components}/tabs/components/tab.d.ts +11 -11
- package/dist/{types/components → components}/tabs/index.d.ts +4 -4
- package/dist/components/tabs/stories/tabs.stories.d.ts +10 -0
- package/dist/{types/components → components}/uploader/components/uploader.d.ts +12 -12
- package/dist/{types/components → components}/uploader/constants.d.ts +8 -8
- package/dist/{types/components → components}/uploader/index.d.ts +2 -2
- package/dist/components/uploader/stories/uploader.stories.d.ts +12 -0
- package/dist/config/foundations.stories.d.ts +13 -0
- package/dist/{types/config → config}/index.d.ts +1 -1
- package/dist/{types/config → config}/theme/components/button.d.ts +3 -3
- package/dist/{types/config → config}/theme/components/checkbox.d.ts +3 -3
- package/dist/{types/config → config}/theme/components/form-label.d.ts +19 -19
- package/dist/{types/config → config}/theme/components/index.d.ts +8 -8
- package/dist/{types/config → config}/theme/components/input.d.ts +114 -114
- package/dist/{types/config → config}/theme/components/popover.d.ts +3 -3
- package/dist/{types/config → config}/theme/components/radio.d.ts +3 -3
- package/dist/{types/config → config}/theme/components/switch.d.ts +32 -32
- package/dist/{types/config → config}/theme/components/textarea.d.ts +3 -3
- package/dist/config/theme/foundations/colors.d.ts +158 -0
- package/dist/{types/config → config}/theme/foundations/index.d.ts +5 -5
- package/dist/{types/config → config}/theme/foundations/radius.d.ts +8 -8
- package/dist/{types/config → config}/theme/foundations/sizes.d.ts +66 -66
- package/dist/{types/config → config}/theme/foundations/spacing.d.ts +42 -42
- package/dist/{types/config → config}/theme/foundations/typography.d.ts +173 -173
- package/dist/{types/config → config}/theme/index.d.ts +1 -1
- package/dist/{types/config → config}/theme/themeConfiguration.d.ts +4 -4
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useFetcher.d.ts +4 -0
- package/dist/{types/index.d.ts → index.d.ts} +3 -3
- package/dist/index.js +6 -892
- package/dist/interfaces/common.d.ts +17 -0
- package/dist/internal-ui.cjs.development.js +3279 -0
- package/dist/internal-ui.cjs.development.js.map +1 -0
- package/dist/internal-ui.cjs.production.min.js +10 -0
- package/dist/internal-ui.cjs.production.min.js.map +1 -0
- package/dist/internal-ui.esm.js +3008 -0
- package/dist/internal-ui.esm.js.map +1 -0
- package/dist/{types/provider → provider}/index.d.ts +2 -2
- package/dist/{types/provider → provider}/provider.d.ts +6 -6
- package/dist/provider/provider.stories.d.ts +5 -0
- package/dist/provider/types.d.ts +14 -0
- package/package.json +8 -7
- package/dist/index.mjs +0 -20509
- package/dist/types/config/theme/foundations/colors.d.ts +0 -158
- package/dist/types/provider/types.d.ts +0 -14
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as 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 ButtonDefault: () => JSX.Element;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as 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 CheckboxDefault: () => JSX.Element;
|
11
|
+
export declare const CheckboxSize: () => JSX.Element;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as 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 InputDefault: () => JSX.Element;
|
11
|
+
export declare const InputSize: () => JSX.Element;
|
12
|
+
export declare const InputVariant: () => JSX.Element;
|
13
|
+
export declare const InputAddon: () => JSX.Element;
|
14
|
+
export declare const InputWithIcon: () => JSX.Element;
|
15
|
+
export declare const InputCustomize: () => JSX.Element;
|
16
|
+
export declare const InputField: () => JSX.Element;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as 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 RadioDefault: () => JSX.Element;
|
11
|
+
export declare const RadioExample: () => JSX.Element;
|
12
|
+
export declare const RadioSize: () => JSX.Element;
|
13
|
+
export declare const RadioCustomColor: () => JSX.Element;
|
14
|
+
export declare const RadioDisabled: () => JSX.Element;
|
15
|
+
export declare const RadioHorizontal: () => JSX.Element;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as 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 SwitchDefault: () => JSX.Element;
|
11
|
+
export declare const SwitchDisabled: () => JSX.Element;
|
@@ -1,17 +1,17 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
export interface BreadCrumbParentProps {
|
3
|
-
name: string;
|
4
|
-
onClick?: () => void;
|
5
|
-
disable?: boolean;
|
6
|
-
link: string;
|
7
|
-
}
|
8
|
-
export interface BreadCrumbProps {
|
9
|
-
title: string;
|
10
|
-
children?: React.ReactNode;
|
11
|
-
parents?: BreadCrumbParentProps[];
|
12
|
-
className?: string;
|
13
|
-
disableHome?: boolean;
|
14
|
-
spacing?: number;
|
15
|
-
}
|
16
|
-
declare const BreadCrumb: React.FC<BreadCrumbProps>;
|
17
|
-
export default BreadCrumb;
|
1
|
+
import * as React from 'react';
|
2
|
+
export interface BreadCrumbParentProps {
|
3
|
+
name: string;
|
4
|
+
onClick?: () => void;
|
5
|
+
disable?: boolean;
|
6
|
+
link: string;
|
7
|
+
}
|
8
|
+
export interface BreadCrumbProps {
|
9
|
+
title: string;
|
10
|
+
children?: React.ReactNode;
|
11
|
+
parents?: BreadCrumbParentProps[];
|
12
|
+
className?: string;
|
13
|
+
disableHome?: boolean;
|
14
|
+
spacing?: number;
|
15
|
+
}
|
16
|
+
declare const BreadCrumb: React.FC<BreadCrumbProps>;
|
17
|
+
export default BreadCrumb;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as 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 BreadcrumbDefault: () => JSX.Element;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { default as BreadCrumb } from './components/BreadCrumb';
|
2
|
-
export * from './components/BreadCrumb';
|
1
|
+
export { default as BreadCrumb } from './components/BreadCrumb';
|
2
|
+
export * from './components/BreadCrumb';
|
@@ -1,40 +1,40 @@
|
|
1
|
-
import type { BoxProps, TableBodyProps, TableCellProps, TableColumnHeaderProps, TableHeadProps, TableProps, TableRowProps } from '@chakra-ui/react';
|
2
|
-
import type { ColumnDef, ColumnSort, SortingState } from '@tanstack/react-table';
|
3
|
-
import * as React from 'react';
|
4
|
-
export interface TableStyleProps {
|
5
|
-
table?: TableProps;
|
6
|
-
tableHead?: TableHeadProps;
|
7
|
-
tableRow?: TableRowProps;
|
8
|
-
tableBody?: TableBodyProps;
|
9
|
-
tableColumnHeader?: TableColumnHeaderProps;
|
10
|
-
tableCell?: TableCellProps;
|
11
|
-
}
|
12
|
-
export interface DataTableProps<T = unknown> extends BoxProps {
|
13
|
-
styles?: TableStyleProps;
|
14
|
-
columns: ColumnDef<T>[];
|
15
|
-
dataSource: T[] | undefined;
|
16
|
-
isLoading?: boolean;
|
17
|
-
withSelectedRow?: boolean | undefined;
|
18
|
-
onSelectedRow?: (data: T[]) => void;
|
19
|
-
onSort?: (data: ColumnSort[] | ((prevState: SortingState) => SortingState)) => void;
|
20
|
-
manualSorting?: boolean;
|
21
|
-
sortingState?: SortingState;
|
22
|
-
}
|
23
|
-
declare const DataTable: {
|
24
|
-
<P>({ columns, dataSource, isLoading, withSelectedRow, onSelectedRow, onSort, manualSorting, sortingState, styles, ...props }: DataTableProps<P>): React.ReactElement;
|
25
|
-
defaultProps: {
|
26
|
-
withSelectedRow: boolean;
|
27
|
-
overflowX: string;
|
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;
|
1
|
+
import type { BoxProps, TableBodyProps, TableCellProps, TableColumnHeaderProps, TableHeadProps, TableProps, TableRowProps } from '@chakra-ui/react';
|
2
|
+
import type { ColumnDef, ColumnSort, SortingState } from '@tanstack/react-table';
|
3
|
+
import * as React from 'react';
|
4
|
+
export interface TableStyleProps {
|
5
|
+
table?: TableProps;
|
6
|
+
tableHead?: TableHeadProps;
|
7
|
+
tableRow?: TableRowProps;
|
8
|
+
tableBody?: TableBodyProps;
|
9
|
+
tableColumnHeader?: TableColumnHeaderProps;
|
10
|
+
tableCell?: TableCellProps;
|
11
|
+
}
|
12
|
+
export interface DataTableProps<T = unknown> extends BoxProps {
|
13
|
+
styles?: TableStyleProps;
|
14
|
+
columns: ColumnDef<T>[];
|
15
|
+
dataSource: T[] | undefined;
|
16
|
+
isLoading?: boolean;
|
17
|
+
withSelectedRow?: boolean | undefined;
|
18
|
+
onSelectedRow?: (data: T[]) => void;
|
19
|
+
onSort?: (data: ColumnSort[] | ((prevState: SortingState) => SortingState)) => void;
|
20
|
+
manualSorting?: boolean;
|
21
|
+
sortingState?: SortingState;
|
22
|
+
}
|
23
|
+
declare const DataTable: {
|
24
|
+
<P>({ columns, dataSource, isLoading, withSelectedRow, onSelectedRow, onSort, manualSorting, sortingState, styles, ...props }: DataTableProps<P>): React.ReactElement;
|
25
|
+
defaultProps: {
|
26
|
+
withSelectedRow: boolean;
|
27
|
+
overflowX: string;
|
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;
|
package/dist/{types/components → components}/data-table/components/indeterminate-checkbox.d.ts
RENAMED
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
declare const IndeterminateCheckbox: ({ indeterminate, ...rest }: {
|
3
|
-
indeterminate: boolean;
|
4
|
-
} & React.HTMLProps<HTMLInputElement>) => JSX.Element;
|
5
|
-
export default IndeterminateCheckbox;
|
1
|
+
import * as React from 'react';
|
2
|
+
declare const IndeterminateCheckbox: ({ indeterminate, ...rest }: {
|
3
|
+
indeterminate: boolean;
|
4
|
+
} & React.HTMLProps<HTMLInputElement>) => JSX.Element;
|
5
|
+
export default IndeterminateCheckbox;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export { default as DataTable } from './components/data-table';
|
2
|
-
export * from './components/data-table';
|
3
|
-
export * from './types/table-core';
|
1
|
+
export { default as DataTable } from './components/data-table';
|
2
|
+
export * from './components/data-table';
|
3
|
+
export * from './types/table-core';
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
declare const _default: {
|
3
|
+
title: string;
|
4
|
+
chakra: {
|
5
|
+
theme: Record<string, any>;
|
6
|
+
};
|
7
|
+
component: {
|
8
|
+
<P>({ columns, dataSource, isLoading, withSelectedRow, onSelectedRow, onSort, manualSorting, sortingState, styles, ...props }: import("../components/data-table").DataTableProps<P>): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>;
|
9
|
+
defaultProps: {
|
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
|
+
};
|
24
|
+
argTypes: {
|
25
|
+
selectedRow: {
|
26
|
+
options: boolean[];
|
27
|
+
control: {
|
28
|
+
type: string;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
};
|
32
|
+
decorators: ((Story: React.ElementType) => JSX.Element)[];
|
33
|
+
};
|
34
|
+
export default _default;
|
35
|
+
export declare const DataTableDefault: () => JSX.Element;
|
36
|
+
export declare const DataTableManualSorting: () => JSX.Element;
|
37
|
+
export declare const DataTableSelectedRow: () => JSX.Element;
|
38
|
+
export declare const DataTableWithStyles: () => JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
export type { AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorKeyColumnDef, AggregationFn, AggregationFnOption, AggregationFns, aggregationFns, AnyRender, buildHeaderGroups, BuiltInAggregationFn, BuiltInFilterFn, BuiltInSortingFn, Cell, CellContext, Column, ColumnDef, ColumnDefaultOptions, ColumnDefBase, ColumnDefResolved, ColumnDefTemplate, ColumnFilter, ColumnFilterAutoRemoveTestFn, ColumnFiltersState, ColumnHelper, ColumnMeta, ColumnOrderDefaultOptions, ColumnOrderInstance, ColumnOrderOptions, ColumnOrderState, ColumnOrderTableState, ColumnPinningColumn, ColumnPinningColumnDef, ColumnPinningDefaultOptions, ColumnPinningInstance, ColumnPinningOptions, ColumnPinningPosition, ColumnPinningRow, ColumnPinningState, ColumnPinningTableState, ColumnResizeMode, ColumnSizing, ColumnSizingColumn, ColumnSizingColumnDef, ColumnSizingDefaultOptions, ColumnSizingHeader, ColumnSizingInfoState, ColumnSizingInstance, ColumnSizingOptions, ColumnSizingState, ColumnSizingTableState, ColumnSort, CoreCell, CoreColumn, CoreHeader, CoreHeaderGroup, CoreInstance, CoreOptions, CoreRow, CoreTableState, createCell, createColumn, createColumnHelper, createRow, createTable, CustomAggregationFns, CustomFilterFns, CustomSortingFns, DeepKeys, DeepValue, defaultColumnSizing, DisplayColumnDef, ExpandedInstance, ExpandedOptions, ExpandedRow, ExpandedState, ExpandedStateList, ExpandedTableState, Expanding, expandRows, FilterFn, FilterFnOption, FilterFns, filterFns, FilterMeta, Filters, FiltersColumn, FiltersColumnDef, FiltersInstance, FiltersOptions, FiltersRow, FiltersTableState, flattenBy, functionalUpdate, getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, Getter, GroupColumnDef, Grouping, GroupingCell, GroupingColumn, GroupingColumnDef, GroupingColumnMode, GroupingInstance, GroupingOptions, GroupingRow, GroupingState, GroupingTableState, HeaderContext, HeaderGroup, Headers, HeadersInstance, Header as HeaderTable, IdentifiedColumnDef, InitialTableState, IsAny, isFunction, IsKnown, isRowSelected, isSubRowSelected, makeStateUpdater, memo, NoInfer, noop, OnChangeFn, orderColumns, Ordering, Overwrite, PaginationDefaultOptions, PaginationInitialTableState, PaginationInstance, PaginationOptions, PaginationState, Pagination as PaginationTable, PaginationTableState, PartialKeys, passiveEventSupported, Pinning, RequiredKeys, ResolvedColumnFilter, reSplitAlphaNumeric, Row, RowData, RowModel, RowSelection, RowSelectionInstance, RowSelectionOptions, RowSelectionRow, RowSelectionState, RowSelectionTableState, selectRowsFn, shouldAutoRemoveFilter, SortDirection, Sorting, SortingColumn, SortingColumnDef, SortingFn, SortingFnOption, SortingFns, sortingFns, SortingInstance, SortingOptions, SortingState, SortingTableState, StringOrTemplateHeader, Table, TableFeature, TableMeta, TableOptions, TableOptionsResolved, TableState, TransformFilterValueFn, UnionToIntersection, Updater, Visibility, VisibilityColumn, VisibilityColumnDef, VisibilityDefaultOptions, VisibilityInstance, VisibilityOptions, VisibilityRow, VisibilityState, VisibilityTableState, } from '@tanstack/table-core';
|
1
|
+
export type { AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorKeyColumnDef, AggregationFn, AggregationFnOption, AggregationFns, aggregationFns, AnyRender, buildHeaderGroups, BuiltInAggregationFn, BuiltInFilterFn, BuiltInSortingFn, Cell, CellContext, Column, ColumnDef, ColumnDefaultOptions, ColumnDefBase, ColumnDefResolved, ColumnDefTemplate, ColumnFilter, ColumnFilterAutoRemoveTestFn, ColumnFiltersState, ColumnHelper, ColumnMeta, ColumnOrderDefaultOptions, ColumnOrderInstance, ColumnOrderOptions, ColumnOrderState, ColumnOrderTableState, ColumnPinningColumn, ColumnPinningColumnDef, ColumnPinningDefaultOptions, ColumnPinningInstance, ColumnPinningOptions, ColumnPinningPosition, ColumnPinningRow, ColumnPinningState, ColumnPinningTableState, ColumnResizeMode, ColumnSizing, ColumnSizingColumn, ColumnSizingColumnDef, ColumnSizingDefaultOptions, ColumnSizingHeader, ColumnSizingInfoState, ColumnSizingInstance, ColumnSizingOptions, ColumnSizingState, ColumnSizingTableState, ColumnSort, CoreCell, CoreColumn, CoreHeader, CoreHeaderGroup, CoreInstance, CoreOptions, CoreRow, CoreTableState, createCell, createColumn, createColumnHelper, createRow, createTable, CustomAggregationFns, CustomFilterFns, CustomSortingFns, DeepKeys, DeepValue, defaultColumnSizing, DisplayColumnDef, ExpandedInstance, ExpandedOptions, ExpandedRow, ExpandedState, ExpandedStateList, ExpandedTableState, Expanding, expandRows, FilterFn, FilterFnOption, FilterFns, filterFns, FilterMeta, Filters, FiltersColumn, FiltersColumnDef, FiltersInstance, FiltersOptions, FiltersRow, FiltersTableState, flattenBy, functionalUpdate, getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, Getter, GroupColumnDef, Grouping, GroupingCell, GroupingColumn, GroupingColumnDef, GroupingColumnMode, GroupingInstance, GroupingOptions, GroupingRow, GroupingState, GroupingTableState, HeaderContext, HeaderGroup, Headers, HeadersInstance, Header as HeaderTable, IdentifiedColumnDef, InitialTableState, IsAny, isFunction, IsKnown, isRowSelected, isSubRowSelected, makeStateUpdater, memo, NoInfer, noop, OnChangeFn, orderColumns, Ordering, Overwrite, PaginationDefaultOptions, PaginationInitialTableState, PaginationInstance, PaginationOptions, PaginationState, Pagination as PaginationTable, PaginationTableState, PartialKeys, passiveEventSupported, Pinning, RequiredKeys, ResolvedColumnFilter, reSplitAlphaNumeric, Row, RowData, RowModel, RowSelection, RowSelectionInstance, RowSelectionOptions, RowSelectionRow, RowSelectionState, RowSelectionTableState, selectRowsFn, shouldAutoRemoveFilter, SortDirection, Sorting, SortingColumn, SortingColumnDef, SortingFn, SortingFnOption, SortingFns, sortingFns, SortingInstance, SortingOptions, SortingState, SortingTableState, StringOrTemplateHeader, Table, TableFeature, TableMeta, TableOptions, TableOptionsResolved, TableState, TransformFilterValueFn, UnionToIntersection, Updater, Visibility, VisibilityColumn, VisibilityColumnDef, VisibilityDefaultOptions, VisibilityInstance, VisibilityOptions, VisibilityRow, VisibilityState, VisibilityTableState, } from '@tanstack/table-core';
|
@@ -1,17 +1,17 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import type { ReactDatePickerProps } from 'react-datepicker';
|
3
|
-
export interface DatepickerProps extends Omit<ReactDatePickerProps, 'selectsRange'> {
|
4
|
-
id?: string;
|
5
|
-
isRequired?: boolean;
|
6
|
-
label?: string;
|
7
|
-
error?: string | React.ReactNode;
|
8
|
-
isError?: boolean;
|
9
|
-
helperText?: string | React.ReactNode;
|
10
|
-
withTime?: boolean;
|
11
|
-
onClear?: () => void;
|
12
|
-
selectsRange?: boolean;
|
13
|
-
showMonth?: boolean;
|
14
|
-
shortMonth?: boolean;
|
15
|
-
}
|
16
|
-
declare const Datepicker: React.FC<DatepickerProps>;
|
17
|
-
export default Datepicker;
|
1
|
+
import React from 'react';
|
2
|
+
import type { ReactDatePickerProps } from 'react-datepicker';
|
3
|
+
export interface DatepickerProps extends Omit<ReactDatePickerProps, 'selectsRange'> {
|
4
|
+
id?: string;
|
5
|
+
isRequired?: boolean;
|
6
|
+
label?: string;
|
7
|
+
error?: string | React.ReactNode;
|
8
|
+
isError?: boolean;
|
9
|
+
helperText?: string | React.ReactNode;
|
10
|
+
withTime?: boolean;
|
11
|
+
onClear?: () => void;
|
12
|
+
selectsRange?: boolean;
|
13
|
+
showMonth?: boolean;
|
14
|
+
shortMonth?: boolean;
|
15
|
+
}
|
16
|
+
declare const Datepicker: React.FC<DatepickerProps>;
|
17
|
+
export default Datepicker;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as 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 DatePickerDefault: () => JSX.Element;
|
11
|
+
export declare const DatePickerWithTime: () => JSX.Element;
|
12
|
+
export declare const DatePickerWithDateRange: () => JSX.Element;
|
13
|
+
export declare const DatePickerWithNumberOfMonthRange: () => JSX.Element;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const Styles: () => JSX.Element;
|
2
|
-
export default Styles;
|
1
|
+
declare const Styles: () => JSX.Element;
|
2
|
+
export default Styles;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface TimeInputProps {
|
3
|
-
value?: string;
|
4
|
-
onChange?: (time: string) => void;
|
5
|
-
label?: string;
|
6
|
-
rightAddon?: React.ReactNode | string;
|
7
|
-
}
|
8
|
-
declare const TimeInput: React.FC<TimeInputProps>;
|
9
|
-
export default TimeInput;
|
1
|
+
import React from 'react';
|
2
|
+
interface TimeInputProps {
|
3
|
+
value?: string;
|
4
|
+
onChange?: (time: string) => void;
|
5
|
+
label?: string;
|
6
|
+
rightAddon?: React.ReactNode | string;
|
7
|
+
}
|
8
|
+
declare const TimeInput: React.FC<TimeInputProps>;
|
9
|
+
export default TimeInput;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { default as Datepicker } from './components/datepicker';
|
2
|
-
export * from './components/datepicker';
|
1
|
+
export { default as Datepicker } from './components/datepicker';
|
2
|
+
export * from './components/datepicker';
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import type { FC, PropsWithChildren, ReactNode } from 'react';
|
2
|
-
export interface Props {
|
3
|
-
label?: string | ReactNode;
|
4
|
-
isError?: boolean;
|
5
|
-
error?: string | ReactNode;
|
6
|
-
helperText?: string | ReactNode;
|
7
|
-
isRequired?: boolean;
|
8
|
-
}
|
9
|
-
export type FieldProps<T = unknown> = Props & T;
|
10
|
-
declare const Field: FC<PropsWithChildren<Props>>;
|
11
|
-
export default Field;
|
1
|
+
import type { FC, PropsWithChildren, ReactNode } from 'react';
|
2
|
+
export interface Props {
|
3
|
+
label?: string | ReactNode;
|
4
|
+
isError?: boolean;
|
5
|
+
error?: string | ReactNode;
|
6
|
+
helperText?: string | ReactNode;
|
7
|
+
isRequired?: boolean;
|
8
|
+
}
|
9
|
+
export declare type FieldProps<T = unknown> = Props & T;
|
10
|
+
declare const Field: FC<PropsWithChildren<Props>>;
|
11
|
+
export default Field;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import type { InputProps as ChakraInputProps } from '@chakra-ui/react';
|
2
|
-
import type { ReactNode } from 'react';
|
3
|
-
import React from 'react';
|
4
|
-
import type { FieldProps } from './field';
|
5
|
-
export interface InputFieldProps extends ChakraInputProps, FieldProps {
|
6
|
-
addOnLeft?: ReactNode;
|
7
|
-
addOnRight?: ReactNode;
|
8
|
-
elementLeft?: ReactNode;
|
9
|
-
elementRight?: ReactNode;
|
10
|
-
}
|
11
|
-
declare const InputField: React.ForwardRefExoticComponent<InputFieldProps & React.RefAttributes<HTMLInputElement>>;
|
12
|
-
export default InputField;
|
1
|
+
import type { InputProps as ChakraInputProps } from '@chakra-ui/react';
|
2
|
+
import type { ReactNode } from 'react';
|
3
|
+
import React from 'react';
|
4
|
+
import type { FieldProps } from './field';
|
5
|
+
export interface InputFieldProps extends ChakraInputProps, FieldProps {
|
6
|
+
addOnLeft?: ReactNode;
|
7
|
+
addOnRight?: ReactNode;
|
8
|
+
elementLeft?: ReactNode;
|
9
|
+
elementRight?: ReactNode;
|
10
|
+
}
|
11
|
+
declare const InputField: React.ForwardRefExoticComponent<InputFieldProps & React.RefAttributes<HTMLInputElement>>;
|
12
|
+
export default InputField;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import type { TextareaProps as ChakraTextareaProps } from '@chakra-ui/react';
|
2
|
-
import type { ReactNode } from 'react';
|
3
|
-
import React from 'react';
|
4
|
-
import type { FieldProps } from './field';
|
5
|
-
export interface TextAreaProps extends ChakraTextareaProps, FieldProps {
|
6
|
-
addOnLeft?: ReactNode;
|
7
|
-
addOnRight?: ReactNode;
|
8
|
-
elementLeft?: ReactNode;
|
9
|
-
elementRight?: ReactNode;
|
10
|
-
}
|
11
|
-
declare const TextareaField: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
12
|
-
export default TextareaField;
|
1
|
+
import type { TextareaProps as ChakraTextareaProps } from '@chakra-ui/react';
|
2
|
+
import type { ReactNode } from 'react';
|
3
|
+
import React from 'react';
|
4
|
+
import type { FieldProps } from './field';
|
5
|
+
export interface TextAreaProps extends ChakraTextareaProps, FieldProps {
|
6
|
+
addOnLeft?: ReactNode;
|
7
|
+
addOnRight?: ReactNode;
|
8
|
+
elementLeft?: ReactNode;
|
9
|
+
elementRight?: ReactNode;
|
10
|
+
}
|
11
|
+
declare const TextareaField: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
12
|
+
export default TextareaField;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export { default as Field } from './components/field';
|
2
|
-
export { default as InputField } from './components/input-field';
|
3
|
-
export { default as TextareaField } from './components/textarea-field';
|
4
|
-
export * from './components/field';
|
5
|
-
export * from './components/input-field';
|
6
|
-
export * from './components/textarea-field';
|
1
|
+
export { default as Field } from './components/field';
|
2
|
+
export { default as InputField } from './components/input-field';
|
3
|
+
export { default as TextareaField } from './components/textarea-field';
|
4
|
+
export * from './components/field';
|
5
|
+
export * from './components/input-field';
|
6
|
+
export * from './components/textarea-field';
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import type { BoxProps } from '@chakra-ui/react';
|
2
|
-
import * as React from 'react';
|
3
|
-
import type { HeaderDataProps } from '../types';
|
4
|
-
export type HeaderProps = BoxProps & {
|
5
|
-
data?: HeaderDataProps;
|
6
|
-
onLogout?: () => void;
|
7
|
-
onOpenModalRelease?: () => void;
|
8
|
-
};
|
9
|
-
declare const Header: React.FC<HeaderProps>;
|
10
|
-
export default Header;
|
1
|
+
import type { BoxProps } from '@chakra-ui/react';
|
2
|
+
import * as React from 'react';
|
3
|
+
import type { HeaderDataProps } from '../types';
|
4
|
+
export declare type HeaderProps = BoxProps & {
|
5
|
+
data?: HeaderDataProps;
|
6
|
+
onLogout?: () => void;
|
7
|
+
onOpenModalRelease?: () => void;
|
8
|
+
};
|
9
|
+
declare const Header: React.FC<HeaderProps>;
|
10
|
+
export default Header;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const XMSLogo: () => JSX.Element;
|
2
|
-
export declare const VoilaLogo: () => JSX.Element;
|
1
|
+
export declare const XMSLogo: () => JSX.Element;
|
2
|
+
export declare const VoilaLogo: () => JSX.Element;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import type { HeaderDataProps } from '../types';
|
3
|
-
export type ProfileProps = {
|
4
|
-
data?: HeaderDataProps;
|
5
|
-
onLogout?: () => void;
|
6
|
-
};
|
7
|
-
declare const Profile: React.FC<ProfileProps>;
|
8
|
-
export default Profile;
|
1
|
+
import * as React from 'react';
|
2
|
+
import type { HeaderDataProps } from '../types';
|
3
|
+
export declare type ProfileProps = {
|
4
|
+
data?: HeaderDataProps;
|
5
|
+
onLogout?: () => void;
|
6
|
+
};
|
7
|
+
declare const Profile: React.FC<ProfileProps>;
|
8
|
+
export default Profile;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
declare const SwitchMode: React.FC;
|
3
|
-
export default SwitchMode;
|
1
|
+
import * as React from 'react';
|
2
|
+
declare const SwitchMode: React.FC;
|
3
|
+
export default SwitchMode;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import type { Environment } from '../types';
|
3
|
-
export type VersionProps = {
|
4
|
-
environment?: Environment;
|
5
|
-
version?: string;
|
6
|
-
onOpenModalRelease?: () => void;
|
7
|
-
};
|
8
|
-
declare const Version: React.FC<VersionProps>;
|
9
|
-
export default Version;
|
1
|
+
import * as React from 'react';
|
2
|
+
import type { Environment } from '../types';
|
3
|
+
export declare type VersionProps = {
|
4
|
+
environment?: Environment;
|
5
|
+
version?: string;
|
6
|
+
onOpenModalRelease?: () => void;
|
7
|
+
};
|
8
|
+
declare const Version: React.FC<VersionProps>;
|
9
|
+
export default Version;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export { default as Header } from './components/header';
|
2
|
-
export * from './components/header';
|
3
|
-
export * from './types';
|
1
|
+
export { default as Header } from './components/header';
|
2
|
+
export * from './components/header';
|
3
|
+
export * from './types';
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as 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 HeaderDefault: () => JSX.Element;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
export type Environment = 'DEVELOPMENT' | 'STAGING' | 'PRODUCTION';
|
2
|
-
export type HeaderDataProps = {
|
3
|
-
environment?: Environment;
|
4
|
-
version?: string;
|
5
|
-
email?: string;
|
6
|
-
name?: string;
|
7
|
-
userRole?: string;
|
8
|
-
office?: string;
|
9
|
-
avatarUrl?: string;
|
10
|
-
};
|
1
|
+
export declare type Environment = 'DEVELOPMENT' | 'STAGING' | 'PRODUCTION';
|
2
|
+
export declare type HeaderDataProps = {
|
3
|
+
environment?: Environment;
|
4
|
+
version?: string;
|
5
|
+
email?: string;
|
6
|
+
name?: string;
|
7
|
+
userRole?: string;
|
8
|
+
office?: string;
|
9
|
+
avatarUrl?: string;
|
10
|
+
};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import type { Environment } from '../types';
|
2
|
-
export declare function environmentName(env?: Environment): "Dev" | "Staging" | null;
|
1
|
+
import type { Environment } from '../types';
|
2
|
+
export declare function environmentName(env?: Environment): "Dev" | "Staging" | null;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
export * from './breadcrumb';
|
2
|
-
export * from './data-table';
|
3
|
-
export * from './datepicker';
|
4
|
-
export * from './field';
|
5
|
-
export * from './header';
|
6
|
-
export * from './modal';
|
7
|
-
export * from './navigation';
|
8
|
-
export * from './pagination';
|
9
|
-
export * from './select';
|
10
|
-
export * from './tabs';
|
11
|
-
export * from './uploader';
|
1
|
+
export * from './breadcrumb';
|
2
|
+
export * from './data-table';
|
3
|
+
export * from './datepicker';
|
4
|
+
export * from './field';
|
5
|
+
export * from './header';
|
6
|
+
export * from './modal';
|
7
|
+
export * from './navigation';
|
8
|
+
export * from './pagination';
|
9
|
+
export * from './select';
|
10
|
+
export * from './tabs';
|
11
|
+
export * from './uploader';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { ButtonProps } from '@chakra-ui/react';
|
3
|
-
declare const ModalCloseButton: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
4
|
-
export default ModalCloseButton;
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ButtonProps } from '@chakra-ui/react';
|
3
|
+
declare const ModalCloseButton: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
4
|
+
export default ModalCloseButton;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { ModalFooterProps } from '@chakra-ui/react';
|
3
|
-
declare const ModalFooter: import("react").ForwardRefExoticComponent<ModalFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
4
|
-
export default ModalFooter;
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ModalFooterProps } from '@chakra-ui/react';
|
3
|
+
declare const ModalFooter: import("react").ForwardRefExoticComponent<ModalFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
4
|
+
export default ModalFooter;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { ModalHeaderProps } from '@chakra-ui/react';
|
3
|
-
declare const ModalHeader: import("react").ForwardRefExoticComponent<ModalHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
4
|
-
export default ModalHeader;
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ModalHeaderProps } from '@chakra-ui/react';
|
3
|
+
declare const ModalHeader: import("react").ForwardRefExoticComponent<ModalHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
4
|
+
export default ModalHeader;
|