@iwsio/react-blog-examples
Advanced tools
Comparing version 4.0.1-alpha.1 to 4.0.1-alpha.2
@@ -35,4 +35,4 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
}, [result, resultUpdated]); | ||
return (_jsxs(FieldManager, { className: `flex flex-col gap-2 ${className ?? ''}`, fields: { ...defaultValues }, defaultValues: defaultValues, onValidSubmit: handleValidSubmit, errorMapping: simpleErrorMapping, ref: refDom, children: [_jsxs("div", { className: "flex items-stretch gap-4", children: [_jsx(JsonField, { name: "items", label: "Items" }), _jsx(JsonField, { name: "options", label: "Options" })] }), _jsxs("div", { className: "flex items-center justify-end gap-2", children: [_jsx(ResetButton, { className: "btn btn-accent", onReset: () => setResult(_old => '') }), _jsx("button", { type: "submit", className: "btn btn-primary", children: "Convert" })] }), _jsx(ResultView, { result: result })] })); | ||
return (_jsxs(FieldManager, { className: `flex flex-col gap-2 ${className ?? ''}`, fields: { ...defaultValues }, defaultValues: defaultValues, onValidSubmit: handleValidSubmit, errorMapping: simpleErrorMapping, ref: refDom, children: [_jsxs("div", { className: "flex items-stretch gap-4", children: [_jsx(JsonField, { name: "items", label: "Items" }), _jsx(JsonField, { name: "options", label: "Options" })] }), _jsxs("div", { className: "flex items-center justify-end gap-2", children: [_jsx(ResetButton, { className: "btn btn-accent", onReset: () => setResult(_old => '') }), _jsx("button", { type: "submit", className: "btn", children: "Convert" })] }), _jsx(ResultView, { result: result })] })); | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -31,4 +31,4 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
}, [checkValueAndTriggerChange, fields, name]); | ||
return (_jsx("div", { className: "flex grow", children: _jsxs("label", { className: "label prose grow flex-col items-start gap-2", children: [_jsx("h3", { children: label }), _jsxs("div", { className: "relative flex", children: [_jsx(InvalidFeedbackForField, { name: name, className: "absolute -top-4 left-1/2 -translate-x-1/2 rounded-full bg-red-500 px-2 py-0 text-white" }), _jsx(TextAreaField, { name: name, className: classNames('textarea textarea-bordered grow font-mono', { '!border-red-500': fieldError != null }), rows: 25, required: true, ...props })] })] }) })); | ||
return (_jsx("div", { className: "flex grow", children: _jsxs("label", { className: "label prose grow flex-col items-start gap-2", children: [_jsx("h3", { children: label }), _jsxs("div", { className: "relative flex", children: [_jsx(InvalidFeedbackForField, { name: name, className: "indicator indicator-error" }), _jsx(TextAreaField, { name: name, className: classNames('textarea textarea-bordered grow font-mono', { '!border-red-500': fieldError != null }), rows: 25, required: true, ...props })] })] }) })); | ||
}; | ||
//# sourceMappingURL=JsonField.js.map |
{ | ||
"name": "@iwsio/react-blog-examples", | ||
"version": "4.0.1-alpha.1", | ||
"version": "4.0.1-alpha.2", | ||
"description": "Example React components for blog posts.", | ||
@@ -5,0 +5,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23523