@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.
Files changed (28) hide show
  1. package/dist/components/checkbox/Checkbox.d.ts +1 -0
  2. package/dist/components/input/InputContainer.d.ts +1 -0
  3. package/dist/components/input/InputElement.d.ts +1 -0
  4. package/dist/components/modal/ModalBody.d.ts +1 -0
  5. package/dist/components/modal/ModalFooter.d.ts +1 -0
  6. package/dist/components/modal/ModalHeader.d.ts +1 -0
  7. package/dist/components/popover/PopoverCloseButton.d.ts +1 -0
  8. package/dist/components/popover/PopoverDescription.d.ts +1 -0
  9. package/dist/components/popover/PopoverTitle.d.ts +1 -0
  10. package/dist/components/popover/PopoverTrigger.d.ts +1 -0
  11. package/dist/components/svg/SVG.d.ts +1 -0
  12. package/dist/components/switch/Switch.d.ts +1 -0
  13. package/dist/components/table-v2/table-custom-cols/CustomColCheckbox.d.ts +8 -0
  14. package/dist/components/table-v2/table-custom-cols/Draggable.d.ts +7 -0
  15. package/dist/components/table-v2/table-custom-cols/Dropable.d.ts +7 -0
  16. package/dist/components/table-v2/table-custom-cols/TableCustomCols.d.ts +22 -0
  17. package/dist/components/table-v2/table-custom-cols/index.d.ts +1 -0
  18. package/dist/components/table-v2/table-custom-cols/sortable/SortableItem.d.ts +8 -0
  19. package/dist/components/table-v2/table-custom-cols/sortable/SortableList.d.ts +17 -0
  20. package/dist/components/table-v2/table-custom-cols/sortable/SortableOverlay.d.ts +5 -0
  21. package/dist/components/table-v2/table-custom-cols/utils.d.ts +15 -0
  22. package/dist/components/table-v2/table-meta-header/TableMetaHeader.d.ts +3 -1
  23. package/dist/components/tooltip/TooltipContent.d.ts +1 -0
  24. package/dist/components/tooltip/TooltipTrigger.d.ts +1 -0
  25. package/dist/hybr1d-ui.js +3468 -3200
  26. package/dist/hybr1d-ui.umd.cjs +14 -14
  27. package/dist/style.css +1 -1
  28. package/package.json +5 -1
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface CheckboxProps {
2
3
  /**
3
4
  * Checkbox id
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Inputs } from './types';
2
3
  interface InputContainerProps {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Inputs } from './types';
2
3
  interface InputDirectionElementProps {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface ModalBodyProps {
2
3
  /**
3
4
  * Modal body children
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BUTTON_VARIANT } from '../button';
2
3
  export type FooterButtons = Array<{
3
4
  variant: BUTTON_VARIANT;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface ModalHeaderProps {
2
3
  /**
3
4
  * Modal header children
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @author Pratik Awaik <pratik@hybr1d.io>
3
3
  */
4
+ /// <reference types="react" />
4
5
  interface PopoverCloseButtonProps {
5
6
  /**
6
7
  * The content of the close button.
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @author Pratik Awaik <pratik@hybr1d.io>
3
3
  */
4
+ /// <reference types="react" />
4
5
  interface PopoverDescriptionProps {
5
6
  /**
6
7
  * The content of the PopoverDescription.
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @author Pratik Awaik <pratik@hybr1d.io>
3
3
  */
4
+ /// <reference types="react" />
4
5
  interface PopoverTitleProps {
5
6
  /**
6
7
  * The content of the PopoverTitle.
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @author Pratik Awaik <pratik@hybr1d.io>
3
3
  */
4
+ /// <reference types="react" />
4
5
  interface PopoverTriggerProps {
5
6
  /**
6
7
  * The content of the PopoverTrigger.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type SVGProps = {
2
3
  path: string;
3
4
  width?: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type SwitchProps = {
2
3
  isToggled: boolean | any;
3
4
  handleToggleChange: (val: boolean) => void;
@@ -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,7 @@
1
+ import * as React from 'react';
2
+ interface DraggableProps {
3
+ children: React.ReactNode;
4
+ id: string;
5
+ }
6
+ export default function Draggable(props: DraggableProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface DroppableProps {
3
+ children: React.ReactNode;
4
+ id: string;
5
+ }
6
+ export default function Droppable(props: DroppableProps): import("react/jsx-runtime").JSX.Element;
7
+ 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,5 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ interface Props {
3
+ }
4
+ export declare function SortableOverlay({ children }: PropsWithChildren<Props>): import("react/jsx-runtime").JSX.Element;
5
+ 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 {};
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @author Pratik Awaik <pratik@hybr1d.io>
3
3
  */
4
+ /// <reference types="react" />
4
5
  interface TooltipContentProps {
5
6
  /**
6
7
  * tooltip content children
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @author Pratik Awaik <pratik@hybr1d.io>
3
3
  */
4
+ /// <reference types="react" />
4
5
  interface TooltipTriggerProps {
5
6
  /**
6
7
  * tooltip trigger