This commit is contained in:
Nathan Bierema 2024-04-07 15:14:18 -04:00
parent 034e38e5fa
commit 81c03e4619
14 changed files with 15 additions and 15 deletions

View File

@ -1,5 +1,5 @@
import React, { Component, ReactNode } from 'react';
import { Base16Theme } from 'base16';
import type { Base16Theme } from 'react-base16-styling';
import createStyledComponent from '../utils/createStyledComponent';
import * as styles from './styles';
import { commonStyle, tooltipStyle } from './styles/common';

View File

@ -1,5 +1,5 @@
import React, { PureComponent } from 'react';
import { Base16Theme } from 'base16';
import type { Base16Theme } from 'react-base16-styling';
import createStyledComponent from '../utils/createStyledComponent';
import * as styles from './styles';
import Button from '../Button';

View File

@ -1,7 +1,7 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import CodeMirror, { EditorChange } from 'codemirror';
import { Base16Theme } from 'base16';
import type { Base16Theme } from 'react-base16-styling';
import { defaultStyle, themedStyle } from './styles';
import { Theme } from '../themes/default';

View File

@ -1,6 +1,6 @@
import React, { PureComponent, Component } from 'react';
import JSONSchemaForm, { FormProps } from '@rjsf/core';
import { Base16Theme } from 'base16';
import type { Base16Theme } from 'react-base16-styling';
import createStyledComponent from '../utils/createStyledComponent';
import styles from './styles';
import Button from '../Button';

View File

@ -3,7 +3,7 @@ import { MdClose } from 'react-icons/md';
import { MdWarning } from 'react-icons/md';
import { MdError } from 'react-icons/md';
import { MdCheckCircle } from 'react-icons/md';
import { Base16Theme } from 'base16';
import type { Base16Theme } from 'react-base16-styling';
import createStyledComponent from '../utils/createStyledComponent';
import styles from './styles';

View File

@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { Base16Theme } from 'base16';
import type { Base16Theme } from 'react-base16-styling';
import createStyledComponent from '../utils/createStyledComponent';
import styles from './styles';

View File

@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { Base16Theme } from 'base16';
import type { Base16Theme } from 'react-base16-styling';
import createStyledComponent from '../utils/createStyledComponent';
import * as styles from './styles';
import { containerStyle } from './styles/common';

View File

@ -1,5 +1,5 @@
import styled, { ThemedStyledInterface } from 'styled-components';
import { Base16Theme } from 'base16';
import type { Base16Theme } from 'react-base16-styling';
import * as CSS from 'csstype';
export type BorderPosition = 'top' | 'bottom';

View File

@ -1,4 +1,4 @@
export type { Base16Theme } from 'base16';
export type { Base16Theme } from 'react-base16-styling';
export { default as Container } from './Container';
export { default as Button } from './Button';

View File

@ -1,4 +1,4 @@
import { Base16Theme } from 'base16';
import type { Base16Theme } from 'react-base16-styling';
import * as CSS from 'csstype';
import * as themes from './index';

View File

@ -1,4 +1,4 @@
import { Base16Theme } from 'base16';
import type { Base16Theme } from 'react-base16-styling';
export default (colors: Base16Theme) => ({
fontFamily: "'Roboto', sans-serif",

View File

@ -6,8 +6,8 @@ import styled, {
ThemedStyledInterface,
ThemedStyledProps,
} from 'styled-components';
import type { Base16Theme } from 'react-base16-styling';
import getDefaultTheme, { Theme } from '../themes/default';
import { Base16Theme } from 'base16';
import { ThemeFromProvider } from './theme';
type StyleFunction<

View File

@ -1,7 +1,7 @@
import React from 'react';
import getDefaultTheme, { Theme } from '../themes/default';
import { withTheme } from 'styled-components';
import { Base16Theme } from 'base16';
import type { Base16Theme } from 'react-base16-styling';
import getDefaultTheme, { Theme } from '../themes/default';
export default <C extends React.ComponentType<any>>(
UnthemedComponent: React.ComponentProps<C> extends { theme?: Theme }

View File

@ -1,4 +1,4 @@
import { Base16Theme } from 'base16';
import type { Base16Theme } from 'react-base16-styling';
function invertColors(theme: Base16Theme) {
return {