Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 54a6ecb

Browse files
authored
Merge pull request #350 from brave/ntp-updates-60
Add support for the default new tab page
2 parents b65e332 + b46eeb0 commit 54a6ecb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1220
-239
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"value":{"success":true,"data":{"latest":{"version":"4.0.0","info":{"plain":"- upgrade webpack & babel to latest\n- new addParameters and third argument to .add to pass data to addons\n- added the ability to theme storybook\n- improved ui for mobile devices\n- improved performance of addon-knobs"}}},"time":1546641305274},"type":"Object"}

package-lock.json

+103-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"@types/enzyme": "^3.1.9",
6565
"@types/jest": "^23.3.9",
6666
"@types/react": "^16.4.10",
67+
"@types/react-beautiful-dnd": "^10.0.1",
6768
"@types/react-dom": "^16.0.7",
6869
"@types/react-test-renderer": "^16.0.1",
6970
"@types/storybook__addon-actions": "^3.0.3",
@@ -87,6 +88,7 @@
8788
"pre-commit": "^1.2.2",
8889
"pre-push": "^0.1.1",
8990
"react": "^16.4.2",
91+
"react-beautiful-dnd": "^10.0.3",
9092
"react-dom": "^16.3.0",
9193
"react-storybook-addon-chapters": "^2.1.5",
9294
"react-test-renderer": "^16.3.0",

src/components/icons/arrow.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ import GenerateComponentForGraphic from './template'
99

1010
// Direct access to SVG
1111
export const Graphic = (
12-
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'>
13-
<path d='M28 15H6.28l4.85-5.25a1 1 0 0 0-.05-1.42 1 1 0 0 0-1.41.06l-6.4 6.93a.7.7 0 0 0-.1.16.75.75 0 0 0-.09.15 1 1 0 0 0 0 .74.75.75 0 0 0 .09.15.7.7 0 0 0 .1.16l6.4 6.93a1 1 0 0 0 1.41.06 1 1 0 0 0 .05-1.42L6.28 17H28a1 1 0 0 0 0-2z'
14-
/>
15-
</svg>
12+
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'>
13+
<path d='M28 15H6.28l4.85-5.25a1 1 0 0 0-.05-1.42 1 1 0 0 0-1.41.06l-6.4 6.93a.7.7 0 0 0-.1.16.75.75 0 0 0-.09.15 1 1 0 0 0 0 .74.75.75 0 0 0 .09.15.7.7 0 0 0 .1.16l6.4 6.93a1 1 0 0 0 1.41.06 1 1 0 0 0 .05-1.42L6.28 17H28a1 1 0 0 0 0-2z' />
14+
</svg>
1615
)
1716

1817
// Styled Component for SVG

src/components/icons/bookmark-o.tsx

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY MANUALLY
2+
/* tslint:disable */
3+
/* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License. v. 2.0. If a copy of the MPL was not distributed with this file.
5+
* You can obtain one at http://mozilla.org/MPL/2.0/. */
6+
7+
import * as React from 'react'
8+
import GenerateComponentForGraphic from './template'
9+
10+
// Direct access to SVG
11+
export const Graphic = (
12+
<svg width='32' height='32' xmlns='http://www.w3.org/2000/svg'>
13+
<path d='M23.87 27.855c.178.133.211.14.14.179-.046.025-.01-.058-.01-.329V5.245C24 4.55 23.481 4 22.882 4H9.118C8.519 4 8 4.55 8 5.246v22.459c0 .183.017.28.013.317-.047-.051.008-.085.118-.167l5.54-4.147c1.307-.98 3.352-.98 4.659 0l5.54 4.147zm-6.74-2.546c-.595-.448-1.664-.448-2.26 0l-5.54 4.146C7.702 30.676 6 29.741 6 27.705V5.245C6 3.472 7.388 2 9.118 2h13.764C24.612 2 26 3.471 26 5.246v22.459c0 2.036-1.7 2.971-3.33 1.75l-5.54-4.146z' />
14+
</svg>
15+
)
16+
17+
// Styled Component for SVG
18+
export default GenerateComponentForGraphic(Graphic)

src/components/icons/bookmark.tsx

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY MANUALLY
2+
/* tslint:disable */
3+
/* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License. v. 2.0. If a copy of the MPL was not distributed with this file.
5+
* You can obtain one at http://mozilla.org/MPL/2.0/. */
6+
7+
import * as React from 'react'
8+
import GenerateComponentForGraphic from './template'
9+
10+
// Direct access to SVG
11+
export const Graphic = (
12+
<svg width='32' height='32' xmlns='http://www.w3.org/2000/svg'>
13+
<path d='M17.13 25.309c-.595-.448-1.664-.448-2.26 0l-5.54 4.146C7.702 30.676 6 29.741 6 27.705V5.245C6 3.472 7.388 2 9.118 2h13.764C24.612 2 26 3.471 26 5.246v22.459c0 2.036-1.7 2.971-3.33 1.75l-5.54-4.146z'/>
14+
</svg>
15+
)
16+
17+
// Styled Component for SVG
18+
export default GenerateComponentForGraphic(Graphic)

