gantri-components 2.232.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 {
@@ -3,12 +3,13 @@
3
3
  import { CSSProperties } from 'styled-components';
4
4
  import { ColorPickerVariant } from '../../color-picker.types';
5
5
  import { ProductColorCode } from '../../../../styles/theme';
6
- export declare const StyledColorOutline: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
6
+ interface StyledColorOutlineProps {
7
7
  $isClickable: boolean;
8
- $selected?: boolean | undefined;
8
+ $selected?: boolean;
9
9
  $size?: CSSProperties['width'];
10
- $variant?: ColorPickerVariant | undefined;
11
- }>> & string;
10
+ $variant?: ColorPickerVariant;
11
+ }
12
+ export declare const StyledColorOutline: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledColorOutlineProps>> & string;
12
13
  export declare const StyledColor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react-spring").AnimatedProps<{
13
14
  key?: import("react").Key | null | undefined;
14
15
  hidden?: boolean | undefined;
@@ -904,7 +905,7 @@ export declare const StyledColor: import("styled-components/dist/types").IStyled
904
905
  results?: number | undefined;
905
906
  security?: string | undefined;
906
907
  unselectable?: "off" | "on" | undefined;
907
- inputMode?: "none" | "text" | "search" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
908
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
908
909
  is?: string | undefined;
909
910
  "aria-activedescendant"?: string | undefined;
910
911
  "aria-atomic"?: (boolean | "false" | "true") | undefined;
@@ -1130,3 +1131,4 @@ export declare const StyledColor: import("styled-components/dist/types").IStyled
1130
1131
  }, {
1131
1132
  color: ProductColorCode;
1132
1133
  }>> & string & Omit<import("react-spring").AnimatedComponent<"span">, keyof import("react").Component<any, {}, any>>;
1134
+ export {};
@@ -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;