@hybr1d-tech/charizard 0.4.60 → 0.4.61
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/button/Button.d.ts +5 -3
- package/dist/components/button/actions-dropdown.stories.d.ts +2 -1
- package/dist/components/button/button.stories.d.ts +2 -1
- package/dist/components/button/menu-button.stories.d.ts +2 -1
- package/dist/components/drawer/Drawer.d.ts +1 -1
- package/dist/components/empty-state/empty-state.stories.d.ts +2 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/input/Input.d.ts +2 -2
- package/dist/components/input/InputAddon.d.ts +1 -1
- package/dist/components/input/InputContainer.d.ts +1 -1
- package/dist/components/input/InputElement.d.ts +1 -1
- package/dist/components/input/InputGroup.d.ts +1 -1
- package/dist/components/input/InputLabel.d.ts +1 -1
- package/dist/components/input/input.stories.d.ts +2 -1
- package/dist/components/loader/loader.stories.d.ts +2 -1
- package/dist/components/modal/ModalFooter.d.ts +1 -1
- package/dist/components/popover/Popover.d.ts +1 -1
- package/dist/components/select/CreatableSelect.d.ts +2 -2
- package/dist/components/select/Select.d.ts +2 -2
- package/dist/components/select/SelectAsync.d.ts +2 -2
- package/dist/components/select/config.d.ts +1 -0
- package/dist/components/select/types.d.ts +2 -2
- package/dist/components/table/Table.d.ts +1 -1
- package/dist/components/table/store.d.ts +2 -1
- package/dist/components/table/table-actions/TableActions.d.ts +1 -0
- package/dist/components/table/table-columns/TableCheckbox.d.ts +1 -1
- package/dist/components/table/table-columns/TableRadio.d.ts +1 -1
- package/dist/components/table/table-empty/TableEmpty.d.ts +1 -0
- package/dist/components/table/table-filters/FilterCheckbox.d.ts +1 -0
- package/dist/components/table/table-filters/FilterTooltip.d.ts +1 -0
- package/dist/components/table/table-filters/TableFilter.d.ts +2 -1
- package/dist/components/table/table-filters/TableFilters.d.ts +2 -1
- package/dist/components/table/table-selected-actions/TableSelectedActions.d.ts +1 -0
- package/dist/components/table-v2/TableV2.d.ts +1 -3
- package/dist/components/table-v2/inventory/inventory.store.d.ts +1 -1
- package/dist/components/table-v2/store.d.ts +2 -1
- package/dist/components/table-v2/table-actions/TableActions.d.ts +3 -2
- package/dist/components/table-v2/table-columns/TableCheckbox.d.ts +1 -1
- package/dist/components/table-v2/table-columns/TableRadio.d.ts +1 -1
- package/dist/components/table-v2/table-custom-cols/CustomColCheckbox.d.ts +1 -0
- package/dist/components/table-v2/table-custom-cols/TableCustomCols.d.ts +2 -2
- package/dist/components/table-v2/table-custom-cols/sortable/SortableItem.d.ts +3 -2
- package/dist/components/table-v2/table-custom-cols/sortable/SortableList.d.ts +4 -4
- package/dist/components/table-v2/table-custom-cols/sortable/SortableOverlay.d.ts +2 -1
- package/dist/components/table-v2/table-custom-cols/utils.d.ts +1 -0
- package/dist/components/table-v2/table-empty/TableEmpty.d.ts +1 -0
- package/dist/components/table-v2/table-filters-drawer/TableFiltersDrawer.d.ts +1 -0
- package/dist/components/table-v2/table-filters-drawer/utils.d.ts +1 -0
- package/dist/components/table-v2/table-header-filters/FilterCheckbox.d.ts +1 -0
- package/dist/components/table-v2/table-header-filters/FilterTooltip.d.ts +1 -0
- package/dist/components/table-v2/table-header-filters/TableHeaderFilter.d.ts +2 -1
- package/dist/components/table-v2/table-header-filters/TableHeaderFilters.d.ts +2 -1
- package/dist/components/table-v2/table-meta-header/TableMetaHeader.d.ts +2 -2
- package/dist/components/table-v2/table-pagination/TablePagination.d.ts +1 -0
- package/dist/components/table-v2/table-selected-actions/TableSelectedActions.d.ts +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +3 -3
- package/dist/hybr1d-ui.js +1637 -1615
- package/dist/hybr1d-ui.umd.cjs +10 -10
- package/package.json +14 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { PositioningOptions } from '@zag-js/popper';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
export declare enum BUTTON_VARIANT {
|
|
4
4
|
PRIMARY = "primary",
|
|
5
5
|
SECONDARY = "secondary",
|
|
@@ -19,7 +19,7 @@ export type ButtonProps = {
|
|
|
19
19
|
};
|
|
20
20
|
export declare function Button({ children, variant, disabled, onClick, type, size, customStyles, }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export declare namespace Button {
|
|
22
|
-
var MenuButton: ({ children, variant, disabled, menuItems, onClick, isCustomTrigger, isSingleBtnTrigger, customData, size, actionsDropdownOptions, positionerProps, }: MenuButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
var MenuButton: ({ children, variant, disabled, menuItems, onClick, isCustomTrigger, isSingleBtnTrigger, customData, size, actionsDropdownOptions, positionerProps, isTable, }: MenuButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
var ActionsDropdown: typeof MenuActionsDropdown;
|
|
24
24
|
}
|
|
25
25
|
export type MenuItem = {
|
|
@@ -43,11 +43,13 @@ export interface MenuButtonProps {
|
|
|
43
43
|
setIsActive: React.Dispatch<React.SetStateAction<boolean>>;
|
|
44
44
|
};
|
|
45
45
|
positionerProps?: PositioningOptions;
|
|
46
|
+
isTable?: boolean;
|
|
46
47
|
}
|
|
47
48
|
export type MenuActionsDropdownProps = {
|
|
48
49
|
menuItems: MenuItem[];
|
|
49
50
|
data?: any;
|
|
50
51
|
variant?: 'regular' | 'small';
|
|
52
|
+
isTable?: boolean;
|
|
51
53
|
};
|
|
52
|
-
declare function MenuActionsDropdown({ menuItems, data, variant }: MenuActionsDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
declare function MenuActionsDropdown({ menuItems, data, variant, isTable, }: MenuActionsDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
53
55
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { Button } from './Button';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
3
4
|
declare const meta: Meta<typeof Button.ActionsDropdown>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof Button.ActionsDropdown>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { Button } from './Button';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
3
4
|
declare const meta: Meta<typeof Button.MenuButton>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof Button.MenuButton>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { EmptyState } from './EmptyState';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
3
4
|
declare const meta: Meta<typeof EmptyState>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof EmptyState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { HTMLInputTypeAttribute } from 'react';
|
|
3
1
|
import { Inputs } from './types';
|
|
2
|
+
import { HTMLInputTypeAttribute } from 'react';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
interface InputProps {
|
|
5
5
|
/**
|
|
6
6
|
* Custom classes to be applied to the input
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { MenuPlacement, StylesConfig } from 'react-select';
|
|
3
1
|
import { SelectActionMeta } from './types';
|
|
2
|
+
import { MenuPlacement, StylesConfig } from 'react-select';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
interface CreatableSelectProps {
|
|
5
5
|
/**
|
|
6
6
|
* The options to be displayed in the select
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { MenuPlacement, StylesConfig } from 'react-select';
|
|
3
1
|
import { SelectActionMeta } from './types';
|
|
2
|
+
import { MenuPlacement, StylesConfig } from 'react-select';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
interface SelectProps {
|
|
5
5
|
/**
|
|
6
6
|
* The options to be displayed in the select
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { MenuPlacement, StylesConfig } from 'react-select';
|
|
3
1
|
import { SelectActionMeta } from './types';
|
|
2
|
+
import { MenuPlacement, StylesConfig } from 'react-select';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
interface SelectAsyncProps {
|
|
5
5
|
/**
|
|
6
6
|
* The options to be displayed in the select
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InternalTableFilters } from './types';
|
|
2
|
+
|
|
2
3
|
export interface TableStore {
|
|
3
4
|
filters: InternalTableFilters[];
|
|
4
5
|
setDefaultFilters: (filters: InternalTableFilters[]) => void;
|
|
@@ -7,7 +8,7 @@ export interface TableStore {
|
|
|
7
8
|
resetFilters: (filterKey: string, filterDispatch: any) => void;
|
|
8
9
|
resetAllFilters: (filterReset?: any) => void;
|
|
9
10
|
}
|
|
10
|
-
export declare const useTableStore: import(
|
|
11
|
+
export declare const useTableStore: import('zustand').UseBoundStore<Omit<import("zustand").StoreApi<TableStore>, "setState"> & {
|
|
11
12
|
setState<A extends string | {
|
|
12
13
|
type: string;
|
|
13
14
|
}>(partial: TableStore | Partial<TableStore> | ((state: TableStore) => TableStore | Partial<TableStore>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Row } from '@tanstack/react-table';
|
|
1
2
|
/**
|
|
2
3
|
* @author Soham Sarkar <soham@hybr1d.io>
|
|
3
4
|
*/
|
|
4
5
|
import * as React from 'react';
|
|
5
|
-
import type { Row } from '@tanstack/react-table';
|
|
6
6
|
export declare function TableCheckbox({ indeterminate, row, isHeader, ...rest }: {
|
|
7
7
|
indeterminate: boolean;
|
|
8
8
|
row: Row<unknown>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { FilterOptions, InternalTableFilters } from '../types';
|
|
1
2
|
import { TableStore } from '../store';
|
|
2
|
-
|
|
3
|
+
|
|
3
4
|
interface TableFilterProps {
|
|
4
5
|
filter: FilterOptions;
|
|
5
6
|
tableFilters: TableStore['filters'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { FilterConfig } from './types';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
import type { FilterConfig } from './types';
|
|
3
3
|
export interface TableV2Props {
|
|
4
4
|
data: any;
|
|
5
5
|
columns: any;
|
|
@@ -15,8 +15,6 @@ export interface TableV2Props {
|
|
|
15
15
|
filterFn?: any;
|
|
16
16
|
disabled?: boolean | ((data: any) => boolean);
|
|
17
17
|
}[];
|
|
18
|
-
key?: string;
|
|
19
|
-
customComp?: (data: any) => React.ReactNode | JSX.Element;
|
|
20
18
|
};
|
|
21
19
|
loaderConfig: {
|
|
22
20
|
text?: string;
|
|
@@ -36,5 +36,5 @@ export declare const invQueryReducer: (query: any, { payload, type }: {
|
|
|
36
36
|
payload: any;
|
|
37
37
|
type: any;
|
|
38
38
|
}) => any;
|
|
39
|
-
export declare const useInventoryStore: import(
|
|
39
|
+
export declare const useInventoryStore: import('zustand').UseBoundStore<import("zustand").StoreApi<InventoryStore>>;
|
|
40
40
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InternalTableFilters } from './types';
|
|
2
|
+
|
|
2
3
|
export interface TableStore {
|
|
3
4
|
filters: InternalTableFilters[];
|
|
4
5
|
setDefaultFilters: (filters: InternalTableFilters[]) => void;
|
|
@@ -8,7 +9,7 @@ export interface TableStore {
|
|
|
8
9
|
resetFilters: (filterKey: string, filterDispatch: any) => void;
|
|
9
10
|
resetAllFilters: (filterReset?: any) => void;
|
|
10
11
|
}
|
|
11
|
-
export declare const useTableStore: import(
|
|
12
|
+
export declare const useTableStore: import('zustand').UseBoundStore<Omit<import("zustand").StoreApi<TableStore>, "setState"> & {
|
|
12
13
|
setState<A extends string | {
|
|
13
14
|
type: string;
|
|
14
15
|
}>(partial: TableStore | Partial<TableStore> | ((state: TableStore) => TableStore | Partial<TableStore>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TableV2Props } from '../TableV2';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
interface TableActionsProps {
|
|
3
4
|
actionsConfig: TableV2Props['actionsConfig'];
|
|
4
5
|
data: any;
|
|
5
|
-
}
|
|
6
|
+
}
|
|
6
7
|
export default function TableActions({ actionsConfig, data }: TableActionsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
8
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Row } from '@tanstack/react-table';
|
|
1
2
|
/**
|
|
2
3
|
* @author Soham Sarkar <soham@hybr1d.io>
|
|
3
4
|
*/
|
|
4
5
|
import * as React from 'react';
|
|
5
|
-
import type { Row } from '@tanstack/react-table';
|
|
6
6
|
export declare function TableCheckbox({ indeterminate, row, isHeader, ...rest }: {
|
|
7
7
|
indeterminate: boolean;
|
|
8
8
|
row: Row<unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Table } from '@tanstack/react-table';
|
|
3
1
|
import { TableV2Props } from '../TableV2';
|
|
2
|
+
import { Table } from '@tanstack/react-table';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
interface TableCustomColsProps {
|
|
5
5
|
customColumnConfig: TableV2Props['customColumnConfig'];
|
|
6
6
|
table: Table<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SortableItem } from './SortableItem';
|
|
3
|
-
import type { UniqueIdentifier } from '@dnd-kit/core';
|
|
4
1
|
import { CheckedState } from '../TableCustomCols';
|
|
2
|
+
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
3
|
+
import { SortableItem } from './SortableItem';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
interface BaseItem {
|
|
6
6
|
id: UniqueIdentifier;
|
|
7
7
|
}
|
|
@@ -13,6 +13,6 @@ interface Props<T extends BaseItem> {
|
|
|
13
13
|
export declare function SortableList<T extends BaseItem>({ items: _items, onChange, renderItem }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export declare namespace SortableList {
|
|
15
15
|
var Item: typeof SortableItem;
|
|
16
|
-
var DragHandle: typeof import(
|
|
16
|
+
var DragHandle: typeof import('./SortableItem').DragHandle;
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { FilterOptions, InternalTableFilters } from '../types';
|
|
1
2
|
import { TableStore } from '../store';
|
|
2
|
-
|
|
3
|
+
|
|
3
4
|
interface TableHeaderFilterProps {
|
|
4
5
|
filter: FilterOptions;
|
|
5
6
|
tableFilters: TableStore['filters'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TableV2Props } from '../TableV2';
|
|
3
1
|
import { Table } from '@tanstack/react-table';
|
|
2
|
+
import { TableV2Props } from '../TableV2';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
interface TableMetaHeaderProps {
|
|
5
5
|
rowSelectionConfig: TableV2Props['rowSelectionConfig'];
|
|
6
6
|
totalText: TableV2Props['totalText'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { TooltipTrigger } from './TooltipTrigger';
|
|
1
|
+
import { Placement } from '@zag-js/popper';
|
|
3
2
|
import { TooltipContent } from './TooltipContent';
|
|
4
|
-
import
|
|
3
|
+
import { TooltipTrigger } from './TooltipTrigger';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
interface TooltipProps {
|
|
6
6
|
/**
|
|
7
7
|
* tooltip children
|