@eeacms/volto-eea-design-system 1.0.3 → 1.0.4
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 +13 -16
- package/package.json +1 -1
- package/src/ui/Banner/Banner.stories.jsx +10 -2
- package/src/ui/Copyright/Copyright.jsx +9 -0
- package/src/ui/Copyright/Copyright.stories.jsx +6 -5
- package/src/ui/Hero/Hero.jsx +2 -1
- package/src/ui/Hero/Hero.stories.jsx +18 -3
- package/theme/theme.config +1 -0
- package/theme/themes/eea/extras/copyright.less +0 -1
- package/theme/themes/eea/extras/copyright.variables +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ 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
|
+
### [1.0.4](https://github.com/eea/volto-eea-design-system/compare/1.0.3...1.0.4) - 27 March 2023
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat(copyright): Add copyright prefix - Image - refs #250724 [Alin Voinea - [`6a72772`](https://github.com/eea/volto-eea-design-system/commit/6a727723c15aee499ed7cedc9f364c5e2c8014bb)]
|
|
12
|
+
|
|
13
|
+
#### :house: Internal changes
|
|
14
|
+
|
|
15
|
+
- style(copyright): Cleanup useless min-height - refs #250724 [Alin Voinea - [`f2457df`](https://github.com/eea/volto-eea-design-system/commit/f2457df6376ac1a4d00f87eee90e61f66f7ffebb)]
|
|
16
|
+
|
|
17
|
+
#### :hammer_and_wrench: Others
|
|
18
|
+
|
|
19
|
+
- Back to dev [Alin Voinea - [`cfd6eba`](https://github.com/eea/volto-eea-design-system/commit/cfd6eba8b01eceff4e28ab7ab51b2457672ac172)]
|
|
7
20
|
### [1.0.3](https://github.com/eea/volto-eea-design-system/compare/1.0.2...1.0.3) - 24 March 2023
|
|
8
21
|
|
|
9
22
|
#### :bug: Bug Fixes
|
|
@@ -125,7 +138,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
125
138
|
|
|
126
139
|
- Release 1.0.0-beta.5 [Alin Voinea - [`e4417e1`](https://github.com/eea/volto-eea-design-system/commit/e4417e121477511c350ae3fbe4e70aadb445ed86)]
|
|
127
140
|
- better useOnScreen hook [Andrei Grigore - [`c214b6b`](https://github.com/eea/volto-eea-design-system/commit/c214b6b76443f81c795ce2f3aa457562ec088b30)]
|
|
128
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b227cf8`](https://github.com/eea/volto-eea-design-system/commit/b227cf8a8c44b9d91e9fda8a7999fb0a42bacdca)]
|
|
129
141
|
- feature(mobile): increased performance by lazy loading footer images #303 from eea/increase_performance [ichim-david - [`80d1df1`](https://github.com/eea/volto-eea-design-system/commit/80d1df1c459680331d486f9e8e6a95c9db0adbf6)]
|
|
130
142
|
- prettier [David Ichim - [`a7f8384`](https://github.com/eea/volto-eea-design-system/commit/a7f838470c1bcc4e2be115d514d92a1b686a5e9b)]
|
|
131
143
|
- fixed less build failure due to changes in footer.less [David Ichim - [`190bc8c`](https://github.com/eea/volto-eea-design-system/commit/190bc8cfa88191b45808f1e27c6e2737ee3d15b1)]
|
|
@@ -196,7 +208,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
196
208
|
|
|
197
209
|
#### :house: Internal changes
|
|
198
210
|
|
|
199
|
-
- chore(docusaurus): ignore website/.yarn [Giorgos Stamatis - [`0b33ffd`](https://github.com/eea/volto-eea-design-system/commit/0b33ffd1dda61b126e3cc5ff48888124d6aee41b)]
|
|
200
211
|
- style(header): react syntax fix [Antonis Tarantilis - [`3add127`](https://github.com/eea/volto-eea-design-system/commit/3add1271c785a92bea0ef925d7bc562cef1e0d92)]
|
|
201
212
|
|
|
202
213
|
#### :house: Documentation changes
|
|
@@ -393,7 +404,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
393
404
|
|
|
394
405
|
- Release 1.0.0-alpha.10 [Alin Voinea - [`7014d08`](https://github.com/eea/volto-eea-design-system/commit/7014d080ce114bd0bc039abeecbd7229333b0971)]
|
|
395
406
|
- Add variable definitions [kreafox - [`293fe65`](https://github.com/eea/volto-eea-design-system/commit/293fe65e2f24e6290e1286229169a77f9be4750e)]
|
|
396
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`ef58a6f`](https://github.com/eea/volto-eea-design-system/commit/ef58a6f5ad8deea26b1395a86778fe1159b7617b)]
|
|
397
407
|
- Back to dev [Alin Voinea - [`31d4616`](https://github.com/eea/volto-eea-design-system/commit/31d461662b9184a7bbe190e86f3c47fab39229fe)]
|
|
398
408
|
### [1.0.0-alpha.9](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.8...1.0.0-alpha.9) - 28 December 2022
|
|
399
409
|
|
|
@@ -451,7 +461,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
451
461
|
- bump package version [David Ichim - [`b4628be`](https://github.com/eea/volto-eea-design-system/commit/b4628bed134abc76e38a243d4e98143e19cef989)]
|
|
452
462
|
- feature(docusaurus, storybook): logos selection for sites plus inverted options #253 from eea/doc-logo-page [ichim-david - [`dbfc90d`](https://github.com/eea/volto-eea-design-system/commit/dbfc90d035dc40e9d4054347f00fde4de486d63d)]
|
|
453
463
|
- (feat): Add ability to disable the language select from website top menu - refs #158616 [dobri1408 - [`411c8e4`](https://github.com/eea/volto-eea-design-system/commit/411c8e4afaf0b2b9edfdeeecdca22aa4cc41f329)]
|
|
454
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`c4769e9`](https://github.com/eea/volto-eea-design-system/commit/c4769e987d525f5dcafac8e6cf8a89fd8111667d)]
|
|
455
464
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`92feea0`](https://github.com/eea/volto-eea-design-system/commit/92feea09796c9ef0530f65fa1d34139905133215)]
|
|
456
465
|
- Proof reading page header section [ichim-david - [`230239e`](https://github.com/eea/volto-eea-design-system/commit/230239e1b22734fb8606656985bc5e513731e244)]
|
|
457
466
|
### [1.0.0-alpha.7](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.6...1.0.0-alpha.7) - 16 December 2022
|
|
@@ -483,7 +492,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
483
492
|
#### :hammer_and_wrench: Others
|
|
484
493
|
|
|
485
494
|
- Release 1.0.0-alpha.7 [Alin Voinea - [`7e66bcc`](https://github.com/eea/volto-eea-design-system/commit/7e66bcc296b389bc55073e7f99681534977dce3a)]
|
|
486
|
-
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`ce47e9b`](https://github.com/eea/volto-eea-design-system/commit/ce47e9b163bcb4eda988e3a87718b54ffbd3f99f)]
|
|
487
495
|
- added back descriptionDistance variable until package release [David Ichim - [`3af811a`](https://github.com/eea/volto-eea-design-system/commit/3af811a8d86a132e16de118697ba5a4302a8a4da)]
|
|
488
496
|
- Back to dev [Alin Voinea - [`cb531c9`](https://github.com/eea/volto-eea-design-system/commit/cb531c933c907bdbb88c9de0f1df2eb7ce899a4c)]
|
|
489
497
|
- Proper paths if the package is not installed, but in development [Tiberiu Ichim - [`7a2655f`](https://github.com/eea/volto-eea-design-system/commit/7a2655f7cf9d3c687f172eefcf2b4cff4b12f832)]
|
|
@@ -571,7 +579,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
571
579
|
#### :hammer_and_wrench: Others
|
|
572
580
|
|
|
573
581
|
- feature(Docusaurus): Updates on color palette information including thematic websites #231 from eea/refactor-docusaurus [ichim-david - [`ec7843d`](https://github.com/eea/volto-eea-design-system/commit/ec7843dea07f626dc1c71ae1baa8bb5b0caa52f3)]
|
|
574
|
-
- Upgrade Jenkinsfile storybook to yarn 3 [Alin Voinea - [`d20de8d`](https://github.com/eea/volto-eea-design-system/commit/d20de8d6e21a14660b7b5125a80218a8a6f19e62)]
|
|
575
582
|
- Back to dev [Alin Voinea - [`563fbc5`](https://github.com/eea/volto-eea-design-system/commit/563fbc5fac0d4b0295690d0a3a4e04271753f18a)]
|
|
576
583
|
- perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
|
|
577
584
|
### [1.0.0-alpha.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.3...1.0.0-alpha.4) - 22 November 2022
|
|
@@ -664,7 +671,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
664
671
|
- modified left value of full width classes with toolbars [David Ichim - [`70d82d4`](https://github.com/eea/volto-eea-design-system/commit/70d82d47fbc2c00a3a709de0d5c087c8443a1eae)]
|
|
665
672
|
- WIP settings column grid width when using full size class [David Ichim - [`affc7ac`](https://github.com/eea/volto-eea-design-system/commit/affc7ac99527aa92d5a192d90dc8c9ec46a66404)]
|
|
666
673
|
- fix eslint [Miu Razvan - [`30c52e4`](https://github.com/eea/volto-eea-design-system/commit/30c52e4eb443555ca44c1b35df064e73d52c0a8b)]
|
|
667
|
-
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`76a41c7`](https://github.com/eea/volto-eea-design-system/commit/76a41c786995fd54afe4d1c345de939f683ffa70)]
|
|
668
674
|
- fix broken variable call for contentBox.variables introduced in previous commit by mistake [David Ichim - [`d249c11`](https://github.com/eea/volto-eea-design-system/commit/d249c1160d19bedb174a2fde3fdab48d9ce297d4)]
|
|
669
675
|
- clean up [Miu Razvan - [`89f3cb3`](https://github.com/eea/volto-eea-design-system/commit/89f3cb33d70a14806a953f0acd1807e94169ee5c)]
|
|
670
676
|
- Feature(container): flexible container size #260 from eea/feature-flexible-container [ichim-david - [`8f84c5b`](https://github.com/eea/volto-eea-design-system/commit/8f84c5b67afe9cbe01b2a44a8f92a9a554e1036a)]
|
|
@@ -766,7 +772,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
766
772
|
|
|
767
773
|
#### :nail_care: Enhancements
|
|
768
774
|
|
|
769
|
-
- change(jenkins): added yarn policy for storybook building [ichim-david - [`3d1b844`](https://github.com/eea/volto-eea-design-system/commit/3d1b844efeea40b99c00c9aa97089e0a0be58a57)]
|
|
770
775
|
- change(docusaurus): typography updates [ichim-david - [`60a93a4`](https://github.com/eea/volto-eea-design-system/commit/60a93a4aece4e478ae13c2dfe697fd3703aa178a)]
|
|
771
776
|
- change(accordion): allow customization of accordion title with css variables [David Ichim - [`15e7d27`](https://github.com/eea/volto-eea-design-system/commit/15e7d27f02c640df582f51a51ef36e645723f842)]
|
|
772
777
|
- change(content-box): added css variables that will set text color and background for children [David Ichim - [`86cac53`](https://github.com/eea/volto-eea-design-system/commit/86cac531cc94386b6022e1be80dba826b39f2443)]
|
|
@@ -801,7 +806,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
801
806
|
#### :hammer_and_wrench: Others
|
|
802
807
|
|
|
803
808
|
- Merge pull request #243 from eea/develop [ichim-david - [`576564c`](https://github.com/eea/volto-eea-design-system/commit/576564ce395ee6ac9e74bcb19d5c4f0b4cd3c33b)]
|
|
804
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`4a5be6e`](https://github.com/eea/volto-eea-design-system/commit/4a5be6eec78dae230626e61ea2c77e7f3c62510d)]
|
|
805
809
|
- Back to dev [Alin Voinea - [`b251255`](https://github.com/eea/volto-eea-design-system/commit/b251255a7ed14d8290717726d86eaf54b87aa2d4)]
|
|
806
810
|
### [0.9.0](https://github.com/eea/volto-eea-design-system/compare/0.8.1...0.9.0) - 19 September 2022
|
|
807
811
|
|
|
@@ -1557,10 +1561,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1557
1561
|
#### :hammer_and_wrench: Others
|
|
1558
1562
|
|
|
1559
1563
|
- prettier changes [David Ichim - [`134da52`](https://github.com/eea/volto-eea-design-system/commit/134da52549b9d5eac5a12b7ad3005073500ac2c4)]
|
|
1560
|
-
- [JENKINSFILE] remove debug, add error per stage [valentinab25 - [`903eecd`](https://github.com/eea/volto-eea-design-system/commit/903eecdb6bcbb8d73cff5e447d80c85e2a2c906d)]
|
|
1561
|
-
- [JENKINSFILE] mention comment author in comment [valentinab25 - [`39a26aa`](https://github.com/eea/volto-eea-design-system/commit/39a26aa1ff0f35e93e8df9f442c29c5ab79ff493)]
|
|
1562
|
-
- [JENKINSFILE] format PR comments [valentinab25 - [`739438c`](https://github.com/eea/volto-eea-design-system/commit/739438c64950c745d630d1998314a2bed595b23a)]
|
|
1563
|
-
- [JENKINSFILE] Add failure comment, no jenkins fail [valentinab25 - [`c325bf1`](https://github.com/eea/volto-eea-design-system/commit/c325bf14f3fb0da150f2a56cda0a9f03d8d8a628)]
|
|
1564
1564
|
### [0.2.3](https://github.com/eea/volto-eea-design-system/compare/0.2.2...0.2.3) - 29 April 2022
|
|
1565
1565
|
|
|
1566
1566
|
#### :rocket: New Features
|
|
@@ -1985,7 +1985,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1985
1985
|
- set profile section overflow to auto [nileshgulia1 - [`71ab47f`](https://github.com/eea/volto-eea-design-system/commit/71ab47f89a433233c14b394c3824e607dd18a393)]
|
|
1986
1986
|
- remove segment custom width [nileshgulia1 - [`1d3ea40`](https://github.com/eea/volto-eea-design-system/commit/1d3ea40f98bbdc1eab95b4da739a659b5e29ec16)]
|
|
1987
1987
|
- fix profile section css overflow [nileshgulia1 - [`db5126f`](https://github.com/eea/volto-eea-design-system/commit/db5126fc902e191d1e18fb7e4c54877c8d8786e6)]
|
|
1988
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`647a6e3`](https://github.com/eea/volto-eea-design-system/commit/647a6e3e2093f2c4884c356eb148453551c8f33f)]
|
|
1989
1988
|
- fix warning related to proptype [nileshgulia1 - [`946c6c6`](https://github.com/eea/volto-eea-design-system/commit/946c6c6bc9dece0985ae4b9f9cad6ece2be0ff2c)]
|
|
1990
1989
|
- removed override already present in card.less [ichim-david - [`50d2ab2`](https://github.com/eea/volto-eea-design-system/commit/50d2ab26f85c8f409da02ec128cc1df34848ca69)]
|
|
1991
1990
|
- update [Miu Razvan - [`bbcab87`](https://github.com/eea/volto-eea-design-system/commit/bbcab87ef4c8475f347f0daf4ab7e428e69c2316)]
|
|
@@ -2072,7 +2071,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2072
2071
|
- remove segment custom width [nileshgulia1 - [`4a60d84`](https://github.com/eea/volto-eea-design-system/commit/4a60d84d5fe76578b7760aa1dad6eef9a20916a7)]
|
|
2073
2072
|
- Reformat header.less [Tiberiu Ichim - [`1f99dfc`](https://github.com/eea/volto-eea-design-system/commit/1f99dfc82c165304ca5600ce5138c1233615ab69)]
|
|
2074
2073
|
- fix profile section css overflow [nileshgulia1 - [`8fd2654`](https://github.com/eea/volto-eea-design-system/commit/8fd265413149f1b5e033dffa0fbcb5ef5ecad15f)]
|
|
2075
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6051724`](https://github.com/eea/volto-eea-design-system/commit/6051724437a38675e659c797bb5586ef81286ec0)]
|
|
2076
2074
|
- fix warning related to proptype [nileshgulia1 - [`824b9be`](https://github.com/eea/volto-eea-design-system/commit/824b9beff77aae139882cd50a1d670a02ec6f723)]
|
|
2077
2075
|
- refactor breadcrumbs component, make it functional and customizable [nileshgulia1 - [`4ec374e`](https://github.com/eea/volto-eea-design-system/commit/4ec374e20565eb0a5aed0ff67a02cd6f77eba1f0)]
|
|
2078
2076
|
- removed override already present in card.less [ichim-david - [`93c4e5a`](https://github.com/eea/volto-eea-design-system/commit/93c4e5aac9cc85ff2cc6c04180f6655d5f5616dc)]
|
|
@@ -2641,7 +2639,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2641
2639
|
- Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`3af46d2`](https://github.com/eea/volto-eea-design-system/commit/3af46d2b14fa0b1ef44736f25b0f9ac93b23d18d)]
|
|
2642
2640
|
- Refs #140454 updated eea-design-system readme with extra info on package contents [David Ichim - [`d2efc3d`](https://github.com/eea/volto-eea-design-system/commit/d2efc3ddae7b91efc82cf3bce8fb8e42d696a780)]
|
|
2643
2641
|
- Refs #140454 add h1 to the list of elements that are max 800px and centered [David Ichim - [`7d3c30f`](https://github.com/eea/volto-eea-design-system/commit/7d3c30f409aa4cb43810839f8960589456cc1b2e)]
|
|
2644
|
-
- Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`8d657d0`](https://github.com/eea/volto-eea-design-system/commit/8d657d056cde5163cfe90ac66bc973f55d82e5e9)]
|
|
2645
2642
|
### [0.1.0](https://github.com/eea/volto-eea-design-system/compare/0.0.1...0.1.0) - 17 November 2021
|
|
2646
2643
|
|
|
2647
2644
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -52,6 +52,13 @@ export default {
|
|
|
52
52
|
type: { summary: 'string' },
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
|
+
copyrightPrefix: {
|
|
56
|
+
table: {
|
|
57
|
+
category: 'Copyright',
|
|
58
|
+
defaultValue: { summary: '' },
|
|
59
|
+
type: { summary: 'string' },
|
|
60
|
+
},
|
|
61
|
+
},
|
|
55
62
|
copyrightIcon: {
|
|
56
63
|
table: {
|
|
57
64
|
category: 'Copyright',
|
|
@@ -60,7 +67,6 @@ export default {
|
|
|
60
67
|
},
|
|
61
68
|
},
|
|
62
69
|
copyrightPosition: {
|
|
63
|
-
name: 'Position',
|
|
64
70
|
control: {
|
|
65
71
|
type: 'inline-radio',
|
|
66
72
|
options: ['left', 'right'],
|
|
@@ -141,6 +147,7 @@ const Template = (args) => {
|
|
|
141
147
|
</Banner.Metadata>
|
|
142
148
|
)}
|
|
143
149
|
<Copyright copyrightPosition={args.copyrightPosition}>
|
|
150
|
+
<Copyright.Prefix>{args.copyrightPrefix}</Copyright.Prefix>
|
|
144
151
|
<Copyright.Icon>
|
|
145
152
|
<Icon className={args.copyrightIcon} />
|
|
146
153
|
</Copyright.Icon>
|
|
@@ -164,7 +171,8 @@ Default.args = {
|
|
|
164
171
|
image: true,
|
|
165
172
|
hideShareButton: false,
|
|
166
173
|
hideDownloadButton: false,
|
|
174
|
+
copyrightPrefix: 'Image',
|
|
167
175
|
copyrightPosition: 'left',
|
|
168
176
|
copyrightIcon: 'ri-copyright-line',
|
|
169
|
-
copyright: '
|
|
177
|
+
copyright: 'John Smith, Well with Nature /EEA',
|
|
170
178
|
};
|
|
@@ -13,6 +13,15 @@ function Copyright({ children, ...rest }) {
|
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
Copyright.Prefix = ({ children, ...rest }) =>
|
|
17
|
+
children ? (
|
|
18
|
+
<span {...rest} className={'icon-prefix'}>
|
|
19
|
+
{children}
|
|
20
|
+
</span>
|
|
21
|
+
) : (
|
|
22
|
+
''
|
|
23
|
+
);
|
|
24
|
+
|
|
16
25
|
Copyright.Icon = ({ children, ...rest }) => (
|
|
17
26
|
<span {...rest} className={'icon-wrapper'}>
|
|
18
27
|
{children}
|
|
@@ -7,7 +7,6 @@ export default {
|
|
|
7
7
|
component: Copyright,
|
|
8
8
|
argTypes: {
|
|
9
9
|
copyrightPosition: {
|
|
10
|
-
name: 'Position',
|
|
11
10
|
control: {
|
|
12
11
|
type: 'inline-radio',
|
|
13
12
|
options: ['left', 'right'],
|
|
@@ -24,10 +23,11 @@ export const Default = (args) => (
|
|
|
24
23
|
<Container>
|
|
25
24
|
<Segment className={'inverted'}>
|
|
26
25
|
<Copyright copyrightPosition={args.copyrightPosition}>
|
|
26
|
+
<Copyright.Prefix>{args.copyrightPrefix}</Copyright.Prefix>
|
|
27
27
|
<Copyright.Icon>
|
|
28
|
-
<Icon className={args.
|
|
28
|
+
<Icon className={args.copyrightIcon} />
|
|
29
29
|
</Copyright.Icon>
|
|
30
|
-
<Copyright.Text>{args.
|
|
30
|
+
<Copyright.Text>{args.copyright}</Copyright.Text>
|
|
31
31
|
</Copyright>
|
|
32
32
|
</Segment>
|
|
33
33
|
</Container>
|
|
@@ -35,6 +35,7 @@ export const Default = (args) => (
|
|
|
35
35
|
|
|
36
36
|
Default.args = {
|
|
37
37
|
copyrightPosition: 'left',
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
copyrightPrefix: 'Image',
|
|
39
|
+
copyrightIcon: 'ri-copyright-line',
|
|
40
|
+
copyright: 'John Smith, Well with Nature /EEA',
|
|
40
41
|
};
|
package/src/ui/Hero/Hero.jsx
CHANGED
|
@@ -24,9 +24,9 @@ function Hero({
|
|
|
24
24
|
alignContent,
|
|
25
25
|
backgroundVariant,
|
|
26
26
|
children,
|
|
27
|
-
|
|
28
27
|
has_copyright,
|
|
29
28
|
copyright,
|
|
29
|
+
copyrightPrefix,
|
|
30
30
|
copyrightIcon,
|
|
31
31
|
copyrightPosition,
|
|
32
32
|
}) {
|
|
@@ -49,6 +49,7 @@ function Hero({
|
|
|
49
49
|
|
|
50
50
|
{has_copyright && (
|
|
51
51
|
<Copyright copyrightPosition={copyrightPosition}>
|
|
52
|
+
<Copyright.Prefix>{copyrightPrefix}</Copyright.Prefix>
|
|
52
53
|
<Copyright.Icon>
|
|
53
54
|
<Icon className={copyrightIcon} />
|
|
54
55
|
</Copyright.Icon>
|
|
@@ -63,7 +63,6 @@ export default {
|
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
65
|
copyrightPosition: {
|
|
66
|
-
name: 'Position',
|
|
67
66
|
control: {
|
|
68
67
|
type: 'inline-radio',
|
|
69
68
|
options: ['left', 'right'],
|
|
@@ -74,6 +73,13 @@ export default {
|
|
|
74
73
|
defaultValue: { summary: '"left"' },
|
|
75
74
|
},
|
|
76
75
|
},
|
|
76
|
+
copyrightPrefix: {
|
|
77
|
+
table: {
|
|
78
|
+
category: 'Copyright',
|
|
79
|
+
defaultValue: { summary: '""' },
|
|
80
|
+
type: { summary: 'string' },
|
|
81
|
+
},
|
|
82
|
+
},
|
|
77
83
|
copyrightIcon: {
|
|
78
84
|
table: {
|
|
79
85
|
category: 'Copyright',
|
|
@@ -130,8 +136,9 @@ Default.args = {
|
|
|
130
136
|
|
|
131
137
|
has_copyright: true,
|
|
132
138
|
copyrightPosition: 'left',
|
|
139
|
+
copyrightPrefix: 'Image',
|
|
133
140
|
copyrightIcon: 'ri-copyright-line',
|
|
134
|
-
copyright: '
|
|
141
|
+
copyright: 'John Smith, Well with Nature /EEA',
|
|
135
142
|
};
|
|
136
143
|
Default.parameters = {
|
|
137
144
|
controls: {
|
|
@@ -167,8 +174,9 @@ Playground.args = {
|
|
|
167
174
|
|
|
168
175
|
has_copyright: true,
|
|
169
176
|
copyrightPosition: 'left',
|
|
177
|
+
copyrightPrefix: 'Image',
|
|
170
178
|
copyrightIcon: 'ri-copyright-line',
|
|
171
|
-
copyright: '
|
|
179
|
+
copyright: 'John Smith, Well with Nature /EEA',
|
|
172
180
|
};
|
|
173
181
|
Playground.argTypes = {
|
|
174
182
|
fullWidth: {
|
|
@@ -253,6 +261,13 @@ Playground.argTypes = {
|
|
|
253
261
|
type: { summary: 'string' },
|
|
254
262
|
},
|
|
255
263
|
},
|
|
264
|
+
copyrightPrefix: {
|
|
265
|
+
table: {
|
|
266
|
+
category: 'Copyright',
|
|
267
|
+
defaultValue: { summary: '""' },
|
|
268
|
+
type: { summary: 'string' },
|
|
269
|
+
},
|
|
270
|
+
},
|
|
256
271
|
copyrightIcon: {
|
|
257
272
|
table: {
|
|
258
273
|
category: 'Copyright',
|
package/theme/theme.config
CHANGED
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
@copyrightWrapperPaddingLeft: @rem-space-3;
|
|
13
13
|
@copyrightWrapperPaddingRight: @rem-space-3;
|
|
14
14
|
@copyrightWrapperBottom: @rem-space-4;
|
|
15
|
-
@
|
|
16
|
-
@copyrightAlignItems: center;
|
|
15
|
+
@copyrightAlignItems: start;
|
|
17
16
|
|
|
18
17
|
/* Image block */
|
|
19
18
|
@floatImageLeftMaxWidth: 50%;
|