UNPKG

@navinc/base-react-components

Version:
21 lines 1.4 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const react_1 = require("@storybook/react"); const addon_actions_1 = require("@storybook/addon-actions"); const readme_md_1 = __importDefault(require("./readme.md")); const _1 = __importDefault(require("./")); (0, react_1.storiesOf)('__ | Deprecated', module).add('Card', () => { const onBack = 'function()'; const onDismiss = 'function()'; const onNext = 'function()'; const onToggleKebab = 'function()'; const onUndo = 'function()'; return ((0, jsx_runtime_1.jsx)(_1.default, Object.assign({ buttonLabel: "Click this", cardLabel: "Some cool label", title: "Really fantastic title", kebabMenuItems: [{ label: 'hide', icon: 'foo' }], onBack: onBack && (0, addon_actions_1.action)(onBack), onDismiss: onDismiss && (0, addon_actions_1.action)(onDismiss), onNext: onNext && (0, addon_actions_1.action)(onNext), onToggleKebab: onToggleKebab && (0, addon_actions_1.action)(onToggleKebab), onUndo: onUndo && (0, addon_actions_1.action)(onUndo), buttonDisabled: false, buttonForm: "" }, { children: "Body content goes here!" }))); }, { readme: { content: readme_md_1.default }, }); //# sourceMappingURL=story.js.map