style is a util

This commit is contained in:
Timothy Farrell 2018-06-26 11:58:20 -05:00
parent ab8bb4d386
commit 83f70aa88d
10 changed files with 9 additions and 9 deletions

View File

@ -18,7 +18,7 @@ import { Icon } from './components/icon.js';
import { GithubCorner } from './components/githubCorner.js'; import { GithubCorner } from './components/githubCorner.js';
import { AppBar } from './components/appbar.js'; import { AppBar } from './components/appbar.js';
import { Overlay } from './components/overlay.js'; import { Overlay } from './components/overlay.js';
import { injectStyle, styled } from '../services/style.js'; import { injectStyle, styled } from '../utils/style.js';
import { CLICKABLE } from './styles.js'; import { CLICKABLE } from './styles.js';
export function uploadImages(evt, files) { export function uploadImages(evt, files) {

View File

@ -2,7 +2,7 @@ import { prop, computed, container, pick } from 'frptools';
import { Icon } from './icon.js'; import { Icon } from './icon.js';
import { defineElement as el } from '../../utils/domvm.js'; import { defineElement as el } from '../../utils/domvm.js';
import { injectStyle, styled } from '../../services/style.js'; import { injectStyle, styled } from '../../utils/style.js';
import { CLICKABLE } from '../styles.js'; import { CLICKABLE } from '../styles.js';
export function AppBar(params) { export function AppBar(params) {

View File

@ -4,7 +4,7 @@ import { defineElement as el } from '../../utils/domvm.js';
import { ImageType } from '../../data/image.js'; import { ImageType } from '../../data/image.js';
import { FileType } from '../../data/file.js'; import { FileType } from '../../data/file.js';
import { pouchDocHash } from '../../utils/conversion.js'; import { pouchDocHash } from '../../utils/conversion.js';
import { styled } from '../../services/style.js'; import { styled } from '../../utils/style.js';
import { DEFAULT_TRANSITION } from '../styles.js'; import { DEFAULT_TRANSITION } from '../styles.js';
const srcMap = new Map(); const srcMap = new Map();

View File

@ -1,6 +1,6 @@
import { prop, computed } from 'frptools'; import { prop, computed } from 'frptools';
import { injectStyle } from '../../services/style'; import { injectStyle } from '../../utils/style.js';
import { defineElement as el } from '../../utils/domvm.js'; import { defineElement as el } from '../../utils/domvm.js';
const CSS_DROPZONE = { const CSS_DROPZONE = {

View File

@ -1,4 +1,4 @@
import { styled } from '../../services/style.js'; import { styled } from '../../utils/style.js';
import { FILL_STYLE } from '..//styles.js'; import { FILL_STYLE } from '..//styles.js';
export const Overlay = styled( export const Overlay = styled(

View File

@ -16,7 +16,7 @@ import { AttachmentImageView } from './components/attachmentImage.js';
import { Overlay } from './components/overlay.js'; import { Overlay } from './components/overlay.js';
import { Icon } from './components/icon.js'; import { Icon } from './components/icon.js';
import { AppBar } from './components/appbar.js'; import { AppBar } from './components/appbar.js';
import { styled, injectStyle } from '../services/style.js'; import { styled, injectStyle } from '../utils/style.js';
import { error } from '../utils/console.js'; import { error } from '../utils/console.js';
import { CLICKABLE, FILL_STYLE } from './styles.js'; import { CLICKABLE, FILL_STYLE } from './styles.js';

View File

@ -15,7 +15,7 @@ import { Dropzone } from './components/dropzone.js';
import { Overlay } from './components/overlay.js'; import { Overlay } from './components/overlay.js';
import { Icon } from './components/icon.js'; import { Icon } from './components/icon.js';
import { routeChanged } from '../services/router.js'; import { routeChanged } from '../services/router.js';
import { injectStyle, styled } from '../services/style.js'; import { injectStyle, styled } from '../utils/style.js';
import { FILL_STYLE } from './styles.js'; import { FILL_STYLE } from './styles.js';
export function GalleryView(vm) { export function GalleryView(vm) {

View File

@ -8,7 +8,7 @@ import {
subscribeToRender subscribeToRender
} from '../utils/domvm.js'; } from '../utils/domvm.js';
import { router } from '../services/router.js'; import { router } from '../services/router.js';
import { injectStyle, styled } from '../services/style.js'; import { injectStyle, styled } from '../utils/style.js';
import { DEFAULT_TRANSITION, FILL_STYLE, IMAGE_MARGIN, CLICKABLE } from './styles.js'; import { DEFAULT_TRANSITION, FILL_STYLE, IMAGE_MARGIN, CLICKABLE } from './styles.js';
import { Icon } from './components/icon.js'; import { Icon } from './components/icon.js';
import { AttachmentImageView } from './components/attachmentImage.js'; import { AttachmentImageView } from './components/attachmentImage.js';

View File

@ -9,7 +9,7 @@ import {
subscribeToRender, subscribeToRender,
availableViewportSize availableViewportSize
} from '../utils/domvm.js'; } from '../utils/domvm.js';
import { injectStyle, styled } from '../services/style.js'; import { injectStyle, styled } from '../utils/style.js';
import { DEFAULT_TRANSITION, CLICKABLE, IMAGE_MARGIN, CONTENT_MARGIN } from './styles.js'; import { DEFAULT_TRANSITION, CLICKABLE, IMAGE_MARGIN, CONTENT_MARGIN } from './styles.js';
import { Icon } from './components/icon.js'; import { Icon } from './components/icon.js';
import { SectionPhoto } from './sectionPhoto.js'; import { SectionPhoto } from './sectionPhoto.js';