UNPKG

fui-fancyui

Version:
37 lines (36 loc) 1.16 kB
"use client"; import { jsx as e, jsxs as s } from "react/jsx-runtime"; import { useState as u } from "react"; import d from "../../icons/SVGPlus/SVGPlus.js"; import { Wrapper as f, SpeedDialContainer as h, MenueItemWrapper as I, MenueItemContainer as $, Button as O, Ring as S } from "./SpeedDailButton.style.js"; import x from "../ActionItem/ActionItem.js"; function j(l) { const { items: t, labelAlign: i, themeType: p = "primary", layer: a = 2, ...m } = l, [n, c] = u(!1); return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ s(h, { children: [ /* @__PURE__ */ e(I, { $textAlign: i, children: t == null ? void 0 : t.map((r, o) => /* @__PURE__ */ e($, { $index: o, $actionItemSize: "md", $isOpen: n, children: /* @__PURE__ */ e( x, { icon: r.icon, label: r.label, themeType: p, layer: a, labelAlign: i, ...m } ) }, o)) }), /* @__PURE__ */ e( O, { $isOpen: n, onClick: () => { c(!n); }, children: /* @__PURE__ */ e(d, {}) } ), /* @__PURE__ */ e(S, { $isOpen: n }) ] }) }); } export { j as default };