@redneckz/wildless-cms-uni-blocks 0.14.1043 → 0.14.1044
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 +4 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/model/FormTypeFieldDef.d.ts +1 -1
- package/dist/model/FormTypeFieldDef.d.ts +1 -1
- package/dist/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
- package/dist/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +2 -2
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +2 -0
- package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
- package/lib/model/FormTypeFieldDef.d.ts +1 -1
- package/lib/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
- package/lib/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +2 -2
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/dist/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
- package/mobile/dist/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +2 -2
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
- package/mobile/lib/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +2 -2
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +50 -0
- package/mobile/src/model/FormTypeFieldDef.ts +2 -1
- package/mobile/src/ui-kit/DatePicker/renderDatePickerForm.tsx +1 -1
- package/mobile/src/ui-kit/Input/Input.tsx +2 -0
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.example.json +50 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +53 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +55 -0
- package/src/model/FormTypeFieldDef.ts +2 -1
- package/src/ui-kit/DatePicker/renderDatePickerForm.tsx +1 -1
- package/src/ui-kit/Input/Input.tsx +2 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -1919,7 +1919,7 @@
|
|
|
1919
1919
|
|
|
1920
1920
|
const Input = JSX(
|
|
1921
1921
|
// eslint-disable-next-line max-lines-per-function
|
|
1922
|
-
({ key, className, id, name, type = 'text', label, placeholder, value = '', valid = true, pattern, autoFocus = false, isTextarea = false, disabled = false, children, onChange, onFocus, onBlur, }) => {
|
|
1922
|
+
({ key, className, id, name, type = 'text', maxLength, label, placeholder, value = '', valid = true, pattern, autoFocus = false, isTextarea = false, disabled = false, children, onChange, onFocus, onBlur, }) => {
|
|
1923
1923
|
const inputRef = useRef(null);
|
|
1924
1924
|
const handleChange = useCallback((e) => {
|
|
1925
1925
|
const valueWithoutSpace = (e.target?.value ?? '').trimStart();
|
|
@@ -1933,7 +1933,7 @@
|
|
|
1933
1933
|
const paddingStyle = children ? 'pr-3xl' : '';
|
|
1934
1934
|
const validStyle = getValidStyle(valid);
|
|
1935
1935
|
const ariaLabel = label ?? name ?? id;
|
|
1936
|
-
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel$1(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), value: value, name: name || id, placeholder: placeholder, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { ref: inputRef, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), id: id, type: type, value: value, name: name || id, placeholder: placeholder, pattern: pattern, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, "data-test-id": name }, key))] }), children] }));
|
|
1936
|
+
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel$1(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), value: value, name: name || id, placeholder: placeholder, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, maxlength: maxLength }, key)) : (jsx("input", { ref: inputRef, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), id: id, type: type, value: value, name: name || id, placeholder: placeholder, pattern: pattern, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, "data-test-id": name }, key))] }), children] }));
|
|
1937
1937
|
});
|
|
1938
1938
|
|
|
1939
1939
|
const renderErrorText = (error) => (jsx("div", { className: "min-h-6", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null }));
|
|
@@ -2905,7 +2905,7 @@
|
|
|
2905
2905
|
}
|
|
2906
2906
|
};
|
|
2907
2907
|
|
|
2908
|
-
const formStyle = 'flex justify-between items-center h-14 border rounded-md cursor-pointer ' +
|
|
2908
|
+
const formStyle = 'flex justify-between items-center h-14 border rounded-md cursor-pointer overflow-hidden ' +
|
|
2909
2909
|
'hover:border-black active:border-black focus:border-black';
|
|
2910
2910
|
const renderDatePickerForm = ({ handleChangeVisibleCalendar, value, valid, onChange, setSelectedMonth, setSelectedYear, disabled = false, name, }) => (jsx(DatePickerInput, { onChange: onChange, disabled: disabled, onClick: handleChangeVisibleCalendar, value: value && formatDate(value), setSelectedMonth: setSelectedMonth, setSelectedYear: setSelectedYear, className: style(formStyle, valid ? 'border-gray' : 'border-error'), name: name }));
|
|
2911
2911
|
|
|
@@ -14750,7 +14750,7 @@
|
|
|
14750
14750
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14751
14751
|
});
|
|
14752
14752
|
|
|
14753
|
-
const packageVersion = "0.14.
|
|
14753
|
+
const packageVersion = "0.14.1043";
|
|
14754
14754
|
|
|
14755
14755
|
exports.Blocks = Blocks;
|
|
14756
14756
|
exports.ContentPage = ContentPage;
|