@financial-times/n-myft-ui 25.0.1 → 27.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.circleci/config.yml +42 -13
- package/.nvmrc +1 -1
- package/Makefile +0 -1
- package/README.md +4 -0
- package/build-state/npm-shrinkwrap.json +23540 -34370
- package/components/collections/collections.html +11 -3
- package/components/concept-list/concept-list.html +4 -1
- package/components/csrf-token/input.html +5 -0
- package/components/follow-button/follow-button.html +79 -0
- package/components/instant-alert/instant-alert.html +1 -1
- package/components/pin-button/pin-button.html +1 -1
- package/components/save-for-later/save-for-later.html +1 -1
- package/components/unread-articles-indicator/date-fns.js +6 -6
- package/demos/app.js +0 -25
- package/demos/templates/demo.html +2 -2
- package/package.json +15 -25
- package/components/csrf-token/__tests__/input.test.js +0 -23
- package/components/csrf-token/input.jsx +0 -26
- package/components/follow-button/__tests__/follow-button.test.js +0 -40
- package/components/follow-button/follow-button.jsx +0 -174
- package/demos/templates/demo-layout.html +0 -25
- package/demos/templates/demo.jsx +0 -33
- package/jest.config.js +0 -8
package/demos/templates/demo.jsx
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import FollowButton from '../../components/follow-button/follow-button';
|
3
|
-
|
4
|
-
export default function Demo (props) {
|
5
|
-
|
6
|
-
const {
|
7
|
-
title,
|
8
|
-
flags,
|
9
|
-
followButton,
|
10
|
-
} = props;
|
11
|
-
|
12
|
-
const followButtonProps = {...followButton, flags};
|
13
|
-
|
14
|
-
return (
|
15
|
-
<div className="o-grid-container o-grid-container--snappy demo-container">
|
16
|
-
<h1>{title}</h1>
|
17
|
-
|
18
|
-
<section
|
19
|
-
id="follow-button"
|
20
|
-
className="demo-section">
|
21
|
-
<div className="o-grid-row">
|
22
|
-
<div data-o-grid-colspan="12">
|
23
|
-
<h2
|
24
|
-
className="demo-section__title">
|
25
|
-
Follow button
|
26
|
-
</h2>
|
27
|
-
<FollowButton {...followButtonProps} />
|
28
|
-
</div>
|
29
|
-
</div>
|
30
|
-
</section>
|
31
|
-
</div>
|
32
|
-
)
|
33
|
-
}
|
package/jest.config.js
DELETED