@kitconcept/volto-light-theme 5.0.0 → 6.0.0-alpha.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.
Files changed (112) hide show
  1. package/.changelog.draft +26 -10
  2. package/CHANGELOG.md +44 -0
  3. package/README.md +7 -367
  4. package/package.json +23 -10
  5. package/razzle.extend.js +38 -0
  6. package/src/components/Anontools/Anontools.jsx +1 -1
  7. package/src/components/Blocks/Button/schema.js +25 -5
  8. package/src/components/Blocks/EventMetadata/View.jsx +8 -7
  9. package/src/components/Blocks/Image/Edit.jsx +4 -6
  10. package/src/components/Blocks/Image/ImageSidebar.jsx +4 -2
  11. package/src/components/Blocks/Image/View.jsx +3 -6
  12. package/src/components/Blocks/Image/schema.js +37 -6
  13. package/src/components/Blocks/Listing/DefaultTemplate.jsx +3 -2
  14. package/src/components/Blocks/Listing/GridTemplate.jsx +4 -2
  15. package/src/components/Blocks/Listing/ImageGallery.jsx +2 -2
  16. package/src/components/Blocks/Listing/SummaryTemplate.jsx +3 -2
  17. package/src/components/Blocks/Search/components/SearchInput.jsx +1 -1
  18. package/src/components/Blocks/Separator/schema.js +59 -0
  19. package/src/components/Blocks/Slider/DefaultBody.jsx +4 -2
  20. package/src/components/Blocks/Teaser/schema.js +21 -1
  21. package/src/components/Blocks/schema.js +16 -15
  22. package/src/components/Breadcrumbs/Breadcrumbs.jsx +4 -3
  23. package/src/components/Footer/Footer.jsx +77 -27
  24. package/src/components/Header/Header.jsx +37 -30
  25. package/src/components/LanguageSelector/{LanguageSelector.js → LanguageSelector.jsx} +11 -7
  26. package/src/components/Logo/Logo.jsx +28 -22
  27. package/src/components/MobileNavigation/MobileNavigation.jsx +3 -2
  28. package/src/components/MobileNavigation/MobileToolsFooter.jsx +1 -1
  29. package/src/components/Navigation/Navigation.jsx +4 -3
  30. package/src/components/SearchWidget/IntranetSearchWidget.jsx +1 -1
  31. package/src/components/SearchWidget/SearchWidget.jsx +1 -1
  32. package/src/components/Theme/EventView.jsx +3 -2
  33. package/src/components/Theme/FileView.jsx +1 -1
  34. package/src/components/Theme/NewsItemView.jsx +1 -1
  35. package/src/components/Theming/Theming.tsx +52 -0
  36. package/src/components/Widgets/AlignWidget.jsx +2 -2
  37. package/src/components/Widgets/BackgroundColorWidget.tsx +18 -0
  38. package/src/components/Widgets/BlockAlignmentWidget.tsx +81 -0
  39. package/src/components/Widgets/BlockWidthWidget.tsx +94 -0
  40. package/src/components/Widgets/BlocksObjectWidget.tsx +333 -0
  41. package/src/components/Widgets/ButtonsWidget.tsx +68 -0
  42. package/src/components/Widgets/ColorPickerWidget.tsx +60 -0
  43. package/src/components/Widgets/FooterLinksWidget.tsx +106 -0
  44. package/src/components/Widgets/FooterLogosWidget.tsx +120 -0
  45. package/src/components/Widgets/ThemingColorPicker.tsx +33 -0
  46. package/src/config/blocks.tsx +352 -0
  47. package/src/config/classExtenders.ts +101 -0
  48. package/src/config/settings.ts +35 -0
  49. package/src/config/slots.ts +12 -0
  50. package/src/config/widgets.ts +31 -0
  51. package/src/customizations/volto/components/theme/View/RenderBlocks.jsx +97 -80
  52. package/src/customizations/volto/components/theme/View/RenderBlocks.test.jsx +16 -48
  53. package/src/helpers/helpers.test.ts +51 -0
  54. package/src/helpers/helpers.ts +48 -0
  55. package/src/index.ts +54 -0
  56. package/src/theme/_bgcolor-blocks-layout.scss +1127 -20
  57. package/src/theme/_footer.scss +8 -5
  58. package/src/theme/_header.scss +3 -8
  59. package/src/theme/_layout.scss +24 -7
  60. package/src/theme/_typo-custom.scss +1 -1
  61. package/src/theme/_variables.scss +95 -12
  62. package/src/theme/_widgets.scss +102 -0
  63. package/src/theme/blocks/_accordion.scss +2 -4
  64. package/src/theme/blocks/_button.scss +32 -31
  65. package/src/theme/blocks/_eventMetadata.scss +7 -0
  66. package/src/theme/blocks/_grid.scss +11 -36
  67. package/src/theme/blocks/_highlight.scss +1 -0
  68. package/src/theme/blocks/_image.scss +38 -17
  69. package/src/theme/blocks/_introduction.scss +16 -0
  70. package/src/theme/blocks/_listing.scss +1 -6
  71. package/src/theme/blocks/_search.scss +1 -23
  72. package/src/theme/blocks/_separator.scss +17 -20
  73. package/src/theme/blocks/_slider.scss +57 -56
  74. package/src/theme/blocks/_teaser.scss +3 -3
  75. package/src/theme/main.scss +1 -0
  76. package/src/transforms/to6.ts +94 -0
  77. package/tsconfig.json +33 -0
  78. package/.release-it.json +0 -31
  79. package/babel.config.js +0 -17
  80. package/build/messages/src/components/Anontools/Anontools.json +0 -10
  81. package/build/messages/src/components/Blocks/Button/schema.json +0 -6
  82. package/build/messages/src/components/Blocks/EventMetadata/View.json +0 -30
  83. package/build/messages/src/components/Blocks/Image/Edit.json +0 -10
  84. package/build/messages/src/components/Blocks/Image/ImageSidebar.json +0 -18
  85. package/build/messages/src/components/Blocks/Image/schema.json +0 -10
  86. package/build/messages/src/components/Blocks/Listing/ListingBody.json +0 -26
  87. package/build/messages/src/components/Blocks/Search/TopSideFacets.json +0 -10
  88. package/build/messages/src/components/Blocks/Search/components/SearchDetails.json +0 -10
  89. package/build/messages/src/components/Blocks/Search/components/SearchInput.json +0 -6
  90. package/build/messages/src/components/Blocks/Slider/DefaultBody.json +0 -18
  91. package/build/messages/src/components/Blocks/Slider/schema.json +0 -14
  92. package/build/messages/src/components/Blocks/schema.json +0 -6
  93. package/build/messages/src/components/Breadcrumbs/Breadcrumbs.json +0 -10
  94. package/build/messages/src/components/Footer/Footer.json +0 -30
  95. package/build/messages/src/components/Header/Header.json +0 -6
  96. package/build/messages/src/components/LanguageSelector/LanguageSelector.json +0 -6
  97. package/build/messages/src/components/Logo/Logo.json +0 -10
  98. package/build/messages/src/components/MobileNavigation/MobileNavigation.json +0 -26
  99. package/build/messages/src/components/Navigation/Navigation.json +0 -10
  100. package/build/messages/src/components/SearchWidget/IntranetSearchWidget.json +0 -14
  101. package/build/messages/src/components/SearchWidget/SearchWidget.json +0 -10
  102. package/build/messages/src/components/Theme/EventView.json +0 -6
  103. package/build/messages/src/components/Widgets/AlignWidget.json +0 -22
  104. package/build/messages/src/index.json +0 -10
  105. package/news/.gitkeep +0 -0
  106. package/src/components/Atoms/Container/Container.jsx +0 -32
  107. package/src/components/Atoms/README.md +0 -1
  108. package/src/components/Atoms/helpers.jsx +0 -9
  109. package/src/components/CQPolyfill.jsx +0 -9
  110. package/src/index.js +0 -367
  111. package/towncrier.toml +0 -33
  112. /package/src/components/Blocks/Slate/{ExtraAlignWrapper.js → ExtraAlignWrapper.jsx} +0 -0
