From ba18f600fbbe9104479a3e3815e9c3ea0fe977a6 Mon Sep 17 00:00:00 2001 From: ricky Date: Thu, 19 Mar 2020 12:07:12 -0400 Subject: [PATCH] Tx popover (#8210) * Add minimal working popover * Fix styling of popover component * Use lorem ipsum * Update classnames and remove unrelated styles * Remove unused components * Add SVG close icon * Add Close icon to icon stories * Use div * Use `addon-actions` * Use ` + +) + +PopoverHeader.propTypes = { + title: PropTypes.string.isRequired, + onClose: PropTypes.func.isRequired, +} + +export default PopoverHeader diff --git a/ui/app/components/ui/popover/popover.stories.js b/ui/app/components/ui/popover/popover.stories.js new file mode 100644 index 000000000..3edeef126 --- /dev/null +++ b/ui/app/components/ui/popover/popover.stories.js @@ -0,0 +1,24 @@ +import React from 'react' +import Popover from './popover.component' +import { text } from '@storybook/addon-knobs/react' +import { action } from '@storybook/addon-actions' + +const containerStyle = { + width: 800, + height: 600, + background: 'pink', + position: 'relative', +} + +export default { + title: 'Popover', +} + +export const approve = () => ( +
+ +

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Semper eget duis at tellus at urna condimentum. Posuere urna nec tincidunt praesent semper. Arcu dictum varius duis at. A lacus vestibulum sed arcu. Orci porta non pulvinar neque laoreet suspendisse interdum. Pretium fusce id velit ut. Ut consequat semper viverra nam libero justo laoreet sit. In ante metus dictum at tempor commodo ullamcorper a lacus. Posuere morbi leo urna molestie at elementum eu facilisis sed. Libero enim sed faucibus turpis in eu mi bibendum neque. Amet massa vitae tortor condimentum lacinia quis. Pretium viverra suspendisse potenti nullam ac. Pellentesque elit eget gravida cum sociis natoque penatibus. Proin libero nunc consequat interdum varius sit amet. Est ultricies integer quis auctor elit sed vulputate. Ornare arcu odio ut sem nulla pharetra. Eget nullam non nisi est sit. Leo vel fringilla est ullamcorper eget nulla.

+

Mattis pellentesque id nibh tortor id. Commodo sed egestas egestas fringilla phasellus. Semper eget duis at tellus at urna. Tristique nulla aliquet enim tortor at auctor urna nunc. Pellentesque habitant morbi tristique senectus et netus et. Turpis egestas sed tempus urna et pharetra pharetra massa massa. Mi eget mauris pharetra et ultrices neque ornare aenean. Facilisis volutpat est velit egestas dui id ornare arcu odio. Lacus sed turpis tincidunt id aliquet risus feugiat in. Cras tincidunt lobortis feugiat vivamus. Blandit libero volutpat sed cras ornare arcu. Facilisi morbi tempus iaculis urna id volutpat. Risus viverra adipiscing at in tellus. Leo vel orci porta non pulvinar neque. Malesuada fames ac turpis egestas integer. Euismod nisi porta lorem mollis aliquam.

+
+
+) diff --git a/ui/app/css/itcss/components/index.scss b/ui/app/css/itcss/components/index.scss index d3866f5ce..d1697c564 100644 --- a/ui/app/css/itcss/components/index.scss +++ b/ui/app/css/itcss/components/index.scss @@ -2,6 +2,7 @@ @import '../../../components/ui/dialog/dialog'; @import '../../../components/ui/snackbar/index'; @import '../../../components/ui/list-item/index'; +@import '../../../components/ui/popover/index'; @import '../../../components/ui/icon/preloader/index'; @import './footer.scss';