gantri-components 2.213.0 → 2.214.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.
@@ -14,6 +14,8 @@ export interface LabelProps {
14
14
  txValues?: Record<string, unknown>;
15
15
  /** Typography variant. Defaults to theme default. */
16
16
  variant?: ResolutionAwareProp<TextVariant>;
17
- /** Whether the field is required. Hides "(Optional)" when true. */
17
+ /** Whether the field is required. */
18
18
  required?: boolean;
19
+ /** Whether to show the "(Optional)" suffix. Defaults to false. */
20
+ showOptional?: boolean;
19
21
  }
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledPill: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
- $selected?: boolean | undefined;
4
- }>> & string;
2
+ interface StyledPillProps {
3
+ $selected?: boolean;
4
+ color?: string;
5
+ }
6
+ export declare const StyledPill: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledPillProps>> & string;
7
+ export {};