gantri-components 2.129.0-beta.2 → 2.129.0-beta.4
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/tooltip/tooltip.types.d.ts +2 -0
- package/dist/helpers/generate-skus-functions/generate-skus-for-product-id/generate-skus-for-product-id.d.ts +3 -1
- package/dist/helpers/generate-skus-functions/generate-skus-for-product-id/generate-skus-for-product-id.types.d.ts +1 -0
- 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
|
@@ -11,8 +11,10 @@ export type TooltipProps = Partial<TooltipDefaultProps> & Pick<OverlayProps, 'on
|
|
|
11
11
|
/** Milliseconds to delay the unhover behavior. */
|
|
12
12
|
closeDelay?: number;
|
|
13
13
|
description?: string;
|
|
14
|
+
descriptionHtmlText?: string;
|
|
14
15
|
descriptionTx?: string;
|
|
15
16
|
title?: string;
|
|
17
|
+
titleHtmlText?: string;
|
|
16
18
|
titleTx?: string;
|
|
17
19
|
};
|
|
18
20
|
export type TooltipDefaultProps = Required<Pick<OverlayProps, 'position' | 'triggerEvent'>> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GenerateSkusForProductIdProps } from './generate-skus-for-product-id.types';
|
|
2
2
|
/**
|
|
3
|
-
* Provide all of a product's options (available colors are automatically configured based on product ID) and get all possible skus back.
|
|
3
|
+
* Provide all of a product's options (if `isPainted` is `true`, available colors are automatically configured based on product ID) and get all possible skus back.
|
|
4
4
|
*
|
|
5
5
|
* *`variants` must be input in the same index order they were provided in!*
|
|
6
6
|
*
|
|
@@ -8,6 +8,7 @@ import { GenerateSkusForProductIdProps } from './generate-skus-for-product-id.ty
|
|
|
8
8
|
*
|
|
9
9
|
* // options as strings
|
|
10
10
|
* const sku = generateSkusForProductId({
|
|
11
|
+
* isPainted: true,
|
|
11
12
|
* productId: 123456,
|
|
12
13
|
* size: 'sm',
|
|
13
14
|
* variants: [
|
|
@@ -18,6 +19,7 @@ import { GenerateSkusForProductIdProps } from './generate-skus-for-product-id.ty
|
|
|
18
19
|
*
|
|
19
20
|
* // options as code objects
|
|
20
21
|
* const sku = generateSkusForProductId({
|
|
22
|
+
* isPainted: true,
|
|
21
23
|
* productId: 123456,
|
|
22
24
|
* size: { code: 'sm' },
|
|
23
25
|
* variants: [
|