@hybr1d-tech/charizard 0.7.168 → 0.7.169

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
@@ -145,13 +145,12 @@ export declare enum BADGE_STATUS {
145
145
  HIGHLIGHT = "highlight"
146
146
  }
147
147
 
148
- declare interface BadgeProps {
148
+ declare type BadgeProps = (IconBadgeProps | NonIconBadgeProps) & (SelectableBadgeProps | NonSelectableBadgeProps);
149
+
150
+ declare interface BaseBadgeProps {
149
151
  highlight?: BADGE_HIGHLIGHT;
150
152
  status?: BADGE_STATUS;
151
- selected?: boolean;
152
153
  children: React_2.ReactNode;
153
- icon?: string;
154
- customSvgStyles?: React_2.CSSProperties;
155
154
  }
156
155
 
157
156
  declare interface BaseButtonProps {
@@ -977,6 +976,11 @@ export declare type HexColor = `#${string}`;
977
976
  */
978
977
  export declare const hours: string[];
979
978
 
979
+ declare interface IconBadgeProps extends BaseBadgeProps {
980
+ icon: string;
981
+ customSvgStyles?: React_2.CSSProperties;
982
+ }
983
+
980
984
  declare interface IconButtonV2TypeProps extends BaseButtonProps {
981
985
  type: BUTTON_V2_TYPE.ICON_LEFT | BUTTON_V2_TYPE.ICON_RIGHT;
982
986
  icon: React_2.ReactNode;
@@ -2001,6 +2005,16 @@ declare interface NonDropdownProps extends BaseInputAdornmentProps {
2001
2005
  isLoading?: never;
2002
2006
  }
2003
2007
 
2008
+ declare interface NonIconBadgeProps extends BaseBadgeProps {
2009
+ icon?: never;
2010
+ customSvgStyles?: never;
2011
+ }
2012
+
2013
+ declare interface NonSelectableBadgeProps extends BaseBadgeProps {
2014
+ selected?: false;
2015
+ onClick?: never;
2016
+ }
2017
+
2004
2018
  export declare const numberInputAllowedKeys: string[];
2005
2019
 
2006
2020
  declare type Option_2 = OptionWithProfileImg | OptionWithIcon;
@@ -2434,6 +2448,11 @@ export declare enum SELECT_VARIANT {
2434
2448
  TAGS = "tags"
2435
2449
  }
2436
2450
 
2451
+ declare interface SelectableBadgeProps extends BaseBadgeProps {
2452
+ selected: true;
2453
+ onClick: () => void;
2454
+ }
2455
+
2437
2456
  export declare type SelectActionMeta = ActionMeta<Option_2>;
2438
2457
 
2439
2458
  declare type SelectActionMeta_2 = ActionMeta<{