gantri-components 2.134.0-beta.3 → 2.134.0-beta.5
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/dropdown/dropdown.styles.d.ts +0 -5
- package/dist/components/text-field/text-field.types.d.ts +2 -0
- package/dist/helpers/get-folder-structure/helpers/get-products-path/get-products-path.types.d.ts +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
|
-
import { TextFieldSize } from '../text-field';
|
|
4
|
-
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
5
3
|
export declare const StyledOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("../typography").TypographyProps & {
|
|
6
4
|
children?: import("react").ReactNode;
|
|
7
5
|
} & import("react").RefAttributes<unknown>, "ref"> & {
|
|
@@ -13,9 +11,6 @@ export declare const StyledSelect: import("styled-components/dist/types").IStyle
|
|
|
13
11
|
$maxWidth?: Property.Width<string | number> | undefined;
|
|
14
12
|
}>> & string;
|
|
15
13
|
export declare const StyledCustomPlaceholderContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
16
|
-
$hasLeftIcon?: boolean | undefined;
|
|
17
|
-
$hasTopPadding: boolean;
|
|
18
|
-
$size?: ResolutionAwareProp<TextFieldSize> | undefined;
|
|
19
14
|
disabled: boolean | undefined;
|
|
20
15
|
}>> & string;
|
|
21
16
|
export declare const StyledTextField: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../text-field").TextFieldProps, {
|
|
@@ -2,6 +2,7 @@ import { ChangeEvent, CSSProperties, FocusEvent, HTMLInputTypeAttribute, Keyboar
|
|
|
2
2
|
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
3
3
|
import { BoxDimension } from '../box/box.types';
|
|
4
4
|
import { TextVariant } from '../typography';
|
|
5
|
+
import { Maybe } from '../../global';
|
|
5
6
|
export type ErrorMessageType = string | {
|
|
6
7
|
tx: string;
|
|
7
8
|
values?: {
|
|
@@ -60,6 +61,7 @@ export interface TextFieldProps {
|
|
|
60
61
|
[key: string]: string;
|
|
61
62
|
};
|
|
62
63
|
readOnly?: boolean;
|
|
64
|
+
renderPlaceholder?: Maybe<JSX.Element>;
|
|
63
65
|
required?: boolean;
|
|
64
66
|
rightIcon?: ReactElement;
|
|
65
67
|
size?: ResolutionAwareProp<TextFieldSize>;
|
package/dist/helpers/get-folder-structure/helpers/get-products-path/get-products-path.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateVersion } from '../../globals.types';
|
|
2
2
|
import { Environment } from '../../../../global';
|
|
3
|
-
export type ProductsFileType = 'bulb-change-instructions' | 'dimming-photos' | 'downloads' | 'handouts' | '
|
|
3
|
+
export type ProductsFileType = 'bulb-change-instructions' | 'dimming-photos' | 'downloads' | 'handouts' | 'instructions' | 'lifestyle-photos-sku' | 'lifestyle-photos' | 'model' | 'part-files' | 'product-photos' | 'scale-photo' | 'universal-handouts' | 'value-props' | 'videos-sku' | 'videos';
|
|
4
4
|
interface ProductsRootLevel {
|
|
5
5
|
productId: number;
|
|
6
6
|
}
|
|
@@ -17,5 +17,5 @@ interface ProductsArgs<FileType extends ProductsFileType, Identifiers extends Re
|
|
|
17
17
|
fileType: FileType;
|
|
18
18
|
identifiers: Identifiers;
|
|
19
19
|
}
|
|
20
|
-
export type GetProductsArgs<FileType extends ProductsFileType> = FileType extends 'bulb-change-instructions' | 'downloads' | 'handouts' | 'value-props' ? ProductsArgs<FileType, ProductsRootLevel> : FileType extends 'dimming-photos' | 'lifestyle-photos' | 'model' | 'product-photos' | 'scale-photo' | 'videos' ? ProductsArgs<FileType, ProductsSkuLevel> : FileType extends 'instructions' | 'part-files' ? ProductsArgs<FileType, ProductsTemplateLevel> : FileType extends 'universal-handouts' ? ProductsArgs<FileType, Record<string, never>> : never;
|
|
20
|
+
export type GetProductsArgs<FileType extends ProductsFileType> = FileType extends 'bulb-change-instructions' | 'downloads' | 'handouts' | 'lifestyle-photos' | 'value-props' | 'videos' ? ProductsArgs<FileType, ProductsRootLevel> : FileType extends 'dimming-photos' | 'lifestyle-photos-sku' | 'model' | 'product-photos' | 'scale-photo' | 'videos-sku' ? ProductsArgs<FileType, ProductsSkuLevel> : FileType extends 'instructions' | 'part-files' ? ProductsArgs<FileType, ProductsTemplateLevel> : FileType extends 'universal-handouts' ? ProductsArgs<FileType, Record<string, never>> : never;
|
|
21
21
|
export {};
|