src/components/icons/bookmarkBook.tsx

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY MANUALLY
2+
/* tslint:disable */
3+
/* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License. v. 2.0. If a copy of the MPL was not distributed with this file.
5+
* You can obtain one at http://mozilla.org/MPL/2.0/. */
6+
7+
import * as React from 'react'
8+
import GenerateComponentForGraphic from './template'
9+
10+
// Direct access to SVG
11+
export const Graphic = (
12+
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'>
13+
<path d='M26.147 23.296A9.961 9.961 0 0 0 26.203 27H27a1 1 0 0 1 0 2H8.056C5.819 29 4 27.215 4 25V6.153C4 4.392 5.509 3 7.334 3h17.842C26.178 3 27 3.8 27 4.803V21a1 1 0 0 1 0 2h-.28a.998.998 0 0 1-.573.296zM24.17 23H8.056C6.915 23 6 23.898 6 25c0 1.102.915 2 2.056 2h16.112a11.954 11.954 0 0 1 0-4zM6 21.55A4.083 4.083 0 0 1 8.056 21H25V5h-4v9a1 1 0 0 1-1.634.773L16 12.012l-3.366 2.761A1 1 0 0 1 11 14V5H7.334C6.579 5 6 5.534 6 6.152v15.399zM13 5v6.886l2.366-1.94a1 1 0 0 1 1.268 0L19 11.885V5h-6z'
14+
/>
15+
</svg>
16+
)
17+
18+
// Styled Component for SVG
19+
export default GenerateComponentForGraphic(Graphic)

src/components/icons/folder.tsx

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY MANUALLY
2+
/* tslint:disable */
3+
/* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License. v. 2.0. If a copy of the MPL was not distributed with this file.
5+
* You can obtain one at http://mozilla.org/MPL/2.0/. */
6+
7+
import * as React from 'react'
8+
import GenerateComponentForGraphic from './template'
9+
10+
// Direct access to SVG
11+
export const Graphic = (
12+
<svg width='32' height='32' xmlns='http://www.w3.org/2000/svg'>
13+
<path d='M28 25H4V7h8.199l3.2 2.408c.042.031.09.046.135.071.038.02.072.043.113.059a1 1 0 0 0 .352.071H28V25zm0-17.391H16.334l-3.2-2.408c-.031-.024-.07-.03-.104-.05a.935.935 0 0 0-.183-.088 1.01 1.01 0 0 0-.201-.041c-.039-.004-.073-.022-.113-.022H4c-1.103 0-2 .897-2 2v18c0 1.103.897 2 2 2h24c1.103 0 2-.897 2-2V9.609c0-1.103-.897-2-2-2z'/>
14+
</svg>
15+
)
16+
17+
// Styled Component for SVG
18+
export default GenerateComponentForGraphic(Graphic)

src/components/icons/history.tsx

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY MANUALLY
2+
/* tslint:disable */
3+
/* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License. v. 2.0. If a copy of the MPL was not distributed with this file.
5+
* You can obtain one at http://mozilla.org/MPL/2.0/. */
6+
7+
import * as React from 'react'
8+
import GenerateComponentForGraphic from './template'
9+
10+
// Direct access to SVG
11+
export const Graphic = (
12+
<svg width='32' height='32' xmlns='http://www.w3.org/2000/svg'>
13+
<path d='M16 7.2a1 1 0 0 0-1 1v6.945c-.595.347-1 .984-1 1.722A2 2 0 1 0 17.645 18H21.2a1 1 0 0 0 0-2h-3.406a2 2 0 0 0-.794-.855V8.2a1 1 0 0 0-1-1M30 16c0 7.72-6.28 14-14 14S2 23.72 2 16a1 1 0 0 1 2 0c0 6.617 5.383 12 12 12s12-5.383 12-12S22.617 4 16 4c-4.393 0-7.781 2.085-9.855 6h2.922a1 1 0 0 1 0 2h-5.2a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3.18C7.327 4.185 11.224 2 16 2c7.72 0 14 6.28 14 14'/>
14+
</svg>
15+
)
16+
17+
// Styled Component for SVG
18+
export default GenerateComponentForGraphic(Graphic)

