chore: Remove unused Popover component
This commit is contained in:
parent
a2fb3bb9f8
commit
6d88c02869
|
@ -1,66 +0,0 @@
|
|||
// @flow
|
||||
import BoundlessPopover from "boundless-popover";
|
||||
import * as React from "react";
|
||||
import styled, { keyframes } from "styled-components";
|
||||
|
||||
const fadeIn = keyframes`
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
opacity: 1;
|
||||
}
|
||||
`;
|
||||
|
||||
const StyledPopover = styled(BoundlessPopover)`
|
||||
animation: ${fadeIn} 150ms ease-in-out;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
line-height: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: ${(props) => props.theme.depths.popover};
|
||||
|
||||
svg {
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
position: absolute;
|
||||
|
||||
polygon:first-child {
|
||||
fill: rgba(0, 0, 0, 0.075);
|
||||
}
|
||||
polygon {
|
||||
fill: #fff;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const Dialog = styled.div`
|
||||
outline: none;
|
||||
background: #fff;
|
||||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 8px 16px rgba(0, 0, 0, 0.1),
|
||||
0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 4px;
|
||||
line-height: 1.5;
|
||||
padding: 16px;
|
||||
margin-top: 14px;
|
||||
min-width: 200px;
|
||||
min-height: 150px;
|
||||
`;
|
||||
|
||||
export const Preset = BoundlessPopover.preset;
|
||||
|
||||
export default function Popover(props: Object) {
|
||||
return (
|
||||
<StyledPopover
|
||||
dialogComponent={Dialog}
|
||||
closeOnOutsideScroll
|
||||
closeOnOutsideFocus
|
||||
closeOnEscKey
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
|
@ -1,58 +0,0 @@
|
|||
// flow-typed signature: 81720de1e8cfea1529815ce45326fdff
|
||||
// flow-typed version: <<STUB>>/boundless-popover_v^1.0.4/flow_v0.104.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
*
|
||||
* 'boundless-popover'
|
||||
*
|
||||
* Fill this stub out by replacing all the `any` types.
|
||||
*
|
||||
* Once filled out, we encourage you to share your work with the
|
||||
* community by sending a pull request to:
|
||||
* https://github.com/flowtype/flow-typed
|
||||
*/
|
||||
|
||||
declare module 'boundless-popover' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* We include stubs for each file inside this npm package in case you need to
|
||||
* require those files directly. Feel free to delete any files that aren't
|
||||
* needed.
|
||||
*/
|
||||
declare module 'boundless-popover/build' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'boundless-popover/demo' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'boundless-popover/index.spec' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
// Filename aliases
|
||||
declare module 'boundless-popover/build/index' {
|
||||
declare module.exports: $Exports<'boundless-popover/build'>;
|
||||
}
|
||||
declare module 'boundless-popover/build/index.js' {
|
||||
declare module.exports: $Exports<'boundless-popover/build'>;
|
||||
}
|
||||
declare module 'boundless-popover/demo/index' {
|
||||
declare module.exports: $Exports<'boundless-popover/demo'>;
|
||||
}
|
||||
declare module 'boundless-popover/demo/index.js' {
|
||||
declare module.exports: $Exports<'boundless-popover/demo'>;
|
||||
}
|
||||
declare module 'boundless-popover/index' {
|
||||
declare module.exports: $Exports<'boundless-popover'>;
|
||||
}
|
||||
declare module 'boundless-popover/index.js' {
|
||||
declare module.exports: $Exports<'boundless-popover'>;
|
||||
}
|
||||
declare module 'boundless-popover/index.spec.js' {
|
||||
declare module.exports: $Exports<'boundless-popover/index.spec'>;
|
||||
}
|
|
@ -78,7 +78,6 @@
|
|||
"babel-plugin-styled-components": "^1.11.1",
|
||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||
"boundless-arrow-key-navigation": "^1.0.4",
|
||||
"boundless-popover": "^1.0.4",
|
||||
"bull": "^3.5.2",
|
||||
"cancan": "3.1.0",
|
||||
"compressorjs": "^1.0.7",
|
||||
|
@ -212,4 +211,4 @@
|
|||
"js-yaml": "^3.13.1"
|
||||
},
|
||||
"version": "0.52.0"
|
||||
}
|
||||
}
|
38
yarn.lock
38
yarn.lock
|
@ -2702,44 +2702,11 @@ boundless-arrow-key-navigation@^1.0.4:
|
|||
boundless-utils-omit-keys "^1.1.0"
|
||||
boundless-utils-uuid "^1.1.0"
|
||||
|
||||
boundless-dialog@^1.1.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/boundless-dialog/-/boundless-dialog-1.1.0.tgz#31e97a17c5eb1e2aa9068066a752720aa04d5df2"
|
||||
integrity sha1-Mel6F8XrHiqpBoBmp1JyCqBNXfI=
|
||||
dependencies:
|
||||
boundless-portal "^1.1.0"
|
||||
boundless-utils-omit-keys "^1.1.0"
|
||||
classnames "^2.1.5"
|
||||
|
||||
boundless-popover@^1.0.4:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/boundless-popover/-/boundless-popover-1.1.0.tgz#1c4d8aa045486a34aa3eaf9fdccccfa7aed478cf"
|
||||
integrity sha1-HE2KoEVIajSqPq+f3MzPp67UeM8=
|
||||
dependencies:
|
||||
boundless-dialog "^1.1.0"
|
||||
boundless-portal "^1.1.0"
|
||||
boundless-utils-omit-keys "^1.1.0"
|
||||
boundless-utils-transform-property "^1.1.0"
|
||||
classnames "^2.1.5"
|
||||
|
||||
boundless-portal@^1.1.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/boundless-portal/-/boundless-portal-1.1.0.tgz#cbf990f7f9a03cecf44736bffdb4d780f6c9e8c1"
|
||||
integrity sha1-y/mQ9/mgPOz0Rza//bTXgPbJ6ME=
|
||||
dependencies:
|
||||
boundless-utils-omit-keys "^1.1.0"
|
||||
boundless-utils-uuid "^1.1.0"
|
||||
|
||||
boundless-utils-omit-keys@^1.1.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/boundless-utils-omit-keys/-/boundless-utils-omit-keys-1.1.0.tgz#fae73cdb90c113d56201d0b62e8f1143e0d193be"
|
||||
integrity sha1-+uc825DBE9ViAdC2Lo8RQ+DRk74=
|
||||
|
||||
boundless-utils-transform-property@^1.1.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/boundless-utils-transform-property/-/boundless-utils-transform-property-1.1.0.tgz#95da14d79d8dd05fe7bfe6d9636b8b8d1ec7565d"
|
||||
integrity sha1-ldoU152N0F/nv+bZY2uLjR7HVl0=
|
||||
|
||||
boundless-utils-uuid@^1.1.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/boundless-utils-uuid/-/boundless-utils-uuid-1.1.0.tgz#ae709f1d4fd3a4557ad4a5c77b1f0a9f701e3ed3"
|
||||
|
@ -3296,11 +3263,6 @@ class-utils@^0.3.5:
|
|||
isobject "^3.0.0"
|
||||
static-extend "^0.1.1"
|
||||
|
||||
classnames@^2.1.5:
|
||||
version "2.2.6"
|
||||
resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce"
|
||||
integrity sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==
|
||||
|
||||
clean-css@4.2.x, clean-css@^4.0.12:
|
||||
version "4.2.3"
|
||||
resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.3.tgz#507b5de7d97b48ee53d84adb0160ff6216380f78"
|
||||
|
|
Reference in New Issue