@hybr1d-tech/charizard 1.1.25 → 1.1.27

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/index.d.ts CHANGED
@@ -52,11 +52,11 @@ declare interface AccordionProps {
52
52
  export declare const ActionsDropdown: React_2.ForwardRefExoticComponent<ActionsDropdownProps & React_2.RefAttributes<unknown>>;
53
53
 
54
54
  export declare interface ActionsDropdownProps {
55
- variant?: BUTTON_V2_VARIANT;
55
+ variant?: BUTTON_VARIANT;
56
56
  disabled?: boolean;
57
- menuItems: MenuItemV2[];
57
+ menuItems: MenuItem[];
58
58
  customData?: any;
59
- size?: BUTTON_V2_SIZE;
59
+ size?: BUTTON_SIZE;
60
60
  positionerProps?: PositioningOptions;
61
61
  isTable?: boolean;
62
62
  children?: React_2.ReactNode;
@@ -154,10 +154,10 @@ declare interface BaseBadgeProps {
154
154
  }
155
155
 
156
156
  declare interface BaseButtonProps {
157
- variant?: BUTTON_V2_VARIANT;
157
+ variant?: BUTTON_VARIANT;
158
158
  disabled?: boolean;
159
159
  onClick?: React_2.MouseEventHandler<HTMLButtonElement>;
160
- size?: BUTTON_V2_SIZE | 'xs' | 'sm' | 'md' | 'adapt';
160
+ size?: BUTTON_SIZE;
161
161
  customStyles?: React_2.CSSProperties;
162
162
  btnType?: 'button' | 'reset' | 'submit';
163
163
  }
@@ -198,19 +198,19 @@ export declare const buildFilterQuery: (queryFilters: Record<string, any>, exclu
198
198
 
199
199
  export declare const buildTableQuery: (query: TBaseQuery) => Record<string, any>;
200
200
 
201
- export declare function Button({ children, variant, disabled, onClick, type, size, customStyles, }: ButtonProps): JSX_2.Element;
201
+ export declare function Button({ children, variant, disabled, onClick, type, size, customStyles, icon, btnType, }: ButtonProps): JSX_2.Element;
202
202
 
203
203
  export declare namespace Button {
204
- var MenuButton: ({ children, variant, disabled, menuItems, onClick, isCustomTrigger, isSingleBtnTrigger, customData, size, actionsDropdownOptions, positionerProps, isTable, }: MenuButtonProps) => JSX_2.Element;
205
- var ActionsDropdown: typeof MenuActionsDropdown;
204
+ var GroupAction: React_2.ForwardRefExoticComponent<GroupActionProps & React_2.RefAttributes<unknown>>;
205
+ var ActionsDropdown: React_2.ForwardRefExoticComponent<ActionsDropdownProps & React_2.RefAttributes<unknown>>;
206
206
  }
207
207
 
208
- export declare enum BUTTON_V2_SIZE {
208
+ export declare enum BUTTON_SIZE {
209
209
  SMALL = "small",
210
210
  DEFAULT = "default"
211
211
  }
212
212
 
213
- export declare enum BUTTON_V2_TYPE {
213
+ export declare enum BUTTON_TYPE {
214
214
  BASIC = "basic",
215
215
  ICON_LEFT = "iconLeft",
216
216
  ICON_RIGHT = "iconRight",
@@ -219,7 +219,7 @@ export declare enum BUTTON_V2_TYPE {
219
219
  RESET = "reset"
220
220
  }
221
221
 
222
- export declare enum BUTTON_V2_VARIANT {
222
+ export declare enum BUTTON_VARIANT {
223
223
  PRIMARY = "primary",
224
224
  SECONDARY = "secondary",
225
225
  TERTIARY = "tertiary",
@@ -229,33 +229,7 @@ export declare enum BUTTON_V2_VARIANT {
229
229
  MINIMAL = "tertiary"
230
230
  }
231
231
 
232
- export declare enum BUTTON_VARIANT {
233
- PRIMARY = "primary",
234
- SECONDARY = "secondary",
235
- GHOST = "ghost",
236
- DANGER = "danger",
237
- LINK = "link",
238
- MINIMAL = "minimal"
239
- }
240
-
241
- export declare type ButtonProps = {
242
- children: React_2.ReactNode;
243
- variant?: BUTTON_VARIANT;
244
- disabled?: boolean;
245
- onClick?: React_2.MouseEventHandler<HTMLButtonElement>;
246
- type?: 'button' | 'submit' | 'reset';
247
- size?: 'xs' | 'sm' | 'md' | 'adapt';
248
- customStyles?: React_2.CSSProperties;
249
- };
250
-
251
- export declare function ButtonV2({ children, variant, disabled, onClick, type, size, customStyles, icon, btnType, }: ButtonV2Props): JSX_2.Element;
252
-
253
- export declare namespace ButtonV2 {
254
- var GroupAction: React_2.ForwardRefExoticComponent<GroupActionProps & React_2.RefAttributes<unknown>>;
255
- var ActionsDropdown: React_2.ForwardRefExoticComponent<ActionsDropdownProps & React_2.RefAttributes<unknown>>;
256
- }
257
-
258
- export declare type ButtonV2Props = IconOnlyButtonV2TypeProps | IconButtonV2TypeProps | OtherButtonV2TypeProps;
232
+ export declare type ButtonProps = IconOnlyButtonTypeProps | IconButtonTypeProps | OtherButtonTypeProps;
259
233
 
260
234
  export declare function Checkbox({ id, name, children, onChange, customClasses, customStyles, errorMsg, checked, indeterminate, disabled, }: CheckboxProps): JSX_2.Element;
261
235
 
@@ -553,7 +527,7 @@ declare interface DateRangePickerProps extends PropsRange {
553
527
  content?: string;
554
528
  dateIcon?: string;
555
529
  };
556
- size?: BUTTON_V2_SIZE;
530
+ size?: BUTTON_SIZE;
557
531
  placeholder?: string;
558
532
  trigger?: React_2.ReactNode;
559
533
  }
@@ -574,7 +548,7 @@ export declare const DEFAULT_PAGE = 0;
574
548
  */
575
549
  export declare const DEFAULT_SELECTED_TIME: SelectedTime;
576
550
 
577
- export declare type DialogFooterButtons = Array<Omit<ButtonV2Props, 'children'> & {
551
+ export declare type DialogFooterButtons = Array<Omit<ButtonProps, 'children'> & {
578
552
  btnText: string;
579
553
  isLoading?: boolean;
580
554
  loadingText?: string;
@@ -911,11 +885,11 @@ declare type FilterOptions_2 = {
911
885
  };
912
886
 
913
887
  declare type FooterButtons = Array<{
914
- variant?: BUTTON_VARIANT | BUTTON_V2_VARIANT;
888
+ variant?: BUTTON_VARIANT;
915
889
  onClick: () => void;
916
890
  btnText: string;
917
- btnType?: BUTTON_V2_TYPE | 'submit';
918
- btnSize?: BUTTON_V2_SIZE;
891
+ btnType?: BUTTON_TYPE | 'submit';
892
+ btnSize?: BUTTON_SIZE;
919
893
  disabled?: boolean;
920
894
  isLoading?: boolean;
921
895
  loadingText?: string;
@@ -961,11 +935,11 @@ export declare const getUsername: (user?: any) => any;
961
935
 
962
936
  export declare interface GroupActionProps {
963
937
  children: React_2.ReactNode;
964
- variant?: BUTTON_V2_VARIANT;
938
+ variant?: BUTTON_VARIANT;
965
939
  disabled?: boolean;
966
- menuItems: MenuItemV2[];
940
+ menuItems: MenuItem[];
967
941
  customData?: any;
968
- size?: BUTTON_V2_SIZE;
942
+ size?: BUTTON_SIZE;
969
943
  positionerProps?: PositioningOptions;
970
944
  isTable?: boolean;
971
945
  customStyles?: {
@@ -998,14 +972,14 @@ declare interface IconBadgeProps extends BaseBadgeProps {
998
972
  customSvgStyles?: React_2.CSSProperties;
999
973
  }
1000
974
 
1001
- declare interface IconButtonV2TypeProps extends BaseButtonProps {
1002
- type: BUTTON_V2_TYPE.ICON_LEFT | BUTTON_V2_TYPE.ICON_RIGHT;
975
+ declare interface IconButtonTypeProps extends BaseButtonProps {
976
+ type: BUTTON_TYPE.ICON_LEFT | BUTTON_TYPE.ICON_RIGHT;
1003
977
  icon: React_2.ReactNode;
1004
978
  children: React_2.ReactNode;
1005
979
  }
1006
980
 
1007
- declare interface IconOnlyButtonV2TypeProps extends BaseButtonProps {
1008
- type: BUTTON_V2_TYPE.ICON_ONLY;
981
+ declare interface IconOnlyButtonTypeProps extends BaseButtonProps {
982
+ type: BUTTON_TYPE.ICON_ONLY;
1009
983
  icon: React_2.ReactNode;
1010
984
  children?: React_2.ReactNode;
1011
985
  }
@@ -1787,32 +1761,6 @@ export declare type LoaderProps = {
1787
1761
  variant?: LOADER_VARIANT;
1788
1762
  };
1789
1763
 
1790
- declare function MenuActionsDropdown({ menuItems, data, variant, isTable, }: MenuActionsDropdownProps): JSX_2.Element;
1791
-
1792
- export declare type MenuActionsDropdownProps = {
1793
- menuItems: MenuItem[];
1794
- data?: any;
1795
- variant?: 'regular' | 'small';
1796
- isTable?: boolean;
1797
- };
1798
-
1799
- export declare interface MenuButtonProps {
1800
- children: React_2.ReactNode;
1801
- variant?: BUTTON_VARIANT;
1802
- disabled?: boolean;
1803
- menuItems: MenuItem[];
1804
- onClick?: React_2.MouseEventHandler<HTMLButtonElement>;
1805
- isCustomTrigger?: boolean;
1806
- isSingleBtnTrigger?: boolean;
1807
- customData?: any;
1808
- size?: 'sm' | 'md';
1809
- actionsDropdownOptions?: {
1810
- setIsActive: React_2.Dispatch<React_2.SetStateAction<boolean>>;
1811
- };
1812
- positionerProps?: PositioningOptions;
1813
- isTable?: boolean;
1814
- }
1815
-
1816
1764
  declare type MenuConfig = {
1817
1765
  hideSearch?: boolean;
1818
1766
  placeholder?: string;
@@ -1825,14 +1773,6 @@ export declare type MenuItem = {
1825
1773
  onClick: any;
1826
1774
  filterFn?: any;
1827
1775
  disabled?: boolean;
1828
- };
1829
-
1830
- export declare type MenuItemV2 = {
1831
- label: string;
1832
- iconSrc?: string;
1833
- onClick: any;
1834
- filterFn?: any;
1835
- disabled?: boolean;
1836
1776
  customStyles?: React_2.CSSProperties;
1837
1777
  customSvgClassName?: string;
1838
1778
  };
@@ -2060,8 +2000,8 @@ export declare type OptionWithProfileImg = OptionBase & {
2060
2000
  icon?: never;
2061
2001
  };
2062
2002
 
2063
- declare interface OtherButtonV2TypeProps extends BaseButtonProps {
2064
- type?: BUTTON_V2_TYPE.BASIC | BUTTON_V2_TYPE.BUTTON | BUTTON_V2_TYPE.RESET;
2003
+ declare interface OtherButtonTypeProps extends BaseButtonProps {
2004
+ type?: BUTTON_TYPE.BASIC | BUTTON_TYPE.BUTTON | BUTTON_TYPE.RESET;
2065
2005
  icon?: React_2.ReactNode;
2066
2006
  children: React_2.ReactNode;
2067
2007
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybr1d-tech/charizard",
3
- "version": "1.1.25",
3
+ "version": "1.1.27",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"