-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtex.product-customizer.d.ts
88 lines (87 loc) · 3.15 KB
/
vtex.product-customizer.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import { Block } from '.'
declare global {
namespace JSX {
interface IntrinsicElements {
/**
* Add the `product-assembly-options` block as a child of the `store.product` template (PDP template).
* This is enough to enable the subscription form.
*
* @see {@link https://vtex.io/docs/components/product/vtex.product-customizer}
*/
'product-assembly-options': Block<{
/**
* Defines whether the customization box will be opened even if an attachment is not required (`always`) or if the customization box will be opened only if the attachment is required (`required`).
*
* @default "required"
*/
initiallyOpened?: 'always' | 'required'
}>
/**
* To display attachments of a product on the Product Detail Page (PDP), declare the `product-assembly-options` block and add the `assembly-option-input-values` block as its child.
*
* @see {@link https://vtex.io/docs/components/product/vtex.product-customizer}
*/
'assembly-option-input-values': Block<{
/**
* Defines whether a checkbox (`box`) or a dropdown list (`select`) will be used to select the attachment pre-defined options.
*
* @default "select"
*/
optionsDisplay?: 'box' | 'select'
}>
/**
* Displays the attachment image.
*
* @see {@link https://vtex.io/docs/components/product/vtex.product-customizer}
*/
'assembly-option-item-image': Block
/**
* Displays a quantity selector.
*
* @see {@link https://vtex.io/docs/components/product/vtex.product-customizer}
*/
'assembly-option-item-quantity-selector': Block
/**
* Displays the attachment name.
*
* @see {@link https://vtex.io/docs/components/product/vtex.product-customizer}
*/
'assembly-option-item-name': Block
/**
* Displays the attachment price.
*
* @see {@link https://vtex.io/docs/components/product/vtex.product-customizer}
*/
'assembly-option-item-price': Block
/**
* Displays the `Customize` button.
* When clicked, it opens a modal that allows customers to customize the attachment.
*
* @see {@link https://vtex.io/docs/components/product/vtex.product-customizer}
*/
'assembly-option-item-customize': Block<{
/**
* Defines the behavior of the `Customize` button.
* In addition to the `collapse` prop, the `buttonProps` object can include child blocks to build the content of the modal triggered when the button is clicked.
*
* @default undefined
*/
buttonProps?: {
/**
* `Customize` button positioning.
* Possible values are: `left` or `right`.
*
* @default "left"
*/
collapse?: 'left' | 'right'
}
}>
/**
* Displays a summary with all selected attachments.
*
* @see {@link https://vtex.io/docs/components/product/vtex.product-customizer}
*/
'assembly-option-item-children-description': Block
}
}
}