UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

55 lines 5.46 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.InitialIndexSet = exports.Basic = exports.Default = void 0; var react_1 = __importStar(require("react")); var Accordion_1 = __importStar(require("./Accordion")); exports.default = { title: 'Layout/Accordion', component: Accordion_1.AccordionDumb, subcomponents: { 'Accordion.Item': Accordion_1.default.Item }, parameters: { notes: Accordion_1.AccordionDumb.peek.description, docs: { inlineStories: false, }, }, }; var Default = function () { return (react_1.default.createElement(Accordion_1.default, null, react_1.default.createElement(Accordion_1.default.Item, { Header: 'Item 1' }, "Item 1 Content"))); }; exports.Default = Default; var Basic = function () { return (react_1.default.createElement(Accordion_1.default, null, react_1.default.createElement(Accordion_1.default.Item, { Header: 'Peter Venkman' }, "Peter Venkman, Ph.D. is a fictional character from the Ghostbusters franchise. He appears in the films Ghostbusters and Ghostbusters II and in the animated television series The Real Ghostbusters. In both live action films, he was portrayed by Bill Murray, and was voiced in the animated series first by Lorenzo Music and then by Dave Coulier. He is a parapsychologist and the leader of the Ghostbusters."), react_1.default.createElement(Accordion_1.default.Item, { Header: 'Ray Stantz' }, "Raymond Ray Stantz, Ph.D. is a fictional character from the Ghostbusters franchise. He appears in the films Ghostbusters, Ghostbusters II, Casper, and the animated television series The Real Ghostbusters. He was portrayed by Dan Aykroyd in both live action films, and voiced by Frank Welker in the animated series. He is a member of the Ghostbusters and one of the three doctors of parapsychology, along with Dr. Peter Venkman and Dr. Egon Spengler."), react_1.default.createElement(Accordion_1.default.Item, { Header: 'Egon Spengler' }, "Egon Spengler, Ph.D. is a fictional character from the Ghostbusters franchise. He appears in the films Ghostbusters and Ghostbusters II, in the animated television series The Real Ghostbusters, and later in Extreme Ghostbusters. Spengler was portrayed by Harold Ramis in the films and voiced by him in Ghostbusters: The Video Game, and voiced by Maurice LaMarche in the cartoon series. He is a member of the Ghostbusters and one of the three doctors of parapsychology, along with Dr. Peter Venkman and Dr. Raymond Stantz."))); }; exports.Basic = Basic; var InitialIndexSet = function () { var _a = react_1.useState(2), index = _a[0], setIndex = _a[1]; var handleChange = function (index) { setIndex(index); }; return (react_1.default.createElement(Accordion_1.default, { onSelect: handleChange, selectedIndex: index }, react_1.default.createElement(Accordion_1.default.Item, { Header: 'Peter Venkman' }, "Peter Venkman, Ph.D. is a fictional character from the Ghostbusters franchise. He appears in the films Ghostbusters and Ghostbusters II and in the animated television series The Real Ghostbusters. In both live action films, he was portrayed by Bill Murray, and was voiced in the animated series first by Lorenzo Music and then by Dave Coulier. He is a parapsychologist and the leader of the Ghostbusters."), react_1.default.createElement(Accordion_1.default.Item, { Header: 'Ray Stantz' }, "Raymond Ray Stantz, Ph.D. is a fictional character from the Ghostbusters franchise. He appears in the films Ghostbusters, Ghostbusters II, Casper, and the animated television series The Real Ghostbusters. He was portrayed by Dan Aykroyd in both live action films, and voiced by Frank Welker in the animated series. He is a member of the Ghostbusters and one of the three doctors of parapsychology, along with Dr. Peter Venkman and Dr. Egon Spengler."), react_1.default.createElement(Accordion_1.default.Item, { Header: 'Egon Spengler' }, "Egon Spengler, Ph.D. is a fictional character from the Ghostbusters franchise. He appears in the films Ghostbusters and Ghostbusters II, in the animated television series The Real Ghostbusters, and later in Extreme Ghostbusters. Spengler was portrayed by Harold Ramis in the films and voiced by him in Ghostbusters: The Video Game, and voiced by Maurice LaMarche in the cartoon series. He is a member of the Ghostbusters and one of the three doctors of parapsychology, along with Dr. Peter Venkman and Dr. Raymond Stantz."))); }; exports.InitialIndexSet = InitialIndexSet; //# sourceMappingURL=Accordion.stories.js.map