gantri-components 2.233.0 → 2.234.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,6 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { Property } from 'csstype';
3
- import { Color } from '../../styles';
3
+ import type { Color } from '../../styles';
4
4
  import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
5
5
  /**
6
6
  * @deprecated Use values from our 8 point grid instead
@@ -1,8 +1,8 @@
1
1
  import { MouseEvent } from 'react';
2
2
  import { Property } from 'csstype';
3
- import { BaseProps } from '../box/box.types';
4
- import { TextVariant } from '../typography';
5
- import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
3
+ import type { BaseProps } from '../box/box.types';
4
+ import type { TextVariant } from '../typography';
5
+ import type { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
6
6
  export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'tertiary' | 'primaryAlert' | 'primaryWarning' | 'primaryContrast' | 'secondaryContrast' | 'ghostContrast';
7
7
  export type ButtonWidth = 'sm' | 'md' | 'lg' | string;
8
8
  /**
@@ -16,6 +16,11 @@ export interface ColorPickerDefaultProps {
16
16
  allowMultipleSelection: boolean;
17
17
  /** List of colors to render. Defaults to Gantri's product colors list. */
18
18
  colors: ColorDetails[];
19
+ /**
20
+ * When `true`, suppresses the per-swatch tooltip showing the color name.
21
+ * Defaults to `true` — opt in by passing `hideTooltips={false}`.
22
+ */
23
+ hideTooltips: boolean;
19
24
  variant: ColorPickerVariant;
20
25
  }
21
26
  export interface ColorDetails {
@@ -905,7 +905,7 @@ export declare const StyledColor: import("styled-components/dist/types").IStyled
905
905
  results?: number | undefined;
906
906
  security?: string | undefined;
907
907
  unselectable?: "off" | "on" | undefined;
908
- inputMode?: "none" | "text" | "search" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
908
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
909
909
  is?: string | undefined;
910
910
  "aria-activedescendant"?: string | undefined;
911
911
  "aria-atomic"?: (boolean | "false" | "true") | undefined;
@@ -52,7 +52,7 @@ export declare const getRowComponentProps: <TData extends RowData<import("../../
52
52
  results?: number | undefined;
53
53
  security?: string | undefined;
54
54
  unselectable?: "off" | "on" | undefined;
55
- inputMode?: "none" | "text" | "search" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
55
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
56
56
  is?: string | undefined;
57
57
  children?: import("react-i18next").ReactI18NextChild | Iterable<import("react-i18next").ReactI18NextChild>;
58
58
  "aria-activedescendant"?: string | undefined;