@eeacms/volto-eea-design-system 0.2.4 → 0.4.0
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/CHANGELOG.md +115 -1
- package/package.json +3 -2
- package/src/semantic.less +7 -3
- package/src/ui/Callout/Callout.jsx +12 -0
- package/src/ui/Callout/Callout.stories.jsx +42 -0
- package/src/ui/Card/Card.stories.jsx +185 -5
- package/src/ui/{Pullquote/Pullquote.jsx → Quote/Quote.jsx} +9 -9
- package/src/ui/Quote/Quote.stories.jsx +93 -0
- 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/assets/images/Svg/data-analytics.svg +14 -0
- package/theme/themes/eea/assets/images/Svg/globe-eco.svg +3 -0
- package/theme/themes/eea/assets/images/Svg/knowledge.svg +3 -0
- package/theme/themes/eea/assets/images/Svg/network.svg +3 -0
- package/theme/themes/eea/assets/images/Svg/sustainable.svg +38 -0
- package/theme/themes/eea/collections/table.overrides +48 -0
- package/theme/themes/eea/collections/table.variables +16 -0
- package/theme/themes/eea/definitions/views/item.less +475 -0
- package/theme/themes/eea/elements/input.overrides +68 -0
- package/theme/themes/eea/elements/label.overrides +111 -3
- package/theme/themes/eea/elements/label.variables +17 -3
- package/theme/themes/eea/elements/segment.overrides +5 -2
- 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/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.overrides +2 -0
- package/theme/themes/eea/globals/site.variables +27 -6
- package/theme/themes/eea/globals/utilities.less +31 -0
- package/theme/themes/eea/modules/accordion.variables +2 -2
- package/theme/themes/eea/tokens/borders.less +14 -0
- package/theme/themes/eea/tokens/colors.less +63 -0
- package/theme/themes/eea/tokens/fonts.less +38 -0
- package/theme/themes/eea/tokens/shadows.less +41 -0
- package/theme/themes/eea/tokens/shapes.less +6 -0
- package/theme/themes/eea/tokens/sizes.less +106 -0
- package/theme/themes/eea/tokens/tokens.less +7 -0
- package/theme/themes/eea/tokens/z-index.less +12 -0
- package/theme/themes/eea/views/card.overrides +108 -0
- package/theme/themes/eea/views/card.variables +29 -1
- package/theme/themes/eea/views/item.overrides +37 -0
- package/theme/themes/eea/views/item.variables +12 -3
- package/src/ui/Blockquote/Blockquote.jsx +0 -16
- package/src/ui/Blockquote/Blockquote.stories.jsx +0 -48
- package/src/ui/Pullquote/Pullquote.stories.jsx +0 -101
- 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
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,123 @@ 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.4.0](https://github.com/eea/volto-eea-design-system/compare/0.3.1...0.4.0)
|
|
8
|
+
|
|
9
|
+
- [Homepage] Carousel [`#161`](https://github.com/eea/volto-eea-design-system/pull/161)
|
|
10
|
+
- [R2] Label [`#160`](https://github.com/eea/volto-eea-design-system/pull/160)
|
|
11
|
+
- docs(homepage): adding homepage with links for upcoming sections [`#166`](https://github.com/eea/volto-eea-design-system/pull/166)
|
|
12
|
+
- Release 0.4.0 [`f4bc509`](https://github.com/eea/volto-eea-design-system/commit/f4bc50928ab877f3670b181dbe6e8cfff7fa2daa)
|
|
13
|
+
- Autobuild of docusaurus docs [`df30dbb`](https://github.com/eea/volto-eea-design-system/commit/df30dbb2ed3de068445b9080851520357ef7636c)
|
|
14
|
+
- refactor(docusaurus): restructured and improved sections navigation #174 [`b47b026`](https://github.com/eea/volto-eea-design-system/commit/b47b0266ffd6baeaf1a5aea1a7ab22c909976de1)
|
|
15
|
+
- docs(docusaurus): copyedit, improved navigation [`998762a`](https://github.com/eea/volto-eea-design-system/commit/998762a5bd40d08f619c00743b66d82b43aed653)
|
|
16
|
+
- Autobuild of docusaurus docs [`28f8122`](https://github.com/eea/volto-eea-design-system/commit/28f81220c2093df75b4c36384cb9c865d0e94b4a)
|
|
17
|
+
- refactor(tokens): add 12 and 14px font size token #176 [`3681147`](https://github.com/eea/volto-eea-design-system/commit/368114729536f03dd85c2d3565b984c3bdfe3a72)
|
|
18
|
+
- refactor(tokens): add 14px font size token [`8d8695d`](https://github.com/eea/volto-eea-design-system/commit/8d8695dce62e7f29af01447308460e4fe3f72b21)
|
|
19
|
+
- Autobuild of docusaurus docs [`a53b457`](https://github.com/eea/volto-eea-design-system/commit/a53b45781ceec27cf034f9104cfb7b7c1aec519a)
|
|
20
|
+
- change(tokens): added size tokens to be used for width of elements [`cda5dea`](https://github.com/eea/volto-eea-design-system/commit/cda5dea1f6ad1ae980c89999d323d7b385894025)
|
|
21
|
+
- docs(website): created new sections, improved website navigation [`243f0be`](https://github.com/eea/volto-eea-design-system/commit/243f0be4d7fa6e988da0ca0f586f5ea478573eef)
|
|
22
|
+
- docs(website): restructuring, moved current DS docs to new folder [`8bb612f`](https://github.com/eea/volto-eea-design-system/commit/8bb612f1313dfc739d7912aa2e3252f468e1122f)
|
|
23
|
+
- Autobuild of docusaurus docs [`beda042`](https://github.com/eea/volto-eea-design-system/commit/beda0422a088fbb664d1df6878dedb21891f19cc)
|
|
24
|
+
- feature(homepage): added Item group with icons #167 [`2ec99f5`](https://github.com/eea/volto-eea-design-system/commit/2ec99f53aeb183b24073be4014a9c2ec30d5235c)
|
|
25
|
+
- Autobuild of docusaurus docs [`29ad0ab`](https://github.com/eea/volto-eea-design-system/commit/29ad0abfee50e2fcd99b2b7990d2a67b94892f72)
|
|
26
|
+
- change(tokens): added also rem space values [`aedbbdd`](https://github.com/eea/volto-eea-design-system/commit/aedbbddaf7f8be88ed2f8a2b8c21b60752896c53)
|
|
27
|
+
- Autobuild of docusaurus docs [`d69345a`](https://github.com/eea/volto-eea-design-system/commit/d69345a59a24773e20ca1bf918d5bf4f7f944540)
|
|
28
|
+
- change(tokens): rename gap to space and added em spaces [`719efc4`](https://github.com/eea/volto-eea-design-system/commit/719efc44070ef87f049a92e4da96bb111e9fc8ff)
|
|
29
|
+
- Autobuild of docusaurus docs [`54e0dc6`](https://github.com/eea/volto-eea-design-system/commit/54e0dc611160dd51032d319d306cb146ca00ff0c)
|
|
30
|
+
- feat(utilities): add file with basic utilities classes #173 [`855185f`](https://github.com/eea/volto-eea-design-system/commit/855185ff22c77efb75cc5c7850d181254b4c4927)
|
|
31
|
+
- change(utilities): values need important rule [`96150d9`](https://github.com/eea/volto-eea-design-system/commit/96150d9a22cb6be6f338f1e9d052cbd65e3602fc)
|
|
32
|
+
- feat(utilities): add file and basic utilities [`05c88b2`](https://github.com/eea/volto-eea-design-system/commit/05c88b294a49590e3fb355fb6e113f5020442915)
|
|
33
|
+
- refactor(item): add classes for size, set default to tile and add controls for grouped items [`d5a0405`](https://github.com/eea/volto-eea-design-system/commit/d5a0405abba4e5f5d36f899dc9e47f43a96d5e49)
|
|
34
|
+
- Autobuild of docusaurus docs [`7a06b17`](https://github.com/eea/volto-eea-design-system/commit/7a06b17662dd88994ff57de61c4625c25246c569)
|
|
35
|
+
- change(tokens): name spacing tokens gaps and added missing values up to 80px as documented [`9fbd912`](https://github.com/eea/volto-eea-design-system/commit/9fbd912a6f027150149d82678f88885a939120b0)
|
|
36
|
+
- Autobuild of docusaurus docs [`ec928f0`](https://github.com/eea/volto-eea-design-system/commit/ec928f0140004067b64928dd11bfb6c6a6c1079c)
|
|
37
|
+
- change(tokens): updated sizes with 4-8-16px increments [`1f53d65`](https://github.com/eea/volto-eea-design-system/commit/1f53d655df2b24053a5d331c56dfd14bd3602dfd)
|
|
38
|
+
- Autobuild of docusaurus docs [`b2869d1`](https://github.com/eea/volto-eea-design-system/commit/b2869d1658e827bb769a5b836f038e1cc8d8d737)
|
|
39
|
+
- Autobuild of docusaurus docs [`ff2c701`](https://github.com/eea/volto-eea-design-system/commit/ff2c701af58ee173625939120842d3d7e81bb6dc)
|
|
40
|
+
- refactor(quote): Rename sourceInfo to extra info [`76c2b40`](https://github.com/eea/volto-eea-design-system/commit/76c2b400de4814fe79f303bfd2a82842c848231c)
|
|
41
|
+
- Autobuild of docusaurus docs [`4c8e263`](https://github.com/eea/volto-eea-design-system/commit/4c8e26348399aa07515f5ef8a8a85860b5557d18)
|
|
42
|
+
- fix(table): Set responsive breakpoint to @tabletBreakpoint [`067e018`](https://github.com/eea/volto-eea-design-system/commit/067e01842030bfa5639e2a55cb8af5047bb2996f)
|
|
43
|
+
- Autobuild of docusaurus docs [`8e4f3e7`](https://github.com/eea/volto-eea-design-system/commit/8e4f3e79f038d88b0990ca07948e540097baab50)
|
|
44
|
+
- feature(tokens): added borders, z-index, shadows tokens #171 [`74c1788`](https://github.com/eea/volto-eea-design-system/commit/74c178837cedc7ee9fc55effde1096dc03245574)
|
|
45
|
+
- Autobuild of docusaurus docs [`9f5ddf7`](https://github.com/eea/volto-eea-design-system/commit/9f5ddf7994e3cfcdf83a0c74847eaa2910bf88cb)
|
|
46
|
+
- feature(tokens): added initial color design tokens #169 [`da3eae0`](https://github.com/eea/volto-eea-design-system/commit/da3eae05d07783aa5eadaed5d508ee3be8acc47d)
|
|
47
|
+
- Autobuild of docusaurus docs [`ee2c916`](https://github.com/eea/volto-eea-design-system/commit/ee2c91616719d092b72dec8d8fd8ffb5c57819b9)
|
|
48
|
+
- refactor(item): adjust margins to match figma designs [`6334581`](https://github.com/eea/volto-eea-design-system/commit/6334581b336a2f486e85199f371126beea47b92f)
|
|
49
|
+
- fix(item): remove image width css from item.less [`7b21cb2`](https://github.com/eea/volto-eea-design-system/commit/7b21cb2d5ddf6a6f72646f47fd268a0bd7af757d)
|
|
50
|
+
- refactor(item): import item.less in theme definitions [`c516374`](https://github.com/eea/volto-eea-design-system/commit/c51637480192dbece828616010174648ac865e2e)
|
|
51
|
+
- change(tokens): updated z-index tokens with negative values [`404efe4`](https://github.com/eea/volto-eea-design-system/commit/404efe4244d67276b435e60a1d7a69aaa90e3d8a)
|
|
52
|
+
- fix(tokens): hsla function for shadows [`b8e5d37`](https://github.com/eea/volto-eea-design-system/commit/b8e5d37a6e88321b1e2daf995b407c4ddd6e866e)
|
|
53
|
+
- docs(homepage): copy editing [`ee37d6f`](https://github.com/eea/volto-eea-design-system/commit/ee37d6f1d282b973af744f4305c0eb94c0993113)
|
|
54
|
+
- fix(tokens): remove css var from less file [`a9c4224`](https://github.com/eea/volto-eea-design-system/commit/a9c422476b412287713a6b475406615c3aed2aca)
|
|
55
|
+
- refactor(tokens): remove conditional border radius [`f0fe5ad`](https://github.com/eea/volto-eea-design-system/commit/f0fe5ada7b74e9c87623dd2b2774283dd89b9a58)
|
|
56
|
+
- refactor(tokens): add borders, shadows, shapes and z-index tokens [`7069106`](https://github.com/eea/volto-eea-design-system/commit/7069106c2b0ada9cdbad63249b4ada7fde72e05f)
|
|
57
|
+
- refactor(tocens): add color design tokens [`13bb165`](https://github.com/eea/volto-eea-design-system/commit/13bb165e103a25aadb9da6414773dc0d35081d88)
|
|
58
|
+
- Autobuild of docusaurus docs [`f5eeb6b`](https://github.com/eea/volto-eea-design-system/commit/f5eeb6b6746683d5bada81132d20b7cf2a618e6a)
|
|
59
|
+
- refactor(item): WIP replacing unstackable with row [`e3a44de`](https://github.com/eea/volto-eea-design-system/commit/e3a44de4b2dd26667e80e0d131c55b08f3c527d9)
|
|
60
|
+
- feat(ItemwithIcons): Initial Item group with icons, new item variation [`7f4ea47`](https://github.com/eea/volto-eea-design-system/commit/7f4ea476264856845a07cd24be6ec86ccd21ed8d)
|
|
61
|
+
- docs(homepage): adding design system homepage with links for upcoming sections [`c9a9685`](https://github.com/eea/volto-eea-design-system/commit/c9a968508acff74d1182e68cf049046dafd564c5)
|
|
62
|
+
- perf(carousel): added slick library [`ca9be51`](https://github.com/eea/volto-eea-design-system/commit/ca9be5125efa864bc30a0178274d744c5b2bc500)
|
|
63
|
+
- refactor(carousel): remove title from story and color on card hover [`12a1d7c`](https://github.com/eea/volto-eea-design-system/commit/12a1d7c3bd5e7ba6edf4eb20a2d7a6f8f22955f9)
|
|
64
|
+
- fix(carousel):add storybook controls descriptions [`269a603`](https://github.com/eea/volto-eea-design-system/commit/269a60383ed1e54fc57e26d4eed6b37d1da32236)
|
|
65
|
+
- feat(Carousel): create carousel for cards [`2b0d737`](https://github.com/eea/volto-eea-design-system/commit/2b0d73798b4fcbf2897d7a8167d9b4d3b3374fb2)
|
|
66
|
+
- refactor(Label):style changes based on label importance class [`ce4d5d1`](https://github.com/eea/volto-eea-design-system/commit/ce4d5d1a5bf1b1183242a253e37c509d61f82b8c)
|
|
67
|
+
- refactor(Label):add corner,ribbon & basic label stories and styles [`e2bbbb9`](https://github.com/eea/volto-eea-design-system/commit/e2bbbb947113a59127f91b86917ef0edbf36ab16)
|
|
68
|
+
|
|
69
|
+
#### [0.3.1](https://github.com/eea/volto-eea-design-system/compare/0.3.0...0.3.1)
|
|
70
|
+
|
|
71
|
+
> 19 May 2022
|
|
72
|
+
|
|
73
|
+
- Release [`#168`](https://github.com/eea/volto-eea-design-system/pull/168)
|
|
74
|
+
- Autobuild of docusaurus docs [`25a2a6d`](https://github.com/eea/volto-eea-design-system/commit/25a2a6d78db7a3e2313925bb40a6d58355bbfeb7)
|
|
75
|
+
- fix(input,segment): toggle inputs and padding fixes within Volto sidebar forms [`de030d6`](https://github.com/eea/volto-eea-design-system/commit/de030d617325a8f9d028a5c1615faa160fcdd763)
|
|
76
|
+
- Autobuild of docusaurus docs [`1150d98`](https://github.com/eea/volto-eea-design-system/commit/1150d98ee28d16017013209e53228324d5c510e5)
|
|
77
|
+
- change(login): restored width of login container to 376px [`0564293`](https://github.com/eea/volto-eea-design-system/commit/0564293346b2402c3c86009b61066da4200662b8)
|
|
78
|
+
|
|
79
|
+
#### [0.3.0](https://github.com/eea/volto-eea-design-system/compare/0.2.4...0.3.0)
|
|
80
|
+
|
|
81
|
+
> 17 May 2022
|
|
82
|
+
|
|
83
|
+
- Release [`#165`](https://github.com/eea/volto-eea-design-system/pull/165)
|
|
84
|
+
- [R2] Quote [`#158`](https://github.com/eea/volto-eea-design-system/pull/158)
|
|
85
|
+
- [R2] Refactor table [`#159`](https://github.com/eea/volto-eea-design-system/pull/159)
|
|
86
|
+
- Release 0.3.0 [`8724b28`](https://github.com/eea/volto-eea-design-system/commit/8724b2809027b2e359dcd64e418a33cade4ad487)
|
|
87
|
+
- Autobuild of docusaurus docs [`368a09d`](https://github.com/eea/volto-eea-design-system/commit/368a09de4885a7ce01e238c37d48db6a13af64e4)
|
|
88
|
+
- feat(callout): Align the Callout component with Volto slate component [`e9343ff`](https://github.com/eea/volto-eea-design-system/commit/e9343ff7008cd3d60700929e8861c7bdd06df4d3)
|
|
89
|
+
- Autobuild of docusaurus docs [`cabb7a5`](https://github.com/eea/volto-eea-design-system/commit/cabb7a55c655e6fa5669a6ce904da46290e31f55)
|
|
90
|
+
- Autobuild of docusaurus docs [`aaadafd`](https://github.com/eea/volto-eea-design-system/commit/aaadafd9844c79a2323718f3392173fe6d6da352)
|
|
91
|
+
- Autobuild of docusaurus docs [`33eff2e`](https://github.com/eea/volto-eea-design-system/commit/33eff2e246328d2a0f2afb56656719a3dfaed531)
|
|
92
|
+
- 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)
|
|
93
|
+
- Autobuild of docusaurus docs [`081ad83`](https://github.com/eea/volto-eea-design-system/commit/081ad832ecedee400779b8023d2e5eab8e67639e)
|
|
94
|
+
- fix(accordion): Fix accordion active title color [`57af165`](https://github.com/eea/volto-eea-design-system/commit/57af1650a0b830e01c79e21b130784190defbcc0)
|
|
95
|
+
- refactor(quote): update action name to match the functionality [`caf2e35`](https://github.com/eea/volto-eea-design-system/commit/caf2e359cada8056f280d2cd137776d64f82a2af)
|
|
96
|
+
- refactor(table): add borders to responsive table with celled attribute [`8a71a67`](https://github.com/eea/volto-eea-design-system/commit/8a71a670fb34a11fbe4cef7365b91c6be84b5b54)
|
|
97
|
+
- change(table): make use of headerSortableWhiteSpace variable [`fd836fb`](https://github.com/eea/volto-eea-design-system/commit/fd836fbe82e92864a628bf4d9d3093674890f722)
|
|
98
|
+
- fix(table): tweak responsive table for extra long headers [`7f9f9e2`](https://github.com/eea/volto-eea-design-system/commit/7f9f9e25f7c57d4bf7edd2546a7579b892867b5c)
|
|
99
|
+
- change(table): use the @mobileLandscapeBreakpoint for max 480px media query [`90880ab`](https://github.com/eea/volto-eea-design-system/commit/90880ab324b6a66c7741819dd0d913504751454f)
|
|
100
|
+
- refactor(Table):wrap table with semantic ui container [`24ac2bb`](https://github.com/eea/volto-eea-design-system/commit/24ac2bb4813df33547f684220e1e12af5ca6df7e)
|
|
101
|
+
- refactor(Callout): wrap story with semantic ui container [`ead362d`](https://github.com/eea/volto-eea-design-system/commit/ead362d88f43fa1380e8be5481cbc38c055060f8)
|
|
102
|
+
- refactor(Table):add responsive mobile table story and styles [`aed69e6`](https://github.com/eea/volto-eea-design-system/commit/aed69e698e5b89e33a4c331570755934267492af)
|
|
103
|
+
- refactor(testimonial): readjust rounded card [`b419334`](https://github.com/eea/volto-eea-design-system/commit/b41933417a44dabcf829a3346d91c142dd6472d3)
|
|
104
|
+
- fix(quote): fix color and padding issue [`310d6b3`](https://github.com/eea/volto-eea-design-system/commit/310d6b37bdf5df3da2d2103eab8f4fa5020c95ab)
|
|
105
|
+
- feat(Callout):create Callout component with Blockquote style [`3d486b1`](https://github.com/eea/volto-eea-design-system/commit/3d486b1c2c7f74ee8bc4b3a5e1bf3993ac98f6dd)
|
|
106
|
+
- refactor(Quote):rename Quote.Metadata to Quote.SourceInfo [`dfae8b1`](https://github.com/eea/volto-eea-design-system/commit/dfae8b1c147659d24dfd1a13fb4c3098e5865a12)
|
|
107
|
+
- refactor(Quote):move Testimonial component under Quote folder [`e2467c2`](https://github.com/eea/volto-eea-design-system/commit/e2467c2089577d67ef5689a2507cb860a837f6a0)
|
|
108
|
+
- refactor(Quote):rename pullquote to Quote in Testimonial [`f54da19`](https://github.com/eea/volto-eea-design-system/commit/f54da192ab3b0823b0d6c77254f8954ab94506c8)
|
|
109
|
+
- refactor(Quote): rename Author to Source [`6d400f6`](https://github.com/eea/volto-eea-design-system/commit/6d400f6a0ec0062f58782b4e170f4a1a9a31c56c)
|
|
110
|
+
- refactor(Quote):rename Pullquote component to Quote [`9384a0c`](https://github.com/eea/volto-eea-design-system/commit/9384a0c129b8e4eed637e51a9669c41d8ade69d4)
|
|
111
|
+
- refactor(Testimonial): prettier changes [`904594b`](https://github.com/eea/volto-eea-design-system/commit/904594b9814c3d8900656f0e4c8d3a99481efe94)
|
|
112
|
+
- refactor(Testimonial): change card class name [`e995c32`](https://github.com/eea/volto-eea-design-system/commit/e995c32bc70780e4315c4dc02d6b6fa9a0c5b29d)
|
|
113
|
+
- refactor(Testimonial):minor storybook bug fix [`7b6d128`](https://github.com/eea/volto-eea-design-system/commit/7b6d128c6be3b2481d4765cebca82af6cafbea05)
|
|
114
|
+
- perf(lint): fix [`f2ef3ab`](https://github.com/eea/volto-eea-design-system/commit/f2ef3abb9daa8fee3dd103adc14246c412951427)
|
|
115
|
+
- refactor(testimonial): adjust to volto design | fix avatar image size [`546070e`](https://github.com/eea/volto-eea-design-system/commit/546070e494ad187c50913b5742dab49ce5475a84)
|
|
116
|
+
- fix(testimonial): remove info arguement [`9593d95`](https://github.com/eea/volto-eea-design-system/commit/9593d95f6352fb5aea48c3611b27b4bc6a9ae7e4)
|
|
117
|
+
- fix(testimonial): fix storybook arg names [`b9df52f`](https://github.com/eea/volto-eea-design-system/commit/b9df52f7151ef759fd672d365b2d74f6db535ad0)
|
|
118
|
+
|
|
7
119
|
#### [0.2.4](https://github.com/eea/volto-eea-design-system/compare/0.2.3...0.2.4)
|
|
8
120
|
|
|
121
|
+
> 13 May 2022
|
|
122
|
+
|
|
123
|
+
- Add storybook/docusaurus on PRs Refs #148775 [`#157`](https://github.com/eea/volto-eea-design-system/pull/157)
|
|
9
124
|
- Autobuild of docusaurus docs [`18c8b77`](https://github.com/eea/volto-eea-design-system/commit/18c8b77b6d0677f304a83965ed4d6849f75bc179)
|
|
10
125
|
- change(header): wrap header globalnav links useful for editing section [`10d4f56`](https://github.com/eea/volto-eea-design-system/commit/10d4f56624510eb63155ab330dcf0475b0728ed4)
|
|
11
126
|
- Autobuild of docusaurus docs [`5f4c47c`](https://github.com/eea/volto-eea-design-system/commit/5f4c47c93bf102fb198efc97e9f2cc60c162d0e3)
|
|
@@ -25,7 +140,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
25
140
|
- change(breakpoints): added also contentBreakpoint for backward compatibility [`b6c9212`](https://github.com/eea/volto-eea-design-system/commit/b6c9212378a37639e6154d8d8e837169bcbac8b5)
|
|
26
141
|
- Autobuild of docusaurus docs [`7928530`](https://github.com/eea/volto-eea-design-system/commit/792853064185f960f3f0a83a70b626b8bfc93d39)
|
|
27
142
|
- change(breakpoints): restore Semantic UI breakpoints, adding extra needed values [`e7f5b1e`](https://github.com/eea/volto-eea-design-system/commit/e7f5b1e4fac6453458078bb02cdc66c328843b59)
|
|
28
|
-
- Add storybook/docusaurus on PRs Refs #148775 [`0bab90a`](https://github.com/eea/volto-eea-design-system/commit/0bab90ad27d0ba27bd48399f1cab131a8bd88d58)
|
|
29
143
|
|
|
30
144
|
#### [0.2.3](https://github.com/eea/volto-eea-design-system/compare/0.2.2...0.2.3)
|
|
31
145
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-eea-design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "@eeacms/volto-eea-design-system: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@eeacms/volto-corsproxy": "*",
|
|
24
|
-
"remixicon": "2.5.0"
|
|
24
|
+
"remixicon": "2.5.0",
|
|
25
|
+
"react-slick": "^0.28.1"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@cypress/code-coverage": "^3.9.5",
|
package/src/semantic.less
CHANGED
|
@@ -127,8 +127,12 @@
|
|
|
127
127
|
// @import '~semantic-ui-less/definitions/views/feed';
|
|
128
128
|
//}
|
|
129
129
|
|
|
130
|
+
// & {
|
|
131
|
+
// @import '~semantic-ui-less/definitions/views/item';
|
|
132
|
+
// }
|
|
133
|
+
|
|
130
134
|
& {
|
|
131
|
-
@import '
|
|
135
|
+
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/definitions/views/item';
|
|
132
136
|
}
|
|
133
137
|
|
|
134
138
|
& {
|
|
@@ -202,11 +206,11 @@
|
|
|
202
206
|
|
|
203
207
|
// EEA Design custom components
|
|
204
208
|
& {
|
|
205
|
-
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/
|
|
209
|
+
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/callout';
|
|
206
210
|
}
|
|
207
211
|
|
|
208
212
|
& {
|
|
209
|
-
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/
|
|
213
|
+
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/quote';
|
|
210
214
|
}
|
|
211
215
|
|
|
212
216
|
& {
|
|
@@ -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
|
+
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Card, Image, Grid, Container } from 'semantic-ui-react';
|
|
2
|
+
import { Card, Image, Grid, Container, Icon, Button } from 'semantic-ui-react';
|
|
3
|
+
import Slider from 'react-slick';
|
|
4
|
+
|
|
5
|
+
const tabletBreakpoint = 835;
|
|
6
|
+
const mobileBreakpoint = 480;
|
|
3
7
|
|
|
4
8
|
export default {
|
|
5
9
|
title: 'Components/Card/Default',
|
|
@@ -21,6 +25,15 @@ export default {
|
|
|
21
25
|
defaultValue: { summary: 'null' },
|
|
22
26
|
},
|
|
23
27
|
},
|
|
28
|
+
cards: {
|
|
29
|
+
description: 'cards data',
|
|
30
|
+
table: {
|
|
31
|
+
type: {
|
|
32
|
+
summary: 'object',
|
|
33
|
+
},
|
|
34
|
+
defaultValue: { summary: '' },
|
|
35
|
+
},
|
|
36
|
+
},
|
|
24
37
|
},
|
|
25
38
|
};
|
|
26
39
|
|
|
@@ -105,12 +118,16 @@ Default.argTypes = {
|
|
|
105
118
|
},
|
|
106
119
|
},
|
|
107
120
|
};
|
|
121
|
+
Default.parameters = {
|
|
122
|
+
controls: { exclude: ['cards'] },
|
|
123
|
+
hideNoControlsWarning: true,
|
|
124
|
+
};
|
|
108
125
|
|
|
109
126
|
const GridTemplate = (args) => (
|
|
110
127
|
<Container>
|
|
111
128
|
<Grid>
|
|
112
|
-
{args.cards.map((card) => (
|
|
113
|
-
<Grid.Column mobile={12} tablet={6} computer={4}>
|
|
129
|
+
{args.cards.map((card, index) => (
|
|
130
|
+
<Grid.Column mobile={12} tablet={6} computer={4} key={index}>
|
|
114
131
|
<Card fluid={card.fluid} className={args.class}>
|
|
115
132
|
{card.hasImage && (
|
|
116
133
|
<Image src={card.imgUrl} wrapped ui={false} alt="card image" />
|
|
@@ -181,8 +198,8 @@ CardGrid.argTypes = {
|
|
|
181
198
|
const FluidGridTemplate = (args) => (
|
|
182
199
|
<Container>
|
|
183
200
|
<div className="fluid-card-row">
|
|
184
|
-
{args.cards.map((card) => (
|
|
185
|
-
<Card fluid={card.fluid} className={args.class}>
|
|
201
|
+
{args.cards.map((card, index) => (
|
|
202
|
+
<Card fluid={card.fluid} className={args.class} key={index}>
|
|
186
203
|
{card.hasImage && (
|
|
187
204
|
<Image src={card.imgUrl} wrapped ui={false} alt="card image" />
|
|
188
205
|
)}
|
|
@@ -247,3 +264,166 @@ CardGrid.argTypes = {
|
|
|
247
264
|
},
|
|
248
265
|
},
|
|
249
266
|
};
|
|
267
|
+
|
|
268
|
+
const Arrows = (props) => {
|
|
269
|
+
const { slider = {} } = props;
|
|
270
|
+
|
|
271
|
+
return (
|
|
272
|
+
<>
|
|
273
|
+
<Button
|
|
274
|
+
aria-label="Previous slide"
|
|
275
|
+
className="slider-arrow prev-arrow"
|
|
276
|
+
icon
|
|
277
|
+
onClick={() => {
|
|
278
|
+
if (slider.current) {
|
|
279
|
+
slider.current.slickPrev();
|
|
280
|
+
}
|
|
281
|
+
}}
|
|
282
|
+
>
|
|
283
|
+
<Icon className="ri-arrow-left-s-line" />
|
|
284
|
+
</Button>
|
|
285
|
+
<Button
|
|
286
|
+
aria-label="Next slide"
|
|
287
|
+
className="slider-arrow next-arrow"
|
|
288
|
+
icon
|
|
289
|
+
onClick={() => {
|
|
290
|
+
if (slider.current) {
|
|
291
|
+
slider.current.slickNext();
|
|
292
|
+
}
|
|
293
|
+
}}
|
|
294
|
+
>
|
|
295
|
+
<Icon className="ri-arrow-right-s-line" />
|
|
296
|
+
</Button>
|
|
297
|
+
</>
|
|
298
|
+
);
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
function CarouselCardsContent({ settings, cards, ...rest }) {
|
|
302
|
+
const slider = React.useRef(null);
|
|
303
|
+
return (
|
|
304
|
+
<div className="cards-carousel">
|
|
305
|
+
<Slider {...settings} ref={slider}>
|
|
306
|
+
{cards.map((card, index) => (
|
|
307
|
+
<Card fluid={card.fluid} key={index} className={rest.class}>
|
|
308
|
+
{card.hasImage && (
|
|
309
|
+
<Image src={card.imgUrl} wrapped ui={false} alt="card image" />
|
|
310
|
+
)}
|
|
311
|
+
<Card.Content>
|
|
312
|
+
<Card.Meta>{card.meta}</Card.Meta>
|
|
313
|
+
{/* <Card.Header>{card.title}</Card.Header> */}
|
|
314
|
+
<Card.Description>{card.description}</Card.Description>
|
|
315
|
+
</Card.Content>
|
|
316
|
+
{/* {card.links !== null &&
|
|
317
|
+
card.links.map((item, index) => (
|
|
318
|
+
<Card.Content extra key={index}>
|
|
319
|
+
<a href="/#">{item.linkName}</a>
|
|
320
|
+
</Card.Content>
|
|
321
|
+
))} */}
|
|
322
|
+
</Card>
|
|
323
|
+
))}
|
|
324
|
+
</Slider>
|
|
325
|
+
<Arrows slider={slider} />
|
|
326
|
+
</div>
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
const CarouselCardsTemplate = (args) => (
|
|
331
|
+
<Container>
|
|
332
|
+
<CarouselCardsContent {...args}></CarouselCardsContent>
|
|
333
|
+
</Container>
|
|
334
|
+
);
|
|
335
|
+
|
|
336
|
+
export const CarouselCards = CarouselCardsTemplate.bind({});
|
|
337
|
+
CarouselCards.args = {
|
|
338
|
+
title: 'Our news',
|
|
339
|
+
class: null,
|
|
340
|
+
settings: {
|
|
341
|
+
dots: true,
|
|
342
|
+
infinite: true,
|
|
343
|
+
slidesToShow: 4,
|
|
344
|
+
slidesToScroll: 1,
|
|
345
|
+
responsive: [
|
|
346
|
+
{
|
|
347
|
+
breakpoint: tabletBreakpoint,
|
|
348
|
+
settings: {
|
|
349
|
+
slidesToShow: 3,
|
|
350
|
+
slidesToScroll: 1,
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
breakpoint: mobileBreakpoint,
|
|
355
|
+
settings: {
|
|
356
|
+
slidesToShow: 1,
|
|
357
|
+
slidesToScroll: 1,
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
],
|
|
361
|
+
},
|
|
362
|
+
cards: [
|
|
363
|
+
{
|
|
364
|
+
meta: 'March 20, 2022.',
|
|
365
|
+
imgUrl:
|
|
366
|
+
'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
|
|
367
|
+
description:
|
|
368
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Non ',
|
|
369
|
+
hasImage: true,
|
|
370
|
+
fluid: true,
|
|
371
|
+
links: [{ linkName: 'Link 1' }],
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
title: 'Lorem Ipsum',
|
|
375
|
+
meta: 'March 20, 2022.',
|
|
376
|
+
imgUrl:
|
|
377
|
+
'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
|
|
378
|
+
description:
|
|
379
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Non ',
|
|
380
|
+
hasImage: true,
|
|
381
|
+
fluid: true,
|
|
382
|
+
links: [{ linkName: 'Link 1' }],
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
title: 'Lorem Ipsum',
|
|
386
|
+
meta: 'March 20, 2022.',
|
|
387
|
+
imgUrl:
|
|
388
|
+
'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
|
|
389
|
+
description:
|
|
390
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Non ',
|
|
391
|
+
hasImage: true,
|
|
392
|
+
fluid: true,
|
|
393
|
+
links: [{ linkName: 'Link 1' }],
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
title: 'Lorem Ipsum',
|
|
397
|
+
meta: 'March 20, 2022.',
|
|
398
|
+
imgUrl:
|
|
399
|
+
'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
|
|
400
|
+
description:
|
|
401
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Non ',
|
|
402
|
+
hasImage: true,
|
|
403
|
+
fluid: true,
|
|
404
|
+
links: [{ linkName: 'Link 1' }],
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
title: 'Lorem Ipsum',
|
|
408
|
+
meta: 'March 20, 2022.',
|
|
409
|
+
imgUrl:
|
|
410
|
+
'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
|
|
411
|
+
description:
|
|
412
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Non ',
|
|
413
|
+
hasImage: true,
|
|
414
|
+
fluid: true,
|
|
415
|
+
links: [{ linkName: 'Link 1' }],
|
|
416
|
+
},
|
|
417
|
+
],
|
|
418
|
+
};
|
|
419
|
+
CarouselCards.argTypes = {
|
|
420
|
+
settings: {
|
|
421
|
+
description: 'carousel slider settings',
|
|
422
|
+
table: {
|
|
423
|
+
type: {
|
|
424
|
+
summary: 'object',
|
|
425
|
+
},
|
|
426
|
+
defaultValue: { summary: '' },
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
};
|
|
@@ -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.Extra = ({ children, ...rest }) => (
|
|
40
|
+
<p className="info" {...rest}>
|
|
41
41
|
{children}
|
|
42
42
|
</p>
|
|
43
43
|
);
|
|
44
|
-
export default
|
|
44
|
+
export default Quote;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Quote from './Quote';
|
|
3
|
+
import { Container } from 'semantic-ui-react';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Components/Quote',
|
|
7
|
+
component: Quote,
|
|
8
|
+
argTypes: {
|
|
9
|
+
quote: {
|
|
10
|
+
description: 'Quote content',
|
|
11
|
+
type: { name: 'string' },
|
|
12
|
+
table: {
|
|
13
|
+
defaultValue: { summary: '""' },
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
source: {
|
|
17
|
+
description: 'source of quote',
|
|
18
|
+
type: { name: 'string' },
|
|
19
|
+
table: {
|
|
20
|
+
defaultValue: { summary: '""' },
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
extra: {
|
|
24
|
+
description: 'Extra info',
|
|
25
|
+
type: { name: 'string' },
|
|
26
|
+
table: {
|
|
27
|
+
defaultValue: { summary: '""' },
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
quotePosition: {
|
|
31
|
+
control: {
|
|
32
|
+
type: 'inline-radio',
|
|
33
|
+
options: ['left', 'right', 'none', 'inherit'],
|
|
34
|
+
},
|
|
35
|
+
description: 'direction that quote floats to',
|
|
36
|
+
type: { name: 'string' },
|
|
37
|
+
table: {
|
|
38
|
+
defaultValue: { summary: '""' },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const content =
|
|
45
|
+
'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.';
|
|
46
|
+
|
|
47
|
+
export const Default = (args) => (
|
|
48
|
+
<Container>
|
|
49
|
+
<p>{content}</p>
|
|
50
|
+
<Quote quotePosition={args.quotePosition}>
|
|
51
|
+
<Quote.Quote>{args.quote}</Quote.Quote>
|
|
52
|
+
<Quote.Source>{args.source}</Quote.Source>
|
|
53
|
+
<Quote.Extra>{args.extra}</Quote.Extra>
|
|
54
|
+
</Quote>
|
|
55
|
+
<p>{content}</p>
|
|
56
|
+
<p>{content}</p>
|
|
57
|
+
<p>{content}</p>
|
|
58
|
+
<p>{content}</p>
|
|
59
|
+
<p>{content}</p>
|
|
60
|
+
</Container>
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
Default.args = {
|
|
64
|
+
quote:
|
|
65
|
+
'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.',
|
|
66
|
+
source: 'Arthur Abbott',
|
|
67
|
+
extra: 'EEA Analyst',
|
|
68
|
+
quotePosition: 'left',
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const Reversed = (args) => (
|
|
72
|
+
<Container>
|
|
73
|
+
<p>{content}</p>
|
|
74
|
+
<Quote quotePosition={args.quotePosition}>
|
|
75
|
+
<Quote.Source>{args.source}</Quote.Source>
|
|
76
|
+
<Quote.Extra>{args.extra}</Quote.Extra>
|
|
77
|
+
<Quote.Quote>{args.quote}</Quote.Quote>
|
|
78
|
+
</Quote>
|
|
79
|
+
<p>{content}</p>
|
|
80
|
+
<p>{content}</p>
|
|
81
|
+
<p>{content}</p>
|
|
82
|
+
<p>{content}</p>
|
|
83
|
+
<p>{content}</p>
|
|
84
|
+
</Container>
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
Reversed.args = {
|
|
88
|
+
quote:
|
|
89
|
+
'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.',
|
|
90
|
+
source: 'Arthur Abbott',
|
|
91
|
+
extra: 'EEA Analyst',
|
|
92
|
+
quotePosition: 'left',
|
|
93
|
+
};
|
|
@@ -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;
|