UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

41 lines (39 loc) 1.1 kB
/* eslint-disable indent */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import IconSettings from '../../icon-settings'; import { TIME_PICKER } from '../../../utilities/constants'; import Timepicker from '../../time-picker'; import Default from '../__examples__/default'; var getTimepicker = function getTimepicker(props) { return ( /*#__PURE__*/ React.createElement(Timepicker, props) ); }; storiesOf(TIME_PICKER, module).addDecorator(function (getStory) { return ( /*#__PURE__*/ React.createElement("div", { className: "slds-p-around_medium" }, /*#__PURE__*/ React.createElement(IconSettings, { iconPath: "/assets/icons" }, getStory())) ); }).add('Base', function () { return getTimepicker({ label: 'Time', required: true, stepInMinutes: 30, onDateChange: action('onDateChange') }); }).add('Docs site Default', function () { return ( /*#__PURE__*/ React.createElement(Default, null) ); }); //# sourceMappingURL=storybook-stories.js.map