Skip to content

Commit

Permalink
fix: fix ts exports
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek-krysiak committed Jul 27, 2020
1 parent a704350 commit 4ad29f3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 21 deletions.
16 changes: 1 addition & 15 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ import AdminBro from './types/src/admin-bro'
import * as ACTIONS from './types/src/backend/actions/index'
import { ReduxState } from './types/src/frontend/store/store'

import {
colors, space, sizes, fontSizes, fontWeights,
lineHeights, font,
} from './types/src/frontend/styles/variables'

export * from '@admin-bro/design-system'
export * from './types/src/frontend/store/store'

export { default as Router } from './types/src/backend/router'
Expand Down Expand Up @@ -74,16 +70,6 @@ export { default as PageJSON } from './types/src/backend/decorators/page-json.in
export { BasePropertyProps, FilterPropertyProps, ShowPropertyProps, EditPropertyProps } from './types/src/frontend/components/property-type/base-property-props'
export { ActionProps } from './types/src/frontend/components/actions/action.props'

export type DefaultTheme = {
colors: typeof colors;
space: typeof space;
sizes: typeof sizes;
fontSizes: typeof fontSizes;
fontWeights: typeof fontWeights;
lineHeights: typeof lineHeights;
font: typeof font;
}

export * from './types/src/frontend/components/app'
export * from './types/src/constants'
export * from './types/src/frontend/hooks'
Expand Down
2 changes: 1 addition & 1 deletion src/backend/decorators/action-decorator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { DEFAULT_DRAWER_WIDTH } from '@admin-bro/design-system'
import ConfigurationError from '../utils/configuration-error'
import ViewHelpers from '../utils/view-helpers'
import AdminBro from '../../admin-bro'
Expand All @@ -6,7 +7,6 @@ import Action, { IsFunction, ActionContext, ActionRequest, ActionResponse } from
import { CurrentAdmin } from '../../current-admin.interface'
import ActionJSON from './action-json.interface'
import BaseRecord from '../adapters/base-record'
import { DEFAULT_DRAWER_WIDTH } from '../../constants'
import actionErrorHandler from '../services/action-error-handler'
import ForbiddenError from '../utils/forbidden-error'

Expand Down
2 changes: 0 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ export const DEFAULT_PATHS = {

/* cspell: disable-next-line */
export const ADMIN_BRO_TMP_DIR = '.adminbro'

export const DEFAULT_DRAWER_WIDTH = '500px'
4 changes: 1 addition & 3 deletions src/frontend/components/app/drawer-portal.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import React, { useEffect, ReactNode, useState } from 'react'
import { createPortal, render } from 'react-dom'
import { Drawer } from '@admin-bro/design-system'
import { Drawer, DEFAULT_DRAWER_WIDTH } from '@admin-bro/design-system'
import { ThemeProvider } from 'styled-components'

import { DEFAULT_DRAWER_WIDTH } from '../../../constants'

/**
* @alias DrawerPortalProps
* @memberof DrawerPortal
Expand Down

0 comments on commit 4ad29f3

Please sign in to comment.