src/components/icons/index.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ export const ArrowLeftIcon = RotatedIconComponent(ArrowIcon, 0)
1818
export const ArrowRightIcon = RotatedIconComponent(ArrowIcon, 180)
1919
export const ArrowDownIcon = RotatedIconComponent(ArrowIcon, -90)
2020
export const ArrowUpIcon = RotatedIconComponent(ArrowIcon, 90)
21+
export { default as BookmarkBook } from './bookmarkBook'
22+
export { default as BookmarkIcon } from './bookmark'
23+
export { default as BookmarkOIcon } from './bookmark-o'
2124
export const CaratCircleUpIcon = RotatedIconComponent(CaratCircleIcon, 0)
2225
export const CaratCircleDownIcon = RotatedIconComponent(CaratCircleIcon, 180)
2326
export const CaratRightIcon = RotatedIconComponent(CaratIcon, 180)
@@ -33,9 +36,11 @@ export { default as CloseStrokeShadowIcon } from './close-shadow'
3336
export { default as DownloadIcon } from './download'
3437
export { default as EmoteSadIcon } from './emote-sad'
3538
export { default as EmoteSmileIcon } from './emote-smile'
39+
export { default as HistoryIcon } from './history'
3640
export { default as LogoYoutubeIcon } from './logo-youtube'
3741
export { default as OpenNewIcon } from './open-new'
3842
export { default as PaymentDueIcon } from './payment-due'
43+
export { default as PinIcon } from './pin'
3944
export { default as PrintIcon } from './print'
4045
export { default as RefreshIcon } from './refresh'
4146
export { default as SendIcon } from './send'

src/components/icons/pin.tsx

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY MANUALLY
2+
/* tslint:disable */
3+
/* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License. v. 2.0. If a copy of the MPL was not distributed with this file.
5+
* You can obtain one at http://mozilla.org/MPL/2.0/. */
6+
7+
import * as React from 'react'
8+
import GenerateComponentForGraphic from './template'
9+
10+
// Direct access to SVG
11+
export const Graphic = (
12+
<svg width='32' height='32' xmlns='http://www.w3.org/2000/svg'>
13+
<path d='M10.79 19.793l-6.131-6.126a1.009 1.009 0 0 1 .41-1.675 11.952 11.952 0 0 1 8.284.432l4.383-4.378a9.23 9.23 0 0 1 .044-5.34.998.998 0 0 1 1.66-.413l10.265 10.262a1.009 1.009 0 0 1-.41 1.676 9.223 9.223 0 0 1-5.347.038l-4.375 4.374a11.955 11.955 0 0 1 .433 8.289.998.998 0 0 1-1.66.413l-6.138-6.134-8.503 8.497a.996.996 0 0 1-1.415-.005 1.01 1.01 0 0 1 .005-1.423l8.494-8.487zm11.173-6.376a9.201 9.201 0 0 1-3.378-3.383l-3.39 3.385a11.945 11.945 0 0 1 3.383 3.383l3.385-3.385zM24 12.166a7.217 7.217 0 0 0 2.936.458l-7.562-7.56A7.183 7.183 0 0 0 24 12.166zm-8.354 4.2a9.917 9.917 0 0 0-8.274-2.824L18.468 24.63a9.891 9.891 0 0 0-2.822-8.264z' />
14+
</svg>
15+
)
16+
17+
// Styled Component for SVG
18+
export default GenerateComponentForGraphic(Graphic)

src/components/icons/trash.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License. v. 2.0. If a copy of the MPL was not distributed with this file.
3+
* You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
5+
import * as React from 'react'
6+
import GenerateComponentForGraphic from './template'
7+
8+
// Direct access to SVG
9+
export const Graphic = (
10+
<svg width='32' height='32' xmlns='http://www.w3.org/2000/svg'>
11+
<path d='M21.027 27.895c-.004.04-.077.105-.118.105H11.09c-.04 0-.113-.066-.117-.105L8.864 8.998h14.308l-2.145 18.896zM13.454 5c0-.551.448-1 1-1h3.092c.551 0 1 .449 1 1v2h-5.092V5zM27 7h-6.454V5c0-1.655-1.346-3-3-3h-3.092c-1.655 0-3 1.345-3 3v2H5a1 1 0 1 0 0 2h1.851l2.134 19.117A2.144 2.144 0 0 0 11.09 30h9.82a2.142 2.142 0 0 0 2.104-1.88L25.184 9H27a1 1 0 1 0 0-2z'/>
12+
</svg>
13+
)
14+
15+
// Styled Component for SVG
16+
export default GenerateComponentForGraphic(Graphic)

0 commit comments

Comments
 (0)