Skip to content

Commit

Permalink
(Shields extension) Move brave-ui paths to brave-core paths
Browse files Browse the repository at this point in the history
Manually move theme to brave-core which was left out of the imported commits from brave-ui
  • Loading branch information
cezaraugusto authored and petemill committed Sep 10, 2019
1 parent 0148175 commit e76aa02
Show file tree
Hide file tree
Showing 71 changed files with 194 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import * as React from 'react'
import * as ReactDOM from 'react-dom'
import shieldsDarkTheme from 'brave-ui/theme/shields-dark'
import shieldsLightTheme from 'brave-ui/theme/shields-light'
import shieldsDarkTheme from './theme/shields-dark'
import shieldsLightTheme from './theme/shields-light'
import { Provider } from 'react-redux'
import { Store } from 'react-chrome-redux'
import BraveCoreThemeProvider from '../../../common/BraveCoreThemeProvider'
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

import styled from '../../theme'
import Button, { Props as ButtonProps } from '../../components/buttonsIndicators/button'
import styled from 'brave-ui/theme'
import Button, { Props as ButtonProps } from 'brave-ui/components/buttonsIndicators/button'
import { ComponentType } from 'react'

/**
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

import styled from '../../../theme'
import styled from 'brave-ui/theme'
import { StyledComponentClass } from 'styled-components'
import { CaratStrongDownIcon, ShieldAlertIcon, AlertMessageIcon } from '../../../components/icons'
import { CaratStrongDownIcon, ShieldAlertIcon, AlertMessageIcon } from 'brave-ui/components/icons'

import { ComponentType } from 'react'

Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

import styled, { css } from '../../../theme'
import palette from '../../../theme/colors'
import styled, { css } from 'brave-ui/theme'
import palette from 'brave-ui/theme/colors'
import caratUrl from './carat.svg'

export interface SelectBoxProps {
Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

import styled from '../../../theme'
import styled from 'brave-ui/theme'
import { BlockedInfoRowStats, BlockedInfoRowText } from '../display'
import { StyledWrapper as Toggle } from '../toggle/style'
import dash from './dash.svg'
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* License. v. 2.0. If a copy of the MPL was not distributed with this file.
* You can obtain one at http://mozilla.org/MPL/2.0/. */

import styled, { css } from '../../../theme'
import styled, { css } from 'brave-ui/theme'
import { Props } from './index'
import palette from '../../../theme/colors'
import palette from 'brave-ui/theme/colors'

