@eeacms/volto-tabs-block 5.0.8 → 5.1.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 +26 -21
- package/README.md +16 -17
- package/docker-compose.yml +5 -1
- package/locales/es/LC_MESSAGES/volto.po +410 -0
- package/locales/pt_BR/LC_MESSAGES/volto.po +415 -0
- package/locales/volto.pot +396 -1
- package/package.json +1 -1
- package/src/components/Edit.jsx +1 -0
- package/src/components/schema.js +79 -14
- package/src/components/templates/accordion/schema.js +59 -12
- package/src/components/templates/carousel/schema.js +36 -7
- package/src/components/templates/default/schema.js +226 -45
- package/src/components/templates/horizontal-responsive/Edit.jsx +1 -1
- package/src/components/templates/horizontal-responsive/View.jsx +2 -2
- package/src/components/templates/horizontal-responsive/schema.js +225 -44
- package/src/index.js +18 -0
package/src/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl';
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
DefaultEdit,
|
|
3
5
|
DefaultView,
|
|
@@ -22,6 +24,17 @@ import tabsSVG from '@eeacms/volto-tabs-block//icons/tabs.svg';
|
|
|
22
24
|
import rightSVG from '@plone/volto/icons/right-key.svg';
|
|
23
25
|
import downSVG from '@plone/volto/icons/down-key.svg';
|
|
24
26
|
|
|
27
|
+
defineMessages({
|
|
28
|
+
default: {
|
|
29
|
+
id: 'Default',
|
|
30
|
+
defaultMessage: 'Default',
|
|
31
|
+
},
|
|
32
|
+
accordion: {
|
|
33
|
+
id: 'Accordion responsive',
|
|
34
|
+
defaultMessage: 'Accordion responsive',
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
|
|
25
38
|
export default (config) => {
|
|
26
39
|
config.blocks.blocksConfig[TABS_BLOCK] = {
|
|
27
40
|
id: TABS_BLOCK,
|
|
@@ -41,12 +54,14 @@ export default (config) => {
|
|
|
41
54
|
schema: layoutSchema(config),
|
|
42
55
|
templates: {
|
|
43
56
|
default: {
|
|
57
|
+
id: 'default',
|
|
44
58
|
title: 'Default',
|
|
45
59
|
edit: DefaultEdit,
|
|
46
60
|
view: DefaultView,
|
|
47
61
|
schema: defaultSchema,
|
|
48
62
|
},
|
|
49
63
|
accordion: {
|
|
64
|
+
id: 'accordionResponsive',
|
|
50
65
|
title: 'Accordion responsive',
|
|
51
66
|
edit: AccordionEdit,
|
|
52
67
|
view: AccordionView,
|
|
@@ -59,18 +74,21 @@ export default (config) => {
|
|
|
59
74
|
},
|
|
60
75
|
},
|
|
61
76
|
'horizontal-responsive': {
|
|
77
|
+
id: 'horizontalResponsive',
|
|
62
78
|
title: 'Horizontal responsive',
|
|
63
79
|
edit: HorizontalResponsiveEdit,
|
|
64
80
|
view: HorizontalResponsiveView,
|
|
65
81
|
schema: horizontalResponsiveSchema,
|
|
66
82
|
},
|
|
67
83
|
carousel: {
|
|
84
|
+
id: 'carouselHorizontal',
|
|
68
85
|
title: 'Carousel horizontal',
|
|
69
86
|
edit: DefaultEdit,
|
|
70
87
|
view: HorizontalCarouselView,
|
|
71
88
|
schema: carouselSchema,
|
|
72
89
|
},
|
|
73
90
|
carousel_vertical: {
|
|
91
|
+
id: 'carouselVerticalPrototype',
|
|
74
92
|
title: 'Carousel vertical (prototype)',
|
|
75
93
|
edit: DefaultEdit,
|
|
76
94
|
view: VerticalCarouselView,
|