UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

48 lines (47 loc) 1.21 kB
import { jsxs as p, jsx as t } from "react/jsx-runtime"; import { GridLegacy as e, Box as c } from "@mui/material"; import { getUiOptions as u, getTemplate as f } from "@rjsf/utils"; function g(r) { const { children: i, hasToolbar: s, uiSchema: a, registry: o, buttonsProps: n } = r, l = u(a), m = f("ArrayFieldItemButtonsTemplate", o, l); return /* @__PURE__ */ p( e, { container: !0, className: "rjsf-array-item", sx: { gap: 2, justifyContent: "space-between" }, children: [ /* @__PURE__ */ t(e, { item: !0, xs: !0, children: /* @__PURE__ */ t( c, { sx: { mb: 2 }, children: i } ) }), s && /* @__PURE__ */ t( e, { item: !0, sx: { display: "flex", flexDirection: "row", gap: 1, justifyContent: "flex-start", alignSelf: "start", my: 1 }, children: /* @__PURE__ */ t(m, { ...n }) } ) ] } ); } export { g as default }; //# sourceMappingURL=ArrayFieldItemTemplate.js.map