gantri-components 2.48.0 → 2.49.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/box/box.types.d.ts +1 -1
- package/dist/components/multi-select-list/multi-select-list.types.d.ts +1 -0
- package/dist/components/search-field/search-field.types.d.ts +2 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/styles/theme.d.ts +6 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ type DeprecatedSize = 's1' | 's2' | 's3' | 's4' | 's5' | 's6';
|
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
export type BoxDimension = DeprecatedSize | '.5x' | 'x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | '10x' | '11x' | '12x' | '16x' | '18x' | '24x' | 'unset' | null | '0' | `${number}px` | `${number}rem` | `${number}vw` | `${number}%` | `calc(${string})`;
|
|
12
|
+
export type BoxDimension = DeprecatedSize | '.5x' | 'x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | '10x' | '11x' | '12x' | '13x' | '14x' | '15x' | '16x' | '17x' | '18x' | '19x' | '20x' | '24x' | 'unset' | null | '0' | `${number}px` | `${number}rem` | `${number}vw` | `${number}%` | `calc(${string})`;
|
|
13
13
|
type AllowedBoxDimension<T> = T extends BoxDimension ? T : never;
|
|
14
14
|
export interface ResolutionAwarePropBase<T> {
|
|
15
15
|
lg?: AllowedBoxDimension<T>;
|
|
@@ -5,6 +5,7 @@ export interface MultiSelectListProps<Item extends Record<any, any>> extends Par
|
|
|
5
5
|
setItems: (newItems: Item[]) => void;
|
|
6
6
|
}
|
|
7
7
|
export interface MultiSelectListDefaultProps<Item extends Record<any, any>> {
|
|
8
|
+
clearButtonText?: string;
|
|
8
9
|
idProperty: keyof Item;
|
|
9
10
|
labelProperty: keyof Item | ((item?: Item) => string);
|
|
10
11
|
}
|
|
@@ -6,6 +6,7 @@ import { BlurChangeEvent, DropdownChangeEvent } from '../dropdown';
|
|
|
6
6
|
export interface SearchFieldProps<T = Record<string, unknown>> extends Omit<DropdownMenuProps<T>, 'items'> {
|
|
7
7
|
borderless?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
+
clearButtonText?: string;
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
dropdownPopupWidth?: Property.Width<string | number>;
|
|
11
12
|
enableSelectedItemsList?: boolean;
|
|
@@ -16,7 +17,6 @@ export interface SearchFieldProps<T = Record<string, unknown>> extends Omit<Drop
|
|
|
16
17
|
/** Can optionally include `disabled: true` to any index to disable that item. */
|
|
17
18
|
items?: T[];
|
|
18
19
|
keyProperty?: (option?: T) => string;
|
|
19
|
-
labelPosition?: 'top' | 'left';
|
|
20
20
|
labelText?: string;
|
|
21
21
|
labelTx?: string;
|
|
22
22
|
/**
|
|
@@ -48,4 +48,5 @@ export interface SearchFieldProps<T = Record<string, unknown>> extends Omit<Drop
|
|
|
48
48
|
selectedItemsList?: (keyof T)[];
|
|
49
49
|
style?: CSSProperties;
|
|
50
50
|
variant?: 'line' | 'filled';
|
|
51
|
+
labelPosition?: 'top' | 'left';
|
|
51
52
|
}
|