@hybr1d-tech/charizard 0.4.30 → 0.4.32
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/dist/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/components/input/InputContainer.d.ts +1 -0
- package/dist/components/input/InputElement.d.ts +1 -0
- package/dist/components/modal/ModalBody.d.ts +1 -0
- package/dist/components/modal/ModalFooter.d.ts +1 -0
- package/dist/components/modal/ModalHeader.d.ts +1 -0
- package/dist/components/popover/PopoverCloseButton.d.ts +1 -0
- package/dist/components/popover/PopoverDescription.d.ts +1 -0
- package/dist/components/popover/PopoverTitle.d.ts +1 -0
- package/dist/components/popover/PopoverTrigger.d.ts +1 -0
- package/dist/components/svg/SVG.d.ts +1 -0
- package/dist/components/switch/Switch.d.ts +1 -0
- package/dist/components/table-v2/table-custom-cols/CustomColCheckbox.d.ts +8 -0
- package/dist/components/table-v2/table-custom-cols/Draggable.d.ts +7 -0
- package/dist/components/table-v2/table-custom-cols/Dropable.d.ts +7 -0
- package/dist/components/table-v2/table-custom-cols/TableCustomCols.d.ts +22 -0
- package/dist/components/table-v2/table-custom-cols/index.d.ts +1 -0
- package/dist/components/table-v2/table-custom-cols/sortable/SortableItem.d.ts +8 -0
- package/dist/components/table-v2/table-custom-cols/sortable/SortableList.d.ts +17 -0
- package/dist/components/table-v2/table-custom-cols/sortable/SortableOverlay.d.ts +5 -0
- package/dist/components/table-v2/table-custom-cols/utils.d.ts +15 -0
- package/dist/components/table-v2/table-meta-header/TableMetaHeader.d.ts +3 -1
- package/dist/components/tooltip/TooltipContent.d.ts +1 -0
- package/dist/components/tooltip/TooltipTrigger.d.ts +1 -0
- package/dist/hybr1d-ui.js +3468 -3200
- package/dist/hybr1d-ui.umd.cjs +14 -14
- package/dist/style.css +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OptionsProp } from './TableCustomCols';
|
|
2
|
+
type CustomColCheckboxProps = Pick<OptionsProp, 'setCheckedState'> & {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
};
|
|
7
|
+
export default function CustomColCheckbox({ id, label, checked, setCheckedState, }: CustomColCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Table } from '@tanstack/react-table';
|
|
3
|
+
import { TableV2Props } from '../TableV2';
|
|
4
|
+
interface TableCustomColsProps {
|
|
5
|
+
customColumnConfig: TableV2Props['customColumnConfig'];
|
|
6
|
+
table: Table<any>;
|
|
7
|
+
}
|
|
8
|
+
export type CheckedState = {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
checked: boolean;
|
|
12
|
+
};
|
|
13
|
+
export default function TableCustomCols({ customColumnConfig, table }: TableCustomColsProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface OptionsProp {
|
|
15
|
+
cols: CheckedState[];
|
|
16
|
+
text: string;
|
|
17
|
+
textCn: string;
|
|
18
|
+
checkedState: CheckedState[];
|
|
19
|
+
setCheckedState: React.Dispatch<React.SetStateAction<CheckedState[]>>;
|
|
20
|
+
isDraggable?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TableCustomCols';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { UniqueIdentifier } from '@dnd-kit/core';
|
|
2
|
+
import type { PropsWithChildren } from 'react';
|
|
3
|
+
interface Props {
|
|
4
|
+
id: UniqueIdentifier;
|
|
5
|
+
}
|
|
6
|
+
export declare function SortableItem({ children, id }: PropsWithChildren<Props>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function DragHandle(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SortableItem } from './SortableItem';
|
|
3
|
+
import type { UniqueIdentifier } from '@dnd-kit/core';
|
|
4
|
+
interface BaseItem {
|
|
5
|
+
id: UniqueIdentifier;
|
|
6
|
+
}
|
|
7
|
+
interface Props<T extends BaseItem> {
|
|
8
|
+
items: T[];
|
|
9
|
+
onChange(items: T[]): void;
|
|
10
|
+
renderItem(item: T): React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function SortableList<T extends BaseItem>({ items: _items, onChange, renderItem }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare namespace SortableList {
|
|
14
|
+
var Item: typeof SortableItem;
|
|
15
|
+
var DragHandle: typeof import("./SortableItem").DragHandle;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FilterOptions, InternalTableFilters } from '../types';
|
|
2
|
+
type FilterItem = {
|
|
3
|
+
label?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
};
|
|
7
|
+
type Filters = {
|
|
8
|
+
[key: string]: FilterItem[];
|
|
9
|
+
};
|
|
10
|
+
type FilterResults = {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function removeUncheckedItems(input: Filters): FilterResults;
|
|
14
|
+
export declare const getDefaultCheckedState: (filters: FilterOptions[], tableFilters: InternalTableFilters[]) => Record<string, any[]>;
|
|
15
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TableV2Props } from '../TableV2';
|
|
3
|
+
import { Table } from '@tanstack/react-table';
|
|
3
4
|
interface TableMetaHeaderProps {
|
|
4
5
|
rowSelectionConfig: TableV2Props['rowSelectionConfig'];
|
|
5
6
|
totalText: TableV2Props['totalText'];
|
|
@@ -9,6 +10,7 @@ interface TableMetaHeaderProps {
|
|
|
9
10
|
exportConfig: TableV2Props['exportConfig'];
|
|
10
11
|
rowSelection: {};
|
|
11
12
|
setRowSelection: React.Dispatch<React.SetStateAction<{}>>;
|
|
13
|
+
table: Table<any>;
|
|
12
14
|
}
|
|
13
|
-
export default function TableMetaHeader({ rowSelectionConfig, totalText, searchConfig, filterConfig, customColumnConfig, exportConfig, rowSelection, setRowSelection, }: TableMetaHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default function TableMetaHeader({ rowSelectionConfig, totalText, searchConfig, filterConfig, customColumnConfig, exportConfig, rowSelection, setRowSelection, table, }: TableMetaHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
export {};
|