@eeacms/volto-cca-policy 0.1.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/.coverage.babel.config.js +9 -0
- package/.i18n.babel.config.js +1 -0
- package/.project.eslintrc.js +48 -0
- package/.release-it.json +17 -0
- package/CHANGELOG.md +30 -0
- package/DEVELOP.md +52 -0
- package/LICENSE.md +9 -0
- package/README.md +85 -0
- package/RELEASE.md +74 -0
- package/babel.config.js +17 -0
- package/bootstrap +41 -0
- package/cypress.config.js +26 -0
- package/jest-addon.config.js +36 -0
- package/locales/volto.pot +0 -0
- package/package.json +51 -0
- package/src/components/index.js +1 -0
- package/src/components/manage/Blocks/ContextNavigation/ContextNavigationEdit.jsx +31 -0
- package/src/components/manage/Blocks/ContextNavigation/ContextNavigationView.jsx +17 -0
- package/src/components/manage/Blocks/ContextNavigation/index.js +26 -0
- package/src/components/manage/Blocks/ContextNavigation/schema.js +81 -0
- package/src/components/manage/Blocks/LayoutSettings/LayoutSettingsEdit.jsx +32 -0
- package/src/components/manage/Blocks/LayoutSettings/LayoutSettingsView.jsx +15 -0
- package/src/components/manage/Blocks/LayoutSettings/edit.less +4 -0
- package/src/components/manage/Blocks/LayoutSettings/index.js +24 -0
- package/src/components/manage/Blocks/LayoutSettings/schema.js +32 -0
- package/src/components/manage/Blocks/Title/Edit.jsx +226 -0
- package/src/components/manage/Blocks/Title/View.jsx +35 -0
- package/src/components/manage/Blocks/Title/index.js +13 -0
- package/src/components/manage/Blocks/Title/schema.js +80 -0
- package/src/components/manage/Blocks/schema-utils.js +16 -0
- package/src/components/manage/Blocks/schema.js +52 -0
- package/src/components/theme/Banner/Banner.jsx +99 -0
- package/src/components/theme/Banner/View.jsx +241 -0
- package/src/components/theme/Banner/styles.less +20 -0
- package/src/components/theme/CustomCSS/CustomCSS.jsx +12 -0
- package/src/components/theme/DraftBackground/DraftBackground.jsx +16 -0
- package/src/components/theme/DraftBackground/draft.css +3 -0
- package/src/components/theme/DraftBackground/draft.png +0 -0
- package/src/components/theme/Homepage/HomePageInverseView.jsx +60 -0
- package/src/components/theme/Homepage/HomePageView.jsx +60 -0
- package/src/components/theme/Logo.jsx +34 -0
- package/src/components/theme/SubsiteClass.jsx +23 -0
- package/src/components/theme/Widgets/TokenWidget.jsx +16 -0
- package/src/config.js +307 -0
- package/src/customizations/@eeacms/volto-block-style/StyleWrapper/schema.js +44 -0
- package/src/customizations/@eeacms/volto-eea-design-system/ui/Header/HeaderSearchPopUp.js +80 -0
- package/src/customizations/@eeacms/volto-tabs-block/components/templates/default/schema.js +109 -0
- package/src/customizations/@eeacms/volto-tabs-block/components/templates/horizontal-responsive/schema.js +109 -0
- package/src/customizations/volto/components/manage/Form/Form.jsx +784 -0
- package/src/customizations/volto/components/manage/Form/ModalForm.jsx +326 -0
- package/src/customizations/volto/components/manage/Sharing/Sharing.jsx +495 -0
- package/src/customizations/volto/components/manage/Widgets/ObjectBrowserWidget.jsx +436 -0
- package/src/customizations/volto/components/theme/Breadcrumbs/Breadcrumbs.jsx +62 -0
- package/src/customizations/volto/components/theme/Comments/Comments.jsx +487 -0
- package/src/customizations/volto/components/theme/Footer/Footer.jsx +90 -0
- package/src/customizations/volto/components/theme/Header/Header.jsx +258 -0
- package/src/customizations/volto/components/theme/Tags/Tags.jsx +53 -0
- package/src/customizations/volto/components/theme/Unauthorized/Unauthorized.jsx +91 -0
- package/src/customizations/volto/components/theme/View/EventView.jsx +90 -0
- package/src/helpers/index.js +44 -0
- package/src/icons/content-box.svg +5 -0
- package/src/icons/image-narrow.svg +5 -0
- package/src/index.js +13 -0
- package/src/middleware/voltoCustom.js +37 -0
- package/src/policy.js +136 -0
package/src/config.js
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import biseLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/bise.svg';
|
|
2
|
+
import energyLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/energy.svg';
|
|
3
|
+
import insituLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/insitu.svg';
|
|
4
|
+
import freshwaterLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/freshwater.svg';
|
|
5
|
+
import fiseLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/fise.svg';
|
|
6
|
+
import ccaLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/cca.svg';
|
|
7
|
+
import copernicusLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/copernicus.svg';
|
|
8
|
+
import industryLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/industry.svg';
|
|
9
|
+
import marineLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/marine.svg';
|
|
10
|
+
import eionetLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/eionet.svg';
|
|
11
|
+
import eeaLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/Header/eea-logo.svg';
|
|
12
|
+
import eeaWhiteLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/eea-white.svg';
|
|
13
|
+
import climateLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/climate-health.svg';
|
|
14
|
+
|
|
15
|
+
// TODO: to be consolidated with headerLinks
|
|
16
|
+
// Footer.jsx config options
|
|
17
|
+
export const footerOpts = {
|
|
18
|
+
header: 'Thematic information platforms',
|
|
19
|
+
logosHeader: 'Managed by',
|
|
20
|
+
contactHeader: 'Contact Us',
|
|
21
|
+
actions: [
|
|
22
|
+
{
|
|
23
|
+
title: 'Privacy',
|
|
24
|
+
link: '/privacy',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
link: '/sitemap',
|
|
28
|
+
title: 'Sitemap',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
link: '/login',
|
|
32
|
+
title: 'CMS Login',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
copyright: [
|
|
36
|
+
{
|
|
37
|
+
link: '/copyright',
|
|
38
|
+
site: 'EEA',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
sites: [
|
|
42
|
+
{
|
|
43
|
+
link: 'https://water.europa.eu/marine',
|
|
44
|
+
src: marineLogo,
|
|
45
|
+
alt: 'WISE marine',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
link: 'https://water.europa.eu/freshwater',
|
|
49
|
+
src: freshwaterLogo,
|
|
50
|
+
alt: 'WISE freshwater',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
link: 'https://biodiversity.europa.eu/',
|
|
54
|
+
src: biseLogo,
|
|
55
|
+
alt: 'Biodiversity',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
link: 'https://forest.eea.europa.eu/',
|
|
59
|
+
src: fiseLogo,
|
|
60
|
+
alt: 'Forest information system for europe',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
link: 'https://climate-adapt.eea.europa.eu/observatory',
|
|
64
|
+
src: climateLogo,
|
|
65
|
+
alt: 'European Climate and Health Observatory',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
link: 'https://climate-adapt.eea.europa.eu/',
|
|
69
|
+
src: ccaLogo,
|
|
70
|
+
alt: 'Climate adapt',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
link: 'https://industry.eea.europa.eu/',
|
|
74
|
+
src: industryLogo,
|
|
75
|
+
alt: 'European industrial emissions portal',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
link: 'https://climate-energy.eea.europa.eu/',
|
|
79
|
+
src: energyLogo,
|
|
80
|
+
alt: 'Climate and energy in the EU',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
link: 'https://land.copernicus.eu/',
|
|
84
|
+
src: copernicusLogo,
|
|
85
|
+
alt: 'Copernicus land monitoring service',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
link: 'https://insitu.copernicus.eu/',
|
|
89
|
+
src: insituLogo,
|
|
90
|
+
alt: 'Copernicus in situ',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
managedBy: [
|
|
94
|
+
{
|
|
95
|
+
link: 'https://www.eea.europa.eu/',
|
|
96
|
+
src: eeaWhiteLogo,
|
|
97
|
+
alt: 'EEA Logo',
|
|
98
|
+
className: 'site logo',
|
|
99
|
+
columnSize: {
|
|
100
|
+
mobile: 6,
|
|
101
|
+
tablet: 12,
|
|
102
|
+
computer: 4,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
link: 'https://www.eionet.europa.eu/',
|
|
107
|
+
src: eionetLogo,
|
|
108
|
+
alt: 'EIONET Logo',
|
|
109
|
+
className: 'eionet logo',
|
|
110
|
+
columnSize: {
|
|
111
|
+
mobile: 6,
|
|
112
|
+
tablet: 12,
|
|
113
|
+
computer: 4,
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
social: [
|
|
118
|
+
{
|
|
119
|
+
name: 'twitter',
|
|
120
|
+
icon: 'ri-twitter-fill',
|
|
121
|
+
link: 'https://twitter.com/euenvironment',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'facebook',
|
|
125
|
+
icon: 'ri-facebook-box-fill',
|
|
126
|
+
link: 'https://www.facebook.com/European.Environment.Agency',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'linkedin',
|
|
130
|
+
icon: 'ri-linkedin-fill',
|
|
131
|
+
link: 'https://www.linkedin.com/company/european-environment-agency',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'youtube',
|
|
135
|
+
icon: 'ri-youtube-fill',
|
|
136
|
+
link: 'https://www.youtube.com/user/EEAvideos',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'instagram',
|
|
140
|
+
icon: 'ri-instagram-fill',
|
|
141
|
+
link: 'https://www.instagram.com/ourplanet_eu',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'rss',
|
|
145
|
+
icon: 'ri-rss-fill',
|
|
146
|
+
link: '/subscription/news-feeds',
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
contacts: [
|
|
150
|
+
{
|
|
151
|
+
icon: 'comment outline',
|
|
152
|
+
text: 'About us',
|
|
153
|
+
link: '/about',
|
|
154
|
+
children: [
|
|
155
|
+
{
|
|
156
|
+
link: '/faq',
|
|
157
|
+
text: 'FAQs',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
link: '/careers',
|
|
161
|
+
text: 'Careers',
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
icon: 'comment outline',
|
|
167
|
+
text: 'Contact us',
|
|
168
|
+
link: '/contact-us',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
icon: 'envelope outline',
|
|
172
|
+
text: 'Sign up to our newsletter',
|
|
173
|
+
link: '/newsletter',
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
address: 'Kongens Nytorv 6 1050 Copenhagen K (+45) 33 36 71 00',
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
// Header.jsx config options
|
|
180
|
+
export const headerOpts = {
|
|
181
|
+
logo: eeaLogo,
|
|
182
|
+
logoWhite: eeaWhiteLogo,
|
|
183
|
+
partnerLinks: {
|
|
184
|
+
title: 'Environmental information systems',
|
|
185
|
+
links: [
|
|
186
|
+
{
|
|
187
|
+
title: 'Biodiversity Information System for Europe',
|
|
188
|
+
href: 'https://biodiversity.europa.eu/',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
title: 'Climate Adaptation Platform',
|
|
192
|
+
href: 'https://climate-adapt.eea.europa.eu/',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
title: 'Copernicus in situ component',
|
|
196
|
+
href: 'https://insitu.copernicus.eu/',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
title: 'European Industrial Emissions Portal',
|
|
200
|
+
href: 'https://industry.eea.europa.eu/',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
title: 'Forest Information System for Europe',
|
|
204
|
+
href: 'https://forest.eea.europa.eu/',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
title: 'Information Platform for Chemical Monitoring',
|
|
208
|
+
href: 'https://ipchem.jrc.ec.europa.eu/RDSIdiscovery/ipchem/index.html',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
title: 'Marine Water Information System for Europe',
|
|
212
|
+
href: 'https://water.europa.eu/marine',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
title: 'Fresh Water Information System for Europe',
|
|
216
|
+
href: 'https://water.europa.eu/freshwater',
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
export const languages = [
|
|
223
|
+
{ name: 'Български', code: 'bg' },
|
|
224
|
+
{ name: 'čeština', code: 'cs' },
|
|
225
|
+
{ name: 'Hrvatski', code: 'hr' },
|
|
226
|
+
{ name: 'dansk', code: 'da' },
|
|
227
|
+
{ name: 'Nederlands', code: 'nl' },
|
|
228
|
+
{ name: 'ελληνικά', code: 'el' },
|
|
229
|
+
{ name: 'English', code: 'en' },
|
|
230
|
+
{ name: 'eesti', code: 'et' },
|
|
231
|
+
{ name: 'Suomi', code: 'fi' },
|
|
232
|
+
{ name: 'Français', code: 'fr' },
|
|
233
|
+
{ name: 'Deutsch', code: 'de' },
|
|
234
|
+
{ name: 'magyar', code: 'hu' },
|
|
235
|
+
{ name: 'Íslenska', code: 'is' },
|
|
236
|
+
{ name: 'italiano', code: 'it' },
|
|
237
|
+
{ name: 'Latviešu', code: 'lv' },
|
|
238
|
+
{ name: 'lietuvių', code: 'lt' },
|
|
239
|
+
{ name: 'Malti', code: 'mt' },
|
|
240
|
+
{ name: 'Norsk', code: 'no' },
|
|
241
|
+
{ name: 'polski', code: 'pl' },
|
|
242
|
+
{ name: 'Português', code: 'pt' },
|
|
243
|
+
{ name: 'Română', code: 'ro' },
|
|
244
|
+
{ name: 'slovenčina', code: 'sk' },
|
|
245
|
+
{ name: 'Slovenščina', code: 'sl' },
|
|
246
|
+
{ name: 'Español', code: 'es' },
|
|
247
|
+
{ name: 'Svenska', code: 'sv' },
|
|
248
|
+
{ name: 'Türkçe', code: 'tr' },
|
|
249
|
+
];
|
|
250
|
+
|
|
251
|
+
export const defaultLanguage = 'en';
|
|
252
|
+
|
|
253
|
+
export const websiteTitle = 'Site';
|
|
254
|
+
export const organisationName = 'European Environment Agency';
|
|
255
|
+
export const logoTargetUrl = '/';
|
|
256
|
+
|
|
257
|
+
export const headerSearchBox = [
|
|
258
|
+
{
|
|
259
|
+
isDefault: true,
|
|
260
|
+
path: '/en/advanced-search',
|
|
261
|
+
placeholder: 'Search...',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
path: '/en/datahub',
|
|
265
|
+
placeholder: 'Search Datahub...',
|
|
266
|
+
description:
|
|
267
|
+
'Looking for more information? Try searching the full EEA website content',
|
|
268
|
+
buttonTitle: 'Go to full site search',
|
|
269
|
+
},
|
|
270
|
+
];
|
|
271
|
+
|
|
272
|
+
export const colors = [
|
|
273
|
+
// Primary & shades
|
|
274
|
+
'#007B6C',
|
|
275
|
+
'#005248',
|
|
276
|
+
'#007B6C',
|
|
277
|
+
'#00A390',
|
|
278
|
+
'#00CCB4',
|
|
279
|
+
'#00F5D8',
|
|
280
|
+
'#85FFF1',
|
|
281
|
+
'#C8FFF8',
|
|
282
|
+
// Secondary & shades
|
|
283
|
+
'#004B7F',
|
|
284
|
+
'#003052',
|
|
285
|
+
'#004B7F',
|
|
286
|
+
'#006BB8',
|
|
287
|
+
'#0083E0',
|
|
288
|
+
'#0A99FF',
|
|
289
|
+
'#47B3FF',
|
|
290
|
+
'#A0D7FF',
|
|
291
|
+
// Tertiary & shades
|
|
292
|
+
'#2E3E4C',
|
|
293
|
+
'#3D5265',
|
|
294
|
+
'#4C677F',
|
|
295
|
+
'#6989A5',
|
|
296
|
+
'#8EA6C2',
|
|
297
|
+
'#ACCAE5',
|
|
298
|
+
'#DAE8F4',
|
|
299
|
+
// Black & White shades
|
|
300
|
+
'#000000',
|
|
301
|
+
'#323232',
|
|
302
|
+
'#67696b',
|
|
303
|
+
'#BCBEC0',
|
|
304
|
+
'#E6E7E8',
|
|
305
|
+
'#F9F9F9',
|
|
306
|
+
'#FFFFFF',
|
|
307
|
+
];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const StyleSchema = () => {
|
|
2
|
+
return {
|
|
3
|
+
title: 'Styles',
|
|
4
|
+
fieldsets: [
|
|
5
|
+
{
|
|
6
|
+
id: 'default',
|
|
7
|
+
title: 'Default',
|
|
8
|
+
fields: [],
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
id: 'presets',
|
|
12
|
+
title: 'Preset styles',
|
|
13
|
+
fields: ['style_name'],
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: 'text',
|
|
17
|
+
title: 'Text',
|
|
18
|
+
fields: ['textAlign', 'fontWeight'],
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
properties: {
|
|
22
|
+
style_name: {
|
|
23
|
+
title: 'Style',
|
|
24
|
+
widget: 'style_select',
|
|
25
|
+
},
|
|
26
|
+
textAlign: {
|
|
27
|
+
title: 'Text align',
|
|
28
|
+
widget: 'style_text_align',
|
|
29
|
+
},
|
|
30
|
+
fontWeight: {
|
|
31
|
+
title: 'Font weight',
|
|
32
|
+
description: 'The weight (or boldness) of the font',
|
|
33
|
+
choices: [
|
|
34
|
+
['300', 'Light'],
|
|
35
|
+
['400', 'Regular'],
|
|
36
|
+
['500', 'Medium'],
|
|
37
|
+
['600', 'SemiBold'],
|
|
38
|
+
['700', 'Bold'],
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
required: [],
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Container, Input } from 'semantic-ui-react';
|
|
3
|
+
import { withRouter } from 'react-router-dom';
|
|
4
|
+
import { useClickOutside } from '@eeacms/volto-eea-design-system/helpers';
|
|
5
|
+
import config from '@plone/volto/registry';
|
|
6
|
+
|
|
7
|
+
function HeaderSearchPopUp({
|
|
8
|
+
history,
|
|
9
|
+
location,
|
|
10
|
+
onClose,
|
|
11
|
+
searchInputRef,
|
|
12
|
+
triggerRefs = [],
|
|
13
|
+
}) {
|
|
14
|
+
const nodeRef = React.useRef();
|
|
15
|
+
const { eea } = config.settings;
|
|
16
|
+
const defaultView = eea.headerSearchBox.filter((v) => v.isDefault);
|
|
17
|
+
const localView = eea.headerSearchBox.filter((v) =>
|
|
18
|
+
location.pathname.includes(v.path),
|
|
19
|
+
);
|
|
20
|
+
const activeView = localView.length > 0 ? localView[0] : defaultView[0];
|
|
21
|
+
|
|
22
|
+
const [text, setText] = React.useState('');
|
|
23
|
+
|
|
24
|
+
useClickOutside({ targetRefs: [nodeRef, ...triggerRefs], callback: onClose });
|
|
25
|
+
|
|
26
|
+
const onChangeText = (event, { value }) => {
|
|
27
|
+
setText(value);
|
|
28
|
+
event.preventDefault();
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const onSubmit = (event) => {
|
|
32
|
+
history.push(`${activeView.path}?q=${text}`);
|
|
33
|
+
|
|
34
|
+
if (window?.searchContext?.resetSearch) {
|
|
35
|
+
window.searchContext.resetSearch({ searchTerm: text });
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
onClose();
|
|
39
|
+
event.preventDefault();
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<div id="search-box" ref={nodeRef}>
|
|
44
|
+
<form method="get" onSubmit={onSubmit}>
|
|
45
|
+
<Container>
|
|
46
|
+
<div className="wrapper">
|
|
47
|
+
<Input
|
|
48
|
+
ref={searchInputRef}
|
|
49
|
+
className="search"
|
|
50
|
+
onChange={onChangeText}
|
|
51
|
+
icon={{
|
|
52
|
+
className: 'ri-search-line',
|
|
53
|
+
link: true,
|
|
54
|
+
onClick: onSubmit,
|
|
55
|
+
}}
|
|
56
|
+
placeholder={activeView.placeholder}
|
|
57
|
+
fluid
|
|
58
|
+
/>
|
|
59
|
+
</div>
|
|
60
|
+
</Container>
|
|
61
|
+
</form>
|
|
62
|
+
{(activeView.description || activeView.buttonTitle) && (
|
|
63
|
+
<div className="advanced-search">
|
|
64
|
+
<Container>
|
|
65
|
+
<p>{activeView.description}</p>
|
|
66
|
+
<a
|
|
67
|
+
href={defaultView[0].path}
|
|
68
|
+
className="ui button white inverted"
|
|
69
|
+
title="Advanced search"
|
|
70
|
+
>
|
|
71
|
+
{activeView.buttonTitle}
|
|
72
|
+
</a>
|
|
73
|
+
</Container>
|
|
74
|
+
</div>
|
|
75
|
+
)}
|
|
76
|
+
</div>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export default withRouter(HeaderSearchPopUp);
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export default () => ({
|
|
2
|
+
title: 'Default tabs block',
|
|
3
|
+
fieldsets: [
|
|
4
|
+
{
|
|
5
|
+
id: 'default',
|
|
6
|
+
title: 'Default',
|
|
7
|
+
fields: ['description'],
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
id: 'menu',
|
|
11
|
+
title: 'Menu',
|
|
12
|
+
fields: ['menuAlign', 'menuPosition', 'menuColor', 'menuInverted'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
properties: {
|
|
16
|
+
description: {
|
|
17
|
+
title: 'Description',
|
|
18
|
+
},
|
|
19
|
+
menuPosition: {
|
|
20
|
+
title: 'Position',
|
|
21
|
+
choices: [
|
|
22
|
+
['top', 'Top'],
|
|
23
|
+
['bottom', 'Bottom'],
|
|
24
|
+
['left side', 'Left side'],
|
|
25
|
+
['right side', 'Right side'],
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
menuAlign: {
|
|
29
|
+
title: 'Alignment',
|
|
30
|
+
type: 'array',
|
|
31
|
+
choices: [
|
|
32
|
+
['left', 'Left'],
|
|
33
|
+
['center', 'Center'],
|
|
34
|
+
['right', 'Right'],
|
|
35
|
+
['space-between', 'Space between'],
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
menuSize: {
|
|
39
|
+
title: 'Size',
|
|
40
|
+
choices: [
|
|
41
|
+
['mini', 'Mini'],
|
|
42
|
+
['tiny', 'Tiny'],
|
|
43
|
+
['small', 'Small'],
|
|
44
|
+
['large', 'Large'],
|
|
45
|
+
['huge', 'Huge'],
|
|
46
|
+
['massive', 'Masive'],
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
menuColor: {
|
|
50
|
+
title: 'Color',
|
|
51
|
+
defaultValue: 'green',
|
|
52
|
+
choices: [
|
|
53
|
+
['red', 'Red'],
|
|
54
|
+
['orange', 'Orange'],
|
|
55
|
+
['yellow', 'Yellow'],
|
|
56
|
+
['olive', 'Olive'],
|
|
57
|
+
['green', 'Green'],
|
|
58
|
+
['teal', 'Teal'],
|
|
59
|
+
['blue', 'Blue'],
|
|
60
|
+
['violet', 'Violet'],
|
|
61
|
+
['purple', 'Purple'],
|
|
62
|
+
['pink', 'Pink'],
|
|
63
|
+
['brown', 'Brown'],
|
|
64
|
+
['grey', 'Grey'],
|
|
65
|
+
['black', 'Black'],
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
menuBorderless: {
|
|
69
|
+
title: 'Borderless',
|
|
70
|
+
type: 'boolean',
|
|
71
|
+
},
|
|
72
|
+
menuCompact: {
|
|
73
|
+
title: 'Compact',
|
|
74
|
+
type: 'boolean',
|
|
75
|
+
},
|
|
76
|
+
menuFluid: {
|
|
77
|
+
title: 'Fluid',
|
|
78
|
+
type: 'boolean',
|
|
79
|
+
value: true,
|
|
80
|
+
},
|
|
81
|
+
menuInverted: {
|
|
82
|
+
title: 'Inverted',
|
|
83
|
+
type: 'boolean',
|
|
84
|
+
},
|
|
85
|
+
menuPointing: {
|
|
86
|
+
title: 'Pointing',
|
|
87
|
+
type: 'boolean',
|
|
88
|
+
value: true,
|
|
89
|
+
},
|
|
90
|
+
menuSecondary: {
|
|
91
|
+
title: 'Secondary',
|
|
92
|
+
type: 'boolean',
|
|
93
|
+
value: true,
|
|
94
|
+
},
|
|
95
|
+
menuStackable: {
|
|
96
|
+
title: 'Stackable',
|
|
97
|
+
type: 'boolean',
|
|
98
|
+
},
|
|
99
|
+
menuTabular: {
|
|
100
|
+
title: 'Tabular',
|
|
101
|
+
type: 'boolean',
|
|
102
|
+
},
|
|
103
|
+
menuText: {
|
|
104
|
+
title: 'Text',
|
|
105
|
+
type: 'boolean',
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
required: [],
|
|
109
|
+
});
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export default () => ({
|
|
2
|
+
title: 'Default tabs block',
|
|
3
|
+
fieldsets: [
|
|
4
|
+
{
|
|
5
|
+
id: 'default',
|
|
6
|
+
title: 'Default',
|
|
7
|
+
fields: ['description'],
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
id: 'menu',
|
|
11
|
+
title: 'Menu',
|
|
12
|
+
fields: ['menuAlign', 'menuPosition', 'menuColor', 'menuInverted'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
properties: {
|
|
16
|
+
description: {
|
|
17
|
+
title: 'Description',
|
|
18
|
+
},
|
|
19
|
+
menuPosition: {
|
|
20
|
+
title: 'Position',
|
|
21
|
+
choices: [
|
|
22
|
+
['top', 'Top'],
|
|
23
|
+
['bottom', 'Bottom'],
|
|
24
|
+
['left side', 'Left side'],
|
|
25
|
+
['right side', 'Right side'],
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
menuAlign: {
|
|
29
|
+
title: 'Alignment',
|
|
30
|
+
type: 'array',
|
|
31
|
+
choices: [
|
|
32
|
+
['left', 'Left'],
|
|
33
|
+
['center', 'Center'],
|
|
34
|
+
['right', 'Right'],
|
|
35
|
+
['space-between', 'Space between'],
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
menuSize: {
|
|
39
|
+
title: 'Size',
|
|
40
|
+
choices: [
|
|
41
|
+
['mini', 'Mini'],
|
|
42
|
+
['tiny', 'Tiny'],
|
|
43
|
+
['small', 'Small'],
|
|
44
|
+
['large', 'Large'],
|
|
45
|
+
['huge', 'Huge'],
|
|
46
|
+
['massive', 'Masive'],
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
menuColor: {
|
|
50
|
+
title: 'Color',
|
|
51
|
+
defaultValue: 'green',
|
|
52
|
+
choices: [
|
|
53
|
+
['red', 'Red'],
|
|
54
|
+
['orange', 'Orange'],
|
|
55
|
+
['yellow', 'Yellow'],
|
|
56
|
+
['olive', 'Olive'],
|
|
57
|
+
['green', 'Green'],
|
|
58
|
+
['teal', 'Teal'],
|
|
59
|
+
['blue', 'Blue'],
|
|
60
|
+
['violet', 'Violet'],
|
|
61
|
+
['purple', 'Purple'],
|
|
62
|
+
['pink', 'Pink'],
|
|
63
|
+
['brown', 'Brown'],
|
|
64
|
+
['grey', 'Grey'],
|
|
65
|
+
['black', 'Black'],
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
menuBorderless: {
|
|
69
|
+
title: 'Borderless',
|
|
70
|
+
type: 'boolean',
|
|
71
|
+
},
|
|
72
|
+
menuCompact: {
|
|
73
|
+
title: 'Compact',
|
|
74
|
+
type: 'boolean',
|
|
75
|
+
},
|
|
76
|
+
menuFluid: {
|
|
77
|
+
title: 'Fluid',
|
|
78
|
+
type: 'boolean',
|
|
79
|
+
value: true,
|
|
80
|
+
},
|
|
81
|
+
menuInverted: {
|
|
82
|
+
title: 'Inverted',
|
|
83
|
+
type: 'boolean',
|
|
84
|
+
},
|
|
85
|
+
menuPointing: {
|
|
86
|
+
title: 'Pointing',
|
|
87
|
+
type: 'boolean',
|
|
88
|
+
value: true,
|
|
89
|
+
},
|
|
90
|
+
menuSecondary: {
|
|
91
|
+
title: 'Secondary',
|
|
92
|
+
type: 'boolean',
|
|
93
|
+
value: true,
|
|
94
|
+
},
|
|
95
|
+
menuStackable: {
|
|
96
|
+
title: 'Stackable',
|
|
97
|
+
type: 'boolean',
|
|
98
|
+
},
|
|
99
|
+
menuTabular: {
|
|
100
|
+
title: 'Tabular',
|
|
101
|
+
type: 'boolean',
|
|
102
|
+
},
|
|
103
|
+
menuText: {
|
|
104
|
+
title: 'Text',
|
|
105
|
+
type: 'boolean',
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
required: [],
|
|
109
|
+
});
|