UNPKG

@uva-glass/component-library

Version:

React components UvA

40 lines (39 loc) 1.26 kB
import { jsx as t } from "react/jsx-runtime"; import { ActionList as n } from "./ActionList.js"; const o = ` <ActionList iconName={iconName} variant={variant} label=""> {mockActions.map(({ action, value }) => ( <button type="button" onClick={() => onActionClick({ action, id })} key={value}> {action.title} </button> ))} </ActionList> `, l = { title: "Atoms/ActionList", component: n, argTypes: { variant: { options: ["primary", "secondary", "destructive-primary", "destructive-secondary", "blank", "blank-icon"], control: { type: "radio" } } }, parameters: { inspectComponent: n, codeString: o } }, e = (i) => /* @__PURE__ */ t("div", { style: { marginLeft: "5rem", width: "40px" }, children: /* @__PURE__ */ t(n, { ...i }) }), c = { label: "", variant: "blank-icon", iconName: "EllipsisVertical", children: [ /* @__PURE__ */ t("button", { type: "button", children: "Action 1" }, "1"), /* @__PURE__ */ t("button", { type: "button", children: "Action 2" }, "2"), /* @__PURE__ */ t("button", { type: "button", children: "Action 3" }, "3") ] }, a = e.bind({}); a.args = { ...c }; export { a as ActionListExample, l as default }; //# sourceMappingURL=ActionList.stories.js.map