@pelcro/react-pelcro-js 4.0.0-alpha.102 → 4.0.0-alpha.103
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/index.cjs.js +8 -5
- package/dist/index.esm.js +8 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -21215,8 +21215,9 @@ const ImageSelect = ({
|
|
|
21215
21215
|
label: option === null || option === void 0 ? void 0 : option.name,
|
|
21216
21216
|
image: option === null || option === void 0 ? void 0 : option.image
|
|
21217
21217
|
}));
|
|
21218
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
21219
|
-
className: "plc-px-5"
|
|
21218
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21219
|
+
className: "plc-px-5"
|
|
21220
|
+
}, /*#__PURE__*/React__default['default'].createElement(StateManagedSelect$1, Object.assign({
|
|
21220
21221
|
isSearchable: false // Disable search feature
|
|
21221
21222
|
,
|
|
21222
21223
|
options: options,
|
|
@@ -21225,7 +21226,7 @@ const ImageSelect = ({
|
|
|
21225
21226
|
Option: customOption,
|
|
21226
21227
|
SingleValue: customSingleValue
|
|
21227
21228
|
}
|
|
21228
|
-
}, props));
|
|
21229
|
+
}, props)));
|
|
21229
21230
|
};
|
|
21230
21231
|
|
|
21231
21232
|
var initialState_1 = createCommonjsModule(function (module, exports) {
|
|
@@ -26037,6 +26038,7 @@ function SelectModalWithHook(props) {
|
|
|
26037
26038
|
itemId
|
|
26038
26039
|
}),
|
|
26039
26040
|
setView: switchView,
|
|
26041
|
+
hideGiftSelection: props.hideGiftSelection,
|
|
26040
26042
|
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
26041
26043
|
});
|
|
26042
26044
|
}
|
|
@@ -26373,7 +26375,8 @@ class SelectModal extends React.Component {
|
|
|
26373
26375
|
});
|
|
26374
26376
|
_defineProperty$4(this, "renderPlans", () => {
|
|
26375
26377
|
const {
|
|
26376
|
-
disableGifting
|
|
26378
|
+
disableGifting,
|
|
26379
|
+
hideGiftSelection
|
|
26377
26380
|
} = this.props;
|
|
26378
26381
|
const items = this.state.planList.map(plan => {
|
|
26379
26382
|
var _this$state;
|
|
@@ -26414,7 +26417,7 @@ class SelectModal extends React.Component {
|
|
|
26414
26417
|
className: "plc-px-8 plc-py-6 plc-text-center plc-w-full"
|
|
26415
26418
|
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
26416
26419
|
className: "plc-text-xs plc-mt-1 pelcro-select-plan-description plc-text-gray-500"
|
|
26417
|
-
}, plan.description)), plan.entitlements && itemsArray && itemsArray.length > 0 && /*#__PURE__*/React__default['default'].createElement(ImageSelect, {
|
|
26420
|
+
}, plan.description)), !hideGiftSelection && plan.entitlements && itemsArray && itemsArray.length > 0 && /*#__PURE__*/React__default['default'].createElement(ImageSelect, {
|
|
26418
26421
|
optionsArray: itemsArray,
|
|
26419
26422
|
onChange: e => {
|
|
26420
26423
|
console.log(e.value);
|
package/dist/index.esm.js
CHANGED
|
@@ -21185,8 +21185,9 @@ const ImageSelect = ({
|
|
|
21185
21185
|
label: option === null || option === void 0 ? void 0 : option.name,
|
|
21186
21186
|
image: option === null || option === void 0 ? void 0 : option.image
|
|
21187
21187
|
}));
|
|
21188
|
-
return /*#__PURE__*/React__default.createElement(
|
|
21189
|
-
className: "plc-px-5"
|
|
21188
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
21189
|
+
className: "plc-px-5"
|
|
21190
|
+
}, /*#__PURE__*/React__default.createElement(StateManagedSelect$1, Object.assign({
|
|
21190
21191
|
isSearchable: false // Disable search feature
|
|
21191
21192
|
,
|
|
21192
21193
|
options: options,
|
|
@@ -21195,7 +21196,7 @@ const ImageSelect = ({
|
|
|
21195
21196
|
Option: customOption,
|
|
21196
21197
|
SingleValue: customSingleValue
|
|
21197
21198
|
}
|
|
21198
|
-
}, props));
|
|
21199
|
+
}, props)));
|
|
21199
21200
|
};
|
|
21200
21201
|
|
|
21201
21202
|
var initialState_1 = createCommonjsModule(function (module, exports) {
|
|
@@ -26007,6 +26008,7 @@ function SelectModalWithHook(props) {
|
|
|
26007
26008
|
itemId
|
|
26008
26009
|
}),
|
|
26009
26010
|
setView: switchView,
|
|
26011
|
+
hideGiftSelection: props.hideGiftSelection,
|
|
26010
26012
|
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
26011
26013
|
});
|
|
26012
26014
|
}
|
|
@@ -26343,7 +26345,8 @@ class SelectModal extends Component {
|
|
|
26343
26345
|
});
|
|
26344
26346
|
_defineProperty$4(this, "renderPlans", () => {
|
|
26345
26347
|
const {
|
|
26346
|
-
disableGifting
|
|
26348
|
+
disableGifting,
|
|
26349
|
+
hideGiftSelection
|
|
26347
26350
|
} = this.props;
|
|
26348
26351
|
const items = this.state.planList.map(plan => {
|
|
26349
26352
|
var _this$state;
|
|
@@ -26384,7 +26387,7 @@ class SelectModal extends Component {
|
|
|
26384
26387
|
className: "plc-px-8 plc-py-6 plc-text-center plc-w-full"
|
|
26385
26388
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
26386
26389
|
className: "plc-text-xs plc-mt-1 pelcro-select-plan-description plc-text-gray-500"
|
|
26387
|
-
}, plan.description)), plan.entitlements && itemsArray && itemsArray.length > 0 && /*#__PURE__*/React__default.createElement(ImageSelect, {
|
|
26390
|
+
}, plan.description)), !hideGiftSelection && plan.entitlements && itemsArray && itemsArray.length > 0 && /*#__PURE__*/React__default.createElement(ImageSelect, {
|
|
26388
26391
|
optionsArray: itemsArray,
|
|
26389
26392
|
onChange: e => {
|
|
26390
26393
|
console.log(e.value);
|