@@ -1,18 +0,0 @@
1
- [
2
- {
3
- "id": "Image",
4
- "defaultMessage": "Image"
5
- },
6
- {
7
- "id": "No image selected",
8
- "defaultMessage": "No image selected"
9
- },
10
- {
11
- "id": "image_block_preview",
12
- "defaultMessage": "Image preview"
13
- },
14
- {
15
- "id": "image_block_clear",
16
- "defaultMessage": "Clear image"
17
- }
18
- ]
@@ -1,10 +0,0 @@
1
- [
2
- {
3
- "id": "Description",
4
- "defaultMessage": "Description"
5
- },
6
- {
7
- "id": "Title",
8
- "defaultMessage": "Title"
9
- }
10
- ]
@@ -1,26 +0,0 @@
1
- [
2
- {
3
- "id": "Previous Page",
4
- "defaultMessage": "Previous Page"
5
- },
6
- {
7
- "id": "Next Page",
8
- "defaultMessage": "Next Page"
9
- },
10
- {
11
- "id": "Result",
12
- "defaultMessage": "Result"
13
- },
14
- {
15
- "id": "of",
16
- "defaultMessage": "of"
17
- },
18
- {
19
- "id": "No items found in this container.",
20
- "defaultMessage": "No items found in this container."
21
- },
22
- {
23
- "id": "loading",
24
- "defaultMessage": "Loading"
25
- }
26
- ]
@@ -1,10 +0,0 @@
1
- [
2
- {
3
- "id": "Search",
4
- "defaultMessage": "Search"
5
- },
6
- {
7
- "id": "Sorting",
8
- "defaultMessage": "Sorting"
9
- }
10
- ]
@@ -1,10 +0,0 @@
1
- [
2
- {
3
- "id": "Search results",
4
- "defaultMessage": "Search results"
5
- },
6
- {
7
- "id": "Searched for",
8
- "defaultMessage": "Searched for"
9
- }
10
- ]
@@ -1,6 +0,0 @@
1
- [
2
- {
3
- "id": "Search",
4
- "defaultMessage": "Search"
5
- }
6
- ]
@@ -1,18 +0,0 @@
1
- [
2
- {
3
- "id": "Please choose an existing content as source for this element",
4
- "defaultMessage": "Please choose an existing content as source for this element"
5
- },
6
- {
7
- "id": "moreInfo",
8
- "defaultMessage": "More info"
9
- },
10
- {
11
- "id": "Source",
12
- "defaultMessage": "Source"
13
- },
14
- {
15
- "id": "Continue reading",
16
- "defaultMessage": "Continue reading"
17
- }
18
- ]
@@ -1,14 +0,0 @@
1
- [
2
- {
3
- "id": "Flag align",
4
- "defaultMessage": "Flag align"
5
- },
6
- {
7
- "id": "Button text",
8
- "defaultMessage": "Button text"
9
- },
10
- {
11
- "id": "Hide Button",
12
- "defaultMessage": "Hide Button"
13
- }
14
- ]
@@ -1,6 +0,0 @@
1
- [
2
- {
3
- "id": "Background color",
4
- "defaultMessage": "Background color"
5
- }
6
- ]
@@ -1,10 +0,0 @@
1
- [
2
- {
3
- "id": "Home",
4
- "defaultMessage": "Home"
5
- },
6
- {
7
- "id": "Breadcrumbs",
8
- "defaultMessage": "Breadcrumbs"
9
- }
10
- ]
@@ -1,30 +0,0 @@
1
- [
2
- {
3
- "id": "Copyright",
4
- "defaultMessage": "Copyright"
5
- },
6
- {
7
- "id": "The {plonecms} is {copyright} 2000-{current_year} by the {plonefoundation} and friends.",
8
- "defaultMessage": "The {plonecms} is {copyright} 2000-{current_year} by the {plonefoundation} and friends."
9
- },
10
- {
11
- "id": "Plone{reg} Open Source CMS/WCM",
12
- "defaultMessage": "Plone{reg} Open Source CMS/WCM"
13
- },
14
- {
15
- "id": "Plone Foundation",
16
- "defaultMessage": "Plone Foundation"
17
- },
18
- {
19
- "id": "Distributed under the {license}.",
20
- "defaultMessage": "Distributed under the {license}."
21
- },
22
- {
23
- "id": "GNU GPL license",
24
- "defaultMessage": "GNU GPL license"
25
- },
26
- {
27
- "id": "Powered by Plone & Python",
28
- "defaultMessage": "Powered by Plone & Python"
29
- }
30
- ]
@@ -1,6 +0,0 @@
1
- [
2
- {
3
- "id": "siteLabel",
4
- "defaultMessage": " "
5
- }
6
- ]
@@ -1,6 +0,0 @@
1
- [
2
- {
3
- "id": "Switch to",
4
- "defaultMessage": "Switch to"
5
- }
6
- ]
@@ -1,10 +0,0 @@
1
- [
2
- {
3
- "id": "Site",
4
- "defaultMessage": "Site"
5
- },
6
- {
7
- "id": "Plone Site",
8
- "defaultMessage": "Plone Site"
9
- }
10
- ]
@@ -1,26 +0,0 @@
1
- [
2
- {
3
- "id": "Close menu",
4
- "defaultMessage": "Close menu"
5
- },
6
- {
7
- "id": "Open menu",
8
- "defaultMessage": "Open menu"
9
- },
10
- {
11
- "id": "Search",
12
- "defaultMessage": "Search"
13
- },
14
- {
15
- "id": "Home",
16
- "defaultMessage": "Home"
17
- },
18
- {
19
- "id": "Back",
20
- "defaultMessage": "Back"
21
- },
22
- {
23
- "id": "Overview",
24
- "defaultMessage": "Overview"
25
- }
26
- ]
@@ -1,10 +0,0 @@
1
- [
2
- {
3
- "id": "Close menu",
4
- "defaultMessage": "Close menu"
5
- },
6
- {
7
- "id": "Open menu",
8
- "defaultMessage": "Open menu"
9
- }
10
- ]
@@ -1,14 +0,0 @@
1
- [
2
- {
3
- "id": "Search",
4
- "defaultMessage": "Search"
5
- },
6
- {
7
- "id": "Search Site",
8
- "defaultMessage": "Search Site"
9
- },
10
- {
11
- "id": "Search for People, E-Mail Address, Phone Number, ...",
12
- "defaultMessage": "Search for People, E-Mail Address, Phone Number, ..."
13
- }
14
- ]
@@ -1,10 +0,0 @@
1
- [
2
- {
3
- "id": "Search",
4
- "defaultMessage": "Search"
5
- },
6
- {
7
- "id": "Search Site",
8
- "defaultMessage": "Search Site"
9
- }
10
- ]
@@ -1,6 +0,0 @@
1
- [
2
- {
3
- "id": "No date",
4
- "defaultMessage": "No date"
5
- }
6
- ]
@@ -1,22 +0,0 @@
1
- [
2
- {
3
- "id": "Left",
4
- "defaultMessage": "Left"
5
- },
6
- {
7
- "id": "Right",
8
- "defaultMessage": "Right"
9
- },
10
- {
11
- "id": "Center",
12
- "defaultMessage": "Center"
13
- },
14
- {
15
- "id": "Wide",
16
- "defaultMessage": "Wide"
17
- },
18
- {
19
- "id": "Full",
20
- "defaultMessage": "Full"
21
- }
22
- ]
@@ -1,10 +0,0 @@
1
- [
2
- {
3
- "id": "Press",
4
- "defaultMessage": "Press"
5
- },
6
- {
7
- "id": "Sitemap",
8
- "defaultMessage": "Sitemap"
9
- }
10
- ]
package/news/.gitkeep DELETED
File without changes
@@ -1,32 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import { getElementType } from '../helpers';
3
- import cx from 'classnames';
4
-
5
- const Container = (props) => {
6
- const { children, className, layout, narrow, ...rest } = props;
7
- const classes = cx('a', 'container', className, { layout, narrow });
8
-
9
- const Component = getElementType(Container, props);
10
- // eslint-disable-next-line no-console
11
- console.warn(
12
- 'The Container component in: @kitconcept/volto-light-theme/src/components/Atoms/Container/Container.jsx is deprecated, and it will be removed in the next major release of this package. Please use the one in @plone/components instead.',
13
- );
14
- return (
15
- <Component {...rest} className={classes}>
16
- {children}
17
- </Component>
18
- );
19
- };
20
-
21
- Container.propTypes = {
22
- /** An element type to render as (string or function). */
23
- as: PropTypes.elementType,
24
-
25
- /** Primary content. */
26
- children: PropTypes.node,
27
-
28
- /** Additional classes. */
29
- className: PropTypes.string,
30
- };
31
-
32
- export default Container;
@@ -1 +0,0 @@
1
- This components are deprecated, and they will be removed in the next major release of this package.
@@ -1,9 +0,0 @@
1
- export function getElementType(Component, props) {
2
- // Just in case we define the defaultProps in a Component
3
- // it will be taken into account
4
- const { defaultProps = {} } = Component;
5
-
6
- if (props.as && props.as !== defaultProps.as) return props.as;
7
-
8
- return defaultProps.as || 'div';
9
- }
@@ -1,9 +0,0 @@
1
- // import CQpolifillJS from 'file-loader?name=[name].[ext]!../static/container-query-polyfill.modern';
2
-
3
- const ContainerQueriesPolyfill = () => {
4
- return (
5
- <script src="https://cdn.jsdelivr.net/npm/container-query-polyfill@1/dist/container-query-polyfill.modern.js"></script>
6
- );
7
- };
8
-
9
- export default ContainerQueriesPolyfill;