export const StyledCheckbox = styled<{}, 'input'>('input')`
-webkit-appearance: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
BlockedInfoRowStats,
BlockedInfoRowText,
Toggle
} from 'brave-ui/features/shields'
} from '../../../components'

// Group Components
import StaticList from '../overlays/staticOverlay'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as React from 'react'

// Feature-specific components
import { BlockedInfoRowSingle, SelectBox } from 'brave-ui/features/shields'
import { BlockedInfoRowSingle, SelectBox } from '../../../components'

// Locale
import { getLocale } from '../../../background/api/localeAPI'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
ArrowDownIcon,
BlockedInfoRowStats,
SelectBox
} from 'brave-ui/features/shields'
} from '../../../components'

// Group Components
import StaticList from '../overlays/staticOverlay'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
BlockedInfoRowStats,
BlockedInfoRowText,
Toggle
} from 'brave-ui/features/shields'
} from '../../../components'

// Group Components
import HTTPSUpgrades from '../overlays/httpsUpgradesOverlay'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
BlockedInfoRowText,
LinkAction,
Toggle
} from 'brave-ui/features/shields'
} from '../../../components'

// Group Components
import NoScript from '../overlays/noScriptOverlay'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as React from 'react'

// Feature-specific components
import { MainFooter, Link } from 'brave-ui/features/shields'
import { MainFooter, Link } from '../../components'

// API
import * as tabsAPI from '../../background/api/tabsAPI'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
ShieldIcon,
DisabledContentText,
Toggle
} from 'brave-ui/features/shields'
} from '../../components'

// Helpers
import { getLocale } from '../../background/api/localeAPI'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as React from 'react'
import 'emptykit.css'

// Feature-specific components
import { ShieldsPanel } from 'brave-ui/features/shields'
import { ShieldsPanel } from '../../components'

// Components group
import Header from './header'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
BlockedInfoRowStats,
BlockedListSummaryText,
ShieldsButton
} from 'brave-ui/features/shields'
} from '../../../components'

// Helpers
import { blockedResourcesSize } from '../../../helpers/shieldsUtils'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import {
BlockedListItemHeaderStats,
BlockedListItemHeaderText,
ShieldsButton
} from 'brave-ui/features/shields'
} from '../../../components'

// Helpers
import { getLocale } from '../../../background/api/localeAPI'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
BlockedInfoRowStats,
BlockedListSummaryText,
ShieldsButton
} from 'brave-ui/features/shields'
} from '../../../components'

// Helpers
import { blockedResourcesSize } from '../../../helpers/shieldsUtils'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
WarningIcon,
WarningText,
ShieldsButton
} from 'brave-ui/features/shields'
} from '../../../components'

// Shared components
import { Card } from 'brave-ui'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import * as shieldsPanelActions from '../actions/shieldsPanelActions'
import * as shieldsPanelState from '../state/shieldsPanelState'
import BraveShields from '../components/braveShields'
import BraveShields from '../containers/braveShields'
import { State } from '../types/state/mainState'

const mapStateToProps = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
ArrowDownIcon,
BlockedInfoRowStats,
BlockedListStatic
} from 'brave-ui/features/shields'
} from '../../../components'

// Group components
import StaticResourcesList from '../../shared/resourcesBlockedList/staticResourcesList'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as React from 'react'
import {
BlockedInfoRowSingleText,
BlockedInfoRowText
} from 'brave-ui/features/shields'
} from '../../../components'

// Helpers
import { getLocale } from '../../../background/api/localeAPI'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
BlockedInfoRowDataForSelect,
BlockedListStatic,
BlockedInfoRowText
} from 'brave-ui/features/shields'
} from '../../../components'

// Group components
import StaticResourcesList from '../../shared/resourcesBlockedList/staticResourcesList'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
ArrowDownIcon,
BlockedInfoRowStats,
BlockedListStatic
} from 'brave-ui/features/shields'
} from '../../../components'

// Group components
import StaticResourcesList from '../../shared/resourcesBlockedList/staticResourcesList'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
ArrowDownIcon,
BlockedInfoRowStats,
BlockedListStatic
} from 'brave-ui/features/shields'
} from '../../../components'

// Group components
import StaticResourcesList from '../../shared/resourcesBlockedList/staticResourcesList'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
BlockedInfoRowText,
BlockedListFooter,
ShieldsButton
} from 'brave-ui/features/shields'
} from '../../components'

// Group components
import InterfaceControls from './interfaceControls'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
LinkAction,
BlockedListItemDetails,
BlockedListItemSummary
} from 'brave-ui/features/shields'
} from '../../../components'

// Helpers
import { getHostname, stripProtocolFromUrl } from '../../../helpers/urlUtils'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as React from 'react'

// Feature-specific components
import { BlockedListItem } from 'brave-ui/features/shields'
import { BlockedListItem } from '../../../components'

// Helpers
import { stripProtocolFromUrl } from '../../../helpers/urlUtils'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as React from 'react'

// Feature-specific components
import { MainFooter, Link } from 'brave-ui/features/shields'
import { MainFooter, Link } from '../../components'

// API
import * as tabsAPI from '../../background/api/tabsAPI'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
ShieldIcon,
DisabledContentText,
Toggle
} from 'brave-ui/features/shields'
} from '../../components'

// Helpers
import { getLocale } from '../../background/api/localeAPI'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as React from 'react'

// Feature-specific components
import { ShieldsPanel } from 'brave-ui/features/shields'
import { ShieldsPanel } from '../../components'

// Components group
import Header from './header'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
BlockedInfoRowStats,
BlockedInfoRowText,
Toggle
} from '../../../../../../src/features/shields'
} from '../../../../components'

// Group Components
import StaticList from '../overlays/staticOverlay'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as React from 'react'

// Feature-specific components
import { BlockedInfoRowSingle, SelectBox } from '../../../../../../src/features/shields'
import { BlockedInfoRowSingle, SelectBox } from '../../../../components'

// Fake data
import { getLocale } from '../../../fakeLocale'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
ArrowDownIcon,
BlockedInfoRowStats,
SelectBox
} from '../../../../../../src/features/shields'
} from '../../../../components'

// Group Components
import StaticList from '../overlays/staticOverlay'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
BlockedInfoRowStats,
BlockedInfoRowText,
Toggle
} from '../../../../../../src/features/shields'
} from '../../../../components'

// Group Components
import StaticList from '../overlays/staticOverlay'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
BlockedInfoRowText,
Toggle,
LinkAction
} from '../../../../../../src/features/shields'
} from '../../../../components'

// Group Components
import NoScriptOverlay from '../overlays/noScriptOverlay'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
ShieldIcon,
DisabledContentText,
Toggle
} from '../../../../../src/features/shields'
} from '../../../components'

// Fake data
import { getLocale } from '../../fakeLocale'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as React from 'react'

// Feature-specific components
import { ShieldsPanel } from '../../../../../src/features/shields'
import { ShieldsPanel } from '../../../components'

// Components group
import Header from './header'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
BlockedListItemHeaderStats,
BlockedListItemHeaderText,
ShieldsButton
} from '../../../../../../src/features/shields'
} from '../../../../components'

// Helpers
import { getLocale } from '../../../fakeLocale'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
BlockedInfoRowStats,
BlockedListSummaryText,
ShieldsButton
} from '../../../../../../src/features/shields'
} from '../../../../components'

// Group components
import StaticResourcesList from '../../shared/resourcesBlockedList/staticResourcesList'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import {
WarningIcon,
WarningText,
ShieldsButton
} from '../../../../../../src/features/shields'
} from '../../../../components'

// Shared components
import { Card } from '../../../../../../src/components'
import { Card } from 'brave-ui'

// Helpers
import { getLocale } from '../../../fakeLocale'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
BlockedInfoRowStats,
BlockedListStatic,
dummyData
} from '../../../../../../src/features/shields'
} from '../../../../components'

// Group components
import StaticResourcesList from '../../shared/resourcesBlockedList/staticResourcesList'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as React from 'react'
import {
BlockedInfoRowSingleText,
BlockedInfoRowText
} from '../../../../../../src/features/shields'
} from '../../../../components'

// Helpers
import { getLocale } from '../../../fakeLocale'
Expand Down
Loading

0 comments on commit e76aa02

Please sign in to comment.