@threekit-tools/treble 0.0.82 → 0.0.83

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.
Files changed (83) hide show
  1. package/dist/Treble/Snapshots.js +31 -32
  2. package/dist/Treble/Treble.js +3 -4
  3. package/dist/Treble/Wishlist.js +8 -8
  4. package/dist/api/catalog.js +6 -6
  5. package/dist/api/configurations.js +3 -3
  6. package/dist/api/datatables.js +5 -5
  7. package/dist/api/orders.js +12 -12
  8. package/dist/api/price.js +2 -2
  9. package/dist/api/products.js +2 -2
  10. package/dist/components/Accordion/index.js +1 -6
  11. package/dist/components/AttributeTitle/index.d.ts +0 -9
  12. package/dist/components/AttributeTitle/index.js +0 -9
  13. package/dist/components/AttributeValue/index.d.ts +0 -6
  14. package/dist/components/AttributeValue/index.js +0 -6
  15. package/dist/components/Button/index.d.ts +0 -27
  16. package/dist/components/Button/index.js +0 -27
  17. package/dist/components/Cards/index.d.ts +0 -54
  18. package/dist/components/Cards/index.js +0 -57
  19. package/dist/components/Drawer/index.js +0 -13
  20. package/dist/components/Dropdown/index.d.ts +0 -58
  21. package/dist/components/Dropdown/index.js +1 -66
  22. package/dist/components/FlatForm/index.d.ts +0 -21
  23. package/dist/components/FlatForm/index.js +0 -21
  24. package/dist/components/Modal/index.js +0 -13
  25. package/dist/components/PortalToElement/index.js +0 -8
  26. package/dist/components/ProductDescription/index.d.ts +0 -6
  27. package/dist/components/ProductDescription/index.js +0 -6
  28. package/dist/components/ProductName/index.d.ts +0 -9
  29. package/dist/components/ProductName/index.js +0 -9
  30. package/dist/components/Share/index.d.ts +0 -12
  31. package/dist/components/Share/index.js +0 -12
  32. package/dist/components/Snapshots/index.d.ts +0 -8
  33. package/dist/components/Snapshots/index.js +0 -8
  34. package/dist/components/Strips/index.d.ts +0 -54
  35. package/dist/components/Strips/index.js +0 -57
  36. package/dist/components/Swatch/index.d.ts +0 -63
  37. package/dist/components/Swatch/index.js +0 -66
  38. package/dist/components/Switch/index.d.ts +0 -33
  39. package/dist/components/Switch/index.js +0 -36
  40. package/dist/components/TextInput/index.js +0 -1
  41. package/dist/components/Tiles/index.d.ts +0 -28
  42. package/dist/components/Tiles/index.js +0 -30
  43. package/dist/components/TilesGroup/index.d.ts +0 -25
  44. package/dist/components/TilesGroup/index.js +0 -27
  45. package/dist/components/TotalPrice/index.d.ts +0 -6
  46. package/dist/components/TotalPrice/index.js +0 -6
  47. package/dist/components/Upload/index.js +5 -6
  48. package/dist/components/UploadArea/index.js +4 -5
  49. package/dist/components/Wishlist/index.d.ts +1 -4
  50. package/dist/components/Wishlist/index.js +2 -5
  51. package/dist/components/Zoom/index.d.ts +1 -18
  52. package/dist/components/Zoom/index.js +0 -17
  53. package/dist/components/formComponents.js +0 -2
  54. package/dist/components/message/index.d.ts +0 -9
  55. package/dist/components/message/index.js +0 -9
  56. package/dist/connection.js +2 -2
  57. package/dist/constants.d.ts +0 -27
  58. package/dist/constants.js +0 -36
  59. package/dist/hooks/useAttribute/index.js +6 -6
  60. package/dist/hooks/useConfigurationLoader/index.js +5 -5
  61. package/dist/hooks/useNestedConfigurator/index.js +2 -2
  62. package/dist/hooks/useShare/index.js +3 -3
  63. package/dist/hooks/useSingleAnimation/index.js +5 -11
  64. package/dist/http/datatables.js +0 -1
  65. package/dist/icons/index.d.ts +0 -41
  66. package/dist/icons/index.js +0 -42
  67. package/dist/index.d.ts +42 -3
  68. package/dist/index.js +84 -30
  69. package/dist/store/attributes.d.ts +0 -12
  70. package/dist/store/attributes.js +2 -15
  71. package/dist/store/price.d.ts +0 -12
  72. package/dist/store/price.js +2 -16
  73. package/dist/store/product.d.ts +2 -17
  74. package/dist/store/product.js +23 -37
  75. package/dist/store/translations.d.ts +0 -12
  76. package/dist/store/translations.js +2 -12
  77. package/dist/store/treble.d.ts +0 -15
  78. package/dist/store/treble.js +31 -66
  79. package/dist/store/wishlist.d.ts +0 -12
  80. package/dist/store/wishlist.js +4 -17
  81. package/dist/types.d.ts +0 -34
  82. package/dist/utils.js +3 -12
  83. package/package.json +16 -4
