@redneckz/wildless-cms-uni-blocks 0.14.732 → 0.14.734
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/bundle/bundle.umd.js +3 -12
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/CreditCardForm/getDeliveryCreditCardData.js +1 -2
- package/dist/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CurrencyField.js +1 -4
- package/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/lib/components/CreditCardForm/getDeliveryCreditCardData.js +1 -2
- package/lib/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CurrencyField.js +1 -4
- package/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -12
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.js +1 -2
- package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js +1 -4
- package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.js +1 -2
- package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js +1 -4
- package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/mobile/src/components/CreditCardForm/getDeliveryCreditCardData.ts +1 -2
- package/mobile/src/ui-kit/FormField/Fields/CurrencyField.tsx +1 -8
- package/package.json +1 -1
- package/src/components/CreditCardForm/getDeliveryCreditCardData.ts +1 -2
- package/src/ui-kit/FormField/Fields/CurrencyField.tsx +1 -8
package/bundle/bundle.umd.js
CHANGED
|
@@ -4125,11 +4125,9 @@
|
|
|
4125
4125
|
|
|
4126
4126
|
const RadioButtonGroupControl = JSX(({ className, label, onChange, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(RadioButtonGroup, { label: getRequiredLabel({ label, errors: rest?.errors }), onChange: (_) => onChange && onChange(_), ...rest }), renderErrorText(error)] })));
|
|
4127
4127
|
|
|
4128
|
-
const DEFAULT_CURRENCY_TYPES = [{ id: '810', text: 'Рубли' }];
|
|
4129
4128
|
const CurrencyField = JSX(({ field, input }) => {
|
|
4130
4129
|
const { value, onChange } = field('currency');
|
|
4131
|
-
const {
|
|
4132
|
-
const currencyTypes = data?.map((_) => ({ id: _.key, text: _.value })) ?? DEFAULT_CURRENCY_TYPES;
|
|
4130
|
+
const currencyTypes = [{ id: '810', text: 'Рубли' }];
|
|
4133
4131
|
return (jsx(RadioButtonGroupControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", orientation: "horizontal", items: currencyTypes, value: value, onChange: (_) => onChange?.(_), ...getValidation(field('currency'), validatorObj.currency, input?.required) }));
|
|
4134
4132
|
});
|
|
4135
4133
|
|
|
@@ -7078,20 +7076,13 @@
|
|
|
7078
7076
|
};
|
|
7079
7077
|
};
|
|
7080
7078
|
|
|
7081
|
-
const dateToISO = (date) => {
|
|
7082
|
-
if (!date) {
|
|
7083
|
-
return '';
|
|
7084
|
-
}
|
|
7085
|
-
return new Date(date).toISOString().split('.')[0];
|
|
7086
|
-
};
|
|
7087
|
-
|
|
7088
7079
|
const getDeliveryData = (formData) => {
|
|
7089
7080
|
const { methodObtain, deliveryDate = '' } = formData;
|
|
7090
7081
|
const isCourierDelivery = methodObtain === 'courier';
|
|
7091
7082
|
return isCourierDelivery
|
|
7092
7083
|
? {
|
|
7093
7084
|
courierDeliveryFlg: isCourierDelivery,
|
|
7094
|
-
deliveryDate:
|
|
7085
|
+
deliveryDate: deliveryDate.toString().replace(/(GMT)[+-]\d{4}/, 'GMT+0000'),
|
|
7095
7086
|
deliveryTimeCd: { value: 'TIME_2' },
|
|
7096
7087
|
//TODO временный хардкод для тестирования, не забыть удалить
|
|
7097
7088
|
office: { id: '3' },
|
|
@@ -10458,7 +10449,7 @@
|
|
|
10458
10449
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10459
10450
|
});
|
|
10460
10451
|
|
|
10461
|
-
const packageVersion = "0.14.
|
|
10452
|
+
const packageVersion = "0.14.733";
|
|
10462
10453
|
|
|
10463
10454
|
exports.Blocks = Blocks;
|
|
10464
10455
|
exports.ContentPage = ContentPage;
|