gantri-components 2.129.0-beta.5 → 2.129.0-beta.6
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/helpers/generate-skus-functions/generate-skus.types.d.ts +2 -2
- package/dist/helpers/generate-skus-functions/get-colors-by-product/__tests__/get-colors-by-product.test.d.ts +1 -0
- package/dist/helpers/generate-skus-functions/get-colors-by-product/get-colors-by-product.d.ts +5 -0
- package/dist/helpers/generate-skus-functions/get-colors-by-product/get-colors-by-product.types.d.ts +10 -0
- package/dist/helpers/generate-skus-functions/get-colors-by-product/index.d.ts +2 -0
- package/dist/helpers/generate-skus-functions/get-sku-selectors/get-sku-selectors.d.ts +2 -2
- package/dist/helpers/generate-skus-functions/index.d.ts +1 -1
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GetColorsByProductProps, ProductColorDetail } from './get-colors-by-product.types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns an array of colors that are available for a particular product ID.
|
|
4
|
+
*/
|
|
5
|
+
export declare const getColorsByProduct: (props: GetColorsByProductProps) => ProductColorDetail[];
|
package/dist/helpers/generate-skus-functions/get-colors-by-product/get-colors-by-product.types.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProductColorCode } from '../../../styles/theme';
|
|
2
|
+
export interface ProductColorDetail {
|
|
3
|
+
code: ProductColorCode;
|
|
4
|
+
hexColor: string;
|
|
5
|
+
shortColorName: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GetColorsByProductProps {
|
|
8
|
+
isPainted: boolean;
|
|
9
|
+
productId: number;
|
|
10
|
+
}
|
|
@@ -8,6 +8,6 @@ export declare const getSkuSelectors: (props: GetSkuSelectorsProps) => {
|
|
|
8
8
|
colorCode: string;
|
|
9
9
|
productId: number;
|
|
10
10
|
sizeCode: string;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
variantCompleteCodes: string[];
|
|
12
|
+
variantPartialCodes: string[][];
|
|
13
13
|
};
|