123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- import styled, { css } from 'styled-components';
- import BaseSQLEditor from 'components/common/SQLEditor/SQLEditor';
- import BaseEditor from 'components/common/Editor/Editor';
- export const QueryWrapper = styled.div`
- padding: 16px;
- `;
- export const KSQLInputsWrapper = styled.div`
- width: 100%;
- display: flex;
- gap: 24px;
- padding-bottom: 16px;
- & > div {
- flex-grow: 1;
- }
- `;
- export const KSQLInputHeader = styled.div`
- display: flex;
- justify-content: space-between;
- `;
- export const KSQLButtons = styled.div`
- display: flex;
- gap: 16px;
- `;
- export const StreamPropertiesContainer = styled.label`
- display: flex;
- flex-direction: column;
- gap: 10px;
- width: 50%;
- `;
- export const InputsContainer = styled.div`
- display: flex;
- justify-content: center;
- gap: 10px;
- `;
- export const StreamPropertiesInputWrapper = styled.div`
- & > input {
- height: 40px;
- border: 1px solid grey;
- border-radius: 4px;
- min-width: 300px;
- font-size: 16px;
- padding-left: 15px;
- }
- `;
- export const DeleteButtonWrapper = styled.div`
- min-height: 32px;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-self: flex-start;
- margin-top: 10px;
- `;
- export const LabelContainer = styled.div`
- display: flex;
- align-items: center;
- justify-content: space-between;
- `;
- export const Fieldset = styled.fieldset`
- width: 50%;
- `;
- export const Editor = styled(BaseEditor)(
- ({ readOnly, theme }) =>
- readOnly &&
- css`
- &,
- &.ace-tomorrow {
- background: ${theme.ksqlDb.query.editor.readonly.background};
- }
- .ace-cursor {
- ${theme.ksqlDb.query.editor.readonly.cursor}
- }
- `
- );
- export const SQLEditor = styled(BaseSQLEditor)(
- ({ readOnly, theme }) =>
- readOnly &&
- css`
- background: ${theme.ksqlDb.query.editor.readonly.background};
- .ace-cursor {
- ${theme.ksqlDb.query.editor.readonly.cursor}
- }
- `
- );
|