@hybr1d-tech/charizard 0.6.108 → 0.7.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.
- package/dist/hybr1d-ui.js +3636 -3635
- package/dist/hybr1d-ui.umd.cjs +14 -14
- package/dist/index.d.ts +2941 -1
- package/package.json +17 -16
- package/dist/components/alert/Alert.d.ts +0 -24
- package/dist/components/alert/index.d.ts +0 -1
- package/dist/components/asyncImage/AsyncImage.d.ts +0 -14
- package/dist/components/asyncImage/index.d.ts +0 -1
- package/dist/components/asyncImage/types.d.ts +0 -4
- package/dist/components/avatar/Avatar.d.ts +0 -6
- package/dist/components/avatar/index.d.ts +0 -1
- package/dist/components/badge/Badge.d.ts +0 -50
- package/dist/components/badge/index.d.ts +0 -1
- package/dist/components/breadcrumbs/BreadCrumbs.d.ts +0 -1
- package/dist/components/breadcrumbs/index.d.ts +0 -3
- package/dist/components/breadcrumbs/store.d.ts +0 -11
- package/dist/components/breadcrumbs/useBreadCrumbs.d.ts +0 -7
- package/dist/components/button/Button.d.ts +0 -55
- package/dist/components/button/actions-dropdown.stories.d.ts +0 -7
- package/dist/components/button/button.stories.d.ts +0 -11
- package/dist/components/button/index.d.ts +0 -1
- package/dist/components/button/menu-button.stories.d.ts +0 -7
- package/dist/components/button-v2/ButtonV2.d.ts +0 -77
- package/dist/components/button-v2/buttonV2.stories.d.ts +0 -9
- package/dist/components/button-v2/group-action.stories.d.ts +0 -9
- package/dist/components/button-v2/index.d.ts +0 -2
- package/dist/components/button-v2/types.d.ts +0 -21
- package/dist/components/checkbox/Checkbox.d.ts +0 -44
- package/dist/components/checkbox/checkbox.stories.d.ts +0 -7
- package/dist/components/checkbox/index.d.ts +0 -1
- package/dist/components/checkbox-v2/CheckboxV2.d.ts +0 -10
- package/dist/components/checkbox-v2/index.d.ts +0 -1
- package/dist/components/color-picker/ColorPicker.d.ts +0 -10
- package/dist/components/color-picker/index.d.ts +0 -1
- package/dist/components/date-picker/DatePicker.d.ts +0 -30
- package/dist/components/date-picker/index.d.ts +0 -1
- package/dist/components/drawer/Drawer.d.ts +0 -76
- package/dist/components/drawer/index.d.ts +0 -1
- package/dist/components/drawer-v2/Drawer.d.ts +0 -83
- package/dist/components/drawer-v2/index.d.ts +0 -1
- package/dist/components/empty-state/EmptyState.d.ts +0 -16
- package/dist/components/empty-state/empty-state.stories.d.ts +0 -7
- package/dist/components/empty-state/index.d.ts +0 -1
- package/dist/components/index.d.ts +0 -43
- package/dist/components/input/Input.d.ts +0 -72
- package/dist/components/input/InputAddon.d.ts +0 -41
- package/dist/components/input/InputContainer.d.ts +0 -26
- package/dist/components/input/InputElement.d.ts +0 -19
- package/dist/components/input/InputGroup.d.ts +0 -14
- package/dist/components/input/InputLabel.d.ts +0 -46
- package/dist/components/input/index.d.ts +0 -6
- package/dist/components/input/input.stories.d.ts +0 -7
- package/dist/components/input/types.d.ts +0 -13
- package/dist/components/input-v2/Input.d.ts +0 -20
- package/dist/components/input-v2/InputAdornment.d.ts +0 -64
- package/dist/components/input-v2/InputControl.d.ts +0 -27
- package/dist/components/input-v2/InputCount.d.ts +0 -32
- package/dist/components/input-v2/InputGroup.d.ts +0 -6
- package/dist/components/input-v2/InputIcon.d.ts +0 -48
- package/dist/components/input-v2/InputNumber.d.ts +0 -24
- package/dist/components/input-v2/Label.d.ts +0 -24
- package/dist/components/input-v2/NumberAdornment.d.ts +0 -24
- package/dist/components/input-v2/Textarea.d.ts +0 -23
- package/dist/components/input-v2/index.d.ts +0 -10
- package/dist/components/input-v2/types.d.ts +0 -329
- package/dist/components/layout-tabs/LayoutTabs.d.ts +0 -22
- package/dist/components/layout-tabs/index.d.ts +0 -1
- package/dist/components/loader/Loader.d.ts +0 -17
- package/dist/components/loader/index.d.ts +0 -1
- package/dist/components/loader/loader.stories.d.ts +0 -14
- package/dist/components/modal/Modal.d.ts +0 -30
- package/dist/components/modal/ModalBody.d.ts +0 -17
- package/dist/components/modal/ModalContent.d.ts +0 -18
- package/dist/components/modal/ModalFooter.d.ts +0 -38
- package/dist/components/modal/ModalHeader.d.ts +0 -21
- package/dist/components/modal/ModalOverlay.d.ts +0 -9
- package/dist/components/modal/index.d.ts +0 -6
- package/dist/components/modal/usage.d.ts +0 -1
- package/dist/components/pill/Pill.d.ts +0 -15
- package/dist/components/pill/index.d.ts +0 -1
- package/dist/components/popover/Popover.d.ts +0 -26
- package/dist/components/popover/PopoverCloseButton.d.ts +0 -23
- package/dist/components/popover/PopoverContent.d.ts +0 -32
- package/dist/components/popover/PopoverDescription.d.ts +0 -23
- package/dist/components/popover/PopoverTitle.d.ts +0 -23
- package/dist/components/popover/PopoverTrigger.d.ts +0 -29
- package/dist/components/popover/index.d.ts +0 -6
- package/dist/components/popover/usage.d.ts +0 -1
- package/dist/components/progress/Progress.d.ts +0 -63
- package/dist/components/progress/index.d.ts +0 -1
- package/dist/components/radio-group/RadioGroup.d.ts +0 -45
- package/dist/components/radio-group/index.d.ts +0 -1
- package/dist/components/radio-group/radio.stories.d.ts +0 -7
- package/dist/components/search/Search.d.ts +0 -14
- package/dist/components/search/index.d.ts +0 -1
- package/dist/components/search/search.stories.d.ts +0 -7
- package/dist/components/search-v2/Search.d.ts +0 -20
- package/dist/components/search-v2/index.d.ts +0 -1
- package/dist/components/search-v2/types.d.ts +0 -6
- package/dist/components/segmented-control/SegmentedControl.d.ts +0 -22
- package/dist/components/segmented-control/index.d.ts +0 -1
- package/dist/components/select/Common.d.ts +0 -6
- package/dist/components/select/CreatableSelect.d.ts +0 -97
- package/dist/components/select/Select.d.ts +0 -87
- package/dist/components/select/SelectAsync.d.ts +0 -81
- package/dist/components/select/config.d.ts +0 -4
- package/dist/components/select/index.d.ts +0 -3
- package/dist/components/select/types.d.ts +0 -15
- package/dist/components/select-v2/Common.d.ts +0 -56
- package/dist/components/select-v2/CreatableSelect.d.ts +0 -15
- package/dist/components/select-v2/Select.d.ts +0 -14
- package/dist/components/select-v2/index.d.ts +0 -3
- package/dist/components/select-v2/styles.d.ts +0 -3
- package/dist/components/select-v2/types.d.ts +0 -37
- package/dist/components/selectors/Selectors.d.ts +0 -7
- package/dist/components/selectors/index.d.ts +0 -1
- package/dist/components/skeleton/Skeleton.d.ts +0 -3
- package/dist/components/skeleton/index.d.ts +0 -1
- package/dist/components/svg/SVG.d.ts +0 -11
- package/dist/components/svg/index.d.ts +0 -1
- package/dist/components/switch/Switch.d.ts +0 -12
- package/dist/components/switch/index.d.ts +0 -1
- package/dist/components/switch/switch.stories.d.ts +0 -9
- package/dist/components/table/Table.d.ts +0 -114
- package/dist/components/table/constants.d.ts +0 -3
- package/dist/components/table/index.d.ts +0 -1
- package/dist/components/table/store.d.ts +0 -15
- package/dist/components/table/table-actions/TableActions.d.ts +0 -8
- package/dist/components/table/table-actions/index.d.ts +0 -1
- package/dist/components/table/table-columns/TableCheckbox.d.ts +0 -11
- package/dist/components/table/table-columns/TableRadio.d.ts +0 -7
- package/dist/components/table/table-columns/index.d.ts +0 -2
- package/dist/components/table/table-empty/TableEmpty.d.ts +0 -6
- package/dist/components/table/table-empty/index.d.ts +0 -1
- package/dist/components/table/table-filters/FilterCheckbox.d.ts +0 -13
- package/dist/components/table/table-filters/FilterTooltip.d.ts +0 -9
- package/dist/components/table/table-filters/TableFilter.d.ts +0 -14
- package/dist/components/table/table-filters/TableFilters.d.ts +0 -7
- package/dist/components/table/table-filters/index.d.ts +0 -1
- package/dist/components/table/table-loader/TableLoader.d.ts +0 -4
- package/dist/components/table/table-loader/index.d.ts +0 -1
- package/dist/components/table/table-selected-actions/TableSelectedActions.d.ts +0 -8
- package/dist/components/table/table-selected-actions/index.d.ts +0 -1
- package/dist/components/table/types.d.ts +0 -36
- package/dist/components/table-v3/TableV3.d.ts +0 -119
- package/dist/components/table-v3/constants.d.ts +0 -3
- package/dist/components/table-v3/index.d.ts +0 -4
- package/dist/components/table-v3/inventory/inventory.store.d.ts +0 -40
- package/dist/components/table-v3/store.d.ts +0 -16
- package/dist/components/table-v3/table-actions/TableActions.d.ts +0 -8
- package/dist/components/table-v3/table-actions/index.d.ts +0 -1
- package/dist/components/table-v3/table-columns/TableCheckbox.d.ts +0 -8
- package/dist/components/table-v3/table-columns/TableRadio.d.ts +0 -7
- package/dist/components/table-v3/table-columns/index.d.ts +0 -2
- package/dist/components/table-v3/table-custom-cols/CustomColCheckbox.d.ts +0 -10
- package/dist/components/table-v3/table-custom-cols/TableCustomCols.d.ts +0 -30
- package/dist/components/table-v3/table-custom-cols/index.d.ts +0 -1
- package/dist/components/table-v3/table-custom-cols/sortable/SortableItem.d.ts +0 -10
- package/dist/components/table-v3/table-custom-cols/sortable/SortableList.d.ts +0 -19
- package/dist/components/table-v3/table-custom-cols/sortable/SortableOverlay.d.ts +0 -6
- package/dist/components/table-v3/table-custom-cols/utils.d.ts +0 -16
- package/dist/components/table-v3/table-empty/TableEmpty.d.ts +0 -6
- package/dist/components/table-v3/table-empty/index.d.ts +0 -1
- package/dist/components/table-v3/table-filters-drawer/TableFiltersDrawer.d.ts +0 -7
- package/dist/components/table-v3/table-filters-drawer/TableFiltersDrawerNew.d.ts +0 -7
- package/dist/components/table-v3/table-filters-drawer/index.d.ts +0 -1
- package/dist/components/table-v3/table-filters-drawer/utils.d.ts +0 -16
- package/dist/components/table-v3/table-header-filters/FilterCheckbox.d.ts +0 -13
- package/dist/components/table-v3/table-header-filters/FilterDrawerAllCheckbox.d.ts +0 -7
- package/dist/components/table-v3/table-header-filters/FilterDrawerCheckbox.d.ts +0 -12
- package/dist/components/table-v3/table-header-filters/FilterDrawerCheckboxNew.d.ts +0 -9
- package/dist/components/table-v3/table-header-filters/FilterTooltip.d.ts +0 -9
- package/dist/components/table-v3/table-header-filters/TableHeaderFilter.d.ts +0 -14
- package/dist/components/table-v3/table-header-filters/TableHeaderFilters.d.ts +0 -8
- package/dist/components/table-v3/table-header-filters/index.d.ts +0 -1
- package/dist/components/table-v3/table-loader/TableLoader.d.ts +0 -4
- package/dist/components/table-v3/table-loader/index.d.ts +0 -1
- package/dist/components/table-v3/table-meta-header/TableMetaHeader.d.ts +0 -18
- package/dist/components/table-v3/table-meta-header/index.d.ts +0 -1
- package/dist/components/table-v3/table-pagination/TableEllipses.d.ts +0 -6
- package/dist/components/table-v3/table-pagination/TableLimit.d.ts +0 -7
- package/dist/components/table-v3/table-pagination/TablePagination.d.ts +0 -7
- package/dist/components/table-v3/table-pagination/index.d.ts +0 -1
- package/dist/components/table-v3/table-pagination/utils.d.ts +0 -4
- package/dist/components/table-v3/table-selected-actions/TableSelectedActions.d.ts +0 -8
- package/dist/components/table-v3/table-selected-actions/index.d.ts +0 -1
- package/dist/components/table-v3/types.d.ts +0 -52
- package/dist/components/table-v3/value-cells/table-box-ellipses/TableBoxEllipses.d.ts +0 -7
- package/dist/components/table-v3/value-cells/table-box-ellipses/index.d.ts +0 -1
- package/dist/components/table-v3/value-cells/table-device-cell/TableDeviceCell.d.ts +0 -7
- package/dist/components/table-v3/value-cells/table-user-cell/TableUserCell.d.ts +0 -7
- package/dist/components/tabs/Tab.d.ts +0 -12
- package/dist/components/tabs/Tabs.d.ts +0 -12
- package/dist/components/tabs/index.d.ts +0 -2
- package/dist/components/tag/Tag.d.ts +0 -15
- package/dist/components/tag/index.d.ts +0 -1
- package/dist/components/task-cards/TaskCards.d.ts +0 -24
- package/dist/components/task-cards/components/task-card/TaskCard.d.ts +0 -7
- package/dist/components/task-cards/components/task-card-header/TaskCardHeader.d.ts +0 -3
- package/dist/components/task-cards/helper.d.ts +0 -1
- package/dist/components/task-cards/index.d.ts +0 -1
- package/dist/components/task-cards/types.d.ts +0 -36
- package/dist/components/toasts/Toasts.d.ts +0 -14
- package/dist/components/toasts/index.d.ts +0 -1
- package/dist/components/toasts/types.d.ts +0 -5
- package/dist/components/tooltip/Tooltip.d.ts +0 -28
- package/dist/components/tooltip/TooltipContent.d.ts +0 -24
- package/dist/components/tooltip/TooltipTrigger.d.ts +0 -16
- package/dist/components/tooltip/index.d.ts +0 -1
- package/dist/components/tooltip-v2/TooltipV2.d.ts +0 -14
- package/dist/components/tooltip-v2/index.d.ts +0 -1
- package/dist/components/upload/Upload.d.ts +0 -52
- package/dist/components/upload/helper.d.ts +0 -2
- package/dist/components/upload/index.d.ts +0 -1
- package/dist/components/upload/types.d.ts +0 -15
- package/dist/components/upload/upload.stories.d.ts +0 -7
- package/dist/components/user-chip/UserChip.d.ts +0 -17
- package/dist/components/user-chip/index.d.ts +0 -1
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom Dropdown Indicator component for react-select.
|
|
3
|
-
* Displays a chevron icon indicating the dropdown menu if isDisabled is false.
|
|
4
|
-
* @param props - The props for the DropdownIndicator component, including any react-select specific props.
|
|
5
|
-
* @returns A custom DropdownIndicator component with a chevron icon.
|
|
6
|
-
*/
|
|
7
|
-
export declare const CustomDropdownIndicator: (props: any) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
-
/**
|
|
9
|
-
* Custom Indicators Container component for react-select.
|
|
10
|
-
* Conditionally hides the indicators container if the select is in a loading state.
|
|
11
|
-
* @param props - The props for the IndicatorsContainer component, including any react-select specific props.
|
|
12
|
-
* @returns The IndicatorsContainer component or null if the select is loading.
|
|
13
|
-
*/
|
|
14
|
-
export declare const CustomIndicatorsContainer: (props: any) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
-
/**
|
|
16
|
-
* Custom Menu component for react-select.
|
|
17
|
-
* Displays a loading message if the select is in a loading state.
|
|
18
|
-
* @param props - The props for the Menu component, including any react-select specific props.
|
|
19
|
-
* @returns The Menu component with a loading message or the default menu content.
|
|
20
|
-
*/
|
|
21
|
-
export declare const CustomMenu: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
/**
|
|
23
|
-
* Custom Option component for react-select.
|
|
24
|
-
* Renders each option with profile image, icon, and custom styles based on variant and selection state.
|
|
25
|
-
* @param props - The props for the Option component, including any react-select specific props.
|
|
26
|
-
* @returns The custom Option component with profile image, icon, and styled label.
|
|
27
|
-
*/
|
|
28
|
-
export declare const CustomOption: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
/**
|
|
30
|
-
* Custom Single Value component for react-select.
|
|
31
|
-
* Displays the selected single value with profile image or icon.
|
|
32
|
-
* @param props - The props for the SingleValue component, including any react-select specific props.
|
|
33
|
-
* @returns The custom SingleValue component with profile image or icon.
|
|
34
|
-
*/
|
|
35
|
-
export declare const CustomSingleValue: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
/**
|
|
37
|
-
* Custom Multi Value component for react-select.
|
|
38
|
-
* Displays the selected multi-value items with custom styles and profile image or icon.
|
|
39
|
-
* @param props - The props for the MultiValue component, including any react-select specific props.
|
|
40
|
-
* @returns The custom MultiValue component with profile image, icon, and styled label.
|
|
41
|
-
*/
|
|
42
|
-
export declare const CustomMultiValue: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
/**
|
|
44
|
-
* Custom Multi Value Remove component for react-select.
|
|
45
|
-
* Provides a remove icon for multi-value items.
|
|
46
|
-
* @param props - The props for the MultiValueRemove component, including any react-select specific props.
|
|
47
|
-
* @returns The custom MultiValueRemove component with a close icon.
|
|
48
|
-
*/
|
|
49
|
-
export declare const CustomMultiValueRemove: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
-
/**
|
|
51
|
-
* Custom Clear Indicator component for react-select.
|
|
52
|
-
* Displays a clear icon for single value selects when applicable.
|
|
53
|
-
* @param props - The props for the ClearIndicator component, including any react-select specific props.
|
|
54
|
-
* @returns The custom ClearIndicator component with a close icon or null if multi-select.
|
|
55
|
-
*/
|
|
56
|
-
export declare const CustomClearIndicator: (props: any) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CreatableSelectV2Props } from './types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A custom select component based on react-select.
|
|
5
|
-
* @param props - The properties for the SelectV2 component:
|
|
6
|
-
* - `options` (Array<Option>): An array of options to be displayed in the dropdown. Each option can include a label, value, and optional profile image or icon.
|
|
7
|
-
* - `mainContainerClassName` (string, optional): A custom CSS class name to apply to the main container for additional styling.
|
|
8
|
-
* - `variant` (SELECT_VARIANT, optional): Defines the variant of the select component (e.g., 'default', 'users', 'checkbox', 'tags') to control the styling and behavior.
|
|
9
|
-
* - `errorMsg` (string, optional): An error message to display below the select component for validation purposes.
|
|
10
|
-
* - `onChange` (function): A callback function that is triggered when the selected value(s) change. It receives the selected value(s) and action meta information.
|
|
11
|
-
* - `customStyles` (StylesConfig<any>): custom styles for react select. it will override default styles
|
|
12
|
-
* - `onCreateOption` (Promise<void> | void): function to create new option which is not in the list
|
|
13
|
-
* @returns The SelectV2 component.
|
|
14
|
-
*/
|
|
15
|
-
export declare function CreatableSelectV2(props: CreatableSelectV2Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SelectV2Props } from './types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A custom select component based on react-select.
|
|
5
|
-
* @param props - The properties for the SelectV2 component:
|
|
6
|
-
* - `options` (Array<Option>): An array of options to be displayed in the dropdown. Each option can include a label, value, and optional profile image or icon.
|
|
7
|
-
* - `mainContainerClassName` (string, optional): A custom CSS class name to apply to the main container for additional styling.
|
|
8
|
-
* - `variant` (SELECT_VARIANT, optional): Defines the variant of the select component (e.g., 'default', 'users', 'checkbox', 'tags') to control the styling and behavior.
|
|
9
|
-
* - `errorMsg` (string, optional): An error message to display below the select component for validation purposes.
|
|
10
|
-
* - `onChange` (function): A callback function that is triggered when the selected value(s) change. It receives the selected value(s) and action meta information.
|
|
11
|
-
* - `customStyles` (StylesConfig<any>): custom styles for react select. it will override default styles
|
|
12
|
-
* @returns The SelectV2 component.
|
|
13
|
-
*/
|
|
14
|
-
export declare function SelectV2(props: SelectV2Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { MultiValue, SingleValue, ActionMeta, StylesConfig, Props as ReactSelectProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
export type OptionBase = {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
subLabel?: string;
|
|
7
|
-
};
|
|
8
|
-
export type OptionWithProfileImg = OptionBase & {
|
|
9
|
-
profileImgUrl?: string;
|
|
10
|
-
icon?: never;
|
|
11
|
-
};
|
|
12
|
-
export type OptionWithIcon = OptionBase & {
|
|
13
|
-
icon?: string;
|
|
14
|
-
profileImgUrl?: never;
|
|
15
|
-
};
|
|
16
|
-
export type Option = OptionWithProfileImg | OptionWithIcon;
|
|
17
|
-
export type SelectMultiValue = MultiValue<Option>;
|
|
18
|
-
export type SelectSingleValue = SingleValue<Option>;
|
|
19
|
-
export type SelectActionMeta = ActionMeta<Option>;
|
|
20
|
-
export type SelectValue = SelectMultiValue | SelectSingleValue;
|
|
21
|
-
export declare enum SELECT_VARIANT {
|
|
22
|
-
DEFAULT = "default",
|
|
23
|
-
USERS = "users",
|
|
24
|
-
CHECKBOX = "checkbox",
|
|
25
|
-
TAGS = "tags"
|
|
26
|
-
}
|
|
27
|
-
export interface SelectV2Props extends ReactSelectProps<any, boolean> {
|
|
28
|
-
options: Option[];
|
|
29
|
-
onChange: (value: string | string[], actionMeta: SelectActionMeta) => void;
|
|
30
|
-
mainContainerClassName?: string;
|
|
31
|
-
variant?: SELECT_VARIANT;
|
|
32
|
-
errorMsg?: string;
|
|
33
|
-
customStyles?: StylesConfig<any>;
|
|
34
|
-
}
|
|
35
|
-
export interface CreatableSelectV2Props extends SelectV2Props {
|
|
36
|
-
onCreateOption: (value: string) => Promise<void> | void;
|
|
37
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Selectors';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Skeleton';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type SVGProps = {
|
|
2
|
-
path: string;
|
|
3
|
-
width?: number;
|
|
4
|
-
height?: number;
|
|
5
|
-
spanClassName?: string;
|
|
6
|
-
svgClassName?: string;
|
|
7
|
-
customSvgStyles?: React.CSSProperties;
|
|
8
|
-
customSpanStyles?: React.CSSProperties;
|
|
9
|
-
handleClick?: (e: any) => void;
|
|
10
|
-
};
|
|
11
|
-
export declare function SVG({ path, width, height, spanClassName, svgClassName, customSpanStyles, customSvgStyles, handleClick, }: SVGProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SVG';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type SwitchProps = {
|
|
2
|
-
isToggled: boolean | any;
|
|
3
|
-
handleToggleChange: (val: boolean) => void;
|
|
4
|
-
name: string;
|
|
5
|
-
subText?: string | React.ReactNode;
|
|
6
|
-
switchClassName?: string;
|
|
7
|
-
size?: 'sm' | 'md' | 'lg';
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
title?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare function Switch({ isToggled, handleToggleChange, name, switchClassName, subText, size, disabled, title, }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Switch } from './Switch';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Switch } from './Switch';
|
|
3
|
-
|
|
4
|
-
declare const meta: Meta<typeof Switch>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof Switch>;
|
|
7
|
-
export declare const Checked: Story;
|
|
8
|
-
export declare const Initial: Story;
|
|
9
|
-
export declare const CheckedDisabled: Story;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { FilterConfig } from './types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export interface TableProps {
|
|
4
|
-
data: any;
|
|
5
|
-
columns: any;
|
|
6
|
-
/**
|
|
7
|
-
* column for actions dropdown in the last row
|
|
8
|
-
*/
|
|
9
|
-
actionsConfig?: {
|
|
10
|
-
isDropdownActions?: boolean;
|
|
11
|
-
menuItems?: {
|
|
12
|
-
label: string;
|
|
13
|
-
iconSrc?: string;
|
|
14
|
-
onClick: any;
|
|
15
|
-
filterFn?: any;
|
|
16
|
-
disabled?: boolean | ((data: any) => boolean);
|
|
17
|
-
}[];
|
|
18
|
-
key?: string;
|
|
19
|
-
customComp?: (data: any) => React.ReactNode | JSX.Element;
|
|
20
|
-
};
|
|
21
|
-
loaderConfig: {
|
|
22
|
-
text?: string;
|
|
23
|
-
isFetching: boolean;
|
|
24
|
-
isError: boolean;
|
|
25
|
-
errMsg?: string;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* table search
|
|
29
|
-
*/
|
|
30
|
-
searchConfig?: {
|
|
31
|
-
placeholder?: string;
|
|
32
|
-
search: string;
|
|
33
|
-
setSearch: any;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* table sorting
|
|
37
|
-
* @param sortBy used for
|
|
38
|
-
*/
|
|
39
|
-
sortConfig?: {
|
|
40
|
-
sortBy: string;
|
|
41
|
-
setSortBy: any;
|
|
42
|
-
sortOrd: 'asc' | 'desc' | '';
|
|
43
|
-
setSortOrd: any;
|
|
44
|
-
sortMap: Record<string, string>;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* table filtering, data comes from an api
|
|
48
|
-
*/
|
|
49
|
-
filterConfig?: FilterConfig;
|
|
50
|
-
totalText?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Row checkbox or radio selection config
|
|
53
|
-
*
|
|
54
|
-
* @param rowIdKey: needed to keep the selected rows when search is being used server side https://tanstack.com/table/v8/docs/guide/row-selection#useful-row-ids
|
|
55
|
-
*/
|
|
56
|
-
rowSelectionConfig?: {
|
|
57
|
-
isCheckbox?: boolean;
|
|
58
|
-
isRadio?: boolean;
|
|
59
|
-
actions?: {
|
|
60
|
-
icon: string;
|
|
61
|
-
text: string;
|
|
62
|
-
onClick: any;
|
|
63
|
-
}[];
|
|
64
|
-
setSelectedRows?: React.Dispatch<React.SetStateAction<any>>;
|
|
65
|
-
iconSrc?: string;
|
|
66
|
-
clearOnSearch?: boolean;
|
|
67
|
-
rowIdKey?: string;
|
|
68
|
-
rowSelection?: {};
|
|
69
|
-
setRowSelection?: React.Dispatch<React.SetStateAction<{}>>;
|
|
70
|
-
};
|
|
71
|
-
selectorConfig?: {
|
|
72
|
-
selectors: {
|
|
73
|
-
name: string;
|
|
74
|
-
onClick: any;
|
|
75
|
-
}[];
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* @deprecated use infiniteScrollConfig
|
|
79
|
-
*/
|
|
80
|
-
paginationConfig?: {
|
|
81
|
-
metaData: {
|
|
82
|
-
total_items: number;
|
|
83
|
-
items_on_page: number;
|
|
84
|
-
page_no: number;
|
|
85
|
-
};
|
|
86
|
-
loader: React.ReactNode;
|
|
87
|
-
fetchNextPage: () => void;
|
|
88
|
-
height?: string;
|
|
89
|
-
scrollThreshold?: string | number;
|
|
90
|
-
scrollableTarget?: string;
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* Used for infinite scroll, all the properties comes from useInfiniteQuery
|
|
94
|
-
*/
|
|
95
|
-
infiniteScrollConfig?: {
|
|
96
|
-
fetchNextPage: () => void;
|
|
97
|
-
isFetchingNextPage: boolean;
|
|
98
|
-
};
|
|
99
|
-
emptyStateConfig?: {
|
|
100
|
-
icon: string;
|
|
101
|
-
isCustom?: {
|
|
102
|
-
value: boolean;
|
|
103
|
-
component: React.ReactNode;
|
|
104
|
-
};
|
|
105
|
-
title: string;
|
|
106
|
-
desc: string;
|
|
107
|
-
btnText: string;
|
|
108
|
-
onClick: any;
|
|
109
|
-
columns: number;
|
|
110
|
-
emptySearchTitle?: string;
|
|
111
|
-
};
|
|
112
|
-
headerText?: string;
|
|
113
|
-
}
|
|
114
|
-
export declare function Table({ data, loaderConfig, columns, filterConfig, sortConfig, rowSelectionConfig, actionsConfig, searchConfig, totalText, selectorConfig, paginationConfig, emptyStateConfig, headerText, infiniteScrollConfig, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Table';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { InternalTableFilters } from './types';
|
|
2
|
-
|
|
3
|
-
export interface TableStore {
|
|
4
|
-
filters: InternalTableFilters[];
|
|
5
|
-
setDefaultFilters: (filters: InternalTableFilters[]) => void;
|
|
6
|
-
addFilters: (filterKey: string, value: string, filterDispatch: any) => void;
|
|
7
|
-
removeFilters: (filterKey: string, value: string, filterDispatch: any) => void;
|
|
8
|
-
resetFilters: (filterKey: string, filterDispatch: any) => void;
|
|
9
|
-
resetAllFilters: (filterReset?: any) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const useTableStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<TableStore>, "setState"> & {
|
|
12
|
-
setState<A extends string | {
|
|
13
|
-
type: string;
|
|
14
|
-
}>(partial: TableStore | Partial<TableStore> | ((state: TableStore) => TableStore | Partial<TableStore>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
15
|
-
}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TableProps } from '../Table';
|
|
2
|
-
|
|
3
|
-
type TableActionsProps = {
|
|
4
|
-
actionsConfig: TableProps['actionsConfig'];
|
|
5
|
-
data: any;
|
|
6
|
-
};
|
|
7
|
-
export default function TableActions({ actionsConfig, data }: TableActionsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TableActions';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Row } from '@tanstack/react-table';
|
|
2
|
-
/**
|
|
3
|
-
* @author Soham Sarkar <soham@hybr1d.io>
|
|
4
|
-
*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
export declare function TableCheckbox({ indeterminate, row, isHeader, ...rest }: {
|
|
7
|
-
indeterminate: boolean;
|
|
8
|
-
row: Row<unknown>;
|
|
9
|
-
setSelectedRows?: any;
|
|
10
|
-
isHeader?: boolean;
|
|
11
|
-
} & React.HTMLProps<HTMLInputElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Row } from '@tanstack/react-table';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export declare function TableRadio({ indeterminate, row, ...rest }: {
|
|
4
|
-
indeterminate: boolean;
|
|
5
|
-
row: Row<unknown>;
|
|
6
|
-
setSelectedRows?: any;
|
|
7
|
-
} & React.HTMLProps<HTMLInputElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TableEmpty';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TableStore } from '../store';
|
|
2
|
-
|
|
3
|
-
export default function FilterCheckbox({ label, value, addFilters, removeFilters, checked, filterKey, filterDispatch, countryCode, customName, }: {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
checked: boolean;
|
|
7
|
-
filterKey: string;
|
|
8
|
-
addFilters: TableStore['addFilters'];
|
|
9
|
-
removeFilters: TableStore['removeFilters'];
|
|
10
|
-
filterDispatch: (value: any) => void;
|
|
11
|
-
countryCode?: string;
|
|
12
|
-
customName?: string;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FilterOptions, InternalTableFilters } from '../types';
|
|
2
|
-
|
|
3
|
-
type FilterTooltipProps = {
|
|
4
|
-
filter: FilterOptions;
|
|
5
|
-
tableFilter: InternalTableFilters;
|
|
6
|
-
selectedFilters: number;
|
|
7
|
-
};
|
|
8
|
-
export default function FilterTooltip({ filter, tableFilter, selectedFilters }: FilterTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TableStore } from '../store';
|
|
2
|
-
import { FilterOptions, InternalTableFilters } from '../types';
|
|
3
|
-
|
|
4
|
-
interface TableFilterProps {
|
|
5
|
-
filter: FilterOptions;
|
|
6
|
-
tableFilters: TableStore['filters'];
|
|
7
|
-
tableFilter: InternalTableFilters;
|
|
8
|
-
addFilters: TableStore['addFilters'];
|
|
9
|
-
removeFilters: TableStore['removeFilters'];
|
|
10
|
-
resetFilters: (filterKey: string, filterDispatch: any) => void;
|
|
11
|
-
filterDispatch: (value: any) => void;
|
|
12
|
-
}
|
|
13
|
-
export default function TableFilter({ filter, tableFilters, tableFilter, addFilters, removeFilters, resetFilters, filterDispatch, }: TableFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TableFilters';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TableLoader';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TableProps } from '../Table';
|
|
2
|
-
|
|
3
|
-
interface TableSelectedActionsProps {
|
|
4
|
-
rowSelectionConfig: TableProps['rowSelectionConfig'];
|
|
5
|
-
rowSelection: {};
|
|
6
|
-
}
|
|
7
|
-
export default function TableSelectedActions({ rowSelectionConfig, rowSelection, }: TableSelectedActionsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TableSelectedActions';
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export type FilterOptions = {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
key: string;
|
|
5
|
-
options: {
|
|
6
|
-
name: string;
|
|
7
|
-
value: string;
|
|
8
|
-
country_code?: string;
|
|
9
|
-
customName?: string;
|
|
10
|
-
}[];
|
|
11
|
-
config?: {
|
|
12
|
-
hideSearch?: boolean;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @param filters comes from an api, must follow the type definition strictly
|
|
18
|
-
* @param isLoading is fetching from api
|
|
19
|
-
* @param isError api threw error
|
|
20
|
-
* @param filterDispatch must be of @type (value) => dispatch({type,payload})
|
|
21
|
-
* this is used to sync the internal table filter state with the external zustand store of the consumer
|
|
22
|
-
* @param filterReset same type as above but is used to reset all the filters
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
export type FilterConfig = {
|
|
27
|
-
filters: FilterOptions[];
|
|
28
|
-
isLoading: boolean;
|
|
29
|
-
isError: boolean;
|
|
30
|
-
filterDispatch: (value: any) => void;
|
|
31
|
-
filterReset: (value: any) => void;
|
|
32
|
-
};
|
|
33
|
-
export type InternalTableFilters = {
|
|
34
|
-
key: string;
|
|
35
|
-
values: string[];
|
|
36
|
-
};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { FilterConfig, TableCustomColumns } from './types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export interface TableV3Props {
|
|
4
|
-
data: any;
|
|
5
|
-
columns: any;
|
|
6
|
-
/**
|
|
7
|
-
* column for actions dropdown in the last row
|
|
8
|
-
*/
|
|
9
|
-
actionsConfig?: {
|
|
10
|
-
isDropdownActions?: boolean;
|
|
11
|
-
menuItems?: {
|
|
12
|
-
label: string;
|
|
13
|
-
iconSrc?: string;
|
|
14
|
-
onClick: any;
|
|
15
|
-
filterFn?: any;
|
|
16
|
-
disabled?: boolean | ((data: any) => boolean);
|
|
17
|
-
}[];
|
|
18
|
-
};
|
|
19
|
-
loaderConfig: {
|
|
20
|
-
text?: string;
|
|
21
|
-
isFetching: boolean;
|
|
22
|
-
isError: boolean;
|
|
23
|
-
errMsg?: string;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* table search
|
|
27
|
-
*/
|
|
28
|
-
searchConfig?: {
|
|
29
|
-
placeholder?: string;
|
|
30
|
-
search: string;
|
|
31
|
-
setSearch: any;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* table sorting
|
|
35
|
-
* @param sortBy used for
|
|
36
|
-
*/
|
|
37
|
-
sortConfig?: {
|
|
38
|
-
sortBy: string;
|
|
39
|
-
setSortBy: any;
|
|
40
|
-
sortOrd: 'asc' | 'desc' | '';
|
|
41
|
-
setSortOrd: any;
|
|
42
|
-
sortMap: Record<string, string>;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* table filtering, data comes from an api
|
|
46
|
-
*/
|
|
47
|
-
filterConfig?: FilterConfig;
|
|
48
|
-
totalText?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Row checkbox or radio selection config
|
|
51
|
-
*
|
|
52
|
-
* @param rowIdKey: needed to keep the selected rows when search is being used server side https://tanstack.com/table/v8/docs/guide/row-selection#useful-row-ids
|
|
53
|
-
* @param entityName: singular format of entity name
|
|
54
|
-
*/
|
|
55
|
-
rowSelectionConfig?: {
|
|
56
|
-
isCheckbox?: boolean;
|
|
57
|
-
isRadio?: boolean;
|
|
58
|
-
entityName: string;
|
|
59
|
-
actions?: {
|
|
60
|
-
icon: string;
|
|
61
|
-
text: string;
|
|
62
|
-
onClick: any;
|
|
63
|
-
}[];
|
|
64
|
-
setSelectedRows?: React.Dispatch<React.SetStateAction<any>>;
|
|
65
|
-
iconSrc?: string;
|
|
66
|
-
clearOnSearch?: boolean;
|
|
67
|
-
rowIdKey: string;
|
|
68
|
-
rowSelection?: {};
|
|
69
|
-
setRowSelection?: React.Dispatch<React.SetStateAction<{}>>;
|
|
70
|
-
};
|
|
71
|
-
paginationConfig?: {
|
|
72
|
-
metaData?: {
|
|
73
|
-
total_items: number;
|
|
74
|
-
items_on_page: number;
|
|
75
|
-
page_no: number;
|
|
76
|
-
};
|
|
77
|
-
page: number;
|
|
78
|
-
setPage: (page: number) => void;
|
|
79
|
-
limit: number;
|
|
80
|
-
setLimit: (limit: number) => void;
|
|
81
|
-
};
|
|
82
|
-
emptyStateConfig?: {
|
|
83
|
-
icon: string;
|
|
84
|
-
isCustom?: {
|
|
85
|
-
value: boolean;
|
|
86
|
-
component: React.ReactNode;
|
|
87
|
-
};
|
|
88
|
-
title: string;
|
|
89
|
-
desc: string;
|
|
90
|
-
btnText: string;
|
|
91
|
-
onClick: any;
|
|
92
|
-
columns: number;
|
|
93
|
-
emptySearchTitle?: string;
|
|
94
|
-
};
|
|
95
|
-
headerText?: string;
|
|
96
|
-
tableStyleConfig?: {
|
|
97
|
-
maxHeight?: string;
|
|
98
|
-
stickyIds?: string[];
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* custom columns
|
|
102
|
-
*/
|
|
103
|
-
customColumnConfig?: {
|
|
104
|
-
description?: string;
|
|
105
|
-
columns?: TableCustomColumns;
|
|
106
|
-
isPending: boolean;
|
|
107
|
-
isError: boolean;
|
|
108
|
-
handleSaveColumns: (columns: any) => Promise<void>;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* export config (csv)
|
|
112
|
-
*/
|
|
113
|
-
exportConfig?: {
|
|
114
|
-
isPending: boolean;
|
|
115
|
-
isError: boolean;
|
|
116
|
-
handleExport: any;
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
export declare function TableV3({ data, loaderConfig, columns, filterConfig, sortConfig, rowSelectionConfig, actionsConfig, searchConfig, totalText, paginationConfig, emptyStateConfig, headerText, tableStyleConfig, customColumnConfig, exportConfig, }: TableV3Props): import("react/jsx-runtime").JSX.Element;
|