2019-09-05 17:47:50 +00:00
|
|
|
import * as styledComponents from "styled-components";
|
2019-09-22 20:25:05 +00:00
|
|
|
import { Colors, Color } from "./Colors";
|
2019-09-05 17:47:50 +00:00
|
|
|
import * as FontFamilies from "./Fonts";
|
2019-12-23 12:16:33 +00:00
|
|
|
import tinycolor from "tinycolor2";
|
2020-02-06 07:01:25 +00:00
|
|
|
import { Classes } from "@blueprintjs/core";
|
2020-02-25 11:33:07 +00:00
|
|
|
import { AlertIcons } from "icons/AlertIcons";
|
|
|
|
|
import { IconProps } from "constants/IconConstants";
|
|
|
|
|
import { JSXElementConstructor } from "react";
|
2019-11-22 14:02:55 +00:00
|
|
|
export type FontFamily = typeof FontFamilies[keyof typeof FontFamilies];
|
2019-02-10 15:06:57 +00:00
|
|
|
|
|
|
|
|
const {
|
|
|
|
|
default: styled,
|
|
|
|
|
css,
|
|
|
|
|
keyframes,
|
|
|
|
|
createGlobalStyle,
|
2019-09-05 17:47:50 +00:00
|
|
|
ThemeProvider,
|
|
|
|
|
} = styledComponents as styledComponents.ThemedStyledComponentsModule<Theme>;
|
2019-02-10 15:06:57 +00:00
|
|
|
|
2019-12-16 08:49:10 +00:00
|
|
|
export const IntentColors: Record<string, Color> = {
|
|
|
|
|
primary: Colors.GREEN,
|
|
|
|
|
success: Colors.PURPLE,
|
2019-12-23 12:16:33 +00:00
|
|
|
secondary: Colors.BLACK_PEARL,
|
2019-12-16 08:49:10 +00:00
|
|
|
danger: Colors.RED,
|
|
|
|
|
none: Colors.GEYSER_LIGHT,
|
|
|
|
|
warning: Colors.JAFFA,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type Intent = typeof IntentColors[keyof typeof IntentColors];
|
|
|
|
|
|
2020-02-25 11:33:07 +00:00
|
|
|
export const IntentIcons: Record<Intent, JSXElementConstructor<IconProps>> = {
|
|
|
|
|
primary: AlertIcons.SUCCESS,
|
|
|
|
|
success: AlertIcons.SUCCESS,
|
|
|
|
|
secondary: AlertIcons.INFO,
|
|
|
|
|
danger: AlertIcons.ERROR,
|
|
|
|
|
none: AlertIcons.INFO,
|
|
|
|
|
warning: AlertIcons.WARNING,
|
|
|
|
|
};
|
|
|
|
|
|
2020-05-29 06:07:18 +00:00
|
|
|
export enum Skin {
|
|
|
|
|
LIGHT,
|
|
|
|
|
DARK,
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-04 07:02:36 +00:00
|
|
|
export const hideScrollbar = css`
|
|
|
|
|
scrollbar-width: none;
|
|
|
|
|
-ms-overflow-style: none;
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
display: none;
|
|
|
|
|
-webkit-appearance: none;
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
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
|
|
|
export const scrollbarDark = css`
|
2020-12-24 04:32:25 +00:00
|
|
|
scrollbar-color: ${(props) => props.theme.colors.paneCard}
|
|
|
|
|
${(props) => props.theme.colors.paneBG};
|
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
|
|
|
scrollbar-width: thin;
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
width: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
|
box-shadow: inset 0 0 6px
|
2020-12-24 04:32:25 +00:00
|
|
|
${(props) => getColorWithOpacity(props.theme.colors.paneBG, 0.3)};
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
2020-12-24 04:32:25 +00:00
|
|
|
background-color: ${(props) => props.theme.colors.paneCard};
|
|
|
|
|
border-radius: ${(props) => props.theme.radii[1]}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
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2021-01-27 06:12:32 +00:00
|
|
|
export const getTypographyByKey = (props: Record<string, any>, key: string) => `
|
|
|
|
|
font-weight: ${props.theme.typography[key].fontWeight};
|
|
|
|
|
font-size: ${props.theme.typography[key].fontSize}px;
|
|
|
|
|
line-height: ${props.theme.typography[key].lineHeight}px;
|
|
|
|
|
letter-spacing: ${props.theme.typography[key].letterSpacing}px;
|
|
|
|
|
`;
|
|
|
|
|
|
2020-02-06 07:01:25 +00:00
|
|
|
export const BlueprintControlTransform = css`
|
|
|
|
|
&& {
|
|
|
|
|
.${Classes.CONTROL} {
|
|
|
|
|
& input:checked ~ .${Classes.CONTROL_INDICATOR} {
|
2020-12-24 04:32:25 +00:00
|
|
|
background: ${(props) => props.theme.colors.primaryOld};
|
2020-02-06 07:01:25 +00:00
|
|
|
box-shadow: none;
|
2020-12-24 04:32:25 +00:00
|
|
|
border: 2px solid ${(props) => props.theme.colors.primaryOld};
|
2020-02-06 07:01:25 +00:00
|
|
|
}
|
|
|
|
|
& input:not(:disabled):active ~ .${Classes.CONTROL_INDICATOR} {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
border: 2px solid ${Colors.SLATE_GRAY};
|
|
|
|
|
}
|
|
|
|
|
& input:not(:disabled):active:checked ~ .${Classes.CONTROL_INDICATOR} {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
border: 2px solid ${Colors.SLATE_GRAY};
|
|
|
|
|
}
|
|
|
|
|
&:hover .${Classes.CONTROL_INDICATOR} {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
background: none;
|
|
|
|
|
border: 2px solid ${Colors.SLATE_GRAY};
|
|
|
|
|
}
|
2021-02-16 12:15:17 +00:00
|
|
|
&.${Classes.SWITCH}
|
|
|
|
|
input:checked:disabled
|
|
|
|
|
~ .${Classes.CONTROL_INDICATOR} {
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
}
|
2020-02-06 07:01:25 +00:00
|
|
|
}
|
2021-02-08 07:30:01 +00:00
|
|
|
|
|
|
|
|
.${Classes.CHECKBOX} .${Classes.CONTROL_INDICATOR} {
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-16 12:15:17 +00:00
|
|
|
.${Classes.SWITCH} {
|
|
|
|
|
input:checked ~ .${Classes.CONTROL_INDICATOR} {
|
|
|
|
|
&::before {
|
|
|
|
|
left: calc(105% - 1em);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& .${Classes.CONTROL_INDICATOR} {
|
|
|
|
|
background: #d0d7dd;
|
|
|
|
|
border: 2px solid #d0d7dd;
|
|
|
|
|
&::before {
|
|
|
|
|
box-shadow: -2px 2px 5px rgba(67, 86, 100, 0.1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
& input:not(:disabled):active:checked ~ .${Classes.CONTROL_INDICATOR} {
|
|
|
|
|
background: ${(props) => props.theme.colors.primaryOld};
|
|
|
|
|
}
|
|
|
|
|
&:hover .${Classes.CONTROL_INDICATOR} {
|
|
|
|
|
background: #d0d7dd;
|
|
|
|
|
border: 2px solid #d0d7dd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-06 07:01:25 +00:00
|
|
|
.${Classes.CONTROL_INDICATOR} {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
background: none;
|
|
|
|
|
border: 2px solid ${Colors.SLATE_GRAY};
|
|
|
|
|
&::before {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: -2px;
|
|
|
|
|
top: -2px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2020-02-11 09:56:21 +00:00
|
|
|
export const invisible = css`
|
|
|
|
|
&& > * {
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2020-02-06 07:01:25 +00:00
|
|
|
export const BlueprintCSSTransform = css`
|
|
|
|
|
&&&& {
|
|
|
|
|
.${Classes.BUTTON} {
|
|
|
|
|
box-shadow: none;
|
2021-02-08 07:30:01 +00:00
|
|
|
border-radius: 0;
|
2020-02-24 07:30:53 +00:00
|
|
|
background: white;
|
2020-02-06 07:01:25 +00:00
|
|
|
}
|
|
|
|
|
.${Classes.INTENT_PRIMARY} {
|
|
|
|
|
background: ${IntentColors.primary};
|
|
|
|
|
}
|
|
|
|
|
.${Classes.INTENT_SUCCESS} {
|
|
|
|
|
background: ${IntentColors.success};
|
|
|
|
|
}
|
|
|
|
|
.${Classes.INTENT_DANGER} {
|
|
|
|
|
background: ${IntentColors.danger};
|
|
|
|
|
}
|
|
|
|
|
.${Classes.INTENT_WARNING} {
|
|
|
|
|
background: ${IntentColors.warning};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2019-12-23 12:16:33 +00:00
|
|
|
export const darken = (color: Color, intensity: number) => {
|
|
|
|
|
return new tinycolor(color).darken(intensity).toString();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const darkenHover = (color: Color) => {
|
|
|
|
|
return darken(color, 8);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const darkenActive = (color: Color) => {
|
|
|
|
|
return darken(color, 16);
|
|
|
|
|
};
|
|
|
|
|
|
2020-02-06 07:01:25 +00:00
|
|
|
const getButtonHoverAndActiveStyles = (color: Color, filled = true) => {
|
2019-12-23 12:16:33 +00:00
|
|
|
return css`
|
|
|
|
|
background: ${color};
|
|
|
|
|
border-color: ${filled ? color : "auto"};
|
|
|
|
|
color: ${filled ? Colors.WHITE : "auto"};
|
|
|
|
|
&:hover {
|
|
|
|
|
background: ${darkenHover(color)};
|
|
|
|
|
border-color: ${darkenHover(color)};
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
&:active {
|
|
|
|
|
background: ${darkenActive(color)};
|
|
|
|
|
border-color: ${darkenActive(color)};
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const BlueprintButtonIntentsCSS = css`
|
2020-02-06 07:01:25 +00:00
|
|
|
&&.${Classes.BUTTON} {
|
2019-12-23 12:16:33 +00:00
|
|
|
box-shadow: none;
|
|
|
|
|
display: flex;
|
|
|
|
|
border-width: 1px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
outline: none;
|
2020-01-28 08:21:22 +00:00
|
|
|
min-width: 50px;
|
2019-12-23 12:16:33 +00:00
|
|
|
color: ${IntentColors.secondary};
|
|
|
|
|
border-color: ${IntentColors.none};
|
|
|
|
|
& span.bp3-icon {
|
|
|
|
|
color: ${IntentColors.none};
|
|
|
|
|
}
|
2020-01-28 08:21:22 +00:00
|
|
|
& span {
|
2020-12-24 04:32:25 +00:00
|
|
|
font-weight: ${(props) => props.theme.fontWeights[3]};
|
2020-01-28 08:21:22 +00:00
|
|
|
}
|
2019-12-23 12:16:33 +00:00
|
|
|
background: ${Colors.WHITE};
|
|
|
|
|
}
|
2020-02-06 07:01:25 +00:00
|
|
|
&&&.${Classes.BUTTON}.${Classes.INTENT_PRIMARY}:not(.${Classes.MINIMAL}) {
|
2019-12-23 12:16:33 +00:00
|
|
|
background: ${IntentColors.primary};
|
2020-02-06 07:01:25 +00:00
|
|
|
${getButtonHoverAndActiveStyles(IntentColors.primary)}
|
2019-12-23 12:16:33 +00:00
|
|
|
}
|
2020-02-06 07:01:25 +00:00
|
|
|
&&&.${Classes.BUTTON}.bp3-intent-secondary:not(.${Classes.MINIMAL}) {
|
2019-12-23 12:16:33 +00:00
|
|
|
background: ${IntentColors.secondary};
|
2020-02-06 07:01:25 +00:00
|
|
|
${getButtonHoverAndActiveStyles(IntentColors.secondary)}
|
2019-12-23 12:16:33 +00:00
|
|
|
}
|
2020-02-06 07:01:25 +00:00
|
|
|
&&&.${Classes.BUTTON}.${Classes.INTENT_DANGER}:not(.${Classes.MINIMAL}) {
|
2019-12-23 12:16:33 +00:00
|
|
|
background: ${IntentColors.danger};
|
2020-02-06 07:01:25 +00:00
|
|
|
${getButtonHoverAndActiveStyles(IntentColors.danger)}
|
2019-12-23 12:16:33 +00:00
|
|
|
}
|
2020-02-06 07:01:25 +00:00
|
|
|
&&&.${Classes.BUTTON}.${Classes.INTENT_SUCCESS}:not(.${Classes.MINIMAL}) {
|
2019-12-23 12:16:33 +00:00
|
|
|
background: ${IntentColors.success};
|
2020-02-06 07:01:25 +00:00
|
|
|
${getButtonHoverAndActiveStyles(IntentColors.success)}
|
2019-12-23 12:16:33 +00:00
|
|
|
}
|
2020-02-06 07:01:25 +00:00
|
|
|
&&&.${Classes.BUTTON}.${Classes.INTENT_WARNING}:not(.${Classes.MINIMAL}) {
|
2019-12-23 12:16:33 +00:00
|
|
|
background: ${IntentColors.warning};
|
2020-02-06 07:01:25 +00:00
|
|
|
${getButtonHoverAndActiveStyles(IntentColors.warning)}
|
2019-12-23 12:16:33 +00:00
|
|
|
}
|
|
|
|
|
|
2020-02-06 07:01:25 +00:00
|
|
|
&&.${Classes.MINIMAL}.${Classes.BUTTON} {
|
2019-12-23 12:16:33 +00:00
|
|
|
border: none;
|
|
|
|
|
border-color: ${IntentColors.none};
|
|
|
|
|
& span.bp3-icon {
|
|
|
|
|
color: ${IntentColors.none};
|
|
|
|
|
}
|
2019-12-16 08:49:10 +00:00
|
|
|
}
|
2020-02-06 07:01:25 +00:00
|
|
|
&&&.${Classes.MINIMAL}.${Classes.INTENT_PRIMARY} {
|
2019-12-16 08:49:10 +00:00
|
|
|
color: ${IntentColors.primary};
|
2019-12-23 12:16:33 +00:00
|
|
|
border-color: ${IntentColors.primary};
|
2019-12-16 08:49:10 +00:00
|
|
|
}
|
2020-02-06 07:01:25 +00:00
|
|
|
&&&.${Classes.MINIMAL}.bp3-intent-secondary {
|
2019-12-16 08:49:10 +00:00
|
|
|
color: ${IntentColors.secondary};
|
2019-12-23 12:16:33 +00:00
|
|
|
border-color: ${IntentColors.secondary};
|
2019-12-16 08:49:10 +00:00
|
|
|
}
|
2020-02-06 07:01:25 +00:00
|
|
|
&&&.${Classes.MINIMAL}.${Classes.INTENT_DANGER} {
|
2019-12-16 08:49:10 +00:00
|
|
|
color: ${IntentColors.danger};
|
2019-12-23 12:16:33 +00:00
|
|
|
border-color: ${IntentColors.danger};
|
2019-12-16 08:49:10 +00:00
|
|
|
}
|
2020-02-06 07:01:25 +00:00
|
|
|
&&&.${Classes.MINIMAL}.${Classes.INTENT_WARNING} {
|
2019-12-16 08:49:10 +00:00
|
|
|
color: ${IntentColors.warning};
|
2019-12-23 12:16:33 +00:00
|
|
|
border-color: ${IntentColors.warning};
|
2019-12-16 08:49:10 +00:00
|
|
|
}
|
2020-02-06 07:01:25 +00:00
|
|
|
&&&.${Classes.MINIMAL}.${Classes.INTENT_SUCCESS} {
|
2019-12-16 08:49:10 +00:00
|
|
|
color: ${IntentColors.success};
|
2019-12-23 12:16:33 +00:00
|
|
|
border-color: ${IntentColors.success};
|
2019-12-16 08:49:10 +00:00
|
|
|
}
|
2020-02-25 11:33:07 +00:00
|
|
|
|
|
|
|
|
&&&&&&.${Classes.DISABLED} {
|
|
|
|
|
color: ${Colors.SLATE_GRAY};
|
|
|
|
|
background: ${Colors.MERCURY};
|
|
|
|
|
border-color: ${Colors.MERCURY};
|
|
|
|
|
}
|
2019-12-16 08:49:10 +00:00
|
|
|
`;
|
2019-11-21 10:52:49 +00:00
|
|
|
|
2020-02-06 07:01:25 +00:00
|
|
|
export const BlueprintInputTransform = css`
|
|
|
|
|
&& {
|
|
|
|
|
.${Classes.INPUT} {
|
2020-12-24 04:32:25 +00:00
|
|
|
border-radius: ${(props) => props.theme.radii[1]}px;
|
2020-02-06 07:01:25 +00:00
|
|
|
box-shadow: none;
|
2020-12-24 04:32:25 +00:00
|
|
|
border: ${(props) => getBorderCSSShorthand(props.theme.borders[2])};
|
2020-02-06 07:01:25 +00:00
|
|
|
&:focus {
|
2020-12-24 04:32:25 +00:00
|
|
|
border: ${(props) => getBorderCSSShorthand(props.theme.borders[2])};
|
2020-02-06 07:01:25 +00:00
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2019-10-08 09:09:30 +00:00
|
|
|
export type ThemeBorder = {
|
2019-10-28 13:20:33 +00:00
|
|
|
thickness: number;
|
2019-10-08 09:09:30 +00:00
|
|
|
style: "dashed" | "solid";
|
|
|
|
|
color: Color;
|
|
|
|
|
};
|
|
|
|
|
|
2019-10-21 11:40:24 +00:00
|
|
|
type PropertyPaneTheme = {
|
|
|
|
|
width: number;
|
|
|
|
|
height: number;
|
2019-11-13 07:00:25 +00:00
|
|
|
dividerColor: Color;
|
2019-10-21 11:40:24 +00:00
|
|
|
};
|
|
|
|
|
|
2020-08-10 04:54:33 +00:00
|
|
|
export type NestedObjectOrArray<T> =
|
|
|
|
|
| Record<string, T | T[] | Record<string, T | T[]>>
|
|
|
|
|
| T
|
|
|
|
|
| T[];
|
2019-09-05 17:47:50 +00:00
|
|
|
export type Theme = {
|
|
|
|
|
radii: Array<number>;
|
|
|
|
|
fontSizes: Array<number>;
|
2019-10-21 15:12:45 +00:00
|
|
|
drawerWidth: string;
|
2019-09-05 17:47:50 +00:00
|
|
|
spaces: Array<number>;
|
|
|
|
|
fontWeights: Array<number>;
|
2020-08-10 04:54:33 +00:00
|
|
|
colors: any;
|
|
|
|
|
typography: any;
|
2019-09-05 17:47:50 +00:00
|
|
|
lineHeights: Array<number>;
|
2020-08-18 21:51:23 +00:00
|
|
|
fonts: {
|
|
|
|
|
code: FontFamily;
|
|
|
|
|
text: FontFamily;
|
|
|
|
|
};
|
2019-10-08 09:09:30 +00:00
|
|
|
borders: ThemeBorder[];
|
2020-06-04 13:49:22 +00:00
|
|
|
evaluatedValuePopup: {
|
|
|
|
|
width: number;
|
|
|
|
|
height: number;
|
|
|
|
|
};
|
2019-10-21 11:40:24 +00:00
|
|
|
propertyPane: PropertyPaneTheme;
|
2019-10-18 08:16:26 +00:00
|
|
|
headerHeight: string;
|
2021-02-04 07:02:36 +00:00
|
|
|
smallHeaderHeight: string;
|
2020-09-16 11:50:47 +00:00
|
|
|
homePage: any;
|
2019-10-18 08:16:26 +00:00
|
|
|
sidebarWidth: string;
|
2020-03-27 09:02:11 +00:00
|
|
|
canvasPadding: string;
|
2019-10-31 08:36:04 +00:00
|
|
|
sideNav: {
|
|
|
|
|
minWidth: number;
|
|
|
|
|
maxWidth: number;
|
|
|
|
|
bgColor: Color;
|
|
|
|
|
fontColor: Color;
|
2019-11-01 05:28:56 +00:00
|
|
|
activeItemBGColor: Color;
|
|
|
|
|
navItemHeight: number;
|
2019-10-31 08:36:04 +00:00
|
|
|
};
|
2019-11-07 04:59:40 +00:00
|
|
|
card: {
|
|
|
|
|
minWidth: number;
|
|
|
|
|
minHeight: number;
|
2019-11-21 10:52:49 +00:00
|
|
|
titleHeight: number;
|
|
|
|
|
divider: ThemeBorder;
|
2019-11-07 04:59:40 +00:00
|
|
|
};
|
2020-05-19 06:53:37 +00:00
|
|
|
dropdown: {
|
2020-05-29 06:07:18 +00:00
|
|
|
[Skin.LIGHT]: {
|
2021-02-11 12:54:00 +00:00
|
|
|
hoverBG: ShadeColor;
|
|
|
|
|
hoverText: ShadeColor;
|
|
|
|
|
inActiveBG: ShadeColor;
|
|
|
|
|
inActiveText: ShadeColor;
|
2020-05-19 06:53:37 +00:00
|
|
|
};
|
2020-05-29 06:07:18 +00:00
|
|
|
[Skin.DARK]: {
|
2021-02-11 12:54:00 +00:00
|
|
|
hoverBG: ShadeColor;
|
|
|
|
|
hoverText: ShadeColor;
|
|
|
|
|
inActiveBG: ShadeColor;
|
|
|
|
|
inActiveText: ShadeColor;
|
2020-05-19 17:24:38 +00:00
|
|
|
border: Color;
|
2021-02-02 12:17:18 +00:00
|
|
|
background: Color;
|
2020-05-19 06:53:37 +00:00
|
|
|
};
|
|
|
|
|
};
|
2019-12-16 08:49:10 +00:00
|
|
|
authCard: {
|
|
|
|
|
width: number;
|
|
|
|
|
dividerSpacing: number;
|
2021-01-27 06:12:32 +00:00
|
|
|
formMessageWidth: number;
|
2019-12-16 08:49:10 +00:00
|
|
|
};
|
2019-11-13 07:00:25 +00:00
|
|
|
shadows: string[];
|
2019-11-07 11:17:53 +00:00
|
|
|
widgets: {
|
|
|
|
|
tableWidget: {
|
|
|
|
|
selectHighlightColor: Color;
|
|
|
|
|
};
|
|
|
|
|
};
|
2019-12-23 12:16:33 +00:00
|
|
|
pageContentWidth: number;
|
2020-02-18 10:41:52 +00:00
|
|
|
alert: Record<string, { color: Color }>;
|
2020-05-24 09:59:22 +00:00
|
|
|
lightningMenu: {
|
2020-06-02 07:13:13 +00:00
|
|
|
[Skin.DARK]: {
|
|
|
|
|
default: {
|
|
|
|
|
color: Color;
|
|
|
|
|
background: Color;
|
|
|
|
|
};
|
|
|
|
|
active: {
|
|
|
|
|
color: Color;
|
|
|
|
|
background: Color;
|
|
|
|
|
};
|
|
|
|
|
hover: {
|
|
|
|
|
color: Color;
|
|
|
|
|
background: Color;
|
|
|
|
|
};
|
|
|
|
|
none: {
|
|
|
|
|
color: string;
|
|
|
|
|
background: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
[Skin.LIGHT]: {
|
|
|
|
|
default: {
|
2021-02-11 12:54:00 +00:00
|
|
|
color: string;
|
|
|
|
|
background: string;
|
2020-06-02 07:13:13 +00:00
|
|
|
};
|
|
|
|
|
active: {
|
2021-02-11 12:54:00 +00:00
|
|
|
color: string;
|
|
|
|
|
background: string;
|
2020-06-02 07:13:13 +00:00
|
|
|
};
|
|
|
|
|
hover: {
|
2021-02-11 12:54:00 +00:00
|
|
|
color: string;
|
|
|
|
|
background: string;
|
2020-06-02 07:13:13 +00:00
|
|
|
};
|
|
|
|
|
none: {
|
|
|
|
|
color: string;
|
|
|
|
|
background: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
2020-05-24 09:59:22 +00:00
|
|
|
};
|
2020-09-16 11:50:47 +00:00
|
|
|
iconSizes: IconSizeType;
|
2020-08-10 04:54:33 +00:00
|
|
|
};
|
|
|
|
|
|
2020-09-16 11:50:47 +00:00
|
|
|
type IconSizeType = {
|
|
|
|
|
XXS: number;
|
|
|
|
|
XS: number;
|
2020-08-31 04:59:18 +00:00
|
|
|
SMALL: number;
|
|
|
|
|
MEDIUM: number;
|
|
|
|
|
LARGE: number;
|
|
|
|
|
XL: number;
|
|
|
|
|
XXL: number;
|
|
|
|
|
XXXL: number;
|
2019-09-05 17:47:50 +00:00
|
|
|
};
|
2019-02-10 15:06:57 +00:00
|
|
|
|
2019-10-08 06:19:10 +00:00
|
|
|
export const getColorWithOpacity = (color: Color, opacity: number) => {
|
|
|
|
|
color = color.slice(1);
|
|
|
|
|
const val = parseInt(color, 16);
|
|
|
|
|
const r = (val >> 16) & 255;
|
|
|
|
|
const g = (val >> 8) & 255;
|
|
|
|
|
const b = val & 255;
|
|
|
|
|
return `rgba(${r},${g},${b},${opacity})`;
|
|
|
|
|
};
|
|
|
|
|
|
2019-10-31 08:36:04 +00:00
|
|
|
export const getBorderCSSShorthand = (border?: ThemeBorder): string => {
|
|
|
|
|
const values: 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
|
|
|
if (border) {
|
|
|
|
|
for (const [key, value] of Object.entries(border)) {
|
|
|
|
|
values.push(key === "thickness" ? value + "px" : value.toString());
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-10-31 08:36:04 +00:00
|
|
|
return values.join(" ");
|
2019-10-08 09:09:30 +00:00
|
|
|
};
|
|
|
|
|
|
2020-01-28 08:21:22 +00:00
|
|
|
export const labelStyle = css`
|
2020-12-24 04:32:25 +00:00
|
|
|
font-weight: ${(props) => props.theme.fontWeights[3]};
|
2020-01-28 08:21:22 +00:00
|
|
|
`;
|
|
|
|
|
|
2020-08-10 04:54:33 +00:00
|
|
|
// export const adsTheme: any = {
|
|
|
|
|
// space: [0, 3, 14, 7, 16, 11, 26, 10, 4, 26, 30, 36, 4, 6, 11],
|
|
|
|
|
// };
|
|
|
|
|
// 3, 7, 11, 26
|
|
|
|
|
|
|
|
|
|
export const smallButton = css`
|
2020-12-24 04:32:25 +00:00
|
|
|
font-size: ${(props) => props.theme.typography.btnSmall.fontSize}px;
|
|
|
|
|
font-weight: ${(props) => props.theme.typography.btnSmall.fontWeight};
|
|
|
|
|
line-height: ${(props) => props.theme.typography.btnSmall.lineHeight}px;
|
|
|
|
|
letter-spacing: ${(props) => props.theme.typography.btnSmall.letterSpacing}px;
|
2020-08-10 04:54:33 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const mediumButton = css`
|
2020-12-24 04:32:25 +00:00
|
|
|
font-size: ${(props) => props.theme.typography.btnMedium.fontSize}px;
|
|
|
|
|
font-weight: ${(props) => props.theme.typography.btnMedium.fontWeight};
|
|
|
|
|
line-height: ${(props) => props.theme.typography.btnMedium.lineHeight}px;
|
|
|
|
|
letter-spacing: ${(props) =>
|
|
|
|
|
props.theme.typography.btnMedium.letterSpacing}px;
|
2020-08-10 04:54:33 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const largeButton = css`
|
2020-12-24 04:32:25 +00:00
|
|
|
font-size: ${(props) => props.theme.typography.btnLarge.fontSize}px;
|
|
|
|
|
font-weight: ${(props) => props.theme.typography.btnLarge.fontWeight};
|
|
|
|
|
line-height: ${(props) => props.theme.typography.btnLarge.lineHeight}px;
|
|
|
|
|
letter-spacing: ${(props) => props.theme.typography.btnLarge.letterSpacing}px;
|
2020-08-10 04:54:33 +00:00
|
|
|
`;
|
|
|
|
|
|
2020-12-09 07:06:02 +00:00
|
|
|
export const appColors = [
|
|
|
|
|
"#6C4CF1",
|
|
|
|
|
"#4F70FD",
|
|
|
|
|
"#F56AF4",
|
|
|
|
|
"#B94CF1",
|
|
|
|
|
"#54A9FB",
|
|
|
|
|
"#5ED3DA",
|
|
|
|
|
"#5EDA82",
|
|
|
|
|
"#A8D76C",
|
|
|
|
|
"#E9C951",
|
|
|
|
|
"#FE9F44",
|
|
|
|
|
"#ED86A1",
|
|
|
|
|
"#EA6179",
|
|
|
|
|
"#C03C3C",
|
|
|
|
|
"#BC6DB2",
|
|
|
|
|
"#6C9DD0",
|
|
|
|
|
"#6CD0CF",
|
|
|
|
|
] as const;
|
|
|
|
|
|
|
|
|
|
export type AppColorCode = typeof appColors[number];
|
|
|
|
|
|
2020-09-23 14:06:50 +00:00
|
|
|
const darkShades = [
|
|
|
|
|
"#1A191C",
|
|
|
|
|
"#232324",
|
|
|
|
|
"#262626",
|
|
|
|
|
"#2B2B2B",
|
|
|
|
|
"#404040",
|
|
|
|
|
"#6D6D6D",
|
|
|
|
|
"#9F9F9F",
|
|
|
|
|
"#D4D4D4",
|
|
|
|
|
"#E9E9E9",
|
|
|
|
|
"#FFFFFF",
|
|
|
|
|
] as const;
|
|
|
|
|
|
|
|
|
|
const lightShades = [
|
|
|
|
|
"#FAFAFA",
|
|
|
|
|
"#F7F7F7",
|
|
|
|
|
"#F0F0F0",
|
|
|
|
|
"#E8E8E8",
|
|
|
|
|
"#C5C5C5",
|
|
|
|
|
"#A9A7A7",
|
|
|
|
|
"#939090",
|
|
|
|
|
"#716E6E",
|
|
|
|
|
"#4B4848",
|
|
|
|
|
"#302D2D",
|
|
|
|
|
"#090707",
|
|
|
|
|
"#FFFFFF",
|
|
|
|
|
] as const;
|
|
|
|
|
|
2020-09-28 05:06:06 +00:00
|
|
|
type ShadeColor = typeof darkShades[number] | typeof lightShades[number];
|
2020-09-23 14:06:50 +00:00
|
|
|
|
|
|
|
|
type buttonVariant = {
|
|
|
|
|
main: string;
|
|
|
|
|
light: string;
|
|
|
|
|
dark: string;
|
|
|
|
|
darker: string;
|
|
|
|
|
darkest: string;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
type ColorType = {
|
|
|
|
|
button: {
|
2020-09-28 05:06:06 +00:00
|
|
|
disabledText: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
tertiary: buttonVariant;
|
|
|
|
|
info: buttonVariant;
|
|
|
|
|
success: buttonVariant;
|
|
|
|
|
warning: buttonVariant;
|
|
|
|
|
danger: buttonVariant;
|
|
|
|
|
homepageBackground: string;
|
|
|
|
|
card: {
|
|
|
|
|
hoverBG: Color;
|
|
|
|
|
hoverBGOpacity: number;
|
2020-09-28 05:06:06 +00:00
|
|
|
hoverBorder: ShadeColor;
|
|
|
|
|
iconColor: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
text: {
|
2020-09-28 05:06:06 +00:00
|
|
|
normal: ShadeColor;
|
|
|
|
|
heading: ShadeColor;
|
2021-02-04 07:02:36 +00:00
|
|
|
highlight: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
icon: {
|
2020-09-28 05:06:06 +00:00
|
|
|
normal: ShadeColor;
|
|
|
|
|
hover: ShadeColor;
|
|
|
|
|
active: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
appIcon: {
|
2020-09-28 05:06:06 +00:00
|
|
|
normal: ShadeColor;
|
|
|
|
|
background: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
menu: {
|
2020-09-28 05:06:06 +00:00
|
|
|
background: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
shadow: string;
|
|
|
|
|
};
|
|
|
|
|
menuItem: {
|
2020-09-28 05:06:06 +00:00
|
|
|
normalText: ShadeColor;
|
|
|
|
|
normalIcon: ShadeColor;
|
|
|
|
|
hoverIcon: ShadeColor;
|
|
|
|
|
hoverText: ShadeColor;
|
|
|
|
|
hoverBg: ShadeColor;
|
2020-10-14 10:35:19 +00:00
|
|
|
warning: {
|
|
|
|
|
color: string;
|
|
|
|
|
bg: string;
|
|
|
|
|
};
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
colorSelector: {
|
2020-09-28 05:06:06 +00:00
|
|
|
shadow: ShadeColor;
|
|
|
|
|
checkmark: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
checkbox: {
|
2020-09-28 05:06:06 +00:00
|
|
|
disabled: ShadeColor;
|
|
|
|
|
unchecked: ShadeColor;
|
|
|
|
|
disabledCheck: ShadeColor;
|
|
|
|
|
normalCheck: ShadeColor;
|
|
|
|
|
labelColor: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
dropdown: {
|
|
|
|
|
header: {
|
2020-09-28 05:06:06 +00:00
|
|
|
text: ShadeColor;
|
2020-10-12 07:15:35 +00:00
|
|
|
disabledText: ShadeColor;
|
2020-09-28 05:06:06 +00:00
|
|
|
bg: ShadeColor;
|
|
|
|
|
disabledBg: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
2020-09-28 05:06:06 +00:00
|
|
|
menuBg: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
menuShadow: string;
|
|
|
|
|
selected: {
|
2020-09-28 05:06:06 +00:00
|
|
|
text: ShadeColor;
|
|
|
|
|
bg: ShadeColor;
|
|
|
|
|
icon: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
2020-09-28 05:06:06 +00:00
|
|
|
icon: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
toggle: {
|
2020-09-28 05:06:06 +00:00
|
|
|
bg: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
hover: {
|
|
|
|
|
on: string;
|
|
|
|
|
off: string;
|
|
|
|
|
};
|
|
|
|
|
disable: {
|
|
|
|
|
on: string;
|
2020-09-28 05:06:06 +00:00
|
|
|
off: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
disabledSlider: {
|
2020-09-28 05:06:06 +00:00
|
|
|
on: ShadeColor;
|
|
|
|
|
off: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
2020-09-28 05:06:06 +00:00
|
|
|
spinner: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
textInput: {
|
|
|
|
|
disable: {
|
2020-09-28 05:06:06 +00:00
|
|
|
bg: ShadeColor;
|
|
|
|
|
text: ShadeColor;
|
|
|
|
|
border: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
normal: {
|
2020-09-28 05:06:06 +00:00
|
|
|
bg: ShadeColor;
|
|
|
|
|
text: ShadeColor;
|
|
|
|
|
border: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
2020-09-28 05:06:06 +00:00
|
|
|
placeholder: ShadeColor;
|
2020-10-12 07:15:35 +00:00
|
|
|
readOnly: {
|
|
|
|
|
bg: ShadeColor;
|
|
|
|
|
border: ShadeColor;
|
|
|
|
|
text: ShadeColor;
|
|
|
|
|
};
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
2020-09-28 05:06:06 +00:00
|
|
|
menuBorder: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
editableText: {
|
2020-09-28 05:06:06 +00:00
|
|
|
color: ShadeColor;
|
|
|
|
|
bg: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
dangerBg: string;
|
|
|
|
|
};
|
|
|
|
|
radio: {
|
2020-09-28 05:06:06 +00:00
|
|
|
disable: ShadeColor;
|
|
|
|
|
border: ShadeColor;
|
2021-02-11 12:54:00 +00:00
|
|
|
text: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
searchInput: {
|
2020-09-28 05:06:06 +00:00
|
|
|
placeholder: ShadeColor;
|
|
|
|
|
text: ShadeColor;
|
|
|
|
|
border: ShadeColor;
|
|
|
|
|
bg: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
icon: {
|
2020-09-28 05:06:06 +00:00
|
|
|
focused: ShadeColor;
|
|
|
|
|
normal: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
};
|
2020-09-28 05:06:06 +00:00
|
|
|
spinner: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
tableDropdown: {
|
2020-09-28 05:06:06 +00:00
|
|
|
bg: ShadeColor;
|
|
|
|
|
selectedBg: ShadeColor;
|
|
|
|
|
selectedText: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
shadow: string;
|
|
|
|
|
};
|
|
|
|
|
tabs: {
|
2020-09-28 05:06:06 +00:00
|
|
|
normal: ShadeColor;
|
|
|
|
|
hover: ShadeColor;
|
|
|
|
|
border: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
2020-09-28 05:06:06 +00:00
|
|
|
settingHeading: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
table: {
|
2020-09-28 05:06:06 +00:00
|
|
|
headerBg: ShadeColor;
|
|
|
|
|
headerText: ShadeColor;
|
|
|
|
|
rowData: ShadeColor;
|
|
|
|
|
rowTitle: ShadeColor;
|
|
|
|
|
border: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
hover: {
|
2020-09-28 05:06:06 +00:00
|
|
|
headerColor: ShadeColor;
|
|
|
|
|
rowBg: ShadeColor;
|
|
|
|
|
rowTitle: ShadeColor;
|
|
|
|
|
rowData: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
applications: {
|
2020-09-28 05:06:06 +00:00
|
|
|
bg: ShadeColor;
|
|
|
|
|
textColor: ShadeColor;
|
|
|
|
|
orgColor: ShadeColor;
|
|
|
|
|
iconColor: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
hover: {
|
2020-09-28 05:06:06 +00:00
|
|
|
bg: ShadeColor;
|
|
|
|
|
textColor: ShadeColor;
|
|
|
|
|
orgColor: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
switch: {
|
2020-09-28 05:06:06 +00:00
|
|
|
border: ShadeColor;
|
|
|
|
|
bg: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
hover: {
|
2020-09-28 05:06:06 +00:00
|
|
|
bg: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
2020-09-28 05:06:06 +00:00
|
|
|
lightText: ShadeColor;
|
|
|
|
|
darkText: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
queryTemplate: {
|
2020-09-28 05:06:06 +00:00
|
|
|
bg: ShadeColor;
|
|
|
|
|
color: ShadeColor;
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
2020-09-26 13:22:15 +00:00
|
|
|
profileDropdown: {
|
2020-09-28 05:38:44 +00:00
|
|
|
userName: ShadeColor;
|
2020-09-26 13:22:15 +00:00
|
|
|
};
|
2020-10-12 07:15:35 +00:00
|
|
|
modal: {
|
|
|
|
|
bg: ShadeColor;
|
|
|
|
|
headerText: ShadeColor;
|
|
|
|
|
iconColor: string;
|
|
|
|
|
user: {
|
|
|
|
|
textColor: ShadeColor;
|
|
|
|
|
};
|
|
|
|
|
email: {
|
|
|
|
|
message: ShadeColor;
|
|
|
|
|
desc: ShadeColor;
|
|
|
|
|
};
|
|
|
|
|
manageUser: ShadeColor;
|
2020-11-04 17:06:29 +00:00
|
|
|
scrollbar: ShadeColor;
|
2021-01-19 06:17:15 +00:00
|
|
|
separator: ShadeColor;
|
|
|
|
|
title: ShadeColor;
|
|
|
|
|
link: string;
|
2021-01-22 06:01:41 +00:00
|
|
|
hoverState: ShadeColor;
|
2020-10-12 07:15:35 +00:00
|
|
|
};
|
|
|
|
|
tagInput: {
|
|
|
|
|
bg: ShadeColor;
|
|
|
|
|
tag: {
|
|
|
|
|
text: ShadeColor;
|
|
|
|
|
};
|
|
|
|
|
text: ShadeColor;
|
|
|
|
|
placeholder: ShadeColor;
|
|
|
|
|
shadow: string;
|
|
|
|
|
};
|
|
|
|
|
callout: {
|
|
|
|
|
info: {
|
|
|
|
|
color: string;
|
|
|
|
|
bgColor: string;
|
|
|
|
|
};
|
|
|
|
|
success: {
|
|
|
|
|
color: string;
|
|
|
|
|
bgColor: string;
|
|
|
|
|
};
|
|
|
|
|
danger: {
|
|
|
|
|
color: string;
|
|
|
|
|
bgColor: string;
|
|
|
|
|
};
|
|
|
|
|
warning: {
|
|
|
|
|
color: string;
|
|
|
|
|
bgColor: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
2020-10-14 10:35:19 +00:00
|
|
|
loader: {
|
|
|
|
|
light: ShadeColor;
|
|
|
|
|
dark: ShadeColor;
|
|
|
|
|
};
|
2020-12-01 22:01:27 +00:00
|
|
|
filePicker: {
|
|
|
|
|
bg: ShadeColor;
|
|
|
|
|
color: ShadeColor;
|
|
|
|
|
progress: ShadeColor;
|
|
|
|
|
shadow: {
|
|
|
|
|
from: string;
|
|
|
|
|
to: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
2020-11-05 07:04:44 +00:00
|
|
|
formFooter: {
|
2020-11-06 07:53:38 +00:00
|
|
|
cancelBtn: ShadeColor;
|
2020-11-05 07:04:44 +00:00
|
|
|
};
|
2020-11-24 07:01:37 +00:00
|
|
|
toast: {
|
|
|
|
|
undo: string;
|
|
|
|
|
warningColor: string;
|
|
|
|
|
dangerColor: string;
|
|
|
|
|
textColor: string;
|
|
|
|
|
bg: ShadeColor;
|
|
|
|
|
};
|
2021-02-11 12:54:00 +00:00
|
|
|
multiSwitch: {
|
|
|
|
|
bg: ShadeColor;
|
|
|
|
|
selectedBg: ShadeColor;
|
|
|
|
|
text: ShadeColor;
|
|
|
|
|
border: string;
|
|
|
|
|
};
|
|
|
|
|
apiPane: {
|
|
|
|
|
bg: ShadeColor;
|
|
|
|
|
text: ShadeColor;
|
|
|
|
|
dividerBg: ShadeColor;
|
|
|
|
|
iconHoverBg: ShadeColor;
|
|
|
|
|
requestTree: {
|
|
|
|
|
bg: string;
|
|
|
|
|
header: {
|
|
|
|
|
text: string;
|
|
|
|
|
icon: string;
|
|
|
|
|
bg: string;
|
|
|
|
|
};
|
|
|
|
|
row: {
|
|
|
|
|
hoverBg: string;
|
|
|
|
|
key: string;
|
|
|
|
|
value: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
moreActions: {
|
|
|
|
|
targetBg: string;
|
|
|
|
|
targetIcon: {
|
|
|
|
|
normal: string;
|
|
|
|
|
hover: string;
|
|
|
|
|
};
|
|
|
|
|
menuShadow: string;
|
|
|
|
|
menuBg: {
|
|
|
|
|
normal: ShadeColor;
|
|
|
|
|
hover: ShadeColor;
|
|
|
|
|
};
|
|
|
|
|
menuText: {
|
|
|
|
|
normal: ShadeColor;
|
|
|
|
|
hover: ShadeColor;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
closeIcon: ShadeColor;
|
|
|
|
|
responseBody: {
|
|
|
|
|
bg: ShadeColor;
|
|
|
|
|
};
|
|
|
|
|
codeEditor: {
|
|
|
|
|
placeholderColor: ShadeColor;
|
|
|
|
|
};
|
|
|
|
|
body: {
|
|
|
|
|
text: string;
|
|
|
|
|
};
|
|
|
|
|
settings: {
|
|
|
|
|
textColor: ShadeColor;
|
|
|
|
|
};
|
|
|
|
|
pagination: {
|
|
|
|
|
label: ShadeColor;
|
|
|
|
|
description: ShadeColor;
|
|
|
|
|
stepTitle: ShadeColor;
|
|
|
|
|
numberBg: string;
|
|
|
|
|
bindingBg: ShadeColor;
|
|
|
|
|
numberColor: ShadeColor;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
codeMirror: {
|
|
|
|
|
background: {
|
|
|
|
|
defaultState: string;
|
|
|
|
|
hoverState: string;
|
|
|
|
|
};
|
|
|
|
|
text: string;
|
|
|
|
|
dataType: {
|
|
|
|
|
shortForm: string;
|
|
|
|
|
fullForm: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
2021-01-19 06:17:15 +00:00
|
|
|
floatingBtn: any;
|
2021-01-27 06:12:32 +00:00
|
|
|
auth: any;
|
|
|
|
|
formMessage: Record<string, Record<Intent, string>>;
|
2021-02-04 07:02:36 +00:00
|
|
|
header: {
|
|
|
|
|
separator: string;
|
|
|
|
|
appName: ShadeColor;
|
|
|
|
|
background: string;
|
|
|
|
|
deployToolTipBackground: string;
|
|
|
|
|
deployToolTipText: ShadeColor;
|
|
|
|
|
shareBtnHighlight: string;
|
|
|
|
|
shareBtn: string;
|
|
|
|
|
tabsHorizontalSeparator: string;
|
|
|
|
|
tabText: string;
|
|
|
|
|
activeTabBorderBottom: string;
|
|
|
|
|
activeTabText: string;
|
|
|
|
|
};
|
2021-02-11 12:54:00 +00:00
|
|
|
gif: {
|
|
|
|
|
overlay: string;
|
|
|
|
|
text: string;
|
|
|
|
|
iconPath: string;
|
|
|
|
|
iconCircle: string;
|
|
|
|
|
};
|
2021-01-27 06:12:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const auth: any = {
|
|
|
|
|
background: darkShades[1],
|
|
|
|
|
cardBackground: lightShades[10],
|
|
|
|
|
btnPrimary: "#F86A2B",
|
|
|
|
|
inputBackground: darkShades[1],
|
|
|
|
|
headingText: "#FFF",
|
2021-01-28 07:20:09 +00:00
|
|
|
link: "#106ba3",
|
2021-01-27 06:12:32 +00:00
|
|
|
text: darkShades[7],
|
|
|
|
|
placeholder: darkShades[5],
|
|
|
|
|
socialBtnText: darkShades[8],
|
|
|
|
|
socialBtnBorder: darkShades[8],
|
2021-01-28 07:20:09 +00:00
|
|
|
socialBtnHighlight: darkShades[1],
|
2021-01-27 06:12:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const formMessage = {
|
|
|
|
|
background: {
|
|
|
|
|
danger: "rgba(226,44,44,0.08)",
|
|
|
|
|
success: "#172320",
|
|
|
|
|
warning: "rgba(224, 179, 14, 0.08)",
|
|
|
|
|
},
|
|
|
|
|
text: {
|
|
|
|
|
danger: "#E22C2C",
|
|
|
|
|
success: "#03B365",
|
|
|
|
|
warning: "#E0B30E",
|
|
|
|
|
},
|
2020-09-23 14:06:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const dark: ColorType = {
|
2021-02-04 07:02:36 +00:00
|
|
|
header: {
|
|
|
|
|
separator: darkShades[4],
|
|
|
|
|
appName: darkShades[7],
|
|
|
|
|
background: darkShades[2],
|
|
|
|
|
deployToolTipBackground: lightShades[10],
|
|
|
|
|
deployToolTipText: darkShades[7],
|
|
|
|
|
shareBtnHighlight: "#F86A2B",
|
|
|
|
|
shareBtn: "#fff",
|
|
|
|
|
tabsHorizontalSeparator: "#EFEFEF",
|
|
|
|
|
tabText: "#6F6D6D",
|
|
|
|
|
activeTabBorderBottom: "#FF6D2D",
|
|
|
|
|
activeTabText: "#000",
|
|
|
|
|
},
|
2020-09-23 14:06:50 +00:00
|
|
|
button: {
|
|
|
|
|
disabledText: darkShades[6],
|
|
|
|
|
},
|
2020-09-16 11:50:47 +00:00
|
|
|
tertiary: {
|
|
|
|
|
main: "#D4D4D4",
|
|
|
|
|
light: "#FFFFFF",
|
|
|
|
|
dark: "#2B2B2B",
|
|
|
|
|
darker: "#202021",
|
2020-09-23 14:06:50 +00:00
|
|
|
darkest: "#1A191C",
|
2020-09-16 11:50:47 +00:00
|
|
|
},
|
|
|
|
|
info: {
|
|
|
|
|
main: "#CB4810",
|
|
|
|
|
light: "#F86A2B",
|
|
|
|
|
dark: "#8B2E05",
|
|
|
|
|
darker: "#A03C12",
|
|
|
|
|
darkest: "#2B2B2B",
|
|
|
|
|
},
|
|
|
|
|
success: {
|
|
|
|
|
main: "#218358",
|
|
|
|
|
light: "#30CF89",
|
|
|
|
|
dark: "#0F4B30",
|
|
|
|
|
darker: "#17211E",
|
|
|
|
|
darkest: "#293835",
|
|
|
|
|
},
|
|
|
|
|
warning: {
|
|
|
|
|
main: "#EABB0C",
|
|
|
|
|
light: "#FFD32E",
|
|
|
|
|
dark: "#886B00",
|
|
|
|
|
darker: "#2C271A",
|
|
|
|
|
darkest: "#2F2A1B",
|
|
|
|
|
},
|
|
|
|
|
danger: {
|
|
|
|
|
main: "#E22C2C",
|
|
|
|
|
light: "#FF4D4D",
|
|
|
|
|
dark: "#830C0C",
|
|
|
|
|
darker: "#2B1A1D",
|
|
|
|
|
darkest: "#462F32",
|
|
|
|
|
},
|
|
|
|
|
homepageBackground: "#1C1C1E",
|
|
|
|
|
card: {
|
|
|
|
|
hoverBG: Colors.BLACK,
|
|
|
|
|
hoverBGOpacity: 0.5,
|
2020-09-23 14:06:50 +00:00
|
|
|
hoverBorder: darkShades[4],
|
|
|
|
|
iconColor: darkShades[9],
|
2020-09-16 11:50:47 +00:00
|
|
|
},
|
2020-09-23 14:06:50 +00:00
|
|
|
text: {
|
|
|
|
|
normal: darkShades[6],
|
|
|
|
|
heading: darkShades[7],
|
2021-02-04 07:02:36 +00:00
|
|
|
highlight: darkShades[9],
|
2020-09-23 14:06:50 +00:00
|
|
|
},
|
|
|
|
|
icon: {
|
|
|
|
|
normal: darkShades[6],
|
|
|
|
|
hover: darkShades[8],
|
|
|
|
|
active: darkShades[9],
|
|
|
|
|
},
|
|
|
|
|
appIcon: {
|
|
|
|
|
normal: darkShades[9],
|
|
|
|
|
background: darkShades[1],
|
|
|
|
|
},
|
|
|
|
|
menu: {
|
|
|
|
|
background: darkShades[3],
|
|
|
|
|
shadow: "rgba(0, 0, 0, 0.75)",
|
|
|
|
|
},
|
|
|
|
|
menuItem: {
|
|
|
|
|
normalText: darkShades[7],
|
|
|
|
|
normalIcon: darkShades[6],
|
|
|
|
|
hoverIcon: darkShades[8],
|
|
|
|
|
hoverText: darkShades[9],
|
|
|
|
|
hoverBg: darkShades[4],
|
2020-10-14 10:35:19 +00:00
|
|
|
warning: {
|
|
|
|
|
color: "#EABB0C",
|
|
|
|
|
bg: "#3A3628",
|
|
|
|
|
},
|
2020-09-23 14:06:50 +00:00
|
|
|
},
|
|
|
|
|
colorSelector: {
|
2020-09-28 05:06:06 +00:00
|
|
|
shadow: darkShades[4],
|
2020-09-23 14:06:50 +00:00
|
|
|
checkmark: darkShades[9],
|
|
|
|
|
},
|
|
|
|
|
checkbox: {
|
|
|
|
|
disabled: darkShades[3],
|
|
|
|
|
unchecked: darkShades[4],
|
2020-09-28 05:06:06 +00:00
|
|
|
disabledCheck: darkShades[5],
|
2020-09-23 14:06:50 +00:00
|
|
|
normalCheck: darkShades[9],
|
|
|
|
|
labelColor: darkShades[7],
|
|
|
|
|
},
|
|
|
|
|
dropdown: {
|
|
|
|
|
header: {
|
|
|
|
|
text: darkShades[7],
|
2020-10-12 07:15:35 +00:00
|
|
|
disabledText: darkShades[6],
|
2021-02-11 12:54:00 +00:00
|
|
|
bg: "#090707",
|
2020-10-12 07:15:35 +00:00
|
|
|
disabledBg: darkShades[2],
|
2020-09-23 14:06:50 +00:00
|
|
|
},
|
|
|
|
|
menuBg: darkShades[3],
|
|
|
|
|
menuShadow: "rgba(0, 0, 0, 0.6)",
|
|
|
|
|
selected: {
|
|
|
|
|
text: darkShades[9],
|
|
|
|
|
bg: darkShades[4],
|
|
|
|
|
icon: darkShades[8],
|
|
|
|
|
},
|
|
|
|
|
icon: darkShades[6],
|
|
|
|
|
},
|
|
|
|
|
toggle: {
|
|
|
|
|
bg: darkShades[4],
|
|
|
|
|
hover: {
|
|
|
|
|
on: "#F56426",
|
|
|
|
|
off: "#5E5E5E",
|
|
|
|
|
},
|
|
|
|
|
disable: {
|
|
|
|
|
on: "#3D2219",
|
|
|
|
|
off: darkShades[3],
|
|
|
|
|
},
|
|
|
|
|
disabledSlider: {
|
|
|
|
|
on: darkShades[9],
|
2020-09-28 05:06:06 +00:00
|
|
|
off: darkShades[5],
|
2020-09-23 14:06:50 +00:00
|
|
|
},
|
|
|
|
|
spinner: darkShades[6],
|
|
|
|
|
},
|
|
|
|
|
textInput: {
|
|
|
|
|
disable: {
|
|
|
|
|
bg: darkShades[2],
|
|
|
|
|
text: darkShades[6],
|
|
|
|
|
border: darkShades[2],
|
|
|
|
|
},
|
|
|
|
|
normal: {
|
2021-02-11 12:54:00 +00:00
|
|
|
bg: lightShades[10],
|
2020-09-23 14:06:50 +00:00
|
|
|
border: darkShades[0],
|
2021-01-27 06:12:32 +00:00
|
|
|
text: darkShades[7],
|
2020-09-23 14:06:50 +00:00
|
|
|
},
|
|
|
|
|
placeholder: darkShades[5],
|
2020-10-12 07:15:35 +00:00
|
|
|
readOnly: {
|
|
|
|
|
bg: darkShades[0],
|
|
|
|
|
border: darkShades[0],
|
|
|
|
|
text: darkShades[7],
|
|
|
|
|
},
|
2020-09-23 14:06:50 +00:00
|
|
|
},
|
|
|
|
|
menuBorder: darkShades[4],
|
|
|
|
|
editableText: {
|
|
|
|
|
color: darkShades[9],
|
|
|
|
|
bg: darkShades[1],
|
|
|
|
|
dangerBg: "rgba(226, 44, 44, 0.08)",
|
|
|
|
|
},
|
|
|
|
|
radio: {
|
2020-09-28 05:06:06 +00:00
|
|
|
disable: darkShades[5],
|
2020-09-23 14:06:50 +00:00
|
|
|
border: darkShades[4],
|
2021-02-11 12:54:00 +00:00
|
|
|
text: lightShades[11],
|
2020-09-23 14:06:50 +00:00
|
|
|
},
|
|
|
|
|
searchInput: {
|
|
|
|
|
placeholder: darkShades[5],
|
|
|
|
|
text: darkShades[9],
|
|
|
|
|
border: darkShades[4],
|
|
|
|
|
bg: darkShades[2],
|
|
|
|
|
icon: {
|
|
|
|
|
focused: darkShades[7],
|
|
|
|
|
normal: darkShades[5],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
spinner: darkShades[6],
|
|
|
|
|
tableDropdown: {
|
|
|
|
|
bg: darkShades[3],
|
|
|
|
|
selectedBg: darkShades[4],
|
|
|
|
|
selectedText: darkShades[9],
|
|
|
|
|
shadow: "rgba(0, 0, 0, 0.75)",
|
|
|
|
|
},
|
|
|
|
|
tabs: {
|
|
|
|
|
normal: darkShades[6],
|
2021-02-11 12:54:00 +00:00
|
|
|
hover: darkShades[7],
|
2020-09-23 14:06:50 +00:00
|
|
|
border: darkShades[3],
|
|
|
|
|
},
|
|
|
|
|
settingHeading: darkShades[9],
|
|
|
|
|
table: {
|
|
|
|
|
headerBg: darkShades[2],
|
|
|
|
|
headerText: darkShades[5],
|
|
|
|
|
rowData: darkShades[6],
|
|
|
|
|
rowTitle: darkShades[7],
|
|
|
|
|
border: darkShades[3],
|
|
|
|
|
hover: {
|
|
|
|
|
headerColor: darkShades[7],
|
|
|
|
|
rowBg: darkShades[4],
|
|
|
|
|
rowTitle: darkShades[9],
|
|
|
|
|
rowData: darkShades[7],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
applications: {
|
2020-10-20 09:01:54 +00:00
|
|
|
bg: darkShades[4],
|
2020-09-23 14:06:50 +00:00
|
|
|
textColor: darkShades[7],
|
|
|
|
|
orgColor: darkShades[7],
|
|
|
|
|
iconColor: darkShades[7],
|
|
|
|
|
hover: {
|
2020-10-20 09:01:54 +00:00
|
|
|
bg: darkShades[5],
|
2020-09-23 14:06:50 +00:00
|
|
|
textColor: darkShades[8],
|
|
|
|
|
orgColor: darkShades[9],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
switch: {
|
|
|
|
|
border: darkShades[5],
|
|
|
|
|
bg: darkShades[0],
|
|
|
|
|
hover: {
|
|
|
|
|
bg: darkShades[0],
|
|
|
|
|
},
|
|
|
|
|
lightText: darkShades[9],
|
|
|
|
|
darkText: darkShades[6],
|
|
|
|
|
},
|
|
|
|
|
queryTemplate: {
|
|
|
|
|
bg: darkShades[3],
|
|
|
|
|
color: darkShades[7],
|
|
|
|
|
},
|
2020-09-26 13:22:15 +00:00
|
|
|
profileDropdown: {
|
|
|
|
|
userName: darkShades[9],
|
|
|
|
|
},
|
2020-10-12 07:15:35 +00:00
|
|
|
modal: {
|
|
|
|
|
bg: darkShades[1],
|
|
|
|
|
headerText: darkShades[9],
|
|
|
|
|
iconColor: "#6D6D6D",
|
|
|
|
|
user: {
|
|
|
|
|
textColor: darkShades[7],
|
|
|
|
|
},
|
|
|
|
|
email: {
|
|
|
|
|
message: darkShades[8],
|
|
|
|
|
desc: darkShades[6],
|
|
|
|
|
},
|
|
|
|
|
manageUser: darkShades[6],
|
2020-11-04 17:06:29 +00:00
|
|
|
scrollbar: darkShades[5],
|
2021-01-19 06:17:15 +00:00
|
|
|
separator: darkShades[4],
|
|
|
|
|
title: darkShades[8],
|
|
|
|
|
link: "#F86A2B",
|
2021-01-22 06:01:41 +00:00
|
|
|
hoverState: darkShades[3],
|
2020-10-12 07:15:35 +00:00
|
|
|
},
|
|
|
|
|
tagInput: {
|
2021-02-11 12:54:00 +00:00
|
|
|
bg: "#090707",
|
2020-10-12 07:15:35 +00:00
|
|
|
tag: {
|
|
|
|
|
text: darkShades[9],
|
|
|
|
|
},
|
|
|
|
|
text: darkShades[9],
|
|
|
|
|
placeholder: darkShades[5],
|
|
|
|
|
shadow: "0px 0px 4px 4px rgba(203, 72, 16, 0.18)",
|
|
|
|
|
},
|
|
|
|
|
callout: {
|
|
|
|
|
info: {
|
|
|
|
|
color: "#EE5A1A",
|
|
|
|
|
bgColor: "#241C1B",
|
|
|
|
|
},
|
|
|
|
|
success: {
|
|
|
|
|
color: "#30CF89",
|
|
|
|
|
bgColor: "#17211E",
|
|
|
|
|
},
|
|
|
|
|
danger: {
|
|
|
|
|
color: "#FF4D4D",
|
|
|
|
|
bgColor: "#2B1A1D",
|
|
|
|
|
},
|
|
|
|
|
warning: {
|
|
|
|
|
color: "#E0B30E",
|
|
|
|
|
bgColor: "#29251A",
|
|
|
|
|
},
|
|
|
|
|
},
|
2020-10-14 10:35:19 +00:00
|
|
|
loader: {
|
|
|
|
|
light: darkShades[2],
|
|
|
|
|
dark: darkShades[4],
|
|
|
|
|
},
|
2020-12-01 22:01:27 +00:00
|
|
|
filePicker: {
|
|
|
|
|
bg: darkShades[1],
|
|
|
|
|
color: darkShades[7],
|
|
|
|
|
progress: darkShades[6],
|
|
|
|
|
shadow: {
|
|
|
|
|
from: "rgba(21, 17, 17, 0.0001)",
|
|
|
|
|
to: "rgba(9, 7, 7, 0.883386)",
|
|
|
|
|
},
|
|
|
|
|
},
|
2020-11-05 07:04:44 +00:00
|
|
|
formFooter: {
|
2020-11-06 07:53:38 +00:00
|
|
|
cancelBtn: darkShades[9],
|
2020-11-05 07:04:44 +00:00
|
|
|
},
|
2020-11-24 07:01:37 +00:00
|
|
|
toast: {
|
|
|
|
|
undo: "#CB4810",
|
|
|
|
|
warningColor: "#E0B30E",
|
|
|
|
|
dangerColor: "#E22C2C",
|
|
|
|
|
textColor: "#090707",
|
|
|
|
|
bg: darkShades[8],
|
|
|
|
|
},
|
2021-02-11 12:54:00 +00:00
|
|
|
multiSwitch: {
|
|
|
|
|
bg: darkShades[2],
|
|
|
|
|
selectedBg: lightShades[10],
|
|
|
|
|
text: darkShades[8],
|
|
|
|
|
border: darkShades[3],
|
|
|
|
|
},
|
|
|
|
|
apiPane: {
|
|
|
|
|
bg: darkShades[0],
|
|
|
|
|
text: darkShades[6],
|
|
|
|
|
dividerBg: darkShades[4],
|
|
|
|
|
iconHoverBg: darkShades[1],
|
|
|
|
|
requestTree: {
|
|
|
|
|
bg: lightShades[10],
|
|
|
|
|
header: {
|
|
|
|
|
text: darkShades[7],
|
|
|
|
|
icon: darkShades[7],
|
|
|
|
|
bg: darkShades[1],
|
|
|
|
|
},
|
|
|
|
|
row: {
|
|
|
|
|
hoverBg: darkShades[1],
|
|
|
|
|
key: darkShades[6],
|
|
|
|
|
value: darkShades[7],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
moreActions: {
|
|
|
|
|
targetBg: "#090707",
|
|
|
|
|
targetIcon: {
|
|
|
|
|
normal: "#9F9F9F",
|
|
|
|
|
hover: "#9F9F9F",
|
|
|
|
|
},
|
|
|
|
|
menuShadow: "0px 12px 28px -8px rgba(0, 0, 0, 0.75)",
|
|
|
|
|
menuBg: {
|
|
|
|
|
normal: darkShades[3],
|
|
|
|
|
hover: darkShades[4],
|
|
|
|
|
},
|
|
|
|
|
menuText: {
|
|
|
|
|
normal: darkShades[7],
|
|
|
|
|
hover: darkShades[9],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
closeIcon: darkShades[9],
|
|
|
|
|
responseBody: {
|
|
|
|
|
bg: "#090707",
|
|
|
|
|
},
|
|
|
|
|
codeEditor: {
|
|
|
|
|
placeholderColor: darkShades[5],
|
|
|
|
|
},
|
|
|
|
|
body: {
|
|
|
|
|
text: "#6D6D6D",
|
|
|
|
|
},
|
|
|
|
|
settings: {
|
|
|
|
|
textColor: "#FFFFFF",
|
|
|
|
|
},
|
|
|
|
|
pagination: {
|
|
|
|
|
label: darkShades[7],
|
|
|
|
|
description: darkShades[5],
|
|
|
|
|
stepTitle: darkShades[9],
|
|
|
|
|
numberBg: darkShades[3],
|
|
|
|
|
bindingBg: darkShades[4],
|
|
|
|
|
numberColor: lightShades[11],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
codeMirror: {
|
|
|
|
|
background: {
|
|
|
|
|
defaultState: "#262626",
|
|
|
|
|
hoverState: "#1A191C",
|
|
|
|
|
},
|
|
|
|
|
text: "#FFFFFF",
|
|
|
|
|
dataType: {
|
|
|
|
|
shortForm: "#858282",
|
|
|
|
|
fullForm: "#6D6D6D",
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-01-19 06:17:15 +00:00
|
|
|
floatingBtn: {
|
|
|
|
|
tagBackground: "#e22c2c",
|
|
|
|
|
backgroundColor: darkShades[3],
|
|
|
|
|
iconColor: darkShades[6],
|
|
|
|
|
},
|
2021-01-27 06:12:32 +00:00
|
|
|
auth,
|
|
|
|
|
formMessage,
|
2021-02-11 12:54:00 +00:00
|
|
|
gif: {
|
|
|
|
|
overlay: "#000000",
|
|
|
|
|
text: "#d4d4d4",
|
|
|
|
|
iconPath: "#2b2b2b",
|
|
|
|
|
iconCircle: "#d4d4d4",
|
|
|
|
|
},
|
2020-09-16 11:50:47 +00:00
|
|
|
};
|
|
|
|
|
|
2020-09-23 14:06:50 +00:00
|
|
|
export const light: ColorType = {
|
2021-02-04 07:02:36 +00:00
|
|
|
header: {
|
|
|
|
|
separator: "#E0DEDE",
|
|
|
|
|
appName: lightShades[8],
|
|
|
|
|
background: lightShades[0],
|
|
|
|
|
deployToolTipText: lightShades[8],
|
|
|
|
|
deployToolTipBackground: "#FFF",
|
|
|
|
|
shareBtnHighlight: "#F86A2B",
|
|
|
|
|
shareBtn: "#4B4848",
|
|
|
|
|
tabsHorizontalSeparator: "#EFEFEF",
|
|
|
|
|
tabText: "#6F6D6D",
|
|
|
|
|
activeTabBorderBottom: "#FF6D2D",
|
|
|
|
|
activeTabText: "#000",
|
|
|
|
|
},
|
2020-09-23 14:06:50 +00:00
|
|
|
button: {
|
|
|
|
|
disabledText: lightShades[6],
|
|
|
|
|
},
|
2020-09-16 11:50:47 +00:00
|
|
|
tertiary: {
|
|
|
|
|
main: "#716E6E",
|
|
|
|
|
light: "#090707",
|
2020-09-23 14:06:50 +00:00
|
|
|
dark: "#F7F7F7",
|
2020-09-16 11:50:47 +00:00
|
|
|
darker: "#E8E8E8",
|
2020-09-23 14:06:50 +00:00
|
|
|
darkest: "#939090",
|
2020-09-16 11:50:47 +00:00
|
|
|
},
|
|
|
|
|
info: {
|
|
|
|
|
main: "#F86A2B",
|
2020-09-23 14:06:50 +00:00
|
|
|
light: "#DC5B21",
|
2020-09-16 11:50:47 +00:00
|
|
|
dark: "#BF4109",
|
|
|
|
|
darker: "#FEEDE5",
|
|
|
|
|
darkest: "#F7EBE6",
|
|
|
|
|
},
|
|
|
|
|
success: {
|
|
|
|
|
main: "#03B365",
|
|
|
|
|
light: "#007340",
|
|
|
|
|
dark: "#00693B",
|
|
|
|
|
darker: "#DEFFF0",
|
|
|
|
|
darkest: "#CBF4E2",
|
|
|
|
|
},
|
|
|
|
|
warning: {
|
|
|
|
|
main: "#FECB11",
|
|
|
|
|
light: "#D1A606",
|
|
|
|
|
dark: "#D9AC07",
|
|
|
|
|
darker: "#FFFBEF",
|
|
|
|
|
darkest: "#FECB11",
|
|
|
|
|
},
|
|
|
|
|
danger: {
|
|
|
|
|
main: "#F22B2B",
|
|
|
|
|
light: "#C60707",
|
|
|
|
|
dark: "#B90707",
|
|
|
|
|
darker: "#FFF0F0",
|
|
|
|
|
darkest: "#FDE4E4",
|
|
|
|
|
},
|
|
|
|
|
homepageBackground: "#fafafa",
|
|
|
|
|
card: {
|
|
|
|
|
hoverBG: Colors.WHITE,
|
|
|
|
|
hoverBGOpacity: 0.7,
|
2020-09-23 14:06:50 +00:00
|
|
|
hoverBorder: lightShades[2],
|
|
|
|
|
iconColor: lightShades[11],
|
2020-09-16 11:50:47 +00:00
|
|
|
},
|
2020-09-23 14:06:50 +00:00
|
|
|
text: {
|
|
|
|
|
normal: lightShades[8],
|
|
|
|
|
heading: lightShades[9],
|
2021-02-04 07:02:36 +00:00
|
|
|
highlight: lightShades[11],
|
2020-09-23 14:06:50 +00:00
|
|
|
},
|
|
|
|
|
icon: {
|
|
|
|
|
normal: lightShades[4],
|
|
|
|
|
hover: lightShades[8],
|
|
|
|
|
active: lightShades[9],
|
|
|
|
|
},
|
|
|
|
|
appIcon: {
|
|
|
|
|
normal: lightShades[7],
|
|
|
|
|
background: lightShades[1],
|
|
|
|
|
},
|
|
|
|
|
menu: {
|
|
|
|
|
background: lightShades[11],
|
|
|
|
|
shadow: "rgba(0, 0, 0, 0.32)",
|
|
|
|
|
},
|
|
|
|
|
menuItem: {
|
|
|
|
|
normalText: lightShades[8],
|
|
|
|
|
normalIcon: lightShades[6],
|
|
|
|
|
hoverIcon: lightShades[8],
|
|
|
|
|
hoverText: lightShades[10],
|
|
|
|
|
hoverBg: lightShades[2],
|
2020-10-14 10:35:19 +00:00
|
|
|
warning: {
|
|
|
|
|
color: "#D2A500",
|
|
|
|
|
bg: "#FDFAF2",
|
|
|
|
|
},
|
2020-09-23 14:06:50 +00:00
|
|
|
},
|
|
|
|
|
colorSelector: {
|
|
|
|
|
shadow: lightShades[3],
|
|
|
|
|
checkmark: lightShades[11],
|
|
|
|
|
},
|
|
|
|
|
checkbox: {
|
|
|
|
|
disabled: lightShades[3],
|
|
|
|
|
unchecked: lightShades[4],
|
|
|
|
|
disabledCheck: lightShades[6],
|
|
|
|
|
normalCheck: lightShades[11],
|
|
|
|
|
labelColor: lightShades[9],
|
|
|
|
|
},
|
|
|
|
|
dropdown: {
|
|
|
|
|
header: {
|
|
|
|
|
text: lightShades[9],
|
2020-10-12 07:15:35 +00:00
|
|
|
disabledText: darkShades[6],
|
2020-09-23 14:06:50 +00:00
|
|
|
bg: lightShades[2],
|
|
|
|
|
disabledBg: lightShades[1],
|
|
|
|
|
},
|
|
|
|
|
menuBg: lightShades[11],
|
|
|
|
|
menuShadow: "rgba(0, 0, 0, 0.32)",
|
|
|
|
|
selected: {
|
|
|
|
|
text: lightShades[9],
|
|
|
|
|
bg: lightShades[2],
|
|
|
|
|
icon: lightShades[8],
|
|
|
|
|
},
|
|
|
|
|
icon: lightShades[7],
|
|
|
|
|
},
|
|
|
|
|
toggle: {
|
|
|
|
|
bg: lightShades[4],
|
|
|
|
|
hover: {
|
|
|
|
|
on: "#E4500E",
|
|
|
|
|
off: lightShades[5],
|
|
|
|
|
},
|
|
|
|
|
disable: {
|
|
|
|
|
on: "#FDE0D2",
|
|
|
|
|
off: lightShades[3],
|
|
|
|
|
},
|
|
|
|
|
disabledSlider: {
|
|
|
|
|
off: lightShades[11],
|
|
|
|
|
on: lightShades[11],
|
|
|
|
|
},
|
|
|
|
|
spinner: lightShades[6],
|
|
|
|
|
},
|
|
|
|
|
textInput: {
|
|
|
|
|
disable: {
|
|
|
|
|
bg: lightShades[1],
|
|
|
|
|
text: darkShades[6],
|
|
|
|
|
border: lightShades[1],
|
|
|
|
|
},
|
|
|
|
|
normal: {
|
|
|
|
|
bg: lightShades[2],
|
|
|
|
|
text: lightShades[9],
|
|
|
|
|
border: lightShades[2],
|
|
|
|
|
},
|
2020-10-12 07:15:35 +00:00
|
|
|
placeholder: lightShades[7],
|
|
|
|
|
readOnly: {
|
|
|
|
|
bg: lightShades[2],
|
|
|
|
|
border: lightShades[2],
|
|
|
|
|
text: lightShades[7],
|
|
|
|
|
},
|
2020-09-23 14:06:50 +00:00
|
|
|
},
|
|
|
|
|
menuBorder: lightShades[3],
|
|
|
|
|
editableText: {
|
|
|
|
|
color: lightShades[10],
|
2020-09-28 05:06:06 +00:00
|
|
|
bg: lightShades[2],
|
2020-09-23 14:06:50 +00:00
|
|
|
dangerBg: "rgba(242, 43, 43, 0.06)",
|
|
|
|
|
},
|
|
|
|
|
radio: {
|
|
|
|
|
disable: lightShades[4],
|
|
|
|
|
border: lightShades[3],
|
2021-02-11 12:54:00 +00:00
|
|
|
text: lightShades[10],
|
2020-09-23 14:06:50 +00:00
|
|
|
},
|
|
|
|
|
searchInput: {
|
|
|
|
|
placeholder: lightShades[6],
|
|
|
|
|
text: lightShades[10],
|
|
|
|
|
border: lightShades[3],
|
|
|
|
|
bg: lightShades[1],
|
|
|
|
|
icon: {
|
|
|
|
|
focused: lightShades[7],
|
|
|
|
|
normal: lightShades[5],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
spinner: lightShades[6],
|
|
|
|
|
tableDropdown: {
|
|
|
|
|
bg: lightShades[11],
|
|
|
|
|
selectedBg: lightShades[2],
|
|
|
|
|
selectedText: lightShades[9],
|
|
|
|
|
shadow: "rgba(0, 0, 0, 0.32)",
|
|
|
|
|
},
|
|
|
|
|
tabs: {
|
|
|
|
|
normal: lightShades[6],
|
|
|
|
|
hover: lightShades[10],
|
|
|
|
|
border: lightShades[3],
|
|
|
|
|
},
|
|
|
|
|
settingHeading: lightShades[9],
|
|
|
|
|
table: {
|
|
|
|
|
headerBg: lightShades[1],
|
|
|
|
|
headerText: lightShades[6],
|
|
|
|
|
rowData: lightShades[7],
|
|
|
|
|
rowTitle: lightShades[9],
|
|
|
|
|
border: lightShades[3],
|
|
|
|
|
hover: {
|
|
|
|
|
headerColor: lightShades[9],
|
|
|
|
|
rowBg: lightShades[2],
|
|
|
|
|
rowTitle: lightShades[10],
|
|
|
|
|
rowData: lightShades[9],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
applications: {
|
2020-10-20 09:01:54 +00:00
|
|
|
bg: lightShades[3],
|
2020-09-23 14:06:50 +00:00
|
|
|
textColor: lightShades[7],
|
|
|
|
|
orgColor: lightShades[7],
|
|
|
|
|
iconColor: lightShades[7],
|
|
|
|
|
hover: {
|
2020-10-20 09:01:54 +00:00
|
|
|
bg: lightShades[5],
|
2020-09-23 14:06:50 +00:00
|
|
|
textColor: lightShades[8],
|
|
|
|
|
orgColor: lightShades[9],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
switch: {
|
|
|
|
|
border: lightShades[5],
|
|
|
|
|
bg: lightShades[11],
|
|
|
|
|
hover: {
|
|
|
|
|
bg: lightShades[11],
|
|
|
|
|
},
|
|
|
|
|
lightText: lightShades[11],
|
|
|
|
|
darkText: lightShades[6],
|
|
|
|
|
},
|
|
|
|
|
queryTemplate: {
|
|
|
|
|
bg: lightShades[3],
|
|
|
|
|
color: lightShades[7],
|
|
|
|
|
},
|
2020-09-26 13:22:15 +00:00
|
|
|
profileDropdown: {
|
|
|
|
|
userName: lightShades[9],
|
|
|
|
|
},
|
2020-10-12 07:15:35 +00:00
|
|
|
modal: {
|
|
|
|
|
bg: lightShades[11],
|
|
|
|
|
headerText: lightShades[10],
|
2021-02-11 12:54:00 +00:00
|
|
|
iconColor: lightShades[5],
|
2020-10-12 07:15:35 +00:00
|
|
|
user: {
|
|
|
|
|
textColor: lightShades[9],
|
|
|
|
|
},
|
|
|
|
|
email: {
|
|
|
|
|
message: lightShades[9],
|
|
|
|
|
desc: lightShades[7],
|
|
|
|
|
},
|
|
|
|
|
manageUser: lightShades[6],
|
2020-11-04 17:06:29 +00:00
|
|
|
scrollbar: lightShades[5],
|
2021-01-19 06:17:15 +00:00
|
|
|
separator: lightShades[4],
|
|
|
|
|
title: lightShades[8],
|
|
|
|
|
link: "#F86A2B",
|
2021-01-22 06:01:41 +00:00
|
|
|
hoverState: lightShades[3],
|
2020-10-12 07:15:35 +00:00
|
|
|
},
|
|
|
|
|
tagInput: {
|
|
|
|
|
bg: lightShades[2],
|
|
|
|
|
tag: {
|
|
|
|
|
text: lightShades[11],
|
|
|
|
|
},
|
|
|
|
|
text: lightShades[9],
|
|
|
|
|
placeholder: darkShades[7],
|
|
|
|
|
shadow: "0px 0px 4px 4px rgba(203, 72, 16, 0.18)",
|
|
|
|
|
},
|
|
|
|
|
callout: {
|
|
|
|
|
info: {
|
|
|
|
|
color: "#D44100",
|
|
|
|
|
bgColor: "#F8F3F0",
|
|
|
|
|
},
|
|
|
|
|
success: {
|
2021-02-11 12:54:00 +00:00
|
|
|
color: "#03B365",
|
|
|
|
|
bgColor: "#E4F4ED",
|
2020-10-12 07:15:35 +00:00
|
|
|
},
|
|
|
|
|
danger: {
|
2021-02-11 12:54:00 +00:00
|
|
|
color: "#F22B2B",
|
|
|
|
|
bgColor: "#F9E9E9",
|
2020-10-12 07:15:35 +00:00
|
|
|
},
|
|
|
|
|
warning: {
|
2021-02-11 12:54:00 +00:00
|
|
|
color: "#FEB811",
|
|
|
|
|
bgColor: "#FAF3E3",
|
2020-10-12 07:15:35 +00:00
|
|
|
},
|
|
|
|
|
},
|
2020-10-14 10:35:19 +00:00
|
|
|
loader: {
|
|
|
|
|
light: lightShades[2],
|
|
|
|
|
dark: lightShades[4],
|
|
|
|
|
},
|
2020-12-01 22:01:27 +00:00
|
|
|
filePicker: {
|
|
|
|
|
bg: lightShades[2],
|
|
|
|
|
color: lightShades[7],
|
|
|
|
|
progress: lightShades[6],
|
|
|
|
|
shadow: {
|
|
|
|
|
from: "rgba(253, 253, 253, 0.0001)",
|
|
|
|
|
to: "rgba(250, 250, 250, 0.898847)",
|
|
|
|
|
},
|
|
|
|
|
},
|
2020-11-05 07:04:44 +00:00
|
|
|
formFooter: {
|
2020-11-06 07:53:38 +00:00
|
|
|
cancelBtn: lightShades[9],
|
2020-11-05 07:04:44 +00:00
|
|
|
},
|
2020-11-24 07:01:37 +00:00
|
|
|
toast: {
|
|
|
|
|
undo: "#F86A2B",
|
|
|
|
|
warningColor: "#DCAD00",
|
|
|
|
|
dangerColor: "#F22B2B",
|
|
|
|
|
textColor: "#F7F7F7",
|
|
|
|
|
bg: lightShades[10],
|
|
|
|
|
},
|
2021-02-11 12:54:00 +00:00
|
|
|
multiSwitch: {
|
|
|
|
|
bg: lightShades[3],
|
|
|
|
|
selectedBg: lightShades[11],
|
|
|
|
|
text: lightShades[8],
|
|
|
|
|
border: "#E0DEDE",
|
|
|
|
|
},
|
|
|
|
|
apiPane: {
|
|
|
|
|
bg: lightShades[11],
|
|
|
|
|
text: lightShades[6],
|
|
|
|
|
dividerBg: lightShades[3],
|
|
|
|
|
iconHoverBg: lightShades[1],
|
|
|
|
|
requestTree: {
|
|
|
|
|
bg: lightShades[11],
|
|
|
|
|
header: {
|
|
|
|
|
text: lightShades[8],
|
|
|
|
|
icon: lightShades[8],
|
|
|
|
|
bg: lightShades[2],
|
|
|
|
|
},
|
|
|
|
|
row: {
|
|
|
|
|
hoverBg: lightShades[2],
|
|
|
|
|
key: lightShades[7],
|
|
|
|
|
value: lightShades[8],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
moreActions: {
|
|
|
|
|
targetBg: "#E8E8E8",
|
|
|
|
|
targetIcon: {
|
|
|
|
|
normal: "#939090",
|
|
|
|
|
hover: "#4B4848",
|
|
|
|
|
},
|
|
|
|
|
menuShadow: "0px 12px 28px -8px rgba(0, 0, 0, 0.32)",
|
|
|
|
|
menuBg: {
|
|
|
|
|
normal: lightShades[11],
|
|
|
|
|
hover: lightShades[2],
|
|
|
|
|
},
|
|
|
|
|
menuText: {
|
|
|
|
|
normal: lightShades[6],
|
|
|
|
|
hover: lightShades[8],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
closeIcon: lightShades[10],
|
|
|
|
|
responseBody: {
|
|
|
|
|
bg: lightShades[11],
|
|
|
|
|
},
|
|
|
|
|
codeEditor: {
|
|
|
|
|
placeholderColor: lightShades[5],
|
|
|
|
|
},
|
|
|
|
|
body: {
|
|
|
|
|
text: "#A9A7A7",
|
|
|
|
|
},
|
|
|
|
|
settings: {
|
|
|
|
|
textColor: "#090707",
|
|
|
|
|
},
|
|
|
|
|
pagination: {
|
|
|
|
|
label: lightShades[8],
|
|
|
|
|
description: lightShades[5],
|
|
|
|
|
stepTitle: lightShades[10],
|
|
|
|
|
numberBg: "#E0DEDE",
|
|
|
|
|
bindingBg: lightShades[3],
|
|
|
|
|
numberColor: lightShades[10],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
codeMirror: {
|
|
|
|
|
background: {
|
|
|
|
|
defaultState: "#EBEBEB",
|
|
|
|
|
hoverState: "#FAFAFA",
|
|
|
|
|
},
|
|
|
|
|
text: "#090707",
|
|
|
|
|
dataType: {
|
|
|
|
|
shortForm: "#858282",
|
|
|
|
|
fullForm: "#6D6D6D",
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-01-19 06:17:15 +00:00
|
|
|
floatingBtn: {
|
|
|
|
|
tagBackground: "#e22c2c",
|
|
|
|
|
backgroundColor: lightShades[3],
|
|
|
|
|
iconColor: lightShades[7],
|
|
|
|
|
},
|
2021-01-27 06:12:32 +00:00
|
|
|
auth,
|
|
|
|
|
formMessage,
|
2021-02-11 12:54:00 +00:00
|
|
|
gif: {
|
|
|
|
|
overlay: "#ffffff",
|
|
|
|
|
text: "#6f6f6f",
|
|
|
|
|
iconPath: "#c4c4c4",
|
|
|
|
|
iconCircle: "#090707",
|
|
|
|
|
},
|
2020-09-16 11:50:47 +00:00
|
|
|
};
|
|
|
|
|
|
2019-09-05 17:47:50 +00:00
|
|
|
export const theme: Theme = {
|
2019-10-02 18:13:04 +00:00
|
|
|
radii: [0, 4, 8, 10, 20, 50],
|
2019-09-06 09:30:22 +00:00
|
|
|
fontSizes: [0, 10, 12, 14, 16, 18, 24, 28, 32, 48, 64],
|
2020-12-01 22:01:27 +00:00
|
|
|
spaces: [0, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 30, 36, 38, 40, 42, 44],
|
2019-09-05 17:47:50 +00:00
|
|
|
fontWeights: [0, 400, 500, 700],
|
2020-08-10 04:54:33 +00:00
|
|
|
typography: {
|
|
|
|
|
h1: {
|
|
|
|
|
fontSize: 20,
|
|
|
|
|
lineHeight: 27,
|
2021-02-11 12:54:00 +00:00
|
|
|
letterSpacing: -0.204,
|
2020-08-14 04:58:03 +00:00
|
|
|
fontWeight: 500,
|
2020-08-10 04:54:33 +00:00
|
|
|
},
|
|
|
|
|
h2: {
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
lineHeight: 25,
|
2021-02-11 12:54:00 +00:00
|
|
|
letterSpacing: -0.204,
|
2020-08-14 04:58:03 +00:00
|
|
|
fontWeight: 500,
|
2020-08-10 04:54:33 +00:00
|
|
|
},
|
|
|
|
|
h3: {
|
|
|
|
|
fontSize: 17,
|
|
|
|
|
lineHeight: 22,
|
2021-02-11 12:54:00 +00:00
|
|
|
letterSpacing: -0.204,
|
2020-08-14 04:58:03 +00:00
|
|
|
fontWeight: 500,
|
2020-08-10 04:54:33 +00:00
|
|
|
},
|
|
|
|
|
h4: {
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
lineHeight: 21,
|
|
|
|
|
letterSpacing: -0.24,
|
2020-08-14 04:58:03 +00:00
|
|
|
fontWeight: 500,
|
2020-08-10 04:54:33 +00:00
|
|
|
},
|
|
|
|
|
h5: {
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
lineHeight: 19,
|
|
|
|
|
letterSpacing: -0.24,
|
2020-08-14 04:58:03 +00:00
|
|
|
fontWeight: 500,
|
2020-08-10 04:54:33 +00:00
|
|
|
},
|
|
|
|
|
h6: {
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
lineHeight: 14,
|
|
|
|
|
letterSpacing: 0.8,
|
2020-08-14 04:58:03 +00:00
|
|
|
fontWeight: 500,
|
2020-08-10 04:54:33 +00:00
|
|
|
},
|
|
|
|
|
p1: {
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
lineHeight: 19,
|
|
|
|
|
letterSpacing: -0.24,
|
2020-08-14 04:58:03 +00:00
|
|
|
fontWeight: "normal",
|
2020-08-10 04:54:33 +00:00
|
|
|
},
|
|
|
|
|
p2: {
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
lineHeight: 17,
|
|
|
|
|
letterSpacing: -0.24,
|
2020-08-14 04:58:03 +00:00
|
|
|
fontWeight: "normal",
|
2020-08-10 04:54:33 +00:00
|
|
|
},
|
|
|
|
|
p3: {
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
lineHeight: 16,
|
|
|
|
|
letterSpacing: -0.221538,
|
2020-08-14 04:58:03 +00:00
|
|
|
fontWeight: "normal",
|
2020-08-10 04:54:33 +00:00
|
|
|
},
|
|
|
|
|
btnLarge: {
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
lineHeight: 15,
|
|
|
|
|
letterSpacing: 0.6,
|
|
|
|
|
fontWeight: 600,
|
|
|
|
|
},
|
|
|
|
|
btnMedium: {
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
lineHeight: 14,
|
|
|
|
|
letterSpacing: 0.6,
|
|
|
|
|
fontWeight: 600,
|
|
|
|
|
},
|
|
|
|
|
btnSmall: {
|
|
|
|
|
fontSize: 11,
|
|
|
|
|
lineHeight: 13,
|
|
|
|
|
letterSpacing: 0.4,
|
|
|
|
|
fontWeight: 600,
|
|
|
|
|
},
|
2021-01-19 06:17:15 +00:00
|
|
|
floatingBtn: {
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
lineHeight: 17,
|
|
|
|
|
letterSpacing: -0.24,
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
},
|
|
|
|
|
releaseList: {
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
lineHeight: 23,
|
|
|
|
|
letterSpacing: -0.24,
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
},
|
2021-01-27 06:12:32 +00:00
|
|
|
authCardHeader: {
|
|
|
|
|
fontStyle: "normal",
|
|
|
|
|
fontWeight: 600,
|
2021-01-28 07:20:09 +00:00
|
|
|
fontSize: 25,
|
2021-01-27 06:12:32 +00:00
|
|
|
lineHeight: 20,
|
|
|
|
|
},
|
|
|
|
|
authCardSubheader: {
|
|
|
|
|
fontStyle: "normal",
|
|
|
|
|
fontWeight: "normal",
|
2021-01-28 07:20:09 +00:00
|
|
|
fontSize: 15,
|
2021-01-27 06:12:32 +00:00
|
|
|
lineHeight: 20,
|
|
|
|
|
},
|
2020-08-10 04:54:33 +00:00
|
|
|
},
|
|
|
|
|
iconSizes: {
|
2020-09-16 11:50:47 +00:00
|
|
|
XXS: 8,
|
|
|
|
|
XS: 10,
|
2020-08-31 04:59:18 +00:00
|
|
|
SMALL: 12,
|
|
|
|
|
MEDIUM: 14,
|
|
|
|
|
LARGE: 15,
|
|
|
|
|
XL: 16,
|
|
|
|
|
XXL: 18,
|
|
|
|
|
XXXL: 20,
|
2020-08-10 04:54:33 +00:00
|
|
|
},
|
2019-10-21 11:40:24 +00:00
|
|
|
propertyPane: {
|
2020-01-28 08:21:22 +00:00
|
|
|
width: 270,
|
2019-10-21 11:40:24 +00:00
|
|
|
height: 600,
|
2019-11-13 07:00:25 +00:00
|
|
|
dividerColor: Colors.MAKO,
|
2019-10-21 11:40:24 +00:00
|
|
|
},
|
2020-06-04 13:49:22 +00:00
|
|
|
evaluatedValuePopup: {
|
|
|
|
|
width: 300,
|
2020-08-04 12:21:02 +00:00
|
|
|
height: 500,
|
2020-06-04 13:49:22 +00:00
|
|
|
},
|
2019-10-21 15:12:45 +00:00
|
|
|
drawerWidth: "80%",
|
2019-09-05 17:47:50 +00:00
|
|
|
colors: {
|
2020-09-23 14:06:50 +00:00
|
|
|
tooltip: {
|
|
|
|
|
lightBg: lightShades[0],
|
|
|
|
|
darkBg: lightShades[10],
|
|
|
|
|
},
|
2021-02-08 07:30:01 +00:00
|
|
|
appBackground: "#EDEDED",
|
|
|
|
|
artboard: "#F6F6F6",
|
2020-08-10 04:54:33 +00:00
|
|
|
primaryOld: Colors.GREEN,
|
2019-10-21 15:12:45 +00:00
|
|
|
primaryDarker: Colors.JUNGLE_GREEN,
|
|
|
|
|
primaryDarkest: Colors.JUNGLE_GREEN_DARKER,
|
|
|
|
|
secondary: Colors.GEYSER_LIGHT,
|
|
|
|
|
secondaryDarker: Colors.CONCRETE,
|
|
|
|
|
secondaryDarkest: Colors.MERCURY,
|
2019-09-05 17:47:50 +00:00
|
|
|
error: Colors.RED,
|
2020-08-10 04:54:33 +00:00
|
|
|
infoOld: Colors.SLATE_GRAY,
|
2020-08-05 07:33:44 +00:00
|
|
|
errorMessage: Colors.ERROR_RED,
|
2019-09-06 11:40:00 +00:00
|
|
|
hover: Colors.POLAR,
|
2020-02-24 12:58:16 +00:00
|
|
|
inputActiveBorder: Colors.HIT_GRAY,
|
2019-10-21 15:12:45 +00:00
|
|
|
inputInactiveBG: Colors.AQUA_HAZE,
|
2019-09-06 11:40:00 +00:00
|
|
|
textDefault: Colors.BLACK_PEARL,
|
2019-09-06 09:30:22 +00:00
|
|
|
textOnDarkBG: Colors.WHITE,
|
2019-09-06 11:40:00 +00:00
|
|
|
textAnchor: Colors.PURPLE,
|
|
|
|
|
border: Colors.GEYSER,
|
|
|
|
|
paneCard: Colors.SHARK,
|
Property Pane Controls
- Fixes #121, #122, #123, #124, #90, #46, #65, #100, #101, #68, #102
2019-10-24 05:24:45 +00:00
|
|
|
paneInputBG: Colors.SHARK,
|
2019-09-06 11:40:00 +00:00
|
|
|
paneBG: Colors.OUTER_SPACE,
|
Property Pane Controls
- Fixes #121, #122, #123, #124, #90, #46, #65, #100, #101, #68, #102
2019-10-24 05:24:45 +00:00
|
|
|
paneText: Colors.GRAY_CHATEAU,
|
2020-04-15 11:42:11 +00:00
|
|
|
paneTextBG: Colors.DEEP_SPACE,
|
2020-03-20 09:45:44 +00:00
|
|
|
paneTextUnderline: Colors.LIGHT_GREYISH_BLUE,
|
Property Pane Controls
- Fixes #121, #122, #123, #124, #90, #46, #65, #100, #101, #68, #102
2019-10-24 05:24:45 +00:00
|
|
|
paneSectionLabel: Colors.CADET_BLUE,
|
2019-11-13 11:34:11 +00:00
|
|
|
navBG: Colors.SHARK,
|
2020-06-10 17:31:20 +00:00
|
|
|
grid: Colors.TROUT,
|
2019-10-01 20:07:43 +00:00
|
|
|
containerBorder: Colors.FRENCH_PASS,
|
2019-10-18 08:16:26 +00:00
|
|
|
menuButtonBGInactive: Colors.JUNGLE_MIST,
|
|
|
|
|
menuIconColorInactive: Colors.OXFORD_BLUE,
|
2019-11-21 10:52:49 +00:00
|
|
|
bodyBG: Colors.ATHENS_GRAY,
|
|
|
|
|
builderBodyBG: Colors.WHITE,
|
2020-06-10 17:31:20 +00:00
|
|
|
widgetBorder: Colors.SLATE_GRAY,
|
2020-01-07 07:22:12 +00:00
|
|
|
widgetSecondaryBorder: Colors.MERCURY,
|
2020-02-25 11:33:07 +00:00
|
|
|
messageBG: Colors.CONCRETE,
|
2020-02-26 12:44:56 +00:00
|
|
|
paneIcon: Colors.TROUT,
|
2020-05-28 18:10:26 +00:00
|
|
|
notification: Colors.JAFFA,
|
2020-07-31 10:17:18 +00:00
|
|
|
bindingTextDark: Colors.BINDING_COLOR,
|
|
|
|
|
bindingText: Colors.BINDING_COLOR_LT,
|
2020-06-02 07:13:13 +00:00
|
|
|
cmBacground: Colors.BLUE_CHARCOAL,
|
2020-06-02 11:48:54 +00:00
|
|
|
lightningborder: Colors.ALABASTER,
|
2020-11-05 07:04:44 +00:00
|
|
|
formButtonColor: Colors.WHITE,
|
2020-12-09 07:06:02 +00:00
|
|
|
appCardColors: appColors,
|
2021-02-11 12:54:00 +00:00
|
|
|
dataTypeBg: {
|
|
|
|
|
function: "#BDB2FF",
|
|
|
|
|
object: "#FFD6A5",
|
|
|
|
|
unknown: "#4bb",
|
|
|
|
|
array: "#CDFFA5",
|
|
|
|
|
number: "#FFB2B2",
|
|
|
|
|
},
|
2019-09-05 17:47:50 +00:00
|
|
|
},
|
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
|
|
|
lineHeights: [0, 14, 16, 18, 22, 24, 28, 36, 48, 64, 80],
|
2020-08-18 21:51:23 +00:00
|
|
|
fonts: {
|
|
|
|
|
text: FontFamilies.TextFonts,
|
|
|
|
|
code: FontFamilies.CodeFonts,
|
|
|
|
|
},
|
2019-09-22 20:25:05 +00:00
|
|
|
borders: [
|
|
|
|
|
{
|
2019-10-28 13:20:33 +00:00
|
|
|
thickness: 1,
|
2019-10-08 09:09:30 +00:00
|
|
|
style: "dashed",
|
|
|
|
|
color: Colors.FRENCH_PASS,
|
|
|
|
|
},
|
|
|
|
|
{
|
2019-10-28 13:20:33 +00:00
|
|
|
thickness: 2,
|
2019-10-01 20:07:43 +00:00
|
|
|
style: "solid",
|
|
|
|
|
color: Colors.FRENCH_PASS,
|
2019-09-22 20:25:05 +00:00
|
|
|
},
|
Property Pane Controls
- Fixes #121, #122, #123, #124, #90, #46, #65, #100, #101, #68, #102
2019-10-24 05:24:45 +00:00
|
|
|
{
|
2019-10-28 13:20:33 +00:00
|
|
|
thickness: 1,
|
Property Pane Controls
- Fixes #121, #122, #123, #124, #90, #46, #65, #100, #101, #68, #102
2019-10-24 05:24:45 +00:00
|
|
|
style: "solid",
|
|
|
|
|
color: Colors.GEYSER_LIGHT,
|
|
|
|
|
},
|
2019-12-16 08:49:10 +00:00
|
|
|
{
|
|
|
|
|
thickness: 1,
|
|
|
|
|
style: "solid",
|
|
|
|
|
color: Colors.FRENCH_PASS,
|
|
|
|
|
},
|
2020-01-17 12:34:58 +00:00
|
|
|
{
|
|
|
|
|
thickness: 3,
|
|
|
|
|
style: "solid",
|
|
|
|
|
color: Colors.MYSTIC,
|
|
|
|
|
},
|
2019-09-22 20:25:05 +00:00
|
|
|
],
|
2021-02-16 10:26:09 +00:00
|
|
|
sidebarWidth: "250px",
|
2020-09-16 11:50:47 +00:00
|
|
|
homePage: {
|
|
|
|
|
header: 52,
|
|
|
|
|
leftPane: {
|
|
|
|
|
width: 240,
|
|
|
|
|
leftPadding: 16,
|
|
|
|
|
rightMargin: 113,
|
|
|
|
|
},
|
|
|
|
|
search: {
|
|
|
|
|
height: 68,
|
|
|
|
|
paddingTop: 30,
|
|
|
|
|
},
|
|
|
|
|
},
|
2020-09-02 06:44:01 +00:00
|
|
|
headerHeight: "48px",
|
2021-02-04 07:02:36 +00:00
|
|
|
smallHeaderHeight: "35px",
|
2020-03-27 09:02:11 +00:00
|
|
|
canvasPadding: "20px 0 200px 0",
|
2019-10-31 08:36:04 +00:00
|
|
|
sideNav: {
|
2020-04-14 05:41:18 +00:00
|
|
|
maxWidth: 220,
|
2019-10-31 08:36:04 +00:00
|
|
|
minWidth: 50,
|
|
|
|
|
bgColor: Colors.OXFORD_BLUE,
|
|
|
|
|
fontColor: Colors.WHITE,
|
2019-11-01 05:28:56 +00:00
|
|
|
activeItemBGColor: Colors.SHARK,
|
|
|
|
|
navItemHeight: 42,
|
2019-10-31 08:36:04 +00:00
|
|
|
},
|
2019-11-07 04:59:40 +00:00
|
|
|
card: {
|
2020-08-18 06:40:11 +00:00
|
|
|
minWidth: 150,
|
|
|
|
|
minHeight: 150,
|
2019-11-21 10:52:49 +00:00
|
|
|
titleHeight: 48,
|
|
|
|
|
divider: {
|
|
|
|
|
thickness: 1,
|
|
|
|
|
style: "solid",
|
|
|
|
|
color: Colors.GEYSER_LIGHT,
|
|
|
|
|
},
|
2019-11-07 04:59:40 +00:00
|
|
|
},
|
2020-05-19 06:53:37 +00:00
|
|
|
dropdown: {
|
2020-05-29 06:07:18 +00:00
|
|
|
[Skin.LIGHT]: {
|
2021-02-11 12:54:00 +00:00
|
|
|
hoverBG: lightShades[0],
|
|
|
|
|
hoverText: lightShades[10],
|
|
|
|
|
inActiveBG: lightShades[3],
|
|
|
|
|
inActiveText: lightShades[8],
|
2020-05-19 06:53:37 +00:00
|
|
|
},
|
2020-05-29 06:07:18 +00:00
|
|
|
[Skin.DARK]: {
|
2021-02-11 12:54:00 +00:00
|
|
|
hoverBG: darkShades[0],
|
|
|
|
|
hoverText: darkShades[9],
|
|
|
|
|
inActiveBG: darkShades[2],
|
|
|
|
|
inActiveText: darkShades[7],
|
2020-05-19 17:24:38 +00:00
|
|
|
border: Colors.TROUT_DARK,
|
2021-02-02 12:17:18 +00:00
|
|
|
background: darkShades[4],
|
2020-05-19 06:53:37 +00:00
|
|
|
},
|
|
|
|
|
},
|
2019-12-16 08:49:10 +00:00
|
|
|
authCard: {
|
2021-01-28 07:20:09 +00:00
|
|
|
width: 440,
|
2019-12-16 08:49:10 +00:00
|
|
|
dividerSpacing: 32,
|
2021-01-28 07:20:09 +00:00
|
|
|
formMessageWidth: 370,
|
2019-12-16 08:49:10 +00:00
|
|
|
},
|
2020-01-17 12:34:58 +00:00
|
|
|
shadows: [
|
2020-11-04 16:32:49 +00:00
|
|
|
/* 0. tab */
|
2020-04-15 11:42:11 +00:00
|
|
|
`inset -1px 0px 0px ${Colors.ATHENS_GRAY}, inset 1px 0px 0px ${Colors.ATHENS_GRAY}, inset 0px 4px 0px ${Colors.GREEN}`,
|
2020-11-04 17:33:32 +00:00
|
|
|
/* 1. first tab */
|
2020-11-04 14:53:33 +00:00
|
|
|
`inset -1px 0px 0px ${Colors.ATHENS_GRAY}, inset 0px 0px 0px ${Colors.ATHENS_GRAY}, inset 0px 4px 0px ${Colors.GREEN}`,
|
2020-11-04 17:33:32 +00:00
|
|
|
/* 2. container */
|
|
|
|
|
`0 1px 1px 0 rgba(60,75,100,.14) ,0 2px 1px -1px rgba(60,75,100,.12), 0 1px 3px 0 rgba(60,75,100,.2)`,
|
2020-01-17 12:34:58 +00:00
|
|
|
],
|
2019-11-07 11:17:53 +00:00
|
|
|
widgets: {
|
|
|
|
|
tableWidget: {
|
|
|
|
|
selectHighlightColor: Colors.GEYSER_LIGHT,
|
|
|
|
|
},
|
|
|
|
|
},
|
2019-12-23 12:16:33 +00:00
|
|
|
pageContentWidth: 1224,
|
2020-02-18 10:41:52 +00:00
|
|
|
alert: {
|
|
|
|
|
info: {
|
|
|
|
|
color: Colors.AZURE_RADIANCE,
|
|
|
|
|
},
|
|
|
|
|
success: {
|
|
|
|
|
color: Colors.OCEAN_GREEN,
|
|
|
|
|
},
|
|
|
|
|
error: {
|
|
|
|
|
color: Colors.RED,
|
|
|
|
|
},
|
|
|
|
|
warning: {
|
|
|
|
|
color: Colors.BUTTER_CUP,
|
|
|
|
|
},
|
|
|
|
|
},
|
2020-05-24 09:59:22 +00:00
|
|
|
lightningMenu: {
|
2020-05-29 06:07:18 +00:00
|
|
|
[Skin.DARK]: {
|
2020-06-02 07:13:13 +00:00
|
|
|
default: {
|
2021-02-11 12:54:00 +00:00
|
|
|
color: darkShades[7],
|
|
|
|
|
background: "transparent",
|
2020-06-02 07:13:13 +00:00
|
|
|
},
|
|
|
|
|
active: {
|
2021-02-11 12:54:00 +00:00
|
|
|
color: darkShades[9],
|
|
|
|
|
background: dark.info.main,
|
2020-06-02 07:13:13 +00:00
|
|
|
},
|
|
|
|
|
hover: {
|
2021-02-11 12:54:00 +00:00
|
|
|
color: darkShades[9],
|
|
|
|
|
background: darkShades[7],
|
2020-06-02 07:13:13 +00:00
|
|
|
},
|
|
|
|
|
none: {
|
2020-06-02 11:48:54 +00:00
|
|
|
color: "transparent",
|
2020-06-02 07:13:13 +00:00
|
|
|
background: "transparent",
|
|
|
|
|
},
|
2020-05-24 09:59:22 +00:00
|
|
|
},
|
2020-05-29 06:07:18 +00:00
|
|
|
[Skin.LIGHT]: {
|
2020-06-02 07:13:13 +00:00
|
|
|
default: {
|
2021-02-11 12:54:00 +00:00
|
|
|
color: lightShades[7],
|
|
|
|
|
background: "transparent",
|
2020-06-02 07:13:13 +00:00
|
|
|
},
|
|
|
|
|
active: {
|
2021-02-11 12:54:00 +00:00
|
|
|
color: lightShades[11],
|
|
|
|
|
background: dark.info.light,
|
2020-06-02 07:13:13 +00:00
|
|
|
},
|
|
|
|
|
hover: {
|
2021-02-11 12:54:00 +00:00
|
|
|
color: lightShades[11],
|
|
|
|
|
background: lightShades[7],
|
2020-06-02 07:13:13 +00:00
|
|
|
},
|
|
|
|
|
none: {
|
2020-06-02 11:48:54 +00:00
|
|
|
color: "transparent",
|
2020-06-02 07:13:13 +00:00
|
|
|
background: "transparent",
|
|
|
|
|
},
|
2020-05-24 09:59:22 +00:00
|
|
|
},
|
|
|
|
|
},
|
2019-09-05 17:47:50 +00:00
|
|
|
};
|
2019-02-10 15:06:57 +00:00
|
|
|
|
2020-08-13 06:53:21 +00:00
|
|
|
export const scrollbarLight = css<{ backgroundColor?: Color }>`
|
2021-02-11 12:54:00 +00:00
|
|
|
scrollbar-color: ${(props) => props.theme.colors.paneText};
|
|
|
|
|
|
2020-07-29 09:01:17 +00:00
|
|
|
scrollbar-width: thin;
|
|
|
|
|
&::-webkit-scrollbar {
|
2020-08-28 09:55:20 +00:00
|
|
|
width: 4px;
|
|
|
|
|
height: 4px;
|
2020-07-29 09:01:17 +00:00
|
|
|
}
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
|
box-shadow: inset 0 0 6px
|
2020-12-24 04:32:25 +00:00
|
|
|
${(props) =>
|
2020-08-13 06:53:21 +00:00
|
|
|
props.backgroundColor
|
|
|
|
|
? props.backgroundColor
|
|
|
|
|
: getColorWithOpacity(props.theme.colors.paneText, 0.3)};
|
2020-07-29 09:01:17 +00:00
|
|
|
}
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
2020-12-24 04:32:25 +00:00
|
|
|
background-color: ${(props) => props.theme.colors.paneText};
|
|
|
|
|
border-radius: ${(props) => props.theme.radii[1]}px;
|
2020-07-29 09:01:17 +00:00
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2019-09-05 17:47:50 +00:00
|
|
|
export { css, createGlobalStyle, keyframes, ThemeProvider };
|
2021-02-11 12:54:00 +00:00
|
|
|
|
2019-09-05 17:47:50 +00:00
|
|
|
export default styled;
|