gantri-components 2.256.0 → 2.258.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.
- package/dist/components/color-picker/color-picker.types.d.ts +3 -0
- package/dist/components/color-picker/components/color-picker-item/color-picker-item.styles.d.ts +4 -0
- package/dist/components/color-picker/components/color-picker-item/color-picker-item.types.d.ts +2 -0
- package/dist/components/typography/typography.types.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/styles/theme.d.ts +4 -0
- package/package.json +1 -1
|
@@ -41,6 +41,9 @@ export interface ColorPickerDefaultProps {
|
|
|
41
41
|
export interface ColorDetails {
|
|
42
42
|
code: ProductColorCode;
|
|
43
43
|
name: string;
|
|
44
|
+
/** When true, the swatch is not selectable and renders as a small centered
|
|
45
|
+
* dot — used to show palette colors the product is not available in. */
|
|
46
|
+
disabled?: boolean;
|
|
44
47
|
}
|
|
45
48
|
export interface ColorPickerChangeEvent extends Pick<ChangeEvent<HTMLInputElement>, Exclude<keyof ChangeEvent<HTMLInputElement>, 'target'>> {
|
|
46
49
|
target: {
|
package/dist/components/color-picker/components/color-picker-item/color-picker-item.styles.d.ts
CHANGED
|
@@ -4,12 +4,16 @@ import { CSSProperties } from 'styled-components';
|
|
|
4
4
|
import { ColorPickerVariantProp } from '../../color-picker.types';
|
|
5
5
|
import { ProductColorCode } from '../../../../styles/theme';
|
|
6
6
|
interface StyledColorOutlineProps {
|
|
7
|
+
$disabled?: boolean;
|
|
7
8
|
$isClickable: boolean;
|
|
8
9
|
$selected?: boolean;
|
|
9
10
|
$size?: CSSProperties['width'];
|
|
10
11
|
$variant?: ColorPickerVariantProp;
|
|
11
12
|
}
|
|
12
13
|
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;
|
|
14
|
+
export declare const StyledDisabledDot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
15
|
+
color: ProductColorCode;
|
|
16
|
+
}>> & string;
|
|
13
17
|
export declare const StyledColor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react-spring").AnimatedProps<{
|
|
14
18
|
hidden?: boolean | undefined;
|
|
15
19
|
color?: string | undefined;
|
package/dist/components/color-picker/components/color-picker-item/color-picker-item.types.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { ColorDetails, ColorPickerVariantProp } from '../../color-picker.types';
|
|
|
3
3
|
export interface ColorPickerItemProps extends Partial<ColorPickerItemDefaultProps> {
|
|
4
4
|
active?: boolean;
|
|
5
5
|
color: ColorDetails;
|
|
6
|
+
/** Not selectable; rendered as a small centered dot. */
|
|
7
|
+
disabled?: boolean;
|
|
6
8
|
onColorClick?: (color: ColorDetails) => void;
|
|
7
9
|
readOnly?: boolean;
|
|
8
10
|
/** Overrides `variant`. */
|
|
@@ -4,7 +4,7 @@ import { AriaAttributes, CSSProperties, ReactElement } from 'react';
|
|
|
4
4
|
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
5
5
|
import { ElementSpacingProps } from '../box/box.types';
|
|
6
6
|
export type TypographyColor = keyof DefaultTheme['colors']['typography'];
|
|
7
|
-
export type TextVariant = 'p0' | 'p1' | 'p2' | 'p3' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'hero' | 'mh1' | 'mh2' | 'mh3' | 'mh4' | 'mh5' | 'mh6' | 'mp1' | 'mp2' | 'mp3' | 'xl' | string;
|
|
7
|
+
export type TextVariant = 'p0' | 'p1' | 'p2' | 'p3' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'hero' | 'mh1' | 'mh2' | 'mh3' | 'mh4' | 'mh5' | 'mh6' | 'mp1' | 'mp2' | 'mp3' | 'xl' | 'l' | 'm' | 's' | 'xs' | string;
|
|
8
8
|
export type TextStyle = 'regular' | 'bold';
|
|
9
9
|
export interface TypographyProps extends Partial<TypographyDefaultProps>, AriaAttributes, ElementSpacingProps {
|
|
10
10
|
align?: ResolutionAwareProp<string>;
|