@@ -9,33 +9,11 @@ export interface ICards extends IFormComponentProps<IOption> {
9
9
  export declare const Cards: {
10
10
  (props: ICards): JSX.Element;
11
11
  propTypes: {
12
- /**
13
- * Is the attribute name on the initialized asset that we are
14
- * using this component for. If the attribute prop is used,
15
- * the component will ignore the props for: `value`, `options`, `onClick`.
16
- */
17
12
  attribute: PropTypes.Requireable<string>;
18
- /**
19
- * Used to add a title to the input
20
- */
21
13
  title: PropTypes.Requireable<string>;
22
- /**
23
- * Used to provide a custom description for the input component
24
- */
25
14
  description: PropTypes.Requireable<string>;
26
- /**
27
- * Selected value from the option set. Should match the 'value' property
28
- * of one of the items in the options array.
29
- */
30
15
  value: PropTypes.Requireable<string>;
31
- /**
32
- * Handles the user seletion by passing the value of the selected
33
- * option as the argument into the onClick callback.
34
- */
35
16
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
36
- /**
37
- * The options set to be displayed for the user
38
- */
39
17
  options: PropTypes.Requireable<(PropTypes.InferProps<{
40
18
  name: PropTypes.Requireable<string>;
41
19
  description: PropTypes.Requireable<string>;
@@ -45,44 +23,12 @@ export declare const Cards: {
45
23
  color: PropTypes.Requireable<string>;
46
24
  disabled: PropTypes.Requireable<boolean>;
47
25
  }> | null | undefined)[]>;
48
- /**
49
- * Used to add a custom class name to each of the components html elements
50
- */
51
26
  className: PropTypes.Requireable<string>;
52
- /**
53
- * By default the thumbnail (image/color value) is soruced from the `_thumbnail`
54
- * metadata key in the option's Catalog Item. This metadata key can be overwritten
55
- * by passing in the prefered key value to the **thumbnailFromMetadata** prop.
56
- */
57
27
  metadataKeyThumbnail: PropTypes.Requireable<string>;
58
- /**
59
- * By default the description is soruced from the `_description` metadata
60
- * key in the option's Catalog Item. This metadata key can be overwritten
61
- * by passing in the prefered key value to the **metadataKeyDescription**
62
- * prop.
63
- */
64
28
  metadataKeyDescription: PropTypes.Requireable<string>;
65
- /**
66
- * By default the price of an item is soruced from the pricebook entry for
67
- * the option's Catalog Item. The price can alternatively be soruced from
68
- * the option's Catalog Item metadata, by specifying the key under which the
69
- * price can be found as the **metadataKeyPrice** prop.
70
- */
71
29
  metadataKeyPrice: PropTypes.Requireable<string>;
72
- /**
73
- * A boolean to set whether or all the Cards should display thumbnails
74
- * for the options.
75
- */
76
30
  showThumbnail: PropTypes.Requireable<boolean>;
77
- /**
78
- * A boolean to set whether or all the Cards should display the description
79
- * for the options.
80
- */
81
31
  showDescription: PropTypes.Requireable<boolean>;
82
- /**
83
- * A boolean to set whether or all the Cards should display the price
84
- * for the options/
85
- */
86
32
  showPrice: PropTypes.Requireable<boolean>;
87
33
  };
88
34
  defaultProps: {
@@ -62,33 +62,11 @@ var Cards = function (props) {
62
62
  };
63
63
  exports.Cards = Cards;
64
64
  exports.Cards.propTypes = {
65
- /**
66
- * Is the attribute name on the initialized asset that we are
67
- * using this component for. If the attribute prop is used,
68
- * the component will ignore the props for: `value`, `options`, `onClick`.
69
- */
70
65
  attribute: prop_types_1.default.string,
71
- /**
72
- * Used to add a title to the input
73
- */
74
66
  title: prop_types_1.default.string,
75
- /**
76
- * Used to provide a custom description for the input component
77
- */
78
67
  description: prop_types_1.default.string,
79
- /**
80
- * Selected value from the option set. Should match the 'value' property
81
- * of one of the items in the options array.
82
- */
83
68
  value: prop_types_1.default.string,
84
- /**
85
- * Handles the user seletion by passing the value of the selected
86
- * option as the argument into the onClick callback.
87
- */
88
69
  onClick: prop_types_1.default.func,
89
- /**
90
- * The options set to be displayed for the user
91
- */
92
70
  options: prop_types_1.default.arrayOf(prop_types_1.default.shape({
93
71
  name: prop_types_1.default.string,
94
72
  description: prop_types_1.default.string,
@@ -98,59 +76,24 @@ exports.Cards.propTypes = {
98
76
  color: prop_types_1.default.string,
99
77
  disabled: prop_types_1.default.bool,
100
78
  })),
101
- /**
102
- * Used to add a custom class name to each of the components html elements
103
- */
104
79
  className: prop_types_1.default.string,
105
- /**
106
- * By default the thumbnail (image/color value) is soruced from the `_thumbnail`
107
- * metadata key in the option's Catalog Item. This metadata key can be overwritten
108
- * by passing in the prefered key value to the **thumbnailFromMetadata** prop.
109
- */
110
80
  metadataKeyThumbnail: prop_types_1.default.string,
111
- /**
112
- * By default the description is soruced from the `_description` metadata
113
- * key in the option's Catalog Item. This metadata key can be overwritten
114
- * by passing in the prefered key value to the **metadataKeyDescription**
115
- * prop.
116
- */
117
81
  metadataKeyDescription: prop_types_1.default.string,
118
- /**
119
- * By default the price of an item is soruced from the pricebook entry for
120
- * the option's Catalog Item. The price can alternatively be soruced from
121
- * the option's Catalog Item metadata, by specifying the key under which the
122
- * price can be found as the **metadataKeyPrice** prop.
123
- */
124
82
  metadataKeyPrice: prop_types_1.default.string,
125
- /**
126
- * A boolean to set whether or all the Cards should display thumbnails
127
- * for the options.
128
- */
129
83
  showThumbnail: prop_types_1.default.bool,
130
- /**
131
- * A boolean to set whether or all the Cards should display the description
132
- * for the options.
133
- */
134
84
  showDescription: prop_types_1.default.bool,
135
- /**
136
- * A boolean to set whether or all the Cards should display the price
137
- * for the options/
138
- */
139
85
  showPrice: prop_types_1.default.bool,
140
86
  };
141
87
  exports.Cards.defaultProps = {
142
88
  description: undefined,
143
89
  className: undefined,
144
- // Default use
145
90
  attribute: undefined,
146
- // Default user overrides
147
91
  metadataKeyThumbnail: undefined,
148
92
  metadataKeyDescription: undefined,
149
93
  metadataKeyPrice: undefined,
150
94
  showThumbnail: true,
151
95
  showPrice: true,
152
96
  showDescription: true,
153
- // Custom use
154
97
  title: undefined,
155
98
  value: undefined,
156
99
  options: undefined,
@@ -72,22 +72,9 @@ var Drawer = function (props) {
72
72
  };
73
73
  exports.Drawer = Drawer;
74
74
  exports.Drawer.propTypes = {
75
- /**
76
- * The title to be shown in the Drawer header
77
- */
78
75
  title: prop_types_1.default.string,
79
- /**
80
- * Callback function to close the Drawer. Can be used with custom UI
81
- * components in the Drawer
82
- */
83
76
  handleClose: prop_types_1.default.func,
84
- /**
85
- * Whether or not to render the default Drawer header
86
- */
87
77
  showHeader: prop_types_1.default.bool,
88
- /**
89
- * Used to add a custom class name to each of the components html elements
90
- */
91
78
  className: prop_types_1.default.string,
92
79
  };
93
80
  exports.Drawer.defaultProps = {
@@ -10,33 +10,11 @@ export interface IDropdown extends IFormComponentProps<IOption> {
10
10
  export declare const Dropdown: {
11
11
  (props: IDropdown): JSX.Element;
12
12
  propTypes: {
13
- /**
14
- * Is the attribute name on the initialized asset that we are
15
- * using this component for. If the attribute prop is used,
16
- * the component will ignore the props for: `value`, `options`, `onClick`.
17
- */
18
13
  attribute: PropTypes.Requireable<string>;
19
- /**
20
- * Used to add a title to the input
21
- */
22
14
  title: PropTypes.Requireable<string>;
23
- /**
24
- * Used to provide a custom description for the input component
25
- */
26
15
  description: PropTypes.Requireable<string>;
27
- /**
28
- * Selected value from the option set. Should match the 'value' property
29
- * of one of the items in the options array.
30
- */
31
16
  value: PropTypes.Requireable<string>;
32
- /**
33
- * Handles the user seletion by passing the value of the selected
34
- * option as the argument into the onClick callback.
35
- */
36
17
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
37
- /**
38
- * The options set to be displayed for the user
39
- */
40
18
  options: PropTypes.Requireable<(PropTypes.InferProps<{
41
19
  name: PropTypes.Requireable<string>;
42
20
  description: PropTypes.Requireable<string>;
@@ -46,49 +24,13 @@ export declare const Dropdown: {
46
24
  color: PropTypes.Requireable<string>;
47
25
  disabled: PropTypes.Requireable<boolean>;
48
26
  }> | null | undefined)[]>;
49
- /**
50
- * Used to add a custom class name to each of the components html elements
51
- */
52
27
  className: PropTypes.Requireable<string>;
53
- /**
54
- * By default the thumbnail (image/color value) is soruced from the `_thumbnail`
55
- * metadata key in the option's Catalog Item. This metadata key can be overwritten
56
- * by passing in the prefered key value to the **thumbnailFromMetadata** prop.
57
- */
58
28
  metadataKeyThumbnail: PropTypes.Requireable<string>;
59
- /**
60
- * By default the description is soruced from the `_description` metadata
61
- * key in the option's Catalog Item. This metadata key can be overwritten
62
- * by passing in the prefered key value to the **metadataKeyDescription**
63
- * prop.
64
- */
65
29
  metadataKeyDescription: PropTypes.Requireable<string>;
66
- /**
67
- * By default the price of an item is soruced from the pricebook entry for
68
- * the option's Catalog Item. The price can alternatively be soruced from
69
- * the option's Catalog Item metadata, by specifying the key under which the
70
- * price can be found as the **metadataKeyPrice** prop.
71
- */
72
30
  metadataKeyPrice: PropTypes.Requireable<string>;
73
- /**
74
- * A boolean to set whether or all the Cards should display thumbnails
75
- * for the options.
76
- */
77
31
  showThumbnail: PropTypes.Requireable<boolean>;
78
- /**
79
- * A boolean to set whether or all the Cards should display the description
80
- * for the options.
81
- */
82
32
  showDescription: PropTypes.Requireable<boolean>;
83
- /**
84
- * A boolean to set whether or all the Cards should display the price
85
- * for the options.
86
- */
87
33
  showPrice: PropTypes.Requireable<boolean>;
88
- /**
89
- * The maximum height the dropdown area should extend to before scrolling
90
- * is introduced
91
- */
92
34
  dropdownMaxHeight: PropTypes.Requireable<string>;
93
35
  };
94
36
  defaultProps: {
@@ -82,11 +82,7 @@ var Dropdown = function (props) {
82
82
  return (react_1.default.createElement("div", { className: cls },
83
83
  react_1.default.createElement(FormComponentTitle_1.default, { title: title, className: cls }),
84
84
  react_1.default.createElement(FormComponentDescription_1.default, { description: description, className: cls }),
85
- react_1.default.createElement(dropdown_styles_1.DropdownWrapper
86
- // active={!hide}
87
- , {
88
- // active={!hide}
89
- ref: ref, className: "".concat(cls, " dropdown") },
85
+ react_1.default.createElement(dropdown_styles_1.DropdownWrapper, { ref: ref, className: "".concat(cls, " dropdown") },
90
86
  react_1.default.createElement(dropdown_styles_1.DropdownMain, { active: !hide, className: "".concat(cls, " selected"), onClick: function () { return setHide(!hide); }, hasPlaceholder: !value },
91
87
  react_1.default.createElement(Thumbnail, { imageUrl: selectedOpt === null || selectedOpt === void 0 ? void 0 : selectedOpt.imageUrl, color: selectedOpt === null || selectedOpt === void 0 ? void 0 : selectedOpt.color, name: selectedOpt === null || selectedOpt === void 0 ? void 0 : selectedOpt.name, className: "".concat(cls, " selected") }),
92
88
  react_1.default.createElement("div", null,
@@ -118,33 +114,11 @@ var Dropdown = function (props) {
118
114
  };
119
115
  exports.Dropdown = Dropdown;
120
116
  exports.Dropdown.propTypes = {
121
- /**
122
- * Is the attribute name on the initialized asset that we are
123
- * using this component for. If the attribute prop is used,
124
- * the component will ignore the props for: `value`, `options`, `onClick`.
125
- */
126
117
  attribute: prop_types_1.default.string,
127
- /**
128
- * Used to add a title to the input
129
- */
130
118
  title: prop_types_1.default.string,
131
- /**
132
- * Used to provide a custom description for the input component
133
- */
134
119
  description: prop_types_1.default.string,
135
- /**
136
- * Selected value from the option set. Should match the 'value' property
137
- * of one of the items in the options array.
138
- */
139
120
  value: prop_types_1.default.string,
140
- /**
141
- * Handles the user seletion by passing the value of the selected
142
- * option as the argument into the onClick callback.
143
- */
144
121
  onClick: prop_types_1.default.func,
145
- /**
146
- * The options set to be displayed for the user
147
- */
148
122
  options: prop_types_1.default.arrayOf(prop_types_1.default.shape({
149
123
  name: prop_types_1.default.string,
150
124
  description: prop_types_1.default.string,
@@ -154,64 +128,25 @@ exports.Dropdown.propTypes = {
154
128
  color: prop_types_1.default.string,
155
129
  disabled: prop_types_1.default.bool,
156
130
  })),
157
- /**
158
- * Used to add a custom class name to each of the components html elements
159
- */
160
131
  className: prop_types_1.default.string,
161
- /**
162
- * By default the thumbnail (image/color value) is soruced from the `_thumbnail`
163
- * metadata key in the option's Catalog Item. This metadata key can be overwritten
164
- * by passing in the prefered key value to the **thumbnailFromMetadata** prop.
165
- */
166
132
  metadataKeyThumbnail: prop_types_1.default.string,
167
- /**
168
- * By default the description is soruced from the `_description` metadata
169
- * key in the option's Catalog Item. This metadata key can be overwritten
170
- * by passing in the prefered key value to the **metadataKeyDescription**
171
- * prop.
172
- */
173
133
  metadataKeyDescription: prop_types_1.default.string,
174
- /**
175
- * By default the price of an item is soruced from the pricebook entry for
176
- * the option's Catalog Item. The price can alternatively be soruced from
177
- * the option's Catalog Item metadata, by specifying the key under which the
178
- * price can be found as the **metadataKeyPrice** prop.
179
- */
180
134
  metadataKeyPrice: prop_types_1.default.string,
181
- /**
182
- * A boolean to set whether or all the Cards should display thumbnails
183
- * for the options.
184
- */
185
135
  showThumbnail: prop_types_1.default.bool,
186
- /**
187
- * A boolean to set whether or all the Cards should display the description
188
- * for the options.
189
- */
190
136
  showDescription: prop_types_1.default.bool,
191
- /**
192
- * A boolean to set whether or all the Cards should display the price
193
- * for the options.
194
- */
195
137
  showPrice: prop_types_1.default.bool,
196
- /**
197
- * The maximum height the dropdown area should extend to before scrolling
198
- * is introduced
199
- */
200
138
  dropdownMaxHeight: prop_types_1.default.string,
201
139
  };
202
140
  exports.Dropdown.defaultProps = {
203
141
  description: undefined,
204
142
  className: undefined,
205
- // Default use
206
143
  attribute: undefined,
207
- // Default user overrides
208
144
  metadataKeyThumbnail: '_thumbnail',
209
145
  metadataKeyDescription: undefined,
210
146
  metadataKeyPrice: undefined,
211
147
  showThumbnail: true,
212
148
  showPrice: true,
213
149
  showDescription: true,
214
- // Custom use
215
150
  value: undefined,
216
151
  options: undefined,
217
152
  onClick: undefined,
@@ -12,36 +12,15 @@ interface FlatFormProps {
12
12
  export declare const FlatForm: {
13
13
  (props: FlatFormProps): JSX.Element | null;
14
14
  propTypes: {
15
- /**
16
- * Used to add a title to Form (defaults to the intialized Catalog Item's name)
17
- */
18
15
  title: PropTypes.Requireable<string>;
19
- /**
20
- * Alignement for the title. Options include `left`, `center` or `right`
21
- */
22
16
  alignTitle: PropTypes.Requireable<string>;
23
- /**
24
- * Used to add a description to Form
25
- */
26
17
  description: PropTypes.Requireable<string>;
27
- /**
28
- * The attributes prop allows us to specify which components to use for
29
- * our attributes and what props we want to pass into their components.
30
- *
31
- * The attributes prop takes and object with the keys matching the name
32
- * of the attribute you wish to target and value as an object includeing
33
- * the component to use and props to pass in.
34
- */
35
18
  attributes: PropTypes.Requireable<{
36
19
  [x: string]: PropTypes.InferProps<{
37
20
  component: PropTypes.Requireable<string>;
38
21
  props: PropTypes.Requireable<object>;
39
22
  }> | null | undefined;
40
23
  }>;
41
- /**
42
- *
43
- * Used to add a custom class name to each of the components html elements
44
- */
45
24
  className: PropTypes.Requireable<string>;
46
25
  };
47
26
  defaultProps: {
@@ -93,34 +93,13 @@ var FlatForm = function (props) {
93
93
  };
94
94
  exports.FlatForm = FlatForm;
95
95
  exports.FlatForm.propTypes = {
96
- /**
97
- * Used to add a title to Form (defaults to the intialized Catalog Item's name)
98
- */
99
96
  title: prop_types_1.default.string,
100
- /**
101
- * Alignement for the title. Options include `left`, `center` or `right`
102
- */
103
97
  alignTitle: prop_types_1.default.string,
104
- /**
105
- * Used to add a description to Form
106
- */
107
98
  description: prop_types_1.default.string,
108
- /**
109
- * The attributes prop allows us to specify which components to use for
110
- * our attributes and what props we want to pass into their components.
111
- *
112
- * The attributes prop takes and object with the keys matching the name
113
- * of the attribute you wish to target and value as an object includeing
114
- * the component to use and props to pass in.
115
- */
116
99
  attributes: prop_types_1.default.objectOf(prop_types_1.default.shape({
117
100
  component: prop_types_1.default.string,
118
101
  props: prop_types_1.default.object,
119
102
  })),
120
- /**
121
- *
122
- * Used to add a custom class name to each of the components html elements
123
- */
124
103
  className: prop_types_1.default.string,
125
104
  };
126
105
  exports.FlatForm.defaultProps = {
@@ -39,22 +39,9 @@ var Modal = function (props) {
39
39
  };
40
40
  exports.Modal = Modal;
41
41
  exports.ModalComponent.propTypes = {
42
- /**
43
- * The title to be shown in the Modal header
44
- */
45
42
  title: prop_types_1.default.string,
46
- /**
47
- * Callback function to close the modal. Can be used with custom UI
48
- * components in the Modal
49
- */
50
43
  handleClose: prop_types_1.default.func,
51
- /**
52
- * Whether or not to render the default Modal header
53
- */
54
44
  showHeader: prop_types_1.default.bool,
55
- /**
56
- * Used to add a custom class name to each of the components html elements
57
- */
58
45
  className: prop_types_1.default.string,
59
46
  };
60
47
  exports.ModalComponent.defaultProps = {
@@ -24,15 +24,7 @@ var PortalToElement = function (props) {
24
24
  };
25
25
  exports.PortalToElement = PortalToElement;
26
26
  exports.PortalToElement.propTypes = {
27
- /**
28
- * The id of the HTML element you want the content to be rendered in
29
- */
30
27
  to: prop_types_1.default.string,
31
- /**
32
- * Defines the behaviour if the HTML element is not found. If strict is
33
- * set to `true` the content will not render, if set to `false` the
34
- * content will render out in its defualt flow.
35
- */
36
28
  strict: prop_types_1.default.bool,
37
29
  };
38
30
  exports.PortalToElement.defaultProps = {};
@@ -7,13 +7,7 @@ interface IProductDescription {
7
7
  export declare const ProductDescriptionComponent: {
8
8
  (props: IProductDescription): JSX.Element;
9
9
  propTypes: {
10
- /**
11
- * The description displayed to the user
12
- */
13
10
  description: PropTypes.Requireable<string>;
14
- /**
15
- * Custom classNames applied to the HTML Element to apply custom CSS styling.
16
- */
17
11
  className: PropTypes.Requireable<string>;
18
12
  };
19
13
  defaultProps: {
@@ -28,13 +28,7 @@ var ProductDescription = function (props) {
28
28
  return (react_1.default.createElement(exports.ProductDescriptionComponent, { className: className, description: ((_a = metadata === null || metadata === void 0 ? void 0 : metadata._description) === null || _a === void 0 ? void 0 : _a.toString()) || description }));
29
29
  };
30
30
  exports.ProductDescriptionComponent.propTypes = {
31
- /**
32
- * The description displayed to the user
33
- */
34
31
  description: prop_types_1.default.string,
35
- /**
36
- * Custom classNames applied to the HTML Element to apply custom CSS styling.
37
- */
38
32
  className: prop_types_1.default.string,
39
33
  };
40
34
  exports.ProductDescriptionComponent.defaultProps = {
@@ -8,17 +8,8 @@ interface ITitle {
8
8
  export declare const ProductNameComponent: {
9
9
  (props: ITitle): JSX.Element;
10
10
  propTypes: {
11
- /**
12
- * The title displayed to the user
13
- */
14
11
  title: PropTypes.Requireable<string>;
15
- /**
16
- * Custom classNames applied to the HTML Element to apply custom CSS styling.
17
- */
18
12
  className: PropTypes.Requireable<string>;
19
- /**
20
- * The CSS Text alignment property. Options: 'left' | 'center' | 'right'
21
- */
22
13
  align: PropTypes.Requireable<string>;
23
14
  };
24
15
  defaultProps: {
@@ -24,17 +24,8 @@ var ProductName = function (props) {
24
24
  };
25
25
  exports.ProductName = ProductName;
26
26
  exports.ProductNameComponent.propTypes = {
27
- /**
28
- * The title displayed to the user
29
- */
30
27
  title: prop_types_1.default.string,
31
- /**
32
- * Custom classNames applied to the HTML Element to apply custom CSS styling.
33
- */
34
28
  className: prop_types_1.default.string,
35
- /**
36
- * The CSS Text alignment property. Options: 'left' | 'center' | 'right'
37
- */
38
29
  align: prop_types_1.default.string,
39
30
  };
40
31
  exports.ProductNameComponent.defaultProps = {
@@ -11,20 +11,8 @@ export declare const Share: {
11
11
  (props: ShareProps): JSX.Element | null;
12
12
  propTypes: {
13
13
  className: PropTypes.Requireable<string>;
14
- /**
15
- * The presentational type of the input component. Options
16
- * include: `hollow`, `standard`, `accent`, `primary`
17
- */
18
14
  type: PropTypes.Requireable<string>;
19
- /**
20
- * Used to set the shape of the Widget button. Options
21
- * include: `square`, `round`
22
- */
23
15
  shape: PropTypes.Requireable<string>;
24
- /**
25
- * Used to set an overwrite of the message presented to the user
26
- * when the share URL has been successfully copied.
27
- */
28
16
  message: PropTypes.Requireable<string>;
29
17
  };
30
18
  defaultProps: {
@@ -26,20 +26,8 @@ var Share = function (props) {
26
26
  exports.Share = Share;
27
27
  exports.Share.propTypes = {
28
28
  className: prop_types_1.default.string,
29
- /**
30
- * The presentational type of the input component. Options
31
- * include: `hollow`, `standard`, `accent`, `primary`
32
- */
33
29
  type: prop_types_1.default.string,
34
- /**
35
- * Used to set the shape of the Widget button. Options
36
- * include: `square`, `round`
37
- */
38
30
  shape: prop_types_1.default.string,
39
- /**
40
- * Used to set an overwrite of the message presented to the user
41
- * when the share URL has been successfully copied.
42
- */
43
31
  message: prop_types_1.default.string,
44
32
  };
45
33
  exports.Share.defaultProps = {
@@ -13,15 +13,7 @@ export declare const Snapshots: {
13
13
  (props: SnapshotProps): JSX.Element | null;
14
14
  propTypes: {
15
15
  className: PropTypes.Requireable<string>;
16
- /**
17
- * The presentational type of the input component. Options
18
- * include: `hollow`, `standard`, `accent`, `primary`
19
- */
20
16
  type: PropTypes.Requireable<string>;
21
- /**
22
- * Used to set the shape of the Widget button. Options
23
- * include: `square`, `round`
24
- */
25
17
  shape: PropTypes.Requireable<string>;
26
18
  };
27
19
  defaultProps: {
@@ -24,15 +24,7 @@ var Snapshots = function (props) {
24
24
  exports.Snapshots = Snapshots;
25
25
  exports.Snapshots.propTypes = {
26
26
  className: prop_types_1.default.string,
27
- /**
28
- * The presentational type of the input component. Options
29
- * include: `hollow`, `standard`, `accent`, `primary`
30
- */
31
27
  type: prop_types_1.default.string,
32
- /**
33
- * Used to set the shape of the Widget button. Options
34
- * include: `square`, `round`
35
- */
36
28
  shape: prop_types_1.default.string,
37
29
  };
38
30
  exports.Snapshots.defaultProps = {