gantri-components 2.211.0 → 2.212.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.
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { BadgeProps } from './badge.types';
3
- export declare const StyledBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<BadgeProps, "color" | "size" | "minWidth" | "width" | "variant" | "opacity" | "borderColor" | "textColor">>> & string;
3
+ export declare const StyledBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<BadgeProps, "color" | "size" | "minWidth" | "width" | "variant" | "opacity" | "borderColor" | "emphasized" | "semanticColor" | "textColor">>> & string;
@@ -2,14 +2,18 @@ import { CSSProperties, MouseEvent } from 'react';
2
2
  import { PaletteColor } from '../../styles/theme';
3
3
  import { IconType } from '../icon/icon.type';
4
4
  export type BadgeSize = 'large' | 'small' | 'tiny';
5
+ export type BadgeSemanticColor = 'green' | 'blue' | 'yellow' | 'red' | 'transparent';
5
6
  export interface BadgeProps {
6
7
  borderColor?: PaletteColor;
7
8
  className?: string;
8
9
  color?: PaletteColor;
10
+ emphasized?: boolean;
9
11
  icon?: IconType;
10
12
  minWidth?: string;
11
13
  onClick?: (event?: MouseEvent) => void;
12
14
  opacity?: string;
15
+ rightIcon?: IconType;
16
+ semanticColor?: BadgeSemanticColor;
13
17
  size?: BadgeSize;
14
18
  style?: CSSProperties;
15
19
  text?: string;
@@ -37,8 +37,8 @@ export interface OptionSelectorProps {
37
37
  labelTxValues?: Record<string, unknown>;
38
38
  /** Typography variant for the label. */
39
39
  labelVariant?: ResolutionAwareProp<TextVariant>;
40
- /** Optional name for form integration. */
41
- name?: string;
40
+ /** Name for form field binding. */
41
+ name: string;
42
42
  /** Whether the field is required. */
43
43
  required?: boolean;
44
44
  /** Formik integration props - injected by FormikInput. */