gantri-components 2.259.0 → 2.261.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.styles.d.ts +3 -1
- package/dist/components/color-picker/color-picker.types.d.ts +6 -0
- package/dist/components/color-picker/components/color-picker-item/color-picker-item.styles.d.ts +1 -0
- package/dist/components/color-picker/components/color-picker-item/color-picker-item.types.d.ts +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledColorPicker: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const StyledColorList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
3
|
+
export declare const StyledColorList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$columns?: number | undefined;
|
|
5
|
+
}>> & string;
|
|
@@ -4,6 +4,12 @@ import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
|
4
4
|
export type ColorPickerVariant = 'x-large' | 'large' | 'small';
|
|
5
5
|
export type ColorPickerVariantProp = ResolutionAwareProp<ColorPickerVariant>;
|
|
6
6
|
export interface ColorPickerProps extends Partial<ColorPickerDefaultProps> {
|
|
7
|
+
/**
|
|
8
|
+
* When set, render swatches in a CSS grid with this many columns; each swatch
|
|
9
|
+
* fills its column width. When omitted, swatches flow/wrap at their natural
|
|
10
|
+
* size (default).
|
|
11
|
+
*/
|
|
12
|
+
columns?: number;
|
|
7
13
|
labelText?: string;
|
|
8
14
|
labelTx?: string;
|
|
9
15
|
labelTxValues?: Record<string, unknown>;
|
package/dist/components/color-picker/components/color-picker-item/color-picker-item.types.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export interface ColorPickerItemProps extends Partial<ColorPickerItemDefaultProp
|
|
|
7
7
|
color: ColorDetails;
|
|
8
8
|
/** Not selectable. Collapses to a small centered dot when `collapseDisabled`. */
|
|
9
9
|
disabled?: boolean;
|
|
10
|
+
/** When true, the swatch fills its container width (for grid layouts). */
|
|
11
|
+
fillWidth?: boolean;
|
|
10
12
|
onColorClick?: (color: ColorDetails) => void;
|
|
11
13
|
readOnly?: boolean;
|
|
12
14
|
/** Overrides `variant`. */
|