Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
envPresetColumnLabel: css({
marginBottom: "0.75rem",
}),
envPresetRow: css({
display: "flex",
flexDirection: "row",
alignItems: "center",
flex: "0 0 auto",
margin: "0.5rem",
}),
envPresetNumber: css({
flex: "0 0 4rem",
maxWidth: "4rem",
paddingLeft: "0.75rem",
}),
pluginName: css({
width: "100%",
padding: "0.75rem",
marginBottom: "1rem",
}),
envPresetCheckbox: css({
flex: "0 0 auto",
margin: "0 0 0 0.75rem !important", // TODO (bvaughn) Override input[type="checkbox"] style in main.css
}),
envPresetLabel: css({
flex: 1,
color: colors.inverseForeground,
":hover": {
textDecoration: "none",
color: colors.inverseForeground,
},
// @flow
import React from "react";
import { List } from "@webiny/ui/List";
import Revision from "./Revision";
import { Elevation } from "@webiny/ui/Elevation";
import { css } from "emotion";
import { CircularProgress } from "@webiny/ui/Progress";
const listWrapper = css({
margin: 25,
display: "flex",
flexDirection: "column",
overflow: "scroll",
maxHeight: "calc(100vh - 160px)",
".mdc-list .mdc-list-item": {
borderBottom: "1px solid var(--mdc-theme-on-background)"
},
".mdc-list .mdc-list-item:last-child": {
borderBottom: "none"
}
});
const RevisionsList = ({ pageDetails: { page }, loading }: Object) => {
return (
<button color="danger"></button>
);
};
const styles = {
container: css({
marginTop: 50,
marginBottom: 50,
}),
backLink: css({
textDecoration: 'none',
':hover': {
textDecoration: 'none',
},
}),
};
const mapStateToProps = (state) => ({
userId: state.root.userId,
joinRoomId: state.joinRoom.roomId,
joinPlayer: state.joinRoom.player,
joinedRoom: state.session.joinedRoom,
fontSize: 12,
alignItems: 'center',
color: colors.text,
cursor: 'default',
'> svg': {
marginLeft: '0.25rem',
},
':hover > div': {
display: 'block',
},
})
export const actionName = css({
padding: '0 0.5rem',
})
export const flushPopup = css({
position: 'absolute',
boxShadow: '0px 10px 13px 0px rgba(0,0,0,0.1)',
display: 'none',
width: 300,
zIndex: 2,
borderRadius: 3,
fontSize: 14,
top: '100%',
left: 0,
backgroundColor: colors.foreground,
color: colors.text,
padding: '0.5rem',
})
a {
margin: 3px 3px;
}
`;
const numberBoxContainer = css`
margin: 0 -5px;
a {
margin: 5px;
}
span {
margin: 0 5px;
}
`;
const loadMoreContainer = css({
margin: '5px 0',
display: 'flex',
justifyContent: 'center',
});
const primary = ({ theme }) => css`
background-color: ${theme.colors.primaryColor};
color: ${theme.colors.primaryTextColor};
&:hover,
&:focus {
background-color: ${darken(0.1, theme.colors.primaryColor)};
}
`;
const large = () => css`
import * as React from 'react';
import { SizedDiv } from './SizedDiv';
import { primaryDark, primaryLight, primary } from './Theme';
import { css, cx } from 'emotion';
const INLINE_SIZE_BREAKPOINT = 600;
const cursorStyle = css({ cursor: 'pointer' });
const itemStyle = css({
border: '1px solid',
lineHeight: '2',
});
const listStyle = css({
minWidth: '15em',
});
const flexStyle = css({
display: 'flex',
flexDirection: 'row',
});
const displayStyle = css({
flex: '1 1 auto',
});
interface EntityChooserProps {
{
return questionInfo(entity);
}}
>
{({ state, dispatch }) => (
)}
);
}
const labelStyle = css({
display: 'flex',
alignItems: 'center',
});
const labelTextStyle = css({
flex: '1 1 auto',
});
interface QuestionProps {
variable: string;
}
export default function QuestionList(props: QuestionProps) {
return (
{
const list = VariableDescriptor.first(
'name',
props.variable,
);
return flatten(list, 'QuestionDescriptor').filter(
q => {
flex: 1,
padding: "10px 20px"
}
});
const section = css({
display: "flex",
flexDirection: "row",
width: "calc(100vw - 60px)",
border: constants.border.base,
borderRadius: constants.borderRadius,
marginBottom: 20,
backgroundColor: colors.white.base
});
const textStyle = css({
padding: 20,
flex: 1,
alignSelf: "center",
...mixins.textEllipsis
});
const text =
"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.";
storiesOf("Components/Text", module).add("List", () => (
<div>
<h2 style="{{">Text</h2>
{Object.keys(typography).map(x =>
Object.keys(typography[x as keyof typeof typography]).map(y => {
const style = typography[x as keyof typeof typography][
y as keyof Type</div>
import * as React from "react";
import { storiesOf } from "@storybook/react";
import Stepper from "../src/components/Stepper";
import { css, cx } from "emotion";
import { action } from "@storybook/addon-actions";
const x = css({
position: "relative",
width: 800
});
const contentWrapper = css({
marginTop: 30,
textAlign: "center"
});
const label = css({ marginBottom: 20 });
const iconSize = css({ fontSize: 25 });
const data = [
{
id: 1,
label: "Buyer Registration",
icon: "pi-channel-partners"
},
{
id: 2,
export const icon = css({
"&.mdc-button__icon": {
width: "auto !important",
paddingRight: 5,
opacity: 0.75,
marginTop: 2
}
});
export const iconSearchType = css({
cursor: "pointer",
paddingLeft: 5
});
export const searchWrapper = css({
width: "100%",
backgroundColor: "rgba(0, 0, 0, 0.1)",
display: "flex",
padding: "10px 20px",
position: "relative",
borderRadius: 4,
transition: "background 100ms ease-in,width 100ms ease-out",
color: "var(--mdc-theme-surface)",
border: "1px solid transparent",
"&.active": {
color: "var(--mdc-theme-on-surface)",
border: "1px solid var(--mdc-theme-text-hint-on-dark)",
background: "var(--mdc-theme-surface)",
boxShadow: "0 1px 1px var(--mdc-theme-text-hint-on-dark)",
input: {
color: "var(--mdc-theme-on-surface)"