@eeacms/volto-eea-design-system 0.2.3 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/auto-comment.yml +20 -0
- package/CHANGELOG.md +75 -0
- package/package.json +1 -1
- package/src/semantic.less +2 -2
- package/src/ui/Breadcrumbs/Breadcrumb.stories.jsx +3 -0
- package/src/ui/Breadcrumbs/Breadcrumbs.jsx +1 -0
- package/src/ui/Callout/Callout.jsx +12 -0
- package/src/ui/Callout/Callout.stories.jsx +42 -0
- package/src/ui/{Pullquote/Pullquote.jsx → Quote/Quote.jsx} +9 -9
- package/src/ui/{Pullquote/Pullquote.stories.jsx → Quote/Quote.stories.jsx} +18 -18
- package/src/ui/{Testimonial → Quote/Testimonial}/Testimonial.jsx +10 -11
- package/src/ui/{Testimonial → Quote/Testimonial}/Testimonial.stories.jsx +17 -8
- package/src/ui/index.js +3 -3
- package/theme/theme.config +1 -1
- package/theme/themes/eea/collections/breadcrumb.overrides +0 -16
- package/theme/themes/eea/collections/form.overrides +1 -1
- package/theme/themes/eea/collections/table.overrides +48 -0
- package/theme/themes/eea/collections/table.variables +16 -0
- package/theme/themes/eea/elements/button.overrides +11 -2
- package/theme/themes/eea/elements/container.overrides +4 -19
- package/theme/themes/eea/elements/container.variables +5 -4
- package/theme/themes/eea/elements/input.overrides +68 -0
- package/theme/themes/eea/elements/segment.overrides +80 -0
- package/theme/themes/eea/extras/avatar.variables +28 -0
- package/theme/themes/eea/extras/callout.less +43 -0
- package/theme/themes/eea/extras/callout.variables +19 -0
- package/theme/themes/eea/extras/header.less +1 -1
- package/theme/themes/eea/extras/main.variables +1 -1
- package/theme/themes/eea/extras/{pullquote.less → quote.less} +20 -20
- package/theme/themes/eea/extras/quote.variables +34 -0
- package/theme/themes/eea/extras/testimonial.less +46 -6
- package/theme/themes/eea/extras/testimonial.variables +14 -6
- package/theme/themes/eea/globals/site.variables +11 -5
- package/theme/themes/eea/modules/accordion.variables +2 -2
- package/theme/themes/eea/tokens/fonts.less +38 -0
- package/theme/themes/eea/tokens/sizes.less +17 -0
- package/theme/themes/eea/tokens/tokens.less +2 -0
- package/src/ui/Blockquote/Blockquote.jsx +0 -16
- package/src/ui/Blockquote/Blockquote.stories.jsx +0 -48
- package/theme/themes/eea/extras/blockquote.less +0 -92
- package/theme/themes/eea/extras/blockquote.variables +0 -35
- package/theme/themes/eea/extras/pullquote.variables +0 -34
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: Auto Comment
|
|
2
|
+
on: [pull_request]
|
|
3
|
+
jobs:
|
|
4
|
+
run:
|
|
5
|
+
runs-on: ubuntu-latest
|
|
6
|
+
steps:
|
|
7
|
+
- uses: wow-actions/auto-comment@v1
|
|
8
|
+
with:
|
|
9
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
10
|
+
pullRequestOpened: |
|
|
11
|
+
👋 @{{ author }}
|
|
12
|
+
|
|
13
|
+
To generate the Storybook and Docusaurus websites, write comment with:
|
|
14
|
+
> @eea-jenkins build all
|
|
15
|
+
|
|
16
|
+
To generate only Storybook write comment with:
|
|
17
|
+
> @eea-jenkins build storybook
|
|
18
|
+
|
|
19
|
+
To generate only Docusaurus write comment with:
|
|
20
|
+
> @eea-jenkins build docusaurus
|
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,83 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [0.3.1](https://github.com/eea/volto-eea-design-system/compare/0.3.0...0.3.1)
|
|
8
|
+
|
|
9
|
+
- Autobuild of docusaurus docs [`25a2a6d`](https://github.com/eea/volto-eea-design-system/commit/25a2a6d78db7a3e2313925bb40a6d58355bbfeb7)
|
|
10
|
+
- fix(input,segment): toggle inputs and padding fixes within Volto sidebar forms [`de030d6`](https://github.com/eea/volto-eea-design-system/commit/de030d617325a8f9d028a5c1615faa160fcdd763)
|
|
11
|
+
- Autobuild of docusaurus docs [`1150d98`](https://github.com/eea/volto-eea-design-system/commit/1150d98ee28d16017013209e53228324d5c510e5)
|
|
12
|
+
- change(login): restored width of login container to 376px [`0564293`](https://github.com/eea/volto-eea-design-system/commit/0564293346b2402c3c86009b61066da4200662b8)
|
|
13
|
+
|
|
14
|
+
#### [0.3.0](https://github.com/eea/volto-eea-design-system/compare/0.2.4...0.3.0)
|
|
15
|
+
|
|
16
|
+
> 17 May 2022
|
|
17
|
+
|
|
18
|
+
- Release [`#165`](https://github.com/eea/volto-eea-design-system/pull/165)
|
|
19
|
+
- [R2] Quote [`#158`](https://github.com/eea/volto-eea-design-system/pull/158)
|
|
20
|
+
- [R2] Refactor table [`#159`](https://github.com/eea/volto-eea-design-system/pull/159)
|
|
21
|
+
- Release 0.3.0 [`8724b28`](https://github.com/eea/volto-eea-design-system/commit/8724b2809027b2e359dcd64e418a33cade4ad487)
|
|
22
|
+
- Autobuild of docusaurus docs [`368a09d`](https://github.com/eea/volto-eea-design-system/commit/368a09de4885a7ce01e238c37d48db6a13af64e4)
|
|
23
|
+
- feat(callout): Align the Callout component with Volto slate component [`e9343ff`](https://github.com/eea/volto-eea-design-system/commit/e9343ff7008cd3d60700929e8861c7bdd06df4d3)
|
|
24
|
+
- Autobuild of docusaurus docs [`cabb7a5`](https://github.com/eea/volto-eea-design-system/commit/cabb7a55c655e6fa5669a6ce904da46290e31f55)
|
|
25
|
+
- Autobuild of docusaurus docs [`aaadafd`](https://github.com/eea/volto-eea-design-system/commit/aaadafd9844c79a2323718f3392173fe6d6da352)
|
|
26
|
+
- Autobuild of docusaurus docs [`33eff2e`](https://github.com/eea/volto-eea-design-system/commit/33eff2e246328d2a0f2afb56656719a3dfaed531)
|
|
27
|
+
- feature(tokens): added tokens folder for design tokens we can use in the system [`a542172`](https://github.com/eea/volto-eea-design-system/commit/a542172cfd84dde0286b4332e66a617a1f3d13bf)
|
|
28
|
+
- Autobuild of docusaurus docs [`081ad83`](https://github.com/eea/volto-eea-design-system/commit/081ad832ecedee400779b8023d2e5eab8e67639e)
|
|
29
|
+
- fix(accordion): Fix accordion active title color [`57af165`](https://github.com/eea/volto-eea-design-system/commit/57af1650a0b830e01c79e21b130784190defbcc0)
|
|
30
|
+
- refactor(quote): update action name to match the functionality [`caf2e35`](https://github.com/eea/volto-eea-design-system/commit/caf2e359cada8056f280d2cd137776d64f82a2af)
|
|
31
|
+
- refactor(table): add borders to responsive table with celled attribute [`8a71a67`](https://github.com/eea/volto-eea-design-system/commit/8a71a670fb34a11fbe4cef7365b91c6be84b5b54)
|
|
32
|
+
- change(table): make use of headerSortableWhiteSpace variable [`fd836fb`](https://github.com/eea/volto-eea-design-system/commit/fd836fbe82e92864a628bf4d9d3093674890f722)
|
|
33
|
+
- fix(table): tweak responsive table for extra long headers [`7f9f9e2`](https://github.com/eea/volto-eea-design-system/commit/7f9f9e25f7c57d4bf7edd2546a7579b892867b5c)
|
|
34
|
+
- change(table): use the @mobileLandscapeBreakpoint for max 480px media query [`90880ab`](https://github.com/eea/volto-eea-design-system/commit/90880ab324b6a66c7741819dd0d913504751454f)
|
|
35
|
+
- refactor(Table):wrap table with semantic ui container [`24ac2bb`](https://github.com/eea/volto-eea-design-system/commit/24ac2bb4813df33547f684220e1e12af5ca6df7e)
|
|
36
|
+
- refactor(Callout): wrap story with semantic ui container [`ead362d`](https://github.com/eea/volto-eea-design-system/commit/ead362d88f43fa1380e8be5481cbc38c055060f8)
|
|
37
|
+
- refactor(Table):add responsive mobile table story and styles [`aed69e6`](https://github.com/eea/volto-eea-design-system/commit/aed69e698e5b89e33a4c331570755934267492af)
|
|
38
|
+
- refactor(testimonial): readjust rounded card [`b419334`](https://github.com/eea/volto-eea-design-system/commit/b41933417a44dabcf829a3346d91c142dd6472d3)
|
|
39
|
+
- fix(quote): fix color and padding issue [`310d6b3`](https://github.com/eea/volto-eea-design-system/commit/310d6b37bdf5df3da2d2103eab8f4fa5020c95ab)
|
|
40
|
+
- feat(Callout):create Callout component with Blockquote style [`3d486b1`](https://github.com/eea/volto-eea-design-system/commit/3d486b1c2c7f74ee8bc4b3a5e1bf3993ac98f6dd)
|
|
41
|
+
- refactor(Quote):rename Quote.Metadata to Quote.SourceInfo [`dfae8b1`](https://github.com/eea/volto-eea-design-system/commit/dfae8b1c147659d24dfd1a13fb4c3098e5865a12)
|
|
42
|
+
- refactor(Quote):move Testimonial component under Quote folder [`e2467c2`](https://github.com/eea/volto-eea-design-system/commit/e2467c2089577d67ef5689a2507cb860a837f6a0)
|
|
43
|
+
- refactor(Quote):rename pullquote to Quote in Testimonial [`f54da19`](https://github.com/eea/volto-eea-design-system/commit/f54da192ab3b0823b0d6c77254f8954ab94506c8)
|
|
44
|
+
- refactor(Quote): rename Author to Source [`6d400f6`](https://github.com/eea/volto-eea-design-system/commit/6d400f6a0ec0062f58782b4e170f4a1a9a31c56c)
|
|
45
|
+
- refactor(Quote):rename Pullquote component to Quote [`9384a0c`](https://github.com/eea/volto-eea-design-system/commit/9384a0c129b8e4eed637e51a9669c41d8ade69d4)
|
|
46
|
+
- refactor(Testimonial): prettier changes [`904594b`](https://github.com/eea/volto-eea-design-system/commit/904594b9814c3d8900656f0e4c8d3a99481efe94)
|
|
47
|
+
- refactor(Testimonial): change card class name [`e995c32`](https://github.com/eea/volto-eea-design-system/commit/e995c32bc70780e4315c4dc02d6b6fa9a0c5b29d)
|
|
48
|
+
- refactor(Testimonial):minor storybook bug fix [`7b6d128`](https://github.com/eea/volto-eea-design-system/commit/7b6d128c6be3b2481d4765cebca82af6cafbea05)
|
|
49
|
+
- perf(lint): fix [`f2ef3ab`](https://github.com/eea/volto-eea-design-system/commit/f2ef3abb9daa8fee3dd103adc14246c412951427)
|
|
50
|
+
- refactor(testimonial): adjust to volto design | fix avatar image size [`546070e`](https://github.com/eea/volto-eea-design-system/commit/546070e494ad187c50913b5742dab49ce5475a84)
|
|
51
|
+
- fix(testimonial): remove info arguement [`9593d95`](https://github.com/eea/volto-eea-design-system/commit/9593d95f6352fb5aea48c3611b27b4bc6a9ae7e4)
|
|
52
|
+
- fix(testimonial): fix storybook arg names [`b9df52f`](https://github.com/eea/volto-eea-design-system/commit/b9df52f7151ef759fd672d365b2d74f6db535ad0)
|
|
53
|
+
|
|
54
|
+
#### [0.2.4](https://github.com/eea/volto-eea-design-system/compare/0.2.3...0.2.4)
|
|
55
|
+
|
|
56
|
+
> 13 May 2022
|
|
57
|
+
|
|
58
|
+
- Add storybook/docusaurus on PRs Refs #148775 [`#157`](https://github.com/eea/volto-eea-design-system/pull/157)
|
|
59
|
+
- Autobuild of docusaurus docs [`18c8b77`](https://github.com/eea/volto-eea-design-system/commit/18c8b77b6d0677f304a83965ed4d6849f75bc179)
|
|
60
|
+
- change(header): wrap header globalnav links useful for editing section [`10d4f56`](https://github.com/eea/volto-eea-design-system/commit/10d4f56624510eb63155ab330dcf0475b0728ed4)
|
|
61
|
+
- Autobuild of docusaurus docs [`5f4c47c`](https://github.com/eea/volto-eea-design-system/commit/5f4c47c93bf102fb198efc97e9f2cc60c162d0e3)
|
|
62
|
+
- change(container): restore maxWidth to 100% now that the last value is 1120px [`8b55c58`](https://github.com/eea/volto-eea-design-system/commit/8b55c58d3bbc8967b20de19a828aedd2f1473ee5)
|
|
63
|
+
- Autobuild of docusaurus docs [`71d6cd9`](https://github.com/eea/volto-eea-design-system/commit/71d6cd90f911960211d227bfc51a0f87fb868a8c)
|
|
64
|
+
- change(breadcrumb): removed padding from breadcrumb added by container [`c5df567`](https://github.com/eea/volto-eea-design-system/commit/c5df5675a519085badc030416e5bb784a9f73321)
|
|
65
|
+
- Autobuild of docusaurus docs [`473b5ff`](https://github.com/eea/volto-eea-design-system/commit/473b5ff05980780a1b8606f70f7a380bd0a077cc)
|
|
66
|
+
- prettier changes [`134da52`](https://github.com/eea/volto-eea-design-system/commit/134da52549b9d5eac5a12b7ad3005073500ac2c4)
|
|
67
|
+
- change(grid-story): added container as grid width is influenced by container width [`459f481`](https://github.com/eea/volto-eea-design-system/commit/459f4813ee3c5325a3db22d417ac5f23063bd4d2)
|
|
68
|
+
- change(container): modified all outputted widths to align to grid [`9f29cef`](https://github.com/eea/volto-eea-design-system/commit/9f29cefa4bfee1fe50844c8450de39ef4b0915d4)
|
|
69
|
+
- Autobuild of docusaurus docs [`52245bb`](https://github.com/eea/volto-eea-design-system/commit/52245bb5f2cec22cb964f61ef556a8985eaa3a49)
|
|
70
|
+
- change(breadcrumb): added vertical variant to the breadcrumbs like we do in Volto [`f405f84`](https://github.com/eea/volto-eea-design-system/commit/f405f8437be6be221b055a41c5d391f4cc94385d)
|
|
71
|
+
- Autobuild of docusaurus docs [`1ea4dd3`](https://github.com/eea/volto-eea-design-system/commit/1ea4dd3dc780f564a2ea9ff92ca00dc083380eed)
|
|
72
|
+
- change(segment): brought back overrides from pastanaga into our theme [`14efd02`](https://github.com/eea/volto-eea-design-system/commit/14efd021f81898bb0f2d3f1a2e8677445420591a)
|
|
73
|
+
- change(container): removed padding from containers restoring thus the defaults [`c2ed813`](https://github.com/eea/volto-eea-design-system/commit/c2ed813cf2f7ce284e33f2e94e02ff16678c2d05)
|
|
74
|
+
- Autobuild of docusaurus docs [`8652ed7`](https://github.com/eea/volto-eea-design-system/commit/8652ed7cbebd9508c620279c9f994aef6c5d952d)
|
|
75
|
+
- change(breakpoints): added also contentBreakpoint for backward compatibility [`b6c9212`](https://github.com/eea/volto-eea-design-system/commit/b6c9212378a37639e6154d8d8e837169bcbac8b5)
|
|
76
|
+
- Autobuild of docusaurus docs [`7928530`](https://github.com/eea/volto-eea-design-system/commit/792853064185f960f3f0a83a70b626b8bfc93d39)
|
|
77
|
+
- change(breakpoints): restore Semantic UI breakpoints, adding extra needed values [`e7f5b1e`](https://github.com/eea/volto-eea-design-system/commit/e7f5b1e4fac6453458078bb02cdc66c328843b59)
|
|
78
|
+
|
|
7
79
|
#### [0.2.3](https://github.com/eea/volto-eea-design-system/compare/0.2.2...0.2.3)
|
|
8
80
|
|
|
81
|
+
> 29 April 2022
|
|
82
|
+
|
|
83
|
+
- Release [`#156`](https://github.com/eea/volto-eea-design-system/pull/156)
|
|
9
84
|
- [R2] Button [`#154`](https://github.com/eea/volto-eea-design-system/pull/154)
|
|
10
85
|
- [R2] Tab [`#155`](https://github.com/eea/volto-eea-design-system/pull/155)
|
|
11
86
|
- Autobuild of docusaurus docs [`4418144`](https://github.com/eea/volto-eea-design-system/commit/4418144c194c49cdeaf6928eabd781e01d0a391e)
|
package/package.json
CHANGED
package/src/semantic.less
CHANGED
|
@@ -202,11 +202,11 @@
|
|
|
202
202
|
|
|
203
203
|
// EEA Design custom components
|
|
204
204
|
& {
|
|
205
|
-
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/
|
|
205
|
+
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/callout';
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
& {
|
|
209
|
-
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/
|
|
209
|
+
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/quote';
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
& {
|
|
@@ -45,6 +45,9 @@ const Template = (args) => (
|
|
|
45
45
|
<Breadcrumb.Section key="home" href={args.root}>
|
|
46
46
|
<Image src={homeSVG} alt="home" />
|
|
47
47
|
</Breadcrumb.Section>
|
|
48
|
+
<Breadcrumb.Divider>
|
|
49
|
+
<Icon className="ri-arrow-right-s-line"></Icon>
|
|
50
|
+
</Breadcrumb.Divider>
|
|
48
51
|
{args.sections.map((section, index, sections) => [
|
|
49
52
|
index !== 0 && (
|
|
50
53
|
<Breadcrumb.Divider key={index}>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
function Callout({ children, as, bold, ...rest }) {
|
|
4
|
+
const As = as || 'div';
|
|
5
|
+
return (
|
|
6
|
+
<As className="eea callout" {...rest}>
|
|
7
|
+
{bold ? <strong>{children}</strong> : children}
|
|
8
|
+
</As>
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default Callout;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Container } from 'semantic-ui-react';
|
|
3
|
+
import Callout from './Callout';
|
|
4
|
+
|
|
5
|
+
const CITATION =
|
|
6
|
+
'An interconnected grid will help deliver the ultimate goal of the Energy Union, to make sure affordable, secure and sustainable energy, and also growth across the EU.';
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Components/Callout',
|
|
10
|
+
component: Callout,
|
|
11
|
+
argTypes: {
|
|
12
|
+
content: {
|
|
13
|
+
name: 'content',
|
|
14
|
+
description: 'Callout content',
|
|
15
|
+
type: { name: 'string', required: true },
|
|
16
|
+
},
|
|
17
|
+
as: {
|
|
18
|
+
name: 'as',
|
|
19
|
+
description: 'HTML tag to be used. Default: blockquote',
|
|
20
|
+
type: { name: 'string', required: false },
|
|
21
|
+
},
|
|
22
|
+
bold: {
|
|
23
|
+
name: 'bold',
|
|
24
|
+
description: 'Bolder text',
|
|
25
|
+
type: { summary: 'boolean' },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const Default = (args) => (
|
|
31
|
+
<Container>
|
|
32
|
+
<Callout as={args.as} bold={args.bold}>
|
|
33
|
+
{args.content}
|
|
34
|
+
</Callout>
|
|
35
|
+
</Container>
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
Default.args = {
|
|
39
|
+
content: CITATION,
|
|
40
|
+
as: 'div',
|
|
41
|
+
bold: false,
|
|
42
|
+
};
|
|
@@ -2,21 +2,21 @@ import React from 'react';
|
|
|
2
2
|
import { Icon } from 'semantic-ui-react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Quote.propTypes = {
|
|
6
6
|
quote: PropTypes.string,
|
|
7
7
|
source: PropTypes.string,
|
|
8
8
|
quotePosition: PropTypes.oneOf(['left', 'right', 'none', 'inherit']),
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
function
|
|
11
|
+
function Quote({ children, ...rest }) {
|
|
12
12
|
return (
|
|
13
|
-
<blockquote className={`eea
|
|
13
|
+
<blockquote className={`eea quote ${rest.quotePosition}`}>
|
|
14
14
|
<div className="content">{children}</div>
|
|
15
15
|
</blockquote>
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Quote.Quote = ({ children, as: As, ...rest }) => (
|
|
20
20
|
<div className="quotes wrapper">
|
|
21
21
|
<Icon className="ri-double-quotes-l"></Icon>
|
|
22
22
|
{As ? (
|
|
@@ -30,15 +30,15 @@ Pullquote.Quote = ({ children, as: As, ...rest }) => (
|
|
|
30
30
|
</div>
|
|
31
31
|
);
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
<p className="
|
|
33
|
+
Quote.Source = ({ children, ...rest }) => (
|
|
34
|
+
<p className="source" {...rest}>
|
|
35
35
|
{children}
|
|
36
36
|
</p>
|
|
37
37
|
);
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
<p className="
|
|
39
|
+
Quote.SourceInfo = ({ children, ...rest }) => (
|
|
40
|
+
<p className="info" {...rest}>
|
|
41
41
|
{children}
|
|
42
42
|
</p>
|
|
43
43
|
);
|
|
44
|
-
export default
|
|
44
|
+
export default Quote;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import Quote from './Quote';
|
|
3
3
|
import { Container } from 'semantic-ui-react';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title: 'Components/
|
|
7
|
-
component:
|
|
6
|
+
title: 'Components/Quote',
|
|
7
|
+
component: Quote,
|
|
8
8
|
argTypes: {
|
|
9
9
|
quote: {
|
|
10
|
-
description: '
|
|
10
|
+
description: 'Quote content',
|
|
11
11
|
type: { name: 'string' },
|
|
12
12
|
table: {
|
|
13
13
|
defaultValue: { summary: '""' },
|
|
@@ -20,8 +20,8 @@ export default {
|
|
|
20
20
|
defaultValue: { summary: '""' },
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
|
-
|
|
24
|
-
description: 'quote
|
|
23
|
+
sourceInfo: {
|
|
24
|
+
description: 'quote source info',
|
|
25
25
|
type: { name: 'string' },
|
|
26
26
|
table: {
|
|
27
27
|
defaultValue: { summary: '""' },
|
|
@@ -51,11 +51,11 @@ export default {
|
|
|
51
51
|
export const Default = (args) => (
|
|
52
52
|
<Container>
|
|
53
53
|
<p>{args.content}</p>
|
|
54
|
-
<
|
|
55
|
-
<
|
|
56
|
-
<
|
|
57
|
-
<
|
|
58
|
-
</
|
|
54
|
+
<Quote quotePosition={args.quotePosition}>
|
|
55
|
+
<Quote.Quote>{args.quote}</Quote.Quote>
|
|
56
|
+
<Quote.Source>{args.source}</Quote.Source>
|
|
57
|
+
<Quote.SourceInfo>{args.sourceInfo}</Quote.SourceInfo>
|
|
58
|
+
</Quote>
|
|
59
59
|
<p>{args.content}</p>
|
|
60
60
|
<p>{args.content}</p>
|
|
61
61
|
<p>{args.content}</p>
|
|
@@ -68,7 +68,7 @@ Default.args = {
|
|
|
68
68
|
quote:
|
|
69
69
|
'Nulla viverra magna curabitur leo nisl scelerisque. Velit fusce sed sem ut. Molestie fermentum congue nunc cras posuere orci. Duis eu ultrices nisi, est a pellentesque eget tellus mauris. Amet, tortor quis pellentesque suspendisse convallis lacinia. Aliquam.',
|
|
70
70
|
source: 'Arthur Abbott',
|
|
71
|
-
|
|
71
|
+
sourceInfo: 'EEA Analyst',
|
|
72
72
|
content:
|
|
73
73
|
'Cursus turpis massa tincidunt dui ut ornare lectus sit amet. Venenatis tellus in metus vulputate eu. Sagittis id consectetur purus ut. Ultricies mi eget mauris pharetra et ultrices. Eu lobortis elementum nibh tellus molestie nunc non blandit massa. Mattis pellentesque id nibh tortor id aliquet. Amet nisl purus in mollis nunc. Quisque non tellus orci ac auctor augue mauris. Faucibus vitae aliquet nec ullamcorper sit amet risus nullam eget.',
|
|
74
74
|
quotePosition: 'left',
|
|
@@ -77,11 +77,11 @@ Default.args = {
|
|
|
77
77
|
export const Reversed = (args) => (
|
|
78
78
|
<Container>
|
|
79
79
|
<p>{args.content}</p>
|
|
80
|
-
<
|
|
81
|
-
<
|
|
82
|
-
<
|
|
83
|
-
<
|
|
84
|
-
</
|
|
80
|
+
<Quote quotePosition={args.quotePosition}>
|
|
81
|
+
<Quote.Source>{args.source}</Quote.Source>
|
|
82
|
+
<Quote.SourceInfo>{args.sourceInfo}</Quote.SourceInfo>
|
|
83
|
+
<Quote.Quote>{args.quote}</Quote.Quote>
|
|
84
|
+
</Quote>
|
|
85
85
|
<p>{args.content}</p>
|
|
86
86
|
<p>{args.content}</p>
|
|
87
87
|
<p>{args.content}</p>
|
|
@@ -94,7 +94,7 @@ Reversed.args = {
|
|
|
94
94
|
quote:
|
|
95
95
|
'Nulla viverra magna curabitur leo nisl scelerisque. Velit fusce sed sem ut. Molestie fermentum congue nunc cras posuere orci. Duis eu ultrices nisi, est a pellentesque eget tellus mauris. Amet, tortor quis pellentesque suspendisse convallis lacinia. Aliquam.',
|
|
96
96
|
source: 'Arthur Abbott',
|
|
97
|
-
|
|
97
|
+
sourceInfo: 'EEA Analyst',
|
|
98
98
|
content:
|
|
99
99
|
'Cursus turpis massa tincidunt dui ut ornare lectus sit amet. Venenatis tellus in metus vulputate eu. Sagittis id consectetur purus ut. Ultricies mi eget mauris pharetra et ultrices. Eu lobortis elementum nibh tellus molestie nunc non blandit massa. Mattis pellentesque id nibh tortor id aliquet. Amet nisl purus in mollis nunc. Quisque non tellus orci ac auctor augue mauris. Faucibus vitae aliquet nec ullamcorper sit amet risus nullam eget.',
|
|
100
100
|
quotePosition: 'left',
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import Divider from '
|
|
3
|
+
import Divider from '../../Divider/Divider';
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import Quote from '../Quote';
|
|
6
6
|
import { Grid, Card, Image } from 'semantic-ui-react';
|
|
7
7
|
|
|
8
8
|
Testimonial.propTypes = {
|
|
9
9
|
title: PropTypes.string,
|
|
10
|
-
info: PropTypes.string,
|
|
11
10
|
};
|
|
12
11
|
|
|
13
12
|
function Testimonial({ children, ...rest }) {
|
|
@@ -22,9 +21,9 @@ function Testimonial({ children, ...rest }) {
|
|
|
22
21
|
|
|
23
22
|
Testimonial.Avatar = ({ children, ...rest }) => {
|
|
24
23
|
return (
|
|
25
|
-
<Grid.Column mobile={12} tablet={
|
|
24
|
+
<Grid.Column mobile={12} tablet={3} computer={2}>
|
|
26
25
|
<div className="avatar-wrapper">
|
|
27
|
-
<Card className={`eea
|
|
26
|
+
<Card className={`eea rounded small`} fluid={rest.fluid}>
|
|
28
27
|
<Image src={rest.src} wrapped ui={false} alt="card image" />
|
|
29
28
|
<Card.Content>
|
|
30
29
|
<Card.Header>{rest.title}</Card.Header>
|
|
@@ -38,17 +37,17 @@ Testimonial.Avatar = ({ children, ...rest }) => {
|
|
|
38
37
|
|
|
39
38
|
Testimonial.Content = ({ children }) => {
|
|
40
39
|
return (
|
|
41
|
-
<Grid.Column mobile={12} tablet={
|
|
40
|
+
<Grid.Column mobile={12} tablet={9} computer={10}>
|
|
42
41
|
<div className="content">{children}</div>
|
|
43
42
|
</Grid.Column>
|
|
44
43
|
);
|
|
45
44
|
};
|
|
46
45
|
|
|
47
|
-
Testimonial.Title = ({ children }) => <
|
|
48
|
-
Testimonial.
|
|
49
|
-
<
|
|
50
|
-
<
|
|
51
|
-
</
|
|
46
|
+
Testimonial.Title = ({ children }) => <h3 className="title">{children}</h3>;
|
|
47
|
+
Testimonial.Quote = ({ children, ...rest }) => (
|
|
48
|
+
<Quote quotePosition="none">
|
|
49
|
+
<Quote.Quote>{children}</Quote.Quote>
|
|
50
|
+
</Quote>
|
|
52
51
|
);
|
|
53
52
|
|
|
54
53
|
export default Testimonial;
|
|
@@ -5,7 +5,7 @@ import Testimonial from './Testimonial';
|
|
|
5
5
|
import { Container } from 'semantic-ui-react';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
|
-
title: 'Components/Testimonial',
|
|
8
|
+
title: 'Components/Quote/Testimonial',
|
|
9
9
|
component: Testimonial,
|
|
10
10
|
argTypes: {
|
|
11
11
|
title: {
|
|
@@ -15,7 +15,15 @@ export default {
|
|
|
15
15
|
type: { summary: 'string' },
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
avatartitle: {
|
|
19
|
+
description: 'avatar title',
|
|
20
|
+
type: { summary: 'string' },
|
|
21
|
+
},
|
|
22
|
+
avatarinfo: {
|
|
23
|
+
description: 'avatar metadata',
|
|
24
|
+
type: { summary: 'string' },
|
|
25
|
+
},
|
|
26
|
+
avatarimage: {
|
|
19
27
|
description: 'testimonial image',
|
|
20
28
|
table: {
|
|
21
29
|
defaultValue: { summary: '""' },
|
|
@@ -32,13 +40,13 @@ const InlineTemplate = (args) => (
|
|
|
32
40
|
<Container>
|
|
33
41
|
<Testimonial {...args}>
|
|
34
42
|
<Testimonial.Avatar
|
|
35
|
-
src={
|
|
36
|
-
title={args.
|
|
37
|
-
description={args.
|
|
43
|
+
src={args.avatarimage}
|
|
44
|
+
title={args.avatartitle}
|
|
45
|
+
description={args.avatarinfo}
|
|
38
46
|
></Testimonial.Avatar>
|
|
39
47
|
<Testimonial.Content>
|
|
40
48
|
<Testimonial.Title>{args.title}</Testimonial.Title>
|
|
41
|
-
<Testimonial.
|
|
49
|
+
<Testimonial.Quote>{args.quote}</Testimonial.Quote>
|
|
42
50
|
</Testimonial.Content>
|
|
43
51
|
</Testimonial>
|
|
44
52
|
</Container>
|
|
@@ -46,8 +54,9 @@ const InlineTemplate = (args) => (
|
|
|
46
54
|
|
|
47
55
|
export const Inline = InlineTemplate.bind({});
|
|
48
56
|
Inline.args = {
|
|
49
|
-
|
|
50
|
-
|
|
57
|
+
avatartitle: 'Jane Doe',
|
|
58
|
+
avatarinfo: 'EEA Analyst',
|
|
59
|
+
avatarimage: imgUrl,
|
|
51
60
|
title: 'Amet - Lorem ipsum dolor sit amet',
|
|
52
61
|
quote:
|
|
53
62
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
|
package/src/ui/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export Banner from './Banner/Banner';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export Callout from './Callout/Callout';
|
|
4
4
|
|
|
5
5
|
export Breadcrumbs from './Breadcrumbs/Breadcrumbs';
|
|
6
6
|
|
|
@@ -16,11 +16,11 @@ export InpageNavigation from './InpageNavigation/InpageNavigation';
|
|
|
16
16
|
|
|
17
17
|
export Logo from './Logo/Logo';
|
|
18
18
|
|
|
19
|
-
export
|
|
19
|
+
export Quote from './Quote/Quote';
|
|
20
20
|
|
|
21
21
|
export Timeline from './Timeline/Timeline';
|
|
22
22
|
|
|
23
|
-
export Testimonial from './Testimonial/Testimonial';
|
|
23
|
+
export Testimonial from './Quote/Testimonial/Testimonial';
|
|
24
24
|
|
|
25
25
|
export AvatarGrid from './Card/AvatarGrid/AvatarGrid';
|
|
26
26
|
|
package/theme/theme.config
CHANGED
|
@@ -5,25 +5,10 @@
|
|
|
5
5
|
.ui.breadcrumb {
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
|
-
padding-right: 1rem;
|
|
9
|
-
padding-left: 1rem;
|
|
10
|
-
|
|
11
|
-
//a.section {
|
|
12
|
-
// color: #0074a3;
|
|
13
|
-
//}
|
|
14
|
-
//
|
|
15
|
-
//.section.active {
|
|
16
|
-
// color: #4e7372;
|
|
17
|
-
//}
|
|
18
8
|
|
|
19
9
|
.home.icon {
|
|
20
10
|
margin-right: 0;
|
|
21
11
|
}
|
|
22
|
-
|
|
23
|
-
@media only screen and (min-width: @tabletBreakpoint) {
|
|
24
|
-
padding-right: 0;
|
|
25
|
-
padding-left: 0;
|
|
26
|
-
}
|
|
27
12
|
}
|
|
28
13
|
/*******************************
|
|
29
14
|
Theme Overrides
|
|
@@ -49,4 +34,3 @@
|
|
|
49
34
|
font-size: @breadcrumbIconFontSize;
|
|
50
35
|
}
|
|
51
36
|
}
|
|
52
|
-
|
|
@@ -27,4 +27,52 @@
|
|
|
27
27
|
text-transform: @headerTextTransform;
|
|
28
28
|
vertical-align: @headerVerticalAlign;
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// fix hiding of table header on mobile resolutions, by default whitespace is no wrap from table.less
|
|
34
|
+
.ui.sortable.table thead th {
|
|
35
|
+
white-space: @headerSortableWhiteSpace;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media only screen and (max-width: @mobileLandscapeBreakpoint) {
|
|
39
|
+
|
|
40
|
+
.ui.table.responsive {
|
|
41
|
+
|
|
42
|
+
&:not(.unstackable) td:first-child {
|
|
43
|
+
font-weight: @responsiveMobileCellHeaderFontWeight;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
thead {
|
|
47
|
+
border: none;
|
|
48
|
+
clip: @responsiveMobileCellHeaderClip;
|
|
49
|
+
height: @responsiveMobileHeaderHeight;
|
|
50
|
+
margin: @responsiveMobileHeaderMargin;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
padding: @responsiveMobileHeaderPadding;
|
|
53
|
+
position: absolute;
|
|
54
|
+
width: @responsiveMobileHeaderWidth;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
td {
|
|
58
|
+
display: block;
|
|
59
|
+
text-align: @responsiveMobileCellTextAlign;
|
|
60
|
+
clear: both;
|
|
61
|
+
|
|
62
|
+
&::before {
|
|
63
|
+
/*
|
|
64
|
+
* aria-label has no advantage, it won't be read inside a table
|
|
65
|
+
content: attr(aria-label);
|
|
66
|
+
*/
|
|
67
|
+
content: attr(data-label);
|
|
68
|
+
float: @responsiveMobileCellDataLabelFloat;
|
|
69
|
+
font-weight: @responsiveMobileCellDataLabelFontWeigth;
|
|
70
|
+
text-align: @responsiveMobileCellDataLabelTextAlign;
|
|
71
|
+
max-width: @responsiveMobileCellDataLabelMaxSize;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
}
|
|
77
|
+
|
|
30
78
|
}
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
@headerTextTransform: inherit;
|
|
53
53
|
@headerBoxShadow: none;
|
|
54
54
|
@headerFontSize: @h5;
|
|
55
|
+
@headerSortableWhiteSpace: normal;
|
|
55
56
|
|
|
56
57
|
/* Table Footer */
|
|
57
58
|
@footerBoxShadow: none;
|
|
@@ -247,3 +248,18 @@
|
|
|
247
248
|
@small: 0.9em;
|
|
248
249
|
@medium: 1em;
|
|
249
250
|
@large: 1.1em;
|
|
251
|
+
|
|
252
|
+
/* Responsive Table */
|
|
253
|
+
@responsiveMobileCellHeaderFontWeight: @normal;
|
|
254
|
+
@responsiveMobileCellHeaderClip: rect(0 0 0 0);
|
|
255
|
+
@responsiveMobileHeaderHeight: 1px;
|
|
256
|
+
@responsiveMobileHeaderMargin: -1px;
|
|
257
|
+
@responsiveMobileHeaderPadding: 0;
|
|
258
|
+
@responsiveMobileHeaderWidth: 0;
|
|
259
|
+
|
|
260
|
+
@responsiveMobileCellTextAlign: right;
|
|
261
|
+
@responsiveMobileCellDataLabelFloat: left;
|
|
262
|
+
@responsiveMobileCellDataLabelTextAlign: left;
|
|
263
|
+
@responsiveMobileCellDataLabelMaxSize: 50%;
|
|
264
|
+
@responsiveMobileCellDataLabelFontWeigth: @bold;
|
|
265
|
+
|