2019-09-26 11:11:28 +00:00
|
|
|
import styled from "styled-components";
|
2019-10-21 15:12:45 +00:00
|
|
|
import { Color } from "./Colors";
|
2019-09-26 11:11:28 +00:00
|
|
|
|
|
|
|
|
export type IconProps = {
|
2020-02-25 11:33:07 +00:00
|
|
|
width?: number;
|
|
|
|
|
height?: number;
|
|
|
|
|
color?: Color;
|
|
|
|
|
background?: Color;
|
2020-03-27 09:02:11 +00:00
|
|
|
onClick?: (e?: any) => void;
|
2020-04-03 08:36:02 +00:00
|
|
|
className?: string;
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
keepColors?: boolean;
|
2019-09-26 11:11:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const IconWrapper = styled.div<IconProps>`
|
2019-10-24 11:47:35 +00:00
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
2019-12-23 12:16:33 +00:00
|
|
|
display: inline-block;
|
2020-01-27 08:24:58 +00:00
|
|
|
width: ${props => props.width}px;
|
|
|
|
|
height: ${props => props.height}px;
|
2019-09-26 11:11:28 +00:00
|
|
|
svg {
|
|
|
|
|
width: ${props => props.width || props.theme.fontSizes[7]}px;
|
|
|
|
|
height: ${props => props.height || props.theme.fontSizes[7]}px;
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
${props =>
|
|
|
|
|
!props.keepColors
|
|
|
|
|
? `path {
|
|
|
|
|
fill: ${props.color || props.theme.colors.textOnDarkBG};
|
2019-09-26 11:11:28 +00:00
|
|
|
}
|
2019-11-07 04:59:40 +00:00
|
|
|
circle {
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
fill: ${props.background || props.theme.colors.paneBG};
|
|
|
|
|
}`
|
|
|
|
|
: ""}
|
2019-09-26 11:11:28 +00:00
|
|
|
`;
|