@redneckz/wildless-cms-uni-blocks 0.14.732 → 0.14.733
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 +2 -4
- package/bundle/bundle.umd.min.js +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/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 +2 -4
- package/mobile/bundle/bundle.umd.min.js +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/ui-kit/FormField/Fields/CurrencyField.js +1 -4
- package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- package/mobile/src/ui-kit/FormField/Fields/CurrencyField.tsx +1 -8
- package/package.json +1 -1
- package/src/ui-kit/FormField/Fields/CurrencyField.tsx +1 -8
|
@@ -2,15 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.CurrencyField = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useLeadFormData_1 = require("../../../hooks/useLeadFormData");
|
|
6
5
|
const RadioButtonGroupControl_1 = require("../../RadioButtonGroup/RadioButtonGroupControl");
|
|
7
6
|
const getObjectValidator_1 = require("../getObjectValidator");
|
|
8
7
|
const getValidation_1 = require("../getValidation");
|
|
9
|
-
const DEFAULT_CURRENCY_TYPES = [{ id: '810', text: 'Рубли' }];
|
|
10
8
|
exports.CurrencyField = (0, uni_jsx_1.JSX)(({ field, input }) => {
|
|
11
9
|
const { value, onChange } = field('currency');
|
|
12
|
-
const
|
|
13
|
-
const currencyTypes = data?.map((_) => ({ id: _.key, text: _.value })) ?? DEFAULT_CURRENCY_TYPES;
|
|
10
|
+
const currencyTypes = [{ id: '810', text: 'Рубли' }];
|
|
14
11
|
return ((0, jsx_runtime_1.jsx)(RadioButtonGroupControl_1.RadioButtonGroupControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", orientation: "horizontal", items: currencyTypes, value: value, onChange: (_) => onChange?.(_), ...(0, getValidation_1.getValidation)(field('currency'), getObjectValidator_1.validatorObj.currency, input?.required) }));
|
|
15
12
|
});
|
|
16
13
|
//# sourceMappingURL=CurrencyField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/CurrencyField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"CurrencyField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/CurrencyField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4FAAyF;AAEzF,8DAAqD;AACrD,oDAAiD;AAEpC,QAAA,aAAa,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IACtE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IAE9C,MAAM,aAAa,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAErD,OAAO,CACL,uBAAC,iDAAuB,IACtB,KAAK,EAAC,sCAAQ,EACd,WAAW,EAAC,YAAY,EACxB,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,KAC1B,IAAA,6BAAa,EAAC,KAAK,CAAC,UAAU,CAAC,EAAE,iCAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,GAC5E,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useLeadFormData } from '../../../hooks/useLeadFormData.js';
|
|
4
3
|
import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl.js';
|
|
5
4
|
import { validatorObj } from '../getObjectValidator.js';
|
|
6
5
|
import { getValidation } from '../getValidation.js';
|
|
7
|
-
const DEFAULT_CURRENCY_TYPES = [{ id: '810', text: 'Рубли' }];
|
|
8
6
|
export const CurrencyField = JSX(({ field, input }) => {
|
|
9
7
|
const { value, onChange } = field('currency');
|
|
10
|
-
const {
|
|
11
|
-
const currencyTypes = data?.map((_) => ({ id: _.key, text: _.value })) ?? DEFAULT_CURRENCY_TYPES;
|
|
8
|
+
const currencyTypes = [{ id: '810', text: 'Рубли' }];
|
|
12
9
|
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) }));
|
|
13
10
|
});
|
|
14
11
|
//# sourceMappingURL=CurrencyField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/CurrencyField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CurrencyField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/CurrencyField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAEzF,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IACtE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IAE9C,MAAM,aAAa,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAErD,OAAO,CACL,KAAC,uBAAuB,IACtB,KAAK,EAAC,sCAAQ,EACd,WAAW,EAAC,YAAY,EACxB,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,KAC1B,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,YAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,GAC5E,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -4133,11 +4133,9 @@
|
|
|
4133
4133
|
|
|
4134
4134
|
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)] })));
|
|
4135
4135
|
|
|
4136
|
-
const DEFAULT_CURRENCY_TYPES = [{ id: '810', text: 'Рубли' }];
|
|
4137
4136
|
const CurrencyField = JSX(({ field, input }) => {
|
|
4138
4137
|
const { value, onChange } = field('currency');
|
|
4139
|
-
const {
|
|
4140
|
-
const currencyTypes = data?.map((_) => ({ id: _.key, text: _.value })) ?? DEFAULT_CURRENCY_TYPES;
|
|
4138
|
+
const currencyTypes = [{ id: '810', text: 'Рубли' }];
|
|
4141
4139
|
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) }));
|
|
4142
4140
|
});
|
|
4143
4141
|
|
|
@@ -10081,7 +10079,7 @@
|
|
|
10081
10079
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10082
10080
|
});
|
|
10083
10081
|
|
|
10084
|
-
const packageVersion = "0.14.
|
|
10082
|
+
const packageVersion = "0.14.732";
|
|
10085
10083
|
|
|
10086
10084
|
exports.Blocks = Blocks;
|
|
10087
10085
|
exports.ContentPage = ContentPage;
|